plitejs 54.0.0-beta.4 → 54.0.0-beta.5
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 +4 -4
- package/dist/{authored-veto-D_9wCJcK.js → authored-veto-Cu-5JdVj.js} +1 -1
- package/dist/{comparison-plan-DY_vuGPq.js → comparison-plan-BJxnVPcS.js} +1 -1
- package/dist/{comparison-types-DdwE6mYq.d.ts → comparison-types-Bvvxzxq2.d.ts} +1 -1
- package/dist/{create-editor-CLQEkEZ1.js → create-editor-XvI_4sYc.js} +1 -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-CH2BXXj6.js → dom-BjspML2h.js} +71 -46
- package/dist/{editor-owner-C9rVbMTs.js → editor-owner-CRgIQ625.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-CeT83ZLB.js → hyperscript-BFypA5qW.js} +2 -2
- package/dist/{index-UrB4jAwl.d.ts → index-BUJsM0oV.d.ts} +1 -1
- package/dist/{index-Dq3Jlj8O.d.ts → index-BwmXxqbi.d.ts} +1 -1
- package/dist/{index-BWPcE4ac.d.ts → index-CRmyGzS8.d.ts} +1 -1
- package/dist/{index-DVMNewDn.d.ts → index-CYac3_ID.d.ts} +20 -13
- package/dist/{index-Db-ktCTE.d.ts → index-DaXz-4c7.d.ts} +6 -3
- package/dist/{index-BXjLmx1n.d.ts → index-QuqD4Dyj.d.ts} +9 -1
- package/dist/index.d.ts +1 -1
- 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-CbWqba_1.js → mapped-view-store-XUJ-fnHE.js} +1 -1
- package/dist/{native-grouping-input-DXNhlPHd.js → native-grouping-input-8kO12VK9.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-CBdYiOuR.js → pagination-ChDBJtdC.js} +1 -1
- package/dist/{plugin-SR3HTH0j.js → plugin-BvM4s-Lr.js} +24 -13
- package/dist/{range-geometry-CdltxcH6.js → range-geometry-B5CITwMp.js} +2 -2
- package/dist/{range-geometry-Dwp2oyCc.d.ts → range-geometry-wFuJaBlA.d.ts} +1 -1
- package/dist/react/index.d.ts +4 -4
- 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-CN-iBh1z.js → react-cmFeNP6P.js} +16 -8
- package/dist/{retraction-BmPJB9cE.js → retraction-lXQwo2Ia.js} +1 -1
- package/dist/{src-B-zm0kz4.js → src-BA6F9yxN.js} +88 -21
- package/dist/{store-51r4zpCR.js → store-Bllfuqp4.js} +3 -3
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +3 -3
- package/dist/{use-editor-dom-scope-uDJQ692F.js → use-editor-dom-scope-B4gF9t_Y.js} +416 -384
- 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-IGE0Al3n.js → yjs-CWdWDrpv.js} +3 -3
- package/package.json +1 -1
|
@@ -17089,10 +17089,10 @@ const applyAnchorChange = (state, change, indexedAfter) => {
|
|
|
17089
17089
|
beforeIndexes
|
|
17090
17090
|
};
|
|
17091
17091
|
};
|
|
17092
|
-
const subscribeAnchorState = (editor, listener, getInitialValue) => {
|
|
17092
|
+
const subscribeAnchorState = (editor, listener, getInitialValue, reused) => {
|
|
17093
17093
|
const scoped = ANCHOR_SCOPES.get(editor)?.at(-1);
|
|
17094
17094
|
const state = scoped?.state ?? ACTIVE_ANCHORS.get(editor) ?? createActiveAnchorState(getInitialValue());
|
|
17095
|
-
const runtimeId = scoped?.kind === "draft" ? void 0 : (() => {
|
|
17095
|
+
const runtimeId = scoped?.kind === "draft" ? void 0 : reused !== void 0 && reused <= (ANCHOR_RUNTIME_ID.get(editor) ?? 0) && ![state, ACTIVE_ANCHORS.get(editor)].some((held) => held?.listenersByRuntimeId.has(reused)) ? reused : (() => {
|
|
17096
17096
|
const id = (ANCHOR_RUNTIME_ID.get(editor) ?? 0) + 1;
|
|
17097
17097
|
if (id > 2147483647) throw new Error("Anchor runtime identity space is exhausted.");
|
|
17098
17098
|
ANCHOR_RUNTIME_ID.set(editor, id);
|
|
@@ -17530,6 +17530,23 @@ const registerAuthoredRuntime = (editor, runtime) => {
|
|
|
17530
17530
|
//#region src/core/anchor.ts
|
|
17531
17531
|
const SAVED_RANGES = /* @__PURE__ */ new WeakMap();
|
|
17532
17532
|
const RELEASED_RANGES = /* @__PURE__ */ new WeakSet();
|
|
17533
|
+
const ANCHOR_RUNTIME_IDS = /* @__PURE__ */ new WeakMap();
|
|
17534
|
+
/** The runtime ID that history's anchor records name this anchor by. */
|
|
17535
|
+
const getAnchorRuntimeId = (anchor) => ANCHOR_RUNTIME_IDS.get(anchor) ?? null;
|
|
17536
|
+
/**
|
|
17537
|
+
* Restore a saved range under the runtime ID of the anchor it was saved from,
|
|
17538
|
+
* when no live anchor holds that ID, so redoing a step that moved the released
|
|
17539
|
+
* anchor moves the restored one.
|
|
17540
|
+
*/
|
|
17541
|
+
const restoreAnchor = (editor, input, runtimeId) => {
|
|
17542
|
+
const saved = decodeSavedRange(input);
|
|
17543
|
+
const options = {
|
|
17544
|
+
association: saved.association,
|
|
17545
|
+
deletion: saved.deletion,
|
|
17546
|
+
...saved.root === "main" ? {} : { root: saved.root }
|
|
17547
|
+
};
|
|
17548
|
+
return saved.range ? createAnchor(editor, saved.range, options, runtimeId ?? void 0) : createBoundAnchor(editor, saved, void 0, "range");
|
|
17549
|
+
};
|
|
17533
17550
|
const assertAnchorView = (editor, root, view) => {
|
|
17534
17551
|
if (!view) return;
|
|
17535
17552
|
const viewRoot = getEditorRuntimeRoot(view);
|
|
@@ -17633,14 +17650,7 @@ const createEditorAnchorApi = (getEditor) => Object.assign((value, options) => {
|
|
|
17633
17650
|
}, "Saved editor range");
|
|
17634
17651
|
},
|
|
17635
17652
|
restore(input) {
|
|
17636
|
-
|
|
17637
|
-
const saved = decodeSavedRange(input);
|
|
17638
|
-
const options = {
|
|
17639
|
-
association: saved.association,
|
|
17640
|
-
deletion: saved.deletion,
|
|
17641
|
-
...saved.root === "main" ? {} : { root: saved.root }
|
|
17642
|
-
};
|
|
17643
|
-
return saved.range ? createAnchor(editor, saved.range, options) : createBoundAnchor(editor, saved, void 0, "range");
|
|
17653
|
+
return restoreAnchor(getEditor(), input, null);
|
|
17644
17654
|
}
|
|
17645
17655
|
});
|
|
17646
17656
|
const nodeKeyAt = (editor, root, path) => withEditorRootChildren(editor, root, () => getEditorRuntime(editor).getNodeKey(path));
|
|
@@ -17748,7 +17758,7 @@ const createPointState = (editor, value, point, root, document = indexedRoot(val
|
|
|
17748
17758
|
};
|
|
17749
17759
|
};
|
|
17750
17760
|
/** Create one root-aware anchor mapped by canonical document changes. */
|
|
17751
|
-
function createAnchor(editor, value, options) {
|
|
17761
|
+
function createAnchor(editor, value, options, runtimeId) {
|
|
17752
17762
|
const viewEditor = editor;
|
|
17753
17763
|
const runtimeEditor = getEditorRuntimeOwner(viewEditor);
|
|
17754
17764
|
const kind = LocationApi.isPath(value) ? "path" : PointApi.isPoint(value) ? "point" : RangeApi.isRange(value) ? "range" : null;
|
|
@@ -18341,7 +18351,7 @@ function createAnchor(editor, value, options) {
|
|
|
18341
18351
|
return pointStates.flatMap((state) => state.nodeKey ? [state.nodeKey] : []);
|
|
18342
18352
|
},
|
|
18343
18353
|
root
|
|
18344
|
-
}, () => readValue(runtimeEditor));
|
|
18354
|
+
}, () => readValue(runtimeEditor), runtimeId);
|
|
18345
18355
|
const anchor = Object.freeze({
|
|
18346
18356
|
association,
|
|
18347
18357
|
deletion: options.deletion,
|
|
@@ -18370,6 +18380,7 @@ function createAnchor(editor, value, options) {
|
|
|
18370
18380
|
},
|
|
18371
18381
|
root: toPublicRoot(root)
|
|
18372
18382
|
});
|
|
18383
|
+
if (subscription.runtimeId !== void 0) ANCHOR_RUNTIME_IDS.set(anchor, subscription.runtimeId);
|
|
18373
18384
|
if (kind === "range") SAVED_RANGES.set(anchor, {
|
|
18374
18385
|
editor: getEditorRuntimeOwner(runtimeEditor),
|
|
18375
18386
|
save() {
|
|
@@ -51502,4 +51513,4 @@ const extendEditor = (editor, input, options = {}) => {
|
|
|
51502
51513
|
};
|
|
51503
51514
|
};
|
|
51504
51515
|
//#endregion
|
|
51505
|
-
export { first as $, restoreHistoryCarets as $a, mergeAnchorHistoryRecovery as $c, pathKey$2 as $d, PathApi as $f, trackDraftSpans as $i, tracksPlaces as $l, getEditorRuntimeElementEntries as $n, onlyDocumentAdmission as $o, setCurrentSelection as $r, orphanedRoots as $s, setPoint as $t, createInternalRootChangeFromSections as $u, definePluginSlot as A, leftWithNoGridPart as Aa, getExactDocumentChangeRelocation as Ac, propertyDeltaFromModifications as Ad, decodeVersionedValue as Af, planPaste as Ai, areEditorSchemaIdentitiesEqual as Al, finalizeTransactionRepresentation as An, withMountedPresentation as Ao, isNotifyingNestedCommit as Ar, rawNodeAt as As, last as At, UNSCOPED_ORIGINS as Au, NodeApi as B, getCaretOwner as Ba, readShownPreview as Bc, rootNodesOf as Bd, defineEffect as Bf, readRootViewPresentationRevision as Bi, holdsUniqueKey as Bl, getChildren$1 as Bn, mapSemanticUpdateMethodArguments as Bo, recordEditorHistoryReplayReceipt as Br, isEmptyElement as Bs, point as Bt, historyFollowsAllFacts as Bu, setPluginPortalFactory as C, getCharacterDistance as Ca, getEditorCommitUnsettle as Cc, addSection as Cd, showValueRecords as Cf, withEditorRootChildrenGenerator as Ci, getPluginContributions as Cl, applyUnnamedDocumentChange as Cn, mountViewPeer as Co, initializeEditorSchemaSelection as Cr, decodeEditorSelection as Cs, isElementReadOnly as Ct, getEditorRuntime as Cu, property as D, gridHoldersOf as Da, readRootEntries as Dc, getDocumentPropertyContext as Dd, assertEditorJsonValue as Df, setTargetRuntime as Di, markDefinedStateField as Dl, continueTransactionSpecOrDiscardPrefix as Dn, readViewPage as Do, isBuildingTransactionSpec as Dr, mapDetachedSelectionThroughChange as Ds, isSelectable as Dt, hasEditorRuntime as Du, getSchemaElementSourceReference as E, isTextCell as Ea, keyMovedAt as Ec, applyPropertyModificationsToSlice as Ed, areEditorJsonValuesEqual as Ef, withUpdateTagContext as Ei, initializeBasePluginRegistry as El, attachTransactionSpecAfterCommit as En, readShownRecords as Eo, invalidateEditorTransactionSpecs as Er, isObjectSelectionTarget as Es, isInline as Et, getEditorSchema as Eu, getActiveCommandEditor as F, capturePlacement as Fa, createEditorAnchorApi as Fc, DocumentIndex as Fd, snapshotEditorJsonValue as Ff, readCaretViewIn as Fi, getCompiledPropertyMergeStrategy as Fl, getActiveEditorUpdateId as Fn, subscribe as Fo, readEditorCommitHistoryEntry as Fr, completeChildrenAt as Fs, move as Ft, UNKNOWN_FACTS as Fu, collapse as G, keepBookmark as Ga, assertNoDocumentViewRead as Gc, PreparedTokenSliceStructureError as Gd, RangeApi as Gf, subscribeRootViewPresentation as Gi, propertyTargetsReadParents as Gl, getCurrentSelectionRoot as Gn, txLocate as Go, replaceSliceAtBlockBoundary as Gr, readingCovered as Gs, read as Gt, invertCarriedRun as Gu, addMark as H, getRangeBreakCount as Ha, requestAuthoredView as Hc, normalizeSetValues as Hd, invertEffect as Hf, readShownViewUse as Hi, isSupportedGeneratedElementProperty as Hl, getCollabEffects$1 as Hn, getRootTransaction as Ho, registerEditorSurface as Hr, EditorSchemaValidationError as Hs, previous as Ht, carriedLetterPairs as Hu, hasCommandHandler as I, changedBookmarks as Ia, configureAuthoredView as Ic, NO_NODES as Id, supportsEditorValuePersistenceVersion as If, readLatestShownWritableRootView as Ii, getCompiledSchemaPropertyId as Il, getActiveEditorUpdateTags as In, subscribeCommit as Io, readEditorHistoryHeadRoots as Ir, constructCanonicalDocumentChange as Is, moveNodes as It, composeFacts as Iu, deleteForward as J, nextMintedGeneration as Ja, withDocumentViewRead as Jc, getDocumentSliceNodeKeys as Jd, PointApi as Jf, getContentSlice as Ji, resolveCompiledSchemaProperty as Jl, getEditorDocumentValue as Jn, txStored as Jo, saveEditorSchemaDocument as Jr, isLeftOutDefault as Js, replace as Jt, widenRun as Ju, deleteBackward as K, liftShownTarget as Ka, isDocumentView as Kc, closeToken as Kd, LocationApi as Kf, subscribeShownViewUse as Ki, readEditorSchemaContract as Kl, getEditorChildrenRoot as Kn, txOnly as Ko, resolveEditorNodeKeyForNode as Kr, carriesDefault as Ks, removeMark as Kt, landCarriedRuns as Ku, probeCommandNativeEquivalent as L, clearCaretUnlessHeldElsewhere as La, getAuthoredUpdateView as Lc, childAtPathIndex as Ld, textPropertiesEqual as Lf, readLatestShownWritableView as Li, handoverKeysOf as Ll, getAppliedSpecLanding as Ln, subscribeSource$1 as Lo, readEditorHistoryReplayReceipt as Lr, constructLoadedDocumentChange as Ls, next as Lt, factsFromJSON as Lu, dispatchCommand as M, nodes as Ma, hasIndexedPathAncestor as Mc, markReadBack as Md, encodeVersionedValue as Mf, getSelectionStateCaret as Mi, crossesUniqueTarget as Ml, fitSlicePlacements as Mn, getStateViewPresentation as Mo, loadOpenedRecords as Mr, withLandedMarks as Ms, levels as Mt, letterOriginsOfChange as Mu, evaluateCommand as N, normalizeNodeMatch as Na, authoredDocumentCapabilityPoint as Nc, joinsOf as Nd, isEditorJsonValue as Nf, markRootViewUsed as Ni, diffEditorSchemaContracts as Nl, flushEditorViewState as Nn, onPresentationRelease as No, notifyPresentationViewState as Nr, sealsText as Ns, liftNodes as Nt, NO_FACTS as Nu, schema as O, gridPartsOf as Oa, snapshotIndexOf as Oc, keptRunsOf as Od, cloneEditorJsonValue as Of, resolveStateFieldInitial as Oi, registerEffectTypeInRegistry as Ol, createTransactionSpec as On, retainViewPresentation as Oo, isEditorPublishingCommit as Or, mapSelectionThroughChange as Os, isStart as Ot, setEditorRuntime as Ou, evaluateCommandWithState as P, node as Pa, isAuthorId as Pc, liftOf as Pd, normalizeEditorValuePersistence as Pf, mountRootView as Pi, getCompiledPropertyCandidates as Pl, getActiveEditorTransaction as Pn, retainPresentation as Po, readEditor as Pr, settleRange as Ps, mergeNodes as Pt, NO_ROOT_FACTS as Pu, elementReadOnly as Q, resolveParkedCaret as Qa, mapAnchorHistoryRecovery as Qc, openToken as Qd, getReaderRange as Qf, settleDraftTrack as Qi, toCompiledTargetContext as Ql, getEditorReadDepth as Qn, documentAdmissionPoint as Qo, setCurrentMarks as Qr, judgeProjectedRoots as Qs, setNodes as Qt, createInternalDocumentChange as Qu, commandViewHides as R, consumeCommitCarets as Ra, isAuthoredPreview as Rc, decodeNodes as Rd, valueCodecs as Rf, readNestedRootView as Ri, hasPlaceDependentElementProperty as Rl, getBaseCallRoot as Rn, createEditorReadApi as Ro, readElementById as Rr, fitImportedBlock as Rs, parent as Rt, factsToJSON as Ru, resolveInstalledPlugin as S, editorReads as Sa, getEditorCommitStartedAt as Sc, RootChange as Sd, recordSetIds as Sf, withEditorRootChildren as Si, getConfiguredPluginRegistry as Sl, applyTransactionSpecToDocument as Sn, matchesPresentationOf as So, initializeEditorSchemaDocument as Sr, assertSelectionSupported as Ss, isEditor as St, registerEditorCommandDocument as Su, withPluginPortalCandidates as T, getWordSegments as Ta, historyReplayClaim as Tc, applyPropertyModifications as Td, withoutValueRoots as Tf, withTransactionSpecDraftRead as Ti, inheritPluginRegistry as Tl, assertEditorExternalMutationAllowed as Tn, readShownDocument as To, initializePublicState as Tr, getSelectionDOMRange as Ts, isEnd as Tt, getEditorRuntimeRoot as Tu, after as U, holdsCaret as Ua, withAuthoredUpdateView as Uc, classifyRootChange as Ud, mapEffect as Uf, readShownWritableRootViews as Ui, matchesCompiledSchemaTarget as Ul, getCurrentMarks as Un, resolvePluginMethod as Uo, registerEditorTransactionGuard as Ur, adoptVerdicts as Us, projectRange as Ut, carriesRun as Uu, above as V, getPlacementGeneration as Va, registerAuthoredRuntime as Vc, canonicalJsonKey as Vd, defineUpdateAnnotation as Vf, readRootViewUse as Vi, isPlaceDependentElementProperty as Vl, getCollabEffectTypes as Vn, callPluginUpdateMethod as Vo, registerEditorHistoryRuntime as Vr, EditorNoncanonicalChangeError as Vs, positions as Vt, recordedFacts as Vu, before as W, holdsCaretAt as Wa, withStoredAuthoredRead as Wc, PreparedTokenSlice as Wd, readLastCommitAnnotation as Wf, subscribeRootTarget as Wi, preserveCompiledSchemaPropertyIdentity as Wl, getCurrentSelection as Wn, locateAt as Wo, repairEditorValue as Wr, judgedBy as Ws, range as Wt, exactRunOn as Wu, deselect as X, resolveBookmark as Xa, getMovableAnchors as Xc, isTextNode$3 as Xd, getCommonLocationRoot as Xf, readDraftTrack as Xi, splitDroppedKeysOf as Xl, getEditorNodeKeyForNode as Xn, admitDocument as Xo, seedUniqueMaps as Xr, readsAt as Xs, reset as Xt, alignedDocumentChange as Xu, deleteFragment as Y, placedSince as Ya, consumeAnchorHistoryCapture as Yc, isElementNode as Yd, MAIN_ROOT_KEY as Yf, assertEditorNotDestroyed as Yi, restoreEditorSchemaContract as Yl, getEditorMaxLength as Yn, DOCUMENT_SETTLED_TAG as Yo, scheduleAfterCommitNotification as Yr, isSplitOutput as Ys, replaceChildren as Yt, DocumentChange as Yu, edges as Z, resolveLiveCaret as Za, hasActiveAnchors as Zc, nodeProps as Zd, getRangeRoot as Zf, readDraftTrackAt as Zi, toCompiledNodeContext as Zl, getEditorProjectionSnapshotIndex as Zn, admitEditorDocument as Zo, setChildren as Zr, changedRootsOf as Zs, select as Zt, collapseDocumentElementPropertyWrites as Zu, markEditorDormant as _, before$1 as _a, getEditorCommitFacts as _c, valueRootIndex as _d, hasRecordWithPrefix as _f, trackEditorLetters as _i, setEditorLifecycleErrorSink as _l, afterActiveTransactionEnds as _n, getViewAuthor as _o, getTransactionSnapshot as _r, withoutGeneration as _s, insertSoftBreak as _t, setDebugValueScrubber as _u, compilePluginInput as a, rewriteContentRootReferences as aa, ownedRootsOf as ac, getInternalDocumentChangeEntries as ad, NO_RECORD_OPS as af, setEditorSnapshotInputTransform as ai, toInternalRoot as al, toggleBlock as an, watchFirstPlacement as ao, lazyRootOf as ap, getLiveSelection as ar, canonicalizeCompiledTextProperties as as, getNodeKey as at, readDocumentRecord as au, queueAfterPluginAcquisition as b, resolveShouldMergeNodesRemovePrevNode as ba, getEditorCommitSchemas as bc, withInternalDocumentRootChange as bd, recordOpsFromJson as bf, withDraftMove as bi, finalizePluginRegistry as bl, applyDocumentChange as bn, joinViewLockScope as bo, hasEditorSurface as br, withFitLanding as bs, isBlock as bt, isEditorContent as bu, defineEditorSchema as c, withLandingBlock as ca, lawCheckEnabled as cc, getInternalDocumentChangeRootKeys as cd, deriveValue as cf, setEditorViewing as ci, nodeWriteVeto as cl, unsetNodes as cn, createAuthoredEditorView as co, countCoreWork as cp, getNodeKey$1 as cr, generateElementPropertyValue as cs, getSelection as ct, readStoredEditorDocument as cu, extendEditor as d, readRemovalLanding as da, claimsHistoryReplay as dc, isDocumentRootKey as dd, getRecordIds as df, snapshotInitialDocumentState as di, publishEditorRefusal as dl, voidEditor as dn, createViewLockScope as do, deepFreeze as dp, getRestorableMarks as dr, getRepresentationEditorFromApi as ds, hasInlines as dt, definePluginPoint as du, isEditorDraftView as ea, orphanedValueRoots as ec, documentChangeBetween as ed, textToken as ef, setEditorComposing as ei, observeAnchorStateWork as el, setSelection as en, rootChildrenOf as eo, isObject as ep, getEditorRuntimeRootKeys as er, withoutRepairOrphans as es, fragment as et, uniquePropertiesOf as eu, getCandidatePluginApi as f, resolveDeletedRange as fa, createEditorCommit as fc, isInternalDocumentChangeNoop as fd, getRecordSetVersion as ff, subscribeCaretTarget as fi, subscribeEditorRefusals as fl, wrapNodes as fn, flushViewLockScope as fo, isRecord$5 as fp, getSelectionRoot as fr, holdsImportedRoot as fs, hasPath as ft, point$1 as fu, isPlugin as g, readOnlyInlineAt as ga, getEditorCommitCompletedTextDeletion as gc, valueRoot$1 as gd, hasRecord as gf, toEditorCoreStateView as gi, runEditorObserver as gl, withCompositionStamp as gn, getOwnViewReadOnly as go, getStateFieldEffectTypes as gr, readEmptyText as gs, insertNodes as gt, formatDebugValue as gu, getInstalledPluginApi as h, hasEdgeInReadOnlyInline as ha, getEditorCommitCarriedRuns as hc, transformInternalDocumentChange as hd, getValueRecords as hf, syncImplicitTargetToCurrentSelection as hi, reportEditorLifecycleError as hl, tripleClickedBlock as hn, getOwnViewPresentation as ho, getDefined as hp, getSnapshotVersion as hr, placeElementAt as hs, insertNode as ht, ElementApi as hu, compilePlugin as i, registerEditorFitsByLook as ia, ensureElementOwnedRootIndex as ic, getInternalDocumentChangeClassificationEntries as id, getNodeKeyForNode as if, setEditorReadOnly as ii, getPublicExplicitLocationRoot as il, subscribeSource as in, subscribeCommittedPlacement as io, isFrozenWithRoots as ip, getLiveNode as ir, canPlaceBlocksAtPath as is, getLastCommit as it, isEnvelopeInput as iu, createCommandDispatch as j, survivalUnder as ja, getExactDocumentChangeRelocations as jc, semanticPropertyModifications as jd, encodeEditorEffect as jf, writePaste as ji, compileEditorSchemaContributions as jl, fitSliceChildren as jn, getBaseViewPresentation as jo, isPresentationComposing as jr, settleSelectionMode as js, leaf as jt, classifyDocumentChange as ju, target as k, gridRolesOf as ka, getDocumentChangeRelocations as kc, mapRootChangePositionBackward as kd, decodeEditorEffect as kf, captureSliceLanding as ki, EditorSchemaCompileError as kl, documentReplacement as kn, setViewLockScopeLocked as ko, isInTransaction as kr, mapSelectionWithContext as ks, isVoid as kt, defineCommand$1 as ku, definePlugin as l, dividesTextCell as la, ContentSlice as lc, getInternalDocumentRootChange as ld, getRecordCount as lf, setRootCopyScope as li, vetoesWrite as ll, unwrapNodes as ln, createEditorView as lo, readCoreWork as lp, getNodeTargetRoot as lr, getCompiledEditorSchemaFromApi as ls, getSnapshot as lt, rejectEditorRecord as lu, getInstalledPlugin as m, elementReadOnly$1 as ma, getEditorCommitAdmission as mc, mapInternalDocumentChangePosition as md, getRecordsWithPrefix as mf, subscribePresentationComposition as mi, notifyObservers as ml, readWholeBlockLanding as mn, getCarriedMount as mo, cloneFrozen$1 as mp, getSnapshot$1 as mr, landNodePropertiesAt as ms, insertBreak as mt, SelectionApi as mu, brandPluginDescriptor as n, registerEditorDraftGuard as na, schemaHasContentRoots as nc, filterDocumentChangeRoots as nd, tokensEqual as nf, setEditorFocused as ni, stageAnchorHistoryRecovery as nl, splitNodes as nn, setSelectionAsView as no, copyRoot as np, getEditorUpdateRoot as nr, ElementGenerationMaskedError as ns, getCollabEffects as nt, assertEditorDocumentContainers as nu, containsCompleteEditorSchema as o, coversContent as oa, rebaseElementOwnedRootIndex as oc, getInternalDocumentChangeRanges as od, canonicalRecordJson as of, setEditorStateViewTransform as oi, toPublicRoot as ol, toggleMark as on, withoutPlacement as oo, setLazyRoot as op, getLiveText as or, createDetachedEditorSchema as os, getPathByNodeKey as ot, readEditorDocument as ou, getCompiledEditorConfiguration as p, removeNodes$1 as pa, getDocumentValueNode as pc, mapInternalDocumentChangePoint as pd, getRecordText as pf, subscribeEditorViewState as pi, REMOTE_UPDATE as pl, editorCommands as pn, getCarriedCaretEditor as po, jsonEqual$1 as pp, getSetSite as pr, holdsOneText as ps, hasTexts as pt, readTextEdge as pu, deleteEditor as q, mayClearCaret as qa, isDocumentViewReading as qc, encodeNodes as qd, SpanApi as qf, getFragment$1 as qi, readEditorSchemaIdentity as ql, getEditorDocumentRecords as qn, txSelection as qo, runTrustedUpdate as qr, elementSplitOutput as qs, removeNodes as qt, mapCarriedRunThrough as qu, carryPluginFactoryType as r, registerEditorDraftView as ra, advanceElementOwnedRootIndex as rc, getInternalDocumentChangeClassification as rd, getNodeKeyDOMValue as rf, setEditorMaxLength as ri, assertPublicRootKey as rl, string as rn, setShownSelectionAsView as ro, copyRoots as rp, getLastCommit$1 as rr, acceptsPropertyValue as rs, getFragment as rt, getEditorDocumentShapeIssueMessage as ru, createEditorViewPluginApis as s, range$1 as sa, rootsOwnedOnlyWithin as sc, getInternalDocumentChangeRecords as sd, composeRecordOps as sf, setEditorTransactionViewTransform as si, getRangeEndpointAssociations as sl, unhangRange as sn, carryRootEditors as so, visitRootNames as sp, getMutationVersion as sr, createEditorSchema as ss, getPluginRegistry as st, readPersistedEnvelope as su, PluginPublicationError as t, registerEditorDocumentRecorder as ta, rootsDeletedByName as tc, documentChangeWritesOnlyElementProperties as td, tokenLength as tf, setEditorCompositionPending as ti, placeAnchorsOnCommit as tl, shouldMergeNodesRemovePrevNode as tn, sameCarets as to, copyFields as tp, getEditorStateView as tr, documentRootsOf as ts, getChildren as tt, EDITOR_DOCUMENT_FIELDS as tu, destroyEditor as u, deleteText as ua, createDetachedContentSlice as uc, hasInternalDocumentChangeRoot as ud, getRecordEntries as uf, setTypedMarks as ui, EditorRefusalError as ul, update as un, createEditorViewRuntime as uo, cloneFrozen as up, getPathByNodeKey$1 as ur, getInternalEditorSchemaFromApi as us, hasBlocks as ut, failInvariant as uu, prepareInitialPluginPublication as v, after$1 as va, getEditorCommitNode as vc, valueRootNodes as vd, readRecord as vf, transformEditorSnapshotInput as vi, assertPluginPublicationInactive as vl, afterOpenDrafts as vn, getViewFollowTarget as vo, getUpdateView as vr, withoutGenerationOf as vs, insertText as vt, getTextSearchScope as vu, startEditor as w, getWordDistances as wa, getEditorCommitValue as wc, ancestorType as wd, withValueRecords as wf, withEditorUpdateRootScope as wi, getPluginRegistry$1 as wl, asSelectionMotion as wn, projectEditorView as wo, initializeEditorSchemaSnapshot as wr, encodeEditorSelection as ws, isEmpty as wt, getEditorRuntimeOwner as wu, releaseEditor as x, executeEditorRead as xa, getEditorCommitSnapshot as xc, withoutRetainedRecordSets as xd, recordSetChanges as xf, withEditorDocumentProjection as xi, getCompiledEditorSchema as xl, applyTransactionSpec as xn, linkViewLockScope as xo, inheritEditorProjectionIndexes as xr, assertDetachedSelectionSupported as xs, isEdge as xt, registerEditorContent as xu, prepareScopedPluginPublication as y, exportContentSlice as ya, getEditorCommitRest as yc, withDocumentChangeRecords as yd, recordOpsBetween as yf, updateEditor as yi, createPluginRegistry as yl, applyBuiltDocumentChange as yn, getViewPresentation as yo, hasEditorProjectionSnapshotIndex as yr, payloadKeyOf as ys, install as yt, TextApi as yu, prepareCommandFrame as z, getBookmark as za, readAuthoredView as zc, rootIndexOf as zd, createEditorEffect as zf, readRootTarget as zi, hashSchemaIdentityString as zl, getChildList as zn, createEditorUpdateApi as zo, readElementPropertyWrites as zr, joinedAway as zs, path as zt, flipFacts as zu };
|
|
51516
|
+
export { first as $, resolveParkedCaret as $a, getMovableAnchors as $c, isTextNode$3 as $d, getCommonLocationRoot as $f, settleDraftTrack as $i, splitDroppedKeysOf as $l, getEditorRuntimeElementEntries as $n, documentAdmissionPoint as $o, setCurrentMarks as $r, judgeProjectedRoots as $s, setPoint as $t, alignedDocumentChange as $u, definePluginSlot as A, gridRolesOf as Aa, getDocumentChangeRelocations as Ac, getDocumentPropertyContext as Ad, assertEditorJsonValue as Af, captureSliceLanding as Ai, markDefinedStateField as Al, finalizeTransactionRepresentation as An, setViewLockScopeLocked as Ao, isInTransaction as Ar, mapSelectionWithContext as As, last as At, hasEditorRuntime as Au, NodeApi as B, getBookmark as Ba, getAuthoredUpdateView as Bc, childAtPathIndex as Bd, textPropertiesEqual as Bf, readRootTarget as Bi, handoverKeysOf as Bl, getChildren$1 as Bn, createEditorUpdateApi as Bo, readElementPropertyWrites as Br, joinedAway as Bs, point as Bt, factsFromJSON as Bu, setPluginPortalFactory as C, editorReads as Ca, getEditorCommitStartedAt as Cc, withInternalDocumentRootChange as Cd, recordOpsFromJson as Cf, withEditorRootChildren as Ci, finalizePluginRegistry as Cl, applyUnnamedDocumentChange as Cn, matchesPresentationOf as Co, initializeEditorSchemaDocument as Cr, assertSelectionSupported as Cs, isElementReadOnly as Ct, isEditorContent as Cu, property as D, isTextCell as Da, keyMovedAt as Dc, ancestorType as Dd, withValueRecords as Df, withUpdateTagContext as Di, getPluginRegistry$1 as Dl, continueTransactionSpecOrDiscardPrefix as Dn, readShownRecords as Do, invalidateEditorTransactionSpecs as Dr, isObjectSelectionTarget as Ds, isSelectable as Dt, getEditorRuntimeOwner as Du, getSchemaElementSourceReference as E, getWordSegments as Ea, historyReplayClaim as Ec, addSection as Ed, showValueRecords as Ef, withTransactionSpecDraftRead as Ei, getPluginContributions as El, attachTransactionSpecAfterCommit as En, readShownDocument as Eo, initializePublicState as Er, getSelectionDOMRange as Es, isInline as Et, getEditorRuntime as Eu, getActiveCommandEditor as F, node as Fa, isAuthorId as Fc, markReadBack as Fd, encodeVersionedValue as Ff, mountRootView as Fi, crossesUniqueTarget as Fl, getActiveEditorUpdateId as Fn, retainPresentation as Fo, readEditor as Fr, settleRange as Fs, move as Ft, letterOriginsOfChange as Fu, collapse as G, holdsCaretAt as Ga, requestAuthoredView as Gc, normalizeSetValues as Gd, invertEffect as Gf, subscribeRootTarget as Gi, isSupportedGeneratedElementProperty as Gl, getCurrentSelectionRoot as Gn, locateAt as Go, repairEditorValue as Gr, judgedBy as Gs, read as Gt, carriedLetterPairs as Gu, addMark as H, getPlacementGeneration as Ha, readAuthoredView as Hc, rootIndexOf as Hd, createEditorEffect as Hf, readRootViewUse as Hi, hashSchemaIdentityString as Hl, getCollabEffects$1 as Hn, callPluginUpdateMethod as Ho, registerEditorHistoryRuntime as Hr, EditorNoncanonicalChangeError as Hs, previous as Ht, flipFacts as Hu, hasCommandHandler as I, capturePlacement as Ia, createEditorAnchorApi as Ic, joinsOf as Id, isEditorJsonValue as If, readCaretViewIn as Ii, diffEditorSchemaContracts as Il, getActiveEditorUpdateTags as In, subscribe as Io, readEditorCommitHistoryEntry as Ir, completeChildrenAt as Is, moveNodes as It, NO_FACTS as Iu, deleteForward as J, mayClearCaret as Ja, assertNoDocumentViewRead as Jc, PreparedTokenSliceStructureError as Jd, RangeApi as Jf, getFragment$1 as Ji, propertyTargetsReadParents as Jl, getEditorDocumentValue as Jn, txSelection as Jo, runTrustedUpdate as Jr, elementSplitOutput as Js, replace as Jt, invertCarriedRun as Ju, deleteBackward as K, keepBookmark as Ka, withAuthoredUpdateView as Kc, classifyRootChange as Kd, mapEffect as Kf, subscribeRootViewPresentation as Ki, matchesCompiledSchemaTarget as Kl, getEditorChildrenRoot as Kn, txLocate as Ko, replaceSliceAtBlockBoundary as Kr, readingCovered as Ks, removeMark as Kt, carriesRun as Ku, probeCommandNativeEquivalent as L, changedBookmarks as La, getAnchorRuntimeId as Lc, liftOf as Ld, normalizeEditorValuePersistence as Lf, readLatestShownWritableRootView as Li, getCompiledPropertyCandidates as Ll, getAppliedSpecLanding as Ln, subscribeCommit as Lo, readEditorHistoryHeadRoots as Lr, constructCanonicalDocumentChange as Ls, next as Lt, NO_ROOT_FACTS as Lu, dispatchCommand as M, survivalUnder as Ma, getExactDocumentChangeRelocations as Mc, mapRootChangePositionBackward as Md, decodeEditorEffect as Mf, writePaste as Mi, EditorSchemaCompileError as Ml, fitSlicePlacements as Mn, getBaseViewPresentation as Mo, isPresentationComposing as Mr, settleSelectionMode as Ms, levels as Mt, defineCommand$1 as Mu, evaluateCommand as N, nodes as Na, hasIndexedPathAncestor as Nc, propertyDeltaFromModifications as Nd, decodeVersionedValue as Nf, getSelectionStateCaret as Ni, areEditorSchemaIdentitiesEqual as Nl, flushEditorViewState as Nn, getStateViewPresentation as No, loadOpenedRecords as Nr, withLandedMarks as Ns, liftNodes as Nt, UNSCOPED_ORIGINS as Nu, schema as O, gridHoldersOf as Oa, readRootEntries as Oc, applyPropertyModifications as Od, withoutValueRoots as Of, setTargetRuntime as Oi, inheritPluginRegistry as Ol, createTransactionSpec as On, readViewPage as Oo, isBuildingTransactionSpec as Or, mapDetachedSelectionThroughChange as Os, isStart as Ot, getEditorRuntimeRoot as Ou, evaluateCommandWithState as P, normalizeNodeMatch as Pa, authoredDocumentCapabilityPoint as Pc, semanticPropertyModifications as Pd, encodeEditorEffect as Pf, markRootViewUsed as Pi, compileEditorSchemaContributions as Pl, getActiveEditorTransaction as Pn, onPresentationRelease as Po, notifyPresentationViewState as Pr, sealsText as Ps, mergeNodes as Pt, classifyDocumentChange as Pu, elementReadOnly as Q, resolveLiveCaret as Qa, consumeAnchorHistoryCapture as Qc, isElementNode as Qd, MAIN_ROOT_KEY as Qf, readDraftTrackAt as Qi, restoreEditorSchemaContract as Ql, getEditorReadDepth as Qn, admitEditorDocument as Qo, setChildren as Qr, changedRootsOf as Qs, setNodes as Qt, DocumentChange as Qu, commandViewHides as R, clearCaretUnlessHeldElsewhere as Ra, restoreAnchor as Rc, DocumentIndex as Rd, snapshotEditorJsonValue as Rf, readLatestShownWritableView as Ri, getCompiledPropertyMergeStrategy as Rl, getBaseCallRoot as Rn, subscribeSource$1 as Ro, readEditorHistoryReplayReceipt as Rr, constructLoadedDocumentChange as Rs, parent as Rt, UNKNOWN_FACTS as Ru, resolveInstalledPlugin as S, executeEditorRead as Sa, getEditorCommitSnapshot as Sc, withDocumentChangeRecords as Sd, recordOpsBetween as Sf, withEditorDocumentProjection as Si, createPluginRegistry as Sl, applyTransactionSpecToDocument as Sn, linkViewLockScope as So, inheritEditorProjectionIndexes as Sr, assertDetachedSelectionSupported as Ss, isEditor as St, TextApi as Su, withPluginPortalCandidates as T, getWordDistances as Ta, getEditorCommitValue as Tc, RootChange as Td, recordSetIds as Tf, withEditorUpdateRootScope as Ti, getConfiguredPluginRegistry as Tl, assertEditorExternalMutationAllowed as Tn, projectEditorView as To, initializeEditorSchemaSnapshot as Tr, encodeEditorSelection as Ts, isEnd as Tt, registerEditorCommandDocument as Tu, after as U, getRangeBreakCount as Ua, readShownPreview as Uc, rootNodesOf as Ud, defineEffect as Uf, readShownViewUse as Ui, holdsUniqueKey as Ul, getCurrentMarks as Un, getRootTransaction as Uo, registerEditorSurface as Ur, EditorSchemaValidationError as Us, projectRange as Ut, historyFollowsAllFacts as Uu, above as V, getCaretOwner as Va, isAuthoredPreview as Vc, decodeNodes as Vd, valueCodecs as Vf, readRootViewPresentationRevision as Vi, hasPlaceDependentElementProperty as Vl, getCollabEffectTypes as Vn, mapSemanticUpdateMethodArguments as Vo, recordEditorHistoryReplayReceipt as Vr, isEmptyElement as Vs, positions as Vt, factsToJSON as Vu, before as W, holdsCaret as Wa, registerAuthoredRuntime as Wc, canonicalJsonKey as Wd, defineUpdateAnnotation as Wf, readShownWritableRootViews as Wi, isPlaceDependentElementProperty as Wl, getCurrentSelection as Wn, resolvePluginMethod as Wo, registerEditorTransactionGuard as Wr, adoptVerdicts as Ws, range as Wt, recordedFacts as Wu, deselect as X, placedSince as Xa, isDocumentViewReading as Xc, encodeNodes as Xd, SpanApi as Xf, assertEditorNotDestroyed as Xi, readEditorSchemaIdentity as Xl, getEditorNodeKeyForNode as Xn, DOCUMENT_SETTLED_TAG as Xo, scheduleAfterCommitNotification as Xr, isSplitOutput as Xs, reset as Xt, mapCarriedRunThrough as Xu, deleteFragment as Y, nextMintedGeneration as Ya, isDocumentView as Yc, closeToken as Yd, LocationApi as Yf, getContentSlice as Yi, readEditorSchemaContract as Yl, getEditorMaxLength as Yn, txStored as Yo, saveEditorSchemaDocument as Yr, isLeftOutDefault as Ys, replaceChildren as Yt, landCarriedRuns as Yu, edges as Z, resolveBookmark as Za, withDocumentViewRead as Zc, getDocumentSliceNodeKeys as Zd, PointApi as Zf, readDraftTrack as Zi, resolveCompiledSchemaProperty as Zl, getEditorProjectionSnapshotIndex as Zn, admitDocument as Zo, seedUniqueMaps as Zr, readsAt as Zs, select as Zt, widenRun as Zu, markEditorDormant as _, readOnlyInlineAt as _a, getEditorCommitCompletedTextDeletion as _c, mapInternalDocumentChangePosition as _d, getRecordsWithPrefix as _f, toEditorCoreStateView as _i, notifyObservers as _l, afterActiveTransactionEnds as _n, getOwnViewReadOnly as _o, cloneFrozen$1 as _p, getTransactionSnapshot as _r, readEmptyText as _s, insertSoftBreak as _t, SelectionApi as _u, compilePluginInput as a, registerEditorFitsByLook as aa, ensureElementOwnedRootIndex as ac, filterDocumentChangeRoots as ad, tokensEqual as af, setEditorReadOnly as ai, stageAnchorHistoryRecovery as al, toggleBlock as an, subscribeCommittedPlacement as ao, copyRoot as ap, getLiveSelection as ar, canPlaceBlocksAtPath as as, getNodeKey as at, assertEditorDocumentContainers as au, queueAfterPluginAcquisition as b, exportContentSlice as ba, getEditorCommitRest as bc, valueRootIndex as bd, hasRecordWithPrefix as bf, updateEditor as bi, setEditorLifecycleErrorSink as bl, applyDocumentChange as bn, getViewPresentation as bo, hasEditorSurface as br, payloadKeyOf as bs, isBlock as bt, setDebugValueScrubber as bu, defineEditorSchema as c, range$1 as ca, rootsOwnedOnlyWithin as cc, getInternalDocumentChangeEntries as cd, NO_RECORD_OPS as cf, setEditorTransactionViewTransform as ci, toInternalRoot as cl, unsetNodes as cn, carryRootEditors as co, lazyRootOf as cp, getNodeKey$1 as cr, createEditorSchema as cs, getSelection as ct, readDocumentRecord as cu, extendEditor as d, deleteText as da, createDetachedContentSlice as dc, getInternalDocumentChangeRootKeys as dd, deriveValue as df, setTypedMarks as di, nodeWriteVeto as dl, voidEditor as dn, createEditorViewRuntime as do, countCoreWork as dp, getRestorableMarks as dr, getInternalEditorSchemaFromApi as ds, hasInlines as dt, readStoredEditorDocument as du, trackDraftSpans as ea, orphanedRoots as ec, collapseDocumentElementPropertyWrites as ed, nodeProps as ef, setCurrentSelection as ei, hasActiveAnchors as el, setSelection as en, restoreHistoryCarets as eo, getRangeRoot as ep, getEditorRuntimeRootKeys as er, onlyDocumentAdmission as es, fragment as et, toCompiledNodeContext as eu, getCandidatePluginApi as f, readRemovalLanding as fa, claimsHistoryReplay as fc, getInternalDocumentRootChange as fd, getRecordCount as ff, snapshotInitialDocumentState as fi, vetoesWrite as fl, wrapNodes as fn, createViewLockScope as fo, readCoreWork as fp, getSelectionRoot as fr, getRepresentationEditorFromApi as fs, hasPath as ft, rejectEditorRecord as fu, isPlugin as g, hasEdgeInReadOnlyInline as ga, getEditorCommitCarriedRuns as gc, mapInternalDocumentChangePoint as gd, getRecordText as gf, syncImplicitTargetToCurrentSelection as gi, REMOTE_UPDATE as gl, withCompositionStamp as gn, getOwnViewPresentation as go, jsonEqual$1 as gp, getStateFieldEffectTypes as gr, placeElementAt as gs, insertNodes as gt, readTextEdge as gu, getInstalledPluginApi as h, elementReadOnly$1 as ha, getEditorCommitAdmission as hc, isInternalDocumentChangeNoop as hd, getRecordSetVersion as hf, subscribePresentationComposition as hi, subscribeEditorRefusals as hl, tripleClickedBlock as hn, getCarriedMount as ho, isRecord$5 as hp, getSnapshotVersion as hr, landNodePropertiesAt as hs, insertNode as ht, point$1 as hu, compilePlugin as i, registerEditorDraftView as ia, advanceElementOwnedRootIndex as ic, documentChangeWritesOnlyElementProperties as id, tokenLength as if, setEditorMaxLength as ii, placeAnchorsOnCommit as il, subscribeSource as in, setShownSelectionAsView as io, copyFields as ip, getLiveNode as ir, acceptsPropertyValue as is, getLastCommit as it, EDITOR_DOCUMENT_FIELDS as iu, createCommandDispatch as j, leftWithNoGridPart as ja, getExactDocumentChangeRelocation as jc, keptRunsOf as jd, cloneEditorJsonValue as jf, planPaste as ji, registerEffectTypeInRegistry as jl, fitSliceChildren as jn, withMountedPresentation as jo, isNotifyingNestedCommit as jr, rawNodeAt as js, leaf as jt, setEditorRuntime as ju, target as k, gridPartsOf as ka, snapshotIndexOf as kc, applyPropertyModificationsToSlice as kd, areEditorJsonValuesEqual as kf, resolveStateFieldInitial as ki, initializeBasePluginRegistry as kl, documentReplacement as kn, retainViewPresentation as ko, isEditorPublishingCommit as kr, mapSelectionThroughChange as ks, isVoid as kt, getEditorSchema as ku, definePlugin as l, withLandingBlock as la, lawCheckEnabled as lc, getInternalDocumentChangeRanges as ld, canonicalRecordJson as lf, setEditorViewing as li, toPublicRoot as ll, unwrapNodes as ln, createAuthoredEditorView as lo, setLazyRoot as lp, getNodeTargetRoot as lr, generateElementPropertyValue as ls, getSnapshot as lt, readEditorDocument as lu, getInstalledPlugin as m, removeNodes$1 as ma, getDocumentValueNode as mc, isDocumentRootKey as md, getRecordIds as mf, subscribeEditorViewState as mi, publishEditorRefusal as ml, readWholeBlockLanding as mn, getCarriedCaretEditor as mo, deepFreeze as mp, getSnapshot$1 as mr, holdsOneText as ms, insertBreak as mt, definePluginPoint as mu, brandPluginDescriptor as n, registerEditorDocumentRecorder as na, rootsDeletedByName as nc, createInternalRootChangeFromSections as nd, pathKey$2 as nf, setEditorCompositionPending as ni, mergeAnchorHistoryRecovery as nl, splitNodes as nn, sameCarets as no, PathApi as np, getEditorUpdateRoot as nr, documentRootsOf as ns, getCollabEffects as nt, tracksPlaces as nu, containsCompleteEditorSchema as o, rewriteContentRootReferences as oa, ownedRootsOf as oc, getInternalDocumentChangeClassification as od, getNodeKeyDOMValue as of, setEditorSnapshotInputTransform as oi, assertPublicRootKey as ol, toggleMark as on, watchFirstPlacement as oo, copyRoots as op, getLiveText as or, canonicalizeCompiledTextProperties as os, getPathByNodeKey as ot, getEditorDocumentShapeIssueMessage as ou, getCompiledEditorConfiguration as p, resolveDeletedRange as pa, createEditorCommit as pc, hasInternalDocumentChangeRoot as pd, getRecordEntries as pf, subscribeCaretTarget as pi, EditorRefusalError as pl, editorCommands as pn, flushViewLockScope as po, cloneFrozen as pp, getSetSite as pr, holdsImportedRoot as ps, hasTexts as pt, failInvariant as pu, deleteEditor as q, liftShownTarget as qa, withStoredAuthoredRead as qc, PreparedTokenSlice as qd, readLastCommitAnnotation as qf, subscribeShownViewUse as qi, preserveCompiledSchemaPropertyIdentity as ql, getEditorDocumentRecords as qn, txOnly as qo, resolveEditorNodeKeyForNode as qr, carriesDefault as qs, removeNodes as qt, exactRunOn as qu, carryPluginFactoryType as r, registerEditorDraftGuard as ra, schemaHasContentRoots as rc, documentChangeBetween as rd, textToken as rf, setEditorFocused as ri, observeAnchorStateWork as rl, string as rn, setSelectionAsView as ro, isObject as rp, getLastCommit$1 as rr, ElementGenerationMaskedError as rs, getFragment as rt, uniquePropertiesOf as ru, createEditorViewPluginApis as s, coversContent as sa, rebaseElementOwnedRootIndex as sc, getInternalDocumentChangeClassificationEntries as sd, getNodeKeyForNode as sf, setEditorStateViewTransform as si, getPublicExplicitLocationRoot as sl, unhangRange as sn, withoutPlacement as so, isFrozenWithRoots as sp, getMutationVersion as sr, createDetachedEditorSchema as ss, getPluginRegistry as st, isEnvelopeInput as su, PluginPublicationError as t, isEditorDraftView as ta, orphanedValueRoots as tc, createInternalDocumentChange as td, openToken as tf, setEditorComposing as ti, mapAnchorHistoryRecovery as tl, shouldMergeNodesRemovePrevNode as tn, rootChildrenOf as to, getReaderRange as tp, getEditorStateView as tr, withoutRepairOrphans as ts, getChildren as tt, toCompiledTargetContext as tu, destroyEditor as u, dividesTextCell as ua, ContentSlice as uc, getInternalDocumentChangeRecords as ud, composeRecordOps as uf, setRootCopyScope as ui, getRangeEndpointAssociations as ul, update as un, createEditorView as uo, visitRootNames as up, getPathByNodeKey$1 as ur, getCompiledEditorSchemaFromApi as us, hasBlocks as ut, readPersistedEnvelope as uu, prepareInitialPluginPublication as v, before$1 as va, getEditorCommitFacts as vc, transformInternalDocumentChange as vd, getValueRecords as vf, trackEditorLetters as vi, reportEditorLifecycleError as vl, afterOpenDrafts as vn, getViewAuthor as vo, getDefined as vp, getUpdateView as vr, withoutGeneration as vs, insertText as vt, ElementApi as vu, startEditor as w, getCharacterDistance as wa, getEditorCommitUnsettle as wc, withoutRetainedRecordSets as wd, recordSetChanges as wf, withEditorRootChildrenGenerator as wi, getCompiledEditorSchema as wl, asSelectionMotion as wn, mountViewPeer as wo, initializeEditorSchemaSelection as wr, decodeEditorSelection as ws, isEmpty as wt, registerEditorContent as wu, releaseEditor as x, resolveShouldMergeNodesRemovePrevNode as xa, getEditorCommitSchemas as xc, valueRootNodes as xd, readRecord as xf, withDraftMove as xi, assertPluginPublicationInactive as xl, applyTransactionSpec as xn, joinViewLockScope as xo, hasOpenDraft as xr, withFitLanding as xs, isEdge as xt, getTextSearchScope as xu, prepareScopedPluginPublication as y, after$1 as ya, getEditorCommitNode as yc, valueRoot$1 as yd, hasRecord as yf, transformEditorSnapshotInput as yi, runEditorObserver as yl, applyBuiltDocumentChange as yn, getViewFollowTarget as yo, hasEditorProjectionSnapshotIndex as yr, withoutGenerationOf as ys, install as yt, formatDebugValue as yu, prepareCommandFrame as z, consumeCommitCarets as za, configureAuthoredView as zc, NO_NODES as zd, supportsEditorValuePersistenceVersion as zf, readNestedRootView as zi, getCompiledSchemaPropertyId as zl, getChildList as zn, createEditorReadApi as zo, readElementById as zr, fitImportedBlock as zs, path as zt, composeFacts as zu };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Du as getEditorRuntimeOwner, Jf as RangeApi, Ou as getEditorRuntimeRoot, mi as subscribeEditorViewState } from "./plugin-BvM4s-Lr.js";
|
|
2
|
+
import { $t as scheduleEditorDOMPhase, Cr as getFlatTreeParentElement, D as DOMEditor, In as hasUsableDOMRect, Ut as findDOMRootRuntime, W as subscribeEditorDOMScope, Yn as EDITOR_TO_ELEMENT, et as intersectClipChain, pn as CAN_USE_DOM, rr as EDITOR_TO_ROOT_VIEW_EDITORS, tt as walkClipChain } from "./dom-BjspML2h.js";
|
|
3
3
|
import { useEffect, useLayoutEffect, useSyncExternalStore } from "react";
|
|
4
4
|
//#region src/react/hooks/use-isomorphic-layout-effect.ts
|
|
5
5
|
/**
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $a as restoreEditorSchemaContract, $c as EditorCommitRuntimeChangeKind, $d as PluginReadFactoryContext, $h as NodeOf, $l as EditorSchemaGetProperty, $n as DeleteFragmentCommand, $o as SchemaDescendant, $t as encodeEditorEffect, $u as EditorUniqueHolder, Ac as DefinitionOf, Ad as PluginApiFactory, Af as WithNodeTarget, Ag as Location, Ah as DescendantEntryOf, Al as EditorNodeChangeHandler, Am as RangeDirection, An as TransferCheck, Ao as PropertyNumberDescriptor, As as SchemaPropertyLandingPolicy, Au as EditorTransactionAnnotationsApi, Ba as EditorSchemaContractElement, Bc as EditorCommandContinuation, Bg as PointInterface, Bh as NodeElementsOptions, Bl as EditorReadAroundHandler, Bm as locateAt, Bn as TransferPayload, Bo as SchemaBuiltInGroupName, Bs as SchemaTextProperties, Bu as EditorTransactionMarksApi, Cc as TextOf, Cd as NamedRootKey, Cf as StateFieldValueInput, Cg as EditorDocumentRange, Ch as AncestorIn, Cl as EditorLevelsOptions, Cm as NodeSplitNodesOptions, Cn as TransferApi, Co as EditorSchemaStructureProperty, Cs as SchemaPropertyCopyPolicy, Cu as EditorTargetRuntime, Dc as CompatibleEditorCommand, Dd as PlacedTarget, Df as TransactionSpec, Dg as RangeApi, Dh as Descendant, Dl as EditorMarksOf, Dm as LeafEdge, Dn as transferVeto, Do as PropertyEnumDescriptor, Dr as defineEditorSchema, Ds as SchemaPropertyHandleValue, Du as EditorToggleMarkOptions, Ec as BlockInsertOptions, Ed as PersistedDocumentInput, Ef as TopLevelRuntimeRange, Eg as Range, Eh as ChildOf, El as EditorMarks, Em as NodeWrapNodesOptions, En as transfer, Eo as PropertyBooleanDescriptor, Es as SchemaPropertyHandle, Eu as EditorToggleBlockOptions, Fa as EditorSchemaContractChange, Fc as EditorBreakExitOptions, Fd as PluginCleanupContext, Fg as SpanInterface, Fh as NodeAncestorsOptions, Fl as EditorNodesOptions, Fm as TextUnit, Fn as TransferLandingInput, Fo as PropertyValidation, Fs as SchemaRecordSet, Fu as EditorTransactionChanged, Ga as diffEditorSchemaContracts, Gc as EditorCommandPlace, Gg as PathLevelsOptions, Gh as NodeHasPropsOptions, Gl as EditorReadMethodTree, Gm as defineCommand, Gn as TransferSourceInput, Go as SchemaContentPrefixSlot, Gs as SchemaTypesTarget, Gt as defineUpdateAnnotation, Gu as EditorTransactionRootsApi, Hc as EditorCommandDispatch, Hg as PathAncestorsOptions, Hh as NodeEntryIn, Hi as setEditorReadOnly, Hl as EditorReadDescriptor, Hm as txOnly, Hn as TransferRelation, Ho as SchemaContentDefault, Hs as SchemaTextPropertyDefinition, Hu as EditorTransactionPluginsApi, Ia as EditorSchemaContractChangeKind, Ic as EditorCanonicalUpdateTag, Id as PluginContribution, Ig as BasePoint, Ih as NodeApi, Il as EditorNodesReadOptions, Im as TextUnitAdjustment, In as TransferLandingTarget, Io as PropertyValueDescriptor, Is as SchemaRootNames, Iu as EditorTransactionChangesApi, Jc as EditorCommitChangeKind, Jd as PluginMigrationContext, Jh as NodeIsNodeOptions, Jl as EditorReadResult, Jn as TransferVetoInput, Jo as SchemaContentRootInput, Jr as target, Ju as EditorTransactionSpecBuilder, Kc as EditorCommandResult, Kd as PluginInput, Kg as EditorJsonValue, Kh as NodeIn, Ki as setEditorViewing, Kl as EditorReadMethods, Km as DocumentChange, Kn as TransferTarget, Ko as SchemaContentRoot, Kr as property, Ks as SchemaValue, Kt as invertEffect, Ku as EditorTransactionSelectionApi, La as EditorSchemaContractContentProgram, Lc as EditorCommand, Ld as PluginContributionInput, Lg as Point, Lh as NodeChildEntry, Ll as EditorParentOptions, Lm as TxDeclaredMethod, Ln as TransferOutcome, Lo as PropertyValueKind, Ls as SchemaTarget, Lu as EditorTransactionDocumentChangeKind, Mc as EditorAboveOptions, Md as PluginCandidateContext, Mg as LocationInterface, Mh as DescendantOf, Ml as EditorNodeGetOptions, Mm as SelectionEdge, Mn as TransferEdge, Mo as PropertySetDescriptor, Ms as SchemaPropertyRole, Mu as EditorTransactionBreakApi, Nc as EditorBlockOptions, Nd as PluginCandidateEditor, Ng as Span, Nh as ElementEntryOf, Nm as SelectionMode, Nn as TransferInput, No as PropertySetOptions, Ns as SchemaPropertySplitPolicy, Nu as EditorTransactionChangeContext, Od as Plugin, Of as Value, Og as RangeEdgesOptions, Oh as DescendantEntry, Ol as EditorNextOptions, Om as MaximizeMode, On as editorReads, Oo as PropertyJsonDescriptor, Or as definePlugin, Os as SchemaPropertyIds, Ou as EditorTransactionAnchor, Pa as EditorSchemaContract, Pc as EditorBlockToggleOptions, Pd as PluginCapabilities, Pg as SpanApi, Ph as Node, Pl as EditorNodeUnsetOptions, Pm as TextDirection, Pn as TransferIntent, Po as PropertyStringDescriptor, Ps as SchemaPropertyTypeChangePolicy, Pu as EditorTransactionChangeHandler, Qc as EditorCommitListener, Qd as PluginReadFactory, Qf as getSelection, Qh as NodeNodesOptions, Ql as EditorRootOwner, Qn as DeleteCommand, Qo as SchemaContentRule, Qr as getEditorRuntimeOwner, Qu as EditorTransactionValueApi, Ra as EditorSchemaContractContentRoot, Rc as EditorCommandAroundHandler, Rd as PluginDefinition, Rg as PointApi, Rh as NodeChildrenOptions, Rl as EditorPreviousOptions, Rm as TxMethodDeclarations, Rn as TransferPatch, Ro as PropertyValueOf, Rs as SchemaText, Ru as EditorTransactionEffectsApi, Sc as TextInterface, Sd as InitialValue, Sf as StateFieldInitial, Sg as AnchorValue, Sh as AncestorEntryOf, Sl as EditorIsEditorOptions, Sm as NodeSetNodesOptions, Sn as authoredVeto, So as EditorSchemaRepairCode, Sr as PluginPublicationError, Ss as SchemaProperty, Td as NodeTarget, Tf as TextTarget, Tg as BaseRange, Th as BaseNode, Tl as EditorLifecycleErrorSink, Tm as NodeUnwrapNodesOptions, Tn as TransferRead, To as NamedEditorSchemaIdentity, Ts as SchemaPropertyExclusiveGroup, Tu as EditorTextChangeHandler, Uc as EditorCommandHandler, Ug as PathApi, Uh as NodeEntryOf, Ul as EditorReadInput, Um as txSelection, Un as TransferSide, Uo as SchemaContentInput, Ur as definePluginPoint, Us as SchemaTextPropertyKeys, Uu as EditorTransactionRecordsApi, Va as EditorSchemaContractRoot, Vc as EditorCommandDescriptor, Vd as PluginDependencyReference, Vg as Path, Vh as NodeEntry, Vl as EditorReadContext, Vm as txLocate, Vn as TransferRefusalReason, Vo as SchemaContent, Vs as SchemaTextProperty, Vu as EditorTransactionNodesApi, Wc as EditorCommandInput, Wg as PathInterface, Wh as NodeFindTextRangesOptions, Wl as EditorReadMethodRecord, Wn as TransferSideInput, Wo as SchemaContentOptions, Wr as PropertyBuilderApi, Ws as SchemaTextPropertyOptions, Wt as defineEffect, Wu as EditorTransactionRemoved, Xc as EditorCommitContext, Xd as PluginPortal, Xh as NodeMatch, Xl as EditorReplaceNodeOptions, Xn as AddMarkCommand, Xo as SchemaContentRootSlotsFor, Xu as EditorTransactionTextApi, Yc as EditorCommitChanged, Yd as PluginPoint, Yh as NodeLevelsOptions, Yl as EditorReplaceChildrenOptions, Yn as TransferWrap, Yo as SchemaContentRootOwnership, Ys as EditorSchemaSource, Yu as EditorTransactionTagsApi, Za as readEditorSchemaContract, Zc as EditorCommitHandler, Zd as PluginReadContext, Zh as NodeMatchPredicate, Zl as EditorRootEntry, Zn as CollapseSelectionCommand, Zo as SchemaContentRootStructure, Zt as decodeEditorEffect, Zu as EditorTransactionTopLevelRange, _c as MarksOf, _d as ElementIdTarget, _f as SnapshotIndex, _h as DecorationAttributes, _l as EditorFragmentReadOptions, _m as NodeMergeNodesOptions, _n as NodeWriteVetoInput, _o as EditorSchemaPlugin, _s as SchemaGroup, _u as EditorStateTextApi, ac as ElementIn, ad as EditorUpdatePolicyFor, af as PluginTypeProvider, ag as NodeTextRangeView, ah as EditorSchemaValidationCode, al as EditorDocumentRecords, am as TextInsertTextOptions, an as EditorSchemaValidationError, ao as EditorSchemaDeclaration, ar as MoveSelectionCommand, as as SchemaElementProperties, au as EditorSliceReadOptions, bc as TextEqualsOptions, bd as HistoryResult, bf as StateFieldDescriptor, bg as AnchorDeletionPolicy, bh as Ancestor, bl as EditorInstalledReadGroups, bm as NodeRemoveNodesOptions, bn as AuthoredTouch, bo as EditorSchemaPropertyOverrideInput, bs as SchemaKeyPrefix, bu as EditorStateView, ca as SliceLandingTarget, cc as ElementOf, cd as EditorUpdateTransaction, cf as PluginUpdateFactory, cg as TextEntry, ch as EditorSelection, ci as documentReplacement, cl as EditorEffectCollabDecodeContext, cm as SelectionCollapseOptions, cn as definePluginSlot, co as EditorSchemaDerivedDefinition, cr as ReplaceSliceCommand, cs as SchemaElementPropertyDefinition, cu as EditorStateFragmentApi, dc as BaseText, dd as EditorUpdateValueFromPlugin, df as PluginsOf, dh as Selection, dl as EditorEffectCollabTransport, dm as SelectionSetPointOptions, dn as AuthoredDocumentProjection, do as EditorSchemaElementOverrideInput, dr as SetSelectionCommand, ds as SchemaElementPropertyValue, du as EditorStatePointsApi, ed as EditorUpdate, ef as PluginReadMiddlewareFactory, eg as NodeProps, el as EditorCoreStateView, er as EditorCommands, es as SchemaElement, eu as EditorSchemaPropertyReadOptions, fc as BooleanMarkKeysOf, fd as EditorValueFromPlugins, ff as ProjectedRangeSegment, fh as SelectionApi, fl as EditorEffectHistoryReplayResult, fm as BlockDuplicateOptions, fn as AuthoredProjectionDiagnostic, fo as EditorSchemaElementStructure, fp as isEditor, fr as ToggleBlockCommand, fs as SchemaElementShapeFor, fu as EditorStateRangesApi, g as setDebugValueScrubber, gc as MarksIn, gd as EditorViewOptions, gf as SerializedEditorValue, gh as Decoration, gl as EditorFragmentDeletionOptions, gm as NodeLiftNodesOptions, gn as NodeWriteVeto, go as EditorSchemaOverrideInput, gs as SchemaElementTypes, gu as EditorStateSliceApi, hc as MarkKeysOf, hd as EditorView, hf as SerializedEditorSelection, hh as TextSelection, hl as EditorElementEntry, hm as NodeInsertSplitOptions, ho as EditorSchemaOverride, hs as SchemaElementTarget, hu as EditorStateSelectionApi, i as compileEditorSchemaContract, ic as ElementEntry, id as EditorUpdatePolicy, ig as NodeTextRangeRoot, im as TextInsertFragmentOptions, in as defineStateField, io as EditorSchemaContribution, ir as InsertTextCommand, is as SchemaElementInput, iu as EditorSelectionTargetOptions, jd as PluginApiFactoryContext, jg as LocationApi, jh as DescendantIn, jl as EditorNodeChangeKind, jm as RangeMode, jn as TransferDiagnostic, jo as PropertyOptionsOf, js as SchemaPropertyReferences, ju as EditorTransactionBlocksApi, kd as PluginActivationContext, kf as ValueOf, kg as RangeInterface, kh as DescendantEntryIn, kl as EditorNodeChangeContext, km as MoveUnit, kn as TransferAdoptInput, ko as PropertyJsonOptions, ks as SchemaPropertyKey, ku as EditorTransactionAnchorApi, lc as ElementOrTextIn, lf as PluginUpdateFactoryContext, lg as TextEntryIn, lh as NodeSelection, ll as EditorEffectCollabEncodeContext, lm as SelectionMoveOptions, ln as ContentSlice, lo as EditorSchemaElement, lr as SelectCommand, ls as SchemaElementPropertyKeys, lu as EditorStateMarksApi, m as DebugValueScrubber, mc as LeafPosition, mf as SerializedEditorEffect, mh as SelectionValue, ml as EditorElementBehavior, mm as NodeInsertNodesOptions, mo as EditorSchemaNamedDefinition, mr as editorCommands, ms as SchemaElementStructure, mu as EditorStateSchemaApi, n as PluginsFromOptions, nc as Element, nd as EditorUpdateContext, nf as PluginReference, ng as NodeTextRangeMatch, nh as JsonEditorValue, nl as EditorCoreUpdateTransaction, nn as valueCodecs, no as EditorSchemaContent, nr as InsertNodesCommand, ns as SchemaElementFor, nu as EditorSchemaVocabulary, oa as SliceLanding, oc as ElementInterface, od as EditorUpdateTag, og as NodeTextsOptions, oh as EditorSchemaValidationDiagnostic, ol as EditorDocumentValue, om as TextMutationMethods, on as PluginSlot, oo as EditorSchemaDefinition, or as RemoveMarkCommand, os as SchemaElementPropertiesFor, ou as EditorSnapshot, pc as BooleanMarksOf, pd as EditorValuePersistence, pf as RootKey, ph as SelectionAssociation, pl as EditorEffectType, pm as NodeDuplicateOptions, po as EditorSchemaIdentity, pr as ToggleMarkCommand, ps as SchemaElementSlicePolicy, pu as EditorStateRuntimeApi, qc as EditorCommit, qh as NodeInterface, ql as EditorReadRegistration, qn as TransferVeto, qo as SchemaContentRootContribution, qr as schema, qs as SchemaValueFromPlugins, qt as mapEffect, qu as EditorTransactionSliceApi, rc as ElementApi, rd as EditorUpdateMethods, rf as PluginSlotLike, rg as NodeTextRangeQuery, rh as JsonNode, rl as EditorDirectCommandDispatch, rm as TextDeleteOptions, rn as screenReaderAnnouncementEffect, ro as EditorSchemaContentRoot, rr as InsertSoftBreakCommand, rs as SchemaElementHandle, rt as createEditorView, ru as EditorSelectionBlockOptions, sa as SliceLandingInput, sc as ElementIsElementOptions, sd as EditorUpdateTagInput, sf as PluginTypes, sg as NodeTypeSelector, sh as EditorSchemaValidationPropertyContext, sl as EditorEffect, sm as TextRemoveTextOptions, sn as PluginSlotValue, so as EditorSchemaDelta, sr as RemoveNodesCommand, ss as SchemaElementProperty, su as EditorStateField, t as EditorValueFromOptions, tc as BaseElement, td as EditorUpdateAnnotation, tf as PluginReconfigureOptions, tg as NodeTextRangeEntry, tl as EditorCoreUpdateMethods, to as DerivedEditorSchemaIdentity, tr as InsertBreakCommand, ts as SchemaElementConstructionPropertiesFor, tu as EditorSchemaReadProperty, uc as ElementOrTextOf, ug as TextEntryOf, uh as NodeSelectionMode, ul as EditorEffectCollabReplay, um as SelectionMutationMethods, uo as EditorSchemaElementOverride, ur as SetNodesCommand, us as SchemaElementPropertyOptions, uu as EditorStateNodesApi, vc as Text, vd as HistoryApi, vf as SnapshotInput, vg as Anchor, vh as DecorationRefresh, vm as NodeMoveNodesOptions, vn as nodeWriteVeto, vo as EditorSchemaProperty, vs as SchemaGroupNames, vu as EditorStateUniqueApi, wd as NodeKey, wf as TargetFreshnessRequest, wg as RangeAnchorAssociation, wh as AncestorOf, wl as EditorLifecycleError, wm as NodeUnsetNodesOptions, wn as TransferPlugin, wo as EditorSchemaUnknownPolicy, ws as SchemaPropertyDefinition, wu as EditorTextChangeContext, xc as TextIn, xd as HistorySettlement, xf as StateFieldHistoryPolicy, xg as AnchorOptions, xh as AncestorEntry, xl as EditorInstalledUpdateGroups, xm as NodeReplaceChildrenOptions, xn as AuthoredVeto, xo as EditorSchemaPropertyQuery, xs as SchemaPluginsOf, xu as EditorStateViewApi, yc as TextApi, yd as HistoryOutcome, yf as StateFieldCollabPolicy, yg as AnchorAssociation, yh as DecorationSource, yl as EditorInstalledApiGroups, ym as NodeMutationMethods, yo as EditorSchemaPropertyOverride, ys as SchemaGroupOptions, yu as EditorStateValueApi, za as EditorSchemaContractDiff, zd as PluginDefinitionInput, zg as PointEntry, zh as NodeDescendantsOptions, zl as EditorRead, zm as TxOnlyMethod, zn as TransferPatchProperties, zo as PropertyValueOptions, zs as SchemaTextBlockOptions, zu as EditorTransactionFragmentApi } from "../index-BXjLmx1n.js";
|
|
2
|
-
import { a as AnnotationSnapshot, c as OwnedAnnotationStore, d as ViewSourceError, f as ViewSourceErrorSink, h as ViewSourceStatus, i as AnnotationRefreshOptions, l as ResolvedAnnotation, m as ViewSourcePhase, n as AnnotationAnchor, o as AnnotationStore, p as ViewSourceOptions, r as AnnotationChange, s as AnnotationStoreOptions, t as Annotation } from "../index-
|
|
3
|
-
import { $ as EditorStateSelectorOptions, $t as EditablePasteResult, A as useContentRoot, At as EditableElementSlots, B as EditorRuntimeSelectorOptions, Bt as DOMTextSyncRendererCapabilityContext, C as UseEditableClipOptions, Ct as SelectionChangeContext, D as useEditor, Dt as EditableDOMCoverageBoundaryPlaceholderContext, E as UseEditorOptions, Et as EditableDOMCoverageBoundaryMaterializePayload, F as useAnnotation, Ft as RenderPlaceholderProps, G as UseElementSelectedOptions, Gt as EditableDOMBeforeInputHandler, H as useNodeSelector, Ht as setRetainedTextFlowRendererCapability, I as useAnnotations, It as RenderTextHostProps, J as useElement, Jt as EditableInputEventContext, K as useElementSelected, Kt as EditableHandlerContext, L as UseAnnotationStoreOptions, Lt as RenderTextPieceProps, M as UseRootChromeOptions, Mt as RenderElementProps, N as useRootChrome, Nt as RenderVoidProps, O as ContentRootController, Ot as EditableDOMCoverageBoundaryProps, P as useChildRoot, Pt as RenderLeafProps, Q as EditorSelectorOptions, Qt as EditableHistoryReplayResult, R as useAnnotationStore, Rt as RenderTextProps, S as useClaimEditableDOMCommit, St as EditorRootProps, T as useDropIndicator, Tt as Editable, U as useTextSelector, Ut as installBrowserHandle, V as EditorTextSelectorContext, Vt as setDOMTextSyncRendererCapability, W as UseElementSelectedMode, Wt as EditableDOMBeforeInputContext, X as EditorViewStateSelectorOptions, Xt as EditableDropResult, Y as useOptionalElement, Yt as EditableKeyDownHandler, Z as useEditorViewState, Zt as EditableHistoryReplayEvent, _ as useRuntimeState, _n as react, _t as EditorText, a as useStateFieldValue, an as ExternalTextDispatchResult, at as EditorReadOnlyProvider, b as UseEditorHistoryOptions, bt as CommitContext, c as CommandDispatcher, cn as ExternalTextSelectionState, ct as useOptionalEditorReadOnly, d as UseCommandOptions, dn as CreateEditorOptions, dt as useEditorRootElement, en as EditablePointerSelectionEndHandler, et as useEditorSelector, f as UseRootEditorOptions, fn as Editor, ft as useEditorScrollElement, g as useRootState, gn as createEditor, gt as useOptionalEditorContext, h as useRootEditor, hn as ReactPluginOptions, ht as useEditorContext, i as useSetStateField, in as ExternalTextDecoration, it as useEditorRuntimeState, j as RootChromeController, jt as EditableProps, k as UseContentRootOptions, kt as EditableDOMCoverageBoundaryScope, l as CommandFocusPolicy, ln as ExternalTextState, lt as useEditorFocused, m as useCommand, mn as ReactPlugin, mt as useEditorComposing, n as StateFieldSetter, nn as ExternalTextAdapter, nt as useEditorSelection, o as UseSelectionGeometryOptions, on as ExternalTextOptions, ot as EditorReadOnlyProviderProps, p as useCaretEditor, pn as ReactApi, pt as useEditorScrollElementRef, q as useElementPath, qt as EditableHandlerResult, r as UseStateFieldValueOptions, rn as ExternalTextChange, rt as EditorRuntimeStateSelectorOptions, s as useSelectionGeometry, sn as ExternalTextSelection, st as useEditorReadOnly, t as ReactUpdatePolicy, tn as ExternalTextActions, tt as useEditorState, u as RuntimeStateSelectorOptions, un as ExternalTextView, ut as useEditorEditableElement, v as EditorHistoryController, vn as TypedText, vt as EditorLeaf, w as useEditableClip, wt as ValueChangeContext, x as useEditorHistory, xt as EditorRoot, y as EditorHistoryFocusPolicy, yn as TypedTextListener, yt as EditorElement, z as EditorNodeSelectorContext, zt as EditorPlaceholder } from "../index-
|
|
4
|
-
import { n as RangeRects, r as ViewportRect, t as RangeGeometry } from "../range-geometry-
|
|
1
|
+
import { $a as restoreEditorSchemaContract, $c as EditorCommitRuntimeChangeKind, $d as PluginReadFactoryContext, $h as NodeOf, $l as EditorSchemaGetProperty, $n as DeleteFragmentCommand, $o as SchemaDescendant, $t as encodeEditorEffect, $u as EditorUniqueHolder, Ac as DefinitionOf, Ad as PluginApiFactory, Af as WithNodeTarget, Ag as RangeEdgesOptions, Ah as DescendantEntryOf, Al as EditorNodeChangeHandler, Am as RangeDirection, An as TransferCheck, Ao as PropertyNumberDescriptor, As as SchemaPropertyLandingPolicy, Au as EditorTransactionAnnotationsApi, Ba as EditorSchemaContractElement, Bc as EditorCommandContinuation, Bg as PointApi, Bh as NodeElementsOptions, Bl as EditorReadAroundHandler, Bm as locateAt, Bn as TransferPayload, Bo as SchemaBuiltInGroupName, Bs as SchemaTextProperties, Bu as EditorTransactionMarksApi, Cc as TextOf, Cd as NamedRootKey, Cf as StateFieldValueInput, Cg as EditorDocumentRange, Ch as AncestorIn, Cl as EditorLevelsOptions, Cm as NodeSplitNodesOptions, Cn as TransferApi, Co as EditorSchemaStructureProperty, Cs as SchemaPropertyCopyPolicy, Cu as EditorTargetRuntime, Dc as CompatibleEditorCommand, Dd as PlacedTarget, Df as TransactionSpec, Dg as BaseRange, Dh as Descendant, Dl as EditorMarksOf, Dm as LeafEdge, Dn as transferVeto, Do as PropertyEnumDescriptor, Dr as defineEditorSchema, Ds as SchemaPropertyHandleValue, Du as EditorToggleMarkOptions, Ec as BlockInsertOptions, Ed as PersistedDocumentInput, Ef as TopLevelRuntimeRange, Eh as ChildOf, El as EditorMarks, Em as NodeWrapNodesOptions, En as transfer, Eo as PropertyBooleanDescriptor, Es as SchemaPropertyHandle, Eu as EditorToggleBlockOptions, Fa as EditorSchemaContractChange, Fc as EditorBreakExitOptions, Fd as PluginCleanupContext, Fg as Span, Fh as NodeAncestorsOptions, Fl as EditorNodesOptions, Fm as TextUnit, Fn as TransferLandingInput, Fo as PropertyValidation, Fs as SchemaRecordSet, Fu as EditorTransactionChanged, Ga as diffEditorSchemaContracts, Gc as EditorCommandPlace, Gg as PathApi, Gh as NodeHasPropsOptions, Gl as EditorReadMethodTree, Gm as defineCommand, Gn as TransferSourceInput, Go as SchemaContentPrefixSlot, Gs as SchemaTypesTarget, Gt as defineUpdateAnnotation, Gu as EditorTransactionRootsApi, Hc as EditorCommandDispatch, Hg as PointInterface, Hh as NodeEntryIn, Hi as setEditorReadOnly, Hl as EditorReadDescriptor, Hm as txOnly, Hn as TransferRelation, Ho as SchemaContentDefault, Hs as SchemaTextPropertyDefinition, Hu as EditorTransactionPluginsApi, Ia as EditorSchemaContractChangeKind, Ic as EditorCanonicalUpdateTag, Id as PluginContribution, Ig as SpanApi, Ih as NodeApi, Il as EditorNodesReadOptions, Im as TextUnitAdjustment, In as TransferLandingTarget, Io as PropertyValueDescriptor, Is as SchemaRootNames, Iu as EditorTransactionChangesApi, Jc as EditorCommitChangeKind, Jd as PluginMigrationContext, Jg as EditorJsonValue, Jh as NodeIsNodeOptions, Jl as EditorReadResult, Jn as TransferVetoInput, Jo as SchemaContentRootInput, Jr as target, Ju as EditorTransactionSpecBuilder, Kc as EditorCommandResult, Kd as PluginInput, Kg as PathInterface, Kh as NodeIn, Ki as setEditorViewing, Kl as EditorReadMethods, Km as DocumentChange, Kn as TransferTarget, Ko as SchemaContentRoot, Kr as property, Ks as SchemaValue, Kt as invertEffect, Ku as EditorTransactionSelectionApi, La as EditorSchemaContractContentProgram, Lc as EditorCommand, Ld as PluginContributionInput, Lg as SpanInterface, Lh as NodeChildEntry, Ll as EditorParentOptions, Lm as TxDeclaredMethod, Ln as TransferOutcome, Lo as PropertyValueKind, Ls as SchemaTarget, Lu as EditorTransactionDocumentChangeKind, Mc as EditorAboveOptions, Md as PluginCandidateContext, Mg as Location, Mh as DescendantOf, Ml as EditorNodeGetOptions, Mm as SelectionEdge, Mn as TransferEdge, Mo as PropertySetDescriptor, Ms as SchemaPropertyRole, Mu as EditorTransactionBreakApi, Nc as EditorBlockOptions, Nd as PluginCandidateEditor, Ng as LocationApi, Nh as ElementEntryOf, Nm as SelectionMode, Nn as TransferInput, No as PropertySetOptions, Ns as SchemaPropertySplitPolicy, Nu as EditorTransactionChangeContext, Od as Plugin, Of as Value, Og as Range, Oh as DescendantEntry, Ol as EditorNextOptions, Om as MaximizeMode, On as editorReads, Oo as PropertyJsonDescriptor, Or as definePlugin, Os as SchemaPropertyIds, Ou as EditorTransactionAnchor, Pa as EditorSchemaContract, Pc as EditorBlockToggleOptions, Pd as PluginCapabilities, Pg as LocationInterface, Ph as Node, Pl as EditorNodeUnsetOptions, Pm as TextDirection, Pn as TransferIntent, Po as PropertyStringDescriptor, Ps as SchemaPropertyTypeChangePolicy, Pu as EditorTransactionChangeHandler, Qc as EditorCommitListener, Qd as PluginReadFactory, Qf as getSelection, Qh as NodeNodesOptions, Ql as EditorRootOwner, Qn as DeleteCommand, Qo as SchemaContentRule, Qr as getEditorRuntimeOwner, Qu as EditorTransactionValueApi, Ra as EditorSchemaContractContentRoot, Rc as EditorCommandAroundHandler, Rd as PluginDefinition, Rg as BasePoint, Rh as NodeChildrenOptions, Rl as EditorPreviousOptions, Rm as TxMethodDeclarations, Rn as TransferPatch, Ro as PropertyValueOf, Rs as SchemaText, Ru as EditorTransactionEffectsApi, Sc as TextInterface, Sd as InitialValue, Sf as StateFieldInitial, Sg as AnchorValue, Sh as AncestorEntryOf, Sl as EditorIsEditorOptions, Sm as NodeSetNodesOptions, Sn as authoredVeto, So as EditorSchemaRepairCode, Sr as PluginPublicationError, Ss as SchemaProperty, Td as NodeTarget, Tf as TextTarget, Th as BaseNode, Tl as EditorLifecycleErrorSink, Tm as NodeUnwrapNodesOptions, Tn as TransferRead, To as NamedEditorSchemaIdentity, Ts as SchemaPropertyExclusiveGroup, Tu as EditorTextChangeHandler, Uc as EditorCommandHandler, Ug as Path, Uh as NodeEntryOf, Ul as EditorReadInput, Um as txSelection, Un as TransferSide, Uo as SchemaContentInput, Ur as definePluginPoint, Us as SchemaTextPropertyKeys, Uu as EditorTransactionRecordsApi, Va as EditorSchemaContractRoot, Vc as EditorCommandDescriptor, Vd as PluginDependencyReference, Vg as PointEntry, Vh as NodeEntry, Vl as EditorReadContext, Vm as txLocate, Vn as TransferRefusalReason, Vo as SchemaContent, Vs as SchemaTextProperty, Vu as EditorTransactionNodesApi, Wc as EditorCommandInput, Wg as PathAncestorsOptions, Wh as NodeFindTextRangesOptions, Wl as EditorReadMethodRecord, Wn as TransferSideInput, Wo as SchemaContentOptions, Wr as PropertyBuilderApi, Ws as SchemaTextPropertyOptions, Wt as defineEffect, Wu as EditorTransactionRemoved, Xc as EditorCommitContext, Xd as PluginPortal, Xh as NodeMatch, Xl as EditorReplaceNodeOptions, Xn as AddMarkCommand, Xo as SchemaContentRootSlotsFor, Xu as EditorTransactionTextApi, Yc as EditorCommitChanged, Yd as PluginPoint, Yh as NodeLevelsOptions, Yl as EditorReplaceChildrenOptions, Yn as TransferWrap, Yo as SchemaContentRootOwnership, Ys as EditorSchemaSource, Yu as EditorTransactionTagsApi, Za as readEditorSchemaContract, Zc as EditorCommitHandler, Zd as PluginReadContext, Zh as NodeMatchPredicate, Zl as EditorRootEntry, Zn as CollapseSelectionCommand, Zo as SchemaContentRootStructure, Zt as decodeEditorEffect, Zu as EditorTransactionTopLevelRange, _c as MarksOf, _d as ElementIdTarget, _f as SnapshotIndex, _h as DecorationAttributes, _l as EditorFragmentReadOptions, _m as NodeMergeNodesOptions, _n as NodeWriteVetoInput, _o as EditorSchemaPlugin, _s as SchemaGroup, _u as EditorStateTextApi, ac as ElementIn, ad as EditorUpdatePolicyFor, af as PluginTypeProvider, ag as NodeTextRangeView, ah as EditorSchemaValidationCode, al as EditorDocumentRecords, am as TextInsertTextOptions, an as EditorSchemaValidationError, ao as EditorSchemaDeclaration, ar as MoveSelectionCommand, as as SchemaElementProperties, au as EditorSliceReadOptions, bc as TextEqualsOptions, bd as HistoryResult, bf as StateFieldDescriptor, bg as AnchorDeletionPolicy, bh as Ancestor, bl as EditorInstalledReadGroups, bm as NodeRemoveNodesOptions, bn as AuthoredTouch, bo as EditorSchemaPropertyOverrideInput, bs as SchemaKeyPrefix, bu as EditorStateView, ca as SliceLandingTarget, cc as ElementOf, cd as EditorUpdateTransaction, cf as PluginUpdateFactory, cg as TextEntry, ch as EditorSelection, ci as documentReplacement, cl as EditorEffectCollabDecodeContext, cm as SelectionCollapseOptions, cn as definePluginSlot, co as EditorSchemaDerivedDefinition, cr as ReplaceSliceCommand, cs as SchemaElementPropertyDefinition, cu as EditorStateFragmentApi, dc as BaseText, dd as EditorUpdateValueFromPlugin, df as PluginsOf, dh as Selection, dl as EditorEffectCollabTransport, dm as SelectionSetPointOptions, dn as AuthoredDocumentProjection, do as EditorSchemaElementOverrideInput, dr as SetSelectionCommand, ds as SchemaElementPropertyValue, du as EditorStatePointsApi, ed as EditorUpdate, ef as PluginReadMiddlewareFactory, eg as NodeProps, el as EditorCoreStateView, er as EditorCommands, es as SchemaElement, eu as EditorSchemaPropertyReadOptions, fc as BooleanMarkKeysOf, fd as EditorValueFromPlugins, ff as ProjectedRangeSegment, fh as SelectionApi, fl as EditorEffectHistoryReplayResult, fm as BlockDuplicateOptions, fn as AuthoredProjectionDiagnostic, fo as EditorSchemaElementStructure, fp as isEditor, fr as ToggleBlockCommand, fs as SchemaElementShapeFor, fu as EditorStateRangesApi, g as setDebugValueScrubber, gc as MarksIn, gd as EditorViewOptions, gf as SerializedEditorValue, gh as Decoration, gl as EditorFragmentDeletionOptions, gm as NodeLiftNodesOptions, gn as NodeWriteVeto, go as EditorSchemaOverrideInput, gs as SchemaElementTypes, gu as EditorStateSliceApi, hc as MarkKeysOf, hd as EditorView, hf as SerializedEditorSelection, hh as TextSelection, hl as EditorElementEntry, hm as NodeInsertSplitOptions, ho as EditorSchemaOverride, hs as SchemaElementTarget, hu as EditorStateSelectionApi, i as compileEditorSchemaContract, ic as ElementEntry, id as EditorUpdatePolicy, ig as NodeTextRangeRoot, im as TextInsertFragmentOptions, in as defineStateField, io as EditorSchemaContribution, ir as InsertTextCommand, is as SchemaElementInput, iu as EditorSelectionTargetOptions, jd as PluginApiFactoryContext, jg as RangeInterface, jh as DescendantIn, jl as EditorNodeChangeKind, jm as RangeMode, jn as TransferDiagnostic, jo as PropertyOptionsOf, js as SchemaPropertyReferences, ju as EditorTransactionBlocksApi, kd as PluginActivationContext, kf as ValueOf, kg as RangeApi, kh as DescendantEntryIn, kl as EditorNodeChangeContext, km as MoveUnit, kn as TransferAdoptInput, ko as PropertyJsonOptions, ks as SchemaPropertyKey, ku as EditorTransactionAnchorApi, lc as ElementOrTextIn, lf as PluginUpdateFactoryContext, lg as TextEntryIn, lh as NodeSelection, ll as EditorEffectCollabEncodeContext, lm as SelectionMoveOptions, ln as ContentSlice, lo as EditorSchemaElement, lr as SelectCommand, ls as SchemaElementPropertyKeys, lu as EditorStateMarksApi, m as DebugValueScrubber, mc as LeafPosition, mf as SerializedEditorEffect, mh as SelectionValue, ml as EditorElementBehavior, mm as NodeInsertNodesOptions, mo as EditorSchemaNamedDefinition, mr as editorCommands, ms as SchemaElementStructure, mu as EditorStateSchemaApi, n as PluginsFromOptions, nc as Element, nd as EditorUpdateContext, nf as PluginReference, ng as NodeTextRangeMatch, nh as JsonEditorValue, nl as EditorCoreUpdateTransaction, nn as valueCodecs, no as EditorSchemaContent, nr as InsertNodesCommand, ns as SchemaElementFor, nu as EditorSchemaVocabulary, oa as SliceLanding, oc as ElementInterface, od as EditorUpdateTag, og as NodeTextsOptions, oh as EditorSchemaValidationDiagnostic, ol as EditorDocumentValue, om as TextMutationMethods, on as PluginSlot, oo as EditorSchemaDefinition, or as RemoveMarkCommand, os as SchemaElementPropertiesFor, ou as EditorSnapshot, pc as BooleanMarksOf, pd as EditorValuePersistence, pf as RootKey, ph as SelectionAssociation, pl as EditorEffectType, pm as NodeDuplicateOptions, po as EditorSchemaIdentity, pr as ToggleMarkCommand, ps as SchemaElementSlicePolicy, pu as EditorStateRuntimeApi, qc as EditorCommit, qg as PathLevelsOptions, qh as NodeInterface, ql as EditorReadRegistration, qn as TransferVeto, qo as SchemaContentRootContribution, qr as schema, qs as SchemaValueFromPlugins, qt as mapEffect, qu as EditorTransactionSliceApi, rc as ElementApi, rd as EditorUpdateMethods, rf as PluginSlotLike, rg as NodeTextRangeQuery, rh as JsonNode, rl as EditorDirectCommandDispatch, rm as TextDeleteOptions, rn as screenReaderAnnouncementEffect, ro as EditorSchemaContentRoot, rr as InsertSoftBreakCommand, rs as SchemaElementHandle, rt as createEditorView, ru as EditorSelectionBlockOptions, sa as SliceLandingInput, sc as ElementIsElementOptions, sd as EditorUpdateTagInput, sf as PluginTypes, sg as NodeTypeSelector, sh as EditorSchemaValidationPropertyContext, sl as EditorEffect, sm as TextRemoveTextOptions, sn as PluginSlotValue, so as EditorSchemaDelta, sr as RemoveNodesCommand, ss as SchemaElementProperty, su as EditorStateField, t as EditorValueFromOptions, tc as BaseElement, td as EditorUpdateAnnotation, tf as PluginReconfigureOptions, tg as NodeTextRangeEntry, tl as EditorCoreUpdateMethods, to as DerivedEditorSchemaIdentity, tr as InsertBreakCommand, ts as SchemaElementConstructionPropertiesFor, tu as EditorSchemaReadProperty, uc as ElementOrTextOf, ug as TextEntryOf, uh as NodeSelectionMode, ul as EditorEffectCollabReplay, um as SelectionMutationMethods, uo as EditorSchemaElementOverride, ur as SetNodesCommand, us as SchemaElementPropertyOptions, uu as EditorStateNodesApi, vc as Text, vd as HistoryApi, vf as SnapshotInput, vg as Anchor, vh as DecorationRefresh, vm as NodeMoveNodesOptions, vn as nodeWriteVeto, vo as EditorSchemaProperty, vs as SchemaGroupNames, vu as EditorStateUniqueApi, wd as NodeKey, wf as TargetFreshnessRequest, wg as RangeAnchorAssociation, wh as AncestorOf, wl as EditorLifecycleError, wm as NodeUnsetNodesOptions, wn as TransferPlugin, wo as EditorSchemaUnknownPolicy, ws as SchemaPropertyDefinition, wu as EditorTextChangeContext, xc as TextIn, xd as HistorySettlement, xf as StateFieldHistoryPolicy, xg as AnchorOptions, xh as AncestorEntry, xl as EditorInstalledUpdateGroups, xm as NodeReplaceChildrenOptions, xn as AuthoredVeto, xo as EditorSchemaPropertyQuery, xs as SchemaPluginsOf, xu as EditorStateViewApi, yc as TextApi, yd as HistoryOutcome, yf as StateFieldCollabPolicy, yg as AnchorAssociation, yh as DecorationSource, yl as EditorInstalledApiGroups, ym as NodeMutationMethods, yo as EditorSchemaPropertyOverride, ys as SchemaGroupOptions, yu as EditorStateValueApi, za as EditorSchemaContractDiff, zd as PluginDefinitionInput, zg as Point, zh as NodeDescendantsOptions, zl as EditorRead, zm as TxOnlyMethod, zn as TransferPatchProperties, zo as PropertyValueOptions, zs as SchemaTextBlockOptions, zu as EditorTransactionFragmentApi } from "../index-QuqD4Dyj.js";
|
|
2
|
+
import { a as AnnotationSnapshot, c as OwnedAnnotationStore, d as ViewSourceError, f as ViewSourceErrorSink, h as ViewSourceStatus, i as AnnotationRefreshOptions, l as ResolvedAnnotation, m as ViewSourcePhase, n as AnnotationAnchor, o as AnnotationStore, p as ViewSourceOptions, r as AnnotationChange, s as AnnotationStoreOptions, t as Annotation } from "../index-CRmyGzS8.js";
|
|
3
|
+
import { $ as EditorStateSelectorOptions, $t as EditablePasteResult, A as useContentRoot, At as EditableElementSlots, B as EditorRuntimeSelectorOptions, Bt as DOMTextSyncRendererCapabilityContext, C as UseEditableClipOptions, Ct as SelectionChangeContext, D as useEditor, Dt as EditableDOMCoverageBoundaryPlaceholderContext, E as UseEditorOptions, Et as EditableDOMCoverageBoundaryMaterializePayload, F as useAnnotation, Ft as RenderPlaceholderProps, G as UseElementSelectedOptions, Gt as EditableDOMBeforeInputHandler, H as useNodeSelector, Ht as setRetainedTextFlowRendererCapability, I as useAnnotations, It as RenderTextHostProps, J as useElement, Jt as EditableInputEventContext, K as useElementSelected, Kt as EditableHandlerContext, L as UseAnnotationStoreOptions, Lt as RenderTextPieceProps, M as UseRootChromeOptions, Mt as RenderElementProps, N as useRootChrome, Nt as RenderVoidProps, O as ContentRootController, Ot as EditableDOMCoverageBoundaryProps, P as useChildRoot, Pt as RenderLeafProps, Q as EditorSelectorOptions, Qt as EditableHistoryReplayResult, R as useAnnotationStore, Rt as RenderTextProps, S as useClaimEditableDOMCommit, St as EditorRootProps, T as useDropIndicator, Tt as Editable, U as useTextSelector, Ut as installBrowserHandle, V as EditorTextSelectorContext, Vt as setDOMTextSyncRendererCapability, W as UseElementSelectedMode, Wt as EditableDOMBeforeInputContext, X as EditorViewStateSelectorOptions, Xt as EditableDropResult, Y as useOptionalElement, Yt as EditableKeyDownHandler, Z as useEditorViewState, Zt as EditableHistoryReplayEvent, _ as useRuntimeState, _n as react, _t as EditorText, a as useStateFieldValue, an as ExternalTextDispatchResult, at as EditorReadOnlyProvider, b as UseEditorHistoryOptions, bt as CommitContext, c as CommandDispatcher, cn as ExternalTextSelectionState, ct as useOptionalEditorReadOnly, d as UseCommandOptions, dn as CreateEditorOptions, dt as useEditorRootElement, en as EditablePointerSelectionEndHandler, et as useEditorSelector, f as UseRootEditorOptions, fn as Editor, ft as useEditorScrollElement, g as useRootState, gn as createEditor, gt as useOptionalEditorContext, h as useRootEditor, hn as ReactPluginOptions, ht as useEditorContext, i as useSetStateField, in as ExternalTextDecoration, it as useEditorRuntimeState, j as RootChromeController, jt as EditableProps, k as UseContentRootOptions, kt as EditableDOMCoverageBoundaryScope, l as CommandFocusPolicy, ln as ExternalTextState, lt as useEditorFocused, m as useCommand, mn as ReactPlugin, mt as useEditorComposing, n as StateFieldSetter, nn as ExternalTextAdapter, nt as useEditorSelection, o as UseSelectionGeometryOptions, on as ExternalTextOptions, ot as EditorReadOnlyProviderProps, p as useCaretEditor, pn as ReactApi, pt as useEditorScrollElementRef, q as useElementPath, qt as EditableHandlerResult, r as UseStateFieldValueOptions, rn as ExternalTextChange, rt as EditorRuntimeStateSelectorOptions, s as useSelectionGeometry, sn as ExternalTextSelection, st as useEditorReadOnly, t as ReactUpdatePolicy, tn as ExternalTextActions, tt as useEditorState, u as RuntimeStateSelectorOptions, un as ExternalTextView, ut as useEditorEditableElement, v as EditorHistoryController, vn as TypedText, vt as EditorLeaf, w as useEditableClip, wt as ValueChangeContext, x as useEditorHistory, xt as EditorRoot, y as EditorHistoryFocusPolicy, yn as TypedTextListener, yt as EditorElement, z as EditorNodeSelectorContext, zt as EditorPlaceholder } from "../index-CYac3_ID.js";
|
|
4
|
+
import { n as RangeRects, r as ViewportRect, t as RangeGeometry } from "../range-geometry-wFuJaBlA.js";
|
|
5
5
|
export { type AddMarkCommand, Ancestor, AncestorEntry, AncestorEntryOf, AncestorIn, AncestorOf, type Anchor, type AnchorAssociation, type AnchorDeletionPolicy, type AnchorOptions, type AnchorValue, type Annotation, type AnnotationAnchor, type AnnotationChange, type AnnotationRefreshOptions, type AnnotationSnapshot, type AnnotationStore, type AnnotationStoreOptions, type AuthoredDocumentProjection, type AuthoredProjectionDiagnostic, type AuthoredTouch, type AuthoredVeto, BaseElement, BaseNode, BasePoint, BaseRange, BaseText, type BlockDuplicateOptions, type BlockInsertOptions, BooleanMarkKeysOf, BooleanMarksOf, ChildOf, type CollapseSelectionCommand, type CommandDispatcher, type CommandFocusPolicy, type CommitContext, type CompatibleEditorCommand, type ContentRootController, ContentSlice, type CreateEditorOptions, type DOMTextSyncRendererCapabilityContext, type DebugValueScrubber, type Decoration, type DecorationAttributes, type DecorationRefresh, type DecorationSource, type DefinitionOf, type DeleteCommand, type DeleteFragmentCommand, type DerivedEditorSchemaIdentity, Descendant, DescendantEntry, DescendantEntryIn, DescendantEntryOf, DescendantIn, DescendantOf, DocumentChange, Editable, type EditableDOMBeforeInputContext, type EditableDOMBeforeInputHandler, type EditableDOMCoverageBoundaryMaterializePayload, type EditableDOMCoverageBoundaryPlaceholderContext, type EditableDOMCoverageBoundaryProps, type EditableDOMCoverageBoundaryScope, type EditableDropResult, type EditableElementSlots, type EditableHandlerContext, type EditableHandlerResult, type EditableHistoryReplayEvent, type EditableHistoryReplayResult, type EditableInputEventContext, type EditableKeyDownHandler, type EditablePasteResult, type EditablePointerSelectionEndHandler, type EditableProps, type Editor, type EditorAboveOptions, 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, EditorElement, type EditorElementBehavior, type EditorElementEntry, type EditorFragmentDeletionOptions, type EditorFragmentReadOptions, type EditorHistoryController, type EditorHistoryFocusPolicy, type EditorInstalledApiGroups, type EditorInstalledReadGroups, type EditorInstalledUpdateGroups, type EditorIsEditorOptions, type EditorJsonValue, EditorLeaf, type EditorLevelsOptions, type EditorLifecycleError, type EditorLifecycleErrorSink, type EditorMarks, type EditorMarksOf, type EditorNextOptions, type EditorNodeChangeContext, type EditorNodeChangeHandler, type EditorNodeChangeKind, type EditorNodeGetOptions, type EditorNodeSelectorContext, type EditorNodeUnsetOptions, type EditorNodesOptions, type EditorNodesReadOptions, type EditorParentOptions, EditorPlaceholder, type EditorPreviousOptions, type EditorRead, type EditorReadAroundHandler, type EditorReadContext, type EditorReadDescriptor, type EditorReadInput, type EditorReadMethodRecord, type EditorReadMethodTree, type EditorReadMethods, EditorReadOnlyProvider, type EditorReadOnlyProviderProps, type EditorReadRegistration, type EditorReadResult, type EditorReplaceChildrenOptions, type EditorReplaceNodeOptions, EditorRoot, type EditorRootEntry, type EditorRootOwner, type EditorRootProps, type EditorRuntimeSelectorOptions, type EditorRuntimeStateSelectorOptions, 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 EditorSelectorOptions, type EditorSliceReadOptions, type EditorSnapshot, type EditorStateField, type EditorStateFragmentApi, type EditorStateMarksApi, type EditorStateNodesApi, type EditorStatePointsApi, type EditorStateRangesApi, type EditorStateRuntimeApi, type EditorStateSchemaApi, type EditorStateSelectionApi, type EditorStateSelectorOptions, type EditorStateSliceApi, type EditorStateTextApi, type EditorStateUniqueApi, type EditorStateValueApi, type EditorStateView, type EditorStateViewApi, type EditorTargetRuntime, EditorText, type EditorTextChangeContext, type EditorTextChangeHandler, type EditorTextSelectorContext, 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 EditorValuePersistence, type EditorView, type EditorViewOptions, type EditorViewStateSelectorOptions, Element, ElementApi, ElementEntry, ElementEntryOf, type ElementIdTarget, ElementIn, ElementInterface, ElementIsElementOptions, ElementOf, ElementOrTextIn, ElementOrTextOf, type ExternalTextActions, type ExternalTextAdapter, type ExternalTextChange, type ExternalTextDecoration, type ExternalTextDispatchResult, type ExternalTextOptions, type ExternalTextSelection, type ExternalTextSelectionState, type ExternalTextState, type ExternalTextView, type HistoryApi, type HistoryOutcome, type HistoryResult, type HistorySettlement, type InitialValue, type InsertBreakCommand, type InsertNodesCommand, type InsertSoftBreakCommand, type InsertTextCommand, type JsonEditorValue, type JsonNode, type LeafEdge, LeafPosition, Location, LocationApi, LocationInterface, MarkKeysOf, MarksIn, MarksOf, type MaximizeMode, type MoveSelectionCommand, type MoveUnit, type NamedEditorSchemaIdentity, type NamedRootKey, Node, NodeAncestorsOptions, NodeApi, NodeChildEntry, NodeChildrenOptions, NodeDescendantsOptions, type NodeDuplicateOptions, NodeElementsOptions, NodeEntry, NodeEntryIn, NodeEntryOf, NodeFindTextRangesOptions, NodeHasPropsOptions, NodeIn, type NodeInsertNodesOptions, 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 NodeTarget, NodeTextRangeEntry, NodeTextRangeMatch, NodeTextRangeQuery, NodeTextRangeRoot, NodeTextRangeView, NodeTextsOptions, NodeTypeSelector, type NodeUnsetNodesOptions, type NodeUnwrapNodesOptions, type NodeWrapNodesOptions, type NodeWriteVeto, type NodeWriteVetoInput, type OwnedAnnotationStore, Path, PathAncestorsOptions, PathApi, PathInterface, PathLevelsOptions, type PersistedDocumentInput, type PlacedTarget, type Plugin, type PluginActivationContext, type PluginApiFactory, type PluginApiFactoryContext, type PluginCandidateContext, type PluginCandidateEditor, type PluginCapabilities, type PluginCleanupContext, type PluginContribution, type PluginContributionInput, type PluginDefinition, type PluginDefinitionInput, type PluginDependencyReference, type PluginInput, type PluginMigrationContext, type PluginPoint, type PluginPortal, PluginPublicationError, type PluginReadContext, type PluginReadFactory, type PluginReadFactoryContext, type PluginReadMiddlewareFactory, type PluginReconfigureOptions, type PluginReference, type PluginSlot, type PluginSlotLike, type PluginSlotValue, type PluginTypeProvider, type PluginTypes, 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, type RangeGeometry, RangeInterface, type RangeMode, type RangeRects, type ReactApi, type ReactPlugin, type ReactPluginOptions, ReactUpdatePolicy, type RemoveMarkCommand, type RemoveNodesCommand, type RenderElementProps, type RenderLeafProps, type RenderPlaceholderProps, type RenderTextHostProps, type RenderTextPieceProps, type RenderTextProps, type RenderVoidProps, type ReplaceSliceCommand, type ResolvedAnnotation, type RootChromeController, type RootKey, type RuntimeStateSelectorOptions, 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, type SelectCommand, Selection, SelectionApi, SelectionAssociation, type SelectionChangeContext, type SelectionCollapseOptions, type SelectionEdge, type SelectionMode, type SelectionMoveOptions, type SelectionMutationMethods, type SelectionSetPointOptions, SelectionValue, type SerializedEditorEffect, type SerializedEditorSelection, type SerializedEditorValue, type SetNodesCommand, type SetSelectionCommand, type SliceLanding, type SliceLandingInput, type SliceLandingTarget, type SnapshotIndex, type SnapshotInput, Span, SpanApi, SpanInterface, type StateFieldCollabPolicy, type StateFieldDescriptor, type StateFieldHistoryPolicy, type StateFieldInitial, type StateFieldSetter, type StateFieldValueInput, type TargetFreshnessRequest, Text, TextApi, type TextDeleteOptions, type TextDirection, TextEntry, TextEntryIn, TextEntryOf, TextEqualsOptions, TextIn, type TextInsertFragmentOptions, type TextInsertTextOptions, TextInterface, type TextMutationMethods, TextOf, type TextRemoveTextOptions, TextSelection, type TextTarget, type TextUnit, type TextUnitAdjustment, type ToggleBlockCommand, type ToggleMarkCommand, type TopLevelRuntimeRange, type TransactionSpec, type TransferAdoptInput, type TransferApi, type TransferCheck, type TransferDiagnostic, type TransferEdge, type TransferInput, type TransferIntent, type TransferLandingInput, type TransferLandingTarget, type TransferOutcome, type TransferPatch, type TransferPatchProperties, type TransferPayload, type TransferPlugin, type TransferRead, type TransferRefusalReason, type TransferRelation, type TransferSide, type TransferSideInput, type TransferSourceInput, type TransferTarget, type TransferVeto, type TransferVetoInput, type TransferWrap, type TxDeclaredMethod, type TxMethodDeclarations, type TxOnlyMethod, type TypedText, type TypedTextListener, type UseAnnotationStoreOptions, type UseCommandOptions, type UseContentRootOptions, type UseEditableClipOptions, type UseEditorHistoryOptions, type UseEditorOptions, type UseElementSelectedMode, type UseElementSelectedOptions, type UseRootChromeOptions, type UseRootEditorOptions, type UseSelectionGeometryOptions, type UseStateFieldValueOptions, type Value, type ValueChangeContext, type ValueOf, type ViewSourceError, type ViewSourceErrorSink, type ViewSourceOptions, type ViewSourcePhase, type ViewSourceStatus, type ViewportRect, type WithNodeTarget, authoredVeto, compileEditorSchemaContract, createEditor, createEditorView, decodeEditorEffect, defineCommand, defineEditorSchema, defineEffect, definePlugin, definePluginPoint, definePluginSlot, defineStateField, defineUpdateAnnotation, diffEditorSchemaContracts, documentReplacement, editorCommands, editorReads, encodeEditorEffect, getEditorRuntimeOwner, installBrowserHandle, invertEffect, isEditor, locateAt, mapEffect, nodeWriteVeto, property, react, readEditorSchemaContract, getSelection as readEditorSelection, restoreEditorSchemaContract, schema, screenReaderAnnouncementEffect, setDOMTextSyncRendererCapability, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, setRetainedTextFlowRendererCapability, target, transfer, transferVeto, txLocate, txOnly, txSelection, useAnnotation, useAnnotationStore, useAnnotations, useCaretEditor, useChildRoot, useClaimEditableDOMCommit, useCommand, useContentRoot, useDropIndicator, useEditableClip, useEditor, useEditorComposing, useEditorContext, useEditorEditableElement, useEditorFocused, useEditorHistory, useEditorReadOnly, useEditorRootElement, useEditorRuntimeState, useEditorScrollElement, useEditorScrollElementRef, useEditorSelection, useEditorSelector, useEditorState, useEditorViewState, useElement, useElementPath, useElementSelected, useNodeSelector, useOptionalEditorContext, useOptionalEditorReadOnly, useOptionalElement, useRootChrome, useRootEditor, useRootState, useRuntimeState, useSelectionGeometry, useSetStateField, useStateFieldValue, useTextSelector, valueCodecs };
|
package/dist/react/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as transfer, s as transferVeto, t as defineStateField } from "../src-
|
|
3
|
-
import { _ as screenReaderAnnouncementEffect, n as compileEditorSchemaContract } from "../create-editor-
|
|
4
|
-
import { t as authoredVeto } from "../authored-veto-
|
|
5
|
-
import { A as useRootState, B as setDOMTextSyncRendererCapability, Bt as useOptionalEditorReadOnly, C as useSelectionGeometry, Ct as ReactUpdatePolicy, D as useCommand, E as useCaretEditor, F as useEditorViewState, Ht as useEditorComposing, I as useEditorSelection, It as useElement, J as useEditorSelector, Lt as useOptionalElement, M as useChildRoot, N as useNodeSelector, P as useTextSelector, Rt as EditorReadOnlyProvider, T as useRootChrome, Ut as useEditorContext, V as setRetainedTextFlowRendererCapability, Vt as useEditorFocused, Wt as useOptionalEditorContext, Y as useEditorState, Z as useClaimEditableDOMCommit, a as useEditorScrollElementRef, c as EditorElement, d as EditorText, i as useEditorScrollElement, j as useRuntimeState, k as useRootEditor, l as EditorRoot, m as EditorLeaf, o as Editable, p as EditorPlaceholder, r as useEditorRootElement, t as useEditorEditableElement, w as useContentRoot, zt as useEditorReadOnly } from "../use-editor-dom-scope-
|
|
6
|
-
import { a as useDropIndicator, c as react, d as useAnnotationStore, f as useElementSelected, h as installBrowserHandle, i as useEditableClip, l as useAnnotation, m as useEditorRuntimeState, n as useStateFieldValue, o as useEditor, p as useElementPath, r as useEditorHistory, s as createEditor, t as useSetStateField, u as useAnnotations } from "../react-
|
|
1
|
+
import { A as definePluginSlot, B as NodeApi, Ca as editorReads, D as property, Du as getEditorRuntimeOwner, Gf as invertEffect, Go as locateAt, Il as diffEditorSchemaContracts, Jf as RangeApi, Jo as txSelection, Kf as mapEffect, Ko as txLocate, Mf as decodeEditorEffect, Mu as defineCommand, O as schema, Pf as encodeEditorEffect, Ql as restoreEditorSchemaContract, Qu as DocumentChange, St as isEditor, Su as TextApi, Uf as defineEffect, Us as EditorSchemaValidationError, Vf as valueCodecs, Wf as defineUpdateAnnotation, Xf as SpanApi, Yf as LocationApi, Yl as readEditorSchemaContract, Zf as PointApi, _u as SelectionApi, ai as setEditorReadOnly, bu as setDebugValueScrubber, c as defineEditorSchema, ct as getSelection, dl as nodeWriteVeto, k as target, kn as documentReplacement, l as definePlugin, li as setEditorViewing, mu as definePluginPoint, np as PathApi, pn as editorCommands, qo as txOnly, t as PluginPublicationError, uc as ContentSlice, uo as createEditorView, vu as ElementApi } from "../plugin-BvM4s-Lr.js";
|
|
2
|
+
import { i as transfer, s as transferVeto, t as defineStateField } from "../src-BA6F9yxN.js";
|
|
3
|
+
import { _ as screenReaderAnnouncementEffect, n as compileEditorSchemaContract } from "../create-editor-XvI_4sYc.js";
|
|
4
|
+
import { t as authoredVeto } from "../authored-veto-Cu-5JdVj.js";
|
|
5
|
+
import { A as useRootState, B as setDOMTextSyncRendererCapability, Bt as useOptionalEditorReadOnly, C as useSelectionGeometry, Ct as ReactUpdatePolicy, D as useCommand, E as useCaretEditor, F as useEditorViewState, Ht as useEditorComposing, I as useEditorSelection, It as useElement, J as useEditorSelector, Lt as useOptionalElement, M as useChildRoot, N as useNodeSelector, P as useTextSelector, Rt as EditorReadOnlyProvider, T as useRootChrome, Ut as useEditorContext, V as setRetainedTextFlowRendererCapability, Vt as useEditorFocused, Wt as useOptionalEditorContext, Y as useEditorState, Z as useClaimEditableDOMCommit, a as useEditorScrollElementRef, c as EditorElement, d as EditorText, i as useEditorScrollElement, j as useRuntimeState, k as useRootEditor, l as EditorRoot, m as EditorLeaf, o as Editable, p as EditorPlaceholder, r as useEditorRootElement, t as useEditorEditableElement, w as useContentRoot, zt as useEditorReadOnly } from "../use-editor-dom-scope-B4gF9t_Y.js";
|
|
6
|
+
import { a as useDropIndicator, c as react, d as useAnnotationStore, f as useElementSelected, h as installBrowserHandle, i as useEditableClip, l as useAnnotation, m as useEditorRuntimeState, n as useStateFieldValue, o as useEditor, p as useElementPath, r as useEditorHistory, s as createEditor, t as useSetStateField, u as useAnnotations } from "../react-cmFeNP6P.js";
|
|
7
7
|
export { ContentSlice, DocumentChange, Editable, EditorElement, EditorLeaf, EditorPlaceholder, EditorReadOnlyProvider, EditorRoot, EditorSchemaValidationError, EditorText, ElementApi, LocationApi, NodeApi, PathApi, PluginPublicationError, PointApi, RangeApi, ReactUpdatePolicy, SelectionApi, SpanApi, TextApi, authoredVeto, compileEditorSchemaContract, createEditor, createEditorView, decodeEditorEffect, defineCommand, defineEditorSchema, defineEffect, definePlugin, definePluginPoint, definePluginSlot, defineStateField, defineUpdateAnnotation, diffEditorSchemaContracts, documentReplacement, editorCommands, editorReads, encodeEditorEffect, getEditorRuntimeOwner, installBrowserHandle, invertEffect, isEditor, locateAt, mapEffect, nodeWriteVeto, property, react, readEditorSchemaContract, getSelection as readEditorSelection, restoreEditorSchemaContract, schema, screenReaderAnnouncementEffect, setDOMTextSyncRendererCapability, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, setRetainedTextFlowRendererCapability, target, transfer, transferVeto, txLocate, txOnly, txSelection, useAnnotation, useAnnotationStore, useAnnotations, useCaretEditor, useChildRoot, useClaimEditableDOMCommit, useCommand, useContentRoot, useDropIndicator, useEditableClip, useEditor, useEditorComposing, useEditorContext, useEditorEditableElement, useEditorFocused, useEditorHistory, useEditorReadOnly, useEditorRootElement, useEditorRuntimeState, useEditorScrollElement, useEditorScrollElementRef, useEditorSelection, useEditorSelector, useEditorState, useEditorViewState, useElement, useElementPath, useElementSelected, useNodeSelector, useOptionalEditorContext, useOptionalEditorReadOnly, useOptionalElement, useRootChrome, useRootEditor, useRootState, useRuntimeState, useSelectionGeometry, useSetStateField, useStateFieldValue, useTextSelector, valueCodecs };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nc as Element, pf as RootKey } from "../index-
|
|
2
|
-
import { jt as EditableProps } from "../index-
|
|
1
|
+
import { nc as Element, pf as RootKey } from "../index-QuqD4Dyj.js";
|
|
2
|
+
import { jt as EditableProps } from "../index-CYac3_ID.js";
|
|
3
3
|
//#region src/react/virtualized.d.ts
|
|
4
4
|
type VirtualizedEditableProps<TElement extends Element = Element, TRoot extends RootKey = RootKey> = EditableProps<TElement, TRoot> & {
|
|
5
5
|
/** Estimated height in CSS pixels for an unmeasured top-level block. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { L as useRootNodeKeys, R as useSelectionPaths, S as createInitialViewportIndexes, Ut as useEditorContext, n as useEditorHostScrollElement, s as EditableViewportSurface, u as SurfaceRoot, x as createEditableViewportPlan, z as useTopLevelSelectionIndex, zt as useEditorReadOnly } from "../use-editor-dom-scope-
|
|
2
|
+
import { L as useRootNodeKeys, R as useSelectionPaths, S as createInitialViewportIndexes, Ut as useEditorContext, n as useEditorHostScrollElement, s as EditableViewportSurface, u as SurfaceRoot, x as createEditableViewportPlan, z as useTopLevelSelectionIndex, zt as useEditorReadOnly } from "../use-editor-dom-scope-B4gF9t_Y.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { flushSync } from "react-dom";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as transfer } from "./src-
|
|
3
|
-
import { a as createEditor$1, d as assertEditorOptions, f as readEditorOptions, i as createDormantEditor, u as EDITOR_OPTION_KEYS } from "./create-editor-
|
|
4
|
-
import { t as createEditorOwner } from "./editor-owner-
|
|
5
|
-
import { n as createDormantPliteAnnotationStoreOwner } from "./store-
|
|
6
|
-
import { D as DOMEditor,
|
|
1
|
+
import { Dc as keyMovedAt, Du as getEditorRuntimeOwner, Es as getSelectionDOMRange, Gn as getCurrentSelectionRoot, Ha as getPlacementGeneration, Jf as RangeApi, Ki as subscribeRootViewPresentation, Lr as readEditorHistoryHeadRoots, Qu as DocumentChange, Y as deleteFragment, _u as SelectionApi, at as getNodeKey, cl as toInternalRoot, ct as getSelection, dd as getInternalDocumentChangeRootKeys, ft as hasPath, io as setShownSelectionAsView, it as getLastCommit, l as definePlugin, lt as getSnapshot, np as PathApi, ot as getPathByNodeKey, pu as failInvariant, rn as string, vt as insertText } from "./plugin-BvM4s-Lr.js";
|
|
2
|
+
import { i as transfer } from "./src-BA6F9yxN.js";
|
|
3
|
+
import { a as createEditor$1, d as assertEditorOptions, f as readEditorOptions, i as createDormantEditor, u as EDITOR_OPTION_KEYS } from "./create-editor-XvI_4sYc.js";
|
|
4
|
+
import { t as createEditorOwner } from "./editor-owner-CRgIQ625.js";
|
|
5
|
+
import { n as createDormantPliteAnnotationStoreOwner } from "./store-Bllfuqp4.js";
|
|
6
|
+
import { D as DOMEditor, Wt as findEditorDOMRootRuntime, _t as readDropIndicator, dn as enableKernelTraceRetention, tr as EDITOR_TO_PENDING_SELECTION, v as dom, vt as subscribeDropIndicator, wr as getSelection$1, z as resolveWrittenDOMRange } from "./dom-BjspML2h.js";
|
|
7
7
|
import { t as BROWSER_HANDLE_KEY } from "./browser-protocol-pvt4HFF7.js";
|
|
8
|
-
import { $ as applyEditableCommand, At as resolvePliteViewBoundarySegmentEndpoint, Ct as ReactUpdatePolicy, Dt as readPliteViewSelection, Et as isPliteViewSelectionCollapsed, F as useEditorViewState, Ft as ElementContext, G as getPliteNodeElementByPath, J as useEditorSelector, Mt as getPliteViewBoundaryOwnerKey, O as useOptionalPliteRuntimeContext, Ot as subscribePliteViewSelection, Pt as PliteContentRootOwnerContext, Q as getMountedEditableDOMRuntime, Tt as createPliteViewSelection, U as registerBrowserHandle, Ut as useEditorContext, W as didSyncTextPathToDOM, X as useGenericSelector, Y as useEditorState, _t as readPathByNodeKey, at as getEditableKernelTrace, bt as readRuntimeSelection, dt as subscribeTypedText, et as applyModelOwnedHistoryIntent, ft as executeEditableSelectionImport, gt as syncEditorSelectionFromDOM, ht as syncEditableDOMSelectionToEditor, it as clearEditableKernelTrace, jt as createPliteViewBoundaryGraph, kt as writePliteViewSelection, mt as setEditableModelSelectionPreference, nt as shouldForceRenderAfterModelOwnedHistory, ot as recordEditableKernelTrace, pt as isEditableModelSelectionPreferred, q as callShouldUpdate, rt as beginEditableEventFrame, tt as readHistoryGate, vt as readRuntimeText, wt as withPliteReactPreservedSelection, xt as ReactEditor, yt as getHistoryDirectionFromNativeEvent } from "./use-editor-dom-scope-
|
|
9
|
-
import { a as useRangeGeometryOwner, n as cutRects, o as useIsomorphicLayoutEffect, t as createRangeGeometryOwner } from "./range-geometry-
|
|
8
|
+
import { $ as applyEditableCommand, At as resolvePliteViewBoundarySegmentEndpoint, Ct as ReactUpdatePolicy, Dt as readPliteViewSelection, Et as isPliteViewSelectionCollapsed, F as useEditorViewState, Ft as ElementContext, G as getPliteNodeElementByPath, J as useEditorSelector, Mt as getPliteViewBoundaryOwnerKey, O as useOptionalPliteRuntimeContext, Ot as subscribePliteViewSelection, Pt as PliteContentRootOwnerContext, Q as getMountedEditableDOMRuntime, Tt as createPliteViewSelection, U as registerBrowserHandle, Ut as useEditorContext, W as didSyncTextPathToDOM, X as useGenericSelector, Y as useEditorState, _t as readPathByNodeKey, at as getEditableKernelTrace, bt as readRuntimeSelection, dt as subscribeTypedText, et as applyModelOwnedHistoryIntent, ft as executeEditableSelectionImport, gt as syncEditorSelectionFromDOM, ht as syncEditableDOMSelectionToEditor, it as clearEditableKernelTrace, jt as createPliteViewBoundaryGraph, kt as writePliteViewSelection, mt as setEditableModelSelectionPreference, nt as shouldForceRenderAfterModelOwnedHistory, ot as recordEditableKernelTrace, pt as isEditableModelSelectionPreferred, q as callShouldUpdate, rt as beginEditableEventFrame, tt as readHistoryGate, vt as readRuntimeText, wt as withPliteReactPreservedSelection, xt as ReactEditor, yt as getHistoryDirectionFromNativeEvent } from "./use-editor-dom-scope-B4gF9t_Y.js";
|
|
9
|
+
import { a as useRangeGeometryOwner, n as cutRects, o as useIsomorphicLayoutEffect, t as createRangeGeometryOwner } from "./range-geometry-B5CITwMp.js";
|
|
10
10
|
import { useCallback, useContext, useEffect, useInsertionEffect, useMemo, useRef, useSyncExternalStore } from "react";
|
|
11
11
|
//#region src/react/editable/projected-native-affordance.ts
|
|
12
12
|
const PROJECTED_NATIVE_AFFORDANCE_MATRIX = Object.freeze({
|
|
@@ -53,6 +53,7 @@ const getPublicDocumentChangeRoots = (change) => [
|
|
|
53
53
|
...change.createRoots,
|
|
54
54
|
...change.deleteRoots
|
|
55
55
|
];
|
|
56
|
+
const lastPasteVersionByOwner = /* @__PURE__ */ new WeakMap();
|
|
56
57
|
const createBrowserHandleDataTransfer = ({ html, fragment, text }) => {
|
|
57
58
|
const records = /* @__PURE__ */ new Map();
|
|
58
59
|
if (html) records.set("text/html", html);
|
|
@@ -157,6 +158,11 @@ const attachPliteBrowserHandle = ({ browserHandleNextId, browserHandleRangeAncho
|
|
|
157
158
|
};
|
|
158
159
|
domPhaseScheduler.schedule("selection-repair", "clear-browser-handle-selection-update", clearBrowserHandleSelectionUpdate, { timing: "timeout" });
|
|
159
160
|
};
|
|
161
|
+
const runtimeOwner = getEditorRuntimeOwner(editor);
|
|
162
|
+
const stopRecordingPastes = editor.subscribeCommit((commit) => {
|
|
163
|
+
if (!commit.tags.includes("paste") || commit.changes.empty) return;
|
|
164
|
+
lastPasteVersionByOwner.set(runtimeOwner, Math.max(lastPasteVersionByOwner.get(runtimeOwner) ?? 0, commit.version));
|
|
165
|
+
});
|
|
160
166
|
const handle = {
|
|
161
167
|
applyChange: (change, policy) => {
|
|
162
168
|
const documentChange = DocumentChange.fromJSON(change);
|
|
@@ -298,6 +304,7 @@ const attachPliteBrowserHandle = ({ browserHandleNextId, browserHandleRangeAncho
|
|
|
298
304
|
version: commit.version
|
|
299
305
|
};
|
|
300
306
|
},
|
|
307
|
+
getLastPasteVersion: () => lastPasteVersionByOwner.get(runtimeOwner) ?? null,
|
|
301
308
|
getElementByPath: (path) => getPliteNodeElementByPath(editor, path),
|
|
302
309
|
getPathByNodeKey: (nodeKey) => getPathByNodeKey(editor, nodeKey),
|
|
303
310
|
getProjectedNativeAffordanceMatrix,
|
|
@@ -525,6 +532,7 @@ const attachPliteBrowserHandle = ({ browserHandleNextId, browserHandleRangeAncho
|
|
|
525
532
|
};
|
|
526
533
|
element[BROWSER_HANDLE_KEY] = handle;
|
|
527
534
|
return () => {
|
|
535
|
+
stopRecordingPastes();
|
|
528
536
|
if (element["__EDITOR_BROWSER_HANDLE__"] === handle) element[BROWSER_HANDLE_KEY] = void 0;
|
|
529
537
|
};
|
|
530
538
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $d as isTextNode, Od as applyPropertyModifications, Qd as isElementNode, af as tokensEqual, qd as PreparedTokenSlice, vp as getDefined } from "./plugin-BvM4s-Lr.js";
|
|
2
2
|
//#region src/core/missing-reference.ts
|
|
3
3
|
/**
|
|
4
4
|
* A draft names something the document does not hold yet, such as a record a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { _ as screenReaderAnnouncementEffect } from "./create-editor-
|
|
1
|
+
import { $c as getMovableAnchors, $i as settleDraftTrack, Al as markDefinedStateField, An as finalizeTransactionRepresentation, B as NodeApi, Ca as editorReads, Ci as withEditorRootChildren, Du as getEditorRuntimeOwner, El as getPluginContributions, Eu as getEditorRuntime, Ff as encodeVersionedValue, Hc as readAuthoredView, Jf as RangeApi, Kr as replaceSliceAtBlockBoundary, Lf as normalizeEditorValuePersistence, Ln as getAppliedSpecLanding, Mi as writePaste, Nf as decodeVersionedValue, Ou as getEditorRuntimeRoot, Qi as readDraftTrackAt, Sa as executeEditorRead, Ti as withEditorUpdateRootScope, Tl as getConfiguredPluginRegistry, Uf as defineEffect, Us as EditorSchemaValidationError, Wd as canonicalJsonKey, Yc as isDocumentView, Yi as getContentSlice, Zf as PointApi, Zi as readDraftTrack, Zl as resolveCompiledSchemaProperty, _d as mapInternalDocumentChangePosition, _p as cloneFrozen, _r as getTransactionSnapshot, _u as SelectionApi, bs as payloadKeyOf, da as deleteText, do as createEditorViewRuntime, dp as countCoreWork, ea as trackDraftSpans, eu as toCompiledNodeContext, i as compilePlugin, il as placeAnchorsOnCommit, ji as planPaste, ku as getEditorSchema, l as definePlugin, ma as removeNodes, mu as definePluginPoint, np as PathApi, pa as resolveDeletedRange, ra as registerEditorDraftGuard, ru as uniquePropertiesOf, sa as coversContent, ta as isEditorDraftView, tr as getEditorStateView, uc as ContentSlice, vp as getDefined, vu as ElementApi, wl as getCompiledEditorSchema, xi as withDraftMove, xn as applyTransactionSpec, xs as withFitLanding } from "./plugin-BvM4s-Lr.js";
|
|
2
|
+
import { _ as screenReaderAnnouncementEffect } from "./create-editor-XvI_4sYc.js";
|
|
3
3
|
//#region src/core/landing.ts
|
|
4
4
|
/** Contribute a veto that refuses a landing on its final edge. */
|
|
5
5
|
const transferVeto = definePluginPoint("transfer.veto");
|
|
@@ -270,6 +270,32 @@ const landBeside = (editor, request, moving, side) => {
|
|
|
270
270
|
};
|
|
271
271
|
//#endregion
|
|
272
272
|
//#region src/core/moved-anchors.ts
|
|
273
|
+
const contentUnits = (editor, index, from, to) => {
|
|
274
|
+
const { isVoid } = getEditorSchema(editor);
|
|
275
|
+
const entries = index.nodeRangesTouching(from, to);
|
|
276
|
+
const voids = entries.filter((entry) => entry.kind !== "text" && isVoid(index.node(entry.path)));
|
|
277
|
+
const units = [];
|
|
278
|
+
for (const entry of entries) if (entry.kind === "text") {
|
|
279
|
+
const start = Math.max(from, entry.contentFrom);
|
|
280
|
+
const end = Math.min(to, entry.contentTo);
|
|
281
|
+
if (start < end && !voids.some((node) => node.from <= start && start < node.to)) units.push([
|
|
282
|
+
start,
|
|
283
|
+
end,
|
|
284
|
+
false
|
|
285
|
+
]);
|
|
286
|
+
} else if (voids.includes(entry) && from <= entry.from && entry.to <= to) units.push([
|
|
287
|
+
entry.from,
|
|
288
|
+
entry.to,
|
|
289
|
+
true
|
|
290
|
+
]);
|
|
291
|
+
return units;
|
|
292
|
+
};
|
|
293
|
+
const edgeTokens = (units) => {
|
|
294
|
+
if (units.length === 0) return null;
|
|
295
|
+
const first = units.reduce((left, right) => right[0] < left[0] ? right : left);
|
|
296
|
+
const last = units.reduce((left, right) => right[1] > left[1] ? right : left);
|
|
297
|
+
return [[first[0], first[2] ? "void-open" : "text"], [last[1] - 1, last[2] ? "void-close" : "text"]];
|
|
298
|
+
};
|
|
273
299
|
const SUSPENDED_PLACEMENT = /* @__PURE__ */ new WeakMap();
|
|
274
300
|
const suspendMovePlacement = (editor) => {
|
|
275
301
|
let bound = true;
|
|
@@ -315,16 +341,33 @@ const collectMovedAnchors = (editor, root, source) => {
|
|
|
315
341
|
let low = from;
|
|
316
342
|
while (low > 0 && !tokenHoldsContent(low - 1)) low -= 1;
|
|
317
343
|
const keys = withEditorRootChildren(editor, root, () => index.nodeRangesTouching(Math.max(0, low - 1), Math.min(index.length, to + 1)).flatMap(({ path }) => getEditorRuntime(editor).getNodeKey(path) ?? []));
|
|
344
|
+
const struck = isEditorDraftView(editor);
|
|
318
345
|
const kept = [];
|
|
346
|
+
const remainders = [];
|
|
347
|
+
let carried;
|
|
319
348
|
for (const listener of getMovableAnchors(editor, keys)) {
|
|
320
349
|
const span = listener.root === root && listener.move?.span(index, builder.value);
|
|
321
350
|
if (!span) continue;
|
|
322
351
|
const first = Math.min(...span);
|
|
323
352
|
const last = Math.max(...span);
|
|
324
|
-
|
|
353
|
+
const leftOut = coversContent(index, first, from, schema);
|
|
354
|
+
const rightOut = coversContent(index, to, last, schema);
|
|
355
|
+
if (!coversContent(index, Math.max(first, from), Math.min(last, to), schema)) continue;
|
|
356
|
+
if (!leftOut && !rightOut) kept.push([listener, span]);
|
|
357
|
+
else if (leftOut !== rightOut && (leftOut ? last < to : from < first)) {
|
|
358
|
+
const [restFrom, restTo] = struck ? [first, last] : leftOut ? [first, from] : [to, last];
|
|
359
|
+
const content = edgeTokens(contentUnits(editor, index, restFrom, restTo));
|
|
360
|
+
carried ??= contentUnits(editor, index, from, to);
|
|
361
|
+
if (content) remainders.push({
|
|
362
|
+
content: [content[0][0], content[1][0] + 1],
|
|
363
|
+
listener,
|
|
364
|
+
reorders: !carried.some(([start, end]) => start < first || end > last),
|
|
365
|
+
span
|
|
366
|
+
});
|
|
367
|
+
}
|
|
325
368
|
}
|
|
326
|
-
if (kept.length === 0) return null;
|
|
327
|
-
const tokens = contentOf(editor, index, from, to);
|
|
369
|
+
if (kept.length === 0 && remainders.length === 0) return null;
|
|
370
|
+
const tokens = kept.length > 0 ? contentOf(editor, index, from, to) : [];
|
|
328
371
|
const tokensBefore = (position) => {
|
|
329
372
|
let below = 0;
|
|
330
373
|
let above = tokens.length;
|
|
@@ -342,8 +385,9 @@ const collectMovedAnchors = (editor, root, source) => {
|
|
|
342
385
|
tokensBefore(span[1])
|
|
343
386
|
]),
|
|
344
387
|
from,
|
|
388
|
+
remainders,
|
|
345
389
|
root,
|
|
346
|
-
struck
|
|
390
|
+
struck,
|
|
347
391
|
to,
|
|
348
392
|
tokens
|
|
349
393
|
};
|
|
@@ -354,12 +398,44 @@ const runOf = (tokens, kind, last) => {
|
|
|
354
398
|
return count;
|
|
355
399
|
};
|
|
356
400
|
const trimWrapperBlocks = (tokens, moved) => tokens.slice(Math.max(0, runOf(tokens, "block-open", false) - runOf(moved, "block-open", false)), tokens.length - Math.max(0, runOf(tokens, "block-close", true) - runOf(moved, "block-close", true)));
|
|
401
|
+
const placeBetween = (tokens, count) => {
|
|
402
|
+
const kindPastBlockEdges = (start, step) => {
|
|
403
|
+
let at = start;
|
|
404
|
+
while (tokens[at]?.[1].startsWith("block")) at += step;
|
|
405
|
+
return tokens[at]?.[1];
|
|
406
|
+
};
|
|
407
|
+
const before = tokens[count - 1];
|
|
408
|
+
const next = tokens[count];
|
|
409
|
+
return {
|
|
410
|
+
backward: before ? [before[0] + 1, kindPastBlockEdges(count - 1, -1) === "void-close" ? 1 : -1] : [next[0], -1],
|
|
411
|
+
forward: next ? [next[0], kindPastBlockEdges(count, 1) === "void-open" ? -1 : 1] : [before[0] + 1, 1]
|
|
412
|
+
};
|
|
413
|
+
};
|
|
357
414
|
const placeMovedAnchors = (editor, moved, track) => placeAnchorsOnCommit(editor, (context, place) => {
|
|
358
415
|
const spans = settleDraftTrack(track);
|
|
359
416
|
if (!spans?.length) return;
|
|
360
417
|
const after = context.afterRoot(moved.root);
|
|
361
418
|
const landFrom = spans[0].from;
|
|
362
419
|
const landTo = getDefined(spans.at(-1)).to;
|
|
420
|
+
const mapEdges = ([low, high]) => [low, high].map((position, end) => mapInternalDocumentChangePosition(context.change, moved.root, position, end ? -1 : 1));
|
|
421
|
+
for (const { content, listener, reorders, span } of moved.remainders) {
|
|
422
|
+
const edges = [Math.min(...span), Math.max(...span)];
|
|
423
|
+
let [from, to] = mapEdges(content);
|
|
424
|
+
if (from === null || to === null || from >= to) continue;
|
|
425
|
+
if (reorders && !moved.struck) {
|
|
426
|
+
const [low, high] = mapEdges(edges);
|
|
427
|
+
if (low !== null && high !== null && low <= landFrom && landTo <= high) {
|
|
428
|
+
from = Math.min(from, landFrom);
|
|
429
|
+
to = Math.max(to, landTo);
|
|
430
|
+
}
|
|
431
|
+
} else if (!moved.struck && from < landFrom && landFrom < to) to = landFrom;
|
|
432
|
+
const kept = edgeTokens(contentUnits(editor, after, from, to));
|
|
433
|
+
if (!kept) continue;
|
|
434
|
+
const ends = [placeBetween(kept, 0), placeBetween(kept, kept.length)];
|
|
435
|
+
const [first, second] = span.map((position) => ends[position === edges[0] ? 0 : 1]);
|
|
436
|
+
place(listener, first, second);
|
|
437
|
+
}
|
|
438
|
+
if (moved.anchors.length === 0) return;
|
|
363
439
|
const [from, to] = [moved.from, moved.to].map((position, end) => mapInternalDocumentChangePosition(context.change, moved.root, position, end ? -1 : 1));
|
|
364
440
|
const struckSource = moved.struck && from !== null && to !== null ? [[from, Math.min(to, landFrom)], [Math.max(from, landTo), to]].filter(([start, end]) => start < end).flatMap(([start, end]) => contentOf(editor, after, start, end)) : [];
|
|
365
441
|
const matchingMoved = (tokens) => {
|
|
@@ -368,23 +444,14 @@ const placeMovedAnchors = (editor, moved, track) => placeAnchorsOnCommit(editor,
|
|
|
368
444
|
};
|
|
369
445
|
const landed = matchingMoved(struckSource.some(([, kind]) => !kind.startsWith("block")) ? struckSource : contentOf(editor, after, landFrom, landTo));
|
|
370
446
|
if (!landed) return;
|
|
371
|
-
const kindPastBlockEdges = (start, step) => {
|
|
372
|
-
let at = start;
|
|
373
|
-
while (landed[at]?.[1].startsWith("block")) at += step;
|
|
374
|
-
return landed[at]?.[1];
|
|
375
|
-
};
|
|
376
447
|
const places = /* @__PURE__ */ new Map();
|
|
377
448
|
const endPlace = (count) => {
|
|
378
|
-
|
|
379
|
-
if (known)
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
forward: next ? [next[0], kindPastBlockEdges(count, 1) === "void-open" ? -1 : 1] : [before[0] + 1, 1]
|
|
385
|
-
};
|
|
386
|
-
places.set(count, anchorPlace);
|
|
387
|
-
return anchorPlace;
|
|
449
|
+
let known = places.get(count);
|
|
450
|
+
if (!known) {
|
|
451
|
+
known = placeBetween(landed, count);
|
|
452
|
+
places.set(count, known);
|
|
453
|
+
}
|
|
454
|
+
return known;
|
|
388
455
|
};
|
|
389
456
|
for (const [listener, first, second] of moved.anchors) place(listener, endPlace(first), endPlace(second));
|
|
390
457
|
});
|