@authing/react-ui-components 2.4.56 → 2.4.57
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/lib/index.d.ts +9 -2
- package/lib/index.min.js +1 -1
- package/package.json +2 -3
- package/src/components/AuthingGuard/GuardLayout/index.tsx +6 -0
- package/src/components/AuthingGuard/api/appConfig.ts +17 -1
- package/src/components/AuthingGuard/types/GuardConfig.ts +2 -0
- package/build/asset-manifest.json +0 -26
- package/build/favicon.ico +0 -0
- package/build/index.html +0 -1
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +0 -25
- package/build/robots.txt +0 -3
- package/build/static/css/2.51c07e65.chunk.css +0 -3
- package/build/static/css/2.51c07e65.chunk.css.map +0 -1
- package/build/static/css/main.779f221a.chunk.css +0 -2
- package/build/static/css/main.779f221a.chunk.css.map +0 -1
- package/build/static/js/2.bbae9fdb.chunk.js +0 -3
- package/build/static/js/2.bbae9fdb.chunk.js.LICENSE.txt +0 -102
- package/build/static/js/2.bbae9fdb.chunk.js.map +0 -1
- package/build/static/js/3.fd17f196.chunk.js +0 -2
- package/build/static/js/3.fd17f196.chunk.js.map +0 -1
- package/build/static/js/main.5f341531.chunk.js +0 -2
- package/build/static/js/main.5f341531.chunk.js.map +0 -1
- package/build/static/js/runtime-main.ef138021.js +0 -2
- package/build/static/js/runtime-main.ef138021.js.map +0 -1
- package/build/static/media/loading.4a67a5f3.svg +0 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authing/react-ui-components",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.57",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/index.min.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -184,6 +184,5 @@
|
|
|
184
184
|
"webpack-dev-server": "3.11.0",
|
|
185
185
|
"webpack-manifest-plugin": "2.2.0",
|
|
186
186
|
"workbox-webpack-plugin": "5.1.4"
|
|
187
|
-
}
|
|
188
|
-
"gitHead": "2504bd53f585359d71ceef42890227eea51aba0d"
|
|
187
|
+
}
|
|
189
188
|
}
|
|
@@ -156,6 +156,9 @@ const useGuardConfig = () => {
|
|
|
156
156
|
appConfig.loginTabs?.list ||
|
|
157
157
|
defaultGuardConfig.loginMethods
|
|
158
158
|
|
|
159
|
+
// 扫码多源配置
|
|
160
|
+
const qrcodeTabsSettings = appConfig.qrcodeTabsSettings
|
|
161
|
+
|
|
159
162
|
// 账密登录的登录拆分
|
|
160
163
|
const passwordLoginMethods =
|
|
161
164
|
userConfig.passwordLoginMethods ||
|
|
@@ -233,6 +236,7 @@ const useGuardConfig = () => {
|
|
|
233
236
|
defaultRegisterMethod,
|
|
234
237
|
enterpriseConnectionObjs,
|
|
235
238
|
publicKey: appConfig.publicKey,
|
|
239
|
+
qrcodeTabsSettings,
|
|
236
240
|
agreementEnabled: appConfig.agreementEnabled,
|
|
237
241
|
agreements: appConfig.agreements,
|
|
238
242
|
}
|
|
@@ -241,10 +245,12 @@ const useGuardConfig = () => {
|
|
|
241
245
|
userConfig,
|
|
242
246
|
appConfig.loginTabs?.list,
|
|
243
247
|
appConfig.loginTabs?.default,
|
|
248
|
+
appConfig.qrcodeTabsSettings,
|
|
244
249
|
appConfig.passwordTabConfig?.enabledLoginMethods,
|
|
245
250
|
appConfig.registerTabs?.list,
|
|
246
251
|
appConfig.registerTabs?.default,
|
|
247
252
|
appConfig.name,
|
|
253
|
+
appConfig.description,
|
|
248
254
|
appConfig.logo,
|
|
249
255
|
appConfig.ssoPageComponentDisplay?.autoRegisterThenLoginHintInfo,
|
|
250
256
|
appConfig.ssoPageComponentDisplay?.registerBtn,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { requestClient } from './http'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Lang,
|
|
4
|
+
LoginMethods,
|
|
5
|
+
Protocol,
|
|
6
|
+
} from '../../../components/AuthingGuard/types'
|
|
3
7
|
import {
|
|
4
8
|
IAzureAdConnectionConfig,
|
|
5
9
|
ICasConnectionConfig,
|
|
@@ -25,6 +29,15 @@ export const ApplicationMfaTypeLabel: () => Record<
|
|
|
25
29
|
[ApplicationMfaType.EMAIL]: i18n.t('common.EmailVerification'),
|
|
26
30
|
})
|
|
27
31
|
|
|
32
|
+
export type QrcodeTabsSettings = Record<
|
|
33
|
+
LoginMethods,
|
|
34
|
+
{
|
|
35
|
+
id: string
|
|
36
|
+
title: string
|
|
37
|
+
isDefault?: boolean
|
|
38
|
+
}
|
|
39
|
+
>
|
|
40
|
+
|
|
28
41
|
export interface OidcClientMetadata {
|
|
29
42
|
grant_types: string[]
|
|
30
43
|
client_id: string
|
|
@@ -83,6 +96,9 @@ export interface ApplicationConfig {
|
|
|
83
96
|
default: string
|
|
84
97
|
title: { [x: string]: string }
|
|
85
98
|
}
|
|
99
|
+
|
|
100
|
+
qrcodeTabsSettings: QrcodeTabsSettings
|
|
101
|
+
|
|
86
102
|
loginTabs: {
|
|
87
103
|
list: string[]
|
|
88
104
|
default: string
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
ApplicationConfig,
|
|
14
14
|
PasswordLoginMethods,
|
|
15
15
|
Agreement,
|
|
16
|
+
QrcodeTabsSettings,
|
|
16
17
|
} from '../../../components/AuthingGuard/api'
|
|
17
18
|
import { Lang } from './Locales'
|
|
18
19
|
|
|
@@ -412,6 +413,7 @@ export interface GuardConfig extends UserConfig {
|
|
|
412
413
|
publicKey: ApplicationConfig['publicKey']
|
|
413
414
|
agreementEnabled: boolean
|
|
414
415
|
agreements: Agreement[]
|
|
416
|
+
qrcodeTabsSettings: QrcodeTabsSettings
|
|
415
417
|
}
|
|
416
418
|
|
|
417
419
|
export interface LocalesConfig {
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": {
|
|
3
|
-
"main.css": "/static/css/main.779f221a.chunk.css",
|
|
4
|
-
"main.js": "/static/js/main.5f341531.chunk.js",
|
|
5
|
-
"main.js.map": "/static/js/main.5f341531.chunk.js.map",
|
|
6
|
-
"runtime-main.js": "/static/js/runtime-main.ef138021.js",
|
|
7
|
-
"runtime-main.js.map": "/static/js/runtime-main.ef138021.js.map",
|
|
8
|
-
"static/css/2.51c07e65.chunk.css": "/static/css/2.51c07e65.chunk.css",
|
|
9
|
-
"static/js/2.bbae9fdb.chunk.js": "/static/js/2.bbae9fdb.chunk.js",
|
|
10
|
-
"static/js/2.bbae9fdb.chunk.js.map": "/static/js/2.bbae9fdb.chunk.js.map",
|
|
11
|
-
"static/js/3.fd17f196.chunk.js": "/static/js/3.fd17f196.chunk.js",
|
|
12
|
-
"static/js/3.fd17f196.chunk.js.map": "/static/js/3.fd17f196.chunk.js.map",
|
|
13
|
-
"index.html": "/index.html",
|
|
14
|
-
"static/css/2.51c07e65.chunk.css.map": "/static/css/2.51c07e65.chunk.css.map",
|
|
15
|
-
"static/css/main.779f221a.chunk.css.map": "/static/css/main.779f221a.chunk.css.map",
|
|
16
|
-
"static/js/2.bbae9fdb.chunk.js.LICENSE.txt": "/static/js/2.bbae9fdb.chunk.js.LICENSE.txt",
|
|
17
|
-
"static/media/loading.4a67a5f3.svg": "/static/media/loading.4a67a5f3.svg"
|
|
18
|
-
},
|
|
19
|
-
"entrypoints": [
|
|
20
|
-
"static/js/runtime-main.ef138021.js",
|
|
21
|
-
"static/css/2.51c07e65.chunk.css",
|
|
22
|
-
"static/js/2.bbae9fdb.chunk.js",
|
|
23
|
-
"static/css/main.779f221a.chunk.css",
|
|
24
|
-
"static/js/main.5f341531.chunk.js"
|
|
25
|
-
]
|
|
26
|
-
}
|
package/build/favicon.ico
DELETED
|
Binary file
|
package/build/index.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><link href="/static/css/2.51c07e65.chunk.css" rel="stylesheet"><link href="/static/css/main.779f221a.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);p.length;)p.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"fd17f196"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,r[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this["webpackJsonp@authing/react-ui-components"]=this["webpackJsonp@authing/react-ui-components"]||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var f=c;r()}([])</script><script src="/static/js/2.bbae9fdb.chunk.js"></script><script src="/static/js/main.5f341531.chunk.js"></script></body></html>
|
package/build/logo192.png
DELETED
|
Binary file
|
package/build/logo512.png
DELETED
|
Binary file
|
package/build/manifest.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "React App",
|
|
3
|
-
"name": "Create React App Sample",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "favicon.ico",
|
|
7
|
-
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
-
"type": "image/x-icon"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "logo192.png",
|
|
12
|
-
"type": "image/png",
|
|
13
|
-
"sizes": "192x192"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "logo512.png",
|
|
17
|
-
"type": "image/png",
|
|
18
|
-
"sizes": "512x512"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"start_url": ".",
|
|
22
|
-
"display": "standalone",
|
|
23
|
-
"theme_color": "#000000",
|
|
24
|
-
"background_color": "#ffffff"
|
|
25
|
-
}
|
package/build/robots.txt
DELETED