superdoc 2.4.0-next.27 → 2.4.0-next.29
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/README.md +15 -18
- package/dist/chunks/{eventemitter3-DEIiXiH2.es.js → eventemitter3-CMOjDs74.es.js} +1 -1
- package/dist/chunks/{eventemitter3-C_TAnXOl.cjs → eventemitter3-D38u8ta_.cjs} +1 -1
- package/dist/chunks/{jszip-D8mAFF-r.cjs → jszip-RC64TPzL.cjs} +1 -1
- package/dist/chunks/{jszip-BzJ3CyxR.es.js → jszip-VxCFV9YS.es.js} +1 -1
- package/dist/chunks/{rolldown-runtime-0pSA04fp.es.js → rolldown-runtime-B5TtN50X.es.js} +1 -1
- package/dist/chunks/{rolldown-runtime-74VwNCz7.cjs → rolldown-runtime-DtsSbkrh.cjs} +1 -1
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/style.css +23 -23
- package/dist/style.layered.css +23 -23
- package/dist/superdoc/src/core/types/index.d.ts +11 -0
- package/dist/superdoc.cjs +38 -71
- package/dist/superdoc.es.js +38 -71
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +36 -36
- package/package.json +2 -2
package/dist/superdoc.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_rolldown_runtime = require("./chunks/rolldown-runtime-
|
|
2
|
+
const require_rolldown_runtime = require("./chunks/rolldown-runtime-DtsSbkrh.cjs");
|
|
3
3
|
const require_blank_docx = require("./chunks/blank-docx-BuFAbRjs.cjs");
|
|
4
|
-
const require_eventemitter3 = require("./chunks/eventemitter3-
|
|
4
|
+
const require_eventemitter3 = require("./chunks/eventemitter3-D38u8ta_.cjs");
|
|
5
5
|
const require_uuid = require("./chunks/uuid-BhG0ngwk.cjs");
|
|
6
|
-
const require_jszip = require("./chunks/jszip-
|
|
6
|
+
const require_jszip = require("./chunks/jszip-RC64TPzL.cjs");
|
|
7
7
|
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-CqGmoMMA.cjs");
|
|
8
8
|
const require__plugin_vue_export_helper = require("./chunks/_plugin-vue_export-helper-SDR04tiH.cjs");
|
|
9
9
|
const require_constants = require("./chunks/constants-DpXuDx_g.cjs");
|
|
@@ -3752,9 +3752,7 @@ var getDeep = (object, path) => {
|
|
|
3752
3752
|
case "key":
|
|
3753
3753
|
object = keyOfRow;
|
|
3754
3754
|
break;
|
|
3755
|
-
case "value":
|
|
3756
|
-
object = object.get(keyOfRow);
|
|
3757
|
-
break;
|
|
3755
|
+
case "value": object = object.get(keyOfRow);
|
|
3758
3756
|
}
|
|
3759
3757
|
} else object = object[key];
|
|
3760
3758
|
}
|
|
@@ -3782,9 +3780,7 @@ var setDeep = (object, path, mapper) => {
|
|
|
3782
3780
|
case "key":
|
|
3783
3781
|
parent = keyOfRow;
|
|
3784
3782
|
break;
|
|
3785
|
-
case "value":
|
|
3786
|
-
parent = parent.get(keyOfRow);
|
|
3787
|
-
break;
|
|
3783
|
+
case "value": parent = parent.get(keyOfRow);
|
|
3788
3784
|
}
|
|
3789
3785
|
}
|
|
3790
3786
|
}
|
|
@@ -3809,9 +3805,7 @@ var setDeep = (object, path, mapper) => {
|
|
|
3809
3805
|
if (newKey !== keyToRow) parent.delete(keyToRow);
|
|
3810
3806
|
break;
|
|
3811
3807
|
}
|
|
3812
|
-
case "value":
|
|
3813
|
-
parent.set(keyToRow, mapper(parent.get(keyToRow)));
|
|
3814
|
-
break;
|
|
3808
|
+
case "value": parent.set(keyToRow, mapper(parent.get(keyToRow)));
|
|
3815
3809
|
}
|
|
3816
3810
|
}
|
|
3817
3811
|
return object;
|
|
@@ -5602,9 +5596,7 @@ var syncCommentsToClients = (superdoc, event) => {
|
|
|
5602
5596
|
case "resolved":
|
|
5603
5597
|
updateYComment(yArray, superdoc.ydoc, event, user);
|
|
5604
5598
|
break;
|
|
5605
|
-
case "deleted":
|
|
5606
|
-
deleteYComment(yArray, superdoc.ydoc, event, user);
|
|
5607
|
-
break;
|
|
5599
|
+
case "deleted": deleteYComment(yArray, superdoc.ydoc, event, user);
|
|
5608
5600
|
}
|
|
5609
5601
|
};
|
|
5610
5602
|
//#endregion
|
|
@@ -12498,7 +12490,7 @@ var _sfc_main$33 = {
|
|
|
12498
12490
|
if (!shouldCollapseThread.value) return comments.value;
|
|
12499
12491
|
return [comments.value[0], childComments.value[childComments.value.length - 1]].filter(Boolean);
|
|
12500
12492
|
});
|
|
12501
|
-
|
|
12493
|
+
const overflowMeasurementKey = (0, vue.computed)(() => {
|
|
12502
12494
|
const comment = visibleComments.value[0];
|
|
12503
12495
|
if (!comment) return "";
|
|
12504
12496
|
return JSON.stringify({
|
|
@@ -12511,7 +12503,8 @@ var _sfc_main$33 = {
|
|
|
12511
12503
|
trackedChangeDisplayType: comment.trackedChangeDisplayType,
|
|
12512
12504
|
trackedChangeDetailLines: comment.trackedChangeDetailLines
|
|
12513
12505
|
});
|
|
12514
|
-
})
|
|
12506
|
+
});
|
|
12507
|
+
(0, vue.watch)(overflowMeasurementKey, () => {
|
|
12515
12508
|
(0, vue.nextTick)(checkOverflow);
|
|
12516
12509
|
});
|
|
12517
12510
|
const collapsedReplyCount = (0, vue.computed)(() => {
|
|
@@ -12935,12 +12928,10 @@ var _sfc_main$33 = {
|
|
|
12935
12928
|
focusEditInput(comment.commentId);
|
|
12936
12929
|
});
|
|
12937
12930
|
break;
|
|
12938
|
-
case "delete":
|
|
12939
|
-
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
});
|
|
12943
|
-
break;
|
|
12931
|
+
case "delete": deleteComment({
|
|
12932
|
+
superdoc: proxy.$superdoc,
|
|
12933
|
+
commentId: comment.commentId
|
|
12934
|
+
});
|
|
12944
12935
|
}
|
|
12945
12936
|
};
|
|
12946
12937
|
const handleCommentUpdate = async (comment) => {
|
|
@@ -21769,6 +21760,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
|
|
|
21769
21760
|
},
|
|
21770
21761
|
fontAssets: proxy.$superdoc.config.fonts,
|
|
21771
21762
|
workerUrls: proxy.$superdoc.config.workerUrls,
|
|
21763
|
+
workerStartupTimeoutMs: proxy.$superdoc.config.workerStartupTimeoutMs,
|
|
21772
21764
|
proofing: resolvedProofingConfig.value,
|
|
21773
21765
|
isNewFile,
|
|
21774
21766
|
password: getDocumentLoadPassword(doc),
|
|
@@ -22764,7 +22756,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
|
|
|
22764
22756
|
], 38);
|
|
22765
22757
|
};
|
|
22766
22758
|
}
|
|
22767
|
-
}, [["__scopeId", "data-v-
|
|
22759
|
+
}, [["__scopeId", "data-v-d39f5239"]]);
|
|
22768
22760
|
//#endregion
|
|
22769
22761
|
//#region src/core/create-app.js
|
|
22770
22762
|
var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
|
|
@@ -26842,9 +26834,7 @@ function parseCSSFilters(cssFilter) {
|
|
|
26842
26834
|
const KonvaFilters = Konva$2.Filters;
|
|
26843
26835
|
if (KonvaFilters && KonvaFilters.Invert) KonvaFilters.Invert.call(this, imageData);
|
|
26844
26836
|
};
|
|
26845
|
-
default:
|
|
26846
|
-
Util.warn(`CSS filter "${filterName}" is not supported in fallback mode. Consider using function filters for better compatibility.`);
|
|
26847
|
-
break;
|
|
26837
|
+
default: Util.warn(`CSS filter "${filterName}" is not supported in fallback mode. Consider using function filters for better compatibility.`);
|
|
26848
26838
|
}
|
|
26849
26839
|
}
|
|
26850
26840
|
return () => {};
|
|
@@ -31264,7 +31254,6 @@ var Path = class Path extends Shape {
|
|
|
31264
31254
|
case "z":
|
|
31265
31255
|
isClosed = true;
|
|
31266
31256
|
context.closePath();
|
|
31267
|
-
break;
|
|
31268
31257
|
}
|
|
31269
31258
|
}
|
|
31270
31259
|
if (!isClosed && !this.hasFill()) context.strokeShape(this);
|
|
@@ -31734,7 +31723,6 @@ var Path = class Path extends Shape {
|
|
|
31734
31723
|
cpy += p.shift();
|
|
31735
31724
|
cmd = "A";
|
|
31736
31725
|
points = this.convertEndpointToCenterParameterization(x1, y1, cpx, cpy, fa, fs, rx, ry, psi);
|
|
31737
|
-
break;
|
|
31738
31726
|
}
|
|
31739
31727
|
ca.push({
|
|
31740
31728
|
command: cmd || c,
|
|
@@ -32192,7 +32180,6 @@ var Label = class extends Group {
|
|
|
32192
32180
|
case LEFT$1:
|
|
32193
32181
|
x = -1 * pointerWidth;
|
|
32194
32182
|
y = height / 2;
|
|
32195
|
-
break;
|
|
32196
32183
|
}
|
|
32197
32184
|
tag.setAttrs({
|
|
32198
32185
|
x: -1 * x,
|
|
@@ -35275,11 +35262,14 @@ function backgroundMask(idata, threshold) {
|
|
|
35275
35262
|
rgbv_so
|
|
35276
35263
|
]);
|
|
35277
35264
|
const mask = [];
|
|
35278
|
-
for (let i = 0; i < idata.width * idata.height; i++)
|
|
35279
|
-
|
|
35280
|
-
|
|
35281
|
-
|
|
35282
|
-
|
|
35265
|
+
for (let i = 0; i < idata.width * idata.height; i++) {
|
|
35266
|
+
const d = rgbDistance(mean, [
|
|
35267
|
+
idata.data[i * 4],
|
|
35268
|
+
idata.data[i * 4 + 1],
|
|
35269
|
+
idata.data[i * 4 + 2]
|
|
35270
|
+
]);
|
|
35271
|
+
mask[i] = d < thres ? 0 : 255;
|
|
35272
|
+
}
|
|
35283
35273
|
return mask;
|
|
35284
35274
|
}
|
|
35285
35275
|
}
|
|
@@ -38243,8 +38233,6 @@ var _sfc_main$14 = {
|
|
|
38243
38233
|
event.preventDefault();
|
|
38244
38234
|
resetToApplied();
|
|
38245
38235
|
(0, vue.nextTick)(() => inputRef.value?.focus());
|
|
38246
|
-
break;
|
|
38247
|
-
default: break;
|
|
38248
38236
|
}
|
|
38249
38237
|
};
|
|
38250
38238
|
const onCaretMousedown = (event) => {
|
|
@@ -38301,8 +38289,6 @@ var _sfc_main$14 = {
|
|
|
38301
38289
|
shiftKey: event.shiftKey,
|
|
38302
38290
|
target: inputRef.value
|
|
38303
38291
|
});
|
|
38304
|
-
break;
|
|
38305
|
-
default: break;
|
|
38306
38292
|
}
|
|
38307
38293
|
};
|
|
38308
38294
|
const handleDocumentPointerDown = (event) => {
|
|
@@ -39043,11 +39029,8 @@ var _sfc_main$10 = {
|
|
|
39043
39029
|
closeDropdowns();
|
|
39044
39030
|
moveToPreviousButton(e);
|
|
39045
39031
|
break;
|
|
39046
|
-
case "Tab":
|
|
39047
|
-
|
|
39048
|
-
else moveToNextButtonGroup(e);
|
|
39049
|
-
break;
|
|
39050
|
-
default: break;
|
|
39032
|
+
case "Tab": if (e.shiftKey) moveToPreviousButtonGroup(e);
|
|
39033
|
+
else moveToNextButtonGroup(e);
|
|
39051
39034
|
}
|
|
39052
39035
|
};
|
|
39053
39036
|
const handleFocus = (e) => {
|
|
@@ -39835,10 +39818,7 @@ var AlignmentButtons_default = /*#__PURE__*/ require__plugin_vue_export_helper._
|
|
|
39835
39818
|
case "ArrowRight":
|
|
39836
39819
|
moveToNextButton(index);
|
|
39837
39820
|
break;
|
|
39838
|
-
case "Enter":
|
|
39839
|
-
select(alignmentButtons[index].key);
|
|
39840
|
-
break;
|
|
39841
|
-
default: break;
|
|
39821
|
+
case "Enter": select(alignmentButtons[index].key);
|
|
39842
39822
|
}
|
|
39843
39823
|
};
|
|
39844
39824
|
(0, vue.onMounted)(() => {
|
|
@@ -39928,10 +39908,7 @@ var _sfc_main$7 = {
|
|
|
39928
39908
|
case "ArrowRight":
|
|
39929
39909
|
moveToNextButton(index);
|
|
39930
39910
|
break;
|
|
39931
|
-
case "Enter":
|
|
39932
|
-
select(props.buttons[index].key);
|
|
39933
|
-
break;
|
|
39934
|
-
default: break;
|
|
39911
|
+
case "Enter": select(props.buttons[index].key);
|
|
39935
39912
|
}
|
|
39936
39913
|
};
|
|
39937
39914
|
(0, vue.onMounted)(() => {
|
|
@@ -40066,10 +40043,7 @@ var _sfc_main$6 = {
|
|
|
40066
40043
|
case "ArrowUp":
|
|
40067
40044
|
moveToPreviousOption(index);
|
|
40068
40045
|
break;
|
|
40069
|
-
case "Enter":
|
|
40070
|
-
handleClick(props.options[index]);
|
|
40071
|
-
break;
|
|
40072
|
-
default: break;
|
|
40046
|
+
case "Enter": handleClick(props.options[index]);
|
|
40073
40047
|
}
|
|
40074
40048
|
};
|
|
40075
40049
|
(0, vue.onMounted)(() => {
|
|
@@ -40162,8 +40136,6 @@ var _sfc_main$5 = {
|
|
|
40162
40136
|
case "Enter":
|
|
40163
40137
|
event.preventDefault();
|
|
40164
40138
|
select(style);
|
|
40165
|
-
break;
|
|
40166
|
-
default: break;
|
|
40167
40139
|
}
|
|
40168
40140
|
};
|
|
40169
40141
|
const styleLabel = (style) => style?.name ?? style?.id ?? "";
|
|
@@ -40465,10 +40437,7 @@ var _sfc_main$3 = {
|
|
|
40465
40437
|
case "Enter":
|
|
40466
40438
|
handleClick(option);
|
|
40467
40439
|
break;
|
|
40468
|
-
case "Escape":
|
|
40469
|
-
emit("clickoutside");
|
|
40470
|
-
break;
|
|
40471
|
-
default: break;
|
|
40440
|
+
case "Escape": emit("clickoutside");
|
|
40472
40441
|
}
|
|
40473
40442
|
};
|
|
40474
40443
|
return (_ctx, _cache) => {
|
|
@@ -40753,13 +40722,10 @@ var TableGrid_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_
|
|
|
40753
40722
|
selectGridItems(tableGridItems.value, cols, rows - 1);
|
|
40754
40723
|
break;
|
|
40755
40724
|
}
|
|
40756
|
-
case "Enter":
|
|
40757
|
-
|
|
40758
|
-
|
|
40759
|
-
|
|
40760
|
-
});
|
|
40761
|
-
break;
|
|
40762
|
-
default: break;
|
|
40725
|
+
case "Enter": handleClick({
|
|
40726
|
+
cols,
|
|
40727
|
+
rows
|
|
40728
|
+
});
|
|
40763
40729
|
}
|
|
40764
40730
|
};
|
|
40765
40731
|
(0, vue.onMounted)(() => {
|
|
@@ -41709,8 +41675,9 @@ var makeDefaultItems = ({ superToolbar, toolbarIcons, toolbarTexts, toolbarFonts
|
|
|
41709
41675
|
}
|
|
41710
41676
|
];
|
|
41711
41677
|
function renderDocumentMode(renderDocumentButton) {
|
|
41678
|
+
const optionsAfterRole = getDocumentOptionsAfterRole(role, documentOptions);
|
|
41712
41679
|
return (0, vue.h)(DocumentMode_default, {
|
|
41713
|
-
options:
|
|
41680
|
+
options: optionsAfterRole,
|
|
41714
41681
|
onSelect: (item) => {
|
|
41715
41682
|
const selectedEditor = superToolbar.superdoc?.activeEditor ?? superToolbar.activeEditor;
|
|
41716
41683
|
closeDropdown(renderDocumentButton);
|
|
@@ -43268,7 +43235,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
43268
43235
|
this.config.colors = shuffleArray(this.config.colors);
|
|
43269
43236
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
43270
43237
|
this.colorIndex = 0;
|
|
43271
|
-
this.version = "2.4.0-next.
|
|
43238
|
+
this.version = "2.4.0-next.29";
|
|
43272
43239
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
43273
43240
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
43274
43241
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as __toESM$2 } from "./chunks/rolldown-runtime-
|
|
1
|
+
import { i as __toESM$2 } from "./chunks/rolldown-runtime-B5TtN50X.es.js";
|
|
2
2
|
import { t as blank_default } from "./chunks/blank-docx-DzQccOlW.es.js";
|
|
3
|
-
import { t as import_eventemitter3 } from "./chunks/eventemitter3-
|
|
3
|
+
import { t as import_eventemitter3 } from "./chunks/eventemitter3-CMOjDs74.es.js";
|
|
4
4
|
import { t as v4 } from "./chunks/uuid-H0Xcmmhy.es.js";
|
|
5
|
-
import { a as init_dist$1, i as global, n as init_dist$2, o as Buffer, r as process$1, s as init_dist, t as require_jszip_min } from "./chunks/jszip-
|
|
5
|
+
import { a as init_dist$1, i as global, n as init_dist$2, o as Buffer, r as process$1, s as init_dist, t as require_jszip_min } from "./chunks/jszip-VxCFV9YS.es.js";
|
|
6
6
|
import { a as DOM_CLASS_NAMES, i as getV2TrackedChangeMutationImpact, t as createSuperDocUI } from "./chunks/create-super-doc-ui-CmOSA_lN.es.js";
|
|
7
7
|
import { t as _plugin_vue_export_helper_default } from "./chunks/_plugin-vue_export-helper-BOaGB7Aw.es.js";
|
|
8
8
|
import { t as PDF_TO_CSS_UNITS } from "./chunks/constants-B6VBlmKp.es.js";
|
|
@@ -3751,9 +3751,7 @@ var getDeep = (object, path) => {
|
|
|
3751
3751
|
case "key":
|
|
3752
3752
|
object = keyOfRow;
|
|
3753
3753
|
break;
|
|
3754
|
-
case "value":
|
|
3755
|
-
object = object.get(keyOfRow);
|
|
3756
|
-
break;
|
|
3754
|
+
case "value": object = object.get(keyOfRow);
|
|
3757
3755
|
}
|
|
3758
3756
|
} else object = object[key];
|
|
3759
3757
|
}
|
|
@@ -3781,9 +3779,7 @@ var setDeep = (object, path, mapper) => {
|
|
|
3781
3779
|
case "key":
|
|
3782
3780
|
parent = keyOfRow;
|
|
3783
3781
|
break;
|
|
3784
|
-
case "value":
|
|
3785
|
-
parent = parent.get(keyOfRow);
|
|
3786
|
-
break;
|
|
3782
|
+
case "value": parent = parent.get(keyOfRow);
|
|
3787
3783
|
}
|
|
3788
3784
|
}
|
|
3789
3785
|
}
|
|
@@ -3808,9 +3804,7 @@ var setDeep = (object, path, mapper) => {
|
|
|
3808
3804
|
if (newKey !== keyToRow) parent.delete(keyToRow);
|
|
3809
3805
|
break;
|
|
3810
3806
|
}
|
|
3811
|
-
case "value":
|
|
3812
|
-
parent.set(keyToRow, mapper(parent.get(keyToRow)));
|
|
3813
|
-
break;
|
|
3807
|
+
case "value": parent.set(keyToRow, mapper(parent.get(keyToRow)));
|
|
3814
3808
|
}
|
|
3815
3809
|
}
|
|
3816
3810
|
return object;
|
|
@@ -5601,9 +5595,7 @@ var syncCommentsToClients = (superdoc, event) => {
|
|
|
5601
5595
|
case "resolved":
|
|
5602
5596
|
updateYComment(yArray, superdoc.ydoc, event, user);
|
|
5603
5597
|
break;
|
|
5604
|
-
case "deleted":
|
|
5605
|
-
deleteYComment(yArray, superdoc.ydoc, event, user);
|
|
5606
|
-
break;
|
|
5598
|
+
case "deleted": deleteYComment(yArray, superdoc.ydoc, event, user);
|
|
5607
5599
|
}
|
|
5608
5600
|
};
|
|
5609
5601
|
//#endregion
|
|
@@ -12492,7 +12484,7 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
12492
12484
|
if (!shouldCollapseThread.value) return comments.value;
|
|
12493
12485
|
return [comments.value[0], childComments.value[childComments.value.length - 1]].filter(Boolean);
|
|
12494
12486
|
});
|
|
12495
|
-
|
|
12487
|
+
const overflowMeasurementKey = computed(() => {
|
|
12496
12488
|
const comment = visibleComments.value[0];
|
|
12497
12489
|
if (!comment) return "";
|
|
12498
12490
|
return JSON.stringify({
|
|
@@ -12505,7 +12497,8 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
12505
12497
|
trackedChangeDisplayType: comment.trackedChangeDisplayType,
|
|
12506
12498
|
trackedChangeDetailLines: comment.trackedChangeDetailLines
|
|
12507
12499
|
});
|
|
12508
|
-
})
|
|
12500
|
+
});
|
|
12501
|
+
watch(overflowMeasurementKey, () => {
|
|
12509
12502
|
nextTick(checkOverflow);
|
|
12510
12503
|
});
|
|
12511
12504
|
const collapsedReplyCount = computed(() => {
|
|
@@ -12929,12 +12922,10 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
12929
12922
|
focusEditInput(comment.commentId);
|
|
12930
12923
|
});
|
|
12931
12924
|
break;
|
|
12932
|
-
case "delete":
|
|
12933
|
-
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
});
|
|
12937
|
-
break;
|
|
12925
|
+
case "delete": deleteComment({
|
|
12926
|
+
superdoc: proxy.$superdoc,
|
|
12927
|
+
commentId: comment.commentId
|
|
12928
|
+
});
|
|
12938
12929
|
}
|
|
12939
12930
|
};
|
|
12940
12931
|
const handleCommentUpdate = async (comment) => {
|
|
@@ -21729,6 +21720,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
21729
21720
|
},
|
|
21730
21721
|
fontAssets: proxy.$superdoc.config.fonts,
|
|
21731
21722
|
workerUrls: proxy.$superdoc.config.workerUrls,
|
|
21723
|
+
workerStartupTimeoutMs: proxy.$superdoc.config.workerStartupTimeoutMs,
|
|
21732
21724
|
proofing: resolvedProofingConfig.value,
|
|
21733
21725
|
isNewFile,
|
|
21734
21726
|
password: getDocumentLoadPassword(doc),
|
|
@@ -22724,7 +22716,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
22724
22716
|
], 38);
|
|
22725
22717
|
};
|
|
22726
22718
|
}
|
|
22727
|
-
}, [["__scopeId", "data-v-
|
|
22719
|
+
}, [["__scopeId", "data-v-d39f5239"]]);
|
|
22728
22720
|
//#endregion
|
|
22729
22721
|
//#region src/core/create-app.js
|
|
22730
22722
|
var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
|
|
@@ -26802,9 +26794,7 @@ function parseCSSFilters(cssFilter) {
|
|
|
26802
26794
|
const KonvaFilters = Konva$2.Filters;
|
|
26803
26795
|
if (KonvaFilters && KonvaFilters.Invert) KonvaFilters.Invert.call(this, imageData);
|
|
26804
26796
|
};
|
|
26805
|
-
default:
|
|
26806
|
-
Util.warn(`CSS filter "${filterName}" is not supported in fallback mode. Consider using function filters for better compatibility.`);
|
|
26807
|
-
break;
|
|
26797
|
+
default: Util.warn(`CSS filter "${filterName}" is not supported in fallback mode. Consider using function filters for better compatibility.`);
|
|
26808
26798
|
}
|
|
26809
26799
|
}
|
|
26810
26800
|
return () => {};
|
|
@@ -31224,7 +31214,6 @@ var Path = class Path extends Shape {
|
|
|
31224
31214
|
case "z":
|
|
31225
31215
|
isClosed = true;
|
|
31226
31216
|
context.closePath();
|
|
31227
|
-
break;
|
|
31228
31217
|
}
|
|
31229
31218
|
}
|
|
31230
31219
|
if (!isClosed && !this.hasFill()) context.strokeShape(this);
|
|
@@ -31694,7 +31683,6 @@ var Path = class Path extends Shape {
|
|
|
31694
31683
|
cpy += p.shift();
|
|
31695
31684
|
cmd = "A";
|
|
31696
31685
|
points = this.convertEndpointToCenterParameterization(x1, y1, cpx, cpy, fa, fs, rx, ry, psi);
|
|
31697
|
-
break;
|
|
31698
31686
|
}
|
|
31699
31687
|
ca.push({
|
|
31700
31688
|
command: cmd || c,
|
|
@@ -32152,7 +32140,6 @@ var Label = class extends Group {
|
|
|
32152
32140
|
case LEFT$1:
|
|
32153
32141
|
x = -1 * pointerWidth;
|
|
32154
32142
|
y = height / 2;
|
|
32155
|
-
break;
|
|
32156
32143
|
}
|
|
32157
32144
|
tag.setAttrs({
|
|
32158
32145
|
x: -1 * x,
|
|
@@ -35235,11 +35222,14 @@ function backgroundMask(idata, threshold) {
|
|
|
35235
35222
|
rgbv_so
|
|
35236
35223
|
]);
|
|
35237
35224
|
const mask = [];
|
|
35238
|
-
for (let i = 0; i < idata.width * idata.height; i++)
|
|
35239
|
-
|
|
35240
|
-
|
|
35241
|
-
|
|
35242
|
-
|
|
35225
|
+
for (let i = 0; i < idata.width * idata.height; i++) {
|
|
35226
|
+
const d = rgbDistance(mean, [
|
|
35227
|
+
idata.data[i * 4],
|
|
35228
|
+
idata.data[i * 4 + 1],
|
|
35229
|
+
idata.data[i * 4 + 2]
|
|
35230
|
+
]);
|
|
35231
|
+
mask[i] = d < thres ? 0 : 255;
|
|
35232
|
+
}
|
|
35243
35233
|
return mask;
|
|
35244
35234
|
}
|
|
35245
35235
|
}
|
|
@@ -38198,8 +38188,6 @@ var ToolbarComboBox_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
38198
38188
|
event.preventDefault();
|
|
38199
38189
|
resetToApplied();
|
|
38200
38190
|
nextTick(() => inputRef.value?.focus());
|
|
38201
|
-
break;
|
|
38202
|
-
default: break;
|
|
38203
38191
|
}
|
|
38204
38192
|
};
|
|
38205
38193
|
const onCaretMousedown = (event) => {
|
|
@@ -38256,8 +38244,6 @@ var ToolbarComboBox_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
38256
38244
|
shiftKey: event.shiftKey,
|
|
38257
38245
|
target: inputRef.value
|
|
38258
38246
|
});
|
|
38259
|
-
break;
|
|
38260
|
-
default: break;
|
|
38261
38247
|
}
|
|
38262
38248
|
};
|
|
38263
38249
|
const handleDocumentPointerDown = (event) => {
|
|
@@ -38996,11 +38982,8 @@ var ButtonGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
38996
38982
|
closeDropdowns();
|
|
38997
38983
|
moveToPreviousButton(e);
|
|
38998
38984
|
break;
|
|
38999
|
-
case "Tab":
|
|
39000
|
-
|
|
39001
|
-
else moveToNextButtonGroup(e);
|
|
39002
|
-
break;
|
|
39003
|
-
default: break;
|
|
38985
|
+
case "Tab": if (e.shiftKey) moveToPreviousButtonGroup(e);
|
|
38986
|
+
else moveToNextButtonGroup(e);
|
|
39004
38987
|
}
|
|
39005
38988
|
};
|
|
39006
38989
|
const handleFocus = (e) => {
|
|
@@ -39787,10 +39770,7 @@ var AlignmentButtons_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
39787
39770
|
case "ArrowRight":
|
|
39788
39771
|
moveToNextButton(index);
|
|
39789
39772
|
break;
|
|
39790
|
-
case "Enter":
|
|
39791
|
-
select(alignmentButtons[index].key);
|
|
39792
|
-
break;
|
|
39793
|
-
default: break;
|
|
39773
|
+
case "Enter": select(alignmentButtons[index].key);
|
|
39794
39774
|
}
|
|
39795
39775
|
};
|
|
39796
39776
|
onMounted(() => {
|
|
@@ -39880,10 +39860,7 @@ var StyleButtonsList_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
39880
39860
|
case "ArrowRight":
|
|
39881
39861
|
moveToNextButton(index);
|
|
39882
39862
|
break;
|
|
39883
|
-
case "Enter":
|
|
39884
|
-
select(props.buttons[index].key);
|
|
39885
|
-
break;
|
|
39886
|
-
default: break;
|
|
39863
|
+
case "Enter": select(props.buttons[index].key);
|
|
39887
39864
|
}
|
|
39888
39865
|
};
|
|
39889
39866
|
onMounted(() => {
|
|
@@ -40017,10 +39994,7 @@ var DocumentMode_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
40017
39994
|
case "ArrowUp":
|
|
40018
39995
|
moveToPreviousOption(index);
|
|
40019
39996
|
break;
|
|
40020
|
-
case "Enter":
|
|
40021
|
-
handleClick(props.options[index]);
|
|
40022
|
-
break;
|
|
40023
|
-
default: break;
|
|
39997
|
+
case "Enter": handleClick(props.options[index]);
|
|
40024
39998
|
}
|
|
40025
39999
|
};
|
|
40026
40000
|
onMounted(() => {
|
|
@@ -40100,8 +40074,6 @@ var LinkedStyle_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
40100
40074
|
case "Enter":
|
|
40101
40075
|
event.preventDefault();
|
|
40102
40076
|
select(style);
|
|
40103
|
-
break;
|
|
40104
|
-
default: break;
|
|
40105
40077
|
}
|
|
40106
40078
|
};
|
|
40107
40079
|
const styleLabel = (style) => style?.name ?? style?.id ?? "";
|
|
@@ -40401,10 +40373,7 @@ var IconGridRow_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
40401
40373
|
case "Enter":
|
|
40402
40374
|
handleClick(option);
|
|
40403
40375
|
break;
|
|
40404
|
-
case "Escape":
|
|
40405
|
-
emit("clickoutside");
|
|
40406
|
-
break;
|
|
40407
|
-
default: break;
|
|
40376
|
+
case "Escape": emit("clickoutside");
|
|
40408
40377
|
}
|
|
40409
40378
|
};
|
|
40410
40379
|
return (_ctx, _cache) => {
|
|
@@ -40687,13 +40656,10 @@ var TableGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
40687
40656
|
selectGridItems(tableGridItems.value, cols, rows - 1);
|
|
40688
40657
|
break;
|
|
40689
40658
|
}
|
|
40690
|
-
case "Enter":
|
|
40691
|
-
|
|
40692
|
-
|
|
40693
|
-
|
|
40694
|
-
});
|
|
40695
|
-
break;
|
|
40696
|
-
default: break;
|
|
40659
|
+
case "Enter": handleClick({
|
|
40660
|
+
cols,
|
|
40661
|
+
rows
|
|
40662
|
+
});
|
|
40697
40663
|
}
|
|
40698
40664
|
};
|
|
40699
40665
|
onMounted(() => {
|
|
@@ -41642,8 +41608,9 @@ var makeDefaultItems = ({ superToolbar, toolbarIcons, toolbarTexts, toolbarFonts
|
|
|
41642
41608
|
}
|
|
41643
41609
|
];
|
|
41644
41610
|
function renderDocumentMode(renderDocumentButton) {
|
|
41611
|
+
const optionsAfterRole = getDocumentOptionsAfterRole(role, documentOptions);
|
|
41645
41612
|
return h(DocumentMode_default, {
|
|
41646
|
-
options:
|
|
41613
|
+
options: optionsAfterRole,
|
|
41647
41614
|
onSelect: (item) => {
|
|
41648
41615
|
const selectedEditor = superToolbar.superdoc?.activeEditor ?? superToolbar.activeEditor;
|
|
41649
41616
|
closeDropdown(renderDocumentButton);
|
|
@@ -43201,7 +43168,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
43201
43168
|
this.config.colors = shuffleArray(this.config.colors);
|
|
43202
43169
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
43203
43170
|
this.colorIndex = 0;
|
|
43204
|
-
this.version = "2.4.0-next.
|
|
43171
|
+
this.version = "2.4.0-next.29";
|
|
43205
43172
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
43206
43173
|
this.superdocId = config.superdocId || v4();
|
|
43207
43174
|
this.colors = this.config.colors ?? [];
|