@beyondwork/docx-react-component 1.0.127 → 1.0.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/api/public-types.d.cts +1 -1
  2. package/dist/api/public-types.d.ts +1 -1
  3. package/dist/api/v3.cjs +428 -0
  4. package/dist/api/v3.d.cts +2 -2
  5. package/dist/api/v3.d.ts +2 -2
  6. package/dist/api/v3.js +1 -1
  7. package/dist/{chunk-PUMZWE2D.js → chunk-6EROGFUF.js} +22 -11
  8. package/dist/{chunk-46KNRA4C.js → chunk-LCYYR57Q.js} +428 -0
  9. package/dist/core/commands/formatting-commands.d.cts +1 -1
  10. package/dist/core/commands/formatting-commands.d.ts +1 -1
  11. package/dist/core/commands/image-commands.d.cts +1 -1
  12. package/dist/core/commands/image-commands.d.ts +1 -1
  13. package/dist/core/commands/section-layout-commands.d.cts +1 -1
  14. package/dist/core/commands/section-layout-commands.d.ts +1 -1
  15. package/dist/core/commands/style-commands.d.cts +1 -1
  16. package/dist/core/commands/style-commands.d.ts +1 -1
  17. package/dist/core/commands/table-structure-commands.d.cts +1 -1
  18. package/dist/core/commands/table-structure-commands.d.ts +1 -1
  19. package/dist/core/commands/text-commands.d.cts +1 -1
  20. package/dist/core/commands/text-commands.d.ts +1 -1
  21. package/dist/core/selection/mapping.d.cts +1 -1
  22. package/dist/core/selection/mapping.d.ts +1 -1
  23. package/dist/core/state/editor-state.d.cts +1 -1
  24. package/dist/core/state/editor-state.d.ts +1 -1
  25. package/dist/index.cjs +462 -13
  26. package/dist/index.d.cts +4 -4
  27. package/dist/index.d.ts +4 -4
  28. package/dist/index.js +14 -4
  29. package/dist/io/docx-session.d.cts +3 -3
  30. package/dist/io/docx-session.d.ts +3 -3
  31. package/dist/{loader-CFICtb9m.d.ts → loader-19ct2Be0.d.ts} +2 -2
  32. package/dist/{loader-DveZOVuC.d.cts → loader-CoXQ2wGd.d.cts} +2 -2
  33. package/dist/{public-types-Cgl3efbO.d.ts → public-types-7KZsNGE2.d.ts} +92 -0
  34. package/dist/{public-types-beSYFJRR.d.cts → public-types-B-CskQen.d.cts} +92 -0
  35. package/dist/public-types.d.cts +1 -1
  36. package/dist/public-types.d.ts +1 -1
  37. package/dist/runtime/collab.d.cts +2 -2
  38. package/dist/runtime/collab.d.ts +2 -2
  39. package/dist/runtime/document-runtime.cjs +22 -11
  40. package/dist/runtime/document-runtime.d.cts +1 -1
  41. package/dist/runtime/document-runtime.d.ts +1 -1
  42. package/dist/runtime/document-runtime.js +1 -1
  43. package/dist/{session-B7u82EJF.d.cts → session-B5015J4v.d.cts} +2 -2
  44. package/dist/{session-BWMJ9jm4.d.ts → session-C2i8-d6v.d.ts} +2 -2
  45. package/dist/session.d.cts +4 -4
  46. package/dist/session.d.ts +4 -4
  47. package/dist/tailwind.d.cts +1 -1
  48. package/dist/tailwind.d.ts +1 -1
  49. package/dist/{types-BQjdVZsh.d.cts → types-DNhN0WeN.d.cts} +1 -1
  50. package/dist/{types-DvvmS5A7.d.ts → types-yvrQuGX9.d.ts} +1 -1
  51. package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +2 -2
  52. package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +2 -2
  53. package/dist/ui-tailwind.d.cts +2 -2
  54. package/dist/ui-tailwind.d.ts +2 -2
  55. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- export { bf as ActiveListContext, gL as ActiveMarginPreset, bg as ActiveNoteContext, gM as ActivePageFormat, bh as AddCommentParams, bi as AddCommentReplyResult, bj as AddCommentResult, gN as AddScopeParams, gO as AddScopeResult, bk as AiExplanationScopeInput, bl as AiExplanationScopeResult, bo as AutosaveConfig, bp as AutosaveState, br as BatchEditEntryResult, bs as BatchEditOperation, bt as BatchEditOptions, bu as BatchEditResult, gP as CAPABILITY_BY_ID, C as CanonicalDocumentEnvelope, gQ as CanonicalDocumentFragment, gR as CapabilityBlockReason, gS as CapabilityCategory, gT as CapabilityKind, gU as CapabilityShortcut, bv as CaretAffinity, bw as ChangeAnchor, bx as ChangeFilter, by as ChartPreviewResolveParams, bz as ChartSnapshot, bA as ChartSnapshotBubbleSeries, bB as ChartSnapshotData, bC as ChartSnapshotScatterSeries, bD as ChartSnapshotSeries, eW as ChromePinSurface, fd as ChromePinsState, gV as ClearHighlightOptions, bF as CollabSession, bL as CommandStateSnapshot, b$ as CommentSidebarSnapshot, c0 as CommentSidebarThreadEntrySnapshot, c1 as CommentSidebarThreadSnapshot, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, c4 as CompatibilityPanelSnapshot, q as CompatibilityReport, gW as DEFAULT_PAGE_ESTIMATE_PX_PER_TWIP, gX as DEFAULT_PX_PER_TWIP, gY as DecorationIndex, c8 as DocumentChunkKind, c9 as DocumentChunkSnapshot, ca as DocumentHeadingSnapshot, cb as DocumentLocationSnapshot, cc as DocumentLocationSource, gZ as DocumentMode, cd as DocumentNavigationSnapshot, ce as DocumentOutlineHeadingSnapshot, cf as DocumentOutlineSnapshot, cg as DocumentPageSnapshot, ch as DocumentSectionSnapshot, ci as DocumentStats, cj as DocumentTextToken, g_ as EMU_PER_INCH, g$ as EMU_PER_PX, fg as EditableTargetRef, ck as EditorAnchorProjection, h0 as EditorApiError, h1 as EditorCapability, cl as EditorDatastoreAdapter, h2 as EditorDiagnostic, h3 as EditorDiagnosticCode, h4 as EditorDiagnosticLlmMetadata, h5 as EditorDiagnosticRecoveryClass, h6 as EditorDiagnosticRemediation, h7 as EditorDiagnosticSource, h8 as EditorDiagnosticTechnical, r as EditorError, cm as EditorErrorCode, E as EditorHostAdapter, f9 as EditorRole, a as EditorSessionState, cn as EditorStateBlob, as as EditorStateLocation, ar as EditorStateNamespace, co as EditorStatePartLoadFailure, cp as EditorStatePartPersistFailure, cq as EditorStatePersister, cr as EditorStatePolicy, cs as EditorStatePolicyEntry, ct as EditorStatePolicyMigration, cu as EditorStateResolveErrorMode, cv as EditorStateResolver, cw as EditorStateStorageRef, cx as EditorStoryTarget, o as EditorSurfaceSnapshot, cy as EditorTelemetryEvent, cz as EditorUser, cA as EditorViewStateSnapshot, cB as EditorWarning, cC as EditorWarningCode, h9 as EffectiveSelectionMode, ha as EmbeddedDocumentManifestLike, hb as ExportDelivery, b as ExportDocxOptions, c as ExportResult, cE as ExternalDocumentSource, hc as FieldEntrySnapshot, hd as FieldFamily, he as FieldRefreshStatus, hf as FieldSnapshot, eY as FormattingAlignment, hg as FormattingBreadcrumbItem, f4 as FormattingStateSnapshot, f0 as GeometryFacet, cF as HeaderFooterLinkPatch, cG as HostAnnotationItem, cH as HostAnnotationKind, cI as HostAnnotationOverlay, cJ as HostAnnotationSnapshot, cK as ISSUE_METADATA_ID, eZ as InsertImageOptions, I as InsertTableOptions, cL as InteractionGuardSnapshot, cM as IssueMetadataValue, cN as IssueMode, cO as IssueOwner, cP as IssueSeverity, hh as LayoutFacetEvent, hi as LayoutFacetInvalidationReason, cQ as LayoutMeasurement, cR as LoadRequest, cS as LoadResult, cT as LoadSourcePolicy, L as LoadStage, fo as MAIN_STORY_TARGET, M as MarginPresetDefinition, hj as MetadataConflictPolicy, cU as MetadataIntegrity, cV as MetadataPersistenceMode, cW as MetadataResolverMissingError, hk as OverlayKind, hl as OverlayVisibilityAuthorship, hm as OverlayVisibilityEnforcement, hn as OverlayVisibilityPolicy, ho as PERCENTAGE_PARTS, hp as PageChromeReservations, hq as PageFieldContext, i as PageFormatDefinition, d0 as PageLayoutSnapshot, hr as PagePreviewMaps, d1 as PageRegionHitTest, P as PersistedEditorSnapshot, eX as PinState, hs as ProtectionRange, t as ProtectionSnapshot, ht as PublicBlockFragment, hu as PublicBlockMeasurement, hv as PublicBorderSpec, hw as PublicCellLocator, hx as PublicCellShading, hy as PublicFieldDirtinessReport, hz as PublicLayoutDivergence, hA as PublicLineBox, hB as PublicLineRunAnchor, fe as PublicMeasurementFidelity, hC as PublicNoteAllocation, hD as PublicPageAnchor, hE as PublicPageFrame, hF as PublicPageLocalStoryInstance, hG as PublicPageNode, hH as PublicPagePaginationTelemetry, hI as PublicPageRegion, hJ as PublicPageRegions, hK as PublicPageSpan, hL as PublicPaginationTelemetry, hM as PublicRegionBlock, hN as PublicRegionKind, hO as PublicResolvedPageStories, hP as PublicResolvedParagraphFormatting, hQ as PublicResolvedRunFormatting, hR as PublicResolvedStoryField, hS as PublicSectionNode, hT as PublicStoryAnchoredObject, hU as PublicTableBorders, hV as PublicTableCellBorders, hW as PublicTableCellMargins, hX as PublicTableEvent, hY as PublicTableRenderPlan, hZ as PublicTableRowHeight, h_ as PublicTableStyle, h$ as PublicTableSummary, i0 as PublicTableWidth, i1 as PublicTwipsRect, d6 as REVIEW_ACTION_METADATA_ID, i2 as ROTATION_UNITS_PER_DEGREE, i3 as RenderAnchorIndex, i4 as RenderAnchorQuery, i5 as RenderBlock, i6 as RenderBlockDecoration, i7 as RenderFrame, i8 as RenderFrameQueryOptions, i9 as RenderFrameRect, ia as RenderHitResult, ib as RenderKernelEvent, ic as RenderLine, id as RenderLineAnchor, ie as RenderPage, ig as RenderPageRegions, ih as RenderPoint, ii as RenderStoryRegion, ij as RenderZoom, ik as RenderZoomSummary, il as ResolveMetadataConflictInput, im as ResolvedNumberingGeometrySnapshot, io as ResolvedNumberingSnapshot, d7 as RestorePointCheckpointType, d8 as RestorePointSnapshot, d9 as RestoreResult, da as ReviewActionKind, db as ReviewActionMetadataValue, dc as ReviewQueueItem, dd as ReviewQueueItemKind, de as ReviewQueueSnapshot, df as ReviewWorkItemSnapshot, dg as ReviewWorkSnapshot, dh as RuntimeContextAnalyticsActionHint, di as RuntimeContextAnalyticsBadge, dj as RuntimeContextAnalyticsCounts, dk as RuntimeContextAnalyticsProvenance, dl as RuntimeContextAnalyticsQuery, dm as RuntimeContextAnalyticsScopeKind, dn as RuntimeContextAnalyticsSnapshot, dp as RuntimeContextAnalyticsState, dq as RuntimeContextAnalyticsUnavailableField, ip as RuntimeEditTargetContext, be as RuntimePageGraph, iq as RuntimePageNode, R as RuntimeRenderSnapshot, ir as SRCRECT_UNITS_PER_PERCENT, is as SanitizeResult, du as SaveExportParams, dv as SaveExportResult, dw as SaveSessionParams, dx as SaveSessionResult, dy as SaveSnapshotParams, dz as SaveSnapshotResult, it as ScopeBundle, iu as ScopeBundleEvidence, iv as ScopeBundleNeighborhood, dA as ScopeCardModel, iw as ScopeChromeVisibility, ix as ScopeChromeVisibilityState, iy as ScopeHandle, dB as ScopeIssueAction, dC as ScopeMetadataPersistence, dD as ScopeMetadataResolver, dE as ScopeMetadataStorageRef, iz as ScopeQueryFilter, iA as ScopeQueryResult, fc as ScopeRailPosture, eV as ScopeRailSegment, iB as ScopeRailSnapshot, iC as ScopeTagRegistry, dF as ScopeTagTouch, iD as ScopeVisibility, j as SearchOptions, iE as SearchResultSnapshot, k as SearchTextOptions, l as SecondaryStorySearchResult, iF as SecondaryStorySurface, dG as SectionBreakType, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, h as SelectionSnapshot, iG as SemanticScope, iH as SemanticScopeKind, e_ as SessionCapabilities, iI as SetSelectionOptions, aL as SharedWorkflowState, iJ as ShortcutDelegationContext, dN as SnapshotRefreshChangeKind, dO as SnapshotRefreshHints, dP as SnapshotRefreshInvalidateTarget, dQ as SnapshotRefreshStaleTarget, iK as StorageReference, iL as StoreEmbeddedDocParams, dR as StoryTextStreamSnapshot, dS as StyleCatalogEntrySnapshot, dT as StyleCatalogSnapshot, dU as SuggestionEntrySnapshot, dV as SuggestionGroup, dW as SuggestionsSnapshot, iM as SupportedFieldFamily, dX as SurfaceBlockSnapshot, iN as SurfaceDrawingAnchor, dY as SurfaceInlineSegment, iO as SurfacePictureEffects, iP as SurfacePreserveOnlyObjectSizing, dZ as SurfaceTableCellSnapshot, d_ as SurfaceTableRowSnapshot, iQ as SurfaceTextBoxBodyProperties, iR as SurfaceTextBoxBodySnapshot, iS as SurfaceTextBoxBodyStatus, iT as SurfaceTextBoxParagraphSnapshot, iU as SurfaceTextBoxRunSnapshot, d$ as SurfaceTextMark, iV as TWIPS_PER_PX, iW as TableOp, iX as TableOpResult, iY as TableOperationCapabilitySnapshot, f8 as TableStructureContextSnapshot, b0 as TextCommandAck, e5 as TextCommandAckKind, b1 as TextCommandRefreshClass, f as TextFormattingDirective, e6 as TextProjection, e7 as TextProjectionLine, e8 as TextProjectionOptions, e9 as TextProjectionStoryEntry, iZ as TextStyleFilter, ea as TocEntrySnapshot, i_ as TocRefreshOptions, i$ as TocRefreshResult, j0 as TocRefreshTrigger, eb as TocRegionSnapshot, ec as TocSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, j1 as UpdateFieldsOptions, j2 as UpdateFieldsResult, ef as ViewMode, j3 as WordReviewEditorChangesFacet, eg as WordReviewEditorChromeOptions, eh as WordReviewEditorChromePreset, ei as WordReviewEditorChromeVisibility, j4 as WordReviewEditorCommentsFacet, j5 as WordReviewEditorDiagnosticsFacet, j6 as WordReviewEditorDocumentFacet, ej as WordReviewEditorEvent, j7 as WordReviewEditorFieldsFacet, e$ as WordReviewEditorLayoutFacet, j8 as WordReviewEditorPasteEvent, b2 as WordReviewEditorProps, b3 as WordReviewEditorRef, j9 as WordReviewEditorScopesFacet, ja as WordReviewEditorTablesFacet, ek as WorkflowBlockedCommandReason, el as WorkflowCandidateRange, em as WorkflowCandidateRangeOptions, en as WorkflowCommentMarkup, jb as WorkflowEventOrigin, f1 as WorkflowFacet, eo as WorkflowFieldMarkup, ep as WorkflowHighlightMarkup, jc as WorkflowLockedZone, eq as WorkflowMarkupBase, er as WorkflowMarkupItem, es as WorkflowMarkupKind, jd as WorkflowMarkupMode, je as WorkflowMarkupModeEnforcement, jf as WorkflowMarkupModePolicy, et as WorkflowMarkupSnapshot, eu as WorkflowMetadataDefinition, ev as WorkflowMetadataEntry, ew as WorkflowMetadataMarkup, ex as WorkflowMetadataPersistence, ey as WorkflowMetadataSnapshot, ez as WorkflowOpaqueFragmentMarkup, eA as WorkflowOverlay, eB as WorkflowOverlayPatch, eC as WorkflowProtectedRangeMarkup, eD as WorkflowRevisionMarkup, eE as WorkflowScope, jg as WorkflowScopeGuardPolicy, jh as WorkflowScopeMetadataField, eF as WorkflowScopeMode, eG as WorkflowScopeSnapshot, eH as WorkflowWorkItem, eI as WorkspaceMode, eJ as ZoomLevel, ji as buildPagePreviewMaps, jj as buildSearchPattern, jk as createCanvasBackend, jl as createPublicNodeAnchor, jm as createPublicRangeAnchor, jn as createScopeTagRegistry, m as createSearchExcerpt, fh as deriveCapabilities, jo as estimateBlockHeight, jp as estimateParagraphLineCount, jq as estimateParagraphLineHeight, jr as findPageForOffset, n as findSearchMatches, js as getUsableColumnWidth, jt as resolvePageFieldDisplayText, ju as sanitizeMarkdown, s as searchSecondaryStories, jv as storyTargetKey, fF as storyTargetsEqual } from '../public-types-beSYFJRR.cjs';
