@namroodinc/liquid-editorial 0.13.5 → 0.15.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 (275) hide show
  1. package/README.md +2 -2
  2. package/UPGRADING.md +94 -0
  3. package/dist/chunks/{Avatar-BY0dAItT.cjs → Avatar-BZGFSE6C.cjs} +2 -2
  4. package/dist/chunks/{Avatar-BY0dAItT.cjs.map → Avatar-BZGFSE6C.cjs.map} +1 -1
  5. package/dist/chunks/{Avatar-UjhjcHh5.js → Avatar-C4W-g8nU.js} +2 -2
  6. package/dist/chunks/{Avatar-UjhjcHh5.js.map → Avatar-C4W-g8nU.js.map} +1 -1
  7. package/dist/chunks/{Board-DUX76d2R.js → Board-Cbi5FMW-.js} +2 -2
  8. package/dist/chunks/{Board-DUX76d2R.js.map → Board-Cbi5FMW-.js.map} +1 -1
  9. package/dist/chunks/{Board-CQ1GTuRB.cjs → Board-_agEjTy8.cjs} +2 -2
  10. package/dist/chunks/{Board-CQ1GTuRB.cjs.map → Board-_agEjTy8.cjs.map} +1 -1
  11. package/dist/chunks/{CollectionView-CIJdNwcq.cjs → CollectionView-BfX2Lxre.cjs} +2 -2
  12. package/dist/chunks/{CollectionView-CIJdNwcq.cjs.map → CollectionView-BfX2Lxre.cjs.map} +1 -1
  13. package/dist/chunks/{CollectionView-JRNdXHti.js → CollectionView-DPJGtSP5.js} +2 -2
  14. package/dist/chunks/{CollectionView-JRNdXHti.js.map → CollectionView-DPJGtSP5.js.map} +1 -1
  15. package/dist/chunks/{ColourField-DFvRASVe.cjs → ColourField-BVGnW8Wh.cjs} +2 -2
  16. package/dist/chunks/{ColourField-DFvRASVe.cjs.map → ColourField-BVGnW8Wh.cjs.map} +1 -1
  17. package/dist/chunks/{ColourField-BG5oGj9f.js → ColourField-BcuARZY4.js} +6 -6
  18. package/dist/chunks/{ColourField-BG5oGj9f.js.map → ColourField-BcuARZY4.js.map} +1 -1
  19. package/dist/chunks/{DatePicker-LqaePc57.js → DatePicker-VQUsbYdo.js} +3 -3
  20. package/dist/chunks/{DatePicker-LqaePc57.js.map → DatePicker-VQUsbYdo.js.map} +1 -1
  21. package/dist/chunks/{DatePicker-ClOqS6oH.cjs → DatePicker-zA0bWVBp.cjs} +2 -2
  22. package/dist/chunks/{DatePicker-ClOqS6oH.cjs.map → DatePicker-zA0bWVBp.cjs.map} +1 -1
  23. package/dist/chunks/{Drawer-Ck5XKT_V.js → Drawer-2cf0SaG4.js} +3 -3
  24. package/dist/chunks/{Drawer-Ck5XKT_V.js.map → Drawer-2cf0SaG4.js.map} +1 -1
  25. package/dist/chunks/{Drawer-DdIH9jpe.cjs → Drawer-BzvSfkCL.cjs} +2 -2
  26. package/dist/chunks/{Drawer-DdIH9jpe.cjs.map → Drawer-BzvSfkCL.cjs.map} +1 -1
  27. package/dist/chunks/EntryPicker-BGWxiLJ_.js +877 -0
  28. package/dist/chunks/EntryPicker-BGWxiLJ_.js.map +1 -0
  29. package/dist/chunks/EntryPicker-wVjzdlAO.cjs +2 -0
  30. package/dist/chunks/EntryPicker-wVjzdlAO.cjs.map +1 -0
  31. package/dist/chunks/FormEditor-BHVJG23r.js +30 -0
  32. package/dist/chunks/FormEditor-BHVJG23r.js.map +1 -0
  33. package/dist/chunks/FormEditor-DjUz7qQo.cjs +2 -0
  34. package/dist/chunks/FormEditor-DjUz7qQo.cjs.map +1 -0
  35. package/dist/chunks/Icon-QLZH31JA.cjs +2 -0
  36. package/dist/chunks/Icon-QLZH31JA.cjs.map +1 -0
  37. package/dist/chunks/Icon-kLLQC54Z.js +107 -0
  38. package/dist/chunks/Icon-kLLQC54Z.js.map +1 -0
  39. package/dist/chunks/{Message-d6lqiMQ6.js → Message-DM6pTq7N.js} +2 -2
  40. package/dist/chunks/{Message-d6lqiMQ6.js.map → Message-DM6pTq7N.js.map} +1 -1
  41. package/dist/chunks/{Message-yhdaBpaz.cjs → Message-yZJDVzb8.cjs} +2 -2
  42. package/dist/chunks/{Message-yhdaBpaz.cjs.map → Message-yZJDVzb8.cjs.map} +1 -1
  43. package/dist/chunks/RichTextEditor-BgfeOrEe.cjs +2 -0
  44. package/dist/chunks/RichTextEditor-BgfeOrEe.cjs.map +1 -0
  45. package/dist/chunks/RichTextEditor-CS2ED0HP.js +2702 -0
  46. package/dist/chunks/RichTextEditor-CS2ED0HP.js.map +1 -0
  47. package/dist/chunks/dialogLabel-Dx-WEEzI.cjs +2 -0
  48. package/dist/chunks/dialogLabel-Dx-WEEzI.cjs.map +1 -0
  49. package/dist/chunks/dialogLabel-nB1gwKz0.js +157 -0
  50. package/dist/chunks/dialogLabel-nB1gwKz0.js.map +1 -0
  51. package/dist/chunks/overlayLayer-CPd3zj_u.cjs +2 -0
  52. package/dist/chunks/overlayLayer-CPd3zj_u.cjs.map +1 -0
  53. package/dist/chunks/overlayLayer-Dv1vmfaI.js +199 -0
  54. package/dist/chunks/overlayLayer-Dv1vmfaI.js.map +1 -0
  55. package/dist/chunks/{useTooltip-DnJEFBLg.js → useTooltip-COyAcujL.js} +2 -2
  56. package/dist/chunks/{useTooltip-DnJEFBLg.js.map → useTooltip-COyAcujL.js.map} +1 -1
  57. package/dist/chunks/{useTooltip-C7ON4nkV.cjs → useTooltip-nEDN0ObI.cjs} +2 -2
  58. package/dist/chunks/{useTooltip-C7ON4nkV.cjs.map → useTooltip-nEDN0ObI.cjs.map} +1 -1
  59. package/dist/components/AppShell/index.cjs +1 -1
  60. package/dist/components/AppShell/index.js +1 -1
  61. package/dist/components/AssetCard/index.cjs +1 -1
  62. package/dist/components/AssetCard/index.js +1 -1
  63. package/dist/components/AssetGrid/index.cjs +1 -1
  64. package/dist/components/AssetGrid/index.js +1 -1
  65. package/dist/components/Avatar/index.cjs +1 -1
  66. package/dist/components/Avatar/index.js +1 -1
  67. package/dist/components/Banner/index.cjs +1 -1
  68. package/dist/components/Banner/index.js +1 -1
  69. package/dist/components/Board/index.cjs +1 -1
  70. package/dist/components/Board/index.js +1 -1
  71. package/dist/components/Button/index.cjs +1 -1
  72. package/dist/components/Button/index.js +1 -1
  73. package/dist/components/Choice/index.cjs +1 -1
  74. package/dist/components/Choice/index.cjs.map +1 -1
  75. package/dist/components/Choice/index.js +5 -5
  76. package/dist/components/CollectionView/index.cjs +1 -1
  77. package/dist/components/CollectionView/index.js +1 -1
  78. package/dist/components/ColourField/index.cjs +1 -1
  79. package/dist/components/ColourField/index.js +1 -1
  80. package/dist/components/DatePicker/index.cjs +1 -1
  81. package/dist/components/DatePicker/index.js +1 -1
  82. package/dist/components/Drawer/index.cjs +1 -1
  83. package/dist/components/Drawer/index.js +1 -1
  84. package/dist/components/EditLayout/index.cjs +1 -1
  85. package/dist/components/EditLayout/index.cjs.map +1 -1
  86. package/dist/components/EditLayout/index.js +6 -7
  87. package/dist/components/EditLayout/index.js.map +1 -1
  88. package/dist/components/EntryPicker/dialog.d.cts +11 -1
  89. package/dist/components/EntryPicker/dialog.d.cts.map +1 -1
  90. package/dist/components/EntryPicker/dialog.d.ts +11 -1
  91. package/dist/components/EntryPicker/dialog.d.ts.map +1 -1
  92. package/dist/components/EntryPicker/index.cjs +1 -1
  93. package/dist/components/EntryPicker/index.js +1 -1
  94. package/dist/components/EntryPicker/style.css +1 -1
  95. package/dist/components/EntryPicker/use-picker-data.d.cts +1 -1
  96. package/dist/components/EntryPicker/use-picker-data.d.cts.map +1 -1
  97. package/dist/components/EntryPicker/use-picker-data.d.ts +1 -1
  98. package/dist/components/EntryPicker/use-picker-data.d.ts.map +1 -1
  99. package/dist/components/EntryPicker/use-picker-session.d.cts +4 -1
  100. package/dist/components/EntryPicker/use-picker-session.d.cts.map +1 -1
  101. package/dist/components/EntryPicker/use-picker-session.d.ts +4 -1
  102. package/dist/components/EntryPicker/use-picker-session.d.ts.map +1 -1
  103. package/dist/components/EntryPicker/use-selected-items.d.cts +2 -0
  104. package/dist/components/EntryPicker/use-selected-items.d.cts.map +1 -1
  105. package/dist/components/EntryPicker/use-selected-items.d.ts +2 -0
  106. package/dist/components/EntryPicker/use-selected-items.d.ts.map +1 -1
  107. package/dist/components/FormEditor/README.md +197 -28
  108. package/dist/components/FormEditor/control.d.cts +11 -2
  109. package/dist/components/FormEditor/control.d.cts.map +1 -1
  110. package/dist/components/FormEditor/control.d.ts +11 -2
  111. package/dist/components/FormEditor/control.d.ts.map +1 -1
  112. package/dist/components/FormEditor/form.d.cts +33 -0
  113. package/dist/components/FormEditor/form.d.cts.map +1 -0
  114. package/dist/components/FormEditor/form.d.ts +33 -0
  115. package/dist/components/FormEditor/form.d.ts.map +1 -0
  116. package/dist/components/FormEditor/index.cjs +1 -1
  117. package/dist/components/FormEditor/index.d.cts +3 -27
  118. package/dist/components/FormEditor/index.d.cts.map +1 -1
  119. package/dist/components/FormEditor/index.d.ts +3 -27
  120. package/dist/components/FormEditor/index.d.ts.map +1 -1
  121. package/dist/components/FormEditor/index.js +3 -3
  122. package/dist/components/FormEditor/model.d.cts +2 -0
  123. package/dist/components/FormEditor/model.d.cts.map +1 -1
  124. package/dist/components/FormEditor/model.d.ts +2 -0
  125. package/dist/components/FormEditor/model.d.ts.map +1 -1
  126. package/dist/components/FormEditor/rich-text-control.d.cts +4 -0
  127. package/dist/components/FormEditor/rich-text-control.d.cts.map +1 -0
  128. package/dist/components/FormEditor/rich-text-control.d.ts +4 -0
  129. package/dist/components/FormEditor/rich-text-control.d.ts.map +1 -0
  130. package/dist/components/Icon/icons.d.cts +16 -0
  131. package/dist/components/Icon/icons.d.cts.map +1 -1
  132. package/dist/components/Icon/icons.d.ts +16 -0
  133. package/dist/components/Icon/icons.d.ts.map +1 -1
  134. package/dist/components/Icon/index.cjs +1 -1
  135. package/dist/components/Icon/index.js +1 -1
  136. package/dist/components/ImageCropper/index.cjs +1 -1
  137. package/dist/components/ImageCropper/index.cjs.map +1 -1
  138. package/dist/components/ImageCropper/index.js +6 -6
  139. package/dist/components/Menu/index.cjs +1 -1
  140. package/dist/components/Menu/index.cjs.map +1 -1
  141. package/dist/components/Menu/index.d.cts +3 -2
  142. package/dist/components/Menu/index.d.cts.map +1 -1
  143. package/dist/components/Menu/index.d.ts +3 -2
  144. package/dist/components/Menu/index.d.ts.map +1 -1
  145. package/dist/components/Menu/index.js +65 -52
  146. package/dist/components/Menu/index.js.map +1 -1
  147. package/dist/components/Modal/index.cjs +1 -1
  148. package/dist/components/Modal/index.js +2 -2
  149. package/dist/components/Popover/index.cjs +1 -1
  150. package/dist/components/Popover/index.cjs.map +1 -1
  151. package/dist/components/Popover/index.d.cts.map +1 -1
  152. package/dist/components/Popover/index.d.ts.map +1 -1
  153. package/dist/components/Popover/index.js +67 -64
  154. package/dist/components/Popover/index.js.map +1 -1
  155. package/dist/components/RichTextEditor/content-block-frame.d.cts +32 -0
  156. package/dist/components/RichTextEditor/content-block-frame.d.cts.map +1 -0
  157. package/dist/components/RichTextEditor/content-block-frame.d.ts +32 -0
  158. package/dist/components/RichTextEditor/content-block-frame.d.ts.map +1 -0
  159. package/dist/components/RichTextEditor/content-block-view.d.cts +3 -0
  160. package/dist/components/RichTextEditor/content-block-view.d.cts.map +1 -0
  161. package/dist/components/RichTextEditor/content-block-view.d.ts +3 -0
  162. package/dist/components/RichTextEditor/content-block-view.d.ts.map +1 -0
  163. package/dist/components/RichTextEditor/content-block.d.cts +24 -0
  164. package/dist/components/RichTextEditor/content-block.d.cts.map +1 -0
  165. package/dist/components/RichTextEditor/content-block.d.ts +24 -0
  166. package/dist/components/RichTextEditor/content-block.d.ts.map +1 -0
  167. package/dist/components/RichTextEditor/document.d.cts +15 -8
  168. package/dist/components/RichTextEditor/document.d.cts.map +1 -1
  169. package/dist/components/RichTextEditor/document.d.ts +15 -8
  170. package/dist/components/RichTextEditor/document.d.ts.map +1 -1
  171. package/dist/components/RichTextEditor/embed-context.d.cts +5 -0
  172. package/dist/components/RichTextEditor/embed-context.d.cts.map +1 -1
  173. package/dist/components/RichTextEditor/embed-context.d.ts +5 -0
  174. package/dist/components/RichTextEditor/embed-context.d.ts.map +1 -1
  175. package/dist/components/RichTextEditor/embed-types.d.cts +6 -4
  176. package/dist/components/RichTextEditor/embed-types.d.cts.map +1 -1
  177. package/dist/components/RichTextEditor/embed-types.d.ts +6 -4
  178. package/dist/components/RichTextEditor/embed-types.d.ts.map +1 -1
  179. package/dist/components/RichTextEditor/index.cjs +1 -1
  180. package/dist/components/RichTextEditor/index.d.cts +9 -1
  181. package/dist/components/RichTextEditor/index.d.cts.map +1 -1
  182. package/dist/components/RichTextEditor/index.d.ts +9 -1
  183. package/dist/components/RichTextEditor/index.d.ts.map +1 -1
  184. package/dist/components/RichTextEditor/index.js +1 -2
  185. package/dist/components/RichTextEditor/style.css +161 -86
  186. package/dist/components/RichTextEditor/table-actions.d.cts +11 -0
  187. package/dist/components/RichTextEditor/table-actions.d.cts.map +1 -0
  188. package/dist/components/RichTextEditor/table-actions.d.ts +11 -0
  189. package/dist/components/RichTextEditor/table-actions.d.ts.map +1 -0
  190. package/dist/components/RichTextEditor/table-bands.d.cts +19 -0
  191. package/dist/components/RichTextEditor/table-bands.d.cts.map +1 -0
  192. package/dist/components/RichTextEditor/table-bands.d.ts +19 -0
  193. package/dist/components/RichTextEditor/table-bands.d.ts.map +1 -0
  194. package/dist/components/RichTextEditor/table-view.d.cts +4 -0
  195. package/dist/components/RichTextEditor/table-view.d.cts.map +1 -0
  196. package/dist/components/RichTextEditor/table-view.d.ts +4 -0
  197. package/dist/components/RichTextEditor/table-view.d.ts.map +1 -0
  198. package/dist/components/RichTextEditor/tables.d.cts +7 -0
  199. package/dist/components/RichTextEditor/tables.d.cts.map +1 -0
  200. package/dist/components/RichTextEditor/tables.d.ts +7 -0
  201. package/dist/components/RichTextEditor/tables.d.ts.map +1 -0
  202. package/dist/components/RichTextEditor/use-embeds.d.cts.map +1 -1
  203. package/dist/components/RichTextEditor/use-embeds.d.ts.map +1 -1
  204. package/dist/components/SearchField/index.cjs +1 -1
  205. package/dist/components/SearchField/index.js +1 -1
  206. package/dist/components/Select/index.cjs +1 -1
  207. package/dist/components/Select/index.js +2 -2
  208. package/dist/components/SelectionCard/index.cjs +1 -1
  209. package/dist/components/SelectionCard/index.cjs.map +1 -1
  210. package/dist/components/SelectionCard/index.js +4 -4
  211. package/dist/components/SelectionCard/index.js.map +1 -1
  212. package/dist/components/SideNav/index.cjs +1 -1
  213. package/dist/components/SideNav/index.js +1 -1
  214. package/dist/components/SortableList/index.cjs +1 -1
  215. package/dist/components/SortableList/index.js +1 -1
  216. package/dist/components/Stepper/index.cjs +1 -1
  217. package/dist/components/Stepper/index.js +1 -1
  218. package/dist/components/SubNav/index.cjs +1 -1
  219. package/dist/components/SubNav/index.js +1 -1
  220. package/dist/components/Switch/style.css +2 -6
  221. package/dist/components/Table/index.cjs +1 -1
  222. package/dist/components/Table/index.js +1 -1
  223. package/dist/components/Time/index.cjs +1 -1
  224. package/dist/components/Time/index.js +1 -1
  225. package/dist/components/Toast/index.cjs +1 -1
  226. package/dist/components/Toast/index.js +1 -1
  227. package/dist/components/TopNav/index.cjs +1 -1
  228. package/dist/components/TopNav/index.js +1 -1
  229. package/dist/index.cjs +1 -1
  230. package/dist/index.d.cts +1 -1
  231. package/dist/index.d.cts.map +1 -1
  232. package/dist/index.d.ts +1 -1
  233. package/dist/index.d.ts.map +1 -1
  234. package/dist/index.js +28 -28
  235. package/dist/internal/dialogFocus.d.cts +6 -1
  236. package/dist/internal/dialogFocus.d.cts.map +1 -1
  237. package/dist/internal/dialogFocus.d.ts +6 -1
  238. package/dist/internal/dialogFocus.d.ts.map +1 -1
  239. package/package.json +8 -6
  240. package/dist/chunks/EntryPicker-B4dAsObz.cjs +0 -2
  241. package/dist/chunks/EntryPicker-B4dAsObz.cjs.map +0 -1
  242. package/dist/chunks/EntryPicker-DDXHytMN.js +0 -160
  243. package/dist/chunks/EntryPicker-DDXHytMN.js.map +0 -1
  244. package/dist/chunks/FormEditor-BGzE-rqk.cjs +0 -2
  245. package/dist/chunks/FormEditor-BGzE-rqk.cjs.map +0 -1
  246. package/dist/chunks/FormEditor-ChH4e5sB.js +0 -693
  247. package/dist/chunks/FormEditor-ChH4e5sB.js.map +0 -1
  248. package/dist/chunks/Icon-3ucBRgrd.cjs +0 -2
  249. package/dist/chunks/Icon-3ucBRgrd.cjs.map +0 -1
  250. package/dist/chunks/Icon-dPXyBYe5.js +0 -91
  251. package/dist/chunks/Icon-dPXyBYe5.js.map +0 -1
  252. package/dist/chunks/RichTextEditor-BFblqw8m.js +0 -1144
  253. package/dist/chunks/RichTextEditor-BFblqw8m.js.map +0 -1
  254. package/dist/chunks/RichTextEditor-DU9CVeRD.cjs +0 -2
  255. package/dist/chunks/RichTextEditor-DU9CVeRD.cjs.map +0 -1
  256. package/dist/chunks/dialogLabel-DT7rCr3_.js +0 -176
  257. package/dist/chunks/dialogLabel-DT7rCr3_.js.map +0 -1
  258. package/dist/chunks/dialogLabel-_-MTckE_.cjs +0 -2
  259. package/dist/chunks/dialogLabel-_-MTckE_.cjs.map +0 -1
  260. package/dist/chunks/overlayLayer-iGhuAByk.cjs +0 -2
  261. package/dist/chunks/overlayLayer-iGhuAByk.cjs.map +0 -1
  262. package/dist/chunks/overlayLayer-lU4iWSjO.js +0 -162
  263. package/dist/chunks/overlayLayer-lU4iWSjO.js.map +0 -1
  264. package/dist/chunks/use-picker-session-BSpOwnQ-.js +0 -712
  265. package/dist/chunks/use-picker-session-BSpOwnQ-.js.map +0 -1
  266. package/dist/chunks/use-picker-session-ouqHBmVA.cjs +0 -2
  267. package/dist/chunks/use-picker-session-ouqHBmVA.cjs.map +0 -1
  268. package/dist/components/RichTextEditor/storyblock-view.d.cts +0 -3
  269. package/dist/components/RichTextEditor/storyblock-view.d.cts.map +0 -1
  270. package/dist/components/RichTextEditor/storyblock-view.d.ts +0 -3
  271. package/dist/components/RichTextEditor/storyblock-view.d.ts.map +0 -1
  272. package/dist/components/RichTextEditor/storyblock.d.cts +0 -19
  273. package/dist/components/RichTextEditor/storyblock.d.cts.map +0 -1
  274. package/dist/components/RichTextEditor/storyblock.d.ts +0 -19
  275. package/dist/components/RichTextEditor/storyblock.d.ts.map +0 -1
