@beyondwork/docx-react-component 1.0.124 → 1.0.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/public-types.cjs +147 -35
- package/dist/api/public-types.d.cts +2 -2
- package/dist/api/public-types.d.ts +2 -2
- package/dist/api/public-types.js +3 -3
- package/dist/api/v3.cjs +791 -101
- package/dist/api/v3.d.cts +3 -3
- package/dist/api/v3.d.ts +3 -3
- package/dist/api/v3.js +10 -10
- package/dist/{canonical-document-CG2TgAzj.d.cts → canonical-document-CXCFCbAz.d.cts} +2 -0
- package/dist/{canonical-document-CG2TgAzj.d.ts → canonical-document-CXCFCbAz.d.ts} +2 -0
- package/dist/{chunk-PFYUJU3Q.js → chunk-2QL5DAKF.js} +98 -43
- package/dist/{chunk-4IPEZYQX.js → chunk-4EENH4FG.js} +1 -1
- package/dist/{chunk-BOHHIVQ2.js → chunk-4G3OS2H6.js} +3 -3
- package/dist/{chunk-A74Y5NE4.js → chunk-4YJVRIUB.js} +52 -21
- package/dist/{chunk-FNWKE74J.js → chunk-5DGKFNQT.js} +5 -1
- package/dist/{chunk-RSYN6FTS.js → chunk-6F5QW44A.js} +2 -2
- package/dist/{chunk-KOHQFZMM.js → chunk-BYSRJ4FE.js} +1 -1
- package/dist/{chunk-H6IL5ABU.js → chunk-CXSYRB37.js} +64 -20
- package/dist/{chunk-32ZAOQ54.js → chunk-D5HYZQTG.js} +1 -1
- package/dist/{chunk-TY4DIJO3.js → chunk-ESJ2MES5.js} +1 -1
- package/dist/{chunk-ZMRO6P3A.js → chunk-JN444Z5S.js} +505 -44
- package/dist/{chunk-IR7QV2BX.js → chunk-KV435YXO.js} +2 -2
- package/dist/{chunk-N4VIXI2Z.js → chunk-MWSBGJQO.js} +137 -18
- package/dist/{chunk-Q76XPPTA.js → chunk-OHTK7F3F.js} +96 -13
- package/dist/{chunk-MPH4ZQS4.js → chunk-QT3LX4FA.js} +321 -51
- package/dist/{chunk-7PC6XUNO.js → chunk-TQDQU2E3.js} +2 -2
- package/dist/{chunk-4B74ETJI.js → chunk-V6XVZFFH.js} +2 -2
- package/dist/{chunk-NAMAWCXN.js → chunk-YD2JE54B.js} +1 -1
- package/dist/{chunk-ZRHLLPSJ.js → chunk-YHZHPXDB.js} +85 -18
- package/dist/{chunk-HXHQA4BU.js → chunk-YIYM4ZAP.js} +1 -1
- package/dist/{chunk-LGWNN3L2.js → chunk-ZDOAUP3V.js} +2 -2
- package/dist/compare.d.cts +1 -1
- package/dist/compare.d.ts +1 -1
- package/dist/core/commands/formatting-commands.d.cts +2 -2
- package/dist/core/commands/formatting-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.cjs +65 -20
- package/dist/core/commands/image-commands.d.cts +2 -2
- package/dist/core/commands/image-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.js +5 -5
- package/dist/core/commands/section-layout-commands.d.cts +2 -2
- package/dist/core/commands/section-layout-commands.d.ts +2 -2
- package/dist/core/commands/style-commands.d.cts +2 -2
- package/dist/core/commands/style-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.cjs +65 -20
- package/dist/core/commands/table-structure-commands.d.cts +2 -2
- package/dist/core/commands/table-structure-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.js +4 -4
- package/dist/core/commands/text-commands.cjs +66 -21
- package/dist/core/commands/text-commands.d.cts +2 -2
- package/dist/core/commands/text-commands.d.ts +2 -2
- package/dist/core/commands/text-commands.js +5 -5
- package/dist/core/selection/mapping.d.cts +2 -2
- package/dist/core/selection/mapping.d.ts +2 -2
- package/dist/core/state/editor-state.d.cts +2 -2
- package/dist/core/state/editor-state.d.ts +2 -2
- package/dist/index.cjs +1341 -193
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +39 -21
- package/dist/io/docx-session.cjs +51 -20
- package/dist/io/docx-session.d.cts +4 -4
- package/dist/io/docx-session.d.ts +4 -4
- package/dist/io/docx-session.js +4 -4
- package/dist/legal.cjs +36 -12
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/legal.js +3 -3
- package/dist/{loader-D9y4ZRjj.d.ts → loader-B1MxvbeV.d.ts} +3 -3
- package/dist/{loader-D9KCtj4m.d.cts → loader-CJXsswcd.d.cts} +3 -3
- package/dist/{public-types-CNnMHZM9.d.ts → public-types-BEGhv2YR.d.ts} +108 -6
- package/dist/{public-types-DajNGKV4.d.cts → public-types-DrhlQ5Zy.d.cts} +108 -6
- package/dist/public-types.cjs +147 -35
- package/dist/public-types.d.cts +2 -2
- package/dist/public-types.d.ts +2 -2
- package/dist/public-types.js +3 -3
- package/dist/runtime/collab.d.cts +3 -3
- package/dist/runtime/collab.d.ts +3 -3
- package/dist/runtime/document-runtime.cjs +685 -98
- package/dist/runtime/document-runtime.d.cts +2 -2
- package/dist/runtime/document-runtime.d.ts +2 -2
- package/dist/runtime/document-runtime.js +14 -14
- package/dist/{session-DyQGlryH.d.cts → session-Bp3zqnkS.d.cts} +3 -3
- package/dist/{session-DEmaOEjA.d.ts → session-xMOU_NtL.d.ts} +3 -3
- package/dist/session.cjs +51 -20
- package/dist/session.d.cts +5 -5
- package/dist/session.d.ts +5 -5
- package/dist/session.js +5 -5
- package/dist/tailwind.cjs +238 -73
- package/dist/tailwind.d.cts +2 -2
- package/dist/tailwind.d.ts +2 -2
- package/dist/tailwind.js +7 -7
- package/dist/{types-DjJNaE9c.d.ts → types-BFT8536T.d.ts} +2 -2
- package/dist/{types-CxE1aZiv.d.cts → types-DDPxEygX.d.cts} +2 -2
- package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.js +4 -4
- package/dist/ui-tailwind.cjs +238 -73
- package/dist/ui-tailwind.d.cts +3 -3
- package/dist/ui-tailwind.d.ts +3 -3
- package/dist/ui-tailwind.js +7 -7
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CanonicalDocument } from './canonical-document-
|
|
2
|
-
import { ar as EditorStateNamespace, as as EditorStateLocation, a as EditorSessionState, P as PersistedEditorSnapshot, r as EditorError, t as ProtectionSnapshot, b as ExportDocxOptions, c as ExportResult, L as LoadStage, E as EditorHostAdapter, at as LoadScheduler, o as EditorSurfaceSnapshot } from './public-types-
|
|
3
|
-
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-
|
|
1
|
+
import { C as CanonicalDocument } from './canonical-document-CXCFCbAz.cjs';
|
|
2
|
+
import { ar as EditorStateNamespace, as as EditorStateLocation, a as EditorSessionState, P as PersistedEditorSnapshot, r as EditorError, t as ProtectionSnapshot, b as ExportDocxOptions, c as ExportResult, L as LoadStage, E as EditorHostAdapter, at as LoadScheduler, o as EditorSurfaceSnapshot } from './public-types-DrhlQ5Zy.cjs';
|
|
3
|
+
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-DDPxEygX.cjs';
|
|
4
4
|
|
|
5
5
|
interface EditorStatePayloadNamespaceEntry {
|
|
6
6
|
namespace: EditorStateNamespace;
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
4
|
import * as y_protocols_awareness from 'y-protocols/awareness';
|
|
5
5
|
import { Awareness } from 'y-protocols/awareness';
|
|
6
|
-
import { S as SectionProperties, f as PersistedEditorSnapshotVersion, g as CDS_SCHEMA_VERSION, I as ISO8601DateTime, C as CanonicalDocument, h as CompatibilityReportVersion, i as Base64, M as ModelValidationIssue, j as CommentThread, k as CommentEntry, l as CommentResolution, m as RevisionMetadataRecord$1, n as RevisionRecord$1, p as CanonicalSourceRef, q as SdtDataBindingState, F as FieldFamily$1, r as FieldRefreshStatus$1, T as TocRegion, s as CanonicalAnchor, t as PreserveOnlyObjectSizing, u as TableCellNode, v as TableLook, w as TableStyleFormatting, x as TableWidth, y as TableBorders, z as TableStyleConditionalRegion, A as TableCellBorders, E as CellShading, G as TextMark, H as Mutable, J as ParagraphNode, K as TableIndent, L as TableCellMargins, N as TableNode, B as BlockNode, Q as FieldRegistryEntry, U as FootnoteProperties, V as EndnoteProperties, W as CanonicalTheme, X as InlineNode, Y as CanonicalParagraphFormatting, Z as CanonicalRunFormatting, _ as FillSpec, $ as TextProperties, a0 as StrokeSpec, a1 as ChartModel, a2 as ResolvedTheme, a3 as ColorRef, a4 as SupportedFieldFamily$1, a5 as HeaderDocument, a6 as FooterDocument, a7 as ParagraphBorders } from './canonical-document-
|
|
6
|
+
import { S as SectionProperties, f as PersistedEditorSnapshotVersion, g as CDS_SCHEMA_VERSION, I as ISO8601DateTime, C as CanonicalDocument, h as CompatibilityReportVersion, i as Base64, M as ModelValidationIssue, j as CommentThread, k as CommentEntry, l as CommentResolution, m as RevisionMetadataRecord$1, n as RevisionRecord$1, p as CanonicalSourceRef, q as SdtDataBindingState, F as FieldFamily$1, r as FieldRefreshStatus$1, T as TocRegion, s as CanonicalAnchor, t as PreserveOnlyObjectSizing, u as TableCellNode, v as TableLook, w as TableStyleFormatting, x as TableWidth, y as TableBorders, z as TableStyleConditionalRegion, A as TableCellBorders, E as CellShading, G as TextMark, H as Mutable, J as ParagraphNode, K as TableIndent, L as TableCellMargins, N as TableNode, B as BlockNode, Q as FieldRegistryEntry, U as FootnoteProperties, V as EndnoteProperties, W as CanonicalTheme, X as InlineNode, Y as CanonicalParagraphFormatting, Z as CanonicalRunFormatting, _ as FillSpec, $ as TextProperties, a0 as StrokeSpec, a1 as ChartModel, a2 as ResolvedTheme, a3 as ColorRef, a4 as SupportedFieldFamily$1, a5 as HeaderDocument, a6 as FooterDocument, a7 as ParagraphBorders } from './canonical-document-CXCFCbAz.js';
|
|
7
7
|
import * as prosemirror_state from 'prosemirror-state';
|
|
8
8
|
import { Command } from 'prosemirror-state';
|
|
9
9
|
import { Schema } from 'prosemirror-model';
|
|
@@ -2013,6 +2013,10 @@ interface RuntimeNumberingLayoutFacts {
|
|
|
2013
2013
|
sourceBlockPath?: string;
|
|
2014
2014
|
sourceBlockId?: string;
|
|
2015
2015
|
paragraphIndex?: number;
|
|
2016
|
+
targetKey?: string;
|
|
2017
|
+
targetKind?: string;
|
|
2018
|
+
canonicalAddressKey?: string;
|
|
2019
|
+
listAddressKey?: string;
|
|
2016
2020
|
sourceRef?: RuntimeFieldRegionLayoutFacts["sourceRef"];
|
|
2017
2021
|
numberingSourceRef?: RuntimeFieldRegionLayoutFacts["sourceRef"];
|
|
2018
2022
|
numberingOrigin?: "paragraph" | "paragraph-style";
|
|
@@ -2023,6 +2027,12 @@ interface RuntimeNumberingLayoutFacts {
|
|
|
2023
2027
|
numberingInstanceId?: string;
|
|
2024
2028
|
level?: number;
|
|
2025
2029
|
format?: string;
|
|
2030
|
+
formatPosture?: {
|
|
2031
|
+
status: "approximated";
|
|
2032
|
+
requestedFormat: string;
|
|
2033
|
+
renderedFormat: "decimal";
|
|
2034
|
+
reason: "unsupported-numbering-format-decimal-fallback" | "numbering-format-range-decimal-fallback";
|
|
2035
|
+
};
|
|
2026
2036
|
markerText?: string;
|
|
2027
2037
|
markerSuffix?: "tab" | "space" | "nothing";
|
|
2028
2038
|
markerJustification?: "left" | "center" | "right" | "both" | "distribute";
|
|
@@ -2038,7 +2048,9 @@ interface RuntimeNumberingLayoutFacts {
|
|
|
2038
2048
|
hangingTwips?: number;
|
|
2039
2049
|
};
|
|
2040
2050
|
tabStops?: readonly RuntimeNumberingTabStopFacts[];
|
|
2051
|
+
unavailableReasons?: readonly RuntimeNumberingUnavailableReason[];
|
|
2041
2052
|
}
|
|
2053
|
+
type RuntimeNumberingUnavailableReason = "canonical-numbering-input-missing" | "numbering-marker-lane-unavailable" | "numbering-text-column-unavailable";
|
|
2042
2054
|
interface RuntimeNumberingTabStopFacts {
|
|
2043
2055
|
positionTwips: number;
|
|
2044
2056
|
align?: string;
|
|
@@ -2198,7 +2210,7 @@ interface RuntimePageAnchor {
|
|
|
2198
2210
|
type EditableTargetKind = "paragraph-text" | "sdt-paragraph-text" | "table-cell-paragraph-text" | "nested-table-cell-paragraph-text" | "sdt-table-cell-paragraph-text" | "table-structure-table" | "table-structure-row" | "table-structure-column" | "table-structure-cell" | "table-structure-span" | "secondary-story-paragraph-text" | "textbox-paragraph-text" | "field-result-text" | "field-region-refresh" | "toc-region-refresh" | "hyperlink-text" | "hyperlink-destination" | "bookmark-anchor" | "bookmark-content-range" | "comment-anchor" | "revision-anchor" | "object-anchor" | "custom-xml-content" | "opaque-content";
|
|
2199
2211
|
type EditableTargetCommandFamily = "text-leaf" | "table-structure" | "field" | "link-bookmark" | "comment-revision" | "object" | "metadata" | "preserve-only-refusal";
|
|
2200
2212
|
type EditableTargetEditability = "editable" | "non-editable";
|
|
2201
|
-
type EditableTargetBlocker = "protected-section" | "protected-range" | "locked-content-control" | "preserve-only" | "opaque-content" | "field-generated-text" | "review-posture" | "synthetic-layout-cell" | "unmodeled-target";
|
|
2213
|
+
type EditableTargetBlocker = "protected-section" | "protected-range" | "locked-content-control" | "preserve-only" | "opaque-content" | "field-generated-text" | "review-posture" | "synthetic-layout-cell" | "unmodeled-target" | "list-text-readback-missing" | "list-structure-command-missing" | "list-target-stale" | "list-secondary-story-unsupported" | "list-table-target-missing" | "list-export-persistence-missing" | "numbering-format-unsupported" | "picture-bullet-preserve-only" | "marker-geometry-unavailable";
|
|
2202
2214
|
interface EditableTargetPosture {
|
|
2203
2215
|
readonly blockers: readonly EditableTargetBlocker[];
|
|
2204
2216
|
readonly protected?: boolean;
|
|
@@ -2402,6 +2414,13 @@ interface EditableTargetRef {
|
|
|
2402
2414
|
readonly table?: EditableTargetTableIdentity;
|
|
2403
2415
|
readonly editableOwner?: EditableTargetOwnerIdentity;
|
|
2404
2416
|
readonly canonicalAddress?: EditableTargetCanonicalAddress;
|
|
2417
|
+
/**
|
|
2418
|
+
* List-specific address for numbered/bulleted paragraph text. Table-cell
|
|
2419
|
+
* list items keep their primary `canonicalAddress` as the table text target
|
|
2420
|
+
* for existing table commands; this additive address lets list consumers use
|
|
2421
|
+
* the same paragraph without narrowing it to table-only authority.
|
|
2422
|
+
*/
|
|
2423
|
+
readonly listAddress?: EditableTargetCanonicalAddress;
|
|
2405
2424
|
readonly staleCheck: EditableTargetStaleCheck;
|
|
2406
2425
|
readonly posture: EditableTargetPosture;
|
|
2407
2426
|
}
|
|
@@ -4341,6 +4360,12 @@ interface GeometryHitTarget {
|
|
|
4341
4360
|
lineIndex: number;
|
|
4342
4361
|
rect: GeometryRect$1;
|
|
4343
4362
|
precision: GeometryPrecision;
|
|
4363
|
+
generatedContentKind?: "numbering-marker";
|
|
4364
|
+
generatedContentBoundary?: {
|
|
4365
|
+
policy: "snap-to-authored-text";
|
|
4366
|
+
authoredTextStartsAtPx?: number;
|
|
4367
|
+
selectionPolicy: "exclude-generated-marker";
|
|
4368
|
+
};
|
|
4344
4369
|
}
|
|
4345
4370
|
type SemanticDisplayEntryKind = "text-line" | "editable-target" | "field-region" | "page-local-field-ledger" | "numbering-marker" | "table-frame" | "table-row" | "table-column" | "table-cell" | "toc-leader" | "toc-page-label" | "field-result" | "inline-object" | "floating-object" | "placeholder" | "background" | "border" | "debug-classification";
|
|
4346
4371
|
interface GeometryTableRowRange {
|
|
@@ -4374,6 +4399,20 @@ interface GeometryProjectionWarning {
|
|
|
4374
4399
|
message: string;
|
|
4375
4400
|
}
|
|
4376
4401
|
type GeometryEditableTargetUnavailableReason = "editable-target-block-geometry-missing" | "editable-target-table-geometry-missing" | "editable-target-command-geometry-missing" | "editable-target-page-geometry-unavailable";
|
|
4402
|
+
type GeometryNumberingUnavailableReason = "canonical-numbering-input-missing" | "numbering-marker-lane-unavailable" | "numbering-text-column-unavailable";
|
|
4403
|
+
interface GeometryNumberingFormatPosture {
|
|
4404
|
+
status: "approximated";
|
|
4405
|
+
requestedFormat: string;
|
|
4406
|
+
renderedFormat: "decimal";
|
|
4407
|
+
reason: "unsupported-numbering-format-decimal-fallback" | "numbering-format-range-decimal-fallback";
|
|
4408
|
+
}
|
|
4409
|
+
interface GeometryNumberingMarkerBoundary {
|
|
4410
|
+
generatedContent: "numbering-marker";
|
|
4411
|
+
caretPolicy: "snap-to-authored-text";
|
|
4412
|
+
selectionPolicy: "exclude-marker-unless-list-item-action";
|
|
4413
|
+
coordinateSpace: "frame-px";
|
|
4414
|
+
authoredTextStartsAtPx?: number;
|
|
4415
|
+
}
|
|
4377
4416
|
interface SemanticDisplayEntry {
|
|
4378
4417
|
entryId: string;
|
|
4379
4418
|
kind: SemanticDisplayEntryKind;
|
|
@@ -4417,6 +4456,21 @@ interface SemanticDisplayEntry {
|
|
|
4417
4456
|
editableTargetOwnerReason?: string;
|
|
4418
4457
|
editableTargetOwnerCanonicalAddress?: EditableTargetOwnerAddressRouting;
|
|
4419
4458
|
editableTargetUnavailableReason?: GeometryEditableTargetUnavailableReason;
|
|
4459
|
+
numberingLayoutId?: string;
|
|
4460
|
+
numberingKey?: string;
|
|
4461
|
+
numberingTargetKey?: string;
|
|
4462
|
+
numberingTargetKind?: string;
|
|
4463
|
+
numberingCanonicalAddressKey?: string;
|
|
4464
|
+
numberingListAddressKey?: string;
|
|
4465
|
+
numberingMarkerText?: string;
|
|
4466
|
+
numberingMarkerSuffix?: "tab" | "space" | "nothing";
|
|
4467
|
+
numberingFormat?: string;
|
|
4468
|
+
numberingFormatPosture?: GeometryNumberingFormatPosture;
|
|
4469
|
+
numberingUnavailableReasons?: readonly GeometryNumberingUnavailableReason[];
|
|
4470
|
+
markerGlyphRect?: GeometryRect$1;
|
|
4471
|
+
markerLaneRect?: GeometryRect$1;
|
|
4472
|
+
textColumnRect?: GeometryRect$1;
|
|
4473
|
+
markerBoundary?: GeometryNumberingMarkerBoundary;
|
|
4420
4474
|
rect: GeometryRect$1;
|
|
4421
4475
|
status: GeometryRehydrationStatus;
|
|
4422
4476
|
precision: GeometryPrecision;
|
|
@@ -4489,6 +4543,9 @@ interface HitTestResult$1 {
|
|
|
4489
4543
|
* available; missing anchor metadata leaves it undefined.
|
|
4490
4544
|
*/
|
|
4491
4545
|
assoc?: "before" | "after";
|
|
4546
|
+
generatedContentKind?: "numbering-marker";
|
|
4547
|
+
generatedContentBoundary?: "snap-to-authored-text";
|
|
4548
|
+
semanticEntryId?: string;
|
|
4492
4549
|
}
|
|
4493
4550
|
type AnchorQueryKind = "runtime-offset" | "block-id" | "fragment-id" | "scope-id" | "comment-id" | "revision-id" | "page-index";
|
|
4494
4551
|
interface AnchorQuery {
|
|
@@ -6950,6 +7007,21 @@ interface RuntimeOperationStep {
|
|
|
6950
7007
|
readonly kind: RuntimeOperationStepKind;
|
|
6951
7008
|
/** Human-readable one-line description; used in audit `compiledOperations`. */
|
|
6952
7009
|
readonly summary: string;
|
|
7010
|
+
/**
|
|
7011
|
+
* Optional command-surface target hint. Semantic ranges identify intent, but
|
|
7012
|
+
* text mutation must still resolve against the runtime's current editable
|
|
7013
|
+
* target graph before dispatch so table/SDT/nested structure offsets cannot
|
|
7014
|
+
* masquerade as paragraph text positions.
|
|
7015
|
+
*/
|
|
7016
|
+
readonly editableTargetHint?: {
|
|
7017
|
+
readonly kind: "text-leaf";
|
|
7018
|
+
readonly storyKey: string;
|
|
7019
|
+
readonly blockPath: string;
|
|
7020
|
+
readonly semanticBlockRange: {
|
|
7021
|
+
readonly from: number;
|
|
7022
|
+
readonly to: number;
|
|
7023
|
+
};
|
|
7024
|
+
};
|
|
6953
7025
|
/**
|
|
6954
7026
|
* Document-coordinate range the step operates on. Absent for steps
|
|
6955
7027
|
* that target the scope as a whole.
|
|
@@ -8125,6 +8197,17 @@ interface CreateDocumentRuntimeOptions {
|
|
|
8125
8197
|
* See CLAUDE.md (lane status table) §Phase 2.5 §3.7.
|
|
8126
8198
|
*/
|
|
8127
8199
|
seedLayoutCache?: RuntimePageGraph;
|
|
8200
|
+
/**
|
|
8201
|
+
* Mounted-shell cold-load guard. When provided, only the first editor
|
|
8202
|
+
* surface facet is projected with these realized block ranges. This is a
|
|
8203
|
+
* presentation residency hint, not layout truth: L04 page graph reads must
|
|
8204
|
+
* continue to start from their normal full/lazy layout query state.
|
|
8205
|
+
* Headless callers omit this to preserve full-surface semantics.
|
|
8206
|
+
*/
|
|
8207
|
+
initialSurfaceViewportBlockRanges?: readonly {
|
|
8208
|
+
start: number;
|
|
8209
|
+
end: number;
|
|
8210
|
+
}[];
|
|
8128
8211
|
}
|
|
8129
8212
|
declare function createDocumentRuntime(options: CreateDocumentRuntimeOptions): DocumentRuntime;
|
|
8130
8213
|
/**
|
|
@@ -8596,7 +8679,7 @@ interface RuntimeWordFieldMatrixProvider {
|
|
|
8596
8679
|
* `runtime.collab.*` family graduate its live path when hosts supply it
|
|
8597
8680
|
* and fall back to deterministic mocks when they don't.
|
|
8598
8681
|
*/
|
|
8599
|
-
type RuntimeApiHandle = Pick<DocumentRuntime, "now" | "getSessionState" | "setDocumentMode" | "exportDocx" | "getCompatibilityReport" | "getWarnings" | "getRenderSnapshot" | "getDocumentNavigationSnapshot" | "getCanonicalDocument" | "findAllText" | "replaceText" | "applyFormattingOperation" | "getReviewWorkSnapshot" | "getSuggestionsSnapshot" | "acceptChange" | "rejectChange" | "resolveComment" | "getCommentThreadForChange" | "ensureCommentThreadForChange" | "addReplyToChange" | "queryScopes" | "getWorkflowMarkupSnapshot" | "getInteractionGuardSnapshot" | "getWorkflowOverlay" | "addScope" | "setScopeGuardPolicy" | "getScopeGuardPolicy" | "setWorkflowMetadataEntries" | "getWorkflowMetadataSnapshot" | "getVisibilityPolicy" | "getVisibilityPolicies" | "setVisibilityPolicy" | "clearVisibilityPolicy" | "subscribeVisibilityPolicy" | "getMarkupModePolicy" | "setMarkupModePolicy" | "subscribeMarkupModePolicy" | "getScope" | "getLocationForAnchor" | "compileScopeBundleById" | "compileScopeList" | "compileScopeCardById" | "compileScopeRailSnapshot" | "applyScopeReplacement" | "applyScopeFormatting" | "dispatch" | "debug" | "layout" | "geometry"> & {
|
|
8682
|
+
type RuntimeApiHandle = Pick<DocumentRuntime, "now" | "getSessionState" | "setDocumentMode" | "exportDocx" | "getCompatibilityReport" | "getWarnings" | "getRenderSnapshot" | "getDocumentNavigationSnapshot" | "getCanonicalDocument" | "findAllText" | "replaceText" | "applyActiveStoryTextCommand" | "applyFormattingOperation" | "getReviewWorkSnapshot" | "getSuggestionsSnapshot" | "acceptChange" | "rejectChange" | "resolveComment" | "getCommentThreadForChange" | "ensureCommentThreadForChange" | "addReplyToChange" | "queryScopes" | "getWorkflowMarkupSnapshot" | "getInteractionGuardSnapshot" | "getWorkflowOverlay" | "addScope" | "setScopeGuardPolicy" | "getScopeGuardPolicy" | "setWorkflowMetadataEntries" | "getWorkflowMetadataSnapshot" | "getVisibilityPolicy" | "getVisibilityPolicies" | "setVisibilityPolicy" | "clearVisibilityPolicy" | "subscribeVisibilityPolicy" | "getMarkupModePolicy" | "setMarkupModePolicy" | "subscribeMarkupModePolicy" | "getScope" | "getLocationForAnchor" | "compileScopeBundleById" | "compileScopeList" | "compileScopeCardById" | "compileScopeRailSnapshot" | "applyScopeReplacement" | "applyScopeFormatting" | "dispatch" | "debug" | "layout" | "geometry"> & {
|
|
8600
8683
|
/**
|
|
8601
8684
|
* Optional collab session — hosts that wire Yjs/Awareness pass the
|
|
8602
8685
|
* session here so `api.runtime.collab.getPresence` / `.getPosture`
|
|
@@ -11400,7 +11483,7 @@ type AiActionsTargetInput = {
|
|
|
11400
11483
|
readonly tableTextScopeLimit?: number;
|
|
11401
11484
|
};
|
|
11402
11485
|
interface AiActionsMatch {
|
|
11403
|
-
readonly kind: SemanticScopeKind | "table-text";
|
|
11486
|
+
readonly kind: SemanticScopeKind | "table-text" | "hyperlink-text";
|
|
11404
11487
|
readonly text: string;
|
|
11405
11488
|
readonly excerpt: string;
|
|
11406
11489
|
readonly handle?: ScopeHandle;
|
|
@@ -11439,7 +11522,7 @@ interface DiscoverActionsResult {
|
|
|
11439
11522
|
readonly blockerDetails?: readonly AiActionsBlockerDetail[];
|
|
11440
11523
|
}
|
|
11441
11524
|
interface AiActionsTargetSummary {
|
|
11442
|
-
readonly kind: SemanticScopeKind | "table-text";
|
|
11525
|
+
readonly kind: SemanticScopeKind | "table-text" | "hyperlink-text";
|
|
11443
11526
|
readonly handle?: ScopeHandle;
|
|
11444
11527
|
readonly actionHandle?: string;
|
|
11445
11528
|
readonly readback?: AiTableTextReadback;
|
|
@@ -11458,6 +11541,12 @@ interface RewriteActionsInput {
|
|
|
11458
11541
|
readonly origin?: "ui" | "agent" | "host";
|
|
11459
11542
|
readonly proposalId?: string;
|
|
11460
11543
|
}
|
|
11544
|
+
interface HyperlinkTextEditActionsInput {
|
|
11545
|
+
readonly target: AiActionsExactTargetInput;
|
|
11546
|
+
readonly text: string;
|
|
11547
|
+
readonly actorId?: string;
|
|
11548
|
+
readonly origin?: "ui" | "agent" | "host";
|
|
11549
|
+
}
|
|
11461
11550
|
interface RewriteAllActionsInput extends Omit<RewriteActionsInput, "target"> {
|
|
11462
11551
|
readonly query: string;
|
|
11463
11552
|
readonly kind?: SemanticScopeKind;
|
|
@@ -11648,6 +11737,12 @@ type RunPlanActionsStep = (RunPlanStepBase & {
|
|
|
11648
11737
|
readonly href: string;
|
|
11649
11738
|
readonly actorId?: string;
|
|
11650
11739
|
readonly origin?: "ui" | "agent" | "host";
|
|
11740
|
+
}) | (RunPlanStepBase & {
|
|
11741
|
+
readonly kind: "hyperlinkTextEdit";
|
|
11742
|
+
readonly target: AiActionsExactTargetInput;
|
|
11743
|
+
readonly text: string;
|
|
11744
|
+
readonly actorId?: string;
|
|
11745
|
+
readonly origin?: "ui" | "agent" | "host";
|
|
11651
11746
|
}) | (RunPlanStepBase & {
|
|
11652
11747
|
readonly kind: "listOperation";
|
|
11653
11748
|
readonly target: AiActionsExactTargetInput;
|
|
@@ -11703,7 +11798,7 @@ interface ApplyActionsResult {
|
|
|
11703
11798
|
readonly results?: readonly ApplyActionsResult[];
|
|
11704
11799
|
}
|
|
11705
11800
|
interface AiActionsCommandReference {
|
|
11706
|
-
readonly command: NonNullable<ApplyTableActionResult["commandReference"]>["command"] | "field.refresh" | "toc.refresh" | "bookmark.edit-content" | "hyperlink.update-destination" | "list.toggle" | "list.indent" | "list.outdent" | "list.restart-numbering" | "list.continue-numbering";
|
|
11801
|
+
readonly command: NonNullable<ApplyTableActionResult["commandReference"]>["command"] | "field.refresh" | "toc.refresh" | "bookmark.edit-content" | "hyperlink.update-destination" | "text.insert" | "list.toggle" | "list.indent" | "list.outdent" | "list.restart-numbering" | "list.continue-numbering";
|
|
11707
11802
|
readonly actorId: string;
|
|
11708
11803
|
readonly origin: "ui" | "agent" | "host";
|
|
11709
11804
|
readonly emittedAtUtc: string;
|
|
@@ -11765,6 +11860,7 @@ declare function createActionsFamily(runtime: RuntimeApiHandle): {
|
|
|
11765
11860
|
tocRefresh(input: TocRefreshActionsInput): ApplyActionsResult;
|
|
11766
11861
|
bookmarkEdit(input: BookmarkEditActionsInput): ApplyActionsResult;
|
|
11767
11862
|
hyperlinkDestinationEdit(input: HyperlinkDestinationEditActionsInput): ApplyActionsResult;
|
|
11863
|
+
hyperlinkTextEdit(input: HyperlinkTextEditActionsInput): ApplyActionsResult;
|
|
11768
11864
|
listOperation(input: ListOperationActionsInput): ApplyActionsResult;
|
|
11769
11865
|
tableFragment(input: TableFragmentActionsInput): ApplyActionsResult;
|
|
11770
11866
|
tableSelection(input: TableSelectionActionsInput): ApplyActionsResult;
|
|
@@ -14155,6 +14251,12 @@ interface ResolvedNumberingGeometrySnapshot {
|
|
|
14155
14251
|
interface ResolvedNumberingSnapshot {
|
|
14156
14252
|
level: number;
|
|
14157
14253
|
format: string;
|
|
14254
|
+
formatPosture?: {
|
|
14255
|
+
status: "approximated";
|
|
14256
|
+
requestedFormat: string;
|
|
14257
|
+
renderedFormat: "decimal";
|
|
14258
|
+
reason: "unsupported-numbering-format-decimal-fallback" | "numbering-format-range-decimal-fallback";
|
|
14259
|
+
};
|
|
14158
14260
|
text?: string;
|
|
14159
14261
|
startAt: number;
|
|
14160
14262
|
paragraphStyleId?: string;
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
4
|
import * as y_protocols_awareness from 'y-protocols/awareness';
|
|
5
5
|
import { Awareness } from 'y-protocols/awareness';
|
|
6
|
-
import { S as SectionProperties, f as PersistedEditorSnapshotVersion, g as CDS_SCHEMA_VERSION, I as ISO8601DateTime, C as CanonicalDocument, h as CompatibilityReportVersion, i as Base64, M as ModelValidationIssue, j as CommentThread, k as CommentEntry, l as CommentResolution, m as RevisionMetadataRecord$1, n as RevisionRecord$1, p as CanonicalSourceRef, q as SdtDataBindingState, F as FieldFamily$1, r as FieldRefreshStatus$1, T as TocRegion, s as CanonicalAnchor, t as PreserveOnlyObjectSizing, u as TableCellNode, v as TableLook, w as TableStyleFormatting, x as TableWidth, y as TableBorders, z as TableStyleConditionalRegion, A as TableCellBorders, E as CellShading, G as TextMark, H as Mutable, J as ParagraphNode, K as TableIndent, L as TableCellMargins, N as TableNode, B as BlockNode, Q as FieldRegistryEntry, U as FootnoteProperties, V as EndnoteProperties, W as CanonicalTheme, X as InlineNode, Y as CanonicalParagraphFormatting, Z as CanonicalRunFormatting, _ as FillSpec, $ as TextProperties, a0 as StrokeSpec, a1 as ChartModel, a2 as ResolvedTheme, a3 as ColorRef, a4 as SupportedFieldFamily$1, a5 as HeaderDocument, a6 as FooterDocument, a7 as ParagraphBorders } from './canonical-document-
|
|
6
|
+
import { S as SectionProperties, f as PersistedEditorSnapshotVersion, g as CDS_SCHEMA_VERSION, I as ISO8601DateTime, C as CanonicalDocument, h as CompatibilityReportVersion, i as Base64, M as ModelValidationIssue, j as CommentThread, k as CommentEntry, l as CommentResolution, m as RevisionMetadataRecord$1, n as RevisionRecord$1, p as CanonicalSourceRef, q as SdtDataBindingState, F as FieldFamily$1, r as FieldRefreshStatus$1, T as TocRegion, s as CanonicalAnchor, t as PreserveOnlyObjectSizing, u as TableCellNode, v as TableLook, w as TableStyleFormatting, x as TableWidth, y as TableBorders, z as TableStyleConditionalRegion, A as TableCellBorders, E as CellShading, G as TextMark, H as Mutable, J as ParagraphNode, K as TableIndent, L as TableCellMargins, N as TableNode, B as BlockNode, Q as FieldRegistryEntry, U as FootnoteProperties, V as EndnoteProperties, W as CanonicalTheme, X as InlineNode, Y as CanonicalParagraphFormatting, Z as CanonicalRunFormatting, _ as FillSpec, $ as TextProperties, a0 as StrokeSpec, a1 as ChartModel, a2 as ResolvedTheme, a3 as ColorRef, a4 as SupportedFieldFamily$1, a5 as HeaderDocument, a6 as FooterDocument, a7 as ParagraphBorders } from './canonical-document-CXCFCbAz.cjs';
|
|
7
7
|
import * as prosemirror_state from 'prosemirror-state';
|
|
8
8
|
import { Command } from 'prosemirror-state';
|
|
9
9
|
import { Schema } from 'prosemirror-model';
|
|
@@ -2013,6 +2013,10 @@ interface RuntimeNumberingLayoutFacts {
|
|
|
2013
2013
|
sourceBlockPath?: string;
|
|
2014
2014
|
sourceBlockId?: string;
|
|
2015
2015
|
paragraphIndex?: number;
|
|
2016
|
+
targetKey?: string;
|
|
2017
|
+
targetKind?: string;
|
|
2018
|
+
canonicalAddressKey?: string;
|
|
2019
|
+
listAddressKey?: string;
|
|
2016
2020
|
sourceRef?: RuntimeFieldRegionLayoutFacts["sourceRef"];
|
|
2017
2021
|
numberingSourceRef?: RuntimeFieldRegionLayoutFacts["sourceRef"];
|
|
2018
2022
|
numberingOrigin?: "paragraph" | "paragraph-style";
|
|
@@ -2023,6 +2027,12 @@ interface RuntimeNumberingLayoutFacts {
|
|
|
2023
2027
|
numberingInstanceId?: string;
|
|
2024
2028
|
level?: number;
|
|
2025
2029
|
format?: string;
|
|
2030
|
+
formatPosture?: {
|
|
2031
|
+
status: "approximated";
|
|
2032
|
+
requestedFormat: string;
|
|
2033
|
+
renderedFormat: "decimal";
|
|
2034
|
+
reason: "unsupported-numbering-format-decimal-fallback" | "numbering-format-range-decimal-fallback";
|
|
2035
|
+
};
|
|
2026
2036
|
markerText?: string;
|
|
2027
2037
|
markerSuffix?: "tab" | "space" | "nothing";
|
|
2028
2038
|
markerJustification?: "left" | "center" | "right" | "both" | "distribute";
|
|
@@ -2038,7 +2048,9 @@ interface RuntimeNumberingLayoutFacts {
|
|
|
2038
2048
|
hangingTwips?: number;
|
|
2039
2049
|
};
|
|
2040
2050
|
tabStops?: readonly RuntimeNumberingTabStopFacts[];
|
|
2051
|
+
unavailableReasons?: readonly RuntimeNumberingUnavailableReason[];
|
|
2041
2052
|
}
|
|
2053
|
+
type RuntimeNumberingUnavailableReason = "canonical-numbering-input-missing" | "numbering-marker-lane-unavailable" | "numbering-text-column-unavailable";
|
|
2042
2054
|
interface RuntimeNumberingTabStopFacts {
|
|
2043
2055
|
positionTwips: number;
|
|
2044
2056
|
align?: string;
|
|
@@ -2198,7 +2210,7 @@ interface RuntimePageAnchor {
|
|
|
2198
2210
|
type EditableTargetKind = "paragraph-text" | "sdt-paragraph-text" | "table-cell-paragraph-text" | "nested-table-cell-paragraph-text" | "sdt-table-cell-paragraph-text" | "table-structure-table" | "table-structure-row" | "table-structure-column" | "table-structure-cell" | "table-structure-span" | "secondary-story-paragraph-text" | "textbox-paragraph-text" | "field-result-text" | "field-region-refresh" | "toc-region-refresh" | "hyperlink-text" | "hyperlink-destination" | "bookmark-anchor" | "bookmark-content-range" | "comment-anchor" | "revision-anchor" | "object-anchor" | "custom-xml-content" | "opaque-content";
|
|
2199
2211
|
type EditableTargetCommandFamily = "text-leaf" | "table-structure" | "field" | "link-bookmark" | "comment-revision" | "object" | "metadata" | "preserve-only-refusal";
|
|
2200
2212
|
type EditableTargetEditability = "editable" | "non-editable";
|
|
2201
|
-
type EditableTargetBlocker = "protected-section" | "protected-range" | "locked-content-control" | "preserve-only" | "opaque-content" | "field-generated-text" | "review-posture" | "synthetic-layout-cell" | "unmodeled-target";
|
|
2213
|
+
type EditableTargetBlocker = "protected-section" | "protected-range" | "locked-content-control" | "preserve-only" | "opaque-content" | "field-generated-text" | "review-posture" | "synthetic-layout-cell" | "unmodeled-target" | "list-text-readback-missing" | "list-structure-command-missing" | "list-target-stale" | "list-secondary-story-unsupported" | "list-table-target-missing" | "list-export-persistence-missing" | "numbering-format-unsupported" | "picture-bullet-preserve-only" | "marker-geometry-unavailable";
|
|
2202
2214
|
interface EditableTargetPosture {
|
|
2203
2215
|
readonly blockers: readonly EditableTargetBlocker[];
|
|
2204
2216
|
readonly protected?: boolean;
|
|
@@ -2402,6 +2414,13 @@ interface EditableTargetRef {
|
|
|
2402
2414
|
readonly table?: EditableTargetTableIdentity;
|
|
2403
2415
|
readonly editableOwner?: EditableTargetOwnerIdentity;
|
|
2404
2416
|
readonly canonicalAddress?: EditableTargetCanonicalAddress;
|
|
2417
|
+
/**
|
|
2418
|
+
* List-specific address for numbered/bulleted paragraph text. Table-cell
|
|
2419
|
+
* list items keep their primary `canonicalAddress` as the table text target
|
|
2420
|
+
* for existing table commands; this additive address lets list consumers use
|
|
2421
|
+
* the same paragraph without narrowing it to table-only authority.
|
|
2422
|
+
*/
|
|
2423
|
+
readonly listAddress?: EditableTargetCanonicalAddress;
|
|
2405
2424
|
readonly staleCheck: EditableTargetStaleCheck;
|
|
2406
2425
|
readonly posture: EditableTargetPosture;
|
|
2407
2426
|
}
|
|
@@ -4341,6 +4360,12 @@ interface GeometryHitTarget {
|
|
|
4341
4360
|
lineIndex: number;
|
|
4342
4361
|
rect: GeometryRect$1;
|
|
4343
4362
|
precision: GeometryPrecision;
|
|
4363
|
+
generatedContentKind?: "numbering-marker";
|
|
4364
|
+
generatedContentBoundary?: {
|
|
4365
|
+
policy: "snap-to-authored-text";
|
|
4366
|
+
authoredTextStartsAtPx?: number;
|
|
4367
|
+
selectionPolicy: "exclude-generated-marker";
|
|
4368
|
+
};
|
|
4344
4369
|
}
|
|
4345
4370
|
type SemanticDisplayEntryKind = "text-line" | "editable-target" | "field-region" | "page-local-field-ledger" | "numbering-marker" | "table-frame" | "table-row" | "table-column" | "table-cell" | "toc-leader" | "toc-page-label" | "field-result" | "inline-object" | "floating-object" | "placeholder" | "background" | "border" | "debug-classification";
|
|
4346
4371
|
interface GeometryTableRowRange {
|
|
@@ -4374,6 +4399,20 @@ interface GeometryProjectionWarning {
|
|
|
4374
4399
|
message: string;
|
|
4375
4400
|
}
|
|
4376
4401
|
type GeometryEditableTargetUnavailableReason = "editable-target-block-geometry-missing" | "editable-target-table-geometry-missing" | "editable-target-command-geometry-missing" | "editable-target-page-geometry-unavailable";
|
|
4402
|
+
type GeometryNumberingUnavailableReason = "canonical-numbering-input-missing" | "numbering-marker-lane-unavailable" | "numbering-text-column-unavailable";
|
|
4403
|
+
interface GeometryNumberingFormatPosture {
|
|
4404
|
+
status: "approximated";
|
|
4405
|
+
requestedFormat: string;
|
|
4406
|
+
renderedFormat: "decimal";
|
|
4407
|
+
reason: "unsupported-numbering-format-decimal-fallback" | "numbering-format-range-decimal-fallback";
|
|
4408
|
+
}
|
|
4409
|
+
interface GeometryNumberingMarkerBoundary {
|
|
4410
|
+
generatedContent: "numbering-marker";
|
|
4411
|
+
caretPolicy: "snap-to-authored-text";
|
|
4412
|
+
selectionPolicy: "exclude-marker-unless-list-item-action";
|
|
4413
|
+
coordinateSpace: "frame-px";
|
|
4414
|
+
authoredTextStartsAtPx?: number;
|
|
4415
|
+
}
|
|
4377
4416
|
interface SemanticDisplayEntry {
|
|
4378
4417
|
entryId: string;
|
|
4379
4418
|
kind: SemanticDisplayEntryKind;
|
|
@@ -4417,6 +4456,21 @@ interface SemanticDisplayEntry {
|
|
|
4417
4456
|
editableTargetOwnerReason?: string;
|
|
4418
4457
|
editableTargetOwnerCanonicalAddress?: EditableTargetOwnerAddressRouting;
|
|
4419
4458
|
editableTargetUnavailableReason?: GeometryEditableTargetUnavailableReason;
|
|
4459
|
+
numberingLayoutId?: string;
|
|
4460
|
+
numberingKey?: string;
|
|
4461
|
+
numberingTargetKey?: string;
|
|
4462
|
+
numberingTargetKind?: string;
|
|
4463
|
+
numberingCanonicalAddressKey?: string;
|
|
4464
|
+
numberingListAddressKey?: string;
|
|
4465
|
+
numberingMarkerText?: string;
|
|
4466
|
+
numberingMarkerSuffix?: "tab" | "space" | "nothing";
|
|
4467
|
+
numberingFormat?: string;
|
|
4468
|
+
numberingFormatPosture?: GeometryNumberingFormatPosture;
|
|
4469
|
+
numberingUnavailableReasons?: readonly GeometryNumberingUnavailableReason[];
|
|
4470
|
+
markerGlyphRect?: GeometryRect$1;
|
|
4471
|
+
markerLaneRect?: GeometryRect$1;
|
|
4472
|
+
textColumnRect?: GeometryRect$1;
|
|
4473
|
+
markerBoundary?: GeometryNumberingMarkerBoundary;
|
|
4420
4474
|
rect: GeometryRect$1;
|
|
4421
4475
|
status: GeometryRehydrationStatus;
|
|
4422
4476
|
precision: GeometryPrecision;
|
|
@@ -4489,6 +4543,9 @@ interface HitTestResult$1 {
|
|
|
4489
4543
|
* available; missing anchor metadata leaves it undefined.
|
|
4490
4544
|
*/
|
|
4491
4545
|
assoc?: "before" | "after";
|
|
4546
|
+
generatedContentKind?: "numbering-marker";
|
|
4547
|
+
generatedContentBoundary?: "snap-to-authored-text";
|
|
4548
|
+
semanticEntryId?: string;
|
|
4492
4549
|
}
|
|
4493
4550
|
type AnchorQueryKind = "runtime-offset" | "block-id" | "fragment-id" | "scope-id" | "comment-id" | "revision-id" | "page-index";
|
|
4494
4551
|
interface AnchorQuery {
|
|
@@ -6950,6 +7007,21 @@ interface RuntimeOperationStep {
|
|
|
6950
7007
|
readonly kind: RuntimeOperationStepKind;
|
|
6951
7008
|
/** Human-readable one-line description; used in audit `compiledOperations`. */
|
|
6952
7009
|
readonly summary: string;
|
|
7010
|
+
/**
|
|
7011
|
+
* Optional command-surface target hint. Semantic ranges identify intent, but
|
|
7012
|
+
* text mutation must still resolve against the runtime's current editable
|
|
7013
|
+
* target graph before dispatch so table/SDT/nested structure offsets cannot
|
|
7014
|
+
* masquerade as paragraph text positions.
|
|
7015
|
+
*/
|
|
7016
|
+
readonly editableTargetHint?: {
|
|
7017
|
+
readonly kind: "text-leaf";
|
|
7018
|
+
readonly storyKey: string;
|
|
7019
|
+
readonly blockPath: string;
|
|
7020
|
+
readonly semanticBlockRange: {
|
|
7021
|
+
readonly from: number;
|
|
7022
|
+
readonly to: number;
|
|
7023
|
+
};
|
|
7024
|
+
};
|
|
6953
7025
|
/**
|
|
6954
7026
|
* Document-coordinate range the step operates on. Absent for steps
|
|
6955
7027
|
* that target the scope as a whole.
|
|
@@ -8125,6 +8197,17 @@ interface CreateDocumentRuntimeOptions {
|
|
|
8125
8197
|
* See CLAUDE.md (lane status table) §Phase 2.5 §3.7.
|
|
8126
8198
|
*/
|
|
8127
8199
|
seedLayoutCache?: RuntimePageGraph;
|
|
8200
|
+
/**
|
|
8201
|
+
* Mounted-shell cold-load guard. When provided, only the first editor
|
|
8202
|
+
* surface facet is projected with these realized block ranges. This is a
|
|
8203
|
+
* presentation residency hint, not layout truth: L04 page graph reads must
|
|
8204
|
+
* continue to start from their normal full/lazy layout query state.
|
|
8205
|
+
* Headless callers omit this to preserve full-surface semantics.
|
|
8206
|
+
*/
|
|
8207
|
+
initialSurfaceViewportBlockRanges?: readonly {
|
|
8208
|
+
start: number;
|
|
8209
|
+
end: number;
|
|
8210
|
+
}[];
|
|
8128
8211
|
}
|
|
8129
8212
|
declare function createDocumentRuntime(options: CreateDocumentRuntimeOptions): DocumentRuntime;
|
|
8130
8213
|
/**
|
|
@@ -8596,7 +8679,7 @@ interface RuntimeWordFieldMatrixProvider {
|
|
|
8596
8679
|
* `runtime.collab.*` family graduate its live path when hosts supply it
|
|
8597
8680
|
* and fall back to deterministic mocks when they don't.
|
|
8598
8681
|
*/
|
|
8599
|
-
type RuntimeApiHandle = Pick<DocumentRuntime, "now" | "getSessionState" | "setDocumentMode" | "exportDocx" | "getCompatibilityReport" | "getWarnings" | "getRenderSnapshot" | "getDocumentNavigationSnapshot" | "getCanonicalDocument" | "findAllText" | "replaceText" | "applyFormattingOperation" | "getReviewWorkSnapshot" | "getSuggestionsSnapshot" | "acceptChange" | "rejectChange" | "resolveComment" | "getCommentThreadForChange" | "ensureCommentThreadForChange" | "addReplyToChange" | "queryScopes" | "getWorkflowMarkupSnapshot" | "getInteractionGuardSnapshot" | "getWorkflowOverlay" | "addScope" | "setScopeGuardPolicy" | "getScopeGuardPolicy" | "setWorkflowMetadataEntries" | "getWorkflowMetadataSnapshot" | "getVisibilityPolicy" | "getVisibilityPolicies" | "setVisibilityPolicy" | "clearVisibilityPolicy" | "subscribeVisibilityPolicy" | "getMarkupModePolicy" | "setMarkupModePolicy" | "subscribeMarkupModePolicy" | "getScope" | "getLocationForAnchor" | "compileScopeBundleById" | "compileScopeList" | "compileScopeCardById" | "compileScopeRailSnapshot" | "applyScopeReplacement" | "applyScopeFormatting" | "dispatch" | "debug" | "layout" | "geometry"> & {
|
|
8682
|
+
type RuntimeApiHandle = Pick<DocumentRuntime, "now" | "getSessionState" | "setDocumentMode" | "exportDocx" | "getCompatibilityReport" | "getWarnings" | "getRenderSnapshot" | "getDocumentNavigationSnapshot" | "getCanonicalDocument" | "findAllText" | "replaceText" | "applyActiveStoryTextCommand" | "applyFormattingOperation" | "getReviewWorkSnapshot" | "getSuggestionsSnapshot" | "acceptChange" | "rejectChange" | "resolveComment" | "getCommentThreadForChange" | "ensureCommentThreadForChange" | "addReplyToChange" | "queryScopes" | "getWorkflowMarkupSnapshot" | "getInteractionGuardSnapshot" | "getWorkflowOverlay" | "addScope" | "setScopeGuardPolicy" | "getScopeGuardPolicy" | "setWorkflowMetadataEntries" | "getWorkflowMetadataSnapshot" | "getVisibilityPolicy" | "getVisibilityPolicies" | "setVisibilityPolicy" | "clearVisibilityPolicy" | "subscribeVisibilityPolicy" | "getMarkupModePolicy" | "setMarkupModePolicy" | "subscribeMarkupModePolicy" | "getScope" | "getLocationForAnchor" | "compileScopeBundleById" | "compileScopeList" | "compileScopeCardById" | "compileScopeRailSnapshot" | "applyScopeReplacement" | "applyScopeFormatting" | "dispatch" | "debug" | "layout" | "geometry"> & {
|
|
8600
8683
|
/**
|
|
8601
8684
|
* Optional collab session — hosts that wire Yjs/Awareness pass the
|
|
8602
8685
|
* session here so `api.runtime.collab.getPresence` / `.getPosture`
|
|
@@ -11400,7 +11483,7 @@ type AiActionsTargetInput = {
|
|
|
11400
11483
|
readonly tableTextScopeLimit?: number;
|
|
11401
11484
|
};
|
|
11402
11485
|
interface AiActionsMatch {
|
|
11403
|
-
readonly kind: SemanticScopeKind | "table-text";
|
|
11486
|
+
readonly kind: SemanticScopeKind | "table-text" | "hyperlink-text";
|
|
11404
11487
|
readonly text: string;
|
|
11405
11488
|
readonly excerpt: string;
|
|
11406
11489
|
readonly handle?: ScopeHandle;
|
|
@@ -11439,7 +11522,7 @@ interface DiscoverActionsResult {
|
|
|
11439
11522
|
readonly blockerDetails?: readonly AiActionsBlockerDetail[];
|
|
11440
11523
|
}
|
|
11441
11524
|
interface AiActionsTargetSummary {
|
|
11442
|
-
readonly kind: SemanticScopeKind | "table-text";
|
|
11525
|
+
readonly kind: SemanticScopeKind | "table-text" | "hyperlink-text";
|
|
11443
11526
|
readonly handle?: ScopeHandle;
|
|
11444
11527
|
readonly actionHandle?: string;
|
|
11445
11528
|
readonly readback?: AiTableTextReadback;
|
|
@@ -11458,6 +11541,12 @@ interface RewriteActionsInput {
|
|
|
11458
11541
|
readonly origin?: "ui" | "agent" | "host";
|
|
11459
11542
|
readonly proposalId?: string;
|
|
11460
11543
|
}
|
|
11544
|
+
interface HyperlinkTextEditActionsInput {
|
|
11545
|
+
readonly target: AiActionsExactTargetInput;
|
|
11546
|
+
readonly text: string;
|
|
11547
|
+
readonly actorId?: string;
|
|
11548
|
+
readonly origin?: "ui" | "agent" | "host";
|
|
11549
|
+
}
|
|
11461
11550
|
interface RewriteAllActionsInput extends Omit<RewriteActionsInput, "target"> {
|
|
11462
11551
|
readonly query: string;
|
|
11463
11552
|
readonly kind?: SemanticScopeKind;
|
|
@@ -11648,6 +11737,12 @@ type RunPlanActionsStep = (RunPlanStepBase & {
|
|
|
11648
11737
|
readonly href: string;
|
|
11649
11738
|
readonly actorId?: string;
|
|
11650
11739
|
readonly origin?: "ui" | "agent" | "host";
|
|
11740
|
+
}) | (RunPlanStepBase & {
|
|
11741
|
+
readonly kind: "hyperlinkTextEdit";
|
|
11742
|
+
readonly target: AiActionsExactTargetInput;
|
|
11743
|
+
readonly text: string;
|
|
11744
|
+
readonly actorId?: string;
|
|
11745
|
+
readonly origin?: "ui" | "agent" | "host";
|
|
11651
11746
|
}) | (RunPlanStepBase & {
|
|
11652
11747
|
readonly kind: "listOperation";
|
|
11653
11748
|
readonly target: AiActionsExactTargetInput;
|
|
@@ -11703,7 +11798,7 @@ interface ApplyActionsResult {
|
|
|
11703
11798
|
readonly results?: readonly ApplyActionsResult[];
|
|
11704
11799
|
}
|
|
11705
11800
|
interface AiActionsCommandReference {
|
|
11706
|
-
readonly command: NonNullable<ApplyTableActionResult["commandReference"]>["command"] | "field.refresh" | "toc.refresh" | "bookmark.edit-content" | "hyperlink.update-destination" | "list.toggle" | "list.indent" | "list.outdent" | "list.restart-numbering" | "list.continue-numbering";
|
|
11801
|
+
readonly command: NonNullable<ApplyTableActionResult["commandReference"]>["command"] | "field.refresh" | "toc.refresh" | "bookmark.edit-content" | "hyperlink.update-destination" | "text.insert" | "list.toggle" | "list.indent" | "list.outdent" | "list.restart-numbering" | "list.continue-numbering";
|
|
11707
11802
|
readonly actorId: string;
|
|
11708
11803
|
readonly origin: "ui" | "agent" | "host";
|
|
11709
11804
|
readonly emittedAtUtc: string;
|
|
@@ -11765,6 +11860,7 @@ declare function createActionsFamily(runtime: RuntimeApiHandle): {
|
|
|
11765
11860
|
tocRefresh(input: TocRefreshActionsInput): ApplyActionsResult;
|
|
11766
11861
|
bookmarkEdit(input: BookmarkEditActionsInput): ApplyActionsResult;
|
|
11767
11862
|
hyperlinkDestinationEdit(input: HyperlinkDestinationEditActionsInput): ApplyActionsResult;
|
|
11863
|
+
hyperlinkTextEdit(input: HyperlinkTextEditActionsInput): ApplyActionsResult;
|
|
11768
11864
|
listOperation(input: ListOperationActionsInput): ApplyActionsResult;
|
|
11769
11865
|
tableFragment(input: TableFragmentActionsInput): ApplyActionsResult;
|
|
11770
11866
|
tableSelection(input: TableSelectionActionsInput): ApplyActionsResult;
|
|
@@ -14155,6 +14251,12 @@ interface ResolvedNumberingGeometrySnapshot {
|
|
|
14155
14251
|
interface ResolvedNumberingSnapshot {
|
|
14156
14252
|
level: number;
|
|
14157
14253
|
format: string;
|
|
14254
|
+
formatPosture?: {
|
|
14255
|
+
status: "approximated";
|
|
14256
|
+
requestedFormat: string;
|
|
14257
|
+
renderedFormat: "decimal";
|
|
14258
|
+
reason: "unsupported-numbering-format-decimal-fallback" | "numbering-format-range-decimal-fallback";
|
|
14259
|
+
};
|
|
14158
14260
|
text?: string;
|
|
14159
14261
|
startAt: number;
|
|
14160
14262
|
paragraphStyleId?: string;
|