plitejs 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/annotations/index.d.ts +1 -1
- package/dist/annotations/index.js +1 -1
- package/dist/authored/index.d.ts +2 -2
- package/dist/authored/index.js +168 -46
- package/dist/{authored-veto-DSnQcHGR.js → authored-veto-D_9wCJcK.js} +1 -1
- package/dist/{comparison-plan-CEQL0ooW.js → comparison-plan-DY_vuGPq.js} +1 -1
- package/dist/{comparison-types-Dt-unJZY.d.ts → comparison-types-DdwE6mYq.d.ts} +1 -1
- package/dist/{create-editor-CkHtPWXV.js → create-editor-CLQEkEZ1.js} +2 -1
- package/dist/diff/index.d.ts +2 -2
- package/dist/diff/index.js +2 -2
- package/dist/dom/index.d.ts +1 -1
- package/dist/dom/index.js +1 -1
- package/dist/{dom-Cgfscvnm.js → dom-CH2BXXj6.js} +2 -2
- package/dist/{editor-owner-IUmkTeXz.js → editor-owner-C9rVbMTs.js} +1 -1
- package/dist/history/index.d.ts +1 -1
- package/dist/history/index.js +2 -2
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/hyperscript/index.js +1 -1
- package/dist/{hyperscript-FPuoArEi.js → hyperscript-CeT83ZLB.js} +2 -2
- package/dist/{index-DPWyk3lG.d.ts → index-BWPcE4ac.d.ts} +7 -1
- package/dist/{index-DpltOCot.d.ts → index-BXjLmx1n.d.ts} +101 -27
- package/dist/{index-K0Za9YXc.d.ts → index-DVMNewDn.d.ts} +10 -13
- package/dist/{index-BpQx2UG4.d.ts → index-Db-ktCTE.d.ts} +5 -6
- package/dist/{index-HPYawTae.d.ts → index-Dq3Jlj8O.d.ts} +1 -1
- package/dist/{index-Cw-oC2ps.d.ts → index-UrB4jAwl.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.js +4 -4
- package/dist/{mapped-view-store-ld-6uxEU.js → mapped-view-store-CbWqba_1.js} +1 -1
- package/dist/{native-grouping-input-DMNcsIaW.js → native-grouping-input-DXNhlPHd.js} +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/react.d.ts +2 -2
- package/dist/pagination/react.js +5 -5
- package/dist/{pagination-D_A8iPJP.js → pagination-CBdYiOuR.js} +1 -1
- package/dist/{plugin-DWzkJbnJ.js → plugin-SR3HTH0j.js} +1458 -952
- package/dist/{range-geometry-BjeLHOnl.js → range-geometry-CdltxcH6.js} +2 -2
- package/dist/{range-geometry-BLAHRE11.d.ts → range-geometry-Dwp2oyCc.d.ts} +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +6 -6
- package/dist/react/virtualized.d.ts +2 -2
- package/dist/react/virtualized.js +1 -1
- package/dist/{react-DZ15gmz2.js → react-CN-iBh1z.js} +8 -8
- package/dist/{retraction-BMem8Rfk.js → retraction-BmPJB9cE.js} +1 -1
- package/dist/{src-cT1OTKP_.js → src-B-zm0kz4.js} +128 -3
- package/dist/{store-Cz2mXyDe.js → store-51r4zpCR.js} +24 -11
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +3 -3
- package/dist/{use-editor-dom-scope-BbMDSCpW.js → use-editor-dom-scope-uDJQ692F.js} +184 -168
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/dist/yjs/react/index.d.ts +3 -3
- package/dist/yjs/react/index.js +3 -3
- package/dist/{yjs-DOK-m7kl.js → yjs-IGE0Al3n.js} +5 -2
- package/package.json +1 -1
package/dist/history/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $a as
|
|
2
|
-
import { t as nativeGroupingInput } from "../native-grouping-input-
|
|
1
|
+
import { $a as restoreHistoryCarets, $c as mergeAnchorHistoryRecovery, Al as areEditorSchemaIdentitiesEqual, Br as recordEditorHistoryReplayReceipt, Cc as getEditorCommitUnsettle, Cd as addSection, Cs as decodeEditorSelection, Cu as getEditorRuntime, Dd as getDocumentPropertyContext, Dr as isBuildingTransactionSpec, Ed as applyPropertyModificationsToSlice, Eu as getEditorSchema, Fd as DocumentIndex, Fu as UNKNOWN_FACTS, Gf as RangeApi, Gl as propertyTargetsReadParents, Gn as getCurrentSelectionRoot, Go as txLocate, Gu as invertCarriedRun, Hd as normalizeSetValues, Hf as invertEffect, Hs as EditorSchemaValidationError, Hu as carriedLetterPairs, Ia as changedBookmarks, Is as constructCanonicalDocumentChange, Iu as composeFacts, Jd as getDocumentSliceNodeKeys, Jn as getEditorDocumentValue, Ju as widenRun, Kd as closeToken, Ko as txOnly, Ku as landCarriedRuns, Lc as getAuthoredUpdateView, Lu as factsFromJSON, Md as markReadBack, Ms as withLandedMarks, Nd as joinsOf, Nu as NO_FACTS, Oc as snapshotIndexOf, Os as mapSelectionThroughChange, Pd as liftOf, Pu as NO_ROOT_FACTS, Qc as mapAnchorHistoryRecovery, Qd as openToken, Qu as createInternalDocumentChange, Ra as consumeCommitCarets, Rd as decodeNodes, Ru as factsToJSON, Sc as getEditorCommitStartedAt, Sd as RootChange, Ss as assertSelectionSupported, Tc as historyReplayClaim, Td as applyPropertyModifications, Uf as mapEffect, Ur as registerEditorTransactionGuard, Uu as carriesRun, Vf as defineUpdateAnnotation, Vr as registerEditorHistoryRuntime, Vs as EditorNoncanonicalChangeError, Vu as recordedFacts, Wd as PreparedTokenSlice, Wu as exactRunOn, Xa as resolveBookmark, Xd as isTextNode, Xu as alignedDocumentChange, Yc as consumeAnchorHistoryCapture, Yd as isElementNode, Yf as MAIN_ROOT_KEY, Yu as DocumentChange, Zd as nodeProps, Zu as collapseDocumentElementPropertyWrites, _c as getEditorCommitFacts, _d as valueRootIndex, ad as getInternalDocumentChangeEntries, bd as withInternalDocumentRootChange, bn as applyDocumentChange, cd as getInternalDocumentChangeRootKeys, cp as countCoreWork, ct as getSelection, ef as textToken, eo as rootChildrenOf, ep as isObject, fd as isInternalDocumentChangeNoop, gc as getEditorCommitCompletedTextDeletion, gd as valueRoot, gf as hasRecord, hc as getEditorCommitCarriedRuns, hd as transformInternalDocumentChange, hf as getValueRecords, hl as reportEditorLifecycleError, hp as getDefined, hu as ElementApi, id as getInternalDocumentChangeClassificationEntries, jf as encodeEditorEffect, ju as classifyDocumentChange, kc as getDocumentChangeRelocations, kd as mapRootChangePositionBackward, kf as decodeEditorEffect, kn as documentReplacement, kr as isInTransaction, l as definePlugin, ld as getInternalDocumentRootChange, lp as readCoreWork, mc as getEditorCommitAdmission, md as mapInternalDocumentChangePosition, mu as SelectionApi, nf as tokensEqual, nl as stageAnchorHistoryRecovery, nr as getEditorUpdateRoot, od as getInternalDocumentChangeRanges, ol as toPublicRoot, pf as getRecordText, pp as jsonEqual, ql as readEditorSchemaIdentity, qu as mapCarriedRunThrough, sd as getInternalDocumentChangeRecords, td as documentChangeWritesOnlyElementProperties, tf as tokenLength, to as sameCarets, uf as getRecordEntries, ui as setTypedMarks, vr as getUpdateView, wi as withEditorUpdateRootScope, wl as getPluginRegistry, ws as encodeEditorSelection, wu as getEditorRuntimeOwner, xc as getEditorCommitSnapshot, xd as withoutRetainedRecordSets, xl as getCompiledEditorSchema, yc as getEditorCommitRest, za as getBookmark, zf as createEditorEffect, zu as flipFacts } from "../plugin-SR3HTH0j.js";
|
|
2
|
+
import { t as nativeGroupingInput } from "../native-grouping-input-DXNhlPHd.js";
|
|
3
3
|
//#region src/core/change/carried-projection.ts
|
|
4
4
|
/** A projection the documents leave no place for. */
|
|
5
5
|
var CarriedProjectionError = class extends Error {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as HyperscriptEditorFixture, c as createText, i as createHyperscript, n as HyperscriptCreators, o as createEditor, r as HyperscriptShorthands, s as createEditorFixture, t as jsx } from "../index-
|
|
1
|
+
import { a as HyperscriptEditorFixture, c as createText, i as createHyperscript, n as HyperscriptCreators, o as createEditor, r as HyperscriptShorthands, s as createEditorFixture, t as jsx } from "../index-Dq3Jlj8O.js";
|
|
2
2
|
export { type HyperscriptCreators, type HyperscriptEditorFixture, type HyperscriptShorthands, createEditor, createEditorFixture, createHyperscript, createText, jsx };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createText, i as createEditorFixture, n as createHyperscript, r as createEditor, t as jsx } from "../hyperscript-
|
|
1
|
+
import { a as createText, i as createEditorFixture, n as createHyperscript, r as createEditor, t as jsx } from "../hyperscript-CeT83ZLB.js";
|
|
2
2
|
export { createEditor, createEditorFixture, createHyperscript, createText, jsx };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as NodeApi, Jt as replace,
|
|
2
|
-
import { a as createEditor$1 } from "./create-editor-
|
|
1
|
+
import { B as NodeApi, Gf as RangeApi, Jt as replace, hu as ElementApi, mu as SelectionApi, yu as TextApi } from "./plugin-SR3HTH0j.js";
|
|
2
|
+
import { a as createEditor$1 } from "./create-editor-CLQEkEZ1.js";
|
|
3
3
|
//#region src/hyperscript/tokens.ts
|
|
4
4
|
/**
|
|
5
5
|
* A weak map to hold anchor tokens.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Eg as Range, Of as Value, jc as Editor, vg as Anchor, wd as NodeKey } from "./index-BXjLmx1n.js";
|
|
2
2
|
//#region src/internal/view/view-source.d.ts
|
|
3
3
|
type ViewSourcePhase = 'project' | 'read' | 'resolve';
|
|
4
4
|
/** Diagnostic emitted when an optional view source is deactivated. */
|
|
@@ -44,6 +44,12 @@ type AnnotationRefreshOptions = Readonly<{
|
|
|
44
44
|
reason?: 'annotation' | 'external' | 'refresh';
|
|
45
45
|
}>;
|
|
46
46
|
type AnnotationStoreOptions = Readonly<{
|
|
47
|
+
/**
|
|
48
|
+
* Resolve an annotation whose range covers no letter and no whole void to
|
|
49
|
+
* `range: null`. It still follows the nodes its range touches, so an edit
|
|
50
|
+
* there that brings content back resolves it again.
|
|
51
|
+
*/
|
|
52
|
+
hideEmpty?: boolean;
|
|
47
53
|
id?: string;
|
|
48
54
|
onError?: ViewSourceErrorSink;
|
|
49
55
|
}>;
|
|
@@ -1506,18 +1506,19 @@ type BivariantLocate<TArgs extends readonly unknown[]> = {
|
|
|
1506
1506
|
* registered, `locate` also maps them into the document editing commands
|
|
1507
1507
|
* decide on, or returns null when they have no place there, so the method
|
|
1508
1508
|
* does nothing. `false` says the arguments hold no location. A call that
|
|
1509
|
-
* passes a function runs in the caller's root, and `locate`
|
|
1510
|
-
*
|
|
1511
|
-
* that has no declaration throws.
|
|
1509
|
+
* passes a function runs in the caller's root, and `locate` only places its
|
|
1510
|
+
* arguments, so an id that names no element still does nothing. A method
|
|
1511
|
+
* called with arguments that has no declaration throws.
|
|
1512
1512
|
*/
|
|
1513
1513
|
declare const txLocate: <TMethod extends (...args: never[]) => unknown>(locate: NoInfer<BivariantLocate<Parameters<TMethod>>> | false, method: TMethod) => TxDeclaredMethod<TMethod>;
|
|
1514
1514
|
type Target = NodeSelection | NodeTarget | Span | null;
|
|
1515
|
+
type TakesPlacedIds<TOptions, TKey extends string> = { readonly [K in TKey & keyof TOptions]?: ElementIdTarget extends TOptions[K] ? NodeKey extends TOptions[K] ? TOptions[K] : NodeKey : TOptions[K]; };
|
|
1515
1516
|
/**
|
|
1516
1517
|
* A `txLocate` locate for a method whose argument at `index` is options
|
|
1517
1518
|
* holding targets under `keys`, `at` by default: it places each target
|
|
1518
1519
|
* given, and the method does nothing when one has no place.
|
|
1519
1520
|
*/
|
|
1520
|
-
declare const locateAt: <TIndex extends number, TKey extends string = 'at'>(index: TIndex, ...keys: TKey[]) => <TArgs extends readonly unknown[] & { readonly [K in TIndex]?: Readonly<Partial<Record<TKey, Target
|
|
1521
|
+
declare const locateAt: <TIndex extends number, TKey extends string = 'at'>(index: TIndex, ...keys: TKey[]) => <TArgs extends readonly unknown[] & { readonly [K in TIndex]?: Readonly<Partial<Record<TKey, Target>>> & TakesPlacedIds<TArgs[K], TKey>; }>(args: TArgs, place: EditorCommandPlace) => TArgs | null;
|
|
1521
1522
|
/**
|
|
1522
1523
|
* Declare a plugin update method that only moves the selection, as caret
|
|
1523
1524
|
* movement does: it runs in the caller's root on the stored document, and
|
|
@@ -1862,7 +1863,7 @@ type NodePropertyKeyIn<V extends Value> = NodePropertyEntryIn<V>['key'];
|
|
|
1862
1863
|
type WithNodeKeyTarget<TOptions extends {
|
|
1863
1864
|
at?: Location | NodeSelection;
|
|
1864
1865
|
}> = Omit<TOptions, 'at'> & {
|
|
1865
|
-
at?: Location | NodeKey | NodeSelection;
|
|
1866
|
+
at?: ElementIdTarget | Location | NodeKey | NodeSelection;
|
|
1866
1867
|
};
|
|
1867
1868
|
type NodePropertyPatch<TProps> = TProps extends unknown ? { [TKey in keyof TProps]?: TProps[TKey] | undefined; } : never;
|
|
1868
1869
|
type EditorNodeSetObject<V extends Value> = {
|
|
@@ -2036,8 +2037,25 @@ type InitialValue<V extends Value = Value> = V | Readonly<{
|
|
|
2036
2037
|
records?: EditorDocumentRecords;
|
|
2037
2038
|
roots?: Readonly<Record<RootKey, V>>;
|
|
2038
2039
|
}>;
|
|
2039
|
-
/**
|
|
2040
|
-
|
|
2040
|
+
/**
|
|
2041
|
+
* An element's stored `id` as a target. An object is one only when `id` is
|
|
2042
|
+
* its one key, so a live element that carries an `id` stays a node.
|
|
2043
|
+
*/
|
|
2044
|
+
type ElementIdTarget = Readonly<{
|
|
2045
|
+
id: string;
|
|
2046
|
+
}>;
|
|
2047
|
+
/** An element found by its stored `id`, read from the state that found it. */
|
|
2048
|
+
type EditorElementEntry<TElement extends Element = Element> = Readonly<{
|
|
2049
|
+
key: NodeKey;
|
|
2050
|
+
node: TElement;
|
|
2051
|
+
path: Path;
|
|
2052
|
+
/** The element's named root, absent in the primary document. */
|
|
2053
|
+
root?: NamedRootKey;
|
|
2054
|
+
}>;
|
|
2055
|
+
/** A document location, node key or live node a text command lands at. */
|
|
2056
|
+
type TextTarget<N extends Descendant = Descendant> = Location | N | NodeKey;
|
|
2057
|
+
/** A document location, node key, live node or element id to resolve. */
|
|
2058
|
+
type NodeTarget<N extends Descendant = Descendant> = TextTarget<N> | ([Extract<N, Element>] extends [never] ? never : ElementIdTarget);
|
|
2041
2059
|
type EditorReplaceChildrenOptions = Omit<NodeReplaceChildrenOptions, 'at'> & ({
|
|
2042
2060
|
at: Path;
|
|
2043
2061
|
/** Named root the path addresses. Omit for this editor's or view's root. */
|
|
@@ -2048,14 +2066,21 @@ type EditorReplaceChildrenOptions = Omit<NodeReplaceChildrenOptions, 'at'> & ({
|
|
|
2048
2066
|
});
|
|
2049
2067
|
/** Options for replacing exactly one node with zero or more nodes. */
|
|
2050
2068
|
type EditorReplaceNodeOptions = {
|
|
2051
|
-
at: Descendant | NodeKey | Path;
|
|
2069
|
+
at: Descendant | ElementIdTarget | NodeKey | Path;
|
|
2052
2070
|
select?: boolean;
|
|
2053
2071
|
};
|
|
2054
2072
|
type NodeSelectionTarget<TNode extends Descendant = Descendant> = NodeSelection | NodeTarget<TNode>;
|
|
2055
|
-
|
|
2073
|
+
/**
|
|
2074
|
+
* Options whose `at` takes every node target: a location, a node key, a live
|
|
2075
|
+
* node or an element id, beside any other target the options already take.
|
|
2076
|
+
*/
|
|
2077
|
+
type WithNodeTarget<TOptions, TNode extends Descendant = Descendant> = Omit<TOptions, 'at'> & {
|
|
2078
|
+
at?: NodeTarget<TNode> | TOptions['at' & keyof TOptions];
|
|
2079
|
+
};
|
|
2080
|
+
type WithTextTarget<TOptions extends {
|
|
2056
2081
|
at?: Location;
|
|
2057
2082
|
}, TNode extends Descendant = Descendant> = Omit<TOptions, 'at'> & {
|
|
2058
|
-
at?:
|
|
2083
|
+
at?: TextTarget<TNode>;
|
|
2059
2084
|
};
|
|
2060
2085
|
type WithNodeTargetOrSpan<TOptions extends {
|
|
2061
2086
|
at?: Location | NodeSelection | Span;
|
|
@@ -2311,7 +2336,8 @@ type EditorUpdateValueApi<V extends Value = Value> = EditorStateValueApi<V> & {
|
|
|
2311
2336
|
replace: (input: SnapshotInput<V>) => void;
|
|
2312
2337
|
};
|
|
2313
2338
|
type EditorSelectionTargetOptions = {
|
|
2314
|
-
|
|
2339
|
+
/** The range the query tests in place of the selection. */
|
|
2340
|
+
at?: TextTarget | null;
|
|
2315
2341
|
};
|
|
2316
2342
|
type EditorSelectionSetNodesOptions = Readonly<{
|
|
2317
2343
|
/** `object` picks one object itself; defaults to `block`. */
|
|
@@ -2375,7 +2401,8 @@ type EditorStateUniqueApi = Readonly<{
|
|
|
2375
2401
|
* a child transaction each answer from their own document. When such a state
|
|
2376
2402
|
* gave the value to a second node, it reads the node that held the value in
|
|
2377
2403
|
* the state around it, the stored document for an update, while that node
|
|
2378
|
-
* still holds it.
|
|
2404
|
+
* still holds it. In an editor whose elements store ids, `holder('id', …)`
|
|
2405
|
+
* throws: `nodes.byId` finds an element by its id.
|
|
2379
2406
|
*/
|
|
2380
2407
|
holder: (property: string, value: unknown) => EditorUniqueHolder | null;
|
|
2381
2408
|
}>;
|
|
@@ -2391,7 +2418,7 @@ type EditorStateSliceApi<V extends Value = Value> = {
|
|
|
2391
2418
|
/** Read the selection slice and apply every external export projection. */
|
|
2392
2419
|
export: (options?: EditorSliceReadOptions) => ContentSlice$1<V>;
|
|
2393
2420
|
/** Build an atomic replacement transaction without publishing it. */
|
|
2394
|
-
fit: (slice: ContentSlice$1, options?:
|
|
2421
|
+
fit: (slice: ContentSlice$1, options?: WithTextTarget<TextInsertFragmentOptions, DescendantIn<V>>) => false | TransactionSpec;
|
|
2395
2422
|
/** Fit immutable slice content against one detached parent without publishing. */
|
|
2396
2423
|
fitContent: <TRoot extends RootKey>(slice: ContentSlice$1, options: Readonly<{
|
|
2397
2424
|
parent: Element;
|
|
@@ -2502,6 +2529,17 @@ type EditorStateNodesApi<V extends Value = Value> = {
|
|
|
2502
2529
|
}): ReadonlyArray<NodeEntry<NodeForTypeSelector<TType>>>;
|
|
2503
2530
|
(options?: EditorBlocksReadOptions<ValueElement<V>>): ReadonlyArray<NodeEntry<ValueElement<V>>>;
|
|
2504
2531
|
};
|
|
2532
|
+
/**
|
|
2533
|
+
* Find the element whose stored `id` is `id` in the current state, with its
|
|
2534
|
+
* key, node, path and named root. An update's draft, a command frame, a child
|
|
2535
|
+
* transaction, a document view and a preview each answer from their own
|
|
2536
|
+
* document, except that a view read while a command runs answers from the
|
|
2537
|
+
* command's state. A view bound to a named root finds no element of the
|
|
2538
|
+
* main root, whose entry names no root. Throws unless the schema declares
|
|
2539
|
+
* `id` as a generated, unique string property on every element type and no
|
|
2540
|
+
* content admits undeclared element types.
|
|
2541
|
+
*/
|
|
2542
|
+
byId: (id: string) => EditorElementEntry<ValueElement<V>> | null;
|
|
2505
2543
|
children: (at?: NodeTarget) => ReadonlyArray<ValueDescendant<V>>;
|
|
2506
2544
|
elementReadOnly: (options?: WithNodeTarget<EditorElementReadOnlyOptions>) => NodeEntry<Element> | undefined;
|
|
2507
2545
|
first: (at: NodeTarget) => NodeEntry | undefined;
|
|
@@ -2513,7 +2551,7 @@ type EditorStateNodesApi<V extends Value = Value> = {
|
|
|
2513
2551
|
type: TType;
|
|
2514
2552
|
}): NodeEntry<NodeForTypeSelector<TType>> | undefined;
|
|
2515
2553
|
<TNode extends Descendant>(at: TNode): NodeEntry<TNode> | undefined;
|
|
2516
|
-
(at: Location | NodeKey, options?: EditorNodeGetOptions<ValueTreeNode<V>>): NodeEntry | undefined;
|
|
2554
|
+
(at: ElementIdTarget | Location | NodeKey, options?: EditorNodeGetOptions<ValueTreeNode<V>>): NodeEntry | undefined;
|
|
2517
2555
|
};
|
|
2518
2556
|
/**
|
|
2519
2557
|
* Whether a node is content. A capability that keeps non-content nodes in
|
|
@@ -2774,6 +2812,12 @@ type EditorStateRangesApi = {
|
|
|
2774
2812
|
edges: (at: NodeTarget) => readonly [Point, Point] | undefined;
|
|
2775
2813
|
fromEntries: (entries: readonly NodeEntry[]) => Range | undefined;
|
|
2776
2814
|
get: (at: NodeTarget, to?: Location) => Range | undefined;
|
|
2815
|
+
/**
|
|
2816
|
+
* Whether a range covers nothing a reader sees: no letter, and no void
|
|
2817
|
+
* element such as a mention wholly inside it. A collapsed range is empty,
|
|
2818
|
+
* and so is one that crosses only the edges of text leaves or containers.
|
|
2819
|
+
*/
|
|
2820
|
+
isEmpty: (range: Range) => boolean;
|
|
2777
2821
|
project: (range: Range) => readonly ProjectedRangeSegment[];
|
|
2778
2822
|
unhang: (range: Range, options?: EditorUnhangRangeOptions) => Range;
|
|
2779
2823
|
};
|
|
@@ -2782,9 +2826,9 @@ type EditorStateTextApi = {
|
|
|
2782
2826
|
string: (at?: NodeSelectionTarget, options?: EditorStringOptions) => string;
|
|
2783
2827
|
};
|
|
2784
2828
|
type EditorTransactionFragmentApi<V extends Value = Value> = EditorStateFragmentApi<V> & {
|
|
2785
|
-
delete: (options?:
|
|
2829
|
+
delete: (options?: WithTextTarget<EditorFragmentDeletionOptions, DescendantIn<V>>) => void;
|
|
2786
2830
|
/** Fit and replace known-closed content as one canonical closed slice. */
|
|
2787
|
-
replace: (content: ReadonlyArray<DescendantIn<V>>, options?:
|
|
2831
|
+
replace: (content: ReadonlyArray<DescendantIn<V>>, options?: WithTextTarget<TextInsertFragmentOptions, DescendantIn<V>>) => boolean;
|
|
2788
2832
|
};
|
|
2789
2833
|
type EditorTransactionSliceApi<V extends Value = Value> = Pick<EditorStateSliceApi<V>, 'get'> & {
|
|
2790
2834
|
/**
|
|
@@ -2794,7 +2838,7 @@ type EditorTransactionSliceApi<V extends Value = Value> = Pick<EditorStateSliceA
|
|
|
2794
2838
|
* protected void, or the compiled schema cannot fit a well-formed slice.
|
|
2795
2839
|
* Malformed slice shapes are programmer errors and throw.
|
|
2796
2840
|
*/
|
|
2797
|
-
replace: (slice: ContentSlice$1, options?:
|
|
2841
|
+
replace: (slice: ContentSlice$1, options?: WithTextTarget<TextInsertFragmentOptions, DescendantIn<V>>) => boolean;
|
|
2798
2842
|
};
|
|
2799
2843
|
type EditorBreakExitOptions = {
|
|
2800
2844
|
/** Land before the exited structure instead of after it. */
|
|
@@ -2825,10 +2869,10 @@ type EditorTransactionBreakApi = {
|
|
|
2825
2869
|
insertSoft: () => void;
|
|
2826
2870
|
};
|
|
2827
2871
|
type EditorTransactionTextApi = EditorStateTextApi & {
|
|
2828
|
-
delete: (options?:
|
|
2872
|
+
delete: (options?: WithTextTarget<TextDeleteOptions>) => void;
|
|
2829
2873
|
deleteBackward: (options?: EditorDirectedDeletionOptions) => void;
|
|
2830
2874
|
deleteForward: (options?: EditorDirectedDeletionOptions) => void;
|
|
2831
|
-
insert: (text: string, options?:
|
|
2875
|
+
insert: (text: string, options?: WithTextTarget<TextInsertTextOptions>) => void;
|
|
2832
2876
|
};
|
|
2833
2877
|
/** Concrete registered schema targets available to DataTransfer formats. */
|
|
2834
2878
|
type EditorSchemaVocabulary = Readonly<{
|
|
@@ -3358,13 +3402,16 @@ type EditorCommandContext<Input, TEditor = Editor> = {
|
|
|
3358
3402
|
* Where a command's stored targets land in the document it decides on. A
|
|
3359
3403
|
* point lands where typing there would land, a range keeps content at its
|
|
3360
3404
|
* edges out, and a path or a span's paths land on their nodes' paths. A node
|
|
3361
|
-
* or node key names its node in both documents, so it stays as given.
|
|
3405
|
+
* or node key names its node in both documents, so it stays as given. An
|
|
3406
|
+
* element id lands as the key of the element that holds it there. Every other
|
|
3362
3407
|
* target keeps its kind, and `location` returns null when it has no place
|
|
3363
3408
|
* there.
|
|
3364
3409
|
*/
|
|
3365
3410
|
type EditorCommandPlace = Readonly<{
|
|
3366
|
-
location: <T extends NodeTarget | NodeSelection | Span>(at: T) => T | null;
|
|
3411
|
+
location: <T extends NodeTarget | NodeSelection | Span>(at: T) => PlacedTarget<T> | null;
|
|
3367
3412
|
}>;
|
|
3413
|
+
/** A target as a command place gives it back: an element id as a node key. */
|
|
3414
|
+
type PlacedTarget<T> = T extends ElementIdTarget ? Exclude<keyof T, 'id'> extends never ? NodeKey : T : T;
|
|
3368
3415
|
type EditorCommandContinuation<Input> = ((...input: [] | [input: Input]) => EditorCommandResult) & {
|
|
3369
3416
|
/** Run downstream against the immutable state produced by the prefix. */
|
|
3370
3417
|
after: (prefix: TransactionSpec, ...input: [] | [input: Input]) => EditorCommandResult;
|
|
@@ -7027,6 +7074,7 @@ type InternalEditorSchemaApi<V extends Value = Value> = EditorStateSchemaApi<V>
|
|
|
7027
7074
|
document: DocumentIndex;
|
|
7028
7075
|
path: readonly number[];
|
|
7029
7076
|
from: number;
|
|
7077
|
+
afterLength: number;
|
|
7030
7078
|
}>, carried?: CarriedPropertyHook) => readonly Descendant[];
|
|
7031
7079
|
copyChildren: (children: readonly Descendant[], root: RootKey, ancestors?: readonly Element[]) => readonly Descendant[];
|
|
7032
7080
|
carryChildren: InternalEditorSchemaApi['copyChildren'];
|
|
@@ -7391,6 +7439,17 @@ type EditorTransactionGuard = (context: {
|
|
|
7391
7439
|
readonly schema: EditorSchemaIdentity;
|
|
7392
7440
|
}) => void | (() => void);
|
|
7393
7441
|
declare const isEditorPublishingCommit: (editor: AnyEditor) => boolean;
|
|
7442
|
+
type EditorHistoryEdge = Readonly<{
|
|
7443
|
+
root: string | undefined;
|
|
7444
|
+
selection: Selection;
|
|
7445
|
+
}>;
|
|
7446
|
+
declare const readEditorCommitHistoryEntry: (editor: AnyEditor, commit: EditorCommit) => Readonly<{
|
|
7447
|
+
after: EditorHistoryEdge;
|
|
7448
|
+
before: EditorHistoryEdge;
|
|
7449
|
+
entry: object;
|
|
7450
|
+
how: 'merge' | 'push';
|
|
7451
|
+
made: AnyEditor;
|
|
7452
|
+
}> | null;
|
|
7394
7453
|
/**
|
|
7395
7454
|
* Allow one internal state read to observe the active command-spec draft.
|
|
7396
7455
|
*
|
|
@@ -7420,6 +7479,16 @@ declare const scheduleAfterCommitNotification: (editor: AnyEditor, callback: ()
|
|
|
7420
7479
|
declare const getEditorUpdateRoot: (editor: AnyEditor) => string;
|
|
7421
7480
|
/** Register an internal acceptance guard that runs before a draft publishes. */
|
|
7422
7481
|
declare const registerEditorTransactionGuard: (editor: AnyEditor, guard: EditorTransactionGuard) => () => void;
|
|
7482
|
+
/**
|
|
7483
|
+
* Finds the element that holds an id, as `nodes.byId` does, also in a schema
|
|
7484
|
+
* that gives only some elements an id, where `nodes.byId` throws. Plate's id
|
|
7485
|
+
* plugin lets a schema give ids to blocks alone.
|
|
7486
|
+
*
|
|
7487
|
+
* @internal
|
|
7488
|
+
*/
|
|
7489
|
+
declare const readElementById: (nodes: Readonly<{
|
|
7490
|
+
byId: (id: string) => EditorElementEntry | null;
|
|
7491
|
+
}>, id: string) => EditorElementEntry | null;
|
|
7423
7492
|
declare const getSnapshotVersion: (editor: AnyEditor) => number;
|
|
7424
7493
|
/** One element a commit writes stored properties on, as it stood before. */
|
|
7425
7494
|
type ElementPropertyWrite = Readonly<{
|
|
@@ -8119,6 +8188,8 @@ type EditorCommandNativeProbe = Readonly<{
|
|
|
8119
8188
|
materialHandlers: readonly string[];
|
|
8120
8189
|
nativeEquivalent: boolean;
|
|
8121
8190
|
}>;
|
|
8191
|
+
/** Read the editor whose synchronous command chain is currently evaluating. */
|
|
8192
|
+
declare const getActiveCommandEditor: () => AnyEditor;
|
|
8122
8193
|
declare const hasCommandHandler: <Input>(editor: AnyEditor, command: EditorCommand<Input>) => boolean;
|
|
8123
8194
|
/**
|
|
8124
8195
|
* Evaluate one pure command without publishing its transaction.
|
|
@@ -8142,8 +8213,8 @@ declare const dispatchCommand: <TCommand extends EditorCommandDescriptor>(editor
|
|
|
8142
8213
|
//#region src/core/editor-commands.d.ts
|
|
8143
8214
|
type CommandTargetOptions<TOptions extends {
|
|
8144
8215
|
at?: Location | NodeSelection;
|
|
8145
|
-
},
|
|
8146
|
-
at?: Extract<TOptions['at'], NodeSelection> |
|
|
8216
|
+
}, TTarget = NodeTarget> = Omit<TOptions, 'at'> & {
|
|
8217
|
+
at?: Extract<TOptions['at'], NodeSelection> | TTarget;
|
|
8147
8218
|
};
|
|
8148
8219
|
type AddMarkCommand = {
|
|
8149
8220
|
key: string;
|
|
@@ -8157,7 +8228,7 @@ type DeleteCommand = {
|
|
|
8157
8228
|
unit: TextUnit;
|
|
8158
8229
|
};
|
|
8159
8230
|
type DeleteFragmentCommand = {
|
|
8160
|
-
at?:
|
|
8231
|
+
at?: TextTarget;
|
|
8161
8232
|
direction: 'backward' | 'forward';
|
|
8162
8233
|
};
|
|
8163
8234
|
type InsertBreakCommand = void;
|
|
@@ -8167,7 +8238,7 @@ type InsertNodesCommand = {
|
|
|
8167
8238
|
};
|
|
8168
8239
|
type InsertSoftBreakCommand = void;
|
|
8169
8240
|
type InsertTextCommand = {
|
|
8170
|
-
options?: CommandTargetOptions<TextInsertTextOptions>;
|
|
8241
|
+
options?: CommandTargetOptions<TextInsertTextOptions, TextTarget>;
|
|
8171
8242
|
text: string;
|
|
8172
8243
|
};
|
|
8173
8244
|
type MoveSelectionCommand = {
|
|
@@ -8190,7 +8261,7 @@ type SetSelectionCommand = {
|
|
|
8190
8261
|
props: Partial<Range>;
|
|
8191
8262
|
};
|
|
8192
8263
|
type ReplaceSliceCommand = {
|
|
8193
|
-
options?: CommandTargetOptions<TextInsertFragmentOptions>;
|
|
8264
|
+
options?: CommandTargetOptions<TextInsertFragmentOptions, TextTarget>;
|
|
8194
8265
|
slice: ContentSlice$1;
|
|
8195
8266
|
};
|
|
8196
8267
|
type ToggleMarkCommand = {
|
|
@@ -8993,6 +9064,8 @@ type CoreWork = {
|
|
|
8993
9064
|
collapsedBoundaryVisits: number;
|
|
8994
9065
|
composedProjectionSections: number;
|
|
8995
9066
|
contentRootOwnerScans: number;
|
|
9067
|
+
contentSpanNodes: number;
|
|
9068
|
+
tokenRangeVisits: number;
|
|
8996
9069
|
coverageCandidateChecks: number;
|
|
8997
9070
|
coverageQueries: number;
|
|
8998
9071
|
coverageRootKeyBuilds: number;
|
|
@@ -9540,6 +9613,7 @@ type AuthoredView = NonNullable<EditorViewOptions['authored']>;
|
|
|
9540
9613
|
/** `read` with every view of `view`'s editor reading the stored document. */
|
|
9541
9614
|
declare const withStoredAuthoredRead: <T>(view: AnyEditor, read: () => T) => T;
|
|
9542
9615
|
declare const readAuthoredView: (view: AnyEditor) => AuthoredView | undefined;
|
|
9616
|
+
declare const readShownPreview: (view: AnyEditor) => "accepted" | "proposed" | undefined;
|
|
9543
9617
|
declare const configureAuthoredView: (view: AnyEditor, value?: AuthoredView) => void;
|
|
9544
9618
|
declare const getAuthoredUpdateView: (editor: AnyEditor) => AnyEditor;
|
|
9545
9619
|
//#endregion
|
|
@@ -9750,4 +9824,4 @@ declare function createEditor<const TOptions extends Partial<Record<keyof Create
|
|
|
9750
9824
|
/** @internal */
|
|
9751
9825
|
declare const createDormantEditor: <V extends Value = Value, const TPlugins extends readonly unknown[] = readonly []>(options?: CreateEditorOptions<V, TPlugins>) => Editor<V, TPlugins>;
|
|
9752
9826
|
//#endregion
|
|
9753
|
-
export { createEditorOwner as $, EditorSchemaContentRoot as $a, EditorDirectCommandDispatch as $c, PluginTypeProviderOf as $d, insertText as $f, TextEntry as $h, getStateViewPresentation as $i, EditorSelectionTargetOptions as $l, EditorSelection as $m, EditorCommands as $n, SchemaElementHandle as $o, SelectionCollapseOptions as $p, setEditorRuntime as $r, ElementApi as $s, encodeVersionedValue as $t, EditorUpdatePolicy as $u, readEditorDocument as A, EditorSchemaContract as Aa, EditorBlockToggleOptions as Ac, PluginContributionInput as Ad, deleteFragment as Af, PointEntry as Ag, NodeDescendantsOptions as Ah, runTrustedUpdate as Ai, EditorNodesOptions as Al, TxOnlyMethod as Am, TransferDiagnostic as An, PropertyStringDescriptor as Ao, replaceChildren as Ap, getInstalledPluginApi as Ar, SchemaPropertyTypeChangePolicy as As, readRootViewUse as At, EditorTransactionChanged as Au, StructuralPlainTextResult as B, compileEditorSchemaContributions as Ba, EditorCommandInput as Bc, PluginInstalledCapabilitiesOf as Bd, getNodeKey as Bf, NodeLevelsOptions as Bh, setEditorStateViewTransform as Bi, EditorReadMethodTree as Bl, getInternalDocumentChangeClassificationEntries as Bm, TransferRefusalReason as Bn, SchemaContentOptions as Bo, toggleBlock as Bp, runEditorObserver as Br, SchemaTextPropertyOptions as Bs, assertEditorOptions as Bt, EditorTransactionRootsApi as Bu, EDITOR_DOCUMENT_FIELDS as C, CompiledSchemaConstructionPlan as Ca, CompatibleEditorCommand as Cc, PluginApiFactory as Cd, addMark as Cf, LocationInterface as Cg, DescendantOf as Ch, getLiveText as Ci, EditorNextOptions as Cl, SelectionEdge as Cm, TransferPlugin as Cn, PropertyEnumDescriptor as Co, previous as Cp, compilePluginInput as Cr, SchemaPropertyHandleValue as Cs, AnnotationStoreMetrics as Ct, EditorTransactionAnchor as Cu, getEditorDocumentShapeIssueMessage as D, CompiledSchemaPropertyMergeStrategy as Da, Editor as Dc, PluginCapabilities as Dd, deleteBackward as Df, BasePoint as Dg, NodeApi as Dh, readElementPropertyWrites as Di, EditorNodeGetOptions as Dl, TextUnitAdjustment as Dm, editorReads as Dn, PropertyOptionsOf as Do, removeMark as Dp, getCandidatePluginApi as Dr, SchemaPropertyReferences as Ds, readRootEntries as Dt, EditorTransactionBreakApi as Du, assertEditorDocumentContainers as E, CompiledSchemaProperty as Ea, DefinitionOf as Ec, PluginCandidateEditor as Ed, collapse as Ef, SpanInterface as Eg, NodeAncestorsOptions as Eh, isEditorPublishingCommit as Ei, EditorNodeChangeKind as El, TextUnit as Em, transferVeto as En, PropertyNumberDescriptor as Eo, read$1 as Ep, definePlugin as Er, SchemaPropertyLandingPolicy as Es, sameResult as Et, EditorTransactionBlocksApi as Eu, EditorRefusalError as F, EditorSchemaContractDiff as Fa, EditorCommandContext as Fc, PluginDependencyReferenceFor as Fd, fragment as Ff, PathInterface as Fg, NodeFindTextRangesOptions as Fh, setEditorComposing as Fi, EditorReadAroundHandler as Fl, txStored as Fm, TransferLandingTarget as Fn, PropertyValueOptions as Fo, setSelection as Fp, setPluginPortalFactory as Fr, SchemaTextBlockOptions as Fs, AnchorStateWork as Ft, EditorTransactionMarksApi as Fu, createEditorReadApi as G, matchesCompiledSchemaTarget as Ga, EditorCommitChanged as Gc, PluginReadFactory as Gd, hasBlocks as Gf, NodeProps as Gh, withEditorDocumentProjection as Gi, EditorReplaceNodeOptions as Gl, mapInternalDocumentChangePosition as Gm, TransferTarget as Gn, SchemaContentRootOwnership as Go, update as Gp, schema$1 as Gr, EditorSchemaSource as Gs, invertEffect as Gt, EditorTransactionTextApi as Gu, exportContentSlice as H, getCompiledPropertyCandidates as Ha, EditorCommandResult as Hc, PluginPoint as Hd, getPluginRegistry$1 as Hf, NodeMatchPredicate as Hh, setEditorViewing as Hi, EditorReadRegistration as Hl, getInternalDocumentChangeRootKeys as Hm, TransferSide as Hn, SchemaContentRoot as Ho, unhangRange as Hp, PropertyBuilderApi as Hr, SchemaValue as Hs, createEditorEffect as Ht, EditorTransactionSliceApi as Hu, projectRangeInSnapshot as I, EditorSchemaContractElement as Ia, EditorCommandContinuation as Ic, PluginFactoryTypeLambda as Id, getChildren as If, PathLevelsOptions as Ig, NodeHasPropsOptions as Ih, setEditorFocused as Ii, EditorReadContext as Il, defineCommand$1 as Im, TransferOutcome as In, SchemaBuiltInGroupName as Io, shouldMergeNodesRemovePrevNode as Ip, startEditor as Ir, SchemaTextProperties as Is, observeAnchorStateWork as It, EditorTransactionNodesApi as Iu, toPublicRoot as J, resolveCompiledSchemaProperty as Ja, EditorCommitListener as Jc, PluginReconfigureOptions as Jd, hasTexts as Jf, NodeTextRangeQuery as Jh, setTargetRuntime as Ji, EditorSchemaGetProperty as Jl, JsonNode as Jm, TransferWrap as Jn, SchemaContentRule as Jo, TextDeleteOptions as Jp, InternalPluginPublicationEntry as Jr, SchemaElementInNode as Js, assertEditorJsonValue as Jt, EditorUniqueHolder as Ju, assertPublicRootKey as K, preserveCompiledSchemaPropertyIdentity as Ka, EditorCommitContext as Kc, PluginReadFactoryContext as Kd, hasInlines as Kf, NodeTextRangeEntry as Kh, withEditorUpdateRootScope as Ki, EditorRootEntry as Kl, normalizeSetValues as Km, TransferVeto as Kn, SchemaContentRootSlotsFor as Ko, voidEditor as Kp, target as Kr, EditorSchemaSourceProvider as Ks, mapEffect as Kt, EditorTransactionTopLevelRange as Ku, StructuralPlainTextDiagnostic as L, EditorSchemaContractRoot as La, EditorCommandDescriptor as Lc, PluginFactoryTypeProvider as Ld, getCollabEffects as Lf, EditorJsonValue as Lg, NodeIn as Lh, setEditorMaxLength as Li, EditorReadDescriptor as Ll, DocumentChange as Lm, TransferPatch as Ln, SchemaContent as Lo, splitNodes as Lp, withPluginPortalCandidates as Lr, SchemaTextProperty as Ls, readingCovered as Lt, EditorTransactionPluginsApi as Lu, readStoredEditorDocument as M, EditorSchemaContractChangeKind as Ma, EditorCanonicalUpdateTag as Mc, PluginDefinitionInput as Md, edges as Mf, Path as Mg, NodeEntry as Mh, setChildren as Mi, EditorParentOptions as Ml, txLocate as Mm, TransferInput as Mn, PropertyValueDescriptor as Mo, select as Mp, queueAfterPluginAcquisition as Mr, SchemaRootNames as Ms, subscribeShownViewUse as Mt, EditorTransactionDocumentChangeKind as Mu, rejectEditorRecord as N, EditorSchemaContractContentProgram as Na, EditorCommand as Nc, PluginDependencyContractReference as Nd, elementReadOnly as Nf, PathAncestorsOptions as Ng, NodeEntryIn as Nh, setCurrentMarks as Ni, EditorPreviousOptions as Nl, txOnly as Nm, TransferIntent as Nn, PropertyValueKind as No, setNodes as Np, releaseEditor as Nr, SchemaTarget as Ns, CoreWork as Nt, EditorTransactionEffectsApi as Nu, isEnvelopeInput as O, CompiledSchemaTargetContext as Oa, EditorAboveOptions as Oc, PluginCleanupContext as Od, deleteEditor as Of, Point as Og, NodeChildEntry as Oh, registerEditorTransactionGuard as Oi, EditorNodeTypeProvider as Ol, TxDeclaredMethod as Om, TransferAdoptInput as On, PropertySetDescriptor as Oo, removeNodes as Op, getCompiledEditorConfiguration as Or, SchemaPropertyRole as Os, markRootViewUsed as Ot, EditorTransactionChangeContext as Ou, mapSemanticUpdateMethodArguments as P, EditorSchemaContractContentRoot as Pa, EditorCommandAroundHandler as Pc, PluginDependencyReference as Pd, first as Pf, PathApi as Pg, NodeEntryOf as Ph, setCurrentSelection as Pi, EditorRead as Pl, txSelection as Pm, TransferLandingInput as Pn, PropertyValueOf as Po, setPoint as Pp, resolveInstalledPlugin as Pr, SchemaText as Ps, readCoreWork as Pt, EditorTransactionFragmentApi as Pu, EditorOwner as Q, EditorSchemaContent as Qa, EditorCoreUpdateTransaction as Qc, PluginTypeProvider as Qd, insertSoftBreak as Qf, NodeTypeSelector as Qh, ViewPresentation as Qi, EditorSelectionBlockOptions as Ql, EditorSchemaValidationPropertyContext as Qm, DeleteFragmentCommand as Qn, SchemaElementFor as Qo, TextRemoveTextOptions as Qp, hasEditorRuntime as Qr, Element as Qs, encodeEditorEffect as Qt, EditorUpdateMethods as Qu, StructuralPlainTextEncodeContext as R, EditorSchemaContributionRecord as Ra, EditorCommandDispatch as Rc, PluginFactoryTypeProviderOf as Rd, getFragment as Rf, NodeInterface as Rh, setEditorReadOnly as Ri, EditorReadInput as Rl, createInternalRootChangeFromSections as Rm, TransferPatchProperties as Rn, SchemaContentDefault as Ro, string as Rp, notifyObservers as Rr, SchemaTextPropertyDefinition as Rs, failInvariant as Rt, EditorTransactionRecordsApi as Ru, withStoredAuthoredRead as S, CompiledEditorSchema as Sa, BlockInsertOptions as Sc, PluginActivationContext as Sd, above as Sf, LocationApi as Sg, DescendantIn as Sh, getLiveSelection as Si, EditorMarksOf as Sl, RangeMode as Sm, TransferApi as Sn, PropertyBooleanDescriptor as So, positions as Sp, compilePlugin as Sr, SchemaPropertyHandle as Ss, mapDetachedSelectionThroughChange as St, EditorToggleMarkOptions as Su, EditorRecordIssue as T, CompiledSchemaElement as Ta, CreateEditorOptions as Tc, PluginCandidateContext as Td, before$1 as Tf, SpanApi as Tg, Node as Th, getStateFieldEffectTypes as Ti, EditorNodeChangeHandler as Tl, TextDirection as Tm, transfer as Tn, PropertyJsonOptions as To, range as Tp, defineEditorSchema as Tr, SchemaPropertyKey as Ts, getTextSearchScope as Tt, EditorTransactionAnnotationsApi as Tu, callPluginUpdateMethod as U, getCompiledPropertyMergeStrategy as Ua, EditorCommit as Uc, PluginPortal as Ud, getSelection as Uf, NodeNodesOptions as Uh, subscribeCaretTarget as Ui, EditorReadResult as Ul, hasInternalDocumentChangeRoot as Um, TransferSideInput as Un, SchemaContentRootContribution as Uo, unsetNodes as Up, getSchemaElementSourceReference as Ur, SchemaValueFromPlugins as Us, defineEffect as Ut, EditorTransactionSpecBuilder as Uu, serializeStructuralPlainText as V, diffEditorSchemaContracts as Va, EditorCommandPlace as Vc, PluginMigrationContext as Vd, getPathByNodeKey as Vf, NodeMatch as Vh, setEditorTransactionViewTransform as Vi, EditorReadMethods as Vl, getInternalDocumentChangeRanges as Vm, TransferRelation as Vn, SchemaContentPrefixSlot as Vo, toggleMark as Vp, definePluginPoint as Vr, SchemaTypesTarget as Vs, readEditorOptions as Vt, EditorTransactionSelectionApi as Vu, resolvePluginMethod as W, getCompiledSchemaPropertyId as Wa, EditorCommitChangeKind as Wc, PluginReadContext as Wd, getSnapshot as Wf, NodeOf as Wh, subscribeEditorViewState as Wi, EditorReplaceChildrenOptions as Wl, mapInternalDocumentChangePoint as Wm, TransferSourceInput as Wn, SchemaContentRootInput as Wo, unwrapNodes as Wp, property as Wr, EditorSchemaPluginProvider as Ws, defineUpdateAnnotation as Wt, EditorTransactionTagsApi as Wu, getRangeRoot as X, tracksPlaces as Xa, EditorCoreStateView as Xc, PluginSlotLike as Xd, insertNode as Xf, NodeTextRangeView as Xh, holdsCaret as Xi, EditorSchemaReadProperty as Xl, EditorSchemaValidationCode as Xm, CollapseSelectionCommand as Xn, SchemaElement as Xo, TextInsertTextOptions as Xp, getEditorRuntimeOwner as Xr, SchemaTextInNode as Xs, decodeEditorEffect as Xt, EditorUpdateAnnotation as Xu, MAIN_ROOT_KEY as Y, restoreEditorSchemaContract as Ya, EditorCommitRuntimeChangeKind as Yc, PluginReference as Yd, insertBreak as Yf, NodeTextRangeRoot as Yh, getCaretOwner as Yi, EditorSchemaPropertyReadOptions as Yl, getNodeKeyDOMValue as Ym, AddMarkCommand as Yn, SchemaDescendant as Yo, TextInsertFragmentOptions as Yp, getEditorRuntime as Yr, SchemaNodeTypeProvider as Ys, cloneEditorJsonValue as Yt, EditorUpdate as Yu, getReaderRange as Z, DerivedEditorSchemaIdentity as Za, EditorCoreUpdateMethods as Zc, PluginTypeLambda as Zd, insertNodes as Zf, NodeTextsOptions as Zh, setSelectionAsView as Zi, EditorSchemaVocabulary as Zl, EditorSchemaValidationDiagnostic as Zm, DeleteCommand as Zn, SchemaElementConstructionPropertiesFor as Zo, TextMutationMethods as Zp, getEditorRuntimeRoot as Zr, BaseElement as Zs, decodeVersionedValue as Zt, EditorUpdateContext as Zu, isDocumentView as _, CarriedRun as _a, TextIn as _c, NamedRootKey as _d, TargetFreshnessRequest as _f, Range as _g, ChildOf as _h, getEditorRuntimeElementEntries as _i, EditorIsEditorOptions as _l, NodeWrapNodesOptions as _m, nodeWriteVeto as _n, EditorSchemaPropertyQuery as _o, moveNodes as _p, evaluateCommand as _r, SchemaPluginsOf as _s, assertDetachedSelectionSupported as _t, EditorStateViewProvider as _u, compileEditorSchemaContractEntries as a, claimsHistoryReplay as aa, ElementOrTextIn as ac, EditorUpdateTransactionProvider as ad, ProjectedRangeSegment as af, getValueRecords as ag, SelectionValue as ah, attachTransactionSpecAfterCommit as ai, EditorEffectCollabEncodeContext as al, NodeInsertNodesOptions as am, PluginSlot as an, EditorSchemaElement as ao, isEmpty as ap, RemoveMarkCommand as ar, SchemaElementPropertyKeys as as, getViewPresentation as at, EditorStateNodesApi as au, getAuthoredUpdateView as b, getPluginRegistry as ba, AnyEditor as bc, PersistedDocumentInput as bd, Value as bf, RangeInterface as bg, DescendantEntryIn as bh, getEditorUpdateRoot as bi, EditorLifecycleErrorSink as bl, MoveUnit as bm, AuthoredVeto as bn, EditorSchemaUnknownPolicy as bo, path as bp, PluginPublicationError as br, SchemaPropertyDefinition as bs, encodeEditorSelection as bt, EditorTextChangeHandler as bu, getEditorAuthoredDocumentCapability as c, getEditorCommitSnapshot as ca, BooleanMarkKeysOf as cc, EditorValuePersistence as cd, SerializedEditorSelection as cf, recordSetIds as cg, DecorationAttributes as ch, fitSlicePlacements as ci, EditorEffectHistoryReplayResult as cl, NodeMergeNodesOptions as cm, ContentSlice as cn, EditorSchemaElementStructure as co, isSelectable as cp, SelectCommand as cr, SchemaElementShapeFor as cs, readShownRecords as ct, EditorStateRuntimeApi as cu, withCompiledEditorSchemaCapabilityEntries as d, canPlaceBlocksAtPath as da, MarkKeysOf as dc, EditorViewOptions as dd, SnapshotInput as df, AnchorDeletionPolicy as dg, Ancestor as dh, getActiveEditorUpdateTags as di, EditorFragmentDeletionOptions as dl, NodeRemoveNodesOptions as dm, AuthoredProjectionDiagnostic as dn, EditorSchemaOverride as do, last as dp, ToggleBlockCommand as dr, SchemaElementTarget as ds, withMountedPresentation as dt, EditorStateSliceApi as du, onPresentationRelease as ea, ElementEntry as ec, EditorUpdatePolicyFor as ed, PluginTypes as ef, TextEntryIn as eg, NodeSelection as eh, ElementPropertyWrite as ei, EditorDirectUpdate as el, SelectionMoveOptions as em, snapshotEditorJsonValue as en, EditorSchemaContribution as eo, install as ep, InsertBreakCommand as er, SchemaElementInput as es, startOwnedEditor as et, EditorSliceReadOptions as eu, readDocumentRange as f, createDetachedEditorSchema as fa, MarksIn as fc, HistoryApi as fd, StateFieldCollabPolicy as ff, AnchorOptions as fg, AncestorEntry as fh, getCollabEffectTypes as fi, EditorFragmentReadOptions as fl, NodeReplaceChildrenOptions as fm, AuthoredProjectionRefusal as fn, EditorSchemaOverrideInput as fo, leaf as fp, ToggleMarkCommand as fr, SchemaElementTypes as fs, DocumentChangeRelocation as ft, EditorStateTextApi as fu, setDebugValueScrubber as g, RootFactsJson as ga, TextEqualsOptions as gc, InitialValue as gd, StateFieldValueInput as gf, BaseRange as gg, BaseNode as gh, getEditorNodeKeyForNode as gi, EditorInstalledUpdateGroups as gl, NodeUnwrapNodesOptions as gm, NodeWriteVetoInput as gn, EditorSchemaPropertyOverrideInput as go, move as gp, dispatchCommand as gr, SchemaKeyPrefix as gs, completePersistedDocumentFields as gt, EditorStateViewApi as gu, formatDebugValue as h, placeElementAt as ha, TextApi as hc, HistorySettlement as hd, StateFieldInitial as hf, RangeAnchorAssociation as hg, AncestorOf as hh, getEditorMaxLength as hi, EditorInstalledReadGroups as hl, NodeUnsetNodesOptions as hm, NodeWriteVeto as hn, EditorSchemaPropertyOverride as ho, mergeNodes as hp, EditorCommandNativeProbe as hr, SchemaGroupOptions as hs, getExactDocumentChangeRelocations as ht, EditorStateView as hu, compileEditorSchemaContract as i, SliceLandingTarget as ia, ElementOf as ic, EditorUpdateTransactionOf as id, PluginsOf as if, getRecordSetVersion as ig, SelectionAssociation as ih, applyBuiltDocumentChange as ii, EditorEffectCollabDecodeContext as il, NodeDuplicateOptions as im, EditorSchemaValidationError as in, EditorSchemaDerivedDefinition as io, isElementReadOnly as ip, MoveSelectionCommand as ir, SchemaElementPropertyDefinition as is, getViewAuthor as it, EditorStateMarksApi as iu, readPersistedEnvelope as j, EditorSchemaContractChange as ja, EditorBreakExitOptions as jc, PluginDefinition as jd, deselect as jf, PointInterface as jg, NodeElementsOptions as jh, scheduleAfterCommitNotification as ji, EditorNodesReadOptions as jl, locateAt as jm, TransferEdge as jn, PropertyValidation as jo, reset as jp, isPlugin as jr, SchemaRecordSet as js, readShownViewUse as jt, EditorTransactionChangesApi as ju, readDocumentRecord as k, EditorSchemaCompileError as ka, EditorBlockOptions as kc, PluginContribution as kd, deleteForward as kf, PointApi as kg, NodeChildrenOptions as kh, repairEditorValue as ki, EditorNodeUnsetOptions as kl, TxMethodDeclarations as km, TransferCheck as kn, PropertySetOptions as ko, replace as kp, getInstalledPlugin as kr, SchemaPropertySplitPolicy as ks, readCaretViewIn as kt, EditorTransactionChangeHandler as ku, initializePluginEntries as l, getEditorCommitValue as la, BooleanMarksOf as lc, EditorValueTypeProvider as ld, SerializedEditorValue as lf, Anchor as lg, DecorationRefresh as lh, getActiveEditorTransaction as li, EditorEffectType as ll, NodeMoveNodesOptions as lm, createDetachedContentSlice as ln, EditorSchemaIdentity as lo, isStart as lp, SetNodesCommand as lr, SchemaElementSlicePolicy as ls, readViewPage as lt, EditorStateSchemaApi as lu, DebugValueScrubber as m, landNodePropertiesAt as ma, Text as mc, HistoryResult as md, StateFieldHistoryPolicy as mf, EditorDocumentRange as mg, AncestorIn as mh, getCurrentSelectionRoot as mi, EditorInstalledApiGroups as ml, NodeSplitNodesOptions as mm, isAuthorId as mn, EditorSchemaProperty as mo, liftNodes as mp, EditorCommandEvaluation as mr, SchemaGroupNames as ms, getExactDocumentChangeRelocation as mt, EditorStateValueApi as mu, PluginsFromOptions as n, SliceLanding as na, ElementInterface as nc, EditorUpdateTagInput as nd, PluginUpdateFactoryContext as nf, RecordSetVersion as ng, Selection as nh, InternalSlicePlacement as ni, EditorDocumentValue as nl, SelectionSetPointOptions as nm, screenReaderAnnouncementEffect as nn, EditorSchemaDefinition as no, isEdge as np, InsertSoftBreakCommand as nr, SchemaElementPropertiesFor as ns, createEditorView as nt, EditorStateField as nu, createDormantEditor as o, getDocumentValueNode as oa, ElementOrTextOf as oc, EditorUpdateValueFromPlugin as od, RootKey as of, readRecord as og, TextSelection as oh, documentReplacement as oi, EditorEffectCollabReplay as ol, NodeInsertSplitOptions as om, PluginSlotValue as on, EditorSchemaElementOverride as oo, isEnd as op, RemoveNodesCommand as or, SchemaElementPropertyOptions as os, projectEditorView as ot, EditorStatePointsApi as ou, isObject as p, getCompiledEditorSchemaFromApi as pa, MarksOf as pc, HistoryOutcome as pd, StateFieldDescriptor as pf, AnchorValue as pg, AncestorEntryOf as ph, getCurrentMarks as pi, EditorGenericMethod as pl, NodeSetNodesOptions as pm, NativeAuthoredDocumentCapability as pn, EditorSchemaPlugin as po, levels as pp, editorCommands as pr, SchemaGroup as ps, getDocumentChangeRelocations as pt, EditorStateUniqueApi as pu, toInternalRoot as q, readEditorSchemaContract as qa, EditorCommitHandler as qc, PluginReadMiddlewareFactory as qd, hasPath as qf, NodeTextRangeMatch as qh, withTransactionSpecDraftRead as qi, EditorRootOwner as ql, JsonEditorValue as qm, TransferVetoInput as qn, SchemaContentRootStructure as qo, wrapNodes as qp, InternalCompiledPluginPublicationEntry as qr, SchemaDescendantInValue as qs, areEditorJsonValuesEqual as qt, EditorTransactionValueApi as qu, compileEditorSchemaCapabilityEntries as r, SliceLandingInput as ra, ElementIsElementOptions as rc, EditorUpdateTransaction as rd, PluginWitnessFor as rf, canonicalRecordJson as rg, SelectionApi as rh, afterActiveTransactionEnds as ri, EditorEffect as rl, BlockDuplicateOptions as rm, defineStateField as rn, EditorSchemaDelta as ro, isEditor as rp, InsertTextCommand as rr, SchemaElementProperty as rs, getCarriedCaretEditor as rt, EditorStateFragmentApi as ru, createEditor as s, getEditorCommitNode as sa, BaseText as sc, EditorValueFromPlugins as sd, SerializedEditorEffect as sf, recordSetChanges as sg, Decoration as sh, fitSliceChildren as si, EditorEffectCollabTransport as sl, NodeLiftNodesOptions as sm, definePluginSlot as sn, EditorSchemaElementOverrideInput as so, isInline as sp, ReplaceSliceCommand as sr, SchemaElementPropertyValue as ss, readShownDocument as st, EditorStateRangesApi as su, EditorValueFromOptions as t, InternalEditorRuntimeElementEntry as ta, ElementIn as tc, EditorUpdateTag as td, PluginUpdateFactory as tf, TextEntryOf as tg, NodeSelectionMode as th, InternalSliceChildrenTarget as ti, EditorDocumentRecords as tl, SelectionMutationMethods as tm, valueCodecs as tn, EditorSchemaDeclaration as to, isBlock as tp, InsertNodesCommand as tr, SchemaElementProperties as ts, createAuthoredEditorView as tt, EditorSnapshot as tu, initializePlugins as u, InternalEditorSchemaApi as ua, LeafPosition as uc, EditorView as ud, SnapshotIndex as uf, AnchorAssociation as ug, DecorationSource as uh, getActiveEditorUpdateId as ui, EditorElementBehavior as ul, NodeMutationMethods as um, AuthoredDocumentProjection as un, EditorSchemaNamedDefinition as uo, isVoid as up, SetSelectionCommand as ur, SchemaElementStructure as us, retainViewPresentation as ut, EditorStateSelectionApi as uu, withDocumentViewRead as v, getCompiledEditorSchema as va, TextInterface as vc, NodeKey as vd, TopLevelRuntimeRange as vf, RangeApi as vg, Descendant as vh, getEditorRuntimeRootKeys as vi, EditorLevelsOptions as vl, LeafEdge as vm, vetoesWrite as vn, EditorSchemaRepairCode as vo, next as vp, hasCommandHandler as vr, SchemaProperty as vs, assertSelectionSupported as vt, EditorTargetRuntime as vu, EditorDocumentShapeIssue as w, CompiledSchemaContentProgram as wa, ContentSlice$1 as wc, PluginApiFactoryContext as wd, after$1 as wf, Span as wg, ElementEntryOf as wh, getSnapshotVersion as wi, EditorNodeChangeContext as wl, SelectionMode as wm, TransferRead as wn, PropertyJsonDescriptor as wo, projectRange as wp, containsCompleteEditorSchema as wr, SchemaPropertyIds as ws, getAnnotationStoreMetrics as wt, EditorTransactionAnchorApi as wu, readAuthoredView as x, inheritPluginRegistry as xa, BaseEditor as xc, Plugin as xd, ValueOf as xf, Location as xg, DescendantEntryOf as xh, getLiveNode as xi, EditorMarks as xl, RangeDirection as xm, authoredVeto as xn, NamedEditorSchemaIdentity as xo, point as xp, brandPluginDescriptor as xr, SchemaPropertyExclusiveGroup as xs, getSelectionDOMRange as xt, EditorToggleBlockOptions as xu, configureAuthoredView as y, getPluginContributions as ya, TextOf as yc, NodeTarget as yd, TransactionSpec as yf, RangeEdgesOptions as yg, DescendantEntry as yh, getEditorStateView as yi, EditorLifecycleError as yl, MaximizeMode as ym, AuthoredTouch as yn, EditorSchemaStructureProperty as yo, parent as yp, probeCommandNativeEquivalent as yr, SchemaPropertyCopyPolicy as ys, decodeEditorSelection as yt, EditorTextChangeContext as yu, StructuralPlainTextEncoder as z, EditorSchemaDiagnostic as za, EditorCommandHandler as zc, PluginInput as zd, getLastCommit as zf, NodeIsNodeOptions as zh, setEditorSnapshotInputTransform as zi, EditorReadMethodRecord as zl, getInternalDocumentChangeClassification as zm, TransferPayload as zn, SchemaContentInput as zo, subscribeSource as zp, reportEditorLifecycleError as zr, SchemaTextPropertyKeys as zs, CheckedEditorOptions as zt, EditorTransactionRemoved as zu };
|
|
9827
|
+
export { EditorOwner as $, restoreEditorSchemaContract as $a, EditorCommitRuntimeChangeKind as $c, PluginReadFactoryContext as $d, getSnapshot as $f, NodeOf as $h, getCaretOwner as $i, EditorSchemaGetProperty as $l, mapInternalDocumentChangePoint as $m, DeleteFragmentCommand as $n, SchemaDescendant as $o, unwrapNodes as $p, getEditorRuntimeRoot as $r, SchemaNodeTypeProvider as $s, encodeEditorEffect as $t, EditorUniqueHolder as $u, readDocumentRecord as A, CompiledSchemaProperty as Aa, DefinitionOf as Ac, PluginApiFactory as Ad, WithNodeTarget as Af, Location as Ag, DescendantEntryOf as Ah, readElementById as Ai, EditorNodeChangeHandler as Al, RangeDirection as Am, TransferCheck as An, PropertyNumberDescriptor as Ao, point as Ap, getCompiledEditorConfiguration as Ar, SchemaPropertyLandingPolicy as As, readCaretViewIn as At, EditorTransactionAnnotationsApi as Au, StructuralPlainTextEncoder as B, EditorSchemaContractElement as Ba, EditorCommandContinuation as Bc, PluginDependencyContractReference as Bd, deselect as Bf, PointInterface as Bg, NodeElementsOptions as Bh, setEditorFocused as Bi, EditorReadAroundHandler as Bl, locateAt as Bm, TransferPayload as Bn, SchemaBuiltInGroupName as Bo, reset as Bp, notifyObservers as Br, SchemaTextProperties as Bs, CheckedEditorOptions as Bt, EditorTransactionMarksApi as Bu, withStoredAuthoredRead as C, getPluginContributions as Ca, TextOf as Cc, NamedRootKey as Cd, StateFieldValueInput as Cf, EditorDocumentRange as Cg, AncestorIn as Ch, getLiveNode as Ci, EditorLevelsOptions as Cl, NodeSplitNodesOptions as Cm, TransferApi as Cn, EditorSchemaStructureProperty as Co, liftNodes as Cp, brandPluginDescriptor as Cr, SchemaPropertyCopyPolicy as Cs, mapDetachedSelectionThroughChange as Ct, EditorTargetRuntime as Cu, assertEditorDocumentContainers as D, CompiledSchemaConstructionPlan as Da, CompatibleEditorCommand as Dc, PlacedTarget as Dd, TransactionSpec as Df, RangeApi as Dg, Descendant as Dh, getStateFieldEffectTypes as Di, EditorMarksOf as Dl, LeafEdge as Dm, transferVeto as Dn, PropertyEnumDescriptor as Do, next as Dp, defineEditorSchema as Dr, SchemaPropertyHandleValue as Ds, sameResult as Dt, EditorToggleMarkOptions as Du, EditorRecordIssue as E, CompiledEditorSchema as Ea, BlockInsertOptions as Ec, PersistedDocumentInput as Ed, TopLevelRuntimeRange as Ef, Range as Eg, ChildOf as Eh, getSnapshotVersion as Ei, EditorMarks as El, NodeWrapNodesOptions as Em, transfer as En, PropertyBooleanDescriptor as Eo, moveNodes as Ep, containsCompleteEditorSchema as Er, SchemaPropertyHandle as Es, getTextSearchScope as Et, EditorToggleBlockOptions as Eu, mapSemanticUpdateMethodArguments as F, EditorSchemaContractChange as Fa, EditorBreakExitOptions as Fc, PluginCleanupContext as Fd, collapse as Ff, SpanInterface as Fg, NodeAncestorsOptions as Fh, scheduleAfterCommitNotification as Fi, EditorNodesOptions as Fl, TextUnit as Fm, TransferLandingInput as Fn, PropertyValidation as Fo, read$1 as Fp, releaseEditor as Fr, SchemaRecordSet as Fs, readCoreWork as Ft, EditorTransactionChanged as Fu, resolvePluginMethod as G, diffEditorSchemaContracts as Ga, EditorCommandPlace as Gc, PluginFactoryTypeProviderOf as Gd, getChildren as Gf, PathLevelsOptions as Gg, NodeHasPropsOptions as Gh, setEditorTransactionViewTransform as Gi, EditorReadMethodTree as Gl, defineCommand$1 as Gm, TransferSourceInput as Gn, SchemaContentPrefixSlot as Go, shouldMergeNodesRemovePrevNode as Gp, getSchemaElementSourceReference as Gr, SchemaTypesTarget as Gs, defineUpdateAnnotation as Gt, EditorTransactionRootsApi as Gu, serializeStructuralPlainText as H, EditorSchemaContributionRecord as Ha, EditorCommandDispatch as Hc, PluginDependencyReferenceFor as Hd, elementReadOnly as Hf, PathAncestorsOptions as Hg, NodeEntryIn as Hh, setEditorReadOnly as Hi, EditorReadDescriptor as Hl, txOnly as Hm, TransferRelation as Hn, SchemaContentDefault as Ho, setNodes as Hp, runEditorObserver as Hr, SchemaTextPropertyDefinition as Hs, readEditorOptions as Ht, EditorTransactionPluginsApi as Hu, EditorRefusalError as I, EditorSchemaContractChangeKind as Ia, EditorCanonicalUpdateTag as Ic, PluginContribution as Id, deleteBackward as If, BasePoint as Ig, NodeApi as Ih, setChildren as Ii, EditorNodesReadOptions as Il, TextUnitAdjustment as Im, TransferLandingTarget as In, PropertyValueDescriptor as Io, removeMark as Ip, resolveInstalledPlugin as Ir, SchemaRootNames as Is, AnchorStateWork as It, EditorTransactionChangesApi as Iu, toInternalRoot as J, getCompiledSchemaPropertyId as Ja, EditorCommitChangeKind as Jc, PluginMigrationContext as Jd, getLastCommit as Jf, NodeIsNodeOptions as Jh, subscribeEditorViewState as Ji, EditorReadResult as Jl, getInternalDocumentChangeClassification as Jm, TransferVetoInput as Jn, SchemaContentRootInput as Jo, subscribeSource as Jp, target as Jr, EditorSchemaPluginProvider as Js, areEditorJsonValuesEqual as Jt, EditorTransactionSpecBuilder as Ju, createEditorReadApi as K, getCompiledPropertyCandidates as Ka, EditorCommandResult as Kc, PluginInput as Kd, getCollabEffects as Kf, EditorJsonValue as Kg, NodeIn as Kh, setEditorViewing as Ki, EditorReadMethods as Kl, DocumentChange as Km, TransferTarget as Kn, SchemaContentRoot as Ko, splitNodes as Kp, property as Kr, SchemaValue as Ks, invertEffect as Kt, EditorTransactionSelectionApi as Ku, projectRangeInSnapshot as L, EditorSchemaContractContentProgram as La, EditorCommand as Lc, PluginContributionInput as Ld, deleteEditor as Lf, Point as Lg, NodeChildEntry as Lh, setCurrentMarks as Li, EditorParentOptions as Ll, TxDeclaredMethod as Lm, TransferOutcome as Ln, PropertyValueKind as Lo, removeNodes as Lp, setPluginPortalFactory as Lr, SchemaTarget as Ls, observeAnchorStateWork as Lt, EditorTransactionDocumentChangeKind as Lu, readPersistedEnvelope as M, CompiledSchemaTargetContext as Ma, EditorAboveOptions as Mc, PluginCandidateContext as Md, addMark as Mf, LocationInterface as Mg, DescendantOf as Mh, registerEditorTransactionGuard as Mi, EditorNodeGetOptions as Ml, SelectionEdge as Mm, TransferEdge as Mn, PropertySetDescriptor as Mo, previous as Mp, getInstalledPluginApi as Mr, SchemaPropertyRole as Ms, readShownViewUse as Mt, EditorTransactionBreakApi as Mu, readStoredEditorDocument as N, EditorSchemaCompileError as Na, EditorBlockOptions as Nc, PluginCandidateEditor as Nd, after$1 as Nf, Span as Ng, ElementEntryOf as Nh, repairEditorValue as Ni, EditorNodeTypeProvider as Nl, SelectionMode as Nm, TransferInput as Nn, PropertySetOptions as No, projectRange as Np, isPlugin as Nr, SchemaPropertySplitPolicy as Ns, subscribeShownViewUse as Nt, EditorTransactionChangeContext as Nu, getEditorDocumentShapeIssueMessage as O, CompiledSchemaContentProgram as Oa, ContentSlice$1 as Oc, Plugin as Od, Value as Of, RangeEdgesOptions as Og, DescendantEntry as Oh, isEditorPublishingCommit as Oi, EditorNextOptions as Ol, MaximizeMode as Om, editorReads as On, PropertyJsonDescriptor as Oo, parent as Op, definePlugin as Or, SchemaPropertyIds as Os, readRootEntries as Ot, EditorTransactionAnchor as Ou, rejectEditorRecord as P, EditorSchemaContract as Pa, EditorBlockToggleOptions as Pc, PluginCapabilities as Pd, before$1 as Pf, SpanApi as Pg, Node as Ph, runTrustedUpdate as Pi, EditorNodeUnsetOptions as Pl, TextDirection as Pm, TransferIntent as Pn, PropertyStringDescriptor as Po, range as Pp, queueAfterPluginAcquisition as Pr, SchemaPropertyTypeChangePolicy as Ps, CoreWork as Pt, EditorTransactionChangeHandler as Pu, getReaderRange as Q, resolveCompiledSchemaProperty as Qa, EditorCommitListener as Qc, PluginReadFactory as Qd, getSelection as Qf, NodeNodesOptions as Qh, setTargetRuntime as Qi, EditorRootOwner as Ql, hasInternalDocumentChangeRoot as Qm, DeleteCommand as Qn, SchemaContentRule as Qo, unsetNodes as Qp, getEditorRuntimeOwner as Qr, SchemaElementInNode as Qs, decodeVersionedValue as Qt, EditorTransactionValueApi as Qu, StructuralPlainTextDiagnostic as R, EditorSchemaContractContentRoot as Ra, EditorCommandAroundHandler as Rc, PluginDefinition as Rd, deleteForward as Rf, PointApi as Rg, NodeChildrenOptions as Rh, setCurrentSelection as Ri, EditorPreviousOptions as Rl, TxMethodDeclarations as Rm, TransferPatch as Rn, PropertyValueOf as Ro, replace as Rp, startEditor as Rr, SchemaText as Rs, readingCovered as Rt, EditorTransactionEffectsApi as Ru, readShownPreview as S, getCompiledEditorSchema as Sa, TextInterface as Sc, InitialValue as Sd, StateFieldInitial as Sf, AnchorValue as Sg, AncestorEntryOf as Sh, getEditorUpdateRoot as Si, EditorIsEditorOptions as Sl, NodeSetNodesOptions as Sm, authoredVeto as Sn, EditorSchemaRepairCode as So, levels as Sp, PluginPublicationError as Sr, SchemaProperty as Ss, getSelectionDOMRange as St, EditorStateViewProvider as Su, EditorDocumentShapeIssue as T, inheritPluginRegistry as Ta, BaseEditor as Tc, NodeTarget as Td, TextTarget as Tf, BaseRange as Tg, BaseNode as Th, getLiveText as Ti, EditorLifecycleErrorSink as Tl, NodeUnwrapNodesOptions as Tm, TransferRead as Tn, NamedEditorSchemaIdentity as To, move as Tp, compilePluginInput as Tr, SchemaPropertyExclusiveGroup as Ts, getAnnotationStoreMetrics as Tt, EditorTextChangeHandler as Tu, exportContentSlice as U, EditorSchemaDiagnostic as Ua, EditorCommandHandler as Uc, PluginFactoryTypeLambda as Ud, first as Uf, PathApi as Ug, NodeEntryOf as Uh, setEditorSnapshotInputTransform as Ui, EditorReadInput as Ul, txSelection as Um, TransferSide as Un, SchemaContentInput as Uo, setPoint as Up, definePluginPoint as Ur, SchemaTextPropertyKeys as Us, createEditorEffect as Ut, EditorTransactionRecordsApi as Uu, StructuralPlainTextResult as V, EditorSchemaContractRoot as Va, EditorCommandDescriptor as Vc, PluginDependencyReference as Vd, edges as Vf, Path as Vg, NodeEntry as Vh, setEditorMaxLength as Vi, EditorReadContext as Vl, txLocate as Vm, TransferRefusalReason as Vn, SchemaContent as Vo, select as Vp, reportEditorLifecycleError as Vr, SchemaTextProperty as Vs, assertEditorOptions as Vt, EditorTransactionNodesApi as Vu, callPluginUpdateMethod as W, compileEditorSchemaContributions as Wa, EditorCommandInput as Wc, PluginFactoryTypeProvider as Wd, fragment as Wf, PathInterface as Wg, NodeFindTextRangesOptions as Wh, setEditorStateViewTransform as Wi, EditorReadMethodRecord as Wl, txStored as Wm, TransferSideInput as Wn, SchemaContentOptions as Wo, setSelection as Wp, PropertyBuilderApi as Wr, SchemaTextPropertyOptions as Ws, defineEffect as Wt, EditorTransactionRemoved as Wu, MAIN_ROOT_KEY as X, preserveCompiledSchemaPropertyIdentity as Xa, EditorCommitContext as Xc, PluginPortal as Xd, getPathByNodeKey as Xf, NodeMatch as Xh, withEditorUpdateRootScope as Xi, EditorReplaceNodeOptions as Xl, getInternalDocumentChangeRanges as Xm, AddMarkCommand as Xn, SchemaContentRootSlotsFor as Xo, toggleMark as Xp, InternalPluginPublicationEntry as Xr, EditorSchemaSourceProvider as Xs, cloneEditorJsonValue as Xt, EditorTransactionTextApi as Xu, toPublicRoot as Y, matchesCompiledSchemaTarget as Ya, EditorCommitChanged as Yc, PluginPoint as Yd, getNodeKey as Yf, NodeLevelsOptions as Yh, withEditorDocumentProjection as Yi, EditorReplaceChildrenOptions as Yl, getInternalDocumentChangeClassificationEntries as Ym, TransferWrap as Yn, SchemaContentRootOwnership as Yo, toggleBlock as Yp, InternalCompiledPluginPublicationEntry as Yr, EditorSchemaSource as Ys, assertEditorJsonValue as Yt, EditorTransactionTagsApi as Yu, getRangeRoot as Z, readEditorSchemaContract as Za, EditorCommitHandler as Zc, PluginReadContext as Zd, getPluginRegistry$1 as Zf, NodeMatchPredicate as Zh, withTransactionSpecDraftRead as Zi, EditorRootEntry as Zl, getInternalDocumentChangeRootKeys as Zm, CollapseSelectionCommand as Zn, SchemaContentRootStructure as Zo, unhangRange as Zp, getEditorRuntime as Zr, SchemaDescendantInValue as Zs, decodeEditorEffect as Zt, EditorTransactionTopLevelRange as Zu, isDocumentView as _, getCompiledEditorSchemaFromApi as _a, MarksOf as _c, ElementIdTarget as _d, SnapshotIndex as _f, recordSetIds as _g, DecorationAttributes as _h, getEditorMaxLength as _i, EditorFragmentReadOptions as _l, NodeMergeNodesOptions as _m, NodeWriteVetoInput as _n, EditorSchemaPlugin as _o, isSelectable as _p, dispatchCommand as _r, SchemaGroup as _s, completePersistedDocumentFields as _t, EditorStateTextApi as _u, compileEditorSchemaContractEntries as a, InternalEditorRuntimeElementEntry as aa, ElementIn as ac, EditorUpdatePolicyFor as ad, PluginTypeProvider as af, NodeTextRangeView as ag, EditorSchemaValidationCode as ah, afterActiveTransactionEnds as ai, EditorDocumentRecords as al, TextInsertTextOptions as am, EditorSchemaValidationError as an, EditorSchemaDeclaration as ao, insertNode as ap, MoveSelectionCommand as ar, SchemaElementProperties as as, getViewAuthor as at, EditorSliceReadOptions as au, getAuthoredUpdateView as b, RootFactsJson as ba, TextEqualsOptions as bc, HistoryResult as bd, StateFieldDescriptor as bf, AnchorDeletionPolicy as bg, Ancestor as bh, getEditorRuntimeRootKeys as bi, EditorInstalledReadGroups as bl, NodeRemoveNodesOptions as bm, AuthoredTouch as bn, EditorSchemaPropertyOverrideInput as bo, last as bp, hasCommandHandler as br, SchemaKeyPrefix as bs, decodeEditorSelection as bt, EditorStateView as bu, getEditorAuthoredDocumentCapability as c, SliceLandingTarget as ca, ElementOf as cc, EditorUpdateTransaction as cd, PluginUpdateFactory as cf, TextEntry as cg, EditorSelection as ch, documentReplacement as ci, EditorEffectCollabDecodeContext as cl, SelectionCollapseOptions as cm, definePluginSlot as cn, EditorSchemaDerivedDefinition as co, insertText as cp, ReplaceSliceCommand as cr, SchemaElementPropertyDefinition as cs, readShownDocument as ct, EditorStateFragmentApi as cu, withCompiledEditorSchemaCapabilityEntries as d, getEditorCommitNode as da, BaseText as dc, EditorUpdateValueFromPlugin as dd, PluginsOf as df, RecordSetVersion as dg, Selection as dh, getActiveEditorTransaction as di, EditorEffectCollabTransport as dl, SelectionSetPointOptions as dm, AuthoredDocumentProjection as dn, EditorSchemaElementOverrideInput as do, isEdge as dp, SetSelectionCommand as dr, SchemaElementPropertyValue as ds, retainViewPresentation as dt, EditorStatePointsApi as du, holdsCaret as ea, SchemaTextInNode as ec, EditorUpdate as ed, PluginReadMiddlewareFactory as ef, NodeProps as eg, mapInternalDocumentChangePosition as eh, hasEditorRuntime as ei, EditorCoreStateView as el, update as em, encodeVersionedValue as en, tracksPlaces as eo, hasBlocks as ep, EditorCommands as er, SchemaElement as es, createEditorOwner as et, EditorSchemaPropertyReadOptions as eu, readDocumentRange as f, getEditorCommitSnapshot as fa, BooleanMarkKeysOf as fc, EditorValueFromPlugins as fd, ProjectedRangeSegment as ff, canonicalRecordJson as fg, SelectionApi as fh, getActiveEditorUpdateId as fi, EditorEffectHistoryReplayResult as fl, BlockDuplicateOptions as fm, AuthoredProjectionDiagnostic as fn, EditorSchemaElementStructure as fo, isEditor as fp, ToggleBlockCommand as fr, SchemaElementShapeFor as fs, withMountedPresentation as ft, EditorStateRangesApi as fu, setDebugValueScrubber as g, createDetachedEditorSchema as ga, MarksIn as gc, EditorViewOptions as gd, SerializedEditorValue as gf, recordSetChanges as gg, Decoration as gh, getCurrentSelectionRoot as gi, EditorFragmentDeletionOptions as gl, NodeLiftNodesOptions as gm, NodeWriteVeto as gn, EditorSchemaOverrideInput as go, isInline as gp, EditorCommandNativeProbe as gr, SchemaElementTypes as gs, getExactDocumentChangeRelocations as gt, EditorStateSliceApi as gu, formatDebugValue as h, canPlaceBlocksAtPath as ha, MarkKeysOf as hc, EditorView as hd, SerializedEditorSelection as hf, readRecord as hg, TextSelection as hh, getCurrentMarks as hi, EditorElementEntry as hl, NodeInsertSplitOptions as hm, isAuthorId as hn, EditorSchemaOverride as ho, isEnd as hp, EditorCommandEvaluation as hr, SchemaElementTarget as hs, getExactDocumentChangeRelocation as ht, EditorStateSelectionApi as hu, compileEditorSchemaContract as i, onPresentationRelease as ia, ElementEntry as ic, EditorUpdatePolicy as id, PluginTypeLambda as if, NodeTextRangeRoot as ig, getNodeKeyDOMValue as ih, InternalSlicePlacement as ii, EditorDirectUpdate as il, TextInsertFragmentOptions as im, defineStateField as in, EditorSchemaContribution as io, insertBreak as ip, InsertTextCommand as ir, SchemaElementInput as is, getCarriedCaretEditor as it, EditorSelectionTargetOptions as iu, readEditorDocument as j, CompiledSchemaPropertyMergeStrategy as ja, Editor as jc, PluginApiFactoryContext as jd, above as jf, LocationApi as jg, DescendantIn as jh, readElementPropertyWrites as ji, EditorNodeChangeKind as jl, RangeMode as jm, TransferDiagnostic as jn, PropertyOptionsOf as jo, positions as jp, getInstalledPlugin as jr, SchemaPropertyReferences as js, readRootViewUse as jt, EditorTransactionBlocksApi as ju, isEnvelopeInput as k, CompiledSchemaElement as ka, CreateEditorOptions as kc, PluginActivationContext as kd, ValueOf as kf, RangeInterface as kg, DescendantEntryIn as kh, readEditorCommitHistoryEntry as ki, EditorNodeChangeContext as kl, MoveUnit as km, TransferAdoptInput as kn, PropertyJsonOptions as ko, path as kp, getCandidatePluginApi as kr, SchemaPropertyKey as ks, markRootViewUsed as kt, EditorTransactionAnchorApi as ku, initializePluginEntries as l, claimsHistoryReplay as la, ElementOrTextIn as lc, EditorUpdateTransactionOf as ld, PluginUpdateFactoryContext as lf, TextEntryIn as lg, NodeSelection as lh, fitSliceChildren as li, EditorEffectCollabEncodeContext as ll, SelectionMoveOptions as lm, ContentSlice as ln, EditorSchemaElement as lo, install as lp, SelectCommand as lr, SchemaElementPropertyKeys as ls, readShownRecords as lt, EditorStateMarksApi as lu, DebugValueScrubber as m, InternalEditorSchemaApi as ma, LeafPosition as mc, EditorValueTypeProvider as md, SerializedEditorEffect as mf, getValueRecords as mg, SelectionValue as mh, getCollabEffectTypes as mi, EditorElementBehavior as ml, NodeInsertNodesOptions as mm, NativeAuthoredDocumentCapability as mn, EditorSchemaNamedDefinition as mo, isEmpty as mp, editorCommands as mr, SchemaElementStructure as ms, getDocumentChangeRelocations as mt, EditorStateSchemaApi as mu, PluginsFromOptions as n, ViewPresentation as na, Element as nc, EditorUpdateContext as nd, PluginReference as nf, NodeTextRangeMatch as ng, JsonEditorValue as nh, ElementPropertyWrite as ni, EditorCoreUpdateTransaction as nl, wrapNodes as nm, valueCodecs as nn, EditorSchemaContent as no, hasPath as np, InsertNodesCommand as nr, SchemaElementFor as ns, createAuthoredEditorView as nt, EditorSchemaVocabulary as nu, createDormantEditor as o, SliceLanding as oa, ElementInterface as oc, EditorUpdateTag as od, PluginTypeProviderOf as of, NodeTextsOptions as og, EditorSchemaValidationDiagnostic as oh, applyBuiltDocumentChange as oi, EditorDocumentValue as ol, TextMutationMethods as om, PluginSlot as on, EditorSchemaDefinition as oo, insertNodes as op, RemoveMarkCommand as or, SchemaElementPropertiesFor as os, getViewPresentation as ot, EditorSnapshot as ou, isObject as p, getEditorCommitValue as pa, BooleanMarksOf as pc, EditorValuePersistence as pd, RootKey as pf, getRecordSetVersion as pg, SelectionAssociation as ph, getActiveEditorUpdateTags as pi, EditorEffectType as pl, NodeDuplicateOptions as pm, AuthoredProjectionRefusal as pn, EditorSchemaIdentity as po, isElementReadOnly as pp, ToggleMarkCommand as pr, SchemaElementSlicePolicy as ps, DocumentChangeRelocation as pt, EditorStateRuntimeApi as pu, assertPublicRootKey as q, getCompiledPropertyMergeStrategy as qa, EditorCommit as qc, PluginInstalledCapabilitiesOf as qd, getFragment as qf, NodeInterface as qh, subscribeCaretTarget as qi, EditorReadRegistration as ql, createInternalRootChangeFromSections as qm, TransferVeto as qn, SchemaContentRootContribution as qo, string as qp, schema$1 as qr, SchemaValueFromPlugins as qs, mapEffect as qt, EditorTransactionSliceApi as qu, compileEditorSchemaCapabilityEntries as r, getStateViewPresentation as ra, ElementApi as rc, EditorUpdateMethods as rd, PluginSlotLike as rf, NodeTextRangeQuery as rg, JsonNode as rh, InternalSliceChildrenTarget as ri, EditorDirectCommandDispatch as rl, TextDeleteOptions as rm, screenReaderAnnouncementEffect as rn, EditorSchemaContentRoot as ro, hasTexts as rp, InsertSoftBreakCommand as rr, SchemaElementHandle as rs, createEditorView as rt, EditorSelectionBlockOptions as ru, createEditor as s, SliceLandingInput as sa, ElementIsElementOptions as sc, EditorUpdateTagInput as sd, PluginTypes as sf, NodeTypeSelector as sg, EditorSchemaValidationPropertyContext as sh, attachTransactionSpecAfterCommit as si, EditorEffect as sl, TextRemoveTextOptions as sm, PluginSlotValue as sn, EditorSchemaDelta as so, insertSoftBreak as sp, RemoveNodesCommand as sr, SchemaElementProperty as ss, projectEditorView as st, EditorStateField as su, EditorValueFromOptions as t, setSelectionAsView as ta, BaseElement as tc, EditorUpdateAnnotation as td, PluginReconfigureOptions as tf, NodeTextRangeEntry as tg, normalizeSetValues as th, setEditorRuntime as ti, EditorCoreUpdateMethods as tl, voidEditor as tm, snapshotEditorJsonValue as tn, DerivedEditorSchemaIdentity as to, hasInlines as tp, InsertBreakCommand as tr, SchemaElementConstructionPropertiesFor as ts, startOwnedEditor as tt, EditorSchemaReadProperty as tu, initializePlugins as u, getDocumentValueNode as ua, ElementOrTextOf as uc, EditorUpdateTransactionProvider as ud, PluginWitnessFor as uf, TextEntryOf as ug, NodeSelectionMode as uh, fitSlicePlacements as ui, EditorEffectCollabReplay as ul, SelectionMutationMethods as um, createDetachedContentSlice as un, EditorSchemaElementOverride as uo, isBlock as up, SetNodesCommand as ur, SchemaElementPropertyOptions as us, readViewPage as ut, EditorStateNodesApi as uu, withDocumentViewRead as v, landNodePropertiesAt as va, Text as vc, HistoryApi as vd, SnapshotInput as vf, Anchor as vg, DecorationRefresh as vh, getEditorNodeKeyForNode as vi, EditorGenericMethod as vl, NodeMoveNodesOptions as vm, nodeWriteVeto as vn, EditorSchemaProperty as vo, isStart as vp, evaluateCommand as vr, SchemaGroupNames as vs, assertDetachedSelectionSupported as vt, EditorStateUniqueApi as vu, EDITOR_DOCUMENT_FIELDS as w, getPluginRegistry as wa, AnyEditor as wc, NodeKey as wd, TargetFreshnessRequest as wf, RangeAnchorAssociation as wg, AncestorOf as wh, getLiveSelection as wi, EditorLifecycleError as wl, NodeUnsetNodesOptions as wm, TransferPlugin as wn, EditorSchemaUnknownPolicy as wo, mergeNodes as wp, compilePlugin as wr, SchemaPropertyDefinition as ws, AnnotationStoreMetrics as wt, EditorTextChangeContext as wu, readAuthoredView as x, CarriedRun as xa, TextIn as xc, HistorySettlement as xd, StateFieldHistoryPolicy as xf, AnchorOptions as xg, AncestorEntry as xh, getEditorStateView as xi, EditorInstalledUpdateGroups as xl, NodeReplaceChildrenOptions as xm, AuthoredVeto as xn, EditorSchemaPropertyQuery as xo, leaf as xp, probeCommandNativeEquivalent as xr, SchemaPluginsOf as xs, encodeEditorSelection as xt, EditorStateViewApi as xu, configureAuthoredView as y, placeElementAt as ya, TextApi as yc, HistoryOutcome as yd, StateFieldCollabPolicy as yf, AnchorAssociation as yg, DecorationSource as yh, getEditorRuntimeElementEntries as yi, EditorInstalledApiGroups as yl, NodeMutationMethods as ym, vetoesWrite as yn, EditorSchemaPropertyOverride as yo, isVoid as yp, getActiveCommandEditor as yr, SchemaGroupOptions as ys, assertSelectionSupported as yt, EditorStateValueApi as yu, StructuralPlainTextEncodeContext as z, EditorSchemaContractDiff as za, EditorCommandContext as zc, PluginDefinitionInput as zd, deleteFragment as zf, PointEntry as zg, NodeDescendantsOptions as zh, setEditorComposing as zi, EditorRead as zl, TxOnlyMethod as zm, TransferPatchProperties as zn, PropertyValueOptions as zo, replaceChildren as zp, withPluginPortalCandidates as zr, SchemaTextBlockOptions as zs, failInvariant as zt, EditorTransactionFragmentApi as zu };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as AnnotationSnapshot, f as ViewSourceErrorSink, l as ResolvedAnnotation, o as AnnotationStore, t as Annotation } from "./index-
|
|
3
|
-
import { B as DOMApi, I as DOMEditorOptions, It as DOMCoverageReason, L as DOMPlugin, Mt as DOMCoverageMaterializeReason, O as DataTransferDiagnostic, R as DOMPluginTypes, Rt as DOMCoverageSelectionPolicy, Tt as DOMCoverageBoundary, V as DOMClipboardApi, W as DOMEditor, jt as DOMCoverageMaterializeRangeRole, kt as DOMCoverageCopyPolicy, vt as DropIndicator } from "./index-
|
|
4
|
-
import { r as ViewportRect, t as RangeGeometry } from "./range-geometry-
|
|
1
|
+
import { An as TransferCheck, Bd as PluginDependencyContractReference, Bt as CheckedEditorOptions, Cd as NamedRootKey, Cf as StateFieldValueInput, Cn as TransferApi, Dc as CompatibleEditorCommand, Eg as Range, Hd as PluginDependencyReferenceFor, Ln as TransferOutcome, Nn as TransferInput, Od as Plugin, Of as Value, Ph as Node$1, Td as NodeTarget, Tg as BaseRange, Tl as EditorLifecycleErrorSink, Vc as EditorCommandDescriptor, Vg as Path, Wc as EditorCommandInput, Xc as EditorCommitContext, Xd as PluginPortal, _h as DecorationAttributes, bu as EditorStateView, cd as EditorUpdateTransaction, df as PluginsOf, gd as EditorViewOptions, id as EditorUpdatePolicy, jc as Editor$2, kc as CreateEditorOptions$1, kf as ValueOf, n as PluginsFromOptions, nc as Element$1, nd as EditorUpdateContext, nf as PluginReference, ou as EditorSnapshot, pf as RootKey, qc as EditorCommit, su as EditorStateField, t as EditorValueFromOptions, vc as Text, wc as AnyEditor, wd as NodeKey, wn as TransferPlugin, yd as HistoryOutcome, yh as DecorationSource } from "./index-BXjLmx1n.js";
|
|
2
|
+
import { a as AnnotationSnapshot, f as ViewSourceErrorSink, l as ResolvedAnnotation, o as AnnotationStore, t as Annotation } from "./index-BWPcE4ac.js";
|
|
3
|
+
import { B as DOMApi, I as DOMEditorOptions, It as DOMCoverageReason, L as DOMPlugin, Mt as DOMCoverageMaterializeReason, O as DataTransferDiagnostic, R as DOMPluginTypes, Rt as DOMCoverageSelectionPolicy, Tt as DOMCoverageBoundary, V as DOMClipboardApi, W as DOMEditor, jt as DOMCoverageMaterializeRangeRole, kt as DOMCoverageCopyPolicy, vt as DropIndicator } from "./index-Db-ktCTE.js";
|
|
4
|
+
import { r as ViewportRect, t as RangeGeometry } from "./range-geometry-Dwp2oyCc.js";
|
|
5
5
|
import React$1, { CSSProperties, DependencyList, HTMLAttributes, KeyboardEvent as KeyboardEvent$1, MouseEventHandler, ReactNode, Ref, RefObject, TextareaHTMLAttributes } from "react";
|
|
6
6
|
import "lodash";
|
|
7
7
|
//#region src/react/editable/runtime-editor-api.d.ts
|
|
@@ -1158,15 +1158,12 @@ type UseRootEditorOptions = {
|
|
|
1158
1158
|
* It obeys the read-only state and the authored view of the mounted view that
|
|
1159
1159
|
* shows its root, and of the view around the hook while none shows it. Inside
|
|
1160
1160
|
* a view, that mounted view is the one this view mounts for the root, such as
|
|
1161
|
-
* its own board when two editing areas show the same board.
|
|
1162
|
-
* `EditorRoot
|
|
1163
|
-
*
|
|
1164
|
-
*
|
|
1165
|
-
*
|
|
1166
|
-
*
|
|
1167
|
-
* ends the follow. Use it for root-specific toolbar/sidebar commands. Pass
|
|
1168
|
-
* `readOnly: true` when UI only needs read APIs. Exact plugin capability comes
|
|
1169
|
-
* from `editor.plugin(Plugin)`.
|
|
1161
|
+
* its own board when two editing areas show the same board. It acts only
|
|
1162
|
+
* under its own `EditorRoot`, so while that `EditorRoot` shows no editing
|
|
1163
|
+
* area for its root, `api.dom.editable()` returns `null`, even when an
|
|
1164
|
+
* editing area in another `EditorRoot` holds the caret. Use it for
|
|
1165
|
+
* root-specific toolbar/sidebar commands. Pass `readOnly: true` when UI only
|
|
1166
|
+
* needs read APIs. Exact plugin capability comes from `editor.plugin(Plugin)`.
|
|
1170
1167
|
*/
|
|
1171
1168
|
declare function useRootEditor<const TRoot extends RootKey = RootKey>(root?: NamedRootKey<TRoot>, options?: UseRootEditorOptions): Editor;
|
|
1172
1169
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dh as Descendant, Eg as Range$1, Lc as EditorCommand, Lg as Point, Od as Plugin, Of as Value, Ph as Node$1, Ss as SchemaProperty, Vg as Path, el as EditorCoreStateView, jc as Editor, lh as NodeSelection, ln as ContentSlice, nc as Element$1, pf as RootKey, ph as SelectionAssociation, vc as Text$1, wc as AnyEditor, wd as NodeKey } from "./index-BXjLmx1n.js";
|
|
2
2
|
import { StandardBehaviorOptions } from "scroll-into-view-if-needed";
|
|
3
3
|
//#region src/dom/utils/dom.d.ts
|
|
4
4
|
/**
|
|
@@ -451,11 +451,10 @@ interface DOMApi {
|
|
|
451
451
|
/**
|
|
452
452
|
* The DOM document or shadow root holding the Editable of the view this
|
|
453
453
|
* editor's calls run in. A view's own editor runs in its own view. A
|
|
454
|
-
* `useRootEditor` editor runs in a view of its root from its `EditorRoot
|
|
455
|
-
*
|
|
456
|
-
* editor
|
|
457
|
-
*
|
|
458
|
-
* else of main. When the caret was placed in that root from an
|
|
454
|
+
* `useRootEditor` editor runs in a view of its root from its `EditorRoot`,
|
|
455
|
+
* and gets null while that `EditorRoot` shows no editing area for its root.
|
|
456
|
+
* The editor `createEditor` returns runs in a view of the selection's
|
|
457
|
+
* root, else of main. When the caret was placed in that root from an
|
|
459
458
|
* `EditorRoot`, only that `EditorRoot`'s views of the root count, even
|
|
460
459
|
* after this editor moves the caret within it. Of the views that count, it
|
|
461
460
|
* takes the only one, else the one that holds focus, through iframes and
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dh as Descendant, Vg as Path, dh as Selection, hh as TextSelection, jc as Editor, nc as Element, vc as Text } from "./index-BXjLmx1n.js";
|
|
2
2
|
//#region src/hyperscript/tokens.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* All tokens inherit from a single constructor for `instanceof` checking.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Eg as Range, Od as Plugin, Ud as PluginFactoryTypeLambda, Wd as PluginFactoryTypeProvider } from "./index-BXjLmx1n.js";
|
|
2
2
|
import * as Y from "yjs";
|
|
3
3
|
//#region src/yjs/core/editor-adapter.d.ts
|
|
4
4
|
/**
|