platejs 54.0.0-beta.2 → 54.0.0-beta.4

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 (255) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +56 -0
  3. package/dist/{AIChatRequestContext-BMVWhfPV.d.ts → AIChatRequestContext-DrUahdTc.d.ts} +2 -2
  4. package/dist/{BaseSuggestionPlugin-DBl3fqnm.d.ts → BaseSuggestionPlugin-_7Ka6nY3.d.ts} +7 -3
  5. package/dist/{PlateStatic-DhNv2ejp.d.ts → PlateStatic-D3Cb-QwH.d.ts} +7 -7
  6. package/dist/ai/index.d.ts +1 -1
  7. package/dist/ai/react/AIChatPlugin.js +113 -78
  8. package/dist/ai/react/CopilotPlugin.js +1 -1
  9. package/dist/ai/react/index.d.ts +23 -16
  10. package/dist/authored/index.d.ts +4 -4
  11. package/dist/code-block/codemirror/createCodeMirrorAdapter.js +12 -9
  12. package/dist/code-block/codemirror/index.d.ts +1 -1
  13. package/dist/{combobox-DkBGgyd3.d.ts → combobox-Dr0OYZIE.d.ts} +2 -2
  14. package/dist/{comparison-types-CYnJ35qU.d.ts → comparison-types-DdwE6mYq-BogsHoUO.d.ts} +10 -2
  15. package/dist/compiler/index.d.ts +2 -2
  16. package/dist/{core-BJG8l_mk.d.ts → core-BqR-fEDp.d.ts} +493 -116
  17. package/dist/diff/index.d.ts +2 -2
  18. package/dist/docs/ai.md +4 -3
  19. package/dist/docs/api/core/plate-components.md +0 -19
  20. package/dist/docs/api/core/plate-controller.md +5 -3
  21. package/dist/docs/api/core/plate-plugin.md +3 -0
  22. package/dist/docs/api/core/plate-store.md +3 -3
  23. package/dist/docs/api/core.md +45 -5
  24. package/dist/docs/api/dom.md +11 -4
  25. package/dist/docs/api/editor-transforms.md +2 -1
  26. package/dist/docs/api/react-hooks.md +45 -13
  27. package/dist/docs/authored-changes.md +9 -4
  28. package/dist/docs/basic-blocks.md +42 -29
  29. package/dist/docs/block-placeholder.md +4 -2
  30. package/dist/docs/blockquote.md +5 -3
  31. package/dist/docs/board.md +118 -10
  32. package/dist/docs/code-block.md +47 -0
  33. package/dist/docs/comment.md +2 -2
  34. package/dist/docs/discussion.md +1 -1
  35. package/dist/docs/document-model.md +15 -3
  36. package/dist/docs/docx.md +1 -1
  37. package/dist/docs/dom-coverage.md +5 -0
  38. package/dist/docs/editor.md +50 -4
  39. package/dist/docs/examples/editable-voids.md +2 -3
  40. package/dist/docs/external-text.md +2 -0
  41. package/dist/docs/field.md +370 -0
  42. package/dist/docs/find.md +9 -6
  43. package/dist/docs/form.md +2 -0
  44. package/dist/docs/heading.md +6 -0
  45. package/dist/docs/installation/manual.md +0 -4
  46. package/dist/docs/link.md +3 -3
  47. package/dist/docs/llms.txt +4 -2
  48. package/dist/docs/markdown.md +270 -14
  49. package/dist/docs/plugin-components.md +13 -10
  50. package/dist/docs/plugin-input-rules.md +66 -15
  51. package/dist/docs/prompt-editor.md +205 -0
  52. package/dist/docs/roots.md +8 -6
  53. package/dist/docs/rtl.md +6 -4
  54. package/dist/docs/selection.md +7 -4
  55. package/dist/docs/suggestion.md +1 -1
  56. package/dist/docs/toolbar.md +26 -30
  57. package/dist/docs/upload.md +106 -17
  58. package/dist/docx/export/index.d.ts +3 -3
  59. package/dist/docx/export/lib/docxStaticComponents.js +12 -2
  60. package/dist/docx/export/lib/exportDocx.js +46 -17
  61. package/dist/docx/export/lib/internal/xml-builder.js +11 -16
  62. package/dist/docx/export/lib/reviewPart.js +1 -1
  63. package/dist/docx/export/lib/reviewProjection.js +52 -10
  64. package/dist/docx/import/index.d.ts +4 -4
  65. package/dist/docx/paste/index.d.ts +4 -4
  66. package/dist/dom/index.d.ts +1 -6
  67. package/dist/dom/plite-dom.internal.js +2 -2
  68. package/dist/excalidraw/index.d.ts +3 -2
  69. package/dist/excalidraw/react/index.d.ts +3 -2
  70. package/dist/facade.js +2 -2
  71. package/dist/features/basic-nodes/lib/BaseBlockPlugins.js +13 -5
  72. package/dist/features/basic-nodes/lib/BaseHeadingPlugins.js +32 -10
  73. package/dist/features/board/index.d.ts +2 -2
  74. package/dist/features/board/lib/BaseBoardPlugin.js +14 -1
  75. package/dist/features/board/lib/boardStroke.internal.js +13 -1
  76. package/dist/features/board/lib/boardTypes.internal.js +16 -0
  77. package/dist/features/callout/index.d.ts +3 -2
  78. package/dist/features/code-block/lib/BaseCodeBlockPlugin.js +14 -5
  79. package/dist/features/combobox/index.d.ts +2 -2
  80. package/dist/features/comments/BaseCommentsPlugin.js +33 -17
  81. package/dist/features/comments/index.d.ts +1 -1
  82. package/dist/features/date/index.d.ts +3 -2
  83. package/dist/features/details/index.d.ts +3 -2
  84. package/dist/features/details/lib/BaseDetailsPlugin.js +25 -12
  85. package/dist/features/field/index.d.ts +2 -0
  86. package/dist/features/field/index.js +4 -0
  87. package/dist/features/field/lib/BaseFieldPlugin.js +360 -0
  88. package/dist/features/field/lib/applyFieldValues.js +188 -0
  89. package/dist/features/field/lib/fieldRules.internal.js +204 -0
  90. package/dist/features/find/index.d.ts +3 -2
  91. package/dist/features/footnote/index.d.ts +1 -1
  92. package/dist/features/ink/index.d.ts +1 -1
  93. package/dist/features/ink/lib/BaseInkPlugin.js +126 -103
  94. package/dist/features/ink/lib/inkCodec.internal.js +130 -0
  95. package/dist/features/ink/lib/inkGone.internal.js +229 -48
  96. package/dist/features/ink/lib/inkPlaces.internal.js +534 -64
  97. package/dist/features/layout/index.d.ts +1 -1
  98. package/dist/features/link/lib/BaseLinkPlugin.js +6 -4
  99. package/dist/features/lint/index.d.ts +3 -2
  100. package/dist/features/media/index.d.ts +2 -2
  101. package/dist/features/media/index.js +2 -2
  102. package/dist/features/media/lib/media/parseMediaUrl.js +11 -1
  103. package/dist/features/media/lib/media-embed/BaseMediaEmbedPlugin.js +206 -4
  104. package/dist/features/mention/index.d.ts +5 -4
  105. package/dist/features/suggestion/index.d.ts +1 -1
  106. package/dist/features/table/index.d.ts +1 -1
  107. package/dist/features/table/lib/BaseTablePlugin.js +64 -15
  108. package/dist/features/table/lib/internal/selection.js +4 -2
  109. package/dist/features/toc/index.d.ts +1 -1
  110. package/dist/features/upload/index.d.ts +2 -2
  111. package/dist/features/upload/lib/BaseUploadPlugin.js +464 -250
  112. package/dist/history/index.d.ts +2 -2
  113. package/dist/html/index.d.ts +3 -3
  114. package/dist/html/server/index.d.ts +1 -1
  115. package/dist/{htmlTypes-DjeFG3P8.d.ts → htmlTypes-eT2ZGDAj.d.ts} +2 -31
  116. package/dist/hyperscript/index.d.ts +1 -1
  117. package/dist/{index-DzD6BIFJ.d.ts → index-B33E1CRJ.d.ts} +295 -6
  118. package/dist/{index-Cl77E9yr.d.ts → index-B7moSod7.d.ts} +2 -2
  119. package/dist/{index-hsC_sOn2.d.ts → index-B8-5Sr7I.d.ts} +35 -5
  120. package/dist/{index-BiQerPJS.d.ts → index-B8QJDAmG.d.ts} +2 -2
  121. package/dist/{index-BBKGrsG3.d.ts → index-BTx5oK7k.d.ts} +1 -1
  122. package/dist/{index-iaZOhA76.d.ts → index-BWPcE4ac-Cto_IsNs.d.ts} +7 -1
  123. package/dist/{index-BU6k1Aev.d.ts → index-BXjLmx1n-CXk17buG.d.ts} +4781 -4584
  124. package/dist/{index-kLKMc-pI.d.ts → index-BXwU9QH6.d.ts} +2 -2
  125. package/dist/{index-DTgaSxKr.d.ts → index-BkwR-5hH.d.ts} +40 -4
  126. package/dist/{index-Bq3sdm3S.d.ts → index-BsV2McRr.d.ts} +5 -4
  127. package/dist/index-C9Fu-P4E.d.ts +773 -0
  128. package/dist/{index-D5W-p9bS.d.ts → index-Ca48r1ng.d.ts} +49 -4
  129. package/dist/{index-CcZbqPqk.d.ts → index-Cob_iBdu.d.ts} +116 -41
  130. package/dist/{index-Bxfvicyy.d.ts → index-CpY7Xnxw.d.ts} +4 -3
  131. package/dist/{index-BkR7-GLI.d.ts → index-DNQXzU-X.d.ts} +2 -2
  132. package/dist/{index-D1CFXA-i.d.ts → index-DPowErHa.d.ts} +471 -141
  133. package/dist/{index-DaM37gF6.d.ts → index-DShbzec2.d.ts} +38 -23
  134. package/dist/{index-DC_MNGyu.d.ts → index-DYdObeFQ.d.ts} +3 -3
  135. package/dist/{index-Bc2Yg_2j.d.ts → index-Dq3Jlj8O-BJ6NxZm0.d.ts} +2 -2
  136. package/dist/{index-CT7miqQN.d.ts → index-DwWQVwQt.d.ts} +29 -11
  137. package/dist/{index-xdmCBvlT.d.ts → index-JWgwL5l3.d.ts} +5 -2
  138. package/dist/{index-DLA2DUR2.d.ts → index-M781pyx9.d.ts} +4 -3
  139. package/dist/{index-DdIRduDG.d.ts → index-d7io3MzC.d.ts} +3 -2
  140. package/dist/index.d.ts +4 -4
  141. package/dist/{react/internal → internal}/penStroke.internal.js +1 -1
  142. package/dist/internal/plugin/OverridePlugin.js +101 -119
  143. package/dist/internal/plugin/collectPlateNodeMappings.js +5 -1
  144. package/dist/internal/plugin/pastedUploadFiles.js +4 -0
  145. package/dist/internal/plugin/resolvePlugin.js +1 -1
  146. package/dist/internal/plugin/resolvePlugins.js +3 -0
  147. package/dist/internal/plugin/uploadDrafts.js +6 -0
  148. package/dist/internal/utils/mergePlugins.js +1 -0
  149. package/dist/lib/plugins/element-id/ElementIdPlugin.js +14 -18
  150. package/dist/lib/plugins/html/HtmlPlugin.js +9 -0
  151. package/dist/lib/plugins/html/htmlSafety.js +1 -1
  152. package/dist/lib/plugins/input-rules/InputRulesPlugin.js +77 -28
  153. package/dist/lib/plugins/input-rules/inputRuleVeto.internal.js +16 -0
  154. package/dist/markdown/index.d.ts +2 -2
  155. package/dist/markdown/index.js +3 -1
  156. package/dist/markdown/lib/MarkdownPlugin.js +14 -11
  157. package/dist/markdown/lib/RawHtmlPlugin.js +26 -0
  158. package/dist/markdown/lib/deserializer/mdastToSlate.js +12 -2
  159. package/dist/markdown/lib/internal/markdownConversion.js +776 -74
  160. package/dist/markdown/lib/internal/markdownDiagnostics.js +18 -7
  161. package/dist/markdown/lib/internal/markdownFootnoteWriter.js +35 -0
  162. package/dist/markdown/lib/internal/markdownFrontmatter.js +102 -0
  163. package/dist/markdown/lib/internal/markdownIntrinsics.js +125 -43
  164. package/dist/markdown/lib/internal/markdownLine.js +5 -3
  165. package/dist/markdown/lib/internal/markdownMappings.js +19 -7
  166. package/dist/markdown/lib/internal/markdownOpenTail.js +381 -0
  167. package/dist/markdown/lib/internal/markdownRawHtml.js +353 -0
  168. package/dist/markdown/lib/internal/markdownSegments.js +57 -48
  169. package/dist/markdown/lib/internal/markdownTags.js +29 -9
  170. package/dist/markdown/lib/serializer/convertNodesSerialize.js +10 -8
  171. package/dist/markdown/lib/serializer/convertPhrasingSerialize.js +226 -0
  172. package/dist/markdown/lib/serializer/listToMdastTree.js +2 -0
  173. package/dist/math/index.d.ts +3 -2
  174. package/dist/math/react/index.d.ts +4 -3
  175. package/dist/migrations/index.d.ts +3 -3
  176. package/dist/migrations/migratePlateV54.js +4 -6
  177. package/dist/migrations/migratePlateV54RetiredMarks.internal.js +23 -8
  178. package/dist/migrations/migratePlateV54Suggestions.internal.js +2 -2
  179. package/dist/migrations/v53-manifest.internal.js +4 -0
  180. package/dist/pagination/index.d.ts +1 -1
  181. package/dist/pagination/react/index.d.ts +4 -4
  182. package/dist/react/components/EditorContentView.internal.js +42 -23
  183. package/dist/react/components/EditorProvider.js +5 -5
  184. package/dist/react/components/Plate.js +102 -128
  185. package/dist/react/components/PlateContainer.js +40 -32
  186. package/dist/react/components/PlateController.js +28 -16
  187. package/dist/react/components/PlateRoot.internal.js +3 -2
  188. package/dist/react/core.js +4 -4
  189. package/dist/react/features/board/BoardSurface.js +116 -87
  190. package/dist/react/features/board/boardClipboard.internal.js +15 -5
  191. package/dist/react/features/board/boardExport.internal.js +470 -0
  192. package/dist/react/features/board/boardGesture.internal.js +6 -3
  193. package/dist/react/features/board/boardIndex.internal.js +7 -18
  194. package/dist/react/features/board/boardPictureStyles.internal.js +415 -0
  195. package/dist/react/features/board/boardPictures.internal.js +19 -13
  196. package/dist/react/features/board/boardView.internal.js +190 -50
  197. package/dist/react/features/board/boardVoice.internal.js +10 -11
  198. package/dist/react/features/board/index.d.ts +108 -18
  199. package/dist/react/features/callout/index.d.ts +3 -2
  200. package/dist/react/features/combobox/index.d.ts +8 -8
  201. package/dist/react/features/comments/index.d.ts +6 -5
  202. package/dist/react/features/date/index.d.ts +4 -3
  203. package/dist/react/features/details/index.d.ts +4 -3
  204. package/dist/react/features/field/FieldPlugin.js +35 -0
  205. package/dist/react/features/field/index.d.ts +315 -0
  206. package/dist/react/features/field/index.js +2 -0
  207. package/dist/react/features/footnote/index.d.ts +7 -6
  208. package/dist/react/features/format-painter/index.d.ts +4 -3
  209. package/dist/react/features/ink/InkContent.js +313 -0
  210. package/dist/react/features/ink/index.d.ts +57 -33
  211. package/dist/react/features/ink/index.js +2 -2
  212. package/dist/react/features/ink/inkCapture.internal.js +39 -17
  213. package/dist/react/features/ink/inkInput.internal.js +1 -1
  214. package/dist/react/features/ink/inkLayout.internal.js +6 -3
  215. package/dist/react/features/ink/inkPaint.internal.js +78 -2
  216. package/dist/react/features/ink/inkPlacement.internal.js +332 -104
  217. package/dist/react/features/ink/inkWatch.internal.js +7 -5
  218. package/dist/react/features/layout/index.d.ts +5 -4
  219. package/dist/react/features/media/index.d.ts +5 -4
  220. package/dist/react/features/mention/index.d.ts +6 -5
  221. package/dist/react/features/resizable/Resizable.js +4 -6
  222. package/dist/react/features/resizable/index.d.ts +5 -5
  223. package/dist/react/features/suggestion/index.d.ts +6 -5
  224. package/dist/react/features/table/TablePlugin.js +4 -11
  225. package/dist/react/features/table/index.d.ts +10 -8
  226. package/dist/react/features/table/useTableResize.js +10 -1
  227. package/dist/react/features/toc/index.d.ts +2 -2
  228. package/dist/react/features/upload/index.d.ts +11 -6
  229. package/dist/react/index.d.ts +6 -6
  230. package/dist/react/index.js +4 -4
  231. package/dist/react/internal/plate-context.js +434 -188
  232. package/dist/react/plite-react.js +2 -2
  233. package/dist/react/plugins/navigation-feedback/NavigationFeedbackPlugin.js +12 -10
  234. package/dist/react/stores/plate/useEditor.js +32 -14
  235. package/dist/react/stores/plate/useEditorHistory.js +55 -0
  236. package/dist/react/stores/plate/useEditorSelector.js +79 -21
  237. package/dist/react/utils/BlockPlaceholderPlugin.js +5 -2
  238. package/dist/react/utils/pipeRenderElement.internal.js +1 -1
  239. package/dist/react/utils/pluginRenderElement.internal.js +1 -1
  240. package/dist/react/virtualized.d.ts +4 -4
  241. package/dist/{source-CNKy99Th.d.ts → source-BGohy8vH.d.ts} +4 -4
  242. package/dist/static/index.d.ts +18 -18
  243. package/dist/static/internal/renderStaticHtmlWithOverrides.js +2 -2
  244. package/dist/static/internal/staticPresentation.js +4 -4
  245. package/dist/static/internal/writeStaticSelectionClipboardData.js +7 -2
  246. package/dist/tabbable/index.d.ts +1 -1
  247. package/dist/tabbable/react/index.d.ts +3 -3
  248. package/dist/testing/index.d.ts +3 -3
  249. package/dist/yjs/index.d.ts +1 -1
  250. package/dist/yjs/react/index.d.ts +6 -6
  251. package/package.json +20 -2
  252. package/dist/markdown/lib/serializer/convertTextsSerialize.js +0 -163
  253. package/dist/react/components/EditorSelectionView.js +0 -40
  254. package/dist/react/features/ink/InkLayer.js +0 -218
  255. package/dist/react/internal/createPlateTargetScope.js +0 -62
