@graphcommerce/ecommerce-ui 1.0.3 → 1.0.4
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,16 @@
|
|
|
1
1
|
# @graphcommerce/ecommerce-ui
|
|
2
2
|
|
|
3
|
+
## 1.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
- 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)]:
|
|
10
|
+
- @graphcommerce/graphql@3.0.6
|
|
11
|
+
- @graphcommerce/next-ui@4.5.0
|
|
12
|
+
- @graphcommerce/react-hook-form@3.0.6
|
|
13
|
+
|
|
3
14
|
## 1.0.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ApolloError } from '@graphcommerce/graphql'
|
|
2
|
-
import {
|
|
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<
|
|
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
|
-
<
|
|
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
|
-
</
|
|
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.
|
|
5
|
+
"version": "1.0.4",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@graphcommerce/next-ui": "^4.
|
|
16
|
-
"@graphcommerce/react-hook-form": "^3.0.
|
|
17
|
-
"@graphcommerce/graphql": "^3.0.
|
|
15
|
+
"@graphcommerce/next-ui": "^4.5.0",
|
|
16
|
+
"@graphcommerce/react-hook-form": "^3.0.6",
|
|
17
|
+
"@graphcommerce/graphql": "^3.0.6"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@graphcommerce/eslint-config-pwa": "^4.
|
|
21
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
20
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.3",
|
|
21
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.5",
|
|
22
22
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
23
|
-
"@playwright/test": "^1.
|
|
23
|
+
"@playwright/test": "^1.20.1"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@mui/material": "^5.4.1",
|