@reachfive/identity-ui 1.23.0 → 1.23.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 +9 -1
- package/cjs/identity-ui.js +4 -1
- package/es/identity-ui.js +4 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/umd/identity-ui.js +4 -1
- package/umd/identity-ui.min.js +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.23.1] - 2023-12-12
|
|
11
|
+
|
|
12
|
+
### Fixes
|
|
13
|
+
|
|
14
|
+
- Handle provider variants correctly in showSocialAccount.
|
|
15
|
+
|
|
10
16
|
## [1.23.0] - 2023-11-27
|
|
11
17
|
|
|
12
18
|
## Added
|
|
@@ -380,7 +386,9 @@ The eye icon is now correctly displayed in the Auth widget.
|
|
|
380
386
|
|
|
381
387
|
First version of the SDK Web UI.
|
|
382
388
|
|
|
383
|
-
[Unreleased]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.23.
|
|
389
|
+
[Unreleased]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.23.1...HEAD
|
|
390
|
+
|
|
391
|
+
[1.23.1]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.23.0...v1.23.1
|
|
384
392
|
|
|
385
393
|
[1.23.0]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.22.0...v1.23.0
|
|
386
394
|
|
package/cjs/identity-ui.js
CHANGED
|
@@ -12127,7 +12127,10 @@ var socialAccountsWidget = createMultiViewWidget({
|
|
|
12127
12127
|
providers: config.socialProviders
|
|
12128
12128
|
}, options), {}, {
|
|
12129
12129
|
getAvailableProviders: function getAvailableProviders(identities) {
|
|
12130
|
-
|
|
12130
|
+
var providerNames = (options.providers || config.socialProviders).map(function (provider) {
|
|
12131
|
+
return provider.split(':').shift();
|
|
12132
|
+
});
|
|
12133
|
+
return difference(providerNames, identities.map(function (i) {
|
|
12131
12134
|
return i.provider;
|
|
12132
12135
|
}));
|
|
12133
12136
|
}
|
package/es/identity-ui.js
CHANGED
|
@@ -12119,7 +12119,10 @@ var socialAccountsWidget = createMultiViewWidget({
|
|
|
12119
12119
|
providers: config.socialProviders
|
|
12120
12120
|
}, options), {}, {
|
|
12121
12121
|
getAvailableProviders: function getAvailableProviders(identities) {
|
|
12122
|
-
|
|
12122
|
+
var providerNames = (options.providers || config.socialProviders).map(function (provider) {
|
|
12123
|
+
return provider.split(':').shift();
|
|
12124
|
+
});
|
|
12125
|
+
return difference(providerNames, identities.map(function (i) {
|
|
12123
12126
|
return i.provider;
|
|
12124
12127
|
}));
|
|
12125
12128
|
}
|
package/index.d.ts
CHANGED
|
@@ -373,7 +373,7 @@ export interface SocialAccountsOptions extends AccessToken, Container, I18n, OnR
|
|
|
373
373
|
*
|
|
374
374
|
* Tip: If you pass an empty array, social providers will not be displayed.
|
|
375
375
|
* */
|
|
376
|
-
|
|
376
|
+
providers?: ProviderId[]
|
|
377
377
|
|
|
378
378
|
/** List of authentication options */
|
|
379
379
|
auth?: CoreAuthOptions
|
package/package.json
CHANGED
package/umd/identity-ui.js
CHANGED
|
@@ -59771,7 +59771,10 @@
|
|
|
59771
59771
|
providers: config.socialProviders
|
|
59772
59772
|
}, options), {}, {
|
|
59773
59773
|
getAvailableProviders: function getAvailableProviders(identities) {
|
|
59774
|
-
|
|
59774
|
+
var providerNames = (options.providers || config.socialProviders).map(function (provider) {
|
|
59775
|
+
return provider.split(':').shift();
|
|
59776
|
+
});
|
|
59777
|
+
return difference$1(providerNames, identities.map(function (i) {
|
|
59775
59778
|
return i.provider;
|
|
59776
59779
|
}));
|
|
59777
59780
|
}
|