@graphcommerce/docs 7.1.0-canary.38 → 7.1.0-canary.41

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,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 7.1.0-canary.41
4
+
3
5
  ## 7.1.0-canary.38
4
6
 
5
7
  ## 7.1.0-canary.37
@@ -77,7 +77,7 @@ Below is a list of all possible configurations that can be set by GraphCommerce.
77
77
 
78
78
  ### GraphCommerceConfig
79
79
 
80
- #### `canonicalBaseUrl: String!`
80
+ #### canonicalBaseUrl: string (required)
81
81
 
82
82
  The canonical base URL is used for SEO purposes.
83
83
 
@@ -86,7 +86,7 @@ Examples:
86
86
  - https://example.com/en
87
87
  - https://example.com/en-US
88
88
 
89
- #### `hygraphEndpoint: String!`
89
+ #### hygraphEndpoint: string (required)
90
90
 
91
91
  The HyGraph endpoint.
92
92
 
@@ -94,33 +94,33 @@ The HyGraph endpoint.
94
94
 
95
95
  Project settings -> API Access -> High Performance Read-only Content API
96
96
 
97
- #### `magentoEndpoint: String!`
97
+ #### magentoEndpoint: string (required)
98
98
 
99
99
  GraphQL Magento endpoint.
100
100
 
101
101
  Examples:
102
102
  - https://magento2.test/graphql
103
103
 
104
- #### `storefront: [[GraphCommerceStorefrontConfig](#GraphCommerceStorefrontConfig)!]!`
104
+ #### storefront: [GraphCommerceStorefrontConfig](#GraphCommerceStorefrontConfig)[] (required)
105
105
 
106
106
  All storefront configuration for the project
107
107
 
108
- #### `cartDisplayPricesInclTax: Boolean`
108
+ #### cartDisplayPricesInclTax: boolean
109
109
 
110
110
  Due to a limitation of the GraphQL API it is not possible to determine if a cart should be displayed including or excluding tax.
111
111
 
112
112
  When Magento's StoreConfig adds this value, this can be replaced.
113
113
 
114
- #### `compare: Boolean`
114
+ #### compare: boolean
115
115
 
116
116
  Use compare functionality
117
117
 
118
- #### `compareVariant: [CompareVariant](#CompareVariant) (default: ICON)`
118
+ #### compareVariant: 'CHECKBOX' | 'ICON' = 'ICON'
119
119
 
120
120
  By default the compare feature is denoted with a 'compare ICON' (2 arrows facing one another).
121
121
  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
122
122
 
123
- #### `configurableVariantForSimple: Boolean (default: [object Object])`
123
+ #### configurableVariantForSimple: boolean = false
124
124
 
125
125
  If a simple product is part of a Configurable product page, should the simple product be
126
126
  rendered as a configured option of the configurable product page?
@@ -133,25 +133,25 @@ Magento also returns the Simple product and the Configurable product the simple
133
133
  If that is the case we render the configurable product page instead of the simple product page but
134
134
  the options to select the simple product are pre-selected.
135
135
 
136
- #### `configurableVariantValues: [MagentoConfigurableVariantValues](#MagentoConfigurableVariantValues) (default: [object Object])`
136
+ #### configurableVariantValues: [MagentoConfigurableVariantValues](#MagentoConfigurableVariantValues) = { content: true, url: true }
137
137
 
138
138
  When a user selects a variant, it will switch the values on the configurable page with the values of the configured variant.
139
139
 
140
140
  Enabling options here will allow switching of those variants.
141
141
 
142
- #### `crossSellsHideCartItems: Boolean (default: [object Object])`
142
+ #### crossSellsHideCartItems: boolean = false
143
143
 
144
144
  Determines if cross sell items should be shown when the user already has the product in their cart. This will result in a product will popping off the screen when you add it to the cart.
145
145
 
146
146
  Default: 'false'
147
147
 
148
- #### `crossSellsRedirectItems: Boolean (default: [object Object])`
148
+ #### crossSellsRedirectItems: boolean = false
149
149
 
150
150
  Determines if, after adding a cross-sell item to the cart, the user should be redirected to the cross-sell items of the product they just added.
151
151
 
152
152
  Default: 'false'
153
153
 
