@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
@@ -0,0 +1,32 @@
1
+ import type { IconName } from "../Icon/icons.cjs";
2
+ export declare const contentBlockFrameClass = "ds-content-block ds-field-surface";
3
+ export interface ContentBlockAction {
4
+ label: string;
5
+ icon: IconName;
6
+ run: () => void;
7
+ disabled?: boolean;
8
+ description?: string;
9
+ tone?: "danger";
10
+ inlineIcon?: boolean;
11
+ checked?: boolean;
12
+ }
13
+ export interface ContentBlockActionGroup {
14
+ label?: string;
15
+ /** Shown under the label and read with the group's disabled actions. */
16
+ description?: string;
17
+ choices?: boolean;
18
+ keepOpen?: boolean;
19
+ separate?: boolean;
20
+ actions: readonly ContentBlockAction[];
21
+ }
22
+ export declare function ContentBlockBar({ kind, meta, isSelected, isDisabled, isLocked, menuLabel, actions, onSelect, }: {
23
+ kind: string;
24
+ meta?: string;
25
+ isSelected: boolean;
26
+ isDisabled: boolean;
27
+ isLocked?: boolean;
28
+ menuLabel: string;
29
+ actions: readonly ContentBlockActionGroup[] | ((rtl: boolean) => readonly ContentBlockActionGroup[]);
30
+ onSelect: () => void;
31
+ }): import("react").JSX.Element;
32
+ //# sourceMappingURL=content-block-frame.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-block-frame.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/content-block-frame.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,eAAO,MAAM,sBAAsB,sCAAsC,CAAC;AAE1E,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,EAAE,MAAM,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACxC;AAkJD,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,UAAU,EACV,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EACL,SAAS,uBAAuB,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,SAAS,uBAAuB,EAAE,CAAC,CAAC;IAC9F,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,+BA0EA"}
@@ -0,0 +1,32 @@
1
+ import type { IconName } from "../Icon/icons.js";
2
+ export declare const contentBlockFrameClass = "ds-content-block ds-field-surface";
3
+ export interface ContentBlockAction {
4
+ label: string;
5
+ icon: IconName;
6
+ run: () => void;
7
+ disabled?: boolean;
8
+ description?: string;
9
+ tone?: "danger";
10
+ inlineIcon?: boolean;
11
+ checked?: boolean;
12
+ }
13
+ export interface ContentBlockActionGroup {
14
+ label?: string;
15
+ /** Shown under the label and read with the group's disabled actions. */
16
+ description?: string;
17
+ choices?: boolean;
18
+ keepOpen?: boolean;
19
+ separate?: boolean;
20
+ actions: readonly ContentBlockAction[];
21
+ }
22
+ export declare function ContentBlockBar({ kind, meta, isSelected, isDisabled, isLocked, menuLabel, actions, onSelect, }: {
23
+ kind: string;
24
+ meta?: string;
25
+ isSelected: boolean;
26
+ isDisabled: boolean;
27
+ isLocked?: boolean;
28
+ menuLabel: string;
29
+ actions: readonly ContentBlockActionGroup[] | ((rtl: boolean) => readonly ContentBlockActionGroup[]);
30
+ onSelect: () => void;
31
+ }): import("react").JSX.Element;
32
+ //# sourceMappingURL=content-block-frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-block-frame.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/content-block-frame.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,eAAO,MAAM,sBAAsB,sCAAsC,CAAC;AAE1E,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,EAAE,MAAM,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACxC;AAkJD,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,UAAU,EACV,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EACL,SAAS,uBAAuB,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,SAAS,uBAAuB,EAAE,CAAC,CAAC;IAC9F,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,+BA0EA"}
@@ -0,0 +1,3 @@
1
+ import { type NodeViewProps } from "@tiptap/react";
2
+ export declare function ContentBlockView({ node, selected, editor, getPos, updateAttributes, }: NodeViewProps): import("react").JSX.Element;
3
+ //# sourceMappingURL=content-block-view.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-block-view.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/content-block-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAqGpE,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,MAAM,EACN,gBAAgB,GACjB,EAAE,aAAa,+BA6Gf"}
@@ -0,0 +1,3 @@
1
+ import { type NodeViewProps } from "@tiptap/react";
2
+ export declare function ContentBlockView({ node, selected, editor, getPos, updateAttributes, }: NodeViewProps): import("react").JSX.Element;
3
+ //# sourceMappingURL=content-block-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-block-view.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/content-block-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAqGpE,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,MAAM,EACN,gBAAgB,GACjB,EAAE,aAAa,+BA6Gf"}
@@ -0,0 +1,24 @@
1
+ import { Node, type JSONContent } from "@tiptap/react";
2
+ export type ContentBlockAlignment = "left" | "full" | "right";
3
+ export type ContentBlockIdentity = {
4
+ type: "entry";
5
+ id: string;
6
+ entryId: string;
7
+ } | {
8
+ type: "asset";
9
+ assetId: string;
10
+ };
11
+ export type ContentBlockAttributes = ContentBlockIdentity & {
12
+ align: ContentBlockAlignment;
13
+ };
14
+ export declare function validContentBlock(attrs: Record<string, unknown>): boolean;
15
+ /**
16
+ * Rename legacy `storyblock` nodes to `contentBlock`. Their attributes are
17
+ * unchanged. Returns the same object when nothing needed renaming.
18
+ */
19
+ export declare function upgradeLegacyBlocks<T extends JSONContent>(node: T): T;
20
+ /** Strip schema defaults belonging to the other kind from the external document. */
21
+ export declare function contentBlockDocument<T extends JSONContent>(node: T): T;
22
+ /** Schema and HTML representation contain references only, never resolved item data. */
23
+ export declare const ContentBlock: Node<any, any>;
24
+ //# sourceMappingURL=content-block.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-block.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/content-block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAExE,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAC9D,MAAM,MAAM,oBAAoB,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AACtF,MAAM,MAAM,sBAAsB,GAAG,oBAAoB,GAAG;IAAE,KAAK,EAAE,qBAAqB,CAAA;CAAE,CAAC;AAO7F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAQzE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAYrE;AAED,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAgBtE;AAWD,wFAAwF;AACxF,eAAO,MAAM,YAAY,gBA8CvB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { Node, type JSONContent } from "@tiptap/react";
2
+ export type ContentBlockAlignment = "left" | "full" | "right";
3
+ export type ContentBlockIdentity = {
4
+ type: "entry";
5
+ id: string;
6
+ entryId: string;
7
+ } | {
8
+ type: "asset";
9
+ assetId: string;
10
+ };
11
+ export type ContentBlockAttributes = ContentBlockIdentity & {
12
+ align: ContentBlockAlignment;
13
+ };
14
+ export declare function validContentBlock(attrs: Record<string, unknown>): boolean;
15
+ /**
16
+ * Rename legacy `storyblock` nodes to `contentBlock`. Their attributes are
17
+ * unchanged. Returns the same object when nothing needed renaming.
18
+ */
19
+ export declare function upgradeLegacyBlocks<T extends JSONContent>(node: T): T;
20
+ /** Strip schema defaults belonging to the other kind from the external document. */
21
+ export declare function contentBlockDocument<T extends JSONContent>(node: T): T;
22
+ /** Schema and HTML representation contain references only, never resolved item data. */
23
+ export declare const ContentBlock: Node<any, any>;
24
+ //# sourceMappingURL=content-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-block.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/content-block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAExE,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAC9D,MAAM,MAAM,oBAAoB,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AACtF,MAAM,MAAM,sBAAsB,GAAG,oBAAoB,GAAG;IAAE,KAAK,EAAE,qBAAqB,CAAA;CAAE,CAAC;AAO7F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAQzE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAYrE;AAED,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAgBtE;AAWD,wFAAwF;AACxF,eAAO,MAAM,YAAY,gBA8CvB,CAAC"}
@@ -1,16 +1,23 @@
1
1
  import { type JSONContent } from "@tiptap/react";
