richtor 1.0.8 → 1.0.11
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 +14 -2
- package/package.json +33 -9
package/README.md
CHANGED
|
@@ -17,6 +17,8 @@ A beautiful and feature-rich WYSIWYG editor built with [Tiptap](https://tiptap.d
|
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
|
+
### 1. Install the package
|
|
21
|
+
|
|
20
22
|
```bash
|
|
21
23
|
npm install richtor
|
|
22
24
|
# or
|
|
@@ -25,12 +27,22 @@ yarn add richtor
|
|
|
25
27
|
pnpm add richtor
|
|
26
28
|
```
|
|
27
29
|
|
|
30
|
+
### 2. Install peer dependencies
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm install @tiptap/core @tiptap/react @tiptap/pm @tiptap/starter-kit lucide-react lowlight highlight.js
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### 3. Import styles
|
|
37
|
+
|
|
38
|
+
```tsx
|
|
39
|
+
import 'richtor/style';
|
|
40
|
+
```
|
|
41
|
+
|
|
28
42
|
## Usage
|
|
29
43
|
|
|
30
44
|
### Basic Editor
|
|
31
45
|
|
|
32
|
-
**Styles are automatically included!** No need to manually import CSS.
|
|
33
|
-
|
|
34
46
|
```tsx
|
|
35
47
|
import { Editor } from 'richtor';
|
|
36
48
|
import { useState } from 'react';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "richtor",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A beautiful and feature-rich WYSIWYG editor built with Tiptap and shadcn/ui",
|
|
7
7
|
"author": "Jamir Hossain <jamir.hossain@example.com>",
|
|
@@ -27,13 +27,19 @@
|
|
|
27
27
|
"main": "./dist/editor.umd.js",
|
|
28
28
|
"module": "./dist/editor.es.js",
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
|
+
"sideEffects": [
|
|
31
|
+
"*.css",
|
|
32
|
+
"dist/richtor.css"
|
|
33
|
+
],
|
|
30
34
|
"exports": {
|
|
31
35
|
".": {
|
|
32
36
|
"import": "./dist/editor.es.js",
|
|
33
37
|
"require": "./dist/editor.umd.js",
|
|
34
38
|
"types": "./dist/index.d.ts"
|
|
35
39
|
},
|
|
36
|
-
"./
|
|
40
|
+
"./style": "./dist/richtor.css",
|
|
41
|
+
"./styles": "./dist/richtor.css",
|
|
42
|
+
"./dist/richtor.css": "./dist/richtor.css"
|
|
37
43
|
},
|
|
38
44
|
"files": [
|
|
39
45
|
"dist",
|
|
@@ -53,13 +59,24 @@
|
|
|
53
59
|
"peerDependencies": {
|
|
54
60
|
"react": "^18.0.0 || ^19.0.0",
|
|
55
61
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
56
|
-
"@tiptap/core": "^3.
|
|
57
|
-
"@tiptap/react": "^3.
|
|
58
|
-
"@tiptap/pm": "^3.
|
|
59
|
-
"@tiptap/starter-kit": "^3.
|
|
60
|
-
"lucide-react": "
|
|
61
|
-
"lowlight": "^3.
|
|
62
|
-
"highlight.js": "^11.
|
|
62
|
+
"@tiptap/core": "^3.0.0",
|
|
63
|
+
"@tiptap/react": "^3.0.0",
|
|
64
|
+
"@tiptap/pm": "^3.0.0",
|
|
65
|
+
"@tiptap/starter-kit": "^3.0.0",
|
|
66
|
+
"lucide-react": ">=0.400.0",
|
|
67
|
+
"lowlight": "^3.0.0",
|
|
68
|
+
"highlight.js": "^11.0.0"
|
|
69
|
+
},
|
|
70
|
+
"peerDependenciesMeta": {
|
|
71
|
+
"lucide-react": {
|
|
72
|
+
"optional": false
|
|
73
|
+
},
|
|
74
|
+
"lowlight": {
|
|
75
|
+
"optional": false
|
|
76
|
+
},
|
|
77
|
+
"highlight.js": {
|
|
78
|
+
"optional": false
|
|
79
|
+
}
|
|
63
80
|
},
|
|
64
81
|
"dependencies": {
|
|
65
82
|
"@codemirror/autocomplete": "^6.20.0",
|
|
@@ -112,6 +129,10 @@
|
|
|
112
129
|
},
|
|
113
130
|
"devDependencies": {
|
|
114
131
|
"@eslint/js": "^9.39.1",
|
|
132
|
+
"@tiptap/core": "^3.11.0",
|
|
133
|
+
"@tiptap/pm": "^3.11.0",
|
|
134
|
+
"@tiptap/react": "^3.11.0",
|
|
135
|
+
"@tiptap/starter-kit": "^3.11.0",
|
|
115
136
|
"@types/node": "^24.10.1",
|
|
116
137
|
"@types/react": "^19.2.5",
|
|
117
138
|
"@types/react-dom": "^19.2.3",
|
|
@@ -122,6 +143,9 @@
|
|
|
122
143
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
123
144
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
124
145
|
"globals": "^16.5.0",
|
|
146
|
+
"highlight.js": "^11.11.1",
|
|
147
|
+
"lowlight": "^3.3.0",
|
|
148
|
+
"lucide-react": "^0.555.0",
|
|
125
149
|
"prettier": "^3.7.1",
|
|
126
150
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
127
151
|
"prettier-plugin-tailwindcss": "^0.7.1",
|