@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/index.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 {
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
@@ -669,6 +681,7 @@ interface StepMetadata {
669
681
  numOfCallbacks: number;
670
682
  numOfSelfSubmittableCbs: number;
671
683
  numOfUserInputCbs: number;
684
+ stageName?: string;
672
685
  };
673
686
  platform?: Record<string, unknown>;
674
687
  }
@@ -2000,6 +2013,8 @@ declare const partialStringsSchema: ZodObject<{
2000
2013
  constraintViolationForPassword: ZodOptional<ZodString>;
2001
2014
  constraintViolationForValue: ZodOptional<ZodString>;
2002
2015
  continueWith: ZodOptional<ZodString>;
2016
+ copyUrl: ZodOptional<ZodString>;
2017
+ copyAndPasteUrlBelow: ZodOptional<ZodString>;
2003
2018
  customSecurityQuestion: ZodOptional<ZodString>;
2004
2019
  dontGetLockedOut: ZodOptional<ZodString>;
2005
2020
  doesNotMeetMinimumCharacterLength: ZodOptional<ZodString>;
@@ -2024,9 +2039,11 @@ declare const partialStringsSchema: ZodObject<{
2024
2039
  minimumNumberOfUppercase: ZodOptional<ZodString>;
2025
2040
  minimumNumberOfSymbols: ZodOptional<ZodString>;
2026
2041
  nameCallback: ZodOptional<ZodString>;
2042
+ next: ZodOptional<ZodString>;
2027
2043
  nextButton: ZodOptional<ZodString>;
2028
2044
  notToExceedMaximumCharacterLength: ZodOptional<ZodString>;
2029
2045
  noLessThanMinimumCharacterLength: ZodOptional<ZodString>;
2046
+ onMobileOpenInAuthenticator: ZodOptional<ZodString>;
2030
2047
  passwordCallback: ZodOptional<ZodString>;
2031
2048
  passwordCannotContainCommonPasswords: ZodOptional<ZodString>;
2032
2049
  passwordCannotContainCommonPasswordsOrBeReversible: ZodOptional<ZodString>;
@@ -2037,6 +2054,9 @@ declare const partialStringsSchema: ZodObject<{
2037
2054
  preferencesMarketing: ZodOptional<ZodString>;
2038
2055
  preferencesUpdates: ZodOptional<ZodString>;
2039
2056
  provideCustomQuestion: ZodOptional<ZodString>;
2057
+ qrCodeNotWorking: ZodOptional<ZodString>;
2058
+ qrCodeFailedToRender: ZodOptional<ZodString>;
2059
+ qrCodeImportFailure: ZodOptional<ZodString>;
2040
2060
  redirectingTo: ZodOptional<ZodString>;
2041
2061
  registerButton: ZodOptional<ZodString>;
2042
2062
  registerHeader: ZodOptional<ZodString>;
@@ -2044,6 +2064,7 @@ declare const partialStringsSchema: ZodObject<{
2044
2064
  registerYourDevice: ZodOptional<ZodString>;
2045
2065
  requiredField: ZodOptional<ZodString>;
2046
2066
  securityAnswer: ZodOptional<ZodString>;
2067
+ scanQrCodeWithAuthenticator: ZodOptional<ZodString>;
2047
2068
  securityQuestions: ZodOptional<ZodString>;
2048
2069
  securityQuestionsPrompt: ZodOptional<ZodString>;
2049
2070
  shouldContainANumber: ZodOptional<ZodString>;
@@ -2052,6 +2073,7 @@ declare const partialStringsSchema: ZodObject<{
2052
2073
  shouldContainASymbol: ZodOptional<ZodString>;
2053
2074
  showPassword: ZodOptional<ZodString>;
2054
2075
  sn: ZodOptional<ZodString>;
2076
+ submit: ZodOptional<ZodString>;
2055
2077
  submitButton: ZodOptional<ZodString>;
2056
2078
  successMessage: ZodOptional<ZodString>;
2057
2079
  termsAndConditions: ZodOptional<ZodString>;
@@ -2063,6 +2085,7 @@ declare const partialStringsSchema: ZodObject<{
2063
2085
  unrecoverableError: ZodOptional<ZodString>;
2064
2086
  unknownLoginError: ZodOptional<ZodString>;
2065
2087
  unknownNetworkError: ZodOptional<ZodString>;
2088
+ url: ZodOptional<ZodString>;
2066
2089
  useDeviceForIdentityVerification: ZodOptional<ZodString>;
2067
2090
  userName: ZodOptional<ZodString>;
2068
2091
  usernameRequirements: ZodOptional<ZodString>;
@@ -2087,6 +2110,8 @@ declare const partialStringsSchema: ZodObject<{
2087
2110
  constraintViolationForPassword?: string | undefined;
2088
2111
  constraintViolationForValue?: string | undefined;
2089
2112
  continueWith?: string | undefined;
2113
+ copyUrl?: string | undefined;
2114
+ copyAndPasteUrlBelow?: string | undefined;
2090
2115
  customSecurityQuestion?: string | undefined;
2091
2116
  dontGetLockedOut?: string | undefined;
2092
2117
  doesNotMeetMinimumCharacterLength?: string | undefined;
@@ -2111,9 +2136,11 @@ declare const partialStringsSchema: ZodObject<{
2111
2136
  minimumNumberOfUppercase?: string | undefined;
2112
2137
  minimumNumberOfSymbols?: string | undefined;
2113
2138
  nameCallback?: string | undefined;
2139
+ next?: string | undefined;
2114
2140
  nextButton?: string | undefined;
2115
2141
  notToExceedMaximumCharacterLength?: string | undefined;
2116
2142
  noLessThanMinimumCharacterLength?: string | undefined;
2143
+ onMobileOpenInAuthenticator?: string | undefined;
2117
2144
  passwordCallback?: string | undefined;
2118
2145
  passwordCannotContainCommonPasswords?: string | undefined;
2119
2146
  passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
@@ -2124,6 +2151,9 @@ declare const partialStringsSchema: ZodObject<{
2124
2151
  preferencesMarketing?: string | undefined;
2125
2152
  preferencesUpdates?: string | undefined;
2126
2153
  provideCustomQuestion?: string | undefined;
2154
+ qrCodeNotWorking?: string | undefined;
2155
+ qrCodeFailedToRender?: string | undefined;
2156
+ qrCodeImportFailure?: string | undefined;
2127
2157
  redirectingTo?: string | undefined;
2128
2158
  registerButton?: string | undefined;
2129
2159
  registerHeader?: string | undefined;
@@ -2131,6 +2161,7 @@ declare const partialStringsSchema: ZodObject<{
2131
2161
  registerYourDevice?: string | undefined;
2132
2162
  requiredField?: string | undefined;
2133
2163
  securityAnswer?: string | undefined;
2164
+ scanQrCodeWithAuthenticator?: string | undefined;
2134
2165
  securityQuestions?: string | undefined;
2135
2166
  securityQuestionsPrompt?: string | undefined;
2136
2167
  shouldContainANumber?: string | undefined;
@@ -2139,6 +2170,7 @@ declare const partialStringsSchema: ZodObject<{
2139
2170
  shouldContainASymbol?: string | undefined;
2140
2171
  showPassword?: string | undefined;
2141
2172
  sn?: string | undefined;
2173
+ submit?: string | undefined;
2142
2174
  submitButton?: string | undefined;
2143
2175
  successMessage?: string | undefined;
2144
2176
  termsAndConditions?: string | undefined;
@@ -2150,6 +2182,7 @@ declare const partialStringsSchema: ZodObject<{
2150
2182
  unrecoverableError?: string | undefined;
2151
2183
  unknownLoginError?: string | undefined;
2152
2184
  unknownNetworkError?: string | undefined;
2185
+ url?: string | undefined;
2153
2186
  useDeviceForIdentityVerification?: string | undefined;
2154
2187
  userName?: string | undefined;
2155
2188
  usernameRequirements?: string | undefined;
@@ -2174,6 +2207,8 @@ declare const partialStringsSchema: ZodObject<{
2174
2207
  constraintViolationForPassword?: string | undefined;
2175
2208
  constraintViolationForValue?: string | undefined;
2176
2209
  continueWith?: string | undefined;
2210
+ copyUrl?: string | undefined;
2211
+ copyAndPasteUrlBelow?: string | undefined;
2177
2212
  customSecurityQuestion?: string | undefined;
2178
2213
  dontGetLockedOut?: string | undefined;
2179
2214
  doesNotMeetMinimumCharacterLength?: string | undefined;
@@ -2198,9 +2233,11 @@ declare const partialStringsSchema: ZodObject<{
2198
2233
  minimumNumberOfUppercase?: string | undefined;
2199
2234
  minimumNumberOfSymbols?: string | undefined;
2200
2235
  nameCallback?: string | undefined;
2236
+ next?: string | undefined;
2201
2237
  nextButton?: string | undefined;
2202
2238
  notToExceedMaximumCharacterLength?: string | undefined;
2203
2239
  noLessThanMinimumCharacterLength?: string | undefined;
2240
+ onMobileOpenInAuthenticator?: string | undefined;
2204
2241
  passwordCallback?: string | undefined;
2205
2242
  passwordCannotContainCommonPasswords?: string | undefined;
2206
2243
  passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
@@ -2211,6 +2248,9 @@ declare const partialStringsSchema: ZodObject<{
2211
2248
  preferencesMarketing?: string | undefined;
2212
2249
  preferencesUpdates?: string | undefined;
2213
2250
  provideCustomQuestion?: string | undefined;
2251
+ qrCodeNotWorking?: string | undefined;
2252
+ qrCodeFailedToRender?: string | undefined;
2253
+ qrCodeImportFailure?: string | undefined;
2214
2254
  redirectingTo?: string | undefined;
2215
2255
  registerButton?: string | undefined;
2216
2256
  registerHeader?: string | undefined;
@@ -2218,6 +2258,7 @@ declare const partialStringsSchema: ZodObject<{
2218
2258
  registerYourDevice?: string | undefined;
2219
2259
  requiredField?: string | undefined;
2220
2260
  securityAnswer?: string | undefined;
2261
+ scanQrCodeWithAuthenticator?: string | undefined;
2221
2262
  securityQuestions?: string | undefined;
2222
2263
  securityQuestionsPrompt?: string | undefined;
2223
2264
  shouldContainANumber?: string | undefined;
@@ -2226,6 +2267,7 @@ declare const partialStringsSchema: ZodObject<{
2226
2267
  shouldContainASymbol?: string | undefined;
2227
2268
  showPassword?: string | undefined;
2228
2269
  sn?: string | undefined;
2270
+ submit?: string | undefined;
2229
2271
  submitButton?: string | undefined;
2230
2272
  successMessage?: string | undefined;
2231
2273
  termsAndConditions?: string | undefined;
@@ -2237,6 +2279,7 @@ declare const partialStringsSchema: ZodObject<{
2237
2279
  unrecoverableError?: string | undefined;
2238
2280
  unknownLoginError?: string | undefined;
2239
2281
  unknownNetworkError?: string | undefined;
2282
+ url?: string | undefined;
2240
2283
  useDeviceForIdentityVerification?: string | undefined;
2241
2284
  userName?: string | undefined;
2242
2285
  usernameRequirements?: string | undefined;