@gem-sdk/core 1.44.0-staging.82 → 1.44.1
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/helpers/borders.js +0 -15
- package/dist/cjs/index.js +0 -10
- package/dist/esm/helpers/borders.js +1 -15
- package/dist/esm/index.js +1 -4
- package/dist/types/index.d.ts +19 -319
- package/package.json +3 -3
- package/dist/cjs/contexts/ArticleContext.js +0 -39
- package/dist/cjs/contexts/ArticleListContext.js +0 -31
- package/dist/cjs/graphql/queries/articles.generated.js +0 -59
- package/dist/cjs/graphql/queries/blogs.generated.js +0 -64
- package/dist/cjs/hooks/articles/useArticlesQuery.js +0 -32
- package/dist/esm/contexts/ArticleContext.js +0 -36
- package/dist/esm/contexts/ArticleListContext.js +0 -27
- package/dist/esm/graphql/queries/articles.generated.js +0 -57
- package/dist/esm/graphql/queries/blogs.generated.js +0 -62
- package/dist/esm/hooks/articles/useArticlesQuery.js +0 -29
|
@@ -10,20 +10,6 @@ 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
|
-
};
|
|
27
13
|
const handleConvertBorderStyle = (value, type)=>{
|
|
28
14
|
if (!value) return undefined;
|
|
29
15
|
if ('desktop' in value || 'tablet' in value || 'mobile' in value) {
|
|
@@ -189,7 +175,6 @@ const composeBorderCss = (borderV)=>{
|
|
|
189
175
|
};
|
|
190
176
|
|
|
191
177
|
exports.composeBorderCss = composeBorderCss;
|
|
192
|
-
exports.getBorderRadiusStyle = getBorderRadiusStyle;
|
|
193
178
|
exports.getBorderStyle = getBorderStyle;
|
|
194
179
|
exports.handleConvertBorderColor = handleConvertBorderColor;
|
|
195
180
|
exports.handleConvertBorderStyle = handleConvertBorderStyle;
|
package/dist/cjs/index.js
CHANGED
|
@@ -16,8 +16,6 @@ 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');
|
|
21
19
|
var pageViewUp_generated = require('./graphql/mutations/page-view-up.generated.js');
|
|
22
20
|
var collectionDetailFilter_generated = require('./graphql/queries/collection-detail-filter.generated.js');
|
|
23
21
|
var collection_generated = require('./graphql/queries/collection.generated.js');
|
|
@@ -91,7 +89,6 @@ var useIsomorphicLayoutEffect = require('./hooks/useIsomorphicLayoutEffect.js');
|
|
|
91
89
|
var useLoadScript = require('./hooks/useLoadScript.js');
|
|
92
90
|
var useMoney = require('./hooks/useMoney.js');
|
|
93
91
|
var usePrevious = require('./hooks/usePrevious.js');
|
|
94
|
-
var useArticlesQuery = require('./hooks/articles/useArticlesQuery.js');
|
|
95
92
|
var useProduct = require('./hooks/useProduct.js');
|
|
96
93
|
var useProductList = require('./hooks/useProductList.js');
|
|
97
94
|
var useSuspenseFetch = require('./hooks/useSuspenseFetch.js');
|
|
@@ -139,10 +136,6 @@ exports.CollectionProvider = CollectionContext.CollectionProvider;
|
|
|
139
136
|
exports.useCollectionStore = CollectionContext.useCollectionStore;
|
|
140
137
|
exports.ModalProvider = ModalContext.ModalProvider;
|
|
141
138
|
exports.useModalStore = ModalContext.useModalStore;
|
|
142
|
-
exports.ArticleListProvider = ArticleListContext.ArticleListProvider;
|
|
143
|
-
exports.useArticleListStore = ArticleListContext.useArticleListStore;
|
|
144
|
-
exports.ArticleProvider = ArticleContext.ArticleProvider;
|
|
145
|
-
exports.useArticleStore = ArticleContext.useArticleStore;
|
|
146
139
|
exports.PageViewUpDocument = pageViewUp_generated.PageViewUpDocument;
|
|
147
140
|
exports.CollectionDetailFilterDocument = collectionDetailFilter_generated.CollectionDetailFilterDocument;
|
|
148
141
|
exports.CollectionDocument = collection_generated.CollectionDocument;
|
|
@@ -156,7 +149,6 @@ exports.ThemePageDocument = ThemePage_generated.ThemePageDocument;
|
|
|
156
149
|
exports.SaleFunnelDiscountsDocument = SaleFunnelDiscounts_generated.SaleFunnelDiscountsDocument;
|
|
157
150
|
exports.LibrarySaleFunnelDocument = LibrarySaleFunnelDiscount_generated.LibrarySaleFunnelDocument;
|
|
158
151
|
exports.composeBorderCss = borders.composeBorderCss;
|
|
159
|
-
exports.getBorderRadiusStyle = borders.getBorderRadiusStyle;
|
|
160
152
|
exports.getBorderStyle = borders.getBorderStyle;
|
|
161
153
|
exports.handleConvertBorderColor = borders.handleConvertBorderColor;
|
|
162
154
|
exports.handleConvertBorderStyle = borders.handleConvertBorderStyle;
|
|
@@ -329,8 +321,6 @@ exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect.default;
|
|
|
329
321
|
exports.useLoadScript = useLoadScript.default;
|
|
330
322
|
exports.useMoney = useMoney.default;
|
|
331
323
|
exports.usePrevious = usePrevious.usePrevious;
|
|
332
|
-
exports.useArticlesQuery = useArticlesQuery.useArticlesQuery;
|
|
333
|
-
exports.useBlogsQuery = useArticlesQuery.useBlogsQuery;
|
|
334
324
|
exports.useCheckAvailableVariantInStock = useProduct.useCheckAvailableVariantInStock;
|
|
335
325
|
exports.useCurrentVariant = useProduct.useCurrentVariant;
|
|
336
326
|
exports.useCurrentVariantInStock = useProduct.useCurrentVariantInStock;
|
|
@@ -8,20 +8,6 @@ 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
|
-
};
|
|
25
11
|
const handleConvertBorderStyle = (value, type)=>{
|
|
26
12
|
if (!value) return undefined;
|
|
27
13
|
if ('desktop' in value || 'tablet' in value || 'mobile' in value) {
|
|
@@ -186,4 +172,4 @@ const composeBorderCss = (borderV)=>{
|
|
|
186
172
|
`;
|
|
187
173
|
};
|
|
188
174
|
|
|
189
|
-
export { composeBorderCss,
|
|
175
|
+
export { composeBorderCss, getBorderStyle, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn };
|
package/dist/esm/index.js
CHANGED
|
@@ -14,8 +14,6 @@ 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';
|
|
19
17
|
export { PageViewUpDocument } from './graphql/mutations/page-view-up.generated.js';
|
|
20
18
|
export { CollectionDetailFilterDocument } from './graphql/queries/collection-detail-filter.generated.js';
|
|
21
19
|
export { CollectionDocument } from './graphql/queries/collection.generated.js';
|
|
@@ -28,7 +26,7 @@ export { LibraryTemplateDocument } from './graphql-app-api/queries/LibraryTempla
|
|
|
28
26
|
export { ThemePageDocument } from './graphql-app-api/queries/ThemePage.generated.js';
|
|
29
27
|
export { SaleFunnelDiscountsDocument } from './graphql-app-api/queries/SaleFunnelDiscounts.generated.js';
|
|
30
28
|
export { LibrarySaleFunnelDocument } from './graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js';
|
|
31
|
-
export { composeBorderCss,
|
|
29
|
+
export { composeBorderCss, getBorderStyle, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn } from './helpers/borders.js';
|
|
32
30
|
export { getCarouselContainerHeight, makeContainerWidthOrHeight, makeDotGapToCarouselStyle } from './helpers/carousel.js';
|
|
33
31
|
export { cls } from './helpers/cls.js';
|
|
34
32
|
export { animations } from './helpers/animations.js';
|
|
@@ -92,7 +90,6 @@ export { default as useIsomorphicLayoutEffect } from './hooks/useIsomorphicLayou
|
|
|
92
90
|
export { default as useLoadScript } from './hooks/useLoadScript.js';
|
|
93
91
|
export { default as useMoney } from './hooks/useMoney.js';
|
|
94
92
|
export { usePrevious } from './hooks/usePrevious.js';
|
|
95
|
-
export { useArticlesQuery, useBlogsQuery } from './hooks/articles/useArticlesQuery.js';
|
|
96
93
|
export { useCheckAvailableVariantInStock, useCurrentVariant, useCurrentVariantInStock, useFeaturedImageGlobal, useIsSyncProduct, useProduct, useProductOfferDiscount, useProductProperties, useQuantity, useSelectedOption, useUniqProductID, useVariant, useVariantOutStock, useVariants } from './hooks/useProduct.js';
|
|
97
94
|
export { useProductList, useProductListProducts, useProductListSettings, useProductListStyles } from './hooks/useProductList.js';
|
|
98
95
|
export { default as useSuspenseFetch } from './hooks/useSuspenseFetch.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -60,21 +60,16 @@ type Analytic$1 = {
|
|
|
60
60
|
gaTrackingID?: Maybe$1<Scalars$2['String']>;
|
|
61
61
|
tiktokPixelID?: Maybe$1<Scalars$2['String']>;
|
|
62
62
|
};
|
|
63
|
-
type Article$
|
|
64
|
-
author?: Maybe$1<Scalars$2['String']>;
|
|
63
|
+
type Article$1 = {
|
|
65
64
|
baseID?: Maybe$1<Scalars$2['String']>;
|
|
66
65
|
blogs?: Maybe$1<BlogConnection$1>;
|
|
67
|
-
content?: Maybe$1<ArticleContent>;
|
|
68
66
|
description?: Maybe$1<Scalars$2['String']>;
|
|
69
67
|
descriptionMeta?: Maybe$1<Scalars$2['String']>;
|
|
70
68
|
handle?: Maybe$1<Scalars$2['String']>;
|
|
71
69
|
id: Scalars$2['ID'];
|
|
72
70
|
isSample?: Maybe$1<Scalars$2['Boolean']>;
|
|
73
|
-
media?: Maybe$1<Media$1>;
|
|
74
71
|
metafield?: Maybe$1<Metafield$1>;
|
|
75
72
|
platform?: Maybe$1<ArticlePlatform$1>;
|
|
76
|
-
platformCreatedAt?: Maybe$1<Scalars$2['Time']>;
|
|
77
|
-
platformUpdatedAt?: Maybe$1<Scalars$2['Time']>;
|
|
78
73
|
tags: Array<Scalars$2['String']>;
|
|
79
74
|
templateSuffix?: Maybe$1<Scalars$2['String']>;
|
|
80
75
|
title?: Maybe$1<Scalars$2['String']>;
|
|
@@ -136,92 +131,15 @@ type ArticleConnection$1 = {
|
|
|
136
131
|
pageInfo?: Maybe$1<PageInfo$1>;
|
|
137
132
|
totalCount?: Maybe$1<Scalars$2['Int']>;
|
|
138
133
|
};
|
|
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
|
-
};
|
|
216
134
|
type ArticleEdge$1 = {
|
|
217
135
|
cursor?: Maybe$1<Scalars$2['Cursor']>;
|
|
218
|
-
node?: Maybe$1<Article$
|
|
136
|
+
node?: Maybe$1<Article$1>;
|
|
219
137
|
};
|
|
220
138
|
type ArticleOrder$1 = {
|
|
221
139
|
direction: OrderDirection$1;
|
|
222
140
|
field?: InputMaybe$1<ArticleOrderField$1>;
|
|
223
141
|
};
|
|
224
|
-
type ArticleOrderField$1 = 'CREATED_AT' | '
|
|
142
|
+
type ArticleOrderField$1 = 'CREATED_AT' | 'TITLE' | 'UPDATED_AT';
|
|
225
143
|
type ArticlePlatform$1 = 'BIG' | 'SHOPIFY' | 'WOO';
|
|
226
144
|
/**
|
|
227
145
|
* ArticleTagWhereInput is used for filtering ArticleTag objects.
|
|
@@ -263,22 +181,6 @@ type ArticleTagWhereInput$1 = {
|
|
|
263
181
|
*/
|
|
264
182
|
type ArticleWhereInput$1 = {
|
|
265
183
|
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']>;
|
|
282
184
|
/** base_id field predicates */
|
|
283
185
|
baseID?: InputMaybe$1<Scalars$2['String']>;
|
|
284
186
|
baseIDContains?: InputMaybe$1<Scalars$2['String']>;
|
|
@@ -349,12 +251,6 @@ type ArticleWhereInput$1 = {
|
|
|
349
251
|
/** article_tags edge predicates */
|
|
350
252
|
hasArticleTags?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
351
253
|
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>>;
|
|
358
254
|
/** id field predicates */
|
|
359
255
|
id?: InputMaybe$1<Scalars$2['ID']>;
|
|
360
256
|
idGT?: InputMaybe$1<Scalars$2['ID']>;
|
|
@@ -364,13 +260,6 @@ type ArticleWhereInput$1 = {
|
|
|
364
260
|
idLTE?: InputMaybe$1<Scalars$2['ID']>;
|
|
365
261
|
idNEQ?: InputMaybe$1<Scalars$2['ID']>;
|
|
366
262
|
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']>;
|
|
374
263
|
/** is_sample field predicates */
|
|
375
264
|
isSample?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
376
265
|
isSampleNEQ?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
@@ -477,8 +366,6 @@ type Blog$1 = {
|
|
|
477
366
|
isSample?: Maybe$1<Scalars$2['Boolean']>;
|
|
478
367
|
metafield?: Maybe$1<Metafield$1>;
|
|
479
368
|
platform?: Maybe$1<BlogPlatform$1>;
|
|
480
|
-
platformCreatedAt?: Maybe$1<Scalars$2['Time']>;
|
|
481
|
-
platformUpdatedAt?: Maybe$1<Scalars$2['Time']>;
|
|
482
369
|
tags: Array<Scalars$2['String']>;
|
|
483
370
|
templateSuffix?: Maybe$1<Scalars$2['String']>;
|
|
484
371
|
title?: Maybe$1<Scalars$2['String']>;
|
|
@@ -509,7 +396,7 @@ type BlogOrder$1 = {
|
|
|
509
396
|
direction: OrderDirection$1;
|
|
510
397
|
field?: InputMaybe$1<BlogOrderField$1>;
|
|
511
398
|
};
|
|
512
|
-
type BlogOrderField$1 = 'CREATED_AT' | '
|
|
399
|
+
type BlogOrderField$1 = 'CREATED_AT' | 'TITLE' | 'UPDATED_AT';
|
|
513
400
|
type BlogPlatform$1 = 'BIG' | 'SHOPIFY' | 'WOO';
|
|
514
401
|
/**
|
|
515
402
|
* BlogWhereInput is used for filtering Blog objects.
|
|
@@ -2489,9 +2376,6 @@ type MediaWhereInput$1 = {
|
|
|
2489
2376
|
embeddedURLNEQ?: InputMaybe$1<Scalars$2['String']>;
|
|
2490
2377
|
embeddedURLNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
|
|
2491
2378
|
embeddedURLNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
2492
|
-
/** article edge predicates */
|
|
2493
|
-
hasArticle?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
2494
|
-
hasArticleWith?: InputMaybe$1<Array<ArticleWhereInput$1>>;
|
|
2495
2379
|
/** product edge predicates */
|
|
2496
2380
|
hasProduct?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
2497
2381
|
hasProductWith?: InputMaybe$1<Array<ProductWhereInput$1>>;
|
|
@@ -2637,37 +2521,20 @@ type MediaWhereInput$1 = {
|
|
|
2637
2521
|
widthNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
|
|
2638
2522
|
};
|
|
2639
2523
|
type Metafield$1 = {
|
|
2640
|
-
baseID: Scalars$2['String'];
|
|
2641
2524
|
description?: Maybe$1<Scalars$2['String']>;
|
|
2642
2525
|
id: Scalars$2['ID'];
|
|
2643
2526
|
key: Scalars$2['String'];
|
|
2644
2527
|
namespace: Scalars$2['String'];
|
|
2645
|
-
|
|
2646
|
-
objectType:
|
|
2647
|
-
|
|
2648
|
-
value: Scalars$2['String'];
|
|
2528
|
+
objectId: Scalars$2['Uint'];
|
|
2529
|
+
objectType: ObjectType$1;
|
|
2530
|
+
value?: Maybe$1<Scalars$2['String']>;
|
|
2649
2531
|
};
|
|
2650
|
-
type MetafieldObjectType = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'DISCOUNT' | 'PAGE' | 'PRODUCT' | 'PRODUCT_VARIANT' | 'SHOP';
|
|
2651
2532
|
/**
|
|
2652
2533
|
* MetafieldWhereInput is used for filtering Metafield objects.
|
|
2653
2534
|
* Input was generated by ent.
|
|
2654
2535
|
*/
|
|
2655
2536
|
type MetafieldWhereInput$1 = {
|
|
2656
2537
|
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']>>;
|
|
2671
2538
|
/** created_at field predicates */
|
|
2672
2539
|
createdAt?: InputMaybe$1<Scalars$2['Time']>;
|
|
2673
2540
|
createdAtGT?: InputMaybe$1<Scalars$2['Time']>;
|
|
@@ -2688,22 +2555,6 @@ type MetafieldWhereInput$1 = {
|
|
|
2688
2555
|
deletedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
|
|
2689
2556
|
deletedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
|
|
2690
2557
|
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']>;
|
|
2707
2558
|
/** id field predicates */
|
|
2708
2559
|
id?: InputMaybe$1<Scalars$2['ID']>;
|
|
2709
2560
|
idGT?: InputMaybe$1<Scalars$2['ID']>;
|
|
@@ -2713,49 +2564,7 @@ type MetafieldWhereInput$1 = {
|
|
|
2713
2564
|
idLTE?: InputMaybe$1<Scalars$2['ID']>;
|
|
2714
2565
|
idNEQ?: InputMaybe$1<Scalars$2['ID']>;
|
|
2715
2566
|
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']>>;
|
|
2744
2567
|
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>>;
|
|
2759
2568
|
or?: InputMaybe$1<Array<MetafieldWhereInput$1>>;
|
|
2760
2569
|
/** updated_at field predicates */
|
|
2761
2570
|
updatedAt?: InputMaybe$1<Scalars$2['Time']>;
|
|
@@ -2766,20 +2575,6 @@ type MetafieldWhereInput$1 = {
|
|
|
2766
2575
|
updatedAtLTE?: InputMaybe$1<Scalars$2['Time']>;
|
|
2767
2576
|
updatedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
|
|
2768
2577
|
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']>>;
|
|
2783
2578
|
};
|
|
2784
2579
|
type Mutation$1 = {
|
|
2785
2580
|
cartCreate?: Maybe$1<CartPayload$1>;
|
|
@@ -2821,7 +2616,9 @@ type MutationCartNoteUpdateArgs$1 = {
|
|
|
2821
2616
|
};
|
|
2822
2617
|
type MutationPageViewUpArgs$1 = {
|
|
2823
2618
|
pageHandle: Scalars$2['String'];
|
|
2619
|
+
userAgent?: InputMaybe$1<Scalars$2['String']>;
|
|
2824
2620
|
};
|
|
2621
|
+
type ObjectType$1 = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'PAGE' | 'PRODUCT' | 'PRODUCT_VARIANT' | 'SHOP';
|
|
2825
2622
|
type OrderDirection$1 = 'ASC' | 'DESC';
|
|
2826
2623
|
type Page$1 = {
|
|
2827
2624
|
baseId?: Maybe$1<Scalars$2['String']>;
|
|
@@ -5927,7 +5724,7 @@ type PublishedThemeStyleWhereInput$1 = {
|
|
|
5927
5724
|
type Query$1 = {
|
|
5928
5725
|
_entities: Array<Maybe$1<_Entity>>;
|
|
5929
5726
|
_service: _Service;
|
|
5930
|
-
article?: Maybe$1<Article$
|
|
5727
|
+
article?: Maybe$1<Article$1>;
|
|
5931
5728
|
articles?: Maybe$1<ArticleConnection$1>;
|
|
5932
5729
|
blog?: Maybe$1<Blog$1>;
|
|
5933
5730
|
blogs?: Maybe$1<BlogConnection$1>;
|
|
@@ -6423,8 +6220,6 @@ type _Service = {
|
|
|
6423
6220
|
sdl?: Maybe$1<Scalars$2['String']>;
|
|
6424
6221
|
};
|
|
6425
6222
|
|
|
6426
|
-
type shop_ArticleContent = ArticleContent;
|
|
6427
|
-
type shop_ArticleContentWhereInput = ArticleContentWhereInput;
|
|
6428
6223
|
type shop_Entity = Entity;
|
|
6429
6224
|
type shop_EntityFindProductByIdArgs = EntityFindProductByIdArgs;
|
|
6430
6225
|
type shop_EntityFindPublishedCustomSectionByIdArgs = EntityFindPublishedCustomSectionByIdArgs;
|
|
@@ -6438,19 +6233,16 @@ type shop_EntityFindPublishedThemePageMetaByIdArgs = EntityFindPublishedThemePag
|
|
|
6438
6233
|
type shop_EntityFindPublishedThemePageOnlineStoreDataByIdArgs = EntityFindPublishedThemePageOnlineStoreDataByIdArgs;
|
|
6439
6234
|
type shop_EntityFindPublishedThemeSectionByIdArgs = EntityFindPublishedThemeSectionByIdArgs;
|
|
6440
6235
|
type shop_EntityFindPublishedThemeStyleByIdArgs = EntityFindPublishedThemeStyleByIdArgs;
|
|
6441
|
-
type shop_MetafieldObjectType = MetafieldObjectType;
|
|
6442
6236
|
type shop_Query_EntitiesArgs = Query_EntitiesArgs;
|
|
6443
6237
|
type shop__Entity = _Entity;
|
|
6444
6238
|
type shop__Service = _Service;
|
|
6445
6239
|
declare namespace shop {
|
|
6446
6240
|
export {
|
|
6447
6241
|
Analytic$1 as Analytic,
|
|
6448
|
-
Article$
|
|
6242
|
+
Article$1 as Article,
|
|
6449
6243
|
ArticleBlogWhereInput$1 as ArticleBlogWhereInput,
|
|
6450
6244
|
ArticleBlogsArgs$1 as ArticleBlogsArgs,
|
|
6451
6245
|
ArticleConnection$1 as ArticleConnection,
|
|
6452
|
-
shop_ArticleContent as ArticleContent,
|
|
6453
|
-
shop_ArticleContentWhereInput as ArticleContentWhereInput,
|
|
6454
6246
|
ArticleEdge$1 as ArticleEdge,
|
|
6455
6247
|
ArticleMetafieldArgs$1 as ArticleMetafieldArgs,
|
|
6456
6248
|
ArticleOrder$1 as ArticleOrder,
|
|
@@ -6532,7 +6324,6 @@ declare namespace shop {
|
|
|
6532
6324
|
MediaOrderField$1 as MediaOrderField,
|
|
6533
6325
|
MediaWhereInput$1 as MediaWhereInput,
|
|
6534
6326
|
Metafield$1 as Metafield,
|
|
6535
|
-
shop_MetafieldObjectType as MetafieldObjectType,
|
|
6536
6327
|
MetafieldWhereInput$1 as MetafieldWhereInput,
|
|
6537
6328
|
Mutation$1 as Mutation,
|
|
6538
6329
|
MutationCartCreateArgs$1 as MutationCartCreateArgs,
|
|
@@ -6542,6 +6333,7 @@ declare namespace shop {
|
|
|
6542
6333
|
MutationCartLinesUpdateArgs$1 as MutationCartLinesUpdateArgs,
|
|
6543
6334
|
MutationCartNoteUpdateArgs$1 as MutationCartNoteUpdateArgs,
|
|
6544
6335
|
MutationPageViewUpArgs$1 as MutationPageViewUpArgs,
|
|
6336
|
+
ObjectType$1 as ObjectType,
|
|
6545
6337
|
OrderDirection$1 as OrderDirection,
|
|
6546
6338
|
Page$1 as Page,
|
|
6547
6339
|
PageConnection$1 as PageConnection,
|
|
@@ -7131,7 +6923,6 @@ type InputControlType<T> = SharedControlType<T> & {
|
|
|
7131
6923
|
value: any;
|
|
7132
6924
|
}[];
|
|
7133
6925
|
readonly?: boolean;
|
|
7134
|
-
suffix?: string;
|
|
7135
6926
|
action?: {
|
|
7136
6927
|
clear?: boolean;
|
|
7137
6928
|
};
|
|
@@ -7639,11 +7430,6 @@ type ProductListControlType<T> = SharedControlType<T> & {
|
|
|
7639
7430
|
isMultiple?: boolean;
|
|
7640
7431
|
};
|
|
7641
7432
|
|
|
7642
|
-
type ArticleListControlType<T> = SharedControlType<T> & {
|
|
7643
|
-
type: 'article-list';
|
|
7644
|
-
isMultiple?: boolean;
|
|
7645
|
-
};
|
|
7646
|
-
|
|
7647
7433
|
type SizeUnit$1 = '%' | 'cm' | 'mm' | 'Q' | 'in' | 'pc' | 'pt' | 'px' | 'em' | 'cap' | 'ex' | 'ch' | 'ic' | 'rem' | 'lh' | 'rlh' | 'vw' | 'vh' | 'vi' | 'vb' | 'vmin' | 'vmax';
|
|
7648
7434
|
type InputUnitSpacingControlType<T> = SharedControlType<T> & {
|
|
7649
7435
|
type: 'input:unit-spacing';
|
|
@@ -7958,7 +7744,7 @@ type ButtonLayoutType<T> = SharedControlType<T> & {
|
|
|
7958
7744
|
}[];
|
|
7959
7745
|
};
|
|
7960
7746
|
|
|
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> |
|
|
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>;
|
|
7962
7748
|
type ControlTriggerAction = {
|
|
7963
7749
|
controlId: string;
|
|
7964
7750
|
newValue?: any;
|
|
@@ -8192,7 +7978,7 @@ type AnalyticsQueryParameter = {
|
|
|
8192
7978
|
startDate?: InputMaybe<Scalars['Time']>;
|
|
8193
7979
|
};
|
|
8194
7980
|
type AppType = 'CUSTOM' | 'GEMPAGES' | 'GEMPAGESV5' | 'GEMPAGESV7' | 'GEMX';
|
|
8195
|
-
type Article
|
|
7981
|
+
type Article = {
|
|
8196
7982
|
baseID?: Maybe<Scalars['String']>;
|
|
8197
7983
|
blogs?: Maybe<BlogConnection>;
|
|
8198
7984
|
description?: Maybe<Scalars['String']>;
|
|
@@ -8265,7 +8051,7 @@ type ArticleConnection = {
|
|
|
8265
8051
|
};
|
|
8266
8052
|
type ArticleEdge = {
|
|
8267
8053
|
cursor?: Maybe<Scalars['Cursor']>;
|
|
8268
|
-
node?: Maybe<Article
|
|
8054
|
+
node?: Maybe<Article>;
|
|
8269
8055
|
};
|
|
8270
8056
|
type ArticleOrder = {
|
|
8271
8057
|
direction: OrderDirection;
|
|
@@ -19075,7 +18861,7 @@ type PutCustomComponentFileInput = {
|
|
|
19075
18861
|
name: Scalars['String'];
|
|
19076
18862
|
};
|
|
19077
18863
|
type Query = {
|
|
19078
|
-
article?: Maybe<Article
|
|
18864
|
+
article?: Maybe<Article>;
|
|
19079
18865
|
articles?: Maybe<ArticleConnection>;
|
|
19080
18866
|
backgroundTasks?: Maybe<BackgroundTaskConnection>;
|
|
19081
18867
|
blog?: Maybe<Blog>;
|
|
@@ -25256,6 +25042,7 @@ type appAPI_AddEmployeeInput = AddEmployeeInput;
|
|
|
25256
25042
|
type appAPI_Analytic = Analytic;
|
|
25257
25043
|
type appAPI_AnalyticsQueryParameter = AnalyticsQueryParameter;
|
|
25258
25044
|
type appAPI_AppType = AppType;
|
|
25045
|
+
type appAPI_Article = Article;
|
|
25259
25046
|
type appAPI_ArticleBlogWhereInput = ArticleBlogWhereInput;
|
|
25260
25047
|
type appAPI_ArticleBlogsArgs = ArticleBlogsArgs;
|
|
25261
25048
|
type appAPI_ArticleConnection = ArticleConnection;
|
|
@@ -26248,7 +26035,7 @@ declare namespace appAPI {
|
|
|
26248
26035
|
appAPI_Analytic as Analytic,
|
|
26249
26036
|
appAPI_AnalyticsQueryParameter as AnalyticsQueryParameter,
|
|
26250
26037
|
appAPI_AppType as AppType,
|
|
26251
|
-
|
|
26038
|
+
appAPI_Article as Article,
|
|
26252
26039
|
appAPI_ArticleBlogWhereInput as ArticleBlogWhereInput,
|
|
26253
26040
|
appAPI_ArticleBlogsArgs as ArticleBlogsArgs,
|
|
26254
26041
|
appAPI_ArticleConnection as ArticleConnection,
|
|
@@ -27863,38 +27650,6 @@ type ModalProviderProps = Pick<ModalContextProps, 'activeId'> & {
|
|
|
27863
27650
|
declare const ModalProvider: React.FC<ModalProviderProps>;
|
|
27864
27651
|
declare const useModalStore: <U>(selector: (state: ExtractState<StoreApi<ModalContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
27865
27652
|
|
|
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
|
-
|
|
27898
27653
|
type PageViewUpMutationVariables = Exact$1<{
|
|
27899
27654
|
pageHandle: Scalars$2['String'];
|
|
27900
27655
|
userAgent: Scalars$2['String'];
|
|
@@ -28187,7 +27942,6 @@ type BorderStyle = StateProp<Border> | ResponsiveStateProp<Border>;
|
|
|
28187
27942
|
declare const getBorderStyle: (value?: Border) => {
|
|
28188
27943
|
[k: string]: Record<"--b" | "--bc" | "--bw", string | undefined>;
|
|
28189
27944
|
};
|
|
28190
|
-
declare const getBorderRadiusStyle: (borderRadius?: CornerRadius, shapeRadius?: CornerRadius) => {};
|
|
28191
27945
|
declare const handleConvertBorderStyle: (value?: BorderStyle, type?: 'button') => {} | undefined;
|
|
28192
27946
|
declare const handleConvertBorderWidth: (value?: BorderStyle, type?: 'button') => {} | undefined;
|
|
28193
27947
|
declare const handleConvertBorderColor: (value?: BorderStyle) => React.CSSProperties | undefined;
|
|
@@ -36194,60 +35948,6 @@ declare const useMoney: (amount: number) => UseMoneyValue;
|
|
|
36194
35948
|
|
|
36195
35949
|
declare const usePrevious: <T>(value: T) => T | undefined;
|
|
36196
35950
|
|
|
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
|
-
|
|
36251
35951
|
declare const useUniqProductID: () => string;
|
|
36252
35952
|
declare const useProduct: () => ProductSelectFragment | undefined;
|
|
36253
35953
|
declare const useFeaturedImageGlobal: () => MediaSelectFragment | undefined;
|
|
@@ -36330,4 +36030,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage$1, 'id' | 'name'
|
|
|
36330
36030
|
|
|
36331
36031
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
36332
36032
|
|
|
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,
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.44.
|
|
3
|
+
"version": "1.44.1",
|
|
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.0
|
|
30
|
+
"@gem-sdk/adapter-shopify": "1.40.0",
|
|
31
|
+
"@gem-sdk/styles": "1.44.0",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
@@ -1,39 +0,0 @@
|
|
|
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;
|
|
@@ -1,31 +0,0 @@
|
|
|
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;
|
|
@@ -1,59 +0,0 @@
|
|
|
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;
|
|
@@ -1,64 +0,0 @@
|
|
|
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;
|
|
@@ -1,32 +0,0 @@
|
|
|
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;
|
|
@@ -1,36 +0,0 @@
|
|
|
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 };
|
|
@@ -1,27 +0,0 @@
|
|
|
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 };
|
|
@@ -1,57 +0,0 @@
|
|
|
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 };
|
|
@@ -1,62 +0,0 @@
|
|
|
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 };
|
|
@@ -1,29 +0,0 @@
|
|
|
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 };
|