@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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.2.0-canary.64
4
+
5
+ ## 6.2.0-canary.63
6
+
3
7
  ## 6.2.0-canary.62
4
8
 
5
9
  ## 6.2.0-canary.61
@@ -25,4 +25,5 @@ exports.demoConfig = {
25
25
  demoMode: true,
26
26
  limitSsg: true,
27
27
  compare: true,
28
+ configurableVariantForSimple: true,
28
29
  };
@@ -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.62",
5
+ "version": "6.2.0-canary.64",
6
6
  "type": "commonjs",
7
7
  "main": "dist/index.js",
8
8
  "types": "src/index.ts",
@@ -27,4 +27,5 @@ export const demoConfig: PartialDeep<GraphCommerceConfig, { recurseIntoArrays: t
27
27
  demoMode: true,
28
28
  limitSsg: true,
29
29
  compare: true,
30
+ configurableVariantForSimple: true,
30
31
  }
@@ -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(),