@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 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/besigner/feature/designer/src/lib/components/app-bar-breadcrumbs.component.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\nimport type * as Aglyn from '@aglyn/aglyn'\nimport { canvas } from '@aglyn/aglyn'\nimport * as Besigner from '@aglyn/besigner'\nimport {\n generateComponentClassKeys,\n mergeSxProps,\n styled,\n} from '@aglyn/shared-ui-theme'\nimport {\n alpha,\n AppBar as MuiAppBar,\n type AppBarProps as MuiAppBarProps,\n Breadcrumbs as MuiBreadcrumbs,\n breadcrumbsClasses,\n type BreadcrumbsProps as MuiBreadcrumbsProps,\n ButtonBase as MuiButtonBase,\n type ButtonBaseProps as ButtonBaseProps,\n Chip,\n Stack,\n Toolbar as MuiToolbar,\n} from '@mui/material'\nimport clsx from 'clsx'\nimport { observer } from 'mobx-react-lite'\nimport { forwardRef, useCallback, useEffect, useRef } from 'react'\nimport useLeafDrop from '../hooks/use-leaf-drop'\n\nconst breadcrumbItemClassKey = generateComponentClassKeys('BreadcrumbItem', [\n 'root',\n 'lastItem',\n 'hovered',\n])\n\nconst StyledBreadcrumbs = styled(MuiBreadcrumbs)(({ theme }) => {\n const tv = (theme as any).vars || theme\n return {\n lineHeight: 1,\n fontSize: 11,\n overflowX: 'auto',\n\n [`.${breadcrumbsClasses.ol}`]: {\n flexWrap: 'nowrap',\n whiteSpace: 'nowrap',\n },\n [`.${breadcrumbsClasses.separator}`]: {\n margin: 0,\n padding: 0,\n },\n [`.${breadcrumbsClasses.li}`]: {\n marginLeft: theme.spacing(-0.5),\n [`.${breadcrumbItemClassKey.root}`]: {\n fontSize: 'inherit',\n padding: theme.spacing(0.75),\n paddingLeft: theme.spacing(1.75),\n paddingRight: theme.spacing(1.75),\n marginLeft: theme.spacing(-0.5),\n clipPath: `polygon(calc(100% - ${theme.spacing(\n 1,\n )}) 0px, 100% 50%, calc(100% - ${theme.spacing(\n 1,\n )}) 100%, 0% 100%, ${theme.spacing(1)} 50%, 0% 0%)`,\n\n color: tv.palette.text.primary,\n background: `rgba(${tv.palette.primary.lightChannel} / ${theme.palette.action.hoverOpacity})`,\n [`:hover, .${breadcrumbItemClassKey.hovered}`]: {\n background: `rgba(${tv.palette.primary.lightChannel} / ${theme.palette.action.activatedOpacity})`,\n },\n [`:focus`]: {\n background: `rgba(${tv.palette.primary.lightChannel} / ${theme.palette.action.focusOpacity})`,\n },\n [`:active`]: {\n background: `rgba(${tv.palette.primary.lightChannel} / ${theme.palette.action.activatedOpacity})`,\n },\n },\n\n [':before']: {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n height: '100%',\n width: `calc(${theme.spacing(1)} + 1px)`,\n backgroundColor: tv.palette.divider,\n marginLeft: theme.spacing(-0.5),\n clipPath: `polygon(calc(100% - ${theme.spacing(\n 1,\n )}) 0px, 100% 50%, calc(100% - ${theme.spacing(\n 1,\n )}) 100%, 0% 100%, ${theme.spacing(1)} 50%, 0% 0%)`,\n },\n\n [`:first-of-type .${breadcrumbItemClassKey.root}`]: {\n clipPath: `polygon(calc(100% - ${theme.spacing(\n 1,\n )}) 0px, 100% 50%, calc(100% - ${theme.spacing(\n 1,\n )}) 100%, 0% 100%, 0% 0%, 0% 0%)`,\n },\n\n [[\n `:last-of-type .${breadcrumbItemClassKey.root}`,\n `.${breadcrumbItemClassKey.root} .${breadcrumbItemClassKey.lastItem}`,\n ].join()]: {\n color: tv.palette.text.primary,\n background: `rgba(${tv.palette.secondary.lightChannel} / ${theme.palette.action.selectedOpacity})`,\n [`:hover, ${breadcrumbItemClassKey.hovered}`]: {\n background: `rgba(${tv.palette.secondary.lightChannel} / ${theme.palette.action.activatedOpacity})`,\n },\n [`:focus, .Mui-focusVisible`]: {\n background: `rgba(${tv.palette.secondary.lightChannel} / ${theme.palette.action.focusOpacity})`,\n },\n [`:active`]: {\n background: `rgba(${tv.palette.secondary.lightChannel} / ${theme.palette.action.hoverOpacity})`,\n },\n },\n },\n }\n})\n\nexport interface BreadcrumbItemProps\n extends Partial<\n Omit<\n ButtonBaseProps<'button'>,\n 'onClick' | 'onMouseEnter' | 'onFocusVisible'\n >\n > {\n $id: Aglyn.NodeId\n lastItem?: boolean\n onClick?: (e, node: Aglyn.NodeSchema<any>) => void\n onMouseEnter?: (e, node: Aglyn.NodeSchema<any>) => void\n onFocusVisible?: (e, node: Aglyn.NodeSchema<any>) => void\n}\n\nconst BreadcrumbItem = observer((props: BreadcrumbItemProps) => {\n const {\n children,\n $id,\n lastItem,\n onClick,\n onMouseEnter,\n onFocusVisible,\n ...rest\n } = props\n const node = canvas.getNode($id)\n const isHovered = Besigner.focus.isNodeHovered(node)\n const { setNodeRef: setDroppableNodeRef } = useLeafDrop(\n node,\n undefined,\n 'breadcrumbs',\n )\n\n const handleClick = useCallback(\n (e) => {\n onClick && onClick(e, node)\n },\n [onClick, node],\n )\n\n const handleMouseEnter = useCallback(\n (e) => {\n onMouseEnter && onMouseEnter(e, node)\n },\n [onMouseEnter, node],\n )\n\n const handleFocusVisible = useCallback(\n (e) => {\n onFocusVisible && onFocusVisible(e, node)\n },\n [onFocusVisible, node],\n )\n\n return (\n <MuiButtonBase\n ref={setDroppableNodeRef}\n onClick={handleClick}\n onMouseEnter={handleMouseEnter}\n onFocusVisible={handleFocusVisible}\n className={clsx(breadcrumbItemClassKey.root, {\n [breadcrumbItemClassKey.lastItem]: lastItem,\n [breadcrumbItemClassKey.hovered]: isHovered,\n })}\n {...rest}\n >\n <>\n {node?.labelShort}\n {children}\n </>\n </MuiButtonBase>\n )\n})\n\ninterface BreadcrumbsProps extends Partial<MuiBreadcrumbsProps> {}\n\nconst Breadcrumbs = observer((props: BreadcrumbsProps) => {\n const { children, sx, ...rest } = props\n const lastSelected = Besigner.focus.getLastSelected()\n const selectionCount = Besigner.focus.selectionCount()\n\n const handleClick = useCallback((e, node: Aglyn.NodeSchema<any>) => {\n Besigner.focus.setSelectedNode(node)\n }, [])\n\n const handleMouseEnter = useCallback((e, node: Aglyn.NodeSchema<any>) => {\n Besigner.focus.setHoveredNode(node)\n }, [])\n\n const handleFocusVisible = useCallback((e, node: Aglyn.NodeSchema<any>) => {\n Besigner.focus.setHoveredNode(node)\n }, [])\n\n return (\n <StyledBreadcrumbs\n separator={null}\n aria-label=\"breadcrumb\"\n sx={sx}\n {...rest}\n >\n {lastSelected?.breadcrumbPath.map(($id) => {\n return (\n <BreadcrumbItem\n key={$id}\n $id={$id}\n onClick={handleClick}\n onMouseEnter={handleMouseEnter}\n onFocusVisible={handleFocusVisible}\n lastItem={lastSelected?.$id === $id}\n />\n )\n })}\n {selectionCount > 1 ? (\n <Chip\n label={`+${selectionCount - 1} selected`}\n size=\"small\"\n variant=\"outlined\"\n color=\"primary\"\n sx={{ ml: 0.5, height: 18, fontSize: '0.65rem' }}\n />\n ) : null}\n </StyledBreadcrumbs>\n )\n})\n\nexport interface AppBarBreadcrumbsComponentProps\n extends Partial<MuiAppBarProps> {}\n\nexport const AppBarBreadcrumbsComponent = forwardRef<\n any,\n AppBarBreadcrumbsComponentProps\n>((props, ref) => {\n const { children, sx, ...rest } = props\n\n // This strip is the canvas column's bottom chrome, so it is what a\n // viewport-fixed affordance in that corner would clip (AGL-2486). It\n // publishes its own height as the stand-off the Assist launcher reads;\n // measured rather than assumed, because \"24px dense toolbar plus a\n // border\" is exactly the kind of constant that stops being true the\n // first time a chip wraps.\n const stripRef = useRef<HTMLElement | null>(null)\n const setRefs = useCallback(\n (node: HTMLElement | null) => {\n stripRef.current = node\n if (typeof ref === 'function') ref(node)\n else if (ref) (ref as { current: unknown }).current = node\n },\n [ref],\n )\n useEffect(() => {\n const node = stripRef.current\n if (!node) return undefined\n const root = document.documentElement\n const property = '--aglyn-assist-inset-bottom'\n const publish = () => {\n const { height } = node.getBoundingClientRect()\n root.style.setProperty(property, `${Math.round(height) + 20}px`)\n }\n publish()\n // Guarded: jsdom has no ResizeObserver, and the initial publish above\n // is the part that matters — the observer only keeps it honest.\n const observer =\n typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(publish)\n observer?.observe(node)\n return () => {\n observer?.disconnect()\n root.style.removeProperty(property)\n }\n }, [])\n\n return (\n <MuiAppBar\n ref={setRefs}\n id=\"aglyn:besigner-appbar-secondary\"\n aria-label=\"secondary app toolbar\"\n position=\"static\"\n color=\"surface\"\n component=\"header\"\n elevation={0}\n sx={mergeSxProps(\n {\n top: 0,\n // Stack above the canvas selection overlays (portaled, low z).\n position: 'relative',\n zIndex: 'appBar',\n borderBottomWidth: '1px',\n borderBottomStyle: 'solid',\n borderBottomColor: 'divider',\n [`& .MuiToolbar-root`]: { minHeight: 24 },\n },\n sx,\n )}\n {...rest}\n >\n <MuiToolbar variant=\"dense\" sx={{ px: { xs: 0, sm: 0 } }}>\n <Stack\n direction=\"row\"\n spacing={1}\n sx={{\n alignItems: \"center\",\n justifyContent: \"space-between\",\n width: 1\n }}>\n <Breadcrumbs />\n {children}\n </Stack>\n </MuiToolbar>\n </MuiAppBar>\n );\n})\n\nAppBarBreadcrumbsComponent.displayName = 'AppBarBreadcrumbsComponent'\nAppBarBreadcrumbsComponent.aglyn = true\n\nexport default AppBarBreadcrumbsComponent\n"],"names":["canvas","Besigner","generateComponentClassKeys","mergeSxProps","styled","AppBar","MuiAppBar","Breadcrumbs","MuiBreadcrumbs","breadcrumbsClasses","ButtonBase","MuiButtonBase","Chip","Stack","Toolbar","MuiToolbar","clsx","observer","forwardRef","useCallback","useEffect","useRef","useLeafDrop","breadcrumbItemClassKey","StyledBreadcrumbs","theme","tv","vars","lineHeight","fontSize","overflowX","ol","flexWrap","whiteSpace","separator","margin","padding","li","marginLeft","spacing","root","paddingLeft","paddingRight","clipPath","color","palette","text","primary","background","lightChannel","action","hoverOpacity","hovered","activatedOpacity","focusOpacity","content","position","top","height","width","backgroundColor","divider","lastItem","join","secondary","selectedOpacity","BreadcrumbItem","props","children","$id","onClick","onMouseEnter","onFocusVisible","rest","node","getNode","isHovered","focus","isNodeHovered","setNodeRef","setDroppableNodeRef","undefined","handleClick","e","handleMouseEnter","handleFocusVisible","ref","className","labelShort","sx","lastSelected","getLastSelected","selectionCount","setSelectedNode","setHoveredNode","aria-label","breadcrumbPath","map","label","size","variant","ml","AppBarBreadcrumbsComponent","stripRef","setRefs","current","document","documentElement","property","publish","getBoundingClientRect","style","setProperty","Math","round","ResizeObserver","observe","disconnect","removeProperty","id","component","elevation","zIndex","borderBottomWidth","borderBottomStyle","borderBottomColor","minHeight","px","xs","sm","direction","alignItems","justifyContent","displayName","aglyn"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC;;;AAGD,SAASA,MAAM,QAAQ,eAA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@@
|
|
|
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 AppBarProps } from '@mui/material/AppBar';
|
|
18
|
+
export interface AppBarPrimaryComponentProps extends Partial<AppBarProps> {
|
|
19
|
+
}
|
|
20
|
+
export declare const AppBarPrimaryComponent: import("react").ForwardRefExoticComponent<Omit<AppBarPrimaryComponentProps, "ref"> & import("react").RefAttributes<any>>;
|
|
21
|
+
export default AppBarPrimaryComponent;
|
|
@@ -0,0 +1,108 @@
|
|
|
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 } 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 { ICON_VARIANT_THEME_DARK, ICON_VARIANT_THEME_LIGHT, ICON_VARIANT_THEME_SYSTEM } from "@aglyn/shared-data-enums";
|
|
20
|
+
import { AglynSvgIcon, BesignerSvgLogo, HelpTip } from "@aglyn/shared-ui-jsx";
|
|
21
|
+
import { MdiIcon } from "@aglyn/shared-ui-jsx";
|
|
22
|
+
import { getThemeModeDisplayName, styled } from "@aglyn/shared-ui-theme";
|
|
23
|
+
import AppBar from "@mui/material/AppBar";
|
|
24
|
+
import Box from "@mui/material/Box";
|
|
25
|
+
import MuiIconButton from "@mui/material/IconButton";
|
|
26
|
+
import { useColorScheme } from "@mui/material/styles";
|
|
27
|
+
import Toolbar from "@mui/material/Toolbar";
|
|
28
|
+
import MuiTooltip from "@mui/material/Tooltip";
|
|
29
|
+
import { forwardRef } from "react";
|
|
30
|
+
import { besignerDocsUrl } from "../utils/docs-help.js";
|
|
31
|
+
const AppBarPrimary = styled(AppBar, {
|
|
32
|
+
name: 'AglynAppBarPrimary'
|
|
33
|
+
})(({ theme })=>{
|
|
34
|
+
const tv = theme.vars || theme;
|
|
35
|
+
return {
|
|
36
|
+
top: 0,
|
|
37
|
+
// backgroundColor: theme.palette.background.paper,
|
|
38
|
+
borderBottom: `1px solid ${tv.palette.divider}`
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
export const AppBarPrimaryComponent = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
42
|
+
const { children } = props, rest = _object_without_properties_loose(props, [
|
|
43
|
+
"children"
|
|
44
|
+
]);
|
|
45
|
+
const { mode, setMode } = useColorScheme();
|
|
46
|
+
const themeModeDisplayName = getThemeModeDisplayName(mode);
|
|
47
|
+
return /*#__PURE__*/ _jsx(AppBarPrimary, _extends({
|
|
48
|
+
ref: ref,
|
|
49
|
+
id: "aglyn:besigner-appbar-primary",
|
|
50
|
+
"aria-label": "primary app toolbar",
|
|
51
|
+
position: "static",
|
|
52
|
+
color: "surface",
|
|
53
|
+
elevation: 0
|
|
54
|
+
}, rest, {
|
|
55
|
+
children: /*#__PURE__*/ _jsxs(Toolbar, {
|
|
56
|
+
children: [
|
|
57
|
+
/*#__PURE__*/ _jsx(AglynSvgIcon, {
|
|
58
|
+
sx: {
|
|
59
|
+
fontSize: `1.75em`,
|
|
60
|
+
borderRadius: (theme)=>theme.shape.appIconBorderRadius,
|
|
61
|
+
// boxShadow: theme.shadows[1],
|
|
62
|
+
ml: -1.5,
|
|
63
|
+
mr: 0.75
|
|
64
|
+
}
|
|
65
|
+
}),
|
|
66
|
+
/*#__PURE__*/ _jsx(BesignerSvgLogo, {
|
|
67
|
+
sx: {
|
|
68
|
+
width: 'auto'
|
|
69
|
+
},
|
|
70
|
+
fontSize: "medium",
|
|
71
|
+
color: "inherit"
|
|
72
|
+
}),
|
|
73
|
+
/*#__PURE__*/ _jsx(HelpTip, {
|
|
74
|
+
title: "The Besigner",
|
|
75
|
+
excerpt: "The visual editor: drag elements onto the canvas, edit text inline, style per breakpoint, and publish a version.",
|
|
76
|
+
href: besignerDocsUrl('besigner', '#what-you-can-do'),
|
|
77
|
+
sx: {
|
|
78
|
+
ml: 0.5,
|
|
79
|
+
fontSize: '0.9em'
|
|
80
|
+
}
|
|
81
|
+
}),
|
|
82
|
+
/*#__PURE__*/ _jsx(Box, {
|
|
83
|
+
sx: {
|
|
84
|
+
flexGrow: 1
|
|
85
|
+
}
|
|
86
|
+
}),
|
|
87
|
+
/*#__PURE__*/ _jsx(MuiTooltip, {
|
|
88
|
+
"aria-label": "switch theme mode",
|
|
89
|
+
title: `${themeModeDisplayName} theme`,
|
|
90
|
+
children: /*#__PURE__*/ _jsx(MuiIconButton, {
|
|
91
|
+
onClick: ()=>{
|
|
92
|
+
setMode(mode === 'dark' ? 'system' : mode === 'light' ? 'dark' : mode === 'system' || mode === undefined ? 'light' : 'system');
|
|
93
|
+
},
|
|
94
|
+
children: /*#__PURE__*/ _jsx(MdiIcon, {
|
|
95
|
+
path: mode === 'dark' ? ICON_VARIANT_THEME_DARK.path : mode === 'light' ? ICON_VARIANT_THEME_LIGHT.path : ICON_VARIANT_THEME_SYSTEM.path
|
|
96
|
+
})
|
|
97
|
+
})
|
|
98
|
+
}),
|
|
99
|
+
children
|
|
100
|
+
]
|
|
101
|
+
})
|
|
102
|
+
}));
|
|
103
|
+
});
|
|
104
|
+
AppBarPrimaryComponent.displayName = 'AppBarPrimaryComponent';
|
|
105
|
+
AppBarPrimaryComponent.aglyn = true;
|
|
106
|
+
export default AppBarPrimaryComponent;
|
|
107
|
+
|
|
108
|
+
//# sourceMappingURL=app-bar-primary.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/besigner/feature/designer/src/lib/components/app-bar-primary.component.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 {\n ICON_VARIANT_THEME_DARK,\n ICON_VARIANT_THEME_LIGHT,\n ICON_VARIANT_THEME_SYSTEM,\n} from '@aglyn/shared-data-enums'\nimport { AglynSvgIcon, BesignerSvgLogo, HelpTip } from '@aglyn/shared-ui-jsx'\nimport { MdiIcon } from '@aglyn/shared-ui-jsx'\nimport { getThemeModeDisplayName, styled } from '@aglyn/shared-ui-theme'\nimport AppBar, { type AppBarProps } from '@mui/material/AppBar'\nimport Box from '@mui/material/Box'\nimport MuiIconButton from '@mui/material/IconButton'\nimport { useColorScheme } from '@mui/material/styles'\nimport Toolbar from '@mui/material/Toolbar'\nimport MuiTooltip from '@mui/material/Tooltip'\nimport { forwardRef } from 'react'\nimport { besignerDocsUrl } from '../utils/docs-help'\n\nconst AppBarPrimary = styled(AppBar, {\n name: 'AglynAppBarPrimary',\n})(({ theme }) => {\n const tv = (theme as any).vars || theme\n return {\n top: 0,\n // backgroundColor: theme.palette.background.paper,\n borderBottom: `1px solid ${tv.palette.divider}`,\n }\n})\n\nexport interface AppBarPrimaryComponentProps extends Partial<AppBarProps> {}\n\nexport const AppBarPrimaryComponent = forwardRef<\n any,\n AppBarPrimaryComponentProps\n>((props, ref) => {\n const { children, ...rest } = props\n const { mode, setMode } = useColorScheme()\n const themeModeDisplayName = getThemeModeDisplayName(mode)\n\n return (\n <AppBarPrimary\n ref={ref}\n id=\"aglyn:besigner-appbar-primary\"\n aria-label=\"primary app toolbar\"\n position=\"static\"\n color=\"surface\"\n elevation={0}\n {...rest}\n >\n <Toolbar>\n <AglynSvgIcon\n sx={{\n fontSize: `1.75em`,\n borderRadius: (theme) => theme.shape.appIconBorderRadius,\n // boxShadow: theme.shadows[1],\n ml: -1.5,\n mr: 0.75,\n }}\n />\n <BesignerSvgLogo\n sx={{ width: 'auto' }}\n fontSize=\"medium\"\n color=\"inherit\"\n />\n {/* The editor's one \"what is all this\" link (AGL-2167). It sits on\n the product mark rather than in a panel because it is the only\n help here that is about the whole canvas — every other tip in\n the besigner explains the control it stands next to. */}\n <HelpTip\n title=\"The Besigner\"\n excerpt=\"The visual editor: drag elements onto the canvas, edit text inline, style per breakpoint, and publish a version.\"\n href={besignerDocsUrl('besigner', '#what-you-can-do')}\n sx={{ ml: 0.5, fontSize: '0.9em' }}\n />\n <Box sx={{ flexGrow: 1 }} />\n <MuiTooltip\n aria-label=\"switch theme mode\"\n title={`${themeModeDisplayName} theme`}\n >\n <MuiIconButton\n onClick={() => {\n setMode(\n mode === 'dark'\n ? 'system'\n : mode === 'light'\n ? 'dark'\n : mode === 'system' || mode === undefined\n ? 'light'\n : 'system',\n )\n }}\n >\n <MdiIcon\n path={\n mode === 'dark'\n ? ICON_VARIANT_THEME_DARK.path\n : mode === 'light'\n ? ICON_VARIANT_THEME_LIGHT.path\n : ICON_VARIANT_THEME_SYSTEM.path\n }\n />\n </MuiIconButton>\n </MuiTooltip>\n {children}\n </Toolbar>\n </AppBarPrimary>\n )\n})\n\nAppBarPrimaryComponent.displayName = 'AppBarPrimaryComponent'\nAppBarPrimaryComponent.aglyn = true\n\nexport default AppBarPrimaryComponent\n"],"names":["ICON_VARIANT_THEME_DARK","ICON_VARIANT_THEME_LIGHT","ICON_VARIANT_THEME_SYSTEM","AglynSvgIcon","BesignerSvgLogo","HelpTip","MdiIcon","getThemeModeDisplayName","styled","AppBar","Box","MuiIconButton","useColorScheme","Toolbar","MuiTooltip","forwardRef","besignerDocsUrl","AppBarPrimary","name","theme","tv","vars","top","borderBottom","palette","divider","AppBarPrimaryComponent","props","ref","children","rest","mode","setMode","themeModeDisplayName","id","aria-label","position","color","elevation","sx","fontSize","borderRadius","shape","appIconBorderRadius","ml","mr","width","title","excerpt","href","flexGrow","onClick","undefined","path","displayName","aglyn"],"mappings":";;;AAAA;;;;;;;;;;;;;;;CAeC,GAED,SACEA,uBAAuB,EACvBC,wBAAwB,EACxBC,yBAAyB,QACpB,2BAA0B;AACjC,SAASC,YAAY,EAAEC,eAAe,EAAEC,OAAO,QAAQ,uBAAsB;AAC7E,SAASC,OAAO,QAAQ,uBAAsB;AAC9C,SAASC,uBAAuB,EAAEC,MAAM,QAAQ,yBAAwB;AACxE,OAAOC,YAAkC,uBAAsB;AAC/D,OAAOC,SAAS,oBAAmB;AACnC,OAAOC,mBAAmB,2BAA0B;AACpD,SAASC,cAAc,QAAQ,uBAAsB;AACrD,OAAOC,aAAa,wBAAuB;AAC3C,OAAOC,gBAAgB,wBAAuB;AAC9C,SAASC,UAAU,QAAQ,QAAO;AAClC,SAASC,eAAe,QAAQ,wBAAoB;AAEpD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wBAAwBqD,IAAI,GAC5BtB,SAAS,UACT9B,yBAAyBoD,IAAI,GAC7BnD,0BAA0BmD,IAAI;;;;gBAKzCxB;;;;AAIT,GAAE;AAEFH,uBAAuB4B,WAAW,GAAG;AACrC5B,uBAAuB6B,KAAK,GAAG;AAE/B,eAAe7B,uBAAsB"}
|
|
@@ -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
|
+
*/
|
|
17
|
+
import { type AppBarProps as MuiAppBarProps } from '@mui/material';
|
|
18
|
+
export interface AppBarSecondaryComponentProps extends Partial<MuiAppBarProps> {
|
|
19
|
+
}
|
|
20
|
+
export declare const AppBarSecondaryComponent: import("react").ForwardRefExoticComponent<Omit<AppBarSecondaryComponentProps, "ref"> & import("react").RefAttributes<any>>;
|
|
21
|
+
export default AppBarSecondaryComponent;
|
|
@@ -0,0 +1,94 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2023 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 { mergeSxProps } from "@aglyn/shared-ui-theme";
|
|
20
|
+
import { AppBar as MuiAppBar, Stack, Toolbar as MuiToolbar } from "@mui/material";
|
|
21
|
+
import { forwardRef } from "react";
|
|
22
|
+
import AddControlsComponent from "./add-controls.component.js";
|
|
23
|
+
import DevicePreviewControlsComponent from "./device-preview-controls.component.js";
|
|
24
|
+
import HistoryControlsComponent from "./history-controls.component.js";
|
|
25
|
+
import PanelControlsComponent from "./panel-controls.component.js";
|
|
26
|
+
import { useBesignerToolbarExtras } from "../contexts/toolbar-extras-context.js";
|
|
27
|
+
import BindingPreviewControlsComponent from "./binding-preview-controls.component.js";
|
|
28
|
+
import SchemePreviewControlsComponent from "./scheme-preview-controls.component.js";
|
|
29
|
+
export const AppBarSecondaryComponent = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
30
|
+
const { children, sx } = props, rest = _object_without_properties_loose(props, [
|
|
31
|
+
"children",
|
|
32
|
+
"sx"
|
|
33
|
+
]);
|
|
34
|
+
const toolbarExtras = useBesignerToolbarExtras();
|
|
35
|
+
return /*#__PURE__*/ _jsx(MuiAppBar, _extends({
|
|
36
|
+
ref: ref,
|
|
37
|
+
id: "aglyn:besigner-appbar-secondary",
|
|
38
|
+
"aria-label": "secondary app toolbar",
|
|
39
|
+
position: "static",
|
|
40
|
+
color: "surface",
|
|
41
|
+
component: "header",
|
|
42
|
+
elevation: 0,
|
|
43
|
+
sx: mergeSxProps({
|
|
44
|
+
top: 0,
|
|
45
|
+
// Stack above the canvas selection overlays (portaled, low z).
|
|
46
|
+
position: 'relative',
|
|
47
|
+
zIndex: 'appBar',
|
|
48
|
+
borderBottomWidth: '1px',
|
|
49
|
+
borderBottomStyle: 'solid',
|
|
50
|
+
borderBottomColor: 'divider',
|
|
51
|
+
[`& .MuiToolbar-root`]: {
|
|
52
|
+
minHeight: 40
|
|
53
|
+
}
|
|
54
|
+
}, sx)
|
|
55
|
+
}, rest, {
|
|
56
|
+
children: /*#__PURE__*/ _jsx(MuiToolbar, {
|
|
57
|
+
variant: "dense",
|
|
58
|
+
sx: {
|
|
59
|
+
pr: {
|
|
60
|
+
xs: 2,
|
|
61
|
+
sm: 2
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
65
|
+
direction: "row",
|
|
66
|
+
spacing: 1,
|
|
67
|
+
sx: {
|
|
68
|
+
alignItems: "center",
|
|
69
|
+
justifyContent: "space-between",
|
|
70
|
+
width: 1
|
|
71
|
+
},
|
|
72
|
+
children: [
|
|
73
|
+
/*#__PURE__*/ _jsx(AddControlsComponent, {}),
|
|
74
|
+
/*#__PURE__*/ _jsx(HistoryControlsComponent, {
|
|
75
|
+
sx: {
|
|
76
|
+
flexGrow: 1
|
|
77
|
+
}
|
|
78
|
+
}),
|
|
79
|
+
toolbarExtras,
|
|
80
|
+
/*#__PURE__*/ _jsx(BindingPreviewControlsComponent, {}),
|
|
81
|
+
/*#__PURE__*/ _jsx(SchemePreviewControlsComponent, {}),
|
|
82
|
+
/*#__PURE__*/ _jsx(DevicePreviewControlsComponent, {}),
|
|
83
|
+
/*#__PURE__*/ _jsx(PanelControlsComponent, {}),
|
|
84
|
+
children
|
|
85
|
+
]
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
}));
|
|
89
|
+
});
|
|
90
|
+
AppBarSecondaryComponent.displayName = 'AppBarSecondaryComponent';
|
|
91
|
+
AppBarSecondaryComponent.aglyn = true;
|
|
92
|
+
export default AppBarSecondaryComponent;
|
|
93
|
+
|
|
94
|
+
//# sourceMappingURL=app-bar-secondary.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/besigner/feature/designer/src/lib/components/app-bar-secondary.component.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\nimport { mergeSxProps } from '@aglyn/shared-ui-theme'\nimport {\n AppBar as MuiAppBar,\n type AppBarProps as MuiAppBarProps,\n Stack,\n Toolbar as MuiToolbar,\n} from '@mui/material'\nimport { forwardRef } from 'react'\nimport AddControlsComponent from './add-controls.component'\nimport DevicePreviewControlsComponent from './device-preview-controls.component'\nimport HistoryControlsComponent from './history-controls.component'\nimport PanelControlsComponent from './panel-controls.component'\nimport { useBesignerToolbarExtras } from '../contexts/toolbar-extras-context'\nimport BindingPreviewControlsComponent from './binding-preview-controls.component'\nimport SchemePreviewControlsComponent from './scheme-preview-controls.component'\n\nexport interface AppBarSecondaryComponentProps\n extends Partial<MuiAppBarProps> {}\n\nexport const AppBarSecondaryComponent = forwardRef<\n any,\n AppBarSecondaryComponentProps\n>((props, ref) => {\n const { children, sx, ...rest } = props\n const toolbarExtras = useBesignerToolbarExtras()\n\n return (\n <MuiAppBar\n ref={ref}\n id=\"aglyn:besigner-appbar-secondary\"\n aria-label=\"secondary app toolbar\"\n position=\"static\"\n color=\"surface\"\n component=\"header\"\n elevation={0}\n sx={mergeSxProps(\n {\n top: 0,\n // Stack above the canvas selection overlays (portaled, low z).\n position: 'relative',\n zIndex: 'appBar',\n borderBottomWidth: '1px',\n borderBottomStyle: 'solid',\n borderBottomColor: 'divider',\n [`& .MuiToolbar-root`]: { minHeight: 40 },\n },\n sx,\n )}\n {...rest}\n >\n <MuiToolbar variant=\"dense\" sx={{ pr: { xs: 2, sm: 2 } }}>\n <Stack\n direction=\"row\"\n spacing={1}\n sx={{\n alignItems: \"center\",\n justifyContent: \"space-between\",\n width: 1\n }}>\n <AddControlsComponent />\n <HistoryControlsComponent sx={{ flexGrow: 1 }} />\n {toolbarExtras}\n <BindingPreviewControlsComponent />\n <SchemePreviewControlsComponent />\n <DevicePreviewControlsComponent />\n {/*<InteractControlsComponent />*/}\n <PanelControlsComponent />\n {children}\n </Stack>\n </MuiToolbar>\n </MuiAppBar>\n );\n})\n\nAppBarSecondaryComponent.displayName = 'AppBarSecondaryComponent'\nAppBarSecondaryComponent.aglyn = true\n\nexport default AppBarSecondaryComponent\n"],"names":["mergeSxProps","AppBar","MuiAppBar","Stack","Toolbar","MuiToolbar","forwardRef","AddControlsComponent","DevicePreviewControlsComponent","HistoryControlsComponent","PanelControlsComponent","useBesignerToolbarExtras","BindingPreviewControlsComponent","SchemePreviewControlsComponent","AppBarSecondaryComponent","props","ref","children","sx","rest","toolbarExtras","id","aria-label","position","color","component","elevation","top","zIndex","borderBottomWidth","borderBottomStyle","borderBottomColor","minHeight","variant","pr","xs","sm","direction","spacing","alignItems","justifyContent","width","flexGrow","displayName","aglyn"],"mappings":";;;AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAASA,YAAY,QAAQ,yBAAwB;AACrD,SACEC,UAAUC,SAAS,EAEnBC,KAAK,EACLC,WAAWC,UAAU,QAChB,gBAAe;AACtB,SAASC,UAAU,QAAQ,QAAO;AAClC,OAAOC,0BAA0B,8BAA0B;AAC3D,OAAOC,oCAAoC,yCAAqC;AAChF,OAAOC,8BAA8B,kCAA8B;AACnE,OAAOC,4BAA4B,gCAA4B;AAC/D,SAASC,wBAAwB,QAAQ,wCAAoC;AAC7E,OAAOC,qCAAqC,0CAAsC;AAClF,OAAOC,oCAAoC,yCAAqC;AAKhF,OAAO,MAAMC,yCAA2BR,WAGtC,CAACS,OAAOC;IACR,MAAM,EAAEC,QAAQ,EAAEC,EAAE,EAAW,GAAGH,OAATI,wCAASJ;;;;IAClC,MAAMK,gBAAgBT;IAEtB,qBACE,KAACT;QACCc,KAAKA;QACLK,IAAG;QACHC,cAAW;QACXC,UAAS;QACTC,OAAM;QACNC,WAAU;QACVC,WAAW;QACXR,IAAIlB,aACF;YACE2B,KAAK;YACL,+DAA+D;YAC/DJ,UAAU;YACVK,QAAQ;YACRC,mBAAmB;YACnBC,mBAAmB;YACnBC,mBAAmB;YACnB,CAAC,CAAC,kBAAkB,CAAC,CAAC,EAAE;gBAAEC,WAAW;YAAG;QAC1C,GACAd;OAEEC;kBAEJ,cAAA,KAACd;YAAW4B,SAAQ;YAAQf,IAAI;gBAAEgB,IAAI;oBAAEC,IAAI;oBAAGC,IAAI;gBAAE;YAAE;sBACrD,cAAA,MAACjC;gBACCkC,WAAU;gBACVC,SAAS;gBACTpB,IAAI;oBACFqB,YAAY;oBACZC,gBAAgB;oBAChBC,OAAO;gBACT;;kCACA,KAAClC;kCACD,KAACE;wBAAyBS,IAAI;4BAAEwB,UAAU;wBAAE;;oBAC3CtB;kCACD,KAACR;kCACD,KAACC;kCACD,KAACL;kCAED,KAACE;oBACAO;;;;;AAKX,GAAE;AAEFH,yBAAyB6B,WAAW,GAAG;AACvC7B,yBAAyB8B,KAAK,GAAG;AAEjC,eAAe9B,yBAAwB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 BesignerPanelKey } from '@aglyn/besigner';
|
|
18
|
+
import { type WorkspacePanelComponentProps } from './workspace-panel.component';
|
|
19
|
+
export interface AsidePanelComponentProps extends WorkspacePanelComponentProps {
|
|
20
|
+
panel: BesignerPanelKey;
|
|
21
|
+
}
|
|
22
|
+
export declare const AsidePanelComponent: import("react").ForwardRefExoticComponent<Omit<AsidePanelComponentProps, "ref"> & import("react").RefAttributes<any>>;
|
|
23
|
+
export default AsidePanelComponent;
|