@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Function deckCompanion

    • Creates a role token for a deck companion variant. Both the deck consumer (building the <Surface type={...} />) and contributing plugins (registering via Surface.create({ filter: AppSurface.subject(AppSurface.deckCompanion(id), ...) })) must call this factory with the same variant id so they agree on the dispatch NSID.

      Variant ids must be camelCase alphanumeric (DXN rule: no hyphens in the final segment). The deck passes the companion's graph node id, which is the surface's attendable id.

      Parameters

      • variant: string

      Returns Role<{ id?: string; subject?: any }>