@atzentis/auth-expo 0.2.0 → 0.3.0

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,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#10](https://github.com/atzentis/auth-sdk/pull/10) [`e122c25`](https://github.com/atzentis/auth-sdk/commit/e122c2577ba2212b96b9743de6727124417deb16) Thanks [@vassilibo](https://github.com/vassilibo)! - Fix form field labels that incorrectly used `*_PLACEHOLDER` localization keys as visible labels.
8
+
9
+ - Add dedicated label keys `PHONE_NUMBER` (auth) and `BACKUP_CODE` (two-factor) to `@atzentis/auth-locales`, with EN/DE/EL values.
10
+ - React: phone-login, signup, recover-account, and two-factor forms now render the proper label key instead of the placeholder key.
11
+ - Expo: signup, forgot-password, and magic-link screens now use the bare label key for the `label` prop while keeping the `*_PLACEHOLDER` key as the input `placeholder`.
12
+
13
+ No public API change. Visible labels are corrected; placeholder text is unchanged.
14
+
15
+ - [#10](https://github.com/atzentis/auth-sdk/pull/10) [`e7b5c17`](https://github.com/atzentis/auth-sdk/commit/e7b5c1730b9709c38530a6f705abaea3bc9151f0) Thanks [@vassilibo](https://github.com/vassilibo)! - Use an "Email or username" label for the sign-in identity field.
16
+
17
+ - Add `EMAIL_OR_USERNAME` key to `@atzentis/auth-locales` (EN/DE/EL).
18
+ - React `LoginForm` and Expo login screen now label the identity field with `EMAIL_OR_USERNAME` instead of `EMAIL` / `SIGN_IN_USERNAME_PLACEHOLDER`, since the field accepts either an email or a username.
19
+
20
+ - Updated dependencies [[`e122c25`](https://github.com/atzentis/auth-sdk/commit/e122c2577ba2212b96b9743de6727124417deb16), [`e7b5c17`](https://github.com/atzentis/auth-sdk/commit/e7b5c1730b9709c38530a6f705abaea3bc9151f0), [`40ee53e`](https://github.com/atzentis/auth-sdk/commit/40ee53eb83c2259b149fab085370f3a4373be022)]:
21
+ - @atzentis/auth-locales@0.3.0
22
+ - @atzentis/auth-sdk@0.3.0
23
+
3
24
  ## 0.2.0
4
25
 
5
26
  ### Minor Changes
package/dist/index.js CHANGED
@@ -455,7 +455,7 @@ function ForgotPasswordScreen({ onSuccess }) {
455
455
  render: ({ field: { onChange, onBlur, value }, fieldState: { error } }) => /* @__PURE__ */ jsx(
456
456
  FormInput,
457
457
  {
458
- label: L.EMAIL_PLACEHOLDER,
458
+ label: L.EMAIL,
459
459
  placeholder: L.EMAIL_PLACEHOLDER,
460
460
  autoCapitalize: "none",
461
461
  keyboardType: "email-address",
@@ -555,7 +555,7 @@ function LoginScreen({
555
555
  render: ({ field: { onChange, onBlur, value }, fieldState: { error } }) => /* @__PURE__ */ jsx(
556
556
  FormInput,
557
557
  {
558
- label: L.SIGN_IN_USERNAME_PLACEHOLDER,
558
+ label: L.EMAIL_OR_USERNAME,
559
559
  placeholder: L.EMAIL_PLACEHOLDER,
560
560
  autoCapitalize: "none",
561
561
  keyboardType: "email-address",
@@ -683,7 +683,7 @@ function MagicLinkScreen({ onSuccess, token }) {
683
683
  render: ({ field: { onChange, onBlur, value }, fieldState: { error } }) => /* @__PURE__ */ jsx(
684
684
  FormInput,
685
685
  {
686
- label: L.EMAIL_PLACEHOLDER,
686
+ label: L.EMAIL,
687
687
  placeholder: L.EMAIL_PLACEHOLDER,
688
688
  autoCapitalize: "none",
689
689
  keyboardType: "email-address",
@@ -1078,7 +1078,7 @@ function SignupScreen({ onSuccess }) {
1078
1078
  render: ({ field: { onChange, onBlur, value }, fieldState: { error } }) => /* @__PURE__ */ jsx(
1079
1079
  FormInput,
1080
1080
  {
1081
- label: L.NAME_PLACEHOLDER,
1081
+ label: L.NAME,
1082
1082
  placeholder: L.NAME_PLACEHOLDER,
1083
1083
  autoCapitalize: "words",
1084
1084
  editable: !signupMutation.isPending,
@@ -1098,7 +1098,7 @@ function SignupScreen({ onSuccess }) {
1098
1098
  render: ({ field: { onChange, onBlur, value }, fieldState: { error } }) => /* @__PURE__ */ jsx(
1099
1099
  FormInput,
1100
1100
  {
1101
- label: L.EMAIL_PLACEHOLDER,
1101
+ label: L.EMAIL,
1102
1102
  placeholder: L.EMAIL_PLACEHOLDER,
1103
1103
  autoCapitalize: "none",
1104
1104
  keyboardType: "email-address",