@gem-sdk/core 1.0.9 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/graphql/fragments/custom-code.generated.js +10 -0
- package/dist/cjs/graphql/fragments/published-theme-page.generated.js +4 -1
- package/dist/cjs/graphql/queries/preview-page.generated.js +3 -1
- package/dist/cjs/graphql/queries/published-theme-pages.generated.js +3 -1
- package/dist/cjs/graphql/queries/{storeProperty.generated.js → store-property.generated.js} +0 -0
- package/dist/cjs/helpers/queries/get-products.js +0 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/graphql/fragments/custom-code.generated.js +8 -0
- package/dist/esm/graphql/fragments/published-theme-page.generated.js +4 -1
- package/dist/esm/graphql/queries/preview-page.generated.js +3 -1
- package/dist/esm/graphql/queries/published-theme-pages.generated.js +3 -1
- package/dist/esm/graphql/queries/{storeProperty.generated.js → store-property.generated.js} +0 -0
- package/dist/esm/helpers/queries/get-products.js +0 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +60 -40
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@ const PublishedThemePageSelect = `
|
|
|
5
5
|
id
|
|
6
6
|
name
|
|
7
7
|
isMobile
|
|
8
|
+
sectionPosition
|
|
8
9
|
pageSections {
|
|
9
10
|
...PublishedPageSectionSelect
|
|
10
11
|
}
|
|
@@ -17,10 +18,12 @@ const PublishedThemePageSelect = `
|
|
|
17
18
|
pageStyle {
|
|
18
19
|
...PublishedThemeStyleSelect
|
|
19
20
|
}
|
|
20
|
-
sectionPosition
|
|
21
21
|
themePageAnalytic {
|
|
22
22
|
...AnalyticSelect
|
|
23
23
|
}
|
|
24
|
+
themePageCustomCode {
|
|
25
|
+
...CustomCodeSelect
|
|
26
|
+
}
|
|
24
27
|
}
|
|
25
28
|
`;
|
|
26
29
|
|
|
@@ -6,6 +6,7 @@ var publishedCustomSection_generated = require('../fragments/published-custom-se
|
|
|
6
6
|
var dataSeo_generated = require('../fragments/data-seo.generated.js');
|
|
7
7
|
var publishedThemeStyle_generated = require('../fragments/published-theme-style.generated.js');
|
|
8
8
|
var analytic_generated = require('../fragments/analytic.generated.js');
|
|
9
|
+
var customCode_generated = require('../fragments/custom-code.generated.js');
|
|
9
10
|
|
|
10
11
|
const PreviewPageDocument = `
|
|
11
12
|
query previewPage($handleURL: String, $pageType: PublishedThemePageType!) {
|
|
@@ -18,6 +19,7 @@ ${publishedPageSection_generated.PublishedPageSectionSelect}
|
|
|
18
19
|
${publishedCustomSection_generated.PublishedCustomSectionSelect}
|
|
19
20
|
${dataSeo_generated.DataSeoSelect}
|
|
20
21
|
${publishedThemeStyle_generated.PublishedThemeStyleSelect}
|
|
21
|
-
${analytic_generated.AnalyticSelect}
|
|
22
|
+
${analytic_generated.AnalyticSelect}
|
|
23
|
+
${customCode_generated.CustomCodeSelect}`;
|
|
22
24
|
|
|
23
25
|
exports.PreviewPageDocument = PreviewPageDocument;
|
|
@@ -6,6 +6,7 @@ var publishedCustomSection_generated = require('../fragments/published-custom-se
|
|
|
6
6
|
var dataSeo_generated = require('../fragments/data-seo.generated.js');
|
|
7
7
|
var publishedThemeStyle_generated = require('../fragments/published-theme-style.generated.js');
|
|
8
8
|
var analytic_generated = require('../fragments/analytic.generated.js');
|
|
9
|
+
var customCode_generated = require('../fragments/custom-code.generated.js');
|
|
9
10
|
|
|
10
11
|
const PublishedThemePagesDocument = `
|
|
11
12
|
query publishedThemePages($slug: String, $slugType: PublishedThemePageType!) {
|
|
@@ -18,6 +19,7 @@ ${publishedPageSection_generated.PublishedPageSectionSelect}
|
|
|
18
19
|
${publishedCustomSection_generated.PublishedCustomSectionSelect}
|
|
19
20
|
${dataSeo_generated.DataSeoSelect}
|
|
20
21
|
${publishedThemeStyle_generated.PublishedThemeStyleSelect}
|
|
21
|
-
${analytic_generated.AnalyticSelect}
|
|
22
|
+
${analytic_generated.AnalyticSelect}
|
|
23
|
+
${customCode_generated.CustomCodeSelect}`;
|
|
22
24
|
|
|
23
25
|
exports.PublishedThemePagesDocument = PublishedThemePagesDocument;
|
|
File without changes
|
|
@@ -5,7 +5,6 @@ var getCollection = require('./get-collection.js');
|
|
|
5
5
|
var getProduct = require('./get-product.js');
|
|
6
6
|
|
|
7
7
|
const getProducts = async (fetcher, { ids, isSample }) => {
|
|
8
|
-
console.log(11111, ids);
|
|
9
8
|
const products = await loopFetchProducts(fetcher, { ids, isSample });
|
|
10
9
|
if (!products) {
|
|
11
10
|
throw new Error('Product not found');
|
package/dist/cjs/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var collectionDetailFilter_generated = require('./graphql/queries/collection-det
|
|
|
17
17
|
var collection_generated = require('./graphql/queries/collection.generated.js');
|
|
18
18
|
var publishedThemePages_generated = require('./graphql/queries/published-theme-pages.generated.js');
|
|
19
19
|
var products_generated = require('./graphql/queries/products.generated.js');
|
|
20
|
-
var storeProperty_generated = require('./graphql/queries/
|
|
20
|
+
var storeProperty_generated = require('./graphql/queries/store-property.generated.js');
|
|
21
21
|
var previewPage_generated = require('./graphql/queries/preview-page.generated.js');
|
|
22
22
|
var borders = require('./helpers/borders.js');
|
|
23
23
|
var cls = require('./helpers/cls.js');
|
|
@@ -3,6 +3,7 @@ const PublishedThemePageSelect = `
|
|
|
3
3
|
id
|
|
4
4
|
name
|
|
5
5
|
isMobile
|
|
6
|
+
sectionPosition
|
|
6
7
|
pageSections {
|
|
7
8
|
...PublishedPageSectionSelect
|
|
8
9
|
}
|
|
@@ -15,10 +16,12 @@ const PublishedThemePageSelect = `
|
|
|
15
16
|
pageStyle {
|
|
16
17
|
...PublishedThemeStyleSelect
|
|
17
18
|
}
|
|
18
|
-
sectionPosition
|
|
19
19
|
themePageAnalytic {
|
|
20
20
|
...AnalyticSelect
|
|
21
21
|
}
|
|
22
|
+
themePageCustomCode {
|
|
23
|
+
...CustomCodeSelect
|
|
24
|
+
}
|
|
22
25
|
}
|
|
23
26
|
`;
|
|
24
27
|
|
|
@@ -4,6 +4,7 @@ import { PublishedCustomSectionSelect } from '../fragments/published-custom-sect
|
|
|
4
4
|
import { DataSeoSelect } from '../fragments/data-seo.generated.js';
|
|
5
5
|
import { PublishedThemeStyleSelect } from '../fragments/published-theme-style.generated.js';
|
|
6
6
|
import { AnalyticSelect } from '../fragments/analytic.generated.js';
|
|
7
|
+
import { CustomCodeSelect } from '../fragments/custom-code.generated.js';
|
|
7
8
|
|
|
8
9
|
const PreviewPageDocument = `
|
|
9
10
|
query previewPage($handleURL: String, $pageType: PublishedThemePageType!) {
|
|
@@ -16,6 +17,7 @@ ${PublishedPageSectionSelect}
|
|
|
16
17
|
${PublishedCustomSectionSelect}
|
|
17
18
|
${DataSeoSelect}
|
|
18
19
|
${PublishedThemeStyleSelect}
|
|
19
|
-
${AnalyticSelect}
|
|
20
|
+
${AnalyticSelect}
|
|
21
|
+
${CustomCodeSelect}`;
|
|
20
22
|
|
|
21
23
|
export { PreviewPageDocument };
|
|
@@ -4,6 +4,7 @@ import { PublishedCustomSectionSelect } from '../fragments/published-custom-sect
|
|
|
4
4
|
import { DataSeoSelect } from '../fragments/data-seo.generated.js';
|
|
5
5
|
import { PublishedThemeStyleSelect } from '../fragments/published-theme-style.generated.js';
|
|
6
6
|
import { AnalyticSelect } from '../fragments/analytic.generated.js';
|
|
7
|
+
import { CustomCodeSelect } from '../fragments/custom-code.generated.js';
|
|
7
8
|
|
|
8
9
|
const PublishedThemePagesDocument = `
|
|
9
10
|
query publishedThemePages($slug: String, $slugType: PublishedThemePageType!) {
|
|
@@ -16,6 +17,7 @@ ${PublishedPageSectionSelect}
|
|
|
16
17
|
${PublishedCustomSectionSelect}
|
|
17
18
|
${DataSeoSelect}
|
|
18
19
|
${PublishedThemeStyleSelect}
|
|
19
|
-
${AnalyticSelect}
|
|
20
|
+
${AnalyticSelect}
|
|
21
|
+
${CustomCodeSelect}`;
|
|
20
22
|
|
|
21
23
|
export { PublishedThemePagesDocument };
|
|
File without changes
|
|
@@ -3,7 +3,6 @@ import { calculateFirstProduct } from './get-collection.js';
|
|
|
3
3
|
import { fetchVariants, fetchMedias } from './get-product.js';
|
|
4
4
|
|
|
5
5
|
const getProducts = async (fetcher, { ids, isSample }) => {
|
|
6
|
-
console.log(11111, ids);
|
|
7
6
|
const products = await loopFetchProducts(fetcher, { ids, isSample });
|
|
8
7
|
if (!products) {
|
|
9
8
|
throw new Error('Product not found');
|
package/dist/esm/index.js
CHANGED
|
@@ -15,7 +15,7 @@ export { CollectionDetailFilterDocument } from './graphql/queries/collection-det
|
|
|
15
15
|
export { CollectionDocument } from './graphql/queries/collection.generated.js';
|
|
16
16
|
export { PublishedThemePagesDocument } from './graphql/queries/published-theme-pages.generated.js';
|
|
17
17
|
export { ProductsDocument } from './graphql/queries/products.generated.js';
|
|
18
|
-
export { StorePropertyDocument } from './graphql/queries/
|
|
18
|
+
export { StorePropertyDocument } from './graphql/queries/store-property.generated.js';
|
|
19
19
|
export { PreviewPageDocument } from './graphql/queries/preview-page.generated.js';
|
|
20
20
|
export { handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor } from './helpers/borders.js';
|
|
21
21
|
export { cls } from './helpers/cls.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -671,7 +671,17 @@ type YotpoLoyaltyCodes = {
|
|
|
671
671
|
id: string;
|
|
672
672
|
};
|
|
673
673
|
|
|
674
|
-
type
|
|
674
|
+
type WidthSizeUnit = 'px' | '%';
|
|
675
|
+
type InputWidthControlType<T> = SharedControlType<T> & {
|
|
676
|
+
type: 'input:width';
|
|
677
|
+
placeholder?: string;
|
|
678
|
+
min?: number;
|
|
679
|
+
max?: number;
|
|
680
|
+
units: WidthSizeUnit[];
|
|
681
|
+
readonly?: boolean;
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
type ControlProp<T> = AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputUnitControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | SelectControlType<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<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> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T>;
|
|
675
685
|
type Setting<P extends BaseProps> = {
|
|
676
686
|
id: 'setting';
|
|
677
687
|
controls?: ControlProp<NonNullable<P['setting']>>[];
|
|
@@ -1850,6 +1860,10 @@ type CollectionWhereInput = {
|
|
|
1850
1860
|
updatedAtNEQ?: InputMaybe<Scalars['Time']>;
|
|
1851
1861
|
updatedAtNotIn?: InputMaybe<Array<Scalars['Time']>>;
|
|
1852
1862
|
};
|
|
1863
|
+
type CustomCode = {
|
|
1864
|
+
body?: Maybe<Scalars['String']>;
|
|
1865
|
+
header?: Maybe<Scalars['String']>;
|
|
1866
|
+
};
|
|
1853
1867
|
type Customer = {
|
|
1854
1868
|
acceptsMarketing?: Maybe<Scalars['Boolean']>;
|
|
1855
1869
|
acceptsMarketingUpdatedAt?: Maybe<Scalars['Time']>;
|
|
@@ -5324,6 +5338,7 @@ type PublishedThemePage = {
|
|
|
5324
5338
|
splitPercentage?: Maybe<Scalars['Float']>;
|
|
5325
5339
|
status?: Maybe<PublishedThemePageStatus>;
|
|
5326
5340
|
themePageAnalytic?: Maybe<Analytic>;
|
|
5341
|
+
themePageCustomCode?: Maybe<CustomCode>;
|
|
5327
5342
|
themePageCustomSections?: Maybe<Array<Maybe<PublishedCustomSection>>>;
|
|
5328
5343
|
themePageDataSEO?: Maybe<Array<Maybe<DataSeo>>>;
|
|
5329
5344
|
themePageOnlineStoreData?: Maybe<Array<Maybe<PublishedThemePageOnlineStoreData>>>;
|
|
@@ -6073,21 +6088,13 @@ type _Service = {
|
|
|
6073
6088
|
sdl?: Maybe<Scalars['String']>;
|
|
6074
6089
|
};
|
|
6075
6090
|
|
|
6076
|
-
type shop_Maybe<T> = Maybe<T>;
|
|
6077
|
-
type shop_InputMaybe<T> = InputMaybe<T>;
|
|
6078
|
-
type shop_Exact<T extends {
|
|
6079
|
-
[key: string]: unknown;
|
|
6080
|
-
}> = Exact<T>;
|
|
6081
|
-
type shop_MakeOptional<T, K extends keyof T> = MakeOptional<T, K>;
|
|
6082
|
-
type shop_MakeMaybe<T, K extends keyof T> = MakeMaybe<T, K>;
|
|
6083
|
-
type shop_Scalars = Scalars;
|
|
6084
6091
|
type shop_Analytic = Analytic;
|
|
6085
6092
|
type shop_Article = Article;
|
|
6086
|
-
type shop_ArticleBlogsArgs = ArticleBlogsArgs;
|
|
6087
|
-
type shop_ArticleMetafieldArgs = ArticleMetafieldArgs;
|
|
6088
6093
|
type shop_ArticleBlogWhereInput = ArticleBlogWhereInput;
|
|
6094
|
+
type shop_ArticleBlogsArgs = ArticleBlogsArgs;
|
|
6089
6095
|
type shop_ArticleConnection = ArticleConnection;
|
|
6090
6096
|
type shop_ArticleEdge = ArticleEdge;
|
|
6097
|
+
type shop_ArticleMetafieldArgs = ArticleMetafieldArgs;
|
|
6091
6098
|
type shop_ArticleOrder = ArticleOrder;
|
|
6092
6099
|
type shop_ArticleOrderField = ArticleOrderField;
|
|
6093
6100
|
type shop_ArticlePlatform = ArticlePlatform;
|
|
@@ -6095,9 +6102,9 @@ type shop_ArticleWhereInput = ArticleWhereInput;
|
|
|
6095
6102
|
type shop_AttributeInput = AttributeInput;
|
|
6096
6103
|
type shop_Blog = Blog;
|
|
6097
6104
|
type shop_BlogArticlesArgs = BlogArticlesArgs;
|
|
6098
|
-
type shop_BlogMetafieldArgs = BlogMetafieldArgs;
|
|
6099
6105
|
type shop_BlogConnection = BlogConnection;
|
|
6100
6106
|
type shop_BlogEdge = BlogEdge;
|
|
6107
|
+
type shop_BlogMetafieldArgs = BlogMetafieldArgs;
|
|
6101
6108
|
type shop_BlogOrder = BlogOrder;
|
|
6102
6109
|
type shop_BlogOrderField = BlogOrderField;
|
|
6103
6110
|
type shop_BlogPlatform = BlogPlatform;
|
|
@@ -6113,17 +6120,18 @@ type shop_CartLineUpdateInput = CartLineUpdateInput;
|
|
|
6113
6120
|
type shop_CartPayload = CartPayload;
|
|
6114
6121
|
type shop_CartPlatform = CartPlatform;
|
|
6115
6122
|
type shop_CartUserError = CartUserError;
|
|
6116
|
-
type shop_CollectionMetafieldArgs = CollectionMetafieldArgs;
|
|
6117
|
-
type shop_CollectionProductsArgs = CollectionProductsArgs;
|
|
6118
6123
|
type shop_CollectionConnection = CollectionConnection;
|
|
6119
6124
|
type shop_CollectionEdge = CollectionEdge;
|
|
6120
6125
|
type shop_CollectionMedia = CollectionMedia;
|
|
6121
6126
|
type shop_CollectionMediaWhereInput = CollectionMediaWhereInput;
|
|
6127
|
+
type shop_CollectionMetafieldArgs = CollectionMetafieldArgs;
|
|
6122
6128
|
type shop_CollectionOrder = CollectionOrder;
|
|
6123
6129
|
type shop_CollectionOrderField = CollectionOrderField;
|
|
6124
6130
|
type shop_CollectionPlatform = CollectionPlatform;
|
|
6125
6131
|
type shop_CollectionProductWhereInput = CollectionProductWhereInput;
|
|
6132
|
+
type shop_CollectionProductsArgs = CollectionProductsArgs;
|
|
6126
6133
|
type shop_CollectionWhereInput = CollectionWhereInput;
|
|
6134
|
+
type shop_CustomCode = CustomCode;
|
|
6127
6135
|
type shop_Customer = Customer;
|
|
6128
6136
|
type shop_CustomerAddress = CustomerAddress;
|
|
6129
6137
|
type shop_CustomerAddressPlatform = CustomerAddressPlatform;
|
|
@@ -6148,6 +6156,13 @@ type shop_EntityFindPublishedThemePageCustomSectionByIdArgs = EntityFindPublishe
|
|
|
6148
6156
|
type shop_EntityFindPublishedThemePageMetaByIdArgs = EntityFindPublishedThemePageMetaByIdArgs;
|
|
6149
6157
|
type shop_EntityFindPublishedThemePageOnlineStoreDataByIdArgs = EntityFindPublishedThemePageOnlineStoreDataByIdArgs;
|
|
6150
6158
|
type shop_EntityFindPublishedThemeStyleByIdArgs = EntityFindPublishedThemeStyleByIdArgs;
|
|
6159
|
+
type shop_Exact<T extends {
|
|
6160
|
+
[key: string]: unknown;
|
|
6161
|
+
}> = Exact<T>;
|
|
6162
|
+
type shop_InputMaybe<T> = InputMaybe<T>;
|
|
6163
|
+
type shop_MakeMaybe<T, K extends keyof T> = MakeMaybe<T, K>;
|
|
6164
|
+
type shop_MakeOptional<T, K extends keyof T> = MakeOptional<T, K>;
|
|
6165
|
+
type shop_Maybe<T> = Maybe<T>;
|
|
6151
6166
|
type shop_Media = Media;
|
|
6152
6167
|
type shop_MediaConnection = MediaConnection;
|
|
6153
6168
|
type shop_MediaEdge = MediaEdge;
|
|
@@ -6166,10 +6181,10 @@ type shop_MutationCartNoteUpdateArgs = MutationCartNoteUpdateArgs;
|
|
|
6166
6181
|
type shop_ObjectType = ObjectType;
|
|
6167
6182
|
type shop_OrderDirection = OrderDirection;
|
|
6168
6183
|
type shop_Page = Page;
|
|
6169
|
-
type shop_PageMetafieldArgs = PageMetafieldArgs;
|
|
6170
6184
|
type shop_PageConnection = PageConnection;
|
|
6171
6185
|
type shop_PageEdge = PageEdge;
|
|
6172
6186
|
type shop_PageInfo = PageInfo;
|
|
6187
|
+
type shop_PageMetafieldArgs = PageMetafieldArgs;
|
|
6173
6188
|
type shop_PageOrder = PageOrder;
|
|
6174
6189
|
type shop_PageOrderField = PageOrderField;
|
|
6175
6190
|
type shop_PagePlatform = PagePlatform;
|
|
@@ -6183,11 +6198,10 @@ type shop_PriceRulePlatform = PriceRulePlatform;
|
|
|
6183
6198
|
type shop_PriceRuleWhereInput = PriceRuleWhereInput;
|
|
6184
6199
|
type shop_Product = Product;
|
|
6185
6200
|
type shop_ProductCollectionsArgs = ProductCollectionsArgs;
|
|
6186
|
-
type shop_ProductMediasArgs = ProductMediasArgs;
|
|
6187
|
-
type shop_ProductMetafieldArgs = ProductMetafieldArgs;
|
|
6188
|
-
type shop_ProductVariantsArgs = ProductVariantsArgs;
|
|
6189
6201
|
type shop_ProductConnection = ProductConnection;
|
|
6190
6202
|
type shop_ProductEdge = ProductEdge;
|
|
6203
|
+
type shop_ProductMediasArgs = ProductMediasArgs;
|
|
6204
|
+
type shop_ProductMetafieldArgs = ProductMetafieldArgs;
|
|
6191
6205
|
type shop_ProductOption = ProductOption;
|
|
6192
6206
|
type shop_ProductOptionPlatform = ProductOptionPlatform;
|
|
6193
6207
|
type shop_ProductOptionValue = ProductOptionValue;
|
|
@@ -6198,13 +6212,14 @@ type shop_ProductOrder = ProductOrder;
|
|
|
6198
6212
|
type shop_ProductOrderField = ProductOrderField;
|
|
6199
6213
|
type shop_ProductPlatform = ProductPlatform;
|
|
6200
6214
|
type shop_ProductVariant = ProductVariant;
|
|
6201
|
-
type shop_ProductVariantMetafieldArgs = ProductVariantMetafieldArgs;
|
|
6202
6215
|
type shop_ProductVariantConnection = ProductVariantConnection;
|
|
6203
6216
|
type shop_ProductVariantEdge = ProductVariantEdge;
|
|
6217
|
+
type shop_ProductVariantMetafieldArgs = ProductVariantMetafieldArgs;
|
|
6204
6218
|
type shop_ProductVariantOrder = ProductVariantOrder;
|
|
6205
6219
|
type shop_ProductVariantOrderField = ProductVariantOrderField;
|
|
6206
6220
|
type shop_ProductVariantPlatform = ProductVariantPlatform;
|
|
6207
6221
|
type shop_ProductVariantWhereInput = ProductVariantWhereInput;
|
|
6222
|
+
type shop_ProductVariantsArgs = ProductVariantsArgs;
|
|
6208
6223
|
type shop_ProductWhereInput = ProductWhereInput;
|
|
6209
6224
|
type shop_PublishedCustomSection = PublishedCustomSection;
|
|
6210
6225
|
type shop_PublishedCustomSectionType = PublishedCustomSectionType;
|
|
@@ -6229,7 +6244,6 @@ type shop_PublishedThemePageWhereInput = PublishedThemePageWhereInput;
|
|
|
6229
6244
|
type shop_PublishedThemeStyle = PublishedThemeStyle;
|
|
6230
6245
|
type shop_PublishedThemeStyleWhereInput = PublishedThemeStyleWhereInput;
|
|
6231
6246
|
type shop_Query = Query;
|
|
6232
|
-
type shop_Query_EntitiesArgs = Query_EntitiesArgs;
|
|
6233
6247
|
type shop_QueryArticleArgs = QueryArticleArgs;
|
|
6234
6248
|
type shop_QueryArticlesArgs = QueryArticlesArgs;
|
|
6235
6249
|
type shop_QueryBlogArgs = QueryBlogArgs;
|
|
@@ -6245,6 +6259,8 @@ type shop_QueryPreviewPageArgs = QueryPreviewPageArgs;
|
|
|
6245
6259
|
type shop_QueryProductArgs = QueryProductArgs;
|
|
6246
6260
|
type shop_QueryProductsArgs = QueryProductsArgs;
|
|
6247
6261
|
type shop_QueryPublishedThemePagesArgs = QueryPublishedThemePagesArgs;
|
|
6262
|
+
type shop_Query_EntitiesArgs = Query_EntitiesArgs;
|
|
6263
|
+
type shop_Scalars = Scalars;
|
|
6248
6264
|
type shop_SelectedOption = SelectedOption;
|
|
6249
6265
|
type shop_ShopTokenWhereInput = ShopTokenWhereInput;
|
|
6250
6266
|
type shop_StoreProperty = StoreProperty;
|
|
@@ -6255,19 +6271,13 @@ type shop__Entity = _Entity;
|
|
|
6255
6271
|
type shop__Service = _Service;
|
|
6256
6272
|
declare namespace shop {
|
|
6257
6273
|
export {
|
|
6258
|
-
shop_Maybe as Maybe,
|
|
6259
|
-
shop_InputMaybe as InputMaybe,
|
|
6260
|
-
shop_Exact as Exact,
|
|
6261
|
-
shop_MakeOptional as MakeOptional,
|
|
6262
|
-
shop_MakeMaybe as MakeMaybe,
|
|
6263
|
-
shop_Scalars as Scalars,
|
|
6264
6274
|
shop_Analytic as Analytic,
|
|
6265
6275
|
shop_Article as Article,
|
|
6266
|
-
shop_ArticleBlogsArgs as ArticleBlogsArgs,
|
|
6267
|
-
shop_ArticleMetafieldArgs as ArticleMetafieldArgs,
|
|
6268
6276
|
shop_ArticleBlogWhereInput as ArticleBlogWhereInput,
|
|
6277
|
+
shop_ArticleBlogsArgs as ArticleBlogsArgs,
|
|
6269
6278
|
shop_ArticleConnection as ArticleConnection,
|
|
6270
6279
|
shop_ArticleEdge as ArticleEdge,
|
|
6280
|
+
shop_ArticleMetafieldArgs as ArticleMetafieldArgs,
|
|
6271
6281
|
shop_ArticleOrder as ArticleOrder,
|
|
6272
6282
|
shop_ArticleOrderField as ArticleOrderField,
|
|
6273
6283
|
shop_ArticlePlatform as ArticlePlatform,
|
|
@@ -6275,9 +6285,9 @@ declare namespace shop {
|
|
|
6275
6285
|
shop_AttributeInput as AttributeInput,
|
|
6276
6286
|
shop_Blog as Blog,
|
|
6277
6287
|
shop_BlogArticlesArgs as BlogArticlesArgs,
|
|
6278
|
-
shop_BlogMetafieldArgs as BlogMetafieldArgs,
|
|
6279
6288
|
shop_BlogConnection as BlogConnection,
|
|
6280
6289
|
shop_BlogEdge as BlogEdge,
|
|
6290
|
+
shop_BlogMetafieldArgs as BlogMetafieldArgs,
|
|
6281
6291
|
shop_BlogOrder as BlogOrder,
|
|
6282
6292
|
shop_BlogOrderField as BlogOrderField,
|
|
6283
6293
|
shop_BlogPlatform as BlogPlatform,
|
|
@@ -6294,17 +6304,18 @@ declare namespace shop {
|
|
|
6294
6304
|
shop_CartPlatform as CartPlatform,
|
|
6295
6305
|
shop_CartUserError as CartUserError,
|
|
6296
6306
|
Collection$1 as Collection,
|
|
6297
|
-
shop_CollectionMetafieldArgs as CollectionMetafieldArgs,
|
|
6298
|
-
shop_CollectionProductsArgs as CollectionProductsArgs,
|
|
6299
6307
|
shop_CollectionConnection as CollectionConnection,
|
|
6300
6308
|
shop_CollectionEdge as CollectionEdge,
|
|
6301
6309
|
shop_CollectionMedia as CollectionMedia,
|
|
6302
6310
|
shop_CollectionMediaWhereInput as CollectionMediaWhereInput,
|
|
6311
|
+
shop_CollectionMetafieldArgs as CollectionMetafieldArgs,
|
|
6303
6312
|
shop_CollectionOrder as CollectionOrder,
|
|
6304
6313
|
shop_CollectionOrderField as CollectionOrderField,
|
|
6305
6314
|
shop_CollectionPlatform as CollectionPlatform,
|
|
6306
6315
|
shop_CollectionProductWhereInput as CollectionProductWhereInput,
|
|
6316
|
+
shop_CollectionProductsArgs as CollectionProductsArgs,
|
|
6307
6317
|
shop_CollectionWhereInput as CollectionWhereInput,
|
|
6318
|
+
shop_CustomCode as CustomCode,
|
|
6308
6319
|
shop_Customer as Customer,
|
|
6309
6320
|
shop_CustomerAddress as CustomerAddress,
|
|
6310
6321
|
shop_CustomerAddressPlatform as CustomerAddressPlatform,
|
|
@@ -6329,6 +6340,11 @@ declare namespace shop {
|
|
|
6329
6340
|
shop_EntityFindPublishedThemePageMetaByIdArgs as EntityFindPublishedThemePageMetaByIdArgs,
|
|
6330
6341
|
shop_EntityFindPublishedThemePageOnlineStoreDataByIdArgs as EntityFindPublishedThemePageOnlineStoreDataByIdArgs,
|
|
6331
6342
|
shop_EntityFindPublishedThemeStyleByIdArgs as EntityFindPublishedThemeStyleByIdArgs,
|
|
6343
|
+
shop_Exact as Exact,
|
|
6344
|
+
shop_InputMaybe as InputMaybe,
|
|
6345
|
+
shop_MakeMaybe as MakeMaybe,
|
|
6346
|
+
shop_MakeOptional as MakeOptional,
|
|
6347
|
+
shop_Maybe as Maybe,
|
|
6332
6348
|
shop_Media as Media,
|
|
6333
6349
|
shop_MediaConnection as MediaConnection,
|
|
6334
6350
|
shop_MediaEdge as MediaEdge,
|
|
@@ -6347,10 +6363,10 @@ declare namespace shop {
|
|
|
6347
6363
|
shop_ObjectType as ObjectType,
|
|
6348
6364
|
shop_OrderDirection as OrderDirection,
|
|
6349
6365
|
shop_Page as Page,
|
|
6350
|
-
shop_PageMetafieldArgs as PageMetafieldArgs,
|
|
6351
6366
|
shop_PageConnection as PageConnection,
|
|
6352
6367
|
shop_PageEdge as PageEdge,
|
|
6353
6368
|
shop_PageInfo as PageInfo,
|
|
6369
|
+
shop_PageMetafieldArgs as PageMetafieldArgs,
|
|
6354
6370
|
shop_PageOrder as PageOrder,
|
|
6355
6371
|
shop_PageOrderField as PageOrderField,
|
|
6356
6372
|
shop_PagePlatform as PagePlatform,
|
|
@@ -6364,11 +6380,10 @@ declare namespace shop {
|
|
|
6364
6380
|
shop_PriceRuleWhereInput as PriceRuleWhereInput,
|
|
6365
6381
|
shop_Product as Product,
|
|
6366
6382
|
shop_ProductCollectionsArgs as ProductCollectionsArgs,
|
|
6367
|
-
shop_ProductMediasArgs as ProductMediasArgs,
|
|
6368
|
-
shop_ProductMetafieldArgs as ProductMetafieldArgs,
|
|
6369
|
-
shop_ProductVariantsArgs as ProductVariantsArgs,
|
|
6370
6383
|
shop_ProductConnection as ProductConnection,
|
|
6371
6384
|
shop_ProductEdge as ProductEdge,
|
|
6385
|
+
shop_ProductMediasArgs as ProductMediasArgs,
|
|
6386
|
+
shop_ProductMetafieldArgs as ProductMetafieldArgs,
|
|
6372
6387
|
shop_ProductOption as ProductOption,
|
|
6373
6388
|
shop_ProductOptionPlatform as ProductOptionPlatform,
|
|
6374
6389
|
shop_ProductOptionValue as ProductOptionValue,
|
|
@@ -6379,13 +6394,14 @@ declare namespace shop {
|
|
|
6379
6394
|
shop_ProductOrderField as ProductOrderField,
|
|
6380
6395
|
shop_ProductPlatform as ProductPlatform,
|
|
6381
6396
|
shop_ProductVariant as ProductVariant,
|
|
6382
|
-
shop_ProductVariantMetafieldArgs as ProductVariantMetafieldArgs,
|
|
6383
6397
|
shop_ProductVariantConnection as ProductVariantConnection,
|
|
6384
6398
|
shop_ProductVariantEdge as ProductVariantEdge,
|
|
6399
|
+
shop_ProductVariantMetafieldArgs as ProductVariantMetafieldArgs,
|
|
6385
6400
|
shop_ProductVariantOrder as ProductVariantOrder,
|
|
6386
6401
|
shop_ProductVariantOrderField as ProductVariantOrderField,
|
|
6387
6402
|
shop_ProductVariantPlatform as ProductVariantPlatform,
|
|
6388
6403
|
shop_ProductVariantWhereInput as ProductVariantWhereInput,
|
|
6404
|
+
shop_ProductVariantsArgs as ProductVariantsArgs,
|
|
6389
6405
|
shop_ProductWhereInput as ProductWhereInput,
|
|
6390
6406
|
shop_PublishedCustomSection as PublishedCustomSection,
|
|
6391
6407
|
shop_PublishedCustomSectionType as PublishedCustomSectionType,
|
|
@@ -6410,7 +6426,6 @@ declare namespace shop {
|
|
|
6410
6426
|
shop_PublishedThemeStyle as PublishedThemeStyle,
|
|
6411
6427
|
shop_PublishedThemeStyleWhereInput as PublishedThemeStyleWhereInput,
|
|
6412
6428
|
shop_Query as Query,
|
|
6413
|
-
shop_Query_EntitiesArgs as Query_EntitiesArgs,
|
|
6414
6429
|
shop_QueryArticleArgs as QueryArticleArgs,
|
|
6415
6430
|
shop_QueryArticlesArgs as QueryArticlesArgs,
|
|
6416
6431
|
shop_QueryBlogArgs as QueryBlogArgs,
|
|
@@ -6426,6 +6441,8 @@ declare namespace shop {
|
|
|
6426
6441
|
shop_QueryProductArgs as QueryProductArgs,
|
|
6427
6442
|
shop_QueryProductsArgs as QueryProductsArgs,
|
|
6428
6443
|
shop_QueryPublishedThemePagesArgs as QueryPublishedThemePagesArgs,
|
|
6444
|
+
shop_Query_EntitiesArgs as Query_EntitiesArgs,
|
|
6445
|
+
shop_Scalars as Scalars,
|
|
6429
6446
|
shop_SelectedOption as SelectedOption,
|
|
6430
6447
|
shop_ShopTokenWhereInput as ShopTokenWhereInput,
|
|
6431
6448
|
shop_StoreProperty as StoreProperty,
|
|
@@ -6976,6 +6993,7 @@ type PublishedThemePagesQueryResponse = {
|
|
|
6976
6993
|
themePageDataSEO?: Maybe<Array<Maybe<Pick<DataSeo, 'id' | 'key' | 'value'>>>>;
|
|
6977
6994
|
pageStyle?: Maybe<Pick<PublishedThemeStyle, 'id' | 'data' | 'name'>>;
|
|
6978
6995
|
themePageAnalytic?: Maybe<Pick<Analytic, 'fbPixelID' | 'gaTrackingID' | 'tiktokPixelID'>>;
|
|
6996
|
+
themePageCustomCode?: Maybe<Pick<CustomCode, 'body' | 'header'>>;
|
|
6979
6997
|
}>>>;
|
|
6980
6998
|
};
|
|
6981
6999
|
declare const PublishedThemePagesDocument: string;
|
|
@@ -7039,6 +7057,7 @@ type PreviewPageQueryResponse = {
|
|
|
7039
7057
|
themePageDataSEO?: Maybe<Array<Maybe<Pick<DataSeo, 'id' | 'key' | 'value'>>>>;
|
|
7040
7058
|
pageStyle?: Maybe<Pick<PublishedThemeStyle, 'id' | 'data' | 'name'>>;
|
|
7041
7059
|
themePageAnalytic?: Maybe<Pick<Analytic, 'fbPixelID' | 'gaTrackingID' | 'tiktokPixelID'>>;
|
|
7060
|
+
themePageCustomCode?: Maybe<Pick<CustomCode, 'body' | 'header'>>;
|
|
7042
7061
|
}>;
|
|
7043
7062
|
};
|
|
7044
7063
|
declare const PreviewPageDocument: string;
|
|
@@ -7163,9 +7182,9 @@ declare const addToCart$2: (product: ProductInputAnalytic) => void;
|
|
|
7163
7182
|
declare const fpixel_event: typeof event;
|
|
7164
7183
|
declare namespace fpixel {
|
|
7165
7184
|
export {
|
|
7166
|
-
pageview$1 as pageview,
|
|
7167
|
-
fpixel_event as event,
|
|
7168
7185
|
addToCart$2 as addToCart,
|
|
7186
|
+
fpixel_event as event,
|
|
7187
|
+
pageview$1 as pageview,
|
|
7169
7188
|
};
|
|
7170
7189
|
}
|
|
7171
7190
|
|
|
@@ -7193,8 +7212,8 @@ declare const gtag_productDetail: typeof productDetail;
|
|
|
7193
7212
|
declare const gtag_removeFromCart: typeof removeFromCart;
|
|
7194
7213
|
declare namespace gtag {
|
|
7195
7214
|
export {
|
|
7196
|
-
gtag_pageview as pageview,
|
|
7197
7215
|
addToCart$1 as addToCart,
|
|
7216
|
+
gtag_pageview as pageview,
|
|
7198
7217
|
gtag_productClick as productClick,
|
|
7199
7218
|
gtag_productDetail as productDetail,
|
|
7200
7219
|
gtag_removeFromCart as removeFromCart,
|
|
@@ -7391,6 +7410,7 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' |
|
|
|
7391
7410
|
themePageDataSEO?: Maybe<Array<Maybe<Pick<DataSeo, 'id' | 'key' | 'value'>>>>;
|
|
7392
7411
|
pageStyle?: Maybe<Pick<PublishedThemeStyle, 'id' | 'data' | 'name'>>;
|
|
7393
7412
|
themePageAnalytic?: Maybe<Pick<Analytic, 'fbPixelID' | 'gaTrackingID' | 'tiktokPixelID'>>;
|
|
7413
|
+
themePageCustomCode?: Maybe<Pick<CustomCode, 'body' | 'header'>>;
|
|
7394
7414
|
};
|
|
7395
7415
|
|
|
7396
7416
|
type OrderByType = 'TITLE_ASC' | 'TITLE_DESC' | 'CREATED_AT_ASC' | undefined | 'none' | 'CREATED_AT_DESC';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-error-boundary": "^3.1.4",
|
|
32
32
|
"swr": "^2.0.0",
|
|
33
33
|
"vanilla-lazyload": "17.8.3",
|
|
34
|
-
"zustand": "^4.
|
|
34
|
+
"zustand": "^4.2.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": "^17 || ^18",
|