@gem-sdk/core 1.12.0-next.24 → 1.12.0-next.31
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.
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var getResonsiveValue = require('./get-resonsive-value.js');
|
|
4
4
|
|
|
5
|
+
const removeNullUndefined = (obj)=>Object.entries(obj).reduce((a, [k, v])=>{
|
|
6
|
+
if (v === null || v === undefined) return a;
|
|
7
|
+
return {
|
|
8
|
+
...a,
|
|
9
|
+
[k]: v
|
|
10
|
+
};
|
|
11
|
+
}, {});
|
|
5
12
|
const makeStyleKey = (name)=>{
|
|
6
13
|
return [
|
|
7
14
|
name,
|
|
@@ -118,3 +125,4 @@ exports.makeStyleResponsive = makeStyleResponsive;
|
|
|
118
125
|
exports.makeStyleResponsiveState = makeStyleResponsiveState;
|
|
119
126
|
exports.makeStyleState = makeStyleState;
|
|
120
127
|
exports.makeWidth = makeWidth;
|
|
128
|
+
exports.removeNullUndefined = removeNullUndefined;
|
package/dist/cjs/index.js
CHANGED
|
@@ -151,6 +151,7 @@ exports.makeStyleResponsive = makeStyle.makeStyleResponsive;
|
|
|
151
151
|
exports.makeStyleResponsiveState = makeStyle.makeStyleResponsiveState;
|
|
152
152
|
exports.makeStyleState = makeStyle.makeStyleState;
|
|
153
153
|
exports.makeWidth = makeStyle.makeWidth;
|
|
154
|
+
exports.removeNullUndefined = makeStyle.removeNullUndefined;
|
|
154
155
|
exports.normalizeBuilderData = normalizeBuilderData.normalizeBuilderData;
|
|
155
156
|
exports.prefetchQueries = prefetchQueries.prefetchQueries;
|
|
156
157
|
exports.composeSpacing = spacing.composeSpacing;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { getResponsiveValueByScreen } from './get-resonsive-value.js';
|
|
2
2
|
|
|
3
|
+
const removeNullUndefined = (obj)=>Object.entries(obj).reduce((a, [k, v])=>{
|
|
4
|
+
if (v === null || v === undefined) return a;
|
|
5
|
+
return {
|
|
6
|
+
...a,
|
|
7
|
+
[k]: v
|
|
8
|
+
};
|
|
9
|
+
}, {});
|
|
3
10
|
const makeStyleKey = (name)=>{
|
|
4
11
|
return [
|
|
5
12
|
name,
|
|
@@ -107,4 +114,4 @@ const makeLineClamp = (lineClampValue, hasLineClampValue)=>{
|
|
|
107
114
|
};
|
|
108
115
|
};
|
|
109
116
|
|
|
110
|
-
export { makeAspectRatio, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeWidth };
|
|
117
|
+
export { makeAspectRatio, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeWidth, removeNullUndefined };
|
package/dist/esm/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export { getShortName } from './helpers/get-shortname.js';
|
|
|
29
29
|
export { default as globalEvent } from './helpers/GlobalEvent.js';
|
|
30
30
|
export { default as isBrowser } from './helpers/is-browser.js';
|
|
31
31
|
export { isEmptyChildren } from './helpers/is-empty-children.js';
|
|
32
|
-
export { makeAspectRatio, makeHeight, makeLineClamp, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeWidth } from './helpers/make-style.js';
|
|
32
|
+
export { makeAspectRatio, makeHeight, makeLineClamp, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeWidth, removeNullUndefined } from './helpers/make-style.js';
|
|
33
33
|
export { normalizeBuilderData } from './helpers/normalize-builder-data.js';
|
|
34
34
|
export { prefetchQueries } from './helpers/prefetch-queries.js';
|
|
35
35
|
export { composeSpacing, getSpacingVariable } from './helpers/spacing.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -172,14 +172,6 @@ type HyperlinkInfo = {
|
|
|
172
172
|
link?: string;
|
|
173
173
|
modal?: CommonModalApp;
|
|
174
174
|
};
|
|
175
|
-
type LinkData = {
|
|
176
|
-
value: string | number | boolean | null | undefined;
|
|
177
|
-
control: {
|
|
178
|
-
ids: string[];
|
|
179
|
-
show?: true;
|
|
180
|
-
hide?: true;
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
175
|
type Mapped$4<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
184
176
|
id: K;
|
|
185
177
|
label?: string;
|
|
@@ -191,6 +183,7 @@ type Mapped$4<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
191
183
|
mobileOnly?: boolean;
|
|
192
184
|
};
|
|
193
185
|
hide?: boolean;
|
|
186
|
+
ignoreReRender?: boolean;
|
|
194
187
|
hideOnState?: {
|
|
195
188
|
normal?: boolean;
|
|
196
189
|
hover?: boolean;
|
|
@@ -202,8 +195,6 @@ type Mapped$4<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
202
195
|
tablet?: boolean;
|
|
203
196
|
mobile?: boolean;
|
|
204
197
|
};
|
|
205
|
-
links?: LinkData[];
|
|
206
|
-
allowReset?: boolean;
|
|
207
198
|
lazyUpdate?: boolean;
|
|
208
199
|
state?: {
|
|
209
200
|
normal?: boolean;
|
|
@@ -223,6 +214,7 @@ type Mapped$4<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
223
214
|
mobileOnly?: boolean;
|
|
224
215
|
};
|
|
225
216
|
hide?: boolean;
|
|
217
|
+
ignoreReRender?: boolean;
|
|
226
218
|
hideOnState?: {
|
|
227
219
|
normal?: boolean;
|
|
228
220
|
hover?: boolean;
|
|
@@ -234,8 +226,6 @@ type Mapped$4<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
234
226
|
tablet?: boolean;
|
|
235
227
|
mobile?: boolean;
|
|
236
228
|
};
|
|
237
|
-
links?: LinkData[];
|
|
238
|
-
allowReset?: boolean;
|
|
239
229
|
lazyUpdate?: boolean;
|
|
240
230
|
state?: {
|
|
241
231
|
normal?: boolean;
|
|
@@ -272,8 +262,6 @@ type Mapped$3<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
272
262
|
};
|
|
273
263
|
info?: string;
|
|
274
264
|
hide?: boolean;
|
|
275
|
-
links?: LinkData[];
|
|
276
|
-
allowReset?: boolean;
|
|
277
265
|
state?: {
|
|
278
266
|
normal?: boolean;
|
|
279
267
|
hover?: boolean;
|
|
@@ -292,8 +280,6 @@ type Mapped$3<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
292
280
|
responsive?: boolean;
|
|
293
281
|
mobileOnly?: boolean;
|
|
294
282
|
};
|
|
295
|
-
links?: LinkData[];
|
|
296
|
-
allowReset?: boolean;
|
|
297
283
|
state?: {
|
|
298
284
|
normal?: boolean;
|
|
299
285
|
hover?: boolean;
|
|
@@ -449,8 +435,6 @@ type Mapped$2<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
449
435
|
responsive?: boolean;
|
|
450
436
|
mobileOnly?: boolean;
|
|
451
437
|
};
|
|
452
|
-
links?: LinkData[];
|
|
453
|
-
allowReset?: boolean;
|
|
454
438
|
disableToggle?: boolean;
|
|
455
439
|
state?: {
|
|
456
440
|
normal?: boolean;
|
|
@@ -472,8 +456,6 @@ type Mapped$2<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
472
456
|
responsive?: boolean;
|
|
473
457
|
mobileOnly?: boolean;
|
|
474
458
|
};
|
|
475
|
-
links?: LinkData[];
|
|
476
|
-
allowReset?: boolean;
|
|
477
459
|
disableToggle?: boolean;
|
|
478
460
|
state?: {
|
|
479
461
|
normal?: boolean;
|
|
@@ -506,8 +488,6 @@ type Mapped$1<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
506
488
|
mobileOnly?: boolean;
|
|
507
489
|
};
|
|
508
490
|
hide?: boolean;
|
|
509
|
-
links?: LinkData[];
|
|
510
|
-
allowReset?: boolean;
|
|
511
491
|
state?: {
|
|
512
492
|
normal?: boolean;
|
|
513
493
|
hover?: boolean;
|
|
@@ -528,8 +508,6 @@ type Mapped$1<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
528
508
|
mobileOnly?: boolean;
|
|
529
509
|
};
|
|
530
510
|
hide?: boolean;
|
|
531
|
-
links?: LinkData[];
|
|
532
|
-
allowReset?: boolean;
|
|
533
511
|
state?: {
|
|
534
512
|
normal?: boolean;
|
|
535
513
|
hover?: boolean;
|
|
@@ -758,8 +736,6 @@ type Mapped<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
758
736
|
responsive?: boolean;
|
|
759
737
|
mobileOnly?: boolean;
|
|
760
738
|
};
|
|
761
|
-
links?: LinkData[];
|
|
762
|
-
allowReset?: boolean;
|
|
763
739
|
disableToggle?: boolean;
|
|
764
740
|
state?: {
|
|
765
741
|
normal?: boolean;
|
|
@@ -780,8 +756,6 @@ type Mapped<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
780
756
|
responsive?: boolean;
|
|
781
757
|
mobileOnly?: boolean;
|
|
782
758
|
};
|
|
783
|
-
links?: LinkData[];
|
|
784
|
-
allowReset?: boolean;
|
|
785
759
|
disableToggle?: boolean;
|
|
786
760
|
state?: {
|
|
787
761
|
normal?: boolean;
|
|
@@ -861,7 +835,14 @@ type Ratio<T> = SharedControlType<T> & {
|
|
|
861
835
|
readonly?: boolean;
|
|
862
836
|
};
|
|
863
837
|
|
|
864
|
-
type
|
|
838
|
+
type TypographyV2ControlType<T> = SharedControlType<T> & {
|
|
839
|
+
type: 'typography-v2';
|
|
840
|
+
hiddenSetting?: {
|
|
841
|
+
color?: boolean;
|
|
842
|
+
};
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
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> | SwatchesLinkControlType<T> | ProductListControlType<T> | CollectionBannerControlType<T> | Ratio<T>;
|
|
865
846
|
type Setting<P extends BaseProps> = {
|
|
866
847
|
id: 'setting';
|
|
867
848
|
note?: string;
|
|
@@ -6976,6 +6957,10 @@ type TypographySetting = {
|
|
|
6976
6957
|
type?: TypographyType;
|
|
6977
6958
|
custom?: ObjectDevices<TypographyProps>;
|
|
6978
6959
|
};
|
|
6960
|
+
type TypographySettingV2 = {
|
|
6961
|
+
type?: TypographyType;
|
|
6962
|
+
custom?: TypographyV2Props;
|
|
6963
|
+
};
|
|
6979
6964
|
type SizeSetting = {
|
|
6980
6965
|
type?: SizeType;
|
|
6981
6966
|
custom?: ObjectDevices<SizeProps>;
|
|
@@ -6993,6 +6978,16 @@ type TypographyProps = {
|
|
|
6993
6978
|
lineHeight?: string;
|
|
6994
6979
|
letterSpacing?: string;
|
|
6995
6980
|
};
|
|
6981
|
+
type TypographyV2Props = Omit<TypographyProps, 'fontSize' | 'lineHeight'> & {
|
|
6982
|
+
fontSize?: ObjectDevices<string>;
|
|
6983
|
+
lineHeight?: string;
|
|
6984
|
+
type?: TypographyType;
|
|
6985
|
+
bold?: boolean;
|
|
6986
|
+
italic?: boolean;
|
|
6987
|
+
underline?: boolean;
|
|
6988
|
+
color?: ColorValueType;
|
|
6989
|
+
transform?: string;
|
|
6990
|
+
};
|
|
6996
6991
|
type CornerRadius = {
|
|
6997
6992
|
btlr?: string;
|
|
6998
6993
|
btrr?: string;
|
|
@@ -7654,6 +7649,7 @@ declare function isBrowser(): boolean;
|
|
|
7654
7649
|
declare const isEmptyChildren: (children: React.ReactNode) => boolean;
|
|
7655
7650
|
|
|
7656
7651
|
type ResponsiveKey<T extends ShortHandProperty> = `--${T}` | `--${T}-tablet` | `--${T}-mobile`;
|
|
7652
|
+
declare const removeNullUndefined: <T extends Record<string, any>>(obj: T) => T;
|
|
7657
7653
|
declare const makeStyle: <T extends ShortHandProperty, K>(style: Record<T, K>) => {
|
|
7658
7654
|
[k: string]: Record<`--${T}`, K>;
|
|
7659
7655
|
};
|
|
@@ -8090,4 +8086,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' |
|
|
|
8090
8086
|
|
|
8091
8087
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
8092
8088
|
|
|
8093
|
-
export { AddOn, AddonProvider, AddonProviderProps, 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, ExtractState, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, HSLAColorType, HSLColorType, HexColorType, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OptionNormalStyle, OptionSpecialStyle, 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, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SectionData, SectionEntity, SectionProvider, SectionProviderProps, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeType, SpacingType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TypographyProps, TypographySetting, TypographyType, VariantSelectFragment, WiserWidgetType, baseAssetURL, calculateFirstProduct, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeRadius, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypographyCss, convertOldLayout, dataStringify, fetchMedias, fetchVariants, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isDefined, isEmptyChildren, isLocalEnv, loadScript, makeAspectRatio, makeHeight, makeLineClamp, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, 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, useIsSampleProduct, useIsStorefrontProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, 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 };
|
|
8089
|
+
export { AddOn, AddonProvider, AddonProviderProps, 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, ExtractState, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, HSLAColorType, HSLColorType, HexColorType, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OptionNormalStyle, OptionSpecialStyle, 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, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SectionData, SectionEntity, SectionProvider, SectionProviderProps, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeType, SpacingType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Props, VariantSelectFragment, WiserWidgetType, baseAssetURL, calculateFirstProduct, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeRadius, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypographyCss, convertOldLayout, dataStringify, fetchMedias, fetchVariants, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isDefined, isEmptyChildren, isLocalEnv, loadScript, makeAspectRatio, makeHeight, makeLineClamp, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, 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, useIsSampleProduct, useIsStorefrontProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, 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.12.0-next.
|
|
3
|
+
"version": "1.12.0-next.31",
|
|
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.12.0-next.13",
|
|
28
|
-
"@gem-sdk/styles": "1.12.0-next.
|
|
28
|
+
"@gem-sdk/styles": "1.12.0-next.30"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"react-error-boundary": "4.0.3",
|