@beyondwork/docx-react-component 1.0.135 → 1.0.136

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.
Files changed (62) hide show
  1. package/dist/api/public-types.d.cts +2 -2
  2. package/dist/api/public-types.d.ts +2 -2
  3. package/dist/api/v3.cjs +183 -39
  4. package/dist/api/v3.d.cts +3 -3
  5. package/dist/api/v3.d.ts +3 -3
  6. package/dist/api/v3.js +2 -2
  7. package/dist/{canonical-document-CfZIc-fC.d.cts → canonical-document-COmM7v11.d.cts} +1 -1
  8. package/dist/{canonical-document-CfZIc-fC.d.ts → canonical-document-COmM7v11.d.ts} +1 -1
  9. package/dist/{chunk-5CCYF333.js → chunk-HUWZ7AHE.js} +123 -0
  10. package/dist/{chunk-GIFXKIM5.js → chunk-JZZKTL7K.js} +620 -50
  11. package/dist/{chunk-EPFVMUKF.js → chunk-NX7W6T7L.js} +169 -37
  12. package/dist/compare.d.cts +1 -1
  13. package/dist/compare.d.ts +1 -1
  14. package/dist/core/commands/formatting-commands.d.cts +2 -2
  15. package/dist/core/commands/formatting-commands.d.ts +2 -2
  16. package/dist/core/commands/image-commands.d.cts +2 -2
  17. package/dist/core/commands/image-commands.d.ts +2 -2
  18. package/dist/core/commands/section-layout-commands.d.cts +2 -2
  19. package/dist/core/commands/section-layout-commands.d.ts +2 -2
  20. package/dist/core/commands/style-commands.d.cts +2 -2
  21. package/dist/core/commands/style-commands.d.ts +2 -2
  22. package/dist/core/commands/table-structure-commands.d.cts +2 -2
  23. package/dist/core/commands/table-structure-commands.d.ts +2 -2
  24. package/dist/core/commands/text-commands.d.cts +2 -2
  25. package/dist/core/commands/text-commands.d.ts +2 -2
  26. package/dist/core/selection/mapping.d.cts +2 -2
  27. package/dist/core/selection/mapping.d.ts +2 -2
  28. package/dist/core/state/editor-state.d.cts +2 -2
  29. package/dist/core/state/editor-state.d.ts +2 -2
  30. package/dist/index.cjs +1075 -154
  31. package/dist/index.d.cts +5 -5
  32. package/dist/index.d.ts +5 -5
  33. package/dist/index.js +123 -23
  34. package/dist/io/docx-session.d.cts +4 -4
  35. package/dist/io/docx-session.d.ts +4 -4
  36. package/dist/legal.d.cts +1 -1
  37. package/dist/legal.d.ts +1 -1
  38. package/dist/{loader-BQ7AB-0v.d.cts → loader-Cr35kVUi.d.cts} +3 -3
  39. package/dist/{loader-Cy6OYBfn.d.ts → loader-uGY6nDZP.d.ts} +3 -3
  40. package/dist/{public-types-D31xKNGc.d.cts → public-types-8kVIB5HW.d.ts} +16 -8
  41. package/dist/{public-types-DqYt8GdP.d.ts → public-types-CSSH2Whc.d.cts} +16 -8
  42. package/dist/public-types.d.cts +2 -2
  43. package/dist/public-types.d.ts +2 -2
  44. package/dist/runtime/collab.d.cts +3 -3
  45. package/dist/runtime/collab.d.ts +3 -3
  46. package/dist/runtime/document-runtime.cjs +737 -46
  47. package/dist/runtime/document-runtime.d.cts +2 -2
  48. package/dist/runtime/document-runtime.d.ts +2 -2
  49. package/dist/runtime/document-runtime.js +2 -2
  50. package/dist/{session-DA-F2fCw.d.cts → session-Beg8ihOi.d.cts} +3 -3
  51. package/dist/{session-DqL8H0oZ.d.ts → session-Dgp-2uYw.d.ts} +3 -3
  52. package/dist/session.d.cts +5 -5
  53. package/dist/session.d.ts +5 -5
  54. package/dist/tailwind.d.cts +2 -2
  55. package/dist/tailwind.d.ts +2 -2
  56. package/dist/{types-SllbCtGs.d.ts → types-Cin_abw3.d.ts} +2 -2
  57. package/dist/{types-B2y94n5t.d.cts → types-qsS39ZkQ.d.cts} +2 -2
  58. package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
  59. package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
  60. package/dist/ui-tailwind.d.cts +3 -3
  61. package/dist/ui-tailwind.d.ts +3 -3
  62. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- import { b8 as TextCommandAck, b9 as TextCommandRefreshClass, ba as WordReviewEditorProps, bb as WordReviewEditorRef, a as EditorSessionState, P as PersistedEditorSnapshot, bc as validatePersistedEditorSnapshot, bd as PayloadSigner, be as PayloadSignature, bf as TransportStatus, bg as CollabPosture, bh as PresenceSnapshot, bi as AwarenessIdentity, bj as ExternalCustody, bk as ExternalCustodyResolver, bl as ExternalCustodyRestoredContent, bm as RuntimePageGraph, d as EditorSurfaceSnapshot, r as CompatibilityReport } from './public-types-D31xKNGc.cjs';
