hoodini-viz 0.1.3 → 0.2.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hoodini-viz",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "description": "Interactive phylogenetic and genomic visualization library",
5
5
  "type": "module",
6
6
  "main": "./dist/hoodini-viz.umd.js",
@@ -12,7 +12,7 @@
12
12
  "import": "./dist/hoodini-viz.js",
13
13
  "require": "./dist/hoodini-viz.umd.js"
14
14
  },
15
- "./style.css": "./dist/style.css"
15
+ "./style.css": "./dist/hoodini-viz.css"
16
16
  },
17
17
  "files": [
18
18
  "dist"
@@ -42,7 +42,9 @@
42
42
  ],
43
43
  "scripts": {
44
44
  "dev": "vite",
45
- "build": "vite build",
45
+ "build": "vite build && BUILD_UMD=true vite build",
46
+ "build:esm": "vite build",
47
+ "build:umd": "BUILD_UMD=true vite build",
46
48
  "build:html": "vite build --config vite.config.html.ts",
47
49
  "build:template": "VITE_TEMPLATE_MODE=true vite build --config vite.config.html.ts",
48
50
  "build:all": "npm run build && npm run build:html",
@@ -83,14 +85,24 @@
83
85
  "hyparquet-compressors": "^1.1.1",
84
86
  "lucide-react": "^0.542.0",
85
87
  "next-themes": "^0.4.6",
86
- "react": "^19.1.1",
87
- "react-dom": "^19.1.1",
88
88
  "recharts": "^2.15.4",
89
89
  "sonner": "^2.0.7",
90
90
  "tailwind-merge": "^3.3.1",
91
91
  "tailwindcss": "^4.1.12",
92
92
  "vaul": "^1.1.2"
93
93
  },
94
+ "peerDependencies": {
95
+ "react": "^18.0.0 || ^19.0.0",
96
+ "react-dom": "^18.0.0 || ^19.0.0"
97
+ },
98
+ "peerDependenciesMeta": {
99
+ "react": {
100
+ "optional": true
101
+ },
102
+ "react-dom": {
103
+ "optional": true
104
+ }
105
+ },
94
106
  "devDependencies": {
95
107
  "@eslint/js": "^9.33.0",
96
108
  "@types/node": "^24.3.0",
@@ -104,6 +116,8 @@
104
116
  "eslint-plugin-react-refresh": "^0.4.20",
105
117
  "globals": "^16.3.0",
106
118
  "playwright": "^1.57.0",
119
+ "react": "^19.1.1",
120
+ "react-dom": "^19.1.1",
107
121
  "tw-animate-css": "^1.3.7",
108
122
  "typescript": "~5.8.3",
109
123
  "typescript-eslint": "^8.39.1",