@regenbio/regenbio-components-react 1.3.38 → 1.3.40

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.
Files changed (29) hide show
  1. package/build/components/DataDisplay/FileTag/hook.d.ts +1 -0
  2. package/build/components/DataDisplay/HtmlRender/hook.d.ts +4 -0
  3. package/build/components/DataDisplay/IconRender/index.d.ts +2 -9
  4. package/build/components/DataDisplay/UserCard/hook.d.ts +4 -0
  5. package/build/components/DataDisplay/UserCard/index.d.ts +2 -9
  6. package/build/components/DataEntry/AttachmentText/hook.d.ts +11 -0
  7. package/build/components/DataEntry/MarkdownEditor/hook.d.ts +11 -0
  8. package/build/components/DataEntry/MarkdownEditor/index.d.ts +3 -2
  9. package/build/components/DataEntry/Uploader/SingleImageUploader/hook.d.ts +11 -0
  10. package/build/components/DataEntry/Uploader/SingleImageUploader/type.d.ts +10 -0
  11. package/build/components/DataEntry/UserSelector/hook.d.ts +16 -0
  12. package/build/components/Other/ActionBar/hook.d.ts +10 -0
  13. package/build/components/Other/LoginLoad/AuthFrame/hook.d.ts +11 -0
  14. package/build/components/Other/LoginLoad/BindFrame/hook.d.ts +16 -0
  15. package/build/components/Other/ThemeSetter/hook.d.ts +9 -0
  16. package/build/components/PageLayout/AppLayout/type.d.ts +4 -0
  17. package/build/components/PageLayout/HomePage/hook.d.ts +9 -0
  18. package/build/components/PageLayout/PageContainer/hook.d.ts +10 -0
  19. package/build/components/PageLayout/PageContainer/type.d.ts +0 -5
  20. package/build/index.d.ts +6 -3
  21. package/build/index.js +3 -3
  22. package/build/services/enums/eventEnum.d.ts +5 -1
  23. package/build/services/enums/storageEnum.d.ts +4 -0
  24. package/build/services/hooks/useRbMessage.d.ts +11 -0
  25. package/build/services/hooks/useRbNotification.d.ts +11 -0
  26. package/build/services/hooks/useRbResponsive.d.ts +7 -0
  27. package/build/services/utils/eventUtil.d.ts +1 -0
  28. package/build/services/utils/storageUtil.d.ts +2 -0
  29. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  import { RbFileTagProps } from "./type";
2
2
  /**
3
3
  * 文件标签Hook
4
+ * @param props 属性
4
5
  */
