@graphcommerce/next-config 8.1.0-canary.7 → 8.1.0-canary.9
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 +32 -0
- package/Config.graphqls +5 -5
- package/__tests__/interceptors/findPlugins.ts +110 -94
- package/__tests__/interceptors/generateInterceptors.ts +111 -107
- package/__tests__/utils/resolveDependenciesSync.ts +4 -0
- package/dist/config/commands/exportConfig.js +5 -0
- package/dist/config/commands/generateConfig.js +5 -0
- package/dist/config/commands/generateIntercetors.js +9 -0
- package/dist/generated/config.js +2 -1
- package/dist/index.js +1 -0
- package/dist/interceptors/commands/codegenInterceptors.js +23 -0
- package/dist/interceptors/commands/generateIntercetors.js +9 -0
- package/dist/interceptors/findPlugins.js +7 -3
- package/dist/interceptors/generateInterceptor.js +31 -13
- package/dist/interceptors/generateInterceptors.js +6 -5
- package/dist/utils/resolveDependenciesSync.js +5 -4
- package/dist/utils/resolveDependency.js +5 -0
- package/dist/withGraphCommerce.js +1 -1
- package/package.json +1 -1
- package/src/config/commands/exportConfig.ts +3 -0
- package/src/config/commands/generateConfig.ts +3 -0
- package/src/generated/config.ts +8 -6
- package/src/index.ts +1 -0
- package/src/interceptors/commands/codegenInterceptors.ts +27 -0
- package/src/interceptors/findPlugins.ts +7 -3
- package/src/interceptors/generateInterceptor.ts +39 -13
- package/src/interceptors/generateInterceptors.ts +9 -6
- package/src/utils/resolveDependenciesSync.ts +11 -3
- package/src/utils/resolveDependency.ts +7 -0
- package/src/withGraphCommerce.ts +2 -1
|
@@ -25,7 +25,7 @@ it('finds plugins', () => {
|
|
|
25
25
|
"enabled": true,
|
|
26
26
|
"ifConfig": "googleAnalyticsId",
|
|
27
27
|
"sourceExport": "plugin",
|
|
28
|
-
"sourceModule": "
|
|
28
|
+
"sourceModule": "@graphcommerce/googleanalytics/plugins/gtagEvent",
|
|
29
29
|
"targetExport": "sendEvent",
|
|
30
30
|
"targetModule": "@graphcommerce/google-datalayer/api/sendEvent",
|
|
31
31
|
"type": "function",
|
|
@@ -33,8 +33,8 @@ it('finds plugins', () => {
|
|
|
33
33
|
{
|
|
34
34
|
"enabled": true,
|
|
35
35
|
"ifConfig": "googleAnalyticsId",
|
|
36
|
-
"sourceExport": "
|
|
37
|
-
"sourceModule": "
|
|
36
|
+
"sourceExport": "FramerNextPages",
|
|
37
|
+
"sourceModule": "@graphcommerce/googleanalytics/plugins/GoogleAnalyticsTag",
|
|
38
38
|
"targetExport": "FramerNextPages",
|
|
39
39
|
"targetModule": "@graphcommerce/framer-next-pages",
|
|
40
40
|
"type": "component",
|
|
@@ -43,7 +43,7 @@ it('finds plugins', () => {
|
|
|
43
43
|
"enabled": true,
|
|
44
44
|
"ifConfig": "googleRecaptchaKey",
|
|
45
45
|
"sourceExport": "Plugin",
|
|
46
|
-
"sourceModule": "
|
|
46
|
+
"sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaGraphQLProvider",
|
|
47
47
|
"targetExport": "GraphQLProvider",
|
|
48
48
|
"targetModule": "@graphcommerce/graphql",
|
|
49
49
|
"type": "component",
|
|
@@ -52,7 +52,7 @@ it('finds plugins', () => {
|
|
|
52
52
|
"enabled": true,
|
|
53
53
|
"ifConfig": "googleRecaptchaKey",
|
|
54
54
|
"sourceExport": "Plugin",
|
|
55
|
-
"sourceModule": "
|
|
55
|
+
"sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorSnackbar",
|
|
56
56
|
"targetExport": "ApolloErrorSnackbar",
|
|
57
57
|
"targetModule": "@graphcommerce/ecommerce-ui",
|
|
58
58
|
"type": "component",
|
|
@@ -61,7 +61,7 @@ it('finds plugins', () => {
|
|
|
61
61
|
"enabled": true,
|
|
62
62
|
"ifConfig": "googleRecaptchaKey",
|
|
63
63
|
"sourceExport": "Plugin",
|
|
64
|
-
"sourceModule": "
|
|
64
|
+
"sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorFullPage",
|
|
65
65
|
"targetExport": "ApolloErrorFullPage",
|
|
66
66
|
"targetModule": "@graphcommerce/ecommerce-ui",
|
|
67
67
|
"type": "component",
|
|
@@ -70,7 +70,7 @@ it('finds plugins', () => {
|
|
|
70
70
|
"enabled": true,
|
|
71
71
|
"ifConfig": "googleRecaptchaKey",
|
|
72
72
|
"sourceExport": "Plugin",
|
|
73
|
-
"sourceModule": "
|
|
73
|
+
"sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorAlert",
|
|
74
74
|
"targetExport": "ApolloErrorAlert",
|
|
75
75
|
"targetModule": "@graphcommerce/ecommerce-ui",
|
|
76
76
|
"type": "component",
|
|
@@ -78,7 +78,7 @@ it('finds plugins', () => {
|
|
|
78
78
|
{
|
|
79
79
|
"enabled": true,
|
|
80
80
|
"sourceExport": "Plugin",
|
|
81
|
-
"sourceModule": "
|
|
81
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerViewItem",
|
|
82
82
|
"targetExport": "ProductPageMeta",
|
|
83
83
|
"targetModule": "@graphcommerce/magento-product",
|
|
84
84
|
"type": "component",
|
|
@@ -86,7 +86,7 @@ it('finds plugins', () => {
|
|
|
86
86
|
{
|
|
87
87
|
"enabled": true,
|
|
88
88
|
"sourceExport": "Plugin",
|
|
89
|
-
"sourceModule": "
|
|
89
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerUpdateItemQuantity",
|
|
90
90
|
"targetExport": "UpdateItemQuantity",
|
|
91
91
|
"targetModule": "@graphcommerce/magento-cart-items/components/UpdateItemQuantity/UpdateItemQuantity",
|
|
92
92
|
"type": "component",
|
|
@@ -94,7 +94,7 @@ it('finds plugins', () => {
|
|
|
94
94
|
{
|
|
95
95
|
"enabled": true,
|
|
96
96
|
"sourceExport": "Plugin",
|
|
97
|
-
"sourceModule": "
|
|
97
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerShippingMethodForm",
|
|
98
98
|
"targetExport": "ShippingMethodForm",
|
|
99
99
|
"targetModule": "@graphcommerce/magento-cart-shipping-method",
|
|
100
100
|
"type": "component",
|
|
@@ -102,47 +102,31 @@ it('finds plugins', () => {
|
|
|
102
102
|
{
|
|
103
103
|
"enabled": true,
|
|
104
104
|
"sourceExport": "Plugin",
|
|
105
|
-
"sourceModule": "
|
|
105
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerShippingMethodForm",
|
|
106
106
|
"targetExport": "ShippingMethodForm",
|
|
107
107
|
"targetModule": "@graphcommerce/magento-cart-shipping-method",
|
|
108
108
|
"type": "component",
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"enabled": true,
|
|
112
|
-
"sourceExport": "
|
|
113
|
-
"sourceModule": "
|
|
112
|
+
"sourceExport": "RemoveItemFromCartFab",
|
|
113
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerRemoveItemFromCartFab",
|
|
114
114
|
"targetExport": "RemoveItemFromCartFab",
|
|
115
|
-
"targetModule": "@graphcommerce/magento-cart-items
|
|
116
|
-
"type": "component",
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"enabled": true,
|
|
120
|
-
"sourceExport": "Plugin",
|
|
121
|
-
"sourceModule": "./@graphcommerce/google-datalayer/plugins/GoogleDatalayerRemoveItemFromCartFab",
|
|
122
|
-
"targetExport": "RemoveItemFromCartFab",
|
|
123
|
-
"targetModule": "@graphcommerce/magento-cart-items/components/RemoveItemFromCart/RemoveItemFromCartFab",
|
|
124
|
-
"type": "component",
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"enabled": true,
|
|
128
|
-
"sourceExport": "Plugin",
|
|
129
|
-
"sourceModule": "./@graphcommerce/google-datalayer/plugins/GoogleDatalayerRemoveItemFromCart",
|
|
130
|
-
"targetExport": "RemoveItemFromCart",
|
|
131
|
-
"targetModule": "@graphcommerce/magento-cart-items/components/RemoveItemFromCart/RemoveItemFromCart",
|
|
115
|
+
"targetModule": "@graphcommerce/magento-cart-items",
|
|
132
116
|
"type": "component",
|
|
133
117
|
},
|
|
134
118
|
{
|
|
135
119
|
"enabled": true,
|
|
136
|
-
"sourceExport": "
|
|
137
|
-
"sourceModule": "
|
|
120
|
+
"sourceExport": "RemoveItemFromCart",
|
|
121
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerRemoveItemFromCart",
|
|
138
122
|
"targetExport": "RemoveItemFromCart",
|
|
139
|
-
"targetModule": "@graphcommerce/magento-cart-items
|
|
123
|
+
"targetModule": "@graphcommerce/magento-cart-items",
|
|
140
124
|
"type": "component",
|
|
141
125
|
},
|
|
142
126
|
{
|
|
143
127
|
"enabled": true,
|
|
144
128
|
"sourceExport": "Plugin",
|
|
145
|
-
"sourceModule": "
|
|
129
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerProductListItemsBase",
|
|
146
130
|
"targetExport": "ProductListItemsBase",
|
|
147
131
|
"targetModule": "@graphcommerce/magento-product",
|
|
148
132
|
"type": "component",
|
|
@@ -150,7 +134,7 @@ it('finds plugins', () => {
|
|
|
150
134
|
{
|
|
151
135
|
"enabled": true,
|
|
152
136
|
"sourceExport": "Plugin",
|
|
153
|
-
"sourceModule": "
|
|
137
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerProductListItemsBase",
|
|
154
138
|
"targetExport": "ProductListItemsBase",
|
|
155
139
|
"targetModule": "@graphcommerce/magento-product",
|
|
156
140
|
"type": "component",
|
|
@@ -158,7 +142,7 @@ it('finds plugins', () => {
|
|
|
158
142
|
{
|
|
159
143
|
"enabled": true,
|
|
160
144
|
"sourceExport": "Plugin",
|
|
161
|
-
"sourceModule": "
|
|
145
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerProductListItem",
|
|
162
146
|
"targetExport": "ProductListItem",
|
|
163
147
|
"targetModule": "@graphcommerce/magento-product",
|
|
164
148
|
"type": "component",
|
|
@@ -166,7 +150,7 @@ it('finds plugins', () => {
|
|
|
166
150
|
{
|
|
167
151
|
"enabled": true,
|
|
168
152
|
"sourceExport": "Plugin",
|
|
169
|
-
"sourceModule": "
|
|
153
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerPaymentMethodContextProvider",
|
|
170
154
|
"targetExport": "PaymentMethodContextProvider",
|
|
171
155
|
"targetModule": "@graphcommerce/magento-cart-payment-method",
|
|
172
156
|
"type": "component",
|
|
@@ -174,7 +158,7 @@ it('finds plugins', () => {
|
|
|
174
158
|
{
|
|
175
159
|
"enabled": true,
|
|
176
160
|
"sourceExport": "Plugin",
|
|
177
|
-
"sourceModule": "
|
|
161
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerPaymentMethodButton",
|
|
178
162
|
"targetExport": "PaymentMethodButton",
|
|
179
163
|
"targetModule": "@graphcommerce/magento-cart-payment-method",
|
|
180
164
|
"type": "component",
|
|
@@ -182,7 +166,7 @@ it('finds plugins', () => {
|
|
|
182
166
|
{
|
|
183
167
|
"enabled": true,
|
|
184
168
|
"sourceExport": "Plugin",
|
|
185
|
-
"sourceModule": "
|
|
169
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerCartStartCheckoutLinkOrButton",
|
|
186
170
|
"targetExport": "CartStartCheckoutLinkOrButton",
|
|
187
171
|
"targetModule": "@graphcommerce/magento-cart",
|
|
188
172
|
"type": "component",
|
|
@@ -190,7 +174,7 @@ it('finds plugins', () => {
|
|
|
190
174
|
{
|
|
191
175
|
"enabled": true,
|
|
192
176
|
"sourceExport": "Plugin",
|
|
193
|
-
"sourceModule": "
|
|
177
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerCartStartCheckoutLinkOrButton",
|
|
194
178
|
"targetExport": "CartStartCheckoutLinkOrButton",
|
|
195
179
|
"targetModule": "@graphcommerce/magento-cart",
|
|
196
180
|
"type": "component",
|
|
@@ -198,7 +182,7 @@ it('finds plugins', () => {
|
|
|
198
182
|
{
|
|
199
183
|
"enabled": true,
|
|
200
184
|
"sourceExport": "Plugin",
|
|
201
|
-
"sourceModule": "
|
|
185
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerCartStartCheckout",
|
|
202
186
|
"targetExport": "CartStartCheckout",
|
|
203
187
|
"targetModule": "@graphcommerce/magento-cart",
|
|
204
188
|
"type": "component",
|
|
@@ -206,7 +190,7 @@ it('finds plugins', () => {
|
|
|
206
190
|
{
|
|
207
191
|
"enabled": true,
|
|
208
192
|
"sourceExport": "Plugin",
|
|
209
|
-
"sourceModule": "
|
|
193
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerCartStartCheckout",
|
|
210
194
|
"targetExport": "CartStartCheckout",
|
|
211
195
|
"targetModule": "@graphcommerce/magento-cart",
|
|
212
196
|
"type": "component",
|
|
@@ -214,7 +198,7 @@ it('finds plugins', () => {
|
|
|
214
198
|
{
|
|
215
199
|
"enabled": true,
|
|
216
200
|
"sourceExport": "Plugin",
|
|
217
|
-
"sourceModule": "
|
|
201
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerAddProductsToCartForm",
|
|
218
202
|
"targetExport": "AddProductsToCartForm",
|
|
219
203
|
"targetModule": "@graphcommerce/magento-product",
|
|
220
204
|
"type": "component",
|
|
@@ -222,7 +206,7 @@ it('finds plugins', () => {
|
|
|
222
206
|
{
|
|
223
207
|
"enabled": true,
|
|
224
208
|
"sourceExport": "plugin",
|
|
225
|
-
"sourceModule": "
|
|
209
|
+
"sourceModule": "@graphcommerce/graphcms-ui/plugins/hygraphGraphqlConfig",
|
|
226
210
|
"targetExport": "graphqlConfig",
|
|
227
211
|
"targetModule": "@graphcommerce/graphql",
|
|
228
212
|
"type": "function",
|
|
@@ -230,7 +214,7 @@ it('finds plugins', () => {
|
|
|
230
214
|
{
|
|
231
215
|
"enabled": true,
|
|
232
216
|
"sourceExport": "plugin",
|
|
233
|
-
"sourceModule": "
|
|
217
|
+
"sourceModule": "@graphcommerce/hygraph-dynamic-rows/plugins/hygraphDynamicRowsPageContent",
|
|
234
218
|
"targetExport": "hygraphPageContent",
|
|
235
219
|
"targetModule": "@graphcommerce/graphcms-ui",
|
|
236
220
|
"type": "function",
|
|
@@ -238,23 +222,23 @@ it('finds plugins', () => {
|
|
|
238
222
|
{
|
|
239
223
|
"enabled": true,
|
|
240
224
|
"sourceExport": "plugin",
|
|
241
|
-
"sourceModule": "
|
|
225
|
+
"sourceModule": "@graphcommerce/magento-cart/plugins/useSignInFormMergeCart",
|
|
242
226
|
"targetExport": "useSignInForm",
|
|
243
227
|
"targetModule": "@graphcommerce/magento-customer",
|
|
244
228
|
"type": "function",
|
|
245
229
|
},
|
|
246
230
|
{
|
|
247
231
|
"enabled": true,
|
|
248
|
-
"sourceExport": "
|
|
249
|
-
"sourceModule": "
|
|
232
|
+
"sourceExport": "GraphQLProvider",
|
|
233
|
+
"sourceModule": "@graphcommerce/magento-cart/plugins/MagentoCartGraphqlProvider",
|
|
250
234
|
"targetExport": "GraphQLProvider",
|
|
251
235
|
"targetModule": "@graphcommerce/graphql",
|
|
252
236
|
"type": "component",
|
|
253
237
|
},
|
|
254
238
|
{
|
|
255
239
|
"enabled": true,
|
|
256
|
-
"sourceExport": "
|
|
257
|
-
"sourceModule": "
|
|
240
|
+
"sourceExport": "GraphQLProvider",
|
|
241
|
+
"sourceModule": "@graphcommerce/magento-customer/plugins/MagentoCustomerGraphqlProvider",
|
|
258
242
|
"targetExport": "GraphQLProvider",
|
|
259
243
|
"targetModule": "@graphcommerce/graphql",
|
|
260
244
|
"type": "component",
|
|
@@ -262,7 +246,7 @@ it('finds plugins', () => {
|
|
|
262
246
|
{
|
|
263
247
|
"enabled": true,
|
|
264
248
|
"sourceExport": "plugin",
|
|
265
|
-
"sourceModule": "
|
|
249
|
+
"sourceModule": "@graphcommerce/magento-graphql/plugins/magentoGraphqlConfig",
|
|
266
250
|
"targetExport": "graphqlConfig",
|
|
267
251
|
"targetModule": "@graphcommerce/graphql/config",
|
|
268
252
|
"type": "function",
|
|
@@ -270,7 +254,7 @@ it('finds plugins', () => {
|
|
|
270
254
|
{
|
|
271
255
|
"enabled": true,
|
|
272
256
|
"sourceExport": "Plugin",
|
|
273
|
-
"sourceModule": "
|
|
257
|
+
"sourceModule": "@graphcommerce/magento-payment-included/plugins/AddIncludedMethods",
|
|
274
258
|
"targetExport": "PaymentMethodContextProvider",
|
|
275
259
|
"targetModule": "@graphcommerce/magento-cart-payment-method",
|
|
276
260
|
"type": "component",
|
|
@@ -278,7 +262,7 @@ it('finds plugins', () => {
|
|
|
278
262
|
{
|
|
279
263
|
"enabled": true,
|
|
280
264
|
"sourceExport": "Plugin",
|
|
281
|
-
"sourceModule": "
|
|
265
|
+
"sourceModule": "@graphcommerce/magento-product-bundle/plugins/BundleCartItemActionCard",
|
|
282
266
|
"targetExport": "CartItemActionCard",
|
|
283
267
|
"targetModule": "@graphcommerce/magento-cart-items",
|
|
284
268
|
"type": "component",
|
|
@@ -286,7 +270,7 @@ it('finds plugins', () => {
|
|
|
286
270
|
{
|
|
287
271
|
"enabled": true,
|
|
288
272
|
"sourceExport": "Plugin",
|
|
289
|
-
"sourceModule": "
|
|
273
|
+
"sourceModule": "@graphcommerce/magento-product-bundle/plugins/BundleCartItemActionCard",
|
|
290
274
|
"targetExport": "CartItemActionCard",
|
|
291
275
|
"targetModule": "@graphcommerce/magento-cart-items",
|
|
292
276
|
"type": "component",
|
|
@@ -294,7 +278,7 @@ it('finds plugins', () => {
|
|
|
294
278
|
{
|
|
295
279
|
"enabled": true,
|
|
296
280
|
"sourceExport": "Plugin",
|
|
297
|
-
"sourceModule": "
|
|
281
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableCartItemActionCard",
|
|
298
282
|
"targetExport": "CartItemActionCard",
|
|
299
283
|
"targetModule": "@graphcommerce/magento-cart-items",
|
|
300
284
|
"type": "component",
|
|
@@ -302,7 +286,7 @@ it('finds plugins', () => {
|
|
|
302
286
|
{
|
|
303
287
|
"enabled": true,
|
|
304
288
|
"sourceExport": "Plugin",
|
|
305
|
-
"sourceModule": "
|
|
289
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableCartItemActionCard",
|
|
306
290
|
"targetExport": "CartItemActionCard",
|
|
307
291
|
"targetModule": "@graphcommerce/magento-cart-items",
|
|
308
292
|
"type": "component",
|
|
@@ -310,7 +294,7 @@ it('finds plugins', () => {
|
|
|
310
294
|
{
|
|
311
295
|
"enabled": true,
|
|
312
296
|
"sourceExport": "Plugin",
|
|
313
|
-
"sourceModule": "
|
|
297
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePriceTiers",
|
|
314
298
|
"targetExport": "ProductPagePriceTiers",
|
|
315
299
|
"targetModule": "@graphcommerce/magento-product",
|
|
316
300
|
"type": "component",
|
|
@@ -318,7 +302,7 @@ it('finds plugins', () => {
|
|
|
318
302
|
{
|
|
319
303
|
"enabled": true,
|
|
320
304
|
"sourceExport": "Plugin",
|
|
321
|
-
"sourceModule": "
|
|
305
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice",
|
|
322
306
|
"targetExport": "ProductPagePrice",
|
|
323
307
|
"targetModule": "@graphcommerce/magento-product",
|
|
324
308
|
"type": "component",
|
|
@@ -326,7 +310,7 @@ it('finds plugins', () => {
|
|
|
326
310
|
{
|
|
327
311
|
"enabled": true,
|
|
328
312
|
"sourceExport": "Plugin",
|
|
329
|
-
"sourceModule": "
|
|
313
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageGallery",
|
|
330
314
|
"targetExport": "ProductPageGallery",
|
|
331
315
|
"targetModule": "@graphcommerce/magento-product",
|
|
332
316
|
"type": "component",
|
|
@@ -334,7 +318,7 @@ it('finds plugins', () => {
|
|
|
334
318
|
{
|
|
335
319
|
"enabled": true,
|
|
336
320
|
"sourceExport": "Plugin",
|
|
337
|
-
"sourceModule": "
|
|
321
|
+
"sourceModule": "@graphcommerce/magento-product-simple/plugins/SimpleCartItemActionCard",
|
|
338
322
|
"targetExport": "CartItemActionCard",
|
|
339
323
|
"targetModule": "@graphcommerce/magento-cart-items",
|
|
340
324
|
"type": "component",
|
|
@@ -342,7 +326,7 @@ it('finds plugins', () => {
|
|
|
342
326
|
{
|
|
343
327
|
"enabled": true,
|
|
344
328
|
"sourceExport": "Plugin",
|
|
345
|
-
"sourceModule": "
|
|
329
|
+
"sourceModule": "@graphcommerce/magento-product-simple/plugins/SimpleCartItemActionCard",
|
|
346
330
|
"targetExport": "CartItemActionCard",
|
|
347
331
|
"targetModule": "@graphcommerce/magento-cart-items",
|
|
348
332
|
"type": "component",
|
|
@@ -350,7 +334,7 @@ it('finds plugins', () => {
|
|
|
350
334
|
{
|
|
351
335
|
"enabled": true,
|
|
352
336
|
"sourceExport": "Plugin",
|
|
353
|
-
"sourceModule": "
|
|
337
|
+
"sourceModule": "@graphcommerce/magento-product-virtual/plugins/VirtualCartItemActionCard",
|
|
354
338
|
"targetExport": "CartItemActionCard",
|
|
355
339
|
"targetModule": "@graphcommerce/magento-cart-items",
|
|
356
340
|
"type": "component",
|
|
@@ -358,7 +342,7 @@ it('finds plugins', () => {
|
|
|
358
342
|
{
|
|
359
343
|
"enabled": true,
|
|
360
344
|
"sourceExport": "Plugin",
|
|
361
|
-
"sourceModule": "
|
|
345
|
+
"sourceModule": "@graphcommerce/magento-product-virtual/plugins/VirtualCartItemActionCard",
|
|
362
346
|
"targetExport": "CartItemActionCard",
|
|
363
347
|
"targetModule": "@graphcommerce/magento-cart-items",
|
|
364
348
|
"type": "component",
|
|
@@ -366,7 +350,7 @@ it('finds plugins', () => {
|
|
|
366
350
|
{
|
|
367
351
|
"enabled": true,
|
|
368
352
|
"sourceExport": "graphqlConfig",
|
|
369
|
-
"sourceModule": "
|
|
353
|
+
"sourceModule": "@graphcommerce/magento-store/plugins/magentoStoreGraphqlConfig",
|
|
370
354
|
"targetExport": "graphqlConfig",
|
|
371
355
|
"targetModule": "@graphcommerce/graphql",
|
|
372
356
|
"type": "function",
|
|
@@ -374,7 +358,7 @@ it('finds plugins', () => {
|
|
|
374
358
|
{
|
|
375
359
|
"enabled": true,
|
|
376
360
|
"sourceExport": "Plugin",
|
|
377
|
-
"sourceModule": "
|
|
361
|
+
"sourceModule": "@graphcommerce/magento-wishlist/plugins/WishlistProductAddToCartFormPlugin",
|
|
378
362
|
"targetExport": "AddProductsToCartForm",
|
|
379
363
|
"targetModule": "@graphcommerce/magento-product",
|
|
380
364
|
"type": "component",
|
|
@@ -382,7 +366,7 @@ it('finds plugins', () => {
|
|
|
382
366
|
{
|
|
383
367
|
"enabled": true,
|
|
384
368
|
"sourceExport": "Plugin",
|
|
385
|
-
"sourceModule": "
|
|
369
|
+
"sourceModule": "@graphcommerce/magento-wishlist/plugins/ConfigurableWishlistItemActionCard",
|
|
386
370
|
"targetExport": "WishlistItemActionCard",
|
|
387
371
|
"targetModule": "@graphcommerce/magento-wishlist",
|
|
388
372
|
"type": "component",
|
|
@@ -390,7 +374,7 @@ it('finds plugins', () => {
|
|
|
390
374
|
{
|
|
391
375
|
"enabled": true,
|
|
392
376
|
"sourceExport": "Plugin",
|
|
393
|
-
"sourceModule": "
|
|
377
|
+
"sourceModule": "@graphcommerce/magento-wishlist/plugins/BundleWishlistItemActionCard",
|
|
394
378
|
"targetExport": "WishlistItemActionCard",
|
|
395
379
|
"targetModule": "@graphcommerce/magento-wishlist",
|
|
396
380
|
"type": "component",
|
|
@@ -398,11 +382,43 @@ it('finds plugins', () => {
|
|
|
398
382
|
{
|
|
399
383
|
"enabled": true,
|
|
400
384
|
"sourceExport": "Plugin",
|
|
401
|
-
"sourceModule": "
|
|
385
|
+
"sourceModule": "@graphcommerce/magento-wishlist/plugins/BundleWishlistItemActionCard",
|
|
402
386
|
"targetExport": "WishlistItemActionCard",
|
|
403
387
|
"targetModule": "@graphcommerce/magento-wishlist",
|
|
404
388
|
"type": "component",
|
|
405
389
|
},
|
|
390
|
+
{
|
|
391
|
+
"enabled": true,
|
|
392
|
+
"sourceExport": "Plugin",
|
|
393
|
+
"sourceModule": "@graphcommerce/magento-cart-pickup/plugins/AddPickupInStore",
|
|
394
|
+
"targetExport": "ShippingMethodForm",
|
|
395
|
+
"targetModule": "@graphcommerce/magento-cart-shipping-method",
|
|
396
|
+
"type": "component",
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"enabled": true,
|
|
400
|
+
"sourceExport": "Plugin",
|
|
401
|
+
"sourceModule": "@graphcommerce/magento-payment-braintree/plugins/AddBraintreeMethods",
|
|
402
|
+
"targetExport": "PaymentMethodContextProvider",
|
|
403
|
+
"targetModule": "@graphcommerce/magento-cart-payment-method",
|
|
404
|
+
"type": "component",
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"enabled": true,
|
|
408
|
+
"sourceExport": "Plugin",
|
|
409
|
+
"sourceModule": "@graphcommerce/mollie-magento-payment/plugins/AddMollieMethods",
|
|
410
|
+
"targetExport": "PaymentMethodContextProvider",
|
|
411
|
+
"targetModule": "@graphcommerce/magento-cart-payment-method",
|
|
412
|
+
"type": "component",
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"enabled": true,
|
|
416
|
+
"sourceExport": "Plugin",
|
|
417
|
+
"sourceModule": "@graphcommerce/magento-payment-paypal/plugins/AddPaypalMethods",
|
|
418
|
+
"targetExport": "PaymentMethodContextProvider",
|
|
419
|
+
"targetModule": "@graphcommerce/magento-cart-payment-method",
|
|
420
|
+
"type": "component",
|
|
421
|
+
},
|
|
406
422
|
]
|
|
407
423
|
`)
|
|
408
424
|
expect(disabled).toMatchInlineSnapshot(`
|
|
@@ -411,7 +427,7 @@ it('finds plugins', () => {
|
|
|
411
427
|
"enabled": false,
|
|
412
428
|
"ifConfig": "demoMode",
|
|
413
429
|
"sourceExport": "AddProductsToCartForm",
|
|
414
|
-
"sourceModule": "
|
|
430
|
+
"sourceModule": "./plugins/EnableCrosssellsPlugin",
|
|
415
431
|
"targetExport": "AddProductsToCartForm",
|
|
416
432
|
"targetModule": "@graphcommerce/magento-product",
|
|
417
433
|
"type": "component",
|
|
@@ -420,7 +436,7 @@ it('finds plugins', () => {
|
|
|
420
436
|
"enabled": false,
|
|
421
437
|
"ifConfig": "demoMode",
|
|
422
438
|
"sourceExport": "Plugin",
|
|
423
|
-
"sourceModule": "
|
|
439
|
+
"sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoRowLinks",
|
|
424
440
|
"targetExport": "RowLinks",
|
|
425
441
|
"targetModule": "@graphcommerce/next-ui",
|
|
426
442
|
"type": "component",
|
|
@@ -429,7 +445,7 @@ it('finds plugins', () => {
|
|
|
429
445
|
"enabled": false,
|
|
430
446
|
"ifConfig": "demoMode",
|
|
431
447
|
"sourceExport": "Plugin",
|
|
432
|
-
"sourceModule": "
|
|
448
|
+
"sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoRecentlyViewedProducts",
|
|
433
449
|
"targetExport": "RecentlyViewedProducts",
|
|
434
450
|
"targetModule": "@graphcommerce/magento-recently-viewed-products",
|
|
435
451
|
"type": "component",
|
|
@@ -438,7 +454,7 @@ it('finds plugins', () => {
|
|
|
438
454
|
"enabled": false,
|
|
439
455
|
"ifConfig": "demoMode",
|
|
440
456
|
"sourceExport": "Plugin",
|
|
441
|
-
"sourceModule": "
|
|
457
|
+
"sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoProductListItemsBase",
|
|
442
458
|
"targetExport": "ProductListItemsBase",
|
|
443
459
|
"targetModule": "@graphcommerce/magento-product",
|
|
444
460
|
"type": "component",
|
|
@@ -447,7 +463,7 @@ it('finds plugins', () => {
|
|
|
447
463
|
"enabled": false,
|
|
448
464
|
"ifConfig": "demoMode",
|
|
449
465
|
"sourceExport": "Plugin",
|
|
450
|
-
"sourceModule": "
|
|
466
|
+
"sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoProductListItemsBase",
|
|
451
467
|
"targetExport": "ProductListItemsBase",
|
|
452
468
|
"targetModule": "@graphcommerce/magento-product",
|
|
453
469
|
"type": "component",
|
|
@@ -456,7 +472,7 @@ it('finds plugins', () => {
|
|
|
456
472
|
"enabled": false,
|
|
457
473
|
"ifConfig": "demoMode",
|
|
458
474
|
"sourceExport": "Plugin",
|
|
459
|
-
"sourceModule": "
|
|
475
|
+
"sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoProductListItemConfigurable",
|
|
460
476
|
"targetExport": "ProductListItemConfigurable",
|
|
461
477
|
"targetModule": "@graphcommerce/magento-product-configurable",
|
|
462
478
|
"type": "component",
|
|
@@ -465,7 +481,7 @@ it('finds plugins', () => {
|
|
|
465
481
|
"enabled": false,
|
|
466
482
|
"ifConfig": "demoMode",
|
|
467
483
|
"sourceExport": "Plugin",
|
|
468
|
-
"sourceModule": "
|
|
484
|
+
"sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoProductListItem",
|
|
469
485
|
"targetExport": "ProductListItem",
|
|
470
486
|
"targetModule": "@graphcommerce/magento-product",
|
|
471
487
|
"type": "component",
|
|
@@ -474,7 +490,7 @@ it('finds plugins', () => {
|
|
|
474
490
|
"enabled": false,
|
|
475
491
|
"ifConfig": "googleTagmanagerId",
|
|
476
492
|
"sourceExport": "plugin",
|
|
477
|
-
"sourceModule": "
|
|
493
|
+
"sourceModule": "@graphcommerce/googletagmanager/plugins/tagmanagerEvent",
|
|
478
494
|
"targetExport": "sendEvent",
|
|
479
495
|
"targetModule": "@graphcommerce/google-datalayer/api/sendEvent",
|
|
480
496
|
"type": "function",
|
|
@@ -482,8 +498,8 @@ it('finds plugins', () => {
|
|
|
482
498
|
{
|
|
483
499
|
"enabled": false,
|
|
484
500
|
"ifConfig": "googleTagmanagerId",
|
|
485
|
-
"sourceExport": "
|
|
486
|
-
"sourceModule": "
|
|
501
|
+
"sourceExport": "FramerNextPages",
|
|
502
|
+
"sourceModule": "@graphcommerce/googletagmanager/plugins/GoogleTagmanagerTag",
|
|
487
503
|
"targetExport": "FramerNextPages",
|
|
488
504
|
"targetModule": "@graphcommerce/framer-next-pages",
|
|
489
505
|
"type": "component",
|
|
@@ -491,8 +507,8 @@ it('finds plugins', () => {
|
|
|
491
507
|
{
|
|
492
508
|
"enabled": false,
|
|
493
509
|
"ifConfig": "dataLayer.coreWebVitals",
|
|
494
|
-
"sourceExport": "
|
|
495
|
-
"sourceModule": "
|
|
510
|
+
"sourceExport": "FramerNextPages",
|
|
511
|
+
"sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerWebVitals",
|
|
496
512
|
"targetExport": "FramerNextPages",
|
|
497
513
|
"targetModule": "@graphcommerce/framer-next-pages",
|
|
498
514
|
"type": "component",
|
|
@@ -501,7 +517,7 @@ it('finds plugins', () => {
|
|
|
501
517
|
"enabled": false,
|
|
502
518
|
"ifConfig": "compare",
|
|
503
519
|
"sourceExport": "Plugin",
|
|
504
|
-
"sourceModule": "
|
|
520
|
+
"sourceModule": "@graphcommerce/magento-compare/plugins/CompareAbleProductListItem",
|
|
505
521
|
"targetExport": "ProductListItem",
|
|
506
522
|
"targetModule": "@graphcommerce/magento-product",
|
|
507
523
|
"type": "component",
|
|
@@ -509,8 +525,8 @@ it('finds plugins', () => {
|
|
|
509
525
|
{
|
|
510
526
|
"enabled": false,
|
|
511
527
|
"ifConfig": "compare",
|
|
512
|
-
"sourceExport": "
|
|
513
|
-
"sourceModule": "
|
|
528
|
+
"sourceExport": "GraphQLProvider",
|
|
529
|
+
"sourceModule": "@graphcommerce/magento-compare/plugins/AddCompareTypePolicies",
|
|
514
530
|
"targetExport": "GraphQLProvider",
|
|
515
531
|
"targetModule": "@graphcommerce/graphql",
|
|
516
532
|
"type": "component",
|
|
@@ -519,7 +535,7 @@ it('finds plugins', () => {
|
|
|
519
535
|
"enabled": false,
|
|
520
536
|
"ifConfig": "compare",
|
|
521
537
|
"sourceExport": "Plugin",
|
|
522
|
-
"sourceModule": "
|
|
538
|
+
"sourceModule": "@graphcommerce/magento-compare/plugins/AddCompareToProductPage",
|
|
523
539
|
"targetExport": "ProductPageAddToCartActionsRow",
|
|
524
540
|
"targetModule": "@graphcommerce/magento-product",
|
|
525
541
|
"type": "component",
|
|
@@ -528,7 +544,7 @@ it('finds plugins', () => {
|
|
|
528
544
|
"enabled": false,
|
|
529
545
|
"ifConfig": "compare",
|
|
530
546
|
"sourceExport": "Plugin",
|
|
531
|
-
"sourceModule": "
|
|
547
|
+
"sourceModule": "@graphcommerce/magento-compare/plugins/AddCompareFabNextToCart",
|
|
532
548
|
"targetExport": "CartFab",
|
|
533
549
|
"targetModule": "@graphcommerce/magento-cart",
|
|
534
550
|
"type": "component",
|
|
@@ -536,8 +552,8 @@ it('finds plugins', () => {
|
|
|
536
552
|
{
|
|
537
553
|
"enabled": false,
|
|
538
554
|
"ifConfig": "debug.sessions",
|
|
539
|
-
"sourceExport": "
|
|
540
|
-
"sourceModule": "
|
|
555
|
+
"sourceExport": "FramerNextPages",
|
|
556
|
+
"sourceModule": "@graphcommerce/magento-customer/plugins/SessionDebuggerPlugin",
|
|
541
557
|
"targetExport": "FramerNextPages",
|
|
542
558
|
"targetModule": "@graphcommerce/framer-next-pages",
|
|
543
559
|
"type": "component",
|
|
@@ -546,7 +562,7 @@ it('finds plugins', () => {
|
|
|
546
562
|
"enabled": false,
|
|
547
563
|
"ifConfig": "configurableVariantValues.content",
|
|
548
564
|
"sourceExport": "Plugin",
|
|
549
|
-
"sourceModule": "
|
|
565
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductShortDescription",
|
|
550
566
|
"targetExport": "ProductShortDescription",
|
|
551
567
|
"targetModule": "@graphcommerce/magento-product",
|
|
552
568
|
"type": "component",
|
|
@@ -555,7 +571,7 @@ it('finds plugins', () => {
|
|
|
555
571
|
"enabled": false,
|
|
556
572
|
"ifConfig": "configurableVariantValues.content",
|
|
557
573
|
"sourceExport": "Plugin",
|
|
558
|
-
"sourceModule": "
|
|
574
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageName",
|
|
559
575
|
"targetExport": "ProductPageName",
|
|
560
576
|
"targetModule": "@graphcommerce/magento-product",
|
|
561
577
|
"type": "component",
|
|
@@ -564,7 +580,7 @@ it('finds plugins', () => {
|
|
|
564
580
|
"enabled": false,
|
|
565
581
|
"ifConfig": "configurableVariantValues.url",
|
|
566
582
|
"sourceExport": "Plugin",
|
|
567
|
-
"sourceModule": "
|
|
583
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageMeta",
|
|
568
584
|
"targetExport": "ProductPageMeta",
|
|
569
585
|
"targetModule": "@graphcommerce/magento-product",
|
|
570
586
|
"type": "component",
|
|
@@ -573,7 +589,7 @@ it('finds plugins', () => {
|
|
|
573
589
|
"enabled": false,
|
|
574
590
|
"ifConfig": "configurableVariantValues.content",
|
|
575
591
|
"sourceExport": "Plugin",
|
|
576
|
-
"sourceModule": "
|
|
592
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageJsonLd",
|
|
577
593
|
"targetExport": "ProductPageJsonLd",
|
|
578
594
|
"targetModule": "@graphcommerce/magento-product",
|
|
579
595
|
"type": "component",
|
|
@@ -582,7 +598,7 @@ it('finds plugins', () => {
|
|
|
582
598
|
"enabled": false,
|
|
583
599
|
"ifConfig": "configurableVariantValues.content",
|
|
584
600
|
"sourceExport": "Plugin",
|
|
585
|
-
"sourceModule": "
|
|
601
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageDescription",
|
|
586
602
|
"targetExport": "ProductPageDescription",
|
|
587
603
|
"targetModule": "@graphcommerce/magento-product",
|
|
588
604
|
"type": "component",
|
|
@@ -591,7 +607,7 @@ it('finds plugins', () => {
|
|
|
591
607
|
"enabled": false,
|
|
592
608
|
"ifConfig": "configurableVariantValues.content",
|
|
593
609
|
"sourceExport": "Plugin",
|
|
594
|
-
"sourceModule": "
|
|
610
|
+
"sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageDescription",
|
|
595
611
|
"targetExport": "ProductPageDescription",
|
|
596
612
|
"targetModule": "@graphcommerce/magento-product",
|
|
597
613
|
"type": "component",
|
|
@@ -600,7 +616,7 @@ it('finds plugins', () => {
|
|
|
600
616
|
"enabled": false,
|
|
601
617
|
"ifConfig": "recentlyViewedProducts.enabled",
|
|
602
618
|
"sourceExport": "Plugin",
|
|
603
|
-
"sourceModule": "
|
|
619
|
+
"sourceModule": "@graphcommerce/magento-recently-viewed-products/plugins/RegisterProductAsRecentlyViewed",
|
|
604
620
|
"targetExport": "ProductPageMeta",
|
|
605
621
|
"targetModule": "@graphcommerce/magento-product",
|
|
606
622
|
"type": "component",
|