@graphcommerce/magento-newsletter 8.1.0-canary.2 → 8.1.0-canary.3

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.1.0-canary.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2205](https://github.com/graphcommerce-org/graphcommerce/pull/2205) [`d67c89d`](https://github.com/graphcommerce-org/graphcommerce/commit/d67c89d464a60f0e2618dab670b63a39f6291341) - Deprecate the allowUrl option for useCartQuery, it was already enabled by default and should never be set to false.
8
+ ([@paales](https://github.com/paales))
9
+
3
10
  ## 8.1.0-canary.2
4
11
 
5
12
  ## 8.0.3-canary.1
@@ -25,8 +25,7 @@ export type GuestNewsletterToggleProps = SwitchProps & { sx?: SxProps<Theme> }
25
25
  export function GuestNewsletterToggle(props: GuestNewsletterToggleProps) {
26
26
  const { sx = [], ...switchProps } = props
27
27
 
28
- const email =
29
- useCartQuery(GetCartEmailDocument, { allowUrl: true }).data?.cart?.email ?? undefined
28
+ const email = useCartQuery(GetCartEmailDocument).data?.cart?.email ?? undefined
30
29
  const form = useFormGqlMutation<
31
30
  GuestNewsletterToggleMutation,
32
31
  GuestNewsletterToggleMutationVariables & { isSubscribed?: boolean }
@@ -17,7 +17,7 @@ const { withState } = extendableComponent<OwnerState, typeof name, typeof parts>
17
17
 
18
18
  export function SignupNewsletter(props: SignupNewsletterProps) {
19
19
  const { sx = [] } = props
20
- const { data: cartData } = useCartQuery(GetCartEmailDocument, { allowUrl: true })
20
+ const { data: cartData } = useCartQuery(GetCartEmailDocument)
21
21
  const { loggedIn } = useCustomerSession()
22
22
 
23
23
  const classes = withState({ loggedIn })
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-newsletter",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "8.1.0-canary.2",
5
+ "version": "8.1.0-canary.3",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,15 +12,15 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^8.1.0-canary.2",
16
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.2",
17
- "@graphcommerce/graphql": "^8.1.0-canary.2",
18
- "@graphcommerce/magento-cart": "^8.1.0-canary.2",
19
- "@graphcommerce/magento-customer": "^8.1.0-canary.2",
20
- "@graphcommerce/next-ui": "^8.1.0-canary.2",
21
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.2",
22
- "@graphcommerce/react-hook-form": "^8.1.0-canary.2",
23
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.2",
15
+ "@graphcommerce/ecommerce-ui": "^8.1.0-canary.3",
16
+ "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.3",
17
+ "@graphcommerce/graphql": "^8.1.0-canary.3",
18
+ "@graphcommerce/magento-cart": "^8.1.0-canary.3",
19
+ "@graphcommerce/magento-customer": "^8.1.0-canary.3",
20
+ "@graphcommerce/next-ui": "^8.1.0-canary.3",
21
+ "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.3",
22
+ "@graphcommerce/react-hook-form": "^8.1.0-canary.3",
23
+ "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.3",
24
24
  "@lingui/core": "^4.2.1",
25
25
  "@lingui/macro": "^4.2.1",
26
26
  "@lingui/react": "^4.2.1",