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,12 +1,45 @@
1
- import { $i as NodeKey, $o as TxMethodDeclarations, $u as EditorJsonValue, A as TransferPlugin, Aa as PluginReference, Ba as RootKey, Cl as PropertyValueOptions, Dn as EditorCommitContext, Ec as Element$1, El as SchemaContentDefault, Hs as NodeEntry, I as TransferCheck, Ic as EditorSchemaSource, Il as SchemaContentRule, Ji as HistoryOutcome, Ju as Path, Ki as EditorViewOptions, Kl as SchemaElementPropertyDefinition, La as PluginWitnessFor, Lc as EditorSchemaSourceProvider, Ln as EditorDocumentValue, Lo as NodeSetNodesOptions, Lr as EditorStateField, Mc as ElementOf, Mi as EditorUpdateContext, Mu as Location, Na as PluginTypeProviderOf, Pi as EditorUpdatePolicy, Qi as NamedRootKey, Qo as TxDeclaredMethod, Ra as PluginsOf, Rc as SchemaNodeTypeProvider, Tc as BaseElement, U as TransferOutcome, Xa as StateFieldValueInput, Xr as EditorStateView, ar as EditorNodeChangeContext, cn as DefinitionOf, dl as PropertyEnumDescriptor, ds as DecorationRefresh, ea as NodeTarget, ei as EditorTextChangeContext, eo as Value, fl as PropertyJsonDescriptor, ga as PluginDependencyReferenceFor, gs as Selection, in as AnyEditor, j as TransferRead, k as TransferApi, li as EditorTransactionChangeContext, ln as Editor$3, ls as Decoration, ma as PluginDependencyContractReference, ml as PropertyNumberDescriptor, ms as NodeSelection, na as Plugin$1, to as ValueOf, ul as PropertyBooleanDescriptor, us as DecorationAttributes, vl as PropertyStringDescriptor, wa as PluginPortal$1, wc as TextOf, wn as EditorCommit, yc as Text, yo as TextInsertFragmentOptions, z as TransferInput, zu as Range } from "./index-BU6k1Aev.js";
2
- import { h as EditorApplicationSchema } from "./htmlTypes-DjeFG3P8.js";
3
- import { $ as PluginContributionCompatibility, $t as UpsertLinkOptions, A as DefinePluginFormats, Ai as AutoScrollOptions, An as CapturedFormat, Ao as PluginSelectorReturn, Ba as BaseInjectProps, Bo as InferPluginNodeTypeProvider, Bt as OutdentListOptions, Co as PluginSchemaDeclaration, Ct as PluginTransaction, D as ConfiguredPluginDescriptor, Di as AutoScrollApi, Er as RenderTextProps$1, Et as CorePlugins, Fo as SelectionRules, G as PluginShortcutInput, Go as UnknownObject, Ha as BaseTransformOptions, Ho as InferPluginSchemaContribution, Ht as ToggleListOptions, Ia as HandlerReturnType, Ii as ScrollMode, Ja as GetInjectNodePropsReturnType, Jt as CreateLinkNodeOptions, Ka as EditOnlyConfig, Ko as GeneratedEditorMutations, Lt as ListStyle, No as PluginViewStore, Oo as PluginSelectorArgs, Or as RenderLeafProps$1, Pa as RenderElementProps$1, Q as PluginCompatibilityArguments, Qn as HeadingLevel, Qt as UnwrapLinkOptions, Ra as InternalPluginDefinitionOf, Ro as WithAnyName, Rt as ListType, So as PluginSchemaContext, Tt as CoreEditorApi, Uo as Nullable, V as InternalBasePluginRuntimeExtension, Va as BasePluginDefinition, Vo as InferPluginSchema, Wa as DefinitionOf$1, Wo as AnyObject, Wt as isListLevels, Xa as InferConflicts, Ya as InferApi, Yt as LinkAttributes, Z as MergePluginDefinitions, Za as InferDependencies, _ as BasePlugin, _n as Alignment, _o as PluginDefinitionWitness, aa as BasePluginInstalledCapabilityWitness, at as RuntimePluginsFromTuple, b as BasePluginDefinitionInput, bo as PluginReference$1, bt as PluginReadCapability, co as InferSelectors, ct as BlockInsertOptions, dt as InferEditorRuntimePlugins, ea as PluginInitialStateInput, en as WrapLinkOptions, er as ToggleHeadingOptions, f as InternalBaseEditorWithInstalledPlugins, fo as NodeComponent, ft as InferRuntimePlugins, g as AnyPluginBase, gn as HighlightResult, go as PluginBaseContext, gr as GetFragmentPropOptions, gt as MergeInstalledPluginDefinitions, h as AnyBasePluginPortal, ht as InternalInstalledSchemaMutationProvider, ia as BasePluginDependencyReferences, io as InferPluginStoreState, it as PlatePluginsFromTuple, j as EditorShortcut, ji as AutoScrollUpdate, jo as PluginSelectors, ko as PluginSelectorMethods, lt as BlockUpsertOptions, m as AnyBasePluginContext, mo as NormalizePluginState, na as BasePluginDependencyDescriptors, nt as EditorOptions, oa as LowerBasePlugin, on as isNonNegativeSafeInteger, oo as InferPluginViewState, p as AnyBasePlugin, po as NormalizePluginSelectors, pt as InternalEditorMutationProvider, qa as GetInjectNodePropsOptions, rn as IndentChangeOptions, rt as EditorValueInput, sa as NormalizeBasePluginInput, so as InferRead, st as BasePluginInput, ta as RequiredPluginState, u as Editor$4, uo as InferUpdate, v as BasePluginConfiguration, vo as PluginDependency, vt as PluginDirectUpdate, wa as ElementWith, xt as PluginReadState, yo as PluginPortalContext, za as AnyBasePluginDefinition } from "./core-BJG8l_mk.js";
4
- import { A as DOMCoverageBoundary, C as DOMEditor, D as ScrollIntoViewOptions, F as DOMCoverageSelectionPolicy, M as DOMCoverageMaterializeRangeRole, N as DOMCoverageMaterializeReason, P as DOMCoverageReason, S as DOMClipboardApi, _ as DOMPluginTypes, c as DataTransferDiagnostic, g as DOMPlugin, j as DOMCoverageCopyPolicy, k as DropIndicator, x as DOMApi } from "./index-DaM37gF6.js";
5
- import { a as AnnotationSnapshot, d as ViewSourceErrorSink, l as ResolvedAnnotation, o as AnnotationStore, t as Annotation } from "./index-iaZOhA76.js";
6
- import { n as EditorStaticProps } from "./PlateStatic-DhNv2ejp.js";
7
- import "lodash";
1
+ import { $a as Path, $n as EditorSchemaSourceProvider, Ba as NodeTarget, Bo as PluginTypeProviderOf, Ca as NodeKey, Ci as Element$1, Ds as SchemaContentDefault, F as DecorationAttributes, Fc as Selection, Fi as HistoryOutcome, Fl as TransferApi, Fo as PluginReference, Ht as EditorJsonValue, I as DecorationRefresh, Ia as NodeSelection, Il as TransferCheck, Ji as Location, Jl as TransferRead, Ko as PluginsOf, Ls as SchemaContentRule, Oo as PluginPortal$1, P as Decoration, Qn as EditorSchemaSource, Qo as PropertyBooleanDescriptor, R as DefinitionOf, Ra as NodeSetNodesOptions, Rr as EditorTransactionChangeContext, Si as EditorViewOptions, Tr as EditorStateView, Tt as EditorDocumentValue, Ul as TransferOutcome, Wo as PluginWitnessFor, Y as Editor$3, Yt as EditorNodeChangeContext, au as TxMethodDeclarations, bl as TextInsertFragmentOptions, bo as PluginDependencyReferenceFor, cl as StateFieldValueInput, cu as ValueOf, dl as Text, dt as EditorCommit, es as PropertyEnumDescriptor, f as AnyEditor, fr as EditorStateField, fs as PropertyValueOptions, ia as NamedRootKey, iu as TxDeclaredMethod, ji as ElementOf, kr as EditorTextChangeContext, li as EditorUpdatePolicy, mt as EditorCommitContext, oc as SchemaNodeTypeProvider, oo as Plugin$1, pa as NodeEntry, ps as Range, ql as TransferPlugin, qs as SchemaElementPropertyDefinition, rs as PropertyNumberDescriptor, si as EditorUpdateContext, ss as PropertyStringDescriptor, su as Value, ts as PropertyJsonDescriptor, v as BaseElement, vo as PluginDependencyContractReference, wl as TextOf, ws as RootKey, zl as TransferInput } from "./index-BXjLmx1n-CXk17buG.js";
2
+ import { h as EditorApplicationSchema } from "./htmlTypes-eT2ZGDAj.js";
3
+ import { $ as PluginContributionCompatibility, $a as InferConflicts, $t as UpsertLinkOptions, A as DefinePluginFormats, An as CapturedFormat, Bt as OutdentListOptions, Co as PluginReference$1, Ct as PluginTransaction, D as ConfiguredPluginDescriptor, Eo as PluginSchemaDeclaration, Er as RenderTextProps$1, Et as CorePlugins, Fa as HandlerReturnType, G as PluginShortcutInput, Ga as BaseTransformOptions, Go as InferPluginSchemaContribution, Ha as AnyBasePluginDefinition, Ht as ToggleListOptions, Io as PluginViewStore, Jo as UnknownObject, Jt as CreateLinkNodeOptions, Ko as Nullable, La as ElementWith, Lt as ListStyle, Mi as AutoScrollOptions, Mo as PluginSelectorMethods, Na as RenderElementProps$1, Ni as AutoScrollUpdate, No as PluginSelectorReturn, Or as RenderLeafProps$1, Po as PluginSelectors, Q as PluginCompatibilityArguments, Qa as InferApi, Qn as HeadingLevel, Qt as UnwrapLinkOptions, Ri as ScrollMode, Ro as SelectionRules, Rt as ListType, So as PluginPortalContext, To as PluginSchemaContext, Tt as CoreEditorApi, Ua as BaseInjectProps, Uo as InferPluginNodeTypeProvider, V as InternalBasePluginRuntimeExtension, Va as InternalPluginDefinitionOf, Vo as WithAnyName, Wa as BasePluginDefinition, Wo as InferPluginSchema, Wt as isListLevels, Xa as GetInjectNodePropsOptions, Ya as EditOnlyConfig, Yo as GeneratedEditorMutations, Yt as LinkAttributes, Z as MergePluginDefinitions, Za as GetInjectNodePropsReturnType, _ as BasePlugin, _n as Alignment, _o as NormalizePluginState, at as RuntimePluginsFromTuple, b as BasePluginDefinitionInput, bo as PluginDefinitionWitness, bt as PluginReadCapability, ca as LowerBasePlugin, ct as BlockInsertOptions, do as InferSelectors, dt as InferEditorRuntimePlugins, en as WrapLinkOptions, eo as InferDependencies, er as ToggleHeadingOptions, f as InternalBaseEditorWithInstalledPlugins, ft as InferRuntimePlugins, g as AnyPluginBase, gn as HighlightResult, go as NormalizePluginSelectors, gr as GetFragmentPropOptions, gt as MergeInstalledPluginDefinitions, h as AnyBasePluginPortal, ho as NodeComponent, ht as InternalInstalledSchemaMutationProvider, ia as BasePluginDependencyDescriptors, it as PlatePluginsFromTuple, j as EditorShortcut, jo as PluginSelectorArgs, ki as AutoScrollApi, la as NormalizeBasePluginInput, lo as InferPluginViewState, lt as BlockUpsertOptions, m as AnyBasePluginContext, na as PluginInitialStateInput, nt as EditorOptions, oa as BasePluginDependencyReferences, on as isNonNegativeSafeInteger, p as AnyBasePlugin, po as InferUpdate, pt as InternalEditorMutationProvider, qa as DefinitionOf$1, qo as AnyObject, ra as RequiredPluginState, rn as IndentChangeOptions, rt as EditorValueInput, sa as BasePluginInstalledCapabilityWitness, so as InferPluginStoreState, st as BasePluginInput, u as Editor$4, uo as InferRead, v as BasePluginConfiguration, vt as PluginDirectUpdate, xo as PluginDependency, xt as PluginReadState, yo as PluginBaseContext } from "./core-BqR-fEDp.js";
4
+ import { I as ScrollIntoViewOptions, T as DataTransferDiagnostic, a as DOMCoverageBoundary, c as DOMCoverageMaterializeReason, d as DOMEditor, h as DOMPluginTypes, i as DOMClipboardApi, j as DropIndicator, l as DOMCoverageReason, m as DOMPlugin, o as DOMCoverageCopyPolicy, r as DOMApi, s as DOMCoverageMaterializeRangeRole, u as DOMCoverageSelectionPolicy } from "./index-DShbzec2.js";
5
+ import { a as AnnotationSnapshot, d as ViewSourceErrorSink, l as ResolvedAnnotation, o as AnnotationStore, t as Annotation } from "./index-BWPcE4ac-Cto_IsNs.js";
6
+ import { n as EditorStaticProps } from "./PlateStatic-D3Cb-QwH.js";
8
7
  import React$1, { CSSProperties, HTMLAttributes, KeyboardEvent as KeyboardEvent$1, MouseEventHandler, ReactNode, Ref, RefObject, TextareaHTMLAttributes } from "react";
