@graphcommerce/docs 9.0.4-canary.0 → 9.0.4-canary.10

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,33 +1,33 @@
1
1
  # Change Log
2
2
 
3
- ## 9.0.4-canary.0
4
-
5
- ## 9.0.3
3
+ ## 9.0.4-canary.10
6
4
 
7
- ## 9.0.3-canary.0
5
+ ## 9.0.4-canary.9
8
6
 
9
- ## 9.0.2
7
+ ## 9.0.4-canary.8
10
8
 
11
- ## 9.0.2-canary.0
9
+ ## 9.0.4-canary.7
12
10
 
13
- ## 9.0.1
11
+ ## 9.0.4-canary.6
14
12
 
15
- ### Patch Changes
13
+ ## 9.0.4-canary.5
16
14
 
17
- - [#2461](https://github.com/graphcommerce-org/graphcommerce/pull/2461) [`7017b60`](https://github.com/graphcommerce-org/graphcommerce/commit/7017b608eb61097c881103c40701ab4a41197d7a) - Solve issue with documentation parsing markdown files as mdx ([@paales](https://github.com/paales))
15
+ ## 9.0.4-canary.4
18
16
 
19
- - [#2454](https://github.com/graphcommerce-org/graphcommerce/pull/2454) [`0f5267b`](https://github.com/graphcommerce-org/graphcommerce/commit/0f5267b92d8561e20164fe2f078097cb52220726) - Update VSCode guide reference ([@emmanuel-ferdman](https://github.com/emmanuel-ferdman))
17
+ ## 9.0.4-canary.3
20
18
 
21
- ## 9.0.1-canary.1
19
+ ## 9.0.4-canary.2
22
20
 
23
- ### Patch Changes
21
+ ## 9.0.4-canary.1
24
22
 
25
- - [#2461](https://github.com/graphcommerce-org/graphcommerce/pull/2461) [`7017b60`](https://github.com/graphcommerce-org/graphcommerce/commit/7017b608eb61097c881103c40701ab4a41197d7a) - Solve issue with documentation parsing markdown files as mdx ([@paales](https://github.com/paales))
23
+ ## 9.0.4-canary.0
26
24
 
27
- ## 9.0.1-canary.0
25
+ ## 9.0.1
28
26
 
29
27
  ### Patch Changes
30
28
 
29
+ - [#2461](https://github.com/graphcommerce-org/graphcommerce/pull/2461) [`7017b60`](https://github.com/graphcommerce-org/graphcommerce/commit/7017b608eb61097c881103c40701ab4a41197d7a) - Solve issue with documentation parsing markdown files as mdx ([@paales](https://github.com/paales))
30
+
31
31
  - [#2454](https://github.com/graphcommerce-org/graphcommerce/pull/2454) [`0f5267b`](https://github.com/graphcommerce-org/graphcommerce/commit/0f5267b92d8561e20164fe2f078097cb52220726) - Update VSCode guide reference ([@emmanuel-ferdman](https://github.com/emmanuel-ferdman))
32
32
 
33
33
  ## 9.0.0
package/feature-list.md CHANGED
@@ -203,7 +203,7 @@ Features taken from the Magento Commerce 2 Feature List
203
203
  - [x] Zoom-in on product images.
204
204
  - [ ] Display product videos from YouTube or Vimeo. — [Todo]
205
205
  - [x] Include swatches to show colors, fabrics, and more.
206
- - [ ] Show multiple products in a grouped view. — [Todo]
206
+ - [x] Show multiple products in a grouped view. — [Todo]
207
207
  - [x] Indicate stock availability.
208
208
  - [x] Set related products, up-sell, and cross-sell recommendations to increase
209
209
  average order value.
@@ -276,7 +276,7 @@ Features taken from the Magento Commerce 2 Feature List
276
276
  emails.
277
277
  - [x] Build customer relationships by creating newsletters and managing their
278
278
  distribution.
279
- - [ ] Connect with customers with a Contact Us form. — [Todo]
279
+ - [x] Connect with customers with a Contact Us form.
280
280
 
281
281
  ### Customer loyalty
282
282
 
@@ -305,10 +305,11 @@ Features taken from the Magento Commerce 2 Feature List
305
305
  - [x] Choose default billing and shipping addresses.
306
306
  - [x] Store unlimited addresses in the address book.
307
307
  - [x] See order status and history.
308
- - [ ] Re-order from the customer account. — [Todo]
308
+ - [x] Re-order from the customer account.
309
309
  - [x] View recently ordered items.
310
- - [ ] Track available store credits, gift card totals, and reward points. —
311
- [Commerce]
310
+ - [x] Track available store credits [Commerce]
311
+ - [ ] Track gift card totals — [Commerce]
312
+ - [ ] Track reward points — [Commerce]
312
313
  - [x] Manage newsletter subscriptions.
313
314
  - [x] View submitted product reviews.
314
315
  - [ ] Access downloadable/digital products. — [Todo]
@@ -251,6 +251,11 @@ The Google Tagmanager ID to be used on the site.
251
251
 
252
252
  This value is required even if you are configuring different values for each locale.
253
253
 
254
+ #### graphqlMeshEditMode: boolean = `false`
255
+
256
+ The GraphQL Mesh will be loaded once and any modifications to resolvers will be ignored. When developing
257
+ new resolvers this should be set to true.
258
+
254
259
  #### hygraphManagementApi: string
255
260
 
256
261
  Hygraph Management API. **Only used for migrations.**
package/framework/mesh.md CHANGED
@@ -27,7 +27,8 @@ To make modifications to the Mesh configuration, you can:
27
27
  ### Modify the meshrc.yaml:
28
28
 
29
29
  You can always modify the base configuration of the Mesh by modifying the
30
- `meshrc.yaml` file.
30
+ `meshrc.yaml` file. After making always run `yarn codegen` (this can be in a
31
+ separate terminal and nextjs will reload it).
31
32
 
32
33
  ### Write a plugin:
33
34
 
@@ -61,6 +62,33 @@ export const meshConfig: FunctionPlugin<typeof meshConfigBase> = (
61
62
  },
62
63
  },
63
64
  ],
65
+ additionalResolvers: [
66
+ ...(baseConfig.additionalResolvers ?? []),
67
+ 'lib/resolvers/my-feature.ts',
68
+ ],
64
69
  })
65
70
  }
