@graphcommerce/graphcms-ui 9.0.0-canary.58 → 9.0.0-canary.60

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,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.60
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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))
8
+
9
+ ## 9.0.0-canary.59
10
+
3
11
  ## 9.0.0-canary.58
4
12
 
5
13
  ## 9.0.0-canary.57
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.58",
5
+ "version": "9.0.0-canary.60",
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.58",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.58",
17
- "@graphcommerce/graphql": "^9.0.0-canary.58",
18
- "@graphcommerce/image": "^9.0.0-canary.58",
19
- "@graphcommerce/next-ui": "^9.0.0-canary.58",
20
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.58",
21
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.58",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.60",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.60",
17
+ "@graphcommerce/graphql": "^9.0.0-canary.60",
18
+ "@graphcommerce/image": "^9.0.0-canary.60",
19
+ "@graphcommerce/next-ui": "^9.0.0-canary.60",
20
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.60",
21
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.60",
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 func = 'graphqlConfig'
5
- export const exported = '@graphcommerce/graphql'
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 hygraphGraphqlConfig: FunctionPlugin<typeof graphqlConfig> = (prev, config) => {
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