@forgerock/login-widget 1.2.0-beta.6 → 1.2.0-beta.8
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 +14 -0
- package/index.cjs +6048 -1351
- package/index.cjs.map +1 -1
- package/index.d.ts +43 -0
- package/index.js +6048 -1351
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +43 -0
- package/widget.css +58 -9
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -169,10 +169,20 @@ declare class FRCallback {
|
|
|
169
169
|
|
|
170
170
|
type FRCallbackFactory = (callback: Callback) => FRCallback;
|
|
171
171
|
|
|
172
|
+
type LogLevel = 'none' | 'info' | 'warn' | 'error' | 'debug';
|
|
172
173
|
interface Action {
|
|
173
174
|
type: ActionTypes;
|
|
174
175
|
payload: any;
|
|
175
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* Custom Logger for logger
|
|
179
|
+
*/
|
|
180
|
+
interface LoggerFunctions<W = (...msgs: unknown[]) => void, E = (...msgs: unknown[]) => void, L = (...msgs: unknown[]) => void, I = (...msgs: unknown[]) => void> {
|
|
181
|
+
warn?: W;
|
|
182
|
+
error?: E;
|
|
183
|
+
log?: L;
|
|
184
|
+
info?: I;
|
|
185
|
+
}
|
|
176
186
|
/**
|
|
177
187
|
* Configuration options.
|
|
178
188
|
*/
|
|
@@ -188,6 +198,8 @@ interface ConfigOptions$1 {
|
|
|
188
198
|
tree?: string;
|
|
189
199
|
type?: string;
|
|
190
200
|
oauthThreshold?: number;
|
|
201
|
+
logLevel?: LogLevel;
|
|
202
|
+
logger?: LoggerFunctions;
|
|
191
203
|
}
|
|
192
204
|
/**
|
|
193
205
|
* Optional configuration for custom paths for actions
|
|
@@ -639,6 +651,7 @@ interface StepMetadata {
|
|
|
639
651
|
numOfCallbacks: number;
|
|
640
652
|
numOfSelfSubmittableCbs: number;
|
|
641
653
|
numOfUserInputCbs: number;
|
|
654
|
+
stageName?: string;
|
|
642
655
|
};
|
|
643
656
|
platform?: Record<string, unknown>;
|
|
644
657
|
}
|
|
@@ -1987,6 +2000,8 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
1987
2000
|
constraintViolationForPassword: ZodOptional<ZodString>;
|
|
1988
2001
|
constraintViolationForValue: ZodOptional<ZodString>;
|
|
1989
2002
|
continueWith: ZodOptional<ZodString>;
|
|
2003
|
+
copyUrl: ZodOptional<ZodString>;
|
|
2004
|
+
copyAndPasteUrlBelow: ZodOptional<ZodString>;
|
|
1990
2005
|
customSecurityQuestion: ZodOptional<ZodString>;
|
|
1991
2006
|
dontGetLockedOut: ZodOptional<ZodString>;
|
|
1992
2007
|
doesNotMeetMinimumCharacterLength: ZodOptional<ZodString>;
|
|
@@ -2011,9 +2026,11 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2011
2026
|
minimumNumberOfUppercase: ZodOptional<ZodString>;
|
|
2012
2027
|
minimumNumberOfSymbols: ZodOptional<ZodString>;
|
|
2013
2028
|
nameCallback: ZodOptional<ZodString>;
|
|
2029
|
+
next: ZodOptional<ZodString>;
|
|
2014
2030
|
nextButton: ZodOptional<ZodString>;
|
|
2015
2031
|
notToExceedMaximumCharacterLength: ZodOptional<ZodString>;
|
|
2016
2032
|
noLessThanMinimumCharacterLength: ZodOptional<ZodString>;
|
|
2033
|
+
onMobileOpenInAuthenticator: ZodOptional<ZodString>;
|
|
2017
2034
|
passwordCallback: ZodOptional<ZodString>;
|
|
2018
2035
|
passwordCannotContainCommonPasswords: ZodOptional<ZodString>;
|
|
2019
2036
|
passwordCannotContainCommonPasswordsOrBeReversible: ZodOptional<ZodString>;
|
|
@@ -2024,6 +2041,9 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2024
2041
|
preferencesMarketing: ZodOptional<ZodString>;
|
|
2025
2042
|
preferencesUpdates: ZodOptional<ZodString>;
|
|
2026
2043
|
provideCustomQuestion: ZodOptional<ZodString>;
|
|
2044
|
+
qrCodeNotWorking: ZodOptional<ZodString>;
|
|
2045
|
+
qrCodeFailedToRender: ZodOptional<ZodString>;
|
|
2046
|
+
qrCodeImportFailure: ZodOptional<ZodString>;
|
|
2027
2047
|
redirectingTo: ZodOptional<ZodString>;
|
|
2028
2048
|
registerButton: ZodOptional<ZodString>;
|
|
2029
2049
|
registerHeader: ZodOptional<ZodString>;
|
|
@@ -2031,6 +2051,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2031
2051
|
registerYourDevice: ZodOptional<ZodString>;
|
|
2032
2052
|
requiredField: ZodOptional<ZodString>;
|
|
2033
2053
|
securityAnswer: ZodOptional<ZodString>;
|
|
2054
|
+
scanQrCodeWithAuthenticator: ZodOptional<ZodString>;
|
|
2034
2055
|
securityQuestions: ZodOptional<ZodString>;
|
|
2035
2056
|
securityQuestionsPrompt: ZodOptional<ZodString>;
|
|
2036
2057
|
shouldContainANumber: ZodOptional<ZodString>;
|
|
@@ -2039,6 +2060,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2039
2060
|
shouldContainASymbol: ZodOptional<ZodString>;
|
|
2040
2061
|
showPassword: ZodOptional<ZodString>;
|
|
2041
2062
|
sn: ZodOptional<ZodString>;
|
|
2063
|
+
submit: ZodOptional<ZodString>;
|
|
2042
2064
|
submitButton: ZodOptional<ZodString>;
|
|
2043
2065
|
successMessage: ZodOptional<ZodString>;
|
|
2044
2066
|
termsAndConditions: ZodOptional<ZodString>;
|
|
@@ -2050,6 +2072,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2050
2072
|
unrecoverableError: ZodOptional<ZodString>;
|
|
2051
2073
|
unknownLoginError: ZodOptional<ZodString>;
|
|
2052
2074
|
unknownNetworkError: ZodOptional<ZodString>;
|
|
2075
|
+
url: ZodOptional<ZodString>;
|
|
2053
2076
|
useDeviceForIdentityVerification: ZodOptional<ZodString>;
|
|
2054
2077
|
userName: ZodOptional<ZodString>;
|
|
2055
2078
|
usernameRequirements: ZodOptional<ZodString>;
|
|
@@ -2074,6 +2097,8 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2074
2097
|
constraintViolationForPassword?: string | undefined;
|
|
2075
2098
|
constraintViolationForValue?: string | undefined;
|
|
2076
2099
|
continueWith?: string | undefined;
|
|
2100
|
+
copyUrl?: string | undefined;
|
|
2101
|
+
copyAndPasteUrlBelow?: string | undefined;
|
|
2077
2102
|
customSecurityQuestion?: string | undefined;
|
|
2078
2103
|
dontGetLockedOut?: string | undefined;
|
|
2079
2104
|
doesNotMeetMinimumCharacterLength?: string | undefined;
|
|
@@ -2098,9 +2123,11 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2098
2123
|
minimumNumberOfUppercase?: string | undefined;
|
|
2099
2124
|
minimumNumberOfSymbols?: string | undefined;
|
|
2100
2125
|
nameCallback?: string | undefined;
|
|
2126
|
+
next?: string | undefined;
|
|
2101
2127
|
nextButton?: string | undefined;
|
|
2102
2128
|
notToExceedMaximumCharacterLength?: string | undefined;
|
|
2103
2129
|
noLessThanMinimumCharacterLength?: string | undefined;
|
|
2130
|
+
onMobileOpenInAuthenticator?: string | undefined;
|
|
2104
2131
|
passwordCallback?: string | undefined;
|
|
2105
2132
|
passwordCannotContainCommonPasswords?: string | undefined;
|
|
2106
2133
|
passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
|
|
@@ -2111,6 +2138,9 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2111
2138
|
preferencesMarketing?: string | undefined;
|
|
2112
2139
|
preferencesUpdates?: string | undefined;
|
|
2113
2140
|
provideCustomQuestion?: string | undefined;
|
|
2141
|
+
qrCodeNotWorking?: string | undefined;
|
|
2142
|
+
qrCodeFailedToRender?: string | undefined;
|
|
2143
|
+
qrCodeImportFailure?: string | undefined;
|
|
2114
2144
|
redirectingTo?: string | undefined;
|
|
2115
2145
|
registerButton?: string | undefined;
|
|
2116
2146
|
registerHeader?: string | undefined;
|
|
@@ -2118,6 +2148,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2118
2148
|
registerYourDevice?: string | undefined;
|
|
2119
2149
|
requiredField?: string | undefined;
|
|
2120
2150
|
securityAnswer?: string | undefined;
|
|
2151
|
+
scanQrCodeWithAuthenticator?: string | undefined;
|
|
2121
2152
|
securityQuestions?: string | undefined;
|
|
2122
2153
|
securityQuestionsPrompt?: string | undefined;
|
|
2123
2154
|
shouldContainANumber?: string | undefined;
|
|
@@ -2126,6 +2157,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2126
2157
|
shouldContainASymbol?: string | undefined;
|
|
2127
2158
|
showPassword?: string | undefined;
|
|
2128
2159
|
sn?: string | undefined;
|
|
2160
|
+
submit?: string | undefined;
|
|
2129
2161
|
submitButton?: string | undefined;
|
|
2130
2162
|
successMessage?: string | undefined;
|
|
2131
2163
|
termsAndConditions?: string | undefined;
|
|
@@ -2137,6 +2169,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2137
2169
|
unrecoverableError?: string | undefined;
|
|
2138
2170
|
unknownLoginError?: string | undefined;
|
|
2139
2171
|
unknownNetworkError?: string | undefined;
|
|
2172
|
+
url?: string | undefined;
|
|
2140
2173
|
useDeviceForIdentityVerification?: string | undefined;
|
|
2141
2174
|
userName?: string | undefined;
|
|
2142
2175
|
usernameRequirements?: string | undefined;
|
|
@@ -2161,6 +2194,8 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2161
2194
|
constraintViolationForPassword?: string | undefined;
|
|
2162
2195
|
constraintViolationForValue?: string | undefined;
|
|
2163
2196
|
continueWith?: string | undefined;
|
|
2197
|
+
copyUrl?: string | undefined;
|
|
2198
|
+
copyAndPasteUrlBelow?: string | undefined;
|
|
2164
2199
|
customSecurityQuestion?: string | undefined;
|
|
2165
2200
|
dontGetLockedOut?: string | undefined;
|
|
2166
2201
|
doesNotMeetMinimumCharacterLength?: string | undefined;
|
|
@@ -2185,9 +2220,11 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2185
2220
|
minimumNumberOfUppercase?: string | undefined;
|
|
2186
2221
|
minimumNumberOfSymbols?: string | undefined;
|
|
2187
2222
|
nameCallback?: string | undefined;
|
|
2223
|
+
next?: string | undefined;
|
|
2188
2224
|
nextButton?: string | undefined;
|
|
2189
2225
|
notToExceedMaximumCharacterLength?: string | undefined;
|
|
2190
2226
|
noLessThanMinimumCharacterLength?: string | undefined;
|
|
2227
|
+
onMobileOpenInAuthenticator?: string | undefined;
|
|
2191
2228
|
passwordCallback?: string | undefined;
|
|
2192
2229
|
passwordCannotContainCommonPasswords?: string | undefined;
|
|
2193
2230
|
passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
|
|
@@ -2198,6 +2235,9 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2198
2235
|
preferencesMarketing?: string | undefined;
|
|
2199
2236
|
preferencesUpdates?: string | undefined;
|
|
2200
2237
|
provideCustomQuestion?: string | undefined;
|
|
2238
|
+
qrCodeNotWorking?: string | undefined;
|
|
2239
|
+
qrCodeFailedToRender?: string | undefined;
|
|
2240
|
+
qrCodeImportFailure?: string | undefined;
|
|
2201
2241
|
redirectingTo?: string | undefined;
|
|
2202
2242
|
registerButton?: string | undefined;
|
|
2203
2243
|
registerHeader?: string | undefined;
|
|
@@ -2205,6 +2245,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2205
2245
|
registerYourDevice?: string | undefined;
|
|
2206
2246
|
requiredField?: string | undefined;
|
|
2207
2247
|
securityAnswer?: string | undefined;
|
|
2248
|
+
scanQrCodeWithAuthenticator?: string | undefined;
|
|
2208
2249
|
securityQuestions?: string | undefined;
|
|
2209
2250
|
securityQuestionsPrompt?: string | undefined;
|
|
2210
2251
|
shouldContainANumber?: string | undefined;
|
|
@@ -2213,6 +2254,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2213
2254
|
shouldContainASymbol?: string | undefined;
|
|
2214
2255
|
showPassword?: string | undefined;
|
|
2215
2256
|
sn?: string | undefined;
|
|
2257
|
+
submit?: string | undefined;
|
|
2216
2258
|
submitButton?: string | undefined;
|
|
2217
2259
|
successMessage?: string | undefined;
|
|
2218
2260
|
termsAndConditions?: string | undefined;
|
|
@@ -2224,6 +2266,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2224
2266
|
unrecoverableError?: string | undefined;
|
|
2225
2267
|
unknownLoginError?: string | undefined;
|
|
2226
2268
|
unknownNetworkError?: string | undefined;
|
|
2269
|
+
url?: string | undefined;
|
|
2227
2270
|
useDeviceForIdentityVerification?: string | undefined;
|
|
2228
2271
|
userName?: string | undefined;
|
|
2229
2272
|
usernameRequirements?: string | undefined;
|
package/widget.css
CHANGED
|
@@ -413,15 +413,24 @@ position: relative;
|
|
|
413
413
|
.tw_left-0 {
|
|
414
414
|
left: 0px;
|
|
415
415
|
}
|
|
416
|
+
.tw_right-1 {
|
|
417
|
+
right: 0.25rem;
|
|
418
|
+
}
|
|
416
419
|
.tw_top-0 {
|
|
417
420
|
top: 0px;
|
|
418
421
|
}
|
|
422
|
+
.tw_top-1 {
|
|
423
|
+
top: 0.25rem;
|
|
424
|
+
}
|
|
419
425
|
.tw_col-start-2 {
|
|
420
426
|
grid-column-start: 2;
|
|
421
427
|
}
|
|
422
428
|
.tw_row-start-2 {
|
|
423
429
|
grid-row-start: 2;
|
|
424
430
|
}
|
|
431
|
+
.tw_m-auto {
|
|
432
|
+
margin: auto;
|
|
433
|
+
}
|
|
425
434
|
.tw_my-4 {
|
|
426
435
|
margin-top: 1rem;
|
|
427
436
|
margin-bottom: 1rem;
|
|
@@ -541,15 +550,6 @@ list-style-type: disc;
|
|
|
541
550
|
.tw_grid-cols-1 {
|
|
542
551
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
543
552
|
}
|
|
544
|
-
.tw_grid-cols-2 {
|
|
545
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
546
|
-
}
|
|
547
|
-
.tw_grid-cols-3 {
|
|
548
|
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
549
|
-
}
|
|
550
|
-
.tw_grid-cols-4 {
|
|
551
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
552
|
-
}
|
|
553
553
|
.tw_grid-cols-\[1\.5em_1fr\] {
|
|
554
554
|
grid-template-columns: 1.5em 1fr;
|
|
555
555
|
}
|
|
@@ -571,6 +571,9 @@ justify-items: stretch;
|
|
|
571
571
|
.tw_gap-4 {
|
|
572
572
|
gap: 1rem;
|
|
573
573
|
}
|
|
574
|
+
.tw_overflow-hidden {
|
|
575
|
+
overflow: hidden;
|
|
576
|
+
}
|
|
574
577
|
.tw_rounded-full {
|
|
575
578
|
border-radius: 9999px;
|
|
576
579
|
}
|
|
@@ -596,6 +599,9 @@ border-right-width: 0px !important;
|
|
|
596
599
|
.tw_border-b {
|
|
597
600
|
border-bottom-width: 1px;
|
|
598
601
|
}
|
|
602
|
+
.tw_border-none {
|
|
603
|
+
border-style: none;
|
|
604
|
+
}
|
|
599
605
|
.tw_border-secondary-light {
|
|
600
606
|
--tw-border-opacity: 1;
|
|
601
607
|
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
|
@@ -603,6 +609,10 @@ border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
|
|
603
609
|
.tw_border-transparent {
|
|
604
610
|
border-color: transparent;
|
|
605
611
|
}
|
|
612
|
+
.tw_bg-background-dark {
|
|
613
|
+
--tw-bg-opacity: 1;
|
|
614
|
+
background-color: rgb(30 41 59 / var(--tw-bg-opacity));
|
|
615
|
+
}
|
|
606
616
|
.tw_bg-background-light {
|
|
607
617
|
--tw-bg-opacity: 1;
|
|
608
618
|
background-color: rgb(241 245 249 / var(--tw-bg-opacity));
|
|
@@ -611,6 +621,13 @@ background-color: rgb(241 245 249 / var(--tw-bg-opacity));
|
|
|
611
621
|
--tw-bg-opacity: 1;
|
|
612
622
|
background-color: rgb(51 65 85 / var(--tw-bg-opacity));
|
|
613
623
|
}
|
|
624
|
+
.tw_bg-transparent {
|
|
625
|
+
background-color: transparent;
|
|
626
|
+
}
|
|
627
|
+
.tw_bg-white {
|
|
628
|
+
--tw-bg-opacity: 1;
|
|
629
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
630
|
+
}
|
|
614
631
|
.tw_fill-current {
|
|
615
632
|
fill: currentColor;
|
|
616
633
|
}
|
|
@@ -633,6 +650,9 @@ text-align: center;
|
|
|
633
650
|
.tw_text-right {
|
|
634
651
|
text-align: right;
|
|
635
652
|
}
|
|
653
|
+
.tw_align-top {
|
|
654
|
+
vertical-align: top;
|
|
655
|
+
}
|
|
636
656
|
.tw_font-mono {
|
|
637
657
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
638
658
|
}
|
|
@@ -685,6 +705,15 @@ color: rgb(55 65 81 / var(--tw-text-opacity));
|
|
|
685
705
|
--tw-text-opacity: 1;
|
|
686
706
|
color: rgb(209 213 219 / var(--tw-text-opacity));
|
|
687
707
|
}
|
|
708
|
+
.tw_shadow-\[0_0_1rem_2rem_black\] {
|
|
709
|
+
--tw-shadow: 0 0 1rem 2rem black;
|
|
710
|
+
--tw-shadow-colored: 0 0 1rem 2rem var(--tw-shadow-color);
|
|
711
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
712
|
+
}
|
|
713
|
+
.tw_shadow-background-light {
|
|
714
|
+
--tw-shadow-color: #f1f5f9;
|
|
715
|
+
--tw-shadow: var(--tw-shadow-colored);
|
|
716
|
+
}
|
|
688
717
|
.tw_outline-none {
|
|
689
718
|
outline: 2px solid transparent;
|
|
690
719
|
outline-offset: 2px;
|
|
@@ -1677,6 +1706,10 @@ padding: 2.5rem 0;
|
|
|
1677
1706
|
}
|
|
1678
1707
|
.md\:tw_dialog-x_medium {}
|
|
1679
1708
|
}
|
|
1709
|
+
.focus-visible\:tw_outline-none:focus-visible {
|
|
1710
|
+
outline: 2px solid transparent;
|
|
1711
|
+
outline-offset: 2px;
|
|
1712
|
+
}
|
|
1680
1713
|
:is(.tw_dark .dark\:tw_border-secondary-dark) {
|
|
1681
1714
|
--tw-border-opacity: 1;
|
|
1682
1715
|
border-color: rgb(55 65 81 / var(--tw-border-opacity));
|
|
@@ -1705,6 +1738,10 @@ color: rgb(209 213 219 / var(--tw-text-opacity));
|
|
|
1705
1738
|
--tw-text-opacity: 1;
|
|
1706
1739
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1707
1740
|
}
|
|
1741
|
+
:is(.tw_dark .dark\:tw_shadow-background-dark) {
|
|
1742
|
+
--tw-shadow-color: #1e293b;
|
|
1743
|
+
--tw-shadow: var(--tw-shadow-colored);
|
|
1744
|
+
}
|
|
1708
1745
|
:is(.tw_dark .dark\:tw_focusable-element_dark) {
|
|
1709
1746
|
--outline-color: hsl(var(--tw-colors-focus-default-hs), calc(var(--tw-colors-focus-default-l) + 20%), 0.7);
|
|
1710
1747
|
outline-color: var(--outline-color, hsla(272.1, 71.7%, 56.5%, 0.30000000000000004));
|
|
@@ -1725,6 +1762,18 @@ color: var(--color, #d1d5db);
|
|
|
1725
1762
|
.md\:tw_h-36 {
|
|
1726
1763
|
height: 9rem;
|
|
1727
1764
|
}
|
|
1765
|
+
.md\:tw_grid-cols-1 {
|
|
1766
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
1767
|
+
}
|
|
1768
|
+
.md\:tw_grid-cols-2 {
|
|
1769
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1770
|
+
}
|
|
1771
|
+
.md\:tw_grid-cols-3 {
|
|
1772
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1773
|
+
}
|
|
1774
|
+
.md\:tw_grid-cols-4 {
|
|
1775
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1776
|
+
}
|
|
1728
1777
|
.md\:tw_pt-10 {
|
|
1729
1778
|
padding-top: 2.5rem;
|
|
1730
1779
|
}
|