plitejs 54.0.0-beta.4 → 54.0.0-beta.6
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 +1302 -490
- package/dist/{authored-veto-D_9wCJcK.js → authored-veto-BsBDXC0b.js} +1 -1
- package/dist/{comparison-plan-DY_vuGPq.js → comparison-plan-IOewH50q.js} +1 -1
- package/dist/{comparison-types-DdwE6mYq.d.ts → comparison-types-DBQFu7Rt.d.ts} +1 -1
- package/dist/{create-editor-CLQEkEZ1.js → create-editor-DRRzGwaC.js} +1 -1
- package/dist/diff/index.d.ts +2 -2
- package/dist/diff/index.js +2 -2
- package/dist/dom/index.d.ts +1 -1
- package/dist/dom/index.js +1 -1
- package/dist/{dom-CH2BXXj6.js → dom-CVYV5Qd5.js} +400 -100
- package/dist/{editor-owner-C9rVbMTs.js → editor-owner-CGj1wYCa.js} +1 -1
- package/dist/history/index.d.ts +1 -1
- package/dist/history/index.js +252 -178
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/hyperscript/index.js +1 -1
- package/dist/{hyperscript-CeT83ZLB.js → hyperscript-CT6hhnAY.js} +2 -2
- package/dist/{index-UrB4jAwl.d.ts → index-BT7D4vtf.d.ts} +5 -1
- package/dist/{index-BWPcE4ac.d.ts → index-BvQzYVAW.d.ts} +1 -1
- package/dist/{index-Db-ktCTE.d.ts → index-D7-n2GCk.d.ts} +6 -3
- package/dist/{index-BXjLmx1n.d.ts → index-DHt8nZQ6.d.ts} +143 -78
- package/dist/{index-Dq3Jlj8O.d.ts → index-PDROnF1G.d.ts} +1 -1
- package/dist/{index-DVMNewDn.d.ts → index-VZrKWWeh.d.ts} +20 -13
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.js +4 -4
- package/dist/{mapped-view-store-CbWqba_1.js → mapped-view-store-CBk2-bDR.js} +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/react.d.ts +2 -2
- package/dist/pagination/react.js +5 -5
- package/dist/{pagination-CBdYiOuR.js → pagination-Cs5ka6hW.js} +1 -1
- package/dist/{plugin-SR3HTH0j.js → plugin-Bm6nsPHh.js} +1984 -751
- package/dist/{range-geometry-CdltxcH6.js → range-geometry-D1XfYWs0.js} +2 -2
- package/dist/{range-geometry-Dwp2oyCc.d.ts → range-geometry-DO-kbNrb.d.ts} +1 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +6 -6
- package/dist/react/virtualized.d.ts +2 -2
- package/dist/react/virtualized.js +1 -1
- package/dist/{react-CN-iBh1z.js → react-BYtwRr4v.js} +18 -9
- package/dist/{retraction-BmPJB9cE.js → retraction-DnEUo8oE.js} +18 -2
- package/dist/{src-B-zm0kz4.js → src-DIQDddmh.js} +227 -40
- package/dist/{store-51r4zpCR.js → store-BLYxJgOU.js} +35 -5
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +3 -3
- package/dist/{use-editor-dom-scope-uDJQ692F.js → use-editor-dom-scope-hT7W9d-p.js} +1089 -606
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/dist/yjs/react/index.d.ts +3 -3
- package/dist/yjs/react/index.js +3 -3
- package/dist/{yjs-IGE0Al3n.js → yjs-C_g9gZwI.js} +6 -3
- package/package.json +1 -1
- package/dist/native-grouping-input-DXNhlPHd.js +0 -8
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import {
|
|
3
|
-
import { _ as screenReaderAnnouncementEffect, a as createEditor, n as compileEditorSchemaContract } from "./create-editor-
|
|
4
|
-
import { t as authoredVeto } from "./authored-veto-
|
|
1
|
+
import { $o as txSelection, A as definePluginSlot, Au as ElementApi, B as NodeApi, Bu as getEditorRuntimeOwner, D as property, Eu as definePluginPoint, Gu as defineCommand, Kl as diffEditorSchemaContracts, Mu as setDebugValueScrubber, O as schema, Oa as editorReads, Pu as TextApi, Qf as decodeEditorEffect, Qo as txOnly, Sp as PathApi, St as isEditor, Xo as locateAt, Zo as txLocate, _p as PointApi, au as readEditorSchemaContract, bl as nodeWriteVeto, c as defineEditorSchema, ct as getSelection, cu as restoreEditorSchemaContract, dp as invertEffect, ep as encodeEditorEffect, fp as mapEffect, gc as ContentSlice, gp as SpanApi, ho as createEditorView, hp as LocationApi, hu as EditorSchemaValidationError, k as target, kn as documentReplacement, ku as SelectionApi, l as definePlugin, lp as defineEffect, md as DocumentChange, mp as RangeApi, oi as setEditorReadOnly, pn as editorCommands, sp as valueCodecs, t as PluginPublicationError, ui as setEditorViewing, up as defineUpdateAnnotation } from "./plugin-Bm6nsPHh.js";
|
|
2
|
+
import { f as transferVeto, i as transfer, t as defineStateField } from "./src-DIQDddmh.js";
|
|
3
|
+
import { _ as screenReaderAnnouncementEffect, a as createEditor, n as compileEditorSchemaContract } from "./create-editor-DRRzGwaC.js";
|
|
4
|
+
import { t as authoredVeto } from "./authored-veto-BsBDXC0b.js";
|
|
5
5
|
export { ContentSlice, DocumentChange, EditorSchemaValidationError, ElementApi, LocationApi, NodeApi, PathApi, PluginPublicationError, PointApi, RangeApi, SelectionApi, SpanApi, TextApi, authoredVeto, compileEditorSchemaContract, createEditor, createEditorView, decodeEditorEffect, defineCommand, defineEditorSchema, defineEffect, definePlugin, definePluginPoint, definePluginSlot, defineStateField, defineUpdateAnnotation, diffEditorSchemaContracts, documentReplacement, editorCommands, editorReads, encodeEditorEffect, getEditorRuntimeOwner, invertEffect, isEditor, locateAt, mapEffect, nodeWriteVeto, property, readEditorSchemaContract, getSelection as readEditorSelection, restoreEditorSchemaContract, schema, screenReaderAnnouncementEffect, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, target, transfer, transferVeto, txLocate, txOnly, txSelection, valueCodecs };
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as EditorOwner, $i as getCaretOwner, $m as
|
|
2
|
-
export { type AnchorStateWork, type AnnotationStoreMetrics, type AnyEditor, type BaseEditor, type CompiledEditorSchema, type CompiledSchemaConstructionPlan, type CompiledSchemaContentProgram, type CompiledSchemaElement, type CompiledSchemaProperty, type CompiledSchemaPropertyMergeStrategy, type CompiledSchemaTargetContext, type CoreWork, type DocumentChangeRelocation, EDITOR_DOCUMENT_FIELDS, type EditorCommandContext, type EditorCommandEvaluation, type EditorCommandNativeProbe, type EditorDirectUpdate, type EditorDocumentShapeIssue, type EditorGenericMethod, type EditorNodeTypeProvider, type EditorOwner, type EditorRecordIssue, EditorRefusalError, EditorSchemaCompileError, type EditorSchemaContributionRecord, type EditorSchemaDiagnostic, type EditorSchemaPluginProvider, type EditorSchemaSourceProvider, type EditorStateViewProvider, type EditorUpdateTransactionOf, type EditorUpdateTransactionProvider, type EditorValueTypeProvider, type ElementPropertyWrite, type InternalCompiledPluginPublicationEntry, type InternalEditorRuntimeElementEntry, type InternalEditorSchemaApi, type InternalPluginPublicationEntry, type InternalSliceChildrenTarget, type InternalSlicePlacement, MAIN_ROOT_KEY, type NativeAuthoredDocumentCapability, type PluginDependencyContractReference, type PluginDependencyReferenceFor, type PluginFactoryTypeLambda, type PluginFactoryTypeProvider, type PluginFactoryTypeProviderOf, type PluginInstalledCapabilitiesOf, type PluginTypeLambda, type PluginTypeProviderOf, type PluginWitnessFor, type RecordSetVersion, type SchemaDescendantInValue, type SchemaElementInNode, type SchemaNodeTypeProvider, type SchemaTextInNode, type StructuralPlainTextDiagnostic, type StructuralPlainTextEncodeContext, type StructuralPlainTextEncoder, type StructuralPlainTextResult, type ViewPresentation, above, addMark, afterActiveTransactionEnds, applyBuiltDocumentChange, areEditorJsonValuesEqual, assertDetachedSelectionSupported, assertEditorDocumentContainers, assertEditorJsonValue, assertEditorOptions, assertPublicRootKey, assertSelectionSupported, attachTransactionSpecAfterCommit, brandPluginDescriptor, callPluginUpdateMethod, canPlaceBlocksAtPath, canonicalRecordJson, claimsHistoryReplay, cloneEditorJsonValue, collapse, compileEditorSchemaCapabilityEntries, compileEditorSchemaContractEntries, compileEditorSchemaContributions, compilePlugin, compilePluginInput, completePersistedDocumentFields, configureAuthoredView, containsCompleteEditorSchema, createAuthoredEditorView, createDetachedContentSlice, createDetachedEditorSchema, createDormantEditor, createEditorEffect, createEditorOwner, createEditorReadApi, createInternalRootChangeFromSections, decodeEditorSelection, decodeVersionedValue, deleteEditor as delete, deleteFragment, deselect, dispatchCommand, edges, elementReadOnly, encodeEditorSelection, encodeVersionedValue, evaluateCommand, exportContentSlice, failInvariant, first, fitSliceChildren, fitSlicePlacements, formatDebugValue, fragment, getActiveCommandEditor, getActiveEditorTransaction, getActiveEditorUpdateId, getActiveEditorUpdateTags, getAnnotationStoreMetrics, getAuthoredUpdateView, getCandidatePluginApi, getCaretOwner, getCarriedCaretEditor, getCollabEffectTypes, getCollabEffects, getCompiledEditorConfiguration, getCompiledEditorSchema, getCompiledEditorSchemaFromApi, getCompiledPropertyCandidates, getCompiledPropertyMergeStrategy, getCompiledSchemaPropertyId, getDocumentChangeRelocations, getDocumentValueNode, getEditorAuthoredDocumentCapability, getEditorCommitNode, getEditorCommitSnapshot, getEditorCommitValue, getCurrentMarks as getEditorCurrentMarks, getEditorDocumentShapeIssueMessage, getLiveNode as getEditorLiveNode, getLiveText as getEditorLiveText, getEditorMaxLength, getEditorNodeKeyForNode, getEditorRuntime, getEditorRuntimeElementEntries, getEditorRuntimeRoot, getEditorRuntimeRootKeys, getCurrentSelectionRoot as getEditorSelectionRoot, getEditorStateView, getEditorUpdateRoot, getExactDocumentChangeRelocation, getExactDocumentChangeRelocations, getFragment, getInstalledPlugin, getInstalledPluginApi, getInternalDocumentChangeClassification, getInternalDocumentChangeClassificationEntries, getInternalDocumentChangeRanges, getInternalDocumentChangeRootKeys, getPluginRegistry as getInternalPluginRegistry, getLastCommit, getNodeKey, getNodeKeyDOMValue, getPathByNodeKey, getPluginContributions, getPluginRegistry$1 as getPluginRegistry, getRangeRoot, getReaderRange, getRecordSetVersion, getSchemaElementSourceReference, getSelectionDOMRange, getSnapshotVersion, getStateFieldEffectTypes, getStateViewPresentation, getTextSearchScope, getValueRecords, getViewAuthor, getViewPresentation, hasBlocks, hasCommandHandler, hasEditorRuntime, hasInlines, hasInternalDocumentChangeRoot, hasPath, hasTexts, holdsCaret, inheritPluginRegistry, initializePluginEntries, initializePlugins, insertNode, insertNodes, insertSoftBreak, install, isAuthorId, isDocumentView, isEdge, isEditorPublishingCommit, isElementReadOnly, isEmpty, isEnd, isEnvelopeInput, isInline, isObject, isPlugin, isSelectable, isStart, isVoid, landNodePropertiesAt, last, leaf, levels, liftNodes, mapDetachedSelectionThroughChange, mapInternalDocumentChangePoint, mapInternalDocumentChangePosition, mapSemanticUpdateMethodArguments, markRootViewUsed, matchesCompiledSchemaTarget, mergeNodes, moveNodes, next, normalizeSetValues, notifyObservers, observeAnchorStateWork, onPresentationRelease, parent, path, placeElementAt, point, preserveCompiledSchemaPropertyIdentity, previous, probeCommandNativeEquivalent, projectEditorView, projectRange, projectRangeInSnapshot, queueAfterPluginAcquisition, range, read, readAuthoredView, readCaretViewIn, readCoreWork, readDocumentRange, readDocumentRecord, readEditorCommitHistoryEntry, readEditorDocument, readEditorOptions, readElementById, readElementPropertyWrites, readPersistedEnvelope, readRecord, readRootEntries, readRootViewUse, readShownDocument, readShownPreview, readShownRecords, readShownViewUse, readStoredEditorDocument, readViewPage, readingCovered, recordSetChanges, recordSetIds, registerEditorTransactionGuard, rejectEditorRecord, releaseEditor, removeMark, removeNodes, repairEditorValue, replaceChildren, reportEditorLifecycleError, reset, resolveCompiledSchemaProperty, resolveInstalledPlugin, resolvePluginMethod, retainViewPresentation, runEditorObserver, runTrustedUpdate, sameResult, scheduleAfterCommitNotification, select, serializeStructuralPlainText, setChildren as setEditorChildren, setEditorComposing, setCurrentMarks as setEditorMarks, setEditorMaxLength, setEditorRuntime, setCurrentSelection as setEditorSelection, setEditorSnapshotInputTransform, setEditorStateViewTransform, setTargetRuntime as setEditorTargetRuntime, setEditorTransactionViewTransform, setNodes, setPluginPortalFactory, setPoint, setSelection, setSelectionAsView, shouldMergeNodesRemovePrevNode, snapshotEditorJsonValue, splitNodes, startEditor, startOwnedEditor, subscribeCaretTarget, subscribeEditorViewState, subscribeShownViewUse, subscribeSource, toInternalRoot, toPublicRoot, toggleBlock, toggleMark, tracksPlaces, txStored, unsetNodes, unwrapNodes, update, vetoesWrite, voidEditor as void, withCompiledEditorSchemaCapabilityEntries, withDocumentViewRead, withEditorDocumentProjection, withEditorUpdateRootScope, withMountedPresentation, withPluginPortalCandidates, withStoredAuthoredRead, withTransactionSpecDraftRead, wrapNodes };
|
|
1
|
+
import { $ as EditorOwner, $i as getCaretOwner, $m as hasInternalDocumentChangeRoot, $p as unsetNodes, $r as hasEditorRuntime, $s as SchemaElementInNode, A as readDocumentRecord, Aa as CompiledSchemaProperty, Ai as readElementById, Ap as path, Ar as getInstalledPlugin, At as readCaretViewIn, B as StructuralPlainTextEncoder, Bc as EditorCommandContext, Bf as deleteFragment, Bp as replaceChildren, Br as reportEditorLifecycleError, C as withStoredAuthoredRead, Ca as getPluginContributions, Cp as levels, Cr as compilePlugin, Ct as mapDetachedSelectionThroughChange, Cu as EditorStateViewProvider, D as assertEditorDocumentContainers, Da as CompiledSchemaConstructionPlan, Dg as restoreAnchor, Di as getStateFieldEffectTypes, Dp as moveNodes, Dt as sameResult, E as EditorRecordIssue, Ea as CompiledEditorSchema, Ec as BaseEditor, Eg as getAnchorRuntimeId, Ei as getSnapshotVersion, Et as getTextSearchScope, F as mapSemanticUpdateMethodArguments, Fi as scheduleAfterCommitNotification, Fp as range, Fr as resolveInstalledPlugin, Ft as readCoreWork, G as resolvePluginMethod, Gd as PluginFactoryTypeProvider, Gf as fragment, Gi as setEditorTransactionViewTransform, Gm as txStored, Gp as setSelection, H as serializeStructuralPlainText, Ha as EditorSchemaContributionRecord, Hf as edges, Hp as select, Ht as readEditorOptions, I as EditorRefusalError, If as collapse, Ii as setChildren, Ip as read, Ir as setPluginPortalFactory, It as AnchorStateWork, J as toInternalRoot, Ja as getCompiledSchemaPropertyId, Jd as PluginInstalledCapabilitiesOf, Jf as getFragment, Ji as subscribeEditorViewState, Jm as createInternalRootChangeFromSections, Jr as InternalCompiledPluginPublicationEntry, Jt as areEditorJsonValuesEqual, K as createEditorReadApi, Ka as getCompiledPropertyCandidates, Kd as PluginFactoryTypeProviderOf, Kp as shouldMergeNodesRemovePrevNode, L as projectRangeInSnapshot, Li as setCurrentMarks, Lp as removeMark, Lr as startEditor, Lt as observeAnchorStateWork, M as readPersistedEnvelope, Ma as CompiledSchemaTargetContext, Mf as above, Mi as registerEditorTransactionGuard, Mr as isPlugin, Mt as readShownViewUse, N as readStoredEditorDocument, Na as EditorSchemaCompileError, Nf as addMark, Ni as repairEditorValue, Np as previous, Nr as queueAfterPluginAcquisition, Nt as subscribeShownViewUse, O as getEditorDocumentShapeIssueMessage, Oa as CompiledSchemaContentProgram, Oi as isEditorPublishingCommit, Op as next, Or as getCandidatePluginApi, Ot as readRootEntries, P as rejectEditorRecord, Pi as runTrustedUpdate, Pl as EditorNodeTypeProvider, Pp as projectRange, Pr as releaseEditor, Pt as CoreWork, Q as getReaderRange, Qa as resolveCompiledSchemaProperty, Qf as getPluginRegistry$1, Qi as setTargetRuntime, Qm as getInternalDocumentChangeRootKeys, Qr as getEditorRuntimeRoot, Qs as SchemaDescendantInValue, Qt as decodeVersionedValue, R as StructuralPlainTextDiagnostic, Rf as deleteEditor, Ri as setCurrentSelection, Rp as removeNodes, Rr as withPluginPortalCandidates, Rt as readingCovered, S as readShownPreview, Sa as getCompiledEditorSchema, Si as getLiveNode, Sp as leaf, Sr as brandPluginDescriptor, St as getSelectionDOMRange, T as EditorDocumentShapeIssue, Ta as inheritPluginRegistry, Tc as AnyEditor, Ti as getMutationVersion, Tp as mergeNodes, Tr as containsCompleteEditorSchema, Tt as getAnnotationStoreMetrics, U as exportContentSlice, Ua as EditorSchemaDiagnostic, Ud as PluginDependencyReferenceFor, Uf as elementReadOnly, Ui as setEditorSnapshotInputTransform, Up as setNodes, Ut as createEditorEffect, V as StructuralPlainTextResult, Vd as PluginDependencyContractReference, Vf as deselect, Vi as setEditorMaxLength, Vp as reset, Vr as runEditorObserver, Vt as assertEditorOptions, W as callPluginUpdateMethod, Wa as compileEditorSchemaContributions, Wd as PluginFactoryTypeLambda, Wf as first, Wi as setEditorStateViewTransform, Wp as setPoint, Wr as getSchemaElementSourceReference, X as MAIN_ROOT_KEY, Xa as preserveCompiledSchemaPropertyIdentity, Xf as getNodeKey, Xi as withEditorUpdateRootScope, Xm as getInternalDocumentChangeClassificationEntries, Xp as toggleBlock, Xr as getEditorRuntime, Xt as cloneEditorJsonValue, Y as toPublicRoot, Ya as matchesCompiledSchemaTarget, Yf as getLastCommit, Yi as withEditorDocumentProjection, Ym as getInternalDocumentChangeClassification, Yp as subscribeSource, Yr as InternalPluginPublicationEntry, Ys as EditorSchemaPluginProvider, Yt as assertEditorJsonValue, Z as getRangeRoot, Zf as getPathByNodeKey, Zi as withTransactionSpecDraftRead, Zm as getInternalDocumentChangeRanges, Zp as toggleMark, Zs as EditorSchemaSourceProvider, _ as isDocumentView, _a as getCompiledEditorSchemaFromApi, _g as recordSetChanges, _i as getEditorNodeKeyForNode, _p as isInline, _r as evaluateCommand, _t as completePersistedDocumentFields, a as compileEditorSchemaContractEntries, aa as InternalEditorRuntimeElementEntry, af as PluginTypeLambda, ah as getNodeKeyDOMValue, ai as applyBuiltDocumentChange, al as EditorDirectUpdate, at as getViewAuthor, b as getAuthoredUpdateView, bi as getEditorStateView, bp as isVoid, br as probeCommandNativeEquivalent, bt as decodeEditorSelection, c as getEditorAuthoredDocumentCapability, ci as fitSliceChildren, cp as insertSoftBreak, ct as readShownDocument, d as withCompiledEditorSchemaCapabilityEntries, da as getEditorCommitNode, dd as EditorUpdateTransactionProvider, df as PluginWitnessFor, di as getActiveEditorUpdateId, dt as retainViewPresentation, ea as holdsCaret, ec as SchemaNodeTypeProvider, eh as mapInternalDocumentChangePoint, ei as setEditorRuntime, em as unwrapNodes, en as encodeVersionedValue, eo as tracksPlaces, et as createEditorOwner, f as readDocumentRange, fa as getEditorCommitSnapshot, fg as RecordSetVersion, fi as getActiveEditorUpdateTags, fp as isEdge, ft as withMountedPresentation, ga as createDetachedEditorSchema, gg as readRecord, gi as getEditorMaxLength, gp as isEnd, gr as dispatchCommand, gt as getExactDocumentChangeRelocations, h as formatDebugValue, ha as canPlaceBlocksAtPath, hd as EditorValueTypeProvider, hg as getValueRecords, hi as getCurrentSelectionRoot, hp as isEmpty, hr as EditorCommandNativeProbe, ht as getExactDocumentChangeRelocation, ia as onPresentationRelease, ii as afterActiveTransactionEnds, ip as hasTexts, it as getCarriedCaretEditor, j as readEditorDocument, ja as CompiledSchemaPropertyMergeStrategy, ji as readElementPropertyWrites, jp as point, jr as getInstalledPluginApi, jt as readRootViewUse, k as isEnvelopeInput, ka as CompiledSchemaElement, ki as readEditorCommitHistoryEntry, kp as parent, kr as getCompiledEditorConfiguration, kt as markRootViewUsed, l as initializePluginEntries, la as claimsHistoryReplay, li as fitSlicePlacements, ln as createDetachedContentSlice, lt as readShownRecords, ma as InternalEditorSchemaApi, mg as getRecordSetVersion, mi as getCurrentMarks, mn as isAuthorId, mp as isElementReadOnly, mr as EditorCommandEvaluation, mt as getDocumentChangeRelocations, na as ViewPresentation, nh as normalizeSetValues, ni as InternalSliceChildrenTarget, nm as voidEditor, np as hasInlines, nt as createAuthoredEditorView, o as createDormantEditor, oi as attachTransactionSpecAfterCommit, op as insertNode, ot as getViewPresentation, p as isObject, pa as getEditorCommitValue, pg as canonicalRecordJson, pi as getCollabEffectTypes, pn as NativeAuthoredDocumentCapability, pt as DocumentChangeRelocation, q as assertPublicRootKey, qa as getCompiledPropertyMergeStrategy, qf as getCollabEffects, qi as subscribeCaretTarget, qp as splitNodes, r as compileEditorSchemaCapabilityEntries, ra as getStateViewPresentation, ri as InternalSlicePlacement, rm as wrapNodes, rp as hasPath, sf as PluginTypeProviderOf, sp as insertNodes, st as projectEditorView, ta as setSelectionAsView, tc as SchemaTextInNode, th as mapInternalDocumentChangePosition, ti as ElementPropertyWrite, tm as update, tn as snapshotEditorJsonValue, tp as hasBlocks, tt as startOwnedEditor, u as initializePlugins, ua as getDocumentValueNode, ud as EditorUpdateTransactionOf, ui as getActiveEditorTransaction, up as install, ut as readViewPage, v as withDocumentViewRead, va as landNodePropertiesAt, vg as recordSetIds, vi as getEditorRuntimeElementEntries, vn as vetoesWrite, vp as isSelectable, vr as getActiveCommandEditor, vt as assertDetachedSelectionSupported, w as EDITOR_DOCUMENT_FIELDS, wa as getPluginRegistry, wi as getLiveText, wp as liftNodes, wr as compilePluginInput, wt as AnnotationStoreMetrics, x as readAuthoredView, xi as getEditorUpdateRoot, xp as last, xt as encodeEditorSelection, y as configureAuthoredView, ya as placeElementAt, yi as getEditorRuntimeRootKeys, yl as EditorGenericMethod, yp as isStart, yr as hasCommandHandler, yt as assertSelectionSupported, z as StructuralPlainTextEncodeContext, zi as setEditorComposing, zr as notifyObservers, zt as failInvariant } from "../index-DHt8nZQ6.js";
|
|
2
|
+
export { type AnchorStateWork, type AnnotationStoreMetrics, type AnyEditor, type BaseEditor, type CompiledEditorSchema, type CompiledSchemaConstructionPlan, type CompiledSchemaContentProgram, type CompiledSchemaElement, type CompiledSchemaProperty, type CompiledSchemaPropertyMergeStrategy, type CompiledSchemaTargetContext, type CoreWork, type DocumentChangeRelocation, EDITOR_DOCUMENT_FIELDS, type EditorCommandContext, type EditorCommandEvaluation, type EditorCommandNativeProbe, type EditorDirectUpdate, type EditorDocumentShapeIssue, type EditorGenericMethod, type EditorNodeTypeProvider, type EditorOwner, type EditorRecordIssue, EditorRefusalError, EditorSchemaCompileError, type EditorSchemaContributionRecord, type EditorSchemaDiagnostic, type EditorSchemaPluginProvider, type EditorSchemaSourceProvider, type EditorStateViewProvider, type EditorUpdateTransactionOf, type EditorUpdateTransactionProvider, type EditorValueTypeProvider, type ElementPropertyWrite, type InternalCompiledPluginPublicationEntry, type InternalEditorRuntimeElementEntry, type InternalEditorSchemaApi, type InternalPluginPublicationEntry, type InternalSliceChildrenTarget, type InternalSlicePlacement, MAIN_ROOT_KEY, type NativeAuthoredDocumentCapability, type PluginDependencyContractReference, type PluginDependencyReferenceFor, type PluginFactoryTypeLambda, type PluginFactoryTypeProvider, type PluginFactoryTypeProviderOf, type PluginInstalledCapabilitiesOf, type PluginTypeLambda, type PluginTypeProviderOf, type PluginWitnessFor, type RecordSetVersion, type SchemaDescendantInValue, type SchemaElementInNode, type SchemaNodeTypeProvider, type SchemaTextInNode, type StructuralPlainTextDiagnostic, type StructuralPlainTextEncodeContext, type StructuralPlainTextEncoder, type StructuralPlainTextResult, type ViewPresentation, above, addMark, afterActiveTransactionEnds, applyBuiltDocumentChange, areEditorJsonValuesEqual, assertDetachedSelectionSupported, assertEditorDocumentContainers, assertEditorJsonValue, assertEditorOptions, assertPublicRootKey, assertSelectionSupported, attachTransactionSpecAfterCommit, brandPluginDescriptor, callPluginUpdateMethod, canPlaceBlocksAtPath, canonicalRecordJson, claimsHistoryReplay, cloneEditorJsonValue, collapse, compileEditorSchemaCapabilityEntries, compileEditorSchemaContractEntries, compileEditorSchemaContributions, compilePlugin, compilePluginInput, completePersistedDocumentFields, configureAuthoredView, containsCompleteEditorSchema, createAuthoredEditorView, createDetachedContentSlice, createDetachedEditorSchema, createDormantEditor, createEditorEffect, createEditorOwner, createEditorReadApi, createInternalRootChangeFromSections, decodeEditorSelection, decodeVersionedValue, deleteEditor as delete, deleteFragment, deselect, dispatchCommand, edges, elementReadOnly, encodeEditorSelection, encodeVersionedValue, evaluateCommand, exportContentSlice, failInvariant, first, fitSliceChildren, fitSlicePlacements, formatDebugValue, fragment, getActiveCommandEditor, getActiveEditorTransaction, getActiveEditorUpdateId, getActiveEditorUpdateTags, getAnchorRuntimeId, getAnnotationStoreMetrics, getAuthoredUpdateView, getCandidatePluginApi, getCaretOwner, getCarriedCaretEditor, getCollabEffectTypes, getCollabEffects, getCompiledEditorConfiguration, getCompiledEditorSchema, getCompiledEditorSchemaFromApi, getCompiledPropertyCandidates, getCompiledPropertyMergeStrategy, getCompiledSchemaPropertyId, getDocumentChangeRelocations, getDocumentValueNode, getEditorAuthoredDocumentCapability, getEditorCommitNode, getEditorCommitSnapshot, getEditorCommitValue, getCurrentMarks as getEditorCurrentMarks, getEditorDocumentShapeIssueMessage, getLiveNode as getEditorLiveNode, getLiveText as getEditorLiveText, getEditorMaxLength, getEditorNodeKeyForNode, getEditorRuntime, getEditorRuntimeElementEntries, getEditorRuntimeRoot, getEditorRuntimeRootKeys, getCurrentSelectionRoot as getEditorSelectionRoot, getEditorStateView, getEditorUpdateRoot, getExactDocumentChangeRelocation, getExactDocumentChangeRelocations, getFragment, getInstalledPlugin, getInstalledPluginApi, getInternalDocumentChangeClassification, getInternalDocumentChangeClassificationEntries, getInternalDocumentChangeRanges, getInternalDocumentChangeRootKeys, getPluginRegistry as getInternalPluginRegistry, getLastCommit, getMutationVersion, getNodeKey, getNodeKeyDOMValue, getPathByNodeKey, getPluginContributions, getPluginRegistry$1 as getPluginRegistry, getRangeRoot, getReaderRange, getRecordSetVersion, getSchemaElementSourceReference, getSelectionDOMRange, getSnapshotVersion, getStateFieldEffectTypes, getStateViewPresentation, getTextSearchScope, getValueRecords, getViewAuthor, getViewPresentation, hasBlocks, hasCommandHandler, hasEditorRuntime, hasInlines, hasInternalDocumentChangeRoot, hasPath, hasTexts, holdsCaret, inheritPluginRegistry, initializePluginEntries, initializePlugins, insertNode, insertNodes, insertSoftBreak, install, isAuthorId, isDocumentView, isEdge, isEditorPublishingCommit, isElementReadOnly, isEmpty, isEnd, isEnvelopeInput, isInline, isObject, isPlugin, isSelectable, isStart, isVoid, landNodePropertiesAt, last, leaf, levels, liftNodes, mapDetachedSelectionThroughChange, mapInternalDocumentChangePoint, mapInternalDocumentChangePosition, mapSemanticUpdateMethodArguments, markRootViewUsed, matchesCompiledSchemaTarget, mergeNodes, moveNodes, next, normalizeSetValues, notifyObservers, observeAnchorStateWork, onPresentationRelease, parent, path, placeElementAt, point, preserveCompiledSchemaPropertyIdentity, previous, probeCommandNativeEquivalent, projectEditorView, projectRange, projectRangeInSnapshot, queueAfterPluginAcquisition, range, read, readAuthoredView, readCaretViewIn, readCoreWork, readDocumentRange, readDocumentRecord, readEditorCommitHistoryEntry, readEditorDocument, readEditorOptions, readElementById, readElementPropertyWrites, readPersistedEnvelope, readRecord, readRootEntries, readRootViewUse, readShownDocument, readShownPreview, readShownRecords, readShownViewUse, readStoredEditorDocument, readViewPage, readingCovered, recordSetChanges, recordSetIds, registerEditorTransactionGuard, rejectEditorRecord, releaseEditor, removeMark, removeNodes, repairEditorValue, replaceChildren, reportEditorLifecycleError, reset, resolveCompiledSchemaProperty, resolveInstalledPlugin, resolvePluginMethod, restoreAnchor, retainViewPresentation, runEditorObserver, runTrustedUpdate, sameResult, scheduleAfterCommitNotification, select, serializeStructuralPlainText, setChildren as setEditorChildren, setEditorComposing, setCurrentMarks as setEditorMarks, setEditorMaxLength, setEditorRuntime, setCurrentSelection as setEditorSelection, setEditorSnapshotInputTransform, setEditorStateViewTransform, setTargetRuntime as setEditorTargetRuntime, setEditorTransactionViewTransform, setNodes, setPluginPortalFactory, setPoint, setSelection, setSelectionAsView, shouldMergeNodesRemovePrevNode, snapshotEditorJsonValue, splitNodes, startEditor, startOwnedEditor, subscribeCaretTarget, subscribeEditorViewState, subscribeShownViewUse, subscribeSource, toInternalRoot, toPublicRoot, toggleBlock, toggleMark, tracksPlaces, txStored, unsetNodes, unwrapNodes, update, vetoesWrite, voidEditor as void, withCompiledEditorSchemaCapabilityEntries, withDocumentViewRead, withEditorDocumentProjection, withEditorUpdateRootScope, withMountedPresentation, withPluginPortalCandidates, withStoredAuthoredRead, withTransactionSpecDraftRead, wrapNodes };
|
package/dist/internal/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as first, $
|
|
2
|
-
import { c as initializePlugins, d as assertEditorOptions, f as readEditorOptions, i as createDormantEditor, l as withCompiledEditorSchemaCapabilityEntries, m as projectRangeInSnapshot, o as getEditorAuthoredDocumentCapability, r as compileEditorSchemaContractEntries, s as initializePluginEntries, t as compileEditorSchemaCapabilityEntries } from "../create-editor-
|
|
3
|
-
import { n as startOwnedEditor, r as sameResult, t as createEditorOwner } from "../editor-owner-
|
|
1
|
+
import { $ as first, $c as observeAnchorStateWork, $f as decodeVersionedValue, $n as getEditorRuntimeElementEntries, $r as setChildren, $t as setPoint, Ai as resolveStateFieldInitial, Ao as projectEditorView, Ar as isEditorPublishingCommit, As as assertSelectionSupported, At as last, Au as ElementApi, Br as readElementById, Bt as point, C as setPluginPortalFactory, Ci as withEditorDocumentProjection, Co as getViewAuthor, Cp as isObject, Cs as placeElementAt, Ct as isElementReadOnly, Cu as readStoredEditorDocument, Dd as getInternalDocumentChangeRanges, Di as withTransactionSpecDraftRead, Dl as notifyObservers, Dt as isSelectable, E as getSchemaElementSourceReference, Ei as withEditorUpdateRootScope, En as attachTransactionSpecAfterCommit, Et as isInline, F as getActiveCommandEditor, Fd as mapInternalDocumentChangePosition, Ff as getRecordSetVersion, Fn as getActiveEditorUpdateId, Fs as mapDetachedSelectionThroughChange, G as collapse, Gf as recordSetIds, Gi as readRootViewUse, Gn as getCurrentSelectionRoot, Gr as registerEditorTransactionGuard, Gt as read, H as addMark, Hl as EditorSchemaCompileError, Ht as previous, I as hasCommandHandler, Ic as getDocumentChangeRelocations, Il as getPluginContributions, In as getActiveEditorUpdateTags, Io as withMountedPresentation, It as moveNodes, Jl as getCompiledPropertyMergeStrategy, Ka as getCaretOwner, Kf as showValueRecords, Ki as readShownViewUse, Ko as mapSemanticUpdateMethodArguments, Kr as repairEditorValue, Kt as removeMark, L as probeCommandNativeEquivalent, Lc as getExactDocumentChangeRelocation, Li as markRootViewUsed, Ll as getPluginRegistry, Lr as readEditorCommitHistoryEntry, Lt as next, M as dispatchCommand, Md as isDocumentRootKey, Mn as fitSlicePlacements, Mo as readShownRecords, Mp as readCoreWork, Ms as encodeEditorSelection, Mt as levels, N as evaluateCommand, No as readViewPage, Ns as getSelectionDOMRange, Nt as liftNodes, Nu as getTextSearchScope, Oc as getEditorCommitSnapshot, Ol as reportEditorLifecycleError, Ot as isStart, Pc as readRootEntries, Pd as mapInternalDocumentChangePoint, Pl as getCompiledEditorSchema, Pn as getActiveEditorTransaction, Po as retainViewPresentation, Pt as mergeNodes, Pu as TextApi, Q as elementReadOnly, Qs as readingCovered, Qt as setNodes, Rc as getExactDocumentChangeRelocations, Rf as getValueRecords, Rl as inheritPluginRegistry, Ro as getStateViewPresentation, Rt as parent, S as resolveInstalledPlugin, Sl as EditorRefusalError, Ss as landNodePropertiesAt, Su as readPersistedEnvelope, T as withPluginPortalCandidates, Ta as exportContentSlice, Tc as getEditorCommitNode, Td as getInternalDocumentChangeClassificationEntries, Tf as getNodeKeyDOMValue, To as getViewPresentation, Tt as isEnd, Tu as failInvariant, Uc as getAnchorRuntimeId, Un as getCurrentMarks, Ut as projectRange, Uu as hasEditorRuntime, V as above, Vc as isAuthorId, Vf as readRecord, Vn as getCollabEffectTypes, Vr as readElementPropertyWrites, Vu as getEditorRuntimeRoot, Wc as restoreAnchor, Wf as recordSetChanges, Wl as compileEditorSchemaContributions, Wo as createEditorReadApi, Wt as range, Wu as setEditorRuntime, X as deselect, Xf as assertEditorJsonValue, Xi as subscribeShownViewUse, Xn as getEditorNodeKeyForNode, Xt as reset, Y as deleteFragment, Ya as holdsCaret, Yf as areEditorJsonValuesEqual, Yl as getCompiledSchemaPropertyId, Yn as getEditorMaxLength, Yo as resolvePluginMethod, Yr as runTrustedUpdate, Yt as replaceChildren, Z as edges, Zf as cloneEditorJsonValue, Zr as scheduleAfterCommitNotification, Zt as select, _c as createDetachedContentSlice, _l as isDocumentView, _n as afterActiveTransactionEnds, _s as getCompiledEditorSchemaFromApi, _t as insertSoftBreak, _u as assertEditorDocumentContainers, a as compilePluginInput, ai as setEditorMaxLength, an as toggleBlock, at as getNodeKey, b as queueAfterPluginAcquisition, bc as getDocumentValueNode, bp as getRangeRoot, bu as readDocumentRecord, ci as setEditorStateViewTransform, cn as unsetNodes, co as setSelectionAsView, cp as createEditorEffect, dl as withStoredAuthoredRead, dn as voidEditor, dt as hasInlines, ei as setCurrentMarks, en as setSelection, er as getEditorRuntimeRootKeys, es as txStored, et as fragment, f as getCandidatePluginApi, fl as assertPublicRootKey, fn as wrapNodes, fs as canPlaceBlocksAtPath, ft as hasPath, fu as tracksPlaces, g as isPlugin, gr as getStateFieldEffectTypes, gt as insertNodes, gu as EDITOR_DOCUMENT_FIELDS, h as getInstalledPluginApi, hi as subscribeEditorViewState, hl as toPublicRoot, hr as getSnapshotVersion, ht as insertNode, i as compilePlugin, il as getAuthoredUpdateView, in as subscribeSource, ip as snapshotEditorJsonValue, ir as getLiveNode, it as getLastCommit, jc as getEditorCommitValue, jd as hasInternalDocumentChangeRoot, jn as fitSliceChildren, jo as readShownDocument, js as decodeEditorSelection, jt as leaf, ju as formatDebugValue, kd as getInternalDocumentChangeRootKeys, kf as canonicalRecordJson, ki as setTargetRuntime, kl as runEditorObserver, ks as assertDetachedSelectionSupported, kt as isVoid, li as setEditorTransactionViewTransform, ln as unwrapNodes, m as getInstalledPlugin, mi as subscribeCaretTarget, ml as toInternalRoot, mo as createAuthoredEditorView, mp as RangeApi, ms as createDetachedEditorSchema, n as brandPluginDescriptor, ni as setEditorComposing, nn as splitNodes, nr as getEditorUpdateRoot, nt as getCollabEffects, nu as matchesCompiledSchemaTarget, o as containsCompleteEditorSchema, ol as readAuthoredView, on as toggleMark, or as getLiveText, ot as getPathByNodeKey, p as getCompiledEditorConfiguration, pt as hasTexts, q as deleteEditor, ql as getCompiledPropertyCandidates, qo as callPluginUpdateMethod, qt as removeNodes, rl as configureAuthoredView, rt as getFragment, ru as preserveCompiledSchemaPropertyIdentity, si as setEditorSnapshotInputTransform, sl as readShownPreview, sr as getMutationVersion, st as getPluginRegistry$1, su as resolveCompiledSchemaProperty, ti as setCurrentSelection, tn as shouldMergeNodesRemovePrevNode, tp as encodeVersionedValue, tr as getEditorStateView, uf as normalizeSetValues, un as update, ut as hasBlocks, vc as claimsHistoryReplay, vp as MAIN_ROOT_KEY, vu as getEditorDocumentShapeIssueMessage, w as startEditor, wd as getInternalDocumentChangeClassification, wt as isEmpty, wu as rejectEditorRecord, x as releaseEditor, xl as vetoesWrite, xp as getReaderRange, xt as isEdge, xu as readEditorDocument, yd as createInternalRootChangeFromSections, yl as withDocumentViewRead, yn as applyBuiltDocumentChange, yo as getCarriedCaretEditor, yt as install, yu as isEnvelopeInput, zi as readCaretViewIn, zo as onPresentationRelease, zt as path, zu as getEditorRuntime } from "../plugin-Bm6nsPHh.js";
|
|
2
|
+
import { c as initializePlugins, d as assertEditorOptions, f as readEditorOptions, i as createDormantEditor, l as withCompiledEditorSchemaCapabilityEntries, m as projectRangeInSnapshot, o as getEditorAuthoredDocumentCapability, r as compileEditorSchemaContractEntries, s as initializePluginEntries, t as compileEditorSchemaCapabilityEntries } from "../create-editor-DRRzGwaC.js";
|
|
3
|
+
import { n as startOwnedEditor, r as sameResult, t as createEditorOwner } from "../editor-owner-CGj1wYCa.js";
|
|
4
4
|
import { t as getAnnotationStoreMetrics } from "../annotation-store-metrics-Ccjkef45.js";
|
|
5
5
|
//#region src/core/persisted-document.ts
|
|
6
6
|
/** Decode, complete and eagerly encode all installed persistent fields. @internal */
|
|
@@ -153,4 +153,4 @@ const readDocumentRange = (value, source) => {
|
|
|
153
153
|
};
|
|
154
154
|
};
|
|
155
155
|
//#endregion
|
|
156
|
-
export { EDITOR_DOCUMENT_FIELDS, EditorRefusalError, EditorSchemaCompileError, MAIN_ROOT_KEY, above, addMark, afterActiveTransactionEnds, applyBuiltDocumentChange, areEditorJsonValuesEqual, assertDetachedSelectionSupported, assertEditorDocumentContainers, assertEditorJsonValue, assertEditorOptions, assertPublicRootKey, assertSelectionSupported, attachTransactionSpecAfterCommit, brandPluginDescriptor, callPluginUpdateMethod, canPlaceBlocksAtPath, canonicalRecordJson, claimsHistoryReplay, cloneEditorJsonValue, collapse, compileEditorSchemaCapabilityEntries, compileEditorSchemaContractEntries, compileEditorSchemaContributions, compilePlugin, compilePluginInput, completePersistedDocumentFields, configureAuthoredView, containsCompleteEditorSchema, createAuthoredEditorView, createDetachedContentSlice, createDetachedEditorSchema, createDormantEditor, createEditorEffect, createEditorOwner, createEditorReadApi, createInternalRootChangeFromSections, decodeEditorSelection, decodeVersionedValue, deleteEditor as delete, deleteFragment, deselect, dispatchCommand, edges, elementReadOnly, encodeEditorSelection, encodeVersionedValue, evaluateCommand, exportContentSlice, failInvariant, first, fitSliceChildren, fitSlicePlacements, formatDebugValue, fragment, getActiveCommandEditor, getActiveEditorTransaction, getActiveEditorUpdateId, getActiveEditorUpdateTags, getAnnotationStoreMetrics, getAuthoredUpdateView, getCandidatePluginApi, getCaretOwner, getCarriedCaretEditor, getCollabEffectTypes, getCollabEffects, getCompiledEditorConfiguration, getCompiledEditorSchema, getCompiledEditorSchemaFromApi, getCompiledPropertyCandidates, getCompiledPropertyMergeStrategy, getCompiledSchemaPropertyId, getDocumentChangeRelocations, getDocumentValueNode, getEditorAuthoredDocumentCapability, getEditorCommitNode, getEditorCommitSnapshot, getEditorCommitValue, getCurrentMarks as getEditorCurrentMarks, getEditorDocumentShapeIssueMessage, getLiveNode as getEditorLiveNode, getLiveText as getEditorLiveText, getEditorMaxLength, getEditorNodeKeyForNode, getEditorRuntime, getEditorRuntimeElementEntries, getEditorRuntimeRoot, getEditorRuntimeRootKeys, getCurrentSelectionRoot as getEditorSelectionRoot, getEditorStateView, getEditorUpdateRoot, getExactDocumentChangeRelocation, getExactDocumentChangeRelocations, getFragment, getInstalledPlugin, getInstalledPluginApi, getInternalDocumentChangeClassification, getInternalDocumentChangeClassificationEntries, getInternalDocumentChangeRanges, getInternalDocumentChangeRootKeys, getPluginRegistry as getInternalPluginRegistry, getLastCommit, getNodeKey, getNodeKeyDOMValue, getPathByNodeKey, getPluginContributions, getPluginRegistry$1 as getPluginRegistry, getRangeRoot, getReaderRange, getRecordSetVersion, getSchemaElementSourceReference, getSelectionDOMRange, getSnapshotVersion, getStateFieldEffectTypes, getStateViewPresentation, getTextSearchScope, getValueRecords, getViewAuthor, getViewPresentation, hasBlocks, hasCommandHandler, hasEditorRuntime, hasInlines, hasInternalDocumentChangeRoot, hasPath, hasTexts, holdsCaret, inheritPluginRegistry, initializePluginEntries, initializePlugins, insertNode, insertNodes, insertSoftBreak, install, isAuthorId, isDocumentView, isEdge, isEditorPublishingCommit, isElementReadOnly, isEmpty, isEnd, isEnvelopeInput, isInline, isObject, isPlugin, isSelectable, isStart, isVoid, landNodePropertiesAt, last, leaf, levels, liftNodes, mapDetachedSelectionThroughChange, mapInternalDocumentChangePoint, mapInternalDocumentChangePosition, mapSemanticUpdateMethodArguments, markRootViewUsed, matchesCompiledSchemaTarget, mergeNodes, moveNodes, next, normalizeSetValues, notifyObservers, observeAnchorStateWork, onPresentationRelease, parent, path, placeElementAt, point, preserveCompiledSchemaPropertyIdentity, previous, probeCommandNativeEquivalent, projectEditorView, projectRange, projectRangeInSnapshot, queueAfterPluginAcquisition, range, read, readAuthoredView, readCaretViewIn, readCoreWork, readDocumentRange, readDocumentRecord, readEditorCommitHistoryEntry, readEditorDocument, readEditorOptions, readElementById, readElementPropertyWrites, readPersistedEnvelope, readRecord, readRootEntries, readRootViewUse, readShownDocument, readShownPreview, readShownRecords, readShownViewUse, readStoredEditorDocument, readViewPage, readingCovered, recordSetChanges, recordSetIds, registerEditorTransactionGuard, rejectEditorRecord, releaseEditor, removeMark, removeNodes, repairEditorValue, replaceChildren, reportEditorLifecycleError, reset, resolveCompiledSchemaProperty, resolveInstalledPlugin, resolvePluginMethod, retainViewPresentation, runEditorObserver, runTrustedUpdate, sameResult, scheduleAfterCommitNotification, select, serializeStructuralPlainText, setChildren as setEditorChildren, setEditorComposing, setCurrentMarks as setEditorMarks, setEditorMaxLength, setEditorRuntime, setCurrentSelection as setEditorSelection, setEditorSnapshotInputTransform, setEditorStateViewTransform, setTargetRuntime as setEditorTargetRuntime, setEditorTransactionViewTransform, setNodes, setPluginPortalFactory, setPoint, setSelection, setSelectionAsView, shouldMergeNodesRemovePrevNode, snapshotEditorJsonValue, splitNodes, startEditor, startOwnedEditor, subscribeCaretTarget, subscribeEditorViewState, subscribeShownViewUse, subscribeSource, toInternalRoot, toPublicRoot, toggleBlock, toggleMark, tracksPlaces, txStored, unsetNodes, unwrapNodes, update, vetoesWrite, voidEditor as void, withCompiledEditorSchemaCapabilityEntries, withDocumentViewRead, withEditorDocumentProjection, withEditorUpdateRootScope, withMountedPresentation, withPluginPortalCandidates, withStoredAuthoredRead, withTransactionSpecDraftRead, wrapNodes };
|
|
156
|
+
export { EDITOR_DOCUMENT_FIELDS, EditorRefusalError, EditorSchemaCompileError, MAIN_ROOT_KEY, above, addMark, afterActiveTransactionEnds, applyBuiltDocumentChange, areEditorJsonValuesEqual, assertDetachedSelectionSupported, assertEditorDocumentContainers, assertEditorJsonValue, assertEditorOptions, assertPublicRootKey, assertSelectionSupported, attachTransactionSpecAfterCommit, brandPluginDescriptor, callPluginUpdateMethod, canPlaceBlocksAtPath, canonicalRecordJson, claimsHistoryReplay, cloneEditorJsonValue, collapse, compileEditorSchemaCapabilityEntries, compileEditorSchemaContractEntries, compileEditorSchemaContributions, compilePlugin, compilePluginInput, completePersistedDocumentFields, configureAuthoredView, containsCompleteEditorSchema, createAuthoredEditorView, createDetachedContentSlice, createDetachedEditorSchema, createDormantEditor, createEditorEffect, createEditorOwner, createEditorReadApi, createInternalRootChangeFromSections, decodeEditorSelection, decodeVersionedValue, deleteEditor as delete, deleteFragment, deselect, dispatchCommand, edges, elementReadOnly, encodeEditorSelection, encodeVersionedValue, evaluateCommand, exportContentSlice, failInvariant, first, fitSliceChildren, fitSlicePlacements, formatDebugValue, fragment, getActiveCommandEditor, getActiveEditorTransaction, getActiveEditorUpdateId, getActiveEditorUpdateTags, getAnchorRuntimeId, getAnnotationStoreMetrics, getAuthoredUpdateView, getCandidatePluginApi, getCaretOwner, getCarriedCaretEditor, getCollabEffectTypes, getCollabEffects, getCompiledEditorConfiguration, getCompiledEditorSchema, getCompiledEditorSchemaFromApi, getCompiledPropertyCandidates, getCompiledPropertyMergeStrategy, getCompiledSchemaPropertyId, getDocumentChangeRelocations, getDocumentValueNode, getEditorAuthoredDocumentCapability, getEditorCommitNode, getEditorCommitSnapshot, getEditorCommitValue, getCurrentMarks as getEditorCurrentMarks, getEditorDocumentShapeIssueMessage, getLiveNode as getEditorLiveNode, getLiveText as getEditorLiveText, getEditorMaxLength, getEditorNodeKeyForNode, getEditorRuntime, getEditorRuntimeElementEntries, getEditorRuntimeRoot, getEditorRuntimeRootKeys, getCurrentSelectionRoot as getEditorSelectionRoot, getEditorStateView, getEditorUpdateRoot, getExactDocumentChangeRelocation, getExactDocumentChangeRelocations, getFragment, getInstalledPlugin, getInstalledPluginApi, getInternalDocumentChangeClassification, getInternalDocumentChangeClassificationEntries, getInternalDocumentChangeRanges, getInternalDocumentChangeRootKeys, getPluginRegistry as getInternalPluginRegistry, getLastCommit, getMutationVersion, getNodeKey, getNodeKeyDOMValue, getPathByNodeKey, getPluginContributions, getPluginRegistry$1 as getPluginRegistry, getRangeRoot, getReaderRange, getRecordSetVersion, getSchemaElementSourceReference, getSelectionDOMRange, getSnapshotVersion, getStateFieldEffectTypes, getStateViewPresentation, getTextSearchScope, getValueRecords, getViewAuthor, getViewPresentation, hasBlocks, hasCommandHandler, hasEditorRuntime, hasInlines, hasInternalDocumentChangeRoot, hasPath, hasTexts, holdsCaret, inheritPluginRegistry, initializePluginEntries, initializePlugins, insertNode, insertNodes, insertSoftBreak, install, isAuthorId, isDocumentView, isEdge, isEditorPublishingCommit, isElementReadOnly, isEmpty, isEnd, isEnvelopeInput, isInline, isObject, isPlugin, isSelectable, isStart, isVoid, landNodePropertiesAt, last, leaf, levels, liftNodes, mapDetachedSelectionThroughChange, mapInternalDocumentChangePoint, mapInternalDocumentChangePosition, mapSemanticUpdateMethodArguments, markRootViewUsed, matchesCompiledSchemaTarget, mergeNodes, moveNodes, next, normalizeSetValues, notifyObservers, observeAnchorStateWork, onPresentationRelease, parent, path, placeElementAt, point, preserveCompiledSchemaPropertyIdentity, previous, probeCommandNativeEquivalent, projectEditorView, projectRange, projectRangeInSnapshot, queueAfterPluginAcquisition, range, read, readAuthoredView, readCaretViewIn, readCoreWork, readDocumentRange, readDocumentRecord, readEditorCommitHistoryEntry, readEditorDocument, readEditorOptions, readElementById, readElementPropertyWrites, readPersistedEnvelope, readRecord, readRootEntries, readRootViewUse, readShownDocument, readShownPreview, readShownRecords, readShownViewUse, readStoredEditorDocument, readViewPage, readingCovered, recordSetChanges, recordSetIds, registerEditorTransactionGuard, rejectEditorRecord, releaseEditor, removeMark, removeNodes, repairEditorValue, replaceChildren, reportEditorLifecycleError, reset, resolveCompiledSchemaProperty, resolveInstalledPlugin, resolvePluginMethod, restoreAnchor, retainViewPresentation, runEditorObserver, runTrustedUpdate, sameResult, scheduleAfterCommitNotification, select, serializeStructuralPlainText, setChildren as setEditorChildren, setEditorComposing, setCurrentMarks as setEditorMarks, setEditorMaxLength, setEditorRuntime, setCurrentSelection as setEditorSelection, setEditorSnapshotInputTransform, setEditorStateViewTransform, setTargetRuntime as setEditorTargetRuntime, setEditorTransactionViewTransform, setNodes, setPluginPortalFactory, setPoint, setSelection, setSelectionAsView, shouldMergeNodesRemovePrevNode, snapshotEditorJsonValue, splitNodes, startEditor, startOwnedEditor, subscribeCaretTarget, subscribeEditorViewState, subscribeShownViewUse, subscribeSource, toInternalRoot, toPublicRoot, toggleBlock, toggleMark, tracksPlaces, txStored, unsetNodes, unwrapNodes, update, vetoesWrite, voidEditor as void, withCompiledEditorSchemaCapabilityEntries, withDocumentViewRead, withEditorDocumentProjection, withEditorUpdateRootScope, withMountedPresentation, withPluginPortalCandidates, withStoredAuthoredRead, withTransactionSpecDraftRead, wrapNodes };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dl as notifyObservers, Yf as areEditorJsonValuesEqual } from "./plugin-Bm6nsPHh.js";
|
|
2
2
|
//#region src/internal/view/mapped-view-store.ts
|
|
3
3
|
const areMappedViewDataEqual = areEditorJsonValuesEqual;
|
|
4
4
|
const createMappedViewStoreKernel = (initialSnapshot, editor) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Mc as Editor, Wg as Path, Yg as EditorJsonValue, cu as EditorStateField, kf as Value, kg as Range, lc as ElementOf, rc as Element, wc as TextOf, wd as NamedRootKey } from "../index-DHt8nZQ6.js";
|
|
2
2
|
//#region src/pagination/index.d.ts
|
|
3
3
|
type PagePreset = 'a4' | 'letter';
|
|
4
4
|
type PageMargins = number | Readonly<{
|
package/dist/pagination/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as pageSettingsCodec, n as createPretextPageLayoutEngine, r as measurePages, t as createEstimatedPageLayoutEngine } from "../pagination-
|
|
1
|
+
import { i as pageSettingsCodec, n as createPretextPageLayoutEngine, r as measurePages, t as createEstimatedPageLayoutEngine } from "../pagination-Cs5ka6hW.js";
|
|
2
2
|
export { createEstimatedPageLayoutEngine, createPretextPageLayoutEngine, measurePages, pageSettingsCodec };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { rc as Element } from "../index-DHt8nZQ6.js";
|
|
2
2
|
import { MeasurePagesOptions, NodeFragmentationPlan, NodeFragmentationProvider, PageLayoutBlock, PageLayoutBlockStyle, PageLayoutEngine, PageLayoutEngineInput, PageLayoutEngineOutput, PageLayoutFragment, PageLayoutMode, PageLayoutPage, PageLayoutRun, PageLayoutSize, PageLayoutSnapshot, PageLayoutTextStyle, PageLayoutTypography, PageMargins, PagePreset, PageRect, PageSettings, PageSettingsJson, PageSettingsSource, PretextPageLayoutEngineOptions, createEstimatedPageLayoutEngine, createPretextPageLayoutEngine, measurePages, pageSettingsCodec } from "./index.js";
|
|
3
|
-
import { jt as EditableProps } from "../index-
|
|
3
|
+
import { jt as EditableProps } from "../index-VZrKWWeh.js";
|
|
4
4
|
import { CSSProperties, ReactNode, RefObject } from "react";
|
|
5
5
|
//#region src/pagination/react.d.ts
|
|
6
6
|
declare const usePageLayout: (editableRef: RefObject<HTMLDivElement | null>) => PageLayoutSnapshot | null;
|
package/dist/pagination/react.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a as invalidatePageLayoutEngines, i as pageSettingsCodec, n as createPretextPageLayoutEngine, r as measurePages, t as createEstimatedPageLayoutEngine } from "../pagination-
|
|
4
|
-
import { H as DecorationContext, K as useHydrated, L as useRootNodeKeys, St as toReactRuntimeEditor, Ut as useEditorContext, Y as useEditorState, _ as defaultScrollSelectionIntoView, b as createContainerDecorationSlice, ct as landOnViewLine, f as TextRenderScopeContext, g as pathKey, h as getElementPlacementBox, lt as nearestViewText, s as EditableViewportSurface, st as landInViewBlock, u as SurfaceRoot, ut as placeOnViewText, v as getElementTransformScale, x as createEditableViewportPlan, y as ImperativeTextFlowContext, zt as useEditorReadOnly } from "../use-editor-dom-scope-
|
|
5
|
-
import { p as useElementPath } from "../react-
|
|
1
|
+
import { B as NodeApi, Ol as reportEditorLifecycleError, Pu as TextApi, Sp as PathApi, _p as PointApi, mp as RangeApi } from "../plugin-Bm6nsPHh.js";
|
|
2
|
+
import { At as SOFT_LINE_END_SELECTOR, Ut as findDOMRootRuntime, W as subscribeEditorDOMScope, jt as SOFT_LINE_FLAG, kn as getPliteStringDirectPlacement } from "../dom-CVYV5Qd5.js";
|
|
3
|
+
import { a as invalidatePageLayoutEngines, i as pageSettingsCodec, n as createPretextPageLayoutEngine, r as measurePages, t as createEstimatedPageLayoutEngine } from "../pagination-Cs5ka6hW.js";
|
|
4
|
+
import { H as DecorationContext, K as useHydrated, L as useRootNodeKeys, St as toReactRuntimeEditor, Ut as useEditorContext, Y as useEditorState, _ as defaultScrollSelectionIntoView, b as createContainerDecorationSlice, ct as landOnViewLine, f as TextRenderScopeContext, g as pathKey, h as getElementPlacementBox, lt as nearestViewText, s as EditableViewportSurface, st as landInViewBlock, u as SurfaceRoot, ut as placeOnViewText, v as getElementTransformScale, x as createEditableViewportPlan, y as ImperativeTextFlowContext, zt as useEditorReadOnly } from "../use-editor-dom-scope-hT7W9d-p.js";
|
|
5
|
+
import { p as useElementPath } from "../react-BYtwRr4v.js";
|
|
6
6
|
import React, { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
7
7
|
import { flushSync } from "react-dom";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as NodeApi,
|
|
1
|
+
import { B as NodeApi, _p as PointApi, ml as toInternalRoot } from "./plugin-Bm6nsPHh.js";
|
|
2
2
|
import { clearCache, layoutWithLines, measureNaturalWidth, prepareWithSegments } from "@chenglou/pretext";
|
|
3
3
|
import { materializeRichInlineLineRange, prepareRichInline, walkRichInlineLineRanges } from "@chenglou/pretext/rich-inline";
|
|
4
4
|
//#region src/pagination/page-composition.internal.ts
|