@gem-sdk/core 1.48.0-dev.4 → 1.48.0-dev.43
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/InteractionSuffix.js +1 -1
- package/dist/cjs/components/Render.liquid.js +2 -2
- package/dist/cjs/graphql/fragments/product-little.generated.js +1 -0
- package/dist/cjs/graphql/fragments/published-theme-page.generated.js +8 -0
- package/dist/cjs/helpers/background.js +1 -1
- package/dist/cjs/helpers/queries/get-product.js +1 -1
- package/dist/cjs/helpers/third-party/appConfig.js +14 -0
- package/dist/cjs/helpers/third-party/appSetting.js +14 -0
- package/dist/cjs/helpers/third-party/constant.js +3 -1
- package/dist/cjs/helpers/typography.js +3 -1
- package/dist/esm/components/InteractionSuffix.js +2 -2
- package/dist/esm/components/Render.liquid.js +2 -2
- package/dist/esm/graphql/fragments/product-little.generated.js +1 -0
- package/dist/esm/graphql/fragments/published-theme-page.generated.js +8 -0
- package/dist/esm/helpers/background.js +1 -1
- package/dist/esm/helpers/queries/get-product.js +1 -1
- package/dist/esm/helpers/third-party/appConfig.js +13 -1
- package/dist/esm/helpers/third-party/appSetting.js +14 -0
- package/dist/esm/helpers/third-party/constant.js +4 -2
- package/dist/esm/helpers/typography.js +3 -1
- package/dist/types/index.d.ts +132 -1
- package/package.json +2 -2
|
@@ -46,7 +46,7 @@ const InteractionSuffix = ({ tag, uid })=>{
|
|
|
46
46
|
isCurrentInteractionTarget
|
|
47
47
|
]);
|
|
48
48
|
if (!isDisplay) {
|
|
49
|
-
return
|
|
49
|
+
return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
50
50
|
}
|
|
51
51
|
return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
52
52
|
children: [
|
|
@@ -234,6 +234,7 @@ const appendAnimation = (props, liquid)=>{
|
|
|
234
234
|
const appearTablet = getAnimationType(getSettingsByDevice('tablet'), 'appear');
|
|
235
235
|
const appearMobile = getAnimationType(getSettingsByDevice('mobile'), 'appear');
|
|
236
236
|
const enableAnimation = animation?.desktop?.enabled && (appearDesktop !== 'none' || hoverDesktop !== 'none') || animation?.tablet?.enabled && appearTablet !== 'none' || animation?.mobile?.enabled && appearMobile !== 'none';
|
|
237
|
+
if (!enableAnimation) return liquid;
|
|
237
238
|
const getInitVisibility = (device)=>getSettingsByDevice(device)?.enabled && ![
|
|
238
239
|
'shake',
|
|
239
240
|
'none'
|
|
@@ -248,8 +249,7 @@ const appendAnimation = (props, liquid)=>{
|
|
|
248
249
|
gp-data='${JSON.stringify({
|
|
249
250
|
config: animation,
|
|
250
251
|
tag,
|
|
251
|
-
opacity
|
|
252
|
-
isEnableInit: enableAnimation
|
|
252
|
+
opacity
|
|
253
253
|
})}'
|
|
254
254
|
style="${{
|
|
255
255
|
display: 'contents'
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
themePageCustomFonts {
|
|
29
29
|
...CustomFontSelect
|
|
30
30
|
}
|
|
31
|
+
interaction {
|
|
32
|
+
id
|
|
33
|
+
value
|
|
34
|
+
}
|
|
31
35
|
}
|
|
32
36
|
`;
|
|
33
37
|
const PreviewThemePageSelect = `
|
|
@@ -55,6 +59,10 @@ const PreviewThemePageSelect = `
|
|
|
55
59
|
themePageCustomCode {
|
|
56
60
|
...CustomCodeSelect
|
|
57
61
|
}
|
|
62
|
+
interaction {
|
|
63
|
+
id
|
|
64
|
+
value
|
|
65
|
+
}
|
|
58
66
|
}
|
|
59
67
|
`;
|
|
60
68
|
|
|
@@ -121,7 +121,7 @@ const getBgAttachmentByDevice = (background, device)=>{
|
|
|
121
121
|
return background?.[device]?.attachment;
|
|
122
122
|
};
|
|
123
123
|
const composeBackgroundCss = (backgroundColor)=>{
|
|
124
|
-
return `${backgroundColor ? `background-color: ${colors.getSingleColorVariable(backgroundColor)}
|
|
124
|
+
return `${backgroundColor ? `background-color: ${colors.getSingleColorVariable(backgroundColor)};` : undefined}`;
|
|
125
125
|
};
|
|
126
126
|
const makeFixedBgAttachment = (background)=>{
|
|
127
127
|
if (!background) return;
|
|
@@ -36,7 +36,7 @@ const getProduct = async (fetcher, { id, isSample, isStorefront })=>{
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
const orderBy = {
|
|
39
|
-
field: '
|
|
39
|
+
field: 'PLATFORM_CREATED_AT',
|
|
40
40
|
direction: 'DESC'
|
|
41
41
|
};
|
|
42
42
|
const fetchProduct = async (fetcher, { id, isSample, isStorefront })=>{
|
|
@@ -78,8 +78,22 @@ const SimpleBundlesKitsConfig = {
|
|
|
78
78
|
appId: 'e553276b-36b2-446d-b80a-aa47fe5f96ac'
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
+
const EasyBundleBuilderSkailamaConfig = {
|
|
82
|
+
EasyBundleBuilderSkailama: {
|
|
83
|
+
appName: 'easy-bundles',
|
|
84
|
+
appId: '05b1325c-6303-4da5-8e2f-b13ab2a50e1a'
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const AssortionUpsellBundlesConfig = {
|
|
88
|
+
AssortionUpsellBundles: {
|
|
89
|
+
appName: 'assortion',
|
|
90
|
+
appId: '5588d7f9-a5bc-4f4a-9c54-39b7e081dd23'
|
|
91
|
+
}
|
|
92
|
+
};
|
|
81
93
|
|
|
94
|
+
exports.AssortionUpsellBundlesConfig = AssortionUpsellBundlesConfig;
|
|
82
95
|
exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
|
|
96
|
+
exports.EasyBundleBuilderSkailamaConfig = EasyBundleBuilderSkailamaConfig;
|
|
83
97
|
exports.FastBundleBundlesDiscountsConfig = FastBundleBundlesDiscountsConfig;
|
|
84
98
|
exports.KiteFreeGiftDiscountConfig = KiteFreeGiftDiscountConfig;
|
|
85
99
|
exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
|
|
@@ -129,7 +129,21 @@ const SimpleBundlesKits = {
|
|
|
129
129
|
'infinite-options-selector': null
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
|
+
const EasyBundleBuilderSkailama = {
|
|
133
|
+
EasyBundleBuilderSkailama: {
|
|
134
|
+
'app-block-bundlePage': null
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
const AssortionUpsellBundles = {
|
|
138
|
+
AssortionUpsellBundles: {
|
|
139
|
+
volume: null,
|
|
140
|
+
bundle: null,
|
|
141
|
+
addon: null
|
|
142
|
+
}
|
|
143
|
+
};
|
|
132
144
|
const composeSettingsByWidgetType = {
|
|
145
|
+
...AssortionUpsellBundles,
|
|
146
|
+
...EasyBundleBuilderSkailama,
|
|
133
147
|
...FastBundleBundlesDiscounts,
|
|
134
148
|
...KiteFreeGiftDiscount,
|
|
135
149
|
...UnlimitedBundlesDiscounts,
|
|
@@ -15,7 +15,9 @@ const mapShopifyAppMeta = {
|
|
|
15
15
|
...appConfig.UnlimitedBundlesDiscountsConfig,
|
|
16
16
|
...appConfig.KiteFreeGiftDiscountConfig,
|
|
17
17
|
...appConfig.FastBundleBundlesDiscountsConfig,
|
|
18
|
-
...appConfig.SimpleBundlesKitsConfig
|
|
18
|
+
...appConfig.SimpleBundlesKitsConfig,
|
|
19
|
+
...appConfig.EasyBundleBuilderSkailamaConfig,
|
|
20
|
+
...appConfig.AssortionUpsellBundlesConfig
|
|
19
21
|
};
|
|
20
22
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
21
23
|
|
|
@@ -77,7 +77,9 @@ const composeTypographyV2 = (value, attrs)=>{
|
|
|
77
77
|
};
|
|
78
78
|
const composeFontFamilyTypographyV2 = (value)=>{
|
|
79
79
|
const fontFamily = value?.fontFamily;
|
|
80
|
-
if (!fontFamily)
|
|
80
|
+
if (!fontFamily) {
|
|
81
|
+
return value?.fallbackFontFamily;
|
|
82
|
+
}
|
|
81
83
|
if (typeof fontFamily === 'string') {
|
|
82
84
|
return getFontUsedByTypographyV2({
|
|
83
85
|
fontFamily,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import 'zustand';
|
|
4
4
|
import 'swr';
|
|
@@ -44,7 +44,7 @@ const InteractionSuffix = ({ tag, uid })=>{
|
|
|
44
44
|
isCurrentInteractionTarget
|
|
45
45
|
]);
|
|
46
46
|
if (!isDisplay) {
|
|
47
|
-
return
|
|
47
|
+
return /*#__PURE__*/ jsx(Fragment, {});
|
|
48
48
|
}
|
|
49
49
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
50
50
|
children: [
|
|
@@ -230,6 +230,7 @@ const appendAnimation = (props, liquid)=>{
|
|
|
230
230
|
const appearTablet = getAnimationType(getSettingsByDevice('tablet'), 'appear');
|
|
231
231
|
const appearMobile = getAnimationType(getSettingsByDevice('mobile'), 'appear');
|
|
232
232
|
const enableAnimation = animation?.desktop?.enabled && (appearDesktop !== 'none' || hoverDesktop !== 'none') || animation?.tablet?.enabled && appearTablet !== 'none' || animation?.mobile?.enabled && appearMobile !== 'none';
|
|
233
|
+
if (!enableAnimation) return liquid;
|
|
233
234
|
const getInitVisibility = (device)=>getSettingsByDevice(device)?.enabled && ![
|
|
234
235
|
'shake',
|
|
235
236
|
'none'
|
|
@@ -244,8 +245,7 @@ const appendAnimation = (props, liquid)=>{
|
|
|
244
245
|
gp-data='${JSON.stringify({
|
|
245
246
|
config: animation,
|
|
246
247
|
tag,
|
|
247
|
-
opacity
|
|
248
|
-
isEnableInit: enableAnimation
|
|
248
|
+
opacity
|
|
249
249
|
})}'
|
|
250
250
|
style="${{
|
|
251
251
|
display: 'contents'
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
themePageCustomFonts {
|
|
27
27
|
...CustomFontSelect
|
|
28
28
|
}
|
|
29
|
+
interaction {
|
|
30
|
+
id
|
|
31
|
+
value
|
|
32
|
+
}
|
|
29
33
|
}
|
|
30
34
|
`;
|
|
31
35
|
const PreviewThemePageSelect = `
|
|
@@ -53,6 +57,10 @@ const PreviewThemePageSelect = `
|
|
|
53
57
|
themePageCustomCode {
|
|
54
58
|
...CustomCodeSelect
|
|
55
59
|
}
|
|
60
|
+
interaction {
|
|
61
|
+
id
|
|
62
|
+
value
|
|
63
|
+
}
|
|
56
64
|
}
|
|
57
65
|
`;
|
|
58
66
|
|
|
@@ -119,7 +119,7 @@ const getBgAttachmentByDevice = (background, device)=>{
|
|
|
119
119
|
return background?.[device]?.attachment;
|
|
120
120
|
};
|
|
121
121
|
const composeBackgroundCss = (backgroundColor)=>{
|
|
122
|
-
return `${backgroundColor ? `background-color: ${getSingleColorVariable(backgroundColor)}
|
|
122
|
+
return `${backgroundColor ? `background-color: ${getSingleColorVariable(backgroundColor)};` : undefined}`;
|
|
123
123
|
};
|
|
124
124
|
const makeFixedBgAttachment = (background)=>{
|
|
125
125
|
if (!background) return;
|
|
@@ -34,7 +34,7 @@ const getProduct = async (fetcher, { id, isSample, isStorefront })=>{
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
const orderBy = {
|
|
37
|
-
field: '
|
|
37
|
+
field: 'PLATFORM_CREATED_AT',
|
|
38
38
|
direction: 'DESC'
|
|
39
39
|
};
|
|
40
40
|
const fetchProduct = async (fetcher, { id, isSample, isStorefront })=>{
|
|
@@ -76,5 +76,17 @@ const SimpleBundlesKitsConfig = {
|
|
|
76
76
|
appId: 'e553276b-36b2-446d-b80a-aa47fe5f96ac'
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
|
+
const EasyBundleBuilderSkailamaConfig = {
|
|
80
|
+
EasyBundleBuilderSkailama: {
|
|
81
|
+
appName: 'easy-bundles',
|
|
82
|
+
appId: '05b1325c-6303-4da5-8e2f-b13ab2a50e1a'
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
const AssortionUpsellBundlesConfig = {
|
|
86
|
+
AssortionUpsellBundles: {
|
|
87
|
+
appName: 'assortion',
|
|
88
|
+
appId: '5588d7f9-a5bc-4f4a-9c54-39b7e081dd23'
|
|
89
|
+
}
|
|
90
|
+
};
|
|
79
91
|
|
|
80
|
-
export { BonLoyaltyRewardsReferralsConfig, FastBundleBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig };
|
|
92
|
+
export { AssortionUpsellBundlesConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig };
|
|
@@ -127,7 +127,21 @@ const SimpleBundlesKits = {
|
|
|
127
127
|
'infinite-options-selector': null
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
|
+
const EasyBundleBuilderSkailama = {
|
|
131
|
+
EasyBundleBuilderSkailama: {
|
|
132
|
+
'app-block-bundlePage': null
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
const AssortionUpsellBundles = {
|
|
136
|
+
AssortionUpsellBundles: {
|
|
137
|
+
volume: null,
|
|
138
|
+
bundle: null,
|
|
139
|
+
addon: null
|
|
140
|
+
}
|
|
141
|
+
};
|
|
130
142
|
const composeSettingsByWidgetType = {
|
|
143
|
+
...AssortionUpsellBundles,
|
|
144
|
+
...EasyBundleBuilderSkailama,
|
|
131
145
|
...FastBundleBundlesDiscounts,
|
|
132
146
|
...KiteFreeGiftDiscount,
|
|
133
147
|
...UnlimitedBundlesDiscounts,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig } from './appConfig.js';
|
|
1
|
+
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, AssortionUpsellBundlesConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -13,7 +13,9 @@ const mapShopifyAppMeta = {
|
|
|
13
13
|
...UnlimitedBundlesDiscountsConfig,
|
|
14
14
|
...KiteFreeGiftDiscountConfig,
|
|
15
15
|
...FastBundleBundlesDiscountsConfig,
|
|
16
|
-
...SimpleBundlesKitsConfig
|
|
16
|
+
...SimpleBundlesKitsConfig,
|
|
17
|
+
...EasyBundleBuilderSkailamaConfig,
|
|
18
|
+
...AssortionUpsellBundlesConfig
|
|
17
19
|
};
|
|
18
20
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
19
21
|
|
|
@@ -75,7 +75,9 @@ const composeTypographyV2 = (value, attrs)=>{
|
|
|
75
75
|
};
|
|
76
76
|
const composeFontFamilyTypographyV2 = (value)=>{
|
|
77
77
|
const fontFamily = value?.fontFamily;
|
|
78
|
-
if (!fontFamily)
|
|
78
|
+
if (!fontFamily) {
|
|
79
|
+
return value?.fallbackFontFamily;
|
|
80
|
+
}
|
|
79
81
|
if (typeof fontFamily === 'string') {
|
|
80
82
|
return getFontUsedByTypographyV2({
|
|
81
83
|
fontFamily,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7334,6 +7334,7 @@ type Option$2<T> = {
|
|
|
7334
7334
|
tooltip?: string;
|
|
7335
7335
|
type?: string;
|
|
7336
7336
|
note?: string;
|
|
7337
|
+
maxOption?: number;
|
|
7337
7338
|
};
|
|
7338
7339
|
type Mapped$3<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
7339
7340
|
id: K;
|
|
@@ -8060,6 +8061,87 @@ type SelectProductBundleControlType<T> = SharedControlType<T> & {
|
|
|
8060
8061
|
hide?: boolean;
|
|
8061
8062
|
};
|
|
8062
8063
|
|
|
8064
|
+
type SettingStateType = 'normal' | 'hover' | 'focus' | 'active' | 'price' | 'compareAtPrice';
|
|
8065
|
+
type LangKey = 'en' | 'vi';
|
|
8066
|
+
type LabelWithLang = {
|
|
8067
|
+
[P in keyof Record<LangKey, ''>]?: string;
|
|
8068
|
+
};
|
|
8069
|
+
type SettingMediaType = 'image' | 'youtubeVideoID';
|
|
8070
|
+
type SettingUIHelpType = {
|
|
8071
|
+
content: string;
|
|
8072
|
+
buttonLink?: string;
|
|
8073
|
+
media?: {
|
|
8074
|
+
value: string;
|
|
8075
|
+
type: SettingMediaType;
|
|
8076
|
+
};
|
|
8077
|
+
};
|
|
8078
|
+
type LinkWithSetting = {
|
|
8079
|
+
name: string;
|
|
8080
|
+
state?: string;
|
|
8081
|
+
field?: string;
|
|
8082
|
+
};
|
|
8083
|
+
type ControlConfig = ControlProp<any> & {
|
|
8084
|
+
linkWithSetting?: LinkWithSetting;
|
|
8085
|
+
};
|
|
8086
|
+
type SettingUIControl = {
|
|
8087
|
+
id?: string;
|
|
8088
|
+
controlConfig?: ControlConfig;
|
|
8089
|
+
isCompo?: boolean;
|
|
8090
|
+
layout?: 'vertical' | 'horizontal';
|
|
8091
|
+
toggleGroupId?: string;
|
|
8092
|
+
label?: LabelWithLang;
|
|
8093
|
+
conditionDisplay?: string;
|
|
8094
|
+
conditionEnable?: string;
|
|
8095
|
+
options?: {
|
|
8096
|
+
hideOnDevices?: Record<NameDevices$1, boolean>;
|
|
8097
|
+
fullWidth?: boolean;
|
|
8098
|
+
disableMessage?: string;
|
|
8099
|
+
};
|
|
8100
|
+
setting?: {
|
|
8101
|
+
id: string;
|
|
8102
|
+
state?: SettingStateType;
|
|
8103
|
+
};
|
|
8104
|
+
searchKeyword?: string;
|
|
8105
|
+
} & SettingUICompo;
|
|
8106
|
+
type SettingUICompo = {
|
|
8107
|
+
controls?: SettingUIControl[];
|
|
8108
|
+
iconName?: string;
|
|
8109
|
+
getValueFromSettingID?: string;
|
|
8110
|
+
fixedValue?: string;
|
|
8111
|
+
placeholder?: string;
|
|
8112
|
+
help?: SettingUIHelpType;
|
|
8113
|
+
};
|
|
8114
|
+
type SettingUIMoreSetting = {
|
|
8115
|
+
label?: LabelWithLang;
|
|
8116
|
+
labelAction?: LabelWithLang;
|
|
8117
|
+
controls?: SettingUIControl[];
|
|
8118
|
+
help?: SettingUIHelpType;
|
|
8119
|
+
};
|
|
8120
|
+
type SettingUIToggleGroup = {
|
|
8121
|
+
label?: LabelWithLang;
|
|
8122
|
+
id?: string;
|
|
8123
|
+
controls?: SettingUIControl[];
|
|
8124
|
+
};
|
|
8125
|
+
type SettingUIToggleSettings = {
|
|
8126
|
+
type: 'control' | 'toggleGroup';
|
|
8127
|
+
controls?: SettingUIControl[];
|
|
8128
|
+
isActiveDefault?: boolean;
|
|
8129
|
+
} & SettingUIControl & SettingUIToggleGroup;
|
|
8130
|
+
type SettingUIGroup = {
|
|
8131
|
+
label?: LabelWithLang;
|
|
8132
|
+
message?: string;
|
|
8133
|
+
disableToggle?: boolean;
|
|
8134
|
+
conditionDisplay?: string;
|
|
8135
|
+
conditionEnable?: string;
|
|
8136
|
+
controls?: SettingUIControl[];
|
|
8137
|
+
moreSettings?: SettingUIMoreSetting;
|
|
8138
|
+
toggleSettings?: SettingUIToggleSettings[];
|
|
8139
|
+
help?: SettingUIHelpType;
|
|
8140
|
+
options?: {
|
|
8141
|
+
disableMessage?: string;
|
|
8142
|
+
};
|
|
8143
|
+
};
|
|
8144
|
+
|
|
8063
8145
|
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>;
|
|
8064
8146
|
type ControlTriggerAction = {
|
|
8065
8147
|
controlId: string;
|
|
@@ -8131,6 +8213,7 @@ type ComponentSetting<P extends BaseProps> = {
|
|
|
8131
8213
|
};
|
|
8132
8214
|
};
|
|
8133
8215
|
ui?: ControlUI[];
|
|
8216
|
+
uiV2?: SettingUIGroup[];
|
|
8134
8217
|
presets?: ComponentPreset[];
|
|
8135
8218
|
locales?: Record<string, any>;
|
|
8136
8219
|
};
|
|
@@ -28823,7 +28906,7 @@ type ProductListProviderProps = ProductListContextProps & {
|
|
|
28823
28906
|
declare const ProductListProvider: React.FC<ProductListProviderProps>;
|
|
28824
28907
|
declare const useProductListStore: <U>(selector: (state: ExtractState<StoreApi<ProductListContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
28825
28908
|
|
|
28826
|
-
type ProductSelectFragment = Pick<Product$1, 'tags' | 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
28909
|
+
type ProductSelectFragment = Pick<Product$1, 'tags' | 'id' | 'title' | 'createdAt' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
28827
28910
|
collections?: Maybe$1<{
|
|
28828
28911
|
edges: Array<{
|
|
28829
28912
|
node?: Maybe$1<Pick<Collection$1, 'id' | 'title'>>;
|
|
@@ -29187,6 +29270,7 @@ type PublishedThemePagesQueryResponse = {
|
|
|
29187
29270
|
themePageAnalytic?: Maybe$1<Pick<Analytic$1, 'fbPixelID' | 'gaTrackingID' | 'tiktokPixelID'>>;
|
|
29188
29271
|
themePageCustomCode?: Maybe$1<Pick<CustomCode$1, 'body' | 'header'>>;
|
|
29189
29272
|
themePageCustomFonts?: Maybe$1<Array<Maybe$1<CustomFont$1>>>;
|
|
29273
|
+
interaction?: Maybe$1<Pick<PublishedPageInteraction$1, 'id' | 'value'>>;
|
|
29190
29274
|
}>>>;
|
|
29191
29275
|
};
|
|
29192
29276
|
declare const PublishedThemePagesDocument: string;
|
|
@@ -29264,6 +29348,7 @@ type PreviewPageQueryResponse = {
|
|
|
29264
29348
|
pageStyle?: Maybe$1<Pick<PublishedThemeStyle$1, 'id' | 'data' | 'name'>>;
|
|
29265
29349
|
themePageAnalytic?: Maybe$1<Pick<Analytic$1, 'fbPixelID' | 'gaTrackingID' | 'tiktokPixelID'>>;
|
|
29266
29350
|
themePageCustomCode?: Maybe$1<Pick<CustomCode$1, 'body' | 'header'>>;
|
|
29351
|
+
interaction?: Maybe$1<Pick<PublishedPageInteraction$1, 'id' | 'value'>>;
|
|
29267
29352
|
}>;
|
|
29268
29353
|
};
|
|
29269
29354
|
declare const PreviewPageDocument: string;
|
|
@@ -29883,6 +29968,15 @@ declare const filterAttrInStyle: (style?: React.CSSProperties, filterKeys?: stri
|
|
|
29883
29968
|
'--gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
29884
29969
|
'--hvr-gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
29885
29970
|
'--focus-gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
29971
|
+
'--gr'?: csstype.Property.GridRow | undefined;
|
|
29972
|
+
'--hvr-gr'?: csstype.Property.GridRow | undefined;
|
|
29973
|
+
'--focus-gr'?: csstype.Property.GridRow | undefined;
|
|
29974
|
+
'--gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
29975
|
+
'--hvr-gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
29976
|
+
'--focus-gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
29977
|
+
'--gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
29978
|
+
'--hvr-gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
29979
|
+
'--focus-gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
29886
29980
|
'--gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
29887
29981
|
'--hvr-gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
29888
29982
|
'--focus-gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
@@ -31387,6 +31481,15 @@ declare const removeAttrInStyle: (style?: React.CSSProperties, filterKeys?: stri
|
|
|
31387
31481
|
'--gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
31388
31482
|
'--hvr-gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
31389
31483
|
'--focus-gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
31484
|
+
'--gr'?: csstype.Property.GridRow | undefined;
|
|
31485
|
+
'--hvr-gr'?: csstype.Property.GridRow | undefined;
|
|
31486
|
+
'--focus-gr'?: csstype.Property.GridRow | undefined;
|
|
31487
|
+
'--gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
31488
|
+
'--hvr-gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
31489
|
+
'--focus-gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
31490
|
+
'--gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
31491
|
+
'--hvr-gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
31492
|
+
'--focus-gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
31390
31493
|
'--gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
31391
31494
|
'--hvr-gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
31392
31495
|
'--focus-gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
@@ -32891,6 +32994,15 @@ declare const filterCornerInStyle: (style?: React.CSSProperties) => {
|
|
|
32891
32994
|
'--gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
32892
32995
|
'--hvr-gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
32893
32996
|
'--focus-gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
32997
|
+
'--gr'?: csstype.Property.GridRow | undefined;
|
|
32998
|
+
'--hvr-gr'?: csstype.Property.GridRow | undefined;
|
|
32999
|
+
'--focus-gr'?: csstype.Property.GridRow | undefined;
|
|
33000
|
+
'--gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
33001
|
+
'--hvr-gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
33002
|
+
'--focus-gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
33003
|
+
'--gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
33004
|
+
'--hvr-gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
33005
|
+
'--focus-gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
32894
33006
|
'--gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
32895
33007
|
'--hvr-gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
32896
33008
|
'--focus-gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
@@ -34395,6 +34507,15 @@ declare const removePaddingYInStyle: (style?: React.CSSProperties) => {
|
|
|
34395
34507
|
'--gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
34396
34508
|
'--hvr-gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
34397
34509
|
'--focus-gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
34510
|
+
'--gr'?: csstype.Property.GridRow | undefined;
|
|
34511
|
+
'--hvr-gr'?: csstype.Property.GridRow | undefined;
|
|
34512
|
+
'--focus-gr'?: csstype.Property.GridRow | undefined;
|
|
34513
|
+
'--gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
34514
|
+
'--hvr-gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
34515
|
+
'--focus-gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
34516
|
+
'--gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
34517
|
+
'--hvr-gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
34518
|
+
'--focus-gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
34398
34519
|
'--gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
34399
34520
|
'--hvr-gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
34400
34521
|
'--focus-gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
@@ -36039,6 +36160,15 @@ declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?:
|
|
|
36039
36160
|
'--gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
36040
36161
|
'--hvr-gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
36041
36162
|
'--focus-gg-mobile'?: csstype.Property.GridGap<string | number> | undefined;
|
|
36163
|
+
'--gr'?: csstype.Property.GridRow | undefined;
|
|
36164
|
+
'--hvr-gr'?: csstype.Property.GridRow | undefined;
|
|
36165
|
+
'--focus-gr'?: csstype.Property.GridRow | undefined;
|
|
36166
|
+
'--gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
36167
|
+
'--hvr-gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
36168
|
+
'--focus-gr-tablet'?: csstype.Property.GridRow | undefined;
|
|
36169
|
+
'--gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
36170
|
+
'--hvr-gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
36171
|
+
'--focus-gr-mobile'?: csstype.Property.GridRow | undefined;
|
|
36042
36172
|
'--gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
36043
36173
|
'--hvr-gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
36044
36174
|
'--focus-gtc'?: csstype.Property.GridTemplateColumns<string | number> | undefined;
|
|
@@ -37532,6 +37662,7 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage$1, 'id' | 'name'
|
|
|
37532
37662
|
pageStyle?: Maybe$1<Pick<PublishedThemeStyle$1, 'id' | 'data' | 'name'>>;
|
|
37533
37663
|
themePageAnalytic?: Maybe$1<Pick<Analytic$1, 'fbPixelID' | 'gaTrackingID' | 'tiktokPixelID'>>;
|
|
37534
37664
|
themePageCustomCode?: Maybe$1<Pick<CustomCode$1, 'body' | 'header'>>;
|
|
37665
|
+
interaction?: Maybe$1<Pick<PublishedPageInteraction$1, 'id' | 'value'>>;
|
|
37535
37666
|
};
|
|
37536
37667
|
|
|
37537
37668
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.48.0-dev.
|
|
3
|
+
"version": "1.48.0-dev.43",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@gem-sdk/adapter-shopify": "1.48.0-dev.3",
|
|
31
|
-
"@gem-sdk/styles": "1.48.0-dev.
|
|
31
|
+
"@gem-sdk/styles": "1.48.0-dev.32",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|