wysimark-lite 0.25.38 → 0.25.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.
- package/README.md +2 -0
- package/dist/{index.d.ts → index.d.mts} +2 -2
- package/dist/index.js +126 -125
- package/dist/index.mjs +712 -755
- package/dist/index.mjs.map +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,6 +13,8 @@ Thanks to the original author of wysimark, portive m(_ _)m
|
|
|
13
13
|
You can try out the editor using storybook in the following link:
|
|
14
14
|
https://takeshy.github.io/wysimark-lite
|
|
15
15
|
|
|
16
|
+

|
|
17
|
+
|
|
16
18
|
## Usage
|
|
17
19
|
|
|
18
20
|
### As React Component
|
|
@@ -5,7 +5,7 @@ import { HistoryEditor } from 'slate-history';
|
|
|
5
5
|
import { ReactEditor } from 'slate-react';
|
|
6
6
|
import { SetReturnType, SetOptional, UnionToIntersection, Simplify } from 'type-fest';
|
|
7
7
|
import react from 'react';
|
|
8
|
-
import { RenderElementProps, RenderLeafProps, RenderPlaceholderProps
|
|
8
|
+
import { EditableProps as EditableProps$1, RenderElementProps, RenderLeafProps, RenderPlaceholderProps } from 'slate-react/dist/components/editable';
|
|
9
9
|
|
|
10
10
|
type OnImageChangeHandler = (file: File) => Promise<string>;
|
|
11
11
|
type OnFileSelectHandler = () => Promise<string | null>;
|
|
@@ -1063,4 +1063,4 @@ type Wysimark = {
|
|
|
1063
1063
|
*/
|
|
1064
1064
|
declare function createWysimark(containerElement: HTMLElement, options: StandaloneOptions): Wysimark;
|
|
1065
1065
|
|
|
1066
|
-
export { Editable, OnImageChangeHandler, UseEditorOptions, Wysimark, createWysimark, unescapeMarkdown, useEditor };
|
|
1066
|
+
export { Editable, type OnImageChangeHandler, type UseEditorOptions, type Wysimark, createWysimark, unescapeMarkdown, useEditor };
|