@payloadcms/richtext-lexical 3.0.0-beta.7 → 3.0.0-canary.03427d3

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 (971) hide show
  1. package/README.md +1 -1
  2. package/dist/cell/index.d.ts +5 -2
  3. package/dist/cell/index.d.ts.map +1 -1
  4. package/dist/cell/index.js +45 -31
  5. package/dist/cell/index.js.map +1 -1
  6. package/dist/exports/client/Component-6AVANNNR.js +2 -0
  7. package/dist/exports/client/Component-6AVANNNR.js.map +7 -0
  8. package/dist/exports/client/Component-SZVAYRJX.js +2 -0
  9. package/dist/exports/client/Component-SZVAYRJX.js.map +7 -0
  10. package/dist/exports/client/Field-U5PHZTST.js +2 -0
  11. package/dist/exports/client/Field-U5PHZTST.js.map +7 -0
  12. package/dist/exports/client/RelationshipComponent-FGUPLCD2.js +2 -0
  13. package/dist/exports/client/RelationshipComponent-FGUPLCD2.js.map +7 -0
  14. package/dist/exports/client/bundled.css +1 -0
  15. package/dist/exports/client/chunk-35NZOHAF.js +2 -0
  16. package/dist/exports/client/chunk-35NZOHAF.js.map +7 -0
  17. package/dist/exports/client/chunk-3PZ2ZFQG.js +3 -0
  18. package/dist/exports/client/chunk-3PZ2ZFQG.js.map +7 -0
  19. package/dist/exports/client/chunk-FSTRW2TI.js +2 -0
  20. package/dist/exports/client/chunk-FSTRW2TI.js.map +7 -0
  21. package/dist/exports/client/chunk-M6MN4CA5.js +2 -0
  22. package/dist/exports/client/chunk-M6MN4CA5.js.map +7 -0
  23. package/dist/exports/client/chunk-Y5455JF3.js +2 -0
  24. package/dist/exports/client/chunk-Y5455JF3.js.map +7 -0
  25. package/dist/exports/client/component-FFLILIUZ.js +2 -0
  26. package/dist/exports/client/component-FFLILIUZ.js.map +7 -0
  27. package/dist/exports/client/component-RAVN56DE.js +2 -0
  28. package/dist/exports/client/component-RAVN56DE.js.map +7 -0
  29. package/dist/exports/client/component-Z34HXRX3.js +2 -0
  30. package/dist/exports/client/component-Z34HXRX3.js.map +7 -0
  31. package/dist/exports/client/index.d.ts +52 -0
  32. package/dist/exports/client/index.d.ts.map +1 -0
  33. package/dist/exports/client/index.js +36 -0
  34. package/dist/exports/client/index.js.map +7 -0
  35. package/dist/field/Field.d.ts +1 -2
  36. package/dist/field/Field.d.ts.map +1 -1
  37. package/dist/field/Field.js +69 -55
  38. package/dist/field/Field.js.map +1 -1
  39. package/dist/field/bundled.css +0 -0
  40. package/dist/field/features/align/feature.client.d.ts +4 -1
  41. package/dist/field/features/align/feature.client.d.ts.map +1 -1
  42. package/dist/field/features/align/feature.client.js +135 -54
  43. package/dist/field/features/align/feature.client.js.map +1 -1
  44. package/dist/field/features/align/feature.server.d.ts.map +1 -1
  45. package/dist/field/features/align/feature.server.js +4 -1
  46. package/dist/field/features/align/feature.server.js.map +1 -1
  47. package/dist/field/features/align/i18n.d.ts +3 -0
  48. package/dist/field/features/align/i18n.d.ts.map +1 -0
  49. package/dist/field/features/align/i18n.js +196 -0
  50. package/dist/field/features/align/i18n.js.map +1 -0
  51. package/dist/field/features/align/toolbarAlignGroup.d.ts +3 -0
  52. package/dist/field/features/align/toolbarAlignGroup.d.ts.map +1 -0
  53. package/dist/field/features/align/toolbarAlignGroup.js +12 -0
  54. package/dist/field/features/align/toolbarAlignGroup.js.map +1 -0
  55. package/dist/field/features/blockquote/feature.client.d.ts +4 -1
  56. package/dist/field/features/blockquote/feature.client.d.ts.map +1 -1
  57. package/dist/field/features/blockquote/feature.client.js +60 -46
  58. package/dist/field/features/blockquote/feature.client.js.map +1 -1
  59. package/dist/field/features/blockquote/feature.server.d.ts +1 -1
  60. package/dist/field/features/blockquote/feature.server.d.ts.map +1 -1
  61. package/dist/field/features/blockquote/feature.server.js +10 -7
  62. package/dist/field/features/blockquote/feature.server.js.map +1 -1
  63. package/dist/field/features/blockquote/i18n.d.ts +3 -0
  64. package/dist/field/features/blockquote/i18n.d.ts.map +1 -0
  65. package/dist/field/features/blockquote/i18n.js +100 -0
  66. package/dist/field/features/blockquote/i18n.js.map +1 -0
  67. package/dist/field/features/blockquote/markdownTransformer.d.ts.map +1 -1
  68. package/dist/field/features/blockquote/markdownTransformer.js +2 -4
  69. package/dist/field/features/blockquote/markdownTransformer.js.map +1 -1
  70. package/dist/field/features/blocks/component/BlockContent.d.ts.map +1 -1
  71. package/dist/field/features/blocks/component/BlockContent.js +77 -67
  72. package/dist/field/features/blocks/component/BlockContent.js.map +1 -1
  73. package/dist/field/features/blocks/component/FormSavePlugin.d.ts +1 -2
  74. package/dist/field/features/blocks/component/FormSavePlugin.d.ts.map +1 -1
  75. package/dist/field/features/blocks/component/FormSavePlugin.js +2 -2
  76. package/dist/field/features/blocks/component/FormSavePlugin.js.map +1 -1
  77. package/dist/field/features/blocks/component/index.d.ts +0 -1
  78. package/dist/field/features/blocks/component/index.d.ts.map +1 -1
  79. package/dist/field/features/blocks/component/index.js +60 -30
  80. package/dist/field/features/blocks/component/index.js.map +1 -1
  81. package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts +1 -1
  82. package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts.map +1 -1
  83. package/dist/field/features/blocks/component/removeEmptyArrayValues.js.map +1 -1
  84. package/dist/field/features/blocks/drawer/index.d.ts.map +1 -1
  85. package/dist/field/features/blocks/drawer/index.js +5 -11
  86. package/dist/field/features/blocks/drawer/index.js.map +1 -1
  87. package/dist/field/features/blocks/feature.client.d.ts +4 -1
  88. package/dist/field/features/blocks/feature.client.d.ts.map +1 -1
  89. package/dist/field/features/blocks/feature.client.js +58 -27
  90. package/dist/field/features/blocks/feature.client.js.map +1 -1
  91. package/dist/field/features/blocks/feature.server.d.ts +2 -5
  92. package/dist/field/features/blocks/feature.server.d.ts.map +1 -1
  93. package/dist/field/features/blocks/feature.server.js +62 -82
  94. package/dist/field/features/blocks/feature.server.js.map +1 -1
  95. package/dist/field/features/blocks/{populationPromise.d.ts → graphQLPopulationPromise.d.ts} +1 -1
  96. package/dist/field/features/blocks/graphQLPopulationPromise.d.ts.map +1 -0
  97. package/dist/field/features/blocks/graphQLPopulationPromise.js +31 -0
  98. package/dist/field/features/blocks/graphQLPopulationPromise.js.map +1 -0
  99. package/dist/field/features/blocks/i18n.d.ts +3 -0
  100. package/dist/field/features/blocks/i18n.d.ts.map +1 -0
  101. package/dist/field/features/blocks/i18n.js +100 -0
  102. package/dist/field/features/blocks/i18n.js.map +1 -0
  103. package/dist/field/features/blocks/nodes/BlocksNode.d.ts +2 -4
  104. package/dist/field/features/blocks/nodes/BlocksNode.d.ts.map +1 -1
  105. package/dist/field/features/blocks/nodes/BlocksNode.js +3 -3
  106. package/dist/field/features/blocks/nodes/BlocksNode.js.map +1 -1
  107. package/dist/field/features/blocks/plugin/commands.d.ts.map +1 -1
  108. package/dist/field/features/blocks/plugin/commands.js +1 -2
  109. package/dist/field/features/blocks/plugin/commands.js.map +1 -1
  110. package/dist/field/features/blocks/plugin/index.d.ts +3 -2
  111. package/dist/field/features/blocks/plugin/index.d.ts.map +1 -1
  112. package/dist/field/features/blocks/plugin/index.js +10 -11
  113. package/dist/field/features/blocks/plugin/index.js.map +1 -1
  114. package/dist/field/features/blocks/validate.d.ts.map +1 -1
  115. package/dist/field/features/blocks/validate.js +22 -36
  116. package/dist/field/features/blocks/validate.js.map +1 -1
  117. package/dist/field/features/converters/html/field/index.d.ts +14 -2
  118. package/dist/field/features/converters/html/field/index.d.ts.map +1 -1
  119. package/dist/field/features/converters/html/field/index.js +97 -57
  120. package/dist/field/features/converters/html/field/index.js.map +1 -1
  121. package/dist/field/features/createFeaturePropComponent.d.ts.map +1 -1
  122. package/dist/field/features/createFeaturePropComponent.js +6 -3
  123. package/dist/field/features/createFeaturePropComponent.js.map +1 -1
  124. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.client.d.ts +4 -1
  125. package/dist/field/features/debug/testRecorder/feature.client.d.ts.map +1 -0
  126. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.client.js.map +1 -1
  127. package/dist/field/features/debug/testRecorder/feature.server.d.ts.map +1 -0
  128. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.server.js +3 -2
  129. package/dist/field/features/debug/testRecorder/feature.server.js.map +1 -0
  130. package/dist/field/features/debug/testRecorder/plugin/index.d.ts +5 -0
  131. package/dist/field/features/debug/testRecorder/plugin/index.d.ts.map +1 -0
  132. package/dist/field/features/debug/{testrecorder → testRecorder}/plugin/index.js +68 -45
  133. package/dist/field/features/debug/testRecorder/plugin/index.js.map +1 -0
  134. package/dist/field/features/debug/{treeview → treeView}/feature.client.d.ts +4 -1
  135. package/dist/field/features/debug/treeView/feature.client.d.ts.map +1 -0
  136. package/dist/field/features/debug/{treeview → treeView}/feature.client.js.map +1 -1
  137. package/dist/field/features/debug/treeView/feature.server.d.ts.map +1 -0
  138. package/dist/field/features/debug/{treeview → treeView}/feature.server.js +3 -2
  139. package/dist/field/features/debug/treeView/feature.server.js.map +1 -0
  140. package/dist/field/features/debug/treeView/plugin/index.d.ts +4 -0
  141. package/dist/field/features/debug/treeView/plugin/index.d.ts.map +1 -0
  142. package/dist/field/features/debug/{treeview → treeView}/plugin/index.js +6 -8
  143. package/dist/field/features/debug/treeView/plugin/index.js.map +1 -0
  144. package/dist/field/features/format/bold/feature.client.d.ts +4 -1
  145. package/dist/field/features/format/bold/feature.client.d.ts.map +1 -1
  146. package/dist/field/features/format/bold/feature.client.js +26 -23
  147. package/dist/field/features/format/bold/feature.client.js.map +1 -1
  148. package/dist/field/features/format/bold/feature.server.d.ts.map +1 -1
  149. package/dist/field/features/format/bold/feature.server.js +2 -1
  150. package/dist/field/features/format/bold/feature.server.js.map +1 -1
  151. package/dist/field/features/format/{inlinecode → inlineCode}/feature.client.d.ts +4 -1
  152. package/dist/field/features/format/inlineCode/feature.client.d.ts.map +1 -0
  153. package/dist/field/features/format/inlineCode/feature.client.js +46 -0
  154. package/dist/field/features/format/inlineCode/feature.client.js.map +1 -0
  155. package/dist/field/features/format/inlineCode/feature.server.d.ts.map +1 -0
  156. package/dist/field/features/format/{inlinecode → inlineCode}/feature.server.js +3 -2
  157. package/dist/field/features/format/inlineCode/feature.server.js.map +1 -0
  158. package/dist/field/features/format/{inlinecode → inlineCode}/markdownTransformers.d.ts.map +1 -1
  159. package/dist/field/features/format/{inlinecode → inlineCode}/markdownTransformers.js.map +1 -1
  160. package/dist/field/features/format/italic/feature.client.d.ts +4 -1
  161. package/dist/field/features/format/italic/feature.client.d.ts.map +1 -1
  162. package/dist/field/features/format/italic/feature.client.js +27 -24
  163. package/dist/field/features/format/italic/feature.client.js.map +1 -1
  164. package/dist/field/features/format/italic/feature.server.d.ts.map +1 -1
  165. package/dist/field/features/format/italic/feature.server.js +2 -1
  166. package/dist/field/features/format/italic/feature.server.js.map +1 -1
  167. package/dist/field/features/format/shared/toolbarFormatGroup.d.ts +3 -0
  168. package/dist/field/features/format/shared/toolbarFormatGroup.d.ts.map +1 -0
  169. package/dist/field/features/format/shared/toolbarFormatGroup.js +10 -0
  170. package/dist/field/features/format/shared/toolbarFormatGroup.js.map +1 -0
  171. package/dist/field/features/format/strikethrough/feature.client.d.ts +4 -1
  172. package/dist/field/features/format/strikethrough/feature.client.d.ts.map +1 -1
  173. package/dist/field/features/format/strikethrough/feature.client.js +27 -24
  174. package/dist/field/features/format/strikethrough/feature.client.js.map +1 -1
  175. package/dist/field/features/format/strikethrough/feature.server.d.ts.map +1 -1
  176. package/dist/field/features/format/strikethrough/feature.server.js +2 -1
  177. package/dist/field/features/format/strikethrough/feature.server.js.map +1 -1
  178. package/dist/field/features/format/subscript/feature.client.d.ts +4 -1
  179. package/dist/field/features/format/subscript/feature.client.d.ts.map +1 -1
  180. package/dist/field/features/format/subscript/feature.client.js +25 -22
  181. package/dist/field/features/format/subscript/feature.client.js.map +1 -1
  182. package/dist/field/features/format/subscript/feature.server.d.ts.map +1 -1
  183. package/dist/field/features/format/subscript/feature.server.js +2 -1
  184. package/dist/field/features/format/subscript/feature.server.js.map +1 -1
  185. package/dist/field/features/format/superscript/feature.client.d.ts +4 -1
  186. package/dist/field/features/format/superscript/feature.client.d.ts.map +1 -1
  187. package/dist/field/features/format/superscript/feature.client.js +25 -22
  188. package/dist/field/features/format/superscript/feature.client.js.map +1 -1
  189. package/dist/field/features/format/superscript/feature.server.d.ts.map +1 -1
  190. package/dist/field/features/format/superscript/feature.server.js +2 -1
  191. package/dist/field/features/format/superscript/feature.server.js.map +1 -1
  192. package/dist/field/features/format/underline/feature.client.d.ts +4 -1
  193. package/dist/field/features/format/underline/feature.client.d.ts.map +1 -1
  194. package/dist/field/features/format/underline/feature.client.js +25 -22
  195. package/dist/field/features/format/underline/feature.client.js.map +1 -1
  196. package/dist/field/features/format/underline/feature.server.d.ts.map +1 -1
  197. package/dist/field/features/format/underline/feature.server.js +2 -1
  198. package/dist/field/features/format/underline/feature.server.js.map +1 -1
  199. package/dist/field/features/heading/feature.client.d.ts +4 -1
  200. package/dist/field/features/heading/feature.client.d.ts.map +1 -1
  201. package/dist/field/features/heading/feature.client.js +75 -54
  202. package/dist/field/features/heading/feature.client.js.map +1 -1
  203. package/dist/field/features/heading/feature.server.d.ts.map +1 -1
  204. package/dist/field/features/heading/feature.server.js +9 -6
  205. package/dist/field/features/heading/feature.server.js.map +1 -1
  206. package/dist/field/features/heading/i18n.d.ts +3 -0
  207. package/dist/field/features/heading/i18n.d.ts.map +1 -0
  208. package/dist/field/features/heading/i18n.js +100 -0
  209. package/dist/field/features/heading/i18n.js.map +1 -0
  210. package/dist/field/features/heading/markdownTransformer.d.ts.map +1 -1
  211. package/dist/field/features/heading/markdownTransformer.js +1 -2
  212. package/dist/field/features/heading/markdownTransformer.js.map +1 -1
  213. package/dist/field/features/horizontalRule/component/index.d.ts.map +1 -0
  214. package/dist/field/features/{horizontalrule → horizontalRule}/component/index.js +11 -8
  215. package/dist/field/features/horizontalRule/component/index.js.map +1 -0
  216. package/dist/field/features/{horizontalrule → horizontalRule}/feature.client.d.ts +4 -1
  217. package/dist/field/features/horizontalRule/feature.client.d.ts.map +1 -0
  218. package/dist/field/features/horizontalRule/feature.client.js +77 -0
  219. package/dist/field/features/horizontalRule/feature.client.js.map +1 -0
  220. package/dist/field/features/horizontalRule/feature.server.d.ts.map +1 -0
  221. package/dist/field/features/{horizontalrule → horizontalRule}/feature.server.js +8 -5
  222. package/dist/field/features/horizontalRule/feature.server.js.map +1 -0
  223. package/dist/field/features/horizontalRule/i18n.d.ts +3 -0
  224. package/dist/field/features/horizontalRule/i18n.d.ts.map +1 -0
  225. package/dist/field/features/horizontalRule/i18n.js +100 -0
  226. package/dist/field/features/horizontalRule/i18n.js.map +1 -0
  227. package/dist/field/features/{horizontalrule → horizontalRule}/markdownTransformer.d.ts.map +1 -1
  228. package/dist/field/features/{horizontalrule → horizontalRule}/markdownTransformer.js.map +1 -1
  229. package/dist/field/features/{horizontalrule → horizontalRule}/nodes/HorizontalRuleNode.d.ts +3 -5
  230. package/dist/field/features/horizontalRule/nodes/HorizontalRuleNode.d.ts.map +1 -0
  231. package/dist/field/features/{horizontalrule → horizontalRule}/nodes/HorizontalRuleNode.js +10 -7
  232. package/dist/field/features/horizontalRule/nodes/HorizontalRuleNode.js.map +1 -0
  233. package/dist/field/features/horizontalRule/plugin/index.d.ts +7 -0
  234. package/dist/field/features/horizontalRule/plugin/index.d.ts.map +1 -0
  235. package/dist/field/features/{horizontalrule → horizontalRule}/plugin/index.js +5 -9
  236. package/dist/field/features/horizontalRule/plugin/index.js.map +1 -0
  237. package/dist/field/features/indent/feature.client.d.ts +4 -1
  238. package/dist/field/features/indent/feature.client.d.ts.map +1 -1
  239. package/dist/field/features/indent/feature.client.js +47 -42
  240. package/dist/field/features/indent/feature.client.js.map +1 -1
  241. package/dist/field/features/indent/feature.server.d.ts.map +1 -1
  242. package/dist/field/features/indent/feature.server.js +4 -1
  243. package/dist/field/features/indent/feature.server.js.map +1 -1
  244. package/dist/field/features/indent/i18n.d.ts +3 -0
  245. package/dist/field/features/indent/i18n.d.ts.map +1 -0
  246. package/dist/field/features/indent/i18n.js +132 -0
  247. package/dist/field/features/indent/i18n.js.map +1 -0
  248. package/dist/field/features/indent/toolbarIndentGroup.d.ts +3 -0
  249. package/dist/field/features/indent/toolbarIndentGroup.d.ts.map +1 -0
  250. package/dist/field/features/indent/toolbarIndentGroup.js +10 -0
  251. package/dist/field/features/indent/toolbarIndentGroup.js.map +1 -0
  252. package/dist/field/features/link/drawer/baseFields.d.ts +2 -3
  253. package/dist/field/features/link/drawer/baseFields.d.ts.map +1 -1
  254. package/dist/field/features/link/drawer/baseFields.js +30 -43
  255. package/dist/field/features/link/drawer/baseFields.js.map +1 -1
  256. package/dist/field/features/link/drawer/index.d.ts.map +1 -1
  257. package/dist/field/features/link/drawer/index.js +32 -31
  258. package/dist/field/features/link/drawer/index.js.map +1 -1
  259. package/dist/field/features/link/drawer/types.d.ts +5 -3
  260. package/dist/field/features/link/drawer/types.d.ts.map +1 -1
  261. package/dist/field/features/link/drawer/types.js.map +1 -1
  262. package/dist/field/features/link/feature.client.d.ts +13 -1
  263. package/dist/field/features/link/feature.client.d.ts.map +1 -1
  264. package/dist/field/features/link/feature.client.js +65 -47
  265. package/dist/field/features/link/feature.client.js.map +1 -1
  266. package/dist/field/features/link/feature.server.d.ts +10 -6
  267. package/dist/field/features/link/feature.server.d.ts.map +1 -1
  268. package/dist/field/features/link/feature.server.js +66 -17
  269. package/dist/field/features/link/feature.server.js.map +1 -1
  270. package/dist/field/features/link/{populationPromise.d.ts → graphQLPopulationPromise.d.ts} +1 -1
  271. package/dist/field/features/link/graphQLPopulationPromise.d.ts.map +1 -0
  272. package/dist/field/features/link/graphQLPopulationPromise.js +31 -0
  273. package/dist/field/features/link/graphQLPopulationPromise.js.map +1 -0
  274. package/dist/field/features/link/i18n.d.ts +3 -0
  275. package/dist/field/features/link/i18n.d.ts.map +1 -0
  276. package/dist/field/features/link/i18n.js +100 -0
  277. package/dist/field/features/link/i18n.js.map +1 -0
  278. package/dist/field/features/link/markdownTransformer.d.ts +6 -0
  279. package/dist/field/features/link/markdownTransformer.d.ts.map +1 -0
  280. package/dist/field/features/link/markdownTransformer.js +50 -0
  281. package/dist/field/features/link/markdownTransformer.js.map +1 -0
  282. package/dist/field/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  283. package/dist/field/features/link/nodes/AutoLinkNode.js +3 -2
  284. package/dist/field/features/link/nodes/AutoLinkNode.js.map +1 -1
  285. package/dist/field/features/link/nodes/LinkNode.d.ts +9 -8
  286. package/dist/field/features/link/nodes/LinkNode.d.ts.map +1 -1
  287. package/dist/field/features/link/nodes/LinkNode.js +28 -11
  288. package/dist/field/features/link/nodes/LinkNode.js.map +1 -1
  289. package/dist/field/features/link/nodes/types.d.ts +2 -1
  290. package/dist/field/features/link/nodes/types.d.ts.map +1 -1
  291. package/dist/field/features/link/nodes/types.js.map +1 -1
  292. package/dist/field/features/link/plugins/autoLink/index.d.ts +3 -2
  293. package/dist/field/features/link/plugins/autoLink/index.d.ts.map +1 -1
  294. package/dist/field/features/link/plugins/autoLink/index.js +11 -12
  295. package/dist/field/features/link/plugins/autoLink/index.js.map +1 -1
  296. package/dist/field/features/link/plugins/clickableLink/index.d.ts +3 -2
  297. package/dist/field/features/link/plugins/clickableLink/index.d.ts.map +1 -1
  298. package/dist/field/features/link/plugins/clickableLink/index.js +5 -6
  299. package/dist/field/features/link/plugins/clickableLink/index.js.map +1 -1
  300. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -1
  301. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js +1 -2
  302. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -1
  303. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  304. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +179 -143
  305. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  306. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts +3 -4
  307. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts.map +1 -1
  308. package/dist/field/features/link/plugins/floatingLinkEditor/index.js +2 -2
  309. package/dist/field/features/link/plugins/floatingLinkEditor/index.js.map +1 -1
  310. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts +3 -6
  311. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +1 -1
  312. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js +12 -30
  313. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js.map +1 -1
  314. package/dist/field/features/link/plugins/link/index.d.ts +3 -1
  315. package/dist/field/features/link/plugins/link/index.d.ts.map +1 -1
  316. package/dist/field/features/link/plugins/link/index.js +7 -16
  317. package/dist/field/features/link/plugins/link/index.js.map +1 -1
  318. package/dist/field/features/link/validate.d.ts +6 -0
  319. package/dist/field/features/link/validate.d.ts.map +1 -0
  320. package/dist/field/features/link/validate.js +28 -0
  321. package/dist/field/features/link/validate.js.map +1 -0
  322. package/dist/field/features/lists/checklist/feature.client.d.ts +4 -1
  323. package/dist/field/features/lists/checklist/feature.client.d.ts.map +1 -1
  324. package/dist/field/features/lists/checklist/feature.client.js +69 -44
  325. package/dist/field/features/lists/checklist/feature.client.js.map +1 -1
  326. package/dist/field/features/lists/checklist/feature.server.d.ts +1 -1
  327. package/dist/field/features/lists/checklist/feature.server.d.ts.map +1 -1
  328. package/dist/field/features/lists/checklist/feature.server.js +13 -10
  329. package/dist/field/features/lists/checklist/feature.server.js.map +1 -1
  330. package/dist/field/features/lists/checklist/i18n.d.ts +3 -0
  331. package/dist/field/features/lists/checklist/i18n.d.ts.map +1 -0
  332. package/dist/field/features/lists/checklist/i18n.js +100 -0
  333. package/dist/field/features/lists/checklist/i18n.js.map +1 -0
  334. package/dist/field/features/lists/checklist/markdownTransformers.d.ts.map +1 -1
  335. package/dist/field/features/lists/checklist/markdownTransformers.js +2 -3
  336. package/dist/field/features/lists/checklist/markdownTransformers.js.map +1 -1
  337. package/dist/field/features/lists/checklist/plugin/index.d.ts +2 -2
  338. package/dist/field/features/lists/checklist/plugin/index.d.ts.map +1 -1
  339. package/dist/field/features/lists/checklist/plugin/index.js +5 -5
  340. package/dist/field/features/lists/checklist/plugin/index.js.map +1 -1
  341. package/dist/field/features/lists/htmlConverter.d.ts.map +1 -1
  342. package/dist/field/features/lists/htmlConverter.js +13 -6
  343. package/dist/field/features/lists/htmlConverter.js.map +1 -1
  344. package/dist/field/features/lists/{orderedlist → orderedList}/feature.client.d.ts +4 -1
  345. package/dist/field/features/lists/orderedList/feature.client.d.ts.map +1 -0
  346. package/dist/field/features/lists/orderedList/feature.client.js +97 -0
  347. package/dist/field/features/lists/orderedList/feature.client.js.map +1 -0
  348. package/dist/field/features/lists/orderedList/feature.server.d.ts.map +1 -0
  349. package/dist/field/features/lists/{orderedlist → orderedList}/feature.server.js +12 -9
  350. package/dist/field/features/lists/orderedList/feature.server.js.map +1 -0
  351. package/dist/field/features/lists/orderedList/i18n.d.ts +3 -0
  352. package/dist/field/features/lists/orderedList/i18n.d.ts.map +1 -0
  353. package/dist/field/features/lists/orderedList/i18n.js +100 -0
  354. package/dist/field/features/lists/orderedList/i18n.js.map +1 -0
  355. package/dist/field/features/lists/orderedList/markdownTransformer.d.ts.map +1 -0
  356. package/dist/field/features/lists/{orderedlist → orderedList}/markdownTransformer.js +2 -3
  357. package/dist/field/features/lists/orderedList/markdownTransformer.js.map +1 -0
  358. package/dist/field/features/lists/plugin/index.d.ts +2 -2
  359. package/dist/field/features/lists/plugin/index.d.ts.map +1 -1
  360. package/dist/field/features/lists/plugin/index.js +5 -5
  361. package/dist/field/features/lists/plugin/index.js.map +1 -1
  362. package/dist/field/features/lists/{common → shared}/markdown.d.ts.map +1 -1
  363. package/dist/field/features/lists/{common → shared}/markdown.js +1 -2
  364. package/dist/field/features/lists/shared/markdown.js.map +1 -0
  365. package/dist/field/features/lists/shared/slashMenuListGroup.d.ts +3 -0
  366. package/dist/field/features/lists/shared/slashMenuListGroup.d.ts.map +1 -0
  367. package/dist/field/features/lists/shared/slashMenuListGroup.js +11 -0
  368. package/dist/field/features/lists/shared/slashMenuListGroup.js.map +1 -0
  369. package/dist/field/features/lists/{unorderedlist → unorderedList}/feature.client.d.ts +4 -1
  370. package/dist/field/features/lists/unorderedList/feature.client.d.ts.map +1 -0
  371. package/dist/field/features/lists/unorderedList/feature.client.js +97 -0
  372. package/dist/field/features/lists/unorderedList/feature.client.js.map +1 -0
  373. package/dist/field/features/lists/unorderedList/feature.server.d.ts.map +1 -0
  374. package/dist/field/features/lists/{unorderedlist → unorderedList}/feature.server.js +11 -8
  375. package/dist/field/features/lists/unorderedList/feature.server.js.map +1 -0
  376. package/dist/field/features/lists/unorderedList/i18n.d.ts +3 -0
  377. package/dist/field/features/lists/unorderedList/i18n.d.ts.map +1 -0
  378. package/dist/field/features/lists/unorderedList/i18n.js +100 -0
  379. package/dist/field/features/lists/unorderedList/i18n.js.map +1 -0
  380. package/dist/field/features/lists/unorderedList/markdownTransformer.d.ts.map +1 -0
  381. package/dist/field/features/lists/{unorderedlist → unorderedList}/markdownTransformer.js +2 -3
  382. package/dist/field/features/lists/unorderedList/markdownTransformer.js.map +1 -0
  383. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -1
  384. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +2 -4
  385. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -1
  386. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts +4 -1
  387. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -1
  388. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -1
  389. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js +2 -1
  390. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -1
  391. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +9 -2
  392. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
  393. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +3 -6
  394. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -1
  395. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +4 -5
  396. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  397. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +1 -1
  398. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js +1 -1
  399. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +1 -1
  400. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js +2 -2
  401. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +1 -1
  402. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -1
  403. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js +2 -4
  404. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -1
  405. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -1
  406. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js +2 -4
  407. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -1
  408. package/dist/field/features/migrations/slateToLexical/converter/index.d.ts.map +1 -1
  409. package/dist/field/features/migrations/slateToLexical/converter/index.js +2 -1
  410. package/dist/field/features/migrations/slateToLexical/converter/index.js.map +1 -1
  411. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts +4 -1
  412. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts.map +1 -1
  413. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts.map +1 -1
  414. package/dist/field/features/migrations/slateToLexical/feature.server.js +2 -1
  415. package/dist/field/features/migrations/slateToLexical/feature.server.js.map +1 -1
  416. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +9 -2
  417. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
  418. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +3 -6
  419. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -1
  420. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +4 -5
  421. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  422. package/dist/field/features/paragraph/feature.client.d.ts +4 -1
  423. package/dist/field/features/paragraph/feature.client.d.ts.map +1 -1
  424. package/dist/field/features/paragraph/feature.client.js +54 -41
  425. package/dist/field/features/paragraph/feature.client.js.map +1 -1
  426. package/dist/field/features/paragraph/feature.server.d.ts.map +1 -1
  427. package/dist/field/features/paragraph/feature.server.js +4 -1
  428. package/dist/field/features/paragraph/feature.server.js.map +1 -1
  429. package/dist/field/features/paragraph/i18n.d.ts +3 -0
  430. package/dist/field/features/paragraph/i18n.d.ts.map +1 -0
  431. package/dist/field/features/paragraph/i18n.js +132 -0
  432. package/dist/field/features/paragraph/i18n.js.map +1 -0
  433. package/dist/field/features/relationship/drawer/commands.d.ts.map +1 -1
  434. package/dist/field/features/relationship/drawer/commands.js +1 -2
  435. package/dist/field/features/relationship/drawer/commands.js.map +1 -1
  436. package/dist/field/features/relationship/drawer/index.d.ts.map +1 -1
  437. package/dist/field/features/relationship/drawer/index.js +18 -16
  438. package/dist/field/features/relationship/drawer/index.js.map +1 -1
  439. package/dist/field/features/relationship/feature.client.d.ts +17 -2
  440. package/dist/field/features/relationship/feature.client.d.ts.map +1 -1
  441. package/dist/field/features/relationship/feature.client.js +51 -28
  442. package/dist/field/features/relationship/feature.client.js.map +1 -1
  443. package/dist/field/features/relationship/feature.server.d.ts +10 -1
  444. package/dist/field/features/relationship/feature.server.d.ts.map +1 -1
  445. package/dist/field/features/relationship/feature.server.js +43 -8
  446. package/dist/field/features/relationship/feature.server.js.map +1 -1
  447. package/dist/field/features/relationship/graphQLPopulationPromise.d.ts +5 -0
  448. package/dist/field/features/relationship/graphQLPopulationPromise.d.ts.map +1 -0
  449. package/dist/field/features/relationship/graphQLPopulationPromise.js +29 -0
  450. package/dist/field/features/relationship/graphQLPopulationPromise.js.map +1 -0
  451. package/dist/field/features/relationship/i18n.d.ts +3 -0
  452. package/dist/field/features/relationship/i18n.d.ts.map +1 -0
  453. package/dist/field/features/relationship/i18n.js +100 -0
  454. package/dist/field/features/relationship/i18n.js.map +1 -0
  455. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts +4 -9
  456. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts.map +1 -1
  457. package/dist/field/features/relationship/nodes/RelationshipNode.js +12 -11
  458. package/dist/field/features/relationship/nodes/RelationshipNode.js.map +1 -1
  459. package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts.map +1 -1
  460. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js +119 -56
  461. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js.map +1 -1
  462. package/dist/field/features/relationship/plugins/index.d.ts +2 -2
  463. package/dist/field/features/relationship/plugins/index.d.ts.map +1 -1
  464. package/dist/field/features/relationship/plugins/index.js +16 -18
  465. package/dist/field/features/relationship/plugins/index.js.map +1 -1
  466. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +1 -1
  467. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js +1 -3
  468. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js.map +1 -1
  469. package/dist/field/features/shared/slashMenu/basicGroup.d.ts +3 -0
  470. package/dist/field/features/shared/slashMenu/basicGroup.d.ts.map +1 -0
  471. package/dist/field/features/shared/slashMenu/basicGroup.js +11 -0
  472. package/dist/field/features/shared/slashMenu/basicGroup.js.map +1 -0
  473. package/dist/field/features/shared/toolbar/addDropdownGroup.d.ts +3 -0
  474. package/dist/field/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -0
  475. package/dist/field/features/shared/toolbar/addDropdownGroup.js +12 -0
  476. package/dist/field/features/shared/toolbar/addDropdownGroup.js.map +1 -0
  477. package/dist/field/features/shared/toolbar/featureButtonsGroup.d.ts +3 -0
  478. package/dist/field/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -0
  479. package/dist/field/features/shared/toolbar/featureButtonsGroup.js +10 -0
  480. package/dist/field/features/shared/toolbar/featureButtonsGroup.js.map +1 -0
  481. package/dist/field/features/shared/toolbar/textDropdownGroup.d.ts +3 -0
  482. package/dist/field/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -0
  483. package/dist/field/features/shared/toolbar/textDropdownGroup.js +12 -0
  484. package/dist/field/features/shared/toolbar/textDropdownGroup.js.map +1 -0
  485. package/dist/field/features/toolbars/fixed/Toolbar/index.d.ts +5 -0
  486. package/dist/field/features/toolbars/fixed/Toolbar/index.d.ts.map +1 -0
  487. package/dist/field/features/toolbars/fixed/Toolbar/index.js +207 -0
  488. package/dist/field/features/toolbars/fixed/Toolbar/index.js.map +1 -0
  489. package/dist/field/features/toolbars/fixed/feature.client.d.ts +7 -0
  490. package/dist/field/features/toolbars/fixed/feature.client.d.ts.map +1 -0
  491. package/dist/field/features/toolbars/fixed/feature.client.js +20 -0
  492. package/dist/field/features/toolbars/fixed/feature.client.js.map +1 -0
  493. package/dist/field/features/toolbars/fixed/feature.server.d.ts +19 -0
  494. package/dist/field/features/toolbars/fixed/feature.server.d.ts.map +1 -0
  495. package/dist/field/features/toolbars/fixed/feature.server.js +21 -0
  496. package/dist/field/features/toolbars/fixed/feature.server.js.map +1 -0
  497. package/dist/field/features/toolbars/inline/Toolbar/index.d.ts +4 -0
  498. package/dist/field/features/toolbars/inline/Toolbar/index.d.ts.map +1 -0
  499. package/dist/field/features/toolbars/inline/Toolbar/index.js +319 -0
  500. package/dist/field/features/toolbars/inline/Toolbar/index.js.map +1 -0
  501. package/dist/field/features/toolbars/inline/feature.client.d.ts +6 -0
  502. package/dist/field/features/toolbars/inline/feature.client.d.ts.map +1 -0
  503. package/dist/field/features/toolbars/inline/feature.client.js +20 -0
  504. package/dist/field/features/toolbars/inline/feature.client.js.map +1 -0
  505. package/dist/field/features/toolbars/inline/feature.server.d.ts +3 -0
  506. package/dist/field/features/toolbars/inline/feature.server.d.ts.map +1 -0
  507. package/dist/field/features/toolbars/inline/feature.server.js +16 -0
  508. package/dist/field/features/toolbars/inline/feature.server.js.map +1 -0
  509. package/dist/field/features/toolbars/shared/ToolbarButton/index.d.ts +10 -0
  510. package/dist/field/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -0
  511. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/shared}/ToolbarButton/index.js +34 -23
  512. package/dist/field/features/toolbars/shared/ToolbarButton/index.js.map +1 -0
  513. package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts +22 -0
  514. package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -0
  515. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/shared}/ToolbarDropdown/DropDown.js +75 -102
  516. package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -0
  517. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.d.ts +23 -0
  518. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -0
  519. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.js +141 -0
  520. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -0
  521. package/dist/field/features/toolbars/types.d.ts +48 -0
  522. package/dist/field/features/toolbars/types.d.ts.map +1 -0
  523. package/dist/field/features/toolbars/types.js.map +1 -0
  524. package/dist/field/features/typeUtilities.d.ts +8 -0
  525. package/dist/field/features/typeUtilities.d.ts.map +1 -0
  526. package/dist/field/features/typeUtilities.js +8 -0
  527. package/dist/field/features/typeUtilities.js.map +1 -0
  528. package/dist/field/features/types.d.ts +259 -69
  529. package/dist/field/features/types.d.ts.map +1 -1
  530. package/dist/field/features/types.js.map +1 -1
  531. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts +1 -1
  532. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts.map +1 -1
  533. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js +35 -37
  534. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js.map +1 -1
  535. package/dist/field/features/upload/component/index.d.ts.map +1 -1
  536. package/dist/field/features/upload/component/index.js +160 -85
  537. package/dist/field/features/upload/component/index.js.map +1 -1
  538. package/dist/field/features/upload/drawer/commands.d.ts.map +1 -1
  539. package/dist/field/features/upload/drawer/commands.js +1 -2
  540. package/dist/field/features/upload/drawer/commands.js.map +1 -1
  541. package/dist/field/features/upload/drawer/index.d.ts.map +1 -1
  542. package/dist/field/features/upload/drawer/index.js +17 -18
  543. package/dist/field/features/upload/drawer/index.js.map +1 -1
  544. package/dist/field/features/upload/feature.client.d.ts +4 -1
  545. package/dist/field/features/upload/feature.client.d.ts.map +1 -1
  546. package/dist/field/features/upload/feature.client.js +52 -26
  547. package/dist/field/features/upload/feature.client.js.map +1 -1
  548. package/dist/field/features/upload/feature.server.d.ts +10 -3
  549. package/dist/field/features/upload/feature.server.d.ts.map +1 -1
  550. package/dist/field/features/upload/feature.server.js +93 -15
  551. package/dist/field/features/upload/feature.server.js.map +1 -1
  552. package/dist/field/features/upload/{populationPromise.d.ts → graphQLPopulationPromise.d.ts} +1 -1
  553. package/dist/field/features/upload/graphQLPopulationPromise.d.ts.map +1 -0
  554. package/dist/field/features/upload/graphQLPopulationPromise.js +52 -0
  555. package/dist/field/features/upload/graphQLPopulationPromise.js.map +1 -0
  556. package/dist/field/features/upload/i18n.d.ts +3 -0
  557. package/dist/field/features/upload/i18n.d.ts.map +1 -0
  558. package/dist/field/features/upload/i18n.js +100 -0
  559. package/dist/field/features/upload/i18n.js.map +1 -0
  560. package/dist/field/features/upload/nodes/UploadNode.d.ts +7 -19
  561. package/dist/field/features/upload/nodes/UploadNode.d.ts.map +1 -1
  562. package/dist/field/features/upload/nodes/UploadNode.js +45 -15
  563. package/dist/field/features/upload/nodes/UploadNode.js.map +1 -1
  564. package/dist/field/features/upload/plugin/index.d.ts +5 -4
  565. package/dist/field/features/upload/plugin/index.d.ts.map +1 -1
  566. package/dist/field/features/upload/plugin/index.js +18 -20
  567. package/dist/field/features/upload/plugin/index.js.map +1 -1
  568. package/dist/field/features/upload/validate.d.ts +2 -1
  569. package/dist/field/features/upload/validate.d.ts.map +1 -1
  570. package/dist/field/features/upload/validate.js +37 -10
  571. package/dist/field/features/upload/validate.js.map +1 -1
  572. package/dist/field/index.d.ts +3 -1
  573. package/dist/field/index.d.ts.map +1 -1
  574. package/dist/field/index.js +35 -86
  575. package/dist/field/index.js.map +1 -1
  576. package/dist/field/lexical/EditorPlugin.d.ts +1 -0
  577. package/dist/field/lexical/EditorPlugin.d.ts.map +1 -1
  578. package/dist/field/lexical/EditorPlugin.js +8 -4
  579. package/dist/field/lexical/EditorPlugin.js.map +1 -1
  580. package/dist/field/lexical/LexicalEditor.d.ts +3 -1
  581. package/dist/field/lexical/LexicalEditor.d.ts.map +1 -1
  582. package/dist/field/lexical/LexicalEditor.js +157 -77
  583. package/dist/field/lexical/LexicalEditor.js.map +1 -1
  584. package/dist/field/lexical/LexicalProvider.d.ts +1 -2
  585. package/dist/field/lexical/LexicalProvider.d.ts.map +1 -1
  586. package/dist/field/lexical/LexicalProvider.js +52 -41
  587. package/dist/field/lexical/LexicalProvider.js.map +1 -1
  588. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts +15 -4
  589. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  590. package/dist/field/lexical/config/client/EditorConfigProvider.js +61 -11
  591. package/dist/field/lexical/config/client/EditorConfigProvider.js.map +1 -1
  592. package/dist/field/lexical/config/client/default.d.ts +1 -1
  593. package/dist/field/lexical/config/client/default.d.ts.map +1 -1
  594. package/dist/field/lexical/config/client/default.js.map +1 -1
  595. package/dist/field/lexical/config/client/sanitize.d.ts +3 -2
  596. package/dist/field/lexical/config/client/sanitize.d.ts.map +1 -1
  597. package/dist/field/lexical/config/client/sanitize.js +83 -33
  598. package/dist/field/lexical/config/client/sanitize.js.map +1 -1
  599. package/dist/field/lexical/config/server/default.d.ts +2 -3
  600. package/dist/field/lexical/config/server/default.d.ts.map +1 -1
  601. package/dist/field/lexical/config/server/default.js +11 -11
  602. package/dist/field/lexical/config/server/default.js.map +1 -1
  603. package/dist/field/lexical/config/server/loader.d.ts +5 -2
  604. package/dist/field/lexical/config/server/loader.d.ts.map +1 -1
  605. package/dist/field/lexical/config/server/loader.js +4 -2
  606. package/dist/field/lexical/config/server/loader.js.map +1 -1
  607. package/dist/field/lexical/config/server/sanitize.d.ts +2 -1
  608. package/dist/field/lexical/config/server/sanitize.d.ts.map +1 -1
  609. package/dist/field/lexical/config/server/sanitize.js +39 -9
  610. package/dist/field/lexical/config/server/sanitize.js.map +1 -1
  611. package/dist/field/lexical/config/types.d.ts +3 -1
  612. package/dist/field/lexical/config/types.d.ts.map +1 -1
  613. package/dist/field/lexical/config/types.js.map +1 -1
  614. package/dist/field/lexical/nodes/index.d.ts +1 -2
  615. package/dist/field/lexical/nodes/index.d.ts.map +1 -1
  616. package/dist/field/lexical/nodes/index.js.map +1 -1
  617. package/dist/field/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -1
  618. package/dist/field/lexical/plugins/MarkdownShortcut/index.js +3 -3
  619. package/dist/field/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  620. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +10 -10
  621. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -1
  622. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +74 -77
  623. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  624. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +5 -5
  625. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -1
  626. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +8 -10
  627. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -1
  628. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +19 -27
  629. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  630. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +1 -37
  631. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  632. package/dist/field/lexical/plugins/SlashMenu/index.d.ts +2 -2
  633. package/dist/field/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  634. package/dist/field/lexical/plugins/SlashMenu/index.js +108 -93
  635. package/dist/field/lexical/plugins/SlashMenu/index.js.map +1 -1
  636. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +2 -2
  637. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -1
  638. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js +39 -123
  639. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  640. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts +1 -1
  641. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +1 -1
  642. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +1 -1
  643. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +2 -2
  644. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  645. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js +109 -65
  646. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  647. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +8 -1
  648. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +1 -1
  649. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +83 -16
  650. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -1
  651. package/dist/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts +5 -0
  652. package/dist/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -0
  653. package/dist/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js +21 -0
  654. package/dist/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +1 -0
  655. package/dist/field/lexical/plugins/handles/{DraggableBlockPlugin → utils}/getNodeCloseToPoint.d.ts +5 -1
  656. package/dist/field/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts.map +1 -0
  657. package/dist/field/lexical/plugins/handles/{DraggableBlockPlugin → utils}/getNodeCloseToPoint.js +5 -18
  658. package/dist/field/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -0
  659. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +1 -1
  660. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +1 -2
  661. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -1
  662. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -1
  663. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js +4 -2
  664. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -1
  665. package/dist/field/lexical/theme/EditorTheme.d.ts.map +1 -1
  666. package/dist/field/lexical/theme/EditorTheme.js +1 -1
  667. package/dist/field/lexical/theme/EditorTheme.js.map +1 -1
  668. package/dist/field/lexical/ui/ContentEditable.d.ts +1 -1
  669. package/dist/field/lexical/ui/ContentEditable.d.ts.map +1 -1
  670. package/dist/field/lexical/ui/ContentEditable.js +3 -4
  671. package/dist/field/lexical/ui/ContentEditable.js.map +1 -1
  672. package/dist/field/lexical/ui/icons/AI/index.js +26 -17
  673. package/dist/field/lexical/ui/icons/AI/index.js.map +1 -1
  674. package/dist/field/lexical/ui/icons/Add/index.d.ts +3 -0
  675. package/dist/field/lexical/ui/icons/Add/index.d.ts.map +1 -0
  676. package/dist/field/lexical/ui/icons/Add/index.js +21 -0
  677. package/dist/field/lexical/ui/icons/Add/index.js.map +1 -0
  678. package/dist/field/lexical/ui/icons/Add/light.svg +4 -0
  679. package/dist/field/lexical/ui/icons/AlignCenter/index.js +21 -15
  680. package/dist/field/lexical/ui/icons/AlignCenter/index.js.map +1 -1
  681. package/dist/field/lexical/ui/icons/AlignJustify/index.js +21 -15
  682. package/dist/field/lexical/ui/icons/AlignJustify/index.js.map +1 -1
  683. package/dist/field/lexical/ui/icons/AlignLeft/index.js +21 -15
  684. package/dist/field/lexical/ui/icons/AlignLeft/index.js.map +1 -1
  685. package/dist/field/lexical/ui/icons/AlignRight/index.js +21 -15
  686. package/dist/field/lexical/ui/icons/AlignRight/index.js.map +1 -1
  687. package/dist/field/lexical/ui/icons/Block/index.js +30 -24
  688. package/dist/field/lexical/ui/icons/Block/index.js.map +1 -1
  689. package/dist/field/lexical/ui/icons/Blockquote/index.js +8 -6
  690. package/dist/field/lexical/ui/icons/Blockquote/index.js.map +1 -1
  691. package/dist/field/lexical/ui/icons/Bold/index.js +8 -6
  692. package/dist/field/lexical/ui/icons/Bold/index.js.map +1 -1
  693. package/dist/field/lexical/ui/icons/Checklist/index.js +19 -14
  694. package/dist/field/lexical/ui/icons/Checklist/index.js.map +1 -1
  695. package/dist/field/lexical/ui/icons/Code/index.js +14 -9
  696. package/dist/field/lexical/ui/icons/Code/index.js.map +1 -1
  697. package/dist/field/lexical/ui/icons/CodeBlock/index.js +14 -9
  698. package/dist/field/lexical/ui/icons/CodeBlock/index.js.map +1 -1
  699. package/dist/field/lexical/ui/icons/DraggableBlock/light.svg +9 -0
  700. package/dist/field/lexical/ui/icons/H1/index.js +8 -6
  701. package/dist/field/lexical/ui/icons/H1/index.js.map +1 -1
  702. package/dist/field/lexical/ui/icons/H2/index.js +8 -6
  703. package/dist/field/lexical/ui/icons/H2/index.js.map +1 -1
  704. package/dist/field/lexical/ui/icons/H3/index.js +8 -6
  705. package/dist/field/lexical/ui/icons/H3/index.js.map +1 -1
  706. package/dist/field/lexical/ui/icons/H4/index.js +8 -6
  707. package/dist/field/lexical/ui/icons/H4/index.js.map +1 -1
  708. package/dist/field/lexical/ui/icons/H5/index.js +8 -6
  709. package/dist/field/lexical/ui/icons/H5/index.js.map +1 -1
  710. package/dist/field/lexical/ui/icons/H6/index.js +8 -6
  711. package/dist/field/lexical/ui/icons/H6/index.js.map +1 -1
  712. package/dist/field/lexical/ui/icons/HorizontalRule/index.js +11 -9
  713. package/dist/field/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
  714. package/dist/field/lexical/ui/icons/IndentDecrease/index.js +25 -18
  715. package/dist/field/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
  716. package/dist/field/lexical/ui/icons/IndentIncrease/index.js +25 -18
  717. package/dist/field/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
  718. package/dist/field/lexical/ui/icons/Italic/index.js +8 -6
  719. package/dist/field/lexical/ui/icons/Italic/index.js.map +1 -1
  720. package/dist/field/lexical/ui/icons/Link/index.d.ts.map +1 -1
  721. package/dist/field/lexical/ui/icons/Link/index.js +10 -18
  722. package/dist/field/lexical/ui/icons/Link/index.js.map +1 -1
  723. package/dist/field/lexical/ui/icons/OrderedList/index.js +29 -21
  724. package/dist/field/lexical/ui/icons/OrderedList/index.js.map +1 -1
  725. package/dist/field/lexical/ui/icons/Relationship/index.js +26 -17
  726. package/dist/field/lexical/ui/icons/Relationship/index.js.map +1 -1
  727. package/dist/field/lexical/ui/icons/Strikethrough/index.js +14 -9
  728. package/dist/field/lexical/ui/icons/Strikethrough/index.js.map +1 -1
  729. package/dist/field/lexical/ui/icons/Subscript/index.js +8 -6
  730. package/dist/field/lexical/ui/icons/Subscript/index.js.map +1 -1
  731. package/dist/field/lexical/ui/icons/Superscript/index.js +8 -6
  732. package/dist/field/lexical/ui/icons/Superscript/index.js.map +1 -1
  733. package/dist/field/lexical/ui/icons/Text/index.js +8 -6
  734. package/dist/field/lexical/ui/icons/Text/index.js.map +1 -1
  735. package/dist/field/lexical/ui/icons/Underline/index.js +14 -9
  736. package/dist/field/lexical/ui/icons/Underline/index.js.map +1 -1
  737. package/dist/field/lexical/ui/icons/UnorderedList/index.js +45 -36
  738. package/dist/field/lexical/ui/icons/UnorderedList/index.js.map +1 -1
  739. package/dist/field/lexical/ui/icons/Upload/index.js +24 -18
  740. package/dist/field/lexical/ui/icons/Upload/index.js.map +1 -1
  741. package/dist/field/lexical/utils/getSelectedNode.d.ts.map +1 -1
  742. package/dist/field/lexical/utils/getSelectedNode.js +1 -2
  743. package/dist/field/lexical/utils/getSelectedNode.js.map +1 -1
  744. package/dist/field/lexical/utils/nodeFormat.d.ts +2 -2
  745. package/dist/field/lexical/utils/nodeFormat.d.ts.map +1 -1
  746. package/dist/field/lexical/utils/nodeFormat.js +1 -1
  747. package/dist/field/lexical/utils/nodeFormat.js.map +1 -1
  748. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts +11 -1
  749. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts.map +1 -1
  750. package/dist/field/lexical/utils/setFloatingElemPosition.js +16 -13
  751. package/dist/field/lexical/utils/setFloatingElemPosition.js.map +1 -1
  752. package/dist/field/lexical/utils/url.d.ts.map +1 -1
  753. package/dist/field/lexical/utils/url.js +13 -2
  754. package/dist/field/lexical/utils/url.js.map +1 -1
  755. package/dist/forEachNodeRecursively.d.ts +10 -0
  756. package/dist/forEachNodeRecursively.d.ts.map +1 -0
  757. package/dist/forEachNodeRecursively.js +24 -0
  758. package/dist/forEachNodeRecursively.js.map +1 -0
  759. package/dist/generateComponentMap.d.ts +1 -1
  760. package/dist/generateComponentMap.d.ts.map +1 -1
  761. package/dist/generateComponentMap.js +21 -29
  762. package/dist/generateComponentMap.js.map +1 -1
  763. package/dist/generateSchemaMap.d.ts +1 -1
  764. package/dist/generateSchemaMap.d.ts.map +1 -1
  765. package/dist/generateSchemaMap.js +4 -12
  766. package/dist/generateSchemaMap.js.map +1 -1
  767. package/dist/i18n.d.ts +3 -0
  768. package/dist/i18n.d.ts.map +1 -0
  769. package/dist/i18n.js +164 -0
  770. package/dist/i18n.js.map +1 -0
  771. package/dist/index.d.ts +21 -36
  772. package/dist/index.d.ts.map +1 -1
  773. package/dist/index.js +619 -200
  774. package/dist/index.js.map +1 -1
  775. package/dist/{populate → populateGraphQL}/defaultValue.d.ts +0 -1
  776. package/dist/populateGraphQL/defaultValue.d.ts.map +1 -0
  777. package/dist/{populate → populateGraphQL}/defaultValue.js +1 -19
  778. package/dist/populateGraphQL/defaultValue.js.map +1 -0
  779. package/dist/populateGraphQL/populate.d.ts +17 -0
  780. package/dist/populateGraphQL/populate.d.ts.map +1 -0
  781. package/dist/populateGraphQL/populate.js +28 -0
  782. package/dist/populateGraphQL/populate.js.map +1 -0
  783. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +12 -0
  784. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -0
  785. package/dist/populateGraphQL/populateLexicalPopulationPromises.js +37 -0
  786. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -0
  787. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts +28 -0
  788. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -0
  789. package/dist/{populate/recurseNestedFields.js → populateGraphQL/recursivelyPopulateFieldsForGraphQL.js} +7 -5
  790. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -0
  791. package/dist/recurseNodeTree.d.ts +9 -0
  792. package/dist/recurseNodeTree.d.ts.map +1 -0
  793. package/dist/recurseNodeTree.js +27 -0
  794. package/dist/recurseNodeTree.js.map +1 -0
  795. package/dist/types.d.ts +45 -8
  796. package/dist/types.d.ts.map +1 -1
  797. package/dist/types.js.map +1 -1
  798. package/dist/useLexicalFeature.d.ts.map +1 -1
  799. package/dist/useLexicalFeature.js +6 -3
  800. package/dist/useLexicalFeature.js.map +1 -1
  801. package/dist/validate/index.d.ts +2 -2
  802. package/dist/validate/index.d.ts.map +1 -1
  803. package/dist/validate/index.js +3 -2
  804. package/dist/validate/index.js.map +1 -1
  805. package/dist/validate/validateNodes.d.ts +1 -1
  806. package/dist/validate/validateNodes.d.ts.map +1 -1
  807. package/dist/validate/validateNodes.js +1 -1
  808. package/dist/validate/validateNodes.js.map +1 -1
  809. package/package.json +71 -53
  810. package/dist/exports/components.d.ts +0 -6
  811. package/dist/exports/components.d.ts.map +0 -1
  812. package/dist/exports/components.js +0 -7
  813. package/dist/exports/components.js.map +0 -1
  814. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts +0 -3
  815. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts.map +0 -1
  816. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js +0 -12
  817. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js.map +0 -1
  818. package/dist/field/features/blocks/component/index.scss +0 -153
  819. package/dist/field/features/blocks/populationPromise.d.ts.map +0 -1
  820. package/dist/field/features/blocks/populationPromise.js +0 -46
  821. package/dist/field/features/blocks/populationPromise.js.map +0 -1
  822. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts +0 -3
  823. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts.map +0 -1
  824. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js +0 -10
  825. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js.map +0 -1
  826. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts +0 -3
  827. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts.map +0 -1
  828. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js +0 -12
  829. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js.map +0 -1
  830. package/dist/field/features/debug/testrecorder/feature.client.d.ts.map +0 -1
  831. package/dist/field/features/debug/testrecorder/feature.server.d.ts.map +0 -1
  832. package/dist/field/features/debug/testrecorder/feature.server.js.map +0 -1
  833. package/dist/field/features/debug/testrecorder/plugin/index.d.ts +0 -5
  834. package/dist/field/features/debug/testrecorder/plugin/index.d.ts.map +0 -1
  835. package/dist/field/features/debug/testrecorder/plugin/index.js.map +0 -1
  836. package/dist/field/features/debug/testrecorder/plugin/index.scss +0 -49
  837. package/dist/field/features/debug/treeview/feature.client.d.ts.map +0 -1
  838. package/dist/field/features/debug/treeview/feature.server.d.ts.map +0 -1
  839. package/dist/field/features/debug/treeview/feature.server.js.map +0 -1
  840. package/dist/field/features/debug/treeview/plugin/index.d.ts +0 -4
  841. package/dist/field/features/debug/treeview/plugin/index.d.ts.map +0 -1
  842. package/dist/field/features/debug/treeview/plugin/index.js.map +0 -1
  843. package/dist/field/features/debug/treeview/plugin/index.scss +0 -78
  844. package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts +0 -3
  845. package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts.map +0 -1
  846. package/dist/field/features/format/common/floatingSelectToolbarSection.js +0 -10
  847. package/dist/field/features/format/common/floatingSelectToolbarSection.js.map +0 -1
  848. package/dist/field/features/format/inlinecode/feature.client.d.ts.map +0 -1
  849. package/dist/field/features/format/inlinecode/feature.client.js +0 -43
  850. package/dist/field/features/format/inlinecode/feature.client.js.map +0 -1
  851. package/dist/field/features/format/inlinecode/feature.server.d.ts.map +0 -1
  852. package/dist/field/features/format/inlinecode/feature.server.js.map +0 -1
  853. package/dist/field/features/horizontalrule/component/index.d.ts.map +0 -1
  854. package/dist/field/features/horizontalrule/component/index.js.map +0 -1
  855. package/dist/field/features/horizontalrule/feature.client.d.ts.map +0 -1
  856. package/dist/field/features/horizontalrule/feature.client.js +0 -53
  857. package/dist/field/features/horizontalrule/feature.client.js.map +0 -1
  858. package/dist/field/features/horizontalrule/feature.server.d.ts.map +0 -1
  859. package/dist/field/features/horizontalrule/feature.server.js.map +0 -1
  860. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.d.ts.map +0 -1
  861. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.js.map +0 -1
  862. package/dist/field/features/horizontalrule/plugin/index.d.ts +0 -6
  863. package/dist/field/features/horizontalrule/plugin/index.d.ts.map +0 -1
  864. package/dist/field/features/horizontalrule/plugin/index.js.map +0 -1
  865. package/dist/field/features/horizontalrule/plugin/index.scss +0 -20
  866. package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts +0 -3
  867. package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts.map +0 -1
  868. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js +0 -10
  869. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js.map +0 -1
  870. package/dist/field/features/indent/index.scss +0 -4
  871. package/dist/field/features/link/drawer/index.scss +0 -50
  872. package/dist/field/features/link/plugins/floatingLinkEditor/index.scss +0 -78
  873. package/dist/field/features/link/populationPromise.d.ts.map +0 -1
  874. package/dist/field/features/link/populationPromise.js +0 -46
  875. package/dist/field/features/link/populationPromise.js.map +0 -1
  876. package/dist/field/features/lists/common/markdown.js.map +0 -1
  877. package/dist/field/features/lists/orderedlist/feature.client.d.ts.map +0 -1
  878. package/dist/field/features/lists/orderedlist/feature.client.js +0 -72
  879. package/dist/field/features/lists/orderedlist/feature.client.js.map +0 -1
  880. package/dist/field/features/lists/orderedlist/feature.server.d.ts.map +0 -1
  881. package/dist/field/features/lists/orderedlist/feature.server.js.map +0 -1
  882. package/dist/field/features/lists/orderedlist/markdownTransformer.d.ts.map +0 -1
  883. package/dist/field/features/lists/orderedlist/markdownTransformer.js.map +0 -1
  884. package/dist/field/features/lists/unorderedlist/feature.client.d.ts.map +0 -1
  885. package/dist/field/features/lists/unorderedlist/feature.client.js +0 -72
  886. package/dist/field/features/lists/unorderedlist/feature.client.js.map +0 -1
  887. package/dist/field/features/lists/unorderedlist/feature.server.d.ts.map +0 -1
  888. package/dist/field/features/lists/unorderedlist/feature.server.js.map +0 -1
  889. package/dist/field/features/lists/unorderedlist/markdownTransformer.d.ts.map +0 -1
  890. package/dist/field/features/lists/unorderedlist/markdownTransformer.js.map +0 -1
  891. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss +0 -14
  892. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss +0 -14
  893. package/dist/field/features/relationship/nodes/components/index.scss +0 -97
  894. package/dist/field/features/relationship/populationPromise.d.ts +0 -4
  895. package/dist/field/features/relationship/populationPromise.d.ts.map +0 -1
  896. package/dist/field/features/relationship/populationPromise.js +0 -24
  897. package/dist/field/features/relationship/populationPromise.js.map +0 -1
  898. package/dist/field/features/upload/component/index.scss +0 -152
  899. package/dist/field/features/upload/populationPromise.d.ts.map +0 -1
  900. package/dist/field/features/upload/populationPromise.js +0 -46
  901. package/dist/field/features/upload/populationPromise.js.map +0 -1
  902. package/dist/field/index.scss +0 -46
  903. package/dist/field/lexical/LexicalEditor.scss +0 -56
  904. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts +0 -8
  905. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts.map +0 -1
  906. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js.map +0 -1
  907. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.scss +0 -37
  908. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts +0 -17
  909. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts.map +0 -1
  910. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js.map +0 -1
  911. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts +0 -18
  912. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts.map +0 -1
  913. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js +0 -42
  914. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js.map +0 -1
  915. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.scss +0 -100
  916. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts +0 -6
  917. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts.map +0 -1
  918. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js +0 -270
  919. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js.map +0 -1
  920. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.scss +0 -57
  921. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts +0 -40
  922. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts.map +0 -1
  923. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.js.map +0 -1
  924. package/dist/field/lexical/plugins/SlashMenu/index.scss +0 -61
  925. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.scss +0 -31
  926. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.d.ts.map +0 -1
  927. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js.map +0 -1
  928. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss +0 -55
  929. package/dist/field/lexical/theme/EditorTheme.scss +0 -505
  930. package/dist/field/lexical/ui/ContentEditable.scss +0 -25
  931. package/dist/populate/defaultValue.d.ts.map +0 -1
  932. package/dist/populate/defaultValue.js.map +0 -1
  933. package/dist/populate/populate.d.ts +0 -21
  934. package/dist/populate/populate.d.ts.map +0 -1
  935. package/dist/populate/populate.js +0 -21
  936. package/dist/populate/populate.js.map +0 -1
  937. package/dist/populate/recurseNestedFields.d.ts +0 -25
  938. package/dist/populate/recurseNestedFields.d.ts.map +0 -1
  939. package/dist/populate/recurseNestedFields.js.map +0 -1
  940. package/dist/populate/richTextRelationshipPromise.d.ts +0 -23
  941. package/dist/populate/richTextRelationshipPromise.d.ts.map +0 -1
  942. package/dist/populate/richTextRelationshipPromise.js +0 -68
  943. package/dist/populate/richTextRelationshipPromise.js.map +0 -1
  944. package/dist/scss/app.scss +0 -208
  945. package/dist/scss/colors.scss +0 -269
  946. package/dist/scss/queries.scss +0 -27
  947. package/dist/scss/resets.scss +0 -17
  948. package/dist/scss/styles.scss +0 -11
  949. package/dist/scss/svg.scss +0 -10
  950. package/dist/scss/toastify.scss +0 -58
  951. package/dist/scss/type.scss +0 -117
  952. package/dist/scss/vars.scss +0 -213
  953. package/dist/scss/z-index.scss +0 -9
  954. package/src/index.ts +0 -423
  955. /package/dist/field/features/debug/{testrecorder → testRecorder}/feature.client.js +0 -0
  956. /package/dist/field/features/debug/{testrecorder → testRecorder}/feature.server.d.ts +0 -0
  957. /package/dist/field/features/debug/{treeview → treeView}/feature.client.js +0 -0
  958. /package/dist/field/features/debug/{treeview → treeView}/feature.server.d.ts +0 -0
  959. /package/dist/field/features/format/{inlinecode → inlineCode}/feature.server.d.ts +0 -0
  960. /package/dist/field/features/format/{inlinecode → inlineCode}/markdownTransformers.d.ts +0 -0
  961. /package/dist/field/features/format/{inlinecode → inlineCode}/markdownTransformers.js +0 -0
  962. /package/dist/field/features/{horizontalrule → horizontalRule}/component/index.d.ts +0 -0
  963. /package/dist/field/features/{horizontalrule → horizontalRule}/feature.server.d.ts +0 -0
  964. /package/dist/field/features/{horizontalrule → horizontalRule}/markdownTransformer.d.ts +0 -0
  965. /package/dist/field/features/{horizontalrule → horizontalRule}/markdownTransformer.js +0 -0
  966. /package/dist/field/features/lists/{orderedlist → orderedList}/feature.server.d.ts +0 -0
  967. /package/dist/field/features/lists/{orderedlist → orderedList}/markdownTransformer.d.ts +0 -0
  968. /package/dist/field/features/lists/{common → shared}/markdown.d.ts +0 -0
  969. /package/dist/field/features/lists/{unorderedlist → unorderedList}/feature.server.d.ts +0 -0
  970. /package/dist/field/features/lists/{unorderedlist → unorderedList}/markdownTransformer.d.ts +0 -0
  971. /package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars}/types.js +0 -0
