@graphcommerce/next-config 9.0.0-canary.72 → 9.0.0-canary.74

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
+ ## 9.0.0-canary.74
4
+
5
+ ## 9.0.0-canary.73
6
+
3
7
  ## 9.0.0-canary.72
4
8
 
5
9
  ## 9.0.0-canary.71
@@ -25,6 +25,15 @@ exports[`parses an env config object 1`] = `
25
25
 
26
26
  exports[`traverses a schema and returns a list of env variables that match 1`] = `
27
27
  [
28
+ "GC_ALGOLIA",
29
+ "GC_ALGOLIA_ANALYTICS_ENABLED",
30
+ "GC_ALGOLIA_APPLICATION_ID",
31
+ "GC_ALGOLIA_CATALOG_ENABLED",
32
+ "GC_ALGOLIA_CUSTOMER_GROUP_PRICING_ENABLED",
33
+ "GC_ALGOLIA_INDEX_NAME_PREFIX",
34
+ "GC_ALGOLIA_PERSONALIZATION_ENABLED",
35
+ "GC_ALGOLIA_SEARCH_ONLY_API_KEY",
36
+ "GC_ALGOLIA_SUGGESTIONS_SUFFIX",
28
37
  "GC_BREADCRUMBS",
29
38
  "GC_CANONICAL_BASE_URL",
30
39
  "GC_CART_DISPLAY_PRICES_INCL_TAX",
@@ -56,7 +65,6 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
56
65
  "GC_HYGRAPH_ENDPOINT",
57
66
  "GC_HYGRAPH_MANAGEMENT_API",
58
67
  "GC_HYGRAPH_PROJECT_ID",
59
- "GC_HYGRAPH_WRITE_ACCESS_ENDPOINT",
60
68
  "GC_HYGRAPH_WRITE_ACCESS_TOKEN",
61
69
  "GC_LIMIT_SSG",
62
70
  "GC_MAGENTO_ENDPOINT",
@@ -84,6 +84,11 @@ it('converts an env schema to a config schema', () => {
84
84
  magentoEndpoint: 'https://example.com',
85
85
  previewSecret: 'secret',
86
86
  magentoVersion: 247,
87
+ algolia: {
88
+ applicationId: 'a',
89
+ indexNamePrefix: 'a',
90
+ searchOnlyApiKey: 'a',
91
+ },
87
92
  }
88
93
 
89
94
  const environmentVariables = {
@@ -77,327 +77,375 @@ it('finds plugins', () => {
77
77
  },
78
78
  {
79
79
  "enabled": true,
80
- "sourceExport": "ProductPageMeta",
81
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerViewItem",
82
- "targetExport": "ProductPageMeta",
83
- "targetModule": "@graphcommerce/magento-product",
80
+ "sourceExport": "hygraphPageContent",
81
+ "sourceModule": "@graphcommerce/hygraph-dynamic-rows/plugins/hygraphDynamicRowsPageContent",
82
+ "targetExport": "hygraphPageContent",
83
+ "targetModule": "@graphcommerce/graphcms-ui",
84
+ "type": "function",
85
+ },
86
+ {
87
+ "enabled": true,
88
+ "sourceExport": "previewModeDefaults",
89
+ "sourceModule": "@graphcommerce/graphcms-ui/plugins/hygraphPreviewModeDefaults",
90
+ "targetExport": "previewModeDefaults",
91
+ "targetModule": "@graphcommerce/ecommerce-ui",
92
+ "type": "function",
93
+ },
94
+ {
95
+ "enabled": true,
96
+ "sourceExport": "graphqlConfig",
97
+ "sourceModule": "@graphcommerce/graphcms-ui/plugins/hygraphGraphqlConfig",
98
+ "targetExport": "graphqlConfig",
99
+ "targetModule": "@graphcommerce/graphql",
100
+ "type": "function",
101
+ },
102
+ {
103
+ "enabled": true,
104
+ "sourceExport": "PreviewModeToolbar",
105
+ "sourceModule": "@graphcommerce/graphcms-ui/plugins/HygraphPreviewModeToolbar",
106
+ "targetExport": "PreviewModeToolbar",
107
+ "targetModule": "@graphcommerce/ecommerce-ui",
84
108
  "type": "component",
85
109
  },
86
110
  {
87
111
  "enabled": true,
88
- "sourceExport": "UpdateItemQuantity",
89
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerUseRemoveItemFromCart",
90
- "targetExport": "UpdateItemQuantity",
91
- "targetModule": "@graphcommerce/magento-cart-items",
112
+ "sourceExport": "meshConfig",
113
+ "sourceModule": "@graphcommerce/magento-graphql-rest/plugins/meshConfigM2Rest",
114
+ "targetExport": "meshConfig",
115
+ "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
116
+ "type": "function",
117
+ },
118
+ {
119
+ "enabled": true,
120
+ "sourceExport": "PaymentMethodContextProvider",
121
+ "sourceModule": "@graphcommerce/magento-payment-included/plugins/AddIncludedMethods",
122
+ "targetExport": "PaymentMethodContextProvider",
123
+ "targetModule": "@graphcommerce/magento-cart-payment-method",
92
124
  "type": "component",
93
125
  },
94
126
  {
95
127
  "enabled": true,
96
- "sourceExport": "ShippingMethodForm",
97
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerShippingMethodForm",
98
- "targetExport": "ShippingMethodForm",
99
- "targetModule": "@graphcommerce/magento-cart-shipping-method",
128
+ "sourceExport": "CartItemActionCard",
129
+ "sourceModule": "@graphcommerce/magento-product-bundle/plugins/BundleCartItemActionCard",
130
+ "targetExport": "CartItemActionCard",
131
+ "targetModule": "@graphcommerce/magento-cart-items",
100
132
  "type": "component",
101
133
  },
102
134
  {
103
135
  "enabled": true,
104
- "sourceExport": "useRemoveItemFromCart",
105
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerRemoveItemFromCart",
106
- "targetExport": "useRemoveItemFromCart",
136
+ "sourceExport": "CartItemActionCard",
137
+ "sourceModule": "@graphcommerce/magento-product-virtual/plugins/VirtualCartItemActionCard",
138
+ "targetExport": "CartItemActionCard",
107
139
  "targetModule": "@graphcommerce/magento-cart-items",
108
- "type": "function",
140
+ "type": "component",
109
141
  },
110
142
  {
111
143
  "enabled": true,
112
- "sourceExport": "ProductListItemsBase",
113
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerProductListItemsBase",
114
- "targetExport": "ProductListItemsBase",
144
+ "sourceExport": "AddProductsToCartForm",
145
+ "sourceModule": "@graphcommerce/magento-wishlist/plugins/WishlistProductAddToCartFormPlugin",
146
+ "targetExport": "AddProductsToCartForm",
115
147
  "targetModule": "@graphcommerce/magento-product",
116
148
  "type": "component",
117
149
  },
118
150
  {
119
151
  "enabled": true,
120
- "sourceExport": "ProductListItem",
121
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerProductListItem",
122
- "targetExport": "ProductListItem",
123
- "targetModule": "@graphcommerce/magento-product",
152
+ "sourceExport": "WishlistItemActionCard",
153
+ "sourceModule": "@graphcommerce/magento-wishlist/plugins/ConfigurableWishlistItemActionCard",
154
+ "targetExport": "WishlistItemActionCard",
155
+ "targetModule": "@graphcommerce/magento-wishlist",
156
+ "type": "component",
157
+ },
158
+ {
159
+ "enabled": true,
160
+ "sourceExport": "WishlistItemActionCard",
161
+ "sourceModule": "@graphcommerce/magento-wishlist/plugins/BundleWishlistItemActionCard",
162
+ "targetExport": "WishlistItemActionCard",
163
+ "targetModule": "@graphcommerce/magento-wishlist",
164
+ "type": "component",
165
+ },
166
+ {
167
+ "enabled": true,
168
+ "sourceExport": "ShippingMethodForm",
169
+ "sourceModule": "@graphcommerce/magento-cart-pickup/plugins/AddPickupInStore",
170
+ "targetExport": "ShippingMethodForm",
171
+ "targetModule": "@graphcommerce/magento-cart-shipping-method",
124
172
  "type": "component",
125
173
  },
126
174
  {
127
175
  "enabled": true,
128
176
  "sourceExport": "PaymentMethodContextProvider",
129
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerPaymentMethodContextProvider",
177
+ "sourceModule": "@graphcommerce/magento-payment-braintree/plugins/AddBraintreeMethods",
130
178
  "targetExport": "PaymentMethodContextProvider",
131
179
  "targetModule": "@graphcommerce/magento-cart-payment-method",
132
180
  "type": "component",
133
181
  },
134
182
  {
135
183
  "enabled": true,
136
- "sourceExport": "PaymentMethodButton",
137
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerPaymentMethodButton",
138
- "targetExport": "PaymentMethodButton",
184
+ "sourceExport": "PaymentMethodContextProvider",
185
+ "sourceModule": "@graphcommerce/mollie-magento-payment/plugins/AddMollieMethods",
186
+ "targetExport": "PaymentMethodContextProvider",
139
187
  "targetModule": "@graphcommerce/magento-cart-payment-method",
140
188
  "type": "component",
141
189
  },
142
190
  {
143
191
  "enabled": true,
144
- "sourceExport": "CartStartCheckoutLinkOrButton",
145
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerCartStartCheckoutLinkOrButton",
146
- "targetExport": "CartStartCheckoutLinkOrButton",
147
- "targetModule": "@graphcommerce/magento-cart",
192
+ "sourceExport": "CartItemActionCard",
193
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableCartItemActionCard",
194
+ "targetExport": "CartItemActionCard",
195
+ "targetModule": "@graphcommerce/magento-cart-items",
148
196
  "type": "component",
149
197
  },
150
198
  {
151
199
  "enabled": true,
152
- "sourceExport": "CartStartCheckout",
153
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerCartStartCheckout",
154
- "targetExport": "CartStartCheckout",
155
- "targetModule": "@graphcommerce/magento-cart",
200
+ "sourceExport": "ProductPagePriceTiers",
201
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePriceTiers",
202
+ "targetExport": "ProductPagePriceTiers",
203
+ "targetModule": "@graphcommerce/magento-product",
156
204
  "type": "component",
157
205
  },
158
206
  {
159
207
  "enabled": true,
160
- "sourceExport": "AddProductsToCartForm",
161
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerAddProductsToCartForm",
162
- "targetExport": "AddProductsToCartForm",
208
+ "sourceExport": "ProductPagePrice",
209
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice",
210
+ "targetExport": "ProductPagePrice",
163
211
  "targetModule": "@graphcommerce/magento-product",
164
212
  "type": "component",
165
213
  },
166
214
  {
167
215
  "enabled": true,
168
- "sourceExport": "previewModeDefaults",
169
- "sourceModule": "@graphcommerce/graphcms-ui/plugins/hygraphPreviewModeDefaults",
170
- "targetExport": "previewModeDefaults",
171
- "targetModule": "@graphcommerce/ecommerce-ui",
172
- "type": "function",
216
+ "sourceExport": "ProductPageGallery",
217
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageGallery",
218
+ "targetExport": "ProductPageGallery",
219
+ "targetModule": "@graphcommerce/magento-product",
220
+ "type": "component",
173
221
  },
174
222
  {
175
223
  "enabled": true,
176
- "sourceExport": "graphqlConfig",
177
- "sourceModule": "@graphcommerce/graphcms-ui/plugins/hygraphGraphqlConfig",
178
- "targetExport": "graphqlConfig",
179
- "targetModule": "@graphcommerce/graphql",
180
- "type": "function",
224
+ "sourceExport": "CartItemActionCard",
225
+ "sourceModule": "@graphcommerce/magento-product-simple/plugins/SimpleCartItemActionCard",
226
+ "targetExport": "CartItemActionCard",
227
+ "targetModule": "@graphcommerce/magento-cart-items",
228
+ "type": "component",
181
229
  },
182
230
  {
183
231
  "enabled": true,
184
- "sourceExport": "PreviewModeToolbar",
185
- "sourceModule": "@graphcommerce/graphcms-ui/plugins/HygraphPreviewModeToolbar",
186
- "targetExport": "PreviewModeToolbar",
187
- "targetModule": "@graphcommerce/ecommerce-ui",
232
+ "sourceExport": "PaymentMethodContextProvider",
233
+ "sourceModule": "@graphcommerce/magento-payment-paypal/plugins/AddPaypalMethods",
234
+ "targetExport": "PaymentMethodContextProvider",
235
+ "targetModule": "@graphcommerce/magento-cart-payment-method",
188
236
  "type": "component",
189
237
  },
190
238
  {
191
239
  "enabled": true,
192
240
  "sourceExport": "meshConfig",
193
- "sourceModule": "@graphcommerce/graphql-mesh/plugins/meshConfigFake",
241
+ "sourceModule": "@graphcommerce/algolia-personalization/plugins/meshConfigAlgoliaInsights",
194
242
  "targetExport": "meshConfig",
195
243
  "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
196
244
  "type": "function",
197
245
  },
198
246
  {
199
247
  "enabled": true,
200
- "sourceExport": "hygraphPageContent",
201
- "sourceModule": "@graphcommerce/hygraph-dynamic-rows/plugins/hygraphDynamicRowsPageContent",
202
- "targetExport": "hygraphPageContent",
203
- "targetModule": "@graphcommerce/graphcms-ui",
248
+ "sourceExport": "meshConfig",
249
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/meshConfigAlgolia",
250
+ "targetExport": "meshConfig",
251
+ "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
204
252
  "type": "function",
205
253
  },
206
254
  {
207
255
  "enabled": true,
208
- "sourceExport": "useSignInForm",
209
- "sourceModule": "@graphcommerce/magento-cart/plugins/useSignInFormMergeCart",
210
- "targetExport": "useSignInForm",
211
- "targetModule": "@graphcommerce/magento-customer",
256
+ "sourceExport": "useProductListApplySearchDefaults",
257
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/magentoSearchApplyAlgoliaEngine",
258
+ "targetExport": "useProductListApplySearchDefaults",
259
+ "targetModule": "@graphcommerce/magento-search",
212
260
  "type": "function",
213
261
  },
214
262
  {
215
263
  "enabled": true,
216
- "sourceExport": "GraphQLProvider",
217
- "sourceModule": "@graphcommerce/magento-cart/plugins/MagentoCartGraphqlProvider",
218
- "targetExport": "GraphQLProvider",
219
- "targetModule": "@graphcommerce/graphql",
220
- "type": "component",
264
+ "sourceExport": "productListApplySearchDefaults",
265
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/magentoSearchApplyAlgoliaEngine",
266
+ "targetExport": "productListApplySearchDefaults",
267
+ "targetModule": "@graphcommerce/magento-search",
268
+ "type": "function",
221
269
  },
222
270
  {
223
271
  "enabled": true,
224
- "sourceExport": "getInContextInput",
225
- "sourceModule": "@graphcommerce/magento-customer/plugins/magentoCustomerGetInContext",
226
- "targetExport": "getInContextInput",
227
- "targetModule": "@graphcommerce/graphql",
272
+ "sourceExport": "searchDefaultsToProductListFilters",
273
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/magentoSearchApplyAlgoliaEngine",
274
+ "targetExport": "searchDefaultsToProductListFilters",
275
+ "targetModule": "@graphcommerce/magento-search",
228
276
  "type": "function",
229
277
  },
230
278
  {
231
279
  "enabled": true,
232
- "sourceExport": "useInContextInput",
233
- "sourceModule": "@graphcommerce/magento-customer/plugins/magentoCustomerGetInContext",
234
- "targetExport": "useInContextInput",
235
- "targetModule": "@graphcommerce/graphql",
236
- "type": "function",
280
+ "sourceExport": "ProductListItemsBase",
281
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/ProductListItemsBaseAlgolia",
282
+ "targetExport": "ProductListItemsBase",
283
+ "targetModule": "@graphcommerce/magento-product",
284
+ "type": "component",
237
285
  },
238
286
  {
239
287
  "enabled": true,
240
- "ifConfig": [
241
- "customerXMagentoCacheIdDisable",
242
- false,
243
- ],
244
- "sourceExport": "GraphQLProvider",
245
- "sourceModule": "@graphcommerce/magento-customer/plugins/XMagentoCacheIdGraphQLProvider",
246
- "targetExport": "GraphQLProvider",
247
- "targetModule": "@graphcommerce/graphql",
288
+ "sourceExport": "ProductPageMeta",
289
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerViewItem",
290
+ "targetExport": "ProductPageMeta",
291
+ "targetModule": "@graphcommerce/magento-product",
248
292
  "type": "component",
249
293
  },
250
294
  {
251
295
  "enabled": true,
252
- "sourceExport": "GraphQLProvider",
253
- "sourceModule": "@graphcommerce/magento-customer/plugins/MagentoCustomerGraphqlProvider",
254
- "targetExport": "GraphQLProvider",
255
- "targetModule": "@graphcommerce/graphql",
296
+ "sourceExport": "UpdateItemQuantity",
297
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerUseRemoveItemFromCart",
298
+ "targetExport": "UpdateItemQuantity",
299
+ "targetModule": "@graphcommerce/magento-cart-items",
256
300
  "type": "component",
257
301
  },
258
302
  {
259
303
  "enabled": true,
260
- "sourceExport": "graphqlConfig",
261
- "sourceModule": "@graphcommerce/magento-graphql/plugins/magentoGraphqlConfig",
262
- "targetExport": "graphqlConfig",
263
- "targetModule": "@graphcommerce/graphql",
264
- "type": "function",
304
+ "sourceExport": "ShippingMethodForm",
305
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerShippingMethodForm",
306
+ "targetExport": "ShippingMethodForm",
307
+ "targetModule": "@graphcommerce/magento-cart-shipping-method",
308
+ "type": "component",
265
309
  },
266
310
  {
267
311
  "enabled": true,
268
- "sourceExport": "meshConfig",
269
- "sourceModule": "@graphcommerce/magento-graphql-rest/plugins/meshConfigM2Rest",
270
- "targetExport": "meshConfig",
271
- "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
312
+ "sourceExport": "useRemoveItemFromCart",
313
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerRemoveItemFromCart",
314
+ "targetExport": "useRemoveItemFromCart",
315
+ "targetModule": "@graphcommerce/magento-cart-items",
272
316
  "type": "function",
273
317
  },
274
318
  {
275
319
  "enabled": true,
276
- "sourceExport": "PaymentMethodContextProvider",
277
- "sourceModule": "@graphcommerce/magento-payment-included/plugins/AddIncludedMethods",
278
- "targetExport": "PaymentMethodContextProvider",
279
- "targetModule": "@graphcommerce/magento-cart-payment-method",
320
+ "sourceExport": "ProductListItemsBase",
321
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerProductListItemsBase",
322
+ "targetExport": "ProductListItemsBase",
323
+ "targetModule": "@graphcommerce/magento-product",
280
324
  "type": "component",
281
325
  },
282
326
  {
283
327
  "enabled": true,
284
- "sourceExport": "CartItemActionCard",
285
- "sourceModule": "@graphcommerce/magento-product-bundle/plugins/BundleCartItemActionCard",
286
- "targetExport": "CartItemActionCard",
287
- "targetModule": "@graphcommerce/magento-cart-items",
328
+ "sourceExport": "ProductListItem",
329
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerProductListItem",
330
+ "targetExport": "ProductListItem",
331
+ "targetModule": "@graphcommerce/magento-product",
288
332
  "type": "component",
289
333
  },
290
334
  {
291
335
  "enabled": true,
292
- "sourceExport": "CartItemActionCard",
293
- "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableCartItemActionCard",
294
- "targetExport": "CartItemActionCard",
295
- "targetModule": "@graphcommerce/magento-cart-items",
336
+ "sourceExport": "PaymentMethodContextProvider",
337
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerPaymentMethodContextProvider",
338
+ "targetExport": "PaymentMethodContextProvider",
339
+ "targetModule": "@graphcommerce/magento-cart-payment-method",
296
340
  "type": "component",
297
341
  },
298
342
  {
299
343
  "enabled": true,
300
- "sourceExport": "ProductPagePriceTiers",
301
- "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePriceTiers",
302
- "targetExport": "ProductPagePriceTiers",
303
- "targetModule": "@graphcommerce/magento-product",
344
+ "sourceExport": "PaymentMethodButton",
345
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerPaymentMethodButton",
346
+ "targetExport": "PaymentMethodButton",
347
+ "targetModule": "@graphcommerce/magento-cart-payment-method",
304
348
  "type": "component",
305
349
  },
306
350
  {
307
351
  "enabled": true,
308
- "sourceExport": "ProductPagePrice",
309
- "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice",
310
- "targetExport": "ProductPagePrice",
311
- "targetModule": "@graphcommerce/magento-product",
352
+ "sourceExport": "CartStartCheckoutLinkOrButton",
353
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerCartStartCheckoutLinkOrButton",
354
+ "targetExport": "CartStartCheckoutLinkOrButton",
355
+ "targetModule": "@graphcommerce/magento-cart",
312
356
  "type": "component",
313
357
  },
314
358
  {
315
359
  "enabled": true,
316
- "sourceExport": "ProductPageGallery",
317
- "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageGallery",
318
- "targetExport": "ProductPageGallery",
319
- "targetModule": "@graphcommerce/magento-product",
360
+ "sourceExport": "CartStartCheckout",
361
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerCartStartCheckout",
362
+ "targetExport": "CartStartCheckout",
363
+ "targetModule": "@graphcommerce/magento-cart",
320
364
  "type": "component",
321
365
  },
322
366
  {
323
367
  "enabled": true,
324
- "sourceExport": "CartItemActionCard",
325
- "sourceModule": "@graphcommerce/magento-product-simple/plugins/SimpleCartItemActionCard",
326
- "targetExport": "CartItemActionCard",
327
- "targetModule": "@graphcommerce/magento-cart-items",
368
+ "sourceExport": "AddProductsToCartForm",
369
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerAddProductsToCartForm",
370
+ "targetExport": "AddProductsToCartForm",
371
+ "targetModule": "@graphcommerce/magento-product",
328
372
  "type": "component",
329
373
  },
330
374
  {
331
375
  "enabled": true,
332
- "sourceExport": "CartItemActionCard",
333
- "sourceModule": "@graphcommerce/magento-product-virtual/plugins/VirtualCartItemActionCard",
334
- "targetExport": "CartItemActionCard",
335
- "targetModule": "@graphcommerce/magento-cart-items",
336
- "type": "component",
376
+ "sourceExport": "useSignInForm",
377
+ "sourceModule": "@graphcommerce/magento-cart/plugins/useSignInFormMergeCart",
378
+ "targetExport": "useSignInForm",
379
+ "targetModule": "@graphcommerce/magento-customer",
380
+ "type": "function",
337
381
  },
338
382
  {
339
383
  "enabled": true,
340
- "sourceExport": "graphqlConfig",
341
- "sourceModule": "@graphcommerce/magento-store/plugins/magentoStoreGraphqlConfig",
342
- "targetExport": "graphqlConfig",
384
+ "sourceExport": "GraphQLProvider",
385
+ "sourceModule": "@graphcommerce/magento-cart/plugins/MagentoCartGraphqlProvider",
386
+ "targetExport": "GraphQLProvider",
343
387
  "targetModule": "@graphcommerce/graphql",
344
- "type": "function",
388
+ "type": "component",
345
389
  },
346
390
  {
347
391
  "enabled": true,
348
- "sourceExport": "AddProductsToCartForm",
349
- "sourceModule": "@graphcommerce/magento-wishlist/plugins/WishlistProductAddToCartFormPlugin",
350
- "targetExport": "AddProductsToCartForm",
351
- "targetModule": "@graphcommerce/magento-product",
352
- "type": "component",
392
+ "sourceExport": "getInContextInput",
393
+ "sourceModule": "@graphcommerce/magento-customer/plugins/magentoCustomerGetInContext",
394
+ "targetExport": "getInContextInput",
395
+ "targetModule": "@graphcommerce/graphql",
396
+ "type": "function",
353
397
  },
354
398
  {
355
399
  "enabled": true,
356
- "sourceExport": "WishlistItemActionCard",
357
- "sourceModule": "@graphcommerce/magento-wishlist/plugins/ConfigurableWishlistItemActionCard",
358
- "targetExport": "WishlistItemActionCard",
359
- "targetModule": "@graphcommerce/magento-wishlist",
360
- "type": "component",
400
+ "sourceExport": "useInContextInput",
401
+ "sourceModule": "@graphcommerce/magento-customer/plugins/magentoCustomerGetInContext",
402
+ "targetExport": "useInContextInput",
403
+ "targetModule": "@graphcommerce/graphql",
404
+ "type": "function",
361
405
  },
362
406
  {
363
407
  "enabled": true,
364
- "sourceExport": "WishlistItemActionCard",
365
- "sourceModule": "@graphcommerce/magento-wishlist/plugins/BundleWishlistItemActionCard",
366
- "targetExport": "WishlistItemActionCard",
367
- "targetModule": "@graphcommerce/magento-wishlist",
408
+ "ifConfig": [
409
+ "customerXMagentoCacheIdDisable",
410
+ false,
411
+ ],
412
+ "sourceExport": "GraphQLProvider",
413
+ "sourceModule": "@graphcommerce/magento-customer/plugins/XMagentoCacheIdGraphQLProvider",
414
+ "targetExport": "GraphQLProvider",
415
+ "targetModule": "@graphcommerce/graphql",
368
416
  "type": "component",
369
417
  },
370
418
  {
371
419
  "enabled": true,
372
- "sourceExport": "ShippingMethodForm",
373
- "sourceModule": "@graphcommerce/magento-cart-pickup/plugins/AddPickupInStore",
374
- "targetExport": "ShippingMethodForm",
375
- "targetModule": "@graphcommerce/magento-cart-shipping-method",
420
+ "sourceExport": "GraphQLProvider",
421
+ "sourceModule": "@graphcommerce/magento-customer/plugins/MagentoCustomerGraphqlProvider",
422
+ "targetExport": "GraphQLProvider",
423
+ "targetModule": "@graphcommerce/graphql",
376
424
  "type": "component",
377
425
  },
378
426
  {
379
427
  "enabled": true,
380
- "sourceExport": "PaymentMethodContextProvider",
381
- "sourceModule": "@graphcommerce/magento-payment-braintree/plugins/AddBraintreeMethods",
382
- "targetExport": "PaymentMethodContextProvider",
383
- "targetModule": "@graphcommerce/magento-cart-payment-method",
384
- "type": "component",
428
+ "sourceExport": "graphqlConfig",
429
+ "sourceModule": "@graphcommerce/magento-store/plugins/magentoStoreGraphqlConfig",
430
+ "targetExport": "graphqlConfig",
431
+ "targetModule": "@graphcommerce/graphql",
432
+ "type": "function",
385
433
  },
386
434
  {
387
435
  "enabled": true,
388
- "sourceExport": "PaymentMethodContextProvider",
389
- "sourceModule": "@graphcommerce/mollie-magento-payment/plugins/AddMollieMethods",
390
- "targetExport": "PaymentMethodContextProvider",
391
- "targetModule": "@graphcommerce/magento-cart-payment-method",
392
- "type": "component",
436
+ "sourceExport": "graphqlConfig",
437
+ "sourceModule": "@graphcommerce/magento-graphql/plugins/magentoGraphqlConfig",
438
+ "targetExport": "graphqlConfig",
439
+ "targetModule": "@graphcommerce/graphql",
440
+ "type": "function",
393
441
  },
394
442
  {
395
443
  "enabled": true,
396
- "sourceExport": "PaymentMethodContextProvider",
397
- "sourceModule": "@graphcommerce/magento-payment-paypal/plugins/AddPaypalMethods",
398
- "targetExport": "PaymentMethodContextProvider",
399
- "targetModule": "@graphcommerce/magento-cart-payment-method",
400
- "type": "component",
444
+ "sourceExport": "meshConfig",
445
+ "sourceModule": "@graphcommerce/graphql-mesh/plugins/meshConfigFake",
446
+ "targetExport": "meshConfig",
447
+ "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
448
+ "type": "function",
401
449
  },
402
450
  ]
403
451
  `)
@@ -441,11 +489,11 @@ it('finds plugins', () => {
441
489
  },
442
490
  {
443
491
  "enabled": false,
444
- "ifConfig": "previewSecret",
445
- "sourceExport": "FramerNextPages",
446
- "sourceModule": "@graphcommerce/ecommerce-ui/plugins/PreviewModeFramerNextPages",
447
- "targetExport": "FramerNextPages",
448
- "targetModule": "@graphcommerce/framer-next-pages",
492
+ "ifConfig": "recentlyViewedProducts.enabled",
493
+ "sourceExport": "ProductPageMeta",
494
+ "sourceModule": "@graphcommerce/magento-recently-viewed-products/plugins/RegisterProductAsRecentlyViewed",
495
+ "targetExport": "ProductPageMeta",
496
+ "targetModule": "@graphcommerce/magento-product",
449
497
  "type": "component",
450
498
  },
451
499
  {
@@ -475,15 +523,6 @@ it('finds plugins', () => {
475
523
  "targetModule": "@graphcommerce/next-ui/server",
476
524
  "type": "component",
477
525
  },
478
- {
479
- "enabled": false,
480
- "ifConfig": "dataLayer.coreWebVitals",
481
- "sourceExport": "FramerNextPages",
482
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerWebVitals",
483
- "targetExport": "FramerNextPages",
484
- "targetModule": "@graphcommerce/framer-next-pages",
485
- "type": "component",
486
- },
487
526
  {
488
527
  "enabled": false,
489
528
  "ifConfig": "compare",
@@ -520,15 +559,6 @@ it('finds plugins', () => {
520
559
  "targetModule": "@graphcommerce/magento-cart",
521
560
  "type": "component",
522
561
  },
523
- {
524
- "enabled": false,
525
- "ifConfig": "debug.sessions",
526
- "sourceExport": "FramerNextPages",
527
- "sourceModule": "@graphcommerce/magento-customer/plugins/SessionDebuggerPlugin",
528
- "targetExport": "FramerNextPages",
529
- "targetModule": "@graphcommerce/framer-next-pages",
530
- "type": "component",
531
- },
532
562
  {
533
563
  "enabled": false,
534
564
  "ifConfig": "configurableVariantValues.content",
@@ -576,11 +606,128 @@ it('finds plugins', () => {
576
606
  },
577
607
  {
578
608
  "enabled": false,
579
- "ifConfig": "recentlyViewedProducts.enabled",
580
- "sourceExport": "ProductPageMeta",
581
- "sourceModule": "@graphcommerce/magento-recently-viewed-products/plugins/RegisterProductAsRecentlyViewed",
582
- "targetExport": "ProductPageMeta",
609
+ "ifConfig": "algolia.analyticsEnabled",
610
+ "sourceExport": "useSendEvent",
611
+ "sourceModule": "@graphcommerce/algolia-personalization/plugins/useSendEventAlgolia",
612
+ "targetExport": "useSendEvent",
613
+ "targetModule": "@graphcommerce/google-datalayer",
614
+ "type": "function",
615
+ },
616
+ {
617
+ "enabled": false,
618
+ "ifConfig": "algolia.personalizationEnabled",
619
+ "sourceExport": "getSearchSuggestionsInput",
620
+ "sourceModule": "@graphcommerce/algolia-personalization/plugins/getSearchSuggestionsPersonalization",
621
+ "targetExport": "getSearchSuggestionsInput",
622
+ "targetModule": "@graphcommerce/algolia-mesh",
623
+ "type": "function",
624
+ },
625
+ {
626
+ "enabled": false,
627
+ "ifConfig": "algolia.analyticsEnabled",
628
+ "sourceExport": "getSearchSuggestionsInput",
629
+ "sourceModule": "@graphcommerce/algolia-personalization/plugins/getSearchSuggestionsAnalytics",
630
+ "targetExport": "getSearchSuggestionsInput",
631
+ "targetModule": "@graphcommerce/algolia-mesh",
632
+ "type": "function",
633
+ },
634
+ {
635
+ "enabled": false,
636
+ "ifConfig": "algolia.personalizationEnabled",
637
+ "sourceExport": "getSearchResultsInput",
638
+ "sourceModule": "@graphcommerce/algolia-personalization/plugins/getSearchResultsPersonalization",
639
+ "targetExport": "getSearchResultsInput",
640
+ "targetModule": "@graphcommerce/algolia-mesh",
641
+ "type": "function",
642
+ },
643
+ {
644
+ "enabled": false,
645
+ "ifConfig": "algolia.personalizationEnabled",
646
+ "sourceExport": "getSearchResultsInput",
647
+ "sourceModule": "@graphcommerce/algolia-personalization/plugins/getSearchResultsAnalytics",
648
+ "targetExport": "getSearchResultsInput",
649
+ "targetModule": "@graphcommerce/algolia-mesh",
650
+ "type": "function",
651
+ },
652
+ {
653
+ "enabled": false,
654
+ "ifConfig": "algolia.personalizationEnabled",
655
+ "sourceExport": "getInContextInput",
656
+ "sourceModule": "@graphcommerce/algolia-personalization/plugins/InContextInputAlgoliaUserToken",
657
+ "targetExport": "getInContextInput",
658
+ "targetModule": "@graphcommerce/graphql",
659
+ "type": "function",
660
+ },
661
+ {
662
+ "enabled": false,
663
+ "ifConfig": "algolia.personalizationEnabled",
664
+ "sourceExport": "useInContextInput",
665
+ "sourceModule": "@graphcommerce/algolia-personalization/plugins/InContextInputAlgoliaUserToken",
666
+ "targetExport": "useInContextInput",
667
+ "targetModule": "@graphcommerce/graphql",
668
+ "type": "function",
669
+ },
670
+ {
671
+ "enabled": false,
672
+ "ifConfig": "algolia.catalogEnabled",
673
+ "sourceExport": "useProductListApplyCategoryDefaults",
674
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/magentoProductApplyAlgoliaEngine",
675
+ "targetExport": "useProductListApplyCategoryDefaults",
583
676
  "targetModule": "@graphcommerce/magento-product",
677
+ "type": "function",
678
+ },
679
+ {
680
+ "enabled": false,
681
+ "ifConfig": "algolia.catalogEnabled",
682
+ "sourceExport": "productListApplyCategoryDefaults",
683
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/magentoProductApplyAlgoliaEngine",
684
+ "targetExport": "productListApplyCategoryDefaults",
685
+ "targetModule": "@graphcommerce/magento-product",
686
+ "type": "function",
687
+ },
688
+ {
689
+ "enabled": false,
690
+ "ifConfig": "algolia.catalogEnabled",
691
+ "sourceExport": "categoryDefaultsToProductListFilters",
692
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/magentoProductApplyAlgoliaEngine",
693
+ "targetExport": "categoryDefaultsToProductListFilters",
694
+ "targetModule": "@graphcommerce/magento-product",
695
+ "type": "function",
696
+ },
697
+ {
698
+ "enabled": false,
699
+ "ifConfig": "algolia.customerGroupPricingEnabled",
700
+ "sourceExport": "GraphQLProvider",
701
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/GraphQLProviderAlgoliaCustomerGroupId",
702
+ "targetExport": "GraphQLProvider",
703
+ "targetModule": "@graphcommerce/graphql",
704
+ "type": "component",
705
+ },
706
+ {
707
+ "enabled": false,
708
+ "ifConfig": "dataLayer.coreWebVitals",
709
+ "sourceExport": "FramerNextPages",
710
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerWebVitals",
711
+ "targetExport": "FramerNextPages",
712
+ "targetModule": "@graphcommerce/framer-next-pages",
713
+ "type": "component",
714
+ },
715
+ {
716
+ "enabled": false,
717
+ "ifConfig": "debug.sessions",
718
+ "sourceExport": "FramerNextPages",
719
+ "sourceModule": "@graphcommerce/magento-customer/plugins/SessionDebuggerPlugin",
720
+ "targetExport": "FramerNextPages",
721
+ "targetModule": "@graphcommerce/framer-next-pages",
722
+ "type": "component",
723
+ },
724
+ {
725
+ "enabled": false,
726
+ "ifConfig": "previewSecret",
727
+ "sourceExport": "FramerNextPages",
728
+ "sourceModule": "@graphcommerce/ecommerce-ui/plugins/PreviewModeFramerNextPages",
729
+ "targetExport": "FramerNextPages",
730
+ "targetModule": "@graphcommerce/framer-next-pages",
584
731
  "type": "component",
585
732
  },
586
733
  ]
@@ -9,63 +9,65 @@ it('resolves dependences', () => {
9
9
  Map {
10
10
  "." => "examples/magento-graphcms",
11
11
  "@graphcommerce/cli" => "packages/cli",
12
+ "@graphcommerce/hygraph-cli" => "packages/hygraph-cli",
12
13
  "@graphcommerce/demo-magento-graphcommerce" => "packages/demo-magento-graphcommerce",
13
- "@graphcommerce/ecommerce-ui" => "packages/ecommerce-ui",
14
- "@graphcommerce/framer-next-pages" => "packages/framer-next-pages",
15
- "@graphcommerce/framer-scroller" => "packages/framer-scroller",
16
- "@graphcommerce/framer-utils" => "packages/framer-utils",
14
+ "@graphcommerce/magento-recently-viewed-products" => "packages/magento-recently-viewed-products",
17
15
  "@graphcommerce/googleanalytics" => "packages/googleanalytics",
18
16
  "@graphcommerce/googlerecaptcha" => "packages/googlerecaptcha",
19
17
  "@graphcommerce/googletagmanager" => "packages/googletagmanager",
20
- "@graphcommerce/google-datalayer" => "packages/google-datalayer",
21
- "@graphcommerce/graphcms-ui" => "packages/hygraph-ui",
22
- "@graphcommerce/graphql" => "packages/graphql",
23
- "@graphcommerce/graphql-codegen-near-operation-file" => "packagesDev/graphql-codegen-near-operation-file",
24
- "@graphcommerce/graphql-codegen-relay-optimizer-plugin" => "packagesDev/graphql-codegen-relay-optimizer-plugin",
25
- "@graphcommerce/graphql-mesh" => "packages/graphql-mesh",
26
- "@graphcommerce/hygraph-cli" => "packages/hygraph-cli",
27
18
  "@graphcommerce/hygraph-dynamic-rows" => "packages/hygraph-dynamic-rows",
28
- "@graphcommerce/image" => "packages/image",
29
- "@graphcommerce/lingui-next" => "packages/lingui-next",
30
- "@graphcommerce/magento-cart" => "packages/magento-cart",
19
+ "@graphcommerce/graphcms-ui" => "packages/hygraph-ui",
31
20
  "@graphcommerce/magento-cart-billing-address" => "packages/magento-cart-billing-address",
32
21
  "@graphcommerce/magento-cart-checkout" => "packages/magento-cart-checkout",
33
22
  "@graphcommerce/magento-cart-coupon" => "packages/magento-cart-coupon",
34
23
  "@graphcommerce/magento-cart-email" => "packages/magento-cart-email",
35
- "@graphcommerce/magento-cart-items" => "packages/magento-cart-items",
36
- "@graphcommerce/magento-cart-payment-method" => "packages/magento-cart-payment-method",
37
- "@graphcommerce/magento-cart-shipping-address" => "packages/magento-cart-shipping-address",
38
- "@graphcommerce/magento-cart-shipping-method" => "packages/magento-cart-shipping-method",
39
- "@graphcommerce/magento-category" => "packages/magento-category",
40
24
  "@graphcommerce/magento-cms" => "packages/magento-cms",
41
25
  "@graphcommerce/magento-compare" => "packages/magento-compare",
42
- "@graphcommerce/magento-customer" => "packages/magento-customer",
43
- "@graphcommerce/magento-graphql" => "packages/magento-graphql",
44
26
  "@graphcommerce/magento-graphql-rest" => "packages/magento-graphql-rest",
45
27
  "@graphcommerce/magento-newsletter" => "packages/magento-newsletter",
46
28
  "@graphcommerce/magento-payment-included" => "packages/magento-payment-included",
47
- "@graphcommerce/magento-product" => "packages/magento-product",
48
29
  "@graphcommerce/magento-product-bundle" => "packages/magento-product-bundle",
49
- "@graphcommerce/magento-product-configurable" => "packages/magento-product-configurable",
50
30
  "@graphcommerce/magento-product-downloadable" => "packages/magento-product-downloadable",
51
31
  "@graphcommerce/magento-product-grouped" => "packages/magento-product-grouped",
52
- "@graphcommerce/magento-product-simple" => "packages/magento-product-simple",
53
32
  "@graphcommerce/magento-product-virtual" => "packages/magento-product-virtual",
54
- "@graphcommerce/magento-recently-viewed-products" => "packages/magento-recently-viewed-products",
55
33
  "@graphcommerce/magento-review" => "packages/magento-review",
56
- "@graphcommerce/magento-search" => "packages/magento-search",
57
- "@graphcommerce/magento-store" => "packages/magento-store",
58
34
  "@graphcommerce/magento-wishlist" => "packages/magento-wishlist",
59
- "@graphcommerce/next-config" => "packagesDev/next-config",
60
- "@graphcommerce/next-ui" => "packages/next-ui",
61
- "@graphcommerce/react-hook-form" => "packages/react-hook-form",
62
- "@graphcommerce/eslint-config-pwa" => "packagesDev/eslint-config",
63
- "@graphcommerce/typescript-config-pwa" => "packagesDev/typescript-config",
64
- "@graphcommerce/prettier-config-pwa" => "packagesDev/prettier-config",
65
35
  "@graphcommerce/magento-cart-pickup" => "packages/magento-cart-pickup",
66
36
  "@graphcommerce/magento-payment-braintree" => "packages/magento-payment-braintree",
67
37
  "@graphcommerce/mollie-magento-payment" => "packages/mollie-magento-payment",
38
+ "@graphcommerce/magento-product-configurable" => "packages/magento-product-configurable",
39
+ "@graphcommerce/magento-product-simple" => "packages/magento-product-simple",
40
+ "@graphcommerce/magento-category" => "packages/magento-category",
41
+ "@graphcommerce/magento-cart-items" => "packages/magento-cart-items",
42
+ "@graphcommerce/lingui-next" => "packages/lingui-next",
68
43
  "@graphcommerce/magento-payment-paypal" => "packages/magento-payment-paypal",
44
+ "@graphcommerce/algolia-personalization" => "packages/algolia-personalization",
45
+ "@graphcommerce/algolia-mesh" => "packages/algolia-mesh",
46
+ "@graphcommerce/next-config" => "packagesDev/next-config",
47
+ "@graphcommerce/magento-search" => "packages/magento-search",
48
+ "@graphcommerce/google-datalayer" => "packages/google-datalayer",
49
+ "@graphcommerce/magento-product" => "packages/magento-product",
50
+ "@graphcommerce/magento-cart-shipping-method" => "packages/magento-cart-shipping-method",
51
+ "@graphcommerce/magento-cart-payment-method" => "packages/magento-cart-payment-method",
52
+ "@graphcommerce/magento-cart-shipping-address" => "packages/magento-cart-shipping-address",
53
+ "@graphcommerce/magento-cart" => "packages/magento-cart",
54
+ "@graphcommerce/magento-customer" => "packages/magento-customer",
55
+ "@graphcommerce/magento-store" => "packages/magento-store",
56
+ "@graphcommerce/magento-graphql" => "packages/magento-graphql",
57
+ "@graphcommerce/graphql-mesh" => "packages/graphql-mesh",
58
+ "@graphcommerce/ecommerce-ui" => "packages/ecommerce-ui",
59
+ "@graphcommerce/react-hook-form" => "packages/react-hook-form",
60
+ "@graphcommerce/next-ui" => "packages/next-ui",
61
+ "@graphcommerce/framer-scroller" => "packages/framer-scroller",
62
+ "@graphcommerce/image" => "packages/image",
63
+ "@graphcommerce/framer-next-pages" => "packages/framer-next-pages",
64
+ "@graphcommerce/framer-utils" => "packages/framer-utils",
65
+ "@graphcommerce/graphql" => "packages/graphql",
66
+ "@graphcommerce/graphql-codegen-relay-optimizer-plugin" => "packagesDev/graphql-codegen-relay-optimizer-plugin",
67
+ "@graphcommerce/graphql-codegen-near-operation-file" => "packagesDev/graphql-codegen-near-operation-file",
68
+ "@graphcommerce/prettier-config-pwa" => "packagesDev/prettier-config",
69
+ "@graphcommerce/eslint-config-pwa" => "packagesDev/eslint-config",
70
+ "@graphcommerce/typescript-config-pwa" => "packagesDev/typescript-config",
69
71
  }
70
72
  `)
71
73
  })
