@graphcommerce/next-config 9.0.4-canary.0 → 9.0.4-canary.10

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