@@ -161,7 +161,7 @@ are not automatically schema options.
161
161
  | --- | --- | --- |
162
162
  | `shortText` | `inputType: "text" \| "email"` (`text`), `maxLength`, `readOnly: false`, `autoFocus: false` | String; empty text remains `""`. |
163
163
  | `longText` | `rows: 3`, `maxLength`, `readOnly: false`, `autoFocus: false` | String. |
164
- | `richText` | `placeholder: "Write something…"`, `expandedWidth: "wide" \| "full"` (`wide`; any other runtime value throws); no autofocus | TipTap JSON document rooted at `doc`. |
164
+ | `richText` | `placeholder: "Write something…"`, `expandedWidth: "wide" \| "full"` (`wide`; any other runtime value throws), `tables: true` (false removes table insertion and rejects table nodes; a non-boolean runtime value throws); no autofocus | TipTap JSON document rooted at `doc`. |
165
165
  | `number` | `min`, `max`, `step: number \| "any"` (`"any"`), `hasSteppers: true`, `decreaseLabel` / `increaseLabel` (`"Decrease {label}"` / `"Increase {label}"`), `prefix`, `suffix` (strings), `autoFocus: false` | Finite number. |
166
166
  | `boolean` | `autoFocus: false`; always a Switch | Boolean; `false` satisfies required. |
