destination-picker-modal.token.ts
Modal token for the destination field picker sidebar.
What it does
Section titled “What it does”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', },});Data interface (input)
Section titled “Data interface (input)”export interface DestinationPickerModalData { destination: DestinationConfig;}destination— the full destination config from the workflow, containing fields and block grids
Value interface (output)
Section titled “Value interface (output)”export interface DestinationPickerModalValue { selectedTargets: Array<{ target: string; blockKey?: string }>;}selectedTargets— array of structured target objects selected by the usertarget— the property alias (e.g.,"pageTitle"or"richTextContent")blockKey— optional block instance key fromdestination.json, present when the target is a block property. Used to disambiguate when multiple blocks share the same property alias.
Used by
Section titled “Used by”up-doc-workflow-source-view.element.ts— imports the token to open the modaldestination-picker-modal.element.ts— implements the modal UImanifest.ts— registers the modal with aliasUpDoc.DestinationPickerModal