@graphcommerce/magento-newsletter 8.0.3-canary.3 → 8.1.0-canary.2
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,13 +1,6 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## 8.0
|
4
|
-
|
5
|
-
## 8.0.3-canary.2
|
6
|
-
|
7
|
-
### Patch Changes
|
8
|
-
|
9
|
-
- [#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.
|
10
|
-
([@paales](https://github.com/paales))
|
3
|
+
## 8.1.0-canary.2
|
11
4
|
|
12
5
|
## 8.0.3-canary.1
|
13
6
|
|
@@ -25,7 +25,8 @@ 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 =
|
28
|
+
const email =
|
29
|
+
useCartQuery(GetCartEmailDocument, { allowUrl: true }).data?.cart?.email ?? undefined
|
29
30
|
const form = useFormGqlMutation<
|
30
31
|
GuestNewsletterToggleMutation,
|
31
32
|
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)
|
20
|
+
const { data: cartData } = useCartQuery(GetCartEmailDocument, { allowUrl: true })
|
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.0
|
5
|
+
"version": "8.1.0-canary.2",
|
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.0
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^8.0
|
17
|
-
"@graphcommerce/graphql": "^8.0
|
18
|
-
"@graphcommerce/magento-cart": "^8.0
|
19
|
-
"@graphcommerce/magento-customer": "^8.0
|
20
|
-
"@graphcommerce/next-ui": "^8.0
|
21
|
-
"@graphcommerce/prettier-config-pwa": "^8.0
|
22
|
-
"@graphcommerce/react-hook-form": "^8.0
|
23
|
-
"@graphcommerce/typescript-config-pwa": "^8.0
|
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",
|
24
24
|
"@lingui/core": "^4.2.1",
|
25
25
|
"@lingui/macro": "^4.2.1",
|
26
26
|
"@lingui/react": "^4.2.1",
|