167
167
  | `dateTime` | Native browser date-and-time input; `autoFocus: false`; label gets `(UTC)` | UTC ISO string ending in `Z`, including milliseconds. |
@@ -315,6 +315,117 @@ Expansion is unavailable while disabled or loading unsupported content, and clos
315
315
  if either condition appears. Toggling does not emit `onValueChange` or change the
316
316
  stored document. Expansion is local UI state, so applications do not persist it.
317
317
 
318
+ ### Rich-text tables
319
+
320
+ The toolbar's Insert table button uses the `table` icon and is disabled when
321
+ the caret or selection is in a table or the whole table is selected. Outside
322
+ a table it opens a grid for up to 6 rows and 8 columns, initially focused at
323
+ 3 × 3. Hover or use the arrow keys to preview a size. While the grid has
324
+ focus, hovering a size also focuses it, so Enter inserts the size shown;
325
+ leaving the grid shows the focused size again. Pick a size by clicking or
326
+ pressing Enter or Space. Include header row is on by default.
327
+
328
+ Custom size opens a FormEditor form with Rows and Columns number fields
329
+ (1–50 each, with steppers) and carries over Include header row. FormEditor
330
+ reports requiredness and bounds. The dialog adds "Enter a whole number." for
331
+ a fractional count. With a content block or another standalone block selected,
332
+ Insert table places the table after it. The caret lands in the first cell.
333
+ Typing there starts a separate undo step.
334
+
335
+ Each table is a Content Block. Select a cell and open **⋯ Table actions**
336
+ in the block's title bar to add, delete, or move its row or column. Column
337
+ moves follow the visible left and right directions in LTR and RTL. Cells
338
+ joined by a span move together, header formatting stays at the edge, and
339
+ Undo reverts one move. Delete row and Delete column remove every row or
340
+ column the selected cells cover, and are disabled when that would remove all
341
+ of them.
342
+ Add row above is disabled when it would insert before a complete first-row
343
+ header. Rows can still be inserted below the header and columns on either side.
344
+
345
+ The same menu toggles the first-row and first-column headers, merges the
346
+ selected cells, splits a merged cell, and deletes the table. Moves and inserts
347
+ for a cell range use the cell where the selection ends. **Cell alignment**
348
+ applies left, centre, or right to the active cell or all cells in the selected
349
+ range in one undo step. Left is the default in both LTR and RTL. Choosing an
350
+ alignment returns focus to the editor. When the whole table is selected
351
+ without a cell, for example by clicking its title bar first, row, column,
352
+ merge and split commands are disabled with "Select a cell first", and Cell
353
+ alignment applies to every cell.
354
+
355
+ Tab and Shift+Tab move between cells while editing. Press Shift+F10 or
356
+ the Menu key from a cell to open **Table actions**; the browser's own context
357
+ menu for that key stays closed. Escape selects the whole
358
+ table and remembers the cell selection, and Tab then reaches the menu.
359
+ Click or drag the title-bar grip to select or move the whole table.
360
+
361
+ A table is part of the existing TipTap JSON document, using `table`, `tableRow`,
362
+ `tableHeader` and `tableCell` nodes. Cells can contain formatted content.
363
+ An empty table does not satisfy requiredness, while text in a cell does.
364
+ Update any application-side rich-text validator and delivery renderer to
365
+ accept these nodes before writers save or publish tables. HTML-mode editors
366
+ read and write semantic table markup using the same schema. Pasting or
367
+ dropping content from outside the editor keeps the table structure and cell
368
+ formatting without carrying over column widths. Content cut, copied or dragged
369
+ within the same editor keeps its stored widths, and cells pasted into a table
370
+ take that table's column widths.
371
+
372
+ Regular and header cells store alignment in `attrs.align` as `left`, `center`,
373
+ or `right`. An omitted or null value displays as left. HTML reads inline
374
+ `text-align` and the legacy `align` attribute. Saved alignment uses inline
375
+ `text-align` on `<td>` and `<th>`, so keep that property in HTML sanitizers.
376
+ Set the same left default in the delivery renderer.
377
+
378
+ Pasting or dropping a selection that contains an entry or asset Content Block
379
+ into a cell rejects the entire operation, including mixed selections with text.
380
+ Previously saved embeds inside a cell still load.
381
+
382
+ Tables without stored widths save as a `<table>` with a `<tbody>` and no inline
383
+ sizing. A table with any stored column width saves with its sizing:
384
+
385
+ ```html
386
+ <table style="width: 330px;">
387
+ <colgroup><col style="width: 140px;"><col style="width: 190px;"></colgroup>
388
+ <tbody>
389
+ <tr><td colwidth="140"><p>A</p></td><td colwidth="190"><p>B</p></td></tr>
390
+ </tbody>
391
+ </table>
392
+ ```
393
+
394
+ - `<table>` has `style="width: Npx"` when every column has a width, or
395
+ `style="min-width: Npx"` when some don't. N is the sum of the column widths,
396
+ counting 80px for each column without one.
397
+ - `<colgroup>` has one `<col>` per column, with `style="width: Npx"`, or
398
+ `style="min-width: 80px"` for a column without a width.
399
+ - Each cell with a stored width has a `colwidth` attribute: one value per column
400
+ it spans, separated by commas, such as `colwidth="100,120"`.
401
+
402
+ Reloading reads only the cells' `colwidth` attributes. The editor recomputes
403
+ the `style` attributes and `<colgroup>` when it saves. A sanitizer between the
404
+ editor and storage must keep `colwidth` on `<td>` and `<th>` for stored widths
405
+ to round-trip. Keep `<colgroup>`, `<col>` and their `style` attributes, and
406
+ `style` on `<table>`, if published tables should use the stored widths. The
407
+ scroll wrapper and minimum cell width are part of the editor layout.
408
+
409
+ Set `tables: false` on a rich-text field (`tables={false}` on RichTextEditor)
410
+ until the application's validator and renderer accept tables. The toolbar then
411
+ has no table controls, a pasted table keeps only its text, and validation and
412
+ the editor treat a stored JSON document containing table nodes as unsupported
413
+ content. An HTML-mode editor reads table markup as paragraphs. Changing
414
+ `tables` recreates the editor from its current document, controlled or
415
+ uncontrolled, without emitting a change. The new editor starts unfocused with
416
+ fresh undo history, and an open embed picker closes: its target refuses later
417
+ commits, because the bookmarked positions belonged to the previous document.
418
+ An uncontrolled HTML editor restores its original table markup when tables
419
+ are re-enabled if the table-free editor reported no change. Once it reports one,
420
+ whether an edit or a change a plugin appends, such as a trailing paragraph, the
421
+ flattened document it reported carries forward as paragraphs.
422
+
423
+ ```tsx
424
+ export const tablelessBodySchema = {
425
+ fields: [{ id: "body", type: "richText", label: "Story body", tables: false }],
426
+ } satisfies FormSchema;
427
+ ```
428
+
318
429
  ### Date-only and date-and-time pickers
