@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.
- package/CHANGELOG.md +28 -8
- package/__tests__/commands/copyFiles.ts +8 -5
- package/__tests__/config/utils/__snapshots__/mergeEnvIntoConfig.ts.snap +0 -905
- package/__tests__/config/utils/mergeEnvIntoConfig.ts +21 -3
- package/__tests__/config/utils/replaceConfigInString.ts +0 -1
- package/__tests__/interceptors/findPlugins.ts +270 -272
- package/__tests__/interceptors/generateInterceptors.ts +1 -0
- package/__tests__/utils/resolveDependenciesSync.ts +45 -44
- package/dist/generated/config.js +110 -116
- package/dist/index.js +3359 -26
- package/package.json +34 -8
- package/src/commands/codegen.ts +3 -3
- package/src/commands/copyFiles.ts +14 -7
- package/src/config/commands/generateConfig.ts +17 -6
- package/src/config/demoConfig.ts +0 -1
- package/src/config/loadConfig.ts +3 -9
- package/src/config/utils/mergeEnvIntoConfig.ts +9 -9
- package/src/generated/config.ts +305 -245
- package/src/interceptors/Visitor.ts +1 -1
- package/src/interceptors/findOriginalSource.ts +1 -1
- package/src/interceptors/generateInterceptor.ts +0 -2
- package/src/interceptors/parseStructure.ts +3 -3
- package/src/interceptors/writeInterceptors.ts +1 -1
- package/src/utils/resolveDependenciesSync.ts +44 -7
- package/src/withGraphCommerce.ts +30 -42
- package/tsconfig.json +1 -1
- package/__tests__/config/utils/rewriteLegancyEnv.ts +0 -78
- package/dist/commands/codegen.js +0 -18
- package/dist/commands/copyFiles.js +0 -292
- package/dist/config/commands/exportConfig.js +0 -16
- package/dist/config/commands/generateConfig.js +0 -57
- package/dist/config/demoConfig.js +0 -52
- package/dist/config/index.js +0 -19
- package/dist/config/loadConfig.js +0 -62
- package/dist/config/utils/configToImportMeta.js +0 -39
- package/dist/config/utils/diff.js +0 -33
- package/dist/config/utils/exportConfigToEnv.js +0 -31
- package/dist/config/utils/mergeEnvIntoConfig.js +0 -184
- package/dist/config/utils/replaceConfigInString.js +0 -12
- package/dist/config/utils/rewriteLegacyEnv.js +0 -115
- package/dist/interceptors/InterceptorPlugin.js +0 -108
- package/dist/interceptors/RenameVisitor.js +0 -19
- package/dist/interceptors/Visitor.js +0 -1414
- package/dist/interceptors/commands/codegenInterceptors.js +0 -22
- package/dist/interceptors/extractExports.js +0 -159
- package/dist/interceptors/findOriginalSource.js +0 -103
- package/dist/interceptors/findPlugins.js +0 -68
- package/dist/interceptors/generateInterceptor.js +0 -219
- package/dist/interceptors/generateInterceptors.js +0 -56
- package/dist/interceptors/parseStructure.js +0 -84
- package/dist/interceptors/swc.js +0 -15
- package/dist/interceptors/writeInterceptors.js +0 -44
- package/dist/utils/PackagesSort.js +0 -7
- package/dist/utils/TopologicalSort.js +0 -87
- package/dist/utils/isMonorepo.js +0 -47
- package/dist/utils/packageRoots.js +0 -31
- package/dist/utils/resolveDependenciesSync.js +0 -78
- package/dist/utils/resolveDependency.js +0 -70
- package/dist/utils/sig.js +0 -34
- package/dist/withGraphCommerce.js +0 -162
- package/src/config/utils/rewriteLegacyEnv.ts +0 -125
|
@@ -25,147 +25,154 @@ it('finds plugins', () => {
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"enabled": true,
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
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
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
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
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
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
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
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
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
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
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
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
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
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
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
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
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
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": "
|
|
110
|
-
"sourceModule": "@graphcommerce/
|
|
111
|
-
"targetExport": "
|
|
112
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
118
|
-
"sourceModule": "@graphcommerce/
|
|
119
|
-
"targetExport": "
|
|
120
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
126
|
-
"sourceModule": "@graphcommerce/
|
|
127
|
-
"targetExport": "
|
|
128
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
134
|
-
"sourceModule": "@graphcommerce/
|
|
135
|
-
"targetExport": "
|
|
136
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
142
|
-
"sourceModule": "@graphcommerce/magento-
|
|
143
|
-
"targetExport": "
|
|
144
|
-
"targetModule": "@graphcommerce/
|
|
145
|
-
"type": "
|
|
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
|
|
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": "
|
|
158
|
-
"sourceModule": "@graphcommerce/magento-
|
|
159
|
-
"targetExport": "
|
|
160
|
-
"targetModule": "@graphcommerce/magento-cart-
|
|
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": "
|
|
166
|
-
"sourceModule": "@graphcommerce/magento-
|
|
167
|
-
"targetExport": "
|
|
168
|
-
"targetModule": "@graphcommerce/magento-cart-
|
|
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-
|
|
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-
|
|
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-
|
|
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/
|
|
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": "
|
|
270
|
-
"sourceModule": "@graphcommerce/
|
|
271
|
-
"targetExport": "
|
|
272
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
286
|
-
"sourceModule": "@graphcommerce/
|
|
287
|
-
"targetExport": "
|
|
288
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
294
|
-
"sourceModule": "@graphcommerce/
|
|
295
|
-
"targetExport": "
|
|
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": "
|
|
302
|
-
"sourceModule": "@graphcommerce/
|
|
303
|
-
"targetExport": "
|
|
304
|
-
"targetModule": "@graphcommerce/
|
|
305
|
-
"type": "
|
|
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
|
-
"
|
|
334
|
-
"
|
|
335
|
-
"
|
|
336
|
-
"
|
|
337
|
-
"
|
|
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
|
-
"
|
|
342
|
-
"
|
|
343
|
-
"
|
|
344
|
-
"
|
|
345
|
-
"
|
|
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
|
-
"
|
|
350
|
-
"
|
|
351
|
-
"
|
|
352
|
-
"
|
|
353
|
-
"
|
|
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
|
-
"
|
|
358
|
-
"
|
|
359
|
-
"
|
|
360
|
-
"
|
|
361
|
-
"
|
|
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
|
-
"
|
|
366
|
-
"
|
|
367
|
-
"
|
|
368
|
-
"
|
|
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
|
-
"
|
|
374
|
-
"
|
|
375
|
-
"
|
|
376
|
-
"
|
|
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": "
|
|
559
|
-
"sourceExport": "
|
|
560
|
-
"sourceModule": "@graphcommerce/
|
|
561
|
-
"targetExport": "
|
|
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": "
|
|
562
|
+
"type": "function",
|
|
564
563
|
},
|
|
565
564
|
{
|
|
566
565
|
"enabled": false,
|
|
567
|
-
"ifConfig": "
|
|
568
|
-
"sourceExport": "
|
|
569
|
-
"sourceModule": "@graphcommerce/
|
|
570
|
-
"targetExport": "
|
|
571
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
577
|
-
"sourceExport": "
|
|
578
|
-
"sourceModule": "@graphcommerce/
|
|
579
|
-
"targetExport": "
|
|
580
|
-
"targetModule": "@graphcommerce/
|
|
581
|
-
"type": "
|
|
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": "
|
|
586
|
-
"sourceExport": "
|
|
587
|
-
"sourceModule": "@graphcommerce/
|
|
588
|
-
"targetExport": "
|
|
589
|
-
"targetModule": "@graphcommerce/
|
|
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
|
})
|