2
+ export { bf as ActiveListContext, gL as ActiveMarginPreset, bg as ActiveNoteContext, gM as ActivePageFormat, bh as AddCommentParams, bi as AddCommentReplyResult, bj as AddCommentResult, gN as AddScopeParams, gO as AddScopeResult, bk as AiExplanationScopeInput, bl as AiExplanationScopeResult, bo as AutosaveConfig, bp as AutosaveState, br as BatchEditEntryResult, bs as BatchEditOperation, bt as BatchEditOptions, bu as BatchEditResult, gP as CAPABILITY_BY_ID, C as CanonicalDocumentEnvelope, gQ as CanonicalDocumentFragment, gR as CapabilityBlockReason, gS as CapabilityCategory, gT as CapabilityKind, gU as CapabilityShortcut, bv as CaretAffinity, bw as ChangeAnchor, bx as ChangeFilter, by as ChartPreviewResolveParams, bz as ChartSnapshot, bA as ChartSnapshotBubbleSeries, bB as ChartSnapshotData, bC as ChartSnapshotScatterSeries, bD as ChartSnapshotSeries, eW as ChromePinSurface, fd as ChromePinsState, gV as ClearHighlightOptions, bF as CollabSession, bL as CommandStateSnapshot, b$ as CommentSidebarSnapshot, c0 as CommentSidebarThreadEntrySnapshot, c1 as CommentSidebarThreadSnapshot, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, c4 as CompatibilityPanelSnapshot, q as CompatibilityReport, gW as DEFAULT_PAGE_ESTIMATE_PX_PER_TWIP, gX as DEFAULT_PX_PER_TWIP, gY as DecorationIndex, c8 as DocumentChunkKind, c9 as DocumentChunkSnapshot, ca as DocumentHeadingSnapshot, cb as DocumentLocationSnapshot, cc as DocumentLocationSource, gZ as DocumentMode, cd as DocumentNavigationSnapshot, ce as DocumentOutlineHeadingSnapshot, cf as DocumentOutlineSnapshot, cg as DocumentPageSnapshot, ch as DocumentSectionSnapshot, ci as DocumentStats, cj as DocumentTextToken, g_ as EMU_PER_INCH, g$ as EMU_PER_PX, fg as EditableTargetRef, ck as EditorAnchorProjection, h0 as EditorApiError, h1 as EditorCapability, cl as EditorDatastoreAdapter, h2 as EditorDiagnostic, h3 as EditorDiagnosticCode, h4 as EditorDiagnosticLlmMetadata, h5 as EditorDiagnosticRecoveryClass, h6 as EditorDiagnosticRemediation, h7 as EditorDiagnosticSource, h8 as EditorDiagnosticTechnical, r as EditorError, cm as EditorErrorCode, E as EditorHostAdapter, f9 as EditorRole, a as EditorSessionState, cn as EditorStateBlob, as as EditorStateLocation, ar as EditorStateNamespace, co as EditorStatePartLoadFailure, cp as EditorStatePartPersistFailure, cq as EditorStatePersister, cr as EditorStatePolicy, cs as EditorStatePolicyEntry, ct as EditorStatePolicyMigration, cu as EditorStateResolveErrorMode, cv as EditorStateResolver, cw as EditorStateStorageRef, cx as EditorStoryTarget, o as EditorSurfaceSnapshot, cy as EditorTelemetryEvent, cz as EditorUser, cA as EditorViewStateSnapshot, cB as EditorWarning, cC as EditorWarningCode, h9 as EffectiveSelectionMode, ha as EmbeddedDocumentManifestLike, hb as ExportDelivery, b as ExportDocxOptions, c as ExportResult, cE as ExternalDocumentSource, hc as FieldEntrySnapshot, hd as FieldFamily, he as FieldRefreshStatus, hf as FieldSnapshot, eY as FormattingAlignment, hg as FormattingBreadcrumbItem, f4 as FormattingStateSnapshot, f0 as GeometryFacet, cF as HeaderFooterLinkPatch, cG as HostAnnotationItem, cH as HostAnnotationKind, cI as HostAnnotationOverlay, cJ as HostAnnotationSnapshot, cK as ISSUE_METADATA_ID, eZ as InsertImageOptions, I as InsertTableOptions, cL as InteractionGuardSnapshot, cM as IssueMetadataValue, cN as IssueMode, cO as IssueOwner, cP as IssueSeverity, hh as LayoutFacetEvent, hi as LayoutFacetInvalidationReason, cQ as LayoutMeasurement, cR as LoadRequest, cS as LoadResult, cT as LoadSourcePolicy, L as LoadStage, fo as MAIN_STORY_TARGET, M as MarginPresetDefinition, hj as MetadataConflictPolicy, cU as MetadataIntegrity, cV as MetadataPersistenceMode, cW as MetadataResolverMissingError, hk as OverlayKind, hl as OverlayVisibilityAuthorship, hm as OverlayVisibilityEnforcement, hn as OverlayVisibilityPolicy, ho as PERCENTAGE_PARTS, hp as PageChromeReservations, hq as PageFieldContext, i as PageFormatDefinition, d0 as PageLayoutSnapshot, hr as PagePreviewMaps, d1 as PageRegionHitTest, P as PersistedEditorSnapshot, eX as PinState, hs as ProtectionRange, t as ProtectionSnapshot, ht as PublicBlockFragment, hu as PublicBlockMeasurement, hv as PublicBorderSpec, hw as PublicCellLocator, hx as PublicCellShading, hy as PublicFieldDirtinessReport, hz as PublicLayoutDivergence, hA as PublicLineBox, hB as PublicLineRunAnchor, fe as PublicMeasurementFidelity, hC as PublicNoteAllocation, hD as PublicPageAnchor, hE as PublicPageFrame, hF as PublicPageLocalStoryInstance, hG as PublicPageNode, hH as PublicPagePaginationTelemetry, hI as PublicPageRegion, hJ as PublicPageRegions, hK as PublicPageSpan, hL as PublicPaginationTelemetry, hM as PublicRegionBlock, hN as PublicRegionKind, hO as PublicResolvedPageStories, hP as PublicResolvedParagraphFormatting, hQ as PublicResolvedRunFormatting, hR as PublicResolvedStoryField, hS as PublicSectionNode, hT as PublicStoryAnchoredObject, hU as PublicTableBorders, hV as PublicTableCellBorders, hW as PublicTableCellMargins, hX as PublicTableEvent, hY as PublicTableRenderPlan, hZ as PublicTableRowHeight, h_ as PublicTableStyle, h$ as PublicTableSummary, i0 as PublicTableWidth, i1 as PublicTwipsRect, d6 as REVIEW_ACTION_METADATA_ID, i2 as ROTATION_UNITS_PER_DEGREE, i3 as RenderAnchorIndex, i4 as RenderAnchorQuery, i5 as RenderBlock, i6 as RenderBlockDecoration, i7 as RenderFrame, i8 as RenderFrameQueryOptions, i9 as RenderFrameRect, ia as RenderHitResult, ib as RenderKernelEvent, ic as RenderLine, id as RenderLineAnchor, ie as RenderPage, ig as RenderPageRegions, ih as RenderPoint, ii as RenderStoryRegion, ij as RenderZoom, ik as RenderZoomSummary, il as ResolveMetadataConflictInput, im as ResolvedNumberingGeometrySnapshot, io as ResolvedNumberingSnapshot, d7 as RestorePointCheckpointType, d8 as RestorePointSnapshot, d9 as RestoreResult, da as ReviewActionKind, db as ReviewActionMetadataValue, dc as ReviewQueueItem, dd as ReviewQueueItemKind, de as ReviewQueueSnapshot, df as ReviewWorkItemSnapshot, dg as ReviewWorkSnapshot, dh as RuntimeContextAnalyticsActionHint, di as RuntimeContextAnalyticsBadge, dj as RuntimeContextAnalyticsCounts, dk as RuntimeContextAnalyticsProvenance, dl as RuntimeContextAnalyticsQuery, dm as RuntimeContextAnalyticsScopeKind, dn as RuntimeContextAnalyticsSnapshot, dp as RuntimeContextAnalyticsState, dq as RuntimeContextAnalyticsUnavailableField, ip as RuntimeEditTargetContext, be as RuntimePageGraph, iq as RuntimePageNode, R as RuntimeRenderSnapshot, ir as SRCRECT_UNITS_PER_PERCENT, is as SanitizeResult, du as SaveExportParams, dv as SaveExportResult, dw as SaveSessionParams, dx as SaveSessionResult, dy as SaveSnapshotParams, dz as SaveSnapshotResult, it as ScopeBundle, iu as ScopeBundleEvidence, iv as ScopeBundleNeighborhood, dA as ScopeCardModel, iw as ScopeChromeVisibility, ix as ScopeChromeVisibilityState, iy as ScopeHandle, dB as ScopeIssueAction, dC as ScopeMetadataPersistence, dD as ScopeMetadataResolver, dE as ScopeMetadataStorageRef, iz as ScopeQueryFilter, iA as ScopeQueryResult, fc as ScopeRailPosture, eV as ScopeRailSegment, iB as ScopeRailSnapshot, iC as ScopeTagRegistry, dF as ScopeTagTouch, iD as ScopeVisibility, j as SearchOptions, iE as SearchResultSnapshot, k as SearchTextOptions, l as SecondaryStorySearchResult, iF as SecondaryStorySurface, dG as SectionBreakType, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, h as SelectionSnapshot, iG as SemanticScope, iH as SemanticScopeKind, e_ as SessionCapabilities, iI as SetSelectionOptions, aL as SharedWorkflowState, iJ as ShortcutDelegationContext, dN as SnapshotRefreshChangeKind, dO as SnapshotRefreshHints, dP as SnapshotRefreshInvalidateTarget, dQ as SnapshotRefreshStaleTarget, iK as StorageReference, iL as StoreEmbeddedDocParams, dR as StoryTextStreamSnapshot, dS as StyleCatalogEntrySnapshot, dT as StyleCatalogSnapshot, dU as SuggestionEntrySnapshot, dV as SuggestionGroup, dW as SuggestionsSnapshot, iM as SupportedFieldFamily, dX as SurfaceBlockSnapshot, iN as SurfaceDrawingAnchor, dY as SurfaceInlineSegment, iO as SurfacePictureEffects, iP as SurfacePreserveOnlyObjectSizing, dZ as SurfaceTableCellSnapshot, d_ as SurfaceTableRowSnapshot, iQ as SurfaceTextBoxBodyProperties, iR as SurfaceTextBoxBodySnapshot, iS as SurfaceTextBoxBodyStatus, iT as SurfaceTextBoxParagraphSnapshot, iU as SurfaceTextBoxRunSnapshot, d$ as SurfaceTextMark, iV as TWIPS_PER_PX, iW as TableOp, iX as TableOpResult, iY as TableOperationCapabilitySnapshot, f8 as TableStructureContextSnapshot, b0 as TextCommandAck, e5 as TextCommandAckKind, b1 as TextCommandRefreshClass, f as TextFormattingDirective, e6 as TextProjection, e7 as TextProjectionLine, e8 as TextProjectionOptions, e9 as TextProjectionStoryEntry, iZ as TextStyleFilter, ea as TocEntrySnapshot, i_ as TocRefreshOptions, i$ as TocRefreshResult, j0 as TocRefreshTrigger, eb as TocRegionSnapshot, ec as TocSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, j1 as UpdateFieldsOptions, j2 as UpdateFieldsResult, ef as ViewMode, j3 as WordReviewEditorChangesFacet, eg as WordReviewEditorChromeOptions, eh as WordReviewEditorChromePreset, ei as WordReviewEditorChromeVisibility, j4 as WordReviewEditorCommentsFacet, j5 as WordReviewEditorDiagnosticsFacet, j6 as WordReviewEditorDocumentFacet, ej as WordReviewEditorEvent, j7 as WordReviewEditorFieldsFacet, e$ as WordReviewEditorLayoutFacet, j8 as WordReviewEditorPasteEvent, b2 as WordReviewEditorProps, b3 as WordReviewEditorRef, j9 as WordReviewEditorScopesFacet, ja as WordReviewEditorTablesFacet, ek as WorkflowBlockedCommandReason, el as WorkflowCandidateRange, em as WorkflowCandidateRangeOptions, en as WorkflowCommentMarkup, jb as WorkflowEventOrigin, f1 as WorkflowFacet, eo as WorkflowFieldMarkup, ep as WorkflowHighlightMarkup, jc as WorkflowLockedZone, eq as WorkflowMarkupBase, er as WorkflowMarkupItem, es as WorkflowMarkupKind, jd as WorkflowMarkupMode, je as WorkflowMarkupModeEnforcement, jf as WorkflowMarkupModePolicy, et as WorkflowMarkupSnapshot, eu as WorkflowMetadataDefinition, ev as WorkflowMetadataEntry, ew as WorkflowMetadataMarkup, ex as WorkflowMetadataPersistence, ey as WorkflowMetadataSnapshot, ez as WorkflowOpaqueFragmentMarkup, eA as WorkflowOverlay, eB as WorkflowOverlayPatch, eC as WorkflowProtectedRangeMarkup, eD as WorkflowRevisionMarkup, eE as WorkflowScope, jg as WorkflowScopeGuardPolicy, jh as WorkflowScopeMetadataField, eF as WorkflowScopeMode, eG as WorkflowScopeSnapshot, eH as WorkflowWorkItem, eI as WorkspaceMode, eJ as ZoomLevel, ji as buildPagePreviewMaps, jj as buildSearchPattern, jk as createCanvasBackend, jl as createPublicNodeAnchor, jm as createPublicRangeAnchor, jn as createScopeTagRegistry, m as createSearchExcerpt, fh as deriveCapabilities, jo as estimateBlockHeight, jp as estimateParagraphLineCount, jq as estimateParagraphLineHeight, jr as findPageForOffset, n as findSearchMatches, js as getUsableColumnWidth, jt as resolvePageFieldDisplayText, ju as sanitizeMarkdown, s as searchSecondaryStories, jv as storyTargetKey, fF as storyTargetsEqual } from '../public-types-B-CskQen.cjs';
3
3
  import 'y-protocols/awareness';