319
430
 
320
431
  - Use `type: "date"` for a calendar day. It renders the shared DateField with a
@@ -625,11 +736,25 @@ See the packaged UPGRADING.md for removed styling APIs.
625
736
  tells a new request (dimmed rows) from a refresh of the same one (usable
626
737
  rows, read again at the new `refreshKey`), and `use-selected-items.ts` keeps
627
738
  each selected ID's copy from before a refresh until a fresh one arrives.
628
- Translate clear events and Field bindings here; rich text forwards
629
- `expandedWidth` to RichTextEditor, whose `expansion.tsx` moves one rendering
630
- host into a headerless Modal; Modal and the shared `src/internal` helpers own
631
- the dialog behaviour and portal scope. Do not copy control styling.
632
- 3. **State/frame:** `index.tsx` asserts the schema, owns controlled/uncontrolled
739
+ Translate clear events and Field bindings here. Rich text is the one adapter
740
+ `control.tsx` does not import: `rich-text-control.tsx` renders RichTextEditor,
741
+ forwarding `expandedWidth` and `tables`, and `index.tsx` supplies it through
742
+ `RichTextControlContext`. RichTextEditor's `tables.tsx` handles the quick
743
+ grid and renders the custom size form with `FormEditorCore` from `form.tsx`,
744
+ so the two components
745
+ never import each other in a cycle. RichTextEditor's `expansion.tsx` moves one
746
+ rendering host into a headerless Modal; Modal and the shared `src/internal`
747
+ helpers own the dialog behaviour and portal scope. RichTextEditor's
748
+ `document.ts` builds the schema with or without tables for both the editor
749
+ and `validateFormValues`. It also strips widths from cells pasted or dropped
750
+ from outside the editor, and renders tables without stored widths as
751
+ semantic HTML. `table-view.tsx` extends TableView to mount the shared
752
+ `content-block-frame.tsx` and its grouped table actions. Its clipboard guard
753
+ rejects embeds before TableKit can paste content into selected cells.
754
+ `table-actions.ts` supplies the menus and uses `table-bands.ts` to move
755
+ spans and widths together.
756
+ Do not copy control styling.
757
+ 3. **State/frame:** `form.tsx` (`FormEditorCore`) asserts the schema, owns controlled/uncontrolled
633
758
  wiring and changed-field tracking, and wraps each Field in Container with
