@graphcommerce/magento-store 6.2.0-canary.8 → 6.2.0-canary.80
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 +156 -0
- package/PageMeta.tsx +1 -4
- package/package.json +11 -10
- package/plugins/magentoStoreGraphqlConfig.ts +4 -5
- package/utils/redirectOrNotFound.ts +10 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,161 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.2.0-canary.80
|
|
4
|
+
|
|
5
|
+
## 6.2.0-canary.79
|
|
6
|
+
|
|
7
|
+
## 6.2.0-canary.78
|
|
8
|
+
|
|
9
|
+
## 6.2.0-canary.77
|
|
10
|
+
|
|
11
|
+
## 6.2.0-canary.76
|
|
12
|
+
|
|
13
|
+
## 6.2.0-canary.75
|
|
14
|
+
|
|
15
|
+
## 6.2.0-canary.74
|
|
16
|
+
|
|
17
|
+
## 6.2.0-canary.73
|
|
18
|
+
|
|
19
|
+
## 6.2.0-canary.72
|
|
20
|
+
|
|
21
|
+
## 6.2.0-canary.71
|
|
22
|
+
|
|
23
|
+
## 6.2.0-canary.70
|
|
24
|
+
|
|
25
|
+
## 6.2.0-canary.69
|
|
26
|
+
|
|
27
|
+
## 6.2.0-canary.68
|
|
28
|
+
|
|
29
|
+
## 6.2.0-canary.67
|
|
30
|
+
|
|
31
|
+
## 6.2.0-canary.66
|
|
32
|
+
|
|
33
|
+
## 6.2.0-canary.65
|
|
34
|
+
|
|
35
|
+
## 6.2.0-canary.64
|
|
36
|
+
|
|
37
|
+
## 6.2.0-canary.63
|
|
38
|
+
|
|
39
|
+
## 6.2.0-canary.62
|
|
40
|
+
|
|
41
|
+
## 6.2.0-canary.61
|
|
42
|
+
|
|
43
|
+
## 6.2.0-canary.60
|
|
44
|
+
|
|
45
|
+
## 6.2.0-canary.59
|
|
46
|
+
|
|
47
|
+
## 6.2.0-canary.58
|
|
48
|
+
|
|
49
|
+
## 6.2.0-canary.57
|
|
50
|
+
|
|
51
|
+
## 6.2.0-canary.56
|
|
52
|
+
|
|
53
|
+
## 6.2.0-canary.55
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- [#1967](https://github.com/graphcommerce-org/graphcommerce/pull/1967) [`888fe88e6`](https://github.com/graphcommerce-org/graphcommerce/commit/888fe88e644d94621d54a268dbaafc7ff5467c93) - Fix bug where product urls ending with a suffix would not be redirected ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
58
|
+
|
|
59
|
+
## 6.2.0-canary.54
|
|
60
|
+
|
|
61
|
+
## 6.2.0-canary.53
|
|
62
|
+
|
|
63
|
+
## 6.2.0-canary.52
|
|
64
|
+
|
|
65
|
+
## 6.2.0-canary.51
|
|
66
|
+
|
|
67
|
+
## 6.2.0-canary.50
|
|
68
|
+
|
|
69
|
+
### Minor Changes
|
|
70
|
+
|
|
71
|
+
- [`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))
|
|
72
|
+
|
|
73
|
+
## 6.2.0-canary.49
|
|
74
|
+
|
|
75
|
+
## 6.2.0-canary.48
|
|
76
|
+
|
|
77
|
+
### Minor Changes
|
|
78
|
+
|
|
79
|
+
- [#1961](https://github.com/graphcommerce-org/graphcommerce/pull/1961) [`4a759c662`](https://github.com/graphcommerce-org/graphcommerce/commit/4a759c66215eaa69edc342b898e05e8f92c3ba9a) - Add Open Graph meta tags to all pages ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
80
|
+
|
|
81
|
+
## 6.2.0-canary.47
|
|
82
|
+
|
|
83
|
+
## 6.2.0-canary.46
|
|
84
|
+
|
|
85
|
+
## 6.2.0-canary.45
|
|
86
|
+
|
|
87
|
+
## 6.2.0-canary.44
|
|
88
|
+
|
|
89
|
+
## 6.2.0-canary.43
|
|
90
|
+
|
|
91
|
+
## 6.2.0-canary.42
|
|
92
|
+
|
|
93
|
+
## 6.2.0-canary.41
|
|
94
|
+
|
|
95
|
+
## 6.2.0-canary.40
|
|
96
|
+
|
|
97
|
+
## 6.2.0-canary.39
|
|
98
|
+
|
|
99
|
+
## 6.2.0-canary.38
|
|
100
|
+
|
|
101
|
+
## 6.2.0-canary.37
|
|
102
|
+
|
|
103
|
+
## 6.2.0-canary.36
|
|
104
|
+
|
|
105
|
+
## 6.2.0-canary.35
|
|
106
|
+
|
|
107
|
+
## 6.2.0-canary.34
|
|
108
|
+
|
|
109
|
+
## 6.2.0-canary.33
|
|
110
|
+
|
|
111
|
+
## 6.2.0-canary.32
|
|
112
|
+
|
|
113
|
+
## 6.2.0-canary.31
|
|
114
|
+
|
|
115
|
+
## 6.2.0-canary.30
|
|
116
|
+
|
|
117
|
+
## 6.2.0-canary.29
|
|
118
|
+
|
|
119
|
+
## 6.2.0-canary.28
|
|
120
|
+
|
|
121
|
+
## 6.2.0-canary.27
|
|
122
|
+
|
|
123
|
+
## 6.2.0-canary.26
|
|
124
|
+
|
|
125
|
+
## 6.2.0-canary.25
|
|
126
|
+
|
|
127
|
+
## 6.2.0-canary.24
|
|
128
|
+
|
|
129
|
+
## 6.2.0-canary.23
|
|
130
|
+
|
|
131
|
+
## 6.2.0-canary.22
|
|
132
|
+
|
|
133
|
+
## 6.2.0-canary.21
|
|
134
|
+
|
|
135
|
+
## 6.2.0-canary.20
|
|
136
|
+
|
|
137
|
+
## 6.2.0-canary.19
|
|
138
|
+
|
|
139
|
+
## 6.2.0-canary.18
|
|
140
|
+
|
|
141
|
+
## 6.2.0-canary.17
|
|
142
|
+
|
|
143
|
+
## 6.2.0-canary.16
|
|
144
|
+
|
|
145
|
+
## 6.2.0-canary.15
|
|
146
|
+
|
|
147
|
+
## 6.2.0-canary.14
|
|
148
|
+
|
|
149
|
+
## 6.2.0-canary.13
|
|
150
|
+
|
|
151
|
+
## 6.2.0-canary.12
|
|
152
|
+
|
|
153
|
+
## 6.2.0-canary.11
|
|
154
|
+
|
|
155
|
+
## 6.2.0-canary.10
|
|
156
|
+
|
|
157
|
+
## 6.2.0-canary.9
|
|
158
|
+
|
|
3
159
|
## 6.2.0-canary.8
|
|
4
160
|
|
|
5
161
|
## 6.2.0-canary.7
|
package/PageMeta.tsx
CHANGED
|
@@ -5,10 +5,7 @@ import {
|
|
|
5
5
|
} from '@graphcommerce/next-ui'
|
|
6
6
|
import { StoreConfigDocument } from './StoreConfig.gql'
|
|
7
7
|
|
|
8
|
-
type PageMetaProps =
|
|
9
|
-
NextPageMetaProps,
|
|
10
|
-
'title' | 'metaDescription' | 'metaRobots' | 'children'
|
|
11
|
-
> & {
|
|
8
|
+
type PageMetaProps = Omit<NextPageMetaProps, 'canonical'> & {
|
|
12
9
|
canonical?: string
|
|
13
10
|
}
|
|
14
11
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-store",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "6.2.0-canary.
|
|
5
|
+
"version": "6.2.0-canary.80",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,19 +12,20 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "6.2.0-canary.
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.
|
|
17
|
-
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "6.2.0-canary.80",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.80",
|
|
17
|
+
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.80"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@graphcommerce/graphql": "6.2.0-canary.
|
|
21
|
-
"@graphcommerce/graphql-mesh": "6.2.0-canary.
|
|
22
|
-
"@graphcommerce/image": "6.2.0-canary.
|
|
23
|
-
"@graphcommerce/next-ui": "6.2.0-canary.
|
|
20
|
+
"@graphcommerce/graphql": "6.2.0-canary.80",
|
|
21
|
+
"@graphcommerce/graphql-mesh": "6.2.0-canary.80",
|
|
22
|
+
"@graphcommerce/image": "6.2.0-canary.80",
|
|
23
|
+
"@graphcommerce/next-ui": "6.2.0-canary.80"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@lingui/react": "^
|
|
27
|
-
"@lingui/core": "^
|
|
26
|
+
"@lingui/react": "^4.2.1",
|
|
27
|
+
"@lingui/core": "^4.2.1",
|
|
28
|
+
"@lingui/macro": "^4.2.1",
|
|
28
29
|
"@mui/material": "^5.10.16",
|
|
29
30
|
"next": "^13.2.0",
|
|
30
31
|
"react": "^18.2.0",
|
|
@@ -5,10 +5,9 @@ import { createStoreLink } from '../link/createStoreLink'
|
|
|
5
5
|
export const func = 'graphqlConfig'
|
|
6
6
|
export const exported = '@graphcommerce/graphql/config'
|
|
7
7
|
|
|
8
|
-
const magentoStoreGraphqlConfig: MethodPlugin<typeof graphqlConfig> = (prev, config) =>
|
|
9
|
-
prev(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})
|
|
8
|
+
const magentoStoreGraphqlConfig: MethodPlugin<typeof graphqlConfig> = (prev, config) => {
|
|
9
|
+
const results = prev(config)
|
|
10
|
+
return { ...results, links: [...results.links, createStoreLink(config.storefront.locale)] }
|
|
11
|
+
}
|
|
13
12
|
|
|
14
13
|
export const plugin = magentoStoreGraphqlConfig
|
|
@@ -9,7 +9,7 @@ import { nonNullable, isTypename } from '@graphcommerce/next-ui'
|
|
|
9
9
|
import { Redirect } from 'next'
|
|
10
10
|
import { StoreConfigQuery } from '../StoreConfig.gql'
|
|
11
11
|
import { defaultLocale } from '../localeToStore'
|
|
12
|
-
import { HandleRedirectDocument } from './HandleRedirect.gql'
|
|
12
|
+
import { HandleRedirectDocument, HandleRedirectQuery } from './HandleRedirect.gql'
|
|
13
13
|
|
|
14
14
|
export type RedirectOr404Return = Promise<
|
|
15
15
|
| { redirect: Redirect; revalidate?: number | boolean }
|
|
@@ -77,8 +77,16 @@ export async function redirectOrNotFound(
|
|
|
77
77
|
).data,
|
|
78
78
|
)
|
|
79
79
|
|
|
80
|
-
const
|
|
80
|
+
const routeDataArray = (await Promise.all(routePromises)).filter(nonNullable)
|
|
81
81
|
|
|
82
|
+
const routeData: HandleRedirectQuery = Object.assign(
|
|
83
|
+
{},
|
|
84
|
+
...routeDataArray.map((result) => {
|
|
85
|
+
if (!result.route) delete result.route
|
|
86
|
+
if (!result.products) delete result.products
|
|
87
|
+
return result
|
|
88
|
+
}),
|
|
89
|
+
)
|
|
82
90
|
if (!routeData?.route)
|
|
83
91
|
return notFound(
|
|
84
92
|
from,
|