@beyondwork/docx-react-component 1.0.136 → 1.0.137

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 +645 -21
  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-NX7W6T7L.js → chunk-M3AEVSKU.js} +626 -21
  8. package/dist/{chunk-HUWZ7AHE.js → chunk-NYIMPM3Z.js} +20 -1
  9. package/dist/{chunk-JZZKTL7K.js → chunk-SMBDQV73.js} +141 -80
  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 +808 -111
  27. package/dist/index.d.cts +4 -4
  28. package/dist/index.d.ts +4 -4
  29. package/dist/index.js +26 -14
  30. package/dist/io/docx-session.d.cts +3 -3
  31. package/dist/io/docx-session.d.ts +3 -3
  32. package/dist/{loader-Cr35kVUi.d.cts → loader-BB7tRkY2.d.cts} +2 -2
  33. package/dist/{loader-uGY6nDZP.d.ts → loader-DGPbaboy.d.ts} +2 -2
  34. package/dist/{public-types-CSSH2Whc.d.cts → public-types-CIvw1GQa.d.cts} +126 -1
  35. package/dist/{public-types-8kVIB5HW.d.ts → public-types-COCDrgVX.d.ts} +126 -1
  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 +160 -80
  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-Beg8ihOi.d.cts → session-CVU-rtCd.d.cts} +2 -2
  45. package/dist/{session-Dgp-2uYw.d.ts → session-DOqy1-Lf.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-Cin_abw3.d.ts → types-CB_tOnVp.d.ts} +1 -1
  51. package/dist/{types-qsS39ZkQ.d.cts → types-CZAll7OS.d.cts} +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