9
- type Editor$2<V extends Value = any> = AnyEditor<V>;
8
+ import "lodash";
9
+ /** An immutable rectangle in viewport coordinates. */
10
+ type ViewportRect = Readonly<{
11
+ bottom: number;
12
+ height: number;
13
+ left: number;
14
+ right: number;
15
+ top: number;
16
+ width: number;
17
+ x: number;
18
+ y: number;
19
+ }>;
20
+ /** The boxes of one range in viewport coordinates. */
21
+ type RangeRects = Readonly<{
22
+ boundingRect: ViewportRect;
23
+ focusRect: ViewportRect | null;
24
+ rects: readonly ViewportRect[];
25
+ }>;
26
+ /** Immutable DOM geometry for one range in one mounted Editable. */
27
+ type RangeGeometry = RangeRects & Readonly<{
28
+ /**
29
+ * The part of the Editable anyone can see: the viewport cut by every box
30
+ * that clips the Editable, its own box included when its overflow clips.
31
+ * Every range of one Editable shares it in a frame. `null` when none shows.
32
+ */
33
+ clipRect: ViewportRect | null;
34
+ /**
35
+ * The range's boxes cut to `clipRect`, each line outside it dropped. A
36
+ * line that only touches the edge is outside; a caret on the edge is
37
+ * inside. `null` when nothing of the range is inside. Show or hide by it,
38
+ * and draw inside `clipRect`.
39
+ */
40
+ visible: RangeRects | null;
41
+ }>;
42
+ type Editor$1<V extends Value = any> = AnyEditor<V>;
10
43
  type InputIntent = 'clipboard' | 'composition' | 'delete' | 'history' | 'insert-break' | 'internal-control' | 'model-selection-move' | 'native-selection-move' | 'viewport-selection' | 'text-insert';
11
44
  type SelectionSource = 'app-owned' | 'composition-owned' | 'dom-current' | 'internal-control' | 'model-owned' | 'viewport-backed' | 'unknown';