4
4
  import 'yjs';
5
5
  export { a8 as AreaChartModel, a9 as Axis, aa as AxisBase, ab as BarChartModel, B as BlockNode, ac as BubbleChartModel, ad as BubbleSeries, Y as CanonicalParagraphFormatting, Z as CanonicalRunFormatting, ae as CategoryAxis, af as CategoryLikeAxis, ag as ChartCommon, a1 as ChartModel, ah as ColorMod, a3 as ColorRef, ai as ComboChartModel, aj as DataLabelsSpec, ak as DataPointOverride, al as DateAxis, _ as FillSpec, am as Legend, an as LineChartModel, ao as LineSeries, ap as MarkerSpec, aq as PieChartModel, ar as PieSeries, a2 as ResolvedTheme, as as ScatterChartModel, at as ScatterSeries, au as Series, av as SeriesAxis, aw as SeriesBase, ax as ShapeProperties, a0 as StrokeSpec, G as TextMark, $ as TextProperties, ay as Title, az as UnsupportedChartModel, aA as UnsupportedReason, aB as ValueAxis } from '../canonical-document-CXCFCbAz.cjs';
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- export { bf as ActiveListContext, gL as ActiveMarginPreset, bg as ActiveNoteContext, gM as ActivePageFormat, bh as AddCommentParams, bi as AddCommentReplyResult, bj as AddCommentResult, gN as AddScopeParams, gO as AddScopeResult, bk as AiExplanationScopeInput, bl as AiExplanationScopeResult, bo as AutosaveConfig, bp as AutosaveState, br as BatchEditEntryResult, bs as BatchEditOperation, bt as BatchEditOptions, bu as BatchEditResult, gP as CAPABILITY_BY_ID, C as CanonicalDocumentEnvelope, gQ as CanonicalDocumentFragment, gR as CapabilityBlockReason, gS as CapabilityCategory, gT as CapabilityKind, gU as CapabilityShortcut, bv as CaretAffinity, bw as ChangeAnchor, bx as ChangeFilter, by as ChartPreviewResolveParams, bz as ChartSnapshot, bA as ChartSnapshotBubbleSeries, bB as ChartSnapshotData, bC as ChartSnapshotScatterSeries, bD as ChartSnapshotSeries, eW as ChromePinSurface, fd as ChromePinsState, gV as ClearHighlightOptions, bF as CollabSession, bL as CommandStateSnapshot, b$ as CommentSidebarSnapshot, c0 as CommentSidebarThreadEntrySnapshot, c1 as CommentSidebarThreadSnapshot, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, c4 as CompatibilityPanelSnapshot, q as CompatibilityReport, gW as DEFAULT_PAGE_ESTIMATE_PX_PER_TWIP, gX as DEFAULT_PX_PER_TWIP, gY as DecorationIndex, c8 as DocumentChunkKind, c9 as DocumentChunkSnapshot, ca as DocumentHeadingSnapshot, cb as DocumentLocationSnapshot, cc as DocumentLocationSource, gZ as DocumentMode, cd as DocumentNavigationSnapshot, ce as DocumentOutlineHeadingSnapshot, cf as DocumentOutlineSnapshot, cg as DocumentPageSnapshot, ch as DocumentSectionSnapshot, ci as DocumentStats, cj as DocumentTextToken, g_ as EMU_PER_INCH, g$ as EMU_PER_PX, fg as EditableTargetRef, ck as EditorAnchorProjection, h0 as EditorApiError, h1 as EditorCapability, cl as EditorDatastoreAdapter, h2 as EditorDiagnostic, h3 as EditorDiagnosticCode, h4 as EditorDiagnosticLlmMetadata, h5 as EditorDiagnosticRecoveryClass, h6 as EditorDiagnosticRemediation, h7 as EditorDiagnosticSource, h8 as EditorDiagnosticTechnical, r as EditorError, cm as EditorErrorCode, E as EditorHostAdapter, f9 as EditorRole, a as EditorSessionState, cn as EditorStateBlob, as as EditorStateLocation, ar as EditorStateNamespace, co as EditorStatePartLoadFailure, cp as EditorStatePartPersistFailure, cq as EditorStatePersister, cr as EditorStatePolicy, cs as EditorStatePolicyEntry, ct as EditorStatePolicyMigration, cu as EditorStateResolveErrorMode, cv as EditorStateResolver, cw as EditorStateStorageRef, cx as EditorStoryTarget, o as EditorSurfaceSnapshot, cy as EditorTelemetryEvent, cz as EditorUser, cA as EditorViewStateSnapshot, cB as EditorWarning, cC as EditorWarningCode, h9 as EffectiveSelectionMode, ha as EmbeddedDocumentManifestLike, hb as ExportDelivery, b as ExportDocxOptions, c as ExportResult, cE as ExternalDocumentSource, hc as FieldEntrySnapshot, hd as FieldFamily, he as FieldRefreshStatus, hf as FieldSnapshot, eY as FormattingAlignment, hg as FormattingBreadcrumbItem, f4 as FormattingStateSnapshot, f0 as GeometryFacet, cF as HeaderFooterLinkPatch, cG as HostAnnotationItem, cH as HostAnnotationKind, cI as HostAnnotationOverlay, cJ as HostAnnotationSnapshot, cK as ISSUE_METADATA_ID, eZ as InsertImageOptions, I as InsertTableOptions, cL as InteractionGuardSnapshot, cM as IssueMetadataValue, cN as IssueMode, cO as IssueOwner, cP as IssueSeverity, hh as LayoutFacetEvent, hi as LayoutFacetInvalidationReason, cQ as LayoutMeasurement, cR as LoadRequest, cS as LoadResult, cT as LoadSourcePolicy, L as LoadStage, fo as MAIN_STORY_TARGET, M as MarginPresetDefinition, hj as MetadataConflictPolicy, cU as MetadataIntegrity, cV as MetadataPersistenceMode, cW as MetadataResolverMissingError, hk as OverlayKind, hl as OverlayVisibilityAuthorship, hm as OverlayVisibilityEnforcement, hn as OverlayVisibilityPolicy, ho as PERCENTAGE_PARTS, hp as PageChromeReservations, hq as PageFieldContext, i as PageFormatDefinition, d0 as PageLayoutSnapshot, hr as PagePreviewMaps, d1 as PageRegionHitTest, P as PersistedEditorSnapshot, eX as PinState, hs as ProtectionRange, t as ProtectionSnapshot, ht as PublicBlockFragment, hu as PublicBlockMeasurement, hv as PublicBorderSpec, hw as PublicCellLocator, hx as PublicCellShading, hy as PublicFieldDirtinessReport, hz as PublicLayoutDivergence, hA as PublicLineBox, hB as PublicLineRunAnchor, fe as PublicMeasurementFidelity, hC as PublicNoteAllocation, hD as PublicPageAnchor, hE as PublicPageFrame, hF as PublicPageLocalStoryInstance, hG as PublicPageNode, hH as PublicPagePaginationTelemetry, hI as PublicPageRegion, hJ as PublicPageRegions, hK as PublicPageSpan, hL as PublicPaginationTelemetry, hM as PublicRegionBlock, hN as PublicRegionKind, hO as PublicResolvedPageStories, hP as PublicResolvedParagraphFormatting, hQ as PublicResolvedRunFormatting, hR as PublicResolvedStoryField, hS as PublicSectionNode, hT as PublicStoryAnchoredObject, hU as PublicTableBorders, hV as PublicTableCellBorders, hW as PublicTableCellMargins, hX as PublicTableEvent, hY as PublicTableRenderPlan, hZ as PublicTableRowHeight, h_ as PublicTableStyle, h$ as PublicTableSummary, i0 as PublicTableWidth, i1 as PublicTwipsRect, d6 as REVIEW_ACTION_METADATA_ID, i2 as ROTATION_UNITS_PER_DEGREE, i3 as RenderAnchorIndex, i4 as RenderAnchorQuery, i5 as RenderBlock, i6 as RenderBlockDecoration, i7 as RenderFrame, i8 as RenderFrameQueryOptions, i9 as RenderFrameRect, ia as RenderHitResult, ib as RenderKernelEvent, ic as RenderLine, id as RenderLineAnchor, ie as RenderPage, ig as RenderPageRegions, ih as RenderPoint, ii as RenderStoryRegion, ij as RenderZoom, ik as RenderZoomSummary, il as ResolveMetadataConflictInput, im as ResolvedNumberingGeometrySnapshot, io as ResolvedNumberingSnapshot, d7 as RestorePointCheckpointType, d8 as RestorePointSnapshot, d9 as RestoreResult, da as ReviewActionKind, db as ReviewActionMetadataValue, dc as ReviewQueueItem, dd as ReviewQueueItemKind, de as ReviewQueueSnapshot, df as ReviewWorkItemSnapshot, dg as ReviewWorkSnapshot, dh as RuntimeContextAnalyticsActionHint, di as RuntimeContextAnalyticsBadge, dj as RuntimeContextAnalyticsCounts, dk as RuntimeContextAnalyticsProvenance, dl as RuntimeContextAnalyticsQuery, dm as RuntimeContextAnalyticsScopeKind, dn as RuntimeContextAnalyticsSnapshot, dp as RuntimeContextAnalyticsState, dq as RuntimeContextAnalyticsUnavailableField, ip as RuntimeEditTargetContext, be as RuntimePageGraph, iq as RuntimePageNode, R as RuntimeRenderSnapshot, ir as SRCRECT_UNITS_PER_PERCENT, is as SanitizeResult, du as SaveExportParams, dv as SaveExportResult, dw as SaveSessionParams, dx as SaveSessionResult, dy as SaveSnapshotParams, dz as SaveSnapshotResult, it as ScopeBundle, iu as ScopeBundleEvidence, iv as ScopeBundleNeighborhood, dA as ScopeCardModel, iw as ScopeChromeVisibility, ix as ScopeChromeVisibilityState, iy as ScopeHandle, dB as ScopeIssueAction, dC as ScopeMetadataPersistence, dD as ScopeMetadataResolver, dE as ScopeMetadataStorageRef, iz as ScopeQueryFilter, iA as ScopeQueryResult, fc as ScopeRailPosture, eV as ScopeRailSegment, iB as ScopeRailSnapshot, iC as ScopeTagRegistry, dF as ScopeTagTouch, iD as ScopeVisibility, j as SearchOptions, iE as SearchResultSnapshot, k as SearchTextOptions, l as SecondaryStorySearchResult, iF as SecondaryStorySurface, dG as SectionBreakType, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, h as SelectionSnapshot, iG as SemanticScope, iH as SemanticScopeKind, e_ as SessionCapabilities, iI as SetSelectionOptions, aL as SharedWorkflowState, iJ as ShortcutDelegationContext, dN as SnapshotRefreshChangeKind, dO as SnapshotRefreshHints, dP as SnapshotRefreshInvalidateTarget, dQ as SnapshotRefreshStaleTarget, iK as StorageReference, iL as StoreEmbeddedDocParams, dR as StoryTextStreamSnapshot, dS as StyleCatalogEntrySnapshot, dT as StyleCatalogSnapshot, dU as SuggestionEntrySnapshot, dV as SuggestionGroup, dW as SuggestionsSnapshot, iM as SupportedFieldFamily, dX as SurfaceBlockSnapshot, iN as SurfaceDrawingAnchor, dY as SurfaceInlineSegment, iO as SurfacePictureEffects, iP as SurfacePreserveOnlyObjectSizing, dZ as SurfaceTableCellSnapshot, d_ as SurfaceTableRowSnapshot, iQ as SurfaceTextBoxBodyProperties, iR as SurfaceTextBoxBodySnapshot, iS as SurfaceTextBoxBodyStatus, iT as SurfaceTextBoxParagraphSnapshot, iU as SurfaceTextBoxRunSnapshot, d$ as SurfaceTextMark, iV as TWIPS_PER_PX, iW as TableOp, iX as TableOpResult, iY as TableOperationCapabilitySnapshot, f8 as TableStructureContextSnapshot, b0 as TextCommandAck, e5 as TextCommandAckKind, b1 as TextCommandRefreshClass, f as TextFormattingDirective, e6 as TextProjection, e7 as TextProjectionLine, e8 as TextProjectionOptions, e9 as TextProjectionStoryEntry, iZ as TextStyleFilter, ea as TocEntrySnapshot, i_ as TocRefreshOptions, i$ as TocRefreshResult, j0 as TocRefreshTrigger, eb as TocRegionSnapshot, ec as TocSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, j1 as UpdateFieldsOptions, j2 as UpdateFieldsResult, ef as ViewMode, j3 as WordReviewEditorChangesFacet, eg as WordReviewEditorChromeOptions, eh as WordReviewEditorChromePreset, ei as WordReviewEditorChromeVisibility, j4 as WordReviewEditorCommentsFacet, j5 as WordReviewEditorDiagnosticsFacet, j6 as WordReviewEditorDocumentFacet, ej as WordReviewEditorEvent, j7 as WordReviewEditorFieldsFacet, e$ as WordReviewEditorLayoutFacet, j8 as WordReviewEditorPasteEvent, b2 as WordReviewEditorProps, b3 as WordReviewEditorRef, j9 as WordReviewEditorScopesFacet, ja as WordReviewEditorTablesFacet, ek as WorkflowBlockedCommandReason, el as WorkflowCandidateRange, em as WorkflowCandidateRangeOptions, en as WorkflowCommentMarkup, jb as WorkflowEventOrigin, f1 as WorkflowFacet, eo as WorkflowFieldMarkup, ep as WorkflowHighlightMarkup, jc as WorkflowLockedZone, eq as WorkflowMarkupBase, er as WorkflowMarkupItem, es as WorkflowMarkupKind, jd as WorkflowMarkupMode, je as WorkflowMarkupModeEnforcement, jf as WorkflowMarkupModePolicy, et as WorkflowMarkupSnapshot, eu as WorkflowMetadataDefinition, ev as WorkflowMetadataEntry, ew as WorkflowMetadataMarkup, ex as WorkflowMetadataPersistence, ey as WorkflowMetadataSnapshot, ez as WorkflowOpaqueFragmentMarkup, eA as WorkflowOverlay, eB as WorkflowOverlayPatch, eC as WorkflowProtectedRangeMarkup, eD as WorkflowRevisionMarkup, eE as WorkflowScope, jg as WorkflowScopeGuardPolicy, jh as WorkflowScopeMetadataField, eF as WorkflowScopeMode, eG as WorkflowScopeSnapshot, eH as WorkflowWorkItem, eI as WorkspaceMode, eJ as ZoomLevel, ji as buildPagePreviewMaps, jj as buildSearchPattern, jk as createCanvasBackend, jl as createPublicNodeAnchor, jm as createPublicRangeAnchor, jn as createScopeTagRegistry, m as createSearchExcerpt, fh as deriveCapabilities, jo as estimateBlockHeight, jp as estimateParagraphLineCount, jq as estimateParagraphLineHeight, jr as findPageForOffset, n as findSearchMatches, js as getUsableColumnWidth, jt as resolvePageFieldDisplayText, ju as sanitizeMarkdown, s as searchSecondaryStories, jv as storyTargetKey, fF as storyTargetsEqual } from '../public-types-Cgl3efbO.js';
2
+ export { bf as ActiveListContext, gL as ActiveMarginPreset, bg as ActiveNoteContext, gM as ActivePageFormat, bh as AddCommentParams, bi as AddCommentReplyResult, bj as AddCommentResult, gN as AddScopeParams, gO as AddScopeResult, bk as AiExplanationScopeInput, bl as AiExplanationScopeResult, bo as AutosaveConfig, bp as AutosaveState, br as BatchEditEntryResult, bs as BatchEditOperation, bt as BatchEditOptions, bu as BatchEditResult, gP as CAPABILITY_BY_ID, C as CanonicalDocumentEnvelope, gQ as CanonicalDocumentFragment, gR as CapabilityBlockReason, gS as CapabilityCategory, gT as CapabilityKind, gU as CapabilityShortcut, bv as CaretAffinity, bw as ChangeAnchor, bx as ChangeFilter, by as ChartPreviewResolveParams, bz as ChartSnapshot, bA as ChartSnapshotBubbleSeries, bB as ChartSnapshotData, bC as ChartSnapshotScatterSeries, bD as ChartSnapshotSeries, eW as ChromePinSurface, fd as ChromePinsState, gV as ClearHighlightOptions, bF as CollabSession, bL as CommandStateSnapshot, b$ as CommentSidebarSnapshot, c0 as CommentSidebarThreadEntrySnapshot, c1 as CommentSidebarThreadSnapshot, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, c4 as CompatibilityPanelSnapshot, q as CompatibilityReport, gW as DEFAULT_PAGE_ESTIMATE_PX_PER_TWIP, gX as DEFAULT_PX_PER_TWIP, gY as DecorationIndex, c8 as DocumentChunkKind, c9 as DocumentChunkSnapshot, ca as DocumentHeadingSnapshot, cb as DocumentLocationSnapshot, cc as DocumentLocationSource, gZ as DocumentMode, cd as DocumentNavigationSnapshot, ce as DocumentOutlineHeadingSnapshot, cf as DocumentOutlineSnapshot, cg as DocumentPageSnapshot, ch as DocumentSectionSnapshot, ci as DocumentStats, cj as DocumentTextToken, g_ as EMU_PER_INCH, g$ as EMU_PER_PX, fg as EditableTargetRef, ck as EditorAnchorProjection, h0 as EditorApiError, h1 as EditorCapability, cl as EditorDatastoreAdapter, h2 as EditorDiagnostic, h3 as EditorDiagnosticCode, h4 as EditorDiagnosticLlmMetadata, h5 as EditorDiagnosticRecoveryClass, h6 as EditorDiagnosticRemediation, h7 as EditorDiagnosticSource, h8 as EditorDiagnosticTechnical, r as EditorError, cm as EditorErrorCode, E as EditorHostAdapter, f9 as EditorRole, a as EditorSessionState, cn as EditorStateBlob, as as EditorStateLocation, ar as EditorStateNamespace, co as EditorStatePartLoadFailure, cp as EditorStatePartPersistFailure, cq as EditorStatePersister, cr as EditorStatePolicy, cs as EditorStatePolicyEntry, ct as EditorStatePolicyMigration, cu as EditorStateResolveErrorMode, cv as EditorStateResolver, cw as EditorStateStorageRef, cx as EditorStoryTarget, o as EditorSurfaceSnapshot, cy as EditorTelemetryEvent, cz as EditorUser, cA as EditorViewStateSnapshot, cB as EditorWarning, cC as EditorWarningCode, h9 as EffectiveSelectionMode, ha as EmbeddedDocumentManifestLike, hb as ExportDelivery, b as ExportDocxOptions, c as ExportResult, cE as ExternalDocumentSource, hc as FieldEntrySnapshot, hd as FieldFamily, he as FieldRefreshStatus, hf as FieldSnapshot, eY as FormattingAlignment, hg as FormattingBreadcrumbItem, f4 as FormattingStateSnapshot, f0 as GeometryFacet, cF as HeaderFooterLinkPatch, cG as HostAnnotationItem, cH as HostAnnotationKind, cI as HostAnnotationOverlay, cJ as HostAnnotationSnapshot, cK as ISSUE_METADATA_ID, eZ as InsertImageOptions, I as InsertTableOptions, cL as InteractionGuardSnapshot, cM as IssueMetadataValue, cN as IssueMode, cO as IssueOwner, cP as IssueSeverity, hh as LayoutFacetEvent, hi as LayoutFacetInvalidationReason, cQ as LayoutMeasurement, cR as LoadRequest, cS as LoadResult, cT as LoadSourcePolicy, L as LoadStage, fo as MAIN_STORY_TARGET, M as MarginPresetDefinition, hj as MetadataConflictPolicy, cU as MetadataIntegrity, cV as MetadataPersistenceMode, cW as MetadataResolverMissingError, hk as OverlayKind, hl as OverlayVisibilityAuthorship, hm as OverlayVisibilityEnforcement, hn as OverlayVisibilityPolicy, ho as PERCENTAGE_PARTS, hp as PageChromeReservations, hq as PageFieldContext, i as PageFormatDefinition, d0 as PageLayoutSnapshot, hr as PagePreviewMaps, d1 as PageRegionHitTest, P as PersistedEditorSnapshot, eX as PinState, hs as ProtectionRange, t as ProtectionSnapshot, ht as PublicBlockFragment, hu as PublicBlockMeasurement, hv as PublicBorderSpec, hw as PublicCellLocator, hx as PublicCellShading, hy as PublicFieldDirtinessReport, hz as PublicLayoutDivergence, hA as PublicLineBox, hB as PublicLineRunAnchor, fe as PublicMeasurementFidelity, hC as PublicNoteAllocation, hD as PublicPageAnchor, hE as PublicPageFrame, hF as PublicPageLocalStoryInstance, hG as PublicPageNode, hH as PublicPagePaginationTelemetry, hI as PublicPageRegion, hJ as PublicPageRegions, hK as PublicPageSpan, hL as PublicPaginationTelemetry, hM as PublicRegionBlock, hN as PublicRegionKind, hO as PublicResolvedPageStories, hP as PublicResolvedParagraphFormatting, hQ as PublicResolvedRunFormatting, hR as PublicResolvedStoryField, hS as PublicSectionNode, hT as PublicStoryAnchoredObject, hU as PublicTableBorders, hV as PublicTableCellBorders, hW as PublicTableCellMargins, hX as PublicTableEvent, hY as PublicTableRenderPlan, hZ as PublicTableRowHeight, h_ as PublicTableStyle, h$ as PublicTableSummary, i0 as PublicTableWidth, i1 as PublicTwipsRect, d6 as REVIEW_ACTION_METADATA_ID, i2 as ROTATION_UNITS_PER_DEGREE, i3 as RenderAnchorIndex, i4 as RenderAnchorQuery, i5 as RenderBlock, i6 as RenderBlockDecoration, i7 as RenderFrame, i8 as RenderFrameQueryOptions, i9 as RenderFrameRect, ia as RenderHitResult, ib as RenderKernelEvent, ic as RenderLine, id as RenderLineAnchor, ie as RenderPage, ig as RenderPageRegions, ih as RenderPoint, ii as RenderStoryRegion, ij as RenderZoom, ik as RenderZoomSummary, il as ResolveMetadataConflictInput, im as ResolvedNumberingGeometrySnapshot, io as ResolvedNumberingSnapshot, d7 as RestorePointCheckpointType, d8 as RestorePointSnapshot, d9 as RestoreResult, da as ReviewActionKind, db as ReviewActionMetadataValue, dc as ReviewQueueItem, dd as ReviewQueueItemKind, de as ReviewQueueSnapshot, df as ReviewWorkItemSnapshot, dg as ReviewWorkSnapshot, dh as RuntimeContextAnalyticsActionHint, di as RuntimeContextAnalyticsBadge, dj as RuntimeContextAnalyticsCounts, dk as RuntimeContextAnalyticsProvenance, dl as RuntimeContextAnalyticsQuery, dm as RuntimeContextAnalyticsScopeKind, dn as RuntimeContextAnalyticsSnapshot, dp as RuntimeContextAnalyticsState, dq as RuntimeContextAnalyticsUnavailableField, ip as RuntimeEditTargetContext, be as RuntimePageGraph, iq as RuntimePageNode, R as RuntimeRenderSnapshot, ir as SRCRECT_UNITS_PER_PERCENT, is as SanitizeResult, du as SaveExportParams, dv as SaveExportResult, dw as SaveSessionParams, dx as SaveSessionResult, dy as SaveSnapshotParams, dz as SaveSnapshotResult, it as ScopeBundle, iu as ScopeBundleEvidence, iv as ScopeBundleNeighborhood, dA as ScopeCardModel, iw as ScopeChromeVisibility, ix as ScopeChromeVisibilityState, iy as ScopeHandle, dB as ScopeIssueAction, dC as ScopeMetadataPersistence, dD as ScopeMetadataResolver, dE as ScopeMetadataStorageRef, iz as ScopeQueryFilter, iA as ScopeQueryResult, fc as ScopeRailPosture, eV as ScopeRailSegment, iB as ScopeRailSnapshot, iC as ScopeTagRegistry, dF as ScopeTagTouch, iD as ScopeVisibility, j as SearchOptions, iE as SearchResultSnapshot, k as SearchTextOptions, l as SecondaryStorySearchResult, iF as SecondaryStorySurface, dG as SectionBreakType, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, h as SelectionSnapshot, iG as SemanticScope, iH as SemanticScopeKind, e_ as SessionCapabilities, iI as SetSelectionOptions, aL as SharedWorkflowState, iJ as ShortcutDelegationContext, dN as SnapshotRefreshChangeKind, dO as SnapshotRefreshHints, dP as SnapshotRefreshInvalidateTarget, dQ as SnapshotRefreshStaleTarget, iK as StorageReference, iL as StoreEmbeddedDocParams, dR as StoryTextStreamSnapshot, dS as StyleCatalogEntrySnapshot, dT as StyleCatalogSnapshot, dU as SuggestionEntrySnapshot, dV as SuggestionGroup, dW as SuggestionsSnapshot, iM as SupportedFieldFamily, dX as SurfaceBlockSnapshot, iN as SurfaceDrawingAnchor, dY as SurfaceInlineSegment, iO as SurfacePictureEffects, iP as SurfacePreserveOnlyObjectSizing, dZ as SurfaceTableCellSnapshot, d_ as SurfaceTableRowSnapshot, iQ as SurfaceTextBoxBodyProperties, iR as SurfaceTextBoxBodySnapshot, iS as SurfaceTextBoxBodyStatus, iT as SurfaceTextBoxParagraphSnapshot, iU as SurfaceTextBoxRunSnapshot, d$ as SurfaceTextMark, iV as TWIPS_PER_PX, iW as TableOp, iX as TableOpResult, iY as TableOperationCapabilitySnapshot, f8 as TableStructureContextSnapshot, b0 as TextCommandAck, e5 as TextCommandAckKind, b1 as TextCommandRefreshClass, f as TextFormattingDirective, e6 as TextProjection, e7 as TextProjectionLine, e8 as TextProjectionOptions, e9 as TextProjectionStoryEntry, iZ as TextStyleFilter, ea as TocEntrySnapshot, i_ as TocRefreshOptions, i$ as TocRefreshResult, j0 as TocRefreshTrigger, eb as TocRegionSnapshot, ec as TocSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, j1 as UpdateFieldsOptions, j2 as UpdateFieldsResult, ef as ViewMode, j3 as WordReviewEditorChangesFacet, eg as WordReviewEditorChromeOptions, eh as WordReviewEditorChromePreset, ei as WordReviewEditorChromeVisibility, j4 as WordReviewEditorCommentsFacet, j5 as WordReviewEditorDiagnosticsFacet, j6 as WordReviewEditorDocumentFacet, ej as WordReviewEditorEvent, j7 as WordReviewEditorFieldsFacet, e$ as WordReviewEditorLayoutFacet, j8 as WordReviewEditorPasteEvent, b2 as WordReviewEditorProps, b3 as WordReviewEditorRef, j9 as WordReviewEditorScopesFacet, ja as WordReviewEditorTablesFacet, ek as WorkflowBlockedCommandReason, el as WorkflowCandidateRange, em as WorkflowCandidateRangeOptions, en as WorkflowCommentMarkup, jb as WorkflowEventOrigin, f1 as WorkflowFacet, eo as WorkflowFieldMarkup, ep as WorkflowHighlightMarkup, jc as WorkflowLockedZone, eq as WorkflowMarkupBase, er as WorkflowMarkupItem, es as WorkflowMarkupKind, jd as WorkflowMarkupMode, je as WorkflowMarkupModeEnforcement, jf as WorkflowMarkupModePolicy, et as WorkflowMarkupSnapshot, eu as WorkflowMetadataDefinition, ev as WorkflowMetadataEntry, ew as WorkflowMetadataMarkup, ex as WorkflowMetadataPersistence, ey as WorkflowMetadataSnapshot, ez as WorkflowOpaqueFragmentMarkup, eA as WorkflowOverlay, eB as WorkflowOverlayPatch, eC as WorkflowProtectedRangeMarkup, eD as WorkflowRevisionMarkup, eE as WorkflowScope, jg as WorkflowScopeGuardPolicy, jh as WorkflowScopeMetadataField, eF as WorkflowScopeMode, eG as WorkflowScopeSnapshot, eH as WorkflowWorkItem, eI as WorkspaceMode, eJ as ZoomLevel, ji as buildPagePreviewMaps, jj as buildSearchPattern, jk as createCanvasBackend, jl as createPublicNodeAnchor, jm as createPublicRangeAnchor, jn as createScopeTagRegistry, m as createSearchExcerpt, fh as deriveCapabilities, jo as estimateBlockHeight, jp as estimateParagraphLineCount, jq as estimateParagraphLineHeight, jr as findPageForOffset, n as findSearchMatches, js as getUsableColumnWidth, jt as resolvePageFieldDisplayText, ju as sanitizeMarkdown, s as searchSecondaryStories, jv as storyTargetKey, fF as storyTargetsEqual } from '../public-types-7KZsNGE2.js';
3
3
  import 'y-protocols/awareness';