@@ -1,7 +1,7 @@
1
- import { $a as TransactionSpec, $i as NodeKey, $n as EditorLevelsOptions, $o as TxMethodDeclarations, $u as EditorJsonValue, A as TransferPlugin$1, Aa as PluginReference$1, Ba as RootKey, Bi as EditorUpdateTransactionProvider, Bt as EditorSchemaContract, Cl as PropertyValueOptions, Dn as EditorCommitContext, Ec as Element, El as SchemaContentDefault, Eu as SchemaTextPropertyDefinition, Fc as EditorSchemaPluginProvider, Fn as EditorDirectUpdate, Fo as NodeRemoveNodesOptions, Fs as Node$1, Gl as SchemaElementProperty, Gr as EditorStateSelectionApi, Hc as EditorSchemaContribution, Hs as NodeEntry, Il as SchemaContentRule, Jn as EditorGenericMethod, Ju as Path, Kc as EditorSchemaDerivedDefinition, Kl as SchemaElementPropertyDefinition, La as PluginWitnessFor, Lc as EditorSchemaSourceProvider, Ln as EditorDocumentValue, Lo as NodeSetNodesOptions, Ma as PluginTypeProvider, Mc as ElementOf, Mi as EditorUpdateContext, Ms as DescendantIn, Mu as Location, Na as PluginTypeProviderOf, Ni as EditorUpdateMethods, Nr as EditorSelectionBlockOptions, Ol as SchemaContentOptions, Os as Descendant, Ou as SchemaTextPropertyOptions, Pi as EditorUpdatePolicy, Qo as TxDeclaredMethod, Qr as EditorStateViewProvider, Qs as NodeMatchPredicate, Rc as SchemaNodeTypeProvider, Ri as EditorUpdateTransaction, Rl as SchemaElement, Si as EditorTransactionSelectionApi, Sl as PropertyValueOf, Sr as EditorReadMethods, Su as SchemaText, Tc as BaseElement, Tl as SchemaContent, Tu as SchemaTextProperty, Uo as MaximizeMode, Uu as BasePoint, Vi as EditorUpdateValueFromPlugin, Wi as EditorValueTypeProvider, Wl as SchemaElementPropertiesFor, Wr as EditorStateSchemaApi, Wu as Point$1, Xl as SchemaElementShapeFor, Xr as EditorStateView, Zn as EditorInstalledUpdateGroups, Zs as NodeMatch, an as BlockInsertOptions$1, ar as EditorNodeChangeContext, au as SchemaPluginsOf, bl as PropertyValueDescriptor, bo as TextInsertTextOptions, br as EditorReadMethodRecord, ca as PluginCapabilities, cc as NodeTypeSelector, cn as DefinitionOf$1, cr as EditorNodeGetOptions, cu as SchemaPropertyDefinition, dl as PropertyEnumDescriptor, dn as EditorBlockOptions, dr as EditorNodesOptions, ds as DecorationRefresh, ea as NodeTarget, ec as NodeOf, ei as EditorTextChangeContext, eo as Value, eu as SchemaElementTypes, fa as PluginDefinition, fc as BaseText, fl as PropertyJsonDescriptor, fr as EditorNodesReadOptions, ga as PluginDependencyReferenceFor, ha as PluginDependencyReference, hc as LeafPosition, hl as PropertyOptionsOf, i as StructuralPlainTextDiagnostic, ir as EditorNextOptions, iu as SchemaKeyPrefix, j as TransferRead, jl as SchemaContentRootContribution, jn as EditorCoreStateView, k as TransferApi, ko as NodeInsertNodesOptions, ku as SchemaTypesTarget, li as EditorTransactionChangeContext, ln as Editor$1, lr as EditorNodeTypeProvider, ls as Decoration, ma as PluginDependencyContractReference, ml as PropertyNumberDescriptor, mr as EditorPreviousOptions, ms as NodeSelection, na as Plugin, ni as EditorToggleBlockOptions, ou as SchemaProperty, pa as PluginDefinitionInput, pn as EditorBreakExitOptions, pr as EditorParentOptions, ps as EditorSelection, pu as SchemaPropertyKey, qc as EditorSchemaElement, qi as HistoryApi, qs as NodeIn, ta as PersistedDocumentInput, tl as EditorSchemaPlugin, tr as EditorLifecycleErrorSink, ua as PluginContribution, ul as PropertyBooleanDescriptor, un as EditorAboveOptions, ur as EditorNodeUnsetOptions, us as DecorationAttributes, uu as SchemaPropertyHandle, vl as PropertyStringDescriptor, wa as PluginPortal, wi as EditorTransactionSpecBuilder, wu as SchemaTextProperties, x as AuthoredProjectionDiagnostic, xa as PluginInstalledCapabilitiesOf, xr as EditorReadMethodTree, xu as SchemaTarget, y as ContentSlice, yc as Text$1, yo as TextInsertFragmentOptions, zi as EditorUpdateTransactionOf, zl as SchemaElementConstructionPropertiesFor, zu as Range } from "./index-BU6k1Aev.js";
2
- import { _ as EditorSchemaValidationDiagnostic, a as HtmlEditorSerializeOptions, d as HtmlSerializeResult, f as HtmlSliceParseResult, h as EditorApplicationSchema, i as HtmlEditorParseOptions, r as HtmlDocumentParseResult, t as HtmlApi } from "./htmlTypes-DjeFG3P8.js";
3
- import { D as ScrollIntoViewOptions, S as DOMClipboardApi, g as DOMPlugin$1, l as DataTransferEncodeContext, r as HotkeySpec, s as DataTransferDecodeContext, x as DOMApi, z as DOMRange } from "./index-DaM37gF6.js";
4
- import { o as HistoryStateApi, r as HistoryPlugin$1, s as HistoryTxApi } from "./index-BkR7-GLI.js";
1
+ import { $ as EditorBreakExitOptions, $a as Path, $n as EditorSchemaSourceProvider, $r as EditorTransactionSpecBuilder, $t as EditorNodeTypeProvider, Ac as SchemaTextPropertyOptions, Ba as NodeTarget, Bo as PluginTypeProviderOf, Bs as SchemaElementConstructionPropertiesFor, Bt as EditorInstalledUpdateGroups, Ca as NodeKey, Cc as SchemaTarget, Ci as Element, Da as NodeMatchPredicate, Dc as SchemaTextProperty, Di as ElementIdTarget, Dl as TextTarget, Dr as EditorStateViewProvider, Ds as SchemaContentDefault, Ea as NodeMatch, Ec as SchemaTextProperties, Es as SchemaContent, F as DecorationAttributes, Fl as TransferApi, Fo as PluginReference$1, Gs as SchemaElementPropertiesFor, Gt as EditorLifecycleErrorSink, H as Descendant, Ht as EditorJsonValue, I as DecorationRefresh, Ia as NodeSelection, Ji as Location, Jl as TransferRead, Jt as EditorNextOptions, K as DescendantIn, Ks as SchemaElementProperty, Ls as SchemaContentRule, Lt as EditorGenericMethod, Ma as NodeOf, Ms as SchemaContentRootContribution, Nl as TransactionSpec, Nn as EditorSchemaDerivedDefinition, Oc as SchemaTextPropertyDefinition, Oo as PluginPortal, P as Decoration, Pa as NodeRemoveNodesOptions, Pi as HistoryApi, Pn as EditorSchemaElement, Qo as PropertyBooleanDescriptor, Qt as EditorNodeGetOptions, R as DefinitionOf$1, Ra as NodeSetNodesOptions, Rr as EditorTransactionChangeContext, S as BaseText, St as EditorDirectUpdate, To as PluginInstalledCapabilitiesOf, Tr as EditorStateView, Tt as EditorDocumentValue, Un as EditorSchemaPlugin, Ut as EditorLevelsOptions, Wn as EditorSchemaPluginProvider, Wo as PluginWitnessFor, X as EditorAboveOptions, Y as Editor$1, Yt as EditorNodeChangeContext, Z as EditorBlockOptions, Zr as EditorTransactionSelectionApi, Zs as SchemaElementShapeFor, _o as PluginDefinitionInput, aa as Node$1, ac as SchemaKeyPrefix, au as TxMethodDeclarations, b as BasePoint, bi as EditorValueTypeProvider, bl as TextInsertFragmentOptions, bo as PluginDependencyReferenceFor, br as EditorStateSelectionApi, cc as SchemaProperty, ci as EditorUpdateMethods, cr as EditorSelectionBlockOptions, dl as Text$1, dn as EditorReadMethodTree, ds as PropertyValueOf, ea as MaximizeMode, en as EditorNodeUnsetOptions, es as PropertyEnumDescriptor, fc as SchemaPropertyHandle, fn as EditorReadMethods, fo as PluginCapabilities, fs as PropertyValueOptions, gi as EditorUpdateValueFromPlugin, go as PluginDefinition, hc as SchemaPropertyKey, hi as EditorUpdateTransactionProvider, in as EditorPreviousOptions, io as PersistedDocumentInput, is as PropertyOptionsOf, iu as TxDeclaredMethod, j as ContentSlice, jc as SchemaTypesTarget, ji as ElementOf, jr as EditorToggleBlockOptions, kn as EditorSchemaContribution, kr as EditorTextChangeContext, ks as SchemaContentOptions, li as EditorUpdatePolicy, ll as StructuralPlainTextDiagnostic, ls as PropertyValueDescriptor, lu as WithNodeTarget, m as AuthoredProjectionDiagnostic, mi as EditorUpdateTransactionOf, mo as PluginContribution, mt as EditorCommitContext, nn as EditorNodesReadOptions, oc as SchemaNodeTypeProvider, oo as Plugin, pa as NodeEntry, pi as EditorUpdateTransaction, ps as Range, qa as NodeTypeSelector, qi as LeafPosition, ql as TransferPlugin$1, qo as Point$1, qs as SchemaElementPropertyDefinition, rn as EditorParentOptions, rs as PropertyNumberDescriptor, sc as SchemaPluginsOf, si as EditorUpdateContext, sr as EditorSelection, ss as PropertyStringDescriptor, su as Value, tc as SchemaElementTypes, tn as EditorNodesOptions, ts as PropertyJsonDescriptor, uc as SchemaPropertyDefinition, un as EditorReadMethodRecord, v as BaseElement, va as NodeIn, vo as PluginDependencyContractReference, vt as EditorCoreStateView, w as BlockInsertOptions$1, wc as SchemaText, ws as RootKey, xl as TextInsertTextOptions, xn as EditorSchemaContract, ya as NodeInsertNodesOptions, yo as PluginDependencyReference, yr as EditorStateSchemaApi, zo as PluginTypeProvider, zs as SchemaElement } from "./index-BXjLmx1n-CXk17buG.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-eT2ZGDAj.js";
3
+ import { E as DataTransferEncodeContext, I as ScrollIntoViewOptions, P as HotkeySpec, _ as DOMRange, i as DOMClipboardApi, m as DOMPlugin$1, r as DOMApi, w as DataTransferDecodeContext } from "./index-DShbzec2.js";
4
+ import { d as HistoryTxApi, s as HistoryPlugin$1, u as HistoryStateApi } from "./index-DNQXzU-X.js";
5
5
  import { Draft } from "mutative";
6
6
  import { nanoid as nanoid$1 } from "nanoid";
7
7
  import "zustand/vanilla";
@@ -10,17 +10,6 @@ import { InlineMath, Math } from "mdast-util-math";
10
10
  import { MdxJsxAttribute, MdxJsxFlowElement, MdxJsxTextElement } from "mdast-util-mdx";
11
11
  import { Node } from "unist";
12
12
  import { KeyboardEventLike, isHotkey } from "is-hotkey";
13
- /** Runtime document/fragment validation error with immutable diagnostics. */
14
- declare class EditorSchemaValidationError extends Error {
15
- readonly diagnostics: readonly EditorSchemaValidationDiagnostic[];
16
- constructor(diagnostics: EditorSchemaValidationDiagnostic | readonly EditorSchemaValidationDiagnostic[] | string, options?: Readonly<{
17
- cause?: unknown;
18
- }>);
19
- }
20
- /** Hook for replacing values before debug output is stringified. */
21
- type DebugValueScrubber = (key: string, value: unknown) => unknown;
22
- /** Override the debug value scrubber used by diagnostic formatting. */
23
- declare const setDebugValueScrubber: (scrubber: DebugValueScrubber | null | undefined) => void;
24
13
  declare const generatedEditorTypes: unique symbol;
