@beyondwork/docx-react-component 1.0.121 → 1.0.123

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 (102) hide show
  1. package/dist/api/public-types.cjs +318 -32
  2. package/dist/api/public-types.d.cts +2 -2
  3. package/dist/api/public-types.d.ts +2 -2
  4. package/dist/api/public-types.js +3 -3
  5. package/dist/api/v3.cjs +349 -62
  6. package/dist/api/v3.d.cts +3 -3
  7. package/dist/api/v3.d.ts +3 -3
  8. package/dist/api/v3.js +10 -10
  9. package/dist/{canonical-document-ByIqTd4s.d.cts → canonical-document-CG2TgAzj.d.cts} +1 -1
  10. package/dist/{canonical-document-ByIqTd4s.d.ts → canonical-document-CG2TgAzj.d.ts} +1 -1
  11. package/dist/{chunk-B4YHWFE3.js → chunk-32ZAOQ54.js} +1 -1
  12. package/dist/{chunk-QNGJRZ2D.js → chunk-4IPEZYQX.js} +1 -1
  13. package/dist/{chunk-3OFSP2IX.js → chunk-BOHHIVQ2.js} +3 -3
  14. package/dist/{chunk-EMDH4IQN.js → chunk-E5IBDE5E.js} +4 -3
  15. package/dist/{chunk-TFSXOIAI.js → chunk-FNWKE74J.js} +43 -3
  16. package/dist/{chunk-IT2DK3A7.js → chunk-H2YQKA55.js} +9 -7
  17. package/dist/{chunk-3TUQCHYT.js → chunk-H6IL5ABU.js} +47 -7
  18. package/dist/{chunk-GON2DNTE.js → chunk-HXHQA4BU.js} +1 -1
  19. package/dist/{chunk-3OHVK2D6.js → chunk-IR7QV2BX.js} +17 -1
  20. package/dist/{chunk-ZKSDVHGH.js → chunk-KOHQFZMM.js} +1 -1
  21. package/dist/{chunk-XVFENXLK.js → chunk-LGWNN3L2.js} +2 -2
  22. package/dist/{chunk-TMU7JMXX.js → chunk-MB7RJBSN.js} +9 -21
  23. package/dist/{chunk-UWDWGQH5.js → chunk-ML4A4WUN.js} +1 -1
  24. package/dist/{chunk-GZW2ERUO.js → chunk-N4VIXI2Z.js} +3 -3
  25. package/dist/{chunk-S4ANOS2M.js → chunk-NNPVA5VL.js} +2 -2
  26. package/dist/{chunk-QFU7ZOAD.js → chunk-PFYUJU3Q.js} +176 -36
  27. package/dist/{chunk-37SEJQ3G.js → chunk-RSYN6FTS.js} +2 -2
  28. package/dist/{chunk-OBCP6VTG.js → chunk-RWERZWHR.js} +1 -1
  29. package/dist/{chunk-UHQOUTAX.js → chunk-SGSJ4DQA.js} +377 -50
  30. package/dist/{chunk-PCXTMEGY.js → chunk-UHJLCPLU.js} +24 -14
  31. package/dist/{chunk-G3B2OBCZ.js → chunk-ZRHLLPSJ.js} +271 -26
  32. package/dist/compare.d.cts +1 -1
  33. package/dist/compare.d.ts +1 -1
  34. package/dist/core/commands/formatting-commands.d.cts +2 -2
  35. package/dist/core/commands/formatting-commands.d.ts +2 -2
  36. package/dist/core/commands/image-commands.cjs +50 -9
  37. package/dist/core/commands/image-commands.d.cts +2 -2
  38. package/dist/core/commands/image-commands.d.ts +2 -2
  39. package/dist/core/commands/image-commands.js +5 -5
  40. package/dist/core/commands/section-layout-commands.d.cts +2 -2
  41. package/dist/core/commands/section-layout-commands.d.ts +2 -2
  42. package/dist/core/commands/style-commands.d.cts +2 -2
  43. package/dist/core/commands/style-commands.d.ts +2 -2
  44. package/dist/core/commands/table-structure-commands.cjs +50 -9
  45. package/dist/core/commands/table-structure-commands.d.cts +2 -2
  46. package/dist/core/commands/table-structure-commands.d.ts +2 -2
  47. package/dist/core/commands/table-structure-commands.js +4 -4
  48. package/dist/core/commands/text-commands.cjs +66 -9
  49. package/dist/core/commands/text-commands.d.cts +3 -2
  50. package/dist/core/commands/text-commands.d.ts +3 -2
  51. package/dist/core/commands/text-commands.js +5 -5
  52. package/dist/core/selection/mapping.d.cts +2 -2
  53. package/dist/core/selection/mapping.d.ts +2 -2
  54. package/dist/core/state/editor-state.d.cts +2 -2
  55. package/dist/core/state/editor-state.d.ts +2 -2
  56. package/dist/index.cjs +1196 -197
  57. package/dist/index.d.cts +5 -5
  58. package/dist/index.d.ts +5 -5
  59. package/dist/index.js +278 -85
  60. package/dist/io/docx-session.cjs +10 -21
  61. package/dist/io/docx-session.d.cts +4 -4
  62. package/dist/io/docx-session.d.ts +4 -4
  63. package/dist/io/docx-session.js +4 -4
  64. package/dist/legal.cjs +8 -20
  65. package/dist/legal.d.cts +1 -1
  66. package/dist/legal.d.ts +1 -1
  67. package/dist/legal.js +3 -3
  68. package/dist/{loader-BF8ju_LK.d.ts → loader-D9KCtj4m.d.cts} +4 -22
  69. package/dist/{loader-g54WRvj1.d.cts → loader-D9y4ZRjj.d.ts} +4 -22
  70. package/dist/{public-types-Dl1jiWjk.d.ts → public-types-CNnMHZM9.d.ts} +263 -213
  71. package/dist/{public-types-D_y4Ptcj.d.cts → public-types-DajNGKV4.d.cts} +263 -213
  72. package/dist/public-types.cjs +318 -32
  73. package/dist/public-types.d.cts +2 -2
  74. package/dist/public-types.d.ts +2 -2
  75. package/dist/public-types.js +3 -3
  76. package/dist/runtime/collab.d.cts +3 -3
  77. package/dist/runtime/collab.d.ts +3 -3
  78. package/dist/runtime/document-runtime.cjs +752 -77
  79. package/dist/runtime/document-runtime.d.cts +2 -2
  80. package/dist/runtime/document-runtime.d.ts +2 -2
  81. package/dist/runtime/document-runtime.js +14 -14
  82. package/dist/{session-C1EPAkcI.d.ts → session-DEmaOEjA.d.ts} +3 -3
  83. package/dist/{session-D15QOO0Q.d.cts → session-DyQGlryH.d.cts} +3 -3
  84. package/dist/session.cjs +12 -618
  85. package/dist/session.d.cts +5 -5
  86. package/dist/session.d.ts +5 -5
  87. package/dist/session.js +7 -9
  88. package/dist/tailwind.cjs +489 -63
  89. package/dist/tailwind.d.cts +2 -2
  90. package/dist/tailwind.d.ts +2 -2
  91. package/dist/tailwind.js +7 -7
  92. package/dist/{types-BoSRp2Vg.d.cts → types-CxE1aZiv.d.cts} +2 -2
  93. package/dist/{types-DEvRwq9C.d.ts → types-DjJNaE9c.d.ts} +2 -2
  94. package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
  95. package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
  96. package/dist/ui-tailwind/editor-surface/search-plugin.js +4 -4
  97. package/dist/ui-tailwind/theme/tokens.css +387 -0
  98. package/dist/ui-tailwind.cjs +489 -63
  99. package/dist/ui-tailwind.d.cts +3 -3
  100. package/dist/ui-tailwind.d.ts +3 -3
  101. package/dist/ui-tailwind.js +7 -7
  102. package/package.json +7 -3
