@graphcommerce/docs 4.8.0 → 4.9.1

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,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1656](https://github.com/graphcommerce-org/graphcommerce/pull/1656) [`4ad159784`](https://github.com/graphcommerce-org/graphcommerce/commit/4ad15978407f46574bf6ec561a2f50d6e39138cd) Thanks [@Jessevdpoel](https://github.com/Jessevdpoel)! - Added yarn codegen step to docs
8
+
9
+ ## 4.9.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#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
14
+
3
15
  ## 4.8.0
4
16
 
5
17
  ### Minor Changes
@@ -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 <Trans>
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
@@ -114,6 +114,8 @@ relationship between the Banner model and the Content field of the Page model.
114
114
 
115
115
  ### Validate GraphQL Schema
116
116
 
117
+ - Go to your local environment and run `yarn codegen`, this ensures the changes
118
+ you just made are added to your local environment.
117
119
  - To validate the addition of the Banner model and the relation with the Page
118
120
  model Content field, try out the following GraphQL query in your local GraphQL
119
121
  endpoint (running at http://localhost:3000/api/graphql):
@@ -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/LayoutFull.tsx, move `<Logo />` after
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/LayoutFull.tsx, remove the
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/LayoutFull.tsx, replace `<SearchLink href='/search' />`
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/LayoutFull.tsx, remove the Customer Service floating
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/LayoutFull.tsx, remove `MenuFab` from the
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
- ![Menu component with custom styling](https://user-images.githubusercontent.com/1251986/157832794-711774b6-8bde-4166-bec7-d2de542fc184.png)
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.8.0",
5
+ "version": "4.9.1",
6
6
  "sideEffects": true,
7
7
  "devDependencies": {
8
8
  "@graphcommerce/prettier-config-pwa": "^4.0.6"