12
45
  type EditableSelectionSourceTransition = {
@@ -14,6 +47,15 @@ type EditableSelectionSourceTransition = {
14
47
  reason: 'internal-control' | 'model-command' | 'native-selection-move' | 'decoration-refresh' | 'repair-induced' | 'unknown-selection';
15
48
  selectionSource: SelectionSource;
16
49
  };
50
+ /** Text a mounted Editable committed with typing intent. */
51
+ type TypedText = Readonly<{
52
+ /** The Editable root element whose input produced the text. */
53
+ editable: HTMLElement;
54
+ /** The inserted text in the model, ending at the caret. */
55
+ range: Range;
56
+ text: string;
57
+ }>;
58
+ type TypedTextListener = (typed: TypedText) => void;
17
59
  type AnyDOMPlugin = DOMPlugin | DOMPlugin<false> | DOMPlugin<boolean>;
18
60
  /** Options for installing React over one exact DOM plugin descriptor. */
19
61
  interface ReactPluginOptions<TDOMPlugin extends AnyDOMPlugin = AnyDOMPlugin> {
@@ -86,7 +128,7 @@ declare const react: <const TDOMPlugin extends AnyDOMPlugin>({ dom: domPlugin }:
86
128
  type ReactDefaultPlugins<TPlugins extends readonly unknown[]> = readonly [...TPlugins, DOMPlugin, TransferPlugin, ReactPlugin$1];
87
129
  type EditorBase<V extends Value, TPlugins extends readonly unknown[]> = AnyEditor<V, ReactDefaultPlugins<TPlugins>>;
88
130
  /** AnyEditor type with the React and DOM plugins installed. */
89
- type Editor$1<V extends Value = Value, TPlugins extends readonly unknown[] = readonly []> = Omit<EditorBase<V, TPlugins>, 'api' | 'update'> & {
131
+ type Editor$2<V extends Value = Value, TPlugins extends readonly unknown[] = readonly []> = Omit<EditorBase<V, TPlugins>, 'api' | 'update'> & {
90
132
  readonly api: EditorBase<V, TPlugins>['api'] & DOMPluginTypes['api'] & {
91
133
  react: ReactApi;
92
134
  transfer: TransferApi;
@@ -104,21 +146,31 @@ interface ReactRuntimeEditor<V extends Value = Value, TPlugins extends readonly
104
146
  react: ReactApi;
105
147
  };
106
148
  }
107
- /** Text a mounted Editable committed with typing intent. */
108
- type TypedText = Readonly<{
109
- /** The Editable root element whose input produced the text. */
110
- editable: HTMLElement;
111
- /** The inserted text in the model, ending at the caret. */
112
- range: Range;
113
- text: string;
114
- }>;
115
- type TypedTextListener = (typed: TypedText) => void;
116
149
  type DecorationSlice = Readonly<{
117
150
  attributes: DecorationAttributes;
118
151
  end: number;
119
152
  key: string;
120
153
  start: number;
121
154
  }>;
155
+ type EditableRepairRequest = {
156
+ focus?: boolean;
157
+ forceRender?: boolean;
158
+ kind: 'force-render';
159
+ selectionSourceTransition?: EditableSelectionSourceTransition;
160
+ } | {
161
+ focus?: boolean;
162
+ forceRender?: boolean;
163
+ kind: 'sync-selection';
164
+ selectionSourceTransition?: EditableSelectionSourceTransition;
165
+ syncDOMSelection?: boolean;
166
+ } | {
167
+ focus?: boolean;
168
+ forceRender?: boolean;
169
+ kind: 'repair-caret' | 'repair-caret-after-text-insert';
170
+ selectionSourceTransition?: EditableSelectionSourceTransition;
171
+ } | {
172
+ kind: 'none' | 'skip-dom-sync';
173
+ };
122
174
  /** An exact replacement in the observed text's UTF-16 before coordinates. */
123
175
  type ExternalTextChange = Readonly<{
124
176
  from: number;
@@ -246,47 +298,6 @@ type ExternalTextOptions<TConfig = undefined> = Readonly<{
246
298
  }> : Readonly<{
247
299
  config: TConfig;
248
300
  }>);
249
- type EditableRepairRequest = {
250
- focus?: boolean;
251
- forceRender?: boolean;
252
- kind: 'force-render';
253
- selectionSourceTransition?: EditableSelectionSourceTransition;
254
- } | {
255
- focus?: boolean;
256
- forceRender?: boolean;
257
- kind: 'sync-selection';
258
- selectionSourceTransition?: EditableSelectionSourceTransition;
259
- syncDOMSelection?: boolean;
260
- } | {
261
- focus?: boolean;
262
- forceRender?: boolean;
263
- kind: 'repair-caret' | 'repair-caret-after-text-insert';
264
- selectionSourceTransition?: EditableSelectionSourceTransition;
265
- } | {
266
- kind: 'none' | 'skip-dom-sync';
267
- };
268
- type EditableHandlerResult = boolean | EditableRepairRequest | void;
269
- /**
270
- * What an editable passes each DOM handler after its event. `editor` is the
271
- * view whose editable runs the handler, such as a content root's.
272
- */
273
- type EditableHandlerContext = {
274
- editor: ReactRuntimeEditor;
275
- };
276
- type EditableInputEventContext = EditableHandlerContext & {
277
- data: unknown;
278
- event?: InputEvent | React$1.KeyboardEvent<HTMLDivElement>;
279
- inputType?: string;
280
- intent: InputIntent | null;
281
- native: boolean;
282
- selection: Range | null;
283
- };
284
- type EditableDOMBeforeInputContext = EditableInputEventContext & {
285
- event: InputEvent;
286
- inputType: string;
287
- };
288
- type EditableDOMBeforeInputHandler = (event: InputEvent, context: EditableDOMBeforeInputContext) => EditableHandlerResult;
289
- type EditableKeyDownHandler = (event: React$1.KeyboardEvent<HTMLDivElement>, context: EditableHandlerContext) => EditableHandlerResult;
290
301
  type EditorHistoryFocusPolicy$1 = 'none' | 'preserve' | 'restore-root';
291
302
  type NodeSelectionFocus = RefObject<HTMLElement | null>;
292
303
  type EditableHistoryReplayResult = HistoryOutcome | Readonly<{
@@ -326,6 +337,28 @@ type EditableDropResult = Readonly<{
326
337
  kind: 'transfer';
327
338
  outcome: TransferOutcome;
328
339
  }>;
340
+ type EditableHandlerResult = boolean | EditableRepairRequest | void;
341
+ /**
342
+ * What an editable passes each DOM handler after its event. `editor` is the
343
+ * view whose editable runs the handler, such as a content root's.
344
+ */
345
+ type EditableHandlerContext = {
346
+ editor: ReactRuntimeEditor;
347
+ };
348
+ type EditableInputEventContext = EditableHandlerContext & {
349
+ data: unknown;
350
+ event?: InputEvent | React$1.KeyboardEvent<HTMLDivElement>;
351
+ inputType?: string;
352
+ intent: InputIntent | null;
353
+ native: boolean;
354
+ selection: Range | null;
355
+ };
356
+ type EditableDOMBeforeInputContext = EditableInputEventContext & {
357
+ event: InputEvent;
358
+ inputType: string;
359
+ };
360
+ type EditableDOMBeforeInputHandler = (event: InputEvent, context: EditableDOMBeforeInputContext) => EditableHandlerResult;
361
+ type EditableKeyDownHandler = (event: React$1.KeyboardEvent<HTMLDivElement>, context: EditableHandlerContext) => EditableHandlerResult;
329
362
  /**
330
363
  * Expose the browser test handle that `@platejs/test` reads on every
331
364
  * `Editable` root mounted afterwards, and keep the kernel trace it reads.
@@ -457,13 +490,15 @@ type EditableContentRootSlotOptions = {
457
490
  id?: string;
458
491
  /**
459
492
  * The element that takes focus in place of this root's editable when the
460
- * editor moves focus here, as after an undo, while there is no selection or
461
- * a node selection holds only top-level blocks of this root. It does not
462
- * take focus while the editor shows a caret or a text selection, even one
463
- * the model does not hold, or on a call to `editor.api.dom.focus()`, which
464
- * focuses the editable. Unless the element is a control, such as a button,
465
- * the editor reads no keys from it, so it must handle the keys it needs,
466
- * such as undo and redo.
493
+ * editor moves focus here, as after an undo or on a call to
494
+ * `editor.api.dom.focus()`, while there is no selection or a node selection
495
+ * holds only top-level blocks of this root. It does not take focus while the
496
+ * editor shows a caret or a text selection, even a range drawn on the page
497
+ * that reaches into this root, and a click that selects an object in this
498
+ * root focuses the editable. When the render that follows a focus call
499
+ * replaces the element, focus falls to the page. Unless the element is a
500
+ * control, such as a button, the editor reads no keys from it, so it must
501
+ * handle the keys it needs, such as undo and redo.
467
502
  */
468
503
  nodeSelectionFocus?: NodeSelectionFocus;
469
504
  placeholder?: ReactNode;
@@ -566,7 +601,7 @@ type EditableProps<TElement extends Element$1 = Element$1, TRoot extends RootKey
566
601
  renderText?: (props: RenderTextProps) => ReactNode;
567
602
  renderVoid?: RenderVoidRenderer<TElement>;
568
603
  root?: NamedRootKey<TRoot>;
569
- scrollSelectionIntoView?: (editor: Editor$2, domRange: globalThis.Range) => void;
604
+ scrollSelectionIntoView?: (editor: Editor$1, domRange: globalThis.Range) => void;
570
605
  spellCheck?: TextareaHTMLAttributes<HTMLDivElement>['spellCheck'];
571
606
  style?: CSSProperties;
572
607
  } & EditableDOMHandlers<Omit<TextareaHTMLAttributes<HTMLDivElement>, 'autoFocus' | 'children' | 'className' | 'id' | 'onKeyDown' | 'placeholder' | 'readOnly' | 'spellCheck' | 'style'>>;
@@ -590,7 +625,7 @@ declare const useEditorScrollElementRef: (editor: DOMScopeEditor, { fallback }?:
590
625
  }) => (element: HTMLElement | null) => void;
591
626
  /** Options for explicit editor runtime-state selectors. */
592
627
  interface EditorRuntimeStateSelectorOptions<T, TEditor extends Editor$3<any, any> = Editor$3<any, any>> {
593
- equalityFn?: (a: T | null, b: T) => boolean;
628
+ equalityFn?: (a: T, b: T) => boolean;
594
629
  shouldUpdate?: (change?: EditorCommit<ValueOf<TEditor>>) => boolean;
595
630
  }
596
631
  /**
@@ -604,12 +639,12 @@ declare function useEditorRuntimeState<T, TEditor extends Editor$3<any, any> = E
604
639
  /** Options for selectors that read from the immutable editor state view. */
605
640
  interface EditorStateSelectorOptions<T> {
606
641
  deferred?: boolean;
607
- equalityFn?: (a: T | null, b: T) => boolean;
642
+ equalityFn?: (a: T, b: T) => boolean;
608
643
  shouldUpdate?: (change?: EditorCommit) => boolean;
609
644
  }
610
645
  /** Options for explicit editor view-state selectors. */
611
646
  interface EditorViewStateSelectorOptions<T> {
612
- equalityFn?: (a: T | null, b: T) => boolean;
647
+ equalityFn?: (a: T, b: T) => boolean;
613
648
  }
614
649
  /**
615
650
  * Subscribe to a derived view-state value from an explicit editor instance.
@@ -712,39 +747,6 @@ declare function useContentRoot(element?: Element$1 | null, options?: UseContent
712
747
  * edge: the target key, edge, axis and the viewport line to paint.
713
748
  */
714
749
  declare const useDropIndicator: () => DropIndicator | null;
715
- /** An immutable rectangle in viewport coordinates. */
716
- type ViewportRect = Readonly<{
717
- bottom: number;
718
- height: number;
719
- left: number;
720
- right: number;
721
- top: number;
722
- width: number;
723
- x: number;
724
- y: number;
725
- }>;
726
- /** The boxes of one range in viewport coordinates. */
727
- type RangeRects = Readonly<{
728
- boundingRect: ViewportRect;
729
- focusRect: ViewportRect | null;
730
- rects: readonly ViewportRect[];
731
- }>;
732
- /** Immutable DOM geometry for one range in one mounted Editable. */
733
- type RangeGeometry = RangeRects & Readonly<{
734
- /**
735
- * The part of the Editable anyone can see: the viewport cut by every box
736
- * that clips the Editable, its own box included when its overflow clips.
737
- * Every range of one Editable shares it in a frame. `null` when none shows.
738
- */
739
- clipRect: ViewportRect | null;
740
- /**
741
- * The range's boxes cut to `clipRect`, each line outside it dropped. A
742
- * line that only touches the edge is outside; a caret on the edge is
743
- * inside. `null` when nothing of the range is inside. Show or hide by it,
744
- * and draw inside `clipRect`.
745
- */
746
- visible: RangeRects | null;
747
- }>;
748
750
  /** Identifies the exact mounted Editable whose visible part cuts the boxes. */
749
751
  type UseEditableClipOptions = Readonly<{
750
752
  editableRef: RefObject<HTMLElement | null>;
@@ -765,7 +767,7 @@ type UseEditorHistoryOptions<TRoot extends RootKey = RootKey> = {
765
767
  focusPolicy?: EditorHistoryFocusPolicy;
766
768
  } & ({
767
769
  /** Bind commands and focus to this existing view, including outside an editor root. */
768
- editor: Editor$1<any, any>;
770
+ editor: Editor$2<any, any>;
769
771
  root?: never;
770
772
  } | {
771
773
  editor?: undefined;
@@ -780,25 +782,13 @@ type EditorHistoryController = {
780
782
  redo: () => void;
781
783
  undo: () => void;
782
784
  };
783
- /**
784
- * Create undo/redo commands and keyboard handling.
785
- *
786
- * Without `editor` or `root`, they run through the shown writable view used
787
- * last, and are on only while a shown writable `Editable` reaches every root
788
- * the next undo or redo changes. With `editor` or `root`, they replay the next
789
- * batch whatever roots it changes. With `root`, they are off while no view of
790
- * it is shown. With `editor`, they can stay on while no `Editable` runs that
791
- * editor, and a click then does nothing. They are off while their view is
792
- * read-only or composes text.
793
- */
794
- declare function useEditorHistory<const TRoot extends RootKey = RootKey>({ editor: providedEditor, focusPolicy, root: fixedRoot }?: UseEditorHistoryOptions<TRoot>): EditorHistoryController;
795
785
  /** Selector options for `useRuntimeState` and `useRootState`. */
796
786
  type RuntimeStateSelectorOptions<T> = {
797
787
  deferred?: boolean;
798
- equalityFn?: (a: T | null, b: T) => boolean;
788
+ equalityFn?: (a: T, b: T) => boolean;
799
789
  shouldUpdate?: (change?: EditorCommit) => boolean;
800
790
  };
801
- type ReactEditorState = EditorStateView<ValueOf<Editor$1>, PluginsOf<Editor$1>>;
791
+ type ReactEditorState = EditorStateView<ValueOf<Editor$2>, PluginsOf<Editor$2>>;
802
792
  /**
803
793
  * Subscribe to a selected value from the root runtime editor state.
804
794
  *
@@ -827,14 +817,19 @@ type UseRootEditorOptions = {
827
817
  * Create a command-capable editor for one root.
828
818
  *
829
819
  * The returned object is stable for the requested root and read-only option.
820
+ * A renderer inside an `Editable` gets another object than UI outside it, so
821
+ * a lock set through one does not reach the other.
830
822
  * It obeys the read-only state and the authored view of the mounted view that
831
823
  * shows its root, and of the view around the hook while none shows it. Inside
832
824
  * a view, that mounted view is the one this view mounts for the root, such as
833
- * its own board when two editing areas show the same board. Use it for
825
+ * its own board when two editing areas show the same board. It acts only
826
+ * under its own `EditorRoot`, so while that `EditorRoot` shows no editing
827
+ * area for its root, `api.dom.editable()` returns `null`, even when an
828
+ * editing area in another `EditorRoot` holds the caret. Use it for
834
829
  * root-specific toolbar/sidebar commands. Pass `readOnly: true` when UI only
835
830
  * needs read APIs. Exact plugin capability comes from `editor.plugin(Plugin)`.
836
831
  */
837
- declare function useRootEditor<const TRoot extends RootKey = RootKey>(root?: NamedRootKey<TRoot>, options?: UseRootEditorOptions): Editor$1;
832
+ declare function useRootEditor<const TRoot extends RootKey = RootKey>(root?: NamedRootKey<TRoot>, options?: UseRootEditorOptions): Editor$2;
838
833
  /** Identifies the exact mounted Editable used to resolve selection geometry. */
839
834
  type UseSelectionGeometryOptions = Readonly<{
840
835
  editableRef: RefObject<HTMLElement | null>;
@@ -1186,7 +1181,11 @@ declare function EditorProvider({ children, editor }: {
1186
1181
  children: React$1.ReactNode;
1187
1182
  editor: Editor | null;
1188
1183
  }): React$1.JSX.Element;
1189
- /** Share the mounted editor the user focused or pressed last with controls outside individual Plate providers. */
1184
+ /**
1185
+ * Give controls outside every `EditorRoot` what the `EditorRoot` used last gives
1186
+ * its own controls outside its editing areas. Until one is used, that is the
1187
+ * first `primary` one with a mounted `EditorContent`.
1188
+ */
1190
1189
  declare function EditorController({ children }: {
1191
1190
  children: React$1.ReactNode;
1192
1191
  }): React$1.JSX.Element;
@@ -1236,12 +1235,13 @@ type ViewElementAttributeEntry = Readonly<{
1236
1235
  type AnyPluginRender = AnyBasePlugin['render'] & {
1237
1236
  useViewElementAttributes?: ErasedCallback<readonly ViewElementAttributeEntry[]> | null;
1238
1237
  };
1239
- type AnyPluginSlots = Omit<AnyBasePlugin['slots'], 'afterContainer' | 'afterEditable' | 'afterNodeChildren' | 'beforeContainer' | 'beforeEditable' | 'wrapContent' | 'wrapNode' | 'wrapNodeChildren' | 'wrapRoot'> & {
1238
+ type AnyPluginSlots = Omit<AnyBasePlugin['slots'], 'afterContainer' | 'afterEditable' | 'afterNodeChildren' | 'beforeContainer' | 'beforeEditable' | 'caret' | 'wrapContent' | 'wrapNode' | 'wrapNodeChildren' | 'wrapRoot'> & {
1240
1239
  afterContainer?: ContainerSiblingComponent | null;
1241
1240
  afterEditable?: EditableSiblingComponent | null;
1242
1241
  afterNodeChildren?: ErasedCallback<React$1.ReactNode> | null;
1243
1242
  beforeContainer?: ContainerSiblingComponent | null;
1244
1243
  beforeEditable?: EditableSiblingComponent | null;
1244
+ caret?: EditableSiblingComponent | null;
1245
1245
  wrapContent?: ((props: WrapContentProps) => React$1.ReactNode) | null;
1246
1246
  wrapNode?: ErasedRenderNodeWrapper | ErasedRenderNodeWrapperDescriptor | null;
1247
1247
  wrapNodeChildren?: ErasedRenderNodeWrapper | null;
@@ -1321,7 +1321,7 @@ type LeafNodeProps<C extends AnyBasePluginDefinition = BasePluginDefinition> = (
1321
1321
  type NodeProps<C extends AnyBasePluginDefinition = BasePluginDefinition> = ((props: EditorNodeProps<C> & RenderElementProps$1<ElementWith<C>> & RenderLeafProps$1<Text, Text>) => AnyObject | undefined) | AnyObject;
1322
1322
  type TextNodeProps<C extends AnyBasePluginDefinition = BasePluginDefinition> = ((props: EditorNodeProps<C> & RenderLeafProps$1<Text, Text>) => AnyObject | undefined) | AnyObject;
1323
1323
  type UseViewElementAttributes<C extends AnyBasePluginDefinition = BasePluginDefinition> = (context: PluginContext<C> & {
1324
- view: Editor$1;
1324
+ view: Editor$2;
1325
1325
  }) => readonly ViewElementAttributeEntry[];
1326
1326
  type OnNodeChange<C extends AnyBasePluginDefinition = BasePluginDefinition> = (context: PluginContext<C> & Omit<EditorNodeChangeContext, 'editor'>) => void;
1327
1327
  type OnTextChange<C extends AnyBasePluginDefinition = BasePluginDefinition> = (context: PluginContext<C> & Omit<EditorTextChangeContext, 'editor'>) => void;
@@ -1386,6 +1386,12 @@ type ReactSlotFields<C extends AnyBasePluginDefinition> = {
1386
1386
  afterNodeChildren?: (props: RenderNodeWrapperProps<C>) => React$1.ReactNode;
1387
1387
  beforeContainer?: ContainerSiblingComponent;
1388
1388
  beforeEditable?: EditableSiblingComponent;
1389
+ /**
1390
+ * Renders after the Editable. Its editor is the view holding the caret while
1391
+ * that view is this view or mounted inside it, such as a board note, and
1392
+ * this view otherwise.
1393
+ */
1394
+ caret?: EditableSiblingComponent;
1389
1395
  wrapContent?: (props: WrapContentProps) => React$1.ReactNode;
1390
1396
  wrapNode?: RenderNodeWrapperConfig<C>;
1391
1397
  wrapNodeChildren?: RenderNodeWrapper<C>;
@@ -1604,18 +1610,6 @@ type ValidatedShortcuts<C extends AnyBasePluginDefinition, TShortcuts extends Sh
1604
1610
  type PossibleRef<T> = React$1.Ref<T> | undefined;
1605
1611
  declare const useComposedRef: <T>(...refs: Array<PossibleRef<T>>) => (node: T | null) => (() => void) | undefined;
1606
1612
  declare const useIsomorphicLayoutEffect: typeof React$1.useLayoutEffect;
1607
- /**
1608
- * Give children the mounted view whose root holds the selection, such as a
1609
- * board note's view inside the page, as the editor they act on. Inside it
1610
- * `useEditor()`, `useEditableRef()`, `useEditorFocused()` and
1611
- * `useFocusedLast()` answer for that view. Children keep the current editor
1612
- * when the selection is in its root, when no view of the selection's root is
1613
- * mounted inside its Editable, or when several are and none is focused or was
1614
- * focused last.
1615
- */
1616
- declare function EditorSelectionView({ children }: {
1617
- children: React$1.ReactNode;
1618
- }): React$1.JSX.Element;
1619
1613
  type PluginInput = PluginReference;
1620
1614
  type CreateEditorOptions<TPlugins extends readonly PluginReference[] = readonly PluginInput[], TSchema extends EditorApplicationSchema | undefined = EditorApplicationSchema | undefined> = Partial<Omit<EditorOptions<TPlugins>, 'id' | 'plugins' | 'schema'>> & {
1621
1615
  /** Stable logical identity for the created editor. */
@@ -1919,10 +1913,7 @@ declare const useEditorComposing: () => boolean;
1919
1913
  declare const useEditorReadOnly: () => boolean;
1920
1914
  /** Get the selected Plate container ref; its value is null before mount. */
1921
1915
  declare function useEditorContainerRef(): React$1.RefObject<HTMLDivElement | null>;
1922
- /**
1923
- * Get the selected view's Editable ref; its value is null before mount. Inside
1924
- * `EditorSelectionView` it is the Editable of the view holding the selection.
1925
- */
1916
+ /** Get the selected view's Editable ref; its value is null before mount. */
1926
1917
  declare function useEditableRef(): React$1.RefObject<HTMLElement | null>;
1927
1918
  /** Get the selected root's text selection. */
1928
1919
  declare const useEditorSelection: () => Range | null;
@@ -1933,7 +1924,32 @@ type UseEditorStateOptions<T> = EditorRuntimeStateSelectorOptions<T, Editor>;
1933
1924
  declare const useEditorState: <T>(selector: (state: EditorStateView<ValueOf<Editor>, PluginsOf<Editor>>) => T, options?: UseEditorStateOptions<T>) => T;
1934
1925
  /** Get the selected root's children. */
1935
1926
  declare const useEditorValue: () => readonly BaseElement[];
1927
+ /**
1928
+ * Create undo/redo commands and keyboard handling.
1929
+ *
1930
+ * Without `editor` or `root`, while the editor `useEditor()` returns belongs to
1931
+ * the `EditorRoot` around the hook, they run through that `EditorRoot`'s shown
1932
+ * writable view used last, and are on only while a shown writable `Editable`
1933
+ * reaches every root the next undo or redo changes. When no provider gives an
1934
+ * editor, they do the same and need an `EditorRoot` around the hook.
1935
+ * Otherwise, such as under `EditorController` or under an `EditorProvider`
1936
+ * given another editor, they bind to that editor, as with `editor`. With
1937
+ * `editor` or `root`, they replay the next batch whatever roots it changes.
1938
+ * With `root`, they are off while no view of it is shown. With `editor`, they
1939
+ * can stay on while no `Editable` runs that editor, and a click then does
1940
+ * nothing. They are off while their view is read-only or composes text.
1941
+ */
1942
+ declare function useEditorHistory<const TRoot extends RootKey = RootKey>(options?: UseEditorHistoryOptions<TRoot>): EditorHistoryController;
1936
1943
  type UseEditorSelectorOptions<T> = EditorRuntimeStateSelectorOptions<T, Editor>;
1944
+ /**
1945
+ * Subscribe to a value derived from the selected editor. A selector that
1946
+ * keeps its identity between renders runs at most once per commit, once more
1947
+ * when the selected editor changes, such as when the caret moves to another
1948
+ * root, and once more when the editor shows a different review preview than
1949
+ * the selector last read. A selector written inline gets a new identity each
1950
+ * render, so it also runs on every render of its component. A change that
1951
+ * leaves the value equal renders nothing.
1952
+ */
1937
1953
  declare const useEditorSelector: <T>(selector: (editor: Editor) => T, options?: UseEditorSelectorOptions<T>) => T;
1938
1954
  type PluginStoreDescriptor = Readonly<{
1939
1955
  name: string;
@@ -2158,7 +2174,8 @@ declare const HeadingPlugin: InternalReactPluginAdapterResult<BasePlugin<Readonl
2158
2174
  readonly name: "heading";
2159
2175
  readonly formats: true;
2160
2176
  readonly read: {
2161
- readonly level: (node: Element$1) => HeadingLevel | undefined;
2177
+ readonly level: (node: Readonly<Element$1>) => HeadingLevel | undefined;
2178
+ readonly canSetLevel: (level: HeadingLevel) => boolean;
2162
2179
  };
2163
2180
  readonly rules: true;
2164
2181
  readonly update: {
@@ -2444,6 +2461,9 @@ declare const LineHeightPlugin: Plugin<Readonly<{
2444
2461
  }>, Readonly<{
2445
2462
  kind: 'types';
2446
2463
  types: readonly string[];
2464
+ }>, Readonly<{
2465
+ key: string;
2466
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
2447
2467
  }>>;
2448
2468
  };
2449
2469
  };
@@ -2518,6 +2538,9 @@ declare const TextAlignPlugin: Plugin<Readonly<{
2518
2538
  textAlign: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["center", "end", "justify", "left", "right", "start"], PropertyValueOptions<"center" | "end" | "justify" | "left" | "right" | "start">>, Readonly<{
2519
2539
  kind: 'types';
2520
2540
  types: readonly string[];
2541
+ }>, Readonly<{
2542
+ key: string;
2543
+ map: (value: "center" | "end" | "justify" | "left" | "right" | "start", renamed: (name: string) => string | undefined) => "center" | "end" | "justify" | "left" | "right" | "start";
2521
2544
  }>>;
2522
2545
  };
2523
2546
  };
@@ -2597,6 +2620,9 @@ declare const TextIndentPlugin: Plugin<Readonly<{
2597
2620
  textIndent: SchemaElementPropertyDefinition<PropertyNumberDescriptor<PropertyValueOptions<number>>, Readonly<{
2598
2621
  kind: 'types';
2599
2622
  types: readonly string[];
2623
+ }>, Readonly<{
2624
+ key: string;
2625
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
2600
2626
  }>>;
2601
2627
  };
2602
2628
  };
@@ -2680,6 +2706,14 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
2680
2706
  placement: "element";
2681
2707
  unaliased: true;
2682
2708
  value: string;
2709
+ }> | Readonly<{
2710
+ descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
2711
+ key: "meta";
2712
+ localId: "meta";
2713
+ ownerName: "codeBlock";
2714
+ placement: "element";
2715
+ unaliased: true;
2716
+ value: string;
2683
2717
  }>;
2684
2718
  readonly schema: {
2685
2719
  readonly element: {
@@ -2706,6 +2740,7 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
2706
2740
  readonly ownsExit: true;
2707
2741
  readonly properties: {
2708
2742
  language: PropertyStringDescriptor<PropertyValueOptions<string>>;
2743
+ meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
2709
2744
  };
2710
2745
  readonly slice: {
2711
2746
  readonly preserveContext: true;
@@ -2726,6 +2761,7 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
2726
2761
  type: "codeBlock";
2727
2762
  }> & Readonly<{} & {
2728
2763
  language?: string | undefined;
2764
+ meta?: string | undefined;
2729
2765
  }>>;
2730
2766
  } | undefined;
2731
2767
  readonly indentDepth: () => number;
@@ -2738,6 +2774,7 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
2738
2774
  type: "codeBlock";
2739
2775
  }> & Readonly<{} & {
2740
2776
  language?: string | undefined;
2777
+ meta?: string | undefined;
2741
2778
  }> & Readonly<Record<never, never>>, Readonly<{
2742
2779
  text: string;
2743
2780
  }> & Readonly<{} & {}>> | undefined;
@@ -2746,6 +2783,7 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
2746
2783
  type: "codeBlock";
2747
2784
  }> & Readonly<{} & {
2748
2785
  language?: string | undefined;
2786
+ meta?: string | undefined;
2749
2787
  }> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
2750
2788
  readonly resetBlock: () => boolean;
2751
2789
  readonly selectAll: () => boolean;
@@ -2760,6 +2798,7 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
2760
2798
  type: "codeBlock";
2761
2799
  }> & Readonly<{} & {
2762
2800
  language?: string | undefined;
2801
+ meta?: string | undefined;
2763
2802
  }> & Readonly<Record<never, never>>, Readonly<{
2764
2803
  text: string;
2765
2804
  }> & Readonly<{} & {}>> | undefined;
@@ -2768,6 +2807,7 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
2768
2807
  type: "codeBlock";
2769
2808
  }> & Readonly<{} & {
2770
2809
  language?: string | undefined;
2810
+ meta?: string | undefined;
2771
2811
  }> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
2772
2812
  };
2773
2813
  }>>;
@@ -2794,6 +2834,14 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2794
2834
  placement: "element";
2795
2835
  unaliased: true;
2796
2836
  value: string;
2837
+ }> | Readonly<{
2838
+ descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
2839
+ key: "meta";
2840
+ localId: "meta";
2841
+ ownerName: "codeBlock";
2842
+ placement: "element";
2843
+ unaliased: true;
2844
+ value: string;
2797
2845
  }>;
2798
2846
  }> & Readonly<Record<"read", {
2799
2847
  readonly entry: ({ at }?: {
@@ -2803,6 +2851,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2803
2851
  type: "codeBlock";
2804
2852
  }> & Readonly<{} & {
2805
2853
  language?: string | undefined;
2854
+ meta?: string | undefined;
2806
2855
  }>>;
2807
2856
  } | undefined;
2808
2857
  readonly indentDepth: () => number;
@@ -2832,6 +2881,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2832
2881
  readonly ownsExit: true;
2833
2882
  readonly properties: {
2834
2883
  language: PropertyStringDescriptor<PropertyValueOptions<string>>;
2884
+ meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
2835
2885
  };
2836
2886
  readonly slice: {
2837
2887
  readonly preserveContext: true;
@@ -2844,6 +2894,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2844
2894
  type: "codeBlock";
2845
2895
  }> & Readonly<{} & {
2846
2896
  language?: string | undefined;
2897
+ meta?: string | undefined;
2847
2898
  }> & Readonly<Record<never, never>>, Readonly<{
2848
2899
  text: string;
2849
2900
  }> & Readonly<{} & {}>> | undefined;
@@ -2852,6 +2903,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2852
2903
  type: "codeBlock";
2853
2904
  }> & Readonly<{} & {
2854
2905
  language?: string | undefined;
2906
+ meta?: string | undefined;
2855
2907
  }> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
2856
2908
  readonly resetBlock: () => boolean;
2857
2909
  readonly selectAll: () => boolean;
@@ -2866,6 +2918,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2866
2918
  type: "codeBlock";
2867
2919
  }> & Readonly<{} & {
2868
2920
  language?: string | undefined;
2921
+ meta?: string | undefined;
2869
2922
  }> & Readonly<Record<never, never>>, Readonly<{
2870
2923
  text: string;
2871
2924
  }> & Readonly<{} & {}>> | undefined;
@@ -2874,6 +2927,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2874
2927
  type: "codeBlock";
2875
2928
  }> & Readonly<{} & {
2876
2929
  language?: string | undefined;
2930
+ meta?: string | undefined;
2877
2931
  }> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
2878
2932
  }>> & Readonly<Record<never, never>>> & Pick<BasePlugin<Readonly<{
2879
2933
  readonly __pluginWritableProperties: Readonly<{
@@ -2884,6 +2938,14 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2884
2938
  placement: "element";
2885
2939
  unaliased: true;
2886
2940
  value: string;
2941
+ }> | Readonly<{
2942
+ descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
2943
+ key: "meta";
2944
+ localId: "meta";
2945
+ ownerName: "codeBlock";
2946
+ placement: "element";
2947
+ unaliased: true;
2948
+ value: string;
2887
2949
  }>;
2888
2950
  readonly schema: {
2889
2951
  readonly element: {
@@ -2910,6 +2972,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2910
2972
  readonly ownsExit: true;
2911
2973
  readonly properties: {
2912
2974
  language: PropertyStringDescriptor<PropertyValueOptions<string>>;
2975
+ meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
2913
2976
  };
2914
2977
  readonly slice: {
2915
2978
  readonly preserveContext: true;
@@ -2930,6 +2993,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2930
2993
  type: "codeBlock";
2931
2994
  }> & Readonly<{} & {
2932
2995
  language?: string | undefined;
2996
+ meta?: string | undefined;
2933
2997
  }>>;
2934
2998
  } | undefined;
2935
2999
  readonly indentDepth: () => number;
@@ -2942,6 +3006,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2942
3006
  type: "codeBlock";
2943
3007
  }> & Readonly<{} & {
2944
3008
  language?: string | undefined;
3009
+ meta?: string | undefined;
2945
3010
  }> & Readonly<Record<never, never>>, Readonly<{
2946
3011
  text: string;
2947
3012
  }> & Readonly<{} & {}>> | undefined;
@@ -2950,6 +3015,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2950
3015
  type: "codeBlock";
2951
3016
  }> & Readonly<{} & {
2952
3017
  language?: string | undefined;
3018
+ meta?: string | undefined;
2953
3019
  }> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
