@graphcommerce/next-config 9.0.4-canary.8 → 9.1.0-canary.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/__tests__/config/utils/mergeEnvIntoConfig.ts +12 -1
- package/__tests__/config/utils/replaceConfigInString.ts +0 -1
- package/__tests__/interceptors/findPlugins.ts +301 -254
- package/__tests__/utils/resolveDependenciesSync.ts +44 -44
- package/dist/generated/config.js +109 -120
- 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 +11 -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
|
{
|
|
@@ -195,56 +201,48 @@ it('finds plugins', () => {
|
|
|
195
201
|
},
|
|
196
202
|
{
|
|
197
203
|
"enabled": true,
|
|
198
|
-
"sourceExport": "
|
|
199
|
-
"sourceModule": "@graphcommerce/magento-
|
|
200
|
-
"targetExport": "
|
|
201
|
-
"targetModule": "@graphcommerce/magento-cart-
|
|
202
|
-
"type": "
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"enabled": true,
|
|
206
|
-
"sourceExport": "PaymentMethodContextProvider",
|
|
207
|
-
"sourceModule": "@graphcommerce/magento-payment-braintree/plugins/AddBraintreeMethods",
|
|
208
|
-
"targetExport": "PaymentMethodContextProvider",
|
|
209
|
-
"targetModule": "@graphcommerce/magento-cart-payment-method",
|
|
210
|
-
"type": "component",
|
|
204
|
+
"sourceExport": "cartItemToCartItemInput",
|
|
205
|
+
"sourceModule": "@graphcommerce/magento-product-downloadable/plugins/Downloadable_cartItemToCartItemInput",
|
|
206
|
+
"targetExport": "cartItemToCartItemInput",
|
|
207
|
+
"targetModule": "@graphcommerce/magento-cart-items",
|
|
208
|
+
"type": "function",
|
|
211
209
|
},
|
|
212
210
|
{
|
|
213
211
|
"enabled": true,
|
|
214
|
-
"sourceExport": "
|
|
215
|
-
"sourceModule": "@graphcommerce/
|
|
216
|
-
"targetExport": "
|
|
217
|
-
"targetModule": "@graphcommerce/magento-
|
|
212
|
+
"sourceExport": "ProductPagePrice",
|
|
213
|
+
"sourceModule": "@graphcommerce/magento-product-downloadable/plugins/DownloadableProductPagePrice",
|
|
214
|
+
"targetExport": "ProductPagePrice",
|
|
215
|
+
"targetModule": "@graphcommerce/magento-product",
|
|
218
216
|
"type": "component",
|
|
219
217
|
},
|
|
220
218
|
{
|
|
221
219
|
"enabled": true,
|
|
222
220
|
"sourceExport": "CartItemActionCard",
|
|
223
|
-
"sourceModule": "@graphcommerce/magento-product-
|
|
221
|
+
"sourceModule": "@graphcommerce/magento-product-downloadable/plugins/DownloadableCartItemActionCard",
|
|
224
222
|
"targetExport": "CartItemActionCard",
|
|
225
223
|
"targetModule": "@graphcommerce/magento-cart-items",
|
|
226
224
|
"type": "component",
|
|
227
225
|
},
|
|
228
226
|
{
|
|
229
227
|
"enabled": true,
|
|
230
|
-
"sourceExport": "
|
|
231
|
-
"sourceModule": "@graphcommerce/magento-product-
|
|
232
|
-
"targetExport": "
|
|
233
|
-
"targetModule": "@graphcommerce/magento-
|
|
228
|
+
"sourceExport": "AccountMenuItem",
|
|
229
|
+
"sourceModule": "@graphcommerce/magento-product-downloadable/plugins/DownloadableAccountMenuItem",
|
|
230
|
+
"targetExport": "AccountMenuItem",
|
|
231
|
+
"targetModule": "@graphcommerce/magento-customer",
|
|
234
232
|
"type": "component",
|
|
235
233
|
},
|
|
236
234
|
{
|
|
237
235
|
"enabled": true,
|
|
238
|
-
"sourceExport": "
|
|
239
|
-
"sourceModule": "@graphcommerce/magento-product-
|
|
240
|
-
"targetExport": "
|
|
241
|
-
"targetModule": "@graphcommerce/magento-
|
|
236
|
+
"sourceExport": "CartItemActionCard",
|
|
237
|
+
"sourceModule": "@graphcommerce/magento-product-bundle/plugins/BundleCartItemActionCard",
|
|
238
|
+
"targetExport": "CartItemActionCard",
|
|
239
|
+
"targetModule": "@graphcommerce/magento-cart-items",
|
|
242
240
|
"type": "component",
|
|
243
241
|
},
|
|
244
242
|
{
|
|
245
243
|
"enabled": true,
|
|
246
244
|
"sourceExport": "CartItemActionCard",
|
|
247
|
-
"sourceModule": "@graphcommerce/magento-product-
|
|
245
|
+
"sourceModule": "@graphcommerce/magento-product-virtual/plugins/VirtualCartItemActionCard",
|
|
248
246
|
"targetExport": "CartItemActionCard",
|
|
249
247
|
"targetModule": "@graphcommerce/magento-cart-items",
|
|
250
248
|
"type": "component",
|
|
@@ -252,7 +250,7 @@ it('finds plugins', () => {
|
|
|
252
250
|
{
|
|
253
251
|
"enabled": true,
|
|
254
252
|
"sourceExport": "PaymentMethodContextProvider",
|
|
255
|
-
"sourceModule": "@graphcommerce/magento-payment-
|
|
253
|
+
"sourceModule": "@graphcommerce/magento-payment-included/plugins/AddIncludedMethods",
|
|
256
254
|
"targetExport": "PaymentMethodContextProvider",
|
|
257
255
|
"targetModule": "@graphcommerce/magento-cart-payment-method",
|
|
258
256
|
"type": "component",
|
|
@@ -260,121 +258,95 @@ it('finds plugins', () => {
|
|
|
260
258
|
{
|
|
261
259
|
"enabled": true,
|
|
262
260
|
"sourceExport": "meshConfig",
|
|
263
|
-
"sourceModule": "@graphcommerce/
|
|
261
|
+
"sourceModule": "@graphcommerce/magento-graphql-rest/plugins/meshConfigM2Rest",
|
|
264
262
|
"targetExport": "meshConfig",
|
|
265
263
|
"targetModule": "@graphcommerce/graphql-mesh/meshConfig",
|
|
266
264
|
"type": "function",
|
|
267
265
|
},
|
|
268
266
|
{
|
|
269
267
|
"enabled": true,
|
|
270
|
-
"sourceExport": "
|
|
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",
|
|
268
|
+
"sourceExport": "hygraphPageContent",
|
|
269
|
+
"sourceModule": "@graphcommerce/hygraph-dynamic-rows/plugins/hygraphDynamicRowsPageContent",
|
|
270
|
+
"targetExport": "hygraphPageContent",
|
|
271
|
+
"targetModule": "@graphcommerce/hygraph-ui",
|
|
282
272
|
"type": "function",
|
|
283
273
|
},
|
|
284
274
|
{
|
|
285
275
|
"enabled": true,
|
|
286
|
-
"sourceExport": "
|
|
287
|
-
"sourceModule": "@graphcommerce/
|
|
288
|
-
"targetExport": "
|
|
289
|
-
"targetModule": "@graphcommerce/
|
|
276
|
+
"sourceExport": "previewModeDefaults",
|
|
277
|
+
"sourceModule": "@graphcommerce/hygraph-ui/plugins/hygraphPreviewModeDefaults",
|
|
278
|
+
"targetExport": "previewModeDefaults",
|
|
279
|
+
"targetModule": "@graphcommerce/ecommerce-ui",
|
|
290
280
|
"type": "function",
|
|
291
281
|
},
|
|
292
282
|
{
|
|
293
283
|
"enabled": true,
|
|
294
|
-
"sourceExport": "
|
|
295
|
-
"sourceModule": "@graphcommerce/
|
|
296
|
-
"targetExport": "
|
|
284
|
+
"sourceExport": "graphqlConfig",
|
|
285
|
+
"sourceModule": "@graphcommerce/hygraph-ui/plugins/hygraphGraphqlConfig",
|
|
286
|
+
"targetExport": "graphqlConfig",
|
|
297
287
|
"targetModule": "@graphcommerce/graphql",
|
|
298
288
|
"type": "function",
|
|
299
289
|
},
|
|
300
290
|
{
|
|
301
291
|
"enabled": true,
|
|
302
|
-
"sourceExport": "
|
|
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",
|
|
292
|
+
"sourceExport": "PreviewModeToolbar",
|
|
293
|
+
"sourceModule": "@graphcommerce/hygraph-ui/plugins/HygraphPreviewModeToolbar",
|
|
294
|
+
"targetExport": "PreviewModeToolbar",
|
|
295
|
+
"targetModule": "@graphcommerce/ecommerce-ui",
|
|
296
|
+
"type": "component",
|
|
331
297
|
},
|
|
332
298
|
{
|
|
333
299
|
"enabled": true,
|
|
334
|
-
"
|
|
335
|
-
"
|
|
336
|
-
"
|
|
337
|
-
"
|
|
338
|
-
"
|
|
300
|
+
"ifConfig": "googleRecaptchaKey",
|
|
301
|
+
"sourceExport": "GraphQLProvider",
|
|
302
|
+
"sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaGraphQLProvider",
|
|
303
|
+
"targetExport": "GraphQLProvider",
|
|
304
|
+
"targetModule": "@graphcommerce/graphql",
|
|
305
|
+
"type": "component",
|
|
339
306
|
},
|
|
340
307
|
{
|
|
341
308
|
"enabled": true,
|
|
342
|
-
"
|
|
343
|
-
"
|
|
344
|
-
"
|
|
345
|
-
"
|
|
346
|
-
"
|
|
309
|
+
"ifConfig": "googleRecaptchaKey",
|
|
310
|
+
"sourceExport": "ApolloErrorSnackbar",
|
|
311
|
+
"sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorSnackbar",
|
|
312
|
+
"targetExport": "ApolloErrorSnackbar",
|
|
313
|
+
"targetModule": "@graphcommerce/ecommerce-ui",
|
|
314
|
+
"type": "component",
|
|
347
315
|
},
|
|
348
316
|
{
|
|
349
317
|
"enabled": true,
|
|
350
|
-
"
|
|
351
|
-
"
|
|
352
|
-
"
|
|
353
|
-
"
|
|
354
|
-
"
|
|
318
|
+
"ifConfig": "googleRecaptchaKey",
|
|
319
|
+
"sourceExport": "ApolloErrorFullPage",
|
|
320
|
+
"sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorFullPage",
|
|
321
|
+
"targetExport": "ApolloErrorFullPage",
|
|
322
|
+
"targetModule": "@graphcommerce/ecommerce-ui",
|
|
323
|
+
"type": "component",
|
|
355
324
|
},
|
|
356
325
|
{
|
|
357
326
|
"enabled": true,
|
|
358
|
-
"
|
|
359
|
-
"
|
|
360
|
-
"
|
|
361
|
-
"
|
|
362
|
-
"
|
|
327
|
+
"ifConfig": "googleRecaptchaKey",
|
|
328
|
+
"sourceExport": "ApolloErrorAlert",
|
|
329
|
+
"sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorAlert",
|
|
330
|
+
"targetExport": "ApolloErrorAlert",
|
|
331
|
+
"targetModule": "@graphcommerce/ecommerce-ui",
|
|
332
|
+
"type": "component",
|
|
363
333
|
},
|
|
364
334
|
{
|
|
365
335
|
"enabled": true,
|
|
366
|
-
"
|
|
367
|
-
"
|
|
368
|
-
"
|
|
369
|
-
"
|
|
336
|
+
"ifConfig": "googleAnalyticsId",
|
|
337
|
+
"sourceExport": "sendEvent",
|
|
338
|
+
"sourceModule": "@graphcommerce/googleanalytics/plugins/gtagEvent",
|
|
339
|
+
"targetExport": "sendEvent",
|
|
340
|
+
"targetModule": "@graphcommerce/google-datalayer",
|
|
370
341
|
"type": "function",
|
|
371
342
|
},
|
|
372
343
|
{
|
|
373
344
|
"enabled": true,
|
|
374
|
-
"
|
|
375
|
-
"
|
|
376
|
-
"
|
|
377
|
-
"
|
|
345
|
+
"ifConfig": "googleAnalyticsId",
|
|
346
|
+
"sourceExport": "DocumentHeadEnd",
|
|
347
|
+
"sourceModule": "@graphcommerce/googleanalytics/plugins/GoogleAnalyticsTag",
|
|
348
|
+
"targetExport": "DocumentHeadEnd",
|
|
349
|
+
"targetModule": "@graphcommerce/next-ui/server",
|
|
378
350
|
"type": "component",
|
|
379
351
|
},
|
|
380
352
|
{
|
|
@@ -465,6 +437,65 @@ it('finds plugins', () => {
|
|
|
465
437
|
"targetModule": "@graphcommerce/magento-product",
|
|
466
438
|
"type": "component",
|
|
467
439
|
},
|
|
440
|
+
{
|
|
441
|
+
"enabled": true,
|
|
442
|
+
"ifConfig": "demoMode",
|
|
443
|
+
"sourceExport": "RowLinks",
|
|
444
|
+
"sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoRowLinks",
|
|
445
|
+
"targetExport": "RowLinks",
|
|
446
|
+
"targetModule": "@graphcommerce/next-ui",
|
|
447
|
+
"type": "component",
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"enabled": true,
|
|
451
|
+
"ifConfig": "demoMode",
|
|
452
|
+
"sourceExport": "RecentlyViewedProducts",
|
|
453
|
+
"sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoRecentlyViewedProducts",
|
|
454
|
+
"targetExport": "RecentlyViewedProducts",
|
|
455
|
+
"targetModule": "@graphcommerce/magento-recently-viewed-products",
|
|
456
|
+
"type": "component",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"enabled": true,
|
|
460
|
+
"ifConfig": "demoMode",
|
|
461
|
+
"sourceExport": "ProductListItemConfigurable",
|
|
462
|
+
"sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoProductListItemConfigurable",
|
|
463
|
+
"targetExport": "ProductListItemConfigurable",
|
|
464
|
+
"targetModule": "@graphcommerce/magento-product-configurable",
|
|
465
|
+
"type": "component",
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"enabled": true,
|
|
469
|
+
"sourceExport": "CartItemActionCard",
|
|
470
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableCartItemActionCard",
|
|
471
|
+
"targetExport": "CartItemActionCard",
|
|
472
|
+
"targetModule": "@graphcommerce/magento-cart-items",
|
|
473
|
+
"type": "component",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"enabled": true,
|
|
477
|
+
"sourceExport": "ProductPagePriceTiers",
|
|
478
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePriceTiers",
|
|
479
|
+
"targetExport": "ProductPagePriceTiers",
|
|
480
|
+
"targetModule": "@graphcommerce/magento-product",
|
|
481
|
+
"type": "component",
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"enabled": true,
|
|
485
|
+
"sourceExport": "ProductPagePrice",
|
|
486
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice",
|
|
487
|
+
"targetExport": "ProductPagePrice",
|
|
488
|
+
"targetModule": "@graphcommerce/magento-product",
|
|
489
|
+
"type": "component",
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"enabled": true,
|
|
493
|
+
"sourceExport": "CartItemActionCard",
|
|
494
|
+
"sourceModule": "@graphcommerce/magento-product-simple/plugins/SimpleCartItemActionCard",
|
|
495
|
+
"targetExport": "CartItemActionCard",
|
|
496
|
+
"targetModule": "@graphcommerce/magento-cart-items",
|
|
497
|
+
"type": "component",
|
|
498
|
+
},
|
|
468
499
|
{
|
|
469
500
|
"enabled": true,
|
|
470
501
|
"sourceExport": "useSignInForm",
|
|
@@ -533,6 +564,22 @@ it('finds plugins', () => {
|
|
|
533
564
|
"targetModule": "@graphcommerce/graphql-mesh/meshConfig",
|
|
534
565
|
"type": "function",
|
|
535
566
|
},
|
|
567
|
+
{
|
|
568
|
+
"enabled": true,
|
|
569
|
+
"sourceExport": "meshConfig",
|
|
570
|
+
"sourceModule": "@graphcommerce/magento-graphql/plugins/magentoOrders",
|
|
571
|
+
"targetExport": "meshConfig",
|
|
572
|
+
"targetModule": "@graphcommerce/graphql-mesh/meshConfig",
|
|
573
|
+
"type": "function",
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"enabled": true,
|
|
577
|
+
"sourceExport": "meshConfig",
|
|
578
|
+
"sourceModule": "@graphcommerce/magento-graphql/plugins/magentoOrderItemMesh",
|
|
579
|
+
"targetExport": "meshConfig",
|
|
580
|
+
"targetModule": "@graphcommerce/graphql-mesh/meshConfig",
|
|
581
|
+
"type": "function",
|
|
582
|
+
},
|
|
536
583
|
{
|
|
537
584
|
"enabled": true,
|
|
538
585
|
"sourceExport": "graphqlConfig",
|
|
@@ -556,38 +603,38 @@ it('finds plugins', () => {
|
|
|
556
603
|
[
|
|
557
604
|
{
|
|
558
605
|
"enabled": false,
|
|
559
|
-
"ifConfig": "
|
|
560
|
-
"sourceExport": "
|
|
561
|
-
"sourceModule": "@graphcommerce/
|
|
562
|
-
"targetExport": "
|
|
606
|
+
"ifConfig": "algolia.catalogEnabled",
|
|
607
|
+
"sourceExport": "useProductListApplyCategoryDefaults",
|
|
608
|
+
"sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
|
|
609
|
+
"targetExport": "useProductListApplyCategoryDefaults",
|
|
563
610
|
"targetModule": "@graphcommerce/magento-product",
|
|
564
|
-
"type": "
|
|
611
|
+
"type": "function",
|
|
565
612
|
},
|
|
566
613
|
{
|
|
567
614
|
"enabled": false,
|
|
568
|
-
"ifConfig": "
|
|
569
|
-
"sourceExport": "
|
|
570
|
-
"sourceModule": "@graphcommerce/
|
|
571
|
-
"targetExport": "
|
|
572
|
-
"targetModule": "@graphcommerce/
|
|
615
|
+
"ifConfig": "algolia.catalogEnabled",
|
|
616
|
+
"sourceExport": "productListApplyCategoryDefaults",
|
|
617
|
+
"sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
|
|
618
|
+
"targetExport": "productListApplyCategoryDefaults",
|
|
619
|
+
"targetModule": "@graphcommerce/magento-product",
|
|
573
620
|
"type": "function",
|
|
574
621
|
},
|
|
575
622
|
{
|
|
576
623
|
"enabled": false,
|
|
577
|
-
"ifConfig": "
|
|
578
|
-
"sourceExport": "
|
|
579
|
-
"sourceModule": "@graphcommerce/
|
|
580
|
-
"targetExport": "
|
|
581
|
-
"targetModule": "@graphcommerce/
|
|
582
|
-
"type": "
|
|
624
|
+
"ifConfig": "algolia.catalogEnabled",
|
|
625
|
+
"sourceExport": "categoryDefaultsToProductListFilters",
|
|
626
|
+
"sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
|
|
627
|
+
"targetExport": "categoryDefaultsToProductListFilters",
|
|
628
|
+
"targetModule": "@graphcommerce/magento-product",
|
|
629
|
+
"type": "function",
|
|
583
630
|
},
|
|
584
631
|
{
|
|
585
632
|
"enabled": false,
|
|
586
|
-
"ifConfig": "
|
|
587
|
-
"sourceExport": "
|
|
588
|
-
"sourceModule": "@graphcommerce/
|
|
589
|
-
"targetExport": "
|
|
590
|
-
"targetModule": "@graphcommerce/
|
|
633
|
+
"ifConfig": "algolia.customerGroupPricingEnabled",
|
|
634
|
+
"sourceExport": "GraphQLProvider",
|
|
635
|
+
"sourceModule": "@graphcommerce/algolia-products/plugins/GraphQLProviderAlgoliaCustomerGroupId",
|
|
636
|
+
"targetExport": "GraphQLProvider",
|
|
637
|
+
"targetModule": "@graphcommerce/graphql",
|
|
591
638
|
"type": "component",
|
|
592
639
|
},
|
|
593
640
|
{
|
|
@@ -626,6 +673,51 @@ it('finds plugins', () => {
|
|
|
626
673
|
"targetModule": "@graphcommerce/magento-cart",
|
|
627
674
|
"type": "component",
|
|
628
675
|
},
|
|
676
|
+
{
|
|
677
|
+
"enabled": false,
|
|
678
|
+
"ifConfig": "googleTagmanagerId",
|
|
679
|
+
"sourceExport": "sendEvent",
|
|
680
|
+
"sourceModule": "@graphcommerce/googletagmanager/plugins/tagmanagerEvent",
|
|
681
|
+
"targetExport": "sendEvent",
|
|
682
|
+
"targetModule": "@graphcommerce/google-datalayer",
|
|
683
|
+
"type": "function",
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"enabled": false,
|
|
687
|
+
"ifConfig": "googleTagmanagerId",
|
|
688
|
+
"sourceExport": "DocumentBodyStart",
|
|
689
|
+
"sourceModule": "@graphcommerce/googletagmanager/plugins/GoogleTagmanagerTag",
|
|
690
|
+
"targetExport": "DocumentBodyStart",
|
|
691
|
+
"targetModule": "@graphcommerce/next-ui/server",
|
|
692
|
+
"type": "component",
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"enabled": false,
|
|
696
|
+
"ifConfig": "googleTagmanagerId",
|
|
697
|
+
"sourceExport": "DocumentHeadEnd",
|
|
698
|
+
"sourceModule": "@graphcommerce/googletagmanager/plugins/GoogleTagmanagerTag",
|
|
699
|
+
"targetExport": "DocumentHeadEnd",
|
|
700
|
+
"targetModule": "@graphcommerce/next-ui/server",
|
|
701
|
+
"type": "component",
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"enabled": false,
|
|
705
|
+
"ifConfig": "dataLayer.coreWebVitals",
|
|
706
|
+
"sourceExport": "FramerNextPages",
|
|
707
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerWebVitals",
|
|
708
|
+
"targetExport": "FramerNextPages",
|
|
709
|
+
"targetModule": "@graphcommerce/framer-next-pages",
|
|
710
|
+
"type": "component",
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"enabled": false,
|
|
714
|
+
"ifConfig": "recentlyViewedProducts.enabled",
|
|
715
|
+
"sourceExport": "ProductPageMeta",
|
|
716
|
+
"sourceModule": "@graphcommerce/magento-recently-viewed-products/plugins/RegisterProductAsRecentlyViewed",
|
|
717
|
+
"targetExport": "ProductPageMeta",
|
|
718
|
+
"targetModule": "@graphcommerce/magento-product",
|
|
719
|
+
"type": "component",
|
|
720
|
+
},
|
|
629
721
|
{
|
|
630
722
|
"enabled": false,
|
|
631
723
|
"ifConfig": "configurableVariantValues.content",
|
|
@@ -680,51 +772,6 @@ it('finds plugins', () => {
|
|
|
680
772
|
"targetModule": "@graphcommerce/magento-product",
|
|
681
773
|
"type": "component",
|
|
682
774
|
},
|
|
683
|
-
{
|
|
684
|
-
"enabled": false,
|
|
685
|
-
"ifConfig": "algolia.catalogEnabled",
|
|
686
|
-
"sourceExport": "useProductListApplyCategoryDefaults",
|
|
687
|
-
"sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
|
|
688
|
-
"targetExport": "useProductListApplyCategoryDefaults",
|
|
689
|
-
"targetModule": "@graphcommerce/magento-product",
|
|
690
|
-
"type": "function",
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
"enabled": false,
|
|
694
|
-
"ifConfig": "algolia.catalogEnabled",
|
|
695
|
-
"sourceExport": "productListApplyCategoryDefaults",
|
|
696
|
-
"sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
|
|
697
|
-
"targetExport": "productListApplyCategoryDefaults",
|
|
698
|
-
"targetModule": "@graphcommerce/magento-product",
|
|
699
|
-
"type": "function",
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
"enabled": false,
|
|
703
|
-
"ifConfig": "algolia.catalogEnabled",
|
|
704
|
-
"sourceExport": "categoryDefaultsToProductListFilters",
|
|
705
|
-
"sourceModule": "@graphcommerce/algolia-products/plugins/magentoProductApplyAlgoliaEngine",
|
|
706
|
-
"targetExport": "categoryDefaultsToProductListFilters",
|
|
707
|
-
"targetModule": "@graphcommerce/magento-product",
|
|
708
|
-
"type": "function",
|
|
709
|
-
},
|
|
710
|
-
{
|
|
711
|
-
"enabled": false,
|
|
712
|
-
"ifConfig": "algolia.customerGroupPricingEnabled",
|
|
713
|
-
"sourceExport": "GraphQLProvider",
|
|
714
|
-
"sourceModule": "@graphcommerce/algolia-products/plugins/GraphQLProviderAlgoliaCustomerGroupId",
|
|
715
|
-
"targetExport": "GraphQLProvider",
|
|
716
|
-
"targetModule": "@graphcommerce/graphql",
|
|
717
|
-
"type": "component",
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
"enabled": false,
|
|
721
|
-
"ifConfig": "dataLayer.coreWebVitals",
|
|
722
|
-
"sourceExport": "FramerNextPages",
|
|
723
|
-
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerWebVitals",
|
|
724
|
-
"targetExport": "FramerNextPages",
|
|
725
|
-
"targetModule": "@graphcommerce/framer-next-pages",
|
|
726
|
-
"type": "component",
|
|
727
|
-
},
|
|
728
775
|
{
|
|
729
776
|
"enabled": false,
|
|
730
777
|
"ifConfig": "debug.cart",
|