@graphcommerce/next-config 9.0.4-canary.9 → 9.1.0-canary.15

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/__tests__/config/utils/mergeEnvIntoConfig.ts +12 -1
  3. package/__tests__/config/utils/replaceConfigInString.ts +0 -1
  4. package/__tests__/interceptors/findPlugins.ts +301 -254
  5. package/__tests__/utils/resolveDependenciesSync.ts +44 -44
  6. package/dist/generated/config.js +109 -120
  7. package/dist/index.js +3359 -26
  8. package/package.json +33 -8
  9. package/src/config/commands/generateConfig.ts +16 -4
  10. package/src/config/demoConfig.ts +0 -1
  11. package/src/config/loadConfig.ts +3 -9
  12. package/src/config/utils/mergeEnvIntoConfig.ts +8 -6
  13. package/src/generated/config.ts +11 -5
  14. package/src/interceptors/generateInterceptor.ts +0 -2
  15. package/src/interceptors/parseStructure.ts +3 -3
  16. package/src/utils/resolveDependenciesSync.ts +43 -6
  17. package/src/withGraphCommerce.ts +30 -42
  18. package/tsconfig.json +1 -1
  19. package/__tests__/config/utils/rewriteLegancyEnv.ts +0 -79
  20. package/dist/commands/codegen.js +0 -18
  21. package/dist/commands/copyFiles.js +0 -297
  22. package/dist/config/commands/exportConfig.js +0 -16
  23. package/dist/config/commands/generateConfig.js +0 -56
  24. package/dist/config/demoConfig.js +0 -52
  25. package/dist/config/index.js +0 -19
  26. package/dist/config/loadConfig.js +0 -62
  27. package/dist/config/utils/configToImportMeta.js +0 -39
  28. package/dist/config/utils/diff.js +0 -33
  29. package/dist/config/utils/exportConfigToEnv.js +0 -31
  30. package/dist/config/utils/mergeEnvIntoConfig.js +0 -182
  31. package/dist/config/utils/replaceConfigInString.js +0 -12
  32. package/dist/config/utils/rewriteLegacyEnv.js +0 -115
  33. package/dist/interceptors/InterceptorPlugin.js +0 -108
  34. package/dist/interceptors/RenameVisitor.js +0 -19
  35. package/dist/interceptors/Visitor.js +0 -1414
  36. package/dist/interceptors/commands/codegenInterceptors.js +0 -22
  37. package/dist/interceptors/extractExports.js +0 -159
  38. package/dist/interceptors/findOriginalSource.js +0 -103
  39. package/dist/interceptors/findPlugins.js +0 -68
  40. package/dist/interceptors/generateInterceptor.js +0 -219
  41. package/dist/interceptors/generateInterceptors.js +0 -56
  42. package/dist/interceptors/parseStructure.js +0 -84
  43. package/dist/interceptors/swc.js +0 -15
  44. package/dist/interceptors/writeInterceptors.js +0 -44
  45. package/dist/utils/PackagesSort.js +0 -7
  46. package/dist/utils/TopologicalSort.js +0 -87
  47. package/dist/utils/isMonorepo.js +0 -47
  48. package/dist/utils/packageRoots.js +0 -31
  49. package/dist/utils/resolveDependenciesSync.js +0 -78
  50. package/dist/utils/resolveDependency.js +0 -70
  51. package/dist/utils/sig.js +0 -34
  52. package/dist/withGraphCommerce.js +0 -162
  53. package/src/config/utils/rewriteLegacyEnv.ts +0 -125
@@ -1,6 +1,5 @@
1
1
  import type { GraphCommerceConfig } from '../../src/generated/config'
2
2
  import { findPlugins } from '../../src/interceptors/findPlugins'
3
-
4
3
  const projectRoot = `${process.cwd()}/examples/magento-graphcms`
