@gem-sdk/core 1.3.2 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/contexts/BuilderComponent.js +3 -3
- package/dist/cjs/contexts/BuilderContext.js +3 -3
- package/dist/cjs/contexts/BuilderPreviewContext.js +3 -3
- package/dist/cjs/contexts/CartLineContext.js +3 -3
- package/dist/cjs/contexts/CollectionContext.js +3 -3
- package/dist/cjs/contexts/ProductContext.js +3 -3
- package/dist/cjs/contexts/ProductListContext.js +3 -3
- package/dist/cjs/contexts/SectionContext.js +3 -3
- package/dist/cjs/contexts/ShopContext.js +3 -3
- package/dist/cjs/graphql/fragments/published-theme-page.generated.js +1 -0
- package/dist/cjs/graphql/mutations/page-view-up.generated.js +9 -0
- package/dist/cjs/hooks/useCartUI.js +2 -2
- package/dist/cjs/index.js +2 -0
- package/dist/esm/graphql/fragments/published-theme-page.generated.js +1 -0
- package/dist/esm/graphql/mutations/page-view-up.generated.js +7 -0
- package/dist/esm/hooks/useCartUI.js +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/types/index.d.ts +17 -4
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var zustand = require('zustand');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var Empty = require('../components/Empty.js');
|
|
7
7
|
|
|
8
8
|
const BuilderComponentContext = react.createContext(null);
|
|
9
|
-
const createBuilderComponentStore = (components) =>
|
|
9
|
+
const createBuilderComponentStore = (components) => zustand.createStore((_, get) => ({
|
|
10
10
|
components,
|
|
11
11
|
getItem: (id) => {
|
|
12
12
|
return get().components[id];
|
|
@@ -23,7 +23,7 @@ const useBuilderComponent = (id) => {
|
|
|
23
23
|
if (!store) {
|
|
24
24
|
throw new Error('useBuilderComponent must be used within a BuilderComponentProvider');
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return zustand.useStore(store, (s) => (id ? s.getItem(id) ?? Empty.default : Empty.default));
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
exports.BuilderComponentProvider = BuilderComponentProvider;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var react = require('react');
|
|
5
|
-
var
|
|
5
|
+
var zustand = require('zustand');
|
|
6
6
|
|
|
7
7
|
const BuilderContext = react.createContext(null);
|
|
8
|
-
const createBuilderProvider = (data) =>
|
|
8
|
+
const createBuilderProvider = (data) => zustand.createStore((_, get) => ({
|
|
9
9
|
state: data,
|
|
10
10
|
getItem: (id) => {
|
|
11
11
|
return get().state[id];
|
|
@@ -22,7 +22,7 @@ const useBuilderStore = (selector, equalityFn) => {
|
|
|
22
22
|
if (!store) {
|
|
23
23
|
throw new Error('useBuilderStore must be used within a BuilderProvider');
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return zustand.useStore(store, selector, equalityFn);
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
exports.BuilderProvider = BuilderProvider;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var react = require('react');
|
|
5
|
-
var
|
|
5
|
+
var zustand = require('zustand');
|
|
6
6
|
var cloneDeep = require('../helpers/clone-deep.js');
|
|
7
7
|
var normalizeBuilderData = require('../helpers/normalize-builder-data.js');
|
|
8
8
|
|
|
@@ -28,7 +28,7 @@ const root = {
|
|
|
28
28
|
label: 'Root',
|
|
29
29
|
childrens: [],
|
|
30
30
|
};
|
|
31
|
-
const createBuilderPreviewProvider = (args) =>
|
|
31
|
+
const createBuilderPreviewProvider = (args) => zustand.createStore((set, get) => ({
|
|
32
32
|
state: args,
|
|
33
33
|
addItem: (args) => {
|
|
34
34
|
const { position, data } = args;
|
|
@@ -346,7 +346,7 @@ const useBuilderPreviewStore = (selector, equalityFn) => {
|
|
|
346
346
|
if (!store) {
|
|
347
347
|
throw new Error('useBuilderPreviewStore must be used within a BuilderPreviewProvider');
|
|
348
348
|
}
|
|
349
|
-
return
|
|
349
|
+
return zustand.useStore(store, selector, equalityFn);
|
|
350
350
|
};
|
|
351
351
|
|
|
352
352
|
exports.BuilderPreviewProvider = BuilderPreviewProvider;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var zustand = require('zustand');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
|
|
7
7
|
const CartLineContext = react.createContext(null);
|
|
8
|
-
const createCartLineStore = (data) =>
|
|
8
|
+
const createCartLineStore = (data) => zustand.createStore(() => ({
|
|
9
9
|
...data,
|
|
10
10
|
}));
|
|
11
11
|
const CartLineProvider = ({ children, line }) => {
|
|
@@ -17,7 +17,7 @@ const useCartLineStore = (selector, equalityFn) => {
|
|
|
17
17
|
if (!store) {
|
|
18
18
|
throw new Error('useCartLineStore must be used within a CartLineProvider');
|
|
19
19
|
}
|
|
20
|
-
return
|
|
20
|
+
return zustand.useStore(store, selector, equalityFn);
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
exports.CartLineProvider = CartLineProvider;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var react = require('react');
|
|
5
|
-
var
|
|
5
|
+
var zustand = require('zustand');
|
|
6
6
|
|
|
7
7
|
const CollectionListContext = react.createContext(null);
|
|
8
|
-
const createCollectionProvider = (data) =>
|
|
8
|
+
const createCollectionProvider = (data) => zustand.createStore(() => ({
|
|
9
9
|
...data,
|
|
10
10
|
}));
|
|
11
11
|
const CollectionProvider = ({ children, collection, products, settings, styles, }) => {
|
|
@@ -16,7 +16,7 @@ const useCollectionStore = (selector, equalityFn) => {
|
|
|
16
16
|
if (!store) {
|
|
17
17
|
throw new Error('useCollectionStore must be used within a useCollectionStore');
|
|
18
18
|
}
|
|
19
|
-
return
|
|
19
|
+
return zustand.useStore(store, selector, equalityFn);
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
exports.CollectionListContext = CollectionListContext;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var zustand = require('zustand');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var flattenConnection = require('../helpers/flatten-connection.js');
|
|
7
7
|
|
|
8
8
|
// const { Provider, useStore } = createContext<StoreApi<ProductContextProps>>();
|
|
9
9
|
const ProductContext = react.createContext(null);
|
|
10
|
-
const createProductStoreProvider = (data) =>
|
|
10
|
+
const createProductStoreProvider = (data) => zustand.createStore((set, get) => ({
|
|
11
11
|
...data,
|
|
12
12
|
updateProperty: (name, data) => {
|
|
13
13
|
set((state) => {
|
|
@@ -119,7 +119,7 @@ const useProductStore = (selector, equalityFn) => {
|
|
|
119
119
|
if (!store) {
|
|
120
120
|
throw new Error('Element of product must be used inside a Product');
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return zustand.useStore(store, selector, equalityFn);
|
|
123
123
|
};
|
|
124
124
|
|
|
125
125
|
exports.ProductProvider = ProductProvider;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var react = require('react');
|
|
5
|
-
var
|
|
5
|
+
var zustand = require('zustand');
|
|
6
6
|
|
|
7
7
|
const ProductListContext = react.createContext(null);
|
|
8
|
-
const createProductListProvider = (data) =>
|
|
8
|
+
const createProductListProvider = (data) => zustand.createStore(() => ({
|
|
9
9
|
...data,
|
|
10
10
|
}));
|
|
11
11
|
const ProductListProvider = ({ children, collection, products, settings, styles, }) => {
|
|
@@ -16,7 +16,7 @@ const useProductListStore = (selector, equalityFn) => {
|
|
|
16
16
|
if (!store) {
|
|
17
17
|
throw new Error('useProductListStore must be used within a useProductListStore');
|
|
18
18
|
}
|
|
19
|
-
return
|
|
19
|
+
return zustand.useStore(store, selector, equalityFn);
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
exports.ProductListContext = ProductListContext;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var zustand = require('zustand');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var cloneDeep = require('../helpers/clone-deep.js');
|
|
7
7
|
var normalizeBuilderData = require('../helpers/normalize-builder-data.js');
|
|
8
8
|
|
|
9
9
|
const SectionContext = react.createContext(null);
|
|
10
|
-
const createSectionProvider = (data) =>
|
|
10
|
+
const createSectionProvider = (data) => zustand.createStore((set, get) => ({
|
|
11
11
|
data: data ?? {},
|
|
12
12
|
getSection: (id) => {
|
|
13
13
|
const section = get().data[id];
|
|
@@ -40,7 +40,7 @@ const useSectionStore = (selector, equalityFn) => {
|
|
|
40
40
|
if (!store) {
|
|
41
41
|
throw new Error('useSectionStore must be used within a SectionProvider');
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return zustand.useStore(store, selector, equalityFn);
|
|
44
44
|
};
|
|
45
45
|
const useSection = (id) => useSectionStore((s) => s.getSection(id));
|
|
46
46
|
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var useSWR = require('swr');
|
|
5
|
-
var
|
|
5
|
+
var zustand = require('zustand');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var AddonContext = require('./AddonContext.js');
|
|
8
8
|
|
|
9
9
|
const ShopContext = react.createContext(null);
|
|
10
|
-
const createShopStoreProvider = (data) =>
|
|
10
|
+
const createShopStoreProvider = (data) => zustand.createStore((set) => ({
|
|
11
11
|
mobileOnly: false,
|
|
12
12
|
...data,
|
|
13
13
|
changeLocale: (locale) => {
|
|
@@ -36,7 +36,7 @@ const useShopStore = (selector, equalityFn) => {
|
|
|
36
36
|
if (!store) {
|
|
37
37
|
throw new Error('useShopStore must be used within a ShopProvider');
|
|
38
38
|
}
|
|
39
|
-
return
|
|
39
|
+
return zustand.useStore(store, selector, equalityFn);
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
exports.ShopProvider = ShopProvider;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var react = require('react');
|
|
6
|
-
var
|
|
6
|
+
var zustand = require('zustand');
|
|
7
7
|
var shop = require('./shop.js');
|
|
8
8
|
|
|
9
|
-
const useStore = create((set) => ({
|
|
9
|
+
const useStore = zustand.create((set) => ({
|
|
10
10
|
isCartOpen: false,
|
|
11
11
|
setOpen: (isCartOpen) => {
|
|
12
12
|
const scrollBarGap = window.innerWidth - document.documentElement.clientWidth;
|
package/dist/cjs/index.js
CHANGED
|
@@ -13,6 +13,7 @@ var ProductContext = require('./contexts/ProductContext.js');
|
|
|
13
13
|
var SectionContext = require('./contexts/SectionContext.js');
|
|
14
14
|
var ShopContext = require('./contexts/ShopContext.js');
|
|
15
15
|
var CollectionContext = require('./contexts/CollectionContext.js');
|
|
16
|
+
var pageViewUp_generated = require('./graphql/mutations/page-view-up.generated.js');
|
|
16
17
|
var collectionDetailFilter_generated = require('./graphql/queries/collection-detail-filter.generated.js');
|
|
17
18
|
var collection_generated = require('./graphql/queries/collection.generated.js');
|
|
18
19
|
var publishedThemePages_generated = require('./graphql/queries/published-theme-pages.generated.js');
|
|
@@ -106,6 +107,7 @@ exports.ShopProvider = ShopContext.ShopProvider;
|
|
|
106
107
|
exports.useShopStore = ShopContext.useShopStore;
|
|
107
108
|
exports.CollectionProvider = CollectionContext.CollectionProvider;
|
|
108
109
|
exports.useCollectionStore = CollectionContext.useCollectionStore;
|
|
110
|
+
exports.PageViewUpDocument = pageViewUp_generated.PageViewUpDocument;
|
|
109
111
|
exports.CollectionDetailFilterDocument = collectionDetailFilter_generated.CollectionDetailFilterDocument;
|
|
110
112
|
exports.CollectionDocument = collection_generated.CollectionDocument;
|
|
111
113
|
exports.PublishedThemePagesDocument = publishedThemePages_generated.PublishedThemePagesDocument;
|
package/dist/esm/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export { ProductProvider, useProductStore } from './contexts/ProductContext.js';
|
|
|
11
11
|
export { SectionProvider, useSection, useSectionStore } from './contexts/SectionContext.js';
|
|
12
12
|
export { ShopProvider, useShopStore } from './contexts/ShopContext.js';
|
|
13
13
|
export { CollectionProvider, useCollectionStore } from './contexts/CollectionContext.js';
|
|
14
|
+
export { PageViewUpDocument } from './graphql/mutations/page-view-up.generated.js';
|
|
14
15
|
export { CollectionDetailFilterDocument } from './graphql/queries/collection-detail-filter.generated.js';
|
|
15
16
|
export { CollectionDocument } from './graphql/queries/collection.generated.js';
|
|
16
17
|
export { PublishedThemePagesDocument } from './graphql/queries/published-theme-pages.generated.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3236,6 +3236,10 @@ type MutationCartNoteUpdateArgs = {
|
|
|
3236
3236
|
note: Scalars['String'];
|
|
3237
3237
|
platform: CartPlatform;
|
|
3238
3238
|
};
|
|
3239
|
+
type MutationPageViewUpArgs = {
|
|
3240
|
+
pageHandle: Scalars['String'];
|
|
3241
|
+
userAgent: Scalars['String'];
|
|
3242
|
+
};
|
|
3239
3243
|
type ObjectType = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'PAGE' | 'PRODUCT' | 'PRODUCT_VARIANT' | 'SHOP';
|
|
3240
3244
|
type OrderDirection = 'ASC' | 'DESC';
|
|
3241
3245
|
type Page = {
|
|
@@ -6189,6 +6193,7 @@ type shop_MutationCartLinesAddArgs = MutationCartLinesAddArgs;
|
|
|
6189
6193
|
type shop_MutationCartLinesRemoveArgs = MutationCartLinesRemoveArgs;
|
|
6190
6194
|
type shop_MutationCartLinesUpdateArgs = MutationCartLinesUpdateArgs;
|
|
6191
6195
|
type shop_MutationCartNoteUpdateArgs = MutationCartNoteUpdateArgs;
|
|
6196
|
+
type shop_MutationPageViewUpArgs = MutationPageViewUpArgs;
|
|
6192
6197
|
type shop_ObjectType = ObjectType;
|
|
6193
6198
|
type shop_OrderDirection = OrderDirection;
|
|
6194
6199
|
type shop_Page = Page;
|
|
@@ -6371,6 +6376,7 @@ declare namespace shop {
|
|
|
6371
6376
|
shop_MutationCartLinesRemoveArgs as MutationCartLinesRemoveArgs,
|
|
6372
6377
|
shop_MutationCartLinesUpdateArgs as MutationCartLinesUpdateArgs,
|
|
6373
6378
|
shop_MutationCartNoteUpdateArgs as MutationCartNoteUpdateArgs,
|
|
6379
|
+
shop_MutationPageViewUpArgs as MutationPageViewUpArgs,
|
|
6374
6380
|
shop_ObjectType as ObjectType,
|
|
6375
6381
|
shop_OrderDirection as OrderDirection,
|
|
6376
6382
|
shop_Page as Page,
|
|
@@ -6904,6 +6910,13 @@ type CollectionProviderProps = CollectionContextProps & {
|
|
|
6904
6910
|
declare const CollectionProvider: React.FC<CollectionProviderProps>;
|
|
6905
6911
|
declare const useCollectionStore: <U>(selector: (state: ExtractState<StoreApi<CollectionContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
6906
6912
|
|
|
6913
|
+
type PageViewUpMutationVariables = Exact<{
|
|
6914
|
+
pageHandle: Scalars['String'];
|
|
6915
|
+
userAgent: Scalars['String'];
|
|
6916
|
+
}>;
|
|
6917
|
+
type PageViewUpMutationResponse = Pick<Mutation, 'pageViewUp'>;
|
|
6918
|
+
declare const PageViewUpDocument = "\n mutation pageViewUp($pageHandle: String!, $userAgent: String!) {\n pageViewUp(pageHandle: $pageHandle, userAgent: $userAgent)\n}\n ";
|
|
6919
|
+
|
|
6907
6920
|
type CollectionDetailFilterQueryVariables = Exact<{
|
|
6908
6921
|
firstProduct?: InputMaybe<Scalars['Int']>;
|
|
6909
6922
|
orderBy?: InputMaybe<CollectionOrder>;
|
|
@@ -6998,7 +7011,7 @@ type PublishedThemePagesQueryVariables = Exact<{
|
|
|
6998
7011
|
slugType: PublishedThemePageType;
|
|
6999
7012
|
}>;
|
|
7000
7013
|
type PublishedThemePagesQueryResponse = {
|
|
7001
|
-
publishedThemePages?: Maybe<Array<Maybe<Pick<PublishedThemePage, 'id' | 'name' | 'isMobile' | 'sectionPosition'> & {
|
|
7014
|
+
publishedThemePages?: Maybe<Array<Maybe<Pick<PublishedThemePage, 'id' | 'name' | 'handle' | 'isMobile' | 'sectionPosition'> & {
|
|
7002
7015
|
pageSections?: Maybe<Array<Maybe<Pick<PublishedPageSection, 'cid' | 'component' | 'id'>>>>;
|
|
7003
7016
|
themePageCustomSections?: Maybe<Array<Maybe<Pick<PublishedCustomSection, 'cid' | 'component' | 'id' | 'type'>>>>;
|
|
7004
7017
|
themePageDataSEO?: Maybe<Array<Maybe<Pick<DataSeo, 'id' | 'key' | 'value'>>>>;
|
|
@@ -7062,7 +7075,7 @@ type PreviewPageQueryVariables = Exact<{
|
|
|
7062
7075
|
pageType: PublishedThemePageType;
|
|
7063
7076
|
}>;
|
|
7064
7077
|
type PreviewPageQueryResponse = {
|
|
7065
|
-
previewPage?: Maybe<Pick<PublishedThemePage, 'id' | 'name' | 'isMobile' | 'sectionPosition'> & {
|
|
7078
|
+
previewPage?: Maybe<Pick<PublishedThemePage, 'id' | 'name' | 'handle' | 'isMobile' | 'sectionPosition'> & {
|
|
7066
7079
|
pageSections?: Maybe<Array<Maybe<Pick<PublishedPageSection, 'cid' | 'component' | 'id'>>>>;
|
|
7067
7080
|
themePageCustomSections?: Maybe<Array<Maybe<Pick<PublishedCustomSection, 'cid' | 'component' | 'id' | 'type'>>>>;
|
|
7068
7081
|
themePageDataSEO?: Maybe<Array<Maybe<Pick<DataSeo, 'id' | 'key' | 'value'>>>>;
|
|
@@ -7415,7 +7428,7 @@ declare const useSuspenseFetch: <T>(key: string | any[], promise: () => Promise<
|
|
|
7415
7428
|
|
|
7416
7429
|
declare const useSwatchesOptions: (options?: ProductOption[]) => ProductOption[];
|
|
7417
7430
|
|
|
7418
|
-
type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' | 'isMobile' | 'sectionPosition'> & {
|
|
7431
|
+
type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' | 'handle' | 'isMobile' | 'sectionPosition'> & {
|
|
7419
7432
|
pageSections?: Maybe<Array<Maybe<Pick<PublishedPageSection, 'cid' | 'component' | 'id'>>>>;
|
|
7420
7433
|
themePageCustomSections?: Maybe<Array<Maybe<Pick<PublishedCustomSection, 'cid' | 'component' | 'id' | 'type'>>>>;
|
|
7421
7434
|
themePageDataSEO?: Maybe<Array<Maybe<Pick<DataSeo, 'id' | 'key' | 'value'>>>>;
|
|
@@ -7450,4 +7463,4 @@ declare const fetchMedias: (fetcher: FetchFunc, { id, isSample }: FetchParams) =
|
|
|
7450
7463
|
|
|
7451
7464
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
7452
7465
|
|
|
7453
|
-
export { AddOn, AddonProvider, AddonProviderProps, AlignItemProp, AlignProp, Background, BaseProps, BasePropsWrap, BlockEntity, Border, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentSetting, ContainerProp, ControlProp, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, ExtractState, FetchFunc, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, HSLAColorType, HSLColorType, HexColorType, InitComponentType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LooxReviewsWidgetType, NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, OptionNormalStyle, OptionSpecialStyle, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductProvider, ProductProviderProps, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, RenderMemo as Render, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveStateProp, RoundedSize, SectionData, SectionEntity, SectionProvider, SectionProviderProps, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeType, SpacingType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TypographyProps, TypographySetting, TypographyType, VariantSelectFragment, calculateFirstProduct, cls, composeRadius, composeSize, composeSpacing, fetchMedias, fetchVariants, flattenConnection, fpixel, genTypoClass, genVariable, getCollection, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, globalEvent, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, isBrowser, isColor, isDefined, isEmptyChildren, loadScript, makeAspectRatio, makeHeight, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, prefetchQueries, tiktokpixel, useAddToCart, useAddon, useAddons, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCollection, useCollectionQuery, useCollectionStore, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useIsSampleProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useMoney, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
7466
|
+
export { AddOn, AddonProvider, AddonProviderProps, AlignItemProp, AlignProp, Background, BaseProps, BasePropsWrap, BlockEntity, Border, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentSetting, ContainerProp, ControlProp, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, ExtractState, FetchFunc, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, HSLAColorType, HSLColorType, HexColorType, InitComponentType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LooxReviewsWidgetType, NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, OptionNormalStyle, OptionSpecialStyle, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductProvider, ProductProviderProps, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, RenderMemo as Render, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveStateProp, RoundedSize, SectionData, SectionEntity, SectionProvider, SectionProviderProps, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeType, SpacingType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TypographyProps, TypographySetting, TypographyType, VariantSelectFragment, calculateFirstProduct, cls, composeRadius, composeSize, composeSpacing, fetchMedias, fetchVariants, flattenConnection, fpixel, genTypoClass, genVariable, getCollection, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, globalEvent, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, isBrowser, isColor, isDefined, isEmptyChildren, loadScript, makeAspectRatio, makeHeight, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, prefetchQueries, tiktokpixel, useAddToCart, useAddon, useAddons, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCollection, useCollectionQuery, useCollectionStore, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useIsSampleProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useMoney, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, 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.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-error-boundary": "^3.1.4",
|
|
32
32
|
"swr": "^2.0.0",
|
|
33
33
|
"vanilla-lazyload": "17.8.3",
|
|
34
|
-
"zustand": "^4.
|
|
34
|
+
"zustand": "^4.3.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": "^17 || ^18",
|