Skip to content

destination-picker-modal.token.ts

Modal token for the destination field picker sidebar.

Defines the UmbModalToken that configures the destination picker modal — a sidebar modal used when mapping source elements to destination fields.

export const UMB_DESTINATION_PICKER_MODAL = new UmbModalToken<
DestinationPickerModalData,
DestinationPickerModalValue
>('UpDoc.DestinationPickerModal', {
modal: {
type: 'sidebar',
size: 'small',
},
});
export interface DestinationPickerModalData {
destination: DestinationConfig;
}
  • destination — the full destination config from the workflow, containing fields and block grids
export interface DestinationPickerModalValue {
selectedTargets: Array<{ target: string; blockKey?: string }>;
}
  • selectedTargets — array of structured target objects selected by the user
    • target — the property alias (e.g., "pageTitle" or "richTextContent")
    • blockKey — optional block instance key from destination.json, present when the target is a block property. Used to disambiguate when multiple blocks share the same property alias.
  • up-doc-workflow-source-view.element.ts — imports the token to open the modal
  • destination-picker-modal.element.ts — implements the modal UI
  • manifest.ts — registers the modal with alias UpDoc.DestinationPickerModal