platejs 54.0.0-beta.6 → 54.0.0-beta.7

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 (238) hide show
  1. package/dist/{AIChatRequestContext-BYpGufVe.d.ts → AIChatRequestContext-DVGOeWhQ.d.ts} +2 -2
  2. package/dist/{BaseSuggestionPlugin-C52LR8RN.d.ts → BaseSuggestionPlugin-BRFMMyEo.d.ts} +8 -7
  3. package/dist/{PlateStatic-DMClx-tH.d.ts → PlateStatic-DIwBAVqF.d.ts} +3 -3
  4. package/dist/ai/index.d.ts +1 -1
  5. package/dist/ai/react/AIChatPlugin.js +12 -6
  6. package/dist/ai/react/CopilotPlugin.js +10 -5
  7. package/dist/ai/react/index.d.ts +94 -82
  8. package/dist/ai/react/useAIChat.js +41 -36
  9. package/dist/authored/index.d.ts +4 -4
  10. package/dist/code-block/codemirror/index.d.ts +1 -1
  11. package/dist/{combobox-DgYdu5mZ.d.ts → combobox-CfCJYKT0.d.ts} +2 -2
  12. package/dist/{comparison-types-DBQFu7Rt-DYc2TC2H.d.ts → comparison-types-CsmDG5r2-z1s4gX06.d.ts} +1 -1
  13. package/dist/compiler/index.d.ts +2 -2
  14. package/dist/{core-CQKT9eNc.d.ts → core-Cqc_KzpG.d.ts} +409 -472
  15. package/dist/core.js +1 -2
  16. package/dist/diff/index.d.ts +2 -2
  17. package/dist/docs/annotations.md +37 -120
  18. package/dist/docs/api/core/plate-components.md +5 -4
  19. package/dist/docs/api/core/plate-plugin.md +1 -1
  20. package/dist/docs/api/core/plate-store.md +5 -5
  21. package/dist/docs/api/core.md +31 -64
  22. package/dist/docs/api/document-change.md +21 -0
  23. package/dist/docs/api/editor-api.md +19 -16
  24. package/dist/docs/api/editor-transforms.md +27 -8
  25. package/dist/docs/api/react-hooks.md +103 -130
  26. package/dist/docs/authored-changes.md +12 -13
  27. package/dist/docs/board.md +45 -35
  28. package/dist/docs/clipboard.md +11 -7
  29. package/dist/docs/decorations.md +3 -4
  30. package/dist/docs/dnd.md +1 -1
  31. package/dist/docs/docx.md +6 -4
  32. package/dist/docs/editor-methods.md +7 -16
  33. package/dist/docs/editor.md +22 -66
  34. package/dist/docs/field.md +120 -54
  35. package/dist/docs/find.md +36 -28
  36. package/dist/docs/footnote.md +14 -8
  37. package/dist/docs/history.md +166 -12
  38. package/dist/docs/ink.md +231 -0
  39. package/dist/docs/installation/plate-ui.md +16 -0
  40. package/dist/docs/llms.txt +5 -5
  41. package/dist/docs/markdown.md +4 -3
  42. package/dist/docs/roots.md +92 -28
  43. package/dist/docs/schema.md +5 -3
  44. package/dist/docs/suggestion.md +27 -14
  45. package/dist/docs/table.md +2 -2
  46. package/dist/docs/toc.md +2 -2
  47. package/dist/docx/export/index.d.ts +3 -3
  48. package/dist/docx/export/lib/comments.js +124 -44
  49. package/dist/docx/export/lib/exportDocx.js +31 -22
  50. package/dist/docx/export/lib/hostIndex.js +92 -0
  51. package/dist/docx/export/lib/reviewProjection.js +154 -55
  52. package/dist/docx/import/index.d.ts +4 -4
  53. package/dist/docx/paste/index.d.ts +4 -4
  54. package/dist/dom/index.d.ts +2 -2
  55. package/dist/dom/plite-dom.internal.js +2 -2
  56. package/dist/excalidraw/index.d.ts +3 -3
  57. package/dist/excalidraw/react/index.d.ts +3 -3
  58. package/dist/facade.js +3 -3
  59. package/dist/features/basic-nodes/lib/BaseHeadingPlugins.js +4 -2
  60. package/dist/features/basic-styles/lib/BaseFormattingPlugin.js +5 -2
  61. package/dist/features/board/index.d.ts +2 -2
  62. package/dist/features/board/index.js +2 -1
  63. package/dist/features/board/lib/BaseBoardPlugin.js +80 -22
  64. package/dist/features/board/lib/BaseBoardTextPlugin.js +12 -0
  65. package/dist/features/board/lib/boardArrow.internal.js +2 -2
  66. package/dist/features/board/lib/boardHeights.internal.js +57 -0
  67. package/dist/features/board/lib/boardHtml.internal.js +18 -1
  68. package/dist/features/board/lib/boardMember.internal.js +2 -2
  69. package/dist/features/board/lib/boardShape.internal.js +6 -1
  70. package/dist/features/board/lib/boardStyle.internal.js +5 -1
  71. package/dist/features/board/lib/boardTypes.internal.js +4 -1
  72. package/dist/features/callout/index.d.ts +3 -3
  73. package/dist/features/combobox/index.d.ts +2 -2
  74. package/dist/features/comments/BaseCommentsPlugin.js +47 -227
  75. package/dist/features/comments/comment-thread-index.internal.js +822 -0
  76. package/dist/features/comments/index.d.ts +2 -2
  77. package/dist/features/date/index.d.ts +3 -3
  78. package/dist/features/details/index.d.ts +3 -3
  79. package/dist/features/field/index.d.ts +2 -2
  80. package/dist/features/field/lib/BaseFieldPlugin.js +148 -51
  81. package/dist/features/field/lib/applyFieldValues.js +45 -26
  82. package/dist/features/field/lib/fieldRules.internal.js +518 -100
  83. package/dist/features/find/index.d.ts +15 -16
  84. package/dist/features/find/lib/BaseFindPlugin.js +871 -123
  85. package/dist/features/footnote/index.d.ts +1 -1
  86. package/dist/features/footnote/lib/BaseFootnotePlugin.js +35 -15
  87. package/dist/features/ink/index.d.ts +2 -2
  88. package/dist/features/ink/lib/BaseInkPlugin.js +411 -50
  89. package/dist/features/ink/lib/inkAnchor.internal.js +436 -0
  90. package/dist/features/ink/lib/inkGone.internal.js +8 -6
  91. package/dist/features/ink/lib/inkMatch.internal.js +262 -51
  92. package/dist/features/ink/lib/inkPlaces.internal.js +67 -26
  93. package/dist/features/ink/lib/inkReflow.internal.js +406 -0
  94. package/dist/features/layout/index.d.ts +1 -1
  95. package/dist/features/lint/index.d.ts +16 -16
  96. package/dist/features/list/lib/BaseListPlugin.js +2 -1
  97. package/dist/features/media/index.d.ts +1 -1
  98. package/dist/features/media/lib/media-embed/BaseMediaEmbedPlugin.js +2 -1
  99. package/dist/features/mention/index.d.ts +5 -5
  100. package/dist/features/suggestion/index.d.ts +1 -1
  101. package/dist/features/table/index.d.ts +1 -1
  102. package/dist/features/table/lib/BaseTablePlugin.js +284 -142
  103. package/dist/features/toc/index.d.ts +1 -1
  104. package/dist/features/upload/index.d.ts +1 -1
  105. package/dist/features/upload/lib/BaseUploadPlugin.js +5 -4
  106. package/dist/history/index.d.ts +3 -3
  107. package/dist/history/index.js +2 -1
  108. package/dist/html/index.d.ts +3 -3
  109. package/dist/html/server/index.d.ts +1 -1
  110. package/dist/{htmlTypes-8IFX0ezP.d.ts → htmlTypes-i_FBCMf2.d.ts} +2 -2
  111. package/dist/hyperscript/index.d.ts +1 -1
  112. package/dist/{index-Cp0QfjUV.d.ts → index-1PlYsibA.d.ts} +11 -12
  113. package/dist/{index-DbPoiwq_.d.ts → index-1rcWTB-o.d.ts} +3 -3
  114. package/dist/{index-C-5w6252.d.ts → index-B4ZhSQdk.d.ts} +41 -41
  115. package/dist/{index-DE1Mcccg.d.ts → index-BI0NS7kx.d.ts} +3 -3
  116. package/dist/{index-BIP1GoWI.d.ts → index-BWCC4DCP.d.ts} +2 -12
  117. package/dist/{index-D2w_9_tb.d.ts → index-Bv13FX9o.d.ts} +32 -32
  118. package/dist/{index-BTFrh2Cz.d.ts → index-By7BkzIN.d.ts} +2 -2
  119. package/dist/{index-B4oeyc99.d.ts → index-CJGkjkH6.d.ts} +1 -1
  120. package/dist/{index-BBsiQIzw.d.ts → index-CLNem74G.d.ts} +25 -8
  121. package/dist/{index-CrUMAwqm.d.ts → index-CS4G_W_R.d.ts} +1 -5
  122. package/dist/{index-PDROnF1G-Ds_dbJsr.d.ts → index-CTTjpWgb-Fdrn8NP4.d.ts} +1 -1
  123. package/dist/{index-BapA_uvI.d.ts → index-CVAHIQ3p.d.ts} +5 -5
  124. package/dist/{index-DUk2VZ_1.d.ts → index-Cc2ajXAd.d.ts} +7 -7
  125. package/dist/{index-BfHCmKG3.d.ts → index-CmISVYmz.d.ts} +127 -79
  126. package/dist/{index-BAz_KJSV.d.ts → index-CrJ9Km8W.d.ts} +2 -2
  127. package/dist/{index-Dh7pWHZo.d.ts → index-CxG1Atvg.d.ts} +298 -38
  128. package/dist/{index-BcuSI8EM.d.ts → index-DNXr_SN-.d.ts} +9 -7
  129. package/dist/{index-BbsVGwn8.d.ts → index-DfkFmApH.d.ts} +303 -387
  130. package/dist/{index-AOVPovEr.d.ts → index-KteL56rA.d.ts} +211 -224
  131. package/dist/{index-DM6z4D7q.d.ts → index-OMa7dlcS.d.ts} +35 -33
  132. package/dist/{index-DFMkcY5V.d.ts → index-uVbqCpDa.d.ts} +149 -130
  133. package/dist/index.d.ts +4 -4
  134. package/dist/index.js +1 -2
  135. package/dist/internal/plugin/compilePlateModel.js +15 -1
  136. package/dist/internal/plugin/plateChangeHandlers.js +1 -1
  137. package/dist/internal/plugin/resolvePlugin.js +10 -1
  138. package/dist/lib/editor/withPlite.js +33 -3
  139. package/dist/lib/plugins/dom/DOMPlugin.js +6 -2
  140. package/dist/lib/plugins/html/HtmlPlugin.js +5 -3
  141. package/dist/lib/plugins/input-rules/createInputRules.js +3 -3
  142. package/dist/lib/utils/getInjectMatch.js +1 -1
  143. package/dist/markdown/index.d.ts +1 -1
  144. package/dist/markdown/lib/deserializer/convertNodesDeserialize.js +2 -2
  145. package/dist/markdown/lib/internal/markdownConversion.js +7 -17
  146. package/dist/math/index.d.ts +3 -3
  147. package/dist/math/react/index.d.ts +4 -4
  148. package/dist/migrations/documentMigrations.js +23 -5
  149. package/dist/migrations/index.d.ts +3 -3
  150. package/dist/migrations/migratePlateV54Ast.internal.js +4 -1
  151. package/dist/migrations/migratePlateV54Profile.internal.js +0 -4
  152. package/dist/pagination/index.d.ts +1 -1
  153. package/dist/pagination/react/PagedEditorContent.js +6 -6
  154. package/dist/pagination/react/index.d.ts +16 -13
  155. package/dist/react/components/NodeSelection.js +129 -50
  156. package/dist/react/components/Plate.js +142 -119
  157. package/dist/react/components/PlateContainer.js +51 -47
  158. package/dist/react/components/PlateContent.js +3 -3
  159. package/dist/react/core.js +3 -4
  160. package/dist/react/editor/getPlateCorePlugins.internal.js +1 -1
  161. package/dist/react/editor/withPlate.js +10 -4
  162. package/dist/react/features/board/BoardPlugin.js +7 -1
  163. package/dist/react/features/board/BoardShape.js +214 -159
  164. package/dist/react/features/board/BoardSurface.js +2 -2
  165. package/dist/react/features/board/boardExport.internal.js +225 -80
  166. package/dist/react/features/board/boardGesture.internal.js +193 -33
  167. package/dist/react/features/board/boardIndex.internal.js +271 -26
  168. package/dist/react/features/board/boardKeys.internal.js +7 -3
  169. package/dist/react/features/board/boardPick.internal.js +3 -2
  170. package/dist/react/features/board/boardPreview.internal.js +56 -8
  171. package/dist/react/features/board/boardResize.internal.js +110 -28
  172. package/dist/react/features/board/boardSnap.internal.js +14 -9
  173. package/dist/react/features/board/boardView.internal.js +440 -24
  174. package/dist/react/features/board/boardVoice.internal.js +1 -0
  175. package/dist/react/features/board/index.d.ts +322 -42
  176. package/dist/react/features/board/index.js +2 -2
  177. package/dist/react/features/callout/index.d.ts +3 -3
  178. package/dist/react/features/combobox/index.d.ts +5 -5
  179. package/dist/react/features/comments/index.d.ts +66 -65
  180. package/dist/react/features/date/index.d.ts +4 -4
  181. package/dist/react/features/details/index.d.ts +5 -5
  182. package/dist/react/features/field/FieldPlugin.js +3 -3
  183. package/dist/react/features/field/index.d.ts +72 -92
  184. package/dist/react/features/footnote/index.d.ts +63 -60
  185. package/dist/react/features/format-painter/index.d.ts +4 -4
  186. package/dist/react/features/ink/InkContent.js +79 -51
  187. package/dist/react/features/ink/InkCopyView.js +13 -2
  188. package/dist/react/features/ink/InkPlugin.js +44 -10
  189. package/dist/react/features/ink/index.d.ts +217 -307
  190. package/dist/react/features/ink/inkCapture.internal.js +3 -1
  191. package/dist/react/features/ink/inkImages.internal.js +263 -0
  192. package/dist/react/features/ink/inkMeasure.internal.js +24 -11
  193. package/dist/react/features/ink/inkPaint.internal.js +31 -23
  194. package/dist/react/features/ink/inkPick.internal.js +45 -20
  195. package/dist/react/features/ink/inkPlacement.internal.js +182 -37
  196. package/dist/react/features/layout/index.d.ts +6 -6
  197. package/dist/react/features/list/ListPlugin.js +10 -6
  198. package/dist/react/features/media/index.d.ts +26 -26
  199. package/dist/react/features/mention/index.d.ts +6 -6
  200. package/dist/react/features/suggestion/index.d.ts +6 -6
  201. package/dist/react/features/suggestion/suggestion-view.internal.js +38 -36
  202. package/dist/react/features/suggestion/useSuggestion.js +17 -14
  203. package/dist/react/features/table/TablePlugin.js +12 -5
  204. package/dist/react/features/table/index.d.ts +20 -22
  205. package/dist/react/features/table/useTableResize.js +4 -4
  206. package/dist/react/features/toc/index.d.ts +2 -2
  207. package/dist/react/features/upload/index.d.ts +44 -44
  208. package/dist/react/index.d.ts +5 -6
  209. package/dist/react/index.js +3 -4
  210. package/dist/react/internal/plate-context.js +13 -42
  211. package/dist/react/internal/plite-components.js +2 -2
  212. package/dist/react/internal/usePlateModelRevision.js +2 -3
  213. package/dist/react/plite-react.js +2 -2
  214. package/dist/react/stores/element/useElementStore.js +78 -52
  215. package/dist/react/stores/plate/useEditor.js +70 -32
  216. package/dist/react/stores/plate/useEditorSelector.js +193 -53
  217. package/dist/react/utils/BlockPlaceholderPlugin.js +10 -4
  218. package/dist/react/virtualized.d.ts +4 -4
  219. package/dist/react/virtualized.js +2 -2
  220. package/dist/root.js +1 -2
  221. package/dist/{source-D5CyclpX.d.ts → source-Dcgqj5Mf.d.ts} +3 -3
  222. package/dist/static/components/PlateStatic.js +13 -2
  223. package/dist/static/index.d.ts +6 -6
  224. package/dist/static/internal/staticDocumentView.js +67 -1
  225. package/dist/static/pluginRenderTextStatic.internal.js +2 -1
  226. package/dist/tabbable/index.d.ts +1 -1
  227. package/dist/tabbable/react/index.d.ts +3 -3
  228. package/dist/testing/index.d.ts +2 -2
  229. package/dist/{index-DHt8nZQ6-NUTahb8N.d.ts → tx-only-1FM45FSj-D40jacZv.d.ts} +6913 -6640
  230. package/dist/yjs/index.d.ts +1 -1
  231. package/dist/yjs/react/index.d.ts +5 -5
  232. package/package.json +2 -6
  233. package/dist/docs/migration/plite-to-plate.md +0 -352
  234. package/dist/features/comments/plite-comments.internal.js +0 -2
  235. package/dist/index-BvQzYVAW-Jvz2iG8B.d.ts +0 -65
  236. package/dist/lib/plugins/element-id/ElementIdPlugin.js +0 -43
  237. package/dist/lib/plugins/element-id/elementIdAdmission.internal.js +0 -34
  238. package/dist/react/libs/jotai.js +0 -3
