@forgerock/login-widget 1.0.0-beta.14 → 1.0.0-beta.15
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 +7 -0
- package/index.cjs +18 -4
- package/index.cjs.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +18 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2115,6 +2115,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2115
2115
|
twoFactorAuthentication: ZodOptional<ZodString>;
|
|
2116
2116
|
useValidEmail: ZodOptional<ZodString>;
|
|
2117
2117
|
unrecoverableError: ZodOptional<ZodString>;
|
|
2118
|
+
unknownLoginError: ZodOptional<ZodString>;
|
|
2118
2119
|
unknownNetworkError: ZodOptional<ZodString>;
|
|
2119
2120
|
userName: ZodOptional<ZodString>;
|
|
2120
2121
|
usernameRequirements: ZodOptional<ZodString>;
|
|
@@ -2193,6 +2194,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2193
2194
|
twoFactorAuthentication?: string | undefined;
|
|
2194
2195
|
useValidEmail?: string | undefined;
|
|
2195
2196
|
unrecoverableError?: string | undefined;
|
|
2197
|
+
unknownLoginError?: string | undefined;
|
|
2196
2198
|
unknownNetworkError?: string | undefined;
|
|
2197
2199
|
userName?: string | undefined;
|
|
2198
2200
|
usernameRequirements?: string | undefined;
|
|
@@ -2271,6 +2273,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2271
2273
|
twoFactorAuthentication?: string | undefined;
|
|
2272
2274
|
useValidEmail?: string | undefined;
|
|
2273
2275
|
unrecoverableError?: string | undefined;
|
|
2276
|
+
unknownLoginError?: string | undefined;
|
|
2274
2277
|
unknownNetworkError?: string | undefined;
|
|
2275
2278
|
userName?: string | undefined;
|
|
2276
2279
|
usernameRequirements?: string | undefined;
|
package/index.js
CHANGED
|
@@ -16825,6 +16825,7 @@ var tryAgain = "Please try again";
|
|
|
16825
16825
|
var twoFactorAuthentication = "Two factor authentication";
|
|
16826
16826
|
var useValidEmail = "Please use a valid email address.";
|
|
16827
16827
|
var unrecoverableError = "There was an error in the form submission.";
|
|
16828
|
+
var unknownLoginError = "Unknown login failure has occurred.";
|
|
16828
16829
|
var unknownNetworkError = "Unknown network request failure has occurred.";
|
|
16829
16830
|
var userName = "Username";
|
|
16830
16831
|
var usernameRequirements = "Username requirements:";
|
|
@@ -16903,6 +16904,7 @@ var fallback = {
|
|
|
16903
16904
|
twoFactorAuthentication: twoFactorAuthentication,
|
|
16904
16905
|
useValidEmail: useValidEmail,
|
|
16905
16906
|
unrecoverableError: unrecoverableError,
|
|
16907
|
+
unknownLoginError: unknownLoginError,
|
|
16906
16908
|
unknownNetworkError: unknownNetworkError,
|
|
16907
16909
|
userName: userName,
|
|
16908
16910
|
usernameRequirements: usernameRequirements,
|
|
@@ -16984,6 +16986,7 @@ const stringsSchema = z
|
|
|
16984
16986
|
twoFactorAuthentication: z.string(),
|
|
16985
16987
|
useValidEmail: z.string(),
|
|
16986
16988
|
unrecoverableError: z.string(),
|
|
16989
|
+
unknownLoginError: z.string(),
|
|
16987
16990
|
unknownNetworkError: z.string(),
|
|
16988
16991
|
userName: z.string(),
|
|
16989
16992
|
usernameRequirements: z.string(),
|
|
@@ -16998,9 +17001,10 @@ stringsSchema.partial();
|
|
|
16998
17001
|
stringsSchema.parse(fallback);
|
|
16999
17002
|
const stringsStore = writable(null);
|
|
17000
17003
|
/**
|
|
17001
|
-
* initialize
|
|
17002
|
-
* @param
|
|
17003
|
-
* @returns
|
|
17004
|
+
* @function initialize - Initialize the locale store
|
|
17005
|
+
* @param {object} userLocale - An object of custom locale strings to merge with the default
|
|
17006
|
+
* @returns {object} - The locale store
|
|
17007
|
+
* @example initialize({ loginHeader: 'Welcome to the login page' });
|
|
17004
17008
|
*/
|
|
17005
17009
|
function initialize$5(userLocale) {
|
|
17006
17010
|
if (userLocale) {
|
|
@@ -17452,6 +17456,11 @@ function buildStepMetadata(callbackMetadataArray, stageJson, stageName) {
|
|
|
17452
17456
|
};
|
|
17453
17457
|
}
|
|
17454
17458
|
|
|
17459
|
+
/**
|
|
17460
|
+
* @function initializeJourney - Initializes the journey stack for tracking journey switches
|
|
17461
|
+
* @param {object} initOptions - The initial options to set
|
|
17462
|
+
* @returns {object} - The journey stack store with stack methods
|
|
17463
|
+
*/
|
|
17455
17464
|
function initializeStack(initOptions) {
|
|
17456
17465
|
const initialValue = initOptions ? [initOptions] : [];
|
|
17457
17466
|
const { update, set, subscribe } = writable(initialValue);
|
|
@@ -17515,6 +17524,11 @@ const journeyStore = writable({
|
|
|
17515
17524
|
successful: false,
|
|
17516
17525
|
response: null,
|
|
17517
17526
|
});
|
|
17527
|
+
/**
|
|
17528
|
+
* @function initialize - Initializes the journey store
|
|
17529
|
+
* @param {object} initOptions - The initial options to set
|
|
17530
|
+
* @returns {object} - The journey store
|
|
17531
|
+
*/
|
|
17518
17532
|
function initialize$4(initOptions) {
|
|
17519
17533
|
const stack = initializeStack();
|
|
17520
17534
|
let stepNumber = 0;
|
|
@@ -17634,7 +17648,7 @@ function initialize$4(initOptions) {
|
|
|
17634
17648
|
*
|
|
17635
17649
|
* Grab failure message, which may contain encoded HTML
|
|
17636
17650
|
*/
|
|
17637
|
-
const failureMessageStr = htmlDecode(nextStep.payload.message || '');
|
|
17651
|
+
const failureMessageStr = htmlDecode(nextStep.payload.message || 'Unknown login error');
|
|
17638
17652
|
let restartedStep = null;
|
|
17639
17653
|
try {
|
|
17640
17654
|
/**
|