@graphcommerce/magento-customer 3.2.2 → 3.3.3

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
@@ -3,6 +3,34 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.3.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-customer@3.3.0...@graphcommerce/magento-customer@3.3.1) (2021-10-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * External SVG's can't have alt tags ([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.3.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-customer@3.2.2...@graphcommerce/magento-customer@3.3.0) (2021-10-28)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * remove double icons ([1654e34](https://github.com/ho-nl/m2-pwa/commit/1654e3441911f3c7c1600357f8f8e3032f5ee729))
23
+ * update SvgImage to SvgImageSimple ([f116543](https://github.com/ho-nl/m2-pwa/commit/f116543730853fa9782abff0ccacee7032e85789))
24
+
25
+
26
+ ### Features
27
+
28
+ * dynamic icons, update SvgImage uses to SvgImageSimple ([3d3cc0e](https://github.com/ho-nl/m2-pwa/commit/3d3cc0e0336fcde1cce6ba19705f82c1edf9bfc6))
29
+
30
+
31
+
32
+
33
+
6
34
  # [3.2.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-customer@3.1.9...@graphcommerce/magento-customer@3.2.0) (2021-10-27)
7
35
 
8
36
 
@@ -5,6 +5,7 @@ import {
5
5
  MessageSnackbar,
6
6
  SvgImage,
7
7
  iconHome,
8
+ SvgImageSimple,
8
9
  } from '@graphcommerce/next-ui'
9
10
  import { makeStyles, Theme } from '@material-ui/core'
10
11
  import { Skeleton } from '@material-ui/lab'
@@ -65,7 +66,7 @@ export default function AccountAddresses(props: AccountAddressesProps) {
65
66
  <>
66
67
  <FullPageMessage
67
68
  title='You have no addresses saved yet'
68
- icon={<SvgImage src={iconHome} size={148} alt='home' />}
69
+ icon={<SvgImageSimple src={iconHome} size='xxl' />}
69
70
  button={
70
71
  <Link href='/account/addresses/add' passHref>
71
72
  <Button size='large' variant='contained' color='primary' text='bold'>
@@ -3,7 +3,8 @@ import {
3
3
  ApolloErrorAlertProps,
4
4
  Button,
5
5
  SvgImage,
6
- iconPersonAltBig,
6
+ iconPerson,
7
+ SvgImageSimple,
7
8
  } from '@graphcommerce/next-ui'
8
9
  import PageLink from 'next/link'
9
10
  import React from 'react'
@@ -22,7 +23,7 @@ export default function ApolloCustomerErrorFullPage(props: ApolloCustomerErrorFu
22
23
  return (
23
24
  <ApolloErrorFullPage
24
25
  error={error}
25
- icon={<SvgImage src={iconPersonAltBig} size={148} alt='person' />}
26
+ icon={<SvgImageSimple src={iconPerson} size='xxl' />}
26
27
  button={
27
28
  unauthorized ? (
28
29
  <PageLink href={signInHref} passHref>
@@ -6,6 +6,7 @@ import {
6
6
  MessageSnackbar,
7
7
  SvgImage,
8
8
  iconCheckmark,
9
+ SvgImageSimple,
9
10
  } from '@graphcommerce/next-ui'
10
11
  import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
11
12
  import React from 'react'
@@ -57,7 +58,7 @@ export default function ChangeNameForm(props: ChangeNameFormProps) {
57
58
  </Form>
58
59
  <MessageSnackbar open={formState.isSubmitSuccessful && !error} variant='pill'>
59
60
  <>
60
- <SvgImage src={iconCheckmark} size='small' loading='eager' alt='checkmark' />
61
+ <SvgImageSimple src={iconCheckmark} size='small' />
61
62
  Changes saved
62
63
  </>
63
64
  </MessageSnackbar>
@@ -1,5 +1,5 @@
1
1
  import { useQuery } from '@apollo/client'
2
- import { iconPersonAlt, StyledBadge, SvgImageSimple, UseStyles } from '@graphcommerce/next-ui'
2
+ import { iconPerson, StyledBadge, SvgImageSimple, UseStyles } from '@graphcommerce/next-ui'
3
3
  import { Fab, FabProps as FabPropsType, makeStyles, NoSsr, Theme } from '@material-ui/core'
4
4
  import PageLink from 'next/link'
5
5
  import React from 'react'
@@ -32,7 +32,7 @@ function CustomerFabContent(props: CustomerFabContentProps) {
32
32
  variant='dot'
33
33
  classes={{ colorError: classes.colorError }}
34
34
  >
35
- {icon ?? <SvgImageSimple src={iconPersonAlt} alt='Account' size='large' />}
35
+ {icon ?? <SvgImageSimple src={iconPerson} size='large' />}
36
36
  </StyledBadge>
37
37
  </Fab>
38
38
  </PageLink>
@@ -3,7 +3,7 @@ import {
3
3
  MenuFabSecondaryItem,
4
4
  StyledBadge,
5
5
  UseStyles,
6
- iconPersonAlt,
6
+ iconPerson,
7
7
  SvgImageSimple,
8
8
  } from '@graphcommerce/next-ui'
9
9
  import { makeStyles, NoSsr, Theme } from '@material-ui/core'
@@ -47,7 +47,7 @@ function CustomerMenuFabItemContent(props: CustomerMenuFabItemProps) {
47
47
  variant='dot'
48
48
  classes={{ colorError: classes.colorError, badge: classes.badge }}
49
49
  >
50
- {icon ?? <SvgImageSimple src={iconPersonAlt} alt='Account' />}
50
+ {icon ?? <SvgImageSimple src={iconPerson} />}
51
51
  </StyledBadge>
52
52
  }
53
53
  href={requireAuth ? guestHref : authHref}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-customer",
3
- "version": "3.2.2",
3
+ "version": "3.3.3",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -24,8 +24,8 @@
24
24
  "@graphcommerce/graphql": "^2.105.1",
25
25
  "@graphcommerce/image": "^2.105.1",
26
26
  "@graphcommerce/magento-graphql": "^2.104.1",
27
- "@graphcommerce/magento-store": "^3.1.2",
28
- "@graphcommerce/next-ui": "^3.10.2",
27
+ "@graphcommerce/magento-store": "^3.1.6",
28
+ "@graphcommerce/next-ui": "^3.11.3",
29
29
  "@graphcommerce/react-hook-form": "^2.102.13",
30
30
  "@graphql-typed-document-node/core": "^3.1.0",
31
31
  "@material-ui/core": "^4.12.3",
@@ -36,5 +36,5 @@
36
36
  "react": "^17.0.2",
37
37
  "react-dom": "^17.0.2"
38
38
  },
39
- "gitHead": "7f5e13261ccb398f5a7e6bac70d3f4d5f757fa5f"
39
+ "gitHead": "570a61e72f88ef0a4bd1472d48c7a7dd28154f59"
40
40
  }