@paroicms/quill-editor-plugin 1.15.0 → 1.16.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.
@@ -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.15.0",
3
+ "version": "1.16.0",
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)",
@@ -37,8 +38,8 @@
37
38
  },
38
39
  "devDependencies": {
39
40
  "@paroicms/public-anywhere-lib": "0.8.0",
40
- "@paroicms/public-bo-lib": "0.14.0",
41
- "@paroicms/public-server-lib": "0.15.0",
41
+ "@paroicms/public-bo-lib": "0.15.0",
42
+ "@paroicms/public-server-lib": "0.16.0",
42
43
  "@solid-primitives/i18n": "~2.1.1",
43
44
  "@types/node": "~20.14.8",
44
45
  "highlight.js": "~11.10.0",
@@ -30,6 +30,9 @@
30
30
  "storedOn": "section",
31
31
  "storedAs": "text",
32
32
  "dataType": "quillDelta",
33
+ "backOffice": {
34
+ "editorRows": 4
35
+ },
33
36
  "plugin": "@paroicms/quill-editor-plugin"
34
37
  }
35
38
  ]
@@ -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
+ }