@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.
Files changed (386) hide show
  1. package/dist/blocknote-editor-FP33A6RJ.js +7 -0
  2. package/dist/blocknote-editor-FP33A6RJ.js.map +1 -0
  3. package/dist/blocknote-editor-YZEFMXLC.css +47 -0
  4. package/dist/blocknote-editor-YZEFMXLC.css.map +1 -0
  5. package/dist/blocknote-preview-6WRENQZD.css +47 -0
  6. package/dist/blocknote-preview-6WRENQZD.css.map +1 -0
  7. package/dist/blocknote-preview-QZ5SC2GJ.js +7 -0
  8. package/dist/blocknote-preview-QZ5SC2GJ.js.map +1 -0
  9. package/dist/chunk-5IPH2A64.js +23337 -0
  10. package/dist/chunk-5IPH2A64.js.map +1 -0
  11. package/dist/chunk-6LKVKI5O.js +494 -0
  12. package/dist/chunk-6LKVKI5O.js.map +1 -0
  13. package/dist/chunk-BXTTCBIK.js +11 -0
  14. package/dist/chunk-BXTTCBIK.js.map +1 -0
  15. package/dist/chunk-CKNRITN3.js +225 -0
  16. package/dist/chunk-CKNRITN3.js.map +1 -0
  17. package/dist/chunk-FKHOREJP.js +58 -0
  18. package/dist/chunk-FKHOREJP.js.map +1 -0
  19. package/dist/chunk-ICKWVUW7.js +134 -0
  20. package/dist/chunk-ICKWVUW7.js.map +1 -0
  21. package/dist/chunk-LTPU2AL3.js +18774 -0
  22. package/dist/chunk-LTPU2AL3.js.map +1 -0
  23. package/dist/chunk-PX6F3LHL.js +37 -0
  24. package/dist/chunk-PX6F3LHL.js.map +1 -0
  25. package/dist/chunk-QPQRNIKG.js +142 -0
  26. package/dist/chunk-QPQRNIKG.js.map +1 -0
  27. package/dist/chunk-UXUDOFKZ.js +4169 -0
  28. package/dist/chunk-UXUDOFKZ.js.map +1 -0
  29. package/dist/chunk-ZTWPGA37.js +68 -0
  30. package/dist/chunk-ZTWPGA37.js.map +1 -0
  31. package/dist/cms/builder/diff-view.js +70 -0
  32. package/dist/cms/builder/diff-view.js.map +1 -0
  33. package/dist/cms/builder/panel.js +1316 -0
  34. package/dist/cms/builder/panel.js.map +1 -0
  35. package/dist/cms/convex/index.css +47 -0
  36. package/dist/cms/convex/index.css.map +1 -0
  37. package/dist/cms/convex/index.js +370 -0
  38. package/dist/cms/convex/index.js.map +1 -0
  39. package/dist/cms/index.css +47 -0
  40. package/dist/cms/index.css.map +1 -0
  41. package/dist/cms/index.js +9 -0
  42. package/dist/cms/index.js.map +1 -0
  43. package/dist/cms/server/index.js +5 -0
  44. package/dist/cms/server/index.js.map +1 -0
  45. package/dist/cms/tables/tables-dialog.css +47 -0
  46. package/dist/cms/tables/tables-dialog.css.map +1 -0
  47. package/dist/cms/tables/tables-dialog.js +590 -0
  48. package/dist/cms/tables/tables-dialog.js.map +1 -0
  49. package/dist/cms/tailwind.css +4 -0
  50. package/dist/editor-54UG7BSP.css +47 -0
  51. package/dist/editor-54UG7BSP.css.map +1 -0
  52. package/dist/editor-HJ3UNV3Q.js +427 -0
  53. package/dist/editor-HJ3UNV3Q.js.map +1 -0
  54. package/dist/mcp-cli.js +61218 -0
  55. package/dist/primitives.css +143 -0
  56. package/dist/rich-text-editor/blocknote-preview-studio.css +54 -0
  57. package/dist/richtext.css +4 -0
  58. package/dist/types/cms/src/adapters/default-richtext.d.ts +24 -0
  59. package/dist/types/cms/src/adapters/projected-fields-adapter.d.ts +22 -0
  60. package/dist/types/cms/src/adapters/table-rows-context.d.ts +4 -0
  61. package/dist/types/cms/src/adapters/table-rows-richtext.d.ts +8 -0
  62. package/dist/types/cms/src/builder/annotate.d.ts +13 -0
  63. package/dist/types/cms/src/builder/diff-view.d.ts +10 -0
  64. package/dist/types/cms/src/builder/inspect.d.ts +32 -0
  65. package/dist/types/cms/src/builder/panel.d.ts +11 -0
  66. package/dist/types/cms/src/builder/sessions-menu.d.ts +37 -0
  67. package/dist/types/cms/src/builder/sidecar-json.d.ts +2 -0
  68. package/dist/types/cms/src/cache/html-cache.d.ts +12 -0
  69. package/dist/types/cms/src/chrome/changes-view.d.ts +15 -0
  70. package/dist/types/cms/src/chrome/confirm-panel.d.ts +10 -0
  71. package/dist/types/cms/src/chrome/floating-toolbar.d.ts +25 -0
  72. package/dist/types/cms/src/chrome/icons.d.ts +13 -0
  73. package/dist/types/cms/src/chrome/overlay-styles.d.ts +38 -0
  74. package/dist/types/cms/src/chrome/resolve-dialog.d.ts +26 -0
  75. package/dist/types/cms/src/chrome/session-storage.d.ts +3 -0
  76. package/dist/types/cms/src/convex/cms-convex-proposals.d.ts +19 -0
  77. package/dist/types/cms/src/convex/cms-convex-shell.d.ts +8 -0
  78. package/dist/types/cms/src/convex/cms-host-refs.d.ts +15 -0
  79. package/dist/types/cms/src/convex/index.d.ts +7 -0
  80. package/dist/types/cms/src/convex/proposal-refs.d.ts +20 -0
  81. package/dist/types/cms/src/convex/use-cms-display-fields-adapter.d.ts +17 -0
  82. package/dist/types/cms/src/convex/use-cms-display-values.d.ts +12 -0
  83. package/dist/types/cms/src/convex/use-cms-editor-auth.d.ts +12 -0
  84. package/dist/types/cms/src/convex/use-cms-storage-display.d.ts +19 -0
  85. package/dist/types/cms/src/convex/use-cms-storage-fields-adapter.d.ts +63 -0
  86. package/dist/types/cms/src/convex/use-fields-adapter-host.d.ts +4 -0
  87. package/dist/types/cms/src/create/compound-create.d.ts +56 -0
  88. package/dist/types/cms/src/draft/merge-draft.d.ts +31 -0
  89. package/dist/types/cms/src/edit/cms-compound-create.d.ts +12 -0
  90. package/dist/types/cms/src/edit/cms-create-button.d.ts +9 -0
  91. package/dist/types/cms/src/edit/edit-surface.d.ts +16 -0
  92. package/dist/types/cms/src/edit/field-editor-dialog.d.ts +22 -0
  93. package/dist/types/cms/src/edit/inplace-field-editor.d.ts +21 -0
  94. package/dist/types/cms/src/edit/inplace-switch-modal.d.ts +5 -0
  95. package/dist/types/cms/src/edit/insert-row-dialog.d.ts +20 -0
  96. package/dist/types/cms/src/index.d.ts +35 -0
  97. package/dist/types/cms/src/list/build-insert-draft.d.ts +13 -0
  98. package/dist/types/cms/src/manifest-index.d.ts +5 -0
  99. package/dist/types/cms/src/nav/content-ref-integrity.d.ts +18 -0
  100. package/dist/types/cms/src/nav/content-ref.d.ts +6 -0
  101. package/dist/types/cms/src/nav/infer-navigation-table.d.ts +20 -0
  102. package/dist/types/cms/src/nav/slugify-de.d.ts +4 -0
  103. package/dist/types/cms/src/pages/login-page.d.ts +5 -0
  104. package/dist/types/cms/src/profile/propose-gates.d.ts +12 -0
  105. package/dist/types/cms/src/profile/readable-tables.d.ts +13 -0
  106. package/dist/types/cms/src/projection/cms-projection.d.ts +63 -0
  107. package/dist/types/cms/src/proposals/types.d.ts +59 -0
  108. package/dist/types/cms/src/provider/builder-draft.d.ts +14 -0
  109. package/dist/types/cms/src/provider/cms-provider.d.ts +240 -0
  110. package/dist/types/cms/src/rich-doc/cms-rich-doc-view.d.ts +4 -0
  111. package/dist/types/cms/src/server/cookie.d.ts +11 -0
  112. package/dist/types/cms/src/server/index.d.ts +2 -0
  113. package/dist/types/cms/src/server/session.d.ts +53 -0
  114. package/dist/types/cms/src/stamps/attrs.d.ts +17 -0
  115. package/dist/types/cms/src/stamps/related.d.ts +11 -0
  116. package/dist/types/cms/src/stamps/resolve-display.d.ts +41 -0
  117. package/dist/types/cms/src/stamps/row.d.ts +41 -0
  118. package/dist/types/cms/src/stamps/stamp-media-drop.d.ts +23 -0
  119. package/dist/types/cms/src/stamps/stamp.d.ts +44 -0
  120. package/dist/types/cms/src/stamps/storage-display.d.ts +4 -0
  121. package/dist/types/cms/src/stamps/use-cms-projected-field.d.ts +6 -0
  122. package/dist/types/cms/src/stamps/use-cms-projected-table.d.ts +7 -0
  123. package/dist/types/cms/src/stamps/use-cms-related-row.d.ts +2 -0
  124. package/dist/types/cms/src/tables/tables-dialog.d.ts +6 -0
  125. package/dist/types/cms/src/tables/use-cms-grid.d.ts +78 -0
  126. package/dist/types/cms/src/tables/use-draft-commands.d.ts +35 -0
  127. package/dist/types/data-grid/src/components/balanced-preview-columns.d.ts +7 -0
  128. package/dist/types/data-grid/src/components/cell-formula-bar.d.ts +40 -0
  129. package/dist/types/data-grid/src/components/cell-renderer.d.ts +10 -0
  130. package/dist/types/data-grid/src/components/cell-selection.d.ts +72 -0
  131. package/dist/types/data-grid/src/components/column-filter-popover.d.ts +29 -0
  132. package/dist/types/data-grid/src/components/context-menu-selection.d.ts +24 -0
  133. package/dist/types/data-grid/src/components/data-grid-table.d.ts +49 -0
  134. package/dist/types/data-grid/src/components/delete-confirm-copy.d.ts +6 -0
  135. package/dist/types/data-grid/src/components/display-search-scope-notice.d.ts +4 -0
  136. package/dist/types/data-grid/src/components/draft-rows.d.ts +14 -0
  137. package/dist/types/data-grid/src/components/field-condition-editor.d.ts +71 -0
  138. package/dist/types/data-grid/src/components/fill-handle.d.ts +22 -0
  139. package/dist/types/data-grid/src/components/grid-action-bar.d.ts +8 -0
  140. package/dist/types/data-grid/src/components/grid-body-layout.d.ts +27 -0
  141. package/dist/types/data-grid/src/components/grid-body-row.d.ts +83 -0
  142. package/dist/types/data-grid/src/components/grid-editing.d.ts +158 -0
  143. package/dist/types/data-grid/src/components/grid-event-utils.d.ts +10 -0
  144. package/dist/types/data-grid/src/components/grid-filter-search-chips.d.ts +7 -0
  145. package/dist/types/data-grid/src/components/grid-filter-search-context.d.ts +135 -0
  146. package/dist/types/data-grid/src/components/grid-filter-search.d.ts +6 -0
  147. package/dist/types/data-grid/src/components/grid-row-menu.d.ts +23 -0
  148. package/dist/types/data-grid/src/components/grid-seam-island.d.ts +23 -0
  149. package/dist/types/data-grid/src/components/grid-sort-group.d.ts +25 -0
  150. package/dist/types/data-grid/src/components/grid-toolbar.d.ts +54 -0
  151. package/dist/types/data-grid/src/components/index-suggestion-banner.d.ts +11 -0
  152. package/dist/types/data-grid/src/components/inline-edit-draft.d.ts +18 -0
  153. package/dist/types/data-grid/src/components/keyboard-shortcuts-overlay.d.ts +7 -0
  154. package/dist/types/data-grid/src/components/measure-column-auto-width.d.ts +6 -0
  155. package/dist/types/data-grid/src/components/pending-edits.d.ts +25 -0
  156. package/dist/types/data-grid/src/components/perform-grid-row-delete.d.ts +27 -0
  157. package/dist/types/data-grid/src/components/query-plan-banner.d.ts +13 -0
  158. package/dist/types/data-grid/src/components/query-predicate-builder.d.ts +53 -0
  159. package/dist/types/data-grid/src/components/row-detail-dialog.d.ts +17 -0
  160. package/dist/types/data-grid/src/components/row-preview-content.d.ts +21 -0
  161. package/dist/types/data-grid/src/components/row-preview-drawer.d.ts +24 -0
  162. package/dist/types/data-grid/src/components/selection-value-chips.d.ts +12 -0
  163. package/dist/types/data-grid/src/components/selection.d.ts +46 -0
  164. package/dist/types/data-grid/src/components/table-cell-overlays.d.ts +33 -0
  165. package/dist/types/data-grid/src/components/table-color-marker.d.ts +10 -0
  166. package/dist/types/data-grid/src/components/use-column-visibility.d.ts +5 -0
  167. package/dist/types/data-grid/src/components/use-column-widths.d.ts +6 -0
  168. package/dist/types/data-grid/src/components/use-undo-redo.d.ts +46 -0
  169. package/dist/types/data-grid/src/hooks/plan-pending-edits.d.ts +41 -0
  170. package/dist/types/data-grid/src/hooks/use-grid-interactions.d.ts +100 -0
  171. package/dist/types/data-grid/src/hooks/use-grid-pending-state.d.ts +41 -0
  172. package/dist/types/data-grid/src/hooks/use-grid-selection-model.d.ts +28 -0
  173. package/dist/types/data-grid/src/hooks/use-grid-table-layout.d.ts +39 -0
  174. package/dist/types/data-grid/src/hooks/use-true-after-delay.d.ts +10 -0
  175. package/dist/types/data-grid/src/index.d.ts +47 -0
  176. package/dist/types/data-grid/src/lib/column-filter.d.ts +43 -0
  177. package/dist/types/data-grid/src/lib/display-search-scope.d.ts +2 -0
  178. package/dist/types/data-grid/src/lib/format-query-chips.d.ts +28 -0
  179. package/dist/types/data-grid/src/lib/grid-items.d.ts +63 -0
  180. package/dist/types/data-grid/src/lib/persistent-state.d.ts +6 -0
  181. package/dist/types/data-grid/src/lib/query-editor-draft.d.ts +15 -0
  182. package/dist/types/data-grid/src/lib/use-row-preview-collapsed.d.ts +9 -0
  183. package/dist/types/data-grid/src/lib/use-row-preview-title.d.ts +1 -0
  184. package/dist/types/fields/src/components/batch-edit-sheet.d.ts +10 -0
  185. package/dist/types/fields/src/components/cell-editor.d.ts +29 -0
  186. package/dist/types/fields/src/components/date-time-input.d.ts +21 -0
  187. package/dist/types/fields/src/components/date-time-picker-logic.d.ts +13 -0
  188. package/dist/types/fields/src/components/field-input-chrome.d.ts +11 -0
  189. package/dist/types/fields/src/components/field-input-inline.d.ts +30 -0
  190. package/dist/types/fields/src/components/field-input.d.ts +36 -0
  191. package/dist/types/fields/src/components/field-value-view.d.ts +10 -0
  192. package/dist/types/fields/src/components/file-array-cell.d.ts +5 -0
  193. package/dist/types/fields/src/components/file-array-upload-dialog.d.ts +19 -0
  194. package/dist/types/fields/src/components/file-cell.d.ts +5 -0
  195. package/dist/types/fields/src/components/file-input.d.ts +21 -0
  196. package/dist/types/fields/src/components/file-upload-dialog.d.ts +19 -0
  197. package/dist/types/fields/src/components/focus-text-input.d.ts +5 -0
  198. package/dist/types/fields/src/components/id-array-cell.d.ts +9 -0
  199. package/dist/types/fields/src/components/id-array-values.d.ts +1 -0
  200. package/dist/types/fields/src/components/id-cell.d.ts +4 -0
  201. package/dist/types/fields/src/components/id-picker.d.ts +28 -0
  202. package/dist/types/fields/src/components/image-array-cell.d.ts +7 -0
  203. package/dist/types/fields/src/components/image-cell.d.ts +7 -0
  204. package/dist/types/fields/src/components/image-preview-dialog.d.ts +8 -0
  205. package/dist/types/fields/src/components/media-compact-preview.d.ts +17 -0
  206. package/dist/types/fields/src/components/media-library-picker-dialog.d.ts +16 -0
  207. package/dist/types/fields/src/components/multi-id-picker.d.ts +24 -0
  208. package/dist/types/fields/src/components/picker-chrome.d.ts +28 -0
  209. package/dist/types/fields/src/components/picker-density.d.ts +5 -0
  210. package/dist/types/fields/src/components/picker-list-placeholder.d.ts +13 -0
  211. package/dist/types/fields/src/components/picker-menu-keyboard.d.ts +16 -0
  212. package/dist/types/fields/src/components/picker-menu-layout.d.ts +12 -0
  213. package/dist/types/fields/src/components/picker-menu-portal.d.ts +19 -0
  214. package/dist/types/fields/src/components/picker-option-row.d.ts +10 -0
  215. package/dist/types/fields/src/components/picker-overlay.d.ts +35 -0
  216. package/dist/types/fields/src/components/record-link-chip.d.ts +21 -0
  217. package/dist/types/fields/src/components/row-edit-panel.d.ts +38 -0
  218. package/dist/types/fields/src/components/row-editor.d.ts +21 -0
  219. package/dist/types/fields/src/components/row-popover.d.ts +11 -0
  220. package/dist/types/fields/src/components/use-flush-ref.d.ts +3 -0
  221. package/dist/types/fields/src/components/use-picker-combobox.d.ts +88 -0
  222. package/dist/types/fields/src/components/use-picker-highlight-scroll.d.ts +4 -0
  223. package/dist/types/fields/src/components/use-picker-menu-overlay.d.ts +7 -0
  224. package/dist/types/fields/src/fields-data-adapter.d.ts +111 -0
  225. package/dist/types/fields/src/fields-data-provider.d.ts +45 -0
  226. package/dist/types/fields/src/hooks/use-debounced-value.d.ts +1 -0
  227. package/dist/types/fields/src/hooks/use-row-edit-shortcuts.d.ts +15 -0
  228. package/dist/types/fields/src/index.d.ts +38 -0
  229. package/dist/types/fields/src/lib/is-row-doc-dirty.d.ts +2 -0
  230. package/dist/types/fields/src/lib/scroll-to-form-field.d.ts +6 -0
  231. package/dist/types/fields/src/media-library-query.d.ts +34 -0
  232. package/dist/types/fields/src/media-upload-limits.d.ts +18 -0
  233. package/dist/types/fields/src/record-actions-context.d.ts +17 -0
  234. package/dist/types/fields/src/storage-upload.d.ts +21 -0
  235. package/dist/types/primitives/src/components/ui/accordion.d.ts +6 -0
  236. package/dist/types/primitives/src/components/ui/alert-dialog.d.ts +12 -0
  237. package/dist/types/primitives/src/components/ui/badge.d.ts +9 -0
  238. package/dist/types/primitives/src/components/ui/button.d.ts +11 -0
  239. package/dist/types/primitives/src/components/ui/calendar.d.ts +8 -0
  240. package/dist/types/primitives/src/components/ui/card.d.ts +7 -0
  241. package/dist/types/primitives/src/components/ui/checkbox.d.ts +3 -0
  242. package/dist/types/primitives/src/components/ui/dialog.d.ts +15 -0
  243. package/dist/types/primitives/src/components/ui/dropdown-menu.d.ts +10 -0
  244. package/dist/types/primitives/src/components/ui/info-hint.d.ts +37 -0
  245. package/dist/types/primitives/src/components/ui/input.d.ts +2 -0
  246. package/dist/types/primitives/src/components/ui/label.d.ts +3 -0
  247. package/dist/types/primitives/src/components/ui/popover.d.ts +6 -0
  248. package/dist/types/primitives/src/components/ui/save-bar.d.ts +43 -0
  249. package/dist/types/primitives/src/components/ui/select.d.ts +8 -0
  250. package/dist/types/primitives/src/components/ui/separator.d.ts +3 -0
  251. package/dist/types/primitives/src/components/ui/sheet.d.ts +18 -0
  252. package/dist/types/primitives/src/components/ui/sonner.d.ts +1 -0
  253. package/dist/types/primitives/src/components/ui/switch.d.ts +3 -0
  254. package/dist/types/primitives/src/components/ui/table.d.ts +7 -0
  255. package/dist/types/primitives/src/components/ui/tabs.d.ts +6 -0
  256. package/dist/types/primitives/src/components/ui/tooltip.d.ts +6 -0
  257. package/dist/types/primitives/src/index.d.ts +28 -0
  258. package/dist/types/primitives/src/lib/animation-frame-batcher.d.ts +11 -0
  259. package/dist/types/primitives/src/lib/locale-week-start.d.ts +5 -0
  260. package/dist/types/primitives/src/lib/save-bar-logic.d.ts +52 -0
  261. package/dist/types/primitives/src/lib/use-raf-batched-pointer-drag.d.ts +31 -0
  262. package/dist/types/primitives/src/lib/use-save-bar.d.ts +36 -0
  263. package/dist/types/primitives/src/lib/use-unsaved-changes-guard.d.ts +15 -0
  264. package/dist/types/primitives/src/lib/utils.d.ts +6 -0
  265. package/dist/types/richtext/src/editor.d.ts +16 -0
  266. package/dist/types/richtext/src/host-adapter.d.ts +66 -0
  267. package/dist/types/richtext/src/index.d.ts +11 -0
  268. package/dist/types/richtext/src/markdown-editor/editor-styles.d.ts +7 -0
  269. package/dist/types/richtext/src/markdown-editor/markdown-editor-dialog.d.ts +16 -0
  270. package/dist/types/richtext/src/markdown-editor/markdown-editor.d.ts +2 -0
  271. package/dist/types/richtext/src/markdown-editor/markdown-field-input.d.ts +11 -0
  272. package/dist/types/richtext/src/markdown-editor/markdown-field-trigger.d.ts +8 -0
  273. package/dist/types/richtext/src/markdown-editor/markdown-insert-pickers-session.d.ts +5 -0
  274. package/dist/types/richtext/src/markdown-editor/markdown-insert-pickers.d.ts +9 -0
  275. package/dist/types/richtext/src/markdown-editor/markdown-preview.d.ts +7 -0
  276. package/dist/types/richtext/src/markdown-editor/markdown-rich-preview.d.ts +5 -0
  277. package/dist/types/richtext/src/markdown-editor/record-link-picker-session.d.ts +7 -0
  278. package/dist/types/richtext/src/markdown-editor/record-link-picker.d.ts +9 -0
  279. package/dist/types/richtext/src/markdown-editor/record-table-picker.d.ts +21 -0
  280. package/dist/types/richtext/src/markdown-editor/use-markdown-insert-pickers.d.ts +33 -0
  281. package/dist/types/richtext/src/record-table-view.d.ts +17 -0
  282. package/dist/types/richtext/src/rich-doc-view.d.ts +30 -0
  283. package/dist/types/richtext/src/rich-text-editor/blocknote-editor.d.ts +25 -0
  284. package/dist/types/richtext/src/rich-text-editor/blocknote-portaled-dropdown.d.ts +2 -0
  285. package/dist/types/richtext/src/rich-text-editor/blocknote-preview.d.ts +12 -0
  286. package/dist/types/richtext/src/rich-text-editor/record-link-inline.d.ts +15 -0
  287. package/dist/types/richtext/src/rich-text-editor/record-link-rows-context.d.ts +9 -0
  288. package/dist/types/richtext/src/rich-text-editor/record-table-block.d.ts +18 -0
  289. package/dist/types/richtext/src/rich-text-editor/studio-schema.d.ts +283 -0
  290. package/dist/types/richtext/src/rich-text-editor/studio-slash-menu.d.ts +8 -0
  291. package/dist/types/richtext/src/rich-text-editor/use-sync-blocknote-value.d.ts +2 -0
  292. package/dist/types/shared/src/apiProfile.d.ts +164 -0
  293. package/dist/types/shared/src/apiProfileDiscovery.d.ts +88 -0
  294. package/dist/types/shared/src/apiProfileSlug.d.ts +11 -0
  295. package/dist/types/shared/src/apiProfileSources.d.ts +112 -0
  296. package/dist/types/shared/src/apiProfileValidators.d.ts +310 -0
  297. package/dist/types/shared/src/apiToken.d.ts +6 -0
  298. package/dist/types/shared/src/assetFamily.d.ts +38 -0
  299. package/dist/types/shared/src/assetFieldValues.d.ts +21 -0
  300. package/dist/types/shared/src/assetGraph.d.ts +221 -0
  301. package/dist/types/shared/src/assetJobs.d.ts +99 -0
  302. package/dist/types/shared/src/assetSettings.d.ts +147 -0
  303. package/dist/types/shared/src/auditRedact.d.ts +36 -0
  304. package/dist/types/shared/src/betterAuthSession.d.ts +12 -0
  305. package/dist/types/shared/src/bffHost.d.ts +36 -0
  306. package/dist/types/shared/src/bffProtocol.d.ts +563 -0
  307. package/dist/types/shared/src/bffRedact.d.ts +30 -0
  308. package/dist/types/shared/src/ciPreviewEnv.d.ts +21 -0
  309. package/dist/types/shared/src/clipboardTransfer.d.ts +25 -0
  310. package/dist/types/shared/src/convexFacade.d.ts +44 -0
  311. package/dist/types/shared/src/convexSiteUrl.d.ts +73 -0
  312. package/dist/types/shared/src/csv.d.ts +65 -0
  313. package/dist/types/shared/src/dataTransfer.d.ts +21 -0
  314. package/dist/types/shared/src/dateValues.d.ts +21 -0
  315. package/dist/types/shared/src/deployOutput.d.ts +3 -0
  316. package/dist/types/shared/src/displayLabel.d.ts +17 -0
  317. package/dist/types/shared/src/displayTemplateGenerator.d.ts +11 -0
  318. package/dist/types/shared/src/displayTypes.d.ts +10 -0
  319. package/dist/types/shared/src/erdLayout.d.ts +27 -0
  320. package/dist/types/shared/src/facets.d.ts +109 -0
  321. package/dist/types/shared/src/failureMessage.d.ts +5 -0
  322. package/dist/types/shared/src/fieldTypeMeta.d.ts +110 -0
  323. package/dist/types/shared/src/fieldTypeText.d.ts +34 -0
  324. package/dist/types/shared/src/fieldValueEqual.d.ts +10 -0
  325. package/dist/types/shared/src/fieldValueShape.d.ts +24 -0
  326. package/dist/types/shared/src/fieldValueText.d.ts +32 -0
  327. package/dist/types/shared/src/gridQuery.d.ts +103 -0
  328. package/dist/types/shared/src/importMatch.d.ts +80 -0
  329. package/dist/types/shared/src/index.d.ts +78 -0
  330. package/dist/types/shared/src/inferIdentifier.d.ts +18 -0
  331. package/dist/types/shared/src/keyboard.d.ts +16 -0
  332. package/dist/types/shared/src/manifestDeploy.d.ts +31 -0
  333. package/dist/types/shared/src/manifestHash.d.ts +12 -0
  334. package/dist/types/shared/src/mcpOAuth.d.ts +182 -0
  335. package/dist/types/shared/src/postLoginPath.d.ts +21 -0
  336. package/dist/types/shared/src/previewDeployName.d.ts +27 -0
  337. package/dist/types/shared/src/proposalDraftMerge.d.ts +35 -0
  338. package/dist/types/shared/src/proposePolicy.d.ts +17 -0
  339. package/dist/types/shared/src/proposeRateLimit.d.ts +27 -0
  340. package/dist/types/shared/src/queryBetween.d.ts +21 -0
  341. package/dist/types/shared/src/queryConditions.d.ts +46 -0
  342. package/dist/types/shared/src/queryExecution.d.ts +12 -0
  343. package/dist/types/shared/src/queryFieldOps.d.ts +123 -0
  344. package/dist/types/shared/src/queryMerge.d.ts +30 -0
  345. package/dist/types/shared/src/queryPlan.d.ts +86 -0
  346. package/dist/types/shared/src/queryStudio.d.ts +28 -0
  347. package/dist/types/shared/src/queryTypes.d.ts +184 -0
  348. package/dist/types/shared/src/queryValidators.d.ts +233 -0
  349. package/dist/types/shared/src/readApiQuery.d.ts +10 -0
  350. package/dist/types/shared/src/readModelLimits.d.ts +23 -0
  351. package/dist/types/shared/src/recordTableColumns.d.ts +24 -0
  352. package/dist/types/shared/src/recordTablePreload.d.ts +19 -0
  353. package/dist/types/shared/src/refDisplayRequests.d.ts +17 -0
  354. package/dist/types/shared/src/refGraph.d.ts +97 -0
  355. package/dist/types/shared/src/refsRecompute.d.ts +16 -0
  356. package/dist/types/shared/src/richDoc.d.ts +80 -0
  357. package/dist/types/shared/src/rowPatchWire.d.ts +12 -0
  358. package/dist/types/shared/src/rowTrash.d.ts +26 -0
  359. package/dist/types/shared/src/savedView.d.ts +37 -0
  360. package/dist/types/shared/src/schemaGenerator.d.ts +36 -0
  361. package/dist/types/shared/src/schemaShrink.d.ts +82 -0
  362. package/dist/types/shared/src/schemaShrinkValidators.d.ts +72 -0
  363. package/dist/types/shared/src/schemaTypes.d.ts +311 -0
  364. package/dist/types/shared/src/share.d.ts +8 -0
  365. package/dist/types/shared/src/shareApiBridge.d.ts +13 -0
  366. package/dist/types/shared/src/shareGuestPolicy.d.ts +14 -0
  367. package/dist/types/shared/src/shareProposal.d.ts +141 -0
  368. package/dist/types/shared/src/shareProposalDiff.d.ts +13 -0
  369. package/dist/types/shared/src/shareScopes.d.ts +19 -0
  370. package/dist/types/shared/src/shareTokenCrypto.d.ts +9 -0
  371. package/dist/types/shared/src/shareTokens.d.ts +6 -0
  372. package/dist/types/shared/src/shareTypes.d.ts +113 -0
  373. package/dist/types/shared/src/shareWizard.d.ts +23 -0
  374. package/dist/types/shared/src/spaceBundle.d.ts +89 -0
  375. package/dist/types/shared/src/stagedApiAccess.d.ts +104 -0
  376. package/dist/types/shared/src/studioBoot.d.ts +63 -0
  377. package/dist/types/shared/src/syncChannel.d.ts +25 -0
  378. package/dist/types/shared/src/syncClampMembership.d.ts +22 -0
  379. package/dist/types/shared/src/tableSearch.d.ts +52 -0
  380. package/dist/types/shared/src/tenantHosts.d.ts +34 -0
  381. package/dist/types/shared/src/tenantSecretsCrypto.d.ts +31 -0
  382. package/dist/types/shared/src/useDebouncedCommit.d.ts +15 -0
  383. package/dist/types/shared/src/useDebouncedValue.d.ts +1 -0
  384. package/dist/types/shared/src/useModifierHeld.d.ts +2 -0
  385. package/package.json +85 -3
  386. package/README.md +0 -3
