@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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.0.0-beta.15](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2023-03-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **login-failure:** handle 500 failures within login store ([90fb461](https://github.com/forgerock/forgerock-web-login-framework/commit/90fb461e2598f929e4b418c9794f8b085e433e54))
|
|
7
|
+
|
|
1
8
|
# [1.0.0-beta.14](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2023-03-27)
|
|
2
9
|
|
|
3
10
|
|
package/index.cjs
CHANGED
|
@@ -16829,6 +16829,7 @@ var tryAgain = "Please try again";
|
|
|
16829
16829
|
var twoFactorAuthentication = "Two factor authentication";
|
|
16830
16830
|
var useValidEmail = "Please use a valid email address.";
|
|
16831
16831
|
var unrecoverableError = "There was an error in the form submission.";
|
|
16832
|
+
var unknownLoginError = "Unknown login failure has occurred.";
|
|
16832
16833
|
var unknownNetworkError = "Unknown network request failure has occurred.";
|
|
16833
16834
|
var userName = "Username";
|
|
16834
16835
|
var usernameRequirements = "Username requirements:";
|
|
@@ -16907,6 +16908,7 @@ var fallback = {
|
|
|
16907
16908
|
twoFactorAuthentication: twoFactorAuthentication,
|
|
16908
16909
|
useValidEmail: useValidEmail,
|
|
16909
16910
|
unrecoverableError: unrecoverableError,
|
|
16911
|
+
unknownLoginError: unknownLoginError,
|
|
16910
16912
|
unknownNetworkError: unknownNetworkError,
|
|
16911
16913
|
userName: userName,
|
|
16912
16914
|
usernameRequirements: usernameRequirements,
|
|
@@ -16988,6 +16990,7 @@ const stringsSchema = z
|
|
|
16988
16990
|
twoFactorAuthentication: z.string(),
|
|
16989
16991
|
useValidEmail: z.string(),
|
|
16990
16992
|
unrecoverableError: z.string(),
|
|
16993
|
+
unknownLoginError: z.string(),
|
|
16991
16994
|
unknownNetworkError: z.string(),
|
|
16992
16995
|
userName: z.string(),
|
|
16993
16996
|
usernameRequirements: z.string(),
|
|
@@ -17002,9 +17005,10 @@ stringsSchema.partial();
|
|
|
17002
17005
|
stringsSchema.parse(fallback);
|
|
17003
17006
|
const stringsStore = writable(null);
|
|
17004
17007
|
/**
|
|
17005
|
-
* initialize
|
|
17006
|
-
* @param
|
|
17007
|
-
* @returns
|
|
17008
|
+
* @function initialize - Initialize the locale store
|
|
17009
|
+
* @param {object} userLocale - An object of custom locale strings to merge with the default
|
|
17010
|
+
* @returns {object} - The locale store
|
|
17011
|
+
* @example initialize({ loginHeader: 'Welcome to the login page' });
|
|
17008
17012
|
*/
|
|
17009
17013
|
function initialize$5(userLocale) {
|
|
17010
17014
|
if (userLocale) {
|
|
@@ -17456,6 +17460,11 @@ function buildStepMetadata(callbackMetadataArray, stageJson, stageName) {
|
|
|
17456
17460
|
};
|
|
17457
17461
|
}
|
|
17458
17462
|
|
|
17463
|
+
/**
|
|
17464
|
+
* @function initializeJourney - Initializes the journey stack for tracking journey switches
|
|
17465
|
+
* @param {object} initOptions - The initial options to set
|
|
17466
|
+
* @returns {object} - The journey stack store with stack methods
|
|
17467
|
+
*/
|
|
17459
17468
|
function initializeStack(initOptions) {
|
|
17460
17469
|
const initialValue = initOptions ? [initOptions] : [];
|
|
17461
17470
|
const { update, set, subscribe } = writable(initialValue);
|
|
@@ -17519,6 +17528,11 @@ const journeyStore = writable({
|
|
|
17519
17528
|
successful: false,
|
|
17520
17529
|
response: null,
|
|
17521
17530
|
});
|
|
17531
|
+
/**
|
|
17532
|
+
* @function initialize - Initializes the journey store
|
|
17533
|
+
* @param {object} initOptions - The initial options to set
|
|
17534
|
+
* @returns {object} - The journey store
|
|
17535
|
+
*/
|
|
17522
17536
|
function initialize$4(initOptions) {
|
|
17523
17537
|
const stack = initializeStack();
|
|
17524
17538
|
let stepNumber = 0;
|
|
@@ -17638,7 +17652,7 @@ function initialize$4(initOptions) {
|
|
|
17638
17652
|
*
|
|
17639
17653
|
* Grab failure message, which may contain encoded HTML
|
|
17640
17654
|
*/
|
|
17641
|
-
const failureMessageStr = htmlDecode(nextStep.payload.message || '');
|
|
17655
|
+
const failureMessageStr = htmlDecode(nextStep.payload.message || 'Unknown login error');
|
|
17642
17656
|
let restartedStep = null;
|
|
17643
17657
|
try {
|
|
17644
17658
|
/**
|