tiptap-office 0.0.1
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/LICENSE +201 -0
- package/README.md +19 -0
- package/dist/ai-drafting-GIKFKPLS.css +63 -0
- package/dist/comments-36ASF3VI.css +171 -0
- package/dist/index.cjs +7031 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +509 -0
- package/dist/index.d.ts +509 -0
- package/dist/index.js +7064 -0
- package/dist/index.js.map +1 -0
- package/dist/tracked-changes-NCBRMECA.css +57 -0
- package/package.json +86 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* Suggestion marks — insertion (<ins>) and deletion (<del>) */
|
|
2
|
+
.ProseMirror ins {
|
|
3
|
+
color: #16a34a;
|
|
4
|
+
text-decoration: underline;
|
|
5
|
+
text-decoration-color: #16a34a;
|
|
6
|
+
background-color: rgba(22, 163, 74, 0.1);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ProseMirror ins:hover {
|
|
10
|
+
background-color: rgba(22, 163, 74, 0.2);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ProseMirror del {
|
|
14
|
+
color: #dc2626;
|
|
15
|
+
text-decoration: line-through;
|
|
16
|
+
text-decoration-color: #dc2626;
|
|
17
|
+
background-color: rgba(220, 38, 38, 0.1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ProseMirror del:hover {
|
|
21
|
+
background-color: rgba(220, 38, 38, 0.2);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Modification marks */
|
|
25
|
+
.ProseMirror [data-type="modification"] {
|
|
26
|
+
color: #d97706;
|
|
27
|
+
text-decoration: underline wavy;
|
|
28
|
+
text-decoration-color: #d97706;
|
|
29
|
+
background-color: rgba(217, 119, 6, 0.1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Dark mode */
|
|
33
|
+
:is(.dark, .dark *) .ProseMirror ins {
|
|
34
|
+
color: #4ade80;
|
|
35
|
+
text-decoration-color: #4ade80;
|
|
36
|
+
background-color: rgba(74, 222, 128, 0.1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:is(.dark, .dark *) .ProseMirror ins:hover {
|
|
40
|
+
background-color: rgba(74, 222, 128, 0.2);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:is(.dark, .dark *) .ProseMirror del {
|
|
44
|
+
color: #f87171;
|
|
45
|
+
text-decoration-color: #f87171;
|
|
46
|
+
background-color: rgba(248, 113, 113, 0.1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:is(.dark, .dark *) .ProseMirror del:hover {
|
|
50
|
+
background-color: rgba(248, 113, 113, 0.2);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:is(.dark, .dark *) .ProseMirror [data-type="modification"] {
|
|
54
|
+
color: #fbbf24;
|
|
55
|
+
text-decoration-color: #fbbf24;
|
|
56
|
+
background-color: rgba(251, 191, 36, 0.1);
|
|
57
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tiptap-office",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Pluggable Tiptap-based word processor with AI agent editing, suggestions / track changes, comments, and DOCX I/O.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./styles.css": "./dist/styles.css"
|
|
17
|
+
},
|
|
18
|
+
"files": ["dist", "README.md", "LICENSE"],
|
|
19
|
+
"sideEffects": ["**/*.css"],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsup",
|
|
22
|
+
"dev": "tsup --watch",
|
|
23
|
+
"typecheck": "tsc --noEmit"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": ">=18",
|
|
27
|
+
"react-dom": ">=18",
|
|
28
|
+
"@tiptap/core": ">=3",
|
|
29
|
+
"@tiptap/pm": ">=3",
|
|
30
|
+
"@tiptap/react": ">=3",
|
|
31
|
+
"@tiptap/starter-kit": ">=3",
|
|
32
|
+
"@tiptap/extension-color": ">=3",
|
|
33
|
+
"@tiptap/extension-font-family": ">=3",
|
|
34
|
+
"@tiptap/extension-highlight": ">=3",
|
|
35
|
+
"@tiptap/extension-image": ">=3",
|
|
36
|
+
"@tiptap/extension-placeholder": ">=3",
|
|
37
|
+
"@tiptap/extension-table": ">=3",
|
|
38
|
+
"@tiptap/extension-table-cell": ">=3",
|
|
39
|
+
"@tiptap/extension-table-header": ">=3",
|
|
40
|
+
"@tiptap/extension-table-row": ">=3",
|
|
41
|
+
"@tiptap/extension-text-align": ">=3",
|
|
42
|
+
"@tiptap/extension-text-style": ">=3",
|
|
43
|
+
"@tiptap/extension-underline": ">=3"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@ai-sdk/anthropic": "^3.0.77",
|
|
47
|
+
"@ai-sdk/google": "^3.0.73",
|
|
48
|
+
"@ai-sdk/openai": "^3.0.63",
|
|
49
|
+
"@blocknote/prosemirror-suggest-changes": "^0.1.3",
|
|
50
|
+
"@tanstack/react-query": "^5.85.5",
|
|
51
|
+
"ai": "^6.0.182",
|
|
52
|
+
"diff": "^8.0.4",
|
|
53
|
+
"docx": "^9.5.2",
|
|
54
|
+
"jszip": "^3.10.1",
|
|
55
|
+
"lucide-react": "^0.525.0",
|
|
56
|
+
"nanoid": "^5.0.9",
|
|
57
|
+
"react-markdown": "^10.1.0",
|
|
58
|
+
"remark-gfm": "^4.0.1",
|
|
59
|
+
"zod": "^4.0.5"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@types/diff": "^8.0.0",
|
|
63
|
+
"@types/react": "^18.3.12",
|
|
64
|
+
"@types/react-dom": "^18.3.1",
|
|
65
|
+
"@tiptap/core": "^3.19.0",
|
|
66
|
+
"@tiptap/pm": "^3.19.0",
|
|
67
|
+
"@tiptap/react": "^3.19.0",
|
|
68
|
+
"@tiptap/starter-kit": "^3.19.0",
|
|
69
|
+
"@tiptap/extension-color": "^3.17.1",
|
|
70
|
+
"@tiptap/extension-font-family": "^3.17.1",
|
|
71
|
+
"@tiptap/extension-highlight": "^3.17.1",
|
|
72
|
+
"@tiptap/extension-image": "^3.19.0",
|
|
73
|
+
"@tiptap/extension-placeholder": "^3.19.0",
|
|
74
|
+
"@tiptap/extension-table": "^3.19.0",
|
|
75
|
+
"@tiptap/extension-table-cell": "^3.19.0",
|
|
76
|
+
"@tiptap/extension-table-header": "^3.19.0",
|
|
77
|
+
"@tiptap/extension-table-row": "^3.19.0",
|
|
78
|
+
"@tiptap/extension-text-align": "^3.19.0",
|
|
79
|
+
"@tiptap/extension-text-style": "^3.17.1",
|
|
80
|
+
"@tiptap/extension-underline": "^3.19.0",
|
|
81
|
+
"react": "^18.3.1",
|
|
82
|
+
"react-dom": "^18.3.1",
|
|
83
|
+
"tsup": "^8.3.0",
|
|
84
|
+
"typescript": "^5.6.0"
|
|
85
|
+
}
|
|
86
|
+
}
|