@gem-sdk/core 1.57.15-staging.3 → 1.58.0-dev.13
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/background.js +6 -2
- package/dist/cjs/helpers/borders.js +17 -0
- package/dist/cjs/helpers/compose-advance-style.js +16 -1
- package/dist/cjs/helpers/prefetch-queries.js +3 -5
- package/dist/cjs/helpers/radius.js +11 -1
- package/dist/cjs/helpers/shadow.js +3 -2
- package/dist/cjs/helpers/third-party/appConfig.js +7 -0
- package/dist/cjs/helpers/third-party/appSetting.js +9 -1
- package/dist/cjs/helpers/third-party/constant.js +2 -1
- package/dist/cjs/index.js +1 -0
- package/dist/esm/helpers/background.js +6 -2
- package/dist/esm/helpers/borders.js +17 -1
- package/dist/esm/helpers/compose-advance-style.js +16 -1
- package/dist/esm/helpers/prefetch-queries.js +3 -5
- package/dist/esm/helpers/radius.js +11 -1
- package/dist/esm/helpers/shadow.js +3 -2
- package/dist/esm/helpers/third-party/appConfig.js +7 -1
- package/dist/esm/helpers/third-party/appSetting.js +9 -1
- package/dist/esm/helpers/third-party/constant.js +3 -2
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +414 -176
- package/package.json +3 -3
|
@@ -73,9 +73,12 @@ const getBgImageByDevice = (background, device, options)=>{
|
|
|
73
73
|
imageByDevice = `{{ "${newBackupFilekey}" | asset_url }}`;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
if (typeof imageByDevice === 'string') {
|
|
76
|
+
if (typeof imageByDevice === 'string' && imageByDevice) {
|
|
77
77
|
return `url(${imageByDevice})`;
|
|
78
78
|
}
|
|
79
|
+
if (imageByDevice !== undefined) {
|
|
80
|
+
return 'none';
|
|
81
|
+
}
|
|
79
82
|
};
|
|
80
83
|
const getStyleBgPosition = (background)=>{
|
|
81
84
|
const bgPosition = {
|
|
@@ -216,9 +219,10 @@ const getGradientBgrStyleByDevice = (backgroundStyle, ignoreBackgroundImage)=>{
|
|
|
216
219
|
'mobile'
|
|
217
220
|
].forEach((device)=>{
|
|
218
221
|
if (backgroundStyle[device]?.color?.includes(GRADIENT_BGR_KEY)) {
|
|
222
|
+
const bgImage = `${getBgImageByDevice(backgroundStyle, device) || 'url()'}, ${backgroundStyle[device]?.color}`;
|
|
219
223
|
Object.assign(bgrStyle, {
|
|
220
224
|
[`--bgc${device !== 'desktop' ? '-' + device : ''}`]: backgroundStyle[device]?.color,
|
|
221
|
-
[`--bgi${device !== 'desktop' ? '-' + device : ''}`]: !ignoreBackgroundImage?.[device] ? `${backgroundStyle[device]?.color}` :
|
|
225
|
+
[`--bgi${device !== 'desktop' ? '-' + device : ''}`]: !ignoreBackgroundImage?.[device] ? `${backgroundStyle[device]?.color}` : bgImage
|
|
222
226
|
});
|
|
223
227
|
}
|
|
224
228
|
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var colors = require('./colors.js');
|
|
4
4
|
var makeStyle = require('./make-style.js');
|
|
5
|
+
var constant = require('./constant.js');
|
|
5
6
|
|
|
6
7
|
const getBorderStyle = (value)=>{
|
|
7
8
|
return makeStyle.makeStyle({
|
|
@@ -187,8 +188,24 @@ const composeBorderCss = (borderV)=>{
|
|
|
187
188
|
${color ? `border-color: ${colors.getSingleColorVariable(color)};` : ''}
|
|
188
189
|
`;
|
|
189
190
|
};
|
|
191
|
+
const composeBorderResponsive = (borderValue)=>{
|
|
192
|
+
const style = {};
|
|
193
|
+
Object.assign(style, composeBorderDevice(borderValue?.desktop, 'desktop'));
|
|
194
|
+
Object.assign(style, composeBorderDevice(borderValue?.tablet, 'tablet'));
|
|
195
|
+
Object.assign(style, composeBorderDevice(borderValue?.mobile, 'mobile'));
|
|
196
|
+
return style;
|
|
197
|
+
};
|
|
198
|
+
const composeBorderDevice = (value, device)=>{
|
|
199
|
+
const suffix = device && device !== 'desktop' ? constant.devicesMapping?.[device] : '';
|
|
200
|
+
return {
|
|
201
|
+
[`--b${suffix}`]: value?.border,
|
|
202
|
+
[`--bc${suffix}`]: colors.getSingleColorVariable(value?.color),
|
|
203
|
+
[`--bw${suffix}`]: value?.width
|
|
204
|
+
};
|
|
205
|
+
};
|
|
190
206
|
|
|
191
207
|
exports.composeBorderCss = composeBorderCss;
|
|
208
|
+
exports.composeBorderResponsive = composeBorderResponsive;
|
|
192
209
|
exports.getBorderRadiusStyle = getBorderRadiusStyle;
|
|
193
210
|
exports.getBorderStyle = getBorderStyle;
|
|
194
211
|
exports.handleConvertBorderColor = handleConvertBorderColor;
|
|
@@ -112,7 +112,22 @@ function composeAdvanceStyle(data, tag, pageType) {
|
|
|
112
112
|
Object.assign(styles, radius.composeRadius(value));
|
|
113
113
|
}
|
|
114
114
|
if (attr === 'boxShadow') {
|
|
115
|
-
|
|
115
|
+
const listElementShadowV2 = [
|
|
116
|
+
'Row',
|
|
117
|
+
'Section',
|
|
118
|
+
'Text',
|
|
119
|
+
'Heading',
|
|
120
|
+
'Image'
|
|
121
|
+
];
|
|
122
|
+
let hasBoxShadowV2 = hasBoxShadow;
|
|
123
|
+
if (listElementShadowV2.includes(tag || '')) {
|
|
124
|
+
hasBoxShadowV2 = {
|
|
125
|
+
desktop: value.desktop ?? {},
|
|
126
|
+
tablet: value.tablet ?? value.desktop ?? {},
|
|
127
|
+
mobile: value.mobile ?? value.tablet ?? value.desktop ?? {}
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
Object.assign(styles, shadow.getResponsiveStyleShadow(value, 'box-shadow', hasBoxShadowV2 ?? hasBoxShadow));
|
|
116
131
|
}
|
|
117
132
|
const styleValue = getAttrValue(attr, deviceValue, tag);
|
|
118
133
|
if (composeAttr === 'desktop') {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useSWR = require('swr');
|
|
4
3
|
var getCollection = require('./queries/get-collection.js');
|
|
5
4
|
var getProduct = require('./queries/get-product.js');
|
|
6
5
|
var getProducts = require('./queries/get-products.js');
|
|
7
|
-
var query = require('./query.js');
|
|
8
6
|
|
|
9
7
|
const prefetchQueries = (input, options)=>{
|
|
10
8
|
const queries = [];
|
|
@@ -21,7 +19,7 @@ const prefetchQueries = (input, options)=>{
|
|
|
21
19
|
isStorefront: options?.isStorefront
|
|
22
20
|
};
|
|
23
21
|
data = {
|
|
24
|
-
key:
|
|
22
|
+
key: `query/product/${variables.id}`,
|
|
25
23
|
func: getProduct.getProduct,
|
|
26
24
|
variables
|
|
27
25
|
};
|
|
@@ -39,7 +37,7 @@ const prefetchQueries = (input, options)=>{
|
|
|
39
37
|
isStorefront: options?.isStorefront
|
|
40
38
|
};
|
|
41
39
|
data = {
|
|
42
|
-
key:
|
|
40
|
+
key: `query/collection/${variables.id}`,
|
|
43
41
|
func: getCollection.getCollection,
|
|
44
42
|
variables
|
|
45
43
|
};
|
|
@@ -52,7 +50,7 @@ const prefetchQueries = (input, options)=>{
|
|
|
52
50
|
isStorefront: options?.isStorefront
|
|
53
51
|
};
|
|
54
52
|
data = {
|
|
55
|
-
key:
|
|
53
|
+
key: `query/products/${variables.ids.join(',')}`,
|
|
56
54
|
func: getProducts.getProducts,
|
|
57
55
|
variables
|
|
58
56
|
};
|
|
@@ -27,7 +27,14 @@ const getRadiusCSSFromGlobal = (state, key, device)=>{
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
const getCustomRadius = (state, radius, device)=>{
|
|
30
|
-
|
|
30
|
+
const list = [
|
|
31
|
+
'custom',
|
|
32
|
+
'pill',
|
|
33
|
+
'rounded',
|
|
34
|
+
'single',
|
|
35
|
+
'none'
|
|
36
|
+
];
|
|
37
|
+
if (!radius || !state || !list.includes(radius?.radiusType ?? '')) return {};
|
|
31
38
|
const suffix = device && device !== 'desktop' ? constant.devicesMapping?.[device] : '';
|
|
32
39
|
const mState = constant.stateMapping?.[state];
|
|
33
40
|
return {
|
|
@@ -62,6 +69,7 @@ const composeRadiusState = (radiusValue, device)=>{
|
|
|
62
69
|
case 'circle':
|
|
63
70
|
case 'none':
|
|
64
71
|
case 'custom':
|
|
72
|
+
case 'rounded':
|
|
65
73
|
Object.assign(style, getCustomRadius('normal', radiusValue.normal, device));
|
|
66
74
|
break;
|
|
67
75
|
}
|
|
@@ -74,6 +82,7 @@ const composeRadiusState = (radiusValue, device)=>{
|
|
|
74
82
|
case 'circle':
|
|
75
83
|
case 'none':
|
|
76
84
|
case 'custom':
|
|
85
|
+
case 'rounded':
|
|
77
86
|
Object.assign(style, getCustomRadius('hover', radiusValue.hover, device));
|
|
78
87
|
break;
|
|
79
88
|
}
|
|
@@ -86,6 +95,7 @@ const composeRadiusState = (radiusValue, device)=>{
|
|
|
86
95
|
case 'circle':
|
|
87
96
|
case 'none':
|
|
88
97
|
case 'custom':
|
|
98
|
+
case 'rounded':
|
|
89
99
|
Object.assign(style, getCustomRadius('focus', radiusValue.focus, device));
|
|
90
100
|
break;
|
|
91
101
|
}
|
|
@@ -24,10 +24,11 @@ const getStyleShadow = (shadowStyle, isActiveState = false)=>{
|
|
|
24
24
|
let { state } = shadowStyle || {};
|
|
25
25
|
if (!state) state = 'normal';
|
|
26
26
|
if (!styleAppliedFor || !value) return {};
|
|
27
|
-
|
|
27
|
+
const isNoneValue = value.type === 'none';
|
|
28
|
+
if (typeof value.distance == 'undefined' && !isNoneValue) return {};
|
|
28
29
|
const { value: distance, unit: unitDistance } = parseValueWithUnit(`${value?.distance}`);
|
|
29
30
|
return {
|
|
30
|
-
[`-${!isActiveState ? constant.stateMapping?.[state] || '' : ''}-${getShortname.getShortName(styleAppliedFor)}${shadowStyle.screen ? `-${shadowStyle.screen}` : ''}`]: isEnableShadow ? `${Math.cos(parseFloat(`${value?.angle}`) * Math.PI / 180) * parseFloat(`${distance}`)}${unitDistance} ${Math.sin(parseFloat(`${value?.angle}`) * Math.PI / 180) * parseFloat(`${distance}`)}${unitDistance} ${value?.blur} ${styleAppliedFor === 'box-shadow' ? value?.spread + ' ' : ''}${colors.getSingleColorVariable(value?.color)}` : 'none'
|
|
31
|
+
[`-${!isActiveState ? constant.stateMapping?.[state] || '' : ''}-${getShortname.getShortName(styleAppliedFor)}${shadowStyle.screen ? `-${shadowStyle.screen}` : ''}`]: isEnableShadow && !isNoneValue ? `${Math.cos(parseFloat(`${value?.angle}`) * Math.PI / 180) * parseFloat(`${distance}`)}${unitDistance} ${Math.sin(parseFloat(`${value?.angle}`) * Math.PI / 180) * parseFloat(`${distance}`)}${unitDistance} ${value?.blur} ${styleAppliedFor === 'box-shadow' ? value?.spread + ' ' : ''}${colors.getSingleColorVariable(value?.color)}` : 'none'
|
|
31
32
|
};
|
|
32
33
|
};
|
|
33
34
|
const getStyleShadowState = (shadow, styleAppliedFor, isEnableShadow, screen)=>{
|
|
@@ -180,6 +180,12 @@ const GloboProductOptionsVariantConfig = {
|
|
|
180
180
|
appId: 'fdc9fad5-1a0f-4bd4-9c8a-1af6a6eef6b8'
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
+
const KachingBundlesConfig = {
|
|
184
|
+
KachingBundles: {
|
|
185
|
+
appName: 'kaching-bundles',
|
|
186
|
+
appId: '6c637362-a106-4a32-94ac-94dcfd68cdb8'
|
|
187
|
+
}
|
|
188
|
+
};
|
|
183
189
|
|
|
184
190
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
185
191
|
exports.BoldSubscriptionsConfig = BoldSubscriptionsConfig;
|
|
@@ -191,6 +197,7 @@ exports.GloboProductOptionsVariantConfig = GloboProductOptionsVariantConfig;
|
|
|
191
197
|
exports.GrowaveConfig = GrowaveConfig;
|
|
192
198
|
exports.InstasellShoppableInstagramConfig = InstasellShoppableInstagramConfig;
|
|
193
199
|
exports.JunipProductReviewsUgcConfig = JunipProductReviewsUgcConfig;
|
|
200
|
+
exports.KachingBundlesConfig = KachingBundlesConfig;
|
|
194
201
|
exports.KiteFreeGiftDiscountConfig = KiteFreeGiftDiscountConfig;
|
|
195
202
|
exports.LoloyalLoyaltyReferralsConfig = LoloyalLoyaltyReferralsConfig;
|
|
196
203
|
exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
|
|
@@ -426,6 +426,13 @@ const PowerfulContactFormBuilder = {
|
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
|
+
const KachingBundles = {
|
|
430
|
+
KachingBundles: {
|
|
431
|
+
'app-block': {
|
|
432
|
+
product: '{{product}}'
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
};
|
|
429
436
|
const WishlistKing = {
|
|
430
437
|
WishlistKing: {
|
|
431
438
|
'wishlist-button-block': null
|
|
@@ -466,7 +473,8 @@ const composeSettingsByWidgetType = {
|
|
|
466
473
|
...SelleasyWidget,
|
|
467
474
|
...YotpoReviews,
|
|
468
475
|
...BoldSubscriptions,
|
|
469
|
-
...Growave
|
|
476
|
+
...Growave,
|
|
477
|
+
...KachingBundles
|
|
470
478
|
};
|
|
471
479
|
|
|
472
480
|
exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
|
|
@@ -32,7 +32,8 @@ const mapShopifyAppMeta = {
|
|
|
32
32
|
...appConfig.LoloyalLoyaltyReferralsConfig,
|
|
33
33
|
...appConfig.PowerfulContactFormBuilderConfig,
|
|
34
34
|
...appConfig.WishlistKingConfig,
|
|
35
|
-
...appConfig.GloboProductOptionsVariantConfig
|
|
35
|
+
...appConfig.GloboProductOptionsVariantConfig,
|
|
36
|
+
...appConfig.KachingBundlesConfig
|
|
36
37
|
};
|
|
37
38
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
38
39
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -166,6 +166,7 @@ exports.SaleFunnelDiscountsDocument = SaleFunnelDiscounts_generated.SaleFunnelDi
|
|
|
166
166
|
exports.LibrarySaleFunnelDocument = LibrarySaleFunnelDiscount_generated.LibrarySaleFunnelDocument;
|
|
167
167
|
exports.ShopLibraryPageDocument = ShopLibraryPage_generated.ShopLibraryPageDocument;
|
|
168
168
|
exports.composeBorderCss = borders.composeBorderCss;
|
|
169
|
+
exports.composeBorderResponsive = borders.composeBorderResponsive;
|
|
169
170
|
exports.getBorderRadiusStyle = borders.getBorderRadiusStyle;
|
|
170
171
|
exports.getBorderStyle = borders.getBorderStyle;
|
|
171
172
|
exports.handleConvertBorderColor = borders.handleConvertBorderColor;
|
|
@@ -71,9 +71,12 @@ const getBgImageByDevice = (background, device, options)=>{
|
|
|
71
71
|
imageByDevice = `{{ "${newBackupFilekey}" | asset_url }}`;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
if (typeof imageByDevice === 'string') {
|
|
74
|
+
if (typeof imageByDevice === 'string' && imageByDevice) {
|
|
75
75
|
return `url(${imageByDevice})`;
|
|
76
76
|
}
|
|
77
|
+
if (imageByDevice !== undefined) {
|
|
78
|
+
return 'none';
|
|
79
|
+
}
|
|
77
80
|
};
|
|
78
81
|
const getStyleBgPosition = (background)=>{
|
|
79
82
|
const bgPosition = {
|
|
@@ -214,9 +217,10 @@ const getGradientBgrStyleByDevice = (backgroundStyle, ignoreBackgroundImage)=>{
|
|
|
214
217
|
'mobile'
|
|
215
218
|
].forEach((device)=>{
|
|
216
219
|
if (backgroundStyle[device]?.color?.includes(GRADIENT_BGR_KEY)) {
|
|
220
|
+
const bgImage = `${getBgImageByDevice(backgroundStyle, device) || 'url()'}, ${backgroundStyle[device]?.color}`;
|
|
217
221
|
Object.assign(bgrStyle, {
|
|
218
222
|
[`--bgc${device !== 'desktop' ? '-' + device : ''}`]: backgroundStyle[device]?.color,
|
|
219
|
-
[`--bgi${device !== 'desktop' ? '-' + device : ''}`]: !ignoreBackgroundImage?.[device] ? `${backgroundStyle[device]?.color}` :
|
|
223
|
+
[`--bgi${device !== 'desktop' ? '-' + device : ''}`]: !ignoreBackgroundImage?.[device] ? `${backgroundStyle[device]?.color}` : bgImage
|
|
220
224
|
});
|
|
221
225
|
}
|
|
222
226
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getSingleColorVariable, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStateResponsiveClass, getGlobalColorStateClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateClassDynamicBtn } from './colors.js';
|
|
2
2
|
import { makeStyle, makeStyleResponsiveState, makeStyleState } from './make-style.js';
|
|
3
|
+
import { devicesMapping } from './constant.js';
|
|
3
4
|
|
|
4
5
|
const getBorderStyle = (value)=>{
|
|
5
6
|
return makeStyle({
|
|
@@ -185,5 +186,20 @@ const composeBorderCss = (borderV)=>{
|
|
|
185
186
|
${color ? `border-color: ${getSingleColorVariable(color)};` : ''}
|
|
186
187
|
`;
|
|
187
188
|
};
|
|
189
|
+
const composeBorderResponsive = (borderValue)=>{
|
|
190
|
+
const style = {};
|
|
191
|
+
Object.assign(style, composeBorderDevice(borderValue?.desktop, 'desktop'));
|
|
192
|
+
Object.assign(style, composeBorderDevice(borderValue?.tablet, 'tablet'));
|
|
193
|
+
Object.assign(style, composeBorderDevice(borderValue?.mobile, 'mobile'));
|
|
194
|
+
return style;
|
|
195
|
+
};
|
|
196
|
+
const composeBorderDevice = (value, device)=>{
|
|
197
|
+
const suffix = device && device !== 'desktop' ? devicesMapping?.[device] : '';
|
|
198
|
+
return {
|
|
199
|
+
[`--b${suffix}`]: value?.border,
|
|
200
|
+
[`--bc${suffix}`]: getSingleColorVariable(value?.color),
|
|
201
|
+
[`--bw${suffix}`]: value?.width
|
|
202
|
+
};
|
|
203
|
+
};
|
|
188
204
|
|
|
189
|
-
export { composeBorderCss, getBorderRadiusStyle, getBorderStyle, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn };
|
|
205
|
+
export { composeBorderCss, composeBorderResponsive, getBorderRadiusStyle, getBorderStyle, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn };
|
|
@@ -110,7 +110,22 @@ function composeAdvanceStyle(data, tag, pageType) {
|
|
|
110
110
|
Object.assign(styles, composeRadius(value));
|
|
111
111
|
}
|
|
112
112
|
if (attr === 'boxShadow') {
|
|
113
|
-
|
|
113
|
+
const listElementShadowV2 = [
|
|
114
|
+
'Row',
|
|
115
|
+
'Section',
|
|
116
|
+
'Text',
|
|
117
|
+
'Heading',
|
|
118
|
+
'Image'
|
|
119
|
+
];
|
|
120
|
+
let hasBoxShadowV2 = hasBoxShadow;
|
|
121
|
+
if (listElementShadowV2.includes(tag || '')) {
|
|
122
|
+
hasBoxShadowV2 = {
|
|
123
|
+
desktop: value.desktop ?? {},
|
|
124
|
+
tablet: value.tablet ?? value.desktop ?? {},
|
|
125
|
+
mobile: value.mobile ?? value.tablet ?? value.desktop ?? {}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
Object.assign(styles, getResponsiveStyleShadow(value, 'box-shadow', hasBoxShadowV2 ?? hasBoxShadow));
|
|
114
129
|
}
|
|
115
130
|
const styleValue = getAttrValue(attr, deviceValue, tag);
|
|
116
131
|
if (composeAttr === 'desktop') {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { unstable_serialize } from 'swr';
|
|
2
1
|
import { getCollection } from './queries/get-collection.js';
|
|
3
2
|
import { getProduct } from './queries/get-product.js';
|
|
4
3
|
import { getProducts } from './queries/get-products.js';
|
|
5
|
-
import { generateCollectionQueryKey, generateProductsQueryKey, generateProductQueryKey } from './query.js';
|
|
6
4
|
|
|
7
5
|
const prefetchQueries = (input, options)=>{
|
|
8
6
|
const queries = [];
|
|
@@ -19,7 +17,7 @@ const prefetchQueries = (input, options)=>{
|
|
|
19
17
|
isStorefront: options?.isStorefront
|
|
20
18
|
};
|
|
21
19
|
data = {
|
|
22
|
-
key:
|
|
20
|
+
key: `query/product/${variables.id}`,
|
|
23
21
|
func: getProduct,
|
|
24
22
|
variables
|
|
25
23
|
};
|
|
@@ -37,7 +35,7 @@ const prefetchQueries = (input, options)=>{
|
|
|
37
35
|
isStorefront: options?.isStorefront
|
|
38
36
|
};
|
|
39
37
|
data = {
|
|
40
|
-
key:
|
|
38
|
+
key: `query/collection/${variables.id}`,
|
|
41
39
|
func: getCollection,
|
|
42
40
|
variables
|
|
43
41
|
};
|
|
@@ -50,7 +48,7 @@ const prefetchQueries = (input, options)=>{
|
|
|
50
48
|
isStorefront: options?.isStorefront
|
|
51
49
|
};
|
|
52
50
|
data = {
|
|
53
|
-
key:
|
|
51
|
+
key: `query/products/${variables.ids.join(',')}`,
|
|
54
52
|
func: getProducts,
|
|
55
53
|
variables
|
|
56
54
|
};
|
|
@@ -25,7 +25,14 @@ const getRadiusCSSFromGlobal = (state, key, device)=>{
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
const getCustomRadius = (state, radius, device)=>{
|
|
28
|
-
|
|
28
|
+
const list = [
|
|
29
|
+
'custom',
|
|
30
|
+
'pill',
|
|
31
|
+
'rounded',
|
|
32
|
+
'single',
|
|
33
|
+
'none'
|
|
34
|
+
];
|
|
35
|
+
if (!radius || !state || !list.includes(radius?.radiusType ?? '')) return {};
|
|
29
36
|
const suffix = device && device !== 'desktop' ? devicesMapping?.[device] : '';
|
|
30
37
|
const mState = stateMapping?.[state];
|
|
31
38
|
return {
|
|
@@ -60,6 +67,7 @@ const composeRadiusState = (radiusValue, device)=>{
|
|
|
60
67
|
case 'circle':
|
|
61
68
|
case 'none':
|
|
62
69
|
case 'custom':
|
|
70
|
+
case 'rounded':
|
|
63
71
|
Object.assign(style, getCustomRadius('normal', radiusValue.normal, device));
|
|
64
72
|
break;
|
|
65
73
|
}
|
|
@@ -72,6 +80,7 @@ const composeRadiusState = (radiusValue, device)=>{
|
|
|
72
80
|
case 'circle':
|
|
73
81
|
case 'none':
|
|
74
82
|
case 'custom':
|
|
83
|
+
case 'rounded':
|
|
75
84
|
Object.assign(style, getCustomRadius('hover', radiusValue.hover, device));
|
|
76
85
|
break;
|
|
77
86
|
}
|
|
@@ -84,6 +93,7 @@ const composeRadiusState = (radiusValue, device)=>{
|
|
|
84
93
|
case 'circle':
|
|
85
94
|
case 'none':
|
|
86
95
|
case 'custom':
|
|
96
|
+
case 'rounded':
|
|
87
97
|
Object.assign(style, getCustomRadius('focus', radiusValue.focus, device));
|
|
88
98
|
break;
|
|
89
99
|
}
|
|
@@ -22,10 +22,11 @@ const getStyleShadow = (shadowStyle, isActiveState = false)=>{
|
|
|
22
22
|
let { state } = shadowStyle || {};
|
|
23
23
|
if (!state) state = 'normal';
|
|
24
24
|
if (!styleAppliedFor || !value) return {};
|
|
25
|
-
|
|
25
|
+
const isNoneValue = value.type === 'none';
|
|
26
|
+
if (typeof value.distance == 'undefined' && !isNoneValue) return {};
|
|
26
27
|
const { value: distance, unit: unitDistance } = parseValueWithUnit(`${value?.distance}`);
|
|
27
28
|
return {
|
|
28
|
-
[`-${!isActiveState ? stateMapping?.[state] || '' : ''}-${getShortName(styleAppliedFor)}${shadowStyle.screen ? `-${shadowStyle.screen}` : ''}`]: isEnableShadow ? `${Math.cos(parseFloat(`${value?.angle}`) * Math.PI / 180) * parseFloat(`${distance}`)}${unitDistance} ${Math.sin(parseFloat(`${value?.angle}`) * Math.PI / 180) * parseFloat(`${distance}`)}${unitDistance} ${value?.blur} ${styleAppliedFor === 'box-shadow' ? value?.spread + ' ' : ''}${getSingleColorVariable(value?.color)}` : 'none'
|
|
29
|
+
[`-${!isActiveState ? stateMapping?.[state] || '' : ''}-${getShortName(styleAppliedFor)}${shadowStyle.screen ? `-${shadowStyle.screen}` : ''}`]: isEnableShadow && !isNoneValue ? `${Math.cos(parseFloat(`${value?.angle}`) * Math.PI / 180) * parseFloat(`${distance}`)}${unitDistance} ${Math.sin(parseFloat(`${value?.angle}`) * Math.PI / 180) * parseFloat(`${distance}`)}${unitDistance} ${value?.blur} ${styleAppliedFor === 'box-shadow' ? value?.spread + ' ' : ''}${getSingleColorVariable(value?.color)}` : 'none'
|
|
29
30
|
};
|
|
30
31
|
};
|
|
31
32
|
const getStyleShadowState = (shadow, styleAppliedFor, isEnableShadow, screen)=>{
|
|
@@ -178,5 +178,11 @@ const GloboProductOptionsVariantConfig = {
|
|
|
178
178
|
appId: 'fdc9fad5-1a0f-4bd4-9c8a-1af6a6eef6b8'
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
|
+
const KachingBundlesConfig = {
|
|
182
|
+
KachingBundles: {
|
|
183
|
+
appName: 'kaching-bundles',
|
|
184
|
+
appId: '6c637362-a106-4a32-94ac-94dcfd68cdb8'
|
|
185
|
+
}
|
|
186
|
+
};
|
|
181
187
|
|
|
182
|
-
export { AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
188
|
+
export { AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
@@ -424,6 +424,13 @@ const PowerfulContactFormBuilder = {
|
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
};
|
|
427
|
+
const KachingBundles = {
|
|
428
|
+
KachingBundles: {
|
|
429
|
+
'app-block': {
|
|
430
|
+
product: '{{product}}'
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
};
|
|
427
434
|
const WishlistKing = {
|
|
428
435
|
WishlistKing: {
|
|
429
436
|
'wishlist-button-block': null
|
|
@@ -464,7 +471,8 @@ const composeSettingsByWidgetType = {
|
|
|
464
471
|
...SelleasyWidget,
|
|
465
472
|
...YotpoReviews,
|
|
466
473
|
...BoldSubscriptions,
|
|
467
|
-
...Growave
|
|
474
|
+
...Growave,
|
|
475
|
+
...KachingBundles
|
|
468
476
|
};
|
|
469
477
|
|
|
470
478
|
export { composeSettingsByWidgetType, overrideSettings };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, PreorderNowWodPresaleConfig, YotpoReviewsV3UgcConfig, WhatmoreShoppableVideosreelConfig, ProductOptionsCustomizerConfig, AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, SproutPlantTreesGrowSalesConfig, InstasellShoppableInstagramConfig, GrowaveConfig, LoloyalLoyaltyReferralsConfig, PowerfulContactFormBuilderConfig, WishlistKingConfig, GloboProductOptionsVariantConfig } from './appConfig.js';
|
|
1
|
+
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, PreorderNowWodPresaleConfig, YotpoReviewsV3UgcConfig, WhatmoreShoppableVideosreelConfig, ProductOptionsCustomizerConfig, AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, SproutPlantTreesGrowSalesConfig, InstasellShoppableInstagramConfig, GrowaveConfig, LoloyalLoyaltyReferralsConfig, PowerfulContactFormBuilderConfig, WishlistKingConfig, GloboProductOptionsVariantConfig, KachingBundlesConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -30,7 +30,8 @@ const mapShopifyAppMeta = {
|
|
|
30
30
|
...LoloyalLoyaltyReferralsConfig,
|
|
31
31
|
...PowerfulContactFormBuilderConfig,
|
|
32
32
|
...WishlistKingConfig,
|
|
33
|
-
...GloboProductOptionsVariantConfig
|
|
33
|
+
...GloboProductOptionsVariantConfig,
|
|
34
|
+
...KachingBundlesConfig
|
|
34
35
|
};
|
|
35
36
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
36
37
|
|
package/dist/esm/index.js
CHANGED
|
@@ -30,7 +30,7 @@ export { ThemePageDocument } from './graphql-app-api/queries/ThemePage.generated
|
|
|
30
30
|
export { SaleFunnelDiscountsDocument } from './graphql-app-api/queries/SaleFunnelDiscounts.generated.js';
|
|
31
31
|
export { LibrarySaleFunnelDocument } from './graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js';
|
|
32
32
|
export { ShopLibraryPageDocument } from './graphql-app-api/queries/ShopLibraryPage.generated.js';
|
|
33
|
-
export { composeBorderCss, getBorderRadiusStyle, getBorderStyle, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn } from './helpers/borders.js';
|
|
33
|
+
export { composeBorderCss, composeBorderResponsive, getBorderRadiusStyle, getBorderStyle, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn } from './helpers/borders.js';
|
|
34
34
|
export { getCarouselContainerHeight, makeContainerWidthOrHeight, makeDotGapToCarouselStyle } from './helpers/carousel.js';
|
|
35
35
|
export { cls } from './helpers/cls.js';
|
|
36
36
|
export { animations } from './helpers/animations.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6924,6 +6924,7 @@ type ObjectLayoutValue = {
|
|
|
6924
6924
|
display?: 'fill' | 'fit';
|
|
6925
6925
|
cols?: number[];
|
|
6926
6926
|
keepCol?: boolean;
|
|
6927
|
+
gap?: string;
|
|
6927
6928
|
};
|
|
6928
6929
|
type ProductReviewsWidgetType = 'reviews' | 'badge';
|
|
6929
6930
|
type TrustooWidgetType = 'starRatingInList' | 'starRating' | 'reviews';
|
|
@@ -6993,6 +6994,7 @@ type Mapped$7<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
6993
6994
|
active?: boolean;
|
|
6994
6995
|
};
|
|
6995
6996
|
devices?: ResponsiveConfig<U>;
|
|
6997
|
+
compoDefaultValue?: ResponsiveConfig<U>;
|
|
6996
6998
|
emptyOnClear?: boolean;
|
|
6997
6999
|
showVideo?: boolean;
|
|
6998
7000
|
} : {
|
|
@@ -7031,6 +7033,7 @@ type Mapped$7<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
7031
7033
|
emptyOnClear?: boolean;
|
|
7032
7034
|
showVideo?: boolean;
|
|
7033
7035
|
default?: T;
|
|
7036
|
+
compoDefaultValue?: T;
|
|
7034
7037
|
};
|
|
7035
7038
|
type SharedControlType<T> = {
|
|
7036
7039
|
[K in keyof T]-?: Mapped$7<K, T[K]>;
|
|
@@ -7553,23 +7556,23 @@ type Background = {
|
|
|
7553
7556
|
storage?: 'THEME' | 'FILE_CONTENT';
|
|
7554
7557
|
backupFilePath?: string;
|
|
7555
7558
|
};
|
|
7556
|
-
size?: BgSize;
|
|
7557
|
-
position?: BgPosition;
|
|
7558
|
-
repeat?: BgRepeat;
|
|
7559
|
-
attachment?: BgAttachment;
|
|
7559
|
+
size?: BgSize$2;
|
|
7560
|
+
position?: BgPosition$2;
|
|
7561
|
+
repeat?: BgRepeat$2;
|
|
7562
|
+
attachment?: BgAttachment$2;
|
|
7560
7563
|
video?: string;
|
|
7561
7564
|
videoHtml5?: string;
|
|
7562
7565
|
videoType?: 'youtube' | 'html5';
|
|
7563
7566
|
loop?: boolean;
|
|
7564
7567
|
lazyLoad?: boolean;
|
|
7565
7568
|
};
|
|
7566
|
-
type BgSize = 'cover' | 'contain';
|
|
7567
|
-
type BgRepeat = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
|
7568
|
-
type BgPosition = {
|
|
7569
|
+
type BgSize$2 = 'cover' | 'contain';
|
|
7570
|
+
type BgRepeat$2 = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
|
7571
|
+
type BgPosition$2 = {
|
|
7569
7572
|
x: number;
|
|
7570
7573
|
y: number;
|
|
7571
7574
|
};
|
|
7572
|
-
type BgAttachment = 'scroll' | 'fixed' | 'local';
|
|
7575
|
+
type BgAttachment$2 = 'scroll' | 'fixed' | 'local';
|
|
7573
7576
|
|
|
7574
7577
|
type VisibilityControlType<T> = SharedControlType<T> & {
|
|
7575
7578
|
type: 'visibility';
|
|
@@ -7885,6 +7888,7 @@ type DropdownInput<T> = SharedControlType<T> & {
|
|
|
7885
7888
|
reversed?: boolean;
|
|
7886
7889
|
showValue?: boolean;
|
|
7887
7890
|
}[];
|
|
7891
|
+
isRowWith?: boolean;
|
|
7888
7892
|
};
|
|
7889
7893
|
|
|
7890
7894
|
type Dropdown<T> = SharedControlType<T> & {
|
|
@@ -8170,7 +8174,405 @@ type ProductHandleType<T> = SharedControlType<T> & {
|
|
|
8170
8174
|
type: 'product-handle';
|
|
8171
8175
|
};
|
|
8172
8176
|
|
|
8173
|
-
type
|
|
8177
|
+
type SettingStateType = 'normal' | 'hover' | 'focus' | 'active' | 'price' | 'compareAtPrice';
|
|
8178
|
+
type LangKey = 'en' | 'vi';
|
|
8179
|
+
type LabelWithLang = {
|
|
8180
|
+
[P in keyof Record<LangKey, ''>]?: string;
|
|
8181
|
+
};
|
|
8182
|
+
type SettingMediaType = 'image' | 'youtubeVideoID';
|
|
8183
|
+
type SettingUIHelpType = {
|
|
8184
|
+
content: string;
|
|
8185
|
+
button?: {
|
|
8186
|
+
label: string;
|
|
8187
|
+
link: string;
|
|
8188
|
+
};
|
|
8189
|
+
media?: {
|
|
8190
|
+
value: string;
|
|
8191
|
+
type: SettingMediaType;
|
|
8192
|
+
};
|
|
8193
|
+
};
|
|
8194
|
+
type LinkWithSetting = {
|
|
8195
|
+
name: string;
|
|
8196
|
+
state?: string;
|
|
8197
|
+
field?: string;
|
|
8198
|
+
getLinkValue?: boolean;
|
|
8199
|
+
};
|
|
8200
|
+
type ControlConfig = ControlProp<any> & {
|
|
8201
|
+
linkWithSetting?: LinkWithSetting;
|
|
8202
|
+
};
|
|
8203
|
+
type Plan = 'trial' | 'build' | 'starter' | 'optimize' | 'advanced' | 'trial2022' | 'enterprise' | 'development' | 'professional';
|
|
8204
|
+
type LabelVariant = 'primary' | 'secondary' | 'bold';
|
|
8205
|
+
type SettingUIControl = {
|
|
8206
|
+
id?: string;
|
|
8207
|
+
controlConfig?: ControlConfig;
|
|
8208
|
+
type?: 'control' | 'combo' | 'tab' | 'toggleGroup';
|
|
8209
|
+
layout?: 'vertical' | 'horizontal';
|
|
8210
|
+
toggleGroupId?: string;
|
|
8211
|
+
label?: LabelWithLang;
|
|
8212
|
+
conditionDisplay?: string;
|
|
8213
|
+
conditionEnable?: string;
|
|
8214
|
+
options?: {
|
|
8215
|
+
fullWidth?: boolean;
|
|
8216
|
+
onlyShowInTags?: string[];
|
|
8217
|
+
target?: 'tab';
|
|
8218
|
+
disableMessage?: string;
|
|
8219
|
+
nearestSupportedPlan?: Plan;
|
|
8220
|
+
lockedOnPlans?: Plan[];
|
|
8221
|
+
labelVariant?: LabelVariant;
|
|
8222
|
+
labelInsideControl?: boolean;
|
|
8223
|
+
hideLabel?: boolean;
|
|
8224
|
+
updateFields?: {
|
|
8225
|
+
field: string;
|
|
8226
|
+
settingId: string;
|
|
8227
|
+
}[];
|
|
8228
|
+
};
|
|
8229
|
+
setting?: {
|
|
8230
|
+
id: string;
|
|
8231
|
+
state?: SettingStateType;
|
|
8232
|
+
};
|
|
8233
|
+
searchKeyword?: string;
|
|
8234
|
+
controlChangeTrigger?: ControlTrigger;
|
|
8235
|
+
tabs?: SettingUITab[];
|
|
8236
|
+
info?: LabelWithLang;
|
|
8237
|
+
compoDefaultValue?: any | Record<NameDevices$1, any>;
|
|
8238
|
+
} & SettingUICompo;
|
|
8239
|
+
type ControlTriggerAction$1 = {
|
|
8240
|
+
controlId: string;
|
|
8241
|
+
newValue?: any;
|
|
8242
|
+
valueFromField?: string;
|
|
8243
|
+
controlType: string;
|
|
8244
|
+
groupType: string;
|
|
8245
|
+
valueIfNull?: any;
|
|
8246
|
+
removeDevice?: boolean;
|
|
8247
|
+
};
|
|
8248
|
+
type ControlTriggerSetting = {
|
|
8249
|
+
source?: string[];
|
|
8250
|
+
condition?: string;
|
|
8251
|
+
action: ControlTriggerAction$1;
|
|
8252
|
+
};
|
|
8253
|
+
type ControlTrigger = {
|
|
8254
|
+
settings?: ControlTriggerSetting[];
|
|
8255
|
+
options?: {
|
|
8256
|
+
noRecordHistory?: boolean;
|
|
8257
|
+
};
|
|
8258
|
+
};
|
|
8259
|
+
type SettingUICompo = {
|
|
8260
|
+
controls?: SettingUIControl[];
|
|
8261
|
+
iconName?: string;
|
|
8262
|
+
getValueFromSettingID?: string;
|
|
8263
|
+
fixedValue?: string;
|
|
8264
|
+
placeholder?: string;
|
|
8265
|
+
help?: SettingUIHelpType;
|
|
8266
|
+
};
|
|
8267
|
+
type SettingUIMoreSetting = {
|
|
8268
|
+
label?: LabelWithLang;
|
|
8269
|
+
labelAction?: LabelWithLang;
|
|
8270
|
+
controls?: SettingUIControl[];
|
|
8271
|
+
help?: SettingUIHelpType;
|
|
8272
|
+
};
|
|
8273
|
+
type SettingUITab = {
|
|
8274
|
+
label?: LabelWithLang;
|
|
8275
|
+
controls?: SettingUIControl[];
|
|
8276
|
+
hide?: boolean;
|
|
8277
|
+
conditionDisplay?: string;
|
|
8278
|
+
};
|
|
8279
|
+
type SettingUIToggleGroup = {
|
|
8280
|
+
label?: LabelWithLang;
|
|
8281
|
+
id?: string;
|
|
8282
|
+
controls?: SettingUIControl[];
|
|
8283
|
+
};
|
|
8284
|
+
type SettingUIToggleSettings = {
|
|
8285
|
+
controls?: SettingUIControl[];
|
|
8286
|
+
isActiveDefault?: boolean;
|
|
8287
|
+
} & SettingUIControl & SettingUIToggleGroup;
|
|
8288
|
+
type SettingUIGroup = {
|
|
8289
|
+
label?: LabelWithLang;
|
|
8290
|
+
message?: string;
|
|
8291
|
+
disableToggle?: boolean;
|
|
8292
|
+
conditionDisplay?: string;
|
|
8293
|
+
conditionEnable?: string;
|
|
8294
|
+
controls?: SettingUIControl[];
|
|
8295
|
+
moreSettings?: SettingUIMoreSetting;
|
|
8296
|
+
toggleSettings?: SettingUIToggleSettings[];
|
|
8297
|
+
states?: SettingUITab[];
|
|
8298
|
+
help?: SettingUIHelpType;
|
|
8299
|
+
options?: {
|
|
8300
|
+
disableMessage?: string;
|
|
8301
|
+
};
|
|
8302
|
+
};
|
|
8303
|
+
|
|
8304
|
+
type ColorPickerV2ControlType<T> = SharedControlType<T> & {
|
|
8305
|
+
type: 'color-picker-v2';
|
|
8306
|
+
};
|
|
8307
|
+
|
|
8308
|
+
type BorderV2ControlType<T> = SharedControlType<T> & {
|
|
8309
|
+
type: 'border-v2';
|
|
8310
|
+
};
|
|
8311
|
+
|
|
8312
|
+
type CornerV2ControlType<T> = SharedControlType<T> & {
|
|
8313
|
+
type: 'corner-v2';
|
|
8314
|
+
};
|
|
8315
|
+
|
|
8316
|
+
type PaddingV2ControlType<T> = SharedControlType<T> & {
|
|
8317
|
+
type: 'padding-v2';
|
|
8318
|
+
};
|
|
8319
|
+
|
|
8320
|
+
type BackgroundImageType<T> = SharedControlType<T> & {
|
|
8321
|
+
type: 'background-image';
|
|
8322
|
+
value?: BackgroundImageValue;
|
|
8323
|
+
};
|
|
8324
|
+
type BackgroundImageValue = {
|
|
8325
|
+
image?: {
|
|
8326
|
+
src: string;
|
|
8327
|
+
width: number;
|
|
8328
|
+
height: number;
|
|
8329
|
+
};
|
|
8330
|
+
size?: BgSize$1;
|
|
8331
|
+
position?: BgPosition$1;
|
|
8332
|
+
repeat?: BgRepeat$1;
|
|
8333
|
+
attachment?: BgAttachment$1;
|
|
8334
|
+
altText?: string;
|
|
8335
|
+
imageTitle?: string;
|
|
8336
|
+
lazyLoad?: boolean;
|
|
8337
|
+
preload?: boolean;
|
|
8338
|
+
};
|
|
8339
|
+
type BgSize$1 = 'cover' | 'contain' | '100% 100%';
|
|
8340
|
+
type BgRepeat$1 = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
|
8341
|
+
type BgPosition$1 = {
|
|
8342
|
+
x: number;
|
|
8343
|
+
y: number;
|
|
8344
|
+
};
|
|
8345
|
+
type BgAttachment$1 = 'scroll' | 'fixed' | 'local';
|
|
8346
|
+
|
|
8347
|
+
type BackgroundVideoType<T> = SharedControlType<T> & {
|
|
8348
|
+
type: 'background-video';
|
|
8349
|
+
value?: BackgroundVideoValue;
|
|
8350
|
+
};
|
|
8351
|
+
type BackgroundVideoValue = {
|
|
8352
|
+
srcYoutube?: string;
|
|
8353
|
+
srcHtml5?: string;
|
|
8354
|
+
type?: 'youtube' | 'html5';
|
|
8355
|
+
ratio?: string;
|
|
8356
|
+
loop?: boolean;
|
|
8357
|
+
};
|
|
8358
|
+
|
|
8359
|
+
type NameDevices = 'desktop' | 'tablet' | 'mobile';
|
|
8360
|
+
type TypographyV2Family = string | {
|
|
8361
|
+
value: string;
|
|
8362
|
+
type: TypographyV2FontFamilyType;
|
|
8363
|
+
};
|
|
8364
|
+
type TypographyV2FontFamilyType = 'google' | 'custom' | 'theme' | 'bunny';
|
|
8365
|
+
|
|
8366
|
+
/**
|
|
8367
|
+
* @deprecated Please use `TypographySettingV2`
|
|
8368
|
+
*/
|
|
8369
|
+
type TypographySetting = {
|
|
8370
|
+
type?: TypographyType;
|
|
8371
|
+
custom?: ObjectDevices<TypographyProps>;
|
|
8372
|
+
};
|
|
8373
|
+
type TypographySettingV2 = {
|
|
8374
|
+
type?: TypographyType;
|
|
8375
|
+
custom?: TypographyV2Props;
|
|
8376
|
+
attrs?: TypographyV2Attrs;
|
|
8377
|
+
};
|
|
8378
|
+
type SizeSetting = {
|
|
8379
|
+
type?: SizeType;
|
|
8380
|
+
custom?: ObjectDevices<SizeProps>;
|
|
8381
|
+
};
|
|
8382
|
+
type SizeProps = {
|
|
8383
|
+
horizontal?: string;
|
|
8384
|
+
vertical?: string;
|
|
8385
|
+
};
|
|
8386
|
+
type SizeType = 'medium' | 'large' | 'small' | 'none';
|
|
8387
|
+
type TypographyProps = {
|
|
8388
|
+
fontSize?: string;
|
|
8389
|
+
fontWeight?: string | number;
|
|
8390
|
+
fontStyle?: string;
|
|
8391
|
+
fontFamily?: TypographyV2Family;
|
|
8392
|
+
lineHeight?: string;
|
|
8393
|
+
letterSpacing?: string;
|
|
8394
|
+
fallbackFontFamily?: string;
|
|
8395
|
+
textShadow?: ShadowProps;
|
|
8396
|
+
hasShadowText?: boolean;
|
|
8397
|
+
isCustom?: boolean;
|
|
8398
|
+
};
|
|
8399
|
+
type TypographyV2Props = Omit<TypographyProps, 'fontSize' | 'lineHeight'> & {
|
|
8400
|
+
fontSize?: ObjectDevices<string>;
|
|
8401
|
+
lineHeight?: ObjectDevices<string>;
|
|
8402
|
+
};
|
|
8403
|
+
type TypographyV2Attrs = {
|
|
8404
|
+
bold?: boolean;
|
|
8405
|
+
italic?: boolean;
|
|
8406
|
+
underline?: boolean;
|
|
8407
|
+
color?: ColorValueType;
|
|
8408
|
+
transform?: string;
|
|
8409
|
+
textAlign?: ObjectDevices<AlignProp>;
|
|
8410
|
+
};
|
|
8411
|
+
type CornerRadius = {
|
|
8412
|
+
btlr?: string;
|
|
8413
|
+
btrr?: string;
|
|
8414
|
+
bblr?: string;
|
|
8415
|
+
bbrr?: string;
|
|
8416
|
+
radiusType?: CornerRadiusType;
|
|
8417
|
+
};
|
|
8418
|
+
type CornerRadiusType = 'none' | 'large' | 'medium' | 'small' | 'circle' | 'custom' | 'rounded';
|
|
8419
|
+
type ColorType$1 = NestedKeys<BrandColorObject> | NestedKeys<BackgroundColorObject> | NestedKeys<TextColorObject> | NestedKeys<LineColorObject> | NestedKeys<FuncColorObject>;
|
|
8420
|
+
type FontName = 'body' | 'heading' | 'code';
|
|
8421
|
+
type ColorKey = 'transparent' | 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray';
|
|
8422
|
+
type HexColorType = `#${string}`;
|
|
8423
|
+
type RGBAColorType = `rgba(${number}, ${number}, ${number}, ${number})`;
|
|
8424
|
+
type RGBColorType = `rgb(${number}, ${number}, ${number})`;
|
|
8425
|
+
type HSLColorType = `hsl(${number}, ${number}%, ${number}%)`;
|
|
8426
|
+
type HSLAColorType = `hsla(${number}, ${number}%, ${number}%, ${number})`;
|
|
8427
|
+
type ColorValueType = ColorType$1 | HexColorType | RGBAColorType | RGBColorType | HSLColorType | HSLAColorType | ColorKey;
|
|
8428
|
+
type BrandColorObject = {
|
|
8429
|
+
brand: string;
|
|
8430
|
+
highlight: string;
|
|
8431
|
+
};
|
|
8432
|
+
type BackgroundColorObject = {
|
|
8433
|
+
'bg-1': string;
|
|
8434
|
+
'bg-2': string;
|
|
8435
|
+
'bg-3': string;
|
|
8436
|
+
};
|
|
8437
|
+
type TextColorObject = {
|
|
8438
|
+
'text-1': string;
|
|
8439
|
+
'text-2': string;
|
|
8440
|
+
'text-3': string;
|
|
8441
|
+
};
|
|
8442
|
+
type LineColorObject = {
|
|
8443
|
+
'line-1': string;
|
|
8444
|
+
'line-2': string;
|
|
8445
|
+
'line-3': string;
|
|
8446
|
+
};
|
|
8447
|
+
type FuncColorObject = {
|
|
8448
|
+
info: string;
|
|
8449
|
+
warning: string;
|
|
8450
|
+
success: string;
|
|
8451
|
+
error: string;
|
|
8452
|
+
};
|
|
8453
|
+
type TypographyType = 'heading-1' | 'heading-2' | 'heading-3' | 'subheading-1' | 'subheading-2' | 'subheading-3' | 'paragraph-1' | 'paragraph-2' | 'paragraph-3';
|
|
8454
|
+
type ObjectDeviceGlobalType<T> = {
|
|
8455
|
+
desktop: T;
|
|
8456
|
+
tablet?: T;
|
|
8457
|
+
mobile?: T;
|
|
8458
|
+
};
|
|
8459
|
+
type SpacingType = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
|
|
8460
|
+
type RoundedSize = 'small' | 'medium' | 'large' | 'circle' | 'none' | 'custom' | 'rounded';
|
|
8461
|
+
type ContainerProp = 'width' | 'padding';
|
|
8462
|
+
type GlobalStyleResponsiveConfig = {
|
|
8463
|
+
color?: Partial<Record<ColorType$1, string>>;
|
|
8464
|
+
font?: Partial<Record<FontName, any>>;
|
|
8465
|
+
typography?: Partial<Record<TypographyType, ObjectDeviceGlobalType<TypographyProps>>>;
|
|
8466
|
+
spacing?: Partial<Record<SpacingType, ObjectDeviceGlobalType<string>>>;
|
|
8467
|
+
container?: Partial<Record<ContainerProp, ObjectDeviceGlobalType<string>>>;
|
|
8468
|
+
radius?: Partial<Record<RoundedSize, string>>;
|
|
8469
|
+
theme?: {
|
|
8470
|
+
font?: Partial<Record<FontName, any>>;
|
|
8471
|
+
};
|
|
8472
|
+
};
|
|
8473
|
+
type GlobalStyleConfig = {
|
|
8474
|
+
color?: Partial<Record<ColorType$1, string>>;
|
|
8475
|
+
font?: Partial<Record<FontName, any>>;
|
|
8476
|
+
typography?: Partial<Record<TypographyType, TypographyProps>>;
|
|
8477
|
+
spacing?: Partial<Record<SpacingType, string>>;
|
|
8478
|
+
container?: Partial<Record<ContainerProp, string>>;
|
|
8479
|
+
radius?: Partial<Record<RoundedSize, string>>;
|
|
8480
|
+
theme?: {
|
|
8481
|
+
font?: Partial<Record<FontName, any>>;
|
|
8482
|
+
};
|
|
8483
|
+
};
|
|
8484
|
+
type ShadowStyleApplied = 'text-shadow' | 'box-shadow';
|
|
8485
|
+
type ShadowType = 'shadow-1' | 'shadow-2' | 'shadow-3';
|
|
8486
|
+
type ShadowStyle = {
|
|
8487
|
+
value?: ShadowProps;
|
|
8488
|
+
state?: StateType;
|
|
8489
|
+
styleAppliedFor?: ShadowStyleApplied;
|
|
8490
|
+
isEnableShadow?: boolean;
|
|
8491
|
+
};
|
|
8492
|
+
type ShadowProps = {
|
|
8493
|
+
type?: ShadowType | 'custom' | 'none';
|
|
8494
|
+
angle?: string | number;
|
|
8495
|
+
distance?: string;
|
|
8496
|
+
blur?: string;
|
|
8497
|
+
spread?: string;
|
|
8498
|
+
color?: ColorValueType;
|
|
8499
|
+
};
|
|
8500
|
+
type Border = {
|
|
8501
|
+
borderType?: BorderTypeName;
|
|
8502
|
+
border?: BorderStyle$1;
|
|
8503
|
+
color?: ColorValueType;
|
|
8504
|
+
width?: string;
|
|
8505
|
+
isCustom?: boolean;
|
|
8506
|
+
position?: BorderPosition;
|
|
8507
|
+
borderWidth?: string;
|
|
8508
|
+
};
|
|
8509
|
+
type BorderTypeName = 'none' | 'style-1' | 'style-2' | 'style-3';
|
|
8510
|
+
type BorderStyle$1 = 'none' | 'solid' | 'dotted' | 'dashed';
|
|
8511
|
+
type BorderPosition = 'top' | 'left' | 'right' | 'bottom' | 'all';
|
|
8512
|
+
type SwatchesOptionType = 'radio_buttons' | 'dropdown' | 'color' | 'image' | 'rectangle_list' | 'image_shopify' | string;
|
|
8513
|
+
declare const OptionNormalStyle: string[];
|
|
8514
|
+
declare const OptionSpecialStyle: string[];
|
|
8515
|
+
type SwatchesOptionValue = {
|
|
8516
|
+
label?: string;
|
|
8517
|
+
colors?: string[];
|
|
8518
|
+
imageUrl?: string;
|
|
8519
|
+
};
|
|
8520
|
+
type GlobalSwatchesData = {
|
|
8521
|
+
optionTitle: string;
|
|
8522
|
+
optionType: SwatchesOptionType;
|
|
8523
|
+
optionValues: SwatchesOptionValue[];
|
|
8524
|
+
};
|
|
8525
|
+
|
|
8526
|
+
type ShadowV2ControlType<T> = SharedControlType<T> & {
|
|
8527
|
+
type: 'shadow-v2';
|
|
8528
|
+
value?: ShadowProps;
|
|
8529
|
+
};
|
|
8530
|
+
|
|
8531
|
+
type BackgroundMediaControlType<T> = SharedControlType<T> & {
|
|
8532
|
+
type: 'background-media';
|
|
8533
|
+
value?: BackgroundMedia;
|
|
8534
|
+
showVideo?: Boolean;
|
|
8535
|
+
};
|
|
8536
|
+
type BackgroundMedia = {
|
|
8537
|
+
type: 'color' | 'image' | 'video';
|
|
8538
|
+
color?: string;
|
|
8539
|
+
image?: {
|
|
8540
|
+
src?: string;
|
|
8541
|
+
width?: number;
|
|
8542
|
+
height?: number;
|
|
8543
|
+
backupFileKey?: string;
|
|
8544
|
+
storage?: 'THEME' | 'FILE_CONTENT';
|
|
8545
|
+
backupFilePath?: string;
|
|
8546
|
+
};
|
|
8547
|
+
size?: BgSize;
|
|
8548
|
+
position?: BgPosition;
|
|
8549
|
+
repeat?: BgRepeat;
|
|
8550
|
+
attachment?: BgAttachment;
|
|
8551
|
+
video?: string;
|
|
8552
|
+
videoHtml5?: string;
|
|
8553
|
+
videoType?: 'youtube' | 'html5';
|
|
8554
|
+
loop?: boolean;
|
|
8555
|
+
lazyLoad?: boolean;
|
|
8556
|
+
preload?: boolean;
|
|
8557
|
+
};
|
|
8558
|
+
type BgSize = 'cover' | 'contain';
|
|
8559
|
+
type BgRepeat = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
|
8560
|
+
type BgPosition = {
|
|
8561
|
+
x: number;
|
|
8562
|
+
y: number;
|
|
8563
|
+
};
|
|
8564
|
+
type BgAttachment = 'scroll' | 'fixed' | 'local';
|
|
8565
|
+
|
|
8566
|
+
type SwitchControlType<T> = SharedControlType<T> & {
|
|
8567
|
+
type: 'switch';
|
|
8568
|
+
readonly?: boolean;
|
|
8569
|
+
};
|
|
8570
|
+
|
|
8571
|
+
type ImageV2ControlType<T> = SharedControlType<T> & {
|
|
8572
|
+
type: 'image-v2';
|
|
8573
|
+
};
|
|
8574
|
+
|
|
8575
|
+
type ControlProp<T> = ProductBundleChildControlType<T> | SelectProductBundleControlType<T> | AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | OpenLinkControlType<T> | SelectControlType<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 | 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$1<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> | BackgroundVideoType<T> | SwitchControlType<T> | ImageV2ControlType<T>;
|
|
8174
8576
|
type ControlTriggerAction = {
|
|
8175
8577
|
controlId: string;
|
|
8176
8578
|
newValue?: any;
|
|
@@ -8243,6 +8645,7 @@ type ComponentSetting<P extends BaseProps> = {
|
|
|
8243
8645
|
};
|
|
8244
8646
|
};
|
|
8245
8647
|
ui?: ControlUI[];
|
|
8648
|
+
uiV2?: SettingUIGroup[];
|
|
8246
8649
|
presets?: ComponentPreset[];
|
|
8247
8650
|
locales?: Record<string, any>;
|
|
8248
8651
|
};
|
|
@@ -30730,172 +31133,6 @@ declare namespace appAPI {
|
|
|
30730
31133
|
};
|
|
30731
31134
|
}
|
|
30732
31135
|
|
|
30733
|
-
type NameDevices = 'desktop' | 'tablet' | 'mobile';
|
|
30734
|
-
type TypographyV2Family = string | {
|
|
30735
|
-
value: string;
|
|
30736
|
-
type: TypographyV2FontFamilyType;
|
|
30737
|
-
};
|
|
30738
|
-
type TypographyV2FontFamilyType = 'google' | 'custom' | 'theme' | 'bunny';
|
|
30739
|
-
|
|
30740
|
-
/**
|
|
30741
|
-
* @deprecated Please use `TypographySettingV2`
|
|
30742
|
-
*/
|
|
30743
|
-
type TypographySetting = {
|
|
30744
|
-
type?: TypographyType;
|
|
30745
|
-
custom?: ObjectDevices<TypographyProps>;
|
|
30746
|
-
};
|
|
30747
|
-
type TypographySettingV2 = {
|
|
30748
|
-
type?: TypographyType;
|
|
30749
|
-
custom?: TypographyV2Props;
|
|
30750
|
-
attrs?: TypographyV2Attrs;
|
|
30751
|
-
};
|
|
30752
|
-
type SizeSetting = {
|
|
30753
|
-
type?: SizeType;
|
|
30754
|
-
custom?: ObjectDevices<SizeProps>;
|
|
30755
|
-
};
|
|
30756
|
-
type SizeProps = {
|
|
30757
|
-
horizontal?: string;
|
|
30758
|
-
vertical?: string;
|
|
30759
|
-
};
|
|
30760
|
-
type SizeType = 'medium' | 'large' | 'small' | 'none';
|
|
30761
|
-
type TypographyProps = {
|
|
30762
|
-
fontSize?: string;
|
|
30763
|
-
fontWeight?: string | number;
|
|
30764
|
-
fontStyle?: string;
|
|
30765
|
-
fontFamily?: TypographyV2Family;
|
|
30766
|
-
lineHeight?: string;
|
|
30767
|
-
letterSpacing?: string;
|
|
30768
|
-
fallbackFontFamily?: string;
|
|
30769
|
-
textShadow?: ShadowProps;
|
|
30770
|
-
hasShadowText?: boolean;
|
|
30771
|
-
isCustom?: boolean;
|
|
30772
|
-
};
|
|
30773
|
-
type TypographyV2Props = Omit<TypographyProps, 'fontSize' | 'lineHeight'> & {
|
|
30774
|
-
fontSize?: ObjectDevices<string>;
|
|
30775
|
-
lineHeight?: ObjectDevices<string>;
|
|
30776
|
-
};
|
|
30777
|
-
type TypographyV2Attrs = {
|
|
30778
|
-
bold?: boolean;
|
|
30779
|
-
italic?: boolean;
|
|
30780
|
-
underline?: boolean;
|
|
30781
|
-
color?: ColorValueType;
|
|
30782
|
-
transform?: string;
|
|
30783
|
-
};
|
|
30784
|
-
type CornerRadius = {
|
|
30785
|
-
btlr?: string;
|
|
30786
|
-
btrr?: string;
|
|
30787
|
-
bblr?: string;
|
|
30788
|
-
bbrr?: string;
|
|
30789
|
-
radiusType?: CornerRadiusType;
|
|
30790
|
-
};
|
|
30791
|
-
type CornerRadiusType = 'none' | 'large' | 'medium' | 'small' | 'circle' | 'custom';
|
|
30792
|
-
type ColorType$1 = NestedKeys<BrandColorObject> | NestedKeys<BackgroundColorObject> | NestedKeys<TextColorObject> | NestedKeys<LineColorObject> | NestedKeys<FuncColorObject>;
|
|
30793
|
-
type FontName = 'body' | 'heading' | 'code';
|
|
30794
|
-
type ColorKey = 'transparent' | 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray';
|
|
30795
|
-
type HexColorType = `#${string}`;
|
|
30796
|
-
type RGBAColorType = `rgba(${number}, ${number}, ${number}, ${number})`;
|
|
30797
|
-
type RGBColorType = `rgb(${number}, ${number}, ${number})`;
|
|
30798
|
-
type HSLColorType = `hsl(${number}, ${number}%, ${number}%)`;
|
|
30799
|
-
type HSLAColorType = `hsla(${number}, ${number}%, ${number}%, ${number})`;
|
|
30800
|
-
type ColorValueType = ColorType$1 | HexColorType | RGBAColorType | RGBColorType | HSLColorType | HSLAColorType | ColorKey;
|
|
30801
|
-
type BrandColorObject = {
|
|
30802
|
-
brand: string;
|
|
30803
|
-
highlight: string;
|
|
30804
|
-
};
|
|
30805
|
-
type BackgroundColorObject = {
|
|
30806
|
-
'bg-1': string;
|
|
30807
|
-
'bg-2': string;
|
|
30808
|
-
'bg-3': string;
|
|
30809
|
-
};
|
|
30810
|
-
type TextColorObject = {
|
|
30811
|
-
'text-1': string;
|
|
30812
|
-
'text-2': string;
|
|
30813
|
-
'text-3': string;
|
|
30814
|
-
};
|
|
30815
|
-
type LineColorObject = {
|
|
30816
|
-
'line-1': string;
|
|
30817
|
-
'line-2': string;
|
|
30818
|
-
'line-3': string;
|
|
30819
|
-
};
|
|
30820
|
-
type FuncColorObject = {
|
|
30821
|
-
info: string;
|
|
30822
|
-
warning: string;
|
|
30823
|
-
success: string;
|
|
30824
|
-
error: string;
|
|
30825
|
-
};
|
|
30826
|
-
type TypographyType = 'heading-1' | 'heading-2' | 'heading-3' | 'subheading-1' | 'subheading-2' | 'subheading-3' | 'paragraph-1' | 'paragraph-2' | 'paragraph-3';
|
|
30827
|
-
type ObjectDeviceGlobalType<T> = {
|
|
30828
|
-
desktop: T;
|
|
30829
|
-
tablet?: T;
|
|
30830
|
-
mobile?: T;
|
|
30831
|
-
};
|
|
30832
|
-
type SpacingType = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
|
|
30833
|
-
type RoundedSize = 'small' | 'medium' | 'large' | 'circle' | 'none' | 'custom';
|
|
30834
|
-
type ContainerProp = 'width' | 'padding';
|
|
30835
|
-
type GlobalStyleResponsiveConfig = {
|
|
30836
|
-
color?: Partial<Record<ColorType$1, string>>;
|
|
30837
|
-
font?: Partial<Record<FontName, any>>;
|
|
30838
|
-
typography?: Partial<Record<TypographyType, ObjectDeviceGlobalType<TypographyProps>>>;
|
|
30839
|
-
spacing?: Partial<Record<SpacingType, ObjectDeviceGlobalType<string>>>;
|
|
30840
|
-
container?: Partial<Record<ContainerProp, ObjectDeviceGlobalType<string>>>;
|
|
30841
|
-
radius?: Partial<Record<RoundedSize, string>>;
|
|
30842
|
-
theme?: {
|
|
30843
|
-
font?: Partial<Record<FontName, any>>;
|
|
30844
|
-
};
|
|
30845
|
-
};
|
|
30846
|
-
type GlobalStyleConfig = {
|
|
30847
|
-
color?: Partial<Record<ColorType$1, string>>;
|
|
30848
|
-
font?: Partial<Record<FontName, any>>;
|
|
30849
|
-
typography?: Partial<Record<TypographyType, TypographyProps>>;
|
|
30850
|
-
spacing?: Partial<Record<SpacingType, string>>;
|
|
30851
|
-
container?: Partial<Record<ContainerProp, string>>;
|
|
30852
|
-
radius?: Partial<Record<RoundedSize, string>>;
|
|
30853
|
-
theme?: {
|
|
30854
|
-
font?: Partial<Record<FontName, any>>;
|
|
30855
|
-
};
|
|
30856
|
-
};
|
|
30857
|
-
type ShadowStyleApplied = 'text-shadow' | 'box-shadow';
|
|
30858
|
-
type ShadowType = 'shadow-1' | 'shadow-2' | 'shadow-3';
|
|
30859
|
-
type ShadowStyle = {
|
|
30860
|
-
value?: ShadowProps;
|
|
30861
|
-
state?: StateType;
|
|
30862
|
-
styleAppliedFor?: ShadowStyleApplied;
|
|
30863
|
-
isEnableShadow?: boolean;
|
|
30864
|
-
};
|
|
30865
|
-
type ShadowProps = {
|
|
30866
|
-
type?: ShadowType | 'custom';
|
|
30867
|
-
angle?: string | number;
|
|
30868
|
-
distance?: string;
|
|
30869
|
-
blur?: string;
|
|
30870
|
-
spread?: string;
|
|
30871
|
-
color?: ColorValueType;
|
|
30872
|
-
};
|
|
30873
|
-
type Border = {
|
|
30874
|
-
borderType?: BorderTypeName;
|
|
30875
|
-
border?: BorderStyle$1;
|
|
30876
|
-
color?: ColorValueType;
|
|
30877
|
-
width?: string;
|
|
30878
|
-
isCustom?: boolean;
|
|
30879
|
-
position?: BorderPosition;
|
|
30880
|
-
borderWidth?: string;
|
|
30881
|
-
};
|
|
30882
|
-
type BorderTypeName = 'none' | 'style-1' | 'style-2' | 'style-3';
|
|
30883
|
-
type BorderStyle$1 = 'none' | 'solid' | 'dotted' | 'dashed';
|
|
30884
|
-
type BorderPosition = 'top' | 'left' | 'right' | 'bottom' | 'all';
|
|
30885
|
-
type SwatchesOptionType = 'radio_buttons' | 'dropdown' | 'color' | 'image' | 'rectangle_list' | 'image_shopify' | string;
|
|
30886
|
-
declare const OptionNormalStyle: string[];
|
|
30887
|
-
declare const OptionSpecialStyle: string[];
|
|
30888
|
-
type SwatchesOptionValue = {
|
|
30889
|
-
label?: string;
|
|
30890
|
-
colors?: string[];
|
|
30891
|
-
imageUrl?: string;
|
|
30892
|
-
};
|
|
30893
|
-
type GlobalSwatchesData = {
|
|
30894
|
-
optionTitle: string;
|
|
30895
|
-
optionType: SwatchesOptionType;
|
|
30896
|
-
optionValues: SwatchesOptionValue[];
|
|
30897
|
-
};
|
|
30898
|
-
|
|
30899
31136
|
type ProductInputAnalytic = {
|
|
30900
31137
|
id: string;
|
|
30901
31138
|
name: string;
|
|
@@ -31732,6 +31969,7 @@ declare const handleConvertBorderColor: (value?: BorderStyle) => React.CSSProper
|
|
|
31732
31969
|
declare const handleConvertClassColor: (value?: BorderStyle) => string | undefined;
|
|
31733
31970
|
declare const handleConvertClassColorDynamicBtn: (value?: BorderStyle) => string | undefined;
|
|
31734
31971
|
declare const composeBorderCss: (borderV?: Border | undefined) => string;
|
|
31972
|
+
declare const composeBorderResponsive: (borderValue?: ObjectDevices<Border>) => React.CSSProperties;
|
|
31735
31973
|
|
|
31736
31974
|
type DotStyle = 'none' | 'inside' | 'outside';
|
|
31737
31975
|
declare const getCarouselContainerHeight: <T>(dotStyle?: Partial<Record<NameDevices$1, T>> | undefined) => {
|
|
@@ -41595,4 +41833,4 @@ declare const useInteraction: () => {
|
|
|
41595
41833
|
interactionListenerLoaded: (callback: () => void) => void;
|
|
41596
41834
|
};
|
|
41597
41835
|
|
|
41598
|
-
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, Background, BaseProps, BasePropsWrap, BlockEntity, 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, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, 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, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedShopMetasDocument, PublishedShopMetasQueryResponse, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, QueryPublishedShopMetasArgs, 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, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, SettingByAnimationType, SettingByAnimationValues, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, 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, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterCornerInStyle, filterToolbarPreview, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAppBlocks, getAspectRatioGlobalSize, getBgImageByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStyleShadow, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBgColor, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, 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, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
41836
|
+
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, Background, BackgroundImageValue, BackgroundMedia, BackgroundVideoValue, BaseProps, BasePropsWrap, BlockEntity, 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, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, 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, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedShopMetasDocument, PublishedShopMetasQueryResponse, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, QueryPublishedShopMetasArgs, 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, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, SettingByAnimationType, SettingByAnimationValues, SettingUIGroup, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, 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, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeBorderResponsive, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterCornerInStyle, filterToolbarPreview, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAppBlocks, getAspectRatioGlobalSize, getBgImageByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStyleShadow, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBgColor, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, 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, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.58.0-dev.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"type-check": "yarn tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@gem-sdk/adapter-shopify": "1.
|
|
31
|
-
"@gem-sdk/styles": "1.
|
|
30
|
+
"@gem-sdk/adapter-shopify": "1.58.0-dev.13",
|
|
31
|
+
"@gem-sdk/styles": "1.58.0-dev.13",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|