@beyondwork/docx-react-component 1.0.124 → 1.0.125
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/api/public-types.cjs +147 -35
- package/dist/api/public-types.d.cts +2 -2
- package/dist/api/public-types.d.ts +2 -2
- package/dist/api/public-types.js +3 -3
- package/dist/api/v3.cjs +791 -101
- package/dist/api/v3.d.cts +3 -3
- package/dist/api/v3.d.ts +3 -3
- package/dist/api/v3.js +10 -10
- package/dist/{canonical-document-CG2TgAzj.d.cts → canonical-document-CXCFCbAz.d.cts} +2 -0
- package/dist/{canonical-document-CG2TgAzj.d.ts → canonical-document-CXCFCbAz.d.ts} +2 -0
- package/dist/{chunk-PFYUJU3Q.js → chunk-2QL5DAKF.js} +98 -43
- package/dist/{chunk-4IPEZYQX.js → chunk-4EENH4FG.js} +1 -1
- package/dist/{chunk-BOHHIVQ2.js → chunk-4G3OS2H6.js} +3 -3
- package/dist/{chunk-A74Y5NE4.js → chunk-4YJVRIUB.js} +52 -21
- package/dist/{chunk-FNWKE74J.js → chunk-5DGKFNQT.js} +5 -1
- package/dist/{chunk-RSYN6FTS.js → chunk-6F5QW44A.js} +2 -2
- package/dist/{chunk-KOHQFZMM.js → chunk-BYSRJ4FE.js} +1 -1
- package/dist/{chunk-H6IL5ABU.js → chunk-CXSYRB37.js} +64 -20
- package/dist/{chunk-32ZAOQ54.js → chunk-D5HYZQTG.js} +1 -1
- package/dist/{chunk-TY4DIJO3.js → chunk-ESJ2MES5.js} +1 -1
- package/dist/{chunk-ZMRO6P3A.js → chunk-JN444Z5S.js} +505 -44
- package/dist/{chunk-IR7QV2BX.js → chunk-KV435YXO.js} +2 -2
- package/dist/{chunk-N4VIXI2Z.js → chunk-MWSBGJQO.js} +137 -18
- package/dist/{chunk-Q76XPPTA.js → chunk-OHTK7F3F.js} +96 -13
- package/dist/{chunk-MPH4ZQS4.js → chunk-QT3LX4FA.js} +321 -51
- package/dist/{chunk-7PC6XUNO.js → chunk-TQDQU2E3.js} +2 -2
- package/dist/{chunk-4B74ETJI.js → chunk-V6XVZFFH.js} +2 -2
- package/dist/{chunk-NAMAWCXN.js → chunk-YD2JE54B.js} +1 -1
- package/dist/{chunk-ZRHLLPSJ.js → chunk-YHZHPXDB.js} +85 -18
- package/dist/{chunk-HXHQA4BU.js → chunk-YIYM4ZAP.js} +1 -1
- package/dist/{chunk-LGWNN3L2.js → chunk-ZDOAUP3V.js} +2 -2
- package/dist/compare.d.cts +1 -1
- package/dist/compare.d.ts +1 -1
- package/dist/core/commands/formatting-commands.d.cts +2 -2
- package/dist/core/commands/formatting-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.cjs +65 -20
- package/dist/core/commands/image-commands.d.cts +2 -2
- package/dist/core/commands/image-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.js +5 -5
- package/dist/core/commands/section-layout-commands.d.cts +2 -2
- package/dist/core/commands/section-layout-commands.d.ts +2 -2
- package/dist/core/commands/style-commands.d.cts +2 -2
- package/dist/core/commands/style-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.cjs +65 -20
- package/dist/core/commands/table-structure-commands.d.cts +2 -2
- package/dist/core/commands/table-structure-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.js +4 -4
- package/dist/core/commands/text-commands.cjs +66 -21
- package/dist/core/commands/text-commands.d.cts +2 -2
- package/dist/core/commands/text-commands.d.ts +2 -2
- package/dist/core/commands/text-commands.js +5 -5
- package/dist/core/selection/mapping.d.cts +2 -2
- package/dist/core/selection/mapping.d.ts +2 -2
- package/dist/core/state/editor-state.d.cts +2 -2
- package/dist/core/state/editor-state.d.ts +2 -2
- package/dist/index.cjs +1341 -193
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +39 -21
- package/dist/io/docx-session.cjs +51 -20
- package/dist/io/docx-session.d.cts +4 -4
- package/dist/io/docx-session.d.ts +4 -4
- package/dist/io/docx-session.js +4 -4
- package/dist/legal.cjs +36 -12
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/legal.js +3 -3
- package/dist/{loader-D9y4ZRjj.d.ts → loader-B1MxvbeV.d.ts} +3 -3
- package/dist/{loader-D9KCtj4m.d.cts → loader-CJXsswcd.d.cts} +3 -3
- package/dist/{public-types-CNnMHZM9.d.ts → public-types-BEGhv2YR.d.ts} +108 -6
- package/dist/{public-types-DajNGKV4.d.cts → public-types-DrhlQ5Zy.d.cts} +108 -6
- package/dist/public-types.cjs +147 -35
- package/dist/public-types.d.cts +2 -2
- package/dist/public-types.d.ts +2 -2
- package/dist/public-types.js +3 -3
- package/dist/runtime/collab.d.cts +3 -3
- package/dist/runtime/collab.d.ts +3 -3
- package/dist/runtime/document-runtime.cjs +685 -98
- package/dist/runtime/document-runtime.d.cts +2 -2
- package/dist/runtime/document-runtime.d.ts +2 -2
- package/dist/runtime/document-runtime.js +14 -14
- package/dist/{session-DyQGlryH.d.cts → session-Bp3zqnkS.d.cts} +3 -3
- package/dist/{session-DEmaOEjA.d.ts → session-xMOU_NtL.d.ts} +3 -3
- package/dist/session.cjs +51 -20
- package/dist/session.d.cts +5 -5
- package/dist/session.d.ts +5 -5
- package/dist/session.js +5 -5
- package/dist/tailwind.cjs +238 -73
- package/dist/tailwind.d.cts +2 -2
- package/dist/tailwind.d.ts +2 -2
- package/dist/tailwind.js +7 -7
- package/dist/{types-DjJNaE9c.d.ts → types-BFT8536T.d.ts} +2 -2
- package/dist/{types-CxE1aZiv.d.cts → types-DDPxEygX.d.cts} +2 -2
- package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.js +4 -4
- package/dist/ui-tailwind.cjs +238 -73
- package/dist/ui-tailwind.d.cts +3 -3
- package/dist/ui-tailwind.d.ts +3 -3
- package/dist/ui-tailwind.js +7 -7
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { b0 as TextCommandAck, b1 as TextCommandRefreshClass, b2 as WordReviewEditorProps, b3 as WordReviewEditorRef, a as EditorSessionState, P as PersistedEditorSnapshot, b4 as validatePersistedEditorSnapshot, b5 as PayloadSigner, b6 as PayloadSignature, b7 as TransportStatus, b8 as CollabPosture, b9 as PresenceSnapshot, ba as AwarenessIdentity, bb as ExternalCustody, bc as ExternalCustodyResolver, bd as ExternalCustodyRestoredContent, be as RuntimePageGraph, o as EditorSurfaceSnapshot, q as CompatibilityReport } from './public-types-
|
|
2
|
-
export { bf as ActiveListContext, bg as ActiveNoteContext, bh as AddCommentParams, bi as AddCommentReplyResult, bj as AddCommentResult, bk as AiExplanationScopeInput, bl as AiExplanationScopeResult, J as ApiV3, bm as AttachPayloadArgs, bn as AuthorKind, bo as AutosaveConfig, bp as AutosaveState, bq as AwarenessPeer, br as BatchEditEntryResult, bs as BatchEditOperation, bt as BatchEditOptions, bu as BatchEditResult, bv as CaretAffinity, bw as ChangeAnchor, bx as ChangeFilter, by as ChartPreviewResolveParams, bz as ChartSnapshot, bA as ChartSnapshotBubbleSeries, bB as ChartSnapshotData, bC as ChartSnapshotScatterSeries, bD as ChartSnapshotSeries, bE as CollabBlockReason, bF as CollabSession, bG as CollabSessionBridge, bH as CollabSessionEvent, bI as CollabSessionEventOrIntegrity, bJ as CollabSessionFacet, bK as CollabSessionOptions, bL as CommandStateSnapshot, bM as CommentAttachment, bN as CommentAudience, bO as CommentBody, bP as CommentLabel, bQ as CommentMention, bR as CommentNegotiationAction, bS as CommentNegotiationActionType, bT as CommentNegotiationEntry, bU as CommentNegotiationSnapshot, bV as CommentNegotiationState, bW as CommentPresentation, bX as CommentPresentationAction, bY as CommentPresentationReply, bZ as CommentPresentationSnapshot, b_ as CommentReaction, b$ as CommentSidebarSnapshot, c0 as CommentSidebarThreadEntrySnapshot, c1 as CommentSidebarThreadSnapshot, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, c4 as CompatibilityPanelSnapshot, a5 as CreateApiV3Opts, c5 as CreateCollabSessionBridgeOptions, c6 as DispatchContext, c7 as DispatchResult, c8 as DocumentChunkKind, c9 as DocumentChunkSnapshot, ca as DocumentHeadingSnapshot, cb as DocumentLocationSnapshot, cc as DocumentLocationSource, cd as DocumentNavigationSnapshot, ce as DocumentOutlineHeadingSnapshot, cf as DocumentOutlineSnapshot, cg as DocumentPageSnapshot, ch as DocumentSectionSnapshot, ci as DocumentStats, cj as DocumentTextToken, ck as EditorAnchorProjection, cl as EditorDatastoreAdapter, r as EditorError, cm as EditorErrorCode, E as EditorHostAdapter, cn as EditorStateBlob, as as EditorStateLocation, ar as EditorStateNamespace, co as EditorStatePartLoadFailure, cp as EditorStatePartPersistFailure, cq as EditorStatePersister, cr as EditorStatePolicy, cs as EditorStatePolicyEntry, ct as EditorStatePolicyMigration, cu as EditorStateResolveErrorMode, cv as EditorStateResolver, cw as EditorStateStorageRef, cx as EditorStoryTarget, cy as EditorTelemetryEvent, cz as EditorUser, cA as EditorViewStateSnapshot, cB as EditorWarning, cC as EditorWarningCode, b as ExportDocxOptions, c as ExportResult, cD as ExternalCustodyArchivePayload, cE as ExternalDocumentSource, cF as HeaderFooterLinkPatch, cG as HostAnnotationItem, cH as HostAnnotationKind, cI as HostAnnotationOverlay, cJ as HostAnnotationSnapshot, cK as ISSUE_METADATA_ID, cL as InteractionGuardSnapshot, cM as IssueMetadataValue, cN as IssueMode, cO as IssueOwner, cP as IssueSeverity, cQ as LayoutMeasurement, cR as LoadRequest, cS as LoadResult, cT as LoadSourcePolicy, cU as MetadataIntegrity, cV as MetadataPersistenceMode, cW as MetadataResolverMissingError, cX as NegotiationBlockReason, cY as NegotiationCounterProposal, cZ as NegotiationHistoryRow, c_ as NegotiationRole, c$ as NegotiationVote, d0 as PageLayoutSnapshot, d1 as PageRegionHitTest, d2 as Participant, d3 as ParticipantRole, d4 as ParticipantRoster, d5 as PayloadVerifier, d6 as REVIEW_ACTION_METADATA_ID, d7 as RestorePointCheckpointType, d8 as RestorePointSnapshot, d9 as RestoreResult, da as ReviewActionKind, db as ReviewActionMetadataValue, dc as ReviewQueueItem, dd as ReviewQueueItemKind, de as ReviewQueueSnapshot, df as ReviewWorkItemSnapshot, dg as ReviewWorkSnapshot, dh as RuntimeContextAnalyticsActionHint, di as RuntimeContextAnalyticsBadge, dj as RuntimeContextAnalyticsCounts, dk as RuntimeContextAnalyticsProvenance, dl as RuntimeContextAnalyticsQuery, dm as RuntimeContextAnalyticsScopeKind, dn as RuntimeContextAnalyticsSnapshot, dp as RuntimeContextAnalyticsState, dq as RuntimeContextAnalyticsUnavailableField, R as RuntimeRenderSnapshot, dr as RuntimeSendToExternalArgs, ds as RuntimeSendToExternalResult, dt as SELECTION_TOOL_REGISTRY, du as SaveExportParams, dv as SaveExportResult, dw as SaveSessionParams, dx as SaveSessionResult, dy as SaveSnapshotParams, dz as SaveSnapshotResult, dA as ScopeCardModel, dB as ScopeIssueAction, dC as ScopeMetadataPersistence, dD as ScopeMetadataResolver, dE as ScopeMetadataStorageRef, dF as ScopeTagTouch, dG as SectionBreakType, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, h as SelectionSnapshot, dJ as SelectionToolKind, dK as SelectionToolRegistryEntry, dL as SendToExternalCallArgs, dM as SignatureAlgorithm, dN as SnapshotRefreshChangeKind, dO as SnapshotRefreshHints, dP as SnapshotRefreshInvalidateTarget, dQ as SnapshotRefreshStaleTarget, dR as StoryTextStreamSnapshot, dS as StyleCatalogEntrySnapshot, dT as StyleCatalogSnapshot, dU as SuggestionEntrySnapshot, dV as SuggestionGroup, dW as SuggestionsSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, dZ as SurfaceTableCellSnapshot, d_ as SurfaceTableRowSnapshot, d$ as SurfaceTextMark, e0 as TamperGate, e1 as TamperGateArgs, e2 as TamperGateAttachArgs, e3 as TamperGateEvent, e4 as TamperGateGuardResult, e5 as TextCommandAckKind, e6 as TextProjection, e7 as TextProjectionLine, e8 as TextProjectionOptions, e9 as TextProjectionStoryEntry, ea as TocEntrySnapshot, eb as TocRegionSnapshot, ec as TocSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, ef as ViewMode, eg as WordReviewEditorChromeOptions, eh as WordReviewEditorChromePreset, ei as WordReviewEditorChromeVisibility, ej as WordReviewEditorEvent, ek as WorkflowBlockedCommandReason, el as WorkflowCandidateRange, em as WorkflowCandidateRangeOptions, en as WorkflowCommentMarkup, eo as WorkflowFieldMarkup, ep as WorkflowHighlightMarkup, eq as WorkflowMarkupBase, er as WorkflowMarkupItem, es as WorkflowMarkupKind, et as WorkflowMarkupSnapshot, eu as WorkflowMetadataDefinition, ev as WorkflowMetadataEntry, ew as WorkflowMetadataMarkup, ex as WorkflowMetadataPersistence, ey as WorkflowMetadataSnapshot, ez as WorkflowOpaqueFragmentMarkup, eA as WorkflowOverlay, eB as WorkflowOverlayPatch, eC as WorkflowProtectedRangeMarkup, eD as WorkflowRevisionMarkup, eE as WorkflowScope, eF as WorkflowScopeMode, eG as WorkflowScopeSnapshot, eH as WorkflowWorkItem, eI as WorkspaceMode, eJ as ZoomLevel, ap as createApiV3, eK as createCollabSession, eL as createCollabSessionBridge, eM as createCollabSessionFacet, eN as createHmacSigner, eO as createHmacVerifier, eP as createTamperGate, eQ as resolveSelectionToolRegistry, eR as runtimeSendToExternal, eS as sendToExternal, eT as signWorkflowPayloadXml, eU as verifyWorkflowPayloadXml } from './public-types-
|
|
1
|
+
import { b0 as TextCommandAck, b1 as TextCommandRefreshClass, b2 as WordReviewEditorProps, b3 as WordReviewEditorRef, a as EditorSessionState, P as PersistedEditorSnapshot, b4 as validatePersistedEditorSnapshot, b5 as PayloadSigner, b6 as PayloadSignature, b7 as TransportStatus, b8 as CollabPosture, b9 as PresenceSnapshot, ba as AwarenessIdentity, bb as ExternalCustody, bc as ExternalCustodyResolver, bd as ExternalCustodyRestoredContent, be as RuntimePageGraph, o as EditorSurfaceSnapshot, q as CompatibilityReport } from './public-types-DrhlQ5Zy.cjs';
|
|
2
|
+
export { bf as ActiveListContext, bg as ActiveNoteContext, bh as AddCommentParams, bi as AddCommentReplyResult, bj as AddCommentResult, bk as AiExplanationScopeInput, bl as AiExplanationScopeResult, J as ApiV3, bm as AttachPayloadArgs, bn as AuthorKind, bo as AutosaveConfig, bp as AutosaveState, bq as AwarenessPeer, br as BatchEditEntryResult, bs as BatchEditOperation, bt as BatchEditOptions, bu as BatchEditResult, bv as CaretAffinity, bw as ChangeAnchor, bx as ChangeFilter, by as ChartPreviewResolveParams, bz as ChartSnapshot, bA as ChartSnapshotBubbleSeries, bB as ChartSnapshotData, bC as ChartSnapshotScatterSeries, bD as ChartSnapshotSeries, bE as CollabBlockReason, bF as CollabSession, bG as CollabSessionBridge, bH as CollabSessionEvent, bI as CollabSessionEventOrIntegrity, bJ as CollabSessionFacet, bK as CollabSessionOptions, bL as CommandStateSnapshot, bM as CommentAttachment, bN as CommentAudience, bO as CommentBody, bP as CommentLabel, bQ as CommentMention, bR as CommentNegotiationAction, bS as CommentNegotiationActionType, bT as CommentNegotiationEntry, bU as CommentNegotiationSnapshot, bV as CommentNegotiationState, bW as CommentPresentation, bX as CommentPresentationAction, bY as CommentPresentationReply, bZ as CommentPresentationSnapshot, b_ as CommentReaction, b$ as CommentSidebarSnapshot, c0 as CommentSidebarThreadEntrySnapshot, c1 as CommentSidebarThreadSnapshot, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, c4 as CompatibilityPanelSnapshot, a5 as CreateApiV3Opts, c5 as CreateCollabSessionBridgeOptions, c6 as DispatchContext, c7 as DispatchResult, c8 as DocumentChunkKind, c9 as DocumentChunkSnapshot, ca as DocumentHeadingSnapshot, cb as DocumentLocationSnapshot, cc as DocumentLocationSource, cd as DocumentNavigationSnapshot, ce as DocumentOutlineHeadingSnapshot, cf as DocumentOutlineSnapshot, cg as DocumentPageSnapshot, ch as DocumentSectionSnapshot, ci as DocumentStats, cj as DocumentTextToken, ck as EditorAnchorProjection, cl as EditorDatastoreAdapter, r as EditorError, cm as EditorErrorCode, E as EditorHostAdapter, cn as EditorStateBlob, as as EditorStateLocation, ar as EditorStateNamespace, co as EditorStatePartLoadFailure, cp as EditorStatePartPersistFailure, cq as EditorStatePersister, cr as EditorStatePolicy, cs as EditorStatePolicyEntry, ct as EditorStatePolicyMigration, cu as EditorStateResolveErrorMode, cv as EditorStateResolver, cw as EditorStateStorageRef, cx as EditorStoryTarget, cy as EditorTelemetryEvent, cz as EditorUser, cA as EditorViewStateSnapshot, cB as EditorWarning, cC as EditorWarningCode, b as ExportDocxOptions, c as ExportResult, cD as ExternalCustodyArchivePayload, cE as ExternalDocumentSource, cF as HeaderFooterLinkPatch, cG as HostAnnotationItem, cH as HostAnnotationKind, cI as HostAnnotationOverlay, cJ as HostAnnotationSnapshot, cK as ISSUE_METADATA_ID, cL as InteractionGuardSnapshot, cM as IssueMetadataValue, cN as IssueMode, cO as IssueOwner, cP as IssueSeverity, cQ as LayoutMeasurement, cR as LoadRequest, cS as LoadResult, cT as LoadSourcePolicy, cU as MetadataIntegrity, cV as MetadataPersistenceMode, cW as MetadataResolverMissingError, cX as NegotiationBlockReason, cY as NegotiationCounterProposal, cZ as NegotiationHistoryRow, c_ as NegotiationRole, c$ as NegotiationVote, d0 as PageLayoutSnapshot, d1 as PageRegionHitTest, d2 as Participant, d3 as ParticipantRole, d4 as ParticipantRoster, d5 as PayloadVerifier, d6 as REVIEW_ACTION_METADATA_ID, d7 as RestorePointCheckpointType, d8 as RestorePointSnapshot, d9 as RestoreResult, da as ReviewActionKind, db as ReviewActionMetadataValue, dc as ReviewQueueItem, dd as ReviewQueueItemKind, de as ReviewQueueSnapshot, df as ReviewWorkItemSnapshot, dg as ReviewWorkSnapshot, dh as RuntimeContextAnalyticsActionHint, di as RuntimeContextAnalyticsBadge, dj as RuntimeContextAnalyticsCounts, dk as RuntimeContextAnalyticsProvenance, dl as RuntimeContextAnalyticsQuery, dm as RuntimeContextAnalyticsScopeKind, dn as RuntimeContextAnalyticsSnapshot, dp as RuntimeContextAnalyticsState, dq as RuntimeContextAnalyticsUnavailableField, R as RuntimeRenderSnapshot, dr as RuntimeSendToExternalArgs, ds as RuntimeSendToExternalResult, dt as SELECTION_TOOL_REGISTRY, du as SaveExportParams, dv as SaveExportResult, dw as SaveSessionParams, dx as SaveSessionResult, dy as SaveSnapshotParams, dz as SaveSnapshotResult, dA as ScopeCardModel, dB as ScopeIssueAction, dC as ScopeMetadataPersistence, dD as ScopeMetadataResolver, dE as ScopeMetadataStorageRef, dF as ScopeTagTouch, dG as SectionBreakType, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, h as SelectionSnapshot, dJ as SelectionToolKind, dK as SelectionToolRegistryEntry, dL as SendToExternalCallArgs, dM as SignatureAlgorithm, dN as SnapshotRefreshChangeKind, dO as SnapshotRefreshHints, dP as SnapshotRefreshInvalidateTarget, dQ as SnapshotRefreshStaleTarget, dR as StoryTextStreamSnapshot, dS as StyleCatalogEntrySnapshot, dT as StyleCatalogSnapshot, dU as SuggestionEntrySnapshot, dV as SuggestionGroup, dW as SuggestionsSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, dZ as SurfaceTableCellSnapshot, d_ as SurfaceTableRowSnapshot, d$ as SurfaceTextMark, e0 as TamperGate, e1 as TamperGateArgs, e2 as TamperGateAttachArgs, e3 as TamperGateEvent, e4 as TamperGateGuardResult, e5 as TextCommandAckKind, e6 as TextProjection, e7 as TextProjectionLine, e8 as TextProjectionOptions, e9 as TextProjectionStoryEntry, ea as TocEntrySnapshot, eb as TocRegionSnapshot, ec as TocSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, ef as ViewMode, eg as WordReviewEditorChromeOptions, eh as WordReviewEditorChromePreset, ei as WordReviewEditorChromeVisibility, ej as WordReviewEditorEvent, ek as WorkflowBlockedCommandReason, el as WorkflowCandidateRange, em as WorkflowCandidateRangeOptions, en as WorkflowCommentMarkup, eo as WorkflowFieldMarkup, ep as WorkflowHighlightMarkup, eq as WorkflowMarkupBase, er as WorkflowMarkupItem, es as WorkflowMarkupKind, et as WorkflowMarkupSnapshot, eu as WorkflowMetadataDefinition, ev as WorkflowMetadataEntry, ew as WorkflowMetadataMarkup, ex as WorkflowMetadataPersistence, ey as WorkflowMetadataSnapshot, ez as WorkflowOpaqueFragmentMarkup, eA as WorkflowOverlay, eB as WorkflowOverlayPatch, eC as WorkflowProtectedRangeMarkup, eD as WorkflowRevisionMarkup, eE as WorkflowScope, eF as WorkflowScopeMode, eG as WorkflowScopeSnapshot, eH as WorkflowWorkItem, eI as WorkspaceMode, eJ as ZoomLevel, ap as createApiV3, eK as createCollabSession, eL as createCollabSessionBridge, eM as createCollabSessionFacet, eN as createHmacSigner, eO as createHmacVerifier, eP as createTamperGate, eQ as resolveSelectionToolRegistry, eR as runtimeSendToExternal, eS as sendToExternal, eT as signWorkflowPayloadXml, eU as verifyWorkflowPayloadXml } from './public-types-DrhlQ5Zy.cjs';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-
|
|
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-
|
|
4
|
+
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-Bp3zqnkS.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-DDPxEygX.cjs';
|
|
6
6
|
import { Awareness } from 'y-protocols/awareness';
|
|
7
|
-
import { C as CanonicalDocument } from './canonical-document-
|
|
7
|
+
import { C as CanonicalDocument } from './canonical-document-CXCFCbAz.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 { b0 as TextCommandAck, b1 as TextCommandRefreshClass, b2 as WordReviewEditorProps, b3 as WordReviewEditorRef, a as EditorSessionState, P as PersistedEditorSnapshot, b4 as validatePersistedEditorSnapshot, b5 as PayloadSigner, b6 as PayloadSignature, b7 as TransportStatus, b8 as CollabPosture, b9 as PresenceSnapshot, ba as AwarenessIdentity, bb as ExternalCustody, bc as ExternalCustodyResolver, bd as ExternalCustodyRestoredContent, be as RuntimePageGraph, o as EditorSurfaceSnapshot, q as CompatibilityReport } from './public-types-
|
|
2
|
-
export { bf as ActiveListContext, bg as ActiveNoteContext, bh as AddCommentParams, bi as AddCommentReplyResult, bj as AddCommentResult, bk as AiExplanationScopeInput, bl as AiExplanationScopeResult, J as ApiV3, bm as AttachPayloadArgs, bn as AuthorKind, bo as AutosaveConfig, bp as AutosaveState, bq as AwarenessPeer, br as BatchEditEntryResult, bs as BatchEditOperation, bt as BatchEditOptions, bu as BatchEditResult, bv as CaretAffinity, bw as ChangeAnchor, bx as ChangeFilter, by as ChartPreviewResolveParams, bz as ChartSnapshot, bA as ChartSnapshotBubbleSeries, bB as ChartSnapshotData, bC as ChartSnapshotScatterSeries, bD as ChartSnapshotSeries, bE as CollabBlockReason, bF as CollabSession, bG as CollabSessionBridge, bH as CollabSessionEvent, bI as CollabSessionEventOrIntegrity, bJ as CollabSessionFacet, bK as CollabSessionOptions, bL as CommandStateSnapshot, bM as CommentAttachment, bN as CommentAudience, bO as CommentBody, bP as CommentLabel, bQ as CommentMention, bR as CommentNegotiationAction, bS as CommentNegotiationActionType, bT as CommentNegotiationEntry, bU as CommentNegotiationSnapshot, bV as CommentNegotiationState, bW as CommentPresentation, bX as CommentPresentationAction, bY as CommentPresentationReply, bZ as CommentPresentationSnapshot, b_ as CommentReaction, b$ as CommentSidebarSnapshot, c0 as CommentSidebarThreadEntrySnapshot, c1 as CommentSidebarThreadSnapshot, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, c4 as CompatibilityPanelSnapshot, a5 as CreateApiV3Opts, c5 as CreateCollabSessionBridgeOptions, c6 as DispatchContext, c7 as DispatchResult, c8 as DocumentChunkKind, c9 as DocumentChunkSnapshot, ca as DocumentHeadingSnapshot, cb as DocumentLocationSnapshot, cc as DocumentLocationSource, cd as DocumentNavigationSnapshot, ce as DocumentOutlineHeadingSnapshot, cf as DocumentOutlineSnapshot, cg as DocumentPageSnapshot, ch as DocumentSectionSnapshot, ci as DocumentStats, cj as DocumentTextToken, ck as EditorAnchorProjection, cl as EditorDatastoreAdapter, r as EditorError, cm as EditorErrorCode, E as EditorHostAdapter, cn as EditorStateBlob, as as EditorStateLocation, ar as EditorStateNamespace, co as EditorStatePartLoadFailure, cp as EditorStatePartPersistFailure, cq as EditorStatePersister, cr as EditorStatePolicy, cs as EditorStatePolicyEntry, ct as EditorStatePolicyMigration, cu as EditorStateResolveErrorMode, cv as EditorStateResolver, cw as EditorStateStorageRef, cx as EditorStoryTarget, cy as EditorTelemetryEvent, cz as EditorUser, cA as EditorViewStateSnapshot, cB as EditorWarning, cC as EditorWarningCode, b as ExportDocxOptions, c as ExportResult, cD as ExternalCustodyArchivePayload, cE as ExternalDocumentSource, cF as HeaderFooterLinkPatch, cG as HostAnnotationItem, cH as HostAnnotationKind, cI as HostAnnotationOverlay, cJ as HostAnnotationSnapshot, cK as ISSUE_METADATA_ID, cL as InteractionGuardSnapshot, cM as IssueMetadataValue, cN as IssueMode, cO as IssueOwner, cP as IssueSeverity, cQ as LayoutMeasurement, cR as LoadRequest, cS as LoadResult, cT as LoadSourcePolicy, cU as MetadataIntegrity, cV as MetadataPersistenceMode, cW as MetadataResolverMissingError, cX as NegotiationBlockReason, cY as NegotiationCounterProposal, cZ as NegotiationHistoryRow, c_ as NegotiationRole, c$ as NegotiationVote, d0 as PageLayoutSnapshot, d1 as PageRegionHitTest, d2 as Participant, d3 as ParticipantRole, d4 as ParticipantRoster, d5 as PayloadVerifier, d6 as REVIEW_ACTION_METADATA_ID, d7 as RestorePointCheckpointType, d8 as RestorePointSnapshot, d9 as RestoreResult, da as ReviewActionKind, db as ReviewActionMetadataValue, dc as ReviewQueueItem, dd as ReviewQueueItemKind, de as ReviewQueueSnapshot, df as ReviewWorkItemSnapshot, dg as ReviewWorkSnapshot, dh as RuntimeContextAnalyticsActionHint, di as RuntimeContextAnalyticsBadge, dj as RuntimeContextAnalyticsCounts, dk as RuntimeContextAnalyticsProvenance, dl as RuntimeContextAnalyticsQuery, dm as RuntimeContextAnalyticsScopeKind, dn as RuntimeContextAnalyticsSnapshot, dp as RuntimeContextAnalyticsState, dq as RuntimeContextAnalyticsUnavailableField, R as RuntimeRenderSnapshot, dr as RuntimeSendToExternalArgs, ds as RuntimeSendToExternalResult, dt as SELECTION_TOOL_REGISTRY, du as SaveExportParams, dv as SaveExportResult, dw as SaveSessionParams, dx as SaveSessionResult, dy as SaveSnapshotParams, dz as SaveSnapshotResult, dA as ScopeCardModel, dB as ScopeIssueAction, dC as ScopeMetadataPersistence, dD as ScopeMetadataResolver, dE as ScopeMetadataStorageRef, dF as ScopeTagTouch, dG as SectionBreakType, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, h as SelectionSnapshot, dJ as SelectionToolKind, dK as SelectionToolRegistryEntry, dL as SendToExternalCallArgs, dM as SignatureAlgorithm, dN as SnapshotRefreshChangeKind, dO as SnapshotRefreshHints, dP as SnapshotRefreshInvalidateTarget, dQ as SnapshotRefreshStaleTarget, dR as StoryTextStreamSnapshot, dS as StyleCatalogEntrySnapshot, dT as StyleCatalogSnapshot, dU as SuggestionEntrySnapshot, dV as SuggestionGroup, dW as SuggestionsSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, dZ as SurfaceTableCellSnapshot, d_ as SurfaceTableRowSnapshot, d$ as SurfaceTextMark, e0 as TamperGate, e1 as TamperGateArgs, e2 as TamperGateAttachArgs, e3 as TamperGateEvent, e4 as TamperGateGuardResult, e5 as TextCommandAckKind, e6 as TextProjection, e7 as TextProjectionLine, e8 as TextProjectionOptions, e9 as TextProjectionStoryEntry, ea as TocEntrySnapshot, eb as TocRegionSnapshot, ec as TocSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, ef as ViewMode, eg as WordReviewEditorChromeOptions, eh as WordReviewEditorChromePreset, ei as WordReviewEditorChromeVisibility, ej as WordReviewEditorEvent, ek as WorkflowBlockedCommandReason, el as WorkflowCandidateRange, em as WorkflowCandidateRangeOptions, en as WorkflowCommentMarkup, eo as WorkflowFieldMarkup, ep as WorkflowHighlightMarkup, eq as WorkflowMarkupBase, er as WorkflowMarkupItem, es as WorkflowMarkupKind, et as WorkflowMarkupSnapshot, eu as WorkflowMetadataDefinition, ev as WorkflowMetadataEntry, ew as WorkflowMetadataMarkup, ex as WorkflowMetadataPersistence, ey as WorkflowMetadataSnapshot, ez as WorkflowOpaqueFragmentMarkup, eA as WorkflowOverlay, eB as WorkflowOverlayPatch, eC as WorkflowProtectedRangeMarkup, eD as WorkflowRevisionMarkup, eE as WorkflowScope, eF as WorkflowScopeMode, eG as WorkflowScopeSnapshot, eH as WorkflowWorkItem, eI as WorkspaceMode, eJ as ZoomLevel, ap as createApiV3, eK as createCollabSession, eL as createCollabSessionBridge, eM as createCollabSessionFacet, eN as createHmacSigner, eO as createHmacVerifier, eP as createTamperGate, eQ as resolveSelectionToolRegistry, eR as runtimeSendToExternal, eS as sendToExternal, eT as signWorkflowPayloadXml, eU as verifyWorkflowPayloadXml } from './public-types-
|
|
1
|
+
import { b0 as TextCommandAck, b1 as TextCommandRefreshClass, b2 as WordReviewEditorProps, b3 as WordReviewEditorRef, a as EditorSessionState, P as PersistedEditorSnapshot, b4 as validatePersistedEditorSnapshot, b5 as PayloadSigner, b6 as PayloadSignature, b7 as TransportStatus, b8 as CollabPosture, b9 as PresenceSnapshot, ba as AwarenessIdentity, bb as ExternalCustody, bc as ExternalCustodyResolver, bd as ExternalCustodyRestoredContent, be as RuntimePageGraph, o as EditorSurfaceSnapshot, q as CompatibilityReport } from './public-types-BEGhv2YR.js';
|
|
2
|
+
export { bf as ActiveListContext, bg as ActiveNoteContext, bh as AddCommentParams, bi as AddCommentReplyResult, bj as AddCommentResult, bk as AiExplanationScopeInput, bl as AiExplanationScopeResult, J as ApiV3, bm as AttachPayloadArgs, bn as AuthorKind, bo as AutosaveConfig, bp as AutosaveState, bq as AwarenessPeer, br as BatchEditEntryResult, bs as BatchEditOperation, bt as BatchEditOptions, bu as BatchEditResult, bv as CaretAffinity, bw as ChangeAnchor, bx as ChangeFilter, by as ChartPreviewResolveParams, bz as ChartSnapshot, bA as ChartSnapshotBubbleSeries, bB as ChartSnapshotData, bC as ChartSnapshotScatterSeries, bD as ChartSnapshotSeries, bE as CollabBlockReason, bF as CollabSession, bG as CollabSessionBridge, bH as CollabSessionEvent, bI as CollabSessionEventOrIntegrity, bJ as CollabSessionFacet, bK as CollabSessionOptions, bL as CommandStateSnapshot, bM as CommentAttachment, bN as CommentAudience, bO as CommentBody, bP as CommentLabel, bQ as CommentMention, bR as CommentNegotiationAction, bS as CommentNegotiationActionType, bT as CommentNegotiationEntry, bU as CommentNegotiationSnapshot, bV as CommentNegotiationState, bW as CommentPresentation, bX as CommentPresentationAction, bY as CommentPresentationReply, bZ as CommentPresentationSnapshot, b_ as CommentReaction, b$ as CommentSidebarSnapshot, c0 as CommentSidebarThreadEntrySnapshot, c1 as CommentSidebarThreadSnapshot, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, c4 as CompatibilityPanelSnapshot, a5 as CreateApiV3Opts, c5 as CreateCollabSessionBridgeOptions, c6 as DispatchContext, c7 as DispatchResult, c8 as DocumentChunkKind, c9 as DocumentChunkSnapshot, ca as DocumentHeadingSnapshot, cb as DocumentLocationSnapshot, cc as DocumentLocationSource, cd as DocumentNavigationSnapshot, ce as DocumentOutlineHeadingSnapshot, cf as DocumentOutlineSnapshot, cg as DocumentPageSnapshot, ch as DocumentSectionSnapshot, ci as DocumentStats, cj as DocumentTextToken, ck as EditorAnchorProjection, cl as EditorDatastoreAdapter, r as EditorError, cm as EditorErrorCode, E as EditorHostAdapter, cn as EditorStateBlob, as as EditorStateLocation, ar as EditorStateNamespace, co as EditorStatePartLoadFailure, cp as EditorStatePartPersistFailure, cq as EditorStatePersister, cr as EditorStatePolicy, cs as EditorStatePolicyEntry, ct as EditorStatePolicyMigration, cu as EditorStateResolveErrorMode, cv as EditorStateResolver, cw as EditorStateStorageRef, cx as EditorStoryTarget, cy as EditorTelemetryEvent, cz as EditorUser, cA as EditorViewStateSnapshot, cB as EditorWarning, cC as EditorWarningCode, b as ExportDocxOptions, c as ExportResult, cD as ExternalCustodyArchivePayload, cE as ExternalDocumentSource, cF as HeaderFooterLinkPatch, cG as HostAnnotationItem, cH as HostAnnotationKind, cI as HostAnnotationOverlay, cJ as HostAnnotationSnapshot, cK as ISSUE_METADATA_ID, cL as InteractionGuardSnapshot, cM as IssueMetadataValue, cN as IssueMode, cO as IssueOwner, cP as IssueSeverity, cQ as LayoutMeasurement, cR as LoadRequest, cS as LoadResult, cT as LoadSourcePolicy, cU as MetadataIntegrity, cV as MetadataPersistenceMode, cW as MetadataResolverMissingError, cX as NegotiationBlockReason, cY as NegotiationCounterProposal, cZ as NegotiationHistoryRow, c_ as NegotiationRole, c$ as NegotiationVote, d0 as PageLayoutSnapshot, d1 as PageRegionHitTest, d2 as Participant, d3 as ParticipantRole, d4 as ParticipantRoster, d5 as PayloadVerifier, d6 as REVIEW_ACTION_METADATA_ID, d7 as RestorePointCheckpointType, d8 as RestorePointSnapshot, d9 as RestoreResult, da as ReviewActionKind, db as ReviewActionMetadataValue, dc as ReviewQueueItem, dd as ReviewQueueItemKind, de as ReviewQueueSnapshot, df as ReviewWorkItemSnapshot, dg as ReviewWorkSnapshot, dh as RuntimeContextAnalyticsActionHint, di as RuntimeContextAnalyticsBadge, dj as RuntimeContextAnalyticsCounts, dk as RuntimeContextAnalyticsProvenance, dl as RuntimeContextAnalyticsQuery, dm as RuntimeContextAnalyticsScopeKind, dn as RuntimeContextAnalyticsSnapshot, dp as RuntimeContextAnalyticsState, dq as RuntimeContextAnalyticsUnavailableField, R as RuntimeRenderSnapshot, dr as RuntimeSendToExternalArgs, ds as RuntimeSendToExternalResult, dt as SELECTION_TOOL_REGISTRY, du as SaveExportParams, dv as SaveExportResult, dw as SaveSessionParams, dx as SaveSessionResult, dy as SaveSnapshotParams, dz as SaveSnapshotResult, dA as ScopeCardModel, dB as ScopeIssueAction, dC as ScopeMetadataPersistence, dD as ScopeMetadataResolver, dE as ScopeMetadataStorageRef, dF as ScopeTagTouch, dG as SectionBreakType, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, h as SelectionSnapshot, dJ as SelectionToolKind, dK as SelectionToolRegistryEntry, dL as SendToExternalCallArgs, dM as SignatureAlgorithm, dN as SnapshotRefreshChangeKind, dO as SnapshotRefreshHints, dP as SnapshotRefreshInvalidateTarget, dQ as SnapshotRefreshStaleTarget, dR as StoryTextStreamSnapshot, dS as StyleCatalogEntrySnapshot, dT as StyleCatalogSnapshot, dU as SuggestionEntrySnapshot, dV as SuggestionGroup, dW as SuggestionsSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, dZ as SurfaceTableCellSnapshot, d_ as SurfaceTableRowSnapshot, d$ as SurfaceTextMark, e0 as TamperGate, e1 as TamperGateArgs, e2 as TamperGateAttachArgs, e3 as TamperGateEvent, e4 as TamperGateGuardResult, e5 as TextCommandAckKind, e6 as TextProjection, e7 as TextProjectionLine, e8 as TextProjectionOptions, e9 as TextProjectionStoryEntry, ea as TocEntrySnapshot, eb as TocRegionSnapshot, ec as TocSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, ef as ViewMode, eg as WordReviewEditorChromeOptions, eh as WordReviewEditorChromePreset, ei as WordReviewEditorChromeVisibility, ej as WordReviewEditorEvent, ek as WorkflowBlockedCommandReason, el as WorkflowCandidateRange, em as WorkflowCandidateRangeOptions, en as WorkflowCommentMarkup, eo as WorkflowFieldMarkup, ep as WorkflowHighlightMarkup, eq as WorkflowMarkupBase, er as WorkflowMarkupItem, es as WorkflowMarkupKind, et as WorkflowMarkupSnapshot, eu as WorkflowMetadataDefinition, ev as WorkflowMetadataEntry, ew as WorkflowMetadataMarkup, ex as WorkflowMetadataPersistence, ey as WorkflowMetadataSnapshot, ez as WorkflowOpaqueFragmentMarkup, eA as WorkflowOverlay, eB as WorkflowOverlayPatch, eC as WorkflowProtectedRangeMarkup, eD as WorkflowRevisionMarkup, eE as WorkflowScope, eF as WorkflowScopeMode, eG as WorkflowScopeSnapshot, eH as WorkflowWorkItem, eI as WorkspaceMode, eJ as ZoomLevel, ap as createApiV3, eK as createCollabSession, eL as createCollabSessionBridge, eM as createCollabSessionFacet, eN as createHmacSigner, eO as createHmacVerifier, eP as createTamperGate, eQ as resolveSelectionToolRegistry, eR as runtimeSendToExternal, eS as sendToExternal, eT as signWorkflowPayloadXml, eU as verifyWorkflowPayloadXml } from './public-types-BEGhv2YR.js';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-
|
|
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-
|
|
4
|
+
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-xMOU_NtL.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-BFT8536T.js';
|
|
6
6
|
import { Awareness } from 'y-protocols/awareness';
|
|
7
|
-
import { C as CanonicalDocument } from './canonical-document-
|
|
7
|
+
import { C as CanonicalDocument } from './canonical-document-CXCFCbAz.js';
|
|
8
8
|
import 'yjs';
|
|
9
9
|
import 'prosemirror-state';
|
|
10
10
|
import 'prosemirror-model';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
createSearchPlugin,
|
|
5
5
|
performSearch,
|
|
6
6
|
searchPluginKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4EENH4FG.js";
|
|
8
8
|
import {
|
|
9
9
|
CODE_METADATA_TABLE,
|
|
10
10
|
KNOWN_DIAGNOSTIC_CODES,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
splitListParagraph,
|
|
27
27
|
toggleBulletedList,
|
|
28
28
|
toggleNumberedList
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QT3LX4FA.js";
|
|
30
30
|
import {
|
|
31
31
|
applyParagraphStyleToDocument
|
|
32
32
|
} from "./chunk-6EXNNAO6.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
setSectionPageNumberingAtSectionIndex,
|
|
38
38
|
updateSectionLayoutAtSectionIndex
|
|
39
39
|
} from "./chunk-M6XR534O.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-YD2JE54B.js";
|
|
41
41
|
import {
|
|
42
42
|
createRuntimeCollabSync,
|
|
43
43
|
createRuntimeCommandAppliedBridge
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
insertPageBreak,
|
|
47
47
|
insertTable
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-4G3OS2H6.js";
|
|
49
49
|
import {
|
|
50
50
|
getFormattingStateFromRenderSnapshot
|
|
51
51
|
} from "./chunk-Y4XZCMCS.js";
|
|
@@ -53,14 +53,15 @@ import {
|
|
|
53
53
|
insertImage,
|
|
54
54
|
repositionFloatingImage,
|
|
55
55
|
resizeImage
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-6F5QW44A.js";
|
|
57
|
+
import "./chunk-KV435YXO.js";
|
|
58
58
|
import {
|
|
59
59
|
getTableStructureContext,
|
|
60
60
|
tableStructureActionHandleForTarget
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-ZDOAUP3V.js";
|
|
62
|
+
import "./chunk-BYSRJ4FE.js";
|
|
63
63
|
import {
|
|
64
|
+
MOUNTED_SURFACE_VIEWPORT_BLOCK_THRESHOLD,
|
|
64
65
|
OverlayAnchorBridgeProvider,
|
|
65
66
|
PAGE_CHROME_DEFAULTS,
|
|
66
67
|
SELECTION_TOOL_REGISTRY,
|
|
@@ -83,8 +84,9 @@ import {
|
|
|
83
84
|
resolveScrollTopForAnchor,
|
|
84
85
|
resolveSelectionToolRegistry,
|
|
85
86
|
shouldRenderAbsoluteFloatingImageInPageOverlay,
|
|
86
|
-
shouldRenderSelectionToolKind
|
|
87
|
-
|
|
87
|
+
shouldRenderSelectionToolKind,
|
|
88
|
+
shouldUseMountedSurfaceViewportCulling
|
|
89
|
+
} from "./chunk-2QL5DAKF.js";
|
|
88
90
|
import {
|
|
89
91
|
PREDICTED_LANE_COUNTERS,
|
|
90
92
|
createInertGeometryFacet,
|
|
@@ -92,7 +94,7 @@ import {
|
|
|
92
94
|
incrementInvalidationCounter,
|
|
93
95
|
recordPerfSample,
|
|
94
96
|
startPerfProbe
|
|
95
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-MWSBGJQO.js";
|
|
96
98
|
import {
|
|
97
99
|
composeSeriesColor,
|
|
98
100
|
computeStructuralHash,
|
|
@@ -106,12 +108,12 @@ import {
|
|
|
106
108
|
resolveColor,
|
|
107
109
|
tryReadLaycacheEnvelope,
|
|
108
110
|
writeEnvelopeToOpcPackage
|
|
109
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-JN444Z5S.js";
|
|
110
112
|
import {
|
|
111
113
|
findTextMatches,
|
|
112
114
|
parseCanonicalFragmentFromWordML,
|
|
113
115
|
searchDocument
|
|
114
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-OHTK7F3F.js";
|
|
115
117
|
import {
|
|
116
118
|
clearLocalCursorState,
|
|
117
119
|
getCursorColorForUser,
|
|
@@ -121,7 +123,7 @@ import {
|
|
|
121
123
|
import {
|
|
122
124
|
resolveChromePreset,
|
|
123
125
|
resolveChromeVisibilityForPreset
|
|
124
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-YIYM4ZAP.js";
|
|
125
127
|
import {
|
|
126
128
|
CAPABILITY_BY_ID,
|
|
127
129
|
ISSUE_METADATA_ID,
|
|
@@ -137,7 +139,7 @@ import {
|
|
|
137
139
|
deriveCapabilities,
|
|
138
140
|
sanitizeMarkdown,
|
|
139
141
|
sha256Hex
|
|
140
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-YHZHPXDB.js";
|
|
141
143
|
import "./chunk-KFCQYZXR.js";
|
|
142
144
|
import "./chunk-QIO6V46H.js";
|
|
143
145
|
import {
|
|
@@ -145,7 +147,7 @@ import {
|
|
|
145
147
|
getStoryBlocks,
|
|
146
148
|
replaceStoryBlocks,
|
|
147
149
|
stableChartId
|
|
148
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-CXSYRB37.js";
|
|
149
151
|
import "./chunk-CX42VC67.js";
|
|
150
152
|
import {
|
|
151
153
|
createDefaultCanonicalDocument,
|
|
@@ -156,14 +158,14 @@ import {
|
|
|
156
158
|
SessionNotOpenError,
|
|
157
159
|
SessionNotWiredError,
|
|
158
160
|
isReopenBarrier
|
|
159
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-TQDQU2E3.js";
|
|
160
162
|
import {
|
|
161
163
|
createHmacSigner,
|
|
162
164
|
createHmacVerifier,
|
|
163
165
|
loadDocxSessionSync,
|
|
164
166
|
signWorkflowPayloadXml,
|
|
165
167
|
verifyWorkflowPayloadXml
|
|
166
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-V6XVZFFH.js";
|
|
167
169
|
import {
|
|
168
170
|
EDITOR_SESSION_STATE_VERSION,
|
|
169
171
|
assertEditorSessionState,
|
|
@@ -172,8 +174,8 @@ import {
|
|
|
172
174
|
editorSessionStateFromPersistedSnapshot,
|
|
173
175
|
persistedSnapshotFromEditorSessionState,
|
|
174
176
|
validateEditorSessionState
|
|
175
|
-
} from "./chunk-
|
|
176
|
-
import "./chunk-
|
|
177
|
+
} from "./chunk-ESJ2MES5.js";
|
|
178
|
+
import "./chunk-4YJVRIUB.js";
|
|
177
179
|
import {
|
|
178
180
|
decodePersistedSourcePackageBytes,
|
|
179
181
|
hasValidPersistedSourcePackageDigest
|
|
@@ -185,7 +187,7 @@ import {
|
|
|
185
187
|
collectEditableTargetRefs,
|
|
186
188
|
createHeaderFooterStoryKey,
|
|
187
189
|
createNoteStoryKey
|
|
188
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-5DGKFNQT.js";
|
|
189
191
|
import {
|
|
190
192
|
readOpcPackage
|
|
191
193
|
} from "./chunk-OL2UEHRP.js";
|
|
@@ -3498,6 +3500,9 @@ function createRuntime(args, handlers = {}) {
|
|
|
3498
3500
|
)
|
|
3499
3501
|
));
|
|
3500
3502
|
const runtimeSessionState = snapshotExportResolution?.barrier ? applySessionExportBarrier(initialSessionState, snapshotExportResolution.barrier) : initialSessionState;
|
|
3503
|
+
const initialSurfaceViewportBlockRanges = getMountedInitialSurfaceViewportBlockRanges(
|
|
3504
|
+
runtimeSessionState
|
|
3505
|
+
);
|
|
3501
3506
|
const baseRuntime = createDocumentRuntime({
|
|
3502
3507
|
documentId: args.documentId,
|
|
3503
3508
|
initialSessionState: runtimeSessionState,
|
|
@@ -3509,6 +3514,7 @@ function createRuntime(args, handlers = {}) {
|
|
|
3509
3514
|
fatalError: docxSession?.fatalError,
|
|
3510
3515
|
protectionSnapshot: docxSession?.protectionSnapshot,
|
|
3511
3516
|
...args.source.preloadedLaycacheGraph ? { seedLayoutCache: args.source.preloadedLaycacheGraph } : {},
|
|
3517
|
+
...initialSurfaceViewportBlockRanges ? { initialSurfaceViewportBlockRanges } : {},
|
|
3512
3518
|
exportDocx: async (sessionState, options) => {
|
|
3513
3519
|
if (docxSession) {
|
|
3514
3520
|
return docxSession.exportDocx(sessionState, options);
|
|
@@ -3591,6 +3597,18 @@ function createRuntime(args, handlers = {}) {
|
|
|
3591
3597
|
});
|
|
3592
3598
|
return runtime;
|
|
3593
3599
|
}
|
|
3600
|
+
function getMountedInitialSurfaceViewportBlockRanges(sessionState) {
|
|
3601
|
+
const blockCount = sessionState.canonicalDocument.content.children.length;
|
|
3602
|
+
if (!shouldUseMountedSurfaceViewportCulling(blockCount)) {
|
|
3603
|
+
return void 0;
|
|
3604
|
+
}
|
|
3605
|
+
return Object.freeze([
|
|
3606
|
+
Object.freeze({
|
|
3607
|
+
start: 0,
|
|
3608
|
+
end: MOUNTED_SURFACE_VIEWPORT_BLOCK_THRESHOLD
|
|
3609
|
+
})
|
|
3610
|
+
]);
|
|
3611
|
+
}
|
|
3594
3612
|
function createLoadingSnapshot(documentId, readOnly, sourceLabel) {
|
|
3595
3613
|
return {
|
|
3596
3614
|
documentId,
|
package/dist/io/docx-session.cjs
CHANGED
|
@@ -14149,7 +14149,8 @@ function resolveContentType(path, contentTypes) {
|
|
|
14149
14149
|
// src/io/ooxml/parse-bookmark-references.ts
|
|
14150
14150
|
var HYPERLINK_ANCHOR_RE = /<(?:\w+:)?hyperlink\b[^>]*\bw:anchor\s*=\s*"([^"]*)"/gi;
|
|
14151
14151
|
var INSTR_TEXT_RE = /<(?:\w+:)?instrText\b[^>]*>([\s\S]*?)<\/(?:\w+:)?instrText>/gi;
|
|
14152
|
-
var
|
|
14152
|
+
var FLD_SIMPLE_INSTR_DOUBLE_RE = /<(?:\w+:)?fldSimple\b[^>]*?\b(?:w:)?instr\s*=\s*"([^"]*)"/gi;
|
|
14153
|
+
var FLD_SIMPLE_INSTR_SINGLE_RE = /<(?:\w+:)?fldSimple\b[^>]*?\b(?:w:)?instr\s*=\s*'([^']*)'/gi;
|
|
14153
14154
|
var TOC_FIELD_RE = /\bTOC\b/;
|
|
14154
14155
|
var REFLIKE_FIELD_RE = /\b(?:HYPERLINK|REF|PAGEREF|NOTEREF)\s+([A-Za-z0-9_:.\-]+)/g;
|
|
14155
14156
|
var DATA_BINDING_RE = /<(?:\w+:)?dataBinding\b/i;
|
|
@@ -14168,11 +14169,22 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
14168
14169
|
}
|
|
14169
14170
|
INSTR_TEXT_RE.lastIndex = 0;
|
|
14170
14171
|
while ((m = INSTR_TEXT_RE.exec(documentXml)) !== null) {
|
|
14171
|
-
|
|
14172
|
+
const instrText = m[1] ?? "";
|
|
14173
|
+
scanFieldInstruction(instrText, retained, () => {
|
|
14174
|
+
retainAllToc = true;
|
|
14175
|
+
});
|
|
14176
|
+
}
|
|
14177
|
+
FLD_SIMPLE_INSTR_DOUBLE_RE.lastIndex = 0;
|
|
14178
|
+
while ((m = FLD_SIMPLE_INSTR_DOUBLE_RE.exec(documentXml)) !== null) {
|
|
14179
|
+
scanFieldInstruction(decodeXmlAttribute(m[1] ?? ""), retained, () => {
|
|
14180
|
+
retainAllToc = true;
|
|
14181
|
+
});
|
|
14172
14182
|
}
|
|
14173
|
-
|
|
14174
|
-
while ((m =
|
|
14175
|
-
|
|
14183
|
+
FLD_SIMPLE_INSTR_SINGLE_RE.lastIndex = 0;
|
|
14184
|
+
while ((m = FLD_SIMPLE_INSTR_SINGLE_RE.exec(documentXml)) !== null) {
|
|
14185
|
+
scanFieldInstruction(decodeXmlAttribute(m[1] ?? ""), retained, () => {
|
|
14186
|
+
retainAllToc = true;
|
|
14187
|
+
});
|
|
14176
14188
|
}
|
|
14177
14189
|
retainRevisionBoundedBookmarks(documentXml, retained);
|
|
14178
14190
|
return {
|
|
@@ -14181,14 +14193,16 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
14181
14193
|
retainAll
|
|
14182
14194
|
};
|
|
14183
14195
|
}
|
|
14184
|
-
function
|
|
14185
|
-
|
|
14196
|
+
function scanFieldInstruction(instrText, retained, retainToc) {
|
|
14197
|
+
if (TOC_FIELD_RE.test(instrText)) retainToc();
|
|
14186
14198
|
REFLIKE_FIELD_RE.lastIndex = 0;
|
|
14187
14199
|
let r;
|
|
14188
14200
|
while ((r = REFLIKE_FIELD_RE.exec(instrText)) !== null) {
|
|
14189
14201
|
if (r[1]) retained.add(r[1]);
|
|
14190
14202
|
}
|
|
14191
|
-
|
|
14203
|
+
}
|
|
14204
|
+
function decodeXmlAttribute(value) {
|
|
14205
|
+
return value.replace(/"/g, '"').replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
14192
14206
|
}
|
|
14193
14207
|
function retainRevisionBoundedBookmarks(documentXml, retained) {
|
|
14194
14208
|
const starts = /* @__PURE__ */ new Map();
|
|
@@ -14541,18 +14555,23 @@ function parseNumberingXml(xml, context) {
|
|
|
14541
14555
|
const abstractDefinitions = {};
|
|
14542
14556
|
const instances = {};
|
|
14543
14557
|
const numPicBullets = {};
|
|
14558
|
+
const topLevelOrdinals = /* @__PURE__ */ new Map();
|
|
14544
14559
|
for (const child of numberingElement.children) {
|
|
14545
14560
|
if (child.type !== "element") {
|
|
14546
14561
|
continue;
|
|
14547
14562
|
}
|
|
14548
|
-
|
|
14563
|
+
const childName = localName(child.name);
|
|
14564
|
+
const childOrdinal = (topLevelOrdinals.get(childName) ?? 0) + 1;
|
|
14565
|
+
topLevelOrdinals.set(childName, childOrdinal);
|
|
14566
|
+
const childXmlPath = `/numbering[1]/${childName}[${childOrdinal}]`;
|
|
14567
|
+
if (childName === "numPicBullet") {
|
|
14549
14568
|
const rawId = readStringAttr(child, "w:numPicBulletId");
|
|
14550
14569
|
if (rawId) {
|
|
14551
|
-
numPicBullets[rawId] = readNumPicBullet(child, rawId, context);
|
|
14570
|
+
numPicBullets[rawId] = readNumPicBullet(child, rawId, context, childXmlPath);
|
|
14552
14571
|
}
|
|
14553
14572
|
continue;
|
|
14554
14573
|
}
|
|
14555
|
-
switch (
|
|
14574
|
+
switch (childName) {
|
|
14556
14575
|
case "abstractNum": {
|
|
14557
14576
|
const rawId = readStringAttr(child, "w:abstractNumId");
|
|
14558
14577
|
if (!rawId) {
|
|
@@ -14572,7 +14591,7 @@ function parseNumberingXml(xml, context) {
|
|
|
14572
14591
|
const numStyleLink = numStyleLinkEl ? readStringAttr(numStyleLinkEl, "w:val") : void 0;
|
|
14573
14592
|
abstractDefinitions[abstractNumberingId] = {
|
|
14574
14593
|
abstractNumberingId,
|
|
14575
|
-
...context?.partPath !== void 0 ? { sourceRef: createNumberingSourceRef(context.partPath, "abstractNum", rawId) } : {},
|
|
14594
|
+
...context?.partPath !== void 0 ? { sourceRef: createNumberingSourceRef(context.partPath, "abstractNum", rawId, childXmlPath) } : {},
|
|
14576
14595
|
levels: readLevels(child),
|
|
14577
14596
|
...nsid ? { nsid } : {},
|
|
14578
14597
|
...multiLevelType ? { multiLevelType } : {},
|
|
@@ -14592,7 +14611,7 @@ function parseNumberingXml(xml, context) {
|
|
|
14592
14611
|
const numberingInstanceId = toCanonicalNumberingInstanceId(rawId);
|
|
14593
14612
|
instances[numberingInstanceId] = {
|
|
14594
14613
|
numberingInstanceId,
|
|
14595
|
-
...context?.partPath !== void 0 ? { sourceRef: createNumberingSourceRef(context.partPath, "num", rawId) } : {},
|
|
14614
|
+
...context?.partPath !== void 0 ? { sourceRef: createNumberingSourceRef(context.partPath, "num", rawId, childXmlPath) } : {},
|
|
14596
14615
|
abstractNumberingId: toCanonicalAbstractNumberingId(rawAbstractId),
|
|
14597
14616
|
overrides: readOverrides(child)
|
|
14598
14617
|
};
|
|
@@ -14606,15 +14625,16 @@ function parseNumberingXml(xml, context) {
|
|
|
14606
14625
|
...Object.keys(numPicBullets).length > 0 ? { numPicBullets } : {}
|
|
14607
14626
|
};
|
|
14608
14627
|
}
|
|
14609
|
-
function createNumberingSourceRef(partPath, element, rawId) {
|
|
14628
|
+
function createNumberingSourceRef(partPath, element, rawId, xmlPath) {
|
|
14610
14629
|
return {
|
|
14611
14630
|
sourceId: `part:${partPath}#${element}:${rawId}`,
|
|
14612
14631
|
partPath,
|
|
14613
14632
|
storyKind: "numbering",
|
|
14614
|
-
element
|
|
14633
|
+
element,
|
|
14634
|
+
...xmlPath !== void 0 ? { xmlPath } : {}
|
|
14615
14635
|
};
|
|
14616
14636
|
}
|
|
14617
|
-
function readNumPicBullet(node, numPicBulletId, context) {
|
|
14637
|
+
function readNumPicBullet(node, numPicBulletId, context, xmlPath) {
|
|
14618
14638
|
let widthEmu;
|
|
14619
14639
|
let heightEmu;
|
|
14620
14640
|
let mediaId;
|
|
@@ -14677,6 +14697,7 @@ function readNumPicBullet(node, numPicBulletId, context) {
|
|
|
14677
14697
|
}
|
|
14678
14698
|
return {
|
|
14679
14699
|
numPicBulletId,
|
|
14700
|
+
...context?.partPath !== void 0 ? { sourceRef: createNumberingSourceRef(context.partPath, "numPicBullet", numPicBulletId, xmlPath) } : {},
|
|
14680
14701
|
rawXml: serializeXmlElementToString(node),
|
|
14681
14702
|
...widthEmu !== void 0 ? { widthEmu } : {},
|
|
14682
14703
|
...heightEmu !== void 0 ? { heightEmu } : {},
|
|
@@ -18649,7 +18670,11 @@ function parseBodyChild(node, sourceXml, relationshipMap, relationships, mediaPa
|
|
|
18649
18670
|
switch (localName(child.name)) {
|
|
18650
18671
|
case "pPr":
|
|
18651
18672
|
styleId = readParagraphStyleId(child);
|
|
18652
|
-
numbering = readParagraphNumbering(
|
|
18673
|
+
numbering = readParagraphNumbering(
|
|
18674
|
+
child,
|
|
18675
|
+
sourcePartPath,
|
|
18676
|
+
`${sourceXmlPath}/pPr[${countPriorElementSiblingsByName(node, child) + 1}]`
|
|
18677
|
+
);
|
|
18653
18678
|
alignment = readParagraphAlignment(child);
|
|
18654
18679
|
spacing = readParagraphSpacing2(child);
|
|
18655
18680
|
contextualSpacing = readOptionalOnOffParagraphProperty(child, "contextualSpacing");
|
|
@@ -19732,7 +19757,7 @@ function readParagraphStyleId(node) {
|
|
|
19732
19757
|
}
|
|
19733
19758
|
return void 0;
|
|
19734
19759
|
}
|
|
19735
|
-
function readParagraphNumbering(node, sourcePartPath) {
|
|
19760
|
+
function readParagraphNumbering(node, sourcePartPath, sourceXmlPath) {
|
|
19736
19761
|
const numberingProperties = node.children.find(
|
|
19737
19762
|
(child) => child.type === "element" && localName(child.name) === "numPr"
|
|
19738
19763
|
);
|
|
@@ -19752,16 +19777,22 @@ function readParagraphNumbering(node, sourcePartPath) {
|
|
|
19752
19777
|
}
|
|
19753
19778
|
return {
|
|
19754
19779
|
numberingInstanceId: toCanonicalNumberingInstanceId(rawInstanceId),
|
|
19755
|
-
sourceRef: createElementSourceRef(
|
|
19780
|
+
sourceRef: createElementSourceRef(
|
|
19781
|
+
sourcePartPath,
|
|
19782
|
+
"numPr",
|
|
19783
|
+
numberingProperties,
|
|
19784
|
+
sourceXmlPath !== void 0 ? `${sourceXmlPath}/numPr[${countPriorElementSiblingsByName(node, numberingProperties) + 1}]` : void 0
|
|
19785
|
+
),
|
|
19756
19786
|
level: Number.parseInt(rawLevel, 10)
|
|
19757
19787
|
};
|
|
19758
19788
|
}
|
|
19759
|
-
function createElementSourceRef(partPath, element, node) {
|
|
19789
|
+
function createElementSourceRef(partPath, element, node, xmlPath) {
|
|
19760
19790
|
return {
|
|
19761
19791
|
sourceId: `part:${partPath}#${element}:${node.start}`,
|
|
19762
19792
|
partPath,
|
|
19763
19793
|
storyKind: storyKindFromPartPath(partPath),
|
|
19764
19794
|
element,
|
|
19795
|
+
...xmlPath !== void 0 ? { xmlPath } : {},
|
|
19765
19796
|
startOffset: node.start,
|
|
19766
19797
|
endOffset: node.end
|
|
19767
19798
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-
|
|
2
|
-
import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-
|
|
3
|
-
import { a$ as EditorAnchorProjection } from '../public-types-
|
|
4
|
-
import '../types-
|
|
1
|
+
export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-CJXsswcd.cjs';
|
|
2
|
+
import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-CXCFCbAz.cjs';
|
|
3
|
+
import { a$ as EditorAnchorProjection } from '../public-types-DrhlQ5Zy.cjs';
|
|
4
|
+
import '../types-DDPxEygX.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-
|
|
2
|
-
import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-
|
|
3
|
-
import { a$ as EditorAnchorProjection } from '../public-types-
|
|
4
|
-
import '../types-
|
|
1
|
+
export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-B1MxvbeV.js';
|
|
2
|
+
import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-CXCFCbAz.js';
|
|
3
|
+
import { a$ as EditorAnchorProjection } from '../public-types-BEGhv2YR.js';
|
|
4
|
+
import '../types-BFT8536T.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'yjs';
|
|
7
7
|
import 'y-protocols/awareness';
|
package/dist/io/docx-session.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
loadDocxSessionAsync,
|
|
3
3
|
normalizeImportedCommentThreads,
|
|
4
4
|
stripCommentMarkup
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-V6XVZFFH.js";
|
|
6
|
+
import "../chunk-ESJ2MES5.js";
|
|
7
|
+
import "../chunk-4YJVRIUB.js";
|
|
8
8
|
import "../chunk-4BJ6K26R.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-5DGKFNQT.js";
|
|
10
10
|
import "../chunk-OL2UEHRP.js";
|
|
11
11
|
import "../chunk-EB6M3GE6.js";
|
|
12
12
|
import "../chunk-IHE7YOAY.js";
|
package/dist/legal.cjs
CHANGED
|
@@ -1017,7 +1017,8 @@ var SCOPE_MARKER_BOOKMARK_PREFIX = "bw:scope:";
|
|
|
1017
1017
|
// src/io/ooxml/parse-bookmark-references.ts
|
|
1018
1018
|
var HYPERLINK_ANCHOR_RE = /<(?:\w+:)?hyperlink\b[^>]*\bw:anchor\s*=\s*"([^"]*)"/gi;
|
|
1019
1019
|
var INSTR_TEXT_RE = /<(?:\w+:)?instrText\b[^>]*>([\s\S]*?)<\/(?:\w+:)?instrText>/gi;
|
|
1020
|
-
var
|
|
1020
|
+
var FLD_SIMPLE_INSTR_DOUBLE_RE = /<(?:\w+:)?fldSimple\b[^>]*?\b(?:w:)?instr\s*=\s*"([^"]*)"/gi;
|
|
1021
|
+
var FLD_SIMPLE_INSTR_SINGLE_RE = /<(?:\w+:)?fldSimple\b[^>]*?\b(?:w:)?instr\s*=\s*'([^']*)'/gi;
|
|
1021
1022
|
var TOC_FIELD_RE = /\bTOC\b/;
|
|
1022
1023
|
var REFLIKE_FIELD_RE = /\b(?:HYPERLINK|REF|PAGEREF|NOTEREF)\s+([A-Za-z0-9_:.\-]+)/g;
|
|
1023
1024
|
var DATA_BINDING_RE = /<(?:\w+:)?dataBinding\b/i;
|
|
@@ -1036,11 +1037,22 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
1036
1037
|
}
|
|
1037
1038
|
INSTR_TEXT_RE.lastIndex = 0;
|
|
1038
1039
|
while ((m = INSTR_TEXT_RE.exec(documentXml)) !== null) {
|
|
1039
|
-
|
|
1040
|
+
const instrText = m[1] ?? "";
|
|
1041
|
+
scanFieldInstruction(instrText, retained, () => {
|
|
1042
|
+
retainAllToc = true;
|
|
1043
|
+
});
|
|
1040
1044
|
}
|
|
1041
|
-
|
|
1042
|
-
while ((m =
|
|
1043
|
-
|
|
1045
|
+
FLD_SIMPLE_INSTR_DOUBLE_RE.lastIndex = 0;
|
|
1046
|
+
while ((m = FLD_SIMPLE_INSTR_DOUBLE_RE.exec(documentXml)) !== null) {
|
|
1047
|
+
scanFieldInstruction(decodeXmlAttribute(m[1] ?? ""), retained, () => {
|
|
1048
|
+
retainAllToc = true;
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
FLD_SIMPLE_INSTR_SINGLE_RE.lastIndex = 0;
|
|
1052
|
+
while ((m = FLD_SIMPLE_INSTR_SINGLE_RE.exec(documentXml)) !== null) {
|
|
1053
|
+
scanFieldInstruction(decodeXmlAttribute(m[1] ?? ""), retained, () => {
|
|
1054
|
+
retainAllToc = true;
|
|
1055
|
+
});
|
|
1044
1056
|
}
|
|
1045
1057
|
retainRevisionBoundedBookmarks(documentXml, retained);
|
|
1046
1058
|
return {
|
|
@@ -1049,14 +1061,16 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
1049
1061
|
retainAll
|
|
1050
1062
|
};
|
|
1051
1063
|
}
|
|
1052
|
-
function
|
|
1053
|
-
|
|
1064
|
+
function scanFieldInstruction(instrText, retained, retainToc) {
|
|
1065
|
+
if (TOC_FIELD_RE.test(instrText)) retainToc();
|
|
1054
1066
|
REFLIKE_FIELD_RE.lastIndex = 0;
|
|
1055
1067
|
let r;
|
|
1056
1068
|
while ((r = REFLIKE_FIELD_RE.exec(instrText)) !== null) {
|
|
1057
1069
|
if (r[1]) retained.add(r[1]);
|
|
1058
1070
|
}
|
|
1059
|
-
|
|
1071
|
+
}
|
|
1072
|
+
function decodeXmlAttribute(value) {
|
|
1073
|
+
return value.replace(/"/g, '"').replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1060
1074
|
}
|
|
1061
1075
|
function retainRevisionBoundedBookmarks(documentXml, retained) {
|
|
1062
1076
|
const starts = /* @__PURE__ */ new Map();
|
|
@@ -4813,7 +4827,11 @@ function parseBodyChild(node, sourceXml, relationshipMap, relationships, mediaPa
|
|
|
4813
4827
|
switch (localName(child.name)) {
|
|
4814
4828
|
case "pPr":
|
|
4815
4829
|
styleId = readParagraphStyleId(child);
|
|
4816
|
-
numbering = readParagraphNumbering(
|
|
4830
|
+
numbering = readParagraphNumbering(
|
|
4831
|
+
child,
|
|
4832
|
+
sourcePartPath,
|
|
4833
|
+
`${sourceXmlPath}/pPr[${countPriorElementSiblingsByName(node, child) + 1}]`
|
|
4834
|
+
);
|
|
4817
4835
|
alignment = readParagraphAlignment(child);
|
|
4818
4836
|
spacing = readParagraphSpacing(child);
|
|
4819
4837
|
contextualSpacing = readOptionalOnOffParagraphProperty(child, "contextualSpacing");
|
|
@@ -5896,7 +5914,7 @@ function readParagraphStyleId(node) {
|
|
|
5896
5914
|
}
|
|
5897
5915
|
return void 0;
|
|
5898
5916
|
}
|
|
5899
|
-
function readParagraphNumbering(node, sourcePartPath) {
|
|
5917
|
+
function readParagraphNumbering(node, sourcePartPath, sourceXmlPath) {
|
|
5900
5918
|
const numberingProperties = node.children.find(
|
|
5901
5919
|
(child) => child.type === "element" && localName(child.name) === "numPr"
|
|
5902
5920
|
);
|
|
@@ -5916,16 +5934,22 @@ function readParagraphNumbering(node, sourcePartPath) {
|
|
|
5916
5934
|
}
|
|
5917
5935
|
return {
|
|
5918
5936
|
numberingInstanceId: toCanonicalNumberingInstanceId(rawInstanceId),
|
|
5919
|
-
sourceRef: createElementSourceRef(
|
|
5937
|
+
sourceRef: createElementSourceRef(
|
|
5938
|
+
sourcePartPath,
|
|
5939
|
+
"numPr",
|
|
5940
|
+
numberingProperties,
|
|
5941
|
+
sourceXmlPath !== void 0 ? `${sourceXmlPath}/numPr[${countPriorElementSiblingsByName(node, numberingProperties) + 1}]` : void 0
|
|
5942
|
+
),
|
|
5920
5943
|
level: Number.parseInt(rawLevel, 10)
|
|
5921
5944
|
};
|
|
5922
5945
|
}
|
|
5923
|
-
function createElementSourceRef(partPath, element, node) {
|
|
5946
|
+
function createElementSourceRef(partPath, element, node, xmlPath) {
|
|
5924
5947
|
return {
|
|
5925
5948
|
sourceId: `part:${partPath}#${element}:${node.start}`,
|
|
5926
5949
|
partPath,
|
|
5927
5950
|
storyKind: storyKindFromPartPath(partPath),
|
|
5928
5951
|
element,
|
|
5952
|
+
...xmlPath !== void 0 ? { xmlPath } : {},
|
|
5929
5953
|
startOffset: node.start,
|
|
5930
5954
|
endOffset: node.end
|
|
5931
5955
|
};
|
package/dist/legal.d.cts
CHANGED
package/dist/legal.d.ts
CHANGED
package/dist/legal.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
isHiddenBookmarkName,
|
|
5
5
|
parseBookmarksFromDocumentXml,
|
|
6
6
|
resolveWalkableRoot
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YD2JE54B.js";
|
|
8
8
|
import {
|
|
9
9
|
extractComplexFieldsFromBodyXml,
|
|
10
10
|
parseFieldsFromParagraphXml,
|
|
11
11
|
parseMainDocumentXml
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-4YJVRIUB.js";
|
|
13
|
+
import "./chunk-5DGKFNQT.js";
|
|
14
14
|
import "./chunk-IHE7YOAY.js";
|
|
15
15
|
import "./chunk-UTL65BUI.js";
|
|
16
16
|
import "./chunk-DNXYUIIS.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CanonicalDocument } from './canonical-document-
|
|
2
|
-
import { ar as EditorStateNamespace, as as EditorStateLocation, a as EditorSessionState, P as PersistedEditorSnapshot, r as EditorError, t as ProtectionSnapshot, b as ExportDocxOptions, c as ExportResult, L as LoadStage, E as EditorHostAdapter, at as LoadScheduler, o as EditorSurfaceSnapshot } from './public-types-
|
|
3
|
-
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-
|
|
1
|
+
import { C as CanonicalDocument } from './canonical-document-CXCFCbAz.js';
|
|
2
|
+
import { ar as EditorStateNamespace, as as EditorStateLocation, a as EditorSessionState, P as PersistedEditorSnapshot, r as EditorError, t as ProtectionSnapshot, b as ExportDocxOptions, c as ExportResult, L as LoadStage, E as EditorHostAdapter, at as LoadScheduler, o as EditorSurfaceSnapshot } from './public-types-BEGhv2YR.js';
|
|
3
|
+
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-BFT8536T.js';
|
|
4
4
|
|
|
5
5
|
interface EditorStatePayloadNamespaceEntry {
|
|
6
6
|
namespace: EditorStateNamespace;
|