@beyondwork/docx-react-component 1.0.128 → 1.0.130

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 (108) hide show
  1. package/dist/api/public-types.cjs +809 -78
  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 +4 -4
  5. package/dist/api/v3.cjs +2059 -402
  6. package/dist/api/v3.d.cts +3 -3
  7. package/dist/api/v3.d.ts +3 -3
  8. package/dist/api/v3.js +13 -13
  9. package/dist/{canonical-document-CXCFCbAz.d.cts → canonical-document-BMtONpgf.d.cts} +6 -0
  10. package/dist/{canonical-document-CXCFCbAz.d.ts → canonical-document-BMtONpgf.d.ts} +6 -0
  11. package/dist/{chunk-MWSBGJQO.js → chunk-35RHOE6I.js} +105 -4
  12. package/dist/{chunk-2QL5DAKF.js → chunk-3YCQM2RV.js} +6 -6
  13. package/dist/{chunk-ESJ2MES5.js → chunk-4YCWECLZ.js} +1 -1
  14. package/dist/{chunk-4EENH4FG.js → chunk-6TBLDBCL.js} +1 -1
  15. package/dist/{chunk-XRACP43Q.js → chunk-7G5GR3VV.js} +469 -32
  16. package/dist/{chunk-CXSYRB37.js → chunk-A3GSNB4G.js} +183 -55
  17. package/dist/{chunk-5DGKFNQT.js → chunk-A66ZVUAT.js} +150 -1
  18. package/dist/{chunk-YIYM4ZAP.js → chunk-CI2TD3T4.js} +1 -1
  19. package/dist/{chunk-TQDQU2E3.js → chunk-DGA7M77X.js} +2 -2
  20. package/dist/{chunk-EB6M3GE6.js → chunk-FM4K4XFJ.js} +100 -97
  21. package/dist/{chunk-D5HYZQTG.js → chunk-HYHCRMR7.js} +1 -1
  22. package/dist/{chunk-6F5QW44A.js → chunk-KNHMXKC6.js} +2 -2
  23. package/dist/{chunk-4YJVRIUB.js → chunk-M7YRJX6V.js} +61 -29
  24. package/dist/{chunk-KFCQYZXR.js → chunk-OVLZQ6FZ.js} +61 -0
  25. package/dist/{chunk-BYSRJ4FE.js → chunk-PHMWH23E.js} +1 -1
  26. package/dist/{chunk-ZDOAUP3V.js → chunk-Q7Y57KOK.js} +2 -2
  27. package/dist/{chunk-LZVBNDGU.js → chunk-QXKQPUOM.js} +3 -3
  28. package/dist/{chunk-CX42VC67.js → chunk-SYQWQ6FE.js} +1 -1
  29. package/dist/{chunk-KV435YXO.js → chunk-T5YYFDZB.js} +1 -1
  30. package/dist/{chunk-YHZHPXDB.js → chunk-THVM6EP5.js} +419 -24
  31. package/dist/{chunk-V6XVZFFH.js → chunk-VRKK2CSZ.js} +111 -90
  32. package/dist/{chunk-OL2UEHRP.js → chunk-WUDSNHWF.js} +1 -1
  33. package/dist/{chunk-LCYYR57Q.js → chunk-WZDKNF37.js} +666 -107
  34. package/dist/{chunk-6EROGFUF.js → chunk-YLL7MF5C.js} +444 -131
  35. package/dist/{chunk-YD2JE54B.js → chunk-ZVC23LKV.js} +1 -1
  36. package/dist/compare.cjs +100 -97
  37. package/dist/compare.d.cts +1 -1
  38. package/dist/compare.d.ts +1 -1
  39. package/dist/compare.js +3 -3
  40. package/dist/core/commands/formatting-commands.d.cts +2 -2
  41. package/dist/core/commands/formatting-commands.d.ts +2 -2
  42. package/dist/core/commands/image-commands.cjs +182 -54
  43. package/dist/core/commands/image-commands.d.cts +2 -2
  44. package/dist/core/commands/image-commands.d.ts +2 -2
  45. package/dist/core/commands/image-commands.js +5 -5
  46. package/dist/core/commands/section-layout-commands.d.cts +2 -2
  47. package/dist/core/commands/section-layout-commands.d.ts +2 -2
  48. package/dist/core/commands/style-commands.d.cts +2 -2
  49. package/dist/core/commands/style-commands.d.ts +2 -2
  50. package/dist/core/commands/table-structure-commands.cjs +182 -54
  51. package/dist/core/commands/table-structure-commands.d.cts +2 -2
  52. package/dist/core/commands/table-structure-commands.d.ts +2 -2
  53. package/dist/core/commands/table-structure-commands.js +4 -4
  54. package/dist/core/commands/text-commands.cjs +182 -54
  55. package/dist/core/commands/text-commands.d.cts +2 -2
  56. package/dist/core/commands/text-commands.d.ts +2 -2
  57. package/dist/core/commands/text-commands.js +5 -5
  58. package/dist/core/selection/mapping.d.cts +2 -2
  59. package/dist/core/selection/mapping.d.ts +2 -2
  60. package/dist/core/state/editor-state.d.cts +2 -2
  61. package/dist/core/state/editor-state.d.ts +2 -2
  62. package/dist/index.cjs +2765 -557
  63. package/dist/index.d.cts +5 -5
  64. package/dist/index.d.ts +5 -5
  65. package/dist/index.js +52 -28
  66. package/dist/io/docx-session.cjs +267 -211
  67. package/dist/io/docx-session.d.cts +4 -4
  68. package/dist/io/docx-session.d.ts +4 -4
  69. package/dist/io/docx-session.js +6 -6
  70. package/dist/legal.cjs +9 -20
  71. package/dist/legal.d.cts +1 -1
  72. package/dist/legal.d.ts +1 -1
  73. package/dist/legal.js +3 -3
  74. package/dist/{loader-19ct2Be0.d.ts → loader-B-aL5HGD.d.ts} +3 -3
  75. package/dist/{loader-CoXQ2wGd.d.cts → loader-DiY_ZgKl.d.cts} +3 -3
  76. package/dist/{measurement-backend-canvas-Q3MJMEYX.js → measurement-backend-canvas-F7ZYDACK.js} +1 -1
  77. package/dist/{public-types-B-CskQen.d.cts → public-types-DyqnxxO9.d.ts} +252 -2
  78. package/dist/{public-types-7KZsNGE2.d.ts → public-types-gvubspUI.d.cts} +252 -2
  79. package/dist/public-types.cjs +809 -78
  80. package/dist/public-types.d.cts +2 -2
  81. package/dist/public-types.d.ts +2 -2
  82. package/dist/public-types.js +4 -4
  83. package/dist/runtime/collab.d.cts +3 -3
  84. package/dist/runtime/collab.d.ts +3 -3
  85. package/dist/runtime/document-runtime.cjs +1887 -313
  86. package/dist/runtime/document-runtime.d.cts +2 -2
  87. package/dist/runtime/document-runtime.d.ts +2 -2
  88. package/dist/runtime/document-runtime.js +17 -17
  89. package/dist/{session-B5015J4v.d.cts → session-BUN6B-Vj.d.cts} +3 -3
  90. package/dist/{session-C2i8-d6v.d.ts → session-CDB0hohT.d.ts} +3 -3
  91. package/dist/session.cjs +267 -211
  92. package/dist/session.d.cts +5 -5
  93. package/dist/session.d.ts +5 -5
  94. package/dist/session.js +7 -7
  95. package/dist/tailwind.cjs +809 -78
  96. package/dist/tailwind.d.cts +2 -2
  97. package/dist/tailwind.d.ts +2 -2
  98. package/dist/tailwind.js +8 -8
  99. package/dist/{types-DNhN0WeN.d.cts → types-C4bz3kDU.d.cts} +2 -2
  100. package/dist/{types-yvrQuGX9.d.ts → types-VWH6CRvG.d.ts} +2 -2
  101. package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
  102. package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
  103. package/dist/ui-tailwind/editor-surface/search-plugin.js +5 -5
  104. package/dist/ui-tailwind.cjs +809 -78
  105. package/dist/ui-tailwind.d.cts +3 -3
  106. package/dist/ui-tailwind.d.ts +3 -3
  107. package/dist/ui-tailwind.js +8 -8
  108. package/package.json +1 -1
