superdoc 2.4.0-next.4 → 2.4.0-next.6

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 (27) hide show
  1. package/dist/chunks/{FindReplaceSurface-BEW-1NhM.es.js → FindReplaceSurface-B_1Ksbr0.es.js} +1 -1
  2. package/dist/chunks/{FindReplaceSurface-Dx0llWqP.cjs → FindReplaceSurface-C-I4GcRE.cjs} +1 -1
  3. package/dist/chunks/{PasswordPromptSurface-BUUVC2ee.cjs → PasswordPromptSurface-Bu5xHm91.cjs} +1 -1
  4. package/dist/chunks/{PasswordPromptSurface-BA6HHqEa.es.js → PasswordPromptSurface-Bz9_sKhX.es.js} +1 -1
  5. package/dist/chunks/{PdfViewer-CNOtyS-I.es.js → PdfViewer-CdVGB6Fe.es.js} +2 -2
  6. package/dist/chunks/{PdfViewer-qpvzwYMz.cjs → PdfViewer-D4eD2dV1.cjs} +2 -2
  7. package/dist/chunks/{create-super-doc-ui-Dli6Wq70.es.js → create-super-doc-ui-BquF8bnZ.es.js} +71 -62
  8. package/dist/chunks/{create-super-doc-ui-BHMQEL2y.cjs → create-super-doc-ui-sMXbYzhs.cjs} +76 -61
  9. package/dist/collaboration-upgrade-engine.cjs +1 -1
  10. package/dist/collaboration-upgrade-engine.es.js +1 -1
  11. package/dist/document-api/src/types/track-changes.types.d.ts +1 -3
  12. package/dist/public/ui-react.cjs +1 -1
  13. package/dist/public/ui-react.es.js +1 -1
  14. package/dist/public/ui.cjs +1 -1
  15. package/dist/public/ui.es.js +1 -1
  16. package/dist/style.css +23 -23
  17. package/dist/style.layered.css +23 -23
  18. package/dist/superdoc.cjs +71 -11
  19. package/dist/superdoc.es.js +71 -11
  20. package/dist-cdn/style.layered.css +1 -1
  21. package/dist-cdn/superdoc.min.css +1 -1
  22. package/dist-cdn/superdoc.min.js +35 -35
  23. package/package.json +2 -2
  24. /package/dist/chunks/{_plugin-vue_export-helper-BTwbGDKw.cjs → _plugin-vue_export-helper-CZ1Nl59K.cjs} +0 -0
  25. /package/dist/chunks/{_plugin-vue_export-helper-CInC0bKI.es.js → _plugin-vue_export-helper-DSMAhhwD.es.js} +0 -0
  26. /package/dist/chunks/{constants-CY3R3_kF.es.js → constants-BfH0br5u.es.js} +0 -0
  27. /package/dist/chunks/{constants-sbCZ2O_A.cjs → constants-D7TNtyJd.cjs} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-CInC0bKI.es.js";
1
+ import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-DSMAhhwD.es.js";
2
2
  import { computed, createCommentVNode, createElementBlock, createElementVNode, normalizeClass, onMounted, openBlock, ref, toDisplayString, withKeys, withModifiers } from "vue";
3
3
  var _hoisted_1 = ["onKeydown"];
4
4
  var _hoisted_2 = { class: "sd-find-replace__row" };
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-1Y-nnZJ3.cjs");
2
- const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-BTwbGDKw.cjs");
2
+ const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-CZ1Nl59K.cjs");
3
3
  let vue = require("vue");
4
4
  var _hoisted_1 = ["onKeydown"];
5
5
  var _hoisted_2 = { class: "sd-find-replace__row" };
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-1Y-nnZJ3.cjs");
2
- const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-BTwbGDKw.cjs");
2
+ const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-CZ1Nl59K.cjs");
3
3
  let vue = require("vue");
4
4
  var _hoisted_1 = ["onKeydown"];
5
5
  var _hoisted_2 = ["id"];
@@ -1,4 +1,4 @@
1
- import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-CInC0bKI.es.js";
1
+ import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-DSMAhhwD.es.js";
2
2
  import { computed, createCommentVNode, createElementBlock, createElementVNode, openBlock, ref, toDisplayString, vModelText, withDirectives, withKeys, withModifiers } from "vue";
3
3
  var _hoisted_1 = ["onKeydown"];
4
4
  var _hoisted_2 = ["id"];
