@payloadcms/richtext-lexical 4.0.0-internal.c3ac604 → 4.0.0-internal.cb69780

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 (341) hide show
  1. package/dist/exports/client/Field-TS5CRYHE.js +2 -0
  2. package/dist/exports/client/Field-TS5CRYHE.js.map +7 -0
  3. package/dist/exports/client/bundled.css +1 -1
  4. package/dist/exports/client/chunk-3LRZDIIG.js +2 -0
  5. package/dist/exports/client/{chunk-SSMQFWCQ.js.map → chunk-3LRZDIIG.js.map} +4 -4
  6. package/dist/exports/client/{chunk-ESITTE3C.js → chunk-ZFGDYZDE.js} +2 -2
  7. package/dist/exports/client/{chunk-ESITTE3C.js.map → chunk-ZFGDYZDE.js.map} +2 -2
  8. package/dist/exports/client/componentInline-55HZXGUS.js +2 -0
  9. package/dist/exports/client/index.d.ts +1 -1
  10. package/dist/exports/client/index.d.ts.map +1 -1
  11. package/dist/exports/client/index.js +26 -26
  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 +133 -76
  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.d.ts.map +1 -1
  26. package/dist/features/blocks/client/componentInline/index.js +2 -2
  27. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  28. package/dist/features/blocks/server/index.js +2 -2
  29. package/dist/features/blocks/server/index.js.map +1 -1
  30. package/dist/features/converters/lexicalToHtml/async/converters/heading.js +1 -1
  31. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -1
  32. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -1
  33. package/dist/features/converters/lexicalToHtml/async/converters/list.js +4 -3
  34. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -1
  35. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.d.ts.map +1 -1
  36. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js +3 -2
  37. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -1
  38. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js +1 -1
  39. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -1
  40. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -1
  41. package/dist/features/converters/lexicalToHtml/sync/converters/list.js +4 -3
  42. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -1
  43. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -1
  44. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js +2 -1
  45. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  46. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -1
  47. package/dist/features/converters/lexicalToJSX/converter/converters/list.js +2 -1
  48. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  49. package/dist/features/converters/utilities/payloadPopulateFn.d.ts.map +1 -1
  50. package/dist/features/converters/utilities/payloadPopulateFn.js +4 -2
  51. package/dist/features/converters/utilities/payloadPopulateFn.js.map +1 -1
  52. package/dist/features/heading/constants.d.ts +2 -0
  53. package/dist/features/heading/constants.d.ts.map +1 -0
  54. package/dist/features/heading/constants.js +2 -0
  55. package/dist/features/heading/constants.js.map +1 -0
  56. package/dist/features/heading/server/index.d.ts.map +1 -1
  57. package/dist/features/heading/server/index.js +5 -1
  58. package/dist/features/heading/server/index.js.map +1 -1
  59. package/dist/features/heading/server/validate.d.ts +6 -0
  60. package/dist/features/heading/server/validate.d.ts.map +1 -0
  61. package/dist/features/heading/server/validate.js +15 -0
  62. package/dist/features/heading/server/validate.js.map +1 -0
  63. package/dist/features/indent/client/IndentPlugin.d.ts.map +1 -1
  64. package/dist/features/indent/client/IndentPlugin.js +122 -1
  65. package/dist/features/indent/client/IndentPlugin.js.map +1 -1
  66. package/dist/features/indent/server/i18n.d.ts.map +1 -1
  67. package/dist/features/indent/server/i18n.js +74 -37
  68. package/dist/features/indent/server/i18n.js.map +1 -1
  69. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  70. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +6 -3
  71. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  72. package/dist/features/link/server/index.js +2 -2
  73. package/dist/features/link/server/index.js.map +1 -1
  74. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  75. package/dist/features/lists/checklist/server/index.js +5 -2
  76. package/dist/features/lists/checklist/server/index.js.map +1 -1
  77. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  78. package/dist/features/lists/orderedList/server/index.js +5 -2
  79. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  80. package/dist/features/lists/shared/constants.d.ts +2 -0
  81. package/dist/features/lists/shared/constants.d.ts.map +1 -0
  82. package/dist/features/lists/shared/constants.js +2 -0
  83. package/dist/features/lists/shared/constants.js.map +1 -0
  84. package/dist/features/lists/shared/validate.d.ts +5 -0
  85. package/dist/features/lists/shared/validate.d.ts.map +1 -0
  86. package/dist/features/lists/shared/validate.js +15 -0
  87. package/dist/features/lists/shared/validate.js.map +1 -0
  88. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  89. package/dist/features/lists/unorderedList/server/index.js +5 -2
  90. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  91. package/dist/features/relationship/client/index.d.ts +2 -2
  92. package/dist/features/relationship/client/index.d.ts.map +1 -1
  93. package/dist/features/relationship/client/index.js.map +1 -1
  94. package/dist/features/relationship/client/plugins/index.d.ts +2 -2
  95. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  96. package/dist/features/relationship/client/plugins/index.js +27 -31
  97. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  98. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts +2 -4
  99. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  100. package/dist/features/relationship/client/utils/useEnabledRelationships.js +53 -20
  101. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  102. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +2 -2
  103. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  104. package/dist/features/relationship/server/graphQLPopulationPromise.js +2 -2
  105. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  106. package/dist/features/relationship/server/index.d.ts +8 -1
  107. package/dist/features/relationship/server/index.d.ts.map +1 -1
  108. package/dist/features/relationship/server/index.js +28 -11
  109. package/dist/features/relationship/server/index.js.map +1 -1
  110. package/dist/features/relationship/server/schema.d.ts +2 -2
  111. package/dist/features/relationship/server/schema.d.ts.map +1 -1
  112. package/dist/features/relationship/server/schema.js +5 -10
  113. package/dist/features/relationship/server/schema.js.map +1 -1
  114. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +1 -6
  115. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -1
  116. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +1 -5
  117. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -1
  118. package/dist/features/table/client/index.d.ts.map +1 -0
  119. package/dist/features/table/client/index.js.map +1 -0
  120. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.d.ts +8 -0
  121. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.d.ts.map +1 -0
  122. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.js +19 -0
  123. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.js.map +1 -0
  124. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  125. package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.js +17 -44
  126. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
  127. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  128. package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.js +41 -18
  129. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
  130. package/dist/features/table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  131. package/dist/features/table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  132. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +1 -0
  133. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.js.map +1 -0
  134. package/dist/features/table/client/plugins/TablePlugin/index.d.ts.map +1 -0
  135. package/dist/features/table/client/plugins/TablePlugin/index.js.map +1 -0
  136. package/dist/features/table/client/utils/debounce.d.ts.map +1 -0
  137. package/dist/features/table/client/utils/debounce.js.map +1 -0
  138. package/dist/features/table/client/utils/useDebounce.d.ts.map +1 -0
  139. package/dist/features/table/client/utils/useDebounce.js.map +1 -0
  140. package/dist/features/table/markdownTransformer.d.ts.map +1 -0
  141. package/dist/features/table/markdownTransformer.js.map +1 -0
  142. package/dist/features/table/server/index.d.ts +3 -0
  143. package/dist/features/table/server/index.d.ts.map +1 -0
  144. package/dist/features/{experimental_table → table}/server/index.js +4 -4
  145. package/dist/features/table/server/index.js.map +1 -0
  146. package/dist/features/table/server/schema.d.ts.map +1 -0
  147. package/dist/features/table/server/schema.js.map +1 -0
  148. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.d.ts +8 -0
  149. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.d.ts.map +1 -0
  150. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.js +80 -0
  151. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.js.map +1 -0
  152. package/dist/features/toolbars/fixed/client/Toolbar/index.css +77 -3
  153. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -1
  154. package/dist/features/toolbars/fixed/client/Toolbar/index.js +4 -1
  155. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  156. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  157. package/dist/features/toolbars/shared/ToolbarButton/index.js +1 -0
  158. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  159. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  160. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +85 -32
  161. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  162. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +16 -11
  163. package/dist/features/typesServer.d.ts +1 -1
  164. package/dist/features/typesServer.d.ts.map +1 -1
  165. package/dist/features/typesServer.js.map +1 -1
  166. package/dist/features/upload/client/index.d.ts +3 -2
  167. package/dist/features/upload/client/index.d.ts.map +1 -1
  168. package/dist/features/upload/client/index.js.map +1 -1
  169. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  170. package/dist/features/upload/client/plugin/index.js +47 -52
  171. package/dist/features/upload/client/plugin/index.js.map +1 -1
  172. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +2 -2
  173. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  174. package/dist/features/upload/server/graphQLPopulationPromise.js +1 -1
  175. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  176. package/dist/features/upload/server/index.d.ts +6 -2
  177. package/dist/features/upload/server/index.d.ts.map +1 -1
  178. package/dist/features/upload/server/index.js +20 -16
  179. package/dist/features/upload/server/index.js.map +1 -1
  180. package/dist/features/upload/server/schema.d.ts +2 -2
  181. package/dist/features/upload/server/schema.d.ts.map +1 -1
  182. package/dist/features/upload/server/schema.js +4 -8
  183. package/dist/features/upload/server/schema.js.map +1 -1
  184. package/dist/features/upload/server/validate.d.ts +2 -2
  185. package/dist/features/upload/server/validate.d.ts.map +1 -1
  186. package/dist/features/upload/server/validate.js +3 -0
  187. package/dist/features/upload/server/validate.js.map +1 -1
  188. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  189. package/dist/field/Diff/converters/listitem/index.js +2 -1
  190. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  191. package/dist/field/Diff/index.d.ts +3 -2
  192. package/dist/field/Diff/index.d.ts.map +1 -1
  193. package/dist/field/Diff/index.js +1 -0
  194. package/dist/field/Diff/index.js.map +1 -1
  195. package/dist/field/RenderLexical/index.d.ts +3 -1
  196. package/dist/field/RenderLexical/index.d.ts.map +1 -1
  197. package/dist/field/RenderLexical/index.js +23 -23
  198. package/dist/field/RenderLexical/index.js.map +1 -1
  199. package/dist/field/ViewSelector.d.ts.map +1 -1
  200. package/dist/field/ViewSelector.js +1 -0
  201. package/dist/field/ViewSelector.js.map +1 -1
  202. package/dist/field/bundled.css +1 -1
  203. package/dist/field/index.css +10 -10
  204. package/dist/i18n.d.ts.map +1 -1
  205. package/dist/i18n.js +68 -0
  206. package/dist/i18n.js.map +1 -1
  207. package/dist/index.d.ts +2 -2
  208. package/dist/index.d.ts.map +1 -1
  209. package/dist/index.js +5 -5
  210. package/dist/index.js.map +1 -1
  211. package/dist/lexical/LexicalEditor.css +20 -9
  212. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  213. package/dist/lexical/LexicalEditor.js +61 -64
  214. package/dist/lexical/LexicalEditor.js.map +1 -1
  215. package/dist/lexical/config/server/loader.d.ts +1 -1
  216. package/dist/lexical/config/server/loader.d.ts.map +1 -1
  217. package/dist/lexical/config/server/loader.js +2 -2
  218. package/dist/lexical/config/server/loader.js.map +1 -1
  219. package/dist/lexical/config/server/sanitize.d.ts +1 -1
  220. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  221. package/dist/lexical/config/server/sanitize.js +2 -2
  222. package/dist/lexical/config/server/sanitize.js.map +1 -1
  223. package/dist/lexical/plugins/InsertParagraphAtEnd/index.css +18 -24
  224. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -1
  225. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +27 -14
  226. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  227. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +1 -1
  228. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  229. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +1 -0
  230. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +2 -2
  231. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  232. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +1 -0
  233. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  234. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +16 -2
  235. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  236. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.d.ts +7 -0
  237. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.d.ts.map +1 -0
  238. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.js +65 -0
  239. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.js.map +1 -0
  240. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -1
  241. package/dist/lexical/plugins/handles/utils/setHandlePosition.js +2 -0
  242. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -1
  243. package/dist/lexical/ui/ContentEditable.d.ts +2 -1
  244. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  245. package/dist/lexical/ui/ContentEditable.js +9 -6
  246. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  247. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
  248. package/dist/lexical/ui/icons/H3/index.js +13 -6
  249. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  250. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
  251. package/dist/lexical/ui/icons/H4/index.js +13 -6
  252. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  253. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
  254. package/dist/lexical/ui/icons/H5/index.js +13 -6
  255. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  256. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
  257. package/dist/lexical/ui/icons/H6/index.js +13 -6
  258. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  259. package/dist/types/index.d.ts +1 -1
  260. package/dist/types/index.d.ts.map +1 -1
  261. package/dist/types/index.js.map +1 -1
  262. package/dist/types/nodeTypes.d.ts +1 -1
  263. package/dist/types/nodeTypes.d.ts.map +1 -1
  264. package/dist/types/nodeTypes.js.map +1 -1
  265. package/dist/utilities/createServerFeature.d.ts +1 -1
  266. package/dist/utilities/createServerFeature.d.ts.map +1 -1
  267. package/dist/utilities/createServerFeature.js +2 -2
  268. package/dist/utilities/createServerFeature.js.map +1 -1
  269. package/dist/utilities/editorConfigFactory.d.ts +6 -6
  270. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  271. package/dist/utilities/editorConfigFactory.js +9 -9
  272. package/dist/utilities/editorConfigFactory.js.map +1 -1
  273. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts +2 -2
  274. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -1
  275. package/dist/utilities/getDefaultSanitizedEditorConfig.js +6 -17
  276. package/dist/utilities/getDefaultSanitizedEditorConfig.js.map +1 -1
  277. package/dist/utilities/upgradeLexicalData/index.js +6 -3
  278. package/dist/utilities/upgradeLexicalData/index.js.map +1 -1
  279. package/package.json +22 -22
  280. package/dist/dependencyChecker.spec.js +0 -16
  281. package/dist/dependencyChecker.spec.js.map +0 -1
  282. package/dist/exports/client/Field-IZKDIUJY.js +0 -2
  283. package/dist/exports/client/Field-IZKDIUJY.js.map +0 -7
  284. package/dist/exports/client/chunk-SSMQFWCQ.js +0 -2
  285. package/dist/exports/client/componentInline-H24N7GUG.js +0 -2
  286. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js +0 -180
  287. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +0 -1
  288. package/dist/features/experimental_table/client/index.d.ts.map +0 -1
  289. package/dist/features/experimental_table/client/index.js.map +0 -1
  290. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +0 -1
  291. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +0 -1
  292. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +0 -1
  293. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +0 -1
  294. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +0 -1
  295. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +0 -1
  296. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +0 -1
  297. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js.map +0 -1
  298. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +0 -1
  299. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +0 -1
  300. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +0 -1
  301. package/dist/features/experimental_table/client/utils/debounce.js.map +0 -1
  302. package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +0 -1
  303. package/dist/features/experimental_table/client/utils/useDebounce.js.map +0 -1
  304. package/dist/features/experimental_table/markdownTransformer.d.ts.map +0 -1
  305. package/dist/features/experimental_table/markdownTransformer.js.map +0 -1
  306. package/dist/features/experimental_table/server/index.d.ts +0 -3
  307. package/dist/features/experimental_table/server/index.d.ts.map +0 -1
  308. package/dist/features/experimental_table/server/index.js.map +0 -1
  309. package/dist/features/experimental_table/server/schema.d.ts.map +0 -1
  310. package/dist/features/experimental_table/server/schema.js.map +0 -1
  311. package/dist/features/link/markdownTransformer.spec.js +0 -195
  312. package/dist/features/link/markdownTransformer.spec.js.map +0 -1
  313. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js +0 -88
  314. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js.map +0 -1
  315. package/dist/lexical/utils/url.spec.js +0 -114
  316. package/dist/lexical/utils/url.spec.js.map +0 -1
  317. package/dist/utilities/jsx/jsx.spec.js +0 -178
  318. package/dist/utilities/jsx/jsx.spec.js.map +0 -1
  319. /package/dist/exports/client/{componentInline-H24N7GUG.js.map → componentInline-55HZXGUS.js.map} +0 -0
  320. /package/dist/features/{experimental_table → table}/client/index.d.ts +0 -0
  321. /package/dist/features/{experimental_table → table}/client/index.js +0 -0
  322. /package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.css +0 -0
  323. /package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.d.ts +0 -0
  324. /package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.css +0 -0
  325. /package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.d.ts +0 -0
  326. /package/dist/features/{experimental_table → table}/client/plugins/TableHoverActionsPlugin/index.d.ts +0 -0
  327. /package/dist/features/{experimental_table → table}/client/plugins/TableHoverActionsPlugin/index.js +0 -0
  328. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.css +0 -0
  329. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.d.ts +0 -0
  330. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.js +0 -0
  331. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.css +0 -0
  332. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.d.ts +0 -0
  333. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.js +0 -0
  334. /package/dist/features/{experimental_table → table}/client/utils/debounce.d.ts +0 -0
  335. /package/dist/features/{experimental_table → table}/client/utils/debounce.js +0 -0
  336. /package/dist/features/{experimental_table → table}/client/utils/useDebounce.d.ts +0 -0
  337. /package/dist/features/{experimental_table → table}/client/utils/useDebounce.js +0 -0
  338. /package/dist/features/{experimental_table → table}/markdownTransformer.d.ts +0 -0
  339. /package/dist/features/{experimental_table → table}/markdownTransformer.js +0 -0
  340. /package/dist/features/{experimental_table → table}/server/schema.d.ts +0 -0
  341. /package/dist/features/{experimental_table → table}/server/schema.js +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,EAAQ;UAAEC,IAAA,EAAM;QAAE;MACpB;IACF,GACA;MACEL,KAAA,EAAO;MACPC,MAAA,EAAQ;QACNG,MAAA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