@graphcommerce/next-config 6.2.0-canary.62 → 6.2.0-canary.64
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 +4 -0
- package/dist/config/demoConfig.js +1 -0
- package/dist/generated/config.js +1 -0
- package/package.json +1 -1
- package/src/config/demoConfig.ts +1 -0
- package/src/generated/config.ts +14 -0
package/CHANGELOG.md
CHANGED
package/dist/generated/config.js
CHANGED
|
@@ -14,6 +14,7 @@ function GraphCommerceConfigSchema() {
|
|
|
14
14
|
cartDisplayPricesInclTax: zod_1.z.boolean().nullish(),
|
|
15
15
|
compare: zod_1.z.boolean().nullish(),
|
|
16
16
|
compareVariant: exports.CompareVariantSchema.nullish(),
|
|
17
|
+
configurableVariantForSimple: zod_1.z.boolean().nullish(),
|
|
17
18
|
customerRequireEmailConfirmation: zod_1.z.boolean().nullish(),
|
|
18
19
|
debug: GraphCommerceDebugConfigSchema().nullish(),
|
|
19
20
|
demoMode: 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": "6.2.0-canary.
|
|
5
|
+
"version": "6.2.0-canary.64",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "src/index.ts",
|
package/src/config/demoConfig.ts
CHANGED
package/src/generated/config.ts
CHANGED
|
@@ -120,6 +120,19 @@ export type GraphCommerceConfig = {
|
|
|
120
120
|
* This may be fine for experienced users, but for more clarity it's also possible to present the compare feature as a CHECKBOX accompanied by the 'Compare' label
|
|
121
121
|
*/
|
|
122
122
|
compareVariant?: InputMaybe<CompareVariant>;
|
|
123
|
+
/**
|
|
124
|
+
* If a simple product is part of a Configurable product page, should the simple product be
|
|
125
|
+
* rendered as a configured option of the configurable product page?
|
|
126
|
+
*
|
|
127
|
+
* How does this work:
|
|
128
|
+
*
|
|
129
|
+
* When the `products(filters: { url_key: { eq: 'simple-product' } }) { ... }` query is ran,
|
|
130
|
+
* Magento also returns the Simple product and the Configurable product the simple belongs to.
|
|
131
|
+
*
|
|
132
|
+
* If that is the case we render the configurable product page instead of the simple product page but
|
|
133
|
+
* the options to select the simple product are pre-selected.
|
|
134
|
+
*/
|
|
135
|
+
configurableVariantForSimple?: InputMaybe<Scalars['Boolean']['input']>;
|
|
123
136
|
/**
|
|
124
137
|
* Due to a limitation in the GraphQL API of Magento 2, we need to know if the
|
|
125
138
|
* customer requires email confirmation.
|
|
@@ -353,6 +366,7 @@ export function GraphCommerceConfigSchema(): z.ZodObject<Properties<GraphCommerc
|
|
|
353
366
|
cartDisplayPricesInclTax: z.boolean().nullish(),
|
|
354
367
|
compare: z.boolean().nullish(),
|
|
355
368
|
compareVariant: CompareVariantSchema.nullish(),
|
|
369
|
+
configurableVariantForSimple: z.boolean().nullish(),
|
|
356
370
|
customerRequireEmailConfirmation: z.boolean().nullish(),
|
|
357
371
|
debug: GraphCommerceDebugConfigSchema().nullish(),
|
|
358
372
|
demoMode: z.boolean().nullish(),
|