Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
256 lines (256 loc) · 17.6 KB
/
Copy pathpackage.json
File metadata and controls
256 lines (256 loc) · 17.6 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
{
"name": "docx-editor-monorepo",
"version": "0.0.21",
"private": true,
"workspaces": [
"packages/*",
"examples/agent",
"examples/write-agent",
"examples/astro",
"examples/automation",
"examples/editor-api-consumers",
"examples/docx-to-markdown",
"examples/custom-nodes",
"examples/collaboration",
"examples/collaboration-hocuspocus",
"examples/telemetry-single-user",
"examples/telemetry-collaboration",
"examples/happy-path",
"examples/igloo",
"examples/nextjs",
"examples/nuxt",
"examples/remix",
"examples/vite",
"examples/vue",
"examples/server-agent-review",
"python/docx-to-markdown",
"examples/docx-to-pdf",
"examples/document-refresh",
"examples/anchor-navigation",
"examples/popout-window",
"benchmarks/collaboration-server"
],
"type": "module",
"scripts": {
"api:check": "node scripts/api-extractor.mjs",
"api:extract": "node scripts/api-extractor.mjs --local",
"build": "bun run build:packages:demo && bun run build:react && bun run build:vue && bun run build:igloo:source && bun run build:markdown:source && bun run build:pdf:source && bun run build:assemble && bun run check:demo-deployment",
"build:assemble": "rm -rf examples/parity/dist && mkdir -p examples/parity/dist && cp -R examples/vite/dist examples/parity/dist/react && cp -R examples/vue/dist examples/parity/dist/vue && cp -R examples/igloo/dist examples/parity/dist/igloo && cp -R examples/docx-to-markdown/dist examples/parity/dist/docx-to-markdown && cp -R examples/docx-to-pdf/dist examples/parity/dist/docx-to-pdf",
"build:packages": "bun run --filter '@docx-editor.dev/i18n' build && bun run --filter '@docx-editor.dev/core' build && bun run --filter '@docx-editor.dev/fonts' build && bun run --filter '@docx-editor.dev/fonts-cjk' build && bun run --filter '@docx-editor.dev/docx-to-markdown' build && bun run --filter '@docx-editor.dev/docx-to-pdf' build && bun run --filter '@docx-editor.dev/react' build && bun run --filter '@docx-editor.dev/vue' build && bun run --filter '@docx-editor.dev/editor-api' build && bun run --filter '@docx-editor.dev/pro' build && bun run --filter '@docx-editor.dev/telemetry' build",
"build:packages:vue": "bun run build:packages && bun run --filter '@docx-editor.dev/vue' build && bun run --filter '@docx-editor.dev/nuxt' build",
"build:packages:demo": "bun run --filter '@docx-editor.dev/i18n' build && bun run --filter '@docx-editor.dev/core' build && bun run --filter '@docx-editor.dev/fonts' build && bun run --filter '@docx-editor.dev/docx-to-markdown' build && bun run --filter '@docx-editor.dev/react' build && bun run --filter '@docx-editor.dev/vue' build && bun run --filter '@docx-editor.dev/pro' build && bun run --filter '@docx-editor.dev/editor-api' build",
"build:react": "cd examples/vite && USE_PUBLISHED_PACKAGES=true ENABLE_FRAMEWORK_SWITCHER=true VITE_ENABLE_FRAMEWORK_SWITCHER=true VITE_BASE_PATH=/react/ vite build",
"build:markdown": "bun run build:packages:demo && bun run --filter './examples/docx-to-markdown' build",
"build:markdown:source": "cd examples/docx-to-markdown && VITE_BASE_PATH=/docx-to-markdown/ vite build",
"build:pdf:source": "cd examples/docx-to-pdf && VITE_BASE_PATH=/docx-to-pdf/ vite build",
"build:igloo:source": "cd examples/igloo && VITE_BASE_PATH=/igloo/ vite build",
"check:border-patterns": "node scripts/check-border-pattern-rendering.mjs",
"check:app-build": "bun run check:app-build:react && bun run check:app-build:vue && bun run check:app-build:igloo && bun run check:app-build:markdown && bun run check:app-build:pdf",
"check:app-build:igloo": "cd examples/igloo && VITE_BASE_PATH=/igloo/ vite build --logLevel warn --outDir dist-check --emptyOutDir && node ../../scripts/check-demo-deployment.mjs --app dist-check /igloo/ sample.docx sample-igloo.docx",
"check:app-build:markdown": "cd examples/docx-to-markdown && VITE_BASE_PATH=/docx-to-markdown/ vite build --logLevel warn --outDir dist-check --emptyOutDir && node ../../scripts/check-demo-deployment.mjs --app dist-check /docx-to-markdown/ sample.docx",
"check:app-build:pdf": "cd examples/docx-to-pdf && VITE_BASE_PATH=/docx-to-pdf/ vite build --logLevel warn --outDir dist-check --emptyOutDir && node ../../scripts/check-demo-deployment.mjs --app dist-check /docx-to-pdf/ sample.docx",
"check:app-build:react": "cd examples/vite && VITE_BASE_PATH=/react/ vite build --logLevel warn --outDir dist-check --emptyOutDir && node ../../scripts/check-demo-deployment.mjs --app dist-check /react/ sample.docx",
"check:app-build:vue": "cd examples/vue && VITE_BASE_PATH=/vue/ vite build --logLevel warn --outDir dist-check --emptyOutDir && node ../../scripts/check-demo-deployment.mjs --app dist-check /vue/ sample.docx",
"build:vue": "cd examples/vue && USE_PUBLISHED_PACKAGES=true ENABLE_FRAMEWORK_SWITCHER=true VITE_ENABLE_FRAMEWORK_SWITCHER=true VITE_BASE_PATH=/vue/ vite build",
"build:preview": "bun run build:react:source && bun run build:vue:source && bun run build:igloo:source && bun run build:markdown:source && bun run build:pdf:source && bun run build:assemble && bun run check:demo-deployment",
"build:react:source": "cd examples/vite && ENABLE_FRAMEWORK_SWITCHER=true VITE_ENABLE_FRAMEWORK_SWITCHER=true VITE_BASE_PATH=/react/ vite build",
"build:vue:source": "cd examples/vue && ENABLE_FRAMEWORK_SWITCHER=true VITE_ENABLE_FRAMEWORK_SWITCHER=true VITE_BASE_PATH=/vue/ vite build",
"bench:collaboration": "bun run --filter docx-editor-benchmark-collaboration-server bench",
"bench:collaboration:scenarios": "bun run --filter docx-editor-benchmark-collaboration-server scenarios",
"bench:collaboration:matrix": "bun run --filter docx-editor-benchmark-collaboration-server scenarios:matrix",
"bench:edit": "bun scripts/bench/edit-bench.ts",
"bench:edit:browser": "playwright test --config e2e/edit-browser-bench.config.ts",
"bench:huge": "bun scripts/bench/settle-bench.ts",
"bench:huge:browser": "bun scripts/bench/typing-url-audit.mjs",
"bench:scope-waste": "bun scripts/bench/scope-waste-bench.ts",
"memory:edits": "node scripts/memory/edit-memory.mjs",
"changeset": "changeset",
"check:adapter-css-thin": "node scripts/check-adapter-css-thin.mjs",
"check:example-readmes": "node scripts/check-example-readmes.mjs",
"check:pro-license-headers": "bun run --filter '@docx-editor.dev/pro' license:check",
"fix:pro-license-headers": "bun run --filter '@docx-editor.dev/pro' license:add",
"check:consumer-install": "node scripts/check-consumer-install.mjs",
"check:docs-chrome-slots": "node scripts/check-docs-chrome-slots.mjs",
"check:docs-mdx": "node scripts/check-docs-mdx.mjs",
"check:docs-vue-refs": "node scripts/check-docs-vue-refs.mjs",
"check:demo-deployment": "node scripts/check-demo-deployment.mjs",
"check:editor-api-license-headers": "bun run --filter '@docx-editor.dev/editor-api' license:check",
"fix:editor-api-license-headers": "bun run --filter '@docx-editor.dev/editor-api' license:add",
"check:editor-contract": "node scripts/check-editor-contract.mjs",
"check:composable-parity": "node scripts/check-composable-parity.mjs",
"check:export-parity": "node scripts/check-export-parity.mjs",
"check:feature-parity": "node scripts/check-feature-parity.mjs",
"check:font-width-fidelity": "bun packages/fonts/scripts/check-width-fidelity.ts",
"check:fonts-manifest": "cd packages/fonts && node scripts/generate-manifest.mjs --check",
"check:google-catalog": "cd packages/fonts && node scripts/generate-google-catalog.mjs --check",
"check:i18n-bundle-size": "node scripts/check-i18n-bundle-size.mjs",
"check:lane-boundaries": "node scripts/check-lane-boundaries.mjs",
"check:core-css-compiled": "node scripts/check-core-css-compiled.mjs",
"check:package-artifacts": "node scripts/check-package-artifacts.mjs && node scripts/check-core-css-compiled.mjs",
"check:package-size": "node scripts/check-package-size.mjs",
"check:shipped-shaper": "node scripts/check-shipped-shaper.mjs",
"check:adapter-mirror": "node scripts/check-adapter-mirror.mjs",
"check:nuxt-auto-imports": "node scripts/check-nuxt-auto-imports.mjs",
"generate:nuxt-auto-imports": "node scripts/check-nuxt-auto-imports.mjs --write",
"check:parity": "bun run check:export-parity && bun run check:editor-contract && bun run check:public-docs-surface && bun run check:parity-contract && bun run check:composable-parity && bun run check:nuxt-auto-imports && bun run check:adapter-mirror && bun run check:adapter-css-thin && bun run check:feature-parity",
"check:license-headers": "bun run check:pro-license-headers && bun run check:editor-api-license-headers && bun run --filter '@docx-editor.dev/docx-to-pdf' license:check && bun run --filter '@docx-editor.dev/telemetry' license:check",
"check:parity-contract": "node scripts/check-parity-contract.mjs",
"check:public-docs-surface": "node scripts/check-public-docs-surface.mjs",
"check:shipped-advisories": "node scripts/check-shipped-advisories.mjs",
"check:tsconfig-lib-floor": "node scripts/check-tsconfig-lib-floor.mjs",
"demo-doc:build": "bun scripts/demo-doc/build.ts",
"dev": "ENABLE_FRAMEWORK_SWITCHER=true VITE_ENABLE_FRAMEWORK_SWITCHER=true bun run --filter './examples/vite' --filter './examples/vue' dev",
"dev:agent": "cd examples/agent && npm run dev",
"dev:write-agent": "bun run --filter './examples/write-agent' dev",
"dev:astro": "cd examples/astro && npm run dev",
"dev:custom-nodes": "bun run --filter './examples/custom-nodes' dev",
"dev:collaboration": "bun run --filter './examples/collaboration' dev",
"dev:collaboration-hocuspocus": "bun run --filter './examples/collaboration-hocuspocus' dev",
"dev:collaboration-hocuspocus:server": "bun run --filter './examples/collaboration-hocuspocus' server",
"dev:demo": "bash examples/dev-all.sh",
"dev:happypath": "bun run --filter './examples/happy-path' dev",
"dev:igloo": "bun run --filter './examples/igloo' dev",
"dev:markdown": "bun run --filter './examples/docx-to-markdown' dev",
"dev:nextjs": "cd examples/nextjs && npm run dev",
"dev:nuxt": "bun run --filter './examples/nuxt' dev",
"dev:react": "bun run --filter './examples/vite' dev",
"dev:remix": "cd examples/remix && npm run dev",
"dev:vue": "bun run --filter './examples/vue' dev",
"docs:json": "node scripts/build-docs-json.mjs",
"format": "prettier --write \"api/**/*.{ts,mjs}\" \"packages/*/src/**/*.{ts,tsx,js,jsx,json,css}\" \"examples/*/src/**/*.{ts,tsx,css,vue}\" \"examples/*/app/**/*.{ts,tsx,css,vue}\" \"examples/shared/**/*.{ts,tsx,css,vue}\" \"docs/site/content/**/*.mdx\"",
"format:check": "prettier --check \"packages/*/src/**/*.{ts,tsx,js,jsx,json,css}\" \"examples/*/src/**/*.{ts,tsx,css,vue}\" \"examples/*/app/**/*.{ts,tsx,css,vue}\" \"examples/shared/**/*.{ts,tsx,css,vue}\" \"docs/site/content/**/*.mdx\"",
"i18n:codegen": "node scripts/validate-i18n.mjs codegen",
"i18n:fix": "node scripts/validate-i18n.mjs validate --fix",
"i18n:new": "node scripts/validate-i18n.mjs new",
"i18n:status": "node scripts/validate-i18n.mjs status",
"i18n:validate": "node scripts/validate-i18n.mjs validate && node scripts/check-i18n-unused.mjs",
"i18n:unused": "node scripts/check-i18n-unused.mjs --list",
"lint": "node scripts/check-max-lines-caps.mjs && node scripts/sync-agent-docs.mjs --check && node scripts/check-lockfile-workspaces.mjs && oxlint --report-unused-disable-directives-severity=warn packages/*/src/ packages/docx-to-markdown/test/ examples/*/src/ examples/*/app/ examples/shared/ api/ benchmarks/",
"lint:fix": "node scripts/check-max-lines-caps.mjs && oxlint --report-unused-disable-directives-severity=warn --fix packages/*/src/ packages/docx-to-markdown/test/ examples/*/src/ examples/*/app/ examples/shared/ api/ benchmarks/",
"notices:check": "bun scripts/generate-third-party-notices.mjs --check",
"notices:generate": "bun scripts/generate-third-party-notices.mjs",
"parity:prepublish": "node scripts/parity-prepublish.mjs",
"prepare": "husky && bun run --filter '@docx-editor.dev/i18n' build",
"preview": "bun run build && bunx serve examples/parity/dist -p 4173",
"reference:fetch": "node scripts/fetch-reference.mjs",
"release": "bun run build:packages && bun run notices:generate && bun run collaboration:check --release && node scripts/collaboration/cli.mjs pack && bun run collaboration:test --all --candidate .cache/collaboration/publish && node scripts/collaboration/cli.mjs verify --candidate .cache/collaboration/publish && changeset publish",
"test": "node scripts/test/run-parallel.mjs",
"test:serial": "bun test",
"test:e2e:collab": "playwright test --config e2e/collaboration.config.ts",
"test:e2e:collab:full": "playwright test --config e2e/collaboration.config.ts collaboration.fulldocument.spec.ts",
"test:e2e:collab:load": "playwright test --config e2e/collaboration.documentload.config.ts",
"test:e2e:collab:perf": "playwright test --config e2e/collaboration.performance.config.ts",
"test:e2e:acceptance": "playwright test --config e2e/editor-acceptance.config.ts",
"test:e2e:editor": "playwright test --config e2e/editor-smoke.config.ts",
"test:watch": "bun test --watch",
"typecheck": "bun run --filter '*' typecheck",
"typecheck:root": "bun check -p tsconfig.json",
"version-packages": "changeset version && bun install --lockfile-only && node scripts/check-lockfile-workspaces.mjs --fix && bun run --filter '@docx-editor.dev/editor-api' compat:generate",
"dev:server-agent-review": "bun run build:packages && node examples/server-agent-review/dev.mjs",
"test:server-agent-review": "playwright test --config e2e/server-agent-review.config.ts",
"collaboration:change": "node scripts/collaboration/cli.mjs change",
"collaboration:upgrade-check": "node benchmarks/collaboration-server/upgrade/check.mjs",
"collaboration:migration-memory": "node benchmarks/collaboration-server/migration/memory.mjs",
"collaboration:check": "node scripts/collaboration/cli.mjs check",
"collaboration:catalog": "node scripts/collaboration/cli.mjs catalog",
"collaboration:test": "node scripts/collaboration/test.mjs",
"check:lockfile-workspaces": "node scripts/check-lockfile-workspaces.mjs",
"build:pdf": "bun run --filter @docx-editor.dev/i18n build && bun run --filter @docx-editor.dev/core build && bun run --filter @docx-editor.dev/fonts build && bun run --filter @docx-editor.dev/fonts-cjk build && bun run --filter @docx-editor.dev/docx-to-pdf build",
"dev:pdf": "bun run build:pdf && bun run --filter ./examples/docx-to-pdf dev",
"validation:pdf": "bun packages/docx-to-pdf/scripts/validator/launch.mjs",
"check:docs-style": "node scripts/check-docs-style.mjs",
"check:agent-docs": "node scripts/sync-agent-docs.mjs --check",
"check:recipe-code": "node scripts/check-recipe-code.mjs",
"docs:agent": "node scripts/sync-agent-docs.mjs",
"check:docs": "bun run check:agent-docs && bun run check:recipe-code && bun run check:docs-style && bun run check:example-readmes && bun run check:docs-mdx && bun run check:docs-chrome-slots && bun run check:docs-vue-refs && bun run check:public-docs-surface",
"dev:refresh": "bun run --filter './examples/document-refresh' dev",
"dev:anchors": "bun run --filter './examples/anchor-navigation' dev",
"dev:popout": "bun run --filter './examples/popout-window' dev"
},
"devDependencies": {
"@changesets/changelog-github": "^1.0.0",
"@changesets/cli": "^3.0.0",
"@changesets/get-release-plan": "5.0.2",
"@happy-dom/global-registrator": "^20.8.3",
"@microsoft/api-extractor": "^7.50.0",
"@microsoft/tsdoc": "^0.16.0",
"@playwright/test": "^1.60.0",
"@testing-library/react": "^16.0.0",
"@types/bun": "^1.0.0",
"@types/react": "19.3.0",
"@types/react-dom": "19.3.0",
"@vitejs/plugin-react": "^6.0.2",
"@vitejs/plugin-vue": "^6.0.4",
"ajv": "^8.12.0",
"autoprefixer": "^10.4.17",
"class-variance-authority": "^0.7.0",
"cssnano": "^9.0.1",
"fflate": "^0.8.3",
"husky": "^9.1.7",
"jszip": "^3.10.1",
"lint-staged": "^17.0.4",
"memlab": "2.0.5",
"oxlint": "1.85.0",
"postcss": "^8.5.13",
"prettier": "^3.8.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"rollup": "^4.60.2",
"rollup-plugin-dts": "^6.4.1",
"tailwindcss": "^3.4.1",
"tailwindcss-animate": "^1.0.7",
"tsup": "^8.0.1",
"typescript": "^6.0.3",
"typescript7": "npm:typescript@^7.0.2",
"vite": "^8.1.5",
"vue": "^3.5.29"
},
"keywords": [
"docx",
"editor",
"template",
"word",
"document",
"react",
"prosemirror"
],
"author": "EigenPal",
"license": "Apache-2.0",
"homepage": "https://docx-editor.dev/",
"repository": {
"type": "git",
"url": "https://github.com/eigenpal/docx-editor.git"
},
"publishConfig": {
"access": "public"
},
"overrides": {
"vite": {
"postcss": "8.5.26"
},
"prosemirror-view": "1.42.3",
"prosemirror-state": "1.4.4",
"prosemirror-model": "1.25.4",
"prosemirror-transform": "1.12.0",
"@happy-dom/global-registrator": "20.11.2",
"happy-dom": "20.11.2",
"vue": "3.5.33"
},
"resolutions": {
"prosemirror-view": "1.42.3",
"prosemirror-state": "1.4.4",
"prosemirror-model": "1.25.4",
"prosemirror-transform": "1.12.0",
"@happy-dom/global-registrator": "20.11.2",
"happy-dom": "20.11.2",
"vue": "3.5.33"
},
"dependencies": {
"@docx-editor.dev/core": "workspace:*",
"@docx-editor.dev/docx-to-pdf": "workspace:*",
"@docx-editor.dev/fonts-cjk": "workspace:*",
"prosemirror-commands": "^1.7.1",
"prosemirror-history": "^1.5.0",
"prosemirror-keymap": "^1.2.3"
}
}