2
- export { bn as ActiveListContext, bo as ActiveNoteContext, bp as AddCommentParams, bq as AddCommentReplyResult, br as AddCommentResult, bs as AiExplanationScopeInput, bt as AiExplanationScopeResult, K as ApiV3, bu as AttachPayloadArgs, bv as AuthorKind, bw as AutosaveConfig, bx as AutosaveState, by as AwarenessPeer, bz as BatchEditEntryResult, bA as BatchEditOperation, bB as BatchEditOptions, bC as BatchEditResult, bD as CaretAffinity, bE as ChangeAnchor, bF as ChangeFilter, bG as ChartPreviewResolveParams, bH as ChartSnapshot, bI as ChartSnapshotBubbleSeries, bJ as ChartSnapshotData, bK as ChartSnapshotScatterSeries, bL as ChartSnapshotSeries, bM as CollabBlockReason, bN as CollabSession, bO as CollabSessionBridge, bP as CollabSessionEvent, bQ as CollabSessionEventOrIntegrity, bR as CollabSessionFacet, bS as CollabSessionOptions, bT as CommandStateSnapshot, bU as CommentAttachment, bV as CommentAudience, bW as CommentBody, bX as CommentLabel, bY as CommentMention, bZ as CommentNegotiationAction, b_ as CommentNegotiationActionType, b$ as CommentNegotiationEntry, c0 as CommentNegotiationSnapshot, c1 as CommentNegotiationState, c2 as CommentPresentation, c3 as CommentPresentationAction, c4 as CommentPresentationReply, c5 as CommentPresentationSnapshot, c6 as CommentReaction, c7 as CommentSidebarSnapshot, c8 as CommentSidebarThreadEntrySnapshot, c9 as CommentSidebarThreadSnapshot, ca as CompatibilityFeatureClass, cb as CompatibilityFeatureEntry, cc as CompatibilityPanelSnapshot, a7 as CreateApiV3Opts, cd as CreateCollabSessionBridgeOptions, ce as DispatchContext, cf as DispatchResult, cg as DocumentChunkKind, ch as DocumentChunkSnapshot, ci as DocumentHeadingSnapshot, cj as DocumentLocationSnapshot, ck as DocumentLocationSource, cl as DocumentNavigationSnapshot, cm as DocumentOutlineHeadingSnapshot, cn as DocumentOutlineSnapshot, co as DocumentPageSnapshot, cp as DocumentSectionSnapshot, cq as DocumentStats, cr as DocumentTextToken, cs as EditorAnchorProjection, ct as EditorDatastoreAdapter, t as EditorError, cu as EditorErrorCode, E as EditorHostAdapter, cv as EditorStateBlob, aA as EditorStateLocation, az as EditorStateNamespace, cw as EditorStatePartLoadFailure, cx as EditorStatePartPersistFailure, cy as EditorStatePersister, cz as EditorStatePolicy, cA as EditorStatePolicyEntry, cB as EditorStatePolicyMigration, cC as EditorStateResolveErrorMode, cD as EditorStateResolver, cE as EditorStateStorageRef, cF as EditorStoryTarget, cG as EditorTelemetryEvent, cH as EditorUser, cI as EditorViewStateSnapshot, cJ as EditorWarning, cK as EditorWarningCode, b as ExportDocxOptions, c as ExportResult, cL as ExternalCustodyArchivePayload, cM as ExternalDocumentSource, cN as HeaderFooterLinkPatch, cO as HostAnnotationItem, cP as HostAnnotationKind, cQ as HostAnnotationOverlay, cR as HostAnnotationSnapshot, cS as ISSUE_METADATA_ID, cT as InteractionGuardSnapshot, cU as IssueMetadataValue, cV as IssueMode, cW as IssueOwner, cX as IssueSeverity, cY as LayoutMeasurement, cZ as LoadRequest, c_ as LoadResult, c$ as LoadSourcePolicy, d0 as MetadataIntegrity, d1 as MetadataPersistenceMode, d2 as MetadataResolverMissingError, d3 as NegotiationBlockReason, d4 as NegotiationCounterProposal, d5 as NegotiationHistoryRow, d6 as NegotiationRole, d7 as NegotiationVote, d8 as PageLayoutSnapshot, d9 as PageRegionHitTest, da as Participant, db as ParticipantRole, dc as ParticipantRoster, dd as PayloadVerifier, de as REVIEW_ACTION_METADATA_ID, df as RestorePointCheckpointType, dg as RestorePointSnapshot, dh as RestoreResult, di as ReviewActionKind, dj as ReviewActionMetadataValue, dk as ReviewQueueItem, dl as ReviewQueueItemKind, dm as ReviewQueueSnapshot, dn as ReviewWorkItemSnapshot, dp as ReviewWorkSnapshot, dq as RuntimeContextAnalyticsActionHint, dr as RuntimeContextAnalyticsBadge, ds as RuntimeContextAnalyticsCounts, dt as RuntimeContextAnalyticsProvenance, du as RuntimeContextAnalyticsQuery, dv as RuntimeContextAnalyticsScopeKind, dw as RuntimeContextAnalyticsSnapshot, dx as RuntimeContextAnalyticsState, dy as RuntimeContextAnalyticsUnavailableField, R as RuntimeRenderSnapshot, dz as RuntimeSendToExternalArgs, dA as RuntimeSendToExternalResult, dB as SELECTION_TOOL_REGISTRY, dC as SaveExportParams, dD as SaveExportResult, dE as SaveSessionParams, dF as SaveSessionResult, dG as SaveSnapshotParams, dH as SaveSnapshotResult, dI as ScopeCardModel, dJ as ScopeIssueAction, dK as ScopeMetadataPersistence, dL as ScopeMetadataResolver, dM as ScopeMetadataStorageRef, dN as ScopeTagTouch, dO as SectionBreakType, dP as SectionLayoutPatch, dQ as SectionPageNumberingPatch, j as SelectionSnapshot, dR as SelectionToolKind, dS as SelectionToolRegistryEntry, dT as SendToExternalCallArgs, dU as SignatureAlgorithm, dV as SnapshotRefreshChangeKind, dW as SnapshotRefreshHints, dX as SnapshotRefreshInvalidateTarget, dY as SnapshotRefreshStaleTarget, dZ as StoryTextStreamSnapshot, d_ as StyleCatalogEntrySnapshot, d$ as StyleCatalogSnapshot, e0 as SuggestionEntrySnapshot, e1 as SuggestionGroup, e2 as SuggestionsSnapshot, e3 as SurfaceBlockSnapshot, e4 as SurfaceInlineSegment, e5 as SurfaceTableCellSnapshot, e6 as SurfaceTableRowSnapshot, e7 as SurfaceTextMark, e8 as TamperGate, e9 as TamperGateArgs, ea as TamperGateAttachArgs, eb as TamperGateEvent, ec as TamperGateGuardResult, ed as TextCommandAckKind, ee as TextProjection, ef as TextProjectionLine, eg as TextProjectionOptions, eh as TextProjectionStoryEntry, ei as TocEntrySnapshot, ej as TocRegionSnapshot, ek as TocSnapshot, el as TrackedChangeEntrySnapshot, em as TrackedChangesSnapshot, en as ViewMode, eo as WordReviewEditorChromeOptions, ep as WordReviewEditorChromePreset, eq as WordReviewEditorChromeVisibility, er as WordReviewEditorEvent, es as WorkflowBlockedCommandReason, et as WorkflowCandidateRange, eu as WorkflowCandidateRangeOptions, ev as WorkflowCommentMarkup, ew as WorkflowFieldMarkup, ex as WorkflowHighlightMarkup, ey as WorkflowMarkupBase, ez as WorkflowMarkupItem, eA as WorkflowMarkupKind, eB as WorkflowMarkupSnapshot, eC as WorkflowMetadataDefinition, eD as WorkflowMetadataEntry, eE as WorkflowMetadataMarkup, eF as WorkflowMetadataPersistence, eG as WorkflowMetadataSnapshot, eH as WorkflowOpaqueFragmentMarkup, eI as WorkflowOverlay, eJ as WorkflowOverlayPatch, eK as WorkflowProtectedRangeMarkup, eL as WorkflowRevisionMarkup, eM as WorkflowScope, eN as WorkflowScopeMode, eO as WorkflowScopeSnapshot, eP as WorkflowWorkItem, eQ as WorkspaceMode, eR as ZoomLevel, ax as createApiV3, eS as createCollabSession, eT as createCollabSessionBridge, eU as createCollabSessionFacet, eV as createHmacSigner, eW as createHmacVerifier, eX as createTamperGate, eY as resolveSelectionToolRegistry, eZ as runtimeSendToExternal, e_ as sendToExternal, e$ as signWorkflowPayloadXml, f0 as verifyWorkflowPayloadXml } from './public-types-D31xKNGc.cjs';
1
+ import { b8 as TextCommandAck, b9 as TextCommandRefreshClass, ba as WordReviewEditorProps, bb as WordReviewEditorRef, a as EditorSessionState, P as PersistedEditorSnapshot, bc as validatePersistedEditorSnapshot, bd as PayloadSigner, be as PayloadSignature, bf as TransportStatus, bg as CollabPosture, bh as PresenceSnapshot, bi as AwarenessIdentity, bj as ExternalCustody, bk as ExternalCustodyResolver, bl as ExternalCustodyRestoredContent, bm as RuntimePageGraph, d as EditorSurfaceSnapshot, r as CompatibilityReport } from './public-types-CSSH2Whc.cjs';
2
+ export { bn as ActiveListContext, bo as ActiveNoteContext, bp as AddCommentParams, bq as AddCommentReplyResult, br as AddCommentResult, bs as AiExplanationScopeInput, bt as AiExplanationScopeResult, K as ApiV3, bu as AttachPayloadArgs, bv as AuthorKind, bw as AutosaveConfig, bx as AutosaveState, by as AwarenessPeer, bz as BatchEditEntryResult, bA as BatchEditOperation, bB as BatchEditOptions, bC as BatchEditResult, bD as CaretAffinity, bE as ChangeAnchor, bF as ChangeFilter, bG as ChartPreviewResolveParams, bH as ChartSnapshot, bI as ChartSnapshotBubbleSeries, bJ as ChartSnapshotData, bK as ChartSnapshotScatterSeries, bL as ChartSnapshotSeries, bM as CollabBlockReason, bN as CollabSession, bO as CollabSessionBridge, bP as CollabSessionEvent, bQ as CollabSessionEventOrIntegrity, bR as CollabSessionFacet, bS as CollabSessionOptions, bT as CommandStateSnapshot, bU as CommentAttachment, bV as CommentAudience, bW as CommentBody, bX as CommentLabel, bY as CommentMention, bZ as CommentNegotiationAction, b_ as CommentNegotiationActionType, b$ as CommentNegotiationEntry, c0 as CommentNegotiationSnapshot, c1 as CommentNegotiationState, c2 as CommentPresentation, c3 as CommentPresentationAction, c4 as CommentPresentationReply, c5 as CommentPresentationSnapshot, c6 as CommentReaction, c7 as CommentSidebarSnapshot, c8 as CommentSidebarThreadEntrySnapshot, c9 as CommentSidebarThreadSnapshot, ca as CompatibilityFeatureClass, cb as CompatibilityFeatureEntry, cc as CompatibilityPanelSnapshot, a7 as CreateApiV3Opts, cd as CreateCollabSessionBridgeOptions, ce as DispatchContext, cf as DispatchResult, cg as DocumentChunkKind, ch as DocumentChunkSnapshot, ci as DocumentHeadingSnapshot, cj as DocumentLocationSnapshot, ck as DocumentLocationSource, cl as DocumentNavigationSnapshot, cm as DocumentOutlineHeadingSnapshot, cn as DocumentOutlineSnapshot, co as DocumentPageSnapshot, cp as DocumentSectionSnapshot, cq as DocumentStats, cr as DocumentTextToken, cs as EditorAnchorProjection, ct as EditorDatastoreAdapter, t as EditorError, cu as EditorErrorCode, E as EditorHostAdapter, cv as EditorStateBlob, aA as EditorStateLocation, az as EditorStateNamespace, cw as EditorStatePartLoadFailure, cx as EditorStatePartPersistFailure, cy as EditorStatePersister, cz as EditorStatePolicy, cA as EditorStatePolicyEntry, cB as EditorStatePolicyMigration, cC as EditorStateResolveErrorMode, cD as EditorStateResolver, cE as EditorStateStorageRef, cF as EditorStoryTarget, cG as EditorTelemetryEvent, cH as EditorUser, cI as EditorViewStateSnapshot, cJ as EditorWarning, cK as EditorWarningCode, b as ExportDocxOptions, c as ExportResult, cL as ExternalCustodyArchivePayload, cM as ExternalDocumentSource, cN as HeaderFooterLinkPatch, cO as HostAnnotationItem, cP as HostAnnotationKind, cQ as HostAnnotationOverlay, cR as HostAnnotationSnapshot, cS as ISSUE_METADATA_ID, cT as InteractionGuardSnapshot, cU as IssueMetadataValue, cV as IssueMode, cW as IssueOwner, cX as IssueSeverity, cY as LayoutMeasurement, cZ as LoadRequest, c_ as LoadResult, c$ as LoadSourcePolicy, d0 as MetadataIntegrity, d1 as MetadataPersistenceMode, d2 as MetadataResolverMissingError, d3 as NegotiationBlockReason, d4 as NegotiationCounterProposal, d5 as NegotiationHistoryRow, d6 as NegotiationRole, d7 as NegotiationVote, d8 as PageLayoutSnapshot, d9 as PageRegionHitTest, da as Participant, db as ParticipantRole, dc as ParticipantRoster, dd as PayloadVerifier, de as REVIEW_ACTION_METADATA_ID, df as RestorePointCheckpointType, dg as RestorePointSnapshot, dh as RestoreResult, di as ReviewActionKind, dj as ReviewActionMetadataValue, dk as ReviewQueueItem, dl as ReviewQueueItemKind, dm as ReviewQueueSnapshot, dn as ReviewWorkItemSnapshot, dp as ReviewWorkSnapshot, dq as RuntimeContextAnalyticsActionHint, dr as RuntimeContextAnalyticsBadge, ds as RuntimeContextAnalyticsCounts, dt as RuntimeContextAnalyticsProvenance, du as RuntimeContextAnalyticsQuery, dv as RuntimeContextAnalyticsScopeKind, dw as RuntimeContextAnalyticsSnapshot, dx as RuntimeContextAnalyticsState, dy as RuntimeContextAnalyticsUnavailableField, R as RuntimeRenderSnapshot, dz as RuntimeSendToExternalArgs, dA as RuntimeSendToExternalResult, dB as SELECTION_TOOL_REGISTRY, dC as SaveExportParams, dD as SaveExportResult, dE as SaveSessionParams, dF as SaveSessionResult, dG as SaveSnapshotParams, dH as SaveSnapshotResult, dI as ScopeCardModel, dJ as ScopeIssueAction, dK as ScopeMetadataPersistence, dL as ScopeMetadataResolver, dM as ScopeMetadataStorageRef, dN as ScopeTagTouch, dO as SectionBreakType, dP as SectionLayoutPatch, dQ as SectionPageNumberingPatch, j as SelectionSnapshot, dR as SelectionToolKind, dS as SelectionToolRegistryEntry, dT as SendToExternalCallArgs, dU as SignatureAlgorithm, dV as SnapshotRefreshChangeKind, dW as SnapshotRefreshHints, dX as SnapshotRefreshInvalidateTarget, dY as SnapshotRefreshStaleTarget, dZ as StoryTextStreamSnapshot, d_ as StyleCatalogEntrySnapshot, d$ as StyleCatalogSnapshot, e0 as SuggestionEntrySnapshot, e1 as SuggestionGroup, e2 as SuggestionsSnapshot, e3 as SurfaceBlockSnapshot, e4 as SurfaceInlineSegment, e5 as SurfaceTableCellSnapshot, e6 as SurfaceTableRowSnapshot, e7 as SurfaceTextMark, e8 as TamperGate, e9 as TamperGateArgs, ea as TamperGateAttachArgs, eb as TamperGateEvent, ec as TamperGateGuardResult, ed as TextCommandAckKind, ee as TextProjection, ef as TextProjectionLine, eg as TextProjectionOptions, eh as TextProjectionStoryEntry, ei as TocEntrySnapshot, ej as TocRegionSnapshot, ek as TocSnapshot, el as TrackedChangeEntrySnapshot, em as TrackedChangesSnapshot, en as ViewMode, eo as WordReviewEditorChromeOptions, ep as WordReviewEditorChromePreset, eq as WordReviewEditorChromeVisibility, er as WordReviewEditorEvent, es as WorkflowBlockedCommandReason, et as WorkflowCandidateRange, eu as WorkflowCandidateRangeOptions, ev as WorkflowCommentMarkup, ew as WorkflowFieldMarkup, ex as WorkflowHighlightMarkup, ey as WorkflowMarkupBase, ez as WorkflowMarkupItem, eA as WorkflowMarkupKind, eB as WorkflowMarkupSnapshot, eC as WorkflowMetadataDefinition, eD as WorkflowMetadataEntry, eE as WorkflowMetadataMarkup, eF as WorkflowMetadataPersistence, eG as WorkflowMetadataSnapshot, eH as WorkflowOpaqueFragmentMarkup, eI as WorkflowOverlay, eJ as WorkflowOverlayPatch, eK as WorkflowProtectedRangeMarkup, eL as WorkflowRevisionMarkup, eM as WorkflowScope, eN as WorkflowScopeMode, eO as WorkflowScopeSnapshot, eP as WorkflowWorkItem, eQ as WorkspaceMode, eR as ZoomLevel, ax as createApiV3, eS as createCollabSession, eT as createCollabSessionBridge, eU as createCollabSessionFacet, eV as createHmacSigner, eW as createHmacVerifier, eX as createTamperGate, eY as resolveSelectionToolRegistry, eZ as runtimeSendToExternal, e_ as sendToExternal, e$ as signWorkflowPayloadXml, f0 as verifyWorkflowPayloadXml } from './public-types-CSSH2Whc.cjs';
3
3
  import React__default from 'react';
