@aglyn/besigner-ui 1.0.0-beta.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +7 -0
- package/package.json +73 -0
- package/src/besigner.d.ts +88 -0
- package/src/besigner.js +89 -0
- package/src/besigner.js.map +1 -0
- package/src/index.d.ts +17 -0
- package/src/index.js +18 -0
- package/src/index.js.map +1 -0
- package/src/lib/box-styler/box-styler.d.ts +57 -0
- package/src/lib/box-styler/box-styler.js +240 -0
- package/src/lib/box-styler/box-styler.js.map +1 -0
- package/src/lib/box-styler/components/box-diagram.d.ts +89 -0
- package/src/lib/box-styler/components/box-diagram.js +661 -0
- package/src/lib/box-styler/components/box-diagram.js.map +1 -0
- package/src/lib/box-styler/components/legend.d.ts +56 -0
- package/src/lib/box-styler/components/legend.js +130 -0
- package/src/lib/box-styler/components/legend.js.map +1 -0
- package/src/lib/box-styler/components/spacing-editor.d.ts +55 -0
- package/src/lib/box-styler/components/spacing-editor.js +347 -0
- package/src/lib/box-styler/components/spacing-editor.js.map +1 -0
- package/src/lib/box-styler/constants.d.ts +17 -0
- package/src/lib/box-styler/constants.js +30 -0
- package/src/lib/box-styler/constants.js.map +1 -0
- package/src/lib/box-styler/index.d.ts +2 -0
- package/src/lib/box-styler/index.js +4 -0
- package/src/lib/box-styler/index.js.map +1 -0
- package/src/lib/box-styler/region-fills.d.ts +107 -0
- package/src/lib/box-styler/region-fills.js +139 -0
- package/src/lib/box-styler/region-fills.js.map +1 -0
- package/src/lib/box-styler/spacing-value.d.ts +104 -0
- package/src/lib/box-styler/spacing-value.js +223 -0
- package/src/lib/box-styler/spacing-value.js.map +1 -0
- package/src/lib/box-styler/types.d.ts +29 -0
- package/src/lib/box-styler/types.js +18 -0
- package/src/lib/box-styler/types.js.map +1 -0
- package/src/lib/components/accordion-list.component.d.ts +50 -0
- package/src/lib/components/accordion-list.component.js +228 -0
- package/src/lib/components/accordion-list.component.js.map +1 -0
- package/src/lib/components/add-controls.component.d.ts +22 -0
- package/src/lib/components/add-controls.component.js +50 -0
- package/src/lib/components/add-controls.component.js.map +1 -0
- package/src/lib/components/app-bar-breadcrumbs.component.d.ts +29 -0
- package/src/lib/components/app-bar-breadcrumbs.component.js +279 -0
- package/src/lib/components/app-bar-breadcrumbs.component.js.map +1 -0
- package/src/lib/components/app-bar-primary.component.d.ts +21 -0
- package/src/lib/components/app-bar-primary.component.js +108 -0
- package/src/lib/components/app-bar-primary.component.js.map +1 -0
- package/src/lib/components/app-bar-secondary.component.d.ts +21 -0
- package/src/lib/components/app-bar-secondary.component.js +94 -0
- package/src/lib/components/app-bar-secondary.component.js.map +1 -0
- package/src/lib/components/aside-panel.component.d.ts +23 -0
- package/src/lib/components/aside-panel.component.js +505 -0
- package/src/lib/components/aside-panel.component.js.map +1 -0
- package/src/lib/components/besigner-conflict-alert.component.d.ts +36 -0
- package/src/lib/components/besigner-conflict-alert.component.js +51 -0
- package/src/lib/components/besigner-conflict-alert.component.js.map +1 -0
- package/src/lib/components/besigner-dnd-context.component.d.ts +32 -0
- package/src/lib/components/besigner-dnd-context.component.js +75 -0
- package/src/lib/components/besigner-dnd-context.component.js.map +1 -0
- package/src/lib/components/besigner-draft-alert.component.d.ts +70 -0
- package/src/lib/components/besigner-draft-alert.component.js +155 -0
- package/src/lib/components/besigner-draft-alert.component.js.map +1 -0
- package/src/lib/components/besigner-root-provider.component.d.ts +33 -0
- package/src/lib/components/besigner-root-provider.component.js +68 -0
- package/src/lib/components/besigner-root-provider.component.js.map +1 -0
- package/src/lib/components/binding-preview-controls.component.d.ts +28 -0
- package/src/lib/components/binding-preview-controls.component.js +63 -0
- package/src/lib/components/binding-preview-controls.component.js.map +1 -0
- package/src/lib/components/closeable-drawer.component.d.ts +32 -0
- package/src/lib/components/closeable-drawer.component.js +134 -0
- package/src/lib/components/closeable-drawer.component.js.map +1 -0
- package/src/lib/components/component-accordion-list.d.ts +28 -0
- package/src/lib/components/component-accordion-list.js +205 -0
- package/src/lib/components/component-accordion-list.js.map +1 -0
- package/src/lib/components/component-icon.component.d.ts +32 -0
- package/src/lib/components/component-icon.component.js +51 -0
- package/src/lib/components/component-icon.component.js.map +1 -0
- package/src/lib/components/component-picker.d.ts +27 -0
- package/src/lib/components/component-picker.js +368 -0
- package/src/lib/components/component-picker.js.map +1 -0
- package/src/lib/components/components-grid-list.component.d.ts +31 -0
- package/src/lib/components/components-grid-list.component.js +162 -0
- package/src/lib/components/components-grid-list.component.js.map +1 -0
- package/src/lib/components/custom-css-form.component.d.ts +115 -0
- package/src/lib/components/custom-css-form.component.js +699 -0
- package/src/lib/components/custom-css-form.component.js.map +1 -0
- package/src/lib/components/device-preview-controls.component.d.ts +22 -0
- package/src/lib/components/device-preview-controls.component.js +150 -0
- package/src/lib/components/device-preview-controls.component.js.map +1 -0
- package/src/lib/components/dnd/canvas-drop-indicator.d.ts +20 -0
- package/src/lib/components/dnd/canvas-drop-indicator.js +61 -0
- package/src/lib/components/dnd/canvas-drop-indicator.js.map +1 -0
- package/src/lib/components/dnd/draggable-droppable.d.ts +31 -0
- package/src/lib/components/dnd/draggable-droppable.js +383 -0
- package/src/lib/components/dnd/draggable-droppable.js.map +1 -0
- package/src/lib/components/dnd/draggable.d.ts +42 -0
- package/src/lib/components/dnd/draggable.js +66 -0
- package/src/lib/components/dnd/draggable.js.map +1 -0
- package/src/lib/components/dnd/drop-indicator.d.ts +31 -0
- package/src/lib/components/dnd/drop-indicator.js +139 -0
- package/src/lib/components/dnd/drop-indicator.js.map +1 -0
- package/src/lib/components/dnd/droppable.d.ts +43 -0
- package/src/lib/components/dnd/droppable.js +63 -0
- package/src/lib/components/dnd/droppable.js.map +1 -0
- package/src/lib/components/element-card.component.d.ts +23 -0
- package/src/lib/components/element-card.component.js +49 -0
- package/src/lib/components/element-card.component.js.map +1 -0
- package/src/lib/components/element-classes-field.component.d.ts +41 -0
- package/src/lib/components/element-classes-field.component.js +140 -0
- package/src/lib/components/element-classes-field.component.js.map +1 -0
- package/src/lib/components/element-detail-overlay.component.d.ts +55 -0
- package/src/lib/components/element-detail-overlay.component.js +157 -0
- package/src/lib/components/element-detail-overlay.component.js.map +1 -0
- package/src/lib/components/element-detail.component.d.ts +56 -0
- package/src/lib/components/element-detail.component.js +171 -0
- package/src/lib/components/element-detail.component.js.map +1 -0
- package/src/lib/components/element-info-details.component.d.ts +18 -0
- package/src/lib/components/element-info-details.component.js +169 -0
- package/src/lib/components/element-info-details.component.js.map +1 -0
- package/src/lib/components/element-interactions-form.component.d.ts +21 -0
- package/src/lib/components/element-interactions-form.component.js +199 -0
- package/src/lib/components/element-interactions-form.component.js.map +1 -0
- package/src/lib/components/element-preview.component.d.ts +75 -0
- package/src/lib/components/element-preview.component.js +346 -0
- package/src/lib/components/element-preview.component.js.map +1 -0
- package/src/lib/components/element-props-form.component.d.ts +565 -0
- package/src/lib/components/element-props-form.component.js +2392 -0
- package/src/lib/components/element-props-form.component.js.map +1 -0
- package/src/lib/components/element-styles-form-template.component.d.ts +27 -0
- package/src/lib/components/element-styles-form-template.component.js +89 -0
- package/src/lib/components/element-styles-form-template.component.js.map +1 -0
- package/src/lib/components/element-styles-form.component.d.ts +52 -0
- package/src/lib/components/element-styles-form.component.js +1350 -0
- package/src/lib/components/element-styles-form.component.js.map +1 -0
- package/src/lib/components/empty-document-slot.d.ts +39 -0
- package/src/lib/components/empty-document-slot.js +121 -0
- package/src/lib/components/empty-document-slot.js.map +1 -0
- package/src/lib/components/empty-results.d.ts +22 -0
- package/src/lib/components/empty-results.js +131 -0
- package/src/lib/components/empty-results.js.map +1 -0
- package/src/lib/components/history-controls.component.d.ts +21 -0
- package/src/lib/components/history-controls.component.js +67 -0
- package/src/lib/components/history-controls.component.js.map +1 -0
- package/src/lib/components/inline-markdown-editor.component.d.ts +17 -0
- package/src/lib/components/inline-markdown-editor.component.js +220 -0
- package/src/lib/components/inline-markdown-editor.component.js.map +1 -0
- package/src/lib/components/inline-text-editor.component.d.ts +48 -0
- package/src/lib/components/inline-text-editor.component.js +905 -0
- package/src/lib/components/inline-text-editor.component.js.map +1 -0
- package/src/lib/components/insert-token-menu.component.d.ts +86 -0
- package/src/lib/components/insert-token-menu.component.js +232 -0
- package/src/lib/components/insert-token-menu.component.js.map +1 -0
- package/src/lib/components/instance-attr-overrides.component.d.ts +50 -0
- package/src/lib/components/instance-attr-overrides.component.js +298 -0
- package/src/lib/components/instance-attr-overrides.component.js.map +1 -0
- package/src/lib/components/interact-controls.component.d.ts +22 -0
- package/src/lib/components/interact-controls.component.js +74 -0
- package/src/lib/components/interact-controls.component.js.map +1 -0
- package/src/lib/components/markdown-attribute-field.component.d.ts +40 -0
- package/src/lib/components/markdown-attribute-field.component.js +103 -0
- package/src/lib/components/markdown-attribute-field.component.js.map +1 -0
- package/src/lib/components/node-card.d.ts +24 -0
- package/src/lib/components/node-card.js +86 -0
- package/src/lib/components/node-card.js.map +1 -0
- package/src/lib/components/node-context-menu.d.ts +25 -0
- package/src/lib/components/node-context-menu.js +558 -0
- package/src/lib/components/node-context-menu.js.map +1 -0
- package/src/lib/components/node-leaf.d.ts +39 -0
- package/src/lib/components/node-leaf.js +628 -0
- package/src/lib/components/node-leaf.js.map +1 -0
- package/src/lib/components/node-outline.d.ts +24 -0
- package/src/lib/components/node-outline.js +156 -0
- package/src/lib/components/node-outline.js.map +1 -0
- package/src/lib/components/node-overlay.d.ts +23 -0
- package/src/lib/components/node-overlay.js +299 -0
- package/src/lib/components/node-overlay.js.map +1 -0
- package/src/lib/components/node-quick-actions.d.ts +24 -0
- package/src/lib/components/node-quick-actions.js +284 -0
- package/src/lib/components/node-quick-actions.js.map +1 -0
- package/src/lib/components/node-tree-view.d.ts +106 -0
- package/src/lib/components/node-tree-view.js +820 -0
- package/src/lib/components/node-tree-view.js.map +1 -0
- package/src/lib/components/panel-controls.component.d.ts +22 -0
- package/src/lib/components/panel-controls.component.js +76 -0
- package/src/lib/components/panel-controls.component.js.map +1 -0
- package/src/lib/components/picker-search-field.d.ts +38 -0
- package/src/lib/components/picker-search-field.js +79 -0
- package/src/lib/components/picker-search-field.js.map +1 -0
- package/src/lib/components/plugin-settings-field.component.d.ts +38 -0
- package/src/lib/components/plugin-settings-field.component.js +264 -0
- package/src/lib/components/plugin-settings-field.component.js.map +1 -0
- package/src/lib/components/properties-dialog.component.d.ts +22 -0
- package/src/lib/components/properties-dialog.component.js +40 -0
- package/src/lib/components/properties-dialog.component.js.map +1 -0
- package/src/lib/components/property-binding-field.component.d.ts +142 -0
- package/src/lib/components/property-binding-field.component.js +325 -0
- package/src/lib/components/property-binding-field.component.js.map +1 -0
- package/src/lib/components/property-values-form.component.d.ts +43 -0
- package/src/lib/components/property-values-form.component.js +223 -0
- package/src/lib/components/property-values-form.component.js.map +1 -0
- package/src/lib/components/scheme-preview-controls.component.d.ts +26 -0
- package/src/lib/components/scheme-preview-controls.component.js +56 -0
- package/src/lib/components/scheme-preview-controls.component.js.map +1 -0
- package/src/lib/components/screen-link-field.component.d.ts +118 -0
- package/src/lib/components/screen-link-field.component.js +282 -0
- package/src/lib/components/screen-link-field.component.js.map +1 -0
- package/src/lib/components/site-theme-color-tokens-provider.component.d.ts +33 -0
- package/src/lib/components/site-theme-color-tokens-provider.component.js +53 -0
- package/src/lib/components/site-theme-color-tokens-provider.component.js.map +1 -0
- package/src/lib/components/subtree-json-dialog.component.d.ts +46 -0
- package/src/lib/components/subtree-json-dialog.component.js +125 -0
- package/src/lib/components/subtree-json-dialog.component.js.map +1 -0
- package/src/lib/components/token-pill.component.d.ts +51 -0
- package/src/lib/components/token-pill.component.js +164 -0
- package/src/lib/components/token-pill.component.js.map +1 -0
- package/src/lib/components/token-text-field.component.d.ts +146 -0
- package/src/lib/components/token-text-field.component.js +603 -0
- package/src/lib/components/token-text-field.component.js.map +1 -0
- package/src/lib/components/tree/tree-list.d.ts +6 -0
- package/src/lib/components/tree/tree-list.js +108 -0
- package/src/lib/components/tree/tree-list.js.map +1 -0
- package/src/lib/components/viewport-canvas.component.d.ts +23 -0
- package/src/lib/components/viewport-canvas.component.js +128 -0
- package/src/lib/components/viewport-canvas.component.js.map +1 -0
- package/src/lib/components/viewport-frame.component.d.ts +47 -0
- package/src/lib/components/viewport-frame.component.js +332 -0
- package/src/lib/components/viewport-frame.component.js.map +1 -0
- package/src/lib/components/viewport-root.component.d.ts +22 -0
- package/src/lib/components/viewport-root.component.js +112 -0
- package/src/lib/components/viewport-root.component.js.map +1 -0
- package/src/lib/components/viewport-zoom-controls.d.ts +29 -0
- package/src/lib/components/viewport-zoom-controls.js +147 -0
- package/src/lib/components/viewport-zoom-controls.js.map +1 -0
- package/src/lib/components/workspace-editor.component.d.ts +23 -0
- package/src/lib/components/workspace-editor.component.js +191 -0
- package/src/lib/components/workspace-editor.component.js.map +1 -0
- package/src/lib/components/workspace-panel.component.d.ts +28 -0
- package/src/lib/components/workspace-panel.component.js +147 -0
- package/src/lib/components/workspace-panel.component.js.map +1 -0
- package/src/lib/constants/sample-data.d.ts +18 -0
- package/src/lib/constants/sample-data.js +106 -0
- package/src/lib/constants/sample-data.js.map +1 -0
- package/src/lib/constants/shared.d.ts +17 -0
- package/src/lib/constants/shared.js +18 -0
- package/src/lib/constants/shared.js.map +1 -0
- package/src/lib/contexts/besigner-app-context.d.ts +30 -0
- package/src/lib/contexts/besigner-app-context.js +41 -0
- package/src/lib/contexts/besigner-app-context.js.map +1 -0
- package/src/lib/contexts/binding-picker-context.d.ts +78 -0
- package/src/lib/contexts/binding-picker-context.js +21 -0
- package/src/lib/contexts/binding-picker-context.js.map +1 -0
- package/src/lib/contexts/canvas-host-tokens-context.d.ts +49 -0
- package/src/lib/contexts/canvas-host-tokens-context.js +63 -0
- package/src/lib/contexts/canvas-host-tokens-context.js.map +1 -0
- package/src/lib/contexts/canvas-reveal-context.d.ts +32 -0
- package/src/lib/contexts/canvas-reveal-context.js +34 -0
- package/src/lib/contexts/canvas-reveal-context.js.map +1 -0
- package/src/lib/contexts/component-promotion-context.d.ts +89 -0
- package/src/lib/contexts/component-promotion-context.js +21 -0
- package/src/lib/contexts/component-promotion-context.js.map +1 -0
- package/src/lib/contexts/components-drawer-context.provider.d.ts +32 -0
- package/src/lib/contexts/components-drawer-context.provider.js +80 -0
- package/src/lib/contexts/components-drawer-context.provider.js.map +1 -0
- package/src/lib/contexts/element-drawer-context.d.ts +1005 -0
- package/src/lib/contexts/element-drawer-context.js +45 -0
- package/src/lib/contexts/element-drawer-context.js.map +1 -0
- package/src/lib/contexts/inspected-selection.d.ts +32 -0
- package/src/lib/contexts/inspected-selection.js +38 -0
- package/src/lib/contexts/inspected-selection.js.map +1 -0
- package/src/lib/contexts/inspector-extras-context.d.ts +56 -0
- package/src/lib/contexts/inspector-extras-context.js +35 -0
- package/src/lib/contexts/inspector-extras-context.js.map +1 -0
- package/src/lib/contexts/interactions-context.d.ts +99 -0
- package/src/lib/contexts/interactions-context.js +22 -0
- package/src/lib/contexts/interactions-context.js.map +1 -0
- package/src/lib/contexts/layout-chrome-context.d.ts +37 -0
- package/src/lib/contexts/layout-chrome-context.js +75 -0
- package/src/lib/contexts/layout-chrome-context.js.map +1 -0
- package/src/lib/contexts/media-asset-facts-context.d.ts +74 -0
- package/src/lib/contexts/media-asset-facts-context.js +27 -0
- package/src/lib/contexts/media-asset-facts-context.js.map +1 -0
- package/src/lib/contexts/media-picker-context.d.ts +88 -0
- package/src/lib/contexts/media-picker-context.js +21 -0
- package/src/lib/contexts/media-picker-context.js.map +1 -0
- package/src/lib/contexts/rendered-canvas-elements.d.ts +42 -0
- package/src/lib/contexts/rendered-canvas-elements.js +79 -0
- package/src/lib/contexts/rendered-canvas-elements.js.map +1 -0
- package/src/lib/contexts/repeat-record-context.d.ts +38 -0
- package/src/lib/contexts/repeat-record-context.js +21 -0
- package/src/lib/contexts/repeat-record-context.js.map +1 -0
- package/src/lib/contexts/repeat-rows-context.d.ts +53 -0
- package/src/lib/contexts/repeat-rows-context.js +38 -0
- package/src/lib/contexts/repeat-rows-context.js.map +1 -0
- package/src/lib/contexts/toolbar-extras-context.d.ts +31 -0
- package/src/lib/contexts/toolbar-extras-context.js +33 -0
- package/src/lib/contexts/toolbar-extras-context.js.map +1 -0
- package/src/lib/drafts/besigner-draft-store.d.ts +110 -0
- package/src/lib/drafts/besigner-draft-store.js +125 -0
- package/src/lib/drafts/besigner-draft-store.js.map +1 -0
- package/src/lib/drafts/besigner-server-draft.d.ts +130 -0
- package/src/lib/drafts/besigner-server-draft.js +211 -0
- package/src/lib/drafts/besigner-server-draft.js.map +1 -0
- package/src/lib/form-fields/components/shared/inline-form-control.d.ts +32 -0
- package/src/lib/form-fields/components/shared/inline-form-control.js +85 -0
- package/src/lib/form-fields/components/shared/inline-form-control.js.map +1 -0
- package/src/lib/form-fields/components/shared/toggle-button-form-control.d.ts +33 -0
- package/src/lib/form-fields/components/shared/toggle-button-form-control.js +83 -0
- package/src/lib/form-fields/components/shared/toggle-button-form-control.js.map +1 -0
- package/src/lib/form-fields/form-fields.d.ts +20 -0
- package/src/lib/form-fields/form-fields.js +21 -0
- package/src/lib/form-fields/form-fields.js.map +1 -0
- package/src/lib/form-fields/index.d.ts +1 -0
- package/src/lib/form-fields/index.js +3 -0
- package/src/lib/form-fields/index.js.map +1 -0
- package/src/lib/hooks/use-add-element-drawer-callback.d.ts +28 -0
- package/src/lib/hooks/use-add-element-drawer-callback.js +112 -0
- package/src/lib/hooks/use-add-element-drawer-callback.js.map +1 -0
- package/src/lib/hooks/use-aglyn-besigner-flag.d.ts +23 -0
- package/src/lib/hooks/use-aglyn-besigner-flag.js +47 -0
- package/src/lib/hooks/use-aglyn-besigner-flag.js.map +1 -0
- package/src/lib/hooks/use-aglyn-besigner-panel-value.d.ts +23 -0
- package/src/lib/hooks/use-aglyn-besigner-panel-value.js +54 -0
- package/src/lib/hooks/use-aglyn-besigner-panel-value.js.map +1 -0
- package/src/lib/hooks/use-aglyn-besigner-panel.d.ts +23 -0
- package/src/lib/hooks/use-aglyn-besigner-panel.js +47 -0
- package/src/lib/hooks/use-aglyn-besigner-panel.js.map +1 -0
- package/src/lib/hooks/use-anchored-rect.d.ts +68 -0
- package/src/lib/hooks/use-anchored-rect.js +131 -0
- package/src/lib/hooks/use-anchored-rect.js.map +1 -0
- package/src/lib/hooks/use-besigner-app-context.d.ts +18 -0
- package/src/lib/hooks/use-besigner-app-context.js +19 -0
- package/src/lib/hooks/use-besigner-app-context.js.map +1 -0
- package/src/lib/hooks/use-besigner-document.d.ts +309 -0
- package/src/lib/hooks/use-besigner-document.js +500 -0
- package/src/lib/hooks/use-besigner-document.js.map +1 -0
- package/src/lib/hooks/use-besigner-draft.d.ts +209 -0
- package/src/lib/hooks/use-besigner-draft.js +429 -0
- package/src/lib/hooks/use-besigner-draft.js.map +1 -0
- package/src/lib/hooks/use-clipboard-callbacks.d.ts +29 -0
- package/src/lib/hooks/use-clipboard-callbacks.js +82 -0
- package/src/lib/hooks/use-clipboard-callbacks.js.map +1 -0
- package/src/lib/hooks/use-clipboard-shortcuts.d.ts +52 -0
- package/src/lib/hooks/use-clipboard-shortcuts.js +102 -0
- package/src/lib/hooks/use-clipboard-shortcuts.js.map +1 -0
- package/src/lib/hooks/use-component-propagation-notice.d.ts +96 -0
- package/src/lib/hooks/use-component-propagation-notice.js +177 -0
- package/src/lib/hooks/use-component-propagation-notice.js.map +1 -0
- package/src/lib/hooks/use-debounced-commit.d.ts +43 -0
- package/src/lib/hooks/use-debounced-commit.js +88 -0
- package/src/lib/hooks/use-debounced-commit.js.map +1 -0
- package/src/lib/hooks/use-delete-element-callback.d.ts +24 -0
- package/src/lib/hooks/use-delete-element-callback.js +82 -0
- package/src/lib/hooks/use-delete-element-callback.js.map +1 -0
- package/src/lib/hooks/use-detail-hover-intent.d.ts +76 -0
- package/src/lib/hooks/use-detail-hover-intent.js +123 -0
- package/src/lib/hooks/use-detail-hover-intent.js.map +1 -0
- package/src/lib/hooks/use-document-repair-callbacks.d.ts +50 -0
- package/src/lib/hooks/use-document-repair-callbacks.js +237 -0
- package/src/lib/hooks/use-document-repair-callbacks.js.map +1 -0
- package/src/lib/hooks/use-insert-token-options.d.ts +52 -0
- package/src/lib/hooks/use-insert-token-options.js +230 -0
- package/src/lib/hooks/use-insert-token-options.js.map +1 -0
- package/src/lib/hooks/use-leaf-drag.d.ts +24 -0
- package/src/lib/hooks/use-leaf-drag.js +28 -0
- package/src/lib/hooks/use-leaf-drag.js.map +1 -0
- package/src/lib/hooks/use-leaf-drop.d.ts +31 -0
- package/src/lib/hooks/use-leaf-drop.js +43 -0
- package/src/lib/hooks/use-leaf-drop.js.map +1 -0
- package/src/lib/hooks/use-markdown-media-picker.d.ts +63 -0
- package/src/lib/hooks/use-markdown-media-picker.js +110 -0
- package/src/lib/hooks/use-markdown-media-picker.js.map +1 -0
- package/src/lib/hooks/use-media-asset-facts-overlay.d.ts +43 -0
- package/src/lib/hooks/use-media-asset-facts-overlay.js +133 -0
- package/src/lib/hooks/use-media-asset-facts-overlay.js.map +1 -0
- package/src/lib/hooks/use-move-node-callbacks.d.ts +22 -0
- package/src/lib/hooks/use-move-node-callbacks.js +57 -0
- package/src/lib/hooks/use-move-node-callbacks.js.map +1 -0
- package/src/lib/hooks/use-node-with-host-tokens.d.ts +42 -0
- package/src/lib/hooks/use-node-with-host-tokens.js +59 -0
- package/src/lib/hooks/use-node-with-host-tokens.js.map +1 -0
- package/src/lib/hooks/use-picker-filter.d.ts +61 -0
- package/src/lib/hooks/use-picker-filter.js +122 -0
- package/src/lib/hooks/use-picker-filter.js.map +1 -0
- package/src/lib/hooks/use-repeat-preview.d.ts +64 -0
- package/src/lib/hooks/use-repeat-preview.js +214 -0
- package/src/lib/hooks/use-repeat-preview.js.map +1 -0
- package/src/lib/hooks/use-repeat-sources.d.ts +17 -0
- package/src/lib/hooks/use-repeat-sources.js +41 -0
- package/src/lib/hooks/use-repeat-sources.js.map +1 -0
- package/src/lib/hooks/use-visible-component-categories.d.ts +37 -0
- package/src/lib/hooks/use-visible-component-categories.js +79 -0
- package/src/lib/hooks/use-visible-component-categories.js.map +1 -0
- package/src/lib/utils/active-host-theme.d.ts +28 -0
- package/src/lib/utils/active-host-theme.js +77 -0
- package/src/lib/utils/active-host-theme.js.map +1 -0
- package/src/lib/utils/attr-target.d.ts +170 -0
- package/src/lib/utils/attr-target.js +229 -0
- package/src/lib/utils/attr-target.js.map +1 -0
- package/src/lib/utils/attribute-field-value.d.ts +21 -0
- package/src/lib/utils/attribute-field-value.js +28 -0
- package/src/lib/utils/attribute-field-value.js.map +1 -0
- package/src/lib/utils/canvas-context-menu.d.ts +28 -0
- package/src/lib/utils/canvas-context-menu.js +56 -0
- package/src/lib/utils/canvas-context-menu.js.map +1 -0
- package/src/lib/utils/canvas-reveal.d.ts +115 -0
- package/src/lib/utils/canvas-reveal.js +165 -0
- package/src/lib/utils/canvas-reveal.js.map +1 -0
- package/src/lib/utils/describe-element.d.ts +72 -0
- package/src/lib/utils/describe-element.js +159 -0
- package/src/lib/utils/describe-element.js.map +1 -0
- package/src/lib/utils/device-preview-styles.d.ts +89 -0
- package/src/lib/utils/device-preview-styles.js +228 -0
- package/src/lib/utils/device-preview-styles.js.map +1 -0
- package/src/lib/utils/docs-help.d.ts +22 -0
- package/src/lib/utils/docs-help.generated.d.ts +47 -0
- package/src/lib/utils/docs-help.generated.js +229 -0
- package/src/lib/utils/docs-help.generated.js.map +1 -0
- package/src/lib/utils/docs-help.js +37 -0
- package/src/lib/utils/docs-help.js.map +1 -0
- package/src/lib/utils/held-answers-store.d.ts +59 -0
- package/src/lib/utils/held-answers-store.js +94 -0
- package/src/lib/utils/held-answers-store.js.map +1 -0
- package/src/lib/utils/in-place-edit-surface.d.ts +118 -0
- package/src/lib/utils/in-place-edit-surface.js +164 -0
- package/src/lib/utils/in-place-edit-surface.js.map +1 -0
- package/src/lib/utils/inline-markdown-edit.store.d.ts +71 -0
- package/src/lib/utils/inline-markdown-edit.store.js +90 -0
- package/src/lib/utils/inline-markdown-edit.store.js.map +1 -0
- package/src/lib/utils/inline-text-edit.store.d.ts +85 -0
- package/src/lib/utils/inline-text-edit.store.js +78 -0
- package/src/lib/utils/inline-text-edit.store.js.map +1 -0
- package/src/lib/utils/instance-leaf-hit.d.ts +39 -0
- package/src/lib/utils/instance-leaf-hit.js +56 -0
- package/src/lib/utils/instance-leaf-hit.js.map +1 -0
- package/src/lib/utils/muted-classes.d.ts +76 -0
- package/src/lib/utils/muted-classes.js +108 -0
- package/src/lib/utils/muted-classes.js.map +1 -0
- package/src/lib/utils/muted-styles.d.ts +125 -0
- package/src/lib/utils/muted-styles.js +193 -0
- package/src/lib/utils/muted-styles.js.map +1 -0
- package/src/lib/utils/numeric-text-value.d.ts +42 -0
- package/src/lib/utils/numeric-text-value.js +47 -0
- package/src/lib/utils/numeric-text-value.js.map +1 -0
- package/src/lib/utils/preset-interactions.d.ts +37 -0
- package/src/lib/utils/preset-interactions.js +87 -0
- package/src/lib/utils/preset-interactions.js.map +1 -0
- package/src/lib/utils/publish-failure-message.d.ts +35 -0
- package/src/lib/utils/publish-failure-message.js +51 -0
- package/src/lib/utils/publish-failure-message.js.map +1 -0
- package/src/lib/utils/rank-picker-results.d.ts +45 -0
- package/src/lib/utils/rank-picker-results.js +136 -0
- package/src/lib/utils/rank-picker-results.js.map +1 -0
- package/src/lib/utils/responsive-sx.d.ts +65 -0
- package/src/lib/utils/responsive-sx.js +129 -0
- package/src/lib/utils/responsive-sx.js.map +1 -0
- package/src/lib/utils/rich-text-commands.d.ts +28 -0
- package/src/lib/utils/rich-text-commands.js +43 -0
- package/src/lib/utils/rich-text-commands.js.map +1 -0
- package/src/lib/utils/sanitize-rich-text.d.ts +52 -0
- package/src/lib/utils/sanitize-rich-text.js +173 -0
- package/src/lib/utils/sanitize-rich-text.js.map +1 -0
- package/src/lib/utils/state-sx.d.ts +255 -0
- package/src/lib/utils/state-sx.js +338 -0
- package/src/lib/utils/state-sx.js.map +1 -0
- package/src/lib/utils/style-field-groups.d.ts +136 -0
- package/src/lib/utils/style-field-groups.js +874 -0
- package/src/lib/utils/style-field-groups.js.map +1 -0
- package/src/lib/utils/style-field-search.d.ts +84 -0
- package/src/lib/utils/style-field-search.js +505 -0
- package/src/lib/utils/style-field-search.js.map +1 -0
- package/src/lib/utils/style-target.d.ts +69 -0
- package/src/lib/utils/style-target.js +203 -0
- package/src/lib/utils/style-target.js.map +1 -0
- package/src/lib/utils/theme-scale-options.d.ts +169 -0
- package/src/lib/utils/theme-scale-options.js +702 -0
- package/src/lib/utils/theme-scale-options.js.map +1 -0
- package/src/lib/utils/token-editable-dom.d.ts +82 -0
- package/src/lib/utils/token-editable-dom.js +280 -0
- package/src/lib/utils/token-editable-dom.js.map +1 -0
- package/src/lib/utils/token-segments.d.ts +111 -0
- package/src/lib/utils/token-segments.js +246 -0
- package/src/lib/utils/token-segments.js.map +1 -0
- package/src/lib/utils/visibility-styles.d.ts +38 -0
- package/src/lib/utils/visibility-styles.js +54 -0
- package/src/lib/utils/visibility-styles.js.map +1 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { type MdiIconProps } from '@aglyn/shared-ui-jsx';
|
|
18
|
+
import { type InlineFormControlProps } from './inline-form-control';
|
|
19
|
+
export type ButtonGroupFormControl = {
|
|
20
|
+
name?: string;
|
|
21
|
+
label?: JSX.Children;
|
|
22
|
+
helperText?: JSX.Children;
|
|
23
|
+
options?: Array<{
|
|
24
|
+
value?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
icon?: MdiIconProps;
|
|
27
|
+
}>;
|
|
28
|
+
};
|
|
29
|
+
export interface ToggleButtonFormControlProps extends InlineFormControlProps {
|
|
30
|
+
schema: ButtonGroupFormControl;
|
|
31
|
+
}
|
|
32
|
+
export declare const ToggleButtonFormControl: import("react").ForwardRefExoticComponent<Omit<ToggleButtonFormControlProps, "ref"> & import("react").RefAttributes<any>>;
|
|
33
|
+
export default ToggleButtonFormControl;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
2
|
+
import { _ as _object_without_properties_loose } from "@swc/helpers/_/_object_without_properties_loose";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2026 Aglyn LLC
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/ import { MdiIcon } from "@aglyn/shared-ui-jsx";
|
|
20
|
+
import { ToggleButton, ToggleButtonGroup, Tooltip } from "@mui/material";
|
|
21
|
+
import { forwardRef, useCallback, useEffect, useState } from "react";
|
|
22
|
+
import InlineFormControl from "./inline-form-control.js";
|
|
23
|
+
export const ToggleButtonFormControl = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
24
|
+
var _schema_options;
|
|
25
|
+
const { schema, value, onChange } = props, rest = _object_without_properties_loose(props, [
|
|
26
|
+
"schema",
|
|
27
|
+
"value",
|
|
28
|
+
"onChange"
|
|
29
|
+
]);
|
|
30
|
+
const [localValue, setLocalValue] = useState(value || '');
|
|
31
|
+
useEffect(()=>{
|
|
32
|
+
setLocalValue(value || '');
|
|
33
|
+
}, [
|
|
34
|
+
value
|
|
35
|
+
]);
|
|
36
|
+
const handleChange = useCallback((e, value)=>{
|
|
37
|
+
setLocalValue(value);
|
|
38
|
+
onChange == null ? void 0 : onChange(e, value);
|
|
39
|
+
}, [
|
|
40
|
+
onChange
|
|
41
|
+
]);
|
|
42
|
+
return /*#__PURE__*/ _jsx(InlineFormControl, _extends({
|
|
43
|
+
ref: ref,
|
|
44
|
+
label: schema.label,
|
|
45
|
+
helperText: /*#__PURE__*/ _jsxs(_Fragment, {
|
|
46
|
+
children: [
|
|
47
|
+
schema.helperText,
|
|
48
|
+
" ",
|
|
49
|
+
/*#__PURE__*/ _jsxs("b", {
|
|
50
|
+
children: [
|
|
51
|
+
"- ",
|
|
52
|
+
localValue || 'not set'
|
|
53
|
+
]
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
})
|
|
57
|
+
}, rest, {
|
|
58
|
+
children: /*#__PURE__*/ _jsx(ToggleButtonGroup, {
|
|
59
|
+
exclusive: true,
|
|
60
|
+
fullWidth: true,
|
|
61
|
+
size: "small",
|
|
62
|
+
onChange: handleChange,
|
|
63
|
+
value: localValue,
|
|
64
|
+
children: (_schema_options = schema.options) == null ? void 0 : _schema_options.map((i)=>/*#__PURE__*/ _jsx(ToggleButton, {
|
|
65
|
+
value: i.value,
|
|
66
|
+
"aria-label": i.label,
|
|
67
|
+
sx: {
|
|
68
|
+
p: 0.5
|
|
69
|
+
},
|
|
70
|
+
children: /*#__PURE__*/ _jsx(Tooltip, {
|
|
71
|
+
title: i.label,
|
|
72
|
+
children: /*#__PURE__*/ _jsx(MdiIcon, _extends({
|
|
73
|
+
fontSize: "small"
|
|
74
|
+
}, i.icon))
|
|
75
|
+
})
|
|
76
|
+
}, i.value))
|
|
77
|
+
})
|
|
78
|
+
}));
|
|
79
|
+
});
|
|
80
|
+
ToggleButtonFormControl.displayName = 'ToggleButtonFormControl';
|
|
81
|
+
export default ToggleButtonFormControl;
|
|
82
|
+
|
|
83
|
+
//# sourceMappingURL=toggle-button-form-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../libs/besigner/feature/designer/src/lib/form-fields/components/shared/toggle-button-form-control.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MdiIcon, type MdiIconProps } from '@aglyn/shared-ui-jsx'\nimport { ToggleButton, ToggleButtonGroup, Tooltip } from '@mui/material'\nimport { forwardRef, type MouseEvent, useCallback, useEffect, useState } from 'react'\nimport InlineFormControl, {\n type InlineFormControlProps,\n} from './inline-form-control'\n\nexport type ButtonGroupFormControl = {\n name?: string\n label?: JSX.Children\n helperText?: JSX.Children\n options?: Array<{\n value?: string\n label?: string\n icon?: MdiIconProps\n }>\n}\n\nexport interface ToggleButtonFormControlProps extends InlineFormControlProps {\n schema: ButtonGroupFormControl\n}\n\nexport const ToggleButtonFormControl = forwardRef<\n any,\n ToggleButtonFormControlProps\n>((props, ref) => {\n const { schema, value, onChange, ...rest } = props\n\n const [localValue, setLocalValue] = useState<string>(value || '')\n\n useEffect(() => {\n setLocalValue(value || '')\n }, [value])\n\n const handleChange = useCallback(\n (e: MouseEvent<HTMLElement>, value: string) => {\n setLocalValue(value)\n onChange?.(e, value)\n },\n [onChange],\n )\n\n return (\n <InlineFormControl\n ref={ref}\n label={schema.label}\n helperText={\n <>\n {schema.helperText} {<b>- {localValue || 'not set'}</b>}\n </>\n }\n {...rest}\n >\n <ToggleButtonGroup\n exclusive\n fullWidth\n size=\"small\"\n onChange={handleChange}\n value={localValue}\n >\n {schema.options?.map((i) => (\n <ToggleButton\n key={i.value}\n value={i.value}\n aria-label={i.label}\n sx={{ p: 0.5 }}\n >\n <Tooltip title={i.label}>\n <MdiIcon fontSize=\"small\" {...i.icon} />\n </Tooltip>\n </ToggleButton>\n ))}\n </ToggleButtonGroup>\n </InlineFormControl>\n )\n})\nToggleButtonFormControl.displayName = 'ToggleButtonFormControl'\n\nexport default ToggleButtonFormControl\n"],"names":["MdiIcon","ToggleButton","ToggleButtonGroup","Tooltip","forwardRef","useCallback","useEffect","useState","InlineFormControl","ToggleButtonFormControl","props","ref","schema","value","onChange","rest","localValue","setLocalValue","handleChange","e","label","helperText","b","exclusive","fullWidth","size","options","map","i","aria-label","sx","p","title","fontSize","icon","displayName"],"mappings":";;;AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAASA,OAAO,QAA2B,uBAAsB;AACjE,SAASC,YAAY,EAAEC,iBAAiB,EAAEC,OAAO,QAAQ,gBAAe;AACxE,SAASC,UAAU,EAAmBC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,QAAO;AACrF,OAAOC,uBAEA,2BAAuB;AAiB9B,OAAO,MAAMC,wCAA0BL,WAGrC,CAACM,OAAOC;QAmCDC;IAlCP,MAAM,EAAEA,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAW,GAAGJ,OAATK,wCAASL;;;;;IAE7C,MAAM,CAACM,YAAYC,cAAc,GAAGV,SAAiBM,SAAS;IAE9DP,UAAU;QACRW,cAAcJ,SAAS;IACzB,GAAG;QAACA;KAAM;IAEV,MAAMK,eAAeb,YACnB,CAACc,GAA4BN;QAC3BI,cAAcJ;QACdC,4BAAAA,SAAWK,GAAGN;IAChB,GACA;QAACC;KAAS;IAGZ,qBACE,KAACN;QACCG,KAAKA;QACLS,OAAOR,OAAOQ,KAAK;QACnBC,0BACE;;gBACGT,OAAOS,UAAU;gBAAC;8BAAE,MAACC;;wBAAE;wBAAGN,cAAc;;;;;OAGzCD;kBAEJ,cAAA,KAACb;YACCqB,SAAS;YACTC,SAAS;YACTC,MAAK;YACLX,UAAUI;YACVL,OAAOG;uBAENJ,kBAAAA,OAAOc,OAAO,qBAAdd,gBAAgBe,GAAG,CAAC,CAACC,kBACpB,KAAC3B;oBAECY,OAAOe,EAAEf,KAAK;oBACdgB,cAAYD,EAAER,KAAK;oBACnBU,IAAI;wBAAEC,GAAG;oBAAI;8BAEb,cAAA,KAAC5B;wBAAQ6B,OAAOJ,EAAER,KAAK;kCACrB,cAAA,KAACpB;4BAAQiC,UAAS;2BAAYL,EAAEM,IAAI;;mBANjCN,EAAEf,KAAK;;;AAaxB,GAAE;AACFJ,wBAAwB0B,WAAW,GAAG;AAEtC,eAAe1B,wBAAuB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export * from './components/shared/inline-form-control';
|
|
18
|
+
export { default as InlineFormControl } from './components/shared/inline-form-control';
|
|
19
|
+
export * from './components/shared/toggle-button-form-control';
|
|
20
|
+
export { default as ToggleButtonFormControl } from './components/shared/toggle-button-form-control';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/ export * from "./components/shared/inline-form-control.js";
|
|
17
|
+
export { default as InlineFormControl } from "./components/shared/inline-form-control.js";
|
|
18
|
+
export * from "./components/shared/toggle-button-form-control.js";
|
|
19
|
+
export { default as ToggleButtonFormControl } from "./components/shared/toggle-button-form-control.js";
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=form-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/besigner/feature/designer/src/lib/form-fields/form-fields.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2023 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './components/shared/inline-form-control'\nexport { default as InlineFormControl } from './components/shared/inline-form-control'\n\nexport * from './components/shared/toggle-button-form-control'\nexport { default as ToggleButtonFormControl } from './components/shared/toggle-button-form-control'\n"],"names":["default","InlineFormControl","ToggleButtonFormControl"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,cAAc,6CAAyC;AACvD,SAASA,WAAWC,iBAAiB,QAAQ,6CAAyC;AAEtF,cAAc,oDAAgD;AAC9D,SAASD,WAAWE,uBAAuB,QAAQ,oDAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './form-fields';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/besigner/feature/designer/src/lib/form-fields/index.ts"],"sourcesContent":["export * from './form-fields'\n"],"names":[],"mappings":"AAAA,cAAc,mBAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import type * as Aglyn from '@aglyn/aglyn';
|
|
18
|
+
import { type NodeId } from '@aglyn/aglyn';
|
|
19
|
+
import { type ElementDrawerOptions } from '../contexts/element-drawer-context';
|
|
20
|
+
export interface UseAddElementCallbackOptions {
|
|
21
|
+
onComplete?: (data: unknown) => void;
|
|
22
|
+
onError?: (error: unknown) => void;
|
|
23
|
+
drawerOptions?: ElementDrawerOptions;
|
|
24
|
+
$id?: NodeId;
|
|
25
|
+
}
|
|
26
|
+
type Response = (parent?: Aglyn.NodeSchema<any>, options?: ElementDrawerOptions) => Promise<void | Aglyn.NodeSchema<any>>;
|
|
27
|
+
export declare function useAddElementDrawerCallback(): Response;
|
|
28
|
+
export default useAddElementDrawerCallback;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/ import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
17
|
+
import { canvas, components } from "@aglyn/aglyn";
|
|
18
|
+
import * as Besigner from "@aglyn/besigner";
|
|
19
|
+
import { useSnackbar } from "@aglyn/shared-ui-snackstack";
|
|
20
|
+
import { useCallback, useContext } from "react";
|
|
21
|
+
import { useElementDrawerContext } from "../contexts/element-drawer-context.js";
|
|
22
|
+
import { InteractionsContext } from "../contexts/interactions-context.js";
|
|
23
|
+
import { buildPresetInteractionDrafts } from "../utils/preset-interactions.js";
|
|
24
|
+
export function useAddElementDrawerCallback() {
|
|
25
|
+
var _useSnackbar;
|
|
26
|
+
const { elementDrawer } = useElementDrawerContext();
|
|
27
|
+
const { onCreatePresetInteractions } = useContext(InteractionsContext);
|
|
28
|
+
// Null-safe: surfaces render without a snackbar provider in tests.
|
|
29
|
+
const { enqueueSnackbar } = (_useSnackbar = useSnackbar()) != null ? _useSnackbar : {};
|
|
30
|
+
return useCallback(async (parent, options)=>{
|
|
31
|
+
const drawerOptions = _extends({
|
|
32
|
+
title: 'Add New Element'
|
|
33
|
+
}, options);
|
|
34
|
+
return await elementDrawer(drawerOptions).then((res)=>{
|
|
35
|
+
if (!(res == null ? void 0 : res.option)) throw new TypeError('invalid response');
|
|
36
|
+
return res.option;
|
|
37
|
+
}).then((preset)=>{
|
|
38
|
+
var _preset_data, _preset_data1, _preset_data2, _parentNode_componentSchema, _parentNode_componentSchema1, _preset_interactionTemplates;
|
|
39
|
+
// Resolve where the new node attaches against the live canvas.
|
|
40
|
+
// Callers wire the current selection in as `parent` (the console
|
|
41
|
+
// INSERT menu passed the raw menu click event for a while). A
|
|
42
|
+
// container target receives the node as a child; a leaf selection
|
|
43
|
+
// (a screen link, button, icon — no children slot) instead places
|
|
44
|
+
// the node as its next sibling, so it lands somewhere it can
|
|
45
|
+
// render instead of nesting where drag-and-drop would then refuse
|
|
46
|
+
// to move it. A non-node — or a node deleted while the picker was
|
|
47
|
+
// open — falls back to the document root; otherwise the constraint
|
|
48
|
+
// check runs against a phantom target and the created node is
|
|
49
|
+
// pushed onto a detached `nodes` array, never reaching the
|
|
50
|
+
// hierarchy, canvas, or saves (AGL-537).
|
|
51
|
+
const { parent: parentNode, index } = canvas.resolveInsertTarget(parent);
|
|
52
|
+
// Inserting follows the same lineal placement rules as dnd —
|
|
53
|
+
// without this, forbidden arrangements get created here that
|
|
54
|
+
// drag-and-drop then (correctly) refuses to move.
|
|
55
|
+
const itemSchema = components.getSchema(preset == null ? void 0 : (_preset_data = preset.data) == null ? void 0 : _preset_data.componentId);
|
|
56
|
+
const item = {
|
|
57
|
+
componentId: preset == null ? void 0 : (_preset_data1 = preset.data) == null ? void 0 : _preset_data1.componentId,
|
|
58
|
+
pluginId: preset == null ? void 0 : (_preset_data2 = preset.data) == null ? void 0 : _preset_data2.pluginId,
|
|
59
|
+
restrictChildren: itemSchema == null ? void 0 : itemSchema.restrictChildren,
|
|
60
|
+
restrictParent: itemSchema == null ? void 0 : itemSchema.restrictParent
|
|
61
|
+
};
|
|
62
|
+
const parentActor = {
|
|
63
|
+
componentId: parentNode == null ? void 0 : parentNode.componentId,
|
|
64
|
+
pluginId: parentNode == null ? void 0 : parentNode.pluginId,
|
|
65
|
+
restrictChildren: parentNode == null ? void 0 : (_parentNode_componentSchema = parentNode.componentSchema) == null ? void 0 : _parentNode_componentSchema.restrictChildren,
|
|
66
|
+
restrictParent: parentNode == null ? void 0 : (_parentNode_componentSchema1 = parentNode.componentSchema) == null ? void 0 : _parentNode_componentSchema1.restrictParent
|
|
67
|
+
};
|
|
68
|
+
const [valid, reason] = Besigner.confirmValidLinealRelationship(item, parentActor);
|
|
69
|
+
if (!valid) {
|
|
70
|
+
enqueueSnackbar == null ? void 0 : enqueueSnackbar(Besigner.describeInvalidLinealRelationship(item, parentActor, reason), {
|
|
71
|
+
variant: 'warning',
|
|
72
|
+
persist: false
|
|
73
|
+
});
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
const node = canvas.addNodeFromPreset(preset, parentNode, index);
|
|
77
|
+
// Preset-declared interactions (AGL-589): resolve the authored
|
|
78
|
+
// presetRef markers against the freshly minted subtree and hand
|
|
79
|
+
// ready drafts to the host app to validate + persist — the
|
|
80
|
+
// designer stays storage-agnostic (same split as the builder).
|
|
81
|
+
if (node && ((_preset_interactionTemplates = preset.interactionTemplates) == null ? void 0 : _preset_interactionTemplates.length) && onCreatePresetInteractions) {
|
|
82
|
+
const drafts = buildPresetInteractionDrafts(preset, node);
|
|
83
|
+
if (drafts.length) {
|
|
84
|
+
onCreatePresetInteractions({
|
|
85
|
+
interactions: drafts
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
// const templateData = {
|
|
90
|
+
// ...(data as any),
|
|
91
|
+
// $id: Aglyn.createNodeId(),
|
|
92
|
+
// parentId: parent?.$id,
|
|
93
|
+
// }
|
|
94
|
+
// Aglyn.canvas.setNodes(
|
|
95
|
+
// Aglyn.canvas.denormalizeNodes([templateData as any],
|
|
96
|
+
// parent?.$id), ) const node =
|
|
97
|
+
// Aglyn.canvas.getNode(templateData.$id)
|
|
98
|
+
Besigner.focus.setSelectedNode(node);
|
|
99
|
+
return node;
|
|
100
|
+
}).catch((err)=>{
|
|
101
|
+
// String rejections are user-initiated dismissals (canceled, backdropClick, etc.) — ignore them
|
|
102
|
+
if (typeof err !== 'string') console.error(err);
|
|
103
|
+
});
|
|
104
|
+
}, [
|
|
105
|
+
elementDrawer,
|
|
106
|
+
enqueueSnackbar,
|
|
107
|
+
onCreatePresetInteractions
|
|
108
|
+
]);
|
|
109
|
+
}
|
|
110
|
+
export default useAddElementDrawerCallback;
|
|
111
|
+
|
|
112
|
+
//# sourceMappingURL=use-add-element-drawer-callback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/besigner/feature/designer/src/lib/hooks/use-add-element-drawer-callback.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2024 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type * as Aglyn from '@aglyn/aglyn'\nimport { canvas, components } from '@aglyn/aglyn'\nimport * as Besigner from '@aglyn/besigner'\nimport { type NodeId } from '@aglyn/aglyn'\nimport { useSnackbar } from '@aglyn/shared-ui-snackstack'\nimport { useCallback, useContext } from 'react'\nimport {\n type ElementDrawerOptions,\n useElementDrawerContext,\n} from '../contexts/element-drawer-context'\nimport { InteractionsContext } from '../contexts/interactions-context'\nimport { buildPresetInteractionDrafts } from '../utils/preset-interactions'\n\nexport interface UseAddElementCallbackOptions {\n onComplete?: (data: unknown) => void\n onError?: (error: unknown) => void\n drawerOptions?: ElementDrawerOptions\n $id?: NodeId\n}\n\ntype Response = (\n parent?: Aglyn.NodeSchema<any>,\n options?: ElementDrawerOptions,\n) => Promise<void | Aglyn.NodeSchema<any>>\n\nexport function useAddElementDrawerCallback(): Response {\n const { elementDrawer } = useElementDrawerContext()\n const { onCreatePresetInteractions } = useContext(InteractionsContext)\n // Null-safe: surfaces render without a snackbar provider in tests.\n const { enqueueSnackbar } = useSnackbar() ?? {}\n\n return useCallback(\n async (parent?: Aglyn.NodeSchema<any>, options?: ElementDrawerOptions) => {\n const drawerOptions = { title: 'Add New Element', ...options }\n return await elementDrawer(drawerOptions)\n .then((res: { option: Aglyn.PresetSchema<any> }) => {\n if (!res?.option) throw new TypeError('invalid response')\n return res.option\n })\n .then((preset) => {\n // Resolve where the new node attaches against the live canvas.\n // Callers wire the current selection in as `parent` (the console\n // INSERT menu passed the raw menu click event for a while). A\n // container target receives the node as a child; a leaf selection\n // (a screen link, button, icon — no children slot) instead places\n // the node as its next sibling, so it lands somewhere it can\n // render instead of nesting where drag-and-drop would then refuse\n // to move it. A non-node — or a node deleted while the picker was\n // open — falls back to the document root; otherwise the constraint\n // check runs against a phantom target and the created node is\n // pushed onto a detached `nodes` array, never reaching the\n // hierarchy, canvas, or saves (AGL-537).\n const { parent: parentNode, index } =\n canvas.resolveInsertTarget(parent)\n\n // Inserting follows the same lineal placement rules as dnd —\n // without this, forbidden arrangements get created here that\n // drag-and-drop then (correctly) refuses to move.\n const itemSchema = components.getSchema(preset?.data?.componentId)\n const item: Besigner.LinealItem = {\n componentId: preset?.data?.componentId,\n pluginId: preset?.data?.pluginId,\n restrictChildren: itemSchema?.restrictChildren,\n restrictParent: itemSchema?.restrictParent,\n }\n const parentActor: Besigner.LinealItem = {\n componentId: parentNode?.componentId,\n pluginId: parentNode?.pluginId,\n restrictChildren: parentNode?.componentSchema?.restrictChildren,\n restrictParent: parentNode?.componentSchema?.restrictParent,\n }\n const [valid, reason] = Besigner.confirmValidLinealRelationship(\n item,\n parentActor,\n )\n if (!valid) {\n enqueueSnackbar?.(\n Besigner.describeInvalidLinealRelationship(\n item,\n parentActor,\n reason,\n ),\n { variant: 'warning', persist: false },\n )\n return undefined\n }\n\n const node = canvas.addNodeFromPreset(preset, parentNode, index)\n\n // Preset-declared interactions (AGL-589): resolve the authored\n // presetRef markers against the freshly minted subtree and hand\n // ready drafts to the host app to validate + persist — the\n // designer stays storage-agnostic (same split as the builder).\n if (\n node &&\n preset.interactionTemplates?.length &&\n onCreatePresetInteractions\n ) {\n const drafts = buildPresetInteractionDrafts(preset, node)\n if (drafts.length) {\n onCreatePresetInteractions({ interactions: drafts })\n }\n }\n\n // const templateData = {\n // ...(data as any),\n // $id: Aglyn.createNodeId(),\n // parentId: parent?.$id,\n // }\n // Aglyn.canvas.setNodes(\n // Aglyn.canvas.denormalizeNodes([templateData as any],\n // parent?.$id), ) const node =\n // Aglyn.canvas.getNode(templateData.$id)\n Besigner.focus.setSelectedNode(node)\n\n return node\n })\n .catch((err) => {\n // String rejections are user-initiated dismissals (canceled, backdropClick, etc.) — ignore them\n if (typeof err !== 'string') console.error(err)\n })\n },\n [elementDrawer, enqueueSnackbar, onCreatePresetInteractions],\n )\n}\n\nexport default useAddElementDrawerCallback\n"],"names":["canvas","components","Besigner","useSnackbar","useCallback","useContext","useElementDrawerContext","InteractionsContext","buildPresetInteractionDrafts","useAddElementDrawerCallback","elementDrawer","onCreatePresetInteractions","enqueueSnackbar","parent","options","drawerOptions","title","then","res","option","TypeError","preset","parentNode","index","resolveInsertTarget","itemSchema","getSchema","data","componentId","item","pluginId","restrictChildren","restrictParent","parentActor","componentSchema","valid","reason","confirmValidLinealRelationship","describeInvalidLinealRelationship","variant","persist","undefined","node","addNodeFromPreset","interactionTemplates","length","drafts","interactions","focus","setSelectedNode","catch","err","console","error"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC;AAGD,SAASA,MAAM,EAAEC,UAAU,QAAQ,eAAc;AACjD,YAAYC,cAAc,kBAAiB;AAE3C,SAASC,WAAW,QAAQ,8BAA6B;AACzD,SAASC,WAAW,EAAEC,UAAU,QAAQ,QAAO;AAC/C,SAEEC,uBAAuB,QAClB,wCAAoC;AAC3C,SAASC,mBAAmB,QAAQ,sCAAkC;AACtE,SAASC,4BAA4B,QAAQ,kCAA8B;AAc3E,OAAO,SAASC;QAIcN;IAH5B,MAAM,EAAEO,aAAa,EAAE,GAAGJ;IAC1B,MAAM,EAAEK,0BAA0B,EAAE,GAAGN,WAAWE;IAClD,mEAAmE;IACnE,MAAM,EAAEK,eAAe,EAAE,IAAGT,eAAAA,yBAAAA,eAAiB,CAAC;IAE9C,OAAOC,YACL,OAAOS,QAAgCC;QACrC,MAAMC,gBAAgB;YAAEC,OAAO;WAAsBF;QACrD,OAAO,MAAMJ,cAAcK,eACxBE,IAAI,CAAC,CAACC;YACL,IAAI,EAACA,uBAAAA,IAAKC,MAAM,GAAE,MAAM,IAAIC,UAAU;YACtC,OAAOF,IAAIC,MAAM;QACnB,GACCF,IAAI,CAAC,CAACI;gBAmBmCA,cAEzBA,eACHA,eAOQC,6BACFA,8BA0BhBD;YAvDF,+DAA+D;YAC/D,iEAAiE;YACjE,8DAA8D;YAC9D,kEAAkE;YAClE,kEAAkE;YAClE,6DAA6D;YAC7D,kEAAkE;YAClE,kEAAkE;YAClE,mEAAmE;YACnE,8DAA8D;YAC9D,2DAA2D;YAC3D,yCAAyC;YACzC,MAAM,EAAER,QAAQS,UAAU,EAAEC,KAAK,EAAE,GACjCvB,OAAOwB,mBAAmB,CAACX;YAE7B,6DAA6D;YAC7D,6DAA6D;YAC7D,kDAAkD;YAClD,MAAMY,aAAaxB,WAAWyB,SAAS,CAACL,2BAAAA,eAAAA,OAAQM,IAAI,qBAAZN,aAAcO,WAAW;YACjE,MAAMC,OAA4B;gBAChCD,WAAW,EAAEP,2BAAAA,gBAAAA,OAAQM,IAAI,qBAAZN,cAAcO,WAAW;gBACtCE,QAAQ,EAAET,2BAAAA,gBAAAA,OAAQM,IAAI,qBAAZN,cAAcS,QAAQ;gBAChCC,gBAAgB,EAAEN,8BAAAA,WAAYM,gBAAgB;gBAC9CC,cAAc,EAAEP,8BAAAA,WAAYO,cAAc;YAC5C;YACA,MAAMC,cAAmC;gBACvCL,WAAW,EAAEN,8BAAAA,WAAYM,WAAW;gBACpCE,QAAQ,EAAER,8BAAAA,WAAYQ,QAAQ;gBAC9BC,gBAAgB,EAAET,+BAAAA,8BAAAA,WAAYY,eAAe,qBAA3BZ,4BAA6BS,gBAAgB;gBAC/DC,cAAc,EAAEV,+BAAAA,+BAAAA,WAAYY,eAAe,qBAA3BZ,6BAA6BU,cAAc;YAC7D;YACA,MAAM,CAACG,OAAOC,OAAO,GAAGlC,SAASmC,8BAA8B,CAC7DR,MACAI;YAEF,IAAI,CAACE,OAAO;gBACVvB,mCAAAA,gBACEV,SAASoC,iCAAiC,CACxCT,MACAI,aACAG,SAEF;oBAAEG,SAAS;oBAAWC,SAAS;gBAAM;gBAEvC,OAAOC;YACT;YAEA,MAAMC,OAAO1C,OAAO2C,iBAAiB,CAACtB,QAAQC,YAAYC;YAE1D,+DAA+D;YAC/D,gEAAgE;YAChE,2DAA2D;YAC3D,+DAA+D;YAC/D,IACEmB,UACArB,+BAAAA,OAAOuB,oBAAoB,qBAA3BvB,6BAA6BwB,MAAM,KACnClC,4BACA;gBACA,MAAMmC,SAAStC,6BAA6Ba,QAAQqB;gBACpD,IAAII,OAAOD,MAAM,EAAE;oBACjBlC,2BAA2B;wBAAEoC,cAAcD;oBAAO;gBACpD;YACF;YAEA,yBAAyB;YACzB,sBAAsB;YACtB,+BAA+B;YAC/B,2BAA2B;YAC3B,IAAI;YACJ,yBAAyB;YACzB,yDAAyD;YACzD,gCAAgC;YAChC,yCAAyC;YACzC5C,SAAS8C,KAAK,CAACC,eAAe,CAACP;YAE/B,OAAOA;QACT,GACCQ,KAAK,CAAC,CAACC;YACN,gGAAgG;YAChG,IAAI,OAAOA,QAAQ,UAAUC,QAAQC,KAAK,CAACF;QAC7C;IACJ,GACA;QAACzC;QAAeE;QAAiBD;KAA2B;AAEhE;AAEA,eAAeF,4BAA2B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { type BesignerFlagKey, type BesignerFlagsState, type BesignerFlagValue } from '@aglyn/besigner';
|
|
18
|
+
export declare function useAglynBesignerFlag<K extends BesignerFlagKey>(flag: K): [
|
|
19
|
+
value: BesignerFlagValue<K>,
|
|
20
|
+
setValue: (value: BesignerFlagValue<K> | ((prev: BesignerFlagValue<K>, flags: BesignerFlagsState) => BesignerFlagValue<K>)) => void
|
|
21
|
+
];
|
|
22
|
+
export default useAglynBesignerFlag;
|
|
23
|
+
export declare function useAglynBesignerSetFlag<K extends BesignerFlagKey>(): (flag: K, value: BesignerFlagValue<K> | ((prev: BesignerFlagValue<K>, flags: BesignerFlagsState) => BesignerFlagValue<K>)) => void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/ import { setBesignerFlag } from "@aglyn/besigner";
|
|
17
|
+
import { useSubscribable } from "@aglyn/shared-ui-jsx";
|
|
18
|
+
import { _isFnT } from "@aglyn/shared-util-tools";
|
|
19
|
+
import { useCallback } from "react";
|
|
20
|
+
import useBesignerAppContext from "./use-besigner-app-context.js";
|
|
21
|
+
export function useAglynBesignerFlag(flag) {
|
|
22
|
+
var _app_interface;
|
|
23
|
+
const app = useBesignerAppContext();
|
|
24
|
+
const setFlag = useAglynBesignerSetFlag().bind(null, flag);
|
|
25
|
+
const value = useSubscribable(app == null ? void 0 : (_app_interface = app.interface) == null ? void 0 : _app_interface.flags, undefined, (flags)=>flags == null ? void 0 : flags[flag], [
|
|
26
|
+
flag,
|
|
27
|
+
app
|
|
28
|
+
]);
|
|
29
|
+
return [
|
|
30
|
+
value,
|
|
31
|
+
setFlag
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
export default useAglynBesignerFlag;
|
|
35
|
+
export function useAglynBesignerSetFlag() {
|
|
36
|
+
const app = useBesignerAppContext();
|
|
37
|
+
return useCallback((flag, value)=>{
|
|
38
|
+
setBesignerFlag(app, {
|
|
39
|
+
flag: flag,
|
|
40
|
+
value: (prev, flags)=>_isFnT(value) ? value(prev, flags) : value
|
|
41
|
+
});
|
|
42
|
+
}, [
|
|
43
|
+
app
|
|
44
|
+
]);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=use-aglyn-besigner-flag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/besigner/feature/designer/src/lib/hooks/use-aglyn-besigner-flag.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n type BesignerFlagKey,\n type BesignerFlagsState,\n type BesignerFlagValue,\n setBesignerFlag,\n} from '@aglyn/besigner'\nimport { useSubscribable } from '@aglyn/shared-ui-jsx'\nimport { _isFnT } from '@aglyn/shared-util-tools'\nimport { useCallback } from 'react'\nimport useBesignerAppContext from './use-besigner-app-context'\n\nexport function useAglynBesignerFlag<K extends BesignerFlagKey>(\n flag: K,\n): [\n value: BesignerFlagValue<K>,\n setValue: (\n value:\n | BesignerFlagValue<K>\n | ((\n prev: BesignerFlagValue<K>,\n flags: BesignerFlagsState,\n ) => BesignerFlagValue<K>),\n ) => void,\n] {\n const app = useBesignerAppContext()\n const setFlag = useAglynBesignerSetFlag().bind(null, flag)\n const value = useSubscribable<BesignerFlagValue<K>>(\n app?.interface?.flags,\n undefined,\n (flags) => flags?.[flag],\n [flag, app],\n )\n\n return [value, setFlag]\n}\n\nexport default useAglynBesignerFlag\n\nexport function useAglynBesignerSetFlag<K extends BesignerFlagKey>(): (\n flag: K,\n value:\n | BesignerFlagValue<K>\n | ((\n prev: BesignerFlagValue<K>,\n flags: BesignerFlagsState,\n ) => BesignerFlagValue<K>),\n) => void {\n const app = useBesignerAppContext()\n return useCallback(\n (\n flag: K,\n value:\n | BesignerFlagValue<K>\n | ((\n prev: BesignerFlagValue<K>,\n flags: BesignerFlagsState,\n ) => BesignerFlagValue<K>),\n ) => {\n setBesignerFlag(app, {\n flag: flag,\n value: (prev, flags) => (_isFnT(value) ? value(prev, flags) : value),\n })\n },\n [app],\n )\n}\n"],"names":["setBesignerFlag","useSubscribable","_isFnT","useCallback","useBesignerAppContext","useAglynBesignerFlag","flag","app","setFlag","useAglynBesignerSetFlag","bind","value","interface","flags","undefined","prev"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAIEA,eAAe,QACV,kBAAiB;AACxB,SAASC,eAAe,QAAQ,uBAAsB;AACtD,SAASC,MAAM,QAAQ,2BAA0B;AACjD,SAASC,WAAW,QAAQ,QAAO;AACnC,OAAOC,2BAA2B,gCAA4B;AAE9D,OAAO,SAASC,qBACdC,IAAO;QAeLC;IAHF,MAAMA,MAAMH;IACZ,MAAMI,UAAUC,0BAA0BC,IAAI,CAAC,MAAMJ;IACrD,MAAMK,QAAQV,gBACZM,wBAAAA,iBAAAA,IAAKK,SAAS,qBAAdL,eAAgBM,KAAK,EACrBC,WACA,CAACD,QAAUA,yBAAAA,KAAO,CAACP,KAAK,EACxB;QAACA;QAAMC;KAAI;IAGb,OAAO;QAACI;QAAOH;KAAQ;AACzB;AAEA,eAAeH,qBAAoB;AAEnC,OAAO,SAASI;IASd,MAAMF,MAAMH;IACZ,OAAOD,YACL,CACEG,MACAK;QAOAX,gBAAgBO,KAAK;YACnBD,MAAMA;YACNK,OAAO,CAACI,MAAMF,QAAWX,OAAOS,SAASA,MAAMI,MAAMF,SAASF;QAChE;IACF,GACA;QAACJ;KAAI;AAET"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { type BesignerPanelKey, type BesignerPanelsState } from '@aglyn/besigner';
|
|
18
|
+
export declare function useAglynBesignerPanelValue<P extends BesignerPanelKey, K extends keyof BesignerPanelsState[P]>(panelName: P, key: K): [
|
|
19
|
+
value: BesignerPanelsState[P][K] | undefined,
|
|
20
|
+
setValue: (value: BesignerPanelsState[P][K] | ((prev: BesignerPanelsState[P][K], panel: BesignerPanelsState[P], panels: BesignerPanelsState) => BesignerPanelsState[P][K])) => void
|
|
21
|
+
];
|
|
22
|
+
export default useAglynBesignerPanelValue;
|
|
23
|
+
export declare function useAglynBesignerPanelSetValue<P extends BesignerPanelKey, K extends keyof BesignerPanelsState[P]>(): (panelName: P, key: K, value: BesignerPanelsState[P][K] | ((prev: BesignerPanelsState[P][K], panel: BesignerPanelsState[P], panels: BesignerPanelsState) => BesignerPanelsState[P][K])) => void;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2022 Aglyn LLC
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/ import { setBesignerPanel } from "@aglyn/besigner";
|
|
18
|
+
import { useSubscribable } from "@aglyn/shared-ui-jsx";
|
|
19
|
+
import { _isFnT } from "@aglyn/shared-util-tools";
|
|
20
|
+
import { useCallback } from "react";
|
|
21
|
+
import useBesignerAppContext from "./use-besigner-app-context.js";
|
|
22
|
+
export function useAglynBesignerPanelValue(panelName, key) {
|
|
23
|
+
var _app_interface;
|
|
24
|
+
const app = useBesignerAppContext();
|
|
25
|
+
const setPanelValue = useAglynBesignerPanelSetValue().bind(null, panelName, key);
|
|
26
|
+
const value = useSubscribable((_app_interface = app.interface) == null ? void 0 : _app_interface.panels, undefined, (panels)=>{
|
|
27
|
+
var _panels_panelName;
|
|
28
|
+
return panels == null ? void 0 : (_panels_panelName = panels[panelName]) == null ? void 0 : _panels_panelName[key];
|
|
29
|
+
}, [
|
|
30
|
+
key,
|
|
31
|
+
panelName,
|
|
32
|
+
app
|
|
33
|
+
]);
|
|
34
|
+
return [
|
|
35
|
+
value,
|
|
36
|
+
setPanelValue
|
|
37
|
+
];
|
|
38
|
+
}
|
|
39
|
+
export default useAglynBesignerPanelValue;
|
|
40
|
+
export function useAglynBesignerPanelSetValue() {
|
|
41
|
+
const app = useBesignerAppContext();
|
|
42
|
+
return useCallback((panelName, key, value)=>{
|
|
43
|
+
setBesignerPanel(app, {
|
|
44
|
+
panel: panelName,
|
|
45
|
+
value: (prev, panels)=>_extends({}, prev, {
|
|
46
|
+
[key]: _isFnT(value) ? value(prev[key], prev, panels) : value
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
}, [
|
|
50
|
+
app
|
|
51
|
+
]);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=use-aglyn-besigner-panel-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/besigner/feature/designer/src/lib/hooks/use-aglyn-besigner-panel-value.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n type BesignerPanelKey,\n type BesignerPanelsState,\n setBesignerPanel,\n} from '@aglyn/besigner'\nimport { useSubscribable } from '@aglyn/shared-ui-jsx'\nimport { _isFnT } from '@aglyn/shared-util-tools'\nimport { useCallback } from 'react'\nimport useBesignerAppContext from './use-besigner-app-context'\n\nexport function useAglynBesignerPanelValue<\n P extends BesignerPanelKey,\n K extends keyof BesignerPanelsState[P],\n>(\n panelName: P,\n key: K,\n): [\n value: BesignerPanelsState[P][K] | undefined,\n setValue: (\n value:\n | BesignerPanelsState[P][K]\n | ((\n prev: BesignerPanelsState[P][K],\n panel: BesignerPanelsState[P],\n panels: BesignerPanelsState,\n ) => BesignerPanelsState[P][K]),\n ) => void,\n] {\n const app = useBesignerAppContext()\n const setPanelValue = useAglynBesignerPanelSetValue<P, K>().bind(\n null,\n panelName,\n key,\n )\n const value = useSubscribable<BesignerPanelsState[P][K]>(\n app.interface?.panels,\n undefined,\n (panels) => panels?.[panelName]?.[key],\n [key, panelName, app],\n )\n\n return [value, setPanelValue]\n}\n\nexport default useAglynBesignerPanelValue\n\nexport function useAglynBesignerPanelSetValue<\n P extends BesignerPanelKey,\n K extends keyof BesignerPanelsState[P],\n>(): (\n panelName: P,\n key: K,\n value:\n | BesignerPanelsState[P][K]\n | ((\n prev: BesignerPanelsState[P][K],\n panel: BesignerPanelsState[P],\n panels: BesignerPanelsState,\n ) => BesignerPanelsState[P][K]),\n) => void {\n const app = useBesignerAppContext()\n return useCallback(\n (\n panelName: P,\n key: K,\n value:\n | BesignerPanelsState[P][K]\n | ((\n prev: BesignerPanelsState[P][K],\n panel: BesignerPanelsState[P],\n panels: BesignerPanelsState,\n ) => BesignerPanelsState[P][K]),\n ) => {\n setBesignerPanel(app, {\n panel: panelName,\n value: (prev, panels) => ({\n ...prev,\n [key]: _isFnT(value) ? value(prev[key], prev, panels) : value,\n }),\n })\n },\n [app],\n )\n}\n"],"names":["setBesignerPanel","useSubscribable","_isFnT","useCallback","useBesignerAppContext","useAglynBesignerPanelValue","panelName","key","app","setPanelValue","useAglynBesignerPanelSetValue","bind","value","interface","panels","undefined","panel","prev"],"mappings":";AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAGEA,gBAAgB,QACX,kBAAiB;AACxB,SAASC,eAAe,QAAQ,uBAAsB;AACtD,SAASC,MAAM,QAAQ,2BAA0B;AACjD,SAASC,WAAW,QAAQ,QAAO;AACnC,OAAOC,2BAA2B,gCAA4B;AAE9D,OAAO,SAASC,2BAIdC,SAAY,EACZC,GAAM;QAoBJC;IAPF,MAAMA,MAAMJ;IACZ,MAAMK,gBAAgBC,gCAAsCC,IAAI,CAC9D,MACAL,WACAC;IAEF,MAAMK,QAAQX,iBACZO,iBAAAA,IAAIK,SAAS,qBAAbL,eAAeM,MAAM,EACrBC,WACA,CAACD;YAAWA;eAAAA,2BAAAA,oBAAAA,MAAQ,CAACR,UAAU,qBAAnBQ,iBAAqB,CAACP,IAAI;OACtC;QAACA;QAAKD;QAAWE;KAAI;IAGvB,OAAO;QAACI;QAAOH;KAAc;AAC/B;AAEA,eAAeJ,2BAA0B;AAEzC,OAAO,SAASK;IAcd,MAAMF,MAAMJ;IACZ,OAAOD,YACL,CACEG,WACAC,KACAK;QAQAZ,iBAAiBQ,KAAK;YACpBQ,OAAOV;YACPM,OAAO,CAACK,MAAMH,SAAY,aACrBG;oBACH,CAACV,IAAI,EAAEL,OAAOU,SAASA,MAAMK,IAAI,CAACV,IAAI,EAAEU,MAAMH,UAAUF;;QAE5D;IACF,GACA;QAACJ;KAAI;AAET"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { type BesignerPanelItem, type BesignerPanelKey, type BesignerPanelsState } from '@aglyn/besigner';
|
|
18
|
+
export declare function useAglynBesignerSetPanel(): (name: BesignerPanelKey, panel: BesignerPanelItem | ((prev: BesignerPanelItem, panels: BesignerPanelsState) => BesignerPanelItem)) => void;
|
|
19
|
+
export declare function useAglynBesignerPanel(name: BesignerPanelKey): [
|
|
20
|
+
value: BesignerPanelItem | undefined,
|
|
21
|
+
setValue: (panel: BesignerPanelItem | ((prev: BesignerPanelItem, panels: BesignerPanelsState) => BesignerPanelItem)) => void
|
|
22
|
+
];
|
|
23
|
+
export default useAglynBesignerPanel;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/ import { setBesignerPanel } from "@aglyn/besigner";
|
|
17
|
+
import { useSubscribable } from "@aglyn/shared-ui-jsx";
|
|
18
|
+
import { _isFnT } from "@aglyn/shared-util-tools";
|
|
19
|
+
import { useCallback } from "react";
|
|
20
|
+
import useBesignerAppContext from "./use-besigner-app-context.js";
|
|
21
|
+
export function useAglynBesignerSetPanel() {
|
|
22
|
+
const app = useBesignerAppContext();
|
|
23
|
+
return useCallback((name, panel)=>{
|
|
24
|
+
setBesignerPanel(app, {
|
|
25
|
+
panel: name,
|
|
26
|
+
value: (prev, panels)=>_isFnT(panel) ? panel(prev, panels) : panel
|
|
27
|
+
});
|
|
28
|
+
}, [
|
|
29
|
+
app
|
|
30
|
+
]);
|
|
31
|
+
}
|
|
32
|
+
export function useAglynBesignerPanel(name) {
|
|
33
|
+
var _app_interface;
|
|
34
|
+
const app = useBesignerAppContext();
|
|
35
|
+
const value = useSubscribable(app == null ? void 0 : (_app_interface = app.interface) == null ? void 0 : _app_interface.panels, undefined, (panels)=>panels == null ? void 0 : panels[name], [
|
|
36
|
+
name,
|
|
37
|
+
app
|
|
38
|
+
]);
|
|
39
|
+
const setPanel = useAglynBesignerSetPanel().bind(null, name);
|
|
40
|
+
return [
|
|
41
|
+
value,
|
|
42
|
+
setPanel
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
export default useAglynBesignerPanel;
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=use-aglyn-besigner-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/besigner/feature/designer/src/lib/hooks/use-aglyn-besigner-panel.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n type BesignerPanelItem,\n type BesignerPanelKey,\n type BesignerPanelsState,\n setBesignerPanel,\n} from '@aglyn/besigner'\nimport { useSubscribable } from '@aglyn/shared-ui-jsx'\nimport { _isFnT } from '@aglyn/shared-util-tools'\nimport { useCallback } from 'react'\nimport useBesignerAppContext from './use-besigner-app-context'\n\nexport function useAglynBesignerSetPanel(): (\n name: BesignerPanelKey,\n panel:\n | BesignerPanelItem\n | ((\n prev: BesignerPanelItem,\n panels: BesignerPanelsState,\n ) => BesignerPanelItem),\n) => void {\n const app = useBesignerAppContext()\n return useCallback(\n (\n name: BesignerPanelKey,\n panel:\n | BesignerPanelItem\n | ((\n prev: BesignerPanelItem,\n panels: BesignerPanelsState,\n ) => BesignerPanelItem),\n ) => {\n setBesignerPanel(app, {\n panel: name,\n value: (prev, panels) => (_isFnT(panel) ? panel(prev, panels) : panel),\n })\n },\n [app],\n )\n}\n\nexport function useAglynBesignerPanel(\n name: BesignerPanelKey,\n): [\n value: BesignerPanelItem | undefined,\n setValue: (\n panel:\n | BesignerPanelItem\n | ((\n prev: BesignerPanelItem,\n panels: BesignerPanelsState,\n ) => BesignerPanelItem),\n ) => void,\n] {\n const app = useBesignerAppContext()\n const value = useSubscribable<BesignerPanelItem | undefined>(\n app?.interface?.panels,\n undefined,\n (panels) => panels?.[name],\n [name, app],\n )\n const setPanel = useAglynBesignerSetPanel().bind(null, name)\n\n return [value, setPanel]\n}\n\nexport default useAglynBesignerPanel\n"],"names":["setBesignerPanel","useSubscribable","_isFnT","useCallback","useBesignerAppContext","useAglynBesignerSetPanel","app","name","panel","value","prev","panels","useAglynBesignerPanel","interface","undefined","setPanel","bind"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAIEA,gBAAgB,QACX,kBAAiB;AACxB,SAASC,eAAe,QAAQ,uBAAsB;AACtD,SAASC,MAAM,QAAQ,2BAA0B;AACjD,SAASC,WAAW,QAAQ,QAAO;AACnC,OAAOC,2BAA2B,gCAA4B;AAE9D,OAAO,SAASC;IASd,MAAMC,MAAMF;IACZ,OAAOD,YACL,CACEI,MACAC;QAOAR,iBAAiBM,KAAK;YACpBE,OAAOD;YACPE,OAAO,CAACC,MAAMC,SAAYT,OAAOM,SAASA,MAAME,MAAMC,UAAUH;QAClE;IACF,GACA;QAACF;KAAI;AAET;AAEA,OAAO,SAASM,sBACdL,IAAsB;QAcpBD;IAFF,MAAMA,MAAMF;IACZ,MAAMK,QAAQR,gBACZK,wBAAAA,iBAAAA,IAAKO,SAAS,qBAAdP,eAAgBK,MAAM,EACtBG,WACA,CAACH,SAAWA,0BAAAA,MAAQ,CAACJ,KAAK,EAC1B;QAACA;QAAMD;KAAI;IAEb,MAAMS,WAAWV,2BAA2BW,IAAI,CAAC,MAAMT;IAEvD,OAAO;QAACE;QAAOM;KAAS;AAC1B;AAEA,eAAeH,sBAAqB"}
|