@@ -1,5 +1,5 @@
1
- import { vt as EditorCoreStateView } from "./index-DHt8nZQ6-NUTahb8N.js";
2
- import { u as Editor } from "./core-CQKT9eNc.js";
1
+ import { vt as EditorCoreStateView } from "./tx-only-1FM45FSj-D40jacZv.js";
2
+ import { u as Editor } from "./core-Cqc_KzpG.js";
3
3
  type ComboboxEditor = Pick<Editor, 'plugin'> & {
4
4
  read: Pick<EditorCoreStateView, 'nodes'>;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { J as DocumentChange, Tt as EditorDocumentValue, su as Value, zn as EditorSchemaIdentity } from "./index-DHt8nZQ6-NUTahb8N.js";
1
+ import { J as DocumentChange, Tt as EditorDocumentValue, Vn as EditorSchemaIdentity, xu as Value } from "./tx-only-1FM45FSj-D40jacZv.js";
2
2
  /** A comparison-local interval in the canonical document token coordinate. */
3
3
  type ComparisonSpan = Readonly<{
4
4
  from: number;
@@ -1,5 +1,5 @@
1
- import { h as EditorApplicationSchema } from "../htmlTypes-8IFX0ezP.js";
2
- import { Xo as GeneratedEditorTypeProvider, st as BasePluginInput, tt as EditorCompilation, ut as EditorPropertyTypes } from "../core-CQKT9eNc.js";
1
+ import { h as EditorApplicationSchema } from "../htmlTypes-i_FBCMf2.js";
2
+ import { Uo as GeneratedEditorTypeProvider, ct as BasePluginInput, dt as EditorPropertyTypes, nt as EditorCompilation } from "../core-Cqc_KzpG.js";
3
3
  /**
4
4
  * Compile nominal plugins and optional application schema into immutable JSON data.
5
5
  * Evaluates configuration, API factories and validators without activating plugins