@payloadcms/richtext-lexical 3.0.0-beta.7 → 3.0.0-canary.6041f49

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 (661) hide show
  1. package/dist/cell/index.d.ts +1 -1
  2. package/dist/cell/index.d.ts.map +1 -1
  3. package/dist/cell/index.js +2 -4
  4. package/dist/cell/index.js.map +1 -1
  5. package/dist/exports/components.d.ts +8 -2
  6. package/dist/exports/components.d.ts.map +1 -1
  7. package/dist/exports/components.js +8 -2
  8. package/dist/exports/components.js.map +1 -1
  9. package/dist/field/Field.d.ts +0 -2
  10. package/dist/field/Field.d.ts.map +1 -1
  11. package/dist/field/Field.js.map +1 -1
  12. package/dist/field/features/align/feature.client.d.ts +4 -1
  13. package/dist/field/features/align/feature.client.d.ts.map +1 -1
  14. package/dist/field/features/align/feature.client.js +127 -54
  15. package/dist/field/features/align/feature.client.js.map +1 -1
  16. package/dist/field/features/align/toolbarAlignGroup.d.ts +3 -0
  17. package/dist/field/features/align/toolbarAlignGroup.d.ts.map +1 -0
  18. package/dist/field/features/align/toolbarAlignGroup.js +12 -0
  19. package/dist/field/features/align/toolbarAlignGroup.js.map +1 -0
  20. package/dist/field/features/blockquote/feature.client.d.ts +4 -1
  21. package/dist/field/features/blockquote/feature.client.d.ts.map +1 -1
  22. package/dist/field/features/blockquote/feature.client.js +53 -40
  23. package/dist/field/features/blockquote/feature.client.js.map +1 -1
  24. package/dist/field/features/blockquote/feature.server.d.ts +1 -1
  25. package/dist/field/features/blockquote/feature.server.d.ts.map +1 -1
  26. package/dist/field/features/blockquote/feature.server.js +7 -7
  27. package/dist/field/features/blockquote/feature.server.js.map +1 -1
  28. package/dist/field/features/blockquote/markdownTransformer.d.ts.map +1 -1
  29. package/dist/field/features/blockquote/markdownTransformer.js +2 -4
  30. package/dist/field/features/blockquote/markdownTransformer.js.map +1 -1
  31. package/dist/field/features/blocks/component/BlockContent.d.ts.map +1 -1
  32. package/dist/field/features/blocks/component/BlockContent.js +3 -5
  33. package/dist/field/features/blocks/component/BlockContent.js.map +1 -1
  34. package/dist/field/features/blocks/component/index.d.ts.map +1 -1
  35. package/dist/field/features/blocks/component/index.js +37 -4
  36. package/dist/field/features/blocks/component/index.js.map +1 -1
  37. package/dist/field/features/blocks/drawer/index.d.ts.map +1 -1
  38. package/dist/field/features/blocks/drawer/index.js +2 -4
  39. package/dist/field/features/blocks/drawer/index.js.map +1 -1
  40. package/dist/field/features/blocks/feature.client.d.ts +4 -1
  41. package/dist/field/features/blocks/feature.client.d.ts.map +1 -1
  42. package/dist/field/features/blocks/feature.client.js +56 -27
  43. package/dist/field/features/blocks/feature.client.js.map +1 -1
  44. package/dist/field/features/blocks/feature.server.d.ts +2 -5
  45. package/dist/field/features/blocks/feature.server.d.ts.map +1 -1
  46. package/dist/field/features/blocks/feature.server.js +109 -77
  47. package/dist/field/features/blocks/feature.server.js.map +1 -1
  48. package/dist/field/features/blocks/nodes/BlocksNode.d.ts +1 -3
  49. package/dist/field/features/blocks/nodes/BlocksNode.d.ts.map +1 -1
  50. package/dist/field/features/blocks/nodes/BlocksNode.js +1 -2
  51. package/dist/field/features/blocks/nodes/BlocksNode.js.map +1 -1
  52. package/dist/field/features/blocks/plugin/commands.d.ts.map +1 -1
  53. package/dist/field/features/blocks/plugin/commands.js +1 -2
  54. package/dist/field/features/blocks/plugin/commands.js.map +1 -1
  55. package/dist/field/features/blocks/plugin/index.d.ts +3 -2
  56. package/dist/field/features/blocks/plugin/index.d.ts.map +1 -1
  57. package/dist/field/features/blocks/plugin/index.js +5 -8
  58. package/dist/field/features/blocks/plugin/index.js.map +1 -1
  59. package/dist/field/features/blocks/populationPromise.d.ts.map +1 -1
  60. package/dist/field/features/blocks/populationPromise.js +4 -18
  61. package/dist/field/features/blocks/populationPromise.js.map +1 -1
  62. package/dist/field/features/blocks/validate.d.ts.map +1 -1
  63. package/dist/field/features/blocks/validate.js +22 -36
  64. package/dist/field/features/blocks/validate.js.map +1 -1
  65. package/dist/field/features/converters/html/field/index.d.ts +8 -2
  66. package/dist/field/features/converters/html/field/index.d.ts.map +1 -1
  67. package/dist/field/features/converters/html/field/index.js +6 -3
  68. package/dist/field/features/converters/html/field/index.js.map +1 -1
  69. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.client.d.ts +4 -1
  70. package/dist/field/features/debug/testRecorder/feature.client.d.ts.map +1 -0
  71. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.client.js.map +1 -1
  72. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.server.d.ts.map +1 -1
  73. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.server.js +1 -1
  74. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.server.js.map +1 -1
  75. package/dist/field/features/debug/testRecorder/plugin/index.d.ts +5 -0
  76. package/dist/field/features/debug/testRecorder/plugin/index.d.ts.map +1 -0
  77. package/dist/field/features/debug/{testrecorder → testRecorder}/plugin/index.js +2 -4
  78. package/dist/field/features/debug/testRecorder/plugin/index.js.map +1 -0
  79. package/dist/field/features/debug/{treeview → treeView}/feature.client.d.ts +4 -1
  80. package/dist/field/features/debug/treeView/feature.client.d.ts.map +1 -0
  81. package/dist/field/features/debug/{treeview → treeView}/feature.client.js.map +1 -1
  82. package/dist/field/features/debug/{treeview → treeView}/feature.server.d.ts.map +1 -1
  83. package/dist/field/features/debug/{treeview → treeView}/feature.server.js +1 -1
  84. package/dist/field/features/debug/{treeview → treeView}/feature.server.js.map +1 -1
  85. package/dist/field/features/debug/treeView/plugin/index.d.ts +4 -0
  86. package/dist/field/features/debug/treeView/plugin/index.d.ts.map +1 -0
  87. package/dist/field/features/debug/{treeview → treeView}/plugin/index.js +4 -6
  88. package/dist/field/features/debug/treeView/plugin/index.js.map +1 -0
  89. package/dist/field/features/format/bold/feature.client.d.ts +4 -1
  90. package/dist/field/features/format/bold/feature.client.d.ts.map +1 -1
  91. package/dist/field/features/format/bold/feature.client.js +26 -23
  92. package/dist/field/features/format/bold/feature.client.js.map +1 -1
  93. package/dist/field/features/format/{inlinecode → inlineCode}/feature.client.d.ts +4 -1
  94. package/dist/field/features/format/inlineCode/feature.client.d.ts.map +1 -0
  95. package/dist/field/features/format/inlineCode/feature.client.js +46 -0
  96. package/dist/field/features/format/inlineCode/feature.client.js.map +1 -0
  97. package/dist/field/features/format/{inlinecode → inlineCode}/feature.server.d.ts.map +1 -1
  98. package/dist/field/features/format/{inlinecode → inlineCode}/feature.server.js +1 -1
  99. package/dist/field/features/format/{inlinecode → inlineCode}/feature.server.js.map +1 -1
  100. package/dist/field/features/format/{inlinecode → inlineCode}/markdownTransformers.d.ts.map +1 -1
  101. package/dist/field/features/format/{inlinecode → inlineCode}/markdownTransformers.js.map +1 -1
  102. package/dist/field/features/format/italic/feature.client.d.ts +4 -1
  103. package/dist/field/features/format/italic/feature.client.d.ts.map +1 -1
  104. package/dist/field/features/format/italic/feature.client.js +27 -24
  105. package/dist/field/features/format/italic/feature.client.js.map +1 -1
  106. package/dist/field/features/format/shared/toolbarFormatGroup.d.ts +3 -0
  107. package/dist/field/features/format/shared/toolbarFormatGroup.d.ts.map +1 -0
  108. package/dist/field/features/format/shared/toolbarFormatGroup.js +10 -0
  109. package/dist/field/features/format/shared/toolbarFormatGroup.js.map +1 -0
  110. package/dist/field/features/format/strikethrough/feature.client.d.ts +4 -1
  111. package/dist/field/features/format/strikethrough/feature.client.d.ts.map +1 -1
  112. package/dist/field/features/format/strikethrough/feature.client.js +27 -24
  113. package/dist/field/features/format/strikethrough/feature.client.js.map +1 -1
  114. package/dist/field/features/format/subscript/feature.client.d.ts +4 -1
  115. package/dist/field/features/format/subscript/feature.client.d.ts.map +1 -1
  116. package/dist/field/features/format/subscript/feature.client.js +25 -22
  117. package/dist/field/features/format/subscript/feature.client.js.map +1 -1
  118. package/dist/field/features/format/superscript/feature.client.d.ts +4 -1
  119. package/dist/field/features/format/superscript/feature.client.d.ts.map +1 -1
  120. package/dist/field/features/format/superscript/feature.client.js +25 -22
  121. package/dist/field/features/format/superscript/feature.client.js.map +1 -1
  122. package/dist/field/features/format/underline/feature.client.d.ts +4 -1
  123. package/dist/field/features/format/underline/feature.client.d.ts.map +1 -1
  124. package/dist/field/features/format/underline/feature.client.js +25 -22
  125. package/dist/field/features/format/underline/feature.client.js.map +1 -1
  126. package/dist/field/features/heading/feature.client.d.ts +4 -1
  127. package/dist/field/features/heading/feature.client.d.ts.map +1 -1
  128. package/dist/field/features/heading/feature.client.js +71 -54
  129. package/dist/field/features/heading/feature.client.js.map +1 -1
  130. package/dist/field/features/heading/feature.server.d.ts.map +1 -1
  131. package/dist/field/features/heading/feature.server.js +5 -5
  132. package/dist/field/features/heading/feature.server.js.map +1 -1
  133. package/dist/field/features/heading/markdownTransformer.d.ts.map +1 -1
  134. package/dist/field/features/heading/markdownTransformer.js +1 -2
  135. package/dist/field/features/heading/markdownTransformer.js.map +1 -1
  136. package/dist/field/features/horizontalRule/component/index.d.ts.map +1 -0
  137. package/dist/field/features/{horizontalrule → horizontalRule}/component/index.js +2 -4
  138. package/dist/field/features/horizontalRule/component/index.js.map +1 -0
  139. package/dist/field/features/{horizontalrule → horizontalRule}/feature.client.d.ts +4 -1
  140. package/dist/field/features/horizontalRule/feature.client.d.ts.map +1 -0
  141. package/dist/field/features/horizontalRule/feature.client.js +76 -0
  142. package/dist/field/features/horizontalRule/feature.client.js.map +1 -0
  143. package/dist/field/features/horizontalRule/feature.server.d.ts.map +1 -0
  144. package/dist/field/features/{horizontalrule → horizontalRule}/feature.server.js +4 -4
  145. package/dist/field/features/horizontalRule/feature.server.js.map +1 -0
  146. package/dist/field/features/{horizontalrule → horizontalRule}/markdownTransformer.d.ts.map +1 -1
  147. package/dist/field/features/{horizontalrule → horizontalRule}/markdownTransformer.js.map +1 -1
  148. package/dist/field/features/{horizontalrule → horizontalRule}/nodes/HorizontalRuleNode.d.ts +1 -3
  149. package/dist/field/features/horizontalRule/nodes/HorizontalRuleNode.d.ts.map +1 -0
  150. package/dist/field/features/{horizontalrule → horizontalRule}/nodes/HorizontalRuleNode.js +1 -2
  151. package/dist/field/features/horizontalRule/nodes/HorizontalRuleNode.js.map +1 -0
  152. package/dist/field/features/horizontalRule/plugin/index.d.ts +7 -0
  153. package/dist/field/features/horizontalRule/plugin/index.d.ts.map +1 -0
  154. package/dist/field/features/{horizontalrule → horizontalRule}/plugin/index.js +5 -8
  155. package/dist/field/features/horizontalRule/plugin/index.js.map +1 -0
  156. package/dist/field/features/indent/feature.client.d.ts +4 -1
  157. package/dist/field/features/indent/feature.client.d.ts.map +1 -1
  158. package/dist/field/features/indent/feature.client.js +43 -42
  159. package/dist/field/features/indent/feature.client.js.map +1 -1
  160. package/dist/field/features/indent/toolbarIndentGroup.d.ts +3 -0
  161. package/dist/field/features/indent/toolbarIndentGroup.d.ts.map +1 -0
  162. package/dist/field/features/indent/toolbarIndentGroup.js +10 -0
  163. package/dist/field/features/indent/toolbarIndentGroup.js.map +1 -0
  164. package/dist/field/features/link/drawer/baseFields.d.ts +2 -2
  165. package/dist/field/features/link/drawer/baseFields.d.ts.map +1 -1
  166. package/dist/field/features/link/drawer/baseFields.js +30 -43
  167. package/dist/field/features/link/drawer/baseFields.js.map +1 -1
  168. package/dist/field/features/link/drawer/index.js +3 -2
  169. package/dist/field/features/link/drawer/index.js.map +1 -1
  170. package/dist/field/features/link/drawer/types.d.ts +4 -2
  171. package/dist/field/features/link/drawer/types.d.ts.map +1 -1
  172. package/dist/field/features/link/drawer/types.js.map +1 -1
  173. package/dist/field/features/link/feature.client.d.ts +13 -1
  174. package/dist/field/features/link/feature.client.d.ts.map +1 -1
  175. package/dist/field/features/link/feature.client.js +59 -47
  176. package/dist/field/features/link/feature.client.js.map +1 -1
  177. package/dist/field/features/link/feature.server.d.ts +10 -5
  178. package/dist/field/features/link/feature.server.d.ts.map +1 -1
  179. package/dist/field/features/link/feature.server.js +48 -9
  180. package/dist/field/features/link/feature.server.js.map +1 -1
  181. package/dist/field/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  182. package/dist/field/features/link/nodes/AutoLinkNode.js +1 -2
  183. package/dist/field/features/link/nodes/AutoLinkNode.js.map +1 -1
  184. package/dist/field/features/link/nodes/LinkNode.d.ts +1 -3
  185. package/dist/field/features/link/nodes/LinkNode.d.ts.map +1 -1
  186. package/dist/field/features/link/nodes/LinkNode.js +2 -4
  187. package/dist/field/features/link/nodes/LinkNode.js.map +1 -1
  188. package/dist/field/features/link/plugins/autoLink/index.d.ts +3 -2
  189. package/dist/field/features/link/plugins/autoLink/index.d.ts.map +1 -1
  190. package/dist/field/features/link/plugins/autoLink/index.js +5 -8
  191. package/dist/field/features/link/plugins/autoLink/index.js.map +1 -1
  192. package/dist/field/features/link/plugins/clickableLink/index.d.ts +3 -2
  193. package/dist/field/features/link/plugins/clickableLink/index.d.ts.map +1 -1
  194. package/dist/field/features/link/plugins/clickableLink/index.js +2 -2
  195. package/dist/field/features/link/plugins/clickableLink/index.js.map +1 -1
  196. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -1
  197. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js +1 -2
  198. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -1
  199. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  200. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +93 -69
  201. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  202. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts +3 -4
  203. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts.map +1 -1
  204. package/dist/field/features/link/plugins/floatingLinkEditor/index.js.map +1 -1
  205. package/dist/field/features/link/plugins/floatingLinkEditor/index.scss +11 -3
  206. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts +1 -3
  207. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +1 -1
  208. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js +12 -30
  209. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js.map +1 -1
  210. package/dist/field/features/link/plugins/link/index.d.ts +3 -1
  211. package/dist/field/features/link/plugins/link/index.d.ts.map +1 -1
  212. package/dist/field/features/link/plugins/link/index.js +5 -14
  213. package/dist/field/features/link/plugins/link/index.js.map +1 -1
  214. package/dist/field/features/link/populationPromise.d.ts.map +1 -1
  215. package/dist/field/features/link/populationPromise.js +10 -25
  216. package/dist/field/features/link/populationPromise.js.map +1 -1
  217. package/dist/field/features/link/validate.d.ts +5 -0
  218. package/dist/field/features/link/validate.d.ts.map +1 -0
  219. package/dist/field/features/link/validate.js +32 -0
  220. package/dist/field/features/link/validate.js.map +1 -0
  221. package/dist/field/features/lists/checklist/feature.client.d.ts +4 -1
  222. package/dist/field/features/lists/checklist/feature.client.d.ts.map +1 -1
  223. package/dist/field/features/lists/checklist/feature.client.js +56 -32
  224. package/dist/field/features/lists/checklist/feature.client.js.map +1 -1
  225. package/dist/field/features/lists/checklist/feature.server.d.ts +1 -1
  226. package/dist/field/features/lists/checklist/feature.server.d.ts.map +1 -1
  227. package/dist/field/features/lists/checklist/feature.server.js +10 -10
  228. package/dist/field/features/lists/checklist/feature.server.js.map +1 -1
  229. package/dist/field/features/lists/checklist/markdownTransformers.d.ts.map +1 -1
  230. package/dist/field/features/lists/checklist/markdownTransformers.js +2 -3
  231. package/dist/field/features/lists/checklist/markdownTransformers.js.map +1 -1
  232. package/dist/field/features/lists/checklist/plugin/index.d.ts +2 -2
  233. package/dist/field/features/lists/checklist/plugin/index.d.ts.map +1 -1
  234. package/dist/field/features/lists/checklist/plugin/index.js +3 -4
  235. package/dist/field/features/lists/checklist/plugin/index.js.map +1 -1
  236. package/dist/field/features/lists/htmlConverter.d.ts.map +1 -1
  237. package/dist/field/features/lists/htmlConverter.js +13 -6
  238. package/dist/field/features/lists/htmlConverter.js.map +1 -1
  239. package/dist/field/features/lists/{orderedlist → orderedList}/feature.client.d.ts +4 -1
  240. package/dist/field/features/lists/orderedList/feature.client.d.ts.map +1 -0
  241. package/dist/field/features/lists/orderedList/feature.client.js +96 -0
  242. package/dist/field/features/lists/orderedList/feature.client.js.map +1 -0
  243. package/dist/field/features/lists/orderedList/feature.server.d.ts.map +1 -0
  244. package/dist/field/features/lists/{orderedlist → orderedList}/feature.server.js +7 -7
  245. package/dist/field/features/lists/orderedList/feature.server.js.map +1 -0
  246. package/dist/field/features/lists/orderedList/markdownTransformer.d.ts.map +1 -0
  247. package/dist/field/features/lists/{orderedlist → orderedList}/markdownTransformer.js +2 -3
  248. package/dist/field/features/lists/orderedList/markdownTransformer.js.map +1 -0
  249. package/dist/field/features/lists/plugin/index.d.ts +2 -2
  250. package/dist/field/features/lists/plugin/index.d.ts.map +1 -1
  251. package/dist/field/features/lists/plugin/index.js +3 -4
  252. package/dist/field/features/lists/plugin/index.js.map +1 -1
  253. package/dist/field/features/lists/{common → shared}/markdown.d.ts.map +1 -1
  254. package/dist/field/features/lists/{common → shared}/markdown.js +1 -2
  255. package/dist/field/features/lists/shared/markdown.js.map +1 -0
  256. package/dist/field/features/lists/{unorderedlist → unorderedList}/feature.client.d.ts +4 -1
  257. package/dist/field/features/lists/unorderedList/feature.client.d.ts.map +1 -0
  258. package/dist/field/features/lists/unorderedList/feature.client.js +96 -0
  259. package/dist/field/features/lists/unorderedList/feature.client.js.map +1 -0
  260. package/dist/field/features/lists/unorderedList/feature.server.d.ts.map +1 -0
  261. package/dist/field/features/lists/{unorderedlist → unorderedList}/feature.server.js +7 -7
  262. package/dist/field/features/lists/unorderedList/feature.server.js.map +1 -0
  263. package/dist/field/features/lists/unorderedList/markdownTransformer.d.ts.map +1 -0
  264. package/dist/field/features/lists/{unorderedlist → unorderedList}/markdownTransformer.js +2 -3
  265. package/dist/field/features/lists/unorderedList/markdownTransformer.js.map +1 -0
  266. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -1
  267. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +2 -4
  268. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -1
  269. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts +4 -1
  270. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -1
  271. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +1 -3
  272. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -1
  273. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +2 -4
  274. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  275. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +1 -1
  276. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js +1 -1
  277. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +1 -1
  278. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js +2 -2
  279. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +1 -1
  280. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -1
  281. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js +2 -4
  282. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -1
  283. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -1
  284. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js +2 -4
  285. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -1
  286. package/dist/field/features/migrations/slateToLexical/converter/index.d.ts.map +1 -1
  287. package/dist/field/features/migrations/slateToLexical/converter/index.js +2 -1
  288. package/dist/field/features/migrations/slateToLexical/converter/index.js.map +1 -1
  289. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts +4 -1
  290. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts.map +1 -1
  291. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +1 -3
  292. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -1
  293. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +2 -4
  294. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  295. package/dist/field/features/paragraph/feature.client.d.ts +4 -1
  296. package/dist/field/features/paragraph/feature.client.d.ts.map +1 -1
  297. package/dist/field/features/paragraph/feature.client.js +45 -33
  298. package/dist/field/features/paragraph/feature.client.js.map +1 -1
  299. package/dist/field/features/relationship/drawer/commands.d.ts.map +1 -1
  300. package/dist/field/features/relationship/drawer/commands.js +1 -2
  301. package/dist/field/features/relationship/drawer/commands.js.map +1 -1
  302. package/dist/field/features/relationship/drawer/index.d.ts.map +1 -1
  303. package/dist/field/features/relationship/drawer/index.js +7 -13
  304. package/dist/field/features/relationship/drawer/index.js.map +1 -1
  305. package/dist/field/features/relationship/feature.client.d.ts +17 -2
  306. package/dist/field/features/relationship/feature.client.d.ts.map +1 -1
  307. package/dist/field/features/relationship/feature.client.js +37 -15
  308. package/dist/field/features/relationship/feature.client.js.map +1 -1
  309. package/dist/field/features/relationship/feature.server.d.ts +10 -1
  310. package/dist/field/features/relationship/feature.server.d.ts.map +1 -1
  311. package/dist/field/features/relationship/feature.server.js +5 -4
  312. package/dist/field/features/relationship/feature.server.js.map +1 -1
  313. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts +3 -8
  314. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts.map +1 -1
  315. package/dist/field/features/relationship/nodes/RelationshipNode.js +8 -8
  316. package/dist/field/features/relationship/nodes/RelationshipNode.js.map +1 -1
  317. package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts.map +1 -1
  318. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js +56 -7
  319. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js.map +1 -1
  320. package/dist/field/features/relationship/plugins/index.d.ts +2 -2
  321. package/dist/field/features/relationship/plugins/index.d.ts.map +1 -1
  322. package/dist/field/features/relationship/plugins/index.js +9 -12
  323. package/dist/field/features/relationship/plugins/index.js.map +1 -1
  324. package/dist/field/features/relationship/populationPromise.d.ts +2 -1
  325. package/dist/field/features/relationship/populationPromise.d.ts.map +1 -1
  326. package/dist/field/features/relationship/populationPromise.js +25 -19
  327. package/dist/field/features/relationship/populationPromise.js.map +1 -1
  328. package/dist/field/features/shared/toolbar/addDropdownGroup.d.ts +3 -0
  329. package/dist/field/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -0
  330. package/dist/field/features/shared/toolbar/addDropdownGroup.js +12 -0
  331. package/dist/field/features/shared/toolbar/addDropdownGroup.js.map +1 -0
  332. package/dist/field/features/shared/toolbar/featureButtonsGroup.d.ts +3 -0
  333. package/dist/field/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -0
  334. package/dist/field/features/shared/toolbar/featureButtonsGroup.js +10 -0
  335. package/dist/field/features/shared/toolbar/featureButtonsGroup.js.map +1 -0
  336. package/dist/field/features/shared/toolbar/textDropdownGroup.d.ts +3 -0
  337. package/dist/field/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -0
  338. package/dist/field/features/shared/toolbar/textDropdownGroup.js +12 -0
  339. package/dist/field/features/shared/toolbar/textDropdownGroup.js.map +1 -0
  340. package/dist/field/features/toolbars/fixed/Toolbar/index.d.ts +4 -0
  341. package/dist/field/features/toolbars/fixed/Toolbar/index.d.ts.map +1 -0
  342. package/dist/field/features/toolbars/fixed/Toolbar/index.js +152 -0
  343. package/dist/field/features/toolbars/fixed/Toolbar/index.js.map +1 -0
  344. package/dist/field/features/toolbars/fixed/Toolbar/index.scss +91 -0
  345. package/dist/field/features/toolbars/fixed/feature.client.d.ts +6 -0
  346. package/dist/field/features/toolbars/fixed/feature.client.d.ts.map +1 -0
  347. package/dist/field/features/toolbars/fixed/feature.client.js +20 -0
  348. package/dist/field/features/toolbars/fixed/feature.client.js.map +1 -0
  349. package/dist/field/features/toolbars/fixed/feature.server.d.ts +3 -0
  350. package/dist/field/features/toolbars/fixed/feature.server.d.ts.map +1 -0
  351. package/dist/field/features/toolbars/fixed/feature.server.js +15 -0
  352. package/dist/field/features/toolbars/fixed/feature.server.js.map +1 -0
  353. package/dist/field/features/toolbars/inline/Toolbar/index.d.ts +4 -0
  354. package/dist/field/features/toolbars/inline/Toolbar/index.d.ts.map +1 -0
  355. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/inline/Toolbar}/index.js +112 -70
  356. package/dist/field/features/toolbars/inline/Toolbar/index.js.map +1 -0
  357. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/inline/Toolbar}/index.scss +7 -11
  358. package/dist/field/features/toolbars/inline/feature.client.d.ts +6 -0
  359. package/dist/field/features/toolbars/inline/feature.client.d.ts.map +1 -0
  360. package/dist/field/features/toolbars/inline/feature.client.js +20 -0
  361. package/dist/field/features/toolbars/inline/feature.client.js.map +1 -0
  362. package/dist/field/features/toolbars/inline/feature.server.d.ts +3 -0
  363. package/dist/field/features/toolbars/inline/feature.server.d.ts.map +1 -0
  364. package/dist/field/features/toolbars/inline/feature.server.js +15 -0
  365. package/dist/field/features/toolbars/inline/feature.server.js.map +1 -0
  366. package/dist/field/features/toolbars/shared/ToolbarButton/index.d.ts +10 -0
  367. package/dist/field/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -0
  368. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/shared}/ToolbarButton/index.js +29 -19
  369. package/dist/field/features/toolbars/shared/ToolbarButton/index.js.map +1 -0
  370. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/shared}/ToolbarButton/index.scss +3 -1
  371. package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts +23 -0
  372. package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -0
  373. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/shared}/ToolbarDropdown/DropDown.js +27 -72
  374. package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -0
  375. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.d.ts +23 -0
  376. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -0
  377. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.js +139 -0
  378. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -0
  379. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/shared}/ToolbarDropdown/index.scss +25 -13
  380. package/dist/field/features/toolbars/types.d.ts +48 -0
  381. package/dist/field/features/toolbars/types.d.ts.map +1 -0
  382. package/dist/field/features/toolbars/types.js.map +1 -0
  383. package/dist/field/features/typeUtilities.d.ts +8 -0
  384. package/dist/field/features/typeUtilities.d.ts.map +1 -0
  385. package/dist/field/features/typeUtilities.js +8 -0
  386. package/dist/field/features/typeUtilities.js.map +1 -0
  387. package/dist/field/features/types.d.ts +133 -59
  388. package/dist/field/features/types.d.ts.map +1 -1
  389. package/dist/field/features/types.js.map +1 -1
  390. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts.map +1 -1
  391. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js +5 -6
  392. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js.map +1 -1
  393. package/dist/field/features/upload/component/index.d.ts.map +1 -1
  394. package/dist/field/features/upload/component/index.js +59 -9
  395. package/dist/field/features/upload/component/index.js.map +1 -1
  396. package/dist/field/features/upload/drawer/commands.d.ts.map +1 -1
  397. package/dist/field/features/upload/drawer/commands.js +1 -2
  398. package/dist/field/features/upload/drawer/commands.js.map +1 -1
  399. package/dist/field/features/upload/drawer/index.d.ts.map +1 -1
  400. package/dist/field/features/upload/drawer/index.js +8 -12
  401. package/dist/field/features/upload/drawer/index.js.map +1 -1
  402. package/dist/field/features/upload/feature.client.d.ts +4 -1
  403. package/dist/field/features/upload/feature.client.d.ts.map +1 -1
  404. package/dist/field/features/upload/feature.client.js +35 -10
  405. package/dist/field/features/upload/feature.client.js.map +1 -1
  406. package/dist/field/features/upload/feature.server.d.ts +10 -3
  407. package/dist/field/features/upload/feature.server.d.ts.map +1 -1
  408. package/dist/field/features/upload/feature.server.js +39 -11
  409. package/dist/field/features/upload/feature.server.js.map +1 -1
  410. package/dist/field/features/upload/nodes/UploadNode.d.ts +2 -14
  411. package/dist/field/features/upload/nodes/UploadNode.d.ts.map +1 -1
  412. package/dist/field/features/upload/nodes/UploadNode.js +24 -11
  413. package/dist/field/features/upload/nodes/UploadNode.js.map +1 -1
  414. package/dist/field/features/upload/plugin/index.d.ts +5 -4
  415. package/dist/field/features/upload/plugin/index.d.ts.map +1 -1
  416. package/dist/field/features/upload/plugin/index.js +6 -11
  417. package/dist/field/features/upload/plugin/index.js.map +1 -1
  418. package/dist/field/features/upload/populationPromise.d.ts.map +1 -1
  419. package/dist/field/features/upload/populationPromise.js +15 -9
  420. package/dist/field/features/upload/populationPromise.js.map +1 -1
  421. package/dist/field/features/upload/validate.d.ts +2 -1
  422. package/dist/field/features/upload/validate.d.ts.map +1 -1
  423. package/dist/field/features/upload/validate.js +36 -9
  424. package/dist/field/features/upload/validate.js.map +1 -1
  425. package/dist/field/index.d.ts +1 -1
  426. package/dist/field/index.d.ts.map +1 -1
  427. package/dist/field/index.js.map +1 -1
  428. package/dist/field/index.scss +4 -0
  429. package/dist/field/lexical/EditorFocusProvider.d.ts +20 -0
  430. package/dist/field/lexical/EditorFocusProvider.d.ts.map +1 -0
  431. package/dist/field/lexical/EditorFocusProvider.js +78 -0
  432. package/dist/field/lexical/EditorFocusProvider.js.map +1 -0
  433. package/dist/field/lexical/EditorPlugin.d.ts +1 -0
  434. package/dist/field/lexical/EditorPlugin.d.ts.map +1 -1
  435. package/dist/field/lexical/EditorPlugin.js +6 -3
  436. package/dist/field/lexical/EditorPlugin.js.map +1 -1
  437. package/dist/field/lexical/LexicalEditor.d.ts.map +1 -1
  438. package/dist/field/lexical/LexicalEditor.js +31 -15
  439. package/dist/field/lexical/LexicalEditor.js.map +1 -1
  440. package/dist/field/lexical/LexicalEditor.scss +3 -19
  441. package/dist/field/lexical/LexicalProvider.d.ts +1 -1
  442. package/dist/field/lexical/LexicalProvider.d.ts.map +1 -1
  443. package/dist/field/lexical/LexicalProvider.js +4 -4
  444. package/dist/field/lexical/LexicalProvider.js.map +1 -1
  445. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts +2 -3
  446. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  447. package/dist/field/lexical/config/client/EditorConfigProvider.js.map +1 -1
  448. package/dist/field/lexical/config/client/default.d.ts +1 -1
  449. package/dist/field/lexical/config/client/default.d.ts.map +1 -1
  450. package/dist/field/lexical/config/client/default.js.map +1 -1
  451. package/dist/field/lexical/config/client/sanitize.d.ts +1 -1
  452. package/dist/field/lexical/config/client/sanitize.d.ts.map +1 -1
  453. package/dist/field/lexical/config/client/sanitize.js +81 -32
  454. package/dist/field/lexical/config/client/sanitize.js.map +1 -1
  455. package/dist/field/lexical/config/server/default.d.ts +2 -3
  456. package/dist/field/lexical/config/server/default.d.ts.map +1 -1
  457. package/dist/field/lexical/config/server/default.js +11 -11
  458. package/dist/field/lexical/config/server/default.js.map +1 -1
  459. package/dist/field/lexical/config/server/loader.d.ts +5 -2
  460. package/dist/field/lexical/config/server/loader.d.ts.map +1 -1
  461. package/dist/field/lexical/config/server/loader.js +4 -2
  462. package/dist/field/lexical/config/server/loader.js.map +1 -1
  463. package/dist/field/lexical/config/server/sanitize.d.ts +2 -1
  464. package/dist/field/lexical/config/server/sanitize.d.ts.map +1 -1
  465. package/dist/field/lexical/config/server/sanitize.js +23 -8
  466. package/dist/field/lexical/config/server/sanitize.js.map +1 -1
  467. package/dist/field/lexical/config/types.d.ts +1 -1
  468. package/dist/field/lexical/config/types.d.ts.map +1 -1
  469. package/dist/field/lexical/config/types.js.map +1 -1
  470. package/dist/field/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -1
  471. package/dist/field/lexical/plugins/MarkdownShortcut/index.js +1 -2
  472. package/dist/field/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  473. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +9 -9
  474. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -1
  475. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +74 -77
  476. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  477. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +4 -4
  478. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -1
  479. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +6 -9
  480. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -1
  481. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +17 -25
  482. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  483. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +1 -37
  484. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  485. package/dist/field/lexical/plugins/SlashMenu/index.d.ts +2 -2
  486. package/dist/field/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  487. package/dist/field/lexical/plugins/SlashMenu/index.js +72 -67
  488. package/dist/field/lexical/plugins/SlashMenu/index.js.map +1 -1
  489. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -1
  490. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js +2 -4
  491. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  492. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.d.ts +1 -1
  493. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.d.ts.map +1 -1
  494. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js +3 -4
  495. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js.map +1 -1
  496. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  497. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js +8 -7
  498. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  499. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss +8 -0
  500. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +1 -1
  501. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +25 -6
  502. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -1
  503. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +1 -1
  504. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +1 -2
  505. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -1
  506. package/dist/field/lexical/theme/EditorTheme.scss +13 -14
  507. package/dist/field/lexical/ui/ContentEditable.d.ts.map +1 -1
  508. package/dist/field/lexical/ui/ContentEditable.js +1 -2
  509. package/dist/field/lexical/ui/ContentEditable.js.map +1 -1
  510. package/dist/field/lexical/ui/icons/Add/index.d.ts +3 -0
  511. package/dist/field/lexical/ui/icons/Add/index.d.ts.map +1 -0
  512. package/dist/field/lexical/ui/icons/Add/index.js +16 -0
  513. package/dist/field/lexical/ui/icons/Add/index.js.map +1 -0
  514. package/dist/field/lexical/utils/getSelectedNode.d.ts.map +1 -1
  515. package/dist/field/lexical/utils/getSelectedNode.js +1 -2
  516. package/dist/field/lexical/utils/getSelectedNode.js.map +1 -1
  517. package/dist/field/lexical/utils/nodeFormat.d.ts +2 -1
  518. package/dist/field/lexical/utils/nodeFormat.d.ts.map +1 -1
  519. package/dist/field/lexical/utils/nodeFormat.js.map +1 -1
  520. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts +11 -1
  521. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts.map +1 -1
  522. package/dist/field/lexical/utils/setFloatingElemPosition.js +16 -13
  523. package/dist/field/lexical/utils/setFloatingElemPosition.js.map +1 -1
  524. package/dist/field/lexical/utils/url.d.ts.map +1 -1
  525. package/dist/field/lexical/utils/url.js +3 -0
  526. package/dist/field/lexical/utils/url.js.map +1 -1
  527. package/dist/forEachNodeRecursively.d.ts +10 -0
  528. package/dist/forEachNodeRecursively.d.ts.map +1 -0
  529. package/dist/forEachNodeRecursively.js +24 -0
  530. package/dist/forEachNodeRecursively.js.map +1 -0
  531. package/dist/generateComponentMap.d.ts.map +1 -1
  532. package/dist/generateComponentMap.js +13 -21
  533. package/dist/generateComponentMap.js.map +1 -1
  534. package/dist/generateSchemaMap.d.ts.map +1 -1
  535. package/dist/generateSchemaMap.js +4 -12
  536. package/dist/generateSchemaMap.js.map +1 -1
  537. package/dist/index.d.ts +24 -20
  538. package/dist/index.d.ts.map +1 -1
  539. package/dist/index.js +275 -184
  540. package/dist/index.js.map +1 -1
  541. package/dist/populate/defaultValue.d.ts.map +1 -1
  542. package/dist/populate/defaultValue.js +1 -0
  543. package/dist/populate/defaultValue.js.map +1 -1
  544. package/dist/populate/populate.d.ts +5 -4
  545. package/dist/populate/populate.d.ts.map +1 -1
  546. package/dist/populate/populate.js +13 -11
  547. package/dist/populate/populate.js.map +1 -1
  548. package/dist/populate/populateLexicalPopulationPromises.d.ts +12 -0
  549. package/dist/populate/populateLexicalPopulationPromises.d.ts.map +1 -0
  550. package/dist/populate/populateLexicalPopulationPromises.js +36 -0
  551. package/dist/populate/populateLexicalPopulationPromises.js.map +1 -0
  552. package/dist/populate/recurseNestedFields.d.ts +8 -4
  553. package/dist/populate/recurseNestedFields.d.ts.map +1 -1
  554. package/dist/populate/recurseNestedFields.js +4 -5
  555. package/dist/populate/recurseNestedFields.js.map +1 -1
  556. package/dist/types.d.ts +12 -5
  557. package/dist/types.d.ts.map +1 -1
  558. package/dist/types.js.map +1 -1
  559. package/dist/validate/index.d.ts +1 -1
  560. package/dist/validate/index.d.ts.map +1 -1
  561. package/package.json +47 -46
  562. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts +0 -3
  563. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts.map +0 -1
  564. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js +0 -12
  565. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js.map +0 -1
  566. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts +0 -3
  567. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts.map +0 -1
  568. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js +0 -10
  569. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js.map +0 -1
  570. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts +0 -3
  571. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts.map +0 -1
  572. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js +0 -12
  573. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js.map +0 -1
  574. package/dist/field/features/debug/testrecorder/feature.client.d.ts.map +0 -1
  575. package/dist/field/features/debug/testrecorder/plugin/index.d.ts +0 -5
  576. package/dist/field/features/debug/testrecorder/plugin/index.d.ts.map +0 -1
  577. package/dist/field/features/debug/testrecorder/plugin/index.js.map +0 -1
  578. package/dist/field/features/debug/treeview/feature.client.d.ts.map +0 -1
  579. package/dist/field/features/debug/treeview/plugin/index.d.ts +0 -4
  580. package/dist/field/features/debug/treeview/plugin/index.d.ts.map +0 -1
  581. package/dist/field/features/debug/treeview/plugin/index.js.map +0 -1
  582. package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts +0 -3
  583. package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts.map +0 -1
  584. package/dist/field/features/format/common/floatingSelectToolbarSection.js +0 -10
  585. package/dist/field/features/format/common/floatingSelectToolbarSection.js.map +0 -1
  586. package/dist/field/features/format/inlinecode/feature.client.d.ts.map +0 -1
  587. package/dist/field/features/format/inlinecode/feature.client.js +0 -43
  588. package/dist/field/features/format/inlinecode/feature.client.js.map +0 -1
  589. package/dist/field/features/horizontalrule/component/index.d.ts.map +0 -1
  590. package/dist/field/features/horizontalrule/component/index.js.map +0 -1
  591. package/dist/field/features/horizontalrule/feature.client.d.ts.map +0 -1
  592. package/dist/field/features/horizontalrule/feature.client.js +0 -53
  593. package/dist/field/features/horizontalrule/feature.client.js.map +0 -1
  594. package/dist/field/features/horizontalrule/feature.server.d.ts.map +0 -1
  595. package/dist/field/features/horizontalrule/feature.server.js.map +0 -1
  596. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.d.ts.map +0 -1
  597. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.js.map +0 -1
  598. package/dist/field/features/horizontalrule/plugin/index.d.ts +0 -6
  599. package/dist/field/features/horizontalrule/plugin/index.d.ts.map +0 -1
  600. package/dist/field/features/horizontalrule/plugin/index.js.map +0 -1
  601. package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts +0 -3
  602. package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts.map +0 -1
  603. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js +0 -10
  604. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js.map +0 -1
  605. package/dist/field/features/indent/index.scss +0 -4
  606. package/dist/field/features/lists/common/markdown.js.map +0 -1
  607. package/dist/field/features/lists/orderedlist/feature.client.d.ts.map +0 -1
  608. package/dist/field/features/lists/orderedlist/feature.client.js +0 -72
  609. package/dist/field/features/lists/orderedlist/feature.client.js.map +0 -1
  610. package/dist/field/features/lists/orderedlist/feature.server.d.ts.map +0 -1
  611. package/dist/field/features/lists/orderedlist/feature.server.js.map +0 -1
  612. package/dist/field/features/lists/orderedlist/markdownTransformer.d.ts.map +0 -1
  613. package/dist/field/features/lists/orderedlist/markdownTransformer.js.map +0 -1
  614. package/dist/field/features/lists/unorderedlist/feature.client.d.ts.map +0 -1
  615. package/dist/field/features/lists/unorderedlist/feature.client.js +0 -72
  616. package/dist/field/features/lists/unorderedlist/feature.client.js.map +0 -1
  617. package/dist/field/features/lists/unorderedlist/feature.server.d.ts.map +0 -1
  618. package/dist/field/features/lists/unorderedlist/feature.server.js.map +0 -1
  619. package/dist/field/features/lists/unorderedlist/markdownTransformer.d.ts.map +0 -1
  620. package/dist/field/features/lists/unorderedlist/markdownTransformer.js.map +0 -1
  621. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts +0 -8
  622. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts.map +0 -1
  623. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js.map +0 -1
  624. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts +0 -17
  625. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts.map +0 -1
  626. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js.map +0 -1
  627. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts +0 -18
  628. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts.map +0 -1
  629. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js +0 -42
  630. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js.map +0 -1
  631. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts +0 -6
  632. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts.map +0 -1
  633. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js.map +0 -1
  634. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts +0 -40
  635. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts.map +0 -1
  636. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.js.map +0 -1
  637. package/dist/populate/richTextRelationshipPromise.d.ts +0 -23
  638. package/dist/populate/richTextRelationshipPromise.d.ts.map +0 -1
  639. package/dist/populate/richTextRelationshipPromise.js +0 -68
  640. package/dist/populate/richTextRelationshipPromise.js.map +0 -1
  641. package/src/index.ts +0 -423
  642. /package/dist/field/features/debug/{testrecorder → testRecorder}/feature.client.js +0 -0
  643. /package/dist/field/features/debug/{testrecorder → testRecorder}/feature.server.d.ts +0 -0
  644. /package/dist/field/features/debug/{testrecorder → testRecorder}/plugin/index.scss +0 -0
  645. /package/dist/field/features/debug/{treeview → treeView}/feature.client.js +0 -0
  646. /package/dist/field/features/debug/{treeview → treeView}/feature.server.d.ts +0 -0
  647. /package/dist/field/features/debug/{treeview → treeView}/plugin/index.scss +0 -0
  648. /package/dist/field/features/format/{inlinecode → inlineCode}/feature.server.d.ts +0 -0
  649. /package/dist/field/features/format/{inlinecode → inlineCode}/markdownTransformers.d.ts +0 -0
  650. /package/dist/field/features/format/{inlinecode → inlineCode}/markdownTransformers.js +0 -0
  651. /package/dist/field/features/{horizontalrule → horizontalRule}/component/index.d.ts +0 -0
  652. /package/dist/field/features/{horizontalrule → horizontalRule}/feature.server.d.ts +0 -0
  653. /package/dist/field/features/{horizontalrule → horizontalRule}/markdownTransformer.d.ts +0 -0
  654. /package/dist/field/features/{horizontalrule → horizontalRule}/markdownTransformer.js +0 -0
  655. /package/dist/field/features/{horizontalrule → horizontalRule}/plugin/index.scss +0 -0
  656. /package/dist/field/features/lists/{orderedlist → orderedList}/feature.server.d.ts +0 -0
  657. /package/dist/field/features/lists/{orderedlist → orderedList}/markdownTransformer.d.ts +0 -0
  658. /package/dist/field/features/lists/{common → shared}/markdown.d.ts +0 -0
  659. /package/dist/field/features/lists/{unorderedlist → unorderedList}/feature.server.d.ts +0 -0
  660. /package/dist/field/features/lists/{unorderedlist → unorderedList}/markdownTransformer.d.ts +0 -0
  661. /package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars}/types.js +0 -0
