@gem-sdk/core 1.29.5 → 1.30.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/ComponentWrapperPreview.js +4 -0
- package/dist/cjs/components/Render.liquid.js +46 -5
- package/dist/cjs/helpers/animations.js +213 -0
- package/dist/cjs/hooks/animation/useAnimationActions.js +39 -0
- package/dist/cjs/hooks/animation/useAnimationConfig.js +29 -0
- package/dist/cjs/hooks/animation/useAnimationPreview.js +31 -0
- package/dist/cjs/hooks/animation/useAnimationTarget.js +120 -0
- package/dist/cjs/hooks/animation/useApplyAnimation.js +87 -0
- package/dist/cjs/hooks/useAnimations.js +26 -0
- package/dist/cjs/index.js +27 -0
- package/dist/cjs/types/animations.js +47 -0
- package/dist/esm/components/ComponentWrapperPreview.js +4 -0
- package/dist/esm/components/Render.liquid.js +46 -5
- package/dist/esm/helpers/animations.js +211 -0
- package/dist/esm/hooks/animation/useAnimationActions.js +37 -0
- package/dist/esm/hooks/animation/useAnimationConfig.js +27 -0
- package/dist/esm/hooks/animation/useAnimationPreview.js +29 -0
- package/dist/esm/hooks/animation/useAnimationTarget.js +118 -0
- package/dist/esm/hooks/animation/useApplyAnimation.js +83 -0
- package/dist/esm/hooks/useAnimations.js +24 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/types/animations.js +47 -0
- package/dist/types/index.d.ts +85 -1
- package/package.json +2 -2
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { useCallback, useEffect } from 'react';
|
|
2
|
+
import { useAnimations } from '../useAnimations.js';
|
|
3
|
+
import { useAnimationTarget } from './useAnimationTarget.js';
|
|
4
|
+
import { useAnimationConfig } from './useAnimationConfig.js';
|
|
5
|
+
import { useAnimationActions } from './useAnimationActions.js';
|
|
6
|
+
import { useAnimationPreview } from './useAnimationPreview.js';
|
|
7
|
+
import { AnimationType } from '../../types/animations.js';
|
|
8
|
+
|
|
9
|
+
const useApplyAnimation = ({ props })=>{
|
|
10
|
+
const currentProps = props;
|
|
11
|
+
const { uid: componentUid } = currentProps;
|
|
12
|
+
const animation = useAnimations();
|
|
13
|
+
const { initListOfTargets, targetObjects, setToolbarActive } = useAnimationTarget(currentProps);
|
|
14
|
+
const { isEnabledAnimation, getAnimationConfig } = useAnimationConfig(currentProps);
|
|
15
|
+
const { setAnimation, cancelAnimation, playAnimation, setAnimationOnFinish } = useAnimationActions();
|
|
16
|
+
const { previewAnimation } = useAnimationPreview({
|
|
17
|
+
props: currentProps,
|
|
18
|
+
playAnimation,
|
|
19
|
+
cancelAnimation,
|
|
20
|
+
setAnimationOnFinish,
|
|
21
|
+
setToolbarActive
|
|
22
|
+
});
|
|
23
|
+
const generateAnimation = useCallback(({ target, setting, type })=>{
|
|
24
|
+
return animation[type](target, setting);
|
|
25
|
+
}, [
|
|
26
|
+
animation
|
|
27
|
+
]);
|
|
28
|
+
const initListAnimations = useCallback(()=>{
|
|
29
|
+
const { type, setting } = getAnimationConfig();
|
|
30
|
+
if (!type || type === AnimationType.None || !targetObjects.current.length) {
|
|
31
|
+
cancelAnimation();
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const listAnimations = targetObjects.current.map((item)=>generateAnimation({
|
|
35
|
+
type,
|
|
36
|
+
setting,
|
|
37
|
+
target: item.target
|
|
38
|
+
}));
|
|
39
|
+
cancelAnimation();
|
|
40
|
+
setAnimation(listAnimations);
|
|
41
|
+
}, [
|
|
42
|
+
getAnimationConfig,
|
|
43
|
+
targetObjects,
|
|
44
|
+
cancelAnimation,
|
|
45
|
+
setAnimation,
|
|
46
|
+
generateAnimation
|
|
47
|
+
]);
|
|
48
|
+
useEffect(()=>{
|
|
49
|
+
if (isEnabledAnimation) {
|
|
50
|
+
initListOfTargets();
|
|
51
|
+
initListAnimations();
|
|
52
|
+
} else {
|
|
53
|
+
cancelAnimation();
|
|
54
|
+
}
|
|
55
|
+
return ()=>{
|
|
56
|
+
cancelAnimation();
|
|
57
|
+
};
|
|
58
|
+
}, [
|
|
59
|
+
componentUid,
|
|
60
|
+
initListAnimations,
|
|
61
|
+
cancelAnimation,
|
|
62
|
+
isEnabledAnimation,
|
|
63
|
+
initListOfTargets
|
|
64
|
+
]);
|
|
65
|
+
useEffect(()=>{
|
|
66
|
+
window.addEventListener('preview-animation', previewAnimation);
|
|
67
|
+
return ()=>{
|
|
68
|
+
window.removeEventListener('preview-animation', previewAnimation);
|
|
69
|
+
};
|
|
70
|
+
}, [
|
|
71
|
+
previewAnimation
|
|
72
|
+
]);
|
|
73
|
+
useEffect(()=>{
|
|
74
|
+
window.addEventListener('init-animation-target', initListOfTargets);
|
|
75
|
+
return ()=>{
|
|
76
|
+
window.removeEventListener('init-animation-target', initListOfTargets);
|
|
77
|
+
};
|
|
78
|
+
}, [
|
|
79
|
+
initListOfTargets
|
|
80
|
+
]);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export { useApplyAnimation as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'zustand';
|
|
4
|
+
import 'swr';
|
|
5
|
+
import '@gem-sdk/adapter-shopify';
|
|
6
|
+
import 'swr/mutation';
|
|
7
|
+
import 'vanilla-lazyload';
|
|
8
|
+
import './useCartUI.js';
|
|
9
|
+
import 'react-transition-group';
|
|
10
|
+
import '@gem-sdk/core';
|
|
11
|
+
import { animations } from '../helpers/animations.js';
|
|
12
|
+
import '../helpers/convert.js';
|
|
13
|
+
|
|
14
|
+
const useAnimations = ()=>{
|
|
15
|
+
const { zoom, shake, fade, slide } = animations();
|
|
16
|
+
return {
|
|
17
|
+
zoom,
|
|
18
|
+
shake,
|
|
19
|
+
fade,
|
|
20
|
+
slide
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { useAnimations };
|
package/dist/esm/index.js
CHANGED
|
@@ -32,6 +32,7 @@ export { default as isBrowser } from './helpers/is-browser.js';
|
|
|
32
32
|
export { default as isSafari } from './helpers/is-safari.js';
|
|
33
33
|
export { isEmptyChildren } from './helpers/is-empty-children.js';
|
|
34
34
|
export { filterToolbarPreview } from './helpers/filter-toolbar-preview.js';
|
|
35
|
+
export { animations } from './helpers/animations.js';
|
|
35
36
|
export { makeAspectRatio, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeWidth, removeNullUndefined } from './helpers/make-style.js';
|
|
36
37
|
export { normalizeBuilderData } from './helpers/normalize-builder-data.js';
|
|
37
38
|
export { prefetchQueries } from './helpers/prefetch-queries.js';
|
|
@@ -91,6 +92,7 @@ export { default as useInitialSwatchesOptions } from './hooks/useInitialSwatches
|
|
|
91
92
|
import * as shop from './types/shop.js';
|
|
92
93
|
export { shop as ShopType };
|
|
93
94
|
export { OptionNormalStyle, OptionSpecialStyle } from './types/global-style.js';
|
|
95
|
+
export { AnimationDirectionType, AnimationEasingType, AnimationSetting, AnimationTriggerType, AnimationType, AnimationZoomDirectionType } from './types/animations.js';
|
|
94
96
|
export { calculateFirstProduct, getCollection } from './helpers/queries/get-collection.js';
|
|
95
97
|
export { fetchMedias, fetchVariants, getProduct } from './helpers/queries/get-product.js';
|
|
96
98
|
export { getProductBySlug } from './helpers/queries/get-product-by-slug.js';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var AnimationType;
|
|
2
|
+
(function(AnimationType) {
|
|
3
|
+
AnimationType["Fade"] = 'fade';
|
|
4
|
+
AnimationType["Slide"] = 'slide';
|
|
5
|
+
AnimationType["Zoom"] = 'zoom';
|
|
6
|
+
AnimationType["Shake"] = 'shake';
|
|
7
|
+
AnimationType["None"] = 'none';
|
|
8
|
+
})(AnimationType || (AnimationType = {}));
|
|
9
|
+
var AnimationSetting;
|
|
10
|
+
(function(AnimationSetting) {
|
|
11
|
+
AnimationSetting["Loop"] = 'loop';
|
|
12
|
+
AnimationSetting["Scale"] = 'scale';
|
|
13
|
+
AnimationSetting["Delay"] = 'delay';
|
|
14
|
+
AnimationSetting["Easing"] = 'easing';
|
|
15
|
+
AnimationSetting["Speed"] = 'speed';
|
|
16
|
+
AnimationSetting["IsFade"] = 'isFade';
|
|
17
|
+
AnimationSetting["Distance"] = 'distance';
|
|
18
|
+
AnimationSetting["Intensity"] = 'intensity';
|
|
19
|
+
AnimationSetting["Direction"] = 'direction';
|
|
20
|
+
AnimationSetting["ZoomDirection"] = 'zoomDirection';
|
|
21
|
+
})(AnimationSetting || (AnimationSetting = {}));
|
|
22
|
+
var AnimationDirectionType;
|
|
23
|
+
(function(AnimationDirectionType) {
|
|
24
|
+
AnimationDirectionType["Left"] = 'left';
|
|
25
|
+
AnimationDirectionType["Right"] = 'right';
|
|
26
|
+
AnimationDirectionType["Up"] = 'up';
|
|
27
|
+
AnimationDirectionType["Down"] = 'down';
|
|
28
|
+
})(AnimationDirectionType || (AnimationDirectionType = {}));
|
|
29
|
+
var AnimationTriggerType;
|
|
30
|
+
(function(AnimationTriggerType) {
|
|
31
|
+
AnimationTriggerType["Appear"] = 'appear';
|
|
32
|
+
AnimationTriggerType["Hover"] = 'hover';
|
|
33
|
+
})(AnimationTriggerType || (AnimationTriggerType = {}));
|
|
34
|
+
var AnimationZoomDirectionType;
|
|
35
|
+
(function(AnimationZoomDirectionType) {
|
|
36
|
+
AnimationZoomDirectionType["In"] = 'in';
|
|
37
|
+
AnimationZoomDirectionType["Out"] = 'out';
|
|
38
|
+
})(AnimationZoomDirectionType || (AnimationZoomDirectionType = {}));
|
|
39
|
+
var AnimationEasingType;
|
|
40
|
+
(function(AnimationEasingType) {
|
|
41
|
+
AnimationEasingType["Ease"] = 'ease';
|
|
42
|
+
AnimationEasingType["EaseIn"] = 'ease-in';
|
|
43
|
+
AnimationEasingType["EaseOut"] = 'ease-out';
|
|
44
|
+
AnimationEasingType["Linear"] = 'linear';
|
|
45
|
+
})(AnimationEasingType || (AnimationEasingType = {}));
|
|
46
|
+
|
|
47
|
+
export { AnimationDirectionType, AnimationEasingType, AnimationSetting, AnimationTriggerType, AnimationType, AnimationZoomDirectionType };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7391,6 +7391,83 @@ type ProductInputAnalytic = {
|
|
|
7391
7391
|
currency?: string;
|
|
7392
7392
|
};
|
|
7393
7393
|
|
|
7394
|
+
declare enum AnimationType {
|
|
7395
|
+
Fade = "fade",
|
|
7396
|
+
Slide = "slide",
|
|
7397
|
+
Zoom = "zoom",
|
|
7398
|
+
Shake = "shake",
|
|
7399
|
+
None = "none"
|
|
7400
|
+
}
|
|
7401
|
+
declare enum AnimationSetting {
|
|
7402
|
+
Loop = "loop",
|
|
7403
|
+
Scale = "scale",
|
|
7404
|
+
Delay = "delay",
|
|
7405
|
+
Easing = "easing",
|
|
7406
|
+
Speed = "speed",
|
|
7407
|
+
IsFade = "isFade",
|
|
7408
|
+
Distance = "distance",
|
|
7409
|
+
Intensity = "intensity",
|
|
7410
|
+
Direction = "direction",
|
|
7411
|
+
ZoomDirection = "zoomDirection"
|
|
7412
|
+
}
|
|
7413
|
+
declare enum AnimationDirectionType {
|
|
7414
|
+
Left = "left",
|
|
7415
|
+
Right = "right",
|
|
7416
|
+
Up = "up",
|
|
7417
|
+
Down = "down"
|
|
7418
|
+
}
|
|
7419
|
+
type AnimationTrigger = 'appear' | 'hover';
|
|
7420
|
+
declare enum AnimationTriggerType {
|
|
7421
|
+
Appear = "appear",
|
|
7422
|
+
Hover = "hover"
|
|
7423
|
+
}
|
|
7424
|
+
declare enum AnimationZoomDirectionType {
|
|
7425
|
+
In = "in",
|
|
7426
|
+
Out = "out"
|
|
7427
|
+
}
|
|
7428
|
+
declare enum AnimationEasingType {
|
|
7429
|
+
Ease = "ease",
|
|
7430
|
+
EaseIn = "ease-in",
|
|
7431
|
+
EaseOut = "ease-out",
|
|
7432
|
+
Linear = "linear"
|
|
7433
|
+
}
|
|
7434
|
+
type AnimationBaseSetting = {
|
|
7435
|
+
loop: boolean;
|
|
7436
|
+
delay: number;
|
|
7437
|
+
distance: number;
|
|
7438
|
+
speed: number;
|
|
7439
|
+
intensity: number;
|
|
7440
|
+
easing: AnimationEasingType;
|
|
7441
|
+
direction: AnimationDirectionType;
|
|
7442
|
+
zoomDirection: AnimationZoomDirectionType;
|
|
7443
|
+
isFade: boolean;
|
|
7444
|
+
};
|
|
7445
|
+
/** Represents the animation setting extracted from the animation control */
|
|
7446
|
+
type AnimationSettingType = {
|
|
7447
|
+
scale: ScaleByDirection;
|
|
7448
|
+
} & AnimationBaseSetting;
|
|
7449
|
+
type ScaleByDirection = {
|
|
7450
|
+
[key in AnimationZoomDirectionType]: [number | string, number | string];
|
|
7451
|
+
};
|
|
7452
|
+
type AnimationShakeSettingType = Pick<AnimationSettingType, AnimationSetting.Loop | AnimationSetting.Intensity | AnimationSetting.Speed | AnimationSetting.Delay | AnimationSetting.Easing>;
|
|
7453
|
+
type AnimationZoomSettingType = Pick<AnimationSettingType, AnimationSetting.Scale | AnimationSetting.ZoomDirection | AnimationSetting.Speed | AnimationSetting.Delay | AnimationSetting.Easing | AnimationSetting.IsFade>;
|
|
7454
|
+
type AnimationFadeSettingType = Pick<AnimationSettingType, AnimationSetting.Speed | AnimationSetting.Delay | AnimationSetting.Easing>;
|
|
7455
|
+
type AnimationSlideSettingType = Pick<AnimationSettingType, AnimationSetting.Direction | AnimationSetting.Distance | AnimationSetting.Speed | AnimationSetting.Delay | AnimationSetting.Easing>;
|
|
7456
|
+
type SettingByAnimationType = {
|
|
7457
|
+
[key in AnimationType]: key extends AnimationType.Slide ? AnimationSlideSettingType : key extends AnimationType.Shake ? AnimationShakeSettingType : key extends AnimationType.Zoom ? AnimationZoomSettingType : key extends AnimationType.Fade ? AnimationFadeSettingType : never;
|
|
7458
|
+
};
|
|
7459
|
+
type SettingByAnimationValues = SettingByAnimationType[keyof SettingByAnimationType];
|
|
7460
|
+
type TriggerConfig = Record<AnimationTriggerType, AnimationTriggerConfig>;
|
|
7461
|
+
type AnimationConfig = {
|
|
7462
|
+
enabled: boolean;
|
|
7463
|
+
trigger: AnimationTriggerType;
|
|
7464
|
+
triggerConfig: TriggerConfig;
|
|
7465
|
+
};
|
|
7466
|
+
type AnimationTriggerConfig = {
|
|
7467
|
+
animation: AnimationType;
|
|
7468
|
+
setting: SettingByAnimationType;
|
|
7469
|
+
};
|
|
7470
|
+
|
|
7394
7471
|
type ExtraFiles = Record<string, string>;
|
|
7395
7472
|
type Props = {
|
|
7396
7473
|
uid: string;
|
|
@@ -7985,6 +8062,13 @@ declare const isEmptyChildren: (children: React.ReactNode) => boolean;
|
|
|
7985
8062
|
|
|
7986
8063
|
declare const filterToolbarPreview: (children: React.ReactNode, keep?: boolean) => React.ReactNode;
|
|
7987
8064
|
|
|
8065
|
+
declare const animations: () => {
|
|
8066
|
+
zoom: (target: Element, options: AnimationSettingType) => Animation;
|
|
8067
|
+
shake: (target: Element, options: AnimationSettingType) => Animation;
|
|
8068
|
+
fade: (target: Element, options: AnimationSettingType) => Animation;
|
|
8069
|
+
slide: (target: Element, options: AnimationSettingType) => Animation;
|
|
8070
|
+
};
|
|
8071
|
+
|
|
7988
8072
|
type ResponsiveKey<T extends ShortHandProperty> = `--${T}` | `--${T}-tablet` | `--${T}-mobile`;
|
|
7989
8073
|
declare const removeNullUndefined: <T extends Record<string, any>>(obj: T) => T;
|
|
7990
8074
|
declare const makeStyleKey: <T extends ShortHandProperty>(name: T) => string[];
|
|
@@ -9975,4 +10059,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' |
|
|
|
9975
10059
|
|
|
9976
10060
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
9977
10061
|
|
|
9978
|
-
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, 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, 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, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, 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 };
|
|
10062
|
+
export { AddOn, AddonProvider, AddonProviderProps, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, 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, 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, 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, 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, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, animations, 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, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, 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.
|
|
3
|
+
"version": "1.30.0",
|
|
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.25.0",
|
|
28
|
-
"@gem-sdk/styles": "1.29.
|
|
28
|
+
"@gem-sdk/styles": "1.29.7"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"react-error-boundary": "4.0.10",
|