@graphcommerce/magento-cart 4.4.5 → 4.4.8

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,44 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.4.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1538](https://github.com/graphcommerce-org/graphcommerce/pull/1538) [`fe4baa42d`](https://github.com/graphcommerce-org/graphcommerce/commit/fe4baa42db0081ed960d62aef688bd36a7ac974f) Thanks [@paales](https://github.com/paales)! - add missing translations
8
+
9
+ - Updated dependencies [[`fe4baa42d`](https://github.com/graphcommerce-org/graphcommerce/commit/fe4baa42db0081ed960d62aef688bd36a7ac974f)]:
10
+ - @graphcommerce/magento-customer@4.6.3
11
+ - @graphcommerce/next-ui@4.11.2
12
+ - @graphcommerce/ecommerce-ui@1.0.23
13
+ - @graphcommerce/framer-scroller@2.1.20
14
+ - @graphcommerce/magento-store@4.2.14
15
+
16
+ ## 4.4.7
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [[`11bca2d2f`](https://github.com/graphcommerce-org/graphcommerce/commit/11bca2d2f7dbb7c5e2827c04eb0db43d4099f2fd)]:
21
+ - @graphcommerce/next-ui@4.11.1
22
+ - @graphcommerce/ecommerce-ui@1.0.22
23
+ - @graphcommerce/framer-scroller@2.1.19
24
+ - @graphcommerce/magento-customer@4.6.2
25
+ - @graphcommerce/magento-store@4.2.13
26
+
27
+ ## 4.4.6
28
+
29
+ ### Patch Changes
30
+
31
+ - [#1524](https://github.com/graphcommerce-org/graphcommerce/pull/1524) [`d140fca34`](https://github.com/graphcommerce-org/graphcommerce/commit/d140fca3463b73e761e23fd1d9216305727f0c1a) Thanks [@paales](https://github.com/paales)! - when there are no agreements, do not render anything
32
+
33
+ - Updated dependencies [[`9ec0338df`](https://github.com/graphcommerce-org/graphcommerce/commit/9ec0338dfe34d37b0f2c24e36ffa6ed13ea1145e), [`735b78672`](https://github.com/graphcommerce-org/graphcommerce/commit/735b786724d5401cbe6e88f2515e121a1a0945b2)]:
34
+ - @graphcommerce/next-ui@4.11.0
35
+ - @graphcommerce/magento-store@4.2.12
36
+ - @graphcommerce/graphql@3.3.0
37
+ - @graphcommerce/ecommerce-ui@1.0.21
38
+ - @graphcommerce/framer-scroller@2.1.18
39
+ - @graphcommerce/magento-customer@4.6.1
40
+ - @graphcommerce/magento-graphql@3.0.15
41
+
3
42
  ## 4.4.5
4
43
 
5
44
  ### Patch Changes
@@ -53,6 +53,8 @@ export function CartAgreementsForm(props: CartAgreementsFormProps) {
53
53
 
54
54
  useFormCompose({ form, step, submit, key: 'PaymentAgreementsForm' })
55
55
 
56
+ if (data?.checkoutAgreements?.length === 0) return null
57
+
56
58
  return (
57
59
  <FormDiv
58
60
  className={classes.form}
@@ -72,7 +74,7 @@ export function CartAgreementsForm(props: CartAgreementsFormProps) {
72
74
  name={`agreement[${agreement.agreement_id}]`}
73
75
  control={control}
74
76
  rules={{
75
- required: i18n._(/* i18n */ `You have to agree in order to proceed`),
77
+ required: i18n._(/* i18n */ 'You have to agree in order to proceed'),
76
78
  }}
77
79
  render={({
78
80
  field: { onChange, value, name, ref, onBlur },
@@ -58,7 +58,7 @@ function CartFabContent(props: CartFabContentProps) {
58
58
  <PageLink href='/cart' passHref>
59
59
  <MotionFab
60
60
  className={classes.cart}
61
- aria-label={i18n._(/* i18n */ `Cart`)}
61
+ aria-label={i18n._(/* i18n */ 'Cart')}
62
62
  color='inherit'
63
63
  size='responsive'
64
64
  style={{ backgroundColor }}
@@ -13,7 +13,7 @@ export function useCartIdCreate() {
13
13
  if (cartId) return cartId
14
14
 
15
15
  const { data } = await create()
16
- if (!data?.createEmptyCart) throw Error(i18n._(/* i18n */ `Could not create an empty cart`))
16
+ if (!data?.createEmptyCart) throw Error(i18n._(/* i18n */ 'Could not create an empty cart'))
17
17
 
18
18
  // We store the cartId that is returned as the currentCartId result
19
19
  assignCurrentCartId(data.createEmptyCart)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.4.5",
5
+ "version": "4.4.8",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,15 +18,15 @@
18
18
  "@playwright/test": "^1.21.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/ecommerce-ui": "1.0.20",
21
+ "@graphcommerce/ecommerce-ui": "1.0.23",
22
22
  "@graphcommerce/framer-next-pages": "3.2.3",
23
- "@graphcommerce/framer-scroller": "2.1.17",
24
- "@graphcommerce/graphql": "3.2.1",
23
+ "@graphcommerce/framer-scroller": "2.1.20",
24
+ "@graphcommerce/graphql": "3.3.0",
25
25
  "@graphcommerce/image": "3.1.7",
26
- "@graphcommerce/magento-customer": "4.6.0",
27
- "@graphcommerce/magento-graphql": "3.0.14",
28
- "@graphcommerce/magento-store": "4.2.11",
29
- "@graphcommerce/next-ui": "4.10.0",
26
+ "@graphcommerce/magento-customer": "4.6.3",
27
+ "@graphcommerce/magento-graphql": "3.0.15",
28
+ "@graphcommerce/magento-store": "4.2.14",
29
+ "@graphcommerce/next-ui": "4.11.2",
30
30
  "@graphcommerce/react-hook-form": "3.2.2"
31
31
  },
32
32
  "peerDependencies": {