@graphcommerce/docs 6.0.2-canary.9 → 6.1.1-canary.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 +34 -0
- package/framework/config.md +1 -1
- package/framework/graphcms.md +3 -2
- package/framework/plugins-graphql.md +1 -1
- package/framework/plugins-react.md +6 -6
- package/framework/theming.md +3 -3
- package/getting-started/pages.md +1 -1
- package/package.json +2 -2
- package/upgrading/graphcommerce-5-to-6.md +1 -1
- package/upgrading/readme.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.1.1-canary.0
|
|
4
|
+
|
|
5
|
+
## 6.1.0
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#1876](https://github.com/graphcommerce-org/graphcommerce/pull/1876) [`8dffc59c0`](https://github.com/graphcommerce-org/graphcommerce/commit/8dffc59c04bf6f2a6000b73db13592e10afd936c) - Added an configuration `wishlistShowFeedbackMessage` to show a feedback message when a product is added to the wishlist. ([@paales](https://github.com/paales))
|
|
10
|
+
|
|
11
|
+
## 6.0.2-canary.22
|
|
12
|
+
|
|
13
|
+
## 6.0.2-canary.21
|
|
14
|
+
|
|
15
|
+
## 6.0.2-canary.20
|
|
16
|
+
|
|
17
|
+
## 6.0.2-canary.19
|
|
18
|
+
|
|
19
|
+
## 6.0.2-canary.18
|
|
20
|
+
|
|
21
|
+
## 6.0.2-canary.17
|
|
22
|
+
|
|
23
|
+
## 6.0.2-canary.16
|
|
24
|
+
|
|
25
|
+
## 6.0.2-canary.15
|
|
26
|
+
|
|
27
|
+
## 6.0.2-canary.14
|
|
28
|
+
|
|
29
|
+
## 6.0.2-canary.13
|
|
30
|
+
|
|
31
|
+
## 6.0.2-canary.12
|
|
32
|
+
|
|
33
|
+
## 6.0.2-canary.11
|
|
34
|
+
|
|
35
|
+
## 6.0.2-canary.10
|
|
36
|
+
|
|
3
37
|
## 6.0.2-canary.9
|
|
4
38
|
|
|
5
39
|
## 6.0.2-canary.8
|
package/framework/config.md
CHANGED
|
@@ -189,7 +189,7 @@ Hide the wishlist functionality for guests.
|
|
|
189
189
|
|
|
190
190
|
#### `wishlistIgnoreProductWishlistStatus: Boolean`
|
|
191
191
|
|
|
192
|
-
Ignores
|
|
192
|
+
Ignores whether a product is already in the wishlist, makes the toggle an add only.
|
|
193
193
|
|
|
194
194
|
#### `wishlistShowFeedbackMessage: Boolean`
|
|
195
195
|
|
package/framework/graphcms.md
CHANGED
|
@@ -19,9 +19,10 @@ by adding Hygraph content to pages.
|
|
|
19
19
|
To connect your GraphCommerce app to your Hygraph project, you'll need a Hygraph
|
|
20
20
|
project with the required schema.
|
|
21
21
|
[Clone the demo Hygraph project ↗](https://app.graphcms.com/clone/caddaa93cfa9436a9e76ae9c0F34d257)
|
|
22
|
-
as your starting point. Update the variable in the
|
|
22
|
+
as your starting point. Update the variable in the `/graphcommerce.config.js`
|
|
23
|
+
file:
|
|
23
24
|
|
|
24
|
-
`
|
|
25
|
+
`hygraphEndpoint: ''`
|
|
25
26
|
Hygraph API URL. Once logged in, copy it from Project Settings > Api Access >
|
|
26
27
|
Content API
|
|
27
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Plugins GraphQL
|
|
2
2
|
|
|
3
3
|
GraphCommerce's GraphQL plugin system allows you to extend GraphCommerce in a
|
|
4
|
-
plug-and-play manner. Install a new package and the queries will be
|
|
4
|
+
plug-and-play manner. Install a new package and the queries will be extended at
|
|
5
5
|
the right places.
|
|
6
6
|
|
|
7
7
|
## What problem are we solving?
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Plugins React
|
|
2
2
|
|
|
3
|
-
GraphCommerce's React plugin system allows you to extend GraphCommerce's
|
|
4
|
-
in components with your own logic.
|
|
3
|
+
GraphCommerce's React plugin system allows you to extend GraphCommerce's
|
|
4
|
+
built-in components with your own logic.
|
|
5
5
|
|
|
6
6
|
- No runtime overhead: The plugin system is fully implemented in webpack and
|
|
7
7
|
- Easy plugin creation: Configuration should happen in the plugin file, not a
|
|
@@ -18,8 +18,8 @@ no performance penalty.
|
|
|
18
18
|
|
|
19
19
|
## How do I write a plugin?
|
|
20
20
|
|
|
21
|
-
In this example we're going to add
|
|
22
|
-
the demo on
|
|
21
|
+
In this example we're going to add some text to list items, just like the text
|
|
22
|
+
‘BY GC’ that can seen in the demo on
|
|
23
23
|
[category pages](https://graphcommerce.vercel.app/nl/women/business).
|
|
24
24
|
|
|
25
25
|
1. Create a new file in `/plugins/ProductListItemByGC.tsx` with the following
|
|
@@ -119,7 +119,7 @@ The Webpack plugin statically analyses the plugin file to find `component`,
|
|
|
119
119
|
|
|
120
120
|
### Possible use cases
|
|
121
121
|
|
|
122
|
-
In the examples above we've extended the
|
|
122
|
+
In the examples above we've extended the product list items, but it should also
|
|
123
123
|
work for other things such as:
|
|
124
124
|
|
|
125
125
|
- Googletagmanager
|
|
@@ -133,7 +133,7 @@ work for other things such as:
|
|
|
133
133
|
### Conditionally include a plugin
|
|
134
134
|
|
|
135
135
|
Provide an ifConfig export in the plugin that will only include the plugin if a
|
|
136
|
-
[configuration](./config.md) value is
|
|
136
|
+
[configuration](./config.md) value is truthy.
|
|
137
137
|
|
|
138
138
|
```tsx
|
|
139
139
|
import type { IfConfig } from '@graphcommerce/next-config'
|
package/framework/theming.md
CHANGED
|
@@ -34,7 +34,7 @@ and text colors. Save the file to see your changes updated in real-time:
|
|
|
34
34
|
},
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
You can search through your codebase to discover which
|
|
37
|
+
You can search through your codebase to discover which components will be
|
|
38
38
|
affected by your changes. For example, search for occurrences of
|
|
39
39
|
`theme.palette.primary.main`.
|
|
40
40
|
|
|
@@ -62,7 +62,7 @@ Most components have props that define their look and feel. Most common are the
|
|
|
62
62
|
[MUI Button documentation ↗](https://mui.com/components/buttons/)
|
|
63
63
|
- To learn which options are accepted by a prop, refer to the component's API:
|
|
64
64
|
[MUI Button API ↗](https://mui.com/api/button/). You can also use your IDE's
|
|
65
|
-
suggestions functionality. For [VS Code's](../
|
|
65
|
+
suggestions functionality. For [VS Code's](../framework/vscode.md)
|
|
66
66
|
IntelliSense feature, type Ctrl+Space.
|
|
67
67
|
- It can be helpful to learn how a component is styled, for example, to explore
|
|
68
68
|
how palette variables are used. Refer to the
|
|
@@ -145,7 +145,7 @@ To overwrite a component's hover state, add the sx prop:
|
|
|
145
145
|
<Button
|
|
146
146
|
color='primary'
|
|
147
147
|
variant='contained'
|
|
148
|
-
sx={{ '
|
|
148
|
+
sx={{ '&:hover': { background: 'green' } }}
|
|
149
149
|
>
|
|
150
150
|
<Trans>Contact Us</Trans>
|
|
151
151
|
</Button>
|
package/getting-started/pages.md
CHANGED
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "@graphcommerce/docs",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/docs",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce/docs",
|
|
5
|
-
"version": "6.
|
|
5
|
+
"version": "6.1.1-canary.0",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "6.
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "6.1.1-canary.0"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|
|
@@ -11,7 +11,7 @@ regular [upgrade steps first](./readme.md).
|
|
|
11
11
|
## Migrating to graphcommerce.config.js
|
|
12
12
|
|
|
13
13
|
GraphCommerce 6 uses a new [configuration file](../framework/config.md) called
|
|
14
|
-
`graphcommerce.config.js` this replaces the current configuration. When
|
|
14
|
+
`graphcommerce.config.js` this replaces the current configuration. When starting
|
|
15
15
|
a dev server, GraphCommerce will notify you how to migrate your env variables to
|
|
16
16
|
graphcommerce.config.js.
|
|
17
17
|
|
package/upgrading/readme.md
CHANGED
|
@@ -80,7 +80,7 @@ packages:
|
|
|
80
80
|
|
|
81
81
|
### Resolving diff issues
|
|
82
82
|
|
|
83
|
-
When you run `git apply ...` (step
|
|
83
|
+
When you run `git apply ...` (step 5), git will try and apply all the diffs from
|
|
84
84
|
the patch file to your project files. When applying a diff fails, a
|
|
85
85
|
[reject ↗](https://git-scm.com/docs/git-apply#Documentation/git-apply.txt---reject)
|
|
86
86
|
`.rej` file will be created for _each_ file that could not be upgraded.
|