@graphcommerce/magento-cart-shipping-address 3.3.7 → 3.4.0

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,49 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1602](https://github.com/graphcommerce-org/graphcommerce/pull/1602) [`5f781a217`](https://github.com/graphcommerce-org/graphcommerce/commit/5f781a217ce63ed56bc1a9983487b04400a8a315) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Default styles and layout fixes
8
+
9
+ - Scaled icons and fonts down. Size in typography is now more gradual: https://graphcommerce.vercel.app/test/typography
10
+ - Multiple accessibility fixes. Missing button/input labels, and fixed spacing issues resulting in high % appropriately sized tap targets
11
+ - Replaced responsiveVal usage with better performaning breakpointVal where possible
12
+ - All buttons are now Pill by default.
13
+ - Cleaned up checkout styles
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [[`04708dacc`](https://github.com/graphcommerce-org/graphcommerce/commit/04708daccc213c6ea927bc67fa3bd0d5b1fad619), [`bb94e7045`](https://github.com/graphcommerce-org/graphcommerce/commit/bb94e7045460cb671c45d612a0833731d7c20c30), [`b0dc4e2e1`](https://github.com/graphcommerce-org/graphcommerce/commit/b0dc4e2e1982d502d38dd50a0f493396360a7a15), [`4a5286dfe`](https://github.com/graphcommerce-org/graphcommerce/commit/4a5286dfeaa1719e594a0078f274fbab53969c4e), [`0ad5159eb`](https://github.com/graphcommerce-org/graphcommerce/commit/0ad5159ebef54b4ce7fee6f71b4bf710dba9ef8e), [`d46d5ed0c`](https://github.com/graphcommerce-org/graphcommerce/commit/d46d5ed0cc5794391b7527fc17bbb68ec2212e33), [`e573278e4`](https://github.com/graphcommerce-org/graphcommerce/commit/e573278e43506a6b17a2981e61d0e9fad41eb2eb), [`5f781a217`](https://github.com/graphcommerce-org/graphcommerce/commit/5f781a217ce63ed56bc1a9983487b04400a8a315), [`ac6eedbb1`](https://github.com/graphcommerce-org/graphcommerce/commit/ac6eedbb14d3abd8cf1231a98dc2a8b7f4659f1f)]:
18
+ - @graphcommerce/next-ui@4.22.0
19
+ - @graphcommerce/magento-customer@4.10.0
20
+ - @graphcommerce/magento-cart@4.7.0
21
+ - @graphcommerce/magento-store@4.2.28
22
+ - @graphcommerce/graphql@3.4.7
23
+ - @graphcommerce/image@3.1.9
24
+
25
+ ## 3.3.9
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [[`1f7ee6f6c`](https://github.com/graphcommerce-org/graphcommerce/commit/1f7ee6f6cfb28544439ed36e10929ac530d1b2b7), [`707dbc73d`](https://github.com/graphcommerce-org/graphcommerce/commit/707dbc73d181204d88fdbbd2e09340e25b2b5f7b)]:
30
+ - @graphcommerce/next-ui@4.21.0
31
+ - @graphcommerce/graphql@3.4.6
32
+ - @graphcommerce/magento-cart@4.6.9
33
+ - @graphcommerce/magento-customer@4.9.5
34
+ - @graphcommerce/magento-store@4.2.27
35
+ - @graphcommerce/image@3.1.8
36
+
37
+ ## 3.3.8
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies [[`43822fd61`](https://github.com/graphcommerce-org/graphcommerce/commit/43822fd61c949215b8ddce9fb37d09f29b638426), [`3a619b70d`](https://github.com/graphcommerce-org/graphcommerce/commit/3a619b70d082804b8de46a8e8232f9431479a8b7), [`3a619b70d`](https://github.com/graphcommerce-org/graphcommerce/commit/3a619b70d082804b8de46a8e8232f9431479a8b7)]:
42
+ - @graphcommerce/next-ui@4.20.0
43
+ - @graphcommerce/magento-customer@4.9.4
44
+ - @graphcommerce/magento-cart@4.6.8
45
+ - @graphcommerce/magento-store@4.2.26
46
+
3
47
  ## 3.3.7
4
48
 
5
49
  ### Patch Changes
@@ -18,7 +18,6 @@ import {
18
18
  import { i18n } from '@lingui/core'
19
19
  import { Trans } from '@lingui/react'
20
20
  import { SxProps, TextField, Theme } from '@mui/material'
21
- import { AnimatePresence } from 'framer-motion'
22
21
  import React from 'react'
23
22
  import { isSameAddress } from '../../utils/isSameAddress'
24
23
  import { GetAddressesDocument } from './GetAddresses.gql'
@@ -119,29 +118,27 @@ export const ShippingAddressForm = React.memo<ShippingAddressFormProps>((props)
119
118
 
120
119
  return (
121
120
  <Form onSubmit={submit} noValidate sx={sx}>
122
- <AnimatePresence initial={false}>
123
- <NameFields form={form} key='name' readOnly={readOnly} />
124
- <AddressFields form={form} key='addressfields' readOnly={readOnly} />
125
- <FormRow key='telephone'>
126
- <TextField
127
- variant='outlined'
128
- type='text'
129
- error={!!formState.errors.telephone}
130
- required={required.telephone}
131
- label={<Trans id='Telephone' />}
132
- {...muiRegister('telephone', {
133
- required: required.telephone,
134
- pattern: { value: phonePattern, message: i18n._(/* i18n */ 'Invalid phone number') },
135
- })}
136
- helperText={formState.isSubmitted && formState.errors.telephone?.message}
137
- InputProps={{
138
- readOnly,
139
- endAdornment: <InputCheckmark show={valid.telephone} />,
140
- }}
141
- />
142
- </FormRow>
143
- <ApolloCartErrorAlert error={error} />
144
- </AnimatePresence>
121
+ <NameFields form={form} key='name' readOnly={readOnly} />
122
+ <AddressFields form={form} key='addressfields' readOnly={readOnly} />
123
+ <FormRow key='telephone'>
124
+ <TextField
125
+ variant='outlined'
126
+ type='text'
127
+ error={!!formState.errors.telephone}
128
+ required={required.telephone}
129
+ label={<Trans id='Telephone' />}
130
+ {...muiRegister('telephone', {
131
+ required: required.telephone,
132
+ pattern: { value: phonePattern, message: i18n._(/* i18n */ 'Invalid phone number') },
133
+ })}
134
+ helperText={formState.isSubmitted && formState.errors.telephone?.message}
135
+ InputProps={{
136
+ readOnly,
137
+ endAdornment: <InputCheckmark show={valid.telephone} />,
138
+ }}
139
+ />
140
+ </FormRow>
141
+ <ApolloCartErrorAlert error={error} />
145
142
  </Form>
146
143
  )
147
144
  })
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart-shipping-address",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.3.7",
5
+ "version": "3.4.0",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,18 +12,18 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.1.9",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.10",
16
16
  "@graphcommerce/prettier-config-pwa": "^4.0.6",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.4",
18
18
  "@playwright/test": "^1.21.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/graphql": "3.4.5",
22
- "@graphcommerce/image": "3.1.7",
23
- "@graphcommerce/magento-cart": "4.6.7",
24
- "@graphcommerce/magento-customer": "4.9.3",
25
- "@graphcommerce/magento-store": "4.2.25",
26
- "@graphcommerce/next-ui": "4.19.0",
21
+ "@graphcommerce/graphql": "3.4.7",
22
+ "@graphcommerce/image": "3.1.9",
23
+ "@graphcommerce/magento-cart": "4.7.0",
24
+ "@graphcommerce/magento-customer": "4.10.0",
25
+ "@graphcommerce/magento-store": "4.2.28",
26
+ "@graphcommerce/next-ui": "4.22.0",
27
27
  "@graphcommerce/react-hook-form": "3.3.2"
28
28
  },
29
29
  "peerDependencies": {