@beyondwork/docx-react-component 1.0.126 → 1.0.128

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 (59) 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 +507 -24
  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-GL7XRYBY.js → chunk-6EROGFUF.js} +29 -13
  8. package/dist/{chunk-6IGWPAR4.js → chunk-LCYYR57Q.js} +462 -24
  9. package/dist/{chunk-4G3OS2H6.js → chunk-LZVBNDGU.js} +3 -0
  10. package/dist/{chunk-FPRWV54X.js → chunk-XRACP43Q.js} +46 -1
  11. package/dist/core/commands/formatting-commands.d.cts +1 -1
  12. package/dist/core/commands/formatting-commands.d.ts +1 -1
  13. package/dist/core/commands/image-commands.d.cts +1 -1
  14. package/dist/core/commands/image-commands.d.ts +1 -1
  15. package/dist/core/commands/section-layout-commands.d.cts +1 -1
  16. package/dist/core/commands/section-layout-commands.d.ts +1 -1
  17. package/dist/core/commands/style-commands.d.cts +1 -1
  18. package/dist/core/commands/style-commands.d.ts +1 -1
  19. package/dist/core/commands/table-structure-commands.d.cts +1 -1
  20. package/dist/core/commands/table-structure-commands.d.ts +1 -1
  21. package/dist/core/commands/text-commands.cjs +3 -0
  22. package/dist/core/commands/text-commands.d.cts +2 -1
  23. package/dist/core/commands/text-commands.d.ts +2 -1
  24. package/dist/core/commands/text-commands.js +1 -1
  25. package/dist/core/selection/mapping.d.cts +1 -1
  26. package/dist/core/selection/mapping.d.ts +1 -1
  27. package/dist/core/state/editor-state.d.cts +1 -1
  28. package/dist/core/state/editor-state.d.ts +1 -1
  29. package/dist/index.cjs +549 -37
  30. package/dist/index.d.cts +4 -4
  31. package/dist/index.d.ts +4 -4
  32. package/dist/index.js +16 -6
  33. package/dist/io/docx-session.d.cts +3 -3
  34. package/dist/io/docx-session.d.ts +3 -3
  35. package/dist/{loader-CS9-9KFa.d.ts → loader-19ct2Be0.d.ts} +2 -2
  36. package/dist/{loader-OoWJ1_17.d.cts → loader-CoXQ2wGd.d.cts} +2 -2
  37. package/dist/{public-types-DdcHqcow.d.ts → public-types-7KZsNGE2.d.ts} +93 -0
  38. package/dist/{public-types-BP3vqJR5.d.cts → public-types-B-CskQen.d.cts} +93 -0
  39. package/dist/public-types.d.cts +1 -1
  40. package/dist/public-types.d.ts +1 -1
  41. package/dist/runtime/collab.d.cts +2 -2
  42. package/dist/runtime/collab.d.ts +2 -2
  43. package/dist/runtime/document-runtime.cjs +76 -12
  44. package/dist/runtime/document-runtime.d.cts +1 -1
  45. package/dist/runtime/document-runtime.d.ts +1 -1
  46. package/dist/runtime/document-runtime.js +3 -3
  47. package/dist/{session-Cq-fzx3B.d.cts → session-B5015J4v.d.cts} +2 -2
  48. package/dist/{session-DyFQt8Ph.d.ts → session-C2i8-d6v.d.ts} +2 -2
  49. package/dist/session.d.cts +4 -4
  50. package/dist/session.d.ts +4 -4
  51. package/dist/tailwind.d.cts +1 -1
  52. package/dist/tailwind.d.ts +1 -1
  53. package/dist/{types-Bg7D-GD3.d.cts → types-DNhN0WeN.d.cts} +1 -1
  54. package/dist/{types-bJAgMq1M.d.ts → types-yvrQuGX9.d.ts} +1 -1
  55. package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +2 -2
  56. package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +2 -2
  57. package/dist/ui-tailwind.d.cts +2 -2
  58. package/dist/ui-tailwind.d.ts +2 -2
  59. package/package.json +1 -1
