@react-three/fiber 10.0.0-canary.f81281f → 10.0.0-canary.fbd44ae

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.
Files changed (37) hide show
  1. package/dist/extension.cjs +8 -7
  2. package/dist/extension.d.cts +10 -47
  3. package/dist/extension.d.mts +10 -47
  4. package/dist/extension.d.ts +10 -47
  5. package/dist/extension.mjs +1 -1
  6. package/dist/index.cjs +13 -13
  7. package/dist/index.d.cts +8 -9
  8. package/dist/index.d.mts +8 -9
  9. package/dist/index.d.ts +8 -9
  10. package/dist/index.mjs +3 -3
  11. package/dist/legacy.cjs +13 -13
  12. package/dist/legacy.d.cts +10 -7
  13. package/dist/legacy.d.mts +10 -7
  14. package/dist/legacy.d.ts +10 -7
  15. package/dist/legacy.mjs +4 -4
  16. package/dist/shared/{fiber.DAg-9ieU.d.ts → fiber.3jeDXXYd.d.mts} +183 -542
  17. package/dist/shared/{fiber.Ddgoyqql.d.mts → fiber.B_KQAb3I.d.ts} +183 -542
  18. package/dist/shared/fiber.Bi_S5KAx.cjs +16630 -0
  19. package/dist/shared/fiber.C6hitYDY.d.cts +48 -0
  20. package/dist/shared/fiber.CFK811nR.mjs +16532 -0
  21. package/dist/shared/{fiber.Bw8YnGg5.d.ts → fiber.C_MFx7We.d.cts} +555 -19
  22. package/dist/shared/{fiber.Bw8YnGg5.d.cts → fiber.C_MFx7We.d.mts} +555 -19
  23. package/dist/shared/{fiber.Bw8YnGg5.d.mts → fiber.C_MFx7We.d.ts} +555 -19
  24. package/dist/shared/fiber.D4fD6H74.d.mts +48 -0
  25. package/dist/shared/{fiber.C_v1rkNg.mjs → fiber.QxL_6jra.mjs} +113 -52
  26. package/dist/shared/fiber.YgTUGbja.d.ts +48 -0
  27. package/dist/shared/{fiber.B6zNSmwj.cjs → fiber.eR9ie2vQ.cjs} +116 -50
  28. package/dist/shared/{fiber.DiPB625B.d.cts → fiber.fR3DaJb1.d.cts} +183 -542
  29. package/dist/webgpu/index.cjs +13 -13
  30. package/dist/webgpu/index.d.cts +5 -6
  31. package/dist/webgpu/index.d.mts +5 -6
  32. package/dist/webgpu/index.d.ts +5 -6
  33. package/dist/webgpu/index.mjs +4 -4
  34. package/package.json +7 -7
  35. package/readme.md +1 -1
  36. package/dist/shared/fiber.BGL2rpse.cjs +0 -15129
  37. package/dist/shared/fiber.Ch4JrXS2.mjs +0 -15031
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
- const extensions = require('./shared/fiber.B6zNSmwj.cjs');
3
+ const textureStaging = require('./shared/fiber.eR9ie2vQ.cjs');
4
4
 
5
5
 
6
6
 
7
- exports.context = extensions.context;
8
- exports.registerRootExtension = extensions.registerRootExtension;
9
- exports.setRenderOverride = extensions.setRenderOverride;
10
- exports.useFrame = extensions.useFrame;
11
- exports.useStore = extensions.useStore;
12
- exports.useThree = extensions.useThree;
7
+ exports.context = textureStaging.context;
8
+ exports.getTextureView = textureStaging.getTextureView;
9
+ exports.registerRootExtension = textureStaging.registerRootExtension;
10
+ exports.setRenderOverride = textureStaging.setRenderOverride;
11
+ exports.useFrame = textureStaging.useFrame;
12
+ exports.useStore = textureStaging.useStore;
13
+ exports.useThree = textureStaging.useThree;
@@ -1,56 +1,19 @@
1
- import { z as FrameNextCallback } from './shared/fiber.Bw8YnGg5.cjs';
2
- export { A as Act, B as Bridge, C as Camera, i as ComputeFunction, w as Disposable, f as DomEvent, D as Dpr, v as EquConfig, g as EventHandlers, k as EventManager, E as Events, h as FilterFunction, G as FrameCallback, x as FrameNextState, y as FrameState, F as Frameloop, a5 as InternalState, I as Intersection, e as IntersectionEvent, p as IsAllOptional, o as IsOptional, M as Mutable, N as NonFunctionKeys, u as ObjectMap, O as Overwrite, c as Performance, l as PointerCaptureTarget, P as PointerState, n as Properties, a4 as R3FRenderer, b as RenderCallback, R as RootExtension, a6 as RootState, d as RootStore, t as SetBlock, a as Size, S as Subscription, q as ThreeCamera, T as ThreeEvent, U as UnblockProps, V as Viewport, m as VisibilityEntry, X as XRManager, j as XRPointerConfig, a3 as context, r as registerRootExtension, s as setRenderOverride, a2 as useStore, a7 as useThree } from './shared/fiber.Bw8YnGg5.cjs';
3
- import { UseFrameNextOptions, FrameNextControls } from '@pmndrs/scheduler';
1
+ import { K as RootStore } from './shared/fiber.C_MFx7We.cjs';
2
+ export { aF as Act, aG as Bridge, W as Camera, a2 as ComputeFunction, aL as Disposable, _ as DomEvent, D as Dpr, aK as EquConfig, a0 as EventHandlers, a4 as EventManager, $ as Events, a1 as FilterFunction, aP as FrameCallback, aO as FrameNextCallback, aM as FrameNextState, aN as FrameState, F as Frameloop, I as InternalState, U as Intersection, Y as IntersectionEvent, aD as IsAllOptional, aC as IsOptional, aB as Mutable, ay as NonFunctionKeys, aJ as ObjectMap, az as Overwrite, H as Performance, a5 as PointerCaptureTarget, P as PointerState, aA as Properties, y as R3FRenderer, B as RenderCallback, w as RootExtension, J as RootState, aH as SetBlock, z as Size, S as Subscription, aE as ThreeCamera, Z as ThreeEvent, aI as UnblockProps, A as Viewport, a6 as VisibilityEntry, X as XRManager, a3 as XRPointerConfig, x as context, u as registerRootExtension, v as setRenderOverride, a$ as useStore, b0 as useThree } from './shared/fiber.C_MFx7We.cjs';
3
+ export { u as useFrame } from './shared/fiber.C6hitYDY.cjs';
4
+ import { Texture } from 'three';
4
5
  export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, SchedulerApi, UseFrameNextOptions, UseFrameOptions } from '@pmndrs/scheduler';
5
- import 'react';
6
- import 'three';
7
6
  import 'three/webgpu';
7
+ import 'react';
8
8
  import 'zustand';
9
9
  import 'zustand/traditional';
10
10
  import 'three/tsl';
11
11
 
12
12
  /**
13
- * Frame hook with phase-based ordering, priority, and FPS throttling.
14
- *
15
- * Always delivers full RootState — works both inside and outside Canvas context:
16
- * - Inside Canvas: Full RootState (renderer, scene, camera, etc.)
17
- * - Outside Canvas: The job registers immediately but the callback is held until a
18
- * Canvas adopts it, then runs with full RootState. For hostless / standalone
19
- * frame loops with no Canvas, use `@pmndrs/scheduler` directly.
20
- *
21
- * Returns a controls object for manual stepping, pausing, and resuming.
22
- *
23
- * @param callback - Function called each frame with (state, delta). Optional if you only need scheduler access.
24
- * @param priorityOrOptions - Either a priority number (backwards compat) or options object
25
- * @returns Controls object with step(), stepAll(), invalidate(), pause(), resume(), isPaused, id, rootId, scheduler
26
- *
27
- * @example
28
- * // Simple priority (backwards compat)
29
- * useFrame((state, delta) => { ... }, 5)
30
- *
31
- * @example
32
- * // With phase-based ordering
33
- * useFrame((state, delta) => { ... }, { phase: 'physics' })
34
- *
35
- * @example
36
- * // Outside Canvas - callback waits for a Canvas, then always has full state
37
- * function UI() {
38
- * useFrame((state, delta) => { syncUI(state.camera) });
39
- * return <button>...</button>;
40
- * }
41
- *
42
- * @example
43
- * // Hostless / standalone loop (no Canvas) - use @pmndrs/scheduler directly
44
- * import { getScheduler } from '@pmndrs/scheduler'
45
- * getScheduler().register((state, delta) => { updateGame(delta) })
46
- *
47
- * @example
48
- * // Scheduler-only access (no callback)
49
- * const { scheduler } = useFrame()
50
- * scheduler.pauseJob('some-job-id')
51
- *
52
- * @see https://docs.pmnd.rs/react-three-fiber/api/hooks#useframe
13
+ * The texture registry as a reader during render should see it: registered textures, plus those a
14
+ * `useTexture` earlier in this render loaded but has not registered yet. Returns the registry Map
15
+ * itself when nothing is staged. Read-only: register through `useTexture` / `useTextures().add`.
53
16
  */