@@ -2189,13 +2189,32 @@ function storyKeyFromHandle(handle) {
2189
2189
  function textLeafEditableTargetHint(entry, semanticBlockRange) {
2190
2190
  const storyKey = storyKeyFromHandle(entry.handle);
2191
2191
  if (!storyKey) return void 0;
2192
+ const semanticBlockPath = textLeafBlockPathFromSemanticPath(entry.handle.semanticPath, storyKey);
2192
2193
  return {
2193
2194
  kind: "text-leaf",
2194
2195
  storyKey,
2195
- blockPath: `${storyKey}/block[${entry.blockIndex}]`,
2196
+ blockPath: semanticBlockPath ?? `${storyKey}/block[${entry.blockIndex}]`,
2196
2197
  semanticBlockRange
2197
2198
  };
2198
2199
  }
2200
+ function textLeafBlockPathFromSemanticPath(semanticPath, storyKey) {
2201
+ if (!semanticPath) return null;
2202
+ const tableIndex = semanticPath.indexOf("table");
2203
+ const rowIndex = semanticPath.indexOf("row", tableIndex + 1);
2204
+ const cellIndex = semanticPath.indexOf("cell", rowIndex + 1);
2205
+ const paragraphIndex = semanticPath.indexOf("paragraph", cellIndex + 1);
2206
+ if (tableIndex < 0 || rowIndex < 0 || cellIndex < 0 || paragraphIndex < 0) {
2207
+ return null;
2208
+ }
2209
+ const table = Number(semanticPath[tableIndex + 1]);
2210
+ const row = Number(semanticPath[rowIndex + 1]);
2211
+ const cell = Number(semanticPath[cellIndex + 1]);
2212
+ const paragraph = Number(semanticPath[paragraphIndex + 1]);
2213
+ if (!Number.isInteger(table) || !Number.isInteger(row) || !Number.isInteger(cell) || !Number.isInteger(paragraph)) {
2214
+ return null;
2215
+ }
2216
+ return `${storyKey}/block[${table}]/row[${row}]/cell[${cell}]/block[${paragraph}]`;
2217
+ }
2199
2218
  function compileParagraphReplacement(entry, proposed, options) {
2200
2219
  if (proposed.operation !== "replace" && proposed.operation !== "insert-before" && proposed.operation !== "insert-after") {
2201
2220
  return null;
@@ -84,7 +84,7 @@ import {
84
84
  sameScopeParagraphPath,
85
85
  serializeFragmentToWordML,
86
86
  setStartOverride
87
- } from "./chunk-HUWZ7AHE.js";
87
+ } from "./chunk-NYIMPM3Z.js";
88
88
  import {
89
89
  ISSUE_METADATA_ID,
90
90
  LAYOUT_ENGINE_VERSION,
@@ -8436,81 +8436,83 @@ function createWorkflowCoordinator(deps) {
8436
8436
  }
8437
8437
  function addScopes(paramsList) {
8438
8438
  if (paramsList.length === 0) return [];
8439
- let nextDocument = deps.getDocument();
8440
- let documentChanged = false;
8441
- const results = [];
8442
- const scopesToAdd = [];
8443
- const metadataEntriesToAdd = [];
8444
- const newScopeIds = /* @__PURE__ */ new Set();
8445
- for (const params of paramsList) {
8446
- const scopeId = params.scopeId ?? `scope-${clock().replace(/[^0-9]/gu, "")}-${Math.floor(Math.random() * 1e6)}`;
8447
- const anchor = params.anchor.kind === "range" ? { from: params.anchor.from, to: params.anchor.to } : null;
8448
- if (!anchor) {
8449
- results.push({ scopeId, anchor: params.anchor });
8450
- continue;
8439
+ return deps.runInRuntimeBatch("workflow.addScopes", () => {
8440
+ let nextDocument = deps.getDocument();
8441
+ let documentChanged = false;
8442
+ const results = [];
8443
+ const scopesToAdd = [];
8444
+ const metadataEntriesToAdd = [];
8445
+ const newScopeIds = /* @__PURE__ */ new Set();
8446
+ for (const params of paramsList) {
8447
+ const scopeId = params.scopeId ?? `scope-${clock().replace(/[^0-9]/gu, "")}-${Math.floor(Math.random() * 1e6)}`;
8448
+ const anchor = params.anchor.kind === "range" ? { from: params.anchor.from, to: params.anchor.to } : null;
8449
+ if (!anchor) {
8450
+ results.push({ scopeId, anchor: params.anchor });
8451
+ continue;
8452
+ }
8453
+ const callerAssoc = params.anchor.kind === "range" ? params.anchor.assoc : { start: -1, end: 1 };
8454
+ const plantResult = insertScopeMarkers(nextDocument, {
8455
+ scopeId,
8456
+ from: anchor.from,
8457
+ to: anchor.to
8458
+ });
8459
+ if (plantResult.status !== "planted") {
8460
+ results.push(
8461
+ createPlantFailureResult({
8462
+ scopeId,
8463
+ anchor,
8464
+ assoc: callerAssoc,
8465
+ plantResult
8466
+ })
8467
+ );
8468
+ continue;
8469
+ }
8470
+ nextDocument = plantResult.document;
8471
+ documentChanged = true;
8472
+ const publicAnchor = {
8473
+ kind: "range",
8474
+ from: plantResult.plantedRange.from,
8475
+ to: plantResult.plantedRange.to,
8476
+ assoc: callerAssoc
8477
+ };
8478
+ newScopeIds.add(scopeId);
8479
+ scopesToAdd.push(buildWorkflowScope({ params, scopeId, publicAnchor }));
8480
+ const entry = buildWorkflowMetadataEntry({ params, scopeId, publicAnchor });
8481
+ if (entry) metadataEntriesToAdd.push(entry);
8482
+ results.push({ scopeId, anchor: publicAnchor });
8451
8483
  }
8452
- const callerAssoc = params.anchor.kind === "range" ? params.anchor.assoc : { start: -1, end: 1 };
8453
- const plantResult = insertScopeMarkers(nextDocument, {
8454
- scopeId,
8455
- from: anchor.from,
8456
- to: anchor.to
8457
- });
8458
- if (plantResult.status !== "planted") {
8459
- results.push(
8460
- createPlantFailureResult({
8461
- scopeId,
8462
- anchor,
8463
- assoc: callerAssoc,
8464
- plantResult
8465
- })
8484
+ if (documentChanged) {
8485
+ deps.dispatch({
8486
+ type: "document.replace",
8487
+ document: nextDocument,
8488
+ mapping: createScopeMarkerMutationMapping(),
8489
+ origin: { source: "api", at: clock() }
8490
+ });
8491
+ }
8492
+ if (scopesToAdd.length > 0) {
8493
+ const currentOverlay = overlayStore.getOverlay() ?? {
8494
+ overlayVersion: "workflow-overlay/1",
8495
+ scopes: []
8496
+ };
8497
+ const existingScopes = currentOverlay.scopes.filter(
8498
+ (existing) => !newScopeIds.has(existing.scopeId)
8466
8499
  );
8467
- continue;
8500
+ deps.dispatch({
8501
+ type: "workflow.set-overlay",
8502
+ overlay: { ...currentOverlay, scopes: [...existingScopes, ...scopesToAdd] },
8503
+ origin: { source: "api", at: clock() }
8504
+ });
8468
8505
  }
8469
- nextDocument = plantResult.document;
8470
- documentChanged = true;
8471
- const publicAnchor = {
8472
- kind: "range",
8473
- from: plantResult.plantedRange.from,
8474
- to: plantResult.plantedRange.to,
8475
- assoc: callerAssoc
8476
- };
8477
- newScopeIds.add(scopeId);
8478
- scopesToAdd.push(buildWorkflowScope({ params, scopeId, publicAnchor }));
8479
- const entry = buildWorkflowMetadataEntry({ params, scopeId, publicAnchor });
8480
- if (entry) metadataEntriesToAdd.push(entry);
8481
- results.push({ scopeId, anchor: publicAnchor });
8482
- }
8483
- if (documentChanged) {
8484
- deps.dispatch({
8485
- type: "document.replace",
8486
- document: nextDocument,
8487
- mapping: createScopeMarkerMutationMapping(),
8488
- origin: { source: "api", at: clock() }
8489
- });
8490
- }
8491
- if (scopesToAdd.length > 0) {
8492
- const currentOverlay = overlayStore.getOverlay() ?? {
8493
- overlayVersion: "workflow-overlay/1",
8494
- scopes: []
8495
- };
8496
- const existingScopes = currentOverlay.scopes.filter(
8497
- (existing) => !newScopeIds.has(existing.scopeId)
8498
- );
8499
- deps.dispatch({
8500
- type: "workflow.set-overlay",
8501
- overlay: { ...currentOverlay, scopes: [...existingScopes, ...scopesToAdd] },
8502
- origin: { source: "api", at: clock() }
8503
- });
8504
- }
8505
- if (metadataEntriesToAdd.length > 0) {
8506
- const priorEntries = overlayStore.getMetadataEntries();
8507
- deps.dispatch({
8508
- type: "workflow.set-metadata-entries",
8509
- entries: [...priorEntries, ...metadataEntriesToAdd],
8510
- origin: { source: "api", at: clock() }
8511
- });
8512
- }
8513
- return results;
8506
+ if (metadataEntriesToAdd.length > 0) {
8507
+ const priorEntries = overlayStore.getMetadataEntries();
8508
+ deps.dispatch({
8509
+ type: "workflow.set-metadata-entries",
8510
+ entries: [...priorEntries, ...metadataEntriesToAdd],
8511
+ origin: { source: "api", at: clock() }
8512
+ });
8513
+ }
8514
+ return results;
8515
+ });
8514
8516
  }
8515
8517
  function removeScope(scopeId) {
8516
8518
  const overlay = overlayStore.getOverlay();
@@ -12962,6 +12964,10 @@ function createDocumentRuntime(options) {
12962
12964
  const sessionId = createSessionId(options.documentId, clock());
12963
12965
  const listeners = /* @__PURE__ */ new Set();
12964
12966
  const eventListeners = /* @__PURE__ */ new Set();
12967
+ let runtimeNotificationBatchDepth = 0;
12968
+ let pendingRuntimeListenerNotify = false;
12969
+ let pendingRenderSnapshotRefresh = false;
12970
+ const pendingRuntimeEvents = [];
12965
12971
  const loadScheduler = options.loadScheduler ?? createLoadScheduler({ backendOverride: "sync" });
12966
12972
  let effectiveMarkupModeProvider;
12967
12973
  const perfCounters = new PerfCounters();
@@ -14173,6 +14179,7 @@ function createDocumentRuntime(options) {
14173
14179
  deriveOpaqueWorkflowBlockedReason,
14174
14180
  isBlockedByProtection,
14175
14181
  dispatch: (command) => dispatchToRuntime(command),
14182
+ runInRuntimeBatch: runRuntimeNotificationBatch,
14176
14183
  emitEvent: (event) => emit(event),
14177
14184
  editorStateChannel,
14178
14185
  suggestingUnsupportedCommands: SUGGESTING_UNSUPPORTED_COMMANDS
@@ -14522,9 +14529,7 @@ function createDocumentRuntime(options) {
14522
14529
  ...cachedRenderSnapshot,
14523
14530
  surface: newSurface
14524
14531
  };
14525
- for (const listener of listeners) {
14526
- listener();
14527
- }
14532
+ notifyRuntimeListeners();
14528
14533
  }
14529
14534
  function maybeRefreshSurfaceForViewport() {
14530
14535
  const fingerprint = `${storyTargetKey(activeStory)}|${viewportRangesKey}|${String(state.selection.anchor)}:${String(state.selection.head)}`;
@@ -17657,9 +17662,7 @@ function createDocumentRuntime(options) {
17657
17662
  code: cleared.code
17658
17663
  });
17659
17664
  }
17660
- for (const listener of listeners) {
17661
- listener();
17662
- }
17665
+ notifyRuntimeListeners();
17663
17666
  }
17664
17667
  function applyTextCommandInActiveStory(command, textOptions = {}) {
17665
17668
  emitStageToken(telemetryBus, "command", "command.dispatch.start", {
@@ -18252,7 +18255,7 @@ function createDocumentRuntime(options) {
18252
18255
  const warningDelta = workflowCoordinator.applyOverlayCommand(
18253
18256
  command,
18254
18257
  () => {
18255
- cachedRenderSnapshot = refreshRenderSnapshot();
18258
+ requestRuntimeRenderSnapshotRefresh();
18256
18259
  }
18257
18260
  );
18258
18261
  if (warningDelta) {
@@ -18310,11 +18313,69 @@ function createDocumentRuntime(options) {
18310
18313
  });
18311
18314
  }
18312
18315
  }
18316
+ notifyRuntimeListeners();
18317
+ }
18318
+ function runRuntimeNotificationBatch(label, fn) {
18319
+ runtimeNotificationBatchDepth += 1;
18320
+ perfCounters.increment(`runtime.notificationBatch.${label}.calls`);
18321
+ try {
18322
+ return fn();
18323
+ } finally {
18324
+ runtimeNotificationBatchDepth -= 1;
18325
+ if (runtimeNotificationBatchDepth === 0) {
18326
+ flushRuntimeNotificationBatch();
18327
+ }
18328
+ }
18329
+ }
18330
+ function requestRuntimeRenderSnapshotRefresh() {
18331
+ if (runtimeNotificationBatchDepth > 0) {
18332
+ pendingRenderSnapshotRefresh = true;
18333
+ perfCounters.increment("runtime.notificationBatch.renderRefreshDeferred");
18334
+ return;
18335
+ }
18336
+ cachedRenderSnapshot = refreshRenderSnapshot();
18337
+ }
18338
+ function notifyRuntimeListeners() {
18339
+ if (runtimeNotificationBatchDepth > 0) {
18340
+ pendingRuntimeListenerNotify = true;
18341
+ perfCounters.increment("runtime.notificationBatch.listenerNotifyDeferred");
18342
+ return;
18343
+ }
18344
+ notifyRuntimeListenersNow();
18345
+ }
18346
+ function notifyRuntimeListenersNow() {
18313
18347
  for (const listener of listeners) {
18314
18348
  listener();
18315
18349
  }
18316
18350
  }
18351
+ function flushRuntimeNotificationBatch() {
18352
+ if (pendingRenderSnapshotRefresh) {
18353
+ pendingRenderSnapshotRefresh = false;
18354
+ cachedRenderSnapshot = refreshRenderSnapshot();
18355
+ perfCounters.increment("runtime.notificationBatch.renderRefreshFlushed");
18356
+ }
18357
+ if (pendingRuntimeEvents.length > 0) {
18358
+ const queuedEvents = pendingRuntimeEvents.splice(0);
18359
+ perfCounters.increment("runtime.notificationBatch.eventsFlushed", queuedEvents.length);
18360
+ for (const event of queuedEvents) {
18361
+ emitInternalNow(event);
18362
+ }
18363
+ }
18364
+ if (pendingRuntimeListenerNotify) {
18365
+ pendingRuntimeListenerNotify = false;
18366
+ perfCounters.increment("runtime.notificationBatch.listenerNotifyFlushed");
18367
+ notifyRuntimeListenersNow();
18368
+ }
18369
+ }
18317
18370
  function emitInternal(event) {
18371
+ if (runtimeNotificationBatchDepth > 0) {
18372
+ pendingRuntimeEvents.push(event);
18373
+ perfCounters.increment("runtime.notificationBatch.eventsQueued");
18374
+ return;
18375
+ }
18376
+ emitInternalNow(event);
18377
+ }
18378
+ function emitInternalNow(event) {
18318
18379
  options.onEvent?.(event);
18319
18380
  for (const listener of eventListeners) {
18320
18381
  listener(event);
@@ -1,6 +1,6 @@
1
1
  import 'prosemirror-state';
2
2
  import 'prosemirror-model';
3
- export { gc as Alignment, gd as FormattingMutationResult, ge as FormattingOperation, gf as TextMarkClearTarget, gg as TextMarkRangeOperation, gh as applyFormattingOperationToDocument, gi as applyIndentation, gj as applyTextMarkOperationToDocumentRange, gk as getFormattingStateFromRenderSnapshot, gl as isMarkActive, gm as makeSetAlignment, gn as makeSetFontFamily, go as makeSetFontSize, gp as makeSetHighlight, gq as makeSetTextColor, gr as makeToggleAllCaps, gs as makeToggleBold, gt as makeToggleItalic, gu as makeToggleSmallCaps, gv as makeToggleStrikethrough, gw as makeToggleSubscript, gx as makeToggleSuperscript, gy as makeToggleUnderline } from '../../public-types-CSSH2Whc.cjs';
3
+ export { gc as Alignment, gd as FormattingMutationResult, ge as FormattingOperation, gf as TextMarkClearTarget, gg as TextMarkRangeOperation, gh as applyFormattingOperationToDocument, gi as applyIndentation, gj as applyTextMarkOperationToDocumentRange, gk as getFormattingStateFromRenderSnapshot, gl as isMarkActive, gm as makeSetAlignment, gn as makeSetFontFamily, go as makeSetFontSize, gp as makeSetHighlight, gq as makeSetTextColor, gr as makeToggleAllCaps, gs as makeToggleBold, gt as makeToggleItalic, gu as makeToggleSmallCaps, gv as makeToggleStrikethrough, gw as makeToggleSubscript, gx as makeToggleSuperscript, gy as makeToggleUnderline } from '../../public-types-CIvw1GQa.cjs';
4
4
  import '../../canonical-document-COmM7v11.cjs';
5
5
  import 'react';
6
6
  import 'yjs';
@@ -1,6 +1,6 @@
1
1
  import 'prosemirror-state';
2
2
  import 'prosemirror-model';
3
- export { gc as Alignment, gd as FormattingMutationResult, ge as FormattingOperation, gf as TextMarkClearTarget, gg as TextMarkRangeOperation, gh as applyFormattingOperationToDocument, gi as applyIndentation, gj as applyTextMarkOperationToDocumentRange, gk as getFormattingStateFromRenderSnapshot, gl as isMarkActive, gm as makeSetAlignment, gn as makeSetFontFamily, go as makeSetFontSize, gp as makeSetHighlight, gq as makeSetTextColor, gr as makeToggleAllCaps, gs as makeToggleBold, gt as makeToggleItalic, gu as makeToggleSmallCaps, gv as makeToggleStrikethrough, gw as makeToggleSubscript, gx as makeToggleSuperscript, gy as makeToggleUnderline } from '../../public-types-8kVIB5HW.js';
3
+ export { gc as Alignment, gd as FormattingMutationResult, ge as FormattingOperation, gf as TextMarkClearTarget, gg as TextMarkRangeOperation, gh as applyFormattingOperationToDocument, gi as applyIndentation, gj as applyTextMarkOperationToDocumentRange, gk as getFormattingStateFromRenderSnapshot, gl as isMarkActive, gm as makeSetAlignment, gn as makeSetFontFamily, go as makeSetFontSize, gp as makeSetHighlight, gq as makeSetTextColor, gr as makeToggleAllCaps, gs as makeToggleBold, gt as makeToggleItalic, gu as makeToggleSmallCaps, gv as makeToggleStrikethrough, gw as makeToggleSubscript, gx as makeToggleSuperscript, gy as makeToggleUnderline } from '../../public-types-COCDrgVX.js';
4
4
  import '../../canonical-document-COmM7v11.js';
5
5
  import 'react';
6
6
  import 'yjs';
@@ -1,4 +1,4 @@
1
- import { C as CanonicalDocumentEnvelope, e as SelectionSnapshot, i as TransactionMapping } from '../../public-types-CSSH2Whc.cjs';
1
+ import { C as CanonicalDocumentEnvelope, e as SelectionSnapshot, i as TransactionMapping } from '../../public-types-CIvw1GQa.cjs';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
@@ -1,4 +1,4 @@
1
- import { C as CanonicalDocumentEnvelope, e as SelectionSnapshot, i as TransactionMapping } from '../../public-types-8kVIB5HW.js';
1
+ import { C as CanonicalDocumentEnvelope, e as SelectionSnapshot, i as TransactionMapping } from '../../public-types-COCDrgVX.js';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
@@ -1,4 +1,4 @@
1
- import { j as SelectionSnapshot, M as MarginPresetDefinition, k as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-CSSH2Whc.cjs';
1
+ import { j as SelectionSnapshot, M as MarginPresetDefinition, k as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-CIvw1GQa.cjs';
2
2
  import { C as CanonicalDocument, P as PageSize, a as PageMargins, b as ColumnProperties, c as PageNumbering } from '../../canonical-document-COmM7v11.cjs';
3
3
  import 'react';
4
4
  import 'yjs';
@@ -1,4 +1,4 @@
1
- import { j as SelectionSnapshot, M as MarginPresetDefinition, k as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-8kVIB5HW.js';
1
+ import { j as SelectionSnapshot, M as MarginPresetDefinition, k as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-COCDrgVX.js';
2
2
  import { C as CanonicalDocument, P as PageSize, a as PageMargins, b as ColumnProperties, c as PageNumbering } from '../../canonical-document-COmM7v11.js';
3
3
  import 'react';
4
4
  import 'yjs';
@@ -1,4 +1,4 @@
1
- import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-CSSH2Whc.cjs';
1
+ import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-CIvw1GQa.cjs';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
@@ -1,4 +1,4 @@
1
- import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-8kVIB5HW.js';
1
+ import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-COCDrgVX.js';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
@@ -1,4 +1,4 @@
1
- export { gz as CellLocator, gA as TableStructureOperation, gB as applyTableStructureOperation, gC as applyTableStructureOperationForEditableTarget, gD as getTableStructureContext, gE as removeCellFromRow, gF as removeTableRowPure, gG as tableStructureActionHandleForTarget } from '../../public-types-CSSH2Whc.cjs';
1
+ export { gz as CellLocator, gA as TableStructureOperation, gB as applyTableStructureOperation, gC as applyTableStructureOperationForEditableTarget, gD as getTableStructureContext, gE as removeCellFromRow, gF as removeTableRowPure, gG as tableStructureActionHandleForTarget } from '../../public-types-CIvw1GQa.cjs';
2
2
  import '../../canonical-document-COmM7v11.cjs';
3
3
  import 'react';
4
4
  import 'yjs';
@@ -1,4 +1,4 @@
1
- export { gz as CellLocator, gA as TableStructureOperation, gB as applyTableStructureOperation, gC as applyTableStructureOperationForEditableTarget, gD as getTableStructureContext, gE as removeCellFromRow, gF as removeTableRowPure, gG as tableStructureActionHandleForTarget } from '../../public-types-8kVIB5HW.js';
1
+ export { gz as CellLocator, gA as TableStructureOperation, gB as applyTableStructureOperation, gC as applyTableStructureOperationForEditableTarget, gD as getTableStructureContext, gE as removeCellFromRow, gF as removeTableRowPure, gG as tableStructureActionHandleForTarget } from '../../public-types-COCDrgVX.js';
2
2
  import '../../canonical-document-COmM7v11.js';
3
3
  import 'react';
4
4
  import 'yjs';
@@ -1,4 +1,4 @@
1
- import { T as TextTransactionTextTarget, d as EditorSurfaceSnapshot, S as ScopeSurfaceTelemetry, C as CanonicalDocumentEnvelope, e as SelectionSnapshot, f as TextTransactionResult, g as StructuralMutationResult, I as InsertTableOptions, h as TextFormattingDirective, i as TransactionMapping } from '../../public-types-CSSH2Whc.cjs';
1
+ import { T as TextTransactionTextTarget, d as EditorSurfaceSnapshot, S as ScopeSurfaceTelemetry, C as CanonicalDocumentEnvelope, e as SelectionSnapshot, f as TextTransactionResult, g as StructuralMutationResult, I as InsertTableOptions, h as TextFormattingDirective, i as TransactionMapping } from '../../public-types-CIvw1GQa.cjs';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
@@ -1,4 +1,4 @@
1
- import { T as TextTransactionTextTarget, d as EditorSurfaceSnapshot, S as ScopeSurfaceTelemetry, C as CanonicalDocumentEnvelope, e as SelectionSnapshot, f as TextTransactionResult, g as StructuralMutationResult, I as InsertTableOptions, h as TextFormattingDirective, i as TransactionMapping } from '../../public-types-8kVIB5HW.js';
1
+ import { T as TextTransactionTextTarget, d as EditorSurfaceSnapshot, S as ScopeSurfaceTelemetry, C as CanonicalDocumentEnvelope, e as SelectionSnapshot, f as TextTransactionResult, g as StructuralMutationResult, I as InsertTableOptions, h as TextFormattingDirective, i as TransactionMapping } from '../../public-types-COCDrgVX.js';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
@@ -1,4 +1,4 @@
1
- export { fq as Assoc, fr as BoundaryAssoc, fs as DEFAULT_BOUNDARY_ASSOC, ft as DetachedAnchor, fu as DocRange, b7 as EditorAnchorProjection, fv as InternalEditorAnchorProjection, fw as MAIN_STORY_TARGET, fx as MappingResult, fy as MappingStep, fz as NodeAnchor, fA as Position, fB as RangeAnchor, i as TransactionMapping, fC as anchorUnaffectedByMapping, fD as areAnchorsEqual, fE as createDetachedAnchor, fF as createEmptyMapping, fG as createNodeAnchor, fH as createRangeAnchor, fI as getEffectiveRange, fJ as mapAnchor, fK as mapPosition, fL as mapRange, fM as normalizeRange, fN as storyTargetsEqual } from '../../public-types-CSSH2Whc.cjs';
1
+ export { fq as Assoc, fr as BoundaryAssoc, fs as DEFAULT_BOUNDARY_ASSOC, ft as DetachedAnchor, fu as DocRange, b7 as EditorAnchorProjection, fv as InternalEditorAnchorProjection, fw as MAIN_STORY_TARGET, fx as MappingResult, fy as MappingStep, fz as NodeAnchor, fA as Position, fB as RangeAnchor, i as TransactionMapping, fC as anchorUnaffectedByMapping, fD as areAnchorsEqual, fE as createDetachedAnchor, fF as createEmptyMapping, fG as createNodeAnchor, fH as createRangeAnchor, fI as getEffectiveRange, fJ as mapAnchor, fK as mapPosition, fL as mapRange, fM as normalizeRange, fN as storyTargetsEqual } from '../../public-types-CIvw1GQa.cjs';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
@@ -1,4 +1,4 @@
1
- export { fq as Assoc, fr as BoundaryAssoc, fs as DEFAULT_BOUNDARY_ASSOC, ft as DetachedAnchor, fu as DocRange, b7 as EditorAnchorProjection, fv as InternalEditorAnchorProjection, fw as MAIN_STORY_TARGET, fx as MappingResult, fy as MappingStep, fz as NodeAnchor, fA as Position, fB as RangeAnchor, i as TransactionMapping, fC as anchorUnaffectedByMapping, fD as areAnchorsEqual, fE as createDetachedAnchor, fF as createEmptyMapping, fG as createNodeAnchor, fH as createRangeAnchor, fI as getEffectiveRange, fJ as mapAnchor, fK as mapPosition, fL as mapRange, fM as normalizeRange, fN as storyTargetsEqual } from '../../public-types-8kVIB5HW.js';
1
+ export { fq as Assoc, fr as BoundaryAssoc, fs as DEFAULT_BOUNDARY_ASSOC, ft as DetachedAnchor, fu as DocRange, b7 as EditorAnchorProjection, fv as InternalEditorAnchorProjection, fw as MAIN_STORY_TARGET, fx as MappingResult, fy as MappingStep, fz as NodeAnchor, fA as Position, fB as RangeAnchor, i as TransactionMapping, fC as anchorUnaffectedByMapping, fD as areAnchorsEqual, fE as createDetachedAnchor, fF as createEmptyMapping, fG as createNodeAnchor, fH as createRangeAnchor, fI as getEffectiveRange, fJ as mapAnchor, fK as mapPosition, fL as mapRange, fM as normalizeRange, fN as storyTargetsEqual } from '../../public-types-COCDrgVX.js';
2
2
  import 'react';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
@@ -1,4 +1,4 @@
1
- export { C as CanonicalDocumentEnvelope, fO as CommandStateSnapshot, fP as CommentEntryRecord, fQ as CommentResolutionRecord, fR as CommentSidebarSnapshot, fS as CommentThreadRecord, ca as CompatibilityFeatureClass, cb as CompatibilityFeatureEntry, fT as CompatibilityPanelSnapshot, r as CompatibilityReport, fU as CreateEditorStateOptions, fV as DocumentStats, t as EditorError, cu as EditorErrorCode, fW as EditorRuntimeState, fX as EditorState, cJ as EditorWarning, cK as EditorWarningCode, fY as PersistedEditorSnapshot, fZ as ReviewStore, f_ as RevisionMetadataRecord, f$ as RevisionRecord, g0 as RuntimePhase, g1 as RuntimeRenderSnapshot, e as SelectionSnapshot, g2 as TrackedChangesSnapshot, g3 as createDefaultCanonicalDocument, g4 as createEditorState, g5 as createEmptyCompatibilityReport, g6 as createEmptyReviewStore, g7 as createPersistedEditorSnapshot, g8 as createSelectionSnapshot, g9 as deriveDocumentStats, ga as deriveRenderSnapshot, gb as normalizeCommentThreadRecord } from '../../public-types-CSSH2Whc.cjs';
1
+ export { C as CanonicalDocumentEnvelope, fO as CommandStateSnapshot, fP as CommentEntryRecord, fQ as CommentResolutionRecord, fR as CommentSidebarSnapshot, fS as CommentThreadRecord, ca as CompatibilityFeatureClass, cb as CompatibilityFeatureEntry, fT as CompatibilityPanelSnapshot, r as CompatibilityReport, fU as CreateEditorStateOptions, fV as DocumentStats, t as EditorError, cu as EditorErrorCode, fW as EditorRuntimeState, fX as EditorState, cJ as EditorWarning, cK as EditorWarningCode, fY as PersistedEditorSnapshot, fZ as ReviewStore, f_ as RevisionMetadataRecord, f$ as RevisionRecord, g0 as RuntimePhase, g1 as RuntimeRenderSnapshot, e as SelectionSnapshot, g2 as TrackedChangesSnapshot, g3 as createDefaultCanonicalDocument, g4 as createEditorState, g5 as createEmptyCompatibilityReport, g6 as createEmptyReviewStore, g7 as createPersistedEditorSnapshot, g8 as createSelectionSnapshot, g9 as deriveDocumentStats, ga as deriveRenderSnapshot, gb as normalizeCommentThreadRecord } from '../../public-types-CIvw1GQa.cjs';
2
2
  export { o as createCanonicalDocumentId } from '../../canonical-document-COmM7v11.cjs';
3
3
  import 'react';
4
4
  import 'yjs';
@@ -1,4 +1,4 @@
1
- export { C as CanonicalDocumentEnvelope, fO as CommandStateSnapshot, fP as CommentEntryRecord, fQ as CommentResolutionRecord, fR as CommentSidebarSnapshot, fS as CommentThreadRecord, ca as CompatibilityFeatureClass, cb as CompatibilityFeatureEntry, fT as CompatibilityPanelSnapshot, r as CompatibilityReport, fU as CreateEditorStateOptions, fV as DocumentStats, t as EditorError, cu as EditorErrorCode, fW as EditorRuntimeState, fX as EditorState, cJ as EditorWarning, cK as EditorWarningCode, fY as PersistedEditorSnapshot, fZ as ReviewStore, f_ as RevisionMetadataRecord, f$ as RevisionRecord, g0 as RuntimePhase, g1 as RuntimeRenderSnapshot, e as SelectionSnapshot, g2 as TrackedChangesSnapshot, g3 as createDefaultCanonicalDocument, g4 as createEditorState, g5 as createEmptyCompatibilityReport, g6 as createEmptyReviewStore, g7 as createPersistedEditorSnapshot, g8 as createSelectionSnapshot, g9 as deriveDocumentStats, ga as deriveRenderSnapshot, gb as normalizeCommentThreadRecord } from '../../public-types-8kVIB5HW.js';
1
+ export { C as CanonicalDocumentEnvelope, fO as CommandStateSnapshot, fP as CommentEntryRecord, fQ as CommentResolutionRecord, fR as CommentSidebarSnapshot, fS as CommentThreadRecord, ca as CompatibilityFeatureClass, cb as CompatibilityFeatureEntry, fT as CompatibilityPanelSnapshot, r as CompatibilityReport, fU as CreateEditorStateOptions, fV as DocumentStats, t as EditorError, cu as EditorErrorCode, fW as EditorRuntimeState, fX as EditorState, cJ as EditorWarning, cK as EditorWarningCode, fY as PersistedEditorSnapshot, fZ as ReviewStore, f_ as RevisionMetadataRecord, f$ as RevisionRecord, g0 as RuntimePhase, g1 as RuntimeRenderSnapshot, e as SelectionSnapshot, g2 as TrackedChangesSnapshot, g3 as createDefaultCanonicalDocument, g4 as createEditorState, g5 as createEmptyCompatibilityReport, g6 as createEmptyReviewStore, g7 as createPersistedEditorSnapshot, g8 as createSelectionSnapshot, g9 as deriveDocumentStats, ga as deriveRenderSnapshot, gb as normalizeCommentThreadRecord } from '../../public-types-COCDrgVX.js';
2
2
  export { o as createCanonicalDocumentId } from '../../canonical-document-COmM7v11.js';
3
3
  import 'react';
4
4
  import 'yjs';