634
759
  `padded={false}` and `center={false}`, using Container's `lg` default.
635
760
  Group bindings use fieldsets without duplicating legends or descriptions.
@@ -701,15 +826,47 @@ editing and dialog suspension. They do not fetch or save content themselves.
701
826
 
702
827
  A source adds its toolbar button and its blocks' Replace action only when it can
703
828
  offer something to embed: `loadPage`, non-empty `items` or `onCreate`. A source with only
704
- `resolveItem` displays existing blocks without offering insertion. A block holds
705
- one item, so the dialog always chooses one; embed sources take no `mode` or `max`.
829
+ `resolveItem` displays existing blocks without offering insertion. Embedding from
830
+ a source that lists choices (`loadPage` or non-empty `items`) always stages
831
+ existing items across queries and pages; its toolbar button reads "Embed
832
+ entries" or "Embed assets". A source that can only create (`onCreate` alone)
833
+ reads "Embed entry" or "Embed asset" and inserts the one item it creates, with
834
+ Done to close. Use the results checkboxes to select or deselect items. The
835
+ footer shows the count as text, since an insertion has no limit to draw a
836
+ usage ring against. Insert selected commits the selected items as
837
+ consecutive content blocks in selection order, with one undo step. Closing the
838
+ dialog discards the pending selection. Replace still chooses one item, and New
839
+ creates and inserts one item when the selection is empty. While a creation is
840
+ pending (`isCreating`), rows can't be selected, so staging and creation never
841
+ compete for the same insertion. Embed sources ignore EntryPicker's `mode` and
842
+ `max`, including on a source spread from a field's picker source.
843
+
844
+ Give a source with `loadPage` a `resolveItem`. After a `refreshKey` change,
845
+ Insert selected waits for `resolveItem` to check each staged item, even when
846
+ refreshed search results already list it. The inserted content block uses the
847
+ confirmed copy from the current refresh immediately. The picker deselects items
848
+ that `resolveItem` returns as null, removed, unavailable or disabled, and any
849
+ that a results page at the current refresh shows as removed, unavailable,
850
+ disabled or otherwise restricted, since a page can refuse an item but only
851
+ `resolveItem` confirms one. It reports
852
+ the change in the footer and re-enables Insert selected for the rest.
853
+ If `resolveItem` rejects, the dialog shows
854
+ "Couldn't load selected entries" (or assets) with Try again, and Insert selected
855
+ stays disabled until a retry succeeds. Without `resolveItem`, a
856
+ staged item is checked again only if a refreshed page shows it; one that no
857
+ longer appears keeps its earlier copy and is inserted. Static `items` sources
858
+ deselect an item as soon as it leaves `items`.
706
859
 
707
860
  Entry rows use the existing `EntryItem` contract with an additional `modelId`
708
861
  containing a readable model API ID; `item.id` identifies the selected entry.
709
- Asset rows need only the existing item contract. A row that can't become a valid
710
- block (an entry without `modelId`, a blank ID, or a removed item) is restricted in
711
- the dialog with a "Can't embed" reason, as an application's own `isDisabled` row
712
- would be, rather than ignoring the pick or producing an invalid block.
862
+ Asset rows need only the existing item contract. A row that can't become a block
863
+ is restricted in the dialog, as an application's own `isDisabled` row would be,
864
+ rather than ignoring the pick or producing an invalid block. The reasons are:
865
+
866
+ - a removed item (`tone: "removed"`): its `removedLabel`, or "Removed";
867
+ - an item with `isUnavailable`: "Unavailable", in insertion, replacement and
868
+ for an item committed after creation;
869
+ - an entry without `modelId`, or a blank ID: "Can't embed".
713
870
 
