platejs 54.0.0-beta.13 → 54.0.0-beta.14

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 (221) hide show
  1. package/dist/{EditorStatic-CKG5xM3y.d.ts → EditorStatic-eXOA489B.d.ts} +4 -4
  2. package/dist/ai/index.d.ts +2 -2
  3. package/dist/ai/lib/aiDraftSession.js +9 -7
  4. package/dist/ai/lib/aiPolicy.internal.js +43 -6
  5. package/dist/ai/lib/editorAgent.js +30 -21
  6. package/dist/ai/lib/editorAgentSync.internal.js +2 -2
  7. package/dist/ai/lib/lockedContext.js +5 -4
  8. package/dist/ai/react/copilotInline.internal.js +6 -5
  9. package/dist/ai/react/index.d.ts +7 -7
  10. package/dist/ai/react/useEditorAgent.js +14 -3
  11. package/dist/authored/index.d.ts +4 -4
  12. package/dist/{authored-CJL7S8qI-BxC9ip4d.d.ts → authored-qetvpvU--DSWESzxK.d.ts} +3 -3
  13. package/dist/clipboard-format-key-BBu85J9m-BLhtd159.d.ts +1 -0
  14. package/dist/code-block/codemirror/index.d.ts +2 -2
  15. package/dist/{comment-anchor.internal-DTBP1huU.d.ts → comment-anchor.internal-CoNK9gTD.d.ts} +2 -2
  16. package/dist/compiler/index.d.ts +3 -3
  17. package/dist/{core-CTB0OBoh.d.ts → core-By92GWYW.d.ts} +45 -20
  18. package/dist/diff/index.d.ts +2 -2
  19. package/dist/docs/agents/skills.md +6 -2
  20. package/dist/docs/agents.md +1 -1
  21. package/dist/docs/ai-agents.md +8 -4
  22. package/dist/docs/ai.md +5 -0
  23. package/dist/docs/api/plate.md +15 -7
  24. package/dist/docs/api/react-hooks.md +32 -2
  25. package/dist/docs/authored-changes.md +4 -0
  26. package/dist/docs/block-menu.md +4 -0
  27. package/dist/docs/board.md +4 -0
  28. package/dist/docs/callout.md +63 -9
  29. package/dist/docs/collaboration.md +6 -1
  30. package/dist/docs/combobox.md +9 -2
  31. package/dist/docs/comment.md +4 -0
  32. package/dist/docs/components/toolbar-buttons.md +1 -1
  33. package/dist/docs/copilot.md +4 -0
  34. package/dist/docs/deck.md +173 -0
  35. package/dist/docs/details.md +4 -0
  36. package/dist/docs/diff.md +4 -0
  37. package/dist/docs/discussion.md +4 -0
  38. package/dist/docs/dnd.md +4 -0
  39. package/dist/docs/docx.md +6 -0
  40. package/dist/docs/emoji.md +2 -2
  41. package/dist/docs/equation.md +4 -0
  42. package/dist/docs/examples/collaboration-example.md +4 -0
  43. package/dist/docs/examples/export.md +40 -28
  44. package/dist/docs/examples/merge.md +4 -0
  45. package/dist/docs/examples/version-history.md +4 -0
  46. package/dist/docs/field.md +4 -0
  47. package/dist/docs/footnote.md +4 -0
  48. package/dist/docs/format-painter.md +1 -1
  49. package/dist/docs/html.md +4 -0
  50. package/dist/docs/index.md +4 -0
  51. package/dist/docs/ink.md +6 -0
  52. package/dist/docs/installation/manual.md +2 -4
  53. package/dist/docs/installation/next.md +1 -3
  54. package/dist/docs/installation/plate-ui.md +6 -2
  55. package/dist/docs/installation/rsc.md +1 -1
  56. package/dist/docs/installation.md +4 -0
  57. package/dist/docs/link.md +4 -0
  58. package/dist/docs/llms.txt +3 -1
  59. package/dist/docs/lock.md +34 -2
  60. package/dist/docs/markdown.md +4 -0
  61. package/dist/docs/media.md +4 -0
  62. package/dist/docs/mention.md +5 -0
  63. package/dist/docs/pagination.md +4 -0
  64. package/dist/docs/prompt-editor.md +17 -1
  65. package/dist/docs/reference.md +192 -0
  66. package/dist/docs/roots.md +4 -0
  67. package/dist/docs/serializing.md +23 -0
  68. package/dist/docs/slash-command.md +58 -4
  69. package/dist/docs/static.md +29 -20
  70. package/dist/docs/suggestion.md +4 -0
  71. package/dist/docs/sync.md +4 -0
  72. package/dist/docs/table.md +31 -0
  73. package/dist/docs/toolbar.md +4 -0
  74. package/dist/docs/unit-testing.md +4 -0
  75. package/dist/docs/upload.md +4 -0
  76. package/dist/docx/export/index.d.ts +5 -5
  77. package/dist/docx/import/index.d.ts +5 -5
  78. package/dist/docx/paste/index.d.ts +4 -4
  79. package/dist/dom/index.d.ts +1 -1
  80. package/dist/features/basic-nodes/lib/BaseMarkPlugins.js +1 -1
  81. package/dist/features/basic-styles/lib/BaseFormattingPlugin.js +61 -28
  82. package/dist/features/basic-styles/lib/BaseStylePlugins.js +28 -7
  83. package/dist/features/board/index.d.ts +1 -1
  84. package/dist/features/callout/index.d.ts +2 -160
  85. package/dist/features/callout/lib/BaseCalloutPlugin.js +109 -9
  86. package/dist/features/column/index.d.ts +1 -1
  87. package/dist/features/comments/index.d.ts +2 -2
  88. package/dist/features/date/index.d.ts +3 -3
  89. package/dist/features/details/index.d.ts +3 -3
  90. package/dist/features/field/index.d.ts +1 -1
  91. package/dist/features/field/lib/BaseFieldPlugin.js +111 -53
  92. package/dist/features/field/lib/fieldCache.internal.js +9 -21
  93. package/dist/features/find/index.d.ts +3 -3
  94. package/dist/features/footnote/index.d.ts +3 -3
  95. package/dist/features/ink/index.d.ts +1 -1
  96. package/dist/features/link/lib/BaseLinkPlugin.js +5 -2
  97. package/dist/features/lint/index.d.ts +3 -3
  98. package/dist/features/list/lib/listKeyboard.internal.js +7 -2
  99. package/dist/features/lock/index.d.ts +1 -1
  100. package/dist/features/media/index.d.ts +1 -1
  101. package/dist/features/mention/index.d.ts +1 -1
  102. package/dist/features/reference/index.d.ts +236 -0
  103. package/dist/features/reference/index.js +2 -0
  104. package/dist/features/reference/lib/BaseReferencePlugin.js +589 -0
  105. package/dist/features/table/index.d.ts +2 -2
  106. package/dist/features/toc/index.d.ts +1 -1
  107. package/dist/features/upload/index.d.ts +1 -1
  108. package/dist/history/index.d.ts +1 -1
  109. package/dist/html/index.d.ts +4 -4
  110. package/dist/html/server/index.d.ts +2 -2
  111. package/dist/html/server/serverCssParser.internal.js +14 -25
  112. package/dist/html/server/serverCssStyle.internal.js +4 -7
  113. package/dist/{htmlConversion-Y-M6PLRi.d.ts → htmlConversion-CRnxMGw-.d.ts} +2 -2
  114. package/dist/{htmlTypes-CNhoCFjK.d.ts → htmlTypes-3laowz-3.d.ts} +3 -3
  115. package/dist/hyperscript/index.d.ts +1 -1
  116. package/dist/{index-B-8L9f6a2.d.ts → index-B3VOCxNR.d.ts} +5 -5
  117. package/dist/{index-B8JeECEk.d.ts → index-B9UlNijk.d.ts} +2 -2
  118. package/dist/{index-Bqva6PJc.d.ts → index-BJPT0Tv_.d.ts} +3 -3
  119. package/dist/{index-CWutqVQ_-BO-UgVeK.d.ts → index-BKPWmnLg-Bp_vItjr.d.ts} +1 -1
  120. package/dist/{index-BFWK852j.d.ts → index-BcD2RAB9.d.ts} +3 -3
  121. package/dist/{index-DhsryaAC.d.ts → index-C5Xw3JDc.d.ts} +1 -1
  122. package/dist/{index-BEXBAmJf.d.ts → index-CAshLTjV.d.ts} +3 -3
  123. package/dist/{index-qqrnWAk_.d.ts → index-CHlITvuq.d.ts} +7 -7
  124. package/dist/index-CKSwab_O.d.ts +1 -0
  125. package/dist/{index-DJhwDkfd.d.ts → index-CRQoHk18.d.ts} +3 -3
  126. package/dist/index-CyY3O6c7.d.ts +3 -0
  127. package/dist/index-D8EGVCeT.d.ts +305 -0
  128. package/dist/{index-B0R9sXv2-T1dxG9oM.d.ts → index-DAKucat0--VOaL_NN.d.ts} +4 -4
  129. package/dist/{index-UYpvOBXG.d.ts → index-DCTRNYwy.d.ts} +2 -2
  130. package/dist/{index-CXd5hwaH.d.ts → index-DQpHoxDX.d.ts} +1 -1
  131. package/dist/{index-BfJKfAwk.d.ts → index-DTd1D-BF.d.ts} +3 -3
  132. package/dist/index-DUhUT9bV.d.ts +1 -0
  133. package/dist/{index-B4aToRMv.d.ts → index-DXm_v0Qq.d.ts} +3 -3
  134. package/dist/{index-D3bhjdRz.d.ts → index-Djwcl0Ff.d.ts} +3 -3
  135. package/dist/{index-DYuqsDrP.d.ts → index-Dyw6BJx8.d.ts} +3 -3
  136. package/dist/{index-CLPMcGC5.d.ts → index-KG95XVaC.d.ts} +4 -4
  137. package/dist/{index-mcBtG6pK-CitQV9Bq.d.ts → index-LEcSTRgn-BR_p4GVY.d.ts} +2 -2
  138. package/dist/{index-D54VPeky.d.ts → index-k-wvVxKl.d.ts} +2 -2
  139. package/dist/{index-CHud6Aa-.d.ts → index-s34W6hUI.d.ts} +3 -3
  140. package/dist/{index-DXCdafUk.d.ts → index-wEkvA-wI.d.ts} +43 -20
  141. package/dist/index.d.ts +3 -3
  142. package/dist/internal/plugin/pluginInjectNodeProps.js +33 -5
  143. package/dist/internal/utils/urlPolicy.js +11 -1
  144. package/dist/lib/editor/withPlite.js +8 -6
  145. package/dist/lib/plugins/html/cssLexer.internal.js +126 -29
  146. package/dist/lib/plugins/html/cssSafety.internal.js +100 -0
  147. package/dist/lib/plugins/html/htmlDecode.internal.js +2 -2
  148. package/dist/lib/plugins/html/htmlMatcher.internal.js +1 -1
  149. package/dist/lib/plugins/html/htmlRules.internal.js +2 -13
  150. package/dist/lib/plugins/html/htmlSafety.js +17 -24
  151. package/dist/lib/plugins/html/htmlSerialize.internal.js +16 -2
  152. package/dist/lib/plugins/html/htmlStyleInline.internal.js +22 -23
  153. package/dist/lib/plugins/input-rules/inputRuleVeto.internal.js +27 -1
  154. package/dist/markdown/index.d.ts +1 -1
  155. package/dist/markdown/lib/internal/markdownAttributes.js +16 -7
  156. package/dist/markdown/lib/internal/markdownMappings.js +123 -16
  157. package/dist/markdown/lib/serializer/convertPhrasingSerialize.js +16 -1
  158. package/dist/math/index.d.ts +3 -3
  159. package/dist/math/react/index.d.ts +4 -4
  160. package/dist/migrations/index.d.ts +4 -4
  161. package/dist/migrations/migratePlateV54Urls.internal.js +63 -1
  162. package/dist/pagination/index.d.ts +1 -1
  163. package/dist/pagination/react/index.d.ts +3 -3
  164. package/dist/{protocol-CSuP7AWG-DAorqpaF.d.ts → protocol-Cp9xayOe-0OSfTMnt.d.ts} +1 -1
  165. package/dist/react/authored/index.d.ts +4 -4
  166. package/dist/react/components/PlateView.js +7 -1
  167. package/dist/react/features/board/index.d.ts +5 -5
  168. package/dist/react/features/callout/index.d.ts +93 -4
  169. package/dist/react/features/column/index.d.ts +5 -5
  170. package/dist/react/features/combobox/combobox.internal.js +35 -22
  171. package/dist/react/features/combobox/comboboxOwner.internal.js +29 -2
  172. package/dist/react/features/combobox/index.d.ts +8 -6
  173. package/dist/react/features/comments/index.d.ts +6 -6
  174. package/dist/react/features/date/index.d.ts +4 -4
  175. package/dist/react/features/details/index.d.ts +4 -4
  176. package/dist/react/features/field/FieldPlugin.js +2 -2
  177. package/dist/react/features/field/index.d.ts +5 -5
  178. package/dist/react/features/footnote/index.d.ts +4 -4
  179. package/dist/react/features/format-painter/FormatPainterPlugin.js +27 -34
  180. package/dist/react/features/format-painter/index.d.ts +4 -4
  181. package/dist/react/features/ink/index.d.ts +5 -5
  182. package/dist/react/features/lock/index.d.ts +5 -5
  183. package/dist/react/features/media/index.d.ts +5 -5
  184. package/dist/react/features/mention/index.d.ts +4 -4
  185. package/dist/react/features/table/index.d.ts +6 -6
  186. package/dist/react/features/toc/index.d.ts +2 -2
  187. package/dist/react/features/upload/index.d.ts +5 -5
  188. package/dist/react/index.d.ts +6 -6
  189. package/dist/react/virtualized.d.ts +3 -3
  190. package/dist/refusal-CwFxNUf7-BLhtd159.d.ts +1 -0
  191. package/dist/{registerEditorTools-Cl-o_Wnq.d.ts → registerEditorTools-D_3hPpTx.d.ts} +16 -8
  192. package/dist/shared-room-26tNRhZE-BLhtd159.d.ts +1 -0
  193. package/dist/skills/plate/SKILL.md +4 -3
  194. package/dist/skills/plate/references/ai-and-agents.md +2 -2
  195. package/dist/skills/plate/references/pricing.md +3 -3
  196. package/dist/skills/plate/references/setup.md +6 -0
  197. package/dist/skills/plate/references/ui-and-sync.md +4 -3
  198. package/dist/{source-DUP5aKcT.d.ts → source-BW7JD_oS.d.ts} +3 -3
  199. package/dist/static/index.d.ts +23 -9
  200. package/dist/static/internal/staticPendingMedia.internal.js +2 -1
  201. package/dist/static/internal/staticPresentation.js +1 -0
  202. package/dist/static/renderStaticHtml.js +85 -39
  203. package/dist/{storage-EzfLDqRy-Cu4DQ-Rf.d.ts → storage-C7xSH1I5-BJLoUfo9.d.ts} +2 -2
  204. package/dist/sync/cloudflare/index.d.ts +3 -3
  205. package/dist/sync/index.d.ts +4 -4
  206. package/dist/sync/postgres/index.d.ts +1 -1
  207. package/dist/sync/react/index.d.ts +6 -6
  208. package/dist/sync/server/index.d.ts +5 -5
  209. package/dist/tabbable/react/index.d.ts +4 -4
  210. package/dist/testing/index.d.ts +3 -3
  211. package/dist/{transport-DAforzBt-BFwAhC-N.d.ts → transport-B-ON68Y4-DCfT5-eN.d.ts} +1 -1
  212. package/dist/utils/plate-keys.js +1 -0
  213. package/dist/{widths-BjIZxtaJ.d.ts → widths-9NNziDRW.d.ts} +5 -5
  214. package/package.json +9 -2
  215. package/dist/clipboard-format-key-D9rnh20X-CR00YA0H.d.ts +0 -1
  216. package/dist/index-CKAkaSJK.d.ts +0 -3
  217. package/dist/index-CxyK4HrT.d.ts +0 -1
  218. package/dist/index-zcb_RtZC.d.ts +0 -1
  219. package/dist/refusal-DCzeB9nD-CR00YA0H.d.ts +0 -1
  220. package/dist/shared-room-Bg8qMvm1-CR00YA0H.d.ts +0 -1
  221. /package/dist/{tx-only-CWT-IURY-BqIFhy44.d.ts → tx-only-sIj7BcYh-BMFkGMuq.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
- import { Bo as PropertyEnumDescriptor, Is as SchemaElementPropertyDefinition, Mt as EditorJsonValue, N as Descendant, Ns as SchemaElementProperties, Qo as PropertyValueOptions, Qs as SchemaPropertyCopyPolicy, Ro as PropertyBooleanDescriptor, T as ContentSlice$1, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Xo as PropertyValueKind, Xr as EditorUniqueHolder, Yo as PropertyValueDescriptor, Zo as PropertyValueOf, ac as SchemaPropertyLandingPolicy, cc as SchemaPropertySplitPolicy, gi as Element$1, lc as SchemaPropertyTypeChangePolicy, ma as NodeKey, qo as PropertyStringDescriptor, sc as SchemaPropertyRole, wi as ElementOf } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./htmlTypes-CNhoCFjK.js";
3
- import { ct as BlockInsertOptions, p as BasePlugin } from "./core-CTB0OBoh.js";
1
+ import { Bo as PropertyEnumDescriptor, Is as SchemaElementPropertyDefinition, Mt as EditorJsonValue, N as Descendant, Ns as SchemaElementProperties, Qo as PropertyValueOptions, Qs as SchemaPropertyCopyPolicy, Ro as PropertyBooleanDescriptor, T as ContentSlice$1, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Xo as PropertyValueKind, Xr as EditorUniqueHolder, Yo as PropertyValueDescriptor, Zo as PropertyValueOf, ac as SchemaPropertyLandingPolicy, cc as SchemaPropertySplitPolicy, gi as Element$1, lc as SchemaPropertyTypeChangePolicy, ma as NodeKey, qo as PropertyStringDescriptor, sc as SchemaPropertyRole, wi as ElementOf } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./htmlTypes-3laowz-3.js";
3
+ import { ct as BlockInsertOptions, p as BasePlugin } from "./core-By92GWYW.js";
4
4
  import { nanoid } from "nanoid";
5
5
  /** A point on a board, in board coordinates. */
6
6
  type BoardPlace = Readonly<{
@@ -1,7 +1,7 @@
1
- import { $o as Range, Bi as Location, Wl as Value, Yi as NamedRootKey, ma as NodeKey } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./htmlTypes-CNhoCFjK.js";
3
- import { o as Editor, p as BasePlugin } from "./core-CTB0OBoh.js";
4
- import { i as CommentAnchors, t as CommentAnchor } from "./comment-anchor.internal-DTBP1huU.js";
1
+ import { $o as Range, Bi as Location, Wl as Value, Yi as NamedRootKey, ma as NodeKey } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./htmlTypes-3laowz-3.js";
3
+ import { o as Editor, p as BasePlugin } from "./core-By92GWYW.js";
4
+ import { i as CommentAnchors, t as CommentAnchor } from "./comment-anchor.internal-CoNK9gTD.js";
5
5
  /**
6
6
  * Mapped attachment change emitted by `subscribeAttachments` when comment
7
7
  * ranges move, appear, disappear, or change due to an editor commit (`'editor'`)
@@ -1,5 +1,5 @@
1
- import { T as ContentSlice$1, V as Editor, Wl as Value, _t as EditorDocumentValue, jn as EditorSchemaIdentity, pr as EditorStateSchemaApi, z as DocumentChange } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import "./shared-room-Bg8qMvm1-CR00YA0H.js";
1
+ import { T as ContentSlice$1, V as Editor, Wl as Value, _t as EditorDocumentValue, jn as EditorSchemaIdentity, pr as EditorStateSchemaApi, z as DocumentChange } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import "./shared-room-26tNRhZE-BLhtd159.js";
3
3
  /** A comparison-local interval in the canonical document token coordinate. */
4
4
  type ComparisonSpan = Readonly<{
5
5
  from: number;
@@ -1,5 +1,5 @@
1
- import { ma as NodeKey, yr as EditorStateView } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import { Ra as DefinitionOf, Sa as HeadingLevel, o as Editor, p as BasePlugin } from "./core-CTB0OBoh.js";
1
+ import { ma as NodeKey, yr as EditorStateView } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import { Ra as DefinitionOf, Sa as HeadingLevel, o as Editor, p as BasePlugin } from "./core-By92GWYW.js";
3
3
  /** One heading entry in a table of contents. */
4
4
  type Heading = {
5
5
  key: NodeKey;
@@ -1,6 +1,6 @@
1
- import { Eo as PluginReference, N as Descendant, T as ContentSlice$1, Un as EditorSchemaRepairCode, Wl as Value, Yn as EditorSchemaValidationDiagnostic, _t as EditorDocumentValue, fs as RootKey, p as AuthoredProjectionDiagnostic } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import { h as EditorApplicationSchema } from "./htmlTypes-CNhoCFjK.js";
3
- import { p as BasePlugin } from "./core-CTB0OBoh.js";
1
+ import { Eo as PluginReference, N as Descendant, T as ContentSlice$1, Un as EditorSchemaRepairCode, Wl as Value, Yn as EditorSchemaValidationDiagnostic, _t as EditorDocumentValue, fs as RootKey, p as AuthoredProjectionDiagnostic } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import { h as EditorApplicationSchema } from "./htmlTypes-3laowz-3.js";
3
+ import { p as BasePlugin } from "./core-By92GWYW.js";
4
4
  import { Association, Blockquote, Break, Code, Emphasis, Heading, Html, Image, InlineCode, Link, List, ListItem, Nodes, Paragraph, Parents, PhrasingContent, Root, Strong, TableCell, TableRow, Text, ThematicBreak } from "mdast";
5
5
  import { MdxJsxFlowElement, MdxJsxTextElement } from "mdast-util-mdx";
6
6
  import { Node, Point } from "unist";
@@ -1,8 +1,8 @@
1
- import { $o as Range, $r as EditorUpdateContext, Bi as Location, Bo as PropertyEnumDescriptor, Cc as Selection, Cl as TransferIntent, D as Decoration, Da as NodeSelection, Do as PluginTypeProvider, El as TransferOutcome, Eo as PluginReference, Es as SchemaContentRule, Ft as EditorLifecycleErrorSink, Gn as EditorSchemaSourceProvider, Hl as TxMethodDeclarations, Is as SchemaElementPropertyDefinition, Js as SchemaNodeTypeProvider, Ki as MaximizeMode, Kl as WithNodeTarget, Mo as PluginWitnessFor, Mt as EditorJsonValue, Ni as InitialValue, O as DecorationAttributes, Oo as PluginTypeProviderOf, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Sl as TransferInput, Sr as EditorTextChangeContext, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Wl as Value, Wn as EditorSchemaSource, Xc as Text, Yi as NamedRootKey, _t as EditorDocumentValue, d as AnyEditor, fs as RootKey, gi as Element$1, gs as SchemaContentDefault, ia as NodeEntry, io as PluginCapabilities, j as DefinitionOf, ja as NodeTarget, jl as TransferRead, jr as EditorTransactionChangeContext, k as DecorationRefresh, ka as NodeSetNodesOptions, ll as TextOf, ma as NodeKey, mi as EditorViewOptions, or as EditorStateField, qo as PropertyStringDescriptor, st as EditorCommitContext, vl as TransferApi, wi as ElementOf, yl as TransferCheck, yo as PluginPortal$1, zt as EditorNodeChangeContext } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import { h as EditorApplicationSchema } from "./htmlTypes-CNhoCFjK.js";
3
- import { B as ScrollMargin, c as DOMApi, l as DOMClipboardApi } from "./index-B8JeECEk.js";
4
- import { $a as InferRead, An as AutoScrollApi, Ba as EditOnlyConfig, Co as PluginSelectors, Cr as RenderElementProps, Ct as PluginTransaction, D as DefinePluginFormats, Do as SelectionRules, Dt as CorePlugins, Et as SpecializePluginApi, Fa as BasePluginDefinition, Fi as isPositiveSafeInteger, Fo as UnknownObject, G as PluginContributionCompatibility, Ga as InferDependencies, Gi as HighlightResult, Ha as GetInjectNodePropsReturnType, Ia as BaseTransformOptions, Io as Nullable, Ki as Alignment, Ln as DomPluginUpdate, Lt as RenderTextProps, Ma as InternalPluginDefinitionOf, Mi as IndentChangeOptions, Mo as InferPluginNodeTypeProvider, Na as AnyBasePluginDefinition, No as InferPluginSchema, O as EditorShortcut, Pa as BaseInjectProps, Po as InferPluginSchemaContribution, Pt as GetFragmentPropOptions, Qa as InferPluginViewState, R as PluginShortcutInput, Ra as DefinitionOf$1, Rt as RenderLeafProps, Sa as HeadingLevel, So as PluginSelectorReturn, Ta as ToggleHeadingOptions, Ti as isListOrdinal, To as PluginViewStore, Tt as ReactOptionalCorePluginName, U as MergePluginDefinitions, Ua as InferApi, Va as GetInjectNodePropsOptions, W as PluginCompatibilityArguments, Wa as InferConflicts, Za as InferPluginStoreState, Zr as ElementWith, _i as ListStyle, _t as MergeInstalledPluginDefinitions, ao as NormalizePluginSelectors, ar as BasePluginInstalledCapabilityWitness, at as RuntimePluginsFromTuple, bo as PluginSelectorArgs, bt as PluginReadCapability, c as InternalBaseEditorWithInstalledPlugins, co as PluginBaseContext, ct as BlockInsertOptions, d as AnyBasePluginPortal, do as PluginPortalContext, dt as DisabledOptionalCoreNames, ea as CapturedFormat, ei as SchemaPropertySource, eo as InferSelectors, er as PluginInitialStateInput, f as AnyPluginBase, fo as PluginReference$1, g as BasePluginDefinitionInput, gi as ListSetOptions, gt as InternalInstalledSchemaMutationProvider, ho as PluginSchemaDeclaration, ht as InferRuntimePlugins, io as NodeComponent, ir as BasePluginDependencyReferences, it as PlatePluginsFromTuple, ja as ExactPluginSchemaDeclaration, jo as WithAnyName, l as AnyBasePlugin, lo as PluginDefinitionWitness, lt as BlockUpsertOptions, m as BasePluginConfiguration, mo as PluginSchemaContext, mt as InferEditorRuntimePlugins, no as InferUpdate, nr as BasePluginDependencyDescriptors, nt as EditorOptions, oo as NormalizePluginState, or as LowerBasePlugin, p as BasePlugin, pt as ExcludeInstalledNames, rt as GuaranteedPlugins, s as EditorReference, sr as NormalizeBasePluginInput, st as BasePluginInput, tr as RequiredPluginState, u as AnyBasePluginContext, uo as PluginDependency, ut as DisabledExplicitNames, vi as ListToggleOptions, w as ConfiguredPluginDescriptor, wi as isListLevels, wr as HandlerReturnType, xo as PluginSelectorMethods, xt as PluginReadState, yi as ListType, yt as PluginDirectUpdate, zn as ScrollMode } from "./core-CTB0OBoh.js";
5
- import { A as ReactApi, B as StateFieldSetter, G as UseEditorSelectorOptions, W as UseEditorHistoryOptions, Y as UseRootEditorOptions, Z as UseStateFieldValueOptions, _ as EditorContentProps$1, d as EditableHandlerResult, g as Editor$1, l as EditableElementSlots, m as EditableInputEventContext$1, n as EditorStaticProps, r as EditableDOMBeforeInputContext$1, u as EditableHandlerContext$1, v as EditorHistoryController } from "./EditorStatic-CKG5xM3y.js";
1
+ import { $o as Range, $r as EditorUpdateContext, Bi as Location, Bo as PropertyEnumDescriptor, Cc as Selection, Cl as TransferIntent, D as Decoration, Da as NodeSelection, Do as PluginTypeProvider, El as TransferOutcome, Eo as PluginReference, Es as SchemaContentRule, Ft as EditorLifecycleErrorSink, Gn as EditorSchemaSourceProvider, Hl as TxMethodDeclarations, Is as SchemaElementPropertyDefinition, Js as SchemaNodeTypeProvider, Ki as MaximizeMode, Kl as WithNodeTarget, Mo as PluginWitnessFor, Mt as EditorJsonValue, Ni as InitialValue, O as DecorationAttributes, Oo as PluginTypeProviderOf, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Sl as TransferInput, Sr as EditorTextChangeContext, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Wl as Value, Wn as EditorSchemaSource, Xc as Text, Yi as NamedRootKey, _t as EditorDocumentValue, d as AnyEditor, fs as RootKey, gi as Element$1, gs as SchemaContentDefault, ia as NodeEntry, io as PluginCapabilities, j as DefinitionOf, ja as NodeTarget, jl as TransferRead, jr as EditorTransactionChangeContext, k as DecorationRefresh, ka as NodeSetNodesOptions, ll as TextOf, ma as NodeKey, mi as EditorViewOptions, or as EditorStateField, qo as PropertyStringDescriptor, st as EditorCommitContext, vl as TransferApi, wi as ElementOf, yl as TransferCheck, yo as PluginPortal$1, zt as EditorNodeChangeContext } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import { h as EditorApplicationSchema } from "./htmlTypes-3laowz-3.js";
3
+ import { B as ScrollMargin, c as DOMApi, l as DOMClipboardApi } from "./index-B9UlNijk.js";
4
+ import { $a as InferRead, An as AutoScrollApi, Ba as EditOnlyConfig, Co as PluginSelectors, Cr as RenderElementProps, Ct as PluginTransaction, D as DefinePluginFormats, Do as SelectionRules, Dt as CorePlugins, Et as SpecializePluginApi, Fa as BasePluginDefinition, Fi as isPositiveSafeInteger, Fo as UnknownObject, G as PluginContributionCompatibility, Ga as InferDependencies, Gi as HighlightResult, Ha as GetInjectNodePropsReturnType, Ia as BaseTransformOptions, Io as Nullable, Ki as Alignment, Ln as DomPluginUpdate, Lt as RenderTextProps, Ma as InternalPluginDefinitionOf, Mi as IndentChangeOptions, Mo as InferPluginNodeTypeProvider, Na as AnyBasePluginDefinition, No as InferPluginSchema, O as EditorShortcut, Pa as BaseInjectProps, Po as InferPluginSchemaContribution, Pt as GetFragmentPropOptions, Qa as InferPluginViewState, R as PluginShortcutInput, Ra as DefinitionOf$1, Rt as RenderLeafProps, Sa as HeadingLevel, So as PluginSelectorReturn, Ta as ToggleHeadingOptions, Ti as isListOrdinal, To as PluginViewStore, Tt as ReactOptionalCorePluginName, U as MergePluginDefinitions, Ua as InferApi, Va as GetInjectNodePropsOptions, W as PluginCompatibilityArguments, Wa as InferConflicts, Za as InferPluginStoreState, Zr as ElementWith, _i as ListStyle, _t as MergeInstalledPluginDefinitions, ao as NormalizePluginSelectors, ar as BasePluginInstalledCapabilityWitness, at as RuntimePluginsFromTuple, bo as PluginSelectorArgs, bt as PluginReadCapability, c as InternalBaseEditorWithInstalledPlugins, co as PluginBaseContext, ct as BlockInsertOptions, d as AnyBasePluginPortal, do as PluginPortalContext, dt as DisabledOptionalCoreNames, ea as CapturedFormat, ei as SchemaPropertySource, eo as InferSelectors, er as PluginInitialStateInput, f as AnyPluginBase, fo as PluginReference$1, g as BasePluginDefinitionInput, gi as ListSetOptions, gt as InternalInstalledSchemaMutationProvider, ho as PluginSchemaDeclaration, ht as InferRuntimePlugins, io as NodeComponent, ir as BasePluginDependencyReferences, it as PlatePluginsFromTuple, ja as ExactPluginSchemaDeclaration, jo as WithAnyName, l as AnyBasePlugin, lo as PluginDefinitionWitness, lt as BlockUpsertOptions, m as BasePluginConfiguration, mo as PluginSchemaContext, mt as InferEditorRuntimePlugins, no as InferUpdate, nr as BasePluginDependencyDescriptors, nt as EditorOptions, oo as NormalizePluginState, or as LowerBasePlugin, p as BasePlugin, pt as ExcludeInstalledNames, rt as GuaranteedPlugins, s as EditorReference, sr as NormalizeBasePluginInput, st as BasePluginInput, tr as RequiredPluginState, u as AnyBasePluginContext, uo as PluginDependency, ut as DisabledExplicitNames, vi as ListToggleOptions, w as ConfiguredPluginDescriptor, wi as isListLevels, wr as HandlerReturnType, xo as PluginSelectorMethods, xt as PluginReadState, yi as ListType, yt as PluginDirectUpdate, zn as ScrollMode } from "./core-By92GWYW.js";
5
+ import { A as ReactApi, B as StateFieldSetter, G as UseEditorSelectorOptions, W as UseEditorHistoryOptions, Y as UseRootEditorOptions, Z as UseStateFieldValueOptions, _ as EditorContentProps$1, d as EditableHandlerResult, g as Editor$1, l as EditableElementSlots, m as EditableInputEventContext$1, n as EditorStaticProps, r as EditableDOMBeforeInputContext$1, u as EditableHandlerContext$1, v as EditorHistoryController } from "./EditorStatic-eXOA489B.js";
6
6
  import React$1, { HTMLAttributes } from "react";
7
7
  declare const DOM_HANDLERS: readonly ['onCopy', 'onCopyCapture', 'onCut', 'onCutCapture', 'onPaste', 'onPasteCapture', 'onCompositionEnd', 'onCompositionEndCapture', 'onCompositionStart', 'onCompositionStartCapture', 'onCompositionUpdate', 'onCompositionUpdateCapture', 'onFocus', 'onFocusCapture', 'onBlur', 'onBlurCapture', 'onDOMBeforeInput', 'onBeforeInput', 'onBeforeInputCapture', 'onInput', 'onInputCapture', 'onReset', 'onResetCapture', 'onSubmit', 'onSubmitCapture', 'onInvalid', 'onInvalidCapture', 'onLoad', 'onLoadCapture', 'onKeyDown', 'onKeyDownCapture', 'onKeyPress', 'onKeyPressCapture', 'onKeyUp', 'onKeyUpCapture', 'onAbort', 'onAbortCapture', 'onCanPlay', 'onCanPlayCapture', 'onCanPlayThrough', 'onCanPlayThroughCapture', 'onDurationChange', 'onDurationChangeCapture', 'onEmptied', 'onEmptiedCapture', 'onEncrypted', 'onEncryptedCapture', 'onEnded', 'onEndedCapture', 'onLoadedData', 'onLoadedDataCapture', 'onLoadedMetadata', 'onLoadedMetadataCapture', 'onLoadStart', 'onLoadStartCapture', 'onPause', 'onPauseCapture', 'onPlay', 'onPlayCapture', 'onPlaying', 'onPlayingCapture', 'onProgress', 'onProgressCapture', 'onRateChange', 'onRateChangeCapture', 'onSeeked', 'onSeekedCapture', 'onSeeking', 'onSeekingCapture', 'onStalled', 'onStalledCapture', 'onSuspend', 'onSuspendCapture', 'onTimeUpdate', 'onTimeUpdateCapture', 'onVolumeChange', 'onVolumeChangeCapture', 'onWaiting', 'onWaitingCapture', 'onAuxClick', 'onAuxClickCapture', 'onClick', 'onClickCapture', 'onContextMenu', 'onContextMenuCapture', 'onDoubleClick', 'onDoubleClickCapture', 'onDrag', 'onDragCapture', 'onDragEnd', 'onDragEndCapture', 'onDragEnter', 'onDragEnterCapture', 'onDragExit', 'onDragExitCapture', 'onDragLeave', 'onDragLeaveCapture', 'onDragOver', 'onDragOverCapture', 'onDragStart', 'onDragStartCapture', 'onDrop', 'onDropCapture', 'onMouseDown', 'onMouseDownCapture', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseMoveCapture', 'onMouseOut', 'onMouseOutCapture', 'onMouseOver', 'onMouseOverCapture', 'onMouseUp', 'onMouseUpCapture', 'onSelect', 'onSelectCapture', 'onTouchCancel', 'onTouchCancelCapture', 'onTouchEnd', 'onTouchEndCapture', 'onTouchMove', 'onTouchMoveCapture', 'onTouchStart', 'onTouchStartCapture', 'onPointerDown', 'onPointerDownCapture', 'onPointerMove', 'onPointerMoveCapture', 'onPointerUp', 'onPointerUpCapture', 'onPointerCancel', 'onPointerCancelCapture', 'onPointerEnter', 'onPointerLeave', 'onPointerOver', 'onPointerOverCapture', 'onPointerOut', 'onPointerOutCapture', 'onGotPointerCapture', 'onGotPointerCaptureCapture', 'onLostPointerCapture', 'onLostPointerCaptureCapture', 'onScroll', 'onScrollCapture', 'onWheel', 'onWheelCapture', 'onAnimationStart', 'onAnimationStartCapture', 'onAnimationEnd', 'onAnimationEndCapture', 'onAnimationIteration', 'onAnimationIterationCapture', 'onTransitionEnd', 'onTransitionEndCapture'];
8
8
  type DOMHandlerProp = (typeof DOM_HANDLERS)[number];
@@ -1581,12 +1581,7 @@ declare const ItalicPlugin: Plugin<Omit<Readonly<{
1581
1581
  name: "italic";
1582
1582
  }> & Readonly<Record<never, never>>>;
1583
1583
  declare const KbdPlugin: Plugin<Readonly<{
1584
- formats: true;
1585
- rules: true;
1586
- }> & Readonly<{
1587
- name: "kbd";
1588
- }> & Readonly<Record<never, never>> & Readonly<{
1589
- __pluginWritableProperties: Readonly<{
1584
+ readonly __pluginWritableProperties: Readonly<{
1590
1585
  descriptor: PropertyBooleanDescriptor<{
1591
1586
  readonly default: false;
1592
1587
  readonly omitDefault: true;
@@ -1598,12 +1593,16 @@ declare const KbdPlugin: Plugin<Readonly<{
1598
1593
  unaliased: true;
1599
1594
  value: boolean;
1600
1595
  }>;
1601
- schema: {
1596
+ readonly schema: {
1602
1597
  readonly mark: PropertyBooleanDescriptor<{
1603
1598
  readonly default: false;
1604
1599
  readonly omitDefault: true;
1605
1600
  }>;
1606
1601
  };
1602
+ readonly name: "kbd";
1603
+ readonly contributions: true;
1604
+ readonly formats: true;
1605
+ readonly rules: true;
1607
1606
  }>>;
1608
1607
  declare const ScriptPlugin: Plugin<Omit<Readonly<{
1609
1608
  readonly __pluginWritableProperties: Readonly<{
@@ -1682,7 +1681,10 @@ declare const FontBackgroundColorPlugin: Plugin<Readonly<{
1682
1681
  name: "backgroundColor";
1683
1682
  }> & Readonly<Record<never, never>> & Readonly<{
1684
1683
  __pluginWritableProperties: Readonly<{
1685
- descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
1684
+ descriptor: PropertyStringDescriptor<{
1685
+ readonly validate: (value: unknown) => value is string;
1686
+ readonly validationVersion: 1;
1687
+ }>;
1686
1688
  key: "backgroundColor";
1687
1689
  localId: "backgroundColor";
1688
1690
  ownerName: "backgroundColor";
@@ -1691,7 +1693,10 @@ declare const FontBackgroundColorPlugin: Plugin<Readonly<{
1691
1693
  value: string;
1692
1694
  }>;
1693
1695
  schema: {
1694
- readonly mark: PropertyStringDescriptor<PropertyValueOptions<string>>;
1696
+ readonly mark: PropertyStringDescriptor<{
1697
+ readonly validate: (value: unknown) => value is string;
1698
+ readonly validationVersion: 1;
1699
+ }>;
1695
1700
  };
1696
1701
  }>>;
1697
1702
  declare const FontColorPlugin: Plugin<Readonly<{
@@ -1701,7 +1706,10 @@ declare const FontColorPlugin: Plugin<Readonly<{
1701
1706
  name: "color";
1702
1707
  }> & Readonly<Record<never, never>> & Readonly<{
1703
1708
  __pluginWritableProperties: Readonly<{
1704
- descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
1709
+ descriptor: PropertyStringDescriptor<{
1710
+ readonly validate: (value: unknown) => value is string;
1711
+ readonly validationVersion: 1;
1712
+ }>;
1705
1713
  key: "color";
1706
1714
  localId: "color";
1707
1715
  ownerName: "color";
@@ -1710,7 +1718,10 @@ declare const FontColorPlugin: Plugin<Readonly<{
1710
1718
  value: string;
1711
1719
  }>;
1712
1720
  schema: {
1713
- readonly mark: PropertyStringDescriptor<PropertyValueOptions<string>>;
1721
+ readonly mark: PropertyStringDescriptor<{
1722
+ readonly validate: (value: unknown) => value is string;
1723
+ readonly validationVersion: 1;
1724
+ }>;
1714
1725
  };
1715
1726
  }>>;
1716
1727
  declare const FontFamilyPlugin: Plugin<Readonly<{
@@ -1720,7 +1731,10 @@ declare const FontFamilyPlugin: Plugin<Readonly<{
1720
1731
  name: "fontFamily";
1721
1732
  }> & Readonly<Record<never, never>> & Readonly<{
1722
1733
  __pluginWritableProperties: Readonly<{
1723
- descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
1734
+ descriptor: PropertyStringDescriptor<{
1735
+ readonly validate: (value: unknown) => value is string;
1736
+ readonly validationVersion: 1;
1737
+ }>;
1724
1738
  key: "fontFamily";
1725
1739
  localId: "fontFamily";
1726
1740
  ownerName: "fontFamily";
@@ -1729,7 +1743,10 @@ declare const FontFamilyPlugin: Plugin<Readonly<{
1729
1743
  value: string;
1730
1744
  }>;
1731
1745
  schema: {
1732
- readonly mark: PropertyStringDescriptor<PropertyValueOptions<string>>;
1746
+ readonly mark: PropertyStringDescriptor<{
1747
+ readonly validate: (value: unknown) => value is string;
1748
+ readonly validationVersion: 1;
1749
+ }>;
1733
1750
  };
1734
1751
  }>>;
1735
1752
  declare const FontSizePlugin: Plugin<Readonly<{
@@ -1739,7 +1756,10 @@ declare const FontSizePlugin: Plugin<Readonly<{
1739
1756
  name: "fontSize";
1740
1757
  }> & Readonly<Record<never, never>> & Readonly<{
1741
1758
  __pluginWritableProperties: Readonly<{
1742
- descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
1759
+ descriptor: PropertyStringDescriptor<{
1760
+ readonly validate: (value: unknown) => value is string;
1761
+ readonly validationVersion: 1;
1762
+ }>;
1743
1763
  key: "fontSize";
1744
1764
  localId: "fontSize";
1745
1765
  ownerName: "fontSize";
@@ -1748,7 +1768,10 @@ declare const FontSizePlugin: Plugin<Readonly<{
1748
1768
  value: string;
1749
1769
  }>;
1750
1770
  schema: {
1751
- readonly mark: PropertyStringDescriptor<PropertyValueOptions<string>>;
1771
+ readonly mark: PropertyStringDescriptor<{
1772
+ readonly validate: (value: unknown) => value is string;
1773
+ readonly validationVersion: 1;
1774
+ }>;
1752
1775
  };
1753
1776
  }>>;
1754
1777
  declare const LineHeightPlugin: Plugin<Readonly<{
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as EditorCommandDispatch, $a as PluginActivationContext, $c as TextDirection, $i as NodeChildEntry, $l as defineEffect, $n as EditorSelection, $o as Range, $r as EditorUpdateContext, $s as SchemaPropertyDefinition, $t as EditorReadInput, A as DecorationSource, Aa as NodeSplitNodesOptions, Ac as SelectionMutationMethods, Ai as HistoryRecordResult, An as EditorSchemaGetProperty, Ao as PluginUpdateFactory, Ar as EditorTransactionBreakApi, As as SchemaElementFor, At as EditorIsEditorOptions, Au as setDebugValueScrubber, Ba as NodeUnwrapNodesOptions, Bc as StateFieldHistoryPolicy, Bi as Location, Bl as TransferWrap, Bn as EditorSchemaPropertyQuery, Bo as PropertyEnumDescriptor, Br as EditorTransactionRecordsApi, Bs as SchemaElementSlicePolicy, Bt as EditorNodeChangeHandler, Bu as txSelection, Ca as NodeOf, Cc as Selection, Ci as ElementIsElementOptions, Cl as TransferIntent, Cn as EditorSchemaDefinition, Co as PluginReadFactoryContext, Cr as EditorTextChangeHandler, Cs as SchemaContentRootOwnership, Ct as EditorElementBehavior, Cu as nodeWriteVeto, D as Decoration, Da as NodeSelection, Dc as SelectionEdge, Di as HistoryApi, Dl as TransferPatch, Dn as EditorSchemaElementOverride, Do as PluginTypeProvider, Dr as EditorTransactionAnchorApi, Ds as SchemaDescendant, Dt as EditorInstalledApiGroups, E as DebugValueScrubber, Ea as NodeReplaceChildrenOptions, Ec as SelectionCollapseOptions, Ei as ElementOrTextOf, El as TransferOutcome, En as EditorSchemaElement, Er as EditorTransactionAnchor, Es as SchemaContentRule, F as DescendantEntryIn, Fa as NodeTextRangeRoot, Fc as SliceLandingTarget, Fi as JsonEditorValue, Fl as TransferSideInput, Fn as EditorSchemaPlugin, Fo as PointApi, Fr as EditorTransactionDocumentChangeKind, Fs as SchemaElementProperty, Ft as EditorLifecycleErrorSink, Fu as target, G as EditorBreakExitOptions, Ga as PathAncestorsOptions, Gi as MarksOf, Gl as ValueOf, Go as PropertySetDescriptor, Gr as EditorTransactionSpecBuilder, Gs as SchemaGroupNames, Gt as EditorNodesOptions, H as EditorAboveOptions, Ha as NodeWriteVeto, Hc as StateFieldValueInput, Hi as LocationInterface, Hl as TxMethodDeclarations, Hn as EditorSchemaReadProperty, Ho as PropertyJsonOptions, Hr as EditorTransactionRootsApi, Hs as SchemaElementTarget, Ht as EditorNodeGetOptions, I as DescendantEntryOf, Ia as NodeTextRangeView, Ic as SnapshotIndex, Ii as JsonNode, Il as TransferSourceInput, Io as PointEntry, Ir as EditorTransactionEffectsApi, Is as SchemaElementPropertyDefinition, It as EditorMarks, Iu as transfer, J as EditorCanonicalUpdateTag, Ja as PathLevelsOptions, Ji as NamedEditorSchemaIdentity, Jl as authoredVeto, Jn as EditorSchemaValidationCode, Jo as PropertyValidation, Jr as EditorTransactionTopLevelRange, Jt as EditorPreviousOptions, K as EditorCan, Ka as PathApi, Ki as MaximizeMode, Kl as WithNodeTarget, Kn as EditorSchemaStructureProperty, Ko as PropertySetOptions, Kr as EditorTransactionTagsApi, Ks as SchemaGroupOptions, Kt as EditorNodesReadOptions, L as DescendantIn, La as NodeTextsOptions, Lc as SnapshotInput, Li as LeafEdge, Ll as TransferTarget, Ln as EditorSchemaProperty, Lo as PointInterface, Lr as EditorTransactionMarksApi, Ls as SchemaElementPropertyKeys, Lt as EditorMarksOf, Lu as transferVeto, M as DerivedEditorSchemaIdentity, Ma as NodeTextRangeEntry, Mc as SharedStateFieldDescriptor, Mi as HistorySettlement, Ml as TransferRefusalReason, Mn as EditorSchemaNamedDefinition, Mr as EditorTransactionChangeHandler, Ms as SchemaElementInput, Mt as EditorJsonValue, Mu as setEditorReadOnly, N as Descendant, Na as NodeTextRangeMatch, Nc as SliceLanding, Ni as InitialValue, Nl as TransferRelation, Nn as EditorSchemaOverride, No as PluginsOf, Nr as EditorTransactionChanged, Ns as SchemaElementProperties, Nt as EditorLevelsOptions, Nu as setEditorViewing, O as DecorationAttributes, Oa as NodeSelectionMode, Oc as SelectionMode, Oi as HistoryOutcome, Ol as TransferPatchProperties, On as EditorSchemaElementOverrideInput, Or as EditorTransactionAnnotationsApi, Os as SchemaElement, Ot as EditorInstalledReadGroups, Ou as schema$1, P as DescendantEntry, Pa as NodeTextRangeQuery, Pc as SliceLandingInput, Pl as TransferSide, Pn as EditorSchemaOverrideInput, Po as Point, Pr as EditorTransactionChangesApi, Ps as SchemaElementPropertiesFor, Pt as EditorLifecycleError, Q as EditorCommandDescriptor, Qc as TextDeleteOptions, Qi as NodeApi, Ql as defineEditorSchema, Qn as EditorSchemaVocabulary, Qo as PropertyValueOptions, Qr as EditorUpdateAnnotation, Qs as SchemaPropertyCopyPolicy, Qt as EditorReadDescriptor, R as DescendantOf, Ra as NodeTypeSelector, Rc as Span, Ri as LeafPosition, Rl as TransferVeto, Rn as EditorSchemaPropertyOverride, Ro as PropertyBooleanDescriptor, Rr as EditorTransactionNodesApi, Rs as SchemaElementPropertyOptions, Rt as EditorNextOptions, Ru as txLocate, S as CompatibleEditorCommand, Sa as NodeNodesOptions, Sc as SchemaValueFromPlugins, Si as ElementInterface, Sl as TransferInput, Sn as EditorSchemaDeclaration, So as PluginReadFactory, Sr as EditorTextChangeContext, Ss as SchemaContentRootInput, St as EditorEffectType, T as ContentSlice$1, Ta as NodeRemoveNodesOptions, Tc as SelectionAssociation, Ti as ElementOrTextIn, Tl as TransferLandingTarget, Tn as EditorSchemaDerivedDefinition, To as PluginReconfigureOptions, Tr as EditorToggleMarkOptions, Ts as SchemaContentRootStructure, Tt as EditorFragmentReadOptions, Tu as property, U as EditorBlockOptions, Ua as NodeWriteVetoInput, Ui as MarkKeysOf, Ul as TxOnlyMethod, Un as EditorSchemaRepairCode, Uo as PropertyNumberDescriptor, Ur as EditorTransactionSelectionApi, Us as SchemaElementTypes, Va as NodeWrapNodesOptions, Vc as StateFieldInitial, Vi as LocationApi, Vl as TxDeclaredMethod, Vn as EditorSchemaPropertyReadOptions, Vo as PropertyJsonDescriptor, Vr as EditorTransactionRemoved, Vs as SchemaElementStructure, Vt as EditorNodeChangeKind, W as EditorBlockToggleOptions, Wa as Path, Wi as MarksIn, Wl as Value, Wn as EditorSchemaSource, Wo as PropertyOptionsOf, Wr as EditorTransactionSliceApi, Ws as SchemaGroup, Wt as EditorNodeUnsetOptions, X as EditorCommandAroundHandler, Xa as PersistedSelection, Xc as Text, Xi as Node, Xl as createEditorView, Xn as EditorSchemaValidationError, Xo as PropertyValueKind, Xr as EditorUniqueHolder, Xs as SchemaPluginsOf, Xt as EditorReadAroundHandler, Y as EditorCommand, Ya as PersistedDocument, Yi as NamedRootKey, Yn as EditorSchemaValidationDiagnostic, Yo as PropertyValueDescriptor, Yr as EditorTransactionValueApi, Ys as SchemaPlugin, Yt as EditorRead, Z as EditorCommandContinuation, Za as PlacedTarget, Zc as TextApi, Zi as NodeAncestorsOptions, Zl as defineCommand$1, Zn as EditorSchemaValidationPropertyContext, Zo as PropertyValueOf, Zr as EditorUpdate, Zs as SchemaProperty, Zt as EditorReadContext, _ as BlockDuplicateOptions, _a as NodeMatch, _c as SchemaTextPropertyDefinition, _i as ElementApi, _l as TransferAdoptInput, _o as PluginMigrationContext, _r as EditorStateUniqueApi, _s as SchemaContentInput, _t as EditorDocumentValue, a as AncestorOf, aa as NodeEntryIn, ac as SchemaPropertyLandingPolicy, ai as EditorUpdateTagInput, al as TextInsertFragmentOptions, an as EditorReplaceChildrenOptions, ao as PluginCleanupContext, ar as EditorSnapshot, as as RangeMode, at as EditorCommitChangeKind, b as BooleanMarksOf, ba as NodeMoveNodesOptions, bc as SchemaTypesTarget, bi as ElementIdTarget, bl as TransferDiagnostic, bo as PluginPublicationError, br as EditorStateViewApi, bs as SchemaContentRoot, bt as EditorEffectHistoryReplayContext, c as AnchorDeletionPolicy, ca as NodeHasPropsOptions, cc as SchemaPropertySplitPolicy, cl as TextMutationMethods, cn as EditorRootOwner, co as PluginContribution, cr as EditorStateMarksApi, cs as ReadElement, ct as EditorCommitHandler, cu as editorCommands, da as NodeInsertSplitOptions, dc as SchemaRootNames, di as EditorValuePersistence, dl as TextSelection, dn as EditorSchemaContent, dr as EditorStateRangesApi, ds as ReadonlyAnchor, dt as EditorCoreStateView, ea as NodeChildrenOptions, ec as SchemaPropertyExclusiveGroup, ei as EditorUpdateMethods, el as TextEntry, en as EditorReadMethodRecord, eo as PluginApiFactory, er as EditorSelectionBlockOptions, es as RangeAnchorAssociation, et as EditorCommandHandler, eu as definePluginCompartment, f as AuthoredDocumentProjection, fa as NodeInterface, fc as SchemaTarget, fl as TextTarget, fn as EditorSchemaContentRoot, fr as EditorStateRuntimeApi, fs as RootKey, ft as EditorCoreUpdateMethods, g as AuthoredVeto, ga as NodeLiftNodesOptions, gc as SchemaTextProperty, gi as Element$1, gl as TransactionSpec, gr as EditorStateTextApi, gs as SchemaContentDefault, gt as EditorDocumentRecords, h as AuthoredTouch, ha as NodeLevelsOptions, hc as SchemaTextProperties, hi as EditorViewStateDependency, hl as TopLevelRuntimeRange, ho as PluginInput, hr as EditorStateSliceApi, hs as SchemaContent, i as AncestorIn, ia as NodeEntry, ic as SchemaPropertyKey, ii as EditorUpdateTag, il as TextIn, in as EditorReadResult, io as PluginCapabilities, ir as EditorSliceReadOptions, is as RangeInterface, it as EditorCommit, ja as NodeTarget, jc as SelectionSetPointOptions, ji as HistoryResult, jl as TransferRead, jn as EditorSchemaIdentity, jo as PluginUpdateFactoryContext, jr as EditorTransactionChangeContext, js as SchemaElementHandle, jt as EditorJsonObject, k as DecorationRefresh, ka as NodeSetNodesOptions, kc as SelectionMoveOptions, ki as HistoryRecordOptions, kl as TransferPayload, kn as EditorSchemaElementStructure, ko as PluginTypes, kr as EditorTransactionBlocksApi, ks as SchemaElementConstructionPropertiesFor, kt as EditorInstalledUpdateGroups, ku as screenReaderAnnouncementEffect, l as AnchorOptions, la as NodeIn, lc as SchemaPropertyTypeChangePolicy, li as EditorUpdateValueFromPlugin, ll as TextOf, ln as EditorRuntimeCarrier, lo as PluginContributionInput, lr as EditorStateNodesApi, ls as ReadNode, lt as EditorCommitListener, lu as editorReads, ma as NodeKey, mc as SchemaTextBlockOptions, mi as EditorViewOptions, ml as TextUnitAdjustment, mr as EditorStateSelectionApi, ms as SchemaBuiltInGroupName, mt as EditorDirectCommandDispatch, n as AncestorEntry, na as NodeDuplicateOptions, nc as SchemaPropertyHandleValue, ni as EditorUpdatePolicyFor, nl as TextEntryOf, nn as EditorReadMethods, no as PluginCandidateContext, nr as EditorSelectorDependency, ns as RangeDirection, nt as EditorCommandPlace, nu as defineStateField, o as Anchor, oa as NodeEntryOf, oc as SchemaPropertyReferences, oi as EditorUpdateTransaction, ol as TextInsertTextOptions, on as EditorReplaceNodeOptions, oo as PluginCompartment, or as EditorStateField, os as ReadAncestor, ot as EditorCommitChanged, p as AuthoredProjectionDiagnostic, pa as NodeIsNodeOptions, pc as SchemaText, pi as EditorView, pl as TextUnit, po as PluginDependencyReference, pr as EditorStateSchemaApi, ps as SchemaBlockContentOptions, pt as EditorCoreUpdateTransaction, pu as getPublicEditorRuntimeOwner, q as EditorCanTransaction, qa as PathInterface, qi as MoveUnit, qn as EditorSchemaUnknownPolicy, qo as PropertyStringDescriptor, qr as EditorTransactionTextApi, qs as SchemaKeyPrefix, qt as EditorParentOptions, r as AncestorEntryOf, ra as NodeElementsOptions, rc as SchemaPropertyIds, ri as EditorUpdateResult, rl as TextEqualsOptions, rn as EditorReadRegistration, ro as PluginCandidateEditor, rr as EditorSliceDeletionOptions, rs as RangeEdgesOptions, rt as EditorCommandResult, ru as defineUpdateAnnotation, s as AnchorAssociation, sa as NodeFindTextRangesOptions, sc as SchemaPropertyRole, sl as TextInterface, sn as EditorRootEntry, so as PluginCompartmentValue, sr as EditorStateFragmentApi, ss as ReadDescendant, st as EditorCommitContext, su as documentReplacement, t as Ancestor, ta as NodeDescendantsOptions, tc as SchemaPropertyHandle, ti as EditorUpdatePolicy, tl as TextEntryIn, tn as EditorReadMethodTree, to as PluginApiFactoryContext, tr as EditorSelectorDependencies, ts as RangeApi, tt as EditorCommandInput, tu as definePluginPoint, u as AnchorValue, ua as NodeInsertNodesOptions, uc as SchemaRecordSet, ui as EditorValueFromPlugins, ul as TextRemoveTextOptions, un as EditorRuntimeOwnerOf, uo as PluginDefinition, ur as EditorStatePointsApi, us as ReadValue, ut as EditorCommitRuntimeChangeKind, va as NodeMatchPredicate, vc as SchemaTextPropertyKeys, vi as ElementEntry, vl as TransferApi, vo as PluginPoint, vr as EditorStateValueApi, vs as SchemaContentOptions, vt as EditorEffect, wa as NodeProps, wc as SelectionApi, wi as ElementOf, wl as TransferLandingInput, wn as EditorSchemaDelta, wo as PluginReadMiddlewareFactory, wr as EditorToggleBlockOptions, ws as SchemaContentRootSlotsFor, wt as EditorElementEntry, x as ChildOf, xa as NodeMutationMethods, xc as SchemaValue, xi as ElementIn, xl as TransferEdge, xn as EditorSchemaContribution, xo as PluginReadContext, xs as SchemaContentRootContribution, xt as EditorEffectHistoryReplayResult, xu as locateAt, y as BooleanMarkKeysOf, ya as NodeMergeNodesOptions, yc as SchemaTextPropertyOptions, yi as ElementEntryOf, yl as TransferCheck, yr as EditorStateView, ys as SchemaContentPrefixSlot, yt as EditorEffectHistoryKind, yu as isEditor, z as DocumentChange, za as NodeUnsetNodesOptions, zc as StateFieldDescriptor, zi as LocalStateFieldDescriptor, zl as TransferVetoInput, zn as EditorSchemaPropertyOverrideInput, zo as PropertyBuilderApi, zr as EditorTransactionPluginsApi, zs as SchemaElementPropertyValue, zt as EditorNodeChangeContext, zu as txOnly } from "./tx-only-CWT-IURY-BqIFhy44.js";
2
- import { h as EditorApplicationSchema } from "./htmlTypes-CNhoCFjK.js";
3
- import { $ as HtmlWrapperSpec, $a as InferRead, $i as BaseFormattingPlugin, $n as definePlugin, $r as SchemaPropertyDescriptorMap, $t as BlockFenceInputRuleConfig, Aa as HorizontalRuleRules, Ai as linkUrlValidation, An as AutoScrollApi, Ao as StructuralRuleState, Ar as DocxEncodedFragment, At as isUrl, Ba as EditOnlyConfig, Bi as CodeBlockElement, Bn as DebugApi, Br as DocxImportTableRow, Bt as BaseParagraphDefinition, C as ConfiguredBasePlugin, Ca as HeadingPluginState, Ci as ListLevels, Cn as MatchBlockStartOptions, Co as PluginSelectors, Ct as PluginTransaction, Da as BaseHorizontalRulePlugin, Di as LinkElement, Dn as TextSubstitutionMatch, Do as SelectionRules, Dr as DocxBorder, E as Decorate, Ea as BaseBlockquotePlugin, Ei as BaseLinkPlugin, En as TextSubstitutionInputRuleConfig, Eo as RuleDecision, Er as DocxBlockProps, Fa as BasePluginDefinition, Fn as DomApi, Fo as UnknownObject, Fr as DocxImportListInfo, Ft as getFragmentProp, Ga as InferDependencies, Gi as HighlightResult, Gn as EditorError, Gr as DocxNodeMappingInput, Gt as createBlockFenceInputRule, H as TransformOptions, Ha as GetInjectNodePropsReturnType, Hi as CodeHighlightLowlight, Hn as DebugErrorType, Hr as DocxMarkDecodeContext, Ht as InputRuleVeto, Ii as CodeBlockRules, In as DomPluginState, Io as Nullable, Ir as DocxImportListLevel, It as IS_APPLE, J as HtmlElementPatch, Ja as InferOwnApi, Ji as BaseFontColorPlugin, Jn as TransferPlugin, Jr as DocxRunMarks, Jt as matchBlockStart, K as HtmlAttributes, Ka as InferEnabled, Ki as Alignment, Kn as LogLevel, Kr as DocxPropertyDecodeContext, Kt as createMarkInputRule, L as PartialBasePlugin, La as BreakRules, Li as BaseCodeBlockPlugin, Ln as DomPluginUpdate, Lr as DocxImportNode, Mi as IndentChangeOptions, Mn as AutoScrollChangesMap, Mr as DocxImportBlock, Mt as getInjectMatch, Ni as IndentDefinition, Nn as AutoScrollOptions, Nr as DocxImportBlockProps, Nt as FragmentPropMode, O as EditorShortcut, Oa as BlockquoteRules, Oi as LinkRules, On as TextSubstitutionPattern, Oo as StructuralRuleContext, Or as DocxDecodeContext, Ot as AffinityDefinition, Pa as BaseInjectProps, Pi as IndentPluginState, Pn as AutoScrollUpdate, Pr as DocxImportInline, Pt as GetFragmentPropOptions, Q as HtmlPrepareDiagnosticInput, Qi as BaseTextAlignPlugin, Qn as nanoid, Qr as PluginFormatNode, Qt as BaseInputRule, R as PluginShortcutInput, Ra as DefinitionOf, Ri as BaseCodeHighlightPlugin, Rn as ScrollIntoViewTarget, Rr as DocxImportNodeKind, Sa as HeadingLevel, Si as ListLevel, Sn as MatchBlockFenceOptions, So as PluginSelectorReturn, Sr as ElementContentRootSlot, St as PluginState, T as DeclaredPluginShortcutInput, Ta as ToggleHeadingOptions, Tn as SelectionInputRuleContext, Tr as DocxBlock, Ua as InferApi, Ui as CodeHighlightPluginState, Un as DebugPlugin, Ur as DocxMarkEncodeContext, Ut as inputRuleVeto, Va as GetInjectNodePropsOptions, Vi as CodeHighlightDefinition, Vn as DebugDefinition, Vr as DocxInline, Vt as BaseParagraphPlugin, Wa as InferConflicts, Wi as HighlightNode, Wn as DebugPluginState, Wr as DocxNodeMapping, Wt as defineInputRule, X as HtmlMatcher, Xa as InferOwnUpdate, Xi as BaseFontSizePlugin, Xn as HistoryPlugin, Xr as DocxTableRow, Xt as HtmlPlugin, Y as HtmlMatchValue, Ya as InferOwnRead, Yi as BaseFontFamilyPlugin, Yn as HistoryDefinition, Yr as DocxTableCell, Yt as matchDelimitedInline, Z as HtmlNodeSpec, Za as InferPluginStoreState, Zi as BaseLineHeightPlugin, Zn as HistoryPluginState, Zr as ElementWith, _ as BasePluginExtendInput, _a as ScriptRules, _i as ListStyle, _n as InsertTextInputRule, _o as PluginSchemaMark, _r as MarkdownNodeMapping, a as PLUGINS, aa as BaseCodePlugin, ai as PluginFormatRegistry, an as InputRuleEditor, b as BasePluginOverride, ba as UnderlineRules, bi as OrderedListRules, bn as MarkInputRuleConfig, bo as PluginSelectorArgs, br as MarkdownTagAttributeView, ca as BaseKbdPlugin, ci as PlainTextDocumentOptions, cn as InputRulesConfig, co as PluginBaseContext, cr as PlainTextEncodeContext, ct as BlockInsertOptions, da as BaseUnderlinePlugin, di as serializePlainText, dn as InsertBreakInputRuleReadContext, dr as MarkdownDecodeContext, ea as CapturedFormat, ei as SchemaPropertySource, en as BlockFenceInputRuleMatch, eo as InferSelectors, et as CreateEditorOptions, fa as BoldRules, fi as BaseListPlugin, fn as InsertDataFollowUpContext, fo as PluginReference, fr as MarkdownEncodeContext, g as BasePluginDefinitionInput, ga as MarkComboRules, gi as ListSetOptions, gn as InsertDataInputRuleReadContext, go as PluginSchemaElement, gr as MarkdownNodeKind, h as BasePluginContext, ha as ItalicRules, hi as ListElement, hn as InsertDataInputRuleContext, ho as PluginSchemaDeclaration, hr as MarkdownMarks, i as SingleBlockPlugin, ia as BaseBoldPlugin, ii as PluginFormatModelView, in as InputRule, io as NodeComponent, ji as BaseIndentPlugin, jn as AutoScrollChangeKind, jo as WithAnyName, jr as DocxFormatDiagnosticInput, jt as isDefined, k as InjectNodeProps, ka as HorizontalRuleMarkdownVariant, ki as getLinkHref, kn as TransformInputRuleContext, ko as StructuralRuleEditor, kr as DocxEncodeContext, kt as AffinityPlugin, la as BaseScriptPlugin, li as PlainTextEditorOptions, ln as InsertBreakInputRule, lr as PlainTextNodeMapping, lt as BlockUpsertOptions, m as BasePluginConfiguration, ma as HighlightRules, mi as ListDefinition, mn as InsertDataInputRule, mo as PluginSchemaContext, mr as MarkdownMarkWrapper, n as TrailingBlockPluginState, na as FormattingContribution, ni as HtmlMappingDiagnosticInput, nn as DefinedInsertDataFollowUpInputRule, no as InferUpdate, o as Editor, oa as BaseHighlightPlugin, oi as PluginFormatSchemaView, on as InputRuleInsertTextOptions, ot as createEditor, p as BasePlugin, pa as CodeRules, pi as BulletedListRules, pn as InsertDataFollowUpInputRule, po as PluginSchema, pr as MarkdownMarkWrapContext, q as HtmlContentToken, qa as InferName, qi as BaseFontBackgroundColorPlugin, qn as TransferDefinition, qr as DocxPropertyEncodeContext, qt as createTextSubstitutionInputRule, r as SingleLinePlugin, ra as formatting, ri as PluginFormatContext, rn as DelimitedInlineInputRuleMatch, ro as MergeRules, s as EditorReference, sa as BaseItalicPlugin, si as PlainTextDiagnostic, sn as InputRuleTarget, so as NormalizeRules, st as BasePluginInput, t as TrailingBlockPlugin, ta as FormattingBlockEntry, ti as TextWith, tn as BlockStartInputRuleMatch, to as InferTargetPlugins, ua as BaseStrikethroughPlugin, ui as PlainTextSerializeResult, un as InsertBreakInputRuleContext, uo as PluginDependency, ur as PlainTextNodeMappingInput, v as BasePluginImplementationContext, va as ScriptValue, vi as ListToggleOptions, vn as InsertTextInputRuleContext, vo as PluginSchemaReferences, vr as MarkdownNodeMappingInput, vt as NodeInsertOptions, wa as HeadingRules, wn as MatchDelimitedInlineOptions, wo as PluginStore, wr as HandlerReturnType, wt as PluginUpdate, x as BasePluginPortal, xa as BaseHeadingPlugin, xi as TaskListRules, xn as MarkInputRuleMatch, xo as PluginSelectorMethods, xr as MarkdownTagNode, xt as PluginReadState, y as BasePluginOn, ya as StrikethroughRules, yi as ListType, yn as InsertTextInputRuleReadContext, yo as PluginSelector, yr as MarkdownRefusal, za as DeleteRules, zi as CodeBlockDefinition, zn as ScrollMode, zr as DocxImportTableCell } from "./core-CTB0OBoh.js";
1
+ import { $ as EditorCommandDispatch, $a as PluginActivationContext, $c as TextDirection, $i as NodeChildEntry, $l as defineEffect, $n as EditorSelection, $o as Range, $r as EditorUpdateContext, $s as SchemaPropertyDefinition, $t as EditorReadInput, A as DecorationSource, Aa as NodeSplitNodesOptions, Ac as SelectionMutationMethods, Ai as HistoryRecordResult, An as EditorSchemaGetProperty, Ao as PluginUpdateFactory, Ar as EditorTransactionBreakApi, As as SchemaElementFor, At as EditorIsEditorOptions, Au as setDebugValueScrubber, Ba as NodeUnwrapNodesOptions, Bc as StateFieldHistoryPolicy, Bi as Location, Bl as TransferWrap, Bn as EditorSchemaPropertyQuery, Bo as PropertyEnumDescriptor, Br as EditorTransactionRecordsApi, Bs as SchemaElementSlicePolicy, Bt as EditorNodeChangeHandler, Bu as txSelection, Ca as NodeOf, Cc as Selection, Ci as ElementIsElementOptions, Cl as TransferIntent, Cn as EditorSchemaDefinition, Co as PluginReadFactoryContext, Cr as EditorTextChangeHandler, Cs as SchemaContentRootOwnership, Ct as EditorElementBehavior, Cu as nodeWriteVeto, D as Decoration, Da as NodeSelection, Dc as SelectionEdge, Di as HistoryApi, Dl as TransferPatch, Dn as EditorSchemaElementOverride, Do as PluginTypeProvider, Dr as EditorTransactionAnchorApi, Ds as SchemaDescendant, Dt as EditorInstalledApiGroups, E as DebugValueScrubber, Ea as NodeReplaceChildrenOptions, Ec as SelectionCollapseOptions, Ei as ElementOrTextOf, El as TransferOutcome, En as EditorSchemaElement, Er as EditorTransactionAnchor, Es as SchemaContentRule, F as DescendantEntryIn, Fa as NodeTextRangeRoot, Fc as SliceLandingTarget, Fi as JsonEditorValue, Fl as TransferSideInput, Fn as EditorSchemaPlugin, Fo as PointApi, Fr as EditorTransactionDocumentChangeKind, Fs as SchemaElementProperty, Ft as EditorLifecycleErrorSink, Fu as target, G as EditorBreakExitOptions, Ga as PathAncestorsOptions, Gi as MarksOf, Gl as ValueOf, Go as PropertySetDescriptor, Gr as EditorTransactionSpecBuilder, Gs as SchemaGroupNames, Gt as EditorNodesOptions, H as EditorAboveOptions, Ha as NodeWriteVeto, Hc as StateFieldValueInput, Hi as LocationInterface, Hl as TxMethodDeclarations, Hn as EditorSchemaReadProperty, Ho as PropertyJsonOptions, Hr as EditorTransactionRootsApi, Hs as SchemaElementTarget, Ht as EditorNodeGetOptions, I as DescendantEntryOf, Ia as NodeTextRangeView, Ic as SnapshotIndex, Ii as JsonNode, Il as TransferSourceInput, Io as PointEntry, Ir as EditorTransactionEffectsApi, Is as SchemaElementPropertyDefinition, It as EditorMarks, Iu as transfer, J as EditorCanonicalUpdateTag, Ja as PathLevelsOptions, Ji as NamedEditorSchemaIdentity, Jl as authoredVeto, Jn as EditorSchemaValidationCode, Jo as PropertyValidation, Jr as EditorTransactionTopLevelRange, Jt as EditorPreviousOptions, K as EditorCan, Ka as PathApi, Ki as MaximizeMode, Kl as WithNodeTarget, Kn as EditorSchemaStructureProperty, Ko as PropertySetOptions, Kr as EditorTransactionTagsApi, Ks as SchemaGroupOptions, Kt as EditorNodesReadOptions, L as DescendantIn, La as NodeTextsOptions, Lc as SnapshotInput, Li as LeafEdge, Ll as TransferTarget, Ln as EditorSchemaProperty, Lo as PointInterface, Lr as EditorTransactionMarksApi, Ls as SchemaElementPropertyKeys, Lt as EditorMarksOf, Lu as transferVeto, M as DerivedEditorSchemaIdentity, Ma as NodeTextRangeEntry, Mc as SharedStateFieldDescriptor, Mi as HistorySettlement, Ml as TransferRefusalReason, Mn as EditorSchemaNamedDefinition, Mr as EditorTransactionChangeHandler, Ms as SchemaElementInput, Mt as EditorJsonValue, Mu as setEditorReadOnly, N as Descendant, Na as NodeTextRangeMatch, Nc as SliceLanding, Ni as InitialValue, Nl as TransferRelation, Nn as EditorSchemaOverride, No as PluginsOf, Nr as EditorTransactionChanged, Ns as SchemaElementProperties, Nt as EditorLevelsOptions, Nu as setEditorViewing, O as DecorationAttributes, Oa as NodeSelectionMode, Oc as SelectionMode, Oi as HistoryOutcome, Ol as TransferPatchProperties, On as EditorSchemaElementOverrideInput, Or as EditorTransactionAnnotationsApi, Os as SchemaElement, Ot as EditorInstalledReadGroups, Ou as schema$1, P as DescendantEntry, Pa as NodeTextRangeQuery, Pc as SliceLandingInput, Pl as TransferSide, Pn as EditorSchemaOverrideInput, Po as Point, Pr as EditorTransactionChangesApi, Ps as SchemaElementPropertiesFor, Pt as EditorLifecycleError, Q as EditorCommandDescriptor, Qc as TextDeleteOptions, Qi as NodeApi, Ql as defineEditorSchema, Qn as EditorSchemaVocabulary, Qo as PropertyValueOptions, Qr as EditorUpdateAnnotation, Qs as SchemaPropertyCopyPolicy, Qt as EditorReadDescriptor, R as DescendantOf, Ra as NodeTypeSelector, Rc as Span, Ri as LeafPosition, Rl as TransferVeto, Rn as EditorSchemaPropertyOverride, Ro as PropertyBooleanDescriptor, Rr as EditorTransactionNodesApi, Rs as SchemaElementPropertyOptions, Rt as EditorNextOptions, Ru as txLocate, S as CompatibleEditorCommand, Sa as NodeNodesOptions, Sc as SchemaValueFromPlugins, Si as ElementInterface, Sl as TransferInput, Sn as EditorSchemaDeclaration, So as PluginReadFactory, Sr as EditorTextChangeContext, Ss as SchemaContentRootInput, St as EditorEffectType, T as ContentSlice$1, Ta as NodeRemoveNodesOptions, Tc as SelectionAssociation, Ti as ElementOrTextIn, Tl as TransferLandingTarget, Tn as EditorSchemaDerivedDefinition, To as PluginReconfigureOptions, Tr as EditorToggleMarkOptions, Ts as SchemaContentRootStructure, Tt as EditorFragmentReadOptions, Tu as property, U as EditorBlockOptions, Ua as NodeWriteVetoInput, Ui as MarkKeysOf, Ul as TxOnlyMethod, Un as EditorSchemaRepairCode, Uo as PropertyNumberDescriptor, Ur as EditorTransactionSelectionApi, Us as SchemaElementTypes, Va as NodeWrapNodesOptions, Vc as StateFieldInitial, Vi as LocationApi, Vl as TxDeclaredMethod, Vn as EditorSchemaPropertyReadOptions, Vo as PropertyJsonDescriptor, Vr as EditorTransactionRemoved, Vs as SchemaElementStructure, Vt as EditorNodeChangeKind, W as EditorBlockToggleOptions, Wa as Path, Wi as MarksIn, Wl as Value, Wn as EditorSchemaSource, Wo as PropertyOptionsOf, Wr as EditorTransactionSliceApi, Ws as SchemaGroup, Wt as EditorNodeUnsetOptions, X as EditorCommandAroundHandler, Xa as PersistedSelection, Xc as Text, Xi as Node, Xl as createEditorView, Xn as EditorSchemaValidationError, Xo as PropertyValueKind, Xr as EditorUniqueHolder, Xs as SchemaPluginsOf, Xt as EditorReadAroundHandler, Y as EditorCommand, Ya as PersistedDocument, Yi as NamedRootKey, Yn as EditorSchemaValidationDiagnostic, Yo as PropertyValueDescriptor, Yr as EditorTransactionValueApi, Ys as SchemaPlugin, Yt as EditorRead, Z as EditorCommandContinuation, Za as PlacedTarget, Zc as TextApi, Zi as NodeAncestorsOptions, Zl as defineCommand$1, Zn as EditorSchemaValidationPropertyContext, Zo as PropertyValueOf, Zr as EditorUpdate, Zs as SchemaProperty, Zt as EditorReadContext, _ as BlockDuplicateOptions, _a as NodeMatch, _c as SchemaTextPropertyDefinition, _i as ElementApi, _l as TransferAdoptInput, _o as PluginMigrationContext, _r as EditorStateUniqueApi, _s as SchemaContentInput, _t as EditorDocumentValue, a as AncestorOf, aa as NodeEntryIn, ac as SchemaPropertyLandingPolicy, ai as EditorUpdateTagInput, al as TextInsertFragmentOptions, an as EditorReplaceChildrenOptions, ao as PluginCleanupContext, ar as EditorSnapshot, as as RangeMode, at as EditorCommitChangeKind, b as BooleanMarksOf, ba as NodeMoveNodesOptions, bc as SchemaTypesTarget, bi as ElementIdTarget, bl as TransferDiagnostic, bo as PluginPublicationError, br as EditorStateViewApi, bs as SchemaContentRoot, bt as EditorEffectHistoryReplayContext, c as AnchorDeletionPolicy, ca as NodeHasPropsOptions, cc as SchemaPropertySplitPolicy, cl as TextMutationMethods, cn as EditorRootOwner, co as PluginContribution, cr as EditorStateMarksApi, cs as ReadElement, ct as EditorCommitHandler, cu as editorCommands, da as NodeInsertSplitOptions, dc as SchemaRootNames, di as EditorValuePersistence, dl as TextSelection, dn as EditorSchemaContent, dr as EditorStateRangesApi, ds as ReadonlyAnchor, dt as EditorCoreStateView, ea as NodeChildrenOptions, ec as SchemaPropertyExclusiveGroup, ei as EditorUpdateMethods, el as TextEntry, en as EditorReadMethodRecord, eo as PluginApiFactory, er as EditorSelectionBlockOptions, es as RangeAnchorAssociation, et as EditorCommandHandler, eu as definePluginCompartment, f as AuthoredDocumentProjection, fa as NodeInterface, fc as SchemaTarget, fl as TextTarget, fn as EditorSchemaContentRoot, fr as EditorStateRuntimeApi, fs as RootKey, ft as EditorCoreUpdateMethods, g as AuthoredVeto, ga as NodeLiftNodesOptions, gc as SchemaTextProperty, gi as Element$1, gl as TransactionSpec, gr as EditorStateTextApi, gs as SchemaContentDefault, gt as EditorDocumentRecords, h as AuthoredTouch, ha as NodeLevelsOptions, hc as SchemaTextProperties, hi as EditorViewStateDependency, hl as TopLevelRuntimeRange, ho as PluginInput, hr as EditorStateSliceApi, hs as SchemaContent, i as AncestorIn, ia as NodeEntry, ic as SchemaPropertyKey, ii as EditorUpdateTag, il as TextIn, in as EditorReadResult, io as PluginCapabilities, ir as EditorSliceReadOptions, is as RangeInterface, it as EditorCommit, ja as NodeTarget, jc as SelectionSetPointOptions, ji as HistoryResult, jl as TransferRead, jn as EditorSchemaIdentity, jo as PluginUpdateFactoryContext, jr as EditorTransactionChangeContext, js as SchemaElementHandle, jt as EditorJsonObject, k as DecorationRefresh, ka as NodeSetNodesOptions, kc as SelectionMoveOptions, ki as HistoryRecordOptions, kl as TransferPayload, kn as EditorSchemaElementStructure, ko as PluginTypes, kr as EditorTransactionBlocksApi, ks as SchemaElementConstructionPropertiesFor, kt as EditorInstalledUpdateGroups, ku as screenReaderAnnouncementEffect, l as AnchorOptions, la as NodeIn, lc as SchemaPropertyTypeChangePolicy, li as EditorUpdateValueFromPlugin, ll as TextOf, ln as EditorRuntimeCarrier, lo as PluginContributionInput, lr as EditorStateNodesApi, ls as ReadNode, lt as EditorCommitListener, lu as editorReads, ma as NodeKey, mc as SchemaTextBlockOptions, mi as EditorViewOptions, ml as TextUnitAdjustment, mr as EditorStateSelectionApi, ms as SchemaBuiltInGroupName, mt as EditorDirectCommandDispatch, n as AncestorEntry, na as NodeDuplicateOptions, nc as SchemaPropertyHandleValue, ni as EditorUpdatePolicyFor, nl as TextEntryOf, nn as EditorReadMethods, no as PluginCandidateContext, nr as EditorSelectorDependency, ns as RangeDirection, nt as EditorCommandPlace, nu as defineStateField, o as Anchor, oa as NodeEntryOf, oc as SchemaPropertyReferences, oi as EditorUpdateTransaction, ol as TextInsertTextOptions, on as EditorReplaceNodeOptions, oo as PluginCompartment, or as EditorStateField, os as ReadAncestor, ot as EditorCommitChanged, p as AuthoredProjectionDiagnostic, pa as NodeIsNodeOptions, pc as SchemaText, pi as EditorView, pl as TextUnit, po as PluginDependencyReference, pr as EditorStateSchemaApi, ps as SchemaBlockContentOptions, pt as EditorCoreUpdateTransaction, pu as getPublicEditorRuntimeOwner, q as EditorCanTransaction, qa as PathInterface, qi as MoveUnit, qn as EditorSchemaUnknownPolicy, qo as PropertyStringDescriptor, qr as EditorTransactionTextApi, qs as SchemaKeyPrefix, qt as EditorParentOptions, r as AncestorEntryOf, ra as NodeElementsOptions, rc as SchemaPropertyIds, ri as EditorUpdateResult, rl as TextEqualsOptions, rn as EditorReadRegistration, ro as PluginCandidateEditor, rr as EditorSliceDeletionOptions, rs as RangeEdgesOptions, rt as EditorCommandResult, ru as defineUpdateAnnotation, s as AnchorAssociation, sa as NodeFindTextRangesOptions, sc as SchemaPropertyRole, sl as TextInterface, sn as EditorRootEntry, so as PluginCompartmentValue, sr as EditorStateFragmentApi, ss as ReadDescendant, st as EditorCommitContext, su as documentReplacement, t as Ancestor, ta as NodeDescendantsOptions, tc as SchemaPropertyHandle, ti as EditorUpdatePolicy, tl as TextEntryIn, tn as EditorReadMethodTree, to as PluginApiFactoryContext, tr as EditorSelectorDependencies, ts as RangeApi, tt as EditorCommandInput, tu as definePluginPoint, u as AnchorValue, ua as NodeInsertNodesOptions, uc as SchemaRecordSet, ui as EditorValueFromPlugins, ul as TextRemoveTextOptions, un as EditorRuntimeOwnerOf, uo as PluginDefinition, ur as EditorStatePointsApi, us as ReadValue, ut as EditorCommitRuntimeChangeKind, va as NodeMatchPredicate, vc as SchemaTextPropertyKeys, vi as ElementEntry, vl as TransferApi, vo as PluginPoint, vr as EditorStateValueApi, vs as SchemaContentOptions, vt as EditorEffect, wa as NodeProps, wc as SelectionApi, wi as ElementOf, wl as TransferLandingInput, wn as EditorSchemaDelta, wo as PluginReadMiddlewareFactory, wr as EditorToggleBlockOptions, ws as SchemaContentRootSlotsFor, wt as EditorElementEntry, x as ChildOf, xa as NodeMutationMethods, xc as SchemaValue, xi as ElementIn, xl as TransferEdge, xn as EditorSchemaContribution, xo as PluginReadContext, xs as SchemaContentRootContribution, xt as EditorEffectHistoryReplayResult, xu as locateAt, y as BooleanMarkKeysOf, ya as NodeMergeNodesOptions, yc as SchemaTextPropertyOptions, yi as ElementEntryOf, yl as TransferCheck, yr as EditorStateView, ys as SchemaContentPrefixSlot, yt as EditorEffectHistoryKind, yu as isEditor, z as DocumentChange, za as NodeUnsetNodesOptions, zc as StateFieldDescriptor, zi as LocalStateFieldDescriptor, zl as TransferVetoInput, zn as EditorSchemaPropertyOverrideInput, zo as PropertyBuilderApi, zr as EditorTransactionPluginsApi, zs as SchemaElementPropertyValue, zt as EditorNodeChangeContext, zu as txOnly } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
2
+ import { h as EditorApplicationSchema } from "./htmlTypes-3laowz-3.js";
3
+ import { $ as HtmlWrapperSpec, $a as InferRead, $i as BaseFormattingPlugin, $n as definePlugin, $r as SchemaPropertyDescriptorMap, $t as BlockFenceInputRuleConfig, Aa as HorizontalRuleRules, Ai as linkUrlValidation, An as AutoScrollApi, Ao as StructuralRuleState, Ar as DocxEncodedFragment, At as isUrl, Ba as EditOnlyConfig, Bi as CodeBlockElement, Bn as DebugApi, Br as DocxImportTableRow, Bt as BaseParagraphDefinition, C as ConfiguredBasePlugin, Ca as HeadingPluginState, Ci as ListLevels, Cn as MatchBlockStartOptions, Co as PluginSelectors, Ct as PluginTransaction, Da as BaseHorizontalRulePlugin, Di as LinkElement, Dn as TextSubstitutionMatch, Do as SelectionRules, Dr as DocxBorder, E as Decorate, Ea as BaseBlockquotePlugin, Ei as BaseLinkPlugin, En as TextSubstitutionInputRuleConfig, Eo as RuleDecision, Er as DocxBlockProps, Fa as BasePluginDefinition, Fn as DomApi, Fo as UnknownObject, Fr as DocxImportListInfo, Ft as getFragmentProp, Ga as InferDependencies, Gi as HighlightResult, Gn as EditorError, Gr as DocxNodeMappingInput, Gt as createBlockFenceInputRule, H as TransformOptions, Ha as GetInjectNodePropsReturnType, Hi as CodeHighlightLowlight, Hn as DebugErrorType, Hr as DocxMarkDecodeContext, Ht as InputRuleVeto, Ii as CodeBlockRules, In as DomPluginState, Io as Nullable, Ir as DocxImportListLevel, It as IS_APPLE, J as HtmlElementPatch, Ja as InferOwnApi, Ji as BaseFontColorPlugin, Jn as TransferPlugin, Jr as DocxRunMarks, Jt as matchBlockStart, K as HtmlAttributes, Ka as InferEnabled, Ki as Alignment, Kn as LogLevel, Kr as DocxPropertyDecodeContext, Kt as createMarkInputRule, L as PartialBasePlugin, La as BreakRules, Li as BaseCodeBlockPlugin, Ln as DomPluginUpdate, Lr as DocxImportNode, Mi as IndentChangeOptions, Mn as AutoScrollChangesMap, Mr as DocxImportBlock, Mt as getInjectMatch, Ni as IndentDefinition, Nn as AutoScrollOptions, Nr as DocxImportBlockProps, Nt as FragmentPropMode, O as EditorShortcut, Oa as BlockquoteRules, Oi as LinkRules, On as TextSubstitutionPattern, Oo as StructuralRuleContext, Or as DocxDecodeContext, Ot as AffinityDefinition, Pa as BaseInjectProps, Pi as IndentPluginState, Pn as AutoScrollUpdate, Pr as DocxImportInline, Pt as GetFragmentPropOptions, Q as HtmlPrepareDiagnosticInput, Qi as BaseTextAlignPlugin, Qn as nanoid, Qr as PluginFormatNode, Qt as BaseInputRule, R as PluginShortcutInput, Ra as DefinitionOf, Ri as BaseCodeHighlightPlugin, Rn as ScrollIntoViewTarget, Rr as DocxImportNodeKind, Sa as HeadingLevel, Si as ListLevel, Sn as MatchBlockFenceOptions, So as PluginSelectorReturn, Sr as ElementContentRootSlot, St as PluginState, T as DeclaredPluginShortcutInput, Ta as ToggleHeadingOptions, Tn as SelectionInputRuleContext, Tr as DocxBlock, Ua as InferApi, Ui as CodeHighlightPluginState, Un as DebugPlugin, Ur as DocxMarkEncodeContext, Ut as inputRuleVeto, Va as GetInjectNodePropsOptions, Vi as CodeHighlightDefinition, Vn as DebugDefinition, Vr as DocxInline, Vt as BaseParagraphPlugin, Wa as InferConflicts, Wi as HighlightNode, Wn as DebugPluginState, Wr as DocxNodeMapping, Wt as defineInputRule, X as HtmlMatcher, Xa as InferOwnUpdate, Xi as BaseFontSizePlugin, Xn as HistoryPlugin, Xr as DocxTableRow, Xt as HtmlPlugin, Y as HtmlMatchValue, Ya as InferOwnRead, Yi as BaseFontFamilyPlugin, Yn as HistoryDefinition, Yr as DocxTableCell, Yt as matchDelimitedInline, Z as HtmlNodeSpec, Za as InferPluginStoreState, Zi as BaseLineHeightPlugin, Zn as HistoryPluginState, Zr as ElementWith, _ as BasePluginExtendInput, _a as ScriptRules, _i as ListStyle, _n as InsertTextInputRule, _o as PluginSchemaMark, _r as MarkdownNodeMapping, a as PLUGINS, aa as BaseCodePlugin, ai as PluginFormatRegistry, an as InputRuleEditor, b as BasePluginOverride, ba as UnderlineRules, bi as OrderedListRules, bn as MarkInputRuleConfig, bo as PluginSelectorArgs, br as MarkdownTagAttributeView, ca as BaseKbdPlugin, ci as PlainTextDocumentOptions, cn as InputRulesConfig, co as PluginBaseContext, cr as PlainTextEncodeContext, ct as BlockInsertOptions, da as BaseUnderlinePlugin, di as serializePlainText, dn as InsertBreakInputRuleReadContext, dr as MarkdownDecodeContext, ea as CapturedFormat, ei as SchemaPropertySource, en as BlockFenceInputRuleMatch, eo as InferSelectors, et as CreateEditorOptions, fa as BoldRules, fi as BaseListPlugin, fn as InsertDataFollowUpContext, fo as PluginReference, fr as MarkdownEncodeContext, g as BasePluginDefinitionInput, ga as MarkComboRules, gi as ListSetOptions, gn as InsertDataInputRuleReadContext, go as PluginSchemaElement, gr as MarkdownNodeKind, h as BasePluginContext, ha as ItalicRules, hi as ListElement, hn as InsertDataInputRuleContext, ho as PluginSchemaDeclaration, hr as MarkdownMarks, i as SingleBlockPlugin, ia as BaseBoldPlugin, ii as PluginFormatModelView, in as InputRule, io as NodeComponent, ji as BaseIndentPlugin, jn as AutoScrollChangeKind, jo as WithAnyName, jr as DocxFormatDiagnosticInput, jt as isDefined, k as InjectNodeProps, ka as HorizontalRuleMarkdownVariant, ki as getLinkHref, kn as TransformInputRuleContext, ko as StructuralRuleEditor, kr as DocxEncodeContext, kt as AffinityPlugin, la as BaseScriptPlugin, li as PlainTextEditorOptions, ln as InsertBreakInputRule, lr as PlainTextNodeMapping, lt as BlockUpsertOptions, m as BasePluginConfiguration, ma as HighlightRules, mi as ListDefinition, mn as InsertDataInputRule, mo as PluginSchemaContext, mr as MarkdownMarkWrapper, n as TrailingBlockPluginState, na as FormattingContribution, ni as HtmlMappingDiagnosticInput, nn as DefinedInsertDataFollowUpInputRule, no as InferUpdate, o as Editor, oa as BaseHighlightPlugin, oi as PluginFormatSchemaView, on as InputRuleInsertTextOptions, ot as createEditor, p as BasePlugin, pa as CodeRules, pi as BulletedListRules, pn as InsertDataFollowUpInputRule, po as PluginSchema, pr as MarkdownMarkWrapContext, q as HtmlContentToken, qa as InferName, qi as BaseFontBackgroundColorPlugin, qn as TransferDefinition, qr as DocxPropertyEncodeContext, qt as createTextSubstitutionInputRule, r as SingleLinePlugin, ra as formatting, ri as PluginFormatContext, rn as DelimitedInlineInputRuleMatch, ro as MergeRules, s as EditorReference, sa as BaseItalicPlugin, si as PlainTextDiagnostic, sn as InputRuleTarget, so as NormalizeRules, st as BasePluginInput, t as TrailingBlockPlugin, ta as FormattingBlockEntry, ti as TextWith, tn as BlockStartInputRuleMatch, to as InferTargetPlugins, ua as BaseStrikethroughPlugin, ui as PlainTextSerializeResult, un as InsertBreakInputRuleContext, uo as PluginDependency, ur as PlainTextNodeMappingInput, v as BasePluginImplementationContext, va as ScriptValue, vi as ListToggleOptions, vn as InsertTextInputRuleContext, vo as PluginSchemaReferences, vr as MarkdownNodeMappingInput, vt as NodeInsertOptions, wa as HeadingRules, wn as MatchDelimitedInlineOptions, wo as PluginStore, wr as HandlerReturnType, wt as PluginUpdate, x as BasePluginPortal, xa as BaseHeadingPlugin, xi as TaskListRules, xn as MarkInputRuleMatch, xo as PluginSelectorMethods, xr as MarkdownTagNode, xt as PluginReadState, y as BasePluginOn, ya as StrikethroughRules, yi as ListType, yn as InsertTextInputRuleReadContext, yo as PluginSelector, yr as MarkdownRefusal, za as DeleteRules, zi as CodeBlockDefinition, zn as ScrollMode, zr as DocxImportTableCell } from "./core-By92GWYW.js";
4
4
  export { AffinityDefinition, AffinityPlugin, Alignment, Ancestor, AncestorEntry, AncestorEntryOf, AncestorIn, AncestorOf, type Anchor, type AnchorAssociation, type AnchorDeletionPolicy, type AnchorOptions, type AnchorValue, type AuthoredDocumentProjection, type AuthoredProjectionDiagnostic, type AuthoredTouch, type AuthoredVeto, type AutoScrollApi, type AutoScrollChangeKind, type AutoScrollChangesMap, type AutoScrollOptions, type AutoScrollUpdate, BaseBlockquotePlugin, BaseBoldPlugin, BaseCodeBlockPlugin, BaseCodeHighlightPlugin, BaseCodePlugin, BaseFontBackgroundColorPlugin, BaseFontColorPlugin, BaseFontFamilyPlugin, BaseFontSizePlugin, BaseFormattingPlugin, BaseHeadingPlugin, BaseHighlightPlugin, BaseHorizontalRulePlugin, BaseIndentPlugin, type BaseInjectProps, BaseInputRule, BaseItalicPlugin, BaseKbdPlugin, BaseLineHeightPlugin, BaseLinkPlugin, BaseListPlugin, BaseParagraphDefinition, BaseParagraphPlugin, type BasePlugin, type BasePlugin as Plugin, type BasePluginConfiguration, type BasePluginContext, type BasePluginDefinition, type BasePluginDefinitionInput, type BasePluginDefinitionInput as PluginDefinitionInput, type BasePluginExtendInput, type BasePluginImplementationContext, type BasePluginInput, type BasePluginOn, type BasePluginOverride, type BasePluginPortal, type BasePluginPortal as PluginPortal, BaseScriptPlugin, BaseStrikethroughPlugin, BaseTextAlignPlugin, BaseUnderlinePlugin, type BlockDuplicateOptions, BlockFenceInputRuleConfig, BlockFenceInputRuleMatch, type BlockInsertOptions, BlockStartInputRuleMatch, type BlockUpsertOptions, BlockquoteRules, BoldRules, BooleanMarkKeysOf, BooleanMarksOf, type BreakRules, BulletedListRules, CapturedFormat, ChildOf, CodeBlockDefinition, CodeBlockElement, CodeBlockRules, CodeHighlightDefinition, CodeHighlightLowlight, CodeHighlightPluginState, CodeRules, type CompatibleEditorCommand, type ConfiguredBasePlugin, ContentSlice$1 as ContentSlice, type CreateEditorOptions, DebugApi, DebugDefinition, DebugErrorType, DebugPlugin, DebugPluginState, type DebugValueScrubber, type DeclaredPluginShortcutInput, type Decorate, type Decoration, type DecorationAttributes, type DecorationRefresh, type DecorationSource, DefinedInsertDataFollowUpInputRule, type DefinitionOf, type DeleteRules, DelimitedInlineInputRuleMatch, type DerivedEditorSchemaIdentity, Descendant, DescendantEntry, DescendantEntryIn, DescendantEntryOf, DescendantIn, DescendantOf, DocumentChange, type DocxBlock, type DocxBlockProps, type DocxBorder, type DocxDecodeContext, type DocxEncodeContext, type DocxEncodedFragment, type DocxFormatDiagnosticInput, type DocxImportBlock, type DocxImportBlockProps, type DocxImportInline, type DocxImportListInfo, type DocxImportListLevel, type DocxImportNode, type DocxImportNodeKind, type DocxImportTableCell, type DocxImportTableRow, type DocxInline, type DocxMarkDecodeContext, type DocxMarkEncodeContext, type DocxNodeMapping, type DocxNodeMappingInput, type DocxPropertyDecodeContext, type DocxPropertyEncodeContext, type DocxRunMarks, type DocxTableCell, type DocxTableRow, type DomApi, type DomPluginState, type DomPluginUpdate, type EditOnlyConfig, type Editor, type EditorAboveOptions, type EditorApplicationSchema, type EditorBlockOptions, type EditorBlockToggleOptions, type EditorBreakExitOptions, type EditorCan, type EditorCanTransaction, type EditorCanonicalUpdateTag, type EditorCommand, type EditorCommandAroundHandler, type EditorCommandContinuation, type EditorCommandDescriptor, type EditorCommandDispatch, type EditorCommandHandler, type EditorCommandInput, type EditorCommandPlace, type EditorCommandResult, type EditorCommit, type EditorCommitChangeKind, type EditorCommitChanged, type EditorCommitContext, type EditorCommitHandler, type EditorCommitListener, type EditorCommitRuntimeChangeKind, type EditorCoreStateView, type EditorCoreUpdateMethods, type EditorCoreUpdateTransaction, type EditorDirectCommandDispatch, type EditorDocumentRecords, type EditorDocumentValue, type EditorEffect, type EditorEffectHistoryKind, type EditorEffectHistoryReplayContext, type EditorEffectHistoryReplayResult, type EditorEffectType, type EditorElementBehavior, type EditorElementEntry, EditorError, type EditorFragmentReadOptions, type EditorInstalledApiGroups, type EditorInstalledReadGroups, type EditorInstalledUpdateGroups, type EditorIsEditorOptions, type EditorJsonObject, type EditorJsonValue, type EditorLevelsOptions, type EditorLifecycleError, type EditorLifecycleErrorSink, type EditorMarks, type EditorMarksOf, type EditorNextOptions, type EditorNodeChangeContext, type EditorNodeChangeHandler, type EditorNodeChangeKind, type EditorNodeGetOptions, type EditorNodeUnsetOptions, type EditorNodesOptions, type EditorNodesReadOptions, type EditorParentOptions, type EditorPreviousOptions, type EditorRead, type EditorReadAroundHandler, type EditorReadContext, type EditorReadDescriptor, type EditorReadInput, type EditorReadMethodRecord, type EditorReadMethodTree, type EditorReadMethods, type EditorReadRegistration, type EditorReadResult, type EditorReference, type EditorReplaceChildrenOptions, type EditorReplaceNodeOptions, type EditorRootEntry, type EditorRootOwner, type EditorRuntimeCarrier, type EditorRuntimeOwnerOf, type EditorSchemaContent, type EditorSchemaContentRoot, type EditorSchemaContribution, type EditorSchemaDeclaration, type EditorSchemaDefinition, type EditorSchemaDelta, type EditorSchemaDerivedDefinition, type EditorSchemaElement, type EditorSchemaElementOverride, type EditorSchemaElementOverrideInput, type EditorSchemaElementStructure, type EditorSchemaGetProperty, type EditorSchemaIdentity, type EditorSchemaNamedDefinition, type EditorSchemaOverride, type EditorSchemaOverrideInput, type EditorSchemaPlugin, type EditorSchemaProperty, type EditorSchemaPropertyOverride, type EditorSchemaPropertyOverrideInput, type EditorSchemaPropertyQuery, type EditorSchemaPropertyReadOptions, type EditorSchemaReadProperty, type EditorSchemaRepairCode, type EditorSchemaSource, type EditorSchemaStructureProperty, type EditorSchemaUnknownPolicy, type EditorSchemaValidationCode, type EditorSchemaValidationDiagnostic, EditorSchemaValidationError, type EditorSchemaValidationPropertyContext, type EditorSchemaVocabulary, EditorSelection, type EditorSelectionBlockOptions, type EditorSelectorDependencies, type EditorSelectorDependency, type EditorShortcut, type EditorSliceDeletionOptions, type EditorSliceReadOptions, type EditorSnapshot, type EditorStateField, type EditorStateFragmentApi, type EditorStateMarksApi, type EditorStateNodesApi, type EditorStatePointsApi, type EditorStateRangesApi, type EditorStateRuntimeApi, type EditorStateSchemaApi, type EditorStateSelectionApi, type EditorStateSliceApi, type EditorStateTextApi, type EditorStateUniqueApi, type EditorStateValueApi, type EditorStateView, type EditorStateViewApi, type EditorTextChangeContext, type EditorTextChangeHandler, type EditorToggleBlockOptions, type EditorToggleMarkOptions, type EditorTransactionAnchor, type EditorTransactionAnchorApi, type EditorTransactionAnnotationsApi, type EditorTransactionBlocksApi, type EditorTransactionBreakApi, type EditorTransactionChangeContext, type EditorTransactionChangeHandler, type EditorTransactionChanged, type EditorTransactionChangesApi, type EditorTransactionDocumentChangeKind, type EditorTransactionEffectsApi, type EditorTransactionMarksApi, type EditorTransactionNodesApi, type EditorTransactionPluginsApi, type EditorTransactionRecordsApi, type EditorTransactionRemoved, type EditorTransactionRootsApi, type EditorTransactionSelectionApi, type EditorTransactionSliceApi, type EditorTransactionSpecBuilder, type EditorTransactionTagsApi, type EditorTransactionTextApi, type EditorTransactionTopLevelRange, type EditorTransactionValueApi, type EditorUniqueHolder, type EditorUpdate, type EditorUpdateAnnotation, type EditorUpdateContext, type EditorUpdateMethods, type EditorUpdatePolicy, type EditorUpdatePolicyFor, type EditorUpdateResult, type EditorUpdateTag, type EditorUpdateTagInput, type EditorUpdateTransaction, type EditorUpdateValueFromPlugin, type EditorValueFromPlugins, type EditorValuePersistence, type EditorView, type EditorViewOptions, type EditorViewStateDependency, Element$1 as Element, ElementApi, type ElementContentRootSlot, ElementEntry, ElementEntryOf, type ElementIdTarget, ElementIn, ElementInterface, ElementIsElementOptions, ElementOf, ElementOrTextIn, ElementOrTextOf, type ElementWith, FormattingBlockEntry, FormattingContribution, FragmentPropMode, GetFragmentPropOptions, type GetInjectNodePropsOptions, type GetInjectNodePropsReturnType, type HandlerReturnType, HeadingLevel, HeadingPluginState, HeadingRules, HighlightNode, HighlightResult, HighlightRules, type HistoryApi, HistoryDefinition, type HistoryOutcome, HistoryPlugin, HistoryPluginState, type HistoryRecordOptions, type HistoryRecordResult, type HistoryResult, type HistorySettlement, HorizontalRuleMarkdownVariant, HorizontalRuleRules, type HtmlAttributes, type HtmlContentToken, type HtmlElementPatch, type HtmlMappingDiagnosticInput, type HtmlMatchValue, type HtmlMatcher, type HtmlNodeSpec, HtmlPlugin, type HtmlPrepareDiagnosticInput, type HtmlWrapperSpec, IS_APPLE, IndentChangeOptions, IndentDefinition, IndentPluginState, type InferApi, type InferConflicts, type InferDependencies, type InferEnabled, type InferName, type InferOwnApi, type InferOwnRead, type InferOwnUpdate, type InferPluginStoreState, type InferRead, type InferSelectors, type InferTargetPlugins, type InferUpdate, type InitialValue, type InjectNodeProps, InputRule, InputRuleEditor, InputRuleInsertTextOptions, InputRuleTarget, InputRuleVeto, InputRulesConfig, InsertBreakInputRule, InsertBreakInputRuleContext, InsertBreakInputRuleReadContext, InsertDataFollowUpContext, InsertDataFollowUpInputRule, InsertDataInputRule, InsertDataInputRuleContext, InsertDataInputRuleReadContext, InsertTextInputRule, InsertTextInputRuleContext, InsertTextInputRuleReadContext, ItalicRules, type JsonEditorValue, type JsonNode, type LeafEdge, LeafPosition, LinkElement, LinkRules, ListDefinition, ListElement, type ListLevel, type ListLevels, ListSetOptions, ListStyle, ListToggleOptions, ListType, type LocalStateFieldDescriptor, Location, LocationApi, LocationInterface, LogLevel, MarkComboRules, MarkInputRuleConfig, MarkInputRuleMatch, MarkKeysOf, type MarkdownDecodeContext, type MarkdownEncodeContext, type MarkdownMarkWrapContext, type MarkdownMarkWrapper, type MarkdownMarks, type MarkdownNodeKind, type MarkdownNodeMapping, type MarkdownNodeMappingInput, type MarkdownRefusal, type MarkdownTagAttributeView, type MarkdownTagNode, MarksIn, MarksOf, MatchBlockFenceOptions, MatchBlockStartOptions, MatchDelimitedInlineOptions, type MaximizeMode, type MergeRules, type MoveUnit, type NamedEditorSchemaIdentity, type NamedRootKey, Node, NodeAncestorsOptions, NodeApi, NodeChildEntry, NodeChildrenOptions, type NodeComponent, NodeDescendantsOptions, type NodeDuplicateOptions, NodeElementsOptions, NodeEntry, NodeEntryIn, NodeEntryOf, NodeFindTextRangesOptions, NodeHasPropsOptions, NodeIn, type NodeInsertNodesOptions, type NodeInsertOptions, type NodeInsertSplitOptions, NodeInterface, NodeIsNodeOptions, type NodeKey, NodeLevelsOptions, type NodeLiftNodesOptions, NodeMatch, NodeMatchPredicate, type NodeMergeNodesOptions, type NodeMoveNodesOptions, type NodeMutationMethods, NodeNodesOptions, NodeOf, NodeProps, type NodeRemoveNodesOptions, type NodeReplaceChildrenOptions, NodeSelection, NodeSelectionMode, type NodeSetNodesOptions, type NodeSplitNodesOptions, type NodeTarget, NodeTextRangeEntry, NodeTextRangeMatch, NodeTextRangeQuery, NodeTextRangeRoot, NodeTextRangeView, NodeTextsOptions, NodeTypeSelector, type NodeUnsetNodesOptions, type NodeUnwrapNodesOptions, type NodeWrapNodesOptions, type NodeWriteVeto, type NodeWriteVetoInput, type NormalizeRules, type Nullable, OrderedListRules, PLUGINS, type PartialBasePlugin, Path, PathAncestorsOptions, PathApi, PathInterface, PathLevelsOptions, type PersistedDocument, type PersistedSelection, type PlacedTarget, PlainTextDiagnostic, PlainTextDocumentOptions, PlainTextEditorOptions, type PlainTextEncodeContext, type PlainTextNodeMapping, type PlainTextNodeMappingInput, PlainTextSerializeResult, type PluginActivationContext, type PluginApiFactory, type PluginApiFactoryContext, type PluginBaseContext, type PluginCandidateContext, type PluginCandidateEditor, type PluginCapabilities, type PluginCleanupContext, type PluginCompartment, type PluginCompartmentValue, type PluginContribution, type PluginContributionInput, type PluginDefinition, type PluginDependency, type PluginDependencyReference, type PluginFormatContext, type PluginFormatModelView, type PluginFormatNode, type PluginFormatRegistry, type PluginFormatSchemaView, type PluginInput, type PluginMigrationContext, type PluginPoint, PluginPublicationError, type PluginReadContext, type PluginReadFactory, type PluginReadFactoryContext, type PluginReadMiddlewareFactory, type PluginReadState, type PluginReconfigureOptions, type PluginReference, type PluginSchema, type PluginSchemaContext, type PluginSchemaDeclaration, type PluginSchemaElement, type PluginSchemaMark, type PluginSchemaReferences, type PluginSelector, type PluginSelectorArgs, type PluginSelectorMethods, type PluginSelectorReturn, type PluginSelectors, type PluginShortcutInput, type PluginState, type PluginStore, type PluginTransaction, type PluginTypeProvider, type PluginTypes, type PluginUpdate, type PluginUpdateFactory, type PluginUpdateFactoryContext, type PluginsOf, Point, PointApi, PointEntry, PointInterface, type PropertyBooleanDescriptor, type PropertyBuilderApi, type PropertyEnumDescriptor, type PropertyJsonDescriptor, type PropertyJsonOptions, type PropertyNumberDescriptor, type PropertyOptionsOf, type PropertySetDescriptor, type PropertySetOptions, type PropertyStringDescriptor, type PropertyValidation, type PropertyValueDescriptor, type PropertyValueKind, type PropertyValueOf, type PropertyValueOptions, Range, type RangeAnchorAssociation, RangeApi, type RangeDirection, RangeEdgesOptions, RangeInterface, type RangeMode, ReadAncestor, ReadDescendant, ReadElement, ReadNode, type ReadValue, type ReadonlyAnchor, type RootKey, type RuleDecision, type SchemaBlockContentOptions, type SchemaBuiltInGroupName, type SchemaContent, type SchemaContentDefault, type SchemaContentInput, type SchemaContentOptions, type SchemaContentPrefixSlot, type SchemaContentRoot, type SchemaContentRootContribution, type SchemaContentRootInput, type SchemaContentRootOwnership, type SchemaContentRootSlotsFor, type SchemaContentRootStructure, type SchemaContentRule, type SchemaDescendant, type SchemaElement, type SchemaElementConstructionPropertiesFor, type SchemaElementFor, type SchemaElementHandle, type SchemaElementInput, type SchemaElementProperties, type SchemaElementPropertiesFor, type SchemaElementProperty, type SchemaElementPropertyDefinition, type SchemaElementPropertyKeys, type SchemaElementPropertyOptions, type SchemaElementPropertyValue, type SchemaElementSlicePolicy, type SchemaElementStructure, type SchemaElementTarget, type SchemaElementTypes, type SchemaGroup, type SchemaGroupNames, type SchemaGroupOptions, type SchemaKeyPrefix, type SchemaPlugin, type SchemaPluginsOf, type SchemaProperty, type SchemaPropertyCopyPolicy, type SchemaPropertyDefinition, type SchemaPropertyDescriptorMap, type SchemaPropertyExclusiveGroup, type SchemaPropertyHandle, type SchemaPropertyHandleValue, type SchemaPropertyIds, type SchemaPropertyKey, type SchemaPropertyLandingPolicy, type SchemaPropertyReferences, type SchemaPropertyRole, type SchemaPropertySource, type SchemaPropertySplitPolicy, type SchemaPropertyTypeChangePolicy, type SchemaRecordSet, type SchemaRootNames, type SchemaTarget, type SchemaText, type SchemaTextBlockOptions, type SchemaTextProperties, type SchemaTextProperty, type SchemaTextPropertyDefinition, type SchemaTextPropertyKeys, type SchemaTextPropertyOptions, type SchemaTypesTarget, type SchemaValue, type SchemaValueFromPlugins, ScriptRules, ScriptValue, type ScrollIntoViewTarget, type ScrollMode, Selection, SelectionApi, SelectionAssociation, type SelectionCollapseOptions, type SelectionEdge, SelectionInputRuleContext, type SelectionMode, type SelectionMoveOptions, type SelectionMutationMethods, type SelectionRules, type SelectionSetPointOptions, type SharedStateFieldDescriptor, SingleBlockPlugin, SingleLinePlugin, type SliceLanding, type SliceLandingInput, type SliceLandingTarget, type SnapshotIndex, type SnapshotInput, Span, type StateFieldDescriptor, type StateFieldHistoryPolicy, type StateFieldInitial, type StateFieldValueInput, StrikethroughRules, type StructuralRuleContext, type StructuralRuleEditor, type StructuralRuleState, TaskListRules, Text, TextApi, type TextDeleteOptions, type TextDirection, TextEntry, TextEntryIn, TextEntryOf, TextEqualsOptions, TextIn, type TextInsertFragmentOptions, type TextInsertTextOptions, TextInterface, type TextMutationMethods, TextOf, type TextRemoveTextOptions, TextSelection, TextSubstitutionInputRuleConfig, TextSubstitutionMatch, TextSubstitutionPattern, type TextTarget, type TextUnit, type TextUnitAdjustment, type TextWith, ToggleHeadingOptions, type TopLevelRuntimeRange, TrailingBlockPlugin, TrailingBlockPluginState, type TransactionSpec, type TransferAdoptInput, type TransferApi, type TransferCheck, type TransferDefinition, type TransferDiagnostic, type TransferEdge, type TransferInput, type TransferIntent, type TransferLandingInput, type TransferLandingTarget, type TransferOutcome, type TransferPatch, type TransferPatchProperties, type TransferPayload, TransferPlugin, type TransferRead, type TransferRefusalReason, type TransferRelation, type TransferSide, type TransferSideInput, type TransferSourceInput, type TransferTarget, type TransferVeto, type TransferVetoInput, type TransferWrap, TransformInputRuleContext, type TransformOptions, type TxDeclaredMethod, type TxMethodDeclarations, type TxOnlyMethod, UnderlineRules, type UnknownObject, type Value, type ValueOf, type WithAnyName, type WithNodeTarget, authoredVeto, createBlockFenceInputRule, createEditor, createEditorView, createMarkInputRule, createTextSubstitutionInputRule, defineCommand$1 as defineCommand, defineEditorSchema, defineEffect, defineInputRule, definePlugin, definePluginCompartment, definePluginPoint, defineStateField, defineUpdateAnnotation, documentReplacement, editorCommands, editorReads, formatting, getPublicEditorRuntimeOwner as getEditorRuntimeOwner, getFragmentProp, getInjectMatch, getLinkHref, inputRuleVeto, isDefined, isEditor, isUrl, linkUrlValidation, locateAt, matchBlockStart, matchDelimitedInline, nanoid, nodeWriteVeto, property, schema$1 as schema, screenReaderAnnouncementEffect, serializePlainText, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, target, transfer, transferVeto, txLocate, txOnly, txSelection };
@@ -1,11 +1,24 @@
1
1
  import { failInvariant } from "../failInvariant.js";
2
2
  import { getCompiledPlateModelBinding, getCompiledPlatePlugin, getPlateRuntime } from "./compilePlateModel.js";
3
3
  import { createPluginContext } from "../../lib/plugin/createPluginContext.internal.js";
4
+ import { isSafeStyleValue } from "../../lib/plugins/html/cssSafety.internal.js";
4
5
  import { matchesPluginInject } from "./matchesPluginInject.internal.js";
5
6
  import { isDefined } from "../../lib/utils/isDefined.js";
6
7
  //#region src/internal/plugin/pluginInjectNodeProps.ts
7
8
  const getNodeProp = (node, key) => key ? node[key] : void 0;
8
9
  const getNodePropClassValue = (value) => typeof value === "string" || typeof value === "number" ? String(value) : void 0;
10
+ const isSafeInlineStyleValue = (value) => typeof value === "string" && isSafeStyleValue(value) || typeof value === "number" && Number.isFinite(value);
11
+ const sanitizeInlineStyle = (style) => {
12
+ let changed = false;
13
+ const clean = {};
14
+ for (const [key, entry] of Object.entries(style)) {
15
+ if (entry === void 0) continue;
16
+ if (isSafeInlineStyleValue(entry)) clean[key] = entry;
17
+ else changed = true;
18
+ }
19
+ if (!changed) return style;
20
+ return Object.keys(clean).length > 0 ? clean : void 0;
21
+ };
9
22
  const getInjectNodeKey = (editor, { inject, name }) => inject.nodeProps?.nodeKey ?? getCompiledPlateModelBinding(editor, name)?.propertyKey ?? void 0;
10
23
  const getTextScopeKey = ({ inject }, nodeKey) => inject.nodeProps?.textScope === "nodeKey" && nodeKey !== "text" ? nodeKey : void 0;
11
24
  const getTextInjectionReach = (editor, plugin) => {
@@ -55,11 +68,26 @@ const pluginInjectNodeProps = (editor, plugin, nodeProps) => {
55
68
  let newProps = {};
56
69
  const nodeValueKey = getNodePropClassValue(nodeValue);
57
70
  if (element && nodeKey && nodeValueKey) newProps.className = `editor-${nodeKey}-${nodeValueKey}`;
58
- if (styleKey && isDefined(value)) newProps.style = { [styleKey]: value };
59
- if (typeof transformProps === "function") newProps = Reflect.apply(transformProps, void 0, [{
60
- ...transformOptions,
61
- props: newProps
62
- }]) ?? newProps;
71
+ if (styleKey && isSafeInlineStyleValue(value)) newProps.style = { [styleKey]: value };
72
+ if (typeof transformProps === "function") {
73
+ newProps = Reflect.apply(transformProps, void 0, [{
74
+ ...transformOptions,
75
+ props: newProps
76
+ }]) ?? newProps;
77
+ if ("style" in newProps && newProps.style !== void 0) if (typeof newProps.style === "object" && newProps.style !== null && !Array.isArray(newProps.style)) {
78
+ const sanitized = sanitizeInlineStyle(newProps.style);
79
+ if (sanitized !== newProps.style) {
80
+ const { style: _dropped, ...rest } = newProps;
81
+ newProps = sanitized ? {
82
+ ...rest,
83
+ style: sanitized
84
+ } : rest;
85
+ }
86
+ } else {
87
+ const { style: _dropped, ...rest } = newProps;
88
+ newProps = rest;
89
+ }
90
+ }
63
91
  return newProps;
64
92
  };
65
93
  //#endregion
@@ -131,5 +131,15 @@ const encodeUrlInput = (url) => {
131
131
  throw error;
132
132
  }
133
133
  };
134
+ /**
135
+ * Trims surrounding ASCII spaces and rejects empty or malformed raw URL input
136
+ * (control characters, backslashes, lone surrogates, `//`) before encoding
137
+ * safe internal spaces and non-ASCII characters.
138
+ */
139
+ const encodeSafeUrlInput = (url) => {
140
+ const trimmed = trimAsciiSpaces(url);
141
+ if (trimmed === "" || isMalformed(trimmed)) return void 0;
142
+ return encodeUrlInput(trimmed);
143
+ };
134
144
  //#endregion
135
- export { decideUrl, encodeUrlInput, isBareAutolinkLiteral, isScriptCapableUrl, isScriptUrl, isStoredUrl };
145
+ export { decideUrl, encodeSafeUrlInput, encodeUrlInput, isBareAutolinkLiteral, isScriptCapableUrl, isScriptUrl, isStoredUrl };
@@ -429,16 +429,18 @@ const projectFormatDocument = (document, projection, authored, schema) => {
429
429
  return projected;
430
430
  };
431
431
  /** @internal */
432
- const projectPlateFormatDocument = (editor, document, projection) => {
432
+ const projectPlateFormatDocument = (editor, document, projection, skipInitialAssert = false) => {
433
433
  const resolvedProjection = resolveFormatProjection(projection);
434
434
  const schema = editor.read.schema;
435
+ const project = () => {
436
+ const projected = projectFormatDocument(document, resolvedProjection, getEditorAuthoredDocumentCapability(editor), getCompiledEditorSchema(editor));
437
+ if (projected.document !== document) schema.assertDocument(projected.document);
438
+ return projected;
439
+ };
440
+ if (skipInitialAssert) return project();
435
441
  return readingCovered({
436
442
  cover: () => schema.assertDocument(document),
437
- read: () => {
438
- const projected = projectFormatDocument(document, resolvedProjection, getEditorAuthoredDocumentCapability(editor), getCompiledEditorSchema(editor));
439
- if (projected.document !== document) schema.assertDocument(projected.document);
440
- return projected;
441
- }
443
+ read: project
442
444
  });
443
445
  };
444
446
  /** @internal */