superdoc 2.28.0-next.7 → 2.28.0-next.8

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.
package/dist/superdoc.cjs CHANGED
@@ -260,7 +260,7 @@ var v_click_outside_default = {
260
260
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
261
261
  function getSuperdocVersion() {
262
262
  try {
263
- return "2.28.0-next.7";
263
+ return "2.28.0-next.8";
264
264
  } catch {
265
265
  return "unknown";
266
266
  }
@@ -7188,16 +7188,6 @@ function createDefaultV2Integration() {
7188
7188
  return createStubV2Integration();
7189
7189
  }
7190
7190
  }
7191
- /**
7192
- * Backwards-compatible alias. The v2 branch no longer reads any customer
7193
- * config; the parameter is ignored and retained only so existing call sites do
7194
- * not need to change in lockstep with this internalization.
7195
- *
7196
- * @returns {SuperDocV2Integration}
7197
- */
7198
- function resolveV2Integration() {
7199
- return createDefaultV2Integration();
7200
- }
7201
7191
  //#endregion
7202
7192
  //#region src/helpers/interaction-trace.js
7203
7193
  function safeTraceCollector() {
@@ -22169,7 +22159,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
22169
22159
  const { proxy } = require__plugin_vue_export_helper.getCurrentInstance();
22170
22160
  commentsStore.proxy = proxy;
22171
22161
  const documentOpenTelemetry = createDocumentOpenTelemetry(proxy.$superdoc.config);
22172
- const resolvedEditorIntegration = resolveV2Integration(proxy.$superdoc.config);
22162
+ const resolvedEditorIntegration = createDefaultV2Integration();
22173
22163
  const V2DocumentEditor = require__plugin_vue_export_helper.markRaw(resolvedEditorIntegration.EditorComponent);
22174
22164
  const V2Ruler = resolvedEditorIntegration.RulerComponent ? require__plugin_vue_export_helper.markRaw(resolvedEditorIntegration.RulerComponent) : null;
22175
22165
  const floatingComments = require__plugin_vue_export_helper.computed(() => {
@@ -23689,6 +23679,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
23689
23679
  emitCommentPositionsInViewing: isViewingMode() && shouldRenderCommentsInViewing.value,
23690
23680
  enableCommentsInViewing: isViewingCommentsVisible.value,
23691
23681
  contentControlsChrome: proxy.$superdoc.uiConfig.contentControls.options.chrome,
23682
+ commentHighlights: proxy.$superdoc.uiConfig.comments.highlights,
23692
23683
  resolveTrackedChangeColor: composeAuthorColorResolver(proxy.$superdoc.config.modules?.trackChanges?.authorColors)
23693
23684
  } : void 0,
23694
23685
  permissionResolver: createTrackedChangePermissionResolver(proxy.$superdoc)
@@ -24743,7 +24734,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
24743
24734
  ], 46, _hoisted_1$17);
24744
24735
  };
24745
24736
  }
24746
- }, [["__scopeId", "data-v-0f22e103"]]);
24737
+ }, [["__scopeId", "data-v-f2db957f"]]);
24747
24738
  //#endregion
24748
24739
  //#region src/core/create-app.js
24749
24740
  var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
@@ -38205,6 +38196,11 @@ var COMMENT_POLICY_FIELDS = Object.freeze([
38205
38196
  "allowResolve",
38206
38197
  "permissionResolver"
38207
38198
  ]);
38199
+ function withoutSwitches(options) {
38200
+ if (!("panel" in options) && !("highlights" in options)) return options;
38201
+ const { panel: _panel, highlights: _highlights, ...rest } = options;
38202
+ return rest;
38203
+ }
38208
38204
  /**
38209
38205
  * Drop policy fields from a presentation options bag.
38210
38206
  */
@@ -38549,8 +38545,9 @@ function normalizeUiConfig(config = {}) {
38549
38545
  }
38550
38546
  },