@@ -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, T as TableLook, p as TableStyleFormatting, q as TableWidth, r as TableBorders, s as TableStyleConditionalRegion, t as TableCellBorders, u as CellShading, v as CanonicalSourceRef, w as SdtDataBindingState, F as FieldFamily$1, x as FieldRefreshStatus$1, y as TocRegion, z as CanonicalAnchor, A as PreserveOnlyObjectSizing, E as TableCellNode, 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-ByIqTd4s.js';
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-CG2TgAzj.js';
7
7
  import * as prosemirror_state from 'prosemirror-state';
8
8
  import { Command } from 'prosemirror-state';
9
9
  import { Schema } from 'prosemirror-model';
@@ -1810,11 +1810,55 @@ interface RuntimeStoryAnchoredObject {
1810
1810
  * rendered pixel bbox; L05 owns projection to px/object handles.
1811
1811
  */
1812
1812
  anchorRectTwips?: RuntimeTwipsRect;
1813
+ /**
1814
+ * L04 text-box body geometry for floating anchored text boxes. These facts
1815
+ * are derived from canonical L02 text-box body inputs and page-frame twips
1816
+ * placement; pixel projection and visual placement remain L05/L11 concerns.
1817
+ */
1818
+ textBoxBody?: RuntimeTextBoxBodyLayoutFacts;
1813
1819
  relationshipIds?: readonly string[];
1814
1820
  mediaIds?: readonly string[];
1815
1821
  preserveOnly: boolean;
1816
1822
  divergenceIds: string[];
1817
1823
  }
