@graphcommerce/magento-customer 10.0.1-canary.3 → 10.0.1-canary.5
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
|
+
## 10.0.1-canary.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5166a95`](https://github.com/graphcommerce-org/graphcommerce/commit/5166a958d7a2c8d879f56a4585b874de7625f728) - Solve issue where the GuestOrCustomerMask would hide incorrectly ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
9
|
+
## 10.0.1-canary.4
|
|
10
|
+
|
|
3
11
|
## 10.0.1-canary.3
|
|
4
12
|
|
|
5
13
|
## 10.0.1-canary.2
|
|
@@ -17,27 +17,18 @@ export function GuestOrCustomerMask(props: CustomerGuestMaskProps) {
|
|
|
17
17
|
const { mask } = usePrivateQueryMask()
|
|
18
18
|
const { loggedIn } = useCustomerSession()
|
|
19
19
|
|
|
20
|
+
// When not masking, we know the actual state - render directly without CSS hiding
|
|
21
|
+
if (!mask) return <>{loggedIn ? loggedInContent : loggedOutContent}</>
|
|
22
|
+
|
|
20
23
|
return (
|
|
21
24
|
<>
|
|
22
|
-
{
|
|
23
|
-
<Box
|
|
24
|
-
sx={{
|
|
25
|
-
display: 'contents',
|
|
26
|
-
'&:empty': { display: 'none' },
|
|
27
|
-
[cssFlag('private-query')]: { display: 'none' },
|
|
28
|
-
}}
|
|
29
|
-
>
|
|
25
|
+
{loggedOutContent && (
|
|
26
|
+
<Box sx={{ display: 'contents', [cssFlag('private-query')]: { display: 'none' } }}>
|
|
30
27
|
{loggedOutContent}
|
|
31
28
|
</Box>
|
|
32
29
|
)}
|
|
33
|
-
<Box
|
|
34
|
-
|
|
35
|
-
display: 'contents',
|
|
36
|
-
'&:empty': { display: 'none' },
|
|
37
|
-
[cssNotFlag('private-query')]: { display: 'none' },
|
|
38
|
-
}}
|
|
39
|
-
>
|
|
40
|
-
{mask ? skeleton : loggedIn ? loggedInContent : loggedOutContent}
|
|
30
|
+
<Box sx={{ display: 'contents', [cssNotFlag('private-query')]: { display: 'none' } }}>
|
|
31
|
+
{skeleton}
|
|
41
32
|
</Box>
|
|
42
33
|
</>
|
|
43
34
|
)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-customer",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "10.0.1-canary.
|
|
5
|
+
"version": "10.0.1-canary.5",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"./plugins/magentoCustomerPrivateQueryContext": "./plugins/magentoCustomerPrivateQueryContext.ts"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@graphcommerce/ecommerce-ui": "^10.0.1-canary.
|
|
25
|
-
"@graphcommerce/eslint-config-pwa": "^10.0.1-canary.
|
|
26
|
-
"@graphcommerce/framer-next-pages": "^10.0.1-canary.
|
|
27
|
-
"@graphcommerce/framer-utils": "^10.0.1-canary.
|
|
28
|
-
"@graphcommerce/graphql": "^10.0.1-canary.
|
|
29
|
-
"@graphcommerce/graphql-mesh": "^10.0.1-canary.
|
|
30
|
-
"@graphcommerce/image": "^10.0.1-canary.
|
|
31
|
-
"@graphcommerce/magento-graphql": "^10.0.1-canary.
|
|
32
|
-
"@graphcommerce/magento-store": "^10.0.1-canary.
|
|
33
|
-
"@graphcommerce/next-config": "^10.0.1-canary.
|
|
34
|
-
"@graphcommerce/next-ui": "^10.0.1-canary.
|
|
35
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.1-canary.
|
|
36
|
-
"@graphcommerce/react-hook-form": "^10.0.1-canary.
|
|
37
|
-
"@graphcommerce/typescript-config-pwa": "^10.0.1-canary.
|
|
24
|
+
"@graphcommerce/ecommerce-ui": "^10.0.1-canary.5",
|
|
25
|
+
"@graphcommerce/eslint-config-pwa": "^10.0.1-canary.5",
|
|
26
|
+
"@graphcommerce/framer-next-pages": "^10.0.1-canary.5",
|
|
27
|
+
"@graphcommerce/framer-utils": "^10.0.1-canary.5",
|
|
28
|
+
"@graphcommerce/graphql": "^10.0.1-canary.5",
|
|
29
|
+
"@graphcommerce/graphql-mesh": "^10.0.1-canary.5",
|
|
30
|
+
"@graphcommerce/image": "^10.0.1-canary.5",
|
|
31
|
+
"@graphcommerce/magento-graphql": "^10.0.1-canary.5",
|
|
32
|
+
"@graphcommerce/magento-store": "^10.0.1-canary.5",
|
|
33
|
+
"@graphcommerce/next-config": "^10.0.1-canary.5",
|
|
34
|
+
"@graphcommerce/next-ui": "^10.0.1-canary.5",
|
|
35
|
+
"@graphcommerce/prettier-config-pwa": "^10.0.1-canary.5",
|
|
36
|
+
"@graphcommerce/react-hook-form": "^10.0.1-canary.5",
|
|
37
|
+
"@graphcommerce/typescript-config-pwa": "^10.0.1-canary.5",
|
|
38
38
|
"@lingui/core": "^5",
|
|
39
39
|
"@lingui/macro": "^5",
|
|
40
40
|
"@lingui/react": "^5",
|