38551
38547
  comments: {
38552
- enabled: explicit("comments") ?? (!allDisabled && config.modules?.comments !== false),
38553
- options: allDisabled ? {} : normalizeCommentsUiConfig(withoutCommentPolicy(options("comments"))) || {}
38548
+ enabled: (explicit("comments") ?? (!allDisabled && config.modules?.comments !== false)) && options("comments").panel !== false,
38549
+ highlights: options("comments").highlights !== false,
38550
+ options: allDisabled ? {} : normalizeCommentsUiConfig(withoutCommentPolicy(withoutSwitches(options("comments")))) || {}
38554
38551
  },
38555
38552
  contextMenu: {
38556
38553
  enabled: explicit("contextMenu") ?? (!allDisabled && config.disableContextMenu !== true),
@@ -41684,9 +41681,6 @@ var TABLE_ACTION_COMMAND_MAP = {
41684
41681
  fixTables: "table-fix"
41685
41682
  };
41686
41683
  var TABLE_ACTION_COMMAND_IDS = Object.values(TABLE_ACTION_COMMAND_MAP);
41687
- [.../* @__PURE__ */ new Set([...Object.values(HEADLESS_ITEM_MAP), ...TABLE_ACTION_COMMAND_IDS])];
41688
- var NON_HEADLESS_EXECUTE_ITEM_NAMES = /* @__PURE__ */ new Set(["link"]);
41689
- new Set(Object.keys(HEADLESS_ITEM_MAP).filter((itemName) => !NON_HEADLESS_EXECUTE_ITEM_NAMES.has(itemName)));
41690
41684
  //#endregion
41691
41685
  //#region src/internal/toolbar/built-in/Toolbar.vue
41692
41686
  var _hoisted_1$10 = ["data-superdoc-ui-owner"];
@@ -46472,7 +46466,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
46472
46466
  }
46473
46467
  this.userColorMap = /* @__PURE__ */ new Map();
46474
46468
  this.colorIndex = 0;
46475
- this.version = "2.28.0-next.7";
46469
+ this.version = "2.28.0-next.8";
46476
46470
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
46477
46471
  this.superdocId = config.superdocId || require_uuid.v4();
46478
46472
  this.colors = this.config.colors ?? [];
@@ -258,7 +258,7 @@ var v_click_outside_default = {
258
258
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
259
259
  function getSuperdocVersion() {
260
260
  try {
261
- return "2.28.0-next.7";
261
+ return "2.28.0-next.8";
262
262
  } catch {
263
263
  return "unknown";
264
264
  }
@@ -7186,16 +7186,6 @@ function createDefaultV2Integration() {
7186
7186
  return createStubV2Integration();
7187
7187
  }
7188
7188
  }
7189
- /**
7190
- * Backwards-compatible alias. The v2 branch no longer reads any customer
7191
- * config; the parameter is ignored and retained only so existing call sites do
7192
- * not need to change in lockstep with this internalization.
7193
- *
7194
- * @returns {SuperDocV2Integration}
7195
- */
7196
- function resolveV2Integration() {
7197
- return createDefaultV2Integration();
7198
- }
7199
7189
  //#endregion
7200
7190
  //#region src/helpers/interaction-trace.js
7201
7191
  function safeTraceCollector() {
@@ -22129,7 +22119,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
22129
22119
  const { proxy } = getCurrentInstance();
22130
22120
  commentsStore.proxy = proxy;
22131
22121
  const documentOpenTelemetry = createDocumentOpenTelemetry(proxy.$superdoc.config);
22132
- const resolvedEditorIntegration = resolveV2Integration(proxy.$superdoc.config);
22122
+ const resolvedEditorIntegration = createDefaultV2Integration();
22133
22123
  const V2DocumentEditor = markRaw(resolvedEditorIntegration.EditorComponent);
22134
22124
  const V2Ruler = resolvedEditorIntegration.RulerComponent ? markRaw(resolvedEditorIntegration.RulerComponent) : null;
22135
22125
  const floatingComments = computed$1(() => {
@@ -23649,6 +23639,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
23649
23639
  emitCommentPositionsInViewing: isViewingMode() && shouldRenderCommentsInViewing.value,
23650
23640
  enableCommentsInViewing: isViewingCommentsVisible.value,
23651
23641
  contentControlsChrome: proxy.$superdoc.uiConfig.contentControls.options.chrome,
23642
+ commentHighlights: proxy.$superdoc.uiConfig.comments.highlights,
23652
23643
  resolveTrackedChangeColor: composeAuthorColorResolver(proxy.$superdoc.config.modules?.trackChanges?.authorColors)
23653
23644
  } : void 0,
23654
23645
  permissionResolver: createTrackedChangePermissionResolver(proxy.$superdoc)
@@ -24703,7 +24694,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
24703
24694
  ], 46, _hoisted_1$17);
24704
24695
  };
