@elytracms/studio 0.0.52 → 0.0.53
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/dist/components/account/account-settings.js +4 -4
- package/dist/components/account/credential-panel.js +1 -1
- package/dist/components/account/self-account-view-source.js +3 -3
- package/dist/components/ai/ai-chat-panel-lazy.js +1 -1
- package/dist/components/ai/ai-chat-panel.js +4 -4
- package/dist/components/ai/ai-cms-panel.js +1 -1
- package/dist/components/ai/proposal-card.js +4 -4
- package/dist/components/ai/translate-document-action.js +1 -1
- package/dist/components/ai/translate-document-dialog.d.ts +1 -1
- package/dist/components/app-views/default-modules.d.ts +3 -3
- package/dist/components/app-views/default-modules.js +20 -20
- package/dist/components/app-views/sidebar.d.ts +1 -1
- package/dist/components/app-views/sidebar.js +2 -2
- package/dist/components/app-views/studio-config.d.ts +1 -1
- package/dist/components/assets/asset-detail.js +9 -9
- package/dist/components/assets/asset-grid.js +7 -7
- package/dist/components/assets/asset-thumb.d.ts +1 -1
- package/dist/components/assets/asset-thumb.js +2 -2
- package/dist/components/assets/assets-collection-view-source.js +3 -3
- package/dist/components/assets/assets-module.js +8 -8
- package/dist/components/assets/assets-store.d.ts +1 -1
- package/dist/components/assets/assets-store.js +1 -1
- package/dist/components/builder/blocks-model.js +1 -1
- package/dist/components/builder/blocks-panel.d.ts +1 -1
- package/dist/components/builder/blocks-panel.js +6 -6
- package/dist/components/builder/canvas.js +11 -11
- package/dist/components/builder/clipboard-actions.js +2 -2
- package/dist/components/builder/composition-field-editor-lazy.d.ts +1 -1
- package/dist/components/builder/composition-field-editor-lazy.js +1 -1
- package/dist/components/builder/composition-field-editor.d.ts +1 -1
- package/dist/components/builder/composition-field-editor.js +9 -9
- package/dist/components/builder/insert-context.d.ts +2 -2
- package/dist/components/builder/insert-context.js +2 -2
- package/dist/components/builder/insert-menu.d.ts +2 -2
- package/dist/components/builder/insert-menu.js +1 -1
- package/dist/components/builder/layout-inspector.js +1 -1
- package/dist/components/builder/page-tree.js +5 -5
- package/dist/components/builder/property-inspector.js +3 -3
- package/dist/components/builder/reuse-context.d.ts +1 -1
- package/dist/components/builder/reuse-context.js +3 -3
- package/dist/components/builder/spacing-handles.js +2 -2
- package/dist/components/cms/asset-picker.js +4 -4
- package/dist/components/cms/bulk-actions.js +1 -1
- package/dist/components/cms/bulk-bar.d.ts +1 -1
- package/dist/components/cms/bulk-bar.js +3 -3
- package/dist/components/cms/cell-edit.js +1 -1
- package/dist/components/cms/cell.js +2 -2
- package/dist/components/cms/cms-index.js +1 -1
- package/dist/components/cms/cms-store.d.ts +2 -2
- package/dist/components/cms/cms-store.js +6 -6
- package/dist/components/cms/collection-table.js +17 -17
- package/dist/components/cms/detail-editor.js +31 -31
- package/dist/components/cms/document-diff-view.js +4 -4
- package/dist/components/cms/editable-cell.d.ts +1 -1
- package/dist/components/cms/editable-cell.js +6 -6
- package/dist/components/cms/field-control.js +15 -15
- package/dist/components/cms/field-renderer.d.ts +2 -2
- package/dist/components/cms/filter-builder.js +3 -3
- package/dist/components/cms/import-export.js +1 -1
- package/dist/components/cms/issues-pane.js +1 -1
- package/dist/components/cms/prop-fields.js +3 -3
- package/dist/components/cms/reference-confirm.js +1 -1
- package/dist/components/cms/relation-picker.js +1 -1
- package/dist/components/cms/rich-text/block-commands.d.ts +1 -1
- package/dist/components/cms/rich-text/component-embed.js +2 -2
- package/dist/components/cms/rich-text/editor.js +8 -8
- package/dist/components/cms/rich-text/embed-inspector.d.ts +1 -1
- package/dist/components/cms/rich-text/embed-inspector.js +2 -2
- package/dist/components/cms/rich-text/embed-picker.js +1 -1
- package/dist/components/cms/rich-text/embed-props.js +1 -1
- package/dist/components/cms/rich-text/extensions.d.ts +1 -1
- package/dist/components/cms/rich-text/extensions.js +4 -4
- package/dist/components/cms/rich-text/index.d.ts +1 -1
- package/dist/components/cms/rich-text/index.js +1 -1
- package/dist/components/cms/rich-text/insert.d.ts +1 -1
- package/dist/components/cms/rich-text/lazy.d.ts +1 -1
- package/dist/components/cms/rich-text/lazy.js +1 -1
- package/dist/components/cms/rich-text/slash-command.js +1 -1
- package/dist/components/cms/rich-text/toolbar.d.ts +1 -1
- package/dist/components/cms/rich-text/toolbar.js +4 -4
- package/dist/components/cms/use-cell-edit.d.ts +1 -1
- package/dist/components/cms/use-cell-edit.js +2 -2
- package/dist/components/cms/use-compare-selection.d.ts +1 -1
- package/dist/components/cms/use-discard-controller.d.ts +1 -1
- package/dist/components/cms/use-discard-controller.js +2 -2
- package/dist/components/cms/use-document-versions.d.ts +1 -1
- package/dist/components/cms/use-document-versions.js +1 -1
- package/dist/components/cms/use-embed-inspector-host.d.ts +1 -1
- package/dist/components/cms/use-published-perspective.d.ts +2 -2
- package/dist/components/cms/use-published-perspective.js +2 -2
- package/dist/components/cms/use-restore-version.js +1 -1
- package/dist/components/cms/version-compare-lazy.js +1 -1
- package/dist/components/cms/version-compare.js +6 -6
- package/dist/components/cms/versions-model.d.ts +1 -1
- package/dist/components/cms/versions-pane.js +5 -5
- package/dist/components/cms/view-bar.js +2 -2
- package/dist/components/collab/collab-context.js +1 -1
- package/dist/components/collection-view/cms-collection-view-source.js +2 -2
- package/dist/components/components/component-preview.js +3 -3
- package/dist/components/components/components-index.js +2 -2
- package/dist/components/components/registry-browser.js +2 -2
- package/dist/components/components/transfer-dialog.js +5 -5
- package/dist/components/components/transfer.js +4 -4
- package/dist/components/current-user-menu.js +2 -2
- package/dist/components/delivery-health-banner.js +2 -2
- package/dist/components/operation-error.js +1 -1
- package/dist/components/project-list.js +5 -5
- package/dist/components/project-session.js +1 -1
- package/dist/components/project-switcher.js +3 -3
- package/dist/components/rail-store-status.js +1 -1
- package/dist/components/redirects/redirects-collection-view-source.js +3 -3
- package/dist/components/redirects/redirects-module.js +6 -6
- package/dist/components/section-nav.js +3 -3
- package/dist/components/section-surface.js +1 -1
- package/dist/components/studio-project-screen.js +7 -7
- package/dist/components/studio-shell.js +9 -9
- package/dist/components/use-hydration-phase.js +1 -1
- package/dist/components/users/users-collection-view-source.js +4 -4
- package/dist/components/users/users-module.js +9 -9
- package/dist/components/workspace-projects.js +1 -1
- package/dist/customization.d.ts +9 -9
- package/dist/customization.js +5 -5
- package/dist/lib/ai/anthropic-provider.d.ts +1 -1
- package/dist/lib/ai/apply-content.d.ts +1 -1
- package/dist/lib/ai/apply-content.js +3 -3
- package/dist/lib/ai/chat-state.d.ts +2 -2
- package/dist/lib/ai/config.d.ts +1 -1
- package/dist/lib/ai/create-flow.d.ts +2 -2
- package/dist/lib/ai/create-flow.js +3 -3
- package/dist/lib/ai/fake-provider.d.ts +1 -1
- package/dist/lib/ai/index.d.ts +15 -15
- package/dist/lib/ai/index.js +15 -15
- package/dist/lib/ai/knowledge.d.ts +1 -1
- package/dist/lib/ai/provenance.d.ts +1 -1
- package/dist/lib/ai/route-provider.d.ts +1 -1
- package/dist/lib/ai/route.d.ts +1 -1
- package/dist/lib/ai/shape.d.ts +1 -1
- package/dist/lib/ai/translate-document.d.ts +1 -1
- package/dist/lib/ai/translate-document.js +3 -3
- package/dist/lib/ai-panel.js +1 -1
- package/dist/lib/assets/index.d.ts +4 -4
- package/dist/lib/assets/index.js +4 -4
- package/dist/lib/assets/upload.d.ts +2 -2
- package/dist/lib/assets/upload.js +2 -2
- package/dist/lib/auth/convex-auth-adapter.d.ts +2 -2
- package/dist/lib/auth/convex-auth-adapter.js +1 -1
- package/dist/lib/auth/dev-auto-login-adapter.d.ts +1 -1
- package/dist/lib/auth/index.d.ts +9 -9
- package/dist/lib/auth/index.js +10 -10
- package/dist/lib/auth/local-auth-adapter.d.ts +1 -1
- package/dist/lib/auth/route-guard.d.ts +1 -1
- package/dist/lib/auth-errors.d.ts +1 -1
- package/dist/lib/clipboard/index.d.ts +3 -3
- package/dist/lib/clipboard/index.js +3 -3
- package/dist/lib/cms/published-documents.d.ts +1 -1
- package/dist/lib/cms-views/index.d.ts +2 -2
- package/dist/lib/cms-views/index.js +2 -2
- package/dist/lib/collection-view/collection-view-source.d.ts +4 -4
- package/dist/lib/data/collection-content.js +1 -1
- package/dist/lib/data/data-store.js +6 -6
- package/dist/lib/data/index.d.ts +4 -4
- package/dist/lib/data/index.js +4 -4
- package/dist/lib/data/sample-capture.js +4 -4
- package/dist/lib/data/sources-store.d.ts +1 -1
- package/dist/lib/diff-view-preference.js +1 -1
- package/dist/lib/dnd/gap-drag.d.ts +1 -1
- package/dist/lib/i18n/i18n.d.ts +1 -1
- package/dist/lib/i18n/i18n.js +1 -1
- package/dist/lib/i18n/index.d.ts +4 -4
- package/dist/lib/i18n/index.js +3 -3
- package/dist/lib/i18n/messages.en.d.ts +1 -1
- package/dist/lib/i18n/messages.en.js +1 -1
- package/dist/lib/locale/binding-fallback.d.ts +1 -1
- package/dist/lib/locale/binding-fallback.js +2 -2
- package/dist/lib/locale/index.d.ts +6 -6
- package/dist/lib/locale/index.js +6 -6
- package/dist/lib/locale/locale-switcher.js +3 -3
- package/dist/lib/locale/use-studio-locale.js +1 -1
- package/dist/lib/operations/asset-repository.d.ts +1 -1
- package/dist/lib/operations/cms-persistence.d.ts +1 -1
- package/dist/lib/operations/cms-persistence.js +1 -1
- package/dist/lib/operations/index.d.ts +6 -6
- package/dist/lib/operations/index.js +6 -6
- package/dist/lib/operations/session-hydration.d.ts +1 -1
- package/dist/lib/operations/session-hydration.js +1 -1
- package/dist/lib/operations/studio-operations.d.ts +1 -1
- package/dist/lib/operations/studio-operations.js +3 -3
- package/dist/lib/persistence/convex-adapter.js +2 -2
- package/dist/lib/persistence/convex-blob-storage.d.ts +1 -1
- package/dist/lib/persistence/convex-blob-storage.js +1 -1
- package/dist/lib/persistence/deployment-readiness.d.ts +2 -2
- package/dist/lib/persistence/index.d.ts +6 -6
- package/dist/lib/persistence/index.js +7 -7
- package/dist/lib/persona/labels.js +1 -1
- package/dist/lib/query/index.d.ts +2 -2
- package/dist/lib/query/index.js +1 -1
- package/dist/lib/rail.js +1 -1
- package/dist/lib/references/impact.d.ts +1 -1
- package/dist/lib/references/impact.js +1 -1
- package/dist/lib/references/index.d.ts +3 -3
- package/dist/lib/references/index.js +3 -3
- package/dist/lib/references/references-store.d.ts +2 -2
- package/dist/lib/references/references-store.js +3 -3
- package/dist/lib/registry/index.js +2 -2
- package/dist/lib/theme.js +1 -1
- package/dist/lib/webhooks/config.d.ts +1 -1
- package/dist/lib/webhooks/config.js +2 -2
- package/dist/lib/webhooks/dispatcher.js +2 -2
- package/dist/lib/webhooks/index.d.ts +6 -6
- package/dist/lib/webhooks/index.js +4 -4
- package/dist/lib/workspace/index.d.ts +7 -7
- package/dist/lib/workspace/index.js +3 -3
- package/dist/lib/workspace/switcher-source.d.ts +1 -1
- package/dist/router/index.d.ts +1 -1
- package/dist/router/index.js +1 -1
- package/dist/ui/avatar.js +1 -1
- package/dist/ui/badge.js +1 -1
- package/dist/ui/button.js +1 -1
- package/dist/ui/card.js +1 -1
- package/dist/ui/collapsible-section.js +2 -2
- package/dist/ui/dialog.js +1 -1
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/field.js +1 -1
- package/dist/ui/index.d.ts +19 -19
- package/dist/ui/index.js +19 -19
- package/dist/ui/input.js +1 -1
- package/dist/ui/inspector.js +1 -1
- package/dist/ui/layout.js +1 -1
- package/dist/ui/panel.js +2 -2
- package/dist/ui/popover.js +1 -1
- package/dist/ui/row-item.js +2 -2
- package/dist/ui/segmented-control.js +1 -1
- package/dist/ui/separator.js +1 -1
- package/dist/ui/toolbar.js +2 -2
- package/dist/ui/typography.js +1 -1
- package/package.json +3 -3
- package/dist/components/assets/asset-library.d.ts +0 -14
- package/dist/components/assets/asset-library.js +0 -202
- package/dist/components/assets/asset-library.js.map +0 -1
- package/dist/components/backend-gate.d.ts +0 -19
- package/dist/components/backend-gate.js +0 -64
- package/dist/components/backend-gate.js.map +0 -1
- package/dist/components/builder/composition-scope.d.ts +0 -16
- package/dist/components/builder/composition-scope.js +0 -7
- package/dist/components/builder/composition-scope.js.map +0 -1
- package/dist/components/cms/alias-selector.d.ts +0 -20
- package/dist/components/cms/alias-selector.js +0 -34
- package/dist/components/cms/alias-selector.js.map +0 -1
- package/dist/components/cms/collections-sidebar.d.ts +0 -18
- package/dist/components/cms/collections-sidebar.js +0 -36
- package/dist/components/cms/collections-sidebar.js.map +0 -1
- package/dist/components/cms/new-page-dialog.d.ts +0 -22
- package/dist/components/cms/new-page-dialog.js +0 -42
- package/dist/components/cms/new-page-dialog.js.map +0 -1
- package/dist/components/cms/rich-text/embed-control.d.ts +0 -17
- package/dist/components/cms/rich-text/embed-control.js +0 -62
- package/dist/components/cms/rich-text/embed-control.js.map +0 -1
- package/dist/components/cms/rich-text/image-control.d.ts +0 -16
- package/dist/components/cms/rich-text/image-control.js +0 -36
- package/dist/components/cms/rich-text/image-control.js.map +0 -1
- package/dist/components/components/fixture-runner.d.ts +0 -10
- package/dist/components/components/fixture-runner.js +0 -27
- package/dist/components/components/fixture-runner.js.map +0 -1
- package/dist/components/references/builder-deep-link.d.ts +0 -12
- package/dist/components/references/builder-deep-link.js +0 -53
- package/dist/components/references/builder-deep-link.js.map +0 -1
- package/dist/components/routes/redirect-chain.d.ts +0 -9
- package/dist/components/routes/redirect-chain.js +0 -16
- package/dist/components/routes/redirect-chain.js.map +0 -1
- package/dist/components/routes/redirect-manager.d.ts +0 -13
- package/dist/components/routes/redirect-manager.js +0 -24
- package/dist/components/routes/redirect-manager.js.map +0 -1
- package/dist/components/routes/route-list.d.ts +0 -35
- package/dist/components/routes/route-list.js +0 -69
- package/dist/components/routes/route-list.js.map +0 -1
- package/dist/components/routes/routes-shell.d.ts +0 -14
- package/dist/components/routes/routes-shell.js +0 -68
- package/dist/components/routes/routes-shell.js.map +0 -1
- package/dist/components/sections.d.ts +0 -37
- package/dist/components/sections.js +0 -62
- package/dist/components/sections.js.map +0 -1
- package/dist/components/users/user-search.d.ts +0 -8
- package/dist/components/users/user-search.js +0 -13
- package/dist/components/users/user-search.js.map +0 -1
- package/dist/components/workspace-gate.d.ts +0 -12
- package/dist/components/workspace-gate.js +0 -28
- package/dist/components/workspace-gate.js.map +0 -1
- package/dist/lib/cms-views/views-store.d.ts +0 -70
- package/dist/lib/cms-views/views-store.js +0 -129
- package/dist/lib/cms-views/views-store.js.map +0 -1
- package/dist/lib/operations/graph-commands.d.ts +0 -136
- package/dist/lib/operations/graph-commands.js +0 -85
- package/dist/lib/operations/graph-commands.js.map +0 -1
- package/dist/lib/operations/graph-persistence.d.ts +0 -27
- package/dist/lib/operations/graph-persistence.js +0 -35
- package/dist/lib/operations/graph-persistence.js.map +0 -1
- package/dist/lib/routing/index.d.ts +0 -10
- package/dist/lib/routing/index.js +0 -11
- package/dist/lib/routing/index.js.map +0 -1
- package/dist/lib/routing/routing-analysis.d.ts +0 -26
- package/dist/lib/routing/routing-analysis.js +0 -37
- package/dist/lib/routing/routing-analysis.js.map +0 -1
- package/dist/lib/routing/routing-store.d.ts +0 -50
- package/dist/lib/routing/routing-store.js +0 -72
- package/dist/lib/routing/routing-store.js.map +0 -1
- package/dist/lib/working-graph.d.ts +0 -82
- package/dist/lib/working-graph.js +0 -113
- package/dist/lib/working-graph.js.map +0 -1
package/dist/lib/i18n/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { msg } from './types';
|
|
2
|
-
export { EN_MESSAGES } from './messages.en';
|
|
3
|
-
export { resolveActiveLocale, resolveStudioI18n, translate, localizedLabel, msgLabel, resolveMsgLabel, useT, useUiLocale, useLabel, parseAcceptLanguage, setServerLanguagesResolver, setUiLocaleForTests, resetStudioI18nForTests, } from './i18n';
|
|
1
|
+
export { msg } from './types.js';
|
|
2
|
+
export { EN_MESSAGES } from './messages.en.js';
|
|
3
|
+
export { resolveActiveLocale, resolveStudioI18n, translate, localizedLabel, msgLabel, resolveMsgLabel, useT, useUiLocale, useLabel, parseAcceptLanguage, setServerLanguagesResolver, setUiLocaleForTests, resetStudioI18nForTests, } from './i18n.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Locale } from '@elytracms/core/cms-core';
|
|
2
2
|
import type { BindingReference } from '@elytracms/core/project-graph';
|
|
3
3
|
import type { DataSource } from '@elytracms/core/data-binding';
|
|
4
|
-
import type { DisplayedFallback } from './fallback';
|
|
4
|
+
import type { DisplayedFallback } from './fallback.js';
|
|
5
5
|
/**
|
|
6
6
|
* Fallback visibility for BOUND content (EC-176): given a stored content
|
|
7
7
|
* binding and its CMS source, decide whether the value the canvas currently
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { listQueryOfConfig } from '../bindings/section-bindings';
|
|
2
|
-
import { getCollectionDocument, runCollectionListQuery } from '../data/collection-content';
|
|
1
|
+
import { listQueryOfConfig } from '../bindings/section-bindings.js';
|
|
2
|
+
import { getCollectionDocument, runCollectionListQuery } from '../data/collection-content.js';
|
|
3
3
|
function isCmsSource(source) {
|
|
4
4
|
return source.kind === 'cms';
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './locale-store';
|
|
2
|
-
export * from './fallback';
|
|
3
|
-
export * from './route-variant';
|
|
4
|
-
export * from './binding-fallback';
|
|
5
|
-
export * from './use-studio-locale';
|
|
6
|
-
export * from './locale-switcher';
|
|
1
|
+
export * from './locale-store.js';
|
|
2
|
+
export * from './fallback.js';
|
|
3
|
+
export * from './route-variant.js';
|
|
4
|
+
export * from './binding-fallback.js';
|
|
5
|
+
export * from './use-studio-locale.js';
|
|
6
|
+
export * from './locale-switcher.js';
|
package/dist/lib/locale/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './locale-store';
|
|
2
|
-
export * from './fallback';
|
|
3
|
-
export * from './route-variant';
|
|
4
|
-
export * from './binding-fallback';
|
|
5
|
-
export * from './use-studio-locale';
|
|
6
|
-
export * from './locale-switcher';
|
|
1
|
+
export * from './locale-store.js';
|
|
2
|
+
export * from './fallback.js';
|
|
3
|
+
export * from './route-variant.js';
|
|
4
|
+
export * from './binding-fallback.js';
|
|
5
|
+
export * from './use-studio-locale.js';
|
|
6
|
+
export * from './locale-switcher.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Globe } from 'lucide-react';
|
|
3
|
-
import { cn } from '../utils';
|
|
4
|
-
import { localeChipLabel } from './fallback';
|
|
5
|
-
import { useStudioLocale } from './use-studio-locale';
|
|
3
|
+
import { cn } from '../utils.js';
|
|
4
|
+
import { localeChipLabel } from './fallback.js';
|
|
5
|
+
import { useStudioLocale } from './use-studio-locale.js';
|
|
6
6
|
/**
|
|
7
7
|
* The ambient locale switcher (EC-176): one segmented control, mounted in the
|
|
8
8
|
* builder toolbar and the CMS surface header, both driving the same
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSyncExternalStore } from 'react';
|
|
2
|
-
import { getStudioLocaleState, setStudioLocale, subscribeStudioLocale, } from './locale-store';
|
|
2
|
+
import { getStudioLocaleState, setStudioLocale, subscribeStudioLocale, } from './locale-store.js';
|
|
3
3
|
/** Subscribe a React surface to the studio's ambient locale (EC-176). */
|
|
4
4
|
export function useStudioLocale() {
|
|
5
5
|
const state = useSyncExternalStore(subscribeStudioLocale, getStudioLocaleState, getStudioLocaleState);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AssetRepository } from '@elytracms/core/persistence';
|
|
2
|
-
import type { OperationsClient } from './operations-package';
|
|
2
|
+
import type { OperationsClient } from './operations-package.js';
|
|
3
3
|
/**
|
|
4
4
|
* `AssetRepository` facade over the operations layer (EC-141). The asset
|
|
5
5
|
* flows (upload confirm, reference-respecting delete — EC-151) are written
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CmsDocument, CollectionDef, DocumentRef, PropFieldLookup } from '@elytracms/core/cms-core';
|
|
2
|
-
import type { OperationError, OperationsClient } from './operations-package';
|
|
2
|
+
import type { OperationError, OperationsClient } from './operations-package.js';
|
|
3
3
|
/**
|
|
4
4
|
* CMS session → operations persistence (EC-141). The CMS store keeps documents
|
|
5
5
|
* and collections as optimistic session state (synchronous editing, validation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { selfTypeDocument } from '@elytracms/core/cms-core';
|
|
2
|
-
import { createPersistQueue } from './persist-queue';
|
|
2
|
+
import { createPersistQueue } from './persist-queue.js';
|
|
3
3
|
export function createCmsPersister(options) {
|
|
4
4
|
const queue = createPersistQueue();
|
|
5
5
|
let baselineDone = false;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* goes through — see `studio-operations.ts` for the bootstrap and
|
|
4
4
|
* `operations-package.ts` for why the package is bridged by path.
|
|
5
5
|
*/
|
|
6
|
-
export * from './operations-package';
|
|
7
|
-
export * from './studio-operations';
|
|
8
|
-
export * from './persist-queue';
|
|
9
|
-
export * from './cms-persistence';
|
|
10
|
-
export * from './asset-repository';
|
|
11
|
-
export * from './session-hydration';
|
|
6
|
+
export * from './operations-package.js';
|
|
7
|
+
export * from './studio-operations.js';
|
|
8
|
+
export * from './persist-queue.js';
|
|
9
|
+
export * from './cms-persistence.js';
|
|
10
|
+
export * from './asset-repository.js';
|
|
11
|
+
export * from './session-hydration.js';
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* goes through — see `studio-operations.ts` for the bootstrap and
|
|
4
4
|
* `operations-package.ts` for why the package is bridged by path.
|
|
5
5
|
*/
|
|
6
|
-
export * from './operations-package';
|
|
7
|
-
export * from './studio-operations';
|
|
8
|
-
export * from './persist-queue';
|
|
9
|
-
export * from './cms-persistence';
|
|
10
|
-
export * from './asset-repository';
|
|
11
|
-
export * from './session-hydration';
|
|
6
|
+
export * from './operations-package.js';
|
|
7
|
+
export * from './studio-operations.js';
|
|
8
|
+
export * from './persist-queue.js';
|
|
9
|
+
export * from './cms-persistence.js';
|
|
10
|
+
export * from './asset-repository.js';
|
|
11
|
+
export * from './session-hydration.js';
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CmsDocument, CollectionDef } from '@elytracms/core/cms-core';
|
|
2
2
|
import type { AssetRecord } from '@elytracms/core/persistence';
|
|
3
|
-
import type { OperationResult, OperationsClient } from './operations-package';
|
|
3
|
+
import type { OperationResult, OperationsClient } from './operations-package.js';
|
|
4
4
|
/**
|
|
5
5
|
* Legacy marker (EC-246b): editor-owned saved views are retired — list
|
|
6
6
|
* presentation is config-as-code now (named views live in `cms/`). The id is kept
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { documentKey } from '@elytracms/core/cms-core';
|
|
2
|
-
import { DATA_SOURCES_COLLECTION } from '../data/sources-store';
|
|
2
|
+
import { DATA_SOURCES_COLLECTION } from '../data/sources-store.js';
|
|
3
3
|
/**
|
|
4
4
|
* Legacy marker (EC-246b): editor-owned saved views are retired — list
|
|
5
5
|
* presentation is config-as-code now (named views live in `cms/`). The id is kept
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PersistenceAdapter } from '@elytracms/core/persistence';
|
|
2
|
-
import type { ChangesetOperations, OperationsClient, Principal, ReferenceIndexAttachment } from './operations-package';
|
|
2
|
+
import type { ChangesetOperations, OperationsClient, Principal, ReferenceIndexAttachment } from './operations-package.js';
|
|
3
3
|
/**
|
|
4
4
|
* The studio's single operations bootstrap (EC-141, vision AD-7).
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { activeDeploymentKey, selectPersistenceAdapter } from '../persistence';
|
|
2
|
-
import { attachConfiguredRevalidationWebhooks } from '../webhooks';
|
|
3
|
-
import { attachReferenceIndex, createChangesets, createOperations, createRoleAuthorization, } from './operations-package';
|
|
1
|
+
import { activeDeploymentKey, selectPersistenceAdapter } from '../persistence/index.js';
|
|
2
|
+
import { attachConfiguredRevalidationWebhooks } from '../webhooks/index.js';
|
|
3
|
+
import { attachReferenceIndex, createChangesets, createOperations, createRoleAuthorization, } from './operations-package.js';
|
|
4
4
|
/**
|
|
5
5
|
* A no-op {@link ReferenceIndexAttachment} for self-maintaining adapters (EC-277):
|
|
6
6
|
* nothing is subscribed, so `detach` and `flush` are trivially satisfied (the index
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { documentKey, documentSchema } from '@elytracms/core/cms-core';
|
|
2
2
|
import { RecordNotFoundError, PersistenceValidationError, compareReferenceEntries, highestRole, isKnownRole, validateForPersistence, } from '@elytracms/core/persistence';
|
|
3
3
|
import { normalizeInviteEmail } from '@elytracms/core/persistence';
|
|
4
|
-
import { queryRef, mutationRef } from './convex-client';
|
|
5
|
-
import { ConvexBlobStorage } from './convex-blob-storage';
|
|
4
|
+
import { queryRef, mutationRef } from './convex-client.js';
|
|
5
|
+
import { ConvexBlobStorage } from './convex-blob-storage.js';
|
|
6
6
|
const realClock = () => new Date().toISOString();
|
|
7
7
|
function newId(prefix) {
|
|
8
8
|
const rand = typeof globalThis.crypto?.randomUUID === 'function'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BlobStorageAdapter } from '@elytracms/core/persistence';
|
|
2
|
-
import { queryRef, mutationRef } from './convex-client';
|
|
2
|
+
import { queryRef, mutationRef } from './convex-client.js';
|
|
3
3
|
/**
|
|
4
4
|
* The minimal structural slice of `ConvexHttpClient` the blob adapter needs.
|
|
5
5
|
* Typed structurally so unit tests can substitute a recorded/mocked client
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeploymentReadinessFacts, DeploymentReadinessReport } from '@elytracms/core/export-sync/deployment-ready';
|
|
2
2
|
import type { CollectionDef } from '@elytracms/core/cms-core';
|
|
3
|
-
import type { StudioBackendConfig } from './backend-mode';
|
|
4
|
-
import type { WorkspaceState } from '../workspace';
|
|
3
|
+
import type { StudioBackendConfig } from './backend-mode.js';
|
|
4
|
+
import type { WorkspaceState } from '../workspace/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* Studio-side adapter for the shared `checkDeploymentReady` contract (EC-258).
|
|
7
7
|
* Maps the studio's resolved state — backend mode (`resolveBackendConfig`),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PersistenceAdapter } from '@elytracms/core/persistence';
|
|
2
|
-
import type { StudioBackendMode } from './backend-mode';
|
|
2
|
+
import type { StudioBackendMode } from './backend-mode.js';
|
|
3
3
|
/**
|
|
4
4
|
* Select the persistence backend (EC-153, vision AD-1). **Convex is the
|
|
5
5
|
* default**: a configured `VITE_CONVEX_URL` is required unless the explicit
|
|
@@ -25,8 +25,8 @@ export declare function activeDeploymentKey(): string;
|
|
|
25
25
|
* only needs "is this the playground?" should use `isPlaygroundMode()`.
|
|
26
26
|
*/
|
|
27
27
|
export declare function persistenceMode(): StudioBackendMode;
|
|
28
|
-
export { ConvexPersistenceAdapter } from './convex-adapter';
|
|
29
|
-
export { CONVEX_URL_ENV_VAR, DEV_LOGIN_ENV_VAR, MODE_ENV_VAR, PLAYGROUND_MODE, isDevAutoLoginActive, isPlaygroundMode, resolveBackendConfig, resolveDevAutoLogin, } from './backend-mode';
|
|
30
|
-
export type { DevAutoLoginCredentials, EnvRecord, StudioBackendConfig, StudioBackendMode, } from './backend-mode';
|
|
31
|
-
export { studioDeploymentReadiness, studioReadinessFacts } from './deployment-readiness';
|
|
32
|
-
export type { StudioReadinessInputs } from './deployment-readiness';
|
|
28
|
+
export { ConvexPersistenceAdapter } from './convex-adapter.js';
|
|
29
|
+
export { CONVEX_URL_ENV_VAR, DEV_LOGIN_ENV_VAR, MODE_ENV_VAR, PLAYGROUND_MODE, isDevAutoLoginActive, isPlaygroundMode, resolveBackendConfig, resolveDevAutoLogin, } from './backend-mode.js';
|
|
30
|
+
export type { DevAutoLoginCredentials, EnvRecord, StudioBackendConfig, StudioBackendMode, } from './backend-mode.js';
|
|
31
|
+
export { studioDeploymentReadiness, studioReadinessFacts } from './deployment-readiness.js';
|
|
32
|
+
export type { StudioReadinessInputs } from './deployment-readiness.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SEED_PROJECT_ID, createSeededPersistenceAdapter } from '@elytracms/core/persistence';
|
|
2
|
-
import { resolveDeploymentCollections, resolveDeploymentProjectId, resolveDeploymentUrl, } from '../workspace';
|
|
3
|
-
import { getConvexClient } from './convex-client';
|
|
4
|
-
import { ConvexPersistenceAdapter } from './convex-adapter';
|
|
5
|
-
import { resolveBackendConfig } from './backend-mode';
|
|
2
|
+
import { resolveDeploymentCollections, resolveDeploymentProjectId, resolveDeploymentUrl, } from '../workspace/index.js';
|
|
3
|
+
import { getConvexClient } from './convex-client.js';
|
|
4
|
+
import { ConvexPersistenceAdapter } from './convex-adapter.js';
|
|
5
|
+
import { resolveBackendConfig } from './backend-mode.js';
|
|
6
6
|
/**
|
|
7
7
|
* Select the persistence backend (EC-153, vision AD-1). **Convex is the
|
|
8
8
|
* default**: a configured `VITE_CONVEX_URL` is required unless the explicit
|
|
@@ -59,9 +59,9 @@ export function persistenceMode() {
|
|
|
59
59
|
throw new Error(config.detail);
|
|
60
60
|
return config.kind;
|
|
61
61
|
}
|
|
62
|
-
export { ConvexPersistenceAdapter } from './convex-adapter';
|
|
63
|
-
export { CONVEX_URL_ENV_VAR, DEV_LOGIN_ENV_VAR, MODE_ENV_VAR, PLAYGROUND_MODE, isDevAutoLoginActive, isPlaygroundMode, resolveBackendConfig, resolveDevAutoLogin, } from './backend-mode';
|
|
62
|
+
export { ConvexPersistenceAdapter } from './convex-adapter.js';
|
|
63
|
+
export { CONVEX_URL_ENV_VAR, DEV_LOGIN_ENV_VAR, MODE_ENV_VAR, PLAYGROUND_MODE, isDevAutoLoginActive, isPlaygroundMode, resolveBackendConfig, resolveDevAutoLogin, } from './backend-mode.js';
|
|
64
64
|
// EC-258: the deployment-readiness facts mapper (the boot DeploymentSetupGate + a
|
|
65
65
|
// future `elytra doctor` CLI compose the same `checkDeploymentReady` contract).
|
|
66
|
-
export { studioDeploymentReadiness, studioReadinessFacts } from './deployment-readiness';
|
|
66
|
+
export { studioDeploymentReadiness, studioReadinessFacts } from './deployment-readiness.js';
|
|
67
67
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* The studio client read seam (EC-308 / AD-17): one operations-backed query cache.
|
|
3
3
|
* See `./operations-query`.
|
|
4
4
|
*/
|
|
5
|
-
export { StudioQueryProvider, useOperationQuery, useOperationCache, listStoreState, OPERATION_INVALIDATE_DEBOUNCE_MS, } from './operations-query';
|
|
6
|
-
export type { OperationCache, UseOperationQueryOptions } from './operations-query';
|
|
5
|
+
export { StudioQueryProvider, useOperationQuery, useOperationCache, listStoreState, OPERATION_INVALIDATE_DEBOUNCE_MS, } from './operations-query.js';
|
|
6
|
+
export type { OperationCache, UseOperationQueryOptions } from './operations-query.js';
|
package/dist/lib/query/index.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* The studio client read seam (EC-308 / AD-17): one operations-backed query cache.
|
|
3
3
|
* See `./operations-query`.
|
|
4
4
|
*/
|
|
5
|
-
export { StudioQueryProvider, useOperationQuery, useOperationCache, listStoreState, OPERATION_INVALIDATE_DEBOUNCE_MS, } from './operations-query';
|
|
5
|
+
export { StudioQueryProvider, useOperationQuery, useOperationCache, listStoreState, OPERATION_INVALIDATE_DEBOUNCE_MS, } from './operations-query.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/lib/rail.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* the way the user left it. Best-effort like the theme preference: storage may be
|
|
5
5
|
* unavailable, in which case the rail simply defaults to expanded each session.
|
|
6
6
|
*/
|
|
7
|
-
import { createBooleanPreference, createStringSetPreference } from './local-preference';
|
|
7
|
+
import { createBooleanPreference, createStringSetPreference } from './local-preference.js';
|
|
8
8
|
export const RAIL_STORAGE_KEY = 'elytra-rail-collapsed';
|
|
9
9
|
const collapsedPreference = createBooleanPreference(RAIL_STORAGE_KEY, false);
|
|
10
10
|
/** Read the persisted collapse preference; expanded (false) when unset/unavailable. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CollectionDef, DocumentRef, RelationFieldDef } from '@elytracms/core/cms-core';
|
|
2
|
-
import type { ReferenceEntryView } from './reference-model';
|
|
2
|
+
import type { ReferenceEntryView } from './reference-model.js';
|
|
3
3
|
/**
|
|
4
4
|
* Pure impact model for the EC-173 safe-unpublish/delete flows: given the
|
|
5
5
|
* inbound reference entries of one or more target documents (the EC-172 panel
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { documentKey } from '@elytracms/core/cms-core';
|
|
2
|
-
import { parseDocumentFieldPath, parseDocumentKey } from './reference-model';
|
|
2
|
+
import { parseDocumentFieldPath, parseDocumentKey } from './reference-model.js';
|
|
3
3
|
/** Does this entry break (dangle / fall back) when `action` proceeds? */
|
|
4
4
|
export function entryBreaksOnAction(entry, action) {
|
|
5
5
|
return action === 'delete' ? entry.draft || entry.published : entry.published;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* References & used-by data layer (EC-172): pure presentation model over the
|
|
3
3
|
* EC-155 reference index plus the operations-backed panel store.
|
|
4
4
|
*/
|
|
5
|
-
export * from './reference-model';
|
|
6
|
-
export * from './references-store';
|
|
7
|
-
export * from './impact';
|
|
5
|
+
export * from './reference-model.js';
|
|
6
|
+
export * from './references-store.js';
|
|
7
|
+
export * from './impact.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* References & used-by data layer (EC-172): pure presentation model over the
|
|
3
3
|
* EC-155 reference index plus the operations-backed panel store.
|
|
4
4
|
*/
|
|
5
|
-
export * from './reference-model';
|
|
6
|
-
export * from './references-store';
|
|
7
|
-
export * from './impact';
|
|
5
|
+
export * from './reference-model.js';
|
|
6
|
+
export * from './references-store.js';
|
|
7
|
+
export * from './impact.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DocumentRef } from '@elytracms/core/cms-core';
|
|
2
2
|
import type { ReferenceSource, ReferenceTarget } from '@elytracms/core/persistence';
|
|
3
|
-
import type { OperationEvent, StudioOperations } from '../operations';
|
|
4
|
-
import type { ReferenceEntryView } from './reference-model';
|
|
3
|
+
import type { OperationEvent, StudioOperations } from '../operations/index.js';
|
|
4
|
+
import type { ReferenceEntryView } from './reference-model.js';
|
|
5
5
|
/**
|
|
6
6
|
* Data layer for the EC-172 references panels. All reads go through
|
|
7
7
|
* `@elytracms/core/operations` queries (`references.outbound` / `references.inbound`
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import { documentKey } from '@elytracms/core/cms-core';
|
|
3
3
|
import { useOperationQuery } from '@elytracms/studio/lib/query';
|
|
4
|
-
import { getStudioOperations } from '../operations';
|
|
5
|
-
import { getStudioRegistry } from '../registry';
|
|
6
|
-
import { buildReferenceEntryViews } from './reference-model';
|
|
4
|
+
import { getStudioOperations } from '../operations/index.js';
|
|
5
|
+
import { getStudioRegistry } from '../registry/index.js';
|
|
6
|
+
import { buildReferenceEntryViews } from './reference-model.js';
|
|
7
7
|
// --- Index bootstrap -----------------------------------------------------------
|
|
8
8
|
/**
|
|
9
9
|
* The EC-155 index is maintained on write, but seeded/imported projects start
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentRegistry, manifestPropFields } from '@elytracms/core/component-registry';
|
|
2
2
|
import { basePrimitives, getImplementation } from '@elytracms/core/runtime-renderer';
|
|
3
|
-
import { getActiveProjectSlug, resolveDeploymentComponents } from '../workspace';
|
|
4
|
-
import { projectComponentImplementations, projectComponentManifests } from './project-components';
|
|
3
|
+
import { getActiveProjectSlug, resolveDeploymentComponents } from '../workspace/index.js';
|
|
4
|
+
import { projectComponentImplementations, projectComponentManifests } from './project-components.js';
|
|
5
5
|
/**
|
|
6
6
|
* EC-194/EC-208/EC-223: the consuming repo's OWN real components, INJECTED through
|
|
7
7
|
* config-as-code (the mount contract). The active project's `components` field holds
|
package/dist/lib/theme.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* class on the document element. Light mode is the absence of that class — the
|
|
5
5
|
* design tokens define `:root` (light) and `.dark` overrides (see tokens.css).
|
|
6
6
|
*/
|
|
7
|
-
import { createLocalPreference } from './local-preference';
|
|
7
|
+
import { createLocalPreference } from './local-preference.js';
|
|
8
8
|
export const THEME_STORAGE_KEY = 'elytra-theme';
|
|
9
9
|
export const DEFAULT_THEME = 'dark';
|
|
10
10
|
/** Apply a theme to the document root by toggling the `dark` class. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OperationEventBus } from '@elytracms/core/operations';
|
|
2
|
-
import type { WebhookDispatcherAttachment } from './dispatcher';
|
|
2
|
+
import type { WebhookDispatcherAttachment } from './dispatcher.js';
|
|
3
3
|
/**
|
|
4
4
|
* Attach the dispatcher from environment configuration. Returns `null` when
|
|
5
5
|
* no endpoint/secret is configured (the common local-dev case).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { attachRevalidationWebhooks } from './dispatcher';
|
|
2
|
-
import { resolveDeploymentLocales } from '../workspace';
|
|
1
|
+
import { attachRevalidationWebhooks } from './dispatcher.js';
|
|
2
|
+
import { resolveDeploymentLocales } from '../workspace/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Environment wiring for the EC-146 revalidation webhooks. The dispatcher is
|
|
5
5
|
* attached only when a host endpoint is configured, so dev sessions and tests
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WEBHOOK_SIGNATURE_HEADER, signWebhookBody } from './signing';
|
|
2
|
-
import { webhookTagsForEvent } from './tags';
|
|
1
|
+
import { WEBHOOK_SIGNATURE_HEADER, signWebhookBody } from './signing.js';
|
|
2
|
+
import { webhookTagsForEvent } from './tags.js';
|
|
3
3
|
async function deliver(endpoint, tagSet, timestamp, fetchFn) {
|
|
4
4
|
const payload = {
|
|
5
5
|
projectId: tagSet.projectId,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* dispatch to host revalidate endpoints. See `dispatcher.ts` for the
|
|
4
4
|
* delivery/CORS model and `tags.ts` for the tag computation.
|
|
5
5
|
*/
|
|
6
|
-
export { attachRevalidationWebhooks } from './dispatcher';
|
|
7
|
-
export type { RevalidateWebhookPayload, WebhookDispatcherAttachment, WebhookDispatcherOptions, WebhookEndpoint, } from './dispatcher';
|
|
8
|
-
export { attachConfiguredRevalidationWebhooks } from './config';
|
|
9
|
-
export { WEBHOOK_SIGNATURE_HEADER, signWebhookBody } from './signing';
|
|
10
|
-
export { collectionWebhookTag, docWebhookTag, projectSweepWebhookTag, webhookTagsForEvent, } from './tags';
|
|
11
|
-
export type { WebhookTagSet } from './tags';
|
|
6
|
+
export { attachRevalidationWebhooks } from './dispatcher.js';
|
|
7
|
+
export type { RevalidateWebhookPayload, WebhookDispatcherAttachment, WebhookDispatcherOptions, WebhookEndpoint, } from './dispatcher.js';
|
|
8
|
+
export { attachConfiguredRevalidationWebhooks } from './config.js';
|
|
9
|
+
export { WEBHOOK_SIGNATURE_HEADER, signWebhookBody } from './signing.js';
|
|
10
|
+
export { collectionWebhookTag, docWebhookTag, projectSweepWebhookTag, webhookTagsForEvent, } from './tags.js';
|
|
11
|
+
export type { WebhookTagSet } from './tags.js';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* dispatch to host revalidate endpoints. See `dispatcher.ts` for the
|
|
4
4
|
* delivery/CORS model and `tags.ts` for the tag computation.
|
|
5
5
|
*/
|
|
6
|
-
export { attachRevalidationWebhooks } from './dispatcher';
|
|
7
|
-
export { attachConfiguredRevalidationWebhooks } from './config';
|
|
8
|
-
export { WEBHOOK_SIGNATURE_HEADER, signWebhookBody } from './signing';
|
|
9
|
-
export { collectionWebhookTag, docWebhookTag, projectSweepWebhookTag, webhookTagsForEvent, } from './tags';
|
|
6
|
+
export { attachRevalidationWebhooks } from './dispatcher.js';
|
|
7
|
+
export { attachConfiguredRevalidationWebhooks } from './config.js';
|
|
8
|
+
export { WEBHOOK_SIGNATURE_HEADER, signWebhookBody } from './signing.js';
|
|
9
|
+
export { collectionWebhookTag, docWebhookTag, projectSweepWebhookTag, webhookTagsForEvent, } from './tags.js';
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { BreakpointConfig, ElytraConfigInput } from '@elytracms/core/studio-core';
|
|
2
2
|
import type { CollectionDef, RouteRecord } from '@elytracms/core/cms-core';
|
|
3
|
-
import type { SidebarNode } from '../../components/app-views/module';
|
|
4
|
-
import type { CustomFieldRenderer, StudioConfig } from '../../components/app-views/studio-config';
|
|
5
|
-
import type { WorkspaceState } from './workspace-source';
|
|
6
|
-
export { resolveWorkspaceState, WORKSPACE_ENV_VAR } from './workspace-source';
|
|
7
|
-
export type { WorkspaceSources, WorkspaceState } from './workspace-source';
|
|
8
|
-
export { persistedProjects, selectSwitcherProjects, unprovisionedProjects } from './switcher-source';
|
|
9
|
-
export type { SwitcherEntry, SwitcherSourceInput } from './switcher-source';
|
|
3
|
+
import type { SidebarNode } from '../../components/app-views/module.js';
|
|
4
|
+
import type { CustomFieldRenderer, StudioConfig } from '../../components/app-views/studio-config.js';
|
|
5
|
+
import type { WorkspaceState } from './workspace-source.js';
|
|
6
|
+
export { resolveWorkspaceState, WORKSPACE_ENV_VAR } from './workspace-source.js';
|
|
7
|
+
export type { WorkspaceSources, WorkspaceState } from './workspace-source.js';
|
|
8
|
+
export { persistedProjects, selectSwitcherProjects, unprovisionedProjects } from './switcher-source.js';
|
|
9
|
+
export type { SwitcherEntry, SwitcherSourceInput } from './switcher-source.js';
|
|
10
10
|
/**
|
|
11
11
|
* Mount the studio against a project config (EC-223 mount contract) and an
|
|
12
12
|
* optional studio-only customization config (EC-236). The consumer's entry point
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { frontendUrlForEnvironment } from '@elytracms/core/studio-core';
|
|
2
|
-
import { resolveWorkspaceState } from './workspace-source';
|
|
3
|
-
export { resolveWorkspaceState, WORKSPACE_ENV_VAR } from './workspace-source';
|
|
4
|
-
export { persistedProjects, selectSwitcherProjects, unprovisionedProjects } from './switcher-source';
|
|
2
|
+
import { resolveWorkspaceState } from './workspace-source.js';
|
|
3
|
+
export { resolveWorkspaceState, WORKSPACE_ENV_VAR } from './workspace-source.js';
|
|
4
|
+
export { persistedProjects, selectSwitcherProjects, unprovisionedProjects } from './switcher-source.js';
|
|
5
5
|
let cached = null;
|
|
6
6
|
let studioConfig = null;
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Project } from '@elytracms/core/studio-core';
|
|
2
2
|
import type { ResolvedWorkspaceProject } from '@elytracms/core/studio-core';
|
|
3
|
-
import type { WorkspaceState } from './workspace-source';
|
|
3
|
+
import type { WorkspaceState } from './workspace-source.js';
|
|
4
4
|
/**
|
|
5
5
|
* Config-driven switcher source (EC-154, reframed for EC-179 per-backend
|
|
6
6
|
* projects). Pure logic deciding what the project switcher and launcher list:
|
package/dist/router/index.d.ts
CHANGED
|
@@ -29,4 +29,4 @@ export declare const STUDIO_PROJECT_ROUTE: "/$projectId/$";
|
|
|
29
29
|
* table (`./match`). Re-exported here so a component imports the link seam from
|
|
30
30
|
* one place: `{ Link, STUDIO_PROJECT_ROUTE, studioPath }`.
|
|
31
31
|
*/
|
|
32
|
-
export { studioPath } from './match';
|
|
32
|
+
export { studioPath } from './match.js';
|
package/dist/router/index.js
CHANGED
|
@@ -28,5 +28,5 @@ export const STUDIO_PROJECT_ROUTE = '/$projectId/$';
|
|
|
28
28
|
* table (`./match`). Re-exported here so a component imports the link seam from
|
|
29
29
|
* one place: `{ Link, STUDIO_PROJECT_ROUTE, studioPath }`.
|
|
30
30
|
*/
|
|
31
|
-
export { studioPath } from './match';
|
|
31
|
+
export { studioPath } from './match.js';
|
|
32
32
|
//# sourceMappingURL=index.js.map
|
package/dist/ui/avatar.js
CHANGED
package/dist/ui/badge.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from 'class-variance-authority';
|
|
3
|
-
import { cn } from '../lib/utils';
|
|
3
|
+
import { cn } from '../lib/utils.js';
|
|
4
4
|
export const badgeVariants = cva('inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium leading-none transition-colors [&_svg]:size-3', {
|
|
5
5
|
variants: {
|
|
6
6
|
variant: {
|
package/dist/ui/button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from 'class-variance-authority';
|
|
3
3
|
import { Slot } from '@radix-ui/react-slot';
|
|
4
|
-
import { cn } from '../lib/utils';
|
|
4
|
+
import { cn } from '../lib/utils.js';
|
|
5
5
|
export const buttonVariants = cva('inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,background-color,border-color,box-shadow] outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0', {
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
package/dist/ui/card.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '../lib/utils';
|
|
2
|
+
import { cn } from '../lib/utils.js';
|
|
3
3
|
/** Named card surface — use instead of repeated bordered/shadowed divs. */
|
|
4
4
|
export function Card({ interactive, className, ...props }) {
|
|
5
5
|
return (_jsx("div", { className: cn('rounded-lg border border-border bg-card text-card-foreground shadow-sm', interactive &&
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronDown } from 'lucide-react';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import { cn } from '../lib/utils';
|
|
5
|
-
import { Panel, PanelHeader } from './panel';
|
|
4
|
+
import { cn } from '../lib/utils.js';
|
|
5
|
+
import { Panel, PanelHeader } from './panel.js';
|
|
6
6
|
/**
|
|
7
7
|
* A `Panel`-backed section whose header can collapse its body (EC-306). No
|
|
8
8
|
* existing collapsible/accordion primitive existed; this is the reusable one
|
package/dist/ui/dialog.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
3
|
import { X } from 'lucide-react';
|
|
4
|
-
import { cn } from '../lib/utils';
|
|
4
|
+
import { cn } from '../lib/utils.js';
|
|
5
5
|
export const Dialog = DialogPrimitive.Root;
|
|
6
6
|
export const DialogTrigger = DialogPrimitive.Trigger;
|
|
7
7
|
export const DialogClose = DialogPrimitive.Close;
|
package/dist/ui/dropdown-menu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
3
|
import { Check } from 'lucide-react';
|
|
4
|
-
import { cn } from '../lib/utils';
|
|
4
|
+
import { cn } from '../lib/utils.js';
|
|
5
5
|
export const DropdownMenu = DropdownMenuPrimitive.Root;
|
|
6
6
|
export const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
7
7
|
export const DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
package/dist/ui/field.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronDown } from 'lucide-react';
|
|
3
|
-
import { cn } from '../lib/utils';
|
|
3
|
+
import { cn } from '../lib/utils.js';
|
|
4
4
|
export function Field({ label, htmlFor, hint, error, required, children, className }) {
|
|
5
5
|
return (_jsxs("div", { className: cn('flex flex-col gap-1.5', className), children: [_jsxs(FieldLabel, { htmlFor: htmlFor, children: [label, required ? _jsx("span", { className: "text-destructive", children: " *" }) : null] }), children, error ? (_jsx("p", { className: "text-xs font-medium text-destructive", role: "alert", children: error })) : hint ? (_jsx("p", { className: "text-xs text-muted-foreground", children: hint })) : null] }));
|
|
6
6
|
}
|