@zipify/wysiwyg 1.1.0-2 → 1.1.1
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/cli.js +1 -1
- package/dist/wysiwyg.mjs +10 -17
- package/lib/extensions/Alignment.js +10 -8
- package/lib/extensions/FontSize.js +8 -3
- package/lib/extensions/LineHeight.js +10 -4
- package/lib/extensions/__tests__/__snapshots__/Alignment.test.js.snap +3 -3
- package/lib/extensions/__tests__/__snapshots__/FontSize.test.js.snap +9 -9
- package/lib/extensions/__tests__/__snapshots__/LineHeight.test.js.snap +5 -5
- package/lib/services/NodeFactory.js +4 -1
- package/node_modules_lambda/acorn-globals/node_modules/.bin/acorn +4 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/CHANGELOG.md +620 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/LICENSE +21 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/README.md +269 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/bin/acorn +4 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.d.ts +209 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.js +5186 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.js.map +1 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs +5155 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs.map +1 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/bin.js +64 -0
- package/node_modules_lambda/acorn-globals/node_modules/acorn/package.json +35 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/LICENSE.txt +20 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/README.mdown +67 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSHostRule.js +37 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSImportRule.js +132 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSMediaRule.js +41 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSOM.js +3 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSRule.js +43 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleRule.js +190 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSSupportsRule.js +36 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSValue.js +43 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSValueExpression.js +344 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/MatcherList.js +62 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/MediaList.js +61 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/StyleSheet.js +17 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/clone.js +82 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/index.js +21 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/lib/parse.js +464 -0
- package/node_modules_lambda/cssstyle/node_modules/cssom/package.json +18 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/LICENSE.txt +21 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/README.md +106 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/index.js +27 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/Function.js +42 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URL-impl.js +209 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URL.js +442 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URLSearchParams-impl.js +130 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URLSearchParams.js +472 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/VoidFunction.js +26 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/encoding.js +16 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/infra.js +26 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/percent-encoding.js +142 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/url-state-machine.js +1244 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/urlencoded.js +106 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/utils.js +190 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/package.json +58 -0
- package/node_modules_lambda/data-urls/node_modules/whatwg-url/webidl2js-wrapper.js +7 -0
- package/node_modules_lambda/escodegen/node_modules/estraverse/.jshintrc +16 -0
- package/node_modules_lambda/escodegen/node_modules/estraverse/LICENSE.BSD +19 -0
- package/node_modules_lambda/escodegen/node_modules/estraverse/README.md +153 -0
- package/node_modules_lambda/escodegen/node_modules/estraverse/estraverse.js +805 -0
- package/node_modules_lambda/escodegen/node_modules/estraverse/gulpfile.js +70 -0
- package/node_modules_lambda/escodegen/node_modules/estraverse/package.json +40 -0
- package/node_modules_lambda/escodegen/node_modules/levn/LICENSE +22 -0
- package/node_modules_lambda/escodegen/node_modules/levn/README.md +196 -0
- package/node_modules_lambda/escodegen/node_modules/levn/lib/cast.js +298 -0
- package/node_modules_lambda/escodegen/node_modules/levn/lib/coerce.js +285 -0
- package/node_modules_lambda/escodegen/node_modules/levn/lib/index.js +22 -0
- package/node_modules_lambda/escodegen/node_modules/levn/lib/parse-string.js +113 -0
- package/node_modules_lambda/escodegen/node_modules/levn/lib/parse.js +102 -0
- package/node_modules_lambda/escodegen/node_modules/levn/package.json +47 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/CHANGELOG.md +56 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/LICENSE +22 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/README.md +238 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/lib/help.js +260 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/lib/index.js +465 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/lib/util.js +54 -0
- package/node_modules_lambda/escodegen/node_modules/optionator/package.json +44 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/CHANGELOG.md +99 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/LICENSE +22 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/README.md +15 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Func.js +65 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/List.js +686 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Num.js +130 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Obj.js +154 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Str.js +92 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/index.js +178 -0
- package/node_modules_lambda/escodegen/node_modules/prelude-ls/package.json +52 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/CHANGELOG.md +301 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/LICENSE +28 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/README.md +742 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.debug.js +3234 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.js +3233 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.min.js +2 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.min.js.map +1 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/array-set.js +121 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/base64-vlq.js +140 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/base64.js +67 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/binary-search.js +111 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/mapping-list.js +79 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/quick-sort.js +114 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-map-generator.js +425 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-node.js +413 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/lib/util.js +488 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/package.json +73 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/source-map.d.ts +98 -0
- package/node_modules_lambda/escodegen/node_modules/source-map/source-map.js +8 -0
- package/node_modules_lambda/escodegen/node_modules/type-check/LICENSE +22 -0
- package/node_modules_lambda/escodegen/node_modules/type-check/README.md +210 -0
- package/node_modules_lambda/escodegen/node_modules/type-check/lib/check.js +126 -0
- package/node_modules_lambda/escodegen/node_modules/type-check/lib/index.js +16 -0
- package/node_modules_lambda/escodegen/node_modules/type-check/lib/parse-type.js +196 -0
- package/node_modules_lambda/escodegen/node_modules/type-check/package.json +40 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/.github/dependabot.yml +11 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/Changelog.md +212 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/README.md +130 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-codec.js +597 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-data.js +188 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/internal.js +198 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data.js +179 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf16.js +197 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf32.js +319 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/index.d.ts +41 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/index.js +180 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/streams.js +109 -0
- package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/package.json +44 -0
- package/package.json +1 -1
package/dist/wysiwyg.mjs
CHANGED
|
@@ -19752,7 +19752,7 @@ class NodeFactory {
|
|
|
19752
19752
|
return { type, attrs };
|
|
19753
19753
|
}
|
|
19754
19754
|
static populateAllDevices(value) {
|
|
19755
|
-
return { mobile:
|
|
19755
|
+
return { mobile: null, tablet: value, desktop: value };
|
|
19756
19756
|
}
|
|
19757
19757
|
}
|
|
19758
19758
|
const dataStorage = /* @__PURE__ */ new WeakMap();
|
|
@@ -23291,8 +23291,7 @@ const FontSize = Mark.create({
|
|
|
23291
23291
|
return computed(() => unref(preset)[unref(device)].font_size.replace("px", ""));
|
|
23292
23292
|
}),
|
|
23293
23293
|
applyFontSize: createCommand(({ commands: commands2 }, value) => {
|
|
23294
|
-
|
|
23295
|
-
commands2.setMark(this.name, { [device]: value });
|
|
23294
|
+
commands2.setMark(this.name, { desktop: value, tablet: value, mobile: null });
|
|
23296
23295
|
}),
|
|
23297
23296
|
increaseFontSize: createCommand(({ commands: commands2 }) => {
|
|
23298
23297
|
const size2 = Number(unref(commands2.getFontSize()));
|
|
@@ -23331,7 +23330,7 @@ const FontSize = Mark.create({
|
|
|
23331
23330
|
style: "font-size",
|
|
23332
23331
|
getAttrs: (input) => {
|
|
23333
23332
|
const value = parseSize(input);
|
|
23334
|
-
return { desktop: value, tablet: value, mobile:
|
|
23333
|
+
return { desktop: value, tablet: value, mobile: null };
|
|
23335
23334
|
}
|
|
23336
23335
|
}
|
|
23337
23336
|
];
|
|
@@ -23648,16 +23647,12 @@ const Alignment = Extension.create({
|
|
|
23648
23647
|
parseHTML({ style: style2 }) {
|
|
23649
23648
|
const textAlign = convertAlignment(style2.textAlign);
|
|
23650
23649
|
if (textAlign) {
|
|
23651
|
-
return {
|
|
23652
|
-
desktop: textAlign,
|
|
23653
|
-
tablet: textAlign,
|
|
23654
|
-
mobile: textAlign
|
|
23655
|
-
};
|
|
23650
|
+
return { desktop: textAlign, tablet: textAlign, mobile: null };
|
|
23656
23651
|
}
|
|
23657
|
-
const mobile =
|
|
23652
|
+
const mobile = null;
|
|
23658
23653
|
const tablet = style2.getPropertyValue("--zw-text-align-tablet") || null;
|
|
23659
23654
|
const desktop = style2.getPropertyValue("--zw-text-align-desktop") || null;
|
|
23660
|
-
if (!
|
|
23655
|
+
if (!tablet && !desktop)
|
|
23661
23656
|
return null;
|
|
23662
23657
|
return { desktop, tablet, mobile };
|
|
23663
23658
|
},
|
|
@@ -23677,8 +23672,7 @@ const Alignment = Extension.create({
|
|
|
23677
23672
|
addCommands() {
|
|
23678
23673
|
return {
|
|
23679
23674
|
applyAlignment: createCommand(({ commands: commands2 }, value) => {
|
|
23680
|
-
|
|
23681
|
-
commands2.setBlockAttributes(this.name, { [device]: value }, DEFAULTS$1);
|
|
23675
|
+
commands2.setBlockAttributes(this.name, { desktop: value, tablet: value, mobile: null }, DEFAULTS$1);
|
|
23682
23676
|
}),
|
|
23683
23677
|
getAlignment: createCommand(({ commands: commands2 }) => {
|
|
23684
23678
|
const attribute = commands2.getBlockAttributes(this.name, DEFAULTS$1);
|
|
@@ -23719,7 +23713,7 @@ const LineHeight = Extension.create({
|
|
|
23719
23713
|
isRequired: false,
|
|
23720
23714
|
parseHTML: (element) => {
|
|
23721
23715
|
if (element.matches('[style*="--zw-line-height"]')) {
|
|
23722
|
-
const mobile =
|
|
23716
|
+
const mobile = null;
|
|
23723
23717
|
const tablet = element.style.getPropertyValue("--zw-line-height-tablet") || null;
|
|
23724
23718
|
const desktop = element.style.getPropertyValue("--zw-line-height-desktop") || null;
|
|
23725
23719
|
return { mobile, tablet, desktop };
|
|
@@ -23729,7 +23723,7 @@ const LineHeight = Extension.create({
|
|
|
23729
23723
|
return null;
|
|
23730
23724
|
const wrapperEl = unref(this.options.wrapperRef);
|
|
23731
23725
|
const converted = convertLineHeight(value, element, wrapperEl);
|
|
23732
|
-
return { desktop: converted, tablet: converted, mobile:
|
|
23726
|
+
return { desktop: converted, tablet: converted, mobile: null };
|
|
23733
23727
|
},
|
|
23734
23728
|
renderHTML(attrs) {
|
|
23735
23729
|
if (!attrs.line_height)
|
|
@@ -23762,8 +23756,7 @@ const LineHeight = Extension.create({
|
|
|
23762
23756
|
return computed(() => unref(preset)[unref(device)].line_height);
|
|
23763
23757
|
}),
|
|
23764
23758
|
applyLineHeight: createCommand(({ commands: commands2 }, value) => {
|
|
23765
|
-
|
|
23766
|
-
commands2.setBlockAttributes(this.name, { [device]: value }, DEFAULTS);
|
|
23759
|
+
commands2.setBlockAttributes(this.name, { desktop: value, tablet: value, mobile: null }, DEFAULTS);
|
|
23767
23760
|
})
|
|
23768
23761
|
};
|
|
23769
23762
|
}
|
|
@@ -23,14 +23,13 @@ export const Alignment = Extension.create({
|
|
|
23
23
|
const textAlign = convertAlignment(style.textAlign);
|
|
24
24
|
|
|
25
25
|
if (textAlign) {
|
|
26
|
-
return {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
26
|
+
// return { desktop: textAlign, tablet: textAlign, mobile: textAlign };
|
|
27
|
+
|
|
28
|
+
// Temporary until release BUILDER_MODES
|
|
29
|
+
return { desktop: textAlign, tablet: textAlign, mobile: null };
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
const mobile = style.getPropertyValue('--zw-text-align-mobile') || null;
|
|
32
|
+
const mobile = null; //style.getPropertyValue('--zw-text-align-mobile') || null;
|
|
34
33
|
const tablet = style.getPropertyValue('--zw-text-align-tablet') || null;
|
|
35
34
|
const desktop = style.getPropertyValue('--zw-text-align-desktop') || null;
|
|
36
35
|
|
|
@@ -56,9 +55,12 @@ export const Alignment = Extension.create({
|
|
|
56
55
|
addCommands() {
|
|
57
56
|
return {
|
|
58
57
|
applyAlignment: createCommand(({ commands }, value) => {
|
|
59
|
-
const device = unref(commands.getDevice());
|
|
58
|
+
// const device = unref(commands.getDevice());
|
|
59
|
+
//
|
|
60
|
+
// commands.setBlockAttributes(this.name, { [device]: value }, DEFAULTS);
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
// Temporary until release BUILDER_MODES
|
|
63
|
+
commands.setBlockAttributes(this.name, { desktop: value, tablet: value, mobile: null }, DEFAULTS);
|
|
62
64
|
}),
|
|
63
65
|
|
|
64
66
|
getAlignment: createCommand(({ commands }) => {
|
|
@@ -36,9 +36,12 @@ export const FontSize = Mark.create({
|
|
|
36
36
|
}),
|
|
37
37
|
|
|
38
38
|
applyFontSize: createCommand(({ commands }, value) => {
|
|
39
|
-
const device = unref(commands.getDevice());
|
|
39
|
+
// const device = unref(commands.getDevice());
|
|
40
40
|
|
|
41
|
-
commands.setMark(this.name, { [device]: value });
|
|
41
|
+
// commands.setMark(this.name, { [device]: value });
|
|
42
|
+
|
|
43
|
+
// Temporary until release BUILDER_MODES
|
|
44
|
+
commands.setMark(this.name, { desktop: value, tablet: value, mobile: null });
|
|
42
45
|
}),
|
|
43
46
|
|
|
44
47
|
increaseFontSize: createCommand(({ commands }) => {
|
|
@@ -88,7 +91,9 @@ export const FontSize = Mark.create({
|
|
|
88
91
|
getAttrs: (input) => {
|
|
89
92
|
const value = parseSize(input);
|
|
90
93
|
|
|
91
|
-
return { desktop: value, tablet: value, mobile: value };
|
|
94
|
+
// return { desktop: value, tablet: value, mobile: value };
|
|
95
|
+
// Temporary until release BUILDER_MODES
|
|
96
|
+
return { desktop: value, tablet: value, mobile: null };
|
|
92
97
|
}
|
|
93
98
|
}
|
|
94
99
|
];
|
|
@@ -22,7 +22,7 @@ export const LineHeight = Extension.create({
|
|
|
22
22
|
|
|
23
23
|
parseHTML: (element) => {
|
|
24
24
|
if (element.matches('[style*="--zw-line-height"]')) {
|
|
25
|
-
const mobile = element.style.getPropertyValue('--zw-line-height-mobile') || null;
|
|
25
|
+
const mobile = null; // element.style.getPropertyValue('--zw-line-height-mobile') || null;
|
|
26
26
|
const tablet = element.style.getPropertyValue('--zw-line-height-tablet') || null;
|
|
27
27
|
const desktop = element.style.getPropertyValue('--zw-line-height-desktop') || null;
|
|
28
28
|
|
|
@@ -36,7 +36,10 @@ export const LineHeight = Extension.create({
|
|
|
36
36
|
const wrapperEl = unref(this.options.wrapperRef);
|
|
37
37
|
const converted = convertLineHeight(value, element, wrapperEl);
|
|
38
38
|
|
|
39
|
-
return { desktop: converted, tablet: converted, mobile: converted };
|
|
39
|
+
// return { desktop: converted, tablet: converted, mobile: converted };
|
|
40
|
+
|
|
41
|
+
// Temporary until release BUILDER_MODES
|
|
42
|
+
return { desktop: converted, tablet: converted, mobile: null };
|
|
40
43
|
},
|
|
41
44
|
|
|
42
45
|
renderHTML(attrs) {
|
|
@@ -72,9 +75,12 @@ export const LineHeight = Extension.create({
|
|
|
72
75
|
}),
|
|
73
76
|
|
|
74
77
|
applyLineHeight: createCommand(({ commands }, value) => {
|
|
75
|
-
const device = unref(commands.getDevice());
|
|
78
|
+
// const device = unref(commands.getDevice());
|
|
79
|
+
//
|
|
80
|
+
// commands.setBlockAttributes(this.name, { [device]: value }, DEFAULTS);
|
|
76
81
|
|
|
77
|
-
|
|
82
|
+
// Temporary until release BUILDER_MODES
|
|
83
|
+
commands.setBlockAttributes(this.name, { desktop: value, tablet: value, mobile: null }, DEFAULTS);
|
|
78
84
|
})
|
|
79
85
|
};
|
|
80
86
|
}
|
|
@@ -8,7 +8,7 @@ Object {
|
|
|
8
8
|
"alignment": Object {
|
|
9
9
|
"desktop": "right",
|
|
10
10
|
"mobile": null,
|
|
11
|
-
"tablet":
|
|
11
|
+
"tablet": "right",
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
"content": Array [
|
|
@@ -31,7 +31,7 @@ Object {
|
|
|
31
31
|
"attrs": Object {
|
|
32
32
|
"alignment": Object {
|
|
33
33
|
"desktop": "right",
|
|
34
|
-
"mobile":
|
|
34
|
+
"mobile": null,
|
|
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": null,
|
|
59
59
|
"tablet": "center",
|
|
60
60
|
},
|
|
61
61
|
},
|
|
@@ -11,7 +11,7 @@ Object {
|
|
|
11
11
|
"attrs": Object {
|
|
12
12
|
"desktop": "16",
|
|
13
13
|
"mobile": null,
|
|
14
|
-
"tablet":
|
|
14
|
+
"tablet": "16",
|
|
15
15
|
},
|
|
16
16
|
"type": "font_size",
|
|
17
17
|
},
|
|
@@ -38,7 +38,7 @@ Object {
|
|
|
38
38
|
"attrs": Object {
|
|
39
39
|
"desktop": "13",
|
|
40
40
|
"mobile": null,
|
|
41
|
-
"tablet":
|
|
41
|
+
"tablet": "13",
|
|
42
42
|
},
|
|
43
43
|
"type": "font_size",
|
|
44
44
|
},
|
|
@@ -65,7 +65,7 @@ Object {
|
|
|
65
65
|
"attrs": Object {
|
|
66
66
|
"desktop": "15",
|
|
67
67
|
"mobile": null,
|
|
68
|
-
"tablet":
|
|
68
|
+
"tablet": "15",
|
|
69
69
|
},
|
|
70
70
|
"type": "font_size",
|
|
71
71
|
},
|
|
@@ -92,7 +92,7 @@ Object {
|
|
|
92
92
|
"attrs": Object {
|
|
93
93
|
"desktop": "5",
|
|
94
94
|
"mobile": null,
|
|
95
|
-
"tablet":
|
|
95
|
+
"tablet": "5",
|
|
96
96
|
},
|
|
97
97
|
"type": "font_size",
|
|
98
98
|
},
|
|
@@ -119,7 +119,7 @@ Object {
|
|
|
119
119
|
"attrs": Object {
|
|
120
120
|
"desktop": "20",
|
|
121
121
|
"mobile": null,
|
|
122
|
-
"tablet":
|
|
122
|
+
"tablet": "20",
|
|
123
123
|
},
|
|
124
124
|
"type": "font_size",
|
|
125
125
|
},
|
|
@@ -145,7 +145,7 @@ Object {
|
|
|
145
145
|
Object {
|
|
146
146
|
"attrs": Object {
|
|
147
147
|
"desktop": "24",
|
|
148
|
-
"mobile":
|
|
148
|
+
"mobile": null,
|
|
149
149
|
"tablet": "24",
|
|
150
150
|
},
|
|
151
151
|
"type": "font_size",
|
|
@@ -203,7 +203,7 @@ Object {
|
|
|
203
203
|
Object {
|
|
204
204
|
"attrs": Object {
|
|
205
205
|
"desktop": "24",
|
|
206
|
-
"mobile":
|
|
206
|
+
"mobile": null,
|
|
207
207
|
"tablet": "24",
|
|
208
208
|
},
|
|
209
209
|
"type": "font_size",
|
|
@@ -234,7 +234,7 @@ Object {
|
|
|
234
234
|
Object {
|
|
235
235
|
"attrs": Object {
|
|
236
236
|
"desktop": "20",
|
|
237
|
-
"mobile":
|
|
237
|
+
"mobile": null,
|
|
238
238
|
"tablet": "20",
|
|
239
239
|
},
|
|
240
240
|
"type": "font_size",
|
|
@@ -248,7 +248,7 @@ Object {
|
|
|
248
248
|
Object {
|
|
249
249
|
"attrs": Object {
|
|
250
250
|
"desktop": "24",
|
|
251
|
-
"mobile":
|
|
251
|
+
"mobile": null,
|
|
252
252
|
"tablet": "24",
|
|
253
253
|
},
|
|
254
254
|
"type": "font_size",
|
|
@@ -8,7 +8,7 @@ Object {
|
|
|
8
8
|
"line_height": Object {
|
|
9
9
|
"desktop": "1.41",
|
|
10
10
|
"mobile": null,
|
|
11
|
-
"tablet":
|
|
11
|
+
"tablet": "1.41",
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
"content": Array [
|
|
@@ -31,7 +31,7 @@ Object {
|
|
|
31
31
|
"attrs": Object {
|
|
32
32
|
"line_height": Object {
|
|
33
33
|
"desktop": "1.4",
|
|
34
|
-
"mobile":
|
|
34
|
+
"mobile": null,
|
|
35
35
|
"tablet": null,
|
|
36
36
|
},
|
|
37
37
|
},
|
|
@@ -55,7 +55,7 @@ Object {
|
|
|
55
55
|
"attrs": Object {
|
|
56
56
|
"line_height": Object {
|
|
57
57
|
"desktop": "1.20",
|
|
58
|
-
"mobile":
|
|
58
|
+
"mobile": null,
|
|
59
59
|
"tablet": "1.20",
|
|
60
60
|
},
|
|
61
61
|
},
|
|
@@ -79,7 +79,7 @@ Object {
|
|
|
79
79
|
"attrs": Object {
|
|
80
80
|
"line_height": Object {
|
|
81
81
|
"desktop": "1.20",
|
|
82
|
-
"mobile":
|
|
82
|
+
"mobile": null,
|
|
83
83
|
"tablet": "1.20",
|
|
84
84
|
},
|
|
85
85
|
},
|
|
@@ -103,7 +103,7 @@ Object {
|
|
|
103
103
|
"attrs": Object {
|
|
104
104
|
"line_height": Object {
|
|
105
105
|
"desktop": "1.2",
|
|
106
|
-
"mobile":
|
|
106
|
+
"mobile": null,
|
|
107
107
|
"tablet": "1.2",
|
|
108
108
|
},
|
|
109
109
|
},
|
|
@@ -66,6 +66,9 @@ export class NodeFactory {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
static populateAllDevices(value) {
|
|
69
|
-
return { mobile: value, tablet: value, desktop: value };
|
|
69
|
+
// return { mobile: value, tablet: value, desktop: value };
|
|
70
|
+
|
|
71
|
+
// Temporary until release BUILDER_MODES
|
|
72
|
+
return { mobile: null, tablet: value, desktop: value };
|
|
70
73
|
}
|
|
71
74
|
}
|