asma-ui-richeditor 0.1.0 → 0.1.2-alpha1
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 -0
- package/dist/asma-ui-richeditor.es.js +8 -8
- package/dist/src/rich-input/LinkDialog.d.ts +9 -0
- package/dist/src/rich-input/RichInput.d.ts +2 -18
- package/dist/src/rich-input/Toolbar.d.ts +7 -0
- package/dist/src/rich-input/helpers/EditorExtensions.d.ts +4 -0
- package/dist/src/rich-input/hooks/useToggleMenuVisibility.hook.d.ts +6 -0
- package/dist/src/rich-input/interfaces/types.d.ts +23 -0
- package/package.json +7 -2
- package/dist/src/rich-input/MenuBar.d.ts +0 -4
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import { type FC
|
|
2
|
-
import {
|
|
3
|
-
export interface IRichInput extends UseEditorOptions {
|
|
4
|
-
dataTest: string;
|
|
5
|
-
inputRef?: MutableRefObject<Editor>;
|
|
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
|
-
}
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { IRichInput } from './interfaces/types';
|
|
19
3
|
declare const RichInput: FC<IRichInput>;
|
|
20
4
|
export { RichInput };
|
|
@@ -0,0 +1,4 @@
|
|
|
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>)[];
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.2-alpha1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist/**/*",
|
|
@@ -40,7 +40,9 @@
|
|
|
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",
|
|
43
44
|
"@mui/material": "^5.13.7",
|
|
45
|
+
"@tiptap/core": "^2.8.0",
|
|
44
46
|
"@tiptap/extension-blockquote": "^2.6.5",
|
|
45
47
|
"@tiptap/extension-bold": "^2.6.5",
|
|
46
48
|
"@tiptap/extension-bullet-list": "^2.6.5",
|
|
@@ -50,6 +52,7 @@
|
|
|
50
52
|
"@tiptap/extension-heading": "^2.6.5",
|
|
51
53
|
"@tiptap/extension-horizontal-rule": "^2.6.5",
|
|
52
54
|
"@tiptap/extension-italic": "^2.6.5",
|
|
55
|
+
"@tiptap/extension-link": "^2.8.0",
|
|
53
56
|
"@tiptap/extension-list-item": "^2.6.5",
|
|
54
57
|
"@tiptap/extension-ordered-list": "^2.6.5",
|
|
55
58
|
"@tiptap/extension-paragraph": "^2.6.5",
|
|
@@ -57,11 +60,13 @@
|
|
|
57
60
|
"@tiptap/extension-strike": "^2.6.5",
|
|
58
61
|
"@tiptap/extension-text": "^2.6.5",
|
|
59
62
|
"@tiptap/extension-text-style": "^2.6.5",
|
|
63
|
+
"@tiptap/extension-underline": "^2.8.0",
|
|
60
64
|
"@tiptap/react": "^2.6.5",
|
|
61
65
|
"clsx": "^2.1.1",
|
|
62
66
|
"node": "18.17.0",
|
|
63
67
|
"react": "^18.2.0",
|
|
64
|
-
"react-dom": "^18.2.0"
|
|
68
|
+
"react-dom": "^18.2.0",
|
|
69
|
+
"tiptap-extension-font-size": "^1.2.0"
|
|
65
70
|
},
|
|
66
71
|
"devDependencies": {
|
|
67
72
|
"@changesets/cli": "^2.26.2",
|