@gem-sdk/core 2.0.0-dev.497 → 2.0.0-dev.504

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.
@@ -3,6 +3,7 @@
3
3
  var constant = require('./constant.js');
4
4
  var colors = require('./colors.js');
5
5
  var makeStyle = require('./make-style.js');
6
+ var getResonsiveValue = require('./get-resonsive-value.js');
6
7
 
7
8
  const isEmptyBg = (value)=>{
8
9
  return value?.videoHtml5 === undefined && value?.video === undefined && !value?.videoType;
@@ -239,9 +240,43 @@ const getGradientBgrStyleByDevice = (backgroundStyle, ignoreBackgroundImage)=>{
239
240
  });
240
241
  return bgrStyle;
241
242
  };
243
+ const getBgByDevice = (data)=>{
244
+ const { backgroundColor, backgroundImage } = data;
245
+ if (!backgroundColor && !backgroundImage) return;
246
+ const mapBgImage = {
247
+ desktop: getResonsiveValue.getResponsiveValueByScreen(backgroundImage, 'desktop'),
248
+ tablet: getResonsiveValue.getResponsiveValueByScreen(backgroundImage, 'tablet'),
249
+ mobile: getResonsiveValue.getResponsiveValueByScreen(backgroundImage, 'mobile')
250
+ };
251
+ const bgrStyle = {};
252
+ [
253
+ 'desktop',
254
+ 'tablet',
255
+ 'mobile'
256
+ ].forEach((device)=>{
257
+ const colorValue = getResonsiveValue.getResponsiveValueByScreen(backgroundColor, device);
258
+ const imageValue = backgroundImage ? getBgImageByDevice(mapBgImage, device) : undefined;
259
+ if (colorValue?.includes(GRADIENT_BGR_KEY)) {
260
+ Object.assign(bgrStyle, {
261
+ [`--bgi${device !== 'desktop' ? '-' + device : ''}`]: colorValue
262
+ });
263
+ } else {
264
+ Object.assign(bgrStyle, {
265
+ [`--bgc${device !== 'desktop' ? '-' + device : ''}`]: colorValue
266
+ });
267
+ }
268
+ if (imageValue && imageValue !== 'none') {
269
+ Object.assign(bgrStyle, {
270
+ [`--bgi${device !== 'desktop' ? '-' + device : ''}`]: imageValue
271
+ });
272
+ }
273
+ });
274
+ return bgrStyle;
275
+ };
242
276
 
243
277
  exports.GRADIENT_BGR_KEY = GRADIENT_BGR_KEY;
244
278
  exports.composeBackgroundCss = composeBackgroundCss;
279
+ exports.getBgByDevice = getBgByDevice;
245
280
  exports.getBgImageByDevice = getBgImageByDevice;
246
281
  exports.getBgVideoByDevice = getBgVideoByDevice;
247
282
  exports.getGradientBgrStyleByDevice = getGradientBgrStyleByDevice;
@@ -7,7 +7,7 @@ const isObject = (obj)=>{
7
7
  }
8
8
  return false;
9
9
  };
