layershift 0.1.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,79 @@
1
+ {
2
+ "name": "layershift",
3
+ "version": "0.1.0",
4
+ "description": "Embeddable video effects as Web Components. Drop-in parallax, depth-aware motion, and more.",
5
+ "type": "module",
6
+ "main": "dist/components/layershift.js",
7
+ "module": "dist/npm/layershift.es.js",
8
+ "types": "dist/types/components/layershift/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/types/components/layershift/index.d.ts",
12
+ "import": "./dist/npm/layershift.es.js",
13
+ "require": "./dist/components/layershift.js"
14
+ },
15
+ "./global": {
16
+ "types": "./dist/types/components/layershift/global.d.ts"
17
+ }
18
+ },
19
+ "files": [
20
+ "dist/npm/layershift.es.js",
21
+ "dist/components/layershift.js",
22
+ "dist/types/",
23
+ "LICENSE",
24
+ "README.md"
25
+ ],
26
+ "sideEffects": true,
27
+ "scripts": {
28
+ "dev": "vite",
29
+ "precompute": "npx tsx scripts/precompute-depth.ts",
30
+ "build": "tsc && vite build",
31
+ "build:component": "vite build --config vite.config.component.ts",
32
+ "build:npm": "vite build --config vite.config.npm.ts",
33
+ "build:types": "tsc -p tsconfig.declarations.json && cp src/components/layershift/global.d.ts dist/types/components/layershift/global.d.ts",
34
+ "build:package": "npm run build:component && npm run build:npm && npm run build:types",
35
+ "prepublishOnly": "npm run build:package",
36
+ "package": "npx tsx scripts/package-output.ts",
37
+ "preview": "vite preview",
38
+ "test": "vitest run",
39
+ "test:watch": "vitest",
40
+ "test:e2e": "playwright test",
41
+ "test:all": "vitest run && playwright test"
42
+ },
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "git+https://github.com/jeremysykes/layershift.git"
46
+ },
47
+ "keywords": [
48
+ "parallax",
49
+ "video",
50
+ "depth",
51
+ "web-component",
52
+ "three.js",
53
+ "webgl",
54
+ "depth-map",
55
+ "3d-effect"
56
+ ],
57
+ "author": "Jeremy Sykes",
58
+ "license": "BUSL-1.1",
59
+ "bugs": {
60
+ "url": "https://github.com/jeremysykes/layershift/issues"
61
+ },
62
+ "homepage": "https://layershift.io",
63
+ "dependencies": {
64
+ "@types/three": "^0.182.0",
65
+ "three": "^0.182.0"
66
+ },
67
+ "devDependencies": {
68
+ "@playwright/test": "^1.58.2",
69
+ "@vitest/browser": "^4.0.18",
70
+ "@xenova/transformers": "^2.17.2",
71
+ "happy-dom": "^20.6.1",
72
+ "playwright": "^1.58.2",
73
+ "sharp": "^0.34.5",
74
+ "tsx": "^4.21.0",
75
+ "typescript": "^5.9.3",
76
+ "vite": "^7.3.1",
77
+ "vitest": "^4.0.18"
78
+ }
79
+ }