@elytracms/studio 0.0.1
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 +21 -0
- package/README.md +3 -0
- package/convex/assets.ts +107 -0
- package/convex/auth.config.ts +15 -0
- package/convex/auth.ts +50 -0
- package/convex/cliTokens.ts +63 -0
- package/convex/cms.ts +174 -0
- package/convex/content.ts +316 -0
- package/convex/delivery.ts +266 -0
- package/convex/functions.ts +35 -0
- package/convex/graphs.ts +51 -0
- package/convex/guard.ts +67 -0
- package/convex/http.ts +30 -0
- package/convex/members.ts +83 -0
- package/convex/publishing.ts +102 -0
- package/convex/references.ts +168 -0
- package/convex/schema.ts +173 -0
- package/convex/sync.ts +322 -0
- package/convex/tsconfig.json +12 -0
- package/convex/users.ts +23 -0
- package/convex/webhooks.ts +85 -0
- package/dist/components/assets/asset-library.d.ts +14 -0
- package/dist/components/assets/asset-library.js +191 -0
- package/dist/components/assets/asset-library.js.map +1 -0
- package/dist/components/assets/asset-metadata.d.ts +34 -0
- package/dist/components/assets/asset-metadata.js +40 -0
- package/dist/components/assets/asset-metadata.js.map +1 -0
- package/dist/components/assets/asset-search.d.ts +7 -0
- package/dist/components/assets/asset-search.js +12 -0
- package/dist/components/assets/asset-search.js.map +1 -0
- package/dist/components/assets/asset-selection.d.ts +17 -0
- package/dist/components/assets/asset-selection.js +33 -0
- package/dist/components/assets/asset-selection.js.map +1 -0
- package/dist/components/assets/assets-store.d.ts +51 -0
- package/dist/components/assets/assets-store.js +153 -0
- package/dist/components/assets/assets-store.js.map +1 -0
- package/dist/components/auth-context.d.ts +38 -0
- package/dist/components/auth-context.js +88 -0
- package/dist/components/auth-context.js.map +1 -0
- package/dist/components/backend-gate.d.ts +19 -0
- package/dist/components/backend-gate.js +63 -0
- package/dist/components/backend-gate.js.map +1 -0
- package/dist/components/breadcrumb-context.d.ts +39 -0
- package/dist/components/breadcrumb-context.js +38 -0
- package/dist/components/breadcrumb-context.js.map +1 -0
- package/dist/components/builder/blocks-model.d.ts +80 -0
- package/dist/components/builder/blocks-model.js +181 -0
- package/dist/components/builder/blocks-model.js.map +1 -0
- package/dist/components/builder/blocks-panel.d.ts +44 -0
- package/dist/components/builder/blocks-panel.js +147 -0
- package/dist/components/builder/blocks-panel.js.map +1 -0
- package/dist/components/builder/builder-store.d.ts +69 -0
- package/dist/components/builder/builder-store.js +294 -0
- package/dist/components/builder/builder-store.js.map +1 -0
- package/dist/components/builder/canvas-stylesheet.d.ts +4 -0
- package/dist/components/builder/canvas-stylesheet.js +24 -0
- package/dist/components/builder/canvas-stylesheet.js.map +1 -0
- package/dist/components/builder/canvas.d.ts +8 -0
- package/dist/components/builder/canvas.js +723 -0
- package/dist/components/builder/canvas.js.map +1 -0
- package/dist/components/builder/clipboard-actions.d.ts +93 -0
- package/dist/components/builder/clipboard-actions.js +246 -0
- package/dist/components/builder/clipboard-actions.js.map +1 -0
- package/dist/components/builder/composition-field-editor.d.ts +11 -0
- package/dist/components/builder/composition-field-editor.js +150 -0
- package/dist/components/builder/composition-field-editor.js.map +1 -0
- package/dist/components/builder/composition-scope.d.ts +16 -0
- package/dist/components/builder/composition-scope.js +7 -0
- package/dist/components/builder/composition-scope.js.map +1 -0
- package/dist/components/builder/drag-session.d.ts +41 -0
- package/dist/components/builder/drag-session.js +51 -0
- package/dist/components/builder/drag-session.js.map +1 -0
- package/dist/components/builder/fixture-thumbnail.d.ts +18 -0
- package/dist/components/builder/fixture-thumbnail.js +97 -0
- package/dist/components/builder/fixture-thumbnail.js.map +1 -0
- package/dist/components/builder/inline-edit.d.ts +142 -0
- package/dist/components/builder/inline-edit.js +136 -0
- package/dist/components/builder/inline-edit.js.map +1 -0
- package/dist/components/builder/insert-context.d.ts +14 -0
- package/dist/components/builder/insert-context.js +65 -0
- package/dist/components/builder/insert-context.js.map +1 -0
- package/dist/components/builder/insert-menu.d.ts +9 -0
- package/dist/components/builder/insert-menu.js +9 -0
- package/dist/components/builder/insert-menu.js.map +1 -0
- package/dist/components/builder/layout-inspector.d.ts +14 -0
- package/dist/components/builder/layout-inspector.js +84 -0
- package/dist/components/builder/layout-inspector.js.map +1 -0
- package/dist/components/builder/node-factory.d.ts +17 -0
- package/dist/components/builder/node-factory.js +90 -0
- package/dist/components/builder/node-factory.js.map +1 -0
- package/dist/components/builder/page-tree.d.ts +3 -0
- package/dist/components/builder/page-tree.js +207 -0
- package/dist/components/builder/page-tree.js.map +1 -0
- package/dist/components/builder/property-inspector.d.ts +1 -0
- package/dist/components/builder/property-inspector.js +233 -0
- package/dist/components/builder/property-inspector.js.map +1 -0
- package/dist/components/builder/rich-text-toolbar.d.ts +4 -0
- package/dist/components/builder/rich-text-toolbar.js +104 -0
- package/dist/components/builder/rich-text-toolbar.js.map +1 -0
- package/dist/components/builder/spacing-handles.d.ts +22 -0
- package/dist/components/builder/spacing-handles.js +213 -0
- package/dist/components/builder/spacing-handles.js.map +1 -0
- package/dist/components/cms/asset-picker.d.ts +12 -0
- package/dist/components/cms/asset-picker.js +60 -0
- package/dist/components/cms/asset-picker.js.map +1 -0
- package/dist/components/cms/bulk-actions.d.ts +60 -0
- package/dist/components/cms/bulk-actions.js +95 -0
- package/dist/components/cms/bulk-actions.js.map +1 -0
- package/dist/components/cms/bulk-bar.d.ts +23 -0
- package/dist/components/cms/bulk-bar.js +26 -0
- package/dist/components/cms/bulk-bar.js.map +1 -0
- package/dist/components/cms/cell-edit.d.ts +91 -0
- package/dist/components/cms/cell-edit.js +144 -0
- package/dist/components/cms/cell-edit.js.map +1 -0
- package/dist/components/cms/cell.d.ts +29 -0
- package/dist/components/cms/cell.js +127 -0
- package/dist/components/cms/cell.js.map +1 -0
- package/dist/components/cms/cms-index.d.ts +8 -0
- package/dist/components/cms/cms-index.js +23 -0
- package/dist/components/cms/cms-index.js.map +1 -0
- package/dist/components/cms/cms-store.d.ts +188 -0
- package/dist/components/cms/cms-store.js +702 -0
- package/dist/components/cms/cms-store.js.map +1 -0
- package/dist/components/cms/collection-table.d.ts +6 -0
- package/dist/components/cms/collection-table.js +250 -0
- package/dist/components/cms/collection-table.js.map +1 -0
- package/dist/components/cms/collections-sidebar.d.ts +9 -0
- package/dist/components/cms/collections-sidebar.js +25 -0
- package/dist/components/cms/collections-sidebar.js.map +1 -0
- package/dist/components/cms/detail-editor.d.ts +7 -0
- package/dist/components/cms/detail-editor.js +386 -0
- package/dist/components/cms/detail-editor.js.map +1 -0
- package/dist/components/cms/doc-state.d.ts +13 -0
- package/dist/components/cms/doc-state.js +18 -0
- package/dist/components/cms/doc-state.js.map +1 -0
- package/dist/components/cms/document-editor-context.d.ts +48 -0
- package/dist/components/cms/document-editor-context.js +23 -0
- package/dist/components/cms/document-editor-context.js.map +1 -0
- package/dist/components/cms/editable-cell.d.ts +22 -0
- package/dist/components/cms/editable-cell.js +176 -0
- package/dist/components/cms/editable-cell.js.map +1 -0
- package/dist/components/cms/field-control.d.ts +8 -0
- package/dist/components/cms/field-control.js +149 -0
- package/dist/components/cms/field-control.js.map +1 -0
- package/dist/components/cms/filter-builder.d.ts +12 -0
- package/dist/components/cms/filter-builder.js +84 -0
- package/dist/components/cms/filter-builder.js.map +1 -0
- package/dist/components/cms/import-export.d.ts +6 -0
- package/dist/components/cms/import-export.js +33 -0
- package/dist/components/cms/import-export.js.map +1 -0
- package/dist/components/cms/new-page-dialog.d.ts +22 -0
- package/dist/components/cms/new-page-dialog.js +42 -0
- package/dist/components/cms/new-page-dialog.js.map +1 -0
- package/dist/components/cms/reference-confirm.d.ts +25 -0
- package/dist/components/cms/reference-confirm.js +124 -0
- package/dist/components/cms/reference-confirm.js.map +1 -0
- package/dist/components/cms/relation-picker.d.ts +16 -0
- package/dist/components/cms/relation-picker.js +47 -0
- package/dist/components/cms/relation-picker.js.map +1 -0
- package/dist/components/cms/use-cell-edit.d.ts +33 -0
- package/dist/components/cms/use-cell-edit.js +125 -0
- package/dist/components/cms/use-cell-edit.js.map +1 -0
- package/dist/components/cms/versions-model.d.ts +15 -0
- package/dist/components/cms/versions-model.js +23 -0
- package/dist/components/cms/versions-model.js.map +1 -0
- package/dist/components/cms/versions-pane.d.ts +14 -0
- package/dist/components/cms/versions-pane.js +86 -0
- package/dist/components/cms/versions-pane.js.map +1 -0
- package/dist/components/cms/view-bar.d.ts +11 -0
- package/dist/components/cms/view-bar.js +80 -0
- package/dist/components/cms/view-bar.js.map +1 -0
- package/dist/components/collab/collab-context.d.ts +34 -0
- package/dist/components/collab/collab-context.js +52 -0
- package/dist/components/collab/collab-context.js.map +1 -0
- package/dist/components/collab/collab-seed.d.ts +27 -0
- package/dist/components/collab/collab-seed.js +42 -0
- package/dist/components/collab/collab-seed.js.map +1 -0
- package/dist/components/components/component-detail.d.ts +9 -0
- package/dist/components/components/component-detail.js +30 -0
- package/dist/components/components/component-detail.js.map +1 -0
- package/dist/components/components/component-status.d.ts +10 -0
- package/dist/components/components/component-status.js +30 -0
- package/dist/components/components/component-status.js.map +1 -0
- package/dist/components/components/components-index.d.ts +8 -0
- package/dist/components/components/components-index.js +42 -0
- package/dist/components/components/components-index.js.map +1 -0
- package/dist/components/components/field-inspector.d.ts +9 -0
- package/dist/components/components/field-inspector.js +38 -0
- package/dist/components/components/field-inspector.js.map +1 -0
- package/dist/components/components/fixture-runner.d.ts +10 -0
- package/dist/components/components/fixture-runner.js +24 -0
- package/dist/components/components/fixture-runner.js.map +1 -0
- package/dist/components/components/registry-browser.d.ts +4 -0
- package/dist/components/components/registry-browser.js +64 -0
- package/dist/components/components/registry-browser.js.map +1 -0
- package/dist/components/current-user-menu.d.ts +13 -0
- package/dist/components/current-user-menu.js +31 -0
- package/dist/components/current-user-menu.js.map +1 -0
- package/dist/components/dev-login-badge.d.ts +9 -0
- package/dist/components/dev-login-badge.js +18 -0
- package/dist/components/dev-login-badge.js.map +1 -0
- package/dist/components/extensions/extensions-view.d.ts +7 -0
- package/dist/components/extensions/extensions-view.js +126 -0
- package/dist/components/extensions/extensions-view.js.map +1 -0
- package/dist/components/guards.d.ts +27 -0
- package/dist/components/guards.js +46 -0
- package/dist/components/guards.js.map +1 -0
- package/dist/components/inspector/inspector-sidebar.d.ts +26 -0
- package/dist/components/inspector/inspector-sidebar.js +17 -0
- package/dist/components/inspector/inspector-sidebar.js.map +1 -0
- package/dist/components/operation-error.d.ts +17 -0
- package/dist/components/operation-error.js +54 -0
- package/dist/components/operation-error.js.map +1 -0
- package/dist/components/playground-badge.d.ts +10 -0
- package/dist/components/playground-badge.js +19 -0
- package/dist/components/playground-badge.js.map +1 -0
- package/dist/components/project-list.d.ts +15 -0
- package/dist/components/project-list.js +52 -0
- package/dist/components/project-list.js.map +1 -0
- package/dist/components/project-session.d.ts +46 -0
- package/dist/components/project-session.js +107 -0
- package/dist/components/project-session.js.map +1 -0
- package/dist/components/project-switcher.d.ts +11 -0
- package/dist/components/project-switcher.js +44 -0
- package/dist/components/project-switcher.js.map +1 -0
- package/dist/components/references/builder-deep-link.d.ts +12 -0
- package/dist/components/references/builder-deep-link.js +53 -0
- package/dist/components/references/builder-deep-link.js.map +1 -0
- package/dist/components/references/references-panel.d.ts +17 -0
- package/dist/components/references/references-panel.js +66 -0
- package/dist/components/references/references-panel.js.map +1 -0
- package/dist/components/routes/redirect-chain.d.ts +9 -0
- package/dist/components/routes/redirect-chain.js +16 -0
- package/dist/components/routes/redirect-chain.js.map +1 -0
- package/dist/components/routes/redirect-manager.d.ts +13 -0
- package/dist/components/routes/redirect-manager.js +24 -0
- package/dist/components/routes/redirect-manager.js.map +1 -0
- package/dist/components/routes/route-list.d.ts +35 -0
- package/dist/components/routes/route-list.js +69 -0
- package/dist/components/routes/route-list.js.map +1 -0
- package/dist/components/routes/routes-shell.d.ts +14 -0
- package/dist/components/routes/routes-shell.js +68 -0
- package/dist/components/routes/routes-shell.js.map +1 -0
- package/dist/components/section-nav.d.ts +17 -0
- package/dist/components/section-nav.js +33 -0
- package/dist/components/section-nav.js.map +1 -0
- package/dist/components/section-state.d.ts +24 -0
- package/dist/components/section-state.js +78 -0
- package/dist/components/section-state.js.map +1 -0
- package/dist/components/section-surface.d.ts +31 -0
- package/dist/components/section-surface.js +46 -0
- package/dist/components/section-surface.js.map +1 -0
- package/dist/components/sections.d.ts +38 -0
- package/dist/components/sections.js +72 -0
- package/dist/components/sections.js.map +1 -0
- package/dist/components/settings-form.d.ts +10 -0
- package/dist/components/settings-form.js +17 -0
- package/dist/components/settings-form.js.map +1 -0
- package/dist/components/studio-context.d.ts +22 -0
- package/dist/components/studio-context.js +48 -0
- package/dist/components/studio-context.js.map +1 -0
- package/dist/components/studio-project-screen.d.ts +19 -0
- package/dist/components/studio-project-screen.js +195 -0
- package/dist/components/studio-project-screen.js.map +1 -0
- package/dist/components/studio-shell.d.ts +18 -0
- package/dist/components/studio-shell.js +64 -0
- package/dist/components/studio-shell.js.map +1 -0
- package/dist/components/theme-context.d.ts +17 -0
- package/dist/components/theme-context.js +26 -0
- package/dist/components/theme-context.js.map +1 -0
- package/dist/components/workspace-gate.d.ts +12 -0
- package/dist/components/workspace-gate.js +27 -0
- package/dist/components/workspace-gate.js.map +1 -0
- package/dist/components/workspace-projects.d.ts +13 -0
- package/dist/components/workspace-projects.js +18 -0
- package/dist/components/workspace-projects.js.map +1 -0
- package/dist/lib/assets/delete-asset.d.ts +34 -0
- package/dist/lib/assets/delete-asset.js +34 -0
- package/dist/lib/assets/delete-asset.js.map +1 -0
- package/dist/lib/assets/image-dimensions.d.ts +18 -0
- package/dist/lib/assets/image-dimensions.js +26 -0
- package/dist/lib/assets/image-dimensions.js.map +1 -0
- package/dist/lib/assets/index.d.ts +9 -0
- package/dist/lib/assets/index.js +10 -0
- package/dist/lib/assets/index.js.map +1 -0
- package/dist/lib/assets/upload-state.d.ts +53 -0
- package/dist/lib/assets/upload-state.js +59 -0
- package/dist/lib/assets/upload-state.js.map +1 -0
- package/dist/lib/assets/upload.d.ts +56 -0
- package/dist/lib/assets/upload.js +125 -0
- package/dist/lib/assets/upload.js.map +1 -0
- package/dist/lib/auth/auth-adapter.d.ts +57 -0
- package/dist/lib/auth/auth-adapter.js +13 -0
- package/dist/lib/auth/auth-adapter.js.map +1 -0
- package/dist/lib/auth/convex-auth-adapter.d.ts +39 -0
- package/dist/lib/auth/convex-auth-adapter.js +171 -0
- package/dist/lib/auth/convex-auth-adapter.js.map +1 -0
- package/dist/lib/auth/dev-auto-login-adapter.d.ts +25 -0
- package/dist/lib/auth/dev-auto-login-adapter.js +40 -0
- package/dist/lib/auth/dev-auto-login-adapter.js.map +1 -0
- package/dist/lib/auth/index.d.ts +28 -0
- package/dist/lib/auth/index.js +61 -0
- package/dist/lib/auth/index.js.map +1 -0
- package/dist/lib/auth/local-auth-adapter.d.ts +57 -0
- package/dist/lib/auth/local-auth-adapter.js +78 -0
- package/dist/lib/auth/local-auth-adapter.js.map +1 -0
- package/dist/lib/auth/route-guard.d.ts +33 -0
- package/dist/lib/auth/route-guard.js +51 -0
- package/dist/lib/auth/route-guard.js.map +1 -0
- package/dist/lib/auth-errors.d.ts +42 -0
- package/dist/lib/auth-errors.js +74 -0
- package/dist/lib/auth-errors.js.map +1 -0
- package/dist/lib/bindings/section-bindings.d.ts +24 -0
- package/dist/lib/bindings/section-bindings.js +9 -0
- package/dist/lib/bindings/section-bindings.js.map +1 -0
- package/dist/lib/clipboard/index.d.ts +7 -0
- package/dist/lib/clipboard/index.js +8 -0
- package/dist/lib/clipboard/index.js.map +1 -0
- package/dist/lib/clipboard/os-clipboard.d.ts +46 -0
- package/dist/lib/clipboard/os-clipboard.js +105 -0
- package/dist/lib/clipboard/os-clipboard.js.map +1 -0
- package/dist/lib/clipboard/paste-issues.d.ts +34 -0
- package/dist/lib/clipboard/paste-issues.js +67 -0
- package/dist/lib/clipboard/paste-issues.js.map +1 -0
- package/dist/lib/clipboard/paste-target.d.ts +20 -0
- package/dist/lib/clipboard/paste-target.js +28 -0
- package/dist/lib/clipboard/paste-target.js.map +1 -0
- package/dist/lib/cms/published-documents.d.ts +30 -0
- package/dist/lib/cms/published-documents.js +75 -0
- package/dist/lib/cms/published-documents.js.map +1 -0
- package/dist/lib/cms-views/index.d.ts +9 -0
- package/dist/lib/cms-views/index.js +10 -0
- package/dist/lib/cms-views/index.js.map +1 -0
- package/dist/lib/cms-views/selection.d.ts +29 -0
- package/dist/lib/cms-views/selection.js +46 -0
- package/dist/lib/cms-views/selection.js.map +1 -0
- package/dist/lib/cms-views/view-model.d.ts +192 -0
- package/dist/lib/cms-views/view-model.js +353 -0
- package/dist/lib/cms-views/view-model.js.map +1 -0
- package/dist/lib/cms-views/views-store.d.ts +70 -0
- package/dist/lib/cms-views/views-store.js +129 -0
- package/dist/lib/cms-views/views-store.js.map +1 -0
- package/dist/lib/data/collection-content.d.ts +105 -0
- package/dist/lib/data/collection-content.js +196 -0
- package/dist/lib/data/collection-content.js.map +1 -0
- package/dist/lib/data/data-store.d.ts +97 -0
- package/dist/lib/data/data-store.js +205 -0
- package/dist/lib/data/data-store.js.map +1 -0
- package/dist/lib/data/index.d.ts +4 -0
- package/dist/lib/data/index.js +8 -0
- package/dist/lib/data/index.js.map +1 -0
- package/dist/lib/data/providers.d.ts +143 -0
- package/dist/lib/data/providers.js +255 -0
- package/dist/lib/data/providers.js.map +1 -0
- package/dist/lib/data/sample-capture.d.ts +30 -0
- package/dist/lib/data/sample-capture.js +70 -0
- package/dist/lib/data/sample-capture.js.map +1 -0
- package/dist/lib/data/sources-store.d.ts +42 -0
- package/dist/lib/data/sources-store.js +120 -0
- package/dist/lib/data/sources-store.js.map +1 -0
- package/dist/lib/dnd/drop-rules.d.ts +219 -0
- package/dist/lib/dnd/drop-rules.js +257 -0
- package/dist/lib/dnd/drop-rules.js.map +1 -0
- package/dist/lib/dnd/gap-drag.d.ts +66 -0
- package/dist/lib/dnd/gap-drag.js +95 -0
- package/dist/lib/dnd/gap-drag.js.map +1 -0
- package/dist/lib/locale/binding-fallback.d.ts +28 -0
- package/dist/lib/locale/binding-fallback.js +66 -0
- package/dist/lib/locale/binding-fallback.js.map +1 -0
- package/dist/lib/locale/fallback.d.ts +43 -0
- package/dist/lib/locale/fallback.js +52 -0
- package/dist/lib/locale/fallback.js.map +1 -0
- package/dist/lib/locale/index.d.ts +6 -0
- package/dist/lib/locale/index.js +7 -0
- package/dist/lib/locale/index.js.map +1 -0
- package/dist/lib/locale/locale-store.d.ts +40 -0
- package/dist/lib/locale/locale-store.js +61 -0
- package/dist/lib/locale/locale-store.js.map +1 -0
- package/dist/lib/locale/locale-switcher.d.ts +10 -0
- package/dist/lib/locale/locale-switcher.js +24 -0
- package/dist/lib/locale/locale-switcher.js.map +1 -0
- package/dist/lib/locale/route-variant.d.ts +14 -0
- package/dist/lib/locale/route-variant.js +11 -0
- package/dist/lib/locale/route-variant.js.map +1 -0
- package/dist/lib/locale/use-studio-locale.d.ts +10 -0
- package/dist/lib/locale/use-studio-locale.js +8 -0
- package/dist/lib/locale/use-studio-locale.js.map +1 -0
- package/dist/lib/operations/asset-repository.d.ts +15 -0
- package/dist/lib/operations/asset-repository.js +56 -0
- package/dist/lib/operations/asset-repository.js.map +1 -0
- package/dist/lib/operations/cms-persistence.d.ts +35 -0
- package/dist/lib/operations/cms-persistence.js +75 -0
- package/dist/lib/operations/cms-persistence.js.map +1 -0
- package/dist/lib/operations/graph-commands.d.ts +140 -0
- package/dist/lib/operations/graph-commands.js +86 -0
- package/dist/lib/operations/graph-commands.js.map +1 -0
- package/dist/lib/operations/graph-persistence.d.ts +27 -0
- package/dist/lib/operations/graph-persistence.js +35 -0
- package/dist/lib/operations/graph-persistence.js.map +1 -0
- package/dist/lib/operations/index.d.ts +13 -0
- package/dist/lib/operations/index.js +14 -0
- package/dist/lib/operations/index.js.map +1 -0
- package/dist/lib/operations/operations-package.d.ts +6 -0
- package/dist/lib/operations/operations-package.js +7 -0
- package/dist/lib/operations/operations-package.js.map +1 -0
- package/dist/lib/operations/persist-queue.d.ts +16 -0
- package/dist/lib/operations/persist-queue.js +18 -0
- package/dist/lib/operations/persist-queue.js.map +1 -0
- package/dist/lib/operations/session-hydration.d.ts +84 -0
- package/dist/lib/operations/session-hydration.js +112 -0
- package/dist/lib/operations/session-hydration.js.map +1 -0
- package/dist/lib/operations/studio-operations.d.ts +59 -0
- package/dist/lib/operations/studio-operations.js +92 -0
- package/dist/lib/operations/studio-operations.js.map +1 -0
- package/dist/lib/persistence/backend-mode.d.ts +69 -0
- package/dist/lib/persistence/backend-mode.js +120 -0
- package/dist/lib/persistence/backend-mode.js.map +1 -0
- package/dist/lib/persistence/convex-adapter.d.ts +34 -0
- package/dist/lib/persistence/convex-adapter.js +681 -0
- package/dist/lib/persistence/convex-adapter.js.map +1 -0
- package/dist/lib/persistence/convex-blob-storage.d.ts +57 -0
- package/dist/lib/persistence/convex-blob-storage.js +97 -0
- package/dist/lib/persistence/convex-blob-storage.js.map +1 -0
- package/dist/lib/persistence/convex-client.d.ts +19 -0
- package/dist/lib/persistence/convex-client.js +40 -0
- package/dist/lib/persistence/convex-client.js.map +1 -0
- package/dist/lib/persistence/index.d.ts +30 -0
- package/dist/lib/persistence/index.js +60 -0
- package/dist/lib/persistence/index.js.map +1 -0
- package/dist/lib/persona/labels.d.ts +23 -0
- package/dist/lib/persona/labels.js +122 -0
- package/dist/lib/persona/labels.js.map +1 -0
- package/dist/lib/rail.d.ts +11 -0
- package/dist/lib/rail.js +26 -0
- package/dist/lib/rail.js.map +1 -0
- package/dist/lib/references/impact.d.ts +64 -0
- package/dist/lib/references/impact.js +62 -0
- package/dist/lib/references/impact.js.map +1 -0
- package/dist/lib/references/index.d.ts +7 -0
- package/dist/lib/references/index.js +8 -0
- package/dist/lib/references/index.js.map +1 -0
- package/dist/lib/references/reference-model.d.ts +125 -0
- package/dist/lib/references/reference-model.js +242 -0
- package/dist/lib/references/reference-model.js.map +1 -0
- package/dist/lib/references/references-store.d.ts +65 -0
- package/dist/lib/references/references-store.js +221 -0
- package/dist/lib/references/references-store.js.map +1 -0
- package/dist/lib/registry/index.d.ts +65 -0
- package/dist/lib/registry/index.js +114 -0
- package/dist/lib/registry/index.js.map +1 -0
- package/dist/lib/registry/preview.d.ts +15 -0
- package/dist/lib/registry/preview.js +110 -0
- package/dist/lib/registry/preview.js.map +1 -0
- package/dist/lib/registry/project-components.d.ts +16 -0
- package/dist/lib/registry/project-components.js +152 -0
- package/dist/lib/registry/project-components.js.map +1 -0
- package/dist/lib/routing/index.d.ts +10 -0
- package/dist/lib/routing/index.js +11 -0
- package/dist/lib/routing/index.js.map +1 -0
- package/dist/lib/routing/routing-analysis.d.ts +26 -0
- package/dist/lib/routing/routing-analysis.js +37 -0
- package/dist/lib/routing/routing-analysis.js.map +1 -0
- package/dist/lib/routing/routing-store.d.ts +50 -0
- package/dist/lib/routing/routing-store.js +72 -0
- package/dist/lib/routing/routing-store.js.map +1 -0
- package/dist/lib/starters/kit-session.d.ts +5 -0
- package/dist/lib/starters/kit-session.js +17 -0
- package/dist/lib/starters/kit-session.js.map +1 -0
- package/dist/lib/theme.d.ts +21 -0
- package/dist/lib/theme.js +32 -0
- package/dist/lib/theme.js.map +1 -0
- package/dist/lib/utils.d.ts +11 -0
- package/dist/lib/utils.js +28 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/webhooks/config.d.ts +15 -0
- package/dist/lib/webhooks/config.js +64 -0
- package/dist/lib/webhooks/config.js.map +1 -0
- package/dist/lib/webhooks/dispatcher.d.ts +67 -0
- package/dist/lib/webhooks/dispatcher.js +61 -0
- package/dist/lib/webhooks/dispatcher.js.map +1 -0
- package/dist/lib/webhooks/index.d.ts +11 -0
- package/dist/lib/webhooks/index.js +10 -0
- package/dist/lib/webhooks/index.js.map +1 -0
- package/dist/lib/webhooks/signing.d.ts +15 -0
- package/dist/lib/webhooks/signing.js +24 -0
- package/dist/lib/webhooks/signing.js.map +1 -0
- package/dist/lib/webhooks/tags.d.ts +25 -0
- package/dist/lib/webhooks/tags.js +173 -0
- package/dist/lib/webhooks/tags.js.map +1 -0
- package/dist/lib/working-graph.d.ts +82 -0
- package/dist/lib/working-graph.js +113 -0
- package/dist/lib/working-graph.js.map +1 -0
- package/dist/lib/workspace/index.d.ts +109 -0
- package/dist/lib/workspace/index.js +206 -0
- package/dist/lib/workspace/index.js.map +1 -0
- package/dist/lib/workspace/switcher-source.d.ts +39 -0
- package/dist/lib/workspace/switcher-source.js +23 -0
- package/dist/lib/workspace/switcher-source.js.map +1 -0
- package/dist/lib/workspace/workspace-source.d.ts +47 -0
- package/dist/lib/workspace/workspace-source.js +67 -0
- package/dist/lib/workspace/workspace-source.js.map +1 -0
- package/dist/router/index.d.ts +32 -0
- package/dist/router/index.js +32 -0
- package/dist/router/index.js.map +1 -0
- package/dist/router/match.d.ts +75 -0
- package/dist/router/match.js +87 -0
- package/dist/router/match.js.map +1 -0
- package/dist/router/search.d.ts +22 -0
- package/dist/router/search.js +16 -0
- package/dist/router/search.js.map +1 -0
- package/dist/ui/avatar.d.ts +17 -0
- package/dist/ui/avatar.js +38 -0
- package/dist/ui/avatar.js.map +1 -0
- package/dist/ui/badge.d.ts +9 -0
- package/dist/ui/badge.js +23 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/button.d.ts +11 -0
- package/dist/ui/button.js +30 -0
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/card.d.ts +11 -0
- package/dist/ui/card.js +23 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/dialog.d.ts +12 -0
- package/dist/ui/dialog.js +27 -0
- package/dist/ui/dialog.js.map +1 -0
- package/dist/ui/dropdown-menu.d.ts +15 -0
- package/dist/ui/dropdown-menu.js +24 -0
- package/dist/ui/dropdown-menu.js.map +1 -0
- package/dist/ui/field.d.ts +15 -0
- package/dist/ui/field.js +14 -0
- package/dist/ui/field.js.map +1 -0
- package/dist/ui/index.d.ts +14 -0
- package/dist/ui/index.js +15 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/input.js +7 -0
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/inspector.d.ts +18 -0
- package/dist/ui/inspector.js +14 -0
- package/dist/ui/inspector.js.map +1 -0
- package/dist/ui/layout.d.ts +45 -0
- package/dist/ui/layout.js +48 -0
- package/dist/ui/layout.js.map +1 -0
- package/dist/ui/panel.d.ts +12 -0
- package/dist/ui/panel.js +20 -0
- package/dist/ui/panel.js.map +1 -0
- package/dist/ui/separator.d.ts +6 -0
- package/dist/ui/separator.js +7 -0
- package/dist/ui/separator.js.map +1 -0
- package/dist/ui/toolbar.d.ts +9 -0
- package/dist/ui/toolbar.js +16 -0
- package/dist/ui/toolbar.js.map +1 -0
- package/dist/ui/typography.d.ts +50 -0
- package/dist/ui/typography.js +43 -0
- package/dist/ui/typography.js.map +1 -0
- package/package.json +149 -0
- package/src/styles/studio.css +101 -0
- package/src/styles/tokens.css +63 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CONTAINER_ALIGNMENTS, GRID_MAX_COLUMNS, SPACING_TOKEN_NAMES, STACK_COMPONENT_ID, STACK_ON_MOBILE_PROP, gridStacksOnMobile, isLayoutContainerNode, isSpacingTokenName, spacingTokenFromLegacyGap, staticProp, } from '@elytracms/project-graph';
|
|
3
|
+
import { Field, InspectorSection, Select, Stack } from '@elytracms/studio/ui';
|
|
4
|
+
import { useBuilder } from './builder-store';
|
|
5
|
+
/**
|
|
6
|
+
* Contextual layout inspector (EC-162): when a `Stack`/`Grid` container is
|
|
7
|
+
* selected, the Settings tab shows its canonical layout values — direction,
|
|
8
|
+
* gap, alignment, columns — as plain-language controls bound to the EC-161
|
|
9
|
+
* token scale. Gesture creates, this refines: every change is one ordinary
|
|
10
|
+
* `setProp`/`removeProp` builder dispatch (one operations command, one undo
|
|
11
|
+
* step). No CSS vocabulary leaks into the labels.
|
|
12
|
+
*/
|
|
13
|
+
/** The props this section owns for a container (hidden from the generic Props list). */
|
|
14
|
+
const LAYOUT_PROPS = ['direction', 'gap', 'align', 'columns', STACK_ON_MOBILE_PROP];
|
|
15
|
+
export function layoutManagedPropNames(node) {
|
|
16
|
+
return isLayoutContainerNode(node) ? LAYOUT_PROPS : [];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Plain-language label per spacing token step (EC-161 scale) — no CSS lengths.
|
|
20
|
+
* Shared with the canvas gap handles (EC-163): the live drag label and this
|
|
21
|
+
* select speak the same vocabulary for the same token.
|
|
22
|
+
*/
|
|
23
|
+
export const GAP_LABELS = {
|
|
24
|
+
px: 'Hairline',
|
|
25
|
+
'1': 'Extra small',
|
|
26
|
+
'2': 'Small',
|
|
27
|
+
'3': 'Medium',
|
|
28
|
+
'4': 'Large',
|
|
29
|
+
'6': 'Extra large',
|
|
30
|
+
'8': 'Huge',
|
|
31
|
+
};
|
|
32
|
+
/** Plain-language label for the "no gap" step (gap prop absent). */
|
|
33
|
+
export const GAP_NONE_LABEL = 'None';
|
|
34
|
+
const GAP_NONE = 'none';
|
|
35
|
+
const ALIGN_LABELS = {
|
|
36
|
+
start: 'Start',
|
|
37
|
+
center: 'Center',
|
|
38
|
+
end: 'End',
|
|
39
|
+
stretch: 'Stretch',
|
|
40
|
+
};
|
|
41
|
+
function staticValue(node, name) {
|
|
42
|
+
const prop = node.props?.[name];
|
|
43
|
+
return prop?.kind === 'static' ? prop.value : undefined;
|
|
44
|
+
}
|
|
45
|
+
/** The node's gap as a token step, or `'none'` when absent/off-scale (renders gapless/default). */
|
|
46
|
+
function currentGapToken(node) {
|
|
47
|
+
const value = staticValue(node, 'gap');
|
|
48
|
+
if (typeof value === 'string' && isSpacingTokenName(value))
|
|
49
|
+
return value;
|
|
50
|
+
if (typeof value === 'number') {
|
|
51
|
+
const token = spacingTokenFromLegacyGap(value);
|
|
52
|
+
if (token)
|
|
53
|
+
return token;
|
|
54
|
+
}
|
|
55
|
+
return GAP_NONE;
|
|
56
|
+
}
|
|
57
|
+
function currentDirection(node) {
|
|
58
|
+
return staticValue(node, 'direction') === 'horizontal' ? 'horizontal' : 'vertical';
|
|
59
|
+
}
|
|
60
|
+
function currentAlignment(node) {
|
|
61
|
+
const value = staticValue(node, 'align');
|
|
62
|
+
return typeof value === 'string' && value in ALIGN_LABELS ? value : 'stretch';
|
|
63
|
+
}
|
|
64
|
+
/** The rendered column count: a valid static value, else 1 (the renderer's fallback). */
|
|
65
|
+
function currentColumns(node) {
|
|
66
|
+
const value = staticValue(node, 'columns');
|
|
67
|
+
return typeof value === 'number' && Number.isInteger(value) && value >= 1 && value <= GRID_MAX_COLUMNS
|
|
68
|
+
? value
|
|
69
|
+
: 1;
|
|
70
|
+
}
|
|
71
|
+
const COLUMN_OPTIONS = Array.from({ length: GRID_MAX_COLUMNS }, (_, i) => i + 1);
|
|
72
|
+
/** The contextual layout section. Renders nothing for non-container nodes. */
|
|
73
|
+
export function LayoutSection({ node }) {
|
|
74
|
+
const builder = useBuilder();
|
|
75
|
+
if (!isLayoutContainerNode(node))
|
|
76
|
+
return null;
|
|
77
|
+
const isStack = node.componentId === STACK_COMPONENT_ID;
|
|
78
|
+
const set = (name, value) => builder.dispatch({ type: 'setProp', id: node.id, name, value: staticProp(value) });
|
|
79
|
+
const clear = (name) => builder.dispatch({ type: 'removeProp', id: node.id, name });
|
|
80
|
+
return (_jsx(InspectorSection, { title: "Layout", children: _jsxs(Stack, { gap: "3", children: [isStack ? (_jsx(Field, { label: "Direction", htmlFor: `layout-${node.id}-direction`, children: _jsxs(Select, { id: `layout-${node.id}-direction`, value: currentDirection(node), onChange: (e) => set('direction', e.target.value), children: [_jsx("option", { value: "vertical", children: "Vertical" }), _jsx("option", { value: "horizontal", children: "Horizontal" })] }) })) : (_jsx(Field, { label: "Columns", htmlFor: `layout-${node.id}-columns`, children: _jsx(Select, { id: `layout-${node.id}-columns`, value: String(currentColumns(node)), onChange: (e) => set('columns', Number(e.target.value)), children: COLUMN_OPTIONS.map((n) => (_jsx("option", { value: String(n), children: n === 1 ? '1 column' : `${n} columns` }, n))) }) })), _jsx(Field, { label: "Gap", htmlFor: `layout-${node.id}-gap`, children: _jsxs(Select, { id: `layout-${node.id}-gap`, value: currentGapToken(node), onChange: (e) => (e.target.value === GAP_NONE ? clear('gap') : set('gap', e.target.value)), children: [_jsx("option", { value: GAP_NONE, children: GAP_NONE_LABEL }), SPACING_TOKEN_NAMES.map((name) => (_jsx("option", { value: name, children: GAP_LABELS[name] }, name)))] }) }), _jsx(Field, { label: "Alignment", htmlFor: `layout-${node.id}-align`, children: _jsx(Select, { id: `layout-${node.id}-align`, value: currentAlignment(node), onChange: (e) => set('align', e.target.value), children: CONTAINER_ALIGNMENTS.map((name) => (_jsx("option", { value: name, children: ALIGN_LABELS[name] }, name))) }) }), !isStack ? (_jsx(Field, { label: "On phones", htmlFor: `layout-${node.id}-mobile`, children: _jsxs(Select, { id: `layout-${node.id}-mobile`, value: gridStacksOnMobile(node) ? 'stack' : 'keep', onChange: (e) => e.target.value === 'keep'
|
|
81
|
+
? set(STACK_ON_MOBILE_PROP, false)
|
|
82
|
+
: clear(STACK_ON_MOBILE_PROP), children: [_jsx("option", { value: "stack", children: "Stack" }), _jsx("option", { value: "keep", children: "Keep columns" })] }) })) : null] }) }));
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=layout-inspector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-inspector.js","sourceRoot":"","sources":["../../../src/components/builder/layout-inspector.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,yBAAyB,EACzB,UAAU,GACX,MAAM,0BAA0B,CAAA;AAQjC,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C;;;;;;;GAOG;AAEH,wFAAwF;AACxF,MAAM,YAAY,GAAG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,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAClC,iBAAmB,KAAK,EAAE,IAAI,YAC3B,YAAY,CAAC,IAAI,CAAC,IADR,IAAI,CAER,CACV,CAAC,GACK,GACH,EAKP,CAAC,OAAO,CAAC,CAAC,CAAC,CACV,KAAC,KAAK,IAAC,KAAK,EAAC,WAAW,EAAC,OAAO,EAAE,UAAU,IAAI,CAAC,EAAE,SAAS,YAC1D,MAAC,MAAM,IACL,EAAE,EAAE,UAAU,IAAI,CAAC,EAAE,SAAS,EAC9B,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAClD,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CACd,CAAC,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM;4BACvB,CAAC,CAAC,GAAG,CAAC,oBAAoB,EAAE,KAAK,CAAC;4BAClC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,aAGjC,iBAAQ,KAAK,EAAC,OAAO,sBAAe,EACpC,iBAAQ,KAAK,EAAC,MAAM,6BAAsB,IACnC,GACH,CACT,CAAC,CAAC,CAAC,IAAI,IACF,GACS,CACpB,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ComponentNode } from '@elytracms/project-graph';
|
|
2
|
+
import type { ComponentManifest } from '@elytracms/component-registry';
|
|
3
|
+
/**
|
|
4
|
+
* Build a fresh node for a component from its manifest defaults (brief §8.2,
|
|
5
|
+
* EC-066). The placeholder id is reassigned by the Builder store on insert.
|
|
6
|
+
* Required slots are left empty so the renderer shows a missing-slot placeholder
|
|
7
|
+
* (EC-063) prompting the author to fill them.
|
|
8
|
+
*/
|
|
9
|
+
export declare function nodeFromManifest(manifest: ComponentManifest): ComponentNode;
|
|
10
|
+
/** Layout helper presets (brief §8.2, EC-067) — grid / flex / stack / repeater / switch. */
|
|
11
|
+
export interface LayoutPreset {
|
|
12
|
+
key: string;
|
|
13
|
+
label: string;
|
|
14
|
+
description: string;
|
|
15
|
+
build: () => ComponentNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const LAYOUT_PRESETS: readonly LayoutPreset[];
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { staticProp } from '@elytracms/project-graph';
|
|
2
|
+
/**
|
|
3
|
+
* Build a fresh node for a component from its manifest defaults (brief §8.2,
|
|
4
|
+
* EC-066). The placeholder id is reassigned by the Builder store on insert.
|
|
5
|
+
* Required slots are left empty so the renderer shows a missing-slot placeholder
|
|
6
|
+
* (EC-063) prompting the author to fill them.
|
|
7
|
+
*/
|
|
8
|
+
export function nodeFromManifest(manifest) {
|
|
9
|
+
const props = {};
|
|
10
|
+
for (const [name, spec] of Object.entries(manifest.props)) {
|
|
11
|
+
if (spec.default !== undefined)
|
|
12
|
+
props[name] = staticProp(spec.default);
|
|
13
|
+
}
|
|
14
|
+
return { id: 'tmp', componentId: manifest.id, props };
|
|
15
|
+
}
|
|
16
|
+
function text(value) {
|
|
17
|
+
return { id: 'tmp', componentId: 'base.primitives.Text', props: { value: staticProp(value) } };
|
|
18
|
+
}
|
|
19
|
+
export const LAYOUT_PRESETS = [
|
|
20
|
+
{
|
|
21
|
+
key: 'stack',
|
|
22
|
+
label: 'Stack',
|
|
23
|
+
description: 'Vertical flex layout',
|
|
24
|
+
build: () => ({
|
|
25
|
+
id: 'tmp',
|
|
26
|
+
componentId: 'base.primitives.Stack',
|
|
27
|
+
props: { gap: staticProp(4) },
|
|
28
|
+
slots: { children: [text('First item'), text('Second item')] },
|
|
29
|
+
}),
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
key: 'grid',
|
|
33
|
+
label: 'Grid',
|
|
34
|
+
description: 'Multi-column grid',
|
|
35
|
+
build: () => ({
|
|
36
|
+
id: 'tmp',
|
|
37
|
+
componentId: 'base.primitives.Grid',
|
|
38
|
+
props: { columns: staticProp(2), gap: staticProp(4) },
|
|
39
|
+
slots: { children: [text('Cell one'), text('Cell two')] },
|
|
40
|
+
}),
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
key: 'container',
|
|
44
|
+
label: 'Container',
|
|
45
|
+
description: 'Generic block wrapper',
|
|
46
|
+
build: () => ({
|
|
47
|
+
id: 'tmp',
|
|
48
|
+
componentId: 'base.primitives.Container',
|
|
49
|
+
slots: { children: [text('Container content')] },
|
|
50
|
+
}),
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
key: 'repeater',
|
|
54
|
+
label: 'Repeater',
|
|
55
|
+
description: 'Repeat a template over a bound list',
|
|
56
|
+
build: () => ({
|
|
57
|
+
id: 'tmp',
|
|
58
|
+
componentId: 'base.primitives.Repeater',
|
|
59
|
+
// Inserts with an empty list and an unbound template — the studio never
|
|
60
|
+
// fabricates data (Oli, 2026-06-19). The author binds `items` to a real list
|
|
61
|
+
// source in the inspector; until then it renders nothing. (Repeater's binding
|
|
62
|
+
// story is parked anyway — see RepeaterManifest "slice 5 decides its fate".)
|
|
63
|
+
props: { items: staticProp([]) },
|
|
64
|
+
slots: {
|
|
65
|
+
item: [
|
|
66
|
+
{
|
|
67
|
+
id: 'tmp',
|
|
68
|
+
componentId: 'base.primitives.Stack',
|
|
69
|
+
props: { gap: staticProp(1) },
|
|
70
|
+
slots: { children: [text('Item title'), text('Item body')] },
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
}),
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
key: 'switch',
|
|
78
|
+
label: 'Switch',
|
|
79
|
+
description: 'Render one case by its key',
|
|
80
|
+
build: () => ({
|
|
81
|
+
id: 'tmp',
|
|
82
|
+
componentId: 'base.primitives.Switch',
|
|
83
|
+
// Start with the declared `fallback` slot (renders until a `case` matches).
|
|
84
|
+
// `case` + `case:<key>` slots are authored via the inspector. Keeping only
|
|
85
|
+
// declared slots here means the inserted node validates cleanly.
|
|
86
|
+
slots: { fallback: [text('Fallback')] },
|
|
87
|
+
}),
|
|
88
|
+
},
|
|
89
|
+
];
|
|
90
|
+
//# sourceMappingURL=node-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-factory.js","sourceRoot":"","sources":["../../../src/components/builder/node-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAIrD;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAA2B;IAC1D,MAAM,KAAK,GAA2B,EAAE,CAAA;IACxC,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1D,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,OAAoB,CAAC,CAAA;IACrF,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,EAAE,CAAA;AACvD,CAAC;AAED,SAAS,IAAI,CAAC,KAAa;IACzB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAA;AAChG,CAAC;AAWD,MAAM,CAAC,MAAM,cAAc,GAA4B;IACrD;QACE,GAAG,EAAE,OAAO;QACZ,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,sBAAsB;QACnC,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;YACZ,EAAE,EAAE,KAAK;YACT,WAAW,EAAE,uBAAuB;YACpC,KAAK,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE;YAC7B,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,I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,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE;qBAC7D;iBACF;aACF;SACF,CAAC;KACH;IACD;QACE,GAAG,EAAE,QAAQ;QACb,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,4BAA4B;QACzC,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;YACZ,EAAE,EAAE,KAAK;YACT,WAAW,EAAE,wBAAwB;YACrC,4EAA4E;YAC5E,2EAA2E;YAC3E,iEAAiE;YACjE,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE;SACxC,CAAC;KACH;CACF,CAAA"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronUp, ChevronDown, ClipboardCopy, ClipboardPaste, ClipboardX, Copy, EyeOff, Filter, MoreHorizontal, Plus, Trash2, } from 'lucide-react';
|
|
3
|
+
import { useEffect, useRef, useState } from 'react';
|
|
4
|
+
import { getParentInfo } from '@elytracms/project-graph';
|
|
5
|
+
import { canNestInto, containerFlowAxis, dropIndicatorFor, dropPositionForPointer, resolveDrop, } from '@elytracms/studio/lib/dnd/drop-rules';
|
|
6
|
+
import { getStudioRegistry } from '@elytracms/studio/lib/registry';
|
|
7
|
+
import { useData } from '@elytracms/studio/lib/data';
|
|
8
|
+
import { Button, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, Row, Spacer, Text, } from '@elytracms/studio/ui';
|
|
9
|
+
import { cn } from '@elytracms/studio/lib/utils';
|
|
10
|
+
import { useCollab } from '../collab/collab-context';
|
|
11
|
+
import { useBuilder } from './builder-store';
|
|
12
|
+
import { attachClipboardListeners, useStudioClipboard } from './clipboard-actions';
|
|
13
|
+
import { activeDrag, beginDrag, endDrag, onDragSessionEnd } from './drag-session';
|
|
14
|
+
function flatten(node, depth, rows, meta) {
|
|
15
|
+
rows.push({ id: node.id, componentId: node.componentId, depth, ...meta, condition: node.condition });
|
|
16
|
+
for (const children of Object.values(node.slots ?? {})) {
|
|
17
|
+
children.forEach((child, i) => flatten(child, depth + 1, rows, {
|
|
18
|
+
isFirst: i === 0,
|
|
19
|
+
isLast: i === children.length - 1,
|
|
20
|
+
isRoot: false,
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function shortId(componentId) {
|
|
25
|
+
return componentId.replace('base.primitives.', '').replace('project.', '');
|
|
26
|
+
}
|
|
27
|
+
/** Tailwind classes per drop indicator state (EC-160/EC-162) — rejection is visible. */
|
|
28
|
+
const ROW_DROP_CLASSES = {
|
|
29
|
+
into: 'ring-1 ring-inset ring-emerald-400 bg-emerald-400/10',
|
|
30
|
+
before: 'shadow-[inset_0_2px_0_0_#38bdf8]',
|
|
31
|
+
after: 'shadow-[inset_0_-2px_0_0_#38bdf8]',
|
|
32
|
+
// Wrap-into-columns gesture (EC-162): the tree can execute wrap plans, the
|
|
33
|
+
// bands themselves are a canvas gesture (rows have no spatial "beside").
|
|
34
|
+
left: 'shadow-[inset_2px_0_0_0_#a78bfa] bg-violet-400/10',
|
|
35
|
+
right: 'shadow-[inset_-2px_0_0_0_#a78bfa] bg-violet-400/10',
|
|
36
|
+
blocked: 'ring-1 ring-inset ring-red-500/80 bg-red-500/10 cursor-not-allowed',
|
|
37
|
+
};
|
|
38
|
+
export function PageTree({ onAddChild }) {
|
|
39
|
+
const builder = useBuilder();
|
|
40
|
+
const studio = getStudioRegistry();
|
|
41
|
+
const data = useData();
|
|
42
|
+
const collab = useCollab();
|
|
43
|
+
const page = builder.present.pages.find((p) => p.id === builder.pageId);
|
|
44
|
+
const rows = [];
|
|
45
|
+
flatten(page.root, 0, rows, { isFirst: true, isLast: true, isRoot: true });
|
|
46
|
+
// Copy/cut/paste (EC-175): keyboard shortcuts for the whole studio window
|
|
47
|
+
// (the canvas iframe wires its own document) plus per-row affordances. The
|
|
48
|
+
// shared listener keeps shortcuts inert in form fields/inline editors, and
|
|
49
|
+
// the published preview is read-only.
|
|
50
|
+
const clipboard = useStudioClipboard();
|
|
51
|
+
const readOnly = collab.previewMode === 'published';
|
|
52
|
+
const selectedIdRef = useRef(builder.selectedId);
|
|
53
|
+
selectedIdRef.current = builder.selectedId;
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
if (readOnly)
|
|
56
|
+
return;
|
|
57
|
+
return attachClipboardListeners(window, {
|
|
58
|
+
clipboard,
|
|
59
|
+
getSelectedId: () => selectedIdRef.current,
|
|
60
|
+
getSelection: () => window.getSelection(),
|
|
61
|
+
});
|
|
62
|
+
}, [clipboard, readOnly]);
|
|
63
|
+
// Drag & drop (EC-160): eligibility comes from the same pure rule set the
|
|
64
|
+
// canvas uses (`lib/dnd/drop-rules`); the tree only renders the resolution.
|
|
65
|
+
// One eligible drop dispatches exactly one move/insert action.
|
|
66
|
+
// The current plan lives in a ref: `drop` fires synchronously after the
|
|
67
|
+
// last `dragover`, before React flushes indicator state.
|
|
68
|
+
const dropPlanRef = useRef(null);
|
|
69
|
+
const [drop, setDrop] = useState(null);
|
|
70
|
+
const clearDrop = () => {
|
|
71
|
+
dropPlanRef.current = null;
|
|
72
|
+
setDrop(null);
|
|
73
|
+
};
|
|
74
|
+
useEffect(() => onDragSessionEnd(() => clearDrop()), []);
|
|
75
|
+
const getManifest = (id) => studio.registry.getManifest(id);
|
|
76
|
+
function handleRowDragStart(row, e) {
|
|
77
|
+
if (row.isRoot) {
|
|
78
|
+
e.preventDefault();
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
beginDrag({
|
|
82
|
+
subject: { kind: 'node', nodeId: row.id, componentId: row.componentId },
|
|
83
|
+
source: 'tree',
|
|
84
|
+
label: shortId(row.componentId),
|
|
85
|
+
}, e.dataTransfer);
|
|
86
|
+
}
|
|
87
|
+
function handleRowDragOver(row, e) {
|
|
88
|
+
const drag = activeDrag();
|
|
89
|
+
if (!drag)
|
|
90
|
+
return;
|
|
91
|
+
let position = 'into';
|
|
92
|
+
if (!row.isRoot) {
|
|
93
|
+
const rect = e.currentTarget.getBoundingClientRect();
|
|
94
|
+
// The hit-band axis follows the parent container's flow (EC-162):
|
|
95
|
+
// children of horizontal Stacks/Grids reorder along the row's x axis.
|
|
96
|
+
const flow = containerFlowAxis(getParentInfo(page.root, row.id)?.parent);
|
|
97
|
+
const ratio = flow === 'horizontal'
|
|
98
|
+
? rect.width > 0
|
|
99
|
+
? (e.clientX - rect.left) / rect.width
|
|
100
|
+
: 0.5
|
|
101
|
+
: rect.height > 0
|
|
102
|
+
? (e.clientY - rect.top) / rect.height
|
|
103
|
+
: 0.5;
|
|
104
|
+
position = dropPositionForPointer({
|
|
105
|
+
ratio,
|
|
106
|
+
nestable: canNestInto(getManifest, row.componentId),
|
|
107
|
+
edges: true,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
const resolution = resolveDrop({
|
|
111
|
+
root: page.root,
|
|
112
|
+
getManifest,
|
|
113
|
+
subject: drag.subject,
|
|
114
|
+
location: { nodeId: row.id, position },
|
|
115
|
+
});
|
|
116
|
+
const indicator = dropIndicatorFor(resolution, position);
|
|
117
|
+
dropPlanRef.current = resolution.eligible ? resolution : null;
|
|
118
|
+
setDrop({ rowId: row.id, indicator });
|
|
119
|
+
if (resolution.eligible) {
|
|
120
|
+
e.preventDefault();
|
|
121
|
+
e.dataTransfer.dropEffect = drag.subject.kind === 'node' ? 'move' : 'copy';
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function handleRowDrop(e) {
|
|
125
|
+
const drag = activeDrag();
|
|
126
|
+
if (!drag)
|
|
127
|
+
return;
|
|
128
|
+
const plan = dropPlanRef.current;
|
|
129
|
+
clearDrop();
|
|
130
|
+
if (!plan)
|
|
131
|
+
return;
|
|
132
|
+
e.preventDefault();
|
|
133
|
+
// Exactly one dispatch per completed drop (one undo step, one command).
|
|
134
|
+
if (plan.kind === 'move') {
|
|
135
|
+
builder.dispatch({ type: 'move', id: plan.nodeId, target: plan.target });
|
|
136
|
+
}
|
|
137
|
+
else if (plan.kind === 'wrap') {
|
|
138
|
+
// EC-162: shared plan vocabulary — the tree executes wrap plans too.
|
|
139
|
+
const subject = plan.nodeId !== undefined
|
|
140
|
+
? { kind: 'node', nodeId: plan.nodeId }
|
|
141
|
+
: drag.buildNode
|
|
142
|
+
? { kind: 'component', node: drag.buildNode() }
|
|
143
|
+
: null;
|
|
144
|
+
if (!subject) {
|
|
145
|
+
endDrag('cancelled');
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
builder.dispatch({ type: 'wrap', referenceId: plan.referenceId, side: plan.side, subject });
|
|
149
|
+
}
|
|
150
|
+
else if (drag.buildNode) {
|
|
151
|
+
builder.dispatch({ type: 'insert', target: plan.target, node: drag.buildNode() });
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
endDrag('cancelled');
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
endDrag('dropped');
|
|
158
|
+
}
|
|
159
|
+
function handleRowDragEnd() {
|
|
160
|
+
clearDrop();
|
|
161
|
+
endDrag('cancelled');
|
|
162
|
+
}
|
|
163
|
+
return (_jsxs("div", { className: "flex h-full min-h-0 flex-col", children: [_jsxs(Row, { gap: "2", className: "h-10 shrink-0 border-b border-border px-3", children: [_jsx(Text, { size: "sm", weight: "semibold", children: "Page tree" }), _jsx(Spacer, {}), _jsx(Text, { size: "xs", tone: "subtle", mono: true, children: rows.length })] }), _jsx("div", { className: "min-h-0 flex-1 overflow-auto p-1.5", onMouseLeave: () => builder.dispatch({ type: 'hover', id: null }), onDragLeave: (e) => {
|
|
164
|
+
// Clear the indicator when the drag exits the tree panel.
|
|
165
|
+
if (!e.currentTarget.contains(e.relatedTarget))
|
|
166
|
+
clearDrop();
|
|
167
|
+
}, children: rows.map((row) => {
|
|
168
|
+
const manifest = studio.registry.getManifest(row.componentId);
|
|
169
|
+
const selected = row.id === builder.selectedId;
|
|
170
|
+
const hovered = row.id === builder.hoveredId;
|
|
171
|
+
// EC-088: indicate condition-gated nodes; flag the currently-hidden ones.
|
|
172
|
+
let condState = 'none';
|
|
173
|
+
if (row.condition) {
|
|
174
|
+
const r = data.resolveCondition(row.condition);
|
|
175
|
+
condState = r.kind === 'condition' && r.pass ? 'visible' : 'hidden';
|
|
176
|
+
}
|
|
177
|
+
return (_jsxs("div", { onMouseEnter: () => builder.dispatch({ type: 'hover', id: row.id }), draggable: !row.isRoot, onDragStart: (e) => handleRowDragStart(row, e), onDragOver: (e) => handleRowDragOver(row, e), onDrop: handleRowDrop, onDragEnd: handleRowDragEnd, "data-tree-row": row.id, "data-tree-drop": drop?.rowId === row.id ? (drop.indicator ?? undefined) : undefined, className: cn('group flex items-center rounded-md pr-1 text-left text-xs transition-colors', selected
|
|
178
|
+
? 'bg-accent text-accent-foreground'
|
|
179
|
+
: hovered
|
|
180
|
+
? 'bg-muted text-foreground'
|
|
181
|
+
: 'text-muted-foreground', drop?.rowId === row.id && drop.indicator
|
|
182
|
+
? ROW_DROP_CLASSES[drop.indicator]
|
|
183
|
+
: undefined), children: [_jsxs("button", { type: "button", onClick: () => builder.dispatch({ type: 'select', id: row.id }), className: "flex min-w-0 flex-1 items-center gap-1.5 py-1", style: { paddingLeft: `${6 + row.depth * 14}px` }, children: [_jsx("span", { className: cn('truncate font-mono', condState === 'hidden' && 'line-through opacity-70'), children: shortId(row.componentId) }), manifest?.title ? (_jsx("span", { className: "truncate text-muted-foreground/70", children: manifest.title })) : null, condState === 'hidden' ? (_jsx(EyeOff, { className: "size-3 shrink-0 text-warning", "aria-label": "Hidden by condition" })) : condState === 'visible' ? (_jsx(Filter, { className: "size-3 shrink-0 text-muted-foreground/60", "aria-label": "Conditional" })) : null] }), _jsxs("div", { className: cn('flex shrink-0 items-center gap-0.5', selected
|
|
184
|
+
? 'opacity-100'
|
|
185
|
+
: 'opacity-0 group-hover:opacity-100 group-focus-within:opacity-100'), children: [_jsx(IconAction, { label: "Add child", onClick: () => onAddChild(row.id), children: _jsx(Plus, {}) }), _jsx(RowActionsMenu, { row: row, builder: builder, clipboard: clipboard })] })] }, row.id));
|
|
186
|
+
}) })] }));
|
|
187
|
+
}
|
|
188
|
+
/** Right-aligned keyboard-shortcut hint in a menu item — informational only; the
|
|
189
|
+
* shortcut fires globally via the clipboard listeners regardless of the menu. */
|
|
190
|
+
function MenuShortcut({ children }) {
|
|
191
|
+
return _jsx("span", { className: "ml-auto pl-6 text-xs tracking-widest text-muted-foreground", children: children });
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* The per-row "•••" action menu (EC-211). Copy/Paste on every row; Cut, Move,
|
|
195
|
+
* Duplicate, Delete for non-root rows. Collapsing the old inline icon cluster
|
|
196
|
+
* (up to 8 buttons, cropping on the 200–240px panel) into a menu changes no
|
|
197
|
+
* behavior — same clipboard fragment + dispatch paths, same Cmd/Ctrl shortcuts.
|
|
198
|
+
* Delete stays a one-click (undoable) destructive item, consistent with the rest
|
|
199
|
+
* of the studio.
|
|
200
|
+
*/
|
|
201
|
+
function RowActionsMenu({ row, builder, clipboard, }) {
|
|
202
|
+
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { size: "icon-sm", variant: "ghost", "aria-label": "More actions", title: "More actions", className: "size-6", children: _jsx(MoreHorizontal, {}) }) }), _jsxs(DropdownMenuContent, { align: "end", children: [_jsxs(DropdownMenuItem, { onClick: () => clipboard.copyNode(row.id), children: [_jsx(ClipboardCopy, {}), " Copy ", _jsx(MenuShortcut, { children: "\u2318C" })] }), _jsxs(DropdownMenuItem, { onClick: () => void clipboard.pasteFromClipboard(row.id), children: [_jsx(ClipboardPaste, {}), " Paste ", _jsx(MenuShortcut, { children: "\u2318V" })] }), !row.isRoot ? (_jsxs(_Fragment, { children: [_jsxs(DropdownMenuItem, { onClick: () => clipboard.cutNode(row.id), children: [_jsx(ClipboardX, {}), " Cut ", _jsx(MenuShortcut, { children: "\u2318X" })] }), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { disabled: row.isFirst, onClick: () => builder.dispatch({ type: 'reorder', id: row.id, delta: -1 }), children: [_jsx(ChevronUp, {}), " Move up"] }), _jsxs(DropdownMenuItem, { disabled: row.isLast, onClick: () => builder.dispatch({ type: 'reorder', id: row.id, delta: 1 }), children: [_jsx(ChevronDown, {}), " Move down"] }), _jsxs(DropdownMenuItem, { onClick: () => builder.dispatch({ type: 'duplicate', id: row.id }), children: [_jsx(Copy, {}), " Duplicate"] }), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { variant: "destructive", onClick: () => builder.dispatch({ type: 'remove', id: row.id }), children: [_jsx(Trash2, {}), " Delete"] })] })) : null] })] }));
|
|
203
|
+
}
|
|
204
|
+
function IconAction({ label, onClick, disabled, destructive, children, }) {
|
|
205
|
+
return (_jsx(Button, { size: "icon-sm", variant: "ghost", "aria-label": label, title: label, disabled: disabled, onClick: onClick, className: cn('size-6', destructive && 'hover:text-destructive'), children: children }));
|
|
206
|
+
}
|
|
207
|
+
//# sourceMappingURL=page-tree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-tree.js","sourceRoot":"","sources":["../../../src/components/builder/page-tree.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACb,cAAc,EACd,UAAU,EACV,IAAI,EACJ,MAAM,EACN,MAAM,EACN,cAAc,EACd,IAAI,EACJ,MAAM,GACP,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,WAAW,GACZ,MAAM,sCAAsC,CAAA;AAE7C,OAAO,EAAE,iBAAiB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