@eigenpal/docx-js-editor 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/package.json ADDED
@@ -0,0 +1,132 @@
1
+ {
2
+ "name": "@eigenpal/docx-js-editor",
3
+ "version": "0.0.1",
4
+ "description": "A browser-based DOCX template editor with variable insertion support",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ },
15
+ "./headless": {
16
+ "types": "./dist/headless.d.ts",
17
+ "import": "./dist/headless.js",
18
+ "require": "./dist/headless.cjs"
19
+ },
20
+ "./core-plugins": {
21
+ "types": "./dist/core-plugins.d.ts",
22
+ "import": "./dist/core-plugins.js",
23
+ "require": "./dist/core-plugins.cjs"
24
+ },
25
+ "./mcp": {
26
+ "types": "./dist/mcp.d.ts",
27
+ "import": "./dist/mcp.js",
28
+ "require": "./dist/mcp.cjs"
29
+ },
30
+ "./styles.css": "./dist/styles.css"
31
+ },
32
+ "bin": {
33
+ "docx-editor-mcp": "./dist/mcp-cli.js"
34
+ },
35
+ "files": [
36
+ "dist"
37
+ ],
38
+ "scripts": {
39
+ "dev": "vite",
40
+ "build": "tsup && bun run build:css",
41
+ "build:css": "tailwindcss -i ./src/styles/editor.css -o ./dist/styles.css --minify",
42
+ "build:demo": "vite build",
43
+ "test": "bun test",
44
+ "test:watch": "bun test --watch",
45
+ "test:e2e": "npx playwright test",
46
+ "test:e2e:ui": "npx playwright test --ui",
47
+ "test:visual": "npx playwright test visual.spec.ts",
48
+ "test:screenshots": "npx playwright test --project=chromium --reporter=list",
49
+ "prepublishOnly": "bun test && bun run build",
50
+ "typecheck": "tsc --noEmit",
51
+ "lint": "eslint src/",
52
+ "lint:fix": "eslint src/ --fix",
53
+ "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css}\"",
54
+ "format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css}\"",
55
+ "prepare": "husky"
56
+ },
57
+ "peerDependencies": {
58
+ "react": ">=18.0.0",
59
+ "react-dom": ">=18.0.0"
60
+ },
61
+ "peerDependenciesMeta": {
62
+ "react": {
63
+ "optional": true
64
+ },
65
+ "react-dom": {
66
+ "optional": true
67
+ }
68
+ },
69
+ "dependencies": {
70
+ "@radix-ui/react-popover": "^1.1.15",
71
+ "@radix-ui/react-select": "^2.2.6",
72
+ "docxtemplater": "^3.50.0",
73
+ "jszip": "^3.10.1",
74
+ "pizzip": "^3.1.7",
75
+ "prosemirror-commands": "^1.5.2",
76
+ "prosemirror-history": "^1.4.0",
77
+ "prosemirror-keymap": "^1.2.2",
78
+ "prosemirror-model": "^1.19.4",
79
+ "prosemirror-state": "^1.4.3",
80
+ "prosemirror-tables": "^1.8.5",
81
+ "prosemirror-transform": "^1.8.0",
82
+ "prosemirror-view": "^1.32.7",
83
+ "xml-js": "^1.6.11"
84
+ },
85
+ "devDependencies": {
86
+ "@happy-dom/global-registrator": "^13.3.8",
87
+ "@playwright/test": "^1.58.1",
88
+ "@testing-library/react": "^14.1.2",
89
+ "@types/bun": "^1.0.0",
90
+ "@types/react": "^18.2.48",
91
+ "@types/react-dom": "^18.2.18",
92
+ "@typescript-eslint/eslint-plugin": "^8.54.0",
93
+ "@typescript-eslint/parser": "^8.54.0",
94
+ "@vitejs/plugin-react": "^5.1.2",
95
+ "autoprefixer": "^10.4.17",
96
+ "class-variance-authority": "^0.7.0",
97
+ "clsx": "^2.1.0",
98
+ "eslint": "^9.39.2",
99
+ "eslint-plugin-react": "^7.37.5",
100
+ "eslint-plugin-react-hooks": "^7.0.1",
101
+ "husky": "^9.1.7",
102
+ "lint-staged": "^16.2.7",
103
+ "postcss": "^8.4.33",
104
+ "prettier": "^3.8.1",
105
+ "react": "^18.2.0",
106
+ "react-dom": "^18.2.0",
107
+ "tailwind-merge": "^2.2.1",
108
+ "tailwindcss": "^3.4.1",
109
+ "tailwindcss-animate": "^1.0.7",
110
+ "tsup": "^8.0.1",
111
+ "typescript": "^5.3.3",
112
+ "vite": "^7.3.1"
113
+ },
114
+ "keywords": [
115
+ "docx",
116
+ "editor",
117
+ "template",
118
+ "word",
119
+ "document",
120
+ "react",
121
+ "prosemirror"
122
+ ],
123
+ "author": "EigenPal",
124
+ "license": "MIT",
125
+ "repository": {
126
+ "type": "git",
127
+ "url": "https://github.com/eigenpal/docx-js-editor.git"
128
+ },
129
+ "publishConfig": {
130
+ "access": "public"
131
+ }
132
+ }