@uiw/react-md-editor 3.20.8 → 3.20.10
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/mdeditor.css +1 -1
- package/dist/mdeditor.js +1283 -509
- package/dist/mdeditor.min.css +1 -1
- package/dist/mdeditor.min.js +1 -1
- package/esm/Editor.d.ts +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/lib/Editor.d.ts +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +12 -0
- package/package.json +1 -1
- package/src/Editor.tsx +1 -1
- package/src/index.tsx +1 -0
package/esm/Editor.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export interface MDEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
31
31
|
* The height of the editor.
|
|
32
32
|
* ⚠️ `Dragbar` is invalid when **`height`** parameter percentage.
|
|
33
33
|
*/
|
|
34
|
-
height?:
|
|
34
|
+
height?: CSSProperties['height'];
|
|
35
35
|
/**
|
|
36
36
|
* Custom toolbar heigth
|
|
37
37
|
* @default 29px
|
package/esm/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as commands from './commands';
|
|
|
3
3
|
import * as MarkdownUtil from './utils/markdownUtils';
|
|
4
4
|
export * from './commands';
|
|
5
5
|
export * from './utils/markdownUtils';
|
|
6
|
+
export * from './utils/InsertTextAtPosition';
|
|
6
7
|
export * from './Editor';
|
|
7
8
|
export * from './Context';
|
|
8
9
|
export { MarkdownUtil, commands };
|
package/esm/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import * as commands from './commands';
|
|
|
3
3
|
import * as MarkdownUtil from './utils/markdownUtils';
|
|
4
4
|
export * from './commands';
|
|
5
5
|
export * from './utils/markdownUtils';
|
|
6
|
+
export * from './utils/InsertTextAtPosition';
|
|
6
7
|
export * from './Editor';
|
|
7
8
|
export * from './Context';
|
|
8
9
|
export { MarkdownUtil, commands };
|
package/lib/Editor.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export interface MDEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
31
31
|
* The height of the editor.
|
|
32
32
|
* ⚠️ `Dragbar` is invalid when **`height`** parameter percentage.
|
|
33
33
|
*/
|
|
34
|
-
height?:
|
|
34
|
+
height?: CSSProperties['height'];
|
|
35
35
|
/**
|
|
36
36
|
* Custom toolbar heigth
|
|
37
37
|
* @default 29px
|
package/lib/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as commands from './commands';
|
|
|
3
3
|
import * as MarkdownUtil from './utils/markdownUtils';
|
|
4
4
|
export * from './commands';
|
|
5
5
|
export * from './utils/markdownUtils';
|
|
6
|
+
export * from './utils/InsertTextAtPosition';
|
|
6
7
|
export * from './Editor';
|
|
7
8
|
export * from './Context';
|
|
8
9
|
export { MarkdownUtil, commands };
|
package/lib/index.js
CHANGED
|
@@ -47,6 +47,18 @@ Object.keys(MarkdownUtil).forEach(function (key) {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
|
+
var _InsertTextAtPosition = require("./utils/InsertTextAtPosition");
|
|
51
|
+
Object.keys(_InsertTextAtPosition).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
54
|
+
if (key in exports && exports[key] === _InsertTextAtPosition[key]) return;
|
|
55
|
+
Object.defineProperty(exports, key, {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function get() {
|
|
58
|
+
return _InsertTextAtPosition[key];
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
});
|
|
50
62
|
var _Context = require("./Context");
|
|
51
63
|
Object.keys(_Context).forEach(function (key) {
|
|
52
64
|
if (key === "default" || key === "__esModule") return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uiw/react-md-editor",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.10",
|
|
4
4
|
"description": "A markdown editor with preview, implemented with React.js and TypeScript.",
|
|
5
5
|
"homepage": "https://uiwjs.github.io/react-md-editor/",
|
|
6
6
|
"author": "kenny wang <wowohoo@qq.com>",
|
package/src/Editor.tsx
CHANGED
|
@@ -35,7 +35,7 @@ export interface MDEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
35
35
|
* The height of the editor.
|
|
36
36
|
* ⚠️ `Dragbar` is invalid when **`height`** parameter percentage.
|
|
37
37
|
*/
|
|
38
|
-
height?:
|
|
38
|
+
height?: CSSProperties['height'];
|
|
39
39
|
/**
|
|
40
40
|
* Custom toolbar heigth
|
|
41
41
|
* @default 29px
|