platejs 54.0.0-beta.7 → 54.0.0-beta.8

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 (218) hide show
  1. package/dist/{AIChatRequestContext-DVGOeWhQ.d.ts → AIChatRequestContext-PbXTTovP.d.ts} +4 -2
  2. package/dist/{BaseSuggestionPlugin-BRFMMyEo.d.ts → BaseSuggestionPlugin-Dg-cdX26.d.ts} +10 -4
  3. package/dist/{PlateStatic-DIwBAVqF.d.ts → PlateStatic-CggiBCuD.d.ts} +3 -3
  4. package/dist/ai/index.d.ts +40 -2
  5. package/dist/ai/index.js +2 -1
  6. package/dist/ai/lib/lockedContext.internal.js +105 -0
  7. package/dist/ai/lib/lockedContext.js +179 -0
  8. package/dist/ai/react/AIChatPlugin.js +498 -103
  9. package/dist/ai/react/CopilotPlugin.js +37 -6
  10. package/dist/ai/react/aiOutputLanding.internal.js +19 -4
  11. package/dist/ai/react/index.d.ts +42 -9
  12. package/dist/authored/index.d.ts +4 -4
  13. package/dist/authored/index.js +2 -2
  14. package/dist/code-block/codemirror/index.d.ts +1 -1
  15. package/dist/{combobox-CfCJYKT0.d.ts → combobox-CUUSZR07.d.ts} +2 -2
  16. package/dist/compiler/index.d.ts +2 -2
  17. package/dist/{core-Cqc_KzpG.d.ts → core-D8i_gkA6.d.ts} +173 -106
  18. package/dist/diff/index.d.ts +3 -30
  19. package/dist/docs/api/core/plate-plugin.md +10 -9
  20. package/dist/docs/api/core.md +10 -5
  21. package/dist/docs/api/document-change.md +17 -10
  22. package/dist/docs/api/react-hooks.md +11 -5
  23. package/dist/docs/authored-changes.md +9 -6
  24. package/dist/docs/board.md +5 -4
  25. package/dist/docs/bold.md +0 -2
  26. package/dist/docs/document-model.md +3 -3
  27. package/dist/docs/docx.md +44 -0
  28. package/dist/docs/editor-methods.md +3 -3
  29. package/dist/docs/examples/version-history.md +1 -1
  30. package/dist/docs/footnote.md +80 -28
  31. package/dist/docs/html.md +10 -5
  32. package/dist/docs/indent.md +7 -5
  33. package/dist/docs/ink.md +18 -20
  34. package/dist/docs/installation/node.md +1 -1
  35. package/dist/docs/list.md +23 -3
  36. package/dist/docs/llms.txt +4 -3
  37. package/dist/docs/lock.md +264 -0
  38. package/dist/docs/markdown.md +13 -96
  39. package/dist/docs/plugin-context.md +14 -10
  40. package/dist/docs/serializing.md +26 -3
  41. package/dist/docs/static.md +19 -5
  42. package/dist/docx/export/index.d.ts +3 -3
  43. package/dist/docx/export/lib/exportDocx.js +58 -12
  44. package/dist/docx/import/index.d.ts +4 -4
  45. package/dist/docx/paste/index.d.ts +4 -4
  46. package/dist/dom/index.d.ts +1 -1
  47. package/dist/excalidraw/index.d.ts +3 -3
  48. package/dist/excalidraw/react/index.d.ts +3 -3
  49. package/dist/facade.js +2 -2
  50. package/dist/features/basic-nodes/lib/BaseBlockPlugins.js +1 -1
  51. package/dist/features/basic-nodes/lib/BaseHeadingPlugins.js +27 -6
  52. package/dist/features/basic-nodes/lib/BaseMarkPlugins.js +64 -12
  53. package/dist/features/board/index.d.ts +1 -1
  54. package/dist/features/board/lib/boardTypes.internal.js +3 -0
  55. package/dist/features/callout/index.d.ts +3 -3
  56. package/dist/features/callout/lib/BaseCalloutPlugin.js +1 -4
  57. package/dist/features/code-block/lib/BaseCodeBlockPlugin.js +1 -2
  58. package/dist/features/combobox/index.d.ts +2 -2
  59. package/dist/features/combobox/lib/filterWords.js +7 -11
  60. package/dist/features/comments/index.d.ts +1 -1
  61. package/dist/features/date/index.d.ts +3 -3
  62. package/dist/features/details/index.d.ts +4 -3
  63. package/dist/features/details/lib/BaseDetailsPlugin.js +228 -122
  64. package/dist/features/field/index.d.ts +1 -1
  65. package/dist/features/field/lib/BaseFieldPlugin.js +18 -2
  66. package/dist/features/find/index.d.ts +3 -3
  67. package/dist/features/footnote/index.d.ts +1 -1
  68. package/dist/features/footnote/lib/BaseFootnotePlugin.js +9 -2
  69. package/dist/features/ink/index.d.ts +2 -2
  70. package/dist/features/ink/lib/BaseInkPlugin.js +118 -82
  71. package/dist/features/ink/lib/inkMatch.internal.js +79 -78
  72. package/dist/features/ink/lib/inkPlaces.internal.js +166 -535
  73. package/dist/features/layout/index.d.ts +1 -1
  74. package/dist/features/layout/lib/BaseColumnPlugin.js +37 -14
  75. package/dist/features/link/lib/BaseLinkPlugin.js +38 -3
  76. package/dist/features/lint/index.d.ts +3 -3
  77. package/dist/features/list/lib/BaseListPlugin.js +30 -11
  78. package/dist/features/list/lib/listFamily.internal.js +2 -2
  79. package/dist/features/list/lib/listHtml.internal.js +1 -0
  80. package/dist/features/lock/index.d.ts +2 -0
  81. package/dist/features/lock/index.js +2 -0
  82. package/dist/features/lock/lib/BaseLockPlugin.js +526 -0
  83. package/dist/features/media/index.d.ts +1 -1
  84. package/dist/features/mention/index.d.ts +5 -5
  85. package/dist/features/suggestion/index.d.ts +1 -1
  86. package/dist/features/table/index.d.ts +1 -1
  87. package/dist/features/toc/index.d.ts +1 -1
  88. package/dist/features/upload/index.d.ts +1 -1
  89. package/dist/features/upload/lib/BaseUploadPlugin.js +5 -4
  90. package/dist/history/index.d.ts +2 -2
  91. package/dist/html/index.d.ts +3 -3
  92. package/dist/html/server/index.d.ts +1 -1
  93. package/dist/html/server/index.js +2 -1
  94. package/dist/html/server/serverCssParser.internal.js +500 -0
  95. package/dist/html/server/serverCssStyle.internal.js +208 -0
  96. package/dist/{htmlTypes-i_FBCMf2.d.ts → htmlTypes-zTLU3aTb.d.ts} +9 -13
  97. package/dist/hyperscript/index.d.ts +1 -1
  98. package/dist/index-0YxPsHwd.d.ts +1 -0
  99. package/dist/{index-Bv13FX9o.d.ts → index-3CExu_fj.d.ts} +3 -3
  100. package/dist/{index-CTTjpWgb-Fdrn8NP4.d.ts → index-4PpawhYe-yelJvgk1.d.ts} +1 -1
  101. package/dist/{index-B4ZhSQdk.d.ts → index-BCYBYfGM.d.ts} +3 -3
  102. package/dist/{index-CJGkjkH6.d.ts → index-BODDOPEd.d.ts} +1 -1
  103. package/dist/{index-DNXr_SN-.d.ts → index-BPOa4Z5n.d.ts} +9 -3
  104. package/dist/{index-Cc2ajXAd.d.ts → index-BSBkt2bm.d.ts} +44 -48
  105. package/dist/{index-CLNem74G.d.ts → index-BeyI3RUg.d.ts} +42 -39
  106. package/dist/{index-CmISVYmz.d.ts → index-BisOdLXI.d.ts} +14 -49
  107. package/dist/{index-CVAHIQ3p.d.ts → index-Bt5YI_JN.d.ts} +4 -4
  108. package/dist/{index-CrJ9Km8W.d.ts → index-CD_Ym9WQ.d.ts} +2 -2
  109. package/dist/{index-KteL56rA.d.ts → index-CX_JaDRY.d.ts} +4 -3
  110. package/dist/{index-BI0NS7kx.d.ts → index-CfK4uv4I.d.ts} +3 -3
  111. package/dist/{index-By7BkzIN.d.ts → index-CfRUKYCM.d.ts} +2 -2
  112. package/dist/{index-OMa7dlcS.d.ts → index-Cil7kghY.d.ts} +5 -5
  113. package/dist/index-D11C0iLb.d.ts +97 -0
  114. package/dist/{index-CS4G_W_R.d.ts → index-DJW6AjJ6.d.ts} +1 -1
  115. package/dist/{comparison-types-CsmDG5r2-z1s4gX06.d.ts → index-DM-b6jEe-BqkdOlav.d.ts} +19 -57
  116. package/dist/{index-1PlYsibA.d.ts → index-DoZhM7nD.d.ts} +3 -3
  117. package/dist/{index-DfkFmApH.d.ts → index-DsNwo8dd.d.ts} +35 -14
  118. package/dist/{index-CxG1Atvg.d.ts → index-DuElD_q6.d.ts} +3 -3
  119. package/dist/{index-BWCC4DCP.d.ts → index-f3aV3Kt-.d.ts} +5 -5
  120. package/dist/{index-uVbqCpDa.d.ts → index-u_h6ow4e.d.ts} +3 -3
  121. package/dist/{index-1rcWTB-o.d.ts → index-yZDmK6ab.d.ts} +3 -3
  122. package/dist/index.d.ts +3 -3
  123. package/dist/internal/plugin/OverridePlugin.js +22 -3
  124. package/dist/internal/plugin/blockInsertion.js +4 -4
  125. package/dist/internal/plugin/collectPlateNodeMappings.js +11 -4
  126. package/dist/internal/plugin/compilePlainTextMappings.js +2 -0
  127. package/dist/internal/plugin/plateRuntime.js +7 -1
  128. package/dist/internal/plugin/resolvePlugin.js +4 -1
  129. package/dist/internal/plugin/resolvePlugins.js +5 -3
  130. package/dist/lib/plugins/html/HtmlPlugin.js +32 -13
  131. package/dist/lib/plugins/html/htmlAst.js +5 -3
  132. package/dist/lib/plugins/html/htmlDom.js +1 -10
  133. package/dist/markdown/index.d.ts +2 -2
  134. package/dist/markdown/index.js +1 -2
  135. package/dist/markdown/lib/MarkdownPlugin.js +5 -7
  136. package/dist/markdown/lib/deserializer/convertNodesDeserialize.js +27 -3
  137. package/dist/markdown/lib/internal/markdownConversion.js +308 -340
  138. package/dist/markdown/lib/internal/markdownIntrinsics.js +36 -71
  139. package/dist/markdown/lib/internal/markdownLine.js +2 -4
  140. package/dist/markdown/lib/internal/markdownMappings.js +21 -3
  141. package/dist/markdown/lib/internal/markdownSafety.js +101 -1
  142. package/dist/markdown/lib/internal/markdownTags.js +2 -26
  143. package/dist/markdown/lib/serializer/convertNodesSerialize.js +5 -3
  144. package/dist/markdown/lib/serializer/convertPhrasingSerialize.js +1 -10
  145. package/dist/math/index.d.ts +3 -3
  146. package/dist/math/react/index.d.ts +4 -4
  147. package/dist/migrations/documentMigrationSelection.internal.js +107 -2
  148. package/dist/migrations/documentMigrations.js +17 -112
  149. package/dist/migrations/index.d.ts +3 -3
  150. package/dist/migrations/migratePlateV54.js +41 -40
  151. package/dist/migrations/migratePlateV54Ast.internal.js +143 -55
  152. package/dist/migrations/migratePlateV54CodeBlocks.internal.js +24 -29
  153. package/dist/migrations/migratePlateV54Inputs.internal.js +39 -32
  154. package/dist/migrations/migratePlateV54Profile.internal.js +52 -22
  155. package/dist/migrations/migratePlateV54Stage.internal.js +127 -0
  156. package/dist/migrations/migratePlateV54Urls.internal.js +77 -57
  157. package/dist/pagination/index.d.ts +1 -1
  158. package/dist/pagination/react/index.d.ts +2 -2
  159. package/dist/react/components/NodeSelection.js +8 -1
  160. package/dist/react/components/Plate.js +198 -152
  161. package/dist/react/components/PlateView.js +1 -1
  162. package/dist/{static/internal/getPlainText.js → react/components/getPlainText.internal.js} +1 -4
  163. package/dist/react/components/plate-nodes.js +48 -40
  164. package/dist/{static/internal/writeStaticSelectionClipboardData.js → react/components/writeStaticSelectionClipboardData.internal.js} +3 -4
  165. package/dist/react/features/board/BoardShape.js +48 -22
  166. package/dist/react/features/board/boardConnect.internal.js +0 -9
  167. package/dist/react/features/board/boardKeys.internal.js +41 -12
  168. package/dist/react/features/board/boardPicking.internal.js +0 -17
  169. package/dist/react/features/board/boardResize.internal.js +13 -18
  170. package/dist/react/features/board/boardView.internal.js +37 -8
  171. package/dist/react/features/board/boardVoice.internal.js +17 -4
  172. package/dist/react/features/board/index.d.ts +13 -11
  173. package/dist/react/features/callout/index.d.ts +3 -3
  174. package/dist/react/features/combobox/comboboxOwner.internal.js +10 -4
  175. package/dist/react/features/combobox/index.d.ts +5 -5
  176. package/dist/react/features/comments/index.d.ts +5 -5
  177. package/dist/react/features/date/index.d.ts +4 -4
  178. package/dist/react/features/details/index.d.ts +5 -5
  179. package/dist/react/features/field/index.d.ts +6 -5
  180. package/dist/react/features/footnote/index.d.ts +7 -7
  181. package/dist/react/features/format-painter/index.d.ts +4 -4
  182. package/dist/react/features/ink/InkContent.js +28 -100
  183. package/dist/react/features/ink/InkPlugin.js +12 -23
  184. package/dist/react/features/ink/index.d.ts +29 -102
  185. package/dist/react/features/ink/index.js +1 -2
  186. package/dist/react/features/ink/inkCapture.internal.js +97 -61
  187. package/dist/react/features/ink/inkImages.internal.js +20 -5
  188. package/dist/react/features/ink/inkMeasure.internal.js +35 -22
  189. package/dist/react/features/ink/inkPlacement.internal.js +78 -203
  190. package/dist/react/features/ink/inkWatch.internal.js +1 -32
  191. package/dist/react/features/layout/index.d.ts +5 -5
  192. package/dist/react/features/lock/LockPlugin.js +66 -0
  193. package/dist/react/features/lock/index.d.ts +58 -0
  194. package/dist/react/features/lock/index.js +2 -0
  195. package/dist/react/features/media/index.d.ts +5 -5
  196. package/dist/react/features/mention/index.d.ts +6 -6
  197. package/dist/react/features/suggestion/index.d.ts +6 -6
  198. package/dist/react/features/table/index.d.ts +5 -5
  199. package/dist/react/features/toc/index.d.ts +2 -2
  200. package/dist/react/features/upload/index.d.ts +5 -5
  201. package/dist/react/index.d.ts +4 -4
  202. package/dist/react/utils/pipeRenderElement.internal.js +32 -30
  203. package/dist/react/virtualized.d.ts +2 -2
  204. package/dist/{source-Dcgqj5Mf.d.ts → source-B1rLozUs.d.ts} +3 -3
  205. package/dist/static/components/plite-nodes.js +1 -1
  206. package/dist/static/index.d.ts +8 -10
  207. package/dist/static/pluginRenderLeafStatic.internal.js +1 -2
  208. package/dist/tabbable/index.d.ts +1 -1
  209. package/dist/tabbable/react/index.d.ts +3 -3
  210. package/dist/testing/index.d.ts +2 -2
  211. package/dist/{tx-only-1FM45FSj-D40jacZv.d.ts → tx-only-D8lpB-sT-ZiAbZRMU.d.ts} +133 -59
  212. package/dist/yjs/index.d.ts +1 -1
  213. package/dist/yjs/react/index.d.ts +5 -5
  214. package/package.json +16 -3
  215. package/dist/features/ink/lib/inkGone.internal.js +0 -290
  216. package/dist/markdown/lib/RawHtmlPlugin.js +0 -26
  217. package/dist/markdown/lib/internal/markdownRawHtml.js +0 -353
  218. package/dist/react/features/ink/InkCopyView.js +0 -214