@@ -47,7 +47,6 @@ function GraphCommerceConfigSchema() {
47
47
  hygraphEndpoint: zod_1.z.string().min(1),
48
48
  hygraphManagementApi: zod_1.z.string().nullish(),
49
49
  hygraphProjectId: zod_1.z.string().nullish(),
50
- hygraphWriteAccessEndpoint: zod_1.z.string().nullish(),
51
50
  hygraphWriteAccessToken: zod_1.z.string().nullish(),
52
51
  limitSsg: zod_1.z.boolean().nullish(),
53
52
  magentoEndpoint: zod_1.z.string().min(1),
@@ -26,7 +26,7 @@ function resolveRecursivePackageJson(dependencyPath, dependencyStructure, root,
26
26
  ...Object.keys(packageJson.dependencies ?? []),
27
27
  ...Object.keys(packageJson.devDependencies ?? []),
28
28
  ...additionalDependencies,
29
- // ...Object.keys(packageJson.peerDependencies ?? {}),
29
+ ...Object.keys(packageJson.peerDependencies ?? {}),
30
30
  ].filter((name) => name.includes('graphcommerce'))),
31
31
  ];
32
32
  const name = isRoot ? '.' : packageJson.name;
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": "9.0.0-canary.72",
5
+ "version": "9.0.0-canary.74",
6
6
  "type": "commonjs",
