@gem-sdk/core 1.23.0-staging.173 → 1.23.0-staging.194
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 +19 -13
- package/dist/cjs/helpers/size.js +2 -2
- package/dist/cjs/index.js +1 -0
- package/dist/esm/helpers/background.js +19 -14
- package/dist/esm/helpers/size.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +37 -5
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var constant = require('./constant.js');
|
|
3
4
|
var colors = require('./colors.js');
|
|
4
5
|
var makeStyle = require('./make-style.js');
|
|
5
6
|
|
|
@@ -45,6 +46,8 @@ const getStyleBgImage = (background, options)=>{
|
|
|
45
46
|
return makeStyle.makeStyleResponsive('bgi', bgImage);
|
|
46
47
|
};
|
|
47
48
|
const getBgImageByDevice = (background, device, options)=>{
|
|
49
|
+
const isBgVideo = background?.[device]?.type === 'video';
|
|
50
|
+
if (isBgVideo) return;
|
|
48
51
|
const backupFileKey = background?.[device]?.image?.backupFileKey;
|
|
49
52
|
const imageByDevice = options?.liquid && backupFileKey && `{{ "${backupFileKey}" | asset_url }}` || background?.[device]?.image?.src;
|
|
50
53
|
if (typeof imageByDevice === 'string') {
|
|
@@ -134,35 +137,38 @@ const makeFixedBgAttachment = (background)=>{
|
|
|
134
137
|
};
|
|
135
138
|
};
|
|
136
139
|
const makeFixedBgAttachmentByDevice = (device, bgAttachment)=>{
|
|
137
|
-
const
|
|
140
|
+
const suffix = constant.devicesMapping[device] ?? '';
|
|
138
141
|
if (bgAttachment === 'fixed') {
|
|
139
142
|
return {
|
|
140
143
|
wrapper: {
|
|
141
|
-
[`--pos${
|
|
142
|
-
[`--top${
|
|
143
|
-
[`--left${
|
|
144
|
-
[`--w${
|
|
145
|
-
[`--h${
|
|
144
|
+
[`--pos${suffix}`]: 'absolute',
|
|
145
|
+
[`--top${suffix}`]: '0',
|
|
146
|
+
[`--left${suffix}`]: '0',
|
|
147
|
+
[`--w${suffix}`]: '100%',
|
|
148
|
+
[`--h${suffix}`]: '100%'
|
|
146
149
|
},
|
|
147
150
|
content: {
|
|
148
|
-
[`--pos${
|
|
149
|
-
[`--w${
|
|
150
|
-
[`--h${
|
|
151
|
-
[`--bga${
|
|
151
|
+
[`--pos${suffix}`]: 'fixed',
|
|
152
|
+
[`--w${suffix}`]: '100vw',
|
|
153
|
+
[`--h${suffix}`]: '100vh',
|
|
154
|
+
[`--bga${suffix}`]: 'unset'
|
|
152
155
|
}
|
|
153
156
|
};
|
|
154
157
|
}
|
|
155
158
|
return {
|
|
156
159
|
wrapper: {
|
|
157
|
-
[`--pos${
|
|
160
|
+
[`--pos${suffix}`]: 'absolute'
|
|
158
161
|
},
|
|
159
162
|
content: {
|
|
160
|
-
[`--
|
|
161
|
-
[`--
|
|
163
|
+
[`--w${suffix}`]: 'inherit',
|
|
164
|
+
[`--h${suffix}`]: 'inherit',
|
|
165
|
+
[`--pos${suffix}`]: 'absolute',
|
|
166
|
+
[`--bga${suffix}`]: bgAttachment
|
|
162
167
|
}
|
|
163
168
|
};
|
|
164
169
|
};
|
|
165
170
|
|
|
166
171
|
exports.composeBackgroundCss = composeBackgroundCss;
|
|
172
|
+
exports.getBgImageByDevice = getBgImageByDevice;
|
|
167
173
|
exports.getStyleBackgroundByDevice = getStyleBackgroundByDevice;
|
|
168
174
|
exports.makeFixedBgAttachment = makeFixedBgAttachment;
|
package/dist/cjs/helpers/size.js
CHANGED
|
@@ -91,7 +91,7 @@ const getHeightByShapeGlobalSize = (shapeByLayout)=>{
|
|
|
91
91
|
});
|
|
92
92
|
return result;
|
|
93
93
|
};
|
|
94
|
-
const getWidthByShapeGlobalSize = (shapeByLayout)=>{
|
|
94
|
+
const getWidthByShapeGlobalSize = (shapeByLayout, defaultAuto)=>{
|
|
95
95
|
let result = {};
|
|
96
96
|
const DEVICES = [
|
|
97
97
|
'desktop',
|
|
@@ -100,7 +100,7 @@ const getWidthByShapeGlobalSize = (shapeByLayout)=>{
|
|
|
100
100
|
];
|
|
101
101
|
DEVICES.forEach((device)=>{
|
|
102
102
|
const shapeByDevice = getResonsiveValue.getResponsiveValueByScreen(shapeByLayout, device);
|
|
103
|
-
const width = shapeByDevice?.width;
|
|
103
|
+
const width = defaultAuto ? shapeByDevice?.width || 'auto' : shapeByDevice?.width;
|
|
104
104
|
if (width) {
|
|
105
105
|
result = {
|
|
106
106
|
...result,
|
package/dist/cjs/index.js
CHANGED
|
@@ -236,6 +236,7 @@ exports.getStyleShadow = shadow.getStyleShadow;
|
|
|
236
236
|
exports.getStyleShadowState = shadow.getStyleShadowState;
|
|
237
237
|
exports.parseValueWithUnit = shadow.parseValueWithUnit;
|
|
238
238
|
exports.composeBackgroundCss = background.composeBackgroundCss;
|
|
239
|
+
exports.getBgImageByDevice = background.getBgImageByDevice;
|
|
239
240
|
exports.getStyleBackgroundByDevice = background.getStyleBackgroundByDevice;
|
|
240
241
|
exports.makeFixedBgAttachment = background.makeFixedBgAttachment;
|
|
241
242
|
exports.generateCollectionQueryKey = query.generateCollectionQueryKey;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { devicesMapping } from './constant.js';
|
|
1
2
|
import { isColor, getSingleColorVariable } from './colors.js';
|
|
2
3
|
import { makeStyleResponsive } from './make-style.js';
|
|
3
4
|
|
|
@@ -43,6 +44,8 @@ const getStyleBgImage = (background, options)=>{
|
|
|
43
44
|
return makeStyleResponsive('bgi', bgImage);
|
|
44
45
|
};
|
|
45
46
|
const getBgImageByDevice = (background, device, options)=>{
|
|
47
|
+
const isBgVideo = background?.[device]?.type === 'video';
|
|
48
|
+
if (isBgVideo) return;
|
|
46
49
|
const backupFileKey = background?.[device]?.image?.backupFileKey;
|
|
47
50
|
const imageByDevice = options?.liquid && backupFileKey && `{{ "${backupFileKey}" | asset_url }}` || background?.[device]?.image?.src;
|
|
48
51
|
if (typeof imageByDevice === 'string') {
|
|
@@ -132,33 +135,35 @@ const makeFixedBgAttachment = (background)=>{
|
|
|
132
135
|
};
|
|
133
136
|
};
|
|
134
137
|
const makeFixedBgAttachmentByDevice = (device, bgAttachment)=>{
|
|
135
|
-
const
|
|
138
|
+
const suffix = devicesMapping[device] ?? '';
|
|
136
139
|
if (bgAttachment === 'fixed') {
|
|
137
140
|
return {
|
|
138
141
|
wrapper: {
|
|
139
|
-
[`--pos${
|
|
140
|
-
[`--top${
|
|
141
|
-
[`--left${
|
|
142
|
-
[`--w${
|
|
143
|
-
[`--h${
|
|
142
|
+
[`--pos${suffix}`]: 'absolute',
|
|
143
|
+
[`--top${suffix}`]: '0',
|
|
144
|
+
[`--left${suffix}`]: '0',
|
|
145
|
+
[`--w${suffix}`]: '100%',
|
|
146
|
+
[`--h${suffix}`]: '100%'
|
|
144
147
|
},
|
|
145
148
|
content: {
|
|
146
|
-
[`--pos${
|
|
147
|
-
[`--w${
|
|
148
|
-
[`--h${
|
|
149
|
-
[`--bga${
|
|
149
|
+
[`--pos${suffix}`]: 'fixed',
|
|
150
|
+
[`--w${suffix}`]: '100vw',
|
|
151
|
+
[`--h${suffix}`]: '100vh',
|
|
152
|
+
[`--bga${suffix}`]: 'unset'
|
|
150
153
|
}
|
|
151
154
|
};
|
|
152
155
|
}
|
|
153
156
|
return {
|
|
154
157
|
wrapper: {
|
|
155
|
-
[`--pos${
|
|
158
|
+
[`--pos${suffix}`]: 'absolute'
|
|
156
159
|
},
|
|
157
160
|
content: {
|
|
158
|
-
[`--
|
|
159
|
-
[`--
|
|
161
|
+
[`--w${suffix}`]: 'inherit',
|
|
162
|
+
[`--h${suffix}`]: 'inherit',
|
|
163
|
+
[`--pos${suffix}`]: 'absolute',
|
|
164
|
+
[`--bga${suffix}`]: bgAttachment
|
|
160
165
|
}
|
|
161
166
|
};
|
|
162
167
|
};
|
|
163
168
|
|
|
164
|
-
export { composeBackgroundCss, getStyleBackgroundByDevice, makeFixedBgAttachment };
|
|
169
|
+
export { composeBackgroundCss, getBgImageByDevice, getStyleBackgroundByDevice, makeFixedBgAttachment };
|
package/dist/esm/helpers/size.js
CHANGED
|
@@ -89,7 +89,7 @@ const getHeightByShapeGlobalSize = (shapeByLayout)=>{
|
|
|
89
89
|
});
|
|
90
90
|
return result;
|
|
91
91
|
};
|
|
92
|
-
const getWidthByShapeGlobalSize = (shapeByLayout)=>{
|
|
92
|
+
const getWidthByShapeGlobalSize = (shapeByLayout, defaultAuto)=>{
|
|
93
93
|
let result = {};
|
|
94
94
|
const DEVICES = [
|
|
95
95
|
'desktop',
|
|
@@ -98,7 +98,7 @@ const getWidthByShapeGlobalSize = (shapeByLayout)=>{
|
|
|
98
98
|
];
|
|
99
99
|
DEVICES.forEach((device)=>{
|
|
100
100
|
const shapeByDevice = getResponsiveValueByScreen(shapeByLayout, device);
|
|
101
|
-
const width = shapeByDevice?.width;
|
|
101
|
+
const width = defaultAuto ? shapeByDevice?.width || 'auto' : shapeByDevice?.width;
|
|
102
102
|
if (width) {
|
|
103
103
|
result = {
|
|
104
104
|
...result,
|
package/dist/esm/index.js
CHANGED
|
@@ -55,7 +55,7 @@ export { RenderIf, composeMemo, dataStringify, props, styles, template } from '.
|
|
|
55
55
|
export { baseAssetURL, isLocalEnv } from './helpers/convert.js';
|
|
56
56
|
export { composeSize, composeSizeCss, genSizeClass, getAspectRatioGlobalSize, getGlobalSizeGap, getHeightByShapeGlobalSize, getPaddingGlobalSize, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, makeGlobalSize, makeStyleWithDefault } from './helpers/size.js';
|
|
57
57
|
export { composeShadowCss, getStyleShadow, getStyleShadowState, parseValueWithUnit } from './helpers/shadow.js';
|
|
58
|
-
export { composeBackgroundCss, getStyleBackgroundByDevice, makeFixedBgAttachment } from './helpers/background.js';
|
|
58
|
+
export { composeBackgroundCss, getBgImageByDevice, getStyleBackgroundByDevice, makeFixedBgAttachment } from './helpers/background.js';
|
|
59
59
|
export { generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey } from './helpers/query.js';
|
|
60
60
|
export { composeAdvanceStyle, splitStyle } from './helpers/compose-advance-style.js';
|
|
61
61
|
export { composePositionLineHeight, composePostionIconList } from './helpers/icon-list.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -830,6 +830,12 @@ type LayoutControlType<T> = SharedControlType<T> & {
|
|
|
830
830
|
isProductLayout?: boolean;
|
|
831
831
|
};
|
|
832
832
|
|
|
833
|
+
type LayoutBannerControlType<T> = SharedControlType<T> & {
|
|
834
|
+
type: 'layout-banner';
|
|
835
|
+
maxCol?: number;
|
|
836
|
+
isProductLayout?: boolean;
|
|
837
|
+
};
|
|
838
|
+
|
|
833
839
|
type CollectionBannerControlType<T> = SharedControlType<T> & {
|
|
834
840
|
type: 'collectionBanner';
|
|
835
841
|
value?: Background;
|
|
@@ -930,7 +936,9 @@ type GridArrange<T> = SharedControlType<T> & {
|
|
|
930
936
|
};
|
|
931
937
|
|
|
932
938
|
type SettingID = 'shape' | 'width' | 'height' | 'gap' | 'padding';
|
|
933
|
-
type
|
|
939
|
+
type ShapeOptionKeyword = 'original' | 'square' | 'vertical' | 'horizontal' | 'custom';
|
|
940
|
+
type HeightOptionKeyword = 'fit-content' | 'fit-screen';
|
|
941
|
+
type OptionKeyword = 'default' | 'auto' | 'full' | 'equal' | 'small' | 'medium' | 'large' | HeightOptionKeyword | ShapeOptionKeyword;
|
|
934
942
|
type PaddingOptions = 'small' | 'medium' | 'large' | 'custom';
|
|
935
943
|
type PaddingConfig = Partial<Record<PaddingOptions, {
|
|
936
944
|
vertical: string;
|
|
@@ -961,9 +969,10 @@ type DropdownInput<T> = SharedControlType<T> & {
|
|
|
961
969
|
type: 'dropdown:input' | 'accordion:dropdown:input';
|
|
962
970
|
hideUnit?: boolean;
|
|
963
971
|
inputType?: 'text' | 'number';
|
|
972
|
+
units?: string[];
|
|
964
973
|
displayOptions?: {
|
|
965
974
|
label: string;
|
|
966
|
-
value
|
|
975
|
+
value?: string;
|
|
967
976
|
reversed?: boolean;
|
|
968
977
|
showValue?: boolean;
|
|
969
978
|
}[];
|
|
@@ -983,7 +992,18 @@ type AliPickSectionControlType<T> = SharedControlType<T> & {
|
|
|
983
992
|
pickSectionLabel?: string;
|
|
984
993
|
};
|
|
985
994
|
|
|
986
|
-
type
|
|
995
|
+
type ParallaxScrollingType<T> = SharedControlType<T> & {
|
|
996
|
+
type: 'parallax-scrolling';
|
|
997
|
+
};
|
|
998
|
+
|
|
999
|
+
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> | 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> | ProductListControlType<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>;
|
|
1000
|
+
type ControlTriggerAction = {
|
|
1001
|
+
controlId: string;
|
|
1002
|
+
newValue?: any;
|
|
1003
|
+
controlType: string;
|
|
1004
|
+
groupType: string;
|
|
1005
|
+
valueIfNull?: any;
|
|
1006
|
+
};
|
|
987
1007
|
type Setting<P extends BaseProps> = {
|
|
988
1008
|
id: 'setting';
|
|
989
1009
|
note?: string;
|
|
@@ -1081,6 +1101,16 @@ type ControlUI = {
|
|
|
1081
1101
|
hideOnPages?: PageType[];
|
|
1082
1102
|
};
|
|
1083
1103
|
isMoreSetting?: boolean;
|
|
1104
|
+
controlChangeTrigger?: {
|
|
1105
|
+
settings?: {
|
|
1106
|
+
source: string[];
|
|
1107
|
+
condition: string;
|
|
1108
|
+
action: ControlTriggerAction;
|
|
1109
|
+
}[];
|
|
1110
|
+
options?: {
|
|
1111
|
+
noRecordHistory?: boolean;
|
|
1112
|
+
};
|
|
1113
|
+
};
|
|
1084
1114
|
};
|
|
1085
1115
|
type PageType = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'GP_ARTICLE' | 'GP_BLOG' | 'GP_COLLECTION' | 'GP_INDEX' | 'GP_PRODUCT' | 'GP_STATIC' | 'PRODUCT' | 'STATIC' | 'THEME_SECTION';
|
|
1086
1116
|
type ComponentPreset = {
|
|
@@ -9605,7 +9635,7 @@ declare const getGlobalSizeGap: (globalSize?: ObjectDevices<SizeSettingGlobal>)
|
|
|
9605
9635
|
declare const makeStyleWithDefault: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, K>> | undefined, defaultVal?: Partial<Record<NameDevices$1, K>> | undefined) => Record<ResponsiveKey<T>, K>;
|
|
9606
9636
|
declare const getWidthHeightGlobalSize: (type: 'width' | 'height', globalSize?: ObjectDevices<SizeSettingGlobal>) => Partial<Record<NameDevices$1, string | number>>;
|
|
9607
9637
|
declare const getHeightByShapeGlobalSize: (shapeByLayout?: ObjectDevices<SizeSettingGlobal>) => Partial<Record<NameDevices$1, string>>;
|
|
9608
|
-
declare const getWidthByShapeGlobalSize: (shapeByLayout?: ObjectDevices<SizeSettingGlobal
|
|
9638
|
+
declare const getWidthByShapeGlobalSize: (shapeByLayout?: ObjectDevices<SizeSettingGlobal>, defaultAuto?: boolean) => Partial<Record<NameDevices$1, string>>;
|
|
9609
9639
|
declare const getAspectRatioGlobalSize: (shape?: ObjectDevices<SizeSettingGlobal>) => ObjectDevices<string>;
|
|
9610
9640
|
declare const getPaddingGlobalSize: (globalSize?: ObjectDevices<SizeSettingGlobal>) => React.CSSProperties;
|
|
9611
9641
|
|
|
@@ -9620,11 +9650,13 @@ declare const composeShadowCss: ({ hasBoxShadow, boxShadowValue, important, }: {
|
|
|
9620
9650
|
important?: boolean | undefined;
|
|
9621
9651
|
}) => string | undefined;
|
|
9622
9652
|
|
|
9653
|
+
type Devices = 'desktop' | 'tablet' | 'mobile';
|
|
9623
9654
|
type Options = {
|
|
9624
9655
|
liquid?: boolean;
|
|
9625
9656
|
ignoreBgAttachment?: boolean;
|
|
9626
9657
|
};
|
|
9627
9658
|
declare const getStyleBackgroundByDevice: (background?: ObjectDevices<Background>, options?: Options) => {};
|
|
9659
|
+
declare const getBgImageByDevice: (background: ObjectDevices<Background>, device: Devices, options?: Options) => string | undefined;
|
|
9628
9660
|
declare const composeBackgroundCss: (backgroundColor?: ColorValueType) => string;
|
|
9629
9661
|
declare const makeFixedBgAttachment: (background?: ObjectDevices<Background>) => {
|
|
9630
9662
|
wrapper: {
|
|
@@ -9927,4 +9959,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' |
|
|
|
9927
9959
|
|
|
9928
9960
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
9929
9961
|
|
|
9930
|
-
export { AddOn, AddonProvider, AddonProviderProps, AliReviewsWidgetType, AlignItemProp, AlignProp, Background, BaseProps, BasePropsWrap, BlockEntity, 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, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SectionData, SectionEntity, SectionProvider, SectionProviderProps, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertOldLayout, dataStringify, fetchMedias, fetchVariants, filterToolbarPreview, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAspectRatioGlobalSize, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeNullUndefined, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, 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, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
9962
|
+
export { AddOn, AddonProvider, AddonProviderProps, AliReviewsWidgetType, AlignItemProp, AlignProp, Background, BaseProps, BasePropsWrap, BlockEntity, 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, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SectionData, SectionEntity, SectionProvider, SectionProviderProps, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertOldLayout, dataStringify, fetchMedias, fetchVariants, filterToolbarPreview, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAspectRatioGlobalSize, getBgImageByDevice, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeNullUndefined, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, 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, useProductProperties, useProductQuery, useProductStore, useProductsQuery, 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.23.0-staging.
|
|
3
|
+
"version": "1.23.0-staging.194",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@gem-sdk/adapter-shopify": "1.23.0-staging.26",
|
|
28
|
-
"@gem-sdk/styles": "1.23.0-staging.
|
|
28
|
+
"@gem-sdk/styles": "1.23.0-staging.186"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"react-error-boundary": "4.0.10",
|