@harbour-enterprises/superdoc 0.12.31 → 0.12.34-next.1
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/chunks/{super-editor.es-BxaiA9ut.cjs → super-editor.es-C2uZFYse.cjs} +599 -269
- package/dist/chunks/{super-editor.es-CYH3KblY.es.js → super-editor.es-mtzaNl_I.es.js} +613 -283
- package/dist/composables/use-high-contrast-mode.d.ts +5 -0
- package/dist/composables/use-high-contrast-mode.d.ts.map +1 -0
- package/dist/core/SuperDoc.d.ts +7 -0
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/create-app.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/style.css +299 -245
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Dm2_Htrh.js → converter-CenRPnts.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CU11jH41.js → docx-zipper-DdgXH9QX.js} +7 -3
- package/dist/super-editor/chunks/{editor-CISWiQkg.js → editor-B44D-Ttm.js} +190 -67
- package/dist/super-editor/chunks/{toolbar-Dgo3wQvN.js → toolbar-DmkQTZha.js} +80 -36
- package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
- package/dist/super-editor/composables/use-high-contrast-mode.d.ts +5 -0
- package/dist/super-editor/composables/use-high-contrast-mode.d.ts.map +1 -0
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/DocxZipper.d.ts +1 -1
- package/dist/super-editor/core/DocxZipper.d.ts.map +1 -1
- package/dist/super-editor/core/Editor.d.ts +2 -1
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/InputRule.d.ts.map +1 -1
- package/dist/super-editor/core/helpers/annotator.d.ts +17 -3
- package/dist/super-editor/core/helpers/annotator.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/ai/ai-nodes.d.ts.map +1 -1
- package/dist/super-editor/extensions/bookmarks/bookmarks.d.ts.map +1 -1
- package/dist/super-editor/extensions/bullet-list/bullet-list.d.ts.map +1 -1
- package/dist/super-editor/extensions/collaboration/collaboration-helpers.d.ts.map +1 -1
- package/dist/super-editor/extensions/comment/comment.d.ts.map +1 -1
- package/dist/super-editor/extensions/document/document.d.ts.map +1 -1
- package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
- package/dist/super-editor/extensions/field-annotation/fieldAnnotationHelpers/getHeaderFooterAnnotations.d.ts +2 -0
- package/dist/super-editor/extensions/field-annotation/fieldAnnotationHelpers/getHeaderFooterAnnotations.d.ts.map +1 -0
- package/dist/super-editor/extensions/field-annotation/fieldAnnotationHelpers/index.d.ts +1 -0
- package/dist/super-editor/extensions/heading/heading.d.ts.map +1 -1
- package/dist/super-editor/extensions/image/image.d.ts.map +1 -1
- package/dist/super-editor/extensions/line-break/line-break.d.ts.map +1 -1
- package/dist/super-editor/extensions/list-item/list-item.d.ts.map +1 -1
- package/dist/super-editor/extensions/mention/mention.d.ts.map +1 -1
- package/dist/super-editor/extensions/ordered-list/ordered-list.d.ts.map +1 -1
- package/dist/super-editor/extensions/page-number/page-number.d.ts.map +1 -1
- package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor/extensions/run-item/run-item.d.ts.map +1 -1
- package/dist/super-editor/extensions/shape-container/shape-container.d.ts.map +1 -1
- package/dist/super-editor/extensions/shape-textbox/shape-textbox.d.ts.map +1 -1
- package/dist/super-editor/extensions/structured-content/structured-content.d.ts.map +1 -1
- package/dist/super-editor/extensions/table/table.d.ts.map +1 -1
- package/dist/super-editor/extensions/table-cell/table-cell.d.ts.map +1 -1
- package/dist/super-editor/extensions/table-header/table-header.d.ts.map +1 -1
- package/dist/super-editor/extensions/table-row/table-row.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/index.d.ts +1 -1
- package/dist/super-editor/style.css +243 -196
- package/dist/super-editor/super-editor.es.js +335 -174
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -1
- package/dist/super-editor.es.js +15 -14
- package/dist/superdoc.cjs +35 -9
- package/dist/superdoc.es.js +233 -207
- package/dist/superdoc.umd.js +636 -281
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/super-editor.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-C2uZFYse.cjs");
|
|
4
4
|
require("./chunks/vue-DPZkajuO.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
|
+
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
|
6
7
|
exports.BasicUpload = superEditor_es._sfc_main$1;
|
|
7
8
|
exports.CommentsPluginKey = superEditor_es.CommentsPluginKey;
|
|
8
9
|
exports.DocxZipper = superEditor_es.DocxZipper;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { A, _, C, D, E,
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, T, f, g, i, h, j, k, l, m, n, o } from "./chunks/super-editor.es-mtzaNl_I.es.js";
|
|
2
2
|
import "./chunks/vue-IIIZMHTg.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
|
5
|
+
a as AnnotatorHelpers,
|
|
5
6
|
_ as BasicUpload,
|
|
6
7
|
C as CommentsPluginKey,
|
|
7
8
|
D as DocxZipper,
|
|
8
9
|
E as Editor,
|
|
9
|
-
|
|
10
|
+
b as Extensions,
|
|
10
11
|
S as SuperConverter,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
c as SuperEditor,
|
|
13
|
+
d as SuperInput,
|
|
14
|
+
e as SuperToolbar,
|
|
14
15
|
T as Toolbar,
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
f as TrackChangesBasePluginKey,
|
|
17
|
+
g as createZip,
|
|
17
18
|
i as fieldAnnotationHelpers,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
h as getActiveFormatting,
|
|
20
|
+
j as getAllowedImageDimensions,
|
|
21
|
+
k as getMarksFromSelection,
|
|
22
|
+
l as getRichTextExtensions,
|
|
23
|
+
m as getStarterExtensions,
|
|
24
|
+
n as helpers,
|
|
25
|
+
o as trackChangesHelpers
|
|
25
26
|
};
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-C2uZFYse.cjs");
|
|
4
4
|
const vue = require("./chunks/vue-DPZkajuO.cjs");
|
|
5
5
|
const jszip = require("./chunks/jszip-Bwu_om3F.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
|
@@ -14071,7 +14071,8 @@ const _sfc_main$d = {
|
|
|
14071
14071
|
onClick: vue.withModifiers(setFocus, ["stop", "prevent"]),
|
|
14072
14072
|
style: vue.normalizeStyle(getSidebarCommentStyle.value),
|
|
14073
14073
|
ref_key: "commentDialogElement",
|
|
14074
|
-
ref: commentDialogElement
|
|
14074
|
+
ref: commentDialogElement,
|
|
14075
|
+
role: "dialog"
|
|
14075
14076
|
}, [
|
|
14076
14077
|
shouldShowInternalExternal.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
|
|
14077
14078
|
vue.createVNode(InternalDropdown, {
|
|
@@ -14167,7 +14168,7 @@ const _sfc_main$d = {
|
|
|
14167
14168
|
};
|
|
14168
14169
|
}
|
|
14169
14170
|
};
|
|
14170
|
-
const CommentDialog = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
14171
|
+
const CommentDialog = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ff48cd67"]]);
|
|
14171
14172
|
const _hoisted_1$b = { class: "comments-list" };
|
|
14172
14173
|
const _hoisted_2$6 = { key: 0 };
|
|
14173
14174
|
const _hoisted_3$3 = { class: "comment-item" };
|
|
@@ -45926,6 +45927,16 @@ function useAi({ emitAiHighlight, activeEditorRef }) {
|
|
|
45926
45927
|
handleAiToolClick
|
|
45927
45928
|
};
|
|
45928
45929
|
}
|
|
45930
|
+
const isHighContrastMode = vue.ref(false);
|
|
45931
|
+
function useHighContrastMode() {
|
|
45932
|
+
const setHighContrastMode = (value) => {
|
|
45933
|
+
isHighContrastMode.value = value;
|
|
45934
|
+
};
|
|
45935
|
+
return {
|
|
45936
|
+
isHighContrastMode,
|
|
45937
|
+
setHighContrastMode
|
|
45938
|
+
};
|
|
45939
|
+
}
|
|
45929
45940
|
const _hoisted_1 = ["innerHTML"];
|
|
45930
45941
|
const _hoisted_2 = { class: "superdoc__document document" };
|
|
45931
45942
|
const _hoisted_3 = {
|
|
@@ -45967,6 +45978,7 @@ const _sfc_main = {
|
|
|
45967
45978
|
const { showAddComment, handleEditorLocationsUpdate, handleTrackedChangeUpdate } = commentsStore;
|
|
45968
45979
|
const { proxy } = vue.getCurrentInstance();
|
|
45969
45980
|
commentsStore.proxy = proxy;
|
|
45981
|
+
const { isHighContrastMode: isHighContrastMode2 } = useHighContrastMode();
|
|
45970
45982
|
const layers = vue.ref(null);
|
|
45971
45983
|
const commentsLayer = vue.ref(null);
|
|
45972
45984
|
const toolsMenuPosition = vue.reactive({ top: null, right: "-25px", zIndex: 101 });
|
|
@@ -46322,12 +46334,13 @@ const _sfc_main = {
|
|
|
46322
46334
|
return (_ctx, _cache) => {
|
|
46323
46335
|
const _directive_click_outside = vue.resolveDirective("click-outside");
|
|
46324
46336
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
46325
|
-
class: vue.normalizeClass(["superdoc", { "superdoc--with-sidebar": showCommentsSidebar.value }])
|
|
46337
|
+
class: vue.normalizeClass(["superdoc", { "superdoc--with-sidebar": showCommentsSidebar.value, "high-contrast": vue.unref(isHighContrastMode2) }])
|
|
46326
46338
|
}, [
|
|
46327
46339
|
vue.createBaseVNode("div", {
|
|
46328
46340
|
class: "superdoc__layers layers",
|
|
46329
46341
|
ref_key: "layers",
|
|
46330
|
-
ref: layers
|
|
46342
|
+
ref: layers,
|
|
46343
|
+
role: "group"
|
|
46331
46344
|
}, [
|
|
46332
46345
|
showToolsFloatingMenu.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
46333
46346
|
key: 0,
|
|
@@ -46462,7 +46475,7 @@ const _sfc_main = {
|
|
|
46462
46475
|
};
|
|
46463
46476
|
}
|
|
46464
46477
|
};
|
|
46465
|
-
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
46478
|
+
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fc218ba5"]]);
|
|
46466
46479
|
const createSuperdocVueApp = () => {
|
|
46467
46480
|
const app = vue.createApp(App);
|
|
46468
46481
|
const pinia = createPinia();
|
|
@@ -46470,7 +46483,8 @@ const createSuperdocVueApp = () => {
|
|
|
46470
46483
|
app.directive("click-outside", vClickOutside);
|
|
46471
46484
|
const superdocStore = useSuperdocStore();
|
|
46472
46485
|
const commentsStore = useCommentsStore();
|
|
46473
|
-
|
|
46486
|
+
const highContrastModeStore = useHighContrastMode();
|
|
46487
|
+
return { app, pinia, superdocStore, commentsStore, highContrastModeStore };
|
|
46474
46488
|
};
|
|
46475
46489
|
const createDownload = (blob, name, extension) => {
|
|
46476
46490
|
const url = URL.createObjectURL(blob);
|
|
@@ -46560,7 +46574,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
46560
46574
|
this.config.colors = shuffleArray(this.config.colors);
|
|
46561
46575
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46562
46576
|
this.colorIndex = 0;
|
|
46563
|
-
this.version = "0.12.
|
|
46577
|
+
this.version = "0.12.34-next.1";
|
|
46564
46578
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46565
46579
|
this.superdocId = config.superdocId || uuid.v4();
|
|
46566
46580
|
this.colors = this.config.colors;
|
|
@@ -46637,7 +46651,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
46637
46651
|
}
|
|
46638
46652
|
}
|
|
46639
46653
|
#initVueApp() {
|
|
46640
|
-
const { app, pinia, superdocStore, commentsStore } = createSuperdocVueApp();
|
|
46654
|
+
const { app, pinia, superdocStore, commentsStore, highContrastModeStore } = createSuperdocVueApp();
|
|
46641
46655
|
this.app = app;
|
|
46642
46656
|
this.pinia = pinia;
|
|
46643
46657
|
this.app.config.globalProperties.$config = this.config;
|
|
@@ -46645,6 +46659,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
46645
46659
|
this.app.config.globalProperties.$superdoc = this;
|
|
46646
46660
|
this.superdocStore = superdocStore;
|
|
46647
46661
|
this.commentsStore = commentsStore;
|
|
46662
|
+
this.highContrastModeStore = highContrastModeStore;
|
|
46648
46663
|
this.superdocStore.init(this.config);
|
|
46649
46664
|
this.commentsStore.init(this.config.modules.comments);
|
|
46650
46665
|
}
|
|
@@ -47116,7 +47131,18 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
47116
47131
|
});
|
|
47117
47132
|
}
|
|
47118
47133
|
}
|
|
47134
|
+
/**
|
|
47135
|
+
* Set the high contrast mode
|
|
47136
|
+
* @param {boolean} isHighContrast
|
|
47137
|
+
* @returns {void}
|
|
47138
|
+
*/
|
|
47139
|
+
setHighContrastMode(isHighContrast) {
|
|
47140
|
+
if (!this.activeEditor) return;
|
|
47141
|
+
this.activeEditor.setHighContrastMode(isHighContrast);
|
|
47142
|
+
this.highContrastModeStore.setHighContrastMode(isHighContrast);
|
|
47143
|
+
}
|
|
47119
47144
|
}
|
|
47145
|
+
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
|
47120
47146
|
exports.Editor = superEditor_es.Editor;
|
|
47121
47147
|
exports.SuperConverter = superEditor_es.SuperConverter;
|
|
47122
47148
|
exports.createZip = superEditor_es.createZip;
|