66
71
  ```
72
+
73
+ ### Creating additional schema's
74
+
75
+ During development it might come in handy to write schema extensions even before
76
+ any backend work has been done. `AnyFile.graphqls` in the graphql directory will
77
+ automatically be picked up and merged with the rest of the schema.
78
+
79
+ ### Creating additional resolvers
80
+
81
+ In the plugin add additionalResolvers and point to your ts file where the
82
+ resolver is.
83
+
84
+ ```tsx
85
+ // This MUST be a type import, else there will be a circular dependency.
86
+ import type { Resolvers } from '@graphcommerce/graphql-mesh'
87
+
88
+ const resolvers: Resolvers = {}
89
+ ```
90
+
91
+ To make sure changes are picked up during development set the config value
92
+ `graphqlMeshEditMode: true` in your graphcommerce.config.js or set the env
93
+ variable `GC_GRAPHQL_MESH_EDIT_MODE=1`. This _will_ make the frontend
94
+ considerably slower.
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": "9.0.4-canary.0",
5
+ "version": "9.0.4-canary.10",
6
6
  "sideEffects": true,
7
7
  "peerDependencies": {
8
- "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.0"
8
+ "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.10"
9
9
  },
10
10
  "prettier": "@graphcommerce/prettier-config-pwa"
11
11
  }
package/roadmap.md CHANGED
@@ -24,6 +24,7 @@ roadmap.
24
24
  configurations that can be made to get a good starting point for your
25
25
  project.
26
26
  - [ ] Material UI 6 support with CSS variables.
27
+ - [ ] GraphCommerce Pro: Pagebuilder support
27
28
  - [ ] GraphCommerce Pro: Login as Customer functionality Magento module +
28
29
  GraphCommerce integration.
29
30
  - [ ] GraphCommerce Pro: Cache Notifier module + GraphCommerce Integration to
@@ -33,9 +34,6 @@ roadmap.
33
34
 
34
35
  - [ ] Mui 6 support with [pigment-css](https://github.com/mui/pigment-css)
35
36
  - [ ] Upgrade to React 19 + Next.js app router support.
36
-
37
- - [ ] GraphCommerce Pro: Pagebuilder support
38
- [depends on ↗](https://github.com/magento/magento2/issues/37768)
39
37
  - [ ] Adobe Commerce: Reward points functionality
40
38
  - [ ] Adobe Commerce: Gift wrapping functionality
41
39
  - [ ] Adobe Commerce: Gift card functionality
@@ -24,7 +24,7 @@ const MyPlugin: ReactPlugin<typeof OriginalComponent> = (props) => {
24
24
  export const Plugin = MyPlugin
25
25
  ```
26
26
 
27
- Now becomes:
27
+ With:
28
28
 
29
29
  ```tsx
30
30
  const MyPlugin = (props: PluginProps<OriginalComponentProps>) => {
@@ -37,8 +37,7 @@ export const Plugin = MyPlugin
37
37
  There is a new plugin configuration method by using
38
38
  `export config: PluginConfig = {}`.
39
39
 
40
- 2. linguiLocale now requires an explicit configuration where they differ from
41
- the locale
40
+ ## 2. `linguiLocale` now requires an explicit configuration where they differ from the locale
42
41
 
43
42
  > linguiLocale: Custom locale used to load the .po files. Must be a valid
44
43
  > locale, also used for Intl functions.
@@ -56,15 +55,15 @@ const config = {
56
55
  }
57
56
  ```
58
57
 
59
- 3. `@graphcommerce/graphcms-ui` is now `@graphcommerce/hygraph-ui`
58
+ ## 3. `@graphcommerce/graphcms-ui` is now `@graphcommerce/hygraph-ui`
60
59
 
61
60
  Replace all `@graphcommerce/graphcms-ui` with `@graphcommerce/hygraph-ui`.
62
61
 
63
- 4. `@ducanh2912/next-pwa` replaced by `serwist`
62
+ ## 4. `@ducanh2912/next-pwa` replaced by `serwist`
64
63
 
65
64
  Any customizations made to the service worker should
66
65
 
67
- 5. `next-sitemap` replaced by custom implementation.
66
+ ## 5. `next-sitemap` replaced by custom implementation.
68
67
 
69
68
  - pages/robots.txt.tsx
70
69
  - pages/sitemap/categories.xml.tsx