@@ -1,7 +1,7 @@
1
- import { $ as EditorBreakExitOptions, $s as SchemaElement, Aa as NodeKey, Bc as SchemaTextProperties, Bs as SchemaContent, Cl as StructuralPlainTextDiagnostic, Cn as EditorSchemaContract, Co as PluginDefinition, Cr as EditorStateSchemaApi, Cu as WithNodeTarget, Do as PluginDependencyReferenceFor, Ea as NodeInsertNodesOptions, Ec as SchemaPropertyHandle, Eo as PluginDependencyReference, F as DecorationAttributes, Fl as TextInsertTextOptions, Fn as EditorSchemaDerivedDefinition, Fo as PluginPortal, Fr as EditorToggleBlockOptions, Ga as NodeSetNodesOptions, Gc as SchemaTypesTarget, Gn as EditorSchemaPlugin, Gt as EditorLevelsOptions, H as Descendant, Hc as SchemaTextPropertyDefinition, Ho as PluginReference$1, Hr as EditorTransactionChangeContext, Ht as EditorInstalledUpdateGroups, I as DecorationRefresh, Ii as ElementOf, In as EditorSchemaElement, K as DescendantIn, Kn as EditorSchemaPluginProvider, Ko as PluginTypeProvider, Ks as SchemaContentRootContribution, Lc as SchemaTarget, Ls as RootKey, M as ContentSlice$1, Mi as ElementIdTarget, Mn as EditorSchemaDeclaration, Mo as PluginInstalledCapabilitiesOf, Na as NodeMatch, Nr as EditorTextChangeContext, Oi as Element, P as Decoration, Pa as NodeMatchPredicate, Pl as TextInsertFragmentOptions, R as DefinitionOf$1, Rc as SchemaText, Rs as SchemaBlockContentOptions, S as BaseText, Sc as SchemaProperty, St as EditorDirectUpdate, Ta as NodeIn, Tl as Text$1, To as PluginDependencyContractReference, Tt as EditorDocumentValue, Ua as NodeSelection, Va as NodeRemoveNodesOptions, Vc as SchemaTextProperty, Vl as TextTarget, Vs as SchemaContentDefault, Wc as SchemaTextPropertyOptions, Wt as EditorJsonValue, X as EditorAboveOptions, Xt as EditorNextOptions, Y as Editor$1, Yl as TransferApi, Z as EditorBlockOptions, Zo as PluginWitnessFor, Zs as SchemaContentRule, Zt as EditorNodeChangeContext, _i as EditorUpdateTransaction, ac as SchemaElementPropertiesFor, an as EditorParentOptions, as as PropertyBooleanDescriptor, b as BasePoint, ba as NodeEntry, bc as SchemaNodeTypeProvider, bi as EditorUpdateValueFromPlugin, bs as Range, cs as PropertyJsonDescriptor, cu as TransferRead, dc as SchemaElementShapeFor, di as EditorUpdateContext, do as PersistedDocumentInput, ds as PropertyOptionsOf, ea as LeafPosition, ec as SchemaElementConstructionPropertiesFor, en as EditorNodeGetOptions, eo as NodeTypeSelector, es as Point$1, fa as Node$1, fi as EditorUpdateMethods, fn as EditorReadMethodRecord, gs as PropertyValueDescriptor, hc as SchemaElementTypes, in as EditorNodesReadOptions, jn as EditorSchemaContribution, jr as EditorStateViewProvider, kc as SchemaPropertyKey, kr as EditorStateView, lr as EditorSelection, m as AuthoredProjectionDiagnostic, mn as EditorReadMethods, ms as PropertyStringDescriptor, mt as EditorCommitContext, nn as EditorNodeUnsetOptions, oc as SchemaElementProperty, on as EditorPreviousOptions, oo as Path, pi as EditorUpdatePolicy, pn as EditorReadMethodTree, po as Plugin, qa as NodeTarget, ql as TransactionSpec, qo as PluginTypeProviderOf, qt as EditorLifecycleErrorSink, ri as EditorTransactionSpecBuilder, rn as EditorNodesOptions, sa as MaximizeMode, sc as SchemaElementPropertyDefinition, ss as PropertyEnumDescriptor, su as TransferPlugin$1, ta as Location, ti as EditorTransactionSelectionApi, tn as EditorNodeTypeProvider, tr as EditorSchemaSourceProvider, ur as EditorSelectionBlockOptions, us as PropertyNumberDescriptor, v as BaseElement, vi as EditorUpdateTransactionOf, vs as PropertyValueOf, vt as EditorCoreStateView, vu as TxDeclaredMethod, w as BlockInsertOptions$1, wc as SchemaPropertyDefinition, wi as EditorValueTypeProvider, wo as PluginDefinitionInput, wr as EditorStateSelectionApi, xc as SchemaPluginsOf, xo as PluginContribution, xu as Value, yc as SchemaKeyPrefix, yi as EditorUpdateTransactionProvider, yo as PluginCapabilities, ys as PropertyValueOptions, yu as TxMethodDeclarations, za as NodeOf, zi as HistoryApi, zt as EditorGenericMethod } from "./tx-only-1FM45FSj-D40jacZv.js";
2
- import { a as HtmlEditorSerializeOptions, d as HtmlSerializeResult, f as HtmlSliceParseResult, h as EditorApplicationSchema, i as HtmlEditorParseOptions, r as HtmlDocumentParseResult, t as HtmlApi } from "./htmlTypes-i_FBCMf2.js";
3
- import { N as DataTransferEncodeContext, U as ScrollIntoViewOptions, V as HotkeySpec, i as DOMClipboardApi, j as DataTransferDecodeContext, r as DOMApi } from "./index-DNXr_SN-.js";
4
- import { c as HistoryStateApi, l as HistoryTxApi, o as HistoryPlugin$1 } from "./index-BWCC4DCP.js";
1
+ import { $ as EditorBreakExitOptions, $s as SchemaElement, Bc as SchemaTextProperties, Bs as SchemaContent, Cl as StructuralPlainTextDiagnostic, Cn as EditorSchemaContract, Co as PluginDefinition, Cr as EditorStateSchemaApi, Cu as WithNodeTarget, Do as PluginDependencyReferenceFor, Ea as NodeInsertNodesOptions, Ec as SchemaPropertyHandle, Eo as PluginDependencyReference, F as DecorationAttributes, Fl as TextInsertTextOptions, Fn as EditorSchemaDerivedDefinition, Fo as PluginPortal, Fr as EditorToggleBlockOptions, Ga as NodeSetNodesOptions, Gc as SchemaTypesTarget, Gn as EditorSchemaPlugin, Gt as EditorLevelsOptions, H as Descendant, Hc as SchemaTextPropertyDefinition, Ho as PluginReference$1, Hr as EditorTransactionChangeContext, Ht as EditorInstalledUpdateGroups, I as DecorationRefresh, Ii as ElementOf, In as EditorSchemaElement, K as DescendantIn, Kn as EditorSchemaPluginProvider, Ko as PluginTypeProvider, Ks as SchemaContentRootContribution, Lc as SchemaTarget, Ls as RootKey, M as ContentSlice$1, Mn as EditorSchemaDeclaration, Mo as PluginInstalledCapabilitiesOf, Na as NodeMatch, Nr as EditorTextChangeContext, Oi as Element$1, P as Decoration, Pa as NodeMatchPredicate, Pl as TextInsertFragmentOptions, R as DefinitionOf$1, Rc as SchemaText, Rs as SchemaBlockContentOptions, S as BaseText, Sc as SchemaProperty, St as EditorDirectUpdate, Ta as NodeIn, Tl as Text$1, To as PluginDependencyContractReference, Tt as EditorDocumentValue, Ua as NodeSelection, Va as NodeRemoveNodesOptions, Vc as SchemaTextProperty, Vl as TextTarget, Vs as SchemaContentDefault, Wc as SchemaTextPropertyOptions, Wt as EditorJsonValue, X as EditorAboveOptions, Xt as EditorNextOptions, Y as Editor$1, Yl as TransferApi, Z as EditorBlockOptions, Zo as PluginWitnessFor, Zs as SchemaContentRule, Zt as EditorNodeChangeContext, _i as EditorUpdateTransaction, ac as SchemaElementPropertiesFor, an as EditorParentOptions, as as PropertyBooleanDescriptor, b as BasePoint, ba as NodeEntry, bc as SchemaNodeTypeProvider, bi as EditorUpdateValueFromPlugin, bs as Range, cs as PropertyJsonDescriptor, cu as TransferRead, dc as SchemaElementShapeFor, di as EditorUpdateContext, do as PersistedDocumentInput, ds as PropertyOptionsOf, ea as LeafPosition, ec as SchemaElementConstructionPropertiesFor, en as EditorNodeGetOptions, eo as NodeTypeSelector, es as Point$1, fa as Node$1, fi as EditorUpdateMethods, fn as EditorReadMethodRecord, gs as PropertyValueDescriptor, hc as SchemaElementTypes, in as EditorNodesReadOptions, jn as EditorSchemaContribution, jr as EditorStateViewProvider, kc as SchemaPropertyKey, kr as EditorStateView, lr as EditorSelection, m as AuthoredProjectionDiagnostic, mn as EditorReadMethods, ms as PropertyStringDescriptor, mt as EditorCommitContext, nn as EditorNodeUnsetOptions, oc as SchemaElementProperty, on as EditorPreviousOptions, oo as Path, pi as EditorUpdatePolicy, pn as EditorReadMethodTree, po as Plugin, qa as NodeTarget, ql as TransactionSpec, qo as PluginTypeProviderOf, qt as EditorLifecycleErrorSink, ri as EditorTransactionSpecBuilder, rn as EditorNodesOptions, sa as MaximizeMode, sc as SchemaElementPropertyDefinition, ss as PropertyEnumDescriptor, su as TransferPlugin$1, ta as Location, ti as EditorTransactionSelectionApi, tn as EditorNodeTypeProvider, tr as EditorSchemaSourceProvider, ur as EditorSelectionBlockOptions, us as PropertyNumberDescriptor, v as BaseElement, vi as EditorUpdateTransactionOf, vs as PropertyValueOf, vt as EditorCoreStateView, vu as TxDeclaredMethod, w as BlockInsertOptions$1, wc as SchemaPropertyDefinition, wi as EditorValueTypeProvider, wo as PluginDefinitionInput, wr as EditorStateSelectionApi, xc as SchemaPluginsOf, xo as PluginContribution, xu as Value, yc as SchemaKeyPrefix, yi as EditorUpdateTransactionProvider, yo as PluginCapabilities, ys as PropertyValueOptions, yu as TxMethodDeclarations, za as NodeOf, zi as HistoryApi, zt as EditorGenericMethod } from "./tx-only-D8lpB-sT-ZiAbZRMU.js";
2
+ import { a as HtmlEditorSerializeOptions, d as HtmlSerializeResult, f as HtmlSliceParseResult, h as EditorApplicationSchema, i as HtmlEditorParseOptions, r as HtmlDocumentParseResult, t as HtmlApi } from "./htmlTypes-zTLU3aTb.js";
3
+ import { N as DataTransferEncodeContext, U as ScrollIntoViewOptions, V as HotkeySpec, i as DOMClipboardApi, j as DataTransferDecodeContext, r as DOMApi } from "./index-BPOa4Z5n.js";
4
+ import { c as HistoryStateApi, l as HistoryTxApi, o as HistoryPlugin$1 } from "./index-f3aV3Kt-.js";
5
5
  import { Draft } from "mutative";
