@npm-questionpro/wick-ui-editor 0.14.2 → 2.0.0-next.4
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/dist/html-Ccb8eKR4.js +7158 -0
- package/dist/index.d.ts +0 -44
- package/dist/standalone-DSxjHhed.js +3574 -0
- package/dist/style.css +2 -1
- package/dist/wick-ui-editor/es/index.js +710 -944
- package/llms.txt +31 -0
- package/package.json +40 -49
- package/dist/html-asrO2y6j.js +0 -2893
- package/dist/standalone-uA6N_bR1.js +0 -2458
package/llms.txt
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @npm-questionpro/wick-ui-editor
|
|
2
|
+
|
|
3
|
+
> Wick Editor is a powerful and intuitive content editing component built with React. It provides a rich set of features for creating and managing content, making it ideal for applications that require dynamic and interactive content creation.
|
|
4
|
+
|
|
5
|
+
Version: 2.0.0-next.4
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
```
|
|
9
|
+
pnpm add @npm-questionpro/wick-ui-editor
|
|
10
|
+
# Peer dependencies:
|
|
11
|
+
pnpm add react react-dom @npm-questionpro/wick-ui-icon @npm-questionpro/wick-ui-lib @radix-ui/react-dropdown-menu @tiptap/extension-image @tiptap/extension-list @tiptap/extension-subscript @tiptap/extension-superscript @tiptap/extension-table @tiptap/extension-text-align @tiptap/extension-text-style @tiptap/pm @tiptap/react @tiptap/starter-kit clsx dompurify shiki
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Quick start
|
|
15
|
+
```tsx
|
|
16
|
+
import {WuContentEditor} from '@npm-questionpro/wick-ui-editor'
|
|
17
|
+
|
|
18
|
+
function App() {
|
|
19
|
+
return (
|
|
20
|
+
<WuContentEditor
|
|
21
|
+
defaultValue="<p>Start typing...</p>"
|
|
22
|
+
onUpdate={html => console.log(html)}
|
|
23
|
+
/>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Links
|
|
29
|
+
- npm: https://npmjs.com/package/@npm-questionpro/wick-ui-editor
|
|
30
|
+
- llms.txt (unpkg): https://unpkg.com/@npm-questionpro/wick-ui-editor/llms.txt
|
|
31
|
+
- llms.txt (jsDelivr): https://cdn.jsdelivr.net/npm/@npm-questionpro/wick-ui-editor/llms.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm-questionpro/wick-ui-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.0-next.4",
|
|
4
4
|
"description": "Wick Editor is a powerful and intuitive content editing component built with React. It provides a rich set of features for creating and managing content, making it ideal for applications that require dynamic and interactive content creation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"url": "https://github.com/QuestionPro/wick-ui/issues"
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
|
-
"main": "./dist/wick-ui-editor/umd/index.js",
|
|
25
24
|
"module": "./dist/wick-ui-editor/es/index.js",
|
|
26
25
|
"types": "./dist/index.d.ts",
|
|
27
26
|
"exports": {
|
|
@@ -35,12 +34,13 @@
|
|
|
35
34
|
"**/*.css"
|
|
36
35
|
],
|
|
37
36
|
"files": [
|
|
38
|
-
"dist"
|
|
37
|
+
"dist",
|
|
38
|
+
"llms.txt"
|
|
39
39
|
],
|
|
40
40
|
"private": false,
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@npm-questionpro/wick-ui-icon": ">=
|
|
43
|
-
"@npm-questionpro/wick-ui-lib": ">=
|
|
42
|
+
"@npm-questionpro/wick-ui-icon": ">= 2.0.0",
|
|
43
|
+
"@npm-questionpro/wick-ui-lib": ">= 2.0.0",
|
|
44
44
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
45
45
|
"@tiptap/extension-image": "^3.14.0",
|
|
46
46
|
"@tiptap/extension-list": "^3.14.0",
|
|
@@ -54,23 +54,16 @@
|
|
|
54
54
|
"@tiptap/starter-kit": "^3.14.0",
|
|
55
55
|
"clsx": "^2.1.1",
|
|
56
56
|
"dompurify": "^3.3.1",
|
|
57
|
-
"
|
|
58
|
-
"react": "
|
|
59
|
-
"
|
|
57
|
+
"react": "^19.0.0",
|
|
58
|
+
"react-dom": "^19.0.0",
|
|
59
|
+
"shiki": "^4.0.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@eslint/js": "^9.39.1",
|
|
63
|
-
"@npm-questionpro/wick-ui-icon": "latest",
|
|
64
|
-
"@npm-questionpro/wick-ui-lib": "latest",
|
|
65
62
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
66
|
-
"@storybook/
|
|
67
|
-
"@storybook/addon-designs": "^11.1.0",
|
|
68
|
-
"@storybook/addon-docs": "10.1.5",
|
|
69
|
-
"@storybook/addon-links": "10.1.5",
|
|
70
|
-
"@storybook/react-vite": "10.1.5",
|
|
63
|
+
"@storybook/react-vite": "^10.4.0",
|
|
71
64
|
"@testing-library/dom": "^10.4.1",
|
|
72
65
|
"@testing-library/jest-dom": "^6.9.1",
|
|
73
|
-
"@testing-library/react": "^16.3.
|
|
66
|
+
"@testing-library/react": "^16.3.2",
|
|
74
67
|
"@testing-library/user-event": "^14.6.1",
|
|
75
68
|
"@tiptap/extension-image": "^3.14.0",
|
|
76
69
|
"@tiptap/extension-list": "^3.14.0",
|
|
@@ -83,48 +76,46 @@
|
|
|
83
76
|
"@tiptap/react": "^3.14.0",
|
|
84
77
|
"@tiptap/starter-kit": "^3.14.0",
|
|
85
78
|
"@types/node": "^22.19.1",
|
|
86
|
-
"@types/react": "^19.
|
|
87
|
-
"@types/react-dom": "^19.
|
|
88
|
-
"@
|
|
89
|
-
"@
|
|
90
|
-
"@
|
|
91
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
92
|
-
"@vitest/ui": "^3.2.4",
|
|
79
|
+
"@types/react": "^19.0.0",
|
|
80
|
+
"@types/react-dom": "^19.0.0",
|
|
81
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
82
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
83
|
+
"@vitest/ui": "^4.1.8",
|
|
93
84
|
"autoprefixer": "^10.4.22",
|
|
94
85
|
"clsx": "^2.1.1",
|
|
95
86
|
"cssnano": "^7.1.2",
|
|
96
|
-
"eslint": "^
|
|
97
|
-
"eslint-plugin-import": "^2.32.0",
|
|
98
|
-
"eslint-plugin-react": "^7.37.5",
|
|
99
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
100
|
-
"eslint-plugin-react-refresh": "^0.4.24",
|
|
101
|
-
"eslint-plugin-storybook": "10.1.5",
|
|
102
|
-
"eslint-plugin-unicorn": "^56.0.1",
|
|
103
|
-
"globals": "^15.15.0",
|
|
87
|
+
"eslint": "^10.4.1",
|
|
104
88
|
"jsdom": "^26.1.0",
|
|
105
89
|
"postcss": "^8.5.6",
|
|
106
|
-
"prettier": "^3.
|
|
107
|
-
"react": "^
|
|
108
|
-
"react-dom": "^
|
|
109
|
-
"
|
|
110
|
-
"typescript": "^
|
|
111
|
-
"typescript-eslint": "^8.
|
|
112
|
-
"vite": "^
|
|
90
|
+
"prettier": "^3.8.3",
|
|
91
|
+
"react": "^19.0.0",
|
|
92
|
+
"react-dom": "^19.0.0",
|
|
93
|
+
"stylelint": "^16.3.1",
|
|
94
|
+
"typescript": "^6.0.3",
|
|
95
|
+
"typescript-eslint": "^8.60.0",
|
|
96
|
+
"vite": "^8.0.15",
|
|
113
97
|
"vite-bundle-analyzer": "^0.22.3",
|
|
114
98
|
"vite-plugin-dts": "^4.5.4",
|
|
115
|
-
"
|
|
116
|
-
"
|
|
99
|
+
"vitest": "^4.1.8",
|
|
100
|
+
"@npm-questionpro/wick-ui-icon": "2.0.0-next.4",
|
|
101
|
+
"@npm-questionpro/wick-ui-lib": "2.0.0-next.4",
|
|
102
|
+
"@npm-questionpro/wick-ui-eslint-config": "1.0.0",
|
|
103
|
+
"@npm-questionpro/wick-ui-prettier-config": "1.0.0",
|
|
104
|
+
"@npm-questionpro/wick-ui-stylelint-config": "1.0.0",
|
|
105
|
+
"@wick-ui/tsconfig": "1.0.0"
|
|
117
106
|
},
|
|
107
|
+
"prettier": "@npm-questionpro/wick-ui-prettier-config",
|
|
118
108
|
"scripts": {
|
|
119
|
-
"build": "tsc
|
|
120
|
-
"lint": "eslint ./src --fix",
|
|
121
|
-
"lint:
|
|
122
|
-
"
|
|
109
|
+
"build": "tsc --noEmit && vite build",
|
|
110
|
+
"lint": "eslint ./src --fix && stylelint 'src/**/*.css' --fix",
|
|
111
|
+
"lint:css": "stylelint 'src/**/*.css' --fix",
|
|
112
|
+
"lint:ci": "tsc --noEmit && eslint --max-warnings 0 ./src && stylelint 'src/**/*.css'",
|
|
113
|
+
"format": "prettier --write .",
|
|
123
114
|
"format:ci": "prettier --check .",
|
|
124
115
|
"test": "vitest run",
|
|
125
|
-
"test:
|
|
126
|
-
"test:
|
|
127
|
-
"
|
|
128
|
-
"
|
|
116
|
+
"test:watch": "vitest",
|
|
117
|
+
"test:ui": "vitest --ui",
|
|
118
|
+
"test:ci": "vitest run --coverage",
|
|
119
|
+
"postbuild": "node ../../scripts/generate-llms-txt.mjs --package packages/wick-ui-editor"
|
|
129
120
|
}
|
|
130
121
|
}
|