@@ -15796,6 +15796,9 @@ function splitParagraph(document2, selection, context) {
15796
15796
  if (scope?.kind !== "top-level") {
15797
15797
  return result;
15798
15798
  }
15799
+ if (context.preserveNumberingOnSplit && scope.paragraph.numbering) {
15800
+ return result;
15801
+ }
15799
15802
  const originalStyleId = scope.paragraph.styleId;
15800
15803
  const nextStyleId = originalStyleId !== void 0 ? resolveNextStyle(originalStyleId, document2.styles) : void 0;
15801
15804
  if (nextStyleId !== void 0) {
@@ -38280,7 +38283,52 @@ function compileReplacement(inputs) {
38280
38283
 
38281
38284
  // src/runtime/scopes/replacement/apply.ts
38282
38285
  function documentHash2(doc) {
38283
- return JSON.stringify(doc.content);
38286
+ let hash = 2166136261;
38287
+ const mix = (value) => {
38288
+ for (let i = 0; i < value.length; i += 1) {
38289
+ hash ^= value.charCodeAt(i);
38290
+ hash = Math.imul(hash, 16777619);
38291
+ }
38292
+ };
38293
+ const visit = (value) => {
38294
+ if (value === null) {
38295
+ mix("null");
38296
+ return;
38297
+ }
38298
+ switch (typeof value) {
38299
+ case "string":
38300
+ case "number":
38301
+ case "boolean":
38302
+ case "bigint":
38303
+ mix(`${typeof value}:${String(value)}`);
38304
+ return;
38305
+ case "undefined":
38306
+ mix("undefined");
38307
+ return;
38308
+ case "object":
38309
+ if (Array.isArray(value)) {
38310
+ mix(`[${value.length}`);
38311
+ for (const item of value) visit(item);
38312
+ mix("]");
38313
+ return;
38314
+ }
38315
+ {
38316
+ const record = value;
38317
+ const keys = Object.keys(record).sort();
38318
+ mix(`{${keys.length}`);
38319
+ for (const key of keys) {
38320
+ mix(key);
38321
+ visit(record[key]);
38322
+ }
38323
+ mix("}");
38324
+ }
38325
+ return;
38326
+ default:
38327
+ mix(typeof value);
38328
+ }
38329
+ };
38330
+ visit(doc.content);
38331
+ return (hash >>> 0).toString(36).padStart(7, "0");
38284
38332
  }
38285
38333
  function compileScopeById(document2, overlay, scopeId) {
38286
38334
  const paragraphIndexByBlockIndex = buildParagraphIndexMap(document2);
@@ -55046,15 +55094,17 @@ function createDocumentRuntime(options) {
55046
55094
  ...resolution.textTarget ? { textTarget: resolution.textTarget } : {}
55047
55095
  };
55048
55096
  }
55049
- function prepareFragmentInsertCommandForExecution(command, document2, surface, storyTarget) {
55097
+ function prepareFragmentInsertCommandForExecution(command, document2, surface, storyTarget, selection) {
55050
55098
  if (!command.editableTarget) {
55051
- return { kind: "accepted", selection: state.selection };
55099
+ return { kind: "accepted", selection };
55052
55100
  }
55101
+ const preserveCallerSelection = command.editableTarget.listAddress?.operationScope === "list-text";
55053
55102
  const resolution = resolveEditableTextTarget({
55054
55103
  document: document2,
55055
55104
  surface,
55056
55105
  target: command.editableTarget,
55057
55106
  activeStoryKey: canonicalEditableTargetStoryKey(storyTarget),
55107
+ ...preserveCallerSelection ? { selection } : {},
55058
55108
  editableTargetCache: editableTargetBlockCache
55059
55109
  });
55060
55110
  if (resolution.kind === "rejected") {
@@ -55072,7 +55122,7 @@ function createDocumentRuntime(options) {
55072
55122
  }
55073
55123
  return {
55074
55124
  kind: "accepted",
55075
- selection: createSelectionSnapshot(resolution.range.from, resolution.range.to),
55125
+ selection: preserveCallerSelection ? selection : createSelectionSnapshot(resolution.range.from, resolution.range.to),
55076
55126
  ...resolution.textTarget ? { textTarget: resolution.textTarget } : {}
55077
55127
  };
55078
55128
  }
@@ -55244,7 +55294,8 @@ function createDocumentRuntime(options) {
55244
55294
  command,
55245
55295
  state.document,
55246
55296
  cachedRenderSnapshot.surface?.blocks ?? [],
55247
- activeStory
55297
+ activeStory,
55298
+ commandSelection
55248
55299
  );
55249
55300
  if (prepared.kind === "rejected") {
55250
55301
  return;
@@ -55407,7 +55458,8 @@ function createDocumentRuntime(options) {
55407
55458
  command,
55408
55459
  replayState.document,
55409
55460
  replaySnapshot.surface?.blocks ?? [],
55410
- replayStory
55461
+ replayStory,
55462
+ replayState.selection
55411
55463
  );
55412
55464
  if (prepared.kind === "rejected") {
55413
55465
  return;
@@ -55550,7 +55602,8 @@ function createDocumentRuntime(options) {
55550
55602
  command,
55551
55603
  stateForCommand.document,
55552
55604
  snapshotForCommand.surface?.blocks ?? [],
55553
- replayStory
55605
+ replayStory,
55606
+ stateForCommand.selection
55554
55607
  );
55555
55608
  if (prepared.kind === "rejected") {
55556
55609
  continue;
@@ -56114,7 +56167,7 @@ function createDocumentRuntime(options) {
56114
56167
  try {
56115
56168
  const timestamp = clock();
56116
56169
  const selection = target ? createSelectionFromPublicAnchor(target) : state.selection;
56117
- const editableTarget = editContext?.editableTarget && isTableParagraphEditableTarget(editContext.editableTarget) ? editContext.editableTarget : inferEditableTargetForFragmentInsert(
56170
+ const editableTarget = editContext?.editableTarget && isFragmentInsertEditableTarget(editContext.editableTarget) ? editContext.editableTarget : inferEditableTargetForFragmentInsert(
56118
56171
  cachedRenderSnapshot.surface?.blocks ?? [],
56119
56172
  selection
56120
56173
  );
@@ -57921,7 +57974,8 @@ function createDocumentRuntime(options) {
57921
57974
  blockedReasons: [blockedReason]
57922
57975
  });
57923
57976
  }
57924
- const textTarget = targetResolution?.kind === "accepted" ? targetResolution.textTarget : legacyTextTarget;
57977
+ const listBoundaryDeleteUsesStoryText = targetResolution?.kind === "accepted" && editableTarget?.listAddress?.operationScope === "list-text" && isTopLevelMainStoryBlockPath(editableTarget.blockPath) && selection.isCollapsed && (commandForDispatch.type === "text.delete-backward" && selection.anchor === targetResolution.range.from || commandForDispatch.type === "text.delete-forward" && selection.anchor === targetResolution.range.to);
57978
+ const textTarget = targetResolution?.kind === "accepted" && !listBoundaryDeleteUsesStoryText ? targetResolution.textTarget : legacyTextTarget;
57925
57979
  const context = {
57926
57980
  timestamp,
57927
57981
  documentMode: textOptions.documentModeOverride ?? workflowCoordinator.getEffectiveDocumentMode(selection),
@@ -57931,6 +57985,7 @@ function createDocumentRuntime(options) {
57931
57985
  editableTargetCache: editableTargetBlockCache,
57932
57986
  activeStorySize: cachedRenderSnapshot.surface?.storySize,
57933
57987
  textTarget,
57988
+ preserveNumberingOnSplit: (commandForDispatch.type === "paragraph.split" || commandForDispatch.type === "fragment.insert") && targetResolution?.kind === "accepted" && editableTarget?.listAddress?.operationScope === "list-text",
57934
57989
  rejectTargetlessTableStructureInsert: true
57935
57990
  };
57936
57991
  const baseState = selection === state.selection ? state : {
@@ -58752,7 +58807,7 @@ function canonicalEditableTargetStoryKey(storyTarget) {
58752
58807
  function inferEditableTargetForFragmentInsert(blocks, selection) {
58753
58808
  const position = Math.min(selection.anchor, selection.head);
58754
58809
  const target = findEditableTargetAtSurfacePosition(blocks, position);
58755
- return target && isTableParagraphEditableTarget(target) ? target : void 0;
58810
+ return target && isFragmentInsertEditableTarget(target) ? target : void 0;
58756
58811
  }
58757
58812
  function findEditableTargetAtSurfacePosition(blocks, position) {
58758
58813
  for (const block of blocks) {
@@ -58781,8 +58836,14 @@ function findEditableTargetInSurfaceCell(cell, position) {
58781
58836
  }
58782
58837
  return findEditableTargetAtSurfacePosition(cell.content, position);
58783
58838
  }
58784
- function isTableParagraphEditableTarget(target) {
58785
- return target.editability === "editable" && target.posture.blockers.length === 0 && target.commandFamily === "text-leaf" && (target.kind === "table-cell-paragraph-text" || target.kind === "nested-table-cell-paragraph-text" || target.kind === "sdt-table-cell-paragraph-text");
58839
+ function isFragmentInsertEditableTarget(target) {
58840
+ if (target.editability !== "editable" || target.posture.blockers.length > 0 || target.commandFamily !== "text-leaf") {
58841
+ return false;
58842
+ }
58843
+ if (target.listAddress?.operationScope === "list-text") {
58844
+ return true;
58845
+ }
58846
+ return target.kind === "table-cell-paragraph-text" || target.kind === "nested-table-cell-paragraph-text" || target.kind === "sdt-table-cell-paragraph-text";
58786
58847
  }
58787
58848
  function extractSelectionFragment(document2, selection, activeStory) {
58788
58849
  const from = Math.min(selection.anchor, selection.head);
@@ -60788,6 +60849,9 @@ function stripStoryTarget(selection) {
60788
60849
  const { storyTarget: _storyTarget, ...rest } = selection;
60789
60850
  return rest;
60790
60851
  }
60852
+ function isTopLevelMainStoryBlockPath(blockPath) {
60853
+ return typeof blockPath === "string" && /^main\/block\[\d+\]$/u.test(blockPath);
60854
+ }
60791
60855
  function toInternalSelectionSnapshot2(selection) {
60792
60856
  return {
60793
60857
  anchor: selection.anchor,
@@ -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-BP3vqJR5.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-B-CskQen.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-DdcHqcow.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-7KZsNGE2.js';
2
2
  import '../canonical-document-CXCFCbAz.js';
3
3
  import 'react';
4
4
  import 'yjs';
@@ -4,18 +4,18 @@ import {
4
4
  __fontFamiliesEqual,
5
5
  createDocumentRuntime,
6
6
  getThemeColorResolver
7
- } from "../chunk-GL7XRYBY.js";
7
+ } from "../chunk-6EROGFUF.js";
8
8
  import "../chunk-6EXNNAO6.js";
9
9
  import "../chunk-M6XR534O.js";
10
10
  import "../chunk-YD2JE54B.js";
11
- import "../chunk-4G3OS2H6.js";
11
+ import "../chunk-LZVBNDGU.js";
12
12
  import "../chunk-Y4XZCMCS.js";
13
13
  import "../chunk-6F5QW44A.js";
14
14
  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-FPRWV54X.js";
18
+ import "../chunk-XRACP43Q.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-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';
2
+ import { a as EditorSessionState, c as ExportResult, P as PersistedEditorSnapshot } from './public-types-B-CskQen.cjs';
3
+ import { O as OpenOptions, b as OpenResult, a as ExportOptions, R as ReopenBarrier, V as ValidateOptions, d as ValidationReport } from './types-DNhN0WeN.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-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';
2
+ import { a as EditorSessionState, c as ExportResult, P as PersistedEditorSnapshot } from './public-types-7KZsNGE2.js';
3
+ import { O as OpenOptions, b as OpenResult, a as ExportOptions, R as ReopenBarrier, V as ValidateOptions, d as ValidationReport } from './types-yvrQuGX9.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-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';
1
+ export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-B5015J4v.cjs';
2
+ export { L as LoadedDocxEditorSession, l as loadDocxSessionAsync } from './loader-CoXQ2wGd.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-DNhN0WeN.cjs';
4
+ export { E as EditorHostAdapter, a as EditorSessionState, b as ExportDocxOptions, c as ExportResult, L as LoadStage, P as PersistedEditorSnapshot } from './public-types-B-CskQen.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-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';
1
+ export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-C2i8-d6v.js';
2
+ export { L as LoadedDocxEditorSession, l as loadDocxSessionAsync } from './loader-19ct2Be0.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-yvrQuGX9.js';
4
+ export { E as EditorHostAdapter, a as EditorSessionState, b as ExportDocxOptions, c as ExportResult, L as LoadStage, P as PersistedEditorSnapshot } from './public-types-7KZsNGE2.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-BP3vqJR5.cjs';
2
+ export { e_ as SessionCapabilities, eI as WorkspaceMode, eJ as ZoomLevel, fh as deriveCapabilities } from './public-types-B-CskQen.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-DdcHqcow.js';
2
+ export { e_ as SessionCapabilities, eI as WorkspaceMode, eJ as ZoomLevel, fh as deriveCapabilities } from './public-types-7KZsNGE2.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-BP3vqJR5.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-B-CskQen.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-DdcHqcow.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-7KZsNGE2.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-BP3vqJR5.cjs';
3
- export { l as SecondaryStorySearchResult, m as createSearchExcerpt, n as findSearchMatches, s as searchSecondaryStories } from '../../public-types-BP3vqJR5.cjs';
2
+ import { j as SearchOptions$1, k as SearchTextOptions } from '../../public-types-B-CskQen.cjs';
3
+ export { l as SecondaryStorySearchResult, m as createSearchExcerpt, n as findSearchMatches, s as searchSecondaryStories } from '../../public-types-B-CskQen.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-DdcHqcow.js';
3
- export { l as SecondaryStorySearchResult, m as createSearchExcerpt, n as findSearchMatches, s as searchSecondaryStories } from '../../public-types-DdcHqcow.js';
2
+ import { j as SearchOptions$1, k as SearchTextOptions } from '../../public-types-7KZsNGE2.js';
3
+ export { l as SecondaryStorySearchResult, m as createSearchExcerpt, n as findSearchMatches, s as searchSecondaryStories } from '../../public-types-7KZsNGE2.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-BP3vqJR5.cjs';
3
- export { fh as deriveCapabilities } from './public-types-BP3vqJR5.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-B-CskQen.cjs';
3
+ export { fh as deriveCapabilities } from './public-types-B-CskQen.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-DdcHqcow.js';
3
- export { fh as deriveCapabilities } from './public-types-DdcHqcow.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-7KZsNGE2.js';
3
+ export { fh as deriveCapabilities } from './public-types-7KZsNGE2.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';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beyondwork/docx-react-component",
3
3
  "publisher": "beyondwork",
4
- "version": "1.0.126",
4
+ "version": "1.0.128",
5
5
  "description": "Embeddable React Word (docx) editor with review, comments, tracked changes, and round-trip OOXML fidelity.",
6
6
  "type": "module",
7
7
  "sideEffects": [