-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
169 lines (169 loc) · 6.74 KB
/
Copy pathpackage.json
File metadata and controls
169 lines (169 loc) · 6.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
{
"name": "@contextualwisdomlab/cwl-editor",
"version": "0.6.0",
"description": "Inkspan — commercial-grade Markdown + HTML WYSIWYG editor module (TipTap/ProseMirror, MIT) with SSR-safe client hydration, native form integration, lossless document snapshots, preparse-resource-bounded duplicate-name-safe versioned persistence envelopes, canonical JSON plus strict UTF-8 byte round trips, SHA-256 strong revision validators, framework-independent pure and imperative atomic revision-envelope evidence, local If-Match restore guards, atomic before/after revision-envelope transition evidence for optimistic concurrency, a provider-neutral bounded single-flight autosave coordinator, and a server-validator-bound durable autosave session, one-call imperative envelope export and atomic active-schema restore, host-owned lifecycle callbacks, strict link and image policies, accessible editing controls, provider-neutral Yjs collaboration, a standalone base64 converter, and bundled offline multilingual Noto Sans fonts.",
"license": "MIT",
"author": "ContextualWisdomLab",
"type": "module",
"packageManager": "pnpm@11.5.3",
"keywords": [
"inkspan",
"editor",
"wysiwyg",
"markdown",
"tiptap",
"prosemirror",
"react",
"base64",
"rich-text",
"llm",
"accessibility",
"alt-text",
"collaboration",
"yjs",
"autosave",
"document-persistence",
"optimistic-concurrency",
"fonts",
"noto-sans",
"offline",
"i18n",
"cjk"
],
"repository": {
"type": "git",
"url": "git+https://github.com/ContextualWisdomLab/inkspan.git"
},
"homepage": "https://github.com/ContextualWisdomLab/inkspan#readme",
"bugs": {
"url": "https://github.com/ContextualWisdomLab/inkspan/issues"
},
"sideEffects": [
"**/*.css"
],
"main": "./dist/cwl-editor.cjs",
"module": "./dist/cwl-editor.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/cwl-editor.js",
"require": "./dist/cwl-editor.cjs"
},
"./autosave": {
"types": "./dist/autosave/package.d.ts",
"import": "./dist/cwl-autosave.js",
"require": "./dist/cwl-autosave.cjs"
},
"./collaboration": {
"types": "./dist/collaboration/index.d.ts",
"import": "./dist/cwl-collaboration.js",
"require": "./dist/cwl-collaboration.cjs"
},
"./converter": {
"types": "./dist/converter/index.d.ts",
"import": "./dist/cwl-converter.js",
"require": "./dist/cwl-converter.cjs"
},
"./envelope-identity": {
"types": "./dist/envelope-identity/index.d.ts",
"import": "./dist/cwl-envelope-identity.js",
"require": "./dist/cwl-envelope-identity.cjs"
},
"./revision-evidence": {
"types": "./dist/revision-evidence/index.d.ts",
"import": "./dist/cwl-revision-evidence.js",
"require": "./dist/cwl-revision-evidence.cjs"
},
"./text-position-selector": {
"types": "./dist/text-position-selector/index.d.ts",
"import": "./dist/cwl-text-position-selector.js",
"require": "./dist/cwl-text-position-selector.cjs"
},
"./markdown": {
"types": "./dist/markdown/index.d.ts",
"import": "./dist/cwl-markdown.js",
"require": "./dist/cwl-markdown.cjs"
},
"./styles.css": "./dist/cwl-editor.css",
"./fonts.css": "./src/fonts/fonts.css",
"./fonts-latin.css": "./src/fonts/fonts-latin.css",
"./fonts/*": "./src/fonts/*"
},
"files": [
"dist",
"src/fonts",
"docs",
"README.md",
"LICENSE"
],
"scripts": {
"dev": "vite",
"build": "tsc --noEmit && vite build && vite build --config vite.collaboration.config.ts && vite build --config vite.converter.config.ts && vite build --config vite.envelope-identity.config.ts && vite build --config vite.revision-evidence.config.ts && vite build --config vite.autosave.config.ts && vite build --config vite.text-position-selector.config.ts && vite build --config vite.markdown.config.ts && node ./scripts/copy-styles.mjs",
"build:demo": "vite build --config vite.demo.config.ts",
"fonts": "node ./scripts/fetch-fonts.mjs",
"preview": "vite preview",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"coverage": "vitest run --coverage",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"test:package-config": "node --test ./scripts/revision-evidence-consumer-config.test.mjs ./scripts/release-metadata.test.mjs ./scripts/javascript-runtime-authority.test.mjs",
"verify:package": "pnpm run test:package-config && node ./tests/package/verify-package.mjs && node ./tests/package/verify-editor-placeholder-package.mjs && node ./scripts/verify-canonical-envelope-package.mjs && node ./scripts/verify-revision-evidence-package.mjs && node ./scripts/verify-framework-free-revision-evidence-package.mjs && node ./scripts/verify-framework-free-envelope-identity-package.mjs && node ./tests/package/verify-framework-free-autosave-package.mjs && node ./scripts/verify-text-position-selector-package.mjs && node ./scripts/verify-text-position-selector-subpath-package.mjs && node ./scripts/verify-markdown-subpath-package.mjs"
},
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
},
"dependencies": {
"@tiptap/core": "^2.27.2",
"@tiptap/extension-collaboration": "^2.27.2",
"@tiptap/extension-collaboration-cursor": "^2.27.2",
"@tiptap/extension-image": "^2.11.5",
"@tiptap/extension-link": "^2.11.5",
"@tiptap/extension-placeholder": "^2.11.5",
"@tiptap/extension-table": "^2.11.5",
"@tiptap/extension-table-cell": "^2.11.5",
"@tiptap/extension-table-header": "^2.11.5",
"@tiptap/extension-table-row": "^2.11.5",
"@tiptap/pm": "^2.11.5",
"@tiptap/react": "^2.11.5",
"@tiptap/starter-kit": "^2.11.5",
"marked": "^15.0.6",
"turndown": "^7.2.0",
"turndown-plugin-gfm": "^1.0.2",
"y-prosemirror": "^1.3.7",
"yjs": "^13.6.30"
},
"devDependencies": {
"@storybook/addon-docs": "^10.5.8",
"@storybook/react": "^10.5.8",
"@storybook/react-vite": "^10.5.8",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^22.10.5",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@types/turndown": "^5.0.5",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^3.2.6",
"jsdom": "^25.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"storybook": "^10.5.8",
"typescript": "^5.7.3",
"vite": "^6.4.3",
"vite-plugin-dts": "^4.5.0",
"vitest": "^3.2.6"
}
}