@react-three/fiber 10.0.0-canary.5c62eb9 → 10.0.0-canary.60e7a38

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.
@@ -1,5 +1,5 @@
1
1
  import * as three_webgpu from 'three/webgpu';
2
- import { RenderTarget, WebGPURenderer, Node, StorageTexture, Data3DTexture, CanvasTarget, ShaderNodeObject, Euler as Euler$2, Color as Color$2, ColorRepresentation as ColorRepresentation$1, Layers as Layers$1, Raycaster, Intersection as Intersection$1, BufferGeometry, Matrix4 as Matrix4$1, Quaternion as Quaternion$1, Vector2 as Vector2$1, Vector3 as Vector3$1, Vector4 as Vector4$1, Matrix3 as Matrix3$1, Loader as Loader$1, ColorSpace, Texture as Texture$1, CubeTexture, Scene, Object3D, Frustum, OrthographicCamera, WebGPURendererParameters } from 'three/webgpu';
2
+ import { CubeRenderTarget, RenderTarget, WebGPURenderer, Node, StorageTexture, Data3DTexture, CanvasTarget, ShaderNodeObject, Euler as Euler$2, Color as Color$2, ColorRepresentation as ColorRepresentation$1, Layers as Layers$1, Raycaster, Intersection as Intersection$1, BufferGeometry, Matrix4 as Matrix4$1, Quaternion as Quaternion$1, Vector2 as Vector2$1, Vector3 as Vector3$1, Vector4 as Vector4$1, Matrix3 as Matrix3$1, Loader as Loader$1, ColorSpace, Texture as Texture$1, CubeTexture, Scene, Object3D, Frustum, OrthographicCamera, WebGPURendererParameters } from 'three/webgpu';
3
3
  import { Inspector } from 'three/addons/inspector/Inspector.js';
4
4
  import * as THREE$1 from 'three';
5
5
  import { Color as Color$1, ColorRepresentation, Euler as Euler$1, Loader, RenderTargetOptions as RenderTargetOptions$1 } from 'three';
@@ -49,12 +49,16 @@ type WebGLShadowMap = never;
49
49
 
50
50
  declare const WebGLRenderTarget: any;
51
51
 