10
- const props = (strings, ...keys)=>{
10
+ const props = (_strings, ...keys)=>{
11
11
  const props = keys[0];
12
12
  const propsArr = [];
13
13
  for(const attr in props){
@@ -28,7 +28,7 @@ const props = (strings, ...keys)=>{
28
28
  }
29
29
  return propsArr.join(' ');
30
30
  };
31
- const styles = (strings, ...keys)=>{
31
+ const styles = (_strings, ...keys)=>{
32
32
  const styles = keys[0];
33
33
  const styleArr = [];
34
34
  for(const attr in styles){
@@ -17,7 +17,7 @@ var loadScript = require('../helpers/load-script.js');
17
17
  setStatus('loading');
18
18
  await loadScript.loadScript(url, options);
19
19
  setStatus('done');
20
- } catch (error) {
20
+ } catch (_error) {
21
21
  setStatus('error');
22
22
  }
23
23
  }
package/dist/cjs/index.js CHANGED
@@ -222,6 +222,7 @@ exports.gtag = gtag;
222
222
  exports.tiktokpixel = tiktokpixel;
223
223
  exports.GRADIENT_BGR_KEY = background.GRADIENT_BGR_KEY;
224
224
  exports.composeBackgroundCss = background.composeBackgroundCss;
225
+ exports.getBgByDevice = background.getBgByDevice;
225
226
  exports.getBgImageByDevice = background.getBgImageByDevice;
226
227
  exports.getBgVideoByDevice = background.getBgVideoByDevice;
227
228
  exports.getGradientBgrStyleByDevice = background.getGradientBgrStyleByDevice;
@@ -1,6 +1,7 @@
1
1
  import { devicesMapping } from './constant.js';
2
2
  import { isColor, getSingleColorVariable } from './colors.js';
3
3
  import { makeStyleResponsive } from './make-style.js';
4
+ import { getResponsiveValueByScreen } from './get-resonsive-value.js';
4
5
 
5
6
  const isEmptyBg = (value)=>{
6
7
  return value?.videoHtml5 === undefined && value?.video === undefined && !value?.videoType;
@@ -237,5 +238,38 @@ const getGradientBgrStyleByDevice = (backgroundStyle, ignoreBackgroundImage)=>{
237
238
  });
238
239
  return bgrStyle;
239
240
  };
241
+ const getBgByDevice = (data)=>{
242
+ const { backgroundColor, backgroundImage } = data;
243
+ if (!backgroundColor && !backgroundImage) return;
244
+ const mapBgImage = {
245
+ desktop: getResponsiveValueByScreen(backgroundImage, 'desktop'),
246
+ tablet: getResponsiveValueByScreen(backgroundImage, 'tablet'),
247
+ mobile: getResponsiveValueByScreen(backgroundImage, 'mobile')
248
+ };
249
+ const bgrStyle = {};
250
+ [
251
+ 'desktop',
252
+ 'tablet',
253
+ 'mobile'
254
+ ].forEach((device)=>{
255
+ const colorValue = getResponsiveValueByScreen(backgroundColor, device);
256
+ const imageValue = backgroundImage ? getBgImageByDevice(mapBgImage, device) : undefined;
257
+ if (colorValue?.includes(GRADIENT_BGR_KEY)) {
258
+ Object.assign(bgrStyle, {
259
+ [`--bgi${device !== 'desktop' ? '-' + device : ''}`]: colorValue
260
+ });
261
+ } else {
262
+ Object.assign(bgrStyle, {
263
+ [`--bgc${device !== 'desktop' ? '-' + device : ''}`]: colorValue
264
+ });
265
+ }
266
+ if (imageValue && imageValue !== 'none') {
267
+ Object.assign(bgrStyle, {
268
+ [`--bgi${device !== 'desktop' ? '-' + device : ''}`]: imageValue
269
+ });
270
+ }
271
+ });
272
+ return bgrStyle;
273
+ };
240
274
 
241
- export { GRADIENT_BGR_KEY, composeBackgroundCss, getBgImageByDevice, getBgVideoByDevice, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getStyleBackgroundByDevice, getStyleBgColor, makeFixedBgAttachment };
275
+ export { GRADIENT_BGR_KEY, composeBackgroundCss, getBgByDevice, getBgImageByDevice, getBgVideoByDevice, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getStyleBackgroundByDevice, getStyleBgColor, makeFixedBgAttachment };
@@ -5,7 +5,7 @@ const isObject = (obj)=>{
5
5
  }
6
6
  return false;
7
7
  };
8
- const props = (strings, ...keys)=>{
8
+ const props = (_strings, ...keys)=>{
9
9
  const props = keys[0];
10
10
  const propsArr = [];
11
11
  for(const attr in props){
@@ -26,7 +26,7 @@ const props = (strings, ...keys)=>{
26
26
  }
27
27
  return propsArr.join(' ');
28
28
  };
29
- const styles = (strings, ...keys)=>{
29
+ const styles = (_strings, ...keys)=>{
30
30
  const styles = keys[0];
31
31
  const styleArr = [];
32
32
  for(const attr in styles){
@@ -13,7 +13,7 @@ import { loadScript } from '../helpers/load-script.js';
13
13
  setStatus('loading');
14
14
  await loadScript(url, options);
15
15
  setStatus('done');
16
- } catch (error) {
16
+ } catch (_error) {
17
17
  setStatus('error');
18
18
  }
19
19
  }
package/dist/esm/index.js CHANGED
@@ -59,7 +59,7 @@ import * as gtag from './helpers/tracking/gtag.js';
59
59
  export { gtag };
60
60
  import * as tiktokpixel from './helpers/tracking/tiktokpixel.js';
61
61
  export { tiktokpixel };
62
- export { GRADIENT_BGR_KEY, composeBackgroundCss, getBgImageByDevice, getBgVideoByDevice, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getStyleBackgroundByDevice, getStyleBgColor, makeFixedBgAttachment } from './helpers/background.js';
62
+ export { GRADIENT_BGR_KEY, composeBackgroundCss, getBgByDevice, getBgImageByDevice, getBgVideoByDevice, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getStyleBackgroundByDevice, getStyleBgColor, makeFixedBgAttachment } from './helpers/background.js';
63
63
  export { composeBackgroundImageCss, getBgImageSourceByDevice, getStyleBackgroundImageByDevice, getStyleBgImageSource } from './helpers/backgroundImage.js';
64
64
  export { composeTextColorCss, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getSingleColorVariable, isColor } from './helpers/colors.js';
65
65
  export { composeAdvanceStyle, composeAdvanceStyleForPostPurchase, convertBoxShadowV1ToV2, filterAttrInStyle, getCornerStyle, removeAttrInStyle, removePaddingYInStyle, splitStyle } from './helpers/compose-advance-style.js';
@@ -37663,6 +37663,10 @@ declare const makeFixedBgAttachment: (background?: ObjectDevices<Background>) =>
37663
37663
  declare const GRADIENT_BGR_KEY = "linear-gradient";
37664
37664
  declare const getGradientBgrStyleForButton: (backgroundStyle: Partial<Record<StateType, ColorValueType>> | undefined) => {} | undefined;
37665
37665
  declare const getGradientBgrStyleByDevice: (backgroundStyle: Partial<Record<Devices$1, Background>> | undefined, ignoreBackgroundImage?: Record<Devices$1, boolean>) => {} | undefined;
37666
+ declare const getBgByDevice: (data: {
37667
+ backgroundColor: Partial<Record<Devices$1, string>> | undefined;
37668
+ backgroundImage: Partial<Record<Devices$1, BackgroundImageValue>> | undefined;
37669
+ }) => {} | undefined;
37666
37670
 
37667
37671
  type Devices = 'desktop' | 'tablet' | 'mobile';
37668
37672
  type Options = {
@@ -38118,6 +38122,15 @@ declare const filterAttrInStyle: (style?: React.CSSProperties, filterKeys?: stri
38118
38122
  '--jc-mobile'?: csstype.Property.JustifyContent | undefined;
38119
38123
  '--hvr-jc-mobile'?: csstype.Property.JustifyContent | undefined;
38120
38124
  '--focus-jc-mobile'?: csstype.Property.JustifyContent | undefined;
38125
+ '--js'?: csstype.Property.JustifySelf | undefined;
38126
+ '--hvr-js'?: csstype.Property.JustifySelf | undefined;
38127
+ '--focus-js'?: csstype.Property.JustifySelf | undefined;
38128
+ '--js-tablet'?: csstype.Property.JustifySelf | undefined;
38129
+ '--hvr-js-tablet'?: csstype.Property.JustifySelf | undefined;
38130
+ '--focus-js-tablet'?: csstype.Property.JustifySelf | undefined;
38131
+ '--js-mobile'?: csstype.Property.JustifySelf | undefined;
38132
+ '--hvr-js-mobile'?: csstype.Property.JustifySelf | undefined;
38133
+ '--focus-js-mobile'?: csstype.Property.JustifySelf | undefined;
38121
38134
  '--left'?: csstype.Property.Left<string | number> | undefined;
38122
38135
  '--hvr-left'?: csstype.Property.Left<string | number> | undefined;
38123
38136
  '--focus-left'?: csstype.Property.Left<string | number> | undefined;
@@ -39721,6 +39734,15 @@ declare const removeAttrInStyle: (style?: React.CSSProperties, filterKeys?: stri
39721
39734
  '--jc-mobile'?: csstype.Property.JustifyContent | undefined;
39722
39735
  '--hvr-jc-mobile'?: csstype.Property.JustifyContent | undefined;
39723
39736
  '--focus-jc-mobile'?: csstype.Property.JustifyContent | undefined;
39737
+ '--js'?: csstype.Property.JustifySelf | undefined;
39738
+ '--hvr-js'?: csstype.Property.JustifySelf | undefined;
39739
+ '--focus-js'?: csstype.Property.JustifySelf | undefined;
39740
+ '--js-tablet'?: csstype.Property.JustifySelf | undefined;
39741
+ '--hvr-js-tablet'?: csstype.Property.JustifySelf | undefined;
39742
+ '--focus-js-tablet'?: csstype.Property.JustifySelf | undefined;
39743
+ '--js-mobile'?: csstype.Property.JustifySelf | undefined;
39744
+ '--hvr-js-mobile'?: csstype.Property.JustifySelf | undefined;
39745
+ '--focus-js-mobile'?: csstype.Property.JustifySelf | undefined;
39724
39746
  '--left'?: csstype.Property.Left<string | number> | undefined;
39725
39747
  '--hvr-left'?: csstype.Property.Left<string | number> | undefined;
39726
39748
  '--focus-left'?: csstype.Property.Left<string | number> | undefined;
@@ -41325,6 +41347,15 @@ declare const removePaddingYInStyle: (style?: React.CSSProperties) => {
41325
41347
  '--jc-mobile'?: csstype.Property.JustifyContent | undefined;
41326
41348
  '--hvr-jc-mobile'?: csstype.Property.JustifyContent | undefined;
41327
41349
  '--focus-jc-mobile'?: csstype.Property.JustifyContent | undefined;
41350
+ '--js'?: csstype.Property.JustifySelf | undefined;
41351
+ '--hvr-js'?: csstype.Property.JustifySelf | undefined;
41352
+ '--focus-js'?: csstype.Property.JustifySelf | undefined;
41353
+ '--js-tablet'?: csstype.Property.JustifySelf | undefined;
41354
+ '--hvr-js-tablet'?: csstype.Property.JustifySelf | undefined;
41355
+ '--focus-js-tablet'?: csstype.Property.JustifySelf | undefined;
41356
+ '--js-mobile'?: csstype.Property.JustifySelf | undefined;
41357
+ '--hvr-js-mobile'?: csstype.Property.JustifySelf | undefined;
41358
+ '--focus-js-mobile'?: csstype.Property.JustifySelf | undefined;
41328
41359
  '--left'?: csstype.Property.Left<string | number> | undefined;
41329
41360
  '--hvr-left'?: csstype.Property.Left<string | number> | undefined;
41330
41361
  '--focus-left'?: csstype.Property.Left<string | number> | undefined;
@@ -42600,8 +42631,8 @@ declare const composeCornerCss: (value?: CornerRadius | undefined, important?: b
42600
42631
 
42601
42632
  type CallbackCondition = () => string;
42602
42633
  declare const RenderIf: (c: boolean | null | undefined, t: string | CallbackCondition, f?: string | CallbackCondition) => string;
42603
- declare const props: (strings: any, ...keys: any[]) => string;
42604
- declare const styles: (strings: any, ...keys: any[]) => string;
42634
+ declare const props: (_strings: any, ...keys: any[]) => string;
42635
+ declare const styles: (_strings: any, ...keys: any[]) => string;
42605
42636
  declare const dataStringify: (obj: object) => string;
42606
42637
  declare const template: (strings: any, ...keys: any[]) => string;
42607
42638
  declare const composeMemo: <T>(fn: () => T, _?: any[]) => T;
@@ -43030,6 +43061,15 @@ declare const getResponsiveStyleShadow: (value?: any, styleAppliedFor?: ShadowSt
43030
43061
  '--jc-mobile'?: csstype.Property.JustifyContent | undefined;
43031
43062
  '--hvr-jc-mobile'?: csstype.Property.JustifyContent | undefined;
43032
43063
  '--focus-jc-mobile'?: csstype.Property.JustifyContent | undefined;
43064
+ '--js'?: csstype.Property.JustifySelf | undefined;
43065
+ '--hvr-js'?: csstype.Property.JustifySelf | undefined;
43066
+ '--focus-js'?: csstype.Property.JustifySelf | undefined;
43067
+ '--js-tablet'?: csstype.Property.JustifySelf | undefined;
43068
+ '--hvr-js-tablet'?: csstype.Property.JustifySelf | undefined;
43069
+ '--focus-js-tablet'?: csstype.Property.JustifySelf | undefined;
43070
+ '--js-mobile'?: csstype.Property.JustifySelf | undefined;
43071
+ '--hvr-js-mobile'?: csstype.Property.JustifySelf | undefined;
43072
+ '--focus-js-mobile'?: csstype.Property.JustifySelf | undefined;
43033
43073
  '--left'?: csstype.Property.Left<string | number> | undefined;
43034
43074
  '--hvr-left'?: csstype.Property.Left<string | number> | undefined;
43035
43075
  '--focus-left'?: csstype.Property.Left<string | number> | undefined;
@@ -44636,6 +44676,15 @@ declare const composeShadow: (shadowInput?: ObjectDevices<StateProp<ShadowProps>
44636
44676
  '--jc-mobile'?: csstype.Property.JustifyContent | undefined;
44637
44677
  '--hvr-jc-mobile'?: csstype.Property.JustifyContent | undefined;
44638
44678
  '--focus-jc-mobile'?: csstype.Property.JustifyContent | undefined;
44679
+ '--js'?: csstype.Property.JustifySelf | undefined;
44680
+ '--hvr-js'?: csstype.Property.JustifySelf | undefined;
44681
+ '--focus-js'?: csstype.Property.JustifySelf | undefined;
44682
+ '--js-tablet'?: csstype.Property.JustifySelf | undefined;
44683
+ '--hvr-js-tablet'?: csstype.Property.JustifySelf | undefined;
44684
+ '--focus-js-tablet'?: csstype.Property.JustifySelf | undefined;
44685
+ '--js-mobile'?: csstype.Property.JustifySelf | undefined;
44686
+ '--hvr-js-mobile'?: csstype.Property.JustifySelf | undefined;
44687
+ '--focus-js-mobile'?: csstype.Property.JustifySelf | undefined;
44639
44688
  '--left'?: csstype.Property.Left<string | number> | undefined;
44640
44689
  '--hvr-left'?: csstype.Property.Left<string | number> | undefined;
44641
44690
  '--focus-left'?: csstype.Property.Left<string | number> | undefined;
@@ -46296,6 +46345,15 @@ declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?:
46296
46345
  '--jc-mobile'?: csstype.Property.JustifyContent | undefined;
46297
46346
  '--hvr-jc-mobile'?: csstype.Property.JustifyContent | undefined;
46298
46347
  '--focus-jc-mobile'?: csstype.Property.JustifyContent | undefined;
46348
+ '--js'?: csstype.Property.JustifySelf | undefined;
46349
+ '--hvr-js'?: csstype.Property.JustifySelf | undefined;
46350
+ '--focus-js'?: csstype.Property.JustifySelf | undefined;
46351
+ '--js-tablet'?: csstype.Property.JustifySelf | undefined;
46352
+ '--hvr-js-tablet'?: csstype.Property.JustifySelf | undefined;
46353
+ '--focus-js-tablet'?: csstype.Property.JustifySelf | undefined;
46354
+ '--js-mobile'?: csstype.Property.JustifySelf | undefined;
46355
+ '--hvr-js-mobile'?: csstype.Property.JustifySelf | undefined;
46356
+ '--focus-js-mobile'?: csstype.Property.JustifySelf | undefined;
46299
46357
  '--left'?: csstype.Property.Left<string | number> | undefined;
46300
46358
  '--hvr-left'?: csstype.Property.Left<string | number> | undefined;
46301
46359
  '--focus-left'?: csstype.Property.Left<string | number> | undefined;
@@ -47816,4 +47874,4 @@ declare const useInteraction: () => {
47816
47874
 
47817
47875
  declare const DEVICES: NameDevices$1[];
47818
47876
 
47819
- export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, ArticlesDocument, ArticlesQueryResponse, ArticlesQueryVariables, Background, BackgroundImageValue, BackgroundMedia, BackgroundVideoValue, BaseProps, BasePropsWrap, BlockEntity, BlogsDocument, BlogsQueryResponse, BlogsQueryVariables, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, 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, DEVICES, DeepPartial, DotStyle, Dropdown, DynamicCollection, DynamicProduct, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, I18nProvider, I18nProviderProps, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEvent, InteractionTargetEventObject, InteractionTriggerEvent, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, LooxReviewsWidgetTypeV2, MediaSelectFragment, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, Option$4 as Option, OptionNormalStyle, OptionSpecialStyle, Options$1 as Options, PaddingType, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewThemePageDocument, PreviewThemePageQueryResponse, PreviewThemePageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedShopMetasDocument, PublishedShopMetasQueryResponse, PublishedShopMetasQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, SaleFunnelOfferDocument, SaleFunnelOfferQueryResponse, SaleFunnelOfferQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, Setting, SettingByAnimationType, SettingByAnimationValues, SettingUIGroup, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, ShopShopifyDocument, ShopShopifyQueryResponse, ShopShopifyQueryVariables, shop as ShopType, SizeProps, SizeSetting$1 as SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StampedWidgetTypeV2, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSectionStatus$1 as ThemeSectionStatus, TransformProp, TriggerConfig, TrustooWidgetType, TrustooWidgetTypeV2, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, ValidateType, VariableRelatedStyles, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBackgroundImageCss, composeBorderCss, composeBorderResponsive, composeClasses, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadow, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTextHoverColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertBoxShadowV1ToV2, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterToolbarPreview, filterTruthyStyles, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAlignmentClasses, getAppBlocks, getAspectRatioGlobalSize, getBgImageByDevice, getBgImageSourceByDevice, getBgVideoByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getCornerCSSFromGlobal, getCornerStyle, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getHeightByShapeGlobalSize, getLayoutClasses, getPaddingGlobalSize, getPaddingStyleByDevice, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStylePadding, getResponsiveStyleShadow, getResponsiveStyleShadowWithoutState, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBackgroundImageByDevice, getStyleBgColor, getStyleBgImageSource, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, handleConvertInputBorderColor, handleConvertInputBorderWidth, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleResponsiveWidth, makeStyleResponsiveWidthWithoutAuto, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, shopifyPriceRounding, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useArticleListStore, useArticleStore, useArticlesQuery, useBlogsQuery, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useHasPreSelected, useI18n, useI18nStore, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductBundleDiscount, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductShopifyEditLink, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useShopifyLink, useStickyStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useTimezone, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
47877
+ export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, ArticlesDocument, ArticlesQueryResponse, ArticlesQueryVariables, Background, BackgroundImageValue, BackgroundMedia, BackgroundVideoValue, BaseProps, BasePropsWrap, BlockEntity, BlogsDocument, BlogsQueryResponse, BlogsQueryVariables, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, 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, DEVICES, DeepPartial, DotStyle, Dropdown, DynamicCollection, DynamicProduct, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, I18nProvider, I18nProviderProps, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEvent, InteractionTargetEventObject, InteractionTriggerEvent, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, LooxReviewsWidgetTypeV2, MediaSelectFragment, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, Option$4 as Option, OptionNormalStyle, OptionSpecialStyle, Options$1 as Options, PaddingType, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewThemePageDocument, PreviewThemePageQueryResponse, PreviewThemePageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedShopMetasDocument, PublishedShopMetasQueryResponse, PublishedShopMetasQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, SaleFunnelOfferDocument, SaleFunnelOfferQueryResponse, SaleFunnelOfferQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, Setting, SettingByAnimationType, SettingByAnimationValues, SettingUIGroup, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, ShopShopifyDocument, ShopShopifyQueryResponse, ShopShopifyQueryVariables, shop as ShopType, SizeProps, SizeSetting$1 as SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StampedWidgetTypeV2, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSectionStatus$1 as ThemeSectionStatus, TransformProp, TriggerConfig, TrustooWidgetType, TrustooWidgetTypeV2, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, ValidateType, VariableRelatedStyles, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBackgroundImageCss, composeBorderCss, composeBorderResponsive, composeClasses, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadow, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTextHoverColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertBoxShadowV1ToV2, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterToolbarPreview, filterTruthyStyles, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAlignmentClasses, getAppBlocks, getAspectRatioGlobalSize, getBgByDevice, getBgImageByDevice, getBgImageSourceByDevice, getBgVideoByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getCornerCSSFromGlobal, getCornerStyle, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getHeightByShapeGlobalSize, getLayoutClasses, getPaddingGlobalSize, getPaddingStyleByDevice, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStylePadding, getResponsiveStyleShadow, getResponsiveStyleShadowWithoutState, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBackgroundImageByDevice, getStyleBgColor, getStyleBgImageSource, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, handleConvertInputBorderColor, handleConvertInputBorderWidth, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleResponsiveWidth, makeStyleResponsiveWidthWithoutAuto, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, shopifyPriceRounding, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useArticleListStore, useArticleStore, useArticlesQuery, useBlogsQuery, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useHasPreSelected, useI18n, useI18nStore, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductBundleDiscount, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductShopifyEditLink, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useShopifyLink, useStickyStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useTimezone, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "2.0.0-dev.497",
3
+ "version": "2.0.0-dev.504",
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": "2.0.0-dev.324",
31
- "@gem-sdk/styles": "2.0.0-dev.482",
31
+ "@gem-sdk/styles": "2.0.0-dev.501",
32
32
  "@types/classnames": "^2.3.1"
33
33
  },
34
34
  "dependencies": {