@harbour-enterprises/superdoc 0.11.15 → 0.11.17
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-BCAFJOQD.cjs → super-editor.es-Cg3sWSJC.cjs} +65 -65
- package/dist/chunks/{super-editor.es-D9DgC8YX.es.js → super-editor.es-DsIIP7Il.es.js} +5952 -5914
- package/dist/style.css +1496 -1955
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-CMaZIVw2.js → converter-BdC6llnL.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-DEBH-T0x.js → docx-zipper-DI8JdfE-.js} +1 -1
- package/dist/super-editor/chunks/{editor-D4RVL1uP.js → editor-BQscSjCj.js} +1159 -1122
- package/dist/super-editor/chunks/{toolbar-BggZO3Pn.js → toolbar-BdMHoDkV.js} +6 -5
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/helpers/annotator.d.ts +2 -0
- package/dist/super-editor/core/helpers/annotator.d.ts.map +1 -0
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/table/table.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +9 -9
- package/dist/superdoc.cjs +5 -5
- package/dist/superdoc.es.js +12 -12
- package/dist/superdoc.umd.js +2007 -1973
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/CommentsLayer/use-tracked-change.d.ts +0 -1
- package/dist/components/CommentsLayer/use-tracked-change.d.ts.map +0 -1
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as Ib,
|
|
1
|
+
import { b as md, g as yd, c as bd, Q as jo, S as Wo, H as wd, d as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-DsIIP7Il.es.js";
|
|
2
|
+
import { O as Ib, L as Cb, U as fb } from "./chunks/super-editor.es-DsIIP7Il.es.js";
|
|
3
3
|
import { Y as Vl, r as W, Z as ui, p as Ge, _ as Vn, a as ae, $ as zn, a0 as ua, D as dt, i as ht, q as ji, l as wt, y as ke, a1 as kd, N as Zt, u as qt, a2 as xd, a3 as Rd, a4 as Xo, g as Ji, K as Us, O as jr, j as Ii, k as Di, h as da, U as Nd, s as Md, A as Wr, F as jt, R as GA, m as Ct, E as mi, I as ms, C as re, V as Ld, S as Gd, W as Td, J as qi, P as Es, G as ar, Q as Ud, H as Hd, T as Pd, b as ye, o as fe, t as yi, x as bi, z as zl, f as We, B as ri, e as Ze, v as hi, w as Qi, n as Xs, a5 as Zl, d as gn, c as $l, X as Od, a6 as Jd } from "./chunks/vue-DXpzqXur.es.js";
|
|
4
4
|
import { B as qn } from "./chunks/jszip-DO3il9iI.es.js";
|
|
5
5
|
import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
|
|
@@ -2126,7 +2126,7 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
|
|
|
2126
2126
|
left: Je
|
|
2127
2127
|
};
|
|
2128
2128
|
}, Me = (he, ce, De) => {
|
|
2129
|
-
const Te = document.querySelectorAll(".comment-box"), Je = he.getBoundingClientRect(), qe = [];
|
|
2129
|
+
const Te = document.querySelectorAll(".sd-comment-box"), Je = he.getBoundingClientRect(), qe = [];
|
|
2130
2130
|
if (Te.forEach((Le) => {
|
|
2131
2131
|
if (Le.dataset.id === ce.conversationId) return;
|
|
2132
2132
|
const ot = Le.getBoundingClientRect();
|
|
@@ -10234,7 +10234,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10234
10234
|
"is-pending-input": !0
|
|
10235
10235
|
}, null, 8, ["config", "comment"])) : Ze("", !0),
|
|
10236
10236
|
We("div", {
|
|
10237
|
-
class: Xs(["comment-entry", { "input-active": n.isFocused }])
|
|
10237
|
+
class: Xs(["comment-entry", { "sd-input-active": n.isFocused }])
|
|
10238
10238
|
}, [
|
|
10239
10239
|
bi(ke(wd), {
|
|
10240
10240
|
class: "superdoc-field",
|
|
@@ -10248,7 +10248,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10248
10248
|
], 2)
|
|
10249
10249
|
]));
|
|
10250
10250
|
}
|
|
10251
|
-
}, ul = /* @__PURE__ */ Mt(YQ, [["__scopeId", "data-v-
|
|
10251
|
+
}, ul = /* @__PURE__ */ Mt(YQ, [["__scopeId", "data-v-dd84b4db"]]), KQ = {
|
|
10252
10252
|
key: 0,
|
|
10253
10253
|
class: "existing-internal-input"
|
|
10254
10254
|
}, _Q = {
|
|
@@ -10310,7 +10310,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10310
10310
|
}), V = ae(() => r.comment.resolvedTime ? !0 : b.value.readOnly), $ = ae(() => (X) => O.value === X.commentId), q = ae(() => A.$superdoc.config.isInternal ? !y.value && !r.comment.trackedChange : !1), ee = ae(() => M.value && M.value !== "<p></p>"), te = () => {
|
|
10311
10311
|
r.comment.resolvedTime || (D.value = r.comment.commentId, r.comment.setActive(A.$superdoc));
|
|
10312
10312
|
}, se = (X) => {
|
|
10313
|
-
X.target.classList.contains("n-dropdown-option-body__label") || X.target.classList.contains("comment-highlight") || (D.value === r.comment.commentId && (w.value = 0, i("dialog-exit")), D.value = null);
|
|
10313
|
+
X.target.classList.contains("n-dropdown-option-body__label") || X.target.classList.contains("sd-editor-comment-highlight") || (D.value === r.comment.commentId && (w.value = 0, i("dialog-exit")), D.value = null);
|
|
10314
10314
|
}, ne = () => {
|
|
10315
10315
|
const X = {
|
|
10316
10316
|
documentId: r.comment.fileId,
|
|
@@ -10471,7 +10471,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10471
10471
|
]);
|
|
10472
10472
|
};
|
|
10473
10473
|
}
|
|
10474
|
-
}, ir = /* @__PURE__ */ Mt(gm, [["__scopeId", "data-v-
|
|
10474
|
+
}, ir = /* @__PURE__ */ Mt(gm, [["__scopeId", "data-v-92061859"]]), hm = { class: "comments-list" }, um = { key: 0 }, dm = { class: "comment-item" }, Im = { key: 1 }, Cm = { class: "comment-item" }, fm = {
|
|
10475
10475
|
__name: "commentsList",
|
|
10476
10476
|
props: {
|
|
10477
10477
|
showMainComments: {
|
|
@@ -31591,7 +31591,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31591
31591
|
D.forEach((P) => P.destroy()), b.cleanup(), b.destroy(), D = [], b = null, URL.revokeObjectURL(i);
|
|
31592
31592
|
};
|
|
31593
31593
|
return Ii(async () => {
|
|
31594
|
-
await
|
|
31594
|
+
await J(M);
|
|
31595
31595
|
}), Od(() => {
|
|
31596
31596
|
L();
|
|
31597
31597
|
}), (P, K) => (fe(), ye("div", {
|
|
@@ -31613,7 +31613,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31613
31613
|
]))
|
|
31614
31614
|
], 32));
|
|
31615
31615
|
}
|
|
31616
|
-
}, U9 = /* @__PURE__ */ Mt(T9, [["__scopeId", "data-v-
|
|
31616
|
+
}, U9 = /* @__PURE__ */ Mt(T9, [["__scopeId", "data-v-6d611c0c"]]), H9 = {
|
|
31617
31617
|
class: "comments-container",
|
|
31618
31618
|
id: "commentsContainer"
|
|
31619
31619
|
}, P9 = { class: "comments-layer" }, O9 = ["onClick", "data-id"], J9 = {
|
|
@@ -31680,7 +31680,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31680
31680
|
}), (T, H) => (fe(), ye("div", H9, [
|
|
31681
31681
|
We("div", P9, [
|
|
31682
31682
|
(fe(!0), ye(jt, null, gn(J.value, (U) => (fe(), ye("div", {
|
|
31683
|
-
class: "comment-anchor sd-highlight",
|
|
31683
|
+
class: "sd-comment-anchor sd-highlight",
|
|
31684
31684
|
onClick: Qi((S) => O(U), ["stop", "prevent"]),
|
|
31685
31685
|
"data-id": U.commentId,
|
|
31686
31686
|
style: ri(M(U))
|
|
@@ -31688,7 +31688,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31688
31688
|
])
|
|
31689
31689
|
]));
|
|
31690
31690
|
}
|
|
31691
|
-
}, Y9 = /* @__PURE__ */ Mt(J9, [["__scopeId", "data-v-
|
|
31691
|
+
}, Y9 = /* @__PURE__ */ Mt(J9, [["__scopeId", "data-v-0dbcad34"]]), K9 = { class: "sidebar-container calculation-container" }, _9 = ["id"], q9 = {
|
|
31692
31692
|
__name: "FloatingComments",
|
|
31693
31693
|
props: {
|
|
31694
31694
|
currentDocument: {
|
|
@@ -32694,7 +32694,7 @@ class hb extends eg {
|
|
|
32694
32694
|
this.config = {
|
|
32695
32695
|
...this.config,
|
|
32696
32696
|
...t
|
|
32697
|
-
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.
|
|
32697
|
+
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.17", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, this.#t(), await this.#r(this.config.modules), this.#i(), this.#s(), this.user = this.config.user, this.users = this.config.users || [], this.socket = null, this.isDev = this.config.isDev || !1, this.activeEditor = null, this.comments = [], this.app.mount(this.config.selector), this.readyEditors = 0, this.isLocked = this.config.isLocked || !1, this.lockedBy = this.config.lockedBy || null, this.#a(this);
|
|
32698
32698
|
}
|
|
32699
32699
|
get requiredNumberOfEditors() {
|
|
32700
32700
|
return this.superdocStore.documents.filter((t) => t.type === on).length;
|