4
4
  import 'yjs';
5
5
  export { a8 as AreaChartModel, a9 as Axis, aa as AxisBase, ab as BarChartModel, B as BlockNode, ac as BubbleChartModel, ad as BubbleSeries, Y as CanonicalParagraphFormatting, Z as CanonicalRunFormatting, ae as CategoryAxis, af as CategoryLikeAxis, ag as ChartCommon, a1 as ChartModel, ah as ColorMod, a3 as ColorRef, ai as ComboChartModel, aj as DataLabelsSpec, ak as DataPointOverride, al as DateAxis, _ as FillSpec, am as Legend, an as LineChartModel, ao as LineSeries, ap as MarkerSpec, aq as PieChartModel, ar as PieSeries, a2 as ResolvedTheme, as as ScatterChartModel, at as ScatterSeries, au as Series, av as SeriesAxis, aw as SeriesBase, ax as ShapeProperties, a0 as StrokeSpec, G as TextMark, $ as TextProperties, ay as Title, az as UnsupportedChartModel, aA as UnsupportedReason, aB as ValueAxis } from '../canonical-document-CXCFCbAz.js';
package/dist/api/v3.cjs CHANGED
@@ -58012,6 +58012,31 @@ var hyperlinkTextEditMetadata = actionMethodMetadata(
58012
58012
  expectedDelta: "hyperlink display text changes"
58013
58013
  }
