@beyondwork/docx-react-component 1.0.125 → 1.0.126

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 (56) hide show
  1. package/dist/api/public-types.d.cts +1 -1
  2. package/dist/api/public-types.d.ts +1 -1
  3. package/dist/api/v3.cjs +5 -1
  4. package/dist/api/v3.d.cts +2 -2
  5. package/dist/api/v3.d.ts +2 -2
  6. package/dist/api/v3.js +2 -2
  7. package/dist/{chunk-JN444Z5S.js → chunk-6IGWPAR4.js} +1 -1
  8. package/dist/{chunk-OHTK7F3F.js → chunk-FPRWV54X.js} +5 -1
  9. package/dist/{chunk-QT3LX4FA.js → chunk-GL7XRYBY.js} +304 -37
  10. package/dist/core/commands/formatting-commands.d.cts +1 -1
  11. package/dist/core/commands/formatting-commands.d.ts +1 -1
  12. package/dist/core/commands/image-commands.d.cts +1 -1
  13. package/dist/core/commands/image-commands.d.ts +1 -1
  14. package/dist/core/commands/section-layout-commands.d.cts +1 -1
  15. package/dist/core/commands/section-layout-commands.d.ts +1 -1
  16. package/dist/core/commands/style-commands.d.cts +1 -1
  17. package/dist/core/commands/style-commands.d.ts +1 -1
  18. package/dist/core/commands/table-structure-commands.d.cts +1 -1
  19. package/dist/core/commands/table-structure-commands.d.ts +1 -1
  20. package/dist/core/commands/text-commands.d.cts +1 -1
  21. package/dist/core/commands/text-commands.d.ts +1 -1
  22. package/dist/core/selection/mapping.d.cts +1 -1
  23. package/dist/core/selection/mapping.d.ts +1 -1
  24. package/dist/core/state/editor-state.d.cts +1 -1
  25. package/dist/core/state/editor-state.d.ts +1 -1
  26. package/dist/index.cjs +336 -47
  27. package/dist/index.d.cts +4 -4
  28. package/dist/index.d.ts +4 -4
  29. package/dist/index.js +26 -7
  30. package/dist/io/docx-session.d.cts +3 -3
  31. package/dist/io/docx-session.d.ts +3 -3
  32. package/dist/{loader-B1MxvbeV.d.ts → loader-CS9-9KFa.d.ts} +2 -2
  33. package/dist/{loader-CJXsswcd.d.cts → loader-OoWJ1_17.d.cts} +2 -2
  34. package/dist/{public-types-DrhlQ5Zy.d.cts → public-types-BP3vqJR5.d.cts} +50 -6
  35. package/dist/{public-types-BEGhv2YR.d.ts → public-types-DdcHqcow.d.ts} +50 -6
  36. package/dist/public-types.d.cts +1 -1
  37. package/dist/public-types.d.ts +1 -1
  38. package/dist/runtime/collab.d.cts +2 -2
  39. package/dist/runtime/collab.d.ts +2 -2
  40. package/dist/runtime/document-runtime.cjs +260 -36
  41. package/dist/runtime/document-runtime.d.cts +1 -1
  42. package/dist/runtime/document-runtime.d.ts +1 -1
  43. package/dist/runtime/document-runtime.js +2 -2
  44. package/dist/{session-Bp3zqnkS.d.cts → session-Cq-fzx3B.d.cts} +2 -2
  45. package/dist/{session-xMOU_NtL.d.ts → session-DyFQt8Ph.d.ts} +2 -2
  46. package/dist/session.d.cts +4 -4
  47. package/dist/session.d.ts +4 -4
  48. package/dist/tailwind.d.cts +1 -1
  49. package/dist/tailwind.d.ts +1 -1
  50. package/dist/{types-DDPxEygX.d.cts → types-Bg7D-GD3.d.cts} +1 -1
  51. package/dist/{types-BFT8536T.d.ts → types-bJAgMq1M.d.ts} +1 -1
  52. package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +2 -2
  53. package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +2 -2
  54. package/dist/ui-tailwind.d.cts +2 -2
  55. package/dist/ui-tailwind.d.ts +2 -2
  56. package/package.json +1 -1
@@ -18918,22 +18918,43 @@ function rangesOverlap2(leftFrom, leftTo, rightFrom, rightTo) {
18918
18918
  }
18919
18919
 
18920
18920
  // src/core/commands/list-commands.ts
