@beyondwork/docx-react-component 1.0.135 → 1.0.137
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.d.cts +2 -2
- package/dist/api/public-types.d.ts +2 -2
- package/dist/api/v3.cjs +827 -59
- package/dist/api/v3.d.cts +3 -3
- package/dist/api/v3.d.ts +3 -3
- package/dist/api/v3.js +2 -2
- package/dist/{canonical-document-CfZIc-fC.d.cts → canonical-document-COmM7v11.d.cts} +1 -1
- package/dist/{canonical-document-CfZIc-fC.d.ts → canonical-document-COmM7v11.d.ts} +1 -1
- package/dist/{chunk-EPFVMUKF.js → chunk-M3AEVSKU.js} +793 -56
- package/dist/{chunk-5CCYF333.js → chunk-NYIMPM3Z.js} +143 -1
- package/dist/{chunk-GIFXKIM5.js → chunk-SMBDQV73.js} +688 -57
- 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.d.cts +2 -2
- package/dist/core/commands/image-commands.d.ts +2 -2
- 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.d.cts +2 -2
- package/dist/core/commands/table-structure-commands.d.ts +2 -2
- package/dist/core/commands/text-commands.d.cts +2 -2
- package/dist/core/commands/text-commands.d.ts +2 -2
- 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 +1808 -190
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +144 -32
- package/dist/io/docx-session.d.cts +4 -4
- package/dist/io/docx-session.d.ts +4 -4
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/{loader-BQ7AB-0v.d.cts → loader-BB7tRkY2.d.cts} +3 -3
- package/dist/{loader-Cy6OYBfn.d.ts → loader-DGPbaboy.d.ts} +3 -3
- package/dist/{public-types-D31xKNGc.d.cts → public-types-CIvw1GQa.d.cts} +142 -9
- package/dist/{public-types-DqYt8GdP.d.ts → public-types-COCDrgVX.d.ts} +142 -9
- package/dist/public-types.d.cts +2 -2
- package/dist/public-types.d.ts +2 -2
- package/dist/runtime/collab.d.cts +3 -3
- package/dist/runtime/collab.d.ts +3 -3
- package/dist/runtime/document-runtime.cjs +825 -54
- package/dist/runtime/document-runtime.d.cts +2 -2
- package/dist/runtime/document-runtime.d.ts +2 -2
- package/dist/runtime/document-runtime.js +2 -2
- package/dist/{session-DA-F2fCw.d.cts → session-CVU-rtCd.d.cts} +3 -3
- package/dist/{session-DqL8H0oZ.d.ts → session-DOqy1-Lf.d.ts} +3 -3
- package/dist/session.d.cts +5 -5
- package/dist/session.d.ts +5 -5
- package/dist/tailwind.d.cts +2 -2
- package/dist/tailwind.d.ts +2 -2
- package/dist/{types-SllbCtGs.d.ts → types-CB_tOnVp.d.ts} +2 -2
- package/dist/{types-B2y94n5t.d.cts → types-CZAll7OS.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.d.cts +3 -3
- package/dist/ui-tailwind.d.ts +3 -3
- 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-
|
|
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-
|
|
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-CIvw1GQa.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-CIvw1GQa.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-CVU-rtCd.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-CZAll7OS.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-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-
|
|
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-
|
|
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-COCDrgVX.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-COCDrgVX.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-DOqy1-Lf.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-CB_tOnVp.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-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-
|
|
29
|
+
} from "./chunk-SMBDQV73.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-
|
|
108
|
+
} from "./chunk-M3AEVSKU.js";
|
|
109
109
|
import {
|
|
110
110
|
findTextMatches,
|
|
111
111
|
parseCanonicalFragmentFromWordML,
|
|
112
112
|
searchDocument
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-NYIMPM3Z.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,8 @@ 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: "
|
|
14961
|
+
{ label: "API families", expression: "api ? Object.keys(api).sort() : null" },
|
|
14962
|
+
{ label: "Hot edit trace", expression: "runtime?.debug?.getHotEditTraces?.()?.at(-1)" },
|
|
14959
14963
|
{ label: "View state", expression: "ref?.getViewState?.()" }
|
|
14960
14964
|
],
|
|
14961
14965
|
routed: [
|
|
@@ -14969,8 +14973,9 @@ var LAYER_DEBUG_PANES = [
|
|
|
14969
14973
|
focus: "Workflow scopes, markup, metadata, candidates, and scope-derived context.",
|
|
14970
14974
|
snippets: [
|
|
14971
14975
|
{ label: "Scope snapshot", expression: "ref?.getWorkflowScopeSnapshot?.()" },
|
|
14972
|
-
{ label: "Query scopes", expression: "ref?.queryScopes?.({ includeHidden: true, includeInvisible: true })" },
|
|
14973
|
-
{ label: "
|
|
14976
|
+
{ label: "Query scopes", expression: "api?.runtime.workflow.queryScopes({ includeHidden: true, includeInvisible: true, limit: 50 }) ?? ref?.queryScopes?.({ includeHidden: true, includeInvisible: true, limit: 50 })" },
|
|
14977
|
+
{ label: "Bulk placeholder scopes", expression: "(() => { const r = api?.ai.actions.createPlaceholderScopes({ limit: 200 }); if (!r) return { status: 'api-unavailable' }; return { status: r.status, totalHits: r.totalHits, created: r.created, blocked: r.blocked, scopeIds: r.scopes.slice(0, 50).map((s) => s.scopeId ?? null), blockers: r.blockers?.slice(0, 20) ?? [] }; })()" },
|
|
14978
|
+
{ label: "Workflow markup", expression: "(() => { const m = ref?.getWorkflowMarkupSnapshot?.(); return m ? { itemCount: m.items?.length ?? 0, items: m.items?.slice(0, 50) ?? [] } : m; })()" }
|
|
14974
14979
|
],
|
|
14975
14980
|
routed: [
|
|
14976
14981
|
"Compiler replacement planning and semantic scope normalization remain Layer 08-owned."
|
|
@@ -14984,7 +14989,8 @@ var LAYER_DEBUG_PANES = [
|
|
|
14984
14989
|
snippets: [
|
|
14985
14990
|
{ label: "Document analytics", expression: "ref?.getRuntimeContextAnalytics?.({ scopeKind: 'document' })" },
|
|
14986
14991
|
{ label: "Workflow analytics", expression: "ref?.getRuntimeContextAnalytics?.({ scopeKind: 'workflow_scope', scopeId: ref?.getInteractionGuardSnapshot?.()?.matchedScopeId })" },
|
|
14987
|
-
{ label: "Available scopes", expression: "ref?.queryScopes?.({ includeHidden: true, includeInvisible: true })" }
|
|
14992
|
+
{ label: "Available scopes", expression: "api?.ai.listScopes({ limit: 50 }) ?? ref?.queryScopes?.({ includeHidden: true, includeInvisible: true, limit: 50 })" },
|
|
14993
|
+
{ label: "Placeholder scope action", expression: "api?.ai.actions.createPlaceholderScopes({ limit: 200 })" }
|
|
14988
14994
|
],
|
|
14989
14995
|
routed: [
|
|
14990
14996
|
"AI audit references and action policy payloads are Layer 09-owned."
|
|
@@ -15012,7 +15018,7 @@ var LAYER_DEBUG_PANES = [
|
|
|
15012
15018
|
snippets: [
|
|
15013
15019
|
{ label: "Navigation", expression: "ref?.getDocumentNavigationSnapshot?.()" },
|
|
15014
15020
|
{ label: "Review surface", expression: "({ comments: ref?.getCommentSidebarSnapshot?.(), changes: ref?.getTrackedChangesSnapshot?.() })" },
|
|
15015
|
-
{ label: "Hot edit traces", expression: "runtime?.debug?.getHotEditTraces?.()" },
|
|
15021
|
+
{ label: "Hot edit traces", expression: "runtime?.debug?.getHotEditTraces?.()?.slice?.(-10)" },
|
|
15016
15022
|
{ label: "Compatibility", expression: "ref?.getCompatibilityReport?.()" }
|
|
15017
15023
|
],
|
|
15018
15024
|
routed: [
|
|
@@ -15045,6 +15051,11 @@ import { Fragment as Fragment3, jsx as jsx15, jsxs as jsxs13 } from "react/jsx-r
|
|
|
15045
15051
|
var MAX_HISTORY = 30;
|
|
15046
15052
|
var MAX_ENTRIES = 50;
|
|
15047
15053
|
var MAX_OUTPUT_CHARS = 8e3;
|
|
15054
|
+
var MAX_SERIALIZE_DEPTH = 6;
|
|
15055
|
+
var MAX_SERIALIZE_STRING_CHARS = 1e3;
|
|
15056
|
+
var MAX_SERIALIZE_ARRAY_ITEMS = 40;
|
|
15057
|
+
var MAX_SERIALIZE_OBJECT_KEYS = 80;
|
|
15058
|
+
var MAX_SERIALIZE_NODES = 2500;
|
|
15048
15059
|
var HISTORY_STORAGE_KEY = "wre-runtime-repl-history";
|
|
15049
15060
|
var HISTORY_STORAGE_VERSION = 1;
|
|
15050
15061
|
function TwRuntimeReplDialog(props) {
|
|
@@ -15142,10 +15153,12 @@ function TwRuntimeReplDialog(props) {
|
|
|
15142
15153
|
return;
|
|
15143
15154
|
}
|
|
15144
15155
|
try {
|
|
15156
|
+
const refValue = editorRef?.current ?? null;
|
|
15145
15157
|
const value = await evaluateReplExpression(
|
|
15146
15158
|
code,
|
|
15147
15159
|
runtime,
|
|
15148
|
-
|
|
15160
|
+
refValue,
|
|
15161
|
+
resolveReplApi(refValue)
|
|
15149
15162
|
);
|
|
15150
15163
|
pushEntry({
|
|
15151
15164
|
input: code,
|
|
@@ -15250,9 +15263,10 @@ function TwRuntimeReplDialog(props) {
|
|
|
15250
15263
|
"evaluates against ",
|
|
15251
15264
|
/* @__PURE__ */ jsx15("code", { children: "runtime" }),
|
|
15252
15265
|
editorRef ? /* @__PURE__ */ jsxs13(Fragment3, { children: [
|
|
15253
|
-
" ",
|
|
15254
|
-
"
|
|
15255
|
-
|
|
15266
|
+
", ",
|
|
15267
|
+
/* @__PURE__ */ jsx15("code", { children: "ref" }),
|
|
15268
|
+
", and ",
|
|
15269
|
+
/* @__PURE__ */ jsx15("code", { children: "api" })
|
|
15256
15270
|
] }) : null
|
|
15257
15271
|
] })
|
|
15258
15272
|
] }),
|
|
@@ -15399,10 +15413,10 @@ function TwRuntimeReplDialog(props) {
|
|
|
15399
15413
|
"data-testid": "tw-runtime-repl__output",
|
|
15400
15414
|
children: entries.length === 0 ? /* @__PURE__ */ jsxs13("p", { className: "text-[var(--color-text-tertiary)]", children: [
|
|
15401
15415
|
"Evaluate JavaScript against the active runtime",
|
|
15402
|
-
editorRef ? "
|
|
15416
|
+
editorRef ? ", editor ref, and API" : "",
|
|
15403
15417
|
". Example:",
|
|
15404
15418
|
" ",
|
|
15405
|
-
/* @__PURE__ */ jsx15("code", { children: editorRef ? "
|
|
15419
|
+
/* @__PURE__ */ jsx15("code", { children: editorRef ? "api.ai.listScopes({ limit: 5 })" : "runtime.getRenderSnapshot().surface?.blocks.length" })
|
|
15406
15420
|
] }) : entries.map((entry) => /* @__PURE__ */ jsxs13("div", { className: "mb-3 last:mb-0", children: [
|
|
15407
15421
|
/* @__PURE__ */ jsxs13("div", { className: "flex items-start gap-2", children: [
|
|
15408
15422
|
/* @__PURE__ */ jsx15(
|
|
@@ -15452,7 +15466,7 @@ function TwRuntimeReplDialog(props) {
|
|
|
15452
15466
|
onKeyDown: handleKeyDown,
|
|
15453
15467
|
rows: 3,
|
|
15454
15468
|
spellCheck: false,
|
|
15455
|
-
placeholder: editorRef ? "
|
|
15469
|
+
placeholder: editorRef ? "api.runtime.workflow.queryScopes({ limit: 10 })" : "runtime.getRenderSnapshot().selection",
|
|
15456
15470
|
className: [
|
|
15457
15471
|
"w-full resize-y rounded-[var(--radius-sm)] bg-[var(--color-bg-muted)]",
|
|
15458
15472
|
"px-3 py-2 font-mono text-xs leading-relaxed",
|
|
@@ -15485,12 +15499,13 @@ function isReplToggleShortcut(event) {
|
|
|
15485
15499
|
if (event.shiftKey) return false;
|
|
15486
15500
|
return event.metaKey || event.ctrlKey;
|
|
15487
15501
|
}
|
|
15488
|
-
async function evaluateReplExpression(code, runtime, ref = null) {
|
|
15502
|
+
async function evaluateReplExpression(code, runtime, ref = null, api = resolveReplApi(ref)) {
|
|
15489
15503
|
let fn = null;
|
|
15490
15504
|
try {
|
|
15491
15505
|
fn = new Function(
|
|
15492
15506
|
"runtime",
|
|
15493
15507
|
"ref",
|
|
15508
|
+
"api",
|
|
15494
15509
|
`return (async () => { return (${code}); })();`
|
|
15495
15510
|
);
|
|
15496
15511
|
} catch (exprError) {
|
|
@@ -15500,17 +15515,22 @@ async function evaluateReplExpression(code, runtime, ref = null) {
|
|
|
15500
15515
|
fn = new Function(
|
|
15501
15516
|
"runtime",
|
|
15502
15517
|
"ref",
|
|
15518
|
+
"api",
|
|
15503
15519
|
`return (async () => { ${code}
|
|
15504
15520
|
})();`
|
|
15505
15521
|
);
|
|
15506
15522
|
}
|
|
15507
|
-
return await fn(runtime, ref);
|
|
15523
|
+
return await fn(runtime, ref, api);
|
|
15524
|
+
}
|
|
15525
|
+
function resolveReplApi(ref) {
|
|
15526
|
+
if (!ref || typeof ref.getApiV3 !== "function") return null;
|
|
15527
|
+
return ref.getApiV3();
|
|
15508
15528
|
}
|
|
15509
15529
|
function formatReplValue(value) {
|
|
15510
15530
|
if (value === void 0) return "undefined";
|
|
15511
15531
|
if (value === null) return "null";
|
|
15512
15532
|
const type = typeof value;
|
|
15513
|
-
if (type === "string") return JSON.stringify(value);
|
|
15533
|
+
if (type === "string") return truncate(JSON.stringify(value), MAX_OUTPUT_CHARS);
|
|
15514
15534
|
if (type === "number" || type === "boolean" || type === "bigint") {
|
|
15515
15535
|
return String(value);
|
|
15516
15536
|
}
|
|
@@ -15520,7 +15540,7 @@ function formatReplValue(value) {
|
|
|
15520
15540
|
return `[Function${fn.name ? `: ${fn.name}` : ""}]`;
|
|
15521
15541
|
}
|
|
15522
15542
|
try {
|
|
15523
|
-
const serialized = JSON.stringify(value,
|
|
15543
|
+
const serialized = JSON.stringify(createReplPreview(value), null, 2);
|
|
15524
15544
|
if (serialized === void 0) {
|
|
15525
15545
|
return String(value);
|
|
15526
15546
|
}
|
|
@@ -15536,21 +15556,113 @@ function formatReplError(error) {
|
|
|
15536
15556
|
}
|
|
15537
15557
|
return truncate(String(error), MAX_OUTPUT_CHARS);
|
|
15538
15558
|
}
|
|
15539
|
-
function
|
|
15540
|
-
|
|
15541
|
-
|
|
15542
|
-
|
|
15543
|
-
|
|
15544
|
-
|
|
15545
|
-
|
|
15559
|
+
function createReplPreview(value) {
|
|
15560
|
+
return createReplPreviewValue(value, 0, {
|
|
15561
|
+
seen: /* @__PURE__ */ new WeakSet(),
|
|
15562
|
+
nodes: 0
|
|
15563
|
+
});
|
|
15564
|
+
}
|
|
15565
|
+
function createReplPreviewValue(value, depth, state) {
|
|
15566
|
+
if (value === null || typeof value === "number" || typeof value === "boolean") {
|
|
15567
|
+
return value;
|
|
15568
|
+
}
|
|
15569
|
+
if (typeof value === "string") {
|
|
15570
|
+
return value.length > MAX_SERIALIZE_STRING_CHARS ? `${value.slice(0, MAX_SERIALIZE_STRING_CHARS)}... [truncated ${value.length - MAX_SERIALIZE_STRING_CHARS} chars]` : value;
|
|
15571
|
+
}
|
|
15572
|
+
if (typeof value === "bigint") return `${value.toString()}n`;
|
|
15573
|
+
if (typeof value === "symbol") return value.toString();
|
|
15574
|
+
if (typeof value === "function") {
|
|
15575
|
+
const fn = value;
|
|
15576
|
+
return `[Function${fn.name ? `: ${fn.name}` : ""}]`;
|
|
15577
|
+
}
|
|
15578
|
+
if (typeof value !== "object") return String(value);
|
|
15579
|
+
state.nodes += 1;
|
|
15580
|
+
if (state.nodes > MAX_SERIALIZE_NODES) {
|
|
15581
|
+
return "[Max REPL preview nodes reached]";
|
|
15582
|
+
}
|
|
15583
|
+
const objectValue = value;
|
|
15584
|
+
if (state.seen.has(objectValue)) return "[Circular]";
|
|
15585
|
+
state.seen.add(objectValue);
|
|
15586
|
+
if (depth >= MAX_SERIALIZE_DEPTH) {
|
|
15587
|
+
return summarizePreviewBoundary(objectValue);
|
|
15588
|
+
}
|
|
15589
|
+
const domPreview = summarizeDomNode(objectValue);
|
|
15590
|
+
if (domPreview) return domPreview;
|
|
15591
|
+
if (Array.isArray(value)) {
|
|
15592
|
+
const preview = value.slice(0, MAX_SERIALIZE_ARRAY_ITEMS).map((item) => createReplPreviewValue(item, depth + 1, state));
|
|
15593
|
+
if (value.length > MAX_SERIALIZE_ARRAY_ITEMS) {
|
|
15594
|
+
preview.push(`[... ${value.length - MAX_SERIALIZE_ARRAY_ITEMS} more items]`);
|
|
15595
|
+
}
|
|
15596
|
+
return preview;
|
|
15597
|
+
}
|
|
15598
|
+
if (value instanceof Date) {
|
|
15599
|
+
return Number.isNaN(value.getTime()) ? "[Invalid Date]" : value.toISOString();
|
|
15600
|
+
}
|
|
15601
|
+
if (value instanceof Map) {
|
|
15602
|
+
const entries = [];
|
|
15603
|
+
let index = 0;
|
|
15604
|
+
for (const [key, entryValue] of value.entries()) {
|
|
15605
|
+
if (index >= MAX_SERIALIZE_OBJECT_KEYS) {
|
|
15606
|
+
entries.push("[additional map entries omitted]");
|
|
15607
|
+
break;
|
|
15608
|
+
}
|
|
15609
|
+
entries.push([
|
|
15610
|
+
createReplPreviewValue(key, depth + 1, state),
|
|
15611
|
+
createReplPreviewValue(entryValue, depth + 1, state)
|
|
15612
|
+
]);
|
|
15613
|
+
index += 1;
|
|
15546
15614
|
}
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
|
|
15550
|
-
|
|
15615
|
+
return { "[Map]": entries };
|
|
15616
|
+
}
|
|
15617
|
+
if (value instanceof Set) {
|
|
15618
|
+
const entries = [];
|
|
15619
|
+
let index = 0;
|
|
15620
|
+
for (const entryValue of value.values()) {
|
|
15621
|
+
if (index >= MAX_SERIALIZE_OBJECT_KEYS) {
|
|
15622
|
+
entries.push("[additional set entries omitted]");
|
|
15623
|
+
break;
|
|
15624
|
+
}
|
|
15625
|
+
entries.push(createReplPreviewValue(entryValue, depth + 1, state));
|
|
15626
|
+
index += 1;
|
|
15551
15627
|
}
|
|
15552
|
-
return
|
|
15553
|
-
}
|
|
15628
|
+
return { "[Set]": entries };
|
|
15629
|
+
}
|
|
15630
|
+
const output = {};
|
|
15631
|
+
let count = 0;
|
|
15632
|
+
for (const key in value) {
|
|
15633
|
+
if (!Object.prototype.propertyIsEnumerable.call(value, key)) continue;
|
|
15634
|
+
if (count >= MAX_SERIALIZE_OBJECT_KEYS) {
|
|
15635
|
+
output["..."] = "[additional properties omitted]";
|
|
15636
|
+
break;
|
|
15637
|
+
}
|
|
15638
|
+
try {
|
|
15639
|
+
output[key] = createReplPreviewValue(
|
|
15640
|
+
value[key],
|
|
15641
|
+
depth + 1,
|
|
15642
|
+
state
|
|
15643
|
+
);
|
|
15644
|
+
} catch (error) {
|
|
15645
|
+
output[key] = `[unreadable property: ${formatReplError(error)}]`;
|
|
15646
|
+
}
|
|
15647
|
+
count += 1;
|
|
15648
|
+
}
|
|
15649
|
+
return output;
|
|
15650
|
+
}
|
|
15651
|
+
function summarizePreviewBoundary(value) {
|
|
15652
|
+
if (Array.isArray(value)) return `[Array(${value.length}) depth limit]`;
|
|
15653
|
+
const domPreview = summarizeDomNode(value);
|
|
15654
|
+
if (domPreview) return domPreview;
|
|
15655
|
+
const constructorName = value.constructor?.name;
|
|
15656
|
+
return constructorName && constructorName !== "Object" ? `[${constructorName} depth limit]` : "[Object depth limit]";
|
|
15657
|
+
}
|
|
15658
|
+
function summarizeDomNode(value) {
|
|
15659
|
+
const maybeNode = value;
|
|
15660
|
+
if (typeof maybeNode.nodeType !== "number" || typeof maybeNode.nodeName !== "string") {
|
|
15661
|
+
return null;
|
|
15662
|
+
}
|
|
15663
|
+
const id = typeof maybeNode.id === "string" && maybeNode.id.length > 0 ? `#${maybeNode.id}` : "";
|
|
15664
|
+
const className = typeof maybeNode.className === "string" && maybeNode.className.length > 0 ? `.${maybeNode.className.trim().replace(/\s+/g, ".")}` : "";
|
|
15665
|
+
return `[DOM ${maybeNode.nodeName.toLowerCase()}${id}${className}]`;
|
|
15554
15666
|
}
|
|
15555
15667
|
function truncate(text, max) {
|
|
15556
15668
|
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-
|
|
2
|
-
import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-
|
|
3
|
-
import { b7 as EditorAnchorProjection } from '../public-types-
|
|
4
|
-
import '../types-
|
|
1
|
+
export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-BB7tRkY2.cjs';
|
|
2
|
+
import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-COmM7v11.cjs';
|
|
3
|
+
import { b7 as EditorAnchorProjection } from '../public-types-CIvw1GQa.cjs';
|
|
4
|
+
import '../types-CZAll7OS.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 { b7 as EditorAnchorProjection } from '../public-types-
|
|
4
|
-
import '../types-
|
|
1
|
+
export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-DGPbaboy.js';
|
|
2
|
+
import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-COmM7v11.js';
|
|
3
|
+
import { b7 as EditorAnchorProjection } from '../public-types-COCDrgVX.js';
|
|
4
|
+
import '../types-CB_tOnVp.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'yjs';
|
|
7
7
|
import 'y-protocols/awareness';
|
package/dist/legal.d.cts
CHANGED
package/dist/legal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CanonicalDocument } from './canonical-document-
|
|
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-
|
|
3
|
-
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-
|
|
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-CIvw1GQa.cjs';
|
|
3
|
+
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-CZAll7OS.cjs';
|
|
4
4
|
|
|
5
5
|
interface EditorStatePayloadNamespaceEntry {
|
|
6
6
|
namespace: EditorStateNamespace;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CanonicalDocument } from './canonical-document-
|
|
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-
|
|
3
|
-
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-
|
|
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-COCDrgVX.js';
|
|
3
|
+
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-CB_tOnVp.js';
|
|
4
4
|
|
|
5
5
|
interface EditorStatePayloadNamespaceEntry {
|
|
6
6
|
namespace: EditorStateNamespace;
|