@graphcommerce/next-config 9.0.0-canary.72 → 9.0.0-canary.73

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.73
4
+
3
5
  ## 9.0.0-canary.72
4
6
 
5
7
  ## 9.0.0-canary.71
@@ -56,7 +56,6 @@ exports[`traverses a schema and returns a list of env variables that match 1`] =
56
56
  "GC_HYGRAPH_ENDPOINT",
57
57
  "GC_HYGRAPH_MANAGEMENT_API",
58
58
  "GC_HYGRAPH_PROJECT_ID",
59
- "GC_HYGRAPH_WRITE_ACCESS_ENDPOINT",
60
59
  "GC_HYGRAPH_WRITE_ACCESS_TOKEN",
61
60
  "GC_LIMIT_SSG",
62
61
  "GC_MAGENTO_ENDPOINT",
@@ -84,6 +84,9 @@ it('converts an env schema to a config schema', () => {
84
84
  magentoEndpoint: 'https://example.com',
85
85
  previewSecret: 'secret',
86
86
  magentoVersion: 247,
87
+ algoliaApplicationId: 'a',
88
+ algoliaIndexNamePrefix: 'a',
89
+ algoliaSearchOnlyApiKey: 'a',
87
90
  }
88
91
 
89
92
  const environmentVariables = {
@@ -75,6 +75,134 @@ it('finds plugins', () => {
75
75
  "targetModule": "@graphcommerce/ecommerce-ui",
76
76
  "type": "component",
77
77
  },
78
+ {
79
+ "enabled": true,
80
+ "sourceExport": "hygraphPageContent",
81
+ "sourceModule": "@graphcommerce/hygraph-dynamic-rows/plugins/hygraphDynamicRowsPageContent",
82
+ "targetExport": "hygraphPageContent",
83
+ "targetModule": "@graphcommerce/graphcms-ui",
84
+ "type": "function",
85
+ },
86
+ {
87
+ "enabled": true,
88
+ "sourceExport": "previewModeDefaults",
89
+ "sourceModule": "@graphcommerce/graphcms-ui/plugins/hygraphPreviewModeDefaults",
90
+ "targetExport": "previewModeDefaults",
91
+ "targetModule": "@graphcommerce/ecommerce-ui",
92
+ "type": "function",
93
+ },
94
+ {
95
+ "enabled": true,
96
+ "sourceExport": "graphqlConfig",
97
+ "sourceModule": "@graphcommerce/graphcms-ui/plugins/hygraphGraphqlConfig",
98
+ "targetExport": "graphqlConfig",
99
+ "targetModule": "@graphcommerce/graphql",
100
+ "type": "function",
101
+ },
102
+ {
103
+ "enabled": true,
104
+ "sourceExport": "PreviewModeToolbar",
105
+ "sourceModule": "@graphcommerce/graphcms-ui/plugins/HygraphPreviewModeToolbar",
106
+ "targetExport": "PreviewModeToolbar",
107
+ "targetModule": "@graphcommerce/ecommerce-ui",
108
+ "type": "component",
109
+ },
110
+ {
111
+ "enabled": true,
112
+ "sourceExport": "PaymentMethodContextProvider",
113
+ "sourceModule": "@graphcommerce/magento-payment-included/plugins/AddIncludedMethods",
114
+ "targetExport": "PaymentMethodContextProvider",
115
+ "targetModule": "@graphcommerce/magento-cart-payment-method",
116
+ "type": "component",
117
+ },
118
+ {
119
+ "enabled": true,
120
+ "sourceExport": "CartItemActionCard",
121
+ "sourceModule": "@graphcommerce/magento-product-bundle/plugins/BundleCartItemActionCard",
122
+ "targetExport": "CartItemActionCard",
123
+ "targetModule": "@graphcommerce/magento-cart-items",
124
+ "type": "component",
125
+ },
126
+ {
127
+ "enabled": true,
128
+ "sourceExport": "CartItemActionCard",
129
+ "sourceModule": "@graphcommerce/magento-product-virtual/plugins/VirtualCartItemActionCard",
130
+ "targetExport": "CartItemActionCard",
131
+ "targetModule": "@graphcommerce/magento-cart-items",
132
+ "type": "component",
133
+ },
134
+ {
135
+ "enabled": true,
136
+ "sourceExport": "AddProductsToCartForm",
137
+ "sourceModule": "@graphcommerce/magento-wishlist/plugins/WishlistProductAddToCartFormPlugin",
138
+ "targetExport": "AddProductsToCartForm",
139
+ "targetModule": "@graphcommerce/magento-product",
140
+ "type": "component",
141
+ },
142
+ {
143
+ "enabled": true,
144
+ "sourceExport": "WishlistItemActionCard",
145
+ "sourceModule": "@graphcommerce/magento-wishlist/plugins/ConfigurableWishlistItemActionCard",
146
+ "targetExport": "WishlistItemActionCard",
147
+ "targetModule": "@graphcommerce/magento-wishlist",
148
+ "type": "component",
149
+ },
150
+ {
151
+ "enabled": true,
152
+ "sourceExport": "WishlistItemActionCard",
153
+ "sourceModule": "@graphcommerce/magento-wishlist/plugins/BundleWishlistItemActionCard",
154
+ "targetExport": "WishlistItemActionCard",
155
+ "targetModule": "@graphcommerce/magento-wishlist",
156
+ "type": "component",
157
+ },
158
+ {
159
+ "enabled": true,
160
+ "sourceExport": "ShippingMethodForm",
161
+ "sourceModule": "@graphcommerce/magento-cart-pickup/plugins/AddPickupInStore",
162
+ "targetExport": "ShippingMethodForm",
163
+ "targetModule": "@graphcommerce/magento-cart-shipping-method",
164
+ "type": "component",
165
+ },
166
+ {
167
+ "enabled": true,
168
+ "sourceExport": "PaymentMethodContextProvider",
169
+ "sourceModule": "@graphcommerce/magento-payment-braintree/plugins/AddBraintreeMethods",
170
+ "targetExport": "PaymentMethodContextProvider",
171
+ "targetModule": "@graphcommerce/magento-cart-payment-method",
172
+ "type": "component",
173
+ },
174
+ {
175
+ "enabled": true,
176
+ "sourceExport": "PaymentMethodContextProvider",
177
+ "sourceModule": "@graphcommerce/mollie-magento-payment/plugins/AddMollieMethods",
178
+ "targetExport": "PaymentMethodContextProvider",
179
+ "targetModule": "@graphcommerce/magento-cart-payment-method",
180
+ "type": "component",
181
+ },
182
+ {
183
+ "enabled": true,
184
+ "sourceExport": "PaymentMethodContextProvider",
185
+ "sourceModule": "@graphcommerce/magento-payment-paypal/plugins/AddPaypalMethods",
186
+ "targetExport": "PaymentMethodContextProvider",
187
+ "targetModule": "@graphcommerce/magento-cart-payment-method",
188
+ "type": "component",
189
+ },
190
+ {
191
+ "enabled": true,
192
+ "sourceExport": "meshConfig",
193
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/meshConfigAlgolia",
194
+ "targetExport": "meshConfig",
195
+ "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
196
+ "type": "function",
197
+ },
198
+ {
199
+ "enabled": true,
200
+ "sourceExport": "ProductListItemsBase",
201
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/ProductListItemsBaseAlgolia",
202
+ "targetExport": "ProductListItemsBase",
203
+ "targetModule": "@graphcommerce/magento-product",
204
+ "type": "component",
205
+ },
78
206
  {
79
207
  "enabled": true,
80
208
  "sourceExport": "ProductPageMeta",
@@ -165,43 +293,43 @@ it('finds plugins', () => {
165
293
  },
166
294
  {
167
295
  "enabled": true,
168
- "sourceExport": "previewModeDefaults",
169
- "sourceModule": "@graphcommerce/graphcms-ui/plugins/hygraphPreviewModeDefaults",
170
- "targetExport": "previewModeDefaults",
171
- "targetModule": "@graphcommerce/ecommerce-ui",
172
- "type": "function",
296
+ "sourceExport": "CartItemActionCard",
297
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableCartItemActionCard",
298
+ "targetExport": "CartItemActionCard",
299
+ "targetModule": "@graphcommerce/magento-cart-items",
300
+ "type": "component",
173
301
  },
174
302
  {
175
303
  "enabled": true,
176
- "sourceExport": "graphqlConfig",
177
- "sourceModule": "@graphcommerce/graphcms-ui/plugins/hygraphGraphqlConfig",
178
- "targetExport": "graphqlConfig",
179
- "targetModule": "@graphcommerce/graphql",
180
- "type": "function",
304
+ "sourceExport": "ProductPagePriceTiers",
305
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePriceTiers",
306
+ "targetExport": "ProductPagePriceTiers",
307
+ "targetModule": "@graphcommerce/magento-product",
308
+ "type": "component",
181
309
  },
182
310
  {
183
311
  "enabled": true,
184
- "sourceExport": "PreviewModeToolbar",
185
- "sourceModule": "@graphcommerce/graphcms-ui/plugins/HygraphPreviewModeToolbar",
186
- "targetExport": "PreviewModeToolbar",
187
- "targetModule": "@graphcommerce/ecommerce-ui",
312
+ "sourceExport": "ProductPagePrice",
313
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice",
314
+ "targetExport": "ProductPagePrice",
315
+ "targetModule": "@graphcommerce/magento-product",
188
316
  "type": "component",
189
317
  },
190
318
  {
191
319
  "enabled": true,
192
- "sourceExport": "meshConfig",
193
- "sourceModule": "@graphcommerce/graphql-mesh/plugins/meshConfigFake",
194
- "targetExport": "meshConfig",
195
- "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
196
- "type": "function",
320
+ "sourceExport": "ProductPageGallery",
321
+ "sourceModule": "@graphcommerce/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageGallery",
322
+ "targetExport": "ProductPageGallery",
323
+ "targetModule": "@graphcommerce/magento-product",
324
+ "type": "component",
197
325
  },
198
326
  {
199
327
  "enabled": true,
200
- "sourceExport": "hygraphPageContent",
201
- "sourceModule": "@graphcommerce/hygraph-dynamic-rows/plugins/hygraphDynamicRowsPageContent",
202
- "targetExport": "hygraphPageContent",
203
- "targetModule": "@graphcommerce/graphcms-ui",
204
- "type": "function",
328
+ "sourceExport": "CartItemActionCard",
329
+ "sourceModule": "@graphcommerce/magento-product-simple/plugins/SimpleCartItemActionCard",
330
+ "targetExport": "CartItemActionCard",
331
+ "targetModule": "@graphcommerce/magento-cart-items",
332
+ "type": "component",
205
333
  },
206
334
  {
207
335
  "enabled": true,
@@ -345,59 +473,19 @@ it('finds plugins', () => {
345
473
  },
346
474
  {
347
475
  "enabled": true,
348
- "sourceExport": "AddProductsToCartForm",
349
- "sourceModule": "@graphcommerce/magento-wishlist/plugins/WishlistProductAddToCartFormPlugin",
350
- "targetExport": "AddProductsToCartForm",
351
- "targetModule": "@graphcommerce/magento-product",
352
- "type": "component",
353
- },
354
- {
355
- "enabled": true,
356
- "sourceExport": "WishlistItemActionCard",
357
- "sourceModule": "@graphcommerce/magento-wishlist/plugins/ConfigurableWishlistItemActionCard",
358
- "targetExport": "WishlistItemActionCard",
359
- "targetModule": "@graphcommerce/magento-wishlist",
360
- "type": "component",
361
- },
362
- {
363
- "enabled": true,
364
- "sourceExport": "WishlistItemActionCard",
365
- "sourceModule": "@graphcommerce/magento-wishlist/plugins/BundleWishlistItemActionCard",
366
- "targetExport": "WishlistItemActionCard",
367
- "targetModule": "@graphcommerce/magento-wishlist",
368
- "type": "component",
369
- },
370
- {
371
- "enabled": true,
372
- "sourceExport": "ShippingMethodForm",
373
- "sourceModule": "@graphcommerce/magento-cart-pickup/plugins/AddPickupInStore",
374
- "targetExport": "ShippingMethodForm",
375
- "targetModule": "@graphcommerce/magento-cart-shipping-method",
376
- "type": "component",
377
- },
378
- {
379
- "enabled": true,
380
- "sourceExport": "PaymentMethodContextProvider",
381
- "sourceModule": "@graphcommerce/magento-payment-braintree/plugins/AddBraintreeMethods",
382
- "targetExport": "PaymentMethodContextProvider",
383
- "targetModule": "@graphcommerce/magento-cart-payment-method",
384
- "type": "component",
385
- },
386
- {
387
- "enabled": true,
388
- "sourceExport": "PaymentMethodContextProvider",
389
- "sourceModule": "@graphcommerce/mollie-magento-payment/plugins/AddMollieMethods",
390
- "targetExport": "PaymentMethodContextProvider",
391
- "targetModule": "@graphcommerce/magento-cart-payment-method",
392
- "type": "component",
476
+ "sourceExport": "graphqlConfig",
477
+ "sourceModule": "@graphcommerce/magento-graphql/plugins/magentoGraphqlConfig",
478
+ "targetExport": "graphqlConfig",
479
+ "targetModule": "@graphcommerce/graphql",
480
+ "type": "function",
393
481
  },
394
482
  {
395
483
  "enabled": true,
396
- "sourceExport": "PaymentMethodContextProvider",
397
- "sourceModule": "@graphcommerce/magento-payment-paypal/plugins/AddPaypalMethods",
398
- "targetExport": "PaymentMethodContextProvider",
399
- "targetModule": "@graphcommerce/magento-cart-payment-method",
400
- "type": "component",
484
+ "sourceExport": "meshConfig",
485
+ "sourceModule": "@graphcommerce/graphql-mesh/plugins/meshConfigFake",
486
+ "targetExport": "meshConfig",
487
+ "targetModule": "@graphcommerce/graphql-mesh/meshConfig",
488
+ "type": "function",
401
489
  },
402
490
  ]
403
491
  `)
@@ -441,11 +529,11 @@ it('finds plugins', () => {
441
529
  },
442
530
  {
443
531
  "enabled": false,
444
- "ifConfig": "previewSecret",
445
- "sourceExport": "FramerNextPages",
446
- "sourceModule": "@graphcommerce/ecommerce-ui/plugins/PreviewModeFramerNextPages",
447
- "targetExport": "FramerNextPages",
448
- "targetModule": "@graphcommerce/framer-next-pages",
532
+ "ifConfig": "recentlyViewedProducts.enabled",
533
+ "sourceExport": "ProductPageMeta",
534
+ "sourceModule": "@graphcommerce/magento-recently-viewed-products/plugins/RegisterProductAsRecentlyViewed",
535
+ "targetExport": "ProductPageMeta",
536
+ "targetModule": "@graphcommerce/magento-product",
449
537
  "type": "component",
450
538
  },
451
539
  {
@@ -475,15 +563,6 @@ it('finds plugins', () => {
475
563
  "targetModule": "@graphcommerce/next-ui/server",
476
564
  "type": "component",
477
565
  },
478
- {
479
- "enabled": false,
480
- "ifConfig": "dataLayer.coreWebVitals",
481
- "sourceExport": "FramerNextPages",
482
- "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerWebVitals",
483
- "targetExport": "FramerNextPages",
484
- "targetModule": "@graphcommerce/framer-next-pages",
485
- "type": "component",
486
- },
487
566
  {
488
567
  "enabled": false,
489
568
  "ifConfig": "compare",
@@ -522,9 +601,63 @@ it('finds plugins', () => {
522
601
  },
523
602
  {
524
603
  "enabled": false,
525
- "ifConfig": "debug.sessions",
604
+ "ifConfig": "algoliaApplicationId",
605
+ "sourceExport": "useProductListApplySearchDefaults",
606
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/magentoSearchApplyAlgoliaEngine",
607
+ "targetExport": "useProductListApplySearchDefaults",
608
+ "targetModule": "@graphcommerce/magento-search",
609
+ "type": "function",
610
+ },
611
+ {
612
+ "enabled": false,
613
+ "ifConfig": "algoliaApplicationId",
614
+ "sourceExport": "productListApplySearchDefaults",
615
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/magentoSearchApplyAlgoliaEngine",
616
+ "targetExport": "productListApplySearchDefaults",
617
+ "targetModule": "@graphcommerce/magento-search",
618
+ "type": "function",
619
+ },
620
+ {
621
+ "enabled": false,
622
+ "ifConfig": "algoliaApplicationId",
623
+ "sourceExport": "searchDefaultsToProductListFilters",
624
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/magentoSearchApplyAlgoliaEngine",
625
+ "targetExport": "searchDefaultsToProductListFilters",
626
+ "targetModule": "@graphcommerce/magento-search",
627
+ "type": "function",
628
+ },
629
+ {
630
+ "enabled": false,
631
+ "ifConfig": "algoliaApplicationId",
632
+ "sourceExport": "useProductListApplyCategoryDefaults",
633
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/magentoProductApplyAlgoliaEngine",
634
+ "targetExport": "useProductListApplyCategoryDefaults",
635
+ "targetModule": "@graphcommerce/magento-product",
636
+ "type": "function",
637
+ },
638
+ {
639
+ "enabled": false,
640
+ "ifConfig": "algoliaApplicationId",
641
+ "sourceExport": "productListApplyCategoryDefaults",
642
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/magentoProductApplyAlgoliaEngine",
643
+ "targetExport": "productListApplyCategoryDefaults",
644
+ "targetModule": "@graphcommerce/magento-product",
645
+ "type": "function",
646
+ },
647
+ {
648
+ "enabled": false,
649
+ "ifConfig": "algoliaApplicationId",
650
+ "sourceExport": "categoryDefaultsToProductListFilters",
651
+ "sourceModule": "@graphcommerce/algolia-mesh/plugins/magentoProductApplyAlgoliaEngine",
652
+ "targetExport": "categoryDefaultsToProductListFilters",
653
+ "targetModule": "@graphcommerce/magento-product",
654
+ "type": "function",
655
+ },
656
+ {
657
+ "enabled": false,
658
+ "ifConfig": "dataLayer.coreWebVitals",
526
659
  "sourceExport": "FramerNextPages",
527
- "sourceModule": "@graphcommerce/magento-customer/plugins/SessionDebuggerPlugin",
660
+ "sourceModule": "@graphcommerce/google-datalayer/plugins/GoogleDatalayerWebVitals",
528
661
  "targetExport": "FramerNextPages",
529
662
  "targetModule": "@graphcommerce/framer-next-pages",
530
663
  "type": "component",
@@ -576,11 +709,20 @@ it('finds plugins', () => {
576
709
  },
577
710
  {
578
711
  "enabled": false,
579
- "ifConfig": "recentlyViewedProducts.enabled",
580
- "sourceExport": "ProductPageMeta",
581
- "sourceModule": "@graphcommerce/magento-recently-viewed-products/plugins/RegisterProductAsRecentlyViewed",
582
- "targetExport": "ProductPageMeta",
583
- "targetModule": "@graphcommerce/magento-product",
712
+ "ifConfig": "debug.sessions",
713
+ "sourceExport": "FramerNextPages",
714
+ "sourceModule": "@graphcommerce/magento-customer/plugins/SessionDebuggerPlugin",
715
+ "targetExport": "FramerNextPages",
716
+ "targetModule": "@graphcommerce/framer-next-pages",
717
+ "type": "component",
718
+ },
719
+ {
720
+ "enabled": false,
721
+ "ifConfig": "previewSecret",
722
+ "sourceExport": "FramerNextPages",
723
+ "sourceModule": "@graphcommerce/ecommerce-ui/plugins/PreviewModeFramerNextPages",
724
+ "targetExport": "FramerNextPages",
725
+ "targetModule": "@graphcommerce/framer-next-pages",
584
726
  "type": "component",
585
727
  },
586
728
  ]
@@ -9,34 +9,18 @@ it('resolves dependences', () => {
9
9
  Map {
10
10
  "." => "examples/magento-graphcms",
11
11
  "@graphcommerce/cli" => "packages/cli",
12
+ "@graphcommerce/hygraph-cli" => "packages/hygraph-cli",
12
13
  "@graphcommerce/demo-magento-graphcommerce" => "packages/demo-magento-graphcommerce",
13
- "@graphcommerce/ecommerce-ui" => "packages/ecommerce-ui",
14
- "@graphcommerce/framer-next-pages" => "packages/framer-next-pages",
15
- "@graphcommerce/framer-scroller" => "packages/framer-scroller",
16
- "@graphcommerce/framer-utils" => "packages/framer-utils",
14
+ "@graphcommerce/magento-recently-viewed-products" => "packages/magento-recently-viewed-products",
17
15
  "@graphcommerce/googleanalytics" => "packages/googleanalytics",
18
16
  "@graphcommerce/googlerecaptcha" => "packages/googlerecaptcha",
19
17
  "@graphcommerce/googletagmanager" => "packages/googletagmanager",
20
- "@graphcommerce/google-datalayer" => "packages/google-datalayer",
21
- "@graphcommerce/graphcms-ui" => "packages/hygraph-ui",
22
- "@graphcommerce/graphql" => "packages/graphql",
23
- "@graphcommerce/graphql-codegen-near-operation-file" => "packagesDev/graphql-codegen-near-operation-file",
24
- "@graphcommerce/graphql-codegen-relay-optimizer-plugin" => "packagesDev/graphql-codegen-relay-optimizer-plugin",
25
- "@graphcommerce/graphql-mesh" => "packages/graphql-mesh",
26
- "@graphcommerce/hygraph-cli" => "packages/hygraph-cli",
27
18
  "@graphcommerce/hygraph-dynamic-rows" => "packages/hygraph-dynamic-rows",
28
- "@graphcommerce/image" => "packages/image",
29
- "@graphcommerce/lingui-next" => "packages/lingui-next",
30
- "@graphcommerce/magento-cart" => "packages/magento-cart",
19
+ "@graphcommerce/graphcms-ui" => "packages/hygraph-ui",
31
20
  "@graphcommerce/magento-cart-billing-address" => "packages/magento-cart-billing-address",
32
21
  "@graphcommerce/magento-cart-checkout" => "packages/magento-cart-checkout",
33
22
  "@graphcommerce/magento-cart-coupon" => "packages/magento-cart-coupon",
34
23
  "@graphcommerce/magento-cart-email" => "packages/magento-cart-email",
35
- "@graphcommerce/magento-cart-items" => "packages/magento-cart-items",
36
- "@graphcommerce/magento-cart-payment-method" => "packages/magento-cart-payment-method",
37
- "@graphcommerce/magento-cart-shipping-address" => "packages/magento-cart-shipping-address",
38
- "@graphcommerce/magento-cart-shipping-method" => "packages/magento-cart-shipping-method",
39
- "@graphcommerce/magento-category" => "packages/magento-category",
40
24
  "@graphcommerce/magento-cms" => "packages/magento-cms",
41
25
  "@graphcommerce/magento-compare" => "packages/magento-compare",
42
26
  "@graphcommerce/magento-customer" => "packages/magento-customer",
@@ -44,28 +28,47 @@ it('resolves dependences', () => {
44
28
  "@graphcommerce/magento-graphql-rest" => "packages/magento-graphql-rest",
45
29
  "@graphcommerce/magento-newsletter" => "packages/magento-newsletter",
46
30
  "@graphcommerce/magento-payment-included" => "packages/magento-payment-included",
47
- "@graphcommerce/magento-product" => "packages/magento-product",
48
31
  "@graphcommerce/magento-product-bundle" => "packages/magento-product-bundle",
49
- "@graphcommerce/magento-product-configurable" => "packages/magento-product-configurable",
50
32
  "@graphcommerce/magento-product-downloadable" => "packages/magento-product-downloadable",
51
33
  "@graphcommerce/magento-product-grouped" => "packages/magento-product-grouped",
52
- "@graphcommerce/magento-product-simple" => "packages/magento-product-simple",
53
34
  "@graphcommerce/magento-product-virtual" => "packages/magento-product-virtual",
54
- "@graphcommerce/magento-recently-viewed-products" => "packages/magento-recently-viewed-products",
55
35
  "@graphcommerce/magento-review" => "packages/magento-review",
56
- "@graphcommerce/magento-search" => "packages/magento-search",
57
- "@graphcommerce/magento-store" => "packages/magento-store",
58
36
  "@graphcommerce/magento-wishlist" => "packages/magento-wishlist",
59
- "@graphcommerce/next-config" => "packagesDev/next-config",
60
- "@graphcommerce/next-ui" => "packages/next-ui",
61
- "@graphcommerce/react-hook-form" => "packages/react-hook-form",
62
- "@graphcommerce/eslint-config-pwa" => "packagesDev/eslint-config",
63
- "@graphcommerce/typescript-config-pwa" => "packagesDev/typescript-config",
64
- "@graphcommerce/prettier-config-pwa" => "packagesDev/prettier-config",
65
37
  "@graphcommerce/magento-cart-pickup" => "packages/magento-cart-pickup",
66
38
  "@graphcommerce/magento-payment-braintree" => "packages/magento-payment-braintree",
67
39
  "@graphcommerce/mollie-magento-payment" => "packages/mollie-magento-payment",
68
40
  "@graphcommerce/magento-payment-paypal" => "packages/magento-payment-paypal",
41
+ "@graphcommerce/algolia-mesh" => "packages/algolia-mesh",
42
+ "@graphcommerce/google-datalayer" => "packages/google-datalayer",
43
+ "@graphcommerce/magento-product-configurable" => "packages/magento-product-configurable",
44
+ "@graphcommerce/magento-product-simple" => "packages/magento-product-simple",
45
+ "@graphcommerce/magento-category" => "packages/magento-category",
46
+ "@graphcommerce/magento-cart-items" => "packages/magento-cart-items",
47
+ "@graphcommerce/lingui-next" => "packages/lingui-next",
48
+ "@graphcommerce/magento-cart-shipping-method" => "packages/magento-cart-shipping-method",
49
+ "@graphcommerce/magento-cart-payment-method" => "packages/magento-cart-payment-method",
50
+ "@graphcommerce/magento-cart-shipping-address" => "packages/magento-cart-shipping-address",
51
+ "@graphcommerce/next-config" => "packagesDev/next-config",
52
+ "@graphcommerce/magento-search" => "packages/magento-search",
53
+ "@graphcommerce/magento-product" => "packages/magento-product",
54
+ "@graphcommerce/magento-cart" => "packages/magento-cart",
55
+ "@graphcommerce/magento-customer" => "packages/magento-customer",
56
+ "@graphcommerce/magento-store" => "packages/magento-store",
57
+ "@graphcommerce/magento-graphql" => "packages/magento-graphql",
58
+ "@graphcommerce/ecommerce-ui" => "packages/ecommerce-ui",
59
+ "@graphcommerce/react-hook-form" => "packages/react-hook-form",
60
+ "@graphcommerce/next-ui" => "packages/next-ui",
61
+ "@graphcommerce/framer-scroller" => "packages/framer-scroller",
62
+ "@graphcommerce/image" => "packages/image",
63
+ "@graphcommerce/framer-next-pages" => "packages/framer-next-pages",
64
+ "@graphcommerce/framer-utils" => "packages/framer-utils",
65
+ "@graphcommerce/graphql" => "packages/graphql",
66
+ "@graphcommerce/graphql-codegen-relay-optimizer-plugin" => "packagesDev/graphql-codegen-relay-optimizer-plugin",
67
+ "@graphcommerce/graphql-codegen-near-operation-file" => "packagesDev/graphql-codegen-near-operation-file",
68
+ "@graphcommerce/graphql-mesh" => "packages/graphql-mesh",
69
+ "@graphcommerce/prettier-config-pwa" => "packagesDev/prettier-config",
70
+ "@graphcommerce/eslint-config-pwa" => "packagesDev/eslint-config",
71
+ "@graphcommerce/typescript-config-pwa" => "packagesDev/typescript-config",
69
72
  }
70
73
  `)
71
74
  })
@@ -24,6 +24,11 @@ function DatalayerConfigSchema() {
24
24
  }
25
25
  function GraphCommerceConfigSchema() {
26
26
  return zod_1.z.object({
27
+ algoliaApplicationId: zod_1.z.string().min(1),
28
+ algoliaCatalogEnabled: zod_1.z.boolean().nullish(),
29
+ algoliaCustomerGroupPricingEnabled: zod_1.z.boolean().nullish(),
30
+ algoliaIndexNamePrefix: zod_1.z.string().min(1),
31
+ algoliaSearchOnlyApiKey: zod_1.z.string().min(1),
27
32
  breadcrumbs: zod_1.z.boolean().default(false).nullish(),
28
33
  canonicalBaseUrl: zod_1.z.string().min(1),
29
34
  cartDisplayPricesInclTax: zod_1.z.boolean().nullish(),
@@ -47,7 +52,6 @@ function GraphCommerceConfigSchema() {
47
52
  hygraphEndpoint: zod_1.z.string().min(1),
48
53
  hygraphManagementApi: zod_1.z.string().nullish(),
49
54
  hygraphProjectId: zod_1.z.string().nullish(),
50
- hygraphWriteAccessEndpoint: zod_1.z.string().nullish(),
51
55
  hygraphWriteAccessToken: zod_1.z.string().nullish(),
52
56
  limitSsg: zod_1.z.boolean().nullish(),
53
57
  magentoEndpoint: zod_1.z.string().min(1),
@@ -75,6 +79,7 @@ function GraphCommerceDebugConfigSchema() {
75
79
  }
76
80
  function GraphCommerceStorefrontConfigSchema() {
77
81
  return zod_1.z.object({
82
+ algoliaIndexNamePrefix: zod_1.z.string().nullish(),
78
83
  canonicalBaseUrl: zod_1.z.string().nullish(),
79
84
  cartDisplayPricesInclTax: zod_1.z.boolean().nullish(),
80
85
  customerCompanyFieldsEnable: zod_1.z.boolean().nullish(),
@@ -26,7 +26,7 @@ function resolveRecursivePackageJson(dependencyPath, dependencyStructure, root,
26
26
  ...Object.keys(packageJson.dependencies ?? []),
27
27
  ...Object.keys(packageJson.devDependencies ?? []),
28
28
  ...additionalDependencies,
29
- // ...Object.keys(packageJson.peerDependencies ?? {}),
29
+ ...Object.keys(packageJson.peerDependencies ?? {}),
30
30
  ].filter((name) => name.includes('graphcommerce'))),
31
31
  ];
32
32
  const name = isRoot ? '.' : packageJson.name;
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.72",
5
+ "version": "9.0.0-canary.73",
6
6
  "type": "commonjs",
7
7
  "main": "dist/index.js",
8
8
  "types": "src/index.ts",
@@ -104,6 +104,23 @@ export type DatalayerConfig = {
104
104
  * Below is a list of all possible configurations that can be set by GraphCommerce.
105
105
  */
106
106
  export type GraphCommerceConfig = {
107
+ /**
108
+ * Configure your Algolia application ID.
109
+ *
110
+ * Stores > Configuration > Algolia Search > Credentials and Basic Setup > Application ID
111
+ */
112
+ algoliaApplicationId: Scalars['String']['input'];
113
+ /** By default the catalog will not use algolia. Set this to true to enable Algolia for the catalog. */
114
+ algoliaCatalogEnabled?: InputMaybe<Scalars['Boolean']['input']>;
115
+ algoliaCustomerGroupPricingEnabled?: InputMaybe<Scalars['Boolean']['input']>;
116
+ /** Stores > Configuration > Algolia Search > Credentials and Basic Setup > Index name prefix */
117
+ algoliaIndexNamePrefix: Scalars['String']['input'];
118
+ /**
119
+ * Configure your Algolia Search Only API Key.
120
+ *
121
+ * Stores > Configuration > Algolia Search > Credentials and Basic Setup > Search-only (public) API key
122
+ */
123
+ algoliaSearchOnlyApiKey: Scalars['String']['input'];
107
124
  /** Configuration for the SidebarGallery component */
108
125
  breadcrumbs?: InputMaybe<Scalars['Boolean']['input']>;
109
126
  /**
@@ -229,18 +246,20 @@ export type GraphCommerceConfig = {
229
246
  * Project settings -> API Access -> High Performance Read-only Content API
230
247
  */
231
248
  hygraphEndpoint: Scalars['String']['input'];
232
- /** Hygraph Management API. **Only used for migrations.** */
233
- hygraphManagementApi?: InputMaybe<Scalars['String']['input']>;
234
- /** Hygraph Project ID. **Only used for migrations.** */
235
- hygraphProjectId?: InputMaybe<Scalars['String']['input']>;
236
249
  /**
237
- * Content API. **Only used for migrations.**
250
+ * Hygraph Management API. **Only used for migrations.**
238
251
  *
239
- * > Regular read & write endpoint that allows querying and mutating data in your project.
252
+ * Optional: If the hygraphEndpoint is configured with the 'High Performance Content
253
+ * API', this field is not required.
254
+ */
255
+ hygraphManagementApi?: InputMaybe<Scalars['String']['input']>;
256
+ /**
257
+ * Hygraph Project ID. **Only used for migrations.**
240
258
  *
241
- * Project settings -> API Access -> Content API
259
+ * Optional: If the hygraphEndpoint is configured with the 'High Performance Content
260
+ * API', this field is not required.
242
261
  */
243
- hygraphWriteAccessEndpoint?: InputMaybe<Scalars['String']['input']>;
262
+ hygraphProjectId?: InputMaybe<Scalars['String']['input']>;
244
263
  /**
245
264
  * Hygraph Management SDK Authorization Token. **Only used for migrations.**
246
265
  *
@@ -267,7 +286,6 @@ export type GraphCommerceConfig = {
267
286
  * - Can see schema view
268
287
  *
269
288
  * ```
270
- * GC_HYGRAPH_WRITE_ACCESS_ENDPOINT="https://...hygraph.com/v2/..."
271
289
  * GC_HYGRAPH_WRITE_ACCESS_TOKEN="AccessTokenFromHygraph"
272
290
  * yarn graphcommerce hygraph-migrate
273
291
  * ```
@@ -358,6 +376,8 @@ export type GraphCommerceDebugConfig = {
358
376
 
359
377
  /** All storefront configuration for the project */
360
378
  export type GraphCommerceStorefrontConfig = {
379
+ /** Stores > Configuration > Algolia Search > Credentials and Basic Setup > Index name prefix */
380
+ algoliaIndexNamePrefix?: InputMaybe<Scalars['String']['input']>;
361
381
  /**
362
382
  * The canonical base URL is used for SEO purposes.
363
383
  *
@@ -492,6 +512,11 @@ export function DatalayerConfigSchema(): z.ZodObject<Properties<DatalayerConfig>
492
512
 
493
513
  export function GraphCommerceConfigSchema(): z.ZodObject<Properties<GraphCommerceConfig>> {
494
514
  return z.object({
515
+ algoliaApplicationId: z.string().min(1),
516
+ algoliaCatalogEnabled: z.boolean().nullish(),
517
+ algoliaCustomerGroupPricingEnabled: z.boolean().nullish(),
518
+ algoliaIndexNamePrefix: z.string().min(1),
519
+ algoliaSearchOnlyApiKey: z.string().min(1),
495
520
  breadcrumbs: z.boolean().default(false).nullish(),
496
521
  canonicalBaseUrl: z.string().min(1),
497
522
  cartDisplayPricesInclTax: z.boolean().nullish(),
@@ -515,7 +540,6 @@ export function GraphCommerceConfigSchema(): z.ZodObject<Properties<GraphCommerc
515
540
  hygraphEndpoint: z.string().min(1),
516
541
  hygraphManagementApi: z.string().nullish(),
517
542
  hygraphProjectId: z.string().nullish(),
518
- hygraphWriteAccessEndpoint: z.string().nullish(),
519
543
  hygraphWriteAccessToken: z.string().nullish(),
520
544
  limitSsg: z.boolean().nullish(),
521
545
  magentoEndpoint: z.string().min(1),
@@ -545,6 +569,7 @@ export function GraphCommerceDebugConfigSchema(): z.ZodObject<Properties<GraphCo
545
569
 
546
570
  export function GraphCommerceStorefrontConfigSchema(): z.ZodObject<Properties<GraphCommerceStorefrontConfig>> {
547
571
  return z.object({
572
+ algoliaIndexNamePrefix: z.string().nullish(),
548
573
  canonicalBaseUrl: z.string().nullish(),
549
574
  cartDisplayPricesInclTax: z.boolean().nullish(),
550
575
  customerCompanyFieldsEnable: z.boolean().nullish(),
@@ -32,7 +32,7 @@ function resolveRecursivePackageJson(
32
32
  ...Object.keys(packageJson.dependencies ?? []),
33
33
  ...Object.keys(packageJson.devDependencies ?? []),
34
34
  ...additionalDependencies,
35
- // ...Object.keys(packageJson.peerDependencies ?? {}),
35
+ ...Object.keys(packageJson.peerDependencies ?? {}),
36
36
  ].filter((name) => name.includes('graphcommerce')),
37
37
  ),
38
38
  ]