@graphcommerce/ecommerce-ui 1.0.3 → 1.0.6

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,35 @@
1
1
  # @graphcommerce/ecommerce-ui
2
2
 
3
+ ## 1.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`3c801f45c`](https://github.com/graphcommerce-org/graphcommerce/commit/3c801f45c7df55131acf30ae2fe0d2344830d480), [`3192fab82`](https://github.com/graphcommerce-org/graphcommerce/commit/3192fab82560e2211dfcacadc3b0b305260527d8), [`104abd14e`](https://github.com/graphcommerce-org/graphcommerce/commit/104abd14e1585ef0d8de77937d25156b8fa1e201), [`2a125b1f9`](https://github.com/graphcommerce-org/graphcommerce/commit/2a125b1f98bb9272d96c3577f21d6c984caad892), [`8a354d1cd`](https://github.com/graphcommerce-org/graphcommerce/commit/8a354d1cd4757497ddfc9b1969a0addbc8ff616b)]:
8
+ - @graphcommerce/next-ui@4.6.0
9
+ - @graphcommerce/react-hook-form@3.1.0
10
+
11
+ ## 1.0.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [#1378](https://github.com/graphcommerce-org/graphcommerce/pull/1378) [`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5) Thanks [@paales](https://github.com/paales)! - Pin all versions internally so we can’t end up in an unfixable state for the user
16
+
17
+ - Updated dependencies [[`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5), [`22ff9df16`](https://github.com/graphcommerce-org/graphcommerce/commit/22ff9df1677742ae8e07d9b7e5b12fbb487580dc)]:
18
+ - @graphcommerce/graphql@3.0.7
19
+ - @graphcommerce/next-ui@4.5.1
20
+ - @graphcommerce/react-hook-form@3.0.7
21
+
22
+ ## 1.0.4
23
+
24
+ ### Patch Changes
25
+
26
+ - [#1369](https://github.com/graphcommerce-org/graphcommerce/pull/1369) [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9) Thanks [@paales](https://github.com/paales)! - Upgraded dependencies
27
+
28
+ - Updated dependencies [[`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a)]:
29
+ - @graphcommerce/graphql@3.0.6
30
+ - @graphcommerce/next-ui@4.5.0
31
+ - @graphcommerce/react-hook-form@3.0.6
32
+
3
33
  ## 1.0.3
4
34
 
5
35
  ### Patch Changes
@@ -1,19 +1,19 @@
1
1
  import { ApolloError } from '@graphcommerce/graphql'
2
- import { MessageSnackbar } from '@graphcommerce/next-ui/Snackbar/MessageSnackbar'
3
- import { MessageSnackbarImplProps } from '@graphcommerce/next-ui/Snackbar/MessageSnackbarImpl'
2
+ import { ErrorSnackbar, ErrorSnackbarProps } from '@graphcommerce/next-ui'
4
3
  import { Trans } from '@lingui/macro'
5
4
  import { Button } from '@mui/material'
6
5
 
7
6
  export type ApolloErrorSnackbarProps = {
8
7
  error?: ApolloError
9
- } & Pick<MessageSnackbarImplProps, 'action' | 'onClose'>
8
+ } & Pick<ErrorSnackbarProps, 'action' | 'onClose'>
10
9
 
11
10
  export function ApolloErrorSnackbar(props: ApolloErrorSnackbarProps) {
12
11
  const { error, action, ...passedProps } = props
13
12
 
14
13
  if (!error) return null
14
+
15
15
  return (
16
- <MessageSnackbar
16
+ <ErrorSnackbar
17
17
  variant='pill'
18
18
  severity='error'
19
19
  {...passedProps}
@@ -27,9 +27,9 @@ export function ApolloErrorSnackbar(props: ApolloErrorSnackbarProps) {
27
27
  }
28
28
  >
29
29
  <>
30
- {error.graphQLErrors.map((e) => e.message)}
30
+ {error.graphQLErrors.map((e) => e.message).join(', ')}
31
31
  {error.networkError && <>Network Error: {error.networkError.message}</>}
32
32
  </>
33
- </MessageSnackbar>
33
+ </ErrorSnackbar>
34
34
  )
35
35
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/ecommerce-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "1.0.3",
5
+ "version": "1.0.6",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,21 +12,21 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@graphcommerce/next-ui": "^4.2.4",
16
- "@graphcommerce/react-hook-form": "^3.0.4",
17
- "@graphcommerce/graphql": "^3.0.4"
15
+ "@graphcommerce/next-ui": "4.6.0",
16
+ "@graphcommerce/react-hook-form": "3.1.0",
17
+ "@graphcommerce/graphql": "3.0.7"
18
18
  },
19
19
  "devDependencies": {
20
- "@graphcommerce/eslint-config-pwa": "^4.0.5",
21
- "@graphcommerce/prettier-config-pwa": "^4.0.3",
20
+ "@graphcommerce/eslint-config-pwa": "^4.1.4",
21
+ "@graphcommerce/prettier-config-pwa": "^4.0.5",
22
22
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
23
- "@playwright/test": "^1.19.2"
23
+ "@playwright/test": "^1.20.1"
24
24
  },
25
25
  "peerDependencies": {
26
- "@mui/material": "^5.4.1",
26
+ "@mui/material": "5.5.3",
27
27
  "@lingui/macro": "^3.13.2",
28
28
  "framer-motion": "^6.2.4",
29
- "next": "^12.0.10",
29
+ "next": "12.1.2",
30
30
  "react": "^17.0.2",
31
31
  "react-dom": "^17.0.2"
32
32
  }