@paroicms/quill-editor-plugin 1.27.0 → 1.28.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.
@@ -15,6 +15,8 @@ const plugin = {
15
15
  service.registerFieldPreprocessor("quillDelta", (service, value, options) => {
16
16
  if (!isObj(value) || !isObj(value.delta))
17
17
  return;
18
+ if (!("ops" in value.delta))
19
+ throw new Error("Invalid QuillDeltaValue");
18
20
  const delta = value.delta;
19
21
  if (options.outputType === "plainText")
20
22
  return convertQuillDeltaToPlainText(service, delta);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/quill-editor-plugin",
3
- "version": "1.27.0",
3
+ "version": "1.28.0",
4
4
  "description": "Quill Editor plugin for ParoiCMS",
5
5
  "keywords": [
6
6
  "paroicms",
@@ -19,11 +19,11 @@
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
+ "build:backend:watch": "(cd backend && tsc --watch --preserveWatchOutput)",
23
23
  "build:bo": "(cd bo-front && tsc && vite build && npm run minify:bo)",
24
- "minify:bo": "terser bo-front/dist/bo-plugin.mjs --output bo-front/dist/bo-plugin.mjs",
24
+ "minify:bo": "terser bo-front/dist/bo-plugin.mjs --output bo-front/dist/bo-plugin.mjs",
25
25
  "build:public": "(cd public-front && tsc && vite build && npm run minify:public)",
26
- "minify:public": "terser public-front/dist/public-front-plugin.mjs --output public-front/dist/public-front-plugin.mjs",
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
29
  "clear": "rimraf backend/dist/* bo-front/dist/*"
@@ -37,20 +37,20 @@
37
37
  "@paroicms/public-server-lib": "0"
38
38
  },
39
39
  "devDependencies": {
40
- "@paroicms/public-anywhere-lib": "0.18.0",
41
- "@paroicms/public-bo-lib": "0.19.5",
42
- "@paroicms/public-server-lib": "0.25.0",
40
+ "@paroicms/public-anywhere-lib": "0.19.0",
41
+ "@paroicms/public-bo-lib": "0.20.0",
42
+ "@paroicms/public-server-lib": "0.26.0",
43
43
  "@solid-primitives/i18n": "~2.1.1",
44
- "@types/node": "~22.10.7",
44
+ "@types/node": "~22.13.10",
45
45
  "highlight.js": "~11.10.0",
46
46
  "quill": "~2.0.2",
47
47
  "quill-image-drop-and-paste": "~2.0.1",
48
48
  "rimraf": "~6.0.1",
49
- "sass": "~1.83.4",
49
+ "sass": "~1.84.0",
50
50
  "solid-devtools": "~0.33.0",
51
51
  "solid-js": "1.9.4",
52
- "typescript": "~5.7.3",
53
- "vite": "~6.0.7",
52
+ "typescript": "~5.8.2",
53
+ "vite": "~6.1.0",
54
54
  "vite-plugin-solid": "~2.11.0",
55
55
  "terser": "~5.37.0"
56
56
  },
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "6",
2
+ "version": "7",
3
3
  "languages": ["en", "fr"],
4
4
  "fieldTypes": [
5
5
  {
6
6
  "name": "leadParagraph",
7
- "storedOn": "nodel",
7
+ "localized": true,
8
8
  "storedAs": "text",
9
9
  "dataType": "quillDelta",
10
10
  "useAsExcerpt": 1,
@@ -16,7 +16,7 @@
16
16
  },
17
17
  {
18
18
  "name": "htmlContent",
19
- "storedOn": "nodel",
19
+ "localized": true,
20
20
  "storedAs": "text",
21
21
  "dataType": "quillDelta",
22
22
  "withGallery": true,
@@ -25,9 +25,21 @@
25
25
  "visibility": ["overview", "feed"],
26
26
  "plugin": "@paroicms/quill-editor-plugin"
27
27
  },
28
+ {
29
+ "name": "introduction",
30
+ "localized": true,
31
+ "storedAs": "text",
32
+ "dataType": "quillDelta",
33
+ "useAsExcerpt": 1,
34
+ "backOffice": {
35
+ "editorRows": 8
36
+ },
37
+ "visibility": ["overview", "feed"],
38
+ "plugin": "@paroicms/quill-editor-plugin"
39
+ },
28
40
  {
29
41
  "name": "footerMention",
30
- "storedOn": "nodel",
42
+ "localized": true,
31
43
  "storedAs": "text",
32
44
  "dataType": "quillDelta",
33
45
  "backOffice": {
@@ -6,6 +6,9 @@
6
6
  "htmlContent": {
7
7
  "label": "Content"
8
8
  },
9
+ "introduction": {
10
+ "label": "Introduction"
11
+ },
9
12
  "footerMention": {
10
13
  "label": "Footer mention"
11
14
  }
@@ -6,6 +6,9 @@
6
6
  "htmlContent": {
7
7
  "label": "Contenu"
8
8
  },
9
+ "introduction": {
10
+ "label": "Introduction"
11
+ },
9
12
  "footerMention": {
10
13
  "label": "Mention de bas de page"
11
14
  }