@gem-sdk/core 1.24.4 → 1.25.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.
Files changed (40) hide show
  1. package/dist/cjs/components/ComponentToolbarPreview.js +443 -0
  2. package/dist/cjs/components/ComponentWrapperPreview.js +37 -4
  3. package/dist/cjs/components/Render.liquid.js +8 -0
  4. package/dist/cjs/components/RenderCustomCode.js +2 -0
  5. package/dist/cjs/components/resize/Resize.js +16 -0
  6. package/dist/cjs/components/resize/Spacing.js +132 -0
  7. package/dist/cjs/components/theme-section/CreateThemeSection.js +117 -0
  8. package/dist/cjs/components/theme-section/ThemeSectionStatus.js +36 -0
  9. package/dist/cjs/components/theme-section/ThemeSectionTooltip.js +102 -0
  10. package/dist/cjs/components/toolbar/Tooltip.js +22 -0
  11. package/dist/cjs/contexts/BuilderPreviewContext.js +36 -4
  12. package/dist/cjs/contexts/ShopContext.js +10 -0
  13. package/dist/cjs/helpers/filter-toolbar-preview.js +14 -0
  14. package/dist/cjs/helpers/is-empty-children.js +4 -1
  15. package/dist/cjs/helpers/make-style.js +8 -0
  16. package/dist/cjs/helpers/size.js +54 -0
  17. package/dist/cjs/helpers/typography.js +10 -9
  18. package/dist/cjs/hooks/useProduct.js +9 -1
  19. package/dist/cjs/index.js +7 -0
  20. package/dist/esm/components/ComponentToolbarPreview.js +441 -0
  21. package/dist/esm/components/ComponentWrapperPreview.js +38 -5
  22. package/dist/esm/components/Render.liquid.js +8 -0
  23. package/dist/esm/components/RenderCustomCode.js +2 -0
  24. package/dist/esm/components/resize/Resize.js +12 -0
  25. package/dist/esm/components/resize/Spacing.js +128 -0
  26. package/dist/esm/components/theme-section/CreateThemeSection.js +115 -0
  27. package/dist/esm/components/theme-section/ThemeSectionStatus.js +34 -0
  28. package/dist/esm/components/theme-section/ThemeSectionTooltip.js +100 -0
  29. package/dist/esm/components/toolbar/Tooltip.js +18 -0
  30. package/dist/esm/contexts/BuilderPreviewContext.js +36 -4
  31. package/dist/esm/contexts/ShopContext.js +10 -0
  32. package/dist/esm/helpers/filter-toolbar-preview.js +9 -0
  33. package/dist/esm/helpers/is-empty-children.js +4 -1
  34. package/dist/esm/helpers/make-style.js +8 -1
  35. package/dist/esm/helpers/size.js +51 -1
  36. package/dist/esm/helpers/typography.js +10 -9
  37. package/dist/esm/hooks/useProduct.js +9 -1
  38. package/dist/esm/index.js +3 -2
  39. package/dist/types/index.d.ts +81 -9
  40. package/package.json +3 -3
