@regenbio/regenbio-components-react 1.2.85 → 1.2.86

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.
@@ -10,4 +10,8 @@ export type RbHtmlRenderProps = {
10
10
  * 内容
11
11
  */
12
12
  content?: string;
13
+ /**
14
+ * 背景色
15
+ */
16
+ backgroundColor?: string;
13
17
  };
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import * as Showdown from "showdown";
3
+ import "react-mde/lib/styles/css/react-mde-all.css";
4
+ import { RbMarkdownEditorProps } from "./type";
5
+ /**
6
+ * Markdown语法转换器
7
+ */
8
+ export declare const RbMarkdownConverter: Showdown.Converter;
9
+ /**
10
+ * Rb Markdown编辑器
11
+ *
12
+ * @param props 属性
13
+ * @constructor
14
+ */
15
+ export declare const RbMarkdownEditor: React.FC<RbMarkdownEditorProps>;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ 'components.markdown-editor.write': string;
3
+ 'components.markdown-editor.preview': string;
4
+ 'components.markdown-editor.uploading-image': string;
5
+ 'components.markdown-editor.paste-drop-select': string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ 'components.markdown-editor.write': string;
3
+ 'components.markdown-editor.preview': string;
4
+ 'components.markdown-editor.uploading-image': string;
5
+ 'components.markdown-editor.paste-drop-select': string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Markdown编辑器属性
3
+ */
4
+ export type RbMarkdownEditorProps = {
5
+ /**
6
+ * 值
7
+ */
8
+ value?: any;
9
+ /**
10
+ * 改变回调
11
+ */
12
+ onChange?: any;
13
+ /**
14
+ * 国际化
15
+ */
16
+ intl: any;
17
+ };
package/build/index.d.ts CHANGED
@@ -23,6 +23,8 @@ import RbPageContainer from "./components/PageContainer";
23
23
  import { RbPageContainerProps } from "./components/PageContainer/type";
24
24
  import RbHomePage from "./components/HomePage";
25
25
  import { RbHomePageProps } from "./components/HomePage/type";
26
+ import { RbMarkdownEditor, RbMarkdownConverter } from "./components/MarkdownEditor";
27
+ import { RbMarkdownEditorProps } from "./components/MarkdownEditor/type";
26
28
  import DbUtil from "./services/utils/dbUtil";
27
29
  import ObjectUtil from "./services/utils/objectUtil";
28
30
  import EventUtil from "./services/utils/eventUtil";
@@ -66,6 +68,8 @@ export { RbPageContainer };
66
68
  export type { RbPageContainerProps };
67
69
  export { RbHomePage };
68
70
  export type { RbHomePageProps };
71
+ export { RbMarkdownConverter, RbMarkdownEditor };
72
+ export type { RbMarkdownEditorProps };
69
73
  export { DbUtil, ObjectUtil, EventUtil, StorageUtil, ResourceUtil, RenderUtil, StringUtil, NumberUtil, RandomUtil, UnicodeUtil };
70
74
  export { EventEnum, StorageEnum };
71
75
  export { CommonConstant, IconConstant, DbConstant };
@@ -88,5 +92,7 @@ declare const _default: {
88
92
  RbAttachmentText: React.FC<RbAttachmentTextProps>;
89
93
  RbPageContainer: React.FC<RbPageContainerProps>;
90
94
  RbHomePage: React.FC<RbHomePageProps>;
95
+ RbMarkdownConverter: import("showdown").Converter;
96
+ RbMarkdownEditor: React.FC<RbMarkdownEditorProps>;
91
97
  };
92
98
  export default _default;