@columnus/sdk 0.0.0-stage → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote-editor-FP33A6RJ.js +7 -0
- package/dist/blocknote-editor-FP33A6RJ.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-QZ5SC2GJ.js +7 -0
- package/dist/blocknote-preview-QZ5SC2GJ.js.map +1 -0
- package/dist/chunk-5IPH2A64.js +23337 -0
- package/dist/chunk-5IPH2A64.js.map +1 -0
- package/dist/chunk-6LKVKI5O.js +494 -0
- package/dist/chunk-6LKVKI5O.js.map +1 -0
- package/dist/chunk-BXTTCBIK.js +11 -0
- package/dist/chunk-BXTTCBIK.js.map +1 -0
- package/dist/chunk-CKNRITN3.js +225 -0
- package/dist/chunk-CKNRITN3.js.map +1 -0
- package/dist/chunk-FKHOREJP.js +58 -0
- package/dist/chunk-FKHOREJP.js.map +1 -0
- package/dist/chunk-ICKWVUW7.js +134 -0
- package/dist/chunk-ICKWVUW7.js.map +1 -0
- package/dist/chunk-LTPU2AL3.js +18774 -0
- package/dist/chunk-LTPU2AL3.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-UXUDOFKZ.js +4169 -0
- package/dist/chunk-UXUDOFKZ.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-54UG7BSP.css +47 -0
- package/dist/editor-54UG7BSP.css.map +1 -0
- package/dist/editor-HJ3UNV3Q.js +427 -0
- package/dist/editor-HJ3UNV3Q.js.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 +38 -0
- package/dist/types/fields/src/components/row-editor.d.ts +21 -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 +88 -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,143 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@custom-variant dark (&:is(.dark *));
|
|
6
|
+
|
|
7
|
+
@theme inline {
|
|
8
|
+
--color-background: var(--background);
|
|
9
|
+
--color-foreground: var(--foreground);
|
|
10
|
+
--color-card: var(--card);
|
|
11
|
+
--color-card-foreground: var(--card-foreground);
|
|
12
|
+
--color-popover: var(--popover);
|
|
13
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
14
|
+
--color-primary: var(--primary);
|
|
15
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
16
|
+
--color-secondary: var(--secondary);
|
|
17
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
18
|
+
--color-muted: var(--muted);
|
|
19
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
20
|
+
--color-accent: var(--accent);
|
|
21
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
22
|
+
--color-destructive: var(--destructive);
|
|
23
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
24
|
+
--color-border: var(--border);
|
|
25
|
+
--color-input: var(--input);
|
|
26
|
+
--color-ring: var(--ring);
|
|
27
|
+
--color-sidebar: var(--sidebar);
|
|
28
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
29
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
30
|
+
--radius-lg: var(--radius);
|
|
31
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* `animate-highlight`: a new element's background fades in from a primary tint, once. */
|
|
35
|
+
@theme {
|
|
36
|
+
--animate-highlight: highlight 1.5s ease-out;
|
|
37
|
+
@keyframes highlight {
|
|
38
|
+
from {
|
|
39
|
+
background-color: color-mix(in oklch, var(--primary) 10%, transparent);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:root {
|
|
45
|
+
--background: oklch(0.985 0.002 264);
|
|
46
|
+
--foreground: oklch(0.145 0 0);
|
|
47
|
+
--sidebar: oklch(0.965 0.003 264);
|
|
48
|
+
--card: oklch(1 0 0);
|
|
49
|
+
--card-foreground: oklch(0.145 0 0);
|
|
50
|
+
--popover: oklch(1 0 0);
|
|
51
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
52
|
+
--primary: oklch(0.205 0 0);
|
|
53
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
54
|
+
--secondary: oklch(0.97 0 0);
|
|
55
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
56
|
+
--muted: oklch(0.97 0 0);
|
|
57
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
58
|
+
--accent: oklch(0.97 0 0);
|
|
59
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
60
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
61
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
62
|
+
--border: oklch(0.922 0 0);
|
|
63
|
+
--input: oklch(0.922 0 0);
|
|
64
|
+
--ring: oklch(0.708 0 0);
|
|
65
|
+
--radius: 0.625rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.dark {
|
|
69
|
+
--background: oklch(0.145 0 0);
|
|
70
|
+
--foreground: oklch(0.985 0 0);
|
|
71
|
+
--sidebar: oklch(0.185 0 0);
|
|
72
|
+
--card: oklch(0.185 0 0);
|
|
73
|
+
--card-foreground: oklch(0.985 0 0);
|
|
74
|
+
--popover: oklch(0.185 0 0);
|
|
75
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
76
|
+
--primary: oklch(0.985 0 0);
|
|
77
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
78
|
+
--secondary: oklch(0.269 0 0);
|
|
79
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
80
|
+
--muted: oklch(0.269 0 0);
|
|
81
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
82
|
+
--accent: oklch(0.269 0 0);
|
|
83
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
84
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
85
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
86
|
+
--border: oklch(0.269 0 0);
|
|
87
|
+
--input: oklch(0.269 0 0);
|
|
88
|
+
--ring: oklch(0.62 0 0);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@layer base {
|
|
92
|
+
html {
|
|
93
|
+
color-scheme: light;
|
|
94
|
+
}
|
|
95
|
+
html.dark {
|
|
96
|
+
color-scheme: dark;
|
|
97
|
+
}
|
|
98
|
+
* {
|
|
99
|
+
border-color: var(--border);
|
|
100
|
+
}
|
|
101
|
+
body {
|
|
102
|
+
background: var(--background);
|
|
103
|
+
color: var(--foreground);
|
|
104
|
+
font-family:
|
|
105
|
+
ui-sans-serif,
|
|
106
|
+
system-ui,
|
|
107
|
+
-apple-system,
|
|
108
|
+
BlinkMacSystemFont,
|
|
109
|
+
"Segoe UI",
|
|
110
|
+
Roboto,
|
|
111
|
+
sans-serif;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
button:not(:disabled),
|
|
115
|
+
[role="button"]:not([aria-disabled="true"]) {
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
* {
|
|
120
|
+
scrollbar-width: thin;
|
|
121
|
+
scrollbar-color: color-mix(in oklch, var(--muted-foreground) 35%, transparent) transparent;
|
|
122
|
+
}
|
|
123
|
+
*::-webkit-scrollbar {
|
|
124
|
+
width: 10px;
|
|
125
|
+
height: 10px;
|
|
126
|
+
}
|
|
127
|
+
*::-webkit-scrollbar-track {
|
|
128
|
+
background: transparent;
|
|
129
|
+
}
|
|
130
|
+
*::-webkit-scrollbar-thumb {
|
|
131
|
+
background: color-mix(in oklch, var(--muted-foreground) 30%, transparent);
|
|
132
|
+
border-radius: 8px;
|
|
133
|
+
border: 2px solid transparent;
|
|
134
|
+
background-clip: content-box;
|
|
135
|
+
}
|
|
136
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
137
|
+
background: color-mix(in oklch, var(--muted-foreground) 55%, transparent);
|
|
138
|
+
background-clip: content-box;
|
|
139
|
+
}
|
|
140
|
+
*::-webkit-scrollbar-corner {
|
|
141
|
+
background: transparent;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* BlockNote read-only preview — blend with app shell (row preview + docs site) */
|
|
2
|
+
.bn-preview-studio {
|
|
3
|
+
color: unset;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.bn-preview-studio .bn-editor {
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
padding: 0;
|
|
9
|
+
padding-inline: 0;
|
|
10
|
+
border-radius: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.bn-preview-studio.bn-preview-compact .bn-default-styles {
|
|
14
|
+
font-size: 0.875rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.bn-preview-studio.bn-preview-article .bn-default-styles {
|
|
18
|
+
font-size: 1.0625rem;
|
|
19
|
+
line-height: 1.75;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.bn-preview-studio .bn-editor a {
|
|
23
|
+
color: var(--primary);
|
|
24
|
+
text-decoration: underline;
|
|
25
|
+
text-underline-offset: 2px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.bn-preview-studio .bn-inline-content code {
|
|
29
|
+
border-radius: 0.3rem;
|
|
30
|
+
background: var(--muted);
|
|
31
|
+
color: var(--foreground);
|
|
32
|
+
padding: 0.15rem 0.4rem;
|
|
33
|
+
font-size: 0.9em;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.bn-preview-studio .bn-inline-content strong {
|
|
37
|
+
color: inherit;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* In-place CMS edit: avoid BFC so line boxes wrap around sibling floats (hero). */
|
|
42
|
+
.bn-editor-flow,
|
|
43
|
+
.bn-editor-flow .bn-root,
|
|
44
|
+
.bn-editor-flow .bn-container,
|
|
45
|
+
.bn-editor-flow .bn-editor {
|
|
46
|
+
display: block !important;
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: auto !important;
|
|
49
|
+
min-height: 0;
|
|
50
|
+
background: transparent;
|
|
51
|
+
}
|
|
52
|
+
.bn-editor-flow .bn-editor {
|
|
53
|
+
padding-inline: 0;
|
|
54
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { MarkdownFieldProps } from "../../../fields/src/index.js";
|
|
3
|
+
import { type RichtextHostAdapter } from "../../../richtext/src/index.js";
|
|
4
|
+
import { type Manifest } from "../../../shared/src/index.js";
|
|
5
|
+
import type { CmsHostAdapters } from "../provider/cms-provider.js";
|
|
6
|
+
export { createTableRowsRichtextHostAdapter } from "./table-rows-richtext.js";
|
|
7
|
+
/**
|
|
8
|
+
* Default richtext host for CMS embeds. Row list/search reads
|
|
9
|
+
* `CmsTableRowsContext` (provided by CmsProvider) so in-editor
|
|
10
|
+
* RecordTableBlock / pickers update when subscriptions resolve.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createDefaultRichtextHostAdapter(manifest: Manifest): RichtextHostAdapter;
|
|
13
|
+
export declare function DefaultRichtextHostProvider({ manifest, adapter, children, }: {
|
|
14
|
+
manifest: Manifest;
|
|
15
|
+
adapter?: RichtextHostAdapter;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* FieldInput markdown: show the edit trigger without fetching BlockNote.
|
|
20
|
+
* The dialog chunk loads only after the user opens it.
|
|
21
|
+
*/
|
|
22
|
+
export declare function defaultRenderMarkdownField(props: MarkdownFieldProps): import("react").JSX.Element;
|
|
23
|
+
/** Default `CmsHostAdapters` slice for markdown editing via `@columnus/richtext/editor`. */
|
|
24
|
+
export declare function createDefaultCmsRichtextAdapters(manifest: Manifest): Pick<CmsHostAdapters, "renderMarkdownEditor">;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type FieldsDataAdapter } from "../../../fields/src/index.js";
|
|
2
|
+
import { type Manifest } from "../../../shared/src/index.js";
|
|
3
|
+
import type { CmsTableRow } from "../projection/cms-projection.js";
|
|
4
|
+
type OverlaySources = {
|
|
5
|
+
base: FieldsDataAdapter;
|
|
6
|
+
projection: {
|
|
7
|
+
table(table: string): readonly {
|
|
8
|
+
value: CmsTableRow;
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
11
|
+
manifest: Manifest;
|
|
12
|
+
mergedLookups: Map<string, {
|
|
13
|
+
base: Map<string, Record<string, unknown>>;
|
|
14
|
+
merged: Map<string, Record<string, unknown>>;
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Merge CMS projection (live + proposals + draft) into a fields adapter:
|
|
19
|
+
* row lookup, display overlay on cache miss, and reference-search hits.
|
|
20
|
+
*/
|
|
21
|
+
export declare function withProjectedRows(base: FieldsDataAdapter, projection: OverlaySources["projection"], manifest: Manifest): FieldsDataAdapter;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CmsTableRow } from "../provider/cms-provider.js";
|
|
2
|
+
/** Live editor table snapshots for richtext list/search (RecordTableBlock, pickers). */
|
|
3
|
+
export declare const CmsTableRowsContext: import("react").Context<Record<string, CmsTableRow[]>>;
|
|
4
|
+
export declare function useCmsTableRows(): Record<string, CmsTableRow[]>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type RichtextHostAdapter } from "../../../richtext/src/index.js";
|
|
2
|
+
import { type Manifest } from "../../../shared/src/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Richtext host that lists/searches from in-memory CMS table rows.
|
|
5
|
+
* Reads `CmsTableRowsContext` inside each hook so BlockNote node views
|
|
6
|
+
* re-render when editor subscriptions populate rows.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createTableRowsRichtextHostAdapter(manifest: Manifest): RichtextHostAdapter;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ElementNote } from "./inspect.js";
|
|
2
|
+
export type Annotation = ElementNote & {
|
|
3
|
+
note: string;
|
|
4
|
+
target: Element;
|
|
5
|
+
};
|
|
6
|
+
export declare const composing: (event: KeyboardEvent) => boolean;
|
|
7
|
+
export declare function Annotator({ picking, annotations, onNote, onExit, }: {
|
|
8
|
+
picking: boolean;
|
|
9
|
+
annotations: Annotation[];
|
|
10
|
+
onNote(annotation: Annotation): void;
|
|
11
|
+
/** Esc with no note open. */
|
|
12
|
+
onExit(): void;
|
|
13
|
+
}): import("react").ReactPortal | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type DiffViewProps = {
|
|
2
|
+
builderUrl: string;
|
|
3
|
+
/** One change's SHA; without it, All changes. */
|
|
4
|
+
sha?: string;
|
|
5
|
+
/** The panel's change list: a new list fetches the patch again. */
|
|
6
|
+
changes: unknown;
|
|
7
|
+
/** The panel's sidecar fetch, which tracks the CMS sign-in. */
|
|
8
|
+
fetch: typeof globalThis.fetch;
|
|
9
|
+
};
|
|
10
|
+
export default function DiffView({ builderUrl, sha, changes, fetch }: DiffViewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type ElementNote = {
|
|
2
|
+
/** `pathname + search` of the page it was picked on. */
|
|
3
|
+
page: string;
|
|
4
|
+
tag: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
/** The first three. */
|
|
7
|
+
classes: string[];
|
|
8
|
+
/** `textContent`, whitespace collapsed, cut at 120 characters. */
|
|
9
|
+
text: string;
|
|
10
|
+
/** Resolves to the element in the document it was picked from. */
|
|
11
|
+
selector: string;
|
|
12
|
+
/** The nearest CMS stamp: where the element's content comes from. */
|
|
13
|
+
cms?: {
|
|
14
|
+
table: string;
|
|
15
|
+
row: string;
|
|
16
|
+
field: string;
|
|
17
|
+
block?: string;
|
|
18
|
+
column?: string;
|
|
19
|
+
};
|
|
20
|
+
/** React dev builds only: app components nearest first, and the file of the nearest one's JSX. */
|
|
21
|
+
react?: {
|
|
22
|
+
components: string[];
|
|
23
|
+
file: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The first app file in a stack: same origin as the page, not a dependency
|
|
28
|
+
* (`/node_modules/`, `/.vite/`) or a Vite internal (`/@…`). Without the
|
|
29
|
+
* leading `/` and the query; Vite's line numbers are of transformed code.
|
|
30
|
+
*/
|
|
31
|
+
export declare function sourceFile(stack: string, origin: string): string | undefined;
|
|
32
|
+
export declare function describeElement(el: Element): ElementNote;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type BuilderPage } from "./sessions-menu.js";
|
|
2
|
+
export type BuilderPanelProps = {
|
|
3
|
+
/** The sidecar through the site's own proxy, e.g. `/__builder`. */
|
|
4
|
+
builderUrl: string;
|
|
5
|
+
/** The toolbar docks to the viewport top; the panel then leaves room there. */
|
|
6
|
+
toolbarAtTop?: boolean;
|
|
7
|
+
page: BuilderPage;
|
|
8
|
+
onClose(): void;
|
|
9
|
+
};
|
|
10
|
+
/** Remounted after New session and Resume: the chat and change list load the next session's. */
|
|
11
|
+
export default function BuilderPanel(props: BuilderPanelProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type DraftCounts = {
|
|
2
|
+
changes: number;
|
|
3
|
+
conflicts: number;
|
|
4
|
+
};
|
|
5
|
+
/** The CMS page's side of the builder, from the toolbar's provider (the panel is its own bundle). */
|
|
6
|
+
export type BuilderPage = {
|
|
7
|
+
/** Unsaved page edits, staged media replacements or a running action (E10). */
|
|
8
|
+
locked: boolean;
|
|
9
|
+
/** My builder sessions' drafts, by draft key. */
|
|
10
|
+
drafts: ReadonlyMap<string, DraftCounts>;
|
|
11
|
+
/** Re-reads the current draft after a session switch (R2). */
|
|
12
|
+
refreshSession(): Promise<void>;
|
|
13
|
+
/** Opens Resolve on my draft for `key`. */
|
|
14
|
+
resolve(key: string): void;
|
|
15
|
+
};
|
|
16
|
+
export declare function SessionsMenu({ builderUrl, fetch, page, current, disabled, unsent, admin, sudo, onSudo, onSwitching, onSwitched, onError, }: {
|
|
17
|
+
builderUrl: string;
|
|
18
|
+
/** The panel's sidecar fetch (it tracks sign-in). */
|
|
19
|
+
fetch: typeof globalThis.fetch;
|
|
20
|
+
page: BuilderPage;
|
|
21
|
+
current: {
|
|
22
|
+
branch: string | null;
|
|
23
|
+
label?: string;
|
|
24
|
+
};
|
|
25
|
+
/** A run or upload is under way: switching would be refused. */
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
/** The composer holds a message, files or annotations for this session. */
|
|
28
|
+
unsent: boolean;
|
|
29
|
+
admin: boolean;
|
|
30
|
+
sudo: boolean;
|
|
31
|
+
onSudo(on: boolean): void;
|
|
32
|
+
/** A switch request is in flight: the composer freezes. */
|
|
33
|
+
onSwitching(on: boolean): void;
|
|
34
|
+
/** The sidecar now runs another session: reload the chat and change list. */
|
|
35
|
+
onSwitched(): void;
|
|
36
|
+
onError(message: string): void;
|
|
37
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CMS_SESSION_COOKIE } from "../server/cookie.js";
|
|
2
|
+
/** Same header evk-website already uses for forced bypass / background refresh. */
|
|
3
|
+
export declare const HTML_CACHE_BYPASS_HEADER = "x-html-cache-bypass";
|
|
4
|
+
/**
|
|
5
|
+
* Hosts with an HTML SWR cache should call this (or equivalent) before serving
|
|
6
|
+
* a cached document. Cookie presence OR the bypass header opts out of the
|
|
7
|
+
* anon fast path. Also exclude `/cms/*` via {@link isCmsPath}.
|
|
8
|
+
*/
|
|
9
|
+
export declare function shouldBypassHtmlCache(request: Request): boolean;
|
|
10
|
+
/** `/cms` and everything under it — never serve from the anonymous HTML cache. */
|
|
11
|
+
export declare function isCmsPath(pathname: string): boolean;
|
|
12
|
+
export { CMS_SESSION_COOKIE };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DraftCounts } from "../builder/sessions-menu.js";
|
|
2
|
+
import type { CmsProposalPatch } from "../proposals/types.js";
|
|
3
|
+
/** The changes a patch counts for: each field an update sets or clears; an insert or delete is one. */
|
|
4
|
+
export declare function patchChangeCount(patch: CmsProposalPatch): number;
|
|
5
|
+
/** Each of my builder sessions' change and conflict counts, by draft key (the builder's menu). */
|
|
6
|
+
export declare function useMySessionDrafts(): Map<string, DraftCounts>;
|
|
7
|
+
/** Resolve on my draft for builder session `draftKey` (the builder's conflict notice). */
|
|
8
|
+
export declare function ResolveSessionDraft({ draftKey, onClose }: {
|
|
9
|
+
draftKey: string;
|
|
10
|
+
onClose(): void;
|
|
11
|
+
}): import("react").JSX.Element | null;
|
|
12
|
+
export declare function ChangesView({ toolbarAtTop, onClose, }: {
|
|
13
|
+
toolbarAtTop?: boolean;
|
|
14
|
+
onClose(): void;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Inline confirm strip shared by the Discard and Withdraw actions. */
|
|
2
|
+
export declare function ConfirmPanel({ label, prompt, confirmLabel, dismissLabel, busy, onConfirm, onDismiss, }: {
|
|
3
|
+
label: string;
|
|
4
|
+
prompt: string;
|
|
5
|
+
confirmLabel: string;
|
|
6
|
+
dismissLabel: string;
|
|
7
|
+
busy?: boolean;
|
|
8
|
+
onConfirm: () => void;
|
|
9
|
+
onDismiss: () => void;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type CmsFloatingToolbarPlacement = "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
2
|
+
export type CmsFloatingToolbarProps = {
|
|
3
|
+
/** Default `bottom-right`. */
|
|
4
|
+
placement?: CmsFloatingToolbarPlacement;
|
|
5
|
+
/** Pixel offsets from the placement corner (plan 051 T5). */
|
|
6
|
+
offset?: {
|
|
7
|
+
top?: number;
|
|
8
|
+
right?: number;
|
|
9
|
+
bottom?: number;
|
|
10
|
+
left?: number;
|
|
11
|
+
};
|
|
12
|
+
/** Active navigation row — surfaces content-ref integrity warnings (plan 056). */
|
|
13
|
+
activeNavRowId?: string | null;
|
|
14
|
+
/** The builder sidecar (`columnus-cms builder`) through the site's own proxy, e.g. `/__builder`; shows the Chat button (plan 110). */
|
|
15
|
+
builderUrl?: string;
|
|
16
|
+
/** The site's name, before the table name in the Tables dialog's header. */
|
|
17
|
+
siteName?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Floating CMS chrome when an editor session is present (plan 051 T1–T18).
|
|
21
|
+
* One solid primary by state; hide unavailable actions; Save draft / Publish copy.
|
|
22
|
+
* Settings gear: account. Collapse is always available;
|
|
23
|
+
* auto-expands only when new attention appears while collapsed.
|
|
24
|
+
*/
|
|
25
|
+
export declare function CmsFloatingToolbar({ placement, offset, activeNavRowId, builderUrl, siteName, }?: CmsFloatingToolbarProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/** 14px stroke icon in the text colour; decorative, so the button carries the name. */
|
|
3
|
+
export declare function Icon({ children }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
/** Up arrow: Publish in the toolbar, Send in the builder composer. */
|
|
7
|
+
export declare function IconPublish(): import("react").JSX.Element;
|
|
8
|
+
export declare function IconAttach(): import("react").JSX.Element;
|
|
9
|
+
export declare function IconPick(): import("react").JSX.Element;
|
|
10
|
+
/** Three dots: the builder composer's menu. */
|
|
11
|
+
export declare function IconMore(): import("react").JSX.Element;
|
|
12
|
+
/** Discard in the toolbar, a row's delete in the Tables dialog. */
|
|
13
|
+
export declare function IconTrash(): import("react").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared inline styles for the CMS's own overlays. The CMS renders into host
|
|
3
|
+
* pages with no stylesheet of its own, so every surface carries inline styles;
|
|
4
|
+
* these are the pieces that are identical across them.
|
|
5
|
+
*/
|
|
6
|
+
import type { CSSProperties } from "react";
|
|
7
|
+
/** Stamp field editor portal (below nested RowEditor + id-picker menus). */
|
|
8
|
+
export declare const CMS_FIELD_EDITOR_Z_INDEX = 10000;
|
|
9
|
+
/**
|
|
10
|
+
* Tables dialog: above the toolbar (9999) and the field editor, below the row editor it opens
|
|
11
|
+
* and the markdown editor.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CMS_TABLES_Z_INDEX = 10200;
|
|
14
|
+
/**
|
|
15
|
+
* Nested create/edit RowEditor above the field editor, below picker menus
|
|
16
|
+
* (`PICKER_OVERLAY_Z_INDEX = 11_000`) and aligned with nested file dialogs
|
|
17
|
+
* (`FILE_FIELD_DIALOG_Z_INDEX = 10_500`).
|
|
18
|
+
*/
|
|
19
|
+
export declare const CMS_ROW_EDITOR_Z_INDEX = 10500;
|
|
20
|
+
/**
|
|
21
|
+
* Markdown FieldInput dialog nested inside a raised CMS create/edit overlay.
|
|
22
|
+
* Above `CMS_ROW_EDITOR_Z_INDEX`, below picker menus (`11_000`).
|
|
23
|
+
*/
|
|
24
|
+
export declare const CMS_MARKDOWN_EDITOR_Z_INDEX = 10600;
|
|
25
|
+
/** Full-screen dim + centering. Callers set their own `zIndex` layer. */
|
|
26
|
+
export declare const cmsBackdrop: CSSProperties;
|
|
27
|
+
/** Modal card. Callers set their own width/height constraints. */
|
|
28
|
+
export declare const cmsBox: CSSProperties;
|
|
29
|
+
/** Neutral modal button. */
|
|
30
|
+
export declare const cmsButton: CSSProperties;
|
|
31
|
+
/** Secondary text. */
|
|
32
|
+
export declare const cmsMuted = "color-mix(in oklab, CanvasText 60%, transparent)";
|
|
33
|
+
/** Toolbar buttons and their accent, also used by the Changes view and its dialogs. */
|
|
34
|
+
export declare const ACCENT = "var(--columnus-cms-accent, CanvasText)";
|
|
35
|
+
export declare const ACCENT_FG = "var(--columnus-cms-accent-fg, Canvas)";
|
|
36
|
+
export declare const ghostBtn: CSSProperties;
|
|
37
|
+
export declare const primaryBtn: CSSProperties;
|
|
38
|
+
export declare const dangerBtn: CSSProperties;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type FieldType } from "../../../shared/src/index.js";
|
|
2
|
+
import { type CmsChangeTarget } from "../provider/cms-provider.js";
|
|
3
|
+
/** A change in a draft: a field of an update (`before`: the live value now), or a whole insert or delete. */
|
|
4
|
+
export type DraftChange = CmsChangeTarget & {
|
|
5
|
+
path: string;
|
|
6
|
+
kind: "update" | "insert" | "delete";
|
|
7
|
+
before?: unknown;
|
|
8
|
+
after?: unknown;
|
|
9
|
+
type?: FieldType;
|
|
10
|
+
/** The row was deleted on the live site: only Use published applies. */
|
|
11
|
+
rowGone: boolean;
|
|
12
|
+
};
|
|
13
|
+
/** A rich-text value reads as its text, shortened by the cell renderer. */
|
|
14
|
+
export declare function Value({ value, type }: {
|
|
15
|
+
value: unknown;
|
|
16
|
+
type?: FieldType;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
/** Remount (`key`) on a new `revision`: choices made against an older one are dropped. */
|
|
19
|
+
export declare function ResolveDialog({ draftKey, revision, title, fields, onClose, }: {
|
|
20
|
+
draftKey: string | undefined;
|
|
21
|
+
/** The draft revision the dialog shows; Apply resolves at it. */
|
|
22
|
+
revision: number;
|
|
23
|
+
title: string;
|
|
24
|
+
fields: DraftChange[];
|
|
25
|
+
onClose(): void;
|
|
26
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type CmsProviderProps } from "../index.js";
|
|
3
|
+
import type { CmsHostRefs } from "./cms-host-refs.js";
|
|
4
|
+
import { type GetConvexJwt } from "./use-cms-editor-auth.js";
|
|
5
|
+
export type CmsConvexProposalsProps = Omit<CmsProviderProps, "proposalActions" | "proposals" | "proposalsLoading" | "proposalFeedError"> & {
|
|
6
|
+
cmsHostRefs: CmsHostRefs;
|
|
7
|
+
getConvexJwt: GetConvexJwt;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Live profile proposals + Save / Publish mine / Withdraw mine via Convex React
|
|
11
|
+
* under editor `setAuth` (plan 051 PR 10f). Core `@columnus/cms` stays Convex-free;
|
|
12
|
+
* hosts mount `CmsConvexShell` (preferred) or this wrapper instead of wiring
|
|
13
|
+
* `proposalActions` server fns.
|
|
14
|
+
*
|
|
15
|
+
* `cmsHostRefs` wires editor-session proposals, upload, and display labels into
|
|
16
|
+
* `fieldsDataAdapter`. Query/auth failures keep the toolbar mounted and surface
|
|
17
|
+
* via `proposalFeedError` (R11).
|
|
18
|
+
*/
|
|
19
|
+
export declare function CmsConvexProposals(props: CmsConvexProposalsProps): ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type CmsConvexProposalsProps } from "./cms-convex-proposals.js";
|
|
3
|
+
export type CmsConvexShellProps = CmsConvexProposalsProps;
|
|
4
|
+
/**
|
|
5
|
+
* Editor-session `listRows` drain + live proposals. Anonymous visitors get a
|
|
6
|
+
* plain `CmsProvider` with no list subscriptions.
|
|
7
|
+
*/
|
|
8
|
+
export declare function CmsConvexShell(props: CmsConvexShellProps): ReactElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FunctionReference } from "convex/server";
|
|
2
|
+
import type { CmsProfileProposalRefs } from "./proposal-refs.js";
|
|
3
|
+
import type { CmsDisplayRefs } from "./use-cms-display-fields-adapter.js";
|
|
4
|
+
import type { CmsStorageRefs } from "./use-cms-storage-fields-adapter.js";
|
|
5
|
+
/** Editor-session `columnus/rows.*` (auth via editor JWT). */
|
|
6
|
+
export type CmsRowRefs = {
|
|
7
|
+
listRows: FunctionReference<"query", "public">;
|
|
8
|
+
getRow: FunctionReference<"query", "public">;
|
|
9
|
+
getRowsByIds: FunctionReference<"query", "public">;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Single generated editor-session refs object (`src/generated/cms-host-refs.ts`).
|
|
13
|
+
* Pass this to `CmsConvexShell` / `CmsConvexProposals` — do not unpack it.
|
|
14
|
+
*/
|
|
15
|
+
export type CmsHostRefs = CmsProfileProposalRefs & CmsStorageRefs & CmsDisplayRefs & CmsRowRefs;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { CmsProfileProposalRefs } from "./proposal-refs.js";
|
|
2
|
+
export { useCmsEditorAuth, type GetConvexJwt } from "./use-cms-editor-auth.js";
|
|
3
|
+
export { useCmsStorageFieldsAdapter, type CmsStorageRefs, } from "./use-cms-storage-fields-adapter.js";
|
|
4
|
+
export { useCmsDisplayFieldsAdapter, type CmsDisplayRefs, } from "./use-cms-display-fields-adapter.js";
|
|
5
|
+
export { CmsConvexProposals, type CmsConvexProposalsProps } from "./cms-convex-proposals.js";
|
|
6
|
+
export { CmsConvexShell, type CmsConvexShellProps } from "./cms-convex-shell.js";
|
|
7
|
+
export type { CmsHostRefs, CmsRowRefs } from "./cms-host-refs.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { FunctionReference } from "convex/server";
|
|
2
|
+
/**
|
|
3
|
+
* Editor-session proposal API refs (plan 051 PR 10f): typically the
|
|
4
|
+
* refs emitted by `columnus-api pull` into `src/generated/cms-host-refs.ts`.
|
|
5
|
+
* Authenticate with the editor Convex JWT via `useCmsEditorAuth` — the public
|
|
6
|
+
* `col_` token cannot call these.
|
|
7
|
+
*
|
|
8
|
+
* Args/returns are intentionally loose so host-generated
|
|
9
|
+
* `ProfileProposalPatch` unions (optional insert `rowId`, table-specific
|
|
10
|
+
* fields) assign to this type. `CmsConvexProposals` passes CMS draft patches
|
|
11
|
+
* at the call site via `cmsHostRefs`. Publish/Withdraw act on the caller's
|
|
12
|
+
* editor draft for a key only (Studio keeps Accept/Reject).
|
|
13
|
+
*/
|
|
14
|
+
export type CmsProfileProposalRefs = {
|
|
15
|
+
saveMyProfileDraft: FunctionReference<"mutation", "public">;
|
|
16
|
+
listProfileProposals: FunctionReference<"query", "public">;
|
|
17
|
+
publishMyProfileProposal: FunctionReference<"mutation", "public">;
|
|
18
|
+
withdrawMyProfileProposal: FunctionReference<"mutation", "public">;
|
|
19
|
+
resolveMyDraft: FunctionReference<"mutation", "public">;
|
|
20
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { FieldsDataAdapter } from "../../../fields/src/index.js";
|
|
2
|
+
import type { Manifest } from "../../../shared/src/index.js";
|
|
3
|
+
import { type GetDisplayValuesRef } from "./use-cms-display-values.js";
|
|
4
|
+
/** Editor-session `columnus/display.getDisplayValues` (auth via editor JWT). */
|
|
5
|
+
export type CmsDisplayRefs = {
|
|
6
|
+
getDisplayValues: GetDisplayValuesRef;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Merges Convex display-cache lookups onto `base` (or the inert adapter).
|
|
10
|
+
* Overwrites `useDisplayValues` / loading only (picker closed label + search).
|
|
11
|
+
* Passthrough when `displayRefs` is omitted — safe to always compose.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useCmsDisplayFieldsAdapter(args: {
|
|
14
|
+
manifest: Manifest;
|
|
15
|
+
displayRefs?: CmsDisplayRefs;
|
|
16
|
+
base?: FieldsDataAdapter;
|
|
17
|
+
}): FieldsDataAdapter;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FunctionReference } from "convex/server";
|
|
2
|
+
import type { DisplayValueMap } from "../../../fields/src/index.js";
|
|
3
|
+
export type GetDisplayValuesRef = FunctionReference<"query", "public", {
|
|
4
|
+
table: string;
|
|
5
|
+
documentIds: string[];
|
|
6
|
+
}, Record<string, {
|
|
7
|
+
id?: string;
|
|
8
|
+
preview?: string;
|
|
9
|
+
}>>;
|
|
10
|
+
/** Editor-session `getDisplayValues` for a single table (persisted ids only). */
|
|
11
|
+
export declare function useCmsDisplayValues(getDisplayValues: GetDisplayValuesRef, table: string, ids: readonly string[]): DisplayValueMap;
|
|
12
|
+
export declare function useCmsDisplayValuesLoading(getDisplayValues: GetDisplayValuesRef, table: string, ids: readonly string[]): boolean;
|