@paroicms/quill-editor-plugin 1.32.2 → 1.33.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/quill-editor-plugin",
3
- "version": "1.32.2",
3
+ "version": "1.33.1",
4
4
  "description": "Quill Editor plugin for ParoiCMS",
5
5
  "keywords": [
6
6
  "paroicms",
@@ -26,6 +26,7 @@
26
26
  "minify:public": "terser public-front/dist/public-front-plugin.mjs --output public-front/dist/public-front-plugin.mjs",
27
27
  "build:public:watch": "(cd public-front && tsc && vite build --watch)",
28
28
  "build:bo:watch": "(cd bo-front && vite build --watch)",
29
+ "bo:tsc": "(cd bo-front && tsc)",
29
30
  "clear": "rimraf backend/dist/* bo-front/dist/*"
30
31
  },
31
32
  "dependencies": {
@@ -37,22 +38,22 @@
37
38
  "@paroicms/public-server-lib": "0"
38
39
  },
39
40
  "devDependencies": {
40
- "@paroicms/public-anywhere-lib": "0.21.1",
41
- "@paroicms/public-bo-lib": "0.22.1",
42
- "@paroicms/public-server-lib": "0.31.3",
43
- "@solid-primitives/i18n": "~2.2.0",
44
- "@types/node": "~22.14.1",
45
- "highlight.js": "~11.10.0",
46
- "quill": "~2.0.2",
41
+ "@paroicms/public-anywhere-lib": "0.23.1",
42
+ "@paroicms/public-bo-lib": "0.24.1",
43
+ "@paroicms/public-server-lib": "0.34.1",
44
+ "@solid-primitives/i18n": "~2.2.1",
45
+ "@types/node": "~24.0.1",
46
+ "highlight.js": "~11.11.1",
47
+ "quill": "~2.0.3",
47
48
  "quill-image-drop-and-paste": "~2.0.1",
48
49
  "rimraf": "~6.0.1",
49
- "sass": "~1.86.3",
50
- "solid-devtools": "~0.33.0",
51
- "solid-js": "1.9.5",
50
+ "sass": "~1.89.2",
51
+ "solid-devtools": "~0.34.0",
52
+ "solid-js": "1.9.7",
52
53
  "typescript": "~5.8.3",
53
- "vite": "~6.2.6",
54
+ "vite": "~6.3.5",
54
55
  "vite-plugin-solid": "~2.11.6",
55
- "terser": "~5.39.0"
56
+ "terser": "~5.42.0"
56
57
  },
57
58
  "type": "module",
58
59
  "main": "backend/dist/plugin.js",