2954
3020
  readonly resetBlock: () => boolean;
2955
3021
  readonly selectAll: () => boolean;
@@ -2964,6 +3030,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2964
3030
  type: "codeBlock";
2965
3031
  }> & Readonly<{} & {
2966
3032
  language?: string | undefined;
3033
+ meta?: string | undefined;
2967
3034
  }> & Readonly<Record<never, never>>, Readonly<{
2968
3035
  text: string;
2969
3036
  }> & Readonly<{} & {}>> | undefined;
@@ -2972,6 +3039,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
2972
3039
  type: "codeBlock";
2973
3040
  }> & Readonly<{} & {
2974
3041
  language?: string | undefined;
3042
+ meta?: string | undefined;
2975
3043
  }> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
2976
3044
  };
2977
3045
  }>> & Readonly<Record<never, never>>, "~schema.plugins">];
@@ -3015,6 +3083,14 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
3015
3083
  placement: "element";
3016
3084
  unaliased: true;
3017
3085
  value: string;
3086
+ }> | Readonly<{
3087
+ descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
3088
+ key: "meta";
3089
+ localId: "meta";
3090
+ ownerName: "codeBlock";
3091
+ placement: "element";
3092
+ unaliased: true;
3093
+ value: string;
3018
3094
  }>;
