@graphcommerce/magento-cart 9.0.0-canary.59 → 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,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.60
4
+
3
5
  ## 9.0.0-canary.59
4
6
 
5
7
  ## 9.0.0-canary.58
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.59",
5
+ "version": "9.0.0-canary.60",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,20 +12,20 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.0.0-canary.59",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.59",
17
- "@graphcommerce/framer-next-pages": "^9.0.0-canary.59",
18
- "@graphcommerce/framer-scroller": "^9.0.0-canary.59",
19
- "@graphcommerce/framer-utils": "^9.0.0-canary.59",
20
- "@graphcommerce/graphql": "^9.0.0-canary.59",
21
- "@graphcommerce/image": "^9.0.0-canary.59",
22
- "@graphcommerce/magento-customer": "^9.0.0-canary.59",
23
- "@graphcommerce/magento-graphql": "^9.0.0-canary.59",
24
- "@graphcommerce/magento-store": "^9.0.0-canary.59",
25
- "@graphcommerce/next-ui": "^9.0.0-canary.59",
26
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.59",
27
- "@graphcommerce/react-hook-form": "^9.0.0-canary.59",
28
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.59",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.60",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.60",
17
+ "@graphcommerce/framer-next-pages": "^9.0.0-canary.60",
18
+ "@graphcommerce/framer-scroller": "^9.0.0-canary.60",
19
+ "@graphcommerce/framer-utils": "^9.0.0-canary.60",
20
+ "@graphcommerce/graphql": "^9.0.0-canary.60",
21
+ "@graphcommerce/image": "^9.0.0-canary.60",
22
+ "@graphcommerce/magento-customer": "^9.0.0-canary.60",
23
+ "@graphcommerce/magento-graphql": "^9.0.0-canary.60",
24
+ "@graphcommerce/magento-store": "^9.0.0-canary.60",
25
+ "@graphcommerce/next-ui": "^9.0.0-canary.60",
26
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.60",
27
+ "@graphcommerce/react-hook-form": "^9.0.0-canary.60",
28
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.60",
29
29
  "@lingui/core": "^4.2.1",
30
30
  "@lingui/macro": "^4.2.1",
31
31
  "@lingui/react": "^4.2.1",
@@ -1,14 +1,16 @@
1
1
  import { useApolloClient } from '@graphcommerce/graphql'
2
- import type { useSignInForm } from '@graphcommerce/magento-customer'
3
- import type { MethodPlugin } from '@graphcommerce/next-config'
2
+ import type { useSignInForm as useSignInFormType } from '@graphcommerce/magento-customer'
3
+ import type { FunctionPlugin, PluginConfig } from '@graphcommerce/next-config'
4
4
  import { cartLock, readCartId, useAssignCurrentCartId } from '../hooks'
5
5
  import { CustomerCartDocument } from '../hooks/CustomerCart.gql'
6
6
  import { MergeCartsDocument } from '../hooks/MergeCarts.gql'
7
7
 
8
- export const func = 'useSignInForm'
9
- export const exported = '@graphcommerce/magento-customer'
8
+ export const config: PluginConfig = {
9
+ type: 'function',
10
+ module: '@graphcommerce/magento-customer',
11
+ }
10
12
 
11
- const useSignInFormMergeCart: MethodPlugin<typeof useSignInForm> = (useSignInForm, options) => {
13
+ export const useSignInForm: FunctionPlugin<typeof useSignInFormType> = (useSignInForm, options) => {
12
14
  const client = useApolloClient()
13
15
  const assignCurrentCartId = useAssignCurrentCartId()
14
16
 
@@ -47,5 +49,3 @@ const useSignInFormMergeCart: MethodPlugin<typeof useSignInForm> = (useSignInFor
47
49
  },
48
50
  })
49
51
  }
50
-
51
- export const plugin = useSignInFormMergeCart