54
- declare function useFrame(callback?: FrameNextCallback, priorityOrOptions?: number | UseFrameNextOptions): FrameNextControls;
17
+ declare function getTextureView(store: RootStore): ReadonlyMap<string, Texture>;
55
18
 
56
- export { FrameNextCallback, useFrame };
19
+ export { RootStore, getTextureView };
@@ -1,56 +1,19 @@
1
- import { z as FrameNextCallback } from './shared/fiber.Bw8YnGg5.mjs';
2
- export { A as Act, B as Bridge, C as Camera, i as ComputeFunction, w as Disposable, f as DomEvent, D as Dpr, v as EquConfig, g as EventHandlers, k as EventManager, E as Events, h as FilterFunction, G as FrameCallback, x as FrameNextState, y as FrameState, F as Frameloop, a5 as InternalState, I as Intersection, e as IntersectionEvent, p as IsAllOptional, o as IsOptional, M as Mutable, N as NonFunctionKeys, u as ObjectMap, O as Overwrite, c as Performance, l as PointerCaptureTarget, P as PointerState, n as Properties, a4 as R3FRenderer, b as RenderCallback, R as RootExtension, a6 as RootState, d as RootStore, t as SetBlock, a as Size, S as Subscription, q as ThreeCamera, T as ThreeEvent, U as UnblockProps, V as Viewport, m as VisibilityEntry, X as XRManager, j as XRPointerConfig, a3 as context, r as registerRootExtension, s as setRenderOverride, a2 as useStore, a7 as useThree } from './shared/fiber.Bw8YnGg5.mjs';
3
- import { UseFrameNextOptions, FrameNextControls } from '@pmndrs/scheduler';
1
+ import { K as RootStore } from './shared/fiber.C_MFx7We.mjs';
2
+ export { aF as Act, aG as Bridge, W as Camera, a2 as ComputeFunction, aL as Disposable, _ as DomEvent, D as Dpr, aK as EquConfig, a0 as EventHandlers, a4 as EventManager, $ as Events, a1 as FilterFunction, aP as FrameCallback, aO as FrameNextCallback, aM as FrameNextState, aN as FrameState, F as Frameloop, I as InternalState, U as Intersection, Y as IntersectionEvent, aD as IsAllOptional, aC as IsOptional, aB as Mutable, ay as NonFunctionKeys, aJ as ObjectMap, az as Overwrite, H as Performance, a5 as PointerCaptureTarget, P as PointerState, aA as Properties, y as R3FRenderer, B as RenderCallback, w as RootExtension, J as RootState, aH as SetBlock, z as Size, S as Subscription, aE as ThreeCamera, Z as ThreeEvent, aI as UnblockProps, A as Viewport, a6 as VisibilityEntry, X as XRManager, a3 as XRPointerConfig, x as context, u as registerRootExtension, v as setRenderOverride, a$ as useStore, b0 as useThree } from './shared/fiber.C_MFx7We.mjs';
3
+ export { u as useFrame } from './shared/fiber.D4fD6H74.mjs';
4
+ import { Texture } from 'three';
4
5
  export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, SchedulerApi, UseFrameNextOptions, UseFrameOptions } from '@pmndrs/scheduler';
5
- import 'react';
6
- import 'three';
7
6
  import 'three/webgpu';
7
+ import 'react';
8
8
  import 'zustand';
9
9
  import 'zustand/traditional';
10
10
  import 'three/tsl';
11
11
 
12
12
  /**
13
- * Frame hook with phase-based ordering, priority, and FPS throttling.
14
- *
15
- * Always delivers full RootState — works both inside and outside Canvas context:
16
- * - Inside Canvas: Full RootState (renderer, scene, camera, etc.)
17
- * - Outside Canvas: The job registers immediately but the callback is held until a
18
- * Canvas adopts it, then runs with full RootState. For hostless / standalone
19
- * frame loops with no Canvas, use `@pmndrs/scheduler` directly.
20
- *
21
- * Returns a controls object for manual stepping, pausing, and resuming.
22
- *
23
- * @param callback - Function called each frame with (state, delta). Optional if you only need scheduler access.
24
- * @param priorityOrOptions - Either a priority number (backwards compat) or options object
25
- * @returns Controls object with step(), stepAll(), invalidate(), pause(), resume(), isPaused, id, rootId, scheduler
26
- *
27
- * @example
28
- * // Simple priority (backwards compat)
29
- * useFrame((state, delta) => { ... }, 5)
30
- *
31
- * @example
32
- * // With phase-based ordering
33
- * useFrame((state, delta) => { ... }, { phase: 'physics' })
34
- *
35
- * @example
36
- * // Outside Canvas - callback waits for a Canvas, then always has full state
37
- * function UI() {
38
- * useFrame((state, delta) => { syncUI(state.camera) });
39
- * return <button>...</button>;
40
- * }
41
- *
42
- * @example
43
- * // Hostless / standalone loop (no Canvas) - use @pmndrs/scheduler directly
44
- * import { getScheduler } from '@pmndrs/scheduler'
45
- * getScheduler().register((state, delta) => { updateGame(delta) })
46
- *
47
- * @example
48
- * // Scheduler-only access (no callback)
49
- * const { scheduler } = useFrame()
50
- * scheduler.pauseJob('some-job-id')
51
- *
52
- * @see https://docs.pmnd.rs/react-three-fiber/api/hooks#useframe
13
+ * The texture registry as a reader during render should see it: registered textures, plus those a
14
+ * `useTexture` earlier in this render loaded but has not registered yet. Returns the registry Map
15
+ * itself when nothing is staged. Read-only: register through `useTexture` / `useTextures().add`.
53
16
  */
54
- declare function useFrame(callback?: FrameNextCallback, priorityOrOptions?: number | UseFrameNextOptions): FrameNextControls;
17
+ declare function getTextureView(store: RootStore): ReadonlyMap<string, Texture>;
55
18
 
56
- export { FrameNextCallback, useFrame };
19
+ export { RootStore, getTextureView };
@@ -1,56 +1,19 @@
1
- import { z as FrameNextCallback } from './shared/fiber.Bw8YnGg5.js';
2
- export { A as Act, B as Bridge, C as Camera, i as ComputeFunction, w as Disposable, f as DomEvent, D as Dpr, v as EquConfig, g as EventHandlers, k as EventManager, E as Events, h as FilterFunction, G as FrameCallback, x as FrameNextState, y as FrameState, F as Frameloop, a5 as InternalState, I as Intersection, e as IntersectionEvent, p as IsAllOptional, o as IsOptional, M as Mutable, N as NonFunctionKeys, u as ObjectMap, O as Overwrite, c as Performance, l as PointerCaptureTarget, P as PointerState, n as Properties, a4 as R3FRenderer, b as RenderCallback, R as RootExtension, a6 as RootState, d as RootStore, t as SetBlock, a as Size, S as Subscription, q as ThreeCamera, T as ThreeEvent, U as UnblockProps, V as Viewport, m as VisibilityEntry, X as XRManager, j as XRPointerConfig, a3 as context, r as registerRootExtension, s as setRenderOverride, a2 as useStore, a7 as useThree } from './shared/fiber.Bw8YnGg5.js';
3
- import { UseFrameNextOptions, FrameNextControls } from '@pmndrs/scheduler';
1
+ import { K as RootStore } from './shared/fiber.C_MFx7We.js';
2
+ export { aF as Act, aG as Bridge, W as Camera, a2 as ComputeFunction, aL as Disposable, _ as DomEvent, D as Dpr, aK as EquConfig, a0 as EventHandlers, a4 as EventManager, $ as Events, a1 as FilterFunction, aP as FrameCallback, aO as FrameNextCallback, aM as FrameNextState, aN as FrameState, F as Frameloop, I as InternalState, U as Intersection, Y as IntersectionEvent, aD as IsAllOptional, aC as IsOptional, aB as Mutable, ay as NonFunctionKeys, aJ as ObjectMap, az as Overwrite, H as Performance, a5 as PointerCaptureTarget, P as PointerState, aA as Properties, y as R3FRenderer, B as RenderCallback, w as RootExtension, J as RootState, aH as SetBlock, z as Size, S as Subscription, aE as ThreeCamera, Z as ThreeEvent, aI as UnblockProps, A as Viewport, a6 as VisibilityEntry, X as XRManager, a3 as XRPointerConfig, x as context, u as registerRootExtension, v as setRenderOverride, a$ as useStore, b0 as useThree } from './shared/fiber.C_MFx7We.js';
3
+ export { u as useFrame } from './shared/fiber.YgTUGbja.js';
4
+ import { Texture } from 'three';
4
5
  export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, SchedulerApi, UseFrameNextOptions, UseFrameOptions } from '@pmndrs/scheduler';
