@graphcommerce/next-config 9.0.4-canary.1 → 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 +30 -0
- package/__tests__/config/utils/__snapshots__/mergeEnvIntoConfig.ts.snap +0 -905
- package/__tests__/config/utils/mergeEnvIntoConfig.ts +19 -2
- package/__tests__/config/utils/replaceConfigInString.ts +0 -1
- package/__tests__/interceptors/findPlugins.ts +270 -273
- package/__tests__/utils/resolveDependenciesSync.ts +44 -44
- package/dist/generated/config.js +109 -119
- package/dist/index.js +3359 -26
- package/package.json +33 -8
- package/src/config/commands/generateConfig.ts +16 -4
- package/src/config/demoConfig.ts +0 -1
- package/src/config/loadConfig.ts +3 -9
- package/src/config/utils/mergeEnvIntoConfig.ts +8 -6
- package/src/generated/config.ts +17 -5
- package/src/interceptors/generateInterceptor.ts +0 -2
- package/src/interceptors/parseStructure.ts +3 -3
- package/src/utils/resolveDependenciesSync.ts +43 -6
- package/src/withGraphCommerce.ts +30 -42
- package/tsconfig.json +1 -1
- package/__tests__/config/utils/rewriteLegancyEnv.ts +0 -79
- package/dist/commands/codegen.js +0 -18
- package/dist/commands/copyFiles.js +0 -297
- package/dist/config/commands/exportConfig.js +0 -16
- package/dist/config/commands/generateConfig.js +0 -56
- 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 -182
- 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
|
@@ -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
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
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
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
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
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
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
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
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
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
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
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
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
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
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
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
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
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
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": "
|
|
111
|
-
"sourceModule": "@graphcommerce/
|
|
112
|
-
"targetExport": "
|
|
113
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
119
|
-
"sourceModule": "@graphcommerce/
|
|
120
|
-
"targetExport": "
|
|
121
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
127
|
-
"sourceModule": "@graphcommerce/
|
|
128
|
-
"targetExport": "
|
|
129
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
135
|
-
"sourceModule": "@graphcommerce/
|
|
136
|
-
"targetExport": "
|
|
137
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
143
|
-
"sourceModule": "@graphcommerce/magento-
|
|
144
|
-
"targetExport": "
|
|
145
|
-
"targetModule": "@graphcommerce/
|
|
146
|
-
"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",
|
|
147
153
|
},
|
|
148
154
|
{
|
|
149
155
|
"enabled": true,
|
|
150
156
|
"sourceExport": "PaymentMethodContextProvider",
|
|
151
|
-
"sourceModule": "@graphcommerce/magento-payment
|
|
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": "
|
|
159
|
-
"sourceModule": "@graphcommerce/magento-
|
|
160
|
-
"targetExport": "
|
|
161
|
-
"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",
|
|
162
168
|
"type": "component",
|
|
163
169
|
},
|
|
164
170
|
{
|
|
165
171
|
"enabled": true,
|
|
166
|
-
"sourceExport": "
|
|
167
|
-
"sourceModule": "@graphcommerce/magento-
|
|
168
|
-
"targetExport": "
|
|
169
|
-
"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",
|
|
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-
|
|
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-
|
|
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-
|
|
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/
|
|
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": "
|
|
271
|
-
"sourceModule": "@graphcommerce/
|
|
272
|
-
"targetExport": "
|
|
273
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
287
|
-
"sourceModule": "@graphcommerce/
|
|
288
|
-
"targetExport": "
|
|
289
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
295
|
-
"sourceModule": "@graphcommerce/
|
|
296
|
-
"targetExport": "
|
|
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": "
|
|
303
|
-
"sourceModule": "@graphcommerce/
|
|
304
|
-
"targetExport": "
|
|
305
|
-
"targetModule": "@graphcommerce/
|
|
306
|
-
"type": "
|
|
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
|
-
"
|
|
335
|
-
"
|
|
336
|
-
"
|
|
337
|
-
"
|
|
338
|
-
"
|
|
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
|
-
"
|
|
343
|
-
"
|
|
344
|
-
"
|
|
345
|
-
"
|
|
346
|
-
"
|
|
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
|
-
"
|
|
351
|
-
"
|
|
352
|
-
"
|
|
353
|
-
"
|
|
354
|
-
"
|
|
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
|
-
"
|
|
359
|
-
"
|
|
360
|
-
"
|
|
361
|
-
"
|
|
362
|
-
"
|
|
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
|
-
"
|
|
367
|
-
"
|
|
368
|
-
"
|
|
369
|
-
"
|
|
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
|
-
"
|
|
375
|
-
"
|
|
376
|
-
"
|
|
377
|
-
"
|
|
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": "
|
|
560
|
-
"sourceExport": "
|
|
561
|
-
"sourceModule": "@graphcommerce/
|
|
562
|
-
"targetExport": "
|
|
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": "
|
|
562
|
+
"type": "function",
|
|
565
563
|
},
|
|
566
564
|
{
|
|
567
565
|
"enabled": false,
|
|
568
|
-
"ifConfig": "
|
|
569
|
-
"sourceExport": "
|
|
570
|
-
"sourceModule": "@graphcommerce/
|
|
571
|
-
"targetExport": "
|
|
572
|
-
"targetModule": "@graphcommerce/
|
|
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": "
|
|
578
|
-
"sourceExport": "
|
|
579
|
-
"sourceModule": "@graphcommerce/
|
|
580
|
-
"targetExport": "
|
|
581
|
-
"targetModule": "@graphcommerce/
|
|
582
|
-
"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",
|
|
583
581
|
},
|
|
584
582
|
{
|
|
585
583
|
"enabled": false,
|
|
586
|
-
"ifConfig": "
|
|
587
|
-
"sourceExport": "
|
|
588
|
-
"sourceModule": "@graphcommerce/
|
|
589
|
-
"targetExport": "
|
|
590
|
-
"targetModule": "@graphcommerce/
|
|
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
|
})
|