25
14
  type GeneratedEditorSchema = Readonly<{
26
15
  plugins: Readonly<Record<string, Readonly<{
@@ -768,6 +757,93 @@ type WithRequiredName<P = {}> = (P extends {
768
757
  type ExactPluginDefinitionOf<P> = P extends PluginDefinitionWitness<infer D> ? D : never;
769
758
  /** Internal exact definition, including finite dependency capability carriers. */
770
759
  type InternalPluginDefinitionOf<P> = [ExactPluginDefinitionOf<P>] extends [never] ? P extends PluginReference$1 ? never : P extends AnyBasePluginDefinition ? P : Extract<DefinitionOf<P>, AnyBasePluginDefinition> : Extract<ExactPluginDefinitionOf<P>, AnyBasePluginDefinition>;
760
+ type PluginDefinitionOf$1<P> = InternalPluginDefinitionOf<P> extends (infer D) ? [D] extends [never] ? P extends AnyBasePluginDefinition ? P : P extends AnyBasePlugin ? AnyBasePluginDefinition : never : Extract<D, AnyBasePluginDefinition> : never;
761
+ type SchemaPropertyDescriptorMap = Readonly<Record<string, PropertyValueDescriptor>>;
762
+ type PluginWritablePropertyEntriesOf$1<D extends AnyBasePluginDefinition> = D extends Readonly<{
763
+ __pluginWritableProperties: infer TEntry;
764
+ }> ? TEntry : InferPluginWritablePropertyEntries<D>;
765
+ type RawSchemaPropertyEntries<TProperties extends SchemaPropertyDescriptorMap, TPlacement extends 'element' | 'text'> = { [TLocalId in Extract<keyof TProperties, string>]: Readonly<{
766
+ descriptor: TProperties[TLocalId];
767
+ key: TLocalId;
768
+ localId: TLocalId;
769
+ placement: TPlacement;
770
+ }>; }[Extract<keyof TProperties, string>];
771
+ type SchemaPropertyEntriesOf<TSource, TPlacement extends 'element' | 'text'> = TSource extends unknown ? [PluginDefinitionOf$1<TSource>] extends [never] ? TSource extends SchemaPropertyDescriptorMap ? RawSchemaPropertyEntries<TSource, TPlacement> : never : Extract<PluginWritablePropertyEntriesOf$1<Extract<PluginDefinitionOf$1<TSource>, AnyBasePluginDefinition>>, Readonly<{
772
+ placement: TPlacement;
773
+ }>> : never;
774
+ type SchemaPropertyRequiredLocalId<TEntries> = TEntries extends Readonly<{
775
+ key: string;
776
+ localId: infer TLocalId extends string;
777
+ }> ? TLocalId : never;
778
+ type SchemaPropertyName<TKey> = TKey extends string ? TKey : TKey extends SchemaKeyPrefix<infer TPrefix> ? `${TPrefix}${string}` : never;
779
+ type SchemaPropertyEntryName<TEntry> = TEntry extends Readonly<{
780
+ key: infer TKey;
781
+ }> ? SchemaPropertyName<TKey> : never;
782
+ type SchemaPropertyEntryValue<TEntry> = TEntry extends Readonly<{
783
+ descriptor: infer TDescriptor;
784
+ }> ? PropertyValueOf<TDescriptor> : never;
785
+ type PresentSchemaPropertyEntryValue<TEntry> = TEntry extends Readonly<{
786
+ descriptor: infer TDescriptor;
787
+ }> ? TDescriptor extends PropertyValueDescriptor ? TDescriptor extends Readonly<{
788
+ omitDefault: true;
789
+ }> ? PropertyOptionsOf<TDescriptor> extends {
790
+ default: infer TDefault;
791
+ } ? Exclude<PropertyValueOf<TDescriptor>, TDefault> : PropertyValueOf<TDescriptor> : PropertyValueOf<TDescriptor> : never : never;
792
+ type Materialize$2<T> = { [TKey in keyof T]: T[TKey]; };
793
+ type UnionToIntersection<T> = (T extends unknown ? (value: T) => void : never) extends ((value: infer TIntersection) => void) ? TIntersection : never;
794
+ type SchemaPropertyEntryShape<TEntry, TRequired extends string> = TEntry extends Readonly<{
795
+ localId: infer TLocalId extends string;
796
+ }> ? TLocalId extends TRequired ? Readonly<{ [TName in SchemaPropertyEntryName<TEntry>]-?: PresentSchemaPropertyEntryValue<TEntry>; }> : Readonly<{ [TName in SchemaPropertyEntryName<TEntry>]?: SchemaPropertyEntryValue<TEntry>; }> : never;
797
+ type SchemaPropertyShape<TEntries, TRequired extends SchemaPropertyRequiredLocalId<TEntries>> = Materialize$2<UnionToIntersection<SchemaPropertyEntryShape<TEntries, TRequired>>>;
798
+ type SchemaPropertySource = AnyBasePlugin | AnyBasePluginDefinition | SchemaPropertyDescriptorMap;
799
+ /**
800
+ * Element narrowed to schema properties contributed by one or more owners.
801
+ * The second generic marks exact authored local IDs known to be present.
802
+ */
803
+ type ElementWith<TSource extends SchemaPropertySource, TRequired extends SchemaPropertyRequiredLocalId<SchemaPropertyEntriesOf<TSource, 'element'>> = never> = Element & SchemaPropertyShape<SchemaPropertyEntriesOf<TSource, 'element'>, TRequired>;
804
+ /**
805
+ * Text leaf narrowed to schema properties contributed by one or more owners.
806
+ * The second generic marks exact authored local IDs known to be present.
807
+ */
808
+ type TextWith<TSource extends SchemaPropertySource, TRequired extends SchemaPropertyRequiredLocalId<SchemaPropertyEntriesOf<TSource, 'text'>> = never> = Text$1 & SchemaPropertyShape<SchemaPropertyEntriesOf<TSource, 'text'>, TRequired>;
809
+ type FormatContribution<D extends AnyBasePluginDefinition> = InferExactPluginSchemaContribution<D>;
810
+ type FormatContributionSource<D extends AnyBasePluginDefinition> = EditorSchemaSourceProvider<() => FormatContribution<D>>;
811
+ type FormatContributionElementType<D extends AnyBasePluginDefinition> = Extract<InferPluginDocumentType<D>, SchemaElementTypes<FormatContributionSource<D>>>;
812
+ type FormatElementNode<D extends AnyBasePluginDefinition> = [FormatContributionElementType<D>] extends [never] ? never : Extract<SchemaElementShapeFor<FormatContributionSource<D>, FormatContributionElementType<D>>, Element>;
813
+ type FormatPropertyEntries<D extends AnyBasePluginDefinition, TPlacement extends 'element' | 'text'> = Extract<InferPluginWritablePropertyEntries<D>, Readonly<{
814
+ placement: TPlacement;
815
+ }>>;
816
+ /** Value owned by the format mapping's schema-bound text property. */
817
+ type PluginFormatTextValue<D extends AnyBasePluginDefinition> = FormatPropertyEntries<D, 'text'> extends (infer TEntry) ? TEntry extends Readonly<{
818
+ descriptor: infer TDescriptor extends PropertyValueDescriptor;
819
+ }> ? PropertyValueOf<TDescriptor> : never : never;
820
+ /**
821
+ * Whether the format mapping target contributes a mark (a text property)
822
+ * rather than an element; `boolean` when the definition does not say.
823
+ */
824
+ type PluginFormatIsMark<D extends AnyBasePluginDefinition> = [FormatElementNode<D>] extends [never] ? [FormatPropertyEntries<D, 'text'>] extends [never] ? boolean : true : false;
825
+ /** Element property keys the format mapping target's own schema contributes. */
826
+ type PluginFormatOwnedPropertyKey<D extends AnyBasePluginDefinition> = Exclude<Extract<keyof FormatElementNode<D>, string>, 'children' | 'type'> | (FormatPropertyEntries<D, 'element'> extends (infer TEntry) ? TEntry extends Readonly<{
827
+ key: infer TKey extends string;
828
+ }> ? TKey : never : never);
829
+ /** Node narrowed from the format mapping target's schema contribution. */
830
+ 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>;
831
+ /**
832
+ * How Word export writes an element Word has no form for: as one run of text.
833
+ * The export reports what that drops once per plugin, as a `property-dropped`
834
+ * warning that counts the elements.
835
+ */
836
+ type DocxNodeMapping<D extends AnyBasePluginDefinition> = Readonly<{
837
+ /**
838
+ * What Word keeps and drops of each element, such as "Word keeps each field
839
+ * answer and drops its settings." It is the warning's message.
840
+ */
841
+ dropped: string;
842
+ /** The text Word export writes in place of `node`. */
843
+ text: (context: Readonly<{
844
+ node: PluginFormatNode<D>;
845
+ }>) => string;
846
+ }>;
771
847
  /** If true, the next handlers will be skipped. */
772
848
  type HandlerReturnType = boolean | void;
773
849
  /** The `childRoots` slot names of `N`, or any slot name when `N` declares none. */
@@ -850,77 +926,6 @@ type MarkdownOmittedPropertyInput = Readonly<{
850
926
  message: string;
851
927
  nodeType?: never;
852
928
  }>;
853
- type PluginDefinitionOf$1<P> = InternalPluginDefinitionOf<P> extends (infer D) ? [D] extends [never] ? P extends AnyBasePluginDefinition ? P : P extends AnyBasePlugin ? AnyBasePluginDefinition : never : Extract<D, AnyBasePluginDefinition> : never;
854
- type SchemaPropertyDescriptorMap = Readonly<Record<string, PropertyValueDescriptor>>;
855
- type PluginWritablePropertyEntriesOf$1<D extends AnyBasePluginDefinition> = D extends Readonly<{
856
- __pluginWritableProperties: infer TEntry;
857
- }> ? TEntry : InferPluginWritablePropertyEntries<D>;
858
- type RawSchemaPropertyEntries<TProperties extends SchemaPropertyDescriptorMap, TPlacement extends 'element' | 'text'> = { [TLocalId in Extract<keyof TProperties, string>]: Readonly<{
859
- descriptor: TProperties[TLocalId];
860
- key: TLocalId;
861
- localId: TLocalId;
862
- placement: TPlacement;
863
- }>; }[Extract<keyof TProperties, string>];
864
- type SchemaPropertyEntriesOf<TSource, TPlacement extends 'element' | 'text'> = TSource extends unknown ? [PluginDefinitionOf$1<TSource>] extends [never] ? TSource extends SchemaPropertyDescriptorMap ? RawSchemaPropertyEntries<TSource, TPlacement> : never : Extract<PluginWritablePropertyEntriesOf$1<Extract<PluginDefinitionOf$1<TSource>, AnyBasePluginDefinition>>, Readonly<{
865
- placement: TPlacement;
866
- }>> : never;
867
- type SchemaPropertyRequiredLocalId<TEntries> = TEntries extends Readonly<{
868
- key: string;
869
- localId: infer TLocalId extends string;
870
- }> ? TLocalId : never;
871
- type SchemaPropertyName<TKey> = TKey extends string ? TKey : TKey extends SchemaKeyPrefix<infer TPrefix> ? `${TPrefix}${string}` : never;
872
- type SchemaPropertyEntryName<TEntry> = TEntry extends Readonly<{
873
- key: infer TKey;
874
- }> ? SchemaPropertyName<TKey> : never;
875
- type SchemaPropertyEntryValue<TEntry> = TEntry extends Readonly<{
876
- descriptor: infer TDescriptor;
877
- }> ? PropertyValueOf<TDescriptor> : never;
878
- type PresentSchemaPropertyEntryValue<TEntry> = TEntry extends Readonly<{
879
- descriptor: infer TDescriptor;
880
- }> ? TDescriptor extends PropertyValueDescriptor ? TDescriptor extends Readonly<{
881
- omitDefault: true;
882
- }> ? PropertyOptionsOf<TDescriptor> extends {
883
- default: infer TDefault;
884
- } ? Exclude<PropertyValueOf<TDescriptor>, TDefault> : PropertyValueOf<TDescriptor> : PropertyValueOf<TDescriptor> : never : never;
885
- type Materialize$2<T> = { [TKey in keyof T]: T[TKey]; };
886
- type UnionToIntersection<T> = (T extends unknown ? (value: T) => void : never) extends ((value: infer TIntersection) => void) ? TIntersection : never;
887
- type SchemaPropertyEntryShape<TEntry, TRequired extends string> = TEntry extends Readonly<{
888
- localId: infer TLocalId extends string;
889
- }> ? TLocalId extends TRequired ? Readonly<{ [TName in SchemaPropertyEntryName<TEntry>]-?: PresentSchemaPropertyEntryValue<TEntry>; }> : Readonly<{ [TName in SchemaPropertyEntryName<TEntry>]?: SchemaPropertyEntryValue<TEntry>; }> : never;
890
- type SchemaPropertyShape<TEntries, TRequired extends SchemaPropertyRequiredLocalId<TEntries>> = Materialize$2<UnionToIntersection<SchemaPropertyEntryShape<TEntries, TRequired>>>;
891
- type SchemaPropertySource = AnyBasePlugin | AnyBasePluginDefinition | SchemaPropertyDescriptorMap;
892
- /**
893
- * Element narrowed to schema properties contributed by one or more owners.
894
- * The second generic marks exact authored local IDs known to be present.
895
- */
896
- type ElementWith<TSource extends SchemaPropertySource, TRequired extends SchemaPropertyRequiredLocalId<SchemaPropertyEntriesOf<TSource, 'element'>> = never> = Element & SchemaPropertyShape<SchemaPropertyEntriesOf<TSource, 'element'>, TRequired>;
897
- /**
898
- * Text leaf narrowed to schema properties contributed by one or more owners.
899
- * The second generic marks exact authored local IDs known to be present.
900
- */
901
- type TextWith<TSource extends SchemaPropertySource, TRequired extends SchemaPropertyRequiredLocalId<SchemaPropertyEntriesOf<TSource, 'text'>> = never> = Text$1 & SchemaPropertyShape<SchemaPropertyEntriesOf<TSource, 'text'>, TRequired>;
902
- type FormatContribution<D extends AnyBasePluginDefinition> = InferExactPluginSchemaContribution<D>;
903
- type FormatContributionSource<D extends AnyBasePluginDefinition> = EditorSchemaSourceProvider<() => FormatContribution<D>>;
904
- type FormatContributionElementType<D extends AnyBasePluginDefinition> = Extract<InferPluginDocumentType<D>, SchemaElementTypes<FormatContributionSource<D>>>;
905
- type FormatElementNode<D extends AnyBasePluginDefinition> = [FormatContributionElementType<D>] extends [never] ? never : Extract<SchemaElementShapeFor<FormatContributionSource<D>, FormatContributionElementType<D>>, Element>;
906
- type FormatPropertyEntries<D extends AnyBasePluginDefinition, TPlacement extends 'element' | 'text'> = Extract<InferPluginWritablePropertyEntries<D>, Readonly<{
907
- placement: TPlacement;
908
- }>>;
909
- /** Value owned by the format mapping's schema-bound text property. */
910
- type PluginFormatTextValue<D extends AnyBasePluginDefinition> = FormatPropertyEntries<D, 'text'> extends (infer TEntry) ? TEntry extends Readonly<{
911
- descriptor: infer TDescriptor extends PropertyValueDescriptor;
912
- }> ? PropertyValueOf<TDescriptor> : never : never;
913
- /**
914
- * Whether the format mapping target contributes a mark (a text property)
915
- * rather than an element; `boolean` when the definition does not say.
916
- */
917
- type PluginFormatIsMark<D extends AnyBasePluginDefinition> = [FormatElementNode<D>] extends [never] ? [FormatPropertyEntries<D, 'text'>] extends [never] ? boolean : true : false;
918
- /** Element property keys the format mapping target's own schema contributes. */
919
- type PluginFormatOwnedPropertyKey<D extends AnyBasePluginDefinition> = Exclude<Extract<keyof FormatElementNode<D>, string>, 'children' | 'type'> | (FormatPropertyEntries<D, 'element'> extends (infer TEntry) ? TEntry extends Readonly<{
920
- key: infer TKey extends string;
921
- }> ? TKey : never : never);
922
- /** Node narrowed from the format mapping target's schema contribution. */
923
- 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>;
924
929
  /** Standard MDAST node kinds a mapping can select with `node`. */
925
930
  type MarkdownNodeKinds = {
926
931
  blockquote: Blockquote;
@@ -1003,7 +1008,12 @@ type MarkdownDecodeContext<TNode extends Node = Node, D extends AnyBasePluginDef
1003
1008
  node: TNode;
1004
1009
  /** The node before this one among its Markdown siblings. */
1005
1010
  previousSibling: RootContent | null;
1006
- /** Attributes of `tag` (default: this node) decoded for the target type. */
1011
+ /**
1012
+ * Attributes of `tag` (default: this node). `properties` holds the
1013
+ * non-metadata properties decoded from them: this plugin's under their
1014
+ * `attributes` names and other plugins' by key. Read a metadata property,
1015
+ * such as an id, from the raw `attributes`.
1016
+ */
1007
1017
  readTagAttributes: (tag?: MarkdownTagNode) => MarkdownTagAttributeView;
1008
1018
  refuse: (message: string) => MarkdownRefusal;
1009
1019
  report: (diagnostic: MarkdownMappingDiagnosticInput | MarkdownOmittedPropertyInput) => void;
@@ -1049,10 +1059,12 @@ type MarkdownEncodeContext<TNode extends Descendant = Descendant, D extends AnyB
1049
1059
  encodeAttributes: (properties: Readonly<Record<string, unknown>>) => MdxJsxAttribute[];
1050
1060
  /**
1051
1061
  * Encode `node` as a mapping without `encode` writes its tag: this
1052
- * plugin's properties under their `attributes` names, then other plugins'
1053
- * non-metadata properties by key, except those the enclosing Markdown
1054
- * structure writes (list topology). Claims the properties it writes, so
1055
- * return the attributes in your output.
1062
+ * plugin's non-metadata properties under their `attributes` names, then
1063
+ * other plugins' non-metadata properties by key, except those the
1064
+ * enclosing Markdown structure writes (list topology). Claims the
1065
+ * properties it writes, so return the attributes in your output. A
1066
+ * mapping that keeps a metadata property, such as an id, writes it with
1067
+ * `encodeAttributes`.
1056
1068
  */
1057
1069
  encodeNodeAttributes: () => MdxJsxAttribute[];
1058
1070
  node: TNode;
@@ -1511,12 +1523,6 @@ type ElementIdPluginState = {
1511
1523
  /** Generate one persisted ID for a newly materialized element. */
1512
1524
  generateId: () => string;
1513
1525
  };
1514
- type ElementIdEntry = Readonly<{
1515
- key: NodeKey;
1516
- node: Element;
1517
- path: Path;
1518
- root: RootKey;
1519
- }>;
1520
1526
  declare const ElementIdPlugin: BasePlugin<Readonly<{
1521
1527
  readonly __pluginWritableProperties: Readonly<{
1522
1528
  descriptor: PropertyStringDescriptor<{
@@ -1536,6 +1542,9 @@ declare const ElementIdPlugin: BasePlugin<Readonly<{
1536
1542
  }>, Readonly<{
1537
1543
  group: "element";
1538
1544
  kind: "group";
1545
+ }>, Readonly<{
1546
+ key: string;
1547
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
1539
1548
  }>>;
1540
1549
  };
1541
1550
  };
@@ -1545,7 +1554,6 @@ declare const ElementIdPlugin: BasePlugin<Readonly<{
1545
1554
  readonly generateId: () => string;
1546
1555
  };
1547
1556
  readonly read: {
1548
- readonly entry: (id: string) => ElementIdEntry | undefined;
1549
1557
  readonly id: (key: NodeKey) => string | undefined;
1550
1558
  };
1551
1559
  }>> & Readonly<Record<never, never>>;
@@ -1571,7 +1579,7 @@ type InputRuleDecline = Readonly<{
1571
1579
  }>;
1572
1580
  type InputRuleTarget = 'insertBreak' | 'insertData' | 'insertText';
1573
1581
  type InputRuleInsertTextOptions = Omit<TextInsertTextOptions, 'at'> & {
1574
- at?: NodeTarget;
1582
+ at?: TextTarget;
1575
1583
  };
1576
1584
  type ReadPluginPortal<TPortal> = Pick<TPortal, Extract<keyof TPortal, 'api' | 'installed' | 'name' | 'read' | 'schema' | 'selectors'>> & (TPortal extends {
1577
1585
  store: infer TStore;
@@ -1586,8 +1594,10 @@ type InputRulePluginLookup = {
1586
1594
  };
1587
1595
  /** Read-only editor capabilities available while an input rule is selected. */
1588
1596
  type InputRuleEditor<TEditor = Editor> = TEditor extends {
1597
+ key: infer TKeyApi;
1589
1598
  read: infer TRead;
1590
1599
  } ? {
1600
+ readonly key: TKeyApi;
1591
1601
  readonly plugin: InputRulePluginLookup;
1592
1602
  readonly read: { readonly [TKey in keyof TRead]: TRead[TKey]; };
1593
1603
  } : never;
@@ -1728,10 +1738,39 @@ type InsertBreakInputRule<TMatch = true, TEditor = Editor> = BaseInputRule<Inser
1728
1738
  };
1729
1739
  type InsertDataInputRule<TMatch = true, TEditor = Editor> = BaseInputRule<InsertDataInputRuleReadContext<TEditor>> & {
1730
1740
  apply: BivariantCallback<[context: InsertDataInputRuleContext<TEditor>, match: TMatch], InputRuleContinuation<DataTransfer | undefined> | InputRuleDecline | undefined>;
1741
+ followUp?: never;
1731
1742
  mimeTypes?: string[];
1732
1743
  resolve?: BivariantCallback<[context: InsertDataInputRuleReadContext<TEditor>], TMatch | undefined>;
1733
1744
  target: 'insertData';
1734
1745
  };
1746
+ /** A paste follow-up's context, which holds a transaction on the view that pasted. */
1747
+ type InsertDataFollowUpContext<TEditor = Editor> = {
1748
+ tx: InputRuleTransaction<TEditor>;
1749
+ };
1750
+ /**
1751
+ * An `insertData` rule that leaves the paste alone and runs `followUp` after
1752
+ * it, as its own undo step on the view that pasted. It runs only after a local
1753
+ * paste that landed content and that undo history saved, and never when that
1754
+ * view is read-only. `resolve` reads the state the paste started from, and
1755
+ * `followUp` gets its match and no range, so it checks what it acts on before
1756
+ * it writes. Declare it through `defineInputRule`.
1757
+ */
1758
+ type InsertDataFollowUpInputRule<TMatch = unknown, TEditor = Editor> = BaseInputRule<InsertDataInputRuleReadContext<TEditor>> & {
1759
+ apply?: never;
1760
+ followUp: BivariantCallback<[context: InsertDataFollowUpContext<TEditor>, match: TMatch], undefined>;
1761
+ mimeTypes?: string[];
1762
+ resolve: BivariantCallback<[context: InsertDataInputRuleReadContext<TEditor>], TMatch | undefined>;
1763
+ target: 'insertData';
1764
+ };
1765
+ declare const checkedFollowUp: unique symbol;
1766
+ /**
1767
+ * A follow-up rule that `defineInputRule` returned. Only `defineInputRule`
1768
+ * checks that `followUp` takes what `resolve` returns, so a plugin's
1769
+ * `inputRules` takes a follow-up rule only in this form.
1770
+ */
1771
+ type DefinedInsertDataFollowUpInputRule<TMatch = unknown, TEditor = Editor> = InsertDataFollowUpInputRule<TMatch, TEditor> & {
1772
+ readonly [checkedFollowUp]: true;
1773
+ };
1735
1774
  type InsertTextInputRule<TMatch = true, TEditor = Editor> = BaseInputRule<InsertTextInputRuleReadContext<TEditor>> & {
1736
1775
  apply: BivariantCallback<[context: InsertTextInputRuleContext<TEditor>, match: TMatch], InputRuleContinuation<{
1737
1776
  options?: InputRuleInsertTextOptions;
@@ -1741,17 +1780,25 @@ type InsertTextInputRule<TMatch = true, TEditor = Editor> = BaseInputRule<Insert
1741
1780
  target: 'insertText';
1742
1781
  trigger: readonly string[] | string;
1743
1782
  };
1744
- type InputRule<TMatch = unknown, TEditor = Editor> = InsertBreakInputRule<TMatch, TEditor> | InsertDataInputRule<TMatch, TEditor> | InsertTextInputRule<TMatch, TEditor>;
1745
- type StoredInputRule = InsertBreakInputRule<any, any> | InsertDataInputRule<any, any> | InsertTextInputRule<any, any>;
1783
+ type InputRule<TMatch = unknown, TEditor = Editor> = InsertBreakInputRule<TMatch, TEditor> | InsertDataInputRule<TMatch, TEditor> | InsertDataFollowUpInputRule<TMatch, TEditor> | InsertTextInputRule<TMatch, TEditor>;
1784
+ type StoredInputRule = InsertBreakInputRule<any, any> | InsertDataInputRule<any, any> | InsertDataFollowUpInputRule<any, any> | InsertTextInputRule<any, any>;
1746
1785
  type InputRuleReference = (BaseInputRule<never> & {
1747
1786
  apply: BivariantCallback<[context: never, match: never], unknown>;
1748
1787
  resolve?: BivariantCallback<[context: never], unknown>;
1749
1788
  target: 'insertBreak';
1750
1789
  }) | (BaseInputRule<never> & {
1751
1790
  apply: BivariantCallback<[context: never, match: never], unknown>;
1791
+ followUp?: never;
1752
1792
  mimeTypes?: string[];
1753
1793
  resolve?: BivariantCallback<[context: never], unknown>;
1754
1794
  target: 'insertData';
1795
+ }) | (BaseInputRule<never> & {
1796
+ apply?: never;
1797
+ followUp: BivariantCallback<[context: never, match: never], undefined>;
1798
+ mimeTypes?: string[];
1799
+ resolve: BivariantCallback<[context: never], unknown>;
1800
+ target: 'insertData';
1801
+ readonly [checkedFollowUp]: true;
1755
1802
  }) | (BaseInputRule<never> & {
1756
1803
  apply: BivariantCallback<[context: never, match: never], unknown>;
1757
1804
  resolve?: BivariantCallback<[context: never], unknown>;
@@ -1759,7 +1806,7 @@ type InputRuleReference = (BaseInputRule<never> & {
1759
1806
  trigger: readonly string[] | string;
1760
1807
  });
1761
1808
  type InputRulesDefinition<TEditor = Editor> = InputRulesConfig<TEditor>;
1762
- type InputRulesConfig<TEditor = Editor> = Array<InputRule<any, TEditor> | InputRuleReference>;
1809
+ type InputRulesConfig<TEditor = Editor> = Array<InsertBreakInputRule<any, TEditor> | InsertDataInputRule<any, TEditor> | DefinedInsertDataFollowUpInputRule<any, TEditor> | InsertTextInputRule<any, TEditor> | InputRuleReference>;
1763
1810
  type ResolvedInputRule = StoredInputRule & {
1764
1811
  id: string;
1765
1812
  plugin: AnyBasePlugin;
@@ -2141,16 +2188,22 @@ type BoundResolvedInsertDataRule<P extends InputRuleOwner, TMatch> = Omit<Insert
2141
2188
  apply: (context: InsertDataInputRuleContext<OwnerEditor<P>>, match: NoInfer<TMatch>) => ReturnType<InsertDataInputRule<TMatch, OwnerEditor<P>>['apply']>;
2142
2189
  resolve: (context: InsertDataInputRuleReadContext<OwnerEditor<P>>) => TMatch | undefined;
2143
2190
  };
2191
+ type BoundResolvedInsertDataFollowUpRule<P extends InputRuleOwner, TMatch> = Omit<InsertDataFollowUpInputRule<TMatch, OwnerEditor<P>>, 'followUp' | 'resolve'> & {
2192
+ followUp: (context: InsertDataFollowUpContext<OwnerEditor<P>>, match: NoInfer<TMatch>) => undefined;
2193
+ resolve: (context: InsertDataInputRuleReadContext<OwnerEditor<P>>) => TMatch | undefined;
2194
+ };
2144
2195
  type BoundResolvedInsertTextRule<P extends InputRuleOwner, TMatch> = Omit<InsertTextInputRule<TMatch, OwnerEditor<P>>, 'apply' | 'resolve'> & {
2145
2196
  apply: (context: InsertTextInputRuleContext<OwnerEditor<P>>, match: NoInfer<TMatch>) => ReturnType<InsertTextInputRule<TMatch, OwnerEditor<P>>['apply']>;
2146
2197
  resolve: (context: InsertTextInputRuleReadContext<OwnerEditor<P>>) => TMatch | undefined;
2147
2198
  };
2148
2199
  declare function defineInputRule<TMatch = true, TEditor extends Editor = Editor>(rule: InsertBreakInputRule<TMatch, TEditor>): InsertBreakInputRule<TMatch, TEditor>;
2149
2200
  declare function defineInputRule<TMatch = true, TEditor extends Editor = Editor>(rule: InsertDataInputRule<TMatch, TEditor>): InsertDataInputRule<TMatch, TEditor>;
2201
+ declare function defineInputRule<TMatch, TEditor extends Editor = Editor>(rule: InsertDataFollowUpInputRule<TMatch, TEditor>): DefinedInsertDataFollowUpInputRule<TMatch, TEditor>;
2150
2202
  declare function defineInputRule<TMatch = true, TEditor extends Editor = Editor>(rule: InsertTextInputRule<TMatch, TEditor>): InsertTextInputRule<TMatch, TEditor>;
2151
2203
  declare function defineInputRule<TRule extends InputRule>(rule: TRule): TRule;
2152
2204
  declare function defineInputRule<P extends InputRuleOwner, TMatch>(owner: P, rule: BoundResolvedInsertBreakRule<P, TMatch>): InsertBreakInputRule<TMatch, OwnerEditor<P>>;
2153
2205
  declare function defineInputRule<P extends InputRuleOwner, TMatch>(owner: P, rule: BoundResolvedInsertDataRule<P, TMatch>): InsertDataInputRule<TMatch, OwnerEditor<P>>;
2206
+ declare function defineInputRule<P extends InputRuleOwner, TMatch>(owner: P, rule: BoundResolvedInsertDataFollowUpRule<P, TMatch>): DefinedInsertDataFollowUpInputRule<TMatch, OwnerEditor<P>>;
2154
2207
  declare function defineInputRule<P extends InputRuleOwner, TMatch>(owner: P, rule: BoundResolvedInsertTextRule<P, TMatch>): InsertTextInputRule<TMatch, OwnerEditor<P>>;
2155
2208
  declare function defineInputRule<P extends InputRuleOwner>(owner: P, rule: InsertBreakInputRule<true, OwnerEditor<P>>): InsertBreakInputRule<true, OwnerEditor<P>>;
2156
2209
  declare function defineInputRule<P extends InputRuleOwner>(owner: P, rule: InsertDataInputRule<true, OwnerEditor<P>>): InsertDataInputRule<true, OwnerEditor<P>>;
@@ -2707,7 +2760,12 @@ declare const BaseHeadingPlugin: BasePlugin<Readonly<{
2707
2760
  readonly name: "heading";
2708
2761
  readonly formats: true;
2709
2762
  readonly read: {
2710
- readonly level: (node: Element) => HeadingLevel | undefined;
2763
+ readonly level: (node: Readonly<Element>) => HeadingLevel | undefined;
2764
+ /**
2765
+ * Whether `setLevel(level)` can apply: the schema lets every selected
2766
+ * block take the level where it sits.
2767
+ */
2768
+ readonly canSetLevel: (level: HeadingLevel) => boolean;
2711
2769
  };
2712
2770
  readonly rules: true;
2713
2771
  readonly update: {
@@ -2796,7 +2854,12 @@ declare const HeadingRules: {
2796
2854
  readonly name: "heading";
2797
2855
  readonly formats: true;
2798
2856
  readonly read: {
2799
- readonly level: (node: Element) => HeadingLevel | undefined;
2857
+ readonly level: (node: Readonly<Element>) => HeadingLevel | undefined;
2858
+ /**
2859
+ * Whether `setLevel(level)` can apply: the schema lets every selected
2860
+ * block take the level where it sits.
2861
+ */
2862
+ readonly canSetLevel: (level: HeadingLevel) => boolean;
2800
2863
  };
2801
2864
  readonly rules: true;
2802
2865
  readonly update: {
@@ -2878,7 +2941,12 @@ declare const HeadingRules: {
2878
2941
  readonly name: "heading";
2879
2942
  readonly formats: true;
2880
2943
  readonly read: {
2881
- readonly level: (node: Element) => HeadingLevel | undefined;
2944
+ readonly level: (node: Readonly<Element>) => HeadingLevel | undefined;
2945
+ /**
2946
+ * Whether `setLevel(level)` can apply: the schema lets every selected
2947
+ * block take the level where it sits.
2948
+ */
2949
+ readonly canSetLevel: (level: HeadingLevel) => boolean;
2882
2950
  };
2883
2951
  readonly rules: true;
2884
2952
  readonly update: {
@@ -3364,6 +3432,9 @@ declare const BaseLineHeightPlugin: BasePlugin<Readonly<{
3364
3432
  }>, Readonly<{
3365
3433
  kind: 'types';
3366
3434
  types: readonly string[];
3435
+ }>, Readonly<{
3436
+ key: string;
3437
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
3367
3438
  }>>;
3368
3439
  };
3369
3440
  };
@@ -3439,6 +3510,9 @@ declare const BaseTextAlignPlugin: BasePlugin<Readonly<{
3439
3510
  textAlign: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["center", "end", "justify", "left", "right", "start"], PropertyValueOptions<"center" | "end" | "justify" | "left" | "right" | "start">>, Readonly<{
3440
3511
  kind: 'types';
3441
3512
  types: readonly string[];
3513
+ }>, Readonly<{
3514
+ key: string;
3515
+ map: (value: "center" | "end" | "justify" | "left" | "right" | "start", renamed: (name: string) => string | undefined) => "center" | "end" | "justify" | "left" | "right" | "start";
3442
3516
  }>>;
3443
3517
  };
3444
3518
  };
@@ -3518,6 +3592,9 @@ declare const BaseTextIndentPlugin: BasePlugin<Readonly<{
3518
3592
  textIndent: SchemaElementPropertyDefinition<PropertyNumberDescriptor<PropertyValueOptions<number>>, Readonly<{
3519
3593
  kind: 'types';
3520
3594
  types: readonly string[];
3595
+ }>, Readonly<{
3596
+ key: string;
3597
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
3521
3598
  }>>;
3522
3599
  };
3523
3600
  };
@@ -3595,6 +3672,14 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
3595
3672
  placement: "element";
3596
3673
  unaliased: true;
3597
3674
  value: string;
3675
+ }> | Readonly<{
3676
+ descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
3677
+ key: "meta";
3678
+ localId: "meta";
3679
+ ownerName: "codeBlock";
3680
+ placement: "element";
3681
+ unaliased: true;
3682
+ value: string;
3598
3683
  }>;
3599
3684
  readonly schema: {
3600
3685
  readonly element: {
@@ -3621,6 +3706,7 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
3621
3706
  readonly ownsExit: true;
3622
3707
  readonly properties: {
3623
3708
  language: PropertyStringDescriptor<PropertyValueOptions<string>>;
3709
+ meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
3624
3710
  };
3625
3711
  readonly slice: {
3626
3712
  readonly preserveContext: true;
@@ -3641,6 +3727,7 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
3641
3727
  type: "codeBlock";
3642
3728
  }> & Readonly<{} & {
3643
3729
  language?: string | undefined;
3730
+ meta?: string | undefined;
3644
3731
  }>>;
3645
3732
  } | undefined;
3646
3733
  readonly indentDepth: () => number;
@@ -3653,6 +3740,7 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
3653
3740
  type: "codeBlock";
3654
3741
  }> & Readonly<{} & {
3655
3742
  language?: string | undefined;
3743
+ meta?: string | undefined;
3656
3744
  }> & Readonly<Record<never, never>>, Readonly<{
3657
3745
  text: string;
3658
3746
  }> & Readonly<{} & {}>> | undefined;
@@ -3661,6 +3749,7 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
3661
3749
  type: "codeBlock";
3662
3750
  }> & Readonly<{} & {
3663
3751
  language?: string | undefined;
3752
+ meta?: string | undefined;
3664
3753
  }> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
3665
3754
  readonly resetBlock: () => boolean;
3666
3755
  readonly selectAll: () => boolean;
@@ -3675,6 +3764,7 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
3675
3764
  type: "codeBlock";
3676
3765
  }> & Readonly<{} & {
3677
3766
  language?: string | undefined;
3767
+ meta?: string | undefined;
3678
3768
  }> & Readonly<Record<never, never>>, Readonly<{
3679
3769
  text: string;
3680
3770
  }> & Readonly<{} & {}>> | undefined;
@@ -3683,6 +3773,7 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
3683
3773
  type: "codeBlock";
3684
3774
  }> & Readonly<{} & {
3685
3775
  language?: string | undefined;
3776
+ meta?: string | undefined;
3686
3777
  }> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
3687
3778
  };
3688
3779
  }>> & Readonly<Record<never, never>>;
@@ -3703,6 +3794,14 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3703
3794
  placement: "element";
3704
3795
  unaliased: true;
3705
3796
  value: string;
3797
+ }> | Readonly<{
3798
+ descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
3799
+ key: "meta";
3800
+ localId: "meta";
3801
+ ownerName: "codeBlock";
3802
+ placement: "element";
3803
+ unaliased: true;
3804
+ value: string;
3706
3805
  }>;
3707
3806
  }> & Readonly<Record<"read", {
3708
3807
  readonly entry: ({ at }?: {
@@ -3712,6 +3811,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3712
3811
  type: "codeBlock";
3713
3812
  }> & Readonly<{} & {
3714
3813
  language?: string | undefined;
3814
+ meta?: string | undefined;
3715
3815
  }>>;
3716
3816
  } | undefined;
3717
3817
  readonly indentDepth: () => number;
@@ -3741,6 +3841,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3741
3841
  readonly ownsExit: true;
3742
3842
  readonly properties: {
3743
3843
  language: PropertyStringDescriptor<PropertyValueOptions<string>>;
3844
+ meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
3744
3845
  };
3745
3846
  readonly slice: {
3746
3847
  readonly preserveContext: true;
@@ -3753,6 +3854,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3753
3854
  type: "codeBlock";
3754
3855
  }> & Readonly<{} & {
3755
3856
  language?: string | undefined;
3857
+ meta?: string | undefined;
3756
3858
  }> & Readonly<Record<never, never>>, Readonly<{
3757
3859
  text: string;
3758
3860
  }> & Readonly<{} & {}>> | undefined;
@@ -3761,6 +3863,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3761
3863
  type: "codeBlock";
3762
3864
  }> & Readonly<{} & {
3763
3865
  language?: string | undefined;
3866
+ meta?: string | undefined;
3764
3867
  }> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
3765
3868
  readonly resetBlock: () => boolean;
3766
3869
  readonly selectAll: () => boolean;
@@ -3775,6 +3878,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3775
3878
  type: "codeBlock";
3776
3879
  }> & Readonly<{} & {
3777
3880
  language?: string | undefined;
3881
+ meta?: string | undefined;
3778
3882
  }> & Readonly<Record<never, never>>, Readonly<{
3779
3883
  text: string;
3780
3884
  }> & Readonly<{} & {}>> | undefined;
@@ -3783,6 +3887,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3783
3887
  type: "codeBlock";
3784
3888
  }> & Readonly<{} & {
3785
3889
  language?: string | undefined;
3890
+ meta?: string | undefined;
3786
3891
  }> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
3787
3892
  }>> & Readonly<Record<never, never>>> & Pick<BasePlugin<Readonly<{
3788
3893
  readonly __pluginWritableProperties: Readonly<{
@@ -3793,6 +3898,14 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3793
3898
  placement: "element";
3794
3899
  unaliased: true;
3795
3900
  value: string;
3901
+ }> | Readonly<{
3902
+ descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
3903
+ key: "meta";
3904
+ localId: "meta";
3905
+ ownerName: "codeBlock";
3906
+ placement: "element";
3907
+ unaliased: true;
3908
+ value: string;
3796
3909
  }>;
3797
3910
  readonly schema: {
3798
3911
  readonly element: {
@@ -3819,6 +3932,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3819
3932
  readonly ownsExit: true;
3820
3933
  readonly properties: {
3821
3934
  language: PropertyStringDescriptor<PropertyValueOptions<string>>;
3935
+ meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
3822
3936
  };
3823
3937
  readonly slice: {
3824
3938
  readonly preserveContext: true;
@@ -3839,6 +3953,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3839
3953
  type: "codeBlock";
3840
3954
  }> & Readonly<{} & {
3841
3955
  language?: string | undefined;
3956
+ meta?: string | undefined;
3842
3957
  }>>;
3843
3958
  } | undefined;
3844
3959
  readonly indentDepth: () => number;
@@ -3851,6 +3966,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3851
3966
  type: "codeBlock";
3852
3967
  }> & Readonly<{} & {
3853
3968
  language?: string | undefined;
3969
+ meta?: string | undefined;
3854
3970
  }> & Readonly<Record<never, never>>, Readonly<{
3855
3971
  text: string;
3856
3972
  }> & Readonly<{} & {}>> | undefined;
@@ -3859,6 +3975,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3859
3975
  type: "codeBlock";
3860
3976
  }> & Readonly<{} & {
3861
3977
  language?: string | undefined;
3978
+ meta?: string | undefined;
3862
3979
  }> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
