@graphcommerce/docs 4.6.6 → 4.9.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 +18 -0
- package/framework/icons.md +3 -0
- package/framework/translations.md +1 -1
- package/getting-started/header.md +7 -82
- package/package.json +1 -1
- package/roadmap.md +13 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1636](https://github.com/graphcommerce-org/graphcommerce/pull/1636) [`3829a80b3`](https://github.com/graphcommerce-org/graphcommerce/commit/3829a80b3b51feef43a4408338cec3acd9ccd1ed) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Update docs
|
|
8
|
+
|
|
9
|
+
## 4.8.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#1603](https://github.com/graphcommerce-org/graphcommerce/pull/1603) [`26221795d`](https://github.com/graphcommerce-org/graphcommerce/commit/26221795d5ab7d4d66adae756fc02273b1500a53) Thanks [@Jessevdpoel](https://github.com/Jessevdpoel)! - changed icon docs
|
|
14
|
+
|
|
15
|
+
## 4.7.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#1594](https://github.com/graphcommerce-org/graphcommerce/pull/1594) [`f00f3c27f`](https://github.com/graphcommerce-org/graphcommerce/commit/f00f3c27f6631da39127727da0ae1e991b687bed) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Update roadmap
|
|
20
|
+
|
|
3
21
|
## 4.6.6
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/framework/icons.md
CHANGED
|
@@ -161,6 +161,9 @@ without fills. The path must be wrapped in a `<symbol>` that has an attribute
|
|
|
161
161
|
</svg>
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
+
Some icons may contain a `<ellipse>`, `<line>`, `<polygon>`, `<polyline>`,
|
|
165
|
+
`<rect>` elements, make sure these are also wrapped in the `<symbol>` tag.
|
|
166
|
+
|
|
164
167
|
Icons can be placed in the same directory as a page or component and can be
|
|
165
168
|
imported from there (the `<IconSvg>` component will convert the relative path to
|
|
166
169
|
an absolute path)
|
|
@@ -26,7 +26,7 @@ msgstr "cancelado"
|
|
|
26
26
|
|
|
27
27
|
The msgid is the message being translated. In
|
|
28
28
|
/node_modules/@graphcommerce/magento-cart/components/EmptyCart/EmptyCart.tsx,
|
|
29
|
-
you can see that the first msgid is passed as a the id prop to the
|
|
29
|
+
you can see that the first msgid is passed as a the id prop to the `<Trans>`
|
|
30
30
|
component:
|
|
31
31
|
|
|
32
32
|
```tsx
|
|
@@ -27,7 +27,6 @@ to find resources to build more complex features on your own.
|
|
|
27
27
|
- Edited the layout component to remove components
|
|
28
28
|
- Add a simplified search Icon button
|
|
29
29
|
- Make a local copy of the MenuFab component and update its imports
|
|
30
|
-
- Change the Menu component's styling to a fullscreen overlay
|
|
31
30
|
|
|
32
31
|
### Requirements
|
|
33
32
|
|
|
@@ -39,31 +38,9 @@ frontend React framework that uses Next.js for server-side rendering.
|
|
|
39
38
|
|
|
40
39
|
---
|
|
41
40
|
|
|
42
|
-
<figure>
|
|
43
|
-
|
|
44
|
-
https://user-images.githubusercontent.com/1251986/154978614-8d2eaee1-d64b-4bae-a7d7-cfee2e9175d3.mp4
|
|
45
|
-
|
|
46
|
-
<video width="100%" controls autoPlay loop muted playsInline>
|
|
47
|
-
<source src="https://user-images.githubusercontent.com/1251986/154978614-8d2eaee1-d64b-4bae-a7d7-cfee2e9175d3.mp4" type="video/mp4"/>
|
|
48
|
-
</video>
|
|
49
|
-
|
|
50
|
-
<figcaption>Before customization of the header</figcaption>
|
|
51
|
-
</figure>
|
|
52
|
-
|
|
53
|
-
<figure>
|
|
54
|
-
|
|
55
|
-
https://user-images.githubusercontent.com/1251986/154979091-89c72d68-c62f-451c-af49-6f36f3fa6609.mp4
|
|
56
|
-
|
|
57
|
-
<video width="100%" controls autoPlay loop muted playsInline>
|
|
58
|
-
<source src="https://user-images.githubusercontent.com/1251986/154979091-89c72d68-c62f-451c-af49-6f36f3fa6609.mp4" type="video/mp4"/>
|
|
59
|
-
</video>
|
|
60
|
-
|
|
61
|
-
<figcaption>After customization of the header</figcaption>
|
|
62
|
-
</figure>
|
|
63
|
-
|
|
64
41
|
### Move and justify the logo
|
|
65
42
|
|
|
66
|
-
- In /components/Layout/
|
|
43
|
+
- In /components/Layout/LayoutNavigation.tsx, move `<Logo />` after
|
|
67
44
|
`<DesktopNavBar>...</DesktopNavBar>`
|
|
68
45
|
- Wrap the `<Logo />` component in a `<Box>` component:
|
|
69
46
|
|
|
@@ -93,7 +70,7 @@ https://user-images.githubusercontent.com/1251986/154979091-89c72d68-c62f-451c-a
|
|
|
93
70
|
|
|
94
71
|
### Remove DesktopNavBar
|
|
95
72
|
|
|
96
|
-
- In /components/Layout/
|
|
73
|
+
- In /components/Layout/LayoutNavigation.tsx, remove the
|
|
97
74
|
`<DesktopNavBar>...</DesktopNavBar>` component.
|
|
98
75
|
|
|
99
76
|
<figure>
|
|
@@ -105,8 +82,8 @@ https://user-images.githubusercontent.com/1251986/154979091-89c72d68-c62f-451c-a
|
|
|
105
82
|
|
|
106
83
|
### Replace Search input with Search Fab
|
|
107
84
|
|
|
108
|
-
- In /components/Layout/
|
|
109
|
-
with:
|
|
85
|
+
- In /components/Layout/LayoutNavigation.tsx, replace
|
|
86
|
+
`<SearchLink href='/search' />` with:
|
|
110
87
|
|
|
111
88
|
```tsx
|
|
112
89
|
<PageLink href='/search' passHref>
|
|
@@ -121,8 +98,8 @@ https://user-images.githubusercontent.com/1251986/154979091-89c72d68-c62f-451c-a
|
|
|
121
98
|
|
|
122
99
|
### Remove Customer Service Fab
|
|
123
100
|
|
|
124
|
-
- In /components/Layout/
|
|
125
|
-
action button by removing it completely:
|
|
101
|
+
- In /components/Layout/LayoutNavigation.tsx, remove the Customer Service
|
|
102
|
+
floating action button by removing it completely:
|
|
126
103
|
|
|
127
104
|
```tsx
|
|
128
105
|
<PageLink href='/service' passHref>
|
|
@@ -141,7 +118,7 @@ https://user-images.githubusercontent.com/1251986/154979091-89c72d68-c62f-451c-a
|
|
|
141
118
|
|
|
142
119
|
### Make a local copy of the MenuFab component
|
|
143
120
|
|
|
144
|
-
- In /components/Layout/
|
|
121
|
+
- In /components/Layout/LayoutNavigation.tsx, remove `MenuFab` from the
|
|
145
122
|
`'@graphcommerce/next-ui'` import
|
|
146
123
|
- Add `import { MenuFab } from './MenuFab'` to the list of imports at the top of
|
|
147
124
|
the file
|
|
@@ -174,58 +151,6 @@ import React, { useEffect } from 'react'
|
|
|
174
151
|
<figcaption>Local copy of the MenuFab component with Fab scroll animation removed</figcaption>
|
|
175
152
|
</figure>
|
|
176
153
|
|
|
177
|
-
### Change the Menu component's styling
|
|
178
|
-
|
|
179
|
-
- In /components/Layout/MenuFab.tsx, change the `<Menu>` component's PaperProps
|
|
180
|
-
prop to:
|
|
181
|
-
|
|
182
|
-
```tsx
|
|
183
|
-
PaperProps={{
|
|
184
|
-
sx: (theme) => ({
|
|
185
|
-
width: '100vw',
|
|
186
|
-
height: '100vh',
|
|
187
|
-
maxWidth: '100vw',
|
|
188
|
-
maxHeight: '100vh',
|
|
189
|
-
backgroundColor: alpha(theme.palette.text.primary, 0.95),
|
|
190
|
-
color: theme.palette.background.paper,
|
|
191
|
-
display: 'flex',
|
|
192
|
-
justifyContent: 'center',
|
|
193
|
-
alignItems: 'center',
|
|
194
|
-
borderRadius: 0,
|
|
195
|
-
'& svg': {
|
|
196
|
-
color: theme.palette.background.paper,
|
|
197
|
-
},
|
|
198
|
-
}),
|
|
199
|
-
}}
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
- Remove the `<Menu>` component's prop 'disableScrollLock`
|
|
203
|
-
- Add a two props to the `<Menu>` component:
|
|
204
|
-
|
|
205
|
-
```tsx
|
|
206
|
-
marginThreshold={0}
|
|
207
|
-
TransitionComponent={Fade}
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
- Add the import of 'alpha' and 'Fade' to the list of the `'@mui/material'`
|
|
211
|
-
imports at the top of the file
|
|
212
|
-
- Remove the search component by removing:
|
|
213
|
-
|
|
214
|
-
```tsx
|
|
215
|
-
search ? (
|
|
216
|
-
<ListItem key='search' dense sx={{ mb: '6px', borderColor: 'red' }}>
|
|
217
|
-
{search}
|
|
218
|
-
</ListItem>
|
|
219
|
-
) : null,
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
<figure>
|
|
223
|
-
|
|
224
|
-

|
|
225
|
-
|
|
226
|
-
<figcaption>Menu component with custom styling</figcaption>
|
|
227
|
-
</figure>
|
|
228
|
-
|
|
229
154
|
## Next steps
|
|
230
155
|
|
|
231
156
|
- Learn how to [build pages](../getting-started/pages.md) in GraphCommerce
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/docs",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/docs",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce/docs",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.9.0",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
"@graphcommerce/prettier-config-pwa": "^4.0.6"
|
package/roadmap.md
CHANGED
|
@@ -10,21 +10,29 @@ The following overview contains the status of items on the GraphCommerce roadmap
|
|
|
10
10
|
## In progress
|
|
11
11
|
|
|
12
12
|
- [ ] Adyen payment service (Braintree, Mollie, already implemented)
|
|
13
|
-
- [ ]
|
|
14
|
-
- [ ]
|
|
13
|
+
- [ ] Core stability (hydratation, caching, query optimization)
|
|
14
|
+
- [ ] Multilingual product sitemap generation
|
|
15
|
+
|
|
16
|
+
## Just released
|
|
17
|
+
|
|
18
|
+
- [x] Multi level Navigation (Mega Menu)
|
|
19
|
+
- [x] Pick up in store checkout integration
|
|
20
|
+
- [x] Checkout shipping method selection rebuild
|
|
21
|
+
- [x] Checkout payment selection rebuild
|
|
15
22
|
|
|
16
23
|
## Planned
|
|
17
24
|
|
|
25
|
+
- [ ] Store locator
|
|
18
26
|
- [ ] Buckaroo payment service
|
|
19
27
|
- [ ] Multisafepay payment service
|
|
20
|
-
- [ ]
|
|
28
|
+
- [ ] Fetch Magento image sizes (probe-image-size)
|
|
21
29
|
- [ ] Postcode check integration
|
|
22
|
-
- [ ]
|
|
23
|
-
- [ ] Store locator
|
|
30
|
+
- [ ] Windows support
|
|
24
31
|
|
|
25
32
|
## Future
|
|
26
33
|
|
|
27
34
|
- [ ] `magento` example without GraphCMS
|
|
35
|
+
- [ ] PageBuilder support
|
|
28
36
|
|
|
29
37
|
## Next steps
|
|
30
38
|
|