@gem-sdk/core 1.44.1 → 1.44.2-staging.87
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/ArticleContext.js +39 -0
- package/dist/cjs/contexts/ArticleListContext.js +31 -0
- package/dist/cjs/graphql/queries/articles.generated.js +59 -0
- package/dist/cjs/graphql/queries/blogs.generated.js +64 -0
- package/dist/cjs/helpers/borders.js +15 -0
- package/dist/cjs/hooks/articles/useArticlesQuery.js +32 -0
- package/dist/cjs/index.js +10 -0
- package/dist/esm/contexts/ArticleContext.js +36 -0
- package/dist/esm/contexts/ArticleListContext.js +27 -0
- package/dist/esm/graphql/queries/articles.generated.js +57 -0
- package/dist/esm/graphql/queries/blogs.generated.js +62 -0
- package/dist/esm/helpers/borders.js +15 -1
- package/dist/esm/hooks/articles/useArticlesQuery.js +29 -0
- package/dist/esm/index.js +4 -1
- package/dist/types/index.d.ts +319 -19
- package/package.json +3 -3
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var zustand = require('zustand');
|
|
5
|
+
var react = require('react');
|
|
6
|
+
|
|
7
|
+
// const { Provider, useStore } = createContext<StoreApi<ProductContextProps>>();
|
|
8
|
+
const ArticleContext = /*#__PURE__*/ react.createContext(null);
|
|
9
|
+
const createArticleStoreProvider = (data)=>zustand.createStore(()=>({
|
|
10
|
+
...data
|
|
11
|
+
}));
|
|
12
|
+
const ArticleProvider = ({ children, article })=>{
|
|
13
|
+
const uniqueId = react.useId();
|
|
14
|
+
const store = react.useMemo(()=>{
|
|
15
|
+
return createArticleStoreProvider({
|
|
16
|
+
article,
|
|
17
|
+
uniqueId
|
|
18
|
+
});
|
|
19
|
+
}, [
|
|
20
|
+
article,
|
|
21
|
+
uniqueId
|
|
22
|
+
]);
|
|
23
|
+
return /*#__PURE__*/ jsxRuntime.jsx(ArticleContext.Provider, {
|
|
24
|
+
value: store,
|
|
25
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
26
|
+
children: children
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
const useArticleStore = (selector, equalityFn)=>{
|
|
31
|
+
const store = react.useContext(ArticleContext);
|
|
32
|
+
if (!store) {
|
|
33
|
+
throw new Error('Element of article must be used inside a Article');
|
|
34
|
+
}
|
|
35
|
+
return zustand.useStore(store, selector, equalityFn);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
exports.ArticleProvider = ArticleProvider;
|
|
39
|
+
exports.useArticleStore = useArticleStore;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var zustand = require('zustand');
|
|
6
|
+
|
|
7
|
+
const ArticleListContext = /*#__PURE__*/ react.createContext(null);
|
|
8
|
+
const createArticleListProvider = (data)=>zustand.createStore(()=>({
|
|
9
|
+
...data
|
|
10
|
+
}));
|
|
11
|
+
const ArticleListProvider = ({ articles, children, styles, settings })=>{
|
|
12
|
+
return /*#__PURE__*/ jsxRuntime.jsx(ArticleListContext.Provider, {
|
|
13
|
+
value: createArticleListProvider({
|
|
14
|
+
articles,
|
|
15
|
+
styles,
|
|
16
|
+
settings
|
|
17
|
+
}),
|
|
18
|
+
children: children
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
const useArticleListStore = (selector, equalityFn)=>{
|
|
22
|
+
const store = react.useContext(ArticleListContext);
|
|
23
|
+
if (!store) {
|
|
24
|
+
throw new Error('useArticleListStore must be used within a useArticleListStore');
|
|
25
|
+
}
|
|
26
|
+
return zustand.useStore(store, selector, equalityFn);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
exports.ArticleListContext = ArticleListContext;
|
|
30
|
+
exports.ArticleListProvider = ArticleListProvider;
|
|
31
|
+
exports.useArticleListStore = useArticleListStore;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const ArticlesDocument = `
|
|
4
|
+
query articles($after: Cursor, $before: Cursor, $first: Int, $last: Int, $orderBy: ArticleOrder, $where: ArticleWhereInput) {
|
|
5
|
+
articles(
|
|
6
|
+
after: $after
|
|
7
|
+
before: $before
|
|
8
|
+
first: $first
|
|
9
|
+
last: $last
|
|
10
|
+
orderBy: $orderBy
|
|
11
|
+
where: $where
|
|
12
|
+
) {
|
|
13
|
+
edges {
|
|
14
|
+
cursor
|
|
15
|
+
node {
|
|
16
|
+
id
|
|
17
|
+
title
|
|
18
|
+
handle
|
|
19
|
+
description
|
|
20
|
+
templateSuffix
|
|
21
|
+
titleMeta
|
|
22
|
+
descriptionMeta
|
|
23
|
+
baseID
|
|
24
|
+
platform
|
|
25
|
+
tags
|
|
26
|
+
isSample
|
|
27
|
+
platformCreatedAt
|
|
28
|
+
author
|
|
29
|
+
content {
|
|
30
|
+
excerptHtml
|
|
31
|
+
}
|
|
32
|
+
blogs {
|
|
33
|
+
edges {
|
|
34
|
+
node {
|
|
35
|
+
title
|
|
36
|
+
handle
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
media {
|
|
41
|
+
alt
|
|
42
|
+
width
|
|
43
|
+
src
|
|
44
|
+
height
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
pageInfo {
|
|
49
|
+
endCursor
|
|
50
|
+
hasNextPage
|
|
51
|
+
hasPreviousPage
|
|
52
|
+
startCursor
|
|
53
|
+
}
|
|
54
|
+
totalCount
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
exports.ArticlesDocument = ArticlesDocument;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const BlogsDocument = `
|
|
4
|
+
query blogs($after: Cursor, $before: Cursor, $first: Int, $last: Int, $orderBy: BlogOrder, $where: BlogWhereInput, $articlesOrderBy: ArticleOrder) {
|
|
5
|
+
blogs(
|
|
6
|
+
after: $after
|
|
7
|
+
before: $before
|
|
8
|
+
first: $first
|
|
9
|
+
last: $last
|
|
10
|
+
orderBy: $orderBy
|
|
11
|
+
where: $where
|
|
12
|
+
) {
|
|
13
|
+
edges {
|
|
14
|
+
cursor
|
|
15
|
+
node {
|
|
16
|
+
baseID
|
|
17
|
+
description
|
|
18
|
+
descriptionMeta
|
|
19
|
+
handle
|
|
20
|
+
articles(orderBy: $articlesOrderBy) {
|
|
21
|
+
edges {
|
|
22
|
+
cursor
|
|
23
|
+
node {
|
|
24
|
+
id
|
|
25
|
+
title
|
|
26
|
+
handle
|
|
27
|
+
description
|
|
28
|
+
templateSuffix
|
|
29
|
+
titleMeta
|
|
30
|
+
descriptionMeta
|
|
31
|
+
baseID
|
|
32
|
+
tags
|
|
33
|
+
isSample
|
|
34
|
+
platformCreatedAt
|
|
35
|
+
author
|
|
36
|
+
media {
|
|
37
|
+
width
|
|
38
|
+
src
|
|
39
|
+
height
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
totalCount
|
|
44
|
+
}
|
|
45
|
+
id
|
|
46
|
+
platform
|
|
47
|
+
tags
|
|
48
|
+
templateSuffix
|
|
49
|
+
title
|
|
50
|
+
titleMeta
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
pageInfo {
|
|
54
|
+
endCursor
|
|
55
|
+
hasNextPage
|
|
56
|
+
hasPreviousPage
|
|
57
|
+
startCursor
|
|
58
|
+
}
|
|
59
|
+
totalCount
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
exports.BlogsDocument = BlogsDocument;
|
|
@@ -10,6 +10,20 @@ const getBorderStyle = (value)=>{
|
|
|
10
10
|
bw: value?.width
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
|
+
const getBorderRadiusStyle = (borderRadius, shapeRadius)=>{
|
|
14
|
+
const initialRadius = Object.entries(shapeRadius || {}).reduce((shapeRadius, [position, value])=>{
|
|
15
|
+
return {
|
|
16
|
+
...shapeRadius,
|
|
17
|
+
[`--${position}`]: value
|
|
18
|
+
};
|
|
19
|
+
}, {});
|
|
20
|
+
return Object.entries(borderRadius || {}).reduce((borderRadius, [position, value])=>{
|
|
21
|
+
return {
|
|
22
|
+
...borderRadius,
|
|
23
|
+
[`--${position}`]: value
|
|
24
|
+
};
|
|
25
|
+
}, initialRadius);
|
|
26
|
+
};
|
|
13
27
|
const handleConvertBorderStyle = (value, type)=>{
|
|
14
28
|
if (!value) return undefined;
|
|
15
29
|
if ('desktop' in value || 'tablet' in value || 'mobile' in value) {
|
|
@@ -175,6 +189,7 @@ const composeBorderCss = (borderV)=>{
|
|
|
175
189
|
};
|
|
176
190
|
|
|
177
191
|
exports.composeBorderCss = composeBorderCss;
|
|
192
|
+
exports.getBorderRadiusStyle = getBorderRadiusStyle;
|
|
178
193
|
exports.getBorderStyle = getBorderStyle;
|
|
179
194
|
exports.handleConvertBorderColor = handleConvertBorderColor;
|
|
180
195
|
exports.handleConvertBorderStyle = handleConvertBorderStyle;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var articles_generated = require('../../graphql/queries/articles.generated.js');
|
|
4
|
+
var useFetchHandle = require('../useFetchHandle.js');
|
|
5
|
+
var useSWR = require('swr');
|
|
6
|
+
var blogs_generated = require('../../graphql/queries/blogs.generated.js');
|
|
7
|
+
|
|
8
|
+
const useArticlesQuery = (variables, options)=>{
|
|
9
|
+
const fetcher = useFetchHandle.useFetchHandle();
|
|
10
|
+
const fetchArticles = ()=>fetcher([
|
|
11
|
+
articles_generated.ArticlesDocument,
|
|
12
|
+
variables ?? {}
|
|
13
|
+
]);
|
|
14
|
+
return useSWR(variables ? [
|
|
15
|
+
'query/articles',
|
|
16
|
+
variables
|
|
17
|
+
] : null, fetchArticles, options);
|
|
18
|
+
};
|
|
19
|
+
const useBlogsQuery = (variables, options)=>{
|
|
20
|
+
const fetcher = useFetchHandle.useFetchHandle();
|
|
21
|
+
const fetchBlogs = ()=>fetcher([
|
|
22
|
+
blogs_generated.BlogsDocument,
|
|
23
|
+
variables ?? {}
|
|
24
|
+
]);
|
|
25
|
+
return useSWR(variables ? [
|
|
26
|
+
'query/blogs',
|
|
27
|
+
variables
|
|
28
|
+
] : null, fetchBlogs, options);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.useArticlesQuery = useArticlesQuery;
|
|
32
|
+
exports.useBlogsQuery = useBlogsQuery;
|
package/dist/cjs/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var ShopContext = require('./contexts/ShopContext.js');
|
|
|
16
16
|
var PageContext = require('./contexts/PageContext.js');
|
|
17
17
|
var CollectionContext = require('./contexts/CollectionContext.js');
|
|
18
18
|
var ModalContext = require('./contexts/ModalContext.js');
|
|
19
|
+
var ArticleListContext = require('./contexts/ArticleListContext.js');
|
|
20
|
+
var ArticleContext = require('./contexts/ArticleContext.js');
|
|
19
21
|
var pageViewUp_generated = require('./graphql/mutations/page-view-up.generated.js');
|
|
20
22
|
var collectionDetailFilter_generated = require('./graphql/queries/collection-detail-filter.generated.js');
|
|
21
23
|
var collection_generated = require('./graphql/queries/collection.generated.js');
|
|
@@ -89,6 +91,7 @@ var useIsomorphicLayoutEffect = require('./hooks/useIsomorphicLayoutEffect.js');
|
|
|
89
91
|
var useLoadScript = require('./hooks/useLoadScript.js');
|
|
90
92
|
var useMoney = require('./hooks/useMoney.js');
|
|
91
93
|
var usePrevious = require('./hooks/usePrevious.js');
|
|
94
|
+
var useArticlesQuery = require('./hooks/articles/useArticlesQuery.js');
|
|
92
95
|
var useProduct = require('./hooks/useProduct.js');
|
|
93
96
|
var useProductList = require('./hooks/useProductList.js');
|
|
94
97
|
var useSuspenseFetch = require('./hooks/useSuspenseFetch.js');
|
|
@@ -136,6 +139,10 @@ exports.CollectionProvider = CollectionContext.CollectionProvider;
|
|
|
136
139
|
exports.useCollectionStore = CollectionContext.useCollectionStore;
|
|
137
140
|
exports.ModalProvider = ModalContext.ModalProvider;
|
|
138
141
|
exports.useModalStore = ModalContext.useModalStore;
|
|
142
|
+
exports.ArticleListProvider = ArticleListContext.ArticleListProvider;
|
|
143
|
+
exports.useArticleListStore = ArticleListContext.useArticleListStore;
|
|
144
|
+
exports.ArticleProvider = ArticleContext.ArticleProvider;
|
|
145
|
+
exports.useArticleStore = ArticleContext.useArticleStore;
|
|
139
146
|
exports.PageViewUpDocument = pageViewUp_generated.PageViewUpDocument;
|
|
140
147
|
exports.CollectionDetailFilterDocument = collectionDetailFilter_generated.CollectionDetailFilterDocument;
|
|
141
148
|
exports.CollectionDocument = collection_generated.CollectionDocument;
|
|
@@ -149,6 +156,7 @@ exports.ThemePageDocument = ThemePage_generated.ThemePageDocument;
|
|
|
149
156
|
exports.SaleFunnelDiscountsDocument = SaleFunnelDiscounts_generated.SaleFunnelDiscountsDocument;
|
|
150
157
|
exports.LibrarySaleFunnelDocument = LibrarySaleFunnelDiscount_generated.LibrarySaleFunnelDocument;
|
|
151
158
|
exports.composeBorderCss = borders.composeBorderCss;
|
|
159
|
+
exports.getBorderRadiusStyle = borders.getBorderRadiusStyle;
|
|
152
160
|
exports.getBorderStyle = borders.getBorderStyle;
|
|
153
161
|
exports.handleConvertBorderColor = borders.handleConvertBorderColor;
|
|
154
162
|
exports.handleConvertBorderStyle = borders.handleConvertBorderStyle;
|
|
@@ -321,6 +329,8 @@ exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect.default;
|
|
|
321
329
|
exports.useLoadScript = useLoadScript.default;
|
|
322
330
|
exports.useMoney = useMoney.default;
|
|
323
331
|
exports.usePrevious = usePrevious.usePrevious;
|
|
332
|
+
exports.useArticlesQuery = useArticlesQuery.useArticlesQuery;
|
|
333
|
+
exports.useBlogsQuery = useArticlesQuery.useBlogsQuery;
|
|
324
334
|
exports.useCheckAvailableVariantInStock = useProduct.useCheckAvailableVariantInStock;
|
|
325
335
|
exports.useCurrentVariant = useProduct.useCurrentVariant;
|
|
326
336
|
exports.useCurrentVariantInStock = useProduct.useCurrentVariantInStock;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { useStore, createStore } from 'zustand';
|
|
3
|
+
import { useId, useMemo, useContext, createContext } from 'react';
|
|
4
|
+
|
|
5
|
+
// const { Provider, useStore } = createContext<StoreApi<ProductContextProps>>();
|
|
6
|
+
const ArticleContext = /*#__PURE__*/ createContext(null);
|
|
7
|
+
const createArticleStoreProvider = (data)=>createStore(()=>({
|
|
8
|
+
...data
|
|
9
|
+
}));
|
|
10
|
+
const ArticleProvider = ({ children, article })=>{
|
|
11
|
+
const uniqueId = useId();
|
|
12
|
+
const store = useMemo(()=>{
|
|
13
|
+
return createArticleStoreProvider({
|
|
14
|
+
article,
|
|
15
|
+
uniqueId
|
|
16
|
+
});
|
|
17
|
+
}, [
|
|
18
|
+
article,
|
|
19
|
+
uniqueId
|
|
20
|
+
]);
|
|
21
|
+
return /*#__PURE__*/ jsx(ArticleContext.Provider, {
|
|
22
|
+
value: store,
|
|
23
|
+
children: /*#__PURE__*/ jsx(Fragment, {
|
|
24
|
+
children: children
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const useArticleStore = (selector, equalityFn)=>{
|
|
29
|
+
const store = useContext(ArticleContext);
|
|
30
|
+
if (!store) {
|
|
31
|
+
throw new Error('Element of article must be used inside a Article');
|
|
32
|
+
}
|
|
33
|
+
return useStore(store, selector, equalityFn);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { ArticleProvider, useArticleStore };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useContext, createContext } from 'react';
|
|
3
|
+
import { useStore, createStore } from 'zustand';
|
|
4
|
+
|
|
5
|
+
const ArticleListContext = /*#__PURE__*/ createContext(null);
|
|
6
|
+
const createArticleListProvider = (data)=>createStore(()=>({
|
|
7
|
+
...data
|
|
8
|
+
}));
|
|
9
|
+
const ArticleListProvider = ({ articles, children, styles, settings })=>{
|
|
10
|
+
return /*#__PURE__*/ jsx(ArticleListContext.Provider, {
|
|
11
|
+
value: createArticleListProvider({
|
|
12
|
+
articles,
|
|
13
|
+
styles,
|
|
14
|
+
settings
|
|
15
|
+
}),
|
|
16
|
+
children: children
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
const useArticleListStore = (selector, equalityFn)=>{
|
|
20
|
+
const store = useContext(ArticleListContext);
|
|
21
|
+
if (!store) {
|
|
22
|
+
throw new Error('useArticleListStore must be used within a useArticleListStore');
|
|
23
|
+
}
|
|
24
|
+
return useStore(store, selector, equalityFn);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { ArticleListContext, ArticleListProvider, useArticleListStore };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const ArticlesDocument = `
|
|
2
|
+
query articles($after: Cursor, $before: Cursor, $first: Int, $last: Int, $orderBy: ArticleOrder, $where: ArticleWhereInput) {
|
|
3
|
+
articles(
|
|
4
|
+
after: $after
|
|
5
|
+
before: $before
|
|
6
|
+
first: $first
|
|
7
|
+
last: $last
|
|
8
|
+
orderBy: $orderBy
|
|
9
|
+
where: $where
|
|
10
|
+
) {
|
|
11
|
+
edges {
|
|
12
|
+
cursor
|
|
13
|
+
node {
|
|
14
|
+
id
|
|
15
|
+
title
|
|
16
|
+
handle
|
|
17
|
+
description
|
|
18
|
+
templateSuffix
|
|
19
|
+
titleMeta
|
|
20
|
+
descriptionMeta
|
|
21
|
+
baseID
|
|
22
|
+
platform
|
|
23
|
+
tags
|
|
24
|
+
isSample
|
|
25
|
+
platformCreatedAt
|
|
26
|
+
author
|
|
27
|
+
content {
|
|
28
|
+
excerptHtml
|
|
29
|
+
}
|
|
30
|
+
blogs {
|
|
31
|
+
edges {
|
|
32
|
+
node {
|
|
33
|
+
title
|
|
34
|
+
handle
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
media {
|
|
39
|
+
alt
|
|
40
|
+
width
|
|
41
|
+
src
|
|
42
|
+
height
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
pageInfo {
|
|
47
|
+
endCursor
|
|
48
|
+
hasNextPage
|
|
49
|
+
hasPreviousPage
|
|
50
|
+
startCursor
|
|
51
|
+
}
|
|
52
|
+
totalCount
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
56
|
+
|
|
57
|
+
export { ArticlesDocument };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const BlogsDocument = `
|
|
2
|
+
query blogs($after: Cursor, $before: Cursor, $first: Int, $last: Int, $orderBy: BlogOrder, $where: BlogWhereInput, $articlesOrderBy: ArticleOrder) {
|
|
3
|
+
blogs(
|
|
4
|
+
after: $after
|
|
5
|
+
before: $before
|
|
6
|
+
first: $first
|
|
7
|
+
last: $last
|
|
8
|
+
orderBy: $orderBy
|
|
9
|
+
where: $where
|
|
10
|
+
) {
|
|
11
|
+
edges {
|
|
12
|
+
cursor
|
|
13
|
+
node {
|
|
14
|
+
baseID
|
|
15
|
+
description
|
|
16
|
+
descriptionMeta
|
|
17
|
+
handle
|
|
18
|
+
articles(orderBy: $articlesOrderBy) {
|
|
19
|
+
edges {
|
|
20
|
+
cursor
|
|
21
|
+
node {
|
|
22
|
+
id
|
|
23
|
+
title
|
|
24
|
+
handle
|
|
25
|
+
description
|
|
26
|
+
templateSuffix
|
|
27
|
+
titleMeta
|
|
28
|
+
descriptionMeta
|
|
29
|
+
baseID
|
|
30
|
+
tags
|
|
31
|
+
isSample
|
|
32
|
+
platformCreatedAt
|
|
33
|
+
author
|
|
34
|
+
media {
|
|
35
|
+
width
|
|
36
|
+
src
|
|
37
|
+
height
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
totalCount
|
|
42
|
+
}
|
|
43
|
+
id
|
|
44
|
+
platform
|
|
45
|
+
tags
|
|
46
|
+
templateSuffix
|
|
47
|
+
title
|
|
48
|
+
titleMeta
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
pageInfo {
|
|
52
|
+
endCursor
|
|
53
|
+
hasNextPage
|
|
54
|
+
hasPreviousPage
|
|
55
|
+
startCursor
|
|
56
|
+
}
|
|
57
|
+
totalCount
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
|
|
62
|
+
export { BlogsDocument };
|
|
@@ -8,6 +8,20 @@ const getBorderStyle = (value)=>{
|
|
|
8
8
|
bw: value?.width
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
+
const getBorderRadiusStyle = (borderRadius, shapeRadius)=>{
|
|
12
|
+
const initialRadius = Object.entries(shapeRadius || {}).reduce((shapeRadius, [position, value])=>{
|
|
13
|
+
return {
|
|
14
|
+
...shapeRadius,
|
|
15
|
+
[`--${position}`]: value
|
|
16
|
+
};
|
|
17
|
+
}, {});
|
|
18
|
+
return Object.entries(borderRadius || {}).reduce((borderRadius, [position, value])=>{
|
|
19
|
+
return {
|
|
20
|
+
...borderRadius,
|
|
21
|
+
[`--${position}`]: value
|
|
22
|
+
};
|
|
23
|
+
}, initialRadius);
|
|
24
|
+
};
|
|
11
25
|
const handleConvertBorderStyle = (value, type)=>{
|
|
12
26
|
if (!value) return undefined;
|
|
13
27
|
if ('desktop' in value || 'tablet' in value || 'mobile' in value) {
|
|
@@ -172,4 +186,4 @@ const composeBorderCss = (borderV)=>{
|
|
|
172
186
|
`;
|
|
173
187
|
};
|
|
174
188
|
|
|
175
|
-
export { composeBorderCss, getBorderStyle, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn };
|
|
189
|
+
export { composeBorderCss, getBorderRadiusStyle, getBorderStyle, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ArticlesDocument } from '../../graphql/queries/articles.generated.js';
|
|
2
|
+
import { useFetchHandle } from '../useFetchHandle.js';
|
|
3
|
+
import useSWR from 'swr';
|
|
4
|
+
import { BlogsDocument } from '../../graphql/queries/blogs.generated.js';
|
|
5
|
+
|
|
6
|
+
const useArticlesQuery = (variables, options)=>{
|
|
7
|
+
const fetcher = useFetchHandle();
|
|
8
|
+
const fetchArticles = ()=>fetcher([
|
|
9
|
+
ArticlesDocument,
|
|
10
|
+
variables ?? {}
|
|
11
|
+
]);
|
|
12
|
+
return useSWR(variables ? [
|
|
13
|
+
'query/articles',
|
|
14
|
+
variables
|
|
15
|
+
] : null, fetchArticles, options);
|
|
16
|
+
};
|
|
17
|
+
const useBlogsQuery = (variables, options)=>{
|
|
18
|
+
const fetcher = useFetchHandle();
|
|
19
|
+
const fetchBlogs = ()=>fetcher([
|
|
20
|
+
BlogsDocument,
|
|
21
|
+
variables ?? {}
|
|
22
|
+
]);
|
|
23
|
+
return useSWR(variables ? [
|
|
24
|
+
'query/blogs',
|
|
25
|
+
variables
|
|
26
|
+
] : null, fetchBlogs, options);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { useArticlesQuery, useBlogsQuery };
|
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';
|
|
@@ -26,7 +28,7 @@ export { LibraryTemplateDocument } from './graphql-app-api/queries/LibraryTempla
|
|
|
26
28
|
export { ThemePageDocument } from './graphql-app-api/queries/ThemePage.generated.js';
|
|
27
29
|
export { SaleFunnelDiscountsDocument } from './graphql-app-api/queries/SaleFunnelDiscounts.generated.js';
|
|
28
30
|
export { LibrarySaleFunnelDocument } from './graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js';
|
|
29
|
-
export { composeBorderCss, getBorderStyle, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn } from './helpers/borders.js';
|
|
31
|
+
export { composeBorderCss, getBorderRadiusStyle, getBorderStyle, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn } from './helpers/borders.js';
|
|
30
32
|
export { getCarouselContainerHeight, makeContainerWidthOrHeight, makeDotGapToCarouselStyle } from './helpers/carousel.js';
|
|
31
33
|
export { cls } from './helpers/cls.js';
|
|
32
34
|
export { animations } from './helpers/animations.js';
|
|
@@ -90,6 +92,7 @@ export { default as useIsomorphicLayoutEffect } from './hooks/useIsomorphicLayou
|
|
|
90
92
|
export { default as useLoadScript } from './hooks/useLoadScript.js';
|
|
91
93
|
export { default as useMoney } from './hooks/useMoney.js';
|
|
92
94
|
export { usePrevious } from './hooks/usePrevious.js';
|
|
95
|
+
export { useArticlesQuery, useBlogsQuery } from './hooks/articles/useArticlesQuery.js';
|
|
93
96
|
export { useCheckAvailableVariantInStock, useCurrentVariant, useCurrentVariantInStock, useFeaturedImageGlobal, useIsSyncProduct, useProduct, useProductOfferDiscount, useProductProperties, useQuantity, useSelectedOption, useUniqProductID, useVariant, useVariantOutStock, useVariants } from './hooks/useProduct.js';
|
|
94
97
|
export { useProductList, useProductListProducts, useProductListSettings, useProductListStyles } from './hooks/useProductList.js';
|
|
95
98
|
export { default as useSuspenseFetch } from './hooks/useSuspenseFetch.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -60,16 +60,21 @@ 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
|
+
author?: Maybe$1<Scalars$2['String']>;
|
|
64
65
|
baseID?: Maybe$1<Scalars$2['String']>;
|
|
65
66
|
blogs?: Maybe$1<BlogConnection$1>;
|
|
67
|
+
content?: Maybe$1<ArticleContent>;
|
|
66
68
|
description?: Maybe$1<Scalars$2['String']>;
|
|
67
69
|
descriptionMeta?: Maybe$1<Scalars$2['String']>;
|
|
68
70
|
handle?: Maybe$1<Scalars$2['String']>;
|
|
69
71
|
id: Scalars$2['ID'];
|
|
70
72
|
isSample?: Maybe$1<Scalars$2['Boolean']>;
|
|
73
|
+
media?: Maybe$1<Media$1>;
|
|
71
74
|
metafield?: Maybe$1<Metafield$1>;
|
|
72
75
|
platform?: Maybe$1<ArticlePlatform$1>;
|
|
76
|
+
platformCreatedAt?: Maybe$1<Scalars$2['Time']>;
|
|
77
|
+
platformUpdatedAt?: Maybe$1<Scalars$2['Time']>;
|
|
73
78
|
tags: Array<Scalars$2['String']>;
|
|
74
79
|
templateSuffix?: Maybe$1<Scalars$2['String']>;
|
|
75
80
|
title?: Maybe$1<Scalars$2['String']>;
|
|
@@ -131,15 +136,92 @@ type ArticleConnection$1 = {
|
|
|
131
136
|
pageInfo?: Maybe$1<PageInfo$1>;
|
|
132
137
|
totalCount?: Maybe$1<Scalars$2['Int']>;
|
|
133
138
|
};
|
|
139
|
+
type ArticleContent = {
|
|
140
|
+
createdAt?: Maybe$1<Scalars$2['Time']>;
|
|
141
|
+
excerptHtml?: Maybe$1<Scalars$2['String']>;
|
|
142
|
+
id: Scalars$2['ID'];
|
|
143
|
+
updatedAt?: Maybe$1<Scalars$2['Time']>;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* ArticleContentWhereInput is used for filtering ArticleContent objects.
|
|
147
|
+
* Input was generated by ent.
|
|
148
|
+
*/
|
|
149
|
+
type ArticleContentWhereInput = {
|
|
150
|
+
and?: InputMaybe$1<Array<ArticleContentWhereInput>>;
|
|
151
|
+
/** article_id field predicates */
|
|
152
|
+
articleID?: InputMaybe$1<Scalars$2['ID']>;
|
|
153
|
+
articleIDIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
|
|
154
|
+
articleIDNEQ?: InputMaybe$1<Scalars$2['ID']>;
|
|
155
|
+
articleIDNotIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
|
|
156
|
+
/** created_at field predicates */
|
|
157
|
+
createdAt?: InputMaybe$1<Scalars$2['Time']>;
|
|
158
|
+
createdAtGT?: InputMaybe$1<Scalars$2['Time']>;
|
|
159
|
+
createdAtGTE?: InputMaybe$1<Scalars$2['Time']>;
|
|
160
|
+
createdAtIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
|
|
161
|
+
createdAtLT?: InputMaybe$1<Scalars$2['Time']>;
|
|
162
|
+
createdAtLTE?: InputMaybe$1<Scalars$2['Time']>;
|
|
163
|
+
createdAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
|
|
164
|
+
createdAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
|
|
165
|
+
/** deleted_at field predicates */
|
|
166
|
+
deletedAt?: InputMaybe$1<Scalars$2['Time']>;
|
|
167
|
+
deletedAtGT?: InputMaybe$1<Scalars$2['Time']>;
|
|
168
|
+
deletedAtGTE?: InputMaybe$1<Scalars$2['Time']>;
|
|
169
|
+
deletedAtIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
|
|
170
|
+
deletedAtIsNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
171
|
+
deletedAtLT?: InputMaybe$1<Scalars$2['Time']>;
|
|
172
|
+
deletedAtLTE?: InputMaybe$1<Scalars$2['Time']>;
|
|
173
|
+
deletedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
|
|
174
|
+
deletedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
|
|
175
|
+
deletedAtNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
176
|
+
/** excerpt_html field predicates */
|
|
177
|
+
excerptHTML?: InputMaybe$1<Scalars$2['String']>;
|
|
178
|
+
excerptHTMLContains?: InputMaybe$1<Scalars$2['String']>;
|
|
179
|
+
excerptHTMLContainsFold?: InputMaybe$1<Scalars$2['String']>;
|
|
180
|
+
excerptHTMLEqualFold?: InputMaybe$1<Scalars$2['String']>;
|
|
181
|
+
excerptHTMLGT?: InputMaybe$1<Scalars$2['String']>;
|
|
182
|
+
excerptHTMLGTE?: InputMaybe$1<Scalars$2['String']>;
|
|
183
|
+
excerptHTMLHasPrefix?: InputMaybe$1<Scalars$2['String']>;
|
|
184
|
+
excerptHTMLHasSuffix?: InputMaybe$1<Scalars$2['String']>;
|
|
185
|
+
excerptHTMLIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
186
|
+
excerptHTMLIsNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
187
|
+
excerptHTMLLT?: InputMaybe$1<Scalars$2['String']>;
|
|
188
|
+
excerptHTMLLTE?: InputMaybe$1<Scalars$2['String']>;
|
|
189
|
+
excerptHTMLNEQ?: InputMaybe$1<Scalars$2['String']>;
|
|
190
|
+
excerptHTMLNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
191
|
+
excerptHTMLNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
192
|
+
/** article edge predicates */
|
|
193
|
+
hasArticle?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
194
|
+
hasArticleWith?: InputMaybe$1<Array<ArticleWhereInput$1>>;
|
|
195
|
+
/** id field predicates */
|
|
196
|
+
id?: InputMaybe$1<Scalars$2['ID']>;
|
|
197
|
+
idGT?: InputMaybe$1<Scalars$2['ID']>;
|
|
198
|
+
idGTE?: InputMaybe$1<Scalars$2['ID']>;
|
|
199
|
+
idIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
|
|
200
|
+
idLT?: InputMaybe$1<Scalars$2['ID']>;
|
|
201
|
+
idLTE?: InputMaybe$1<Scalars$2['ID']>;
|
|
202
|
+
idNEQ?: InputMaybe$1<Scalars$2['ID']>;
|
|
203
|
+
idNotIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
|
|
204
|
+
not?: InputMaybe$1<ArticleContentWhereInput>;
|
|
205
|
+
or?: InputMaybe$1<Array<ArticleContentWhereInput>>;
|
|
206
|
+
/** updated_at field predicates */
|
|
207
|
+
updatedAt?: InputMaybe$1<Scalars$2['Time']>;
|
|
208
|
+
updatedAtGT?: InputMaybe$1<Scalars$2['Time']>;
|
|
209
|
+
updatedAtGTE?: InputMaybe$1<Scalars$2['Time']>;
|
|
210
|
+
updatedAtIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
|
|
211
|
+
updatedAtLT?: InputMaybe$1<Scalars$2['Time']>;
|
|
212
|
+
updatedAtLTE?: InputMaybe$1<Scalars$2['Time']>;
|
|
213
|
+
updatedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
|
|
214
|
+
updatedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
|
|
215
|
+
};
|
|
134
216
|
type ArticleEdge$1 = {
|
|
135
217
|
cursor?: Maybe$1<Scalars$2['Cursor']>;
|
|
136
|
-
node?: Maybe$1<Article$
|
|
218
|
+
node?: Maybe$1<Article$2>;
|
|
137
219
|
};
|
|
138
220
|
type ArticleOrder$1 = {
|
|
139
221
|
direction: OrderDirection$1;
|
|
140
222
|
field?: InputMaybe$1<ArticleOrderField$1>;
|
|
141
223
|
};
|
|
142
|
-
type ArticleOrderField$1 = 'CREATED_AT' | 'TITLE' | 'UPDATED_AT';
|
|
224
|
+
type ArticleOrderField$1 = 'CREATED_AT' | 'PLATFORM_CREATED_AT' | 'PLATFORM_UPDATED_AT' | 'TITLE' | 'UPDATED_AT';
|
|
143
225
|
type ArticlePlatform$1 = 'BIG' | 'SHOPIFY' | 'WOO';
|
|
144
226
|
/**
|
|
145
227
|
* ArticleTagWhereInput is used for filtering ArticleTag objects.
|
|
@@ -181,6 +263,22 @@ type ArticleTagWhereInput$1 = {
|
|
|
181
263
|
*/
|
|
182
264
|
type ArticleWhereInput$1 = {
|
|
183
265
|
and?: InputMaybe$1<Array<ArticleWhereInput$1>>;
|
|
266
|
+
/** author field predicates */
|
|
267
|
+
author?: InputMaybe$1<Scalars$2['String']>;
|
|
268
|
+
authorContains?: InputMaybe$1<Scalars$2['String']>;
|
|
269
|
+
authorContainsFold?: InputMaybe$1<Scalars$2['String']>;
|
|
270
|
+
authorEqualFold?: InputMaybe$1<Scalars$2['String']>;
|
|
271
|
+
authorGT?: InputMaybe$1<Scalars$2['String']>;
|
|
272
|
+
authorGTE?: InputMaybe$1<Scalars$2['String']>;
|
|
273
|
+
authorHasPrefix?: InputMaybe$1<Scalars$2['String']>;
|
|
274
|
+
authorHasSuffix?: InputMaybe$1<Scalars$2['String']>;
|
|
275
|
+
authorIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
276
|
+
authorIsNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
277
|
+
authorLT?: InputMaybe$1<Scalars$2['String']>;
|
|
278
|
+
authorLTE?: InputMaybe$1<Scalars$2['String']>;
|
|
279
|
+
authorNEQ?: InputMaybe$1<Scalars$2['String']>;
|
|
280
|
+
authorNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
281
|
+
authorNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
184
282
|
/** base_id field predicates */
|
|
185
283
|
baseID?: InputMaybe$1<Scalars$2['String']>;
|
|
186
284
|
baseIDContains?: InputMaybe$1<Scalars$2['String']>;
|
|
@@ -251,6 +349,12 @@ type ArticleWhereInput$1 = {
|
|
|
251
349
|
/** article_tags edge predicates */
|
|
252
350
|
hasArticleTags?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
253
351
|
hasArticleTagsWith?: InputMaybe$1<Array<ArticleTagWhereInput$1>>;
|
|
352
|
+
/** content edge predicates */
|
|
353
|
+
hasContent?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
354
|
+
hasContentWith?: InputMaybe$1<Array<ArticleContentWhereInput>>;
|
|
355
|
+
/** media edge predicates */
|
|
356
|
+
hasMedia?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
357
|
+
hasMediaWith?: InputMaybe$1<Array<MediaWhereInput$1>>;
|
|
254
358
|
/** id field predicates */
|
|
255
359
|
id?: InputMaybe$1<Scalars$2['ID']>;
|
|
256
360
|
idGT?: InputMaybe$1<Scalars$2['ID']>;
|
|
@@ -260,6 +364,13 @@ type ArticleWhereInput$1 = {
|
|
|
260
364
|
idLTE?: InputMaybe$1<Scalars$2['ID']>;
|
|
261
365
|
idNEQ?: InputMaybe$1<Scalars$2['ID']>;
|
|
262
366
|
idNotIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
|
|
367
|
+
/** image_id field predicates */
|
|
368
|
+
imageID?: InputMaybe$1<Scalars$2['ID']>;
|
|
369
|
+
imageIDIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
|
|
370
|
+
imageIDIsNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
371
|
+
imageIDNEQ?: InputMaybe$1<Scalars$2['ID']>;
|
|
372
|
+
imageIDNotIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
|
|
373
|
+
imageIDNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
263
374
|
/** is_sample field predicates */
|
|
264
375
|
isSample?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
265
376
|
isSampleNEQ?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
@@ -366,6 +477,8 @@ type Blog$1 = {
|
|
|
366
477
|
isSample?: Maybe$1<Scalars$2['Boolean']>;
|
|
367
478
|
metafield?: Maybe$1<Metafield$1>;
|
|
368
479
|
platform?: Maybe$1<BlogPlatform$1>;
|
|
480
|
+
platformCreatedAt?: Maybe$1<Scalars$2['Time']>;
|
|
481
|
+
platformUpdatedAt?: Maybe$1<Scalars$2['Time']>;
|
|
369
482
|
tags: Array<Scalars$2['String']>;
|
|
370
483
|
templateSuffix?: Maybe$1<Scalars$2['String']>;
|
|
371
484
|
title?: Maybe$1<Scalars$2['String']>;
|
|
@@ -396,7 +509,7 @@ type BlogOrder$1 = {
|
|
|
396
509
|
direction: OrderDirection$1;
|
|
397
510
|
field?: InputMaybe$1<BlogOrderField$1>;
|
|
398
511
|
};
|
|
399
|
-
type BlogOrderField$1 = 'CREATED_AT' | 'TITLE' | 'UPDATED_AT';
|
|
512
|
+
type BlogOrderField$1 = 'CREATED_AT' | 'PLATFORM_CREATED_AT' | 'PLATFORM_UPDATED_AT' | 'TITLE' | 'UPDATED_AT';
|
|
400
513
|
type BlogPlatform$1 = 'BIG' | 'SHOPIFY' | 'WOO';
|
|
401
514
|
/**
|
|
402
515
|
* BlogWhereInput is used for filtering Blog objects.
|
|
@@ -2376,6 +2489,9 @@ type MediaWhereInput$1 = {
|
|
|
2376
2489
|
embeddedURLNEQ?: InputMaybe$1<Scalars$2['String']>;
|
|
2377
2490
|
embeddedURLNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
2378
2491
|
embeddedURLNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
2492
|
+
/** article edge predicates */
|
|
2493
|
+
hasArticle?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
2494
|
+
hasArticleWith?: InputMaybe$1<Array<ArticleWhereInput$1>>;
|
|
2379
2495
|
/** product edge predicates */
|
|
2380
2496
|
hasProduct?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
2381
2497
|
hasProductWith?: InputMaybe$1<Array<ProductWhereInput$1>>;
|
|
@@ -2521,20 +2637,37 @@ type MediaWhereInput$1 = {
|
|
|
2521
2637
|
widthNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
2522
2638
|
};
|
|
2523
2639
|
type Metafield$1 = {
|
|
2640
|
+
baseID: Scalars$2['String'];
|
|
2524
2641
|
description?: Maybe$1<Scalars$2['String']>;
|
|
2525
2642
|
id: Scalars$2['ID'];
|
|
2526
2643
|
key: Scalars$2['String'];
|
|
2527
2644
|
namespace: Scalars$2['String'];
|
|
2528
|
-
|
|
2529
|
-
objectType:
|
|
2530
|
-
|
|
2645
|
+
objectID: Scalars$2['ID'];
|
|
2646
|
+
objectType: MetafieldObjectType;
|
|
2647
|
+
shopID: Scalars$2['ID'];
|
|
2648
|
+
value: Scalars$2['String'];
|
|
2531
2649
|
};
|
|
2650
|
+
type MetafieldObjectType = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'DISCOUNT' | 'PAGE' | 'PRODUCT' | 'PRODUCT_VARIANT' | 'SHOP';
|
|
2532
2651
|
/**
|
|
2533
2652
|
* MetafieldWhereInput is used for filtering Metafield objects.
|
|
2534
2653
|
* Input was generated by ent.
|
|
2535
2654
|
*/
|
|
2536
2655
|
type MetafieldWhereInput$1 = {
|
|
2537
2656
|
and?: InputMaybe$1<Array<MetafieldWhereInput$1>>;
|
|
2657
|
+
/** base_id field predicates */
|
|
2658
|
+
baseID?: InputMaybe$1<Scalars$2['String']>;
|
|
2659
|
+
baseIDContains?: InputMaybe$1<Scalars$2['String']>;
|
|
2660
|
+
baseIDContainsFold?: InputMaybe$1<Scalars$2['String']>;
|
|
2661
|
+
baseIDEqualFold?: InputMaybe$1<Scalars$2['String']>;
|
|
2662
|
+
baseIDGT?: InputMaybe$1<Scalars$2['String']>;
|
|
2663
|
+
baseIDGTE?: InputMaybe$1<Scalars$2['String']>;
|
|
2664
|
+
baseIDHasPrefix?: InputMaybe$1<Scalars$2['String']>;
|
|
2665
|
+
baseIDHasSuffix?: InputMaybe$1<Scalars$2['String']>;
|
|
2666
|
+
baseIDIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
2667
|
+
baseIDLT?: InputMaybe$1<Scalars$2['String']>;
|
|
2668
|
+
baseIDLTE?: InputMaybe$1<Scalars$2['String']>;
|
|
2669
|
+
baseIDNEQ?: InputMaybe$1<Scalars$2['String']>;
|
|
2670
|
+
baseIDNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
2538
2671
|
/** created_at field predicates */
|
|
2539
2672
|
createdAt?: InputMaybe$1<Scalars$2['Time']>;
|
|
2540
2673
|
createdAtGT?: InputMaybe$1<Scalars$2['Time']>;
|
|
@@ -2555,6 +2688,22 @@ type MetafieldWhereInput$1 = {
|
|
|
2555
2688
|
deletedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
|
|
2556
2689
|
deletedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
|
|
2557
2690
|
deletedAtNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
2691
|
+
/** description field predicates */
|
|
2692
|
+
description?: InputMaybe$1<Scalars$2['String']>;
|
|
2693
|
+
descriptionContains?: InputMaybe$1<Scalars$2['String']>;
|
|
2694
|
+
descriptionContainsFold?: InputMaybe$1<Scalars$2['String']>;
|
|
2695
|
+
descriptionEqualFold?: InputMaybe$1<Scalars$2['String']>;
|
|
2696
|
+
descriptionGT?: InputMaybe$1<Scalars$2['String']>;
|
|
2697
|
+
descriptionGTE?: InputMaybe$1<Scalars$2['String']>;
|
|
2698
|
+
descriptionHasPrefix?: InputMaybe$1<Scalars$2['String']>;
|
|
2699
|
+
descriptionHasSuffix?: InputMaybe$1<Scalars$2['String']>;
|
|
2700
|
+
descriptionIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
2701
|
+
descriptionIsNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
2702
|
+
descriptionLT?: InputMaybe$1<Scalars$2['String']>;
|
|
2703
|
+
descriptionLTE?: InputMaybe$1<Scalars$2['String']>;
|
|
2704
|
+
descriptionNEQ?: InputMaybe$1<Scalars$2['String']>;
|
|
2705
|
+
descriptionNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
2706
|
+
descriptionNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
2558
2707
|
/** id field predicates */
|
|
2559
2708
|
id?: InputMaybe$1<Scalars$2['ID']>;
|
|
2560
2709
|
idGT?: InputMaybe$1<Scalars$2['ID']>;
|
|
@@ -2564,7 +2713,49 @@ type MetafieldWhereInput$1 = {
|
|
|
2564
2713
|
idLTE?: InputMaybe$1<Scalars$2['ID']>;
|
|
2565
2714
|
idNEQ?: InputMaybe$1<Scalars$2['ID']>;
|
|
2566
2715
|
idNotIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
|
|
2716
|
+
/** key field predicates */
|
|
2717
|
+
key?: InputMaybe$1<Scalars$2['String']>;
|
|
2718
|
+
keyContains?: InputMaybe$1<Scalars$2['String']>;
|
|
2719
|
+
keyContainsFold?: InputMaybe$1<Scalars$2['String']>;
|
|
2720
|
+
keyEqualFold?: InputMaybe$1<Scalars$2['String']>;
|
|
2721
|
+
keyGT?: InputMaybe$1<Scalars$2['String']>;
|
|
2722
|
+
keyGTE?: InputMaybe$1<Scalars$2['String']>;
|
|
2723
|
+
keyHasPrefix?: InputMaybe$1<Scalars$2['String']>;
|
|
2724
|
+
keyHasSuffix?: InputMaybe$1<Scalars$2['String']>;
|
|
2725
|
+
keyIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
2726
|
+
keyLT?: InputMaybe$1<Scalars$2['String']>;
|
|
2727
|
+
keyLTE?: InputMaybe$1<Scalars$2['String']>;
|
|
2728
|
+
keyNEQ?: InputMaybe$1<Scalars$2['String']>;
|
|
2729
|
+
keyNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
2730
|
+
/** namespace field predicates */
|
|
2731
|
+
namespace?: InputMaybe$1<Scalars$2['String']>;
|
|
2732
|
+
namespaceContains?: InputMaybe$1<Scalars$2['String']>;
|
|
2733
|
+
namespaceContainsFold?: InputMaybe$1<Scalars$2['String']>;
|
|
2734
|
+
namespaceEqualFold?: InputMaybe$1<Scalars$2['String']>;
|
|
2735
|
+
namespaceGT?: InputMaybe$1<Scalars$2['String']>;
|
|
2736
|
+
namespaceGTE?: InputMaybe$1<Scalars$2['String']>;
|
|
2737
|
+
namespaceHasPrefix?: InputMaybe$1<Scalars$2['String']>;
|
|
2738
|
+
namespaceHasSuffix?: InputMaybe$1<Scalars$2['String']>;
|
|
2739
|
+
namespaceIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
2740
|
+
namespaceLT?: InputMaybe$1<Scalars$2['String']>;
|
|
2741
|
+
namespaceLTE?: InputMaybe$1<Scalars$2['String']>;
|
|
2742
|
+
namespaceNEQ?: InputMaybe$1<Scalars$2['String']>;
|
|
2743
|
+
namespaceNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
2567
2744
|
not?: InputMaybe$1<MetafieldWhereInput$1>;
|
|
2745
|
+
/** object_id field predicates */
|
|
2746
|
+
objectID?: InputMaybe$1<Scalars$2['ID']>;
|
|
2747
|
+
objectIDGT?: InputMaybe$1<Scalars$2['ID']>;
|
|
2748
|
+
objectIDGTE?: InputMaybe$1<Scalars$2['ID']>;
|
|
2749
|
+
objectIDIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
|
|
2750
|
+
objectIDLT?: InputMaybe$1<Scalars$2['ID']>;
|
|
2751
|
+
objectIDLTE?: InputMaybe$1<Scalars$2['ID']>;
|
|
2752
|
+
objectIDNEQ?: InputMaybe$1<Scalars$2['ID']>;
|
|
2753
|
+
objectIDNotIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
|
|
2754
|
+
/** object_type field predicates */
|
|
2755
|
+
objectType?: InputMaybe$1<MetafieldObjectType>;
|
|
2756
|
+
objectTypeIn?: InputMaybe$1<Array<MetafieldObjectType>>;
|
|
2757
|
+
objectTypeNEQ?: InputMaybe$1<MetafieldObjectType>;
|
|
2758
|
+
objectTypeNotIn?: InputMaybe$1<Array<MetafieldObjectType>>;
|
|
2568
2759
|
or?: InputMaybe$1<Array<MetafieldWhereInput$1>>;
|
|
2569
2760
|
/** updated_at field predicates */
|
|
2570
2761
|
updatedAt?: InputMaybe$1<Scalars$2['Time']>;
|
|
@@ -2575,6 +2766,20 @@ type MetafieldWhereInput$1 = {
|
|
|
2575
2766
|
updatedAtLTE?: InputMaybe$1<Scalars$2['Time']>;
|
|
2576
2767
|
updatedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
|
|
2577
2768
|
updatedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
|
|
2769
|
+
/** value field predicates */
|
|
2770
|
+
value?: InputMaybe$1<Scalars$2['String']>;
|
|
2771
|
+
valueContains?: InputMaybe$1<Scalars$2['String']>;
|
|
2772
|
+
valueContainsFold?: InputMaybe$1<Scalars$2['String']>;
|
|
2773
|
+
valueEqualFold?: InputMaybe$1<Scalars$2['String']>;
|
|
2774
|
+
valueGT?: InputMaybe$1<Scalars$2['String']>;
|
|
2775
|
+
valueGTE?: InputMaybe$1<Scalars$2['String']>;
|
|
2776
|
+
valueHasPrefix?: InputMaybe$1<Scalars$2['String']>;
|
|
2777
|
+
valueHasSuffix?: InputMaybe$1<Scalars$2['String']>;
|
|
2778
|
+
valueIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
2779
|
+
valueLT?: InputMaybe$1<Scalars$2['String']>;
|
|
2780
|
+
valueLTE?: InputMaybe$1<Scalars$2['String']>;
|
|
2781
|
+
valueNEQ?: InputMaybe$1<Scalars$2['String']>;
|
|
2782
|
+
valueNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
2578
2783
|
};
|
|
2579
2784
|
type Mutation$1 = {
|
|
2580
2785
|
cartCreate?: Maybe$1<CartPayload$1>;
|
|
@@ -2616,9 +2821,7 @@ type MutationCartNoteUpdateArgs$1 = {
|
|
|
2616
2821
|
};
|
|
2617
2822
|
type MutationPageViewUpArgs$1 = {
|
|
2618
2823
|
pageHandle: Scalars$2['String'];
|
|
2619
|
-
userAgent?: InputMaybe$1<Scalars$2['String']>;
|
|
2620
2824
|
};
|
|
2621
|
-
type ObjectType$1 = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'PAGE' | 'PRODUCT' | 'PRODUCT_VARIANT' | 'SHOP';
|
|
2622
2825
|
type OrderDirection$1 = 'ASC' | 'DESC';
|
|
2623
2826
|
type Page$1 = {
|
|
2624
2827
|
baseId?: Maybe$1<Scalars$2['String']>;
|
|
@@ -5724,7 +5927,7 @@ type PublishedThemeStyleWhereInput$1 = {
|
|
|
5724
5927
|
type Query$1 = {
|
|
5725
5928
|
_entities: Array<Maybe$1<_Entity>>;
|
|
5726
5929
|
_service: _Service;
|
|
5727
|
-
article?: Maybe$1<Article$
|
|
5930
|
+
article?: Maybe$1<Article$2>;
|
|
5728
5931
|
articles?: Maybe$1<ArticleConnection$1>;
|
|
5729
5932
|
blog?: Maybe$1<Blog$1>;
|
|
5730
5933
|
blogs?: Maybe$1<BlogConnection$1>;
|
|
@@ -6220,6 +6423,8 @@ type _Service = {
|
|
|
6220
6423
|
sdl?: Maybe$1<Scalars$2['String']>;
|
|
6221
6424
|
};
|
|
6222
6425
|
|
|
6426
|
+
type shop_ArticleContent = ArticleContent;
|
|
6427
|
+
type shop_ArticleContentWhereInput = ArticleContentWhereInput;
|
|
6223
6428
|
type shop_Entity = Entity;
|
|
6224
6429
|
type shop_EntityFindProductByIdArgs = EntityFindProductByIdArgs;
|
|
6225
6430
|
type shop_EntityFindPublishedCustomSectionByIdArgs = EntityFindPublishedCustomSectionByIdArgs;
|
|
@@ -6233,16 +6438,19 @@ type shop_EntityFindPublishedThemePageMetaByIdArgs = EntityFindPublishedThemePag
|
|
|
6233
6438
|
type shop_EntityFindPublishedThemePageOnlineStoreDataByIdArgs = EntityFindPublishedThemePageOnlineStoreDataByIdArgs;
|
|
6234
6439
|
type shop_EntityFindPublishedThemeSectionByIdArgs = EntityFindPublishedThemeSectionByIdArgs;
|
|
6235
6440
|
type shop_EntityFindPublishedThemeStyleByIdArgs = EntityFindPublishedThemeStyleByIdArgs;
|
|
6441
|
+
type shop_MetafieldObjectType = MetafieldObjectType;
|
|
6236
6442
|
type shop_Query_EntitiesArgs = Query_EntitiesArgs;
|
|
6237
6443
|
type shop__Entity = _Entity;
|
|
6238
6444
|
type shop__Service = _Service;
|
|
6239
6445
|
declare namespace shop {
|
|
6240
6446
|
export {
|
|
6241
6447
|
Analytic$1 as Analytic,
|
|
6242
|
-
Article$
|
|
6448
|
+
Article$2 as Article,
|
|
6243
6449
|
ArticleBlogWhereInput$1 as ArticleBlogWhereInput,
|
|
6244
6450
|
ArticleBlogsArgs$1 as ArticleBlogsArgs,
|
|
6245
6451
|
ArticleConnection$1 as ArticleConnection,
|
|
6452
|
+
shop_ArticleContent as ArticleContent,
|
|
6453
|
+
shop_ArticleContentWhereInput as ArticleContentWhereInput,
|
|
6246
6454
|
ArticleEdge$1 as ArticleEdge,
|
|
6247
6455
|
ArticleMetafieldArgs$1 as ArticleMetafieldArgs,
|
|
6248
6456
|
ArticleOrder$1 as ArticleOrder,
|
|
@@ -6324,6 +6532,7 @@ declare namespace shop {
|
|
|
6324
6532
|
MediaOrderField$1 as MediaOrderField,
|
|
6325
6533
|
MediaWhereInput$1 as MediaWhereInput,
|
|
6326
6534
|
Metafield$1 as Metafield,
|
|
6535
|
+
shop_MetafieldObjectType as MetafieldObjectType,
|
|
6327
6536
|
MetafieldWhereInput$1 as MetafieldWhereInput,
|
|
6328
6537
|
Mutation$1 as Mutation,
|
|
6329
6538
|
MutationCartCreateArgs$1 as MutationCartCreateArgs,
|
|
@@ -6333,7 +6542,6 @@ declare namespace shop {
|
|
|
6333
6542
|
MutationCartLinesUpdateArgs$1 as MutationCartLinesUpdateArgs,
|
|
6334
6543
|
MutationCartNoteUpdateArgs$1 as MutationCartNoteUpdateArgs,
|
|
6335
6544
|
MutationPageViewUpArgs$1 as MutationPageViewUpArgs,
|
|
6336
|
-
ObjectType$1 as ObjectType,
|
|
6337
6545
|
OrderDirection$1 as OrderDirection,
|
|
6338
6546
|
Page$1 as Page,
|
|
6339
6547
|
PageConnection$1 as PageConnection,
|
|
@@ -6923,6 +7131,7 @@ type InputControlType<T> = SharedControlType<T> & {
|
|
|
6923
7131
|
value: any;
|
|
6924
7132
|
}[];
|
|
6925
7133
|
readonly?: boolean;
|
|
7134
|
+
suffix?: string;
|
|
6926
7135
|
action?: {
|
|
6927
7136
|
clear?: boolean;
|
|
6928
7137
|
};
|
|
@@ -7430,6 +7639,11 @@ type ProductListControlType<T> = SharedControlType<T> & {
|
|
|
7430
7639
|
isMultiple?: boolean;
|
|
7431
7640
|
};
|
|
7432
7641
|
|
|
7642
|
+
type ArticleListControlType<T> = SharedControlType<T> & {
|
|
7643
|
+
type: 'article-list';
|
|
7644
|
+
isMultiple?: boolean;
|
|
7645
|
+
};
|
|
7646
|
+
|
|
7433
7647
|
type SizeUnit$1 = '%' | 'cm' | 'mm' | 'Q' | 'in' | 'pc' | 'pt' | 'px' | 'em' | 'cap' | 'ex' | 'ch' | 'ic' | 'rem' | 'lh' | 'rlh' | 'vw' | 'vh' | 'vi' | 'vb' | 'vmin' | 'vmax';
|
|
7434
7648
|
type InputUnitSpacingControlType<T> = SharedControlType<T> & {
|
|
7435
7649
|
type: 'input:unit-spacing';
|
|
@@ -7744,7 +7958,7 @@ type ButtonLayoutType<T> = SharedControlType<T> & {
|
|
|
7744
7958
|
}[];
|
|
7745
7959
|
};
|
|
7746
7960
|
|
|
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> | 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> | ButtonLayoutType<T>;
|
|
7961
|
+
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> | ButtonLayoutType<T>;
|
|
7748
7962
|
type ControlTriggerAction = {
|
|
7749
7963
|
controlId: string;
|
|
7750
7964
|
newValue?: any;
|
|
@@ -7978,7 +8192,7 @@ type AnalyticsQueryParameter = {
|
|
|
7978
8192
|
startDate?: InputMaybe<Scalars['Time']>;
|
|
7979
8193
|
};
|
|
7980
8194
|
type AppType = 'CUSTOM' | 'GEMPAGES' | 'GEMPAGESV5' | 'GEMPAGESV7' | 'GEMX';
|
|
7981
|
-
type Article = {
|
|
8195
|
+
type Article$1 = {
|
|
7982
8196
|
baseID?: Maybe<Scalars['String']>;
|
|
7983
8197
|
blogs?: Maybe<BlogConnection>;
|
|
7984
8198
|
description?: Maybe<Scalars['String']>;
|
|
@@ -8051,7 +8265,7 @@ type ArticleConnection = {
|
|
|
8051
8265
|
};
|
|
8052
8266
|
type ArticleEdge = {
|
|
8053
8267
|
cursor?: Maybe<Scalars['Cursor']>;
|
|
8054
|
-
node?: Maybe<Article>;
|
|
8268
|
+
node?: Maybe<Article$1>;
|
|
8055
8269
|
};
|
|
8056
8270
|
type ArticleOrder = {
|
|
8057
8271
|
direction: OrderDirection;
|
|
@@ -18861,7 +19075,7 @@ type PutCustomComponentFileInput = {
|
|
|
18861
19075
|
name: Scalars['String'];
|
|
18862
19076
|
};
|
|
18863
19077
|
type Query = {
|
|
18864
|
-
article?: Maybe<Article>;
|
|
19078
|
+
article?: Maybe<Article$1>;
|
|
18865
19079
|
articles?: Maybe<ArticleConnection>;
|
|
18866
19080
|
backgroundTasks?: Maybe<BackgroundTaskConnection>;
|
|
18867
19081
|
blog?: Maybe<Blog>;
|
|
@@ -25042,7 +25256,6 @@ type appAPI_AddEmployeeInput = AddEmployeeInput;
|
|
|
25042
25256
|
type appAPI_Analytic = Analytic;
|
|
25043
25257
|
type appAPI_AnalyticsQueryParameter = AnalyticsQueryParameter;
|
|
25044
25258
|
type appAPI_AppType = AppType;
|
|
25045
|
-
type appAPI_Article = Article;
|
|
25046
25259
|
type appAPI_ArticleBlogWhereInput = ArticleBlogWhereInput;
|
|
25047
25260
|
type appAPI_ArticleBlogsArgs = ArticleBlogsArgs;
|
|
25048
25261
|
type appAPI_ArticleConnection = ArticleConnection;
|
|
@@ -26035,7 +26248,7 @@ declare namespace appAPI {
|
|
|
26035
26248
|
appAPI_Analytic as Analytic,
|
|
26036
26249
|
appAPI_AnalyticsQueryParameter as AnalyticsQueryParameter,
|
|
26037
26250
|
appAPI_AppType as AppType,
|
|
26038
|
-
|
|
26251
|
+
Article$1 as Article,
|
|
26039
26252
|
appAPI_ArticleBlogWhereInput as ArticleBlogWhereInput,
|
|
26040
26253
|
appAPI_ArticleBlogsArgs as ArticleBlogsArgs,
|
|
26041
26254
|
appAPI_ArticleConnection as ArticleConnection,
|
|
@@ -27650,6 +27863,38 @@ type ModalProviderProps = Pick<ModalContextProps, 'activeId'> & {
|
|
|
27650
27863
|
declare const ModalProvider: React.FC<ModalProviderProps>;
|
|
27651
27864
|
declare const useModalStore: <U>(selector: (state: ExtractState<StoreApi<ModalContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
27652
27865
|
|
|
27866
|
+
type ArticleListContextProps = {
|
|
27867
|
+
articles?: any[];
|
|
27868
|
+
settings?: {
|
|
27869
|
+
slidesToShow?: ObjectDevices<number | 'auto'>;
|
|
27870
|
+
};
|
|
27871
|
+
styles?: {
|
|
27872
|
+
horizontalGutter?: ObjectDevices<string>;
|
|
27873
|
+
verticalGutter?: ObjectDevices<string>;
|
|
27874
|
+
fullWidth?: ObjectDevices<boolean>;
|
|
27875
|
+
spacing?: ObjectDevices<number>;
|
|
27876
|
+
width?: ObjectDevices<string>;
|
|
27877
|
+
height?: ObjectDevices<string>;
|
|
27878
|
+
};
|
|
27879
|
+
};
|
|
27880
|
+
type ArticleListProviderProps = ArticleListContextProps & {
|
|
27881
|
+
children: React.ReactNode;
|
|
27882
|
+
};
|
|
27883
|
+
declare const ArticleListProvider: React.FC<ArticleListProviderProps>;
|
|
27884
|
+
declare const useArticleListStore: <U>(selector: (state: ExtractState<StoreApi<ArticleListContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
27885
|
+
|
|
27886
|
+
type Article = any;
|
|
27887
|
+
type ArticleContextProps = {
|
|
27888
|
+
article: Article;
|
|
27889
|
+
uniqueId: string;
|
|
27890
|
+
};
|
|
27891
|
+
type ArticleProviderProps = Pick<ArticleContextProps, 'article'> & {
|
|
27892
|
+
readOnly?: boolean;
|
|
27893
|
+
children: React.ReactNode;
|
|
27894
|
+
};
|
|
27895
|
+
declare const ArticleProvider: React.FC<ArticleProviderProps>;
|
|
27896
|
+
declare const useArticleStore: <U>(selector: (state: ExtractState<StoreApi<ArticleContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
27897
|
+
|
|
27653
27898
|
type PageViewUpMutationVariables = Exact$1<{
|
|
27654
27899
|
pageHandle: Scalars$2['String'];
|
|
27655
27900
|
userAgent: Scalars$2['String'];
|
|
@@ -27942,6 +28187,7 @@ type BorderStyle = StateProp<Border> | ResponsiveStateProp<Border>;
|
|
|
27942
28187
|
declare const getBorderStyle: (value?: Border) => {
|
|
27943
28188
|
[k: string]: Record<"--b" | "--bc" | "--bw", string | undefined>;
|
|
27944
28189
|
};
|
|
28190
|
+
declare const getBorderRadiusStyle: (borderRadius?: CornerRadius, shapeRadius?: CornerRadius) => {};
|
|
27945
28191
|
declare const handleConvertBorderStyle: (value?: BorderStyle, type?: 'button') => {} | undefined;
|
|
27946
28192
|
declare const handleConvertBorderWidth: (value?: BorderStyle, type?: 'button') => {} | undefined;
|
|
27947
28193
|
declare const handleConvertBorderColor: (value?: BorderStyle) => React.CSSProperties | undefined;
|
|
@@ -35948,6 +36194,60 @@ declare const useMoney: (amount: number) => UseMoneyValue;
|
|
|
35948
36194
|
|
|
35949
36195
|
declare const usePrevious: <T>(value: T) => T | undefined;
|
|
35950
36196
|
|
|
36197
|
+
type ArticlesQueryVariables = Exact$1<{
|
|
36198
|
+
after?: InputMaybe$1<Scalars$2['Cursor']>;
|
|
36199
|
+
before?: InputMaybe$1<Scalars$2['Cursor']>;
|
|
36200
|
+
first?: InputMaybe$1<Scalars$2['Int']>;
|
|
36201
|
+
last?: InputMaybe$1<Scalars$2['Int']>;
|
|
36202
|
+
orderBy?: InputMaybe$1<ArticleOrder$1>;
|
|
36203
|
+
where?: InputMaybe$1<ArticleWhereInput$1>;
|
|
36204
|
+
}>;
|
|
36205
|
+
type ArticlesQueryResponse = {
|
|
36206
|
+
articles?: Maybe$1<(Pick<ArticleConnection$1, 'totalCount'> & {
|
|
36207
|
+
edges: Array<(Pick<ArticleEdge$1, 'cursor'> & {
|
|
36208
|
+
node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'tags' | 'isSample' | 'platformCreatedAt' | 'author'> & {
|
|
36209
|
+
content?: Maybe$1<Pick<ArticleContent, 'excerptHtml'>>;
|
|
36210
|
+
blogs?: Maybe$1<{
|
|
36211
|
+
edges: Array<{
|
|
36212
|
+
node?: Maybe$1<Pick<Blog$1, 'title' | 'handle'>>;
|
|
36213
|
+
}>;
|
|
36214
|
+
}>;
|
|
36215
|
+
media?: Maybe$1<Pick<Media$1, 'alt' | 'width' | 'src' | 'height'>>;
|
|
36216
|
+
})>;
|
|
36217
|
+
})>;
|
|
36218
|
+
pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor'>>;
|
|
36219
|
+
})>;
|
|
36220
|
+
};
|
|
36221
|
+
|
|
36222
|
+
type BlogsQueryVariables = Exact$1<{
|
|
36223
|
+
after?: InputMaybe$1<Scalars$2['Cursor']>;
|
|
36224
|
+
before?: InputMaybe$1<Scalars$2['Cursor']>;
|
|
36225
|
+
first?: InputMaybe$1<Scalars$2['Int']>;
|
|
36226
|
+
last?: InputMaybe$1<Scalars$2['Int']>;
|
|
36227
|
+
orderBy?: InputMaybe$1<BlogOrder$1>;
|
|
36228
|
+
where?: InputMaybe$1<BlogWhereInput$1>;
|
|
36229
|
+
articlesOrderBy?: InputMaybe$1<ArticleOrder$1>;
|
|
36230
|
+
}>;
|
|
36231
|
+
type BlogsQueryResponse = {
|
|
36232
|
+
blogs?: Maybe$1<(Pick<BlogConnection$1, 'totalCount'> & {
|
|
36233
|
+
edges: Array<(Pick<BlogEdge$1, 'cursor'> & {
|
|
36234
|
+
node?: Maybe$1<(Pick<Blog$1, 'baseID' | 'description' | 'descriptionMeta' | 'handle' | 'id' | 'platform' | 'tags' | 'templateSuffix' | 'title' | 'titleMeta'> & {
|
|
36235
|
+
articles?: Maybe$1<(Pick<ArticleConnection$1, 'totalCount'> & {
|
|
36236
|
+
edges: Array<(Pick<ArticleEdge$1, 'cursor'> & {
|
|
36237
|
+
node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'tags' | 'isSample' | 'platformCreatedAt' | 'author'> & {
|
|
36238
|
+
media?: Maybe$1<Pick<Media$1, 'width' | 'src' | 'height'>>;
|
|
36239
|
+
})>;
|
|
36240
|
+
})>;
|
|
36241
|
+
})>;
|
|
36242
|
+
})>;
|
|
36243
|
+
})>;
|
|
36244
|
+
pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor'>>;
|
|
36245
|
+
})>;
|
|
36246
|
+
};
|
|
36247
|
+
|
|
36248
|
+
declare const useArticlesQuery: (variables: ArticlesQueryVariables | null, options?: SWRConfiguration<ArticlesQueryResponse>) => swr__internal.SWRResponse<ArticlesQueryResponse, any, Partial<swr__internal.PublicConfiguration<ArticlesQueryResponse, any, (arg: ["query/articles", any]) => swr__internal.FetcherResponse<ArticlesQueryResponse>>> | undefined>;
|
|
36249
|
+
declare const useBlogsQuery: (variables: BlogsQueryVariables | null, options?: SWRConfiguration<BlogsQueryResponse>) => swr__internal.SWRResponse<BlogsQueryResponse, any, Partial<swr__internal.PublicConfiguration<BlogsQueryResponse, any, (arg: ["query/blogs", any]) => swr__internal.FetcherResponse<BlogsQueryResponse>>> | undefined>;
|
|
36250
|
+
|
|
35951
36251
|
declare const useUniqProductID: () => string;
|
|
35952
36252
|
declare const useProduct: () => ProductSelectFragment | undefined;
|
|
35953
36253
|
declare const useFeaturedImageGlobal: () => MediaSelectFragment | undefined;
|
|
@@ -36030,4 +36330,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage$1, 'id' | 'name'
|
|
|
36030
36330
|
|
|
36031
36331
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
36032
36332
|
|
|
36033
|
-
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, OnlyOne, 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, composeFontFamilyTypographyV2, 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, getStyleBgColor, 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 };
|
|
36333
|
+
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, OnlyOne, 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, composeFontFamilyTypographyV2, 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, getBorderRadiusStyle, 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, getStyleBgColor, 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.44.
|
|
3
|
+
"version": "1.44.2-staging.87",
|
|
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.44.
|
|
30
|
+
"@gem-sdk/adapter-shopify": "1.44.2-staging.87",
|
|
31
|
+
"@gem-sdk/styles": "1.44.2-staging.87",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|