platejs 54.0.0-beta.2 → 54.0.0-beta.3
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.
- package/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +56 -0
- package/dist/{AIChatRequestContext-BMVWhfPV.d.ts → AIChatRequestContext-DY104TqL.d.ts} +2 -2
- package/dist/{BaseSuggestionPlugin-DBl3fqnm.d.ts → BaseSuggestionPlugin-Deo6n6Fs.d.ts} +7 -3
- package/dist/{PlateStatic-DhNv2ejp.d.ts → PlateStatic-CJX5bKuv.d.ts} +7 -7
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/react/AIChatPlugin.js +113 -78
- package/dist/ai/react/CopilotPlugin.js +1 -1
- package/dist/ai/react/index.d.ts +23 -16
- package/dist/authored/index.d.ts +4 -4
- package/dist/code-block/codemirror/createCodeMirrorAdapter.js +12 -9
- package/dist/code-block/codemirror/index.d.ts +1 -1
- package/dist/{combobox-DkBGgyd3.d.ts → combobox-DAOYWuvC.d.ts} +2 -2
- package/dist/{comparison-types-CYnJ35qU.d.ts → comparison-types-Dt-unJZY-DCddmbSD.d.ts} +10 -2
- package/dist/compiler/index.d.ts +2 -2
- package/dist/{core-BJG8l_mk.d.ts → core-ClHasORr.d.ts} +433 -95
- package/dist/diff/index.d.ts +2 -2
- package/dist/docs/ai.md +4 -3
- package/dist/docs/api/core/plate-components.md +0 -19
- package/dist/docs/api/core/plate-controller.md +4 -2
- package/dist/docs/api/core/plate-plugin.md +3 -0
- package/dist/docs/api/core/plate-store.md +3 -3
- package/dist/docs/api/dom.md +14 -4
- package/dist/docs/api/editor-transforms.md +2 -1
- package/dist/docs/api/react-hooks.md +25 -11
- package/dist/docs/authored-changes.md +5 -2
- package/dist/docs/basic-blocks.md +42 -29
- package/dist/docs/blockquote.md +5 -3
- package/dist/docs/board.md +63 -8
- package/dist/docs/code-block.md +47 -0
- package/dist/docs/discussion.md +1 -1
- package/dist/docs/docx.md +1 -1
- package/dist/docs/dom-coverage.md +5 -0
- package/dist/docs/examples/editable-voids.md +2 -3
- package/dist/docs/external-text.md +2 -0
- package/dist/docs/field.md +370 -0
- package/dist/docs/find.md +9 -6
- package/dist/docs/form.md +2 -0
- package/dist/docs/heading.md +6 -0
- package/dist/docs/installation/manual.md +0 -4
- package/dist/docs/link.md +3 -3
- package/dist/docs/llms.txt +4 -2
- package/dist/docs/markdown.md +176 -8
- package/dist/docs/plugin-components.md +13 -10
- package/dist/docs/plugin-input-rules.md +4 -12
- package/dist/docs/prompt-editor.md +205 -0
- package/dist/docs/roots.md +8 -6
- package/dist/docs/rtl.md +6 -4
- package/dist/docs/selection.md +7 -4
- package/dist/docs/suggestion.md +1 -1
- package/dist/docs/toolbar.md +26 -30
- package/dist/docs/upload.md +106 -17
- package/dist/docx/export/index.d.ts +3 -3
- package/dist/docx/export/lib/docxStaticComponents.js +12 -2
- package/dist/docx/export/lib/exportDocx.js +29 -5
- package/dist/docx/export/lib/reviewPart.js +1 -1
- package/dist/docx/export/lib/reviewProjection.js +10 -8
- package/dist/docx/import/index.d.ts +4 -4
- package/dist/docx/paste/index.d.ts +4 -4
- package/dist/dom/index.d.ts +1 -6
- package/dist/dom/plite-dom.internal.js +2 -2
- package/dist/excalidraw/index.d.ts +3 -2
- package/dist/excalidraw/react/index.d.ts +3 -2
- package/dist/facade.js +2 -2
- package/dist/features/basic-nodes/lib/BaseBlockPlugins.js +13 -5
- package/dist/features/basic-nodes/lib/BaseHeadingPlugins.js +32 -10
- package/dist/features/board/index.d.ts +2 -2
- package/dist/features/board/lib/BaseBoardPlugin.js +14 -1
- package/dist/features/board/lib/boardStroke.internal.js +13 -1
- package/dist/features/board/lib/boardTypes.internal.js +16 -0
- package/dist/features/callout/index.d.ts +3 -2
- package/dist/features/code-block/lib/BaseCodeBlockPlugin.js +14 -5
- package/dist/features/combobox/index.d.ts +2 -2
- package/dist/features/comments/index.d.ts +1 -1
- package/dist/features/date/index.d.ts +3 -2
- package/dist/features/details/index.d.ts +3 -2
- package/dist/features/details/lib/BaseDetailsPlugin.js +10 -10
- package/dist/features/field/index.d.ts +2 -0
- package/dist/features/field/index.js +2 -0
- package/dist/features/field/lib/BaseFieldPlugin.js +414 -0
- package/dist/features/field/lib/fieldRules.internal.js +42 -0
- package/dist/features/find/index.d.ts +3 -2
- package/dist/features/footnote/index.d.ts +1 -1
- package/dist/features/ink/index.d.ts +1 -1
- package/dist/features/ink/lib/BaseInkPlugin.js +126 -103
- package/dist/features/ink/lib/inkCodec.internal.js +130 -0
- package/dist/features/ink/lib/inkGone.internal.js +229 -48
- package/dist/features/ink/lib/inkPlaces.internal.js +533 -62
- package/dist/features/layout/index.d.ts +1 -1
- package/dist/features/link/lib/BaseLinkPlugin.js +6 -4
- package/dist/features/lint/index.d.ts +3 -2
- package/dist/features/media/index.d.ts +1 -1
- package/dist/features/media/lib/media/parseMediaUrl.js +11 -1
- package/dist/features/media/lib/media-embed/BaseMediaEmbedPlugin.js +6 -2
- package/dist/features/mention/index.d.ts +5 -4
- package/dist/features/suggestion/index.d.ts +1 -1
- package/dist/features/table/index.d.ts +1 -1
- package/dist/features/table/lib/BaseTablePlugin.js +14 -8
- package/dist/features/table/lib/internal/selection.js +4 -2
- package/dist/features/toc/index.d.ts +1 -1
- package/dist/features/upload/index.d.ts +2 -2
- package/dist/features/upload/lib/BaseUploadPlugin.js +464 -250
- package/dist/history/index.d.ts +2 -2
- package/dist/html/index.d.ts +3 -3
- package/dist/html/server/index.d.ts +1 -1
- package/dist/{htmlTypes-DjeFG3P8.d.ts → htmlTypes-cg_cWsaN.d.ts} +2 -31
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/{index-D1CFXA-i.d.ts → index-8WO2vI0U.d.ts} +475 -143
- package/dist/{index-DaM37gF6.d.ts → index-B5mYEawV.d.ts} +37 -21
- package/dist/{index-Bq3sdm3S.d.ts → index-BZWFoUXt.d.ts} +5 -4
- package/dist/{index-DdIRduDG.d.ts → index-C0POz7rg.d.ts} +3 -2
- package/dist/{index-Bxfvicyy.d.ts → index-C1_JIhL4.d.ts} +4 -3
- package/dist/{index-DC_MNGyu.d.ts → index-C35V_hj0.d.ts} +3 -3
- package/dist/{index-kLKMc-pI.d.ts → index-C6ql9pKw.d.ts} +2 -2
- package/dist/{index-hsC_sOn2.d.ts → index-C9DiGDVj.d.ts} +35 -5
- package/dist/{index-DTgaSxKr.d.ts → index-CLsEe3LY.d.ts} +40 -4
- package/dist/{index-CT7miqQN.d.ts → index-CdOLsPaW.d.ts} +29 -9
- package/dist/{index-DLA2DUR2.d.ts → index-CktYvOgk.d.ts} +4 -3
- package/dist/{index-BBKGrsG3.d.ts → index-Cmuluh6f.d.ts} +1 -1
- package/dist/{index-BiQerPJS.d.ts → index-CzLwBZpY.d.ts} +2 -2
- package/dist/{index-DzD6BIFJ.d.ts → index-D3-2iM1b.d.ts} +7 -5
- package/dist/{index-Cl77E9yr.d.ts → index-DKOFvteF.d.ts} +2 -2
- package/dist/{index-iaZOhA76.d.ts → index-DPWyk3lG-DOYwohXO.d.ts} +1 -1
- package/dist/index-DQnjqtQa.d.ts +678 -0
- package/dist/{index-CcZbqPqk.d.ts → index-Do9pj1GK.d.ts} +73 -39
- package/dist/{index-BU6k1Aev.d.ts → index-DpltOCot-A2b3p3Eb.d.ts} +4735 -4586
- package/dist/{index-Bc2Yg_2j.d.ts → index-HPYawTae-BCUQLEWF.d.ts} +2 -2
- package/dist/{index-BkR7-GLI.d.ts → index-baQOK89E.d.ts} +2 -2
- package/dist/{index-D5W-p9bS.d.ts → index-oIJAZxc2.d.ts} +49 -4
- package/dist/{index-xdmCBvlT.d.ts → index-r7yb77Wy.d.ts} +3 -2
- package/dist/index.d.ts +4 -4
- package/dist/{react/internal → internal}/penStroke.internal.js +1 -1
- package/dist/internal/plugin/OverridePlugin.js +101 -119
- package/dist/internal/plugin/collectPlateNodeMappings.js +5 -1
- package/dist/internal/plugin/pastedUploadFiles.js +4 -0
- package/dist/internal/plugin/resolvePlugin.js +1 -1
- package/dist/internal/plugin/resolvePlugins.js +3 -0
- package/dist/internal/plugin/uploadDrafts.js +6 -0
- package/dist/internal/utils/mergePlugins.js +1 -0
- package/dist/lib/plugins/element-id/ElementIdPlugin.js +8 -2
- package/dist/lib/plugins/html/HtmlPlugin.js +9 -0
- package/dist/lib/plugins/html/htmlSafety.js +1 -1
- package/dist/lib/plugins/input-rules/InputRulesPlugin.js +5 -15
- package/dist/lib/plugins/input-rules/inputRuleVeto.internal.js +16 -0
- package/dist/markdown/index.d.ts +2 -2
- package/dist/markdown/index.js +2 -1
- package/dist/markdown/lib/MarkdownPlugin.js +16 -9
- package/dist/markdown/lib/RawHtmlPlugin.js +24 -0
- package/dist/markdown/lib/deserializer/mdastToSlate.js +12 -2
- package/dist/markdown/lib/internal/markdownConversion.js +773 -74
- package/dist/markdown/lib/internal/markdownDiagnostics.js +18 -7
- package/dist/markdown/lib/internal/markdownFrontmatter.js +102 -0
- package/dist/markdown/lib/internal/markdownIntrinsics.js +125 -43
- package/dist/markdown/lib/internal/markdownLine.js +5 -3
- package/dist/markdown/lib/internal/markdownMappings.js +19 -7
- package/dist/markdown/lib/internal/markdownOpenTail.js +381 -0
- package/dist/markdown/lib/internal/markdownRawHtml.js +314 -0
- package/dist/markdown/lib/internal/markdownSegments.js +57 -48
- package/dist/markdown/lib/internal/markdownTags.js +22 -8
- package/dist/markdown/lib/serializer/convertNodesSerialize.js +10 -8
- package/dist/markdown/lib/serializer/convertPhrasingSerialize.js +226 -0
- package/dist/markdown/lib/serializer/listToMdastTree.js +2 -0
- package/dist/math/index.d.ts +3 -2
- package/dist/math/react/index.d.ts +4 -3
- package/dist/migrations/index.d.ts +3 -3
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/react/index.d.ts +4 -4
- package/dist/react/components/EditorContentView.internal.js +17 -8
- package/dist/react/components/EditorProvider.js +5 -5
- package/dist/react/components/Plate.js +103 -122
- package/dist/react/components/PlateContainer.js +40 -32
- package/dist/react/components/PlateController.js +28 -16
- package/dist/react/components/PlateRoot.internal.js +3 -2
- package/dist/react/core.js +4 -4
- package/dist/react/features/board/BoardSurface.js +116 -87
- package/dist/react/features/board/boardClipboard.internal.js +15 -5
- package/dist/react/features/board/boardGesture.internal.js +6 -3
- package/dist/react/features/board/boardIndex.internal.js +7 -18
- package/dist/react/features/board/boardPictures.internal.js +19 -13
- package/dist/react/features/board/boardView.internal.js +184 -49
- package/dist/react/features/board/boardVoice.internal.js +10 -11
- package/dist/react/features/board/index.d.ts +64 -18
- package/dist/react/features/callout/index.d.ts +3 -2
- package/dist/react/features/combobox/index.d.ts +8 -8
- package/dist/react/features/comments/index.d.ts +6 -5
- package/dist/react/features/date/index.d.ts +4 -3
- package/dist/react/features/details/index.d.ts +4 -3
- package/dist/react/features/field/FieldPlugin.js +34 -0
- package/dist/react/features/field/index.d.ts +312 -0
- package/dist/react/features/field/index.js +2 -0
- package/dist/react/features/footnote/index.d.ts +7 -6
- package/dist/react/features/format-painter/index.d.ts +4 -3
- package/dist/react/features/ink/InkContent.js +313 -0
- package/dist/react/features/ink/index.d.ts +57 -29
- package/dist/react/features/ink/index.js +2 -2
- package/dist/react/features/ink/inkCapture.internal.js +39 -17
- package/dist/react/features/ink/inkInput.internal.js +1 -1
- package/dist/react/features/ink/inkLayout.internal.js +6 -3
- package/dist/react/features/ink/inkPaint.internal.js +78 -2
- package/dist/react/features/ink/inkPlacement.internal.js +331 -104
- package/dist/react/features/ink/inkWatch.internal.js +7 -5
- package/dist/react/features/layout/index.d.ts +5 -4
- package/dist/react/features/media/index.d.ts +5 -4
- package/dist/react/features/mention/index.d.ts +6 -5
- package/dist/react/features/resizable/Resizable.js +4 -6
- package/dist/react/features/resizable/index.d.ts +5 -5
- package/dist/react/features/suggestion/index.d.ts +6 -5
- package/dist/react/features/table/TablePlugin.js +4 -11
- package/dist/react/features/table/index.d.ts +8 -7
- package/dist/react/features/toc/index.d.ts +2 -2
- package/dist/react/features/upload/index.d.ts +11 -6
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +4 -4
- package/dist/react/internal/plate-context.js +425 -188
- package/dist/react/plite-react.js +2 -2
- package/dist/react/plugins/navigation-feedback/NavigationFeedbackPlugin.js +12 -10
- package/dist/react/stores/plate/useEditor.js +32 -14
- package/dist/react/stores/plate/useEditorHistory.js +55 -0
- package/dist/react/stores/plate/useEditorSelector.js +66 -21
- package/dist/react/utils/pipeRenderElement.internal.js +1 -1
- package/dist/react/utils/pluginRenderElement.internal.js +1 -1
- package/dist/react/virtualized.d.ts +4 -4
- package/dist/{source-CNKy99Th.d.ts → source-aUwpNnAw.d.ts} +4 -4
- package/dist/static/index.d.ts +18 -18
- package/dist/static/internal/renderStaticHtmlWithOverrides.js +2 -2
- package/dist/static/internal/staticPresentation.js +4 -4
- package/dist/static/internal/writeStaticSelectionClipboardData.js +7 -2
- package/dist/tabbable/index.d.ts +1 -1
- package/dist/tabbable/react/index.d.ts +3 -3
- package/dist/testing/index.d.ts +3 -3
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/react/index.d.ts +6 -6
- package/package.json +20 -2
- package/dist/markdown/lib/serializer/convertTextsSerialize.js +0 -163
- package/dist/react/components/EditorSelectionView.js +0 -40
- package/dist/react/features/ink/InkLayer.js +0 -218
- package/dist/react/internal/createPlateTargetScope.js +0 -62
|
@@ -1,12 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { h as EditorApplicationSchema } from "./htmlTypes-
|
|
3
|
-
import { $ as PluginContributionCompatibility, $t as UpsertLinkOptions, A as DefinePluginFormats, Ai as AutoScrollOptions, An as CapturedFormat, Ao as
|
|
4
|
-
import {
|
|
5
|
-
import { a as AnnotationSnapshot, d as ViewSourceErrorSink, l as ResolvedAnnotation, o as AnnotationStore, t as Annotation } from "./index-
|
|
6
|
-
import { n as EditorStaticProps } from "./PlateStatic-
|
|
7
|
-
import "lodash";
|
|
1
|
+
import { F as DecorationAttributes, Fl as TransferInput, I as DecorationRefresh, Ia as NodeSetNodesOptions, Jt as EditorNodeChangeContext, Ki as Location, Lo as PluginTypeProviderOf, Lr as EditorTransactionChangeContext, Mc as Selection, Ml as TransferCheck, Mo as PluginReference, Ni as HistoryOutcome, Or as EditorTextChangeContext, P as Decoration, Pa as NodeSelection, Ps as SchemaContentRule, Qn as EditorSchemaSourceProvider, Qo as PropertyJsonDescriptor, R as DefinitionOf, Ra as NodeTarget, Si as Element$1, To as PluginPortal$1, Tt as EditorDocumentValue, Ul as TransferPlugin, Uo as PluginsOf, Vo as PluginWitnessFor, Vt as EditorJsonValue, Wl as TransferRead, Ws as SchemaElementPropertyDefinition, Y as Editor$3, Yo as PropertyBooleanDescriptor, Za as Path, Zn as EditorSchemaSource, Zo as PropertyEnumDescriptor, _l as TextInsertFragmentOptions, _o as PluginDependencyReferenceFor, al as StateFieldValueInput, ci as EditorUpdatePolicy, cl as Text, da as NodeEntry, dr as EditorStateField, dt as EditorCommit, es as PropertyNumberDescriptor, eu as TxDeclaredMethod, f as AnyEditor, ho as PluginDependencyContractReference, is as PropertyStringDescriptor, iu as ValueOf, jl as TransferApi, ki as ElementOf, ls as PropertyValueOptions, mt as EditorCommitContext, na as NamedRootKey, oi as EditorUpdateContext, rc as SchemaNodeTypeProvider, ro as Plugin$1, ru as Value, tu as TxMethodDeclarations, us as Range, v as BaseElement, wr as EditorStateView, ws as SchemaContentDefault, xa as NodeKey, xi as EditorViewOptions, xl as TextOf, xs as RootKey, zl as TransferOutcome } from "./index-DpltOCot-A2b3p3Eb.js";
|
|
2
|
+
import { h as EditorApplicationSchema } from "./htmlTypes-cg_cWsaN.js";
|
|
3
|
+
import { $ as PluginContributionCompatibility, $t as UpsertLinkOptions, A as DefinePluginFormats, Ai as AutoScrollOptions, An as CapturedFormat, Ao as PluginSelectorMethods, Ba as AnyBasePluginDefinition, Bt as OutdentListOptions, Co as PluginSchemaContext, Ct as PluginTransaction, D as ConfiguredPluginDescriptor, Di as AutoScrollApi, Er as RenderTextProps$1, Et as CorePlugins, Fa as ElementWith, G as PluginShortcutInput, Ga as DefinitionOf$1, Go as AnyObject, Ha as BasePluginDefinition, Ho as InferPluginSchema, Ht as ToggleListOptions, Ii as ScrollMode, Io as SelectionRules, Ja as GetInjectNodePropsOptions, Jt as CreateLinkNodeOptions, Ko as UnknownObject, Lt as ListStyle, Mo as PluginSelectors, Na as HandlerReturnType, Or as RenderLeafProps$1, Po as PluginViewStore, Q as PluginCompatibilityArguments, Qa as InferDependencies, Qn as HeadingLevel, Qt as UnwrapLinkOptions, Rt as ListType, Tt as CoreEditorApi, Ua as BaseTransformOptions, Uo as InferPluginSchemaContribution, V as InternalBasePluginRuntimeExtension, Va as BaseInjectProps, Vo as InferPluginNodeTypeProvider, Wo as Nullable, Wt as isListLevels, Xa as InferApi, Ya as GetInjectNodePropsReturnType, Yt as LinkAttributes, Z as MergePluginDefinitions, Za as InferConflicts, _ as BasePlugin, _n as Alignment, _o as PluginBaseContext, aa as BasePluginInstalledCapabilityWitness, ao as InferPluginStoreState, at as RuntimePluginsFromTuple, b as BasePluginDefinitionInput, bo as PluginPortalContext, bt as PluginReadCapability, co as InferRead, ct as BlockInsertOptions, do as InferUpdate, dt as InferEditorRuntimePlugins, ea as PluginInitialStateInput, en as WrapLinkOptions, er as ToggleHeadingOptions, f as InternalBaseEditorWithInstalledPlugins, ft as InferRuntimePlugins, g as AnyPluginBase, gn as HighlightResult, gr as GetFragmentPropOptions, gt as MergeInstalledPluginDefinitions, h as AnyBasePluginPortal, ho as NormalizePluginState, ht as InternalInstalledSchemaMutationProvider, ia as BasePluginDependencyReferences, it as PlatePluginsFromTuple, j as EditorShortcut, ja as RenderElementProps$1, ji as AutoScrollUpdate, jo as PluginSelectorReturn, ko as PluginSelectorArgs, lo as InferSelectors, lt as BlockUpsertOptions, m as AnyBasePluginContext, mo as NormalizePluginSelectors, na as BasePluginDependencyDescriptors, nt as EditorOptions, oa as LowerBasePlugin, on as isNonNegativeSafeInteger, p as AnyBasePlugin, po as NodeComponent, pt as InternalEditorMutationProvider, qa as EditOnlyConfig, qo as GeneratedEditorMutations, rn as IndentChangeOptions, rt as EditorValueInput, sa as NormalizeBasePluginInput, so as InferPluginViewState, st as BasePluginInput, ta as RequiredPluginState, u as Editor$4, v as BasePluginConfiguration, vo as PluginDefinitionWitness, vt as PluginDirectUpdate, wo as PluginSchemaDeclaration, xo as PluginReference$1, xt as PluginReadState, yo as PluginDependency, za as InternalPluginDefinitionOf, zo as WithAnyName } from "./core-ClHasORr.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-B5mYEawV.js";
|
|
5
|
+
import { a as AnnotationSnapshot, d as ViewSourceErrorSink, l as ResolvedAnnotation, o as AnnotationStore, t as Annotation } from "./index-DPWyk3lG-DOYwohXO.js";
|
|
6
|
+
import { n as EditorStaticProps } from "./PlateStatic-CJX5bKuv.js";
|
|
8
7
|
import React$1, { CSSProperties, HTMLAttributes, KeyboardEvent as KeyboardEvent$1, MouseEventHandler, ReactNode, Ref, RefObject, TextareaHTMLAttributes } from "react";
|
|
9
|
-
|
|
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$
|
|
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
|
|
461
|
-
*
|
|
462
|
-
*
|
|
463
|
-
*
|
|
464
|
-
*
|
|
465
|
-
*
|
|
466
|
-
*
|
|
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$
|
|
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
|
|
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
|
|
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
|
|
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$
|
|
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
|
|
788
|
+
equalityFn?: (a: T, b: T) => boolean;
|
|
799
789
|
shouldUpdate?: (change?: EditorCommit) => boolean;
|
|
800
790
|
};
|
|
801
|
-
type ReactEditorState = EditorStateView<ValueOf<Editor$
|
|
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,22 @@ 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.
|
|
834
|
-
*
|
|
835
|
-
*
|
|
825
|
+
* its own board when two editing areas show the same board. While its
|
|
826
|
+
* `EditorRoot` is writable, shows no editing area and the caret is in its
|
|
827
|
+
* root, it follows the editing area that holds the caret, for that area's DOM
|
|
828
|
+
* and the read-only state of that area's `EditorRoot`. It keeps its own
|
|
829
|
+
* `EditorRoot`'s authored view there, and a write that places the caret, even
|
|
830
|
+
* where the caret already is, moves the caret into its own `EditorRoot`, which
|
|
831
|
+
* ends the follow. Use it for root-specific toolbar/sidebar commands. Pass
|
|
832
|
+
* `readOnly: true` when UI only needs read APIs. Exact plugin capability comes
|
|
833
|
+
* from `editor.plugin(Plugin)`.
|
|
836
834
|
*/
|
|
837
|
-
declare function useRootEditor<const TRoot extends RootKey = RootKey>(root?: NamedRootKey<TRoot>, options?: UseRootEditorOptions): Editor$
|
|
835
|
+
declare function useRootEditor<const TRoot extends RootKey = RootKey>(root?: NamedRootKey<TRoot>, options?: UseRootEditorOptions): Editor$2;
|
|
838
836
|
/** Identifies the exact mounted Editable used to resolve selection geometry. */
|
|
839
837
|
type UseSelectionGeometryOptions = Readonly<{
|
|
840
838
|
editableRef: RefObject<HTMLElement | null>;
|
|
@@ -1186,7 +1184,11 @@ declare function EditorProvider({ children, editor }: {
|
|
|
1186
1184
|
children: React$1.ReactNode;
|
|
1187
1185
|
editor: Editor | null;
|
|
1188
1186
|
}): React$1.JSX.Element;
|
|
1189
|
-
/**
|
|
1187
|
+
/**
|
|
1188
|
+
* Give controls outside every `EditorRoot` what the `EditorRoot` used last gives
|
|
1189
|
+
* its own controls outside its editing areas. Until one is used, that is the
|
|
1190
|
+
* first `primary` one with a mounted `EditorContent`.
|
|
1191
|
+
*/
|
|
1190
1192
|
declare function EditorController({ children }: {
|
|
1191
1193
|
children: React$1.ReactNode;
|
|
1192
1194
|
}): React$1.JSX.Element;
|
|
@@ -1236,12 +1238,13 @@ type ViewElementAttributeEntry = Readonly<{
|
|
|
1236
1238
|
type AnyPluginRender = AnyBasePlugin['render'] & {
|
|
1237
1239
|
useViewElementAttributes?: ErasedCallback<readonly ViewElementAttributeEntry[]> | null;
|
|
1238
1240
|
};
|
|
1239
|
-
type AnyPluginSlots = Omit<AnyBasePlugin['slots'], 'afterContainer' | 'afterEditable' | 'afterNodeChildren' | 'beforeContainer' | 'beforeEditable' | 'wrapContent' | 'wrapNode' | 'wrapNodeChildren' | 'wrapRoot'> & {
|
|
1241
|
+
type AnyPluginSlots = Omit<AnyBasePlugin['slots'], 'afterContainer' | 'afterEditable' | 'afterNodeChildren' | 'beforeContainer' | 'beforeEditable' | 'caret' | 'wrapContent' | 'wrapNode' | 'wrapNodeChildren' | 'wrapRoot'> & {
|
|
1240
1242
|
afterContainer?: ContainerSiblingComponent | null;
|
|
1241
1243
|
afterEditable?: EditableSiblingComponent | null;
|
|
1242
1244
|
afterNodeChildren?: ErasedCallback<React$1.ReactNode> | null;
|
|
1243
1245
|
beforeContainer?: ContainerSiblingComponent | null;
|
|
1244
1246
|
beforeEditable?: EditableSiblingComponent | null;
|
|
1247
|
+
caret?: EditableSiblingComponent | null;
|
|
1245
1248
|
wrapContent?: ((props: WrapContentProps) => React$1.ReactNode) | null;
|
|
1246
1249
|
wrapNode?: ErasedRenderNodeWrapper | ErasedRenderNodeWrapperDescriptor | null;
|
|
1247
1250
|
wrapNodeChildren?: ErasedRenderNodeWrapper | null;
|
|
@@ -1321,7 +1324,7 @@ type LeafNodeProps<C extends AnyBasePluginDefinition = BasePluginDefinition> = (
|
|
|
1321
1324
|
type NodeProps<C extends AnyBasePluginDefinition = BasePluginDefinition> = ((props: EditorNodeProps<C> & RenderElementProps$1<ElementWith<C>> & RenderLeafProps$1<Text, Text>) => AnyObject | undefined) | AnyObject;
|
|
1322
1325
|
type TextNodeProps<C extends AnyBasePluginDefinition = BasePluginDefinition> = ((props: EditorNodeProps<C> & RenderLeafProps$1<Text, Text>) => AnyObject | undefined) | AnyObject;
|
|
1323
1326
|
type UseViewElementAttributes<C extends AnyBasePluginDefinition = BasePluginDefinition> = (context: PluginContext<C> & {
|
|
1324
|
-
view: Editor$
|
|
1327
|
+
view: Editor$2;
|
|
1325
1328
|
}) => readonly ViewElementAttributeEntry[];
|
|
1326
1329
|
type OnNodeChange<C extends AnyBasePluginDefinition = BasePluginDefinition> = (context: PluginContext<C> & Omit<EditorNodeChangeContext, 'editor'>) => void;
|
|
1327
1330
|
type OnTextChange<C extends AnyBasePluginDefinition = BasePluginDefinition> = (context: PluginContext<C> & Omit<EditorTextChangeContext, 'editor'>) => void;
|
|
@@ -1386,6 +1389,12 @@ type ReactSlotFields<C extends AnyBasePluginDefinition> = {
|
|
|
1386
1389
|
afterNodeChildren?: (props: RenderNodeWrapperProps<C>) => React$1.ReactNode;
|
|
1387
1390
|
beforeContainer?: ContainerSiblingComponent;
|
|
1388
1391
|
beforeEditable?: EditableSiblingComponent;
|
|
1392
|
+
/**
|
|
1393
|
+
* Renders after the Editable. Its editor is the view holding the caret while
|
|
1394
|
+
* that view is this view or mounted inside it, such as a board note, and
|
|
1395
|
+
* this view otherwise.
|
|
1396
|
+
*/
|
|
1397
|
+
caret?: EditableSiblingComponent;
|
|
1389
1398
|
wrapContent?: (props: WrapContentProps) => React$1.ReactNode;
|
|
1390
1399
|
wrapNode?: RenderNodeWrapperConfig<C>;
|
|
1391
1400
|
wrapNodeChildren?: RenderNodeWrapper<C>;
|
|
@@ -1604,18 +1613,6 @@ type ValidatedShortcuts<C extends AnyBasePluginDefinition, TShortcuts extends Sh
|
|
|
1604
1613
|
type PossibleRef<T> = React$1.Ref<T> | undefined;
|
|
1605
1614
|
declare const useComposedRef: <T>(...refs: Array<PossibleRef<T>>) => (node: T | null) => (() => void) | undefined;
|
|
1606
1615
|
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
1616
|
type PluginInput = PluginReference;
|
|
1620
1617
|
type CreateEditorOptions<TPlugins extends readonly PluginReference[] = readonly PluginInput[], TSchema extends EditorApplicationSchema | undefined = EditorApplicationSchema | undefined> = Partial<Omit<EditorOptions<TPlugins>, 'id' | 'plugins' | 'schema'>> & {
|
|
1621
1618
|
/** Stable logical identity for the created editor. */
|
|
@@ -1919,10 +1916,7 @@ declare const useEditorComposing: () => boolean;
|
|
|
1919
1916
|
declare const useEditorReadOnly: () => boolean;
|
|
1920
1917
|
/** Get the selected Plate container ref; its value is null before mount. */
|
|
1921
1918
|
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
|
-
*/
|
|
1919
|
+
/** Get the selected view's Editable ref; its value is null before mount. */
|
|
1926
1920
|
declare function useEditableRef(): React$1.RefObject<HTMLElement | null>;
|
|
1927
1921
|
/** Get the selected root's text selection. */
|
|
1928
1922
|
declare const useEditorSelection: () => Range | null;
|
|
@@ -1933,7 +1927,31 @@ type UseEditorStateOptions<T> = EditorRuntimeStateSelectorOptions<T, Editor>;
|
|
|
1933
1927
|
declare const useEditorState: <T>(selector: (state: EditorStateView<ValueOf<Editor>, PluginsOf<Editor>>) => T, options?: UseEditorStateOptions<T>) => T;
|
|
1934
1928
|
/** Get the selected root's children. */
|
|
1935
1929
|
declare const useEditorValue: () => readonly BaseElement[];
|
|
1930
|
+
/**
|
|
1931
|
+
* Create undo/redo commands and keyboard handling.
|
|
1932
|
+
*
|
|
1933
|
+
* Without `editor` or `root`, while the editor `useEditor()` returns belongs to
|
|
1934
|
+
* the `EditorRoot` around the hook, they run through that `EditorRoot`'s shown
|
|
1935
|
+
* writable view used last, and are on only while a shown writable `Editable`
|
|
1936
|
+
* reaches every root the next undo or redo changes. When no provider gives an
|
|
1937
|
+
* editor, they do the same and need an `EditorRoot` around the hook.
|
|
1938
|
+
* Otherwise, such as under `EditorController` or under an `EditorProvider`
|
|
1939
|
+
* given another editor, they bind to that editor, as with `editor`. With
|
|
1940
|
+
* `editor` or `root`, they replay the next batch whatever roots it changes.
|
|
1941
|
+
* With `root`, they are off while no view of it is shown. With `editor`, they
|
|
1942
|
+
* can stay on while no `Editable` runs that editor, and a click then does
|
|
1943
|
+
* nothing. They are off while their view is read-only or composes text.
|
|
1944
|
+
*/
|
|
1945
|
+
declare function useEditorHistory<const TRoot extends RootKey = RootKey>(options?: UseEditorHistoryOptions<TRoot>): EditorHistoryController;
|
|
1936
1946
|
type UseEditorSelectorOptions<T> = EditorRuntimeStateSelectorOptions<T, Editor>;
|
|
1947
|
+
/**
|
|
1948
|
+
* Subscribe to a value derived from the selected editor. A selector that
|
|
1949
|
+
* keeps its identity between renders runs at most once per commit, and once
|
|
1950
|
+
* more when the selected editor changes, such as when the caret moves to
|
|
1951
|
+
* another root. A selector written inline gets a new identity each render, so
|
|
1952
|
+
* it also runs on every render of its component. A change that leaves the
|
|
1953
|
+
* value equal renders nothing.
|
|
1954
|
+
*/
|
|
1937
1955
|
declare const useEditorSelector: <T>(selector: (editor: Editor) => T, options?: UseEditorSelectorOptions<T>) => T;
|
|
1938
1956
|
type PluginStoreDescriptor = Readonly<{
|
|
1939
1957
|
name: string;
|
|
@@ -2158,7 +2176,8 @@ declare const HeadingPlugin: InternalReactPluginAdapterResult<BasePlugin<Readonl
|
|
|
2158
2176
|
readonly name: "heading";
|
|
2159
2177
|
readonly formats: true;
|
|
2160
2178
|
readonly read: {
|
|
2161
|
-
readonly level: (node: Element$1) => HeadingLevel | undefined;
|
|
2179
|
+
readonly level: (node: Readonly<Element$1>) => HeadingLevel | undefined;
|
|
2180
|
+
readonly canSetLevel: (level: HeadingLevel) => boolean;
|
|
2162
2181
|
};
|
|
2163
2182
|
readonly rules: true;
|
|
2164
2183
|
readonly update: {
|
|
@@ -2444,6 +2463,9 @@ declare const LineHeightPlugin: Plugin<Readonly<{
|
|
|
2444
2463
|
}>, Readonly<{
|
|
2445
2464
|
kind: 'types';
|
|
2446
2465
|
types: readonly string[];
|
|
2466
|
+
}>, Readonly<{
|
|
2467
|
+
key: string;
|
|
2468
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
2447
2469
|
}>>;
|
|
2448
2470
|
};
|
|
2449
2471
|
};
|
|
@@ -2518,6 +2540,9 @@ declare const TextAlignPlugin: Plugin<Readonly<{
|
|
|
2518
2540
|
textAlign: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["center", "end", "justify", "left", "right", "start"], PropertyValueOptions<"center" | "end" | "justify" | "left" | "right" | "start">>, Readonly<{
|
|
2519
2541
|
kind: 'types';
|
|
2520
2542
|
types: readonly string[];
|
|
2543
|
+
}>, Readonly<{
|
|
2544
|
+
key: string;
|
|
2545
|
+
map: (value: "center" | "end" | "justify" | "left" | "right" | "start", renamed: (name: string) => string | undefined) => "center" | "end" | "justify" | "left" | "right" | "start";
|
|
2521
2546
|
}>>;
|
|
2522
2547
|
};
|
|
2523
2548
|
};
|
|
@@ -2597,6 +2622,9 @@ declare const TextIndentPlugin: Plugin<Readonly<{
|
|
|
2597
2622
|
textIndent: SchemaElementPropertyDefinition<PropertyNumberDescriptor<PropertyValueOptions<number>>, Readonly<{
|
|
2598
2623
|
kind: 'types';
|
|
2599
2624
|
types: readonly string[];
|
|
2625
|
+
}>, Readonly<{
|
|
2626
|
+
key: string;
|
|
2627
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
2600
2628
|
}>>;
|
|
2601
2629
|
};
|
|
2602
2630
|
};
|
|
@@ -2680,6 +2708,14 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
|
|
|
2680
2708
|
placement: "element";
|
|
2681
2709
|
unaliased: true;
|
|
2682
2710
|
value: string;
|
|
2711
|
+
}> | Readonly<{
|
|
2712
|
+
descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
2713
|
+
key: "meta";
|
|
2714
|
+
localId: "meta";
|
|
2715
|
+
ownerName: "codeBlock";
|
|
2716
|
+
placement: "element";
|
|
2717
|
+
unaliased: true;
|
|
2718
|
+
value: string;
|
|
2683
2719
|
}>;
|
|
2684
2720
|
readonly schema: {
|
|
2685
2721
|
readonly element: {
|
|
@@ -2706,6 +2742,7 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
|
|
|
2706
2742
|
readonly ownsExit: true;
|
|
2707
2743
|
readonly properties: {
|
|
2708
2744
|
language: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
2745
|
+
meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
2709
2746
|
};
|
|
2710
2747
|
readonly slice: {
|
|
2711
2748
|
readonly preserveContext: true;
|
|
@@ -2726,6 +2763,7 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
|
|
|
2726
2763
|
type: "codeBlock";
|
|
2727
2764
|
}> & Readonly<{} & {
|
|
2728
2765
|
language?: string | undefined;
|
|
2766
|
+
meta?: string | undefined;
|
|
2729
2767
|
}>>;
|
|
2730
2768
|
} | undefined;
|
|
2731
2769
|
readonly indentDepth: () => number;
|
|
@@ -2738,6 +2776,7 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
|
|
|
2738
2776
|
type: "codeBlock";
|
|
2739
2777
|
}> & Readonly<{} & {
|
|
2740
2778
|
language?: string | undefined;
|
|
2779
|
+
meta?: string | undefined;
|
|
2741
2780
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
2742
2781
|
text: string;
|
|
2743
2782
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -2746,6 +2785,7 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
|
|
|
2746
2785
|
type: "codeBlock";
|
|
2747
2786
|
}> & Readonly<{} & {
|
|
2748
2787
|
language?: string | undefined;
|
|
2788
|
+
meta?: string | undefined;
|
|
2749
2789
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
|
|
2750
2790
|
readonly resetBlock: () => boolean;
|
|
2751
2791
|
readonly selectAll: () => boolean;
|
|
@@ -2760,6 +2800,7 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
|
|
|
2760
2800
|
type: "codeBlock";
|
|
2761
2801
|
}> & Readonly<{} & {
|
|
2762
2802
|
language?: string | undefined;
|
|
2803
|
+
meta?: string | undefined;
|
|
2763
2804
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
2764
2805
|
text: string;
|
|
2765
2806
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -2768,6 +2809,7 @@ declare const CodeBlockPlugin: Plugin<Readonly<{
|
|
|
2768
2809
|
type: "codeBlock";
|
|
2769
2810
|
}> & Readonly<{} & {
|
|
2770
2811
|
language?: string | undefined;
|
|
2812
|
+
meta?: string | undefined;
|
|
2771
2813
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
|
|
2772
2814
|
};
|
|
2773
2815
|
}>>;
|
|
@@ -2794,6 +2836,14 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2794
2836
|
placement: "element";
|
|
2795
2837
|
unaliased: true;
|
|
2796
2838
|
value: string;
|
|
2839
|
+
}> | Readonly<{
|
|
2840
|
+
descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
2841
|
+
key: "meta";
|
|
2842
|
+
localId: "meta";
|
|
2843
|
+
ownerName: "codeBlock";
|
|
2844
|
+
placement: "element";
|
|
2845
|
+
unaliased: true;
|
|
2846
|
+
value: string;
|
|
2797
2847
|
}>;
|
|
2798
2848
|
}> & Readonly<Record<"read", {
|
|
2799
2849
|
readonly entry: ({ at }?: {
|
|
@@ -2803,6 +2853,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2803
2853
|
type: "codeBlock";
|
|
2804
2854
|
}> & Readonly<{} & {
|
|
2805
2855
|
language?: string | undefined;
|
|
2856
|
+
meta?: string | undefined;
|
|
2806
2857
|
}>>;
|
|
2807
2858
|
} | undefined;
|
|
2808
2859
|
readonly indentDepth: () => number;
|
|
@@ -2832,6 +2883,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2832
2883
|
readonly ownsExit: true;
|
|
2833
2884
|
readonly properties: {
|
|
2834
2885
|
language: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
2886
|
+
meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
2835
2887
|
};
|
|
2836
2888
|
readonly slice: {
|
|
2837
2889
|
readonly preserveContext: true;
|
|
@@ -2844,6 +2896,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2844
2896
|
type: "codeBlock";
|
|
2845
2897
|
}> & Readonly<{} & {
|
|
2846
2898
|
language?: string | undefined;
|
|
2899
|
+
meta?: string | undefined;
|
|
2847
2900
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
2848
2901
|
text: string;
|
|
2849
2902
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -2852,6 +2905,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2852
2905
|
type: "codeBlock";
|
|
2853
2906
|
}> & Readonly<{} & {
|
|
2854
2907
|
language?: string | undefined;
|
|
2908
|
+
meta?: string | undefined;
|
|
2855
2909
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
|
|
2856
2910
|
readonly resetBlock: () => boolean;
|
|
2857
2911
|
readonly selectAll: () => boolean;
|
|
@@ -2866,6 +2920,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2866
2920
|
type: "codeBlock";
|
|
2867
2921
|
}> & Readonly<{} & {
|
|
2868
2922
|
language?: string | undefined;
|
|
2923
|
+
meta?: string | undefined;
|
|
2869
2924
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
2870
2925
|
text: string;
|
|
2871
2926
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -2874,6 +2929,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2874
2929
|
type: "codeBlock";
|
|
2875
2930
|
}> & Readonly<{} & {
|
|
2876
2931
|
language?: string | undefined;
|
|
2932
|
+
meta?: string | undefined;
|
|
2877
2933
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
|
|
2878
2934
|
}>> & Readonly<Record<never, never>>> & Pick<BasePlugin<Readonly<{
|
|
2879
2935
|
readonly __pluginWritableProperties: Readonly<{
|
|
@@ -2884,6 +2940,14 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2884
2940
|
placement: "element";
|
|
2885
2941
|
unaliased: true;
|
|
2886
2942
|
value: string;
|
|
2943
|
+
}> | Readonly<{
|
|
2944
|
+
descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
2945
|
+
key: "meta";
|
|
2946
|
+
localId: "meta";
|
|
2947
|
+
ownerName: "codeBlock";
|
|
2948
|
+
placement: "element";
|
|
2949
|
+
unaliased: true;
|
|
2950
|
+
value: string;
|
|
2887
2951
|
}>;
|
|
2888
2952
|
readonly schema: {
|
|
2889
2953
|
readonly element: {
|
|
@@ -2910,6 +2974,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2910
2974
|
readonly ownsExit: true;
|
|
2911
2975
|
readonly properties: {
|
|
2912
2976
|
language: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
2977
|
+
meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
2913
2978
|
};
|
|
2914
2979
|
readonly slice: {
|
|
2915
2980
|
readonly preserveContext: true;
|
|
@@ -2930,6 +2995,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2930
2995
|
type: "codeBlock";
|
|
2931
2996
|
}> & Readonly<{} & {
|
|
2932
2997
|
language?: string | undefined;
|
|
2998
|
+
meta?: string | undefined;
|
|
2933
2999
|
}>>;
|
|
2934
3000
|
} | undefined;
|
|
2935
3001
|
readonly indentDepth: () => number;
|
|
@@ -2942,6 +3008,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2942
3008
|
type: "codeBlock";
|
|
2943
3009
|
}> & Readonly<{} & {
|
|
2944
3010
|
language?: string | undefined;
|
|
3011
|
+
meta?: string | undefined;
|
|
2945
3012
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
2946
3013
|
text: string;
|
|
2947
3014
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -2950,6 +3017,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2950
3017
|
type: "codeBlock";
|
|
2951
3018
|
}> & Readonly<{} & {
|
|
2952
3019
|
language?: string | undefined;
|
|
3020
|
+
meta?: string | undefined;
|
|
2953
3021
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
|
|
2954
3022
|
readonly resetBlock: () => boolean;
|
|
2955
3023
|
readonly selectAll: () => boolean;
|
|
@@ -2964,6 +3032,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2964
3032
|
type: "codeBlock";
|
|
2965
3033
|
}> & Readonly<{} & {
|
|
2966
3034
|
language?: string | undefined;
|
|
3035
|
+
meta?: string | undefined;
|
|
2967
3036
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
2968
3037
|
text: string;
|
|
2969
3038
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -2972,6 +3041,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
2972
3041
|
type: "codeBlock";
|
|
2973
3042
|
}> & Readonly<{} & {
|
|
2974
3043
|
language?: string | undefined;
|
|
3044
|
+
meta?: string | undefined;
|
|
2975
3045
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
|
|
2976
3046
|
};
|
|
2977
3047
|
}>> & Readonly<Record<never, never>>, "~schema.plugins">];
|
|
@@ -3015,6 +3085,14 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
3015
3085
|
placement: "element";
|
|
3016
3086
|
unaliased: true;
|
|
3017
3087
|
value: string;
|
|
3088
|
+
}> | Readonly<{
|
|
3089
|
+
descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
3090
|
+
key: "meta";
|
|
3091
|
+
localId: "meta";
|
|
3092
|
+
ownerName: "codeBlock";
|
|
3093
|
+
placement: "element";
|
|
3094
|
+
unaliased: true;
|
|
3095
|
+
value: string;
|
|
3018
3096
|
}>;
|
|
3019
3097
|
readonly schema: {
|
|
3020
3098
|
readonly element: {
|
|
@@ -3041,6 +3119,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
3041
3119
|
readonly ownsExit: true;
|
|
3042
3120
|
readonly properties: {
|
|
3043
3121
|
language: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
3122
|
+
meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
3044
3123
|
};
|
|
3045
3124
|
readonly slice: {
|
|
3046
3125
|
readonly preserveContext: true;
|
|
@@ -3061,6 +3140,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
3061
3140
|
type: "codeBlock";
|
|
3062
3141
|
}> & Readonly<{} & {
|
|
3063
3142
|
language?: string | undefined;
|
|
3143
|
+
meta?: string | undefined;
|
|
3064
3144
|
}>>;
|
|
3065
3145
|
} | undefined;
|
|
3066
3146
|
readonly indentDepth: () => number;
|
|
@@ -3073,6 +3153,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
3073
3153
|
type: "codeBlock";
|
|
3074
3154
|
}> & Readonly<{} & {
|
|
3075
3155
|
language?: string | undefined;
|
|
3156
|
+
meta?: string | undefined;
|
|
3076
3157
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
3077
3158
|
text: string;
|
|
3078
3159
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -3081,6 +3162,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
3081
3162
|
type: "codeBlock";
|
|
3082
3163
|
}> & Readonly<{} & {
|
|
3083
3164
|
language?: string | undefined;
|
|
3165
|
+
meta?: string | undefined;
|
|
3084
3166
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
|
|
3085
3167
|
readonly resetBlock: () => boolean;
|
|
3086
3168
|
readonly selectAll: () => boolean;
|
|
@@ -3095,6 +3177,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
3095
3177
|
type: "codeBlock";
|
|
3096
3178
|
}> & Readonly<{} & {
|
|
3097
3179
|
language?: string | undefined;
|
|
3180
|
+
meta?: string | undefined;
|
|
3098
3181
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
3099
3182
|
text: string;
|
|
3100
3183
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -3103,6 +3186,7 @@ declare const CodeHighlightPlugin: Plugin<Omit<Readonly<{
|
|
|
3103
3186
|
type: "codeBlock";
|
|
3104
3187
|
}> & Readonly<{} & {
|
|
3105
3188
|
language?: string | undefined;
|
|
3189
|
+
meta?: string | undefined;
|
|
3106
3190
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
|
|
3107
3191
|
};
|
|
3108
3192
|
}>>];
|
|
@@ -3128,6 +3212,9 @@ declare const IndentPlugin: Plugin<Readonly<{
|
|
|
3128
3212
|
}>, Readonly<{
|
|
3129
3213
|
kind: 'types';
|
|
3130
3214
|
types: readonly string[];
|
|
3215
|
+
}>, Readonly<{
|
|
3216
|
+
key: string;
|
|
3217
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
3131
3218
|
}>>;
|
|
3132
3219
|
};
|
|
3133
3220
|
};
|
|
@@ -3304,6 +3391,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
3304
3391
|
}>, Readonly<{
|
|
3305
3392
|
kind: 'types';
|
|
3306
3393
|
types: readonly string[];
|
|
3394
|
+
}>, Readonly<{
|
|
3395
|
+
key: string;
|
|
3396
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
3307
3397
|
}>>;
|
|
3308
3398
|
};
|
|
3309
3399
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -3372,6 +3462,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
3372
3462
|
}>, Readonly<{
|
|
3373
3463
|
kind: 'types';
|
|
3374
3464
|
types: readonly string[];
|
|
3465
|
+
}>, Readonly<{
|
|
3466
|
+
key: string;
|
|
3467
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
3375
3468
|
}>>;
|
|
3376
3469
|
};
|
|
3377
3470
|
};
|
|
@@ -3534,6 +3627,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
3534
3627
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
3535
3628
|
kind: 'types';
|
|
3536
3629
|
types: readonly string[];
|
|
3630
|
+
}>, Readonly<{
|
|
3631
|
+
key: string;
|
|
3632
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
3537
3633
|
}>>;
|
|
3538
3634
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
3539
3635
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -3541,6 +3637,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
3541
3637
|
}>, Readonly<{
|
|
3542
3638
|
kind: 'types';
|
|
3543
3639
|
types: readonly string[];
|
|
3640
|
+
}>, Readonly<{
|
|
3641
|
+
key: string;
|
|
3642
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
3544
3643
|
}>>;
|
|
3545
3644
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
3546
3645
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -3548,10 +3647,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
3548
3647
|
}>, Readonly<{
|
|
3549
3648
|
kind: 'types';
|
|
3550
3649
|
types: readonly string[];
|
|
3650
|
+
}>, Readonly<{
|
|
3651
|
+
key: string;
|
|
3652
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
3551
3653
|
}>>;
|
|
3552
3654
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
3553
3655
|
kind: 'types';
|
|
3554
3656
|
types: readonly string[];
|
|
3657
|
+
}>, Readonly<{
|
|
3658
|
+
key: string;
|
|
3659
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
3555
3660
|
}>>;
|
|
3556
3661
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
3557
3662
|
label?: string;
|
|
@@ -3583,14 +3688,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
3583
3688
|
}>>, Readonly<{
|
|
3584
3689
|
kind: 'types';
|
|
3585
3690
|
types: readonly string[];
|
|
3691
|
+
}>, Readonly<{
|
|
3692
|
+
key: string;
|
|
3693
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
3694
|
+
label?: string;
|
|
3695
|
+
restartAfter?: number;
|
|
3696
|
+
start?: number;
|
|
3697
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
3698
|
+
label?: string;
|
|
3699
|
+
restartAfter?: number;
|
|
3700
|
+
start?: number;
|
|
3701
|
+
}>>>;
|
|
3586
3702
|
}>>;
|
|
3587
3703
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
3588
3704
|
kind: 'types';
|
|
3589
3705
|
types: readonly string[];
|
|
3706
|
+
}>, Readonly<{
|
|
3707
|
+
key: string;
|
|
3708
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
3590
3709
|
}>>;
|
|
3591
3710
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
3592
3711
|
kind: 'types';
|
|
3593
3712
|
types: readonly string[];
|
|
3713
|
+
}>, Readonly<{
|
|
3714
|
+
key: string;
|
|
3715
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
3594
3716
|
}>>;
|
|
3595
3717
|
};
|
|
3596
3718
|
};
|
|
@@ -3700,6 +3822,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
3700
3822
|
}>, Readonly<{
|
|
3701
3823
|
kind: 'types';
|
|
3702
3824
|
types: readonly string[];
|
|
3825
|
+
}>, Readonly<{
|
|
3826
|
+
key: string;
|
|
3827
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
3703
3828
|
}>>;
|
|
3704
3829
|
};
|
|
3705
3830
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -3768,6 +3893,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
3768
3893
|
}>, Readonly<{
|
|
3769
3894
|
kind: 'types';
|
|
3770
3895
|
types: readonly string[];
|
|
3896
|
+
}>, Readonly<{
|
|
3897
|
+
key: string;
|
|
3898
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
3771
3899
|
}>>;
|
|
3772
3900
|
};
|
|
3773
3901
|
};
|
|
@@ -3930,6 +4058,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
3930
4058
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
3931
4059
|
kind: 'types';
|
|
3932
4060
|
types: readonly string[];
|
|
4061
|
+
}>, Readonly<{
|
|
4062
|
+
key: string;
|
|
4063
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
3933
4064
|
}>>;
|
|
3934
4065
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
3935
4066
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -3937,6 +4068,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
3937
4068
|
}>, Readonly<{
|
|
3938
4069
|
kind: 'types';
|
|
3939
4070
|
types: readonly string[];
|
|
4071
|
+
}>, Readonly<{
|
|
4072
|
+
key: string;
|
|
4073
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
3940
4074
|
}>>;
|
|
3941
4075
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
3942
4076
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -3944,10 +4078,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
3944
4078
|
}>, Readonly<{
|
|
3945
4079
|
kind: 'types';
|
|
3946
4080
|
types: readonly string[];
|
|
4081
|
+
}>, Readonly<{
|
|
4082
|
+
key: string;
|
|
4083
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
3947
4084
|
}>>;
|
|
3948
4085
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
3949
4086
|
kind: 'types';
|
|
3950
4087
|
types: readonly string[];
|
|
4088
|
+
}>, Readonly<{
|
|
4089
|
+
key: string;
|
|
4090
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
3951
4091
|
}>>;
|
|
3952
4092
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
3953
4093
|
label?: string;
|
|
@@ -3979,14 +4119,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
3979
4119
|
}>>, Readonly<{
|
|
3980
4120
|
kind: 'types';
|
|
3981
4121
|
types: readonly string[];
|
|
4122
|
+
}>, Readonly<{
|
|
4123
|
+
key: string;
|
|
4124
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
4125
|
+
label?: string;
|
|
4126
|
+
restartAfter?: number;
|
|
4127
|
+
start?: number;
|
|
4128
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
4129
|
+
label?: string;
|
|
4130
|
+
restartAfter?: number;
|
|
4131
|
+
start?: number;
|
|
4132
|
+
}>>>;
|
|
3982
4133
|
}>>;
|
|
3983
4134
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
3984
4135
|
kind: 'types';
|
|
3985
4136
|
types: readonly string[];
|
|
4137
|
+
}>, Readonly<{
|
|
4138
|
+
key: string;
|
|
4139
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
3986
4140
|
}>>;
|
|
3987
4141
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
3988
4142
|
kind: 'types';
|
|
3989
4143
|
types: readonly string[];
|
|
4144
|
+
}>, Readonly<{
|
|
4145
|
+
key: string;
|
|
4146
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
3990
4147
|
}>>;
|
|
3991
4148
|
};
|
|
3992
4149
|
};
|
|
@@ -4096,6 +4253,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4096
4253
|
}>, Readonly<{
|
|
4097
4254
|
kind: 'types';
|
|
4098
4255
|
types: readonly string[];
|
|
4256
|
+
}>, Readonly<{
|
|
4257
|
+
key: string;
|
|
4258
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
4099
4259
|
}>>;
|
|
4100
4260
|
};
|
|
4101
4261
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -4164,6 +4324,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4164
4324
|
}>, Readonly<{
|
|
4165
4325
|
kind: 'types';
|
|
4166
4326
|
types: readonly string[];
|
|
4327
|
+
}>, Readonly<{
|
|
4328
|
+
key: string;
|
|
4329
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
4167
4330
|
}>>;
|
|
4168
4331
|
};
|
|
4169
4332
|
};
|
|
@@ -4326,6 +4489,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4326
4489
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
4327
4490
|
kind: 'types';
|
|
4328
4491
|
types: readonly string[];
|
|
4492
|
+
}>, Readonly<{
|
|
4493
|
+
key: string;
|
|
4494
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
4329
4495
|
}>>;
|
|
4330
4496
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
4331
4497
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -4333,6 +4499,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4333
4499
|
}>, Readonly<{
|
|
4334
4500
|
kind: 'types';
|
|
4335
4501
|
types: readonly string[];
|
|
4502
|
+
}>, Readonly<{
|
|
4503
|
+
key: string;
|
|
4504
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
4336
4505
|
}>>;
|
|
4337
4506
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
4338
4507
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -4340,10 +4509,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4340
4509
|
}>, Readonly<{
|
|
4341
4510
|
kind: 'types';
|
|
4342
4511
|
types: readonly string[];
|
|
4512
|
+
}>, Readonly<{
|
|
4513
|
+
key: string;
|
|
4514
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
4343
4515
|
}>>;
|
|
4344
4516
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
4345
4517
|
kind: 'types';
|
|
4346
4518
|
types: readonly string[];
|
|
4519
|
+
}>, Readonly<{
|
|
4520
|
+
key: string;
|
|
4521
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
4347
4522
|
}>>;
|
|
4348
4523
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
4349
4524
|
label?: string;
|
|
@@ -4375,14 +4550,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4375
4550
|
}>>, Readonly<{
|
|
4376
4551
|
kind: 'types';
|
|
4377
4552
|
types: readonly string[];
|
|
4553
|
+
}>, Readonly<{
|
|
4554
|
+
key: string;
|
|
4555
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
4556
|
+
label?: string;
|
|
4557
|
+
restartAfter?: number;
|
|
4558
|
+
start?: number;
|
|
4559
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
4560
|
+
label?: string;
|
|
4561
|
+
restartAfter?: number;
|
|
4562
|
+
start?: number;
|
|
4563
|
+
}>>>;
|
|
4378
4564
|
}>>;
|
|
4379
4565
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
4380
4566
|
kind: 'types';
|
|
4381
4567
|
types: readonly string[];
|
|
4568
|
+
}>, Readonly<{
|
|
4569
|
+
key: string;
|
|
4570
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
4382
4571
|
}>>;
|
|
4383
4572
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
4384
4573
|
kind: 'types';
|
|
4385
4574
|
types: readonly string[];
|
|
4575
|
+
}>, Readonly<{
|
|
4576
|
+
key: string;
|
|
4577
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
4386
4578
|
}>>;
|
|
4387
4579
|
};
|
|
4388
4580
|
};
|
|
@@ -4494,6 +4686,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4494
4686
|
}>, Readonly<{
|
|
4495
4687
|
kind: 'types';
|
|
4496
4688
|
types: readonly string[];
|
|
4689
|
+
}>, Readonly<{
|
|
4690
|
+
key: string;
|
|
4691
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
4497
4692
|
}>>;
|
|
4498
4693
|
};
|
|
4499
4694
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -4562,6 +4757,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4562
4757
|
}>, Readonly<{
|
|
4563
4758
|
kind: 'types';
|
|
4564
4759
|
types: readonly string[];
|
|
4760
|
+
}>, Readonly<{
|
|
4761
|
+
key: string;
|
|
4762
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
4565
4763
|
}>>;
|
|
4566
4764
|
};
|
|
4567
4765
|
};
|
|
@@ -4724,6 +4922,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4724
4922
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
4725
4923
|
kind: 'types';
|
|
4726
4924
|
types: readonly string[];
|
|
4925
|
+
}>, Readonly<{
|
|
4926
|
+
key: string;
|
|
4927
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
4727
4928
|
}>>;
|
|
4728
4929
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
4729
4930
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -4731,6 +4932,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4731
4932
|
}>, Readonly<{
|
|
4732
4933
|
kind: 'types';
|
|
4733
4934
|
types: readonly string[];
|
|
4935
|
+
}>, Readonly<{
|
|
4936
|
+
key: string;
|
|
4937
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
4734
4938
|
}>>;
|
|
4735
4939
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
4736
4940
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -4738,10 +4942,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4738
4942
|
}>, Readonly<{
|
|
4739
4943
|
kind: 'types';
|
|
4740
4944
|
types: readonly string[];
|
|
4945
|
+
}>, Readonly<{
|
|
4946
|
+
key: string;
|
|
4947
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
4741
4948
|
}>>;
|
|
4742
4949
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
4743
4950
|
kind: 'types';
|
|
4744
4951
|
types: readonly string[];
|
|
4952
|
+
}>, Readonly<{
|
|
4953
|
+
key: string;
|
|
4954
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
4745
4955
|
}>>;
|
|
4746
4956
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
4747
4957
|
label?: string;
|
|
@@ -4773,14 +4983,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4773
4983
|
}>>, Readonly<{
|
|
4774
4984
|
kind: 'types';
|
|
4775
4985
|
types: readonly string[];
|
|
4986
|
+
}>, Readonly<{
|
|
4987
|
+
key: string;
|
|
4988
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
4989
|
+
label?: string;
|
|
4990
|
+
restartAfter?: number;
|
|
4991
|
+
start?: number;
|
|
4992
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
4993
|
+
label?: string;
|
|
4994
|
+
restartAfter?: number;
|
|
4995
|
+
start?: number;
|
|
4996
|
+
}>>>;
|
|
4776
4997
|
}>>;
|
|
4777
4998
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
4778
4999
|
kind: 'types';
|
|
4779
5000
|
types: readonly string[];
|
|
5001
|
+
}>, Readonly<{
|
|
5002
|
+
key: string;
|
|
5003
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
4780
5004
|
}>>;
|
|
4781
5005
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
4782
5006
|
kind: 'types';
|
|
4783
5007
|
types: readonly string[];
|
|
5008
|
+
}>, Readonly<{
|
|
5009
|
+
key: string;
|
|
5010
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
4784
5011
|
}>>;
|
|
4785
5012
|
};
|
|
4786
5013
|
};
|
|
@@ -4890,6 +5117,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4890
5117
|
}>, Readonly<{
|
|
4891
5118
|
kind: 'types';
|
|
4892
5119
|
types: readonly string[];
|
|
5120
|
+
}>, Readonly<{
|
|
5121
|
+
key: string;
|
|
5122
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
4893
5123
|
}>>;
|
|
4894
5124
|
};
|
|
4895
5125
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -4958,6 +5188,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
4958
5188
|
}>, Readonly<{
|
|
4959
5189
|
kind: 'types';
|
|
4960
5190
|
types: readonly string[];
|
|
5191
|
+
}>, Readonly<{
|
|
5192
|
+
key: string;
|
|
5193
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
4961
5194
|
}>>;
|
|
4962
5195
|
};
|
|
4963
5196
|
};
|
|
@@ -5120,6 +5353,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5120
5353
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
5121
5354
|
kind: 'types';
|
|
5122
5355
|
types: readonly string[];
|
|
5356
|
+
}>, Readonly<{
|
|
5357
|
+
key: string;
|
|
5358
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
5123
5359
|
}>>;
|
|
5124
5360
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
5125
5361
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -5127,6 +5363,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5127
5363
|
}>, Readonly<{
|
|
5128
5364
|
kind: 'types';
|
|
5129
5365
|
types: readonly string[];
|
|
5366
|
+
}>, Readonly<{
|
|
5367
|
+
key: string;
|
|
5368
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5130
5369
|
}>>;
|
|
5131
5370
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
5132
5371
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -5134,10 +5373,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5134
5373
|
}>, Readonly<{
|
|
5135
5374
|
kind: 'types';
|
|
5136
5375
|
types: readonly string[];
|
|
5376
|
+
}>, Readonly<{
|
|
5377
|
+
key: string;
|
|
5378
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5137
5379
|
}>>;
|
|
5138
5380
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
5139
5381
|
kind: 'types';
|
|
5140
5382
|
types: readonly string[];
|
|
5383
|
+
}>, Readonly<{
|
|
5384
|
+
key: string;
|
|
5385
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
5141
5386
|
}>>;
|
|
5142
5387
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
5143
5388
|
label?: string;
|
|
@@ -5169,14 +5414,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5169
5414
|
}>>, Readonly<{
|
|
5170
5415
|
kind: 'types';
|
|
5171
5416
|
types: readonly string[];
|
|
5417
|
+
}>, Readonly<{
|
|
5418
|
+
key: string;
|
|
5419
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
5420
|
+
label?: string;
|
|
5421
|
+
restartAfter?: number;
|
|
5422
|
+
start?: number;
|
|
5423
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
5424
|
+
label?: string;
|
|
5425
|
+
restartAfter?: number;
|
|
5426
|
+
start?: number;
|
|
5427
|
+
}>>>;
|
|
5172
5428
|
}>>;
|
|
5173
5429
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
5174
5430
|
kind: 'types';
|
|
5175
5431
|
types: readonly string[];
|
|
5432
|
+
}>, Readonly<{
|
|
5433
|
+
key: string;
|
|
5434
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
5176
5435
|
}>>;
|
|
5177
5436
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
5178
5437
|
kind: 'types';
|
|
5179
5438
|
types: readonly string[];
|
|
5439
|
+
}>, Readonly<{
|
|
5440
|
+
key: string;
|
|
5441
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
5180
5442
|
}>>;
|
|
5181
5443
|
};
|
|
5182
5444
|
};
|
|
@@ -5290,6 +5552,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5290
5552
|
}>, Readonly<{
|
|
5291
5553
|
kind: 'types';
|
|
5292
5554
|
types: readonly string[];
|
|
5555
|
+
}>, Readonly<{
|
|
5556
|
+
key: string;
|
|
5557
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5293
5558
|
}>>;
|
|
5294
5559
|
};
|
|
5295
5560
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -5358,6 +5623,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5358
5623
|
}>, Readonly<{
|
|
5359
5624
|
kind: 'types';
|
|
5360
5625
|
types: readonly string[];
|
|
5626
|
+
}>, Readonly<{
|
|
5627
|
+
key: string;
|
|
5628
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5361
5629
|
}>>;
|
|
5362
5630
|
};
|
|
5363
5631
|
};
|
|
@@ -5520,6 +5788,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5520
5788
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
5521
5789
|
kind: 'types';
|
|
5522
5790
|
types: readonly string[];
|
|
5791
|
+
}>, Readonly<{
|
|
5792
|
+
key: string;
|
|
5793
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
5523
5794
|
}>>;
|
|
5524
5795
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
5525
5796
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -5527,6 +5798,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5527
5798
|
}>, Readonly<{
|
|
5528
5799
|
kind: 'types';
|
|
5529
5800
|
types: readonly string[];
|
|
5801
|
+
}>, Readonly<{
|
|
5802
|
+
key: string;
|
|
5803
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5530
5804
|
}>>;
|
|
5531
5805
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
5532
5806
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -5534,10 +5808,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5534
5808
|
}>, Readonly<{
|
|
5535
5809
|
kind: 'types';
|
|
5536
5810
|
types: readonly string[];
|
|
5811
|
+
}>, Readonly<{
|
|
5812
|
+
key: string;
|
|
5813
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5537
5814
|
}>>;
|
|
5538
5815
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
5539
5816
|
kind: 'types';
|
|
5540
5817
|
types: readonly string[];
|
|
5818
|
+
}>, Readonly<{
|
|
5819
|
+
key: string;
|
|
5820
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
5541
5821
|
}>>;
|
|
5542
5822
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
5543
5823
|
label?: string;
|
|
@@ -5569,14 +5849,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5569
5849
|
}>>, Readonly<{
|
|
5570
5850
|
kind: 'types';
|
|
5571
5851
|
types: readonly string[];
|
|
5852
|
+
}>, Readonly<{
|
|
5853
|
+
key: string;
|
|
5854
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
5855
|
+
label?: string;
|
|
5856
|
+
restartAfter?: number;
|
|
5857
|
+
start?: number;
|
|
5858
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
5859
|
+
label?: string;
|
|
5860
|
+
restartAfter?: number;
|
|
5861
|
+
start?: number;
|
|
5862
|
+
}>>>;
|
|
5572
5863
|
}>>;
|
|
5573
5864
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
5574
5865
|
kind: 'types';
|
|
5575
5866
|
types: readonly string[];
|
|
5867
|
+
}>, Readonly<{
|
|
5868
|
+
key: string;
|
|
5869
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
5576
5870
|
}>>;
|
|
5577
5871
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
5578
5872
|
kind: 'types';
|
|
5579
5873
|
types: readonly string[];
|
|
5874
|
+
}>, Readonly<{
|
|
5875
|
+
key: string;
|
|
5876
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
5580
5877
|
}>>;
|
|
5581
5878
|
};
|
|
5582
5879
|
};
|
|
@@ -5686,6 +5983,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5686
5983
|
}>, Readonly<{
|
|
5687
5984
|
kind: 'types';
|
|
5688
5985
|
types: readonly string[];
|
|
5986
|
+
}>, Readonly<{
|
|
5987
|
+
key: string;
|
|
5988
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5689
5989
|
}>>;
|
|
5690
5990
|
};
|
|
5691
5991
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -5754,6 +6054,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5754
6054
|
}>, Readonly<{
|
|
5755
6055
|
kind: 'types';
|
|
5756
6056
|
types: readonly string[];
|
|
6057
|
+
}>, Readonly<{
|
|
6058
|
+
key: string;
|
|
6059
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5757
6060
|
}>>;
|
|
5758
6061
|
};
|
|
5759
6062
|
};
|
|
@@ -5916,6 +6219,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5916
6219
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
5917
6220
|
kind: 'types';
|
|
5918
6221
|
types: readonly string[];
|
|
6222
|
+
}>, Readonly<{
|
|
6223
|
+
key: string;
|
|
6224
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
5919
6225
|
}>>;
|
|
5920
6226
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
5921
6227
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -5923,6 +6229,9 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5923
6229
|
}>, Readonly<{
|
|
5924
6230
|
kind: 'types';
|
|
5925
6231
|
types: readonly string[];
|
|
6232
|
+
}>, Readonly<{
|
|
6233
|
+
key: string;
|
|
6234
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5926
6235
|
}>>;
|
|
5927
6236
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
5928
6237
|
readonly validate: (value: unknown) => value is number;
|
|
@@ -5930,10 +6239,16 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5930
6239
|
}>, Readonly<{
|
|
5931
6240
|
kind: 'types';
|
|
5932
6241
|
types: readonly string[];
|
|
6242
|
+
}>, Readonly<{
|
|
6243
|
+
key: string;
|
|
6244
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5933
6245
|
}>>;
|
|
5934
6246
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
5935
6247
|
kind: 'types';
|
|
5936
6248
|
types: readonly string[];
|
|
6249
|
+
}>, Readonly<{
|
|
6250
|
+
key: string;
|
|
6251
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
5937
6252
|
}>>;
|
|
5938
6253
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
5939
6254
|
label?: string;
|
|
@@ -5965,14 +6280,31 @@ declare const ListPlugin: InternalPluginAuthorExtension<InternalReactPluginAdapt
|
|
|
5965
6280
|
}>>, Readonly<{
|
|
5966
6281
|
kind: 'types';
|
|
5967
6282
|
types: readonly string[];
|
|
6283
|
+
}>, Readonly<{
|
|
6284
|
+
key: string;
|
|
6285
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
6286
|
+
label?: string;
|
|
6287
|
+
restartAfter?: number;
|
|
6288
|
+
start?: number;
|
|
6289
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
6290
|
+
label?: string;
|
|
6291
|
+
restartAfter?: number;
|
|
6292
|
+
start?: number;
|
|
6293
|
+
}>>>;
|
|
5968
6294
|
}>>;
|
|
5969
6295
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
5970
6296
|
kind: 'types';
|
|
5971
6297
|
types: readonly string[];
|
|
6298
|
+
}>, Readonly<{
|
|
6299
|
+
key: string;
|
|
6300
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
5972
6301
|
}>>;
|
|
5973
6302
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
5974
6303
|
kind: 'types';
|
|
5975
6304
|
types: readonly string[];
|
|
6305
|
+
}>, Readonly<{
|
|
6306
|
+
key: string;
|
|
6307
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
5976
6308
|
}>>;
|
|
5977
6309
|
};
|
|
5978
6310
|
};
|
|
@@ -6184,4 +6516,4 @@ type InternalReactEditorWithInstalledPlugins<V extends Value, D, S = D, TRuntime
|
|
|
6184
6516
|
};
|
|
6185
6517
|
/** Editor selected by value, runtime plugins, Plate plugins, and schema. */
|
|
6186
6518
|
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 {
|
|
6519
|
+
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 };
|