@beyondwork/docx-react-component 1.0.136 → 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 +1 -1
- package/dist/api/public-types.d.ts +1 -1
- package/dist/api/v3.cjs +645 -21
- package/dist/api/v3.d.cts +2 -2
- package/dist/api/v3.d.ts +2 -2
- package/dist/api/v3.js +2 -2
- package/dist/{chunk-NX7W6T7L.js → chunk-M3AEVSKU.js} +626 -21
- package/dist/{chunk-HUWZ7AHE.js → chunk-NYIMPM3Z.js} +20 -1
- package/dist/{chunk-JZZKTL7K.js → chunk-SMBDQV73.js} +141 -80
- package/dist/core/commands/formatting-commands.d.cts +1 -1
- package/dist/core/commands/formatting-commands.d.ts +1 -1
- package/dist/core/commands/image-commands.d.cts +1 -1
- package/dist/core/commands/image-commands.d.ts +1 -1
- package/dist/core/commands/section-layout-commands.d.cts +1 -1
- package/dist/core/commands/section-layout-commands.d.ts +1 -1
- package/dist/core/commands/style-commands.d.cts +1 -1
- package/dist/core/commands/style-commands.d.ts +1 -1
- package/dist/core/commands/table-structure-commands.d.cts +1 -1
- package/dist/core/commands/table-structure-commands.d.ts +1 -1
- package/dist/core/commands/text-commands.d.cts +1 -1
- package/dist/core/commands/text-commands.d.ts +1 -1
- package/dist/core/selection/mapping.d.cts +1 -1
- package/dist/core/selection/mapping.d.ts +1 -1
- package/dist/core/state/editor-state.d.cts +1 -1
- package/dist/core/state/editor-state.d.ts +1 -1
- package/dist/index.cjs +808 -111
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +26 -14
- package/dist/io/docx-session.d.cts +3 -3
- package/dist/io/docx-session.d.ts +3 -3
- package/dist/{loader-Cr35kVUi.d.cts → loader-BB7tRkY2.d.cts} +2 -2
- package/dist/{loader-uGY6nDZP.d.ts → loader-DGPbaboy.d.ts} +2 -2
- package/dist/{public-types-CSSH2Whc.d.cts → public-types-CIvw1GQa.d.cts} +126 -1
- package/dist/{public-types-8kVIB5HW.d.ts → public-types-COCDrgVX.d.ts} +126 -1
- package/dist/public-types.d.cts +1 -1
- package/dist/public-types.d.ts +1 -1
- package/dist/runtime/collab.d.cts +2 -2
- package/dist/runtime/collab.d.ts +2 -2
- package/dist/runtime/document-runtime.cjs +160 -80
- package/dist/runtime/document-runtime.d.cts +1 -1
- package/dist/runtime/document-runtime.d.ts +1 -1
- package/dist/runtime/document-runtime.js +2 -2
- package/dist/{session-Beg8ihOi.d.cts → session-CVU-rtCd.d.cts} +2 -2
- package/dist/{session-Dgp-2uYw.d.ts → session-DOqy1-Lf.d.ts} +2 -2
- package/dist/session.d.cts +4 -4
- package/dist/session.d.ts +4 -4
- package/dist/tailwind.d.cts +1 -1
- package/dist/tailwind.d.ts +1 -1
- package/dist/{types-Cin_abw3.d.ts → types-CB_tOnVp.d.ts} +1 -1
- package/dist/{types-qsS39ZkQ.d.cts → types-CZAll7OS.d.cts} +1 -1
- package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +2 -2
- package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +2 -2
- package/dist/ui-tailwind.d.cts +2 -2
- package/dist/ui-tailwind.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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
7
|
import { C as CanonicalDocument } from './canonical-document-COmM7v11.cjs';
|
|
8
8
|
import 'yjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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
7
|
import { C as CanonicalDocument } from './canonical-document-COmM7v11.js';
|
|
8
8
|
import 'yjs';
|
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,
|
|
@@ -14958,6 +14958,7 @@ var LAYER_DEBUG_PANES = [
|
|
|
14958
14958
|
snippets: [
|
|
14959
14959
|
{ label: "Selection context", expression: "ref?.getRuntimeContextAnalytics?.()" },
|
|
14960
14960
|
{ label: "Document context", expression: "ref?.getRuntimeContextAnalytics?.({ scopeKind: 'document' })" },
|
|
14961
|
+
{ label: "API families", expression: "api ? Object.keys(api).sort() : null" },
|
|
14961
14962
|
{ label: "Hot edit trace", expression: "runtime?.debug?.getHotEditTraces?.()?.at(-1)" },
|
|
14962
14963
|
{ label: "View state", expression: "ref?.getViewState?.()" }
|
|
14963
14964
|
],
|
|
@@ -14972,7 +14973,8 @@ var LAYER_DEBUG_PANES = [
|
|
|
14972
14973
|
focus: "Workflow scopes, markup, metadata, candidates, and scope-derived context.",
|
|
14973
14974
|
snippets: [
|
|
14974
14975
|
{ label: "Scope snapshot", expression: "ref?.getWorkflowScopeSnapshot?.()" },
|
|
14975
|
-
{ label: "Query scopes", expression: "ref?.queryScopes?.({ includeHidden: true, includeInvisible: true, limit: 50 })" },
|
|
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) ?? [] }; })()" },
|
|
14976
14978
|
{ label: "Workflow markup", expression: "(() => { const m = ref?.getWorkflowMarkupSnapshot?.(); return m ? { itemCount: m.items?.length ?? 0, items: m.items?.slice(0, 50) ?? [] } : m; })()" }
|
|
14977
14979
|
],
|
|
14978
14980
|
routed: [
|
|
@@ -14987,7 +14989,8 @@ var LAYER_DEBUG_PANES = [
|
|
|
14987
14989
|
snippets: [
|
|
14988
14990
|
{ label: "Document analytics", expression: "ref?.getRuntimeContextAnalytics?.({ scopeKind: 'document' })" },
|
|
14989
14991
|
{ label: "Workflow analytics", expression: "ref?.getRuntimeContextAnalytics?.({ scopeKind: 'workflow_scope', scopeId: ref?.getInteractionGuardSnapshot?.()?.matchedScopeId })" },
|
|
14990
|
-
{ label: "Available scopes", expression: "ref?.queryScopes?.({ includeHidden: true, includeInvisible: true, limit: 50 })" }
|
|
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 })" }
|
|
14991
14994
|
],
|
|
14992
14995
|
routed: [
|
|
14993
14996
|
"AI audit references and action policy payloads are Layer 09-owned."
|
|
@@ -15150,10 +15153,12 @@ function TwRuntimeReplDialog(props) {
|
|
|
15150
15153
|
return;
|
|
15151
15154
|
}
|
|
15152
15155
|
try {
|
|
15156
|
+
const refValue = editorRef?.current ?? null;
|
|
15153
15157
|
const value = await evaluateReplExpression(
|
|
15154
15158
|
code,
|
|
15155
15159
|
runtime,
|
|
15156
|
-
|
|
15160
|
+
refValue,
|
|
15161
|
+
resolveReplApi(refValue)
|
|
15157
15162
|
);
|
|
15158
15163
|
pushEntry({
|
|
15159
15164
|
input: code,
|
|
@@ -15258,9 +15263,10 @@ function TwRuntimeReplDialog(props) {
|
|
|
15258
15263
|
"evaluates against ",
|
|
15259
15264
|
/* @__PURE__ */ jsx15("code", { children: "runtime" }),
|
|
15260
15265
|
editorRef ? /* @__PURE__ */ jsxs13(Fragment3, { children: [
|
|
15261
|
-
" ",
|
|
15262
|
-
"
|
|
15263
|
-
|
|
15266
|
+
", ",
|
|
15267
|
+
/* @__PURE__ */ jsx15("code", { children: "ref" }),
|
|
15268
|
+
", and ",
|
|
15269
|
+
/* @__PURE__ */ jsx15("code", { children: "api" })
|
|
15264
15270
|
] }) : null
|
|
15265
15271
|
] })
|
|
15266
15272
|
] }),
|
|
@@ -15407,10 +15413,10 @@ function TwRuntimeReplDialog(props) {
|
|
|
15407
15413
|
"data-testid": "tw-runtime-repl__output",
|
|
15408
15414
|
children: entries.length === 0 ? /* @__PURE__ */ jsxs13("p", { className: "text-[var(--color-text-tertiary)]", children: [
|
|
15409
15415
|
"Evaluate JavaScript against the active runtime",
|
|
15410
|
-
editorRef ? "
|
|
15416
|
+
editorRef ? ", editor ref, and API" : "",
|
|
15411
15417
|
". Example:",
|
|
15412
15418
|
" ",
|
|
15413
|
-
/* @__PURE__ */ jsx15("code", { children: editorRef ? "
|
|
15419
|
+
/* @__PURE__ */ jsx15("code", { children: editorRef ? "api.ai.listScopes({ limit: 5 })" : "runtime.getRenderSnapshot().surface?.blocks.length" })
|
|
15414
15420
|
] }) : entries.map((entry) => /* @__PURE__ */ jsxs13("div", { className: "mb-3 last:mb-0", children: [
|
|
15415
15421
|
/* @__PURE__ */ jsxs13("div", { className: "flex items-start gap-2", children: [
|
|
15416
15422
|
/* @__PURE__ */ jsx15(
|
|
@@ -15460,7 +15466,7 @@ function TwRuntimeReplDialog(props) {
|
|
|
15460
15466
|
onKeyDown: handleKeyDown,
|
|
15461
15467
|
rows: 3,
|
|
15462
15468
|
spellCheck: false,
|
|
15463
|
-
placeholder: editorRef ? "
|
|
15469
|
+
placeholder: editorRef ? "api.runtime.workflow.queryScopes({ limit: 10 })" : "runtime.getRenderSnapshot().selection",
|
|
15464
15470
|
className: [
|
|
15465
15471
|
"w-full resize-y rounded-[var(--radius-sm)] bg-[var(--color-bg-muted)]",
|
|
15466
15472
|
"px-3 py-2 font-mono text-xs leading-relaxed",
|
|
@@ -15493,12 +15499,13 @@ function isReplToggleShortcut(event) {
|
|
|
15493
15499
|
if (event.shiftKey) return false;
|
|
15494
15500
|
return event.metaKey || event.ctrlKey;
|
|
15495
15501
|
}
|
|
15496
|
-
async function evaluateReplExpression(code, runtime, ref = null) {
|
|
15502
|
+
async function evaluateReplExpression(code, runtime, ref = null, api = resolveReplApi(ref)) {
|
|
15497
15503
|
let fn = null;
|
|
15498
15504
|
try {
|
|
15499
15505
|
fn = new Function(
|
|
15500
15506
|
"runtime",
|
|
15501
15507
|
"ref",
|
|
15508
|
+
"api",
|
|
15502
15509
|
`return (async () => { return (${code}); })();`
|
|
15503
15510
|
);
|
|
15504
15511
|
} catch (exprError) {
|
|
@@ -15508,11 +15515,16 @@ async function evaluateReplExpression(code, runtime, ref = null) {
|
|
|
15508
15515
|
fn = new Function(
|
|
15509
15516
|
"runtime",
|
|
15510
15517
|
"ref",
|
|
15518
|
+
"api",
|
|
15511
15519
|
`return (async () => { ${code}
|
|
15512
15520
|
})();`
|
|
15513
15521
|
);
|
|
15514
15522
|
}
|
|
15515
|
-
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();
|
|
15516
15528
|
}
|
|
15517
15529
|
function formatReplValue(value) {
|
|
15518
15530
|
if (value === void 0) return "undefined";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-
|
|
1
|
+
export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-BB7tRkY2.cjs';
|
|
2
2
|
import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-COmM7v11.cjs';
|
|
3
|
-
import { b7 as EditorAnchorProjection } from '../public-types-
|
|
4
|
-
import '../types-
|
|
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-
|
|
1
|
+
export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-DGPbaboy.js';
|
|
2
2
|
import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-COmM7v11.js';
|
|
3
|
-
import { b7 as EditorAnchorProjection } from '../public-types-
|
|
4
|
-
import '../types-
|
|
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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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-
|
|
3
|
-
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-
|
|
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
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-
|
|
3
|
-
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-
|
|
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;
|
|
@@ -9490,8 +9490,11 @@ declare function createScopeTagRegistry(): ScopeTagRegistry;
|
|
|
9490
9490
|
|
|
9491
9491
|
interface CreateScopeInput {
|
|
9492
9492
|
readonly blockId: string;
|
|
9493
|
+
readonly scopeId?: string;
|
|
9493
9494
|
readonly mode?: "edit" | "suggest" | "comment" | "view";
|
|
9494
9495
|
readonly label?: string;
|
|
9496
|
+
readonly persistence?: WorkflowMetadataPersistence;
|
|
9497
|
+
readonly metadata?: Partial<WorkflowMetadataEntry>;
|
|
9495
9498
|
/** Per-scope visibility. Controls chrome/query presentation only. */
|
|
9496
9499
|
readonly visibility?: ScopeVisibility;
|
|
9497
9500
|
/**
|
|
@@ -9574,8 +9577,11 @@ interface CreateScopeFromAnchorInput {
|
|
|
9574
9577
|
}> & {
|
|
9575
9578
|
readonly storyTarget?: EditorStoryTarget;
|
|
9576
9579
|
}) | SelectionSnapshot;
|
|
9580
|
+
readonly scopeId?: string;
|
|
9577
9581
|
readonly mode?: "edit" | "suggest" | "comment" | "view";
|
|
9578
9582
|
readonly label?: string;
|
|
9583
|
+
readonly persistence?: WorkflowMetadataPersistence;
|
|
9584
|
+
readonly metadata?: Partial<WorkflowMetadataEntry>;
|
|
9579
9585
|
readonly visibility?: ScopeVisibility;
|
|
9580
9586
|
readonly guardPolicy?: WorkflowScopeGuardPolicy;
|
|
9581
9587
|
readonly assoc?: {
|
|
@@ -9601,6 +9607,42 @@ type CreateScopeFromAnchorResult = {
|
|
|
9601
9607
|
/** Machine-routable next-step hint. */
|
|
9602
9608
|
readonly nextStep: string;
|
|
9603
9609
|
};
|
|
9610
|
+
type CreateScopesInputItem = CreateScopeInput | CreateScopeFromAnchorInput;
|
|
9611
|
+
type CreateScopesItemResult = {
|
|
9612
|
+
readonly inputIndex: number;
|
|
9613
|
+
readonly scopeId: string;
|
|
9614
|
+
readonly status: "created";
|
|
9615
|
+
} | {
|
|
9616
|
+
readonly inputIndex: number;
|
|
9617
|
+
readonly scopeId: "";
|
|
9618
|
+
readonly status: "block-not-found";
|
|
9619
|
+
} | {
|
|
9620
|
+
readonly inputIndex: number;
|
|
9621
|
+
readonly scopeId: "";
|
|
9622
|
+
readonly status: "range-invalid";
|
|
9623
|
+
readonly reason: Extract<CreateScopeResult, {
|
|
9624
|
+
readonly status: "range-invalid";
|
|
9625
|
+
}>["reason"] | Extract<CreateScopeFromAnchorResult, {
|
|
9626
|
+
readonly status: "range-invalid";
|
|
9627
|
+
}>["reason"];
|
|
9628
|
+
readonly from: number;
|
|
9629
|
+
readonly to: number;
|
|
9630
|
+
readonly storyLength: number;
|
|
9631
|
+
readonly blockIndex?: number;
|
|
9632
|
+
readonly blockKind?: string;
|
|
9633
|
+
readonly message: string;
|
|
9634
|
+
readonly nextStep: string;
|
|
9635
|
+
};
|
|
9636
|
+
interface CreateScopesInput {
|
|
9637
|
+
readonly scopes: readonly CreateScopesInputItem[];
|
|
9638
|
+
}
|
|
9639
|
+
interface CreateScopesResult {
|
|
9640
|
+
readonly status: "created" | "partial" | "blocked";
|
|
9641
|
+
readonly total: number;
|
|
9642
|
+
readonly created: number;
|
|
9643
|
+
readonly blocked: number;
|
|
9644
|
+
readonly scopes: readonly CreateScopesItemResult[];
|
|
9645
|
+
}
|
|
9604
9646
|
interface SetScopeGuardPolicyInput {
|
|
9605
9647
|
readonly scopeId: string;
|
|
9606
9648
|
readonly guardPolicy: WorkflowScopeGuardPolicy;
|
|
@@ -9627,6 +9669,7 @@ declare function createWorkflowFamily(runtime: RuntimeApiHandle): {
|
|
|
9627
9669
|
getMarkup(): WorkflowMarkupSnapshot;
|
|
9628
9670
|
getGuard(): InteractionGuardSnapshot;
|
|
9629
9671
|
createScope(input: CreateScopeInput): CreateScopeResult;
|
|
9672
|
+
createScopes(input: CreateScopesInput): CreateScopesResult;
|
|
9630
9673
|
getScopeGuardPolicy(scopeId: string): WorkflowScopeGuardPolicy;
|
|
9631
9674
|
setScopeGuardPolicy(input: SetScopeGuardPolicyInput): SetScopeGuardPolicyResult;
|
|
9632
9675
|
createScopeFromAnchor(input: CreateScopeFromAnchorInput): CreateScopeFromAnchorResult;
|
|
@@ -11056,6 +11099,12 @@ interface RuntimeListCommandPreview {
|
|
|
11056
11099
|
readonly canJoin?: boolean;
|
|
11057
11100
|
readonly canContinuePrevious?: boolean;
|
|
11058
11101
|
}
|
|
11102
|
+
interface RuntimeListSequencePreflight {
|
|
11103
|
+
readonly target?: RuntimeListReadback;
|
|
11104
|
+
readonly canJoin: boolean;
|
|
11105
|
+
readonly canContinuePrevious: boolean;
|
|
11106
|
+
readonly blockers: readonly RuntimeListBlocker[];
|
|
11107
|
+
}
|
|
11059
11108
|
interface RuntimeListApplyInput extends RuntimeListTargetInput {
|
|
11060
11109
|
readonly command: RuntimeListCommand;
|
|
11061
11110
|
readonly startAt?: number;
|
|
@@ -11073,6 +11122,8 @@ declare function createListsFamily(runtime: RuntimeApiHandle): {
|
|
|
11073
11122
|
readonly limit?: number;
|
|
11074
11123
|
}): RuntimeListReadback[];
|
|
11075
11124
|
get(input: RuntimeListTargetInput): RuntimeListReadback | null;
|
|
11125
|
+
canJoin(input: RuntimeListTargetInput): RuntimeListSequencePreflight;
|
|
11126
|
+
canContinuePrevious(input: RuntimeListTargetInput): RuntimeListSequencePreflight;
|
|
11076
11127
|
previewCommand(input: RuntimeListApplyInput): RuntimeListCommandPreview;
|
|
11077
11128
|
applyCommand(input: RuntimeListApplyInput): RuntimeListApplyResult;
|
|
11078
11129
|
};
|
|
@@ -12881,6 +12932,80 @@ declare function createActionsFamily(runtime: RuntimeApiHandle): {
|
|
|
12881
12932
|
}>;
|
|
12882
12933
|
};
|
|
12883
12934
|
|
|
12935
|
+
declare function createAgentFamily(runtime: RuntimeApiHandle, pe2Evidence?: AiPe2EvidenceOptions): {
|
|
12936
|
+
agent: Readonly<{
|
|
12937
|
+
read: Readonly<{
|
|
12938
|
+
inspectDocument: () => InspectDocumentResult;
|
|
12939
|
+
listScopes: (filter?: {
|
|
12940
|
+
readonly limit?: number;
|
|
12941
|
+
readonly kind?: SemanticScopeKind;
|
|
12942
|
+
}) => SemanticScope[];
|
|
12943
|
+
getScope: (input: GetScopeInput) => SemanticScope | null;
|
|
12944
|
+
getScopeBundle: (input: GetScopeBundleInput) => ScopeBundle | ScopeBundleNotFound;
|
|
12945
|
+
resolveReference: (input: ResolveReferenceInput) => ResolveReferenceResult;
|
|
12946
|
+
queryScopeAtPosition: (input: QueryScopeAtPositionInput) => QueryScopePositionResult;
|
|
12947
|
+
queryScopeInRange: (input: QueryScopeInRangeInput) => QueryScopePositionResult;
|
|
12948
|
+
brief: (input?: BriefActionsInput) => BriefActionsResult;
|
|
12949
|
+
getDocumentOutline: () => GetDocumentOutlineResult;
|
|
12950
|
+
getDocumentStatistics: () => DocumentStatisticsResult;
|
|
12951
|
+
explainFormatting: (input: ExplainFormattingInput) => ExplainFormattingResult | ExplainFormattingNotFound;
|
|
12952
|
+
}>;
|
|
12953
|
+
target: Readonly<{
|
|
12954
|
+
discover: (input?: DiscoverActionsInput) => DiscoverActionsResult;
|
|
12955
|
+
locate: (input: LocateActionsInput) => LocateActionsResult;
|
|
12956
|
+
locateAll: (input: LocateActionsInput) => LocateActionsResult;
|
|
12957
|
+
createPlaceholderScopes: (input?: CreatePlaceholderScopesActionsInput) => CreatePlaceholderScopesActionsResult;
|
|
12958
|
+
}>;
|
|
12959
|
+
edit: Readonly<{
|
|
12960
|
+
rewrite: (input: RewriteActionsInput) => ApplyActionsResult;
|
|
12961
|
+
runPlan: (input: RunPlanActionsInput) => RunPlanActionsResult;
|
|
12962
|
+
insertText: (input: InsertTextActionsInput) => ApplyActionsResult;
|
|
12963
|
+
mark: (input: MarkActionsInput) => ApplyActionsResult;
|
|
12964
|
+
flag: (input: FlagActionsInput) => ApplyActionsResult;
|
|
12965
|
+
flagMany: (input: Omit<FlagActionsInput, "target"> & LocateActionsInput) => ApplyActionsResult;
|
|
12966
|
+
fieldRefresh: (input: FieldRefreshActionsInput) => ApplyActionsResult;
|
|
12967
|
+
tocRefresh: (input: TocRefreshActionsInput) => ApplyActionsResult;
|
|
12968
|
+
bookmarkEdit: (input: BookmarkEditActionsInput) => ApplyActionsResult;
|
|
12969
|
+
hyperlinkDestinationEdit: (input: HyperlinkDestinationEditActionsInput) => ApplyActionsResult;
|
|
12970
|
+
hyperlinkTextEdit: (input: HyperlinkTextEditActionsInput) => ApplyActionsResult;
|
|
12971
|
+
}>;
|
|
12972
|
+
template: Readonly<{
|
|
12973
|
+
validateTargets: (input: ValidateTemplateTargetsActionsInput) => ValidateTemplateTargetsActionsResult;
|
|
12974
|
+
readTarget: (input: TemplateTargetReadActionsInput) => TemplateTargetReadActionsResult;
|
|
12975
|
+
fillField: (input: TemplateFieldFillActionsInput) => ApplyActionsResult;
|
|
12976
|
+
}>;
|
|
12977
|
+
table: Readonly<{
|
|
12978
|
+
replaceContent: (input: TableContentActionsInput) => ApplyActionsResult;
|
|
12979
|
+
applyFragment: (input: TableFragmentActionsInput) => ApplyActionsResult;
|
|
12980
|
+
applySelection: (input: TableSelectionActionsInput) => ApplyActionsResult;
|
|
12981
|
+
listActions: (input: ListTableActionsInput) => AiTableActionListResult;
|
|
12982
|
+
applyAction: (input: ApplyTableActionInput) => ApplyTableActionResult;
|
|
12983
|
+
}>;
|
|
12984
|
+
list: Readonly<{
|
|
12985
|
+
applyOperation: (input: ListOperationActionsInput) => ApplyActionsResult;
|
|
12986
|
+
}>;
|
|
12987
|
+
object: Readonly<{
|
|
12988
|
+
listActions: (input: ListObjectActionsInput) => AiObjectActionListResult;
|
|
12989
|
+
applyAction: (input: ApplyObjectActionInput) => ApplyObjectActionResult;
|
|
12990
|
+
}>;
|
|
12991
|
+
review: Readonly<{
|
|
12992
|
+
acceptRevision: (input: AcceptRevisionInput) => AcceptRevisionResult;
|
|
12993
|
+
rejectRevision: (input: RejectRevisionInput) => RejectRevisionResult;
|
|
12994
|
+
resolveCommentThread: (input: ResolveCommentThreadInput) => ResolveCommentThreadResult;
|
|
12995
|
+
resolveIssue: (input: ResolveIssueInput) => ResolveIssueResult;
|
|
12996
|
+
reopenIssue: (input: ReopenIssueInput) => ReopenIssueResult;
|
|
12997
|
+
}>;
|
|
12998
|
+
policy: Readonly<{
|
|
12999
|
+
getPolicy: (input?: GetPolicyInput) => GetPolicyResult;
|
|
13000
|
+
listActions: () => ListAIActionsResult;
|
|
13001
|
+
evaluateAction: (input: EvaluateActionInput) => EvaluateActionResult;
|
|
13002
|
+
}>;
|
|
13003
|
+
export: Readonly<{
|
|
13004
|
+
reviewedDocument: (options?: ExportDocxOptions) => Promise<ExportResult>;
|
|
13005
|
+
}>;
|
|
13006
|
+
}>;
|
|
13007
|
+
};
|
|
13008
|
+
|
|
12884
13009
|
type UiEditableTargetKind = NonNullable<SemanticDisplayEntry["editableTargetKind"]>;
|
|
12885
13010
|
type UiEditableTargetCommandFamily = NonNullable<SemanticDisplayEntry["editableTargetCommandFamily"]>;
|
|
12886
13011
|
type UiEditableTargetEditability = NonNullable<SemanticDisplayEntry["editableTargetEditability"]>;
|
|
@@ -13718,7 +13843,7 @@ type ApiV3Runtime = {
|
|
|
13718
13843
|
readonly viewport: ReturnType<typeof createViewportFamily>;
|
|
13719
13844
|
readonly lists: ReturnType<typeof createListsFamily>;
|
|
13720
13845
|
};
|
|
13721
|
-
type ApiV3Ai = ReturnType<typeof createInspectFamily> & ReturnType<typeof createResolveFamily> & ReturnType<typeof createBundleFamily> & ReturnType<typeof createReplacementFamily> & ReturnType<typeof createAttachFamily> & ReturnType<typeof createExportFamily> & ReturnType<typeof createExplainFamily> & ReturnType<typeof createPolicyFamily> & ReturnType<typeof createReviewFamily> & ReturnType<typeof createEvaluateFamily> & ReturnType<typeof createStatsFamily> & ReturnType<typeof createOutlineFamily> & ReturnType<typeof createTableActionFamily> & ReturnType<typeof createObjectActionFamily> & ReturnType<typeof createActionsFamily>;
|
|
13846
|
+
type ApiV3Ai = ReturnType<typeof createInspectFamily> & ReturnType<typeof createResolveFamily> & ReturnType<typeof createBundleFamily> & ReturnType<typeof createReplacementFamily> & ReturnType<typeof createAttachFamily> & ReturnType<typeof createExportFamily> & ReturnType<typeof createExplainFamily> & ReturnType<typeof createPolicyFamily> & ReturnType<typeof createReviewFamily> & ReturnType<typeof createEvaluateFamily> & ReturnType<typeof createStatsFamily> & ReturnType<typeof createOutlineFamily> & ReturnType<typeof createTableActionFamily> & ReturnType<typeof createObjectActionFamily> & ReturnType<typeof createActionsFamily> & ReturnType<typeof createAgentFamily>;
|
|
13722
13847
|
interface ApiV3 {
|
|
13723
13848
|
readonly runtime: ApiV3Runtime;
|
|
13724
13849
|
readonly ai: ApiV3Ai;
|