@gem-sdk/core 1.41.3 → 1.42.0-staging.4
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/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/queries/get-products.js +43 -1
- package/dist/cjs/hooks/shop/use-products-query.js +10 -0
- package/dist/cjs/index.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/queries/get-products.js +43 -2
- package/dist/esm/hooks/shop/use-products-query.js +11 -2
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +35 -5
- package/package.json +3 -3
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
/* eslint-disable */ const ProductSelect = `
|
|
4
4
|
fragment ProductSelect on Product {
|
|
5
5
|
...ProductLittleSelect
|
|
6
|
+
collections {
|
|
7
|
+
edges {
|
|
8
|
+
node {
|
|
9
|
+
id
|
|
10
|
+
title
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
tags
|
|
6
15
|
medias(first: $firstMedia, after: $afterMedia, orderBy: $orderByMedia) {
|
|
7
16
|
edges {
|
|
8
17
|
cursor
|
|
@@ -57,6 +57,29 @@ const getProducts = async (fetcher, { ids, isSample, isStorefront, defaultSelect
|
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
|
+
const getProductQueryAll = async (fetcher, arg)=>{
|
|
61
|
+
const limit = arg?.limit || 4;
|
|
62
|
+
delete arg.limit;
|
|
63
|
+
const variables = {
|
|
64
|
+
first: limit,
|
|
65
|
+
firstMedia: 1,
|
|
66
|
+
firstVariant: 1,
|
|
67
|
+
orderBy: {
|
|
68
|
+
field: 'PLATFORM_CREATED_AT',
|
|
69
|
+
direction: 'DESC'
|
|
70
|
+
},
|
|
71
|
+
orderByMedia: {
|
|
72
|
+
field: 'POSITION',
|
|
73
|
+
direction: 'ASC'
|
|
74
|
+
},
|
|
75
|
+
where: {
|
|
76
|
+
status: 'ACTIVE',
|
|
77
|
+
...arg
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const pageData = await fetchProducts(fetcher, variables);
|
|
81
|
+
return pageData;
|
|
82
|
+
};
|
|
60
83
|
const fetchProducts = async (fetcher, variables)=>{
|
|
61
84
|
return fetcher([
|
|
62
85
|
products_generated.ProductsDocument,
|
|
@@ -99,7 +122,25 @@ const loopFetchProducts = async (fetcher, { ids, isSample, isStorefront, default
|
|
|
99
122
|
},
|
|
100
123
|
...ids?.length ? {
|
|
101
124
|
baseIDIn: ids
|
|
102
|
-
} : {}
|
|
125
|
+
} : {},
|
|
126
|
+
or: [
|
|
127
|
+
{
|
|
128
|
+
hasProductTags: false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
hasProductTagsWith: [
|
|
132
|
+
{
|
|
133
|
+
hasTagsWith: [
|
|
134
|
+
{
|
|
135
|
+
nameNotIn: [
|
|
136
|
+
'bogos-gift'
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
]
|
|
103
144
|
},
|
|
104
145
|
after: productAfterFetcher
|
|
105
146
|
};
|
|
@@ -164,4 +205,5 @@ const mergeMediasToProducts = async ({ fetcher, products, isSample, isStorefront
|
|
|
164
205
|
// );
|
|
165
206
|
// };
|
|
166
207
|
|
|
208
|
+
exports.getProductQueryAll = getProductQueryAll;
|
|
167
209
|
exports.getProducts = getProducts;
|
|
@@ -20,5 +20,15 @@ const useProductsQuery = (ids, options, params)=>{
|
|
|
20
20
|
return getProducts.getProducts(params?.fetcher || fetcher, arg);
|
|
21
21
|
}, options);
|
|
22
22
|
};
|
|
23
|
+
const useProductsQueryAll = (variable, options)=>{
|
|
24
|
+
const fetcher = useFetchHandle.useFetchHandle();
|
|
25
|
+
return useSWR(variable ? [
|
|
26
|
+
'query/products',
|
|
27
|
+
variable
|
|
28
|
+
] : null, async ([, arg])=>{
|
|
29
|
+
return getProducts.getProductQueryAll(fetcher, arg);
|
|
30
|
+
}, options);
|
|
31
|
+
};
|
|
23
32
|
|
|
24
33
|
exports.useProductsQuery = useProductsQuery;
|
|
34
|
+
exports.useProductsQueryAll = useProductsQueryAll;
|
package/dist/cjs/index.js
CHANGED
|
@@ -302,6 +302,7 @@ exports.useCollectionQuery = useCollectionQuery.useCollectionQuery;
|
|
|
302
302
|
exports.useCollectionsQuery = useCollectionsQuery.useCollectionsQuery;
|
|
303
303
|
exports.useProductQuery = useProductQuery.useProductQuery;
|
|
304
304
|
exports.useProductsQuery = useProductsQuery.useProductsQuery;
|
|
305
|
+
exports.useProductsQueryAll = useProductsQuery.useProductsQueryAll;
|
|
305
306
|
exports.useCurrentDevice = useCurrentDevice.useCurrentDevice;
|
|
306
307
|
exports.shopifyPriceRounding = useFormatMoney.shopifyPriceRounding;
|
|
307
308
|
exports.useFormatMoney = useFormatMoney.useFormatMoney;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/* eslint-disable */ const ProductSelect = `
|
|
2
2
|
fragment ProductSelect on Product {
|
|
3
3
|
...ProductLittleSelect
|
|
4
|
+
collections {
|
|
5
|
+
edges {
|
|
6
|
+
node {
|
|
7
|
+
id
|
|
8
|
+
title
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
tags
|
|
4
13
|
medias(first: $firstMedia, after: $afterMedia, orderBy: $orderByMedia) {
|
|
5
14
|
edges {
|
|
6
15
|
cursor
|
|
@@ -55,6 +55,29 @@ const getProducts = async (fetcher, { ids, isSample, isStorefront, defaultSelect
|
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
+
const getProductQueryAll = async (fetcher, arg)=>{
|
|
59
|
+
const limit = arg?.limit || 4;
|
|
60
|
+
delete arg.limit;
|
|
61
|
+
const variables = {
|
|
62
|
+
first: limit,
|
|
63
|
+
firstMedia: 1,
|
|
64
|
+
firstVariant: 1,
|
|
65
|
+
orderBy: {
|
|
66
|
+
field: 'PLATFORM_CREATED_AT',
|
|
67
|
+
direction: 'DESC'
|
|
68
|
+
},
|
|
69
|
+
orderByMedia: {
|
|
70
|
+
field: 'POSITION',
|
|
71
|
+
direction: 'ASC'
|
|
72
|
+
},
|
|
73
|
+
where: {
|
|
74
|
+
status: 'ACTIVE',
|
|
75
|
+
...arg
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const pageData = await fetchProducts(fetcher, variables);
|
|
79
|
+
return pageData;
|
|
80
|
+
};
|
|
58
81
|
const fetchProducts = async (fetcher, variables)=>{
|
|
59
82
|
return fetcher([
|
|
60
83
|
ProductsDocument,
|
|
@@ -97,7 +120,25 @@ const loopFetchProducts = async (fetcher, { ids, isSample, isStorefront, default
|
|
|
97
120
|
},
|
|
98
121
|
...ids?.length ? {
|
|
99
122
|
baseIDIn: ids
|
|
100
|
-
} : {}
|
|
123
|
+
} : {},
|
|
124
|
+
or: [
|
|
125
|
+
{
|
|
126
|
+
hasProductTags: false
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
hasProductTagsWith: [
|
|
130
|
+
{
|
|
131
|
+
hasTagsWith: [
|
|
132
|
+
{
|
|
133
|
+
nameNotIn: [
|
|
134
|
+
'bogos-gift'
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
]
|
|
101
142
|
},
|
|
102
143
|
after: productAfterFetcher
|
|
103
144
|
};
|
|
@@ -162,4 +203,4 @@ const mergeMediasToProducts = async ({ fetcher, products, isSample, isStorefront
|
|
|
162
203
|
// );
|
|
163
204
|
// };
|
|
164
205
|
|
|
165
|
-
export { getProducts };
|
|
206
|
+
export { getProductQueryAll, getProducts };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import useSWR from 'swr';
|
|
2
|
-
import { getProducts } from '../../helpers/queries/get-products.js';
|
|
2
|
+
import { getProducts, getProductQueryAll } from '../../helpers/queries/get-products.js';
|
|
3
3
|
import { generateProductsQueryKey } from '../../helpers/query.js';
|
|
4
4
|
import { useIsSampleProduct, useIsStorefrontProduct } from '../shop.js';
|
|
5
5
|
import { useFetchHandle } from '../useFetchHandle.js';
|
|
@@ -18,5 +18,14 @@ const useProductsQuery = (ids, options, params)=>{
|
|
|
18
18
|
return getProducts(params?.fetcher || fetcher, arg);
|
|
19
19
|
}, options);
|
|
20
20
|
};
|
|
21
|
+
const useProductsQueryAll = (variable, options)=>{
|
|
22
|
+
const fetcher = useFetchHandle();
|
|
23
|
+
return useSWR(variable ? [
|
|
24
|
+
'query/products',
|
|
25
|
+
variable
|
|
26
|
+
] : null, async ([, arg])=>{
|
|
27
|
+
return getProductQueryAll(fetcher, arg);
|
|
28
|
+
}, options);
|
|
29
|
+
};
|
|
21
30
|
|
|
22
|
-
export { useProductsQuery };
|
|
31
|
+
export { useProductsQuery, useProductsQueryAll };
|
package/dist/esm/index.js
CHANGED
|
@@ -77,7 +77,7 @@ export { useCheckoutUrl, useConnectedShopify, useCurrency, useEditorMode, useIsS
|
|
|
77
77
|
export { useCollectionQuery } from './hooks/shop/use-collection-query.js';
|
|
78
78
|
export { useCollectionsQuery } from './hooks/shop/use-collections-query.js';
|
|
79
79
|
export { useProductQuery } from './hooks/shop/use-product-query.js';
|
|
80
|
-
export { useProductsQuery } from './hooks/shop/use-products-query.js';
|
|
80
|
+
export { useProductsQuery, useProductsQueryAll } from './hooks/shop/use-products-query.js';
|
|
81
81
|
export { useCurrentDevice } from './hooks/use-current-device.js';
|
|
82
82
|
export { shopifyPriceRounding, useFormatMoney } from './hooks/useFormatMoney.js';
|
|
83
83
|
export { useLazyVideo } from './hooks/use-lazy-video.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7227,6 +7227,8 @@ type Background = {
|
|
|
7227
7227
|
repeat?: BgRepeat;
|
|
7228
7228
|
attachment?: BgAttachment;
|
|
7229
7229
|
video?: string;
|
|
7230
|
+
videoHtml5?: string;
|
|
7231
|
+
videoType?: 'youtube' | 'html5';
|
|
7230
7232
|
loop?: boolean;
|
|
7231
7233
|
lazyLoad?: boolean;
|
|
7232
7234
|
};
|
|
@@ -27330,7 +27332,12 @@ declare const useCartLineStore: <U>(selector: (state: ExtractState<StoreApi<Cart
|
|
|
27330
27332
|
type CollectionProductSelectFragment = Pick<Collection$1, 'id' | 'createdAt' | 'updatedAt' | 'deletedAt' | 'title' | 'handle' | 'description' | 'descriptionHtml' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'tags' | 'isStorefront' | 'isSample'> & {
|
|
27331
27333
|
products?: Maybe$1<{
|
|
27332
27334
|
edges: Array<Pick<ProductEdge$1, 'cursor'> & {
|
|
27333
|
-
node?: Maybe$1<Pick<Product$1, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27335
|
+
node?: Maybe$1<Pick<Product$1, 'tags' | 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27336
|
+
collections?: Maybe$1<{
|
|
27337
|
+
edges: Array<{
|
|
27338
|
+
node?: Maybe$1<Pick<Collection$1, 'id' | 'title'>>;
|
|
27339
|
+
}>;
|
|
27340
|
+
}>;
|
|
27334
27341
|
medias?: Maybe$1<{
|
|
27335
27342
|
edges: Array<Pick<MediaEdge$1, 'cursor'> & {
|
|
27336
27343
|
node?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
@@ -27403,7 +27410,12 @@ type ProductListProviderProps = ProductListContextProps & {
|
|
|
27403
27410
|
declare const ProductListProvider: React.FC<ProductListProviderProps>;
|
|
27404
27411
|
declare const useProductListStore: <U>(selector: (state: ExtractState<StoreApi<ProductListContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
27405
27412
|
|
|
27406
|
-
type ProductSelectFragment = Pick<Product$1, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27413
|
+
type ProductSelectFragment = Pick<Product$1, 'tags' | 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27414
|
+
collections?: Maybe$1<{
|
|
27415
|
+
edges: Array<{
|
|
27416
|
+
node?: Maybe$1<Pick<Collection$1, 'id' | 'title'>>;
|
|
27417
|
+
}>;
|
|
27418
|
+
}>;
|
|
27407
27419
|
medias?: Maybe$1<{
|
|
27408
27420
|
edges: Array<Pick<MediaEdge$1, 'cursor'> & {
|
|
27409
27421
|
node?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
@@ -27601,7 +27613,12 @@ type CollectionDetailFilterQueryResponse = {
|
|
|
27601
27613
|
node?: Maybe$1<Pick<Collection$1, 'id' | 'createdAt' | 'updatedAt' | 'deletedAt' | 'title' | 'handle' | 'description' | 'descriptionHtml' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'tags' | 'isStorefront' | 'isSample'> & {
|
|
27602
27614
|
products?: Maybe$1<{
|
|
27603
27615
|
edges: Array<Pick<ProductEdge$1, 'cursor'> & {
|
|
27604
|
-
node?: Maybe$1<Pick<Product$1, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27616
|
+
node?: Maybe$1<Pick<Product$1, 'tags' | 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27617
|
+
collections?: Maybe$1<{
|
|
27618
|
+
edges: Array<{
|
|
27619
|
+
node?: Maybe$1<Pick<Collection$1, 'id' | 'title'>>;
|
|
27620
|
+
}>;
|
|
27621
|
+
}>;
|
|
27605
27622
|
medias?: Maybe$1<{
|
|
27606
27623
|
edges: Array<Pick<MediaEdge$1, 'cursor'> & {
|
|
27607
27624
|
node?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
@@ -27731,7 +27748,12 @@ type ProductsQueryVariables = Exact$1<{
|
|
|
27731
27748
|
type ProductsQueryResponse = {
|
|
27732
27749
|
products?: Maybe$1<{
|
|
27733
27750
|
edges: Array<Pick<ProductEdge$1, 'cursor'> & {
|
|
27734
|
-
node?: Maybe$1<Pick<Product$1, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27751
|
+
node?: Maybe$1<Pick<Product$1, 'tags' | 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
27752
|
+
collections?: Maybe$1<{
|
|
27753
|
+
edges: Array<{
|
|
27754
|
+
node?: Maybe$1<Pick<Collection$1, 'id' | 'title'>>;
|
|
27755
|
+
}>;
|
|
27756
|
+
}>;
|
|
27735
27757
|
medias?: Maybe$1<{
|
|
27736
27758
|
edges: Array<Pick<MediaEdge$1, 'cursor'> & {
|
|
27737
27759
|
node?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
@@ -27756,6 +27778,13 @@ type ProductsQueryResponse = {
|
|
|
27756
27778
|
pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage'>>;
|
|
27757
27779
|
}>;
|
|
27758
27780
|
};
|
|
27781
|
+
type VariableRelatedStyles = {
|
|
27782
|
+
limit?: number | undefined;
|
|
27783
|
+
vendor?: string;
|
|
27784
|
+
idNEQ?: string;
|
|
27785
|
+
hasProductTagsWith?: InputMaybe$1<ProductTagWhereInput$1[]>;
|
|
27786
|
+
hasCollectionProductsWith?: InputMaybe$1<CollectionProductWhereInput$1[]>;
|
|
27787
|
+
};
|
|
27759
27788
|
declare const ProductsDocument: string;
|
|
27760
27789
|
|
|
27761
27790
|
type StorePropertyQueryVariables = Exact$1<{
|
|
@@ -35757,6 +35786,7 @@ declare const useProductsQuery: (ids?: string[], options?: SWRConfiguration<Prod
|
|
|
35757
35786
|
allStatus?: boolean;
|
|
35758
35787
|
fetcher?: FetchFunc;
|
|
35759
35788
|
}) => swr__internal.SWRResponse<ProductsQueryResponse, any, Partial<swr__internal.PublicConfiguration<ProductsQueryResponse, any, (arg: ["query/products", FetchProductsParams]) => swr__internal.FetcherResponse<ProductsQueryResponse>>> | undefined>;
|
|
35789
|
+
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
35790
|
|
|
35761
35791
|
declare const useCurrentDevice: () => NameDevices$1;
|
|
35762
35792
|
|
|
@@ -35919,4 +35949,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage$1, 'id' | 'name'
|
|
|
35919
35949
|
|
|
35920
35950
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
35921
35951
|
|
|
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 };
|
|
35952
|
+
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, 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-staging.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
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.41.2-staging.0",
|
|
31
|
+
"@gem-sdk/styles": "1.41.2-staging.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"react-error-boundary": "4.0.10",
|