@paroicms/quill-editor-plugin 1.13.1 → 1.14.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/quill-editor-plugin",
3
- "version": "1.13.1",
3
+ "version": "1.14.0",
4
4
  "description": "Quill Editor plugin for ParoiCMS",
5
5
  "keywords": [
6
6
  "paroicms",
@@ -19,8 +19,10 @@
19
19
  "dev:bo": "(cd bo-front && vite)",
20
20
  "build": "npm run build:backend && npm run build:bo && npm run build:public",
21
21
  "build:backend": "(cd backend && tsc)",
22
- "build:bo": "(cd bo-front && tsc && vite build)",
23
- "build:public": "(cd public-front && tsc && vite build)",
22
+ "build:bo": "(cd bo-front && tsc && vite build && npm run minify:bo)",
23
+ "minify:bo": "terser bo-front/dist/bo-plugin.mjs --output bo-front/dist/bo-plugin.mjs",
24
+ "build:public": "(cd public-front && tsc && vite build && npm run minify:public)",
25
+ "minify:public": "terser public-front/dist/public-front-plugin.mjs --output public-front/dist/public-front-plugin.mjs",
24
26
  "build:public:watch": "(cd public-front && tsc && vite build --watch)",
25
27
  "build:bo:watch": "(cd bo-front && vite build --watch)",
26
28
  "clear": "rimraf backend/dist/* bo-front/dist/*"
@@ -35,8 +37,8 @@
35
37
  },
36
38
  "devDependencies": {
37
39
  "@paroicms/public-anywhere-lib": "0.8.0",
38
- "@paroicms/public-bo-lib": "0.13.0",
39
- "@paroicms/public-server-lib": "0.14.0",
40
+ "@paroicms/public-bo-lib": "0.13.1",
41
+ "@paroicms/public-server-lib": "0.14.1",
40
42
  "@solid-primitives/i18n": "~2.1.1",
41
43
  "@types/node": "~20.14.8",
42
44
  "highlight.js": "~11.10.0",
@@ -45,10 +47,11 @@
45
47
  "rimraf": "~6.0.1",
46
48
  "sass": "~1.77.8",
47
49
  "solid-devtools": "~0.30.1",
48
- "solid-js": "~1.8.20",
50
+ "solid-js": "1.8.20",
49
51
  "typescript": "~5.5.4",
50
52
  "vite": "~5.4.0",
51
- "vite-plugin-solid": "~2.10.2"
53
+ "vite-plugin-solid": "~2.10.2",
54
+ "terser": "~5.34.1"
52
55
  },
53
56
  "main": "backend/dist/plugin.js",
54
57
  "files": [
@@ -1,82 +1 @@
1
- const s = "_$DX_DELEGATE";
2
- function u(n, t, e) {
3
- let o;
4
- const i = () => {
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;
9
- }
10
- function f(n, t = window.document) {
11
- const e = t[s] || (t[s] = /* @__PURE__ */ new Set());
12
- for (let o = 0, i = n.length; o < i; o++) {
13
- const r = n[o];
14
- e.has(r) || (e.add(r), t.addEventListener(r, m));
15
- }
16
- }
17
- function l(n, t, e) {
18
- e == null ? n.removeAttribute(t) : n.setAttribute(t, e);
19
- }
20
- function m(n) {
21
- const t = `$$${n.type}`;
22
- let e = n.composedPath && n.composedPath()[0] || n.target;
23
- for (n.target !== e && Object.defineProperty(n, "target", {
24
- configurable: !0,
25
- value: e
26
- }), Object.defineProperty(n, "currentTarget", {
27
- configurable: !0,
28
- get() {
29
- return e || document;
30
- }
31
- }); e; ) {
32
- const o = e[t];
33
- if (o && !e.disabled) {
34
- const i = e[`${t}Data`];
35
- if (i !== void 0 ? o.call(e, i, n) : o.call(e, n), n.cancelBubble) return;
36
- }
37
- e = e._$host || e.parentNode || e.host;
38
- }
39
- }
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() {
52
- const n = document.querySelectorAll("[data-zoom-src]");
53
- for (const t of n) {
54
- if (!(t instanceof HTMLElement)) continue;
55
- const e = t.dataset.zoomSrc?.trim();
56
- e && $(t, {
57
- dataZoomSrc: e
58
- });
59
- }
60
- }
61
- function $(n, {
62
- dataZoomSrc: t
63
- }) {
64
- n.classList.add("Zoomable"), n.setAttribute("tabindex", "0"), n.addEventListener("click", (e) => {
65
- e.preventDefault(), E(t);
66
- });
67
- }
68
- function E(n) {
69
- const t = document.body, e = (() => {
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;
72
- })();
73
- function o(r) {
74
- r.key === "Escape" && i();
75
- }
76
- function i() {
77
- e.remove(), t.removeEventListener("keyup", o);
78
- }
79
- t.addEventListener("keyup", o), t.appendChild(e);
80
- }
81
- f(["click"]);
82
- h();
1
+ import{delegateEvents as m,setAttribute as c,template as d}from"https://esm.sh/solid-js@1.8.20/web";function u(o){let e=o;const t=e.indexOf("?");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("#");n!==-1&&(e=e.substring(0,n));const i=e.lastIndexOf("/");return i===-1?void 0:e.slice(0,i)}const f=u(import.meta.url);var g=d('<div class=ImageZoomViewer><button type=button class=ImageZoomViewer-closeBtn><img alt=⨯ width=30 height=30></button><img class=ImageZoomViewer-img alt="">');function p(){const o=document.querySelectorAll("[data-zoom-src]");for(const e of o){if(!(e instanceof HTMLElement))continue;const t=e.dataset.zoomSrc?.trim();t&&b(e,{dataZoomSrc:t})}}function b(o,{dataZoomSrc:e}){o.classList.add("Zoomable"),o.setAttribute("tabindex","0"),o.addEventListener("click",(t=>{t.preventDefault(),v(e)}))}function v(o){const e=document.body,t=(()=>{var s=g(),r=s.firstChild,a=r.firstChild,l=r.nextSibling;return r.$$click=i,c(a,"src",`${f}/cross.svg`),c(l,"src",o),s})();function n(s){s.key==="Escape"&&i()}function i(){t.remove(),e.removeEventListener("keyup",n)}e.addEventListener("keyup",n),e.appendChild(t)}m(["click"]);p();