4
- export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-DA-F2fCw.cjs';
5
- export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, V as ValidateOptions, c as ValidationFinding, d as ValidationReport } from './types-B2y94n5t.cjs';
4
+ export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-Beg8ihOi.cjs';
5
+ export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, V as ValidateOptions, c as ValidationFinding, d as ValidationReport } from './types-qsS39ZkQ.cjs';
6
6
  import { Awareness } from 'y-protocols/awareness';
7
- import { C as CanonicalDocument } from './canonical-document-CfZIc-fC.cjs';
7
+ import { C as CanonicalDocument } from './canonical-document-COmM7v11.cjs';
8
8
  import 'yjs';
9
9
  import 'prosemirror-state';
10
10
  import 'prosemirror-model';
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { b8 as TextCommandAck, b9 as TextCommandRefreshClass, ba as WordReviewEditorProps, bb as WordReviewEditorRef, a as EditorSessionState, P as PersistedEditorSnapshot, bc as validatePersistedEditorSnapshot, bd as PayloadSigner, be as PayloadSignature, bf as TransportStatus, bg as CollabPosture, bh as PresenceSnapshot, bi as AwarenessIdentity, bj as ExternalCustody, bk as ExternalCustodyResolver, bl as ExternalCustodyRestoredContent, bm as RuntimePageGraph, d as EditorSurfaceSnapshot, r as CompatibilityReport } from './public-types-DqYt8GdP.js';
2
- export { bn as ActiveListContext, bo as ActiveNoteContext, bp as AddCommentParams, bq as AddCommentReplyResult, br as AddCommentResult, bs as AiExplanationScopeInput, bt as AiExplanationScopeResult, K as ApiV3, bu as AttachPayloadArgs, bv as AuthorKind, bw as AutosaveConfig, bx as AutosaveState, by as AwarenessPeer, bz as BatchEditEntryResult, bA as BatchEditOperation, bB as BatchEditOptions, bC as BatchEditResult, bD as CaretAffinity, bE as ChangeAnchor, bF as ChangeFilter, bG as ChartPreviewResolveParams, bH as ChartSnapshot, bI as ChartSnapshotBubbleSeries, bJ as ChartSnapshotData, bK as ChartSnapshotScatterSeries, bL as ChartSnapshotSeries, bM as CollabBlockReason, bN as CollabSession, bO as CollabSessionBridge, bP as CollabSessionEvent, bQ as CollabSessionEventOrIntegrity, bR as CollabSessionFacet, bS as CollabSessionOptions, bT as CommandStateSnapshot, bU as CommentAttachment, bV as CommentAudience, bW as CommentBody, bX as CommentLabel, bY as CommentMention, bZ as CommentNegotiationAction, b_ as CommentNegotiationActionType, b$ as CommentNegotiationEntry, c0 as CommentNegotiationSnapshot, c1 as CommentNegotiationState, c2 as CommentPresentation, c3 as CommentPresentationAction, c4 as CommentPresentationReply, c5 as CommentPresentationSnapshot, c6 as CommentReaction, c7 as CommentSidebarSnapshot, c8 as CommentSidebarThreadEntrySnapshot, c9 as CommentSidebarThreadSnapshot, ca as CompatibilityFeatureClass, cb as CompatibilityFeatureEntry, cc as CompatibilityPanelSnapshot, a7 as CreateApiV3Opts, cd as CreateCollabSessionBridgeOptions, ce as DispatchContext, cf as DispatchResult, cg as DocumentChunkKind, ch as DocumentChunkSnapshot, ci as DocumentHeadingSnapshot, cj as DocumentLocationSnapshot, ck as DocumentLocationSource, cl as DocumentNavigationSnapshot, cm as DocumentOutlineHeadingSnapshot, cn as DocumentOutlineSnapshot, co as DocumentPageSnapshot, cp as DocumentSectionSnapshot, cq as DocumentStats, cr as DocumentTextToken, cs as EditorAnchorProjection, ct as EditorDatastoreAdapter, t as EditorError, cu as EditorErrorCode, E as EditorHostAdapter, cv as EditorStateBlob, aA as EditorStateLocation, az as EditorStateNamespace, cw as EditorStatePartLoadFailure, cx as EditorStatePartPersistFailure, cy as EditorStatePersister, cz as EditorStatePolicy, cA as EditorStatePolicyEntry, cB as EditorStatePolicyMigration, cC as EditorStateResolveErrorMode, cD as EditorStateResolver, cE as EditorStateStorageRef, cF as EditorStoryTarget, cG as EditorTelemetryEvent, cH as EditorUser, cI as EditorViewStateSnapshot, cJ as EditorWarning, cK as EditorWarningCode, b as ExportDocxOptions, c as ExportResult, cL as ExternalCustodyArchivePayload, cM as ExternalDocumentSource, cN as HeaderFooterLinkPatch, cO as HostAnnotationItem, cP as HostAnnotationKind, cQ as HostAnnotationOverlay, cR as HostAnnotationSnapshot, cS as ISSUE_METADATA_ID, cT as InteractionGuardSnapshot, cU as IssueMetadataValue, cV as IssueMode, cW as IssueOwner, cX as IssueSeverity, cY as LayoutMeasurement, cZ as LoadRequest, c_ as LoadResult, c$ as LoadSourcePolicy, d0 as MetadataIntegrity, d1 as MetadataPersistenceMode, d2 as MetadataResolverMissingError, d3 as NegotiationBlockReason, d4 as NegotiationCounterProposal, d5 as NegotiationHistoryRow, d6 as NegotiationRole, d7 as NegotiationVote, d8 as PageLayoutSnapshot, d9 as PageRegionHitTest, da as Participant, db as ParticipantRole, dc as ParticipantRoster, dd as PayloadVerifier, de as REVIEW_ACTION_METADATA_ID, df as RestorePointCheckpointType, dg as RestorePointSnapshot, dh as RestoreResult, di as ReviewActionKind, dj as ReviewActionMetadataValue, dk as ReviewQueueItem, dl as ReviewQueueItemKind, dm as ReviewQueueSnapshot, dn as ReviewWorkItemSnapshot, dp as ReviewWorkSnapshot, dq as RuntimeContextAnalyticsActionHint, dr as RuntimeContextAnalyticsBadge, ds as RuntimeContextAnalyticsCounts, dt as RuntimeContextAnalyticsProvenance, du as RuntimeContextAnalyticsQuery, dv as RuntimeContextAnalyticsScopeKind, dw as RuntimeContextAnalyticsSnapshot, dx as RuntimeContextAnalyticsState, dy as RuntimeContextAnalyticsUnavailableField, R as RuntimeRenderSnapshot, dz as RuntimeSendToExternalArgs, dA as RuntimeSendToExternalResult, dB as SELECTION_TOOL_REGISTRY, dC as SaveExportParams, dD as SaveExportResult, dE as SaveSessionParams, dF as SaveSessionResult, dG as SaveSnapshotParams, dH as SaveSnapshotResult, dI as ScopeCardModel, dJ as ScopeIssueAction, dK as ScopeMetadataPersistence, dL as ScopeMetadataResolver, dM as ScopeMetadataStorageRef, dN as ScopeTagTouch, dO as SectionBreakType, dP as SectionLayoutPatch, dQ as SectionPageNumberingPatch, j as SelectionSnapshot, dR as SelectionToolKind, dS as SelectionToolRegistryEntry, dT as SendToExternalCallArgs, dU as SignatureAlgorithm, dV as SnapshotRefreshChangeKind, dW as SnapshotRefreshHints, dX as SnapshotRefreshInvalidateTarget, dY as SnapshotRefreshStaleTarget, dZ as StoryTextStreamSnapshot, d_ as StyleCatalogEntrySnapshot, d$ as StyleCatalogSnapshot, e0 as SuggestionEntrySnapshot, e1 as SuggestionGroup, e2 as SuggestionsSnapshot, e3 as SurfaceBlockSnapshot, e4 as SurfaceInlineSegment, e5 as SurfaceTableCellSnapshot, e6 as SurfaceTableRowSnapshot, e7 as SurfaceTextMark, e8 as TamperGate, e9 as TamperGateArgs, ea as TamperGateAttachArgs, eb as TamperGateEvent, ec as TamperGateGuardResult, ed as TextCommandAckKind, ee as TextProjection, ef as TextProjectionLine, eg as TextProjectionOptions, eh as TextProjectionStoryEntry, ei as TocEntrySnapshot, ej as TocRegionSnapshot, ek as TocSnapshot, el as TrackedChangeEntrySnapshot, em as TrackedChangesSnapshot, en as ViewMode, eo as WordReviewEditorChromeOptions, ep as WordReviewEditorChromePreset, eq as WordReviewEditorChromeVisibility, er as WordReviewEditorEvent, es as WorkflowBlockedCommandReason, et as WorkflowCandidateRange, eu as WorkflowCandidateRangeOptions, ev as WorkflowCommentMarkup, ew as WorkflowFieldMarkup, ex as WorkflowHighlightMarkup, ey as WorkflowMarkupBase, ez as WorkflowMarkupItem, eA as WorkflowMarkupKind, eB as WorkflowMarkupSnapshot, eC as WorkflowMetadataDefinition, eD as WorkflowMetadataEntry, eE as WorkflowMetadataMarkup, eF as WorkflowMetadataPersistence, eG as WorkflowMetadataSnapshot, eH as WorkflowOpaqueFragmentMarkup, eI as WorkflowOverlay, eJ as WorkflowOverlayPatch, eK as WorkflowProtectedRangeMarkup, eL as WorkflowRevisionMarkup, eM as WorkflowScope, eN as WorkflowScopeMode, eO as WorkflowScopeSnapshot, eP as WorkflowWorkItem, eQ as WorkspaceMode, eR as ZoomLevel, ax as createApiV3, eS as createCollabSession, eT as createCollabSessionBridge, eU as createCollabSessionFacet, eV as createHmacSigner, eW as createHmacVerifier, eX as createTamperGate, eY as resolveSelectionToolRegistry, eZ as runtimeSendToExternal, e_ as sendToExternal, e$ as signWorkflowPayloadXml, f0 as verifyWorkflowPayloadXml } from './public-types-DqYt8GdP.js';
1
+ import { b8 as TextCommandAck, b9 as TextCommandRefreshClass, ba as WordReviewEditorProps, bb as WordReviewEditorRef, a as EditorSessionState, P as PersistedEditorSnapshot, bc as validatePersistedEditorSnapshot, bd as PayloadSigner, be as PayloadSignature, bf as TransportStatus, bg as CollabPosture, bh as PresenceSnapshot, bi as AwarenessIdentity, bj as ExternalCustody, bk as ExternalCustodyResolver, bl as ExternalCustodyRestoredContent, bm as RuntimePageGraph, d as EditorSurfaceSnapshot, r as CompatibilityReport } from './public-types-8kVIB5HW.js';
2
+ export { bn as ActiveListContext, bo as ActiveNoteContext, bp as AddCommentParams, bq as AddCommentReplyResult, br as AddCommentResult, bs as AiExplanationScopeInput, bt as AiExplanationScopeResult, K as ApiV3, bu as AttachPayloadArgs, bv as AuthorKind, bw as AutosaveConfig, bx as AutosaveState, by as AwarenessPeer, bz as BatchEditEntryResult, bA as BatchEditOperation, bB as BatchEditOptions, bC as BatchEditResult, bD as CaretAffinity, bE as ChangeAnchor, bF as ChangeFilter, bG as ChartPreviewResolveParams, bH as ChartSnapshot, bI as ChartSnapshotBubbleSeries, bJ as ChartSnapshotData, bK as ChartSnapshotScatterSeries, bL as ChartSnapshotSeries, bM as CollabBlockReason, bN as CollabSession, bO as CollabSessionBridge, bP as CollabSessionEvent, bQ as CollabSessionEventOrIntegrity, bR as CollabSessionFacet, bS as CollabSessionOptions, bT as CommandStateSnapshot, bU as CommentAttachment, bV as CommentAudience, bW as CommentBody, bX as CommentLabel, bY as CommentMention, bZ as CommentNegotiationAction, b_ as CommentNegotiationActionType, b$ as CommentNegotiationEntry, c0 as CommentNegotiationSnapshot, c1 as CommentNegotiationState, c2 as CommentPresentation, c3 as CommentPresentationAction, c4 as CommentPresentationReply, c5 as CommentPresentationSnapshot, c6 as CommentReaction, c7 as CommentSidebarSnapshot, c8 as CommentSidebarThreadEntrySnapshot, c9 as CommentSidebarThreadSnapshot, ca as CompatibilityFeatureClass, cb as CompatibilityFeatureEntry, cc as CompatibilityPanelSnapshot, a7 as CreateApiV3Opts, cd as CreateCollabSessionBridgeOptions, ce as DispatchContext, cf as DispatchResult, cg as DocumentChunkKind, ch as DocumentChunkSnapshot, ci as DocumentHeadingSnapshot, cj as DocumentLocationSnapshot, ck as DocumentLocationSource, cl as DocumentNavigationSnapshot, cm as DocumentOutlineHeadingSnapshot, cn as DocumentOutlineSnapshot, co as DocumentPageSnapshot, cp as DocumentSectionSnapshot, cq as DocumentStats, cr as DocumentTextToken, cs as EditorAnchorProjection, ct as EditorDatastoreAdapter, t as EditorError, cu as EditorErrorCode, E as EditorHostAdapter, cv as EditorStateBlob, aA as EditorStateLocation, az as EditorStateNamespace, cw as EditorStatePartLoadFailure, cx as EditorStatePartPersistFailure, cy as EditorStatePersister, cz as EditorStatePolicy, cA as EditorStatePolicyEntry, cB as EditorStatePolicyMigration, cC as EditorStateResolveErrorMode, cD as EditorStateResolver, cE as EditorStateStorageRef, cF as EditorStoryTarget, cG as EditorTelemetryEvent, cH as EditorUser, cI as EditorViewStateSnapshot, cJ as EditorWarning, cK as EditorWarningCode, b as ExportDocxOptions, c as ExportResult, cL as ExternalCustodyArchivePayload, cM as ExternalDocumentSource, cN as HeaderFooterLinkPatch, cO as HostAnnotationItem, cP as HostAnnotationKind, cQ as HostAnnotationOverlay, cR as HostAnnotationSnapshot, cS as ISSUE_METADATA_ID, cT as InteractionGuardSnapshot, cU as IssueMetadataValue, cV as IssueMode, cW as IssueOwner, cX as IssueSeverity, cY as LayoutMeasurement, cZ as LoadRequest, c_ as LoadResult, c$ as LoadSourcePolicy, d0 as MetadataIntegrity, d1 as MetadataPersistenceMode, d2 as MetadataResolverMissingError, d3 as NegotiationBlockReason, d4 as NegotiationCounterProposal, d5 as NegotiationHistoryRow, d6 as NegotiationRole, d7 as NegotiationVote, d8 as PageLayoutSnapshot, d9 as PageRegionHitTest, da as Participant, db as ParticipantRole, dc as ParticipantRoster, dd as PayloadVerifier, de as REVIEW_ACTION_METADATA_ID, df as RestorePointCheckpointType, dg as RestorePointSnapshot, dh as RestoreResult, di as ReviewActionKind, dj as ReviewActionMetadataValue, dk as ReviewQueueItem, dl as ReviewQueueItemKind, dm as ReviewQueueSnapshot, dn as ReviewWorkItemSnapshot, dp as ReviewWorkSnapshot, dq as RuntimeContextAnalyticsActionHint, dr as RuntimeContextAnalyticsBadge, ds as RuntimeContextAnalyticsCounts, dt as RuntimeContextAnalyticsProvenance, du as RuntimeContextAnalyticsQuery, dv as RuntimeContextAnalyticsScopeKind, dw as RuntimeContextAnalyticsSnapshot, dx as RuntimeContextAnalyticsState, dy as RuntimeContextAnalyticsUnavailableField, R as RuntimeRenderSnapshot, dz as RuntimeSendToExternalArgs, dA as RuntimeSendToExternalResult, dB as SELECTION_TOOL_REGISTRY, dC as SaveExportParams, dD as SaveExportResult, dE as SaveSessionParams, dF as SaveSessionResult, dG as SaveSnapshotParams, dH as SaveSnapshotResult, dI as ScopeCardModel, dJ as ScopeIssueAction, dK as ScopeMetadataPersistence, dL as ScopeMetadataResolver, dM as ScopeMetadataStorageRef, dN as ScopeTagTouch, dO as SectionBreakType, dP as SectionLayoutPatch, dQ as SectionPageNumberingPatch, j as SelectionSnapshot, dR as SelectionToolKind, dS as SelectionToolRegistryEntry, dT as SendToExternalCallArgs, dU as SignatureAlgorithm, dV as SnapshotRefreshChangeKind, dW as SnapshotRefreshHints, dX as SnapshotRefreshInvalidateTarget, dY as SnapshotRefreshStaleTarget, dZ as StoryTextStreamSnapshot, d_ as StyleCatalogEntrySnapshot, d$ as StyleCatalogSnapshot, e0 as SuggestionEntrySnapshot, e1 as SuggestionGroup, e2 as SuggestionsSnapshot, e3 as SurfaceBlockSnapshot, e4 as SurfaceInlineSegment, e5 as SurfaceTableCellSnapshot, e6 as SurfaceTableRowSnapshot, e7 as SurfaceTextMark, e8 as TamperGate, e9 as TamperGateArgs, ea as TamperGateAttachArgs, eb as TamperGateEvent, ec as TamperGateGuardResult, ed as TextCommandAckKind, ee as TextProjection, ef as TextProjectionLine, eg as TextProjectionOptions, eh as TextProjectionStoryEntry, ei as TocEntrySnapshot, ej as TocRegionSnapshot, ek as TocSnapshot, el as TrackedChangeEntrySnapshot, em as TrackedChangesSnapshot, en as ViewMode, eo as WordReviewEditorChromeOptions, ep as WordReviewEditorChromePreset, eq as WordReviewEditorChromeVisibility, er as WordReviewEditorEvent, es as WorkflowBlockedCommandReason, et as WorkflowCandidateRange, eu as WorkflowCandidateRangeOptions, ev as WorkflowCommentMarkup, ew as WorkflowFieldMarkup, ex as WorkflowHighlightMarkup, ey as WorkflowMarkupBase, ez as WorkflowMarkupItem, eA as WorkflowMarkupKind, eB as WorkflowMarkupSnapshot, eC as WorkflowMetadataDefinition, eD as WorkflowMetadataEntry, eE as WorkflowMetadataMarkup, eF as WorkflowMetadataPersistence, eG as WorkflowMetadataSnapshot, eH as WorkflowOpaqueFragmentMarkup, eI as WorkflowOverlay, eJ as WorkflowOverlayPatch, eK as WorkflowProtectedRangeMarkup, eL as WorkflowRevisionMarkup, eM as WorkflowScope, eN as WorkflowScopeMode, eO as WorkflowScopeSnapshot, eP as WorkflowWorkItem, eQ as WorkspaceMode, eR as ZoomLevel, ax as createApiV3, eS as createCollabSession, eT as createCollabSessionBridge, eU as createCollabSessionFacet, eV as createHmacSigner, eW as createHmacVerifier, eX as createTamperGate, eY as resolveSelectionToolRegistry, eZ as runtimeSendToExternal, e_ as sendToExternal, e$ as signWorkflowPayloadXml, f0 as verifyWorkflowPayloadXml } from './public-types-8kVIB5HW.js';
3
3
  import React__default from 'react';