3863
3980
  readonly resetBlock: () => boolean;
3864
3981
  readonly selectAll: () => boolean;
@@ -3873,6 +3990,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3873
3990
  type: "codeBlock";
3874
3991
  }> & Readonly<{} & {
3875
3992
  language?: string | undefined;
3993
+ meta?: string | undefined;
3876
3994
  }> & Readonly<Record<never, never>>, Readonly<{
3877
3995
  text: string;
3878
3996
  }> & Readonly<{} & {}>> | undefined;
@@ -3881,6 +3999,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
3881
3999
  type: "codeBlock";
3882
4000
  }> & Readonly<{} & {
3883
4001
  language?: string | undefined;
4002
+ meta?: string | undefined;
3884
4003
  }> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
3885
4004
  };
3886
4005
  }>> & Readonly<Record<never, never>>, "~schema.plugins">];
@@ -4104,6 +4223,9 @@ declare const BaseIndentPlugin: BasePlugin<Readonly<{
4104
4223
  }>, Readonly<{
4105
4224
  kind: 'types';
4106
4225
  types: readonly string[];
4226
+ }>, Readonly<{
4227
+ key: string;
4228
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
4107
4229
  }>>;
4108
4230
  };
4109
4231
  };
@@ -5641,6 +5763,9 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
5641
5763
  }>, Readonly<{
5642
5764
  kind: 'types';
5643
5765
  types: readonly string[];
5766
+ }>, Readonly<{
5767
+ key: string;
5768
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5644
5769
  }>>;
