@graphcommerce/graphcms-ui 9.0.0-canary.59 → 9.0.0-canary.61
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 +8 -0
- package/package.json +8 -8
- package/plugins/hygraphGraphqlConfig.ts +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.61
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.60
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#2331](https://github.com/graphcommerce-org/graphcommerce/pull/2331) [`702bfc9`](https://github.com/graphcommerce-org/graphcommerce/commit/702bfc93566c9745546988e57988431d5d4d8cb0) - Moved plugins to new format ([@paales](https://github.com/paales))
|
|
10
|
+
|
|
3
11
|
## 9.0.0-canary.59
|
|
4
12
|
|
|
5
13
|
## 9.0.0-canary.58
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/graphcms-ui",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.61",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
17
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
|
18
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
|
19
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
|
20
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
21
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.61",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.61",
|
|
17
|
+
"@graphcommerce/graphql": "^9.0.0-canary.61",
|
|
18
|
+
"@graphcommerce/image": "^9.0.0-canary.61",
|
|
19
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.61",
|
|
20
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.61",
|
|
21
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.61",
|
|
22
22
|
"@mui/material": "^5.10.16",
|
|
23
23
|
"next": "*",
|
|
24
24
|
"react": "^18.2.0",
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { graphqlConfig, setContext } from '@graphcommerce/graphql'
|
|
2
|
-
import type { FunctionPlugin } from '@graphcommerce/next-config'
|
|
1
|
+
import { graphqlConfig as graphqlConfigType, setContext } from '@graphcommerce/graphql'
|
|
2
|
+
import type { FunctionPlugin, PluginConfig } from '@graphcommerce/next-config'
|
|
3
3
|
|
|
4
|
-
export const
|
|
5
|
-
|
|
4
|
+
export const config: PluginConfig = {
|
|
5
|
+
type: 'function',
|
|
6
|
+
module: '@graphcommerce/graphql',
|
|
7
|
+
}
|
|
6
8
|
|
|
7
9
|
declare module '@graphcommerce/graphql/config' {
|
|
8
10
|
interface PreviewData {
|
|
@@ -10,7 +12,7 @@ declare module '@graphcommerce/graphql/config' {
|
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
const
|
|
15
|
+
export const graphqlConfig: FunctionPlugin<typeof graphqlConfigType> = (prev, config) => {
|
|
14
16
|
const results = prev(config)
|
|
15
17
|
|
|
16
18
|
const locales = config.storefront.hygraphLocales
|
|
@@ -31,5 +33,3 @@ const hygraphGraphqlConfig: FunctionPlugin<typeof graphqlConfig> = (prev, config
|
|
|
31
33
|
|
|
32
34
|
return { ...results, links: [...results.links, hygraphLink] }
|
|
33
35
|
}
|
|
34
|
-
|
|
35
|
-
export const plugin = hygraphGraphqlConfig
|