1824
+ type RuntimeTextBoxBodyLayoutStatus = "modeled" | "preserve-only" | "unavailable";
1825
+ type RuntimeTextBoxBodyUnavailableReason = "missing-anchor-rect" | "missing-body-insets" | "unmodeled-txbx-blocks" | "inline-textbox" | "unsupported-vml-textbox" | "txbx-blocks-unavailable" | "empty-body" | "unsupported-content";
1826
+ interface RuntimeTextBoxBodyInsetsTwips {
1827
+ leftTwips: number;
1828
+ topTwips: number;
1829
+ rightTwips: number;
1830
+ bottomTwips: number;
1831
+ }
1832
+ interface RuntimeTextBoxBodyLayoutFacts {
1833
+ bodyKey: string;
1834
+ status: RuntimeTextBoxBodyLayoutStatus;
1835
+ unavailableReason?: RuntimeTextBoxBodyUnavailableReason;
1836
+ bodyProperties?: RuntimeTextBoxBodyProperties;
1837
+ bodyInsetsTwips?: RuntimeTextBoxBodyInsetsTwips;
1838
+ contentRectTwips?: RuntimeTwipsRect;
1839
+ blockCount: number;
1840
+ paragraphCount: number;
1841
+ unsupportedBlockCount: number;
1842
+ paragraphs: readonly RuntimeTextBoxParagraphLayoutFacts[];
1843
+ }
1844
+ interface RuntimeTextBoxBodyProperties {
1845
+ anchor?: "t" | "ctr" | "b";
1846
+ insetLeftEmu?: number;
1847
+ insetTopEmu?: number;
1848
+ insetRightEmu?: number;
1849
+ insetBottomEmu?: number;
1850
+ }
1851
+ interface RuntimeTextBoxParagraphLayoutFacts {
1852
+ paragraphKey: string;
1853
+ blockPath: string;
1854
+ blockIndex: number;
1855
+ rectTwips?: RuntimeTwipsRect;
1856
+ unavailableReason?: RuntimeTextBoxBodyUnavailableReason;
1857
+ styleId?: string;
1858
+ alignment?: "left" | "center" | "right" | "both" | "distribute" | "start" | "end";
1859
+ textLength: number;
1860
+ runCount: number;
1861
+ }
1818
1862
  type RuntimeLayoutContinuationCursor = RuntimeParagraphContinuationCursor | RuntimeTableContinuationCursor;