6
6
  import { nanoid as nanoid$1 } from "nanoid";
7
7
  import "zustand/vanilla";
@@ -19,14 +19,14 @@ type GeneratedEditorSchema = Readonly<{
19
19
  }>>>;
20
20
  properties: Readonly<Record<string, SchemaPropertyHandle | undefined>>;
21
21
  }>;
22
- type GeneratedEditorTypes<V extends Value = Value, TElement extends Element = Element, TText extends Text$1 = Text$1, TSchema extends GeneratedEditorSchema = GeneratedEditorSchema, TMutations extends Readonly<Record<string, unknown>> = never> = Readonly<{
22
+ type GeneratedEditorTypes<V extends Value = Value, TElement extends Element$1 = Element$1, TText extends Text$1 = Text$1, TSchema extends GeneratedEditorSchema = GeneratedEditorSchema, TMutations extends Readonly<Record<string, unknown>> = never> = Readonly<{
23
23
  element: TElement;
24
24
  mutations: TMutations;
25
25
  schema: TSchema;
26
26
  text: TText;
27
27
  value: V;
28
28
  }>;
29
- type AnyGeneratedEditorTypes = GeneratedEditorTypes<Value, Element, Text$1, GeneratedEditorSchema, Readonly<Record<string, unknown>>>;
29
+ type AnyGeneratedEditorTypes = GeneratedEditorTypes<Value, Element$1, Text$1, GeneratedEditorSchema, Readonly<Record<string, unknown>>>;
30
30
  /** Type-only exact contract emitted by `plate generate`. */
31
31
  type GeneratedEditorTypeProvider<TTypes extends AnyGeneratedEditorTypes> = EditorNodeTypeProvider<() => TTypes['element'], () => TTypes['text']> & EditorValueTypeProvider<() => TTypes['value']> & Readonly<{
32
32
  [generatedEditorTypes]: () => TTypes;
@@ -150,7 +150,7 @@ type InferExactPluginSchemaContribution<C extends AnyBasePluginDefinition> = C e
150
150
  type InferPluginSchemaContribution<C extends AnyBasePluginDefinition> = [InferExactPluginSchemaContribution<C>] extends [never] ? EditorSchemaContribution : InferExactPluginSchemaContribution<C>;
151
151
  type InferPluginOwnSchemaContribution<C extends AnyBasePluginDefinition> = IsAny$3<C> extends true ? EditorSchemaContribution : string extends C['name'] ? EditorSchemaContribution : InferExactPluginSchemaContribution<C>;
152
152
  type PluginOwnSchemaSource<C extends AnyBasePluginDefinition> = EditorSchemaSourceProvider<() => InferPluginOwnSchemaContribution<C>>;
153
- type InferPluginOwnElement<C extends AnyBasePluginDefinition> = [InferPluginOwnSchemaContribution<C>] extends [never] ? never : Extract<SchemaElementShapeFor<PluginOwnSchemaSource<C>>, Element>;
153
+ type InferPluginOwnElement<C extends AnyBasePluginDefinition> = [InferPluginOwnSchemaContribution<C>] extends [never] ? never : Extract<SchemaElementShapeFor<PluginOwnSchemaSource<C>>, Element$1>;
154
154
  type InferPluginOwnText<C extends AnyBasePluginDefinition> = [InferPluginOwnSchemaContribution<C>] extends [never] ? never : Extract<SchemaText<PluginOwnSchemaSource<C>>, Text$1>;
155
155
  /** Exact descriptor-local node shapes, excluding installed dependencies. */
156
156
  type InferPluginNodeTypeProvider<C extends AnyBasePluginDefinition> = EditorNodeTypeProvider<() => InferPluginOwnElement<C>, () => InferPluginOwnText<C>>;
@@ -505,7 +505,7 @@ type StructuralRuleEditor = Omit<Editor$1, 'plugin'> & {
505
505
  };
506
506
  type StructuralRuleContext<C extends AnyBasePluginDefinition = BasePluginDefinition> = {
507
507
  editor: StructuralRuleEditor;
508
- node: Element;
508
+ node: Element$1;
509
509
  path: Path;
510
510
  plugin: PluginReference<C['name']>;
511
511
  } & PluginBaseContext<C>;
@@ -637,7 +637,7 @@ type GetInjectNodePropsOptions = {
637
637
  /** Existing className. */
638
638
  className?: string;
639
639
  /** Style value or className key. */
640
- element?: Element;
640
+ element?: Element$1;
641
641
  /** Current node path when the node is rendered with path context. */
642
642
  path?: Path;
643
643
  /** Existing style. */
@@ -804,7 +804,7 @@ type SchemaPropertySource = AnyBasePlugin | AnyBasePluginDefinition | SchemaProp
804
804
  * Element narrowed to schema properties contributed by one or more owners.
805
805
  * The second generic marks exact authored local IDs known to be present.
806
806
  */
807
- type ElementWith<TSource extends SchemaPropertySource, TRequired extends SchemaPropertyRequiredLocalId<SchemaPropertyEntriesOf<TSource, 'element'>> = never> = Element & SchemaPropertyShape<SchemaPropertyEntriesOf<TSource, 'element'>, TRequired>;
807
+ type ElementWith<TSource extends SchemaPropertySource, TRequired extends SchemaPropertyRequiredLocalId<SchemaPropertyEntriesOf<TSource, 'element'>> = never> = Element$1 & SchemaPropertyShape<SchemaPropertyEntriesOf<TSource, 'element'>, TRequired>;
808
808
  /**
809
809
  * Text leaf narrowed to schema properties contributed by one or more owners.
810
810
  * The second generic marks exact authored local IDs known to be present.
@@ -813,7 +813,7 @@ type TextWith<TSource extends SchemaPropertySource, TRequired extends SchemaProp
813
813
  type FormatContribution<D extends AnyBasePluginDefinition> = InferExactPluginSchemaContribution<D>;
814
814
  type FormatContributionSource<D extends AnyBasePluginDefinition> = EditorSchemaSourceProvider<() => FormatContribution<D>>;
815
815
  type FormatContributionElementType<D extends AnyBasePluginDefinition> = Extract<InferPluginDocumentType<D>, SchemaElementTypes<FormatContributionSource<D>>>;
816
- type FormatElementNode<D extends AnyBasePluginDefinition> = [FormatContributionElementType<D>] extends [never] ? never : Extract<SchemaElementShapeFor<FormatContributionSource<D>, FormatContributionElementType<D>>, Element>;
816
+ type FormatElementNode<D extends AnyBasePluginDefinition> = [FormatContributionElementType<D>] extends [never] ? never : Extract<SchemaElementShapeFor<FormatContributionSource<D>, FormatContributionElementType<D>>, Element$1>;
817
817
  type FormatPropertyEntries<D extends AnyBasePluginDefinition, TPlacement extends 'element' | 'text'> = Extract<InferPluginWritablePropertyEntries<D>, Readonly<{
818
818
  placement: TPlacement;
819
819
  }>>;
@@ -821,45 +821,70 @@ type FormatPropertyEntries<D extends AnyBasePluginDefinition, TPlacement extends
821
821
  type PluginFormatTextValue<D extends AnyBasePluginDefinition> = FormatPropertyEntries<D, 'text'> extends (infer TEntry) ? TEntry extends Readonly<{
822
822
  descriptor: infer TDescriptor extends PropertyValueDescriptor;
823
823
  }> ? PropertyValueOf<TDescriptor> : never : never;
824
+ /** Whether the format mapping target's own schema contributes an element. */
825
+ type PluginFormatHasElement<D extends AnyBasePluginDefinition> = [FormatElementNode<D>] extends [never] ? false : true;
826
+ /** Whether the format mapping target's own schema contributes a text property. */
827
+ type PluginFormatHasTextProperty<D extends AnyBasePluginDefinition> = [FormatPropertyEntries<D, 'text'>] extends [never] ? false : true;
828
+ /** Top-level element property keys the format mapping target's own schema contributes. */
829
+ type PluginFormatElementPropertyKey<D extends AnyBasePluginDefinition> = FormatPropertyEntries<D, 'element'> extends (infer TEntry) ? TEntry extends Readonly<{
830
+ key: infer TKey extends string;
831
+ }> ? TKey : never : never;
824
832
  /**
825
833
  * Whether the format mapping target contributes a mark (a text property)
826
834
  * rather than an element; `boolean` when the definition does not say.
827
835
  */
828
836
  type PluginFormatIsMark<D extends AnyBasePluginDefinition> = [FormatElementNode<D>] extends [never] ? [FormatPropertyEntries<D, 'text'>] extends [never] ? boolean : true : false;
829
837
  /** Element property keys the format mapping target's own schema contributes. */
830
- type PluginFormatOwnedPropertyKey<D extends AnyBasePluginDefinition> = Exclude<Extract<keyof FormatElementNode<D>, string>, 'children' | 'type'> | (FormatPropertyEntries<D, 'element'> extends (infer TEntry) ? TEntry extends Readonly<{
831
- key: infer TKey extends string;
832
- }> ? TKey : never : never);
838
+ type PluginFormatOwnedPropertyKey<D extends AnyBasePluginDefinition> = ([FormatElementNode<D>] extends [never] ? never : Exclude<Extract<keyof FormatElementNode<D>, string>, 'children' | 'type'>) | PluginFormatElementPropertyKey<D>;
833
839
  /** Node narrowed from the format mapping target's schema contribution. */
834
840
  type PluginFormatNode<D extends AnyBasePluginDefinition> = [FormatElementNode<D>] extends [never] ? [FormatPropertyEntries<D, 'text'>] extends [never] ? [FormatPropertyEntries<D, 'element'>] extends [never] ? Descendant : ElementWith<D> : [FormatPropertyEntries<D, 'element'>] extends [never] ? TextWith<D> : TextWith<D> | ElementWith<D> : FormatElementNode<D>;
835
- /**
836
- * How Word export writes an element Word has no form for: as one run of text.
837
- * The export reports what that drops once per plugin, as a `property-dropped`
838
- * warning that counts the elements.
839
- */
840
- type DocxNodeMapping<D extends AnyBasePluginDefinition> = Readonly<{
841
+ type IsUnion$1<T, TWhole = T> = T extends TWhole ? [TWhole] extends [T] ? false : true : never;
842
+ type DocxElementNodeMapping<D extends AnyBasePluginDefinition> = Readonly<{
841
843
  /**
842
- * What Word keeps and drops of each element, such as "Word keeps each field
843
- * answer and drops its name and settings." It is the warning's message.
844
+ * What Word keeps and drops of each element, such as "Word keeps each
845
+ * field answer and drops its name and settings." It is the warning's
846
+ * message.
844
847
  */
845
848
  dropped: string;
849
+ property?: never;
846
850
  /** The text Word export writes in place of `node`. */
847
851
  text: (context: Readonly<{
848
852
  node: PluginFormatNode<D>;
849
853
  }>) => string;
850
854
  }>;
855
+ type DocxPropertyNodeMapping<TKey extends string, TOptional extends boolean> = TOptional extends true ? Readonly<{
856
+ /** Warning message reported when an element property is omitted on export. */
857
+ dropped: string;
858
+ /** Optional element property key to scan (defaults to the plugin's primary property key). */
859
+ property?: TKey;
860
+ text?: never;
861
+ }> : Readonly<{
862
+ /** Warning message reported when an element property is omitted on export. */
863
+ dropped: string;
864
+ /** Element property key to scan when the plugin owns multiple properties without a primary key. */
865
+ property: TKey;
866
+ text?: never;
867
+ }>;
868
+ /**
869
+ * How Word export handles an element or element property Word has no form for.
870
+ * Element mappings provide `text` to write a fallback run; element-property
871
+ * mappings provide `dropped` (and `property` when the plugin owns multiple
872
+ * element properties without a primary key) to report a `property-dropped`
873
+ * warning.
874
+ */
875
+ type DocxNodeMapping<D extends AnyBasePluginDefinition> = string extends D['name'] ? DocxElementNodeMapping<D> | DocxPropertyNodeMapping<string, true> : PluginFormatHasElement<D> extends true ? DocxElementNodeMapping<D> : [PluginFormatElementPropertyKey<D>] extends [never] ? never : DocxPropertyNodeMapping<PluginFormatElementPropertyKey<D>, IsUnion$1<PluginFormatElementPropertyKey<D>> extends false ? true : D['name'] extends PluginFormatElementPropertyKey<D> ? true : false>;
851
876
  /** If true, the next handlers will be skipped. */
852
877
  type HandlerReturnType = boolean | void;
853
878
  /** The `childRoots` slot names of `N`, or any slot name when `N` declares none. */
854
- type ElementContentRootSlot<N extends Element> = N extends {
879
+ type ElementContentRootSlot<N extends Element$1> = N extends {
855
880
  childRoots: infer TRoots extends Readonly<Record<string, string>>;
856
881
  } ? Extract<keyof TRoots, string> : string;
857
- type RenderElementSlots<N extends Element = Element> = {
882
+ type RenderElementSlots<N extends Element$1 = Element$1> = {
858
883
  children: (options?: any) => any;
859
884
  contentBoundary: (props: any) => any;
860
885
  contentRoot: (slot: ElementContentRootSlot<N>, options?: any) => any;
861
886
  };
862
- type RenderElementProps<N extends Element = Element> = {
887
+ type RenderElementProps<N extends Element$1 = Element$1> = {
863
888
  attributes: {
864
889
  [key: string]: unknown;
865
890
  'data-editor-node': 'element';
@@ -893,7 +918,7 @@ type PluginFormatContext<C extends AnyBasePluginDefinition = BasePluginDefinitio
893
918
  type PluginFormatModelView<V extends Value = Value> = Readonly<{
894
919
  document: EditorDocumentValue<V>;
895
920
  node: DescendantIn<V>;
896
- parent: Extract<DescendantIn<V>, Element> | null;
921
+ parent: Extract<DescendantIn<V>, Element$1> | null;
897
922
  path: Path;
898
923
  previousSibling: DescendantIn<V> | null;
899
924
  root: RootKey;
@@ -1028,7 +1053,7 @@ type MarkdownEncodeContext<TNode extends Descendant = Descendant, D extends AnyB
1028
1053
  * The blocks of the content root that `slot` names on `node`, in stored
1029
1054
  * order. Serializing reports each document root no mapping read.
1030
1055
  */
1031
- contentRoot: (slot: ElementContentRootSlot<Extract<TNode, Element>>) => readonly Descendant[];
1056
+ contentRoot: (slot: ElementContentRootSlot<Extract<TNode, Element$1>>) => readonly Descendant[];
1032
1057
  encode: (nodes: readonly Descendant[]) => RootContent[];
1033
1058
  encodeBlocks: (nodes: readonly Descendant[]) => BlockContent[];
1034
1059
  encodeFlow: (nodes: readonly Descendant[]) => Array<BlockContent | DefinitionContent>;
@@ -1110,26 +1135,18 @@ type MarkdownMarkMappingBase<D extends AnyBasePluginDefinition, TSource extends
1110
1135
  priority?: never;
1111
1136
  /** The mark value this tag or node stands for; defaults to `true`. */
1112
1137
  value?: PluginFormatTextValue<D>;
1113
- /** Write the inline wrapper yourself; Markdown supplies its encoded children. */
1138
+ /** Write the inline wrapper yourself, return `undefined` to decline, or `refuse(message)`; Markdown supplies its encoded children. */
1114
1139
  wrap?: (context: MarkdownMarkWrapContext<D>) => MarkdownMarkWrapper | MarkdownRefusal | undefined;
1115
1140
  }>;
1116
- /**
1117
- * Element or mark fields, selected by the target's schema contribution: a
1118
- * plugin that contributes a text property maps a mark.
1119
- */
1120
- type MarkdownMappingBase<D extends AnyBasePluginDefinition, TSource extends Node> = PluginFormatIsMark<D> extends true ? MarkdownMarkMappingBase<D, TSource> & Readonly<{
1121
- style?: never;
1122
- }> : PluginFormatIsMark<D> extends false ? MarkdownElementMappingBase<D, TSource> & Readonly<{
1123
- attributes?: never;
1124
- }> : (MarkdownElementMappingBase<D, TSource> & Readonly<{
1125
- attributes?: never;
1126
- }>) | (MarkdownMarkMappingBase<D, TSource> & Readonly<{
1141
+ type MarkdownMarkContainerKind = 'delete' | 'emphasis' | 'inlineCode' | 'strong';
1142
+ type MarkdownMarkTagFields<D extends AnyBasePluginDefinition> = (Omit<MarkdownMarkMappingBase<D, MarkdownTagNode>, 'value'> & Readonly<{
1143
+ /** CSS property that carries the mark value, such as `color`. */
1144
+ style: string;
1145
+ value?: never;
1146
+ }>) | (MarkdownMarkMappingBase<D, MarkdownTagNode> & Readonly<{
1127
1147
  style?: never;
1128
1148
  }>);
1129
- type MarkdownTagMappingBase<D extends AnyBasePluginDefinition> = PluginFormatIsMark<D> extends true ? MarkdownMarkMappingBase<D, MarkdownTagNode> & Readonly<{
1130
- /** CSS property that carries the mark value, such as `color`. */
1131
- style?: string;
1132
- }> : PluginFormatIsMark<D> extends false ? MarkdownElementMappingBase<D, MarkdownTagNode> & Readonly<{
1149
+ type MarkdownTagMappingBase<D extends AnyBasePluginDefinition> = PluginFormatIsMark<D> extends true ? MarkdownMarkTagFields<D> : PluginFormatIsMark<D> extends false ? MarkdownElementMappingBase<D, MarkdownTagNode> & Readonly<{
1133
1150
  /**
1134
1151
  * Attribute names for this plugin's own properties when they
1135
1152
  * differ from the property key, such as `{ url: 'src' }`.
@@ -1137,20 +1154,50 @@ type MarkdownTagMappingBase<D extends AnyBasePluginDefinition> = PluginFormatIsM
1137
1154
  attributes?: Readonly<Partial<Record<PluginFormatOwnedPropertyKey<D>, string>>>;
1138
1155
  }> : (MarkdownElementMappingBase<D, MarkdownTagNode> & Readonly<{
1139
1156
  attributes?: Readonly<Partial<Record<PluginFormatOwnedPropertyKey<D>, string>>>;
1140
- }>) | (MarkdownMarkMappingBase<D, MarkdownTagNode> & Readonly<{
1141
- style?: string;
1142
- }>);
1143
- type EncodeOnlyMarkdownNodeMapping<D extends AnyBasePluginDefinition> = MarkdownMappingBase<D, never> & Readonly<{
1157
+ }>) | MarkdownMarkTagFields<D>;
1158
+ type EncodeOnlyElementMarkdownNodeMapping<D extends AnyBasePluginDefinition> = MarkdownElementMappingBase<D, never> & Readonly<{
1159
+ attributes?: never;
1160
+ decode?: never;
1161
+ encode: NonNullable<MarkdownElementMappingBase<D, never>['encode']>;
1162
+ nestedTags?: never;
1163
+ node?: never;
1164
+ tag?: never;
1165
+ }>;
1166
+ type EncodeOnlyMarkMarkdownNodeMapping<D extends AnyBasePluginDefinition> = MarkdownMarkMappingBase<D, never> & Readonly<{
1144
1167
  decode?: never;
1145
1168
  nestedTags?: never;
1146
1169
  node?: never;
1170
+ style?: never;
1147
1171
  tag?: never;
1172
+ wrap: NonNullable<MarkdownMarkMappingBase<D, never>['wrap']>;
1148
1173
  }>;
1149
- type NodeMarkdownNodeMapping<D extends AnyBasePluginDefinition> = { [TKind in MarkdownNodeKind]: MarkdownMappingBase<D, MarkdownNodeKinds[TKind]> & Readonly<{
1174
+ type EncodeOnlyMarkdownNodeMapping<D extends AnyBasePluginDefinition> = PluginFormatIsMark<D> extends true ? EncodeOnlyMarkMarkdownNodeMapping<D> : PluginFormatIsMark<D> extends false ? EncodeOnlyElementMarkdownNodeMapping<D> : EncodeOnlyElementMarkdownNodeMapping<D> | EncodeOnlyMarkMarkdownNodeMapping<D>;
1175
+ type ElementNodeMarkdownNodeMapping<D extends AnyBasePluginDefinition> = { [TKind in MarkdownNodeKind]: (MarkdownElementMappingBase<D, MarkdownNodeKinds[TKind]> & Readonly<{
1176
+ attributes?: never;
1177
+ decode: NonNullable<MarkdownElementMappingBase<D, MarkdownNodeKinds[TKind]>['decode']>;
1150
1178
  nestedTags?: never;
1151
1179
  node: TKind;
1152
1180
  tag?: never;
1181
+ }>) | (MarkdownElementMappingBase<D, MarkdownNodeKinds[TKind]> & Readonly<{
1182
+ attributes?: never;
1183
+ encode: NonNullable<MarkdownElementMappingBase<D, MarkdownNodeKinds[TKind]>['encode']>;
1184
+ nestedTags?: never;
1185
+ node: TKind;
1186
+ tag?: never;
1187
+ }>); }[MarkdownNodeKind];
1188
+ type MarkNodeMarkdownNodeMapping<D extends AnyBasePluginDefinition> = { [TKind in MarkdownNodeKind]: TKind extends MarkdownMarkContainerKind ? MarkdownMarkMappingBase<D, MarkdownNodeKinds[TKind]> & Readonly<{
1189
+ nestedTags?: never;
1190
+ node: TKind;
1191
+ style?: never;
1192
+ tag?: never;
1193
+ }> : MarkdownMarkMappingBase<D, MarkdownNodeKinds[TKind]> & Readonly<{
1194
+ decode: NonNullable<MarkdownMarkMappingBase<D, MarkdownNodeKinds[TKind]>['decode']>;
1195
+ nestedTags?: never;
1196
+ node: TKind;
1197
+ style?: never;
1198
+ tag?: never;
1153
1199
  }>; }[MarkdownNodeKind];
1200
+ type NodeMarkdownNodeMapping<D extends AnyBasePluginDefinition> = PluginFormatIsMark<D> extends true ? MarkNodeMarkdownNodeMapping<D> : PluginFormatIsMark<D> extends false ? ElementNodeMarkdownNodeMapping<D> : ElementNodeMarkdownNodeMapping<D> | MarkNodeMarkdownNodeMapping<D>;
1154
1201
  type TagMarkdownNodeMapping<D extends AnyBasePluginDefinition> = MarkdownTagMappingBase<D> & Readonly<{
1155
1202
  /** Tags read only inside this one, such as Image's `figcaption`. */
1156
1203
  nestedTags?: readonly string[];
@@ -1165,17 +1212,26 @@ type TagMarkdownNodeMapping<D extends AnyBasePluginDefinition> = MarkdownTagMapp
1165
1212
  * and traverses children by the content model. Marks derive the same way from
1166
1213
  * `tag`, `node`, `value` and `style`.
1167
1214
  */
1168
- type MarkdownNodeMapping<D extends AnyBasePluginDefinition> = EncodeOnlyMarkdownNodeMapping<D> | NodeMarkdownNodeMapping<D> | TagMarkdownNodeMapping<D>;
1215
+ type MarkdownNodeMapping<D extends AnyBasePluginDefinition> = string extends D['name'] ? EncodeOnlyMarkdownNodeMapping<D> | NodeMarkdownNodeMapping<D> | TagMarkdownNodeMapping<D> : PluginFormatHasElement<D> extends false ? PluginFormatHasTextProperty<D> extends false ? never : EncodeOnlyMarkdownNodeMapping<D> | NodeMarkdownNodeMapping<D> | TagMarkdownNodeMapping<D> : EncodeOnlyMarkdownNodeMapping<D> | NodeMarkdownNodeMapping<D> | TagMarkdownNodeMapping<D>;
1216
+ /** One Markdown mapping or a non-empty tuple of Markdown mappings for a plugin. */
1169
1217
  type MarkdownNodeMappingInput<D extends AnyBasePluginDefinition> = MarkdownNodeMapping<D> | readonly [MarkdownNodeMapping<D>, ...Array<MarkdownNodeMapping<D>>];
1218
+ /** Context supplied to a plugin's `formats.plainText` encoder. */
1170
1219
  type PlainTextEncodeContext<TNode, D extends AnyBasePluginDefinition> = Readonly<{
1220
+ /** Serialized plain text of the element's own children. */
1171
1221
  children: string;
1222
+ /** The element being serialized. */
1172
1223
  node: TNode;
1224
+ /** Serialized plain text of a named content-root slot on `node`, including slots contributed by other plugins. */
1173
1225
  rootText: (slot: string) => string;
1174
1226
  }> & PluginFormatContext<D> & Omit<PluginFormatModelView, 'node'>;
1175
- type PlainTextNodeMapping<D extends AnyBasePluginDefinition> = Readonly<{
1227
+ /** Schema-bound plain-text encoder owned by an element or element-property plugin. */
1228
+ type PlainTextNodeMapping<D extends AnyBasePluginDefinition> = PluginFormatIsMark<D> extends true ? never : Readonly<{
1229
+ /** Return plain text for `node`, or `undefined` to fall through to lower-priority mappings or default serialization. */
1176
1230
  encode: (context: PlainTextEncodeContext<PluginFormatNode<D>, D>) => string | undefined;
1231
+ /** Higher runs first among plain-text mappings that match `node`. */
1177
1232
  priority?: number;
1178
1233
  }>;
1234
+ /** One plain-text mapping or a non-empty tuple of plain-text mappings for a plugin. */
1179
1235
  type PlainTextNodeMappingInput<D extends AnyBasePluginDefinition> = PlainTextNodeMapping<D> | readonly [PlainTextNodeMapping<D>, ...Array<PlainTextNodeMapping<D>>];
1180
1236
  type InstalledCapabilityNames<TCapability> = TCapability extends Readonly<{
1181
1237
  name: infer TName extends PropertyKey;
@@ -1400,7 +1456,7 @@ type TransferPluginDescriptor = BasePlugin<TransferPluginDefinition> & PluginTyp
1400
1456
  /** Moves and copies blocks and text through one admission law. */
1401
1457
  declare const TransferPlugin: TransferPluginDescriptor;
1402
1458
  type TransferDefinition = DefinitionOf<typeof TransferPlugin>;
1403
- type AffinityEdgeNodes = [NodeEntry<Element | Text$1>, NodeEntry<Element | Text$1>] | [NodeEntry<Element | Text$1>, null] | [null, NodeEntry<Element | Text$1>];
1459
+ type AffinityEdgeNodes = [NodeEntry<Element$1 | Text$1>, NodeEntry<Element$1 | Text$1>] | [NodeEntry<Element$1 | Text$1>, null] | [null, NodeEntry<Element$1 | Text$1>];
1404
1460
  type AffinityPluginUpdate = {
1405
1461
  setSelection: TxDeclaredMethod<(edgeNodes: AffinityEdgeNodes, affinity: 'backward' | 'forward') => void>;
1406
1462
  };
@@ -1498,7 +1554,14 @@ declare const DOMPlugin: BasePlugin<Readonly<{
1498
1554
  readonly structure?: boolean | undefined;
1499
1555
  readonly text?: boolean | undefined;
1500
1556
  };
1501
- readonly scrollOptions: ScrollIntoViewOptions;
1557
+ readonly scrollOptions: boolean | {
1558
+ readonly behavior?: ScrollBehavior;
1559
+ readonly block?: ScrollLogicalPosition;
1560
+ readonly boundary?: Element | ((parent: Element) => boolean) | null;
1561
+ readonly inline?: ScrollLogicalPosition;
1562
+ readonly scrollMode?: 'always' | 'if-needed';
1563
+ readonly skipOverflowHiddenElements?: boolean;
1564
+ };
1502
1565
  };
1503
1566
  readonly name: "dom";
1504
1567
  readonly api: AutoScrollApi & DOMApi & {
@@ -1507,13 +1570,13 @@ declare const DOMPlugin: BasePlugin<Readonly<{
1507
1570
  readonly update: AutoScrollPluginUpdate & Pick<DOMClipboardApi<Value>, "insertData">;
1508
1571
  }>> & Readonly<Record<never, never>>;
1509
1572
  type ElementStateApi = {
1510
- isEmpty: (element: Element) => boolean;
1573
+ isEmpty: (element: Element$1) => boolean;
1511
1574
  };
1512
1575
  declare const ElementStatePlugin: BasePlugin<Readonly<{}> & Readonly<{
1513
1576
  name: "elementState";
1514
1577
  }> & Readonly<Record<never, never>> & Readonly<{
1515
1578
  api: {
1516
- readonly isEmpty: (element: Element) => boolean;
1579
+ readonly isEmpty: (element: Element$1) => boolean;
1517
1580
  };
1518
1581
  }>>;
1519
1582
  type ElementStateDefinition = DefinitionOf<typeof ElementStatePlugin>;
@@ -1562,7 +1625,7 @@ type BivariantCallback<TArgs extends unknown[], TResult> = {
1562
1625
  }['bivarianceHack'];
1563
1626
  type SelectionInputRuleContext<TEditor = Editor> = {
1564
1627
  editor: InputRuleEditor<TEditor>;
1565
- getBlockEntry: () => NodeEntry<Element> | undefined;
1628
+ getBlockEntry: () => NodeEntry<Element$1> | undefined;
1566
1629
  getBlockStartRange: () => Range | undefined;
1567
1630
  getBlockStartText: () => string | undefined;
1568
1631
  getBlockTextBeforeSelection: () => string;
@@ -2609,7 +2672,7 @@ type ToggleHeadingOptions = {
2609
2672
  declare const isHeadingLevel: (value: unknown) => value is HeadingLevel;
2610
2673
  declare const BaseHeadingPlugin: BasePlugin<Readonly<{
2611
2674
  readonly read: {
2612
- readonly level: (node: Readonly<Element>) => HeadingLevel | undefined;
2675
+ readonly level: (node: Readonly<Element$1>) => HeadingLevel | undefined;
2613
2676
  /**
2614
2677
  * Whether `setLevel(level)` can apply: the schema lets every selected
2615
2678
  * block take the level where it sits.
@@ -2703,7 +2766,7 @@ declare const HeadingRules: {
2703
2766
  level: HeadingLevel;
2704
2767
  }, InternalBaseEditorWithInstalledPlugins<Value, InferBaseEditorPlugins<BasePlugin<Readonly<{
2705
2768
  readonly read: {
2706
- readonly level: (node: Readonly<Element>) => HeadingLevel | undefined;
2769
+ readonly level: (node: Readonly<Element$1>) => HeadingLevel | undefined;
2707
2770
  /**
2708
2771
  * Whether `setLevel(level)` can apply: the schema lets every selected
2709
2772
  * block take the level where it sits.
@@ -2790,7 +2853,7 @@ declare const HeadingRules: {
2790
2853
  };
2791
2854
  }>> & Readonly<Record<never, never>>>, InternalInstalledSchemaDefinitionsProvider<InferBaseEditorPlugins<BasePlugin<Readonly<{
2792
2855
  readonly read: {
2793
- readonly level: (node: Readonly<Element>) => HeadingLevel | undefined;
2856
+ readonly level: (node: Readonly<Element$1>) => HeadingLevel | undefined;
2794
2857
  /**
2795
2858
  * Whether `setLevel(level)` can apply: the schema lets every selected
2796
2859
  * block take the level where it sits.
@@ -3142,7 +3205,7 @@ declare const BaseUnderlinePlugin: BasePlugin<Readonly<{
3142
3205
  /** One block a `keeps` predicate judges, with the siblings it stands among. */
3143
3206
  type FormattingBlockEntry = Readonly<{
3144
3207
  index: number;
3145
- node: Element;
3208
+ node: Element$1;
3146
3209
  path: Path;
3147
3210
  siblings: readonly Descendant[];
3148
3211
  }>;
@@ -3330,8 +3393,8 @@ declare const BaseLineHeightPlugin: BasePlugin<Readonly<{
3330
3393
  name: "lineHeight";
3331
3394
  }> & Readonly<Record<never, never>> & Readonly<{
3332
3395
  update: {
3333
- clear: TxDeclaredMethod<(options?: NodeSetNodesOptions<Element>) => void>;
3334
- set: TxDeclaredMethod<(value: number, options?: NodeSetNodesOptions<Element>) => void>;
3396
+ clear: TxDeclaredMethod<(options?: WithNodeTarget<NodeSetNodesOptions<Element$1>>) => void>;
3397
+ set: TxDeclaredMethod<(value: number, options?: WithNodeTarget<NodeSetNodesOptions<Element$1>>) => void>;
3335
3398
  };
3336
3399
  }> & Readonly<{
3337
3400
  __pluginWritableProperties: Readonly<{
@@ -3414,8 +3477,8 @@ declare const BaseTextAlignPlugin: BasePlugin<Readonly<{
3414
3477
  name: "textAlign";
3415
3478
  }> & Readonly<Record<never, never>> & Readonly<{
3416
3479
  update: {
3417
- clear: TxDeclaredMethod<(options?: NodeSetNodesOptions<Element>) => void>;
3418
- set: TxDeclaredMethod<(value: Alignment, options?: NodeSetNodesOptions<Element>) => void>;
3480
+ clear: TxDeclaredMethod<(options?: WithNodeTarget<NodeSetNodesOptions<Element$1>>) => void>;
3481
+ set: TxDeclaredMethod<(value: Alignment, options?: WithNodeTarget<NodeSetNodesOptions<Element$1>>) => void>;
3419
3482
  };
3420
3483
  }> & Readonly<{
3421
3484
  __pluginWritableProperties: Readonly<{
@@ -3496,8 +3559,8 @@ declare const BaseTextIndentPlugin: BasePlugin<Readonly<{
3496
3559
  };
3497
3560
  }> & Readonly<{
3498
3561
  update: {
3499
- clear: TxDeclaredMethod<(options?: NodeSetNodesOptions<Element>) => void>;
3500
- set: TxDeclaredMethod<(value: number, options?: NodeSetNodesOptions<Element>) => void>;
3562
+ clear: TxDeclaredMethod<(options?: WithNodeTarget<NodeSetNodesOptions<Element$1>>) => void>;
3563
+ set: TxDeclaredMethod<(value: number, options?: WithNodeTarget<NodeSetNodesOptions<Element$1>>) => void>;
3501
3564
  };
3502
3565
  }> & Readonly<{
3503
3566
  __pluginWritableProperties: Readonly<{
@@ -4116,8 +4179,8 @@ declare const CodeBlockRules: {
4116
4179
  };
4117
4180
  declare const isNonNegativeSafeInteger: (value: unknown) => value is number;
4118
4181
  type IndentChangeOptions = {
4119
- nodes?: Omit<EditorNodesOptions<Element>, 'match'> & {
4120
- match?: NodeMatchPredicate<Element>;
4182
+ nodes?: Omit<EditorNodesOptions<Element$1>, 'match'> & {
4183
+ match?: NodeMatchPredicate<Element$1>;
4121
4184
  };
4122
4185
  };
4123
4186
  type IndentPluginState = {
@@ -4276,7 +4339,7 @@ type UpsertLinkOptions = {
4276
4339
  insertNodesOptions?: TextInsertFragmentOptions;
4277
4340
  } & CreateLinkNodeOptions;
4278
4341
  type BaseLinkApi = {
4279
- getAttributes: (link: Element) => LinkAttributes;
4342
+ getAttributes: (link: Element$1) => LinkAttributes;
4280
4343
  };
4281
4344
  type LinkTextAutolinkMatch = {
4282
4345
  range: Range;
@@ -5671,7 +5734,7 @@ type ToggleListOptions = {
5671
5734
  type: ListType;
5672
5735
  };
5673
5736
  declare const BULLETED_LIST_STYLES: readonly ["disc", "circle", "square", "disclosure-open", "disclosure-closed"];
5674
- declare function isOrderedList(element: Element): boolean;
5737
+ declare function isOrderedList(element: Element$1): boolean;
5675
5738
  declare const isListOrdinal: (value: unknown) => value is number;
5676
5739
  declare const BaseListPlugin: BasePlugin<Readonly<{
5677
5740
  readonly dependencies: readonly [PluginReference<"indent"> & PluginDependency<Readonly<{
@@ -6082,7 +6145,7 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
6082
6145
  * a known path skips node lookup. Returns `undefined` when `at` is not a
6083
6146
  * numbered list item there.
6084
6147
  */
6085
- readonly ordinal: (at: NodeTarget<Element>) => number | undefined;
6148
+ readonly ordinal: (at: NodeTarget<Element$1>) => number | undefined;
6086
6149
  readonly isActive: ({ style, type }: {
6087
6150
  style?: ListStyle | (string & {});
6088
6151
  type: ListType;
@@ -6528,7 +6591,7 @@ declare const BulletedListRules: {
6528
6591
  * a known path skips node lookup. Returns `undefined` when `at` is not a
6529
6592
  * numbered list item there.
6530
6593
  */
6531
- readonly ordinal: (at: NodeTarget<Element>) => number | undefined;
6594
+ readonly ordinal: (at: NodeTarget<Element$1>) => number | undefined;
6532
6595
  readonly isActive: ({ style, type }: {
6533
6596
  style?: ListStyle | (string & {});
6534
6597
  type: ListType;
@@ -6965,7 +7028,7 @@ declare const BulletedListRules: {
6965
7028
  * a known path skips node lookup. Returns `undefined` when `at` is not a
6966
7029
  * numbered list item there.
6967
7030
  */
6968
- readonly ordinal: (at: NodeTarget<Element>) => number | undefined;
7031
+ readonly ordinal: (at: NodeTarget<Element$1>) => number | undefined;
6969
7032
  readonly isActive: ({ style, type }: {
6970
7033
  style?: ListStyle | (string & {});
6971
7034
  type: ListType;
@@ -7419,7 +7482,7 @@ declare const OrderedListRules: {
7419
7482
  * a known path skips node lookup. Returns `undefined` when `at` is not a
7420
7483
  * numbered list item there.
7421
7484
  */
7422
- readonly ordinal: (at: NodeTarget<Element>) => number | undefined;
7485
+ readonly ordinal: (at: NodeTarget<Element$1>) => number | undefined;
7423
7486
  readonly isActive: ({ style, type }: {
7424
7487
  style?: ListStyle | (string & {});
7425
7488
  type: ListType;
@@ -7856,7 +7919,7 @@ declare const OrderedListRules: {
7856
7919
  * a known path skips node lookup. Returns `undefined` when `at` is not a
7857
7920
  * numbered list item there.
7858
7921
  */
7859
- readonly ordinal: (at: NodeTarget<Element>) => number | undefined;
7922
+ readonly ordinal: (at: NodeTarget<Element$1>) => number | undefined;
7860
7923
  readonly isActive: ({ style, type }: {
7861
7924
  style?: ListStyle | (string & {});
7862
7925
  type: ListType;
@@ -8298,7 +8361,7 @@ declare const TaskListRules: {
8298
8361
  * a known path skips node lookup. Returns `undefined` when `at` is not a
8299
8362
  * numbered list item there.
8300
8363
  */
8301
- readonly ordinal: (at: NodeTarget<Element>) => number | undefined;
8364
+ readonly ordinal: (at: NodeTarget<Element$1>) => number | undefined;
8302
8365
  readonly isActive: ({ style, type }: {
8303
8366
  style?: ListStyle | (string & {});
8304
8367
  type: ListType;
@@ -8735,7 +8798,7 @@ declare const TaskListRules: {
8735
8798
  * a known path skips node lookup. Returns `undefined` when `at` is not a
8736
8799
  * numbered list item there.
8737
8800
  */
8738
- readonly ordinal: (at: NodeTarget<Element>) => number | undefined;
8801
+ readonly ordinal: (at: NodeTarget<Element$1>) => number | undefined;
8739
8802
  readonly isActive: ({ style, type }: {
8740
8803
  style?: ListStyle | (string & {});
8741
8804
  type: ListType;
@@ -9075,12 +9138,12 @@ type EditorElementMutation = Readonly<{
9075
9138
  type ElementToggleUpdate = Readonly<{
9076
9139
  toggle: (options?: Omit<EditorToggleBlockOptions, 'wrap'>) => boolean;
9077
9140
  }>;
9078
- type GeneratedElementForSelector<TMutations, TSelector> = TSelector extends ReadonlyArray<infer TItem> ? GeneratedElementForSelector<TMutations, TItem> : TSelector extends PluginReference ? ElementForMutation<EditorMutationForPlugin<TMutations, TSelector>> : TSelector extends string ? Element & {
9141
+ type GeneratedElementForSelector<TMutations, TSelector> = TSelector extends ReadonlyArray<infer TItem> ? GeneratedElementForSelector<TMutations, TItem> : TSelector extends PluginReference ? ElementForMutation<EditorMutationForPlugin<TMutations, TSelector>> : TSelector extends string ? Element$1 & {
9079
9142
  type: TSelector;
9080
- } : Element;
9143
+ } : Element$1;
9081
9144
  type ElementInsertNode<TSchema, TMutations, TSelector> = [TMutations] extends [never] ? ElementForSelector<TSchema, TSelector> : GeneratedElementForSelector<TMutations, TSelector>;
9082
- type ElementInsertOptions<TSchema, TSelector extends PluginNodeTypeSelector, TMutations = never> = Omit<NodeInsertNodesOptions<Element>, 'match' | 'split' | 'type'> & {
9083
- split?: Omit<NonNullable<NodeInsertNodesOptions<Element>['split']>, 'match' | 'type'> & {
9145
+ type ElementInsertOptions<TSchema, TSelector extends PluginNodeTypeSelector, TMutations = never> = Omit<WithNodeTarget<NodeInsertNodesOptions<Element$1>>, 'match' | 'split' | 'type'> & {
9146
+ split?: Omit<NonNullable<NodeInsertNodesOptions<Element$1>['split']>, 'match' | 'type'> & {
9084
9147
  match?: NodeMatch<ElementInsertNode<TSchema, TMutations, NoInfer<TSelector>>>;
9085
9148
  type: TSelector & NoInfer<ElementSelectorGuard<TSelector>>;
9086
9149
  };
@@ -9109,8 +9172,8 @@ type GeneratedElementUpdate<TMutations, TPlugin extends AnyBasePluginDefinition>
9109
9172
  insert: TMutation extends Readonly<{
9110
9173
  block: false;
9111
9174
  }> ? ElementInsert<TMutation['construction'], InternalEditorMutationProvider<TMutations>, TMutations> : BlockElementInsert<TMutation['construction']>;
9112
- remove: (options?: Omit<NodeRemoveNodesOptions<Element>, 'match' | 'type'>) => void;
9113
- set: (properties: Partial<TMutation['properties']>, options?: Omit<NodeSetNodesOptions<Element>, 'match' | 'type'>) => void;
9175
+ remove: (options?: SelectorOptions<NodeRemoveNodesOptions<Element$1>>) => void;
9176
+ set: (properties: Partial<TMutation['properties']>, options?: SelectorOptions<NodeSetNodesOptions<Element$1>>) => void;
9114
9177
  }> & (TMutation extends Readonly<{
9115
9178
  block: false;
9116
9179
  }> ? {} : Readonly<{
@@ -9125,8 +9188,8 @@ type SchemaPluginDefinitionForRuntimePlugin<TSchemaDefinitions, D> = D extends R
9125
9188
  }> : never;
9126
9189
  type DefaultElementUpdate<TSchemaDefinitions, TPlugin extends AnyBasePluginDefinition> = TSchemaDefinitions extends InternalEditorApplicationSchemaProvider ? {} : TSchemaDefinitions extends InternalEditorMutationProvider<infer TMutations> ? GeneratedElementUpdate<TMutations, TPlugin> : [ElementPluginDefinition<TPlugin>] extends [never] ? {} : InstalledPluginElementType<TPlugin> extends (infer TType extends string) ? TType extends SchemaElementTypes<SchemaSourceForInstalledDefinitions<InstalledSchemaDefinitionsOf<TSchemaDefinitions>>> ? Readonly<{
9127
9190
  insert: EditorDefinitionElementSupportsBlockInsertion<TPlugin> extends true ? BlockElementInsert<SchemaElementConstructionPropertiesFor<SchemaSourceForInstalledDefinitions<InstalledSchemaDefinitionsOf<TSchemaDefinitions>>, TType>> : ElementInsert<SchemaElementConstructionPropertiesFor<SchemaSourceForInstalledDefinitions<InstalledSchemaDefinitionsOf<TSchemaDefinitions>>, TType>, TSchemaDefinitions>;
9128
- remove: (options?: Omit<NodeRemoveNodesOptions<Element>, 'match' | 'type'>) => void;
9129
- set: (properties: Partial<SchemaElementPropertiesFor<SchemaSourceForInstalledDefinitions<InstalledSchemaDefinitionsOf<TSchemaDefinitions>>, TType>>, options?: Omit<NodeSetNodesOptions<Element>, 'match' | 'type'>) => void;
9191
+ remove: (options?: SelectorOptions<NodeRemoveNodesOptions<Element$1>>) => void;
9192
+ set: (properties: Partial<SchemaElementPropertiesFor<SchemaSourceForInstalledDefinitions<InstalledSchemaDefinitionsOf<TSchemaDefinitions>>, TType>>, options?: SelectorOptions<NodeSetNodesOptions<Element$1>>) => void;
9130
9193
  }> & (EditorDefinitionElementSupportsBlockInsertion<TPlugin> extends true ? Readonly<{
9131
9194
  upsert: ElementUpsert<SchemaElementConstructionPropertiesFor<SchemaSourceForInstalledDefinitions<InstalledSchemaDefinitionsOf<TSchemaDefinitions>>, TType>>;
9132
9195
  }> : {}) & ('toggle' extends keyof InferUpdate<TPlugin> ? {} : {} extends SchemaElementConstructionPropertiesFor<SchemaSourceForInstalledDefinitions<InstalledSchemaDefinitionsOf<TSchemaDefinitions>>, TType> ? EditorDefinitionElementSupportsToggle<SchemaPluginDefinitionForRuntimePlugin<TSchemaDefinitions, TPlugin>> extends true ? ElementToggleUpdate : {} : {}) : {} : {};
@@ -9315,10 +9378,10 @@ interface InternalEditorMutationProvider<TMutations> {
9315
9378
  readonly mutations: () => TMutations;
9316
9379
  }
9317
9380
  type EditorMutationForPlugin<TMutations, TPlugin> = DescriptorPluginDefinition<TPlugin>['name'] extends (infer TName extends keyof TMutations) ? TMutations[TName] extends EditorElementMutation ? TMutations[TName] : never : never;
9318
- type ElementForMutation<TMutation> = TMutation extends EditorElementMutation ? Element & Readonly<{
9381
+ type ElementForMutation<TMutation> = TMutation extends EditorElementMutation ? Element$1 & Readonly<{
9319
9382
  type: TMutation['type'];
9320
9383
  }> & TMutation['properties'] : never;
9321
- type ElementForPlugin<TSchema, TPlugin> = [TSchema] extends [InternalEditorMutationProvider<infer TMutations>] ? ElementForMutation<EditorMutationForPlugin<TMutations, TPlugin>> : [TSchema] extends [InternalEditorApplicationSchemaProvider] ? Element : ElementForMutation<RawEditorMutationForPlugin<TPlugin>>;
9384
+ type ElementForPlugin<TSchema, TPlugin> = [TSchema] extends [InternalEditorMutationProvider<infer TMutations>] ? ElementForMutation<EditorMutationForPlugin<TMutations, TPlugin>> : [TSchema] extends [InternalEditorApplicationSchemaProvider] ? Element$1 : ElementForMutation<RawEditorMutationForPlugin<TPlugin>>;
9322
9385
  type PropertiesForMutation<TMutation> = TMutation extends EditorElementMutation ? TMutation['properties'] : Readonly<Record<string, unknown>>;
9323
9386
  type PropertiesForPlugin<TSchema, TPlugin> = [TSchema] extends [InternalEditorMutationProvider<infer TMutations>] ? PropertiesForMutation<EditorMutationForPlugin<TMutations, TPlugin>> : [TSchema] extends [InternalEditorApplicationSchemaProvider] ? Readonly<Record<string, unknown>> : PropertiesForMutation<RawEditorMutationForPlugin<TPlugin>>;
9324
9387
  type PluginNodeTypeSelector = PluginReference | string | ReadonlyArray<PluginReference | string>;
@@ -9342,7 +9405,7 @@ type BlockUpsertOptions = Exclude<BlockInsertOptions, {
9342
9405
  }> & {
9343
9406
  replaceEmpty?: never;
9344
9407
  };
9345
- type ElementForSelector<TSchema, TSelector> = TSelector extends ReadonlyArray<infer TItem> ? ElementForSelector<TSchema, TItem> : TSelector extends string ? Element & {
9408
+ type ElementForSelector<TSchema, TSelector> = TSelector extends ReadonlyArray<infer TItem> ? ElementForSelector<TSchema, TItem> : TSelector extends string ? Element$1 & {
9346
9409
  type: TSelector;
9347
9410
  } : TSelector extends PluginReference ? ElementForPlugin<TSchema, TSelector> : never;
9348
9411
  type PropertiesForSelector<TSchema, TSelector> = TSelector extends ReadonlyArray<infer TItem> ? PropertiesForSelector<TSchema, TItem> : TSelector extends PluginReference ? PropertiesForPlugin<TSchema, TSelector> : Readonly<Record<string, unknown>>;
@@ -9355,11 +9418,11 @@ type NodeGetOptions<TNode extends Node$1, TSelector> = SelectorOptions<EditorNod
9355
9418
  match?: NodeMatch<TNode>;
9356
9419
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9357
9420
  };
9358
- type AboveOptions<TNode extends Element, TSelector> = SelectorOptions<EditorAboveOptions<TNode>> & {
9421
+ type AboveOptions<TNode extends Element$1, TSelector> = SelectorOptions<EditorAboveOptions<TNode>> & {
9359
9422
  match?: NodeMatch<TNode>;
9360
9423
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9361
9424
  };
9362
- type BlockOptions<TNode extends Element, TSelector> = SelectorOptions<EditorBlockOptions<TNode>> & {
9425
+ type BlockOptions<TNode extends Element$1, TSelector> = SelectorOptions<EditorBlockOptions<TNode>> & {
9363
9426
  match?: NodeMatch<TNode>;
9364
9427
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9365
9428
  };
@@ -9367,7 +9430,7 @@ type LevelsOptions<TNode extends Node$1, TSelector> = SelectorOptions<EditorLeve
9367
9430
  match?: NodeMatch<TNode>;
9368
9431
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9369
9432
  };
9370
- type NextOptions<TNode extends Element, TSelector> = SelectorOptions<EditorNextOptions<TNode>> & {
9433
+ type NextOptions<TNode extends Element$1, TSelector> = SelectorOptions<EditorNextOptions<TNode>> & {
9371
9434
  match?: NodeMatch<TNode>;
9372
9435
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9373
9436
  };
@@ -9375,7 +9438,7 @@ type PreviousOptions<TNode extends Node$1, TSelector> = SelectorOptions<EditorPr
9375
9438
  match?: NodeMatch<TNode>;
9376
9439
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9377
9440
  };
9378
- type ParentOptions<TNode extends Element, TSelector> = SelectorOptions<EditorParentOptions<TNode>> & {
9441
+ type ParentOptions<TNode extends Element$1, TSelector> = SelectorOptions<EditorParentOptions<TNode>> & {
9379
9442
  match?: NodeMatch<TNode>;
9380
9443
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9381
9444
  };
@@ -9395,7 +9458,7 @@ type PluginEditorStateNodes<V extends Value, TSchema> = Omit<EditorStateView<V>[
9395
9458
  <const TSelector extends PluginNodeTypeSelector, R>(options: NodesReadOptions<ElementForSelector<TSchema, TSelector>, TSelector>, map: (entry: NodeEntry<ElementForSelector<TSchema, TSelector>>) => R): readonly R[];
9396
9459
  } & EditorStateView<V>['nodes']['toArray'];
9397
9460
  };
9398
- type SelectionBlockOptions<TNode extends Element, TSelector> = Omit<EditorSelectionBlockOptions, 'match' | 'type'> & {
9461
+ type SelectionBlockOptions<TNode extends Element$1, TSelector> = Omit<EditorSelectionBlockOptions, 'match' | 'type'> & {
9399
9462
  match?: NodeMatch<TNode>;
9400
9463
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9401
9464
  };
@@ -9415,7 +9478,7 @@ type SelectionQueries<TSelection, TSchema> = (TSelection extends ((...args: neve
9415
9478
  } ? TMethod : never>;
9416
9479
  };
9417
9480
  type MutationPluginGuard<TMutations, TPlugin> = [EditorMutationForPlugin<TMutations, TPlugin>] extends [never] ? never : unknown;
9418
- type MutationSchemaCreate<TMutations> = (<const TPlugin extends PluginReference>(plugin: TPlugin & NoInfer<MutationPluginGuard<TMutations, TPlugin>>, ...properties: EditorMutationForPlugin<TMutations, TPlugin> extends (infer TMutation extends EditorElementMutation) ? {} extends TMutation['construction'] ? [properties?: NoInfer<TMutation['construction']>] : [properties: NoInfer<TMutation['construction']>] : never) => Element & Readonly<{
9481
+ type MutationSchemaCreate<TMutations> = (<const TPlugin extends PluginReference>(plugin: TPlugin & NoInfer<MutationPluginGuard<TMutations, TPlugin>>, ...properties: EditorMutationForPlugin<TMutations, TPlugin> extends (infer TMutation extends EditorElementMutation) ? {} extends TMutation['construction'] ? [properties?: NoInfer<TMutation['construction']>] : [properties: NoInfer<TMutation['construction']>] : never) => Element$1 & Readonly<{
9419
9482
  type: EditorMutationForPlugin<TMutations, TPlugin>['type'];
9420
9483
  }> & EditorMutationForPlugin<TMutations, TPlugin>['properties']) & EditorStateSchemaApi['create'];
9421
9484
  type MutationSchemaElement<TMutations> = (<const TPlugin extends PluginReference>(plugin: TPlugin & NoInfer<MutationPluginGuard<TMutations, TPlugin>>) => EditorSchemaElement | null) & EditorStateSchemaApi['element'];
@@ -9427,7 +9490,7 @@ type MutationStateSchemaApi<V extends Value, TMutations> = keyof TMutations exte
9427
9490
  element: MutationSchemaElement<TMutations>;
9428
9491
  isElementTypeInGroup: MutationSchemaIsElementTypeInGroup<TMutations>;
9429
9492
  };
9430
- type RawSchemaCreate = (<const TPlugin extends PluginReference>(plugin: TPlugin & NoInfer<RawElementPluginGuard<TPlugin>>, ...properties: RawEditorMutationForPlugin<TPlugin> extends (infer TMutation extends EditorElementMutation) ? {} extends TMutation['construction'] ? [properties?: NoInfer<TMutation['construction']>] : [properties: NoInfer<TMutation['construction']>] : never) => Element & Readonly<{
9493
+ type RawSchemaCreate = (<const TPlugin extends PluginReference>(plugin: TPlugin & NoInfer<RawElementPluginGuard<TPlugin>>, ...properties: RawEditorMutationForPlugin<TPlugin> extends (infer TMutation extends EditorElementMutation) ? {} extends TMutation['construction'] ? [properties?: NoInfer<TMutation['construction']>] : [properties: NoInfer<TMutation['construction']>] : never) => Element$1 & Readonly<{
9431
9494
  type: RawEditorMutationForPlugin<TPlugin>['type'];
9432
9495
  }> & RawEditorMutationForPlugin<TPlugin>['properties']) & EditorStateSchemaApi['create'];
9433
9496
  type RawSchemaElement = (<const TPlugin extends PluginReference>(plugin: TPlugin & NoInfer<RawElementPluginGuard<TPlugin>>) => EditorSchemaElement | null) & EditorStateSchemaApi['element'];
@@ -9522,10 +9585,8 @@ type InvalidPluginWritablePropertyPatchMember<D, TProps> = IsAny$1<TProps> exten
9522
9585
  type ValidatePluginWritablePropertyPatch<D, TProps> = [InvalidPluginWritablePropertyPatchMember<D, TProps>] extends [never] ? unknown : never;
9523
9586
  type PluginWritablePropertyPatch<D> = { [TKey in PluginExactWritablePropertyKey<D>]?: PluginWritablePropertyPatchValue<D, TKey>; };
9524
9587
  type PluginForbiddenWritablePropertyPatch<D> = { [TKey in PluginForbiddenWritablePropertyKey<D>]?: never; };
9525
- type PluginNodeSetProps<D> = Partial<Omit<Element, 'children'>> & PluginWritablePropertyPatch<D> & PluginForbiddenWritablePropertyPatch<D>;
9526
- type PluginNodeSetOptions = Omit<NodeSetNodesOptions<Element>, 'at'> & {
9527
- at?: Descendant | ElementIdTarget | Location | NodeKey | NodeSelection;
9528
- };
9588
+ type PluginNodeSetProps<D> = Partial<Omit<Element$1, 'children'>> & PluginWritablePropertyPatch<D> & PluginForbiddenWritablePropertyPatch<D>;
9589
+ type PluginNodeSetOptions = WithNodeTarget<NodeSetNodesOptions<Element$1>>;
9529
9590
  type NodeSelectorOptions<TOptions, TNode extends Node$1, TSelector> = SelectorOptions<NonNullable<TOptions>> & {
9530
9591
  match?: NodeMatch<TNode>;
9531
9592
  type: TSelector & ([TNode] extends [never] ? never : unknown);
@@ -9557,7 +9618,7 @@ type PluginTransactionNodes<D, S = D> = Omit<EditorUpdateTransaction['nodes'], k
9557
9618
  <TKey extends string>(property: TKey | readonly TKey[], options?: EditorNodeUnsetOptions<NodeIn<Value>>): void;
9558
9619
  };
9559
9620
  unwrap: (<const TSelector extends PluginNodeTypeSelector>(options: NodeSelectorOptions<Parameters<EditorUpdateTransaction['nodes']['unwrap']>[0], ElementForSelector<S, TSelector>, TSelector>) => boolean) & EditorUpdateTransaction['nodes']['unwrap'];
9560
- wrap: (<const TSelector extends PluginNodeTypeSelector>(element: Element, options: NodeSelectorOptions<Parameters<EditorUpdateTransaction['nodes']['wrap']>[1], ElementForSelector<S, TSelector>, TSelector>) => boolean) & EditorUpdateTransaction['nodes']['wrap'];
9621
+ wrap: (<const TSelector extends PluginNodeTypeSelector>(element: Element$1, options: NodeSelectorOptions<Parameters<EditorUpdateTransaction['nodes']['wrap']>[1], ElementForSelector<S, TSelector>, TSelector>) => boolean) & EditorUpdateTransaction['nodes']['wrap'];
9561
9622
  } & PluginEditorStateNodes<Value, S>;
9562
9623
  type WithPluginWritableNodes<TTransaction, D, S = D> = Omit<TTransaction, 'nodes' | 'selection'> & Readonly<{
9563
9624
  nodes: PluginTransactionNodes<D, S>;
@@ -9588,7 +9649,7 @@ type PluginEditorInsertNodes<TMethod, S> = TMethod extends ((...args: any[]) =>
9588
9649
  type: TSelector & NoInfer<ElementSelectorGuard<TSelector>>;
9589
9650
  };
9590
9651
  }) => void) & (<TNode extends Descendant>(nodes: TNode | readonly TNode[], options?: NodeInsertOptions) => void) & TMethod : never;
9591
- type PluginEditorWrapNodes<TMethod, S> = TMethod extends ((...args: any[]) => void) ? (<const TSelector extends PluginNodeTypeSelector>(element: Element, options: DirectNodeSelectorOptions<Parameters<TMethod>[1], ElementForSelector<S, TSelector>, TSelector>) => void) & TMethod : never;
9652
+ type PluginEditorWrapNodes<TMethod, S> = TMethod extends ((...args: any[]) => void) ? (<const TSelector extends PluginNodeTypeSelector>(element: Element$1, options: DirectNodeSelectorOptions<Parameters<TMethod>[1], ElementForSelector<S, TSelector>, TSelector>) => void) & TMethod : never;
9592
9653
  type PluginEditorUpdateNodeMethods<V extends Value, D, S = D, TRuntimePlugins extends readonly unknown[] = readonly []> = EditorUpdateMethods<V, PluginRuntimePlugins<V, D, S, TRuntimePlugins>>['nodes'];
9593
9654
  type PluginEditorUpdateNodes<V extends Value, D, S = D, TRuntimePlugins extends readonly unknown[] = readonly []> = Omit<PluginEditorUpdateNodeMethods<V, D, S, TRuntimePlugins>, 'insert' | 'lift' | 'merge' | 'move' | 'remove' | 'set' | 'split' | 'unset' | 'unwrap' | 'wrap'> & {
9594
9655
  insert: PluginEditorInsertNodes<PluginEditorUpdateNodeMethods<V, D, S, TRuntimePlugins>['insert'], InternalEditorApplicationSchemaProvider>;
@@ -10080,7 +10141,7 @@ type HtmlPreserve<C extends AnyBasePluginDefinition> = Readonly<{
10080
10141
  */
10081
10142
  preserve: (...keys: ReadonlyArray<Extract<keyof HtmlOwnedPropertyMap<C>, string>>) => void;
10082
10143
  }>;
10083
- type HtmlElementEncodeContext<C extends AnyBasePluginDefinition, TNode extends Element> = HtmlModelContext<C, TNode> & HtmlPreserve<C> & Readonly<{
10144
+ type HtmlElementEncodeContext<C extends AnyBasePluginDefinition, TNode extends Element$1> = HtmlModelContext<C, TNode> & HtmlPreserve<C> & Readonly<{
10084
10145
  content: HtmlContentToken;
10085
10146
  /**
10086
10147
  * A token the output places where the blocks of the content root that
@@ -10134,9 +10195,9 @@ type HtmlSoleExactProperty<C extends AnyBasePluginDefinition> = HtmlContribution
10134
10195
  key: string;
10135
10196
  } ? TProperty : never : never;
10136
10197
  type HtmlPropertyDecode<C extends AnyBasePluginDefinition> = [HtmlSoleExactProperty<C>] extends [never] ? HtmlPropertyMap<HtmlContributionProperties<C>> : HtmlSoleExactProperty<C> extends SchemaProperty ? PropertyValueOf<HtmlSoleExactProperty<C>['value']> : never;
10137
- type HtmlPropertyEncodeContextFor<C extends AnyBasePluginDefinition> = [HtmlSoleExactProperty<C>] extends [never] ? HtmlPropertiesEncodeContext<C, Element, HtmlOwnedPropertyMap<C>> : HtmlSoleExactProperty<C> extends SchemaProperty ? HtmlPropertyEncodeContext<C, Element, PropertyValueOf<HtmlSoleExactProperty<C>['value']>> : never;
10198
+ type HtmlPropertyEncodeContextFor<C extends AnyBasePluginDefinition> = [HtmlSoleExactProperty<C>] extends [never] ? HtmlPropertiesEncodeContext<C, Element$1, HtmlOwnedPropertyMap<C>> : HtmlSoleExactProperty<C> extends SchemaProperty ? HtmlPropertyEncodeContext<C, Element$1, PropertyValueOf<HtmlSoleExactProperty<C>['value']>> : never;
10138
10199
  type HtmlTextEncodeContextFor<C extends AnyBasePluginDefinition> = [HtmlSoleExactProperty<C>] extends [never] ? HtmlPropertiesEncodeContext<C, Text$1, HtmlOwnedPropertyMap<C>> : HtmlSoleExactProperty<C> extends SchemaProperty ? HtmlPropertyEncodeContext<C, Text$1, PropertyValueOf<HtmlSoleExactProperty<C>['value']>> : never;
10139
- type HtmlElementRule<C extends AnyBasePluginDefinition> = HtmlRuleBase & HtmlRuleDirections<HtmlDecodeContext<C>, HtmlElementDecodeResult<HtmlOwnedPropertyMap<C>>, HtmlElementEncodeContext<C, Element & Readonly<{
10200
+ type HtmlElementRule<C extends AnyBasePluginDefinition> = HtmlRuleBase & HtmlRuleDirections<HtmlDecodeContext<C>, HtmlElementDecodeResult<HtmlOwnedPropertyMap<C>>, HtmlElementEncodeContext<C, Element$1 & Readonly<{
10140
10201
  type: InferPluginDocumentType<C>;
10141
10202
  }> & HtmlOwnedPropertyMap<C>>, HtmlNodeSpec> & {
10142
10203
  createsElement?: never;
@@ -10145,7 +10206,7 @@ type HtmlElementPropertyRule<C extends AnyBasePluginDefinition> = HtmlRuleBase &
10145
10206
  type HtmlElementPropertyPatchRule<C extends AnyBasePluginDefinition> = HtmlRuleBase & HtmlRuleDirections<HtmlDecodeContext<C>, HtmlPropertyDecode<C>, HtmlPropertyEncodeContextFor<C>, HtmlElementPatch> & {
10146
10207
  createsElement?: never;
10147
10208
  };
10148
- type HtmlElementPropertyCreateRule<C extends AnyBasePluginDefinition> = HtmlRuleBase & HtmlRuleDirections<HtmlDecodeContext<C>, HtmlElementDecodeResult<HtmlOwnedPropertyMap<C>>, HtmlElementEncodeContext<C, Element & HtmlOwnedPropertyMap<C>>, HtmlNodeSpec> & {
10209
+ type HtmlElementPropertyCreateRule<C extends AnyBasePluginDefinition> = HtmlRuleBase & HtmlRuleDirections<HtmlDecodeContext<C>, HtmlElementDecodeResult<HtmlOwnedPropertyMap<C>>, HtmlElementEncodeContext<C, Element$1 & HtmlOwnedPropertyMap<C>>, HtmlNodeSpec> & {
10149
10210
  /**
10150
10211
  * Matched content becomes the plugin's primary target, the schema's
10151
10212
  * default block when that is a target, carrying the decoded properties;
@@ -10229,12 +10290,16 @@ type PluginSelfHtmlMappingMap<C extends AnyBasePluginDefinition> = Readonly<{
10229
10290
  type PluginSelfHtmlElementPropertyMappingMap<C extends AnyBasePluginDefinition, TRule> = C extends Readonly<{
10230
10291
  targetPlugins: ReadonlyArray<PluginReference | string>;
10231
10292
  }> ? [HtmlContributionProperties<C>] extends [never] ? never : [Exclude<HtmlContributionProperties<C>, SchemaElementProperty>] extends [never] ? Readonly<{
10293
+ docx?: DocxNodeMapping<C>;
10232
10294
  html: PluginHtmlMappingInput<C, TRule> | readonly [PluginHtmlMappingInput<C, TRule>, ...Array<PluginHtmlMappingInput<C, TRule>>];
10233
10295
  markdown?: never;
10296
+ plainText?: PlainTextNodeMappingInput<C>;
10234
10297
  }> : never : never;
10235
10298
  type PluginSelfHtmlMappingMapForRule<C extends AnyBasePluginDefinition, TRule> = Readonly<{
10299
+ docx?: DocxNodeMapping<C>;
10236
10300
  html: PluginHtmlMappingInput<C, TRule> | readonly [PluginHtmlMappingInput<C, TRule>, ...Array<PluginHtmlMappingInput<C, TRule>>];
10237
10301
  markdown?: never;
10302
+ plainText?: PlainTextNodeMappingInput<C>;
10238
10303
  }>;
10239
10304
  type PluginTargetedHtmlCreateMappingMap<C extends AnyBasePluginDefinition> = C extends Readonly<{
10240
10305
  targetPlugins: ReadonlyArray<PluginReference | string>;
@@ -10242,8 +10307,10 @@ type PluginTargetedHtmlCreateMappingMap<C extends AnyBasePluginDefinition> = C e
10242
10307
  type PluginTargetedHtmlMixedMappingMap<C extends AnyBasePluginDefinition> = C extends Readonly<{
10243
10308
  targetPlugins: ReadonlyArray<PluginReference | string>;
10244
10309
  }> ? Readonly<{
10310
+ docx?: DocxNodeMapping<C>;
10245
10311
  html: readonly [PluginHtmlMappingInput<C, HtmlElementPropertyCreateRule<C>>, PluginHtmlMappingInput<C, HtmlSelfNonCreatingRule<C>>, ...Array<PluginHtmlMappingInput<C, HtmlSelfNonCreatingRule<C>>>];
10246
10312
  markdown?: never;
10313
+ plainText?: PlainTextNodeMappingInput<C>;
10247
10314
  }> : never;
10248
10315
  type PluginSelfHtmlProductNodeMappingMap<C extends AnyBasePluginDefinition> = PluginSelfHtmlMappingMap<C> & Readonly<{
10249
10316
  docx?: DocxNodeMapping<C>;
@@ -10265,7 +10332,7 @@ type DefinePluginFormats<C extends AnyBasePluginDefinition> = {
10265
10332
  bivarianceHack(formats: PluginSelfHtmlMappingMapForRule<C, HtmlSelfNonCreatingRule<C>>): PluginFormatMapDeclaration;
10266
10333
  bivarianceHack(formats: PluginSelfHtmlElementPropertyMappingMap<C, HtmlElementPropertyCreateRule<C>>): PluginFormatMapDeclaration;
10267
10334
  bivarianceHack(formats: PluginProductNodeMappingOnlyMap<C>): PluginFormatMapDeclaration;
10268
- bivarianceHack<const TTarget extends AnyBasePlugin & PluginReference>(target: TTarget, formats: PluginForeignHtmlMappingInput<C, TTarget> | PluginProductNodeMappingMap<ForeignFormatDefinition<C, NoInfer<TTarget>>>): PluginFormatMapDeclaration;
10335
+ bivarianceHack<const TTarget extends AnyBasePlugin & PluginReference>(target: TTarget, formats: TTarget['name'] extends C['name'] ? never : (PluginForeignHtmlMappingInput<C, TTarget> & PluginProductNodeMappingMap<ForeignFormatDefinition<C, NoInfer<TTarget>>>) | PluginProductNodeMappingOnlyMap<ForeignFormatDefinition<C, NoInfer<TTarget>>>): PluginFormatMapDeclaration;
10269
10336
  }['bivarianceHack'];
10270
10337
  type PartialBasePlugin<C extends AnyBasePluginDefinition = BasePluginDefinition> = Omit<Partial<PluginBase<C>>, 'decorate' | 'initialState' | 'render' | 'slots'> & {
10271
10338
  decorate?: DecorateInput<C> | null;
@@ -10314,7 +10381,7 @@ type RenderStaticNodeWrapperFunction<TSource extends RenderStaticNodeWrapperSour
10314
10381
  bivarianceHack(hocProps: RenderStaticNodeWrapperProps<TSource>): any;
10315
10382
  }['bivarianceHack'] | null | undefined;
10316
10383
  /** Props passed to a static node wrapper and its returned component. */
10317
- type RenderStaticNodeWrapperProps<TSource extends RenderStaticNodeWrapperSource = any> = RenderStaticNodeWrapperDefinition<TSource> extends (infer C extends AnyBasePluginDefinition) ? BaseRenderNodeProps<C> & RenderElementProps<0 extends 1 & TSource ? Element : ElementWith<WithAnyName<C>>> & {
10384
+ type RenderStaticNodeWrapperProps<TSource extends RenderStaticNodeWrapperSource = any> = RenderStaticNodeWrapperDefinition<TSource> extends (infer C extends AnyBasePluginDefinition) ? BaseRenderNodeProps<C> & RenderElementProps<0 extends 1 & TSource ? Element$1 : ElementWith<WithAnyName<C>>> & {
10318
10385
  path: Path;
10319
10386
  } : never;
10320
10387
  /** Cache the full invariant editor shape across author callback comparisons. */