@octanejs/three 0.1.61 → 0.1.63

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/three",
3
- "version": "0.1.61",
3
+ "version": "0.1.63",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -12,7 +12,15 @@
12
12
  "manual": [
13
13
  "src"
14
14
  ]
15
- }
15
+ },
16
+ "strong": [
17
+ "src/core/hooks.ts",
18
+ "src/core/loop.ts",
19
+ "src/core/root.ts",
20
+ "src/core/store.ts",
21
+ "src/web/Canvas.tsrx",
22
+ "src/web/events.ts"
23
+ ]
16
24
  },
17
25
  "description": "React Three Fiber-compatible web bindings for Octane's universal renderer.",
18
26
  "author": {
@@ -50,7 +58,7 @@
50
58
  },
51
59
  "peerDependencies": {
52
60
  "@types/three": ">=0.156.0",
53
- "octane": "^0.15.0",
61
+ "octane": "^0.17.0",
54
62
  "three": ">=0.156.0"
55
63
  },
56
64
  "peerDependenciesMeta": {
@@ -59,16 +67,16 @@
59
67
  }
60
68
  },
61
69
  "devDependencies": {
62
- "@octanejs/rsbuild-plugin": "0.1.68",
63
- "@octanejs/rspack-plugin": "0.2.7",
64
- "@octanejs/vite-plugin": "0.4.3",
70
+ "@octanejs/rsbuild-plugin": "0.2.0",
71
+ "@octanejs/rspack-plugin": "0.2.9",
72
+ "@octanejs/vite-plugin": "0.6.0",
65
73
  "@react-three/fiber": "9.6.1",
66
74
  "@rsbuild/core": "^2.1.6",
67
75
  "@rspack/core": "^2.1.4",
68
76
  "@tsrx/react": "^0.4.5",
69
77
  "@types/three": "0.172.0",
70
78
  "esbuild": "^0.28.1",
71
- "octane": "0.15.0",
79
+ "octane": "0.17.0",
72
80
  "playwright": "^1.61.1",
73
81
  "react": "19.2.7",
74
82
  "react-dom": "19.2.7",
@@ -165,11 +165,6 @@ export function Canvas({
165
165
  const [size, setSize] = useState<Size | null>(null);
166
166
  const [boundaryMount, setBoundaryMount] = useState<ThreeBoundaryMount | null>(null);
167
167
  const [error, setError] = useState<Error | null>(null);
168
- const [initialEventSource] = useState(() => ({
169
- source: eventSource,
170
- target: resolveEventSource(eventSource, null),
171
- prefix: eventPrefix,
172
- }));
173
168
  const eventSnapshot = useLayoutSnapshot(
174
169
  () => {
175
170
  const wrapper = wrapperRef.current;
@@ -181,7 +176,11 @@ export function Canvas({
181
176
  };
182
177
  },
183
178
  {
184
- initial: initialEventSource,
179
+ initial: {
180
+ source: eventSource,
181
+ target: eventSource !== undefined && !('current' in eventSource) ? eventSource : null,
182
+ prefix: eventPrefix,
183
+ },
185
184
  equal: (previous, next) =>
186
185
  previous.source === next.source &&
187
186
  previous.target === next.target &&