@@ -30,6 +30,8 @@ type BlockEntity = {
30
30
  uid: string;
31
31
  tag: string;
32
32
  label?: string;
33
+ customLabel?: string;
34
+ name?: string;
33
35
  dateModified?: string | number;
34
36
  childrens?: string[];
35
37
  settings?: Record<string, any>;
@@ -37,12 +39,17 @@ type BlockEntity = {
37
39
  styles?: Record<string, any>;
38
40
  editorConfigs?: Record<string, any>;
39
41
  type?: 'component';
42
+ isThemeSection?: boolean;
43
+ needPublishing?: boolean;
40
44
  };
41
45
  type SectionEntity = {
42
46
  uid: string;
43
47
  tag?: string;
44
48
  label?: string;
45
49
  type: 'section';
50
+ name?: string;
51
+ isThemeSection?: boolean;
52
+ needPublishing?: boolean;
46
53
  };
47
54
  type BuilderEntity = BlockEntity | SectionEntity;
48
55
  type BuilderEntityNested = Omit<BlockEntity, 'childrens'> & {
@@ -53,6 +60,13 @@ type BuilderState = {
53
60
  } & SectionData;
54
61
  type SectionData = Record<string, BuilderEntity>;
55
62
  type RenderMode = 'edit' | 'preview';
63
+ type DynamicProduct = {
64
+ productId?: string;
65
+ productHandle?: string;
66
+ } | null;
67
+ type DynamicCollection = {
68
+ collectionId?: string;
69
+ } | null;
56
70
 
57
71
  type InitComponentType<T = any> = {
58
72
  [K in keyof T]-?: {
@@ -77,6 +91,18 @@ type ImageShape$1 = {
77
91
  width?: string;
78
92
  height?: string;
79
93
  };
94
+ type SizeSettingGlobal = {
95
+ shape?: 'square' | 'vertical' | 'horizontal' | 'custom';
96
+ padding?: {
97
+ type?: 'small' | 'medium' | 'large' | 'custom';
98
+ top?: string;
99
+ left?: string;
100
+ bottom?: string;
101
+ right?: string;
102
+ };
103
+ width?: string;
104
+ height?: string;
105
+ };
80
106
  type FlexDirectionProp = 'row' | 'column' | 'row-reverse' | 'column-reverse';
81
107
  type TransformProp = 'default' | 'capitalize' | 'uppercase' | 'lowercase' | 'none';
82
108
  type BaseProps<Setting = unknown, Style = unknown, Advanced = Record<string, any>> = {
@@ -887,7 +913,27 @@ type GridArrange<T> = SharedControlType<T> & {
887
913
  readonly?: boolean;
888
914
  };
889
915
 
890
- 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> | VariantSwatchesPresetControlType<T> | ProductListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T>;
916
+ type SettingID = 'shape' | 'width' | 'height' | 'gap' | 'padding';
917
+ type OptionKeyword = 'default' | 'auto' | 'full' | 'equal' | 'small' | 'medium' | 'large';
918
+ type PaddingOptions = 'small' | 'medium' | 'large' | 'custom';
919
+ type PaddingConfig = Partial<Record<PaddingOptions, {
920
+ vertical: string;
921
+ horizontal: string;
922
+ }>>;
923
+ type SettingConfig = {
924
+ sizeConfig?: Partial<Record<'small' | 'medium' | 'large', string>>;
925
+ displayOptions?: OptionKeyword[];
926
+ paddingConfig?: PaddingConfig;
927
+ };
928
+ type SizeSetting$1<T> = SharedControlType<T> & {
929
+ type: 'size-setting';
930
+ placeholder?: string;
931
+ readonly?: boolean;
932
+ hiddenSettings?: SettingID[];
933
+ settingConfig?: Partial<Record<SettingID, SettingConfig>>;
934
+ };
935
+
936
+ 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> | VariantSwatchesPresetControlType<T> | ProductListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting$1<T>;
891
937
  type Setting<P extends BaseProps> = {
892
938
  id: 'setting';
893
939
  note?: string;
@@ -979,7 +1025,7 @@ type ControlUI = {
979
1025
  };
980
1026
  isMoreSetting?: boolean;
981
1027
  };
982
- type PageType = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'GP_ARTICLE' | 'GP_BLOG' | 'GP_COLLECTION' | 'GP_INDEX' | 'GP_PRODUCT' | 'GP_STATIC' | 'PRODUCT' | 'STATIC';
1028
+ type PageType = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'GP_ARTICLE' | 'GP_BLOG' | 'GP_COLLECTION' | 'GP_INDEX' | 'GP_PRODUCT' | 'GP_STATIC' | 'PRODUCT' | 'STATIC' | 'THEME_SECTION';
983
1029
  type ComponentPreset = {
984
1030
  id: string;
985
1031
  name: {
@@ -7308,6 +7354,9 @@ declare const useBuilderStore: <U>(selector: (state: ExtractState<StoreApi<Build
7308
7354
  type BuilderPreviewContextProps = {
7309
7355
  state: BuilderState;
7310
7356
  loaded?: boolean;
7357
+ isThemeSectionEditor?: boolean;
7358
+ dynamicProduct?: DynamicProduct;
7359
+ dynamicCollection?: DynamicCollection;
7311
7360
  addItem: (args: {
7312
7361
  data: BuilderEntityNested | BuilderEntityNested[];
7313
7362
  type?: 'component' | 'section';
@@ -7328,11 +7377,15 @@ type BuilderPreviewContextProps = {
7328
7377
  removeItem: (id: string) => void;
7329
7378
  forceChangeState: (data: BuilderState) => void;
7330
7379
  initState: (data: BuilderEntityNested | BuilderEntityNested[]) => void;
7380
+ getParents: (id: string, limit?: number) => BuilderEntity[];
7381
+ setDynamicProduct: (data: DynamicProduct) => void;
7382
+ setDynamicCollection: (data: DynamicCollection) => void;
7331
7383
  };
7332
7384
  type BuilderPreviewProviderProps = Pick<BuilderPreviewContextProps, 'state'> & {
7333
7385
  children: React.ReactNode;
7334
7386
  lazy?: boolean;
7335
7387
  priority?: boolean;
7388
+ isThemeSectionEditor?: boolean;
7336
7389
  };
7337
7390
  declare const BuilderPreviewProvider: React.FC<BuilderPreviewProviderProps>;
7338
7391
  declare const useBuilderPreviewStore: <U>(selector: (state: ExtractState<StoreApi<BuilderPreviewContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
@@ -7512,6 +7565,8 @@ type ShopContextProps = {
7512
7565
  mobileOnly?: boolean;
7513
7566
  swatches?: GlobalSwatchesData[];
7514
7567
  isStorefront?: boolean;
7568
+ createThemeSectionCount?: number;
7569
+ plan?: string;
7515
7570
  changeLocale: (locale: string) => void;
7516
7571
  changeStorefrontInfo: (args: {
7517
7572
  url?: string;
@@ -7520,12 +7575,14 @@ type ShopContextProps = {
7520
7575
  changeCurrency: (currency: string) => void;
7521
7576
  changeSwatches: (swatches: GlobalSwatchesData[]) => void;
7522
7577
  changeLayoutSettings: (layoutSettings: LayoutSettings) => void;
7578
+ changeCreateThemeSectionCount: (count: number) => void;
7579
+ changeShopPlan: (plan: string) => void;
7523
7580
  };
7524
7581
  type ShopProviderProps = {
7525
7582
  children: React.ReactNode;
7526
7583
  key?: React.Key;
7527
7584
  addons: AddonContextProps['components'];
7528
- storeOption: Omit<ShopContextProps, 'changeLocale' | 'changeCurrency' | 'changeSwatches' | 'changeLayoutSettings' | 'changeStorefrontInfo'>;
7585
+ storeOption: Omit<ShopContextProps, 'changeLocale' | 'changeStorefrontInfo' | 'changeCurrency' | 'changeSwatches' | 'changeLayoutSettings' | 'changeCreateThemeSectionCount' | 'changeShopPlan'>;
7529
7586
  queryOption?: React.ComponentProps<typeof SWRConfig>['value'];
7530
7587
  };
7531
7588
  declare const ShopProvider: React.FC<ShopProviderProps>;
@@ -7817,6 +7874,8 @@ declare function isSafari(): boolean;
7817
7874
 
7818
7875
  declare const isEmptyChildren: (children: React.ReactNode) => boolean;
7819
7876
 
7877
+ declare const filterToolbarPreview: (children: React.ReactNode, keep?: boolean) => React.ReactNode;
7878
+
7820
7879
  type ResponsiveKey<T extends ShortHandProperty> = `--${T}` | `--${T}-tablet` | `--${T}-mobile`;
7821
7880
  declare const removeNullUndefined: <T extends Record<string, any>>(obj: T) => T;
7822
7881
  declare const makeStyle: <T extends ShortHandProperty, K>(style: Record<T, K>) => {
@@ -7826,6 +7885,11 @@ declare const makeStyleState: <T extends ShortHandProperty, K>(name: T, value?:
7826
7885
  declare const makeStyleResponsiveState: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices, Partial<Record<StateType, K>>>> | undefined) => {};
7827
7886
  declare const makeStyleResponsive: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices, K>> | undefined) => Record<ResponsiveKey<T>, K>;
7828
7887
  declare const makeWidth: (widthValue?: ObjectDevices<string | number>, fullWidthValue?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
7888
+ declare const makeGlobalSizeWidthResponsive: (globalSize?: ObjectDevices<SizeSettingGlobal>) => {
7889
+ '--w': string | undefined;
7890
+ '--w-tablet': string | undefined;
7891
+ '--w-mobile': string | undefined;
7892
+ };
7829
7893
  declare const makeHeight: (heighValue?: ObjectDevices<string | number>, autoHeight?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
7830
7894
  declare const makeAspectRatio: (aspectRatio?: ObjectDevices<string>, aspectWidth?: ObjectDevices<string | number>, aspectHeight?: ObjectDevices<string | number>) => ObjectDevices<string>;
7831
7895
  declare const makeLineClamp: (lineClampValue?: ObjectDevices<number>, hasLineClampValue?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
@@ -7884,7 +7948,7 @@ declare const composeTextColorCss: (color?: ColorValueType) => string;
7884
7948
  type TypographyClass = `g-${TypographyType}`;
7885
7949
  declare const genTypoClass: (name: TypographyType) => TypographyClass;
7886
7950
  declare const composeTypographyCss: (typography: TypographySetting | undefined) => string;
7887
- declare const composeTypographyV2Css: (typography: TypographySettingV2 | undefined) => string;
7951
+ declare const composeTypographyV2Css: (typography: TypographySettingV2 | undefined, isImportant?: boolean) => string;
7888
7952
  declare const composeTypography: (typography?: ObjectDevices<TypographyProps>) => React.CSSProperties;
7889
7953
  declare const composeTypographyV2: (value?: TypographyV2Props, attrs?: TypographyV2Attrs) => React.CSSProperties;
7890
7954
  declare const composeTypographyAttr: (attrs?: TypographyV2Attrs) => React.CSSProperties;
@@ -9456,6 +9520,14 @@ declare const baseAssetURL: string;
9456
9520
  declare const composeSize: (size?: ObjectDevices<SizeProps>) => React.CSSProperties;
9457
9521
  declare function genSizeClass(name: string): string;
9458
9522
  declare const composeSizeCss: (spacing?: SizeSetting) => string | undefined;
9523
+ declare const makeGlobalSize: (globalSize?: ObjectDevices<SizeSettingGlobal>) => {
9524
+ width: Record<ResponsiveKey<"w">, string | number>;
9525
+ height: Record<ResponsiveKey<"h">, string | number>;
9526
+ padding: React.CSSProperties;
9527
+ };
9528
+ declare const makeStyleWithDefault: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices, K>> | undefined, defaultVal?: Partial<Record<NameDevices, K>> | undefined) => Record<ResponsiveKey<T>, K>;
9529
+ declare const getWidthHeightGlobalSize: (type: 'width' | 'height', globalSize?: ObjectDevices<SizeSettingGlobal>) => Partial<Record<NameDevices, string | number>>;
9530
+ declare const getPaddingGlobalSize: (globalSize?: ObjectDevices<SizeSettingGlobal>) => React.CSSProperties;
9459
9531
 
9460
9532
  declare const parseValueWithUnit: (valueWithUnit: string) => any;
9461
9533
  declare const getStyleShadow: (shadowStyle: ShadowStyle, isActiveState?: boolean) => {
@@ -9703,12 +9775,12 @@ declare const useSelectedOption: () => {
9703
9775
  setSelectedOption: (optionId?: Maybe<string>, optionValue?: Maybe<string>, productId?: Maybe<string>, noEmit?: boolean) => void;
9704
9776
  forceSelectedOption: (selectedOption?: Record<string, string>, productId?: Maybe<string>, noEmit?: boolean) => void;
9705
9777
  };
9706
- declare const useVariants: () => Maybe<Pick<ProductVariant, "title" | "width" | "length" | "weight" | "height" | "id" | "baseID" | "platform" | "sku" | "barcode" | "costPrice" | "inventoryPolicy" | "inventoryQuantity" | "inventoryStatus" | "isDigital" | "lowInventoryAmount" | "manageInventory" | "mediaId" | "price" | "salePrice" | "soldIndividually"> & {
9707
- selectedOptions: Pick<SelectedOption, "value" | "name" | "optionType">[];
9778
+ declare const useVariants: () => Maybe<Pick<ProductVariant, "width" | "height" | "title" | "length" | "weight" | "id" | "baseID" | "platform" | "sku" | "barcode" | "costPrice" | "inventoryPolicy" | "inventoryQuantity" | "inventoryStatus" | "isDigital" | "lowInventoryAmount" | "manageInventory" | "mediaId" | "price" | "salePrice" | "soldIndividually"> & {
9779
+ selectedOptions: Pick<SelectedOption, "name" | "value" | "optionType">[];
9708
9780
  media?: Maybe<Pick<Media, "width" | "height" | "id" | "src" | "alt" | "contentType" | "previewImage">>;
9709
9781
  }>[];
9710
- declare const useVariant: (id: string) => Maybe<Pick<ProductVariant, "title" | "width" | "length" | "weight" | "height" | "id" | "baseID" | "platform" | "sku" | "barcode" | "costPrice" | "inventoryPolicy" | "inventoryQuantity" | "inventoryStatus" | "isDigital" | "lowInventoryAmount" | "manageInventory" | "mediaId" | "price" | "salePrice" | "soldIndividually"> & {
9711
- selectedOptions: Pick<SelectedOption, "value" | "name" | "optionType">[];
9782
+ declare const useVariant: (id: string) => Maybe<Pick<ProductVariant, "width" | "height" | "title" | "length" | "weight" | "id" | "baseID" | "platform" | "sku" | "barcode" | "costPrice" | "inventoryPolicy" | "inventoryQuantity" | "inventoryStatus" | "isDigital" | "lowInventoryAmount" | "manageInventory" | "mediaId" | "price" | "salePrice" | "soldIndividually"> & {
9783
+ selectedOptions: Pick<SelectedOption, "name" | "value" | "optionType">[];
9712
9784
  media?: Maybe<Pick<Media, "width" | "height" | "id" | "src" | "alt" | "contentType" | "previewImage">>;
9713
9785
  }>;
9714
9786
  declare const useCurrentVariant: () => Maybe<VariantSelectFragment>;
@@ -9757,4 +9829,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' |
9757
9829
 
9758
9830
  declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
9759
9831
 
9760
- 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, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OptionNormalStyle, OptionSpecialStyle, PageContext, 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, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SectionData, SectionEntity, SectionProvider, SectionProviderProps, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, 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, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeFixedBgAttachment, 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, useInitialSwatchesOptions, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, 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 };
9832
+ 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, DynamicCollection, DynamicProduct, ExtractState, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OptionNormalStyle, OptionSpecialStyle, PageContext, 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, 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, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, 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, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, 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, 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.24.4",
3
+ "version": "1.25.0",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -24,8 +24,8 @@
24
24
  "type-check": "yarn tsc --noEmit"
25
25
  },
26
26
  "devDependencies": {
27
- "@gem-sdk/adapter-shopify": "1.23.0",
28
- "@gem-sdk/styles": "1.23.0"
27
+ "@gem-sdk/adapter-shopify": "1.25.0",
28
+ "@gem-sdk/styles": "1.25.0"
29
29
  },
30
30
  "dependencies": {
31
31
  "react-error-boundary": "4.0.10",