@graphcommerce/magento-compare 7.0.0-canary.21 → 7.0.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 +175 -1
- package/Config.graphqls +1 -1
- package/README.md +8 -0
- package/components/CompareProductButton.tsx +2 -1
- package/components/CompareProductToggle.tsx +1 -0
- package/package.json +14 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,180 @@
|
|
|
1
1
|
# @graphcommerce/magento-compare
|
|
2
2
|
|
|
3
|
-
## 7.0.0
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#1918](https://github.com/graphcommerce-org/graphcommerce/pull/1918) [`7dcf350c6`](https://github.com/graphcommerce-org/graphcommerce/commit/7dcf350c674dfe6dbf192ecfb5af3ee8180eb2f9) - Magento Product Compare functionality added ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
9
|
+
- [`e55d8c390`](https://github.com/graphcommerce-org/graphcommerce/commit/e55d8c390d90b4bb7bab11c6a99027ac72bd7e3e) - Created a new sidebar layout system, can be configured with productFiltersLayout in the graphcommerce.config.js ([@paales](https://github.com/paales))
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#1959](https://github.com/graphcommerce-org/graphcommerce/pull/1959) [`d0809b132`](https://github.com/graphcommerce-org/graphcommerce/commit/d0809b132a0e4cbdfeb86164f6c16a89ebecd987) - Added support for default values in the Config.graphqls files for the documentation ([@JoshuaS98](https://github.com/JoshuaS98))
|
|
14
|
+
|
|
15
|
+
## 6.2.0-canary.98
|
|
16
|
+
|
|
17
|
+
## 6.2.0-canary.97
|
|
18
|
+
|
|
19
|
+
## 6.2.0-canary.96
|
|
20
|
+
|
|
21
|
+
## 6.2.0-canary.95
|
|
22
|
+
|
|
23
|
+
## 6.2.0-canary.94
|
|
24
|
+
|
|
25
|
+
## 6.2.0-canary.93
|
|
26
|
+
|
|
27
|
+
## 6.2.0-canary.92
|
|
28
|
+
|
|
29
|
+
## 6.2.0-canary.91
|
|
30
|
+
|
|
31
|
+
## 6.2.0-canary.90
|
|
32
|
+
|
|
33
|
+
## 6.2.0-canary.89
|
|
34
|
+
|
|
35
|
+
## 6.2.0-canary.88
|
|
36
|
+
|
|
37
|
+
## 6.2.0-canary.87
|
|
38
|
+
|
|
39
|
+
## 6.2.0-canary.86
|
|
40
|
+
|
|
41
|
+
## 6.2.0-canary.85
|
|
42
|
+
|
|
43
|
+
## 6.2.0-canary.84
|
|
44
|
+
|
|
45
|
+
## 6.2.0-canary.83
|
|
46
|
+
|
|
47
|
+
## 6.2.0-canary.82
|
|
48
|
+
|
|
49
|
+
## 6.2.0-canary.81
|
|
50
|
+
|
|
51
|
+
## 6.2.0-canary.80
|
|
52
|
+
|
|
53
|
+
## 6.2.0-canary.79
|
|
54
|
+
|
|
55
|
+
## 6.2.0-canary.78
|
|
56
|
+
|
|
57
|
+
## 6.2.0-canary.77
|
|
58
|
+
|
|
59
|
+
## 6.2.0-canary.76
|
|
60
|
+
|
|
61
|
+
## 6.2.0-canary.75
|
|
62
|
+
|
|
63
|
+
## 6.2.0-canary.74
|
|
64
|
+
|
|
65
|
+
## 6.2.0-canary.73
|
|
66
|
+
|
|
67
|
+
## 6.2.0-canary.72
|
|
68
|
+
|
|
69
|
+
## 6.2.0-canary.71
|
|
70
|
+
|
|
71
|
+
## 6.2.0-canary.70
|
|
72
|
+
|
|
73
|
+
## 6.2.0-canary.69
|
|
74
|
+
|
|
75
|
+
## 6.2.0-canary.68
|
|
76
|
+
|
|
77
|
+
## 6.2.0-canary.67
|
|
78
|
+
|
|
79
|
+
## 6.2.0-canary.66
|
|
80
|
+
|
|
81
|
+
## 6.2.0-canary.65
|
|
82
|
+
|
|
83
|
+
## 6.2.0-canary.64
|
|
84
|
+
|
|
85
|
+
## 6.2.0-canary.63
|
|
86
|
+
|
|
87
|
+
## 6.2.0-canary.62
|
|
88
|
+
|
|
89
|
+
## 6.2.0-canary.61
|
|
90
|
+
|
|
91
|
+
## 6.2.0-canary.60
|
|
92
|
+
|
|
93
|
+
## 6.2.0-canary.59
|
|
94
|
+
|
|
95
|
+
## 6.2.0-canary.58
|
|
96
|
+
|
|
97
|
+
## 6.2.0-canary.57
|
|
98
|
+
|
|
99
|
+
## 6.2.0-canary.56
|
|
100
|
+
|
|
101
|
+
## 6.2.0-canary.55
|
|
102
|
+
|
|
103
|
+
## 6.2.0-canary.54
|
|
104
|
+
|
|
105
|
+
## 6.2.0-canary.53
|
|
106
|
+
|
|
107
|
+
## 6.2.0-canary.52
|
|
108
|
+
|
|
109
|
+
## 6.2.0-canary.51
|
|
110
|
+
|
|
111
|
+
## 6.2.0-canary.50
|
|
112
|
+
|
|
113
|
+
### Minor Changes
|
|
114
|
+
|
|
115
|
+
- [`e55d8c390`](https://github.com/graphcommerce-org/graphcommerce/commit/e55d8c390d90b4bb7bab11c6a99027ac72bd7e3e) - Created a new sidebar layout system, can be configured with productFiltersLayout in the graphcommerce.config.js ([@paales](https://github.com/paales))
|
|
116
|
+
|
|
117
|
+
## 6.2.0-canary.49
|
|
118
|
+
|
|
119
|
+
### Patch Changes
|
|
120
|
+
|
|
121
|
+
- [#1959](https://github.com/graphcommerce-org/graphcommerce/pull/1959) [`d0809b132`](https://github.com/graphcommerce-org/graphcommerce/commit/d0809b132a0e4cbdfeb86164f6c16a89ebecd987) - Added support for default values in the Config.graphqls files for the documentation ([@JoshuaS98](https://github.com/JoshuaS98))
|
|
122
|
+
|
|
123
|
+
## 6.2.0-canary.48
|
|
124
|
+
|
|
125
|
+
## 6.2.0-canary.47
|
|
126
|
+
|
|
127
|
+
## 6.2.0-canary.46
|
|
128
|
+
|
|
129
|
+
## 6.2.0-canary.45
|
|
130
|
+
|
|
131
|
+
## 6.2.0-canary.44
|
|
132
|
+
|
|
133
|
+
## 6.2.0-canary.43
|
|
134
|
+
|
|
135
|
+
## 6.2.0-canary.42
|
|
136
|
+
|
|
137
|
+
## 6.2.0-canary.41
|
|
138
|
+
|
|
139
|
+
## 6.2.0-canary.40
|
|
140
|
+
|
|
141
|
+
## 6.2.0-canary.39
|
|
142
|
+
|
|
143
|
+
## 6.2.0-canary.38
|
|
144
|
+
|
|
145
|
+
## 6.2.0-canary.37
|
|
146
|
+
|
|
147
|
+
## 6.2.0-canary.36
|
|
148
|
+
|
|
149
|
+
## 6.2.0-canary.35
|
|
150
|
+
|
|
151
|
+
## 6.2.0-canary.34
|
|
152
|
+
|
|
153
|
+
## 6.2.0-canary.33
|
|
154
|
+
|
|
155
|
+
## 6.2.0-canary.32
|
|
156
|
+
|
|
157
|
+
## 6.2.0-canary.31
|
|
158
|
+
|
|
159
|
+
## 6.2.0-canary.30
|
|
160
|
+
|
|
161
|
+
## 6.2.0-canary.29
|
|
162
|
+
|
|
163
|
+
## 6.2.0-canary.28
|
|
164
|
+
|
|
165
|
+
## 6.2.0-canary.27
|
|
166
|
+
|
|
167
|
+
## 6.2.0-canary.26
|
|
168
|
+
|
|
169
|
+
## 6.2.0-canary.25
|
|
170
|
+
|
|
171
|
+
## 6.2.0-canary.24
|
|
172
|
+
|
|
173
|
+
## 6.2.0-canary.23
|
|
174
|
+
|
|
175
|
+
## 6.2.0-canary.22
|
|
176
|
+
|
|
177
|
+
## 6.2.0-canary.21
|
|
4
178
|
|
|
5
179
|
## 6.2.0-canary.20
|
|
6
180
|
|
package/Config.graphqls
CHANGED
|
@@ -13,5 +13,5 @@ extend input GraphCommerceConfig {
|
|
|
13
13
|
By default the compare feature is denoted with a 'compare ICON' (2 arrows facing one another).
|
|
14
14
|
This may be fine for experienced users, but for more clarity it's also possible to present the compare feature as a CHECKBOX accompanied by the 'Compare' label
|
|
15
15
|
"""
|
|
16
|
-
compareVariant: CompareVariant
|
|
16
|
+
compareVariant: CompareVariant = ICON
|
|
17
17
|
}
|
package/README.md
ADDED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useMutation } from '@graphcommerce/graphql'
|
|
2
2
|
import { Trans } from '@lingui/react'
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
3
4
|
import { Badge, Box, Button, Checkbox, SxProps, Theme } from '@mui/material'
|
|
4
5
|
import { useState } from 'react'
|
|
5
6
|
import {
|
|
@@ -24,7 +25,7 @@ export function CompareProductButton(props: CompareProductButtonProps) {
|
|
|
24
25
|
const [remove] = useMutation(RemoveProductsFromCompareListDocument)
|
|
25
26
|
const [displayMessageBar, setDisplayMessageBar] = useState(false)
|
|
26
27
|
|
|
27
|
-
const handleClick: React.MouseEventHandler<HTMLButtonElement> = async (
|
|
28
|
+
const handleClick: React.MouseEventHandler<HTMLButtonElement> = async () => {
|
|
28
29
|
if (inCompareList) {
|
|
29
30
|
await remove({ variables: { products: [idString], uid: await create() } })
|
|
30
31
|
} else {
|
|
@@ -2,6 +2,7 @@ import { useMutation } from '@graphcommerce/graphql'
|
|
|
2
2
|
import { iconCompare, Button, Fab, FabProps } from '@graphcommerce/next-ui'
|
|
3
3
|
import { i18n } from '@lingui/core'
|
|
4
4
|
import { Trans } from '@lingui/react'
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
5
6
|
import { alpha, Checkbox, NoSsr, SxProps, Theme, useTheme } from '@mui/material'
|
|
6
7
|
import { useState } from 'react'
|
|
7
8
|
import { CompareProductIdInternalFragment } from '../graphql'
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-compare",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "7.0.0
|
|
5
|
+
"version": "7.0.0",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,22 +12,23 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "7.0.0
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "7.0.0
|
|
17
|
-
"@graphcommerce/typescript-config-pwa": "7.0.0
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "7.0.0",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "7.0.0",
|
|
17
|
+
"@graphcommerce/typescript-config-pwa": "7.0.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@graphcommerce/ecommerce-ui": "7.0.0
|
|
21
|
-
"@graphcommerce/framer-utils": "7.0.0
|
|
22
|
-
"@graphcommerce/magento-cart": "7.0.0
|
|
23
|
-
"@graphcommerce/magento-product": "7.0.0
|
|
24
|
-
"@graphcommerce/framer-next-pages": "7.0.0
|
|
25
|
-
"@graphcommerce/graphql": "7.0.0
|
|
26
|
-
"@graphcommerce/next-ui": "7.0.0
|
|
20
|
+
"@graphcommerce/ecommerce-ui": "7.0.0",
|
|
21
|
+
"@graphcommerce/framer-utils": "7.0.0",
|
|
22
|
+
"@graphcommerce/magento-cart": "7.0.0",
|
|
23
|
+
"@graphcommerce/magento-product": "7.0.0",
|
|
24
|
+
"@graphcommerce/framer-next-pages": "7.0.0",
|
|
25
|
+
"@graphcommerce/graphql": "7.0.0",
|
|
26
|
+
"@graphcommerce/next-ui": "7.0.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@lingui/react": "^
|
|
30
|
-
"@lingui/core": "^
|
|
29
|
+
"@lingui/react": "^4.2.1",
|
|
30
|
+
"@lingui/core": "^4.2.1",
|
|
31
|
+
"@lingui/macro": "^4.2.1",
|
|
31
32
|
"@mui/material": "^5.10.16",
|
|
32
33
|
"framer-motion": "^10.0.0",
|
|
33
34
|
"graphql": "^16.0.0",
|