@graphcommerce/magento-customer 10.0.4-canary.1 → 10.1.0-canary.4
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,15 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 10.1.0-canary.4
|
|
4
|
+
|
|
5
|
+
## 10.1.0-canary.3
|
|
6
|
+
|
|
7
|
+
## 10.0.4-canary.2
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#2598](https://github.com/graphcommerce-org/graphcommerce/pull/2598) [`fa1eeae`](https://github.com/graphcommerce-org/graphcommerce/commit/fa1eeaeb10db1d465dd0f7a07d643862921c3c04) - Override signup props and update strings ([@paales](https://github.com/paales))
|
|
12
|
+
|
|
3
13
|
## 10.0.4-canary.1
|
|
4
14
|
|
|
5
15
|
## 10.0.4-canary.0
|
|
@@ -30,13 +30,34 @@ import { SignUpForm } from '../SignUpForm/SignUpForm'
|
|
|
30
30
|
export type AccountSignInUpFormProps = {
|
|
31
31
|
sx?: SxProps<Theme>
|
|
32
32
|
signUpDisabled?: React.ReactNode
|
|
33
|
+
/** Override the title shown in the initial email step */
|
|
34
|
+
emailTitle?: React.ReactNode
|
|
35
|
+
/** Override the subtitle shown in the initial email step */
|
|
36
|
+
emailSubtitle?: React.ReactNode
|
|
37
|
+
/** Override the title shown in the sign-in step */
|
|
38
|
+
signInTitle?: React.ReactNode
|
|
39
|
+
/** Override the subtitle shown in the sign-in step */
|
|
40
|
+
signInSubtitle?: React.ReactNode
|
|
41
|
+
/** Override the title shown in the sign-up step */
|
|
42
|
+
signUpTitle?: React.ReactNode
|
|
43
|
+
/** Override the subtitle shown in the sign-up step */
|
|
44
|
+
signUpSubtitle?: React.ReactNode
|
|
33
45
|
}
|
|
34
46
|
|
|
35
47
|
const parts = ['root', 'titleContainer'] as const
|
|
36
48
|
const { classes } = extendableComponent('AccountSignInUpForm', parts)
|
|
37
49
|
|
|
38
50
|
export function AccountSignInUpForm(props: AccountSignInUpFormProps) {
|
|
39
|
-
const {
|
|
51
|
+
const {
|
|
52
|
+
sx = [],
|
|
53
|
+
signUpDisabled,
|
|
54
|
+
emailTitle,
|
|
55
|
+
emailSubtitle,
|
|
56
|
+
signInTitle,
|
|
57
|
+
signInSubtitle,
|
|
58
|
+
signUpTitle,
|
|
59
|
+
signUpSubtitle,
|
|
60
|
+
} = props
|
|
40
61
|
const customerEmailQuery = useCustomerQuery(UseCustomerValidateTokenDocument)
|
|
41
62
|
const customerQuery = useCustomerQuery(CustomerDocument)
|
|
42
63
|
|
|
@@ -69,10 +90,10 @@ export function AccountSignInUpForm(props: AccountSignInUpFormProps) {
|
|
|
69
90
|
{mode === 'email' && (
|
|
70
91
|
<>
|
|
71
92
|
<LayoutTitle variant='h2' gutterBottom={false}>
|
|
72
|
-
<Trans>Sign in or create an account!</Trans>
|
|
93
|
+
{emailTitle ?? <Trans>Sign in or create an account!</Trans>}
|
|
73
94
|
</LayoutTitle>
|
|
74
95
|
<Typography variant='h6' align='center'>
|
|
75
|
-
<Trans>Fill in your e-mail to login or create an account</Trans>
|
|
96
|
+
{emailSubtitle ?? <Trans>Fill in your e-mail to login or create an account</Trans>}
|
|
76
97
|
</Typography>
|
|
77
98
|
</>
|
|
78
99
|
)}
|
|
@@ -80,10 +101,10 @@ export function AccountSignInUpForm(props: AccountSignInUpFormProps) {
|
|
|
80
101
|
{(mode === 'signin' || (mode === 'signup' && !canSignUp)) && (
|
|
81
102
|
<>
|
|
82
103
|
<LayoutTitle variant='h2' gutterBottom={false}>
|
|
83
|
-
<Trans>Sign in</Trans>
|
|
104
|
+
{signInTitle ?? <Trans>Sign in</Trans>}
|
|
84
105
|
</LayoutTitle>
|
|
85
106
|
<Typography variant='h6' align='center'>
|
|
86
|
-
<Trans>Fill in your password</Trans>
|
|
107
|
+
{signInSubtitle ?? <Trans>Fill in your password</Trans>}
|
|
87
108
|
</Typography>
|
|
88
109
|
</>
|
|
89
110
|
)}
|
|
@@ -91,10 +112,10 @@ export function AccountSignInUpForm(props: AccountSignInUpFormProps) {
|
|
|
91
112
|
{mode === 'signup' && canSignUp && (
|
|
92
113
|
<>
|
|
93
114
|
<LayoutTitle variant='h2' gutterBottom={false}>
|
|
94
|
-
<Trans>Create account!</Trans>
|
|
115
|
+
{signUpTitle ?? <Trans>Create account!</Trans>}
|
|
95
116
|
</LayoutTitle>
|
|
96
117
|
<Typography variant='h6' align='center'>
|
|
97
|
-
<Trans>
|
|
118
|
+
{signUpSubtitle ?? <Trans>Enter your details to create your account</Trans>}
|
|
98
119
|
</Typography>
|
|
99
120
|
</>
|
|
100
121
|
)}
|
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
|
|
5
|
+
"version": "10.1.0-canary.4",
|
|
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
|
|
25
|
-
"@graphcommerce/eslint-config-pwa": "^10.0
|
|
26
|
-
"@graphcommerce/framer-next-pages": "^10.0
|
|
27
|
-
"@graphcommerce/framer-utils": "^10.0
|
|
28
|
-
"@graphcommerce/graphql": "^10.0
|
|
29
|
-
"@graphcommerce/graphql-mesh": "^10.0
|
|
30
|
-
"@graphcommerce/image": "^10.0
|
|
31
|
-
"@graphcommerce/magento-graphql": "^10.0
|
|
32
|
-
"@graphcommerce/magento-store": "^10.0
|
|
33
|
-
"@graphcommerce/next-config": "^10.0
|
|
34
|
-
"@graphcommerce/next-ui": "^10.0
|
|
35
|
-
"@graphcommerce/prettier-config-pwa": "^10.0
|
|
36
|
-
"@graphcommerce/react-hook-form": "^10.0
|
|
37
|
-
"@graphcommerce/typescript-config-pwa": "^10.0
|
|
24
|
+
"@graphcommerce/ecommerce-ui": "^10.1.0-canary.4",
|
|
25
|
+
"@graphcommerce/eslint-config-pwa": "^10.1.0-canary.4",
|
|
26
|
+
"@graphcommerce/framer-next-pages": "^10.1.0-canary.4",
|
|
27
|
+
"@graphcommerce/framer-utils": "^10.1.0-canary.4",
|
|
28
|
+
"@graphcommerce/graphql": "^10.1.0-canary.4",
|
|
29
|
+
"@graphcommerce/graphql-mesh": "^10.1.0-canary.4",
|
|
30
|
+
"@graphcommerce/image": "^10.1.0-canary.4",
|
|
31
|
+
"@graphcommerce/magento-graphql": "^10.1.0-canary.4",
|
|
32
|
+
"@graphcommerce/magento-store": "^10.1.0-canary.4",
|
|
33
|
+
"@graphcommerce/next-config": "^10.1.0-canary.4",
|
|
34
|
+
"@graphcommerce/next-ui": "^10.1.0-canary.4",
|
|
35
|
+
"@graphcommerce/prettier-config-pwa": "^10.1.0-canary.4",
|
|
36
|
+
"@graphcommerce/react-hook-form": "^10.1.0-canary.4",
|
|
37
|
+
"@graphcommerce/typescript-config-pwa": "^10.1.0-canary.4",
|
|
38
38
|
"@lingui/core": "^5",
|
|
39
39
|
"@lingui/macro": "^5",
|
|
40
40
|
"@lingui/react": "^5",
|