@@ -1,5 +1,5 @@
1
- import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-CInC0bKI.es.js";
2
- import { n as PDF_TO_CSS_UNITS, t as OUTPUT_SCALE } from "./constants-CY3R3_kF.es.js";
1
+ import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-DSMAhhwD.es.js";
2
+ import { n as PDF_TO_CSS_UNITS, t as OUTPUT_SCALE } from "./constants-BfH0br5u.es.js";
3
3
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, markRaw, mergeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, shallowRef, watch } from "vue";
4
4
  const floor = (val, precision) => {
5
5
  const multiplier = 10 ** (precision || 0);
@@ -1,6 +1,6 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-1Y-nnZJ3.cjs");
2
- const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-BTwbGDKw.cjs");
3
- const require_constants = require("./constants-sbCZ2O_A.cjs");
2
+ const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-CZ1Nl59K.cjs");
3
+ const require_constants = require("./constants-D7TNtyJd.cjs");
4
4
  let vue = require("vue");
5
5
  const floor = (val, precision) => {
6
6
  const multiplier = 10 ** (precision || 0);
@@ -1,3 +1,64 @@
1
+ const DOM_CLASS_NAMES = {
2
+ PAGE: "superdoc-page",
3
+ FRAGMENT: "superdoc-fragment",
4
+ LINE: "superdoc-line",
5
+ INLINE_SDT_WRAPPER: "superdoc-structured-content-inline",
6
+ INLINE_SDT_LABEL: "superdoc-structured-content-inline__label",
7
+ BLOCK_SDT: "superdoc-structured-content-block",
8
+ BLOCK_SDT_LABEL: "superdoc-structured-content__label",
9
+ TABLE_FRAGMENT: "superdoc-table-fragment",
10
+ DOCUMENT_SECTION: "superdoc-document-section",
11
+ SDT_GROUP_HOVER: "sdt-group-hover",
12
+ TOC_ENTRY: "superdoc-toc-entry",
13
+ TOC_GROUP_HOVER: "toc-group-hover",
14
+ IMAGE_FRAGMENT: "superdoc-image-fragment",
15
+ INLINE_IMAGE: "superdoc-inline-image",
16
+ LIST_MARKER: "superdoc-list-marker",
17
+ INLINE_IMAGE_CLIP_WRAPPER: "superdoc-inline-image-clip-wrapper",
18
+ ANNOTATION: "annotation",
19
+ ANNOTATION_CONTENT: "annotation-content",
20
+ ANNOTATION_CARET_ANCHOR: "annotation-caret-anchor"
21
+ };
22
+ DOM_CLASS_NAMES.INLINE_SDT_LABEL, DOM_CLASS_NAMES.BLOCK_SDT_LABEL;
23
+ const DATA_ATTRS = {
24
+ PM_START: "data-pm-start",
25
+ PM_END: "data-pm-end",
26
+ LAYOUT_EPOCH: "data-layout-epoch",
27
+ TABLE_BOUNDARIES: "data-table-boundaries",
28
+ SDT_ID: "data-sdt-id",
29
+ SDT_TYPE: "data-sdt-type",
30
+ FIELD_ID: "data-field-id",
31
+ FIELD_TYPE: "data-field-type",
32
+ DRAGGABLE: "data-draggable",
33
+ DISPLAY_LABEL: "data-display-label",
34
+ VARIANT: "data-variant",
35
+ TYPE: "data-type",
36
+ LAYOUT_BOUNDARY_SCHEMA: "data-layout-boundary-schema",
37
+ LAYOUT_FRAGMENT_ID: "data-layout-fragment-id",
38
+ LAYOUT_STORY: "data-layout-story",
39
+ LAYOUT_BLOCK_REF: "data-layout-block-ref"
40
+ };
41
+ const decodeLayoutStoryDataset = (raw) => {
42
+ if (!raw) return { kind: "unknown" };
43
+ if (raw === "body") return { kind: "body" };
44
+ const idx = raw.indexOf(":");
45
+ const kind = idx === -1 ? raw : raw.slice(0, idx);
46
+ const id = idx === -1 ? void 0 : raw.slice(idx + 1);
47
+ switch (kind) {
48
+ case "body":
49
+ case "header":
50
+ case "footer":
51
+ case "footnote":
52
+ case "endnote":
53
+ case "textbox": return id ? {
54
+ kind,
55
+ id
56
+ } : { kind };
57
+ default: return { kind: "unknown" };
58
+ }
59
+ };
60
+ `${DOM_CLASS_NAMES.BLOCK_SDT}${DATA_ATTRS.SDT_ID}`;
61
+ `${DATA_ATTRS.DRAGGABLE}`;
1
62
  function getParagraphInlineDirection(attrs) {
2
63
  const fromContext = attrs?.directionContext?.inlineDirection;
3
64
  if (fromContext != null) return fromContext;
@@ -1266,67 +1327,6 @@ function collectEntityHitsFromChain(start, stopAt) {
1266
1327
  }
1267
1328
  return hits;
1268
1329
  }
1269
- const DOM_CLASS_NAMES = {
1270
- PAGE: "superdoc-page",
1271
- FRAGMENT: "superdoc-fragment",
1272
- LINE: "superdoc-line",
1273
- INLINE_SDT_WRAPPER: "superdoc-structured-content-inline",
1274
- INLINE_SDT_LABEL: "superdoc-structured-content-inline__label",
1275
- BLOCK_SDT: "superdoc-structured-content-block",
1276
- BLOCK_SDT_LABEL: "superdoc-structured-content__label",
1277
- TABLE_FRAGMENT: "superdoc-table-fragment",
1278
- DOCUMENT_SECTION: "superdoc-document-section",
1279
- SDT_GROUP_HOVER: "sdt-group-hover",
1280
- TOC_ENTRY: "superdoc-toc-entry",
1281
- TOC_GROUP_HOVER: "toc-group-hover",
1282
- IMAGE_FRAGMENT: "superdoc-image-fragment",
1283
- INLINE_IMAGE: "superdoc-inline-image",
1284
- LIST_MARKER: "superdoc-list-marker",
1285
- INLINE_IMAGE_CLIP_WRAPPER: "superdoc-inline-image-clip-wrapper",
1286
- ANNOTATION: "annotation",
1287
- ANNOTATION_CONTENT: "annotation-content",
1288
- ANNOTATION_CARET_ANCHOR: "annotation-caret-anchor"
1289
- };
1290
- DOM_CLASS_NAMES.INLINE_SDT_LABEL, DOM_CLASS_NAMES.BLOCK_SDT_LABEL;
1291
- const DATA_ATTRS = {
1292
- PM_START: "data-pm-start",
1293
- PM_END: "data-pm-end",
1294
- LAYOUT_EPOCH: "data-layout-epoch",
1295
- TABLE_BOUNDARIES: "data-table-boundaries",
1296
- SDT_ID: "data-sdt-id",
1297
- SDT_TYPE: "data-sdt-type",
1298
- FIELD_ID: "data-field-id",
1299
- FIELD_TYPE: "data-field-type",
1300
- DRAGGABLE: "data-draggable",
1301
- DISPLAY_LABEL: "data-display-label",
1302
- VARIANT: "data-variant",
1303
- TYPE: "data-type",
1304
- LAYOUT_BOUNDARY_SCHEMA: "data-layout-boundary-schema",
1305
- LAYOUT_FRAGMENT_ID: "data-layout-fragment-id",
1306
- LAYOUT_STORY: "data-layout-story",
1307
- LAYOUT_BLOCK_REF: "data-layout-block-ref"
1308
- };
1309
- const decodeLayoutStoryDataset = (raw) => {
1310
- if (!raw) return { kind: "unknown" };
1311
- if (raw === "body") return { kind: "body" };
1312
- const idx = raw.indexOf(":");
1313
- const kind = idx === -1 ? raw : raw.slice(0, idx);
1314
- const id = idx === -1 ? void 0 : raw.slice(idx + 1);
1315
- switch (kind) {
1316
- case "body":
1317
- case "header":
1318
- case "footer":
1319
- case "footnote":
1320
- case "endnote":
1321
- case "textbox": return id ? {
1322
- kind,
1323
- id
1324
- } : { kind };
1325
- default: return { kind: "unknown" };
1326
- }
1327
- };
1328
- `${DOM_CLASS_NAMES.BLOCK_SDT}${DATA_ATTRS.SDT_ID}`;
1329
- `${DATA_ATTRS.DRAGGABLE}`;
1330
1330
  var schemaBooleanOrNull = () => ({ oneOf: [{ type: "boolean" }, { type: "null" }] });
1331
1331
  var schemaStringOrNull = () => ({ oneOf: [{
1332
1332
  type: "string",
@@ -7740,6 +7740,14 @@ function createSuperDocUI(options) {
7740
7740
  if (typeof helper?.apply !== "function") return { reason: SUPERDOC_UI_REASONS.hostCapabilityUnavailable };
7741
7741
  return { helper };
7742
7742
  };
7743
+ const activateContentControlChrome = (id) => {
7744
+ const host = getHost();
7745
+ if (typeof host?.getHandles !== "function") return;
7746
+ try {
7747
+ const contentControls$1 = (host.getHandles()?.editing)?.contentControls;
7748
+ if (typeof contentControls$1?.activate === "function") contentControls$1.activate({ id });
7749
+ } catch {}
7750
+ };
7743
7751
  const selection = {
7744
7752
  get: selectionSnap.get,
7745
7753
  getSnapshot: selectionSnap.getSnapshot,
@@ -8432,6 +8440,7 @@ function createSuperDocUI(options) {
8432
8440
  success: false,
8433
8441
  reason: "not-reachable"
8434
8442
  };
8443
+ activateContentControlChrome(id);
8435
8444
  return { success: true };
8436
8445
  }
8437
8446
  };
@@ -9636,4 +9645,4 @@ var DEFAULT_FONT_SIZE_OPTIONS = [
9636
9645
  function commandIsActive(descriptor, selection) {
9637
9646
  return descriptor.activeMark ? selection.activeMarks.includes(descriptor.activeMark) : false;
9638
9647
  }
9639
- export { createV2ReviewMutationReconciler as a, isV2EditableTextMutationEvent as i, shallowEqual as n, getV2TrackedChangeMutationImpact as o, BUILT_IN_COMMAND_IDS as r, composeAuthorColorResolver as s, createSuperDocUI as t };
9648
+ export { createV2ReviewMutationReconciler as a, DOM_CLASS_NAMES as c, isV2EditableTextMutationEvent as i, shallowEqual as n, getV2TrackedChangeMutationImpact as o, BUILT_IN_COMMAND_IDS as r, composeAuthorColorResolver as s, createSuperDocUI as t };
@@ -1,3 +1,64 @@
1
+ const DOM_CLASS_NAMES = {
2
+ PAGE: "superdoc-page",
3
+ FRAGMENT: "superdoc-fragment",
4
+ LINE: "superdoc-line",
5
+ INLINE_SDT_WRAPPER: "superdoc-structured-content-inline",
6
+ INLINE_SDT_LABEL: "superdoc-structured-content-inline__label",
7
+ BLOCK_SDT: "superdoc-structured-content-block",
8
+ BLOCK_SDT_LABEL: "superdoc-structured-content__label",
9
+ TABLE_FRAGMENT: "superdoc-table-fragment",
10
+ DOCUMENT_SECTION: "superdoc-document-section",
11
+ SDT_GROUP_HOVER: "sdt-group-hover",
12
+ TOC_ENTRY: "superdoc-toc-entry",
13
+ TOC_GROUP_HOVER: "toc-group-hover",
14
+ IMAGE_FRAGMENT: "superdoc-image-fragment",
15
+ INLINE_IMAGE: "superdoc-inline-image",
16
+ LIST_MARKER: "superdoc-list-marker",
17
+ INLINE_IMAGE_CLIP_WRAPPER: "superdoc-inline-image-clip-wrapper",
18
+ ANNOTATION: "annotation",
19
+ ANNOTATION_CONTENT: "annotation-content",
20
+ ANNOTATION_CARET_ANCHOR: "annotation-caret-anchor"
21
+ };
22
+ const STRUCTURED_CONTENT_CHROME_LABEL_CLASS_NAMES = [DOM_CLASS_NAMES.INLINE_SDT_LABEL, DOM_CLASS_NAMES.BLOCK_SDT_LABEL];
23
+ const DATA_ATTRS = {
24
+ PM_START: "data-pm-start",
25
+ PM_END: "data-pm-end",
26
+ LAYOUT_EPOCH: "data-layout-epoch",
27
+ TABLE_BOUNDARIES: "data-table-boundaries",
28
+ SDT_ID: "data-sdt-id",
29
+ SDT_TYPE: "data-sdt-type",
30
+ FIELD_ID: "data-field-id",
31
+ FIELD_TYPE: "data-field-type",
32
+ DRAGGABLE: "data-draggable",
33
+ DISPLAY_LABEL: "data-display-label",
34
+ VARIANT: "data-variant",
35
+ TYPE: "data-type",
36
+ LAYOUT_BOUNDARY_SCHEMA: "data-layout-boundary-schema",
37
+ LAYOUT_FRAGMENT_ID: "data-layout-fragment-id",
38
+ LAYOUT_STORY: "data-layout-story",
39
+ LAYOUT_BLOCK_REF: "data-layout-block-ref"
40
+ };
41
+ const decodeLayoutStoryDataset = (raw) => {
42
+ if (!raw) return { kind: "unknown" };
43
+ if (raw === "body") return { kind: "body" };
44
+ const idx = raw.indexOf(":");
45
+ const kind = idx === -1 ? raw : raw.slice(0, idx);
46
+ const id = idx === -1 ? void 0 : raw.slice(idx + 1);
47
+ switch (kind) {
48
+ case "body":
49
+ case "header":
50
+ case "footer":
51
+ case "footnote":
52
+ case "endnote":
53
+ case "textbox": return id ? {
54
+ kind,
55
+ id
56
+ } : { kind };
57
+ default: return { kind: "unknown" };
58
+ }
59
+ };
60
+ const SDT_BLOCK_WITH_ID_SELECTOR = `.${DOM_CLASS_NAMES.BLOCK_SDT}[${DATA_ATTRS.SDT_ID}]`;
61
+ const DRAGGABLE_SELECTOR = `[${DATA_ATTRS.DRAGGABLE}="true"]`;
1
62
  function getParagraphInlineDirection(attrs) {
2
63
  const fromContext = attrs?.directionContext?.inlineDirection;
3
64
  if (fromContext != null) return fromContext;
@@ -1485,67 +1546,6 @@ function collectEntityHitsFromChain(start, stopAt) {
1485
1546
  }
1486
1547
  return hits;
1487
1548
  }
1488
- const DOM_CLASS_NAMES = {
1489
- PAGE: "superdoc-page",
1490
- FRAGMENT: "superdoc-fragment",
1491
- LINE: "superdoc-line",
1492
- INLINE_SDT_WRAPPER: "superdoc-structured-content-inline",
1493
- INLINE_SDT_LABEL: "superdoc-structured-content-inline__label",
1494
- BLOCK_SDT: "superdoc-structured-content-block",
1495
- BLOCK_SDT_LABEL: "superdoc-structured-content__label",
1496
- TABLE_FRAGMENT: "superdoc-table-fragment",
1497
- DOCUMENT_SECTION: "superdoc-document-section",
1498
- SDT_GROUP_HOVER: "sdt-group-hover",
1499
- TOC_ENTRY: "superdoc-toc-entry",
1500
- TOC_GROUP_HOVER: "toc-group-hover",
1501
- IMAGE_FRAGMENT: "superdoc-image-fragment",
1502
- INLINE_IMAGE: "superdoc-inline-image",
1503
- LIST_MARKER: "superdoc-list-marker",
1504
- INLINE_IMAGE_CLIP_WRAPPER: "superdoc-inline-image-clip-wrapper",
1505
- ANNOTATION: "annotation",
1506
- ANNOTATION_CONTENT: "annotation-content",
1507
- ANNOTATION_CARET_ANCHOR: "annotation-caret-anchor"
1508
- };
1509
- const STRUCTURED_CONTENT_CHROME_LABEL_CLASS_NAMES = [DOM_CLASS_NAMES.INLINE_SDT_LABEL, DOM_CLASS_NAMES.BLOCK_SDT_LABEL];
1510
- const DATA_ATTRS = {
1511
- PM_START: "data-pm-start",
1512
- PM_END: "data-pm-end",
1513
- LAYOUT_EPOCH: "data-layout-epoch",
1514
- TABLE_BOUNDARIES: "data-table-boundaries",
1515
- SDT_ID: "data-sdt-id",
1516
- SDT_TYPE: "data-sdt-type",
1517
- FIELD_ID: "data-field-id",
1518
- FIELD_TYPE: "data-field-type",
1519
- DRAGGABLE: "data-draggable",
1520
- DISPLAY_LABEL: "data-display-label",
1521
- VARIANT: "data-variant",
1522
- TYPE: "data-type",
1523
- LAYOUT_BOUNDARY_SCHEMA: "data-layout-boundary-schema",
1524
- LAYOUT_FRAGMENT_ID: "data-layout-fragment-id",
1525
- LAYOUT_STORY: "data-layout-story",
1526
- LAYOUT_BLOCK_REF: "data-layout-block-ref"
1527
- };
1528
- const decodeLayoutStoryDataset = (raw) => {
1529
- if (!raw) return { kind: "unknown" };
1530
- if (raw === "body") return { kind: "body" };
1531
- const idx = raw.indexOf(":");
1532
- const kind = idx === -1 ? raw : raw.slice(0, idx);
1533
- const id = idx === -1 ? void 0 : raw.slice(idx + 1);
1534
- switch (kind) {
1535
- case "body":
1536
- case "header":
1537
- case "footer":
1538
- case "footnote":
1539
- case "endnote":
1540
- case "textbox": return id ? {
1541
- kind,
1542
- id
1543
- } : { kind };
1544
- default: return { kind: "unknown" };
1545
- }
1546
- };
1547
- const SDT_BLOCK_WITH_ID_SELECTOR = `.${DOM_CLASS_NAMES.BLOCK_SDT}[${DATA_ATTRS.SDT_ID}]`;
1548
- const DRAGGABLE_SELECTOR = `[${DATA_ATTRS.DRAGGABLE}="true"]`;
1549
1549
  var schemaBooleanOrNull = () => ({ oneOf: [{ type: "boolean" }, { type: "null" }] });
1550
1550
  var schemaStringOrNull = () => ({ oneOf: [{
1551
1551
  type: "string",
@@ -7962,6 +7962,14 @@ function createSuperDocUI(options) {
7962
7962
  if (typeof helper?.apply !== "function") return { reason: SUPERDOC_UI_REASONS.hostCapabilityUnavailable };
7963
7963
  return { helper };
7964
7964
  };
7965
+ const activateContentControlChrome = (id) => {
7966
+ const host = getHost();
7967
+ if (typeof host?.getHandles !== "function") return;
7968
+ try {
7969
+ const contentControls$1 = (host.getHandles()?.editing)?.contentControls;
7970
+ if (typeof contentControls$1?.activate === "function") contentControls$1.activate({ id });
7971
+ } catch {}
7972
+ };
7965
7973
  const selection = {
7966
7974
  get: selectionSnap.get,
7967
7975
  getSnapshot: selectionSnap.getSnapshot,
@@ -8654,6 +8662,7 @@ function createSuperDocUI(options) {
8654
8662
  success: false,
8655
8663
  reason: "not-reachable"
8656
8664
  };
8665
+ activateContentControlChrome(id);
8657
8666
  return { success: true };
8658
8667
  }
8659
8668
  };
@@ -9864,6 +9873,12 @@ Object.defineProperty(exports, "BUILT_IN_COMMAND_IDS", {
9864
9873
  return BUILT_IN_COMMAND_IDS;
9865
9874
  }
9866
9875
  });
9876
+ Object.defineProperty(exports, "DOM_CLASS_NAMES", {
9877
+ enumerable: true,
9878
+ get: function() {
9879
+ return DOM_CLASS_NAMES;
9880
+ }
9881
+ });
9867
9882
  Object.defineProperty(exports, "composeAuthorColorResolver", {
9868
9883
  enumerable: true,
9869
9884
  get: function() {
@@ -7,7 +7,7 @@ const COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
7
7
  var PRIVATE_ENGINE_INFO = (0, __superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
8
8
  var ENGINE_INFO = Object.freeze({
9
9
  ...PRIVATE_ENGINE_INFO,
10
- superdocVersion: "2.4.0-next.4",
10
+ superdocVersion: "2.4.0-next.6",
11
11
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
12
12
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
13
13
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
@@ -6,7 +6,7 @@ const COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
6
6
  var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
7
7
  var ENGINE_INFO = Object.freeze({
8
8
  ...PRIVATE_ENGINE_INFO,
9
- superdocVersion: "2.4.0-next.4",
9
+ superdocVersion: "2.4.0-next.6",
10
10
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
11
11
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
12
12
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
@@ -2,9 +2,7 @@ import { TextTarget, TrackedChangeAddress } from './address.js';
2
2
  import { DiscoveryOutput } from './discovery.js';
3
3
  import { StoryLocator } from './story.types.js';
4
4
  /**
5
- * Canonical v2 tracked-change broad-type vocabulary defined by
6
- * `../labs/tests/requirements/specs/tracked-changes-comments/tracked-changes-spec.md`
7
- * §3 / §5.
5
+ * Canonical v2 tracked-change broad-type vocabulary.
8
6
  *
9
7
  * Public adapters MUST emit one of these values. Existing v1 emitters and
10
8
  * tests still produce the legacy `insert` / `delete` / `format` strings; both
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../chunks/rolldown-runtime-1Y-nnZJ3.cjs");
3
- const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-BHMQEL2y.cjs");
3
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-sMXbYzhs.cjs");
4
4
  let react = require("react");
5
5
  var SuperDocUIContext = (0, react.createContext)(null);
6
6
  function disposeOwnedUi(ref) {
@@ -1,4 +1,4 @@
1
- import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-Dli6Wq70.es.js";
1
+ import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-BquF8bnZ.es.js";
2
2
  import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
3
3
  var SuperDocUIContext = createContext(null);
4
4
  function disposeOwnedUi(ref) {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-BHMQEL2y.cjs");
2
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-sMXbYzhs.cjs");
3
3
  exports.BUILT_IN_COMMAND_IDS = require_create_super_doc_ui.BUILT_IN_COMMAND_IDS;
4
4
  exports.createSuperDocUI = require_create_super_doc_ui.createSuperDocUI;
5
5
  exports.shallowEqual = require_create_super_doc_ui.shallowEqual;
@@ -1,2 +1,2 @@
1
- import { n as shallowEqual, r as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-Dli6Wq70.es.js";
1
+ import { n as shallowEqual, r as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-BquF8bnZ.es.js";
2
2
  export { BUILT_IN_COMMAND_IDS, createSuperDocUI, shallowEqual };
package/dist/style.css CHANGED
@@ -1734,11 +1734,11 @@ img[data-v-c95b2073] {
1734
1734
  pointer-events: auto;
1735
1735
  }
1736
1736
 
1737
- .superdoc[data-v-c3bc8a46] {
1737
+ .superdoc[data-v-acf35f4b] {
1738
1738
  display: flex;
1739
1739
  position: relative;
1740
1740
  }
1741
- .sd-visually-hidden[data-v-c3bc8a46] {
1741
+ .sd-visually-hidden[data-v-acf35f4b] {
1742
1742
  position: absolute;
1743
1743
  width: 1px;
1744
1744
  height: 1px;
@@ -1749,30 +1749,30 @@ img[data-v-c95b2073] {
1749
1749
  white-space: nowrap;
1750
1750
  border: 0;
1751
1751
  }
1752
- .right-sidebar[data-v-c3bc8a46] {
1752
+ .right-sidebar[data-v-acf35f4b] {
1753
1753
  min-width: 320px;
1754
1754
  height: 100%;
1755
1755
  }
1756
- .floating-comments[data-v-c3bc8a46] {
1756
+ .floating-comments[data-v-acf35f4b] {
1757
1757
  min-width: 300px;
1758
1758
  width: 300px;
1759
1759
  height: 100%;
1760
1760
  overflow: visible;
1761
1761
  }
1762
- .superdoc__layers[data-v-c3bc8a46] {
1762
+ .superdoc__layers[data-v-acf35f4b] {
1763
1763
  height: 100%;
1764
1764
  position: relative;
1765
1765
  box-sizing: border-box;
1766
1766
  }
1767
- .superdoc__document[data-v-c3bc8a46] {
1767
+ .superdoc__document[data-v-acf35f4b] {
1768
1768
  width: 100%;
1769
1769
  position: relative;
1770
1770
  }
1771
- .superdoc__sub-document[data-v-c3bc8a46] {
1771
+ .superdoc__sub-document[data-v-acf35f4b] {
1772
1772
  width: 100%;
1773
1773
  position: relative;
1774
1774
  }
1775
- .superdoc__selection-layer[data-v-c3bc8a46] {
1775
+ .superdoc__selection-layer[data-v-acf35f4b] {
1776
1776
  position: absolute;
1777
1777
  min-width: 100%;
1778
1778
  min-height: 100%;
@@ -1783,13 +1783,13 @@ img[data-v-c95b2073] {
1783
1783
  /* SD-3497: PDF whiteboard overlay sits above the rendered PDF canvas but below
1784
1784
  the PDF comment anchors (z-index 6 in PdfCommentsLayer) so anchors stay
1785
1785
  clickable, and below the selection layer (z-index 10). */
1786
- .superdoc__whiteboard-layer[data-v-c3bc8a46] {
1786
+ .superdoc__whiteboard-layer[data-v-acf35f4b] {
1787
1787
  z-index: 4;
1788
1788
  }
1789
- .superdoc__temp-selection[data-v-c3bc8a46] {
1789
+ .superdoc__temp-selection[data-v-acf35f4b] {
1790
1790
  position: absolute;
1791
1791
  }
1792
- .superdoc__right-sidebar[data-v-c3bc8a46] {
1792
+ .superdoc__right-sidebar[data-v-acf35f4b] {
1793
1793
  width: 320px;
1794
1794
  min-width: 320px;
1795
1795
  padding: 0 10px;
@@ -1797,7 +1797,7 @@ img[data-v-c95b2073] {
1797
1797
  position: relative;
1798
1798
  z-index: 2;
1799
1799
  }
1800
- .superdoc__compact-comment-popover[data-v-c3bc8a46] {
1800
+ .superdoc__compact-comment-popover[data-v-acf35f4b] {
1801
1801
  position: absolute;
1802
1802
  top: 12px;
1803
1803
  right: 12px;
@@ -1806,14 +1806,14 @@ img[data-v-c95b2073] {
1806
1806
  }
1807
1807
 
1808
1808
  /* Tools styles */
1809
- .tools[data-v-c3bc8a46] {
1809
+ .tools[data-v-acf35f4b] {
1810
1810
  position: absolute;
1811
1811
  z-index: 3;
1812
1812
  display: flex;
1813
1813
  flex-direction: column;
1814
1814
  gap: var(--sd-ui-tools-gap, 6px);
1815
1815
  }
1816
- .tools-item[data-v-c3bc8a46] {
1816
+ .tools-item[data-v-acf35f4b] {
1817
1817
  display: flex;
1818
1818
  align-items: center;
1819
1819
  justify-content: center;
@@ -1824,10 +1824,10 @@ img[data-v-c95b2073] {
1824
1824
  cursor: pointer;
1825
1825
  position: relative;
1826
1826
  }
1827
- .tools-item i[data-v-c3bc8a46] {
1827
+ .tools-item i[data-v-acf35f4b] {
1828
1828
  cursor: pointer;
1829
1829
  }
1830
- .superdoc__tools-icon[data-v-c3bc8a46] {
1830
+ .superdoc__tools-icon[data-v-acf35f4b] {
1831
1831
  width: var(--sd-ui-tools-icon-size, 20px);
1832
1832
  height: var(--sd-ui-tools-icon-size, 20px);
1833
1833
  flex-shrink: 0;
@@ -1842,22 +1842,22 @@ img[data-v-c95b2073] {
1842
1842
 
1843
1843
  /* 834px is iPad screen size in portrait orientation */
1844
1844
  @media (max-width: 834px) {
1845
- .superdoc .superdoc__layers[data-v-c3bc8a46] {
1845
+ .superdoc .superdoc__layers[data-v-acf35f4b] {
1846
1846
  margin: 0;
1847
1847
  border: 0 !important;
1848
1848
  box-shadow: none;
1849
1849
  }
1850
- .superdoc__sub-document[data-v-c3bc8a46] {
1850
+ .superdoc__sub-document[data-v-acf35f4b] {
1851
1851
  max-width: 100%;
1852
1852
  }
1853
- .superdoc__right-sidebar[data-v-c3bc8a46] {
1853
+ .superdoc__right-sidebar[data-v-acf35f4b] {
1854
1854
  padding: 10px;
1855
1855
  position: relative;
1856
1856
  }
1857
1857
  }
1858
1858
 
1859
1859
  /* AI Writer styles */
1860
- .ai-writer-container[data-v-c3bc8a46] {
1860
+ .ai-writer-container[data-v-acf35f4b] {
1861
1861
  position: fixed;
1862
1862
  z-index: 1000;
1863
1863
  background: white;
@@ -1873,10 +1873,10 @@ img[data-v-c95b2073] {
1873
1873
  transform: translateY(-50%);
1874
1874
  z-index: 50;
1875
1875
  } */
1876
- .ai-tool > svg[data-v-c3bc8a46] {
1876
+ .ai-tool > svg[data-v-acf35f4b] {
1877
1877
  fill: transparent;
1878
1878
  }
1879
- .ai-tool[data-v-c3bc8a46]::before {
1879
+ .ai-tool[data-v-acf35f4b]::before {
1880
1880
  content: '';
1881
1881
  position: absolute;
1882
1882
  width: 20px;
@@ -1897,7 +1897,7 @@ img[data-v-c95b2073] {
1897
1897
  filter: brightness(1.2);
1898
1898
  transition: filter 0.2s ease;
1899
1899
  }
1900
- .ai-tool[data-v-c3bc8a46]:hover::before {
1900
+ .ai-tool[data-v-acf35f4b]:hover::before {
1901
1901
  filter: brightness(1.3);
1902
1902
  }
1903
1903