@@ -0,0 +1,77 @@
1
+ 'use client';
2
+ import { $isNodeSelection } from 'lexical';
3
+ import { HorizontalRuleIcon } from '../../lexical/ui/icons/HorizontalRule/index.js';
4
+ import { createClientComponent } from '../createClientComponent.js';
5
+ import { slashMenuBasicGroupWithItems } from '../shared/slashMenu/basicGroup.js';
6
+ import { toolbarAddDropdownGroupWithItems } from '../shared/toolbar/addDropdownGroup.js';
7
+ import { MarkdownTransformer } from './markdownTransformer.js';
8
+ import { $isHorizontalRuleNode, HorizontalRuleNode, INSERT_HORIZONTAL_RULE_COMMAND } from './nodes/HorizontalRuleNode.js';
9
+ import { HorizontalRulePlugin } from './plugin/index.js';
10
+ const HorizontalRuleFeatureClient = (props)=>{
11
+ return {
12
+ clientFeatureProps: props,
13
+ feature: ()=>({
14
+ clientFeatureProps: props,
15
+ markdownTransformers: [
16
+ MarkdownTransformer
17
+ ],
18
+ nodes: [
19
+ HorizontalRuleNode
20
+ ],
21
+ plugins: [
22
+ {
23
+ Component: HorizontalRulePlugin,
24
+ position: 'normal'
25
+ }
26
+ ],
27
+ slashMenu: {
28
+ groups: [
29
+ slashMenuBasicGroupWithItems([
30
+ {
31
+ Icon: HorizontalRuleIcon,
32
+ key: 'horizontalRule',
33
+ keywords: [
34
+ 'hr',
35
+ 'horizontal rule',
36
+ 'line',
37
+ 'separator'
38
+ ],
39
+ label: ({ i18n })=>{
40
+ return i18n.t('lexical:horizontalRule:label');
41
+ },
42
+ onSelect: ({ editor })=>{
43
+ editor.dispatchCommand(INSERT_HORIZONTAL_RULE_COMMAND, undefined);
44
+ }
45
+ }
46
+ ])
47
+ ]
48
+ },
49
+ toolbarFixed: {
50
+ groups: [
51
+ toolbarAddDropdownGroupWithItems([
52
+ {
53
+ ChildComponent: HorizontalRuleIcon,
54
+ isActive: ({ selection })=>{
55
+ if (!$isNodeSelection(selection) || !selection.getNodes().length) {
56
+ return false;
57
+ }
58
+ const firstNode = selection.getNodes()[0];
59
+ return $isHorizontalRuleNode(firstNode);
60
+ },
61
+ key: 'horizontalRule',
62
+ label: ({ i18n })=>{
63
+ return i18n.t('lexical:horizontalRule:label');
64
+ },
65
+ onSelect: ({ editor })=>{
66
+ editor.dispatchCommand(INSERT_HORIZONTAL_RULE_COMMAND, undefined);
67
+ }
68
+ }
69
+ ])
70
+ ]
71
+ }
72
+ })
73
+ };
74
+ };
75
+ export const HorizontalRuleFeatureClientComponent = createClientComponent(HorizontalRuleFeatureClient);
76
+
77
+ //# sourceMappingURL=feature.client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/field/features/horizontalRule/feature.client.tsx"],"sourcesContent":["'use client'\n\nimport type { ClientTranslationKeys } from '@payloadcms/translations'\n\nimport { $isNodeSelection } from 'lexical'\n\nimport type { FeatureProviderProviderClient } from '../types.js'\n\nimport { HorizontalRuleIcon } from '../../lexical/ui/icons/HorizontalRule/index.js'\nimport { createClientComponent } from '../createClientComponent.js'\nimport { slashMenuBasicGroupWithItems } from '../shared/slashMenu/basicGroup.js'\nimport { toolbarAddDropdownGroupWithItems } from '../shared/toolbar/addDropdownGroup.js'\nimport { MarkdownTransformer } from './markdownTransformer.js'\nimport {\n $isHorizontalRuleNode,\n HorizontalRuleNode,\n INSERT_HORIZONTAL_RULE_COMMAND,\n} from './nodes/HorizontalRuleNode.js'\nimport { HorizontalRulePlugin } from './plugin/index.js'\n\nconst HorizontalRuleFeatureClient: FeatureProviderProviderClient<undefined> = (props) => {\n return {\n clientFeatureProps: props,\n feature: () => ({\n clientFeatureProps: props,\n markdownTransformers: [MarkdownTransformer],\n nodes: [HorizontalRuleNode],\n plugins: [\n {\n Component: HorizontalRulePlugin,\n position: 'normal',\n },\n ],\n slashMenu: {\n groups: [\n slashMenuBasicGroupWithItems([\n {\n Icon: HorizontalRuleIcon,\n key: 'horizontalRule',\n keywords: ['hr', 'horizontal rule', 'line', 'separator'],\n label: ({ i18n }) => {\n return i18n.t('lexical:horizontalRule:label')\n },\n\n onSelect: ({ editor }) => {\n editor.dispatchCommand(INSERT_HORIZONTAL_RULE_COMMAND, undefined)\n },\n },\n ]),\n ],\n },\n\n toolbarFixed: {\n groups: [\n toolbarAddDropdownGroupWithItems([\n {\n ChildComponent: HorizontalRuleIcon,\n isActive: ({ selection }) => {\n if (!$isNodeSelection(selection) || !selection.getNodes().length) {\n return false\n }\n\n const firstNode = selection.getNodes()[0]\n return $isHorizontalRuleNode(firstNode)\n },\n key: 'horizontalRule',\n label: ({ i18n }) => {\n return i18n.t('lexical:horizontalRule:label')\n },\n onSelect: ({ editor }) => {\n editor.dispatchCommand(INSERT_HORIZONTAL_RULE_COMMAND, undefined)\n },\n },\n ]),\n ],\n },\n }),\n }\n}\n\nexport const HorizontalRuleFeatureClientComponent = createClientComponent(\n HorizontalRuleFeatureClient,\n)\n"],"names":["$isNodeSelection","HorizontalRuleIcon","createClientComponent","slashMenuBasicGroupWithItems","toolbarAddDropdownGroupWithItems","MarkdownTransformer","$isHorizontalRuleNode","HorizontalRuleNode","INSERT_HORIZONTAL_RULE_COMMAND","HorizontalRulePlugin","HorizontalRuleFeatureClient","props","clientFeatureProps","feature","markdownTransformers","nodes","plugins","Component","position","slashMenu","groups","Icon","key","keywords","label","i18n","t","onSelect","editor","dispatchCommand","undefined","toolbarFixed","ChildComponent","isActive","selection","getNodes","length","firstNode","HorizontalRuleFeatureClientComponent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;AAIA,SAASA,gBAAgB,QAAQ,UAAS;AAI1C,SAASC,kBAAkB,QAAQ,iDAAgD;AACnF,SAASC,qBAAqB,QAAQ,8BAA6B;AACnE,SAASC,4BAA4B,QAAQ,oCAAmC;AAChF,SAASC,gCAAgC,QAAQ,wCAAuC;AACxF,SAASC,mBAAmB,QAAQ,2BAA0B;AAC9D,SACEC,qBAAqB,EACrBC,kBAAkB,EAClBC,8BAA8B,QACzB,gCAA+B;AACtC,SAASC,oBAAoB,QAAQ,oBAAmB;AAExD,MAAMC,8BAAwE,CAACC;IAC7E,OAAO;QACLC,oBAAoBD;QACpBE,SAAS,IAAO,CAAA;gBACdD,oBAAoBD;gBACpBG,sBAAsB;oBAACT;iBAAoB;gBAC3CU,OAAO;oBAACR;iBAAmB;gBAC3BS,SAAS;oBACP;wBACEC,WAAWR;wBACXS,UAAU;oBACZ;iBACD;gBACDC,WAAW;oBACTC,QAAQ;wBACNjB,6BAA6B;4BAC3B;gCACEkB,MAAMpB;gCACNqB,KAAK;gCACLC,UAAU;oCAAC;oCAAM;oCAAmB;oCAAQ;iCAAY;gCACxDC,OAAO,CAAC,EAAEC,IAAI,EAAE;oCACd,OAAOA,KAAKC,CAAC,CAAC;gCAChB;gCAEAC,UAAU,CAAC,EAAEC,MAAM,EAAE;oCACnBA,OAAOC,eAAe,CAACrB,gCAAgCsB;gCACzD;4BACF;yBACD;qBACF;gBACH;gBAEAC,cAAc;oBACZX,QAAQ;wBACNhB,iCAAiC;4BAC/B;gCACE4B,gBAAgB/B;gCAChBgC,UAAU,CAAC,EAAEC,SAAS,EAAE;oCACtB,IAAI,CAAClC,iBAAiBkC,cAAc,CAACA,UAAUC,QAAQ,GAAGC,MAAM,EAAE;wCAChE,OAAO;oCACT;oCAEA,MAAMC,YAAYH,UAAUC,QAAQ,EAAE,CAAC,EAAE;oCACzC,OAAO7B,sBAAsB+B;gCAC/B;gCACAf,KAAK;gCACLE,OAAO,CAAC,EAAEC,IAAI,EAAE;oCACd,OAAOA,KAAKC,CAAC,CAAC;gCAChB;gCACAC,UAAU,CAAC,EAAEC,MAAM,EAAE;oCACnBA,OAAOC,eAAe,CAACrB,gCAAgCsB;gCACzD;4BACF;yBACD;qBACF;gBACH;YACF,CAAA;IACF;AACF;AAEA,OAAO,MAAMQ,uCAAuCpC,sBAClDQ,6BACD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.server.d.ts","sourceRoot":"","sources":["../../../../src/field/features/horizontalRule/feature.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAShE,eAAO,MAAM,qBAAqB,EAAE,6BAA6B,CAAC,SAAS,EAAE,SAAS,CA4BrF,CAAA"}
@@ -1,4 +1,7 @@
1
- import { HorizontalRuleFeatureClientComponent } from './feature.client.js';
1
+ // eslint-disable-next-line payload/no-imports-from-exports-dir
2
+ import { HorizontalRuleFeatureClientComponent } from '../../../exports/client/index.js';
3
+ import { createNode } from '../typeUtilities.js';
4
+ import { i18n } from './i18n.js';
2
5
  import { MarkdownTransformer } from './markdownTransformer.js';