@@ -3430,12 +3430,13 @@ function getLevelStartAt(level, levelDefinitions) {
3430
3430
  return levelDefinitions.get(level)?.startAt ?? DEFAULT_NUMBERING_START_AT;
3431
3431
  }
3432
3432
  function getNumberingFormatPosture(format, value) {
3433
- if (!isSupportedNumberingFormat(format)) {
3433
+ const registryEntry = getNumberingFormatRegistryEntry(format);
3434
+ if (!registryEntry || registryEntry.renderSupport === "approximated") {
3434
3435
  return {
3435
3436
  status: "approximated",
3436
3437
  requestedFormat: format,
3437
3438
  renderedFormat: "decimal",
3438
- reason: "unsupported-numbering-format-decimal-fallback"
3439
+ reason: registryEntry?.fallbackReason ?? "unsupported-numbering-format-decimal-fallback"
3439
3440
  };
3440
3441
  }
3441
3442
  if (value !== void 0 && ((format === "upperRoman" || format === "lowerRoman") && (value <= 0 || value >= 4e3) || (format === "cardinalText" || format === "ordinalText") && (!Number.isInteger(value) || value < 1 || value > 999) || (format === "upperLetter" || format === "lowerLetter" || format === "chicago") && value < 1)) {
@@ -3466,56 +3467,148 @@ function renderLevelText(text, counters, levelDefinitions) {
3466
3467
  });
3467
3468
  return rendered.trim().length > 0 ? rendered : null;
3468
3469
  }
3469
- var SUPPORTED_NUMBERING_FORMATS = /* @__PURE__ */ new Set([
3470
- "decimal",
3471
- "decimalZero",
3472
- "upperLetter",
3473
- "lowerLetter",
3474
- "upperRoman",
3475
- "lowerRoman",
3476
- "hex",
3477
- "ordinal",
3478
- "cardinalText",
3479
- "ordinalText",
3480
- "chicago",
3481
- "bullet",
3482
- "none"
3483
- ]);
3484
3470
  function isSupportedNumberingFormat(format) {
3485
- return SUPPORTED_NUMBERING_FORMATS.has(format);
3471
+ return getNumberingFormatRegistryEntry(format)?.renderSupport === "supported";
3472
+ }
3473
+ function getNumberingFormatRegistryEntry(format) {
3474
+ return NUMBERING_FORMAT_REGISTRY.get(format);
3486
3475
  }
3487
3476
  function formatCounter(value, format) {
3488
- switch (format) {
3489
- case "decimal":
3490
- return String(value);
3491
- case "decimalZero":
3492
- return String(value).padStart(2, "0");
3493
- case "upperLetter":
3494
- return toAlphabetic2(value).toUpperCase();
3495
- case "lowerLetter":
3496
- return toAlphabetic2(value).toLowerCase();
3497
- case "upperRoman":
3498
- return toRoman2(value).toUpperCase();
3499
- case "lowerRoman":
3500
- return toRoman2(value).toLowerCase();
3501
- case "hex":
3502
- return value >= 0 ? value.toString(16).toUpperCase() : String(value);
3503
- case "ordinal":
3504
- return toOrdinal2(value);
3505
- case "cardinalText":
3506
- return toCardinalText2(value);
3507
- case "ordinalText":
3508
- return toOrdinalText2(value);
3509
- case "chicago":
3510
- return toChicago2(value);
3511
- case "bullet":
3512
- return "";
3513
- case "none":
3514
- return "";
3515
- default:
3516
- return String(value);
3477
+ return getNumberingFormatRegistryEntry(format)?.render(value) ?? String(value);
3478
+ }
3479
+ var exactNumberingFormatEntries = [
3480
+ {
3481
+ format: "decimal",
3482
+ renderSupport: "supported",
3483
+ renderedFormat: "decimal",
3484
+ supportsMutation: true,
3485
+ render: (value) => String(value)
3486
+ },
3487
+ {
3488
+ format: "decimalZero",
3489
+ renderSupport: "supported",
3490
+ renderedFormat: "decimalZero",
3491
+ supportsMutation: true,
3492
+ render: (value) => String(value).padStart(2, "0")
3493
+ },
3494
+ {
3495
+ format: "upperLetter",
3496
+ renderSupport: "supported",
3497
+ renderedFormat: "upperLetter",
3498
+ supportsMutation: true,
3499
+ render: (value) => toAlphabetic2(value).toUpperCase()
3500
+ },
3501
+ {
3502
+ format: "lowerLetter",
3503
+ renderSupport: "supported",
3504
+ renderedFormat: "lowerLetter",
3505
+ supportsMutation: true,
3506
+ render: (value) => toAlphabetic2(value).toLowerCase()
3507
+ },
3508
+ {
3509
+ format: "upperRoman",
3510
+ renderSupport: "supported",
3511
+ renderedFormat: "upperRoman",
3512
+ supportsMutation: true,
3513
+ render: (value) => toRoman2(value).toUpperCase()
3514
+ },
3515
+ {
3516
+ format: "lowerRoman",
3517
+ renderSupport: "supported",
3518
+ renderedFormat: "lowerRoman",
3519
+ supportsMutation: true,
3520
+ render: (value) => toRoman2(value).toLowerCase()
3521
+ },
3522
+ {
3523
+ format: "hex",
3524
+ renderSupport: "supported",
3525
+ renderedFormat: "hex",
3526
+ supportsMutation: true,
3527
+ render: (value) => value >= 0 ? value.toString(16).toUpperCase() : String(value)
3528
+ },
3529
+ {
3530
+ format: "ordinal",
3531
+ renderSupport: "supported",
3532
+ renderedFormat: "ordinal",
3533
+ supportsMutation: true,
3534
+ render: toOrdinal2
3535
+ },
3536
+ {
3537
+ format: "cardinalText",
3538
+ renderSupport: "supported",
3539
+ renderedFormat: "cardinalText",
3540
+ supportsMutation: true,
3541
+ render: toCardinalText2
3542
+ },
3543
+ {
3544
+ format: "ordinalText",
3545
+ renderSupport: "supported",
3546
+ renderedFormat: "ordinalText",
3547
+ supportsMutation: true,
3548
+ render: toOrdinalText2
3549
+ },
3550
+ {
3551
+ format: "chicago",
3552
+ renderSupport: "supported",
3553
+ renderedFormat: "chicago",
3554
+ supportsMutation: true,
3555
+ render: toChicago2
3556
+ },
3557
+ {
3558
+ format: "bullet",
3559
+ renderSupport: "supported",
3560
+ renderedFormat: "bullet",
3561
+ supportsMutation: true,
3562
+ render: () => ""
3563
+ },
3564
+ {
3565
+ format: "none",
3566
+ renderSupport: "supported",
3567
+ renderedFormat: "none",
3568
+ supportsMutation: true,
3569
+ render: () => ""
3517
3570
  }
3518
- }
3571
+ ];
3572
+ var approximatedDecimalFormats = [
3573
+ "decimalEnclosedCircle",
3574
+ "decimalEnclosedFullstop",
3575
+ "decimalEnclosedParen",
3576
+ "decimalFullWidth",
3577
+ "decimalHalfWidth",
3578
+ "aiueo",
3579
+ "iroha",
3580
+ "ganada",
3581
+ "chosung",
3582
+ "russianLower",
3583
+ "russianUpper",
3584
+ "hebrew1",
3585
+ "hebrew2",
3586
+ "arabicAlpha",
3587
+ "arabicAbjad",
3588
+ "thaiLetters",
3589
+ "thaiNumbers",
3590
+ "hindiLetters",
3591
+ "hindiNumbers",
3592
+ "ideographDigital",
3593
+ "ideographTraditional",
3594
+ "chineseCounting",
3595
+ "japaneseCounting",
3596
+ "japaneseLegal"
3597
+ ];
3598
+ var approximatedNumberingFormatEntries = approximatedDecimalFormats.map((format) => ({
3599
+ format,
3600
+ renderSupport: "approximated",
3601
+ renderedFormat: "decimal",
3602
+ supportsMutation: false,
3603
+ fallbackReason: "unsupported-numbering-format-decimal-fallback",
3604
+ render: (value) => String(value)
3605
+ }));
3606
+ var NUMBERING_FORMAT_REGISTRY = new Map(
3607
+ [...exactNumberingFormatEntries, ...approximatedNumberingFormatEntries].map((entry) => [
3608
+ entry.format,
3609
+ entry
3610
+ ])
3611
+ );
3519
3612
  function toOrdinal2(value) {
3520
3613
  if (value <= 0) return String(value);
3521
3614
  const lastTwo = value % 100;
@@ -4169,12 +4262,36 @@ var DEFAULT_HYPERLINK_COLOR_HEX = "0563C1";
4169
4262
  function resolveHyperlinkRunFormatting(input, catalog, resolver) {
4170
4263
  const augmentedInput = input.characterStyleId === void 0 ? { ...input, characterStyleId: HYPERLINK_CHARACTER_STYLE_ID } : input;
4171
4264
  const cascade = resolveEffectiveRunFormatting(augmentedInput, catalog);
4172
- const resolvedColor = resolveHyperlinkColorHex(cascade, resolver);
4265
+ const resolvedColor = resolveHyperlinkColorHex(
4266
+ stripInheritedColorHexForImplicitHyperlink(input, catalog, cascade),
4267
+ resolver
4268
+ );
4173
4269
  if (resolvedColor && resolvedColor !== cascade.colorHex) {
4174
4270
  return { ...cascade, colorHex: resolvedColor };
4175
4271
  }
4176
4272
  return cascade;
4177
4273
  }
4274
+ function hasDirectNonAutoColor(input) {
4275
+ return Boolean(input.direct?.colorHex && input.direct.colorHex !== "auto");
4276
+ }
4277
+ function characterStyleDeclaresColorHex(styleId, catalog) {
4278
+ if (!catalog) return false;
4279
+ const chain = resolveCharacterStyleChain(styleId, catalog);
4280
+ return chain.some((chainStyleId) => {
4281
+ const colorHex = catalog.characters[chainStyleId]?.runProperties?.colorHex;
4282
+ return Boolean(colorHex && colorHex !== "auto");
4283
+ });
4284
+ }
4285
+ function stripInheritedColorHexForImplicitHyperlink(originalInput, catalog, cascade) {
4286
+ if (originalInput.characterStyleId !== void 0 || hasDirectNonAutoColor(originalInput) || !cascade.colorHex || cascade.colorHex === "auto" || characterStyleDeclaresColorHex(HYPERLINK_CHARACTER_STYLE_ID, catalog)) {
4287
+ return cascade;
4288
+ }
4289
+ const inheritedCascade = resolveEffectiveRunFormatting(originalInput, catalog);
4290
+ if (inheritedCascade.colorHex !== cascade.colorHex) {
4291
+ return cascade;
4292
+ }
4293
+ return { ...cascade, colorHex: void 0 };
4294
+ }
4178
4295
  function resolveHyperlinkColorHex(cascade, resolver) {
4179
4296
  if (cascade.colorHex && cascade.colorHex !== "auto") {
4180
4297
  return cascade.colorHex;
@@ -4932,6 +5049,7 @@ function createEditorSurfaceSnapshot(document, _selection, activeStory = { kind:
4932
5049
  ...options.authorColorPalette ? { authorColorPalette: options.authorColorPalette } : {}
4933
5050
  });
4934
5051
  const editableTargetsByBlockPath = options.editableTargetsByBlockPath ?? indexEditableTargetsByBlockPath(document);
5052
+ const layoutIdentitiesByBlockPath = options.layoutIdentitiesByBlockPath;
4935
5053
  const activeStoryBlockPathBase = getActiveStoryBlockPathBase(document, activeStory);
4936
5054
  chartModelStore.beginBuildPass(document);
4937
5055
  const unsupportedNumberingFormatsSeen = options.emitFormattingTelemetry ? /* @__PURE__ */ new Set() : null;
@@ -4955,6 +5073,7 @@ function createEditorSurfaceSnapshot(document, _selection, activeStory = { kind:
4955
5073
  activeStory.kind !== "main",
4956
5074
  !isInViewport,
4957
5075
  editableTargetsByBlockPath,
5076
+ layoutIdentitiesByBlockPath,
4958
5077
  `${activeStoryBlockPathBase}/block[${index}]`
4959
5078
  );
4960
5079
  if (isInViewport) {
@@ -5021,7 +5140,7 @@ function isIndexInAnyRange(index, ranges) {
5021
5140
  }
5022
5141
  return false;
5023
5142
  }
5024
- function createSurfaceBlock(block, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, blockPath) {
5143
+ function createSurfaceBlock(block, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, layoutIdentitiesByBlockPath, blockPath) {
5025
5144
  if (block.type === "opaque_block") {
5026
5145
  const fragment = getOpaqueFragment(document.preservation, block.fragmentId);
5027
5146
  const descriptor = fragment ? describeOpaqueFragment(fragment) : null;
@@ -5058,6 +5177,7 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
5058
5177
  promoteSecondaryStoryTextBoxes,
5059
5178
  cullBuild,
5060
5179
  editableTargetsByBlockPath,
5180
+ layoutIdentitiesByBlockPath,
5061
5181
  blockPath
5062
5182
  );
5063
5183
  }
@@ -5098,6 +5218,7 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
5098
5218
  promoteSecondaryStoryTextBoxes,
5099
5219
  cullBuild,
5100
5220
  editableTargetsByBlockPath,
5221
+ layoutIdentitiesByBlockPath,
5101
5222
  blockPath
5102
5223
  );
5103
5224
  }
@@ -5180,10 +5301,11 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
5180
5301
  cullBuild,
5181
5302
  editableTargetsByBlockPath,
5182
5303
  blockPath,
5183
- blockPath !== void 0 ? editableTargetsByBlockPath.get(blockPath) : void 0
5304
+ blockPath !== void 0 ? editableTargetsByBlockPath.get(blockPath) : void 0,
5305
+ blockPath !== void 0 ? layoutIdentitiesByBlockPath?.get(blockPath) : void 0
5184
5306
  );
5185
5307
  }
5186
- function createTableBlock(tableIndex, table, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, tablePath) {
5308
+ function createTableBlock(tableIndex, table, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, layoutIdentitiesByBlockPath, tablePath) {
5187
5309
  const lockedFragmentIds = [];
5188
5310
  let innerCursor = cursor;
5189
5311
  if (cullBuild) {
@@ -5200,6 +5322,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
5200
5322
  promoteSecondaryStoryTextBoxes,
5201
5323
  true,
5202
5324
  editableTargetsByBlockPath,
5325
+ layoutIdentitiesByBlockPath,
5203
5326
  tablePath !== void 0 ? `${tablePath}/row[${rowIndex}]/cell[${cellIndex}]/block[${childIndex}]` : void 0
5204
5327
  );
5205
5328
  lockedFragmentIds.push(...result.lockedFragmentIds);
@@ -5215,6 +5338,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
5215
5338
  to: innerCursor,
5216
5339
  styleId: table.styleId,
5217
5340
  ...table.sourceRef !== void 0 ? { sourceRef: table.sourceRef } : {},
5341
+ ...tablePath !== void 0 && layoutIdentitiesByBlockPath?.get(tablePath) !== void 0 ? { layoutIdentity: layoutIdentitiesByBlockPath.get(tablePath) } : {},
5218
5342
  gridColumns: table.gridColumns,
5219
5343
  rows: []
5220
5344
  },
@@ -5252,6 +5376,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
5252
5376
  promoteSecondaryStoryTextBoxes,
5253
5377
  cullBuild,
5254
5378
  editableTargetsByBlockPath,
5379
+ layoutIdentitiesByBlockPath,
5255
5380
  tablePath !== void 0 ? `${tablePath}/row[${rowIndex}]/cell[${cellIndex}]/block[${childIndex}]` : void 0
5256
5381
  );
5257
5382
  cellContent.push(result.block);
@@ -5340,6 +5465,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
5340
5465
  to: innerCursor,
5341
5466
  styleId: table.styleId,
5342
5467
  ...table.sourceRef !== void 0 ? { sourceRef: table.sourceRef } : {},
5468
+ ...tablePath !== void 0 && layoutIdentitiesByBlockPath?.get(tablePath) !== void 0 ? { layoutIdentity: layoutIdentitiesByBlockPath.get(tablePath) } : {},
5343
5469
  gridColumns: table.gridColumns,
5344
5470
  ...gridColumnsRelative ? { gridColumnsRelative } : {},
5345
5471
  ...resolvedTable.table?.alignment ? { alignment: resolvedTable.table.alignment } : {},
@@ -5527,7 +5653,7 @@ function resolveCellBorderStyles(borders, tableBorders, position) {
5527
5653
  if (left) result.borderLeft = left;
5528
5654
  return result;
5529
5655
  }
5530
- function createSdtBlock(sdtIndex, block, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, sdtPath) {
5656
+ function createSdtBlock(sdtIndex, block, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, layoutIdentitiesByBlockPath, sdtPath) {
5531
5657
  const children = [];
5532
5658
  const lockedFragmentIds = [];
5533
5659
  let innerCursor = cursor;
@@ -5544,6 +5670,7 @@ function createSdtBlock(sdtIndex, block, document, cursor, counters, formattingC
5544
5670
  promoteSecondaryStoryTextBoxes,
5545
5671
  cullBuild,
5546
5672
  editableTargetsByBlockPath,
5673
+ layoutIdentitiesByBlockPath,
5547
5674
  sdtPath !== void 0 ? `${sdtPath}/block[${childIndex}]` : void 0
5548
5675
  );
5549
5676
  children.push(result.block);
@@ -5586,7 +5713,7 @@ function getRecursableSdtBlockedReasonCode(block) {
5586
5713
  ].filter(Boolean).join(" ").toLowerCase();
5587
5714
  return searchText.includes("table of contents") || /\btoc\b/u.test(searchText) ? "workflow_preserve_only" : null;
5588
5715
  }
5589
- function createParagraphBlock(paragraphIndex, paragraph, document, start, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, blockPath, editableTarget) {
5716
+ function createParagraphBlock(paragraphIndex, paragraph, document, start, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, blockPath, editableTarget, layoutIdentity) {
5590
5717
  const themeResolver = formattingContext.theme;
5591
5718
  const effectiveNumbering = formattingContext.resolveEffectiveParagraphNumbering(paragraph);
5592
5719
  let resolvedNumbering = null;
@@ -5609,6 +5736,7 @@ function createParagraphBlock(paragraphIndex, paragraph, document, start, format
5609
5736
  from: start,
5610
5737
  to: start,
5611
5738
  ...editableTarget !== void 0 ? { editableTarget } : {},
5739
+ ...layoutIdentity !== void 0 ? { layoutIdentity } : {},
5612
5740
  ...paragraph.styleId ? { styleId: paragraph.styleId } : {},
5613
5741
  ...effectiveNumbering ? { numbering: effectiveNumbering } : {},
5614
5742
  ...resolvedNumbering ? {
@@ -1,5 +1,5 @@
1
- export { gr as CellLocator, gs as TableStructureOperation, gt as applyTableStructureOperation, gu as applyTableStructureOperationForEditableTarget, gv as getTableStructureContext, gw as removeCellFromRow, gx as removeTableRowPure, gy as tableStructureActionHandleForTarget } from '../../public-types-B-CskQen.cjs';
2
- import '../../canonical-document-CXCFCbAz.cjs';
1
+ export { gr as CellLocator, gs as TableStructureOperation, gt as applyTableStructureOperation, gu as applyTableStructureOperationForEditableTarget, gv as getTableStructureContext, gw as removeCellFromRow, gx as removeTableRowPure, gy as tableStructureActionHandleForTarget } from '../../public-types-gvubspUI.cjs';
2
+ import '../../canonical-document-BMtONpgf.cjs';
3
3
  import 'react';
4
4
  import 'yjs';
5
5
  import 'y-protocols/awareness';
@@ -1,5 +1,5 @@
1
- export { gr as CellLocator, gs as TableStructureOperation, gt as applyTableStructureOperation, gu as applyTableStructureOperationForEditableTarget, gv as getTableStructureContext, gw as removeCellFromRow, gx as removeTableRowPure, gy as tableStructureActionHandleForTarget } from '../../public-types-7KZsNGE2.js';
2
- import '../../canonical-document-CXCFCbAz.js';
1
+ export { gr as CellLocator, gs as TableStructureOperation, gt as applyTableStructureOperation, gu as applyTableStructureOperationForEditableTarget, gv as getTableStructureContext, gw as removeCellFromRow, gx as removeTableRowPure, gy as tableStructureActionHandleForTarget } from '../../public-types-DyqnxxO9.js';
2
+ import '../../canonical-document-BMtONpgf.js';
3
3
  import 'react';
4
4
  import 'yjs';
5
5
  import 'y-protocols/awareness';
@@ -5,11 +5,11 @@ import {
5
5
  removeCellFromRow,
6
6
  removeTableRowPure,
7
7
  tableStructureActionHandleForTarget
8
- } from "../../chunk-ZDOAUP3V.js";
9
- import "../../chunk-BYSRJ4FE.js";
10
- import "../../chunk-CXSYRB37.js";
8
+ } from "../../chunk-Q7Y57KOK.js";
9
+ import "../../chunk-PHMWH23E.js";
10
+ import "../../chunk-A3GSNB4G.js";
11
11
  import "../../chunk-OYGMRRR7.js";
12
- import "../../chunk-5DGKFNQT.js";
12
+ import "../../chunk-A66ZVUAT.js";
13
13
  import "../../chunk-UFVDIR2C.js";
14
14
  import "../../chunk-PGGPPZ65.js";
15
15
  import "../../chunk-DNXYUIIS.js";