5
- import 'react';
6
- import 'three';
7
6
  import 'three/webgpu';
7
+ import 'react';
8
8
  import 'zustand';
9
9
  import 'zustand/traditional';
10
10
  import 'three/tsl';
11
11
 
12
12
  /**
13
- * Frame hook with phase-based ordering, priority, and FPS throttling.
14
- *
15
- * Always delivers full RootState — works both inside and outside Canvas context:
16
- * - Inside Canvas: Full RootState (renderer, scene, camera, etc.)
17
- * - Outside Canvas: The job registers immediately but the callback is held until a
18
- * Canvas adopts it, then runs with full RootState. For hostless / standalone
19
- * frame loops with no Canvas, use `@pmndrs/scheduler` directly.
20
- *
21
- * Returns a controls object for manual stepping, pausing, and resuming.
22
- *
23
- * @param callback - Function called each frame with (state, delta). Optional if you only need scheduler access.
24
- * @param priorityOrOptions - Either a priority number (backwards compat) or options object
25
- * @returns Controls object with step(), stepAll(), invalidate(), pause(), resume(), isPaused, id, rootId, scheduler
26
- *
27
- * @example
28
- * // Simple priority (backwards compat)
29
- * useFrame((state, delta) => { ... }, 5)
30
- *
31
- * @example
32
- * // With phase-based ordering
33
- * useFrame((state, delta) => { ... }, { phase: 'physics' })
34
- *
35
- * @example
36
- * // Outside Canvas - callback waits for a Canvas, then always has full state
37
- * function UI() {
38
- * useFrame((state, delta) => { syncUI(state.camera) });
39
- * return <button>...</button>;
40
- * }
41
- *
42
- * @example
43
- * // Hostless / standalone loop (no Canvas) - use @pmndrs/scheduler directly
44
- * import { getScheduler } from '@pmndrs/scheduler'
45
- * getScheduler().register((state, delta) => { updateGame(delta) })
46
- *
47
- * @example
48
- * // Scheduler-only access (no callback)
49
- * const { scheduler } = useFrame()
50
- * scheduler.pauseJob('some-job-id')
51
- *
52
- * @see https://docs.pmnd.rs/react-three-fiber/api/hooks#useframe
13
+ * The texture registry as a reader during render should see it: registered textures, plus those a
14
+ * `useTexture` earlier in this render loaded but has not registered yet. Returns the registry Map
15
+ * itself when nothing is staged. Read-only: register through `useTexture` / `useTextures().add`.
53
16
  */
54
- declare function useFrame(callback?: FrameNextCallback, priorityOrOptions?: number | UseFrameNextOptions): FrameNextControls;
17
+ declare function getTextureView(store: RootStore): ReadonlyMap<string, Texture>;
55
18
 
56
- export { FrameNextCallback, useFrame };
19
+ export { RootStore, getTextureView };
@@ -1 +1 @@
1
- export { c as context, r as registerRootExtension, s as setRenderOverride, b as useFrame, u as useStore, a as useThree } from './shared/fiber.C_v1rkNg.mjs';
1
+ export { c as context, g as getTextureView, r as registerRootExtension, s as setRenderOverride, b as useFrame, u as useStore, a as useThree } from './shared/fiber.QxL_6jra.mjs';
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const jsxRuntime = require('react/jsx-runtime');
4
- const Canvas$1 = require('./shared/fiber.BGL2rpse.cjs');
5
- const extensions = require('./shared/fiber.B6zNSmwj.cjs');
4
+ const Canvas$1 = require('./shared/fiber.Bi_S5KAx.cjs');
5
+ const textureStaging = require('./shared/fiber.eR9ie2vQ.cjs');
6
6
  const scheduler = require('@pmndrs/scheduler');
7
7
 
8
8
  const R3F_BUILD_LEGACY = true;
@@ -95,17 +95,17 @@ exports.useTexture = Canvas$1.useTexture;
95
95
  exports.useTextures = Canvas$1.useTextures;
96
96
  exports.waitForPrimary = Canvas$1.waitForPrimary;
97
97
  exports.whenThree = Canvas$1.whenThree;
98
- exports.Block = extensions.Block;
99
- exports.ErrorBoundary = extensions.ErrorBoundary;
100
- exports.context = extensions.context;
101
- exports.registerRootExtension = extensions.registerRootExtension;
102
- exports.setRenderOverride = extensions.setRenderOverride;
103
- exports.useBridge = extensions.useBridge;
104
- exports.useFrame = extensions.useFrame;
105
- exports.useIsomorphicLayoutEffect = extensions.useIsomorphicLayoutEffect;
106
- exports.useMutableCallback = extensions.useMutableCallback;
107
- exports.useStore = extensions.useStore;
108
- exports.useThree = extensions.useThree;
98
+ exports.Block = textureStaging.Block;
99
+ exports.ErrorBoundary = textureStaging.ErrorBoundary;
100
+ exports.context = textureStaging.context;
101
+ exports.registerRootExtension = textureStaging.registerRootExtension;
102
+ exports.setRenderOverride = textureStaging.setRenderOverride;
103
+ exports.useBridge = textureStaging.useBridge;
104
+ exports.useFrame = textureStaging.useFrame;
105
+ exports.useIsomorphicLayoutEffect = textureStaging.useIsomorphicLayoutEffect;
106
+ exports.useMutableCallback = textureStaging.useMutableCallback;
107
+ exports.useStore = textureStaging.useStore;
108
+ exports.useThree = textureStaging.useThree;
109
109
  exports.Scheduler = scheduler.Scheduler;
110
110
  exports.getScheduler = scheduler.getScheduler;
111
111
  exports.Canvas = Canvas;
package/dist/index.d.cts CHANGED
@@ -1,17 +1,16 @@
1
1
  import * as ThreeWebGPU from 'three/webgpu';
2
2
  import * as THREE from 'three';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { M as MutableOrReadonlyParameters$1, a as MathRepresentation$1, V as VectorRepresentation$1, b as MathTypes$1, c as MathType$1, d as MathProps$1, e as Vector2$1, f as Vector3$1, g as Vector4$1, C as Color$1, L as Layers$1, Q as Quaternion$1, E as Euler$1, h as Matrix3$1, i as Matrix4$1, R as RaycastableRepresentation$1, j as EventProps$1, G as GeometryTransformProps$1, k as GeometryProps$1, T as TSLNodeInput$1, N as NodeProps$1, l as ReactProps$1, m as ConstructorRepresentation, n as ElementProps$1, o as ThreeElement$1, p as ThreeToJSXElements$1, O as Object3DMethod$1, q as ThreeElementsOf$1, r as ElementOf$1, v as RenderTargetOptions, u as ReconcilerRoot, s as CanvasProps } from './shared/fiber.DiPB625B.cjs';