2
- import { Storyblock } from "./storyblock.cjs";
2
+ import { ContentBlock } from "./content-block.cjs";
3
3
  export type RichTextDocument = JSONContent & {
4
4
  type: "doc";
5
5
  };
6
6
  export declare const emptyDocument: RichTextDocument;
7
+ export declare const documentTable: import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any>;
8
+ export interface RichTextSchemaOptions {
9
+ /** Include table nodes. Defaults to true. */
10
+ tables?: boolean;
11
+ }
7
12
  /**
8
- * The shared schema's extensions. The editor passes its node-view variant of
9
- * `storyblock`; every call returns the same configured instances, so an editor
10
- * keeps the same extension identities across renders.
13
+ * The shared schema's extensions. The editor passes its node-view variants;
14
+ * validation and serialization can use the same schema without editor chrome.
11
15
  */
12
- export declare function richTextExtensions(storyblock?: typeof Storyblock): (import("@tiptap/core").Node<any, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-link").LinkOptions, any>)[];
13
- /** ProseMirror represents an empty writing surface with one empty paragraph. */
14
- export declare function normalizeDocument(document: RichTextDocument): RichTextDocument;
15
- export declare function documentError(value: unknown): string | undefined;
16
+ export declare function richTextExtensions(embedBlock?: typeof ContentBlock, { tables }?: RichTextSchemaOptions, table?: import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any>): (import("@tiptap/core").Node<any, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-link").LinkOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-table").TableKitOptions, any>)[];
17
+ /**
18
+ * The editor's reading of a stored document: legacy `storyblock` nodes become
19
+ * content blocks, and an empty writing surface holds one empty paragraph.
20
+ */
21
+ export declare function normalizeDocument(stored: RichTextDocument): RichTextDocument;
22
+ export declare function documentError(value: unknown, { tables }?: RichTextSchemaOptions): string | undefined;
16
23
  //# sourceMappingURL=document.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"document.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAE,UAAU,EAAmB,MAAM,cAAc,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAE7D,eAAO,MAAM,aAAa,EAAE,gBAAoE,CAAC;AAOjG;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,GAAE,OAAO,UAAuB,uNAE5E;AAID,gFAAgF;AAChF,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,gBAAgB,CAE9E;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CA4ChE"}
