@columnus/sdk 0.0.0-stage → 0.3.0
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/blocknote-editor-547WFBXP.js +7 -0
- package/dist/blocknote-editor-547WFBXP.js.map +1 -0
- package/dist/blocknote-editor-YZEFMXLC.css +47 -0
- package/dist/blocknote-editor-YZEFMXLC.css.map +1 -0
- package/dist/blocknote-preview-6WRENQZD.css +47 -0
- package/dist/blocknote-preview-6WRENQZD.css.map +1 -0
- package/dist/blocknote-preview-CTMNUSYX.js +7 -0
- package/dist/blocknote-preview-CTMNUSYX.js.map +1 -0
- package/dist/chunk-5IPH2A64.js +23337 -0
- package/dist/chunk-5IPH2A64.js.map +1 -0
- package/dist/chunk-BQCD5MEV.js +225 -0
- package/dist/chunk-BQCD5MEV.js.map +1 -0
- package/dist/chunk-BXTTCBIK.js +11 -0
- package/dist/chunk-BXTTCBIK.js.map +1 -0
- package/dist/chunk-ICKWVUW7.js +134 -0
- package/dist/chunk-ICKWVUW7.js.map +1 -0
- package/dist/chunk-IMYSQX2X.js +58 -0
- package/dist/chunk-IMYSQX2X.js.map +1 -0
- package/dist/chunk-JYSABU33.js +494 -0
- package/dist/chunk-JYSABU33.js.map +1 -0
- package/dist/chunk-PX6F3LHL.js +37 -0
- package/dist/chunk-PX6F3LHL.js.map +1 -0
- package/dist/chunk-QPQRNIKG.js +142 -0
- package/dist/chunk-QPQRNIKG.js.map +1 -0
- package/dist/chunk-SKE2RDD2.js +4217 -0
- package/dist/chunk-SKE2RDD2.js.map +1 -0
- package/dist/chunk-XWMTXQF3.js +18727 -0
- package/dist/chunk-XWMTXQF3.js.map +1 -0
- package/dist/chunk-ZTWPGA37.js +68 -0
- package/dist/chunk-ZTWPGA37.js.map +1 -0
- package/dist/cms/builder/diff-view.js +70 -0
- package/dist/cms/builder/diff-view.js.map +1 -0
- package/dist/cms/builder/panel.js +1316 -0
- package/dist/cms/builder/panel.js.map +1 -0
- package/dist/cms/convex/index.css +47 -0
- package/dist/cms/convex/index.css.map +1 -0
- package/dist/cms/convex/index.js +370 -0
- package/dist/cms/convex/index.js.map +1 -0
- package/dist/cms/index.css +47 -0
- package/dist/cms/index.css.map +1 -0
- package/dist/cms/index.js +9 -0
- package/dist/cms/index.js.map +1 -0
- package/dist/cms/server/index.js +5 -0
- package/dist/cms/server/index.js.map +1 -0
- package/dist/cms/tables/tables-dialog.css +47 -0
- package/dist/cms/tables/tables-dialog.css.map +1 -0
- package/dist/cms/tables/tables-dialog.js +590 -0
- package/dist/cms/tables/tables-dialog.js.map +1 -0
- package/dist/cms/tailwind.css +4 -0
- package/dist/editor-543ARQ6S.js +427 -0
- package/dist/editor-543ARQ6S.js.map +1 -0
- package/dist/editor-54UG7BSP.css +47 -0
- package/dist/editor-54UG7BSP.css.map +1 -0
- package/dist/mcp-cli.js +61218 -0
- package/dist/primitives.css +143 -0
- package/dist/rich-text-editor/blocknote-preview-studio.css +54 -0
- package/dist/richtext.css +4 -0
- package/dist/types/cms/src/adapters/default-richtext.d.ts +24 -0
- package/dist/types/cms/src/adapters/projected-fields-adapter.d.ts +22 -0
- package/dist/types/cms/src/adapters/table-rows-context.d.ts +4 -0
- package/dist/types/cms/src/adapters/table-rows-richtext.d.ts +8 -0
- package/dist/types/cms/src/builder/annotate.d.ts +13 -0
- package/dist/types/cms/src/builder/diff-view.d.ts +10 -0
- package/dist/types/cms/src/builder/inspect.d.ts +32 -0
- package/dist/types/cms/src/builder/panel.d.ts +11 -0
- package/dist/types/cms/src/builder/sessions-menu.d.ts +37 -0
- package/dist/types/cms/src/builder/sidecar-json.d.ts +2 -0
- package/dist/types/cms/src/cache/html-cache.d.ts +12 -0
- package/dist/types/cms/src/chrome/changes-view.d.ts +15 -0
- package/dist/types/cms/src/chrome/confirm-panel.d.ts +10 -0
- package/dist/types/cms/src/chrome/floating-toolbar.d.ts +25 -0
- package/dist/types/cms/src/chrome/icons.d.ts +13 -0
- package/dist/types/cms/src/chrome/overlay-styles.d.ts +38 -0
- package/dist/types/cms/src/chrome/resolve-dialog.d.ts +26 -0
- package/dist/types/cms/src/chrome/session-storage.d.ts +3 -0
- package/dist/types/cms/src/convex/cms-convex-proposals.d.ts +19 -0
- package/dist/types/cms/src/convex/cms-convex-shell.d.ts +8 -0
- package/dist/types/cms/src/convex/cms-host-refs.d.ts +15 -0
- package/dist/types/cms/src/convex/index.d.ts +7 -0
- package/dist/types/cms/src/convex/proposal-refs.d.ts +20 -0
- package/dist/types/cms/src/convex/use-cms-display-fields-adapter.d.ts +17 -0
- package/dist/types/cms/src/convex/use-cms-display-values.d.ts +12 -0
- package/dist/types/cms/src/convex/use-cms-editor-auth.d.ts +12 -0
- package/dist/types/cms/src/convex/use-cms-storage-display.d.ts +19 -0
- package/dist/types/cms/src/convex/use-cms-storage-fields-adapter.d.ts +63 -0
- package/dist/types/cms/src/convex/use-fields-adapter-host.d.ts +4 -0
- package/dist/types/cms/src/create/compound-create.d.ts +56 -0
- package/dist/types/cms/src/draft/merge-draft.d.ts +31 -0
- package/dist/types/cms/src/edit/cms-compound-create.d.ts +12 -0
- package/dist/types/cms/src/edit/cms-create-button.d.ts +9 -0
- package/dist/types/cms/src/edit/edit-surface.d.ts +16 -0
- package/dist/types/cms/src/edit/field-editor-dialog.d.ts +22 -0
- package/dist/types/cms/src/edit/inplace-field-editor.d.ts +21 -0
- package/dist/types/cms/src/edit/inplace-switch-modal.d.ts +5 -0
- package/dist/types/cms/src/edit/insert-row-dialog.d.ts +20 -0
- package/dist/types/cms/src/index.d.ts +35 -0
- package/dist/types/cms/src/list/build-insert-draft.d.ts +13 -0
- package/dist/types/cms/src/manifest-index.d.ts +5 -0
- package/dist/types/cms/src/nav/content-ref-integrity.d.ts +18 -0
- package/dist/types/cms/src/nav/content-ref.d.ts +6 -0
- package/dist/types/cms/src/nav/infer-navigation-table.d.ts +20 -0
- package/dist/types/cms/src/nav/slugify-de.d.ts +4 -0
- package/dist/types/cms/src/pages/login-page.d.ts +5 -0
- package/dist/types/cms/src/profile/propose-gates.d.ts +12 -0
- package/dist/types/cms/src/profile/readable-tables.d.ts +13 -0
- package/dist/types/cms/src/projection/cms-projection.d.ts +63 -0
- package/dist/types/cms/src/proposals/types.d.ts +59 -0
- package/dist/types/cms/src/provider/builder-draft.d.ts +14 -0
- package/dist/types/cms/src/provider/cms-provider.d.ts +240 -0
- package/dist/types/cms/src/rich-doc/cms-rich-doc-view.d.ts +4 -0
- package/dist/types/cms/src/server/cookie.d.ts +11 -0
- package/dist/types/cms/src/server/index.d.ts +2 -0
- package/dist/types/cms/src/server/session.d.ts +53 -0
- package/dist/types/cms/src/stamps/attrs.d.ts +17 -0
- package/dist/types/cms/src/stamps/related.d.ts +11 -0
- package/dist/types/cms/src/stamps/resolve-display.d.ts +41 -0
- package/dist/types/cms/src/stamps/row.d.ts +41 -0
- package/dist/types/cms/src/stamps/stamp-media-drop.d.ts +23 -0
- package/dist/types/cms/src/stamps/stamp.d.ts +44 -0
- package/dist/types/cms/src/stamps/storage-display.d.ts +4 -0
- package/dist/types/cms/src/stamps/use-cms-projected-field.d.ts +6 -0
- package/dist/types/cms/src/stamps/use-cms-projected-table.d.ts +7 -0
- package/dist/types/cms/src/stamps/use-cms-related-row.d.ts +2 -0
- package/dist/types/cms/src/tables/tables-dialog.d.ts +6 -0
- package/dist/types/cms/src/tables/use-cms-grid.d.ts +78 -0
- package/dist/types/cms/src/tables/use-draft-commands.d.ts +35 -0
- package/dist/types/data-grid/src/components/balanced-preview-columns.d.ts +7 -0
- package/dist/types/data-grid/src/components/cell-formula-bar.d.ts +40 -0
- package/dist/types/data-grid/src/components/cell-renderer.d.ts +10 -0
- package/dist/types/data-grid/src/components/cell-selection.d.ts +72 -0
- package/dist/types/data-grid/src/components/column-filter-popover.d.ts +29 -0
- package/dist/types/data-grid/src/components/context-menu-selection.d.ts +24 -0
- package/dist/types/data-grid/src/components/data-grid-table.d.ts +49 -0
- package/dist/types/data-grid/src/components/delete-confirm-copy.d.ts +6 -0
- package/dist/types/data-grid/src/components/display-search-scope-notice.d.ts +4 -0
- package/dist/types/data-grid/src/components/draft-rows.d.ts +14 -0
- package/dist/types/data-grid/src/components/field-condition-editor.d.ts +71 -0
- package/dist/types/data-grid/src/components/fill-handle.d.ts +22 -0
- package/dist/types/data-grid/src/components/grid-action-bar.d.ts +8 -0
- package/dist/types/data-grid/src/components/grid-body-layout.d.ts +27 -0
- package/dist/types/data-grid/src/components/grid-body-row.d.ts +83 -0
- package/dist/types/data-grid/src/components/grid-editing.d.ts +158 -0
- package/dist/types/data-grid/src/components/grid-event-utils.d.ts +10 -0
- package/dist/types/data-grid/src/components/grid-filter-search-chips.d.ts +7 -0
- package/dist/types/data-grid/src/components/grid-filter-search-context.d.ts +135 -0
- package/dist/types/data-grid/src/components/grid-filter-search.d.ts +6 -0
- package/dist/types/data-grid/src/components/grid-row-menu.d.ts +23 -0
- package/dist/types/data-grid/src/components/grid-seam-island.d.ts +23 -0
- package/dist/types/data-grid/src/components/grid-sort-group.d.ts +25 -0
- package/dist/types/data-grid/src/components/grid-toolbar.d.ts +54 -0
- package/dist/types/data-grid/src/components/index-suggestion-banner.d.ts +11 -0
- package/dist/types/data-grid/src/components/inline-edit-draft.d.ts +18 -0
- package/dist/types/data-grid/src/components/keyboard-shortcuts-overlay.d.ts +7 -0
- package/dist/types/data-grid/src/components/measure-column-auto-width.d.ts +6 -0
- package/dist/types/data-grid/src/components/pending-edits.d.ts +25 -0
- package/dist/types/data-grid/src/components/perform-grid-row-delete.d.ts +27 -0
- package/dist/types/data-grid/src/components/query-plan-banner.d.ts +13 -0
- package/dist/types/data-grid/src/components/query-predicate-builder.d.ts +53 -0
- package/dist/types/data-grid/src/components/row-detail-dialog.d.ts +17 -0
- package/dist/types/data-grid/src/components/row-preview-content.d.ts +21 -0
- package/dist/types/data-grid/src/components/row-preview-drawer.d.ts +24 -0
- package/dist/types/data-grid/src/components/selection-value-chips.d.ts +12 -0
- package/dist/types/data-grid/src/components/selection.d.ts +46 -0
- package/dist/types/data-grid/src/components/table-cell-overlays.d.ts +33 -0
- package/dist/types/data-grid/src/components/table-color-marker.d.ts +10 -0
- package/dist/types/data-grid/src/components/use-column-visibility.d.ts +5 -0
- package/dist/types/data-grid/src/components/use-column-widths.d.ts +6 -0
- package/dist/types/data-grid/src/components/use-undo-redo.d.ts +46 -0
- package/dist/types/data-grid/src/hooks/plan-pending-edits.d.ts +41 -0
- package/dist/types/data-grid/src/hooks/use-grid-interactions.d.ts +100 -0
- package/dist/types/data-grid/src/hooks/use-grid-pending-state.d.ts +41 -0
- package/dist/types/data-grid/src/hooks/use-grid-selection-model.d.ts +28 -0
- package/dist/types/data-grid/src/hooks/use-grid-table-layout.d.ts +39 -0
- package/dist/types/data-grid/src/hooks/use-true-after-delay.d.ts +10 -0
- package/dist/types/data-grid/src/index.d.ts +47 -0
- package/dist/types/data-grid/src/lib/column-filter.d.ts +43 -0
- package/dist/types/data-grid/src/lib/display-search-scope.d.ts +2 -0
- package/dist/types/data-grid/src/lib/format-query-chips.d.ts +28 -0
- package/dist/types/data-grid/src/lib/grid-items.d.ts +63 -0
- package/dist/types/data-grid/src/lib/persistent-state.d.ts +6 -0
- package/dist/types/data-grid/src/lib/query-editor-draft.d.ts +15 -0
- package/dist/types/data-grid/src/lib/use-row-preview-collapsed.d.ts +9 -0
- package/dist/types/data-grid/src/lib/use-row-preview-title.d.ts +1 -0
- package/dist/types/fields/src/components/batch-edit-sheet.d.ts +10 -0
- package/dist/types/fields/src/components/cell-editor.d.ts +29 -0
- package/dist/types/fields/src/components/date-time-input.d.ts +21 -0
- package/dist/types/fields/src/components/date-time-picker-logic.d.ts +13 -0
- package/dist/types/fields/src/components/field-input-chrome.d.ts +11 -0
- package/dist/types/fields/src/components/field-input-inline.d.ts +30 -0
- package/dist/types/fields/src/components/field-input.d.ts +36 -0
- package/dist/types/fields/src/components/field-value-view.d.ts +10 -0
- package/dist/types/fields/src/components/file-array-cell.d.ts +5 -0
- package/dist/types/fields/src/components/file-array-upload-dialog.d.ts +19 -0
- package/dist/types/fields/src/components/file-cell.d.ts +5 -0
- package/dist/types/fields/src/components/file-input.d.ts +21 -0
- package/dist/types/fields/src/components/file-upload-dialog.d.ts +19 -0
- package/dist/types/fields/src/components/focus-text-input.d.ts +5 -0
- package/dist/types/fields/src/components/id-array-cell.d.ts +9 -0
- package/dist/types/fields/src/components/id-array-values.d.ts +1 -0
- package/dist/types/fields/src/components/id-cell.d.ts +4 -0
- package/dist/types/fields/src/components/id-picker.d.ts +28 -0
- package/dist/types/fields/src/components/image-array-cell.d.ts +7 -0
- package/dist/types/fields/src/components/image-cell.d.ts +7 -0
- package/dist/types/fields/src/components/image-preview-dialog.d.ts +8 -0
- package/dist/types/fields/src/components/media-compact-preview.d.ts +17 -0
- package/dist/types/fields/src/components/media-library-picker-dialog.d.ts +16 -0
- package/dist/types/fields/src/components/multi-id-picker.d.ts +24 -0
- package/dist/types/fields/src/components/picker-chrome.d.ts +28 -0
- package/dist/types/fields/src/components/picker-density.d.ts +5 -0
- package/dist/types/fields/src/components/picker-list-placeholder.d.ts +13 -0
- package/dist/types/fields/src/components/picker-menu-keyboard.d.ts +16 -0
- package/dist/types/fields/src/components/picker-menu-layout.d.ts +12 -0
- package/dist/types/fields/src/components/picker-menu-portal.d.ts +19 -0
- package/dist/types/fields/src/components/picker-option-row.d.ts +10 -0
- package/dist/types/fields/src/components/picker-overlay.d.ts +35 -0
- package/dist/types/fields/src/components/record-link-chip.d.ts +21 -0
- package/dist/types/fields/src/components/row-edit-panel.d.ts +36 -0
- package/dist/types/fields/src/components/row-editor.d.ts +19 -0
- package/dist/types/fields/src/components/row-popover.d.ts +11 -0
- package/dist/types/fields/src/components/use-flush-ref.d.ts +3 -0
- package/dist/types/fields/src/components/use-picker-combobox.d.ts +86 -0
- package/dist/types/fields/src/components/use-picker-highlight-scroll.d.ts +4 -0
- package/dist/types/fields/src/components/use-picker-menu-overlay.d.ts +7 -0
- package/dist/types/fields/src/fields-data-adapter.d.ts +111 -0
- package/dist/types/fields/src/fields-data-provider.d.ts +45 -0
- package/dist/types/fields/src/hooks/use-debounced-value.d.ts +1 -0
- package/dist/types/fields/src/hooks/use-row-edit-shortcuts.d.ts +15 -0
- package/dist/types/fields/src/index.d.ts +38 -0
- package/dist/types/fields/src/lib/is-row-doc-dirty.d.ts +2 -0
- package/dist/types/fields/src/lib/scroll-to-form-field.d.ts +6 -0
- package/dist/types/fields/src/media-library-query.d.ts +34 -0
- package/dist/types/fields/src/media-upload-limits.d.ts +18 -0
- package/dist/types/fields/src/record-actions-context.d.ts +17 -0
- package/dist/types/fields/src/storage-upload.d.ts +21 -0
- package/dist/types/primitives/src/components/ui/accordion.d.ts +6 -0
- package/dist/types/primitives/src/components/ui/alert-dialog.d.ts +12 -0
- package/dist/types/primitives/src/components/ui/badge.d.ts +9 -0
- package/dist/types/primitives/src/components/ui/button.d.ts +11 -0
- package/dist/types/primitives/src/components/ui/calendar.d.ts +8 -0
- package/dist/types/primitives/src/components/ui/card.d.ts +7 -0
- package/dist/types/primitives/src/components/ui/checkbox.d.ts +3 -0
- package/dist/types/primitives/src/components/ui/dialog.d.ts +15 -0
- package/dist/types/primitives/src/components/ui/dropdown-menu.d.ts +10 -0
- package/dist/types/primitives/src/components/ui/info-hint.d.ts +37 -0
- package/dist/types/primitives/src/components/ui/input.d.ts +2 -0
- package/dist/types/primitives/src/components/ui/label.d.ts +3 -0
- package/dist/types/primitives/src/components/ui/popover.d.ts +6 -0
- package/dist/types/primitives/src/components/ui/save-bar.d.ts +43 -0
- package/dist/types/primitives/src/components/ui/select.d.ts +8 -0
- package/dist/types/primitives/src/components/ui/separator.d.ts +3 -0
- package/dist/types/primitives/src/components/ui/sheet.d.ts +18 -0
- package/dist/types/primitives/src/components/ui/sonner.d.ts +1 -0
- package/dist/types/primitives/src/components/ui/switch.d.ts +3 -0
- package/dist/types/primitives/src/components/ui/table.d.ts +7 -0
- package/dist/types/primitives/src/components/ui/tabs.d.ts +6 -0
- package/dist/types/primitives/src/components/ui/tooltip.d.ts +6 -0
- package/dist/types/primitives/src/index.d.ts +28 -0
- package/dist/types/primitives/src/lib/animation-frame-batcher.d.ts +11 -0
- package/dist/types/primitives/src/lib/locale-week-start.d.ts +5 -0
- package/dist/types/primitives/src/lib/save-bar-logic.d.ts +52 -0
- package/dist/types/primitives/src/lib/use-raf-batched-pointer-drag.d.ts +31 -0
- package/dist/types/primitives/src/lib/use-save-bar.d.ts +36 -0
- package/dist/types/primitives/src/lib/use-unsaved-changes-guard.d.ts +15 -0
- package/dist/types/primitives/src/lib/utils.d.ts +6 -0
- package/dist/types/richtext/src/editor.d.ts +16 -0
- package/dist/types/richtext/src/host-adapter.d.ts +66 -0
- package/dist/types/richtext/src/index.d.ts +11 -0
- package/dist/types/richtext/src/markdown-editor/editor-styles.d.ts +7 -0
- package/dist/types/richtext/src/markdown-editor/markdown-editor-dialog.d.ts +16 -0
- package/dist/types/richtext/src/markdown-editor/markdown-editor.d.ts +2 -0
- package/dist/types/richtext/src/markdown-editor/markdown-field-input.d.ts +11 -0
- package/dist/types/richtext/src/markdown-editor/markdown-field-trigger.d.ts +8 -0
- package/dist/types/richtext/src/markdown-editor/markdown-insert-pickers-session.d.ts +5 -0
- package/dist/types/richtext/src/markdown-editor/markdown-insert-pickers.d.ts +9 -0
- package/dist/types/richtext/src/markdown-editor/markdown-preview.d.ts +7 -0
- package/dist/types/richtext/src/markdown-editor/markdown-rich-preview.d.ts +5 -0
- package/dist/types/richtext/src/markdown-editor/record-link-picker-session.d.ts +7 -0
- package/dist/types/richtext/src/markdown-editor/record-link-picker.d.ts +9 -0
- package/dist/types/richtext/src/markdown-editor/record-table-picker.d.ts +21 -0
- package/dist/types/richtext/src/markdown-editor/use-markdown-insert-pickers.d.ts +33 -0
- package/dist/types/richtext/src/record-table-view.d.ts +17 -0
- package/dist/types/richtext/src/rich-doc-view.d.ts +30 -0
- package/dist/types/richtext/src/rich-text-editor/blocknote-editor.d.ts +25 -0
- package/dist/types/richtext/src/rich-text-editor/blocknote-portaled-dropdown.d.ts +2 -0
- package/dist/types/richtext/src/rich-text-editor/blocknote-preview.d.ts +12 -0
- package/dist/types/richtext/src/rich-text-editor/record-link-inline.d.ts +15 -0
- package/dist/types/richtext/src/rich-text-editor/record-link-rows-context.d.ts +9 -0
- package/dist/types/richtext/src/rich-text-editor/record-table-block.d.ts +18 -0
- package/dist/types/richtext/src/rich-text-editor/studio-schema.d.ts +283 -0
- package/dist/types/richtext/src/rich-text-editor/studio-slash-menu.d.ts +8 -0
- package/dist/types/richtext/src/rich-text-editor/use-sync-blocknote-value.d.ts +2 -0
- package/dist/types/shared/src/apiProfile.d.ts +164 -0
- package/dist/types/shared/src/apiProfileDiscovery.d.ts +88 -0
- package/dist/types/shared/src/apiProfileSlug.d.ts +11 -0
- package/dist/types/shared/src/apiProfileSources.d.ts +112 -0
- package/dist/types/shared/src/apiProfileValidators.d.ts +310 -0
- package/dist/types/shared/src/apiToken.d.ts +6 -0
- package/dist/types/shared/src/assetFamily.d.ts +38 -0
- package/dist/types/shared/src/assetFieldValues.d.ts +21 -0
- package/dist/types/shared/src/assetGraph.d.ts +221 -0
- package/dist/types/shared/src/assetJobs.d.ts +99 -0
- package/dist/types/shared/src/assetSettings.d.ts +147 -0
- package/dist/types/shared/src/auditRedact.d.ts +36 -0
- package/dist/types/shared/src/betterAuthSession.d.ts +12 -0
- package/dist/types/shared/src/bffHost.d.ts +36 -0
- package/dist/types/shared/src/bffProtocol.d.ts +563 -0
- package/dist/types/shared/src/bffRedact.d.ts +30 -0
- package/dist/types/shared/src/ciPreviewEnv.d.ts +21 -0
- package/dist/types/shared/src/clipboardTransfer.d.ts +25 -0
- package/dist/types/shared/src/convexFacade.d.ts +44 -0
- package/dist/types/shared/src/convexSiteUrl.d.ts +73 -0
- package/dist/types/shared/src/csv.d.ts +65 -0
- package/dist/types/shared/src/dataTransfer.d.ts +21 -0
- package/dist/types/shared/src/dateValues.d.ts +21 -0
- package/dist/types/shared/src/deployOutput.d.ts +3 -0
- package/dist/types/shared/src/displayLabel.d.ts +17 -0
- package/dist/types/shared/src/displayTemplateGenerator.d.ts +11 -0
- package/dist/types/shared/src/displayTypes.d.ts +10 -0
- package/dist/types/shared/src/erdLayout.d.ts +27 -0
- package/dist/types/shared/src/facets.d.ts +109 -0
- package/dist/types/shared/src/failureMessage.d.ts +5 -0
- package/dist/types/shared/src/fieldTypeMeta.d.ts +110 -0
- package/dist/types/shared/src/fieldTypeText.d.ts +34 -0
- package/dist/types/shared/src/fieldValueEqual.d.ts +10 -0
- package/dist/types/shared/src/fieldValueShape.d.ts +24 -0
- package/dist/types/shared/src/fieldValueText.d.ts +32 -0
- package/dist/types/shared/src/gridQuery.d.ts +103 -0
- package/dist/types/shared/src/importMatch.d.ts +80 -0
- package/dist/types/shared/src/index.d.ts +78 -0
- package/dist/types/shared/src/inferIdentifier.d.ts +18 -0
- package/dist/types/shared/src/keyboard.d.ts +16 -0
- package/dist/types/shared/src/manifestDeploy.d.ts +31 -0
- package/dist/types/shared/src/manifestHash.d.ts +12 -0
- package/dist/types/shared/src/mcpOAuth.d.ts +182 -0
- package/dist/types/shared/src/postLoginPath.d.ts +21 -0
- package/dist/types/shared/src/previewDeployName.d.ts +27 -0
- package/dist/types/shared/src/proposalDraftMerge.d.ts +35 -0
- package/dist/types/shared/src/proposePolicy.d.ts +17 -0
- package/dist/types/shared/src/proposeRateLimit.d.ts +27 -0
- package/dist/types/shared/src/queryBetween.d.ts +21 -0
- package/dist/types/shared/src/queryConditions.d.ts +46 -0
- package/dist/types/shared/src/queryExecution.d.ts +12 -0
- package/dist/types/shared/src/queryFieldOps.d.ts +123 -0
- package/dist/types/shared/src/queryMerge.d.ts +30 -0
- package/dist/types/shared/src/queryPlan.d.ts +86 -0
- package/dist/types/shared/src/queryStudio.d.ts +28 -0
- package/dist/types/shared/src/queryTypes.d.ts +184 -0
- package/dist/types/shared/src/queryValidators.d.ts +233 -0
- package/dist/types/shared/src/readApiQuery.d.ts +10 -0
- package/dist/types/shared/src/readModelLimits.d.ts +23 -0
- package/dist/types/shared/src/recordTableColumns.d.ts +24 -0
- package/dist/types/shared/src/recordTablePreload.d.ts +19 -0
- package/dist/types/shared/src/refDisplayRequests.d.ts +17 -0
- package/dist/types/shared/src/refGraph.d.ts +97 -0
- package/dist/types/shared/src/refsRecompute.d.ts +16 -0
- package/dist/types/shared/src/richDoc.d.ts +80 -0
- package/dist/types/shared/src/rowPatchWire.d.ts +12 -0
- package/dist/types/shared/src/rowTrash.d.ts +26 -0
- package/dist/types/shared/src/savedView.d.ts +37 -0
- package/dist/types/shared/src/schemaGenerator.d.ts +36 -0
- package/dist/types/shared/src/schemaShrink.d.ts +82 -0
- package/dist/types/shared/src/schemaShrinkValidators.d.ts +72 -0
- package/dist/types/shared/src/schemaTypes.d.ts +311 -0
- package/dist/types/shared/src/share.d.ts +8 -0
- package/dist/types/shared/src/shareApiBridge.d.ts +13 -0
- package/dist/types/shared/src/shareGuestPolicy.d.ts +14 -0
- package/dist/types/shared/src/shareProposal.d.ts +141 -0
- package/dist/types/shared/src/shareProposalDiff.d.ts +13 -0
- package/dist/types/shared/src/shareScopes.d.ts +19 -0
- package/dist/types/shared/src/shareTokenCrypto.d.ts +9 -0
- package/dist/types/shared/src/shareTokens.d.ts +6 -0
- package/dist/types/shared/src/shareTypes.d.ts +113 -0
- package/dist/types/shared/src/shareWizard.d.ts +23 -0
- package/dist/types/shared/src/spaceBundle.d.ts +89 -0
- package/dist/types/shared/src/stagedApiAccess.d.ts +104 -0
- package/dist/types/shared/src/studioBoot.d.ts +63 -0
- package/dist/types/shared/src/syncChannel.d.ts +25 -0
- package/dist/types/shared/src/syncClampMembership.d.ts +22 -0
- package/dist/types/shared/src/tableSearch.d.ts +52 -0
- package/dist/types/shared/src/tenantHosts.d.ts +34 -0
- package/dist/types/shared/src/tenantSecretsCrypto.d.ts +31 -0
- package/dist/types/shared/src/useDebouncedCommit.d.ts +15 -0
- package/dist/types/shared/src/useDebouncedValue.d.ts +1 -0
- package/dist/types/shared/src/useModifierHeld.d.ts +2 -0
- package/package.json +85 -3
- package/README.md +0 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type GetConvexJwt = () => Promise<{
|
|
2
|
+
token: string | null;
|
|
3
|
+
}>;
|
|
4
|
+
/**
|
|
5
|
+
* While `enabled`, registers `ConvexReactClient.setAuth` to mint a JWT from
|
|
6
|
+
* the httpOnly CMS session cookie (plan 051 PR 7b R2/R4). Clears auth when
|
|
7
|
+
* disabled or on unmount so anonymous reads stay on the public token path.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useCmsEditorAuth(args: {
|
|
10
|
+
getConvexJwt: GetConvexJwt;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
}): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FunctionReference } from "convex/server";
|
|
2
|
+
import { type AssetDisplayRow } from "../../../shared/src/index.js";
|
|
3
|
+
export type ResolveAssetDisplay = FunctionReference<"query", "public", {
|
|
4
|
+
assetIds: string[];
|
|
5
|
+
}, AssetDisplayRow[]>;
|
|
6
|
+
/**
|
|
7
|
+
* Resolves URLs, G36 slot state, and focal with one subscription per asset-id set.
|
|
8
|
+
*
|
|
9
|
+
* G13/G36: CMS stamps take the **compact** slot, the same as the Studio grid
|
|
10
|
+
* (R3). They must not resolve originals — a placed image is a raster master
|
|
11
|
+
* until its renditions exist, and painting one into a stamp is the failure the
|
|
12
|
+
* slot rules exist to prevent.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useCmsAssetDisplay(resolveAssetDisplay: ResolveAssetDisplay, assetIds: string[]): {
|
|
15
|
+
urls: Map<string, string | null>;
|
|
16
|
+
slots: Map<any, any>;
|
|
17
|
+
focals: Map<any, any>;
|
|
18
|
+
metadata: Map<any, any>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type FunctionReference } from "convex/server";
|
|
2
|
+
import { type FieldsDataAdapter } from "../../../fields/src/index.js";
|
|
3
|
+
import type { AssetFamily, Manifest } from "../../../shared/src/index.js";
|
|
4
|
+
import { type ResolveAssetDisplay } from "./use-cms-storage-display.js";
|
|
5
|
+
/** Editor-session raw-upload and asset-display FunctionRefs. */
|
|
6
|
+
export type CmsStorageRefs = {
|
|
7
|
+
generateUploadUrl: FunctionReference<"mutation", "public", Record<string, never>, string>;
|
|
8
|
+
deleteStorageFile: FunctionReference<"mutation", "public", {
|
|
9
|
+
fileId: string;
|
|
10
|
+
}, null>;
|
|
11
|
+
createAssetFromStorage: FunctionReference<"mutation", "public", {
|
|
12
|
+
storageId: string;
|
|
13
|
+
filename: string;
|
|
14
|
+
profile?: string;
|
|
15
|
+
}, string>;
|
|
16
|
+
replaceAssetFromStorage?: FunctionReference<"mutation", "public", {
|
|
17
|
+
assetId: string;
|
|
18
|
+
storageId: string;
|
|
19
|
+
filename: string;
|
|
20
|
+
}, null>;
|
|
21
|
+
listAssets: FunctionReference<"query", "public", {
|
|
22
|
+
paginationOpts: {
|
|
23
|
+
numItems: number;
|
|
24
|
+
cursor: string | null;
|
|
25
|
+
};
|
|
26
|
+
deleted?: boolean;
|
|
27
|
+
search?: string;
|
|
28
|
+
family?: AssetFamily;
|
|
29
|
+
pickerKind?: "image" | "file";
|
|
30
|
+
}, {
|
|
31
|
+
page: Array<{
|
|
32
|
+
_id: string;
|
|
33
|
+
filename: string;
|
|
34
|
+
family: AssetFamily;
|
|
35
|
+
contentType?: string;
|
|
36
|
+
size?: number;
|
|
37
|
+
profileSlugs: string[];
|
|
38
|
+
}>;
|
|
39
|
+
continueCursor: string;
|
|
40
|
+
isDone: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
addProfileToAsset: FunctionReference<"mutation", "public", {
|
|
43
|
+
assetId: string;
|
|
44
|
+
profile: string;
|
|
45
|
+
}, null>;
|
|
46
|
+
getAssetSettings: FunctionReference<"query", "public", Record<string, never>, {
|
|
47
|
+
warnBytes: number;
|
|
48
|
+
rejectBytes: number;
|
|
49
|
+
} | null>;
|
|
50
|
+
/** G13/G36 slot resolution — CMS stamps paint `compact`, never the original. */
|
|
51
|
+
resolveAssetDisplay: ResolveAssetDisplay;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Builds a `FieldsDataAdapter` with real editor-session upload + asset resolve.
|
|
55
|
+
* Merges onto `base` (or the shared inert adapter): overwrites `uploadFile` and
|
|
56
|
+
* `useAssetDisplay` only. Media fields persist returned asset ids.
|
|
57
|
+
* Passthrough when `storageRefs` is omitted — safe to always compose.
|
|
58
|
+
*/
|
|
59
|
+
export declare function useCmsStorageFieldsAdapter(args: {
|
|
60
|
+
manifest: Manifest;
|
|
61
|
+
storageRefs?: CmsStorageRefs;
|
|
62
|
+
base?: FieldsDataAdapter;
|
|
63
|
+
}): FieldsDataAdapter;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type FieldsDataAdapter } from "../../../fields/src/index.js";
|
|
2
|
+
import type { Manifest } from "../../../shared/src/index.js";
|
|
3
|
+
/** `base` when provided, otherwise a stable inert adapter for `manifest`. */
|
|
4
|
+
export declare function useFieldsAdapterHost(manifest: Manifest, base?: FieldsDataAdapter): FieldsDataAdapter;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type Field, type Manifest, type Table } from "../../../shared/src/index.js";
|
|
2
|
+
import type { CmsDraftPatch } from "../proposals/types.js";
|
|
3
|
+
export type CmsCompoundRecord = {
|
|
4
|
+
/** Stable recipe-local key; used by bindings and submitted field maps. */
|
|
5
|
+
key: string;
|
|
6
|
+
table: string;
|
|
7
|
+
};
|
|
8
|
+
export type CmsCompoundBinding = {
|
|
9
|
+
target: {
|
|
10
|
+
record: string;
|
|
11
|
+
field: string;
|
|
12
|
+
};
|
|
13
|
+
source: {
|
|
14
|
+
kind: "recordId";
|
|
15
|
+
record: string;
|
|
16
|
+
} | {
|
|
17
|
+
kind: "contextId";
|
|
18
|
+
key: string;
|
|
19
|
+
table: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type CmsCompoundDefaultInput = {
|
|
23
|
+
context: Record<string, unknown>;
|
|
24
|
+
values: Record<string, Record<string, unknown>>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Host-owned recipe for atomically drafting several related records.
|
|
28
|
+
* Table and field names are always explicit: this module never guesses them.
|
|
29
|
+
*/
|
|
30
|
+
export type CmsCompoundCreateRecipe = {
|
|
31
|
+
records: readonly CmsCompoundRecord[];
|
|
32
|
+
bindings?: readonly CmsCompoundBinding[];
|
|
33
|
+
/** Synchronous, pure values for untouched fields in the form. */
|
|
34
|
+
defaults?: (input: CmsCompoundDefaultInput) => Partial<Record<string, Record<string, unknown>>>;
|
|
35
|
+
};
|
|
36
|
+
export type CmsResolvedCompoundCreateRecipe = {
|
|
37
|
+
recipe: CmsCompoundCreateRecipe;
|
|
38
|
+
records: ReadonlyMap<string, {
|
|
39
|
+
key: string;
|
|
40
|
+
table: Table;
|
|
41
|
+
}>;
|
|
42
|
+
bindings: readonly CmsCompoundBinding[];
|
|
43
|
+
relationFields: ReadonlyMap<string, ReadonlySet<string>>;
|
|
44
|
+
orderedRecordKeys: readonly string[];
|
|
45
|
+
};
|
|
46
|
+
export declare function resolveCompoundCreateRecipe(manifest: Manifest, recipe: CmsCompoundCreateRecipe): CmsResolvedCompoundCreateRecipe;
|
|
47
|
+
export declare function editableCompoundFields(resolved: CmsResolvedCompoundCreateRecipe, recordKey: string, canProposeField: (table: string, field: string) => boolean): Field[];
|
|
48
|
+
/** Why a recipe cannot be offered to this editor, or `null` if it can. */
|
|
49
|
+
export declare function compoundCreateUnavailableReason(recipeId: string, recipe: CmsResolvedCompoundCreateRecipe | undefined, canProposeOp: (table: string, op: "insert") => boolean, canProposeField: (table: string, field: string) => boolean): string | null;
|
|
50
|
+
export declare function buildCompoundCreateDraft(args: {
|
|
51
|
+
resolved: CmsResolvedCompoundCreateRecipe;
|
|
52
|
+
context: Record<string, unknown>;
|
|
53
|
+
values: Record<string, Record<string, unknown>>;
|
|
54
|
+
canProposeOp: (table: string, op: "insert") => boolean;
|
|
55
|
+
canProposeField: (table: string, field: string) => boolean;
|
|
56
|
+
}): CmsDraftPatch[];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { CmsDraftPatch, CmsProposalPatch } from "../proposals/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Merge local draft patches into the editor's existing proposal patch set
|
|
4
|
+
* (shared draft merge, plan 082 S4). Keep one effective operation per row:
|
|
5
|
+
* updates merge into inserts, deleting a provisional insert removes it, and
|
|
6
|
+
* explicit clears travel as `clearFields`. Returns plain draft patches.
|
|
7
|
+
*/
|
|
8
|
+
export declare function mergeDraftIntoProposal(existing: readonly CmsProposalPatch[], draft: readonly CmsDraftPatch[]): CmsDraftPatch[];
|
|
9
|
+
/** Apply a single field edit into the local draft (update upsert). */
|
|
10
|
+
export declare function applyFieldToDraft(draft: readonly CmsDraftPatch[], input: {
|
|
11
|
+
table: string;
|
|
12
|
+
rowId: string;
|
|
13
|
+
field: string;
|
|
14
|
+
value: unknown;
|
|
15
|
+
}): CmsDraftPatch[];
|
|
16
|
+
/**
|
|
17
|
+
* Apply a full-row field map into the draft.
|
|
18
|
+
*/
|
|
19
|
+
export declare function applyRowToDraft(draft: readonly CmsDraftPatch[], input: {
|
|
20
|
+
table: string;
|
|
21
|
+
rowId: string;
|
|
22
|
+
fields: Record<string, unknown>;
|
|
23
|
+
clearFields?: string[];
|
|
24
|
+
}): CmsDraftPatch[];
|
|
25
|
+
/**
|
|
26
|
+
* Draft a delete: drop inserts for the row; otherwise replace its pending op.
|
|
27
|
+
*/
|
|
28
|
+
export declare function applyDeleteToDraft(draft: readonly CmsDraftPatch[], input: {
|
|
29
|
+
table: string;
|
|
30
|
+
rowId: string;
|
|
31
|
+
}): CmsDraftPatch[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type CmsCompoundCreateProps = {
|
|
2
|
+
recipeId: string;
|
|
3
|
+
context?: Record<string, unknown>;
|
|
4
|
+
open: boolean;
|
|
5
|
+
onOpenChange: (open: boolean) => void;
|
|
6
|
+
saveLabel?: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Host-configured, multi-record creation form. It only stages a local draft;
|
|
10
|
+
* the existing CMS Save/Publish controls remain responsible for proposals.
|
|
11
|
+
*/
|
|
12
|
+
export declare function CmsCompoundCreate({ recipeId, context, open, onOpenChange, saveLabel, }: CmsCompoundCreateProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type CmsCreateButtonProps = {
|
|
2
|
+
recipeId: string;
|
|
3
|
+
context?: Record<string, unknown>;
|
|
4
|
+
label: string;
|
|
5
|
+
saveLabel?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
/** Edit-mode trigger for a host compound-create recipe. Hosts own label and classes. */
|
|
9
|
+
export declare function CmsCreateButton({ recipeId, context, label, saveLabel, className, }: CmsCreateButtonProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FieldType } from "../../../shared/src/index.js";
|
|
2
|
+
/** How a stamp opens its editor (plan 051 PR 10e). */
|
|
3
|
+
export type CmsEditSurface = "inplace" | "dialog";
|
|
4
|
+
export type CmsInPlaceFieldType = Extract<FieldType, {
|
|
5
|
+
kind: "markdown" | "string" | "number" | "boolean";
|
|
6
|
+
}>;
|
|
7
|
+
export declare function isCmsInPlaceFieldType(fieldType: FieldType | undefined): fieldType is CmsInPlaceFieldType;
|
|
8
|
+
/** Stable key for the active in-place session. */
|
|
9
|
+
export declare function stampEditKey(table: string, rowId: string, field: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Resolve edit surface for a stamp click.
|
|
12
|
+
* Markdown defaults to in-place. Explicit in-place editing is limited to the
|
|
13
|
+
* scalar kinds supported by InPlaceFieldEditor; all other kinds use FieldInput
|
|
14
|
+
* in the dialog.
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveEditSurface(requested: CmsEditSurface | undefined, fieldType: FieldType | undefined): CmsEditSurface;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type FieldType } from "../../../shared/src/index.js";
|
|
2
|
+
export type FieldEditorDialogProps = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
table: string;
|
|
5
|
+
rowId: string;
|
|
6
|
+
field: string;
|
|
7
|
+
fieldType?: FieldType;
|
|
8
|
+
optional?: boolean;
|
|
9
|
+
assetProfile?: {
|
|
10
|
+
profile: string;
|
|
11
|
+
enforced?: boolean;
|
|
12
|
+
};
|
|
13
|
+
value: unknown;
|
|
14
|
+
onApply: (value: unknown) => void;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* CMS-owned modal and local staging around the schema-driven Fields module.
|
|
19
|
+
* Applying writes into the local CMS draft; Save/propose stays on the toolbar.
|
|
20
|
+
* Image/file Replace with an existing asset id stages a version replace (same id).
|
|
21
|
+
*/
|
|
22
|
+
export declare function FieldEditorDialog({ open, table, rowId, field, fieldType, optional, assetProfile, value, onApply, onClose, }: FieldEditorDialogProps): string | number | bigint | true | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | null;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CmsInPlaceFieldType } from "./edit-surface.js";
|
|
2
|
+
export type InPlaceFieldEditorProps = {
|
|
3
|
+
table: string;
|
|
4
|
+
rowId: string;
|
|
5
|
+
field: string;
|
|
6
|
+
fieldType: CmsInPlaceFieldType;
|
|
7
|
+
optional?: boolean;
|
|
8
|
+
value: unknown;
|
|
9
|
+
onApplied: () => void;
|
|
10
|
+
onCancelled: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* In-stamp field editor with Apply / Cancel (plan 051 PR 10e).
|
|
14
|
+
* Esc cancels; outside click is ignored (handled by not using a backdrop).
|
|
15
|
+
*
|
|
16
|
+
* Scalar string/number/boolean use a native control with `font: inherit` so
|
|
17
|
+
* titles match read preview. Markdown uses MarkdownEditor (+ host className)
|
|
18
|
+
* with the same Studio slash inserts (link record / data table) as the dialog.
|
|
19
|
+
* FieldInput stays in the dialog surface — its inline chrome is grid-sized.
|
|
20
|
+
*/
|
|
21
|
+
export declare function InPlaceFieldEditor({ table, rowId, field, fieldType, optional, value, onApplied, onCancelled, }: InPlaceFieldEditorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type InPlaceSwitchChoice = "discard" | "stay" | "apply";
|
|
2
|
+
/** Dirty in-place switch confirm (plan 051 PR 10e R9). */
|
|
3
|
+
export declare function InPlaceSwitchModal({ onChoose, }: {
|
|
4
|
+
onChoose: (choice: InPlaceSwitchChoice) => void;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Manifest, type Table } from "../../../shared/src/index.js";
|
|
2
|
+
/** Manifest table limited to fields the profile may propose. */
|
|
3
|
+
export declare function proposeEditableTable(manifest: Manifest, tableName: string, canProposeField: (table: string, field: string) => boolean): Table | null;
|
|
4
|
+
export type DraftRowDialogProps = {
|
|
5
|
+
table: string;
|
|
6
|
+
open: boolean;
|
|
7
|
+
onOpenChange: (open: boolean) => void;
|
|
8
|
+
/** Create when omitted; edit when set. */
|
|
9
|
+
rowId?: string | null;
|
|
10
|
+
initial?: Record<string, unknown>;
|
|
11
|
+
/** Takes the submitted fields instead of the local draft write (`addInsert` / `applyRowEdit`). */
|
|
12
|
+
onSubmit?: (fields: Record<string, unknown>) => void;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Schema-driven create/edit dialog — drafts via addInsert / applyRowEdit.
|
|
16
|
+
*/
|
|
17
|
+
export declare function DraftRowDialog({ table, open, onOpenChange, rowId, initial, onSubmit, }: DraftRowDialogProps): import("react").JSX.Element | null;
|
|
18
|
+
/** Thin create alias for DraftRowDialog. */
|
|
19
|
+
export type InsertRowDialogProps = Omit<DraftRowDialogProps, "rowId" | "initial">;
|
|
20
|
+
export declare function InsertRowDialog(props: InsertRowDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Client + shared exports for `@columnus/cms`. Server-only: `@columnus/cms/server`. */
|
|
2
|
+
export { CMS_STAMP_ATTR, buildStampAttrs, type CmsStampProps } from "./stamps/attrs.js";
|
|
3
|
+
export { CmsFieldStamp, type CmsStampWrapperProps } from "./stamps/stamp.js";
|
|
4
|
+
export { useCmsProjectedField, useCmsProjectedString, type CmsFieldRef, } from "./stamps/use-cms-projected-field.js";
|
|
5
|
+
export { useCmsProjectedTable } from "./stamps/use-cms-projected-table.js";
|
|
6
|
+
export { useCmsRelatedRow } from "./stamps/use-cms-related-row.js";
|
|
7
|
+
export { resolveStampDisplay, type CmsStampDisplayInput, type CmsStampFormat, type CmsStampFormatPreset, type CmsStampRenderFn, } from "./stamps/resolve-display.js";
|
|
8
|
+
export { buildRecordTablePreload, collectRichDocAssetIds, EMPTY_RICH_DOC, isBlockNoteContent, isBlockNoteEnvelope, parseRecordTableQueryJson, parseRichDocBlocks, resolvePreloadedLabel, resolveRecordTableVisibleFields, richContentPlainText, type RecordTablePreload, type RecordTablePreloadEntry, } from "../../shared/src/index.js";
|
|
9
|
+
export { CmsRow, CmsField, useCmsRow, useCmsRowOptional, type CmsRowProps, type CmsFieldProps, type CmsRowValue, type CmsRowContextValue, } from "./stamps/row.js";
|
|
10
|
+
export { CmsProvider, useCms, useCmsOptional, type CmsAuthActions, type CmsActionPhase, type CmsEditorBootstrap, type CmsProviderProps, type CmsContextValue, type CmsTableRow, type CmsHostAdapters, type CmsInPlaceHandlers, type CmsChangeTarget, } from "./provider/cms-provider.js";
|
|
11
|
+
export type { CmsDraftChoice } from "./provider/builder-draft.js";
|
|
12
|
+
export { CmsFloatingToolbar, type CmsFloatingToolbarProps, type CmsFloatingToolbarPlacement, } from "./chrome/floating-toolbar.js";
|
|
13
|
+
export { CmsLoginPage } from "./pages/login-page.js";
|
|
14
|
+
export { FieldEditorDialog, type FieldEditorDialogProps } from "./edit/field-editor-dialog.js";
|
|
15
|
+
export { DraftRowDialog, InsertRowDialog, proposeEditableTable, type DraftRowDialogProps, type InsertRowDialogProps, } from "./edit/insert-row-dialog.js";
|
|
16
|
+
export { CmsCompoundCreate, type CmsCompoundCreateProps } from "./edit/cms-compound-create.js";
|
|
17
|
+
export { CmsCreateButton, type CmsCreateButtonProps } from "./edit/cms-create-button.js";
|
|
18
|
+
export type { CmsCompoundBinding, CmsCompoundCreateRecipe, CmsCompoundDefaultInput, CmsCompoundRecord, } from "./create/compound-create.js";
|
|
19
|
+
export { resolveEditSurface, stampEditKey, type CmsEditSurface } from "./edit/edit-surface.js";
|
|
20
|
+
export { inferNavigationTable, type InferNavigationTableResult, } from "./nav/infer-navigation-table.js";
|
|
21
|
+
export { findContentRefField } from "./nav/content-ref.js";
|
|
22
|
+
export { describeContentRefIntegrity, type ContentRefIntegrity, } from "./nav/content-ref-integrity.js";
|
|
23
|
+
export { slugifyDe, uniqueSlug } from "./nav/slugify-de.js";
|
|
24
|
+
export { cmsReadableTables, type ReadableTablesInput } from "./profile/readable-tables.js";
|
|
25
|
+
export { canProposeField, canProposeOp } from "./profile/propose-gates.js";
|
|
26
|
+
export { buildInsertDraft } from "./list/build-insert-draft.js";
|
|
27
|
+
export { applyDeleteToDraft, applyFieldToDraft, applyRowToDraft, mergeDraftIntoProposal, } from "./draft/merge-draft.js";
|
|
28
|
+
export type { CmsDraftPatch, CmsPatchOp, CmsProposalActions, CmsProposalOutcome, CmsProposalPatch, CmsProposalSummary, CmsDraftDiscard, CmsResolveChoice, } from "./proposals/types.js";
|
|
29
|
+
export { HTML_CACHE_BYPASS_HEADER, shouldBypassHtmlCache, isCmsPath, CMS_SESSION_COOKIE, } from "./cache/html-cache.js";
|
|
30
|
+
export { createDefaultCmsRichtextAdapters, createDefaultRichtextHostAdapter, createTableRowsRichtextHostAdapter, DefaultRichtextHostProvider, } from "./adapters/default-richtext.js";
|
|
31
|
+
export { inertRichtextHostAdapter, RichtextHostProvider, RecordTableView, type RichtextHostAdapter, type RecordTableViewProps, type RichDocRecordLink, type RichDocViewProps, } from "../../richtext/src/index.js";
|
|
32
|
+
export { CmsRichDocView as RichDocView } from "./rich-doc/cms-rich-doc-view.js";
|
|
33
|
+
/** Host-facing schema/profile types (do not import `@columnus/shared` from apps). */
|
|
34
|
+
export type { ApiTableAccess, Field, FieldType, Manifest, Table } from "../../shared/src/index.js";
|
|
35
|
+
export { clearSessionCookie, readSessionCookie, serializeSessionCookie, createCmsAuth, isEditor, CmsAuthError, type CmsAuth, type CmsAuthConfig, type EditorSession, type EditorUser, type SessionCookieOptions, } from "./server/index.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Manifest } from "../../../shared/src/index.js";
|
|
2
|
+
import type { CmsDraftPatch } from "../proposals/types.js";
|
|
3
|
+
/** Build one explicit insert patch. Compound records use `createCompound`. */
|
|
4
|
+
export declare function buildInsertDraft(args: {
|
|
5
|
+
manifest: Manifest;
|
|
6
|
+
table: string;
|
|
7
|
+
/** Legacy single-label seed; preferred when `fields` omits title/name. */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** Full row fields from the insert dialog (system fields stripped by caller). */
|
|
10
|
+
fields?: Record<string, unknown>;
|
|
11
|
+
/** Preserve checkout `_id` (`new:…`) when saving file inserts. */
|
|
12
|
+
rowId?: string;
|
|
13
|
+
}): CmsDraftPatch[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Field, Manifest } from "../../shared/src/index.js";
|
|
2
|
+
/** O(1) field lookup by table and field name. */
|
|
3
|
+
export declare function manifestField(manifest: Manifest, table: string, field: string): Field | undefined;
|
|
4
|
+
/** Schema-ordered fields for a table (empty when the table is missing). */
|
|
5
|
+
export declare function manifestFields(manifest: Manifest, table: string): readonly Field[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Manifest } from "../../../shared/src/index.js";
|
|
2
|
+
import type { CmsProjection } from "../projection/cms-projection.js";
|
|
3
|
+
export type ContentRefIntegrity = {
|
|
4
|
+
/** Stable machine code for hosts / tests. */
|
|
5
|
+
code: "missing_ref" | "missing_row" | "empty_body" | "ok";
|
|
6
|
+
/** Package-owned English reason; host owns layout / localized chrome. */
|
|
7
|
+
reason: string | null;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Nav content-ref integrity for the active page (plan 056).
|
|
11
|
+
* Empty body is allowed at save; hosts/toolbar surface the reason instead.
|
|
12
|
+
*/
|
|
13
|
+
export declare function describeContentRefIntegrity(args: {
|
|
14
|
+
manifest: Manifest;
|
|
15
|
+
navigationTable: string;
|
|
16
|
+
projection: CmsProjection;
|
|
17
|
+
navRowId: string;
|
|
18
|
+
}): ContentRefIntegrity;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Manifest } from "../../../shared/src/index.js";
|
|
2
|
+
/** Prefer an id field pointing at another table that has a markdown/string body-ish field. */
|
|
3
|
+
export declare function findContentRefField(manifest: Manifest, navigationTable: string): {
|
|
4
|
+
field: string;
|
|
5
|
+
contentTable: string;
|
|
6
|
+
} | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Manifest } from "../../../shared/src/index.js";
|
|
2
|
+
export type InferNavigationTableResult = {
|
|
3
|
+
ok: true;
|
|
4
|
+
table: string;
|
|
5
|
+
parentField: string;
|
|
6
|
+
} | {
|
|
7
|
+
ok: false;
|
|
8
|
+
reason: "override_missing" | "ambiguous" | "none";
|
|
9
|
+
candidates: string[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Resolve the navigation table from a manifest.
|
|
13
|
+
*
|
|
14
|
+
* Preference order (grill-me Q4):
|
|
15
|
+
* 1. `navigationTable` override when set (must exist and have a self-id field)
|
|
16
|
+
* 2. Table with a self-id field literally named `parent`
|
|
17
|
+
* 3. Exactly one table that has any self-id field
|
|
18
|
+
* 4. Otherwise ambiguous / none — host must pass `navigationTable`
|
|
19
|
+
*/
|
|
20
|
+
export declare function inferNavigationTable(manifest: Manifest, navigationTable?: string | null): InferNavigationTableResult;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** German-aware URL slug: ä→ae, ö→oe, ü→ue, ß→ss; lowercase; dashes. */
|
|
2
|
+
export declare function slugifyDe(input: string): string;
|
|
3
|
+
/** Append `-2`, `-3`, … when `base` already exists among siblings. */
|
|
4
|
+
export declare function uniqueSlug(base: string, existing: ReadonlySet<string> | readonly string[]): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ApiTableAccess } from "../../../shared/src/index.js";
|
|
2
|
+
import type { CmsPatchOp } from "../proposals/types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Editor write gate (PR 10f): true iff the table has `editorAccess: true`.
|
|
5
|
+
* Token `propose` ops are ignored — all insert/update/delete are allowed when enabled.
|
|
6
|
+
*/
|
|
7
|
+
export declare function canProposeOp(tableAccess: readonly ApiTableAccess[] | undefined, table: string, _op: CmsPatchOp): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Editor field gate (PR 10f): true iff the table has `editorAccess: true`.
|
|
10
|
+
* Token `propose.allowedFields` is ignored — all fields are editable when enabled.
|
|
11
|
+
*/
|
|
12
|
+
export declare function canProposeField(tableAccess: readonly ApiTableAccess[] | undefined, table: string, _field: string): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ApiProfileSnapshot, type ApiTableAccess } from "../../../shared/src/index.js";
|
|
2
|
+
export type ReadableTablesInput = {
|
|
3
|
+
/** Legacy pulled meta: all listed tables are readable. */
|
|
4
|
+
tables?: string[];
|
|
5
|
+
tableAccess?: ApiTableAccess[];
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Tables that appear in the CMS list shell.
|
|
9
|
+
* When `tableAccess` is present it is authoritative: include every table with
|
|
10
|
+
* `editorAccess: true` (including `read: false`). Sync / token read/propose are
|
|
11
|
+
* irrelevant. Otherwise fall back to `tables` (older pull output).
|
|
12
|
+
*/
|
|
13
|
+
export declare function cmsReadableTables(profile: ReadableTablesInput | Pick<ApiProfileSnapshot, "tables" | "tableAccess">): string[];
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { CmsDraftPatch, CmsProposalSummary } from "../proposals/types.js";
|
|
2
|
+
export type CmsTableRow = {
|
|
3
|
+
_id: string;
|
|
4
|
+
} & Record<string, unknown>;
|
|
5
|
+
export type CmsProjectionOrigin = {
|
|
6
|
+
kind: "local";
|
|
7
|
+
} | {
|
|
8
|
+
kind: "proposal";
|
|
9
|
+
proposalId: string;
|
|
10
|
+
mine: boolean;
|
|
11
|
+
draftKey?: string;
|
|
12
|
+
/** `draftTitle` of the proposal. */
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
/** My draft's label (else "Builder session" or "Toolbar edits"), or another editor's name. */
|
|
16
|
+
export declare function draftTitle(proposal: CmsProposalSummary, mine: boolean): string;
|
|
17
|
+
export type CmsProjectedField = {
|
|
18
|
+
value: unknown;
|
|
19
|
+
/** Null means the effective value comes from the live row or is absent. */
|
|
20
|
+
origin: CmsProjectionOrigin | null;
|
|
21
|
+
};
|
|
22
|
+
export type CmsProjectedRow = {
|
|
23
|
+
value: CmsTableRow;
|
|
24
|
+
provisional: boolean;
|
|
25
|
+
/** Origins only for fields changed by a proposal or local draft. */
|
|
26
|
+
origins: ReadonlyMap<string, CmsProjectionOrigin>;
|
|
27
|
+
/** Proposal delete suppressed by a higher-precedence local insert/update. */
|
|
28
|
+
shadowedDelete: Extract<CmsProjectionOrigin, {
|
|
29
|
+
kind: "proposal";
|
|
30
|
+
}> | null;
|
|
31
|
+
};
|
|
32
|
+
export type CmsProjection = {
|
|
33
|
+
field(target: {
|
|
34
|
+
table: string;
|
|
35
|
+
rowId: string;
|
|
36
|
+
field: string;
|
|
37
|
+
}): CmsProjectedField;
|
|
38
|
+
/** O(1) row lookup (includes `shadowedDelete`); null when the row is unknown. */
|
|
39
|
+
row(target: {
|
|
40
|
+
table: string;
|
|
41
|
+
rowId: string;
|
|
42
|
+
}): CmsProjectedRow | null;
|
|
43
|
+
table(table: string): readonly CmsProjectedRow[];
|
|
44
|
+
/**
|
|
45
|
+
* Active proposal ids that field-overlap the current editor's proposal.
|
|
46
|
+
* Precomputed once when the projection is built.
|
|
47
|
+
*/
|
|
48
|
+
conflictsWithMine: ReadonlySet<string>;
|
|
49
|
+
};
|
|
50
|
+
type ProjectionInput = {
|
|
51
|
+
liveRows: Readonly<Record<string, readonly CmsTableRow[]>>;
|
|
52
|
+
draft: readonly CmsDraftPatch[];
|
|
53
|
+
proposals: readonly CmsProposalSummary[];
|
|
54
|
+
editorUserId: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* My draft shown (undefined: the default draft; null: none, before the
|
|
57
|
+
* builder first answers); my other drafts are left out (plan 112 Q4).
|
|
58
|
+
*/
|
|
59
|
+
draftKey: string | undefined | null;
|
|
60
|
+
};
|
|
61
|
+
/** Effective CMS presentation: live rows, then active proposals, then local draft. */
|
|
62
|
+
export declare function createCmsProjection({ liveRows, draft, proposals, editorUserId, draftKey, }: ProjectionInput): CmsProjection;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/** CMS proposal/draft types — aliases of shared profile-proposal DTOs. */
|
|
2
|
+
export type { ProposalPatchOp as CmsPatchOp, ProposalDraftPatch as CmsDraftPatch, ProposalClientPatch as CmsProposalPatch, ProposalClientSummary as CmsProposalSummary, ProposalBatchOutcome, } from "../../../shared/src/index.js";
|
|
3
|
+
import type { ProposalBatchOutcome, ProposalDraftPatch } from "../../../shared/src/index.js";
|
|
4
|
+
/** Accept/reject batch outcome, plus withdrawn for Publish/Withdraw mine. */
|
|
5
|
+
export type CmsProposalOutcome = ProposalBatchOutcome | {
|
|
6
|
+
id: string;
|
|
7
|
+
outcome: "withdrawn";
|
|
8
|
+
message?: string;
|
|
9
|
+
};
|
|
10
|
+
/** A row of a draft to revert, or with `fields` only those fields of an update. */
|
|
11
|
+
export type CmsDraftDiscard = {
|
|
12
|
+
table: string;
|
|
13
|
+
rowId: string;
|
|
14
|
+
fields?: string[];
|
|
15
|
+
};
|
|
16
|
+
/** Plan 112 Resolve: one stale field (or a stale delete, without `field`) and the value to keep. */
|
|
17
|
+
export type CmsResolveChoice = {
|
|
18
|
+
table: string;
|
|
19
|
+
rowId: string;
|
|
20
|
+
field?: string;
|
|
21
|
+
keep: "mine" | "published";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Embedded CMS proposal commands: each acts on the caller's draft for
|
|
25
|
+
* `draftKey` (absent: the default draft) only. Studio keeps cross-editor
|
|
26
|
+
* Accept/Reject outside this seam.
|
|
27
|
+
*/
|
|
28
|
+
export type CmsProposalActions = {
|
|
29
|
+
/** Send only the changed rows and discards; the backend merges them into the draft. */
|
|
30
|
+
saveDraft: (input: {
|
|
31
|
+
patches: ProposalDraftPatch[];
|
|
32
|
+
discard?: CmsDraftDiscard[];
|
|
33
|
+
draftKey?: string;
|
|
34
|
+
draftLabel?: string;
|
|
35
|
+
}) => Promise<{
|
|
36
|
+
proposalId: string;
|
|
37
|
+
status: "active" | "withdrawn";
|
|
38
|
+
revision?: number;
|
|
39
|
+
}>;
|
|
40
|
+
/** `expectedRevision`: the draft revision the editor is looking at. */
|
|
41
|
+
publishMine: (input: {
|
|
42
|
+
draftKey?: string;
|
|
43
|
+
expectedRevision?: number;
|
|
44
|
+
}) => Promise<ProposalBatchOutcome>;
|
|
45
|
+
withdrawMine: (input: {
|
|
46
|
+
draftKey?: string;
|
|
47
|
+
}) => Promise<{
|
|
48
|
+
id: string;
|
|
49
|
+
status: "withdrawn";
|
|
50
|
+
}>;
|
|
51
|
+
resolve: (input: {
|
|
52
|
+
draftKey?: string;
|
|
53
|
+
expectedRevision: number;
|
|
54
|
+
choices: CmsResolveChoice[];
|
|
55
|
+
}) => Promise<{
|
|
56
|
+
proposalId: string;
|
|
57
|
+
status: "active" | "withdrawn";
|
|
58
|
+
}>;
|
|
59
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** A draft of mine: `key` absent is the default draft. */
|
|
2
|
+
export type CmsDraftChoice = {
|
|
3
|
+
key?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
/** Local work made before the builder first answered (`null`) matches any draft until it does. */
|
|
7
|
+
export declare function madeFor(madeUnder: CmsDraftChoice | null, draft: CmsDraftChoice): boolean;
|
|
8
|
+
export declare function useBuilderDraft(): {
|
|
9
|
+
currentDraft: CmsDraftChoice | null;
|
|
10
|
+
currentDraftRef: import("react").RefObject<CmsDraftChoice | null>;
|
|
11
|
+
connectBuilder: (url: string | undefined) => void;
|
|
12
|
+
lookupDraft: () => Promise<CmsDraftChoice>;
|
|
13
|
+
refreshBuilderSession: () => Promise<void>;
|
|
14
|
+
};
|