@payloadcms/richtext-lexical 4.0.0-internal.b8e7c89 → 4.0.0-internal.bf4bcce

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 (354) hide show
  1. package/dist/exports/client/Field-W2ABOM7M.js +2 -0
  2. package/dist/exports/client/Field-W2ABOM7M.js.map +7 -0
  3. package/dist/exports/client/chunk-3LRZDIIG.js +2 -0
  4. package/dist/exports/client/{chunk-LN6VX25I.js.map → chunk-3LRZDIIG.js.map} +2 -2
  5. package/dist/exports/client/chunk-E6LSRRP2.js +2 -0
  6. package/dist/exports/client/chunk-E6LSRRP2.js.map +7 -0
  7. package/dist/exports/client/chunk-ZQX5HXUL.js +2 -0
  8. package/dist/exports/client/{chunk-43E5QYAA.js.map → chunk-ZQX5HXUL.js.map} +3 -3
  9. package/dist/exports/client/{component-D5QLYS7W.js → component-6DQLENIE.js} +2 -2
  10. package/dist/exports/client/componentInline-HNE5G4TE.js +2 -0
  11. package/dist/exports/client/index.js +28 -28
  12. package/dist/exports/client/index.js.map +4 -4
  13. package/dist/features/blocks/client/component/BlockReordering/index.d.ts +11 -0
  14. package/dist/features/blocks/client/component/BlockReordering/index.d.ts.map +1 -0
  15. package/dist/features/blocks/client/component/BlockReordering/index.js +18 -0
  16. package/dist/features/blocks/client/component/BlockReordering/index.js.map +1 -0
  17. package/dist/features/blocks/client/component/index.d.ts +0 -6
  18. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  19. package/dist/features/blocks/client/component/index.js +169 -101
  20. package/dist/features/blocks/client/component/index.js.map +1 -1
  21. package/dist/features/blocks/client/component/useBlockReordering.d.ts +16 -0
  22. package/dist/features/blocks/client/component/useBlockReordering.d.ts.map +1 -0
  23. package/dist/features/blocks/client/component/useBlockReordering.js +178 -0
  24. package/dist/features/blocks/client/component/useBlockReordering.js.map +1 -0
  25. package/dist/features/blocks/client/componentInline/index.css +0 -1
  26. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  27. package/dist/features/blocks/client/componentInline/index.js +30 -22
  28. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  29. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.d.ts +9 -0
  30. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.d.ts.map +1 -0
  31. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.js +95 -0
  32. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.js.map +1 -0
  33. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
  34. package/dist/features/blocks/client/nodes/BlocksNode.js +0 -10
  35. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  36. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -1
  37. package/dist/features/blocks/server/nodes/BlocksNode.js +1 -12
  38. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
  39. package/dist/features/blocks/server/nodes/InlineBlocksNode.js +2 -2
  40. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
  41. package/dist/features/blocks/server/schema.d.ts +2 -0
  42. package/dist/features/blocks/server/schema.d.ts.map +1 -1
  43. package/dist/features/blocks/server/schema.js +7 -9
  44. package/dist/features/blocks/server/schema.js.map +1 -1
  45. package/dist/features/blocks/server/validate.js +1 -1
  46. package/dist/features/blocks/server/validate.js.map +1 -1
  47. package/dist/features/converters/lexicalToHtml/async/converters/heading.js +1 -1
  48. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -1
  49. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -1
  50. package/dist/features/converters/lexicalToHtml/async/converters/list.js +4 -3
  51. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -1
  52. package/dist/features/converters/lexicalToHtml/async/converters/upload.js +3 -3
  53. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  54. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js +1 -1
  55. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -1
  56. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -1
  57. package/dist/features/converters/lexicalToHtml/sync/converters/list.js +4 -3
  58. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -1
  59. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js +3 -3
  60. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  61. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -1
  62. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js +2 -1
  63. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  64. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -1
  65. package/dist/features/converters/lexicalToJSX/converter/converters/list.js +2 -1
  66. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  67. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -1
  68. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js +4 -5
  69. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  70. package/dist/features/converters/utilities/payloadPopulateFn.d.ts.map +1 -1
  71. package/dist/features/converters/utilities/payloadPopulateFn.js +4 -2
  72. package/dist/features/converters/utilities/payloadPopulateFn.js.map +1 -1
  73. package/dist/features/heading/constants.d.ts +2 -0
  74. package/dist/features/heading/constants.d.ts.map +1 -0
  75. package/dist/features/heading/constants.js +2 -0
  76. package/dist/features/heading/constants.js.map +1 -0
  77. package/dist/features/heading/server/index.d.ts.map +1 -1
  78. package/dist/features/heading/server/index.js +5 -1
  79. package/dist/features/heading/server/index.js.map +1 -1
  80. package/dist/features/heading/server/validate.d.ts +6 -0
  81. package/dist/features/heading/server/validate.d.ts.map +1 -0
  82. package/dist/features/heading/server/validate.js +15 -0
  83. package/dist/features/heading/server/validate.js.map +1 -0
  84. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +11 -1
  85. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
  86. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +17 -0
  87. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  88. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +2 -2
  89. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
  90. package/dist/features/horizontalRule/server/schema.d.ts +1 -0
  91. package/dist/features/horizontalRule/server/schema.d.ts.map +1 -1
  92. package/dist/features/horizontalRule/server/schema.js +6 -5
  93. package/dist/features/horizontalRule/server/schema.js.map +1 -1
  94. package/dist/features/indent/client/IndentPlugin.d.ts.map +1 -1
  95. package/dist/features/indent/client/IndentPlugin.js +122 -1
  96. package/dist/features/indent/client/IndentPlugin.js.map +1 -1
  97. package/dist/features/indent/server/i18n.d.ts.map +1 -1
  98. package/dist/features/indent/server/i18n.js +74 -37
  99. package/dist/features/indent/server/i18n.js.map +1 -1
  100. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  101. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +8 -5
  102. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  103. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +0 -1
  104. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  105. package/dist/features/link/nodes/AutoLinkNode.js +2 -10
  106. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  107. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  108. package/dist/features/link/nodes/LinkNode.js +2 -15
  109. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  110. package/dist/features/link/server/validate.js +1 -1
  111. package/dist/features/link/server/validate.js.map +1 -1
  112. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  113. package/dist/features/lists/checklist/server/index.js +5 -2
  114. package/dist/features/lists/checklist/server/index.js.map +1 -1
  115. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  116. package/dist/features/lists/orderedList/server/index.js +5 -2
  117. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  118. package/dist/features/lists/shared/constants.d.ts +2 -0
  119. package/dist/features/lists/shared/constants.d.ts.map +1 -0
  120. package/dist/features/lists/shared/constants.js +2 -0
  121. package/dist/features/lists/shared/constants.js.map +1 -0
  122. package/dist/features/lists/shared/validate.d.ts +5 -0
  123. package/dist/features/lists/shared/validate.d.ts.map +1 -0
  124. package/dist/features/lists/shared/validate.js +15 -0
  125. package/dist/features/lists/shared/validate.js.map +1 -0
  126. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  127. package/dist/features/lists/unorderedList/server/index.js +5 -2
  128. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  129. package/dist/features/relationship/client/components/index.css +3 -6
  130. package/dist/features/relationship/client/index.d.ts +2 -2
  131. package/dist/features/relationship/client/index.d.ts.map +1 -1
  132. package/dist/features/relationship/client/index.js.map +1 -1
  133. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
  134. package/dist/features/relationship/client/nodes/RelationshipNode.js +0 -3
  135. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  136. package/dist/features/relationship/client/plugins/index.d.ts +2 -2
  137. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  138. package/dist/features/relationship/client/plugins/index.js +27 -31
  139. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  140. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts +2 -4
  141. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  142. package/dist/features/relationship/client/utils/useEnabledRelationships.js +53 -20
  143. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  144. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +2 -2
  145. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  146. package/dist/features/relationship/server/graphQLPopulationPromise.js +2 -2
  147. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  148. package/dist/features/relationship/server/index.d.ts +8 -1
  149. package/dist/features/relationship/server/index.d.ts.map +1 -1
  150. package/dist/features/relationship/server/index.js +28 -11
  151. package/dist/features/relationship/server/index.js.map +1 -1
  152. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -1
  153. package/dist/features/relationship/server/nodes/RelationshipNode.js +1 -5
  154. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
  155. package/dist/features/relationship/server/schema.d.ts +3 -2
  156. package/dist/features/relationship/server/schema.d.ts.map +1 -1
  157. package/dist/features/relationship/server/schema.js +9 -12
  158. package/dist/features/relationship/server/schema.js.map +1 -1
  159. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +1 -6
  160. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -1
  161. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +1 -5
  162. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -1
  163. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.css +0 -1
  164. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.js +1 -1
  165. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.js.map +1 -1
  166. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -1
  167. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.js +41 -18
  168. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.js.map +1 -1
  169. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.css +0 -3
  170. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -1
  171. package/dist/features/toolbars/fixed/client/Toolbar/index.js +15 -0
  172. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  173. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -1
  174. package/dist/features/toolbars/inline/client/Toolbar/index.js +17 -2
  175. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  176. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  177. package/dist/features/toolbars/shared/ToolbarButton/index.js +1 -0
  178. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  179. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  180. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +85 -32
  181. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  182. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +16 -12
  183. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.d.ts +5 -0
  184. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.d.ts.map +1 -0
  185. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.js +79 -0
  186. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.js.map +1 -0
  187. package/dist/features/typesServer.d.ts +16 -11
  188. package/dist/features/typesServer.d.ts.map +1 -1
  189. package/dist/features/typesServer.js.map +1 -1
  190. package/dist/features/upload/client/component/index.css +0 -2
  191. package/dist/features/upload/client/index.d.ts +3 -2
  192. package/dist/features/upload/client/index.d.ts.map +1 -1
  193. package/dist/features/upload/client/index.js.map +1 -1
  194. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
  195. package/dist/features/upload/client/nodes/UploadNode.js +0 -7
  196. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  197. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  198. package/dist/features/upload/client/plugin/index.js +50 -53
  199. package/dist/features/upload/client/plugin/index.js.map +1 -1
  200. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +2 -2
  201. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  202. package/dist/features/upload/server/graphQLPopulationPromise.js +1 -1
  203. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  204. package/dist/features/upload/server/index.d.ts +7 -3
  205. package/dist/features/upload/server/index.d.ts.map +1 -1
  206. package/dist/features/upload/server/index.js +18 -14
  207. package/dist/features/upload/server/index.js.map +1 -1
  208. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  209. package/dist/features/upload/server/nodes/UploadNode.js +1 -9
  210. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  211. package/dist/features/upload/server/schema.d.ts +4 -16
  212. package/dist/features/upload/server/schema.d.ts.map +1 -1
  213. package/dist/features/upload/server/schema.js +8 -10
  214. package/dist/features/upload/server/schema.js.map +1 -1
  215. package/dist/features/upload/server/validate.d.ts +2 -2
  216. package/dist/features/upload/server/validate.d.ts.map +1 -1
  217. package/dist/features/upload/server/validate.js +4 -1
  218. package/dist/features/upload/server/validate.js.map +1 -1
  219. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  220. package/dist/field/Diff/converters/listitem/index.js +2 -1
  221. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  222. package/dist/field/Diff/converters/relationship/index.css +0 -1
  223. package/dist/field/Diff/converters/unknown/index.css +0 -1
  224. package/dist/field/Diff/converters/upload/index.css +0 -1
  225. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  226. package/dist/field/Diff/index.css +0 -2
  227. package/dist/field/Diff/index.d.ts +3 -2
  228. package/dist/field/Diff/index.d.ts.map +1 -1
  229. package/dist/field/Diff/index.js +3 -2
  230. package/dist/field/Diff/index.js.map +1 -1
  231. package/dist/field/Field.d.ts.map +1 -1
  232. package/dist/field/Field.js +8 -1
  233. package/dist/field/Field.js.map +1 -1
  234. package/dist/field/RenderLexical/index.d.ts +3 -1
  235. package/dist/field/RenderLexical/index.d.ts.map +1 -1
  236. package/dist/field/RenderLexical/index.js +23 -23
  237. package/dist/field/RenderLexical/index.js.map +1 -1
  238. package/dist/field/ViewSelector.d.ts.map +1 -1
  239. package/dist/field/ViewSelector.js +1 -0
  240. package/dist/field/ViewSelector.js.map +1 -1
  241. package/dist/field/bundled.css +1 -1
  242. package/dist/field/index.css +0 -1
  243. package/dist/field/rscEntry.d.ts +2 -2
  244. package/dist/field/rscEntry.d.ts.map +1 -1
  245. package/dist/field/rscEntry.js.map +1 -1
  246. package/dist/index.d.ts +4 -4
  247. package/dist/index.d.ts.map +1 -1
  248. package/dist/index.js +23 -1
  249. package/dist/index.js.map +1 -1
  250. package/dist/lexical/LexicalEditor.css +21 -10
  251. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  252. package/dist/lexical/LexicalEditor.js +61 -64
  253. package/dist/lexical/LexicalEditor.js.map +1 -1
  254. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -1
  255. package/dist/lexical/plugins/DecoratorPlugin/index.js +24 -21
  256. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
  257. package/dist/lexical/plugins/InsertParagraphAtEnd/index.css +2 -1
  258. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +1 -1
  259. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  260. package/dist/lexical/plugins/SlashMenu/index.css +0 -1
  261. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +1 -0
  262. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +2 -2
  263. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  264. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +1 -0
  265. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  266. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +16 -2
  267. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  268. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.d.ts +7 -0
  269. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.d.ts.map +1 -0
  270. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.js +65 -0
  271. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.js.map +1 -0
  272. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -1
  273. package/dist/lexical/plugins/handles/utils/setHandlePosition.js +2 -0
  274. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -1
  275. package/dist/lexical/theme/EditorTheme.css +0 -2
  276. package/dist/lexical/ui/ContentEditable.d.ts +2 -1
  277. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  278. package/dist/lexical/ui/ContentEditable.js +32 -11
  279. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  280. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
  281. package/dist/lexical/ui/icons/H3/index.js +13 -6
  282. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  283. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
  284. package/dist/lexical/ui/icons/H4/index.js +13 -6
  285. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  286. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
  287. package/dist/lexical/ui/icons/H5/index.js +13 -6
  288. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  289. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
  290. package/dist/lexical/ui/icons/H6/index.js +13 -6
  291. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  292. package/dist/presets/llmInstructions.d.ts +2 -0
  293. package/dist/presets/llmInstructions.d.ts.map +1 -0
  294. package/dist/presets/llmInstructions.js +13 -0
  295. package/dist/presets/llmInstructions.js.map +1 -0
  296. package/dist/types/builtInNodes.d.ts +1 -1
  297. package/dist/types/builtInNodes.d.ts.map +1 -1
  298. package/dist/types/builtInNodes.js +8 -3
  299. package/dist/types/builtInNodes.js.map +1 -1
  300. package/dist/types/index.d.ts +3 -6
  301. package/dist/types/index.d.ts.map +1 -1
  302. package/dist/types/index.js.map +1 -1
  303. package/dist/types/jsonSchemaHelpers.d.ts +5 -1
  304. package/dist/types/jsonSchemaHelpers.d.ts.map +1 -1
  305. package/dist/types/jsonSchemaHelpers.js +7 -2
  306. package/dist/types/jsonSchemaHelpers.js.map +1 -1
  307. package/dist/types/nodeTypes.d.ts +5 -0
  308. package/dist/types/nodeTypes.d.ts.map +1 -1
  309. package/dist/types/nodeTypes.js.map +1 -1
  310. package/dist/utilities/buildInitialState.d.ts +3 -2
  311. package/dist/utilities/buildInitialState.d.ts.map +1 -1
  312. package/dist/utilities/buildInitialState.js +1 -0
  313. package/dist/utilities/buildInitialState.js.map +1 -1
  314. package/dist/utilities/generateImportMap.d.ts +2 -2
  315. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  316. package/dist/utilities/generateImportMap.js.map +1 -1
  317. package/dist/utilities/upgradeLexicalData/index.js +6 -3
  318. package/dist/utilities/upgradeLexicalData/index.js.map +1 -1
  319. package/dist/validate/hasText.d.ts +2 -2
  320. package/dist/validate/hasText.d.ts.map +1 -1
  321. package/dist/validate/hasText.js.map +1 -1
  322. package/dist/validate/index.d.ts +1 -1
  323. package/dist/validate/index.d.ts.map +1 -1
  324. package/package.json +25 -25
  325. package/dist/dependencyChecker.spec.js +0 -16
  326. package/dist/dependencyChecker.spec.js.map +0 -1
  327. package/dist/exports/client/Field-QKAL7KMC.js +0 -2
  328. package/dist/exports/client/Field-QKAL7KMC.js.map +0 -7
  329. package/dist/exports/client/bundled.css +0 -1
  330. package/dist/exports/client/chunk-43E5QYAA.js +0 -2
  331. package/dist/exports/client/chunk-ESITTE3C.js +0 -2
  332. package/dist/exports/client/chunk-ESITTE3C.js.map +0 -7
  333. package/dist/exports/client/chunk-LN6VX25I.js +0 -2
  334. package/dist/exports/client/componentInline-H24N7GUG.js +0 -2
  335. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts +0 -11
  336. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +0 -1
  337. package/dist/features/blocks/client/component/removeEmptyArrayValues.js +0 -20
  338. package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +0 -1
  339. package/dist/features/converters/lexicalToHtml/sync/alignment.spec.js +0 -92
  340. package/dist/features/converters/lexicalToHtml/sync/alignment.spec.js.map +0 -1
  341. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js +0 -180
  342. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +0 -1
  343. package/dist/features/link/markdownTransformer.spec.js +0 -195
  344. package/dist/features/link/markdownTransformer.spec.js.map +0 -1
  345. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.spec.js +0 -65
  346. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.spec.js.map +0 -1
  347. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js +0 -88
  348. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js.map +0 -1
  349. package/dist/lexical/utils/url.spec.js +0 -114
  350. package/dist/lexical/utils/url.spec.js.map +0 -1
  351. package/dist/utilities/jsx/jsx.spec.js +0 -178
  352. package/dist/utilities/jsx/jsx.spec.js.map +0 -1
  353. /package/dist/exports/client/{component-D5QLYS7W.js.map → component-6DQLENIE.js.map} +0 -0
  354. /package/dist/exports/client/{componentInline-H24N7GUG.js.map → componentInline-HNE5G4TE.js.map} +0 -0