@@ -1 +1 @@
1
- .PaZoomable{cursor:pointer}.PaZoomable:hover,.PaZoomable:focus{outline:1px solid var(--paInteractiveColor)}.PaZoomableViewer{align-items:center;background:#00000080;display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:999}.PaZoomableViewer-img{height:100%;object-fit:contain;width:100%}.PaZoomableViewer-closeButton{background-color:#00000080;cursor:pointer;display:flex;margin:20px;position:absolute;right:0;top:0}
1
+ .Text .Fig{display:table;margin:0}.Text .Fig.left{float:left;margin:5px 20px 10px 0}.Text .Fig.right{float:right;margin:5px 0 10px 20px}.Text .Fig.center{clear:both;margin:20px auto}.Text .Fig-media{display:block;height:auto;max-width:100%}.Text .Fig-caption{caption-side:bottom;display:table-caption;font-size:.875em;margin-top:8px;opacity:.6;text-align:center}.Text .ql-align-center{text-align:center}.Text .ql-align-right{text-align:right}.Text .ql-size-small{font-size:.5625em}.Text .ql-size-large{font-size:1.125em}.Text .ql-size-huge{font-size:2em}.PaZoomable{cursor:pointer}.PaZoomable:hover,.PaZoomable:focus{outline:1px solid var(--paInteractiveColor)}.PaZoomableViewer{align-items:center;background:#00000080;display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:999}.PaZoomableViewer-img{height:100%;object-fit:contain;width:100%}.PaZoomableViewer-closeButton.PaButton{position:absolute;right:8px;top:5px}.PaZoomableViewer-spinner{animation:spin 1s linear infinite;border:4px solid rgba(255,255,255,.3);border-radius:50%;border-top:4px solid white;height:40px;width:40px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
@@ -1 +1 @@
1
- import{delegateEvents as d,template as m,setAttribute as a}from"https://esm.sh/solid-js@1.9.5/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 b=m("<div class=PaZoomableViewer><button type=button class=PaZoomableViewer-closeButton><img alt=⨯ width=30 height=30></button><img class=PaZoomableViewer-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&&g(e,{dataZoomSrc:t})}}function g(o,{dataZoomSrc:e}){o.classList.add("PaZoomable"),o.setAttribute("tabindex","0"),o.addEventListener("click",(t=>{t.preventDefault(),v(e)}))}function v(o){const e=document.body,t=(()=>{var s=b(),r=s.firstChild,c=r.firstChild,l=r.nextSibling;return r.$$click=i,a(c,"src",`${f}/cross.svg`),a(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)}d(["click"]);p();
1
+ import{delegateEvents as $,template as w,setAttribute as c,effect as Z}from"https://esm.sh/solid-js@1.9.7/web";function k(o){let e=o;const t=e.indexOf("?");t!==-1&&(e=e.substring(0,t));const r=e.indexOf("#");r!==-1&&(e=e.substring(0,r));const n=e.lastIndexOf("/");return n===-1?void 0:e.slice(0,n)}const g=k(import.meta.url);var E=w('<div class=PaZoomableViewer><button type=button class="PaZoomableViewer-closeButton PaButton"><img alt=⨯ width=30 height=30></button><div class=PaZoomableViewer-spinner>'),V=w('<div class=PaZoomableViewer><button type=button class="PaZoomableViewer-closeButton PaButton"><img alt=⨯ width=30 height=30></button><img class=PaZoomableViewer-img alt>');function x(){const o=document.querySelectorAll("[data-zoomable]");for(const e of o){if(!(e instanceof HTMLElement))continue;const t=e.dataset.zoomable?.trim();t&&P(e,{mediaId:t})}}function P(o,{mediaId:e}){o.classList.add("PaZoomable"),o.setAttribute("tabindex","0"),o.addEventListener("click",(async t=>{t.preventDefault(),await C(e)}))}async function C(o){const e=document.body,t=(()=>{var i=E(),s=i.firstChild,l=s.firstChild;return s.$$click=n,c(l,"src",`${g}/cross.svg`),i})();function r(i){i.key==="Escape"&&n()}function n(){t.remove(),e.removeEventListener("keyup",r)}e.addEventListener("keyup",r),e.appendChild(t);try{let i=function(d){d.key==="Escape"&&s()},s=function(){h.remove(),e.removeEventListener("keyup",i)};const l=await fetch(`/api/plugin/quill-editor/zoom-image?mediaId=${encodeURIComponent(o)}`);if(!l.ok){console.error("Failed to fetch zoom image:",l.statusText),n();return}const m=await l.json();n();const h=(()=>{var d=V(),u=d.firstChild,y=u.firstChild,f=u.nextSibling;return u.$$click=s,c(y,"src",`${g}/cross.svg`),Z((a=>{var v=m.url,p=m.width,b=m.height;return v!==a.e&&c(f,"src",a.e=v),p!==a.t&&c(f,"width",a.t=p),b!==a.a&&c(f,"height",a.a=b),a}),{e:void 0,t:void 0,a:void 0}),d})();e.addEventListener("keyup",i),e.appendChild(h)}catch(i){console.error("Error fetching zoom image:",i),n()}}$(["click"]);x();