@bolttech/template-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,103 @@
1
+ {
2
+ "name": "@bolttech/template-editor",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "main": "./dist/template-editor.umd.js",
7
+ "module": "./dist/template-editor.es.js",
8
+ "types": "./dist/template-editor.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "import": {
15
+ "types": "./dist/template-editor.d.ts",
16
+ "default": "./dist/template-editor.es.js"
17
+ },
18
+ "require": {
19
+ "types": "./dist/template-editor.d.ts",
20
+ "default": "./dist/template-editor.umd.js"
21
+ }
22
+ },
23
+ "./style.css": "./dist/template-editor.css"
24
+ },
25
+ "engines": {
26
+ "node": ">=22.18",
27
+ "npm": ">=10.9"
28
+ },
29
+ "scripts": {
30
+ "dev": "vite",
31
+ "build": "npm run lint && tsc -b && vite build",
32
+ "build:lib": "npm run lint && tsc -b && vite build --mode lib",
33
+ "lint": "eslint .",
34
+ "preview": "vite preview",
35
+ "format": "eslint . --fix && prettier --write .",
36
+ "format:check": "prettier --check .",
37
+ "test": "vitest",
38
+ "test:run": "vitest run",
39
+ "test:coverage": "vitest run --coverage",
40
+ "test:watch": "vitest --watch",
41
+ "ci": "npm run lint && npm run test:run && npm run build",
42
+ "prepare": "husky"
43
+ },
44
+ "dependencies": {
45
+ "@craftjs/core": "^0.2.12",
46
+ "@craftjs/utils": "^0.2.5",
47
+ "@monaco-editor/react": "^4.7.0",
48
+ "handlebars": "^4.7.8",
49
+ "htmlparser2": "^10.0.0",
50
+ "re-resizable": "^6.11.2",
51
+ "react-icons": "^5.5.0",
52
+ "react-shadow": "^20.6.0",
53
+ "sanitize-html": "^2.17.0"
54
+ },
55
+ "peerDependencies": {
56
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
57
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
58
+ },
59
+ "devDependencies": {
60
+ "@eslint/js": "^9.30.1",
61
+ "@testing-library/jest-dom": "^6.8.0",
62
+ "@testing-library/react": "^16.3.0",
63
+ "@testing-library/user-event": "^14.6.1",
64
+ "@trivago/prettier-plugin-sort-imports": "^5.2.2",
65
+ "@types/htmlparser2": "^3.10.7",
66
+ "@types/react": "^19.1.8",
67
+ "@types/react-dom": "^19.1.6",
68
+ "@types/sanitize-html": "^2.16.0",
69
+ "@vitejs/plugin-react": "^5.0.2",
70
+ "@vitest/coverage-v8": "^3.2.4",
71
+ "autoprefixer": "^10.4.21",
72
+ "eslint": "^9.30.1",
73
+ "eslint-config-prettier": "^10.1.8",
74
+ "eslint-plugin-prettier": "^5.5.4",
75
+ "eslint-plugin-react-hooks": "^5.2.0",
76
+ "eslint-plugin-react-refresh": "^0.4.20",
77
+ "eslint-plugin-unused-imports": "^4.2.0",
78
+ "globals": "^16.3.0",
79
+ "husky": "^9.1.7",
80
+ "jsdom": "^26.1.0",
81
+ "lint-staged": "^16.1.5",
82
+ "postcss": "^8.5.6",
83
+ "postcss-prefix-selector": "^2.1.1",
84
+ "prettier": "^3.6.2",
85
+ "prettier-plugin-tailwindcss": "^0.6.14",
86
+ "rollup-plugin-visualizer": "^6.0.3",
87
+ "tailwindcss": "^3.4.17",
88
+ "typescript": "^5.9.2",
89
+ "typescript-eslint": "^8.35.1",
90
+ "vite": "^7.0.3",
91
+ "vite-plugin-dts": "^4.5.4",
92
+ "vitest": "^3.2.4",
93
+ "webpack-bundle-analyzer": "^4.10.2"
94
+ },
95
+ "lint-staged": {
96
+ "*.{js,jsx,ts,tsx}": [
97
+ "eslint --fix"
98
+ ],
99
+ "*.{js,jsx,ts,tsx,json,css,scss,md}": [
100
+ "prettier --write"
101
+ ]
102
+ }
103
+ }