@gem-sdk/components 2.6.0-staging.29 → 2.6.0-staging.31
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.
|
@@ -32,6 +32,7 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
32
32
|
const imageWidth = core.makeStyleResponsive('w', core.getWidthByShapeGlobalSize(shape));
|
|
33
33
|
const imageHeight = core.makeStyleResponsive('h', core.getHeightByShapeGlobalSize(shape));
|
|
34
34
|
const imageFlexGrowClass = core.getFlexGrowClassByShapeGlobalSize(shape);
|
|
35
|
+
const testCLass = pageContext?.enableLazyLoadImage ? 'has_class' : 'do_not_have_class';
|
|
35
36
|
return core.template`<div
|
|
36
37
|
${{
|
|
37
38
|
...builderAttrs
|
|
@@ -45,6 +46,7 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
45
46
|
...style,
|
|
46
47
|
...core.makeStyleResponsive('ta', styles?.align)
|
|
47
48
|
}}"
|
|
49
|
+
data-class="${testCLass}"
|
|
48
50
|
>
|
|
49
51
|
<${WrapLink}
|
|
50
52
|
class="pointer-events-auto gp-h-full gp-flex"
|
|
@@ -28,6 +28,7 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
28
28
|
const imageWidth = makeStyleResponsive('w', getWidthByShapeGlobalSize(shape));
|
|
29
29
|
const imageHeight = makeStyleResponsive('h', getHeightByShapeGlobalSize(shape));
|
|
30
30
|
const imageFlexGrowClass = getFlexGrowClassByShapeGlobalSize(shape);
|
|
31
|
+
const testCLass = pageContext?.enableLazyLoadImage ? 'has_class' : 'do_not_have_class';
|
|
31
32
|
return template`<div
|
|
32
33
|
${{
|
|
33
34
|
...builderAttrs
|
|
@@ -41,6 +42,7 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
41
42
|
...style,
|
|
42
43
|
...makeStyleResponsive('ta', styles?.align)
|
|
43
44
|
}}"
|
|
45
|
+
data-class="${testCLass}"
|
|
44
46
|
>
|
|
45
47
|
<${WrapLink}
|
|
46
48
|
class="pointer-events-auto gp-h-full gp-flex"
|