@paroicms/quill-editor-plugin 1.15.0 → 1.16.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/backend/dist/quill-delta.js +34 -12
- package/bo-front/dist/bo-plugin.mjs +1 -1
- package/bo-front/dist/style.css +1 -1
- package/package.json +9 -8
- package/public-front/dist/public-front-plugin.mjs +1 -1
- package/site-schema-lib/field-lib.site-schema.json +3 -0
- package/types/html-editor-public-types.d.ts +11 -0
package/bo-front/dist/style.css
CHANGED
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
|
|
14
14
|
Outdated base version: https://github.com/primer/github-syntax-dark
|
|
15
15
|
Current colors taken from GitHub's CSS
|
|
16
|
-
*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}.QpTooltip{border-bottom:1px dotted #64748b;display:inline-block;position:relative}.QpTooltip-text{background-color:#64748b;border-radius:6px;color:#fff;left:110%;padding:5px;position:absolute;text-align:center;top:-5px;visibility:hidden;width:120px;z-index:1}.QpTooltip-text:after{border-color:transparent #64748b transparent transparent;border-style:solid;border-width:5px;content:"";margin-top:-5px;position:absolute;right:100%;top:50%}.QpTooltip:hover .QpTooltip-text{visibility:visible}.ObfuscateBlot{border:2px dashed #8d5151;border-radius:3px;cursor:pointer;padding:0 2px}.VideoPlugin{align-items:center;background-position:center;background-repeat:no-repeat;border:2px dotted bisque;cursor:pointer;display:flex;height:100px;justify-content:center;margin:10px;width:100%}.VideoPlugin-playButton{background-color:red;border-radius:3px;color:#fff;padding:5px 10px}
|
|
16
|
+
*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}.QpTooltip{border-bottom:1px dotted #64748b;display:inline-block;position:relative}.QpTooltip-text{background-color:#64748b;border-radius:6px;color:#fff;left:110%;padding:5px;position:absolute;text-align:center;top:-5px;visibility:hidden;width:120px;z-index:1}.QpTooltip-text:after{border-color:transparent #64748b transparent transparent;border-style:solid;border-width:5px;content:"";margin-top:-5px;position:absolute;right:100%;top:50%}.QpTooltip:hover .QpTooltip-text{visibility:visible}.InternalLinkPlugin{border:2px dashed rgb(241,136,6);border-radius:3px;cursor:pointer;padding:3px 5px}.ObfuscateBlot{border:2px dashed #8d5151;border-radius:3px;cursor:pointer;padding:0 2px}.VideoPlugin{align-items:center;background-position:center;background-repeat:no-repeat;border:2px dotted bisque;cursor:pointer;display:flex;height:100px;justify-content:center;margin:10px;width:100%}.VideoPlugin-playButton{background-color:red;border-radius:3px;color:#fff;padding:5px 10px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/quill-editor-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.1",
|
|
4
4
|
"description": "Quill Editor plugin for ParoiCMS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
@@ -19,6 +19,7 @@
|
|
|
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:backend:watch": "(cd backend && tsc --watch)",
|
|
22
23
|
"build:bo": "(cd bo-front && tsc && vite build && npm run minify:bo)",
|
|
23
24
|
"minify:bo": "terser bo-front/dist/bo-plugin.mjs --output bo-front/dist/bo-plugin.mjs",
|
|
24
25
|
"build:public": "(cd public-front && tsc && vite build && npm run minify:public)",
|
|
@@ -36,9 +37,9 @@
|
|
|
36
37
|
"@paroicms/public-server-lib": "0"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
|
-
"@paroicms/public-anywhere-lib": "0.8.
|
|
40
|
-
"@paroicms/public-bo-lib": "0.
|
|
41
|
-
"@paroicms/public-server-lib": "0.
|
|
40
|
+
"@paroicms/public-anywhere-lib": "0.8.3",
|
|
41
|
+
"@paroicms/public-bo-lib": "0.15.3",
|
|
42
|
+
"@paroicms/public-server-lib": "0.16.3",
|
|
42
43
|
"@solid-primitives/i18n": "~2.1.1",
|
|
43
44
|
"@types/node": "~20.14.8",
|
|
44
45
|
"highlight.js": "~11.10.0",
|
|
@@ -47,11 +48,11 @@
|
|
|
47
48
|
"rimraf": "~6.0.1",
|
|
48
49
|
"sass": "~1.77.8",
|
|
49
50
|
"solid-devtools": "~0.30.1",
|
|
50
|
-
"solid-js": "1.
|
|
51
|
-
"typescript": "~5.
|
|
52
|
-
"vite": "~5.4.
|
|
51
|
+
"solid-js": "1.9.3",
|
|
52
|
+
"typescript": "~5.6.3",
|
|
53
|
+
"vite": "~5.4.11",
|
|
53
54
|
"vite-plugin-solid": "~2.10.2",
|
|
54
|
-
"terser": "~5.
|
|
55
|
+
"terser": "~5.36.0"
|
|
55
56
|
},
|
|
56
57
|
"main": "backend/dist/plugin.js",
|
|
57
58
|
"types": "types/html-editor-public-types.d.ts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{delegateEvents as m,setAttribute as c,template as d}from"https://esm.sh/solid-js@1.
|
|
1
|
+
import{delegateEvents as m,setAttribute as c,template as d}from"https://esm.sh/solid-js@1.9.3/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();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface HtmlEditorInitService {
|
|
2
2
|
registerVideoPlugin(plugin: HtmlEditorVideoPlugin): void;
|
|
3
|
+
registerInternalLinkPlugin(plugin: HtmlEditorInternalLinkPlugin): void;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
export interface HtmlEditorVideoPlugin {
|
|
@@ -16,3 +17,13 @@ export interface HtmlEditorVideoPlugin {
|
|
|
16
17
|
dispose: () => void;
|
|
17
18
|
};
|
|
18
19
|
}
|
|
20
|
+
|
|
21
|
+
export interface HtmlEditorInternalLinkPlugin {
|
|
22
|
+
getDocumentTitle(sectionId: string): Promise<string | undefined>;
|
|
23
|
+
openDialog(
|
|
24
|
+
documentId: string | undefined,
|
|
25
|
+
options: {
|
|
26
|
+
getLanguage: () => string;
|
|
27
|
+
},
|
|
28
|
+
): Promise<{ documentId: string | undefined } | undefined>;
|
|
29
|
+
}
|