@paroicms/tiptap-editor-plugin 1.2.3 → 1.2.5

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.
@@ -6,6 +6,10 @@ import Document from "@tiptap/extension-document";
6
6
  import { BulletList, ListItem, OrderedList } from "@tiptap/extension-list";
7
7
  import Subscript from "@tiptap/extension-subscript";
8
8
  import Superscript from "@tiptap/extension-superscript";
9
+ import { TableCell } from "@tiptap/extension-table/cell";
10
+ import { TableHeader } from "@tiptap/extension-table/header";
11
+ import { TableRow } from "@tiptap/extension-table/row";
12
+ import { Table } from "@tiptap/extension-table/table";
9
13
  import TextAlign from "@tiptap/extension-text-align";
10
14
  import { TextStyle } from "@tiptap/extension-text-style";
11
15
  import StarterKit from "@tiptap/starter-kit";
@@ -144,6 +148,10 @@ function renderTiptapToHtml(json, service, mediaMap, documentMap, options) {
144
148
  OrderedList,
145
149
  CustomListItem,
146
150
  CustomLink,
151
+ Table,
152
+ TableRow,
153
+ TableHeader,
154
+ TableCell,
147
155
  ...(hasCodeInConf ? [Code, CodeBlockLowlight] : []),
148
156
  TextAlign.configure({
149
157
  types: ["heading", "paragraph"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/tiptap-editor-plugin",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "description": "Tiptap editor plugin for ParoiCMS",
5
5
  "keywords": [
6
6
  "paroicms",
@@ -27,17 +27,18 @@
27
27
  "test:watch": "vitest"
28
28
  },
29
29
  "dependencies": {
30
- "@paroicms/markdown-to-tiptap-json": "0.2.7",
31
- "@paroicms/script-lib": "0.3.14",
32
- "@tiptap/core": "3.15.3",
33
- "@tiptap/extension-code": "3.15.3",
34
- "@tiptap/extension-code-block-lowlight": "3.15.3",
35
- "@tiptap/extension-subscript": "3.15.3",
36
- "@tiptap/extension-superscript": "3.15.3",
37
- "@tiptap/extension-text-align": "3.15.3",
38
- "@tiptap/extension-text-style": "3.15.3",
39
- "@tiptap/starter-kit": "3.15.3",
40
- "@tiptap/static-renderer": "3.15.3",
30
+ "@paroicms/markdown-to-tiptap-json": "0.2.8",
31
+ "@paroicms/script-lib": "0.3.15",
32
+ "@tiptap/core": "3.16.0",
33
+ "@tiptap/extension-code": "3.16.0",
34
+ "@tiptap/extension-code-block-lowlight": "3.16.0",
35
+ "@tiptap/extension-subscript": "3.16.0",
36
+ "@tiptap/extension-superscript": "3.16.0",
37
+ "@tiptap/extension-table": "3.16.0",
38
+ "@tiptap/extension-text-align": "3.16.0",
39
+ "@tiptap/extension-text-style": "3.16.0",
40
+ "@tiptap/starter-kit": "3.16.0",
41
+ "@tiptap/static-renderer": "3.16.0",
41
42
  "arktype": "~2.1.29"
42
43
  },
43
44
  "peerDependencies": {
@@ -45,12 +46,12 @@
45
46
  "@paroicms/public-server-lib": "0"
46
47
  },
47
48
  "devDependencies": {
48
- "@paroicms/public-anywhere-lib": "0.41.2",
49
- "@paroicms/public-server-lib": "0.50.3",
49
+ "@paroicms/public-anywhere-lib": "0.41.3",
50
+ "@paroicms/public-server-lib": "0.51.0",
50
51
  "@types/node": "~24.10.7",
51
52
  "rimraf": "~6.1.2",
52
53
  "typescript": "~5.9.3",
53
- "vitest": "~4.0.16"
54
+ "vitest": "~4.0.17"
54
55
  },
55
56
  "type": "module",
56
57
  "main": "backend/dist/index.js",
@@ -1,71 +1,80 @@
1
- .Text .Fig {
2
- display: table;
3
- margin: 0;
4
- }
1
+ ._text,
2
+ .Text {
3
+ .Fig {
4
+ display: table;
5
+ margin: 0;
6
+ }
5
7
 
6
- .Text .Fig.left {
7
- float: left;
8
- margin: 5px 20px 10px 0;
9
- }
8
+ .Fig.left {
9
+ float: left;
10
+ margin: 5px 20px 10px 0;
11
+ }
10
12
 
11
- .Text .Fig.right {
12
- float: right;
13
- margin: 5px 0 10px 20px;
14
- }
13
+ .Fig.right {
14
+ float: right;
15
+ margin: 5px 0 10px 20px;
16
+ }
15
17
 
16
- .Text .Fig.center {
17
- clear: both;
18
- margin: 20px auto;
19
- }
18
+ .Fig.center {
19
+ clear: both;
20
+ margin: 20px auto;
21
+ }
20
22
 
21
- .Text .Fig-media {
22
- display: block;
23
- max-width: 100%;
24
- height: auto;
25
- }
23
+ .Fig-media {
24
+ display: block;
25
+ max-width: 100%;
26
+ height: auto;
27
+ }
26
28
 
27
- .Text .Fig-caption {
28
- display: table-caption;
29
- margin-top: 8px;
30
- font-size: 0.875em;
31
- text-align: center;
32
- caption-side: bottom;
33
- opacity: 0.6;
34
- }
29
+ .Fig-caption {
30
+ display: table-caption;
31
+ margin-top: 8px;
32
+ font-size: 0.875em;
33
+ text-align: center;
34
+ caption-side: bottom;
35
+ opacity: 0.6;
36
+ }
35
37
 
36
- .Text .Fig a {
37
- display: block;
38
- }
38
+ .Fig a {
39
+ display: block;
40
+ }
39
41
 
40
- .Text .Fig a:hover {
41
- opacity: 0.9;
42
- }
42
+ .Fig a:hover {
43
+ opacity: 0.9;
44
+ }
43
45
 
44
- .Text .text-align-center {
45
- text-align: center;
46
- }
46
+ .text-align-center {
47
+ text-align: center;
48
+ }
47
49
 
48
- .Text .text-align-right {
49
- text-align: right;
50
- }
50
+ .text-align-right {
51
+ text-align: right;
52
+ }
51
53
 
52
- .Text .text-align-justify {
53
- text-align: justify;
54
- }
54
+ .text-align-justify {
55
+ text-align: justify;
56
+ }
55
57
 
56
- .Text .text-size-small {
57
- font-size: 0.5625em;
58
- }
58
+ .text-size-small {
59
+ font-size: 0.5625em;
60
+ }
59
61
 
60
- .Text .text-size-large {
61
- font-size: 2em;
62
- }
62
+ .text-size-large {
63
+ font-size: 2em;
64
+ }
63
65
 
64
- .Text .text-size-huge {
65
- font-size: 4em;
66
+ .text-size-huge {
67
+ font-size: 4em;
68
+ }
69
+
70
+ iframe {
71
+ display: block;
72
+ margin: 20px auto;
73
+ }
66
74
  }
67
75
 
68
- .Text iframe {
76
+ .Text::after {
77
+ clear: both;
69
78
  display: block;
70
- margin: 20px auto;
79
+ content: "";
71
80
  }