asma-ui-richeditor 0.0.2 → 0.1.0

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.
@@ -0,0 +1,4 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export declare const MenuBar: ({ editor }: {
3
+ editor: Editor | null;
4
+ }) => JSX.Element | null;
@@ -1,13 +1,20 @@
1
- import type { FC } from 'react';
2
- import ReactQuill from 'react-quill';
3
- export interface IRichInput extends ReactQuill.ReactQuillProps {
4
- disabled?: boolean;
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>;
6
+ immediatelyRender?: boolean;
7
+ id?: string;
5
8
  label?: string;
6
- isRequired?: boolean;
9
+ placeholder?: string;
10
+ className?: string;
11
+ disabled?: boolean;
7
12
  is_error?: boolean;
8
- helperText?: string;
9
- dataTest: string;
10
13
  ghost?: boolean;
14
+ helperText?: string;
15
+ isRequired?: boolean;
16
+ hideMenuBar?: boolean;
17
+ noDefaultStyles?: boolean;
11
18
  }
12
19
  declare const RichInput: FC<IRichInput>;
13
20
  export { RichInput };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.0.2",
6
+ "version": "0.1.0",
7
7
  "type": "module",
8
8
  "files": [
9
9
  "dist/**/*",
@@ -41,10 +41,27 @@
41
41
  "@emotion/styled": "^11.11.0",
42
42
  "@fontsource/roboto": "^5.0.4",
43
43
  "@mui/material": "^5.13.7",
44
+ "@tiptap/extension-blockquote": "^2.6.5",
45
+ "@tiptap/extension-bold": "^2.6.5",
46
+ "@tiptap/extension-bullet-list": "^2.6.5",
47
+ "@tiptap/extension-color": "^2.6.5",
48
+ "@tiptap/extension-document": "^2.6.5",
49
+ "@tiptap/extension-hard-break": "^2.6.5",
50
+ "@tiptap/extension-heading": "^2.6.5",
51
+ "@tiptap/extension-horizontal-rule": "^2.6.5",
52
+ "@tiptap/extension-italic": "^2.6.5",
53
+ "@tiptap/extension-list-item": "^2.6.5",
54
+ "@tiptap/extension-ordered-list": "^2.6.5",
55
+ "@tiptap/extension-paragraph": "^2.6.5",
56
+ "@tiptap/extension-placeholder": "^2.6.5",
57
+ "@tiptap/extension-strike": "^2.6.5",
58
+ "@tiptap/extension-text": "^2.6.5",
59
+ "@tiptap/extension-text-style": "^2.6.5",
60
+ "@tiptap/react": "^2.6.5",
61
+ "clsx": "^2.1.1",
44
62
  "node": "18.17.0",
45
63
  "react": "^18.2.0",
46
- "react-dom": "^18.2.0",
47
- "react-quill": "^2.0.0"
64
+ "react-dom": "^18.2.0"
48
65
  },
49
66
  "devDependencies": {
50
67
  "@changesets/cli": "^2.26.2",
@@ -72,7 +89,7 @@
72
89
  "@typescript-eslint/eslint-plugin": "^5.59.0",
73
90
  "@typescript-eslint/parser": "^5.59.0",
74
91
  "@vitejs/plugin-react": "^4.0.0",
75
- "asma-core-ui": "3.1.0-3",
92
+ "asma-core-ui": "^3.0.71",
76
93
  "autoprefixer": "^10.4.14",
77
94
  "axe-playwright": "^1.2.3",
78
95
  "axios": "^1.6.8",
@@ -98,7 +115,6 @@
98
115
  "@emotion/react": "^11.*",
99
116
  "@emotion/styled": "^11.*",
100
117
  "@mui/material": "^5.*",
101
- "asma-core-ui": "^3.*",
102
118
  "immer": "^9.*",
103
119
  "react": "^18.*",
104
120
  "react-dom": "^18.*"