5645
5770
  };
5646
5771
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -5709,6 +5834,9 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
5709
5834
  }>, Readonly<{
5710
5835
  kind: 'types';
5711
5836
  types: readonly string[];
5837
+ }>, Readonly<{
5838
+ key: string;
5839
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5712
5840
  }>>;
5713
5841
  };
5714
5842
  };
@@ -5871,6 +5999,9 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
5871
5999
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
5872
6000
  kind: 'types';
5873
6001
  types: readonly string[];
6002
+ }>, Readonly<{
6003
+ key: string;
6004
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
5874
6005
  }>>;
5875
6006
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
5876
6007
  readonly validate: typeof isListOrdinal;
@@ -5878,6 +6009,9 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
5878
6009
  }>, Readonly<{
5879
6010
  kind: 'types';
5880
6011
  types: readonly string[];
6012
+ }>, Readonly<{
6013
+ key: string;
6014
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5881
6015
  }>>;
5882
6016
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
5883
6017
  readonly validate: typeof isListOrdinal;
@@ -5885,10 +6019,16 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
5885
6019
  }>, Readonly<{
5886
6020
  kind: 'types';
5887
6021
  types: readonly string[];
6022
+ }>, Readonly<{
6023
+ key: string;
6024
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5888
6025
  }>>;
5889
6026
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
5890
6027
  kind: 'types';
5891
6028
  types: readonly string[];
6029
+ }>, Readonly<{
6030
+ key: string;
6031
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
5892
6032
  }>>;
5893
6033
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
5894
6034
  label?: string;
@@ -5920,14 +6060,31 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
5920
6060
  }>>, Readonly<{
5921
6061
  kind: 'types';
5922
6062
  types: readonly string[];
6063
+ }>, Readonly<{
6064
+ key: string;
6065
+ map: (value: Readonly<Record<string, Readonly<{
6066
+ label?: string;
6067
+ restartAfter?: number;
6068
+ start?: number;
6069
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
6070
+ label?: string;
6071
+ restartAfter?: number;
6072
+ start?: number;
6073
+ }>>>;
5923
6074
  }>>;
5924
6075
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
5925
6076
  kind: 'types';
5926
6077
  types: readonly string[];
6078
+ }>, Readonly<{
6079
+ key: string;
6080
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
5927
6081
  }>>;
5928
6082
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
5929
6083
  kind: 'types';
5930
6084
  types: readonly string[];
6085
+ }>, Readonly<{
6086
+ key: string;
6087
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
5931
6088
  }>>;
5932
6089
  };
5933
6090
  };
@@ -6052,6 +6209,9 @@ declare const BulletedListRules: {
6052
6209
  }>, Readonly<{
6053
6210
  kind: 'types';
6054
6211
  types: readonly string[];
6212
+ }>, Readonly<{
6213
+ key: string;
6214
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
6055
6215
  }>>;
6056
6216
  };
6057
6217
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -6120,6 +6280,9 @@ declare const BulletedListRules: {
6120
6280
  }>, Readonly<{
6121
6281
  kind: 'types';
6122
6282
  types: readonly string[];
6283
+ }>, Readonly<{
6284
+ key: string;
6285
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
6123
6286
  }>>;
6124
6287
  };
6125
6288
  };
@@ -6282,6 +6445,9 @@ declare const BulletedListRules: {
6282
6445
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
6283
6446
  kind: 'types';
6284
6447
  types: readonly string[];
6448
+ }>, Readonly<{
6449
+ key: string;
6450
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
6285
6451
  }>>;
6286
6452
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
6287
6453
  readonly validate: typeof isListOrdinal;
@@ -6289,6 +6455,9 @@ declare const BulletedListRules: {
6289
6455
  }>, Readonly<{
6290
6456
  kind: 'types';
6291
6457
  types: readonly string[];
6458
+ }>, Readonly<{
6459
+ key: string;
6460
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
6292
6461
  }>>;
6293
6462
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
6294
6463
  readonly validate: typeof isListOrdinal;
@@ -6296,10 +6465,16 @@ declare const BulletedListRules: {
6296
6465
  }>, Readonly<{
6297
6466
  kind: 'types';
6298
6467
  types: readonly string[];
6468
+ }>, Readonly<{
6469
+ key: string;
6470
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
6299
6471
  }>>;
6300
6472
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
6301
6473
  kind: 'types';
6302
6474
  types: readonly string[];
6475
+ }>, Readonly<{
6476
+ key: string;
6477
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
6303
6478
  }>>;
6304
6479
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
6305
6480
  label?: string;
@@ -6331,14 +6506,31 @@ declare const BulletedListRules: {
6331
6506
  }>>, Readonly<{
6332
6507
  kind: 'types';
6333
6508
  types: readonly string[];
6509
+ }>, Readonly<{
6510
+ key: string;
6511
+ map: (value: Readonly<Record<string, Readonly<{
6512
+ label?: string;
6513
+ restartAfter?: number;
6514
+ start?: number;
6515
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
6516
+ label?: string;
6517
+ restartAfter?: number;
6518
+ start?: number;
6519
+ }>>>;
6334
6520
  }>>;
6335
6521
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
6336
6522
  kind: 'types';
6337
6523
  types: readonly string[];
6524
+ }>, Readonly<{
6525
+ key: string;
6526
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
6338
6527
  }>>;
6339
6528
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
6340
6529
  kind: 'types';
6341
6530
  types: readonly string[];
