@magento/pagebuilder 8.2.0-beta.2 → 8.2.1-alpha.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.
|
@@ -38,12 +38,7 @@ test('render row with parallax initializes Jarallax', () => {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
expect(mockJarallax).toHaveBeenCalledWith(true,
|
|
42
|
-
speed: 0.75,
|
|
43
|
-
imgPosition: 'center center',
|
|
44
|
-
imgRepeat: 'repeat',
|
|
45
|
-
imgSize: 'cover'
|
|
46
|
-
});
|
|
41
|
+
expect(mockJarallax).toHaveBeenCalledWith(true, 'destroy');
|
|
47
42
|
});
|
|
48
43
|
|
|
49
44
|
test('render row with parallax initializes JarallaxVideo', () => {
|
|
@@ -99,15 +94,7 @@ test('row unmount causes Jarallax to be destroyed', () => {
|
|
|
99
94
|
});
|
|
100
95
|
|
|
101
96
|
expect(mockJarallax.mock.calls).toEqual([
|
|
102
|
-
[
|
|
103
|
-
true,
|
|
104
|
-
{
|
|
105
|
-
speed: 0.75,
|
|
106
|
-
imgPosition: 'top left',
|
|
107
|
-
imgRepeat: 'no-repeat',
|
|
108
|
-
imgSize: 'contain'
|
|
109
|
-
}
|
|
110
|
-
],
|
|
97
|
+
[true, 'destroy'],
|
|
111
98
|
[true, 'destroy']
|
|
112
99
|
]);
|
|
113
100
|
});
|
|
@@ -160,12 +160,7 @@ const Row = props => {
|
|
|
160
160
|
if (enableParallax && bgImageStyle && backgroundType !== 'video') {
|
|
161
161
|
({ jarallax } = require('jarallax'));
|
|
162
162
|
parallaxElement = backgroundElement.current;
|
|
163
|
-
jarallax(parallaxElement,
|
|
164
|
-
speed: parallaxSpeed,
|
|
165
|
-
imgSize: backgroundSize,
|
|
166
|
-
imgPosition: backgroundPosition,
|
|
167
|
-
imgRepeat: backgroundRepeat
|
|
168
|
-
});
|
|
163
|
+
jarallax(parallaxElement, 'destroy');
|
|
169
164
|
}
|
|
170
165
|
|
|
171
166
|
if (backgroundType === 'video') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magento/pagebuilder",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.1-alpha.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"homepage": "https://github.com/magento/pwa-studio/tree/main/packages/pagebuilder#readme",
|
|
35
35
|
"dependencies": {},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@magento/peregrine": "13.
|
|
38
|
-
"@magento/pwa-buildpack": "11.4.
|
|
39
|
-
"@magento/venia-ui": "10.
|
|
37
|
+
"@magento/peregrine": "13.2.1-alpha.1",
|
|
38
|
+
"@magento/pwa-buildpack": "11.4.3-alpha.1",
|
|
39
|
+
"@magento/venia-ui": "10.3.0-alpha.1",
|
|
40
40
|
"@storybook/react": "~6.3.7",
|
|
41
41
|
"jarallax": "~1.11.1",
|
|
42
42
|
"load-google-maps-api": "~2.0.1",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@apollo/client": "~3.5.0",
|
|
52
|
-
"@magento/babel-preset-peregrine": "
|
|
53
|
-
"@magento/peregrine": "13.
|
|
54
|
-
"@magento/pwa-buildpack": "11.4.
|
|
55
|
-
"@magento/venia-ui": "10.
|
|
52
|
+
"@magento/babel-preset-peregrine": "1.2.3-alpha.1",
|
|
53
|
+
"@magento/peregrine": "13.2.1-alpha.1",
|
|
54
|
+
"@magento/pwa-buildpack": "11.4.3-alpha.1",
|
|
55
|
+
"@magento/venia-ui": "10.3.0-alpha.1",
|
|
56
56
|
"jarallax": "~1.11.1",
|
|
57
57
|
"load-google-maps-api": "~2.0.1",
|
|
58
58
|
"lodash.escape": "~4.0.1",
|