@gem-sdk/core 1.41.3 → 1.42.0-dev.61
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/ComponentToolbarPreview.js +54 -6
- package/dist/cjs/components/ComponentWrapperPreview.js +44 -1
- package/dist/cjs/components/Render.liquid.js +2 -0
- package/dist/cjs/components/RenderCustomCode.js +2 -0
- package/dist/cjs/components/ai-generator/AIContentGenerator.js +205 -0
- package/dist/cjs/components/ai-generator/AIGenContentLoading.js +85 -0
- package/dist/cjs/components/ai-generator/components/PickProduct.js +218 -0
- package/dist/cjs/components/ai-generator/components/ToneAndVoice.js +77 -0
- package/dist/cjs/components/ai-generator/hooks/useCheckingProductInside.js +47 -0
- package/dist/cjs/components/ai-generator/hooks/useFlipPopup.js +110 -0
- package/dist/cjs/components/ai-generator/hooks/useGettingGenerateRequest.js +37 -0
- package/dist/cjs/components/ai-generator/hooks/useListenEventGenerate.js +63 -0
- package/dist/cjs/components/ai-generator/icons/AIIcon.js +67 -0
- package/dist/cjs/components/ai-generator/icons/CloseIcon.js +19 -0
- package/dist/cjs/components/ai-generator/icons/DropdownIcon.js +37 -0
- package/dist/cjs/components/ai-generator/icons/SearchIcon.js +21 -0
- package/dist/cjs/components/ai-generator/icons/ShowMoreIcon.js +21 -0
- package/dist/cjs/components/constant.js +19 -2
- package/dist/cjs/components/resize/Spacing.js +2 -0
- package/dist/cjs/components/theme-section/CreateThemeSection.js +2 -0
- package/dist/cjs/contexts/ArticleContext.js +39 -0
- package/dist/cjs/contexts/ArticleListContext.js +32 -0
- package/dist/cjs/contexts/BuilderPreviewContext.js +11 -6
- package/dist/cjs/contexts/SectionContext.js +1 -0
- package/dist/cjs/graphql/fragments/product-little.generated.js +9 -0
- package/dist/cjs/graphql/fragments/product.generated.js +9 -0
- package/dist/cjs/graphql/queries/products.generated.js +9 -0
- package/dist/cjs/helpers/align.js +19 -0
- package/dist/cjs/helpers/carousel.js +7 -10
- package/dist/cjs/helpers/colors.js +1 -1
- package/dist/cjs/helpers/queries/get-products.js +47 -0
- package/dist/cjs/helpers/typography.js +4 -4
- package/dist/cjs/hooks/articles/useArticlesQuery.js +152 -0
- package/dist/cjs/hooks/shop/use-products-query.js +39 -0
- package/dist/cjs/hooks/useAnimations.js +2 -0
- package/dist/cjs/hooks/useInitialSwatchesOptions.js +2 -0
- package/dist/cjs/hooks/useProduct.js +2 -0
- package/dist/cjs/index.js +12 -0
- package/dist/esm/components/ComponentToolbarPreview.js +54 -6
- package/dist/esm/components/ComponentWrapperPreview.js +44 -1
- package/dist/esm/components/Render.liquid.js +2 -0
- package/dist/esm/components/RenderCustomCode.js +2 -0
- package/dist/esm/components/ai-generator/AIContentGenerator.js +203 -0
- package/dist/esm/components/ai-generator/AIGenContentLoading.js +83 -0
- package/dist/esm/components/ai-generator/components/PickProduct.js +216 -0
- package/dist/esm/components/ai-generator/components/ToneAndVoice.js +75 -0
- package/dist/esm/components/ai-generator/hooks/useCheckingProductInside.js +45 -0
- package/dist/esm/components/ai-generator/hooks/useFlipPopup.js +108 -0
- package/dist/esm/components/ai-generator/hooks/useGettingGenerateRequest.js +35 -0
- package/dist/esm/components/ai-generator/hooks/useListenEventGenerate.js +61 -0
- package/dist/esm/components/ai-generator/icons/AIIcon.js +65 -0
- package/dist/esm/components/ai-generator/icons/CloseIcon.js +17 -0
- package/dist/esm/components/ai-generator/icons/DropdownIcon.js +34 -0
- package/dist/esm/components/ai-generator/icons/SearchIcon.js +19 -0
- package/dist/esm/components/ai-generator/icons/ShowMoreIcon.js +19 -0
- package/dist/esm/components/constant.js +19 -3
- package/dist/esm/components/resize/Spacing.js +2 -0
- package/dist/esm/components/theme-section/CreateThemeSection.js +2 -0
- package/dist/esm/contexts/ArticleContext.js +36 -0
- package/dist/esm/contexts/ArticleListContext.js +28 -0
- package/dist/esm/contexts/BuilderPreviewContext.js +11 -6
- package/dist/esm/contexts/SectionContext.js +1 -0
- package/dist/esm/graphql/fragments/product-little.generated.js +9 -0
- package/dist/esm/graphql/fragments/product.generated.js +9 -0
- package/dist/esm/graphql/queries/products.generated.js +9 -0
- package/dist/esm/helpers/align.js +17 -0
- package/dist/esm/helpers/carousel.js +7 -10
- package/dist/esm/helpers/colors.js +1 -1
- package/dist/esm/helpers/queries/get-products.js +46 -1
- package/dist/esm/helpers/typography.js +4 -4
- package/dist/esm/hooks/articles/useArticlesQuery.js +149 -0
- package/dist/esm/hooks/shop/use-products-query.js +39 -2
- package/dist/esm/hooks/useAnimations.js +2 -0
- package/dist/esm/hooks/useInitialSwatchesOptions.js +2 -0
- package/dist/esm/hooks/useProduct.js +2 -0
- package/dist/esm/index.js +5 -1
- package/dist/types/index.d.ts +178 -21
- package/package.json +5 -3
|
@@ -6,11 +6,13 @@ import 'swr';
|
|
|
6
6
|
import { usePageStore } from '../contexts/PageContext.js';
|
|
7
7
|
import '@gem-sdk/adapter-shopify';
|
|
8
8
|
import 'swr/mutation';
|
|
9
|
+
import 'swr/infinite';
|
|
9
10
|
import 'vanilla-lazyload';
|
|
10
11
|
import './useCartUI.js';
|
|
11
12
|
import { checkInStock } from '../helpers/variant.js';
|
|
12
13
|
import 'react-transition-group';
|
|
13
14
|
import '@gem-sdk/core';
|
|
15
|
+
import 'classnames';
|
|
14
16
|
import { flattenConnection } from '../helpers/flatten-connection.js';
|
|
15
17
|
import '../helpers/convert.js';
|
|
16
18
|
import { getSelectedVariant } from '../helpers/product.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -14,6 +14,8 @@ export { ShopProvider, useShopStore } from './contexts/ShopContext.js';
|
|
|
14
14
|
export { PageProvider, usePageStore } from './contexts/PageContext.js';
|
|
15
15
|
export { CollectionProvider, useCollectionStore } from './contexts/CollectionContext.js';
|
|
16
16
|
export { ModalProvider, useModalStore } from './contexts/ModalContext.js';
|
|
17
|
+
export { ArticleListProvider, useArticleListStore } from './contexts/ArticleListContext.js';
|
|
18
|
+
export { ArticleProvider, useArticleStore } from './contexts/ArticleContext.js';
|
|
17
19
|
export { PageViewUpDocument } from './graphql/mutations/page-view-up.generated.js';
|
|
18
20
|
export { CollectionDetailFilterDocument } from './graphql/queries/collection-detail-filter.generated.js';
|
|
19
21
|
export { CollectionDocument } from './graphql/queries/collection.generated.js';
|
|
@@ -49,6 +51,7 @@ export { composePositionLineHeight, composePostionIconList } from './helpers/ico
|
|
|
49
51
|
export { isDefined } from './helpers/is-defined.js';
|
|
50
52
|
export { composeGridLayout, convertOldLayout, gridToArrayRegex, optionLayoutStyle } from './helpers/layout.js';
|
|
51
53
|
export { makeAspectRatio, makeGlobalSizeHeightResponsive, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleState, makeWidth, removeNullUndefined } from './helpers/make-style.js';
|
|
54
|
+
export { convertTextAlignToJustify } from './helpers/align.js';
|
|
52
55
|
export { checkAvailableVariantInStock, getSelectedVariant, parseSelectedOption } from './helpers/product.js';
|
|
53
56
|
export { generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey } from './helpers/query.js';
|
|
54
57
|
export { composeCornerCss, composeRadius, composeRadiusResponsive, getCornerCSSFromGlobal, getCustomRadius, getRadiusCSSFromGlobal, getRadiusStyleActiveState } from './helpers/radius.js';
|
|
@@ -77,7 +80,7 @@ export { useCheckoutUrl, useConnectedShopify, useCurrency, useEditorMode, useIsS
|
|
|
77
80
|
export { useCollectionQuery } from './hooks/shop/use-collection-query.js';
|
|
78
81
|
export { useCollectionsQuery } from './hooks/shop/use-collections-query.js';
|
|
79
82
|
export { useProductQuery } from './hooks/shop/use-product-query.js';
|
|
80
|
-
export { useProductsQuery } from './hooks/shop/use-products-query.js';
|
|
83
|
+
export { useProductsQuery, useProductsQueryAll } from './hooks/shop/use-products-query.js';
|
|
81
84
|
export { useCurrentDevice } from './hooks/use-current-device.js';
|
|
82
85
|
export { shopifyPriceRounding, useFormatMoney } from './hooks/useFormatMoney.js';
|
|
83
86
|
export { useLazyVideo } from './hooks/use-lazy-video.js';
|
|
@@ -90,6 +93,7 @@ export { default as useIsomorphicLayoutEffect } from './hooks/useIsomorphicLayou
|
|
|
90
93
|
export { default as useLoadScript } from './hooks/useLoadScript.js';
|
|
91
94
|
export { default as useMoney } from './hooks/useMoney.js';
|
|
92
95
|
export { usePrevious } from './hooks/usePrevious.js';
|
|
96
|
+
export { useArticlesQuery, useBlogsQuery } from './hooks/articles/useArticlesQuery.js';
|
|
93
97
|
export { useCheckAvailableVariantInStock, useCurrentVariant, useCurrentVariantInStock, useFeaturedImageGlobal, useIsSyncProduct, useProduct, useProductOfferDiscount, useProductProperties, useQuantity, useSelectedOption, useUniqProductID, useVariant, useVariantOutStock, useVariants } from './hooks/useProduct.js';
|
|
94
98
|
export { useProductList, useProductListProducts, useProductListSettings, useProductListStyles } from './hooks/useProductList.js';
|
|
95
99
|
export { default as useSuspenseFetch } from './hooks/useSuspenseFetch.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ type Analytic$1 = {
|
|
|
60
60
|
gaTrackingID?: Maybe$1<Scalars$2['String']>;
|
|
61
61
|
tiktokPixelID?: Maybe$1<Scalars$2['String']>;
|
|
62
62
|
};
|
|
63
|
-
type Article$
|
|
63
|
+
type Article$2 = {
|
|
64
64
|
baseID?: Maybe$1<Scalars$2['String']>;
|
|
65
65
|
blogs?: Maybe$1<BlogConnection$1>;
|
|
66
66
|
description?: Maybe$1<Scalars$2['String']>;
|
|
@@ -133,7 +133,7 @@ type ArticleConnection$1 = {
|
|
|
133
133
|
};
|
|
134
134
|
type ArticleEdge$1 = {
|
|
135
135
|
cursor?: Maybe$1<Scalars$2['Cursor']>;
|
|
136
|
-
node?: Maybe$1<Article$
|
|
136
|
+
node?: Maybe$1<Article$2>;
|
|
137
137
|
};
|
|
138
138
|
type ArticleOrder$1 = {
|
|
139
139
|
direction: OrderDirection$1;
|
|
@@ -5722,7 +5722,7 @@ type PublishedThemeStyleWhereInput$1 = {
|
|
|
5722
5722
|
type Query$1 = {
|
|
5723
5723
|
_entities: Array<Maybe$1<_Entity>>;
|
|
5724
5724
|
_service: _Service;
|
|
5725
|
-
article?: Maybe$1<Article$
|
|
5725
|
+
article?: Maybe$1<Article$2>;
|
|
5726
5726
|
articles?: Maybe$1<ArticleConnection$1>;
|
|
5727
5727
|
blog?: Maybe$1<Blog$1>;
|
|
5728
5728
|
blogs?: Maybe$1<BlogConnection$1>;
|
|
@@ -6237,7 +6237,7 @@ type shop__Service = _Service;
|
|
|
6237
6237
|
declare namespace shop {
|
|
6238
6238
|
export {
|
|
6239
6239
|
Analytic$1 as Analytic,
|
|
6240
|
-
Article$
|
|
6240
|
+
Article$2 as Article,
|
|
6241
6241
|
ArticleBlogWhereInput$1 as ArticleBlogWhereInput,
|
|
6242
6242
|
ArticleBlogsArgs$1 as ArticleBlogsArgs,
|
|
6243
6243
|
ArticleConnection$1 as ArticleConnection,
|
|
@@ -6471,6 +6471,7 @@ type BlockEntity = {
|
|
|
6471
6471
|
name?: string;
|
|
6472
6472
|
dateModified?: string | number;
|
|
6473
6473
|
childrens?: string[];
|
|
6474
|
+
rawChildrens?: BlockEntity[];
|
|
6474
6475
|
settings?: Record<string, any>;
|
|
6475
6476
|
advanced?: Record<string, any>;
|
|
6476
6477
|
styles?: Record<string, any>;
|
|
@@ -6478,6 +6479,8 @@ type BlockEntity = {
|
|
|
6478
6479
|
type?: 'component';
|
|
6479
6480
|
isThemeSection?: boolean;
|
|
6480
6481
|
needPublishing?: boolean;
|
|
6482
|
+
isShopifySection?: boolean;
|
|
6483
|
+
isShopifyVisibility?: boolean;
|
|
6481
6484
|
};
|
|
6482
6485
|
type SectionEntity = {
|
|
6483
6486
|
uid: string;
|
|
@@ -6487,6 +6490,8 @@ type SectionEntity = {
|
|
|
6487
6490
|
name?: string;
|
|
6488
6491
|
isThemeSection?: boolean;
|
|
6489
6492
|
needPublishing?: boolean;
|
|
6493
|
+
isShopifySection?: boolean;
|
|
6494
|
+
isShopifyVisibility?: boolean;
|
|
6490
6495
|
};
|
|
6491
6496
|
type BuilderEntity = BlockEntity | SectionEntity;
|
|
6492
6497
|
type BuilderEntityNested = Omit<BlockEntity, 'childrens'> & {
|
|
@@ -6537,9 +6542,15 @@ type SaleFunnelDiscountEdge$1 = {
|
|
|
6537
6542
|
cursor: Scalars$1['Cursor'];
|
|
6538
6543
|
node?: Maybe$1<SaleFunnelDiscount$1>;
|
|
6539
6544
|
};
|
|
6540
|
-
type ProductOffer = Maybe$1<Pick<SaleFunnelDiscountEdge$1,
|
|
6541
|
-
node?: Maybe$1<Pick<SaleFunnelDiscount$1,
|
|
6545
|
+
type ProductOffer = Maybe$1<Pick<SaleFunnelDiscountEdge$1, 'cursor'> & {
|
|
6546
|
+
node?: Maybe$1<Pick<SaleFunnelDiscount$1, 'id' | 'value' | 'type' | 'position' | 'objectBaseID' | 'objectType' | 'title' | 'valueType' | 'isEnabled'>>;
|
|
6542
6547
|
}>;
|
|
6548
|
+
type RawChild = {
|
|
6549
|
+
uid: string;
|
|
6550
|
+
builder: Record<string, any>;
|
|
6551
|
+
components: Record<string, any>;
|
|
6552
|
+
[key: string]: any;
|
|
6553
|
+
};
|
|
6543
6554
|
|
|
6544
6555
|
type InitComponentType<T = any> = {
|
|
6545
6556
|
[K in keyof T]-?: {
|
|
@@ -6914,6 +6925,7 @@ type InputControlType<T> = SharedControlType<T> & {
|
|
|
6914
6925
|
value: any;
|
|
6915
6926
|
}[];
|
|
6916
6927
|
readonly?: boolean;
|
|
6928
|
+
suffix?: string;
|
|
6917
6929
|
action?: {
|
|
6918
6930
|
clear?: boolean;
|
|
6919
6931
|
};
|
|
@@ -6958,6 +6970,7 @@ type PositionControlType<T> = SharedControlType<T> & {
|
|
|
6958
6970
|
|
|
6959
6971
|
type PositionSquareControlType<T> = SharedControlType<T> & {
|
|
6960
6972
|
type: 'position:square';
|
|
6973
|
+
ignoreValue?: string[];
|
|
6961
6974
|
};
|
|
6962
6975
|
|
|
6963
6976
|
type RadioGroupControlType = {
|
|
@@ -6978,6 +6991,7 @@ type RangeControlType<T> = SharedControlType<T> & {
|
|
|
6978
6991
|
disableOnChange?: boolean;
|
|
6979
6992
|
useOnlyUnitInit?: boolean;
|
|
6980
6993
|
hideUnit?: boolean;
|
|
6994
|
+
hideInput?: boolean;
|
|
6981
6995
|
};
|
|
6982
6996
|
|
|
6983
6997
|
type Option$3<T> = {
|
|
@@ -7034,6 +7048,14 @@ type SegmentControlType<T> = {
|
|
|
7034
7048
|
[K in keyof T]-?: Mapped$4<K, T[K]>;
|
|
7035
7049
|
}[keyof T];
|
|
7036
7050
|
|
|
7051
|
+
type OpenLinkControlType<T> = SharedControlType<T> & {
|
|
7052
|
+
type: 'open-link';
|
|
7053
|
+
target?: string;
|
|
7054
|
+
href: string;
|
|
7055
|
+
appName?: string;
|
|
7056
|
+
linkType?: 'openApp' | 'install';
|
|
7057
|
+
};
|
|
7058
|
+
|
|
7037
7059
|
type Option$2<T> = {
|
|
7038
7060
|
value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
|
|
7039
7061
|
label: string | number;
|
|
@@ -7227,6 +7249,8 @@ type Background = {
|
|
|
7227
7249
|
repeat?: BgRepeat;
|
|
7228
7250
|
attachment?: BgAttachment;
|
|
7229
7251
|
video?: string;
|
|
7252
|
+
videoHtml5?: string;
|
|
7253
|
+
videoType?: 'youtube' | 'html5';
|
|
7230
7254
|
loop?: boolean;
|
|
7231
7255
|
lazyLoad?: boolean;
|
|
7232
7256
|
};
|
|
@@ -7407,6 +7431,11 @@ type ProductListControlType<T> = SharedControlType<T> & {
|
|
|
7407
7431
|
isMultiple?: boolean;
|
|
7408
7432
|
};
|
|
7409
7433
|
|
|
7434
|
+
type ArticleListControlType<T> = SharedControlType<T> & {
|
|
7435
|
+
type: 'article-list';
|
|
7436
|
+
isMultiple?: boolean;
|
|
7437
|
+
};
|
|
7438
|
+
|
|
7410
7439
|
type SizeUnit$1 = '%' | 'cm' | 'mm' | 'Q' | 'in' | 'pc' | 'pt' | 'px' | 'em' | 'cap' | 'ex' | 'ch' | 'ic' | 'rem' | 'lh' | 'rlh' | 'vw' | 'vh' | 'vi' | 'vb' | 'vmin' | 'vmax';
|
|
7411
7440
|
type InputUnitSpacingControlType<T> = SharedControlType<T> & {
|
|
7412
7441
|
type: 'input:unit-spacing';
|
|
@@ -7565,6 +7594,7 @@ type ParallaxScrollingType<T> = SharedControlType<T> & {
|
|
|
7565
7594
|
|
|
7566
7595
|
type BackgroundColorPickerType<T> = SharedControlType<T> & {
|
|
7567
7596
|
type: 'background-color-picker';
|
|
7597
|
+
mode?: 'both' | 'solid' | 'gradient';
|
|
7568
7598
|
popup?: boolean;
|
|
7569
7599
|
readonly?: boolean;
|
|
7570
7600
|
};
|
|
@@ -7687,6 +7717,7 @@ type ProductOffersControlType<T> = SharedControlType<T> & {
|
|
|
7687
7717
|
|
|
7688
7718
|
type DiscountAndShippingFee<T> = SharedControlType<T> & {
|
|
7689
7719
|
type: 'discount-and-shipping-fee-product-offer';
|
|
7720
|
+
multiple: boolean;
|
|
7690
7721
|
};
|
|
7691
7722
|
|
|
7692
7723
|
type PostPurchaseTextareaControlType<T> = SharedControlType<T> & {
|
|
@@ -7709,7 +7740,11 @@ type NotesControlType<T> = SharedControlType<T> & {
|
|
|
7709
7740
|
value?: string;
|
|
7710
7741
|
};
|
|
7711
7742
|
|
|
7712
|
-
type
|
|
7743
|
+
type ShapeSelectorControlType<T> = SharedControlType<T> & {
|
|
7744
|
+
type: 'shape-selector';
|
|
7745
|
+
};
|
|
7746
|
+
|
|
7747
|
+
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> | OpenLinkControlType<T> | SelectControlType<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<T> | TypographyV2ControlType<T> | MenuControlType<T> | BehaviorStateControlType<T> | PickLinkControlType<T> | BoxShadowControlType<T> | TextShadowControlType<T> | BorderControlType<T> | BorderRadiusControlType<T> | RadiusPresetControlType<T> | SizeControlType<T> | ChildItemType<T> | PickMultiProductControlType<T> | CollectionControlType<T> | BackgroundControlType<T> | VisibilityControlType<T> | SelectVariantControlType | CountdownEvergreenType | Timezone<T> | CustomContentControlType<T> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T> | LayoutSegmentControlType<T> | InputSpacing<T> | UniqueIdControlType<T> | PositionSquareControlType<T> | CustomCodeEditor | LayoutControlType<T> | LayoutBannerControlType<T> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | VariantSwatchesOnlyDefaultVariantControlType<T> | ProductListControlType<T> | ArticleListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting$1<T> | ChildIconType<T> | DropdownInput<T> | Dropdown<T> | AliPickSectionControlType<T> | ParallaxScrollingType<T> | BackgroundColorPickerType<T> | PlayPauseControlType<T> | LayoutCustomSegmentControlType<T> | SneakPeakRange<T> | SneakPeakTypeControlType<T> | SneakPeakControlType<T> | ProductInputCurrencyUnitControlType<T> | TypographyPostPurchaseControlType<T> | ProductOffersControlType<T> | DiscountAndShippingFee<T> | PostPurchaseTextareaControlType<T> | NotesControlType<T> | ShapeSelectorControlType<T>;
|
|
7713
7748
|
type ControlTriggerAction = {
|
|
7714
7749
|
controlId: string;
|
|
7715
7750
|
newValue?: any;
|
|
@@ -7765,6 +7800,7 @@ type ComponentSetting<P extends BaseProps> = {
|
|
|
7765
7800
|
flowPage?: string;
|
|
7766
7801
|
notAppendTags?: string[];
|
|
7767
7802
|
notAppendLeftRight?: boolean;
|
|
7803
|
+
allowAppendTags?: string[];
|
|
7768
7804
|
};
|
|
7769
7805
|
sideBar?: {
|
|
7770
7806
|
hide?: boolean;
|
|
@@ -7810,6 +7846,7 @@ type ControlUI = {
|
|
|
7810
7846
|
iconClass?: string;
|
|
7811
7847
|
containerClass?: string;
|
|
7812
7848
|
enableTeleport?: boolean;
|
|
7849
|
+
contentStyle?: React.CSSProperties;
|
|
7813
7850
|
};
|
|
7814
7851
|
hideOnDevices?: {
|
|
7815
7852
|
desktop?: boolean;
|
|
@@ -7817,6 +7854,7 @@ type ControlUI = {
|
|
|
7817
7854
|
mobile?: boolean;
|
|
7818
7855
|
};
|
|
7819
7856
|
hideOnPages?: PageType[];
|
|
7857
|
+
itemSpacing?: 'small' | 'medium' | 'large';
|
|
7820
7858
|
};
|
|
7821
7859
|
isMoreSetting?: boolean;
|
|
7822
7860
|
hiddenDivice?: boolean;
|
|
@@ -7844,6 +7882,7 @@ type ComponentPreset = {
|
|
|
7844
7882
|
};
|
|
7845
7883
|
components: InitComponentType[];
|
|
7846
7884
|
hideTextContent?: boolean;
|
|
7885
|
+
flowTagComponents?: Record<string, InitComponentType[]>;
|
|
7847
7886
|
};
|
|
7848
7887
|
|
|
7849
7888
|
type PageContext = {
|
|
@@ -7935,7 +7974,7 @@ type AnalyticsQueryParameter = {
|
|
|
7935
7974
|
startDate?: InputMaybe<Scalars['Time']>;
|
|
7936
7975
|
};
|
|
7937
7976
|
type AppType = 'CUSTOM' | 'GEMPAGES' | 'GEMPAGESV5' | 'GEMPAGESV7' | 'GEMX';
|
|
7938
|
-
type Article = {
|
|
7977
|
+
type Article$1 = {
|
|
7939
7978
|
baseID?: Maybe<Scalars['String']>;
|
|
7940
7979
|
blogs?: Maybe<BlogConnection>;
|
|
7941
7980
|
description?: Maybe<Scalars['String']>;
|
|
@@ -8008,7 +8047,7 @@ type ArticleConnection = {
|
|
|
8008
8047
|
};
|
|
8009
8048
|
type ArticleEdge = {
|
|
8010
8049
|
cursor?: Maybe<Scalars['Cursor']>;
|
|
8011
|
-
node?: Maybe<Article>;
|
|
8050
|
+
node?: Maybe<Article$1>;
|
|
8012
8051
|
};
|
|
8013
8052
|
type ArticleOrder = {
|
|
8014
8053
|
direction: OrderDirection;
|
|
@@ -18818,7 +18857,7 @@ type PutCustomComponentFileInput = {
|
|
|
18818
18857
|
name: Scalars['String'];
|
|
18819
18858
|
};
|
|
18820
18859
|
type Query = {
|
|
18821
|
-
article?: Maybe<Article>;
|
|
18860
|
+
article?: Maybe<Article$1>;
|
|
18822
18861
|
articles?: Maybe<ArticleConnection>;
|
|
18823
18862
|
backgroundTasks?: Maybe<BackgroundTaskConnection>;
|
|
18824
18863
|
blog?: Maybe<Blog>;
|
|
@@ -24999,7 +25038,6 @@ type appAPI_AddEmployeeInput = AddEmployeeInput;
|
|
|
24999
25038
|
type appAPI_Analytic = Analytic;
|
|
25000
25039
|
type appAPI_AnalyticsQueryParameter = AnalyticsQueryParameter;
|
|
25001
25040
|
type appAPI_AppType = AppType;
|
|
25002
|
-
type appAPI_Article = Article;
|
|
25003
25041
|
type appAPI_ArticleBlogWhereInput = ArticleBlogWhereInput;
|
|
25004
25042
|
type appAPI_ArticleBlogsArgs = ArticleBlogsArgs;
|
|
25005
25043
|
type appAPI_ArticleConnection = ArticleConnection;
|
|
@@ -25992,7 +26030,7 @@ declare namespace appAPI {
|
|
|
25992
26030
|
appAPI_Analytic as Analytic,
|
|
25993
26031
|
appAPI_AnalyticsQueryParameter as AnalyticsQueryParameter,
|
|
25994
26032
|
appAPI_AppType as AppType,
|
|
25995
|
-
|
|
26033
|
+
Article$1 as Article,
|
|
25996
26034
|
appAPI_ArticleBlogWhereInput as ArticleBlogWhereInput,
|
|
25997
26035
|
appAPI_ArticleBlogsArgs as ArticleBlogsArgs,
|
|
25998
26036
|
appAPI_ArticleConnection as ArticleConnection,
|
|
@@ -27011,7 +27049,7 @@ type TypographyProps = {
|
|
|
27011
27049
|
};
|
|
27012
27050
|
type TypographyV2Props = Omit<TypographyProps, 'fontSize' | 'lineHeight'> & {
|
|
27013
27051
|
fontSize?: ObjectDevices<string>;
|
|
27014
|
-
lineHeight?: string
|
|
27052
|
+
lineHeight?: ObjectDevices<string>;
|
|
27015
27053
|
};
|
|
27016
27054
|
type TypographyV2Attrs = {
|
|
27017
27055
|
bold?: boolean;
|
|
@@ -27330,7 +27368,12 @@ declare const useCartLineStore: <U>(selector: (state: ExtractState<StoreApi<Cart
|
|
|
27330
27368
|
type CollectionProductSelectFragment = Pick<Collection$1, 'id' | 'createdAt' | 'updatedAt' | 'deletedAt' | 'title' | 'handle' | 'description' | 'descriptionHtml' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'tags' | 'isStorefront' | 'isSample'> & {
|
|
27331
27369
|
products?: Maybe$1<{
|
|
27332
27370
|
edges: Array<Pick<ProductEdge$1, 'cursor'> & {
|
|
27333
|
-
node?: Maybe$1<Pick<Product$1, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27371
|
+
node?: Maybe$1<Pick<Product$1, 'tags' | 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27372
|
+
collections?: Maybe$1<{
|
|
27373
|
+
edges: Array<{
|
|
27374
|
+
node?: Maybe$1<Pick<Collection$1, 'id' | 'title'>>;
|
|
27375
|
+
}>;
|
|
27376
|
+
}>;
|
|
27334
27377
|
medias?: Maybe$1<{
|
|
27335
27378
|
edges: Array<Pick<MediaEdge$1, 'cursor'> & {
|
|
27336
27379
|
node?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
@@ -27403,7 +27446,12 @@ type ProductListProviderProps = ProductListContextProps & {
|
|
|
27403
27446
|
declare const ProductListProvider: React.FC<ProductListProviderProps>;
|
|
27404
27447
|
declare const useProductListStore: <U>(selector: (state: ExtractState<StoreApi<ProductListContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
27405
27448
|
|
|
27406
|
-
type ProductSelectFragment = Pick<Product$1, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27449
|
+
type ProductSelectFragment = Pick<Product$1, 'tags' | 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27450
|
+
collections?: Maybe$1<{
|
|
27451
|
+
edges: Array<{
|
|
27452
|
+
node?: Maybe$1<Pick<Collection$1, 'id' | 'title'>>;
|
|
27453
|
+
}>;
|
|
27454
|
+
}>;
|
|
27407
27455
|
medias?: Maybe$1<{
|
|
27408
27456
|
edges: Array<Pick<MediaEdge$1, 'cursor'> & {
|
|
27409
27457
|
node?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
@@ -27575,6 +27623,39 @@ type ModalProviderProps = Pick<ModalContextProps, 'activeId'> & {
|
|
|
27575
27623
|
declare const ModalProvider: React.FC<ModalProviderProps>;
|
|
27576
27624
|
declare const useModalStore: <U>(selector: (state: ExtractState<StoreApi<ModalContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
27577
27625
|
|
|
27626
|
+
type ArticleListContextProps = {
|
|
27627
|
+
articles?: any[];
|
|
27628
|
+
blogs?: Blog$1[];
|
|
27629
|
+
settings?: {
|
|
27630
|
+
slidesToShow?: ObjectDevices<number | 'auto'>;
|
|
27631
|
+
};
|
|
27632
|
+
styles?: {
|
|
27633
|
+
horizontalGutter?: ObjectDevices<string>;
|
|
27634
|
+
verticalGutter?: ObjectDevices<string>;
|
|
27635
|
+
fullWidth?: ObjectDevices<boolean>;
|
|
27636
|
+
spacing?: ObjectDevices<number>;
|
|
27637
|
+
width?: ObjectDevices<string>;
|
|
27638
|
+
height?: ObjectDevices<string>;
|
|
27639
|
+
};
|
|
27640
|
+
};
|
|
27641
|
+
type ArticleListProviderProps = ArticleListContextProps & {
|
|
27642
|
+
children: React.ReactNode;
|
|
27643
|
+
};
|
|
27644
|
+
declare const ArticleListProvider: React.FC<ArticleListProviderProps>;
|
|
27645
|
+
declare const useArticleListStore: <U>(selector: (state: ExtractState<StoreApi<ArticleListContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
27646
|
+
|
|
27647
|
+
type Article = any;
|
|
27648
|
+
type ArticleContextProps = {
|
|
27649
|
+
article: Article;
|
|
27650
|
+
uniqueId: string;
|
|
27651
|
+
};
|
|
27652
|
+
type ArticleProviderProps = Pick<ArticleContextProps, 'article'> & {
|
|
27653
|
+
readOnly?: boolean;
|
|
27654
|
+
children: React.ReactNode;
|
|
27655
|
+
};
|
|
27656
|
+
declare const ArticleProvider: React.FC<ArticleProviderProps>;
|
|
27657
|
+
declare const useArticleStore: <U>(selector: (state: ExtractState<StoreApi<ArticleContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
27658
|
+
|
|
27578
27659
|
type PageViewUpMutationVariables = Exact$1<{
|
|
27579
27660
|
pageHandle: Scalars$2['String'];
|
|
27580
27661
|
userAgent: Scalars$2['String'];
|
|
@@ -27601,7 +27682,12 @@ type CollectionDetailFilterQueryResponse = {
|
|
|
27601
27682
|
node?: Maybe$1<Pick<Collection$1, 'id' | 'createdAt' | 'updatedAt' | 'deletedAt' | 'title' | 'handle' | 'description' | 'descriptionHtml' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'tags' | 'isStorefront' | 'isSample'> & {
|
|
27602
27683
|
products?: Maybe$1<{
|
|
27603
27684
|
edges: Array<Pick<ProductEdge$1, 'cursor'> & {
|
|
27604
|
-
node?: Maybe$1<Pick<Product$1, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27685
|
+
node?: Maybe$1<Pick<Product$1, 'tags' | 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27686
|
+
collections?: Maybe$1<{
|
|
27687
|
+
edges: Array<{
|
|
27688
|
+
node?: Maybe$1<Pick<Collection$1, 'id' | 'title'>>;
|
|
27689
|
+
}>;
|
|
27690
|
+
}>;
|
|
27605
27691
|
medias?: Maybe$1<{
|
|
27606
27692
|
edges: Array<Pick<MediaEdge$1, 'cursor'> & {
|
|
27607
27693
|
node?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
@@ -27731,7 +27817,12 @@ type ProductsQueryVariables = Exact$1<{
|
|
|
27731
27817
|
type ProductsQueryResponse = {
|
|
27732
27818
|
products?: Maybe$1<{
|
|
27733
27819
|
edges: Array<Pick<ProductEdge$1, 'cursor'> & {
|
|
27734
|
-
node?: Maybe$1<Pick<Product$1, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27820
|
+
node?: Maybe$1<Pick<Product$1, 'tags' | 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27821
|
+
collections?: Maybe$1<{
|
|
27822
|
+
edges: Array<{
|
|
27823
|
+
node?: Maybe$1<Pick<Collection$1, 'id' | 'title'>>;
|
|
27824
|
+
}>;
|
|
27825
|
+
}>;
|
|
27735
27826
|
medias?: Maybe$1<{
|
|
27736
27827
|
edges: Array<Pick<MediaEdge$1, 'cursor'> & {
|
|
27737
27828
|
node?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
@@ -27756,6 +27847,13 @@ type ProductsQueryResponse = {
|
|
|
27756
27847
|
pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage'>>;
|
|
27757
27848
|
}>;
|
|
27758
27849
|
};
|
|
27850
|
+
type VariableRelatedStyles = {
|
|
27851
|
+
limit?: number | undefined;
|
|
27852
|
+
vendor?: string;
|
|
27853
|
+
idNEQ?: string;
|
|
27854
|
+
hasProductTagsWith?: InputMaybe$1<ProductTagWhereInput$1[]>;
|
|
27855
|
+
hasCollectionProductsWith?: InputMaybe$1<CollectionProductWhereInput$1[]>;
|
|
27856
|
+
};
|
|
27759
27857
|
declare const ProductsDocument: string;
|
|
27760
27858
|
|
|
27761
27859
|
type StorePropertyQueryVariables = Exact$1<{
|
|
@@ -27858,15 +27956,13 @@ declare const handleConvertClassColorDynamicBtn: (value?: BorderStyle) => string
|
|
|
27858
27956
|
declare const composeBorderCss: (borderV?: Border | undefined) => string;
|
|
27859
27957
|
|
|
27860
27958
|
type DotStyle = 'none' | 'inside' | 'outside';
|
|
27861
|
-
declare const getCarouselContainerHeight: <T>(dotStyle?: Partial<Record<NameDevices$1, T>> | undefined
|
|
27959
|
+
declare const getCarouselContainerHeight: <T>(dotStyle?: Partial<Record<NameDevices$1, T>> | undefined) => {
|
|
27862
27960
|
desktop: string | undefined;
|
|
27863
27961
|
tablet: string | undefined;
|
|
27864
27962
|
mobile: string | undefined;
|
|
27865
27963
|
};
|
|
27866
27964
|
declare const makeContainerWidthOrHeight: <T extends ShortHandProperty>(setting: {
|
|
27867
27965
|
dotStyle?: ObjectDevices<DotStyle>;
|
|
27868
|
-
dotSize?: ObjectDevices<number>;
|
|
27869
|
-
dotGapToCarousel?: ObjectDevices<number>;
|
|
27870
27966
|
vertical?: ObjectDevices<boolean>;
|
|
27871
27967
|
}) => {
|
|
27872
27968
|
[x: string]: string | undefined;
|
|
@@ -34002,6 +34098,8 @@ declare const makeHeight: (heighValue?: ObjectDevices<string | number>, autoHeig
|
|
|
34002
34098
|
declare const makeAspectRatio: (aspectRatio?: ObjectDevices<string>, aspectWidth?: ObjectDevices<string | number>, aspectHeight?: ObjectDevices<string | number>) => ObjectDevices<string>;
|
|
34003
34099
|
declare const makeLineClamp: (lineClampValue?: ObjectDevices<number>, hasLineClampValue?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
|
|
34004
34100
|
|
|
34101
|
+
declare const convertTextAlignToJustify: (align: Partial<Record<NameDevices$1, AlignProp>> | undefined) => Record<string, boolean>;
|
|
34102
|
+
|
|
34005
34103
|
declare function getSelectedVariant(variants?: Maybe$1<VariantSelectFragment>[], choices?: Record<string, string>, variantId?: string | null): Maybe$1<VariantSelectFragment>;
|
|
34006
34104
|
declare function parseSelectedOption(options: SelectedOption$1[]): SelectedOption$1 | undefined;
|
|
34007
34105
|
declare function checkAvailableVariantInStock(variants: Maybe$1<VariantSelectFragment>[] | undefined, optionId: string, optionValue: string): boolean;
|
|
@@ -35757,6 +35855,7 @@ declare const useProductsQuery: (ids?: string[], options?: SWRConfiguration<Prod
|
|
|
35757
35855
|
allStatus?: boolean;
|
|
35758
35856
|
fetcher?: FetchFunc;
|
|
35759
35857
|
}) => swr__internal.SWRResponse<ProductsQueryResponse, any, Partial<swr__internal.PublicConfiguration<ProductsQueryResponse, any, (arg: ["query/products", FetchProductsParams]) => swr__internal.FetcherResponse<ProductsQueryResponse>>> | undefined>;
|
|
35858
|
+
declare const useProductsQueryAll: (variable?: VariableRelatedStyles | undefined, options?: SWRConfiguration<ProductsQueryResponse>) => swr__internal.SWRResponse<ProductsQueryResponse, any, Partial<swr__internal.PublicConfiguration<ProductsQueryResponse, any, (arg: ["query/products", any]) => swr__internal.FetcherResponse<ProductsQueryResponse>>> | undefined>;
|
|
35760
35859
|
|
|
35761
35860
|
declare const useCurrentDevice: () => NameDevices$1;
|
|
35762
35861
|
|
|
@@ -35837,6 +35936,64 @@ declare const useMoney: (amount: number) => UseMoneyValue;
|
|
|
35837
35936
|
|
|
35838
35937
|
declare const usePrevious: <T>(value: T) => T | undefined;
|
|
35839
35938
|
|
|
35939
|
+
type BlogsQueryResponse = {
|
|
35940
|
+
blogs?: Maybe$1<Pick<BlogConnection$1, 'totalCount'> & {
|
|
35941
|
+
edges: Array<Pick<BlogEdge$1, 'cursor'> & {
|
|
35942
|
+
node?: Maybe$1<Pick<Blog$1, 'baseID' | 'description' | 'descriptionMeta' | 'handle' | 'id' | 'platform' | 'tags' | 'templateSuffix' | 'title' | 'titleMeta'>>;
|
|
35943
|
+
}>;
|
|
35944
|
+
pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor'>>;
|
|
35945
|
+
}>;
|
|
35946
|
+
};
|
|
35947
|
+
|
|
35948
|
+
declare const useArticlesQuery: () => ({
|
|
35949
|
+
baseID: string;
|
|
35950
|
+
id: number;
|
|
35951
|
+
title: string;
|
|
35952
|
+
created_at: string;
|
|
35953
|
+
body_html: string;
|
|
35954
|
+
blog_id: number;
|
|
35955
|
+
author: string;
|
|
35956
|
+
user_id: number;
|
|
35957
|
+
published_at: string;
|
|
35958
|
+
updated_at: string;
|
|
35959
|
+
summary_html: string;
|
|
35960
|
+
template_suffix: string;
|
|
35961
|
+
handle: string;
|
|
35962
|
+
tags: string;
|
|
35963
|
+
admin_graphql_api_id: string;
|
|
35964
|
+
image: {
|
|
35965
|
+
created_at: string;
|
|
35966
|
+
alt: string;
|
|
35967
|
+
width: number;
|
|
35968
|
+
height: number;
|
|
35969
|
+
src: string;
|
|
35970
|
+
};
|
|
35971
|
+
} | {
|
|
35972
|
+
baseID: string;
|
|
35973
|
+
id: number;
|
|
35974
|
+
title: string;
|
|
35975
|
+
created_at: string;
|
|
35976
|
+
body_html: string;
|
|
35977
|
+
blog_id: number;
|
|
35978
|
+
author: string;
|
|
35979
|
+
user_id: null;
|
|
35980
|
+
published_at: string;
|
|
35981
|
+
updated_at: string;
|
|
35982
|
+
summary_html: string;
|
|
35983
|
+
template_suffix: string;
|
|
35984
|
+
handle: string;
|
|
35985
|
+
tags: string;
|
|
35986
|
+
admin_graphql_api_id: string;
|
|
35987
|
+
image: {
|
|
35988
|
+
created_at: string;
|
|
35989
|
+
alt: string;
|
|
35990
|
+
width: number;
|
|
35991
|
+
height: number;
|
|
35992
|
+
src: string;
|
|
35993
|
+
};
|
|
35994
|
+
})[];
|
|
35995
|
+
declare const useBlogsQuery: () => BlogsQueryResponse;
|
|
35996
|
+
|
|
35840
35997
|
declare const useUniqProductID: () => string;
|
|
35841
35998
|
declare const useProduct: () => ProductSelectFragment | undefined;
|
|
35842
35999
|
declare const useFeaturedImageGlobal: () => MediaSelectFragment | undefined;
|
|
@@ -35919,4 +36076,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage$1, 'id' | 'name'
|
|
|
35919
36076
|
|
|
35920
36077
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
35921
36078
|
|
|
35922
|
-
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, Background, BaseProps, BasePropsWrap, BlockEntity, BogosWidgetType, 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, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, 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, PostPurchaseTypo, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, 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, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, Scalars$1 as Scalars, 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, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeCornerCss, composeFallbackTypographyStyle, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertHTML, convertOldLayout, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterCornerInStyle, filterToolbarPreview, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAspectRatioGlobalSize, getBgImageByDevice, getBorderStyle, getCarouselContainerHeight, 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, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, shopifyPriceRounding, 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, useProductOfferDiscount, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
36079
|
+
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, Background, BaseProps, BasePropsWrap, BlockEntity, BogosWidgetType, 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, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, 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, PostPurchaseTypo, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, 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, Scalars$1 as Scalars, 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, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeCornerCss, composeFallbackTypographyStyle, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterCornerInStyle, filterToolbarPreview, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAspectRatioGlobalSize, getBgImageByDevice, getBorderStyle, getCarouselContainerHeight, 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, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, 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, useInitialSwatchesOptions, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useProductsQueryAll, 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.42.0-dev.61",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -27,10 +27,12 @@
|
|
|
27
27
|
"type-check": "yarn tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@gem-sdk/adapter-shopify": "1.
|
|
31
|
-
"@gem-sdk/styles": "1.
|
|
30
|
+
"@gem-sdk/adapter-shopify": "1.42.0-dev.60",
|
|
31
|
+
"@gem-sdk/styles": "1.42.0-dev.60",
|
|
32
|
+
"@types/classnames": "^2.3.1"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
35
|
+
"classnames": "^2.5.1",
|
|
34
36
|
"react-error-boundary": "4.0.10",
|
|
35
37
|
"swr": "2.1.2",
|
|
36
38
|
"vanilla-lazyload": "17.8.3",
|