@zipify/wysiwyg 1.0.0-dev.56 → 1.0.0-dev.57
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/dist/wysiwyg.mjs
CHANGED
|
@@ -16872,9 +16872,9 @@ const rB = te.create({
|
|
|
16872
16872
|
r.applyDefaultPreset();
|
|
16873
16873
|
return;
|
|
16874
16874
|
}
|
|
16875
|
-
return e().
|
|
16875
|
+
return e().applyDefaultPreset()._addList(t).run();
|
|
16876
16876
|
}),
|
|
16877
|
-
_addList: O(({ chain: r }, e) => r().
|
|
16877
|
+
_addList: O(({ chain: r }, e) => r().toggleList(ee.LIST, ee.LIST_ITEM).setBlockAttributes("bullet", { type: e }).run()),
|
|
16878
16878
|
removeList: O(({ commands: r }) => {
|
|
16879
16879
|
r.liftListItem(ee.LIST_ITEM);
|
|
16880
16880
|
})
|
|
@@ -80,12 +80,11 @@ export const List = Node.create({
|
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
return chain().
|
|
83
|
+
return chain().applyDefaultPreset()._addList(type).run();
|
|
84
84
|
}),
|
|
85
85
|
|
|
86
86
|
_addList: createCommand(({ chain }, type) => {
|
|
87
87
|
return chain()
|
|
88
|
-
.removePreset()
|
|
89
88
|
.toggleList(NodeTypes.LIST, NodeTypes.LIST_ITEM)
|
|
90
89
|
.setBlockAttributes('bullet', { type })
|
|
91
90
|
.run();
|
|
@@ -14,7 +14,9 @@ Object {
|
|
|
14
14
|
"content": Array [
|
|
15
15
|
Object {
|
|
16
16
|
"attrs": Object {
|
|
17
|
-
"preset":
|
|
17
|
+
"preset": Object {
|
|
18
|
+
"id": "regular-1",
|
|
19
|
+
},
|
|
18
20
|
},
|
|
19
21
|
"content": Array [
|
|
20
22
|
Object {
|
|
@@ -49,7 +51,9 @@ Object {
|
|
|
49
51
|
"content": Array [
|
|
50
52
|
Object {
|
|
51
53
|
"attrs": Object {
|
|
52
|
-
"preset":
|
|
54
|
+
"preset": Object {
|
|
55
|
+
"id": "regular-1",
|
|
56
|
+
},
|
|
53
57
|
},
|
|
54
58
|
"content": Array [
|
|
55
59
|
Object {
|
|
@@ -66,7 +70,9 @@ Object {
|
|
|
66
70
|
"content": Array [
|
|
67
71
|
Object {
|
|
68
72
|
"attrs": Object {
|
|
69
|
-
"preset":
|
|
73
|
+
"preset": Object {
|
|
74
|
+
"id": "regular-1",
|
|
75
|
+
},
|
|
70
76
|
},
|
|
71
77
|
"content": Array [
|
|
72
78
|
Object {
|
|
@@ -137,7 +143,9 @@ Object {
|
|
|
137
143
|
"content": Array [
|
|
138
144
|
Object {
|
|
139
145
|
"attrs": Object {
|
|
140
|
-
"preset":
|
|
146
|
+
"preset": Object {
|
|
147
|
+
"id": "regular-1",
|
|
148
|
+
},
|
|
141
149
|
},
|
|
142
150
|
"content": Array [
|
|
143
151
|
Object {
|
|
@@ -154,7 +162,9 @@ Object {
|
|
|
154
162
|
"content": Array [
|
|
155
163
|
Object {
|
|
156
164
|
"attrs": Object {
|
|
157
|
-
"preset":
|
|
165
|
+
"preset": Object {
|
|
166
|
+
"id": "regular-1",
|
|
167
|
+
},
|
|
158
168
|
},
|
|
159
169
|
"content": Array [
|
|
160
170
|
Object {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zipify/wysiwyg",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.57",
|
|
4
4
|
"description": "Zipify modification of TipTap text editor",
|
|
5
5
|
"main": "dist/wysiwyg.mjs",
|
|
6
6
|
"repository": {
|
|
@@ -14,11 +14,14 @@
|
|
|
14
14
|
"url": "https://github.com/ZipifyApps/ZipifyWysiwyg/issues"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
|
-
"lib:build": "
|
|
17
|
+
"lib:pre-build": "npm run lint:js && npm run lint:css && npm run test:unit",
|
|
18
|
+
"lib:build": "npm run lib:pre-build && vite build --config ./config/vite/lib.config.js",
|
|
18
19
|
"lib:release": "export $(cat ./.env | xargs) && npm run lib:build && release-it",
|
|
19
20
|
"example:start": "NODE_ENV=development vite serve --config ./config/vite/example.config.js",
|
|
20
21
|
"example:build": "NODE_ENV=production vite build --config ./config/vite/example.config.js",
|
|
21
22
|
"test:unit": "jest .",
|
|
23
|
+
"lint:js": "eslint ./lib/**/*.{js,vue}",
|
|
24
|
+
"lint:css": "stylelint ./lib/**/*.{css,vue}",
|
|
22
25
|
"optimize-svg": "svgo --config ./config/svgo.js",
|
|
23
26
|
"gzip": "gzipper compress",
|
|
24
27
|
"prepare": "husky install"
|