superdoc 2.28.0-next.7 → 2.28.0-next.9
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/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +3 -3
- package/dist/document-api/src/hyperlinks/hyperlinks.types.d.ts +2 -0
- package/dist/layout-engine/contracts/src/index.d.ts +1 -0
- package/dist/layout-engine/contracts/src/resolved-layout.d.ts +1 -0
- package/dist/shared/common/list-marker-utils.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +1 -0
- package/dist/superdoc/src/core/extensions/types.d.ts +14 -3
- package/dist/superdoc/src/core/types/index.d.ts +25 -1
- package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +0 -8
- package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +0 -1
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +0 -2
- package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +0 -13
- package/dist/superdoc.cjs +13 -19
- package/dist/superdoc.es.js +13 -19
- package/dist/word-layout/src/types.d.ts +1 -0
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +38 -38
- package/package.json +2 -2
- package/dist/superdoc/src/helpers/floor.d.ts +0 -1
|
@@ -7,19 +7,6 @@
|
|
|
7
7
|
* @returns {Record<string, unknown>} InlineRunPatch ready for doc.format.apply
|
|
8
8
|
*/
|
|
9
9
|
export function sdRunPropsToInlineRunPatch(props: Record<string, unknown>): Record<string, unknown>;
|
|
10
|
-
/**
|
|
11
|
-
* Returns true when a selection segment spans the full visible text of its block.
|
|
12
|
-
* A collapsed caret is NOT a full paragraph.
|
|
13
|
-
*
|
|
14
|
-
* @param {{ range: { start: number; end: number } }} segment
|
|
15
|
-
* @param {number | null | undefined} blockVisibleLength
|
|
16
|
-
*/
|
|
17
|
-
export function isFullParagraph(segment: {
|
|
18
|
-
range: {
|
|
19
|
-
start: number;
|
|
20
|
-
end: number;
|
|
21
|
-
};
|
|
22
|
-
}, blockVisibleLength: number | null | undefined): boolean;
|
|
23
10
|
/**
|
|
24
11
|
* Serializes a selection to a stable string key used to detect whether
|
|
25
12
|
* the target selection is the same as the source (skip apply in that case).
|
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.
|
|
263
|
+
return "2.28.0-next.9";
|
|
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 =
|
|
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-
|
|
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
|
-
|
|
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.
|
|
46469
|
+
this.version = "2.28.0-next.9";
|
|
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 ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -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.
|
|
261
|
+
return "2.28.0-next.9";
|
|
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 =
|
|
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-
|
|
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
|
-
|
|
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.
|
|
46397
|
+
this.version = "2.28.0-next.9";
|
|
46404
46398
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46405
46399
|
this.superdocId = config.superdocId || v4();
|
|
46406
46400
|
this.colors = this.config.colors ?? [];
|