1
+ {"version":3,"file":"document.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAO7E,OAAO,EAAE,YAAY,EAA0C,MAAM,iBAAiB,CAAC;AAEvF,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAE7D,eAAO,MAAM,aAAa,EAAE,gBAAoE,CAAC;AA0DjG,eAAO,MAAM,aAAa,kFAgBQ,CAAC;AAGnC,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,GAAE,OAAO,YAA2B,EAC9C,EAAE,MAAa,EAAE,GAAE,qBAA0B,EAC7C,KAAK,mFAAgB,qYAKtB;AAOD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,CAG5E;AAED,wBAAgB,aAAa,CAC3B,KAAK,EAAE,OAAO,EACd,EAAE,MAAa,EAAE,GAAE,qBAA0B,GAC5C,MAAM,GAAG,SAAS,CA6CpB"}
@@ -1,16 +1,23 @@
1
1
  import { type JSONContent } from "@tiptap/react";
2
- import { Storyblock } from "./storyblock.js";
2
+ import { ContentBlock } from "./content-block.js";
3
3
  export type RichTextDocument = JSONContent & {
4
4
  type: "doc";
5
5
  };
6
6
  export declare const emptyDocument: RichTextDocument;
7
+ export declare const documentTable: import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any>;
8
+ export interface RichTextSchemaOptions {
9
+ /** Include table nodes. Defaults to true. */
10
+ tables?: boolean;
11
+ }
7
12
  /**
8
- * The shared schema's extensions. The editor passes its node-view variant of
9
- * `storyblock`; every call returns the same configured instances, so an editor
10
- * keeps the same extension identities across renders.
13
+ * The shared schema's extensions. The editor passes its node-view variants;
14
+ * validation and serialization can use the same schema without editor chrome.
11
15
  */
12
- export declare function richTextExtensions(storyblock?: typeof Storyblock): (import("@tiptap/core").Node<any, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-link").LinkOptions, any>)[];
13
- /** ProseMirror represents an empty writing surface with one empty paragraph. */
14
- export declare function normalizeDocument(document: RichTextDocument): RichTextDocument;
15
- export declare function documentError(value: unknown): string | undefined;
16
+ export declare function richTextExtensions(embedBlock?: typeof ContentBlock, { tables }?: RichTextSchemaOptions, table?: import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any>): (import("@tiptap/core").Node<any, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-link").LinkOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-table").TableKitOptions, any>)[];
17
+ /**
18
+ * The editor's reading of a stored document: legacy `storyblock` nodes become
19
+ * content blocks, and an empty writing surface holds one empty paragraph.
20
+ */
21
+ export declare function normalizeDocument(stored: RichTextDocument): RichTextDocument;
22
+ export declare function documentError(value: unknown, { tables }?: RichTextSchemaOptions): string | undefined;
16
23
  //# sourceMappingURL=document.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAE,UAAU,EAAmB,MAAM,cAAc,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAE7D,eAAO,MAAM,aAAa,EAAE,gBAAoE,CAAC;AAOjG;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,GAAE,OAAO,UAAuB,uNAE5E;AAID,gFAAgF;AAChF,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,gBAAgB,CAE9E;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CA4ChE"}
