asma-ui-richeditor 0.1.2-alpha1 → 0.1.2-alpha2
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/CHANGELOG.md +687 -687
- package/Readme.md +76 -76
- package/dist/asma-ui-richeditor.es.js +8 -8
- package/dist/src/rich-input/MenuBar.d.ts +4 -0
- package/dist/src/rich-input/RichInput.d.ts +18 -2
- package/package.json +2 -6
- package/dist/src/rich-input/LinkDialog.d.ts +0 -9
- package/dist/src/rich-input/Toolbar.d.ts +0 -7
- package/dist/src/rich-input/helpers/EditorExtensions.d.ts +0 -4
- package/dist/src/rich-input/hooks/useToggleMenuVisibility.hook.d.ts +0 -6
- package/dist/src/rich-input/interfaces/types.d.ts +0 -23
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type
|
|
1
|
+
import { type FC, type MutableRefObject } from 'react';
|
|
2
|
+
import { Editor, type UseEditorOptions } from '@tiptap/react';
|
|
3
|
+
export interface IRichInput extends UseEditorOptions {
|
|
4
|
+
dataTest: string;
|
|
5
|
+
inputRef?: MutableRefObject<Editor | null>;
|
|
6
|
+
immediatelyRender?: boolean;
|
|
7
|
+
id?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
is_error?: boolean;
|
|
13
|
+
ghost?: boolean;
|
|
14
|
+
helperText?: string;
|
|
15
|
+
isRequired?: boolean;
|
|
16
|
+
hideMenuBar?: boolean;
|
|
17
|
+
noDefaultStyles?: boolean;
|
|
18
|
+
}
|
|
3
19
|
declare const RichInput: FC<IRichInput>;
|
|
4
20
|
export { RichInput };
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.1.2-
|
|
6
|
+
"version": "0.1.2-alpha2",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist/**/*",
|
|
@@ -40,9 +40,7 @@
|
|
|
40
40
|
"@emotion/react": "^11.11.1",
|
|
41
41
|
"@emotion/styled": "^11.11.0",
|
|
42
42
|
"@fontsource/roboto": "^5.0.4",
|
|
43
|
-
"@iconify/react": "^5.0.2",
|
|
44
43
|
"@mui/material": "^5.13.7",
|
|
45
|
-
"@tiptap/core": "^2.8.0",
|
|
46
44
|
"@tiptap/extension-blockquote": "^2.6.5",
|
|
47
45
|
"@tiptap/extension-bold": "^2.6.5",
|
|
48
46
|
"@tiptap/extension-bullet-list": "^2.6.5",
|
|
@@ -60,13 +58,11 @@
|
|
|
60
58
|
"@tiptap/extension-strike": "^2.6.5",
|
|
61
59
|
"@tiptap/extension-text": "^2.6.5",
|
|
62
60
|
"@tiptap/extension-text-style": "^2.6.5",
|
|
63
|
-
"@tiptap/extension-underline": "^2.8.0",
|
|
64
61
|
"@tiptap/react": "^2.6.5",
|
|
65
62
|
"clsx": "^2.1.1",
|
|
66
63
|
"node": "18.17.0",
|
|
67
64
|
"react": "^18.2.0",
|
|
68
|
-
"react-dom": "^18.2.0"
|
|
69
|
-
"tiptap-extension-font-size": "^1.2.0"
|
|
65
|
+
"react-dom": "^18.2.0"
|
|
70
66
|
},
|
|
71
67
|
"devDependencies": {
|
|
72
68
|
"@changesets/cli": "^2.26.2",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const defaultExtensions: (import("@tiptap/core").Node<any, any> | import("@tiptap/core").Mark<import("@tiptap/extension-text-style").TextStyleOptions, any>)[];
|
|
2
|
-
export declare const editModeExtensions: (import("@tiptap/core").Node<import("@tiptap/extension-heading").HeadingOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-list-item").ListItemOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-bullet-list").BulletListOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-bold").BoldOptions, any> | import("@tiptap/core").Extension<{
|
|
3
|
-
types: string[];
|
|
4
|
-
}, any>)[];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Editor, UseEditorOptions } from "@tiptap/react";
|
|
2
|
-
import type { MutableRefObject } from "react";
|
|
3
|
-
export interface IRichInput extends UseEditorOptions {
|
|
4
|
-
dataTest: string;
|
|
5
|
-
inputRef?: MutableRefObject<Editor | null>;
|
|
6
|
-
immediatelyRender?: boolean;
|
|
7
|
-
id?: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
error?: boolean;
|
|
13
|
-
readOnly?: boolean;
|
|
14
|
-
helperText?: string;
|
|
15
|
-
required?: boolean;
|
|
16
|
-
hideToolbar?: boolean;
|
|
17
|
-
noDefaultStyles?: boolean;
|
|
18
|
-
maxScrollableHeight?: number;
|
|
19
|
-
toolbarDefaultVisible?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface CustomCSSProperties extends React.CSSProperties {
|
|
22
|
-
'--max-scrollable-height'?: string;
|
|
23
|
-
}
|