52
+ declare const WebGLCubeRenderTarget: any;
53
+
52
54
  var THREE = /*#__PURE__*/_mergeNamespaces({
53
55
  __proto__: null,
56
+ CubeRenderTargetCompat: CubeRenderTarget,
54
57
  Inspector: Inspector,
55
58
  R3F_BUILD_LEGACY: R3F_BUILD_LEGACY,
56
59
  R3F_BUILD_WEBGPU: R3F_BUILD_WEBGPU,
57
60
  RenderTargetCompat: RenderTarget,
61
+ WebGLCubeRenderTarget: WebGLCubeRenderTarget,
58
62
  WebGLRenderTarget: WebGLRenderTarget,
59
63
  WebGLRenderer: WebGLRenderer,
60
64
  WebGLRendererParameters: WebGLRendererParameters,
@@ -498,7 +502,7 @@ interface InternalState {
498
502
  canvasTarget?: CanvasTarget
499
503
  /**
500
504
  * Whether multi-canvas rendering is active.
501
- * True when any canvas uses `target` prop to share a renderer.
505
+ * True when any canvas uses `renderer={{ primaryCanvas: 'id' }}` to share a renderer.
502
506
  * When true, setCanvasTarget is called before each render.
503
507
  */
504
508
  isMultiCanvas?: boolean
@@ -596,8 +600,8 @@ interface RootState {
596
600
  setSize: (width?: number, height?: number, top?: number, left?: number) => void
597
601
  /** Shortcut to manual setting the pixel ratio */
598
602
  setDpr: (dpr: Dpr) => void
599
- /** Shortcut to setting frameloop flags */
600
- setFrameloop: (frameloop: Frameloop) => void
603
+ /** Shortcut to setting frameloop flags. No args resets to 'always'. */
604
+ setFrameloop: (frameloop?: Frameloop) => void
601
605
  /** Set error state to propagate to error boundary */
602
606
  setError: (error: Error | null) => void
603
607
  /** Current error state (null when no error) */
@@ -615,7 +619,7 @@ interface RootState {
615
619
  /** Internal: refcount per texture key, driven by mounted useTexture consumers (registry enrollment is on by default) */
616
620
  _textureRefs: Map<string, number>
617
621
  /** WebGPU RenderPipeline instance - use useRenderPipeline() hook */
618
- renderPipeline: any | null // THREE.PostProcessing (will be THREE.RenderPipeline in future Three.js release)
622
+ renderPipeline: ThreeRenderPipeline | null
619
623
  /** Global TSL pass nodes for render pipeline - use useRenderPipeline() hook */
620
624
  passes: Record<string, any>
621
625
  /** Internal version counter for HMR - incremented by rebuildNodes/rebuildUniforms to bust memoization */
@@ -908,8 +912,6 @@ interface Instance<O = any> {
908
912
  attach?: AttachType<O>
909
913
  previousAttach?: any
910
914
  isHidden: boolean
911
- /** Deferred ref props to apply in commitMount */
912
- deferredRefs?: Array<{ prop: string; ref: React$1.RefObject<any> }>
913
915
  /** Set of props that have been applied via once() */
914
916
  appliedOnce?: Set<string>
915
917
  }
@@ -1146,10 +1148,21 @@ type RenderTargetOptions = RenderTargetOptions$1
1146
1148
  //* Global Types ==============================
1147
1149
 
1148
1150
  declare global {
1149
- /** Uniform node type - a Node with a value property (matches Three.js UniformNode) */
1150
- interface UniformNode<T = unknown> extends Node {
1151
- value: T
1152
- }
1151
+ /**
1152
+ * Uniform node type.
1153
+ *
1154
+ * This is three's own `UniformNode`, not a re-declaration of it. It previously was a
1155
+ * hand-rolled `interface UniformNode<T> extends Node { value: T }`, which shadowed the real
1156
+ * exported type globally — so R3F's ~58 references resolved to an approximation that was
1157
+ * missing members three actually ships (`setName` among them) and had drifted to the wrong
1158
+ * arity when three made `UniformNode` two-parameter.
1159
+ *
1160
+ * three's signature is `UniformNode<TNodeType, TValue>`. R3F only ever varies the value type,
1161
+ * so the node type is fixed to `unknown` and the single parameter is kept for call-site
1162
+ * ergonomics. The result is three's structural type, so members stay in sync with the
1163
+ * installed three instead of needing to be mirrored by hand.
1164
+ */
1165
+ type UniformNode<T = unknown> = three_webgpu.UniformNode<unknown, T>
1153
1166
 
1154
1167
  /**
1155
1168
  * ShaderCallable - the return type of Fn()
@@ -1294,13 +1307,14 @@ declare module 'three/tsl' {
1294
1307
  ): ShaderCallable<R>
1295
1308
  }
1296
1309
 
1297
- /**
1298
- * RenderPipeline Types for useRenderPipeline hook (WebGPU only)
1299
- */
1300
-
1301
-
1302
-
1303
1310
  declare global {
1311
+ /**
1312
+ * three's own render pipeline type. Named here so the rest of R3F refers to three's shape
1313
+ * rather than `any`. three r183 renamed `PostProcessing` to `RenderPipeline`; our peer floor
1314
+ * is r185, so the new name is the only one.
1315
+ */
1316
+ type ThreeRenderPipeline = three_webgpu.RenderPipeline
1317
+
1304
1318
  /** Pass record - stores TSL pass nodes for render pipeline */
1305
1319
  type PassRecord = Record<string, any>
1306
1320
 
@@ -1315,7 +1329,7 @@ declare global {
1315
1329
  /** Current passes from state */
1316
1330
  passes: PassRecord
1317
1331
  /** RenderPipeline instance (null if not initialized) */
1318
- renderPipeline: any | null // THREE.PostProcessing (will be THREE.RenderPipeline in future Three.js release)
1332
+ renderPipeline: ThreeRenderPipeline | null
1319
1333
  /** Clear all passes from state */
1320
1334
  clearPasses: () => void
1321
1335
  /** Reset RenderPipeline entirely (clears PP + passes) */
@@ -1496,7 +1510,7 @@ declare namespace three_d {
1496
1510
  * a single WebGPURenderer using Three.js CanvasTarget API.
1497
1511
  *
1498
1512
  * Primary canvas: Has `id` prop, creates its own renderer, registers here
1499
- * Secondary canvas: Has `target="id"` prop, shares primary's renderer via CanvasTarget
1513
+ * Secondary canvas: Has `renderer={{ primaryCanvas: 'id' }}`, shares primary's renderer via CanvasTarget
1500
1514
  */
1501
1515
 
1502
1516
  interface PrimaryCanvasEntry {
@@ -1564,12 +1578,23 @@ type EnvironmentLoaderProps = {
1564
1578
  * const texture = useEnvironment({ preset: 'sunset' })
1565
1579
  * ```
1566
1580
  */
1567
- declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown> | CubeTexture;
1581
+ declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown, THREE$1.TextureEventMap> | CubeTexture<unknown>;
1568
1582
  declare namespace useEnvironment {
1569
1583
  var preload: (preloadOptions?: EnvironmentLoaderPreloadOptions) => void;
1570
1584
  var clear: (clearOptions?: EnvironmentLoaderClearOptions) => void;
1571
1585
  }
1572
- type EnvironmentLoaderPreloadOptions = Omit<EnvironmentLoaderProps, 'encoding'>;
1586
+ /**
1587
+ * Options accepted by `useEnvironment.preload`.
1588
+ *
1589
+ * `colorSpace` is deliberately omitted: preload only warms the loader cache, and colorSpace is
1590
+ * applied to the texture by `useEnvironment()` at use time, per consumer. Accepting it here would
1591
+ * advertise an option this function silently ignores.
1592
+ *
1593
+ * This previously read `Omit<…, 'encoding'>` — omitting a key that does not exist on
1594
+ * `EnvironmentLoaderProps`, a leftover from three's pre-`colorSpace` `encoding` API. That made the
1595
+ * type equivalent to the full props, so `colorSpace` was accepted and then dropped on the floor.
1596
+ */
1597
+ type EnvironmentLoaderPreloadOptions = Omit<EnvironmentLoaderProps, 'colorSpace'>;
1573
1598
  type EnvironmentLoaderClearOptions = Pick<EnvironmentLoaderProps, 'files' | 'preset'>;
1574
1599
 
1575
1600
  /**
@@ -1799,6 +1824,24 @@ declare module '@react-three/fiber' {
1799
1824
  */
1800
1825
  declare function Environment(props: EnvironmentProps): react_jsx_runtime.JSX.Element;
1801
1826
 
1827
+ /**
1828
+ * Moves every trace of interactivity from one object to its replacement, for reconstruction.
1829
+ *
1830
+ * When `args` or a `primitive`'s `object` changes, R3F builds a new three object and keeps the same
1831
+ * instance. Removing the old object from the interaction state and registering the new one from
1832
+ * scratch makes events *work* again (#3778), but it forgets what was in flight: a pointer resting on
1833
+ * the object fires a second `onPointerEnter` without ever having left, and an active pointer capture
1834
+ * is dropped mid-drag. Rewriting the references instead keeps the interaction continuous across a
1835
+ * swap the user never asked to see (#3744).
1836
+ *
1837
+ * Captures are re-keyed rather than released, so the DOM-level capture on `captureData.target` is
1838
+ * left alone — releasing and re-acquiring it is precisely the glitch being avoided.
1839
+ *
1840
+ * Visibility handlers are deliberately not transferred: that registry is keyed by `object.uuid`, so
1841
+ * the replacement re-registers itself through `applyProps`. The old entry is dropped here so it
1842
+ * cannot outlive the object it described.
1843
+ */
1844
+ declare function swapInteractivity(store: RootStore, object: Object3D, newObject: Object3D): void;
1802
1845
  declare function removeInteractivity(store: RootStore, object: Object3D): void;
1803
1846
  declare function createEvents(store: RootStore): {
1804
1847
  handlePointer: (name: string) => (event: DomEvent) => void;
@@ -1819,10 +1862,10 @@ declare function getLoader<L extends LoaderLike | ConstructorRepresentation<Load
1819
1862
  * Note: this hook's caller must be wrapped with `React.Suspense`
1820
1863
  * @see https://docs.pmnd.rs/react-three-fiber/api/hooks#useloader
1821
1864
  */
1822
- declare function useLoader<I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void): I extends any[] ? LoaderResult<L>[] : LoaderResult<L>;
1865
+ declare function useLoader<I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void, cacheKey?: InputLike): I extends any[] ? LoaderResult<L>[] : LoaderResult<L>;
1823
1866
  declare namespace useLoader {
1824
- var preload: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void) => void;
1825
- var clear: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I) => void;
1867
+ var preload: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void, cacheKey?: InputLike) => void;
1868
+ var clear: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, cacheKey?: InputLike) => void;
1826
1869
  var loader: typeof getLoader;
1827
1870
  }
1828
1871
 
@@ -3224,11 +3267,6 @@ declare function flushSync<R>(fn: () => R): R;
3224
3267
  declare const context: React$1.Context<RootStore>;
3225
3268
  declare const createStore: (invalidate: (state?: RootState, frames?: number, stackFrames?: boolean) => void, advance: (timestamp: number, runGlobalEffects?: boolean, state?: RootState, frame?: XRFrame) => void) => RootStore;
3226
3269
 
3227
- /**
3228
- * Safely flush async effects when testing, simulating a legacy root.
3229
- * @deprecated Import from React instead. import { act } from 'react'
3230
- */
3231
- declare const act: typeof React$1.act;
3232
3270
  /**
3233
3271
  * An SSR-friendly useLayoutEffect.
3234
3272
  *
@@ -3796,9 +3834,12 @@ declare function useUniforms<T extends UniformInputRecord>(uniforms: T): Uniform
3796
3834
  declare function useUniforms<T extends UniformInputRecord>(uniforms: T, scope: string): UniformsWithUtils<UniformRecord<UniformNode>>;
3797
3835
  /**
3798
3836
  * Global rebuildUniforms function for HMR integration.
3799
- * Clears cached uniforms and increments _hmrVersion to trigger re-creation.
3837
+ * Invalidates cached uniforms and increments _hmrVersion to trigger re-creation.
3800
3838
  * Call this when HMR is detected to refresh all uniform creators.
3801
3839
  *
3840
+ * Resolves to the primary store so shared TSL resources rebuild on the
3841
+ * authoritative store.
3842
+ *
3802
3843
  * @param store - The R3F store (from useStore or context)
3803
3844
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3804
3845
  */
@@ -3882,9 +3923,12 @@ declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCr
3882
3923
  declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCreator<T>, scope: string): NodesWithUtils<T>;
3883
3924
  /**
3884
3925
  * Global rebuildNodes function for HMR integration.
3885
- * Clears cached nodes and increments _hmrVersion to trigger re-creation.
3926
+ * Invalidates cached nodes and increments _hmrVersion to trigger re-creation.
3886
3927
  * Call this when HMR is detected to refresh all node creators.
3887
3928
  *
3929
+ * Resolves to the primary store so shared TSL resources rebuild on the
3930
+ * authoritative store.
3931
+ *
3888
3932
  * @param store - The R3F store (from useStore or context)
3889
3933
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3890
3934
  */
@@ -3961,9 +4005,12 @@ declare function useBuffers<T extends Record<string, BufferLike>>(creator: Buffe
3961
4005
  declare function useBuffers<T extends Record<string, BufferLike>>(creator: BufferCreator<T>, scope: string): BuffersWithUtils<T>;
3962
4006
  /**
3963
4007
  * Global rebuildBuffers function for HMR integration.
3964
- * Clears cached buffers and increments _hmrVersion to trigger re-creation.
4008
+ * Invalidates cached buffers and increments _hmrVersion to trigger re-creation.
3965
4009
  * Call this when HMR is detected to refresh all buffer creators.
3966
4010
  *
4011
+ * Resolves to the primary store so shared TSL resources rebuild on the
4012
+ * authoritative store.
4013
+ *
3967
4014
  * @param store - The R3F store (from useStore or context)
3968
4015
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3969
4016
  */
@@ -3995,14 +4042,34 @@ declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: S
3995
4042
  declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: StorageCreator<T>, scope: string): StorageWithUtils<T>;
3996
4043
  /**
3997
4044
  * Global rebuildStorage function for HMR integration.
3998
- * Clears cached storage and increments _hmrVersion to trigger re-creation.
4045
+ * Invalidates cached storage and increments _hmrVersion to trigger re-creation.
3999
4046
  * Call this when HMR is detected to refresh all storage creators.
4000
4047
  *
4048
+ * Resolves to the primary store so shared TSL resources rebuild on the
4049
+ * authoritative store.
4050
+ *
4001
4051
  * @param store - The R3F store (from useStore or context)
4002
4052
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
4003
4053
  */
4004
4054
  declare function rebuildAllStorage(store: ReturnType<typeof useStore>, scope?: string): void;
4005
4055
 
4056
+ /**
4057
+ * Re-export from core - useTextures is now a core R3F hook (a reactive Texture registry).
4058
+ *
4059
+ * This file maintains backwards compatibility for existing webgpu imports.
4060
+ */
4061
+
4062
+ /**
4063
+ * @deprecated The registry now stores plain `Texture` objects, not TSL nodes. Use `Texture` directly.
4064
+ * Kept as an alias for backwards compatibility.
4065
+ */
4066
+ type TextureEntry = Texture$1;
4067
+ /**
4068
+ * @deprecated The registry now stores plain `Texture` objects, not TSL nodes. Use `Texture` directly.
4069
+ * Kept as an alias for backwards compatibility.
4070
+ */
4071
+ type TextureNode = Texture$1;
4072
+
4006
4073
  interface TextureOperations {
4007
4074
  add: (key: string, value: any) => void;
4008
4075
  addMultiple: (items: Map<string, any> | Record<string, any>) => void;
@@ -4097,5 +4164,5 @@ interface WebGPURootState extends Omit<RootState, 'renderer' | 'gl' | 'internal'
4097
4164
  internal: WebGPUInternalState
4098
4165
  }
4099
4166
 
4100
- export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, act, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, context, createEvents, createPointerEvents, createPortal, createRoot, createScopedStore, createStore, createTextureOperations, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, rebuildAllBuffers, rebuildAllNodes, rebuildAllStorage, rebuildAllUniforms, reconciler, registerPrimary, removeInteractivity, removeNodes, removeUniforms, resolve, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useBuffers, useEnvironment, useFrame, useGPUStorage, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useLocalNodes, useMutableCallback, useNodes, useRenderPipeline, useRenderTarget, useStore, useTexture, useTextures, useThree, useUniform, useUniforms, waitForPrimary };
4101
- export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferCreator, BufferLike, BufferRecord, BufferStore, BuffersWithUtils, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, ClearBuffersFn, ClearNodesFn, ClearStorageFn, ClearUniformsFn, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, CreatorState, DefaultGLProps, DefaultRendererProps, Disposable, DisposeBuffersFn, DisposeOptions, DisposeStorageFn, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, WebGPUInternalState as InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, LocalNodeCreator, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeCreator, NodeProps, NodeRecord, NodesWithUtils, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, WebGPUR3FRenderer as R3FRenderer, RaycastableRepresentation, ReactProps, RebuildBuffersFn, RebuildNodesFn, RebuildStorageFn, RebuildUniformsFn, ReconcilerRoot, RemoveBuffersFn, RemoveNodesFn, RemoveStorageFn, RemoveUniformsFn, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, WebGPURootState as RootState, RootStore, ScopedStoreType, SetBlock, Size, StorageCreator, StorageLike, StorageRecord, StorageStore, StorageWithUtils, Subscription, TSLNode, TSLNodeInput, TextureInput, TextureOperations, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UniformCreator, UniformValue, UniformsWithUtils, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, WebGPUDefaultProps, WebGPUProps, WebGPUShadowConfig, XRManager, XRPointerConfig };
4167
+ export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, context, createEvents, createPointerEvents, createPortal, createRoot, createScopedStore, createStore, createTextureOperations, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, rebuildAllBuffers, rebuildAllNodes, rebuildAllStorage, rebuildAllUniforms, reconciler, registerPrimary, removeInteractivity, removeNodes, removeUniforms, resolve, swapInteractivity, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useBuffers, useEnvironment, useFrame, useGPUStorage, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useLocalNodes, useMutableCallback, useNodes, useRenderPipeline, useRenderTarget, useStore, useTexture, useTextures, useThree, useUniform, useUniforms, waitForPrimary };
4168
+ export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferCreator, BufferLike, BufferRecord, BufferStore, BuffersWithUtils, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, ClearBuffersFn, ClearNodesFn, ClearStorageFn, ClearUniformsFn, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, CreatorState, DefaultGLProps, DefaultRendererProps, Disposable, DisposeBuffersFn, DisposeOptions, DisposeStorageFn, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, WebGPUInternalState as InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, LocalNodeCreator, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeCreator, NodeProps, NodeRecord, NodesWithUtils, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, WebGPUR3FRenderer as R3FRenderer, RaycastableRepresentation, ReactProps, RebuildBuffersFn, RebuildNodesFn, RebuildStorageFn, RebuildUniformsFn, ReconcilerRoot, RemoveBuffersFn, RemoveNodesFn, RemoveStorageFn, RemoveUniformsFn, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, WebGPURootState as RootState, RootStore, ScopedStoreType, SetBlock, Size, StorageCreator, StorageLike, StorageRecord, StorageStore, StorageWithUtils, Subscription, TSLNode, TSLNodeInput, TextureEntry, TextureInput, TextureNode, TextureOperations, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UniformCreator, UniformValue, UniformsWithUtils, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, WebGPUDefaultProps, WebGPUProps, WebGPUShadowConfig, XRManager, XRPointerConfig };
@@ -1,5 +1,5 @@
1
1
  import * as three_webgpu from 'three/webgpu';
2
- import { RenderTarget, WebGPURenderer, Node, StorageTexture, Data3DTexture, CanvasTarget, ShaderNodeObject, Euler as Euler$2, Color as Color$2, ColorRepresentation as ColorRepresentation$1, Layers as Layers$1, Raycaster, Intersection as Intersection$1, BufferGeometry, Matrix4 as Matrix4$1, Quaternion as Quaternion$1, Vector2 as Vector2$1, Vector3 as Vector3$1, Vector4 as Vector4$1, Matrix3 as Matrix3$1, Loader as Loader$1, ColorSpace, Texture as Texture$1, CubeTexture, Scene, Object3D, Frustum, OrthographicCamera, WebGPURendererParameters } from 'three/webgpu';
2
+ import { CubeRenderTarget, RenderTarget, WebGPURenderer, Node, StorageTexture, Data3DTexture, CanvasTarget, ShaderNodeObject, Euler as Euler$2, Color as Color$2, ColorRepresentation as ColorRepresentation$1, Layers as Layers$1, Raycaster, Intersection as Intersection$1, BufferGeometry, Matrix4 as Matrix4$1, Quaternion as Quaternion$1, Vector2 as Vector2$1, Vector3 as Vector3$1, Vector4 as Vector4$1, Matrix3 as Matrix3$1, Loader as Loader$1, ColorSpace, Texture as Texture$1, CubeTexture, Scene, Object3D, Frustum, OrthographicCamera, WebGPURendererParameters } from 'three/webgpu';
3
3
  import { Inspector } from 'three/addons/inspector/Inspector.js';
4
4
  import * as THREE$1 from 'three';
5
5
  import { Color as Color$1, ColorRepresentation, Euler as Euler$1, Loader, RenderTargetOptions as RenderTargetOptions$1 } from 'three';
@@ -49,12 +49,16 @@ type WebGLShadowMap = never;
49
49
 
50
50
  declare const WebGLRenderTarget: any;
51
51
 
52
+ declare const WebGLCubeRenderTarget: any;
53
+
52
54
  var THREE = /*#__PURE__*/_mergeNamespaces({
53
55
  __proto__: null,
56
+ CubeRenderTargetCompat: CubeRenderTarget,
54
57
  Inspector: Inspector,
55
58
  R3F_BUILD_LEGACY: R3F_BUILD_LEGACY,
56
59
  R3F_BUILD_WEBGPU: R3F_BUILD_WEBGPU,
57
60
  RenderTargetCompat: RenderTarget,
61
+ WebGLCubeRenderTarget: WebGLCubeRenderTarget,
58
62
  WebGLRenderTarget: WebGLRenderTarget,
59
63
  WebGLRenderer: WebGLRenderer,
60
64
  WebGLRendererParameters: WebGLRendererParameters,
@@ -498,7 +502,7 @@ interface InternalState {
498
502
  canvasTarget?: CanvasTarget
499
503
  /**
500
504
  * Whether multi-canvas rendering is active.
501
- * True when any canvas uses `target` prop to share a renderer.
505
+ * True when any canvas uses `renderer={{ primaryCanvas: 'id' }}` to share a renderer.
502
506
  * When true, setCanvasTarget is called before each render.
503
507
  */
504
508
  isMultiCanvas?: boolean
@@ -596,8 +600,8 @@ interface RootState {
596
600
  setSize: (width?: number, height?: number, top?: number, left?: number) => void
597
601
  /** Shortcut to manual setting the pixel ratio */
598
602
  setDpr: (dpr: Dpr) => void
599
- /** Shortcut to setting frameloop flags */
600
- setFrameloop: (frameloop: Frameloop) => void
603
+ /** Shortcut to setting frameloop flags. No args resets to 'always'. */
604
+ setFrameloop: (frameloop?: Frameloop) => void
601
605
  /** Set error state to propagate to error boundary */
602
606
  setError: (error: Error | null) => void
603
607
  /** Current error state (null when no error) */
@@ -615,7 +619,7 @@ interface RootState {
615
619
  /** Internal: refcount per texture key, driven by mounted useTexture consumers (registry enrollment is on by default) */
616
620
  _textureRefs: Map<string, number>
617
621
  /** WebGPU RenderPipeline instance - use useRenderPipeline() hook */
618
- renderPipeline: any | null // THREE.PostProcessing (will be THREE.RenderPipeline in future Three.js release)
622
+ renderPipeline: ThreeRenderPipeline | null
619
623
  /** Global TSL pass nodes for render pipeline - use useRenderPipeline() hook */
620
624
  passes: Record<string, any>
621
625
  /** Internal version counter for HMR - incremented by rebuildNodes/rebuildUniforms to bust memoization */
@@ -908,8 +912,6 @@ interface Instance<O = any> {
908
912
  attach?: AttachType<O>
909
913
  previousAttach?: any
910
914
  isHidden: boolean
911
- /** Deferred ref props to apply in commitMount */
912
- deferredRefs?: Array<{ prop: string; ref: React$1.RefObject<any> }>
913
915
  /** Set of props that have been applied via once() */
914
916
  appliedOnce?: Set<string>
915
917
  }
@@ -1146,10 +1148,21 @@ type RenderTargetOptions = RenderTargetOptions$1
1146
1148
  //* Global Types ==============================
1147
1149
 
1148
1150
  declare global {
1149
- /** Uniform node type - a Node with a value property (matches Three.js UniformNode) */
1150
- interface UniformNode<T = unknown> extends Node {
1151
- value: T
1152
- }
1151
+ /**
1152
+ * Uniform node type.
1153
+ *
1154
+ * This is three's own `UniformNode`, not a re-declaration of it. It previously was a
1155
+ * hand-rolled `interface UniformNode<T> extends Node { value: T }`, which shadowed the real
1156
+ * exported type globally — so R3F's ~58 references resolved to an approximation that was
1157
+ * missing members three actually ships (`setName` among them) and had drifted to the wrong
1158
+ * arity when three made `UniformNode` two-parameter.
1159
+ *
1160
+ * three's signature is `UniformNode<TNodeType, TValue>`. R3F only ever varies the value type,
1161
+ * so the node type is fixed to `unknown` and the single parameter is kept for call-site
1162
+ * ergonomics. The result is three's structural type, so members stay in sync with the
1163
+ * installed three instead of needing to be mirrored by hand.
1164
+ */
1165
+ type UniformNode<T = unknown> = three_webgpu.UniformNode<unknown, T>
1153
1166
 
1154
1167
  /**
1155
1168
  * ShaderCallable - the return type of Fn()
@@ -1294,13 +1307,14 @@ declare module 'three/tsl' {
1294
1307
  ): ShaderCallable<R>
1295
1308
  }
1296
1309
 
1297
- /**
1298
- * RenderPipeline Types for useRenderPipeline hook (WebGPU only)
1299
- */
1300
-
1301
-
1302
-
1303
1310
  declare global {
1311
+ /**
1312
+ * three's own render pipeline type. Named here so the rest of R3F refers to three's shape
1313
+ * rather than `any`. three r183 renamed `PostProcessing` to `RenderPipeline`; our peer floor
1314
+ * is r185, so the new name is the only one.
1315
+ */
1316
+ type ThreeRenderPipeline = three_webgpu.RenderPipeline
1317
+
1304
1318
  /** Pass record - stores TSL pass nodes for render pipeline */
1305
1319
  type PassRecord = Record<string, any>
1306
1320
 
@@ -1315,7 +1329,7 @@ declare global {
1315
1329
  /** Current passes from state */
1316
1330
  passes: PassRecord
1317
1331
  /** RenderPipeline instance (null if not initialized) */
1318
- renderPipeline: any | null // THREE.PostProcessing (will be THREE.RenderPipeline in future Three.js release)
1332
+ renderPipeline: ThreeRenderPipeline | null
1319
1333
  /** Clear all passes from state */
1320
1334
  clearPasses: () => void
1321
1335
  /** Reset RenderPipeline entirely (clears PP + passes) */
@@ -1496,7 +1510,7 @@ declare namespace three_d {
1496
1510
  * a single WebGPURenderer using Three.js CanvasTarget API.
1497
1511
  *
1498
1512
  * Primary canvas: Has `id` prop, creates its own renderer, registers here
1499
- * Secondary canvas: Has `target="id"` prop, shares primary's renderer via CanvasTarget
1513
+ * Secondary canvas: Has `renderer={{ primaryCanvas: 'id' }}`, shares primary's renderer via CanvasTarget
1500
1514
  */
1501
1515
 
1502
1516
  interface PrimaryCanvasEntry {
@@ -1564,12 +1578,23 @@ type EnvironmentLoaderProps = {
1564
1578
  * const texture = useEnvironment({ preset: 'sunset' })
1565
1579
  * ```
1566
1580
  */
1567
- declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown> | CubeTexture;
1581
+ declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown, THREE$1.TextureEventMap> | CubeTexture<unknown>;
1568
1582
  declare namespace useEnvironment {
1569
1583
  var preload: (preloadOptions?: EnvironmentLoaderPreloadOptions) => void;
1570
1584
  var clear: (clearOptions?: EnvironmentLoaderClearOptions) => void;
1571
1585
  }
1572
- type EnvironmentLoaderPreloadOptions = Omit<EnvironmentLoaderProps, 'encoding'>;
1586
+ /**
1587
+ * Options accepted by `useEnvironment.preload`.
1588
+ *
1589
+ * `colorSpace` is deliberately omitted: preload only warms the loader cache, and colorSpace is
1590
+ * applied to the texture by `useEnvironment()` at use time, per consumer. Accepting it here would
1591
+ * advertise an option this function silently ignores.
1592
+ *
1593
+ * This previously read `Omit<…, 'encoding'>` — omitting a key that does not exist on
1594
+ * `EnvironmentLoaderProps`, a leftover from three's pre-`colorSpace` `encoding` API. That made the
1595
+ * type equivalent to the full props, so `colorSpace` was accepted and then dropped on the floor.
1596
+ */
1597
+ type EnvironmentLoaderPreloadOptions = Omit<EnvironmentLoaderProps, 'colorSpace'>;
1573
1598
  type EnvironmentLoaderClearOptions = Pick<EnvironmentLoaderProps, 'files' | 'preset'>;
1574
1599
 
1575
1600
  /**
@@ -1799,6 +1824,24 @@ declare module '@react-three/fiber' {
1799
1824
  */
1800
1825
  declare function Environment(props: EnvironmentProps): react_jsx_runtime.JSX.Element;
1801
1826
 
1827
+ /**
1828
+ * Moves every trace of interactivity from one object to its replacement, for reconstruction.
1829
+ *
1830
+ * When `args` or a `primitive`'s `object` changes, R3F builds a new three object and keeps the same
1831
+ * instance. Removing the old object from the interaction state and registering the new one from
1832
+ * scratch makes events *work* again (#3778), but it forgets what was in flight: a pointer resting on
1833
+ * the object fires a second `onPointerEnter` without ever having left, and an active pointer capture
1834
+ * is dropped mid-drag. Rewriting the references instead keeps the interaction continuous across a
1835
+ * swap the user never asked to see (#3744).
1836
+ *
1837
+ * Captures are re-keyed rather than released, so the DOM-level capture on `captureData.target` is
1838
+ * left alone — releasing and re-acquiring it is precisely the glitch being avoided.
1839
+ *
1840
+ * Visibility handlers are deliberately not transferred: that registry is keyed by `object.uuid`, so
1841
+ * the replacement re-registers itself through `applyProps`. The old entry is dropped here so it
1842
+ * cannot outlive the object it described.
1843
+ */
1844
+ declare function swapInteractivity(store: RootStore, object: Object3D, newObject: Object3D): void;
1802
1845
  declare function removeInteractivity(store: RootStore, object: Object3D): void;
1803
1846
  declare function createEvents(store: RootStore): {
1804
1847
  handlePointer: (name: string) => (event: DomEvent) => void;
@@ -1819,10 +1862,10 @@ declare function getLoader<L extends LoaderLike | ConstructorRepresentation<Load
1819
1862
  * Note: this hook's caller must be wrapped with `React.Suspense`
1820
1863
  * @see https://docs.pmnd.rs/react-three-fiber/api/hooks#useloader
1821
1864
  */
1822
- declare function useLoader<I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void): I extends any[] ? LoaderResult<L>[] : LoaderResult<L>;
1865
+ declare function useLoader<I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void, cacheKey?: InputLike): I extends any[] ? LoaderResult<L>[] : LoaderResult<L>;
1823
1866
  declare namespace useLoader {
1824
- var preload: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void) => void;
1825
- var clear: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I) => void;
1867
+ var preload: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, extensions?: Extensions<L>, onProgress?: (event: ProgressEvent<EventTarget>) => void, cacheKey?: InputLike) => void;
1868
+ var clear: <I extends InputLike, L extends LoaderLike | ConstructorRepresentation<LoaderLike>>(loader: L, input: I, cacheKey?: InputLike) => void;
1826
1869
  var loader: typeof getLoader;
1827
1870
  }
1828
1871
 
@@ -3224,11 +3267,6 @@ declare function flushSync<R>(fn: () => R): R;
3224
3267
  declare const context: React$1.Context<RootStore>;
3225
3268
  declare const createStore: (invalidate: (state?: RootState, frames?: number, stackFrames?: boolean) => void, advance: (timestamp: number, runGlobalEffects?: boolean, state?: RootState, frame?: XRFrame) => void) => RootStore;
3226
3269
 
3227
- /**
3228
- * Safely flush async effects when testing, simulating a legacy root.
3229
- * @deprecated Import from React instead. import { act } from 'react'
3230
- */
3231
- declare const act: typeof React$1.act;
3232
3270
  /**
3233
3271
  * An SSR-friendly useLayoutEffect.
3234
3272
  *
@@ -3796,9 +3834,12 @@ declare function useUniforms<T extends UniformInputRecord>(uniforms: T): Uniform
3796
3834
  declare function useUniforms<T extends UniformInputRecord>(uniforms: T, scope: string): UniformsWithUtils<UniformRecord<UniformNode>>;
3797
3835
  /**
3798
3836
  * Global rebuildUniforms function for HMR integration.
3799
- * Clears cached uniforms and increments _hmrVersion to trigger re-creation.
3837
+ * Invalidates cached uniforms and increments _hmrVersion to trigger re-creation.
3800
3838
  * Call this when HMR is detected to refresh all uniform creators.
3801
3839
  *
3840
+ * Resolves to the primary store so shared TSL resources rebuild on the
3841
+ * authoritative store.
3842
+ *
3802
3843
  * @param store - The R3F store (from useStore or context)
3803
3844
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3804
3845
  */
@@ -3882,9 +3923,12 @@ declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCr
3882
3923
  declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCreator<T>, scope: string): NodesWithUtils<T>;
3883
3924
  /**
3884
3925
  * Global rebuildNodes function for HMR integration.
3885
- * Clears cached nodes and increments _hmrVersion to trigger re-creation.
3926
+ * Invalidates cached nodes and increments _hmrVersion to trigger re-creation.
3886
3927
  * Call this when HMR is detected to refresh all node creators.
3887
3928
  *
3929
+ * Resolves to the primary store so shared TSL resources rebuild on the
3930
+ * authoritative store.
3931
+ *
3888
3932
  * @param store - The R3F store (from useStore or context)
3889
3933
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3890
3934
  */
@@ -3961,9 +4005,12 @@ declare function useBuffers<T extends Record<string, BufferLike>>(creator: Buffe
3961
4005
  declare function useBuffers<T extends Record<string, BufferLike>>(creator: BufferCreator<T>, scope: string): BuffersWithUtils<T>;
3962
4006
  /**
3963
4007
  * Global rebuildBuffers function for HMR integration.
3964
- * Clears cached buffers and increments _hmrVersion to trigger re-creation.
4008
+ * Invalidates cached buffers and increments _hmrVersion to trigger re-creation.
3965
4009
  * Call this when HMR is detected to refresh all buffer creators.
3966
4010
  *
4011
+ * Resolves to the primary store so shared TSL resources rebuild on the
4012
+ * authoritative store.
4013
+ *
3967
4014
  * @param store - The R3F store (from useStore or context)
3968
4015
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3969
4016
  */
@@ -3995,14 +4042,34 @@ declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: S
3995
4042
  declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: StorageCreator<T>, scope: string): StorageWithUtils<T>;
3996
4043
  /**
3997
4044
  * Global rebuildStorage function for HMR integration.
3998
- * Clears cached storage and increments _hmrVersion to trigger re-creation.
4045
+ * Invalidates cached storage and increments _hmrVersion to trigger re-creation.
3999
4046
  * Call this when HMR is detected to refresh all storage creators.
4000
4047
  *
4048
+ * Resolves to the primary store so shared TSL resources rebuild on the
4049
+ * authoritative store.
4050
+ *
4001
4051
  * @param store - The R3F store (from useStore or context)
4002
4052
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
4003
4053
  */
4004
4054
  declare function rebuildAllStorage(store: ReturnType<typeof useStore>, scope?: string): void;
4005
4055
 
4056
+ /**
4057
+ * Re-export from core - useTextures is now a core R3F hook (a reactive Texture registry).
4058
+ *
4059
+ * This file maintains backwards compatibility for existing webgpu imports.
4060
+ */
4061
+
4062
+ /**
4063
+ * @deprecated The registry now stores plain `Texture` objects, not TSL nodes. Use `Texture` directly.
4064
+ * Kept as an alias for backwards compatibility.
4065
+ */
4066
+ type TextureEntry = Texture$1;
4067
+ /**
4068
+ * @deprecated The registry now stores plain `Texture` objects, not TSL nodes. Use `Texture` directly.
4069
+ * Kept as an alias for backwards compatibility.
4070
+ */
4071
+ type TextureNode = Texture$1;
4072
+
4006
4073
  interface TextureOperations {
4007
4074
  add: (key: string, value: any) => void;
4008
4075
  addMultiple: (items: Map<string, any> | Record<string, any>) => void;
@@ -4097,5 +4164,5 @@ interface WebGPURootState extends Omit<RootState, 'renderer' | 'gl' | 'internal'
4097
4164
  internal: WebGPUInternalState
4098
4165
  }
4099
4166
 
4100
- export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, act, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, context, createEvents, createPointerEvents, createPortal, createRoot, createScopedStore, createStore, createTextureOperations, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, rebuildAllBuffers, rebuildAllNodes, rebuildAllStorage, rebuildAllUniforms, reconciler, registerPrimary, removeInteractivity, removeNodes, removeUniforms, resolve, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useBuffers, useEnvironment, useFrame, useGPUStorage, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useLocalNodes, useMutableCallback, useNodes, useRenderPipeline, useRenderTarget, useStore, useTexture, useTextures, useThree, useUniform, useUniforms, waitForPrimary };
4101
- export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferCreator, BufferLike, BufferRecord, BufferStore, BuffersWithUtils, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, ClearBuffersFn, ClearNodesFn, ClearStorageFn, ClearUniformsFn, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, CreatorState, DefaultGLProps, DefaultRendererProps, Disposable, DisposeBuffersFn, DisposeOptions, DisposeStorageFn, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, WebGPUInternalState as InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, LocalNodeCreator, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeCreator, NodeProps, NodeRecord, NodesWithUtils, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, WebGPUR3FRenderer as R3FRenderer, RaycastableRepresentation, ReactProps, RebuildBuffersFn, RebuildNodesFn, RebuildStorageFn, RebuildUniformsFn, ReconcilerRoot, RemoveBuffersFn, RemoveNodesFn, RemoveStorageFn, RemoveUniformsFn, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, WebGPURootState as RootState, RootStore, ScopedStoreType, SetBlock, Size, StorageCreator, StorageLike, StorageRecord, StorageStore, StorageWithUtils, Subscription, TSLNode, TSLNodeInput, TextureInput, TextureOperations, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UniformCreator, UniformValue, UniformsWithUtils, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, WebGPUDefaultProps, WebGPUProps, WebGPUShadowConfig, XRManager, XRPointerConfig };
4167
+ export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, context, createEvents, createPointerEvents, createPortal, createRoot, createScopedStore, createStore, createTextureOperations, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, rebuildAllBuffers, rebuildAllNodes, rebuildAllStorage, rebuildAllUniforms, reconciler, registerPrimary, removeInteractivity, removeNodes, removeUniforms, resolve, swapInteractivity, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useBuffers, useEnvironment, useFrame, useGPUStorage, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useLocalNodes, useMutableCallback, useNodes, useRenderPipeline, useRenderTarget, useStore, useTexture, useTextures, useThree, useUniform, useUniforms, waitForPrimary };
4168
+ export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferCreator, BufferLike, BufferRecord, BufferStore, BuffersWithUtils, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, ClearBuffersFn, ClearNodesFn, ClearStorageFn, ClearUniformsFn, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, CreatorState, DefaultGLProps, DefaultRendererProps, Disposable, DisposeBuffersFn, DisposeOptions, DisposeStorageFn, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, WebGPUInternalState as InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, LocalNodeCreator, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeCreator, NodeProps, NodeRecord, NodesWithUtils, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, WebGPUR3FRenderer as R3FRenderer, RaycastableRepresentation, ReactProps, RebuildBuffersFn, RebuildNodesFn, RebuildStorageFn, RebuildUniformsFn, ReconcilerRoot, RemoveBuffersFn, RemoveNodesFn, RemoveStorageFn, RemoveUniformsFn, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, WebGPURootState as RootState, RootStore, ScopedStoreType, SetBlock, Size, StorageCreator, StorageLike, StorageRecord, StorageStore, StorageWithUtils, Subscription, TSLNode, TSLNodeInput, TextureEntry, TextureInput, TextureNode, TextureOperations, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UniformCreator, UniformValue, UniformsWithUtils, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, WebGPUDefaultProps, WebGPUProps, WebGPUShadowConfig, XRManager, XRPointerConfig };