@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/CHANGELOG.md +9 -0
- package/dist/index.js +14 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
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
|
+
|
|
7
|
+
## 1.25.1
|
|
8
|
+
|
|
9
|
+
**Deletion date as yyyy-MM-dd (BEAD-1 "Bead pattern app" step 15).** `<AccountDeletionForm>` shows the scheduled deletion
|
|
10
|
+
date as the UTC calendar day in `yyyy-MM-dd`, matching the server pages, instead of the viewer's locale and timezone.
|
|
11
|
+
|
|
3
12
|
## 1.25.0
|
|
4
13
|
|
|
5
14
|
**Opt-in hidden tenant name (BEAD-1 "Bead pattern app", D-RUN-33 "Jinx sign-up drops the Workspace name box").**
|
package/dist/index.js
CHANGED
|
@@ -5172,7 +5172,7 @@ function verifyEmailErrorText(code, labels) {
|
|
|
5172
5172
|
}
|
|
5173
5173
|
return labels.errorGeneric;
|
|
5174
5174
|
}
|
|
5175
|
-
function
|
|
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
|
-
|
|
5248
|
+
FocusedAction,
|
|
5249
5249
|
{
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
accessibilityRole: "button",
|
|
5250
|
+
hint: labels.successContinueHint,
|
|
5251
|
+
label: labels.successContinue,
|
|
5253
5252
|
style: styles3.primaryButton,
|
|
5254
5253
|
testID: id(AuthTestIds.verifyEmailContinue),
|
|
5255
|
-
|
|
5256
|
-
|
|
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
|
-
|
|
5283
|
+
FocusedAction,
|
|
5285
5284
|
{
|
|
5286
5285
|
hint: labels.resendCtaHint,
|
|
5287
5286
|
label: labels.resendCta,
|
|
@@ -5829,6 +5828,13 @@ var AccountDeletionTestIds = {
|
|
|
5829
5828
|
emailNotSent: "account-deletion-email-not-sent",
|
|
5830
5829
|
alreadyRequested: "account-deletion-already-requested"
|
|
5831
5830
|
};
|
|
5831
|
+
|
|
5832
|
+
// src/components/scheduledDetail.ts
|
|
5833
|
+
var ISO_CALENDAR_DATE_LENGTH = 10;
|
|
5834
|
+
function scheduledDetail(receipt, labels) {
|
|
5835
|
+
const date = new Date(receipt?.scheduledDeletionDate ?? "");
|
|
5836
|
+
return Number.isNaN(date.getTime()) ? null : interpolate(labels.scheduledDate, { date: date.toISOString().slice(0, ISO_CALENDAR_DATE_LENGTH) });
|
|
5837
|
+
}
|
|
5832
5838
|
function errorText(errorKey, seconds, labels) {
|
|
5833
5839
|
switch (errorKey) {
|
|
5834
5840
|
case null:
|
|
@@ -5847,10 +5853,6 @@ function errorText(errorKey, seconds, labels) {
|
|
|
5847
5853
|
return labels.errorFailed;
|
|
5848
5854
|
}
|
|
5849
5855
|
}
|
|
5850
|
-
function scheduledDetail(receipt, labels) {
|
|
5851
|
-
const date = new Date(receipt?.scheduledDeletionDate ?? "");
|
|
5852
|
-
return Number.isNaN(date.getTime()) ? null : interpolate(labels.scheduledDate, { date: date.toLocaleDateString() });
|
|
5853
|
-
}
|
|
5854
5856
|
function noticeCopy(phase, receipt, labels) {
|
|
5855
5857
|
if (phase === "alreadyRequested" /* AlreadyRequested */) {
|
|
5856
5858
|
return {
|