@graphcommerce/next-config 9.0.0-canary.59 → 9.0.0-canary.60

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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.60
4
+
3
5
  ## 9.0.0-canary.59
4
6
 
5
7
  ## 9.0.0-canary.58
@@ -24,10 +24,10 @@ it('finds plugins', () => {
24
24
  {
25
25
  "enabled": true,
26
26
  "ifConfig": "googleAnalyticsId",
27
- "sourceExport": "plugin",
27
+ "sourceExport": "sendEvent",
28
28
  "sourceModule": "@graphcommerce/googleanalytics/plugins/gtagEvent",
29
29
  "targetExport": "sendEvent",
30
- "targetModule": "@graphcommerce/google-datalayer/api/sendEvent",
30
+ "targetModule": "@graphcommerce/google-datalayer",
31
31
  "type": "function",
32
32
  },
33
33
  {
@@ -42,7 +42,7 @@ it('finds plugins', () => {
42
42
  {
43
43
  "enabled": true,
44
44
  "ifConfig": "googleRecaptchaKey",
45
- "sourceExport": "Plugin",
45
+ "sourceExport": "GraphQLProvider",
46
46
  "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaGraphQLProvider",
47
47
  "targetExport": "GraphQLProvider",
48
48
  "targetModule": "@graphcommerce/graphql",
@@ -51,7 +51,7 @@ it('finds plugins', () => {
51
51
  {
52
52
  "enabled": true,
53
53
  "ifConfig": "googleRecaptchaKey",
54
- "sourceExport": "Plugin",
54
+ "sourceExport": "ApolloErrorSnackbar",
55
55
  "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorSnackbar",
56
56
  "targetExport": "ApolloErrorSnackbar",
57
57
  "targetModule": "@graphcommerce/ecommerce-ui",
@@ -60,7 +60,7 @@ it('finds plugins', () => {
60
60
  {
61
61
  "enabled": true,
62
62
  "ifConfig": "googleRecaptchaKey",
63
- "sourceExport": "Plugin",
63
+ "sourceExport": "ApolloErrorFullPage",
64
64
  "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorFullPage",
65
65
  "targetExport": "ApolloErrorFullPage",
66
66
  "targetModule": "@graphcommerce/ecommerce-ui",
@@ -69,7 +69,7 @@ it('finds plugins', () => {
69
69
  {
70
70
  "enabled": true,
71
71
  "ifConfig": "googleRecaptchaKey",
72
- "sourceExport": "Plugin",
72
+ "sourceExport": "ApolloErrorAlert",
73
73
  "sourceModule": "@graphcommerce/googlerecaptcha/plugins/GrecaptchaApolloErrorAlert",
74
74
  "targetExport": "ApolloErrorAlert",
75
75
  "targetModule": "@graphcommerce/ecommerce-ui",
@@ -77,7 +77,7 @@ it('finds plugins', () => {
77
77
  },
78
78
  {
79
79
  "enabled": true,
80
- "sourceExport": "Plugin",
80
+ "sourceExport": "ProductPageMeta",
81
81
  "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerViewItem",
82
82
  "targetExport": "ProductPageMeta",
83
83
  "targetModule": "@graphcommerce/magento-product",
@@ -85,15 +85,15 @@ it('finds plugins', () => {
85
85
  },
86
86
  {
87
87
  "enabled": true,
88
- "sourceExport": "Plugin",
88
+ "sourceExport": "UpdateItemQuantity",
89
89
  "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerUseRemoveItemFromCart",
90
90
  "targetExport": "UpdateItemQuantity",
91
- "targetModule": "@graphcommerce/magento-cart-items/components/UpdateItemQuantity/UpdateItemQuantity",
91
+ "targetModule": "@graphcommerce/magento-cart-items",
92
92
  "type": "component",
93
93
  },
94
94
  {
95
95
  "enabled": true,
96
- "sourceExport": "Plugin",
96
+ "sourceExport": "ShippingMethodForm",
97
97
  "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerShippingMethodForm",
98
98
  "targetExport": "ShippingMethodForm",
99
99
  "targetModule": "@graphcommerce/magento-cart-shipping-method",
@@ -109,7 +109,7 @@ it('finds plugins', () => {
109
109
  },
110
110
  {
111
111
  "enabled": true,
112
- "sourceExport": "Plugin",
112
+ "sourceExport": "ProductListItemsBase",
113
113
  "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerProductListItemsBase",
114
114
  "targetExport": "ProductListItemsBase",
115
115
  "targetModule": "@graphcommerce/magento-product",
@@ -117,7 +117,7 @@ it('finds plugins', () => {
117
117
  },
118
118
  {
119
119
  "enabled": true,
120
- "sourceExport": "Plugin",
120
+ "sourceExport": "ProductListItem",
121
121
  "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerProductListItem",
122
122
  "targetExport": "ProductListItem",
123
123
  "targetModule": "@graphcommerce/magento-product",
@@ -125,7 +125,7 @@ it('finds plugins', () => {
125
125
  },
126
126
  {
127
127
  "enabled": true,
128
- "sourceExport": "Plugin",
128
+ "sourceExport": "PaymentMethodContextProvider",
129
129
  "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerPaymentMethodContextProvider",
130
130
  "targetExport": "PaymentMethodContextProvider",
131
131
  "targetModule": "@graphcommerce/magento-cart-payment-method",
@@ -133,7 +133,7 @@ it('finds plugins', () => {
133
133
  },
134
134
  {
135
135
  "enabled": true,
136
- "sourceExport": "Plugin",
136
+ "sourceExport": "PaymentMethodButton",
137
137
  "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerPaymentMethodButton",
138
138
  "targetExport": "PaymentMethodButton",
139
139
  "targetModule": "@graphcommerce/magento-cart-payment-method",
@@ -141,7 +141,7 @@ it('finds plugins', () => {
141
141
  },
142
142
  {
143
143
  "enabled": true,
144
- "sourceExport": "Plugin",
144
+ "sourceExport": "CartStartCheckoutLinkOrButton",
145
145
  "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerCartStartCheckoutLinkOrButton",
146
146
  "targetExport": "CartStartCheckoutLinkOrButton",
147
147
  "targetModule": "@graphcommerce/magento-cart",
@@ -149,7 +149,7 @@ it('finds plugins', () => {
149
149
  },
150
150
  {
151
151
  "enabled": true,
152
- "sourceExport": "Plugin",
152
+ "sourceExport": "CartStartCheckout",
153
153
  "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerCartStartCheckout",
154
154
  "targetExport": "CartStartCheckout",
155
155
  "targetModule": "@graphcommerce/magento-cart",
@@ -157,7 +157,7 @@ it('finds plugins', () => {
157
157
  },
158
158
  {
159
159
  "enabled": true,
160
- "sourceExport": "Plugin",
160
+ "sourceExport": "AddProductsToCartForm",
161
161
  "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerAddProductsToCartForm",
162
162
  "targetExport": "AddProductsToCartForm",
163
163
  "targetModule": "@graphcommerce/magento-product",
@@ -173,7 +173,7 @@ it('finds plugins', () => {
173
173
  },
174
174
  {
175
175
  "enabled": true,
176
- "sourceExport": "plugin",
176
+ "sourceExport": "graphqlConfig",
177
177
  "sourceModule": "@graphcommerce/graphcms-ui/plugins/hygraphGraphqlConfig",
178
178
  "targetExport": "graphqlConfig",
179
179
  "targetModule": "@graphcommerce/graphql",
@@ -197,7 +197,7 @@ it('finds plugins', () => {
197
197
  },
198
198
  {
199
199
  "enabled": true,
200
- "sourceExport": "plugin",
200
+ "sourceExport": "hygraphPageContent",
201
201
  "sourceModule": "@graphcommerce/hygraph-dynamic-rows/plugins/hygraphDynamicRowsPageContent",
202
202
  "targetExport": "hygraphPageContent",
203
203
  "targetModule": "@graphcommerce/graphcms-ui",
@@ -205,7 +205,7 @@ it('finds plugins', () => {
205
205
  },
206
206
  {
207
207
  "enabled": true,
208
- "sourceExport": "plugin",
208
+ "sourceExport": "useSignInForm",
209
209
  "sourceModule": "@graphcommerce/magento-cart/plugins/useSignInFormMergeCart",
210
210
  "targetExport": "useSignInForm",
211
211
  "targetModule": "@graphcommerce/magento-customer",
@@ -257,15 +257,15 @@ it('finds plugins', () => {
257
257
  },
258
258
  {
259
259
  "enabled": true,
260
- "sourceExport": "plugin",
260
+ "sourceExport": "graphqlConfig",
261
261
  "sourceModule": "@graphcommerce/magento-graphql/plugins/magentoGraphqlConfig",
262
262
  "targetExport": "graphqlConfig",
263
- "targetModule": "@graphcommerce/graphql/config",
263
+ "targetModule": "@graphcommerce/graphql",
264
264
  "type": "function",
265
265
  },
266
266
  {
267
267
  "enabled": true,
268
- "sourceExport": "Plugin",
268
+ "sourceExport": "PaymentMethodContextProvider",
269
269
  "sourceModule": "@graphcommerce/magento-payment-included/plugins/AddIncludedMethods",
270
270
  "targetExport": "PaymentMethodContextProvider",
271
271
  "targetModule": "@graphcommerce/magento-cart-payment-method",
@@ -289,7 +289,7 @@ it('finds plugins', () => {
289
289
  },
290
290
  {
291
291
  "enabled": true,
292
- "sourceExport": "Plugin",
292
+ "sourceExport": "ProductPagePriceTiers",
293
293
  "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePriceTiers",
294
294
  "targetExport": "ProductPagePriceTiers",
295
295
  "targetModule": "@graphcommerce/magento-product",
@@ -297,7 +297,7 @@ it('finds plugins', () => {
297
297
  },
298
298
  {
299
299
  "enabled": true,
300
- "sourceExport": "Plugin",
300
+ "sourceExport": "ProductPagePrice",
301
301
  "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice",
302
302
  "targetExport": "ProductPagePrice",
303
303
  "targetModule": "@graphcommerce/magento-product",
@@ -305,7 +305,7 @@ it('finds plugins', () => {
305
305
  },
306
306
  {
307
307
  "enabled": true,
308
- "sourceExport": "Plugin",
308
+ "sourceExport": "ProductPageGallery",
309
309
  "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageGallery",
310
310
  "targetExport": "ProductPageGallery",
311
311
  "targetModule": "@graphcommerce/magento-product",
@@ -337,7 +337,7 @@ it('finds plugins', () => {
337
337
  },
338
338
  {
339
339
  "enabled": true,
340
- "sourceExport": "Plugin",
340
+ "sourceExport": "AddProductsToCartForm",
341
341
  "sourceModule": "@graphcommerce/magento-wishlist/plugins/WishlistProductAddToCartFormPlugin",
342
342
  "targetExport": "AddProductsToCartForm",
343
343
  "targetModule": "@graphcommerce/magento-product",
@@ -345,7 +345,7 @@ it('finds plugins', () => {
345
345
  },
346
346
  {
347
347
  "enabled": true,
348
- "sourceExport": "Plugin",
348
+ "sourceExport": "WishlistItemActionCard",
349
349
  "sourceModule": "@graphcommerce/magento-wishlist/plugins/ConfigurableWishlistItemActionCard",
350
350
  "targetExport": "WishlistItemActionCard",
351
351
  "targetModule": "@graphcommerce/magento-wishlist",
@@ -353,7 +353,7 @@ it('finds plugins', () => {
353
353
  },
354
354
  {
355
355
  "enabled": true,
356
- "sourceExport": "Plugin",
356
+ "sourceExport": "WishlistItemActionCard",
357
357
  "sourceModule": "@graphcommerce/magento-wishlist/plugins/BundleWishlistItemActionCard",
358
358
  "targetExport": "WishlistItemActionCard",
359
359
  "targetModule": "@graphcommerce/magento-wishlist",
@@ -361,7 +361,7 @@ it('finds plugins', () => {
361
361
  },
362
362
  {
363
363
  "enabled": true,
364
- "sourceExport": "Plugin",
364
+ "sourceExport": "ShippingMethodForm",
365
365
  "sourceModule": "@graphcommerce/magento-cart-pickup/plugins/AddPickupInStore",
366
366
  "targetExport": "ShippingMethodForm",
367
367
  "targetModule": "@graphcommerce/magento-cart-shipping-method",
@@ -369,7 +369,7 @@ it('finds plugins', () => {
369
369
  },
370
370
  {
371
371
  "enabled": true,
372
- "sourceExport": "Plugin",
372
+ "sourceExport": "PaymentMethodContextProvider",
373
373
  "sourceModule": "@graphcommerce/magento-payment-braintree/plugins/AddBraintreeMethods",
374
374
  "targetExport": "PaymentMethodContextProvider",
375
375
  "targetModule": "@graphcommerce/magento-cart-payment-method",
@@ -377,7 +377,7 @@ it('finds plugins', () => {
377
377
  },
378
378
  {
379
379
  "enabled": true,
380
- "sourceExport": "Plugin",
380
+ "sourceExport": "PaymentMethodContextProvider",
381
381
  "sourceModule": "@graphcommerce/mollie-magento-payment/plugins/AddMollieMethods",
382
382
  "targetExport": "PaymentMethodContextProvider",
383
383
  "targetModule": "@graphcommerce/magento-cart-payment-method",
@@ -385,7 +385,7 @@ it('finds plugins', () => {
385
385
  },
386
386
  {
387
387
  "enabled": true,
388
- "sourceExport": "Plugin",
388
+ "sourceExport": "PaymentMethodContextProvider",
389
389
  "sourceModule": "@graphcommerce/magento-payment-paypal/plugins/AddPaypalMethods",
390
390
  "targetExport": "PaymentMethodContextProvider",
391
391
  "targetModule": "@graphcommerce/magento-cart-payment-method",
@@ -407,7 +407,7 @@ it('finds plugins', () => {
407
407
  {
408
408
  "enabled": false,
409
409
  "ifConfig": "demoMode",
410
- "sourceExport": "Plugin",
410
+ "sourceExport": "RowLinks",
411
411
  "sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoRowLinks",
412
412
  "targetExport": "RowLinks",
413
413
  "targetModule": "@graphcommerce/next-ui",
@@ -416,7 +416,7 @@ it('finds plugins', () => {
416
416
  {
417
417
  "enabled": false,
418
418
  "ifConfig": "demoMode",
419
- "sourceExport": "Plugin",
419
+ "sourceExport": "RecentlyViewedProducts",
420
420
  "sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoRecentlyViewedProducts",
421
421
  "targetExport": "RecentlyViewedProducts",
422
422
  "targetModule": "@graphcommerce/magento-recently-viewed-products",
@@ -425,7 +425,7 @@ it('finds plugins', () => {
425
425
  {
426
426
  "enabled": false,
427
427
  "ifConfig": "demoMode",
428
- "sourceExport": "Plugin",
428
+ "sourceExport": "ProductListItemConfigurable",
429
429
  "sourceModule": "@graphcommerce/demo-magento-graphcommerce/plugins/demo/DemoProductListItemConfigurable",
430
430
  "targetExport": "ProductListItemConfigurable",
431
431
  "targetModule": "@graphcommerce/magento-product-configurable",
@@ -443,10 +443,10 @@ it('finds plugins', () => {
443
443
  {
444
444
  "enabled": false,
445
445
  "ifConfig": "googleTagmanagerId",
446
- "sourceExport": "plugin",
446
+ "sourceExport": "sendEvent",
447
447
  "sourceModule": "@graphcommerce/googletagmanager/plugins/tagmanagerEvent",
448
448
  "targetExport": "sendEvent",
449
- "targetModule": "@graphcommerce/google-datalayer/api/sendEvent",
449
+ "targetModule": "@graphcommerce/google-datalayer",
450
450
  "type": "function",
451
451
  },
452
452
  {
@@ -479,7 +479,7 @@ it('finds plugins', () => {
479
479
  {
480
480
  "enabled": false,
481
481
  "ifConfig": "compare",
482
- "sourceExport": "Plugin",
482
+ "sourceExport": "ProductListItem",
483
483
  "sourceModule": "@graphcommerce/magento-compare/plugins/CompareAbleProductListItem",
484
484
  "targetExport": "ProductListItem",
485
485
  "targetModule": "@graphcommerce/magento-product",
@@ -497,7 +497,7 @@ it('finds plugins', () => {
497
497
  {
498
498
  "enabled": false,
499
499
  "ifConfig": "compare",
500
- "sourceExport": "Plugin",
500
+ "sourceExport": "ProductPageAddToCartActionsRow",
501
501
  "sourceModule": "@graphcommerce/magento-compare/plugins/AddCompareToProductPage",
502
502
  "targetExport": "ProductPageAddToCartActionsRow",
503
503
  "targetModule": "@graphcommerce/magento-product",
@@ -506,7 +506,7 @@ it('finds plugins', () => {
506
506
  {
507
507
  "enabled": false,
508
508
  "ifConfig": "compare",
509
- "sourceExport": "Plugin",
509
+ "sourceExport": "CartFab",
510
510
  "sourceModule": "@graphcommerce/magento-compare/plugins/AddCompareFabNextToCart",
511
511
  "targetExport": "CartFab",
512
512
  "targetModule": "@graphcommerce/magento-cart",
@@ -524,7 +524,7 @@ it('finds plugins', () => {
524
524
  {
525
525
  "enabled": false,
526
526
  "ifConfig": "configurableVariantValues.content",
527
- "sourceExport": "Plugin",
527
+ "sourceExport": "ProductShortDescription",
528
528
  "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductShortDescription",
529
529
  "targetExport": "ProductShortDescription",
530
530
  "targetModule": "@graphcommerce/magento-product",
@@ -533,7 +533,7 @@ it('finds plugins', () => {
533
533
  {
534
534
  "enabled": false,
535
535
  "ifConfig": "configurableVariantValues.content",
536
- "sourceExport": "Plugin",
536
+ "sourceExport": "ProductPageName",
537
537
  "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageName",
538
538
  "targetExport": "ProductPageName",
539
539
  "targetModule": "@graphcommerce/magento-product",
@@ -542,7 +542,7 @@ it('finds plugins', () => {
542
542
  {
543
543
  "enabled": false,
544
544
  "ifConfig": "configurableVariantValues.url",
545
- "sourceExport": "Plugin",
545
+ "sourceExport": "ProductPageMeta",
546
546
  "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageMeta",
547
547
  "targetExport": "ProductPageMeta",
548
548
  "targetModule": "@graphcommerce/magento-product",
@@ -551,7 +551,7 @@ it('finds plugins', () => {
551
551
  {
552
552
  "enabled": false,
553
553
  "ifConfig": "configurableVariantValues.content",
554
- "sourceExport": "Plugin",
554
+ "sourceExport": "ProductPageJsonLd",
555
555
  "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageJsonLd",
556
556
  "targetExport": "ProductPageJsonLd",
557
557
  "targetModule": "@graphcommerce/magento-product",
@@ -560,7 +560,7 @@ it('finds plugins', () => {
560
560
  {
561
561
  "enabled": false,
562
562
  "ifConfig": "configurableVariantValues.content",
563
- "sourceExport": "Plugin",
563
+ "sourceExport": "ProductPageDescription",
564
564
  "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageDescription",
565
565
  "targetExport": "ProductPageDescription",
566
566
  "targetModule": "@graphcommerce/magento-product",
@@ -569,7 +569,7 @@ it('finds plugins', () => {
569
569
  {
570
570
  "enabled": false,
571
571
  "ifConfig": "recentlyViewedProducts.enabled",
572
- "sourceExport": "Plugin",
572
+ "sourceExport": "ProductPageMeta",
573
573
  "sourceModule": "@graphcommerce/magento-recently-viewed-products/plugins/RegisterProductAsRecentlyViewed",
574
574
  "targetExport": "ProductPageMeta",
575
575
  "targetModule": "@graphcommerce/magento-product",
@@ -551,13 +551,13 @@ it('correctly reports an error for an incorrect export', async () => {
551
551
 
552
552
  const src = `
553
553
  import { getSitemapPaths as getSitemapPathsType } from '@graphcommerce/magento-product'
554
- import { IfConfig, MethodPlugin } from '@graphcommerce/next-config'
554
+ import { IfConfig, FunctionPlugin } from '@graphcommerce/next-config'
555
555
 
556
556
  export const method = 'getSitemapPaths'
557
557
  export const exported = '@graphcommerce/magento-product'
558
558
  export const ifConfig: IfConfig = 'demoMode'
559
559
 
560
- export const plugin: MethodPlugin<typeof getSitemapPathsType> = (prev, ...args) => {
560
+ export const plugin: FunctionPlugin<typeof getSitemapPathsType> = (prev, ...args) => {
561
561
  console.log('getSitemapPaths plugin ran!')
562
562
  return prev(...args)
563
563
  }
@@ -77,12 +77,12 @@ export const Plugin = DemoProductListItemConfigurable
77
77
  it('correctly parses the classic function plugin config', () => {
78
78
  const src = `
79
79
  import { graphqlConfig, setContext } from '@graphcommerce/graphql'
80
- import type { MethodPlugin } from '@graphcommerce/next-config'
80
+ import type { FunctionPlugin } from '@graphcommerce/next-config'
81
81
 
82
82
  export const func = 'graphqlConfig'
83
83
  export const exported = '@graphcommerce/graphql'
84
84
 
85
- const hygraphGraphqlConfig: MethodPlugin<typeof graphqlConfig> = (prev, config) => {
85
+ const hygraphGraphqlConfig: FunctionPlugin<typeof graphqlConfig> = (prev, config) => {
86
86
  const results = prev(config)
87
87
 
88
88
  const locales = config.storefront.hygraphLocales
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/next-config",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.59",
5
+ "version": "9.0.0-canary.60",
6
6
  "type": "commonjs",
7
7
  "main": "dist/index.js",
8
8
  "types": "src/index.ts",