@graphcommerce/next-config 9.0.4-canary.1 → 9.0.4-canary.11

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 (54) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/__tests__/config/utils/__snapshots__/mergeEnvIntoConfig.ts.snap +0 -905
  3. package/__tests__/config/utils/mergeEnvIntoConfig.ts +19 -2
  4. package/__tests__/config/utils/replaceConfigInString.ts +0 -1
  5. package/__tests__/interceptors/findPlugins.ts +270 -273
  6. package/__tests__/utils/resolveDependenciesSync.ts +44 -44
  7. package/dist/generated/config.js +109 -119
  8. package/dist/index.js +3359 -26
  9. package/package.json +33 -8
  10. package/src/config/commands/generateConfig.ts +16 -4
  11. package/src/config/demoConfig.ts +0 -1
  12. package/src/config/loadConfig.ts +3 -9
  13. package/src/config/utils/mergeEnvIntoConfig.ts +8 -6
  14. package/src/generated/config.ts +17 -5
  15. package/src/interceptors/generateInterceptor.ts +0 -2
  16. package/src/interceptors/parseStructure.ts +3 -3
  17. package/src/utils/resolveDependenciesSync.ts +43 -6
  18. package/src/withGraphCommerce.ts +30 -42
  19. package/tsconfig.json +1 -1
  20. package/__tests__/config/utils/rewriteLegancyEnv.ts +0 -79
  21. package/dist/commands/codegen.js +0 -18
  22. package/dist/commands/copyFiles.js +0 -297
  23. package/dist/config/commands/exportConfig.js +0 -16
  24. package/dist/config/commands/generateConfig.js +0 -56
  25. package/dist/config/demoConfig.js +0 -52
  26. package/dist/config/index.js +0 -19
  27. package/dist/config/loadConfig.js +0 -62
  28. package/dist/config/utils/configToImportMeta.js +0 -39
  29. package/dist/config/utils/diff.js +0 -33
  30. package/dist/config/utils/exportConfigToEnv.js +0 -31
  31. package/dist/config/utils/mergeEnvIntoConfig.js +0 -182
  32. package/dist/config/utils/replaceConfigInString.js +0 -12
  33. package/dist/config/utils/rewriteLegacyEnv.js +0 -115
  34. package/dist/interceptors/InterceptorPlugin.js +0 -108
  35. package/dist/interceptors/RenameVisitor.js +0 -19
  36. package/dist/interceptors/Visitor.js +0 -1414
  37. package/dist/interceptors/commands/codegenInterceptors.js +0 -22
  38. package/dist/interceptors/extractExports.js +0 -159
  39. package/dist/interceptors/findOriginalSource.js +0 -103
  40. package/dist/interceptors/findPlugins.js +0 -68
  41. package/dist/interceptors/generateInterceptor.js +0 -219
  42. package/dist/interceptors/generateInterceptors.js +0 -56
  43. package/dist/interceptors/parseStructure.js +0 -84
  44. package/dist/interceptors/swc.js +0 -15
  45. package/dist/interceptors/writeInterceptors.js +0 -44
  46. package/dist/utils/PackagesSort.js +0 -7
  47. package/dist/utils/TopologicalSort.js +0 -87
  48. package/dist/utils/isMonorepo.js +0 -47
  49. package/dist/utils/packageRoots.js +0 -31
  50. package/dist/utils/resolveDependenciesSync.js +0 -78
  51. package/dist/utils/resolveDependency.js +0 -70
  52. package/dist/utils/sig.js +0 -34
  53. package/dist/withGraphCommerce.js +0 -162
  54. 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
  {
@@ -193,58 +199,18 @@ it('finds plugins', () => {
193
199
  "targetModule": "@graphcommerce/magento-wishlist",
194
200
  "type": "component",
195
201
  },
196
- {
197
- "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",
211
- },
212
- {
213
- "enabled": true,
214
- "sourceExport": "PaymentMethodContextProvider",
215
- "sourceModule": "@graphcommerce/mollie-magento-payment/plugins/AddMollieMethods",
216
- "targetExport": "PaymentMethodContextProvider",
217
- "targetModule": "@graphcommerce/magento-cart-payment-method",
218
- "type": "component",
219
- },
220
202
  {
221
203
  "enabled": true,
222
204
  "sourceExport": "CartItemActionCard",
223
- "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableCartItemActionCard",
205
+ "sourceModule": "@graphcommerce/magento-product-bundle/plugins/BundleCartItemActionCard",
224
206
  "targetExport": "CartItemActionCard",
225
207
  "targetModule": "@graphcommerce/magento-cart-items",
226
208
  "type": "component",
227
209
  },
228
- {
229
- "enabled": true,
230
- "sourceExport": "ProductPagePriceTiers",
231
- "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePriceTiers",
232
- "targetExport": "ProductPagePriceTiers",
233
- "targetModule": "@graphcommerce/magento-product",
234
- "type": "component",
235
- },
236
- {
237
- "enabled": true,
238
- "sourceExport": "ProductPagePrice",
239
- "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice",
240
- "targetExport": "ProductPagePrice",
241
- "targetModule": "@graphcommerce/magento-product",
242
- "type": "component",
243
- },
244
210
  {
245
211
  "enabled": true,
246
212
  "sourceExport": "CartItemActionCard",
247
- "sourceModule": "@graphcommerce/magento-product-simple/plugins/SimpleCartItemActionCard",
213
+ "sourceModule": "@graphcommerce/magento-product-virtual/plugins/VirtualCartItemActionCard",
248
214
  "targetExport": "CartItemActionCard",
249
215
  "targetModule": "@graphcommerce/magento-cart-items",
250
216
  "type": "component",
@@ -252,7 +218,7 @@ it('finds plugins', () => {
252
218
  {
253
219
  "enabled": true,
254
220
  "sourceExport": "PaymentMethodContextProvider",
255
- "sourceModule": "@graphcommerce/magento-payment-paypal/plugins/AddPaypalMethods",
221
+ "sourceModule": "@graphcommerce/magento-payment-included/plugins/AddIncludedMethods",
256
222
  "targetExport": "PaymentMethodContextProvider",
257
223
  "targetModule": "@graphcommerce/magento-cart-payment-method",
258
224
  "type": "component",
@@ -260,121 +226,95 @@ it('finds plugins', () => {
260
226
  {
261
227
  "enabled": true,
262
228
  "sourceExport": "meshConfig",
263
- "sourceModule": "@graphcommerce/algolia-categories/plugins/meshConfigAlgoliaCategories",
229
+ "sourceModule": "@graphcommerce/magento-graphql-rest/plugins/meshConfigM2Rest",
264
230
  "targetExport": "meshConfig",
265
231
  "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
266
232
  "type": "function",
267
233
  },
268
234
  {
269
235
  "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",
236
+ "sourceExport": "hygraphPageContent",
237
+ "sourceModule": "@graphcommerce/hygraph-dynamic-rows/plugins/hygraphDynamicRowsPageContent",
238
+ "targetExport": "hygraphPageContent",
239
+ "targetModule": "@graphcommerce/hygraph-ui",
282
240
  "type": "function",
283
241
  },
284
242
  {
285
243
  "enabled": true,
286
- "sourceExport": "getPrivateQueryContext",
287
- "sourceModule": "@graphcommerce/algolia-personalization/plugins/InContextInputAlgoliaUserToken",
288
- "targetExport": "getPrivateQueryContext",
289
- "targetModule": "@graphcommerce/graphql",
244
+ "sourceExport": "previewModeDefaults",
245
+ "sourceModule": "@graphcommerce/hygraph-ui/plugins/hygraphPreviewModeDefaults",
246
+ "targetExport": "previewModeDefaults",
247
+ "targetModule": "@graphcommerce/ecommerce-ui",
290
248
  "type": "function",
291
249
  },
292
250
  {
293
251
  "enabled": true,
294
- "sourceExport": "usePrivateQueryContext",
295
- "sourceModule": "@graphcommerce/algolia-personalization/plugins/InContextInputAlgoliaUserToken",
296
- "targetExport": "usePrivateQueryContext",
252
+ "sourceExport": "graphqlConfig",
253
+ "sourceModule": "@graphcommerce/hygraph-ui/plugins/hygraphGraphqlConfig",
254
+ "targetExport": "graphqlConfig",
297
255
  "targetModule": "@graphcommerce/graphql",
298
256
  "type": "function",
299
257
  },
300
258
  {
301
259
  "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",
260
+ "sourceExport": "PreviewModeToolbar",
261
+ "sourceModule": "@graphcommerce/hygraph-ui/plugins/HygraphPreviewModeToolbar",
262
+ "targetExport": "PreviewModeToolbar",
263
+ "targetModule": "@graphcommerce/ecommerce-ui",
264
+ "type": "component",
331
265
  },
332
266
  {
333
267
  "enabled": true,
334
- "sourceExport": "meshConfig",
335
- "sourceModule": "@graphcommerce/algolia-recommend/plugins/meshConfigAlgoliaRecommend",
336
- "targetExport": "meshConfig",
337
- "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
338
- "type": "function",
268
+ "ifConfig": "googleRecaptchaKey",
269
+ "sourceExport": "GraphQLProvider",
270
+ "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaGraphQLProvider",
271
+ "targetExport": "GraphQLProvider",
272
+ "targetModule": "@graphcommerce/graphql",
273
+ "type": "component",
339
274
  },
340
275
  {
341
276
  "enabled": true,
342
- "sourceExport": "meshConfig",
343
- "sourceModule": "@graphcommerce/algolia-products/plugins/meshConfigAlgolia",
344
- "targetExport": "meshConfig",
345
- "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
346
- "type": "function",
277
+ "ifConfig": "googleRecaptchaKey",
278
+ "sourceExport": "ApolloErrorSnackbar",
279
+ "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorSnackbar",
280
+ "targetExport": "ApolloErrorSnackbar",
281
+ "targetModule": "@graphcommerce/ecommerce-ui",
282
+ "type": "component",
347
283
  },
348
284
  {
349
285
  "enabled": true,
350
- "sourceExport": "useProductListApplySearchDefaults",
351
- "sourceModule": "@graphcommerce/algolia-products/plugins/magentoSearchApplyAlgoliaEngine",
352
- "targetExport": "useProductListApplySearchDefaults",
353
- "targetModule": "@graphcommerce/magento-search",
354
- "type": "function",
286
+ "ifConfig": "googleRecaptchaKey",
287
+ "sourceExport": "ApolloErrorFullPage",
288
+ "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorFullPage",
289
+ "targetExport": "ApolloErrorFullPage",
290
+ "targetModule": "@graphcommerce/ecommerce-ui",
291
+ "type": "component",
355
292
  },
356
293
  {
357
294
  "enabled": true,
358
- "sourceExport": "productListApplySearchDefaults",
359
- "sourceModule": "@graphcommerce/algolia-products/plugins/magentoSearchApplyAlgoliaEngine",
360
- "targetExport": "productListApplySearchDefaults",
361
- "targetModule": "@graphcommerce/magento-search",
362
- "type": "function",
295
+ "ifConfig": "googleRecaptchaKey",
296
+ "sourceExport": "ApolloErrorAlert",
297
+ "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorAlert",
298
+ "targetExport": "ApolloErrorAlert",
299
+ "targetModule": "@graphcommerce/ecommerce-ui",
300
+ "type": "component",
363
301
  },
364
302
  {
365
303
  "enabled": true,
366
- "sourceExport": "searchDefaultsToProductListFilters",
367
- "sourceModule": "@graphcommerce/algolia-products/plugins/magentoSearchApplyAlgoliaEngine",
368
- "targetExport": "searchDefaultsToProductListFilters",
369
- "targetModule": "@graphcommerce/magento-search",
304
+ "ifConfig": "googleAnalyticsId",
305
+ "sourceExport": "sendEvent",
306
+ "sourceModule": "@graphcommerce/googleanalytics/plugins/gtagEvent",
307
+ "targetExport": "sendEvent",
308
+ "targetModule": "@graphcommerce/google-datalayer",
370
309
  "type": "function",
371
310
  },
372
311
  {
373
312
  "enabled": true,
374
- "sourceExport": "ProductListItemsBase",
375
- "sourceModule": "@graphcommerce/algolia-products/plugins/ProductListItemsBaseAlgolia",
376
- "targetExport": "ProductListItemsBase",
377
- "targetModule": "@graphcommerce/magento-product",
313
+ "ifConfig": "googleAnalyticsId",
314
+ "sourceExport": "DocumentHeadEnd",
315
+ "sourceModule": "@graphcommerce/googleanalytics/plugins/GoogleAnalyticsTag",
316
+ "targetExport": "DocumentHeadEnd",
317
+ "targetModule": "@graphcommerce/next-ui/server",
378
318
  "type": "component",
379
319
  },
380
320
  {
@@ -465,6 +405,65 @@ it('finds plugins', () => {
465
405
  "targetModule": "@graphcommerce/magento-product",
466
406
  "type": "component",
467
407
  },
408
+ {
409
+ "enabled": true,
410
+ "ifConfig": "demoMode",
411
+ "sourceExport": "RowLinks",
412
+ "sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoRowLinks",
413
+ "targetExport": "RowLinks",
414
+ "targetModule": "@graphcommerce/next-ui",
415
+ "type": "component",
416
+ },
417
+ {
418
+ "enabled": true,
419
+ "ifConfig": "demoMode",
420
+ "sourceExport": "RecentlyViewedProducts",
421
+ "sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoRecentlyViewedProducts",
422
+ "targetExport": "RecentlyViewedProducts",
423
+ "targetModule": "@graphcommerce/magento-recently-viewed-products",
424
+ "type": "component",
425
+ },
426
+ {
427
+ "enabled": true,
428
+ "ifConfig": "demoMode",
429
+ "sourceExport": "ProductListItemConfigurable",
430
+ "sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoProductListItemConfigurable",
431
+ "targetExport": "ProductListItemConfigurable",
432
+ "targetModule": "@graphcommerce/magento-product-configurable",
433
+ "type": "component",
434
+ },
435
+ {
436
+ "enabled": true,
437
+ "sourceExport": "CartItemActionCard",
438
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableCartItemActionCard",
439
+ "targetExport": "CartItemActionCard",
440
+ "targetModule": "@graphcommerce/magento-cart-items",
441
+ "type": "component",
442
+ },
443
+ {
444
+ "enabled": true,
445
+ "sourceExport": "ProductPagePriceTiers",
446
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePriceTiers",
447
+ "targetExport": "ProductPagePriceTiers",
448
+ "targetModule": "@graphcommerce/magento-product",
449
+ "type": "component",
450
+ },
451
+ {
452
+ "enabled": true,
453
+ "sourceExport": "ProductPagePrice",
454
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice",
455
+ "targetExport": "ProductPagePrice",
456
+ "targetModule": "@graphcommerce/magento-product",
457
+ "type": "component",
458
+ },
459
+ {
460
+ "enabled": true,
461
+ "sourceExport": "CartItemActionCard",
462
+ "sourceModule": "@graphcommerce/magento-product-simple/plugins/SimpleCartItemActionCard",
463
+ "targetExport": "CartItemActionCard",
464
+ "targetModule": "@graphcommerce/magento-cart-items",
465
+ "type": "component",
466
+ },
468
467
  {
469
468
  "enabled": true,
470
469
  "sourceExport": "useSignInForm",
@@ -551,43 +550,42 @@ it('finds plugins', () => {
551
550
  },
552
551
  ]
553
552
  `)
554
- expect(disabled).toMatchInlineSnapshot(
555
- `
553
+ expect(disabled).toMatchInlineSnapshot(`
556
554
  [
557
555
  {
558
556
  "enabled": false,
559
- "ifConfig": "recentlyViewedProducts.enabled",
560
- "sourceExport": "ProductPageMeta",
561
- "sourceModule": "@graphcommerce/magento-recently-viewed-products/plugins/RegisterProductAsRecentlyViewed",
562
- "targetExport": "ProductPageMeta",
557
+ "ifConfig": "algolia.catalogEnabled",
558
+ "sourceExport": "useProductListApplyCategoryDefaults",
559
+ "sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
560
+ "targetExport": "useProductListApplyCategoryDefaults",
563
561
  "targetModule": "@graphcommerce/magento-product",
564
- "type": "component",
562
+ "type": "function",
565
563
  },
566
564
  {
567
565
  "enabled": false,
568
- "ifConfig": "googleTagmanagerId",
569
- "sourceExport": "sendEvent",
570
- "sourceModule": "@graphcommerce/googletagmanager/plugins/tagmanagerEvent",
571
- "targetExport": "sendEvent",
572
- "targetModule": "@graphcommerce/google-datalayer",
566
+ "ifConfig": "algolia.catalogEnabled",
567
+ "sourceExport": "productListApplyCategoryDefaults",
568
+ "sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
569
+ "targetExport": "productListApplyCategoryDefaults",
570
+ "targetModule": "@graphcommerce/magento-product",
573
571
  "type": "function",
574
572
  },
575
573
  {
576
574
  "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",
575
+ "ifConfig": "algolia.catalogEnabled",
576
+ "sourceExport": "categoryDefaultsToProductListFilters",
577
+ "sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
578
+ "targetExport": "categoryDefaultsToProductListFilters",
579
+ "targetModule": "@graphcommerce/magento-product",
580
+ "type": "function",
583
581
  },
584
582
  {
585
583
  "enabled": false,
586
- "ifConfig": "googleTagmanagerId",
587
- "sourceExport": "DocumentHeadEnd",
588
- "sourceModule": "@graphcommerce/googletagmanager/plugins/GoogleTagmanagerTag",
589
- "targetExport": "DocumentHeadEnd",
590
- "targetModule": "@graphcommerce/next-ui/server",
584
+ "ifConfig": "algolia.customerGroupPricingEnabled",
585
+ "sourceExport": "GraphQLProvider",
586
+ "sourceModule": "@graphcommerce/algolia-products/plugins/GraphQLProviderAlgoliaCustomerGroupId",
587
+ "targetExport": "GraphQLProvider",
588
+ "targetModule": "@graphcommerce/graphql",
591
589
  "type": "component",
592
590
  },
593
591
  {
@@ -626,6 +624,51 @@ it('finds plugins', () => {
626
624
  "targetModule": "@graphcommerce/magento-cart",
627
625
  "type": "component",
628
626
  },
627
+ {
628
+ "enabled": false,
629
+ "ifConfig": "googleTagmanagerId",
630
+ "sourceExport": "sendEvent",
631
+ "sourceModule": "@graphcommerce/googletagmanager/plugins/tagmanagerEvent",
632
+ "targetExport": "sendEvent",
633
+ "targetModule": "@graphcommerce/google-datalayer",
634
+ "type": "function",
635
+ },
636
+ {
637
+ "enabled": false,
638
+ "ifConfig": "googleTagmanagerId",
639
+ "sourceExport": "DocumentBodyStart",
640
+ "sourceModule": "@graphcommerce/googletagmanager/plugins/GoogleTagmanagerTag",
641
+ "targetExport": "DocumentBodyStart",
642
+ "targetModule": "@graphcommerce/next-ui/server",
643
+ "type": "component",
644
+ },
645
+ {
646
+ "enabled": false,
647
+ "ifConfig": "googleTagmanagerId",
648
+ "sourceExport": "DocumentHeadEnd",
649
+ "sourceModule": "@graphcommerce/googletagmanager/plugins/GoogleTagmanagerTag",
650
+ "targetExport": "DocumentHeadEnd",
651
+ "targetModule": "@graphcommerce/next-ui/server",
652
+ "type": "component",
653
+ },
654
+ {
655
+ "enabled": false,
656
+ "ifConfig": "dataLayer.coreWebVitals",
657
+ "sourceExport": "FramerNextPages",
658
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerWebVitals",
659
+ "targetExport": "FramerNextPages",
660
+ "targetModule": "@graphcommerce/framer-next-pages",
661
+ "type": "component",
662
+ },
663
+ {
664
+ "enabled": false,
665
+ "ifConfig": "recentlyViewedProducts.enabled",
666
+ "sourceExport": "ProductPageMeta",
667
+ "sourceModule": "@graphcommerce/magento-recently-viewed-products/plugins/RegisterProductAsRecentlyViewed",
668
+ "targetExport": "ProductPageMeta",
669
+ "targetModule": "@graphcommerce/magento-product",
670
+ "type": "component",
671
+ },
629
672
  {
630
673
  "enabled": false,
631
674
  "ifConfig": "configurableVariantValues.content",
@@ -680,51 +723,6 @@ it('finds plugins', () => {
680
723
  "targetModule": "@graphcommerce/magento-product",
681
724
  "type": "component",
682
725
  },
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
726
  {
729
727
  "enabled": false,
730
728
  "ifConfig": "debug.cart",
@@ -753,6 +751,5 @@ it('finds plugins', () => {
753
751
  "type": "component",
754
752
  },
755
753
  ]
756
- `,
757
- )
754
+ `)
758
755
  })