@graphcommerce/next-config 8.0.5 → 8.0.6-canary.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/CHANGELOG.md +14 -0
- package/Config.graphqls +4 -2
- package/dist/config/demoConfig.js +19 -4
- package/package.json +1 -1
- package/src/config/demoConfig.ts +19 -4
- package/src/generated/config.ts +11 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 8.0.6-canary.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2213](https://github.com/graphcommerce-org/graphcommerce/pull/2213) [`9b8349f`](https://github.com/graphcommerce-org/graphcommerce/commit/9b8349f0001a786f9b1666f050ae226316bd16f3) - Removed the ProductPage query from the examples directory as it isn't used anymore
|
|
8
|
+
([@paales](https://github.com/paales))
|
|
9
|
+
|
|
10
|
+
## 8.0.6-canary.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#2196](https://github.com/graphcommerce-org/graphcommerce/pull/2196) [`84c50e4`](https://github.com/graphcommerce-org/graphcommerce/commit/84c50e49a1a7f154d4a8f4045c37e773e20283ad) - Allow Lingui to use linguiLocale with country identifiers like `en-us`, it would always load `en` in this case. Introced a new `useLocale` hook to use the correct locale string to use in Intl methods.
|
|
15
|
+
([@paales](https://github.com/paales))
|
|
16
|
+
|
|
3
17
|
## 8.0.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/Config.graphqls
CHANGED
|
@@ -58,7 +58,7 @@ Examples:
|
|
|
58
58
|
|
|
59
59
|
You can export configuration by running `yarn graphcommerce export-config`
|
|
60
60
|
|
|
61
|
-
## Extending the configuration in your
|
|
61
|
+
## Extending the configuration in your project
|
|
62
62
|
|
|
63
63
|
Create a graphql/Config.graphqls file in your project and extend the GraphCommerceConfig, GraphCommerceStorefrontConfig inputs to add configuration.
|
|
64
64
|
|
|
@@ -132,7 +132,9 @@ input GraphCommerceStorefrontConfig {
|
|
|
132
132
|
domain: String
|
|
133
133
|
|
|
134
134
|
"""
|
|
135
|
-
Must be a locale string
|
|
135
|
+
Must be a [locale string](https://www.unicode.org/reports/tr35/tr35-59/tr35.html#Identifiers) for automatic redirects to work.
|
|
136
|
+
|
|
137
|
+
This value can be used as a sub-path identifier only, make sure linguiLocale is configured for each URL.
|
|
136
138
|
"""
|
|
137
139
|
locale: String!
|
|
138
140
|
|
|
@@ -13,10 +13,25 @@ exports.demoConfig = {
|
|
|
13
13
|
hygraphLocales: ['nl', 'en_us'],
|
|
14
14
|
cartDisplayPricesInclTax: true,
|
|
15
15
|
},
|
|
16
|
-
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
{
|
|
17
|
+
locale: 'fr-be',
|
|
18
|
+
magentoStoreCode: 'fr_BE',
|
|
19
|
+
cartDisplayPricesInclTax: true,
|
|
20
|
+
linguiLocale: 'fr',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
locale: 'nl-be',
|
|
24
|
+
magentoStoreCode: 'nl_BE',
|
|
25
|
+
cartDisplayPricesInclTax: true,
|
|
26
|
+
linguiLocale: 'nl',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
locale: 'en-gb',
|
|
30
|
+
magentoStoreCode: 'en_GB',
|
|
31
|
+
cartDisplayPricesInclTax: true,
|
|
32
|
+
linguiLocale: 'en',
|
|
33
|
+
},
|
|
34
|
+
{ locale: 'en-ca', magentoStoreCode: 'en_CA', linguiLocale: 'en' },
|
|
20
35
|
],
|
|
21
36
|
productFiltersPro: true,
|
|
22
37
|
productFiltersLayout: 'DEFAULT',
|
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.0.
|
|
5
|
+
"version": "8.0.6-canary.1",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "src/index.ts",
|
package/src/config/demoConfig.ts
CHANGED
|
@@ -15,10 +15,25 @@ export const demoConfig: PartialDeep<GraphCommerceConfig, { recurseIntoArrays: t
|
|
|
15
15
|
hygraphLocales: ['nl', 'en_us'],
|
|
16
16
|
cartDisplayPricesInclTax: true,
|
|
17
17
|
},
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
{
|
|
19
|
+
locale: 'fr-be',
|
|
20
|
+
magentoStoreCode: 'fr_BE',
|
|
21
|
+
cartDisplayPricesInclTax: true,
|
|
22
|
+
linguiLocale: 'fr',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
locale: 'nl-be',
|
|
26
|
+
magentoStoreCode: 'nl_BE',
|
|
27
|
+
cartDisplayPricesInclTax: true,
|
|
28
|
+
linguiLocale: 'nl',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
locale: 'en-gb',
|
|
32
|
+
magentoStoreCode: 'en_GB',
|
|
33
|
+
cartDisplayPricesInclTax: true,
|
|
34
|
+
linguiLocale: 'en',
|
|
35
|
+
},
|
|
36
|
+
{ locale: 'en-ca', magentoStoreCode: 'en_CA', linguiLocale: 'en' },
|
|
22
37
|
],
|
|
23
38
|
productFiltersPro: true,
|
|
24
39
|
productFiltersLayout: 'DEFAULT',
|
package/src/generated/config.ts
CHANGED
|
@@ -86,7 +86,7 @@ export type DatalayerConfig = {
|
|
|
86
86
|
*
|
|
87
87
|
* You can export configuration by running `yarn graphcommerce export-config`
|
|
88
88
|
*
|
|
89
|
-
* ## Extending the configuration in your
|
|
89
|
+
* ## Extending the configuration in your project
|
|
90
90
|
*
|
|
91
91
|
* Create a graphql/Config.graphqls file in your project and extend the GraphCommerceConfig, GraphCommerceStorefrontConfig inputs to add configuration.
|
|
92
92
|
*
|
|
@@ -365,9 +365,17 @@ export type GraphCommerceStorefrontConfig = {
|
|
|
365
365
|
googleTagmanagerId?: InputMaybe<Scalars['String']['input']>;
|
|
366
366
|
/** Add a gcms-locales header to make sure queries return in a certain language, can be an array to define fallbacks. */
|
|
367
367
|
hygraphLocales?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
368
|
-
/**
|
|
368
|
+
/**
|
|
369
|
+
* Specify a custom locale for to load translations. Must be lowercase valid locale.
|
|
370
|
+
*
|
|
371
|
+
* This value is also used for the Intl.
|
|
372
|
+
*/
|
|
369
373
|
linguiLocale?: InputMaybe<Scalars['String']['input']>;
|
|
370
|
-
/**
|
|
374
|
+
/**
|
|
375
|
+
* Must be a [locale string](https://www.unicode.org/reports/tr35/tr35-59/tr35.html#Identifiers) for automatic redirects to work.
|
|
376
|
+
*
|
|
377
|
+
* This value can be used as a sub-path identifier only, make sure linguiLocale is configured for each URL.
|
|
378
|
+
*/
|
|
371
379
|
locale: Scalars['String']['input'];
|
|
372
380
|
/**
|
|
373
381
|
* Magento store code.
|