3
6
  import { HorizontalRuleNode } from './nodes/HorizontalRuleNode.js';
4
7
  export const HorizontalRuleFeature = (props)=>{
@@ -6,12 +9,12 @@ export const HorizontalRuleFeature = (props)=>{
6
9
  feature: ()=>{
7
10
  return {
8
11
  ClientComponent: HorizontalRuleFeatureClientComponent,
9
- clientFeatureProps: null,
12
+ i18n,
10
13
  markdownTransformers: [
11
14
  MarkdownTransformer
12
15
  ],
13
16
  nodes: [
14
- {
17
+ createNode({
15
18
  converters: {
16
19
  html: {
17
20
  converter: ()=>{
@@ -23,12 +26,12 @@ export const HorizontalRuleFeature = (props)=>{
23
26
  }
24
27
  },
25
28
  node: HorizontalRuleNode
26
- }
29
+ })
27
30
  ],
28
31
  serverFeatureProps: props
29
32
  };
30
33
  },
31
- key: 'horizontalrule',
34
+ key: 'horizontalRule',
32
35
  serverFeatureProps: props
33
36
  };
34
37
  };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/field/features/horizontalRule/feature.server.ts"],"sourcesContent":["import type { FeatureProviderProviderServer } from '../types.js'\n\n// eslint-disable-next-line payload/no-imports-from-exports-dir\nimport { HorizontalRuleFeatureClientComponent } from '../../../exports/client/index.js'\nimport { createNode } from '../typeUtilities.js'\nimport { i18n } from './i18n.js'\nimport { MarkdownTransformer } from './markdownTransformer.js'\nimport { HorizontalRuleNode } from './nodes/HorizontalRuleNode.js'\n\nexport const HorizontalRuleFeature: FeatureProviderProviderServer<undefined, undefined> = (\n props,\n) => {\n return {\n feature: () => {\n return {\n ClientComponent: HorizontalRuleFeatureClientComponent,\n i18n,\n markdownTransformers: [MarkdownTransformer],\n nodes: [\n createNode({\n converters: {\n html: {\n converter: () => {\n return `<hr/>`\n },\n nodeTypes: [HorizontalRuleNode.getType()],\n },\n },\n node: HorizontalRuleNode,\n }),\n ],\n serverFeatureProps: props,\n }\n },\n key: 'horizontalRule',\n serverFeatureProps: props,\n }\n}\n"],"names":["HorizontalRuleFeatureClientComponent","createNode","i18n","MarkdownTransformer","HorizontalRuleNode","HorizontalRuleFeature","props","feature","ClientComponent","markdownTransformers","nodes","converters","html","converter","nodeTypes","getType","node","serverFeatureProps","key"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAEA,+DAA+D;AAC/D,SAASA,oCAAoC,QAAQ,mCAAkC;AACvF,SAASC,UAAU,QAAQ,sBAAqB;AAChD,SAASC,IAAI,QAAQ,YAAW;AAChC,SAASC,mBAAmB,QAAQ,2BAA0B;AAC9D,SAASC,kBAAkB,QAAQ,gCAA+B;AAElE,OAAO,MAAMC,wBAA6E,CACxFC;IAEA,OAAO;QACLC,SAAS;YACP,OAAO;gBACLC,iBAAiBR;gBACjBE;gBACAO,sBAAsB;oBAACN;iBAAoB;gBAC3CO,OAAO;oBACLT,WAAW;wBACTU,YAAY;4BACVC,MAAM;gCACJC,WAAW;oCACT,OAAO,CAAC,KAAK,CAAC;gCAChB;gCACAC,WAAW;oCAACV,mBAAmBW,OAAO;iCAAG;4BAC3C;wBACF;wBACAC,MAAMZ;oBACR;iBACD;gBACDa,oBAAoBX;YACtB;QACF;QACAY,KAAK;QACLD,oBAAoBX;IACtB;AACF,EAAC"}
@@ -0,0 +1,3 @@
1
+ import type { GenericLanguages } from '@payloadcms/translations';
2
+ export declare const i18n: Partial<GenericLanguages>;
3
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/field/features/horizontalRule/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAEhE,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAiG1C,CAAA"}
@@ -0,0 +1,100 @@
1
+ export const i18n = {
2
+ ar: {
3
+ label: 'القاعدة الأفقية'
4
+ },
5
+ az: {
6
+ label: 'Üfüqi Xətt'
7
+ },
8
+ bg: {
9
+ label: 'Хоризонтална линия'
10
+ },
11
+ cs: {
12
+ label: 'Vodorovný pravítko'
13
+ },
14
+ de: {
15
+ label: 'Trennlinie'
16
+ },
17
+ en: {
18
+ label: 'Horizontal Rule'
19
+ },
20
+ es: {
21
+ label: 'Regla Horizontal'
22
+ },
23
+ fa: {
24
+ label: 'قاعده افقی'
25
+ },
26
+ fr: {
27
+ label: 'Règle horizontale'
28
+ },
29
+ he: {
30
+ label: 'קו אופקי'
31
+ },
32
+ hr: {
33
+ label: 'Vodoravna linija'
34
+ },
35
+ hu: {
36
+ label: 'Vízszintes vonal'
37
+ },
38
+ it: {
39
+ label: 'Regola Orizzontale'
40
+ },
41
+ ja: {
42
+ label: '水平線'
43
+ },
44
+ ko: {
45
+ label: '수평 규칙'
46
+ },
47
+ my: {
48
+ label: 'Peraturan Mendatar'
49
+ },
50
+ nb: {
51
+ label: 'Horisontal Regel'
52
+ },
53
+ nl: {
54
+ label: 'Horizontale Regel'
55
+ },
56
+ pl: {
57
+ label: 'Pozioma Linia'
58
+ },
59
+ pt: {
60
+ label: 'Regra Horizontal'
61
+ },
62
+ ro: {
63
+ label: 'Linie orizontală'
64
+ },
65
+ rs: {
66
+ label: 'Horizontalna linija'
67
+ },
68
+ 'rs-latin': {
69
+ label: 'Horizontalna linija'
70
+ },
71
+ ru: {
72
+ label: 'Горизонтальная линия'
73
+ },
74
+ sk: {
75
+ label: 'Vodorovná čiara'
76
+ },
77
+ sv: {
78
+ label: 'Horisontell linje'
79
+ },
80
+ th: {
81
+ label: 'กฎขีดตรง'
82
+ },
83
+ tr: {
84
+ label: 'Yatay Çizgi'
85
+ },
86
+ uk: {
87
+ label: 'Горизонтальна лінія'
88
+ },
89
+ vi: {
90
+ label: 'Quy tắc ngang'
91
+ },
92
+ zh: {
93
+ label: '水平线'
94
+ },
95
+ 'zh-TW': {
96
+ label: '水平線'
97
+ }
98
+ };
99
+
100
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/field/features/horizontalRule/i18n.ts"],"sourcesContent":["import type { GenericLanguages } from '@payloadcms/translations'\n\nexport const i18n: Partial<GenericLanguages> = {\n ar: {\n label: 'القاعدة الأفقية',\n },\n az: {\n label: 'Üfüqi Xətt',\n },\n bg: {\n label: 'Хоризонтална линия',\n },\n cs: {\n label: 'Vodorovný pravítko',\n },\n de: {\n label: 'Trennlinie',\n },\n en: {\n label: 'Horizontal Rule',\n },\n es: {\n label: 'Regla Horizontal',\n },\n fa: {\n label: 'قاعده افقی',\n },\n fr: {\n label: 'Règle horizontale',\n },\n he: {\n label: 'קו אופקי',\n },\n hr: {\n label: 'Vodoravna linija',\n },\n hu: {\n label: 'Vízszintes vonal',\n },\n it: {\n label: 'Regola Orizzontale',\n },\n ja: {\n label: '水平線',\n },\n ko: {\n label: '수평 규칙',\n },\n my: {\n label: 'Peraturan Mendatar',\n },\n nb: {\n label: 'Horisontal Regel',\n },\n nl: {\n label: 'Horizontale Regel',\n },\n pl: {\n label: 'Pozioma Linia',\n },\n pt: {\n label: 'Regra Horizontal',\n },\n ro: {\n label: 'Linie orizontală',\n },\n rs: {\n label: 'Horizontalna linija',\n },\n 'rs-latin': {\n label: 'Horizontalna linija',\n },\n ru: {\n label: 'Горизонтальная линия',\n },\n sk: {\n label: 'Vodorovná čiara',\n },\n sv: {\n label: 'Horisontell linje',\n },\n th: {\n label: 'กฎขีดตรง',\n },\n tr: {\n label: 'Yatay Çizgi',\n },\n uk: {\n label: 'Горизонтальна лінія',\n },\n vi: {\n label: 'Quy tắc ngang',\n },\n zh: {\n label: '水平线',\n },\n 'zh-TW': {\n label: '水平線',\n },\n}\n"],"names":["i18n","ar","label","az","bg","cs","de","en","es","fa","fr","he","hr","hu","it","ja","ko","my","nb","nl","pl","pt","ro","rs","ru","sk","sv","th","tr","uk","vi","zh"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAEA,OAAO,MAAMA,OAAkC;IAC7CC,IAAI;QACFC,OAAO;IACT;IACAC,IAAI;QACFD,OAAO;IACT;IACAE,IAAI;QACFF,OAAO;IACT;IACAG,IAAI;QACFH,OAAO;IACT;IACAI,IAAI;QACFJ,OAAO;IACT;IACAK,IAAI;QACFL,OAAO;IACT;IACAM,IAAI;QACFN,OAAO;IACT;IACAO,IAAI;QACFP,OAAO;IACT;IACAQ,IAAI;QACFR,OAAO;IACT;IACAS,IAAI;QACFT,OAAO;IACT;IACAU,IAAI;QACFV,OAAO;IACT;IACAW,IAAI;QACFX,OAAO;IACT;IACAY,IAAI;QACFZ,OAAO;IACT;IACAa,IAAI;QACFb,OAAO;IACT;IACAc,IAAI;QACFd,OAAO;IACT;IACAe,IAAI;QACFf,OAAO;IACT;IACAgB,IAAI;QACFhB,OAAO;IACT;IACAiB,IAAI;QACFjB,OAAO;IACT;IACAkB,IAAI;QACFlB,OAAO;IACT;IACAmB,IAAI;QACFnB,OAAO;IACT;IACAoB,IAAI;QACFpB,OAAO;IACT;IACAqB,IAAI;QACFrB,OAAO;IACT;IACA,YAAY;QACVA,OAAO;IACT;IACAsB,IAAI;QACFtB,OAAO;IACT;IACAuB,IAAI;QACFvB,OAAO;IACT;IACAwB,IAAI;QACFxB,OAAO;IACT;IACAyB,IAAI;QACFzB,OAAO;IACT;IACA0B,IAAI;QACF1B,OAAO;IACT;IACA2B,IAAI;QACF3B,OAAO;IACT;IACA4B,IAAI;QACF5B,OAAO;IACT;IACA6B,IAAI;QACF7B,OAAO;IACT;IACA,SAAS;QACPA,OAAO;IACT;AACF,EAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"markdownTransformer.d.ts","sourceRoot":"","sources":["../../../../src/field/features/horizontalrule/markdownTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAQ3D,eAAO,MAAM,mBAAmB,EAAE,kBAiBjC,CAAA"}
1
+ {"version":3,"file":"markdownTransformer.d.ts","sourceRoot":"","sources":["../../../../src/field/features/horizontalRule/markdownTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAQ3D,eAAO,MAAM,mBAAmB,EAAE,kBAiBjC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/field/features/horizontalrule/markdownTransformer.ts"],"sourcesContent":["import type { ElementTransformer } from '@lexical/markdown'\n\nimport {\n $createHorizontalRuleNode,\n $isHorizontalRuleNode,\n HorizontalRuleNode,\n} from './nodes/HorizontalRuleNode.js'\n\nexport const MarkdownTransformer: ElementTransformer = {\n type: 'element',\n dependencies: [HorizontalRuleNode],\n export: (node, exportChildren) => {\n if (!$isHorizontalRuleNode(node)) {\n return null\n }\n return '---'\n },\n // match ---\n regExp: /^---\\s*$/,\n replace: (parentNode) => {\n const node = $createHorizontalRuleNode()\n if (node) {\n parentNode.replace(node)\n }\n },\n}\n"],"names":["$createHorizontalRuleNode","$isHorizontalRuleNode","HorizontalRuleNode","MarkdownTransformer","type","dependencies","export","node","exportChildren","regExp","replace","parentNode"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":"AAEA,SACEA,yBAAyB,EACzBC,qBAAqB,EACrBC,kBAAkB,QACb,gCAA+B;AAEtC,OAAO,MAAMC,sBAA0C;IACrDC,MAAM;IACNC,cAAc;QAACH;KAAmB;IAClCI,QAAQ,CAACC,MAAMC;QACb,IAAI,CAACP,sBAAsBM,OAAO;YAChC,OAAO;QACT;QACA,OAAO;IACT;IACA,YAAY;IACZE,QAAQ;IACRC,SAAS,CAACC;QACR,MAAMJ,OAAOP;QACb,IAAIO,MAAM;YACRI,WAAWD,OAAO,CAACH;QACrB;IACF;AACF,EAAC"}
1
+ {"version":3,"sources":["../../../../src/field/features/horizontalRule/markdownTransformer.ts"],"sourcesContent":["import type { ElementTransformer } from '@lexical/markdown'\n\nimport {\n $createHorizontalRuleNode,\n $isHorizontalRuleNode,\n HorizontalRuleNode,\n} from './nodes/HorizontalRuleNode.js'\n\nexport const MarkdownTransformer: ElementTransformer = {\n type: 'element',\n dependencies: [HorizontalRuleNode],\n export: (node, exportChildren) => {\n if (!$isHorizontalRuleNode(node)) {\n return null\n }\n return '---'\n },\n // match ---\n regExp: /^---\\s*$/,\n replace: (parentNode) => {\n const node = $createHorizontalRuleNode()\n if (node) {\n parentNode.replace(node)\n }\n },\n}\n"],"names":["$createHorizontalRuleNode","$isHorizontalRuleNode","HorizontalRuleNode","MarkdownTransformer","type","dependencies","export","node","exportChildren","regExp","replace","parentNode"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":"AAEA,SACEA,yBAAyB,EACzBC,qBAAqB,EACrBC,kBAAkB,QACb,gCAA+B;AAEtC,OAAO,MAAMC,sBAA0C;IACrDC,MAAM;IACNC,cAAc;QAACH;KAAmB;IAClCI,QAAQ,CAACC,MAAMC;QACb,IAAI,CAACP,sBAAsBM,OAAO;YAChC,OAAO;QACT;QACA,OAAO;IACT;IACA,YAAY;IACZE,QAAQ;IACRC,SAAS,CAACC;QACR,MAAMJ,OAAOP;QACb,IAAIO,MAAM;YACRI,WAAWD,OAAO,CAACH;QACrB;IACF;AACF,EAAC"}
@@ -1,6 +1,5 @@
1
- import type { DOMConversionMap, DOMExportOutput, LexicalCommand, LexicalNode, SerializedLexicalNode } from 'lexical';
2
- import lexicalImport from 'lexical';
3
- declare const DecoratorNode: typeof lexicalImport.DecoratorNode;
1
+ import type { DOMConversionMap, DOMExportOutput, EditorConfig, LexicalCommand, LexicalNode, SerializedLexicalNode } from 'lexical';
2
+ import { DecoratorNode } from 'lexical';
4
3
  import * as React from 'react';
5
4
  /**
6
5
  * Serialized representation of a horizontal rule node. Serialized = converted to JSON. This is what is stored in the database / in the lexical editor state.
@@ -30,7 +29,7 @@ export declare class HorizontalRuleNode extends DecoratorNode<React.ReactElement
30
29
  /**
31
30
  * Determines how the hr element is rendered in the lexical editor. This is only the "initial" / "outer" HTML element.
32
31
  */
33
- createDOM(): HTMLElement;
32
+ createDOM(config: EditorConfig): HTMLElement;
34
33
  /**
35
34
  * Allows you to render a React component within whatever createDOM returns.
36
35
  */
@@ -51,5 +50,4 @@ export declare class HorizontalRuleNode extends DecoratorNode<React.ReactElement
51
50
  }
52
51
  export declare function $createHorizontalRuleNode(): HorizontalRuleNode;
53
52
  export declare function $isHorizontalRuleNode(node: LexicalNode | null | undefined): node is HorizontalRuleNode;
54
- export {};
55
53
  //# sourceMappingURL=HorizontalRuleNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HorizontalRuleNode.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/horizontalRule/nodes/HorizontalRuleNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAEhB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAyB,aAAa,EAAiB,MAAM,SAAS,CAAA;AAC7E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,qBAAqB,CAAA;AAEhE,eAAO,MAAM,8BAA8B,EAAE,cAAc,CAAC,IAAI,CAE/D,CAAA;AAED;;;;;;GAMG;AACH,qBAAa,kBAAmB,SAAQ,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC;IACvE,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,kBAAkB,GAAG,kBAAkB;IAI1D,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB;;;;OAIG;IACH,MAAM,CAAC,SAAS,IAAI,gBAAgB,GAAG,IAAI;IAS3C;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,4BAA4B,GAAG,kBAAkB;IAInF;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW;IAM5C;;OAEG;IACH,QAAQ,IAAI,KAAK,CAAC,YAAY;IAI9B;;;;OAIG;IACH,SAAS,IAAI,eAAe;IAG5B;;OAEG;IACH,UAAU,IAAI,qBAAqB;IAOnC,cAAc,IAAI,MAAM;IAIxB,QAAQ,IAAI,KAAK;IAIjB,SAAS,IAAI,OAAO;CAGrB;AAMD,wBAAgB,yBAAyB,IAAI,kBAAkB,CAE9D;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,kBAAkB,CAE5B"}
@@ -1,5 +1,6 @@
1
- import lexicalImport from 'lexical';
2
- const { $applyNodeReplacement, DecoratorNode, createCommand } = lexicalImport;
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { addClassNamesToElement } from '@lexical/utils';
3
+ import { $applyNodeReplacement, DecoratorNode, createCommand } from 'lexical';
3
4
  import * as React from 'react';
4
5
  const HorizontalRuleComponent = /*#__PURE__*/ React.lazy(()=>import('../component/index.js').then((module)=>({
5
6
  default: module.HorizontalRuleComponent
@@ -25,7 +26,7 @@ export const INSERT_HORIZONTAL_RULE_COMMAND = createCommand('INSERT_HORIZONTAL_R
25
26
  */ static importDOM() {
26
27
  return {
27
28
  hr: ()=>({
28
- conversion: convertHorizontalRuleElement,
29
+ conversion: $convertHorizontalRuleElement,
29
30
  priority: 0
30
31
  })
31
32
  };
@@ -37,13 +38,15 @@ export const INSERT_HORIZONTAL_RULE_COMMAND = createCommand('INSERT_HORIZONTAL_R
37
38
  }
38
39
  /**
39
40
  * Determines how the hr element is rendered in the lexical editor. This is only the "initial" / "outer" HTML element.
40
- */ createDOM() {
41
- return document.createElement('hr');
41
+ */ createDOM(config) {
42
+ const element = document.createElement('hr');
43
+ addClassNamesToElement(element, config.theme.hr);
44
+ return element;
42
45
  }
43
46
  /**
44
47
  * Allows you to render a React component within whatever createDOM returns.
45
48
  */ decorate() {
46
- return /*#__PURE__*/ React.createElement(HorizontalRuleComponent, {
49
+ return /*#__PURE__*/ _jsx(HorizontalRuleComponent, {
47
50
  nodeKey: this.__key
48
51
  });
49
52
  }
@@ -74,7 +77,7 @@ export const INSERT_HORIZONTAL_RULE_COMMAND = createCommand('INSERT_HORIZONTAL_R
74
77
  return false;
75
78
  }
76
79
  }
77
- function convertHorizontalRuleElement() {
80
+ function $convertHorizontalRuleElement() {
78
81
  return {
79
82
  node: $createHorizontalRuleNode()
80
83
  };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/field/features/horizontalRule/nodes/HorizontalRuleNode.tsx"],"sourcesContent":["import type {\n DOMConversionMap,\n DOMConversionOutput,\n DOMExportOutput,\n EditorConfig,\n LexicalCommand,\n LexicalNode,\n SerializedLexicalNode,\n} from 'lexical'\n\nimport { addClassNamesToElement } from '@lexical/utils'\nimport { $applyNodeReplacement, DecoratorNode, createCommand } from 'lexical'\nimport * as React from 'react'\n\nconst HorizontalRuleComponent = React.lazy(() =>\n import('../component/index.js').then((module) => ({\n default: module.HorizontalRuleComponent,\n })),\n)\n\n/**\n * Serialized representation of a horizontal rule node. Serialized = converted to JSON. This is what is stored in the database / in the lexical editor state.\n */\nexport type SerializedHorizontalRuleNode = SerializedLexicalNode\n\nexport const INSERT_HORIZONTAL_RULE_COMMAND: LexicalCommand<void> = createCommand(\n 'INSERT_HORIZONTAL_RULE_COMMAND',\n)\n\n/**\n * This node is a DecoratorNode. DecoratorNodes allow you to render React components in the editor.\n *\n * They need both createDom and decorate functions. createDom => outside of the html. decorate => React Component inside of the html.\n *\n * If we used DecoratorBlockNode instead, we would only need a decorate method\n */\nexport class HorizontalRuleNode extends DecoratorNode<React.ReactElement> {\n static clone(node: HorizontalRuleNode): HorizontalRuleNode {\n return new HorizontalRuleNode(node.__key)\n }\n\n static getType(): string {\n return 'horizontalrule'\n }\n\n /**\n * Defines what happens if you copy an hr element from another page and paste it into the lexical editor\n *\n * This also determines the behavior of lexical's internal HTML -> Lexical converter\n */\n static importDOM(): DOMConversionMap | null {\n return {\n hr: () => ({\n conversion: $convertHorizontalRuleElement,\n priority: 0,\n }),\n }\n }\n\n /**\n * The data for this node is stored serialized as JSON. This is the \"load function\" of that node: it takes the saved data and converts it into a node.\n */\n static importJSON(serializedNode: SerializedHorizontalRuleNode): HorizontalRuleNode {\n return $createHorizontalRuleNode()\n }\n\n /**\n * Determines how the hr element is rendered in the lexical editor. This is only the \"initial\" / \"outer\" HTML element.\n */\n createDOM(config: EditorConfig): HTMLElement {\n const element = document.createElement('hr')\n addClassNamesToElement(element, config.theme.hr)\n return element\n }\n\n /**\n * Allows you to render a React component within whatever createDOM returns.\n */\n decorate(): React.ReactElement {\n return <HorizontalRuleComponent nodeKey={this.__key} />\n }\n\n /**\n * Opposite of importDOM, this function defines what happens when you copy an hr element from the lexical editor and paste it into another page.\n *\n * This also determines the behavior of lexical's internal Lexical -> HTML converter\n */\n exportDOM(): DOMExportOutput {\n return { element: document.createElement('hr') }\n }\n /**\n * Opposite of importJSON. This determines what data is saved in the database / in the lexical editor state.\n */\n exportJSON(): SerializedLexicalNode {\n return {\n type: 'horizontalrule',\n version: 1,\n }\n }\n\n getTextContent(): string {\n return '\\n'\n }\n\n isInline(): false {\n return false\n }\n\n updateDOM(): boolean {\n return false\n }\n}\n\nfunction $convertHorizontalRuleElement(): DOMConversionOutput {\n return { node: $createHorizontalRuleNode() }\n}\n\nexport function $createHorizontalRuleNode(): HorizontalRuleNode {\n return $applyNodeReplacement(new HorizontalRuleNode())\n}\n\nexport function $isHorizontalRuleNode(\n node: LexicalNode | null | undefined,\n): node is HorizontalRuleNode {\n return node instanceof HorizontalRuleNode\n}\n"],"names":["addClassNamesToElement","$applyNodeReplacement","DecoratorNode","createCommand","React","HorizontalRuleComponent","lazy","then","module","default","INSERT_HORIZONTAL_RULE_COMMAND","HorizontalRuleNode","clone","node","__key","getType","importDOM","hr","conversion","$convertHorizontalRuleElement","priority","importJSON","serializedNode","$createHorizontalRuleNode","createDOM","config","element","document","createElement","theme","decorate","nodeKey","exportDOM","exportJSON","type","version","getTextContent","isInline","updateDOM","$isHorizontalRuleNode"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";AAUA,SAASA,sBAAsB,QAAQ,iBAAgB;AACvD,SAASC,qBAAqB,EAAEC,aAAa,EAAEC,aAAa,QAAQ,UAAS;AAC7E,YAAYC,WAAW,QAAO;AAE9B,MAAMC,wCAA0BD,MAAME,IAAI,CAAC,IACzC,MAAM,CAAC,yBAAyBC,IAAI,CAAC,CAACC,SAAY,CAAA;YAChDC,SAASD,OAAOH,uBAAuB;QACzC,CAAA;AAQF,OAAO,MAAMK,iCAAuDP,cAClE,kCACD;AAED;;;;;;CAMC,GACD,OAAO,MAAMQ,2BAA2BT;IACtC,OAAOU,MAAMC,IAAwB,EAAsB;QACzD,OAAO,IAAIF,mBAAmBE,KAAKC,KAAK;IAC1C;IAEA,OAAOC,UAAkB;QACvB,OAAO;IACT;IAEA;;;;GAIC,GACD,OAAOC,YAAqC;QAC1C,OAAO;YACLC,IAAI,IAAO,CAAA;oBACTC,YAAYC;oBACZC,UAAU;gBACZ,CAAA;QACF;IACF;IAEA;;GAEC,GACD,OAAOC,WAAWC,cAA4C,EAAsB;QAClF,OAAOC;IACT;IAEA;;GAEC,GACDC,UAAUC,MAAoB,EAAe;QAC3C,MAAMC,UAAUC,SAASC,aAAa,CAAC;QACvC5B,uBAAuB0B,SAASD,OAAOI,KAAK,CAACZ,EAAE;QAC/C,OAAOS;IACT;IAEA;;GAEC,GACDI,WAA+B;QAC7B,qBAAO,KAACzB;YAAwB0B,SAAS,IAAI,CAACjB,KAAK;;IACrD;IAEA;;;;GAIC,GACDkB,YAA6B;QAC3B,OAAO;YAAEN,SAASC,SAASC,aAAa,CAAC;QAAM;IACjD;IACA;;GAEC,GACDK,aAAoC;QAClC,OAAO;YACLC,MAAM;YACNC,SAAS;QACX;IACF;IAEAC,iBAAyB;QACvB,OAAO;IACT;IAEAC,WAAkB;QAChB,OAAO;IACT;IAEAC,YAAqB;QACnB,OAAO;IACT;AACF;AAEA,SAASnB;IACP,OAAO;QAAEN,MAAMU;IAA4B;AAC7C;AAEA,OAAO,SAASA;IACd,OAAOtB,sBAAsB,IAAIU;AACnC;AAEA,OAAO,SAAS4B,sBACd1B,IAAoC;IAEpC,OAAOA,gBAAgBF;AACzB"}
@@ -0,0 +1,7 @@
1
+ import type { PluginComponent } from '../../types.js';
2
+ import './index.scss';
3
+ /**
4
+ * Registers the INSERT_HORIZONTAL_RULE_COMMAND lexical command and defines the behavior for when it is called.
5
+ */
6
+ export declare const HorizontalRulePlugin: PluginComponent<undefined>;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/horizontalRule/plugin/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAMrD,OAAO,cAAc,CAAA;AAErB;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,eAAe,CAAC,SAAS,CA2B3D,CAAA"}
@@ -1,16 +1,12 @@
1
1
  'use client';
2
- import lexicalComposerContextImport from '@lexical/react/LexicalComposerContext.js';
3
- const { useLexicalComposerContext } = lexicalComposerContextImport;
4
- import lexicalUtilsImport from '@lexical/utils';
5
- const { $insertNodeToNearestRoot } = lexicalUtilsImport;
6
- import lexicalImport from 'lexical';
7
- const { $getSelection, $isRangeSelection, COMMAND_PRIORITY_EDITOR } = lexicalImport;
2
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js';
3
+ import { $insertNodeToNearestRoot } from '@lexical/utils';
4
+ import { $getSelection, $isRangeSelection, COMMAND_PRIORITY_EDITOR } from 'lexical';
8
5
  import { useEffect } from 'react';
9
6
  import { $createHorizontalRuleNode, INSERT_HORIZONTAL_RULE_COMMAND } from '../nodes/HorizontalRuleNode.js';
10
- import './index.scss';
11
7
  /**
12
8
  * Registers the INSERT_HORIZONTAL_RULE_COMMAND lexical command and defines the behavior for when it is called.
13
- */ export function HorizontalRulePlugin() {
9
+ */ export const HorizontalRulePlugin = ()=>{
14
10
  const [editor] = useLexicalComposerContext();
15
11
  useEffect(()=>{
16
12
  return editor.registerCommand(INSERT_HORIZONTAL_RULE_COMMAND, (type)=>{
@@ -29,6 +25,6 @@ import './index.scss';
29
25
  editor
30
26
  ]);
31
27
  return null;
32
- }
28
+ };
33
29
 
34
30
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/field/features/horizontalRule/plugin/index.tsx"],"sourcesContent":["'use client'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { $insertNodeToNearestRoot } from '@lexical/utils'\nimport { $getSelection, $isRangeSelection, COMMAND_PRIORITY_EDITOR } from 'lexical'\nimport { useEffect } from 'react'\n\nimport type { PluginComponent } from '../../types.js'\n\nimport {\n $createHorizontalRuleNode,\n INSERT_HORIZONTAL_RULE_COMMAND,\n} from '../nodes/HorizontalRuleNode.js'\nimport './index.scss'\n\n/**\n * Registers the INSERT_HORIZONTAL_RULE_COMMAND lexical command and defines the behavior for when it is called.\n */\nexport const HorizontalRulePlugin: PluginComponent<undefined> = () => {\n const [editor] = useLexicalComposerContext()\n\n useEffect(() => {\n return editor.registerCommand(\n INSERT_HORIZONTAL_RULE_COMMAND,\n (type) => {\n const selection = $getSelection()\n\n if (!$isRangeSelection(selection)) {\n return false\n }\n\n const focusNode = selection.focus.getNode()\n\n if (focusNode !== null) {\n const horizontalRuleNode = $createHorizontalRuleNode()\n $insertNodeToNearestRoot(horizontalRuleNode)\n }\n\n return true\n },\n COMMAND_PRIORITY_EDITOR,\n )\n }, [editor])\n\n return null\n}\n"],"names":["useLexicalComposerContext","$insertNodeToNearestRoot","$getSelection","$isRangeSelection","COMMAND_PRIORITY_EDITOR","useEffect","$createHorizontalRuleNode","INSERT_HORIZONTAL_RULE_COMMAND","HorizontalRulePlugin","editor","registerCommand","type","selection","focusNode","focus","getNode","horizontalRuleNode"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;AAEA,SAASA,yBAAyB,QAAQ,2CAA0C;AACpF,SAASC,wBAAwB,QAAQ,iBAAgB;AACzD,SAASC,aAAa,EAAEC,iBAAiB,EAAEC,uBAAuB,QAAQ,UAAS;AACnF,SAASC,SAAS,QAAQ,QAAO;AAIjC,SACEC,yBAAyB,EACzBC,8BAA8B,QACzB,iCAAgC;AAGvC;;CAEC,GACD,OAAO,MAAMC,uBAAmD;IAC9D,MAAM,CAACC,OAAO,GAAGT;IAEjBK,UAAU;QACR,OAAOI,OAAOC,eAAe,CAC3BH,gCACA,CAACI;YACC,MAAMC,YAAYV;YAElB,IAAI,CAACC,kBAAkBS,YAAY;gBACjC,OAAO;YACT;YAEA,MAAMC,YAAYD,UAAUE,KAAK,CAACC,OAAO;YAEzC,IAAIF,cAAc,MAAM;gBACtB,MAAMG,qBAAqBV;gBAC3BL,yBAAyBe;YAC3B;YAEA,OAAO;QACT,GACAZ;IAEJ,GAAG;QAACK;KAAO;IAEX,OAAO;AACT,EAAC"}
@@ -1,3 +1,6 @@
1
1
  /// <reference types="react" resolution-mode="require"/>
2
- export declare const IndentFeatureClientComponent: import("react").FC<undefined>;
2
+ export declare const IndentFeatureClientComponent: import("react").FC<{
3
+ featureKey: string;
4
+ order: number;
5
+ }>;
3
6
  //# sourceMappingURL=feature.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.client.d.ts","sourceRoot":"","sources":["../../../../src/field/features/indent/feature.client.tsx"],"names":[],"mappings":";AAkEA,eAAO,MAAM,4BAA4B,+BAA6C,CAAA"}
1
+ {"version":3,"file":"feature.client.d.ts","sourceRoot":"","sources":["../../../../src/field/features/indent/feature.client.tsx"],"names":[],"mappings":";AAuEA,eAAO,MAAM,4BAA4B;;;EAA6C,CAAA"}
@@ -1,54 +1,59 @@
1
1
  'use client';
2
- import lexicalImport from 'lexical';
3
- const { INDENT_CONTENT_COMMAND, OUTDENT_CONTENT_COMMAND } = lexicalImport;
2
+ import { INDENT_CONTENT_COMMAND, OUTDENT_CONTENT_COMMAND } from 'lexical';
4
3
  import { IndentDecreaseIcon } from '../../lexical/ui/icons/IndentDecrease/index.js';
5
4
  import { IndentIncreaseIcon } from '../../lexical/ui/icons/IndentIncrease/index.js';
6
5
  import { createClientComponent } from '../createClientComponent.js';
7
- import { IndentSectionWithEntries } from './floatingSelectToolbarIndentSection.js';
6
+ import { toolbarIndentGroupWithItems } from './toolbarIndentGroup.js';
7
+ const toolbarGroups = [
8
+ toolbarIndentGroupWithItems([
9
+ {
10
+ ChildComponent: IndentDecreaseIcon,
11
+ isActive: ()=>false,
12
+ isEnabled: ({ selection })=>{
13
+ if (!selection || !selection?.getNodes()?.length) {
14
+ return false;
15
+ }
16
+ for (const node of selection.getNodes()){
17
+ // If at least one node is indented, this should be active
18
+ if ('__indent' in node && node.__indent > 0 || node.getParent() && '__indent' in node.getParent() && node.getParent().__indent > 0) {
19
+ return true;
20
+ }
21
+ }
22
+ return false;
23
+ },
24
+ key: 'indentDecrease',
25
+ label: ({ i18n })=>{
26
+ return i18n.t('lexical:indent:decreaseLabel');
27
+ },
28
+ onSelect: ({ editor })=>{
29
+ editor.dispatchCommand(OUTDENT_CONTENT_COMMAND, undefined);
30
+ },
31
+ order: 1
32
+ },
33
+ {
34
+ ChildComponent: IndentIncreaseIcon,
35
+ isActive: ()=>false,
36
+ key: 'indentIncrease',
37
+ label: ({ i18n })=>{
38
+ return i18n.t('lexical:indent:increaseLabel');
39
+ },
40
+ onSelect: ({ editor })=>{
41
+ editor.dispatchCommand(INDENT_CONTENT_COMMAND, undefined);
42
+ },
43
+ order: 2
44
+ }
45
+ ])
46
+ ];
8
47
  const IndentFeatureClient = (props)=>{
9
48
  return {
10
49
  clientFeatureProps: props,
11
50
  feature: ()=>({
12
51
  clientFeatureProps: props,
13
- floatingSelectToolbar: {
14
- sections: [
15
- IndentSectionWithEntries([
16
- {
17
- ChildComponent: IndentDecreaseIcon,
18
- isActive: ()=>false,
19
- isEnabled: ({ selection })=>{
20
- if (!selection || !selection?.getNodes()?.length) {
21
- return false;
22
- }
23
- for (const node of selection.getNodes()){
24
- // If at least one node is indented, this should be active
25
- if ('__indent' in node && node.__indent > 0 || node.getParent() && '__indent' in node.getParent() && node.getParent().__indent > 0) {
26
- return true;
27
- }
28
- }
29
- return false;
30
- },
31
- key: 'indent-decrease',
32
- label: `Decrease Indent`,
33
- onClick: ({ editor })=>{
34
- editor.dispatchCommand(OUTDENT_CONTENT_COMMAND, undefined);
35
- },
36
- order: 1
37
- }
38
- ]),
39
- IndentSectionWithEntries([
40
- {
41
- ChildComponent: IndentIncreaseIcon,
42
- isActive: ()=>false,
43
- key: 'indent-increase',
44
- label: `Increase Indent`,
45
- onClick: ({ editor })=>{
46
- editor.dispatchCommand(INDENT_CONTENT_COMMAND, undefined);
47
- },
48
- order: 2
49
- }
50
- ])
51
- ]
52
+ toolbarFixed: {
53
+ groups: toolbarGroups
54
+ },
55
+ toolbarInline: {
56
+ groups: toolbarGroups
52
57
  }
53
58
  })
54
59
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/field/features/indent/feature.client.tsx"],"sourcesContent":["'use client'\n\nimport lexicalImport from 'lexical'\nconst { INDENT_CONTENT_COMMAND, OUTDENT_CONTENT_COMMAND } = lexicalImport\n\nimport type { FeatureProviderProviderClient } from '../types.js'\n\nimport { IndentDecreaseIcon } from '../../lexical/ui/icons/IndentDecrease/index.js'\nimport { IndentIncreaseIcon } from '../../lexical/ui/icons/IndentIncrease/index.js'\nimport { createClientComponent } from '../createClientComponent.js'\nimport { IndentSectionWithEntries } from './floatingSelectToolbarIndentSection.js'\n\nconst IndentFeatureClient: FeatureProviderProviderClient<undefined> = (props) => {\n return {\n clientFeatureProps: props,\n feature: () => ({\n clientFeatureProps: props,\n floatingSelectToolbar: {\n sections: [\n IndentSectionWithEntries([\n {\n ChildComponent: IndentDecreaseIcon,\n isActive: () => false,\n isEnabled: ({ selection }) => {\n if (!selection || !selection?.getNodes()?.length) {\n return false\n }\n for (const node of selection.getNodes()) {\n // If at least one node is indented, this should be active\n if (\n ('__indent' in node && (node.__indent as number) > 0) ||\n (node.getParent() &&\n '__indent' in node.getParent() &&\n node.getParent().__indent > 0)\n ) {\n return true\n }\n }\n return false\n },\n key: 'indent-decrease',\n label: `Decrease Indent`,\n onClick: ({ editor }) => {\n editor.dispatchCommand(OUTDENT_CONTENT_COMMAND, undefined)\n },\n order: 1,\n },\n ]),\n IndentSectionWithEntries([\n {\n ChildComponent: IndentIncreaseIcon,\n isActive: () => false,\n key: 'indent-increase',\n label: `Increase Indent`,\n onClick: ({ editor }) => {\n editor.dispatchCommand(INDENT_CONTENT_COMMAND, undefined)\n },\n order: 2,\n },\n ]),\n ],\n },\n }),\n }\n}\n\nexport const IndentFeatureClientComponent = createClientComponent(IndentFeatureClient)\n"],"names":["lexicalImport","INDENT_CONTENT_COMMAND","OUTDENT_CONTENT_COMMAND","IndentDecreaseIcon","IndentIncreaseIcon","createClientComponent","IndentSectionWithEntries","IndentFeatureClient","props","clientFeatureProps","feature","floatingSelectToolbar","sections","ChildComponent","isActive","isEnabled","selection","getNodes","length","node","__indent","getParent","key","label","onClick","editor","dispatchCommand","undefined","order","IndentFeatureClientComponent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;AAEA,OAAOA,mBAAmB,UAAS;AACnC,MAAM,EAAEC,sBAAsB,EAAEC,uBAAuB,EAAE,GAAGF;AAI5D,SAASG,kBAAkB,QAAQ,iDAAgD;AACnF,SAASC,kBAAkB,QAAQ,iDAAgD;AACnF,SAASC,qBAAqB,QAAQ,8BAA6B;AACnE,SAASC,wBAAwB,QAAQ,0CAAyC;AAElF,MAAMC,sBAAgE,CAACC;IACrE,OAAO;QACLC,oBAAoBD;QACpBE,SAAS,IAAO,CAAA;gBACdD,oBAAoBD;gBACpBG,uBAAuB;oBACrBC,UAAU;wBACRN,yBAAyB;4BACvB;gCACEO,gBAAgBV;gCAChBW,UAAU,IAAM;gCAChBC,WAAW,CAAC,EAAEC,SAAS,EAAE;oCACvB,IAAI,CAACA,aAAa,CAACA,WAAWC,YAAYC,QAAQ;wCAChD,OAAO;oCACT;oCACA,KAAK,MAAMC,QAAQH,UAAUC,QAAQ,GAAI;wCACvC,0DAA0D;wCAC1D,IACE,AAAC,cAAcE,QAAQ,AAACA,KAAKC,QAAQ,GAAc,KAClDD,KAAKE,SAAS,MACb,cAAcF,KAAKE,SAAS,MAC5BF,KAAKE,SAAS,GAAGD,QAAQ,GAAG,GAC9B;4CACA,OAAO;wCACT;oCACF;oCACA,OAAO;gCACT;gCACAE,KAAK;gCACLC,OAAO,CAAC,eAAe,CAAC;gCACxBC,SAAS,CAAC,EAAEC,MAAM,EAAE;oCAClBA,OAAOC,eAAe,CAACxB,yBAAyByB;gCAClD;gCACAC,OAAO;4BACT;yBACD;wBACDtB,yBAAyB;4BACvB;gCACEO,gBAAgBT;gCAChBU,UAAU,IAAM;gCAChBQ,KAAK;gCACLC,OAAO,CAAC,eAAe,CAAC;gCACxBC,SAAS,CAAC,EAAEC,MAAM,EAAE;oCAClBA,OAAOC,eAAe,CAACzB,wBAAwB0B;gCACjD;gCACAC,OAAO;4BACT;yBACD;qBACF;gBACH;YACF,CAAA;IACF;AACF;AAEA,OAAO,MAAMC,+BAA+BxB,sBAAsBE,qBAAoB"}
1
+ {"version":3,"sources":["../../../../src/field/features/indent/feature.client.tsx"],"sourcesContent":["'use client'\n\nimport { INDENT_CONTENT_COMMAND, OUTDENT_CONTENT_COMMAND } from 'lexical'\n\nimport type { ToolbarGroup } from '../toolbars/types.js'\nimport type { FeatureProviderProviderClient } from '../types.js'\n\nimport { IndentDecreaseIcon } from '../../lexical/ui/icons/IndentDecrease/index.js'\nimport { IndentIncreaseIcon } from '../../lexical/ui/icons/IndentIncrease/index.js'\nimport { createClientComponent } from '../createClientComponent.js'\nimport { toolbarIndentGroupWithItems } from './toolbarIndentGroup.js'\n\nconst toolbarGroups: ToolbarGroup[] = [\n toolbarIndentGroupWithItems([\n {\n ChildComponent: IndentDecreaseIcon,\n isActive: () => false,\n isEnabled: ({ selection }) => {\n if (!selection || !selection?.getNodes()?.length) {\n return false\n }\n for (const node of selection.getNodes()) {\n // If at least one node is indented, this should be active\n if (\n ('__indent' in node && (node.__indent as number) > 0) ||\n (node.getParent() && '__indent' in node.getParent() && node.getParent().__indent > 0)\n ) {\n return true\n }\n }\n return false\n },\n key: 'indentDecrease',\n label: ({ i18n }) => {\n return i18n.t('lexical:indent:decreaseLabel')\n },\n onSelect: ({ editor }) => {\n editor.dispatchCommand(OUTDENT_CONTENT_COMMAND, undefined)\n },\n order: 1,\n },\n {\n ChildComponent: IndentIncreaseIcon,\n isActive: () => false,\n key: 'indentIncrease',\n label: ({ i18n }) => {\n return i18n.t('lexical:indent:increaseLabel')\n },\n onSelect: ({ editor }) => {\n editor.dispatchCommand(INDENT_CONTENT_COMMAND, undefined)\n },\n order: 2,\n },\n ]),\n]\n\nconst IndentFeatureClient: FeatureProviderProviderClient<undefined> = (props) => {\n return {\n clientFeatureProps: props,\n feature: () => ({\n clientFeatureProps: props,\n toolbarFixed: {\n groups: toolbarGroups,\n },\n toolbarInline: {\n groups: toolbarGroups,\n },\n }),\n }\n}\n\nexport const IndentFeatureClientComponent = createClientComponent(IndentFeatureClient)\n"],"names":["INDENT_CONTENT_COMMAND","OUTDENT_CONTENT_COMMAND","IndentDecreaseIcon","IndentIncreaseIcon","createClientComponent","toolbarIndentGroupWithItems","toolbarGroups","ChildComponent","isActive","isEnabled","selection","getNodes","length","node","__indent","getParent","key","label","i18n","t","onSelect","editor","dispatchCommand","undefined","order","IndentFeatureClient","props","clientFeatureProps","feature","toolbarFixed","groups","toolbarInline","IndentFeatureClientComponent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;AAEA,SAASA,sBAAsB,EAAEC,uBAAuB,QAAQ,UAAS;AAKzE,SAASC,kBAAkB,QAAQ,iDAAgD;AACnF,SAASC,kBAAkB,QAAQ,iDAAgD;AACnF,SAASC,qBAAqB,QAAQ,8BAA6B;AACnE,SAASC,2BAA2B,QAAQ,0BAAyB;AAErE,MAAMC,gBAAgC;IACpCD,4BAA4B;QAC1B;YACEE,gBAAgBL;YAChBM,UAAU,IAAM;YAChBC,WAAW,CAAC,EAAEC,SAAS,EAAE;gBACvB,IAAI,CAACA,aAAa,CAACA,WAAWC,YAAYC,QAAQ;oBAChD,OAAO;gBACT;gBACA,KAAK,MAAMC,QAAQH,UAAUC,QAAQ,GAAI;oBACvC,0DAA0D;oBAC1D,IACE,AAAC,cAAcE,QAAQ,AAACA,KAAKC,QAAQ,GAAc,KAClDD,KAAKE,SAAS,MAAM,cAAcF,KAAKE,SAAS,MAAMF,KAAKE,SAAS,GAAGD,QAAQ,GAAG,GACnF;wBACA,OAAO;oBACT;gBACF;gBACA,OAAO;YACT;YACAE,KAAK;YACLC,OAAO,CAAC,EAAEC,IAAI,EAAE;gBACd,OAAOA,KAAKC,CAAC,CAAC;YAChB;YACAC,UAAU,CAAC,EAAEC,MAAM,EAAE;gBACnBA,OAAOC,eAAe,CAACrB,yBAAyBsB;YAClD;YACAC,OAAO;QACT;QACA;YACEjB,gBAAgBJ;YAChBK,UAAU,IAAM;YAChBQ,KAAK;YACLC,OAAO,CAAC,EAAEC,IAAI,EAAE;gBACd,OAAOA,KAAKC,CAAC,CAAC;YAChB;YACAC,UAAU,CAAC,EAAEC,MAAM,EAAE;gBACnBA,OAAOC,eAAe,CAACtB,wBAAwBuB;YACjD;YACAC,OAAO;QACT;KACD;CACF;AAED,MAAMC,sBAAgE,CAACC;IACrE,OAAO;QACLC,oBAAoBD;QACpBE,SAAS,IAAO,CAAA;gBACdD,oBAAoBD;gBACpBG,cAAc;oBACZC,QAAQxB;gBACV;gBACAyB,eAAe;oBACbD,QAAQxB;gBACV;YACF,CAAA;IACF;AACF;AAEA,OAAO,MAAM0B,+BAA+B5B,sBAAsBqB,qBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"feature.server.d.ts","sourceRoot":"","sources":["../../../../src/field/features/indent/feature.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAIhE,eAAO,MAAM,aAAa,EAAE,6BAA6B,CAAC,SAAS,EAAE,SAAS,CAY7E,CAAA"}
1
+ {"version":3,"file":"feature.server.d.ts","sourceRoot":"","sources":["../../../../src/field/features/indent/feature.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAMhE,eAAO,MAAM,aAAa,EAAE,6BAA6B,CAAC,SAAS,EAAE,SAAS,CAa7E,CAAA"}
@@ -1,10 +1,13 @@
1
- import { IndentFeatureClientComponent } from './feature.client.js';
1
+ // eslint-disable-next-line payload/no-imports-from-exports-dir
2
+ import { IndentFeatureClientComponent } from '../../../exports/client/index.js';
3
+ import { i18n } from './i18n.js';
2
4
  export const IndentFeature = (props)=>{
3
5
  return {
4
6
  feature: ()=>{
5
7
  return {
6
8
  ClientComponent: IndentFeatureClientComponent,
7
9
  clientFeatureProps: null,
10
+ i18n,
8
11
  serverFeatureProps: props
9
12
  };
10
13
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/field/features/indent/feature.server.ts"],"sourcesContent":["import type { FeatureProviderProviderServer } from '../types.js'\n\nimport { IndentFeatureClientComponent } from './feature.client.js'\n\nexport const IndentFeature: FeatureProviderProviderServer<undefined, undefined> = (props) => {\n return {\n feature: () => {\n return {\n ClientComponent: IndentFeatureClientComponent,\n clientFeatureProps: null,\n serverFeatureProps: props,\n }\n },\n key: 'indent',\n serverFeatureProps: props,\n }\n}\n"],"names":["IndentFeatureClientComponent","IndentFeature","props","feature","ClientComponent","clientFeatureProps","serverFeatureProps","key"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAEA,SAASA,4BAA4B,QAAQ,sBAAqB;AAElE,OAAO,MAAMC,gBAAqE,CAACC;IACjF,OAAO;QACLC,SAAS;YACP,OAAO;gBACLC,iBAAiBJ;gBACjBK,oBAAoB;gBACpBC,oBAAoBJ;YACtB;QACF;QACAK,KAAK;QACLD,oBAAoBJ;IACtB;AACF,EAAC"}
1
+ {"version":3,"sources":["../../../../src/field/features/indent/feature.server.ts"],"sourcesContent":["import type { FeatureProviderProviderServer } from '../types.js'\n\n// eslint-disable-next-line payload/no-imports-from-exports-dir\nimport { IndentFeatureClientComponent } from '../../../exports/client/index.js'\nimport { i18n } from './i18n.js'\n\nexport const IndentFeature: FeatureProviderProviderServer<undefined, undefined> = (props) => {\n return {\n feature: () => {\n return {\n ClientComponent: IndentFeatureClientComponent,\n clientFeatureProps: null,\n i18n,\n serverFeatureProps: props,\n }\n },\n key: 'indent',\n serverFeatureProps: props,\n }\n}\n"],"names":["IndentFeatureClientComponent","i18n","IndentFeature","props","feature","ClientComponent","clientFeatureProps","serverFeatureProps","key"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":"AAEA,+DAA+D;AAC/D,SAASA,4BAA4B,QAAQ,mCAAkC;AAC/E,SAASC,IAAI,QAAQ,YAAW;AAEhC,OAAO,MAAMC,gBAAqE,CAACC;IACjF,OAAO;QACLC,SAAS;YACP,OAAO;gBACLC,iBAAiBL;gBACjBM,oBAAoB;gBACpBL;gBACAM,oBAAoBJ;YACtB;QACF;QACAK,KAAK;QACLD,oBAAoBJ;IACtB;AACF,EAAC"}
@@ -0,0 +1,3 @@
1
+ import type { GenericLanguages } from '@payloadcms/translations';
2
+ export declare const i18n: Partial<GenericLanguages>;
3
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/field/features/indent/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAEhE,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAiI1C,CAAA"}