@graphcommerce/next-config 8.1.0-canary.39 → 8.1.0-canary.41
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 8.1.0-canary.41
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2242](https://github.com/graphcommerce-org/graphcommerce/pull/2242) [`a4cce76`](https://github.com/graphcommerce-org/graphcommerce/commit/a4cce76ca37af2bec604e953ada4bb11bd91f55d) - Add option to show an extended version of the pagination component. Configurable via the "productListPaginationVariant" key in your graphcommerce.config.js
|
|
8
|
+
COMPACT means: "< Page X of Y >"
|
|
9
|
+
EXTENDED means: "< 1 2 ... [5] ... 10 11 >" ([@FrankHarland](https://github.com/FrankHarland))
|
|
10
|
+
|
|
11
|
+
## 8.1.0-canary.40
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#2306](https://github.com/graphcommerce-org/graphcommerce/pull/2306) [`5e188e8`](https://github.com/graphcommerce-org/graphcommerce/commit/5e188e830dca4730c73830858f59a94e9d41ed12) - Add delete account functionality to the account section. Disabled by default and can be enabled through the config.
|
|
16
|
+
([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
17
|
+
|
|
3
18
|
## 8.1.0-canary.39
|
|
4
19
|
|
|
5
20
|
## 8.1.0-canary.38
|
|
@@ -38,6 +38,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
|
|
|
38
38
|
"GC_CROSS_SELLS_HIDE_CART_ITEMS",
|
|
39
39
|
"GC_CROSS_SELLS_REDIRECT_ITEMS",
|
|
40
40
|
"GC_CUSTOMER_COMPANY_FIELDS_ENABLE",
|
|
41
|
+
"GC_CUSTOMER_DELETE_ENABLED",
|
|
41
42
|
"GC_DATA_LAYER",
|
|
42
43
|
"GC_DATA_LAYER_CORE_WEB_VITALS",
|
|
43
44
|
"GC_DEBUG",
|
|
@@ -61,6 +62,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
|
|
|
61
62
|
"GC_PREVIEW_SECRET",
|
|
62
63
|
"GC_PRODUCT_FILTERS_LAYOUT",
|
|
63
64
|
"GC_PRODUCT_FILTERS_PRO",
|
|
65
|
+
"GC_PRODUCT_LIST_PAGINATION_VARIANT",
|
|
64
66
|
"GC_PRODUCT_ROUTE",
|
|
65
67
|
"GC_RECENTLY_VIEWED_PRODUCTS",
|
|
66
68
|
"GC_RECENTLY_VIEWED_PRODUCTS_ENABLED",
|
|
@@ -36,6 +36,7 @@ exports.demoConfig = {
|
|
|
36
36
|
],
|
|
37
37
|
productFiltersPro: true,
|
|
38
38
|
productFiltersLayout: 'DEFAULT',
|
|
39
|
+
productListPaginationVariant: 'COMPACT',
|
|
39
40
|
compareVariant: 'ICON',
|
|
40
41
|
robotsAllow: false,
|
|
41
42
|
demoMode: true,
|
|
@@ -46,4 +47,5 @@ exports.demoConfig = {
|
|
|
46
47
|
configurableVariantValues: { url: true, content: true, gallery: true },
|
|
47
48
|
recentlyViewedProducts: { enabled: true, maxCount: 20 },
|
|
48
49
|
breadcrumbs: false,
|
|
50
|
+
customerDeleteEnabled: true,
|
|
49
51
|
};
|
package/dist/generated/config.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SidebarGalleryConfigSchema = exports.RecentlyViewedProductsConfigSchema = exports.MagentoConfigurableVariantValuesSchema = exports.GraphCommerceStorefrontConfigSchema = exports.GraphCommerceDebugConfigSchema = exports.GraphCommerceConfigSchema = exports.DatalayerConfigSchema = exports.SidebarGalleryPaginationVariantSchema = exports.ProductFiltersLayoutSchema = exports.CompareVariantSchema = exports.definedNonNullAnySchema = exports.isDefinedNonNullAny = void 0;
|
|
3
|
+
exports.SidebarGalleryConfigSchema = exports.RecentlyViewedProductsConfigSchema = exports.MagentoConfigurableVariantValuesSchema = exports.GraphCommerceStorefrontConfigSchema = exports.GraphCommerceDebugConfigSchema = exports.GraphCommerceConfigSchema = exports.DatalayerConfigSchema = exports.SidebarGalleryPaginationVariantSchema = exports.ProductFiltersLayoutSchema = exports.PaginationVariantSchema = exports.CompareVariantSchema = exports.definedNonNullAnySchema = exports.isDefinedNonNullAny = void 0;
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const isDefinedNonNullAny = (v) => v !== undefined && v !== null;
|
|
7
7
|
exports.isDefinedNonNullAny = isDefinedNonNullAny;
|
|
8
8
|
exports.definedNonNullAnySchema = zod_1.z.any().refine((v) => (0, exports.isDefinedNonNullAny)(v));
|
|
9
9
|
exports.CompareVariantSchema = zod_1.z.enum(['CHECKBOX', 'ICON']);
|
|
10
|
+
exports.PaginationVariantSchema = zod_1.z.enum(['COMPACT', 'EXTENDED']);
|
|
10
11
|
exports.ProductFiltersLayoutSchema = zod_1.z.enum(['DEFAULT', 'SIDEBAR']);
|
|
11
12
|
exports.SidebarGalleryPaginationVariantSchema = zod_1.z.enum(['DOTS', 'THUMBNAILS_BOTTOM']);
|
|
12
13
|
function DatalayerConfigSchema() {
|
|
@@ -27,6 +28,7 @@ function GraphCommerceConfigSchema() {
|
|
|
27
28
|
crossSellsHideCartItems: zod_1.z.boolean().default(false).nullish(),
|
|
28
29
|
crossSellsRedirectItems: zod_1.z.boolean().default(false).nullish(),
|
|
29
30
|
customerCompanyFieldsEnable: zod_1.z.boolean().nullish(),
|
|
31
|
+
customerDeleteEnabled: zod_1.z.boolean().nullish(),
|
|
30
32
|
dataLayer: DatalayerConfigSchema().nullish(),
|
|
31
33
|
debug: GraphCommerceDebugConfigSchema().nullish(),
|
|
32
34
|
demoMode: zod_1.z.boolean().default(true).nullish(),
|
|
@@ -45,6 +47,7 @@ function GraphCommerceConfigSchema() {
|
|
|
45
47
|
previewSecret: zod_1.z.string().nullish(),
|
|
46
48
|
productFiltersLayout: exports.ProductFiltersLayoutSchema.default("DEFAULT").nullish(),
|
|
47
49
|
productFiltersPro: zod_1.z.boolean().nullish(),
|
|
50
|
+
productListPaginationVariant: exports.PaginationVariantSchema.nullish(),
|
|
48
51
|
productRoute: zod_1.z.string().nullish(),
|
|
49
52
|
recentlyViewedProducts: RecentlyViewedProductsConfigSchema().nullish(),
|
|
50
53
|
robotsAllow: zod_1.z.boolean().nullish(),
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/next-config",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "8.1.0-canary.
|
|
5
|
+
"version": "8.1.0-canary.41",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "src/index.ts",
|
package/src/config/demoConfig.ts
CHANGED
|
@@ -38,6 +38,7 @@ export const demoConfig: PartialDeep<GraphCommerceConfig, { recurseIntoArrays: t
|
|
|
38
38
|
],
|
|
39
39
|
productFiltersPro: true,
|
|
40
40
|
productFiltersLayout: 'DEFAULT',
|
|
41
|
+
productListPaginationVariant: 'COMPACT',
|
|
41
42
|
compareVariant: 'ICON',
|
|
42
43
|
robotsAllow: false,
|
|
43
44
|
|
|
@@ -49,4 +50,5 @@ export const demoConfig: PartialDeep<GraphCommerceConfig, { recurseIntoArrays: t
|
|
|
49
50
|
configurableVariantValues: { url: true, content: true, gallery: true },
|
|
50
51
|
recentlyViewedProducts: { enabled: true, maxCount: 20 },
|
|
51
52
|
breadcrumbs: false,
|
|
53
|
+
customerDeleteEnabled: true,
|
|
52
54
|
}
|
package/src/generated/config.ts
CHANGED
|
@@ -165,6 +165,8 @@ export type GraphCommerceConfig = {
|
|
|
165
165
|
* - VAT ID
|
|
166
166
|
*/
|
|
167
167
|
customerCompanyFieldsEnable?: InputMaybe<Scalars['Boolean']['input']>;
|
|
168
|
+
/** Enable customer account deletion through the account section */
|
|
169
|
+
customerDeleteEnabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
168
170
|
dataLayer?: InputMaybe<DatalayerConfig>;
|
|
169
171
|
/** Debug configuration for GraphCommerce */
|
|
170
172
|
debug?: InputMaybe<GraphCommerceDebugConfig>;
|
|
@@ -291,6 +293,13 @@ export type GraphCommerceConfig = {
|
|
|
291
293
|
productFiltersLayout?: InputMaybe<ProductFiltersLayout>;
|
|
292
294
|
/** Product filters with better UI for mobile and desktop. */
|
|
293
295
|
productFiltersPro?: InputMaybe<Scalars['Boolean']['input']>;
|
|
296
|
+
/**
|
|
297
|
+
* Pagination variant for the product listings.
|
|
298
|
+
*
|
|
299
|
+
* COMPACT means: "< Page X of Y >"
|
|
300
|
+
* EXTENDED means: "< 1 2 ... 4 [5] 6 ... 10 11 >"
|
|
301
|
+
*/
|
|
302
|
+
productListPaginationVariant?: InputMaybe<PaginationVariant>;
|
|
294
303
|
/**
|
|
295
304
|
* By default we route products to /p/[url] but you can change this to /product/[url] if you wish.
|
|
296
305
|
*
|
|
@@ -420,6 +429,10 @@ export type MagentoConfigurableVariantValues = {
|
|
|
420
429
|
url?: InputMaybe<Scalars['Boolean']['input']>;
|
|
421
430
|
};
|
|
422
431
|
|
|
432
|
+
export type PaginationVariant =
|
|
433
|
+
| 'COMPACT'
|
|
434
|
+
| 'EXTENDED';
|
|
435
|
+
|
|
423
436
|
export type ProductFiltersLayout =
|
|
424
437
|
| 'DEFAULT'
|
|
425
438
|
| 'SIDEBAR';
|
|
@@ -456,6 +469,8 @@ export const definedNonNullAnySchema = z.any().refine((v) => isDefinedNonNullAny
|
|
|
456
469
|
|
|
457
470
|
export const CompareVariantSchema = z.enum(['CHECKBOX', 'ICON']);
|
|
458
471
|
|
|
472
|
+
export const PaginationVariantSchema = z.enum(['COMPACT', 'EXTENDED']);
|
|
473
|
+
|
|
459
474
|
export const ProductFiltersLayoutSchema = z.enum(['DEFAULT', 'SIDEBAR']);
|
|
460
475
|
|
|
461
476
|
export const SidebarGalleryPaginationVariantSchema = z.enum(['DOTS', 'THUMBNAILS_BOTTOM']);
|
|
@@ -478,6 +493,7 @@ export function GraphCommerceConfigSchema(): z.ZodObject<Properties<GraphCommerc
|
|
|
478
493
|
crossSellsHideCartItems: z.boolean().default(false).nullish(),
|
|
479
494
|
crossSellsRedirectItems: z.boolean().default(false).nullish(),
|
|
480
495
|
customerCompanyFieldsEnable: z.boolean().nullish(),
|
|
496
|
+
customerDeleteEnabled: z.boolean().nullish(),
|
|
481
497
|
dataLayer: DatalayerConfigSchema().nullish(),
|
|
482
498
|
debug: GraphCommerceDebugConfigSchema().nullish(),
|
|
483
499
|
demoMode: z.boolean().default(true).nullish(),
|
|
@@ -496,6 +512,7 @@ export function GraphCommerceConfigSchema(): z.ZodObject<Properties<GraphCommerc
|
|
|
496
512
|
previewSecret: z.string().nullish(),
|
|
497
513
|
productFiltersLayout: ProductFiltersLayoutSchema.default("DEFAULT").nullish(),
|
|
498
514
|
productFiltersPro: z.boolean().nullish(),
|
|
515
|
+
productListPaginationVariant: PaginationVariantSchema.nullish(),
|
|
499
516
|
productRoute: z.string().nullish(),
|
|
500
517
|
recentlyViewedProducts: RecentlyViewedProductsConfigSchema().nullish(),
|
|
501
518
|
robotsAllow: z.boolean().nullish(),
|