@@ -0,0 +1,12 @@
1
+ import { TextIcon } from '../../../lexical/ui/icons/Text/index.js';
2
+ export const toolbarTextDropdownGroupWithItems = (items)=>{
3
+ return {
4
+ type: 'dropdown',
5
+ ChildComponent: TextIcon,
6
+ items,
7
+ key: 'text',
8
+ order: 25
9
+ };
10
+ };
11
+
12
+ //# sourceMappingURL=textDropdownGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/field/features/shared/toolbar/textDropdownGroup.ts"],"sourcesContent":["import type { ToolbarGroup, ToolbarGroupItem } from '../../toolbars/types.js'\n\nimport { TextIcon } from '../../../lexical/ui/icons/Text/index.js'\n\nexport const toolbarTextDropdownGroupWithItems = (items: ToolbarGroupItem[]): ToolbarGroup => {\n return {\n type: 'dropdown',\n ChildComponent: TextIcon,\n items,\n key: 'text',\n order: 25,\n }\n}\n"],"names":["TextIcon","toolbarTextDropdownGroupWithItems","items","type","ChildComponent","key","order"],"rangeMappings":";;;;;;;;;","mappings":"AAEA,SAASA,QAAQ,QAAQ,0CAAyC;AAElE,OAAO,MAAMC,oCAAoC,CAACC;IAChD,OAAO;QACLC,MAAM;QACNC,gBAAgBJ;QAChBE;QACAG,KAAK;QACLC,OAAO;IACT;AACF,EAAC"}
@@ -0,0 +1,4 @@
1
+ import type { PluginComponentWithAnchor } from '../../../types.js';
2
+ import './index.scss';
3
+ export declare const FixedToolbarPlugin: PluginComponentWithAnchor<undefined>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/field/features/toolbars/fixed/Toolbar/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAOlE,OAAO,cAAc,CAAA;AA2KrB,eAAO,MAAM,kBAAkB,EAAE,yBAAyB,CAAC,SAAS,CAqBnE,CAAA"}
@@ -0,0 +1,152 @@
1
+ 'use client';
2
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js';
3
+ import { useTranslation } from '@payloadcms/ui/providers/Translation';
4
+ import * as React from 'react';
5
+ import { useEditorFocus } from '../../../../lexical/EditorFocusProvider.js';
6
+ import { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js';
7
+ import { ToolbarButton } from '../../shared/ToolbarButton/index.js';
8
+ import { ToolbarDropdown } from '../../shared/ToolbarDropdown/index.js';
9
+ import './index.scss';
10
+ function ButtonGroupItem({ anchorElem, editor, item }) {
11
+ if (item.Component) {
12
+ return item?.Component && /*#__PURE__*/ React.createElement(item.Component, {
13
+ anchorElem: anchorElem,
14
+ editor: editor,
15
+ item: item,
16
+ key: item.key
17
+ });
18
+ }
19
+ return /*#__PURE__*/ React.createElement(ToolbarButton, {
20
+ editor: editor,
21
+ item: item,
22
+ key: item.key
23
+ }, item?.ChildComponent && /*#__PURE__*/ React.createElement(item.ChildComponent, null));
24
+ }
25
+ function ToolbarGroupComponent({ anchorElem, editor, editorConfig, group, index }) {
26
+ const { i18n } = useTranslation();
27
+ const [dropdownLabel, setDropdownLabel] = React.useState(null);
28
+ const [DropdownIcon, setDropdownIcon] = React.useState(null);
29
+ React.useEffect(()=>{
30
+ if (group?.type === 'dropdown' && group.items.length && group.ChildComponent) {
31
+ setDropdownIcon(()=>group.ChildComponent);
32
+ } else {
33
+ setDropdownIcon(null);
34
+ }
35
+ }, [
36
+ group
37
+ ]);
38
+ const onActiveChange = ({ activeItems })=>{
39
+ if (!activeItems.length) {
40
+ if (group?.type === 'dropdown' && group.items.length && group.ChildComponent) {
41
+ setDropdownIcon(()=>group.ChildComponent);
42
+ setDropdownLabel(null);
43
+ } else {
44
+ setDropdownIcon(null);
45
+ setDropdownLabel(null);
46
+ }
47
+ return;
48
+ }
49
+ const item = activeItems[0];
50
+ let label = item.key;
51
+ if (item.label) {
52
+ label = typeof item.label === 'function' ? item.label({
53
+ i18n
54
+ }) : item.label;
55
+ }
56
+ // Crop title to max. 25 characters
57
+ if (label.length > 25) {
58
+ label = label.substring(0, 25) + '...';
59
+ }
60
+ setDropdownLabel(label);
61
+ setDropdownIcon(()=>item.ChildComponent);
62
+ };
63
+ return /*#__PURE__*/ React.createElement("div", {
64
+ className: `fixed-toolbar__group fixed-toolbar__group-${group.key}`,
65
+ key: group.key
66
+ }, group.type === 'dropdown' && group.items.length && (DropdownIcon ? /*#__PURE__*/ React.createElement(ToolbarDropdown, {
67
+ Icon: DropdownIcon,
68
+ anchorElem: anchorElem,
69
+ editor: editor,
70
+ groupKey: group.key,
71
+ items: group.items,
72
+ itemsContainerClassNames: [
73
+ 'fixed-toolbar__dropdown-items'
74
+ ],
75
+ label: dropdownLabel,
76
+ maxActiveItems: 1,
77
+ onActiveChange: onActiveChange
78
+ }) : /*#__PURE__*/ React.createElement(ToolbarDropdown, {
79
+ anchorElem: anchorElem,
80
+ editor: editor,
81
+ groupKey: group.key,
82
+ items: group.items,
83
+ itemsContainerClassNames: [
84
+ 'fixed-toolbar__dropdown-items'
85
+ ],
86
+ label: dropdownLabel,
87
+ maxActiveItems: 1,
88
+ onActiveChange: onActiveChange
89
+ })), group.type === 'buttons' && group.items.length && group.items.map((item)=>{
90
+ return /*#__PURE__*/ React.createElement(ButtonGroupItem, {
91
+ anchorElem: anchorElem,
92
+ editor: editor,
93
+ item: item,
94
+ key: item.key
95
+ });
96
+ }), index < editorConfig.features.toolbarFixed?.groups.length - 1 && /*#__PURE__*/ React.createElement("div", {
97
+ className: "divider"
98
+ }));
99
+ }
100
+ function FixedToolbar({ anchorElem, editor, editorConfig }) {
101
+ return /*#__PURE__*/ React.createElement("div", {
102
+ className: "fixed-toolbar",
103
+ onFocus: (event)=>{
104
+ // Prevent other focus events being triggered. Otherwise, if this was to be clicked while in a child editor,
105
+ // the parent editor will be focused, and the child editor will lose focus.
106
+ event.stopPropagation();
107
+ }
108
+ }, editor.isEditable() && /*#__PURE__*/ React.createElement(React.Fragment, null, editorConfig?.features && editorConfig.features?.toolbarFixed?.groups.map((group, i)=>{
109
+ return /*#__PURE__*/ React.createElement(ToolbarGroupComponent, {
110
+ anchorElem: anchorElem,
111
+ editor: editor,
112
+ editorConfig: editorConfig,
113
+ group: group,
114
+ index: i,
115
+ key: group.key
116
+ });
117
+ })));
118
+ }
119
+ const checkParentEditor = (editorFocus)=>{
120
+ if (editorFocus.parentEditorConfigContext?.editorConfig) {
121
+ if (editorFocus.parentEditorConfigContext?.editorConfig.resolvedFeatureMap.has('toolbarFixed')) {
122
+ return true;
123
+ } else {
124
+ if (editorFocus.parentEditorFocus) {
125
+ return checkParentEditor(editorFocus.parentEditorFocus);
126
+ }
127
+ }
128
+ }
129
+ return false;
130
+ };
131
+ export const FixedToolbarPlugin = ({ anchorElem })=>{
132
+ const [currentEditor] = useLexicalComposerContext();
133
+ const { editorConfig: currentEditorConfig, uuid } = useEditorConfigContext();
134
+ const editorFocus = useEditorFocus();
135
+ const editor = editorFocus.focusedEditor || currentEditor;
136
+ const editorConfig = editorFocus.focusedEditorConfigContext?.editorConfig || currentEditorConfig;
137
+ // Check if there is a parent editor with a fixed toolbar already
138
+ const hasParentWithFixedToolbar = checkParentEditor(editorFocus);
139
+ if (hasParentWithFixedToolbar) {
140
+ return null;
141
+ }
142
+ if (!editorConfig?.features?.toolbarFixed?.groups?.length) {
143
+ return null;
144
+ }
145
+ return /*#__PURE__*/ React.createElement(FixedToolbar, {
146
+ anchorElem: anchorElem,
147
+ editor: editor,
148
+ editorConfig: editorConfig
149
+ });
150
+ };
151
+
152
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/field/features/toolbars/fixed/Toolbar/index.tsx"],"sourcesContent":["'use client'\nimport type { LexicalEditor } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { useTranslation } from '@payloadcms/ui/providers/Translation'\nimport * as React from 'react'\n\nimport type { EditorFocusContextType } from '../../../../lexical/EditorFocusProvider.js'\nimport type { SanitizedClientEditorConfig } from '../../../../lexical/config/types.js'\nimport type { PluginComponentWithAnchor } from '../../../types.js'\nimport type { ToolbarGroup, ToolbarGroupItem } from '../../types.js'\n\nimport { useEditorFocus } from '../../../../lexical/EditorFocusProvider.js'\nimport { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js'\nimport { ToolbarButton } from '../../shared/ToolbarButton/index.js'\nimport { ToolbarDropdown } from '../../shared/ToolbarDropdown/index.js'\nimport './index.scss'\n\nfunction ButtonGroupItem({\n anchorElem,\n editor,\n item,\n}: {\n anchorElem: HTMLElement\n editor: LexicalEditor\n item: ToolbarGroupItem\n}): React.ReactNode {\n if (item.Component) {\n return (\n item?.Component && (\n <item.Component anchorElem={anchorElem} editor={editor} item={item} key={item.key} />\n )\n )\n }\n\n return (\n <ToolbarButton editor={editor} item={item} key={item.key}>\n {item?.ChildComponent && <item.ChildComponent />}\n </ToolbarButton>\n )\n}\n\nfunction ToolbarGroupComponent({\n anchorElem,\n editor,\n editorConfig,\n group,\n index,\n}: {\n anchorElem: HTMLElement\n editor: LexicalEditor\n editorConfig: SanitizedClientEditorConfig\n group: ToolbarGroup\n index: number\n}): React.ReactNode {\n const { i18n } = useTranslation()\n\n const [dropdownLabel, setDropdownLabel] = React.useState<null | string>(null)\n const [DropdownIcon, setDropdownIcon] = React.useState<React.FC | null>(null)\n\n React.useEffect(() => {\n if (group?.type === 'dropdown' && group.items.length && group.ChildComponent) {\n setDropdownIcon(() => group.ChildComponent)\n } else {\n setDropdownIcon(null)\n }\n }, [group])\n\n const onActiveChange = ({ activeItems }: { activeItems: ToolbarGroupItem[] }) => {\n if (!activeItems.length) {\n if (group?.type === 'dropdown' && group.items.length && group.ChildComponent) {\n setDropdownIcon(() => group.ChildComponent)\n setDropdownLabel(null)\n } else {\n setDropdownIcon(null)\n setDropdownLabel(null)\n }\n return\n }\n const item = activeItems[0]\n\n let label = item.key\n if (item.label) {\n label = typeof item.label === 'function' ? item.label({ i18n }) : item.label\n }\n // Crop title to max. 25 characters\n if (label.length > 25) {\n label = label.substring(0, 25) + '...'\n }\n setDropdownLabel(label)\n setDropdownIcon(() => item.ChildComponent)\n }\n\n return (\n <div className={`fixed-toolbar__group fixed-toolbar__group-${group.key}`} key={group.key}>\n {group.type === 'dropdown' &&\n group.items.length &&\n (DropdownIcon ? (\n <ToolbarDropdown\n Icon={DropdownIcon}\n anchorElem={anchorElem}\n editor={editor}\n groupKey={group.key}\n items={group.items}\n itemsContainerClassNames={['fixed-toolbar__dropdown-items']}\n label={dropdownLabel}\n maxActiveItems={1}\n onActiveChange={onActiveChange}\n />\n ) : (\n <ToolbarDropdown\n anchorElem={anchorElem}\n editor={editor}\n groupKey={group.key}\n items={group.items}\n itemsContainerClassNames={['fixed-toolbar__dropdown-items']}\n label={dropdownLabel}\n maxActiveItems={1}\n onActiveChange={onActiveChange}\n />\n ))}\n {group.type === 'buttons' &&\n group.items.length &&\n group.items.map((item) => {\n return (\n <ButtonGroupItem anchorElem={anchorElem} editor={editor} item={item} key={item.key} />\n )\n })}\n {index < editorConfig.features.toolbarFixed?.groups.length - 1 && <div className=\"divider\" />}\n </div>\n )\n}\n\nfunction FixedToolbar({\n anchorElem,\n editor,\n editorConfig,\n}: {\n anchorElem: HTMLElement\n editor: LexicalEditor\n editorConfig: SanitizedClientEditorConfig\n}): React.ReactNode {\n return (\n <div\n className=\"fixed-toolbar\"\n onFocus={(event) => {\n // Prevent other focus events being triggered. Otherwise, if this was to be clicked while in a child editor,\n // the parent editor will be focused, and the child editor will lose focus.\n event.stopPropagation()\n }}\n >\n {editor.isEditable() && (\n <React.Fragment>\n {editorConfig?.features &&\n editorConfig.features?.toolbarFixed?.groups.map((group, i) => {\n return (\n <ToolbarGroupComponent\n anchorElem={anchorElem}\n editor={editor}\n editorConfig={editorConfig}\n group={group}\n index={i}\n key={group.key}\n />\n )\n })}\n </React.Fragment>\n )}\n </div>\n )\n}\n\nconst checkParentEditor = (editorFocus: EditorFocusContextType): boolean => {\n if (editorFocus.parentEditorConfigContext?.editorConfig) {\n if (\n editorFocus.parentEditorConfigContext?.editorConfig.resolvedFeatureMap.has('toolbarFixed')\n ) {\n return true\n } else {\n if (editorFocus.parentEditorFocus) {\n return checkParentEditor(editorFocus.parentEditorFocus)\n }\n }\n }\n return false\n}\n\nexport const FixedToolbarPlugin: PluginComponentWithAnchor<undefined> = ({ anchorElem }) => {\n const [currentEditor] = useLexicalComposerContext()\n const { editorConfig: currentEditorConfig, uuid } = useEditorConfigContext()\n\n const editorFocus = useEditorFocus()\n const editor = editorFocus.focusedEditor || currentEditor\n\n const editorConfig = editorFocus.focusedEditorConfigContext?.editorConfig || currentEditorConfig\n\n // Check if there is a parent editor with a fixed toolbar already\n const hasParentWithFixedToolbar = checkParentEditor(editorFocus)\n\n if (hasParentWithFixedToolbar) {\n return null\n }\n\n if (!editorConfig?.features?.toolbarFixed?.groups?.length) {\n return null\n }\n\n return <FixedToolbar anchorElem={anchorElem} editor={editor} editorConfig={editorConfig} />\n}\n"],"names":["useLexicalComposerContext","useTranslation","React","useEditorFocus","useEditorConfigContext","ToolbarButton","ToolbarDropdown","ButtonGroupItem","anchorElem","editor","item","Component","key","ChildComponent","ToolbarGroupComponent","editorConfig","group","index","i18n","dropdownLabel","setDropdownLabel","useState","DropdownIcon","setDropdownIcon","useEffect","type","items","length","onActiveChange","activeItems","label","substring","div","className","Icon","groupKey","itemsContainerClassNames","maxActiveItems","map","features","toolbarFixed","groups","FixedToolbar","onFocus","event","stopPropagation","isEditable","Fragment","i","checkParentEditor","editorFocus","parentEditorConfigContext","resolvedFeatureMap","has","parentEditorFocus","FixedToolbarPlugin","currentEditor","currentEditorConfig","uuid","focusedEditor","focusedEditorConfigContext","hasParentWithFixedToolbar"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"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"}
@@ -0,0 +1,91 @@
1
+ @import '../../../../../scss/styles';
2
+
3
+ html[data-theme='dark'] {
4
+ .fixed-toolbar {
5
+ &__dropdown-items {
6
+ background: var(--theme-elevation-0);
7
+
8
+ .toolbar-popup__dropdown-item {
9
+ color: var(--theme-elevation-900);
10
+
11
+ &:hover:not([disabled]),
12
+ &.active {
13
+ background-color: var(--theme-elevation-100);
14
+ }
15
+
16
+ .icon {
17
+ color: var(--theme-elevation-600);
18
+ }
19
+ }
20
+ }
21
+
22
+ .toolbar-popup {
23
+ &__button {
24
+ &.active,
25
+ &:hover:not([disabled]) {
26
+ background-color: var(--theme-elevation-100);
27
+ }
28
+ }
29
+
30
+ &__dropdown {
31
+ &:hover:not([disabled]) {
32
+ background-color: var(--theme-elevation-100);
33
+ }
34
+
35
+ &-caret:after {
36
+ filter: invert(1);
37
+ }
38
+
39
+ &-label {
40
+ color: var(--theme-elevation-750);
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+
47
+ .fixed-toolbar {
48
+ @include blur-bg(var(--theme-elevation-0));
49
+ display: flex;
50
+ align-items: center;
51
+ padding: calc(var(--base) / 4);
52
+ vertical-align: middle;
53
+ position: sticky;
54
+ z-index: 2;
55
+ top: var(--doc-controls-height);
56
+ border: $style-stroke-width-s solid var(--theme-elevation-150);
57
+ transform: translateY(1px); // aligns with top bar pixel line when stuck
58
+
59
+ &__group {
60
+ display: flex;
61
+ align-items: center;
62
+ gap: 2px;
63
+ z-index: 1;
64
+
65
+ .icon {
66
+ min-width: 20px;
67
+ height: 20px;
68
+ color: var(--theme-elevation-600);
69
+ }
70
+
71
+ .divider {
72
+ width: 1px;
73
+ height: 15px;
74
+ background-color: var(--color-base-100);
75
+ margin: 0 6.25px;
76
+ }
77
+ }
78
+
79
+ .toolbar-popup {
80
+ &__dropdown,
81
+ &__button {
82
+ border-radius: 0;
83
+ }
84
+ }
85
+
86
+ + .editor-scroller {
87
+ .ContentEditable__root {
88
+ padding-top: calc(var(--base) * 1.25);
89
+ }
90
+ }
91
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" resolution-mode="require"/>
2
+ export declare const FixedToolbarFeatureClientComponent: import("react").FC<{
3
+ featureKey: string;
4
+ order: number;
5
+ }>;
6
+ //# sourceMappingURL=feature.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.client.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/toolbars/fixed/feature.client.tsx"],"names":[],"mappings":";AAsBA,eAAO,MAAM,kCAAkC;;;EAAmD,CAAA"}
@@ -0,0 +1,20 @@
1
+ 'use client';
2
+ import { createClientComponent } from '../../createClientComponent.js';
3
+ import { FixedToolbarPlugin } from './Toolbar/index.js';
4
+ const FixedToolbarFeatureClient = (props)=>{
5
+ return {
6
+ clientFeatureProps: props,
7
+ feature: ()=>({
8
+ clientFeatureProps: props,
9
+ plugins: [
10
+ {
11
+ Component: FixedToolbarPlugin,
12
+ position: 'top'
13
+ }
14
+ ]
15
+ })
16
+ };
17
+ };
18
+ export const FixedToolbarFeatureClientComponent = createClientComponent(FixedToolbarFeatureClient);
19
+
20
+ //# sourceMappingURL=feature.client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/field/features/toolbars/fixed/feature.client.tsx"],"sourcesContent":["'use client'\n\nimport type { FeatureProviderProviderClient } from '../../types.js'\n\nimport { createClientComponent } from '../../createClientComponent.js'\nimport { FixedToolbarPlugin } from './Toolbar/index.js'\n\nconst FixedToolbarFeatureClient: FeatureProviderProviderClient<undefined> = (props) => {\n return {\n clientFeatureProps: props,\n feature: () => ({\n clientFeatureProps: props,\n plugins: [\n {\n Component: FixedToolbarPlugin,\n position: 'top',\n },\n ],\n }),\n }\n}\n\nexport const FixedToolbarFeatureClientComponent = createClientComponent(FixedToolbarFeatureClient)\n"],"names":["createClientComponent","FixedToolbarPlugin","FixedToolbarFeatureClient","props","clientFeatureProps","feature","plugins","Component","position","FixedToolbarFeatureClientComponent"],"rangeMappings":";;;;;;;;;;;;;;;;;","mappings":"AAAA;AAIA,SAASA,qBAAqB,QAAQ,iCAAgC;AACtE,SAASC,kBAAkB,QAAQ,qBAAoB;AAEvD,MAAMC,4BAAsE,CAACC;IAC3E,OAAO;QACLC,oBAAoBD;QACpBE,SAAS,IAAO,CAAA;gBACdD,oBAAoBD;gBACpBG,SAAS;oBACP;wBACEC,WAAWN;wBACXO,UAAU;oBACZ;iBACD;YACH,CAAA;IACF;AACF;AAEA,OAAO,MAAMC,qCAAqCT,sBAAsBE,2BAA0B"}
@@ -0,0 +1,3 @@
1
+ import type { FeatureProviderProviderServer } from '../../types.js';
2
+ export declare const FixedToolbarFeature: FeatureProviderProviderServer<undefined, undefined>;
3
+ //# sourceMappingURL=feature.server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.server.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/toolbars/fixed/feature.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAA;AAInE,eAAO,MAAM,mBAAmB,EAAE,6BAA6B,CAAC,SAAS,EAAE,SAAS,CAWnF,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { FixedToolbarFeatureClientComponent } from './feature.client.js';
2
+ export const FixedToolbarFeature = (props)=>{
3
+ return {
4
+ feature: ()=>{
5
+ return {
6
+ ClientComponent: FixedToolbarFeatureClientComponent,
7
+ serverFeatureProps: props
8
+ };
9
+ },
10
+ key: 'toolbarFixed',
11
+ serverFeatureProps: props
12
+ };
13
+ };
14
+
15
+ //# sourceMappingURL=feature.server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/field/features/toolbars/fixed/feature.server.ts"],"sourcesContent":["import type { FeatureProviderProviderServer } from '../../types.js'\n\nimport { FixedToolbarFeatureClientComponent } from './feature.client.js'\n\nexport const FixedToolbarFeature: FeatureProviderProviderServer<undefined, undefined> = (props) => {\n return {\n feature: () => {\n return {\n ClientComponent: FixedToolbarFeatureClientComponent,\n serverFeatureProps: props,\n }\n },\n key: 'toolbarFixed',\n serverFeatureProps: props,\n }\n}\n"],"names":["FixedToolbarFeatureClientComponent","FixedToolbarFeature","props","feature","ClientComponent","serverFeatureProps","key"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAEA,SAASA,kCAAkC,QAAQ,sBAAqB;AAExE,OAAO,MAAMC,sBAA2E,CAACC;IACvF,OAAO;QACLC,SAAS;YACP,OAAO;gBACLC,iBAAiBJ;gBACjBK,oBAAoBH;YACtB;QACF;QACAI,KAAK;QACLD,oBAAoBH;IACtB;AACF,EAAC"}
@@ -0,0 +1,4 @@
1
+ import type { PluginComponentWithAnchor } from '../../../types.js';
2
+ import './index.scss';
3
+ export declare const InlineToolbarPlugin: PluginComponentWithAnchor<undefined>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/field/features/toolbars/inline/Toolbar/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAQlE,OAAO,cAAc,CAAA;AAqXrB,eAAO,MAAM,mBAAmB,EAAE,yBAAyB,CAAC,SAAS,CAIpE,CAAA"}