5
6
  declare const useFileTag: (props: RbFileTagProps) => {
6
7
  intl: any;
@@ -1,4 +1,8 @@
1
1
  import { RbHtmlRenderProps } from "./type";
2
+ /**
3
+ * HTML渲染器Hook
4
+ * @param props 属性
5
+ */
2
6
  declare const useHtmlRender: (props: RbHtmlRenderProps) => {
3
7
  renderContent: any;
4
8
  };
@@ -1,9 +1,2 @@
1
- import React from 'react';
2
- import { RbIconRenderProps } from "./type";
3
- /**
4
- * RB 图标渲染器
5
- *
6
- * @constructor
7
- */
8
- declare const RbIconRender: React.FC<RbIconRenderProps>;
9
- export default RbIconRender;
1
+ declare const _default: any;
2
+ export default _default;
@@ -1,4 +1,8 @@
1
1
  import { RbUserCardProps } from "./type";
2
+ /**
3
+ * 用户卡片Hook
4
+ * @param props 属性
5
+ */
2
6
  declare const useUserCard: (props: RbUserCardProps) => {
3
7
  getAvatar: any;
4
8
  onShowTooltip: any;
@@ -1,9 +1,2 @@
1
- import React from 'react';
2
- import { RbUserCardProps } from "./type";
3
- /**
4
- * RB 用户卡片
5
- *
6
- * @constructor
7
- */
8
- declare const RbUserCard: React.FC<RbUserCardProps>;
9
- export default RbUserCard;
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { RbAttachmentTextProps } from "./type";
2
+ /**
3
+ * 附件文本域Hook
4
+ * @param props 属性
5
+ */
6
+ declare const useAttachmentText: (props: RbAttachmentTextProps) => {
7
+ intl: any;
8
+ globalFunctions: any;
9
+ inputRef: any;
10
+ };
11
+ export default useAttachmentText;
@@ -0,0 +1,11 @@
1
+ import { RbMarkdownEditorProps } from "./type";
2
+ /**
3
+ * Markdown编辑器Hook
4
+ * @param props 属性
5
+ */
6
+ declare const useMarkdownEditor: (props: RbMarkdownEditorProps) => {
7
+ intl: any;
8
+ selectedTab: any;
9
+ setSelectedTab: any;
10
+ };
11
+ export default useMarkdownEditor;
@@ -5,11 +5,12 @@ import { RbMarkdownEditorProps } from "./type";
5
5
  /**
6
6
  * Markdown语法转换器
7
7
  */
8
- export declare const RbMarkdownConverter: Showdown.Converter;
8
+ declare const RbMarkdownConverter: Showdown.Converter;
9
9
  /**
10
10
  * Rb Markdown编辑器
11
11
  *
12
12
  * @param props 属性
13
13
  * @constructor
14
14
  */
15
- export declare const RbMarkdownEditor: React.FC<RbMarkdownEditorProps>;
15
+ declare const RbMarkdownEditor: React.FC<RbMarkdownEditorProps>;
16
+ export { RbMarkdownConverter, RbMarkdownEditor };
@@ -0,0 +1,11 @@
1
+ import { RbSingleImageUploaderExtraProps, RbSingleImageUploaderProps } from "./type";
2
+ /**
3
+ * 单图片上传器Hook
4
+ * @param props 属性
5
+ */
6
+ declare const useSingleImageUploader: (props: RbSingleImageUploaderProps & RbSingleImageUploaderExtraProps) => {
7
+ intl: any;
8
+ globalFunctions: any;
9
+ onFileChange: any;
10
+ };
11
+ export default useSingleImageUploader;
@@ -1,6 +1,16 @@
1
1
  import React from "react";
2
2
  import { NamePath } from "rc-field-form/es/interface";
3
3
  import type { Rule } from "rc-field-form/lib/interface";
4
+ /**
5
+ * 额外参数
6
+ */
7
+ export type RbSingleImageUploaderExtraProps = {
8
+ /**
9
+ * 数据改变回调
10
+ * @param value 数据
11
+ */
12
+ onChange: (value: any) => void;
13
+ };
4
14
  /**
5
15
  * 单图片上传器属性
6
16
  */
@@ -0,0 +1,16 @@
1
+ import { RbUserSelectorProps } from "../../../index";
2
+ /**
3
+ * 用户选择器Hook
4
+ * @param props 属性
5
+ */
6
+ declare const useUserSelector: <T, OptionType>({ widthControl, children, params, proFieldProps, mode, valueEnum, request, ...rest }: RbUserSelectorProps<T, OptionType>) => {
7
+ setKeywords: any;
8
+ onFuzzy: (param: any) => Promise<void>;
9
+ start: any;
10
+ loading: any;
11
+ context: any;
12
+ data: any;
13
+ intl: any;
14
+ keywords: any;
15
+ };
16
+ export default useUserSelector;
@@ -0,0 +1,10 @@
1
+ import { RbActionBarProps } from "./type";
2
+ /**
3
+ * 操作栏Hook
4
+ * @param props 属性
5
+ */
6
+ declare const useActionBar: (props: RbActionBarProps) => {
7
+ operationList: any;
8
+ extendList: any;
9
+ };
10
+ export default useActionBar;
@@ -0,0 +1,11 @@
1
+ import { RbAuthFrameProps } from "./type";
2
+ /**
3
+ * 授权组件Hook
4
+ * @param props 属性
5
+ */
6
+ declare const useAuthFrame: (props: RbAuthFrameProps) => {
7
+ setExceptionMsg: any;
8
+ exceptionMsg: any;
9
+ intl: any;
10
+ };
11
+ export default useAuthFrame;
@@ -0,0 +1,16 @@
1
+ import { RbBindFrameProps } from "./type";
2
+ /**
3
+ * 绑定组件Hook
4
+ * @param props 属性
5
+ */
6
+ declare const useBindFrame: (props: RbBindFrameProps) => {
7
+ setCurrent: any;
8
+ setLoading: any;
9
+ steps: any;
10
+ mailStep: any;
11
+ externalStep: any;
12
+ current: any;
13
+ loading: any;
14
+ externalBind: any;
15
+ };
16
+ export default useBindFrame;
@@ -0,0 +1,9 @@
1
+ import { RbThemeProps } from "./type";
2
+ /**
3
+ * 主题设置器Hook
4
+ * @param props 属性
5
+ */
6
+ declare const useThemeSetter: (props: RbThemeProps) => {
7
+ mode: any;
8
+ };
9
+ export default useThemeSetter;
@@ -36,4 +36,8 @@ export type RbAppLayoutProps = {
36
36
  * 全局状态
37
37
  */
38
38
  globalState: RbGlobalStateType;
39
+ /**
40
+ * 触发响应式布局的宽度,默认576
41
+ */
42
+ responsiveWidth?: number;
39
43
  };
@@ -0,0 +1,9 @@
1
+ import { RbHomePageProps } from "./type";
2
+ /**
3
+ * 主页Hook
4
+ * @param props 属性
5
+ */
6
+ declare const useHomePage: (props: RbHomePageProps) => {
7
+ isChild: any;
8
+ };
9
+ export default useHomePage;
@@ -0,0 +1,10 @@
1
+ import { RbPageContainerProps } from "./type";
2
+ /**
3
+ * 主页Hook
4
+ * @param props 属性
5
+ */
6
+ declare const usePageContainer: (props: RbPageContainerProps) => {
7
+ mode: any;
8
+ loading: any;
9
+ };
10
+ export default usePageContainer;
@@ -3,11 +3,6 @@ import { PageContainerProps } from "@ant-design/pro-layout/es/components/PageCon
3
3
  * 页面容器属性
4
4
  */
5
5
  export type RbPageContainerProps = {
6
- /**
7
- * 宽度改变回调
8
- * @param width 宽度
9
- */
10
- onResize?: (width: any) => void;
11
6
  /**
12
7
  * 水印内容
13
8
  */
package/build/index.d.ts CHANGED
@@ -50,6 +50,9 @@ import StorageEnum from "./services/enums/storageEnum";
50
50
  import useRbDictionary from "./services/hooks/useRbDictionary";
51
51
  import useRbValueEnum from "./services/hooks/useRbValueEnum";
52
52
  import useRbAuthorize from "./services/hooks/useRbAuthorize";
53
+ import useRbMessage from "./services/hooks/useRbMessage";
54
+ import useRbNotification from "./services/hooks/useRbNotification";
55
+ import useRbResponsive from "./services/hooks/useRbResponsive";
53
56
  import CommonConstant from "./services/constants/commonConstant";
54
57
  import IconConstant from "./services/constants/iconConstant";
55
58
  import DbConstant from "./services/constants/dbConstant";
@@ -98,7 +101,7 @@ export { EventEnum, StorageEnum };
98
101
  export { CommonConstant, IconConstant, DbConstant };
99
102
  export { RespDTO, ConstantListItem, DictListItem, PageParams, RbInitialStateReqProps, RbInitialStateRespProps, RbGlobalStateType, RbGlobalFunctionType };
100
103
  export { BaseDO, BaseRelativeDO, TokenDO };
101
- export { useRbDictionary, useRbValueEnum, useRbAuthorize };
104
+ export { useRbDictionary, useRbValueEnum, useRbAuthorize, useRbMessage, useRbNotification, useRbResponsive };
102
105
  export { zhCN, enUS };
103
106
  declare const _default: {
104
107
  RbDataTable: <DataSource, U, ValueType = "text">(props: RbDataTableProps<DataSource, U, ValueType>) => any;
@@ -107,8 +110,8 @@ declare const _default: {
107
110
  RbThemeSetter: React.FC<import("./components/Other/ThemeSetter/type").RbThemeProps>;
108
111
  RbDataChart: React.FC<RbDataChartProps>;
109
112
  RbFileTag: any;
110
- RbUserCard: React.FC<RbUserCardProps>;
111
- RbIconRender: React.FC<RbIconRenderProps>;
113
+ RbUserCard: any;
114
+ RbIconRender: any;
112
115
  RbHtmlRender: React.FC<RbHtmlRenderProps>;
113
116
  RbDragTable: <DataSource, U, ValueType = "text">(props: RbDragTableProps<DataSource, U, ValueType>) => any;
114
117
  RbUserSelector: (<T, OptionType extends import("rc-cascader").BaseOptionType = any>(props: RbUserSelectorProps<T, OptionType>) => React.ReactElement) & {