platejs 54.0.0-beta.3 → 54.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AIChatRequestContext-DY104TqL.d.ts → AIChatRequestContext-DrUahdTc.d.ts} +2 -2
- package/dist/{BaseSuggestionPlugin-Deo6n6Fs.d.ts → BaseSuggestionPlugin-_7Ka6nY3.d.ts} +4 -4
- package/dist/{PlateStatic-CJX5bKuv.d.ts → PlateStatic-D3Cb-QwH.d.ts} +3 -3
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/react/index.d.ts +9 -9
- package/dist/authored/index.d.ts +3 -3
- package/dist/code-block/codemirror/index.d.ts +1 -1
- package/dist/{combobox-DAOYWuvC.d.ts → combobox-Dr0OYZIE.d.ts} +2 -2
- package/dist/{comparison-types-Dt-unJZY-DCddmbSD.d.ts → comparison-types-DdwE6mYq-BogsHoUO.d.ts} +1 -1
- package/dist/compiler/index.d.ts +2 -2
- package/dist/{core-ClHasORr.d.ts → core-BqR-fEDp.d.ts} +65 -26
- package/dist/diff/index.d.ts +2 -2
- package/dist/docs/api/core/plate-controller.md +1 -1
- package/dist/docs/api/core.md +45 -5
- package/dist/docs/api/dom.md +4 -7
- package/dist/docs/api/react-hooks.md +40 -22
- package/dist/docs/authored-changes.md +4 -2
- package/dist/docs/block-placeholder.md +4 -2
- package/dist/docs/board.md +57 -4
- package/dist/docs/comment.md +2 -2
- package/dist/docs/document-model.md +15 -3
- package/dist/docs/editor.md +50 -4
- package/dist/docs/llms.txt +1 -1
- package/dist/docs/markdown.md +97 -9
- package/dist/docs/plugin-input-rules.md +62 -3
- package/dist/docx/export/index.d.ts +3 -3
- package/dist/docx/export/lib/exportDocx.js +18 -13
- package/dist/docx/export/lib/internal/xml-builder.js +11 -16
- package/dist/docx/export/lib/reviewProjection.js +43 -3
- 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 -1
- package/dist/excalidraw/index.d.ts +3 -3
- package/dist/excalidraw/react/index.d.ts +3 -3
- package/dist/facade.js +2 -2
- package/dist/features/board/index.d.ts +1 -1
- package/dist/features/callout/index.d.ts +3 -3
- package/dist/features/combobox/index.d.ts +2 -2
- package/dist/features/comments/BaseCommentsPlugin.js +33 -17
- package/dist/features/comments/index.d.ts +1 -1
- package/dist/features/date/index.d.ts +3 -3
- package/dist/features/details/index.d.ts +3 -3
- package/dist/features/details/lib/BaseDetailsPlugin.js +15 -2
- package/dist/features/field/index.d.ts +2 -2
- package/dist/features/field/index.js +4 -2
- package/dist/features/field/lib/BaseFieldPlugin.js +51 -105
- package/dist/features/field/lib/applyFieldValues.js +188 -0
- package/dist/features/field/lib/fieldRules.internal.js +169 -7
- package/dist/features/find/index.d.ts +3 -3
- package/dist/features/footnote/index.d.ts +1 -1
- package/dist/features/ink/index.d.ts +1 -1
- package/dist/features/ink/lib/inkGone.internal.js +6 -6
- package/dist/features/ink/lib/inkPlaces.internal.js +8 -9
- package/dist/features/layout/index.d.ts +1 -1
- package/dist/features/lint/index.d.ts +3 -3
- package/dist/features/media/index.d.ts +2 -2
- package/dist/features/media/index.js +2 -2
- package/dist/features/media/lib/media-embed/BaseMediaEmbedPlugin.js +200 -2
- package/dist/features/mention/index.d.ts +5 -5
- 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 +50 -7
- package/dist/features/toc/index.d.ts +1 -1
- package/dist/features/upload/index.d.ts +1 -1
- 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-cg_cWsaN.d.ts → htmlTypes-eT2ZGDAj.d.ts} +1 -1
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/{index-D3-2iM1b.d.ts → index-B33E1CRJ.d.ts} +291 -4
- package/dist/{index-DKOFvteF.d.ts → index-B7moSod7.d.ts} +1 -1
- package/dist/{index-C9DiGDVj.d.ts → index-B8-5Sr7I.d.ts} +2 -2
- package/dist/{index-CzLwBZpY.d.ts → index-B8QJDAmG.d.ts} +2 -2
- package/dist/{index-Cmuluh6f.d.ts → index-BTx5oK7k.d.ts} +1 -1
- package/dist/{index-DPWyk3lG-DOYwohXO.d.ts → index-BWPcE4ac-Cto_IsNs.d.ts} +7 -1
- package/dist/{index-DpltOCot-A2b3p3Eb.d.ts → index-BXjLmx1n-CXk17buG.d.ts} +75 -27
- package/dist/{index-C6ql9pKw.d.ts → index-BXwU9QH6.d.ts} +2 -2
- package/dist/{index-CLsEe3LY.d.ts → index-BkwR-5hH.d.ts} +3 -3
- package/dist/{index-BZWFoUXt.d.ts → index-BsV2McRr.d.ts} +5 -5
- package/dist/{index-DQnjqtQa.d.ts → index-C9Fu-P4E.d.ts} +116 -21
- package/dist/{index-oIJAZxc2.d.ts → index-Ca48r1ng.d.ts} +3 -3
- package/dist/{index-Do9pj1GK.d.ts → index-Cob_iBdu.d.ts} +47 -6
- package/dist/{index-C1_JIhL4.d.ts → index-CpY7Xnxw.d.ts} +4 -4
- package/dist/{index-baQOK89E.d.ts → index-DNQXzU-X.d.ts} +1 -1
- package/dist/{index-8WO2vI0U.d.ts → index-DPowErHa.d.ts} +18 -20
- package/dist/{index-B5mYEawV.d.ts → index-DShbzec2.d.ts} +5 -6
- package/dist/{index-C35V_hj0.d.ts → index-DYdObeFQ.d.ts} +3 -3
- package/dist/{index-HPYawTae-BCUQLEWF.d.ts → index-Dq3Jlj8O-BJ6NxZm0.d.ts} +1 -1
- package/dist/{index-CdOLsPaW.d.ts → index-DwWQVwQt.d.ts} +3 -5
- package/dist/{index-r7yb77Wy.d.ts → index-JWgwL5l3.d.ts} +5 -3
- package/dist/{index-CktYvOgk.d.ts → index-M781pyx9.d.ts} +4 -4
- package/dist/{index-C0POz7rg.d.ts → index-d7io3MzC.d.ts} +3 -3
- package/dist/index.d.ts +4 -4
- package/dist/lib/plugins/element-id/ElementIdPlugin.js +6 -16
- package/dist/lib/plugins/input-rules/InputRulesPlugin.js +73 -14
- package/dist/markdown/index.d.ts +2 -2
- package/dist/markdown/index.js +2 -1
- package/dist/markdown/lib/MarkdownPlugin.js +8 -12
- package/dist/markdown/lib/RawHtmlPlugin.js +4 -2
- package/dist/markdown/lib/internal/markdownConversion.js +7 -4
- package/dist/markdown/lib/internal/markdownFootnoteWriter.js +35 -0
- package/dist/markdown/lib/internal/markdownRawHtml.js +40 -1
- package/dist/markdown/lib/internal/markdownTags.js +7 -1
- package/dist/math/index.d.ts +3 -3
- package/dist/math/react/index.d.ts +4 -4
- package/dist/migrations/index.d.ts +3 -3
- package/dist/migrations/migratePlateV54.js +4 -6
- package/dist/migrations/migratePlateV54RetiredMarks.internal.js +23 -8
- package/dist/migrations/migratePlateV54Suggestions.internal.js +2 -2
- package/dist/migrations/v53-manifest.internal.js +4 -0
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/react/index.d.ts +2 -2
- package/dist/react/components/EditorContentView.internal.js +26 -16
- package/dist/react/components/Plate.js +13 -20
- package/dist/react/features/board/boardExport.internal.js +470 -0
- package/dist/react/features/board/boardPictureStyles.internal.js +415 -0
- package/dist/react/features/board/boardView.internal.js +11 -6
- package/dist/react/features/board/index.d.ts +50 -6
- package/dist/react/features/callout/index.d.ts +3 -3
- package/dist/react/features/combobox/index.d.ts +5 -5
- package/dist/react/features/comments/index.d.ts +6 -6
- package/dist/react/features/date/index.d.ts +4 -4
- package/dist/react/features/details/index.d.ts +4 -4
- package/dist/react/features/field/FieldPlugin.js +5 -4
- package/dist/react/features/field/index.d.ts +19 -16
- package/dist/react/features/footnote/index.d.ts +7 -7
- package/dist/react/features/format-painter/index.d.ts +4 -4
- package/dist/react/features/ink/index.d.ts +5 -9
- package/dist/react/features/ink/inkPlacement.internal.js +2 -1
- package/dist/react/features/layout/index.d.ts +5 -5
- package/dist/react/features/media/index.d.ts +5 -5
- package/dist/react/features/mention/index.d.ts +6 -6
- package/dist/react/features/suggestion/index.d.ts +6 -6
- package/dist/react/features/table/index.d.ts +7 -6
- package/dist/react/features/table/useTableResize.js +10 -1
- package/dist/react/features/toc/index.d.ts +2 -2
- package/dist/react/features/upload/index.d.ts +5 -5
- package/dist/react/index.d.ts +6 -6
- package/dist/react/internal/plate-context.js +20 -11
- package/dist/react/stores/plate/useEditorSelector.js +22 -9
- package/dist/react/utils/BlockPlaceholderPlugin.js +5 -2
- package/dist/react/virtualized.d.ts +2 -2
- package/dist/{source-aUwpNnAw.d.ts → source-BGohy8vH.d.ts} +3 -3
- package/dist/static/index.d.ts +5 -5
- package/dist/tabbable/index.d.ts +1 -1
- package/dist/tabbable/react/index.d.ts +3 -3
- package/dist/testing/index.d.ts +2 -2
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/react/index.d.ts +5 -5
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { _ as BasePlugin } from "./core-
|
|
4
|
-
import { r as AnnotationChange } from "./index-
|
|
1
|
+
import { Ji as Location, ps as Range, su as Value, x as BaseRange } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import { _ as BasePlugin } from "./core-BqR-fEDp.js";
|
|
4
|
+
import { r as AnnotationChange } from "./index-BWPcE4ac-Cto_IsNs.js";
|
|
5
5
|
type CommentUser = Readonly<{
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Au as encodeEditorSelection, Cs as RootFactsJson, D as CarriedRun, Et as EditorEffect, Fc as Selection, J as DocumentChange, Pi as HistoryApi, Y as Editor, iu as TxDeclaredMethod, ku as encodeEditorEffect, oo as Plugin, ou as TxOnlyMethod, su as Value, zn as EditorSchemaIdentity, zo as PluginTypeProvider } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
2
|
interface Batch<_V extends Value = Value> {
|
|
3
3
|
/** Canonical change to apply when this batch is consumed. */
|
|
4
4
|
readonly change: DocumentChange;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { h as EditorApplicationSchema } from "./htmlTypes-
|
|
3
|
-
import { $ as PluginContributionCompatibility, $
|
|
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-
|
|
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-
|
|
1
|
+
import { $a as Path, $n as EditorSchemaSourceProvider, Ba as NodeTarget, Bo as PluginTypeProviderOf, Ca as NodeKey, Ci as Element$1, Ds as SchemaContentDefault, F as DecorationAttributes, Fc as Selection, Fi as HistoryOutcome, Fl as TransferApi, Fo as PluginReference, Ht as EditorJsonValue, I as DecorationRefresh, Ia as NodeSelection, Il as TransferCheck, Ji as Location, Jl as TransferRead, Ko as PluginsOf, Ls as SchemaContentRule, Oo as PluginPortal$1, P as Decoration, Qn as EditorSchemaSource, Qo as PropertyBooleanDescriptor, R as DefinitionOf, Ra as NodeSetNodesOptions, Rr as EditorTransactionChangeContext, Si as EditorViewOptions, Tr as EditorStateView, Tt as EditorDocumentValue, Ul as TransferOutcome, Wo as PluginWitnessFor, Y as Editor$3, Yt as EditorNodeChangeContext, au as TxMethodDeclarations, bl as TextInsertFragmentOptions, bo as PluginDependencyReferenceFor, cl as StateFieldValueInput, cu as ValueOf, dl as Text, dt as EditorCommit, es as PropertyEnumDescriptor, f as AnyEditor, fr as EditorStateField, fs as PropertyValueOptions, ia as NamedRootKey, iu as TxDeclaredMethod, ji as ElementOf, kr as EditorTextChangeContext, li as EditorUpdatePolicy, mt as EditorCommitContext, oc as SchemaNodeTypeProvider, oo as Plugin$1, pa as NodeEntry, ps as Range, ql as TransferPlugin, qs as SchemaElementPropertyDefinition, rs as PropertyNumberDescriptor, si as EditorUpdateContext, ss as PropertyStringDescriptor, su as Value, ts as PropertyJsonDescriptor, v as BaseElement, vo as PluginDependencyContractReference, wl as TextOf, ws as RootKey, zl as TransferInput } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import { h as EditorApplicationSchema } from "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import { $ as PluginContributionCompatibility, $a as InferConflicts, $t as UpsertLinkOptions, A as DefinePluginFormats, An as CapturedFormat, Bt as OutdentListOptions, Co as PluginReference$1, Ct as PluginTransaction, D as ConfiguredPluginDescriptor, Eo as PluginSchemaDeclaration, Er as RenderTextProps$1, Et as CorePlugins, Fa as HandlerReturnType, G as PluginShortcutInput, Ga as BaseTransformOptions, Go as InferPluginSchemaContribution, Ha as AnyBasePluginDefinition, Ht as ToggleListOptions, Io as PluginViewStore, Jo as UnknownObject, Jt as CreateLinkNodeOptions, Ko as Nullable, La as ElementWith, Lt as ListStyle, Mi as AutoScrollOptions, Mo as PluginSelectorMethods, Na as RenderElementProps$1, Ni as AutoScrollUpdate, No as PluginSelectorReturn, Or as RenderLeafProps$1, Po as PluginSelectors, Q as PluginCompatibilityArguments, Qa as InferApi, Qn as HeadingLevel, Qt as UnwrapLinkOptions, Ri as ScrollMode, Ro as SelectionRules, Rt as ListType, So as PluginPortalContext, To as PluginSchemaContext, Tt as CoreEditorApi, Ua as BaseInjectProps, Uo as InferPluginNodeTypeProvider, V as InternalBasePluginRuntimeExtension, Va as InternalPluginDefinitionOf, Vo as WithAnyName, Wa as BasePluginDefinition, Wo as InferPluginSchema, Wt as isListLevels, Xa as GetInjectNodePropsOptions, Ya as EditOnlyConfig, Yo as GeneratedEditorMutations, Yt as LinkAttributes, Z as MergePluginDefinitions, Za as GetInjectNodePropsReturnType, _ as BasePlugin, _n as Alignment, _o as NormalizePluginState, at as RuntimePluginsFromTuple, b as BasePluginDefinitionInput, bo as PluginDefinitionWitness, bt as PluginReadCapability, ca as LowerBasePlugin, ct as BlockInsertOptions, do as InferSelectors, dt as InferEditorRuntimePlugins, en as WrapLinkOptions, eo as InferDependencies, er as ToggleHeadingOptions, f as InternalBaseEditorWithInstalledPlugins, ft as InferRuntimePlugins, g as AnyPluginBase, gn as HighlightResult, go as NormalizePluginSelectors, gr as GetFragmentPropOptions, gt as MergeInstalledPluginDefinitions, h as AnyBasePluginPortal, ho as NodeComponent, ht as InternalInstalledSchemaMutationProvider, ia as BasePluginDependencyDescriptors, it as PlatePluginsFromTuple, j as EditorShortcut, jo as PluginSelectorArgs, ki as AutoScrollApi, la as NormalizeBasePluginInput, lo as InferPluginViewState, lt as BlockUpsertOptions, m as AnyBasePluginContext, na as PluginInitialStateInput, nt as EditorOptions, oa as BasePluginDependencyReferences, on as isNonNegativeSafeInteger, p as AnyBasePlugin, po as InferUpdate, pt as InternalEditorMutationProvider, qa as DefinitionOf$1, qo as AnyObject, ra as RequiredPluginState, rn as IndentChangeOptions, rt as EditorValueInput, sa as BasePluginInstalledCapabilityWitness, so as InferPluginStoreState, st as BasePluginInput, u as Editor$4, uo as InferRead, v as BasePluginConfiguration, vt as PluginDirectUpdate, xo as PluginDependency, xt as PluginReadState, yo as PluginBaseContext } from "./core-BqR-fEDp.js";
|
|
4
|
+
import { I as ScrollIntoViewOptions, T as DataTransferDiagnostic, a as DOMCoverageBoundary, c as DOMCoverageMaterializeReason, d as DOMEditor, h as DOMPluginTypes, i as DOMClipboardApi, j as DropIndicator, l as DOMCoverageReason, m as DOMPlugin, o as DOMCoverageCopyPolicy, r as DOMApi, s as DOMCoverageMaterializeRangeRole, u as DOMCoverageSelectionPolicy } from "./index-DShbzec2.js";
|
|
5
|
+
import { a as AnnotationSnapshot, d as ViewSourceErrorSink, l as ResolvedAnnotation, o as AnnotationStore, t as Annotation } from "./index-BWPcE4ac-Cto_IsNs.js";
|
|
6
|
+
import { n as EditorStaticProps } from "./PlateStatic-D3Cb-QwH.js";
|
|
7
7
|
import React$1, { CSSProperties, HTMLAttributes, KeyboardEvent as KeyboardEvent$1, MouseEventHandler, ReactNode, Ref, RefObject, TextareaHTMLAttributes } from "react";
|
|
8
8
|
import "lodash";
|
|
9
9
|
/** An immutable rectangle in viewport coordinates. */
|
|
@@ -822,15 +822,12 @@ type UseRootEditorOptions = {
|
|
|
822
822
|
* It obeys the read-only state and the authored view of the mounted view that
|
|
823
823
|
* shows its root, and of the view around the hook while none shows it. Inside
|
|
824
824
|
* a view, that mounted view is the one this view mounts for the root, such as
|
|
825
|
-
* its own board when two editing areas show the same board.
|
|
826
|
-
* `EditorRoot
|
|
827
|
-
*
|
|
828
|
-
*
|
|
829
|
-
*
|
|
830
|
-
*
|
|
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)`.
|
|
825
|
+
* its own board when two editing areas show the same board. It acts only
|
|
826
|
+
* under its own `EditorRoot`, so while that `EditorRoot` shows no editing
|
|
827
|
+
* area for its root, `api.dom.editable()` returns `null`, even when an
|
|
828
|
+
* editing area in another `EditorRoot` holds the caret. Use it for
|
|
829
|
+
* root-specific toolbar/sidebar commands. Pass `readOnly: true` when UI only
|
|
830
|
+
* needs read APIs. Exact plugin capability comes from `editor.plugin(Plugin)`.
|
|
834
831
|
*/
|
|
835
832
|
declare function useRootEditor<const TRoot extends RootKey = RootKey>(root?: NamedRootKey<TRoot>, options?: UseRootEditorOptions): Editor$2;
|
|
836
833
|
/** Identifies the exact mounted Editable used to resolve selection geometry. */
|
|
@@ -1946,11 +1943,12 @@ declare function useEditorHistory<const TRoot extends RootKey = RootKey>(options
|
|
|
1946
1943
|
type UseEditorSelectorOptions<T> = EditorRuntimeStateSelectorOptions<T, Editor>;
|
|
1947
1944
|
/**
|
|
1948
1945
|
* Subscribe to a value derived from the selected editor. A selector that
|
|
1949
|
-
* keeps its identity between renders runs at most once per commit,
|
|
1950
|
-
*
|
|
1951
|
-
*
|
|
1952
|
-
*
|
|
1953
|
-
*
|
|
1946
|
+
* keeps its identity between renders runs at most once per commit, once more
|
|
1947
|
+
* when the selected editor changes, such as when the caret moves to another
|
|
1948
|
+
* root, and once more when the editor shows a different review preview than
|
|
1949
|
+
* the selector last read. A selector written inline gets a new identity each
|
|
1950
|
+
* render, so it also runs on every render of its component. A change that
|
|
1951
|
+
* leaves the value equal renders nothing.
|
|
1954
1952
|
*/
|
|
1955
1953
|
declare const useEditorSelector: <T>(selector: (editor: Editor) => T, options?: UseEditorSelectorOptions<T>) => T;
|
|
1956
1954
|
type PluginStoreDescriptor = Readonly<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $a as Path, Ca as NodeKey, Ci as Element$1, H as Descendant, Lc as SelectionAssociation, Y as Editor, aa as Node$1, cc as SchemaProperty, f as AnyEditor, j as ContentSlice, oo as Plugin, ps as Range$1, qo as Point, su as Value, tt as EditorCommand, vt as EditorCoreStateView, ws as RootKey } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
2
|
import { StandardBehaviorOptions } from "scroll-into-view-if-needed";
|
|
3
3
|
/**
|
|
4
4
|
* Types.
|
|
@@ -229,11 +229,10 @@ interface DOMApi {
|
|
|
229
229
|
/**
|
|
230
230
|
* The DOM document or shadow root holding the Editable of the view this
|
|
231
231
|
* editor's calls run in. A view's own editor runs in its own view. A
|
|
232
|
-
* `useRootEditor` editor runs in a view of its root from its `EditorRoot
|
|
233
|
-
*
|
|
234
|
-
* editor
|
|
235
|
-
*
|
|
236
|
-
* else of main. When the caret was placed in that root from an
|
|
232
|
+
* `useRootEditor` editor runs in a view of its root from its `EditorRoot`,
|
|
233
|
+
* and gets null while that `EditorRoot` shows no editing area for its root.
|
|
234
|
+
* The editor `createEditor` returns runs in a view of the selection's
|
|
235
|
+
* root, else of main. When the caret was placed in that root from an
|
|
237
236
|
* `EditorRoot`, only that `EditorRoot`'s views of the root count, even
|
|
238
237
|
* after this editor moves the caret within it. Of the views that count, it
|
|
239
238
|
* takes the only one, else the one that holds focus, through iframes and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Tt as EditorDocumentValue } from "./index-
|
|
2
|
-
import { d as HtmlSerializeResult, l as HtmlParseOptions, r as HtmlDocumentParseResult, u as HtmlSerializeOptions } from "./htmlTypes-
|
|
3
|
-
import "./core-
|
|
1
|
+
import { Tt as EditorDocumentValue } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import { d as HtmlSerializeResult, l as HtmlParseOptions, r as HtmlDocumentParseResult, u as HtmlSerializeOptions } from "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import "./core-BqR-fEDp.js";
|
|
4
4
|
declare const parseHtml: (source: string, options: HtmlParseOptions) => HtmlDocumentParseResult;
|
|
5
5
|
declare const serializeHtml: (document: EditorDocumentValue, options: HtmlSerializeOptions) => HtmlSerializeResult;
|
|
6
6
|
export { serializeHtml as n, parseHtml as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $a as Path, Ci as Element, El as TextSelection, Fc as Selection, H as Descendant, Y as Editor, dl as Text } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
2
|
/**
|
|
3
3
|
* All tokens inherit from a single constructor for `instanceof` checking.
|
|
4
4
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import {
|
|
1
|
+
import { Ca as NodeKey, iu as TxDeclaredMethod, oo as Plugin, qs as SchemaElementPropertyDefinition, ss as PropertyStringDescriptor } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import { Co as PluginReference, _ as BasePlugin, aa as BasePluginDependencyReferenceFor, xo as PluginDependency } from "./core-BqR-fEDp.js";
|
|
4
4
|
/** Which way a mark's text runs. */
|
|
5
5
|
type InkDirection = 'ltr' | 'rtl';
|
|
6
6
|
/**
|
|
@@ -194,7 +194,6 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
|
|
|
194
194
|
value: string;
|
|
195
195
|
}>;
|
|
196
196
|
}> & Readonly<Record<"read", {
|
|
197
|
-
readonly entry: (id: string) => ElementIdEntry | undefined;
|
|
198
197
|
readonly id: (key: NodeKey) => string | undefined;
|
|
199
198
|
}>> & Readonly<Record<"schema", {
|
|
200
199
|
readonly properties: {
|
|
@@ -239,7 +238,6 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
|
|
|
239
238
|
readonly generateId: () => string;
|
|
240
239
|
};
|
|
241
240
|
readonly read: {
|
|
242
|
-
readonly entry: (id: string) => ElementIdEntry | undefined;
|
|
243
241
|
readonly id: (key: NodeKey) => string | undefined;
|
|
244
242
|
};
|
|
245
243
|
}>> & Readonly<Record<never, never>>, "~schema.plugins">];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import {
|
|
1
|
+
import { Ba as NodeTarget, Ca as NodeKey, Ds as SchemaContentDefault, Ht as EditorJsonValue, Ia as NodeSelection, Ls as SchemaContentRule, Qo as PropertyBooleanDescriptor, Ti as ElementEntry, fs as PropertyValueOptions, ia as NamedRootKey, iu as TxDeclaredMethod, ji as ElementOf, rs as PropertyNumberDescriptor, ss as PropertyStringDescriptor, ts as PropertyJsonDescriptor } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import { Co as PluginReference, _ as BasePlugin, ct as BlockInsertOptions, lt as BlockUpsertOptions, qa as DefinitionOf, xo as PluginDependency } from "./core-BqR-fEDp.js";
|
|
4
4
|
type TableCellBorder = Readonly<{
|
|
5
5
|
color?: string;
|
|
6
6
|
style?: string;
|
|
@@ -2588,6 +2588,8 @@ declare const BaseTablePlugin: BasePlugin<Readonly<{
|
|
|
2588
2588
|
* Interior boundaries preserve the adjacent columns' combined width.
|
|
2589
2589
|
* The left boundary exchanges first-column width for table indentation.
|
|
2590
2590
|
* Commit the result with `update.resize`; previews never change the editor.
|
|
2591
|
+
* Throws a `RangeError` for a column edge while the table holds a pending
|
|
2592
|
+
* column width change.
|
|
2591
2593
|
*/
|
|
2592
2594
|
readonly createResize: (table: TableElement, target: TableResizeTarget) => (delta: number) => TableResize;
|
|
2593
2595
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { V as InternalBasePluginRuntimeExtension,
|
|
4
|
-
import { _ as AuthoredPlugin$1 } from "./index-
|
|
1
|
+
import { oo as Plugin } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import { V as InternalBasePluginRuntimeExtension, Va as InternalPluginDefinitionOf, _ as BasePlugin, aa as BasePluginDependencyReferenceFor } from "./core-BqR-fEDp.js";
|
|
4
|
+
import { _ as AuthoredPlugin$1 } from "./index-B8-5Sr7I.js";
|
|
5
5
|
declare const BaseAuthoredPlugin: BasePlugin<Readonly<{}> & Readonly<{
|
|
6
6
|
name: "authored";
|
|
7
7
|
}> & Readonly<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import {
|
|
1
|
+
import { Ba as NodeTarget, Ci as Element, Ds as SchemaContentDefault, Ht as EditorJsonValue, Ia as NodeSelection, Ji as Location, Ls as SchemaContentRule, iu as TxDeclaredMethod, ji as ElementOf, ss as PropertyStringDescriptor } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import { Co as PluginReference, _ as BasePlugin, ct as BlockInsertOptions, lt as BlockUpsertOptions, qa as DefinitionOf, xo as PluginDependency } from "./core-BqR-fEDp.js";
|
|
4
4
|
type SetColumnsOptions = {
|
|
5
5
|
/** Column group location. */
|
|
6
6
|
at?: NodeTarget<Element>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as EditorBreakExitOptions, $a as PathApi, $c as SpanApi, $i as MoveSelectionCommand, $l as TransferWrap, $n as EditorSchemaStructureProperty, $o as PropertyJsonOptions, $r as EditorTransactionTagsApi, $s as SchemaGroup, $t as EditorNodeUnsetOptions, $u as transfer, A as CompatibleEditorCommand, Aa as NodeOf, Ac as SchemaValueFromPlugins, Ai as ElementOrTextIn, Al as TransferAdoptInput, An as EditorSchemaDefinition, Ao as PluginReadMiddlewareFactory, Ar as EditorToggleBlockOptions, As as SchemaContentRootInput, At as EditorEffectCollabTransport, B as DeleteFragmentCommand, Ba as NodeTextRangeMatch, Bc as SelectionSetPointOptions, Bi as InsertTextCommand, Bl as TransferPatch, Bn as EditorSchemaOverride, Bo as PluginUpdateFactoryContext, Br as EditorTransactionChangesApi, Bs as SchemaElementInput, Bt as EditorIsEditorOptions, C as BlockDuplicateOptions, Ca as NodeLiftNodesOptions, Cc as SchemaTextProperties, Ci as ElementApi, Cl as TextSelection, Cn as EditorSchemaContractContentProgram, Co as PluginMigrationContext, Cr as EditorStateValueApi, Cs as SchemaContent, Ct as EditorDocumentRange, Cu as editorReads, Da as NodeMoveNodesOptions, Dc as SchemaTextPropertyOptions, Di as ElementInterface, Dl as ToggleMarkCommand, Dn as EditorSchemaContractRoot, Do as PluginReadContext, Dr as EditorTargetRuntime, Ds as SchemaContentPrefixSlot, Dt as EditorEffectCollabDecodeContext, Du as getEditorRuntimeOwner, E as BooleanMarksOf, Ea as NodeMergeNodesOptions, Ec as SchemaTextPropertyKeys, Ei as ElementIn, El as ToggleBlockCommand, En as EditorSchemaContractElement, Eo as PluginPublicationError, Es as SchemaContentOptions, Et as EditorEffect, F as DecorationAttributes, Fa as NodeSelectionMode, Fc as SelectionCollapseOptions, Fi as HistorySettlement, Fl as TransferInput, Fn as EditorSchemaElementOverrideInput, Fo as PluginSlotValue, Fr as EditorTransactionBlocksApi, Fs as SchemaDescendant, Ft as EditorFragmentReadOptions, Fu as isEditor, G as DescendantEntryOf, Ga as NodeTypeSelector, Gc as SetNodesCommand, Gi as LeafPosition, Gl as TransferRefusalReason, Gn as EditorSchemaPropertyOverride, Go as PointApi, Gr as EditorTransactionNodesApi, Gs as SchemaElementPropertyKeys, Gt as EditorMarks, Gu as schema$1, H as Descendant, Ha as NodeTextRangeRoot, Hc as SerializedEditorEffect, Hi as JsonEditorValue, Hl as TransferPayload, Hn as EditorSchemaPlugin, Ho as PluginsFromOptions, Hr as EditorTransactionEffectsApi, Hs as SchemaElementPropertiesFor, Ht as EditorLevelsOptions, Hu as readEditorSchemaContract, I as DecorationRefresh, Ia as NodeSetNodesOptions, Ic as SelectionEdge, Ii as InitialValue, Il as TransferIntent, In as EditorSchemaElementStructure, Io as PluginTypeProvider, Ir as EditorTransactionBreakApi, Is as SchemaElement, Iu as locateAt, J as DocumentChange, Ja as NodeWrapNodesOptions, Jc as SliceLandingInput, Ji as LocationInterface, Jl as TransferSideInput, Jn as EditorSchemaPropertyReadOptions, Jo as ProjectedRangeSegment, Jr as EditorTransactionRemoved, Js as SchemaElementShapeFor, Jt as EditorNodeChangeContext, K as DescendantIn, Ka as NodeUnsetNodesOptions, Kc as SetSelectionCommand, Ki as Location, Kl as TransferRelation, Kn as EditorSchemaPropertyOverrideInput, Ko as PointEntry, Kr as EditorTransactionPluginsApi, Ks as SchemaElementPropertyOptions, Kt as EditorMarksOf, Ku as screenReaderAnnouncementEffect, L as DecorationSource, La as NodeSplitNodesOptions, Lc as SelectionMode, Li as InsertBreakCommand, Ll as TransferLandingInput, Ln as EditorSchemaGetProperty, Lr as EditorTransactionChangeContext, Ls as SchemaElementConstructionPropertiesFor, Lt as EditorInstalledApiGroups, Lu as mapEffect, Ma as NodeRemoveNodesOptions, Mc as Selection, Mi as HistoryApi, Ml as TransferCheck, Mn as EditorSchemaDerivedDefinition, Mr as EditorTransactionAnchor, Ms as SchemaContentRootSlotsFor, Mt as EditorEffectType, N as DebugValueScrubber, Na as NodeReplaceChildrenOptions, Nc as SelectionApi, Ni as HistoryOutcome, Nl as TransferDiagnostic, Nn as EditorSchemaElement, No as PluginSlot, Nr as EditorTransactionAnchorApi, Ns as SchemaContentRootStructure, Nt as EditorElementBehavior, Nu as invertEffect, O as ChildOf, Oa as NodeMutationMethods, Oc as SchemaTypesTarget, Oi as ElementIsElementOptions, Ol as TopLevelRuntimeRange, On as EditorSchemaContribution, Oo as PluginReadFactory, Or as EditorTextChangeContext, Os as SchemaContentRoot, Ot as EditorEffectCollabEncodeContext, P as Decoration, Pa as NodeSelection, Pc as SelectionAssociation, Pi as HistoryResult, Pl as TransferEdge, Pn as EditorSchemaElementOverride, Po as PluginSlotLike, Pr as EditorTransactionAnnotationsApi, Ps as SchemaContentRule, Pt as EditorFragmentDeletionOptions, Q as EditorBlockToggleOptions, Qa as PathAncestorsOptions, Qc as Span, Qi as MaximizeMode, Ql as TransferVetoInput, Qo as PropertyJsonDescriptor, Qr as EditorTransactionSpecBuilder, Qs as SchemaElementTypes, Qu as target, Ra as NodeTarget, Rc as SelectionMoveOptions, Ri as InsertNodesCommand, Rl as TransferLandingTarget, Rn as EditorSchemaIdentity, Ro as PluginTypes, Rr as EditorTransactionChangeHandler, Rs as SchemaElementFor, Rt as EditorInstalledReadGroups, S as BaseText, Sa as NodeLevelsOptions, Sc as SchemaTextBlockOptions, Si as Element, Sl as TextRemoveTextOptions, Sn as EditorSchemaContractChangeKind, Sr as EditorStateUniqueApi, Ss as SchemaBuiltInGroupName, Su as editorCommands, T as BooleanMarkKeysOf, Ta as NodeMatchPredicate, Tc as SchemaTextPropertyDefinition, Ti as ElementEntryOf, Tl as TextUnitAdjustment, Tn as EditorSchemaContractDiff, Tr as EditorStateViewApi, Ts as SchemaContentInput, Tt as EditorDocumentValue, U as DescendantEntry, Ua as NodeTextRangeView, Uc as SerializedEditorSelection, Ui as JsonNode, Uo as PluginsOf, Ur as EditorTransactionFragmentApi, Us as SchemaElementProperty, Ut as EditorLifecycleError, V as DerivedEditorSchemaIdentity, Va as NodeTextRangeQuery, Vc as SelectionValue, Vl as TransferPatchProperties, Vn as EditorSchemaOverrideInput, Vr as EditorTransactionDocumentChangeKind, Vs as SchemaElementProperties, Vt as EditorJsonValue, Vu as property, W as DescendantEntryIn, Wa as NodeTextsOptions, Wc as SerializedEditorValue, Wi as LeafEdge, Wl as TransferRead, Wn as EditorSchemaProperty, Wo as Point, Wr as EditorTransactionMarksApi, Ws as SchemaElementPropertyDefinition, Wt as EditorLifecycleErrorSink, Wu as restoreEditorSchemaContract, X as EditorAboveOptions, Xa as NodeWriteVetoInput, Xc as SnapshotIndex, Xi as MarksIn, Xl as TransferTarget, Xn as EditorSchemaRepairCode, Xo as PropertyBuilderApi, Xr as EditorTransactionSelectionApi, Xs as SchemaElementStructure, Xt as EditorNodeChangeKind, Xu as setEditorViewing, Ya as NodeWriteVeto, Yc as SliceLandingTarget, Yi as MarkKeysOf, Yl as TransferSourceInput, Yn as EditorSchemaReadProperty, Yo as PropertyBooleanDescriptor, Yr as EditorTransactionRootsApi, Ys as SchemaElementSlicePolicy, Yt as EditorNodeChangeHandler, Yu as setEditorReadOnly, Z as EditorBlockOptions, Za as Path, Zc as SnapshotInput, Zi as MarksOf, Zl as TransferVeto, Zn as EditorSchemaSource, Zo as PropertyEnumDescriptor, Zr as EditorTransactionSliceApi, Zs as SchemaElementTarget, Zt as EditorNodeGetOptions, _ as AuthoredVeto, _a as NodeInsertNodesOptions, _c as SchemaPropertyTypeChangePolicy, _i as EditorValueFromPlugins, _l as TextInsertFragmentOptions, _n as EditorRootOwner, _r as EditorStateRuntimeApi, _s as RemoveMarkCommand, _t as EditorCommitRuntimeChangeKind, _u as defineUpdateAnnotation, a as AncestorIn, aa as NodeApi, ac as SchemaProperty, ad as valueCodecs, ai as EditorUpdateAnnotation, al as StateFieldValueInput, an as EditorReadAroundHandler, ao as PluginApiFactory, ar as EditorSchemaVocabulary, as as PropertyValidation, at as EditorCommandDispatch, b as BasePoint, ba as NodeIsNodeOptions, bc as SchemaTarget, bi as EditorView, bl as TextMutationMethods, bn as EditorSchemaContract, br as EditorStateSliceApi, bt as EditorCoreUpdateTransaction, bu as diffEditorSchemaContracts, c as AnchorAssociation, ca as NodeDescendantsOptions, cc as SchemaPropertyExclusiveGroup, ci as EditorUpdatePolicy, cl as Text, cn as EditorReadInput, co as PluginCandidateEditor, cr as EditorSelectionTargetOptions, cs as PropertyValueOf, ct as EditorCommandPlace, cu as compileEditorSchemaContract, d as AnchorValue, da as NodeEntry, dc as SchemaPropertyIds, di as EditorUpdateTagInput, dl as TextDirection, dn as EditorReadMethods, do as PluginContribution, dr as EditorStateField, ds as RangeAnchorAssociation, dt as EditorCommit, du as defineCommand$1, ea as MoveUnit, ec as SchemaGroupNames, ed as transferVeto, ei as EditorTransactionTextApi, el as SpanInterface, en as EditorNodesOptions, eo as PathInterface, er as EditorSchemaUnknownPolicy, es as PropertyNumberDescriptor, et as EditorCanonicalUpdateTag, eu as TxDeclaredMethod, fa as NodeEntryIn, fc as SchemaPropertyKey, fi as EditorUpdateTransaction, fl as TextEntry, fn as EditorReadRegistration, fo as PluginContributionInput, fr as EditorStateFragmentApi, fs as RangeApi, ft as EditorCommitChangeKind, fu as defineEditorSchema, g as AuthoredTouch, ga as NodeIn, gc as SchemaPropertySplitPolicy, gi as EditorValueFromOptions, gl as TextIn, gn as EditorRootEntry, go as PluginDependencyReference, gr as EditorStateRangesApi, gs as RangeMode, gt as EditorCommitListener, gu as defineStateField, ha as NodeHasPropsOptions, hc as SchemaPropertyRole, hi as EditorUpdateValueFromPlugin, hl as TextEqualsOptions, hn as EditorReplaceNodeOptions, hr as EditorStatePointsApi, hs as RangeInterface, ht as EditorCommitHandler, hu as definePluginSlot, i as AncestorEntryOf, ia as NodeAncestorsOptions, ic as SchemaPluginsOf, ii as EditorUpdate, il as StateFieldInitial, in as EditorRead, io as PluginActivationContext, ir as EditorSchemaValidationPropertyContext, is as PropertyStringDescriptor, it as EditorCommandDescriptor, iu as ValueOf, j as ContentSlice, ja as NodeProps, jc as SelectCommand, ji as ElementOrTextOf, jl as TransferApi, jn as EditorSchemaDelta, jo as PluginReconfigureOptions, jr as EditorToggleMarkOptions, js as SchemaContentRootOwnership, jt as EditorEffectHistoryReplayResult, k as CollapseSelectionCommand, ka as NodeNodesOptions, kc as SchemaValue, ki as ElementOf, kl as TransactionSpec, kn as EditorSchemaDeclaration, ko as PluginReadFactoryContext, kr as EditorTextChangeHandler, ks as SchemaContentRootContribution, kt as EditorEffectCollabReplay, ku as getSelection, l as AnchorDeletionPolicy, la as NodeDuplicateOptions, lc as SchemaPropertyHandle, li as EditorUpdatePolicyFor, ll as TextApi, ln as EditorReadMethodRecord, lo as PluginCapabilities, lr as EditorSliceReadOptions, ls as PropertyValueOptions, lt as EditorCommandResult, lu as createEditorView, m as AuthoredProjectionDiagnostic, ma as NodeFindTextRangesOptions, mc as SchemaPropertyReferences, ml as TextEntryOf, mn as EditorReplaceChildrenOptions, mr as EditorStateNodesApi, ms as RangeEdgesOptions, mt as EditorCommitContext, mu as definePluginPoint, n as Ancestor, na as NamedRootKey, nc as SchemaKeyPrefix, nd as txOnly, ni as EditorTransactionValueApi, nl as StateFieldDescriptor, nn as EditorParentOptions, no as PersistedDocumentInput, nr as EditorSchemaValidationDiagnostic, ns as PropertySetDescriptor, nt as EditorCommandAroundHandler, nu as TxOnlyMethod, o as AncestorOf, oa as NodeChildEntry, oc as SchemaPropertyCopyPolicy, oi as EditorUpdateContext, on as EditorReadContext, oo as PluginApiFactoryContext, or as EditorSelection, os as PropertyValueDescriptor, ot as EditorCommandHandler, ou as authoredVeto, p as AuthoredDocumentProjection, pa as NodeEntryOf, pc as SchemaPropertyLandingPolicy, pl as TextEntryIn, pn as EditorReadResult, po as PluginDefinition, pr as EditorStateMarksApi, ps as RangeDirection, pt as EditorCommitChanged, pu as defineEffect, q as DescendantOf, qa as NodeUnwrapNodesOptions, qc as SliceLanding, qi as LocationApi, ql as TransferSide, qn as EditorSchemaPropertyQuery, qo as PointInterface, qr as EditorTransactionRecordsApi, qs as SchemaElementPropertyValue, qt as EditorNextOptions, qu as setDebugValueScrubber, r as AncestorEntry, ra as Node, rd as txSelection, ri as EditorUniqueHolder, rl as StateFieldHistoryPolicy, rn as EditorPreviousOptions, rr as EditorSchemaValidationError, rs as PropertySetOptions, rt as EditorCommandContinuation, ru as Value, s as Anchor, sa as NodeChildrenOptions, sc as SchemaPropertyDefinition, si as EditorUpdateMethods, sl as TargetFreshnessRequest, sn as EditorReadDescriptor, so as PluginCandidateContext, sr as EditorSelectionBlockOptions, ss as PropertyValueKind, st as EditorCommandInput, t as AddMarkCommand, ta as NamedEditorSchemaIdentity, tc as SchemaGroupOptions, td as txLocate, ti as EditorTransactionTopLevelRange, tl as StateFieldCollabPolicy, tn as EditorNodesReadOptions, to as PathLevelsOptions, tr as EditorSchemaValidationCode, ts as PropertyOptionsOf, tt as EditorCommand, tu as TxMethodDeclarations, u as AnchorOptions, ua as NodeElementsOptions, uc as SchemaPropertyHandleValue, ui as EditorUpdateTag, ul as TextDeleteOptions, un as EditorReadMethodTree, uo as PluginCleanupContext, ur as EditorSnapshot, us as Range, ut as EditorCommands, uu as decodeEditorEffect, v as BaseElement, va as NodeInsertSplitOptions, vc as SchemaRecordSet, vi as EditorValuePersistence, vl as TextInsertTextOptions, vn as EditorSchemaContent, vr as EditorStateSchemaApi, vs as RemoveNodesCommand, vt as EditorCoreStateView, wa as NodeMatch, wc as SchemaTextProperty, wi as ElementEntry, wl as TextUnit, wn as EditorSchemaContractContentRoot, wo as PluginPoint, wr as EditorStateView, ws as SchemaContentDefault, wt as EditorDocumentRecords, wu as encodeEditorEffect, x as BaseRange, xa as NodeKey, xc as SchemaText, xi as EditorViewOptions, xl as TextOf, xn as EditorSchemaContractChange, xo as PluginInput, xr as EditorStateTextApi, xs as RootKey, xt as EditorDirectCommandDispatch, xu as documentReplacement, y as BaseNode, ya as NodeInterface, yc as SchemaRootNames, yl as TextInterface, yn as EditorSchemaContentRoot, yr as EditorStateSelectionApi, ys as ReplaceSliceCommand, yt as EditorCoreUpdateMethods, z as DeleteCommand, za as NodeTextRangeEntry, zc as SelectionMutationMethods, zi as InsertSoftBreakCommand, zl as TransferOutcome, zn as EditorSchemaNamedDefinition, zo as PluginUpdateFactory, zr as EditorTransactionChanged, zs as SchemaElementHandle, zt as EditorInstalledUpdateGroups, zu as nodeWriteVeto } from "./index-DpltOCot-A2b3p3Eb.js";
|
|
2
|
-
import { h as EditorApplicationSchema } from "./htmlTypes-
|
|
3
|
-
import { $a as
|
|
4
|
-
export { type AddMarkCommand, AffinityDefinition, AffinityEdgeNodes, AffinityPlugin, AffinityPluginUpdate, Alignment, Ancestor, AncestorEntry, AncestorEntryOf, AncestorIn, AncestorOf, type Anchor, type AnchorAssociation, type AnchorDeletionPolicy, type AnchorOptions, type AnchorValue, type AnyObject, ApplyDeepToNodesOptions, type AuthoredDocumentProjection, type AuthoredProjectionDiagnostic, type AuthoredTouch, type AuthoredVeto, type AutoScrollApi, type AutoScrollChangeKind, type AutoScrollChangesMap, type AutoScrollOptions, type AutoScrollUpdate, BULLETED_LIST_STYLES, BaseBlockquotePlugin, BaseBoldPlugin, BaseCodeBlockPlugin, BaseCodeHighlightPlugin, BaseCodePlugin, BaseElement, BaseFontBackgroundColorPlugin, BaseFontColorPlugin, BaseFontFamilyPlugin, BaseFontSizePlugin, BaseFormattingPlugin, BaseHeadingPlugin, BaseHighlightPlugin, BaseHorizontalRulePlugin, BaseIndentPlugin, type BaseInjectProps, BaseInputRule, BaseItalicPlugin, BaseKbdPlugin, BaseLineHeightPlugin, BaseLinkDefinition, BaseLinkPlugin, BaseLinkPluginState, BaseListDefinition, BaseListPlugin, BaseNode, BaseParagraphDefinition, BaseParagraphPlugin, type BasePlugin, type BasePlugin as Plugin, type BasePluginConfiguration, type BasePluginContext, type BasePluginDefinition, type BasePluginDefinitionInput, type BasePluginDefinitionInput as PluginDefinitionInput, type BasePluginExtendInput, type BasePluginImplementationContext, type BasePluginInput, type BasePluginOn, type BasePluginOverride, type BasePluginPortal, type BasePluginPortal as PluginPortal, BasePoint, BaseRange, BaseScriptPlugin, BaseStrikethroughPlugin, BaseText, BaseTextAlignPlugin, BaseTextIndentPlugin, BaseUnderlinePlugin, type BlockDuplicateOptions, BlockFenceInputRuleConfig, BlockFenceInputRuleMatch, type BlockInsertOptions, BlockStartInputRuleConfig, BlockStartInputRuleMatch, type BlockUpsertOptions, BlockquoteRules, BoldRules, BooleanMarkKeysOf, BooleanMarksOf, type BreakRules, BulletedListRules, CapturedFormat, ChildOf, CodeBlockDefinition, CodeBlockElement, CodeBlockRules, CodeHighlightDefinition, CodeHighlightLowlight, CodeHighlightPluginState, CodeRules, type CollapseSelectionCommand, type CompatibleEditorCommand, type ConfiguredBasePlugin, ContentSlice, type CreateEditorOptions, CreateLinkNodeOptions, DebugApi, DebugDefinition, DebugErrorType, DebugPlugin, DebugPluginState, type DebugValueScrubber, type DeclaredPluginShortcutInput, type Decorate, type Decoration, type DecorationAttributes, type DecorationRefresh, type DecorationSource, type DefinitionOf, type DeleteCommand, type DeleteFragmentCommand, type DeleteRules, DelimitedInlineInputRuleMatch, type DerivedEditorSchemaIdentity, Descendant, DescendantEntry, DescendantEntryIn, DescendantEntryOf, DescendantIn, DescendantOf, DocumentChange, type DocxNodeMapping, type DomApi, type DomPluginState, type DomPluginUpdate, type EditOnlyConfig, type EditableProps, type Editor, type EditorAboveOptions, type EditorApplicationSchema, type EditorBlockOptions, type EditorBlockToggleOptions, type EditorBreakExitOptions, type EditorCanonicalUpdateTag, type EditorCommand, type EditorCommandAroundHandler, type EditorCommandContinuation, type EditorCommandDescriptor, type EditorCommandDispatch, type EditorCommandHandler, type EditorCommandInput, type EditorCommandPlace, type EditorCommandResult, type EditorCommands, type EditorCommit, type EditorCommitChangeKind, type EditorCommitChanged, type EditorCommitContext, type EditorCommitHandler, type EditorCommitListener, type EditorCommitRuntimeChangeKind, type EditorCoreStateView, type EditorCoreUpdateMethods, type EditorCoreUpdateTransaction, type EditorDirectCommandDispatch, type EditorDocumentRange, type EditorDocumentRecords, type EditorDocumentValue, type EditorEffect, type EditorEffectCollabDecodeContext, type EditorEffectCollabEncodeContext, type EditorEffectCollabReplay, type EditorEffectCollabTransport, type EditorEffectHistoryReplayResult, type EditorEffectType, type EditorElementBehavior, EditorError, type EditorFragmentDeletionOptions, type EditorFragmentReadOptions, type EditorInstalledApiGroups, type EditorInstalledReadGroups, type EditorInstalledUpdateGroups, type EditorIsEditorOptions, type EditorJsonValue, type EditorLevelsOptions, type EditorLifecycleError, type EditorLifecycleErrorSink, type EditorMarks, type EditorMarksOf, type EditorNextOptions, type EditorNodeChangeContext, type EditorNodeChangeHandler, type EditorNodeChangeKind, type EditorNodeGetOptions, type EditorNodeUnsetOptions, type EditorNodesOptions, type EditorNodesReadOptions, type EditorParentOptions, type EditorPreviousOptions, type EditorRead, type EditorReadAroundHandler, type EditorReadContext, type EditorReadDescriptor, type EditorReadInput, type EditorReadMethodRecord, type EditorReadMethodTree, type EditorReadMethods, type EditorReadRegistration, type EditorReadResult, type EditorReplaceChildrenOptions, type EditorReplaceNodeOptions, type EditorRootEntry, type EditorRootOwner, type EditorSchemaContent, type EditorSchemaContentRoot, type EditorSchemaContract, type EditorSchemaContractChange, type EditorSchemaContractChangeKind, type EditorSchemaContractContentProgram, type EditorSchemaContractContentRoot, type EditorSchemaContractDiff, type EditorSchemaContractElement, type EditorSchemaContractRoot, type EditorSchemaContribution, type EditorSchemaDeclaration, type EditorSchemaDefinition, type EditorSchemaDelta, type EditorSchemaDerivedDefinition, type EditorSchemaElement, type EditorSchemaElementOverride, type EditorSchemaElementOverrideInput, type EditorSchemaElementStructure, type EditorSchemaGetProperty, type EditorSchemaIdentity, type EditorSchemaNamedDefinition, type EditorSchemaOverride, type EditorSchemaOverrideInput, type EditorSchemaPlugin, type EditorSchemaProperty, type EditorSchemaPropertyOverride, type EditorSchemaPropertyOverrideInput, type EditorSchemaPropertyQuery, type EditorSchemaPropertyReadOptions, type EditorSchemaReadProperty, type EditorSchemaRepairCode, type EditorSchemaSource, type EditorSchemaStructureProperty, type EditorSchemaUnknownPolicy, type EditorSchemaValidationCode, type EditorSchemaValidationDiagnostic, EditorSchemaValidationError, type EditorSchemaValidationPropertyContext, type EditorSchemaVocabulary, EditorSelection, type EditorSelectionBlockOptions, type EditorSelectionTargetOptions, type EditorShortcut, type EditorSliceReadOptions, type EditorSnapshot, type EditorStateField, type EditorStateFragmentApi, type EditorStateMarksApi, type EditorStateNodesApi, type EditorStatePointsApi, type EditorStateRangesApi, type EditorStateRuntimeApi, type EditorStateSchemaApi, type EditorStateSelectionApi, type EditorStateSliceApi, type EditorStateTextApi, type EditorStateUniqueApi, type EditorStateValueApi, type EditorStateView, type EditorStateViewApi, type EditorTargetRuntime, type EditorTextChangeContext, type EditorTextChangeHandler, type EditorToggleBlockOptions, type EditorToggleMarkOptions, type EditorTransactionAnchor, type EditorTransactionAnchorApi, type EditorTransactionAnnotationsApi, type EditorTransactionBlocksApi, type EditorTransactionBreakApi, type EditorTransactionChangeContext, type EditorTransactionChangeHandler, type EditorTransactionChanged, type EditorTransactionChangesApi, type EditorTransactionDocumentChangeKind, type EditorTransactionEffectsApi, type EditorTransactionFragmentApi, type EditorTransactionMarksApi, type EditorTransactionNodesApi, type EditorTransactionPluginsApi, type EditorTransactionRecordsApi, type EditorTransactionRemoved, type EditorTransactionRootsApi, type EditorTransactionSelectionApi, type EditorTransactionSliceApi, type EditorTransactionSpecBuilder, type EditorTransactionTagsApi, type EditorTransactionTextApi, type EditorTransactionTopLevelRange, type EditorTransactionValueApi, type EditorUniqueHolder, type EditorUpdate, type EditorUpdateAnnotation, type EditorUpdateContext, type EditorUpdateMethods, type EditorUpdatePolicy, type EditorUpdatePolicyFor, type EditorUpdateTag, type EditorUpdateTagInput, type EditorUpdateTransaction, type EditorUpdateValueFromPlugin, type EditorValueFromOptions, type EditorValueFromPlugins, type EditorValueInput, type EditorValuePersistence, type EditorView, type EditorViewOptions, Element, ElementApi, type ElementContentRootSlot, ElementEntry, ElementEntryOf, ElementIdEntry, ElementIdPlugin, ElementIdPluginState, ElementIn, ElementInterface, ElementIsElementOptions, ElementOf, ElementOrTextIn, ElementOrTextOf, ElementStateApi, ElementStateDefinition, ElementStatePlugin, type ElementWith, ExitBreakPlugin, FormattingBlockEntry, FormattingContribution, FragmentPropMode, GetFragmentPropOptions, type GetInjectNodePropsOptions, type GetInjectNodePropsReturnType, type HandlerReturnType, HeadingLevel, HeadingRules, HighlightNode, HighlightResult, HighlightRules, type HistoryApi, HistoryDefinition, type HistoryOutcome, HistoryPlugin, HistoryPluginState, type HistoryResult, type HistorySettlement, HorizontalRuleRules, Hotkeys, type HtmlAttributes, type HtmlContentToken, type HtmlElementPatch, type HtmlMappingDiagnosticInput, type HtmlMatchValue, type HtmlMatcher, type HtmlNodeSpec, HtmlPlugin, type HtmlPrepareDiagnosticInput, type HtmlWrapperSpec, IS_APPLE, IndentChangeOptions, IndentDefinition, IndentPluginState, type InferApi, type InferConflicts, type InferDependencies, type InferEnabled, type InferName, type InferOwnApi, type InferOwnRead, type InferOwnUpdate, type InferPluginReadGroups, type InferPluginStoreState, type InferPluginUpdateGroups, type InferRead, type InferSelectors, type InferTargetPlugins, type InferUpdate, type InitialValue, type InjectNodeProps, InputRule, InputRuleEditor, InputRuleInsertTextOptions, InputRuleTarget, InputRulesConfig, InputRulesDefinition, type InsertBreakCommand, InsertBreakInputRule, InsertBreakInputRuleContext, InsertBreakInputRuleReadContext, InsertDataInputRule, InsertDataInputRuleContext, InsertDataInputRuleReadContext, type InsertNodesCommand, type InsertSoftBreakCommand, type InsertTextCommand, InsertTextInputRule, InsertTextInputRuleContext, InsertTextInputRuleReadContext, ItalicRules, type JsonEditorValue, type JsonNode, type LeafEdge, LeafPosition, type LeafStaticProps, LineHeightDefinition, LinkAttributes, LinkElement, LinkRules, ListElement, ListStyle, ListType, Location, LocationApi, LocationInterface, LogLevel, MarkComboRules, MarkInputRuleConfig, MarkInputRuleMatch, MarkKeysOf, type MarkdownDecodeContext, type MarkdownEncodeContext, type MarkdownMarkWrapContext, type MarkdownMarkWrapper, type MarkdownMarks, type MarkdownNodeKind, type MarkdownNodeKinds, type MarkdownNodeMapping, type MarkdownNodeMappingInput, type MarkdownPluginRegistry, type MarkdownRefusal, type MarkdownTagAttributeView, type MarkdownTagNode, MarksIn, MarksOf, MatchBlockFenceOptions, MatchBlockStartOptions, MatchDelimitedInlineOptions, type MaximizeMode, type MergeRules, type MoveSelectionCommand, type MoveUnit, type NamedEditorSchemaIdentity, type NamedRootKey, Node, NodeAncestorsOptions, NodeApi, NodeChildEntry, NodeChildrenOptions, type NodeComponent, NodeDescendantsOptions, type NodeDuplicateOptions, NodeElementsOptions, NodeEntry, NodeEntryIn, NodeEntryOf, NodeFindTextRangesOptions, NodeHasPropsOptions, NodeIn, type NodeInsertNodesOptions, type NodeInsertOptions, type NodeInsertSplitOptions, NodeInterface, NodeIsNodeOptions, type NodeKey, NodeLevelsOptions, type NodeLiftNodesOptions, NodeMatch, NodeMatchPredicate, type NodeMergeNodesOptions, type NodeMoveNodesOptions, type NodeMutationMethods, NodeNodesOptions, NodeOf, NodeProps, type NodeRemoveNodesOptions, type NodeReplaceChildrenOptions, NodeSelection, NodeSelectionMode, type NodeSetNodesOptions, type NodeSplitNodesOptions, type NodeStaticProps, type NodeTarget, NodeTextRangeEntry, NodeTextRangeMatch, NodeTextRangeQuery, NodeTextRangeRoot, NodeTextRangeView, NodeTextsOptions, NodeTypeSelector, type NodeUnsetNodesOptions, type NodeUnwrapNodesOptions, type NodeWrapNodesOptions, type NodeWriteVeto, type NodeWriteVetoInput, type NormalizeRules, type Nullable, OrderedListRules, OutdentListOptions, PLUGINS, type PartialBasePlugin, Path, PathAncestorsOptions, PathApi, PathInterface, PathLevelsOptions, type PersistedDocumentInput, PlainTextDiagnostic, PlainTextDocumentOptions, PlainTextEditorOptions, type PlainTextEncodeContext, type PlainTextNodeMapping, type PlainTextNodeMappingInput, PlainTextSerializeResult, type PluginActivationContext, type PluginApiFactory, type PluginApiFactoryContext, type PluginBaseContext, type PluginCandidateContext, type PluginCandidateEditor, type PluginCapabilities, type PluginCleanupContext, type PluginContribution, type PluginContributionInput, type PluginDefinition, type PluginDependency, type PluginDependencyReference, type PluginFormatContext, type PluginFormatModelView, type PluginFormatNode, type PluginFormatRegistry, type PluginFormatSchemaView, type PluginInput, type PluginMigrationContext, PluginName, type PluginOwnUpdate, type PluginPoint, PluginPublicationError, type PluginReadContext, type PluginReadFactory, type PluginReadFactoryContext, type PluginReadMiddlewareFactory, type PluginReadState, type PluginReconfigureOptions, type PluginReference, type PluginSchema, type PluginSchemaContext, type PluginSchemaDeclaration, type PluginSchemaElement, type PluginSchemaMark, type PluginSchemaReferences, type PluginSelector, type PluginSelectorArgs, type PluginSelectorMethods, type PluginSelectorReturn, type PluginSelectors, type PluginShortcutInput, type PluginSlot, type PluginSlotLike, type PluginSlotValue, type PluginState, type PluginStore, type PluginTransaction, type PluginTypeProvider, type PluginTypes, type PluginUpdate, type PluginUpdateFactory, type PluginUpdateFactoryContext, type PluginsFromOptions, type PluginsOf, Point, PointApi, PointEntry, PointInterface, type ProjectedRangeSegment, type PropertyBooleanDescriptor, type PropertyBuilderApi, type PropertyEnumDescriptor, type PropertyJsonDescriptor, type PropertyJsonOptions, type PropertyNumberDescriptor, type PropertyOptionsOf, type PropertySetDescriptor, type PropertySetOptions, type PropertyStringDescriptor, type PropertyValidation, type PropertyValueDescriptor, type PropertyValueKind, type PropertyValueOf, type PropertyValueOptions, Range, type RangeAnchorAssociation, RangeApi, type RangeDirection, RangeEdgesOptions, RangeInterface, type RangeMode, type RemoveMarkCommand, type RemoveNodesCommand, type RenderElementFn, type RenderElementProps, type RenderElementSlots, type RenderLeafFn, type RenderLeafProps, type RenderStaticNodeWrapper, type RenderStaticNodeWrapperFunction, type RenderStaticNodeWrapperProps, type RenderTextFn, type RenderTextHostProps, type RenderTextPieceProps, type RenderTextProps, type ReplaceSliceCommand, ResolvedInputRule, ResolvedInputRulesMeta, type RootKey, type RuleDecision, type SchemaBuiltInGroupName, type SchemaContent, type SchemaContentDefault, type SchemaContentInput, type SchemaContentOptions, type SchemaContentPrefixSlot, type SchemaContentRoot, type SchemaContentRootContribution, type SchemaContentRootInput, type SchemaContentRootOwnership, type SchemaContentRootSlotsFor, type SchemaContentRootStructure, type SchemaContentRule, type SchemaDescendant, type SchemaElement, type SchemaElementConstructionPropertiesFor, type SchemaElementFor, type SchemaElementHandle, type SchemaElementInput, type SchemaElementProperties, type SchemaElementPropertiesFor, type SchemaElementProperty, type SchemaElementPropertyDefinition, type SchemaElementPropertyKeys, type SchemaElementPropertyOptions, type SchemaElementPropertyValue, type SchemaElementShapeFor, type SchemaElementSlicePolicy, type SchemaElementStructure, type SchemaElementTarget, type SchemaElementTypes, type SchemaGroup, type SchemaGroupNames, type SchemaGroupOptions, type SchemaKeyPrefix, type SchemaPluginsOf, type SchemaProperty, type SchemaPropertyCopyPolicy, type SchemaPropertyDefinition, type SchemaPropertyExclusiveGroup, type SchemaPropertyHandle, type SchemaPropertyHandleValue, type SchemaPropertyIds, type SchemaPropertyKey, type SchemaPropertyLandingPolicy, type SchemaPropertyReferences, type SchemaPropertyRole, type SchemaPropertySplitPolicy, type SchemaPropertyTypeChangePolicy, type SchemaRecordSet, type SchemaRootNames, type SchemaTarget, type SchemaText, type SchemaTextBlockOptions, type SchemaTextProperties, type SchemaTextProperty, type SchemaTextPropertyDefinition, type SchemaTextPropertyKeys, type SchemaTextPropertyOptions, type SchemaTypesTarget, type SchemaValue, type SchemaValueFromPlugins, ScriptRules, ScriptValue, type ScrollIntoViewTarget, type ScrollMode, type SelectCommand, Selection, SelectionApi, SelectionAssociation, type SelectionCollapseOptions, type SelectionEdge, SelectionInputRuleContext, type SelectionMode, type SelectionMoveOptions, type SelectionMutationMethods, type SelectionRules, type SelectionSetPointOptions, SelectionValue, type SerializedEditorEffect, type SerializedEditorSelection, type SerializedEditorValue, type SetNodesCommand, type SetSelectionCommand, SingleBlockPlugin, SingleLinePlugin, type SliceLanding, type SliceLandingInput, type SliceLandingTarget, type SnapshotIndex, type SnapshotInput, Span, SpanApi, SpanInterface, type StateFieldCollabPolicy, type StateFieldDescriptor, type StateFieldHistoryPolicy, type StateFieldInitial, type StateFieldValueInput, type StaticRenderLeafProps, StrikethroughRules, type StructuralRuleContext, type StructuralRuleEditor, type TargetFreshnessRequest, TaskListRules, Text, TextAlignDefinition, TextApi, type TextDeleteOptions, type TextDirection, TextEntry, TextEntryIn, TextEntryOf, TextEqualsOptions, TextIn, TextIndentDefinition, TextIndentPluginState, type TextInsertFragmentOptions, type TextInsertTextOptions, TextInterface, type TextMutationMethods, TextOf, type TextRemoveTextOptions, TextSelection, type TextStaticProps, TextSubstitutionInputRuleConfig, TextSubstitutionMatch, TextSubstitutionPattern, type TextUnit, type TextUnitAdjustment, type TextWith, type ToggleBlockCommand, ToggleHeadingOptions, ToggleListOptions, type ToggleMarkCommand, type TopLevelRuntimeRange, TrailingBlockDefinition, TrailingBlockPlugin, TrailingBlockPluginState, type TransactionSpec, type TransferAdoptInput, type TransferApi, type TransferCheck, type TransferDefinition, type TransferDiagnostic, type TransferEdge, type TransferInput, type TransferIntent, type TransferLandingInput, type TransferLandingTarget, type TransferOutcome, type TransferPatch, type TransferPatchProperties, type TransferPayload, TransferPlugin, type TransferRead, type TransferRefusalReason, type TransferRelation, type TransferSide, type TransferSideInput, type TransferSourceInput, type TransferTarget, type TransferVeto, type TransferVetoInput, type TransferWrap, TransformInputRuleContext, type TransformOptions, type TxDeclaredMethod, type TxMethodDeclarations, type TxOnlyMethod, UnderlineRules, type UnknownObject, UnwrapLinkOptions, UpsertLinkOptions, type Value, type ValueOf, type WithAnyName, type WithRequiredName, WrapLinkOptions, applyDeepToNodes, authoredVeto, compileEditorSchemaContract, createBlockFenceInputRule, createBlockStartInputRule, createEditor, createEditorView, createHotkey, createMarkInputRule, createTextSubstitutionInputRule, decodeEditorEffect, defaultsDeepToNodes, defineCommand$1 as defineCommand, defineEditorSchema, defineEffect, defineInputRule, definePlugin, definePluginPoint, definePluginSlot, defineStateField, defineUpdateAnnotation, diffEditorSchemaContracts, documentReplacement, editorCommands, editorReads, encodeEditorEffect, formatting, getEditorRuntimeOwner, getFragmentProp, getInjectMatch, getLinkHref, getPluginNodeClass, inputRuleVeto, invertEffect, isDefined, isEditor, isHotkey, isNominalPluginDescriptor, isOrderedList, isPluginElementClass, isPluginNodeClass, isUrl, locateAt, mapEffect, matchBlockStart, matchDelimitedInline, mergeDeepToNodes, nanoid, nodeWriteVeto, property, readEditorSchemaContract, getSelection as readEditorSelection, restoreEditorSchemaContract, schema$1 as schema, screenReaderAnnouncementEffect, serializePlainText, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, target, transfer, transferVeto, txLocate, txOnly, txSelection, valueCodecs };
|
|
1
|
+
import { $ as EditorBreakExitOptions, $a as Path, $c as SnapshotIndex, $i as MarksOf, $l as TransferSourceInput, $o as PropertyBuilderApi, $r as EditorTransactionSpecBuilder, $s as SchemaElementStructure, A as CompatibleEditorCommand, Aa as NodeMutationMethods, Ac as SchemaTextPropertyOptions, Ai as ElementIsElementOptions, Al as ToggleBlockCommand, An as EditorSchemaDeclaration, Ao as PluginReadContext, Ar as EditorTextChangeHandler, As as SchemaContentPrefixSlot, At as EditorEffectCollabTransport, B as DeleteFragmentCommand, Ba as NodeTarget, Bc as SelectionMode, Bi as InsertNodesCommand, Bl as TransferIntent, Bn as EditorSchemaNamedDefinition, Br as EditorTransactionChanged, Bs as SchemaElementConstructionPropertiesFor, Bt as EditorInstalledUpdateGroups, Bu as isEditor, C as BlockDuplicateOptions, Ca as NodeKey, Cc as SchemaTarget, Ci as Element, Cl as TextMutationMethods, Cn as EditorSchemaContractChangeKind, Cr as EditorStateUniqueApi, Ct as EditorDocumentRange, Da as NodeMatchPredicate, Dc as SchemaTextProperty, Di as ElementIdTarget, Dl as TextTarget, Dn as EditorSchemaContractElement, Do as PluginPoint, Ds as SchemaContentDefault, Dt as EditorEffectCollabDecodeContext, Du as editorCommands, E as BooleanMarksOf, Ea as NodeMatch, Ec as SchemaTextProperties, Ei as ElementEntryOf, El as TextSelection, En as EditorSchemaContractDiff, Eo as PluginMigrationContext, Er as EditorStateViewApi, Es as SchemaContent, Et as EditorEffect, Eu as documentReplacement, F as DecorationAttributes, Fa as NodeReplaceChildrenOptions, Fc as Selection, Fi as HistoryOutcome, Fl as TransferApi, Fn as EditorSchemaElementOverride, Fr as EditorTransactionAnnotationsApi, Fs as SchemaContentRootSlotsFor, Ft as EditorFragmentDeletionOptions, G as DescendantEntryOf, Ga as NodeTextRangeView, Gc as SerializedEditorEffect, Gi as JsonNode, Gl as TransferPatchProperties, Gn as EditorSchemaProperty, Go as PluginsFromOptions, Gr as EditorTransactionMarksApi, Gs as SchemaElementPropertiesFor, Gt as EditorLifecycleErrorSink, H as Descendant, Ha as NodeTextRangeMatch, Hc as SelectionMutationMethods, Hi as InsertTextCommand, Hl as TransferLandingTarget, Hn as EditorSchemaOverrideInput, Ho as PluginUpdateFactory, Hr as EditorTransactionDocumentChangeKind, Hs as SchemaElementHandle, Ht as EditorJsonValue, Hu as mapEffect, I as DecorationRefresh, Ia as NodeSelection, Ic as SelectionApi, Ii as HistoryResult, Il as TransferCheck, In as EditorSchemaElementOverrideInput, Io as PluginSlot, Ir as EditorTransactionBlocksApi, Is as SchemaContentRootStructure, It as EditorFragmentReadOptions, J as DocumentChange, Ja as NodeUnsetNodesOptions, Jc as SetNodesCommand, Ji as Location, Jl as TransferRead, Jn as EditorSchemaPropertyQuery, Jo as PointApi, Jr as EditorTransactionRecordsApi, Js as SchemaElementPropertyKeys, Jt as EditorNextOptions, K as DescendantIn, Ka as NodeTextsOptions, Kc as SerializedEditorSelection, Ki as LeafEdge, Kl as TransferPayload, Kn as EditorSchemaPropertyOverride, Ko as PluginsOf, Kr as EditorTransactionNodesApi, Ks as SchemaElementProperty, Kt as EditorMarks, Ku as property, L as DecorationSource, La as NodeSelectionMode, Lc as SelectionAssociation, Li as HistorySettlement, Ll as TransferDiagnostic, Ln as EditorSchemaElementStructure, Lo as PluginSlotLike, Lr as EditorTransactionBreakApi, Ls as SchemaContentRule, Ma as NodeOf, Mc as SchemaValue, Mi as ElementOrTextIn, Ml as TopLevelRuntimeRange, Mn as EditorSchemaDelta, Mo as PluginReadFactoryContext, Mr as EditorToggleMarkOptions, Ms as SchemaContentRootContribution, Mt as EditorEffectType, Mu as getEditorRuntimeOwner, N as DebugValueScrubber, Na as NodeProps, Nc as SchemaValueFromPlugins, Ni as ElementOrTextOf, Nl as TransactionSpec, Nn as EditorSchemaDerivedDefinition, No as PluginReadMiddlewareFactory, Nr as EditorTransactionAnchor, Ns as SchemaContentRootInput, Nt as EditorElementBehavior, O as ChildOf, Oa as NodeMergeNodesOptions, Oc as SchemaTextPropertyDefinition, Oi as ElementIn, Ol as TextUnit, On as EditorSchemaContractRoot, Or as EditorTargetRuntime, Os as SchemaContentInput, Ot as EditorEffectCollabEncodeContext, Ou as editorReads, P as Decoration, Pa as NodeRemoveNodesOptions, Pc as SelectCommand, Pi as HistoryApi, Pl as TransferAdoptInput, Pn as EditorSchemaElement, Po as PluginReconfigureOptions, Pr as EditorTransactionAnchorApi, Ps as SchemaContentRootOwnership, Pt as EditorElementEntry, Pu as getSelection, Q as EditorBlockToggleOptions, Qa as NodeWriteVetoInput, Qc as SliceLandingTarget, Qi as MarksIn, Ql as TransferSideInput, Qn as EditorSchemaSource, Qo as PropertyBooleanDescriptor, Qr as EditorTransactionSliceApi, Qs as SchemaElementSlicePolicy, Qt as EditorNodeGetOptions, Qu as setDebugValueScrubber, Ra as NodeSetNodesOptions, Rc as SelectionCollapseOptions, Ri as InitialValue, Rl as TransferEdge, Rn as EditorSchemaGetProperty, Ro as PluginSlotValue, Rr as EditorTransactionChangeContext, Rs as SchemaDescendant, Rt as EditorInstalledApiGroups, Ru as invertEffect, S as BaseText, Sa as NodeIsNodeOptions, Sc as SchemaRootNames, Si as EditorViewOptions, Sl as TextInterface, Sn as EditorSchemaContractChange, Sr as EditorStateTextApi, Ss as ReplaceSliceCommand, Su as defineUpdateAnnotation, T as BooleanMarkKeysOf, Ta as NodeLiftNodesOptions, Tc as SchemaTextBlockOptions, Ti as ElementEntry, Tl as TextRemoveTextOptions, Tn as EditorSchemaContractContentRoot, Tr as EditorStateView, Ts as SchemaBuiltInGroupName, Tt as EditorDocumentValue, Tu as diffEditorSchemaContracts, U as DescendantEntry, Ua as NodeTextRangeQuery, Uc as SelectionSetPointOptions, Ul as TransferOutcome, Un as EditorSchemaPlugin, Uo as PluginUpdateFactoryContext, Ur as EditorTransactionEffectsApi, Us as SchemaElementInput, Ut as EditorLevelsOptions, V as DerivedEditorSchemaIdentity, Va as NodeTextRangeEntry, Vc as SelectionMoveOptions, Vi as InsertSoftBreakCommand, Vl as TransferLandingInput, Vn as EditorSchemaOverride, Vo as PluginTypes, Vr as EditorTransactionChangesApi, Vs as SchemaElementFor, Vt as EditorIsEditorOptions, Vu as locateAt, W as DescendantEntryIn, Wa as NodeTextRangeRoot, Wc as SelectionValue, Wi as JsonEditorValue, Wl as TransferPatch, Wr as EditorTransactionFragmentApi, Ws as SchemaElementProperties, Wt as EditorLifecycleError, Wu as nodeWriteVeto, X as EditorAboveOptions, Xa as NodeWrapNodesOptions, Xc as SliceLanding, Xi as LocationInterface, Xl as TransferRelation, Xn as EditorSchemaReadProperty, Xo as PointInterface, Xr as EditorTransactionRootsApi, Xs as SchemaElementPropertyValue, Xt as EditorNodeChangeHandler, Xu as schema$1, Ya as NodeUnwrapNodesOptions, Yc as SetSelectionCommand, Yi as LocationApi, Yl as TransferRefusalReason, Yn as EditorSchemaPropertyReadOptions, Yo as PointEntry, Yr as EditorTransactionRemoved, Ys as SchemaElementPropertyOptions, Yt as EditorNodeChangeContext, Yu as restoreEditorSchemaContract, Z as EditorBlockOptions, Za as NodeWriteVeto, Zc as SliceLandingInput, Zi as MarkKeysOf, Zl as TransferSide, Zn as EditorSchemaRepairCode, Zo as ProjectedRangeSegment, Zr as EditorTransactionSelectionApi, Zs as SchemaElementShapeFor, Zt as EditorNodeChangeKind, Zu as screenReaderAnnouncementEffect, _ as AuthoredVeto, _a as NodeHasPropsOptions, _c as SchemaPropertyReferences, _i as EditorValueFromOptions, _l as TextEntryOf, _n as EditorRootEntry, _r as EditorStateRangesApi, _s as RangeEdgesOptions, _t as EditorCommitRuntimeChangeKind, _u as defineEditorSchema, a as AncestorIn, aa as Node, ac as SchemaKeyPrefix, ad as transferVeto, ai as EditorUpdate, al as StateFieldDescriptor, an as EditorRead, ao as PlacedTarget, ar as EditorSchemaValidationPropertyContext, as as PropertySetDescriptor, at as EditorCommandDispatch, au as TxMethodDeclarations, b as BasePoint, ba as NodeInsertSplitOptions, bc as SchemaPropertyTypeChangePolicy, bl as TextInsertFragmentOptions, bn as EditorSchemaContentRoot, br as EditorStateSelectionApi, bs as RemoveMarkCommand, bt as EditorCoreUpdateTransaction, bu as definePluginSlot, c as AnchorAssociation, ca as NodeChildEntry, cc as SchemaProperty, cd as txSelection, ci as EditorUpdateMethods, cl as StateFieldValueInput, cn as EditorReadDescriptor, co as PluginApiFactory, cr as EditorSelectionBlockOptions, cs as PropertyValidation, ct as EditorCommandPlace, cu as ValueOf, d as AnchorValue, da as NodeDuplicateOptions, dc as SchemaPropertyExclusiveGroup, di as EditorUpdateTag, dl as Text, dn as EditorReadMethodTree, do as PluginCandidateEditor, dr as EditorSnapshot, ds as PropertyValueOf, dt as EditorCommit, du as authoredVeto, ea as MaximizeMode, ec as SchemaElementTarget, ed as setEditorReadOnly, ei as EditorTransactionTagsApi, el as SnapshotInput, en as EditorNodeUnsetOptions, eo as PathAncestorsOptions, er as EditorSchemaStructureProperty, es as PropertyEnumDescriptor, et as EditorCanonicalUpdateTag, eu as TransferTarget, fa as NodeElementsOptions, fc as SchemaPropertyHandle, fi as EditorUpdateTagInput, fl as TextApi, fn as EditorReadMethods, fo as PluginCapabilities, fr as EditorStateField, fs as PropertyValueOptions, ft as EditorCommitChangeKind, g as AuthoredTouch, ga as NodeFindTextRangesOptions, gc as SchemaPropertyLandingPolicy, gi as EditorUpdateValueFromPlugin, gl as TextEntryIn, gn as EditorReplaceNodeOptions, go as PluginDefinition, gr as EditorStatePointsApi, gs as RangeDirection, gt as EditorCommitListener, gu as defineCommand$1, ha as NodeEntryOf, hc as SchemaPropertyKey, hl as TextEntry, hn as EditorReplaceChildrenOptions, ho as PluginContributionInput, hr as EditorStateNodesApi, hs as RangeApi, ht as EditorCommitHandler, hu as decodeEditorEffect, i as AncestorEntryOf, ia as NamedRootKey, ic as SchemaGroupOptions, id as transfer, ii as EditorUniqueHolder, il as StateFieldCollabPolicy, in as EditorPreviousOptions, io as PersistedDocumentInput, ir as EditorSchemaValidationError, is as PropertyOptionsOf, it as EditorCommandDescriptor, iu as TxDeclaredMethod, j as ContentSlice, ja as NodeNodesOptions, jc as SchemaTypesTarget, ji as ElementOf, jl as ToggleMarkCommand, jn as EditorSchemaDefinition, jo as PluginReadFactory, jr as EditorToggleBlockOptions, js as SchemaContentRoot, jt as EditorEffectHistoryReplayResult, k as CollapseSelectionCommand, ka as NodeMoveNodesOptions, kc as SchemaTextPropertyKeys, ki as ElementInterface, kl as TextUnitAdjustment, kn as EditorSchemaContribution, ko as PluginPublicationError, kr as EditorTextChangeContext, ks as SchemaContentOptions, kt as EditorEffectCollabReplay, ku as encodeEditorEffect, l as AnchorDeletionPolicy, la as NodeChildrenOptions, lc as SchemaPropertyCopyPolicy, li as EditorUpdatePolicy, ln as EditorReadInput, lo as PluginApiFactoryContext, lr as EditorSelectionTargetOptions, ls as PropertyValueDescriptor, lt as EditorCommandResult, lu as WithNodeTarget, m as AuthoredProjectionDiagnostic, ma as NodeEntryIn, mc as SchemaPropertyIds, ml as TextDirection, mn as EditorReadResult, mo as PluginContribution, mr as EditorStateMarksApi, ms as RangeAnchorAssociation, mt as EditorCommitContext, mu as createEditorView, n as Ancestor, na as MoveUnit, nc as SchemaGroup, ni as EditorTransactionTopLevelRange, nl as SpanApi, nn as EditorNodesReadOptions, no as PathInterface, nr as EditorSchemaValidationCode, ns as PropertyJsonOptions, nt as EditorCommandAroundHandler, nu as TransferVetoInput, o as AncestorOf, oa as NodeAncestorsOptions, od as txLocate, oi as EditorUpdateAnnotation, ol as StateFieldHistoryPolicy, on as EditorReadAroundHandler, or as EditorSchemaVocabulary, os as PropertySetOptions, ot as EditorCommandHandler, ou as TxOnlyMethod, p as AuthoredDocumentProjection, pa as NodeEntry, pc as SchemaPropertyHandleValue, pi as EditorUpdateTransaction, pl as TextDeleteOptions, pn as EditorReadRegistration, po as PluginCleanupContext, pr as EditorStateFragmentApi, ps as Range, pt as EditorCommitChanged, pu as compileEditorSchemaContract, q as DescendantOf, qa as NodeTypeSelector, qc as SerializedEditorValue, qi as LeafPosition, qn as EditorSchemaPropertyOverrideInput, qo as Point, qr as EditorTransactionPluginsApi, qs as SchemaElementPropertyDefinition, qt as EditorMarksOf, qu as readEditorSchemaContract, r as AncestorEntry, ra as NamedEditorSchemaIdentity, rc as SchemaGroupNames, rd as target, ri as EditorTransactionValueApi, rl as SpanInterface, rn as EditorParentOptions, ro as PathLevelsOptions, rr as EditorSchemaValidationDiagnostic, rs as PropertyNumberDescriptor, rt as EditorCommandContinuation, ru as TransferWrap, s as Anchor, sa as NodeApi, sc as SchemaPluginsOf, sd as txOnly, si as EditorUpdateContext, sl as StateFieldInitial, sn as EditorReadContext, so as PluginActivationContext, sr as EditorSelection, ss as PropertyStringDescriptor, st as EditorCommandInput, su as Value, t as AddMarkCommand, ta as MoveSelectionCommand, tc as SchemaElementTypes, td as setEditorViewing, ti as EditorTransactionTextApi, tl as Span, tn as EditorNodesOptions, to as PathApi, tr as EditorSchemaUnknownPolicy, ts as PropertyJsonDescriptor, tt as EditorCommand, tu as TransferVeto, u as AnchorOptions, ua as NodeDescendantsOptions, uc as SchemaPropertyDefinition, ud as valueCodecs, ui as EditorUpdatePolicyFor, ul as TargetFreshnessRequest, un as EditorReadMethodRecord, uo as PluginCandidateContext, ur as EditorSliceReadOptions, us as PropertyValueKind, ut as EditorCommands, v as BaseElement, va as NodeIn, vc as SchemaPropertyRole, vi as EditorValueFromPlugins, vl as TextEqualsOptions, vn as EditorRootOwner, vr as EditorStateRuntimeApi, vs as RangeInterface, vt as EditorCoreStateView, vu as defineEffect, wa as NodeLevelsOptions, wc as SchemaText, wi as ElementApi, wl as TextOf, wn as EditorSchemaContractContentProgram, wo as PluginInput, wr as EditorStateValueApi, ws as RootKey, wt as EditorDocumentRecords, x as BaseRange, xa as NodeInterface, xc as SchemaRecordSet, xi as EditorView, xl as TextInsertTextOptions, xn as EditorSchemaContract, xr as EditorStateSliceApi, xs as RemoveNodesCommand, xt as EditorDirectCommandDispatch, xu as defineStateField, y as BaseNode, ya as NodeInsertNodesOptions, yc as SchemaPropertySplitPolicy, yi as EditorValuePersistence, yl as TextIn, yn as EditorSchemaContent, yo as PluginDependencyReference, yr as EditorStateSchemaApi, ys as RangeMode, yt as EditorCoreUpdateMethods, yu as definePluginPoint, z as DeleteCommand, za as NodeSplitNodesOptions, zc as SelectionEdge, zi as InsertBreakCommand, zl as TransferInput, zn as EditorSchemaIdentity, zo as PluginTypeProvider, zr as EditorTransactionChangeHandler, zs as SchemaElement, zt as EditorInstalledReadGroups } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import { h as EditorApplicationSchema } from "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import { $a as InferConflicts, $i as HistoryPlugin, $n as HeadingRules, $r as InputRulesConfig, $t as UpsertLinkOptions, Aa as PluginFormatSchemaView, Ai as AutoScrollChangeKind, An as CapturedFormat, Ao as PluginSelector, Ar as BaseParagraphDefinition, At as PlainTextSerializeResult, B as InjectNodeProps, Ba as nanoid, Bi as DebugDefinition, Bn as BaseStrikethroughPlugin, Bo as StructuralRuleEditor, Br as HtmlPlugin, Bt as OutdentListOptions, C as BasePluginOn, Ca as MarkdownRefusal, Ci as TransformInputRuleContext, Cn as BaseTextAlignPlugin, Co as PluginReference, Cr as RenderTextFn, Ct as PluginTransaction, Da as PluginFormatContext, Di as ElementIdPlugin, Dn as TextIndentDefinition, Do as PluginSchemaElement, Dr as RenderLeafFn, Dt as PlainTextDiagnostic, E as ConfiguredBasePlugin, Ea as HtmlMappingDiagnosticInput, Ei as ElementStatePlugin, En as TextAlignDefinition, Eo as PluginSchemaDeclaration, Er as RenderTextProps, F as HtmlMatchValue, Fa as HandlerReturnType, Fi as DomPluginState, Fn as BaseCodePlugin, Fo as PluginStore, Fr as createBlockStartInputRule, Ft as BulletedListRules, G as PluginShortcutInput, Gi as LogLevel, Gn as ItalicRules, Gr as BlockStartInputRuleConfig, Gt as BaseLinkDefinition, H as LeafStaticProps, Hi as DebugPlugin, Hn as BoldRules, Ho as WithRequiredName, Hr as BaseInputRule, Ht as ToggleListOptions, I as HtmlMatcher, Ia as DocxNodeMapping, Ii as DomPluginUpdate, In as BaseHighlightPlugin, Ir as createMarkInputRule, It as ListElement, J as RenderStaticNodeWrapperProps, Ja as DeleteRules, Ji as AffinityPlugin, Jn as ScriptValue, Jo as UnknownObject, Jr as DelimitedInlineInputRuleMatch, Jt as CreateLinkNodeOptions, K as RenderStaticNodeWrapper, Ka as BreakRules, Ki as AffinityDefinition, Kn as MarkComboRules, Ko as Nullable, Kr as BlockStartInputRuleMatch, Kt as BaseLinkPlugin, L as HtmlNodeSpec, La as ElementWith, Li as ScrollIntoViewTarget, Ln as BaseItalicPlugin, Lo as RuleDecision, Lr as createTextSubstitutionInputRule, Lt as ListStyle, M as HtmlAttributes, Ma as RenderElementFn, Mi as AutoScrollOptions, Mn as FormattingContribution, Mo as PluginSelectorMethods, Mr as inputRuleVeto, Mt as BULLETED_LIST_STYLES, N as HtmlContentToken, Na as RenderElementProps, Ni as AutoScrollUpdate, Nn as formatting, No as PluginSelectorReturn, Nr as defineInputRule, Nt as BaseListDefinition, O as DeclaredPluginShortcutInput, Oa as PluginFormatModelView, Oi as ElementIdPluginState, On as TextIndentPluginState, Oo as PluginSchemaMark, Or as RenderLeafProps, Ot as PlainTextDocumentOptions, P as HtmlElementPatch, Pa as RenderElementSlots, Pi as DomApi, Pn as BaseBoldPlugin, Po as PluginSelectors, Pr as createBlockFenceInputRule, Pt as BaseListPlugin, Qa as InferApi, Qi as HistoryDefinition, Qn as HeadingLevel, Qr as InputRuleTarget, Qt as UnwrapLinkOptions, R as HtmlPrepareDiagnosticInput, Ra as PluginFormatNode, Ri as ScrollMode, Rn as BaseKbdPlugin, Ro as SelectionRules, Rr as matchBlockStart, Rt as ListType, S as BasePluginImplementationContext, Sa as MarkdownPluginRegistry, Si as TextSubstitutionPattern, Sn as BaseLineHeightPlugin, Sr as EditableProps, St as PluginState, T as BasePluginPortal, Ta as MarkdownTagNode, Ti as ElementStateDefinition, Tn as LineHeightDefinition, To as PluginSchemaContext, Tr as RenderTextPieceProps, U as NodeStaticProps, Ua as BaseInjectProps, Ui as DebugPluginState, Un as CodeRules, Ur as BlockFenceInputRuleConfig, Ut as isOrderedList, Vi as DebugErrorType, Vn as BaseUnderlinePlugin, Vo as WithAnyName, Vt as TaskListRules, W as PartialBasePlugin, Wa as BasePluginDefinition, Wi as EditorError, Wn as HighlightRules, Wr as BlockFenceInputRuleMatch, X as TransformOptions, Xa as GetInjectNodePropsOptions, Xi as TransferDefinition, Xn as UnderlineRules, Xr as InputRuleEditor, Xt as LinkElement, Y as TextStaticProps, Ya as EditOnlyConfig, Yi as AffinityPluginUpdate, Yn as StrikethroughRules, Yr as InputRule, Yt as LinkAttributes, Za as GetInjectNodePropsReturnType, Zi as TransferPlugin, Zn as BaseHeadingPlugin, Zr as InputRuleInsertTextOptions, Zt as LinkRules, _ as BasePlugin, _a as MarkdownMarks, _i as ResolvedInputRule, _n as Alignment, _r as getFragmentProp, _t as NodeInsertOptions, a as SingleLinePlugin, ai as InsertDataFollowUpInputRule, an as IndentPluginState, ao as InferOwnUpdate, ar as getPluginNodeClass, b as BasePluginDefinitionInput, ba as MarkdownNodeMapping, bi as TextSubstitutionInputRuleConfig, bn as BaseFontFamilyPlugin, br as ApplyDeepToNodesOptions, c as PLUGINS, ci as InsertDataInputRuleReadContext, cn as BaseCodeBlockPlugin, co as InferPluginUpdateGroups, cr as mergeDeepToNodes, ct as BlockInsertOptions, da as PlainTextNodeMapping, di as InsertTextInputRuleReadContext, dn as CodeBlockElement, do as InferSelectors, dr as Hotkeys, ea as HistoryPluginState, ei as InputRulesDefinition, en as WrapLinkOptions, eo as InferDependencies, er as ToggleHeadingOptions, et as CreateEditorOptions, fa as PlainTextNodeMappingInput, fi as MarkInputRuleConfig, fn as CodeHighlightDefinition, fo as InferTargetPlugins, fr as createHotkey, ga as MarkdownMarkWrapper, gi as MatchDelimitedInlineOptions, gn as HighlightResult, gr as GetFragmentPropOptions, ha as MarkdownMarkWrapContext, hi as MatchBlockStartOptions, hn as HighlightNode, ho as NodeComponent, hr as FragmentPropMode, i as TrailingBlockPluginState, ii as InsertDataFollowUpContext, in as IndentDefinition, io as InferOwnRead, ir as HorizontalRuleRules, j as EditorShortcut, ja as ElementContentRootSlot, ji as AutoScrollChangesMap, jn as FormattingBlockEntry, jo as PluginSelectorArgs, jr as BaseParagraphPlugin, jt as serializePlainText, k as Decorate, ka as PluginFormatRegistry, ki as AutoScrollApi, kn as BaseFormattingPlugin, ko as PluginSchemaReferences, kr as StaticRenderLeafProps, kt as PlainTextEditorOptions, l as PluginName, li as InsertTextInputRule, ln as BaseCodeHighlightPlugin, lr as isUrl, lt as BlockUpsertOptions, ma as MarkdownEncodeContext, mi as MatchBlockFenceOptions, mn as CodeHighlightPluginState, mo as MergeRules, mr as getInjectMatch, n as TrailingBlockDefinition, ni as InsertBreakInputRuleContext, nn as BaseIndentPlugin, no as InferName, nr as BaseHorizontalRulePlugin, o as SingleBlockPlugin, oi as InsertDataInputRule, oo as InferPluginReadGroups, or as isPluginElementClass, ot as createEditor, pa as MarkdownDecodeContext, pi as MarkInputRuleMatch, pn as CodeHighlightLowlight, po as InferUpdate, pr as isHotkey, q as RenderStaticNodeWrapperFunction, qa as DefinitionOf, qi as AffinityEdgeNodes, qn as ScriptRules, qo as AnyObject, qr as DefinedInsertDataFollowUpInputRule, qt as BaseLinkPluginState, r as TrailingBlockPlugin, ri as InsertBreakInputRuleReadContext, rn as IndentChangeOptions, ro as InferOwnApi, rr as BlockquoteRules, rt as EditorValueInput, s as ExitBreakPlugin, si as InsertDataInputRuleContext, sn as CodeBlockRules, so as InferPluginStoreState, sr as isPluginNodeClass, st as BasePluginInput, t as isNominalPluginDescriptor, ta as definePlugin, ti as InsertBreakInputRule, tn as getLinkHref, to as InferEnabled, tr as BaseBlockquotePlugin, u as Editor, ua as PlainTextEncodeContext, ui as InsertTextInputRuleContext, un as CodeBlockDefinition, uo as InferRead, ur as isDefined, v as BasePluginConfiguration, va as MarkdownNodeKind, vi as ResolvedInputRulesMeta, vn as BaseFontBackgroundColorPlugin, vo as NormalizeRules, vr as IS_APPLE, w as BasePluginOverride, wa as MarkdownTagAttributeView, wi as ElementStateApi, wn as BaseTextIndentPlugin, wo as PluginSchema, wr as RenderTextHostProps, wt as PluginUpdate, x as BasePluginExtendInput, xa as MarkdownNodeMappingInput, xi as TextSubstitutionMatch, xn as BaseFontSizePlugin, xo as PluginDependency, xr as applyDeepToNodes, xt as PluginReadState, y as BasePluginContext, ya as MarkdownNodeKinds, yi as SelectionInputRuleContext, yn as BaseFontColorPlugin, yo as PluginBaseContext, yr as defaultsDeepToNodes, yt as PluginOwnUpdate, z as HtmlWrapperSpec, za as TextWith, zi as DebugApi, zn as BaseScriptPlugin, zo as StructuralRuleContext, zr as matchDelimitedInline, zt as OrderedListRules } from "./core-BqR-fEDp.js";
|
|
4
|
+
export { type AddMarkCommand, AffinityDefinition, AffinityEdgeNodes, AffinityPlugin, AffinityPluginUpdate, Alignment, Ancestor, AncestorEntry, AncestorEntryOf, AncestorIn, AncestorOf, type Anchor, type AnchorAssociation, type AnchorDeletionPolicy, type AnchorOptions, type AnchorValue, type AnyObject, ApplyDeepToNodesOptions, type AuthoredDocumentProjection, type AuthoredProjectionDiagnostic, type AuthoredTouch, type AuthoredVeto, type AutoScrollApi, type AutoScrollChangeKind, type AutoScrollChangesMap, type AutoScrollOptions, type AutoScrollUpdate, BULLETED_LIST_STYLES, BaseBlockquotePlugin, BaseBoldPlugin, BaseCodeBlockPlugin, BaseCodeHighlightPlugin, BaseCodePlugin, BaseElement, BaseFontBackgroundColorPlugin, BaseFontColorPlugin, BaseFontFamilyPlugin, BaseFontSizePlugin, BaseFormattingPlugin, BaseHeadingPlugin, BaseHighlightPlugin, BaseHorizontalRulePlugin, BaseIndentPlugin, type BaseInjectProps, BaseInputRule, BaseItalicPlugin, BaseKbdPlugin, BaseLineHeightPlugin, BaseLinkDefinition, BaseLinkPlugin, BaseLinkPluginState, BaseListDefinition, BaseListPlugin, BaseNode, BaseParagraphDefinition, BaseParagraphPlugin, type BasePlugin, type BasePlugin as Plugin, type BasePluginConfiguration, type BasePluginContext, type BasePluginDefinition, type BasePluginDefinitionInput, type BasePluginDefinitionInput as PluginDefinitionInput, type BasePluginExtendInput, type BasePluginImplementationContext, type BasePluginInput, type BasePluginOn, type BasePluginOverride, type BasePluginPortal, type BasePluginPortal as PluginPortal, BasePoint, BaseRange, BaseScriptPlugin, BaseStrikethroughPlugin, BaseText, BaseTextAlignPlugin, BaseTextIndentPlugin, BaseUnderlinePlugin, type BlockDuplicateOptions, BlockFenceInputRuleConfig, BlockFenceInputRuleMatch, type BlockInsertOptions, BlockStartInputRuleConfig, BlockStartInputRuleMatch, type BlockUpsertOptions, BlockquoteRules, BoldRules, BooleanMarkKeysOf, BooleanMarksOf, type BreakRules, BulletedListRules, CapturedFormat, ChildOf, CodeBlockDefinition, CodeBlockElement, CodeBlockRules, CodeHighlightDefinition, CodeHighlightLowlight, CodeHighlightPluginState, CodeRules, type CollapseSelectionCommand, type CompatibleEditorCommand, type ConfiguredBasePlugin, ContentSlice, type CreateEditorOptions, CreateLinkNodeOptions, DebugApi, DebugDefinition, DebugErrorType, DebugPlugin, DebugPluginState, type DebugValueScrubber, type DeclaredPluginShortcutInput, type Decorate, type Decoration, type DecorationAttributes, type DecorationRefresh, type DecorationSource, DefinedInsertDataFollowUpInputRule, type DefinitionOf, type DeleteCommand, type DeleteFragmentCommand, type DeleteRules, DelimitedInlineInputRuleMatch, type DerivedEditorSchemaIdentity, Descendant, DescendantEntry, DescendantEntryIn, DescendantEntryOf, DescendantIn, DescendantOf, DocumentChange, type DocxNodeMapping, type DomApi, type DomPluginState, type DomPluginUpdate, type EditOnlyConfig, type EditableProps, type Editor, type EditorAboveOptions, type EditorApplicationSchema, type EditorBlockOptions, type EditorBlockToggleOptions, type EditorBreakExitOptions, type EditorCanonicalUpdateTag, type EditorCommand, type EditorCommandAroundHandler, type EditorCommandContinuation, type EditorCommandDescriptor, type EditorCommandDispatch, type EditorCommandHandler, type EditorCommandInput, type EditorCommandPlace, type EditorCommandResult, type EditorCommands, type EditorCommit, type EditorCommitChangeKind, type EditorCommitChanged, type EditorCommitContext, type EditorCommitHandler, type EditorCommitListener, type EditorCommitRuntimeChangeKind, type EditorCoreStateView, type EditorCoreUpdateMethods, type EditorCoreUpdateTransaction, type EditorDirectCommandDispatch, type EditorDocumentRange, type EditorDocumentRecords, type EditorDocumentValue, type EditorEffect, type EditorEffectCollabDecodeContext, type EditorEffectCollabEncodeContext, type EditorEffectCollabReplay, type EditorEffectCollabTransport, type EditorEffectHistoryReplayResult, type EditorEffectType, type EditorElementBehavior, type EditorElementEntry, EditorError, type EditorFragmentDeletionOptions, type EditorFragmentReadOptions, type EditorInstalledApiGroups, type EditorInstalledReadGroups, type EditorInstalledUpdateGroups, type EditorIsEditorOptions, type EditorJsonValue, type EditorLevelsOptions, type EditorLifecycleError, type EditorLifecycleErrorSink, type EditorMarks, type EditorMarksOf, type EditorNextOptions, type EditorNodeChangeContext, type EditorNodeChangeHandler, type EditorNodeChangeKind, type EditorNodeGetOptions, type EditorNodeUnsetOptions, type EditorNodesOptions, type EditorNodesReadOptions, type EditorParentOptions, type EditorPreviousOptions, type EditorRead, type EditorReadAroundHandler, type EditorReadContext, type EditorReadDescriptor, type EditorReadInput, type EditorReadMethodRecord, type EditorReadMethodTree, type EditorReadMethods, type EditorReadRegistration, type EditorReadResult, type EditorReplaceChildrenOptions, type EditorReplaceNodeOptions, type EditorRootEntry, type EditorRootOwner, type EditorSchemaContent, type EditorSchemaContentRoot, type EditorSchemaContract, type EditorSchemaContractChange, type EditorSchemaContractChangeKind, type EditorSchemaContractContentProgram, type EditorSchemaContractContentRoot, type EditorSchemaContractDiff, type EditorSchemaContractElement, type EditorSchemaContractRoot, type EditorSchemaContribution, type EditorSchemaDeclaration, type EditorSchemaDefinition, type EditorSchemaDelta, type EditorSchemaDerivedDefinition, type EditorSchemaElement, type EditorSchemaElementOverride, type EditorSchemaElementOverrideInput, type EditorSchemaElementStructure, type EditorSchemaGetProperty, type EditorSchemaIdentity, type EditorSchemaNamedDefinition, type EditorSchemaOverride, type EditorSchemaOverrideInput, type EditorSchemaPlugin, type EditorSchemaProperty, type EditorSchemaPropertyOverride, type EditorSchemaPropertyOverrideInput, type EditorSchemaPropertyQuery, type EditorSchemaPropertyReadOptions, type EditorSchemaReadProperty, type EditorSchemaRepairCode, type EditorSchemaSource, type EditorSchemaStructureProperty, type EditorSchemaUnknownPolicy, type EditorSchemaValidationCode, type EditorSchemaValidationDiagnostic, EditorSchemaValidationError, type EditorSchemaValidationPropertyContext, type EditorSchemaVocabulary, EditorSelection, type EditorSelectionBlockOptions, type EditorSelectionTargetOptions, type EditorShortcut, type EditorSliceReadOptions, type EditorSnapshot, type EditorStateField, type EditorStateFragmentApi, type EditorStateMarksApi, type EditorStateNodesApi, type EditorStatePointsApi, type EditorStateRangesApi, type EditorStateRuntimeApi, type EditorStateSchemaApi, type EditorStateSelectionApi, type EditorStateSliceApi, type EditorStateTextApi, type EditorStateUniqueApi, type EditorStateValueApi, type EditorStateView, type EditorStateViewApi, type EditorTargetRuntime, type EditorTextChangeContext, type EditorTextChangeHandler, type EditorToggleBlockOptions, type EditorToggleMarkOptions, type EditorTransactionAnchor, type EditorTransactionAnchorApi, type EditorTransactionAnnotationsApi, type EditorTransactionBlocksApi, type EditorTransactionBreakApi, type EditorTransactionChangeContext, type EditorTransactionChangeHandler, type EditorTransactionChanged, type EditorTransactionChangesApi, type EditorTransactionDocumentChangeKind, type EditorTransactionEffectsApi, type EditorTransactionFragmentApi, type EditorTransactionMarksApi, type EditorTransactionNodesApi, type EditorTransactionPluginsApi, type EditorTransactionRecordsApi, type EditorTransactionRemoved, type EditorTransactionRootsApi, type EditorTransactionSelectionApi, type EditorTransactionSliceApi, type EditorTransactionSpecBuilder, type EditorTransactionTagsApi, type EditorTransactionTextApi, type EditorTransactionTopLevelRange, type EditorTransactionValueApi, type EditorUniqueHolder, type EditorUpdate, type EditorUpdateAnnotation, type EditorUpdateContext, type EditorUpdateMethods, type EditorUpdatePolicy, type EditorUpdatePolicyFor, type EditorUpdateTag, type EditorUpdateTagInput, type EditorUpdateTransaction, type EditorUpdateValueFromPlugin, type EditorValueFromOptions, type EditorValueFromPlugins, type EditorValueInput, type EditorValuePersistence, type EditorView, type EditorViewOptions, Element, ElementApi, type ElementContentRootSlot, ElementEntry, ElementEntryOf, ElementIdPlugin, ElementIdPluginState, type ElementIdTarget, ElementIn, ElementInterface, ElementIsElementOptions, ElementOf, ElementOrTextIn, ElementOrTextOf, ElementStateApi, ElementStateDefinition, ElementStatePlugin, type ElementWith, ExitBreakPlugin, FormattingBlockEntry, FormattingContribution, FragmentPropMode, GetFragmentPropOptions, type GetInjectNodePropsOptions, type GetInjectNodePropsReturnType, type HandlerReturnType, HeadingLevel, HeadingRules, HighlightNode, HighlightResult, HighlightRules, type HistoryApi, HistoryDefinition, type HistoryOutcome, HistoryPlugin, HistoryPluginState, type HistoryResult, type HistorySettlement, HorizontalRuleRules, Hotkeys, type HtmlAttributes, type HtmlContentToken, type HtmlElementPatch, type HtmlMappingDiagnosticInput, type HtmlMatchValue, type HtmlMatcher, type HtmlNodeSpec, HtmlPlugin, type HtmlPrepareDiagnosticInput, type HtmlWrapperSpec, IS_APPLE, IndentChangeOptions, IndentDefinition, IndentPluginState, type InferApi, type InferConflicts, type InferDependencies, type InferEnabled, type InferName, type InferOwnApi, type InferOwnRead, type InferOwnUpdate, type InferPluginReadGroups, type InferPluginStoreState, type InferPluginUpdateGroups, type InferRead, type InferSelectors, type InferTargetPlugins, type InferUpdate, type InitialValue, type InjectNodeProps, InputRule, InputRuleEditor, InputRuleInsertTextOptions, InputRuleTarget, InputRulesConfig, InputRulesDefinition, type InsertBreakCommand, InsertBreakInputRule, InsertBreakInputRuleContext, InsertBreakInputRuleReadContext, InsertDataFollowUpContext, InsertDataFollowUpInputRule, InsertDataInputRule, InsertDataInputRuleContext, InsertDataInputRuleReadContext, type InsertNodesCommand, type InsertSoftBreakCommand, type InsertTextCommand, InsertTextInputRule, InsertTextInputRuleContext, InsertTextInputRuleReadContext, ItalicRules, type JsonEditorValue, type JsonNode, type LeafEdge, LeafPosition, type LeafStaticProps, LineHeightDefinition, LinkAttributes, LinkElement, LinkRules, ListElement, ListStyle, ListType, Location, LocationApi, LocationInterface, LogLevel, MarkComboRules, MarkInputRuleConfig, MarkInputRuleMatch, MarkKeysOf, type MarkdownDecodeContext, type MarkdownEncodeContext, type MarkdownMarkWrapContext, type MarkdownMarkWrapper, type MarkdownMarks, type MarkdownNodeKind, type MarkdownNodeKinds, type MarkdownNodeMapping, type MarkdownNodeMappingInput, type MarkdownPluginRegistry, type MarkdownRefusal, type MarkdownTagAttributeView, type MarkdownTagNode, MarksIn, MarksOf, MatchBlockFenceOptions, MatchBlockStartOptions, MatchDelimitedInlineOptions, type MaximizeMode, type MergeRules, type MoveSelectionCommand, type MoveUnit, type NamedEditorSchemaIdentity, type NamedRootKey, Node, NodeAncestorsOptions, NodeApi, NodeChildEntry, NodeChildrenOptions, type NodeComponent, NodeDescendantsOptions, type NodeDuplicateOptions, NodeElementsOptions, NodeEntry, NodeEntryIn, NodeEntryOf, NodeFindTextRangesOptions, NodeHasPropsOptions, NodeIn, type NodeInsertNodesOptions, type NodeInsertOptions, type NodeInsertSplitOptions, NodeInterface, NodeIsNodeOptions, type NodeKey, NodeLevelsOptions, type NodeLiftNodesOptions, NodeMatch, NodeMatchPredicate, type NodeMergeNodesOptions, type NodeMoveNodesOptions, type NodeMutationMethods, NodeNodesOptions, NodeOf, NodeProps, type NodeRemoveNodesOptions, type NodeReplaceChildrenOptions, NodeSelection, NodeSelectionMode, type NodeSetNodesOptions, type NodeSplitNodesOptions, type NodeStaticProps, type NodeTarget, NodeTextRangeEntry, NodeTextRangeMatch, NodeTextRangeQuery, NodeTextRangeRoot, NodeTextRangeView, NodeTextsOptions, NodeTypeSelector, type NodeUnsetNodesOptions, type NodeUnwrapNodesOptions, type NodeWrapNodesOptions, type NodeWriteVeto, type NodeWriteVetoInput, type NormalizeRules, type Nullable, OrderedListRules, OutdentListOptions, PLUGINS, type PartialBasePlugin, Path, PathAncestorsOptions, PathApi, PathInterface, PathLevelsOptions, type PersistedDocumentInput, type PlacedTarget, PlainTextDiagnostic, PlainTextDocumentOptions, PlainTextEditorOptions, type PlainTextEncodeContext, type PlainTextNodeMapping, type PlainTextNodeMappingInput, PlainTextSerializeResult, type PluginActivationContext, type PluginApiFactory, type PluginApiFactoryContext, type PluginBaseContext, type PluginCandidateContext, type PluginCandidateEditor, type PluginCapabilities, type PluginCleanupContext, type PluginContribution, type PluginContributionInput, type PluginDefinition, type PluginDependency, type PluginDependencyReference, type PluginFormatContext, type PluginFormatModelView, type PluginFormatNode, type PluginFormatRegistry, type PluginFormatSchemaView, type PluginInput, type PluginMigrationContext, PluginName, type PluginOwnUpdate, type PluginPoint, PluginPublicationError, type PluginReadContext, type PluginReadFactory, type PluginReadFactoryContext, type PluginReadMiddlewareFactory, type PluginReadState, type PluginReconfigureOptions, type PluginReference, type PluginSchema, type PluginSchemaContext, type PluginSchemaDeclaration, type PluginSchemaElement, type PluginSchemaMark, type PluginSchemaReferences, type PluginSelector, type PluginSelectorArgs, type PluginSelectorMethods, type PluginSelectorReturn, type PluginSelectors, type PluginShortcutInput, type PluginSlot, type PluginSlotLike, type PluginSlotValue, type PluginState, type PluginStore, type PluginTransaction, type PluginTypeProvider, type PluginTypes, type PluginUpdate, type PluginUpdateFactory, type PluginUpdateFactoryContext, type PluginsFromOptions, type PluginsOf, Point, PointApi, PointEntry, PointInterface, type ProjectedRangeSegment, type PropertyBooleanDescriptor, type PropertyBuilderApi, type PropertyEnumDescriptor, type PropertyJsonDescriptor, type PropertyJsonOptions, type PropertyNumberDescriptor, type PropertyOptionsOf, type PropertySetDescriptor, type PropertySetOptions, type PropertyStringDescriptor, type PropertyValidation, type PropertyValueDescriptor, type PropertyValueKind, type PropertyValueOf, type PropertyValueOptions, Range, type RangeAnchorAssociation, RangeApi, type RangeDirection, RangeEdgesOptions, RangeInterface, type RangeMode, type RemoveMarkCommand, type RemoveNodesCommand, type RenderElementFn, type RenderElementProps, type RenderElementSlots, type RenderLeafFn, type RenderLeafProps, type RenderStaticNodeWrapper, type RenderStaticNodeWrapperFunction, type RenderStaticNodeWrapperProps, type RenderTextFn, type RenderTextHostProps, type RenderTextPieceProps, type RenderTextProps, type ReplaceSliceCommand, ResolvedInputRule, ResolvedInputRulesMeta, type RootKey, type RuleDecision, type SchemaBuiltInGroupName, type SchemaContent, type SchemaContentDefault, type SchemaContentInput, type SchemaContentOptions, type SchemaContentPrefixSlot, type SchemaContentRoot, type SchemaContentRootContribution, type SchemaContentRootInput, type SchemaContentRootOwnership, type SchemaContentRootSlotsFor, type SchemaContentRootStructure, type SchemaContentRule, type SchemaDescendant, type SchemaElement, type SchemaElementConstructionPropertiesFor, type SchemaElementFor, type SchemaElementHandle, type SchemaElementInput, type SchemaElementProperties, type SchemaElementPropertiesFor, type SchemaElementProperty, type SchemaElementPropertyDefinition, type SchemaElementPropertyKeys, type SchemaElementPropertyOptions, type SchemaElementPropertyValue, type SchemaElementShapeFor, type SchemaElementSlicePolicy, type SchemaElementStructure, type SchemaElementTarget, type SchemaElementTypes, type SchemaGroup, type SchemaGroupNames, type SchemaGroupOptions, type SchemaKeyPrefix, type SchemaPluginsOf, type SchemaProperty, type SchemaPropertyCopyPolicy, type SchemaPropertyDefinition, type SchemaPropertyExclusiveGroup, type SchemaPropertyHandle, type SchemaPropertyHandleValue, type SchemaPropertyIds, type SchemaPropertyKey, type SchemaPropertyLandingPolicy, type SchemaPropertyReferences, type SchemaPropertyRole, type SchemaPropertySplitPolicy, type SchemaPropertyTypeChangePolicy, type SchemaRecordSet, type SchemaRootNames, type SchemaTarget, type SchemaText, type SchemaTextBlockOptions, type SchemaTextProperties, type SchemaTextProperty, type SchemaTextPropertyDefinition, type SchemaTextPropertyKeys, type SchemaTextPropertyOptions, type SchemaTypesTarget, type SchemaValue, type SchemaValueFromPlugins, ScriptRules, ScriptValue, type ScrollIntoViewTarget, type ScrollMode, type SelectCommand, Selection, SelectionApi, SelectionAssociation, type SelectionCollapseOptions, type SelectionEdge, SelectionInputRuleContext, type SelectionMode, type SelectionMoveOptions, type SelectionMutationMethods, type SelectionRules, type SelectionSetPointOptions, SelectionValue, type SerializedEditorEffect, type SerializedEditorSelection, type SerializedEditorValue, type SetNodesCommand, type SetSelectionCommand, SingleBlockPlugin, SingleLinePlugin, type SliceLanding, type SliceLandingInput, type SliceLandingTarget, type SnapshotIndex, type SnapshotInput, Span, SpanApi, SpanInterface, type StateFieldCollabPolicy, type StateFieldDescriptor, type StateFieldHistoryPolicy, type StateFieldInitial, type StateFieldValueInput, type StaticRenderLeafProps, StrikethroughRules, type StructuralRuleContext, type StructuralRuleEditor, type TargetFreshnessRequest, TaskListRules, Text, TextAlignDefinition, TextApi, type TextDeleteOptions, type TextDirection, TextEntry, TextEntryIn, TextEntryOf, TextEqualsOptions, TextIn, TextIndentDefinition, TextIndentPluginState, type TextInsertFragmentOptions, type TextInsertTextOptions, TextInterface, type TextMutationMethods, TextOf, type TextRemoveTextOptions, TextSelection, type TextStaticProps, TextSubstitutionInputRuleConfig, TextSubstitutionMatch, TextSubstitutionPattern, type TextTarget, type TextUnit, type TextUnitAdjustment, type TextWith, type ToggleBlockCommand, ToggleHeadingOptions, ToggleListOptions, type ToggleMarkCommand, type TopLevelRuntimeRange, TrailingBlockDefinition, TrailingBlockPlugin, TrailingBlockPluginState, type TransactionSpec, type TransferAdoptInput, type TransferApi, type TransferCheck, type TransferDefinition, type TransferDiagnostic, type TransferEdge, type TransferInput, type TransferIntent, type TransferLandingInput, type TransferLandingTarget, type TransferOutcome, type TransferPatch, type TransferPatchProperties, type TransferPayload, TransferPlugin, type TransferRead, type TransferRefusalReason, type TransferRelation, type TransferSide, type TransferSideInput, type TransferSourceInput, type TransferTarget, type TransferVeto, type TransferVetoInput, type TransferWrap, TransformInputRuleContext, type TransformOptions, type TxDeclaredMethod, type TxMethodDeclarations, type TxOnlyMethod, UnderlineRules, type UnknownObject, UnwrapLinkOptions, UpsertLinkOptions, type Value, type ValueOf, type WithAnyName, type WithNodeTarget, type WithRequiredName, WrapLinkOptions, applyDeepToNodes, authoredVeto, compileEditorSchemaContract, createBlockFenceInputRule, createBlockStartInputRule, createEditor, createEditorView, createHotkey, createMarkInputRule, createTextSubstitutionInputRule, decodeEditorEffect, defaultsDeepToNodes, defineCommand$1 as defineCommand, defineEditorSchema, defineEffect, defineInputRule, definePlugin, definePluginPoint, definePluginSlot, defineStateField, defineUpdateAnnotation, diffEditorSchemaContracts, documentReplacement, editorCommands, editorReads, encodeEditorEffect, formatting, getEditorRuntimeOwner, getFragmentProp, getInjectMatch, getLinkHref, getPluginNodeClass, inputRuleVeto, invertEffect, isDefined, isEditor, isHotkey, isNominalPluginDescriptor, isOrderedList, isPluginElementClass, isPluginNodeClass, isUrl, locateAt, mapEffect, matchBlockStart, matchDelimitedInline, mergeDeepToNodes, nanoid, nodeWriteVeto, property, readEditorSchemaContract, getSelection as readEditorSelection, restoreEditorSchemaContract, schema$1 as schema, screenReaderAnnouncementEffect, serializePlainText, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, target, transfer, transferVeto, txLocate, txOnly, txSelection, valueCodecs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementApi, MAIN_ROOT_KEY, getEditorCommitNode, property, registerEditorTransactionGuard, schema, target } from "../../../facade.js";
|
|
1
|
+
import { ElementApi, MAIN_ROOT_KEY, getEditorCommitNode, property, readElementById, registerEditorTransactionGuard, schema, target } from "../../../facade.js";
|
|
2
2
|
import { definePlugin } from "../../plugin/definePlugin.js";
|
|
3
3
|
import { assertElementId, elementIdDocumentRoots } from "./elementIdAdmission.internal.js";
|
|
4
4
|
import { nanoid } from "nanoid";
|
|
@@ -32,21 +32,11 @@ const ElementIdPlugin = definePlugin("elementId", {
|
|
|
32
32
|
}
|
|
33
33
|
}));
|
|
34
34
|
},
|
|
35
|
-
read: ({ state }) => ({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
...holder,
|
|
41
|
-
node
|
|
42
|
-
}) : void 0;
|
|
43
|
-
},
|
|
44
|
-
id(key) {
|
|
45
|
-
const node = state.nodes.get(key)?.[0];
|
|
46
|
-
const id = ElementApi.isElement(node) && state.schema.getProperty(node, idProperty);
|
|
47
|
-
return typeof id === "string" && state.unique.holder("id", id)?.key === key ? id : void 0;
|
|
48
|
-
}
|
|
49
|
-
})
|
|
35
|
+
read: ({ state }) => ({ id(key) {
|
|
36
|
+
const node = state.nodes.get(key)?.[0];
|
|
37
|
+
const id = ElementApi.isElement(node) && state.schema.getProperty(node, idProperty);
|
|
38
|
+
return typeof id === "string" && readElementById(state.nodes, id)?.key === key ? id : void 0;
|
|
39
|
+
} })
|
|
50
40
|
};
|
|
51
41
|
});
|
|
52
42
|
//#endregion
|