5
4
  it('finds plugins', () => {
6
5
  const fakeconfig = {
@@ -26,147 +25,154 @@ it('finds plugins', () => {
26
25
  },
27
26
  {
28
27
  "enabled": true,
29
- "ifConfig": "demoMode",
30
- "sourceExport": "RowLinks",
31
- "sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoRowLinks",
32
- "targetExport": "RowLinks",
33
- "targetModule": "@graphcommerce/next-ui",
34
- "type": "component",
28
+ "sourceExport": "meshConfig",
29
+ "sourceModule": "@graphcommerce/algolia-recommend/plugins/meshConfigAlgoliaRecommend",
30
+ "targetExport": "meshConfig",
31
+ "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
32
+ "type": "function",
35
33
  },
36
34
  {
37
35
  "enabled": true,
38
- "ifConfig": "demoMode",
39
- "sourceExport": "RecentlyViewedProducts",
40
- "sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoRecentlyViewedProducts",
41
- "targetExport": "RecentlyViewedProducts",
42
- "targetModule": "@graphcommerce/magento-recently-viewed-products",
43
- "type": "component",
36
+ "sourceExport": "getSearchSuggestionsInput",
37
+ "sourceModule": "@graphcommerce/algolia-personalization/plugins/getSearchSuggestionsInputPersonalization",
38
+ "targetExport": "getSearchSuggestionsInput",
39
+ "targetModule": "@graphcommerce/algolia-products",
40
+ "type": "function",
44
41
  },
45
42
  {
46
43
  "enabled": true,
47
- "ifConfig": "demoMode",
48
- "sourceExport": "ProductListItemConfigurable",
49
- "sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoProductListItemConfigurable",
50
- "targetExport": "ProductListItemConfigurable",
51
- "targetModule": "@graphcommerce/magento-product-configurable",
52
- "type": "component",
44
+ "sourceExport": "getSearchResultsInput",
45
+ "sourceModule": "@graphcommerce/algolia-personalization/plugins/getSearchResultsInputPersonalization",
46
+ "targetExport": "getSearchResultsInput",
47
+ "targetModule": "@graphcommerce/algolia-products",
48
+ "type": "function",
53
49
  },
54
50
  {
55
51
  "enabled": true,
56
- "ifConfig": "googleAnalyticsId",
57
- "sourceExport": "sendEvent",
58
- "sourceModule": "@graphcommerce/googleanalytics/plugins/gtagEvent",
59
- "targetExport": "sendEvent",
52
+ "sourceExport": "getPrivateQueryContext",
53
+ "sourceModule": "@graphcommerce/algolia-personalization/plugins/InContextInputAlgoliaUserToken",
54
+ "targetExport": "getPrivateQueryContext",
55
+ "targetModule": "@graphcommerce/graphql",
56
+ "type": "function",
57
+ },
58
+ {
59
+ "enabled": true,
60
+ "sourceExport": "usePrivateQueryContext",
61
+ "sourceModule": "@graphcommerce/algolia-personalization/plugins/InContextInputAlgoliaUserToken",
62
+ "targetExport": "usePrivateQueryContext",
63
+ "targetModule": "@graphcommerce/graphql",
64
+ "type": "function",
65
+ },
66
+ {
67
+ "enabled": true,
68
+ "sourceExport": "useSendEvent",
69
+ "sourceModule": "@graphcommerce/algolia-insights/plugins/useSendEventAlgolia",
70
+ "targetExport": "useSendEvent",
60
71
  "targetModule": "@graphcommerce/google-datalayer",
61
72
  "type": "function",
62
73
  },
63
74
  {
64
75
  "enabled": true,
65
- "ifConfig": "googleAnalyticsId",
66
- "sourceExport": "DocumentHeadEnd",
67
- "sourceModule": "@graphcommerce/googleanalytics/plugins/GoogleAnalyticsTag",
68
- "targetExport": "DocumentHeadEnd",
69
- "targetModule": "@graphcommerce/next-ui/server",
70
- "type": "component",
76
+ "sourceExport": "meshConfig",
77
+ "sourceModule": "@graphcommerce/algolia-insights/plugins/meshConfigAlgoliaInsights",
78
+ "targetExport": "meshConfig",
79
+ "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
80
+ "type": "function",
71
81
  },
72
82
  {
73
83
  "enabled": true,
74
- "ifConfig": "googleRecaptchaKey",
75
- "sourceExport": "GraphQLProvider",
76
- "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaGraphQLProvider",
77
- "targetExport": "GraphQLProvider",
78
- "targetModule": "@graphcommerce/graphql",
79
- "type": "component",
84
+ "sourceExport": "getSearchSuggestionsInput",
85
+ "sourceModule": "@graphcommerce/algolia-insights/plugins/getSearchSuggestionsInputInsights",
86
+ "targetExport": "getSearchSuggestionsInput",
87
+ "targetModule": "@graphcommerce/algolia-products",
88
+ "type": "function",
80
89
  },
81
90
  {
82
91
  "enabled": true,
83
- "ifConfig": "googleRecaptchaKey",
84
- "sourceExport": "ApolloErrorSnackbar",
85
- "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorSnackbar",
86
- "targetExport": "ApolloErrorSnackbar",
87
- "targetModule": "@graphcommerce/ecommerce-ui",
88
- "type": "component",
92
+ "sourceExport": "getSearchResultsInput",
93
+ "sourceModule": "@graphcommerce/algolia-insights/plugins/getSearchResultsInputInsights",
94
+ "targetExport": "getSearchResultsInput",
95
+ "targetModule": "@graphcommerce/algolia-products",
96
+ "type": "function",
89
97
  },
90
98
  {
91
99
  "enabled": true,
92
- "ifConfig": "googleRecaptchaKey",
93
- "sourceExport": "ApolloErrorFullPage",
94
- "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorFullPage",
95
- "targetExport": "ApolloErrorFullPage",
96
- "targetModule": "@graphcommerce/ecommerce-ui",
97
- "type": "component",
100
+ "sourceExport": "meshConfig",
101
+ "sourceModule": "@graphcommerce/algolia-categories/plugins/meshConfigAlgoliaCategories",
102
+ "targetExport": "meshConfig",
103
+ "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
104
+ "type": "function",
98
105
  },
99
106
  {
100
107
  "enabled": true,
101
- "ifConfig": "googleRecaptchaKey",
102
- "sourceExport": "ApolloErrorAlert",
103
- "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorAlert",
104
- "targetExport": "ApolloErrorAlert",
105
- "targetModule": "@graphcommerce/ecommerce-ui",
106
- "type": "component",
108
+ "sourceExport": "meshConfig",
109
+ "sourceModule": "@graphcommerce/algolia-products/plugins/meshConfigAlgolia",
110
+ "targetExport": "meshConfig",
111
+ "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
112
+ "type": "function",
107
113
  },
108
114
  {
109
115
  "enabled": true,
110
- "sourceExport": "hygraphPageContent",
111
- "sourceModule": "@graphcommerce/hygraph-dynamic-rows/plugins/hygraphDynamicRowsPageContent",
112
- "targetExport": "hygraphPageContent",
113
- "targetModule": "@graphcommerce/hygraph-ui",
116
+ "sourceExport": "useProductListApplySearchDefaults",
117
+ "sourceModule": "@graphcommerce/algolia-products/plugins/magentoSearchApplyAlgoliaEngine",
118
+ "targetExport": "useProductListApplySearchDefaults",
119
+ "targetModule": "@graphcommerce/magento-search",
114
120
  "type": "function",
115
121
  },
116
122
  {
117
123
  "enabled": true,
118
- "sourceExport": "previewModeDefaults",
119
- "sourceModule": "@graphcommerce/hygraph-ui/plugins/hygraphPreviewModeDefaults",
120
- "targetExport": "previewModeDefaults",
121
- "targetModule": "@graphcommerce/ecommerce-ui",
124
+ "sourceExport": "productListApplySearchDefaults",
125
+ "sourceModule": "@graphcommerce/algolia-products/plugins/magentoSearchApplyAlgoliaEngine",
126
+ "targetExport": "productListApplySearchDefaults",
127
+ "targetModule": "@graphcommerce/magento-search",
122
128
  "type": "function",
123
129
  },
124
130
  {
125
131
  "enabled": true,
126
- "sourceExport": "graphqlConfig",
127
- "sourceModule": "@graphcommerce/hygraph-ui/plugins/hygraphGraphqlConfig",
128
- "targetExport": "graphqlConfig",
129
- "targetModule": "@graphcommerce/graphql",
132
+ "sourceExport": "searchDefaultsToProductListFilters",
133
+ "sourceModule": "@graphcommerce/algolia-products/plugins/magentoSearchApplyAlgoliaEngine",
134
+ "targetExport": "searchDefaultsToProductListFilters",
135
+ "targetModule": "@graphcommerce/magento-search",
130
136
  "type": "function",
131
137
  },
132
138
  {
133
139
  "enabled": true,
134
- "sourceExport": "PreviewModeToolbar",
135
- "sourceModule": "@graphcommerce/hygraph-ui/plugins/HygraphPreviewModeToolbar",
136
- "targetExport": "PreviewModeToolbar",
137
- "targetModule": "@graphcommerce/ecommerce-ui",
140
+ "sourceExport": "ProductListItemsBase",
141
+ "sourceModule": "@graphcommerce/algolia-products/plugins/ProductListItemsBaseAlgolia",
142
+ "targetExport": "ProductListItemsBase",
143
+ "targetModule": "@graphcommerce/magento-product",
138
144
  "type": "component",
139
145
  },
140
146
  {
141
147
  "enabled": true,
142
- "sourceExport": "meshConfig",
143
- "sourceModule": "@graphcommerce/magento-graphql-rest/plugins/meshConfigM2Rest",
144
- "targetExport": "meshConfig",
145
- "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
146
- "type": "function",
148
+ "sourceExport": "PaymentMethodContextProvider",
149
+ "sourceModule": "@graphcommerce/magento-payment-paypal/plugins/AddPaypalMethods",
150
+ "targetExport": "PaymentMethodContextProvider",
151
+ "targetModule": "@graphcommerce/magento-cart-payment-method",
152
+ "type": "component",
147
153
  },
148
154
  {
149
155
  "enabled": true,
150
156
  "sourceExport": "PaymentMethodContextProvider",
151
- "sourceModule": "@graphcommerce/magento-payment-included/plugins/AddIncludedMethods",
157
+ "sourceModule": "@graphcommerce/mollie-magento-payment/plugins/AddMollieMethods",
152
158
  "targetExport": "PaymentMethodContextProvider",
153
159
  "targetModule": "@graphcommerce/magento-cart-payment-method",
154
160
  "type": "component",
155
161
  },
156
162
  {
157
163
  "enabled": true,
158
- "sourceExport": "CartItemActionCard",
159
- "sourceModule": "@graphcommerce/magento-product-bundle/plugins/BundleCartItemActionCard",
160
- "targetExport": "CartItemActionCard",
161
- "targetModule": "@graphcommerce/magento-cart-items",
164
+ "sourceExport": "PaymentMethodContextProvider",
165
+ "sourceModule": "@graphcommerce/magento-payment-braintree/plugins/AddBraintreeMethods",
166
+ "targetExport": "PaymentMethodContextProvider",
167
+ "targetModule": "@graphcommerce/magento-cart-payment-method",
162
168
  "type": "component",
163
169
  },
164
170
  {
165
171
  "enabled": true,
166
- "sourceExport": "CartItemActionCard",
167
- "sourceModule": "@graphcommerce/magento-product-virtual/plugins/VirtualCartItemActionCard",
168
- "targetExport": "CartItemActionCard",
169
- "targetModule": "@graphcommerce/magento-cart-items",
172
+ "sourceExport": "ShippingMethodForm",
173
+ "sourceModule": "@graphcommerce/magento-cart-pickup/plugins/AddPickupInStore",
174
+ "targetExport": "ShippingMethodForm",
175
+ "targetModule": "@graphcommerce/magento-cart-shipping-method",
170
176
  "type": "component",
171
177
  },
172
178
  {
@@ -195,56 +201,48 @@ it('finds plugins', () => {
195
201
  },
196
202
  {
197
203
  "enabled": true,
198
- "sourceExport": "ShippingMethodForm",
199
- "sourceModule": "@graphcommerce/magento-cart-pickup/plugins/AddPickupInStore",
200
- "targetExport": "ShippingMethodForm",
201
- "targetModule": "@graphcommerce/magento-cart-shipping-method",
202
- "type": "component",
203
- },
204
- {
205
- "enabled": true,
206
- "sourceExport": "PaymentMethodContextProvider",
207
- "sourceModule": "@graphcommerce/magento-payment-braintree/plugins/AddBraintreeMethods",
208
- "targetExport": "PaymentMethodContextProvider",
209
- "targetModule": "@graphcommerce/magento-cart-payment-method",
210
- "type": "component",
204
+ "sourceExport": "cartItemToCartItemInput",
205
+ "sourceModule": "@graphcommerce/magento-product-downloadable/plugins/Downloadable_cartItemToCartItemInput",
206
+ "targetExport": "cartItemToCartItemInput",
207
+ "targetModule": "@graphcommerce/magento-cart-items",
208
+ "type": "function",
211
209
  },
212
210
  {
213
211
  "enabled": true,
214
- "sourceExport": "PaymentMethodContextProvider",
215
- "sourceModule": "@graphcommerce/mollie-magento-payment/plugins/AddMollieMethods",
216
- "targetExport": "PaymentMethodContextProvider",
217
- "targetModule": "@graphcommerce/magento-cart-payment-method",
212
+ "sourceExport": "ProductPagePrice",
213
+ "sourceModule": "@graphcommerce/magento-product-downloadable/plugins/DownloadableProductPagePrice",
214
+ "targetExport": "ProductPagePrice",
215
+ "targetModule": "@graphcommerce/magento-product",
218
216
  "type": "component",
219
217
  },
220
218
  {
221
219
  "enabled": true,
222
220
  "sourceExport": "CartItemActionCard",
223
- "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableCartItemActionCard",
221
+ "sourceModule": "@graphcommerce/magento-product-downloadable/plugins/DownloadableCartItemActionCard",
224
222
  "targetExport": "CartItemActionCard",
225
223
  "targetModule": "@graphcommerce/magento-cart-items",
226
224
  "type": "component",
227
225
  },
228
226
  {
229
227
  "enabled": true,
230
- "sourceExport": "ProductPagePriceTiers",
231
- "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePriceTiers",
232
- "targetExport": "ProductPagePriceTiers",
233
- "targetModule": "@graphcommerce/magento-product",
228
+ "sourceExport": "AccountMenuItem",
229
+ "sourceModule": "@graphcommerce/magento-product-downloadable/plugins/DownloadableAccountMenuItem",
230
+ "targetExport": "AccountMenuItem",
231
+ "targetModule": "@graphcommerce/magento-customer",
234
232
  "type": "component",
235
233
  },
236
234
  {
237
235
  "enabled": true,
238
- "sourceExport": "ProductPagePrice",
239
- "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice",
240
- "targetExport": "ProductPagePrice",
241
- "targetModule": "@graphcommerce/magento-product",
236
+ "sourceExport": "CartItemActionCard",
237
+ "sourceModule": "@graphcommerce/magento-product-bundle/plugins/BundleCartItemActionCard",
238
+ "targetExport": "CartItemActionCard",
239
+ "targetModule": "@graphcommerce/magento-cart-items",
242
240
  "type": "component",
243
241
  },
244
242
  {
245
243
  "enabled": true,
246
244
  "sourceExport": "CartItemActionCard",
247
- "sourceModule": "@graphcommerce/magento-product-simple/plugins/SimpleCartItemActionCard",
245
+ "sourceModule": "@graphcommerce/magento-product-virtual/plugins/VirtualCartItemActionCard",
248
246
  "targetExport": "CartItemActionCard",
249
247
  "targetModule": "@graphcommerce/magento-cart-items",
250
248
  "type": "component",
@@ -252,7 +250,7 @@ it('finds plugins', () => {
252
250
  {
253
251
  "enabled": true,
254
252
  "sourceExport": "PaymentMethodContextProvider",
255
- "sourceModule": "@graphcommerce/magento-payment-paypal/plugins/AddPaypalMethods",
253
+ "sourceModule": "@graphcommerce/magento-payment-included/plugins/AddIncludedMethods",
256
254
  "targetExport": "PaymentMethodContextProvider",
257
255
  "targetModule": "@graphcommerce/magento-cart-payment-method",
258
256
  "type": "component",
@@ -260,121 +258,95 @@ it('finds plugins', () => {
260
258
  {
261
259
  "enabled": true,
262
260
  "sourceExport": "meshConfig",
263
- "sourceModule": "@graphcommerce/algolia-categories/plugins/meshConfigAlgoliaCategories",
261
+ "sourceModule": "@graphcommerce/magento-graphql-rest/plugins/meshConfigM2Rest",
264
262
  "targetExport": "meshConfig",
265
263
  "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
266
264
  "type": "function",
267
265
  },
268
266
  {
269
267
  "enabled": true,
270
- "sourceExport": "getSearchSuggestionsInput",
271
- "sourceModule": "@graphcommerce/algolia-personalization/plugins/getSearchSuggestionsInputPersonalization",
272
- "targetExport": "getSearchSuggestionsInput",
273
- "targetModule": "@graphcommerce/algolia-products",
274
- "type": "function",
275
- },
276
- {
277
- "enabled": true,
278
- "sourceExport": "getSearchResultsInput",
279
- "sourceModule": "@graphcommerce/algolia-personalization/plugins/getSearchResultsInputPersonalization",
280
- "targetExport": "getSearchResultsInput",
281
- "targetModule": "@graphcommerce/algolia-products",
268
+ "sourceExport": "hygraphPageContent",
269
+ "sourceModule": "@graphcommerce/hygraph-dynamic-rows/plugins/hygraphDynamicRowsPageContent",
270
+ "targetExport": "hygraphPageContent",
271
+ "targetModule": "@graphcommerce/hygraph-ui",
282
272
  "type": "function",
283
273
  },
284
274
  {
285
275
  "enabled": true,
286
- "sourceExport": "getPrivateQueryContext",
287
- "sourceModule": "@graphcommerce/algolia-personalization/plugins/InContextInputAlgoliaUserToken",
288
- "targetExport": "getPrivateQueryContext",
289
- "targetModule": "@graphcommerce/graphql",
276
+ "sourceExport": "previewModeDefaults",
277
+ "sourceModule": "@graphcommerce/hygraph-ui/plugins/hygraphPreviewModeDefaults",
278
+ "targetExport": "previewModeDefaults",
279
+ "targetModule": "@graphcommerce/ecommerce-ui",
290
280
  "type": "function",
291
281
  },
292
282
  {
293
283
  "enabled": true,
294
- "sourceExport": "usePrivateQueryContext",
295
- "sourceModule": "@graphcommerce/algolia-personalization/plugins/InContextInputAlgoliaUserToken",
296
- "targetExport": "usePrivateQueryContext",
284
+ "sourceExport": "graphqlConfig",
285
+ "sourceModule": "@graphcommerce/hygraph-ui/plugins/hygraphGraphqlConfig",
286
+ "targetExport": "graphqlConfig",
297
287
  "targetModule": "@graphcommerce/graphql",
298
288
  "type": "function",
299
289
  },
300
290
  {
301
291
  "enabled": true,
302
- "sourceExport": "useSendEvent",
303
- "sourceModule": "@graphcommerce/algolia-insights/plugins/useSendEventAlgolia",
304
- "targetExport": "useSendEvent",
305
- "targetModule": "@graphcommerce/google-datalayer",
306
- "type": "function",
307
- },
308
- {
309
- "enabled": true,
310
- "sourceExport": "meshConfig",
311
- "sourceModule": "@graphcommerce/algolia-insights/plugins/meshConfigAlgoliaInsights",
312
- "targetExport": "meshConfig",
313
- "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
314
- "type": "function",
315
- },
316
- {
317
- "enabled": true,
318
- "sourceExport": "getSearchSuggestionsInput",
319
- "sourceModule": "@graphcommerce/algolia-insights/plugins/getSearchSuggestionsInputInsights",
320
- "targetExport": "getSearchSuggestionsInput",
321
- "targetModule": "@graphcommerce/algolia-products",
322
- "type": "function",
323
- },
324
- {
325
- "enabled": true,
326
- "sourceExport": "getSearchResultsInput",
327
- "sourceModule": "@graphcommerce/algolia-insights/plugins/getSearchResultsInputInsights",
328
- "targetExport": "getSearchResultsInput",
329
- "targetModule": "@graphcommerce/algolia-products",
330
- "type": "function",
292
+ "sourceExport": "PreviewModeToolbar",
293
+ "sourceModule": "@graphcommerce/hygraph-ui/plugins/HygraphPreviewModeToolbar",
294
+ "targetExport": "PreviewModeToolbar",
295
+ "targetModule": "@graphcommerce/ecommerce-ui",
296
+ "type": "component",
331
297
  },
332
298
  {
333
299
  "enabled": true,
334
- "sourceExport": "meshConfig",
335
- "sourceModule": "@graphcommerce/algolia-recommend/plugins/meshConfigAlgoliaRecommend",
336
- "targetExport": "meshConfig",
337
- "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
338
- "type": "function",
300
+ "ifConfig": "googleRecaptchaKey",
301
+ "sourceExport": "GraphQLProvider",
302
+ "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaGraphQLProvider",
303
+ "targetExport": "GraphQLProvider",
304
+ "targetModule": "@graphcommerce/graphql",
305
+ "type": "component",
339
306
  },
340
307
  {
341
308
  "enabled": true,
342
- "sourceExport": "meshConfig",
343
- "sourceModule": "@graphcommerce/algolia-products/plugins/meshConfigAlgolia",
344
- "targetExport": "meshConfig",
345
- "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
346
- "type": "function",
309
+ "ifConfig": "googleRecaptchaKey",
310
+ "sourceExport": "ApolloErrorSnackbar",
311
+ "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorSnackbar",
312
+ "targetExport": "ApolloErrorSnackbar",
313
+ "targetModule": "@graphcommerce/ecommerce-ui",
314
+ "type": "component",
347
315
  },
348
316
  {
349
317
  "enabled": true,
350
- "sourceExport": "useProductListApplySearchDefaults",
351
- "sourceModule": "@graphcommerce/algolia-products/plugins/magentoSearchApplyAlgoliaEngine",
352
- "targetExport": "useProductListApplySearchDefaults",
353
- "targetModule": "@graphcommerce/magento-search",
354
- "type": "function",
318
+ "ifConfig": "googleRecaptchaKey",
319
+ "sourceExport": "ApolloErrorFullPage",
320
+ "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorFullPage",
321
+ "targetExport": "ApolloErrorFullPage",
322
+ "targetModule": "@graphcommerce/ecommerce-ui",
323
+ "type": "component",
355
324
  },
356
325
  {
357
326
  "enabled": true,
358
- "sourceExport": "productListApplySearchDefaults",
359
- "sourceModule": "@graphcommerce/algolia-products/plugins/magentoSearchApplyAlgoliaEngine",
360
- "targetExport": "productListApplySearchDefaults",
361
- "targetModule": "@graphcommerce/magento-search",
362
- "type": "function",
327
+ "ifConfig": "googleRecaptchaKey",
328
+ "sourceExport": "ApolloErrorAlert",
329
+ "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorAlert",
330
+ "targetExport": "ApolloErrorAlert",
331
+ "targetModule": "@graphcommerce/ecommerce-ui",
332
+ "type": "component",
363
333
  },
364
334
  {
365
335
  "enabled": true,
366
- "sourceExport": "searchDefaultsToProductListFilters",
367
- "sourceModule": "@graphcommerce/algolia-products/plugins/magentoSearchApplyAlgoliaEngine",
368
- "targetExport": "searchDefaultsToProductListFilters",
369
- "targetModule": "@graphcommerce/magento-search",
336
+ "ifConfig": "googleAnalyticsId",
337
+ "sourceExport": "sendEvent",
338
+ "sourceModule": "@graphcommerce/googleanalytics/plugins/gtagEvent",
339
+ "targetExport": "sendEvent",
340
+ "targetModule": "@graphcommerce/google-datalayer",
370
341
  "type": "function",
371
342
  },
372
343
  {
373
344
  "enabled": true,
374
- "sourceExport": "ProductListItemsBase",
375
- "sourceModule": "@graphcommerce/algolia-products/plugins/ProductListItemsBaseAlgolia",
376
- "targetExport": "ProductListItemsBase",
377
- "targetModule": "@graphcommerce/magento-product",
345
+ "ifConfig": "googleAnalyticsId",
346
+ "sourceExport": "DocumentHeadEnd",
347
+ "sourceModule": "@graphcommerce/googleanalytics/plugins/GoogleAnalyticsTag",
348
+ "targetExport": "DocumentHeadEnd",
349
+ "targetModule": "@graphcommerce/next-ui/server",
378
350
  "type": "component",
379
351
  },
380
352
  {
@@ -465,6 +437,65 @@ it('finds plugins', () => {
465
437
  "targetModule": "@graphcommerce/magento-product",
466
438
  "type": "component",
467
439
  },
440
+ {
441
+ "enabled": true,
442
+ "ifConfig": "demoMode",
443
+ "sourceExport": "RowLinks",
444
+ "sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoRowLinks",
445
+ "targetExport": "RowLinks",
446
+ "targetModule": "@graphcommerce/next-ui",
447
+ "type": "component",
448
+ },
449
+ {
450
+ "enabled": true,
451
+ "ifConfig": "demoMode",
452
+ "sourceExport": "RecentlyViewedProducts",
453
+ "sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoRecentlyViewedProducts",
454
+ "targetExport": "RecentlyViewedProducts",
455
+ "targetModule": "@graphcommerce/magento-recently-viewed-products",
456
+ "type": "component",
457
+ },
458
+ {
459
+ "enabled": true,
460
+ "ifConfig": "demoMode",
461
+ "sourceExport": "ProductListItemConfigurable",
462
+ "sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoProductListItemConfigurable",
463
+ "targetExport": "ProductListItemConfigurable",
464
+ "targetModule": "@graphcommerce/magento-product-configurable",
465
+ "type": "component",
466
+ },
467
+ {
468
+ "enabled": true,
469
+ "sourceExport": "CartItemActionCard",
470
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableCartItemActionCard",
471
+ "targetExport": "CartItemActionCard",
472
+ "targetModule": "@graphcommerce/magento-cart-items",
473
+ "type": "component",
474
+ },
475
+ {
476
+ "enabled": true,
477
+ "sourceExport": "ProductPagePriceTiers",
478
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePriceTiers",
479
+ "targetExport": "ProductPagePriceTiers",
480
+ "targetModule": "@graphcommerce/magento-product",
481
+ "type": "component",
482
+ },
483
+ {
484
+ "enabled": true,
485
+ "sourceExport": "ProductPagePrice",
486
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice",
487
+ "targetExport": "ProductPagePrice",
488
+ "targetModule": "@graphcommerce/magento-product",
489
+ "type": "component",
490
+ },
491
+ {
492
+ "enabled": true,
493
+ "sourceExport": "CartItemActionCard",
494
+ "sourceModule": "@graphcommerce/magento-product-simple/plugins/SimpleCartItemActionCard",
495
+ "targetExport": "CartItemActionCard",
496
+ "targetModule": "@graphcommerce/magento-cart-items",
497
+ "type": "component",
498
+ },
468
499
  {
469
500
  "enabled": true,
470
501
  "sourceExport": "useSignInForm",
@@ -533,6 +564,22 @@ it('finds plugins', () => {
533
564
  "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
534
565
  "type": "function",
535
566
  },
567
+ {
568
+ "enabled": true,
569
+ "sourceExport": "meshConfig",
570
+ "sourceModule": "@graphcommerce/magento-graphql/plugins/magentoOrders",
571
+ "targetExport": "meshConfig",
572
+ "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
573
+ "type": "function",
574
+ },
575
+ {
576
+ "enabled": true,
577
+ "sourceExport": "meshConfig",
578
+ "sourceModule": "@graphcommerce/magento-graphql/plugins/magentoOrderItemMesh",
579
+ "targetExport": "meshConfig",
580
+ "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
581
+ "type": "function",
582
+ },
536
583
  {
537
584
  "enabled": true,
538
585
  "sourceExport": "graphqlConfig",
@@ -556,38 +603,38 @@ it('finds plugins', () => {
556
603
  [
557
604
  {
558
605
  "enabled": false,
559
- "ifConfig": "recentlyViewedProducts.enabled",
560
- "sourceExport": "ProductPageMeta",
561
- "sourceModule": "@graphcommerce/magento-recently-viewed-products/plugins/RegisterProductAsRecentlyViewed",
562
- "targetExport": "ProductPageMeta",
606
+ "ifConfig": "algolia.catalogEnabled",
607
+ "sourceExport": "useProductListApplyCategoryDefaults",
608
+ "sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
609
+ "targetExport": "useProductListApplyCategoryDefaults",
563
610
  "targetModule": "@graphcommerce/magento-product",
564
- "type": "component",
611
+ "type": "function",
565
612
  },
566
613
  {
567
614
  "enabled": false,
568
- "ifConfig": "googleTagmanagerId",
569
- "sourceExport": "sendEvent",
570
- "sourceModule": "@graphcommerce/googletagmanager/plugins/tagmanagerEvent",
571
- "targetExport": "sendEvent",
572
- "targetModule": "@graphcommerce/google-datalayer",
615
+ "ifConfig": "algolia.catalogEnabled",
616
+ "sourceExport": "productListApplyCategoryDefaults",
617
+ "sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
618
+ "targetExport": "productListApplyCategoryDefaults",
619
+ "targetModule": "@graphcommerce/magento-product",
573
620
  "type": "function",
574
621
  },
575
622
  {
576
623
  "enabled": false,
577
- "ifConfig": "googleTagmanagerId",
578
- "sourceExport": "DocumentBodyStart",
579
- "sourceModule": "@graphcommerce/googletagmanager/plugins/GoogleTagmanagerTag",
580
- "targetExport": "DocumentBodyStart",
581
- "targetModule": "@graphcommerce/next-ui/server",
582
- "type": "component",
624
+ "ifConfig": "algolia.catalogEnabled",
625
+ "sourceExport": "categoryDefaultsToProductListFilters",
626
+ "sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
627
+ "targetExport": "categoryDefaultsToProductListFilters",
628
+ "targetModule": "@graphcommerce/magento-product",
629
+ "type": "function",
583
630
  },
584
631
  {
585
632
  "enabled": false,
586
- "ifConfig": "googleTagmanagerId",
587
- "sourceExport": "DocumentHeadEnd",
588
- "sourceModule": "@graphcommerce/googletagmanager/plugins/GoogleTagmanagerTag",
589
- "targetExport": "DocumentHeadEnd",
590
- "targetModule": "@graphcommerce/next-ui/server",
633
+ "ifConfig": "algolia.customerGroupPricingEnabled",
634
+ "sourceExport": "GraphQLProvider",
635
+ "sourceModule": "@graphcommerce/algolia-products/plugins/GraphQLProviderAlgoliaCustomerGroupId",
636
+ "targetExport": "GraphQLProvider",
637
+ "targetModule": "@graphcommerce/graphql",
591
638
  "type": "component",
592
639
  },
593
640
  {
@@ -626,6 +673,51 @@ it('finds plugins', () => {
626
673
  "targetModule": "@graphcommerce/magento-cart",
627
674
  "type": "component",
628
675
  },
676
+ {
677
+ "enabled": false,
678
+ "ifConfig": "googleTagmanagerId",
679
+ "sourceExport": "sendEvent",
680
+ "sourceModule": "@graphcommerce/googletagmanager/plugins/tagmanagerEvent",
681
+ "targetExport": "sendEvent",
682
+ "targetModule": "@graphcommerce/google-datalayer",
683
+ "type": "function",
684
+ },
685
+ {
686
+ "enabled": false,
687
+ "ifConfig": "googleTagmanagerId",
688
+ "sourceExport": "DocumentBodyStart",
689
+ "sourceModule": "@graphcommerce/googletagmanager/plugins/GoogleTagmanagerTag",
690
+ "targetExport": "DocumentBodyStart",
691
+ "targetModule": "@graphcommerce/next-ui/server",
692
+ "type": "component",
693
+ },
694
+ {
695
+ "enabled": false,
696
+ "ifConfig": "googleTagmanagerId",
697
+ "sourceExport": "DocumentHeadEnd",
698
+ "sourceModule": "@graphcommerce/googletagmanager/plugins/GoogleTagmanagerTag",
699
+ "targetExport": "DocumentHeadEnd",
700
+ "targetModule": "@graphcommerce/next-ui/server",
701
+ "type": "component",
702
+ },
703
+ {
704
+ "enabled": false,
705
+ "ifConfig": "dataLayer.coreWebVitals",
706
+ "sourceExport": "FramerNextPages",
707
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerWebVitals",
708
+ "targetExport": "FramerNextPages",
709
+ "targetModule": "@graphcommerce/framer-next-pages",
710
+ "type": "component",
711
+ },
712
+ {
713
+ "enabled": false,
714
+ "ifConfig": "recentlyViewedProducts.enabled",
715
+ "sourceExport": "ProductPageMeta",
716
+ "sourceModule": "@graphcommerce/magento-recently-viewed-products/plugins/RegisterProductAsRecentlyViewed",
717
+ "targetExport": "ProductPageMeta",
718
+ "targetModule": "@graphcommerce/magento-product",
719
+ "type": "component",
720
+ },
629
721
  {
630
722
  "enabled": false,
631
723
  "ifConfig": "configurableVariantValues.content",
@@ -680,51 +772,6 @@ it('finds plugins', () => {
680
772
  "targetModule": "@graphcommerce/magento-product",
681
773
  "type": "component",
682
774
  },
683
- {
684
- "enabled": false,
685
- "ifConfig": "algolia.catalogEnabled",
686
- "sourceExport": "useProductListApplyCategoryDefaults",
687
- "sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
688
- "targetExport": "useProductListApplyCategoryDefaults",
689
- "targetModule": "@graphcommerce/magento-product",
690
- "type": "function",
691
- },
692
- {
693
- "enabled": false,
694
- "ifConfig": "algolia.catalogEnabled",
695
- "sourceExport": "productListApplyCategoryDefaults",
696
- "sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
697
- "targetExport": "productListApplyCategoryDefaults",
698
- "targetModule": "@graphcommerce/magento-product",
699
- "type": "function",
700
- },
701
- {
702
- "enabled": false,
703
- "ifConfig": "algolia.catalogEnabled",
704
- "sourceExport": "categoryDefaultsToProductListFilters",
705
- "sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
706
- "targetExport": "categoryDefaultsToProductListFilters",
707
- "targetModule": "@graphcommerce/magento-product",
708
- "type": "function",
709
- },
710
- {
711
- "enabled": false,
712
- "ifConfig": "algolia.customerGroupPricingEnabled",
713
- "sourceExport": "GraphQLProvider",
714
- "sourceModule": "@graphcommerce/algolia-products/plugins/GraphQLProviderAlgoliaCustomerGroupId",
715
- "targetExport": "GraphQLProvider",
716
- "targetModule": "@graphcommerce/graphql",
717
- "type": "component",
718
- },
719
- {
720
- "enabled": false,
721
- "ifConfig": "dataLayer.coreWebVitals",
722
- "sourceExport": "FramerNextPages",
723
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerWebVitals",
724
- "targetExport": "FramerNextPages",
725
- "targetModule": "@graphcommerce/framer-next-pages",
726
- "type": "component",
727
- },
728
775
  {
729
776
  "enabled": false,
730
777
  "ifConfig": "debug.cart",