@@ -0,0 +1,7 @@
1
+ import type { Condition, Table } from "../../../shared/src/index.js";
2
+ export declare function GridFilterSearchChips(): import("react").JSX.Element;
3
+ /** A condition as chip text, with reference ids shown as their display labels when available. */
4
+ export declare function ConditionLabel({ table, condition }: {
5
+ table: Table;
6
+ condition: Condition;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,135 @@
1
+ import { type KeyboardEvent as ReactKeyboardEvent, type MouseEvent, type ReactNode, type RefObject } from "react";
2
+ import { type PickerMenuItem } from "../../../fields/src/index.js";
3
+ import type { GridQuery, Table } from "../../../shared/src/index.js";
4
+ export type GridFilterSearchProps = {
5
+ table: Table;
6
+ query: GridQuery | null;
7
+ /** Edits keep the query's shape: a plain `Query` comes back as one (method: bivariant). */
8
+ onApply(next: GridQuery | null): void;
9
+ displayQuery: string;
10
+ onDisplayQueryChange: (query: string) => void;
11
+ /** A saved view's own query: its predicates are not highlighted as filtered. */
12
+ baselineQuery?: GridQuery | null;
13
+ /** Clears predicates + display search; must preserve sort. */
14
+ onClearAll: () => void;
15
+ canLoadMore?: boolean;
16
+ /** The search covers the whole table, not just the loaded rows (the read model). */
17
+ wholeTableSearch?: boolean;
18
+ className?: string;
19
+ shortcutsEnabled?: boolean;
20
+ /** Filters suggested from the typed text, in a dropdown under the `q` box. */
21
+ suggestions?: SearchSuggestions;
22
+ /** The ✨ Meaning toggle in the box, on a table with Meaning fields (plan 106 D16). */
23
+ meaning?: MeaningToggle;
24
+ /**
25
+ * A Filters rail beside the grid (Studio, plan 103 D9): the Filters button toggles it, and the
26
+ * builder opens from the rail, a chip or Edit.
27
+ */
28
+ rail?: FiltersRail;
29
+ children?: ReactNode;
30
+ };
31
+ export type FiltersRail = {
32
+ open: boolean;
33
+ onToggle: () => void;
34
+ };
35
+ /**
36
+ * `on` while searches use Meaning; `reason` why they can't now ("Embedding: 3 rows left"), which
37
+ * disables it.
38
+ */
39
+ export type MeaningToggle = {
40
+ on: boolean;
41
+ onChange: (on: boolean) => void;
42
+ reason?: string;
43
+ };
44
+ /** A filter the `q` box suggests: a field path, one of its values and that value's row count. */
45
+ export type SearchSuggestion = {
46
+ field: string;
47
+ value: unknown;
48
+ label: string;
49
+ count: number;
50
+ };
51
+ export type SearchSuggestions = {
52
+ items: readonly SearchSuggestion[];
53
+ /** The typed text once typing pauses (250 ms); empty once the list closes. */
54
+ onText: (text: string) => void;
55
+ /** Adds the value as a filter and clears the typed text; the box drops its pending text. */
56
+ onPick: (item: SearchSuggestion) => void;
57
+ };
58
+ /** Where the builder opens: below an element, or to its right (the rail). */
59
+ export type BuilderAnchor = {
60
+ element: Element;
61
+ side?: "bottom" | "right";
62
+ };
63
+ type GridFilterPopoverApi = {
64
+ open: boolean;
65
+ canFilter: boolean;
66
+ rail?: FiltersRail;
67
+ /** The search box and Filters button: the builder opens under them unless an opener anchors it. */
68
+ toolbarRef: RefObject<HTMLDivElement | null>;
69
+ /** The opener the builder last opened from; null for the toolbar. */
70
+ anchor: BuilderAnchor | null;
71
+ onOpenChange: (open: boolean) => void;
72
+ preserveSearchFocus: (event: Event) => void;
73
+ /** Outside pointer or focus: dismisses, except on a picker overlay or the click that opened it. */
74
+ interactOutside: (event: Event) => void;
75
+ control: {
76
+ className?: string;
77
+ canLoadMore: boolean;
78
+ wholeTableSearch: boolean;
79
+ isActive: boolean;
80
+ /** Predicates outside the baseline or a display search (the search box's highlight). */
81
+ highlighted: boolean;
82
+ /** Meaningful predicates (the Filters badge); excludes display search. */
83
+ predicateCount: number;
84
+ /** Meaningful predicates outside the baseline (the Filters button's highlight). */
85
+ changedCount: number;
86
+ inputRef: RefObject<HTMLInputElement | null>;
87
+ inputValue: string;
88
+ committedQuery: string;
89
+ localQuery: string;
90
+ openFromFilterButton: () => void;
91
+ changeSearch: (value: string) => void;
92
+ beginSearchEdit: () => void;
93
+ finishSearchEdit: () => void;
94
+ clickSearchInput: () => void;
95
+ clearAll: (event: MouseEvent) => void;
96
+ keyDown: (event: ReactKeyboardEvent<HTMLInputElement>) => void;
97
+ /** The suggestion dropdown, when the provider has `suggestions`. */
98
+ suggest?: SuggestList;
99
+ meaning?: MeaningToggle;
100
+ };
101
+ };
102
+ /** Row 0 searches for the typed text (its `label`); the others pick a suggestion. */
103
+ export type SuggestList = {
104
+ id: string;
105
+ open: boolean;
106
+ rows: readonly (PickerMenuItem & {
107
+ field?: string;
108
+ count?: number;
109
+ })[];
110
+ highlight: number | null;
111
+ };
112
+ type GridFilterChipsApi = {
113
+ table: Table;
114
+ query: GridQuery | null;
115
+ baselineQuery?: GridQuery | null;
116
+ displayQuery: string;
117
+ focusSearch: () => void;
118
+ /** Opens the builder at a top-level item (or at its top), next to `anchor` when given. */
119
+ editPredicate: (index?: number, anchor?: BuilderAnchor) => void;
120
+ removePredicate: (index: number) => void;
121
+ removeDisplaySearch: () => void;
122
+ };
123
+ /**
124
+ * Spread on a control that opens the builder (a chip, Edit in Filters, Open builder): the builder
125
+ * ignores outside clicks and focus on it, so the click that opens it doesn't also dismiss it.
126
+ */
127
+ export declare const filterBuilderOpener: {
128
+ readonly "data-filter-builder-opener": "";
129
+ };
130
+ export declare function useGridFilterPopover(): GridFilterPopoverApi;
131
+ export declare function useGridFilterChips(): GridFilterChipsApi;
132
+ /** Chips API when a provider wraps the caller (header funnels under the grid's provider). */
133
+ export declare function useOptionalGridFilterChips(): GridFilterChipsApi | null;
134
+ export declare function GridFilterSearchProvider({ table, query, onApply, displayQuery, onDisplayQueryChange, baselineQuery, onClearAll, canLoadMore, wholeTableSearch, className, shortcutsEnabled, suggestions, meaning, rail, children, }: GridFilterSearchProps): import("react").JSX.Element;
135
+ export {};
@@ -0,0 +1,6 @@
1
+ import { type GridFilterSearchProps } from "./grid-filter-search-context.tsx";
2
+ export { filterBuilderOpener, GridFilterSearchProvider, useGridFilterChips, useGridFilterPopover, type GridFilterSearchProps, type SearchSuggestion, type SearchSuggestions, } from "./grid-filter-search-context.tsx";
3
+ export { GridFilterSearchChips } from "./grid-filter-search-chips.tsx";
4
+ export declare function GridFilterSearchControl(): import("react").JSX.Element;
5
+ /** Standalone control+chips (tests / simple embeds). Prefer Provider + Control + Chips in toolbars. */
6
+ export declare function GridFilterSearch(props: GridFilterSearchProps): import("react").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import type { GridBodyRowActionsCapability } from "./grid-body-row";
2
+ /** One item of a row's actions menu (row dropdown and right-click menu alike). */
3
+ export type GridRowMenuItem = {
4
+ label: string;
5
+ onSelect: () => void;
6
+ destructive?: boolean;
7
+ };
8
+ /** The menu items `actions` offers for `rows`: Edit and Delete, or Restore in the trash. */
9
+ export declare function gridRowMenuItems(rows: Record<string, unknown>[], actions: Exclude<GridBodyRowActionsCapability, {
10
+ kind: "none";
11
+ }>): GridRowMenuItem[];
12
+ export declare function GridRowDropdownMenuContent({ items }: {
13
+ items: GridRowMenuItem[];
14
+ }): import("react").JSX.Element[];
15
+ type GridRowContextMenuProps = {
16
+ items: GridRowMenuItem[];
17
+ onCopy?: () => void;
18
+ x: number;
19
+ y: number;
20
+ onClose: () => void;
21
+ };
22
+ export declare function GridRowContextMenu({ x, y, items, onCopy, onClose }: GridRowContextMenuProps): import("react").ReactPortal;
23
+ export {};
@@ -0,0 +1,23 @@
1
+ import { type SaveBarPhase } from "../../../primitives/src/index.js";
2
+ export type GridSeamIslandProps = {
3
+ selectedCount: number;
4
+ onClearSelection: () => void;
5
+ onDeleteSelected: () => void;
6
+ onStartEdit?: () => void;
7
+ onBatchEdit: () => void;
8
+ /** The trash view: the selection offers Restore instead of Delete and Edit. */
9
+ onRestoreSelected?: () => void;
10
+ dirtyCount: number;
11
+ phase?: SaveBarPhase;
12
+ errorMessage?: string | null;
13
+ onSave: () => void;
14
+ onReset: () => void;
15
+ /** Rows with unsaved edits that the active filters hide (they still save). */
16
+ hiddenDirtyRowCount?: number;
17
+ /** When the drawer is open, straddle the seam; when closed, sit fully on the grid side so overflow-hidden parents do not clip the pill. */
18
+ drawerOpen?: boolean;
19
+ };
20
+ export declare function seamSelectionEditLabel(selectedCount: number): "Edit" | "Batch edit";
21
+ export declare function isGridSeamIslandVisible(selectedCount: number, changeCount: number, phase?: SaveBarPhase): boolean;
22
+ /** Centered C4c island on the grid ↔ drawer seam. Hide when clean and nothing is selected. */
23
+ export declare function GridSeamIsland({ selectedCount, onClearSelection, onDeleteSelected, onStartEdit, onBatchEdit, onRestoreSelected, dirtyCount, phase, errorMessage, onSave, onReset, hiddenDirtyRowCount, drawerOpen, }: GridSeamIslandProps): import("react").JSX.Element | null;
@@ -0,0 +1,25 @@
1
+ import { X } from "lucide-react";
2
+ import { type GridQuery, type Table } from "../../../shared/src/index.js";
3
+ type Props = {
4
+ table: Table;
5
+ query: GridQuery | null;
6
+ onApply: (next: GridQuery | null) => void;
7
+ /** Set while grouping is off (the read model is behind): the Group button is disabled. */
8
+ groupDisabledReason?: string;
9
+ /** A saved view's own query: its sort and groups do not light the buttons (plan 098 slice 11). */
10
+ baselineQuery?: GridQuery | null;
11
+ };
12
+ /** The toolbar's Sort (up to three keys) and Group (up to three levels) menus. */
13
+ export declare function GridSortGroupControls({ table, query, onApply, groupDisabledReason, baselineQuery, }: Props): import("react").JSX.Element;
14
+ export declare function RemoveButton({ label, onClick, icon: Icon, }: {
15
+ label: string;
16
+ onClick: () => void;
17
+ icon?: typeof X;
18
+ }): import("react").JSX.Element;
19
+ /** "Add …": the fields not chosen yet; one click adds one. */
20
+ export declare function AddMenu({ label, options, onPick, }: {
21
+ label: string;
22
+ options: [string, string][];
23
+ onPick: (value: string) => void;
24
+ }): import("react").JSX.Element;
25
+ export {};
@@ -0,0 +1,54 @@
1
+ import { type ReactNode } from "react";
2
+ import type { GridQuery } from "../../../shared/src/index.js";
3
+ interface Props {
4
+ tableName: string;
5
+ tableTitle?: string;
6
+ tableMarker?: ReactNode;
7
+ spaceSlug?: string;
8
+ spaceName?: string;
9
+ loadedCount: number;
10
+ canLoadMore: boolean;
11
+ /** Rows matching the query, when the source counts them (the read model). */
12
+ totalCount?: number;
13
+ /** The rows are a Meaning search's hits, at most this many (plan 106 D16). */
14
+ bestMatches?: number;
15
+ /** The search matched words only although it could use Meaning: the result line says so. */
16
+ wordsOnly?: boolean;
17
+ /** First page of the current query is still loading (suppresses the result announcement). */
18
+ loading?: boolean;
19
+ query?: GridQuery | null;
20
+ displayQuery?: string;
21
+ /** A saved view's own query: its predicates are not highlighted as filtered. */
22
+ baselineQuery?: GridQuery | null;
23
+ /**
24
+ * Opt into the filter control and chips. The parent must mount `GridFilterSearchProvider`
25
+ * around this toolbar (and any column funnels); these callbacks are not called here.
26
+ */
27
+ onDisplayQueryChange?: (query: string) => void;
28
+ onClearAllFilters?: () => void;
29
+ onAddRow?: () => void;
30
+ onExport?: () => void;
31
+ exporting?: boolean;
32
+ /** TanStack Router link props for the space breadcrumb (when `spaceSlug` is set). */
33
+ spaceRoute?: {
34
+ to: string;
35
+ params: Record<string, string>;
36
+ };
37
+ /** TanStack Router link props for the CSV import page. */
38
+ importRoute?: {
39
+ to: string;
40
+ params: Record<string, string>;
41
+ };
42
+ onShare?: () => void;
43
+ /** Show the table's trash instead of its rows (`showTrash` marks the toggle on). */
44
+ onToggleTrash?: () => void;
45
+ showTrash?: boolean;
46
+ /**
47
+ * Extra controls before the table actions and the search box: a saved view's Modified, Save
48
+ * and Reset, then the sort and group menus.
49
+ */
50
+ controls?: ReactNode;
51
+ className?: string;
52
+ }
53
+ export declare function GridToolbar(props: Props): import("react").JSX.Element;
54
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from "react";
2
+ import { type Query } from "../../../shared/src/index.js";
3
+ export declare function IndexSuggestionBanner({ query, children, emptySuggestion, onCreateIndex, className, testId, createIndexTestId, }: {
4
+ query: Query;
5
+ children: ReactNode;
6
+ emptySuggestion?: string;
7
+ onCreateIndex?: (fields: string[]) => void;
8
+ className?: string;
9
+ testId: string;
10
+ createIndexTestId: string;
11
+ }): import("react").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import type { CellCoord } from "./cell-selection";
2
+ /**
3
+ * What is being typed in the inline cell editor, mirrored live by the formula bar.
4
+ * Display only: the cell has no pending edit until the editor commits. A store rather than
5
+ * state, so a keystroke re-renders the formula bar and not the grid.
6
+ */
7
+ type InlineEditDraft = CellCoord & {
8
+ value: unknown;
9
+ };
10
+ export type InlineEditDraftStore = {
11
+ set: (next: InlineEditDraft | null) => void;
12
+ get: () => InlineEditDraft | null;
13
+ subscribe: (listener: () => void) => () => void;
14
+ };
15
+ export declare function createInlineEditDraftStore(): InlineEditDraftStore;
16
+ /** The live inline draft for `cell`, or null when that cell is not being edited inline. */
17
+ export declare function useInlineEditDraft(store: InlineEditDraftStore | undefined, cell: CellCoord | null): InlineEditDraft | null;
18
+ export {};
@@ -0,0 +1,7 @@
1
+ import { useModifierHeld } from "../../../shared/src/index.js";
2
+ export { useModifierHeld };
3
+ interface Props {
4
+ visible: boolean;
5
+ pendingChangeCount: number;
6
+ }
7
+ export declare function KeyboardShortcutsOverlay({ visible, pendingChangeCount }: Props): import("react").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import { type Field } from "../../../shared/src/index.js";
2
+ /** Cap so one long markdown/string cell cannot swallow the grid. */
3
+ export declare const MAX_AUTO_COLUMN_WIDTH_PX = 480;
4
+ export declare function clampAutoColumnWidthPx(raw: number, field?: Pick<Field, "type"> & Partial<Pick<Field, "name" | "label" | "optional">>): number;
5
+ /** Fit to the widest visible cell plus header, clamped to min/max. */
6
+ export declare function measureColumnAutoWidthPx(fieldName: string, field: Field | undefined, table: HTMLElement): number;
@@ -0,0 +1,25 @@
1
+ export type PendingMap = Map<string, Record<string, unknown>>;
2
+ export type PendingHistoryState = {
3
+ present: PendingMap;
4
+ past: PendingMap[];
5
+ future: PendingMap[];
6
+ };
7
+ export type PendingHistoryAction = {
8
+ type: "set";
9
+ updater: (prev: PendingMap) => PendingMap;
10
+ } | {
11
+ type: "undo";
12
+ } | {
13
+ type: "redo";
14
+ } | {
15
+ type: "reset";
16
+ }
17
+ /** Saved rows leave every step, without a step of their own: an undo can't bring them back. */
18
+ | {
19
+ type: "retire";
20
+ ids: ReadonlySet<string>;
21
+ };
22
+ export declare function pendingHistoryReducer(state: PendingHistoryState, action: PendingHistoryAction): PendingHistoryState;
23
+ export declare function applyPendingField(prev: PendingMap, rowId: string, fieldName: string, value: unknown, getBaseline: (rowId: string, fieldName: string) => unknown,
24
+ /** The values an unsaved row starts from (its group's); its first edit copies them in. */
25
+ initial?: (rowId: string) => Record<string, unknown> | undefined): PendingMap;
@@ -0,0 +1,27 @@
1
+ import type { Dispatch, SetStateAction } from "react";
2
+ import type { PendingHistoryAction } from "./pending-edits";
3
+ import { type Selection } from "./selection";
4
+ export type GridRowDeleteHistory = {
5
+ push: (entry: {
6
+ kind: "delete";
7
+ label: string;
8
+ ids: string[];
9
+ }) => void;
10
+ };
11
+ export type GridRowDeleteDeps = {
12
+ tableName: string;
13
+ deleteRow: (args: {
14
+ table: string;
15
+ id: string;
16
+ }) => Promise<unknown>;
17
+ batchDelete: (args: {
18
+ table: string;
19
+ ids: string[];
20
+ }) => Promise<unknown>;
21
+ setDraftRowIds: Dispatch<SetStateAction<string[]>>;
22
+ pendingDispatch: Dispatch<PendingHistoryAction>;
23
+ history: GridRowDeleteHistory;
24
+ setSelectedIds: (ids: Selection) => void;
25
+ onResetEntryRow?: () => void;
26
+ };
27
+ export declare function performGridRowDelete(rows: Record<string, unknown>[], deps: GridRowDeleteDeps): Promise<void>;
@@ -0,0 +1,13 @@
1
+ import { type Query, type Table } from "../../../shared/src/index.js";
2
+ /**
3
+ * Studio explain owner for the main grid (no profile/share clamps).
4
+ *
5
+ * `usePaginatedQuery` only yields row documents, so Studio cannot read host
6
+ * `ListMeta`. Client-side `planMergedQuery` is intentional and isomorphic with
7
+ * host planning for unclamped queries — use Clamp preview for server meta.
8
+ */
9
+ export declare function QueryPlanBanner({ table, query, onCreateIndex, }: {
10
+ table: Table;
11
+ query: Query | null;
12
+ onCreateIndex?: (fields: string[]) => void;
13
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,53 @@
1
+ import { type Condition, type Field, type Predicate, type Query, type Table } from "../../../shared/src/index.js";
2
+ /**
3
+ * A query editor's draft: it applies its finished part (`committedPart`) once typing pauses and
4
+ * keeps the unfinished rows. `settle` (the builder closing) applies any pending edit and drops
5
+ * them.
6
+ */
7
+ export declare function useQueryEditorState(query: Query | null, onApply: (next: Query | null) => void, delay?: number): {
8
+ draft: {
9
+ predicates?: Condition[] | undefined;
10
+ order?: {
11
+ field: string;
12
+ direction: "asc" | "desc";
13
+ } | undefined;
14
+ maxScan?: number | undefined;
15
+ indexHint?: string | undefined;
16
+ };
17
+ setDraft: import("react").Dispatch<import("react").SetStateAction<{
18
+ predicates?: Condition[] | undefined;
19
+ order?: {
20
+ field: string;
21
+ direction: "asc" | "desc";
22
+ } | undefined;
23
+ maxScan?: number | undefined;
24
+ indexHint?: string | undefined;
25
+ }>>;
26
+ settle: () => void;
27
+ committable: boolean;
28
+ };
29
+ /**
30
+ * Edits a query's conditions: predicates and nested `or`/`and` groups, up to MAX_GROUP_DEPTH
31
+ * levels (plan 103). A row without a value stays in the draft; the editor state applies only the
32
+ * finished part (`committedPart`).
33
+ */
34
+ export declare function QueryPredicateBuilder({ table, draft, setDraft, }: {
35
+ table: Table;
36
+ draft: Query;
37
+ setDraft: (next: Query | ((prev: Query) => Query)) => void;
38
+ }): import("react").JSX.Element;
39
+ /** Value editor for one predicate (shared by the toolbar builder and the header popover). */
40
+ export declare function PredicateValueInput({ pred, field, onChange, }: {
41
+ pred: Predicate;
42
+ field: Field | undefined;
43
+ onChange: (value: unknown) => void;
44
+ }): import("react").JSX.Element | null;
45
+ /**
46
+ * Comma-separated `in` values. Holds the raw text so a typed comma or space survives its own
47
+ * parsed echo; values changed from outside (operator reset, predicate removed) replace it.
48
+ */
49
+ export declare function InListInput({ values, onChange, autoFocus, }: {
50
+ values: readonly unknown[];
51
+ onChange: (values: string[]) => void;
52
+ autoFocus?: boolean;
53
+ }): import("react").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { type Manifest, type Table } from "../../../shared/src/index.js";
2
+ interface Props {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ manifest: Manifest;
6
+ table: Table;
7
+ rowId: string | null;
8
+ row: Record<string, unknown> | null;
9
+ selectedRowIds?: readonly string[];
10
+ resolveRowValue?: (rowId: string, fieldName: string) => unknown;
11
+ onEditRow?: () => void;
12
+ onEditMarkdown?: (fieldName: string) => void;
13
+ onDocLinkClick?: (slug: string) => void;
14
+ belowPreview?: React.ReactNode;
15
+ }
16
+ export declare function RowDetailDialog({ open, onOpenChange, manifest, table, rowId, row, selectedRowIds, resolveRowValue, onEditRow, onEditMarkdown, onDocLinkClick, belowPreview, }: Props): import("react").JSX.Element;
17
+ export {};
@@ -0,0 +1,21 @@
1
+ import { type ReactNode } from "react";
2
+ import { type Field, type Manifest, type Table } from "../../../shared/src/index.js";
3
+ export declare function primaryMarkdownFieldForTable(table: Table): Field | null;
4
+ export interface RowPreviewContentProps {
5
+ className?: string;
6
+ richTextAside?: boolean;
7
+ asideContent?: ReactNode;
8
+ manifest: Manifest;
9
+ table: Table;
10
+ row: Record<string, unknown>;
11
+ onDocLinkClick?: (slug: string) => void;
12
+ onEditMarkdown?: (fieldName: string) => void;
13
+ }
14
+ export declare function RowPreviewContent({ className, richTextAside, asideContent, manifest, table, row, onDocLinkClick, onEditMarkdown, }: RowPreviewContentProps): import("react").JSX.Element;
15
+ export interface RowPreviewMultiContentProps {
16
+ className?: string;
17
+ table: Table;
18
+ selectedRowIds: readonly string[];
19
+ resolveValue: (rowId: string, fieldName: string) => unknown;
20
+ }
21
+ export declare function RowPreviewMultiContent({ className, table, selectedRowIds, resolveValue, }: RowPreviewMultiContentProps): import("react").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { type MutableRefObject, type ReactNode } from "react";
2
+ import { type Manifest, type Table } from "../../../shared/src/index.js";
3
+ interface Props {
4
+ manifest: Manifest;
5
+ table: Table;
6
+ rowId: string | null;
7
+ row: Record<string, unknown> | null;
8
+ selectedRowIds?: readonly string[];
9
+ selectedCount?: number;
10
+ resolveRowValue?: (rowId: string, fieldName: string) => unknown;
11
+ /** Skip heavy multi-row field summaries while the user is dragging a range. */
12
+ deferMultiPreview?: boolean;
13
+ onDocLinkClick?: (slug: string) => void;
14
+ onEditMarkdown?: (fieldName: string) => void;
15
+ onClose: () => void;
16
+ editing?: boolean;
17
+ editSessionKey?: string;
18
+ editInitial?: Record<string, unknown> | null;
19
+ onFieldBlur?: (fieldName: string, value: unknown) => void;
20
+ editFlushRef?: MutableRefObject<(() => void) | null>;
21
+ belowPreview?: ReactNode;
22
+ }
23
+ export declare function RowPreviewDrawer({ manifest, table, rowId, row, selectedRowIds, selectedCount, resolveRowValue, deferMultiPreview, onDocLinkClick, onEditMarkdown, onClose, editing, editSessionKey, editInitial, onFieldBlur, editFlushRef, belowPreview, }: Props): import("react").JSX.Element;
24
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { SelectionValueSummary } from "./cell-selection";
2
+ interface Props {
3
+ entries: SelectionValueSummary["entries"];
4
+ /** When set, chips are clickable (formula bar “apply to all”). */
5
+ onApplyEntry?: (value: unknown, label: string) => void;
6
+ applyTitle?: (label: string, total: number) => string;
7
+ total?: number;
8
+ className?: string;
9
+ "data-testid"?: string;
10
+ }
11
+ export declare function SelectionValueChips({ entries, onApplyEntry, applyTitle, total, className, "data-testid": dataTestId, }: Props): import("react").JSX.Element | null;
12
+ export {};
@@ -0,0 +1,46 @@
1
+ import { type CellSelection } from "./cell-selection.ts";
2
+ export type Selection = ReadonlySet<string>;
3
+ export declare function selectedIdsEqual(a: Selection, b: Selection): boolean;
4
+ export declare function toggle(sel: Selection, id: string): Selection;
5
+ export declare function selectOnly(id: string): Selection;
6
+ /** Row ids that keyboard cell movement should select (plain move = focus row; Shift = range). */
7
+ export declare function nextSelectedIdsForKeyboardCellMove(nextCellSelection: CellSelection, orderedIds: readonly string[], fieldNames: readonly string[], extend: boolean): Selection;
8
+ export declare function selectRange(orderedIds: readonly string[], anchor: string | null, target: string, base: Selection): Selection;
9
+ export declare function clear(): Selection;
10
+ /** Rows from the grid display list that match the current row selection (includes drafts). */
11
+ export declare function selectedDisplayRows(selectedIds: Selection, displayRows: readonly Record<string, unknown>[]): Record<string, unknown>[];
12
+ /** Row to show in the preview drawer from checkbox row selection. */
13
+ export declare function primaryPreviewRowId(selectedIds: Selection, lastAnchorId: string | null, orderedIds: readonly string[]): string | null;
14
+ /** Data-cell / row-body click: plain click replaces; Shift ranges; Meta/Ctrl toggles. */
15
+ export declare function applyRowClickSelection(current: Selection, orderedIds: readonly string[], anchor: string | null, rowId: string, modifiers: {
16
+ shiftKey?: boolean;
17
+ metaKey?: boolean;
18
+ ctrlKey?: boolean;
19
+ }): {
20
+ selection: Selection;
21
+ anchor: string;
22
+ };
23
+ /**
24
+ * Leading row checkbox: plain click toggles (additive + toggle-off); Shift ranges.
25
+ * Header select-all is separate. Data-cell clicks stay on `applyRowClickSelection`.
26
+ */
27
+ export declare function applyRowCheckboxSelection(current: Selection, orderedIds: readonly string[], anchor: string | null, rowId: string, modifiers: {
28
+ shiftKey?: boolean;
29
+ }): {
30
+ selection: Selection;
31
+ anchor: string;
32
+ };
33
+ export declare function hasSelectionModifier(modifiers: {
34
+ shiftKey?: boolean;
35
+ metaKey?: boolean;
36
+ ctrlKey?: boolean;
37
+ }): boolean;
38
+ /** Right-click on an already-selected row keeps the selection (Excel / OS convention). */
39
+ export declare function applyContextMenuRowSelection(current: Selection, orderedIds: readonly string[], anchor: string | null, rowId: string, modifiers: {
40
+ shiftKey?: boolean;
41
+ metaKey?: boolean;
42
+ ctrlKey?: boolean;
43
+ }): {
44
+ selection: Selection;
45
+ anchor: string;
46
+ };
@@ -0,0 +1,33 @@
1
+ import type { ReactNode } from "react";
2
+ import type { Field, FieldType, Manifest, Table } from "../../../shared/src/index.js";
3
+ type CellEditTarget = {
4
+ rowId: string;
5
+ fieldName: string;
6
+ };
7
+ type FileEditTarget = CellEditTarget & {
8
+ type: FieldType;
9
+ };
10
+ export declare function TableCellOverlays({ table, manifest, markdownEdit, fileUploadEdit, fileArrayUploadEdit, resolveCellValue, onCloseMarkdown, onCloseFileUpload, onCloseFileArrayUpload, onSaveMarkdown, onSaveFileUpload, onSaveFileArrayUpload, renderMarkdownEditor, }: {
11
+ table: Table;
12
+ manifest: Manifest;
13
+ markdownEdit: CellEditTarget | null;
14
+ fileUploadEdit: FileEditTarget | null;
15
+ fileArrayUploadEdit: FileEditTarget | null;
16
+ resolveCellValue: (rowId: string, fieldName: string) => unknown;
17
+ onCloseMarkdown: () => void;
18
+ onCloseFileUpload: () => void;
19
+ onCloseFileArrayUpload: () => void;
20
+ onSaveMarkdown: (rowId: string, fieldName: string, value: string) => void;
21
+ onSaveFileUpload: (rowId: string, fieldName: string, value: unknown) => void;
22
+ onSaveFileArrayUpload: (rowId: string, fieldName: string, value: unknown) => void;
23
+ renderMarkdownEditor?: (props: {
24
+ manifest: Manifest;
25
+ table: Table;
26
+ field: Field;
27
+ value: string;
28
+ optional?: boolean;
29
+ onSave: (value: string) => void;
30
+ onClose: () => void;
31
+ }) => ReactNode;
32
+ }): import("react").JSX.Element;
33
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { TableColor } from "../../../shared/src/index.js";
2
+ /** Each table color's label and swatch. */
3
+ export declare const TABLE_COLOR_DETAILS: Record<TableColor, {
4
+ label: string;
5
+ hex: string;
6
+ }>;
7
+ export declare function TableColorMarker({ color, className }: {
8
+ color?: TableColor;
9
+ className?: string;
10
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,5 @@
1
+ export declare const DEFAULT_HIDDEN_COLUMNS: readonly string[];
2
+ export declare function useColumnVisibility(tableName: string): {
3
+ isHidden: (column: string) => boolean;
4
+ toggle: (column: string) => void;
5
+ };
@@ -0,0 +1,6 @@
1
+ import type { Field } from "../../../shared/src/index.js";
2
+ export declare function useColumnWidths(tableName: string): {
3
+ widths: Record<string, number>;
4
+ startResize: (field: string, e: React.PointerEvent<HTMLElement>, fieldMeta?: Field) => void;
5
+ autoSizeColumn: (field: string, fieldMeta: Field | undefined, table: HTMLElement | null) => void;
6
+ };