6531
+ }>, Readonly<{
6532
+ key: string;
6533
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
6342
6534
  }>>;
6343
6535
  };
6344
6536
  };
@@ -6454,6 +6646,9 @@ declare const BulletedListRules: {
6454
6646
  }>, Readonly<{
6455
6647
  kind: 'types';
6456
6648
  types: readonly string[];
6649
+ }>, Readonly<{
6650
+ key: string;
6651
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
6457
6652
  }>>;
6458
6653
  };
6459
6654
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -6522,6 +6717,9 @@ declare const BulletedListRules: {
6522
6717
  }>, Readonly<{
6523
6718
  kind: 'types';
6524
6719
  types: readonly string[];
6720
+ }>, Readonly<{
6721
+ key: string;
6722
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
6525
6723
  }>>;
6526
6724
  };
6527
6725
  };
@@ -6684,6 +6882,9 @@ declare const BulletedListRules: {
6684
6882
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
6685
6883
  kind: 'types';
6686
6884
  types: readonly string[];
6885
+ }>, Readonly<{
6886
+ key: string;
6887
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
6687
6888
  }>>;
6688
6889
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
6689
6890
  readonly validate: typeof isListOrdinal;
@@ -6691,6 +6892,9 @@ declare const BulletedListRules: {
6691
6892
  }>, Readonly<{
6692
6893
  kind: 'types';
6693
6894
  types: readonly string[];
6895
+ }>, Readonly<{
6896
+ key: string;
6897
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
6694
6898
  }>>;
6695
6899
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
6696
6900
  readonly validate: typeof isListOrdinal;
@@ -6698,10 +6902,16 @@ declare const BulletedListRules: {
6698
6902
  }>, Readonly<{
6699
6903
  kind: 'types';
6700
6904
  types: readonly string[];
6905
+ }>, Readonly<{
6906
+ key: string;
6907
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
6701
6908
  }>>;
6702
6909
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
6703
6910
  kind: 'types';
6704
6911
  types: readonly string[];
6912
+ }>, Readonly<{
6913
+ key: string;
6914
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
6705
6915
  }>>;
6706
6916
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
6707
6917
  label?: string;
@@ -6733,14 +6943,31 @@ declare const BulletedListRules: {
6733
6943
  }>>, Readonly<{
6734
6944
  kind: 'types';
6735
6945
  types: readonly string[];
6946
+ }>, Readonly<{
6947
+ key: string;
6948
+ map: (value: Readonly<Record<string, Readonly<{
6949
+ label?: string;
6950
+ restartAfter?: number;
6951
+ start?: number;
6952
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
6953
+ label?: string;
6954
+ restartAfter?: number;
6955
+ start?: number;
6956
+ }>>>;
6736
6957
  }>>;
6737
6958
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
6738
6959
  kind: 'types';
6739
6960
  types: readonly string[];
6961
+ }>, Readonly<{
6962
+ key: string;
6963
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
6740
6964
  }>>;
6741
6965
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
6742
6966
  kind: 'types';
6743
6967
  types: readonly string[];
6968
+ }>, Readonly<{
6969
+ key: string;
6970
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
6744
6971
  }>>;
6745
6972
  };
6746
6973
  };
@@ -6873,6 +7100,9 @@ declare const OrderedListRules: {
6873
7100
  }>, Readonly<{
6874
7101
  kind: 'types';
6875
7102
  types: readonly string[];
7103
+ }>, Readonly<{
7104
+ key: string;
7105
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
6876
7106
  }>>;
6877
7107
  };
6878
7108
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -6941,6 +7171,9 @@ declare const OrderedListRules: {
6941
7171
  }>, Readonly<{
6942
7172
  kind: 'types';
6943
7173
  types: readonly string[];
7174
+ }>, Readonly<{
7175
+ key: string;
7176
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
6944
7177
  }>>;
6945
7178
  };
6946
7179
  };
@@ -7103,6 +7336,9 @@ declare const OrderedListRules: {
7103
7336
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
7104
7337
  kind: 'types';
7105
7338
  types: readonly string[];
7339
+ }>, Readonly<{
7340
+ key: string;
7341
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
7106
7342
  }>>;
7107
7343
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
7108
7344
  readonly validate: typeof isListOrdinal;
@@ -7110,6 +7346,9 @@ declare const OrderedListRules: {
7110
7346
  }>, Readonly<{
7111
7347
  kind: 'types';
7112
7348
  types: readonly string[];
7349
+ }>, Readonly<{
7350
+ key: string;
7351
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
7113
7352
  }>>;
7114
7353
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
7115
7354
  readonly validate: typeof isListOrdinal;
@@ -7117,10 +7356,16 @@ declare const OrderedListRules: {
7117
7356
  }>, Readonly<{
7118
7357
  kind: 'types';
7119
7358
  types: readonly string[];
7359
+ }>, Readonly<{
7360
+ key: string;
7361
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
7120
7362
  }>>;
7121
7363
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
7122
7364
  kind: 'types';
7123
7365
  types: readonly string[];
7366
+ }>, Readonly<{
7367
+ key: string;
7368
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
7124
7369
  }>>;
7125
7370
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
7126
7371
  label?: string;
@@ -7152,14 +7397,31 @@ declare const OrderedListRules: {
7152
7397
  }>>, Readonly<{
7153
7398
  kind: 'types';
7154
7399
  types: readonly string[];
7400
+ }>, Readonly<{
7401
+ key: string;
7402
+ map: (value: Readonly<Record<string, Readonly<{
7403
+ label?: string;
7404
+ restartAfter?: number;
7405
+ start?: number;
7406
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
7407
+ label?: string;
7408
+ restartAfter?: number;
7409
+ start?: number;
7410
+ }>>>;
7155
7411
  }>>;
7156
7412
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
7157
7413
  kind: 'types';
7158
7414
  types: readonly string[];
7415
+ }>, Readonly<{
7416
+ key: string;
7417
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
7159
7418
  }>>;
7160
7419
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
7161
7420
  kind: 'types';
7162
7421
  types: readonly string[];
7422
+ }>, Readonly<{
7423
+ key: string;
7424
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
7163
7425
  }>>;
7164
7426
  };
7165
7427
  };
@@ -7275,6 +7537,9 @@ declare const OrderedListRules: {
7275
7537
  }>, Readonly<{
7276
7538
  kind: 'types';
7277
7539
  types: readonly string[];
7540
+ }>, Readonly<{
7541
+ key: string;
7542
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
7278
7543
  }>>;
7279
7544
  };
7280
7545
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -7343,6 +7608,9 @@ declare const OrderedListRules: {
7343
7608
  }>, Readonly<{
7344
7609
  kind: 'types';
7345
7610
  types: readonly string[];
7611
+ }>, Readonly<{
7612
+ key: string;
7613
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
7346
7614
  }>>;
7347
7615
  };
7348
7616
  };
@@ -7505,6 +7773,9 @@ declare const OrderedListRules: {
7505
7773
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
7506
7774
  kind: 'types';
7507
7775
  types: readonly string[];
7776
+ }>, Readonly<{
7777
+ key: string;
7778
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
7508
7779
  }>>;
7509
7780
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
7510
7781
  readonly validate: typeof isListOrdinal;
@@ -7512,6 +7783,9 @@ declare const OrderedListRules: {
7512
7783
  }>, Readonly<{
7513
7784
  kind: 'types';
7514
7785
  types: readonly string[];
7786
+ }>, Readonly<{
7787
+ key: string;
7788
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
7515
7789
  }>>;
7516
7790
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
7517
7791
  readonly validate: typeof isListOrdinal;
@@ -7519,10 +7793,16 @@ declare const OrderedListRules: {
7519
7793
  }>, Readonly<{
7520
7794
  kind: 'types';
7521
7795
  types: readonly string[];
7796
+ }>, Readonly<{
7797
+ key: string;
7798
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
7522
7799
  }>>;
7523
7800
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
7524
7801
  kind: 'types';
7525
7802
  types: readonly string[];
7803
+ }>, Readonly<{
7804
+ key: string;
7805
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
7526
7806
  }>>;
7527
7807
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
7528
7808
  label?: string;
@@ -7554,14 +7834,31 @@ declare const OrderedListRules: {
7554
7834
  }>>, Readonly<{
7555
7835
  kind: 'types';
7556
7836
  types: readonly string[];
7837
+ }>, Readonly<{
7838
+ key: string;
7839
+ map: (value: Readonly<Record<string, Readonly<{
7840
+ label?: string;
7841
+ restartAfter?: number;
7842
+ start?: number;
7843
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
7844
+ label?: string;
7845
+ restartAfter?: number;
7846
+ start?: number;
7847
+ }>>>;
7557
7848
  }>>;
7558
7849
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
7559
7850
  kind: 'types';
7560
7851
  types: readonly string[];
7852
+ }>, Readonly<{
7853
+ key: string;
7854
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
7561
7855
  }>>;
7562
7856
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
7563
7857
  kind: 'types';
7564
7858
  types: readonly string[];
7859
+ }>, Readonly<{
7860
+ key: string;
7861
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
7565
7862
  }>>;
7566
7863
  };
7567
7864
  };
@@ -7682,6 +7979,9 @@ declare const TaskListRules: {
7682
7979
  }>, Readonly<{
7683
7980
  kind: 'types';
7684
7981
  types: readonly string[];
7982
+ }>, Readonly<{
7983
+ key: string;
7984
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
7685
7985
  }>>;
7686
7986
  };
7687
7987
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -7750,6 +8050,9 @@ declare const TaskListRules: {
7750
8050
  }>, Readonly<{
7751
8051
  kind: 'types';
7752
8052
  types: readonly string[];
8053
+ }>, Readonly<{
8054
+ key: string;
8055
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
7753
8056
  }>>;
7754
8057
  };
7755
8058
  };
@@ -7912,6 +8215,9 @@ declare const TaskListRules: {
7912
8215
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
7913
8216
  kind: 'types';
7914
8217
  types: readonly string[];
8218
+ }>, Readonly<{
8219
+ key: string;
8220
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
7915
8221
  }>>;
7916
8222
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
7917
8223
  readonly validate: typeof isListOrdinal;
@@ -7919,6 +8225,9 @@ declare const TaskListRules: {
7919
8225
  }>, Readonly<{
7920
8226
  kind: 'types';
7921
8227
  types: readonly string[];
8228
+ }>, Readonly<{
8229
+ key: string;
8230
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
7922
8231
  }>>;
7923
8232
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
7924
8233
  readonly validate: typeof isListOrdinal;
@@ -7926,10 +8235,16 @@ declare const TaskListRules: {
7926
8235
  }>, Readonly<{
7927
8236
  kind: 'types';
7928
8237
  types: readonly string[];
8238
+ }>, Readonly<{
8239
+ key: string;
8240
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
7929
8241
  }>>;
7930
8242
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
7931
8243
  kind: 'types';
7932
8244
  types: readonly string[];
8245
+ }>, Readonly<{
8246
+ key: string;
8247
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
7933
8248
  }>>;
7934
8249
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
7935
8250
  label?: string;
@@ -7961,14 +8276,31 @@ declare const TaskListRules: {
7961
8276
  }>>, Readonly<{
7962
8277
  kind: 'types';
7963
8278
  types: readonly string[];
8279
+ }>, Readonly<{
8280
+ key: string;
8281
+ map: (value: Readonly<Record<string, Readonly<{
8282
+ label?: string;
8283
+ restartAfter?: number;
8284
+ start?: number;
8285
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
8286
+ label?: string;
8287
+ restartAfter?: number;
8288
+ start?: number;
8289
+ }>>>;
7964
8290
  }>>;
7965
8291
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
7966
8292
  kind: 'types';
7967
8293
  types: readonly string[];
8294
+ }>, Readonly<{
8295
+ key: string;
8296
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
7968
8297
  }>>;
7969
8298
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
7970
8299
  kind: 'types';
7971
8300
  types: readonly string[];
8301
+ }>, Readonly<{
8302
+ key: string;
8303
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
7972
8304
  }>>;
7973
8305
  };
7974
8306
  };
@@ -8084,6 +8416,9 @@ declare const TaskListRules: {
8084
8416
  }>, Readonly<{
8085
8417
  kind: 'types';
8086
8418
  types: readonly string[];
8419
+ }>, Readonly<{
8420
+ key: string;
8421
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
8087
8422
  }>>;
8088
8423
  };
8089
8424
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -8152,6 +8487,9 @@ declare const TaskListRules: {
8152
8487
  }>, Readonly<{
8153
8488
  kind: 'types';
8154
8489
  types: readonly string[];
8490
+ }>, Readonly<{
8491
+ key: string;
8492
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
8155
8493
  }>>;
8156
8494
  };
8157
8495
  };
@@ -8314,6 +8652,9 @@ declare const TaskListRules: {
8314
8652
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
8315
8653
  kind: 'types';
8316
8654
  types: readonly string[];
8655
+ }>, Readonly<{
8656
+ key: string;
8657
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
8317
8658
  }>>;
8318
8659
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
8319
8660
  readonly validate: typeof isListOrdinal;
@@ -8321,6 +8662,9 @@ declare const TaskListRules: {
8321
8662
  }>, Readonly<{
8322
8663
  kind: 'types';
8323
8664
  types: readonly string[];
8665
+ }>, Readonly<{
8666
+ key: string;
8667
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
8324
8668
  }>>;
8325
8669
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
8326
8670
  readonly validate: typeof isListOrdinal;
@@ -8328,10 +8672,16 @@ declare const TaskListRules: {
8328
8672
  }>, Readonly<{
8329
8673
  kind: 'types';
8330
8674
  types: readonly string[];
8675
+ }>, Readonly<{
8676
+ key: string;
8677
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
8331
8678
  }>>;
8332
8679
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
8333
8680
  kind: 'types';
8334
8681
  types: readonly string[];
8682
+ }>, Readonly<{
8683
+ key: string;
8684
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
8335
8685
  }>>;
8336
8686
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
8337
8687
  label?: string;
@@ -8363,14 +8713,31 @@ declare const TaskListRules: {
8363
8713
  }>>, Readonly<{
8364
8714
  kind: 'types';
8365
8715
  types: readonly string[];
8716
+ }>, Readonly<{
8717
+ key: string;
8718
+ map: (value: Readonly<Record<string, Readonly<{
8719
+ label?: string;
8720
+ restartAfter?: number;
8721
+ start?: number;
8722
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
8723
+ label?: string;
8724
+ restartAfter?: number;
8725
+ start?: number;
8726
+ }>>>;
8366
8727
  }>>;
8367
8728
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
8368
8729
  kind: 'types';
8369
8730
  types: readonly string[];
8731
+ }>, Readonly<{
8732
+ key: string;
8733
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
8370
8734
  }>>;
8371
8735
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
8372
8736
  kind: 'types';
8373
8737
  types: readonly string[];
8738
+ }>, Readonly<{
8739
+ key: string;
8740
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
8374
8741
  }>>;
8375
8742
  };
8376
8743
  };
@@ -9022,7 +9389,7 @@ type PropertiesForMutation<TMutation> = TMutation extends EditorElementMutation
9022
9389
  type PropertiesForPlugin<TSchema, TPlugin> = [TSchema] extends [InternalEditorMutationProvider<infer TMutations>] ? PropertiesForMutation<EditorMutationForPlugin<TMutations, TPlugin>> : [TSchema] extends [InternalEditorApplicationSchemaProvider] ? Readonly<Record<string, unknown>> : PropertiesForMutation<RawEditorMutationForPlugin<TPlugin>>;
9023
9390
  type PluginNodeTypeSelector = PluginReference | string | ReadonlyArray<PluginReference | string>;
9024
9391
  /** Broad insertion options for package APIs that forward a stored selector. */
