softbox 4.0.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 ADDED
@@ -0,0 +1,102 @@
1
+ {
2
+ "name": "softbox",
3
+ "private": false,
4
+ "version": "4.0.0",
5
+ "homepage": "https://leming.github.io/softbox/",
6
+ "type": "module",
7
+ "description": "Batteries-included React 3D viewer — any GLB looks studio-shot in one line",
8
+ "keywords": [
9
+ "3d",
10
+ "three.js",
11
+ "react",
12
+ "viewer",
13
+ "glb",
14
+ "gltf",
15
+ "product viewer"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/LEMing/softbox.git"
20
+ },
21
+ "license": "MIT",
22
+ "engines": {
23
+ "node": ">=18"
24
+ },
25
+ "scripts": {
26
+ "dev": "vite",
27
+ "build": "NODE_ENV=production tsc --noEmit && vite build",
28
+ "postbuild": "node scripts/copy-cjs-types.mjs",
29
+ "build:site": "vite build --config vite.site.config.ts",
30
+ "preview": "vite preview",
31
+ "test": "jest --runInBand",
32
+ "typecheck": "tsc --noEmit",
33
+ "typecheck:examples": "tsc -p tsconfig.examples.json",
34
+ "typecheck:smoke": "tsc -p tsconfig.smoke.json",
35
+ "test:render": "playwright test",
36
+ "smoke": "node scripts/smoke.mjs",
37
+ "type-smoke": "node scripts/type-smoke.mjs",
38
+ "attw": "attw --pack .",
39
+ "knip": "knip",
40
+ "lint": "eslint 'src/**/*.{ts,tsx}' --max-warnings 0",
41
+ "lint:fix": "eslint 'src/**/*.{ts,tsx}' --fix",
42
+ "prepublishOnly": "npm run lint && npm run typecheck && npm run build && npm run test && npm run smoke && npm run type-smoke && npm run attw",
43
+ "postpublish": "echo 'Published successfully!'"
44
+ },
45
+ "files": [
46
+ "dist"
47
+ ],
48
+ "main": "dist/simple-viewer.cjs",
49
+ "module": "dist/simple-viewer.es.js",
50
+ "types": "dist/index.d.ts",
51
+ "exports": {
52
+ ".": {
53
+ "import": {
54
+ "types": "./dist/index.d.ts",
55
+ "default": "./dist/simple-viewer.es.js"
56
+ },
57
+ "require": {
58
+ "types": "./dist/index.d.cts",
59
+ "default": "./dist/simple-viewer.cjs"
60
+ }
61
+ },
62
+ "./package.json": "./package.json"
63
+ },
64
+ "publishConfig": {
65
+ "access": "public"
66
+ },
67
+ "devDependencies": {
68
+ "@arethetypeswrong/cli": "^0.18.4",
69
+ "@eslint/js": "^9.30.1",
70
+ "@playwright/test": "^1.61.1",
71
+ "@testing-library/jest-dom": "^6.4.8",
72
+ "@testing-library/react": "^16.1.0",
73
+ "@types/jest": "^29.5.12",
74
+ "@types/pngjs": "^6.0.5",
75
+ "@types/react": "^19.0.0",
76
+ "@types/react-dom": "^19.0.0",
77
+ "@types/three": "0.185.0",
78
+ "@vitejs/plugin-react": "^4.3.1",
79
+ "eslint": "^9.30.1",
80
+ "eslint-plugin-react-hooks": "^5.2.0",
81
+ "jest": "^29.7.0",
82
+ "jest-environment-jsdom": "^29.7.0",
83
+ "knip": "^6.23.0",
84
+ "pngjs": "^7.0.0",
85
+ "react": "^19.0.0",
86
+ "react-dom": "^19.0.0",
87
+ "three": "^0.185.1",
88
+ "three-gpu-pathtracer": "^0.0.23",
89
+ "three-mesh-bvh": "^0.9.9",
90
+ "threedgizmo": "^1.2.1",
91
+ "ts-jest": "^29.2.4",
92
+ "typescript": "^5.5.3",
93
+ "typescript-eslint": "^8.35.1",
94
+ "vite": "^6.3.5",
95
+ "vite-plugin-dts": "^4.0.3"
96
+ },
97
+ "peerDependencies": {
98
+ "react": ">=18.0.0 <20.0.0",
99
+ "react-dom": ">=18.0.0 <20.0.0",
100
+ "three": ">=0.177.0 <0.186.0"
101
+ }
102
+ }