18921
- function toggleNumberedList(document2, paragraphIndexes, context) {
18922
- return toggleListKind(document2, paragraphIndexes, "numbered", context);
18921
+ function toggleNumberedList(document2, paragraphIndexes, context, options = {}) {
18922
+ return toggleListKind(document2, paragraphIndexes, "numbered", context, options);
18923
18923
  }
18924
- function toggleBulletedList(document2, paragraphIndexes, context) {
18925
- return toggleListKind(document2, paragraphIndexes, "bulleted", context);
18924
+ function toggleBulletedList(document2, paragraphIndexes, context, options = {}) {
18925
+ return toggleListKind(document2, paragraphIndexes, "bulleted", context, options);
18926
18926
  }
18927
- function indentListItems(document2, paragraphIndexes, context) {
18928
- return adjustListLevels(document2, paragraphIndexes, 1, context);
18927
+ function indentListItems(document2, paragraphIndexes, context, options = {}) {
18928
+ return adjustListLevels(document2, paragraphIndexes, 1, context, options);
18929
18929
  }
18930
- function outdentListItems(document2, paragraphIndexes, context) {
18931
- return adjustListLevels(document2, paragraphIndexes, -1, context);
18930
+ function outdentListItems(document2, paragraphIndexes, context, options = {}) {
18931
+ return adjustListLevels(document2, paragraphIndexes, -1, context, options);
18932
18932
  }
18933
- function restartNumbering(document2, paragraphIndex, context, startAt = 1) {
18933
+ function restartNumbering(document2, paragraphIndex, context, startAt = 1, options = {}) {
18934
18934
  const working = cloneEnvelope(document2, context.timestamp);
18935
18935
  const paragraphs = captureEditableParagraphs(working);
18936
- const target = paragraphs[paragraphIndex];
18936
+ const resolved = resolveListCommandParagraphIndexes(
18937
+ working,
18938
+ paragraphs,
18939
+ [paragraphIndex],
18940
+ context,
18941
+ normalizeListCommandTargets(options)
18942
+ );
18943
+ if (resolved.blockedReason) {
18944
+ return {
18945
+ document: working,
18946
+ affectedParagraphIndexes: [],
18947
+ blockedReason: resolved.blockedReason
18948
+ };
18949
+ }
18950
+ const resolvedParagraphIndex = resolved.paragraphIndexes[0];
18951
+ if (resolvedParagraphIndex === void 0) {
18952
+ return {
18953
+ document: working,
18954
+ affectedParagraphIndexes: []
18955
+ };
18956
+ }
18957
+ const target = paragraphs[resolvedParagraphIndex];
18937
18958
  if (!target?.numbering) {
18938
18959
  return {
18939
18960
  document: working,
@@ -18958,7 +18979,7 @@ function restartNumbering(document2, paragraphIndex, context, startAt = 1) {
18958
18979
  })
18959
18980
  };
18960
18981
  const affectedParagraphIndexes = [];
18961
- for (let index = paragraphIndex; index < paragraphs.length; index += 1) {
18982
+ for (let index = resolvedParagraphIndex; index < paragraphs.length; index += 1) {
18962
18983
  const paragraph = paragraphs[index];
18963
18984
  if (!paragraph?.numbering) {
18964
18985
  break;
@@ -18979,10 +19000,31 @@ function restartNumbering(document2, paragraphIndex, context, startAt = 1) {
18979
19000
  createdNumberingInstanceId: numberingInstanceId
18980
19001
  };
18981
19002
  }
18982
- function continueNumbering(document2, paragraphIndex, context) {
19003
+ function continueNumbering(document2, paragraphIndex, context, options = {}) {
18983
19004
  const working = cloneEnvelope(document2, context.timestamp);
18984
19005
  const paragraphs = captureEditableParagraphs(working);
18985
- const target = paragraphs[paragraphIndex];
19006
+ const resolved = resolveListCommandParagraphIndexes(
19007
+ working,
19008
+ paragraphs,
19009
+ [paragraphIndex],
19010
+ context,
19011
+ normalizeListCommandTargets(options)
19012
+ );
19013
+ if (resolved.blockedReason) {
19014
+ return {
19015
+ document: working,
19016
+ affectedParagraphIndexes: [],
19017
+ blockedReason: resolved.blockedReason
19018
+ };
19019
+ }
19020
+ const resolvedParagraphIndex = resolved.paragraphIndexes[0];
19021
+ if (resolvedParagraphIndex === void 0) {
19022
+ return {
19023
+ document: working,
19024
+ affectedParagraphIndexes: []
19025
+ };
19026
+ }
19027
+ const target = paragraphs[resolvedParagraphIndex];
18986
19028
  if (!target?.numbering) {
18987
19029
  return {
18988
19030
  document: working,
@@ -19001,7 +19043,7 @@ function continueNumbering(document2, paragraphIndex, context) {
19001
19043
  const compatibleInstanceId = findPreviousCompatibleInstance(
19002
19044
  paragraphs,
19003
19045
  catalog,
19004
- paragraphIndex,
19046
+ resolvedParagraphIndex,
19005
19047
  currentKind
19006
19048
  );
19007
19049
  if (!compatibleInstanceId || compatibleInstanceId === currentInstanceId) {
@@ -19011,7 +19053,7 @@ function continueNumbering(document2, paragraphIndex, context) {
19011
19053
  };
19012
19054
  }
19013
19055
  const affectedParagraphIndexes = [];
19014
- for (let index = paragraphIndex; index < paragraphs.length; index += 1) {
19056
+ for (let index = resolvedParagraphIndex; index < paragraphs.length; index += 1) {
19015
19057
  const paragraph = paragraphs[index];
19016
19058
  if (!paragraph?.numbering) {
19017
19059
  break;
@@ -19032,10 +19074,24 @@ function continueNumbering(document2, paragraphIndex, context) {
19032
19074
  createdNumberingInstanceId: compatibleInstanceId
19033
19075
  };
19034
19076
  }
19035
- function toggleListKind(document2, paragraphIndexes, kind, context) {
19077
+ function toggleListKind(document2, paragraphIndexes, kind, context, options) {
19036
19078
  const working = cloneEnvelope(document2, context.timestamp);
19037
19079
  const paragraphs = captureEditableParagraphs(working);
19038
- const normalizedIndexes = normalizeParagraphIndexes(paragraphs, paragraphIndexes);
19080
+ const resolved = resolveListCommandParagraphIndexes(
19081
+ working,
19082
+ paragraphs,
19083
+ paragraphIndexes,
19084
+ context,
19085
+ normalizeListCommandTargets(options)
19086
+ );
19087
+ if (resolved.blockedReason) {
19088
+ return {
19089
+ document: working,
19090
+ affectedParagraphIndexes: [],
19091
+ blockedReason: resolved.blockedReason
19092
+ };
19093
+ }
19094
+ const normalizedIndexes = resolved.paragraphIndexes;
19039
19095
  if (normalizedIndexes.length === 0) {
19040
19096
  return {
19041
19097
  document: working,
@@ -19072,10 +19128,24 @@ function toggleListKind(document2, paragraphIndexes, kind, context) {
19072
19128
  createdNumberingInstanceId: numberingInstanceId
19073
19129
  };
19074
19130
  }
19075
- function adjustListLevels(document2, paragraphIndexes, delta, context) {
19131
+ function adjustListLevels(document2, paragraphIndexes, delta, context, options) {
19076
19132
  const working = cloneEnvelope(document2, context.timestamp);
19077
19133
  const paragraphs = captureEditableParagraphs(working);
19078
- const affectedParagraphIndexes = normalizeParagraphIndexes(paragraphs, paragraphIndexes).filter(
19134
+ const resolved = resolveListCommandParagraphIndexes(
19135
+ working,
19136
+ paragraphs,
19137
+ paragraphIndexes,
19138
+ context,
19139
+ normalizeListCommandTargets(options)
19140
+ );
19141
+ if (resolved.blockedReason) {
19142
+ return {
19143
+ document: working,
19144
+ affectedParagraphIndexes: [],
19145
+ blockedReason: resolved.blockedReason
19146
+ };
19147
+ }
19148
+ const affectedParagraphIndexes = resolved.paragraphIndexes.filter(
19079
19149
  (index) => Boolean(paragraphs[index]?.numbering)
19080
19150
  );
19081
19151
  for (const index of affectedParagraphIndexes) {
@@ -19093,6 +19163,121 @@ function adjustListLevels(document2, paragraphIndexes, delta, context) {
19093
19163
  affectedParagraphIndexes
19094
19164
  };
19095
19165
  }
19166
+ function normalizeListCommandTargets(options) {
19167
+ if (options.editableTargets !== void 0) return options.editableTargets;
19168
+ return options.editableTarget ? [options.editableTarget] : [];
19169
+ }
19170
+ function resolveListCommandParagraphIndexes(document2, paragraphs, paragraphIndexes, context, editableTargets) {
19171
+ if (editableTargets.length === 0) {
19172
+ return { paragraphIndexes: normalizeParagraphIndexes(paragraphs, paragraphIndexes) };
19173
+ }
19174
+ const currentTargets = collectEditableTargetRefs(document2, context.editableTargetCache);
19175
+ const paragraphIndexByTargetKey = /* @__PURE__ */ new Map();
19176
+ let paragraphIndex = 0;
19177
+ for (const target of currentTargets) {
19178
+ if (!isParagraphTextTarget(target)) continue;
19179
+ if (!paragraphIndexByTargetKey.has(target.targetKey)) {
19180
+ paragraphIndexByTargetKey.set(target.targetKey, paragraphIndex);
19181
+ paragraphIndex += 1;
19182
+ }
19183
+ }
19184
+ const resolvedIndexes = [];
19185
+ for (const target of editableTargets) {
19186
+ const blockedReason = validateListCommandTarget(target, currentTargets, context);
19187
+ if (blockedReason) return { paragraphIndexes: [], blockedReason };
19188
+ const current = findCurrentListCommandTarget(target, currentTargets);
19189
+ if (!current) {
19190
+ return {
19191
+ paragraphIndexes: [],
19192
+ blockedReason: {
19193
+ code: "list_target_not_found",
19194
+ message: "List editable target no longer resolves in the current canonical document."
19195
+ }
19196
+ };
19197
+ }
19198
+ if (!sameResolvedListCommandTarget(target, current)) {
19199
+ return {
19200
+ paragraphIndexes: [],
19201
+ blockedReason: {
19202
+ code: "list_target_stale",
19203
+ message: "List editable target is stale for the current canonical document."
19204
+ }
19205
+ };
19206
+ }
19207
+ const currentIndex = paragraphIndexByTargetKey.get(current.targetKey);
19208
+ if (currentIndex === void 0) {
19209
+ return {
19210
+ paragraphIndexes: [],
19211
+ blockedReason: {
19212
+ code: "list_target_position_unavailable",
19213
+ message: "List editable target resolved but could not be mapped to a current paragraph."
19214
+ }
19215
+ };
19216
+ }
19217
+ resolvedIndexes.push(currentIndex);
19218
+ }
19219
+ return { paragraphIndexes: normalizeParagraphIndexes(paragraphs, resolvedIndexes) };
19220
+ }
19221
+ function validateListCommandTarget(target, currentTargets, context) {
19222
+ const shapeIssues = validateEditableTargetRef(target);
19223
+ if (shapeIssues.length > 0) {
19224
+ return {
19225
+ code: "list_target_malformed",
19226
+ message: `List editable target is malformed: ${shapeIssues[0]?.path ?? "$"}.`
19227
+ };
19228
+ }
19229
+ if (context.activeStoryKey !== void 0 && target.storyKey !== context.activeStoryKey) {
19230
+ return {
19231
+ code: "list_target_wrong_story",
19232
+ message: "List editable target does not belong to the active story."
19233
+ };
19234
+ }
19235
+ if (target.commandFamily !== "text-leaf" || target.listAddress === void 0) {
19236
+ return {
19237
+ code: "list_target_required",
19238
+ message: "List commands require a validated list item editable target."
19239
+ };
19240
+ }
19241
+ if (target.editability !== "editable" || target.posture.blockers.length > 0) {
19242
+ return {
19243
+ code: "list_target_non_editable",
19244
+ message: target.posture.blockers.length > 0 ? `List editable target is not editable: ${target.posture.blockers.join(", ")}.` : "List editable target is not editable."
19245
+ };
19246
+ }
19247
+ if (!findCurrentListCommandTarget(target, currentTargets)) {
19248
+ return {
19249
+ code: "list_target_not_found",
19250
+ message: "List editable target no longer resolves in the current canonical document."
19251
+ };
19252
+ }
19253
+ return void 0;
19254
+ }
19255
+ function findCurrentListCommandTarget(target, currentTargets) {
19256
+ return currentTargets.find(
19257
+ (candidate) => isParagraphTextTarget(candidate) && candidate.listAddress !== void 0 && (candidate.targetKey === target.targetKey || candidate.listAddress.addressKey === target.listAddress?.addressKey)
19258
+ );
19259
+ }
19260
+ function sameResolvedListCommandTarget(left, right) {
19261
+ return left.kind === right.kind && left.storyKey === right.storyKey && left.blockPath === right.blockPath && left.leafPath === right.leafPath && left.commandFamily === right.commandFamily && left.editability === right.editability && left.staleCheck.paragraphTextHash === right.staleCheck.paragraphTextHash && left.staleCheck.paragraphTextLength === right.staleCheck.paragraphTextLength && left.staleCheck.inlineCount === right.staleCheck.inlineCount && left.staleCheck.blockType === right.staleCheck.blockType && left.listAddress?.addressKey === right.listAddress?.addressKey && left.listAddress?.resolver?.staleHash === right.listAddress?.resolver?.staleHash && jsonStable(left.sourceRef) === jsonStable(right.sourceRef);
19262
+ }
19263
+ function isParagraphTextTarget(target) {
19264
+ return target.commandFamily === "text-leaf" && target.staleCheck.blockType === "paragraph" && target.leafPath.endsWith("/inline");
19265
+ }
19266
+ function jsonStable(value) {
19267
+ return JSON.stringify(sortJson(value));
19268
+ }
19269
+ function sortJson(value) {
19270
+ if (Array.isArray(value)) return value.map(sortJson);
19271
+ if (value && typeof value === "object") {
19272
+ const record = value;
19273
+ const sorted = {};
19274
+ for (const key of Object.keys(record).sort()) {
19275
+ sorted[key] = sortJson(record[key]);
19276
+ }
19277
+ return sorted;
19278
+ }
19279
+ return value;
19280
+ }
19096
19281
  function ensureDefaultInstance(catalog, kind) {
19097
19282
  const existing = Object.values(catalog.instances).find(
19098
19283
  (instance) => getListKind(catalog, instance.numberingInstanceId) === kind
@@ -20139,6 +20324,13 @@ function withCommandTextTarget(context, command) {
20139
20324
  textTarget: command.textTarget
20140
20325
  };
20141
20326
  }
20327
+ function listCommandContext(context) {
20328
+ return {
20329
+ timestamp: context.timestamp,
20330
+ ...context.activeStoryKey !== void 0 ? { activeStoryKey: context.activeStoryKey } : {},
20331
+ ...context.editableTargetCache !== void 0 ? { editableTargetCache: context.editableTargetCache } : {}
20332
+ };
20333
+ }
20142
20334
  function executeEditorCommand(state, command, context) {
20143
20335
  switch (command.type) {
20144
20336
  case "selection.set":
@@ -20780,7 +20972,17 @@ function executeEditorCommand(state, command, context) {
20780
20972
  });
20781
20973
  }
20782
20974
  case "list.toggle": {
20783
- const result = command.kind === "bulleted" ? toggleBulletedList(state.document, command.paragraphIndexes, { timestamp: context.timestamp }) : toggleNumberedList(state.document, command.paragraphIndexes, { timestamp: context.timestamp });
20975
+ const result = command.kind === "bulleted" ? toggleBulletedList(
20976
+ state.document,
20977
+ command.paragraphIndexes ?? [],
20978
+ listCommandContext(context),
20979
+ { editableTargets: command.editableTargets }
20980
+ ) : toggleNumberedList(
20981
+ state.document,
20982
+ command.paragraphIndexes ?? [],
20983
+ listCommandContext(context),
20984
+ { editableTargets: command.editableTargets }
20985
+ );
20784
20986
  return buildDocumentReplaceTransaction(state, context, {
20785
20987
  changed: result.affectedParagraphIndexes.length > 0,
20786
20988
  document: result.document,
@@ -20788,7 +20990,12 @@ function executeEditorCommand(state, command, context) {
20788
20990
  });
20789
20991
  }
20790
20992
  case "list.indent": {
20791
- const result = indentListItems(state.document, command.paragraphIndexes, { timestamp: context.timestamp });
20993
+ const result = indentListItems(
20994
+ state.document,
20995
+ command.paragraphIndexes ?? [],
20996
+ listCommandContext(context),
20997
+ { editableTargets: command.editableTargets }
20998
+ );
20792
20999
  return buildDocumentReplaceTransaction(state, context, {
20793
21000
  changed: result.affectedParagraphIndexes.length > 0,
20794
21001
  document: result.document,
@@ -20796,7 +21003,12 @@ function executeEditorCommand(state, command, context) {
20796
21003
  });
20797
21004
  }
20798
21005
  case "list.outdent": {
20799
- const result = outdentListItems(state.document, command.paragraphIndexes, { timestamp: context.timestamp });
21006
+ const result = outdentListItems(
21007
+ state.document,
21008
+ command.paragraphIndexes ?? [],
21009
+ listCommandContext(context),
21010
+ { editableTargets: command.editableTargets }
21011
+ );
20800
21012
  return buildDocumentReplaceTransaction(state, context, {
20801
21013
  changed: result.affectedParagraphIndexes.length > 0,
20802
21014
  document: result.document,
@@ -20806,9 +21018,10 @@ function executeEditorCommand(state, command, context) {
20806
21018
  case "list.restart-numbering": {
20807
21019
  const result = restartNumbering(
20808
21020
  state.document,
20809
- command.paragraphIndex,
20810
- { timestamp: context.timestamp },
20811
- command.startAt
21021
+ command.paragraphIndex ?? -1,
21022
+ listCommandContext(context),
21023
+ command.startAt,
21024
+ { editableTarget: command.editableTarget }
20812
21025
  );
20813
21026
  return buildDocumentReplaceTransaction(state, context, {
20814
21027
  changed: result.affectedParagraphIndexes.length > 0,
@@ -20819,8 +21032,9 @@ function executeEditorCommand(state, command, context) {
20819
21032
  case "list.continue-numbering": {
20820
21033
  const result = continueNumbering(
20821
21034
  state.document,
20822
- command.paragraphIndex,
20823
- { timestamp: context.timestamp }
21035
+ command.paragraphIndex ?? -1,
21036
+ listCommandContext(context),
21037
+ { editableTarget: command.editableTarget }
20824
21038
  );
20825
21039
  return buildDocumentReplaceTransaction(state, context, {
20826
21040
  changed: result.affectedParagraphIndexes.length > 0,
@@ -52577,7 +52791,8 @@ function rejectCommand(code, message) {
52577
52791
  };
52578
52792
  }
52579
52793
  function sameResolvedTarget2(left, right) {
52580
- return left.kind === right.kind && left.storyKey === right.storyKey && left.blockPath === right.blockPath && left.leafPath === right.leafPath && left.commandFamily === right.commandFamily && left.editability === right.editability && sameTextTargetStaleCheck(left, right) && left.staleCheck.inlineCount === right.staleCheck.inlineCount && left.staleCheck.targetHash === right.staleCheck.targetHash && left.staleCheck.targetTextLength === right.staleCheck.targetTextLength && left.staleCheck.childCount === right.staleCheck.childCount && left.staleCheck.blockType === right.staleCheck.blockType && left.staleCheck.wordParaId === right.staleCheck.wordParaId && left.staleCheck.wordTextId === right.staleCheck.wordTextId && jsonStable(left.staleCheck.sourceRef) === jsonStable(right.staleCheck.sourceRef) && jsonStable(left.sourceRef) === jsonStable(right.sourceRef) && jsonStable(left.table) === jsonStable(right.table) && jsonStable(left.editableOwner) === jsonStable(right.editableOwner);
52794
+ const textTargetLengthDrift = hasTextTargetLengthDrift(left, right);
52795
+ return left.kind === right.kind && left.storyKey === right.storyKey && left.blockPath === right.blockPath && left.leafPath === right.leafPath && left.commandFamily === right.commandFamily && left.editability === right.editability && sameTextTargetStaleCheck(left, right) && left.staleCheck.inlineCount === right.staleCheck.inlineCount && left.staleCheck.targetHash === right.staleCheck.targetHash && left.staleCheck.targetTextLength === right.staleCheck.targetTextLength && left.staleCheck.childCount === right.staleCheck.childCount && left.staleCheck.blockType === right.staleCheck.blockType && left.staleCheck.wordParaId === right.staleCheck.wordParaId && left.staleCheck.wordTextId === right.staleCheck.wordTextId && (textTargetLengthDrift || jsonStable2(left.staleCheck.sourceRef) === jsonStable2(right.staleCheck.sourceRef)) && (textTargetLengthDrift || jsonStable2(left.sourceRef) === jsonStable2(right.sourceRef)) && jsonStable2(left.table) === jsonStable2(right.table) && jsonStable2(left.editableOwner) === jsonStable2(right.editableOwner);
52581
52796
  }
52582
52797
  function sameTextTargetStaleCheck(left, right) {
52583
52798
  if (left.staleCheck.paragraphTextHash === right.staleCheck.paragraphTextHash && left.staleCheck.paragraphTextLength === right.staleCheck.paragraphTextLength) {
@@ -52585,6 +52800,9 @@ function sameTextTargetStaleCheck(left, right) {
52585
52800
  }
52586
52801
  return left.commandFamily === "text-leaf" && left.staleCheck.paragraphTextLength !== void 0 && right.staleCheck.paragraphTextLength !== void 0 && left.staleCheck.paragraphTextLength !== right.staleCheck.paragraphTextLength;
52587
52802
  }
52803
+ function hasTextTargetLengthDrift(left, right) {
52804
+ return left.commandFamily === "text-leaf" && left.staleCheck.paragraphTextLength !== void 0 && right.staleCheck.paragraphTextLength !== void 0 && left.staleCheck.paragraphTextLength !== right.staleCheck.paragraphTextLength;
52805
+ }
52588
52806
  function locateTargetRange(document2, surface, target) {
52589
52807
  if (target.kind === "hyperlink-text") {
52590
52808
  return locateHyperlinkDisplayRange(document2, surface, target);
@@ -52876,7 +53094,7 @@ function resolveBlockPathInSurfaceBlocks2(blocks, tokens, tokenIndex, hasVertica
52876
53094
  hasVerticalMergeContinuation || cell.verticalMerge === "continue"
52877
53095
  );
52878
53096
  }
52879
- function jsonStable(value) {
53097
+ function jsonStable2(value) {
52880
53098
  return value === void 0 ? "" : JSON.stringify(value);
52881
53099
  }
52882
53100
 
@@ -53013,20 +53231,20 @@ function tableAnchorCell(table) {
53013
53231
  };
53014
53232
  }
53015
53233
  function sameResolvedTableStructureTarget(left, right) {
53016
- return left.kind === right.kind && left.storyKey === right.storyKey && left.blockPath === right.blockPath && left.leafPath === right.leafPath && left.commandFamily === right.commandFamily && left.editability === right.editability && left.staleCheck.targetHash === right.staleCheck.targetHash && left.staleCheck.childCount === right.staleCheck.childCount && left.staleCheck.blockType === right.staleCheck.blockType && jsonStable2(left.staleCheck.sourceRef) === jsonStable2(right.staleCheck.sourceRef) && jsonStable2(left.sourceRef) === jsonStable2(right.sourceRef) && jsonStable2(left.table) === jsonStable2(right.table);
53234
+ return left.kind === right.kind && left.storyKey === right.storyKey && left.blockPath === right.blockPath && left.leafPath === right.leafPath && left.commandFamily === right.commandFamily && left.editability === right.editability && left.staleCheck.targetHash === right.staleCheck.targetHash && left.staleCheck.childCount === right.staleCheck.childCount && left.staleCheck.blockType === right.staleCheck.blockType && jsonStable3(left.staleCheck.sourceRef) === jsonStable3(right.staleCheck.sourceRef) && jsonStable3(left.sourceRef) === jsonStable3(right.sourceRef) && jsonStable3(left.table) === jsonStable3(right.table);
53017
53235
  }
53018
- function jsonStable2(value) {
53019
- return JSON.stringify(sortJson(value));
53236
+ function jsonStable3(value) {
53237
+ return JSON.stringify(sortJson2(value));
53020
53238
  }
53021
- function sortJson(value) {
53239
+ function sortJson2(value) {
53022
53240
  if (Array.isArray(value)) {
53023
- return value.map(sortJson);
53241
+ return value.map(sortJson2);
53024
53242
  }
53025
53243
  if (value && typeof value === "object") {
53026
53244
  const record = value;
53027
53245
  const sorted = {};
53028
53246
  for (const key of Object.keys(record).sort()) {
53029
- sorted[key] = sortJson(record[key]);
53247
+ sorted[key] = sortJson2(record[key]);
53030
53248
  }
53031
53249
  return sorted;
53032
53250
  }
@@ -55108,6 +55326,8 @@ function createDocumentRuntime(options) {
55108
55326
  documentMode: workflowCoordinator.getEffectiveDocumentMode(commandSelection),
55109
55327
  defaultAuthorId: defaultAuthorId ?? void 0,
55110
55328
  renderSnapshot: cachedRenderSnapshot,
55329
+ activeStoryKey: canonicalEditableTargetStoryKey(activeStory),
55330
+ editableTargetCache: editableTargetBlockCache,
55111
55331
  ...resolvedFragmentTextTarget ? { textTarget: resolvedFragmentTextTarget } : {}
55112
55332
  };
55113
55333
  const preSelection = commandSelection;
@@ -57707,6 +57927,8 @@ function createDocumentRuntime(options) {
57707
57927
  documentMode: textOptions.documentModeOverride ?? workflowCoordinator.getEffectiveDocumentMode(selection),
57708
57928
  defaultAuthorId: defaultAuthorId ?? void 0,
57709
57929
  renderSnapshot: cachedRenderSnapshot,
57930
+ activeStoryKey: canonicalEditableTargetStoryKey(activeStory),
57931
+ editableTargetCache: editableTargetBlockCache,
57710
57932
  activeStorySize: cachedRenderSnapshot.surface?.storySize,
57711
57933
  textTarget,
57712
57934
  rejectTargetlessTableStructureInsert: true
@@ -58007,7 +58229,9 @@ function createDocumentRuntime(options) {
58007
58229
  timestamp: clock(),
58008
58230
  documentMode: workflowCoordinator.getEffectiveDocumentMode(state.selection),
58009
58231
  defaultAuthorId: defaultAuthorId ?? void 0,
58010
- renderSnapshot: cachedRenderSnapshot
58232
+ renderSnapshot: cachedRenderSnapshot,
58233
+ activeStoryKey: canonicalEditableTargetStoryKey(activeStory),
58234
+ editableTargetCache: editableTargetBlockCache
58011
58235
  };
58012
58236
  try {
58013
58237
  const transaction = executeEditorCommand(
@@ -1,4 +1,4 @@
1
- export { gz as ActiveStoryTextCommand, gA as CommandAppliedMeta, gB as CreateDocumentRuntimeOptions, gC as DocumentRuntime, gD as DocumentRuntimeEvent, gE as RemoteCommandEnvelope, gF as Unsubscribe, gG as __buildTocInlineNodes, gH as __collectFontLoaderInputUncached, gI as __fontFamiliesEqual, gJ as createDocumentRuntime, gK as getThemeColorResolver } from '../public-types-DrhlQ5Zy.cjs';
1
+ export { gz as ActiveStoryTextCommand, gA as CommandAppliedMeta, gB as CreateDocumentRuntimeOptions, gC as DocumentRuntime, gD as DocumentRuntimeEvent, gE as RemoteCommandEnvelope, gF as Unsubscribe, gG as __buildTocInlineNodes, gH as __collectFontLoaderInputUncached, gI as __fontFamiliesEqual, gJ as createDocumentRuntime, gK as getThemeColorResolver } from '../public-types-BP3vqJR5.cjs';
2
2
  import '../canonical-document-CXCFCbAz.cjs';
3
3
  import 'react';
4
4
  import 'yjs';
@@ -1,4 +1,4 @@
1
- export { gz as ActiveStoryTextCommand, gA as CommandAppliedMeta, gB as CreateDocumentRuntimeOptions, gC as DocumentRuntime, gD as DocumentRuntimeEvent, gE as RemoteCommandEnvelope, gF as Unsubscribe, gG as __buildTocInlineNodes, gH as __collectFontLoaderInputUncached, gI as __fontFamiliesEqual, gJ as createDocumentRuntime, gK as getThemeColorResolver } from '../public-types-BEGhv2YR.js';
1
+ export { gz as ActiveStoryTextCommand, gA as CommandAppliedMeta, gB as CreateDocumentRuntimeOptions, gC as DocumentRuntime, gD as DocumentRuntimeEvent, gE as RemoteCommandEnvelope, gF as Unsubscribe, gG as __buildTocInlineNodes, gH as __collectFontLoaderInputUncached, gI as __fontFamiliesEqual, gJ as createDocumentRuntime, gK as getThemeColorResolver } from '../public-types-DdcHqcow.js';
2
2
  import '../canonical-document-CXCFCbAz.js';
3
3
  import 'react';
4
4
  import 'yjs';
@@ -4,7 +4,7 @@ import {
4
4
  __fontFamiliesEqual,
5
5
  createDocumentRuntime,
6
6
  getThemeColorResolver
7
- } from "../chunk-QT3LX4FA.js";
7
+ } from "../chunk-GL7XRYBY.js";
8
8
  import "../chunk-6EXNNAO6.js";
9
9
  import "../chunk-M6XR534O.js";
10
10
  import "../chunk-YD2JE54B.js";
@@ -15,7 +15,7 @@ import "../chunk-KV435YXO.js";
15
15
  import "../chunk-ZDOAUP3V.js";
16
16
  import "../chunk-BYSRJ4FE.js";
17
17
  import "../chunk-MWSBGJQO.js";
18
- import "../chunk-OHTK7F3F.js";
18
+ import "../chunk-FPRWV54X.js";
19
19
  import "../chunk-YHZHPXDB.js";
20
20
  import "../chunk-KFCQYZXR.js";
21
21
  import "../chunk-QIO6V46H.js";
@@ -1,6 +1,6 @@
1
1
  import { C as CanonicalDocument } from './canonical-document-CXCFCbAz.cjs';
2
- import { a as EditorSessionState, c as ExportResult, P as PersistedEditorSnapshot } from './public-types-DrhlQ5Zy.cjs';
3
- import { O as OpenOptions, b as OpenResult, a as ExportOptions, R as ReopenBarrier, V as ValidateOptions, d as ValidationReport } from './types-DDPxEygX.cjs';
2
+ import { a as EditorSessionState, c as ExportResult, P as PersistedEditorSnapshot } from './public-types-BP3vqJR5.cjs';
3
+ import { O as OpenOptions, b as OpenResult, a as ExportOptions, R as ReopenBarrier, V as ValidateOptions, d as ValidationReport } from './types-Bg7D-GD3.cjs';
4
4
 
5
5
  /**
6
6
  * `DocxSession` — the Layer-01 package/session public entry class.
@@ -1,6 +1,6 @@
1
1
  import { C as CanonicalDocument } from './canonical-document-CXCFCbAz.js';
2
- import { a as EditorSessionState, c as ExportResult, P as PersistedEditorSnapshot } from './public-types-BEGhv2YR.js';
3
- import { O as OpenOptions, b as OpenResult, a as ExportOptions, R as ReopenBarrier, V as ValidateOptions, d as ValidationReport } from './types-BFT8536T.js';
2
+ import { a as EditorSessionState, c as ExportResult, P as PersistedEditorSnapshot } from './public-types-DdcHqcow.js';
3
+ import { O as OpenOptions, b as OpenResult, a as ExportOptions, R as ReopenBarrier, V as ValidateOptions, d as ValidationReport } from './types-bJAgMq1M.js';
4
4
 
5
5
  /**
6
6
  * `DocxSession` — the Layer-01 package/session public entry class.
@@ -1,7 +1,7 @@
1
- export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-Bp3zqnkS.cjs';
2
- export { L as LoadedDocxEditorSession, l as loadDocxSessionAsync } from './loader-CJXsswcd.cjs';
3
- export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, R as ReopenBarrier, V as ValidateOptions, c as ValidationFinding, d as ValidationReport, i as isReopenBarrier } from './types-DDPxEygX.cjs';
4
- export { E as EditorHostAdapter, a as EditorSessionState, b as ExportDocxOptions, c as ExportResult, L as LoadStage, P as PersistedEditorSnapshot } from './public-types-DrhlQ5Zy.cjs';
1
+ export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-Cq-fzx3B.cjs';
2
+ export { L as LoadedDocxEditorSession, l as loadDocxSessionAsync } from './loader-OoWJ1_17.cjs';
3
+ export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, R as ReopenBarrier, V as ValidateOptions, c as ValidationFinding, d as ValidationReport, i as isReopenBarrier } from './types-Bg7D-GD3.cjs';
4
+ export { E as EditorHostAdapter, a as EditorSessionState, b as ExportDocxOptions, c as ExportResult, L as LoadStage, P as PersistedEditorSnapshot } from './public-types-BP3vqJR5.cjs';
5
5
  import './canonical-document-CXCFCbAz.cjs';
6
6
  import 'react';
7
7
  import 'yjs';
package/dist/session.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-xMOU_NtL.js';
2
- export { L as LoadedDocxEditorSession, l as loadDocxSessionAsync } from './loader-B1MxvbeV.js';
3
- export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, R as ReopenBarrier, V as ValidateOptions, c as ValidationFinding, d as ValidationReport, i as isReopenBarrier } from './types-BFT8536T.js';
4
- export { E as EditorHostAdapter, a as EditorSessionState, b as ExportDocxOptions, c as ExportResult, L as LoadStage, P as PersistedEditorSnapshot } from './public-types-BEGhv2YR.js';
1
+ export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-DyFQt8Ph.js';
2
+ export { L as LoadedDocxEditorSession, l as loadDocxSessionAsync } from './loader-CS9-9KFa.js';
3
+ export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, R as ReopenBarrier, V as ValidateOptions, c as ValidationFinding, d as ValidationReport, i as isReopenBarrier } from './types-bJAgMq1M.js';
4
+ export { E as EditorHostAdapter, a as EditorSessionState, b as ExportDocxOptions, c as ExportResult, L as LoadStage, P as PersistedEditorSnapshot } from './public-types-DdcHqcow.js';
5
5
  import './canonical-document-CXCFCbAz.js';
6
6
  import 'react';
7
7
  import 'yjs';
@@ -1,5 +1,5 @@
1
1
  export { BreakpointMap, CollabAudienceChip, CollabAudienceChipProps, CollabNegotiationActionBar, CollabNegotiationActionBarProps, CollabPresenceStrip, CollabPresenceStripProps, CollabRoleChip, CollabRoleChipProps, CollabSendToSupplierButton, CollabSendToSupplierButtonProps, CollabSendToSupplierModal, CollabSendToSupplierModalProps, CollabSendToSupplierSubmitArgs, CollabTamperBanner, CollabTamperBannerProps, CommandPaletteGroup, CommandPaletteItem, CommentDecorationModel, CommentMarkdownRenderer, CommentMarkdownRendererProps, EditorKeyboardCallbacks, EditorKeyboardContext, MarkupDisplay, RailCardAvatar, RailCardCounter, RailCardProgress, RailCardTone, ReviewRailTab, RevisionDecorationModel, ShellHeaderIconAction, ShellHeaderMode, ShellHeaderModeOption, ShellHeaderPrimaryAction, TwAlertBanner, TwChromeOverlay, TwChromeOverlayProps, TwCommandPalette, TwCommandPaletteMount, TwCommandPaletteMountProps, TwCommandPaletteProps, TwCommentSidebar, TwCommentSidebarProps, TwEditorSurface, TwEditorSurfaceProps, TwHealthPanel, TwInlineToken, TwOpaqueBlock, TwParagraphBlock, TwPasteDropToast, TwPasteDropToastProps, TwRailCard, TwRailCardProps, TwReviewRail, TwReviewRailFooter, TwReviewRailFooterProps, TwReviewRailProps, TwReviewWorkspace, TwReviewWorkspaceProps, TwRevisionSidebar, TwScopeRailLayer, TwScopeRailLayerProps, TwSegmentView, TwSelectionToolbar, TwShellHeader, TwShellHeaderProps, TwStatusBar, TwToolbar, TwToolbarIconButton, TwToolbarProps, TwWorkflowTab, TwWorkflowTabProps, createCommentDecorationModel, createEditorKeyboardHandler, createRevisionDecorationModel, createSelectionSnapshot, getCommentHighlightClass, getCommentRangeState, getRevisionHighlightClass, getRevisionRangeState, isCommandPaletteOpenShortcut, renderTwCaret, resolveBreakpoint, selectionTouchesRange, shouldHideInCleanMode, useContainerBreakpoint } from './ui-tailwind.cjs';
2
- export { e_ as SessionCapabilities, eI as WorkspaceMode, eJ as ZoomLevel, fh as deriveCapabilities } from './public-types-DrhlQ5Zy.cjs';
2
+ export { e_ as SessionCapabilities, eI as WorkspaceMode, eJ as ZoomLevel, fh as deriveCapabilities } from './public-types-BP3vqJR5.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import 'yjs';
@@ -1,5 +1,5 @@
1
1
  export { BreakpointMap, CollabAudienceChip, CollabAudienceChipProps, CollabNegotiationActionBar, CollabNegotiationActionBarProps, CollabPresenceStrip, CollabPresenceStripProps, CollabRoleChip, CollabRoleChipProps, CollabSendToSupplierButton, CollabSendToSupplierButtonProps, CollabSendToSupplierModal, CollabSendToSupplierModalProps, CollabSendToSupplierSubmitArgs, CollabTamperBanner, CollabTamperBannerProps, CommandPaletteGroup, CommandPaletteItem, CommentDecorationModel, CommentMarkdownRenderer, CommentMarkdownRendererProps, EditorKeyboardCallbacks, EditorKeyboardContext, MarkupDisplay, RailCardAvatar, RailCardCounter, RailCardProgress, RailCardTone, ReviewRailTab, RevisionDecorationModel, ShellHeaderIconAction, ShellHeaderMode, ShellHeaderModeOption, ShellHeaderPrimaryAction, TwAlertBanner, TwChromeOverlay, TwChromeOverlayProps, TwCommandPalette, TwCommandPaletteMount, TwCommandPaletteMountProps, TwCommandPaletteProps, TwCommentSidebar, TwCommentSidebarProps, TwEditorSurface, TwEditorSurfaceProps, TwHealthPanel, TwInlineToken, TwOpaqueBlock, TwParagraphBlock, TwPasteDropToast, TwPasteDropToastProps, TwRailCard, TwRailCardProps, TwReviewRail, TwReviewRailFooter, TwReviewRailFooterProps, TwReviewRailProps, TwReviewWorkspace, TwReviewWorkspaceProps, TwRevisionSidebar, TwScopeRailLayer, TwScopeRailLayerProps, TwSegmentView, TwSelectionToolbar, TwShellHeader, TwShellHeaderProps, TwStatusBar, TwToolbar, TwToolbarIconButton, TwToolbarProps, TwWorkflowTab, TwWorkflowTabProps, createCommentDecorationModel, createEditorKeyboardHandler, createRevisionDecorationModel, createSelectionSnapshot, getCommentHighlightClass, getCommentRangeState, getRevisionHighlightClass, getRevisionRangeState, isCommandPaletteOpenShortcut, renderTwCaret, resolveBreakpoint, selectionTouchesRange, shouldHideInCleanMode, useContainerBreakpoint } from './ui-tailwind.js';
2
- export { e_ as SessionCapabilities, eI as WorkspaceMode, eJ as ZoomLevel, fh as deriveCapabilities } from './public-types-BEGhv2YR.js';
2
+ export { e_ as SessionCapabilities, eI as WorkspaceMode, eJ as ZoomLevel, fh as deriveCapabilities } from './public-types-DdcHqcow.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import 'yjs';
@@ -1,5 +1,5 @@
1
1
  import { C as CanonicalDocument, D as DocumentRootNode, d as PreservationStore } from './canonical-document-CXCFCbAz.cjs';
2
- import { E as EditorHostAdapter, L as LoadStage, o as EditorSurfaceSnapshot, p as LoadSchedulerBackend, a as EditorSessionState, q as CompatibilityReport, r as EditorError, t as ProtectionSnapshot, P as PersistedEditorSnapshot, b as ExportDocxOptions, c as ExportResult } from './public-types-DrhlQ5Zy.cjs';
2
+ import { E as EditorHostAdapter, L as LoadStage, o as EditorSurfaceSnapshot, p as LoadSchedulerBackend, a as EditorSessionState, q as CompatibilityReport, r as EditorError, t as ProtectionSnapshot, P as PersistedEditorSnapshot, b as ExportDocxOptions, c as ExportResult } from './public-types-BP3vqJR5.cjs';
3
3
 
4
4
  /**
5
5
  * Embedded-object classifier (hotfix/ole-digestibility-guard).
@@ -1,5 +1,5 @@
1
1
  import { C as CanonicalDocument, D as DocumentRootNode, d as PreservationStore } from './canonical-document-CXCFCbAz.js';
2
- import { E as EditorHostAdapter, L as LoadStage, o as EditorSurfaceSnapshot, p as LoadSchedulerBackend, a as EditorSessionState, q as CompatibilityReport, r as EditorError, t as ProtectionSnapshot, P as PersistedEditorSnapshot, b as ExportDocxOptions, c as ExportResult } from './public-types-BEGhv2YR.js';
2
+ import { E as EditorHostAdapter, L as LoadStage, o as EditorSurfaceSnapshot, p as LoadSchedulerBackend, a as EditorSessionState, q as CompatibilityReport, r as EditorError, t as ProtectionSnapshot, P as PersistedEditorSnapshot, b as ExportDocxOptions, c as ExportResult } from './public-types-DdcHqcow.js';
3
3
 
4
4
  /**
5
5
  * Embedded-object classifier (hotfix/ole-digestibility-guard).
@@ -1,6 +1,6 @@
1
1
  import { EditorState, Transaction, Plugin, PluginKey } from 'prosemirror-state';
2
- import { j as SearchOptions$1, k as SearchTextOptions } from '../../public-types-DrhlQ5Zy.cjs';
3
- export { l as SecondaryStorySearchResult, m as createSearchExcerpt, n as findSearchMatches, s as searchSecondaryStories } from '../../public-types-DrhlQ5Zy.cjs';
2
+ import { j as SearchOptions$1, k as SearchTextOptions } from '../../public-types-BP3vqJR5.cjs';
3
+ export { l as SecondaryStorySearchResult, m as createSearchExcerpt, n as findSearchMatches, s as searchSecondaryStories } from '../../public-types-BP3vqJR5.cjs';
4
4
  import 'react';
5
5
  import 'yjs';
6
6
  import 'y-protocols/awareness';
@@ -1,6 +1,6 @@
1
1
  import { EditorState, Transaction, Plugin, PluginKey } from 'prosemirror-state';
2
- import { j as SearchOptions$1, k as SearchTextOptions } from '../../public-types-BEGhv2YR.js';
3
- export { l as SecondaryStorySearchResult, m as createSearchExcerpt, n as findSearchMatches, s as searchSecondaryStories } from '../../public-types-BEGhv2YR.js';
2
+ import { j as SearchOptions$1, k as SearchTextOptions } from '../../public-types-DdcHqcow.js';
3
+ export { l as SecondaryStorySearchResult, m as createSearchExcerpt, n as findSearchMatches, s as searchSecondaryStories } from '../../public-types-DdcHqcow.js';
4
4
  import 'react';
5
5
  import 'yjs';
6
6
  import 'y-protocols/awareness';
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { b$ as CommentSidebarSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, c4 as CompatibilityPanelSnapshot, cB as EditorWarning, dn as RuntimeContextAnalyticsSnapshot, eV as ScopeRailSegment, ek as WorkflowBlockedCommandReason, c1 as CommentSidebarThreadSnapshot, eI as WorkspaceMode, eJ as ZoomLevel, eW as ChromePinSurface, eX as PinState, eY as FormattingAlignment, I as InsertTableOptions, dG as SectionBreakType, eZ as InsertImageOptions, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, cF as HeaderFooterLinkPatch, cx as EditorStoryTarget, R as RuntimeRenderSnapshot, cA as EditorViewStateSnapshot, e_ as SessionCapabilities, e$ as WordReviewEditorLayoutFacet, f0 as GeometryFacet, f1 as WorkflowFacet, f2 as EditorActionHostCallbacks, f3 as TwWorkspaceChromeHostController, f4 as FormattingStateSnapshot, bf as ActiveListContext, dT as StyleCatalogSnapshot, eG as WorkflowScopeSnapshot, cL as InteractionGuardSnapshot, eh as WordReviewEditorChromePreset, eg as WordReviewEditorChromeOptions, bF as CollabSession, b7 as TransportStatus, de as ReviewQueueSnapshot, f5 as UiObjectDragStartInput, f6 as UiObjectDragSession, f7 as ActiveSelectionToolModel, cd as DocumentNavigationSnapshot, f8 as TableStructureContextSnapshot, ei as WordReviewEditorChromeVisibility, f9 as EditorRole, eF as WorkflowScopeMode, dB as ScopeIssueAction, ck as EditorAnchorProjection, cz as EditorUser, h as SelectionSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, bZ as CommentPresentationSnapshot, bO as CommentBody, bQ as CommentMention, bM as CommentAttachment, fa as ToolbarChromeItemId, fb as ToolbarChromePlacement, dJ as SelectionToolKind, fc as ScopeRailPosture, fd as ChromePinsState, fe as PublicMeasurementFidelity, ff as FormattingInlineSelectionToolModel, b9 as PresenceSnapshot, b8 as CollabPosture, bN as CommentAudience, cU as MetadataIntegrity, bT as CommentNegotiationEntry, c_ as NegotiationRole, bR as CommentNegotiationAction, d0 as PageLayoutSnapshot, fg as EditableTargetRef } from './public-types-DrhlQ5Zy.cjs';
3
- export { fh as deriveCapabilities } from './public-types-DrhlQ5Zy.cjs';
2
+ import { b$ as CommentSidebarSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, c4 as CompatibilityPanelSnapshot, cB as EditorWarning, dn as RuntimeContextAnalyticsSnapshot, eV as ScopeRailSegment, ek as WorkflowBlockedCommandReason, c1 as CommentSidebarThreadSnapshot, eI as WorkspaceMode, eJ as ZoomLevel, eW as ChromePinSurface, eX as PinState, eY as FormattingAlignment, I as InsertTableOptions, dG as SectionBreakType, eZ as InsertImageOptions, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, cF as HeaderFooterLinkPatch, cx as EditorStoryTarget, R as RuntimeRenderSnapshot, cA as EditorViewStateSnapshot, e_ as SessionCapabilities, e$ as WordReviewEditorLayoutFacet, f0 as GeometryFacet, f1 as WorkflowFacet, f2 as EditorActionHostCallbacks, f3 as TwWorkspaceChromeHostController, f4 as FormattingStateSnapshot, bf as ActiveListContext, dT as StyleCatalogSnapshot, eG as WorkflowScopeSnapshot, cL as InteractionGuardSnapshot, eh as WordReviewEditorChromePreset, eg as WordReviewEditorChromeOptions, bF as CollabSession, b7 as TransportStatus, de as ReviewQueueSnapshot, f5 as UiObjectDragStartInput, f6 as UiObjectDragSession, f7 as ActiveSelectionToolModel, cd as DocumentNavigationSnapshot, f8 as TableStructureContextSnapshot, ei as WordReviewEditorChromeVisibility, f9 as EditorRole, eF as WorkflowScopeMode, dB as ScopeIssueAction, ck as EditorAnchorProjection, cz as EditorUser, h as SelectionSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, bZ as CommentPresentationSnapshot, bO as CommentBody, bQ as CommentMention, bM as CommentAttachment, fa as ToolbarChromeItemId, fb as ToolbarChromePlacement, dJ as SelectionToolKind, fc as ScopeRailPosture, fd as ChromePinsState, fe as PublicMeasurementFidelity, ff as FormattingInlineSelectionToolModel, b9 as PresenceSnapshot, b8 as CollabPosture, bN as CommentAudience, cU as MetadataIntegrity, bT as CommentNegotiationEntry, c_ as NegotiationRole, bR as CommentNegotiationAction, d0 as PageLayoutSnapshot, fg as EditableTargetRef } from './public-types-BP3vqJR5.cjs';
3
+ export { fh as deriveCapabilities } from './public-types-BP3vqJR5.cjs';
4
4
  import * as React$1 from 'react';
5
5
  import React__default, { ReactNode, FocusEventHandler, Ref, KeyboardEvent as KeyboardEvent$1 } from 'react';
6
6
  import 'yjs';
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { b$ as CommentSidebarSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, c4 as CompatibilityPanelSnapshot, cB as EditorWarning, dn as RuntimeContextAnalyticsSnapshot, eV as ScopeRailSegment, ek as WorkflowBlockedCommandReason, c1 as CommentSidebarThreadSnapshot, eI as WorkspaceMode, eJ as ZoomLevel, eW as ChromePinSurface, eX as PinState, eY as FormattingAlignment, I as InsertTableOptions, dG as SectionBreakType, eZ as InsertImageOptions, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, cF as HeaderFooterLinkPatch, cx as EditorStoryTarget, R as RuntimeRenderSnapshot, cA as EditorViewStateSnapshot, e_ as SessionCapabilities, e$ as WordReviewEditorLayoutFacet, f0 as GeometryFacet, f1 as WorkflowFacet, f2 as EditorActionHostCallbacks, f3 as TwWorkspaceChromeHostController, f4 as FormattingStateSnapshot, bf as ActiveListContext, dT as StyleCatalogSnapshot, eG as WorkflowScopeSnapshot, cL as InteractionGuardSnapshot, eh as WordReviewEditorChromePreset, eg as WordReviewEditorChromeOptions, bF as CollabSession, b7 as TransportStatus, de as ReviewQueueSnapshot, f5 as UiObjectDragStartInput, f6 as UiObjectDragSession, f7 as ActiveSelectionToolModel, cd as DocumentNavigationSnapshot, f8 as TableStructureContextSnapshot, ei as WordReviewEditorChromeVisibility, f9 as EditorRole, eF as WorkflowScopeMode, dB as ScopeIssueAction, ck as EditorAnchorProjection, cz as EditorUser, h as SelectionSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, bZ as CommentPresentationSnapshot, bO as CommentBody, bQ as CommentMention, bM as CommentAttachment, fa as ToolbarChromeItemId, fb as ToolbarChromePlacement, dJ as SelectionToolKind, fc as ScopeRailPosture, fd as ChromePinsState, fe as PublicMeasurementFidelity, ff as FormattingInlineSelectionToolModel, b9 as PresenceSnapshot, b8 as CollabPosture, bN as CommentAudience, cU as MetadataIntegrity, bT as CommentNegotiationEntry, c_ as NegotiationRole, bR as CommentNegotiationAction, d0 as PageLayoutSnapshot, fg as EditableTargetRef } from './public-types-BEGhv2YR.js';
3
- export { fh as deriveCapabilities } from './public-types-BEGhv2YR.js';
2
+ import { b$ as CommentSidebarSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, c4 as CompatibilityPanelSnapshot, cB as EditorWarning, dn as RuntimeContextAnalyticsSnapshot, eV as ScopeRailSegment, ek as WorkflowBlockedCommandReason, c1 as CommentSidebarThreadSnapshot, eI as WorkspaceMode, eJ as ZoomLevel, eW as ChromePinSurface, eX as PinState, eY as FormattingAlignment, I as InsertTableOptions, dG as SectionBreakType, eZ as InsertImageOptions, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, cF as HeaderFooterLinkPatch, cx as EditorStoryTarget, R as RuntimeRenderSnapshot, cA as EditorViewStateSnapshot, e_ as SessionCapabilities, e$ as WordReviewEditorLayoutFacet, f0 as GeometryFacet, f1 as WorkflowFacet, f2 as EditorActionHostCallbacks, f3 as TwWorkspaceChromeHostController, f4 as FormattingStateSnapshot, bf as ActiveListContext, dT as StyleCatalogSnapshot, eG as WorkflowScopeSnapshot, cL as InteractionGuardSnapshot, eh as WordReviewEditorChromePreset, eg as WordReviewEditorChromeOptions, bF as CollabSession, b7 as TransportStatus, de as ReviewQueueSnapshot, f5 as UiObjectDragStartInput, f6 as UiObjectDragSession, f7 as ActiveSelectionToolModel, cd as DocumentNavigationSnapshot, f8 as TableStructureContextSnapshot, ei as WordReviewEditorChromeVisibility, f9 as EditorRole, eF as WorkflowScopeMode, dB as ScopeIssueAction, ck as EditorAnchorProjection, cz as EditorUser, h as SelectionSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, bZ as CommentPresentationSnapshot, bO as CommentBody, bQ as CommentMention, bM as CommentAttachment, fa as ToolbarChromeItemId, fb as ToolbarChromePlacement, dJ as SelectionToolKind, fc as ScopeRailPosture, fd as ChromePinsState, fe as PublicMeasurementFidelity, ff as FormattingInlineSelectionToolModel, b9 as PresenceSnapshot, b8 as CollabPosture, bN as CommentAudience, cU as MetadataIntegrity, bT as CommentNegotiationEntry, c_ as NegotiationRole, bR as CommentNegotiationAction, d0 as PageLayoutSnapshot, fg as EditableTargetRef } from './public-types-DdcHqcow.js';
3
+ export { fh as deriveCapabilities } from './public-types-DdcHqcow.js';
4
4
  import * as React$1 from 'react';
5
5
  import React__default, { ReactNode, FocusEventHandler, Ref, KeyboardEvent as KeyboardEvent$1 } from 'react';
6
6
  import 'yjs';