58014
58014
  );
58015
+ var validateTemplateTargetsMetadata = actionMethodMetadata(
58016
+ "validateTemplateTargets",
58017
+ "read",
58018
+ "actions-template-targets",
58019
+ "Validate template field/clause targets against current document readback, duplicate ranges, and exact action/scope handles before fill.",
58020
+ { uiVisible: false, expectsUxResponse: "none" }
58021
+ );
58022
+ var templateTargetReadMetadata = actionMethodMetadata(
58023
+ "templateTargetRead",
58024
+ "read",
58025
+ "actions-template-targets",
58026
+ "Read a template field/clause target through its exact scope/action handle when present, or diagnostic placeholder occurrence evidence otherwise.",
58027
+ { uiVisible: false, expectsUxResponse: "none" }
58028
+ );
58029
+ var templateFieldFillMetadata = actionMethodMetadata(
58030
+ "templateFieldFill",
58031
+ "mutate",
58032
+ "actions-template-targets",
58033
+ "Fill one template field only through an exact scope/action handle after same-target readback validation; raw ranges are diagnostics only.",
58034
+ {
58035
+ uiVisible: true,
58036
+ expectsUxResponse: "inline-change",
58037
+ expectedDelta: "the exact template field target text changes"
58038
+ }
58039
+ );
58015
58040
  var listOperationMetadata = actionMethodMetadata(
58016
58041
  "listOperation",
58017
58042
  "mutate",
@@ -58072,6 +58097,9 @@ var ACTION_METHODS = Object.freeze([
58072
58097
  "bookmarkEdit",
58073
58098
  "hyperlinkDestinationEdit",
58074
58099
  "hyperlinkTextEdit",
58100
+ "validateTemplateTargets",
58101
+ "templateTargetRead",
58102
+ "templateFieldFill",
58075
58103
  "listOperation",
58076
58104
  "tableFragment",
58077
58105
  "tableSelection",
@@ -58440,6 +58468,25 @@ function createActionsFamily(runtime) {
58440
58468
  origin: input.origin
58441
58469
  });
58442
58470
  },
58471
+ validateTemplateTargets(input) {
58472
+ return validateTemplateTargets(runtime, input);
58473
+ },
58474
+ templateTargetRead(input) {
58475
+ const item = validateTemplateTarget(runtime, input.target, {
58476
+ duplicateRanges: /* @__PURE__ */ new Set(),
58477
+ allowDuplicateRanges: true
58478
+ });
58479
+ return {
58480
+ status: item.status === "blocked" ? "blocked" : "read",
58481
+ ...item.target ? { target: item.target } : {},
58482
+ ...item.readback ? { readback: item.readback } : {},
58483
+ ...item.blockers ? { blockers: item.blockers } : {},
58484
+ ...item.blockerDetails ? { blockerDetails: item.blockerDetails } : {}
58485
+ };
58486
+ },
58487
+ templateFieldFill(input) {
58488
+ return applyTemplateFieldFill(runtime, input);
58489
+ },
58443
58490
  listOperation(input) {
58444
58491
  return applyListOperation(runtime, input);
58445
58492
  },
@@ -58509,6 +58556,9 @@ function runPlanStep(runtime, mode, step, plan) {
58509
58556
  if (step.kind === "tableAction" || step.kind === "tableFragment" || step.kind === "tableSelection") {
58510
58557
  return runPlanTableActionStep(runtime, mode, step, plan);
58511
58558
  }
58559
+ if (step.kind === "templateFieldFill") {
58560
+ return runPlanTemplateFieldFillStep(runtime, mode, step, plan);
58561
+ }
58512
58562
  const before = step.target ? readPlanTarget(runtime, step.target) : readDocumentPlanTarget(runtime);
58513
58563
  if (!before.ok) {
58514
58564
  return blockedPlanStepFromDetails(step.id, step.kind, before.blockerDetails);
@@ -58668,6 +58718,72 @@ function runPlanTableActionStep(runtime, mode, step, plan) {
58668
58718
  ...result.commandReference ? { commandReference: result.commandReference } : {}
58669
58719
  };
58670
58720
  }
58721
+ function runPlanTemplateFieldFillStep(runtime, mode, step, plan) {
58722
+ const validation = validateTemplateTarget(runtime, step.field, {
58723
+ duplicateRanges: /* @__PURE__ */ new Set(),
58724
+ allowDuplicateRanges: true
58725
+ });
58726
+ if (validation.status === "blocked" || !validation.canFill) {
58727
+ return blockedPlanStepFromDetails(
58728
+ step.id,
58729
+ step.kind,
58730
+ validation.blockerDetails ?? [
58731
+ blocker(
58732
+ `actions:template-field-fill:not-fillable:${templateTargetDebugId(step.field)}`,
58733
+ "blocked",
58734
+ "The template field target is not backed by an exact fill handle.",
58735
+ "Plant the field through editor APIs and pass the returned scope handle or actionHandle; raw ranges are diagnostics only."
58736
+ )
58737
+ ],
58738
+ {
58739
+ ...validation.target ? { target: validation.target } : {},
58740
+ ...validation.readback ? { beforeReadback: templateReadbackToPlanReadback(validation.readback) } : {}
58741
+ }
58742
+ );
58743
+ }
58744
+ const precondition = checkPlanPreconditions(step, templateReadbackToPlanReadback(validation.readback));
58745
+ if (precondition) {
58746
+ return blockedPlanStepFromDetails(step.id, step.kind, [precondition], {
58747
+ ...validation.target ? { target: validation.target } : {},
58748
+ ...validation.readback ? { beforeReadback: templateReadbackToPlanReadback(validation.readback) } : {}
58749
+ });
58750
+ }
58751
+ if (mode === "preview") {
58752
+ return {
58753
+ id: step.id,
58754
+ kind: step.kind,
58755
+ status: "planned",
58756
+ applied: false,
58757
+ changed: false,
58758
+ ...validation.target ? { target: validation.target } : {},
58759
+ ...validation.readback ? { beforeReadback: templateReadbackToPlanReadback(validation.readback) } : {}
58760
+ };
58761
+ }
58762
+ const applied = applyTemplateFieldFill(runtime, {
58763
+ field: step.field,
58764
+ text: step.text,
58765
+ actorId: step.actorId ?? plan.actorId,
58766
+ origin: step.origin ?? plan.origin,
58767
+ ...step.proposalId ? { proposalId: step.proposalId } : {}
58768
+ });
58769
+ const after = step.field.target ? readPlanTarget(runtime, step.field.target) : null;
58770
+ return {
58771
+ id: step.id,
58772
+ kind: step.kind,
58773
+ status: applied.status === "unsupported" ? "unsupported" : applied.applied ? "applied" : "blocked",
58774
+ applied: applied.applied,
58775
+ changed: applied.changed,
58776
+ ...applied.target ?? validation.target ? { target: applied.target ?? validation.target } : {},
58777
+ ...validation.readback ? { beforeReadback: templateReadbackToPlanReadback(validation.readback) } : {},
58778
+ ...after?.ok && after.readback ? { afterReadback: after.readback } : {},
58779
+ ...applied.proposalId ? { proposalId: applied.proposalId } : {},
58780
+ ...applied.posture ? { posture: applied.posture } : {},
58781
+ ...applied.blockers ? { blockers: applied.blockers } : {},
58782
+ ...applied.blockerDetails ? { blockerDetails: applied.blockerDetails } : {},
58783
+ ...applied.auditReference ? { auditReference: applied.auditReference } : {},
58784
+ ...applied.commandReference ? { commandReference: applied.commandReference } : {}
58785
+ };
58786
+ }
58671
58787
  function locateAll(runtime, input) {
58672
58788
  if (!input.query) {
58673
58789
  const detail = blocker(
@@ -58750,6 +58866,310 @@ function locateAll(runtime, input) {
58750
58866
  ...matches.length === 0 ? { blockers: Object.freeze([`actions:locate:not-found:${input.query}`]) } : {}
58751
58867
  };
58752
58868
  }
58869
+ function validateTemplateTargets(runtime, input) {
58870
+ if (!Array.isArray(input.targets) || input.targets.length === 0) {
58871
+ const detail = blocker(
58872
+ "actions:template-targets:empty",
58873
+ "input",
58874
+ "Template target validation requires at least one field or clause target.",
58875
+ "Pass the analyzer targets before saving the template."
58876
+ );
58877
+ return {
58878
+ status: "blocked",
58879
+ targets: Object.freeze([]),
58880
+ blockers: Object.freeze([detail.code]),
58881
+ blockerDetails: Object.freeze([detail])
58882
+ };
58883
+ }
58884
+ const duplicateRanges = /* @__PURE__ */ new Set();
58885
+ const items = input.targets.map(
58886
+ (target) => validateTemplateTarget(runtime, target, {
58887
+ duplicateRanges,
58888
+ allowDuplicateRanges: input.allowDuplicateRanges === true
58889
+ })
58890
+ );
58891
+ const blockers = items.flatMap((item) => item.blockers ?? []);
58892
+ const blockerDetails = items.flatMap((item) => item.blockerDetails ?? []);
58893
+ return {
58894
+ status: blockerDetails.length === 0 ? "valid" : items.some((item) => item.status !== "blocked") ? "partial" : "blocked",
58895
+ targets: Object.freeze(items),
58896
+ ...blockers.length > 0 ? { blockers: Object.freeze(blockers) } : {},
58897
+ ...blockerDetails.length > 0 ? { blockerDetails: Object.freeze(blockerDetails) } : {}
58898
+ };
58899
+ }
58900
+ function validateTemplateTarget(runtime, target, context) {
58901
+ const targetKind = templateTargetKind(target);
58902
+ const details = [];
58903
+ const warnings = [];
58904
+ const expected = templateExpectedText(target);
58905
+ const occurrenceCount = expected ? countOccurrences(documentText(runtime.getCanonicalDocument()), expected) : void 0;
58906
+ const rangeKey = templateLocationKey(target.location);
58907
+ if (target.fieldId && target.clauseId) {
58908
+ details.push(
58909
+ blocker(
58910
+ `actions:template-targets:mixed-field-clause:${templateTargetDebugId(target)}`,
58911
+ "input",
58912
+ "A template target cannot be both a field and a clause.",
58913
+ "Split clause boundaries from fillable fields and save them as separate template targets."
58914
+ )
58915
+ );
58916
+ }
58917
+ if (!expected && !target.target) {
58918
+ details.push(
58919
+ blocker(
58920
+ `actions:template-targets:expected-text-required:${templateTargetDebugId(target)}`,
58921
+ "input",
58922
+ "A template target without an exact handle requires placeholderText or expectedText for validation.",
58923
+ "Store the visible placeholder/current text with the target before saving the template."
58924
+ )
58925
+ );
58926
+ }
58927
+ if (rangeKey && !context.allowDuplicateRanges) {
58928
+ if (context.duplicateRanges.has(rangeKey)) {
58929
+ details.push(
58930
+ blocker(
58931
+ `actions:template-targets:duplicate-range:${rangeKey}`,
58932
+ "ambiguous-target",
58933
+ "More than one template target claims the same document range.",
58934
+ "Create one shared grouped field target, or give each field a distinct occurrence identity."
58935
+ )
58936
+ );
58937
+ } else {
58938
+ context.duplicateRanges.add(rangeKey);
58939
+ }
58940
+ }
58941
+ if (isTableTemplateLocation(target.location) && !hasTableCellIdentity(target.location)) {
58942
+ details.push(
58943
+ blocker(
58944
+ `actions:template-targets:table-cell-identity-required:${templateTargetDebugId(target)}`,
58945
+ "input",
58946
+ "A table template target must carry stable cell identity.",
58947
+ "Include cellSourceRef/cellRefId or row and column identity plus the exact actionHandle returned for the cell text."
58948
+ )
58949
+ );
58950
+ }
58951
+ if (expected && occurrenceCount !== void 0 && occurrenceCount > 1 && !hasOccurrenceIdentity(target) && !target.target) {
58952
+ details.push(
58953
+ blocker(
58954
+ `actions:template-targets:ambiguous-placeholder:${templateTargetDebugId(target)}`,
58955
+ "ambiguous-target",
58956
+ "The placeholder/current text appears more than once and the target has no occurrence identity or exact handle.",
58957
+ "Persist an occurrence refId/index or the exact scope/action handle returned by ai.actions.locateAll."
58958
+ )
58959
+ );
58960
+ }
58961
+ let summary;
58962
+ let readback = occurrenceCount !== void 0 && expected !== void 0 ? { text: expected, excerpt: excerpt(expected), isEmpty: expected.trim().length === 0, occurrenceCount } : void 0;
58963
+ if (target.target) {
58964
+ const read = readPlanTarget(runtime, target.target);
58965
+ if (!read.ok) {
58966
+ details.push(...read.blockerDetails);
58967
+ } else {
58968
+ summary = read.target;
58969
+ readback = {
58970
+ text: read.readback?.text,
58971
+ excerpt: read.readback?.excerpt,
58972
+ isEmpty: read.readback?.isEmpty,
58973
+ ...occurrenceCount !== void 0 ? { occurrenceCount } : {}
58974
+ };
58975
+ const text = read.readback?.text ?? "";
58976
+ if (expected && !text.includes(expected)) {
58977
+ details.push(
58978
+ blocker(
58979
+ `actions:template-targets:stale-readback:${templateTargetDebugId(target)}`,
58980
+ "blocked",
58981
+ "The exact handle readback no longer contains the analyzer's expected text.",
58982
+ "Re-run template analysis against the current document and save fresh targets before filling."
58983
+ )
58984
+ );
58985
+ }
58986
+ }
58987
+ }
58988
+ const canFill = targetKind === "template-field" && target.target !== void 0 && details.length === 0;
58989
+ if (targetKind === "template-field" && !target.target) {
58990
+ details.push(
58991
+ blocker(
58992
+ `actions:template-field-fill:exact-target-required:${templateTargetDebugId(target)}`,
58993
+ "blocked",
58994
+ "Template field fill requires an exact scope handle or opaque actionHandle.",
58995
+ "Plant fields through editor APIs and store the returned handle; raw offsets and YAML ranges are diagnostics only."
58996
+ )
58997
+ );
58998
+ }
58999
+ if (targetKind === "template-clause") {
59000
+ warnings.push("template-clause targets are boundary evidence; fillable placeholders must be separate template-field targets.");
59001
+ }
59002
+ const status = details.length > 0 ? "blocked" : warnings.length > 0 ? "warning" : "valid";
59003
+ return {
59004
+ status,
59005
+ targetKind,
59006
+ ...target.fieldId ? { fieldId: target.fieldId } : {},
59007
+ ...target.clauseId ? { clauseId: target.clauseId } : {},
59008
+ ...target.name ? { name: target.name } : {},
59009
+ ...target.groupId ? { groupId: target.groupId } : {},
59010
+ canFill,
59011
+ ...summary ? { target: summary } : {},
59012
+ ...readback ? { readback } : {},
59013
+ ...details.length > 0 ? { blockers: Object.freeze(details.map((detail) => detail.code)) } : {},
59014
+ ...details.length > 0 ? { blockerDetails: Object.freeze(details) } : {},
59015
+ ...warnings.length > 0 ? { warnings: Object.freeze(warnings) } : {}
59016
+ };
59017
+ }
59018
+ function applyTemplateFieldFill(runtime, input) {
59019
+ if (input.text === void 0) {
59020
+ return blockedApply(
59021
+ "actions:template-field-fill:text-required",
59022
+ "input",
59023
+ "Template field fill requires a text value.",
59024
+ "Retry with the field fill text."
59025
+ );
59026
+ }
59027
+ if (templateTargetKind(input.field) !== "template-field") {
59028
+ return blockedApply(
59029
+ `actions:template-field-fill:field-target-required:${templateTargetDebugId(input.field)}`,
59030
+ "input",
59031
+ "Template field fill accepts only template-field targets.",
59032
+ "Split clause boundaries from fields and call templateFieldFill only for fillable fields."
59033
+ );
59034
+ }
59035
+ const validation = validateTemplateTarget(runtime, input.field, {
59036
+ duplicateRanges: /* @__PURE__ */ new Set(),
59037
+ allowDuplicateRanges: true
59038
+ });
59039
+ if (validation.status === "blocked" || !validation.canFill || !input.field.target) {
59040
+ return blockedApply(
59041
+ validation.blockerDetails?.[0]?.code ?? `actions:template-field-fill:exact-target-required:${templateTargetDebugId(input.field)}`,
59042
+ validation.blockerDetails?.[0]?.category ?? "blocked",
59043
+ validation.blockerDetails?.[0]?.message ?? "Template field fill requires a validated exact scope handle or opaque actionHandle.",
59044
+ validation.blockerDetails?.[0]?.nextStep ?? "Plant the field through editor APIs and pass the returned handle; raw ranges are diagnostics only.",
59045
+ validation.blockerDetails
59046
+ );
59047
+ }
59048
+ const exactnessBlocker = templateFillExactnessBlocker(input.field, validation);
59049
+ if (exactnessBlocker) {
59050
+ return blockedApply(
59051
+ exactnessBlocker.code,
59052
+ exactnessBlocker.category,
59053
+ exactnessBlocker.message,
59054
+ exactnessBlocker.nextStep,
59055
+ [exactnessBlocker]
59056
+ );
59057
+ }
59058
+ const resolved = resolveTarget(runtime, input.field.target);
59059
+ if (!resolved.ok) return blockedApplyFromResolution(resolved);
59060
+ const result = applyRewrite(runtime, resolved.target, {
59061
+ target: input.field.target,
59062
+ text: input.text,
59063
+ actorId: input.actorId,
59064
+ origin: input.origin,
59065
+ ...input.proposalId ? { proposalId: input.proposalId } : {}
59066
+ });
59067
+ if (!result.applied) return result;
59068
+ const after = readPlanTarget(runtime, input.field.target);
59069
+ if (!after.ok || after.readback?.text !== input.text) {
59070
+ const detail = blockerWithOwner(
59071
+ `actions:template-field-fill:readback-mismatch:${templateTargetDebugId(input.field)}`,
59072
+ "blocked",
59073
+ "The field fill reported applied, but same-target readback did not match the requested text.",
59074
+ "Treat this as failed, inspect export/reopen evidence, and route the target lowering to L08/L07 before retrying.",
59075
+ "L08 semantic scopes and L07 runtime text commands"
59076
+ );
59077
+ return {
59078
+ ...result,
59079
+ status: "blocked",
59080
+ applied: false,
59081
+ changed: result.changed,
59082
+ posture: "suspect-readback",
59083
+ blockers: Object.freeze([...result.blockers ?? [], detail.code]),
59084
+ blockerDetails: Object.freeze([...result.blockerDetails ?? [], detail])
59085
+ };
59086
+ }
59087
+ return result;
59088
+ }
59089
+ function templateFillExactnessBlocker(target, validation) {
59090
+ const readback = validation.readback?.text ?? "";
59091
+ const expected = templateExpectedText(target);
59092
+ if (!expected) return null;
59093
+ if (readback === expected) return null;
59094
+ return blocker(
59095
+ `actions:template-field-fill:exact-target-not-isolated:${templateTargetDebugId(target)}`,
59096
+ "blocked",
59097
+ "The exact handle readback contains surrounding document text, not just the template field text.",
59098
+ "Plant an isolated template-field scope/action handle for the placeholder; do not fill by broad paragraph, clause, or raw range."
59099
+ );
59100
+ }
59101
+ function templateReadbackToPlanReadback(readback) {
59102
+ if (!readback) return void 0;
59103
+ return {
59104
+ ...readback.text !== void 0 ? { text: readback.text } : {},
59105
+ ...readback.excerpt !== void 0 ? { excerpt: readback.excerpt } : {},
59106
+ ...readback.isEmpty !== void 0 ? { isEmpty: readback.isEmpty } : {}
59107
+ };
59108
+ }
59109
+ function templateTargetKind(target) {
59110
+ return target.kind ?? (target.clauseId && !target.fieldId ? "template-clause" : "template-field");
59111
+ }
59112
+ function templateExpectedText(target) {
59113
+ const text = target.expectedText ?? target.placeholderText;
59114
+ return text && text.length > 0 ? text : void 0;
59115
+ }
59116
+ function templateTargetDebugId(target) {
59117
+ return target.fieldId ?? target.clauseId ?? target.name ?? target.placeholderText ?? "unknown";
59118
+ }
59119
+ function templateLocationKey(location) {
59120
+ if (!location?.refId && location?.start === void 0 && location?.end === void 0) return null;
59121
+ return [
59122
+ location.story ?? "main",
59123
+ location.refId ?? "no-ref",
59124
+ location.start ?? "no-start",
59125
+ location.end ?? "no-end"
59126
+ ].join(":");
59127
+ }
59128
+ function isTableTemplateLocation(location) {
59129
+ return Boolean(
59130
+ location?.blockKind === "table-cell" || location?.tableRefId || location?.rowRefId || location?.cellRefId
59131
+ );
59132
+ }
59133
+ function hasTableCellIdentity(location) {
59134
+ return Boolean(
59135
+ location?.cellRefId || location?.rowRefId && location.columnIndex !== void 0 || location?.rowIndex !== void 0 && location?.columnIndex !== void 0
59136
+ );
59137
+ }
59138
+ function hasOccurrenceIdentity(target) {
59139
+ return Boolean(
59140
+ target.occurrence?.refId || target.occurrence?.occurrenceIndexInRef !== void 0 || target.occurrence?.occurrenceIndexGlobal !== void 0 || target.location?.refId || target.location?.cellRefId
59141
+ );
59142
+ }
59143
+ function countOccurrences(text, query) {
59144
+ if (!query) return 0;
59145
+ let count = 0;
59146
+ let index = 0;
59147
+ while (index <= text.length) {
59148
+ const found = text.indexOf(query, index);
59149
+ if (found === -1) break;
59150
+ count += 1;
59151
+ index = found + Math.max(1, query.length);
59152
+ }
59153
+ return count;
59154
+ }
59155
+ function documentText(document2) {
59156
+ return document2.content.children.map((block) => blockText(block)).join("\n");
59157
+ }
59158
+ function blockText(block) {
59159
+ switch (block.type) {
59160
+ case "paragraph":
59161
+ return collectInlineText2(block.children);
59162
+ case "table":
59163
+ return block.rows.map(
59164
+ (row) => row.cells.map((cell) => cell.children.map((child) => blockText(child)).join("\n")).join(" ")
59165
+ ).join("\n");
59166
+ case "sdt":
59167
+ case "custom_xml":
59168
+ return block.children.map((child) => blockText(child)).join("\n");
59169
+ default:
59170
+ return "";
59171
+ }
59172
+ }
58753
59173
  function resolveTarget(runtime, target) {
58754
59174
  if ("actionHandle" in target) {
58755
59175
  const action = findTableAction(runtime, target.actionHandle);
@@ -59460,6 +59880,14 @@ function applyPlanStep(runtime, step, plan) {
59460
59880
  actorId: step.actorId ?? plan.actorId,
59461
59881
  origin: step.origin ?? plan.origin
59462
59882
  });
59883
+ case "templateFieldFill":
59884
+ return createActionsFamily(runtime).actions.templateFieldFill({
59885
+ field: step.field,
59886
+ text: step.text,
59887
+ actorId: step.actorId ?? plan.actorId,
59888
+ origin: step.origin ?? plan.origin,
59889
+ ...step.proposalId ? { proposalId: step.proposalId } : {}
59890
+ });
59463
59891
  case "listOperation":
59464
59892
  return createActionsFamily(runtime).actions.listOperation({
59465
59893
  target: step.target,
package/dist/api/v3.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { u as MockPayload, A as ApiStatus, U as UxIntent, v as RuntimeApiHandle, w as UiControllerFactory, x as ApiV3Ui } from '../public-types-beSYFJRR.cjs';
2
- export { y as AgentMetadata, z as AiPe2EvidenceOptions, B as AiPe2GraphOracleReference, D as AiPe2OracleEvidence, F as AiPe2OracleEvidenceProvider, G as AiPe2OracleEvidenceProviderInput, H as AiPe2OracleVerdict, J as ApiV3, K as ApiV3FnMetadata, N as ApiV3UiChrome, O as ApiV3UiDebug, Q as ApiV3UiOverlays, V as ApiV3UiSession, W as ApiV3UiSurface, X as ApiV3UiViewport, Y as BroadcastsVia, Z as ChromeDebugMode, _ as ChromeDocumentMode, $ as ChromeHostPosture, a0 as ChromeMarkupDisplay, a1 as ChromePosture, a2 as ChromeReviewMode, a3 as ChromeSurface, a4 as ChromeSurfaceKind, a5 as CreateApiV3Opts, a6 as DebugAttachment, a7 as DebugSession, a8 as GeometryRect, a9 as LiveEvidence, aa as MockShape, ab as OverlayAnchorQuery, ac as PersistsTo, ad as ScrollTarget, ae as ScrollTargetBehavior, af as SelectionRangeInput, ag as SourceLayer, ah as StateClass, ai as SubscriptionShape, aj as UiBinding, ak as UiController, al as UiControllerKind, am as UiListener, an as UiUnsubscribe, ao as ViewportState, ap as createApiV3, aq as validateApiV3Metadata } from '../public-types-beSYFJRR.cjs';
1
+ import { u as MockPayload, A as ApiStatus, U as UxIntent, v as RuntimeApiHandle, w as UiControllerFactory, x as ApiV3Ui } from '../public-types-B-CskQen.cjs';
2
+ export { y as AgentMetadata, z as AiPe2EvidenceOptions, B as AiPe2GraphOracleReference, D as AiPe2OracleEvidence, F as AiPe2OracleEvidenceProvider, G as AiPe2OracleEvidenceProviderInput, H as AiPe2OracleVerdict, J as ApiV3, K as ApiV3FnMetadata, N as ApiV3UiChrome, O as ApiV3UiDebug, Q as ApiV3UiOverlays, V as ApiV3UiSession, W as ApiV3UiSurface, X as ApiV3UiViewport, Y as BroadcastsVia, Z as ChromeDebugMode, _ as ChromeDocumentMode, $ as ChromeHostPosture, a0 as ChromeMarkupDisplay, a1 as ChromePosture, a2 as ChromeReviewMode, a3 as ChromeSurface, a4 as ChromeSurfaceKind, a5 as CreateApiV3Opts, a6 as DebugAttachment, a7 as DebugSession, a8 as GeometryRect, a9 as LiveEvidence, aa as MockShape, ab as OverlayAnchorQuery, ac as PersistsTo, ad as ScrollTarget, ae as ScrollTargetBehavior, af as SelectionRangeInput, ag as SourceLayer, ah as StateClass, ai as SubscriptionShape, aj as UiBinding, ak as UiController, al as UiControllerKind, am as UiListener, an as UiUnsubscribe, ao as ViewportState, ap as createApiV3, aq as validateApiV3Metadata } from '../public-types-B-CskQen.cjs';
3
3
  import 'react';
4
4
  import 'yjs';
5
5
  import 'y-protocols/awareness';
package/dist/api/v3.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { u as MockPayload, A as ApiStatus, U as UxIntent, v as RuntimeApiHandle, w as UiControllerFactory, x as ApiV3Ui } from '../public-types-Cgl3efbO.js';
2
- export { y as AgentMetadata, z as AiPe2EvidenceOptions, B as AiPe2GraphOracleReference, D as AiPe2OracleEvidence, F as AiPe2OracleEvidenceProvider, G as AiPe2OracleEvidenceProviderInput, H as AiPe2OracleVerdict, J as ApiV3, K as ApiV3FnMetadata, N as ApiV3UiChrome, O as ApiV3UiDebug, Q as ApiV3UiOverlays, V as ApiV3UiSession, W as ApiV3UiSurface, X as ApiV3UiViewport, Y as BroadcastsVia, Z as ChromeDebugMode, _ as ChromeDocumentMode, $ as ChromeHostPosture, a0 as ChromeMarkupDisplay, a1 as ChromePosture, a2 as ChromeReviewMode, a3 as ChromeSurface, a4 as ChromeSurfaceKind, a5 as CreateApiV3Opts, a6 as DebugAttachment, a7 as DebugSession, a8 as GeometryRect, a9 as LiveEvidence, aa as MockShape, ab as OverlayAnchorQuery, ac as PersistsTo, ad as ScrollTarget, ae as ScrollTargetBehavior, af as SelectionRangeInput, ag as SourceLayer, ah as StateClass, ai as SubscriptionShape, aj as UiBinding, ak as UiController, al as UiControllerKind, am as UiListener, an as UiUnsubscribe, ao as ViewportState, ap as createApiV3, aq as validateApiV3Metadata } from '../public-types-Cgl3efbO.js';
1
+ import { u as MockPayload, A as ApiStatus, U as UxIntent, v as RuntimeApiHandle, w as UiControllerFactory, x as ApiV3Ui } from '../public-types-7KZsNGE2.js';
2
+ export { y as AgentMetadata, z as AiPe2EvidenceOptions, B as AiPe2GraphOracleReference, D as AiPe2OracleEvidence, F as AiPe2OracleEvidenceProvider, G as AiPe2OracleEvidenceProviderInput, H as AiPe2OracleVerdict, J as ApiV3, K as ApiV3FnMetadata, N as ApiV3UiChrome, O as ApiV3UiDebug, Q as ApiV3UiOverlays, V as ApiV3UiSession, W as ApiV3UiSurface, X as ApiV3UiViewport, Y as BroadcastsVia, Z as ChromeDebugMode, _ as ChromeDocumentMode, $ as ChromeHostPosture, a0 as ChromeMarkupDisplay, a1 as ChromePosture, a2 as ChromeReviewMode, a3 as ChromeSurface, a4 as ChromeSurfaceKind, a5 as CreateApiV3Opts, a6 as DebugAttachment, a7 as DebugSession, a8 as GeometryRect, a9 as LiveEvidence, aa as MockShape, ab as OverlayAnchorQuery, ac as PersistsTo, ad as ScrollTarget, ae as ScrollTargetBehavior, af as SelectionRangeInput, ag as SourceLayer, ah as StateClass, ai as SubscriptionShape, aj as UiBinding, ak as UiController, al as UiControllerKind, am as UiListener, an as UiUnsubscribe, ao as ViewportState, ap as createApiV3, aq as validateApiV3Metadata } from '../public-types-7KZsNGE2.js';
3
3
  import 'react';
4
4
  import 'yjs';
5
5
  import 'y-protocols/awareness';
package/dist/api/v3.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  mockId,
6
6
  mockPayload,
7
7
  validateApiV3Metadata
8
- } from "../chunk-46KNRA4C.js";
8
+ } from "../chunk-LCYYR57Q.js";
9
9
  import "../chunk-XRACP43Q.js";
10
10
  import "../chunk-C2LWJ4CZ.js";
11
11
  import {