5
- export { a7 as Args, a8 as ArgsProp, a4 as AttachFnType, a5 as AttachType, ae as BackgroundConfig, af as BackgroundProp, I as BaseRendererProps, b8 as Block, $ as CameraProps, Y as CanvasSchedulerConfig, a6 as Catalogue, P as ColorManagementConfig, S as DefaultGLProps, X as DefaultRendererProps, aO as DisposeOptions, ay as Environment, aw as EnvironmentCube, aR as EnvironmentLoaderProps, av as EnvironmentMap, ax as EnvironmentPortal, au as EnvironmentProps, b9 as ErrorBoundary, am as Extensions, bD as FROM_REF, a2 as FiberRoot, bE as FromRefMarker, U as GLProps, ai as GLTFLike, ad as GlobalEffectType, ac as GlobalRenderCallback, ab as HostConfig, ak as InferLoadResult, a1 as InjectState, ag as InputLike, aa as Instance, a9 as InstanceProps, aH as IsObject, x as LegacyInternalState, y as LegacyRenderer, t as LegacyRootState, aj as LoaderInstance, ah as LoaderLike, al as LoaderResult, aI as MappedTextureType, bH as ONCE, H as OffscreenCanvas, bJ as OnceValue, b2 as Portal, aA as PresetsType, an as PrimaryCanvasEntry, ba as REACT_INTERNAL_PROPS, bi as RESERVED_PROPS, a0 as RenderProps, K as Renderer, Z as RendererConfigExtended, J as RendererFactory, _ as RendererProps, a3 as Root, aL as Texture, aM as TextureInput, aN as TextureResult, aJ as UseTextureOptions, aP as UseTexturesReturn, z as WebGLDefaultProps, W as WebGLProps, A as WebGLShadowConfig, a$ as _roots, aU as addAfterEffect, aT as addEffect, aV as addTail, aX as advance, bn as applyProps, bk as attach, bd as buildGraph, bo as calculateDpr, aD as createEvents, w as createPointerEvents, b1 as createPortal, b4 as createStore, bl as detach, bm as diffProps, be as dispose, w as events, aY as extend, bb as findInitialRoot, b3 as flushSync, bF as fromRef, bf as getInstanceProps, ap as getPrimary, at as getPrimaryIds, bc as getRootState, B as getThree, bp as getUuidPrefix, bC as hasConstructor, ar as hasPrimary, D as hasThree, aW as invalidate, bh as invalidateInstance, bs as is, bv as isColorRepresentation, bB as isCopyable, bG as isFromRef, by as isLayers, bw as isObject3D, bK as isOnce, bt as isOrthographicCamera, bu as isRef, a_ as isRenderer, bx as isTexture, bz as isUniform, bA as isVectorLike, bI as once, bg as prepare, az as presetsObj, aZ as reconciler, ao as registerPrimary, aC as removeInteractivity, bj as resolve, aB as swapInteractivity, b0 as unmountComponentAtNode, as as unregisterPrimary, bq as updateCamera, br as updateFrustum, b7 as useBridge, aS as useEnvironment, aF as useGraph, aE as useInstanceHandle, b5 as useIsomorphicLayoutEffect, aG as useLoader, b6 as useMutableCallback, aK as useTexture, aQ as useTextures, aq as waitForPrimary, F as whenThree } from './shared/fiber.DiPB625B.cjs';
6
- import { a0 as R3FRenderTarget } from './shared/fiber.Bw8YnGg5.cjs';
7
- export { A as Act, B as Bridge, C as Camera, i as ComputeFunction, w as Disposable, f as DomEvent, D as Dpr, v as EquConfig, g as EventHandlers, k as EventManager, E as Events, h as FilterFunction, $ as ForRegisteredRenderer, G as FrameCallback, z as FrameNextCallback, x as FrameNextState, y as FrameState, F as Frameloop, a5 as InternalState, I as Intersection, e as IntersectionEvent, p as IsAllOptional, o as IsOptional, M as Mutable, N as NonFunctionKeys, u as ObjectMap, K as OcclusionSupport, O as Overwrite, c as Performance, l as PointerCaptureTarget, P as PointerState, n as Properties, a4 as R3FRenderer, a1 as R3FRendererSupport, Z as Register, _ as RegisteredRenderer, b as RenderCallback, Y as RendererProvider, Q as RendererSupport, R as RootExtension, a6 as RootState, d as RootStore, t as SetBlock, a as Size, S as Subscription, q as ThreeCamera, J as ThreeCore, T as ThreeEvent, H as ThreeNamespace, U as UnblockProps, V as Viewport, m as VisibilityEntry, W as WebGLSupport, L as WebGPUSupport, X as XRManager, j as XRPointerConfig, a3 as context, r as registerRootExtension, s as setRenderOverride, a2 as useStore, a7 as useThree } from './shared/fiber.Bw8YnGg5.cjs';
3
+ import * as React from 'react';
4
+ import { M as MutableOrReadonlyParameters$1, a as MathRepresentation$1, V as VectorRepresentation$1, b as MathTypes$1, c as MathType$1, d as MathProps$1, e as Vector2$1, f as Vector3$1, g as Vector4$1, C as Color$1, L as Layers$1, Q as Quaternion$1, E as Euler$1, h as Matrix3$1, i as Matrix4$1, R as RaycastableRepresentation$1, j as EventProps$1, G as GeometryTransformProps$1, k as GeometryProps$1, T as TSLNodeInput$1, N as NodeProps$1, l as ReactProps$1, m as ConstructorRepresentation, n as ElementProps$1, o as ThreeElement$1, p as ThreeToJSXElements$1, O as Object3DMethod$1, q as ThreeElementsOf$1, r as ElementOf$1, s as R3FRenderTarget, t as ReconcilerRoot } from './shared/fiber.C_MFx7We.cjs';
5
+ export { aF as Act, at as Args, au as ArgsProp, aq as AttachFnType, ar as AttachType, a8 as BaseRendererProps, aG as Bridge, W as Camera, ak as CameraProps, ah as CanvasSchedulerConfig, as as Catalogue, ab as ColorManagementConfig, a2 as ComputeFunction, ae as DefaultGLProps, ag as DefaultRendererProps, aL as Disposable, _ as DomEvent, D as Dpr, aK as EquConfig, a0 as EventHandlers, a4 as EventManager, $ as Events, an as FiberRoot, a1 as FilterFunction, aZ as ForRegisteredRenderer, aP as FrameCallback, aO as FrameNextCallback, aM as FrameNextState, aN as FrameState, F as Frameloop, af as GLProps, ax as HostConfig, am as InjectState, aw as Instance, av as InstanceProps, I as InternalState, U as Intersection, Y as IntersectionEvent, aD as IsAllOptional, aC as IsOptional, aB as Mutable, ay as NonFunctionKeys, aJ as ObjectMap, aS as OcclusionSupport, a7 as OffscreenCanvas, az as Overwrite, H as Performance, a5 as PointerCaptureTarget, P as PointerState, aA as Properties, y as R3FRenderer, a_ as R3FRendererSupport, aX as Register, aY as RegisteredRenderer, B as RenderCallback, al as RenderProps, aa as Renderer, ai as RendererConfigExtended, a9 as RendererFactory, aj as RendererProps, aW as RendererProvider, ad as RendererSettingsConfig, aV as RendererSupport, ap as Root, w as RootExtension, J as RootState, K as RootStore, aH as SetBlock, ac as ShadowsConfig, z as Size, S as Subscription, aE as ThreeCamera, aR as ThreeCore, Z as ThreeEvent, aQ as ThreeNamespace, ao as TrackedPromise, aI as UnblockProps, A as Viewport, a6 as VisibilityEntry, aT as WebGLSupport, aU as WebGPUSupport, X as XRManager, a3 as XRPointerConfig, x as context, u as registerRootExtension, v as setRenderOverride, a$ as useStore, b0 as useThree } from './shared/fiber.C_MFx7We.cjs';
6
+ import { R as RenderTargetOptions, C as CanvasProps } from './shared/fiber.fR3DaJb1.cjs';
7
+ export { B as BackgroundConfig, p as BackgroundProp, ai as Block, a3 as DisposeOptions, M as Environment, J as EnvironmentCube, a6 as EnvironmentLoaderProps, H as EnvironmentMap, K as EnvironmentPortal, F as EnvironmentProps, aj as ErrorBoundary, E as Extensions, aN as FROM_REF, aO as FromRefMarker, q as GLTFLike, o as GlobalEffectType, G as GlobalRenderCallback, t as InferLoadResult, I as InputLike, Y as IsObject, A as LegacyInternalState, z as LegacyRenderer, D as LegacyRootState, s as LoaderInstance, L as LoaderLike, v as LoaderResult, Z as MappedTextureType, aR as ONCE, aT as OnceValue, ae as Portal, O as PresetsType, P as PrimaryCanvasEntry, ao as REACT_INTERNAL_PROPS, aw as RESERVED_PROPS, a0 as Texture, a1 as TextureInput, a2 as TextureResult, _ as UseTextureOptions, a4 as UseTexturesReturn, W as WebGLDefaultProps, x as WebGLProps, y as WebGLShadowConfig, ab as _roots, b as addAfterEffect, a as addEffect, d as addTail, e as advance, aB as applyProps, ay as attach, ar as buildGraph, ak as calculateDpr, T as createEvents, c as createPointerEvents, ad as createPortal, k as createStore, az as detach, aA as diffProps, as as dispose, c as events, a8 as extend, ap as findInitialRoot, aa as flushSync, aP as fromRef, at as getInstanceProps, g as getPrimary, j as getPrimaryIds, aq as getRootState, l as getThree, al as getUuidPrefix, aM as hasConstructor, h as hasPrimary, m as hasThree, i as invalidate, av as invalidateInstance, aC as is, aF as isColorRepresentation, aL as isCopyable, aQ as isFromRef, aI as isLayers, aG as isObject3D, aU as isOnce, aD as isOrthographicCamera, aE as isRef, f as isRenderer, aH as isTexture, aJ as isUniform, aK as isVectorLike, aS as once, au as prepare, N as presetsObj, a9 as reconciler, r as registerPrimary, S as removeInteractivity, ax as resolve, Q as swapInteractivity, ac as unmountComponentAtNode, u as unregisterPrimary, am as updateCamera, an as updateFrustum, ah as useBridge, a7 as useEnvironment, V as useGraph, U as useInstanceHandle, af as useIsomorphicLayoutEffect, X as useLoader, ag as useMutableCallback, $ as useTexture, a5 as useTextures, w as waitForPrimary, n as whenThree } from './shared/fiber.fR3DaJb1.cjs';
8
8
  export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, Scheduler, SchedulerApi, UseFrameNextOptions, UseFrameOptions, getScheduler } from '@pmndrs/scheduler';