714
871
  ```tsx
715
872
  import type { RichTextEmbedItem, RichTextEmbedSource, RichTextEmbedSources } from "@namroodinc/liquid-editorial";
@@ -721,7 +878,7 @@ export function embeddedResources(
721
878
  ): RichTextEmbedSources {
722
879
  return {
723
880
  entry: {
724
- ...entries, // returned entry items also carry modelId
881
+ ...entries, // returned entry items carry modelId; give entries a resolveItem
725
882
  onCreate: (target) => createEntry((item) => {
726
883
  if (target.available()) { target.commit(item); }
727
884
  }),
@@ -743,9 +900,9 @@ a source `isCreating`, so the block lands where the writer is working; clear
743
900
  `isCreating` and re-enable together after committing. `isDialogHidden` suspends the
744
901
  picker without resetting its query or pages. While a picker is suspended or its
745
902
  source `isCreating`, Embed and Replace are disabled so another session cannot
746
- replace the pending target. Blocks of a kind whose picker is suspended also disable
747
- alignment, Edit and Remove and can't be dragged, so the pending replacement keeps
748
- its target.
903
+ replace the pending target. Blocks of a kind whose picker is suspended also
904
+ disable their Block actions trigger, closing an open menu, and can't be dragged,
905
+ so the pending replacement keeps its target.
749
906
 
750
907
  The bookmark follows document edits, including transactions plugins append.
751
908
  Insertion is anchored to the top-level block the cursor was in and lands at the
@@ -758,36 +915,47 @@ reason also ends it for good: the picker never reopens on its own and its target
758
915
  refuses later commits. `commit` always returns a boolean. Each Embed or Replace
759
916
  starts a fresh picker.
760
917
 
761
- Entry nodes store `{ type: "storyblock", attrs: { type: "entry", id: "article",
918
+ Entry nodes store `{ type: "contentBlock", attrs: { type: "entry", id: "article",
762
919
  entryId: "<resource ID>", align: "full" } }`; asset nodes store
763
- `{ type: "storyblock", attrs: { type: "asset", assetId: "<resource ID>", align:
920
+ `{ type: "contentBlock", attrs: { type: "asset", assetId: "<resource ID>", align:
764
921
  "full" } }`. Model IDs and resource IDs have separate meanings. Identifiers are
765
922
  opaque strings in the library; applications validate UUIDs/model formats and own
766
923
  model restrictions. Entry model IDs can be refreshed by the application's delivery
767
924
  serializer without changing the saved parent document.
768
925
 
926
+ Documents saved by 0.14.0 and earlier store the same attributes under
927
+ `type: "storyblock"` and in `data-storyblock*` HTML attributes. RichTextEditor
928
+ and FormEditor validation read them as content blocks without reporting a
929
+ change; the writer's next edit saves the current names. Applications that
930
+ validate, render or sanitize stored rich text must accept both forms until they
931
+ migrate stored documents by renaming the node type or attribute prefix.
932
+
769
933
  Blocks are atomic, draggable and selectable. Insert follows the cursor's top-level
770
- block; replacement stays within the same kind and retains alignment. Left and
934
+ block, including when the caret is in a table cell. Replacement stays within
935
+ the same kind and retains alignment. Left and
771
936
  right blocks occupy 62% of the writing width and let text wrap around them. Below
772
937
  32rem they use the full writing width. Drag the grip and kind label to move a
773
938
  block. Select a block with the arrow keys in the editor and press Tab to reach its
774
- `Block actions for {item title}` button. Opening it focuses the current
775
- alignment. Tab moves through the dialog and Escape returns focus to the trigger.
776
- Alignment changes keep the dialog open. Edit, Replace and Remove close it. Remove
777
- deletes the block from the document and returns the caret to that position.
939
+ `Block actions for {item title}` button. It opens the shared Menu, named the
940
+ same, with a visible Alignment label above the icon-only radio items (Align left, Full width, Align
941
+ right), then Edit, Replace and Remove from field. Opening it focuses the current
942
+ alignment and the arrow keys walk the items. Tab closes it and continues after the
943
+ editor; Shift+Tab and Escape return focus to the trigger. Alignment changes keep
944
+ the menu open. Edit, Replace and Remove close it. Remove deletes the block from
945
+ the document and returns the caret to that position.
778
946
 
779
947
  Standard blocks have a primary-tinted title bar. Pass `tone: "draft"` and
780
948
  publication guidance in the picker item’s `metadata` to show a warning bar and
781
949
  note. Missing blocks have a danger bar and a solid danger kind label. Selection
782
950
  deepens each bar in its own tone and adds a focus outline. A missing block offers
783
- “Choose another entry…” or “Choose another asset…” when replacement is available.
951
+ “Choose another entry” or “Choose another asset” when replacement is available.
784
952
  A read-only block shows its kind and body, and its bar does not change on
785
953
  hover. Enter and gap-cursor editing let
786
954
  writers continue after a final block. Selecting a block leaves the document intact.
787
955
 
788
956
  A block alone satisfies required rich text. Syntax errors are rejected by both
789
957
  RichTextEditor and FormEditor validation. Resolved row data is never serialized;
790
- HTML uses reference-only data-storyblock attributes and round-trips through the
958
+ HTML uses reference-only data-content-block attributes and round-trips through the
791
959
  same schema. Node views share the selected-item cache's loading, stale-refresh and
792
960
  retry behavior; null or removed-tone items, static ones included, show a missing
793
961
  state. A static item takes precedence over a cached lookup, so supplying one
@@ -801,8 +969,9 @@ sources through stable wrappers, so sources built on every render don't re-rende
801
969
  every block; keep static `items` arrays stable. Resolution,
802
970
  selection, expansion and linked-item edits emit no document change on their own.
803
971
 
804
- The architecture remains `FormEditor → RichTextEditor → storyblock node views`,
972
+ The architecture remains `FormEditor → RichTextEditor → content block node views`,
805
973
  with both ordinary pickers and editor dialogs using `usePickerSession` (search,
806
974
  paging, selection rules, edit dismissal and the shared PickerDialog props),
807
- PickerDialog, EntryRow and the selected-item reader. Applications supply data and
808
- resource editors.
975
+ PickerDialog, EntryRow and the selected-item reader. Remote embed batches that
976
+ have a resolver use search pages for the results and the selected-item reader
977
+ for rechecks. Applications supply data and resource editors.
@@ -1,7 +1,8 @@
1
+ import { type ReactNode } from "react";
1
2
  import type { RichTextEmbedSources } from "../RichTextEditor/index.cjs";
2
3
  import { type EntryItem, type EntryPickerSource } from "../EntryPicker/index.cjs";
3
4
  import type { FieldRenderProps } from "../Field/index.cjs";
4
- import { type FormField, type FormFieldValue } from "./model.cjs";
5
+ import { type FieldOf, type FormField, type FormFieldValue } from "./model.cjs";
5
6
  type Accessibility = FieldRenderProps;
6
7
  export interface ControlProps<F extends FormField> {
7
8
  field: F;
@@ -11,6 +12,14 @@ export interface ControlProps<F extends FormField> {
11
12
  accessibility: Omit<Accessibility, "required">;
12
13
  onChange: (value: FormFieldValue | undefined) => void;
13
14
  }
15
+ export type RichTextControlProps = ControlProps<FieldOf<"richText">> & {
16
+ embeds?: RichTextEmbedSources;
17
+ };
18
+ /**
19
+ * Renders the rich-text adapter, supplied by FormEditor's entry point. Controls
20
+ * never import RichTextEditor, so RichTextEditor can render forms of its own.
21
+ */
22
+ export declare const RichTextControlContext: import("react").Context<((props: RichTextControlProps) => ReactNode) | null>;
14
23
  interface FormControlProps {
15
24
  embeds?: RichTextEmbedSources;
16
25
  field: FormField;
@@ -23,6 +32,6 @@ interface FormControlProps {
23
32
  accessibility: Accessibility;
24
33
  onChange: (value: FormFieldValue | undefined) => void;
25
34
  }
26
- export declare function FormControl({ embeds, field, stored, selected, items, source, isDisabled, accessibility: { required, ...accessibility }, onChange, }: FormControlProps): import("react").JSX.Element;
35
+ export declare function FormControl({ embeds, field, stored, selected, items, source, isDisabled, accessibility: { required, ...accessibility }, onChange, }: FormControlProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
27
36
  export {};
28
37
  //# sourceMappingURL=control.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"control.d.cts","sourceRoot":"","sources":["../../../src/components/FormEditor/control.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAe,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAQjD,OAAO,EAML,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,SAAS,CAAC;AAcjB,KAAK,aAAa,GAAG,gBAAgB,CAAC;AAEtC,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,SAAS;IAC/C,KAAK,EAAE,CAAC,CAAC;IACT,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;IAC/C,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC;CACvD;AA2FD,UAAU,gBAAgB;IACxB,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC;IACnC,mEAAmE;IACnE,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC;CACvD;AAED,wBAAgB,WAAW,CAAC,E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AoB,CAAC;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC;IACnC,mEAAmE;IACnE,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC;CACvD;AAED,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,KAAK,EACL,MAAM,EACN,QAAQ,EACR,KAAK,EACL,MAAM,EACN,UAAU,EACV,aAAa,EAAE,EAAE,QAAQ,EAAE,GAAG,aAAa,EAAE,EAC7C,QAAQ,GACT,EAAE,gBAAgB,+TA+FlB"}
@@ -1,7 +1,8 @@
1
+ import { type ReactNode } from "react";
1
2
  import type { RichTextEmbedSources } from "../RichTextEditor/index.js";
2
3
  import { type EntryItem, type EntryPickerSource } from "../EntryPicker/index.js";
3
4
  import type { FieldRenderProps } from "../Field/index.js";
4
- import { type FormField, type FormFieldValue } from "./model.js";
5
+ import { type FieldOf, type FormField, type FormFieldValue } from "./model.js";
5
6
  type Accessibility = FieldRenderProps;
6
7
  export interface ControlProps<F extends FormField> {
7
8
  field: F;
@@ -11,6 +12,14 @@ export interface ControlProps<F extends FormField> {
11
12
  accessibility: Omit<Accessibility, "required">;
12
13
  onChange: (value: FormFieldValue | undefined) => void;
13
14
  }
15
+ export type RichTextControlProps = ControlProps<FieldOf<"richText">> & {
16
+ embeds?: RichTextEmbedSources;
17
+ };
18
+ /**
19
+ * Renders the rich-text adapter, supplied by FormEditor's entry point. Controls
20
+ * never import RichTextEditor, so RichTextEditor can render forms of its own.
21
+ */
22
+ export declare const RichTextControlContext: import("react").Context<((props: RichTextControlProps) => ReactNode) | null>;
14
23
  interface FormControlProps {
15
24
  embeds?: RichTextEmbedSources;
16
25
  field: FormField;
@@ -23,6 +32,6 @@ interface FormControlProps {
23
32
  accessibility: Accessibility;
24
33
  onChange: (value: FormFieldValue | undefined) => void;
25
34
  }
26
- export declare function FormControl({ embeds, field, stored, selected, items, source, isDisabled, accessibility: { required, ...accessibility }, onChange, }: FormControlProps): import("react").JSX.Element;
35
+ export declare function FormControl({ embeds, field, stored, selected, items, source, isDisabled, accessibility: { required, ...accessibility }, onChange, }: FormControlProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
27
36
  export {};
28
37
  //# sourceMappingURL=control.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../../src/components/FormEditor/control.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAe,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAQjD,OAAO,EAML,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,SAAS,CAAC;AAcjB,KAAK,aAAa,GAAG,gBAAgB,CAAC;AAEtC,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,SAAS;IAC/C,KAAK,EAAE,CAAC,CAAC;IACT,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;IAC/C,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC;CACvD;AA2F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AQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;IAC/C,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC;CACvD;AAED,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG;IACrE,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,mCACxB,oBAAoB,KAAK,SAAS,SACtC,CAAC;AA2FR,UAAU,gBAAgB;IACxB,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC;IACnC,mEAAmE;IACnE,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC;CACvD;AAED,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,KAAK,EACL,MAAM,EACN,QAAQ,EACR,KAAK,EACL,MAAM,EACN,UAAU,EACV,aAAa,EAAE,EAAE,QAAQ,EAAE,GAAG,aAAa,EAAE,EAC7C,QAAQ,GACT,EAAE,gBAAgB,+TA+FlB"}
@@ -0,0 +1,33 @@
1
+ import { type HTMLAttributes } from "react";
2
+ import type { RichTextEmbedSources } from "../RichTextEditor/index.cjs";
3
+ import type { EntryItem, EntryPickerSource } from "../EntryPicker/index.cjs";
4
+ import type { GridColumns } from "../Grid/index.cjs";
5
+ import { type FormSchema, type FormErrors, type FormValues } from "./model.cjs";
6
+ export interface FormChange {
7
+ fieldId: string;
8
+ }
9
+ export interface FormEditorProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> {
10
+ schema: FormSchema;
11
+ value?: FormValues;
12
+ defaultValue?: FormValues;
13
+ onValueChange?: (values: FormValues, change: FormChange) => void;
14
+ /** Available assets or entries, keyed by field ID. Loading belongs to the app. */
15
+ pickerItems?: Record<string, EntryItem[]>;
16
+ pickerSources?: Record<string, EntryPickerSource>;
17
+ embedSources?: Record<string, RichTextEmbedSources>;
18
+ /** App-provided messages take precedence over built-in validation. */
19
+ errors?: FormErrors;
20
+ isDisabled?: boolean;
21
+ showAllErrors?: boolean;
22
+ /** Columns at the widest. The form drops one whenever a field would be narrower than `minColumnWidth`. */
23
+ columns?: GridColumns;
24
+ /** Narrowest a field may get before the form drops a column. */
25
+ minColumnWidth?: string;
26
+ }
27
+ /**
28
+ * FormEditor without a rich-text control of its own: `index.tsx` supplies
29
+ * RichTextEditor through context. RichTextEditor's own dialogs render this, so
30
+ * the editor never imports the FormEditor that renders it.
31
+ */
32
+ export declare function FormEditorCore({ schema, value, defaultValue, onValueChange, pickerItems, pickerSources, embedSources, errors, isDisabled, showAllErrors, columns, minColumnWidth, className, style, ...rest }: FormEditorProps): import("react").JSX.Element;
33
+ //# sourceMappingURL=form.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.d.cts","sourceRoot":"","sources":["../../../src/components/FormEditor/form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAQL,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,UAAU,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,aAAa,CAAC;AAErB,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,cAAc,CAAC,cAAc,CAAC,EAC9B,cAAc,GAAG,UAAU,CAC5B;IACC,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACjE,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IACpD,sEAAsE;IACtE,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0GAA0G;IAC1G,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAwED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,KAAK,EACL,YAAiB,EACjB,aAAa,EACb,WAAgB,EAChB,aAAkB,EAClB,YAAiB,EACjB,MAAW,EACX,UAAkB,EAClB,aAAqB,EACrB,OAAW,EACX,cAAwB,EACxB,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,+BAiFjB"}
@@ -0,0 +1,33 @@
1
+ import { type HTMLAttributes } from "react";
2
+ import type { RichTextEmbedSources } from "../RichTextEditor/index.js";
3
+ import type { EntryItem, EntryPickerSource } from "../EntryPicker/index.js";
4
+ import type { GridColumns } from "../Grid/index.js";
5
+ import { type FormSchema, type FormErrors, type FormValues } from "./model.js";
6
+ export interface FormChange {
7
+ fieldId: string;
8
+ }
9
+ export interface FormEditorProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> {
10
+ schema: FormSchema;
11
+ value?: FormValues;
12
+ defaultValue?: FormValues;
13
+ onValueChange?: (values: FormValues, change: FormChange) => void;
14
+ /** Available assets or entries, keyed by field ID. Loading belongs to the app. */
15
+ pickerItems?: Record<string, EntryItem[]>;
16
+ pickerSources?: Record<string, EntryPickerSource>;
17
+ embedSources?: Record<string, RichTextEmbedSources>;
18
+ /** App-provided messages take precedence over built-in validation. */
19
+ errors?: FormErrors;
20
+ isDisabled?: boolean;
21
+ showAllErrors?: boolean;
22
+ /** Columns at the widest. The form drops one whenever a field would be narrower than `minColumnWidth`. */
23
+ columns?: GridColumns;
24
+ /** Narrowest a field may get before the form drops a column. */
25
+ minColumnWidth?: string;
26
+ }
27
+ /**
28
+ * FormEditor without a rich-text control of its own: `index.tsx` supplies
29
+ * RichTextEditor through context. RichTextEditor's own dialogs render this, so
30
+ * the editor never imports the FormEditor that renders it.
31
+ */
32
+ export declare function FormEditorCore({ schema, value, defaultValue, onValueChange, pickerItems, pickerSources, embedSources, errors, isDisabled, showAllErrors, columns, minColumnWidth, className, style, ...rest }: FormEditorProps): import("react").JSX.Element;
33
+ //# sourceMappingURL=form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/FormEditor/form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C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require("../Field/index.cjs"),require("../Container/index.cjs");const e=require("../../chunks/FormEditor-BGzE-rqk.cjs");exports.FormEditor=e.t,exports.validateFormValues=e.n;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/RichTextEditor-BgfeOrEe.cjs"),t=require("../../chunks/FormEditor-DjUz7qQo.cjs");exports.FormEditor=t.t,exports.validateFormValues=e.i;
@@ -1,31 +1,7 @@
1
- import { type HTMLAttributes } from "react";
2
- import type { RichTextEmbedSources } from "../RichTextEditor/index.cjs";
3
- import type { EntryItem, EntryPickerSource } from "../EntryPicker/index.cjs";
4
- import type { GridColumns } from "../Grid/index.cjs";
5
- import { type FormSchema, type FormErrors, type FormValues } from "./model.cjs";
1
+ import { type FormEditorProps } from "./form.cjs";
6
2
  export { validateFormValues } from "./model.cjs";
7
3
  export type { AssetValue, FormField, FormDivider, FormItem, FormSchema, FormErrors, FormFieldValue, FormValues, ReferenceValue, } from "./model.cjs";
8
- export interface FormChange {
9
- fieldId: string;
10
- }
11
- export interface FormEditorProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> {
12
- schema: FormSchema;
13
- value?: FormValues;
14
- defaultValue?: FormValues;
15
- onValueChange?: (values: FormValues, change: FormChange) => void;
16
- /** Available assets or entries, keyed by field ID. Loading belongs to the app. */
17
- pickerItems?: Record<string, EntryItem[]>;
18
- pickerSources?: Record<string, EntryPickerSource>;
19
- embedSources?: Record<string, RichTextEmbedSources>;
20
- /** App-provided messages take precedence over built-in validation. */
21
- errors?: FormErrors;
22
- isDisabled?: boolean;
23
- showAllErrors?: boolean;
24
- /** Columns at the widest. The form drops one whenever a field would be narrower than `minColumnWidth`. */
25
- columns?: GridColumns;
26
- /** Narrowest a field may get before the form drops a column. */
27
- minColumnWidth?: string;
28
- }
4
+ export type { FormChange, FormEditorProps } from "./form.cjs";
29
5
  /** Ordered form controls. Loading, submission, and persistence belong to the app. */
30
- export declare function FormEditor({ schema, value, defaultValue, onValueChange, pickerItems, pickerSources, embedSources, errors, isDisabled, showAllErrors, columns, minColumnWidth, className, style, ...rest }: FormEditorProps): import("react").JSX.Element;
6
+ export declare function FormEditor(props: FormEditorProps): import("react").JSX.Element;
31
7
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/FormEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAQL,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,UAAU,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,YAAY,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,cAAc,GACf,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,cAAc,CAAC,cAAc,CAAC,EAC9B,cAAc,GAAG,UAAU,CAC5B;IACC,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACjE,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IACpD,sEAAsE;IACtE,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0GAA0G;IAC1G,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAwED,qFAAqF;AACrF,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,KAAK,EACL,YAAiB,EACjB,aAAa,EACb,WAAgB,EAChB,aAAkB,EAClB,YAAiB,EACjB,MAAW,EACX,UAAkB,EAClB,aAAqB,EACrB,OAAW,EACX,cAAwB,EACxB,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,+BAiFjB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/FormEditor/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,YAAY,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAE1D,qFAAqF;AACrF,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,+BAMhD"}
@@ -1,31 +1,7 @@
1
- import { type HTMLAttributes } from "react";
2
- import type { RichTextEmbedSources } from "../RichTextEditor/index.js";
3
- import type { EntryItem, EntryPickerSource } from "../EntryPicker/index.js";
4
- import type { GridColumns } from "../Grid/index.js";
5
- import { type FormSchema, type FormErrors, type FormValues } from "./model.js";
1
+ import { type FormEditorProps } from "./form.js";
6
2
  export { validateFormValues } from "./model.js";
7
3
  export type { AssetValue, FormField, FormDivider, FormItem, FormSchema, FormErrors, FormFieldValue, FormValues, ReferenceValue, } from "./model.js";
8
- export interface FormChange {
9
- fieldId: string;
10
- }
11
- export interface FormEditorProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> {
12
- schema: FormSchema;
13
- value?: FormValues;
14
- defaultValue?: FormValues;
15
- onValueChange?: (values: FormValues, change: FormChange) => void;
16
- /** Available assets or entries, keyed by field ID. Loading belongs to the app. */
17
- pickerItems?: Record<string, EntryItem[]>;
18
- pickerSources?: Record<string, EntryPickerSource>;
19
- embedSources?: Record<string, RichTextEmbedSources>;
20
- /** App-provided messages take precedence over built-in validation. */
21
- errors?: FormErrors;
22
- isDisabled?: boolean;
23
- showAllErrors?: boolean;
24
- /** Columns at the widest. The form drops one whenever a field would be narrower than `minColumnWidth`. */
25
- columns?: GridColumns;
26
- /** Narrowest a field may get before the form drops a column. */
27
- minColumnWidth?: string;
28
- }
4
+ export type { FormChange, FormEditorProps } from "./form.js";
29
5
  /** Ordered form controls. Loading, submission, and persistence belong to the app. */
30
- export declare function FormEditor({ schema, value, defaultValue, onValueChange, pickerItems, pickerSources, embedSources, errors, isDisabled, showAllErrors, columns, minColumnWidth, className, style, ...rest }: FormEditorProps): import("react").JSX.Element;
6
+ export declare function FormEditor(props: FormEditorProps): import("react").JSX.Element;
31
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,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,EACzB,MAAM,EACN,KAAK,EACL,YAAiB,EACjB,aAAa,EACb,WAAgB,EAChB,aAAkB,EAClB,YAAiB,EACjB,MAAW,EACX,UAAkB,EAClB,aAAqB,EACrB,OAAW,EACX,cAAwB,EACxB,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,+BAiFjB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormEditor/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,YAAY,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAE1D,qFAAqF;AACrF,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,+BAMhD"}
@@ -1,3 +1,3 @@
1
- import "../Field/index.js";
2
- import "../Container/index.js";
3
- export { t as FormEditor, n as validateFormValues } from "../../chunks/FormEditor-ChH4e5sB.js";
1
+ import { i as e } from "../../chunks/RichTextEditor-CS2ED0HP.js";
2
+ import { t } from "../../chunks/FormEditor-BHVJG23r.js";
3
+ export { t as FormEditor, e as validateFormValues };
@@ -57,6 +57,8 @@ export type FormField = FormFieldBase & (({
57
57
  } | {
58
58
  type: "richText";
59
59
  expandedWidth?: RichTextEditorExpandedWidth;
60
+ /** Offer Insert table and accept table nodes; defaults to true. */
61
+ tables?: boolean;
60
62
  autoFocus?: never;
61
63
  multiple?: never;
62
64
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.cts","sourceRoot":"","sources":["../../../src/components/FormEditor/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC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