@zipify/wysiwyg 1.2.2 → 1.2.3
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
|
@@ -23677,12 +23677,12 @@ const Alignment = Extension.create({
|
|
|
23677
23677
|
parseHTML({ style: style2 }) {
|
|
23678
23678
|
const textAlign = convertAlignment(style2.textAlign);
|
|
23679
23679
|
if (textAlign) {
|
|
23680
|
-
return { desktop: textAlign, tablet: textAlign, mobile:
|
|
23680
|
+
return { desktop: textAlign, tablet: textAlign, mobile: textAlign };
|
|
23681
23681
|
}
|
|
23682
|
-
const mobile = null;
|
|
23682
|
+
const mobile = style2.getPropertyValue("--zw-text-align-mobile") || null;
|
|
23683
23683
|
const tablet = style2.getPropertyValue("--zw-text-align-tablet") || null;
|
|
23684
23684
|
const desktop = style2.getPropertyValue("--zw-text-align-desktop") || null;
|
|
23685
|
-
if (!tablet && !desktop)
|
|
23685
|
+
if (!mobile && !tablet && !desktop)
|
|
23686
23686
|
return null;
|
|
23687
23687
|
return { desktop, tablet, mobile };
|
|
23688
23688
|
},
|
|
@@ -23702,7 +23702,7 @@ const Alignment = Extension.create({
|
|
|
23702
23702
|
addCommands() {
|
|
23703
23703
|
return {
|
|
23704
23704
|
applyAlignment: createCommand(({ commands: commands2 }, value) => {
|
|
23705
|
-
commands2.setBlockAttributes(this.name, { desktop: value, tablet: value, mobile:
|
|
23705
|
+
commands2.setBlockAttributes(this.name, { desktop: value, tablet: value, mobile: value });
|
|
23706
23706
|
}),
|
|
23707
23707
|
getAlignment: createCommand(({ commands: commands2 }) => {
|
|
23708
23708
|
const attribute = commands2.getBlockAttributes(this.name, DEFAULTS$1);
|
|
@@ -23,13 +23,10 @@ export const Alignment = Extension.create({
|
|
|
23
23
|
const textAlign = convertAlignment(style.textAlign);
|
|
24
24
|
|
|
25
25
|
if (textAlign) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
// Temporary until release BUILDER_MODES
|
|
29
|
-
return { desktop: textAlign, tablet: textAlign, mobile: null };
|
|
26
|
+
return { desktop: textAlign, tablet: textAlign, mobile: textAlign };
|
|
30
27
|
}
|
|
31
28
|
|
|
32
|
-
const mobile =
|
|
29
|
+
const mobile = style.getPropertyValue('--zw-text-align-mobile') || null;
|
|
33
30
|
const tablet = style.getPropertyValue('--zw-text-align-tablet') || null;
|
|
34
31
|
const desktop = style.getPropertyValue('--zw-text-align-desktop') || null;
|
|
35
32
|
|
|
@@ -60,7 +57,7 @@ export const Alignment = Extension.create({
|
|
|
60
57
|
// commands.setBlockAttributes(this.name, { [device]: value }, DEFAULTS);
|
|
61
58
|
|
|
62
59
|
// Temporary until release BUILDER_MODES
|
|
63
|
-
commands.setBlockAttributes(this.name, { desktop: value, tablet: value, mobile:
|
|
60
|
+
commands.setBlockAttributes(this.name, { desktop: value, tablet: value, mobile: value });
|
|
64
61
|
}),
|
|
65
62
|
|
|
66
63
|
getAlignment: createCommand(({ commands }) => {
|
|
@@ -7,7 +7,7 @@ Object {
|
|
|
7
7
|
"attrs": Object {
|
|
8
8
|
"alignment": Object {
|
|
9
9
|
"desktop": "right",
|
|
10
|
-
"mobile":
|
|
10
|
+
"mobile": "right",
|
|
11
11
|
"tablet": "right",
|
|
12
12
|
},
|
|
13
13
|
},
|
|
@@ -31,7 +31,7 @@ Object {
|
|
|
31
31
|
"attrs": Object {
|
|
32
32
|
"alignment": Object {
|
|
33
33
|
"desktop": "right",
|
|
34
|
-
"mobile":
|
|
34
|
+
"mobile": "center",
|
|
35
35
|
"tablet": null,
|
|
36
36
|
},
|
|
37
37
|
},
|
|
@@ -55,7 +55,7 @@ Object {
|
|
|
55
55
|
"attrs": Object {
|
|
56
56
|
"alignment": Object {
|
|
57
57
|
"desktop": "center",
|
|
58
|
-
"mobile":
|
|
58
|
+
"mobile": "center",
|
|
59
59
|
"tablet": "center",
|
|
60
60
|
},
|
|
61
61
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zipify/wysiwyg",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Zipify modification of TipTap text editor",
|
|
5
5
|
"main": "dist/wysiwyg.mjs",
|
|
6
6
|
"bin": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"prepare": "husky install"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@popperjs/core": "^2.11.
|
|
34
|
+
"@popperjs/core": "^2.11.6",
|
|
35
35
|
"@tiptap/core": "^2.0.0-beta.183",
|
|
36
36
|
"@tiptap/extension-document": "^2.0.0-beta.17",
|
|
37
37
|
"@tiptap/extension-heading": "^2.0.0-beta.29",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@vue/vue2-jest": "^29.0.0",
|
|
65
65
|
"@zipify/colorpicker": "^2.2.1",
|
|
66
66
|
"babel-jest": "^29.0.2",
|
|
67
|
-
"eslint": "8.
|
|
67
|
+
"eslint": "8.23.0",
|
|
68
68
|
"eslint-plugin-import": "^2.26.0",
|
|
69
69
|
"eslint-plugin-vue": "^9.4.0",
|
|
70
70
|
"gzipper": "^7.1.0",
|