9
- export { useFrame } from './extension.cjs';
10
- import 'react';
11
- import 'react-use-measure';
9
+ export { u as useFrame } from './shared/fiber.C6hitYDY.cjs';
12
10
  import 'zustand';
13
11
  import 'zustand/traditional';
14
12
  import 'three/tsl';
13
+ import 'react-use-measure';
15
14
 
16
15
  /**
17
16
  * The `ReactThreeFiber` namespace of the default entry: the shared element types plus this entry's JSX map.
@@ -128,7 +127,7 @@ declare function createRoot<TCanvas extends HTMLCanvasElement | OffscreenCanvas>
128
127
  * WebGPU when given the `renderer` prop.
129
128
  * @see https://docs.pmnd.rs/react-three-fiber/api/canvas
130
129
  */
131
- declare function Canvas(props: CanvasProps): react_jsx_runtime.JSX.Element;
130
+ declare function Canvas(props: CanvasProps): React.JSX.Element;
132
131
  /** Three.js constructors available as JSX elements on this entry. */
133
132
  type ThreeExports = typeof THREE & typeof ThreeWebGPU;
134
133
  interface ThreeElements extends ThreeElementsOf$1<ThreeExports> {
package/dist/index.d.mts CHANGED
@@ -1,17 +1,16 @@
1
1
  import * as ThreeWebGPU from 'three/webgpu';
2
2
  import * as THREE from 'three';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { M as MutableOrReadonlyParameters$1, a as MathRepresentation$1, V as VectorRepresentation$1, b as MathTypes$1, c as MathType$1, d as MathProps$1, e as Vector2$1, f as Vector3$1, g as Vector4$1, C as Color$1, L as Layers$1, Q as Quaternion$1, E as Euler$1, h as Matrix3$1, i as Matrix4$1, R as RaycastableRepresentation$1, j as EventProps$1, G as GeometryTransformProps$1, k as GeometryProps$1, T as TSLNodeInput$1, N as NodeProps$1, l as ReactProps$1, m as ConstructorRepresentation, n as ElementProps$1, o as ThreeElement$1, p as ThreeToJSXElements$1, O as Object3DMethod$1, q as ThreeElementsOf$1, r as ElementOf$1, v as RenderTargetOptions, u as ReconcilerRoot, s as CanvasProps } from './shared/fiber.Ddgoyqql.mjs';
5
- export { a7 as Args, a8 as ArgsProp, a4 as AttachFnType, a5 as AttachType, ae as BackgroundConfig, af as BackgroundProp, I as BaseRendererProps, b8 as Block, $ as CameraProps, Y as CanvasSchedulerConfig, a6 as Catalogue, P as ColorManagementConfig, S as DefaultGLProps, X as DefaultRendererProps, aO as DisposeOptions, ay as Environment, aw as EnvironmentCube, aR as EnvironmentLoaderProps, av as EnvironmentMap, ax as EnvironmentPortal, au as EnvironmentProps, b9 as ErrorBoundary, am as Extensions, bD as FROM_REF, a2 as FiberRoot, bE as FromRefMarker, U as GLProps, ai as GLTFLike, ad as GlobalEffectType, ac as GlobalRenderCallback, ab as HostConfig, ak as InferLoadResult, a1 as InjectState, ag as InputLike, aa as Instance, a9 as InstanceProps, aH as IsObject, x as LegacyInternalState, y as LegacyRenderer, t as LegacyRootState, aj as LoaderInstance, ah as LoaderLike, al as LoaderResult, aI as MappedTextureType, bH as ONCE, H as OffscreenCanvas, bJ as OnceValue, b2 as Portal, aA as PresetsType, an as PrimaryCanvasEntry, ba as REACT_INTERNAL_PROPS, bi as RESERVED_PROPS, a0 as RenderProps, K as Renderer, Z as RendererConfigExtended, J as RendererFactory, _ as RendererProps, a3 as Root, aL as Texture, aM as TextureInput, aN as TextureResult, aJ as UseTextureOptions, aP as UseTexturesReturn, z as WebGLDefaultProps, W as WebGLProps, A as WebGLShadowConfig, a$ as _roots, aU as addAfterEffect, aT as addEffect, aV as addTail, aX as advance, bn as applyProps, bk as attach, bd as buildGraph, bo as calculateDpr, aD as createEvents, w as createPointerEvents, b1 as createPortal, b4 as createStore, bl as detach, bm as diffProps, be as dispose, w as events, aY as extend, bb as findInitialRoot, b3 as flushSync, bF as fromRef, bf as getInstanceProps, ap as getPrimary, at as getPrimaryIds, bc as getRootState, B as getThree, bp as getUuidPrefix, bC as hasConstructor, ar as hasPrimary, D as hasThree, aW as invalidate, bh as invalidateInstance, bs as is, bv as isColorRepresentation, bB as isCopyable, bG as isFromRef, by as isLayers, bw as isObject3D, bK as isOnce, bt as isOrthographicCamera, bu as isRef, a_ as isRenderer, bx as isTexture, bz as isUniform, bA as isVectorLike, bI as once, bg as prepare, az as presetsObj, aZ as reconciler, ao as registerPrimary, aC as removeInteractivity, bj as resolve, aB as swapInteractivity, b0 as unmountComponentAtNode, as as unregisterPrimary, bq as updateCamera, br as updateFrustum, b7 as useBridge, aS as useEnvironment, aF as useGraph, aE as useInstanceHandle, b5 as useIsomorphicLayoutEffect, aG as useLoader, b6 as useMutableCallback, aK as useTexture, aQ as useTextures, aq as waitForPrimary, F as whenThree } from './shared/fiber.Ddgoyqql.mjs';
6
- import { a0 as R3FRenderTarget } from './shared/fiber.Bw8YnGg5.mjs';
7
- export { A as Act, B as Bridge, C as Camera, i as ComputeFunction, w as Disposable, f as DomEvent, D as Dpr, v as EquConfig, g as EventHandlers, k as EventManager, E as Events, h as FilterFunction, $ as ForRegisteredRenderer, G as FrameCallback, z as FrameNextCallback, x as FrameNextState, y as FrameState, F as Frameloop, a5 as InternalState, I as Intersection, e as IntersectionEvent, p as IsAllOptional, o as IsOptional, M as Mutable, N as NonFunctionKeys, u as ObjectMap, K as OcclusionSupport, O as Overwrite, c as Performance, l as PointerCaptureTarget, P as PointerState, n as Properties, a4 as R3FRenderer, a1 as R3FRendererSupport, Z as Register, _ as RegisteredRenderer, b as RenderCallback, Y as RendererProvider, Q as RendererSupport, R as RootExtension, a6 as RootState, d as RootStore, t as SetBlock, a as Size, S as Subscription, q as ThreeCamera, J as ThreeCore, T as ThreeEvent, H as ThreeNamespace, U as UnblockProps, V as Viewport, m as VisibilityEntry, W as WebGLSupport, L as WebGPUSupport, X as XRManager, j as XRPointerConfig, a3 as context, r as registerRootExtension, s as setRenderOverride, a2 as useStore, a7 as useThree } from './shared/fiber.Bw8YnGg5.mjs';
3
+ import * as React from 'react';
4
+ import { M as MutableOrReadonlyParameters$1, a as MathRepresentation$1, V as VectorRepresentation$1, b as MathTypes$1, c as MathType$1, d as MathProps$1, e as Vector2$1, f as Vector3$1, g as Vector4$1, C as Color$1, L as Layers$1, Q as Quaternion$1, E as Euler$1, h as Matrix3$1, i as Matrix4$1, R as RaycastableRepresentation$1, j as EventProps$1, G as GeometryTransformProps$1, k as GeometryProps$1, T as TSLNodeInput$1, N as NodeProps$1, l as ReactProps$1, m as ConstructorRepresentation, n as ElementProps$1, o as ThreeElement$1, p as ThreeToJSXElements$1, O as Object3DMethod$1, q as ThreeElementsOf$1, r as ElementOf$1, s as R3FRenderTarget, t as ReconcilerRoot } from './shared/fiber.C_MFx7We.mjs';
5
+ export { aF as Act, at as Args, au as ArgsProp, aq as AttachFnType, ar as AttachType, a8 as BaseRendererProps, aG as Bridge, W as Camera, ak as CameraProps, ah as CanvasSchedulerConfig, as as Catalogue, ab as ColorManagementConfig, a2 as ComputeFunction, ae as DefaultGLProps, ag as DefaultRendererProps, aL as Disposable, _ as DomEvent, D as Dpr, aK as EquConfig, a0 as EventHandlers, a4 as EventManager, $ as Events, an as FiberRoot, a1 as FilterFunction, aZ as ForRegisteredRenderer, aP as FrameCallback, aO as FrameNextCallback, aM as FrameNextState, aN as FrameState, F as Frameloop, af as GLProps, ax as HostConfig, am as InjectState, aw as Instance, av as InstanceProps, I as InternalState, U as Intersection, Y as IntersectionEvent, aD as IsAllOptional, aC as IsOptional, aB as Mutable, ay as NonFunctionKeys, aJ as ObjectMap, aS as OcclusionSupport, a7 as OffscreenCanvas, az as Overwrite, H as Performance, a5 as PointerCaptureTarget, P as PointerState, aA as Properties, y as R3FRenderer, a_ as R3FRendererSupport, aX as Register, aY as RegisteredRenderer, B as RenderCallback, al as RenderProps, aa as Renderer, ai as RendererConfigExtended, a9 as RendererFactory, aj as RendererProps, aW as RendererProvider, ad as RendererSettingsConfig, aV as RendererSupport, ap as Root, w as RootExtension, J as RootState, K as RootStore, aH as SetBlock, ac as ShadowsConfig, z as Size, S as Subscription, aE as ThreeCamera, aR as ThreeCore, Z as ThreeEvent, aQ as ThreeNamespace, ao as TrackedPromise, aI as UnblockProps, A as Viewport, a6 as VisibilityEntry, aT as WebGLSupport, aU as WebGPUSupport, X as XRManager, a3 as XRPointerConfig, x as context, u as registerRootExtension, v as setRenderOverride, a$ as useStore, b0 as useThree } from './shared/fiber.C_MFx7We.mjs';
6
+ import { R as RenderTargetOptions, C as CanvasProps } from './shared/fiber.3jeDXXYd.mjs';
7
+ export { B as BackgroundConfig, p as BackgroundProp, ai as Block, a3 as DisposeOptions, M as Environment, J as EnvironmentCube, a6 as EnvironmentLoaderProps, H as EnvironmentMap, K as EnvironmentPortal, F as EnvironmentProps, aj as ErrorBoundary, E as Extensions, aN as FROM_REF, aO as FromRefMarker, q as GLTFLike, o as GlobalEffectType, G as GlobalRenderCallback, t as InferLoadResult, I as InputLike, Y as IsObject, A as LegacyInternalState, z as LegacyRenderer, D as LegacyRootState, s as LoaderInstance, L as LoaderLike, v as LoaderResult, Z as MappedTextureType, aR as ONCE, aT as OnceValue, ae as Portal, O as PresetsType, P as PrimaryCanvasEntry, ao as REACT_INTERNAL_PROPS, aw as RESERVED_PROPS, a0 as Texture, a1 as TextureInput, a2 as TextureResult, _ as UseTextureOptions, a4 as UseTexturesReturn, W as WebGLDefaultProps, x as WebGLProps, y as WebGLShadowConfig, ab as _roots, b as addAfterEffect, a as addEffect, d as addTail, e as advance, aB as applyProps, ay as attach, ar as buildGraph, ak as calculateDpr, T as createEvents, c as createPointerEvents, ad as createPortal, k as createStore, az as detach, aA as diffProps, as as dispose, c as events, a8 as extend, ap as findInitialRoot, aa as flushSync, aP as fromRef, at as getInstanceProps, g as getPrimary, j as getPrimaryIds, aq as getRootState, l as getThree, al as getUuidPrefix, aM as hasConstructor, h as hasPrimary, m as hasThree, i as invalidate, av as invalidateInstance, aC as is, aF as isColorRepresentation, aL as isCopyable, aQ as isFromRef, aI as isLayers, aG as isObject3D, aU as isOnce, aD as isOrthographicCamera, aE as isRef, f as isRenderer, aH as isTexture, aJ as isUniform, aK as isVectorLike, aS as once, au as prepare, N as presetsObj, a9 as reconciler, r as registerPrimary, S as removeInteractivity, ax as resolve, Q as swapInteractivity, ac as unmountComponentAtNode, u as unregisterPrimary, am as updateCamera, an as updateFrustum, ah as useBridge, a7 as useEnvironment, V as useGraph, U as useInstanceHandle, af as useIsomorphicLayoutEffect, X as useLoader, ag as useMutableCallback, $ as useTexture, a5 as useTextures, w as waitForPrimary, n as whenThree } from './shared/fiber.3jeDXXYd.mjs';
8
8
  export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, Scheduler, SchedulerApi, UseFrameNextOptions, UseFrameOptions, getScheduler } from '@pmndrs/scheduler';
