@columnus/sdk 0.0.0-stage → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (386) hide show
  1. package/dist/blocknote-editor-547WFBXP.js +7 -0
  2. package/dist/blocknote-editor-547WFBXP.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-CTMNUSYX.js +7 -0
  8. package/dist/blocknote-preview-CTMNUSYX.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-BQCD5MEV.js +225 -0
  12. package/dist/chunk-BQCD5MEV.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-ICKWVUW7.js +134 -0
  16. package/dist/chunk-ICKWVUW7.js.map +1 -0
  17. package/dist/chunk-IMYSQX2X.js +58 -0
  18. package/dist/chunk-IMYSQX2X.js.map +1 -0
  19. package/dist/chunk-JYSABU33.js +494 -0
  20. package/dist/chunk-JYSABU33.js.map +1 -0
  21. package/dist/chunk-PX6F3LHL.js +37 -0
  22. package/dist/chunk-PX6F3LHL.js.map +1 -0
  23. package/dist/chunk-QPQRNIKG.js +142 -0
  24. package/dist/chunk-QPQRNIKG.js.map +1 -0
  25. package/dist/chunk-SKE2RDD2.js +4217 -0
  26. package/dist/chunk-SKE2RDD2.js.map +1 -0
  27. package/dist/chunk-XWMTXQF3.js +18727 -0
  28. package/dist/chunk-XWMTXQF3.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-543ARQ6S.js +427 -0
  51. package/dist/editor-543ARQ6S.js.map +1 -0
  52. package/dist/editor-54UG7BSP.css +47 -0
  53. package/dist/editor-54UG7BSP.css.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 +36 -0
  218. package/dist/types/fields/src/components/row-editor.d.ts +19 -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 +86 -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,30 @@
