@reachfive/identity-ui 1.20.0 → 1.20.1
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 +8 -0
- package/index.d.ts +8 -38
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.20.1] - 2023-09-29
|
|
11
|
+
|
|
12
|
+
### Fixes
|
|
13
|
+
|
|
14
|
+
- Fix import types
|
|
15
|
+
|
|
10
16
|
## [1.20.0] - 2023-09-22
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -344,6 +350,8 @@ First version of the SDK Web UI.
|
|
|
344
350
|
|
|
345
351
|
[Unreleased]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.20.0...HEAD
|
|
346
352
|
|
|
353
|
+
[1.20.1]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.20.0...v1.20.1
|
|
354
|
+
|
|
347
355
|
[1.20.0]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.19.0...v1.20.0
|
|
348
356
|
|
|
349
357
|
[1.19.0]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.18.0...v1.19.0
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * as Core from '@reachfive/identity-core'
|
|
2
|
-
|
|
2
|
+
import { Client as CoreClient, AuthOptions as CoreAuthOptions, ErrorResponse } from '@reachfive/identity-core'
|
|
3
|
+
|
|
4
|
+
import { InitialScreen, ProviderId } from './constants'
|
|
3
5
|
|
|
4
6
|
export function createClient(creationConfig: Config): Client
|
|
5
7
|
|
|
@@ -126,38 +128,6 @@ export interface Field {
|
|
|
126
128
|
type?: FieldType
|
|
127
129
|
}
|
|
128
130
|
|
|
129
|
-
/** The social provider keys. */
|
|
130
|
-
export const providerKeys = [
|
|
131
|
-
'facebook',
|
|
132
|
-
'google',
|
|
133
|
-
'apple',
|
|
134
|
-
'linkedin',
|
|
135
|
-
'microsoft',
|
|
136
|
-
'twitter',
|
|
137
|
-
'paypal',
|
|
138
|
-
'amazon',
|
|
139
|
-
'vkontakte',
|
|
140
|
-
'weibo',
|
|
141
|
-
'wechat',
|
|
142
|
-
'qq',
|
|
143
|
-
'line',
|
|
144
|
-
'yandex',
|
|
145
|
-
'mailru',
|
|
146
|
-
'kakaotalk',
|
|
147
|
-
'franceconnect',
|
|
148
|
-
'oney',
|
|
149
|
-
'bconnect',
|
|
150
|
-
'naver'
|
|
151
|
-
] as const
|
|
152
|
-
export type ProviderId = typeof providerKeys[number]
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* The widget’s initial screen.
|
|
156
|
-
* @enum {('login' | 'login-with-web-authn' | 'signup' | 'forgot-password')}
|
|
157
|
-
*/
|
|
158
|
-
export const initialScreens = ['login', 'login-with-web-authn', 'signup', 'forgot-password'] as const
|
|
159
|
-
export type InitialScreen = typeof initialScreens[number]
|
|
160
|
-
|
|
161
131
|
/**
|
|
162
132
|
* The auth type.
|
|
163
133
|
* @enum {('magic_link' | 'sms')}
|
|
@@ -211,7 +181,7 @@ export interface AuthOptions extends Container, I18n, OnReady, Theme {
|
|
|
211
181
|
allowCustomIdentifier?: boolean
|
|
212
182
|
|
|
213
183
|
/** List of authentication options */
|
|
214
|
-
auth?:
|
|
184
|
+
auth?: CoreAuthOptions
|
|
215
185
|
|
|
216
186
|
/**
|
|
217
187
|
* Whether or not to provide the display password in clear text option.
|
|
@@ -406,7 +376,7 @@ export interface SocialAccountsOptions extends AccessToken, Container, I18n, OnR
|
|
|
406
376
|
socialProviders?: ProviderId[]
|
|
407
377
|
|
|
408
378
|
/** List of authentication options */
|
|
409
|
-
auth?:
|
|
379
|
+
auth?: CoreAuthOptions
|
|
410
380
|
}
|
|
411
381
|
|
|
412
382
|
export interface SocialLoginOptions extends Container, I18n, OnReady, Theme {
|
|
@@ -418,7 +388,7 @@ export interface SocialLoginOptions extends Container, I18n, OnReady, Theme {
|
|
|
418
388
|
socialProviders?: ProviderId[]
|
|
419
389
|
|
|
420
390
|
/** List of authentication options */
|
|
421
|
-
auth?:
|
|
391
|
+
auth?: CoreAuthOptions
|
|
422
392
|
|
|
423
393
|
/** The URL sent in the email to which the user is redirected. This URL must be whitelisted in the Allowed Callback URLs field of your ReachFive client settings. */
|
|
424
394
|
redirectUrl?: string
|
|
@@ -458,7 +428,7 @@ export interface PassswordlessOptions extends Container, I18n, OnReady, OnSucces
|
|
|
458
428
|
countryCode?: string
|
|
459
429
|
|
|
460
430
|
/** List of authentication options */
|
|
461
|
-
auth?:
|
|
431
|
+
auth?: CoreAuthOptions
|
|
462
432
|
|
|
463
433
|
/** The URL sent in the email to which the user is redirected. This URL must be whitelisted in the Allowed Callback URLs field of your ReachFive client settings. */
|
|
464
434
|
redirectUrl?: string
|
|
@@ -490,7 +460,7 @@ export interface MfaCredentialsOptions extends AccessToken, Container, I18n, OnR
|
|
|
490
460
|
|
|
491
461
|
export interface StepUpOptions extends AccessToken, Container, I18n, OnReady, Theme {
|
|
492
462
|
/** List of authentication options */
|
|
493
|
-
auth?:
|
|
463
|
+
auth?: CoreAuthOptions
|
|
494
464
|
|
|
495
465
|
/**
|
|
496
466
|
* Show the introduction text.
|