@authing/react-ui-components 4.0.0-beta.2 → 4.0.0-beta.3
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/dist/asset-manifest.json +26 -0
- package/dist/index.html +1 -0
- package/dist/static/css/2.2cdfb9d1.chunk.css +3 -0
- package/dist/static/css/2.2cdfb9d1.chunk.css.map +1 -0
- package/dist/static/css/main.f438f284.chunk.css +2 -0
- package/dist/static/css/main.f438f284.chunk.css.map +1 -0
- package/dist/static/js/2.9a1287ca.chunk.js +3 -0
- package/dist/static/js/2.9a1287ca.chunk.js.LICENSE.txt +112 -0
- package/dist/static/js/2.9a1287ca.chunk.js.map +1 -0
- package/dist/static/js/3.d3328d89.chunk.js +2 -0
- package/dist/static/js/3.d3328d89.chunk.js.map +1 -0
- package/dist/static/js/main.5735e6f1.chunk.js +2 -0
- package/dist/static/js/main.5735e6f1.chunk.js.map +1 -0
- package/dist/static/js/runtime-main.e75981a3.js +2 -0
- package/dist/static/js/runtime-main.e75981a3.js.map +1 -0
- package/dist/static/media/loading.3cf0104f.svg +32 -0
- package/lib/index.min.js +1 -1
- package/package.json +3 -3
- package/types/Guard/core/useAppendConfig.d.ts +1 -1
- package/types/Type/index.d.ts +2 -1
- package/types/_utils/config/index.d.ts +4 -2
- package/types/version/version.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authing/react-ui-components",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/index.min.js",
|
|
6
6
|
"typings": "types/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "node ./scripts/build.js",
|
|
30
|
-
"build:types": "tsc",
|
|
31
|
-
"build:lib": "clear &&
|
|
30
|
+
"build:types": "npx tsc",
|
|
31
|
+
"build:lib": "clear && npm run build:types && node ./scripts/lib.js",
|
|
32
32
|
"clear": "npm run clear:dist && npm run clear:lib && npm run clear:types",
|
|
33
33
|
"clear:dist": "rm -rf dist",
|
|
34
34
|
"clear:lib": "rm -rf lib",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GuardAppendConfig } from '../..';
|
|
2
2
|
export declare const getGuardWindow: () => (Window & typeof globalThis) | undefined;
|
|
3
3
|
export declare const useGuardWindow: () => (Window & typeof globalThis) | undefined;
|
|
4
|
-
export declare const useInitGuardAppendConfig: (appId?: string | undefined, appendConfig?: GuardAppendConfig | undefined) => void;
|
|
4
|
+
export declare const useInitGuardAppendConfig: (setForceUpdate: any, appId?: string | undefined, appendConfig?: GuardAppendConfig | undefined) => void;
|
package/types/Type/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { AuthenticationClient, CommonMessage } from 'authing-js-sdk';
|
|
1
|
+
import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
|
|
2
2
|
import { GuardModuleType } from '../Guard/module';
|
|
3
3
|
import { FacePlugin } from '../_utils/facePlugin/interface';
|
|
4
4
|
import { ApplicationConfig } from './application';
|
|
5
5
|
export * from './application';
|
|
6
|
+
export type { CommonMessage, User };
|
|
6
7
|
export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW';
|
|
7
8
|
export declare enum GuardMode {
|
|
8
9
|
Modal = "modal",
|
|
@@ -6,7 +6,7 @@ import { ApplicationConfig, RegisterMethods } from '../../Type/application';
|
|
|
6
6
|
export declare const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
7
7
|
export declare const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
8
8
|
export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
|
|
9
|
-
export declare const useMergePublicConfig: (appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
|
|
9
|
+
export declare const useMergePublicConfig: (forceUpdate: number, appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
|
|
10
10
|
host: string;
|
|
11
11
|
isSSO?: boolean | undefined;
|
|
12
12
|
defaultScenes?: import("../..").GuardModuleType | undefined;
|
|
@@ -77,6 +77,8 @@ export declare const useMergePublicConfig: (appId?: string | undefined, config?:
|
|
|
77
77
|
expired?: string | undefined;
|
|
78
78
|
retry?: string | undefined;
|
|
79
79
|
failed?: string | undefined;
|
|
80
|
+
middleTitle?: string | undefined;
|
|
81
|
+
referText?: string | undefined;
|
|
80
82
|
} | undefined;
|
|
81
83
|
onAuthFlow?: ((flow: Record<string, any>) => {}) | undefined;
|
|
82
84
|
customData?: {
|
|
@@ -91,4 +93,4 @@ export declare const useMergePublicConfig: (appId?: string | undefined, config?:
|
|
|
91
93
|
export declare const getPageConfig: (appId: string) => GuardPageConfig;
|
|
92
94
|
export declare const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
|
|
93
95
|
export declare const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
|
|
94
|
-
export declare const useGuardPageConfig: (appId?: string | undefined, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
|
|
96
|
+
export declare const useGuardPageConfig: (forceUpdate: number, appId?: string | undefined, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.0-beta.
|
|
1
|
+
declare const _default: "4.0.0-beta.3";
|
|
2
2
|
export default _default;
|