@gem-sdk/core 1.48.0-dev.0 → 1.48.0
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/components/ComponentToolbarPreview.js +100 -114
- package/dist/cjs/components/ComponentWrapperPreview.js +2 -16
- package/dist/cjs/components/Render.liquid.js +6 -21
- package/dist/cjs/components/RenderPreview.js +0 -1
- package/dist/cjs/components/constant.js +1 -2
- package/dist/cjs/contexts/PageContext.js +1 -29
- package/dist/cjs/contexts/SectionContext.js +1 -0
- package/dist/cjs/helpers/colors.js +1 -1
- package/dist/cjs/helpers/shadow.js +1 -1
- package/dist/cjs/helpers/third-party/addAppBlockId.js +1 -1
- package/dist/cjs/helpers/third-party/appConfig.js +0 -14
- package/dist/cjs/helpers/third-party/appSetting.js +0 -22
- package/dist/cjs/helpers/third-party/constant.js +1 -3
- package/dist/cjs/hooks/animation/useApplyAnimation.js +0 -1
- package/dist/cjs/hooks/useFormatMoney.js +60 -61
- package/dist/cjs/index.js +0 -12
- package/dist/esm/components/ComponentToolbarPreview.js +100 -114
- package/dist/esm/components/ComponentWrapperPreview.js +2 -16
- package/dist/esm/components/Render.liquid.js +6 -21
- package/dist/esm/components/RenderPreview.js +0 -1
- package/dist/esm/components/constant.js +1 -2
- package/dist/esm/contexts/PageContext.js +1 -29
- package/dist/esm/contexts/SectionContext.js +1 -0
- package/dist/esm/helpers/colors.js +1 -1
- package/dist/esm/helpers/shadow.js +1 -1
- package/dist/esm/helpers/third-party/addAppBlockId.js +1 -1
- package/dist/esm/helpers/third-party/appConfig.js +1 -13
- package/dist/esm/helpers/third-party/appSetting.js +0 -22
- package/dist/esm/helpers/third-party/constant.js +2 -4
- package/dist/esm/hooks/animation/useApplyAnimation.js +0 -1
- package/dist/esm/hooks/useFormatMoney.js +61 -61
- package/dist/esm/index.js +1 -3
- package/dist/types/index.d.ts +3 -168
- package/package.json +3 -3
- package/dist/cjs/components/InteractionSuffix.js +0 -107
- package/dist/cjs/helpers/align.js +0 -19
- package/dist/cjs/hooks/useInteraction.js +0 -19
- package/dist/cjs/types/custom.js +0 -44
- package/dist/esm/components/InteractionSuffix.js +0 -105
- package/dist/esm/helpers/align.js +0 -17
- package/dist/esm/hooks/useInteraction.js +0 -17
- package/dist/esm/types/custom.js +0 -44
|
@@ -117,7 +117,7 @@ const getGlobalColorStateStyle = (type, data)=>{
|
|
|
117
117
|
return Object.fromEntries(Object.entries(data).map(([state, value])=>{
|
|
118
118
|
if (state === 'active') return [];
|
|
119
119
|
return [
|
|
120
|
-
`-${stateMapping?.[state]
|
|
120
|
+
`-${stateMapping?.[state]}-${type}`,
|
|
121
121
|
getSingleColorVariable(value)
|
|
122
122
|
];
|
|
123
123
|
}).filter(isDefined));
|
|
@@ -25,7 +25,7 @@ const getStyleShadow = (shadowStyle, isActiveState = false)=>{
|
|
|
25
25
|
if (typeof value.distance == 'undefined') return {};
|
|
26
26
|
const { value: distance, unit: unitDistance } = parseValueWithUnit(`${value?.distance}`);
|
|
27
27
|
return {
|
|
28
|
-
[`-${!isActiveState ? stateMapping?.[state]
|
|
28
|
+
[`-${!isActiveState ? stateMapping?.[state] : ''}-${getShortName(styleAppliedFor)}`]: 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
29
|
};
|
|
30
30
|
};
|
|
31
31
|
const getStyleShadowState = (shadow, styleAppliedFor, isEnableShadow)=>{
|
|
@@ -11,7 +11,7 @@ const addAppBlockId = (component)=>{
|
|
|
11
11
|
};
|
|
12
12
|
const handleSetBlockId = (component)=>{
|
|
13
13
|
const { tag, uid } = component;
|
|
14
|
-
if (component.settings
|
|
14
|
+
if (component.settings?.appBlockId === undefined) return component;
|
|
15
15
|
component.settings.appBlockId = composeAppBlockId(tag, uid);
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -40,17 +40,5 @@ const ShopifyFormsConfig = {
|
|
|
40
40
|
appId: '8744a304-fcb1-4347-b211-bb6b4759a76a'
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
const ReviewxpoProductReviewsAppConfig = {
|
|
44
|
-
ReviewxpoProductReviewsApp: {
|
|
45
|
-
appName: 'reviewxpo-product-reviews-app',
|
|
46
|
-
appId: '3e3d94fa-8b53-4134-942c-f7662dc9282f'
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
const PumperBundlesVolumeDiscountConfig = {
|
|
50
|
-
PumperBundlesVolumeDiscount: {
|
|
51
|
-
appName: 'Pumper Bundles Volume Discount',
|
|
52
|
-
appId: '0856870d-2aca-4b1e-a662-cf1797f61270'
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
43
|
|
|
56
|
-
export { BonLoyaltyRewardsReferralsConfig, LoopSubscriptionsConfig,
|
|
44
|
+
export { BonLoyaltyRewardsReferralsConfig, LoopSubscriptionsConfig, RechargeSubscriptionsConfig, SelleasyConfig, ShopifyFormsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig };
|
|
@@ -83,29 +83,7 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
83
83
|
return currentSetting;
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
const ReviewxpoProductReviewsApp = {
|
|
87
|
-
ReviewxpoProductReviewsApp: {
|
|
88
|
-
'five-star-badge-widget': null,
|
|
89
|
-
'allreviews-widget': null,
|
|
90
|
-
'carousel-widget': null,
|
|
91
|
-
'gallery-widget': null,
|
|
92
|
-
'badge-widget': null,
|
|
93
|
-
'testimonial-widget': null,
|
|
94
|
-
'star-widget': null,
|
|
95
|
-
'revews-widget': null
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
const PumperBundlesVolumeDiscount = {
|
|
99
|
-
PumperBundlesVolumeDiscount: {
|
|
100
|
-
'app-block': {
|
|
101
|
-
selected_product: '{{product}}',
|
|
102
|
-
using_page_builder: false
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
86
|
const composeSettingsByWidgetType = {
|
|
107
|
-
...PumperBundlesVolumeDiscount,
|
|
108
|
-
...ReviewxpoProductReviewsApp,
|
|
109
87
|
...ShopifyForms,
|
|
110
88
|
...SkioSubscriptionsYcS20,
|
|
111
89
|
...LoopSubscriptions,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig
|
|
1
|
+
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -7,9 +7,7 @@ const mapShopifyAppMeta = {
|
|
|
7
7
|
...SelleasyConfig,
|
|
8
8
|
...LoopSubscriptionsConfig,
|
|
9
9
|
...SkioSubscriptionsYcS20Config,
|
|
10
|
-
...ShopifyFormsConfig
|
|
11
|
-
...ReviewxpoProductReviewsAppConfig,
|
|
12
|
-
...PumperBundlesVolumeDiscountConfig
|
|
10
|
+
...ShopifyFormsConfig
|
|
13
11
|
};
|
|
14
12
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
15
13
|
|
|
@@ -4,7 +4,6 @@ import { useAnimationTarget } from './useAnimationTarget.js';
|
|
|
4
4
|
import { useAnimationConfig } from './useAnimationConfig.js';
|
|
5
5
|
import { useAnimationActions } from './useAnimationActions.js';
|
|
6
6
|
import { useAnimationPreview } from './useAnimationPreview.js';
|
|
7
|
-
import '../../types/custom.js';
|
|
8
7
|
import { AnimationType } from '../../types/animations.js';
|
|
9
8
|
|
|
10
9
|
const useApplyAnimation = ({ props })=>{
|
|
@@ -3,69 +3,69 @@ import { useMoneyFormat } from './shop.js';
|
|
|
3
3
|
const shopifyPriceRounding = (amount, precision)=>{
|
|
4
4
|
return parseFloat(`${amount}`).toFixed(Number(precision) + 1).slice(0, -1);
|
|
5
5
|
};
|
|
6
|
-
const formatMoney = function(cents, format) {
|
|
7
|
-
let value = '';
|
|
8
|
-
const placeholderRegex = /\{\{\s*(\w+)\s*\}\}/;
|
|
9
|
-
const formatString = format || '${{amount}}';
|
|
10
|
-
/**
|
|
11
|
-
* check default
|
|
12
|
-
* @param opt opt
|
|
13
|
-
* @param def def
|
|
14
|
-
* @returns any
|
|
15
|
-
*/ function defaultOption(opt, def) {
|
|
16
|
-
return typeof opt == 'undefined' ? def : opt;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* formatWithDelimiters
|
|
20
|
-
* @param number number
|
|
21
|
-
* @param precision precision
|
|
22
|
-
* @param thousands thousands
|
|
23
|
-
* @param decimal decimal
|
|
24
|
-
* @returns any
|
|
25
|
-
*/ // eslint-disable-next-line max-params
|
|
26
|
-
function formatWithDelimiters(number, precision, thousands, decimal) {
|
|
27
|
-
precision = defaultOption(precision, 2);
|
|
28
|
-
thousands = defaultOption(thousands, ',');
|
|
29
|
-
decimal = defaultOption(decimal, '.');
|
|
30
|
-
if (isNaN(number) || number == null) {
|
|
31
|
-
return 0;
|
|
32
|
-
}
|
|
33
|
-
// shopify làm tròn bằng cách cắt đi các số ở đằng sau chứ không sử dụng toFixed để làm tròn như toán học
|
|
34
|
-
number = shopifyPriceRounding(number, Number(precision));
|
|
35
|
-
const parts = number.split('.'), dollars = parts[0]?.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1' + thousands), cents = parts[1] ? decimal + parts[1] : '';
|
|
36
|
-
return dollars + cents;
|
|
37
|
-
}
|
|
38
|
-
switch(formatString.match(placeholderRegex)[1]){
|
|
39
|
-
case 'amount':
|
|
40
|
-
value = formatWithDelimiters(cents, 2);
|
|
41
|
-
break;
|
|
42
|
-
case 'amount_no_decimals':
|
|
43
|
-
value = formatWithDelimiters(cents, 0);
|
|
44
|
-
break;
|
|
45
|
-
case 'amount_with_comma_separator':
|
|
46
|
-
value = formatWithDelimiters(cents, 2, '.', ',');
|
|
47
|
-
break;
|
|
48
|
-
case 'amount_no_decimals_with_comma_separator':
|
|
49
|
-
value = formatWithDelimiters(cents, 0, '.', ',');
|
|
50
|
-
break;
|
|
51
|
-
case 'amount_with_apostrophe_separator':
|
|
52
|
-
value = formatWithDelimiters(cents, 2, "'", '.');
|
|
53
|
-
break;
|
|
54
|
-
case 'amount_no_decimals_with_space_separator':
|
|
55
|
-
value = formatWithDelimiters(cents, 0, ' ');
|
|
56
|
-
break;
|
|
57
|
-
case 'amount_with_space_separator':
|
|
58
|
-
value = formatWithDelimiters(cents, 2, ' ', ',');
|
|
59
|
-
break;
|
|
60
|
-
case 'amount_with_period_and_space_separator':
|
|
61
|
-
value = formatWithDelimiters(cents, 2, ' ', '.');
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
return formatString.replace(placeholderRegex, value);
|
|
65
|
-
};
|
|
66
6
|
const useFormatMoney = (amount, withCurrency)=>{
|
|
67
7
|
const { moneyFormat, moneyWithCurrencyFormat } = useMoneyFormat();
|
|
8
|
+
const formatMoney = function(cents, format) {
|
|
9
|
+
let value = '';
|
|
10
|
+
const placeholderRegex = /\{\{\s*(\w+)\s*\}\}/;
|
|
11
|
+
const formatString = format || '${{amount}}';
|
|
12
|
+
/**
|
|
13
|
+
* check default
|
|
14
|
+
* @param opt opt
|
|
15
|
+
* @param def def
|
|
16
|
+
* @returns any
|
|
17
|
+
*/ function defaultOption(opt, def) {
|
|
18
|
+
return typeof opt == 'undefined' ? def : opt;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* formatWithDelimiters
|
|
22
|
+
* @param number number
|
|
23
|
+
* @param precision precision
|
|
24
|
+
* @param thousands thousands
|
|
25
|
+
* @param decimal decimal
|
|
26
|
+
* @returns any
|
|
27
|
+
*/ // eslint-disable-next-line max-params
|
|
28
|
+
function formatWithDelimiters(number, precision, thousands, decimal) {
|
|
29
|
+
precision = defaultOption(precision, 2);
|
|
30
|
+
thousands = defaultOption(thousands, ',');
|
|
31
|
+
decimal = defaultOption(decimal, '.');
|
|
32
|
+
if (isNaN(number) || number == null) {
|
|
33
|
+
return 0;
|
|
34
|
+
}
|
|
35
|
+
// shopify làm tròn bằng cách cắt đi các số ở đằng sau chứ không sử dụng toFixed để làm tròn như toán học
|
|
36
|
+
number = shopifyPriceRounding(number, Number(precision));
|
|
37
|
+
const parts = number.split('.'), dollars = parts[0]?.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1' + thousands), cents = parts[1] ? decimal + parts[1] : '';
|
|
38
|
+
return dollars + cents;
|
|
39
|
+
}
|
|
40
|
+
switch(formatString.match(placeholderRegex)[1]){
|
|
41
|
+
case 'amount':
|
|
42
|
+
value = formatWithDelimiters(cents, 2);
|
|
43
|
+
break;
|
|
44
|
+
case 'amount_no_decimals':
|
|
45
|
+
value = formatWithDelimiters(cents, 0);
|
|
46
|
+
break;
|
|
47
|
+
case 'amount_with_comma_separator':
|
|
48
|
+
value = formatWithDelimiters(cents, 2, '.', ',');
|
|
49
|
+
break;
|
|
50
|
+
case 'amount_no_decimals_with_comma_separator':
|
|
51
|
+
value = formatWithDelimiters(cents, 0, '.', ',');
|
|
52
|
+
break;
|
|
53
|
+
case 'amount_with_apostrophe_separator':
|
|
54
|
+
value = formatWithDelimiters(cents, 2, "'", '.');
|
|
55
|
+
break;
|
|
56
|
+
case 'amount_no_decimals_with_space_separator':
|
|
57
|
+
value = formatWithDelimiters(cents, 0, ' ');
|
|
58
|
+
break;
|
|
59
|
+
case 'amount_with_space_separator':
|
|
60
|
+
value = formatWithDelimiters(cents, 2, ' ', ',');
|
|
61
|
+
break;
|
|
62
|
+
case 'amount_with_period_and_space_separator':
|
|
63
|
+
value = formatWithDelimiters(cents, 2, ' ', '.');
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
return formatString.replace(placeholderRegex, value);
|
|
67
|
+
};
|
|
68
68
|
return withCurrency ? formatMoney(`${amount}`, moneyWithCurrencyFormat || moneyFormat) : formatMoney(`${amount}`, moneyFormat);
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
export {
|
|
71
|
+
export { shopifyPriceRounding, useFormatMoney };
|
package/dist/esm/index.js
CHANGED
|
@@ -61,7 +61,6 @@ export { composePositionLineHeight, composePostionIconList } from './helpers/ico
|
|
|
61
61
|
export { isDefined } from './helpers/is-defined.js';
|
|
62
62
|
export { composeGridLayout, convertOldLayout, gridToArrayRegex, optionLayoutStyle } from './helpers/layout.js';
|
|
63
63
|
export { makeAspectRatio, makeGlobalSizeHeightResponsive, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleState, makeWidth, removeNullUndefined } from './helpers/make-style.js';
|
|
64
|
-
export { convertTextAlignToJustify } from './helpers/align.js';
|
|
65
64
|
export { checkAvailableVariantInStock, getSelectedVariant, parseSelectedOption } from './helpers/product.js';
|
|
66
65
|
export { generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey } from './helpers/query.js';
|
|
67
66
|
export { composeCornerCss, composeRadius, composeRadiusResponsive, getCornerCSSFromGlobal, getCustomRadius, getRadiusCSSFromGlobal, getRadiusStyleActiveState } from './helpers/radius.js';
|
|
@@ -82,7 +81,7 @@ export { useCollectionsQuery } from './hooks/shop/use-collections-query.js';
|
|
|
82
81
|
export { useProductQuery } from './hooks/shop/use-product-query.js';
|
|
83
82
|
export { useProductsQuery, useProductsQueryAll } from './hooks/shop/use-products-query.js';
|
|
84
83
|
export { useCurrentDevice } from './hooks/use-current-device.js';
|
|
85
|
-
export {
|
|
84
|
+
export { shopifyPriceRounding, useFormatMoney } from './hooks/useFormatMoney.js';
|
|
86
85
|
export { useLazyVideo } from './hooks/use-lazy-video.js';
|
|
87
86
|
export { default as useCartId } from './hooks/useCartId.js';
|
|
88
87
|
export { default as useCartLine } from './hooks/useCartLine.js';
|
|
@@ -99,7 +98,6 @@ export { useProductList, useProductListProducts, useProductListSettings, useProd
|
|
|
99
98
|
export { default as useSuspenseFetch } from './hooks/useSuspenseFetch.js';
|
|
100
99
|
export { default as useSwatchesOptions } from './hooks/useSwatchesOptions.js';
|
|
101
100
|
export { default as useInitialSwatchesOptions } from './hooks/useInitialSwatchesOptions.js';
|
|
102
|
-
export { InteractionTargetEvent, InteractionTriggerEvent } from './types/custom.js';
|
|
103
101
|
import * as shop from './types/shop.js';
|
|
104
102
|
export { shop as ShopType };
|
|
105
103
|
import * as appAPI from './types/appAPI.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6832,7 +6832,6 @@ type ImageShape$1 = {
|
|
|
6832
6832
|
type SizeSettingGlobal = {
|
|
6833
6833
|
shape?: 'square' | 'vertical' | 'horizontal' | 'custom' | 'original';
|
|
6834
6834
|
shapeLinked?: boolean;
|
|
6835
|
-
disableShapeLinked?: boolean;
|
|
6836
6835
|
shapeValue?: string;
|
|
6837
6836
|
widthHeightLinked?: boolean;
|
|
6838
6837
|
padding?: {
|
|
@@ -7228,7 +7227,6 @@ type PositionControlType<T> = SharedControlType<T> & {
|
|
|
7228
7227
|
|
|
7229
7228
|
type PositionSquareControlType<T> = SharedControlType<T> & {
|
|
7230
7229
|
type: 'position:square';
|
|
7231
|
-
ignoreValue?: string[];
|
|
7232
7230
|
};
|
|
7233
7231
|
|
|
7234
7232
|
type RadioGroupControlType = {
|
|
@@ -7248,6 +7246,7 @@ type RangeControlType<T> = SharedControlType<T> & {
|
|
|
7248
7246
|
units?: string[];
|
|
7249
7247
|
disableOnChange?: boolean;
|
|
7250
7248
|
useOnlyUnitInit?: boolean;
|
|
7249
|
+
ignoreMax?: boolean;
|
|
7251
7250
|
hideUnit?: boolean;
|
|
7252
7251
|
hideInput?: boolean;
|
|
7253
7252
|
} & OnlyOne<{
|
|
@@ -7384,8 +7383,6 @@ type TextareaControlType<T> = SharedControlType<T> & {
|
|
|
7384
7383
|
minHeight?: number;
|
|
7385
7384
|
maxWidth?: number;
|
|
7386
7385
|
autoHeight?: boolean;
|
|
7387
|
-
defaultRows?: number;
|
|
7388
|
-
showPlusBtn?: boolean;
|
|
7389
7386
|
suggestContents?: {
|
|
7390
7387
|
message: string;
|
|
7391
7388
|
eg?: string;
|
|
@@ -7437,7 +7434,6 @@ type BehaviorStateControlType<T> = {
|
|
|
7437
7434
|
type BoxShadowControlType<T> = SharedControlType<T> & {
|
|
7438
7435
|
id?: string;
|
|
7439
7436
|
type: 'boxShadow';
|
|
7440
|
-
hideOptions?: string[];
|
|
7441
7437
|
popup?: boolean;
|
|
7442
7438
|
};
|
|
7443
7439
|
|
|
@@ -7823,8 +7819,6 @@ type SizeSetting$1<T> = SharedControlType<T> & {
|
|
|
7823
7819
|
hiddenShowMore?: boolean;
|
|
7824
7820
|
sizePaddingInput?: 'normal' | 'small';
|
|
7825
7821
|
lockShapeValue?: boolean;
|
|
7826
|
-
isShowResponsive?: boolean;
|
|
7827
|
-
disableShapeLinkedTooltip?: string;
|
|
7828
7822
|
};
|
|
7829
7823
|
|
|
7830
7824
|
type ChildIconType<T> = SharedControlType<T> & {
|
|
@@ -7865,7 +7859,6 @@ type ParallaxScrollingType<T> = SharedControlType<T> & {
|
|
|
7865
7859
|
|
|
7866
7860
|
type BackgroundColorPickerType<T> = SharedControlType<T> & {
|
|
7867
7861
|
type: 'background-color-picker';
|
|
7868
|
-
mode?: 'both' | 'solid' | 'gradient';
|
|
7869
7862
|
popup?: boolean;
|
|
7870
7863
|
readonly?: boolean;
|
|
7871
7864
|
};
|
|
@@ -8021,39 +8014,7 @@ type ButtonLayoutType<T> = SharedControlType<T> & {
|
|
|
8021
8014
|
}[];
|
|
8022
8015
|
};
|
|
8023
8016
|
|
|
8024
|
-
type
|
|
8025
|
-
type: 'shape-selector';
|
|
8026
|
-
};
|
|
8027
|
-
|
|
8028
|
-
type DisplayTriggerControlType<T> = SharedControlType<T> & {
|
|
8029
|
-
type: 'display-trigger-badge';
|
|
8030
|
-
};
|
|
8031
|
-
|
|
8032
|
-
type CustomPositionControlType<T> = SharedControlType<T> & {
|
|
8033
|
-
type: 'custom-position';
|
|
8034
|
-
ignoreValue?: string[];
|
|
8035
|
-
topGap?: string;
|
|
8036
|
-
leftGap?: string;
|
|
8037
|
-
rightGap?: string;
|
|
8038
|
-
bottomGap?: string;
|
|
8039
|
-
};
|
|
8040
|
-
|
|
8041
|
-
type DealControlType<T> = SharedControlType<T> & {
|
|
8042
|
-
type: 'bundleItem';
|
|
8043
|
-
readonly?: boolean;
|
|
8044
|
-
};
|
|
8045
|
-
|
|
8046
|
-
type ProductBundleChildControlType<T> = SharedControlType<T> & {
|
|
8047
|
-
type: 'product-bundle-child-item';
|
|
8048
|
-
[key: string]: any;
|
|
8049
|
-
};
|
|
8050
|
-
type SelectProductBundleControlType<T> = SharedControlType<T> & {
|
|
8051
|
-
type: 'select-product-bundle';
|
|
8052
|
-
label?: string;
|
|
8053
|
-
hide?: boolean;
|
|
8054
|
-
};
|
|
8055
|
-
|
|
8056
|
-
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> | CustomPositionControlType<T> | SneakPeakControlType<T> | PostPurchaseTextareaControlType<T> | DealControlType<T> | DisplayTriggerControlType<T>;
|
|
8017
|
+
type ControlProp<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>;
|
|
8057
8018
|
type ControlTriggerAction = {
|
|
8058
8019
|
controlId: string;
|
|
8059
8020
|
newValue?: any;
|
|
@@ -8109,7 +8070,6 @@ type ComponentSetting<P extends BaseProps> = {
|
|
|
8109
8070
|
flowPage?: string;
|
|
8110
8071
|
notAppendTags?: string[];
|
|
8111
8072
|
notAppendLeftRight?: boolean;
|
|
8112
|
-
allowAppendTags?: string[];
|
|
8113
8073
|
};
|
|
8114
8074
|
sideBar?: {
|
|
8115
8075
|
hide?: boolean;
|
|
@@ -8238,75 +8198,6 @@ type PublicStoreFrontData = {
|
|
|
8238
8198
|
token?: string;
|
|
8239
8199
|
endpoint?: string;
|
|
8240
8200
|
};
|
|
8241
|
-
type InteractionElement<E, T> = {
|
|
8242
|
-
uid?: string;
|
|
8243
|
-
event?: E;
|
|
8244
|
-
condition?: T;
|
|
8245
|
-
elementTag?: string;
|
|
8246
|
-
targetOutsideSelector?: string;
|
|
8247
|
-
targetInsideSelector?: string;
|
|
8248
|
-
};
|
|
8249
|
-
declare enum InteractionTargetEvent {
|
|
8250
|
-
'gp:change-background-color' = 0,
|
|
8251
|
-
'gp:run-animation' = 1,
|
|
8252
|
-
'gp:toggle-element-visibility' = 2,
|
|
8253
|
-
'gp:change-text' = 3,
|
|
8254
|
-
'gp:scroll-to' = 4,
|
|
8255
|
-
'gp:change-text-style' = 5,
|
|
8256
|
-
'gp:change-content' = 6,
|
|
8257
|
-
'gp:change-button-style' = 7,
|
|
8258
|
-
'gp:copy-text' = 8,
|
|
8259
|
-
'gp:change-image' = 9,
|
|
8260
|
-
'gp:toggle-video-play' = 10,
|
|
8261
|
-
'gp:change-slider-ratio' = 11,
|
|
8262
|
-
'gp:change-icon-style' = 12,
|
|
8263
|
-
'gp:change-expanded-item' = 13,
|
|
8264
|
-
'gp:change-active-item' = 14,
|
|
8265
|
-
'gp:change-slide' = 15,
|
|
8266
|
-
'gp:change-image-step' = 16,
|
|
8267
|
-
'gp:change-text-value' = 17,
|
|
8268
|
-
'gp:toggle-popup-open' = 18,
|
|
8269
|
-
'gp:show-or-hide' = 19
|
|
8270
|
-
}
|
|
8271
|
-
declare enum InteractionTriggerEvent {
|
|
8272
|
-
'click' = 0,
|
|
8273
|
-
active = 1,
|
|
8274
|
-
'mouseover' = 2,
|
|
8275
|
-
'gp:appear' = 3,
|
|
8276
|
-
'gp:item-selected' = 4,
|
|
8277
|
-
'gp:item-unselected' = 5,
|
|
8278
|
-
'gp:item-hovered' = 6,
|
|
8279
|
-
'gp:item-click' = 7,
|
|
8280
|
-
'gp:after-submit' = 8,
|
|
8281
|
-
'gp:quantity-change' = 9,
|
|
8282
|
-
'gp:after-checked-value' = 10,
|
|
8283
|
-
'gp:after-add-to-cart' = 11,
|
|
8284
|
-
'gp:popup-open' = 12,
|
|
8285
|
-
'gp:popup-close' = 13,
|
|
8286
|
-
'scroll-up' = 14,
|
|
8287
|
-
'scroll-down' = 15
|
|
8288
|
-
}
|
|
8289
|
-
type InteractionCondition = {
|
|
8290
|
-
type?: 'equal' | 'greater' | 'less' | 'greater-or-equal' | 'less-or-equal' | 'distance-to-top' | 'selected-item' | 'between' | 'out-of-stock' | 'out-of-time' | 'delay';
|
|
8291
|
-
data?: unknown;
|
|
8292
|
-
metaData?: any;
|
|
8293
|
-
};
|
|
8294
|
-
type Interaction = {
|
|
8295
|
-
self?: InteractionElement<InteractionTriggerEvent, InteractionCondition>;
|
|
8296
|
-
targets?: InteractionTarget[];
|
|
8297
|
-
};
|
|
8298
|
-
type InteractionTarget = {
|
|
8299
|
-
uid?: string;
|
|
8300
|
-
elementTag?: string;
|
|
8301
|
-
targetOutsideSelector?: string;
|
|
8302
|
-
targetInsideSelector?: string;
|
|
8303
|
-
events?: InteractionTargetEventObject[];
|
|
8304
|
-
};
|
|
8305
|
-
type InteractionTargetEventObject = {
|
|
8306
|
-
event: InteractionTargetEvent;
|
|
8307
|
-
eventName: string;
|
|
8308
|
-
condition: InteractionCondition;
|
|
8309
|
-
};
|
|
8310
8201
|
|
|
8311
8202
|
type Maybe<T> = T | undefined;
|
|
8312
8203
|
type InputMaybe<T> = T | undefined;
|
|
@@ -28948,19 +28839,11 @@ type PageContextProps = {
|
|
|
28948
28839
|
productOffers?: ProductOffer[];
|
|
28949
28840
|
salePageProductId?: string;
|
|
28950
28841
|
publicStoreFrontData?: PublicStoreFrontData | null;
|
|
28951
|
-
interactionData?: {
|
|
28952
|
-
item?: Interaction;
|
|
28953
|
-
isSelectOnPage?: boolean;
|
|
28954
|
-
selectType?: 'element' | 'page';
|
|
28955
|
-
};
|
|
28956
28842
|
setDynamicProduct: (data: DynamicProduct) => void;
|
|
28957
28843
|
setDynamicCollection: (data: DynamicCollection) => void;
|
|
28958
28844
|
setPostPurchaseProductOffers: (productOffers: ProductOffer[]) => void;
|
|
28959
28845
|
setSalePageProductId: (id: string) => void;
|
|
28960
28846
|
setPublicStoreFrontData: (publicStoreFrontData: PublicStoreFrontData | null) => void;
|
|
28961
|
-
setInteractionItem: (item: Interaction) => void;
|
|
28962
|
-
setInteractionIsSelectOnPage: (value: boolean) => void;
|
|
28963
|
-
setInteractionSelectType: (selectType: 'element' | 'page') => void;
|
|
28964
28847
|
};
|
|
28965
28848
|
type PageProviderProps = Pick<PageContextProps, 'dynamicProduct' | 'dynamicCollection' | 'productOffers'> & {
|
|
28966
28849
|
children: React.ReactNode;
|
|
@@ -30245,15 +30128,6 @@ declare const filterAttrInStyle: (style?: React.CSSProperties, filterKeys?: stri
|
|
|
30245
30128
|
'--z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
30246
30129
|
'--hvr-z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
30247
30130
|
'--focus-z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
30248
|
-
'--wm'?: csstype.Property.WritingMode | undefined;
|
|
30249
|
-
'--hvr-wm'?: csstype.Property.WritingMode | undefined;
|
|
30250
|
-
'--focus-wm'?: csstype.Property.WritingMode | undefined;
|
|
30251
|
-
'--wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
30252
|
-
'--hvr-wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
30253
|
-
'--focus-wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
30254
|
-
'--wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
30255
|
-
'--hvr-wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
30256
|
-
'--focus-wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
30257
30131
|
accentColor?: csstype.Property.AccentColor | undefined;
|
|
30258
30132
|
alignContent?: csstype.Property.AlignContent | undefined;
|
|
30259
30133
|
alignItems?: csstype.Property.AlignItems | undefined;
|
|
@@ -31749,15 +31623,6 @@ declare const removeAttrInStyle: (style?: React.CSSProperties, filterKeys?: stri
|
|
|
31749
31623
|
'--z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
31750
31624
|
'--hvr-z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
31751
31625
|
'--focus-z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
31752
|
-
'--wm'?: csstype.Property.WritingMode | undefined;
|
|
31753
|
-
'--hvr-wm'?: csstype.Property.WritingMode | undefined;
|
|
31754
|
-
'--focus-wm'?: csstype.Property.WritingMode | undefined;
|
|
31755
|
-
'--wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
31756
|
-
'--hvr-wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
31757
|
-
'--focus-wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
31758
|
-
'--wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
31759
|
-
'--hvr-wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
31760
|
-
'--focus-wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
31761
31626
|
accentColor?: csstype.Property.AccentColor | undefined;
|
|
31762
31627
|
alignContent?: csstype.Property.AlignContent | undefined;
|
|
31763
31628
|
alignItems?: csstype.Property.AlignItems | undefined;
|
|
@@ -33253,15 +33118,6 @@ declare const filterCornerInStyle: (style?: React.CSSProperties) => {
|
|
|
33253
33118
|
'--z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
33254
33119
|
'--hvr-z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
33255
33120
|
'--focus-z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
33256
|
-
'--wm'?: csstype.Property.WritingMode | undefined;
|
|
33257
|
-
'--hvr-wm'?: csstype.Property.WritingMode | undefined;
|
|
33258
|
-
'--focus-wm'?: csstype.Property.WritingMode | undefined;
|
|
33259
|
-
'--wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
33260
|
-
'--hvr-wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
33261
|
-
'--focus-wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
33262
|
-
'--wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
33263
|
-
'--hvr-wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
33264
|
-
'--focus-wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
33265
33121
|
accentColor?: csstype.Property.AccentColor | undefined;
|
|
33266
33122
|
alignContent?: csstype.Property.AlignContent | undefined;
|
|
33267
33123
|
alignItems?: csstype.Property.AlignItems | undefined;
|
|
@@ -34757,15 +34613,6 @@ declare const removePaddingYInStyle: (style?: React.CSSProperties) => {
|
|
|
34757
34613
|
'--z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
34758
34614
|
'--hvr-z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
34759
34615
|
'--focus-z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
34760
|
-
'--wm'?: csstype.Property.WritingMode | undefined;
|
|
34761
|
-
'--hvr-wm'?: csstype.Property.WritingMode | undefined;
|
|
34762
|
-
'--focus-wm'?: csstype.Property.WritingMode | undefined;
|
|
34763
|
-
'--wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
34764
|
-
'--hvr-wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
34765
|
-
'--focus-wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
34766
|
-
'--wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
34767
|
-
'--hvr-wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
34768
|
-
'--focus-wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
34769
34616
|
accentColor?: csstype.Property.AccentColor | undefined;
|
|
34770
34617
|
alignContent?: csstype.Property.AlignContent | undefined;
|
|
34771
34618
|
alignItems?: csstype.Property.AlignItems | undefined;
|
|
@@ -35601,8 +35448,6 @@ declare const optionLayoutStyle: (column?: ObjectDevices<string | number>) => Re
|
|
|
35601
35448
|
declare const composeGridLayout: (layout?: ObjectDevices<ObjectLayoutValue>) => React.CSSProperties;
|
|
35602
35449
|
declare const convertOldLayout: (layout?: ObjectDevices<string>) => ObjectDevices<ObjectLayoutValue>;
|
|
35603
35450
|
|
|
35604
|
-
declare const convertTextAlignToJustify: (align: Partial<Record<NameDevices$1, AlignProp>> | undefined) => Record<string, boolean>;
|
|
35605
|
-
|
|
35606
35451
|
declare function getSelectedVariant(variants?: Maybe$1<VariantSelectFragment>[], choices?: Record<string, string>, variantId?: string | null): Maybe$1<VariantSelectFragment>;
|
|
35607
35452
|
declare function parseSelectedOption(options: SelectedOption$1[]): SelectedOption$1 | undefined;
|
|
35608
35453
|
declare function checkAvailableVariantInStock(variants: Maybe$1<VariantSelectFragment>[] | undefined, optionId: string, optionValue: string): boolean;
|
|
@@ -36401,15 +36246,6 @@ declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?:
|
|
|
36401
36246
|
'--z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
36402
36247
|
'--hvr-z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
36403
36248
|
'--focus-z-mobile'?: csstype.Property.ZIndex | undefined;
|
|
36404
|
-
'--wm'?: csstype.Property.WritingMode | undefined;
|
|
36405
|
-
'--hvr-wm'?: csstype.Property.WritingMode | undefined;
|
|
36406
|
-
'--focus-wm'?: csstype.Property.WritingMode | undefined;
|
|
36407
|
-
'--wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
36408
|
-
'--hvr-wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
36409
|
-
'--focus-wm-tablet'?: csstype.Property.WritingMode | undefined;
|
|
36410
|
-
'--wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
36411
|
-
'--hvr-wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
36412
|
-
'--focus-wm-mobile'?: csstype.Property.WritingMode | undefined;
|
|
36413
36249
|
accentColor?: csstype.Property.AccentColor | undefined;
|
|
36414
36250
|
alignContent?: csstype.Property.AlignContent | undefined;
|
|
36415
36251
|
alignItems?: csstype.Property.AlignItems | undefined;
|
|
@@ -37308,7 +37144,6 @@ declare const useProductsQueryAll: (variable?: VariableRelatedStyles | undefined
|
|
|
37308
37144
|
declare const useCurrentDevice: () => NameDevices$1;
|
|
37309
37145
|
|
|
37310
37146
|
declare const shopifyPriceRounding: (amount: number | string, precision?: number) => string;
|
|
37311
|
-
declare const formatMoney: (cents: string, format: any) => string;
|
|
37312
37147
|
declare const useFormatMoney: (amount: number, withCurrency: boolean) => string;
|
|
37313
37148
|
|
|
37314
37149
|
declare const useLazyVideo: () => void;
|
|
@@ -37543,4 +37378,4 @@ declare const getAppBlocks: (section: PublishedPageSection$1 & {
|
|
|
37543
37378
|
|
|
37544
37379
|
declare const addAppBlockId: (component: Component) => Component;
|
|
37545
37380
|
|
|
37546
|
-
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, 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, 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, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType,
|
|
37381
|
+
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, 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, 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, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, 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, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, 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, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, SettingByAnimationType, SettingByAnimationValues, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, 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, 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, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterCornerInStyle, filterToolbarPreview, flattenConnection, 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, 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, useInitialSwatchesOptions, 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.48.0
|
|
3
|
+
"version": "1.48.0",
|
|
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.47.0",
|
|
31
|
+
"@gem-sdk/styles": "1.47.1",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|