154
- #### `customerRequireEmailConfirmation: Boolean`
154
+ #### customerRequireEmailConfirmation: boolean
155
155
 
156
156
  Due to a limitation in the GraphQL API of Magento 2, we need to know if the
157
157
  customer requires email confirmation.
@@ -159,11 +159,11 @@ customer requires email confirmation.
159
159
  This value should match Magento 2's configuration value for
160
160
  `customer/create_account/confirm` and should be removed once we can query
161
161
 
162
- #### `debug: [GraphCommerceDebugConfig](#GraphCommerceDebugConfig)`
162
+ #### debug: [GraphCommerceDebugConfig](#GraphCommerceDebugConfig)
163
163
 
164
164
  Debug configuration for GraphCommerce
165
165
 
166
- #### `demoMode: Boolean (default: true)`
166
+ #### demoMode: boolean = true
167
167
 
168
168
  Enables some demo specific code that is probably not useful for a project:
169
169
 
@@ -171,7 +171,7 @@ Enables some demo specific code that is probably not useful for a project:
171
171
  - Adds "dominant_color" attribute swatches to the product list items.
172
172
  - Creates a big list items in the product list.
173
173
 
174
- #### `googleAnalyticsId: String`
174
+ #### googleAnalyticsId: string
175
175
 
176
176
  See https://support.google.com/analytics/answer/9539598?hl=en
177
177
 
@@ -179,7 +179,7 @@ Provide a value to enable Google Analytics for your store.
179
179
 
180
180
  To override the value for a specific locale, configure in i18n config.
181
181
 
182
- #### `googleRecaptchaKey: String`
182
+ #### googleRecaptchaKey: string
183
183
 
184
184
  Google reCAPTCHA site key.
185
185
  When using reCAPTCHA, this value is required, even if you are configuring different values for each locale.
@@ -189,17 +189,17 @@ Get a site key and a secret key from https://developers.google.com/recaptcha/doc
189
189
  The secret key should be added in the Magento admin panel (Stores > Configuration > Security > Google ReCAPTCHA Storefront > reCAPTCHA v3 Invisible)
190
190
  ReCAPTCHA can then be enabled/disabled for the different forms, separately (Stores > Configuration > Security > Google ReCAPTCHA Storefront > Storefront)
191
191
 
192
- #### `googleTagmanagerId: String`
192
+ #### googleTagmanagerId: string
193
193
 
194
194
  The Google Tagmanager ID to be used on the site.
195
195
 
196
196
  This value is required even if you are configuring different values for each locale.
197
197
 
198
- #### `hygraphProjectId: String`
198
+ #### hygraphProjectId: string
199
199
 
200
200
  Hygraph Project ID. **Only used for migrations.**
201
201
 
202
- #### `hygraphWriteAccessEndpoint: String`
202
+ #### hygraphWriteAccessEndpoint: string
203
203
 
204
204
  Content API. **Only used for migrations.**
205
205
 
@@ -207,7 +207,7 @@ Content API. **Only used for migrations.**
207
207
 
208
208
  Project settings -> API Access -> Content API
209
209
 
210
- #### `hygraphWriteAccessToken: String`
210
+ #### hygraphWriteAccessToken: string
211
211
 
212
212
  Hygraph Management SDK Authorization Token. **Only used for migrations.**
213
213
 
@@ -239,7 +239,7 @@ GC_HYGRAPH_WRITE_ACCESS_TOKEN="AccessTokenFromHygraph"
239
239
  yarn graphcommerce hygraph-migrate