3019
3095
  readonly schema: {
3020
3096
  readonly element: {
@@ -3041,6 +3117,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
3041
3117
  readonly ownsExit: true;
3042
3118
  readonly properties: {
3043
3119
  language: PropertyStringDescriptor<PropertyValueOptions<string>>;
3120
+ meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
3044
3121
  };
3045
3122
  readonly slice: {
3046
3123
  readonly preserveContext: true;
@@ -3061,6 +3138,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
3061
3138
  type: "codeBlock";
3062
3139
  }> & Readonly<{} & {
3063
3140
  language?: string | undefined;
3141
+ meta?: string | undefined;
3064
3142
  }>>;
3065
3143
  } | undefined;
3066
3144
  readonly indentDepth: () => number;
@@ -3073,6 +3151,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
3073
3151
  type: "codeBlock";
3074
3152
  }> & Readonly<{} & {
3075
3153
  language?: string | undefined;
3154
+ meta?: string | undefined;
3076
3155
  }> & Readonly<Record<never, never>>, Readonly<{
3077
3156
  text: string;
3078
3157
  }> & Readonly<{} & {}>> | undefined;
@@ -3081,6 +3160,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
3081
3160
  type: "codeBlock";
3082
3161
  }> & Readonly<{} & {
3083
3162
  language?: string | undefined;
3163
+ meta?: string | undefined;
3084
3164
  }> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
3085
3165
  readonly resetBlock: () => boolean;
3086
3166
  readonly selectAll: () => boolean;
@@ -3095,6 +3175,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
3095
3175
  type: "codeBlock";
3096
3176
  }> & Readonly<{} & {
3097
3177
  language?: string | undefined;
3178
+ meta?: string | undefined;
3098
3179
  }> & Readonly<Record<never, never>>, Readonly<{
3099
3180
  text: string;
3100
3181
  }> & Readonly<{} & {}>> | undefined;
@@ -3103,6 +3184,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
3103
3184
  type: "codeBlock";
3104
3185
  }> & Readonly<{} & {
3105
3186
  language?: string | undefined;
3187
+ meta?: string | undefined;
3106
3188
  }> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
3107
3189
  };
3108
3190
  }>>];
@@ -3128,6 +3210,9 @@ declare const IndentPlugin: Plugin<Readonly<{
3128
3210
  }>, Readonly<{
3129
3211
  kind: 'types';
3130
3212
  types: readonly string[];
3213
+ }>, Readonly<{
3214
+ key: string;
3215
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
3131
3216
  }>>;
3132
3217
  };
3133
3218
  };
@@ -3304,6 +3389,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
3304
3389
  }>, Readonly<{
3305
3390
  kind: 'types';
3306
3391
  types: readonly string[];
3392
+ }>, Readonly<{
3393
+ key: string;
3394
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
3307
3395
  }>>;
3308
3396
  };
3309
3397
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -3372,6 +3460,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
3372
3460
  }>, Readonly<{
3373
3461
  kind: 'types';
3374
3462
  types: readonly string[];
3463
+ }>, Readonly<{
3464
+ key: string;
3465
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
3375
3466
  }>>;
