@regenbio/regenbio-components-react 1.3.19 → 1.3.21

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.
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { RbAuthFrameProps } from "./type";
3
+ /**
4
+ * Rb 授权组件
5
+ *
6
+ * @constructor
7
+ */
8
+ declare const RbAuthFrame: React.FC<RbAuthFrameProps>;
9
+ export default RbAuthFrame;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ 'components.auth-frame.operation.back-auth': string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ 'components.auth-frame.operation.back-auth': string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,81 @@
1
+ import { RbInitialStateRespProps } from "../../AppLayout/type";
2
+ /**
3
+ * Rb 授权组件属性
4
+ */
5
+ export type RbAuthFrameProps = {
6
+ /**
7
+ * 授权完成回调
8
+ *
9
+ * @param to 跳转路由
10
+ * @param state 路由参数
11
+ */
12
+ onFinish: (to: string, state: any) => void;
13
+ /**
14
+ * 全局初始化状态
15
+ */
16
+ initialState: RbInitialStateRespProps;
17
+ /**
18
+ * 设置全局初始化状态
19
+ */
20
+ setInitialState: (initialState: RbInitialStateRespProps) => void;
21
+ /**
22
+ * 国际化
23
+ */
24
+ intl: any;
25
+ /**
26
+ * 查询路由参数
27
+ */
28
+ searchParams: any;
29
+ /**
30
+ * 国际化语言
31
+ */
32
+ locale: string;
33
+ /**
34
+ * 登录加载路径
35
+ */
36
+ loginLoadPath: string;
37
+ /**
38
+ * 网关路由
39
+ */
40
+ gatewayUrl: string;
41
+ /**
42
+ * 客户端配置
43
+ */
44
+ clientConfig: any;
45
+ /**
46
+ * 外部集成配置
47
+ */
48
+ externalIntegrationConfig: any;
49
+ /**
50
+ * 绑定外部授权数据
51
+ * @param data 数据
52
+ * @param options 配置参数
53
+ */
54
+ bindExternalData: (data: {
55
+ guid: string;
56
+ code: string;
57
+ redirectUrl: string;
58
+ }, options?: {
59
+ [p: string]: any;
60
+ }) => Promise<any>;
61
+ /**
62
+ * 根据授权码获取令牌
63
+ * @param params 参数
64
+ * @param options 配置参数
65
+ */
66
+ getTokenByCode: (params: {
67
+ code: string;
68
+ external_guid?: string;
69
+ external_redirect_uri?: string;
70
+ external_client_id?: string;
71
+ platform?: string;
72
+ }, options?: {
73
+ [p: string]: any;
74
+ }) => Promise<any>;
75
+ /**
76
+ * 设置国际化语言
77
+ * @param locale 语言
78
+ * @param refresh 是否刷新页面
79
+ */
80
+ setLocale: (locale: string, refresh: boolean) => void;
81
+ };
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { RbBindFrameProps } from "./type";
3
+ /**
4
+ * Rb 绑定组件
5
+ *
6
+ * @constructor
7
+ */
8
+ declare const RbBindFrame: React.FC<RbBindFrameProps>;
9
+ export default RbBindFrame;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ 'components.bind-frame.title.mail-force': string;
3
+ 'components.bind-frame.title.password-force': string;
4
+ 'components.bind-frame.title.external-force': string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ 'components.bind-frame.title.mail-force': string;
3
+ 'components.bind-frame.title.password-force': string;
4
+ 'components.bind-frame.title.external-force': string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ /**
3
+ * Rb 绑定组件属性
4
+ */
5
+ export type RbBindFrameProps = {
6
+ /**
7
+ * 授权完成回调
8
+ */
9
+ onFinish: () => void;
10
+ /**
11
+ * 响应式
12
+ */
13
+ responsive: boolean;
14
+ /**
15
+ * 国际化
16
+ */
17
+ intl: any;
18
+ /**
19
+ * 获取用户强制绑定的信息
20
+ * @param options 参数
21
+ */
22
+ getUserForceBind: (options?: {
23
+ [p: string]: any;
24
+ }) => Promise<any>;
25
+ /**
26
+ * 邮箱绑定组件
27
+ */
28
+ mailBindFrame: React.ReactNode;
29
+ /**
30
+ * 外部授权绑定组件
31
+ */
32
+ externalAuthFrame: React.ReactNode;
33
+ };
package/build/index.d.ts CHANGED
@@ -29,6 +29,10 @@ import RbSingleImageUploader from "./components/Uploader/SingleImageUploader";
29
29
  import { RbSingleImageUploaderProps } from "./components/Uploader/SingleImageUploader/type";
30
30
  import { getRbInitialState, getRbAppLayout } from "./components/AppLayout";
31
31
  import { RbInitialStateReqProps, RbInitialStateRespProps, RbAppLayoutProps } from "./components/AppLayout/type";
32
+ import RbAuthFrame from "./components/LoginLoad/AuthFrame";
33
+ import { RbAuthFrameProps } from "./components/LoginLoad/AuthFrame/type";
34
+ import RbBindFrame from "./components/LoginLoad/BindFrame";
35
+ import { RbBindFrameProps } from "./components/LoginLoad/BindFrame/type";
32
36
  import DbUtil from "./services/utils/dbUtil";
33
37
  import ObjectUtil from "./services/utils/objectUtil";
34
38
  import EventUtil from "./services/utils/eventUtil";
@@ -81,6 +85,8 @@ export { RbSingleImageUploader };
81
85
  export type { RbSingleImageUploaderProps };
82
86
  export { getRbInitialState, getRbAppLayout };
83
87
  export type { RbInitialStateReqProps, RbInitialStateRespProps, RbAppLayoutProps };
88
+ export { RbAuthFrame, RbBindFrame };
89
+ export type { RbAuthFrameProps, RbBindFrameProps };
84
90
  export { DbUtil, ObjectUtil, EventUtil, StorageUtil, ResourceUtil, RenderUtil, StringUtil, NumberUtil, RandomUtil, UnicodeUtil, UploadUtil, RequestUtil, DictUtil };
85
91
  export { EventEnum, StorageEnum };
86
92
  export { CommonConstant, IconConstant, DbConstant };
@@ -108,5 +114,7 @@ declare const _default: {
108
114
  RbMarkdownConverter: import("showdown").Converter;
109
115
  RbMarkdownEditor: React.FC<RbMarkdownEditorProps>;
110
116
  RbSingleImageUploader: React.FC<RbSingleImageUploaderProps>;
117
+ RbAuthFrame: React.FC<RbAuthFrameProps>;
118
+ RbBindFrame: React.FC<RbBindFrameProps>;
111
119
  };
112
120
  export default _default;