9025
- type NodeInsertOptions = Omit<NodeInsertNodesOptions<Node$1, NodeTypeSelector | undefined>, 'split'> & {
9392
+ type NodeInsertOptions = Omit<WithNodeTarget<NodeInsertNodesOptions<Node$1, NodeTypeSelector | undefined>>, 'split'> & {
9026
9393
  split?: Omit<NonNullable<NodeInsertNodesOptions<Node$1, NodeTypeSelector | undefined>['split']>, 'type'> & {
9027
9394
  type?: PluginNodeTypeSelector;
9028
9395
  };
@@ -9045,35 +9412,36 @@ type ElementForSelector<TSchema, TSelector> = TSelector extends ReadonlyArray<in
9045
9412
  type: TSelector;
9046
9413
  } : TSelector extends PluginReference ? ElementForPlugin<TSchema, TSelector> : never;
9047
9414
  type PropertiesForSelector<TSchema, TSelector> = TSelector extends ReadonlyArray<infer TItem> ? PropertiesForSelector<TSchema, TItem> : TSelector extends PluginReference ? PropertiesForPlugin<TSchema, TSelector> : Readonly<Record<string, unknown>>;
9415
+ type SelectorOptions<TOptions> = WithNodeTarget<Omit<TOptions, 'match' | 'type'>>;
9048
9416
  type NodesReadOptions<TNode extends Node$1, TSelector> = Omit<EditorNodesReadOptions<TNode>, 'match' | 'type'> & {
9049
9417
  match?: NodeMatch<TNode>;
9050
9418
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9051
9419
  };
9052
- type NodeGetOptions<TNode extends Node$1, TSelector> = Omit<EditorNodeGetOptions<TNode>, 'match' | 'type'> & {
9420
+ type NodeGetOptions<TNode extends Node$1, TSelector> = SelectorOptions<EditorNodeGetOptions<TNode>> & {
9053
9421
  match?: NodeMatch<TNode>;
9054
9422
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9055
9423
  };
9056
- type AboveOptions<TNode extends Element, TSelector> = Omit<EditorAboveOptions<TNode>, 'match' | 'type'> & {
9424
+ type AboveOptions<TNode extends Element, TSelector> = SelectorOptions<EditorAboveOptions<TNode>> & {
9057
9425
  match?: NodeMatch<TNode>;
9058
9426
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9059
9427
  };
9060
- type BlockOptions<TNode extends Element, TSelector> = Omit<EditorBlockOptions<TNode>, 'match' | 'type'> & {
9428
+ type BlockOptions<TNode extends Element, TSelector> = SelectorOptions<EditorBlockOptions<TNode>> & {
9061
9429
  match?: NodeMatch<TNode>;
9062
9430
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9063
9431
  };
9064
- type LevelsOptions<TNode extends Node$1, TSelector> = Omit<EditorLevelsOptions<TNode>, 'match' | 'type'> & {
9432
+ type LevelsOptions<TNode extends Node$1, TSelector> = SelectorOptions<EditorLevelsOptions<TNode>> & {
9065
9433
  match?: NodeMatch<TNode>;
9066
9434
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9067
9435
  };
9068
- type NextOptions<TNode extends Element, TSelector> = Omit<EditorNextOptions<TNode>, 'match' | 'type'> & {
9436
+ type NextOptions<TNode extends Element, TSelector> = SelectorOptions<EditorNextOptions<TNode>> & {
9069
9437
  match?: NodeMatch<TNode>;
9070
9438
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9071
9439
  };
9072
- type PreviousOptions<TNode extends Node$1, TSelector> = Omit<EditorPreviousOptions<TNode>, 'match' | 'type'> & {
9440
+ type PreviousOptions<TNode extends Node$1, TSelector> = SelectorOptions<EditorPreviousOptions<TNode>> & {
9073
9441
  match?: NodeMatch<TNode>;
9074
9442
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9075
9443
  };
9076
- type ParentOptions<TNode extends Element, TSelector> = Omit<EditorParentOptions<TNode>, 'match' | 'type'> & {
9444
+ type ParentOptions<TNode extends Element, TSelector> = SelectorOptions<EditorParentOptions<TNode>> & {
9077
9445
  match?: NodeMatch<TNode>;
9078
9446
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9079
9447
  };
@@ -9222,9 +9590,9 @@ type PluginWritablePropertyPatch<D> = { [TKey in PluginExactWritablePropertyKey<
9222
9590
  type PluginForbiddenWritablePropertyPatch<D> = { [TKey in PluginForbiddenWritablePropertyKey<D>]?: never; };
9223
9591
  type PluginNodeSetProps<D> = Partial<Omit<Element, 'children'>> & PluginWritablePropertyPatch<D> & PluginForbiddenWritablePropertyPatch<D>;
9224
9592
  type PluginNodeSetOptions = Omit<NodeSetNodesOptions<any>, 'at'> & {
9225
- at?: Descendant | Location | NodeKey | NodeSelection;
9593
+ at?: Descendant | ElementIdTarget | Location | NodeKey | NodeSelection;
9226
9594
  };
9227
- type NodeSelectorOptions<TOptions, TNode extends Node$1, TSelector> = Omit<NonNullable<TOptions>, 'match' | 'type'> & {
9595
+ type NodeSelectorOptions<TOptions, TNode extends Node$1, TSelector> = SelectorOptions<NonNullable<TOptions>> & {
9228
9596
  match?: NodeMatch<TNode>;
9229
9597
  type: TSelector & ([TNode] extends [never] ? never : unknown);
9230
9598
  };
@@ -9588,6 +9956,7 @@ type ErasedPluginSlots = {
9588
9956
  afterNodeChildren?: ErasedPluginCallable | null;
9589
9957
  beforeContainer?: NodeComponent | null;
9590
9958
  beforeEditable?: NodeComponent | null;
9959
+ caret?: NodeComponent | null;
9591
9960
  wrapContent?: NodeComponent<{
9592
9961
  children: any;
9593
9962
  }> | null;
@@ -9901,6 +10270,7 @@ type PluginDataTransferFormatDeclaration<C extends AnyBasePluginDefinition = Bas
9901
10270
  }>;
9902
10271
  /** Schema format mappings registered through `defineFormats`. */
9903
10272
  interface PluginProductNodeMappingRegistry<C extends AnyBasePluginDefinition> {
10273
+ docx: DocxNodeMapping<C>;
9904
10274
  plainText: PlainTextNodeMappingInput<C>;
9905
10275
  markdown: MarkdownNodeMappingInput<C>;
9906
10276
  }
@@ -9950,6 +10320,7 @@ type PluginTargetedHtmlMixedMappingMap<C extends AnyBasePluginDefinition> = C ex
9950
10320
  markdown?: never;
9951
10321
  }> : never;
9952
10322
  type PluginSelfHtmlProductNodeMappingMap<C extends AnyBasePluginDefinition> = PluginSelfHtmlMappingMap<C> & Readonly<{
10323
+ docx?: DocxNodeMapping<C>;
9953
10324
  plainText?: PlainTextNodeMappingInput<C>;
9954
10325
  markdown: MarkdownNodeMappingInput<C>;
9955
10326
  }>;
@@ -10134,6 +10505,12 @@ type BasePluginAuthorFields<C extends AnyBasePluginDefinition = BasePluginDefini
10134
10505
  beforeContainer?: () => any;
10135
10506
  /** Renders a component before the Editable. */
10136
10507
  beforeEditable?: () => any;
10508
+ /**
10509
+ * Renders a component after the Editable, whose editor is the view
10510
+ * holding the caret while that view is this view or mounted inside it,
10511
+ * such as a board note, and this view otherwise.
10512
+ */
10513
+ caret?: () => any;
10137
10514
  /** Wraps the Editable content and its lifecycle effects. */
10138
10515
  wrapContent?: NodeComponent<{
10139
10516
  children: any;
@@ -10521,4 +10898,4 @@ type NominalPluginReference = Readonly<{
10521
10898
  name: string;
10522
10899
  }>;
10523
10900
  declare const isNominalPluginDescriptor: (value: unknown) => value is NominalPluginReference;
10524
- export { PluginContributionCompatibility as $, InferName as $a, definePlugin as $i, HeadingRules as $n, InputRulesDefinition as $r, UpsertLinkOptions as $t, DefinePluginFormats as A, PluginFormatRegistry as Aa, AutoScrollOptions as Ai, CapturedFormat as An, PluginSelectorReturn as Ao, BaseParagraphDefinition as Ar, PlainTextSerializeResult as At, InjectNodeProps as B, BaseInjectProps as Ba, DebugPlugin as Bi, BaseStrikethroughPlugin as Bn, InferPluginNodeTypeProvider as Bo, HtmlPlugin as Br, OutdentListOptions as Bt, BasePluginOn as C, MarkdownTagNode as Ca, ElementStatePlugin as Ci, BaseTextAlignPlugin as Cn, PluginSchemaDeclaration as Co, RenderTextFn as Cr, PluginTransaction as Ct, ConfiguredPluginDescriptor as D, HtmlMappingDiagnosticInput as Da, AutoScrollApi as Di, TextIndentDefinition as Dn, PluginSelector as Do, RenderLeafFn as Dr, PlainTextDiagnostic as Dt, ConfiguredBasePlugin as E, TextWith as Ea, ElementIdPluginState as Ei, TextAlignDefinition as En, PluginSchemaReferences as Eo, RenderTextProps as Er, CorePlugins as Et, HtmlMatchValue as F, RenderElementSlots as Fa, ScrollIntoViewTarget as Fi, BaseCodePlugin as Fn, SelectionRules as Fo, createBlockStartInputRule as Fr, BulletedListRules as Ft, PluginShortcutInput as G, DeleteRules as Ga, AffinityEdgeNodes as Gi, ItalicRules as Gn, UnknownObject as Go, BlockStartInputRuleConfig as Gr, BaseLinkDefinition as Gt, LeafStaticProps as H, BaseTransformOptions as Ha, EditorError as Hi, BoldRules as Hn, InferPluginSchemaContribution as Ho, BaseInputRule as Hr, ToggleListOptions as Ht, HtmlMatcher as I, HandlerReturnType as Ia, ScrollMode as Ii, BaseHighlightPlugin as In, StructuralRuleContext as Io, createMarkInputRule as Ir, ListElement as It, RenderStaticNodeWrapperProps as J, GetInjectNodePropsReturnType as Ja, TransferDefinition as Ji, ScriptValue as Jn, DebugValueScrubber as Jo, InputRule as Jr, CreateLinkNodeOptions as Jt, RenderStaticNodeWrapper as K, EditOnlyConfig as Ka, AffinityPlugin as Ki, MarkComboRules as Kn, GeneratedEditorMutations as Ko, BlockStartInputRuleMatch as Kr, BaseLinkPlugin as Kt, HtmlNodeSpec as L, nanoid$1 as La, DebugApi as Li, BaseItalicPlugin as Ln, StructuralRuleEditor as Lo, createTextSubstitutionInputRule as Lr, ListStyle as Lt, HtmlAttributes as M, ElementContentRootSlot as Ma, DomApi as Mi, FormattingContribution as Mn, PluginStore as Mo, inputRuleVeto as Mr, BULLETED_LIST_STYLES as Mt, HtmlContentToken as N, RenderElementFn as Na, DomPluginState as Ni, formatting$1 as Nn, PluginViewStore as No, defineInputRule as Nr, BaseListDefinition as Nt, DeclaredPluginShortcutInput as O, PluginFormatContext as Oa, AutoScrollChangeKind as Oi, TextIndentPluginState as On, PluginSelectorArgs as Oo, RenderLeafProps as Or, PlainTextDocumentOptions as Ot, HtmlElementPatch as P, RenderElementProps as Pa, DomPluginUpdate as Pi, BaseBoldPlugin as Pn, RuleDecision as Po, createBlockFenceInputRule as Pr, BaseListPlugin as Pt, PluginCompatibilityArguments as Q, InferEnabled as Qa, HistoryPluginState as Qi, HeadingLevel as Qn, InputRulesConfig as Qr, UnwrapLinkOptions as Qt, HtmlPrepareDiagnosticInput as R, InternalPluginDefinitionOf as Ra, DebugDefinition as Ri, BaseKbdPlugin as Rn, WithAnyName as Ro, matchBlockStart as Rr, ListType as Rt, BasePluginImplementationContext as S, MarkdownTagAttributeView as Sa, ElementStateDefinition as Si, BaseLineHeightPlugin as Sn, PluginSchemaContext as So, EditableProps as Sr, PluginState as St, BasePluginPortal as T, PluginFormatNode as Ta, ElementIdPlugin as Ti, LineHeightDefinition as Tn, PluginSchemaMark as To, RenderTextPieceProps as Tr, CoreEditorApi as Tt, NodeStaticProps as U, BreakRules as Ua, LogLevel as Ui, CodeRules as Un, Nullable as Uo, BlockFenceInputRuleConfig as Ur, isOrderedList as Ut, InternalBasePluginRuntimeExtension as V, BasePluginDefinition as Va, DebugPluginState as Vi, BaseUnderlinePlugin as Vn, InferPluginSchema as Vo, decodeHtmlDataTransfer as Vr, TaskListRules as Vt, PartialBasePlugin as W, DefinitionOf as Wa, AffinityDefinition as Wi, HighlightRules as Wn, AnyObject as Wo, BlockFenceInputRuleMatch as Wr, isListLevels as Wt, TransformOptions as X, InferConflicts as Xa, HistoryDefinition as Xi, UnderlineRules as Xn, EditorSchemaValidationError as Xo, InputRuleInsertTextOptions as Xr, LinkElement as Xt, TextStaticProps as Y, InferApi as Ya, TransferPlugin as Yi, StrikethroughRules as Yn, setDebugValueScrubber as Yo, InputRuleEditor as Yr, LinkAttributes as Yt, MergePluginDefinitions as Z, InferDependencies as Za, HistoryPlugin as Zi, BaseHeadingPlugin as Zn, InputRuleTarget as Zr, LinkRules as Zt, BasePlugin as _, MarkdownNodeKinds as _a, TextSubstitutionInputRuleConfig as _i, Alignment as _n, PluginDefinitionWitness as _o, getFragmentProp as _r, NodeInsertOptions as _t, SingleLinePlugin as a, BasePluginInstalledCapabilityWitness as aa, InsertDataInputRuleReadContext as ai, IndentPluginState as an, InferPluginUpdateGroups as ao, getPluginNodeClass as ar, RuntimePluginsFromTuple as at, BasePluginDefinitionInput as b, MarkdownPluginRegistry as ba, TransformInputRuleContext as bi, BaseFontFamilyPlugin as bn, PluginReference as bo, ApplyDeepToNodesOptions as br, PluginReadCapability as bt, PLUGINS as c, PlainTextEncodeContext as ca, InsertTextInputRuleReadContext as ci, BaseCodeBlockPlugin as cn, InferSelectors as co, mergeDeepToNodes as cr, BlockInsertOptions as ct, InferBaseEditorPlugins as d, MarkdownDecodeContext as da, MatchBlockFenceOptions as di, CodeBlockElement as dn, MergeRules as do, Hotkeys as dr, InferEditorRuntimePlugins as dt, PluginInitialStateInput as ea, InsertBreakInputRule as ei, WrapLinkOptions as en, InferOwnApi as eo, ToggleHeadingOptions as er, CreateEditorOptions as et, InternalBaseEditorWithInstalledPlugins as f, MarkdownEncodeContext as fa, MatchBlockStartOptions as fi, CodeHighlightDefinition as fn, NodeComponent as fo, createHotkey as fr, InferRuntimePlugins as ft, AnyPluginBase as g, MarkdownNodeKind as ga, SelectionInputRuleContext as gi, HighlightResult as gn, PluginBaseContext as go, GetFragmentPropOptions as gr, MergeInstalledPluginDefinitions as gt, AnyBasePluginPortal as h, MarkdownMarks as ha, ResolvedInputRulesMeta as hi, HighlightNode as hn, NormalizeRules as ho, FragmentPropMode as hr, InternalInstalledSchemaMutationProvider as ht, TrailingBlockPluginState as i, BasePluginDependencyReferences as ia, InsertDataInputRuleContext as ii, IndentDefinition as in, InferPluginStoreState as io, HorizontalRuleRules as ir, PlatePluginsFromTuple as it, EditorShortcut as j, PluginFormatSchemaView as ja, AutoScrollUpdate as ji, FormattingBlockEntry as jn, PluginSelectors as jo, BaseParagraphPlugin as jr, serializePlainText as jt, Decorate as k, PluginFormatModelView as ka, AutoScrollChangesMap as ki, BaseFormattingPlugin as kn, PluginSelectorMethods as ko, StaticRenderLeafProps as kr, PlainTextEditorOptions as kt, PluginName as l, PlainTextNodeMapping as la, MarkInputRuleConfig as li, BaseCodeHighlightPlugin as ln, InferTargetPlugins as lo, isUrl as lr, BlockUpsertOptions as lt, AnyBasePluginContext as m, MarkdownMarkWrapper as ma, ResolvedInputRule as mi, CodeHighlightPluginState as mn, NormalizePluginState as mo, getInjectMatch as mr, InternalInstalledSchemaDefinitionsProvider as mt, TrailingBlockDefinition as n, BasePluginDependencyDescriptors as na, InsertBreakInputRuleReadContext as ni, BaseIndentPlugin as nn, InferOwnUpdate as no, BaseHorizontalRulePlugin as nr, EditorOptions as nt, SingleBlockPlugin as o, LowerBasePlugin as oa, InsertTextInputRule as oi, isNonNegativeSafeInteger as on, InferPluginViewState as oo, isPluginElementClass as or, createEditor as ot, AnyBasePlugin as p, MarkdownMarkWrapContext as pa, MatchDelimitedInlineOptions as pi, CodeHighlightLowlight as pn, NormalizePluginSelectors as po, isHotkey as pr, InternalEditorMutationProvider as pt, RenderStaticNodeWrapperFunction as q, GetInjectNodePropsOptions as qa, AffinityPluginUpdate as qi, ScriptRules as qn, GeneratedEditorTypeProvider as qo, DelimitedInlineInputRuleMatch as qr, BaseLinkPluginState as qt, TrailingBlockPlugin as r, BasePluginDependencyReferenceFor as ra, InsertDataInputRule as ri, IndentChangeOptions as rn, InferPluginReadGroups as ro, BlockquoteRules as rr, EditorValueInput as rt, ExitBreakPlugin as s, NormalizeBasePluginInput$1 as sa, InsertTextInputRuleContext as si, CodeBlockRules as sn, InferRead as so, isPluginNodeClass as sr, BasePluginInput as st, isNominalPluginDescriptor as t, RequiredPluginState as ta, InsertBreakInputRuleContext as ti, getLinkHref as tn, InferOwnRead as to, BaseBlockquotePlugin as tr, EditorCompilation as tt, Editor as u, PlainTextNodeMappingInput as ua, MarkInputRuleMatch as ui, CodeBlockDefinition as un, InferUpdate as uo, isDefined as ur, EditorPropertyTypes as ut, BasePluginConfiguration as v, MarkdownNodeMapping as va, TextSubstitutionMatch as vi, BaseFontBackgroundColorPlugin as vn, PluginDependency as vo, IS_APPLE as vr, PluginDirectUpdate as vt, BasePluginOverride as w, ElementWith as wa, ElementIdEntry as wi, BaseTextIndentPlugin as wn, PluginSchemaElement as wo, RenderTextHostProps as wr, PluginUpdate as wt, BasePluginExtendInput as x, MarkdownRefusal as xa, ElementStateApi as xi, BaseFontSizePlugin as xn, PluginSchema as xo, applyDeepToNodes as xr, PluginReadState as xt, BasePluginContext as y, MarkdownNodeMappingInput as ya, TextSubstitutionPattern as yi, BaseFontColorPlugin as yn, PluginPortalContext as yo, defaultsDeepToNodes as yr, PluginOwnUpdate as yt, HtmlWrapperSpec as z, AnyBasePluginDefinition as za, DebugErrorType as zi, BaseScriptPlugin as zn, WithRequiredName as zo, matchDelimitedInline as zr, OrderedListRules as zt };
10901
+ export { PluginContributionCompatibility as $, InferConflicts as $a, HistoryPlugin as $i, HeadingRules as $n, InputRulesConfig as $r, UpsertLinkOptions as $t, DefinePluginFormats as A, PluginFormatSchemaView as Aa, AutoScrollChangeKind as Ai, CapturedFormat as An, PluginSelector as Ao, BaseParagraphDefinition as Ar, PlainTextSerializeResult as At, InjectNodeProps as B, nanoid$1 as Ba, DebugDefinition as Bi, BaseStrikethroughPlugin as Bn, StructuralRuleEditor as Bo, HtmlPlugin as Br, OutdentListOptions as Bt, BasePluginOn as C, MarkdownRefusal as Ca, TransformInputRuleContext as Ci, BaseTextAlignPlugin as Cn, PluginReference as Co, RenderTextFn as Cr, PluginTransaction as Ct, ConfiguredPluginDescriptor as D, PluginFormatContext as Da, ElementIdPlugin as Di, TextIndentDefinition as Dn, PluginSchemaElement as Do, RenderLeafFn as Dr, PlainTextDiagnostic as Dt, ConfiguredBasePlugin as E, HtmlMappingDiagnosticInput as Ea, ElementStatePlugin as Ei, TextAlignDefinition as En, PluginSchemaDeclaration as Eo, RenderTextProps as Er, CorePlugins as Et, HtmlMatchValue as F, HandlerReturnType as Fa, DomPluginState as Fi, BaseCodePlugin as Fn, PluginStore as Fo, createBlockStartInputRule as Fr, BulletedListRules as Ft, PluginShortcutInput as G, BaseTransformOptions as Ga, LogLevel as Gi, ItalicRules as Gn, InferPluginSchemaContribution as Go, BlockStartInputRuleConfig as Gr, BaseLinkDefinition as Gt, LeafStaticProps as H, AnyBasePluginDefinition as Ha, DebugPlugin as Hi, BoldRules as Hn, WithRequiredName as Ho, BaseInputRule as Hr, ToggleListOptions as Ht, HtmlMatcher as I, DocxNodeMapping as Ia, DomPluginUpdate as Ii, BaseHighlightPlugin as In, PluginViewStore as Io, createMarkInputRule as Ir, ListElement as It, RenderStaticNodeWrapperProps as J, DeleteRules as Ja, AffinityPlugin as Ji, ScriptValue as Jn, UnknownObject as Jo, DelimitedInlineInputRuleMatch as Jr, CreateLinkNodeOptions as Jt, RenderStaticNodeWrapper as K, BreakRules as Ka, AffinityDefinition as Ki, MarkComboRules as Kn, Nullable as Ko, BlockStartInputRuleMatch as Kr, BaseLinkPlugin as Kt, HtmlNodeSpec as L, ElementWith as La, ScrollIntoViewTarget as Li, BaseItalicPlugin as Ln, RuleDecision as Lo, createTextSubstitutionInputRule as Lr, ListStyle as Lt, HtmlAttributes as M, RenderElementFn as Ma, AutoScrollOptions as Mi, FormattingContribution as Mn, PluginSelectorMethods as Mo, inputRuleVeto as Mr, BULLETED_LIST_STYLES as Mt, HtmlContentToken as N, RenderElementProps as Na, AutoScrollUpdate as Ni, formatting$1 as Nn, PluginSelectorReturn as No, defineInputRule as Nr, BaseListDefinition as Nt, DeclaredPluginShortcutInput as O, PluginFormatModelView as Oa, ElementIdPluginState as Oi, TextIndentPluginState as On, PluginSchemaMark as Oo, RenderLeafProps as Or, PlainTextDocumentOptions as Ot, HtmlElementPatch as P, RenderElementSlots as Pa, DomApi as Pi, BaseBoldPlugin as Pn, PluginSelectors as Po, createBlockFenceInputRule as Pr, BaseListPlugin as Pt, PluginCompatibilityArguments as Q, InferApi as Qa, HistoryDefinition as Qi, HeadingLevel as Qn, InputRuleTarget as Qr, UnwrapLinkOptions as Qt, HtmlPrepareDiagnosticInput as R, PluginFormatNode as Ra, ScrollMode as Ri, BaseKbdPlugin as Rn, SelectionRules as Ro, matchBlockStart as Rr, ListType as Rt, BasePluginImplementationContext as S, MarkdownPluginRegistry as Sa, TextSubstitutionPattern as Si, BaseLineHeightPlugin as Sn, PluginPortalContext as So, EditableProps as Sr, PluginState as St, BasePluginPortal as T, MarkdownTagNode as Ta, ElementStateDefinition as Ti, LineHeightDefinition as Tn, PluginSchemaContext as To, RenderTextPieceProps as Tr, CoreEditorApi as Tt, NodeStaticProps as U, BaseInjectProps as Ua, DebugPluginState as Ui, CodeRules as Un, InferPluginNodeTypeProvider as Uo, BlockFenceInputRuleConfig as Ur, isOrderedList as Ut, InternalBasePluginRuntimeExtension as V, InternalPluginDefinitionOf as Va, DebugErrorType as Vi, BaseUnderlinePlugin as Vn, WithAnyName as Vo, decodeHtmlDataTransfer as Vr, TaskListRules as Vt, PartialBasePlugin as W, BasePluginDefinition as Wa, EditorError as Wi, HighlightRules as Wn, InferPluginSchema as Wo, BlockFenceInputRuleMatch as Wr, isListLevels as Wt, TransformOptions as X, GetInjectNodePropsOptions as Xa, TransferDefinition as Xi, UnderlineRules as Xn, GeneratedEditorTypeProvider as Xo, InputRuleEditor as Xr, LinkElement as Xt, TextStaticProps as Y, EditOnlyConfig as Ya, AffinityPluginUpdate as Yi, StrikethroughRules as Yn, GeneratedEditorMutations as Yo, InputRule as Yr, LinkAttributes as Yt, MergePluginDefinitions as Z, GetInjectNodePropsReturnType as Za, TransferPlugin as Zi, BaseHeadingPlugin as Zn, InputRuleInsertTextOptions as Zr, LinkRules as Zt, BasePlugin as _, MarkdownMarks as _a, ResolvedInputRule as _i, Alignment as _n, NormalizePluginState as _o, getFragmentProp as _r, NodeInsertOptions as _t, SingleLinePlugin as a, BasePluginDependencyReferenceFor as aa, InsertDataFollowUpInputRule as ai, IndentPluginState as an, InferOwnUpdate as ao, getPluginNodeClass as ar, RuntimePluginsFromTuple as at, BasePluginDefinitionInput as b, MarkdownNodeMapping as ba, TextSubstitutionInputRuleConfig as bi, BaseFontFamilyPlugin as bn, PluginDefinitionWitness as bo, ApplyDeepToNodesOptions as br, PluginReadCapability as bt, PLUGINS as c, LowerBasePlugin as ca, InsertDataInputRuleReadContext as ci, BaseCodeBlockPlugin as cn, InferPluginUpdateGroups as co, mergeDeepToNodes as cr, BlockInsertOptions as ct, InferBaseEditorPlugins as d, PlainTextNodeMapping as da, InsertTextInputRuleReadContext as di, CodeBlockElement as dn, InferSelectors as do, Hotkeys as dr, InferEditorRuntimePlugins as dt, HistoryPluginState as ea, InputRulesDefinition as ei, WrapLinkOptions as en, InferDependencies as eo, ToggleHeadingOptions as er, CreateEditorOptions as et, InternalBaseEditorWithInstalledPlugins as f, PlainTextNodeMappingInput as fa, MarkInputRuleConfig as fi, CodeHighlightDefinition as fn, InferTargetPlugins as fo, createHotkey as fr, InferRuntimePlugins as ft, AnyPluginBase as g, MarkdownMarkWrapper as ga, MatchDelimitedInlineOptions as gi, HighlightResult as gn, NormalizePluginSelectors as go, GetFragmentPropOptions as gr, MergeInstalledPluginDefinitions as gt, AnyBasePluginPortal as h, MarkdownMarkWrapContext as ha, MatchBlockStartOptions as hi, HighlightNode as hn, NodeComponent as ho, FragmentPropMode as hr, InternalInstalledSchemaMutationProvider as ht, TrailingBlockPluginState as i, BasePluginDependencyDescriptors as ia, InsertDataFollowUpContext as ii, IndentDefinition as in, InferOwnRead as io, HorizontalRuleRules as ir, PlatePluginsFromTuple as it, EditorShortcut as j, ElementContentRootSlot as ja, AutoScrollChangesMap as ji, FormattingBlockEntry as jn, PluginSelectorArgs as jo, BaseParagraphPlugin as jr, serializePlainText as jt, Decorate as k, PluginFormatRegistry as ka, AutoScrollApi as ki, BaseFormattingPlugin as kn, PluginSchemaReferences as ko, StaticRenderLeafProps as kr, PlainTextEditorOptions as kt, PluginName as l, NormalizeBasePluginInput$1 as la, InsertTextInputRule as li, BaseCodeHighlightPlugin as ln, InferPluginViewState as lo, isUrl as lr, BlockUpsertOptions as lt, AnyBasePluginContext as m, MarkdownEncodeContext as ma, MatchBlockFenceOptions as mi, CodeHighlightPluginState as mn, MergeRules as mo, getInjectMatch as mr, InternalInstalledSchemaDefinitionsProvider as mt, TrailingBlockDefinition as n, PluginInitialStateInput as na, InsertBreakInputRuleContext as ni, BaseIndentPlugin as nn, InferName as no, BaseHorizontalRulePlugin as nr, EditorOptions as nt, SingleBlockPlugin as o, BasePluginDependencyReferences as oa, InsertDataInputRule as oi, isNonNegativeSafeInteger as on, InferPluginReadGroups as oo, isPluginElementClass as or, createEditor as ot, AnyBasePlugin as p, MarkdownDecodeContext as pa, MarkInputRuleMatch as pi, CodeHighlightLowlight as pn, InferUpdate as po, isHotkey as pr, InternalEditorMutationProvider as pt, RenderStaticNodeWrapperFunction as q, DefinitionOf as qa, AffinityEdgeNodes as qi, ScriptRules as qn, AnyObject as qo, DefinedInsertDataFollowUpInputRule as qr, BaseLinkPluginState as qt, TrailingBlockPlugin as r, RequiredPluginState as ra, InsertBreakInputRuleReadContext as ri, IndentChangeOptions as rn, InferOwnApi as ro, BlockquoteRules as rr, EditorValueInput as rt, ExitBreakPlugin as s, BasePluginInstalledCapabilityWitness as sa, InsertDataInputRuleContext as si, CodeBlockRules as sn, InferPluginStoreState as so, isPluginNodeClass as sr, BasePluginInput as st, isNominalPluginDescriptor as t, definePlugin as ta, InsertBreakInputRule as ti, getLinkHref as tn, InferEnabled as to, BaseBlockquotePlugin as tr, EditorCompilation as tt, Editor as u, PlainTextEncodeContext as ua, InsertTextInputRuleContext as ui, CodeBlockDefinition as un, InferRead as uo, isDefined as ur, EditorPropertyTypes as ut, BasePluginConfiguration as v, MarkdownNodeKind as va, ResolvedInputRulesMeta as vi, BaseFontBackgroundColorPlugin as vn, NormalizeRules as vo, IS_APPLE as vr, PluginDirectUpdate as vt, BasePluginOverride as w, MarkdownTagAttributeView as wa, ElementStateApi as wi, BaseTextIndentPlugin as wn, PluginSchema as wo, RenderTextHostProps as wr, PluginUpdate as wt, BasePluginExtendInput as x, MarkdownNodeMappingInput as xa, TextSubstitutionMatch as xi, BaseFontSizePlugin as xn, PluginDependency as xo, applyDeepToNodes as xr, PluginReadState as xt, BasePluginContext as y, MarkdownNodeKinds as ya, SelectionInputRuleContext as yi, BaseFontColorPlugin as yn, PluginBaseContext as yo, defaultsDeepToNodes as yr, PluginOwnUpdate as yt, HtmlWrapperSpec as z, TextWith as za, DebugApi as zi, BaseScriptPlugin as zn, StructuralRuleContext as zo, matchDelimitedInline as zr, OrderedListRules as zt };