9
- export { useFrame } from './extension.mjs';
10
- import 'react';
11
- import 'react-use-measure';
9
+ export { u as useFrame } from './shared/fiber.D4fD6H74.mjs';
12
10
  import 'zustand';
13
11
  import 'zustand/traditional';
14
12
  import 'three/tsl';
13
+ import 'react-use-measure';
15
14
 
16
15
  /**
17
16
  * The `ReactThreeFiber` namespace of the default entry: the shared element types plus this entry's JSX map.
@@ -128,7 +127,7 @@ declare function createRoot<TCanvas extends HTMLCanvasElement | OffscreenCanvas>
128
127
  * WebGPU when given the `renderer` prop.
129
128
  * @see https://docs.pmnd.rs/react-three-fiber/api/canvas
130
129
  */
131
- declare function Canvas(props: CanvasProps): react_jsx_runtime.JSX.Element;
130
+ declare function Canvas(props: CanvasProps): React.JSX.Element;
132
131
  /** Three.js constructors available as JSX elements on this entry. */
133
132
  type ThreeExports = typeof THREE & typeof ThreeWebGPU;
134
133
  interface ThreeElements extends ThreeElementsOf$1<ThreeExports> {
package/dist/index.d.ts CHANGED
@@ -1,17 +1,16 @@
1
1
  import * as ThreeWebGPU from 'three/webgpu';
2
2
  import * as THREE from 'three';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { M as MutableOrReadonlyParameters$1, a as MathRepresentation$1, V as VectorRepresentation$1, b as MathTypes$1, c as MathType$1, d as MathProps$1, e as Vector2$1, f as Vector3$1, g as Vector4$1, C as Color$1, L as Layers$1, Q as Quaternion$1, E as Euler$1, h as Matrix3$1, i as Matrix4$1, R as RaycastableRepresentation$1, j as EventProps$1, G as GeometryTransformProps$1, k as GeometryProps$1, T as TSLNodeInput$1, N as NodeProps$1, l as ReactProps$1, m as ConstructorRepresentation, n as ElementProps$1, o as ThreeElement$1, p as ThreeToJSXElements$1, O as Object3DMethod$1, q as ThreeElementsOf$1, r as ElementOf$1, v as RenderTargetOptions, u as ReconcilerRoot, s as CanvasProps } from './shared/fiber.DAg-9ieU.js';
5
- export { a7 as Args, a8 as ArgsProp, a4 as AttachFnType, a5 as AttachType, ae as BackgroundConfig, af as BackgroundProp, I as BaseRendererProps, b8 as Block, $ as CameraProps, Y as CanvasSchedulerConfig, a6 as Catalogue, P as ColorManagementConfig, S as DefaultGLProps, X as DefaultRendererProps, aO as DisposeOptions, ay as Environment, aw as EnvironmentCube, aR as EnvironmentLoaderProps, av as EnvironmentMap, ax as EnvironmentPortal, au as EnvironmentProps, b9 as ErrorBoundary, am as Extensions, bD as FROM_REF, a2 as FiberRoot, bE as FromRefMarker, U as GLProps, ai as GLTFLike, ad as GlobalEffectType, ac as GlobalRenderCallback, ab as HostConfig, ak as InferLoadResult, a1 as InjectState, ag as InputLike, aa as Instance, a9 as InstanceProps, aH as IsObject, x as LegacyInternalState, y as LegacyRenderer, t as LegacyRootState, aj as LoaderInstance, ah as LoaderLike, al as LoaderResult, aI as MappedTextureType, bH as ONCE, H as OffscreenCanvas, bJ as OnceValue, b2 as Portal, aA as PresetsType, an as PrimaryCanvasEntry, ba as REACT_INTERNAL_PROPS, bi as RESERVED_PROPS, a0 as RenderProps, K as Renderer, Z as RendererConfigExtended, J as RendererFactory, _ as RendererProps, a3 as Root, aL as Texture, aM as TextureInput, aN as TextureResult, aJ as UseTextureOptions, aP as UseTexturesReturn, z as WebGLDefaultProps, W as WebGLProps, A as WebGLShadowConfig, a$ as _roots, aU as addAfterEffect, aT as addEffect, aV as addTail, aX as advance, bn as applyProps, bk as attach, bd as buildGraph, bo as calculateDpr, aD as createEvents, w as createPointerEvents, b1 as createPortal, b4 as createStore, bl as detach, bm as diffProps, be as dispose, w as events, aY as extend, bb as findInitialRoot, b3 as flushSync, bF as fromRef, bf as getInstanceProps, ap as getPrimary, at as getPrimaryIds, bc as getRootState, B as getThree, bp as getUuidPrefix, bC as hasConstructor, ar as hasPrimary, D as hasThree, aW as invalidate, bh as invalidateInstance, bs as is, bv as isColorRepresentation, bB as isCopyable, bG as isFromRef, by as isLayers, bw as isObject3D, bK as isOnce, bt as isOrthographicCamera, bu as isRef, a_ as isRenderer, bx as isTexture, bz as isUniform, bA as isVectorLike, bI as once, bg as prepare, az as presetsObj, aZ as reconciler, ao as registerPrimary, aC as removeInteractivity, bj as resolve, aB as swapInteractivity, b0 as unmountComponentAtNode, as as unregisterPrimary, bq as updateCamera, br as updateFrustum, b7 as useBridge, aS as useEnvironment, aF as useGraph, aE as useInstanceHandle, b5 as useIsomorphicLayoutEffect, aG as useLoader, b6 as useMutableCallback, aK as useTexture, aQ as useTextures, aq as waitForPrimary, F as whenThree } from './shared/fiber.DAg-9ieU.js';
6
- import { a0 as R3FRenderTarget } from './shared/fiber.Bw8YnGg5.js';
7
- export { A as Act, B as Bridge, C as Camera, i as ComputeFunction, w as Disposable, f as DomEvent, D as Dpr, v as EquConfig, g as EventHandlers, k as EventManager, E as Events, h as FilterFunction, $ as ForRegisteredRenderer, G as FrameCallback, z as FrameNextCallback, x as FrameNextState, y as FrameState, F as Frameloop, a5 as InternalState, I as Intersection, e as IntersectionEvent, p as IsAllOptional, o as IsOptional, M as Mutable, N as NonFunctionKeys, u as ObjectMap, K as OcclusionSupport, O as Overwrite, c as Performance, l as PointerCaptureTarget, P as PointerState, n as Properties, a4 as R3FRenderer, a1 as R3FRendererSupport, Z as Register, _ as RegisteredRenderer, b as RenderCallback, Y as RendererProvider, Q as RendererSupport, R as RootExtension, a6 as RootState, d as RootStore, t as SetBlock, a as Size, S as Subscription, q as ThreeCamera, J as ThreeCore, T as ThreeEvent, H as ThreeNamespace, U as UnblockProps, V as Viewport, m as VisibilityEntry, W as WebGLSupport, L as WebGPUSupport, X as XRManager, j as XRPointerConfig, a3 as context, r as registerRootExtension, s as setRenderOverride, a2 as useStore, a7 as useThree } from './shared/fiber.Bw8YnGg5.js';
3
+ import * as React from 'react';
4
+ import { M as MutableOrReadonlyParameters$1, a as MathRepresentation$1, V as VectorRepresentation$1, b as MathTypes$1, c as MathType$1, d as MathProps$1, e as Vector2$1, f as Vector3$1, g as Vector4$1, C as Color$1, L as Layers$1, Q as Quaternion$1, E as Euler$1, h as Matrix3$1, i as Matrix4$1, R as RaycastableRepresentation$1, j as EventProps$1, G as GeometryTransformProps$1, k as GeometryProps$1, T as TSLNodeInput$1, N as NodeProps$1, l as ReactProps$1, m as ConstructorRepresentation, n as ElementProps$1, o as ThreeElement$1, p as ThreeToJSXElements$1, O as Object3DMethod$1, q as ThreeElementsOf$1, r as ElementOf$1, s as R3FRenderTarget, t as ReconcilerRoot } from './shared/fiber.C_MFx7We.js';
5
+ export { aF as Act, at as Args, au as ArgsProp, aq as AttachFnType, ar as AttachType, a8 as BaseRendererProps, aG as Bridge, W as Camera, ak as CameraProps, ah as CanvasSchedulerConfig, as as Catalogue, ab as ColorManagementConfig, a2 as ComputeFunction, ae as DefaultGLProps, ag as DefaultRendererProps, aL as Disposable, _ as DomEvent, D as Dpr, aK as EquConfig, a0 as EventHandlers, a4 as EventManager, $ as Events, an as FiberRoot, a1 as FilterFunction, aZ as ForRegisteredRenderer, aP as FrameCallback, aO as FrameNextCallback, aM as FrameNextState, aN as FrameState, F as Frameloop, af as GLProps, ax as HostConfig, am as InjectState, aw as Instance, av as InstanceProps, I as InternalState, U as Intersection, Y as IntersectionEvent, aD as IsAllOptional, aC as IsOptional, aB as Mutable, ay as NonFunctionKeys, aJ as ObjectMap, aS as OcclusionSupport, a7 as OffscreenCanvas, az as Overwrite, H as Performance, a5 as PointerCaptureTarget, P as PointerState, aA as Properties, y as R3FRenderer, a_ as R3FRendererSupport, aX as Register, aY as RegisteredRenderer, B as RenderCallback, al as RenderProps, aa as Renderer, ai as RendererConfigExtended, a9 as RendererFactory, aj as RendererProps, aW as RendererProvider, ad as RendererSettingsConfig, aV as RendererSupport, ap as Root, w as RootExtension, J as RootState, K as RootStore, aH as SetBlock, ac as ShadowsConfig, z as Size, S as Subscription, aE as ThreeCamera, aR as ThreeCore, Z as ThreeEvent, aQ as ThreeNamespace, ao as TrackedPromise, aI as UnblockProps, A as Viewport, a6 as VisibilityEntry, aT as WebGLSupport, aU as WebGPUSupport, X as XRManager, a3 as XRPointerConfig, x as context, u as registerRootExtension, v as setRenderOverride, a$ as useStore, b0 as useThree } from './shared/fiber.C_MFx7We.js';
6
+ import { R as RenderTargetOptions, C as CanvasProps } from './shared/fiber.B_KQAb3I.js';
7
+ export { B as BackgroundConfig, p as BackgroundProp, ai as Block, a3 as DisposeOptions, M as Environment, J as EnvironmentCube, a6 as EnvironmentLoaderProps, H as EnvironmentMap, K as EnvironmentPortal, F as EnvironmentProps, aj as ErrorBoundary, E as Extensions, aN as FROM_REF, aO as FromRefMarker, q as GLTFLike, o as GlobalEffectType, G as GlobalRenderCallback, t as InferLoadResult, I as InputLike, Y as IsObject, A as LegacyInternalState, z as LegacyRenderer, D as LegacyRootState, s as LoaderInstance, L as LoaderLike, v as LoaderResult, Z as MappedTextureType, aR as ONCE, aT as OnceValue, ae as Portal, O as PresetsType, P as PrimaryCanvasEntry, ao as REACT_INTERNAL_PROPS, aw as RESERVED_PROPS, a0 as Texture, a1 as TextureInput, a2 as TextureResult, _ as UseTextureOptions, a4 as UseTexturesReturn, W as WebGLDefaultProps, x as WebGLProps, y as WebGLShadowConfig, ab as _roots, b as addAfterEffect, a as addEffect, d as addTail, e as advance, aB as applyProps, ay as attach, ar as buildGraph, ak as calculateDpr, T as createEvents, c as createPointerEvents, ad as createPortal, k as createStore, az as detach, aA as diffProps, as as dispose, c as events, a8 as extend, ap as findInitialRoot, aa as flushSync, aP as fromRef, at as getInstanceProps, g as getPrimary, j as getPrimaryIds, aq as getRootState, l as getThree, al as getUuidPrefix, aM as hasConstructor, h as hasPrimary, m as hasThree, i as invalidate, av as invalidateInstance, aC as is, aF as isColorRepresentation, aL as isCopyable, aQ as isFromRef, aI as isLayers, aG as isObject3D, aU as isOnce, aD as isOrthographicCamera, aE as isRef, f as isRenderer, aH as isTexture, aJ as isUniform, aK as isVectorLike, aS as once, au as prepare, N as presetsObj, a9 as reconciler, r as registerPrimary, S as removeInteractivity, ax as resolve, Q as swapInteractivity, ac as unmountComponentAtNode, u as unregisterPrimary, am as updateCamera, an as updateFrustum, ah as useBridge, a7 as useEnvironment, V as useGraph, U as useInstanceHandle, af as useIsomorphicLayoutEffect, X as useLoader, ag as useMutableCallback, $ as useTexture, a5 as useTextures, w as waitForPrimary, n as whenThree } from './shared/fiber.B_KQAb3I.js';
8
8
  export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, Scheduler, SchedulerApi, UseFrameNextOptions, UseFrameOptions, getScheduler } from '@pmndrs/scheduler';
