@dloizides/auth-web 1.25.0 → 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/dist/index.mjs CHANGED
@@ -5171,7 +5171,7 @@ function verifyEmailErrorText(code, labels) {
5171
5171
  }
5172
5172
  return labels.errorGeneric;
5173
5173
  }
5174
- function ResendCta({ label, hint, style, textStyle, testID, onPress }) {
5174
+ function FocusedAction({ label, hint, style, textStyle, testID, onPress }) {
5175
5175
  const ref = useRef(null);
5176
5176
  useFocusOnMount(ref);
5177
5177
  return /* @__PURE__ */ jsx(
@@ -5244,15 +5244,14 @@ function VerifyEmailScreen({
5244
5244
  /* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: styles3.title, children: labels.successTitle }),
5245
5245
  /* @__PURE__ */ jsx(Text, { style: styles3.subtitle, children: labels.successBody }),
5246
5246
  /* @__PURE__ */ jsx(
5247
- TouchableOpacity,
5247
+ FocusedAction,
5248
5248
  {
5249
- accessibilityHint: labels.successContinueHint,
5250
- accessibilityLabel: labels.successContinue,
5251
- accessibilityRole: "button",
5249
+ hint: labels.successContinueHint,
5250
+ label: labels.successContinue,
5252
5251
  style: styles3.primaryButton,
5253
5252
  testID: id(AuthTestIds.verifyEmailContinue),
5254
- onPress: onContinue,
5255
- children: /* @__PURE__ */ jsx(Text, { style: styles3.primaryButtonText, children: labels.successContinue })
5253
+ textStyle: styles3.primaryButtonText,
5254
+ onPress: onContinue
5256
5255
  }
5257
5256
  )
5258
5257
  ] }) : null,
@@ -5280,7 +5279,7 @@ function VerifyEmailScreen({
5280
5279
  verifyUrlTemplate
5281
5280
  }
5282
5281
  ) : /* @__PURE__ */ jsx(
5283
- ResendCta,
5282
+ FocusedAction,
5284
5283
  {
5285
5284
  hint: labels.resendCtaHint,
5286
5285
  label: labels.resendCta,
@@ -5828,6 +5827,13 @@ var AccountDeletionTestIds = {
5828
5827
  emailNotSent: "account-deletion-email-not-sent",
5829
5828
  alreadyRequested: "account-deletion-already-requested"
5830
5829
  };
5830
+
5831
+ // src/components/scheduledDetail.ts
5832
+ var ISO_CALENDAR_DATE_LENGTH = 10;
5833
+ function scheduledDetail(receipt, labels) {
5834
+ const date = new Date(receipt?.scheduledDeletionDate ?? "");
5835
+ return Number.isNaN(date.getTime()) ? null : interpolate(labels.scheduledDate, { date: date.toISOString().slice(0, ISO_CALENDAR_DATE_LENGTH) });
5836
+ }
5831
5837
  function errorText(errorKey, seconds, labels) {
5832
5838
  switch (errorKey) {
5833
5839
  case null:
@@ -5846,10 +5852,6 @@ function errorText(errorKey, seconds, labels) {
5846
5852
  return labels.errorFailed;
5847
5853
  }
5848
5854
  }
5849
- function scheduledDetail(receipt, labels) {
5850
- const date = new Date(receipt?.scheduledDeletionDate ?? "");
5851
- return Number.isNaN(date.getTime()) ? null : interpolate(labels.scheduledDate, { date: date.toLocaleDateString() });
5852
- }
5853
5855
  function noticeCopy(phase, receipt, labels) {
5854
5856
  if (phase === "alreadyRequested" /* AlreadyRequested */) {
5855
5857
  return {