@harbour-enterprises/superdoc 0.9.3 → 0.9.4
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/{index-dZKHAFXF.es.js → index-B7EUHaKD.es.js} +1 -1
- package/dist/chunks/{index-CqRwYOdx.cjs → index-BJQ3rSJD.cjs} +1 -1
- package/dist/chunks/{index-DjLrg1eZ.es.js → index-BMGnBpkG.es.js} +2 -2
- package/dist/chunks/{index-BXKGjuVW.cjs → index-D8Qchtwe.cjs} +1 -1
- package/dist/chunks/{super-editor.es-kOcaXkai.cjs → super-editor.es-D0PYoAPc.cjs} +86 -86
- package/dist/chunks/{super-editor.es-BaKiJQoE.es.js → super-editor.es-DzXTasdX.es.js} +6290 -6577
- package/dist/chunks/{url-BxDGAI6E.es.js → url-B97dHJnn.es.js} +1 -1
- package/dist/chunks/{url-6Xu7gR4T.cjs → url-lfePTVJU.cjs} +1 -1
- package/dist/chunks/xml-js-BXHFNveP.cjs +10 -0
- package/dist/chunks/{xml-js-BAML2_fM.es.js → xml-js-BmgwNvFk.es.js} +739 -753
- package/dist/super-editor/chunks/{converter-DzRQ2EtV.js → converter-BYZMsYC6.js} +13 -13
- package/dist/super-editor/chunks/{docx-zipper-CrpjP4_u.js → docx-zipper-DnQsAKQr.js} +1 -1
- package/dist/super-editor/chunks/{editor-DE4dAOnf.js → editor-B6pEAzx8.js} +3004 -3291
- package/dist/super-editor/chunks/{toolbar-D_qLpwlX.js → toolbar-CMdpuplt.js} +2 -2
- package/dist/super-editor/converter.es.js +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/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +41 -41
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +8 -8
- package/dist/superdoc.cjs +5 -5
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +3808 -4095
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-zhwNEV5e.cjs +0 -10
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DJbCKw0t.d.ts +0 -3
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DJbCKw0t.d.ts.map +0 -1
- package/dist/super-editor/tests/playwright/playwright-test/dist/assets/index-CRixhnI8.d.ts +0 -3
- package/dist/super-editor/tests/playwright/playwright-test/dist/assets/index-CRixhnI8.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as _, createElementBlock as se, openBlock as q, createElementVNode as pn, createCommentVNode as pe, normalizeClass as Zt, normalizeStyle as Jt, ref as R, unref as W, createBlock as Ge, toDisplayString as ni, withDirectives as dt, withKeys as Nr, withModifiers as Hr, vModelText as jr, getCurrentInstance as _t, createVNode as Et, readonly as Qt, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Ks, onBeforeMount as dr, inject as te, onActivated as Vs, onDeactivated as ri, createTextVNode as At, Fragment as _e, Comment as fr, defineComponent as ee, provide as Se, h as E, Teleport as Us, toRef as ie, nextTick as Gs, renderSlot as Xs, isVNode as qs, shallowRef as Ys, watchEffect as ft, mergeProps as pt, Transition as en, vShow as Zs, cloneVNode as Js, Text as Qs, renderList as el, withCtx as Bn } from "vue";
|
|
2
|
-
import { p as tn } from "./converter-
|
|
3
|
-
import { _ as vt, g as Pt } from "./editor-
|
|
2
|
+
import { p as tn } from "./converter-BYZMsYC6.js";
|
|
3
|
+
import { _ as vt, g as Pt } from "./editor-B6pEAzx8.js";
|
|
4
4
|
const Mp = (e, t) => {
|
|
5
5
|
let n = e.replace(/[^0-9.]/g, "");
|
|
6
6
|
return n = parseFloat(n), isNaN(n) && (n = t), n = parseFloat(n), n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as m } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E as m } from "./chunks/editor-B6pEAzx8.js";
|
|
2
|
+
import "./chunks/converter-BYZMsYC6.js";
|
|
3
|
+
import "./chunks/docx-zipper-DnQsAKQr.js";
|
|
4
4
|
export {
|
|
5
5
|
m as Editor
|
|
6
6
|
};
|
|
@@ -6,13 +6,13 @@ var rt = (t, s, o) => s in t ? at(t, s, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var Ie = (t, s, o) => rt(t, typeof s != "symbol" ? s + "" : s, o), Pe = (t, s, o) => s.has(t) || Ne("Cannot " + o);
|
|
7
7
|
var we = (t, s, o) => (Pe(t, s, "read from private field"), o ? o.call(t) : s.get(t)), Le = (t, s, o) => s.has(t) ? Ne("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, o);
|
|
8
8
|
var O = (t, s, o) => (Pe(t, s, "access private method"), o);
|
|
9
|
-
import { _ as K, a as Ue, b as ct, I as Me, f as dt, c as ze, d as ut, i as mt, u as pt, r as ft, E as De, e as ht, P as vt, h as gt, j as yt, A as bt, N as kt } from "./chunks/editor-
|
|
10
|
-
import { C as ko, T as Co, l as _o, n as wo, k as xo, m as Eo } from "./chunks/editor-
|
|
11
|
-
import { Q as Ct, v as _t, V as wt, T as Ve, a as xt } from "./chunks/converter-
|
|
12
|
-
import {
|
|
13
|
-
import { ref as g, createElementBlock as C, openBlock as k, createElementVNode as x, unref as $, getCurrentInstance as Et, computed as j, watch as St, onMounted as ke, createCommentVNode as ee, withDirectives as Tt, withKeys as At, normalizeClass as te, withModifiers as be, vModelText as Ft, createTextVNode as It, toDisplayString as ne, Fragment as U, renderList as J, normalizeStyle as Y, createVNode as z, h as W, createApp as Lt, reactive as We, onUnmounted as Mt, shallowRef as
|
|
14
|
-
import { t as
|
|
15
|
-
import { D as Fo } from "./chunks/docx-zipper-
|
|
9
|
+
import { _ as K, a as Ue, b as ct, I as Me, f as dt, c as ze, d as ut, i as mt, u as pt, r as ft, E as De, e as ht, P as vt, h as gt, j as yt, A as bt, N as kt } from "./chunks/editor-B6pEAzx8.js";
|
|
10
|
+
import { C as ko, T as Co, l as _o, n as wo, k as xo, m as Eo } from "./chunks/editor-B6pEAzx8.js";
|
|
11
|
+
import { Q as Ct, v as _t, V as wt, T as Ve, a as xt } from "./chunks/converter-BYZMsYC6.js";
|
|
12
|
+
import { E as To } from "./chunks/converter-BYZMsYC6.js";
|
|
13
|
+
import { ref as g, createElementBlock as C, openBlock as k, createElementVNode as x, unref as $, getCurrentInstance as Et, computed as j, watch as St, onMounted as ke, createCommentVNode as ee, withDirectives as Tt, withKeys as At, normalizeClass as te, withModifiers as be, vModelText as Ft, createTextVNode as It, toDisplayString as ne, Fragment as U, renderList as J, normalizeStyle as Y, createVNode as z, h as W, createApp as Lt, reactive as We, onUnmounted as Mt, shallowRef as qe, onBeforeUnmount as Ge, createBlock as Dt } from "vue";
|
|
14
|
+
import { t as G, s as $t, T as Bt, N as Z } from "./chunks/toolbar-CMdpuplt.js";
|
|
15
|
+
import { D as Fo } from "./chunks/docx-zipper-DnQsAKQr.js";
|
|
16
16
|
import { createZip as Lo } from "./file-zipper.es.js";
|
|
17
17
|
var Ke = { exports: {} };
|
|
18
18
|
(function(t) {
|
|
@@ -146,10 +146,10 @@ const E = (t) => {
|
|
|
146
146
|
throw new Error("Toolbar button item needs either icon or label - " + t.name);
|
|
147
147
|
if (!t.name)
|
|
148
148
|
throw new Error("Invalid toolbar item name - " + t.name);
|
|
149
|
-
const o = g(_t()), n = t.type, e = g(t.name), i = t.command, c = g(t.icon), l = g(t.group || "center"), a = g(t.allowWithoutEditor), d = g(t.attributes || {}), u = t.disabled || !1, r = g(t.disabled), b = g(!1), h = g(!1), y = g(t.style), w = g(t.isNarrow), v = g(t.isWide), M = g(t.minWidth), D = g(t.suppressActiveHighlight || !1), p = g(t.argument), _ = g(null), A = g(null), B = g(t.iconColor), N = g(t.hasCaret), Q = g(t.tooltip), he = g(t.tooltipVisible), ae = g(t.tooltipTimeout), re = g(t.defaultLabel), se = g(t.label), T = g(t.hideLabel), I = g(t.inlineTextInputVisible), H = g(t.hasInlineTextInput), R = g(t.markName), V = g(t.labelAttr),
|
|
149
|
+
const o = g(_t()), n = t.type, e = g(t.name), i = t.command, c = g(t.icon), l = g(t.group || "center"), a = g(t.allowWithoutEditor), d = g(t.attributes || {}), u = t.disabled || !1, r = g(t.disabled), b = g(!1), h = g(!1), y = g(t.style), w = g(t.isNarrow), v = g(t.isWide), M = g(t.minWidth), D = g(t.suppressActiveHighlight || !1), p = g(t.argument), _ = g(null), A = g(null), B = g(t.iconColor), N = g(t.hasCaret), Q = g(t.tooltip), he = g(t.tooltipVisible), ae = g(t.tooltipTimeout), re = g(t.defaultLabel), se = g(t.label), T = g(t.hideLabel), I = g(t.inlineTextInputVisible), H = g(t.hasInlineTextInput), R = g(t.markName), V = g(t.labelAttr), q = g([]);
|
|
150
150
|
if (t.options) {
|
|
151
151
|
if (!Array.isArray(t.options)) throw new Error("Invalid toolbar item options - " + t.options);
|
|
152
|
-
|
|
152
|
+
q.value.push(...t.options);
|
|
153
153
|
}
|
|
154
154
|
const ce = (ie) => {
|
|
155
155
|
Ce(ie), !D.value && (b.value = !0);
|
|
@@ -176,7 +176,7 @@ const E = (t) => {
|
|
|
176
176
|
disabled: r,
|
|
177
177
|
active: b,
|
|
178
178
|
expand: h,
|
|
179
|
-
nestedOptions:
|
|
179
|
+
nestedOptions: q,
|
|
180
180
|
style: y,
|
|
181
181
|
isNarrow: w,
|
|
182
182
|
isWide: v,
|
|
@@ -218,26 +218,26 @@ const E = (t) => {
|
|
|
218
218
|
x("div", {
|
|
219
219
|
class: "button-icon",
|
|
220
220
|
onClick: i[0] || (i[0] = (c) => n("left")),
|
|
221
|
-
innerHTML: $(
|
|
221
|
+
innerHTML: $(G).alignLeft
|
|
222
222
|
}, null, 8, zt),
|
|
223
223
|
x("div", {
|
|
224
224
|
class: "button-icon",
|
|
225
225
|
onClick: i[1] || (i[1] = (c) => n("center")),
|
|
226
|
-
innerHTML: $(
|
|
226
|
+
innerHTML: $(G).alignCenter
|
|
227
227
|
}, null, 8, Wt),
|
|
228
228
|
x("div", {
|
|
229
229
|
class: "button-icon",
|
|
230
230
|
onClick: i[2] || (i[2] = (c) => n("right")),
|
|
231
|
-
innerHTML: $(
|
|
231
|
+
innerHTML: $(G).alignRight
|
|
232
232
|
}, null, 8, jt),
|
|
233
233
|
x("div", {
|
|
234
234
|
class: "button-icon",
|
|
235
235
|
onClick: i[3] || (i[3] = (c) => n("justify")),
|
|
236
|
-
innerHTML: $(
|
|
236
|
+
innerHTML: $(G).alignJustify
|
|
237
237
|
}, null, 8, Ut)
|
|
238
238
|
]));
|
|
239
239
|
}
|
|
240
|
-
},
|
|
240
|
+
}, qt = /* @__PURE__ */ K(Vt, [["__scopeId", "data-v-d6fae878"]]), Gt = { class: "link-input-ctn" }, Kt = {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "link-title"
|
|
243
243
|
}, Xt = {
|
|
@@ -305,13 +305,13 @@ const E = (t) => {
|
|
|
305
305
|
};
|
|
306
306
|
return ke(() => {
|
|
307
307
|
n.showInput && D();
|
|
308
|
-
}), (p, _) => (k(), C("div",
|
|
308
|
+
}), (p, _) => (k(), C("div", Gt, [
|
|
309
309
|
t.href ? v.value ? (k(), C("div", Xt, "Page anchor")) : (k(), C("div", Zt, "Edit link")) : (k(), C("div", Kt, "Add link")),
|
|
310
310
|
t.showInput && !v.value ? (k(), C("div", Yt, [
|
|
311
311
|
x("div", Jt, [
|
|
312
312
|
x("div", {
|
|
313
313
|
class: "input-icon",
|
|
314
|
-
innerHTML: $(
|
|
314
|
+
innerHTML: $(G).linkInput
|
|
315
315
|
}, null, 8, Qt),
|
|
316
316
|
Tt(x("input", {
|
|
317
317
|
type: "text",
|
|
@@ -327,7 +327,7 @@ const E = (t) => {
|
|
|
327
327
|
]),
|
|
328
328
|
x("div", {
|
|
329
329
|
class: te(["open-link-icon", { disabled: !r.value }]),
|
|
330
|
-
innerHTML: $(
|
|
330
|
+
innerHTML: $(G).openLink,
|
|
331
331
|
onClick: M
|
|
332
332
|
}, null, 10, tn)
|
|
333
333
|
]),
|
|
@@ -339,7 +339,7 @@ const E = (t) => {
|
|
|
339
339
|
}, [
|
|
340
340
|
x("div", {
|
|
341
341
|
class: "remove-btn__icon",
|
|
342
|
-
innerHTML: $(
|
|
342
|
+
innerHTML: $(G).removeLink
|
|
343
343
|
}, null, 8, on),
|
|
344
344
|
_[3] || (_[3] = It(" Remove "))
|
|
345
345
|
])) : ee("", !0),
|
|
@@ -450,7 +450,7 @@ const E = (t) => {
|
|
|
450
450
|
e.value(r) ? (k(), C("div", {
|
|
451
451
|
key: 0,
|
|
452
452
|
class: "option__check",
|
|
453
|
-
innerHTML: $(
|
|
453
|
+
innerHTML: $(G).colorOptionCheck,
|
|
454
454
|
style: Y(i(r.value, b))
|
|
455
455
|
}, null, 12, wn)) : ee("", !0)
|
|
456
456
|
], 8, Cn))), 128))
|
|
@@ -497,7 +497,7 @@ const E = (t) => {
|
|
|
497
497
|
t.expand.value = !1;
|
|
498
498
|
}, f = (t, s = null) => ({
|
|
499
499
|
label: s,
|
|
500
|
-
icon:
|
|
500
|
+
icon: G.colorOption,
|
|
501
501
|
value: t,
|
|
502
502
|
style: {
|
|
503
503
|
color: t,
|
|
@@ -980,7 +980,7 @@ const E = (t) => {
|
|
|
980
980
|
{
|
|
981
981
|
type: "render",
|
|
982
982
|
render: () => W("div", {}, [
|
|
983
|
-
W(
|
|
983
|
+
W(qt, {
|
|
984
984
|
onSelect: (S) => {
|
|
985
985
|
le(B);
|
|
986
986
|
const F = { ...B, command: "setTextAlign" };
|
|
@@ -1099,7 +1099,7 @@ const E = (t) => {
|
|
|
1099
1099
|
command: "acceptTrackedChangeBySelection",
|
|
1100
1100
|
icon: e.trackChangesAccept,
|
|
1101
1101
|
group: "left"
|
|
1102
|
-
}),
|
|
1102
|
+
}), q = E({
|
|
1103
1103
|
type: "button",
|
|
1104
1104
|
disabled: !1,
|
|
1105
1105
|
name: "rejectTrackedChangeOnSelection",
|
|
@@ -1273,7 +1273,7 @@ const E = (t) => {
|
|
|
1273
1273
|
// Dev - tracked changes
|
|
1274
1274
|
// toggleTrackChanges,
|
|
1275
1275
|
V,
|
|
1276
|
-
|
|
1276
|
+
q,
|
|
1277
1277
|
// toggleTrackChangesOriginal,
|
|
1278
1278
|
// toggleTrackChangesFinal,
|
|
1279
1279
|
T,
|
|
@@ -1314,7 +1314,7 @@ const E = (t) => {
|
|
|
1314
1314
|
P.splice(m - 1, 2), P = P.filter((S) => S.name.value !== "ruler");
|
|
1315
1315
|
}
|
|
1316
1316
|
const Oe = [R, ce, de];
|
|
1317
|
-
s || (n === "viewer" && Oe.push(V,
|
|
1317
|
+
s || (n === "viewer" && Oe.push(V, q), P = P.filter((m) => !Oe.includes(m)));
|
|
1318
1318
|
const st = [I, se, oe].map((m) => m.name), lt = (m) => st.includes(m.name), _e = [], Ae = [];
|
|
1319
1319
|
let Fe = nt + tt;
|
|
1320
1320
|
return P.forEach((m) => {
|
|
@@ -1354,10 +1354,10 @@ const E = (t) => {
|
|
|
1354
1354
|
}, Vn = (t) => new Promise((s, o) => {
|
|
1355
1355
|
let n = new FileReader();
|
|
1356
1356
|
n.onload = (e) => s(e.target.result), n.onerror = o, setTimeout(() => n.readAsDataURL(t), 250);
|
|
1357
|
-
}),
|
|
1357
|
+
}), qn = (t, s) => new Promise((o, n) => {
|
|
1358
1358
|
const e = new window.Image();
|
|
1359
1359
|
e.onload = () => {
|
|
1360
|
-
const i = document.createElement("canvas"), { width: c, height: l } =
|
|
1360
|
+
const i = document.createElement("canvas"), { width: c, height: l } = Gn(
|
|
1361
1361
|
e.width,
|
|
1362
1362
|
e.height,
|
|
1363
1363
|
s
|
|
@@ -1374,7 +1374,7 @@ const E = (t) => {
|
|
|
1374
1374
|
o({ file: u, width: c, height: l });
|
|
1375
1375
|
});
|
|
1376
1376
|
}, e.onerror = (i) => n(i), e.src = typeof t == "string" ? t : URL.createObjectURL(t);
|
|
1377
|
-
}),
|
|
1377
|
+
}), Gn = (t, s, o) => {
|
|
1378
1378
|
const { width: n, height: e } = o.getMaxContentSize();
|
|
1379
1379
|
if (!n || !e) return { width: t, height: s };
|
|
1380
1380
|
let i = t, c = s;
|
|
@@ -1388,7 +1388,7 @@ const E = (t) => {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
let i, c;
|
|
1390
1390
|
try {
|
|
1391
|
-
const r = await
|
|
1391
|
+
const r = await qn(o, t);
|
|
1392
1392
|
i = r.width, c = r.height, o = r.file;
|
|
1393
1393
|
} catch (r) {
|
|
1394
1394
|
console.warn("Error processing image:", r);
|
|
@@ -1430,7 +1430,7 @@ class po extends Rt {
|
|
|
1430
1430
|
toolbarGroups: ["left", "center", "right"],
|
|
1431
1431
|
role: "editor",
|
|
1432
1432
|
pagination: !1,
|
|
1433
|
-
icons: { ...
|
|
1433
|
+
icons: { ...G },
|
|
1434
1434
|
mode: "docx",
|
|
1435
1435
|
excludeItems: []
|
|
1436
1436
|
});
|
|
@@ -1438,7 +1438,7 @@ class po extends Rt {
|
|
|
1438
1438
|
setZoom: ({ item: o, argument: n }) => {
|
|
1439
1439
|
if (!n) return;
|
|
1440
1440
|
o.onActivate({ zoom: n }), this.emit("superdoc-command", { item: o, argument: n });
|
|
1441
|
-
const e = document.querySelector(".layers");
|
|
1441
|
+
const e = document.querySelector(this.superdoc.config.selector)?.querySelector(".layers");
|
|
1442
1442
|
if (!e) return;
|
|
1443
1443
|
const i = typeof screen.orientation < "u", c = window.matchMedia("(max-width: 834px)").matches;
|
|
1444
1444
|
i && c ? (e.style.transformOrigin = "0 0", e.style.transform = `scale(${parseInt(n) / 100})`) : e.style.zoom = parseInt(n) / 100, this.superdoc.superdocStore.activeZoom = parseInt(n);
|
|
@@ -1521,7 +1521,7 @@ class po extends Rt {
|
|
|
1521
1521
|
O(this, L, Be).call(this, this, this.config.icons, this.isDev), this.role === "viewer" && O(this, L, He).call(this);
|
|
1522
1522
|
});
|
|
1523
1523
|
this.config = { ...this.config, ...o }, this.toolbarItems = [], this.overflowItems = [], this.documentMode = o.documentMode || "editing", this.isDev = o.isDev || !1, this.superdoc = o.superdoc, this.role = o.role || "editor", this.config.icons = {
|
|
1524
|
-
...
|
|
1524
|
+
...G,
|
|
1525
1525
|
...o.icons
|
|
1526
1526
|
}, !this.config.selector && this.config.element && (this.config.selector = this.config.element), O(this, L, Ze).call(this), O(this, L, Be).call(this, this, this.config.icons, o.isDev);
|
|
1527
1527
|
let n = null;
|
|
@@ -1684,12 +1684,12 @@ const Zn = (t, s) => {
|
|
|
1684
1684
|
const T = [], { pageMargins: I, pageSize: H } = n.editor.getPageStyles();
|
|
1685
1685
|
a.value = H, d.value = I, h.x = H.width * 96 - I.right * 96, b.x = I.left * 96;
|
|
1686
1686
|
for (let R = 0; R < H.width; R++) {
|
|
1687
|
-
const
|
|
1688
|
-
if (T.push(...D(1, "main", "20%",
|
|
1689
|
-
T.push(...D(3, "eighth", "10%",
|
|
1687
|
+
const q = `${5.5}px`, ce = H.width - R;
|
|
1688
|
+
if (T.push(...D(1, "main", "20%", q, R)), T.push(...D(3, "eighth", "10%", q)), T.push(...D(1, "half", "40%", q)), ce <= 0.5) break;
|
|
1689
|
+
T.push(...D(3, "eighth", "10%", q));
|
|
1690
1690
|
}
|
|
1691
1691
|
return T;
|
|
1692
|
-
}, D = (T, I, H, R, V) => Array.from({ length: T }, (
|
|
1692
|
+
}, D = (T, I, H, R, V) => Array.from({ length: T }, (q, ce) => {
|
|
1693
1693
|
const de = {
|
|
1694
1694
|
className: `${I}-unit ruler-section`,
|
|
1695
1695
|
height: H,
|
|
@@ -1815,7 +1815,7 @@ const Zn = (t, s) => {
|
|
|
1815
1815
|
"selection-update"
|
|
1816
1816
|
],
|
|
1817
1817
|
setup(t, { emit: s }) {
|
|
1818
|
-
const o = s, n = t, e = g(!1), i =
|
|
1818
|
+
const o = s, n = t, e = g(!1), i = qe(null), c = g(null), l = g(null);
|
|
1819
1819
|
let a;
|
|
1820
1820
|
const d = () => {
|
|
1821
1821
|
clearTimeout(a);
|
|
@@ -1885,7 +1885,7 @@ const Zn = (t, s) => {
|
|
|
1885
1885
|
const A = i.value.getPageStyles(), { pageMargins: B } = A, N = { ...B, [p]: _ };
|
|
1886
1886
|
i.value?.updatePageStyle({ pageMargins: N });
|
|
1887
1887
|
};
|
|
1888
|
-
return
|
|
1888
|
+
return Ge(() => {
|
|
1889
1889
|
d(), i.value?.destroy(), i.value = null;
|
|
1890
1890
|
}), (p, _) => (k(), C("div", to, [
|
|
1891
1891
|
t.options.rulers && i.value ? (k(), Dt(eo, {
|
|
@@ -1995,7 +1995,7 @@ const Zn = (t, s) => {
|
|
|
1995
1995
|
},
|
|
1996
1996
|
emits: ["update:modelValue", "focus", "blur"],
|
|
1997
1997
|
setup(t, { emit: s }) {
|
|
1998
|
-
const o = s, n = t, e =
|
|
1998
|
+
const o = s, n = t, e = qe(), i = g(null), c = g(!1), l = ({ editor: h, transaction: y }) => {
|
|
1999
1999
|
const w = h.getHTML();
|
|
2000
2000
|
o("update:modelValue", w);
|
|
2001
2001
|
}, a = ({ editor: h, transaction: y }) => {
|
|
@@ -2018,7 +2018,7 @@ const Zn = (t, s) => {
|
|
|
2018
2018
|
};
|
|
2019
2019
|
return ke(() => {
|
|
2020
2020
|
u();
|
|
2021
|
-
}),
|
|
2021
|
+
}), Ge(() => {
|
|
2022
2022
|
e.value?.destroy(), e.value = null;
|
|
2023
2023
|
}), (h, y) => (k(), C("div", {
|
|
2024
2024
|
class: te(["super-editor super-input", { "super-input-active": c.value }]),
|
|
@@ -2057,7 +2057,7 @@ export {
|
|
|
2057
2057
|
Lo as createZip,
|
|
2058
2058
|
_o as fieldAnnotationHelpers,
|
|
2059
2059
|
ut as getActiveFormatting,
|
|
2060
|
-
|
|
2060
|
+
Gn as getAllowedImageDimensions,
|
|
2061
2061
|
wo as getMarksFromSelection,
|
|
2062
2062
|
gt as getRichTextExtensions,
|
|
2063
2063
|
ht as getStarterExtensions,
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-D0PYoAPc.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.BasicUpload=e.ho;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.Ni;exports.Extensions=e.go;exports.SuperConverter=e.Ft;exports.SuperEditor=e.fo;exports.SuperInput=e.vo;exports.SuperToolbar=e.po;exports.Toolbar=e._p;exports.TrackChangesBasePluginKey=e.de;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Av;exports.getActiveFormatting=e.af;exports.getAllowedImageDimensions=e.Gn;exports.getMarksFromSelection=e.vo$1;exports.getRichTextExtensions=e.hv;exports.getStarterExtensions=e.mv;exports.helpers=e.td;exports.trackChangesHelpers=e.Tv;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { h as t,
|
|
1
|
+
import { h as t, a as r, N as o, b as i, g as n, F as p, f as g, v as l, p as c, _ as m, d as u, c as d, A as x, e as S, G as h, i as E, j as T, m as A, t as C, T as b } from "./chunks/super-editor.es-DzXTasdX.es.js";
|
|
2
2
|
import "./chunks/vue-BDbTsTMu.es.js";
|
|
3
3
|
export {
|
|
4
4
|
t as BasicUpload,
|
|
5
5
|
r as CommentsPluginKey,
|
|
6
6
|
o as DocxZipper,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
i as Editor,
|
|
8
|
+
n as Extensions,
|
|
9
9
|
p as SuperConverter,
|
|
10
10
|
g as SuperEditor,
|
|
11
11
|
l as SuperInput,
|
|
@@ -16,9 +16,9 @@ export {
|
|
|
16
16
|
x as fieldAnnotationHelpers,
|
|
17
17
|
S as getActiveFormatting,
|
|
18
18
|
h as getAllowedImageDimensions,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
E as getMarksFromSelection,
|
|
20
|
+
T as getRichTextExtensions,
|
|
21
|
+
A as getStarterExtensions,
|
|
22
|
+
C as helpers,
|
|
23
|
+
b as trackChangesHelpers
|
|
24
24
|
};
|