4
- export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-DqL8H0oZ.js';
5
- export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, V as ValidateOptions, c as ValidationFinding, d as ValidationReport } from './types-SllbCtGs.js';
4
+ export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-Dgp-2uYw.js';
5
+ export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, V as ValidateOptions, c as ValidationFinding, d as ValidationReport } from './types-Cin_abw3.js';
6
6
  import { Awareness } from 'y-protocols/awareness';
7
- import { C as CanonicalDocument } from './canonical-document-CfZIc-fC.js';
7
+ import { C as CanonicalDocument } from './canonical-document-COmM7v11.js';
8
8
  import 'yjs';
9
9
  import 'prosemirror-state';
10
10
  import 'prosemirror-model';
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  splitListParagraph,
27
27
  toggleBulletedList,
28
28
  toggleNumberedList
29
- } from "./chunk-GIFXKIM5.js";
29
+ } from "./chunk-JZZKTL7K.js";
30
30
  import {
31
31
  applyParagraphStyleToDocument
32
32
  } from "./chunk-6EXNNAO6.js";
@@ -105,12 +105,12 @@ import {
105
105
  resolveColor,
106
106
  tryReadLaycacheEnvelope,
107
107
  writeEnvelopeToOpcPackage
108
- } from "./chunk-EPFVMUKF.js";
108
+ } from "./chunk-NX7W6T7L.js";
109
109
  import {
110
110
  findTextMatches,
111
111
  parseCanonicalFragmentFromWordML,
112
112
  searchDocument
113
- } from "./chunk-5CCYF333.js";
113
+ } from "./chunk-HUWZ7AHE.js";
114
114
  import {
115
115
  clearLocalCursorState,
116
116
  getCursorColorForUser,
@@ -3866,6 +3866,9 @@ function createLoadingRuntimeBridge(input) {
3866
3866
  addScope: () => {
3867
3867
  throw createLoadingBoundaryError(input.snapshot.documentId, "scope");
3868
3868
  },
3869
+ addScopes: () => {
3870
+ throw createLoadingBoundaryError(input.snapshot.documentId, "scope");
3871
+ },
3869
3872
  getScope: () => null,
3870
3873
  compileScopeBundleById: () => null,
3871
3874
  compileScopeList: () => [],
@@ -14955,7 +14958,7 @@ var LAYER_DEBUG_PANES = [
14955
14958
  snippets: [
14956
14959
  { label: "Selection context", expression: "ref?.getRuntimeContextAnalytics?.()" },
14957
14960
  { label: "Document context", expression: "ref?.getRuntimeContextAnalytics?.({ scopeKind: 'document' })" },
14958
- { label: "Hot edit trace", expression: "runtime?.debug?.getHotEditTraces?.().at(-1)" },
14961
+ { label: "Hot edit trace", expression: "runtime?.debug?.getHotEditTraces?.()?.at(-1)" },
14959
14962
  { label: "View state", expression: "ref?.getViewState?.()" }
14960
14963
  ],
14961
14964
  routed: [
@@ -14969,8 +14972,8 @@ var LAYER_DEBUG_PANES = [
14969
14972
  focus: "Workflow scopes, markup, metadata, candidates, and scope-derived context.",
14970
14973
  snippets: [
14971
14974
  { label: "Scope snapshot", expression: "ref?.getWorkflowScopeSnapshot?.()" },
14972
- { label: "Query scopes", expression: "ref?.queryScopes?.({ includeHidden: true, includeInvisible: true })" },
14973
- { label: "Workflow markup", expression: "ref?.getWorkflowMarkupSnapshot?.()" }
14975
+ { label: "Query scopes", expression: "ref?.queryScopes?.({ includeHidden: true, includeInvisible: true, limit: 50 })" },
14976
+ { label: "Workflow markup", expression: "(() => { const m = ref?.getWorkflowMarkupSnapshot?.(); return m ? { itemCount: m.items?.length ?? 0, items: m.items?.slice(0, 50) ?? [] } : m; })()" }
14974
14977
  ],
14975
14978
  routed: [
14976
14979
  "Compiler replacement planning and semantic scope normalization remain Layer 08-owned."
@@ -14984,7 +14987,7 @@ var LAYER_DEBUG_PANES = [
14984
14987
  snippets: [
14985
14988
  { label: "Document analytics", expression: "ref?.getRuntimeContextAnalytics?.({ scopeKind: 'document' })" },
14986
14989
  { label: "Workflow analytics", expression: "ref?.getRuntimeContextAnalytics?.({ scopeKind: 'workflow_scope', scopeId: ref?.getInteractionGuardSnapshot?.()?.matchedScopeId })" },
14987
- { label: "Available scopes", expression: "ref?.queryScopes?.({ includeHidden: true, includeInvisible: true })" }
14990
+ { label: "Available scopes", expression: "ref?.queryScopes?.({ includeHidden: true, includeInvisible: true, limit: 50 })" }
14988
14991
  ],
14989
14992
  routed: [
14990
14993
  "AI audit references and action policy payloads are Layer 09-owned."
@@ -15012,7 +15015,7 @@ var LAYER_DEBUG_PANES = [
15012
15015
  snippets: [
15013
15016
  { label: "Navigation", expression: "ref?.getDocumentNavigationSnapshot?.()" },
15014
15017
  { label: "Review surface", expression: "({ comments: ref?.getCommentSidebarSnapshot?.(), changes: ref?.getTrackedChangesSnapshot?.() })" },
15015
- { label: "Hot edit traces", expression: "runtime?.debug?.getHotEditTraces?.()" },
15018
+ { label: "Hot edit traces", expression: "runtime?.debug?.getHotEditTraces?.()?.slice?.(-10)" },
15016
15019
  { label: "Compatibility", expression: "ref?.getCompatibilityReport?.()" }
15017
15020
  ],
15018
15021
  routed: [
@@ -15045,6 +15048,11 @@ import { Fragment as Fragment3, jsx as jsx15, jsxs as jsxs13 } from "react/jsx-r
15045
15048
  var MAX_HISTORY = 30;
15046
15049
  var MAX_ENTRIES = 50;
15047
15050
  var MAX_OUTPUT_CHARS = 8e3;
15051
+ var MAX_SERIALIZE_DEPTH = 6;
15052
+ var MAX_SERIALIZE_STRING_CHARS = 1e3;
15053
+ var MAX_SERIALIZE_ARRAY_ITEMS = 40;
15054
+ var MAX_SERIALIZE_OBJECT_KEYS = 80;
15055
+ var MAX_SERIALIZE_NODES = 2500;
15048
15056
  var HISTORY_STORAGE_KEY = "wre-runtime-repl-history";
15049
15057
  var HISTORY_STORAGE_VERSION = 1;
15050
15058
  function TwRuntimeReplDialog(props) {
@@ -15510,7 +15518,7 @@ function formatReplValue(value) {
15510
15518
  if (value === void 0) return "undefined";
15511
15519
  if (value === null) return "null";
15512
15520
  const type = typeof value;
15513
- if (type === "string") return JSON.stringify(value);
15521
+ if (type === "string") return truncate(JSON.stringify(value), MAX_OUTPUT_CHARS);
15514
15522
  if (type === "number" || type === "boolean" || type === "bigint") {
15515
15523
  return String(value);
15516
15524
  }
@@ -15520,7 +15528,7 @@ function formatReplValue(value) {
15520
15528
  return `[Function${fn.name ? `: ${fn.name}` : ""}]`;
15521
15529
  }
15522
15530
  try {
15523
- const serialized = JSON.stringify(value, createCircularReplacer(), 2);
15531
+ const serialized = JSON.stringify(createReplPreview(value), null, 2);
15524
15532
  if (serialized === void 0) {
15525
15533
  return String(value);
15526
15534
  }
@@ -15536,21 +15544,113 @@ function formatReplError(error) {
15536
15544
  }
15537
15545
  return truncate(String(error), MAX_OUTPUT_CHARS);
15538
15546
  }
15539
- function createCircularReplacer() {
15540
- const seen = /* @__PURE__ */ new WeakSet();
15541
- return function replacer(_key, value) {
15542
- if (typeof value === "bigint") return `${value.toString()}n`;
15543
- if (typeof value === "function") {
15544
- const fn = value;
15545
- return `[Function${fn.name ? `: ${fn.name}` : ""}]`;
15547
+ function createReplPreview(value) {
15548
+ return createReplPreviewValue(value, 0, {
15549
+ seen: /* @__PURE__ */ new WeakSet(),
15550
+ nodes: 0
15551
+ });
15552
+ }
15553
+ function createReplPreviewValue(value, depth, state) {
15554
+ if (value === null || typeof value === "number" || typeof value === "boolean") {
15555
+ return value;
15556
+ }
15557
+ if (typeof value === "string") {
15558
+ return value.length > MAX_SERIALIZE_STRING_CHARS ? `${value.slice(0, MAX_SERIALIZE_STRING_CHARS)}... [truncated ${value.length - MAX_SERIALIZE_STRING_CHARS} chars]` : value;
15559
+ }
15560
+ if (typeof value === "bigint") return `${value.toString()}n`;
15561
+ if (typeof value === "symbol") return value.toString();
15562
+ if (typeof value === "function") {
15563
+ const fn = value;
15564
+ return `[Function${fn.name ? `: ${fn.name}` : ""}]`;
15565
+ }
15566
+ if (typeof value !== "object") return String(value);
15567
+ state.nodes += 1;
15568
+ if (state.nodes > MAX_SERIALIZE_NODES) {
15569
+ return "[Max REPL preview nodes reached]";
15570
+ }
15571
+ const objectValue = value;
15572
+ if (state.seen.has(objectValue)) return "[Circular]";
15573
+ state.seen.add(objectValue);
15574
+ if (depth >= MAX_SERIALIZE_DEPTH) {
15575
+ return summarizePreviewBoundary(objectValue);
15576
+ }
15577
+ const domPreview = summarizeDomNode(objectValue);
15578
+ if (domPreview) return domPreview;
15579
+ if (Array.isArray(value)) {
15580
+ const preview = value.slice(0, MAX_SERIALIZE_ARRAY_ITEMS).map((item) => createReplPreviewValue(item, depth + 1, state));
15581
+ if (value.length > MAX_SERIALIZE_ARRAY_ITEMS) {
15582
+ preview.push(`[... ${value.length - MAX_SERIALIZE_ARRAY_ITEMS} more items]`);
15583
+ }
15584
+ return preview;
15585
+ }
15586
+ if (value instanceof Date) {
15587
+ return Number.isNaN(value.getTime()) ? "[Invalid Date]" : value.toISOString();
15588
+ }
15589
+ if (value instanceof Map) {
15590
+ const entries = [];
15591
+ let index = 0;
15592
+ for (const [key, entryValue] of value.entries()) {
15593
+ if (index >= MAX_SERIALIZE_OBJECT_KEYS) {
15594
+ entries.push("[additional map entries omitted]");
15595
+ break;
15596
+ }
15597
+ entries.push([
15598
+ createReplPreviewValue(key, depth + 1, state),
15599
+ createReplPreviewValue(entryValue, depth + 1, state)
15600
+ ]);
15601
+ index += 1;
15602
+ }
15603
+ return { "[Map]": entries };
15604
+ }
15605
+ if (value instanceof Set) {
15606
+ const entries = [];
15607
+ let index = 0;
15608
+ for (const entryValue of value.values()) {
15609
+ if (index >= MAX_SERIALIZE_OBJECT_KEYS) {
15610
+ entries.push("[additional set entries omitted]");
15611
+ break;
15612
+ }
15613
+ entries.push(createReplPreviewValue(entryValue, depth + 1, state));
15614
+ index += 1;
15546
15615
  }
15547
- if (typeof value === "symbol") return value.toString();
15548
- if (value !== null && typeof value === "object") {
15549
- if (seen.has(value)) return "[Circular]";
15550
- seen.add(value);
15616
+ return { "[Set]": entries };
15617
+ }
15618
+ const output = {};
15619
+ let count = 0;
15620
+ for (const key in value) {
15621
+ if (!Object.prototype.propertyIsEnumerable.call(value, key)) continue;
15622
+ if (count >= MAX_SERIALIZE_OBJECT_KEYS) {
15623
+ output["..."] = "[additional properties omitted]";
15624
+ break;
15551
15625
  }
15552
- return value;
15553
- };
15626
+ try {
15627
+ output[key] = createReplPreviewValue(
15628
+ value[key],
15629
+ depth + 1,
15630
+ state
15631
+ );
15632
+ } catch (error) {
15633
+ output[key] = `[unreadable property: ${formatReplError(error)}]`;
15634
+ }
15635
+ count += 1;
15636
+ }
15637
+ return output;
15638
+ }
15639
+ function summarizePreviewBoundary(value) {
15640
+ if (Array.isArray(value)) return `[Array(${value.length}) depth limit]`;
15641
+ const domPreview = summarizeDomNode(value);
15642
+ if (domPreview) return domPreview;
15643
+ const constructorName = value.constructor?.name;
15644
+ return constructorName && constructorName !== "Object" ? `[${constructorName} depth limit]` : "[Object depth limit]";
15645
+ }
15646
+ function summarizeDomNode(value) {
15647
+ const maybeNode = value;
15648
+ if (typeof maybeNode.nodeType !== "number" || typeof maybeNode.nodeName !== "string") {
15649
+ return null;
15650
+ }
15651
+ const id = typeof maybeNode.id === "string" && maybeNode.id.length > 0 ? `#${maybeNode.id}` : "";
15652
+ const className = typeof maybeNode.className === "string" && maybeNode.className.length > 0 ? `.${maybeNode.className.trim().replace(/\s+/g, ".")}` : "";
15653
+ return `[DOM ${maybeNode.nodeName.toLowerCase()}${id}${className}]`;
15554
15654
  }
15555
15655
  function truncate(text, max) {
15556
15656
  if (text.length <= max) return text;
@@ -1,7 +1,7 @@
1
- export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-BQ7AB-0v.cjs';
2
- import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-CfZIc-fC.cjs';
3
- import { b7 as EditorAnchorProjection } from '../public-types-D31xKNGc.cjs';
4
- import '../types-B2y94n5t.cjs';
1
+ export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-Cr35kVUi.cjs';
2
+ import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-COmM7v11.cjs';
3
+ import { b7 as EditorAnchorProjection } from '../public-types-CSSH2Whc.cjs';
4
+ import '../types-qsS39ZkQ.cjs';
5
5
  import 'react';
6
6
  import 'yjs';
7
7
  import 'y-protocols/awareness';
@@ -1,7 +1,7 @@
1
- export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-Cy6OYBfn.js';
2
- import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-CfZIc-fC.js';
3
- import { b7 as EditorAnchorProjection } from '../public-types-DqYt8GdP.js';
4
- import '../types-SllbCtGs.js';
1
+ export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-uGY6nDZP.js';
2
+ import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-COmM7v11.js';
3
+ import { b7 as EditorAnchorProjection } from '../public-types-8kVIB5HW.js';
4
+ import '../types-Cin_abw3.js';
5
5
  import 'react';
6
6
  import 'yjs';
7
7
  import 'y-protocols/awareness';
package/dist/legal.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as CanonicalDocument, e as DocumentNode } from './canonical-document-CfZIc-fC.cjs';
1
+ import { C as CanonicalDocument, e as DocumentNode } from './canonical-document-COmM7v11.cjs';
2
2
 
3
3
  interface LegalBookmark {
4
4
  bookmarkId: string;
package/dist/legal.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as CanonicalDocument, e as DocumentNode } from './canonical-document-CfZIc-fC.js';
1
+ import { C as CanonicalDocument, e as DocumentNode } from './canonical-document-COmM7v11.js';
2
2
 
3
3
  interface LegalBookmark {
4
4
  bookmarkId: string;
@@ -1,6 +1,6 @@
1
- import { C as CanonicalDocument } from './canonical-document-CfZIc-fC.cjs';
2
- import { az as EditorStateNamespace, aA as EditorStateLocation, a as EditorSessionState, P as PersistedEditorSnapshot, t as EditorError, u as ProtectionSnapshot, b as ExportDocxOptions, c as ExportResult, L as LoadStage, E as EditorHostAdapter, aB as LoadScheduler, d as EditorSurfaceSnapshot } from './public-types-D31xKNGc.cjs';
3
- import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-B2y94n5t.cjs';
1
+ import { C as CanonicalDocument } from './canonical-document-COmM7v11.cjs';
2
+ import { az as EditorStateNamespace, aA as EditorStateLocation, a as EditorSessionState, P as PersistedEditorSnapshot, t as EditorError, u as ProtectionSnapshot, b as ExportDocxOptions, c as ExportResult, L as LoadStage, E as EditorHostAdapter, aB as LoadScheduler, d as EditorSurfaceSnapshot } from './public-types-CSSH2Whc.cjs';
3
+ import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-qsS39ZkQ.cjs';
4
4
 
5
5
  interface EditorStatePayloadNamespaceEntry {
6
6
  namespace: EditorStateNamespace;
@@ -1,6 +1,6 @@
1
- import { C as CanonicalDocument } from './canonical-document-CfZIc-fC.js';
2
- import { az as EditorStateNamespace, aA as EditorStateLocation, a as EditorSessionState, P as PersistedEditorSnapshot, t as EditorError, u as ProtectionSnapshot, b as ExportDocxOptions, c as ExportResult, L as LoadStage, E as EditorHostAdapter, aB as LoadScheduler, d as EditorSurfaceSnapshot } from './public-types-DqYt8GdP.js';
3
- import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-SllbCtGs.js';
1
+ import { C as CanonicalDocument } from './canonical-document-COmM7v11.js';
2
+ import { az as EditorStateNamespace, aA as EditorStateLocation, a as EditorSessionState, P as PersistedEditorSnapshot, t as EditorError, u as ProtectionSnapshot, b as ExportDocxOptions, c as ExportResult, L as LoadStage, E as EditorHostAdapter, aB as LoadScheduler, d as EditorSurfaceSnapshot } from './public-types-8kVIB5HW.js';
3
+ import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-Cin_abw3.js';
4
4
 
5
5
  interface EditorStatePayloadNamespaceEntry {
6
6
  namespace: EditorStateNamespace;
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import * as Y from 'yjs';
4
4
  import * as y_protocols_awareness from 'y-protocols/awareness';
5
5
  import { Awareness } from 'y-protocols/awareness';
6
- import { S as SectionProperties, f as PersistedEditorSnapshotVersion, g as CDS_SCHEMA_VERSION, I as ISO8601DateTime, C as CanonicalDocument, h as CompatibilityReportVersion, i as Base64, M as ModelValidationIssue, j as CommentThread, k as CommentEntry, l as CommentResolution, m as RevisionMetadataRecord$1, n as RevisionRecord$1, p as CanonicalSourceRef, q as SdtDataBindingState, F as FieldFamily$1, r as FieldRefreshStatus$1, T as TocRegion, s as CanonicalAnchor, t as PreserveOnlyObjectSizing, u as TableCellNode, B as BlockNode, v as TableLook, w as TableStyleFormatting, x as TableWidth, y as TableBorders, z as TableStyleConditionalRegion, A as TableCellBorders, E as CellShading, G as TextMark, H as Mutable, J as ParagraphNode, K as TableIndent, L as TableCellMargins, N as TableNode, Q as FieldRegistryEntry, U as FootnoteProperties, V as EndnoteProperties, W as CanonicalTheme, X as InlineNode, Y as NumberingLevelParagraphGeometry, Z as ParagraphSpacing, _ as ParagraphIndentation, $ as TabStop, a0 as CanonicalRunFormatting, a1 as NumPicBullet, a2 as CanonicalParagraphFormatting, a3 as FillSpec, a4 as TextProperties, a5 as StrokeSpec, a6 as ChartModel, a7 as ResolvedTheme, a8 as ColorRef, a9 as SupportedFieldFamily$1, aa as HeaderDocument, ab as FooterDocument, ac as ParagraphBorders } from './canonical-document-CfZIc-fC.cjs';
6
+ import { S as SectionProperties, f as PersistedEditorSnapshotVersion, g as CDS_SCHEMA_VERSION, I as ISO8601DateTime, C as CanonicalDocument, h as CompatibilityReportVersion, i as Base64, M as ModelValidationIssue, j as CommentThread, k as CommentEntry, l as CommentResolution, m as RevisionMetadataRecord$1, n as RevisionRecord$1, p as CanonicalSourceRef, q as SdtDataBindingState, F as FieldFamily$1, r as FieldRefreshStatus$1, T as TocRegion, s as CanonicalAnchor, t as PreserveOnlyObjectSizing, u as TableCellNode, B as BlockNode, v as TableLook, w as TableStyleFormatting, x as TableWidth, y as TableBorders, z as TableStyleConditionalRegion, A as TableCellBorders, E as CellShading, G as TextMark, H as Mutable, J as ParagraphNode, K as TableIndent, L as TableCellMargins, N as TableNode, Q as FieldRegistryEntry, U as FootnoteProperties, V as EndnoteProperties, W as CanonicalTheme, X as InlineNode, Y as NumberingLevelParagraphGeometry, Z as ParagraphSpacing, _ as ParagraphIndentation, $ as TabStop, a0 as CanonicalRunFormatting, a1 as NumPicBullet, a2 as CanonicalParagraphFormatting, a3 as FillSpec, a4 as TextProperties, a5 as StrokeSpec, a6 as ChartModel, a7 as ResolvedTheme, a8 as ColorRef, a9 as SupportedFieldFamily$1, aa as HeaderDocument, ab as FooterDocument, ac as ParagraphBorders, ad as NumberingCatalog } from './canonical-document-COmM7v11.js';
7
7
  import * as prosemirror_state from 'prosemirror-state';
8
8
  import { Command } from 'prosemirror-state';
9
9
  import { Schema } from 'prosemirror-model';
@@ -8080,6 +8080,7 @@ interface DocumentRuntime {
8080
8080
  addReplyToChange(changeId: string, body: string, authorId?: string): AddCommentReplyResult | null;
8081
8081
  editCommentBody(commentId: string, body: string): void;
8082
8082
  addScope(params: AddScopeParams): AddScopeResult;
8083
+ addScopes(params: readonly AddScopeParams[]): readonly AddScopeResult[];
8083
8084
  getScope(scopeId: string): WorkflowScope | null;
8084
8085
  /**
8085
8086
  * Layer-08 scope-bundle lookup keyed by scopeId — read-side join over
@@ -9014,7 +9015,7 @@ interface RuntimeWordFieldMatrixProvider {
9014
9015
  * `runtime.collab.*` family graduate its live path when hosts supply it
9015
9016
  * and fall back to deterministic mocks when they don't.
9016
9017
  */
9017
- type RuntimeApiHandle = Pick<DocumentRuntime, "now" | "getSessionState" | "setDocumentMode" | "exportDocx" | "getCompatibilityReport" | "getWarnings" | "getRenderSnapshot" | "getDocumentNavigationSnapshot" | "getCanonicalDocument" | "findAllText" | "replaceText" | "applyActiveStoryTextCommand" | "applyFormattingOperation" | "getReviewWorkSnapshot" | "getSuggestionsSnapshot" | "acceptChange" | "rejectChange" | "resolveComment" | "getCommentThreadForChange" | "ensureCommentThreadForChange" | "addReplyToChange" | "queryScopes" | "getWorkflowMarkupSnapshot" | "getInteractionGuardSnapshot" | "getWorkflowOverlay" | "addScope" | "setScopeGuardPolicy" | "getScopeGuardPolicy" | "setWorkflowMetadataEntries" | "getWorkflowMetadataSnapshot" | "getVisibilityPolicy" | "getVisibilityPolicies" | "setVisibilityPolicy" | "clearVisibilityPolicy" | "subscribeVisibilityPolicy" | "getMarkupModePolicy" | "setMarkupModePolicy" | "subscribeMarkupModePolicy" | "getScope" | "getLocationForAnchor" | "compileScopeBundleById" | "compileScopeList" | "compileScopeCardById" | "compileScopeRailSnapshot" | "applyScopeReplacement" | "applyScopeFormatting" | "dispatch" | "debug" | "layout" | "geometry"> & {
9018
+ type RuntimeApiHandle = Pick<DocumentRuntime, "now" | "getSessionState" | "setDocumentMode" | "exportDocx" | "getCompatibilityReport" | "getWarnings" | "getRenderSnapshot" | "getDocumentNavigationSnapshot" | "getCanonicalDocument" | "findAllText" | "replaceText" | "applyActiveStoryTextCommand" | "applyFormattingOperation" | "getReviewWorkSnapshot" | "getSuggestionsSnapshot" | "acceptChange" | "rejectChange" | "resolveComment" | "getCommentThreadForChange" | "ensureCommentThreadForChange" | "addReplyToChange" | "queryScopes" | "getWorkflowMarkupSnapshot" | "getInteractionGuardSnapshot" | "getWorkflowOverlay" | "addScope" | "addScopes" | "setScopeGuardPolicy" | "getScopeGuardPolicy" | "setWorkflowMetadataEntries" | "getWorkflowMetadataSnapshot" | "getVisibilityPolicy" | "getVisibilityPolicies" | "setVisibilityPolicy" | "clearVisibilityPolicy" | "subscribeVisibilityPolicy" | "getMarkupModePolicy" | "setMarkupModePolicy" | "subscribeMarkupModePolicy" | "getScope" | "getLocationForAnchor" | "compileScopeBundleById" | "compileScopeList" | "compileScopeCardById" | "compileScopeRailSnapshot" | "applyScopeReplacement" | "applyScopeFormatting" | "dispatch" | "debug" | "layout" | "geometry"> & {
9018
9019
  /**
9019
9020
  * Optional collab session — hosts that wire Yjs/Awareness pass the
9020
9021
  * session here so `api.runtime.collab.getPresence` / `.getPosture`
@@ -9568,7 +9569,11 @@ interface CreateScopeFromAnchorInput {
9568
9569
  readonly to: number;
9569
9570
  /** Non-main-body story (footnote / header / endnote). Defaults to `{kind:"main"}`. */
9570
9571
  readonly storyTarget?: EditorStoryTarget;
9571
- };
9572
+ } | (Extract<EditorAnchorProjection, {
9573
+ readonly kind: "range";
9574
+ }> & {
9575
+ readonly storyTarget?: EditorStoryTarget;
9576
+ }) | SelectionSnapshot;
9572
9577
  readonly mode?: "edit" | "suggest" | "comment" | "view";
9573
9578
  readonly label?: string;
9574
9579
  readonly visibility?: ScopeVisibility;
@@ -9585,7 +9590,7 @@ type CreateScopeFromAnchorResult = {
9585
9590
  } | {
9586
9591
  readonly scopeId: "";
9587
9592
  readonly status: "range-invalid";
9588
- readonly reason: "from-negative" | "to-less-than-from" | "range-exceeds-story-length" | "non-paragraph-target" | "empty-document";
9593
+ readonly reason: "from-negative" | "non-finite-range" | "to-less-than-from" | "range-exceeds-story-length" | "non-paragraph-target" | "empty-document";
9589
9594
  readonly from: number;
9590
9595
  readonly to: number;
9591
9596
  readonly storyLength: number;
@@ -11006,7 +11011,7 @@ declare function createViewportFamily(runtime: RuntimeApiHandle): {
11006
11011
  */
11007
11012
 
11008
11013
  type RuntimeListCommand = "toggle-numbered" | "toggle-bulleted" | "indent" | "outdent" | "restart-numbering" | "continue-numbering" | "create" | "attach" | "detach" | "join" | "separate" | "split" | "set-value" | "apply-template" | "capture-template" | "apply-preset" | "set-level-numbering" | "set-level-bullet" | "set-level-picture-bullet" | "set-level-alignment" | "set-level-indents" | "set-level-trailing-character" | "set-level-marker-font" | "set-level-text" | "set-level-start" | "set-level-layout" | "convert-to-text" | "paste-fragment" | "drop-fragment";
11009
- type RuntimeListBlockerCode = "list-target-required" | "list-target-malformed" | "list-target-not-found" | "list-target-stale" | "list-target-non-editable" | "list-command-unsupported" | "list-command-preflight-blocked" | "list-continue-target-missing" | "list-join-target-missing";
11014
+ type RuntimeListBlockerCode = "list-target-required" | "list-target-malformed" | "list-target-not-found" | "list-target-stale" | "list-target-non-editable" | "list-command-unsupported" | "list-command-preflight-blocked" | "list-target-wrong-story" | "list-continue-target-missing" | "list-join-target-missing";
11010
11015
  interface RuntimeListTargetInput {
11011
11016
  readonly targetKey?: string;
11012
11017
  readonly addressKey?: string;
@@ -14849,10 +14854,13 @@ interface InsertImageOptions {
14849
14854
  * parsers that will drive it in later slices. Carries zero or more canonical
14850
14855
  * block nodes (paragraphs, tables, SDTs, etc.); a host that constructs one
14851
14856
  * directly is responsible for the blocks being well-formed per the canonical
14852
- * schema. The HTML / Word-clipboard parsers (Slices 2+3) will produce these.
14857
+ * schema. Numbered fragments may include the catalog entries referenced by
14858
+ * their blocks; the runtime merge path remaps colliding numbering ids before
14859
+ * splicing. The HTML / Word-clipboard parsers (Slices 2+3) will produce these.
14853
14860
  */
14854
14861
  interface CanonicalDocumentFragment {
14855
14862
  blocks: BlockNode[];
14863
+ numbering?: NumberingCatalog;
14856
14864
  }
14857
14865
  /**
14858
14866
  * I7 — `replaceText` / `text.insert` formatting directive.
@@ -16501,14 +16509,14 @@ interface AddScopeResult {
16501
16509
  * Structured diagnostic for the marker-plant attempt. Omitted on the
16502
16510
  * happy path for back-compat; populated with `planted: false` + a
16503
16511
  * typed reason when the plant was refused (non-paragraph target,
16504
- * out-of-bounds, empty-document). Cross-paragraph ranges plant
16512
+ * out-of-bounds, non-finite range, empty-document). Cross-paragraph ranges plant
16505
16513
  * successfully as of 2026-04-24 — see the multi-paragraph-scopes
16506
16514
  * slice. Callers that previously assumed every returned `scopeId`
16507
16515
  * was live should migrate to checking this field.
16508
16516
  */
16509
16517
  plantStatus?: {
16510
16518
  readonly planted: false;
16511
- readonly reason: "non-paragraph-target" | "range-out-of-bounds" | "empty-document";
16519
+ readonly reason: "non-paragraph-target" | "range-out-of-bounds" | "non-finite-range" | "empty-document";
16512
16520
  readonly requestedFrom: number;
16513
16521
  readonly requestedTo: number;
16514
16522
  /** Present on `non-paragraph-target`. */
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import * as Y from 'yjs';
4
4
  import * as y_protocols_awareness from 'y-protocols/awareness';
5
5
  import { Awareness } from 'y-protocols/awareness';
6
- import { S as SectionProperties, f as PersistedEditorSnapshotVersion, g as CDS_SCHEMA_VERSION, I as ISO8601DateTime, C as CanonicalDocument, h as CompatibilityReportVersion, i as Base64, M as ModelValidationIssue, j as CommentThread, k as CommentEntry, l as CommentResolution, m as RevisionMetadataRecord$1, n as RevisionRecord$1, p as CanonicalSourceRef, q as SdtDataBindingState, F as FieldFamily$1, r as FieldRefreshStatus$1, T as TocRegion, s as CanonicalAnchor, t as PreserveOnlyObjectSizing, u as TableCellNode, B as BlockNode, v as TableLook, w as TableStyleFormatting, x as TableWidth, y as TableBorders, z as TableStyleConditionalRegion, A as TableCellBorders, E as CellShading, G as TextMark, H as Mutable, J as ParagraphNode, K as TableIndent, L as TableCellMargins, N as TableNode, Q as FieldRegistryEntry, U as FootnoteProperties, V as EndnoteProperties, W as CanonicalTheme, X as InlineNode, Y as NumberingLevelParagraphGeometry, Z as ParagraphSpacing, _ as ParagraphIndentation, $ as TabStop, a0 as CanonicalRunFormatting, a1 as NumPicBullet, a2 as CanonicalParagraphFormatting, a3 as FillSpec, a4 as TextProperties, a5 as StrokeSpec, a6 as ChartModel, a7 as ResolvedTheme, a8 as ColorRef, a9 as SupportedFieldFamily$1, aa as HeaderDocument, ab as FooterDocument, ac as ParagraphBorders } from './canonical-document-CfZIc-fC.js';
6
+ import { S as SectionProperties, f as PersistedEditorSnapshotVersion, g as CDS_SCHEMA_VERSION, I as ISO8601DateTime, C as CanonicalDocument, h as CompatibilityReportVersion, i as Base64, M as ModelValidationIssue, j as CommentThread, k as CommentEntry, l as CommentResolution, m as RevisionMetadataRecord$1, n as RevisionRecord$1, p as CanonicalSourceRef, q as SdtDataBindingState, F as FieldFamily$1, r as FieldRefreshStatus$1, T as TocRegion, s as CanonicalAnchor, t as PreserveOnlyObjectSizing, u as TableCellNode, B as BlockNode, v as TableLook, w as TableStyleFormatting, x as TableWidth, y as TableBorders, z as TableStyleConditionalRegion, A as TableCellBorders, E as CellShading, G as TextMark, H as Mutable, J as ParagraphNode, K as TableIndent, L as TableCellMargins, N as TableNode, Q as FieldRegistryEntry, U as FootnoteProperties, V as EndnoteProperties, W as CanonicalTheme, X as InlineNode, Y as NumberingLevelParagraphGeometry, Z as ParagraphSpacing, _ as ParagraphIndentation, $ as TabStop, a0 as CanonicalRunFormatting, a1 as NumPicBullet, a2 as CanonicalParagraphFormatting, a3 as FillSpec, a4 as TextProperties, a5 as StrokeSpec, a6 as ChartModel, a7 as ResolvedTheme, a8 as ColorRef, a9 as SupportedFieldFamily$1, aa as HeaderDocument, ab as FooterDocument, ac as ParagraphBorders, ad as NumberingCatalog } from './canonical-document-COmM7v11.cjs';
7
7
  import * as prosemirror_state from 'prosemirror-state';
8
8
  import { Command } from 'prosemirror-state';
9
9
  import { Schema } from 'prosemirror-model';
@@ -8080,6 +8080,7 @@ interface DocumentRuntime {
8080
8080
  addReplyToChange(changeId: string, body: string, authorId?: string): AddCommentReplyResult | null;
8081
8081
  editCommentBody(commentId: string, body: string): void;
8082
8082
  addScope(params: AddScopeParams): AddScopeResult;
8083
+ addScopes(params: readonly AddScopeParams[]): readonly AddScopeResult[];
8083
8084
  getScope(scopeId: string): WorkflowScope | null;
8084
8085
  /**
8085
8086
  * Layer-08 scope-bundle lookup keyed by scopeId — read-side join over
@@ -9014,7 +9015,7 @@ interface RuntimeWordFieldMatrixProvider {
9014
9015
  * `runtime.collab.*` family graduate its live path when hosts supply it
9015
9016
  * and fall back to deterministic mocks when they don't.
9016
9017
  */
9017
- type RuntimeApiHandle = Pick<DocumentRuntime, "now" | "getSessionState" | "setDocumentMode" | "exportDocx" | "getCompatibilityReport" | "getWarnings" | "getRenderSnapshot" | "getDocumentNavigationSnapshot" | "getCanonicalDocument" | "findAllText" | "replaceText" | "applyActiveStoryTextCommand" | "applyFormattingOperation" | "getReviewWorkSnapshot" | "getSuggestionsSnapshot" | "acceptChange" | "rejectChange" | "resolveComment" | "getCommentThreadForChange" | "ensureCommentThreadForChange" | "addReplyToChange" | "queryScopes" | "getWorkflowMarkupSnapshot" | "getInteractionGuardSnapshot" | "getWorkflowOverlay" | "addScope" | "setScopeGuardPolicy" | "getScopeGuardPolicy" | "setWorkflowMetadataEntries" | "getWorkflowMetadataSnapshot" | "getVisibilityPolicy" | "getVisibilityPolicies" | "setVisibilityPolicy" | "clearVisibilityPolicy" | "subscribeVisibilityPolicy" | "getMarkupModePolicy" | "setMarkupModePolicy" | "subscribeMarkupModePolicy" | "getScope" | "getLocationForAnchor" | "compileScopeBundleById" | "compileScopeList" | "compileScopeCardById" | "compileScopeRailSnapshot" | "applyScopeReplacement" | "applyScopeFormatting" | "dispatch" | "debug" | "layout" | "geometry"> & {
9018
+ type RuntimeApiHandle = Pick<DocumentRuntime, "now" | "getSessionState" | "setDocumentMode" | "exportDocx" | "getCompatibilityReport" | "getWarnings" | "getRenderSnapshot" | "getDocumentNavigationSnapshot" | "getCanonicalDocument" | "findAllText" | "replaceText" | "applyActiveStoryTextCommand" | "applyFormattingOperation" | "getReviewWorkSnapshot" | "getSuggestionsSnapshot" | "acceptChange" | "rejectChange" | "resolveComment" | "getCommentThreadForChange" | "ensureCommentThreadForChange" | "addReplyToChange" | "queryScopes" | "getWorkflowMarkupSnapshot" | "getInteractionGuardSnapshot" | "getWorkflowOverlay" | "addScope" | "addScopes" | "setScopeGuardPolicy" | "getScopeGuardPolicy" | "setWorkflowMetadataEntries" | "getWorkflowMetadataSnapshot" | "getVisibilityPolicy" | "getVisibilityPolicies" | "setVisibilityPolicy" | "clearVisibilityPolicy" | "subscribeVisibilityPolicy" | "getMarkupModePolicy" | "setMarkupModePolicy" | "subscribeMarkupModePolicy" | "getScope" | "getLocationForAnchor" | "compileScopeBundleById" | "compileScopeList" | "compileScopeCardById" | "compileScopeRailSnapshot" | "applyScopeReplacement" | "applyScopeFormatting" | "dispatch" | "debug" | "layout" | "geometry"> & {
9018
9019
  /**
9019
9020
  * Optional collab session — hosts that wire Yjs/Awareness pass the
9020
9021
  * session here so `api.runtime.collab.getPresence` / `.getPosture`
@@ -9568,7 +9569,11 @@ interface CreateScopeFromAnchorInput {
9568
9569
  readonly to: number;
9569
9570
  /** Non-main-body story (footnote / header / endnote). Defaults to `{kind:"main"}`. */
9570
9571
  readonly storyTarget?: EditorStoryTarget;
9571
- };
9572
+ } | (Extract<EditorAnchorProjection, {
9573
+ readonly kind: "range";
9574
+ }> & {
9575
+ readonly storyTarget?: EditorStoryTarget;
9576
+ }) | SelectionSnapshot;
9572
9577
  readonly mode?: "edit" | "suggest" | "comment" | "view";
9573
9578
  readonly label?: string;
9574
9579
  readonly visibility?: ScopeVisibility;
@@ -9585,7 +9590,7 @@ type CreateScopeFromAnchorResult = {
9585
9590
  } | {
9586
9591
  readonly scopeId: "";
9587
9592
  readonly status: "range-invalid";
9588
- readonly reason: "from-negative" | "to-less-than-from" | "range-exceeds-story-length" | "non-paragraph-target" | "empty-document";
9593
+ readonly reason: "from-negative" | "non-finite-range" | "to-less-than-from" | "range-exceeds-story-length" | "non-paragraph-target" | "empty-document";
9589
9594
  readonly from: number;
9590
9595
  readonly to: number;
9591
9596
  readonly storyLength: number;
@@ -11006,7 +11011,7 @@ declare function createViewportFamily(runtime: RuntimeApiHandle): {
11006
11011
  */
11007
11012
 
11008
11013
  type RuntimeListCommand = "toggle-numbered" | "toggle-bulleted" | "indent" | "outdent" | "restart-numbering" | "continue-numbering" | "create" | "attach" | "detach" | "join" | "separate" | "split" | "set-value" | "apply-template" | "capture-template" | "apply-preset" | "set-level-numbering" | "set-level-bullet" | "set-level-picture-bullet" | "set-level-alignment" | "set-level-indents" | "set-level-trailing-character" | "set-level-marker-font" | "set-level-text" | "set-level-start" | "set-level-layout" | "convert-to-text" | "paste-fragment" | "drop-fragment";
11009
- type RuntimeListBlockerCode = "list-target-required" | "list-target-malformed" | "list-target-not-found" | "list-target-stale" | "list-target-non-editable" | "list-command-unsupported" | "list-command-preflight-blocked" | "list-continue-target-missing" | "list-join-target-missing";
11014
+ type RuntimeListBlockerCode = "list-target-required" | "list-target-malformed" | "list-target-not-found" | "list-target-stale" | "list-target-non-editable" | "list-command-unsupported" | "list-command-preflight-blocked" | "list-target-wrong-story" | "list-continue-target-missing" | "list-join-target-missing";
11010
11015
  interface RuntimeListTargetInput {
11011
11016
  readonly targetKey?: string;
11012
11017
  readonly addressKey?: string;
@@ -14849,10 +14854,13 @@ interface InsertImageOptions {
14849
14854
  * parsers that will drive it in later slices. Carries zero or more canonical
14850
14855
  * block nodes (paragraphs, tables, SDTs, etc.); a host that constructs one
14851
14856
  * directly is responsible for the blocks being well-formed per the canonical
14852
- * schema. The HTML / Word-clipboard parsers (Slices 2+3) will produce these.
14857
+ * schema. Numbered fragments may include the catalog entries referenced by
14858
+ * their blocks; the runtime merge path remaps colliding numbering ids before
14859
+ * splicing. The HTML / Word-clipboard parsers (Slices 2+3) will produce these.
14853
14860
  */
14854
14861
  interface CanonicalDocumentFragment {
14855
14862
  blocks: BlockNode[];
14863
+ numbering?: NumberingCatalog;
14856
14864
  }
14857
14865
  /**
14858
14866
  * I7 — `replaceText` / `text.insert` formatting directive.
@@ -16501,14 +16509,14 @@ interface AddScopeResult {
16501
16509
  * Structured diagnostic for the marker-plant attempt. Omitted on the
16502
16510
  * happy path for back-compat; populated with `planted: false` + a
16503
16511
  * typed reason when the plant was refused (non-paragraph target,
16504
- * out-of-bounds, empty-document). Cross-paragraph ranges plant
16512
+ * out-of-bounds, non-finite range, empty-document). Cross-paragraph ranges plant
16505
16513
  * successfully as of 2026-04-24 — see the multi-paragraph-scopes
16506
16514
  * slice. Callers that previously assumed every returned `scopeId`
16507
16515
  * was live should migrate to checking this field.
16508
16516
  */
16509
16517
  plantStatus?: {
16510
16518
  readonly planted: false;
16511
- readonly reason: "non-paragraph-target" | "range-out-of-bounds" | "empty-document";
16519
+ readonly reason: "non-paragraph-target" | "range-out-of-bounds" | "non-finite-range" | "empty-document";
16512
16520
  readonly requestedFrom: number;
16513
16521
  readonly requestedTo: number;
16514
16522
  /** Present on `non-paragraph-target`. */