@graphcommerce/next-config 6.2.0-canary.86 → 6.2.0-canary.87
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,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.2.0-canary.87
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2022](https://github.com/graphcommerce-org/graphcommerce/pull/2022) [`0495db84d`](https://github.com/graphcommerce-org/graphcommerce/commit/0495db84d1d450750bd74b94a379b4e7764a5753) - add documentation for the GraphCommerceStorefrontConfig gallery option. ([@carlocarels90](https://github.com/carlocarels90))
|
|
8
|
+
|
|
3
9
|
## 6.2.0-canary.86
|
|
4
10
|
|
|
5
11
|
## 6.2.0-canary.85
|
package/dist/generated/config.js
CHANGED
|
@@ -68,6 +68,7 @@ exports.GraphCommerceStorefrontConfigSchema = GraphCommerceStorefrontConfigSchem
|
|
|
68
68
|
function MagentoConfigurableVariantValuesSchema() {
|
|
69
69
|
return zod_1.z.object({
|
|
70
70
|
content: zod_1.z.boolean().nullish(),
|
|
71
|
+
gallery: zod_1.z.boolean().nullish(),
|
|
71
72
|
url: zod_1.z.boolean().nullish()
|
|
72
73
|
});
|
|
73
74
|
}
|
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.87",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "src/index.ts",
|
package/src/config/demoConfig.ts
CHANGED
|
@@ -29,5 +29,5 @@ export const demoConfig: PartialDeep<GraphCommerceConfig, { recurseIntoArrays: t
|
|
|
29
29
|
compare: true,
|
|
30
30
|
|
|
31
31
|
configurableVariantForSimple: true,
|
|
32
|
-
configurableVariantValues: { url: true, content: true },
|
|
32
|
+
configurableVariantValues: { url: true, content: true, gallery: true },
|
|
33
33
|
}
|
package/src/generated/config.ts
CHANGED
|
@@ -359,6 +359,11 @@ export type GraphCommerceStorefrontConfig = {
|
|
|
359
359
|
export type MagentoConfigurableVariantValues = {
|
|
360
360
|
/** Use the name, description, short description and meta data from the configured variant */
|
|
361
361
|
content?: InputMaybe<Scalars['Boolean']['input']>;
|
|
362
|
+
/**
|
|
363
|
+
* This option enables the automatic update of product gallery images on the product page when a variant is selected,
|
|
364
|
+
* provided that the gallery images for the selected variant differ from the currently displayed images.
|
|
365
|
+
*/
|
|
366
|
+
gallery?: InputMaybe<Scalars['Boolean']['input']>;
|
|
362
367
|
/**
|
|
363
368
|
* When a variant is selected the URL of the product will be changed in the address bar.
|
|
364
369
|
*
|
|
@@ -446,6 +451,7 @@ export function GraphCommerceStorefrontConfigSchema(): z.ZodObject<Properties<Gr
|
|
|
446
451
|
export function MagentoConfigurableVariantValuesSchema(): z.ZodObject<Properties<MagentoConfigurableVariantValues>> {
|
|
447
452
|
return z.object({
|
|
448
453
|
content: z.boolean().nullish(),
|
|
454
|
+
gallery: z.boolean().nullish(),
|
|
449
455
|
url: z.boolean().nullish()
|
|
450
456
|
})
|
|
451
457
|
}
|