@stackvibe-studio/three 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +35 -2
- package/dist/components/floating-sphere.d.ts +6 -0
- package/dist/components/glass-3d-card.d.ts +11 -0
- package/dist/components/orb-cluster.d.ts +6 -0
- package/dist/index.cjs +139 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +111 -0
- package/package.json +50 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 StackVibe
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @stackvibe-studio/three
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
3D visual primitives for hero sections, product cards, and immersive surfaces.
|
|
4
|
+
|
|
5
|
+
## Highlights
|
|
6
|
+
|
|
7
|
+
- Glassmorphism-style 3D card wrapper
|
|
8
|
+
- Floating sphere and orb cluster patterns
|
|
9
|
+
- React Three Fiber powered with lightweight presets
|
|
10
|
+
- New in v0.2.0: OrbCluster for layered hero artwork
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @stackvibe-studio/three three @react-three/fiber @react-three/drei
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```tsx
|
|
21
|
+
import { Glass3DCard, OrbCluster } from '@stackvibe-studio/three';
|
|
22
|
+
|
|
23
|
+
export function Example() {
|
|
24
|
+
return (
|
|
25
|
+
<div>
|
|
26
|
+
<Glass3DCard className="h-80" />
|
|
27
|
+
<OrbCluster />
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Related packages
|
|
34
|
+
|
|
35
|
+
- @stackvibe-studio/ui
|
|
36
|
+
- @stackvibe-studio/motion
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface Glass3DCardProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
depth?: number;
|
|
6
|
+
blur?: number;
|
|
7
|
+
glow?: boolean;
|
|
8
|
+
tilt?: boolean;
|
|
9
|
+
interactive?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function Glass3DCard({ children, className, depth, blur, glow, tilt, interactive, }: Glass3DCardProps): import("react").JSX.Element;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
|
+
FloatingSphere: () => FloatingSphere,
|
|
25
|
+
Glass3DCard: () => Glass3DCard,
|
|
26
|
+
OrbCluster: () => OrbCluster
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(index_exports);
|
|
29
|
+
|
|
30
|
+
// src/components/floating-sphere.tsx
|
|
31
|
+
var import_drei = require("@react-three/drei");
|
|
32
|
+
var import_fiber = require("@react-three/fiber");
|
|
33
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
|
+
function FloatingSphere({ color = "#8b5cf6", scale = 1, speed = 1.2 }) {
|
|
35
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-64 w-64 rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_fiber.Canvas, { camera: { position: [0, 0, 3] }, children: [
|
|
36
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("ambientLight", { intensity: 1.2 }),
|
|
37
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("directionalLight", { position: [2, 2, 2], intensity: 1.5 }),
|
|
38
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drei.Float, { speed, rotationIntensity: 1.5, floatIntensity: 2, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drei.Sphere, { args: [1, 64, 64], scale, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
39
|
+
import_drei.MeshDistortMaterial,
|
|
40
|
+
{
|
|
41
|
+
color,
|
|
42
|
+
roughness: 0.2,
|
|
43
|
+
metalness: 0.4,
|
|
44
|
+
distort: 0.35,
|
|
45
|
+
speed: 2
|
|
46
|
+
}
|
|
47
|
+
) }) })
|
|
48
|
+
] }) });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// src/components/glass-3d-card.tsx
|
|
52
|
+
var import_drei2 = require("@react-three/drei");
|
|
53
|
+
var import_fiber2 = require("@react-three/fiber");
|
|
54
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
55
|
+
function Glass3DCard({
|
|
56
|
+
children,
|
|
57
|
+
className = "",
|
|
58
|
+
depth = 40,
|
|
59
|
+
blur = 18,
|
|
60
|
+
glow = true,
|
|
61
|
+
tilt = true,
|
|
62
|
+
interactive = true
|
|
63
|
+
}) {
|
|
64
|
+
const style = {
|
|
65
|
+
position: "relative",
|
|
66
|
+
overflow: "hidden",
|
|
67
|
+
borderRadius: "1.5rem",
|
|
68
|
+
background: "linear-gradient(135deg, rgba(15, 23, 42, 0.66), rgba(30, 41, 59, 0.3))",
|
|
69
|
+
border: "1px solid rgba(255, 255, 255, 0.12)",
|
|
70
|
+
backdropFilter: `blur(${blur}px)`,
|
|
71
|
+
boxShadow: glow ? "0 0 30px rgba(139, 92, 246, 0.2)" : void 0,
|
|
72
|
+
transform: tilt ? "perspective(1200px) rotateX(4deg) rotateY(-8deg)" : void 0,
|
|
73
|
+
minHeight: "300px"
|
|
74
|
+
};
|
|
75
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: ["relative", className].join(" "), style, children: [
|
|
76
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "absolute inset-0 opacity-80", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_fiber2.Canvas, { dpr: [1, 2], camera: { position: [0, 0, 5], fov: 50 }, children: [
|
|
77
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ambientLight", { intensity: 0.8 }),
|
|
78
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("directionalLight", { position: [3, 3, 3], intensity: 1.2 }),
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_drei2.Float, { speed: 1.5, floatIntensity: 1.2, rotationIntensity: tilt ? 0.6 : 0.1, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_drei2.RoundedBox, { args: [2.6, 2.8, 0.5], radius: 0.18, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
80
|
+
"meshPhysicalMaterial",
|
|
81
|
+
{
|
|
82
|
+
color: glow ? "#8b5cf6" : "#dbeafe",
|
|
83
|
+
roughness: 0.08,
|
|
84
|
+
metalness: 0.45,
|
|
85
|
+
transmission: 0.8,
|
|
86
|
+
thickness: depth,
|
|
87
|
+
transparent: true,
|
|
88
|
+
opacity: 0.55
|
|
89
|
+
}
|
|
90
|
+
) }) }),
|
|
91
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_drei2.Environment, { preset: "city" })
|
|
92
|
+
] }) }),
|
|
93
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "relative z-10 h-full w-full p-5", children }),
|
|
94
|
+
!interactive ? null : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_center,rgba(255,255,255,0.08),transparent_55%)]" })
|
|
95
|
+
] });
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// src/components/orb-cluster.tsx
|
|
99
|
+
var import_drei3 = require("@react-three/drei");
|
|
100
|
+
var import_fiber3 = require("@react-three/fiber");
|
|
101
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
102
|
+
function OrbCluster({
|
|
103
|
+
colors = ["#8b5cf6", "#22d3ee", "#f472b6", "#34d399"],
|
|
104
|
+
scale = 1,
|
|
105
|
+
speed = 1.2
|
|
106
|
+
}) {
|
|
107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "h-72 w-full overflow-hidden rounded-[2rem] border border-white/10 bg-slate-950/80", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_fiber3.Canvas, { camera: { position: [0, 0, 6] }, children: [
|
|
108
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ambientLight", { intensity: 1.2 }),
|
|
109
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("directionalLight", { position: [3, 3, 3], intensity: 1.5 }),
|
|
110
|
+
colors.map((color, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
111
|
+
import_drei3.Float,
|
|
112
|
+
{
|
|
113
|
+
speed: speed + index * 0.2,
|
|
114
|
+
rotationIntensity: 1.2,
|
|
115
|
+
floatIntensity: 2,
|
|
116
|
+
position: [(index - 1.5) * 1.6, (index % 2 === 0 ? 1 : -1) * 0.7, -1],
|
|
117
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_drei3.Sphere, { args: [0.8, 48, 48], scale: scale * (index === 0 ? 1.1 : 0.8), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
118
|
+
import_drei3.MeshDistortMaterial,
|
|
119
|
+
{
|
|
120
|
+
color,
|
|
121
|
+
roughness: 0.15,
|
|
122
|
+
metalness: 0.5,
|
|
123
|
+
distort: 0.35,
|
|
124
|
+
speed: 2,
|
|
125
|
+
transparent: true,
|
|
126
|
+
opacity: 0.82
|
|
127
|
+
}
|
|
128
|
+
) })
|
|
129
|
+
},
|
|
130
|
+
color + index
|
|
131
|
+
))
|
|
132
|
+
] }) });
|
|
133
|
+
}
|
|
134
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
135
|
+
0 && (module.exports = {
|
|
136
|
+
FloatingSphere,
|
|
137
|
+
Glass3DCard,
|
|
138
|
+
OrbCluster
|
|
139
|
+
});
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/components/floating-sphere.tsx
|
|
4
|
+
import { Float, MeshDistortMaterial, Sphere } from "@react-three/drei";
|
|
5
|
+
import { Canvas } from "@react-three/fiber";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
function FloatingSphere({ color = "#8b5cf6", scale = 1, speed = 1.2 }) {
|
|
8
|
+
return /* @__PURE__ */ jsx("div", { className: "h-64 w-64 rounded-full", children: /* @__PURE__ */ jsxs(Canvas, { camera: { position: [0, 0, 3] }, children: [
|
|
9
|
+
/* @__PURE__ */ jsx("ambientLight", { intensity: 1.2 }),
|
|
10
|
+
/* @__PURE__ */ jsx("directionalLight", { position: [2, 2, 2], intensity: 1.5 }),
|
|
11
|
+
/* @__PURE__ */ jsx(Float, { speed, rotationIntensity: 1.5, floatIntensity: 2, children: /* @__PURE__ */ jsx(Sphere, { args: [1, 64, 64], scale, children: /* @__PURE__ */ jsx(
|
|
12
|
+
MeshDistortMaterial,
|
|
13
|
+
{
|
|
14
|
+
color,
|
|
15
|
+
roughness: 0.2,
|
|
16
|
+
metalness: 0.4,
|
|
17
|
+
distort: 0.35,
|
|
18
|
+
speed: 2
|
|
19
|
+
}
|
|
20
|
+
) }) })
|
|
21
|
+
] }) });
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// src/components/glass-3d-card.tsx
|
|
25
|
+
import { Environment, Float as Float2, RoundedBox } from "@react-three/drei";
|
|
26
|
+
import { Canvas as Canvas2 } from "@react-three/fiber";
|
|
27
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
28
|
+
function Glass3DCard({
|
|
29
|
+
children,
|
|
30
|
+
className = "",
|
|
31
|
+
depth = 40,
|
|
32
|
+
blur = 18,
|
|
33
|
+
glow = true,
|
|
34
|
+
tilt = true,
|
|
35
|
+
interactive = true
|
|
36
|
+
}) {
|
|
37
|
+
const style = {
|
|
38
|
+
position: "relative",
|
|
39
|
+
overflow: "hidden",
|
|
40
|
+
borderRadius: "1.5rem",
|
|
41
|
+
background: "linear-gradient(135deg, rgba(15, 23, 42, 0.66), rgba(30, 41, 59, 0.3))",
|
|
42
|
+
border: "1px solid rgba(255, 255, 255, 0.12)",
|
|
43
|
+
backdropFilter: `blur(${blur}px)`,
|
|
44
|
+
boxShadow: glow ? "0 0 30px rgba(139, 92, 246, 0.2)" : void 0,
|
|
45
|
+
transform: tilt ? "perspective(1200px) rotateX(4deg) rotateY(-8deg)" : void 0,
|
|
46
|
+
minHeight: "300px"
|
|
47
|
+
};
|
|
48
|
+
return /* @__PURE__ */ jsxs2("div", { className: ["relative", className].join(" "), style, children: [
|
|
49
|
+
/* @__PURE__ */ jsx2("div", { className: "absolute inset-0 opacity-80", children: /* @__PURE__ */ jsxs2(Canvas2, { dpr: [1, 2], camera: { position: [0, 0, 5], fov: 50 }, children: [
|
|
50
|
+
/* @__PURE__ */ jsx2("ambientLight", { intensity: 0.8 }),
|
|
51
|
+
/* @__PURE__ */ jsx2("directionalLight", { position: [3, 3, 3], intensity: 1.2 }),
|
|
52
|
+
/* @__PURE__ */ jsx2(Float2, { speed: 1.5, floatIntensity: 1.2, rotationIntensity: tilt ? 0.6 : 0.1, children: /* @__PURE__ */ jsx2(RoundedBox, { args: [2.6, 2.8, 0.5], radius: 0.18, children: /* @__PURE__ */ jsx2(
|
|
53
|
+
"meshPhysicalMaterial",
|
|
54
|
+
{
|
|
55
|
+
color: glow ? "#8b5cf6" : "#dbeafe",
|
|
56
|
+
roughness: 0.08,
|
|
57
|
+
metalness: 0.45,
|
|
58
|
+
transmission: 0.8,
|
|
59
|
+
thickness: depth,
|
|
60
|
+
transparent: true,
|
|
61
|
+
opacity: 0.55
|
|
62
|
+
}
|
|
63
|
+
) }) }),
|
|
64
|
+
/* @__PURE__ */ jsx2(Environment, { preset: "city" })
|
|
65
|
+
] }) }),
|
|
66
|
+
/* @__PURE__ */ jsx2("div", { className: "relative z-10 h-full w-full p-5", children }),
|
|
67
|
+
!interactive ? null : /* @__PURE__ */ jsx2("div", { className: "pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_center,rgba(255,255,255,0.08),transparent_55%)]" })
|
|
68
|
+
] });
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// src/components/orb-cluster.tsx
|
|
72
|
+
import { Float as Float3, MeshDistortMaterial as MeshDistortMaterial2, Sphere as Sphere2 } from "@react-three/drei";
|
|
73
|
+
import { Canvas as Canvas3 } from "@react-three/fiber";
|
|
74
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
75
|
+
function OrbCluster({
|
|
76
|
+
colors = ["#8b5cf6", "#22d3ee", "#f472b6", "#34d399"],
|
|
77
|
+
scale = 1,
|
|
78
|
+
speed = 1.2
|
|
79
|
+
}) {
|
|
80
|
+
return /* @__PURE__ */ jsx3("div", { className: "h-72 w-full overflow-hidden rounded-[2rem] border border-white/10 bg-slate-950/80", children: /* @__PURE__ */ jsxs3(Canvas3, { camera: { position: [0, 0, 6] }, children: [
|
|
81
|
+
/* @__PURE__ */ jsx3("ambientLight", { intensity: 1.2 }),
|
|
82
|
+
/* @__PURE__ */ jsx3("directionalLight", { position: [3, 3, 3], intensity: 1.5 }),
|
|
83
|
+
colors.map((color, index) => /* @__PURE__ */ jsx3(
|
|
84
|
+
Float3,
|
|
85
|
+
{
|
|
86
|
+
speed: speed + index * 0.2,
|
|
87
|
+
rotationIntensity: 1.2,
|
|
88
|
+
floatIntensity: 2,
|
|
89
|
+
position: [(index - 1.5) * 1.6, (index % 2 === 0 ? 1 : -1) * 0.7, -1],
|
|
90
|
+
children: /* @__PURE__ */ jsx3(Sphere2, { args: [0.8, 48, 48], scale: scale * (index === 0 ? 1.1 : 0.8), children: /* @__PURE__ */ jsx3(
|
|
91
|
+
MeshDistortMaterial2,
|
|
92
|
+
{
|
|
93
|
+
color,
|
|
94
|
+
roughness: 0.15,
|
|
95
|
+
metalness: 0.5,
|
|
96
|
+
distort: 0.35,
|
|
97
|
+
speed: 2,
|
|
98
|
+
transparent: true,
|
|
99
|
+
opacity: 0.82
|
|
100
|
+
}
|
|
101
|
+
) })
|
|
102
|
+
},
|
|
103
|
+
color + index
|
|
104
|
+
))
|
|
105
|
+
] }) });
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
FloatingSphere,
|
|
109
|
+
Glass3DCard,
|
|
110
|
+
OrbCluster
|
|
111
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackvibe-studio/three",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "3D component layer for StackVibe UI.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/StackVibe-Studio/stackvibe-ui.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://stackvibe-studio.github.io/stackvibe-ui/",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/StackVibe-Studio/stackvibe-ui/issues"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"require": "./dist/index.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public",
|
|
28
|
+
"registry": "https://registry.npmjs.org/"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"react": ">=18.0.0",
|
|
35
|
+
"react-dom": ">=18.0.0"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@react-three/drei": "^10.0.0",
|
|
39
|
+
"@react-three/fiber": "^9.0.0",
|
|
40
|
+
"three": "^0.180.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/react": "^19.0.0",
|
|
44
|
+
"@types/react-dom": "^19.0.0",
|
|
45
|
+
"@types/three": "^0.180.0",
|
|
46
|
+
"tsup": "^8.1.0",
|
|
47
|
+
"typescript": "^5.7.0"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsup src/index.ts --format esm,cjs --clean && tsc --project tsconfig.json --emitDeclarationOnly",
|
|
51
|
+
"typecheck": "tsc --noEmit"
|
|
52
|
+
}
|
|
6
53
|
}
|