3376
3467
  };
3377
3468
  };
@@ -3534,6 +3625,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
3534
3625
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
3535
3626
  kind: 'types';
3536
3627
  types: readonly string[];
3628
+ }>, Readonly<{
3629
+ key: string;
3630
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
3537
3631
  }>>;
3538
3632
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
3539
3633
  readonly validate: (value: unknown) => value is number;
@@ -3541,6 +3635,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
3541
3635
  }>, Readonly<{
3542
3636
  kind: 'types';
3543
3637
  types: readonly string[];
3638
+ }>, Readonly<{
3639
+ key: string;
3640
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
3544
3641
  }>>;
3545
3642
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
3546
3643
  readonly validate: (value: unknown) => value is number;
@@ -3548,10 +3645,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
3548
3645
  }>, Readonly<{
3549
3646
  kind: 'types';
3550
3647
  types: readonly string[];
3648
+ }>, Readonly<{
3649
+ key: string;
3650
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
3551
3651
  }>>;
3552
3652
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
3553
3653
  kind: 'types';
3554
3654
  types: readonly string[];
3655
+ }>, Readonly<{
3656
+ key: string;
3657
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
3555
3658
  }>>;
3556
3659
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
3557
3660
  label?: string;
@@ -3583,14 +3686,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
3583
3686
  }>>, Readonly<{
3584
3687
  kind: 'types';
3585
3688
  types: readonly string[];
3689
+ }>, Readonly<{
3690
+ key: string;
3691
+ map: (value: Readonly<Record<string, Readonly<{
3692
+ label?: string;
3693
+ restartAfter?: number;
3694
+ start?: number;
3695
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
3696
+ label?: string;
3697
+ restartAfter?: number;
3698
+ start?: number;
3699
+ }>>>;
3586
3700
  }>>;
3587
3701
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
3588
3702
  kind: 'types';
3589
3703
  types: readonly string[];
3704
+ }>, Readonly<{
3705
+ key: string;
3706
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
3590
3707
  }>>;
3591
3708
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
3592
3709
  kind: 'types';
3593
3710
  types: readonly string[];
3711
+ }>, Readonly<{
3712
+ key: string;
3713
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
3594
3714
  }>>;
3595
3715
  };
3596
3716
  };
@@ -3700,6 +3820,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
3700
3820
  }>, Readonly<{
3701
3821
  kind: 'types';
3702
3822
  types: readonly string[];
3823
+ }>, Readonly<{
3824
+ key: string;
3825
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
3703
3826
  }>>;
3704
3827
  };
3705
3828
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -3768,6 +3891,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
3768
3891
  }>, Readonly<{
3769
3892
  kind: 'types';
3770
3893
  types: readonly string[];
3894
+ }>, Readonly<{
3895
+ key: string;
3896
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
3771
3897
  }>>;
3772
3898
  };
3773
3899
  };
@@ -3930,6 +4056,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
3930
4056
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
3931
4057
  kind: 'types';
3932
4058
  types: readonly string[];
4059
+ }>, Readonly<{
4060
+ key: string;
4061
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
3933
4062
  }>>;
3934
4063
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
3935
4064
  readonly validate: (value: unknown) => value is number;
@@ -3937,6 +4066,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
3937
4066
  }>, Readonly<{
3938
4067
  kind: 'types';
3939
4068
  types: readonly string[];
4069
+ }>, Readonly<{
4070
+ key: string;
4071
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
3940
4072
  }>>;
3941
4073
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
3942
4074
  readonly validate: (value: unknown) => value is number;
@@ -3944,10 +4076,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
3944
4076
  }>, Readonly<{
3945
4077
  kind: 'types';
3946
4078
  types: readonly string[];
4079
+ }>, Readonly<{
4080
+ key: string;
4081
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
3947
4082
  }>>;
3948
4083
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
3949
4084
  kind: 'types';
3950
4085
  types: readonly string[];
4086
+ }>, Readonly<{
4087
+ key: string;
4088
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
3951
4089
  }>>;
3952
4090
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
3953
4091
  label?: string;
@@ -3979,14 +4117,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
3979
4117
  }>>, Readonly<{
3980
4118
  kind: 'types';
3981
4119
  types: readonly string[];
4120
+ }>, Readonly<{
4121
+ key: string;
4122
+ map: (value: Readonly<Record<string, Readonly<{
4123
+ label?: string;
4124
+ restartAfter?: number;
4125
+ start?: number;
4126
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
4127
+ label?: string;
4128
+ restartAfter?: number;
4129
+ start?: number;
4130
+ }>>>;
3982
4131
  }>>;
3983
4132
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
3984
4133
  kind: 'types';
3985
4134
  types: readonly string[];
4135
+ }>, Readonly<{
4136
+ key: string;
4137
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
3986
4138
  }>>;
3987
4139
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
3988
4140
  kind: 'types';
3989
4141
  types: readonly string[];
4142
+ }>, Readonly<{
4143
+ key: string;
4144
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
3990
4145
  }>>;
3991
4146
  };
3992
4147
  };
@@ -4096,6 +4251,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4096
4251
  }>, Readonly<{
4097
4252
  kind: 'types';
4098
4253
  types: readonly string[];
4254
+ }>, Readonly<{
4255
+ key: string;
4256
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
4099
4257
  }>>;
4100
4258
  };
4101
4259
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -4164,6 +4322,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4164
4322
  }>, Readonly<{
4165
4323
  kind: 'types';
4166
4324
  types: readonly string[];
4325
+ }>, Readonly<{
4326
+ key: string;
4327
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
4167
4328
  }>>;
4168
4329
  };
4169
4330
  };
@@ -4326,6 +4487,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4326
4487
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
4327
4488
  kind: 'types';
4328
4489
  types: readonly string[];
4490
+ }>, Readonly<{
4491
+ key: string;
4492
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
4329
4493
  }>>;
4330
4494
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
4331
4495
  readonly validate: (value: unknown) => value is number;
@@ -4333,6 +4497,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4333
4497
  }>, Readonly<{
4334
4498
  kind: 'types';
4335
4499
  types: readonly string[];
4500
+ }>, Readonly<{
4501
+ key: string;
4502
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
4336
4503
  }>>;
4337
4504
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
4338
4505
  readonly validate: (value: unknown) => value is number;
@@ -4340,10 +4507,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4340
4507
  }>, Readonly<{
4341
4508
  kind: 'types';
4342
4509
  types: readonly string[];
4510
+ }>, Readonly<{
4511
+ key: string;
4512
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
4343
4513
  }>>;
4344
4514
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
4345
4515
  kind: 'types';
4346
4516
  types: readonly string[];
4517
+ }>, Readonly<{
4518
+ key: string;
4519
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
4347
4520
  }>>;
4348
4521
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
4349
4522
  label?: string;
@@ -4375,14 +4548,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4375
4548
  }>>, Readonly<{
4376
4549
  kind: 'types';
4377
4550
  types: readonly string[];
4551
+ }>, Readonly<{
4552
+ key: string;
4553
+ map: (value: Readonly<Record<string, Readonly<{
4554
+ label?: string;
4555
+ restartAfter?: number;
4556
+ start?: number;
4557
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
4558
+ label?: string;
4559
+ restartAfter?: number;
4560
+ start?: number;
4561
+ }>>>;
4378
4562
  }>>;
4379
4563
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
4380
4564
  kind: 'types';
4381
4565
  types: readonly string[];
4566
+ }>, Readonly<{
4567
+ key: string;
4568
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
4382
4569
  }>>;
4383
4570
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
4384
4571
  kind: 'types';
4385
4572
  types: readonly string[];
4573
+ }>, Readonly<{
4574
+ key: string;
4575
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
4386
4576
  }>>;
4387
4577
  };
4388
4578
  };
@@ -4494,6 +4684,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4494
4684
  }>, Readonly<{
4495
4685
  kind: 'types';
4496
4686
  types: readonly string[];
4687
+ }>, Readonly<{
4688
+ key: string;
4689
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
4497
4690
  }>>;
4498
4691
  };
4499
4692
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -4562,6 +4755,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4562
4755
  }>, Readonly<{
4563
4756
  kind: 'types';
4564
4757
  types: readonly string[];
4758
+ }>, Readonly<{
4759
+ key: string;
4760
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
4565
4761
  }>>;
4566
4762
  };
4567
4763
  };
@@ -4724,6 +4920,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4724
4920
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
4725
4921
  kind: 'types';
4726
4922
  types: readonly string[];
4923
+ }>, Readonly<{
4924
+ key: string;
4925
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
4727
4926
  }>>;
4728
4927
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
4729
4928
  readonly validate: (value: unknown) => value is number;
@@ -4731,6 +4930,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4731
4930
  }>, Readonly<{
4732
4931
  kind: 'types';
4733
4932
  types: readonly string[];
4933
+ }>, Readonly<{
4934
+ key: string;
4935
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
4734
4936
  }>>;
4735
4937
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
4736
4938
  readonly validate: (value: unknown) => value is number;
@@ -4738,10 +4940,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4738
4940
  }>, Readonly<{
4739
4941
  kind: 'types';
4740
4942
  types: readonly string[];
4943
+ }>, Readonly<{
4944
+ key: string;
4945
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
4741
4946
  }>>;
4742
4947
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
4743
4948
  kind: 'types';
4744
4949
  types: readonly string[];
4950
+ }>, Readonly<{
4951
+ key: string;
4952
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
4745
4953
  }>>;
4746
4954
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
4747
4955
  label?: string;
@@ -4773,14 +4981,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4773
4981
  }>>, Readonly<{
4774
4982
  kind: 'types';
4775
4983
  types: readonly string[];
4984
+ }>, Readonly<{
4985
+ key: string;
4986
+ map: (value: Readonly<Record<string, Readonly<{
4987
+ label?: string;
4988
+ restartAfter?: number;
4989
+ start?: number;
4990
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
4991
+ label?: string;
4992
+ restartAfter?: number;
4993
+ start?: number;
4994
+ }>>>;
4776
4995
  }>>;
4777
4996
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
4778
4997
  kind: 'types';
4779
4998
  types: readonly string[];
4999
+ }>, Readonly<{
5000
+ key: string;
5001
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
4780
5002
  }>>;
4781
5003
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
4782
5004
  kind: 'types';
4783
5005
  types: readonly string[];
5006
+ }>, Readonly<{
5007
+ key: string;
5008
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
4784
5009
  }>>;
4785
5010
  };
4786
5011
  };
@@ -4890,6 +5115,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4890
5115
  }>, Readonly<{
4891
5116
  kind: 'types';
4892
5117
  types: readonly string[];
5118
+ }>, Readonly<{
5119
+ key: string;
5120
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
4893
5121
  }>>;
4894
5122
  };
4895
5123
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -4958,6 +5186,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
4958
5186
  }>, Readonly<{
4959
5187
  kind: 'types';
4960
5188
  types: readonly string[];
5189
+ }>, Readonly<{
5190
+ key: string;
5191
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
4961
5192
  }>>;
4962
5193
  };
4963
5194
  };
