@gem-sdk/core 2.0.0-dev.701 → 2.0.0-dev.704
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/cjs/helpers/backgroundImage.js +29 -83
- package/dist/cjs/helpers/third-party/appSetting.js +2 -2
- package/dist/cjs/helpers/typography.js +2 -2
- package/dist/cjs/index.js +1 -1
- package/dist/esm/helpers/backgroundImage.js +30 -84
- package/dist/esm/helpers/third-party/appSetting.js +2 -2
- package/dist/esm/helpers/typography.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +17 -19
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var makeStyle = require('./make-style.js');
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const getStyleBackgroundImage = (backgroundImage, options)=>{
|
|
6
6
|
if (!backgroundImage) {
|
|
7
7
|
return {};
|
|
8
8
|
}
|
|
@@ -20,27 +20,13 @@ const getStyleBackgroundImageByDevice = (backgroundImage, options)=>{
|
|
|
20
20
|
};
|
|
21
21
|
const getStyleBgImageSource = (backgroundImage, options)=>{
|
|
22
22
|
const bgImage = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
hover: getBgImageSourceByDevice(backgroundImage, 'desktop', 'hover', options)
|
|
26
|
-
},
|
|
27
|
-
...backgroundImage?.tablet && {
|
|
28
|
-
tablet: {
|
|
29
|
-
normal: getBgImageSourceByDevice(backgroundImage, 'tablet', 'normal', options),
|
|
30
|
-
hover: getBgImageSourceByDevice(backgroundImage, 'tablet', 'hover', options)
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
...backgroundImage?.mobile && {
|
|
34
|
-
mobile: {
|
|
35
|
-
normal: getBgImageSourceByDevice(backgroundImage, 'mobile', 'normal', options),
|
|
36
|
-
hover: getBgImageSourceByDevice(backgroundImage, 'mobile', 'hover', options)
|
|
37
|
-
}
|
|
38
|
-
}
|
|
23
|
+
normal: getBgImageSourceByDevice(backgroundImage, 'normal', options),
|
|
24
|
+
hover: getBgImageSourceByDevice(backgroundImage, 'hover', options)
|
|
39
25
|
};
|
|
40
|
-
return makeStyle.
|
|
26
|
+
return makeStyle.makeStyleState('bgi', bgImage);
|
|
41
27
|
};
|
|
42
|
-
const getBgImageSourceByDevice = (backgroundImage,
|
|
43
|
-
const stateValue = backgroundImage?.[
|
|
28
|
+
const getBgImageSourceByDevice = (backgroundImage, state, options)=>{
|
|
29
|
+
const stateValue = backgroundImage?.[state];
|
|
44
30
|
const backupFileKey = stateValue?.image?.backupFileKey;
|
|
45
31
|
const storage = stateValue?.image?.storage;
|
|
46
32
|
let imageByDevice = stateValue?.image?.src;
|
|
@@ -64,90 +50,50 @@ const getBgImageSourceByDevice = (backgroundImage, device, state, options)=>{
|
|
|
64
50
|
};
|
|
65
51
|
const getStyleBgImagePosition = (backgroundImage)=>{
|
|
66
52
|
const bgPosition = {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
hover: getBgImagePositionByDevice(backgroundImage, 'desktop', 'hover')
|
|
70
|
-
},
|
|
71
|
-
tablet: {
|
|
72
|
-
normal: getBgImagePositionByDevice(backgroundImage, 'tablet', 'normal'),
|
|
73
|
-
hover: getBgImagePositionByDevice(backgroundImage, 'tablet', 'hover')
|
|
74
|
-
},
|
|
75
|
-
mobile: {
|
|
76
|
-
normal: getBgImagePositionByDevice(backgroundImage, 'mobile', 'normal'),
|
|
77
|
-
hover: getBgImagePositionByDevice(backgroundImage, 'mobile', 'hover')
|
|
78
|
-
}
|
|
53
|
+
normal: getBgImagePositionByDevice(backgroundImage, 'normal'),
|
|
54
|
+
hover: getBgImagePositionByDevice(backgroundImage, 'hover')
|
|
79
55
|
};
|
|
80
|
-
return makeStyle.
|
|
56
|
+
return makeStyle.makeStyleState('bgp', bgPosition);
|
|
81
57
|
};
|
|
82
|
-
const getBgImagePositionByDevice = (backgroundImage,
|
|
83
|
-
const position = backgroundImage?.[
|
|
58
|
+
const getBgImagePositionByDevice = (backgroundImage, state)=>{
|
|
59
|
+
const position = backgroundImage?.[state]?.position;
|
|
84
60
|
return position && `${position.x}% ${position.y}%`;
|
|
85
61
|
};
|
|
86
62
|
const getStyleBgImageSize = (backgroundImage)=>{
|
|
87
63
|
const bgSize = {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
hover: getBgImageSizeByDevice(backgroundImage, 'desktop', 'hover')
|
|
91
|
-
},
|
|
92
|
-
tablet: {
|
|
93
|
-
normal: getBgImageSizeByDevice(backgroundImage, 'tablet', 'normal'),
|
|
94
|
-
hover: getBgImageSizeByDevice(backgroundImage, 'tablet', 'hover')
|
|
95
|
-
},
|
|
96
|
-
mobile: {
|
|
97
|
-
normal: getBgImageSizeByDevice(backgroundImage, 'mobile', 'normal'),
|
|
98
|
-
hover: getBgImageSizeByDevice(backgroundImage, 'mobile', 'hover')
|
|
99
|
-
}
|
|
64
|
+
normal: getBgImageSizeByDevice(backgroundImage, 'normal'),
|
|
65
|
+
hover: getBgImageSizeByDevice(backgroundImage, 'hover')
|
|
100
66
|
};
|
|
101
|
-
return makeStyle.
|
|
67
|
+
return makeStyle.makeStyleState('bgs', bgSize);
|
|
102
68
|
};
|
|
103
|
-
const getBgImageSizeByDevice = (backgroundImage,
|
|
104
|
-
return backgroundImage?.[
|
|
69
|
+
const getBgImageSizeByDevice = (backgroundImage, state)=>{
|
|
70
|
+
return backgroundImage?.[state]?.size;
|
|
105
71
|
};
|
|
106
72
|
const getStyleBgImageRepeat = (backgroundImage)=>{
|
|
107
73
|
const bgRepeat = {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
hover: getBgImageRepeatByDevice(backgroundImage, 'desktop', 'hover')
|
|
111
|
-
},
|
|
112
|
-
tablet: {
|
|
113
|
-
normal: getBgImageRepeatByDevice(backgroundImage, 'tablet', 'normal'),
|
|
114
|
-
hover: getBgImageRepeatByDevice(backgroundImage, 'tablet', 'hover')
|
|
115
|
-
},
|
|
116
|
-
mobile: {
|
|
117
|
-
normal: getBgImageRepeatByDevice(backgroundImage, 'mobile', 'normal'),
|
|
118
|
-
hover: getBgImageRepeatByDevice(backgroundImage, 'mobile', 'hover')
|
|
119
|
-
}
|
|
74
|
+
normal: getBgImageRepeatByDevice(backgroundImage, 'normal'),
|
|
75
|
+
hover: getBgImageRepeatByDevice(backgroundImage, 'hover')
|
|
120
76
|
};
|
|
121
|
-
return makeStyle.
|
|
77
|
+
return makeStyle.makeStyleState('bgr', bgRepeat);
|
|
122
78
|
};
|
|
123
|
-
const getBgImageRepeatByDevice = (backgroundImage,
|
|
124
|
-
return backgroundImage?.[
|
|
79
|
+
const getBgImageRepeatByDevice = (backgroundImage, state)=>{
|
|
80
|
+
return backgroundImage?.[state]?.repeat;
|
|
125
81
|
};
|
|
126
82
|
const getStyleBgImageAttachment = (backgroundImage)=>{
|
|
127
83
|
const bgAttachment = {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
hover: getBgImageAttachmentByDevice(backgroundImage, 'desktop', 'hover')
|
|
131
|
-
},
|
|
132
|
-
tablet: {
|
|
133
|
-
normal: getBgImageAttachmentByDevice(backgroundImage, 'tablet', 'normal'),
|
|
134
|
-
hover: getBgImageAttachmentByDevice(backgroundImage, 'tablet', 'hover')
|
|
135
|
-
},
|
|
136
|
-
mobile: {
|
|
137
|
-
normal: getBgImageAttachmentByDevice(backgroundImage, 'mobile', 'normal'),
|
|
138
|
-
hover: getBgImageAttachmentByDevice(backgroundImage, 'mobile', 'hover')
|
|
139
|
-
}
|
|
84
|
+
normal: getBgImageAttachmentByDevice(backgroundImage, 'normal'),
|
|
85
|
+
hover: getBgImageAttachmentByDevice(backgroundImage, 'hover')
|
|
140
86
|
};
|
|
141
|
-
return makeStyle.
|
|
87
|
+
return makeStyle.makeStyleState('bga', bgAttachment);
|
|
142
88
|
};
|
|
143
|
-
const getBgImageAttachmentByDevice = (backgroundImage,
|
|
144
|
-
return backgroundImage?.[
|
|
89
|
+
const getBgImageAttachmentByDevice = (backgroundImage, state)=>{
|
|
90
|
+
return backgroundImage?.[state]?.attachment;
|
|
145
91
|
};
|
|
146
92
|
const composeBackgroundImageCss = (config, options = {})=>{
|
|
147
93
|
if (!config) return undefined;
|
|
148
|
-
const { device = 'desktop', state = 'normal', useLiquid = false } = options;
|
|
94
|
+
const { device = 'desktop', state = 'normal', useLiquid = false, responsive } = options;
|
|
149
95
|
const styles = [];
|
|
150
|
-
const bgConfig = config?.[device]?.[state];
|
|
96
|
+
const bgConfig = responsive ? config?.[device]?.[state] : config?.[state];
|
|
151
97
|
if (!bgConfig) return '';
|
|
152
98
|
// Handle background image source
|
|
153
99
|
if (bgConfig.image?.src) {
|
|
@@ -183,5 +129,5 @@ const composeBackgroundImageCss = (config, options = {})=>{
|
|
|
183
129
|
|
|
184
130
|
exports.composeBackgroundImageCss = composeBackgroundImageCss;
|
|
185
131
|
exports.getBgImageSourceByDevice = getBgImageSourceByDevice;
|
|
186
|
-
exports.
|
|
132
|
+
exports.getStyleBackgroundImage = getStyleBackgroundImage;
|
|
187
133
|
exports.getStyleBgImageSource = getStyleBgImageSource;
|
|
@@ -53,10 +53,10 @@ const composeTextShadowCss = (textShadow)=>{
|
|
|
53
53
|
const yOffset = Math.round(Math.sin(angleInRadians) * distance * 100) / 100;
|
|
54
54
|
return `${xOffset}px ${yOffset}px ${textShadow?.blur ?? '0'} ${textShadow.color}`;
|
|
55
55
|
};
|
|
56
|
-
const composeTextHoverColorCss = (
|
|
56
|
+
const composeTextHoverColorCss = (colorHoverConfig, isImportant)=>{
|
|
57
57
|
if (colorHoverConfig) {
|
|
58
58
|
const composeImportant = isImportant ? '!important' : '';
|
|
59
|
-
const color = colorHoverConfig
|
|
59
|
+
const color = colorHoverConfig.hover;
|
|
60
60
|
return `${color ? `color: ${color} ${composeImportant}` : ''}`;
|
|
61
61
|
}
|
|
62
62
|
};
|
package/dist/cjs/index.js
CHANGED
|
@@ -232,7 +232,7 @@ exports.getStyleBgColor = background.getStyleBgColor;
|
|
|
232
232
|
exports.makeFixedBgAttachment = background.makeFixedBgAttachment;
|
|
233
233
|
exports.composeBackgroundImageCss = backgroundImage.composeBackgroundImageCss;
|
|
234
234
|
exports.getBgImageSourceByDevice = backgroundImage.getBgImageSourceByDevice;
|
|
235
|
-
exports.
|
|
235
|
+
exports.getStyleBackgroundImage = backgroundImage.getStyleBackgroundImage;
|
|
236
236
|
exports.getStyleBgImageSource = backgroundImage.getStyleBgImageSource;
|
|
237
237
|
exports.composeTextColorCss = colors.composeTextColorCss;
|
|
238
238
|
exports.getGlobalColorCSSProp = colors.getGlobalColorCSSProp;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { makeStyleState } from './make-style.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const getStyleBackgroundImage = (backgroundImage, options)=>{
|
|
4
4
|
if (!backgroundImage) {
|
|
5
5
|
return {};
|
|
6
6
|
}
|
|
@@ -18,27 +18,13 @@ const getStyleBackgroundImageByDevice = (backgroundImage, options)=>{
|
|
|
18
18
|
};
|
|
19
19
|
const getStyleBgImageSource = (backgroundImage, options)=>{
|
|
20
20
|
const bgImage = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
hover: getBgImageSourceByDevice(backgroundImage, 'desktop', 'hover', options)
|
|
24
|
-
},
|
|
25
|
-
...backgroundImage?.tablet && {
|
|
26
|
-
tablet: {
|
|
27
|
-
normal: getBgImageSourceByDevice(backgroundImage, 'tablet', 'normal', options),
|
|
28
|
-
hover: getBgImageSourceByDevice(backgroundImage, 'tablet', 'hover', options)
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
...backgroundImage?.mobile && {
|
|
32
|
-
mobile: {
|
|
33
|
-
normal: getBgImageSourceByDevice(backgroundImage, 'mobile', 'normal', options),
|
|
34
|
-
hover: getBgImageSourceByDevice(backgroundImage, 'mobile', 'hover', options)
|
|
35
|
-
}
|
|
36
|
-
}
|
|
21
|
+
normal: getBgImageSourceByDevice(backgroundImage, 'normal', options),
|
|
22
|
+
hover: getBgImageSourceByDevice(backgroundImage, 'hover', options)
|
|
37
23
|
};
|
|
38
|
-
return
|
|
24
|
+
return makeStyleState('bgi', bgImage);
|
|
39
25
|
};
|
|
40
|
-
const getBgImageSourceByDevice = (backgroundImage,
|
|
41
|
-
const stateValue = backgroundImage?.[
|
|
26
|
+
const getBgImageSourceByDevice = (backgroundImage, state, options)=>{
|
|
27
|
+
const stateValue = backgroundImage?.[state];
|
|
42
28
|
const backupFileKey = stateValue?.image?.backupFileKey;
|
|
43
29
|
const storage = stateValue?.image?.storage;
|
|
44
30
|
let imageByDevice = stateValue?.image?.src;
|
|
@@ -62,90 +48,50 @@ const getBgImageSourceByDevice = (backgroundImage, device, state, options)=>{
|
|
|
62
48
|
};
|
|
63
49
|
const getStyleBgImagePosition = (backgroundImage)=>{
|
|
64
50
|
const bgPosition = {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
hover: getBgImagePositionByDevice(backgroundImage, 'desktop', 'hover')
|
|
68
|
-
},
|
|
69
|
-
tablet: {
|
|
70
|
-
normal: getBgImagePositionByDevice(backgroundImage, 'tablet', 'normal'),
|
|
71
|
-
hover: getBgImagePositionByDevice(backgroundImage, 'tablet', 'hover')
|
|
72
|
-
},
|
|
73
|
-
mobile: {
|
|
74
|
-
normal: getBgImagePositionByDevice(backgroundImage, 'mobile', 'normal'),
|
|
75
|
-
hover: getBgImagePositionByDevice(backgroundImage, 'mobile', 'hover')
|
|
76
|
-
}
|
|
51
|
+
normal: getBgImagePositionByDevice(backgroundImage, 'normal'),
|
|
52
|
+
hover: getBgImagePositionByDevice(backgroundImage, 'hover')
|
|
77
53
|
};
|
|
78
|
-
return
|
|
54
|
+
return makeStyleState('bgp', bgPosition);
|
|
79
55
|
};
|
|
80
|
-
const getBgImagePositionByDevice = (backgroundImage,
|
|
81
|
-
const position = backgroundImage?.[
|
|
56
|
+
const getBgImagePositionByDevice = (backgroundImage, state)=>{
|
|
57
|
+
const position = backgroundImage?.[state]?.position;
|
|
82
58
|
return position && `${position.x}% ${position.y}%`;
|
|
83
59
|
};
|
|
84
60
|
const getStyleBgImageSize = (backgroundImage)=>{
|
|
85
61
|
const bgSize = {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
hover: getBgImageSizeByDevice(backgroundImage, 'desktop', 'hover')
|
|
89
|
-
},
|
|
90
|
-
tablet: {
|
|
91
|
-
normal: getBgImageSizeByDevice(backgroundImage, 'tablet', 'normal'),
|
|
92
|
-
hover: getBgImageSizeByDevice(backgroundImage, 'tablet', 'hover')
|
|
93
|
-
},
|
|
94
|
-
mobile: {
|
|
95
|
-
normal: getBgImageSizeByDevice(backgroundImage, 'mobile', 'normal'),
|
|
96
|
-
hover: getBgImageSizeByDevice(backgroundImage, 'mobile', 'hover')
|
|
97
|
-
}
|
|
62
|
+
normal: getBgImageSizeByDevice(backgroundImage, 'normal'),
|
|
63
|
+
hover: getBgImageSizeByDevice(backgroundImage, 'hover')
|
|
98
64
|
};
|
|
99
|
-
return
|
|
65
|
+
return makeStyleState('bgs', bgSize);
|
|
100
66
|
};
|
|
101
|
-
const getBgImageSizeByDevice = (backgroundImage,
|
|
102
|
-
return backgroundImage?.[
|
|
67
|
+
const getBgImageSizeByDevice = (backgroundImage, state)=>{
|
|
68
|
+
return backgroundImage?.[state]?.size;
|
|
103
69
|
};
|
|
104
70
|
const getStyleBgImageRepeat = (backgroundImage)=>{
|
|
105
71
|
const bgRepeat = {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
hover: getBgImageRepeatByDevice(backgroundImage, 'desktop', 'hover')
|
|
109
|
-
},
|
|
110
|
-
tablet: {
|
|
111
|
-
normal: getBgImageRepeatByDevice(backgroundImage, 'tablet', 'normal'),
|
|
112
|
-
hover: getBgImageRepeatByDevice(backgroundImage, 'tablet', 'hover')
|
|
113
|
-
},
|
|
114
|
-
mobile: {
|
|
115
|
-
normal: getBgImageRepeatByDevice(backgroundImage, 'mobile', 'normal'),
|
|
116
|
-
hover: getBgImageRepeatByDevice(backgroundImage, 'mobile', 'hover')
|
|
117
|
-
}
|
|
72
|
+
normal: getBgImageRepeatByDevice(backgroundImage, 'normal'),
|
|
73
|
+
hover: getBgImageRepeatByDevice(backgroundImage, 'hover')
|
|
118
74
|
};
|
|
119
|
-
return
|
|
75
|
+
return makeStyleState('bgr', bgRepeat);
|
|
120
76
|
};
|
|
121
|
-
const getBgImageRepeatByDevice = (backgroundImage,
|
|
122
|
-
return backgroundImage?.[
|
|
77
|
+
const getBgImageRepeatByDevice = (backgroundImage, state)=>{
|
|
78
|
+
return backgroundImage?.[state]?.repeat;
|
|
123
79
|
};
|
|
124
80
|
const getStyleBgImageAttachment = (backgroundImage)=>{
|
|
125
81
|
const bgAttachment = {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
hover: getBgImageAttachmentByDevice(backgroundImage, 'desktop', 'hover')
|
|
129
|
-
},
|
|
130
|
-
tablet: {
|
|
131
|
-
normal: getBgImageAttachmentByDevice(backgroundImage, 'tablet', 'normal'),
|
|
132
|
-
hover: getBgImageAttachmentByDevice(backgroundImage, 'tablet', 'hover')
|
|
133
|
-
},
|
|
134
|
-
mobile: {
|
|
135
|
-
normal: getBgImageAttachmentByDevice(backgroundImage, 'mobile', 'normal'),
|
|
136
|
-
hover: getBgImageAttachmentByDevice(backgroundImage, 'mobile', 'hover')
|
|
137
|
-
}
|
|
82
|
+
normal: getBgImageAttachmentByDevice(backgroundImage, 'normal'),
|
|
83
|
+
hover: getBgImageAttachmentByDevice(backgroundImage, 'hover')
|
|
138
84
|
};
|
|
139
|
-
return
|
|
85
|
+
return makeStyleState('bga', bgAttachment);
|
|
140
86
|
};
|
|
141
|
-
const getBgImageAttachmentByDevice = (backgroundImage,
|
|
142
|
-
return backgroundImage?.[
|
|
87
|
+
const getBgImageAttachmentByDevice = (backgroundImage, state)=>{
|
|
88
|
+
return backgroundImage?.[state]?.attachment;
|
|
143
89
|
};
|
|
144
90
|
const composeBackgroundImageCss = (config, options = {})=>{
|
|
145
91
|
if (!config) return undefined;
|
|
146
|
-
const { device = 'desktop', state = 'normal', useLiquid = false } = options;
|
|
92
|
+
const { device = 'desktop', state = 'normal', useLiquid = false, responsive } = options;
|
|
147
93
|
const styles = [];
|
|
148
|
-
const bgConfig = config?.[device]?.[state];
|
|
94
|
+
const bgConfig = responsive ? config?.[device]?.[state] : config?.[state];
|
|
149
95
|
if (!bgConfig) return '';
|
|
150
96
|
// Handle background image source
|
|
151
97
|
if (bgConfig.image?.src) {
|
|
@@ -179,4 +125,4 @@ const composeBackgroundImageCss = (config, options = {})=>{
|
|
|
179
125
|
return styles.join('\n ');
|
|
180
126
|
};
|
|
181
127
|
|
|
182
|
-
export { composeBackgroundImageCss, getBgImageSourceByDevice,
|
|
128
|
+
export { composeBackgroundImageCss, getBgImageSourceByDevice, getStyleBackgroundImage, getStyleBgImageSource };
|
|
@@ -51,10 +51,10 @@ const composeTextShadowCss = (textShadow)=>{
|
|
|
51
51
|
const yOffset = Math.round(Math.sin(angleInRadians) * distance * 100) / 100;
|
|
52
52
|
return `${xOffset}px ${yOffset}px ${textShadow?.blur ?? '0'} ${textShadow.color}`;
|
|
53
53
|
};
|
|
54
|
-
const composeTextHoverColorCss = (
|
|
54
|
+
const composeTextHoverColorCss = (colorHoverConfig, isImportant)=>{
|
|
55
55
|
if (colorHoverConfig) {
|
|
56
56
|
const composeImportant = isImportant ? '!important' : '';
|
|
57
|
-
const color = colorHoverConfig
|
|
57
|
+
const color = colorHoverConfig.hover;
|
|
58
58
|
return `${color ? `color: ${color} ${composeImportant}` : ''}`;
|
|
59
59
|
}
|
|
60
60
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -60,7 +60,7 @@ export { gtag };
|
|
|
60
60
|
import * as tiktokpixel from './helpers/tracking/tiktokpixel.js';
|
|
61
61
|
export { tiktokpixel };
|
|
62
62
|
export { GRADIENT_BGR_KEY, composeBackgroundCss, getBgByDevice, getBgImageByDevice, getBgVideoByDevice, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getStyleBackgroundByDevice, getStyleBgColor, makeFixedBgAttachment } from './helpers/background.js';
|
|
63
|
-
export { composeBackgroundImageCss, getBgImageSourceByDevice,
|
|
63
|
+
export { composeBackgroundImageCss, getBgImageSourceByDevice, getStyleBackgroundImage, getStyleBgImageSource } from './helpers/backgroundImage.js';
|
|
64
64
|
export { composeTextColorCss, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getSingleColorVariable, isColor } from './helpers/colors.js';
|
|
65
65
|
export { composeAdvanceStyle, composeAdvanceStyleForPostPurchase, convertBoxShadowV1ToV2, filterAttrInStyle, getCornerStyle, removeAttrInStyle, removePaddingYInStyle, splitStyle } from './helpers/compose-advance-style.js';
|
|
66
66
|
export { composeClasses } from './helpers/composeClasses.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -36841,11 +36841,13 @@ type DropdownInput<T> = SharedControlType<T> & {
|
|
|
36841
36841
|
units?: string[];
|
|
36842
36842
|
displayOptions?: {
|
|
36843
36843
|
label: string;
|
|
36844
|
-
value?: string;
|
|
36844
|
+
value?: string | number;
|
|
36845
36845
|
reversed?: boolean;
|
|
36846
36846
|
showValue?: boolean;
|
|
36847
36847
|
}[];
|
|
36848
36848
|
isRowWith?: boolean;
|
|
36849
|
+
isNumber?: true;
|
|
36850
|
+
isIndexValue?: boolean;
|
|
36849
36851
|
fallbackValue?: string | number;
|
|
36850
36852
|
};
|
|
36851
36853
|
|
|
@@ -37422,10 +37424,6 @@ type ImageSelect<T> = SharedControlType<T> & {
|
|
|
37422
37424
|
type: 'image-select';
|
|
37423
37425
|
};
|
|
37424
37426
|
|
|
37425
|
-
type LayoutPostPurchase<T> = SharedControlType<T> & {
|
|
37426
|
-
type: 'toggle:layout-post-purchase';
|
|
37427
|
-
};
|
|
37428
|
-
|
|
37429
37427
|
type BackgroundMediaComboControlType<T> = SharedControlType<T> & {
|
|
37430
37428
|
type: 'background-media-combo';
|
|
37431
37429
|
value?: BackgroundMedia;
|
|
@@ -37477,7 +37475,7 @@ type GroupControlType<T> = {
|
|
|
37477
37475
|
mobileOnly?: boolean;
|
|
37478
37476
|
};
|
|
37479
37477
|
};
|
|
37480
|
-
type ControlProp<T> = (ProductBundleChildControlType<T> | SelectProductBundleControlType<T> | AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputStepperControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | Option$7<T> | OptionValueControlType<T> | OptionIllustrationControlType<T> | OpenLinkControlType<T> | SelectControlType<T> | Option$4<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<T> | TypographyV2ControlType<T> | MenuControlType<T> | BehaviorStateControlType<T> | PickLinkControlType<T> | BoxShadowControlType<T> | TextShadowControlType<T> | BorderControlType<T> | BorderRadiusControlType<T> | RadiusPresetControlType<T> | SizeControlType<T> | ChildItemType<T> | PickMultiProductControlType<T> | CollectionControlType<T> | BackgroundControlType<T> | VisibilityControlType<T> | SelectVariantControlType | VariantListingControlType | CountdownEvergreenType | Timezone<T> | CustomContentControlType<T> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T> | LayoutSegmentControlType<T> | InputSpacing<T> | UniqueIdControlType<T> | PositionSquareControlType<T> | CustomCodeEditor | LayoutControlType<T> | LayoutBannerControlType<T> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | VariantSwatchesOnlyDefaultVariantControlType<T> | ProductListControlType<T> | ArticleListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting<T> | ChildIconType<T> | DropdownInput<T> | Dropdown<T> | AliPickSectionControlType<T> | ParallaxScrollingType<T> | BackgroundColorPickerType<T> | PlayPauseControlType<T> | LayoutCustomSegmentControlType<T> | SneakPeakRange<T> | SneakPeakTypeControlType<T> | SneakPeakControlType<T> | ProductInputCurrencyUnitControlType<T> | TypographyPostPurchaseControlType<T> | ProductOffersControlType<T> | DiscountAndShippingFee<T> | PostPurchaseTextareaControlType<T> | NotesControlType<T> | ButtonLayoutType<T> | ShapeSelectorControlType<T> | DisplayTriggerControlType<T> | CustomPositionControlType<T> | DealControlType<T> | ProductHandleType<T> | ColorPickerV2ControlType<T> | BorderV2ControlType<T> | CornerV2ControlType<T> | PaddingV2ControlType<T> | BackgroundImageType<T> | BackgroundVideoType<T> | ShadowV2ControlType<T> | BackgroundMediaControlType<T> | BackgroundMediaComboControlType<T> | BackgroundVideoType<T> | ImageV2ControlType<T> | LayoutSelectorControlType<T> | ComboControlType<T> | DynamicOfferQuantity<T> | ImagePostPurchase<T> | ImageSelect<T> | InputSliderControlType<T> | VariantSwatchesPresetV2ControlType<T> |
|
|
37478
|
+
type ControlProp<T> = (ProductBundleChildControlType<T> | SelectProductBundleControlType<T> | AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputStepperControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | Option$7<T> | OptionValueControlType<T> | OptionIllustrationControlType<T> | OpenLinkControlType<T> | SelectControlType<T> | Option$4<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<T> | TypographyV2ControlType<T> | MenuControlType<T> | BehaviorStateControlType<T> | PickLinkControlType<T> | BoxShadowControlType<T> | TextShadowControlType<T> | BorderControlType<T> | BorderRadiusControlType<T> | RadiusPresetControlType<T> | SizeControlType<T> | ChildItemType<T> | PickMultiProductControlType<T> | CollectionControlType<T> | BackgroundControlType<T> | VisibilityControlType<T> | SelectVariantControlType | VariantListingControlType | CountdownEvergreenType | Timezone<T> | CustomContentControlType<T> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T> | LayoutSegmentControlType<T> | InputSpacing<T> | UniqueIdControlType<T> | PositionSquareControlType<T> | CustomCodeEditor | LayoutControlType<T> | LayoutBannerControlType<T> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | VariantSwatchesOnlyDefaultVariantControlType<T> | ProductListControlType<T> | ArticleListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting<T> | ChildIconType<T> | DropdownInput<T> | Dropdown<T> | AliPickSectionControlType<T> | ParallaxScrollingType<T> | BackgroundColorPickerType<T> | PlayPauseControlType<T> | LayoutCustomSegmentControlType<T> | SneakPeakRange<T> | SneakPeakTypeControlType<T> | SneakPeakControlType<T> | ProductInputCurrencyUnitControlType<T> | TypographyPostPurchaseControlType<T> | ProductOffersControlType<T> | DiscountAndShippingFee<T> | PostPurchaseTextareaControlType<T> | NotesControlType<T> | ButtonLayoutType<T> | ShapeSelectorControlType<T> | DisplayTriggerControlType<T> | CustomPositionControlType<T> | DealControlType<T> | ProductHandleType<T> | ColorPickerV2ControlType<T> | BorderV2ControlType<T> | CornerV2ControlType<T> | PaddingV2ControlType<T> | BackgroundImageType<T> | BackgroundVideoType<T> | ShadowV2ControlType<T> | BackgroundMediaControlType<T> | BackgroundMediaComboControlType<T> | BackgroundVideoType<T> | ImageV2ControlType<T> | LayoutSelectorControlType<T> | ComboControlType<T> | DynamicOfferQuantity<T> | ImagePostPurchase<T> | ImageSelect<T> | InputSliderControlType<T> | VariantSwatchesPresetV2ControlType<T> | LayoutCarouselSelectorControlType<T> | BannerControlType<T> | ProductSourceControlType<T>) & {
|
|
37481
37479
|
validate?: ValidateType;
|
|
37482
37480
|
};
|
|
37483
37481
|
type ValidateType = {
|
|
@@ -37646,7 +37644,7 @@ type ComponentPreset = {
|
|
|
37646
37644
|
rootOverride?: Record<string, any>;
|
|
37647
37645
|
};
|
|
37648
37646
|
|
|
37649
|
-
type Devices
|
|
37647
|
+
type Devices = 'desktop' | 'tablet' | 'mobile';
|
|
37650
37648
|
type Options$1 = {
|
|
37651
37649
|
liquid?: boolean;
|
|
37652
37650
|
ignoreBgAttachment?: boolean;
|
|
@@ -37654,7 +37652,7 @@ type Options$1 = {
|
|
|
37654
37652
|
ignoreBackgroundImageProperties?: boolean;
|
|
37655
37653
|
ignoreBackgroundColor?: boolean;
|
|
37656
37654
|
};
|
|
37657
|
-
declare const getBgVideoByDevice: (value?: Partial<Record<Devices
|
|
37655
|
+
declare const getBgVideoByDevice: (value?: Partial<Record<Devices, Background>>, device?: Devices) => Background | undefined;
|
|
37658
37656
|
declare const getStyleBackgroundByDevice: (background?: ObjectDevices<Background>, options?: Options$1) => {
|
|
37659
37657
|
"--bga"?: string | undefined;
|
|
37660
37658
|
"--bga-tablet"?: string | undefined;
|
|
@@ -37676,7 +37674,7 @@ declare const getStyleBackgroundByDevice: (background?: ObjectDevices<Background
|
|
|
37676
37674
|
"--bgc-mobile"?: string | undefined;
|
|
37677
37675
|
};
|
|
37678
37676
|
declare const getStyleBgColor: (background: ObjectDevices<Background>) => Record<ResponsiveKey<"bgc">, string>;
|
|
37679
|
-
declare const getBgImageByDevice: (background: ObjectDevices<Background>, device: Devices
|
|
37677
|
+
declare const getBgImageByDevice: (background: ObjectDevices<Background>, device: Devices, options?: Options$1) => string | undefined;
|
|
37680
37678
|
declare const composeBackgroundCss: (backgroundColor?: ColorValueType) => string;
|
|
37681
37679
|
declare const makeFixedBgAttachment: (background?: ObjectDevices<Background>) => {
|
|
37682
37680
|
wrapper: {
|
|
@@ -37688,26 +37686,26 @@ declare const makeFixedBgAttachment: (background?: ObjectDevices<Background>) =>
|
|
|
37688
37686
|
} | undefined;
|
|
37689
37687
|
declare const GRADIENT_BGR_KEY = "linear-gradient";
|
|
37690
37688
|
declare const getGradientBgrStyleForButton: (backgroundStyle: Partial<Record<StateType, ColorValueType>> | undefined) => {} | undefined;
|
|
37691
|
-
declare const getGradientBgrStyleByDevice: (backgroundStyle: Partial<Record<Devices
|
|
37689
|
+
declare const getGradientBgrStyleByDevice: (backgroundStyle: Partial<Record<Devices, Background>> | undefined, ignoreBackgroundImage?: Record<Devices, boolean>) => {} | undefined;
|
|
37692
37690
|
declare const getBgByDevice: (data: {
|
|
37693
|
-
backgroundColor: Partial<Record<Devices
|
|
37694
|
-
backgroundImage: Partial<Record<Devices
|
|
37691
|
+
backgroundColor: Partial<Record<Devices, string>> | undefined;
|
|
37692
|
+
backgroundImage: Partial<Record<Devices, BackgroundImageValue>> | undefined;
|
|
37695
37693
|
}) => {} | undefined;
|
|
37696
37694
|
|
|
37697
|
-
type Devices = 'desktop' | 'tablet' | 'mobile';
|
|
37698
37695
|
type Options = {
|
|
37699
37696
|
liquid?: boolean;
|
|
37700
37697
|
ignoreBgAttachment?: boolean;
|
|
37701
37698
|
ignoreBackgroundImage?: boolean;
|
|
37702
37699
|
ignoreBackgroundImageProperties?: boolean;
|
|
37703
37700
|
};
|
|
37704
|
-
declare const
|
|
37705
|
-
declare const getStyleBgImageSource: (backgroundImage:
|
|
37706
|
-
declare const getBgImageSourceByDevice: (backgroundImage:
|
|
37707
|
-
declare const composeBackgroundImageCss: (config?: ObjectDevices<StateProp<BackgroundImageValue
|
|
37701
|
+
declare const getStyleBackgroundImage: (backgroundImage?: StateProp<BackgroundImageValue>, options?: Options) => {};
|
|
37702
|
+
declare const getStyleBgImageSource: (backgroundImage: StateProp<BackgroundImageValue>, options?: Options) => {};
|
|
37703
|
+
declare const getBgImageSourceByDevice: (backgroundImage: StateProp<BackgroundImageValue>, state: StateType, options?: Options) => string;
|
|
37704
|
+
declare const composeBackgroundImageCss: (config?: ObjectDevices<StateProp<BackgroundImageValue>> | StateProp<BackgroundImageValue>, options?: {
|
|
37708
37705
|
useLiquid?: boolean;
|
|
37709
37706
|
device?: 'desktop' | 'tablet' | 'mobile';
|
|
37710
37707
|
state?: 'normal' | 'hover';
|
|
37708
|
+
responsive?: boolean;
|
|
37711
37709
|
}) => string | undefined;
|
|
37712
37710
|
|
|
37713
37711
|
type ColorType = 'bg' | 'text' | 'border' | 'decoration';
|
|
@@ -45992,7 +45990,7 @@ type TypographyClass = `gp-g-${TypographyType}`;
|
|
|
45992
45990
|
declare const genTypoClass: (name: TypographyType) => TypographyClass;
|
|
45993
45991
|
declare const composeTypographyCss: (typography: TypographySetting | undefined) => string;
|
|
45994
45992
|
declare const composeTypographyV2Css: (typography: TypographySettingV2 | undefined, isImportant?: boolean) => string;
|
|
45995
|
-
declare const composeTextHoverColorCss: (
|
|
45993
|
+
declare const composeTextHoverColorCss: (colorHoverConfig?: StateProp<ColorValueType>, isImportant?: boolean) => string | undefined;
|
|
45996
45994
|
declare const composeTypography: (typography?: ObjectDevices<TypographyProps>) => React.CSSProperties;
|
|
45997
45995
|
declare const composeTypographyV2: (value?: TypographyV2Props, attrs?: TypographyV2Attrs) => React.CSSProperties;
|
|
45998
45996
|
declare const composeFontFamilyTypographyV2: (value?: TypographyV2Props & {
|
|
@@ -47956,4 +47954,4 @@ declare const useInteraction: () => {
|
|
|
47956
47954
|
|
|
47957
47955
|
declare const DEVICES: NameDevices$1[];
|
|
47958
47956
|
|
|
47959
|
-
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, ArticlesDocument, ArticlesQueryResponse, ArticlesQueryVariables, Background, BackgroundImageValue, BackgroundMedia, BackgroundVideoValue, BaseProps, BasePropsWrap, BlockEntity, BlogsDocument, BlogsQueryResponse, BlogsQueryVariables, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DEVICES, DeepPartial, DotStyle, Dropdown, DynamicCollection, DynamicProduct, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, I18nProvider, I18nProviderProps, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEvent, InteractionTargetEventObject, InteractionTriggerEvent, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, LooxReviewsWidgetTypeV2, MediaSelectFragment, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, Option$4 as Option, OptionNormalStyle, OptionSpecialStyle, Options$1 as Options, PaddingType, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewThemePageDocument, PreviewThemePageQueryResponse, PreviewThemePageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedShopMetasDocument, PublishedShopMetasQueryResponse, PublishedShopMetasQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, SaleFunnelOfferDocument, SaleFunnelOfferQueryResponse, SaleFunnelOfferQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, Setting, SettingByAnimationType, SettingByAnimationValues, SettingUIControl, SettingUIGroup, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, ShopShopifyDocument, ShopShopifyQueryResponse, ShopShopifyQueryVariables, shop as ShopType, SizeProps, SizeSetting$1 as SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StampedWidgetTypeV2, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSectionStatus$1 as ThemeSectionStatus, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, ValidateType, VariableRelatedStyles, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBackgroundImageCss, composeBorderCss, composeBorderResponsive, composeClasses, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadow, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTextHoverColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertBoxShadowV1ToV2, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterToolbarPreview, filterTruthyStyles, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAlignmentClasses, getAppBlocks, getAspectRatioGlobalSize, getBgByDevice, getBgImageByDevice, getBgImageSourceByDevice, getBgVideoByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getCornerCSSFromGlobal, getCornerStyle, getCustomRadius, getFlexGrowClassByShapeGlobalSize, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getHeightByShapeGlobalSize, getLayoutClasses, getPaddingGlobalSize, getPaddingStyleByDevice, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStylePadding, getResponsiveStyleShadow, getResponsiveStyleShadowWithoutState, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBackgroundImageByDevice, getStyleBgColor, getStyleBgImageSource, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, handleConvertInputBorderColor, handleConvertInputBorderWidth, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleResponsiveWidth, makeStyleResponsiveWidthWithoutAuto, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, shopifyPriceRounding, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useArticleListStore, useArticleStore, useArticlesQuery, useBlogsQuery, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useHasPreSelected, useI18n, useI18nStore, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductBundleDiscount, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductShopifyEditLink, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useShopifyLink, useStickyStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useTimezone, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
47957
|
+
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, ArticlesDocument, ArticlesQueryResponse, ArticlesQueryVariables, Background, BackgroundImageValue, BackgroundMedia, BackgroundVideoValue, BaseProps, BasePropsWrap, BlockEntity, BlogsDocument, BlogsQueryResponse, BlogsQueryVariables, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DEVICES, DeepPartial, DotStyle, Dropdown, DynamicCollection, DynamicProduct, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, I18nProvider, I18nProviderProps, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEvent, InteractionTargetEventObject, InteractionTriggerEvent, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, LooxReviewsWidgetTypeV2, MediaSelectFragment, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, Option$4 as Option, OptionNormalStyle, OptionSpecialStyle, Options$1 as Options, PaddingType, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewThemePageDocument, PreviewThemePageQueryResponse, PreviewThemePageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedShopMetasDocument, PublishedShopMetasQueryResponse, PublishedShopMetasQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, SaleFunnelOfferDocument, SaleFunnelOfferQueryResponse, SaleFunnelOfferQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, Setting, SettingByAnimationType, SettingByAnimationValues, SettingUIControl, SettingUIGroup, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, ShopShopifyDocument, ShopShopifyQueryResponse, ShopShopifyQueryVariables, shop as ShopType, SizeProps, SizeSetting$1 as SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StampedWidgetTypeV2, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSectionStatus$1 as ThemeSectionStatus, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, ValidateType, VariableRelatedStyles, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBackgroundImageCss, composeBorderCss, composeBorderResponsive, composeClasses, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadow, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTextHoverColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertBoxShadowV1ToV2, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterToolbarPreview, filterTruthyStyles, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAlignmentClasses, getAppBlocks, getAspectRatioGlobalSize, getBgByDevice, getBgImageByDevice, getBgImageSourceByDevice, getBgVideoByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getCornerCSSFromGlobal, getCornerStyle, getCustomRadius, getFlexGrowClassByShapeGlobalSize, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getHeightByShapeGlobalSize, getLayoutClasses, getPaddingGlobalSize, getPaddingStyleByDevice, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStylePadding, getResponsiveStyleShadow, getResponsiveStyleShadowWithoutState, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBackgroundImage, getStyleBgColor, getStyleBgImageSource, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, handleConvertInputBorderColor, handleConvertInputBorderWidth, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleResponsiveWidth, makeStyleResponsiveWidthWithoutAuto, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, shopifyPriceRounding, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useArticleListStore, useArticleStore, useArticlesQuery, useBlogsQuery, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useHasPreSelected, useI18n, useI18nStore, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductBundleDiscount, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductShopifyEditLink, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useShopifyLink, useStickyStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useTimezone, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.704",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@gem-sdk/adapter-shopify": "2.0.0-dev.695",
|
|
31
|
-
"@gem-sdk/styles": "2.0.0-dev.
|
|
31
|
+
"@gem-sdk/styles": "2.0.0-dev.703",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|