@beyondwork/docx-react-component 1.0.122 → 1.0.124

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 +351 -56
  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-EMDH4IQN.js → chunk-4B74ETJI.js} +4 -3
  13. package/dist/{chunk-QNGJRZ2D.js → chunk-4IPEZYQX.js} +1 -1
  14. package/dist/{chunk-S4ANOS2M.js → chunk-7PC6XUNO.js} +2 -2
  15. package/dist/{chunk-TMU7JMXX.js → chunk-A74Y5NE4.js} +11 -15
  16. package/dist/{chunk-3OFSP2IX.js → chunk-BOHHIVQ2.js} +3 -3
  17. package/dist/{chunk-TFSXOIAI.js → chunk-FNWKE74J.js} +43 -3
  18. package/dist/{chunk-3TUQCHYT.js → chunk-H6IL5ABU.js} +47 -7
  19. package/dist/{chunk-GON2DNTE.js → chunk-HXHQA4BU.js} +1 -1
  20. package/dist/{chunk-3OHVK2D6.js → chunk-IR7QV2BX.js} +17 -1
  21. package/dist/{chunk-ZKSDVHGH.js → chunk-KOHQFZMM.js} +1 -1
  22. package/dist/{chunk-XVFENXLK.js → chunk-LGWNN3L2.js} +2 -2
  23. package/dist/{chunk-UHQOUTAX.js → chunk-MPH4ZQS4.js} +377 -50
  24. package/dist/{chunk-GZW2ERUO.js → chunk-N4VIXI2Z.js} +3 -3
  25. package/dist/{chunk-OBCP6VTG.js → chunk-NAMAWCXN.js} +1 -1
  26. package/dist/{chunk-QFU7ZOAD.js → chunk-PFYUJU3Q.js} +176 -36
  27. package/dist/{chunk-PCXTMEGY.js → chunk-Q76XPPTA.js} +24 -14
  28. package/dist/{chunk-37SEJQ3G.js → chunk-RSYN6FTS.js} +2 -2
  29. package/dist/{chunk-UWDWGQH5.js → chunk-TY4DIJO3.js} +1 -1
  30. package/dist/{chunk-IT2DK3A7.js → chunk-ZMRO6P3A.js} +9 -7
  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 +1198 -191
  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 +12 -15
  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 +10 -14
  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 +14 -612
  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
@@ -1,8 +1,8 @@
1
- import { C as CanonicalDocumentEnvelope, S as SelectionSnapshot, g as TransactionMapping } from '../../public-types-Dl1jiWjk.js';
1
+ import { C as CanonicalDocumentEnvelope, S as SelectionSnapshot, g as TransactionMapping } from '../../public-types-CNnMHZM9.js';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
5
- import '../../canonical-document-ByIqTd4s.js';
5
+ import '../../canonical-document-CG2TgAzj.js';
6
6
  import 'prosemirror-state';
7
7
  import 'prosemirror-model';
8
8
 
@@ -2,13 +2,13 @@ import {
2
2
  insertImage,
3
3
  repositionFloatingImage,
4
4
  resizeImage
5
- } from "../../chunk-37SEJQ3G.js";
6
- import "../../chunk-3OHVK2D6.js";
7
- import "../../chunk-ZKSDVHGH.js";
5
+ } from "../../chunk-RSYN6FTS.js";
6
+ import "../../chunk-IR7QV2BX.js";
7
+ import "../../chunk-KOHQFZMM.js";
8
8
  import "../../chunk-QIO6V46H.js";
9
- import "../../chunk-3TUQCHYT.js";
9
+ import "../../chunk-H6IL5ABU.js";
10
10
  import "../../chunk-OYGMRRR7.js";
11
- import "../../chunk-TFSXOIAI.js";
11
+ import "../../chunk-FNWKE74J.js";
12
12
  import "../../chunk-UFVDIR2C.js";
13
13
  import "../../chunk-PGGPPZ65.js";
14
14
  import "../../chunk-DNXYUIIS.js";