@@ -5120,6 +5351,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5120
5351
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
5121
5352
  kind: 'types';
5122
5353
  types: readonly string[];
5354
+ }>, Readonly<{
5355
+ key: string;
5356
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
5123
5357
  }>>;
5124
5358
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
5125
5359
  readonly validate: (value: unknown) => value is number;
@@ -5127,6 +5361,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5127
5361
  }>, Readonly<{
5128
5362
  kind: 'types';
5129
5363
  types: readonly string[];
5364
+ }>, Readonly<{
5365
+ key: string;
5366
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5130
5367
  }>>;
5131
5368
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
5132
5369
  readonly validate: (value: unknown) => value is number;
@@ -5134,10 +5371,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5134
5371
  }>, Readonly<{
5135
5372
  kind: 'types';
5136
5373
  types: readonly string[];
5374
+ }>, Readonly<{
5375
+ key: string;
5376
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5137
5377
  }>>;
5138
5378
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
5139
5379
  kind: 'types';
5140
5380
  types: readonly string[];
5381
+ }>, Readonly<{
5382
+ key: string;
5383
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
5141
5384
  }>>;
5142
5385
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
5143
5386
  label?: string;
@@ -5169,14 +5412,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5169
5412
  }>>, Readonly<{
5170
5413
  kind: 'types';
5171
5414
  types: readonly string[];
5415
+ }>, Readonly<{
5416
+ key: string;
5417
+ map: (value: Readonly<Record<string, Readonly<{
5418
+ label?: string;
5419
+ restartAfter?: number;
5420
+ start?: number;
5421
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
5422
+ label?: string;
5423
+ restartAfter?: number;
5424
+ start?: number;
5425
+ }>>>;
5172
5426
  }>>;
5173
5427
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
5174
5428
  kind: 'types';
5175
5429
  types: readonly string[];
5430
+ }>, Readonly<{
5431
+ key: string;
5432
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
5176
5433
  }>>;
5177
5434
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
5178
5435
  kind: 'types';
5179
5436
  types: readonly string[];
5437
+ }>, Readonly<{
5438
+ key: string;
5439
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
5180
5440
  }>>;
5181
5441
  };
5182
5442
  };
@@ -5290,6 +5550,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5290
5550
  }>, Readonly<{
5291
5551
  kind: 'types';
5292
5552
  types: readonly string[];
5553
+ }>, Readonly<{
5554
+ key: string;
5555
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5293
5556
  }>>;
5294
5557
  };
5295
5558
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -5358,6 +5621,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5358
5621
  }>, Readonly<{
5359
5622
  kind: 'types';
5360
5623
  types: readonly string[];
5624
+ }>, Readonly<{
5625
+ key: string;
5626
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5361
5627
  }>>;
5362
5628
  };
5363
5629
  };
@@ -5520,6 +5786,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5520
5786
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
5521
5787
  kind: 'types';
5522
5788
  types: readonly string[];
5789
+ }>, Readonly<{
5790
+ key: string;
5791
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
5523
5792
  }>>;
5524
5793
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
5525
5794
  readonly validate: (value: unknown) => value is number;
@@ -5527,6 +5796,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5527
5796
  }>, Readonly<{
5528
5797
  kind: 'types';
5529
5798
  types: readonly string[];
5799
+ }>, Readonly<{
5800
+ key: string;
5801
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5530
5802
  }>>;
5531
5803
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
5532
5804
  readonly validate: (value: unknown) => value is number;
@@ -5534,10 +5806,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5534
5806
  }>, Readonly<{
5535
5807
  kind: 'types';
5536
5808
  types: readonly string[];
5809
+ }>, Readonly<{
5810
+ key: string;
5811
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5537
5812
  }>>;
5538
5813
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
5539
5814
  kind: 'types';
5540
5815
  types: readonly string[];
5816
+ }>, Readonly<{
5817
+ key: string;
5818
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
5541
5819
  }>>;
5542
5820
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
5543
5821
  label?: string;
@@ -5569,14 +5847,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5569
5847
  }>>, Readonly<{
5570
5848
  kind: 'types';
5571
5849
  types: readonly string[];
5850
+ }>, Readonly<{
5851
+ key: string;
5852
+ map: (value: Readonly<Record<string, Readonly<{
5853
+ label?: string;
5854
+ restartAfter?: number;
5855
+ start?: number;
5856
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
5857
+ label?: string;
5858
+ restartAfter?: number;
5859
+ start?: number;
5860
+ }>>>;
5572
5861
  }>>;
5573
5862
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
5574
5863
  kind: 'types';
5575
5864
  types: readonly string[];
5865
+ }>, Readonly<{
5866
+ key: string;
5867
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
5576
5868
  }>>;
5577
5869
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
5578
5870
  kind: 'types';
5579
5871
  types: readonly string[];
5872
+ }>, Readonly<{
5873
+ key: string;
5874
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
5580
5875
  }>>;
5581
5876
  };
5582
5877
  };
@@ -5686,6 +5981,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5686
5981
  }>, Readonly<{
5687
5982
  kind: 'types';
5688
5983
  types: readonly string[];
5984
+ }>, Readonly<{
5985
+ key: string;
5986
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5689
5987
  }>>;
5690
5988
  };
5691
5989
  }>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
@@ -5754,6 +6052,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5754
6052
  }>, Readonly<{
5755
6053
  kind: 'types';
5756
6054
  types: readonly string[];
6055
+ }>, Readonly<{
6056
+ key: string;
6057
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5757
6058
  }>>;
5758
6059
  };
5759
6060
  };
@@ -5916,6 +6217,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5916
6217
  checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
5917
6218
  kind: 'types';
5918
6219
  types: readonly string[];
6220
+ }>, Readonly<{
6221
+ key: string;
6222
+ map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
5919
6223
  }>>;
5920
6224
  listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
5921
6225
  readonly validate: (value: unknown) => value is number;
@@ -5923,6 +6227,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5923
6227
  }>, Readonly<{
5924
6228
  kind: 'types';
5925
6229
  types: readonly string[];
6230
+ }>, Readonly<{
6231
+ key: string;
6232
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5926
6233
  }>>;
5927
6234
  listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
5928
6235
  readonly validate: (value: unknown) => value is number;
@@ -5930,10 +6237,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5930
6237
  }>, Readonly<{
5931
6238
  kind: 'types';
5932
6239
  types: readonly string[];
6240
+ }>, Readonly<{
6241
+ key: string;
6242
+ map: (value: number, renamed: (name: string) => string | undefined) => number;
5933
6243
  }>>;
5934
6244
  listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
5935
6245
  kind: 'types';
5936
6246
  types: readonly string[];
6247
+ }>, Readonly<{
6248
+ key: string;
6249
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
5937
6250
  }>>;
5938
6251
  listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
5939
6252
  label?: string;
@@ -5965,14 +6278,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
5965
6278
  }>>, Readonly<{
5966
6279
  kind: 'types';
5967
6280
  types: readonly string[];
6281
+ }>, Readonly<{
6282
+ key: string;
6283
+ map: (value: Readonly<Record<string, Readonly<{
6284
+ label?: string;
6285
+ restartAfter?: number;
6286
+ start?: number;
6287
+ }>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
6288
+ label?: string;
6289
+ restartAfter?: number;
6290
+ start?: number;
6291
+ }>>>;
5968
6292
  }>>;
5969
6293
  listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
5970
6294
  kind: 'types';
5971
6295
  types: readonly string[];
6296
+ }>, Readonly<{
6297
+ key: string;
6298
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
5972
6299
  }>>;
5973
6300
  listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
5974
6301
  kind: 'types';
5975
6302
  types: readonly string[];
6303
+ }>, Readonly<{
6304
+ key: string;
6305
+ map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
5976
6306
  }>>;
5977
6307
  };
5978
6308
  };
@@ -6184,4 +6514,4 @@ type InternalReactEditorWithInstalledPlugins<V extends Value, D, S = D, TRuntime
6184
6514
  };
6185
6515
  /** Editor selected by value, runtime plugins, Plate plugins, and schema. */
6186
6516
  type Editor<V extends Value = Value, TRuntimePlugins extends readonly unknown[] = never, TPlugins = never, TSchema = undefined> = [TPlugins] extends [never] ? InternalReactEditorWithInstalledPlugins<V, AnyBasePluginDefinition, AnyBasePluginDefinition, [TRuntimePlugins] extends [never] ? readonly PluginReference[] : TRuntimePlugins> : InferEditorPlugins<TPlugins> extends (infer D) ? InternalReactEditorWithInstalledPlugins<V, D, InternalReactEditorMutationProvider<TPlugins, D, TSchema>, [TRuntimePlugins] extends [never] ? readonly [] : TRuntimePlugins> : never;
