@octanejs/drei 0.0.22 → 0.0.24

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": "@octanejs/drei",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "Octane port of @react-three/drei",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -38,7 +38,7 @@
38
38
  "three-mesh-bvh": "^0.8.3",
39
39
  "three-stdlib": "^2.35.6",
40
40
  "troika-three-text": "^0.52.4",
41
- "@octanejs/zustand": "0.1.54"
41
+ "@octanejs/zustand": "0.1.56"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=22.22.2"
@@ -46,8 +46,8 @@
46
46
  "peerDependencies": {
47
47
  "@types/three": ">=0.159",
48
48
  "three": ">=0.159",
49
- "@octanejs/three": "0.1.47",
50
- "octane": "^0.3.0"
49
+ "@octanejs/three": "0.1.49",
50
+ "octane": "^0.5.0"
51
51
  },
52
52
  "peerDependenciesMeta": {
53
53
  "@types/three": {
@@ -70,7 +70,7 @@
70
70
  "devDependencies": {
71
71
  "@react-three/drei": "10.7.7",
72
72
  "@react-three/fiber": "9.6.1",
73
- "@tsrx/react": "^0.3.0",
73
+ "@tsrx/react": "^0.3.7",
74
74
  "@types/react": "^19.2.17",
75
75
  "@types/stats.js": "^0.17.4",
76
76
  "@types/three": "0.172.0",
@@ -81,9 +81,9 @@
81
81
  "typescript": "^5.9.3",
82
82
  "vite": "^8.1.5",
83
83
  "vitest": "^4.1.10",
84
- "@octanejs/three": "0.1.47",
85
- "@octanejs/zustand": "0.1.54",
86
- "octane": "0.3.0"
84
+ "@octanejs/three": "0.1.49",
85
+ "@octanejs/zustand": "0.1.56",
86
+ "octane": "0.5.0"
87
87
  },
88
88
  "scripts": {
89
89
  "upstream:generate": "node scripts/generate-upstream-crosswalk.mjs",
@@ -64,7 +64,7 @@ export function TransformControls({
64
64
  ref,
65
65
  ...props
66
66
  }: TransformControlsProps) @{
67
- const defaultControls = useThree((state) => state.controls) as ControlsProto | undefined;
67
+ const defaultControls = useThree((state) => state.controls) as unknown as ControlsProto | undefined;
68
68
  const gl = useThree((state) => state.gl);
69
69
  const events = useThree((state) => state.events);
70
70
  const defaultCamera = useThree((state) => state.camera);
@@ -111,7 +111,7 @@ export function calculateOffset(
111
111
  }
112
112
 
113
113
  function AxisArrow({ direction, axis }: { direction: THREE.Vector3; axis: 0 | 1 | 2 }) @{
114
- const config = useContext(PivotControlsContext), controls = useThree((state) => state.controls) as {
114
+ const config = useContext(PivotControlsContext), controls = useThree((state) => state.controls) as unknown as {
115
115
  enabled: boolean;
116
116
  } | undefined;
117
117
  const divRef = useRef<HTMLDivElement | null>(null), objectRef = useRef<THREE.Group | null>(null);
@@ -250,7 +250,7 @@ function PlaneSlider({
250
250
  dir2: THREE.Vector3;
251
251
  axis: 0 | 1 | 2;
252
252
  }) @{
253
- const config = useContext(PivotControlsContext), controls = useThree((state) => state.controls) as {
253
+ const config = useContext(PivotControlsContext), controls = useThree((state) => state.controls) as unknown as {
254
254
  enabled: boolean;
255
255
  } | undefined;
256
256
  const divRef = useRef<HTMLDivElement | null>(null), objectRef = useRef<THREE.Group | null>(
@@ -422,7 +422,7 @@ function AxisRotator({
422
422
  dir2: THREE.Vector3;
423
423
  axis: 0 | 1 | 2;
424
424
  }) @{
425
- const config = useContext(PivotControlsContext), controls = useThree((state) => state.controls) as {
425
+ const config = useContext(PivotControlsContext), controls = useThree((state) => state.controls) as unknown as {
426
426
  enabled: boolean;
427
427
  } | undefined;
428
428
  const divRef = useRef<HTMLDivElement | null>(null), objectRef = useRef<THREE.Group | null>(
@@ -562,7 +562,7 @@ function AxisRotator({
562
562
  function ScalingSphere({ direction, axis }: { direction: THREE.Vector3; axis: 0 | 1 | 2 }) @{
563
563
  const config = useContext(PivotControlsContext), size = useThree((state) => state.size), controls = useThree(
564
564
  (state) => state.controls,
565
- ) as { enabled: boolean } | undefined;
565
+ ) as unknown as { enabled: boolean } | undefined;
566
566
  const divRef = useRef<HTMLDivElement | null>(null), objectRef = useRef<THREE.Group | null>(
567
567
  null,
568
568
  ), meshRef = useRef<THREE.Mesh | null>(null), scale0 = useRef(1), scaleCurrent = useRef(1);