plitejs 54.0.0-beta.3 → 54.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/annotations/index.d.ts +1 -1
- package/dist/annotations/index.js +1 -1
- package/dist/authored/index.d.ts +2 -2
- package/dist/authored/index.js +168 -46
- package/dist/{authored-veto-DSnQcHGR.js → authored-veto-D_9wCJcK.js} +1 -1
- package/dist/{comparison-plan-CEQL0ooW.js → comparison-plan-DY_vuGPq.js} +1 -1
- package/dist/{comparison-types-Dt-unJZY.d.ts → comparison-types-DdwE6mYq.d.ts} +1 -1
- package/dist/{create-editor-CkHtPWXV.js → create-editor-CLQEkEZ1.js} +2 -1
- package/dist/diff/index.d.ts +2 -2
- package/dist/diff/index.js +2 -2
- package/dist/dom/index.d.ts +1 -1
- package/dist/dom/index.js +1 -1
- package/dist/{dom-Cgfscvnm.js → dom-CH2BXXj6.js} +2 -2
- package/dist/{editor-owner-IUmkTeXz.js → editor-owner-C9rVbMTs.js} +1 -1
- package/dist/history/index.d.ts +1 -1
- package/dist/history/index.js +2 -2
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/hyperscript/index.js +1 -1
- package/dist/{hyperscript-FPuoArEi.js → hyperscript-CeT83ZLB.js} +2 -2
- package/dist/{index-DPWyk3lG.d.ts → index-BWPcE4ac.d.ts} +7 -1
- package/dist/{index-DpltOCot.d.ts → index-BXjLmx1n.d.ts} +101 -27
- package/dist/{index-K0Za9YXc.d.ts → index-DVMNewDn.d.ts} +10 -13
- package/dist/{index-BpQx2UG4.d.ts → index-Db-ktCTE.d.ts} +5 -6
- package/dist/{index-HPYawTae.d.ts → index-Dq3Jlj8O.d.ts} +1 -1
- package/dist/{index-Cw-oC2ps.d.ts → index-UrB4jAwl.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.js +4 -4
- package/dist/{mapped-view-store-ld-6uxEU.js → mapped-view-store-CbWqba_1.js} +1 -1
- package/dist/{native-grouping-input-DMNcsIaW.js → native-grouping-input-DXNhlPHd.js} +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/react.d.ts +2 -2
- package/dist/pagination/react.js +5 -5
- package/dist/{pagination-D_A8iPJP.js → pagination-CBdYiOuR.js} +1 -1
- package/dist/{plugin-DWzkJbnJ.js → plugin-SR3HTH0j.js} +1458 -952
- package/dist/{range-geometry-BjeLHOnl.js → range-geometry-CdltxcH6.js} +2 -2
- package/dist/{range-geometry-BLAHRE11.d.ts → range-geometry-Dwp2oyCc.d.ts} +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +6 -6
- package/dist/react/virtualized.d.ts +2 -2
- package/dist/react/virtualized.js +1 -1
- package/dist/{react-DZ15gmz2.js → react-CN-iBh1z.js} +8 -8
- package/dist/{retraction-BMem8Rfk.js → retraction-BmPJB9cE.js} +1 -1
- package/dist/{src-cT1OTKP_.js → src-B-zm0kz4.js} +128 -3
- package/dist/{store-Cz2mXyDe.js → store-51r4zpCR.js} +24 -11
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +3 -3
- package/dist/{use-editor-dom-scope-BbMDSCpW.js → use-editor-dom-scope-uDJQ692F.js} +184 -168
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/dist/yjs/react/index.d.ts +3 -3
- package/dist/yjs/react/index.js +3 -3
- package/dist/{yjs-DOK-m7kl.js → yjs-IGE0Al3n.js} +5 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Bt as findDOMRootRuntime, D as DOMEditor, H as subscribeEditorDOMScope, Jt as scheduleEditorDOMPhase, Q as walkClipChain, Qn as EDITOR_TO_ROOT_VIEW_EDITORS, Wn as EDITOR_TO_ELEMENT, Z as intersectClipChain, cn as CAN_USE_DOM, jn as hasUsableDOMRect, vr as getFlatTreeParentElement } from "./dom-
|
|
1
|
+
import { Gf as RangeApi, Tu as getEditorRuntimeRoot, pi as subscribeEditorViewState, wu as getEditorRuntimeOwner } from "./plugin-SR3HTH0j.js";
|
|
2
|
+
import { Bt as findDOMRootRuntime, D as DOMEditor, H as subscribeEditorDOMScope, Jt as scheduleEditorDOMPhase, Q as walkClipChain, Qn as EDITOR_TO_ROOT_VIEW_EDITORS, Wn as EDITOR_TO_ELEMENT, Z as intersectClipChain, cn as CAN_USE_DOM, jn as hasUsableDOMRect, vr as getFlatTreeParentElement } from "./dom-CH2BXXj6.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 EditorSchemaContentRoot, $c as EditorDirectCommandDispatch, $h as TextEntry, $l as EditorSelectionTargetOptions, $m as EditorSelection, $n as EditorCommands, $o as SchemaElementHandle, $p as SelectionCollapseOptions, $s as ElementApi, $u as EditorUpdatePolicy, Aa as EditorSchemaContract, Ac as EditorBlockToggleOptions, Ad as PluginContributionInput, Ag as PointEntry, Ah as NodeDescendantsOptions, Al as EditorNodesOptions, Am as TxOnlyMethod, An as TransferDiagnostic, Ao as PropertyStringDescriptor, As as SchemaPropertyTypeChangePolicy, Au as EditorTransactionChanged, Bc as EditorCommandInput, Bh as NodeLevelsOptions, Bl as EditorReadMethodTree, Bn as TransferRefusalReason, Bo as SchemaContentOptions, Bs as SchemaTextPropertyOptions, Bu as EditorTransactionRootsApi, Cc as CompatibleEditorCommand, Cd as PluginApiFactory, Cg as LocationInterface, Ch as DescendantOf, Cl as EditorNextOptions, Cm as SelectionEdge, Cn as TransferPlugin, Co as PropertyEnumDescriptor, Cs as SchemaPropertyHandleValue, Cu as EditorTransactionAnchor, Dd as PluginCapabilities, Dg as BasePoint, Dh as NodeApi, Dl as EditorNodeGetOptions, Dm as TextUnitAdjustment, Dn as editorReads, Do as PropertyOptionsOf, Ds as SchemaPropertyReferences, Du as EditorTransactionBreakApi, Ec as DefinitionOf, Ed as PluginCandidateEditor, Eg as SpanInterface, Eh as NodeAncestorsOptions, El as EditorNodeChangeKind, Em as TextUnit, En as transferVeto, Eo as PropertyNumberDescriptor, Er as definePlugin, Es as SchemaPropertyLandingPolicy, Eu as EditorTransactionBlocksApi, Fa as EditorSchemaContractDiff, Fg as PathInterface, Fh as NodeFindTextRangesOptions, Fl as EditorReadAroundHandler, Fn as TransferLandingTarget, Fo as PropertyValueOptions, Fs as SchemaTextBlockOptions, Fu as EditorTransactionMarksApi, Gc as EditorCommitChanged, Gd as PluginReadFactory, Gh as NodeProps, Gl as EditorReplaceNodeOptions, Gn as TransferTarget, Go as SchemaContentRootOwnership, Gr as schema, Gs as EditorSchemaSource, Gt as invertEffect, Gu as EditorTransactionTextApi, Hc as EditorCommandResult, Hd as PluginPoint, Hh as NodeMatchPredicate, Hi as setEditorViewing, Hl as EditorReadRegistration, Hn as TransferSide, Ho as SchemaContentRoot, Hr as PropertyBuilderApi, Hs as SchemaValue, Hu as EditorTransactionSliceApi, Ia as EditorSchemaContractElement, Ic as EditorCommandContinuation, Ig as PathLevelsOptions, Ih as NodeHasPropsOptions, Il as EditorReadContext, Im as defineCommand, In as TransferOutcome, Io as SchemaBuiltInGroupName, Is as SchemaTextProperties, Iu as EditorTransactionNodesApi, Jc as EditorCommitListener, Jd as PluginReconfigureOptions, Jh as NodeTextRangeQuery, Jl as EditorSchemaGetProperty, Jm as JsonNode, Jn as TransferWrap, Jo as SchemaContentRule, Jp as TextDeleteOptions, Ju as EditorUniqueHolder, Kc as EditorCommitContext, Kd as PluginReadFactoryContext, Kh as NodeTextRangeEntry, Kl as EditorRootEntry, Kn as TransferVeto, Ko as SchemaContentRootSlotsFor, Kr as target, Kt as mapEffect, Ku as EditorTransactionTopLevelRange, La as EditorSchemaContractRoot, Lc as EditorCommandDescriptor, Lg as EditorJsonValue, Lh as NodeIn, Ll as EditorReadDescriptor, Lm as DocumentChange, Ln as TransferPatch, Lo as SchemaContent, Ls as SchemaTextProperty, Lu as EditorTransactionPluginsApi, Ma as EditorSchemaContractChangeKind, Mc as EditorCanonicalUpdateTag, Md as PluginDefinitionInput, Mg as Path, Mh as NodeEntry, Ml as EditorParentOptions, Mm as txLocate, Mn as TransferInput, Mo as PropertyValueDescriptor, Ms as SchemaRootNames, Mu as EditorTransactionDocumentChangeKind, Na as EditorSchemaContractContentProgram, Nc as EditorCommand, Ng as PathAncestorsOptions, Nh as NodeEntryIn, Nl as EditorPreviousOptions, Nm as txOnly, Nn as TransferIntent, No as PropertyValueKind, Ns as SchemaTarget, Nu as EditorTransactionEffectsApi, Oc as EditorAboveOptions, Od as PluginCleanupContext, Og as Point, Oh as NodeChildEntry, Om as TxDeclaredMethod, On as TransferAdoptInput, Oo as PropertySetDescriptor, Os as SchemaPropertyRole, Ou as EditorTransactionChangeContext, Pa as EditorSchemaContractContentRoot, Pc as EditorCommandAroundHandler, Pd as PluginDependencyReference, Pg as PathApi, Ph as NodeEntryOf, Pl as EditorRead, Pm as txSelection, Pn as TransferLandingInput, Po as PropertyValueOf, Ps as SchemaText, Pu as EditorTransactionFragmentApi, Qa as EditorSchemaContent, Qc as EditorCoreUpdateTransaction, Qd as PluginTypeProvider, Qh as NodeTypeSelector, Ql as EditorSelectionBlockOptions, Qm as EditorSchemaValidationPropertyContext, Qn as DeleteFragmentCommand, Qo as SchemaElementFor, Qp as TextRemoveTextOptions, Qs as Element, Qt as encodeEditorEffect, Qu as EditorUpdateMethods, Rc as EditorCommandDispatch, Rh as NodeInterface, Ri as setEditorReadOnly, Rl as EditorReadInput, Rn as TransferPatchProperties, Ro as SchemaContentDefault, Rs as SchemaTextPropertyDefinition, Ru as EditorTransactionRecordsApi, Sc as BlockInsertOptions, Sd as PluginActivationContext, Sg as LocationApi, Sh as DescendantIn, Sl as EditorMarksOf, Sm as RangeMode, Sn as TransferApi, So as PropertyBooleanDescriptor, Ss as SchemaPropertyHandle, Su as EditorToggleMarkOptions, Td as PluginCandidateContext, Tg as SpanApi, Th as Node, Tl as EditorNodeChangeHandler, Tm as TextDirection, Tn as transfer, To as PropertyJsonOptions, Tr as defineEditorSchema, Ts as SchemaPropertyKey, Tu as EditorTransactionAnnotationsApi, Uc as EditorCommit, Ud as PluginPortal, Uf as getSelection, Uh as NodeNodesOptions, Ul as EditorReadResult, Un as TransferSideInput, Uo as SchemaContentRootContribution, Us as SchemaValueFromPlugins, Ut as defineEffect, Uu as EditorTransactionSpecBuilder, Va as diffEditorSchemaContracts, Vc as EditorCommandPlace, Vd as PluginMigrationContext, Vh as NodeMatch, Vl as EditorReadMethods, Vn as TransferRelation, Vo as SchemaContentPrefixSlot, Vr as definePluginPoint, Vs as SchemaTypesTarget, Vu as EditorTransactionSelectionApi, Wc as EditorCommitChangeKind, Wd as PluginReadContext, Wh as NodeOf, Wl as EditorReplaceChildrenOptions, Wn as TransferSourceInput, Wo as SchemaContentRootInput, Wr as property, Wt as defineUpdateAnnotation, Wu as EditorTransactionTagsApi, Xc as EditorCoreStateView, Xd as PluginSlotLike, Xh as NodeTextRangeView, Xl as EditorSchemaReadProperty, Xm as EditorSchemaValidationCode, Xn as CollapseSelectionCommand, Xo as SchemaElement, Xp as TextInsertTextOptions, Xr as getEditorRuntimeOwner, Xt as decodeEditorEffect, Xu as EditorUpdateAnnotation, Ya as restoreEditorSchemaContract, Yc as EditorCommitRuntimeChangeKind, Yd as PluginReference, Yh as NodeTextRangeRoot, Yl as EditorSchemaPropertyReadOptions, Yn as AddMarkCommand, Yo as SchemaDescendant, Yp as TextInsertFragmentOptions, Yu as EditorUpdate, Za as DerivedEditorSchemaIdentity, Zc as EditorCoreUpdateMethods, Zh as NodeTextsOptions, Zl as EditorSchemaVocabulary, Zm as EditorSchemaValidationDiagnostic, Zn as DeleteCommand, Zo as SchemaElementConstructionPropertiesFor, Zp as TextMutationMethods, Zs as BaseElement, Zu as EditorUpdateContext, _c as TextIn, _d as NamedRootKey, _f as TargetFreshnessRequest, _g as Range, _h as ChildOf, _l as EditorIsEditorOptions, _m as NodeWrapNodesOptions, _n as nodeWriteVeto, _o as EditorSchemaPropertyQuery, _s as SchemaPluginsOf, ac as ElementOrTextIn, af as ProjectedRangeSegment, ah as SelectionValue, al as EditorEffectCollabEncodeContext, am as NodeInsertNodesOptions, an as PluginSlot, ao as EditorSchemaElement, ar as RemoveMarkCommand, as as SchemaElementPropertyKeys, au as EditorStateNodesApi, bd as PersistedDocumentInput, bf as Value, bg as RangeInterface, bh as DescendantEntryIn, bl as EditorLifecycleErrorSink, bm as MoveUnit, bn as AuthoredVeto, bo as EditorSchemaUnknownPolicy, br as PluginPublicationError, bs as SchemaPropertyDefinition, bu as EditorTextChangeHandler, cc as BooleanMarkKeysOf, cd as EditorValuePersistence, cf as SerializedEditorSelection, ch as DecorationAttributes, cl as EditorEffectHistoryReplayResult, cm as NodeMergeNodesOptions, cn as ContentSlice, co as EditorSchemaElementStructure, cr as SelectCommand, cs as SchemaElementShapeFor, cu as EditorStateRuntimeApi, dc as MarkKeysOf, dd as EditorViewOptions, df as SnapshotInput, dg as AnchorDeletionPolicy, dh as Ancestor, dl as EditorFragmentDeletionOptions, dm as NodeRemoveNodesOptions, dn as AuthoredProjectionDiagnostic, do as EditorSchemaOverride, dr as ToggleBlockCommand, ds as SchemaElementTarget, du as EditorStateSliceApi, ec as ElementEntry, ed as EditorUpdatePolicyFor, ef as PluginTypes, eg as TextEntryIn, eh as NodeSelection, em as SelectionMoveOptions, eo as EditorSchemaContribution, er as InsertBreakCommand, es as SchemaElementInput, eu as EditorSliceReadOptions, fc as MarksIn, fd as HistoryApi, ff as StateFieldCollabPolicy, fg as AnchorOptions, fh as AncestorEntry, fl as EditorFragmentReadOptions, fm as NodeReplaceChildrenOptions, fo as EditorSchemaOverrideInput, fr as ToggleMarkCommand, fs as SchemaElementTypes, fu as EditorStateTextApi, g as setDebugValueScrubber, gc as TextEqualsOptions, gd as InitialValue, gf as StateFieldValueInput, gg as BaseRange, gh as BaseNode, gl as EditorInstalledUpdateGroups, gm as NodeUnwrapNodesOptions, gn as NodeWriteVetoInput, go as EditorSchemaPropertyOverrideInput, gs as SchemaKeyPrefix, gu as EditorStateViewApi, hc as TextApi, hd as HistorySettlement, hf as StateFieldInitial, hg as RangeAnchorAssociation, hh as AncestorOf, hl as EditorInstalledReadGroups, hm as NodeUnsetNodesOptions, hn as NodeWriteVeto, ho as EditorSchemaPropertyOverride, hs as SchemaGroupOptions, hu as EditorStateView, i as compileEditorSchemaContract, ia as SliceLandingTarget, ic as ElementOf, if as PluginsOf, ih as SelectionAssociation, il as EditorEffectCollabDecodeContext, im as NodeDuplicateOptions, in as EditorSchemaValidationError, io as EditorSchemaDerivedDefinition, ir as MoveSelectionCommand, is as SchemaElementPropertyDefinition, iu as EditorStateMarksApi, ja as EditorSchemaContractChange, jc as EditorBreakExitOptions, jd as PluginDefinition, jg as PointInterface, jh as NodeElementsOptions, jl as EditorNodesReadOptions, jm as locateAt, jn as TransferEdge, jo as PropertyValidation, js as SchemaRecordSet, ju as EditorTransactionChangesApi, kc as EditorBlockOptions, kd as PluginContribution, kg as PointApi, kh as NodeChildrenOptions, kl as EditorNodeUnsetOptions, km as TxMethodDeclarations, kn as TransferCheck, ko as PropertySetOptions, ks as SchemaPropertySplitPolicy, ku as EditorTransactionChangeHandler, lc as BooleanMarksOf, lf as SerializedEditorValue, lg as Anchor, lh as DecorationRefresh, ll as EditorEffectType, lm as NodeMoveNodesOptions, lo as EditorSchemaIdentity, lr as SetNodesCommand, ls as SchemaElementSlicePolicy, lu as EditorStateSchemaApi, m as DebugValueScrubber, mc as Text, md as HistoryResult, mf as StateFieldHistoryPolicy, mg as EditorDocumentRange, mh as AncestorIn, ml as EditorInstalledApiGroups, mm as NodeSplitNodesOptions, mo as EditorSchemaProperty, ms as SchemaGroupNames, mu as EditorStateValueApi, n as PluginsFromOptions, na as SliceLanding, nc as ElementInterface, nd as EditorUpdateTagInput, nf as PluginUpdateFactoryContext, nh as Selection, nl as EditorDocumentValue, nm as SelectionSetPointOptions, nn as screenReaderAnnouncementEffect, no as EditorSchemaDefinition, nr as InsertSoftBreakCommand, ns as SchemaElementPropertiesFor, nt as createEditorView, nu as EditorStateField, oc as ElementOrTextOf, od as EditorUpdateValueFromPlugin, of as RootKey, oh as TextSelection, oi as documentReplacement, ol as EditorEffectCollabReplay, om as NodeInsertSplitOptions, on as PluginSlotValue, oo as EditorSchemaElementOverride, or as RemoveNodesCommand, os as SchemaElementPropertyOptions, ou as EditorStatePointsApi, pc as MarksOf, pd as HistoryOutcome, pf as StateFieldDescriptor, pg as AnchorValue, ph as AncestorEntryOf, pm as NodeSetNodesOptions, po as EditorSchemaPlugin, pr as editorCommands, ps as SchemaGroup, pu as EditorStateUniqueApi, qa as readEditorSchemaContract, qc as EditorCommitHandler, qd as PluginReadMiddlewareFactory, qh as NodeTextRangeMatch, ql as EditorRootOwner, qm as JsonEditorValue, qn as TransferVetoInput, qo as SchemaContentRootStructure, qu as EditorTransactionValueApi, ra as SliceLandingInput, rc as ElementIsElementOptions, rd as EditorUpdateTransaction, rh as SelectionApi, rl as EditorEffect, rm as BlockDuplicateOptions, rn as defineStateField, ro as EditorSchemaDelta, rp as isEditor, rr as InsertTextCommand, rs as SchemaElementProperty, ru as EditorStateFragmentApi, sc as BaseText, sd as EditorValueFromPlugins, sf as SerializedEditorEffect, sh as Decoration, sl as EditorEffectCollabTransport, sm as NodeLiftNodesOptions, sn as definePluginSlot, so as EditorSchemaElementOverrideInput, sr as ReplaceSliceCommand, ss as SchemaElementPropertyValue, su as EditorStateRangesApi, t as EditorValueFromOptions, tc as ElementIn, td as EditorUpdateTag, tf as PluginUpdateFactory, tg as TextEntryOf, th as NodeSelectionMode, tl as EditorDocumentRecords, tm as SelectionMutationMethods, tn as valueCodecs, to as EditorSchemaDeclaration, tr as InsertNodesCommand, ts as SchemaElementProperties, tu as EditorSnapshot, uc as LeafPosition, ud as EditorView, uf as SnapshotIndex, ug as AnchorAssociation, uh as DecorationSource, ul as EditorElementBehavior, um as NodeMutationMethods, un as AuthoredDocumentProjection, uo as EditorSchemaNamedDefinition, ur as SetSelectionCommand, us as SchemaElementStructure, uu as EditorStateSelectionApi, vc as TextInterface, vd as NodeKey, vf as TopLevelRuntimeRange, vg as RangeApi, vh as Descendant, vl as EditorLevelsOptions, vm as LeafEdge, vo as EditorSchemaRepairCode, vs as SchemaProperty, vu as EditorTargetRuntime, wd as PluginApiFactoryContext, wg as Span, wh as ElementEntryOf, wl as EditorNodeChangeContext, wm as SelectionMode, wn as TransferRead, wo as PropertyJsonDescriptor, ws as SchemaPropertyIds, wu as EditorTransactionAnchorApi, xd as Plugin, xf as ValueOf, xg as Location, xh as DescendantEntryOf, xl as EditorMarks, xm as RangeDirection, xn as authoredVeto, xo as NamedEditorSchemaIdentity, xs as SchemaPropertyExclusiveGroup, xu as EditorToggleBlockOptions, yc as TextOf, yd as NodeTarget, yf as TransactionSpec, yg as RangeEdgesOptions, yh as DescendantEntry, yl as EditorLifecycleError, ym as MaximizeMode, yn as AuthoredTouch, yo as EditorSchemaStructureProperty, ys as SchemaPropertyCopyPolicy, yu as EditorTextChangeContext, zc as EditorCommandHandler, zd as PluginInput, zh as NodeIsNodeOptions, zl as EditorReadMethodRecord, zn as TransferPayload, zo as SchemaContentInput, zs as SchemaTextPropertyKeys, zu as EditorTransactionRemoved } from "../index-DpltOCot.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-
|
|
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 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, 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 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 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, 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
|
+
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-BWPcE4ac.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-DVMNewDn.js";
|
|
4
|
+
import { n as RangeRects, r as ViewportRect, t as RangeGeometry } from "../range-geometry-Dwp2oyCc.js";
|
|
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,
|
|
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 { $f as PathApi, A as definePluginSlot, B as NodeApi, Bf as defineEffect, D as property, Gf as RangeApi, Go as txLocate, Hf as invertEffect, Hs as EditorSchemaValidationError, Jf as PointApi, Kf as LocationApi, Kl as readEditorSchemaContract, Ko as txOnly, Nl as diffEditorSchemaContracts, O as schema, Rf as valueCodecs, Sa as editorReads, St as isEditor, Uf as mapEffect, Vf as defineUpdateAnnotation, Wo as locateAt, Yl as restoreEditorSchemaContract, Yu as DocumentChange, _u as setDebugValueScrubber, c as defineEditorSchema, ci as setEditorViewing, cl as nodeWriteVeto, ct as getSelection, du as definePluginPoint, hu as ElementApi, ii as setEditorReadOnly, jf as encodeEditorEffect, k as target, kf as decodeEditorEffect, kn as documentReplacement, ku as defineCommand, l as definePlugin, lc as ContentSlice, lo as createEditorView, mu as SelectionApi, pn as editorCommands, qf as SpanApi, qo as txSelection, t as PluginPublicationError, wu as getEditorRuntimeOwner, yu as TextApi } from "../plugin-SR3HTH0j.js";
|
|
2
|
+
import { i as transfer, s as transferVeto, t as defineStateField } from "../src-B-zm0kz4.js";
|
|
3
|
+
import { _ as screenReaderAnnouncementEffect, n as compileEditorSchemaContract } from "../create-editor-CLQEkEZ1.js";
|
|
4
|
+
import { t as authoredVeto } from "../authored-veto-D_9wCJcK.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-uDJQ692F.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-CN-iBh1z.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 {
|
|
2
|
-
import { jt as EditableProps } from "../index-
|
|
1
|
+
import { nc as Element, pf as RootKey } from "../index-BXjLmx1n.js";
|
|
2
|
+
import { jt as EditableProps } from "../index-DVMNewDn.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-uDJQ692F.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, L as resolveWrittenDOMRange, Vt as findEditorDOMRootRuntime, Xn as EDITOR_TO_PENDING_SELECTION, ht as subscribeDropIndicator, mt as readDropIndicator, on as enableKernelTraceRetention, v as dom, yr as getSelection$1 } from "./dom-
|
|
1
|
+
import { $f as PathApi, Ec as keyMovedAt, Gf as RangeApi, Gi as subscribeRootViewPresentation, Gn as getCurrentSelectionRoot, Ir as readEditorHistoryHeadRoots, Ts as getSelectionDOMRange, Va as getPlacementGeneration, Y as deleteFragment, Yu as DocumentChange, al as toInternalRoot, at as getNodeKey, cd as getInternalDocumentChangeRootKeys, ct as getSelection, ft as hasPath, it as getLastCommit, l as definePlugin, lt as getSnapshot, mu as SelectionApi, ot as getPathByNodeKey, rn as string, ro as setShownSelectionAsView, uu as failInvariant, vt as insertText } from "./plugin-SR3HTH0j.js";
|
|
2
|
+
import { i as transfer } from "./src-B-zm0kz4.js";
|
|
3
|
+
import { a as createEditor$1, d as assertEditorOptions, f as readEditorOptions, i as createDormantEditor, u as EDITOR_OPTION_KEYS } from "./create-editor-CLQEkEZ1.js";
|
|
4
|
+
import { t as createEditorOwner } from "./editor-owner-C9rVbMTs.js";
|
|
5
|
+
import { n as createDormantPliteAnnotationStoreOwner } from "./store-51r4zpCR.js";
|
|
6
|
+
import { D as DOMEditor, L as resolveWrittenDOMRange, Vt as findEditorDOMRootRuntime, Xn as EDITOR_TO_PENDING_SELECTION, ht as subscribeDropIndicator, mt as readDropIndicator, on as enableKernelTraceRetention, v as dom, yr as getSelection$1 } from "./dom-CH2BXXj6.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-uDJQ692F.js";
|
|
9
|
+
import { a as useRangeGeometryOwner, n as cutRects, o as useIsomorphicLayoutEffect, t as createRangeGeometryOwner } from "./range-geometry-CdltxcH6.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({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Td as applyPropertyModifications, Wd as PreparedTokenSlice, Xd as isTextNode, Yd as isElementNode,
|
|
1
|
+
import { Td as applyPropertyModifications, Wd as PreparedTokenSlice, Xd as isTextNode, Yd as isElementNode, hp as getDefined, nf as tokensEqual } from "./plugin-SR3HTH0j.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 { $i as trackDraftSpans, Af as decodeVersionedValue, Ai as planPaste, B as NodeApi, Bf as defineEffect, Eu as getEditorSchema,
|
|
2
|
-
import { _ as screenReaderAnnouncementEffect } from "./create-editor-
|
|
1
|
+
import { $f as PathApi, $i as trackDraftSpans, Af as decodeVersionedValue, Ai as planPaste, An as finalizeTransactionRepresentation, B as NodeApi, Bf as defineEffect, Cl as getPluginContributions, Cu as getEditorRuntime, Dl as markDefinedStateField, Eu as getEditorSchema, Gf as RangeApi, Gr as replaceSliceAtBlockBoundary, Hs as EditorSchemaValidationError, Jf as PointApi, Ji as getContentSlice, Jl as resolveCompiledSchemaProperty, Kc as isDocumentView, Ln as getAppliedSpecLanding, Mf as encodeVersionedValue, Pf as normalizeEditorValuePersistence, Qi as settleDraftTrack, Sa as editorReads, Si as withEditorRootChildren, Sl as getConfiguredPluginRegistry, Tu as getEditorRuntimeRoot, Vd as canonicalJsonKey, Xc as getMovableAnchors, Xi as readDraftTrack, Zi as readDraftTrackAt, Zl as toCompiledNodeContext, _r as getTransactionSnapshot, bi as withDraftMove, bs as withFitLanding, cp as countCoreWork, du as definePluginPoint, ea as isEditorDraftView, eu as uniquePropertiesOf, fa as resolveDeletedRange, hp as getDefined, hu as ElementApi, i as compilePlugin, ji as writePaste, l as definePlugin, lc as ContentSlice, md as mapInternalDocumentChangePosition, mp as cloneFrozen, mu as SelectionApi, na as registerEditorDraftGuard, oa as coversContent, pa as removeNodes, tl as placeAnchorsOnCommit, tr as getEditorStateView, ua as deleteText, uo as createEditorViewRuntime, wi as withEditorUpdateRootScope, wu as getEditorRuntimeOwner, xa as executeEditorRead, xl as getCompiledEditorSchema, xn as applyTransactionSpec, ys as payloadKeyOf, zc as readAuthoredView } from "./plugin-SR3HTH0j.js";
|
|
2
|
+
import { _ as screenReaderAnnouncementEffect } from "./create-editor-CLQEkEZ1.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");
|
|
@@ -269,6 +269,126 @@ const landBeside = (editor, request, moving, side) => {
|
|
|
269
269
|
};
|
|
270
270
|
};
|
|
271
271
|
//#endregion
|
|
272
|
+
//#region src/core/moved-anchors.ts
|
|
273
|
+
const SUSPENDED_PLACEMENT = /* @__PURE__ */ new WeakMap();
|
|
274
|
+
const suspendMovePlacement = (editor) => {
|
|
275
|
+
let bound = true;
|
|
276
|
+
SUSPENDED_PLACEMENT.set(editor, (SUSPENDED_PLACEMENT.get(editor) ?? 0) + 1);
|
|
277
|
+
return () => {
|
|
278
|
+
if (!bound) return;
|
|
279
|
+
bound = false;
|
|
280
|
+
const left = getDefined(SUSPENDED_PLACEMENT.get(editor)) - 1;
|
|
281
|
+
if (left > 0) SUSPENDED_PLACEMENT.set(editor, left);
|
|
282
|
+
else SUSPENDED_PLACEMENT.delete(editor);
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
const contentOf = (editor, index, from, to) => {
|
|
286
|
+
const tokens = [];
|
|
287
|
+
const { isVoid } = getEditorSchema(editor);
|
|
288
|
+
for (const entry of index.nodeRangesTouching(from, to)) if (entry.kind === "text") {
|
|
289
|
+
const { text } = index.node(entry.path);
|
|
290
|
+
const end = Math.min(to, entry.contentTo);
|
|
291
|
+
for (let at = Math.max(from, entry.contentFrom); at < end; at++) tokens.push([
|
|
292
|
+
at,
|
|
293
|
+
"text",
|
|
294
|
+
text[at - entry.contentFrom]
|
|
295
|
+
]);
|
|
296
|
+
} else {
|
|
297
|
+
const node = index.node(entry.path);
|
|
298
|
+
const kind = isVoid(node) ? "void" : "block";
|
|
299
|
+
if (entry.from >= from && entry.from < to) tokens.push([
|
|
300
|
+
entry.from,
|
|
301
|
+
`${kind}-open`,
|
|
302
|
+
kind === "void" ? node.type : void 0
|
|
303
|
+
]);
|
|
304
|
+
if (entry.to > from && entry.to <= to) tokens.push([entry.to - 1, `${kind}-close`]);
|
|
305
|
+
}
|
|
306
|
+
return tokens.sort((left, right) => left[0] - right[0]);
|
|
307
|
+
};
|
|
308
|
+
const collectMovedAnchors = (editor, root, source) => {
|
|
309
|
+
const { builder } = getDefined(getTransactionSnapshot(editor));
|
|
310
|
+
if (SUSPENDED_PLACEMENT.has(editor)) return null;
|
|
311
|
+
const index = builder.getIndex(root);
|
|
312
|
+
const schema = getEditorSchema(editor);
|
|
313
|
+
const [from, to] = RangeApi.edges(source).map((point) => index.positionAt(point));
|
|
314
|
+
const tokenHoldsContent = (at) => index.nodeRangesTouching(at, at + 1).some((entry) => entry.kind === "text" ? entry.contentFrom <= at && at < entry.contentTo : entry.from <= at && at < entry.to && schema.isVoid(index.node(entry.path)));
|
|
315
|
+
let low = from;
|
|
316
|
+
while (low > 0 && !tokenHoldsContent(low - 1)) low -= 1;
|
|
317
|
+
const keys = withEditorRootChildren(editor, root, () => index.nodeRangesTouching(Math.max(0, low - 1), Math.min(index.length, to + 1)).flatMap(({ path }) => getEditorRuntime(editor).getNodeKey(path) ?? []));
|
|
318
|
+
const kept = [];
|
|
319
|
+
for (const listener of getMovableAnchors(editor, keys)) {
|
|
320
|
+
const span = listener.root === root && listener.move?.span(index, builder.value);
|
|
321
|
+
if (!span) continue;
|
|
322
|
+
const first = Math.min(...span);
|
|
323
|
+
const last = Math.max(...span);
|
|
324
|
+
if (!coversContent(index, first, from, schema) && !coversContent(index, to, last, schema) && coversContent(index, Math.max(first, from), Math.min(last, to), schema)) kept.push([listener, span]);
|
|
325
|
+
}
|
|
326
|
+
if (kept.length === 0) return null;
|
|
327
|
+
const tokens = contentOf(editor, index, from, to);
|
|
328
|
+
const tokensBefore = (position) => {
|
|
329
|
+
let below = 0;
|
|
330
|
+
let above = tokens.length;
|
|
331
|
+
while (below < above) {
|
|
332
|
+
const middle = below + above >> 1;
|
|
333
|
+
if (tokens[middle][0] < position) below = middle + 1;
|
|
334
|
+
else above = middle;
|
|
335
|
+
}
|
|
336
|
+
return below;
|
|
337
|
+
};
|
|
338
|
+
return {
|
|
339
|
+
anchors: kept.map(([listener, span]) => [
|
|
340
|
+
listener,
|
|
341
|
+
tokensBefore(span[0]),
|
|
342
|
+
tokensBefore(span[1])
|
|
343
|
+
]),
|
|
344
|
+
from,
|
|
345
|
+
root,
|
|
346
|
+
struck: isEditorDraftView(editor),
|
|
347
|
+
to,
|
|
348
|
+
tokens
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
const runOf = (tokens, kind, last) => {
|
|
352
|
+
let count = 0;
|
|
353
|
+
while (tokens.at(last ? -1 - count : count)?.[1] === kind) count += 1;
|
|
354
|
+
return count;
|
|
355
|
+
};
|
|
356
|
+
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)));
|
|
357
|
+
const placeMovedAnchors = (editor, moved, track) => placeAnchorsOnCommit(editor, (context, place) => {
|
|
358
|
+
const spans = settleDraftTrack(track);
|
|
359
|
+
if (!spans?.length) return;
|
|
360
|
+
const after = context.afterRoot(moved.root);
|
|
361
|
+
const landFrom = spans[0].from;
|
|
362
|
+
const landTo = getDefined(spans.at(-1)).to;
|
|
363
|
+
const [from, to] = [moved.from, moved.to].map((position, end) => mapInternalDocumentChangePosition(context.change, moved.root, position, end ? -1 : 1));
|
|
364
|
+
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
|
+
const matchingMoved = (tokens) => {
|
|
366
|
+
const kept = trimWrapperBlocks(tokens, moved.tokens);
|
|
367
|
+
return kept.length === moved.tokens.length && kept.every(([, kind, letter], at) => kind === moved.tokens[at][1] && letter === moved.tokens[at][2]) ? kept : void 0;
|
|
368
|
+
};
|
|
369
|
+
const landed = matchingMoved(struckSource.some(([, kind]) => !kind.startsWith("block")) ? struckSource : contentOf(editor, after, landFrom, landTo));
|
|
370
|
+
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
|
+
const places = /* @__PURE__ */ new Map();
|
|
377
|
+
const endPlace = (count) => {
|
|
378
|
+
const known = places.get(count);
|
|
379
|
+
if (known) return known;
|
|
380
|
+
const before = landed[count - 1];
|
|
381
|
+
const next = landed[count];
|
|
382
|
+
const anchorPlace = {
|
|
383
|
+
backward: before ? [before[0] + 1, kindPastBlockEdges(count - 1, -1) === "void-close" ? 1 : -1] : [next[0], -1],
|
|
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;
|
|
388
|
+
};
|
|
389
|
+
for (const [listener, first, second] of moved.anchors) place(listener, endPlace(first), endPlace(second));
|
|
390
|
+
});
|
|
391
|
+
//#endregion
|
|
272
392
|
//#region src/core/transfer-guard.ts
|
|
273
393
|
const rootChildren = (value, root) => root === "main" ? value.children : value.roots?.[root] ?? [];
|
|
274
394
|
const childrenAt = (children, path) => {
|
|
@@ -1041,6 +1161,7 @@ const runTransfer = (editor, input, method) => {
|
|
|
1041
1161
|
else for (const [, path] of [...source.entries].reverse()) removeNodes(owner, { at: path });
|
|
1042
1162
|
});
|
|
1043
1163
|
};
|
|
1164
|
+
const collectMoved = () => copy || source.kind !== "text" || source.root !== targetRoot ? null : collectMovedAnchors(runtime, targetRoot, source.deleted ?? source.range);
|
|
1044
1165
|
const landedKind = (element) => {
|
|
1045
1166
|
const behavior = schema.getElementBehavior(element);
|
|
1046
1167
|
return behavior.void ? "void" : behavior.inline ? "inline" : "block";
|
|
@@ -1090,11 +1211,13 @@ const runTransfer = (editor, input, method) => {
|
|
|
1090
1211
|
});
|
|
1091
1212
|
const { builder: moving } = getDefined(getTransactionSnapshot(runtime));
|
|
1092
1213
|
const sources = moving.tracksPlaces && !copy && slice && source.kind === "text" && source.root === targetRoot ? payloadSourcesOf(moving.getIndex(targetRoot), source.deleted ?? source.range, slice, (element) => schema.getElementBehavior(element).inline) : null;
|
|
1214
|
+
const moved = collectMoved();
|
|
1093
1215
|
removeSource();
|
|
1094
1216
|
finalizeTransactionRepresentation(getEditorRuntimeOwner(editor));
|
|
1095
1217
|
const point = drop.resolve();
|
|
1096
1218
|
const pasted = point && slice && asMove("landing", () => landAsPaste(point, slice, sources)) || refuse("schema");
|
|
1097
1219
|
const track = getAppliedSpecLanding(pasted.spec) ?? refuse("schema");
|
|
1220
|
+
if (moved) placeMovedAnchors(runtime, moved, track);
|
|
1098
1221
|
const { builder } = getDefined(getTransactionSnapshot(runtime));
|
|
1099
1222
|
const [span] = readDraftTrack(track, builder.value) ?? [];
|
|
1100
1223
|
const index = builder.getIndex(targetRoot);
|
|
@@ -1120,6 +1243,7 @@ const runTransfer = (editor, input, method) => {
|
|
|
1120
1243
|
if (select) tx.selection.set(landed);
|
|
1121
1244
|
return true;
|
|
1122
1245
|
}
|
|
1246
|
+
const moved = collectMoved();
|
|
1123
1247
|
removeSource();
|
|
1124
1248
|
const target = tx.nodes.get(landing.edge.key);
|
|
1125
1249
|
if (!target || !slice) refuse("policy");
|
|
@@ -1131,6 +1255,7 @@ const runTransfer = (editor, input, method) => {
|
|
|
1131
1255
|
const nodes = SelectionApi.nodes(paths, { mode: "block" });
|
|
1132
1256
|
landed = nodes;
|
|
1133
1257
|
draft.current = trackNodes(paths);
|
|
1258
|
+
if (moved) placeMovedAnchors(runtime, moved, draft.current.track);
|
|
1134
1259
|
holdNodes(nodes);
|
|
1135
1260
|
if (select) tx.selection.set(nodes);
|
|
1136
1261
|
return true;
|
|
@@ -1383,4 +1508,4 @@ const defineStateField = (descriptor) => {
|
|
|
1383
1508
|
return field;
|
|
1384
1509
|
};
|
|
1385
1510
|
//#endregion
|
|
1386
|
-
export { transferEntries as a, transfer as i, checkFilesLanding as n,
|
|
1511
|
+
export { transferEntries as a, transfer as i, checkFilesLanding as n, suspendMovePlacement as o, checkTransfer as r, transferVeto as s, defineStateField as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p as projectRange } from "./create-editor-
|
|
1
|
+
import { Gf as RangeApi, hp as getDefined, ml as notifyObservers, pi as subscribeEditorViewState, uu as failInvariant, zc as readAuthoredView } from "./plugin-SR3HTH0j.js";
|
|
2
|
+
import { p as projectRange } from "./create-editor-CLQEkEZ1.js";
|
|
3
3
|
import { n as registerAnnotationStoreMetrics } from "./annotation-store-metrics-Ccjkef45.js";
|
|
4
|
-
import { n as createMappedViewStoreKernel, r as createViewSourceFaultBoundary, t as areMappedViewDataEqual } from "./mapped-view-store-
|
|
4
|
+
import { n as createMappedViewStoreKernel, r as createViewSourceFaultBoundary, t as areMappedViewDataEqual } from "./mapped-view-store-CbWqba_1.js";
|
|
5
5
|
//#region src/internal/view/stable-id-mapped-source.ts
|
|
6
6
|
const EMPTY_OUTPUTS = Object.freeze([]);
|
|
7
7
|
const createPersistentReadonlyRecord = (initial, onNodeCopy, onChildEntriesCopy) => {
|
|
@@ -514,7 +514,7 @@ const createPliteAnnotationStoreInternal = (editorInput, source, options, dorman
|
|
|
514
514
|
mappedResolveCount += 1;
|
|
515
515
|
const resolvedRange = annotation.anchor.resolve(editor);
|
|
516
516
|
const mappedRange = resolvedRange ? projectAnnotationRange(editor, resolvedRange) : null;
|
|
517
|
-
const range = mappedRange ? resolvedRange : null;
|
|
517
|
+
const range = resolvedRange && mappedRange && !(options.hideEmpty && editor.read.ranges.isEmpty(resolvedRange)) ? resolvedRange : null;
|
|
518
518
|
return {
|
|
519
519
|
entity: Object.freeze({
|
|
520
520
|
data: annotation.data,
|
|
@@ -555,6 +555,13 @@ const createPliteAnnotationStoreInternal = (editorInput, source, options, dorman
|
|
|
555
555
|
let subscriberCount = 0;
|
|
556
556
|
let lastSnapshot = dormant ? null : editor.read.runtime.snapshot();
|
|
557
557
|
let lastProjection = dormant ? void 0 : authoredPreview(editor);
|
|
558
|
+
let lastSchema = dormant ? void 0 : editor.read.schema.identity();
|
|
559
|
+
const markFresh = () => {
|
|
560
|
+
lastSnapshot = editor.read.runtime.snapshot();
|
|
561
|
+
lastProjection = authoredPreview(editor);
|
|
562
|
+
lastSchema = editor.read.schema.identity();
|
|
563
|
+
};
|
|
564
|
+
const schemaChanged = () => options.hideEmpty === true && editor.read.schema.identity() !== lastSchema;
|
|
558
565
|
const refreshCandidates = (candidateIds = null, forceAll = candidateIds === null, reason = "refresh") => {
|
|
559
566
|
const annotationsResult = faultBoundary.run("read", getAnnotations);
|
|
560
567
|
if (!annotationsResult.ok) return;
|
|
@@ -566,8 +573,7 @@ const createPliteAnnotationStoreInternal = (editorInput, source, options, dorman
|
|
|
566
573
|
} }));
|
|
567
574
|
if (!mappedResult.ok) return;
|
|
568
575
|
currentAnnotations = annotationsResult.value;
|
|
569
|
-
|
|
570
|
-
lastProjection = authoredPreview(editor);
|
|
576
|
+
markFresh();
|
|
571
577
|
const changedIds = mappedResult.value.changedEntityIds;
|
|
572
578
|
const changed = changedIds.length > 0 || mappedResult.value.orderChanged || mappedResult.value.affectedOutputKeys.length > 0;
|
|
573
579
|
const subscriberWakeCount = changed ? annotationsStore.subscriberCount() + changeListeners.size + annotationsStore.countKeySubscribers(changedIds) : 0;
|
|
@@ -592,19 +598,23 @@ const createPliteAnnotationStoreInternal = (editorInput, source, options, dorman
|
|
|
592
598
|
const ensureFresh = () => {
|
|
593
599
|
if (!activated || destroyed) return;
|
|
594
600
|
const snapshot = editor.read.runtime.snapshot();
|
|
595
|
-
if (snapshot.children !== lastSnapshot?.children || snapshot.index !== lastSnapshot?.index || authoredPreview(editor) !== lastProjection) refreshCandidates(null, true, "editor");
|
|
601
|
+
if (snapshot.children !== lastSnapshot?.children || snapshot.index !== lastSnapshot?.index || authoredPreview(editor) !== lastProjection || schemaChanged()) refreshCandidates(null, true, "editor");
|
|
596
602
|
};
|
|
597
603
|
const subscribeToEditor = () => {
|
|
598
604
|
const unsubscribeCommit = editor.subscribeCommit((change) => {
|
|
599
|
-
if (destroyed
|
|
605
|
+
if (destroyed) return;
|
|
606
|
+
if (schemaChanged()) {
|
|
607
|
+
refreshCandidates(null, true, "editor");
|
|
608
|
+
return;
|
|
609
|
+
}
|
|
610
|
+
if (!shouldRefreshForEditorChange(change)) return;
|
|
600
611
|
if (authoredPreview(editor) !== lastProjection) {
|
|
601
612
|
refreshCandidates(null, true, "editor");
|
|
602
613
|
return;
|
|
603
614
|
}
|
|
604
615
|
const candidateIds = change ? Array.from(/* @__PURE__ */ new Set([...mappedSource.getIdsForOutputKeys(change.changed.nodeKeysAll("decoration")), ...change.changed.hasAny("document") ? mappedSource.getIdsWithoutOutputs() : []])) : null;
|
|
605
616
|
if (candidateIds && candidateIds.length === 0) {
|
|
606
|
-
|
|
607
|
-
lastProjection = authoredPreview(editor);
|
|
617
|
+
markFresh();
|
|
608
618
|
return;
|
|
609
619
|
}
|
|
610
620
|
refreshCandidates(candidateIds, candidateIds === null, "editor");
|
|
@@ -650,7 +660,10 @@ const createPliteAnnotationStoreInternal = (editorInput, source, options, dorman
|
|
|
650
660
|
},
|
|
651
661
|
getAnnotationsAt: (nodeKey) => {
|
|
652
662
|
ensureFresh();
|
|
653
|
-
return Object.freeze(mappedSource.getIdsForOutputKeys([nodeKey]).flatMap((id) =>
|
|
663
|
+
return Object.freeze(mappedSource.getIdsForOutputKeys([nodeKey]).flatMap((id) => {
|
|
664
|
+
const annotation = annotationsStore.getSnapshot().byId.get(id);
|
|
665
|
+
return annotation?.range ? [annotation] : [];
|
|
666
|
+
}));
|
|
654
667
|
},
|
|
655
668
|
getSnapshot: () => {
|
|
656
669
|
ensureFresh();
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $f as
|
|
2
|
-
import { i as createHyperscript, o as createEditor } from "../index-
|
|
1
|
+
import { $f as getSnapshot, Ag as Location, Bi as setEditorFocused, Dh as Descendant, Eg as Range, Gf as getChildren, If as deleteBackward, Lg as Point, Nf as after, Of as Value, Pf as before, Qf as getSelection, Rf as deleteForward, Rp as replace, Tp as move, Zp as unhangRange, cp as insertText, dh as Selection, fp as isEditor, hh as TextSelection, ip as insertBreak, jc as Editor, jp as positions, nc as Element, qp as string, up as isBlock, vc as Text, wc as AnyEditor, wi as getLiveSelection } from "../index-BXjLmx1n.js";
|
|
2
|
+
import { i as createHyperscript, o as createEditor } from "../index-Dq3Jlj8O.js";
|
|
3
3
|
//#region src/testing/createDataTransfer.d.ts
|
|
4
4
|
declare const createDataTransfer: (dataMap?: Map<string, string>) => DataTransfer;
|
|
5
5
|
//#endregion
|
package/dist/testing/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Bt as point, Ft as move, J as deleteForward, Jt as replace, K as deleteBackward, St as isEditor, U as after, Vt as positions, W as before, bt as isBlock, ct as getSelection, lt as getSnapshot, mt as insertBreak,
|
|
2
|
-
import { a as createEditor$1 } from "../create-editor-
|
|
3
|
-
import { a as createText, i as createEditorFixture, n as createHyperscript, r as createEditor, t as jsx$1 } from "../hyperscript-
|
|
1
|
+
import { Bt as point, Ft as move, Gf as RangeApi, J as deleteForward, Jt as replace, K as deleteBackward, St as isEditor, U as after, Vt as positions, W as before, ar as getLiveSelection, bt as isBlock, ct as getSelection, lt as getSnapshot, mt as insertBreak, ni as setEditorFocused, rn as string, sn as unhangRange, tt as getChildren, vt as insertText } from "../plugin-SR3HTH0j.js";
|
|
2
|
+
import { a as createEditor$1 } from "../create-editor-CLQEkEZ1.js";
|
|
3
|
+
import { a as createText, i as createEditorFixture, n as createHyperscript, r as createEditor, t as jsx$1 } from "../hyperscript-CeT83ZLB.js";
|
|
4
4
|
import { t as BROWSER_HANDLE_KEY } from "../browser-protocol-pvt4HFF7.js";
|
|
5
5
|
//#region src/testing/createDataTransfer.ts
|
|
6
6
|
const createDataTransfer = (dataMap = /* @__PURE__ */ new Map()) => ({
|