@graphcommerce/next-config 8.1.0-canary.37 → 8.1.0-canary.39

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,14 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.1.0-canary.39
4
+
5
+ ## 8.1.0-canary.38
6
+
7
+ ### Minor Changes
8
+
9
+ - [#2305](https://github.com/graphcommerce-org/graphcommerce/pull/2305) [`77e8297`](https://github.com/graphcommerce-org/graphcommerce/commit/77e82976816994336c616208a651cb18ce9ea270) - Add company and vat fields to shipping and billing forms
10
+ ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
11
+
3
12
  ## 8.1.0-canary.37
4
13
 
5
14
  ## 8.1.0-canary.36
@@ -37,6 +37,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
37
37
  "GC_CONFIGURABLE_VARIANT_VALUES_URL",
38
38
  "GC_CROSS_SELLS_HIDE_CART_ITEMS",
39
39
  "GC_CROSS_SELLS_REDIRECT_ITEMS",
40
+ "GC_CUSTOMER_COMPANY_FIELDS_ENABLE",
40
41
  "GC_DATA_LAYER",
41
42
  "GC_DATA_LAYER_CORE_WEB_VITALS",
42
43
  "GC_DEBUG",
@@ -71,6 +72,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
71
72
  "GC_STOREFRONT_0",
72
73
  "GC_STOREFRONT_0_CANONICAL_BASE_URL",
73
74
  "GC_STOREFRONT_0_CART_DISPLAY_PRICES_INCL_TAX",
75
+ "GC_STOREFRONT_0_CUSTOMER_COMPANY_FIELDS_ENABLE",
74
76
  "GC_STOREFRONT_0_DEFAULT_LOCALE",
75
77
  "GC_STOREFRONT_0_DOMAIN",
76
78
  "GC_STOREFRONT_0_GOOGLE_ANALYTICS_ID",
@@ -105,6 +107,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
105
107
  "GC_STOREFRONT_1",
106
108
  "GC_STOREFRONT_1_CANONICAL_BASE_URL",
107
109
  "GC_STOREFRONT_1_CART_DISPLAY_PRICES_INCL_TAX",
110
+ "GC_STOREFRONT_1_CUSTOMER_COMPANY_FIELDS_ENABLE",
108
111
  "GC_STOREFRONT_1_DEFAULT_LOCALE",
109
112
  "GC_STOREFRONT_1_DOMAIN",
110
113
  "GC_STOREFRONT_1_GOOGLE_ANALYTICS_ID",
@@ -139,6 +142,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
139
142
  "GC_STOREFRONT_2",
140
143
  "GC_STOREFRONT_2_CANONICAL_BASE_URL",
141
144
  "GC_STOREFRONT_2_CART_DISPLAY_PRICES_INCL_TAX",
145
+ "GC_STOREFRONT_2_CUSTOMER_COMPANY_FIELDS_ENABLE",
142
146
  "GC_STOREFRONT_2_DEFAULT_LOCALE",
143
147
  "GC_STOREFRONT_2_DOMAIN",
144
148
  "GC_STOREFRONT_2_GOOGLE_ANALYTICS_ID",
@@ -173,6 +177,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
173
177
  "GC_STOREFRONT_3",
174
178
  "GC_STOREFRONT_3_CANONICAL_BASE_URL",
175
179
  "GC_STOREFRONT_3_CART_DISPLAY_PRICES_INCL_TAX",
180
+ "GC_STOREFRONT_3_CUSTOMER_COMPANY_FIELDS_ENABLE",
176
181
  "GC_STOREFRONT_3_DEFAULT_LOCALE",
177
182
  "GC_STOREFRONT_3_DOMAIN",
178
183
  "GC_STOREFRONT_3_GOOGLE_ANALYTICS_ID",
@@ -207,6 +212,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
207
212
  "GC_STOREFRONT_4",
208
213
  "GC_STOREFRONT_4_CANONICAL_BASE_URL",
209
214
  "GC_STOREFRONT_4_CART_DISPLAY_PRICES_INCL_TAX",
215
+ "GC_STOREFRONT_4_CUSTOMER_COMPANY_FIELDS_ENABLE",
210
216
  "GC_STOREFRONT_4_DEFAULT_LOCALE",
211
217
  "GC_STOREFRONT_4_DOMAIN",
212
218
  "GC_STOREFRONT_4_GOOGLE_ANALYTICS_ID",
@@ -241,6 +247,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
241
247
  "GC_STOREFRONT_5",
242
248
  "GC_STOREFRONT_5_CANONICAL_BASE_URL",
243
249
  "GC_STOREFRONT_5_CART_DISPLAY_PRICES_INCL_TAX",
250
+ "GC_STOREFRONT_5_CUSTOMER_COMPANY_FIELDS_ENABLE",
244
251
  "GC_STOREFRONT_5_DEFAULT_LOCALE",
245
252
  "GC_STOREFRONT_5_DOMAIN",
246
253
  "GC_STOREFRONT_5_GOOGLE_ANALYTICS_ID",
@@ -275,6 +282,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
275
282
  "GC_STOREFRONT_6",
276
283
  "GC_STOREFRONT_6_CANONICAL_BASE_URL",
277
284
  "GC_STOREFRONT_6_CART_DISPLAY_PRICES_INCL_TAX",
285
+ "GC_STOREFRONT_6_CUSTOMER_COMPANY_FIELDS_ENABLE",
278
286
  "GC_STOREFRONT_6_DEFAULT_LOCALE",
279
287
  "GC_STOREFRONT_6_DOMAIN",
280
288
  "GC_STOREFRONT_6_GOOGLE_ANALYTICS_ID",
@@ -309,6 +317,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
309
317
  "GC_STOREFRONT_7",
310
318
  "GC_STOREFRONT_7_CANONICAL_BASE_URL",
311
319
  "GC_STOREFRONT_7_CART_DISPLAY_PRICES_INCL_TAX",
320
+ "GC_STOREFRONT_7_CUSTOMER_COMPANY_FIELDS_ENABLE",
312
321
  "GC_STOREFRONT_7_DEFAULT_LOCALE",
313
322
  "GC_STOREFRONT_7_DOMAIN",
314
323
  "GC_STOREFRONT_7_GOOGLE_ANALYTICS_ID",
@@ -343,6 +352,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
343
352
  "GC_STOREFRONT_8",
344
353
  "GC_STOREFRONT_8_CANONICAL_BASE_URL",
345
354
  "GC_STOREFRONT_8_CART_DISPLAY_PRICES_INCL_TAX",
355
+ "GC_STOREFRONT_8_CUSTOMER_COMPANY_FIELDS_ENABLE",
346
356
  "GC_STOREFRONT_8_DEFAULT_LOCALE",
347
357
  "GC_STOREFRONT_8_DOMAIN",
348
358
  "GC_STOREFRONT_8_GOOGLE_ANALYTICS_ID",
@@ -377,6 +387,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
377
387
  "GC_STOREFRONT_9",
378
388
  "GC_STOREFRONT_9_CANONICAL_BASE_URL",
379
389
  "GC_STOREFRONT_9_CART_DISPLAY_PRICES_INCL_TAX",
390
+ "GC_STOREFRONT_9_CUSTOMER_COMPANY_FIELDS_ENABLE",
380
391
  "GC_STOREFRONT_9_DEFAULT_LOCALE",
381
392
  "GC_STOREFRONT_9_DOMAIN",
382
393
  "GC_STOREFRONT_9_GOOGLE_ANALYTICS_ID",
@@ -411,6 +422,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
411
422
  "GC_STOREFRONT_10",
412
423
  "GC_STOREFRONT_10_CANONICAL_BASE_URL",
413
424
  "GC_STOREFRONT_10_CART_DISPLAY_PRICES_INCL_TAX",
425
+ "GC_STOREFRONT_10_CUSTOMER_COMPANY_FIELDS_ENABLE",
414
426
  "GC_STOREFRONT_10_DEFAULT_LOCALE",
415
427
  "GC_STOREFRONT_10_DOMAIN",
416
428
  "GC_STOREFRONT_10_GOOGLE_ANALYTICS_ID",
@@ -445,6 +457,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
445
457
  "GC_STOREFRONT_11",
446
458
  "GC_STOREFRONT_11_CANONICAL_BASE_URL",
447
459
  "GC_STOREFRONT_11_CART_DISPLAY_PRICES_INCL_TAX",
460
+ "GC_STOREFRONT_11_CUSTOMER_COMPANY_FIELDS_ENABLE",
448
461
  "GC_STOREFRONT_11_DEFAULT_LOCALE",
449
462
  "GC_STOREFRONT_11_DOMAIN",
450
463
  "GC_STOREFRONT_11_GOOGLE_ANALYTICS_ID",
@@ -479,6 +492,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
479
492
  "GC_STOREFRONT_12",
480
493
  "GC_STOREFRONT_12_CANONICAL_BASE_URL",
481
494
  "GC_STOREFRONT_12_CART_DISPLAY_PRICES_INCL_TAX",
495
+ "GC_STOREFRONT_12_CUSTOMER_COMPANY_FIELDS_ENABLE",
482
496
  "GC_STOREFRONT_12_DEFAULT_LOCALE",
483
497
  "GC_STOREFRONT_12_DOMAIN",
484
498
  "GC_STOREFRONT_12_GOOGLE_ANALYTICS_ID",
@@ -513,6 +527,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
513
527
  "GC_STOREFRONT_13",
514
528
  "GC_STOREFRONT_13_CANONICAL_BASE_URL",
515
529
  "GC_STOREFRONT_13_CART_DISPLAY_PRICES_INCL_TAX",
530
+ "GC_STOREFRONT_13_CUSTOMER_COMPANY_FIELDS_ENABLE",
516
531
  "GC_STOREFRONT_13_DEFAULT_LOCALE",
517
532
  "GC_STOREFRONT_13_DOMAIN",
518
533
  "GC_STOREFRONT_13_GOOGLE_ANALYTICS_ID",
@@ -547,6 +562,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
547
562
  "GC_STOREFRONT_14",
548
563
  "GC_STOREFRONT_14_CANONICAL_BASE_URL",
549
564
  "GC_STOREFRONT_14_CART_DISPLAY_PRICES_INCL_TAX",
565
+ "GC_STOREFRONT_14_CUSTOMER_COMPANY_FIELDS_ENABLE",
550
566
  "GC_STOREFRONT_14_DEFAULT_LOCALE",
551
567
  "GC_STOREFRONT_14_DOMAIN",
552
568
  "GC_STOREFRONT_14_GOOGLE_ANALYTICS_ID",
@@ -581,6 +597,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
581
597
  "GC_STOREFRONT_15",
582
598
  "GC_STOREFRONT_15_CANONICAL_BASE_URL",
583
599
  "GC_STOREFRONT_15_CART_DISPLAY_PRICES_INCL_TAX",
600
+ "GC_STOREFRONT_15_CUSTOMER_COMPANY_FIELDS_ENABLE",
584
601
  "GC_STOREFRONT_15_DEFAULT_LOCALE",
585
602
  "GC_STOREFRONT_15_DOMAIN",
586
603
  "GC_STOREFRONT_15_GOOGLE_ANALYTICS_ID",
@@ -615,6 +632,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
615
632
  "GC_STOREFRONT_16",
616
633
  "GC_STOREFRONT_16_CANONICAL_BASE_URL",
617
634
  "GC_STOREFRONT_16_CART_DISPLAY_PRICES_INCL_TAX",
635
+ "GC_STOREFRONT_16_CUSTOMER_COMPANY_FIELDS_ENABLE",
618
636
  "GC_STOREFRONT_16_DEFAULT_LOCALE",
619
637
  "GC_STOREFRONT_16_DOMAIN",
620
638
  "GC_STOREFRONT_16_GOOGLE_ANALYTICS_ID",
@@ -649,6 +667,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
649
667
  "GC_STOREFRONT_17",
650
668
  "GC_STOREFRONT_17_CANONICAL_BASE_URL",
651
669
  "GC_STOREFRONT_17_CART_DISPLAY_PRICES_INCL_TAX",
670
+ "GC_STOREFRONT_17_CUSTOMER_COMPANY_FIELDS_ENABLE",
652
671
  "GC_STOREFRONT_17_DEFAULT_LOCALE",
653
672
  "GC_STOREFRONT_17_DOMAIN",
654
673
  "GC_STOREFRONT_17_GOOGLE_ANALYTICS_ID",
@@ -683,6 +702,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
683
702
  "GC_STOREFRONT_18",
684
703
  "GC_STOREFRONT_18_CANONICAL_BASE_URL",
685
704
  "GC_STOREFRONT_18_CART_DISPLAY_PRICES_INCL_TAX",
705
+ "GC_STOREFRONT_18_CUSTOMER_COMPANY_FIELDS_ENABLE",
686
706
  "GC_STOREFRONT_18_DEFAULT_LOCALE",
687
707
  "GC_STOREFRONT_18_DOMAIN",
688
708
  "GC_STOREFRONT_18_GOOGLE_ANALYTICS_ID",
@@ -717,6 +737,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
717
737
  "GC_STOREFRONT_19",
718
738
  "GC_STOREFRONT_19_CANONICAL_BASE_URL",
719
739
  "GC_STOREFRONT_19_CART_DISPLAY_PRICES_INCL_TAX",
740
+ "GC_STOREFRONT_19_CUSTOMER_COMPANY_FIELDS_ENABLE",
720
741
  "GC_STOREFRONT_19_DEFAULT_LOCALE",
721
742
  "GC_STOREFRONT_19_DOMAIN",
722
743
  "GC_STOREFRONT_19_GOOGLE_ANALYTICS_ID",
@@ -751,6 +772,7 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
751
772
  "GC_STOREFRONT_20",
752
773
  "GC_STOREFRONT_20_CANONICAL_BASE_URL",
753
774
  "GC_STOREFRONT_20_CART_DISPLAY_PRICES_INCL_TAX",
775
+ "GC_STOREFRONT_20_CUSTOMER_COMPANY_FIELDS_ENABLE",
754
776
  "GC_STOREFRONT_20_DEFAULT_LOCALE",
755
777
  "GC_STOREFRONT_20_DOMAIN",
756
778
  "GC_STOREFRONT_20_GOOGLE_ANALYTICS_ID",
@@ -26,6 +26,7 @@ function GraphCommerceConfigSchema() {
26
26
  configurableVariantValues: MagentoConfigurableVariantValuesSchema().nullish(),
27
27
  crossSellsHideCartItems: zod_1.z.boolean().default(false).nullish(),
28
28
  crossSellsRedirectItems: zod_1.z.boolean().default(false).nullish(),
29
+ customerCompanyFieldsEnable: zod_1.z.boolean().nullish(),
29
30
  dataLayer: DatalayerConfigSchema().nullish(),
30
31
  debug: GraphCommerceDebugConfigSchema().nullish(),
31
32
  demoMode: zod_1.z.boolean().default(true).nullish(),
@@ -67,6 +68,7 @@ function GraphCommerceStorefrontConfigSchema() {
67
68
  return zod_1.z.object({
68
69
  canonicalBaseUrl: zod_1.z.string().nullish(),
69
70
  cartDisplayPricesInclTax: zod_1.z.boolean().nullish(),
71
+ customerCompanyFieldsEnable: zod_1.z.boolean().nullish(),
70
72
  defaultLocale: zod_1.z.boolean().nullish(),
71
73
  domain: zod_1.z.string().nullish(),
72
74
  googleAnalyticsId: zod_1.z.string().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.37",
5
+ "version": "8.1.0-canary.39",
6
6
  "type": "commonjs",
7
7
  "main": "dist/index.js",
8
8
  "types": "src/index.ts",
@@ -159,6 +159,12 @@ export type GraphCommerceConfig = {
159
159
  * Default: 'false'
160
160
  */
161
161
  crossSellsRedirectItems?: InputMaybe<Scalars['Boolean']['input']>;
162
+ /**
163
+ * Enables company fields inside the checkout:
164
+ * - Company name
165
+ * - VAT ID
166
+ */
167
+ customerCompanyFieldsEnable?: InputMaybe<Scalars['Boolean']['input']>;
162
168
  dataLayer?: InputMaybe<DatalayerConfig>;
163
169
  /** Debug configuration for GraphCommerce */
164
170
  debug?: InputMaybe<GraphCommerceDebugConfig>;
@@ -345,6 +351,12 @@ export type GraphCommerceStorefrontConfig = {
345
351
  canonicalBaseUrl?: InputMaybe<Scalars['String']['input']>;
346
352
  /** Due to a limitation of the GraphQL API it is not possible to determine if a cart should be displayed including or excluding tax. */
347
353
  cartDisplayPricesInclTax?: InputMaybe<Scalars['Boolean']['input']>;
354
+ /**
355
+ * Enables company fields inside the checkout:
356
+ * - Company name
357
+ * - VAT ID
358
+ */
359
+ customerCompanyFieldsEnable?: InputMaybe<Scalars['Boolean']['input']>;
348
360
  /**
349
361
  * There can only be one entry with defaultLocale set to true.
350
362
  * - If there are more, the first one is used.
@@ -465,6 +477,7 @@ export function GraphCommerceConfigSchema(): z.ZodObject<Properties<GraphCommerc
465
477
  configurableVariantValues: MagentoConfigurableVariantValuesSchema().nullish(),
466
478
  crossSellsHideCartItems: z.boolean().default(false).nullish(),
467
479
  crossSellsRedirectItems: z.boolean().default(false).nullish(),
480
+ customerCompanyFieldsEnable: z.boolean().nullish(),
468
481
  dataLayer: DatalayerConfigSchema().nullish(),
469
482
  debug: GraphCommerceDebugConfigSchema().nullish(),
470
483
  demoMode: z.boolean().default(true).nullish(),
@@ -506,6 +519,7 @@ export function GraphCommerceStorefrontConfigSchema(): z.ZodObject<Properties<Gr
506
519
  return z.object({
507
520
  canonicalBaseUrl: z.string().nullish(),
508
521
  cartDisplayPricesInclTax: z.boolean().nullish(),
522
+ customerCompanyFieldsEnable: z.boolean().nullish(),
509
523
  defaultLocale: z.boolean().nullish(),
510
524
  domain: z.string().nullish(),
511
525
  googleAnalyticsId: z.string().nullish(),