240
240
  ```
241
241
 
242
- #### `legacyProductRoute: Boolean`
242
+ #### legacyProductRoute: boolean
243
243
 
244
244
  On older versions of GraphCommerce products would use a product type specific route.
245
245
 
@@ -247,49 +247,49 @@ This should only be set to true if you use the /product/[url] AND /product/confi
247
247
 
248
248
  @deprecated Will be removed in a future version. [migration](../upgrading/graphcommerce-5-to-6.md#product-routing-changes)
249
249
 
250
- #### `limitSsg: Boolean`
250
+ #### limitSsg: boolean
251
251
 
252
252
  Limit the static generation of SSG when building
253
253
 
254
- #### `previewSecret: String`
254
+ #### previewSecret: string
255
255
 
256
256
  To enable next.js' preview mode, configure the secret you'd like to use.
257
257
 
258
- #### `productFiltersLayout: [ProductFiltersLayout](#ProductFiltersLayout) (default: DEFAULT)`
258
+ #### productFiltersLayout: 'DEFAULT' | 'SIDEBAR' = 'DEFAULT'
259
259
 
260
260
  Layout how the filters are rendered.
261
261
  DEFAULT: Will be rendered as horzontal chips on desktop and mobile
262
262
  SIDEBAR: Will be rendered as a sidebar on desktop and horizontal chips on mobile
263
263
 
264
- #### `productFiltersPro: Boolean`
264
+ #### productFiltersPro: boolean
265
265
 
266
266
  Product filters with better UI for mobile and desktop.
267
267
 
268
- #### `productRoute: String`
268
+ #### productRoute: string
269
269
 
270
270
  By default we route products to /p/[url] but you can change this to /product/[url] if you wish.
271
271
 
272
272
  Default: '/p/'
273
273
  Example: '/product/'
274
274
 
275
- #### `robotsAllow: Boolean`
275
+ #### recentlyViewedProducts: [RecentlyViewedProductsConfig](#RecentlyViewedProductsConfig)
276
+
277
+ Settings for recently viewed products
278
+
279
+ #### robotsAllow: boolean
276
280
 
277
281
  Allow the site to be indexed by search engines.
278
282
  If false, the robots.txt file will be set to disallow all.
279
283
 
280
- #### `sidebarGallery: [SidebarGalleryConfig](#SidebarGalleryConfig)`
284
+ #### sidebarGallery: [SidebarGalleryConfig](#SidebarGalleryConfig)
281
285
 
282
286
  Configuration for the SidebarGallery component
283
287
 
284
- #### `wishlistHideForGuests: Boolean`
288
+ #### wishlistHideForGuests: boolean
285
289
 
286
290
  Hide the wishlist functionality for guests.
287
291
 
288
- #### `wishlistIgnoreProductWishlistStatus: Boolean`
289
-
290
- Ignores whether a product is already in the wishlist, makes the toggle an add only.
291
-
292
- #### `wishlistShowFeedbackMessage: Boolean`
292
+ #### wishlistShowFeedbackMessage: boolean
293
293
 
294
294
  Show a message when the product is added to the wishlist.
295
295
 
@@ -297,18 +297,18 @@ Show a message when the product is added to the wishlist.
297
297
 
298
298
  Debug configuration for GraphCommerce
299
299
 
300
- #### `pluginStatus: Boolean`
300
+ #### pluginStatus: boolean
301
301
 
302
302
  Reports which plugins are enabled or disabled.
303
303
 
304
- #### `webpackCircularDependencyPlugin: Boolean`
304
+ #### webpackCircularDependencyPlugin: boolean
305
305
 
306
306
  Cyclic dependencies can cause memory issues and other strange bugs.
307
307
  This plugin will warn you when it detects a cyclic dependency.
308
308
 
309
309
  When running into memory issues, it can be useful to enable this plugin.
310
310
 
311
- #### `webpackDuplicatesPlugin: Boolean`
311
+ #### webpackDuplicatesPlugin: boolean
312
312
 
313
313
  When updating packages it can happen that the same package is included with different versions in the same project.
314
314
 
@@ -320,11 +320,11 @@ Issues that this can cause are:
320
320
 
321
321
  All storefront configuration for the project
322
322
 
323
- #### `locale: String!`
323
+ #### locale: string (required)
324
324
 
325
325
  Must be a locale string https://www.unicode.org/reports/tr35/tr35-59/tr35.html#Identifiers
326
326
 
327
- #### `magentoStoreCode: String!`
327
+ #### magentoStoreCode: string (required)
328
328
 
329
329
  Magento store code.
330
330
 
@@ -335,7 +335,7 @@ Examples:
335
335
  - en-us
336
336
  - b2b-us
337
337
 
338
- #### `canonicalBaseUrl: String`
338
+ #### canonicalBaseUrl: string
339
339
 
340
340
  The canonical base URL is used for SEO purposes.
341
341
 
@@ -344,39 +344,39 @@ Examples:
344
344
  - https://example.com/en
345
345
  - https://example.com/en-US
346
346
 
347
- #### `cartDisplayPricesInclTax: Boolean`
347
+ #### cartDisplayPricesInclTax: boolean
348
348
 
349
349
  Due to a limitation of the GraphQL API it is not possible to determine if a cart should be displayed including or excluding tax.
350
350
 
351
- #### `defaultLocale: Boolean`
351
+ #### defaultLocale: boolean
352
352
 
353
353
  There can only be one entry with defaultLocale set to true.
354
354
  - If there are more, the first one is used.
355
355
  - If there is none, the first entry is used.
356
356
 
357
- #### `domain: String`
357
+ #### domain: string
358
358
 
359
359
  Domain configuration, must be a domain https://tools.ietf.org/html/rfc3986
360
360
 
361
- #### `googleAnalyticsId: String`
361
+ #### googleAnalyticsId: string
362
362
 
363
363
  Configure different Google Analytics IDs for different locales.
364
364
 
365
365
  To disable for a specific locale, set the value to null.
366
366
 
367
- #### `googleRecaptchaKey: String`
367
+ #### googleRecaptchaKey: string
368
368
 
369
369
  Locale specific google reCAPTCHA key.
370
370
 
371
- #### `googleTagmanagerId: String`
371
+ #### googleTagmanagerId: string
372
372
 
373
373
  The Google Tagmanager ID to be used per locale.
374
374
 
375
- #### `hygraphLocales: [String!]`
375
+ #### hygraphLocales: string[]
376
376
 
377
377
  Add a gcms-locales header to make sure queries return in a certain language, can be an array to define fallbacks.
378
378
 
379
- #### `linguiLocale: String`
379
+ #### linguiLocale: string
380
380
 
381
381
  Specify a custom locale for to load translations.
382
382
 
@@ -384,25 +384,37 @@ Specify a custom locale for to load translations.
384
384
 
385
385
  Options to configure which values will be replaced when a variant is selected on the product page.
386
386
 
387
- #### `content: Boolean`
387
+ #### content: boolean
388
388
 
389
389
  Use the name, description, short description and meta data from the configured variant
390
390
 
391
- #### `gallery: Boolean`
391
+ #### gallery: boolean
392
392
 
393
393
  This option enables the automatic update of product gallery images on the product page when a variant is selected,
394
394
  provided that the gallery images for the selected variant differ from the currently displayed images.
395
395
 
396
- #### `url: Boolean`
396
+ #### url: boolean
397
397
 
398
398
  When a variant is selected the URL of the product will be changed in the address bar.
399
399
 
400
400
  This only happens when the actual variant is can be accessed by the URL.
401
401
 
402
+ ### RecentlyViewedProductsConfig
403
+
404
+ Settings for recently viewed products
405
+
406
+ #### enabled: boolean
407
+
408
+ Enable/disable recently viewed products
409
+
410
+ #### maxCount: number
411
+
412
+ Number of recently viewed products to be stored in localStorage
413
+
402
414
  ### SidebarGalleryConfig
403
415
 
404
416
  SidebarGalleryConfig will contain all configuration values for the Sidebar Gallery component.
405
417
 
406
- #### `paginationVariant: [SidebarGalleryPaginationVariant](#SidebarGalleryPaginationVariant)`
418
+ #### paginationVariant: 'DOTS' | 'THUMBNAILS_BOTTOM'
407
419
 
408
420
  Variant used for the pagination
package/package.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "name": "@graphcommerce/docs",
3
3
  "homepage": "https://www.graphcommerce.org/docs",
4
4
  "repository": "github:graphcommerce-org/graphcommerce/docs",
5
- "version": "7.1.0-canary.38",
5
+ "version": "7.1.0-canary.41",
6
6
  "sideEffects": true,
7
- "devDependencies": {
8
- "@graphcommerce/prettier-config-pwa": "7.1.0-canary.38"
7
+ "peerDependencies": {
8
+ "@graphcommerce/prettier-config-pwa": "7.1.0-canary.41"
9
9
  },
10
10
  "prettier": "@graphcommerce/prettier-config-pwa"
11
11
  }