@@ -1,5 +1,5 @@
1
- import { h as SelectionSnapshot, M as MarginPresetDefinition, i as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-D_y4Ptcj.cjs';
2
- import { C as CanonicalDocument, P as PageSize, a as PageMargins, b as ColumnProperties, c as PageNumbering } from '../../canonical-document-ByIqTd4s.cjs';
1
+ import { h as SelectionSnapshot, M as MarginPresetDefinition, i as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-DajNGKV4.cjs';
2
+ import { C as CanonicalDocument, P as PageSize, a as PageMargins, b as ColumnProperties, c as PageNumbering } from '../../canonical-document-CG2TgAzj.cjs';
3
3
  import 'react';
4
4
  import 'yjs';
5
5
  import 'y-protocols/awareness';
@@ -1,5 +1,5 @@
1
- import { h as SelectionSnapshot, M as MarginPresetDefinition, i as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-Dl1jiWjk.js';
2
- import { C as CanonicalDocument, P as PageSize, a as PageMargins, b as ColumnProperties, c as PageNumbering } from '../../canonical-document-ByIqTd4s.js';
1
+ import { h as SelectionSnapshot, M as MarginPresetDefinition, i as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-CNnMHZM9.js';
2
+ import { C as CanonicalDocument, P as PageSize, a as PageMargins, b as ColumnProperties, c as PageNumbering } from '../../canonical-document-CG2TgAzj.js';
3
3
  import 'react';
4
4
  import 'yjs';
5
5
  import 'y-protocols/awareness';
@@ -1,8 +1,8 @@
1
- import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-D_y4Ptcj.cjs';
1
+ import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-DajNGKV4.cjs';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
5
- import '../../canonical-document-ByIqTd4s.cjs';
5
+ import '../../canonical-document-CG2TgAzj.cjs';
6
6
  import 'prosemirror-state';
7
7
  import 'prosemirror-model';
8
8
 
@@ -1,8 +1,8 @@
1
- import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-Dl1jiWjk.js';
1
+ import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-CNnMHZM9.js';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
5
- import '../../canonical-document-ByIqTd4s.js';
5
+ import '../../canonical-document-CG2TgAzj.js';
6
6
  import 'prosemirror-state';
7
7
  import 'prosemirror-model';
8
8
 
@@ -303,12 +303,13 @@ function buildBlockCacheSignature(context, blockIndex) {
303
303
  owner?.targetKey ?? ""
304
304
  ].join("|");
305
305
  }
306
- function collectEditableTargetsInBlocks(blocks, context, targets, cache) {
306
+ function collectEditableTargetsInBlocks(blocks, context, targets, cache, blockIndexOffset = 0) {
307
307
  for (let blockIndex = 0; blockIndex < blocks.length; blockIndex += 1) {
308
308
  const block = blocks[blockIndex];
309
309
  if (!block) continue;
310
- const blockPath = `${context.basePath}/block[${blockIndex}]`;
311
- const signature = cache !== void 0 ? buildBlockCacheSignature(context, blockIndex) : "";
310
+ const absoluteBlockIndex = blockIndex + blockIndexOffset;
311
+ const blockPath = `${context.basePath}/block[${absoluteBlockIndex}]`;
312
+ const signature = cache !== void 0 ? buildBlockCacheSignature(context, absoluteBlockIndex) : "";
312
313
  if (cache !== void 0) {
313
314
  const cached = cache.get(block);
314
315
  if (cached !== void 0 && cached.blockPath === blockPath && cached.signature === signature) {
@@ -5133,6 +5134,8 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
5133
5134
  formattingContext,
5134
5135
  promoteSecondaryStoryTextBoxes,
5135
5136
  cullBuild,
5137
+ editableTargetsByBlockPath,
5138
+ blockPath,
5136
5139
  blockPath !== void 0 ? editableTargetsByBlockPath.get(blockPath) : void 0
5137
5140
  );
5138
5141
  }
@@ -5539,7 +5542,7 @@ function getRecursableSdtBlockedReasonCode(block) {
5539
5542
  ].filter(Boolean).join(" ").toLowerCase();
5540
5543
  return searchText.includes("table of contents") || /\btoc\b/u.test(searchText) ? "workflow_preserve_only" : null;
5541
5544
  }
5542
- function createParagraphBlock(paragraphIndex, paragraph, document, start, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTarget) {
5545
+ function createParagraphBlock(paragraphIndex, paragraph, document, start, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, blockPath, editableTarget) {
5543
5546
  const themeResolver = formattingContext.theme;
5544
5547
  const effectiveNumbering = formattingContext.resolveEffectiveParagraphNumbering(paragraph);
5545
5548
  let resolvedNumbering = null;
@@ -5604,6 +5607,8 @@ function createParagraphBlock(paragraphIndex, paragraph, document, start, format
5604
5607
  document,
5605
5608
  cursor,
5606
5609
  promoteSecondaryStoryTextBoxes,
5610
+ blockPath !== void 0 ? `${blockPath}/inline[${childIndex}]` : void 0,
5611
+ editableTargetsByBlockPath,
5607
5612
  void 0,
5608
5613
  cullBuild,
5609
5614
  themeResolver,
@@ -5660,7 +5665,7 @@ function isVisibleTocResultInline(node) {
5660
5665
  return false;
5661
5666
  }
5662
5667
  }
5663
- function appendInlineSegments(paragraph, node, document, start, promoteSecondaryStoryTextBoxes, hyperlinkHref, cullBuild = false, themeResolver, formattingContext) {
5668
+ function appendInlineSegments(paragraph, node, document, start, promoteSecondaryStoryTextBoxes, inlinePath, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, hyperlinkHref, cullBuild = false, themeResolver, formattingContext) {
5664
5669
  switch (node.type) {
5665
5670
  case "text": {
5666
5671
  const cloned = node.marks ? cloneMarks(node.marks) : { marks: [] };
@@ -5713,13 +5718,16 @@ function appendInlineSegments(paragraph, node, document, start, promoteSecondary
5713
5718
  return { nextCursor: start + 1, lockedFragmentIds: [] };
5714
5719
  case "hyperlink": {
5715
5720
  let cursor = start;
5716
- for (const child of node.children) {
5721
+ for (let childIndex = 0; childIndex < node.children.length; childIndex += 1) {
5722
+ const child = node.children[childIndex];
5717
5723
  const result = appendInlineSegments(
5718
5724
  paragraph,
5719
5725
  child,
5720
5726
  document,
5721
5727
  cursor,
5722
5728
  promoteSecondaryStoryTextBoxes,
5729
+ inlinePath !== void 0 ? `${inlinePath}/child[${childIndex}]` : void 0,
5730
+ editableTargetsByBlockPath,
5723
5731
  node.href,
5724
5732
  cullBuild,
5725
5733
  themeResolver,
@@ -5778,6 +5786,33 @@ function appendInlineSegments(paragraph, node, document, start, promoteSecondary
5778
5786
  if (isMicrosoftSensitivityLabelShape(node)) {
5779
5787
  return { nextCursor: start + 1, lockedFragmentIds: [] };
5780
5788
  }
5789
+ if (node.isTextBox && node.txbxBlocks !== void 0) {
5790
+ const txbxTextSegment = extractTxbxFirstTextSegment(node.txbxBlocks);
5791
+ const txbxText = txbxTextSegment?.text ?? node.text;
5792
+ const txbxBody = surfaceTextBoxBodyFromShape(
5793
+ node,
5794
+ void 0,
5795
+ inlinePath,
5796
+ editableTargetsByBlockPath
5797
+ );
5798
+ paragraph.segments.push({
5799
+ segmentId: `${paragraph.blockId}-segment-${paragraph.segments.length}`,
5800
+ kind: "shape",
5801
+ from: start,
5802
+ to: start + 1,
5803
+ label: "Text box",
5804
+ detail: createShapeDetail(node),
5805
+ ...node.geometry !== void 0 ? { geometry: node.geometry } : {},
5806
+ isTextBox: true,
5807
+ ...node.textBoxBody ? { textBoxBody: node.textBoxBody } : {},
5808
+ ...node.preserveOnlyObject ? { preserveOnlyObject: surfacePreserveOnlyObject(node.preserveOnlyObject) } : {},
5809
+ ...txbxText ? { txbxText } : {},
5810
+ ...txbxBody ? { txbxBody } : {},
5811
+ ...txbxTextSegment?.marks && txbxTextSegment.marks.length > 0 ? { txbxMarks: txbxTextSegment.marks } : {},
5812
+ ...txbxTextSegment?.markAttrs ? { txbxMarkAttrs: txbxTextSegment.markAttrs } : {}
5813
+ });
5814
+ return { nextCursor: start + 1, lockedFragmentIds: [] };
5815
+ }
5781
5816
  if (promoteSecondaryStoryTextBoxes && node.isTextBox && node.text) {
5782
5817
  return appendTextBoxSegment(
5783
5818
  paragraph,
@@ -5837,7 +5872,7 @@ function appendInlineSegments(paragraph, node, document, start, promoteSecondary
5837
5872
  const anchor = surfaceAnchorFromGeometry(node.anchor);
5838
5873
  const txbxTextSegment = c.isTextBox ? extractTxbxFirstTextSegment(c.txbxBlocks) : void 0;
5839
5874
  const txbxText = txbxTextSegment?.text ?? (c.isTextBox ? c.text : void 0);
5840
- const txbxBody = c.isTextBox ? surfaceTextBoxBodyFromShape(c, node.sourceRef) : void 0;
5875
+ const txbxBody = c.isTextBox ? surfaceTextBoxBodyFromShape(c, node.sourceRef, inlinePath, editableTargetsByBlockPath) : void 0;
5841
5876
  const surfaceFill = c.fill;
5842
5877
  paragraph.segments.push({
5843
5878
  segmentId: `${paragraph.blockId}-segment-${paragraph.segments.length}`,
@@ -6014,13 +6049,16 @@ function appendInlineSegments(paragraph, node, document, start, promoteSecondary
6014
6049
  const refHyperlinkHref = (node.fieldFamily === "REF" || node.fieldFamily === "PAGEREF" || node.fieldFamily === "NOTEREF") && node.switches?.hyperlink === true && node.fieldTarget ? `#${node.fieldTarget}` : void 0;
6015
6050
  let cursor = start;
6016
6051
  const lockedIds = [];
6017
- for (const child of node.children) {
6052
+ for (let childIndex = 0; childIndex < node.children.length; childIndex += 1) {
6053
+ const child = node.children[childIndex];
6018
6054
  const result = appendInlineSegments(
6019
6055
  paragraph,
6020
6056
  child,
6021
6057
  document,
6022
6058
  cursor,
6023
6059
  promoteSecondaryStoryTextBoxes,
6060
+ inlinePath !== void 0 ? `${inlinePath}/child[${childIndex}]` : void 0,
6061
+ editableTargetsByBlockPath,
6024
6062
  refHyperlinkHref ?? hyperlinkHref,
6025
6063
  cullBuild,
6026
6064
  themeResolver,
@@ -6267,7 +6305,7 @@ function extractTxbxFirstTextSegment(blocks) {
6267
6305
  }
6268
6306
  return void 0;
6269
6307
  }
6270
- function surfaceTextBoxBodyFromShape(shape, sourceRef) {
6308
+ function surfaceTextBoxBodyFromShape(shape, sourceRef, inlinePath, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH) {
6271
6309
  if (!shape.isTextBox && shape.txbxContentXml === void 0 && shape.txbxBlocks === void 0) {
6272
6310
  return void 0;
6273
6311
  }
@@ -6293,9 +6331,12 @@ function surfaceTextBoxBodyFromShape(shape, sourceRef) {
6293
6331
  (run, inlineIndex) => surfaceTextBoxRunFromLegacyRun(run, inlineIndex)
6294
6332
  ) ?? [];
6295
6333
  const text = runs.map((run) => run.text ?? "").join("");
6334
+ const blockPath = inlinePath !== void 0 ? `${inlinePath}/txbx/block[${blockIndex}]` : void 0;
6335
+ const editableTarget = blockPath !== void 0 ? editableTargetsByBlockPath.get(blockPath) : void 0;
6296
6336
  return [{
6297
6337
  ...block.sourceRef !== void 0 ? { sourceRef: block.sourceRef } : {},
6298
6338
  blockIndex,
6339
+ ...editableTarget !== void 0 ? { editableTarget } : {},
6299
6340
  text,
6300
6341
  textLength: Array.from(text).length,
6301
6342
  ...block.borders !== void 0 ? { borders: block.borders } : {},
@@ -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-D_y4Ptcj.cjs';
2
- import '../../canonical-document-ByIqTd4s.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-DajNGKV4.cjs';
2
+ import '../../canonical-document-CG2TgAzj.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-Dl1jiWjk.js';
2
- import '../../canonical-document-ByIqTd4s.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-CNnMHZM9.js';
2
+ import '../../canonical-document-CG2TgAzj.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-XVFENXLK.js";
9
- import "../../chunk-ZKSDVHGH.js";
10
- import "../../chunk-3TUQCHYT.js";
8
+ } from "../../chunk-LGWNN3L2.js";
9
+ import "../../chunk-KOHQFZMM.js";
10
+ import "../../chunk-H6IL5ABU.js";
11
11
  import "../../chunk-OYGMRRR7.js";
12
- import "../../chunk-TFSXOIAI.js";
12
+ import "../../chunk-FNWKE74J.js";
13
13
  import "../../chunk-UFVDIR2C.js";
14
14
  import "../../chunk-PGGPPZ65.js";
15
15
  import "../../chunk-DNXYUIIS.js";
@@ -973,12 +973,13 @@ function buildBlockCacheSignature(context, blockIndex) {
973
973
  owner?.targetKey ?? ""
974
974
  ].join("|");
975
975
  }
976
- function collectEditableTargetsInBlocks(blocks, context, targets, cache) {
976
+ function collectEditableTargetsInBlocks(blocks, context, targets, cache, blockIndexOffset = 0) {
977
977
  for (let blockIndex = 0; blockIndex < blocks.length; blockIndex += 1) {
978
978
  const block = blocks[blockIndex];
979
979
  if (!block) continue;
980
- const blockPath = `${context.basePath}/block[${blockIndex}]`;
981
- const signature = cache !== void 0 ? buildBlockCacheSignature(context, blockIndex) : "";
980
+ const absoluteBlockIndex = blockIndex + blockIndexOffset;
981
+ const blockPath = `${context.basePath}/block[${absoluteBlockIndex}]`;
982
+ const signature = cache !== void 0 ? buildBlockCacheSignature(context, absoluteBlockIndex) : "";
982
983
  if (cache !== void 0) {
983
984
  const cached = cache.get(block);
984
985
  if (cached !== void 0 && cached.blockPath === blockPath && cached.signature === signature) {
@@ -5644,6 +5645,8 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
5644
5645
  formattingContext,
5645
5646
  promoteSecondaryStoryTextBoxes,
5646
5647
  cullBuild,
5648
+ editableTargetsByBlockPath,
5649
+ blockPath,
5647
5650
  blockPath !== void 0 ? editableTargetsByBlockPath.get(blockPath) : void 0
5648
5651
  );
5649
5652
  }
@@ -6050,7 +6053,7 @@ function getRecursableSdtBlockedReasonCode(block) {
6050
6053
  ].filter(Boolean).join(" ").toLowerCase();
6051
6054
  return searchText.includes("table of contents") || /\btoc\b/u.test(searchText) ? "workflow_preserve_only" : null;
6052
6055
  }
6053
- function createParagraphBlock(paragraphIndex, paragraph, document, start, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTarget) {
6056
+ function createParagraphBlock(paragraphIndex, paragraph, document, start, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, blockPath, editableTarget) {
6054
6057
  const themeResolver = formattingContext.theme;
6055
6058
  const effectiveNumbering = formattingContext.resolveEffectiveParagraphNumbering(paragraph);
6056
6059
  let resolvedNumbering = null;
@@ -6115,6 +6118,8 @@ function createParagraphBlock(paragraphIndex, paragraph, document, start, format
6115
6118
  document,
6116
6119
  cursor,
6117
6120
  promoteSecondaryStoryTextBoxes,
6121
+ blockPath !== void 0 ? `${blockPath}/inline[${childIndex}]` : void 0,
6122
+ editableTargetsByBlockPath,
6118
6123
  void 0,
6119
6124
  cullBuild,
6120
6125
  themeResolver,
@@ -6171,7 +6176,7 @@ function isVisibleTocResultInline(node) {
6171
6176
  return false;
6172
6177
  }
6173
6178
  }
6174
- function appendInlineSegments(paragraph, node, document, start, promoteSecondaryStoryTextBoxes, hyperlinkHref, cullBuild = false, themeResolver, formattingContext) {
6179
+ function appendInlineSegments(paragraph, node, document, start, promoteSecondaryStoryTextBoxes, inlinePath, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, hyperlinkHref, cullBuild = false, themeResolver, formattingContext) {
6175
6180
  switch (node.type) {
6176
6181
  case "text": {
6177
6182
  const cloned = node.marks ? cloneMarks2(node.marks) : { marks: [] };
@@ -6224,13 +6229,16 @@ function appendInlineSegments(paragraph, node, document, start, promoteSecondary
6224
6229
  return { nextCursor: start + 1, lockedFragmentIds: [] };
6225
6230
  case "hyperlink": {
6226
6231
  let cursor = start;
6227
- for (const child of node.children) {
6232
+ for (let childIndex = 0; childIndex < node.children.length; childIndex += 1) {
6233
+ const child = node.children[childIndex];
6228
6234
  const result = appendInlineSegments(
6229
6235
  paragraph,
6230
6236
  child,
6231
6237
  document,
6232
6238
  cursor,
6233
6239
  promoteSecondaryStoryTextBoxes,
6240
+ inlinePath !== void 0 ? `${inlinePath}/child[${childIndex}]` : void 0,
6241
+ editableTargetsByBlockPath,
6234
6242
  node.href,
6235
6243
  cullBuild,
6236
6244
  themeResolver,
@@ -6289,6 +6297,33 @@ function appendInlineSegments(paragraph, node, document, start, promoteSecondary
6289
6297
  if (isMicrosoftSensitivityLabelShape(node)) {
6290
6298
  return { nextCursor: start + 1, lockedFragmentIds: [] };
6291
6299
  }
6300
+ if (node.isTextBox && node.txbxBlocks !== void 0) {
6301
+ const txbxTextSegment = extractTxbxFirstTextSegment(node.txbxBlocks);
6302
+ const txbxText = txbxTextSegment?.text ?? node.text;
6303
+ const txbxBody = surfaceTextBoxBodyFromShape(
6304
+ node,
6305
+ void 0,
6306
+ inlinePath,
6307
+ editableTargetsByBlockPath
6308
+ );
6309
+ paragraph.segments.push({
6310
+ segmentId: `${paragraph.blockId}-segment-${paragraph.segments.length}`,
6311
+ kind: "shape",
6312
+ from: start,
6313
+ to: start + 1,
6314
+ label: "Text box",
6315
+ detail: createShapeDetail(node),
6316
+ ...node.geometry !== void 0 ? { geometry: node.geometry } : {},
6317
+ isTextBox: true,
6318
+ ...node.textBoxBody ? { textBoxBody: node.textBoxBody } : {},
6319
+ ...node.preserveOnlyObject ? { preserveOnlyObject: surfacePreserveOnlyObject(node.preserveOnlyObject) } : {},
6320
+ ...txbxText ? { txbxText } : {},
6321
+ ...txbxBody ? { txbxBody } : {},
6322
+ ...txbxTextSegment?.marks && txbxTextSegment.marks.length > 0 ? { txbxMarks: txbxTextSegment.marks } : {},
6323
+ ...txbxTextSegment?.markAttrs ? { txbxMarkAttrs: txbxTextSegment.markAttrs } : {}
6324
+ });
6325
+ return { nextCursor: start + 1, lockedFragmentIds: [] };
6326
+ }
6292
6327
  if (promoteSecondaryStoryTextBoxes && node.isTextBox && node.text) {
6293
6328
  return appendTextBoxSegment(
6294
6329
  paragraph,
@@ -6348,7 +6383,7 @@ function appendInlineSegments(paragraph, node, document, start, promoteSecondary
6348
6383
  const anchor = surfaceAnchorFromGeometry(node.anchor);
6349
6384
  const txbxTextSegment = c.isTextBox ? extractTxbxFirstTextSegment(c.txbxBlocks) : void 0;
6350
6385
  const txbxText = txbxTextSegment?.text ?? (c.isTextBox ? c.text : void 0);
6351
- const txbxBody = c.isTextBox ? surfaceTextBoxBodyFromShape(c, node.sourceRef) : void 0;
6386
+ const txbxBody = c.isTextBox ? surfaceTextBoxBodyFromShape(c, node.sourceRef, inlinePath, editableTargetsByBlockPath) : void 0;
6352
6387
  const surfaceFill = c.fill;
6353
6388
  paragraph.segments.push({
6354
6389
  segmentId: `${paragraph.blockId}-segment-${paragraph.segments.length}`,
@@ -6525,13 +6560,16 @@ function appendInlineSegments(paragraph, node, document, start, promoteSecondary
6525
6560
  const refHyperlinkHref = (node.fieldFamily === "REF" || node.fieldFamily === "PAGEREF" || node.fieldFamily === "NOTEREF") && node.switches?.hyperlink === true && node.fieldTarget ? `#${node.fieldTarget}` : void 0;
6526
6561
  let cursor = start;
6527
6562
  const lockedIds = [];
6528
- for (const child of node.children) {
6563
+ for (let childIndex = 0; childIndex < node.children.length; childIndex += 1) {
6564
+ const child = node.children[childIndex];
6529
6565
  const result = appendInlineSegments(
6530
6566
  paragraph,
6531
6567
  child,
6532
6568
  document,
6533
6569
  cursor,
6534
6570
  promoteSecondaryStoryTextBoxes,
6571
+ inlinePath !== void 0 ? `${inlinePath}/child[${childIndex}]` : void 0,
6572
+ editableTargetsByBlockPath,
6535
6573
  refHyperlinkHref ?? hyperlinkHref,
6536
6574
  cullBuild,
6537
6575
  themeResolver,
@@ -6778,7 +6816,7 @@ function extractTxbxFirstTextSegment(blocks) {
6778
6816
  }
6779
6817
  return void 0;
6780
6818
  }
6781
- function surfaceTextBoxBodyFromShape(shape, sourceRef) {
6819
+ function surfaceTextBoxBodyFromShape(shape, sourceRef, inlinePath, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH) {
6782
6820
  if (!shape.isTextBox && shape.txbxContentXml === void 0 && shape.txbxBlocks === void 0) {
6783
6821
  return void 0;
6784
6822
  }
@@ -6804,9 +6842,12 @@ function surfaceTextBoxBodyFromShape(shape, sourceRef) {
6804
6842
  (run, inlineIndex) => surfaceTextBoxRunFromLegacyRun(run, inlineIndex)
6805
6843
  ) ?? [];
6806
6844
  const text = runs.map((run) => run.text ?? "").join("");
6845
+ const blockPath = inlinePath !== void 0 ? `${inlinePath}/txbx/block[${blockIndex}]` : void 0;
6846
+ const editableTarget = blockPath !== void 0 ? editableTargetsByBlockPath.get(blockPath) : void 0;
6807
6847
  return [{
6808
6848
  ...block.sourceRef !== void 0 ? { sourceRef: block.sourceRef } : {},
6809
6849
  blockIndex,
6850
+ ...editableTarget !== void 0 ? { editableTarget } : {},
6810
6851
  text,
6811
6852
  textLength: Array.from(text).length,
6812
6853
  ...block.borders !== void 0 ? { borders: block.borders } : {},
@@ -7502,6 +7543,7 @@ function applyLinearTextTransaction(document, selection, intent, options) {
7502
7543
  metadata: {
7503
7544
  affectsComments: true,
7504
7545
  affectsRevisions: true,
7546
+ ...createLocalTextPatchMetadata(story.units, unitFrom, unitTo, insertionUnits),
7505
7547
  ...containsParagraphBoundaryChange(story, normalizedRange, insertionUnits) ? { invalidatesStructures: true } : {}
7506
7548
  }
7507
7549
  },
@@ -7569,6 +7611,21 @@ function tryApplyTableParagraphTransaction(document, selection, intent, options)
7569
7611
  storyText: localResult.storyText
7570
7612
  };
7571
7613
  }
7614
+ function createLocalTextPatchMetadata(units, unitFrom, unitTo, insertionUnits) {
7615
+ if (!insertionUnits.every((unit) => unit.kind === "text")) {
7616
+ return {};
7617
+ }
7618
+ for (let index = unitFrom; index < unitTo; index += 1) {
7619
+ if (units[index]?.kind !== "text") {
7620
+ return {};
7621
+ }
7622
+ }
7623
+ return {
7624
+ localTextPatch: {
7625
+ insertedText: insertionUnits.map((unit) => unit.kind === "text" ? unit.value : "").join("")
7626
+ }
7627
+ };
7628
+ }
7572
7629
  function tryApplyTargetedTextLeafTransaction(document, selection, intent, options) {
7573
7630
  const scope = resolveTargetedTextLeafScope(document, selection, options.textTarget);
7574
7631
  if (!scope) {
@@ -1,13 +1,14 @@
1
- import { T as TextTransactionTextTarget, C as CanonicalDocumentEnvelope, S as SelectionSnapshot, d as TextTransactionResult, e as StructuralMutationResult, I as InsertTableOptions, f as TextFormattingDirective, g as TransactionMapping } from '../../public-types-D_y4Ptcj.cjs';
1
+ import { T as TextTransactionTextTarget, C as CanonicalDocumentEnvelope, S as SelectionSnapshot, d as TextTransactionResult, e as StructuralMutationResult, I as InsertTableOptions, f as TextFormattingDirective, g as TransactionMapping } from '../../public-types-DajNGKV4.cjs';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
5
- import '../../canonical-document-ByIqTd4s.cjs';
5
+ import '../../canonical-document-CG2TgAzj.cjs';
6
6
  import 'prosemirror-state';
7
7
  import 'prosemirror-model';
8
8
 
9
9
  interface TextCommandContext {
10
10
  timestamp: string;
11
+ activeStorySize?: number;
11
12
  textTarget?: TextTransactionTextTarget;
12
13
  rejectTargetlessTableStructureInsert?: boolean;
13
14
  }
@@ -1,13 +1,14 @@
1
- import { T as TextTransactionTextTarget, C as CanonicalDocumentEnvelope, S as SelectionSnapshot, d as TextTransactionResult, e as StructuralMutationResult, I as InsertTableOptions, f as TextFormattingDirective, g as TransactionMapping } from '../../public-types-Dl1jiWjk.js';
1
+ import { T as TextTransactionTextTarget, C as CanonicalDocumentEnvelope, S as SelectionSnapshot, d as TextTransactionResult, e as StructuralMutationResult, I as InsertTableOptions, f as TextFormattingDirective, g as TransactionMapping } from '../../public-types-CNnMHZM9.js';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
5
- import '../../canonical-document-ByIqTd4s.js';
5
+ import '../../canonical-document-CG2TgAzj.js';
6
6
  import 'prosemirror-state';
7
7
  import 'prosemirror-model';
8
8
 
9
9
  interface TextCommandContext {
10
10
  timestamp: string;
11
+ activeStorySize?: number;
11
12
  textTarget?: TextTransactionTextTarget;
12
13
  rejectTargetlessTableStructureInsert?: boolean;
13
14
  }
@@ -8,14 +8,14 @@ import {
8
8
  insertText,
9
9
  outdentParagraphAtSelection,
10
10
  splitParagraph
11
- } from "../../chunk-3OFSP2IX.js";
11
+ } from "../../chunk-BOHHIVQ2.js";
12
12
  import "../../chunk-Y4XZCMCS.js";
13
- import "../../chunk-3OHVK2D6.js";
14
- import "../../chunk-ZKSDVHGH.js";
13
+ import "../../chunk-IR7QV2BX.js";
14
+ import "../../chunk-KOHQFZMM.js";
15
15
  import "../../chunk-QIO6V46H.js";
16
- import "../../chunk-3TUQCHYT.js";
16
+ import "../../chunk-H6IL5ABU.js";
17
17
  import "../../chunk-OYGMRRR7.js";
18
- import "../../chunk-TFSXOIAI.js";
18
+ import "../../chunk-FNWKE74J.js";
19
19
  import "../../chunk-UFVDIR2C.js";
20
20
  import "../../chunk-PGGPPZ65.js";
21
21
  import "../../chunk-DNXYUIIS.js";
@@ -1,7 +1,7 @@
1
- export { fi as Assoc, fj as BoundaryAssoc, fk as DEFAULT_BOUNDARY_ASSOC, fl as DetachedAnchor, fm as DocRange, a$ as EditorAnchorProjection, fn as InternalEditorAnchorProjection, fo as MAIN_STORY_TARGET, fp as MappingResult, fq as MappingStep, fr as NodeAnchor, fs as Position, ft as RangeAnchor, g as TransactionMapping, fu as anchorUnaffectedByMapping, fv as areAnchorsEqual, fw as createDetachedAnchor, fx as createEmptyMapping, fy as createNodeAnchor, fz as createRangeAnchor, fA as getEffectiveRange, fB as mapAnchor, fC as mapPosition, fD as mapRange, fE as normalizeRange, fF as storyTargetsEqual } from '../../public-types-D_y4Ptcj.cjs';
1
+ export { fi as Assoc, fj as BoundaryAssoc, fk as DEFAULT_BOUNDARY_ASSOC, fl as DetachedAnchor, fm as DocRange, a$ as EditorAnchorProjection, fn as InternalEditorAnchorProjection, fo as MAIN_STORY_TARGET, fp as MappingResult, fq as MappingStep, fr as NodeAnchor, fs as Position, ft as RangeAnchor, g as TransactionMapping, fu as anchorUnaffectedByMapping, fv as areAnchorsEqual, fw as createDetachedAnchor, fx as createEmptyMapping, fy as createNodeAnchor, fz as createRangeAnchor, fA as getEffectiveRange, fB as mapAnchor, fC as mapPosition, fD as mapRange, fE as normalizeRange, fF as storyTargetsEqual } from '../../public-types-DajNGKV4.cjs';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
5
- import '../../canonical-document-ByIqTd4s.cjs';
5
+ import '../../canonical-document-CG2TgAzj.cjs';
6
6
  import 'prosemirror-state';
7
7
  import 'prosemirror-model';
@@ -1,7 +1,7 @@
1
- export { fi as Assoc, fj as BoundaryAssoc, fk as DEFAULT_BOUNDARY_ASSOC, fl as DetachedAnchor, fm as DocRange, a$ as EditorAnchorProjection, fn as InternalEditorAnchorProjection, fo as MAIN_STORY_TARGET, fp as MappingResult, fq as MappingStep, fr as NodeAnchor, fs as Position, ft as RangeAnchor, g as TransactionMapping, fu as anchorUnaffectedByMapping, fv as areAnchorsEqual, fw as createDetachedAnchor, fx as createEmptyMapping, fy as createNodeAnchor, fz as createRangeAnchor, fA as getEffectiveRange, fB as mapAnchor, fC as mapPosition, fD as mapRange, fE as normalizeRange, fF as storyTargetsEqual } from '../../public-types-Dl1jiWjk.js';
1
+ export { fi as Assoc, fj as BoundaryAssoc, fk as DEFAULT_BOUNDARY_ASSOC, fl as DetachedAnchor, fm as DocRange, a$ as EditorAnchorProjection, fn as InternalEditorAnchorProjection, fo as MAIN_STORY_TARGET, fp as MappingResult, fq as MappingStep, fr as NodeAnchor, fs as Position, ft as RangeAnchor, g as TransactionMapping, fu as anchorUnaffectedByMapping, fv as areAnchorsEqual, fw as createDetachedAnchor, fx as createEmptyMapping, fy as createNodeAnchor, fz as createRangeAnchor, fA as getEffectiveRange, fB as mapAnchor, fC as mapPosition, fD as mapRange, fE as normalizeRange, fF as storyTargetsEqual } from '../../public-types-CNnMHZM9.js';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
5
- import '../../canonical-document-ByIqTd4s.js';
5
+ import '../../canonical-document-CG2TgAzj.js';
6
6
  import 'prosemirror-state';
7
7
  import 'prosemirror-model';
@@ -1,5 +1,5 @@
1
- export { C as CanonicalDocumentEnvelope, fG as CommandStateSnapshot, fH as CommentEntryRecord, fI as CommentResolutionRecord, fJ as CommentSidebarSnapshot, fK as CommentThreadRecord, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, fL as CompatibilityPanelSnapshot, q as CompatibilityReport, fM as CreateEditorStateOptions, fN as DocumentStats, r as EditorError, cm as EditorErrorCode, fO as EditorRuntimeState, fP as EditorState, cB as EditorWarning, cC as EditorWarningCode, fQ as PersistedEditorSnapshot, fR as ReviewStore, fS as RevisionMetadataRecord, fT as RevisionRecord, fU as RuntimePhase, fV as RuntimeRenderSnapshot, S as SelectionSnapshot, fW as TrackedChangesSnapshot, fX as createDefaultCanonicalDocument, fY as createEditorState, fZ as createEmptyCompatibilityReport, f_ as createEmptyReviewStore, f$ as createPersistedEditorSnapshot, g0 as createSelectionSnapshot, g1 as deriveDocumentStats, g2 as deriveRenderSnapshot, g3 as normalizeCommentThreadRecord } from '../../public-types-D_y4Ptcj.cjs';
2
- export { o as createCanonicalDocumentId } from '../../canonical-document-ByIqTd4s.cjs';
1
+ export { C as CanonicalDocumentEnvelope, fG as CommandStateSnapshot, fH as CommentEntryRecord, fI as CommentResolutionRecord, fJ as CommentSidebarSnapshot, fK as CommentThreadRecord, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, fL as CompatibilityPanelSnapshot, q as CompatibilityReport, fM as CreateEditorStateOptions, fN as DocumentStats, r as EditorError, cm as EditorErrorCode, fO as EditorRuntimeState, fP as EditorState, cB as EditorWarning, cC as EditorWarningCode, fQ as PersistedEditorSnapshot, fR as ReviewStore, fS as RevisionMetadataRecord, fT as RevisionRecord, fU as RuntimePhase, fV as RuntimeRenderSnapshot, S as SelectionSnapshot, fW as TrackedChangesSnapshot, fX as createDefaultCanonicalDocument, fY as createEditorState, fZ as createEmptyCompatibilityReport, f_ as createEmptyReviewStore, f$ as createPersistedEditorSnapshot, g0 as createSelectionSnapshot, g1 as deriveDocumentStats, g2 as deriveRenderSnapshot, g3 as normalizeCommentThreadRecord } from '../../public-types-DajNGKV4.cjs';
2
+ export { o as createCanonicalDocumentId } from '../../canonical-document-CG2TgAzj.cjs';
3
3
  import 'react';
4
4
  import 'yjs';
5
5
  import 'y-protocols/awareness';
@@ -1,5 +1,5 @@
1
- export { C as CanonicalDocumentEnvelope, fG as CommandStateSnapshot, fH as CommentEntryRecord, fI as CommentResolutionRecord, fJ as CommentSidebarSnapshot, fK as CommentThreadRecord, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, fL as CompatibilityPanelSnapshot, q as CompatibilityReport, fM as CreateEditorStateOptions, fN as DocumentStats, r as EditorError, cm as EditorErrorCode, fO as EditorRuntimeState, fP as EditorState, cB as EditorWarning, cC as EditorWarningCode, fQ as PersistedEditorSnapshot, fR as ReviewStore, fS as RevisionMetadataRecord, fT as RevisionRecord, fU as RuntimePhase, fV as RuntimeRenderSnapshot, S as SelectionSnapshot, fW as TrackedChangesSnapshot, fX as createDefaultCanonicalDocument, fY as createEditorState, fZ as createEmptyCompatibilityReport, f_ as createEmptyReviewStore, f$ as createPersistedEditorSnapshot, g0 as createSelectionSnapshot, g1 as deriveDocumentStats, g2 as deriveRenderSnapshot, g3 as normalizeCommentThreadRecord } from '../../public-types-Dl1jiWjk.js';
2
- export { o as createCanonicalDocumentId } from '../../canonical-document-ByIqTd4s.js';
1
+ export { C as CanonicalDocumentEnvelope, fG as CommandStateSnapshot, fH as CommentEntryRecord, fI as CommentResolutionRecord, fJ as CommentSidebarSnapshot, fK as CommentThreadRecord, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, fL as CompatibilityPanelSnapshot, q as CompatibilityReport, fM as CreateEditorStateOptions, fN as DocumentStats, r as EditorError, cm as EditorErrorCode, fO as EditorRuntimeState, fP as EditorState, cB as EditorWarning, cC as EditorWarningCode, fQ as PersistedEditorSnapshot, fR as ReviewStore, fS as RevisionMetadataRecord, fT as RevisionRecord, fU as RuntimePhase, fV as RuntimeRenderSnapshot, S as SelectionSnapshot, fW as TrackedChangesSnapshot, fX as createDefaultCanonicalDocument, fY as createEditorState, fZ as createEmptyCompatibilityReport, f_ as createEmptyReviewStore, f$ as createPersistedEditorSnapshot, g0 as createSelectionSnapshot, g1 as deriveDocumentStats, g2 as deriveRenderSnapshot, g3 as normalizeCommentThreadRecord } from '../../public-types-CNnMHZM9.js';
2
+ export { o as createCanonicalDocumentId } from '../../canonical-document-CG2TgAzj.js';
3
3
  import 'react';
4
4
  import 'yjs';
5
5
  import 'y-protocols/awareness';