9
- export { useFrame } from './extension.js';
10
- import 'react';
11
- import 'react-use-measure';
9
+ export { u as useFrame } from './shared/fiber.YgTUGbja.js';
12
10
  import 'zustand';
13
11
  import 'zustand/traditional';
14
12
  import 'three/tsl';
13
+ import 'react-use-measure';
15
14
 
16
15
  /**
17
16
  * The `ReactThreeFiber` namespace of the default entry: the shared element types plus this entry's JSX map.
@@ -128,7 +127,7 @@ declare function createRoot<TCanvas extends HTMLCanvasElement | OffscreenCanvas>
128
127
  * WebGPU when given the `renderer` prop.
129
128
  * @see https://docs.pmnd.rs/react-three-fiber/api/canvas
130
129
  */
131
- declare function Canvas(props: CanvasProps): react_jsx_runtime.JSX.Element;
130
+ declare function Canvas(props: CanvasProps): React.JSX.Element;
132
131
  /** Three.js constructors available as JSX elements on this entry. */
133
132
  type ThreeExports = typeof THREE & typeof ThreeWebGPU;
134
133
  interface ThreeElements extends ThreeElementsOf$1<ThreeExports> {
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { c as createRoot$1, C as Canvas$1 } from './shared/fiber.Ch4JrXS2.mjs';
3
- export { k as Environment, i as EnvironmentCube, E as EnvironmentMap, j as EnvironmentPortal, ai as FROM_REF, I as IsObject, al as ONCE, P as Portal, R as REACT_INTERNAL_PROPS, Y as RESERVED_PROPS, T as Texture, _ as _roots, A as addAfterEffect, z as addEffect, B as addTail, F as advance, a2 as applyProps, $ as attach, S as buildGraph, a3 as calculateDpr, m as createEvents, a as createPointerEvents, L as createPortal, N as createStore, a0 as detach, a1 as diffProps, U as dispose, a as events, G as extend, O as findInitialRoot, M as flushSync, aj as fromRef, V as getInstanceProps, b as getPrimary, f as getPrimaryIds, Q as getRootState, g as getThree, a4 as getUuidPrefix, ah as hasConstructor, e as hasPrimary, h as hasThree, D as invalidate, X as invalidateInstance, a7 as is, aa as isColorRepresentation, ag as isCopyable, ak as isFromRef, ad as isLayers, ab as isObject3D, an as isOnce, a8 as isOrthographicCamera, a9 as isRef, J as isRenderer, ac as isTexture, ae as isUniform, af as isVectorLike, am as once, W as prepare, p as presetsObj, H as reconciler, r as registerPrimary, l as removeInteractivity, Z as resolve, s as swapInteractivity, K as unmountComponentAtNode, u as unregisterPrimary, a5 as updateCamera, a6 as updateFrustum, y as useEnvironment, o as useGraph, n as useInstanceHandle, q as useLoader, x as useRenderTarget, t as useTexture, v as useTextures, d as waitForPrimary, w as whenThree } from './shared/fiber.Ch4JrXS2.mjs';
4
- export { B as Block, E as ErrorBoundary, c as context, r as registerRootExtension, s as setRenderOverride, f as useBridge, b as useFrame, d as useIsomorphicLayoutEffect, e as useMutableCallback, u as useStore, a as useThree } from './shared/fiber.C_v1rkNg.mjs';
2
+ import { c as createRoot$1, C as Canvas$1 } from './shared/fiber.CFK811nR.mjs';
3
+ export { s as Environment, p as EnvironmentCube, E as EnvironmentMap, q as EnvironmentPortal, ai as FROM_REF, I as IsObject, al as ONCE, P as Portal, U as REACT_INTERNAL_PROPS, a1 as RESERVED_PROPS, T as Texture, _ as _roots, d as addAfterEffect, b as addEffect, e as addTail, f as advance, a6 as applyProps, a3 as attach, X as buildGraph, O as calculateDpr, y as createEvents, a as createPointerEvents, N as createPortal, l as createStore, a4 as detach, a5 as diffProps, Y as dispose, a as events, J as extend, V as findInitialRoot, L as flushSync, aj as fromRef, Z as getInstanceProps, h as getPrimary, k as getPrimaryIds, W as getRootState, m as getThree, Q as getUuidPrefix, ah as hasConstructor, j as hasPrimary, n as hasThree, i as invalidate, a0 as invalidateInstance, a7 as is, aa as isColorRepresentation, ag as isCopyable, ak as isFromRef, ad as isLayers, ab as isObject3D, an as isOnce, a8 as isOrthographicCamera, a9 as isRef, g as isRenderer, ac as isTexture, ae as isUniform, af as isVectorLike, am as once, $ as prepare, t as presetsObj, K as reconciler, r as registerPrimary, x as removeInteractivity, a2 as resolve, v as swapInteractivity, M as unmountComponentAtNode, u as unregisterPrimary, R as updateCamera, S as updateFrustum, H as useEnvironment, A as useGraph, z as useInstanceHandle, B as useLoader, G as useRenderTarget, D as useTexture, F as useTextures, w as waitForPrimary, o as whenThree } from './shared/fiber.CFK811nR.mjs';
4
+ export { B as Block, E as ErrorBoundary, c as context, r as registerRootExtension, s as setRenderOverride, f as useBridge, b as useFrame, d as useIsomorphicLayoutEffect, e as useMutableCallback, u as useStore, a as useThree } from './shared/fiber.QxL_6jra.mjs';
5
5
  export { Scheduler, getScheduler } from '@pmndrs/scheduler';
6
6
 
7
7
  const R3F_BUILD_LEGACY = true;
package/dist/legacy.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  const jsxRuntime = require('react/jsx-runtime');
4
- const Canvas$1 = require('./shared/fiber.BGL2rpse.cjs');
4
+ const Canvas$1 = require('./shared/fiber.Bi_S5KAx.cjs');
5
5
  const webgl = require('./chunks/webgl.cjs');
6
- const extensions = require('./shared/fiber.B6zNSmwj.cjs');
6
+ const textureStaging = require('./shared/fiber.eR9ie2vQ.cjs');
7
7
  const scheduler = require('@pmndrs/scheduler');
8
8
 
9
9
  const R3F_BUILD_LEGACY = true;
@@ -14,8 +14,8 @@ const provider = {
14
14
  function createRoot(canvas) {
15
15
  return Canvas$1.createRoot(canvas, provider);
16
16
  }
17
- const useThree = extensions.useThree;
18
- const useFrame = extensions.useFrame;
17
+ const useThree = textureStaging.useThree;
18
+ const useFrame = textureStaging.useFrame;
19
19
  const useRenderTarget = Canvas$1.useRenderTarget;
20
20
  const Canvas = ((props) => /* @__PURE__ */ jsxRuntime.jsx(Canvas$1.Canvas, { ...props, provider }));
21
21
 
@@ -95,15 +95,15 @@ exports.useTexture = Canvas$1.useTexture;
95
95
  exports.useTextures = Canvas$1.useTextures;
96
96
  exports.waitForPrimary = Canvas$1.waitForPrimary;
97
97
  exports.whenThree = Canvas$1.whenThree;
98
- exports.Block = extensions.Block;
99
- exports.ErrorBoundary = extensions.ErrorBoundary;
100
- exports.context = extensions.context;
101
- exports.registerRootExtension = extensions.registerRootExtension;
102
- exports.setRenderOverride = extensions.setRenderOverride;
103
- exports.useBridge = extensions.useBridge;
104
- exports.useIsomorphicLayoutEffect = extensions.useIsomorphicLayoutEffect;
105
- exports.useMutableCallback = extensions.useMutableCallback;
106
- exports.useStore = extensions.useStore;
98
+ exports.Block = textureStaging.Block;
99
+ exports.ErrorBoundary = textureStaging.ErrorBoundary;
100
+ exports.context = textureStaging.context;
101
+ exports.registerRootExtension = textureStaging.registerRootExtension;
102
+ exports.setRenderOverride = textureStaging.setRenderOverride;
103
+ exports.useBridge = textureStaging.useBridge;
104
+ exports.useIsomorphicLayoutEffect = textureStaging.useIsomorphicLayoutEffect;
105
+ exports.useMutableCallback = textureStaging.useMutableCallback;
106
+ exports.useStore = textureStaging.useStore;
107
107
  exports.Scheduler = scheduler.Scheduler;
108
108
  exports.getScheduler = scheduler.getScheduler;
109
109
  exports.Canvas = Canvas;