1819
1863
  interface RuntimeParagraphContinuationCursor {
1820
1864
  kind: "paragraph";
@@ -2151,6 +2195,218 @@ interface RuntimePageAnchor {
2151
2195
  fragmentId?: string;
2152
2196
  }
2153
2197
 
2198
+ 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
+ type EditableTargetCommandFamily = "text-leaf" | "table-structure" | "field" | "link-bookmark" | "comment-revision" | "object" | "metadata" | "preserve-only-refusal";
2200
+ 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";
2202
+ interface EditableTargetPosture {
2203
+ readonly blockers: readonly EditableTargetBlocker[];
2204
+ readonly protected?: boolean;
2205
+ readonly lockedContentControl?: boolean;
2206
+ readonly preserveOnly?: boolean;
2207
+ readonly reviewTracked?: boolean;
2208
+ }
2209
+ interface EditableTargetStaleCheck {
2210
+ readonly paragraphTextHash?: string;
2211
+ readonly paragraphTextLength?: number;
2212
+ readonly inlineCount?: number;
2213
+ readonly targetHash?: string;
2214
+ readonly targetTextLength?: number;
2215
+ readonly childCount?: number;
2216
+ readonly blockType: "paragraph" | "field" | "hyperlink" | "bookmark" | "review-anchor" | "object" | "custom_xml" | "table" | "table-row" | "table-column" | "table-cell" | "opaque";
2217
+ readonly wordParaId?: string;
2218
+ readonly wordTextId?: string;
2219
+ readonly sourceRef?: CanonicalSourceRef;
2220
+ }
2221
+ interface EditableTargetContentControlIdentity {
2222
+ readonly sourceRef?: CanonicalSourceRef;
2223
+ readonly sdtId?: string;
2224
+ readonly tag?: string;
2225
+ readonly alias?: string;
2226
+ readonly sdtType?: string;
2227
+ readonly lock?: string;
2228
+ readonly dataBinding?: SdtDataBindingState;
2229
+ }
2230
+ interface EditableTargetFieldIdentity {
2231
+ readonly canonicalFieldId?: string;
2232
+ readonly regionId?: string;
2233
+ readonly fieldFamily?: FieldFamily$1;
2234
+ readonly fieldTarget?: string;
2235
+ readonly refreshStatus?: FieldRefreshStatus$1;
2236
+ readonly locked?: boolean;
2237
+ readonly dirty?: boolean;
2238
+ readonly sourcePath?: string;
2239
+ readonly tocId?: string;
2240
+ readonly resultRangeFromParagraphIndex?: number;
2241
+ readonly resultRangeToParagraphIndex?: number;
2242
+ readonly status?: TocRegion["status"];
2243
+ readonly cachedEntryCount?: number;
2244
+ readonly generatedEntryCount?: number;
2245
+ }
2246
+ interface EditableTargetLinkIdentity {
2247
+ readonly href?: string;
2248
+ readonly destinationKind?: "external" | "internal-anchor";
2249
+ readonly bookmarkId?: string;
2250
+ readonly bookmarkName?: string;
2251
+ readonly rangeKey?: string;
2252
+ }
2253
+ interface EditableTargetReviewIdentity {
2254
+ readonly reviewId: string;
2255
+ readonly reviewKind: "comment" | "revision";
2256
+ readonly status: string;
2257
+ readonly anchorKind: CanonicalAnchor["kind"];
2258
+ readonly sourceOoxmlId?: string;
2259
+ }
2260
+ interface EditableTargetObjectIdentity {
2261
+ readonly objectKind: CanonicalAnchorObjectKind | "ole" | "custom-xml" | "opaque-block" | "opaque-inline";
2262
+ readonly mediaId?: string;
2263
+ readonly relationshipId?: string;
2264
+ readonly packagePartName?: string;
2265
+ readonly fragmentId?: string;
2266
+ readonly warningId?: string;
2267
+ readonly preserveOnlyHint?: PreserveOnlyObjectSizing["fallbackHint"];
2268
+ }
2269
+ interface EditableTargetTableRange {
2270
+ readonly from: number;
2271
+ readonly to: number;
2272
+ readonly total: number;
2273
+ }
2274
+ interface EditableTargetTableFragmentIdentity {
2275
+ /**
2276
+ * Stable canonical join key for runtime table-slice / continuation fragments.
2277
+ * L04 owns page-local fragment ids; L02 exposes this source-table key so any
2278
+ * fragment row range can resolve back to the same canonical table target.
2279
+ */
2280
+ readonly fragmentJoinKey: string;
2281
+ readonly rowRange?: EditableTargetTableRange;
2282
+ readonly columnRange?: EditableTargetTableRange;
2283
+ readonly repeatedHeaderEligible?: boolean;
2284
+ readonly splitRowEligible?: boolean;
2285
+ readonly verticalMergeCarry?: boolean;
2286
+ }
2287
+ interface EditableTargetCellFragmentIdentity {
2288
+ readonly fragmentKey: string;
2289
+ readonly textHash: string;
2290
+ readonly blockCount: number;
2291
+ readonly rowRange?: EditableTargetTableRange;
2292
+ readonly columnRange?: EditableTargetTableRange;
2293
+ readonly sourceJoinHash?: string;
2294
+ }
2295
+ interface EditableTargetTableIdentity {
2296
+ readonly operationScope: "text" | "table" | "row" | "column" | "cell" | "span";
2297
+ readonly tableKey: string;
2298
+ readonly tablePath: string;
2299
+ readonly sourceRef?: CanonicalSourceRef;
2300
+ readonly rowSourceRef?: CanonicalSourceRef;
2301
+ readonly cellSourceRef?: CanonicalSourceRef;
2302
+ readonly storyBlockIndex?: number;
2303
+ readonly tableBlockIndex?: number;
2304
+ readonly tableDepth: number;
2305
+ readonly nestedTable?: boolean;
2306
+ readonly insideSdt?: boolean;
2307
+ readonly secondaryStory?: boolean;
2308
+ readonly rowIndex?: number;
2309
+ readonly columnIndex?: number;
2310
+ readonly cellIndex?: number;
2311
+ readonly gridColumnStart?: number;
2312
+ readonly gridSpan?: number;
2313
+ readonly verticalMerge?: TableCellNode["verticalMerge"];
2314
+ readonly rowCount?: number;
2315
+ readonly columnCount?: number;
2316
+ readonly rowCellCount?: number;
2317
+ readonly blockCount?: number;
2318
+ readonly fragment?: EditableTargetTableFragmentIdentity;
2319
+ readonly cellFragment?: EditableTargetCellFragmentIdentity;
2320
+ }
2321
+ type EditableTargetCanonicalAddressKind = "table-target" | "list-item-text" | "field-result" | "field-region-refresh" | "toc-region-refresh" | "hyperlink-display-text" | "hyperlink-destination" | "bookmark-anchor" | "bookmark-content-range";
2322
+ interface EditableTargetCanonicalAddress {
2323
+ /**
2324
+ * Opaque target-specific join key for consumers. It is derived from story,
2325
+ * source identity, and semantic range facts without publishing raw block,
2326
+ * leaf, table path, or OOXML cell-path strings as the command contract.
2327
+ */
2328
+ readonly addressKey: string;
2329
+ readonly addressKind: EditableTargetCanonicalAddressKind;
2330
+ readonly storyKey: string;
2331
+ readonly staleCheckKind: EditableTargetStaleCheck["blockType"];
2332
+ readonly operationScope?: EditableTargetTableIdentity["operationScope"] | "list-text" | "field-refresh" | "toc-refresh" | "link-destination" | "bookmark-range";
2333
+ readonly rowRange?: EditableTargetTableRange;
2334
+ readonly columnRange?: EditableTargetTableRange;
2335
+ readonly sourceJoinHash?: string;
2336
+ readonly secondaryStory?: boolean;
2337
+ readonly nestedTable?: boolean;
2338
+ readonly insideSdt?: boolean;
2339
+ readonly resolver?: EditableTargetCanonicalAddressResolverMetadata;
2340
+ }
2341
+ interface EditableTargetAddressRangeBoundary {
2342
+ readonly boundaryKind: "table-grid" | "cell-fragment" | "list-item-text" | "field-result" | "field-region" | "hyperlink-display" | "bookmark-content" | "hyperlink-destination" | "bookmark-anchor";
2343
+ readonly from?: number;
2344
+ readonly to?: number;
2345
+ readonly startSourceJoinHash?: string;
2346
+ readonly endSourceJoinHash?: string;
2347
+ }
2348
+ interface EditableTargetOwnerAddressRouting {
2349
+ readonly addressKey: string;
2350
+ readonly addressKind: EditableTargetCanonicalAddressKind;
2351
+ readonly storyKey: string;
2352
+ readonly operationScope?: EditableTargetCanonicalAddress["operationScope"];
2353
+ readonly sourceJoinHash?: string;
2354
+ readonly staleHash: string;
2355
+ readonly rowRange?: EditableTargetTableRange;
2356
+ readonly columnRange?: EditableTargetTableRange;
2357
+ }
2358
+ interface EditableTargetCanonicalAddressResolverMetadata {
2359
+ readonly staleHash: string;
2360
+ readonly sourceJoinHash?: string;
2361
+ readonly rowRange?: EditableTargetTableRange;
2362
+ readonly columnRange?: EditableTargetTableRange;
2363
+ readonly rangeBoundary?: EditableTargetAddressRangeBoundary;
2364
+ readonly owner?: EditableTargetOwnerAddressRouting;
2365
+ }
2366
+ interface EditableTargetOwnerIdentity {
2367
+ readonly targetKey: string;
2368
+ readonly kind: EditableTargetKind;
2369
+ readonly storyKey: string;
2370
+ readonly blockPath: string;
2371
+ readonly leafPath: string;
2372
+ readonly commandFamily: "text-leaf";
2373
+ readonly reason: "vertical-merge-restart-cell";
2374
+ readonly canonicalAddress?: EditableTargetOwnerAddressRouting;
2375
+ readonly table?: {
2376
+ readonly tableKey: string;
2377
+ readonly tablePath: string;
2378
+ readonly sourceRef?: CanonicalSourceRef;
2379
+ readonly rowSourceRef?: CanonicalSourceRef;
2380
+ readonly cellSourceRef?: CanonicalSourceRef;
2381
+ readonly rowIndex?: number;
2382
+ readonly cellIndex?: number;
2383
+ readonly gridColumnStart?: number;
2384
+ readonly gridSpan?: number;
2385
+ readonly verticalMerge?: TableCellNode["verticalMerge"];
2386
+ };
2387
+ }
2388
+ interface EditableTargetRef {
2389
+ readonly targetKey: string;
2390
+ readonly kind: EditableTargetKind;
2391
+ readonly storyKey: string;
2392
+ readonly blockPath: string;
2393
+ readonly leafPath: string;
2394
+ readonly commandFamily: EditableTargetCommandFamily;
2395
+ readonly editability: EditableTargetEditability;
2396
+ readonly sourceRef?: CanonicalSourceRef;
2397
+ readonly contentControl?: EditableTargetContentControlIdentity;
2398
+ readonly field?: EditableTargetFieldIdentity;
2399
+ readonly link?: EditableTargetLinkIdentity;
2400
+ readonly review?: EditableTargetReviewIdentity;
2401
+ readonly object?: EditableTargetObjectIdentity;
2402
+ readonly table?: EditableTargetTableIdentity;
2403
+ readonly editableOwner?: EditableTargetOwnerIdentity;
2404
+ readonly canonicalAddress?: EditableTargetCanonicalAddress;
2405
+ readonly staleCheck: EditableTargetStaleCheck;
2406
+ readonly posture: EditableTargetPosture;
2407
+ }
2408
+ type CanonicalAnchorObjectKind = "legacy-image" | "picture" | "shape" | "textbox" | "chart" | "smartart" | "opaque";
2409
+
2154
2410
  /**
2155
2411
  * Layer 02 · runtime page-graph types.
2156
2412
  *
@@ -2919,6 +3175,7 @@ interface PublicStoryAnchoredObject {
2919
3175
  heightTwips: number;
2920
3176
  };
2921
3177
  anchorRectTwips?: PublicTwipsRect;
3178
+ textBoxBody?: RuntimeStoryAnchoredObject["textBoxBody"];
2922
3179
  relationshipIds?: readonly string[];
2923
3180
  mediaIds?: readonly string[];
2924
3181
  preserveOnly: boolean;
@@ -3853,218 +4110,6 @@ type RenderKernelEvent = {
3853
4110
  */
3854
4111
  declare const DEFAULT_PX_PER_TWIP: number;
3855
4112
 
3856
- 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";
3857
- type EditableTargetCommandFamily = "text-leaf" | "table-structure" | "field" | "link-bookmark" | "comment-revision" | "object" | "metadata" | "preserve-only-refusal";
3858
- type EditableTargetEditability = "editable" | "non-editable";
3859
- type EditableTargetBlocker = "protected-section" | "protected-range" | "locked-content-control" | "preserve-only" | "opaque-content" | "field-generated-text" | "review-posture" | "synthetic-layout-cell" | "unmodeled-target";
3860
- interface EditableTargetPosture {
3861
- readonly blockers: readonly EditableTargetBlocker[];
3862
- readonly protected?: boolean;
3863
- readonly lockedContentControl?: boolean;
3864
- readonly preserveOnly?: boolean;
3865
- readonly reviewTracked?: boolean;
3866
- }
3867
- interface EditableTargetStaleCheck {
3868
- readonly paragraphTextHash?: string;
3869
- readonly paragraphTextLength?: number;
3870
- readonly inlineCount?: number;
3871
- readonly targetHash?: string;
3872
- readonly targetTextLength?: number;
3873
- readonly childCount?: number;
3874
- readonly blockType: "paragraph" | "field" | "hyperlink" | "bookmark" | "review-anchor" | "object" | "custom_xml" | "table" | "table-row" | "table-column" | "table-cell" | "opaque";
3875
- readonly wordParaId?: string;
3876
- readonly wordTextId?: string;
3877
- readonly sourceRef?: CanonicalSourceRef;
3878
- }
3879
- interface EditableTargetContentControlIdentity {
3880
- readonly sourceRef?: CanonicalSourceRef;
3881
- readonly sdtId?: string;
3882
- readonly tag?: string;
3883
- readonly alias?: string;
3884
- readonly sdtType?: string;
3885
- readonly lock?: string;
3886
- readonly dataBinding?: SdtDataBindingState;
3887
- }
3888
- interface EditableTargetFieldIdentity {
3889
- readonly canonicalFieldId?: string;
3890
- readonly regionId?: string;
3891
- readonly fieldFamily?: FieldFamily$1;
3892
- readonly fieldTarget?: string;
3893
- readonly refreshStatus?: FieldRefreshStatus$1;
3894
- readonly locked?: boolean;
3895
- readonly dirty?: boolean;
3896
- readonly sourcePath?: string;
3897
- readonly tocId?: string;
3898
- readonly resultRangeFromParagraphIndex?: number;
3899
- readonly resultRangeToParagraphIndex?: number;
3900
- readonly status?: TocRegion["status"];
3901
- readonly cachedEntryCount?: number;
3902
- readonly generatedEntryCount?: number;
3903
- }
3904
- interface EditableTargetLinkIdentity {
3905
- readonly href?: string;
3906
- readonly destinationKind?: "external" | "internal-anchor";
3907
- readonly bookmarkId?: string;
3908
- readonly bookmarkName?: string;
3909
- readonly rangeKey?: string;
3910
- }
3911
- interface EditableTargetReviewIdentity {
3912
- readonly reviewId: string;
3913
- readonly reviewKind: "comment" | "revision";
3914
- readonly status: string;
3915
- readonly anchorKind: CanonicalAnchor["kind"];
3916
- readonly sourceOoxmlId?: string;
3917
- }
3918
- interface EditableTargetObjectIdentity {
3919
- readonly objectKind: CanonicalAnchorObjectKind | "ole" | "custom-xml" | "opaque-block" | "opaque-inline";
3920
- readonly mediaId?: string;
3921
- readonly relationshipId?: string;
3922
- readonly packagePartName?: string;
3923
- readonly fragmentId?: string;
3924
- readonly warningId?: string;
3925
- readonly preserveOnlyHint?: PreserveOnlyObjectSizing["fallbackHint"];
3926
- }
3927
- interface EditableTargetTableRange {
3928
- readonly from: number;
3929
- readonly to: number;
3930
- readonly total: number;
3931
- }
3932
- interface EditableTargetTableFragmentIdentity {
3933
- /**
3934
- * Stable canonical join key for runtime table-slice / continuation fragments.
3935
- * L04 owns page-local fragment ids; L02 exposes this source-table key so any
3936
- * fragment row range can resolve back to the same canonical table target.
3937
- */
3938
- readonly fragmentJoinKey: string;
3939
- readonly rowRange?: EditableTargetTableRange;
3940
- readonly columnRange?: EditableTargetTableRange;
3941
- readonly repeatedHeaderEligible?: boolean;
3942
- readonly splitRowEligible?: boolean;
3943
- readonly verticalMergeCarry?: boolean;
3944
- }
3945
- interface EditableTargetCellFragmentIdentity {
3946
- readonly fragmentKey: string;
3947
- readonly textHash: string;
3948
- readonly blockCount: number;
3949
- readonly rowRange?: EditableTargetTableRange;
3950
- readonly columnRange?: EditableTargetTableRange;
3951
- readonly sourceJoinHash?: string;
3952
- }
3953
- interface EditableTargetTableIdentity {
3954
- readonly operationScope: "text" | "table" | "row" | "column" | "cell" | "span";
3955
- readonly tableKey: string;
3956
- readonly tablePath: string;
3957
- readonly sourceRef?: CanonicalSourceRef;
3958
- readonly rowSourceRef?: CanonicalSourceRef;
3959
- readonly cellSourceRef?: CanonicalSourceRef;
3960
- readonly storyBlockIndex?: number;
3961
- readonly tableBlockIndex?: number;
3962
- readonly tableDepth: number;
3963
- readonly nestedTable?: boolean;
3964
- readonly insideSdt?: boolean;
3965
- readonly secondaryStory?: boolean;
3966
- readonly rowIndex?: number;
3967
- readonly columnIndex?: number;
3968
- readonly cellIndex?: number;
3969
- readonly gridColumnStart?: number;
3970
- readonly gridSpan?: number;
3971
- readonly verticalMerge?: TableCellNode["verticalMerge"];
3972
- readonly rowCount?: number;
3973
- readonly columnCount?: number;
3974
- readonly rowCellCount?: number;
3975
- readonly blockCount?: number;
3976
- readonly fragment?: EditableTargetTableFragmentIdentity;
3977
- readonly cellFragment?: EditableTargetCellFragmentIdentity;
3978
- }
3979
- type EditableTargetCanonicalAddressKind = "table-target" | "list-item-text" | "field-result" | "field-region-refresh" | "toc-region-refresh" | "hyperlink-display-text" | "hyperlink-destination" | "bookmark-anchor" | "bookmark-content-range";
3980
- interface EditableTargetCanonicalAddress {
3981
- /**
3982
- * Opaque target-specific join key for consumers. It is derived from story,
3983
- * source identity, and semantic range facts without publishing raw block,
3984
- * leaf, table path, or OOXML cell-path strings as the command contract.
3985
- */
3986
- readonly addressKey: string;
3987
- readonly addressKind: EditableTargetCanonicalAddressKind;
3988
- readonly storyKey: string;
3989
- readonly staleCheckKind: EditableTargetStaleCheck["blockType"];
3990
- readonly operationScope?: EditableTargetTableIdentity["operationScope"] | "list-text" | "field-refresh" | "toc-refresh" | "link-destination" | "bookmark-range";
3991
- readonly rowRange?: EditableTargetTableRange;
3992
- readonly columnRange?: EditableTargetTableRange;
3993
- readonly sourceJoinHash?: string;
3994
- readonly secondaryStory?: boolean;
3995
- readonly nestedTable?: boolean;
3996
- readonly insideSdt?: boolean;
3997
- readonly resolver?: EditableTargetCanonicalAddressResolverMetadata;
3998
- }
3999
- interface EditableTargetAddressRangeBoundary {
4000
- readonly boundaryKind: "table-grid" | "cell-fragment" | "list-item-text" | "field-result" | "field-region" | "hyperlink-display" | "bookmark-content" | "hyperlink-destination" | "bookmark-anchor";
4001
- readonly from?: number;
4002
- readonly to?: number;
4003
- readonly startSourceJoinHash?: string;
4004
- readonly endSourceJoinHash?: string;
4005
- }
4006
- interface EditableTargetOwnerAddressRouting {
4007
- readonly addressKey: string;
4008
- readonly addressKind: EditableTargetCanonicalAddressKind;
4009
- readonly storyKey: string;
4010
- readonly operationScope?: EditableTargetCanonicalAddress["operationScope"];
4011
- readonly sourceJoinHash?: string;
4012
- readonly staleHash: string;
4013
- readonly rowRange?: EditableTargetTableRange;
4014
- readonly columnRange?: EditableTargetTableRange;
4015
- }
4016
- interface EditableTargetCanonicalAddressResolverMetadata {
4017
- readonly staleHash: string;
4018
- readonly sourceJoinHash?: string;
4019
- readonly rowRange?: EditableTargetTableRange;
4020
- readonly columnRange?: EditableTargetTableRange;
4021
- readonly rangeBoundary?: EditableTargetAddressRangeBoundary;
4022
- readonly owner?: EditableTargetOwnerAddressRouting;
4023
- }
4024
- interface EditableTargetOwnerIdentity {
4025
- readonly targetKey: string;
4026
- readonly kind: EditableTargetKind;
4027
- readonly storyKey: string;
4028
- readonly blockPath: string;
4029
- readonly leafPath: string;
4030
- readonly commandFamily: "text-leaf";
4031
- readonly reason: "vertical-merge-restart-cell";
4032
- readonly canonicalAddress?: EditableTargetOwnerAddressRouting;
4033
- readonly table?: {
4034
- readonly tableKey: string;
4035
- readonly tablePath: string;
4036
- readonly sourceRef?: CanonicalSourceRef;
4037
- readonly rowSourceRef?: CanonicalSourceRef;
4038
- readonly cellSourceRef?: CanonicalSourceRef;
4039
- readonly rowIndex?: number;
4040
- readonly cellIndex?: number;
4041
- readonly gridColumnStart?: number;
4042
- readonly gridSpan?: number;
4043
- readonly verticalMerge?: TableCellNode["verticalMerge"];
4044
- };
4045
- }
4046
- interface EditableTargetRef {
4047
- readonly targetKey: string;
4048
- readonly kind: EditableTargetKind;
4049
- readonly storyKey: string;
4050
- readonly blockPath: string;
4051
- readonly leafPath: string;
4052
- readonly commandFamily: EditableTargetCommandFamily;
4053
- readonly editability: EditableTargetEditability;
4054
- readonly sourceRef?: CanonicalSourceRef;
4055
- readonly contentControl?: EditableTargetContentControlIdentity;
4056
- readonly field?: EditableTargetFieldIdentity;
4057
- readonly link?: EditableTargetLinkIdentity;
4058
- readonly review?: EditableTargetReviewIdentity;
4059
- readonly object?: EditableTargetObjectIdentity;
4060
- readonly table?: EditableTargetTableIdentity;
4061
- readonly editableOwner?: EditableTargetOwnerIdentity;
4062
- readonly canonicalAddress?: EditableTargetCanonicalAddress;
4063
- readonly staleCheck: EditableTargetStaleCheck;
4064
- readonly posture: EditableTargetPosture;
4065
- }
4066
- type CanonicalAnchorObjectKind = "legacy-image" | "picture" | "shape" | "textbox" | "chart" | "smartart" | "opaque";
4067
-
4068
4113
  /**
4069
4114
  * Layer 05 — Geometry Projection — type surface.
4070
4115
  *
@@ -5837,6 +5882,7 @@ interface CommandExecutionContext {
5837
5882
  * callers that cannot produce it.
5838
5883
  */
5839
5884
  renderSnapshot?: RuntimeRenderSnapshot;
5885
+ activeStorySize?: number;
5840
5886
  textTarget?: TextTransactionTextTarget;
5841
5887
  rejectTargetlessTableStructureInsert?: boolean;
5842
5888
  }
@@ -9215,6 +9261,8 @@ interface V3PageLocalStoryObject {
9215
9261
  readonly widthTwips: number;
9216
9262
  readonly heightTwips: number;
9217
9263
  };
9264
+ readonly anchorRectTwips?: V3TwipsRect;
9265
+ readonly textBoxBody?: PublicStoryAnchoredObject["textBoxBody"];
9218
9266
  readonly relationshipIds?: readonly string[];
9219
9267
  readonly mediaIds?: readonly string[];
9220
9268
  readonly preserveOnly: boolean;
@@ -14003,6 +14051,8 @@ interface SurfaceTextBoxBodySnapshot {
14003
14051
  interface SurfaceTextBoxParagraphSnapshot {
14004
14052
  sourceRef?: CanonicalSourceRef;
14005
14053
  blockIndex: number;
14054
+ /** Modeled text-box paragraph target. Present only when the nested body can route through runtime text commands. */
14055
+ editableTarget?: EditableTargetRef;
14006
14056
  text: string;
14007
14057
  textLength: number;
14008
14058
  borders?: ParagraphBorders;