@dloizides/auth-web 1.25.1 → 1.25.2

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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.25.2
4
+
5
+ - `VerifyEmailScreen` focuses the continue action on a successful verify (FOCUS-1 "Every screen names its initial focus").
6
+
3
7
  ## 1.25.1
4
8
 
5
9
  **Deletion date as yyyy-MM-dd (BEAD-1 "Bead pattern app" step 15).** `<AccountDeletionForm>` shows the scheduled deletion
package/dist/index.js CHANGED
@@ -5172,7 +5172,7 @@ function verifyEmailErrorText(code, labels) {
5172
5172
  }
5173
5173
  return labels.errorGeneric;
5174
5174
  }
5175
- function ResendCta({ label, hint, style, textStyle, testID, onPress }) {
5175
+ function FocusedAction({ label, hint, style, textStyle, testID, onPress }) {
5176
5176
  const ref = react.useRef(null);
5177
5177
  useFocusOnMount(ref);
5178
5178
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -5245,15 +5245,14 @@ function VerifyEmailScreen({
5245
5245
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: styles3.title, children: labels.successTitle }),
5246
5246
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles3.subtitle, children: labels.successBody }),
5247
5247
  /* @__PURE__ */ jsxRuntime.jsx(
5248
- reactNative.TouchableOpacity,
5248
+ FocusedAction,
5249
5249
  {
5250
- accessibilityHint: labels.successContinueHint,
5251
- accessibilityLabel: labels.successContinue,
5252
- accessibilityRole: "button",
5250
+ hint: labels.successContinueHint,
5251
+ label: labels.successContinue,
5253
5252
  style: styles3.primaryButton,
5254
5253
  testID: id(AuthTestIds.verifyEmailContinue),
5255
- onPress: onContinue,
5256
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles3.primaryButtonText, children: labels.successContinue })
5254
+ textStyle: styles3.primaryButtonText,
5255
+ onPress: onContinue
5257
5256
  }
5258
5257
  )
5259
5258
  ] }) : null,
@@ -5281,7 +5280,7 @@ function VerifyEmailScreen({
5281
5280
  verifyUrlTemplate
5282
5281
  }
5283
5282
  ) : /* @__PURE__ */ jsxRuntime.jsx(
5284
- ResendCta,
5283
+ FocusedAction,
5285
5284
  {
5286
5285
  hint: labels.resendCtaHint,
5287
5286
  label: labels.resendCta,