@@ -1,178 +0,0 @@
1
- import { describe, it, expect } from 'vitest';
2
- import { extractPropsFromJSXPropsString } from './extractPropsFromJSXPropsString.js';
3
- import { propsToJSXString } from './jsx.js';
4
- describe('jsx', () => {
5
- describe('prop string to object', () => {
6
- const INPUT_AND_OUTPUT = [{
7
- input: 'key="value"',
8
- output: {
9
- key: 'value'
10
- }
11
- }, {
12
- input: "key='value'",
13
- output: {
14
- key: 'value'
15
- },
16
- inputFromOutput: 'key="value"'
17
- }, {
18
- input: 'key={[1, 2, 3]}',
19
- output: {
20
- key: [1, 2, 3]
21
- }
22
- }, {
23
- input: 'key={[1, 2, 3, [1, 2]]}',
24
- output: {
25
- key: [1, 2, 3, [1, 2]]
26
- }
27
- }, {
28
- input: 'object={4}',
29
- output: {
30
- object: 4
31
- }
32
- }, {
33
- input: 'object={{"test": 1}}',
34
- output: {
35
- object: {
36
- test: 1
37
- }
38
- }
39
- }, {
40
- input: 'object={[1, 2, 3, [1, 2]]}',
41
- output: {
42
- object: [1, 2, 3, [1, 2]]
43
- }
44
- }, {
45
- input: 'object={[1, 2]}',
46
- output: {
47
- object: [1, 2]
48
- }
49
- }, {
50
- input: 'key="value" object={{key: "value"}}',
51
- inputFromOutput: 'key="value" object={{"key": "value"}}',
52
- output: {
53
- key: 'value',
54
- object: {
55
- key: 'value'
56
- }
57
- }
58
- }, {
59
- input: 'global packageId="myId" uniqueId="some unique id!" update',
60
- output: {
61
- global: true,
62
- packageId: 'myId',
63
- uniqueId: 'some unique id!',
64
- update: true
65
- }
66
- }, {
67
- input: 'global key="value" object={{key: "value", something: "test", hello: 1}} packageId="myId" uniqueId="some unique id!" update',
68
- inputFromOutput: 'global key="value" object={{"hello": 1, "key": "value", "something": "test"}} packageId="myId" uniqueId="some unique id!" update',
69
- output: {
70
- global: true,
71
- key: 'value',
72
- object: {
73
- hello: 1,
74
- key: 'value',
75
- something: 'test'
76
- },
77
- packageId: 'myId',
78
- uniqueId: 'some unique id!',
79
- update: true
80
- }
81
- }, {
82
- input: 'object={{hello: 1, key: "value", nested: { key: "value" }, something: "test", test: [1, 2, 3]}}',
83
- inputFromOutput: 'object={{"hello": 1, "key": "value", "nested": {"key": "value"}, "something": "test", "test": [1, 2, 3]}}',
84
- output: {
85
- object: {
86
- hello: 1,
87
- key: 'value',
88
- nested: {
89
- key: 'value'
90
- },
91
- something: 'test',
92
- test: [1, 2, 3]
93
- }
94
- }
95
- }, {
96
- input: 'global key="value" object={{hello: 1, key: "value", nested: { key: "value" }, something: "test", test: [1, 2, 3]}} packageId="myId" uniqueId="some unique id!" update',
97
- inputFromOutput: 'global key="value" object={{"hello": 1, "key": "value", "nested": { "key": "value" }, "something": "test", "test": [1, 2, 3]}} packageId="myId" uniqueId="some unique id!" update',
98
- output: {
99
- global: true,
100
- key: 'value',
101
- object: {
102
- hello: 1,
103
- key: 'value',
104
- nested: {
105
- key: 'value'
106
- },
107
- something: 'test',
108
- test: [1, 2, 3]
109
- },
110
- packageId: 'myId',
111
- uniqueId: 'some unique id!',
112
- update: true
113
- }
114
- }, {
115
- // Test if unquoted property keys in objects within arrays are supprted. This is
116
- // supported through the more lenient JSOX parser, instead of using JSON.parse()
117
- input: 'key={[1, 2, { hello: "there" }]}',
118
- inputFromOutput: 'key={[1, 2, { "hello": "there" }]}',
119
- output: {
120
- key: [1, 2, {
121
- hello: 'there'
122
- }]
123
- }
124
- }, {
125
- // Test if ` strings work
126
- input: `key={[1, 2, { hello: \`there\` }]}`,
127
- inputFromOutput: 'key={[1, 2, { "hello": "there" }]}',
128
- output: {
129
- key: [1, 2, {
130
- hello: 'there'
131
- }]
132
- }
133
- }, {
134
- // Test if multiline ` strings work
135
- input: `key={[1, 2, { hello: \`Hello
136
- there\` }]}`,
137
- inputFromOutput: 'key={[1, 2, { "hello": "Hello\\nthere" }]}',
138
- output: {
139
- key: [1, 2, {
140
- hello: 'Hello\nthere'
141
- }]
142
- }
143
- }];
144
- for (const {
145
- input,
146
- output
147
- } of INPUT_AND_OUTPUT) {
148
- it(`can correctly convert to object: "${input.replace(/\n/g, '\\n')}"`, () => {
149
- const propsObject = extractPropsFromJSXPropsString({
150
- propsString: input
151
- });
152
- console.log({
153
- output,
154
- propsObject
155
- });
156
- expect(propsObject).toStrictEqual(output);
157
- });
158
- }
159
- for (const {
160
- input: originalInput,
161
- inputFromOutput,
162
- output
163
- } of INPUT_AND_OUTPUT) {
164
- const input = inputFromOutput || originalInput;
165
- it(`can correctly convert from object: "${input.replace(/\n/g, '\\n')}"`, () => {
166
- const propsString = propsToJSXString({
167
- props: output
168
- });
169
- console.log({
170
- input,
171
- propsString
172
- });
173
- expect(propsString.replaceAll(' ', '')).toBe(input.replaceAll(' ', ''));
174
- });
175
- }
176
- });
177
- });
178
- //# sourceMappingURL=jsx.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsx.spec.js","names":["describe","it","expect","extractPropsFromJSXPropsString","propsToJSXString","INPUT_AND_OUTPUT","input","output","key","inputFromOutput","object","test","global","packageId","uniqueId","update","hello","something","nested","replace","propsObject","propsString","console","log","toStrictEqual","originalInput","props","replaceAll","toBe"],"sources":["../../../src/utilities/jsx/jsx.spec.ts"],"sourcesContent":["import { describe, it, expect } from 'vitest'\nimport { extractPropsFromJSXPropsString } from './extractPropsFromJSXPropsString.js'\nimport { propsToJSXString } from './jsx.js'\n\ndescribe('jsx', () => {\n describe('prop string to object', () => {\n const INPUT_AND_OUTPUT: {\n input: string\n inputFromOutput?: string\n output: Record<string, any>\n }[] = [\n {\n input: 'key=\"value\"',\n output: {\n key: 'value',\n },\n },\n {\n input: \"key='value'\",\n output: {\n key: 'value',\n },\n inputFromOutput: 'key=\"value\"',\n },\n {\n input: 'key={[1, 2, 3]}',\n output: {\n key: [1, 2, 3],\n },\n },\n {\n input: 'key={[1, 2, 3, [1, 2]]}',\n output: {\n key: [1, 2, 3, [1, 2]],\n },\n },\n {\n input: 'object={4}',\n output: {\n object: 4,\n },\n },\n {\n input: 'object={{\"test\": 1}}',\n output: {\n object: { test: 1 },\n },\n },\n {\n input: 'object={[1, 2, 3, [1, 2]]}',\n output: {\n object: [1, 2, 3, [1, 2]],\n },\n },\n {\n input: 'object={[1, 2]}',\n output: {\n object: [1, 2],\n },\n },\n {\n input: 'key=\"value\" object={{key: \"value\"}}',\n inputFromOutput: 'key=\"value\" object={{\"key\": \"value\"}}',\n output: {\n key: 'value',\n object: { key: 'value' },\n },\n },\n {\n input: 'global packageId=\"myId\" uniqueId=\"some unique id!\" update',\n output: {\n global: true,\n packageId: 'myId',\n uniqueId: 'some unique id!',\n update: true,\n },\n },\n {\n input:\n 'global key=\"value\" object={{key: \"value\", something: \"test\", hello: 1}} packageId=\"myId\" uniqueId=\"some unique id!\" update',\n inputFromOutput:\n 'global key=\"value\" object={{\"hello\": 1, \"key\": \"value\", \"something\": \"test\"}} packageId=\"myId\" uniqueId=\"some unique id!\" update',\n output: {\n global: true,\n key: 'value',\n object: { hello: 1, key: 'value', something: 'test' },\n packageId: 'myId',\n uniqueId: 'some unique id!',\n update: true,\n },\n },\n {\n input:\n 'object={{hello: 1, key: \"value\", nested: { key: \"value\" }, something: \"test\", test: [1, 2, 3]}}',\n inputFromOutput:\n 'object={{\"hello\": 1, \"key\": \"value\", \"nested\": {\"key\": \"value\"}, \"something\": \"test\", \"test\": [1, 2, 3]}}',\n output: {\n object: {\n hello: 1,\n key: 'value',\n nested: { key: 'value' },\n something: 'test',\n test: [1, 2, 3],\n },\n },\n },\n {\n input:\n 'global key=\"value\" object={{hello: 1, key: \"value\", nested: { key: \"value\" }, something: \"test\", test: [1, 2, 3]}} packageId=\"myId\" uniqueId=\"some unique id!\" update',\n inputFromOutput:\n 'global key=\"value\" object={{\"hello\": 1, \"key\": \"value\", \"nested\": { \"key\": \"value\" }, \"something\": \"test\", \"test\": [1, 2, 3]}} packageId=\"myId\" uniqueId=\"some unique id!\" update',\n output: {\n global: true,\n key: 'value',\n object: {\n hello: 1,\n key: 'value',\n nested: { key: 'value' },\n something: 'test',\n test: [1, 2, 3],\n },\n packageId: 'myId',\n uniqueId: 'some unique id!',\n update: true,\n },\n },\n {\n // Test if unquoted property keys in objects within arrays are supprted. This is\n // supported through the more lenient JSOX parser, instead of using JSON.parse()\n input: 'key={[1, 2, { hello: \"there\" }]}',\n inputFromOutput: 'key={[1, 2, { \"hello\": \"there\" }]}',\n output: {\n key: [1, 2, { hello: 'there' }],\n },\n },\n {\n // Test if ` strings work\n input: `key={[1, 2, { hello: \\`there\\` }]}`,\n inputFromOutput: 'key={[1, 2, { \"hello\": \"there\" }]}',\n output: {\n key: [1, 2, { hello: 'there' }],\n },\n },\n {\n // Test if multiline ` strings work\n input: `key={[1, 2, { hello: \\`Hello\nthere\\` }]}`,\n inputFromOutput: 'key={[1, 2, { \"hello\": \"Hello\\\\nthere\" }]}',\n output: {\n key: [1, 2, { hello: 'Hello\\nthere' }],\n },\n },\n ]\n\n for (const { input, output } of INPUT_AND_OUTPUT) {\n it(`can correctly convert to object: \"${input.replace(/\\n/g, '\\\\n')}\"`, () => {\n const propsObject = extractPropsFromJSXPropsString({ propsString: input })\n console.log({ output, propsObject })\n\n expect(propsObject).toStrictEqual(output)\n })\n }\n\n for (const { input: originalInput, inputFromOutput, output } of INPUT_AND_OUTPUT) {\n const input = inputFromOutput || originalInput\n it(`can correctly convert from object: \"${input.replace(/\\n/g, '\\\\n')}\"`, () => {\n const propsString = propsToJSXString({ props: output })\n console.log({ input, propsString })\n\n expect(propsString.replaceAll(' ', '')).toBe(input.replaceAll(' ', ''))\n })\n }\n })\n})\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,EAAE,EAAEC,MAAM,QAAQ;AACrC,SAASC,8BAA8B,QAAQ;AAC/C,SAASC,gBAAgB,QAAQ;AAEjCJ,QAAA,CAAS,OAAO;EACdA,QAAA,CAAS,yBAAyB;IAChC,MAAMK,gBAAA,GAIA,CACJ;MACEC,KAAA,EAAO;MACPC,MAAA,EAAQ;QACNC,GAAA,EAAK;MACP;IACF,GACA;MACEF,KAAA,EAAO;MACPC,MAAA,EAAQ;QACNC,GAAA,EAAK;MACP;MACAC,eAAA,EAAiB;IACnB,GACA;MACEH,KAAA,EAAO;MACPC,MAAA,EAAQ;QACNC,GAAA,EAAK,CAAC,GAAG,GAAG;MACd;IACF,GACA;MACEF,KAAA,EAAO;MACPC,MAAA,EAAQ;QACNC,GAAA,EAAK,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,EAAE;MACvB;IACF,GACA;MACEF,KAAA,EAAO;MACPC,MAAA,EAAQ;QACNG,MAAA,EAAQ;MACV;IACF,GACA;MACEJ,KAAA,EAAO;MACPC,MAAA,EAAQ;QACNG,MAAA,EA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