@paroicms/quill-editor-plugin 1.33.0 → 1.34.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.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "Quill Editor plugin for ParoiCMS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
@@ -38,22 +38,22 @@
|
|
|
38
38
|
"@paroicms/public-server-lib": "0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@paroicms/public-anywhere-lib": "0.23.
|
|
42
|
-
"@paroicms/public-bo-lib": "0.24.
|
|
43
|
-
"@paroicms/public-server-lib": "0.
|
|
44
|
-
"@solid-primitives/i18n": "~2.2.
|
|
45
|
-
"@types/node": "~
|
|
46
|
-
"highlight.js": "~11.
|
|
47
|
-
"quill": "~2.0.
|
|
41
|
+
"@paroicms/public-anywhere-lib": "0.23.1",
|
|
42
|
+
"@paroicms/public-bo-lib": "0.24.1",
|
|
43
|
+
"@paroicms/public-server-lib": "0.35.0",
|
|
44
|
+
"@solid-primitives/i18n": "~2.2.1",
|
|
45
|
+
"@types/node": "~24.0.1",
|
|
46
|
+
"highlight.js": "~11.11.1",
|
|
47
|
+
"quill": "~2.0.3",
|
|
48
48
|
"quill-image-drop-and-paste": "~2.0.1",
|
|
49
49
|
"rimraf": "~6.0.1",
|
|
50
|
-
"sass": "~1.
|
|
51
|
-
"solid-devtools": "~0.
|
|
52
|
-
"solid-js": "1.9.
|
|
50
|
+
"sass": "~1.89.2",
|
|
51
|
+
"solid-devtools": "~0.34.0",
|
|
52
|
+
"solid-js": "1.9.7",
|
|
53
53
|
"typescript": "~5.8.3",
|
|
54
|
-
"vite": "~6.
|
|
54
|
+
"vite": "~6.3.5",
|
|
55
55
|
"vite-plugin-solid": "~2.11.6",
|
|
56
|
-
"terser": "~5.
|
|
56
|
+
"terser": "~5.42.0"
|
|
57
57
|
},
|
|
58
58
|
"type": "module",
|
|
59
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.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
|
+
.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 $,template as w,setAttribute as c,effect as Z}from"https://esm.sh/solid-js@1.9.
|
|
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();
|