@graphcommerce/ecommerce-ui 1.0.2 → 1.0.5
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 +49 -48
- package/components/ApolloError/ApolloErrorAlert.tsx +1 -1
- package/components/ApolloError/ApolloErrorFullPage.tsx +1 -1
- package/components/ApolloError/ApolloErrorSnackbar.tsx +6 -6
- package/components/ComposedSubmitButton/ComposedSubmitButton.tsx +1 -8
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,32 +1,56 @@
|
|
|
1
1
|
# @graphcommerce/ecommerce-ui
|
|
2
2
|
|
|
3
|
+
## 1.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5), [`22ff9df16`](https://github.com/graphcommerce-org/graphcommerce/commit/22ff9df1677742ae8e07d9b7e5b12fbb487580dc)]:
|
|
10
|
+
- @graphcommerce/graphql@3.0.7
|
|
11
|
+
- @graphcommerce/next-ui@4.5.1
|
|
12
|
+
- @graphcommerce/react-hook-form@3.0.7
|
|
13
|
+
|
|
14
|
+
## 1.0.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#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
|
|
19
|
+
|
|
20
|
+
- 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)]:
|
|
21
|
+
- @graphcommerce/graphql@3.0.6
|
|
22
|
+
- @graphcommerce/next-ui@4.5.0
|
|
23
|
+
- @graphcommerce/react-hook-form@3.0.6
|
|
24
|
+
|
|
25
|
+
## 1.0.3
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655) Thanks [@paales](https://github.com/paales)! - All default exports are now named exports internally and all `index.tsx` are renamed to the component name.
|
|
30
|
+
|
|
31
|
+
* [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
|
|
32
|
+
|
|
33
|
+
* Updated dependencies [[`3d63b39f7`](https://github.com/ho-nl/m2-pwa/commit/3d63b39f7e330d1827a32dba782667d7b21adaba), [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655), [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef)]:
|
|
34
|
+
- @graphcommerce/next-ui@4.2.4
|
|
35
|
+
- @graphcommerce/graphql@3.0.4
|
|
36
|
+
- @graphcommerce/react-hook-form@3.0.4
|
|
37
|
+
|
|
3
38
|
## 1.0.2
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|
|
6
41
|
|
|
7
|
-
- [#1292](https://github.com/ho-nl/m2-pwa/pull/1292)
|
|
8
|
-
[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0)
|
|
9
|
-
Thanks [@paales](https://github.com/paales)! - Renamed SvgIcon to IconSvg to prevent collisions
|
|
10
|
-
with MUI
|
|
42
|
+
- [#1292](https://github.com/ho-nl/m2-pwa/pull/1292) [`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0) Thanks [@paales](https://github.com/paales)! - Renamed SvgIcon to IconSvg to prevent collisions with MUI
|
|
11
43
|
|
|
12
|
-
- Updated dependencies
|
|
13
|
-
[[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0),
|
|
14
|
-
[`990df655b`](https://github.com/ho-nl/m2-pwa/commit/990df655b73b469718d6cb5837ee65dfe2ad6a1d),
|
|
15
|
-
[`63f9b56eb`](https://github.com/ho-nl/m2-pwa/commit/63f9b56eb68ba790567ff1427e599fd2c3c8f1ee)]:
|
|
44
|
+
- Updated dependencies [[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0), [`990df655b`](https://github.com/ho-nl/m2-pwa/commit/990df655b73b469718d6cb5837ee65dfe2ad6a1d), [`63f9b56eb`](https://github.com/ho-nl/m2-pwa/commit/63f9b56eb68ba790567ff1427e599fd2c3c8f1ee)]:
|
|
16
45
|
- @graphcommerce/next-ui@4.2.0
|
|
17
46
|
|
|
18
47
|
## 1.0.1
|
|
19
48
|
|
|
20
49
|
### Patch Changes
|
|
21
50
|
|
|
22
|
-
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
|
|
23
|
-
Thanks [@paales](https://github.com/paales)! - made packages public
|
|
51
|
+
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
|
|
24
52
|
|
|
25
|
-
- Updated dependencies
|
|
26
|
-
[[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
|
|
27
|
-
[`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
|
|
28
|
-
[`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
|
|
29
|
-
[`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
|
|
53
|
+
- Updated dependencies [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96), [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20), [`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d), [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
|
|
30
54
|
- @graphcommerce/graphql@3.0.3
|
|
31
55
|
- @graphcommerce/next-ui@4.1.2
|
|
32
56
|
- @graphcommerce/react-hook-form@3.0.3
|
|
@@ -35,48 +59,25 @@
|
|
|
35
59
|
|
|
36
60
|
### Major Changes
|
|
37
61
|
|
|
38
|
-
- [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
|
|
39
|
-
[`351347afe`](https://github.com/ho-nl/m2-pwa/commit/351347afeae5bd837408d46c7593bcf5473dc621)
|
|
40
|
-
Thanks [@paales](https://github.com/paales)! - Created new `@graphcommerce/ecommerce-ui` package
|
|
41
|
-
to connect generic components from `@graphcommerce/next-ui` to `@graphcommerce/react-hook-form`
|
|
42
|
-
and `@graphcommerce/graphql`
|
|
62
|
+
- [#1274](https://github.com/ho-nl/m2-pwa/pull/1274) [`351347afe`](https://github.com/ho-nl/m2-pwa/commit/351347afeae5bd837408d46c7593bcf5473dc621) Thanks [@paales](https://github.com/paales)! - Created new `@graphcommerce/ecommerce-ui` package to connect generic components from `@graphcommerce/next-ui` to `@graphcommerce/react-hook-form` and `@graphcommerce/graphql`
|
|
43
63
|
|
|
44
64
|
### Patch Changes
|
|
45
65
|
|
|
46
|
-
- [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
|
|
47
|
-
[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7)
|
|
48
|
-
Thanks [@paales](https://github.com/paales)! - Moved `ApolloErrorAlert`, `ApolloErrorFullPage` and
|
|
49
|
-
`ApolloErrorSnackbar` to the ecommerce-ui package.
|
|
66
|
+
- [#1274](https://github.com/ho-nl/m2-pwa/pull/1274) [`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7) Thanks [@paales](https://github.com/paales)! - Moved `ApolloErrorAlert`, `ApolloErrorFullPage` and `ApolloErrorSnackbar` to the ecommerce-ui package.
|
|
50
67
|
|
|
51
|
-
Created `ComposedSubmitButton` and `ComposedSubmitLinkOrButton` to reduce complexity from
|
|
52
|
-
`magento-graphcms` example.
|
|
68
|
+
Created `ComposedSubmitButton` and `ComposedSubmitLinkOrButton` to reduce complexity from `magento-graphcms` example.
|
|
53
69
|
|
|
54
70
|
Removed dependency an `@graphcommerce/react-hook-form` from `magento-graphcms` example.
|
|
55
71
|
|
|
56
72
|
Added dependency `@graphcommerce/ecommerce-ui` from `magento-graphcms` example.
|
|
57
73
|
|
|
58
|
-
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- [
|
|
65
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
|
66
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
|
67
|
-
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
|
68
|
-
implementing
|
|
69
|
-
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
|
70
|
-
soon.
|
|
71
|
-
|
|
72
|
-
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
|
73
|
-
frontend to be able to revalidate pages manually.
|
|
74
|
-
|
|
75
|
-
- Updated dependencies
|
|
76
|
-
[[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
|
|
77
|
-
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
|
|
78
|
-
[`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
|
|
79
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)]:
|
|
74
|
+
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2) Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from `dependencies` to `peerDependencies`. The result of this is that there will be significantly less duplicate packages in the node_modules folders.
|
|
75
|
+
|
|
76
|
+
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d) Thanks [@paales](https://github.com/paales)! - Upgraded to [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be implementing [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta) soon.
|
|
77
|
+
|
|
78
|
+
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the frontend to be able to revalidate pages manually.
|
|
79
|
+
|
|
80
|
+
- Updated dependencies [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7), [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2), [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b), [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)]:
|
|
80
81
|
- @graphcommerce/next-ui@4.1.1
|
|
81
82
|
- @graphcommerce/react-hook-form@3.0.2
|
|
82
83
|
- @graphcommerce/graphql@3.0.2
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApolloError } from '@graphcommerce/graphql'
|
|
2
|
-
import { AnimatedRow } from '@graphcommerce/next-ui
|
|
2
|
+
import { AnimatedRow } from '@graphcommerce/next-ui'
|
|
3
3
|
import { extendableComponent } from '@graphcommerce/next-ui/Styles/extendableComponent'
|
|
4
4
|
import { AlertProps, Alert, Box, SxProps, Theme } from '@mui/material'
|
|
5
5
|
import { AnimatePresence } from 'framer-motion'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApolloError } from '@graphcommerce/graphql'
|
|
2
|
-
import { FullPageMessage, FullPageMessageProps } from '@graphcommerce/next-ui
|
|
2
|
+
import { FullPageMessage, FullPageMessageProps } from '@graphcommerce/next-ui'
|
|
3
3
|
import { AlertProps } from '@mui/material'
|
|
4
4
|
import { ApolloErrorAlert } from './ApolloErrorAlert'
|
|
5
5
|
|
|
@@ -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
|
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
iconChevronRight,
|
|
3
|
-
LinkOrButton,
|
|
4
|
-
LinkOrButtonProps,
|
|
5
|
-
IconSvg,
|
|
6
|
-
Button,
|
|
7
|
-
ButtonProps,
|
|
8
|
-
} from '@graphcommerce/next-ui'
|
|
1
|
+
import { iconChevronRight, IconSvg, Button, ButtonProps } from '@graphcommerce/next-ui'
|
|
9
2
|
import { ComposedSubmitRenderComponentProps } from '@graphcommerce/react-hook-form'
|
|
10
3
|
import { forwardRef } from 'react'
|
|
11
4
|
|
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.5",
|
|
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": "
|
|
16
|
-
"@graphcommerce/react-hook-form": "
|
|
17
|
-
"@graphcommerce/graphql": "
|
|
15
|
+
"@graphcommerce/next-ui": "4.5.1",
|
|
16
|
+
"@graphcommerce/react-hook-form": "3.0.7",
|
|
17
|
+
"@graphcommerce/graphql": "3.0.7"
|
|
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.4",
|
|
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
|
-
"@mui/material": "
|
|
26
|
+
"@mui/material": "5.5.3",
|
|
27
27
|
"@lingui/macro": "^3.13.2",
|
|
28
28
|
"framer-motion": "^6.2.4",
|
|
29
|
-
"next": "
|
|
29
|
+
"next": "12.1.2",
|
|
30
30
|
"react": "^17.0.2",
|
|
31
31
|
"react-dom": "^17.0.2"
|
|
32
32
|
}
|