7
7
  "main": "dist/index.js",
8
8
  "types": "src/index.ts",
@@ -229,18 +229,20 @@ export type GraphCommerceConfig = {
229
229
  * Project settings -> API Access -> High Performance Read-only Content API
230
230
  */
231
231
  hygraphEndpoint: Scalars['String']['input'];
232
- /** Hygraph Management API. **Only used for migrations.** */
233
- hygraphManagementApi?: InputMaybe<Scalars['String']['input']>;
234
- /** Hygraph Project ID. **Only used for migrations.** */
235
- hygraphProjectId?: InputMaybe<Scalars['String']['input']>;
236
232
  /**
237
- * Content API. **Only used for migrations.**
233
+ * Hygraph Management API. **Only used for migrations.**
238
234
  *
239
- * > Regular read & write endpoint that allows querying and mutating data in your project.
235
+ * Optional: If the hygraphEndpoint is configured with the 'High Performance Content
236
+ * API', this field is not required.
237
+ */
238
+ hygraphManagementApi?: InputMaybe<Scalars['String']['input']>;
239
+ /**
240
+ * Hygraph Project ID. **Only used for migrations.**
240
241
  *
241
- * Project settings -> API Access -> Content API
242
+ * Optional: If the hygraphEndpoint is configured with the 'High Performance Content
243
+ * API', this field is not required.
242
244
  */
243
- hygraphWriteAccessEndpoint?: InputMaybe<Scalars['String']['input']>;
245
+ hygraphProjectId?: InputMaybe<Scalars['String']['input']>;
244
246
  /**
245
247
  * Hygraph Management SDK Authorization Token. **Only used for migrations.**
246
248
  *
@@ -267,7 +269,6 @@ export type GraphCommerceConfig = {
267
269
  * - Can see schema view
268
270
  *
269
271
  * ```
270
- * GC_HYGRAPH_WRITE_ACCESS_ENDPOINT="https://...hygraph.com/v2/..."
271
272
  * GC_HYGRAPH_WRITE_ACCESS_TOKEN="AccessTokenFromHygraph"
272
273
  * yarn graphcommerce hygraph-migrate
273
274
  * ```
@@ -515,7 +516,6 @@ export function GraphCommerceConfigSchema(): z.ZodObject<Properties<GraphCommerc
515
516
  hygraphEndpoint: z.string().min(1),
516
517
  hygraphManagementApi: z.string().nullish(),
517
518
  hygraphProjectId: z.string().nullish(),
518
- hygraphWriteAccessEndpoint: z.string().nullish(),
519
519
  hygraphWriteAccessToken: z.string().nullish(),
520
520
  limitSsg: z.boolean().nullish(),
521
521
  magentoEndpoint: z.string().min(1),
@@ -32,7 +32,7 @@ function resolveRecursivePackageJson(
32
32
  ...Object.keys(packageJson.dependencies ?? []),
33
33
  ...Object.keys(packageJson.devDependencies ?? []),
34
34
  ...additionalDependencies,
35
- // ...Object.keys(packageJson.peerDependencies ?? {}),
35
+ ...Object.keys(packageJson.peerDependencies ?? {}),
36
36
  ].filter((name) => name.includes('graphcommerce')),
37
37
  ),
38
38
  ]