1
+ {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAO7E,OAAO,EAAE,YAAY,EAA0C,MAAM,iBAAiB,CAAC;AAEvF,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAE7D,eAAO,MAAM,aAAa,EAAE,gBAAoE,CAAC;AA0DjG,eAAO,MAAM,aAAa,kFAgBQ,CAAC;AAGnC,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,GAAE,OAAO,YAA2B,EAC9C,EAAE,MAAa,EAAE,GAAE,qBAA0B,EAC7C,KAAK,mFAAgB,qYAKtB;AAOD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,CAG5E;AAED,wBAAgB,aAAa,CAC3B,KAAK,EAAE,OAAO,EACd,EAAE,MAAa,EAAE,GAAE,qBAA0B,GAC5C,MAAM,GAAG,SAAS,CA6CpB"}
@@ -3,6 +3,11 @@ import type { SeedCopy } from "../EntryPicker/use-selected-items.cjs";
3
3
  import type { RichTextEmbedKind, RichTextEmbedSource } from "./embed-types.cjs";
4
4
  /** Whether a source can offer something to embed: choices to list, or one to create. */
5
5
  export declare function canEmbed(source: RichTextEmbedSource | undefined): boolean;
6
+ /**
7
+ * Whether a source's insertion stages a batch: always, when it has choices to
8
+ * list. A source that can only create offers one item, so it stays single.
9
+ */
10
+ export declare function canBatch(source: RichTextEmbedSource | undefined): boolean;
6
11
  /**
7
12
  * What a block's node view reads from its source. Callbacks are stable wrappers
8
13
  * over the latest source and the rest are plain values, so an application that
@@ -1 +1 @@
1
- {"version":3,"file":"embed-context.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/embed-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAE5E,wFAAwF;AACxF,wBAAgB,QAAQ,CAAC,MAAM,EAAE,mBAAmB,GAAG,SAAS,WAE/D;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAC3E,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,mDAAmD;IACnD,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACxC;AAED,eAAO,MAAM,YAAY;WAChB,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;cAChD,OAAO;IACjB,mFAAmF;UAC7E,OAAO;aACJ,CAAC,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI;IAC5D;;;OAGG;eACQ,MAAM;IACjB,qFAAqF;UAC/E,CAAC,IAAI,EAAE,iBAAiB,EAAE,EAAE,EAAE,MAAM,KAAK,QAAQ,GAAG,SAAS;IACnE,gFAAgF;gBACpE,CAAC,IAAI,EAAE,iBAAiB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI;EASzE,CAAC"}
1
+ {"version":3,"file":"embed-context.d.c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AI;EASzE,CAAC"}
@@ -3,6 +3,11 @@ import type { SeedCopy } from "../EntryPicker/use-selected-items.js";
3
3
  import type { RichTextEmbedKind, RichTextEmbedSource } from "./embed-types.js";
4
4
  /** Whether a source can offer something to embed: choices to list, or one to create. */
5
5
  export declare function canEmbed(source: RichTextEmbedSource | undefined): boolean;
6
+ /**
7
+ * Whether a source's insertion stages a batch: always, when it has choices to
8
+ * list. A source that can only create offers one item, so it stays single.
9
+ */
10
+ export declare function canBatch(source: RichTextEmbedSource | undefined): boolean;
6
11
  /**
7
12
  * What a block's node view reads from its source. Callbacks are stable wrappers
8
13
  * over the latest source and the rest are plain values, so an application that
@@ -1 +1 @@
1
- {"version":3,"file":"embed-context.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/embed-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAE5E,wFAAwF;AACxF,wBAAgB,QAAQ,CAAC,MAAM,EAAE,mBAAmB,GAAG,SAAS,WAE/D;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAC3E,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,mDAAmD;IACnD,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACxC;AAED,eAAO,MAAM,YAAY;WAChB,OAAO,CAAC,MAAM,CAAC,iBAAiB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,YAAY;WAChB,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;cAChD,OAAO;IACjB,mFAAmF;UAC7E,OAAO;aACJ,CAAC,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI;IAC5D;;;OAGG;eACQ,MAAM;IACjB,qFAAqF;UAC/E,CAAC,IAAI,EAAE,iBAAiB,EAAE,EAAE,EAAE,MAAM,KAAK,QAAQ,GAAG,SAAS;IACnE,gFAAgF;gBACpE,CAAC,IAAI,EAAE,iBAAiB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI;EASzE,CAAC"}
@@ -9,10 +9,12 @@ export interface RichTextEmbedTarget {
9
9
  commit: (item: RichTextEmbedItem) => boolean;
10
10
  }
11
11
  /**
12
- * A block holds one item, so the picker always chooses one: EntryPicker's
13
- * `mode` and `max` don't apply. Embedding is offered when the source can list
14
- * choices (`loadPage` or `items`) or create one (`onCreate`); a source with
15
- * only `resolveItem` displays existing blocks.
12
+ * Embedding is offered when the source can list choices (`loadPage` or `items`)
13
+ * or create one (`onCreate`); a source with only `resolveItem` displays existing blocks.
14
+ * Insertion from listed choices always stages any number of items and inserts
15
+ * them together; replacement and creation choose one. EntryPicker's `mode` and
16
+ * `max` don't apply. Give a remote source `resolveItem`, so a refresh can
17
+ * deselect staged items no longer available.
16
18
  */
17
19
  export interface RichTextEmbedSource extends Omit<EntryPickerSource, "onCreate" | "mode" | "max"> {
18
20
  /** Static choices, searched by title and keywords, when there is no `loadPage`. */
@@ -1 +1 @@
1
- {"version":3,"file":"embed-types.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/embed-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,6EAA6E;AAC7E,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,OAAO,CAAC,EAAE,MAA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AM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,oBAAoB,CAAC"}
@@ -9,10 +9,12 @@ export interface RichTextEmbedTarget {
9
9
  commit: (item: RichTextEmbedItem) => boolean;
10
10
  }
11
11
  /**
12
- * A block holds one item, so the picker always chooses one: EntryPicker's
13
- * `mode` and `max` don't apply. Embedding is offered when the source can list
14
- * choices (`loadPage` or `items`) or create one (`onCreate`); a source with
15
- * only `resolveItem` displays existing blocks.
12
+ * Embedding is offered when the source can list choices (`loadPage` or `items`)
13
+ * or create one (`onCreate`); a source with only `resolveItem` displays existing blocks.
14
+ * Insertion from listed choices always stages any number of items and inserts
15
+ * them together; replacement and creation choose one. EntryPicker's `mode` and
16
+ * `max` don't apply. Give a remote source `resolveItem`, so a refresh can
17
+ * deselect staged items no longer available.
16
18
  */
17
19
  export interface RichTextEmbedSource extends Omit<EntryPickerSource, "onCreate" | "mode" | "max"> {
18
20
  /** Static choices, searched by title and keywords, when there is no `loadPage`. */
@@ -1 +1 @@
1
- {"version":3,"file":"embed-types.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/embed-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,6EAA6E;AAC7E,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,iFAAiF;IACjF,MAAM,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,OAAO,CAAC;CAC9C;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;IAC/F,mFAAmF;IACnF,KAAK,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAClD;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"embed-types.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/embed-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,6EAA6E;AAC7E,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,iFAAiF;IACjF,MAAM,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,OAAO,CAAC;CAC9C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;IAC/F,mFAAmF;IACnF,KAAK,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAClD;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../Field/index.cjs");const e=require("../../chunks/RichTextEditor-DU9CVeRD.cjs");exports.RichTextEditor=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/RichTextEditor-BgfeOrEe.cjs");exports.RichTextEditor=e.t;
@@ -4,7 +4,7 @@ import { type RichTextDocument } from "./document.cjs";
4
4
  import type { FieldBinding } from "../Field/index.cjs";
5
5
  import type { RichTextEmbedSources } from "./embed-types.cjs";
6
6
  export type { RichTextEmbedItem, RichTextEmbedSource, RichTextEmbedSources, RichTextEmbedTarget, } from "./embed-types.cjs";
7
- export type { StoryblockAlignment, StoryblockIdentity, StoryblockAttributes } from "./storyblock.cjs";
7
+ export type { ContentBlockAlignment, ContentBlockIdentity, ContentBlockAttributes, } from "./content-block.cjs";
8
8
  export type RichTextEditorSize = "sm" | "md" | "lg";
9
9
  export type { RichTextDocument } from "./document.cjs";
10
10
  export type { RichTextEditorExpandedWidth } from "./expansion.cjs";
@@ -21,6 +21,14 @@ interface RichTextEditorCommonProps extends FieldBinding {
21
21
  /** Extra controls appended to the toolbar, e.g. a word count. */
22
22
  toolbarExtra?: ReactNode;
23
23
  embeds?: RichTextEmbedSources;
24
+ /**
25
+ * Offer Insert table and accept table nodes. Defaults to true. With false, a
26
+ * pasted table keeps only its text, and a JSON value with tables is unsupported
27
+ * content. Changing it recreates the editor from its current document,
28
+ * unfocused, and closes an open embed picker. An uncontrolled HTML table is
29
+ * restored when tables are re-enabled if the table-free editor reported no change.
30
+ */
31
+ tables?: boolean;
24
32
  isRequired?: boolean;
25
33
  }
26
34
  export type RichTextEditorProps = RichTextEditorCommonProps & ({
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAoBf,OAAO,EAAsB,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAKL,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AACpB,OA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C,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,GACzD,CACI;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GAC7F;IACE,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACjD,CACJ,CAAC;AAocJ,eAAO,MAAM,cAAc,gHAiQ1B,CAAC"}
@@ -4,7 +4,7 @@ import { type RichTextDocument } from "./document.js";
4
4
  import type { FieldBinding } from "../Field/index.js";
5
5
  import type { RichTextEmbedSources } from "./embed-types.js";
6
6
  export type { RichTextEmbedItem, RichTextEmbedSource, RichTextEmbedSources, RichTextEmbedTarget, } from "./embed-types.js";
7
- export type { StoryblockAlignment, StoryblockIdentity, StoryblockAttributes } from "./storyblock.js";
7
+ export type { ContentBlockAlignment, ContentBlockIdentity, ContentBlockAttributes, } from "./content-block.js";
8
8
  export type RichTextEditorSize = "sm" | "md" | "lg";
9
9
  export type { RichTextDocument } from "./document.js";
10
10
  export type { RichTextEditorExpandedWidth } from "./expansion.js";
@@ -21,6 +21,14 @@ interface RichTextEditorCommonProps extends FieldBinding {
21
21
  /** Extra controls appended to the toolbar, e.g. a word count. */
22
22
  toolbarExtra?: ReactNode;
23
23
  embeds?: RichTextEmbedSources;
24
+ /**
25
+ * Offer Insert table and accept table nodes. Defaults to true. With false, a
26
+ * pasted table keeps only its text, and a JSON value with tables is unsupported
27
+ * content. Changing it recreates the editor from its current document,
28
+ * unfocused, and closes an open embed picker. An uncontrolled HTML table is
29
+ * restored when tables are re-enabled if the table-free editor reported no change.
30
+ */
31
+ tables?: boolean;
24
32
  isRequired?: boolean;
25
33
  }
26
34
  export type RichTextEditorProps = RichTextEditorCommonProps & ({
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAoBf,OAAO,EAAsB,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAKL,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AACpB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,aAAa,CAAC;AAKrB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1D,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAElG,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,YAAY,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE/D,UAAU,yBAA0B,SAAQ,YAAY;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,wGAAwG;IACxG,aAAa,CAAC,EAAE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,CAAC;CACjD,CACJ,CAAC;AAocJ,eAAO,MAAM,cAAc,gHAiQ1B,CAAC"}
@@ -1,2 +1 @@
1
- import "../Field/index.js";
2
- export { t as RichTextEditor } from "../../chunks/RichTextEditor-BFblqw8m.js";
1
+ export { t as RichTextEditor } from "../../chunks/RichTextEditor-CS2ED0HP.js";