@pubwave/editor 0.1.1-alpha.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.
package/package.json ADDED
@@ -0,0 +1,132 @@
1
+ {
2
+ "name": "@pubwave/editor",
3
+ "version": "0.1.1-alpha.0",
4
+ "description": "A Notion-level block editor built with React and Tiptap",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
19
+ },
20
+ "./dist/index.css": "./dist/index.css",
21
+ "./index.css": "./dist/index.css"
22
+ },
23
+ "files": [
24
+ "dist",
25
+ "README.md",
26
+ "LICENSE"
27
+ ],
28
+ "sideEffects": [
29
+ "*.css"
30
+ ],
31
+ "scripts": {
32
+ "dev": "vite",
33
+ "dev:lib": "vite --mode lib",
34
+ "build": "tsc -b && vite build",
35
+ "build:lib": "vite build --mode lib && (test -f dist/editor.css && mv dist/editor.css dist/index.css || true)",
36
+ "lint": "eslint .",
37
+ "lint:fix": "eslint . --fix",
38
+ "format": "prettier --write .",
39
+ "format:check": "prettier --check .",
40
+ "test": "vitest",
41
+ "test:unit": "vitest run",
42
+ "test:integration": "playwright test --project=integration",
43
+ "test:integration:vite": "playwright test --project=vite-react",
44
+ "test:integration:nextjs": "playwright test --project=nextjs",
45
+ "test:integration:all": "playwright test --project=vite-react --project=nextjs",
46
+ "test:stop-servers": "lsof -ti:3000,5174 | xargs kill -9 2>/dev/null || echo 'No servers running on ports 3000 or 5174'",
47
+ "test:coverage": "vitest run --coverage",
48
+ "typecheck": "tsc --noEmit",
49
+ "prepublishOnly": "npm run build:lib"
50
+ },
51
+ "peerDependencies": {
52
+ "react": "^18.0.0 || ^19.0.0",
53
+ "react-dom": "^18.0.0 || ^19.0.0"
54
+ },
55
+ "dependencies": {
56
+ "@tiptap/core": "^2.12.0",
57
+ "@tiptap/extension-blockquote": "^2.27.1",
58
+ "@tiptap/extension-bold": "^2.12.0",
59
+ "@tiptap/extension-bullet-list": "^2.27.1",
60
+ "@tiptap/extension-code": "^2.27.1",
61
+ "@tiptap/extension-code-block": "^2.27.1",
62
+ "@tiptap/extension-document": "^2.12.0",
63
+ "@tiptap/extension-dropcursor": "^2.27.1",
64
+ "@tiptap/extension-gapcursor": "^2.27.1",
65
+ "@tiptap/extension-hard-break": "^2.27.1",
66
+ "@tiptap/extension-heading": "^2.12.0",
67
+ "@tiptap/extension-history": "^2.12.0",
68
+ "@tiptap/extension-horizontal-rule": "^2.27.1",
69
+ "@tiptap/extension-image": "^2.27.1",
70
+ "@tiptap/extension-italic": "^2.12.0",
71
+ "@tiptap/extension-link": "^2.12.0",
72
+ "@tiptap/extension-list-item": "^2.27.1",
73
+ "@tiptap/extension-ordered-list": "^2.27.1",
74
+ "@tiptap/extension-paragraph": "^2.12.0",
75
+ "@tiptap/extension-placeholder": "^2.12.0",
76
+ "@tiptap/extension-strike": "^2.27.1",
77
+ "@tiptap/extension-task-item": "^2.27.1",
78
+ "@tiptap/extension-task-list": "^2.27.1",
79
+ "@tiptap/extension-text": "^2.12.0",
80
+ "@tiptap/extension-underline": "^2.27.1",
81
+ "@tiptap/pm": "^2.12.0",
82
+ "@tiptap/react": "^2.12.0",
83
+ "@tiptap/suggestion": "^2.27.1",
84
+ "tippy.js": "^6.3.7"
85
+ },
86
+ "devDependencies": {
87
+ "@eslint/js": "^9.17.0",
88
+ "@playwright/test": "^1.49.1",
89
+ "@tailwindcss/postcss": "^4.1.18",
90
+ "@testing-library/jest-dom": "^6.9.1",
91
+ "@testing-library/react": "^16.3.1",
92
+ "@types/node": "^22.10.2",
93
+ "@types/react": "^18.3.17",
94
+ "@types/react-dom": "^18.3.5",
95
+ "@vitejs/plugin-react": "^4.3.4",
96
+ "@vitest/coverage-v8": "^2.1.8",
97
+ "autoprefixer": "^10.4.23",
98
+ "eslint": "^9.17.0",
99
+ "eslint-config-prettier": "^9.1.0",
100
+ "eslint-plugin-react": "^7.37.2",
101
+ "eslint-plugin-react-hooks": "^5.1.0",
102
+ "globals": "^15.14.0",
103
+ "jsdom": "^27.3.0",
104
+ "prettier": "^3.4.2",
105
+ "react": "^18.3.1",
106
+ "react-dom": "^18.3.1",
107
+ "tailwindcss": "^4.1.18",
108
+ "typescript": "^5.7.2",
109
+ "typescript-eslint": "^8.18.1",
110
+ "vite": "^6.0.5",
111
+ "vite-plugin-dts": "^4.4.0",
112
+ "vitest": "^2.1.8"
113
+ },
114
+ "repository": {
115
+ "type": "git",
116
+ "url": "git+https://github.com/pubwave/pubwave-editor.git"
117
+ },
118
+ "keywords": [
119
+ "editor",
120
+ "block-editor",
121
+ "rich-text",
122
+ "tiptap",
123
+ "prosemirror",
124
+ "notion",
125
+ "react"
126
+ ],
127
+ "author": "Pubwave",
128
+ "license": "MIT",
129
+ "engines": {
130
+ "node": ">=18.0.0"
131
+ }
132
+ }