6187
- export { usePath as $, RootChromeController as $n, react as $r, EditorProvider as $t, BlockPlaceholderPlugin as A, UseStateFieldValueOptions as An, EditableDropResult as Ar, Plugin as At, useEditor as B, EditorHistoryController as Bn, ExternalTextActions as Br, RenderNodeWrapperDescriptor as Bt, ItalicPlugin as C, ValueChangeContext as Cn, EditableProps as Cr, InternalPluginAuthorStageInput as Ct, UnderlinePlugin as D, NodeSelectionHighlightProps as Dn, RenderPlaceholderProps as Dr, NodeProps as Dt, StrikethroughPlugin as E, NodeSelectionHighlight as En, RenderLeafProps as Er, LeafNodeProps as Et, usePluginStore as F, RuntimeStateSelectorOptions as Fn, EditableDOMBeforeInputHandler as Fr, PluginExtendInput as Ft, useEditorId as G, useEditableClip as Gn, ExternalTextOptions as Gr, TextNodeProps as Gt, useEditorContainerRef as H, UseEditorHistoryOptions as Hn, ExternalTextChange as Hr, RenderNodeWrapperProps as Ht, UseEditorSelectorOptions as I, UseRootEditorOptions as In, EditableHandlerContext as Ir, PluginOn as It, useEditorSelection as J, ViewportRect as Jn, ExternalTextState as Jr, ViewElementAttributeEntry as Jt, useEditorMounted as K, RangeGeometry as Kn, ExternalTextSelection as Kr, TransformOptions as Kt, useEditorSelector as L, useRootEditor as Ln, EditableHandlerResult as Lr, PluginPortal as Lt, BlockPlaceholderQueryContext as M, useStateFieldValue as Mn, EditableHistoryReplayResult as Mr, PluginConfiguration as Mt, useViewStore as N, UseSelectionGeometryOptions as Nn, EditablePasteResult as Nr, PluginContext as Nt, useSelectionFragmentProp as O, ReactUpdatePolicy as On, RenderTextProps as Or, OnNodeChange as Ot, useEditorPluginStore as P, useSelectionGeometry as Pn, EditableDOMBeforeInputContext as Pr, PluginDefinitionInput as Pt, useOptionalEditor as Q, useContentRoot as Qn, ReactPluginOptions as Qr, EditorController as Qt, UseEditorStateOptions as R, useRootState as Rn, EditableInputEventContext as Rr, RenderNodeWrapper as Rt, HorizontalRulePlugin as S, SelectionChangeContext as Sn, EditableElementSlots as Sr, InternalPluginAuthorStageCompatibility as St, ScriptPlugin as T, NodeSelectionDragProps as Tn, RenderVoidProps as Tr, InternalPluginAuthorState as Tt, useEditorFocused as U, useEditorHistory as Un, ExternalTextDecoration as Ur, Shortcut as Ut, useEditorComposing as V, EditorHistoryFocusPolicy as Vn, ExternalTextAdapter as Vr, RenderNodeWrapperFunction as Vt, useEditorHasSelection as W, UseEditableClipOptions as Wn, ExternalTextDispatchResult as Wr, Shortcuts as Wt, useEditorValue as X, ContentRootController as Xn, ReactApi as Xr, WrapContentProps as Xt, useEditorState as Y, useDropIndicator as Yn, ExternalTextView as Yr, ViewElementAttributes as Yt, useModelEditor as Z, UseContentRootOptions as Zn, ReactPlugin$1 as Zr, WrapRootProps as Zt, BlockquotePlugin as _, EditorContentProps as _n, useEditorScrollElementRef as _r, Decorate as _t, LinkPlugin as a, EditorNodeProps as an, UseAnnotationStoreOptions as ar, NavigationFeedbackPlugin as at, HeadingPlugin as b, EditorRoot as bn, EditableDOMCoverageBoundaryProps as br, InjectNodeProps as bt, CodeHighlightPlugin as c, InternalReactPluginAdapterResult as cn, UseElementSelectedOptions as cr, useFocusedLast as ct, FontFamilyPlugin as d, KeyboardHandler as dn, EditorViewStateSelectorOptions as dr, createEditor as dt, EditorElement as en, UseRootChromeOptions as er, useElementSelector as et, FontSizePlugin as f, DOMHandler as fn, useEditorViewState as fr, EditorSelectionView as ft, TextIndentPlugin as g, EditorContent as gn, useEditorScrollElement as gr, ContainerSiblingProps as gt, TextAlignPlugin as h, EditorPreviewProps as hn, useEditorRootElement as hr, ConfiguredPlugin as ht, LinkDefinition as i, EditorLeafProps as in, useAnnotations as ir, ParagraphPlugin as it, BlockPlaceholderPluginState as j, useSetStateField as jn, EditableHistoryReplayEvent as jr, PluginApiContext as jt, BlockPlaceholderDefinition as k, StateFieldSetter as kn, installBrowserHandle as kr, OnTextChange as kt, FontBackgroundColorPlugin as l, toReactPlugin as ln, useElementSelected as lr, useCreateEditor as lt, LineHeightPlugin as m, EditorPreview as mn, useEditorRuntimeState as mr, useIsomorphicLayoutEffect as mt, InternalReactEditorWithInstalledPlugins as n, EditorHTMLProps as nn, useChildRoot as nr, ElementForDescriptor as nt, IndentPlugin as o, EditorText as on, useAnnotationStore as or, NavigationFeedbackPluginState as ot, FormattingPlugin as p, DOMHandlers as pn, EditorRuntimeStateSelectorOptions as pr, useComposedRef as pt, useEditorReadOnly as q, RangeRects as qn, ExternalTextSelectionState as qr, UseViewElementAttributes as qt, ListPlugin as r, EditorLeaf as rn, useAnnotation as rr, useElement as rt, CodeBlockPlugin as s, EditorTextProps as sn, UseElementSelectedMode as sr, NavigationFlashTargetOptions as st, Editor as t, EditorElementProps as tn, useRootChrome as tr, ElementDescriptor as tt, FontColorPlugin as u, definePlugin as un, useElementPath as ur, CreateEditorOptions as ut, BoldPlugin as v, EditorContainer as vn, EditableDOMCoverageBoundaryMaterializePayload as vr, EditableSiblingComponent as vt, KbdPlugin as w, NodeSelectionDrag as wn, RenderElementProps as wr, InternalPluginAuthorStageKeys as wt, HighlightPlugin as x, EditorRootProps as xn, EditableDOMCoverageBoundaryScope as xr, InternalPluginAuthorExtension as xt, CodePlugin as y, CommitContext as yn, EditableDOMCoverageBoundaryPlaceholderContext as yr, EditableSiblingProps as yt, useEditableRef as z, useRuntimeState as zn, EditableKeyDownHandler as zr, RenderNodeWrapperConfig as zt };
6517
+ export { useOptionalEditor as $, ExternalTextDispatchResult as $n, EditorProvider as $t, BlockPlaceholderPlugin as A, EditableDOMBeforeInputHandler as An, useAnnotationStore as Ar, Plugin as At, useEditableRef as B, EditableHistoryReplayResult as Bn, useEditorViewState as Br, RenderNodeWrapperDescriptor as Bt, ItalicPlugin as C, ValueChangeContext as Cn, UseRootChromeOptions as Cr, InternalPluginAuthorStageInput as Ct, UnderlinePlugin as D, NodeSelectionHighlightProps as Dn, installBrowserHandle as Dr, NodeProps as Dt, StrikethroughPlugin as E, NodeSelectionHighlight as En, UseStateFieldValueOptions as Er, LeafNodeProps as Et, usePluginStore as F, EditableDropResult as Fn, useEditableClip as Fr, PluginExtendInput as Ft, useEditorHasSelection as G, EditorHistoryController as Gn, useRootState as Gr, TextNodeProps as Gt, useEditorComposing as H, EditableKeyDownHandler as Hn, useElementSelected as Hr, RenderNodeWrapperProps as Ht, UseEditorSelectorOptions as I, EditableElementSlots as In, useEditorRootElement as Ir, PluginOn as It, useEditorReadOnly as J, EditorViewStateSelectorOptions as Jn, useSetStateField as Jr, ViewElementAttributeEntry as Jt, useEditorId as K, EditorHistoryFocusPolicy as Kn, useRuntimeState as Kr, TransformOptions as Kt, useEditorSelector as L, EditableHandlerContext as Ln, useEditorRuntimeState as Lr, PluginPortal as Lt, BlockPlaceholderQueryContext as M, EditableDOMCoverageBoundaryPlaceholderContext as Mn, useChildRoot as Mr, PluginConfiguration as Mt, useViewStore as N, EditableDOMCoverageBoundaryProps as Nn, useContentRoot as Nr, PluginContext as Nt, useSelectionFragmentProp as O, ContentRootController as On, react as Or, OnNodeChange as Ot, useEditorPluginStore as P, EditableDOMCoverageBoundaryScope as Pn, useDropIndicator as Pr, PluginDefinitionInput as Pt, useModelEditor as Q, ExternalTextDecoration as Qn, ViewportRect as Qr, EditorController as Qt, useEditorHistory as R, EditableHandlerResult as Rn, useEditorScrollElement as Rr, RenderNodeWrapper as Rt, HorizontalRulePlugin as S, SelectionChangeContext as Sn, UseElementSelectedOptions as Sr, InternalPluginAuthorStageCompatibility as St, ScriptPlugin as T, NodeSelectionDragProps as Tn, UseSelectionGeometryOptions as Tr, InternalPluginAuthorState as Tt, useEditorContainerRef as U, EditablePasteResult as Un, useRootChrome as Ur, Shortcut as Ut, useEditor as V, EditableInputEventContext as Vn, useElementPath as Vr, RenderNodeWrapperFunction as Vt, useEditorFocused as W, EditableProps as Wn, useRootEditor as Wr, Shortcuts as Wt, useEditorState as X, ExternalTextAdapter as Xn, RangeGeometry as Xr, WrapContentProps as Xt, useEditorSelection as Y, ExternalTextActions as Yn, useStateFieldValue as Yr, ViewElementAttributes as Yt, useEditorValue as Z, ExternalTextChange as Zn, RangeRects as Zr, WrapRootProps as Zt, BlockquotePlugin as _, EditorContentProps as _n, UseAnnotationStoreOptions as _r, Decorate as _t, LinkPlugin as a, EditorNodeProps as an, ReactApi as ar, ParagraphPlugin as at, HeadingPlugin as b, EditorRoot as bn, UseEditorHistoryOptions as br, InjectNodeProps as bt, CodeHighlightPlugin as c, InternalReactPluginAdapterResult as cn, ReactUpdatePolicy as cr, NavigationFlashTargetOptions as ct, FontFamilyPlugin as d, KeyboardHandler as dn, RenderPlaceholderProps as dr, CreateEditorOptions as dt, EditorElement as en, ExternalTextOptions as er, usePath as et, FontSizePlugin as f, DOMHandler as fn, RenderTextProps as fr, createEditor as ft, TextIndentPlugin as g, EditorContent as gn, StateFieldSetter as gr, ContainerSiblingProps as gt, TextAlignPlugin as h, EditorPreviewProps as hn, RuntimeStateSelectorOptions as hr, ConfiguredPlugin as ht, LinkDefinition as i, EditorLeafProps as in, ExternalTextView as ir, useElement as it, BlockPlaceholderPluginState as j, EditableDOMCoverageBoundaryMaterializePayload as jn, useAnnotations as jr, PluginApiContext as jt, BlockPlaceholderDefinition as k, EditableDOMBeforeInputContext as kn, useAnnotation as kr, OnTextChange as kt, FontBackgroundColorPlugin as l, toReactPlugin as ln, RenderElementProps as lr, useFocusedLast as lt, LineHeightPlugin as m, EditorPreview as mn, RootChromeController as mr, useIsomorphicLayoutEffect as mt, InternalReactEditorWithInstalledPlugins as n, EditorHTMLProps as nn, ExternalTextSelectionState as nr, ElementDescriptor as nt, IndentPlugin as o, EditorText as on, ReactPlugin$1 as or, NavigationFeedbackPlugin as ot, FormattingPlugin as p, DOMHandlers as pn, RenderVoidProps as pr, useComposedRef as pt, useEditorMounted as q, EditorRuntimeStateSelectorOptions as qn, useSelectionGeometry as qr, UseViewElementAttributes as qt, ListPlugin as r, EditorLeaf as rn, ExternalTextState as rr, ElementForDescriptor as rt, CodeBlockPlugin as s, EditorTextProps as sn, ReactPluginOptions as sr, NavigationFeedbackPluginState as st, Editor as t, EditorElementProps as tn, ExternalTextSelection as tr, useElementSelector as tt, FontColorPlugin as u, definePlugin as un, RenderLeafProps as ur, useCreateEditor as ut, BoldPlugin as v, EditorContainer as vn, UseContentRootOptions as vr, EditableSiblingComponent as vt, KbdPlugin as w, NodeSelectionDrag as wn, UseRootEditorOptions as wr, InternalPluginAuthorStageKeys as wt, HighlightPlugin as x, EditorRootProps as xn, UseElementSelectedMode as xr, InternalPluginAuthorExtension as xt, CodePlugin as y, CommitContext as yn, UseEditableClipOptions as yr, EditableSiblingProps as yt, UseEditorStateOptions as z, EditableHistoryReplayEvent as zn, useEditorScrollElementRef as zr, RenderNodeWrapperConfig as zt };