1
+ import { type ReactNode } from "react";
2
+ import { type Field, type FieldType } from "../../../shared/src/index.js";
3
+ import type { Manifest } from "../../../shared/src/index.js";
4
+ import type { AssetUploadTarget } from "../fields-data-adapter.ts";
5
+ import type { FieldInput } from "./field-input.tsx";
6
+ export declare function InlineAddItemButton({ label, onClick }: {
7
+ label: string;
8
+ onClick: () => void;
9
+ }): import("react").JSX.Element;
10
+ /**
11
+ * Chip per item: a Badge holding the item's own (borderless, content-sized) input and a remove
12
+ * button. The dashed chip adds an item and moves focus into it.
13
+ */
14
+ export declare function InlineArrayChips({ itemInput, element, items, manifest, uploadTarget, onSetItem, onRemoveItem, onAddItem, }: {
15
+ /** The item editor (`FieldInput`); a prop to avoid a circular import. */
16
+ itemInput: typeof FieldInput;
17
+ element: FieldType;
18
+ items: unknown[];
19
+ manifest?: Manifest;
20
+ uploadTarget?: AssetUploadTarget;
21
+ onSetItem: (index: number, item: unknown) => void;
22
+ onRemoveItem: (index: number) => void;
23
+ onAddItem: () => void;
24
+ }): import("react").JSX.Element;
25
+ export declare function InlineObjectSummary({ fields, value, children, }: {
26
+ fields: Field[];
27
+ value: unknown;
28
+ /** The full (card) object editor shown in the popover. */
29
+ children: ReactNode;
30
+ }): import("react").JSX.Element;
@@ -0,0 +1,36 @@
1
+ import { type Field, type FieldType } from "../../../shared/src/index.js";
2
+ import type { Manifest } from "../../../shared/src/index.js";
3
+ import type { AssetUploadTarget } from "../fields-data-adapter.ts";
4
+ interface Props {
5
+ type: FieldType;
6
+ value: unknown;
7
+ onChange: (v: unknown) => void;
8
+ /** A picker confirmed the value `onChange` just carried (date picker Apply): publish it now. */
9
+ onApply?: () => void;
10
+ optional?: boolean;
11
+ /** Increment to open an id picker search menu. */
12
+ pickerMenuOpenRequest?: number;
13
+ /** Seed id picker search when opening via grid type-to-edit. */
14
+ pickerInitialSearch?: string;
15
+ /** Show "+ Create new …" in id picker menus (default true). */
16
+ allowCreate?: boolean | ((table: string) => boolean);
17
+ /** Append the document id to the closed id picker label (default false). */
18
+ showSelectedId?: boolean;
19
+ /** Highlight id pickers as active filter controls. */
20
+ filterActive?: boolean;
21
+ /** Flat chrome for embedding in the cell formula bar. */
22
+ inline?: boolean;
23
+ /** Chip-sized borderless chrome for one formula-bar array item. */
24
+ density?: "chip";
25
+ placeholder?: string;
26
+ /** Associate the editor with a surrounding form label. */
27
+ inputId?: string;
28
+ /** Full schema manifest (for markdown record links). */
29
+ manifest?: Manifest;
30
+ /** Top-level table and field owning any Media uploads from this editor. */
31
+ uploadTarget?: AssetUploadTarget;
32
+ /** Optional Media profile enforced by this image/file placement. */
33
+ assetProfile?: Field["asset"];
34
+ }
35
+ export declare function FieldInput({ type, value, onChange, onApply, optional, pickerMenuOpenRequest, pickerInitialSearch, allowCreate, showSelectedId, filterActive, inline, density, placeholder, inputId, manifest: manifestProp, uploadTarget, assetProfile, }: Props): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
36
+ export {};
@@ -0,0 +1,10 @@
1
+ import { type FieldType } from "../../../shared/src/index.js";
2
+ /**
3
+ * Read-only counterpart of `FieldInput`: renders a typed value for detail views. Scalars
4
+ * are text, lists of scalars and references wrap as chips, Media shows thumbnails that open
5
+ * the preview dialog, and objects / object lists nest the same view.
6
+ */
7
+ export declare function FieldValueView({ type, value }: {
8
+ type: FieldType;
9
+ value: unknown;
10
+ }): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ ids: unknown;
3
+ }
4
+ export declare function FileArrayCell({ ids }: Props): import("react").JSX.Element;
5
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { FieldType } from "../../../shared/src/index.js";
2
+ import type { AssetUploadTarget } from "../fields-data-adapter.ts";
3
+ interface Props {
4
+ open: boolean;
5
+ onOpenChange: (open: boolean) => void;
6
+ type: FieldType;
7
+ value: unknown;
8
+ optional?: boolean;
9
+ onSave: (value: unknown) => void;
10
+ onUploaded?: (assetId: string) => void;
11
+ title?: string;
12
+ assetProfile?: {
13
+ profile: string;
14
+ enforced?: boolean;
15
+ };
16
+ uploadTarget?: AssetUploadTarget;
17
+ }
18
+ export declare function FileArrayUploadDialog({ open, onOpenChange, type, value, optional, onSave, onUploaded, title, assetProfile, uploadTarget, }: Props): import("react").JSX.Element | null;
19
+ export {};
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ assetId: unknown;
3
+ }
4
+ export declare function FileCell({ assetId }: Props): import("react").JSX.Element;
5
+ export {};
@@ -0,0 +1,21 @@
1
+ import { type StorageFileKind } from "../fields-data-provider.tsx";
2
+ import type { AssetUploadTarget } from "../fields-data-adapter.ts";
3
+ interface Props {
4
+ kind: StorageFileKind;
5
+ value: unknown;
6
+ onChange: (value: unknown) => void;
7
+ optional?: boolean;
8
+ inline?: boolean;
9
+ /** When set, open the hidden file input on mount (dialog flow). */
10
+ autoOpenPicker?: boolean;
11
+ onUploaded?: (assetId: string) => void;
12
+ uploadTarget?: AssetUploadTarget;
13
+ assetProfile?: {
14
+ profile: string;
15
+ enforced?: boolean;
16
+ };
17
+ /** Array editors provide their own multi-select Media button. */
18
+ showLibrary?: boolean;
19
+ }
20
+ export declare function FileInput({ kind, value, onChange, optional, inline, autoOpenPicker, onUploaded, uploadTarget, assetProfile, showLibrary, }: Props): import("react").JSX.Element;
21
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { FieldType } from "../../../shared/src/index.js";
2
+ import type { AssetUploadTarget } from "../fields-data-adapter.ts";
3
+ interface Props {
4
+ open: boolean;
5
+ onOpenChange: (open: boolean) => void;
6
+ type: FieldType;
7
+ value: unknown;
8
+ optional?: boolean;
9
+ onSave: (value: unknown) => void;
10
+ title?: string;
11
+ onUploaded?: (assetId: string) => void;
12
+ assetProfile?: {
13
+ profile: string;
14
+ enforced?: boolean;
15
+ };
16
+ uploadTarget?: AssetUploadTarget;
17
+ }
18
+ export declare function FileUploadDialog({ open, onOpenChange, type, value, optional, onSave, title, onUploaded, assetProfile, uploadTarget, }: Props): import("react").JSX.Element;
19
+ export {};
@@ -0,0 +1,5 @@
1
+ /** HTML inputs that support `setSelectionRange` / `select` (not `number`, `date`, etc.). */
2
+ export declare function inputSupportsTextSelection(el: HTMLInputElement | HTMLTextAreaElement): boolean;
3
+ export declare function focusTextInput(el: HTMLInputElement | HTMLTextAreaElement | null | undefined, opts?: {
4
+ placeCaretAtEnd?: boolean;
5
+ }): void;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Link chips for a list of ids. `clamped` (grid cells) shows at most two lines of chips and a
3
+ * "+N" count for the chips that don't fit.
4
+ */
5
+ export declare function IdArrayCell({ table, ids, clamped, }: {
6
+ table: string;
7
+ ids: string[];
8
+ clamped?: boolean;
9
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function normalizeIdArrayValue(value: unknown): string[];
@@ -0,0 +1,4 @@
1
+ export declare function IdCell({ table, id }: {
2
+ table: string;
3
+ id: string;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import type { Manifest } from "../../../shared/src/index.js";
2
+ import type { PickerDensity } from "./picker-density.ts";
3
+ interface Props {
4
+ table: string;
5
+ value: string | undefined;
6
+ optional?: boolean;
7
+ onChange: (v: string | undefined) => void;
8
+ /** Increment to open the search menu (e.g. when a reference cell is double-clicked). */
9
+ menuOpenRequest?: number;
10
+ /** Seed the search box when opening via grid type-to-edit. */
11
+ initialSearch?: string;
12
+ /** Show "+ Create new …" in the menu (default true). */
13
+ allowCreate?: boolean;
14
+ /** Append the document id to the closed input label (default false). */
15
+ showSelectedId?: boolean;
16
+ /** Flat chrome when embedded in the cell formula bar. */
17
+ inputClassName?: string;
18
+ /** Compact grid/formula bar vs comfortable modal forms. */
19
+ density?: PickerDensity;
20
+ /** Called when the combobox input blurs (after closing the menu). */
21
+ onInputBlur?: () => void;
22
+ /** Schema manifest (required for create-row flow). */
23
+ manifest?: Manifest;
24
+ /** Associate the picker input with a surrounding form label. */
25
+ inputId?: string;
26
+ }
27
+ export declare function IdPicker({ table, value, optional, onChange, menuOpenRequest, initialSearch, allowCreate, showSelectedId, inputClassName, density, onInputBlur, manifest: manifestProp, inputId, }: Props): import("react").JSX.Element;
28
+ export {};
@@ -0,0 +1,7 @@
1
+ type ImageCellSize = "compact" | "preview";
2
+ interface Props {
3
+ ids: unknown;
4
+ size?: ImageCellSize;
5
+ }
6
+ export declare function ImageArrayCell({ ids, size }: Props): import("react").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ type ImageCellSize = "compact" | "preview";
2
+ interface Props {
3
+ assetId: unknown;
4
+ size?: ImageCellSize;
5
+ }
6
+ export declare function ImageCell({ assetId, size }: Props): import("react").JSX.Element;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ interface Props {
2
+ open: boolean;
3
+ onOpenChange: (open: boolean) => void;
4
+ url: string;
5
+ title?: string;
6
+ }
7
+ export declare function ImagePreviewDialog({ open, onOpenChange, url, title }: Props): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,17 @@
1
+ import { type AssetFocalPoint } from "../../../shared/src/index.js";
2
+ export declare function mediaTileClassName({ selected, thumbs, }: {
3
+ selected: boolean;
4
+ thumbs: boolean;
5
+ }): string;
6
+ export declare function MediaCompactPreview({ asset, url, pending, failed, focalPoint, className, }: {
7
+ asset: {
8
+ family?: string;
9
+ contentType?: string;
10
+ filename?: string;
11
+ };
12
+ url: string | null | undefined;
13
+ pending?: boolean;
14
+ failed?: boolean;
15
+ focalPoint?: AssetFocalPoint | null;
16
+ className?: string;
17
+ }): import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { type StorageFileKind } from "../fields-data-provider.tsx";
2
+ type AssetProfile = {
3
+ profile: string;
4
+ enforced?: boolean;
5
+ } | undefined;
6
+ export declare function MediaLibraryPickerDialog({ open, onOpenChange, kind, multiple, excludeAssetIds, assetProfile, onSelect, }: {
7
+ open: boolean;
8
+ onOpenChange: (open: boolean) => void;
9
+ kind: StorageFileKind;
10
+ multiple?: boolean;
11
+ /** Existing array values that must not be added a second time. */
12
+ excludeAssetIds?: readonly string[];
13
+ assetProfile?: AssetProfile;
14
+ onSelect: (assetIds: string[]) => void | Promise<void>;
15
+ }): import("react").JSX.Element;
16
+ export {};
@@ -0,0 +1,24 @@
1
+ import type { Manifest } from "../../../shared/src/index.js";
2
+ import type { PickerDensity } from "./picker-density.ts";
3
+ interface Props {
4
+ table: string;
5
+ value: unknown;
6
+ onChange: (v: string[] | undefined) => void;
7
+ /** Increment to open the search menu (e.g. when a reference cell is double-clicked). */
8
+ menuOpenRequest?: number;
9
+ /** Seed the search box when opening via grid type-to-edit. */
10
+ initialSearch?: string;
11
+ /** Show "+ Create new …" in the menu (default true). */
12
+ allowCreate?: boolean;
13
+ /** Highlight as an active filter control (yellow border/text). */
14
+ filterActive?: boolean;
15
+ /** Extra classes for the closed control container. */
16
+ className?: string;
17
+ /** Compact grid/formula bar vs comfortable modal forms. */
18
+ density?: PickerDensity;
19
+ /** Called when the search input blurs (after closing the menu). */
20
+ onInputBlur?: () => void;
21
+ manifest?: Manifest;
22
+ }
23
+ export declare function MultiIdPicker({ table, value, onChange, menuOpenRequest, initialSearch, allowCreate, filterActive, className, density, onInputBlur, manifest: manifestProp, }: Props): import("react").JSX.Element;
24
+ export {};
@@ -0,0 +1,28 @@
1
+ /** Chrome shared by the two reference pickers: the menu toggle and create flow. */
2
+ import type { RefObject } from "react";
3
+ import type { Table } from "../../../shared/src/index.js";
4
+ import type { PickerDensity } from "./picker-density.ts";
5
+ /**
6
+ * Opens the menu without stealing focus from the input — `preventDefault` on
7
+ * mousedown, then focus the input by hand, so the caret stays where the user
8
+ * expects and the blur-to-close handler does not fire on the way in.
9
+ */
10
+ export declare function PickerChevronButton({ table, density, inputRef, open, onOpen, }: {
11
+ table: string;
12
+ density: PickerDensity;
13
+ inputRef: RefObject<HTMLInputElement | null>;
14
+ open: boolean;
15
+ onOpen: () => void;
16
+ }): import("react").JSX.Element;
17
+ /**
18
+ * The "+ Create new …" destination. Renders nothing unless the host adapter can
19
+ * actually insert a row and the manifest has the table to build a form from —
20
+ * the same two conditions that put the option in the menu.
21
+ */
22
+ export declare function PickerCreateRowEditor({ open, onOpenChange, table, refTable, onCreated, }: {
23
+ open: boolean;
24
+ onOpenChange: (open: boolean) => void;
25
+ table: string;
26
+ refTable: Table | null;
27
+ onCreated: (documentId: string) => void;
28
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,5 @@
1
+ export type PickerDensity = "compact" | "comfortable";
2
+ export declare function pickerInputTextClass(density: PickerDensity): string;
3
+ export declare function pickerInputPadEndClass(density: PickerDensity): string;
4
+ export declare function pickerChevronButtonClass(density: PickerDensity): string;
5
+ export declare function pickerMenuPlaceholderClass(density: PickerDensity): string;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * What a reference picker's menu says when it has no options to offer.
3
+ *
4
+ * `empty` is the caller's own emptiness: the single-value picker counts hits,
5
+ * the multi picker also counts selected ids that fell outside them.
6
+ */
7
+ export declare function pickerListPlaceholder(args: {
8
+ table: string;
9
+ loading: boolean;
10
+ empty: boolean;
11
+ /** The debounced term the current results answer, if any. */
12
+ searched: string;
13
+ }): string | null;
@@ -0,0 +1,16 @@
1
+ import type { KeyboardEvent } from "react";
2
+ export type PickerMenuItem = {
3
+ key: string;
4
+ active?: boolean;
5
+ onSelect: () => void;
6
+ label: string;
7
+ };
8
+ /** Keep keyboard highlight valid when the menu shrinks (e.g. after search). */
9
+ export declare function clampPickerHighlightIndex(prev: number | null, itemCount: number): number | null;
10
+ export declare function handlePickerInputKeyDown(e: KeyboardEvent<HTMLInputElement>, { open, menuItems, highlightIndex, setOpen, setHighlightIndex, }: {
11
+ open: boolean;
12
+ menuItems: readonly PickerMenuItem[];
13
+ highlightIndex: number | null;
14
+ setOpen: (open: boolean) => void;
15
+ setHighlightIndex: (index: number | null | ((prev: number | null) => number | null)) => void;
16
+ }): void;
@@ -0,0 +1,12 @@
1
+ export declare const PICKER_MENU_MAX_HEIGHT = 240;
2
+ export declare const PICKER_MENU_GAP = 4;
3
+ export declare const PICKER_MENU_VIEWPORT_PADDING = 8;
4
+ /** 18rem — matches RowPopover min width. */
5
+ export declare const PICKER_MENU_MIN_WIDTH_PX = 288;
6
+ export type PickerMenuLayout = {
7
+ top: number;
8
+ left: number;
9
+ width: number;
10
+ maxHeight: number;
11
+ };
12
+ export declare function computePickerMenuLayout(anchorRect: DOMRect): PickerMenuLayout;
@@ -0,0 +1,19 @@
1
+ import type { MutableRefObject, ReactNode } from "react";
2
+ import type { PickerMenuLayout } from "./picker-menu-layout.ts";
3
+ import type { PickerDensity } from "./picker-density.ts";
4
+ import type { PickerMenuItem } from "./picker-menu-keyboard.ts";
5
+ type PickerMenuPortalProps = {
6
+ open: boolean;
7
+ menuLayout: PickerMenuLayout | null;
8
+ menuRef: MutableRefObject<HTMLDivElement | null>;
9
+ listId: string;
10
+ density: PickerDensity;
11
+ primaryItems: readonly PickerMenuItem[];
12
+ utilityItems: readonly PickerMenuItem[];
13
+ highlightIndex: number | null;
14
+ optionRefs: MutableRefObject<Map<string, HTMLButtonElement>>;
15
+ listPlaceholder: ReactNode;
16
+ };
17
+ export declare function PickerMenuPortal({ open, menuLayout, menuRef, listId, density, primaryItems, utilityItems, highlightIndex, optionRefs, listPlaceholder, }: PickerMenuPortalProps): import("react").ReactPortal | null;
18
+ export declare function flattenPickerMenuItems(primaryItems: readonly PickerMenuItem[], utilityItems: readonly PickerMenuItem[]): PickerMenuItem[];
19
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from "react";
2
+ import type { PickerDensity } from "./picker-density.ts";
3
+ export declare function PickerOptionRow({ children, onSelect, active, highlighted, density, buttonRef, }: {
4
+ children: ReactNode;
5
+ onSelect: () => void;
6
+ active?: boolean;
7
+ highlighted?: boolean;
8
+ density?: PickerDensity;
9
+ buttonRef?: (el: HTMLButtonElement | null) => void;
10
+ }): import("react").JSX.Element;
@@ -0,0 +1,35 @@
1
+ export declare const PICKER_OVERLAY_SELECTOR = "[data-picker-overlay]";
2
+ /**
3
+ * Nested file/image editor dialogs. Above the CMS field editor (10_000) and
4
+ * floating toolbar (9_999), below Media library / picker menus (11_000).
5
+ */
6
+ export declare const FILE_FIELD_DIALOG_Z_INDEX = 10500;
7
+ /**
8
+ * Above CMS field/inplace dialogs (10_000–10_050), nested file dialogs
9
+ * (10_500), and the floating toolbar (9_999). Tailwind z utilities are
10
+ * unreliable across host CSS pipelines, so the portal sets this as an inline
11
+ * style.
12
+ */
13
+ export declare const PICKER_OVERLAY_Z_INDEX = 11000;
14
+ export declare const pickerOverlayStyle: {
15
+ readonly zIndex: 11000;
16
+ };
17
+ export declare const fileFieldDialogStyle: {
18
+ readonly zIndex: 10500;
19
+ };
20
+ export declare function isPickerOverlayTarget(target: EventTarget | null): boolean;
21
+ /** `home`: an element of the dialog that holds the caller (a grid in a dialog); it doesn't count. */
22
+ export declare function isDialogTarget(target: EventTarget | null, home?: Element | null): boolean;
23
+ /** A field popover is open: Escape closes it before anything behind it. */
24
+ export declare function isFieldPopoverOpen(): boolean;
25
+ export declare function isDialogOpen(home?: Element | null): boolean;
26
+ /** Block Tab from leaving an open dialog into the grid behind it. */
27
+ export declare function blockTabWhenDialogOpen(e: KeyboardEvent): void;
28
+ /** Stop Enter in a portaled dialog from bubbling to grid/cell handlers behind it. */
29
+ export declare function stopEnterBubbleFromDialog(e: KeyboardEvent): void;
30
+ /** Blur while a portaled picker menu or RowEditor dialog is opening. */
31
+ export declare function shouldSkipInlineEditorCommitOnBlur(relatedTarget: EventTarget | null, home?: Element | null): boolean;
32
+ /** Commit inline cell edits on blur unless focus moved to a portaled picker or dialog. */
33
+ export declare function runInlineEditorCommitOnBlur(relatedTarget: EventTarget | null, commit: () => void, home?: Element | null): void;
34
+ /** Keep Radix Dialog/Sheet from swallowing clicks on portaled picker menus. */
35
+ export declare function preventDismissOnPickerOverlay(event: Event): void;
@@ -0,0 +1,21 @@
1
+ import { type ReactNode } from "react";
2
+ import type { Manifest } from "../../../shared/src/index.js";
3
+ type RecordLinkChipProps = {
4
+ table: string;
5
+ id: string;
6
+ label: string;
7
+ row?: Record<string, unknown>;
8
+ manifest?: Manifest;
9
+ /** Display values are loading: a skeleton chip until they first resolve, then the last label. */
10
+ loading?: boolean;
11
+ /** The row is in trash: "Label · In trash", linking to the trash view when Studio offers one. */
12
+ trashed?: boolean;
13
+ /** When true, only the link icon opens the popover (markdown editor inline links). */
14
+ inspectIconOnly?: boolean;
15
+ /** Extra content before the label (e.g. record-link icon in markdown). */
16
+ leading?: ReactNode;
17
+ className?: string;
18
+ "data-testid"?: string;
19
+ };
20
+ export declare function RecordLinkChip({ table, id, label, row, manifest: manifestOverride, loading, trashed, inspectIconOnly, leading, className, "data-testid": testId, }: RecordLinkChipProps): import("react").JSX.Element;
21
+ export {};
@@ -0,0 +1,36 @@
1
+ import { type MutableRefObject, type ReactNode } from "react";
2
+ import { type Table } from "../../../shared/src/index.js";
3
+ import type { Manifest } from "../../../shared/src/index.js";
4
+ export type RowEditPanelHandle = {
5
+ save: () => Promise<void>;
6
+ };
7
+ export type RowEditPanelProps = {
8
+ active: boolean;
9
+ sessionKey: string;
10
+ table: Table;
11
+ mode: "create" | "edit";
12
+ initial?: Record<string, unknown>;
13
+ /** Server row at edit start — dirty vs persisted data (pending counts as dirty). */
14
+ dirtyBaseline?: Record<string, unknown>;
15
+ notice?: string;
16
+ onClose?: () => void;
17
+ onSubmit?: (doc: Record<string, unknown>) => void | Promise<void>;
18
+ /** Push a field into shared grid pending state when its editor blurs. */
19
+ onFieldBlur?: (fieldName: string, value: unknown) => void;
20
+ onDirtyChange?: (dirty: boolean) => void;
21
+ /** When true, omit footer and panel Save/Cancel shortcuts — parent commits on blur / shared save bar. */
22
+ hideFooter?: boolean;
23
+ /** Island Save calls this to commit the focused field before pending persist (no blur yet). */
24
+ flushRef?: MutableRefObject<(() => void) | null>;
25
+ className?: string;
26
+ scrollClassName?: string;
27
+ footerClassName?: string;
28
+ footerExtra?: ReactNode;
29
+ /** Override the default Insert/Save button copy. */
30
+ saveLabel?: string;
31
+ /** Enable reference-row creation for the embedded field editors. */
32
+ allowCreate?: boolean | ((table: string) => boolean);
33
+ /** Optional manifest override for embedded reference and markdown editors. */
34
+ manifest?: Manifest;
35
+ };
36
+ export declare const RowEditPanel: import("react").ForwardRefExoticComponent<RowEditPanelProps & import("react").RefAttributes<RowEditPanelHandle>>;
@@ -0,0 +1,19 @@
1
+ import { type Table } from "../../../shared/src/index.js";
2
+ import { type RowEditPanelProps } from "./row-edit-panel.tsx";
3
+ type Mode = "create" | "edit";
4
+ interface Props {
5
+ open: boolean;
6
+ onOpenChange: (open: boolean) => void;
7
+ table: Table;
8
+ mode: Mode;
9
+ initial?: Record<string, unknown>;
10
+ /** Shown above fields (e.g. shared referenced-document warning). */
11
+ notice?: string;
12
+ onSubmit: (doc: Record<string, unknown>) => Promise<void>;
13
+ saveLabel?: string;
14
+ allowCreate?: RowEditPanelProps["allowCreate"];
15
+ /** Raise dialog above host overlays (e.g. CMS field editor at 10_000). */
16
+ overlayZIndex?: number;
17
+ }
18
+ export declare function RowEditor({ open, onOpenChange, table, mode, initial, notice, onSubmit, saveLabel, allowCreate, overlayZIndex, }: Props): import("react").JSX.Element;
19
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from "react";
2
+ import type { Manifest } from "../../../shared/src/index.js";
3
+ import { type DisplayValueMap } from "../fields-data-adapter.ts";
4
+ export declare function RowPopover({ table, row, manifest, refDisplay, onClose, titleActions, }: {
5
+ table: string;
6
+ row?: Record<string, unknown>;
7
+ manifest?: Manifest;
8
+ refDisplay: Map<string, DisplayValueMap>;
9
+ onClose?: () => void;
10
+ titleActions?: ReactNode;
11
+ }): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { type MutableRefObject } from "react";
2
+ /** Registers a commit callback on a parent-owned ref (formula bar, inline cell editor). */
3
+ export declare function useFlushRef(flushRef: MutableRefObject<(() => void) | null> | undefined, commit: () => void): void;
@@ -0,0 +1,86 @@
1
+ /**
2
+ * The combobox shell both reference pickers are built on.
3
+ *
4
+ * `IdPicker` and `MultiIdPicker` differ in what a value is — one id or a list —
5
+ * and in what the closed control looks like: a labelled input, or a row of
6
+ * badges. Everything between those two ends is the same: open and close, a
7
+ * debounced search, the adapter search results, the anchored menu overlay, and
8
+ * a keyboard highlight over one flat list of options.
9
+ *
10
+ * Split in two because the highlight depends on the options, and the options
11
+ * depend on the value shape only each picker knows. `usePickerCombobox` owns
12
+ * the state; the picker builds its own menu items from it; `usePickerMenu`
13
+ * takes them back and owns the keyboard.
14
+ */
15
+ import { type KeyboardEvent } from "react";
16
+ import { type Manifest } from "../../../shared/src/index.js";
17
+ import { type PickerMenuItem } from "./picker-menu-keyboard.ts";
18
+ /** Everything the shell owns; the shape is whatever the hook returns. */
19
+ export type PickerCombobox = ReturnType<typeof usePickerCombobox>;
20
+ export declare function usePickerCombobox(args: {
21
+ table: string;
22
+ allowCreate: boolean;
23
+ manifest?: Manifest;
24
+ /** Increment to open the menu (e.g. a reference cell was double-clicked). */
25
+ menuOpenRequest?: number;
26
+ /** Seed the search box when opening via grid type-to-edit. */
27
+ initialSearch?: string;
28
+ }): {
29
+ open: boolean;
30
+ setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
31
+ openMenu: () => void;
32
+ search: string;
33
+ setSearch: import("react").Dispatch<import("react").SetStateAction<string>>;
34
+ /** The term the current `searchResult` answers. */
35
+ debouncedSearch: string;
36
+ highlightIndex: number | null;
37
+ setHighlightIndex: import("react").Dispatch<import("react").SetStateAction<number | null>>;
38
+ anchorRef: import("react").RefObject<HTMLDivElement | null>;
39
+ inputRef: import("react").RefObject<HTMLInputElement | null>;
40
+ menuRef: import("react").RefObject<HTMLDivElement | null>;
41
+ menuLayout: import("./picker-menu-layout.ts").PickerMenuLayout | null;
42
+ optionRefs: import("react").RefObject<Map<string, HTMLButtonElement>>;
43
+ /** The manifest table behind "+ Create new …", or null when unavailable. */
44
+ refTable: import("../../../shared/src/index.js").Table | null;
45
+ searchResult: import("../fields-data-adapter.ts").ReferenceSearchResult;
46
+ hits: import("../fields-data-adapter.ts").SearchHit[];
47
+ loading: boolean;
48
+ canLoadMore: boolean;
49
+ };
50
+ export type PickerMenu = {
51
+ /** Primary and utility options as the keyboard sees them: one flat list. */
52
+ menuItems: PickerMenuItem[];
53
+ onInputKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
54
+ };
55
+ /**
56
+ * Flatten the picker's options for the keyboard, keep the highlight inside them
57
+ * as they change, and scroll whatever it lands on into view.
58
+ */
59
+ export declare function usePickerMenu(combobox: PickerCombobox, primaryItems: readonly PickerMenuItem[], utilityItems: readonly PickerMenuItem[]): PickerMenu;
60
+ /**
61
+ * The input wiring both pickers share. `value`, `placeholder`, `className` and
62
+ * any `id` stay with the caller — those are the closed control's own business.
63
+ */
64
+ export declare function pickerComboboxInputProps(args: {
65
+ combobox: PickerCombobox;
66
+ listId: string;
67
+ onInputKeyDown: PickerMenu["onInputKeyDown"];
68
+ onInputBlur?: () => void;
69
+ }): {
70
+ ref: import("react").RefObject<HTMLInputElement | null>;
71
+ "data-id-picker-input": string;
72
+ onChange: (event: {
73
+ target: {
74
+ value: string;
75
+ };
76
+ }) => void;
77
+ onFocus: () => void;
78
+ onClick: () => void;
79
+ onDoubleClick: () => void;
80
+ onKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
81
+ onBlur: () => void;
82
+ role: "combobox";
83
+ "aria-expanded": boolean;
84
+ "aria-controls": string | undefined;
85
+ "aria-autocomplete": "list";
86
+ };