@paroicms/quill-editor-plugin 1.13.0 → 1.13.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/package.json
CHANGED
|
@@ -1,37 +1,23 @@
|
|
|
1
|
-
function f(n) {
|
|
2
|
-
let t = n;
|
|
3
|
-
const e = t.indexOf("?");
|
|
4
|
-
e !== -1 && (t = t.substring(0, e));
|
|
5
|
-
const o = t.indexOf("#");
|
|
6
|
-
o !== -1 && (t = t.substring(0, o));
|
|
7
|
-
const i = t.lastIndexOf("/");
|
|
8
|
-
return i === -1 ? void 0 : t.slice(0, i);
|
|
9
|
-
}
|
|
10
|
-
const a = f(import.meta.url);
|
|
11
|
-
function m(n) {
|
|
12
|
-
const t = `${n}/index.css`, e = document.createElement("link");
|
|
13
|
-
e.rel = "stylesheet", e.href = t, document.head.appendChild(e);
|
|
14
|
-
}
|
|
15
1
|
const s = "_$DX_DELEGATE";
|
|
16
|
-
function
|
|
2
|
+
function u(n, t, e) {
|
|
17
3
|
let o;
|
|
18
4
|
const i = () => {
|
|
19
|
-
const
|
|
20
|
-
return
|
|
21
|
-
},
|
|
22
|
-
return
|
|
5
|
+
const c = document.createElement("template");
|
|
6
|
+
return c.innerHTML = n, c.content.firstChild;
|
|
7
|
+
}, r = () => (o || (o = i())).cloneNode(!0);
|
|
8
|
+
return r.cloneNode = r, r;
|
|
23
9
|
}
|
|
24
|
-
function
|
|
10
|
+
function f(n, t = window.document) {
|
|
25
11
|
const e = t[s] || (t[s] = /* @__PURE__ */ new Set());
|
|
26
12
|
for (let o = 0, i = n.length; o < i; o++) {
|
|
27
|
-
const
|
|
28
|
-
e.has(
|
|
13
|
+
const r = n[o];
|
|
14
|
+
e.has(r) || (e.add(r), t.addEventListener(r, m));
|
|
29
15
|
}
|
|
30
16
|
}
|
|
31
17
|
function l(n, t, e) {
|
|
32
18
|
e == null ? n.removeAttribute(t) : n.setAttribute(t, e);
|
|
33
19
|
}
|
|
34
|
-
function
|
|
20
|
+
function m(n) {
|
|
35
21
|
const t = `$$${n.type}`;
|
|
36
22
|
let e = n.composedPath && n.composedPath()[0] || n.target;
|
|
37
23
|
for (n.target !== e && Object.defineProperty(n, "target", {
|
|
@@ -51,37 +37,46 @@ function h(n) {
|
|
|
51
37
|
e = e._$host || e.parentNode || e.host;
|
|
52
38
|
}
|
|
53
39
|
}
|
|
54
|
-
|
|
55
|
-
|
|
40
|
+
function g(n) {
|
|
41
|
+
let t = n;
|
|
42
|
+
const e = t.indexOf("?");
|
|
43
|
+
e !== -1 && (t = t.substring(0, e));
|
|
44
|
+
const o = t.indexOf("#");
|
|
45
|
+
o !== -1 && (t = t.substring(0, o));
|
|
46
|
+
const i = t.lastIndexOf("/");
|
|
47
|
+
return i === -1 ? void 0 : t.slice(0, i);
|
|
48
|
+
}
|
|
49
|
+
const b = g(import.meta.url);
|
|
50
|
+
var p = /* @__PURE__ */ u('<div class=ImageZoomViewer><button type=button class=ImageZoomViewer-closeBtn><img alt=⨯ width=30 height=30></button><img class=ImageZoomViewer-img alt="">');
|
|
51
|
+
function h() {
|
|
56
52
|
const n = document.querySelectorAll("[data-zoom-src]");
|
|
57
53
|
for (const t of n) {
|
|
58
54
|
if (!(t instanceof HTMLElement)) continue;
|
|
59
55
|
const e = t.dataset.zoomSrc?.trim();
|
|
60
|
-
e &&
|
|
56
|
+
e && $(t, {
|
|
61
57
|
dataZoomSrc: e
|
|
62
58
|
});
|
|
63
59
|
}
|
|
64
60
|
}
|
|
65
|
-
function
|
|
61
|
+
function $(n, {
|
|
66
62
|
dataZoomSrc: t
|
|
67
63
|
}) {
|
|
68
64
|
n.classList.add("Zoomable"), n.setAttribute("tabindex", "0"), n.addEventListener("click", (e) => {
|
|
69
|
-
e.preventDefault(),
|
|
65
|
+
e.preventDefault(), E(t);
|
|
70
66
|
});
|
|
71
67
|
}
|
|
72
|
-
function
|
|
68
|
+
function E(n) {
|
|
73
69
|
const t = document.body, e = (() => {
|
|
74
|
-
var
|
|
75
|
-
return
|
|
70
|
+
var r = p(), c = r.firstChild, a = c.firstChild, d = c.nextSibling;
|
|
71
|
+
return c.$$click = i, l(a, "src", `${b}/cross.svg`), l(d, "src", n), r;
|
|
76
72
|
})();
|
|
77
|
-
function o(
|
|
78
|
-
|
|
73
|
+
function o(r) {
|
|
74
|
+
r.key === "Escape" && i();
|
|
79
75
|
}
|
|
80
76
|
function i() {
|
|
81
77
|
e.remove(), t.removeEventListener("keyup", o);
|
|
82
78
|
}
|
|
83
79
|
t.addEventListener("keyup", o), t.appendChild(e);
|
|
84
80
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
m(a ?? ".");
|
|
81
|
+
f(["click"]);
|
|
82
|
+
h();
|