24705
24696
  }
24706
- }, [["__scopeId", "data-v-0f22e103"]]);
24697
+ }, [["__scopeId", "data-v-f2db957f"]]);
24707
24698
  //#endregion
24708
24699
  //#region src/core/create-app.js
24709
24700
  var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
@@ -38165,6 +38156,11 @@ var COMMENT_POLICY_FIELDS = Object.freeze([
38165
38156
  "allowResolve",
38166
38157
  "permissionResolver"
38167
38158
  ]);
38159
+ function withoutSwitches(options) {
38160
+ if (!("panel" in options) && !("highlights" in options)) return options;
38161
+ const { panel: _panel, highlights: _highlights, ...rest } = options;
38162
+ return rest;
38163
+ }
38168
38164
  /**
38169
38165
  * Drop policy fields from a presentation options bag.
38170
38166
  */
@@ -38509,8 +38505,9 @@ function normalizeUiConfig(config = {}) {
38509
38505
  }
38510
38506
  },
38511
38507
  comments: {
38512
- enabled: explicit("comments") ?? (!allDisabled && config.modules?.comments !== false),
38513
- options: allDisabled ? {} : normalizeCommentsUiConfig(withoutCommentPolicy(options("comments"))) || {}
38508
+ enabled: (explicit("comments") ?? (!allDisabled && config.modules?.comments !== false)) && options("comments").panel !== false,
38509
+ highlights: options("comments").highlights !== false,
38510
+ options: allDisabled ? {} : normalizeCommentsUiConfig(withoutCommentPolicy(withoutSwitches(options("comments")))) || {}
38514
38511
  },
38515
38512
  contextMenu: {
38516
38513
  enabled: explicit("contextMenu") ?? (!allDisabled && config.disableContextMenu !== true),
@@ -41634,9 +41631,6 @@ var TABLE_ACTION_COMMAND_MAP = {
41634
41631
  fixTables: "table-fix"
41635
41632
  };
41636
41633
  var TABLE_ACTION_COMMAND_IDS = Object.values(TABLE_ACTION_COMMAND_MAP);
41637
- [.../* @__PURE__ */ new Set([...Object.values(HEADLESS_ITEM_MAP), ...TABLE_ACTION_COMMAND_IDS])];
41638
- var NON_HEADLESS_EXECUTE_ITEM_NAMES = /* @__PURE__ */ new Set(["link"]);
41639
- new Set(Object.keys(HEADLESS_ITEM_MAP).filter((itemName) => !NON_HEADLESS_EXECUTE_ITEM_NAMES.has(itemName)));
41640
41634
  //#endregion
41641
41635
  //#region src/internal/toolbar/built-in/Toolbar.vue
41642
41636
  var _hoisted_1$10 = ["data-superdoc-ui-owner"];
@@ -46400,7 +46394,7 @@ var SuperDoc = class extends import_eventemitter3.default {
46400
46394
  }
46401
46395
  this.userColorMap = /* @__PURE__ */ new Map();
46402
46396
  this.colorIndex = 0;
46403
- this.version = "2.28.0-next.7";
46397
+ this.version = "2.28.0-next.8";
46404
46398
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
46405
46399
  this.superdocId = config.superdocId || v4();
46406
46400
  this.colors = this.config.colors ?? [];
@@ -90,6 +90,7 @@ export type WordListMarkerLayout = {
90
90
  run: ResolvedRunProperties;
91
91
  };
92
92
  export type WordParagraphLayoutOutput = {
93
+ textStartMode?: 'paragraph';
93
94
  indentLeftPx: number;
94
95
  hangingPx: number;
95
96
  firstLinePx?: number;