@react-three/fiber 10.0.0-canary.de8b03c → 10.0.0-canary.e3891fb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.mjs +2 -2
- package/dist/legacy.cjs +1 -1
- package/dist/legacy.d.cts +3 -2
- package/dist/legacy.d.mts +3 -2
- package/dist/legacy.d.ts +3 -2
- package/dist/legacy.mjs +2 -2
- package/dist/shared/{fiber.BDWBTuAk.d.mts → fiber.2dyldILT.d.mts} +18 -40
- package/dist/shared/{fiber.DNgUv56V.d.ts → fiber.C4GU39Za.d.ts} +18 -40
- package/dist/shared/{fiber.DlTSmVjz.d.cts → fiber.Cg2YRc54.d.cts} +18 -40
- package/dist/shared/{fiber.oKEFddXj.cjs → fiber.L0cJPxh2.cjs} +5136 -6044
- package/dist/shared/{fiber.tsM9NKZ9.mjs → fiber.UW5CRgts.mjs} +5127 -6035
- package/dist/webgpu/index.cjs +1 -1
- package/dist/webgpu/index.d.cts +3 -2
- package/dist/webgpu/index.d.mts +3 -2
- package/dist/webgpu/index.d.ts +3 -2
- package/dist/webgpu/index.mjs +2 -2
- package/package.json +6 -6
- package/readme.md +1 -1
|
@@ -5,6 +5,7 @@ import * as THREE from 'three';
|
|
|
5
5
|
import { ColorRepresentation, Euler as Euler$1, Loader, RenderTargetOptions as RenderTargetOptions$1, ColorSpace, Texture as Texture$1, CubeTexture, Scene, Object3D } from 'three';
|
|
6
6
|
import { J as Properties, c as Size, F as Frameloop, e as Performance, D as Dpr, g as RootStore, p as EventManager, f as RootState, n as ComputeFunction, C as ConstructorRepresentation, _ as ObjectMap, I as InternalState, M as Mutable, O as Overwrite, y as Args, l as EventHandlers, B as InstanceProps, k as DomEvent, G as Instance, x as Catalogue, v as Root, a6 as ThreeCore, W as Bridge, Z as UnblockProps, a0 as Disposable, Q as ThreeCamera, $ as EquConfig } from './fiber.I5Q4dVvl.cjs';
|
|
7
7
|
import { WebGPURenderer, WebGPURendererParameters } from 'three/webgpu';
|
|
8
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
9
|
|
|
9
10
|
//* Base Renderer Types =====================================
|
|
10
11
|
|
|
@@ -540,14 +541,8 @@ type ThreeElement<T extends ConstructorRepresentation> = Mutable<
|
|
|
540
541
|
Overwrite<ElementProps<T>, Omit<InstanceProps<InstanceType<T>, T>, 'object'>>
|
|
541
542
|
>
|
|
542
543
|
|
|
543
|
-
/**
|
|
544
|
-
* Every constructor export of a three namespace as an uncapitalized JSX element. Non-constructor
|
|
545
|
-
* exports (constants, functions, nested namespaces) are dropped from the keys rather than mapped
|
|
546
|
-
* to `never`: a single `never`-valued key in `JSX.IntrinsicElements` collapses the props of any
|
|
547
|
-
* tag typed `React.ElementType` (#3898).
|
|
548
|
-
*/
|
|
549
544
|
type ThreeToJSXElements<T extends Record<string, any>> = {
|
|
550
|
-
[K in keyof T & string as T[K] extends ConstructorRepresentation ?
|
|
545
|
+
[K in keyof T & string as Uncapitalize<K>]: T[K] extends ConstructorRepresentation ? ThreeElement<T[K]> : never
|
|
551
546
|
}
|
|
552
547
|
|
|
553
548
|
/** Method names of Object3D, excluded from the `primitive` element's typed props. */
|
|
@@ -803,7 +798,7 @@ declare function EnvironmentCube({ background, scene, blur, backgroundBlurriness
|
|
|
803
798
|
* </EnvironmentPortal>
|
|
804
799
|
* ```
|
|
805
800
|
*/
|
|
806
|
-
declare function EnvironmentPortal({ children, near, far, resolution, frames, map, background, blur, backgroundBlurriness, backgroundIntensity, backgroundRotation, environmentIntensity, environmentRotation, scene, files, path, preset, extensions, }: EnvironmentProps):
|
|
801
|
+
declare function EnvironmentPortal({ children, near, far, resolution, frames, map, background, blur, backgroundBlurriness, backgroundIntensity, backgroundRotation, environmentIntensity, environmentRotation, scene, files, path, preset, extensions, }: EnvironmentProps): react_jsx_runtime.JSX.Element;
|
|
807
802
|
/**
|
|
808
803
|
* Sets up a global environment map for PBR materials and backgrounds.
|
|
809
804
|
* Affects scene.environment and optionally scene.background unless a custom scene is passed.
|
|
@@ -899,7 +894,7 @@ declare function EnvironmentPortal({ children, near, far, resolution, frames, ma
|
|
|
899
894
|
* />
|
|
900
895
|
* ```
|
|
901
896
|
*/
|
|
902
|
-
declare function Environment(props: EnvironmentProps):
|
|
897
|
+
declare function Environment(props: EnvironmentProps): react_jsx_runtime.JSX.Element;
|
|
903
898
|
|
|
904
899
|
/**
|
|
905
900
|
* Moves every trace of interactivity from one object to its replacement, for reconstruction.
|
|
@@ -1017,7 +1012,7 @@ declare const Texture: ({ children, input, onLoad, cache, }: {
|
|
|
1017
1012
|
input: Parameters<typeof useTexture>[0];
|
|
1018
1013
|
onLoad?: Parameters<typeof useTexture>[1];
|
|
1019
1014
|
cache?: boolean;
|
|
1020
|
-
}) =>
|
|
1015
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1021
1016
|
|
|
1022
1017
|
/** Accepted shapes for a registry read: a single key, a list of keys, or a name→key map. */
|
|
1023
1018
|
type TextureInput = string | string[] | Record<string, string>;
|
|
@@ -1804,8 +1799,7 @@ declare namespace ReactReconciler {
|
|
|
1804
1799
|
type LanePriority = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17;
|
|
1805
1800
|
|
|
1806
1801
|
type Lanes = number;
|
|
1807
|
-
|
|
1808
|
-
type Lane = number & { __LaneBrand: any };
|
|
1802
|
+
type Lane = number;
|
|
1809
1803
|
|
|
1810
1804
|
type Flags = number;
|
|
1811
1805
|
|
|
@@ -2136,6 +2130,7 @@ declare namespace ReactReconciler {
|
|
|
2136
2130
|
onCaughtError: (error: Error, info: BaseErrorInfo) => void,
|
|
2137
2131
|
onRecoverableError: (error: Error, info: BaseErrorInfo) => void,
|
|
2138
2132
|
onDefaultTransitionIndicator: () => void,
|
|
2133
|
+
transitionCallbacks: null | TransitionTracingCallbacks,
|
|
2139
2134
|
): OpaqueRoot;
|
|
2140
2135
|
|
|
2141
2136
|
createPortal(
|
|
@@ -2145,6 +2140,8 @@ declare namespace ReactReconciler {
|
|
|
2145
2140
|
key?: string | null,
|
|
2146
2141
|
): ReactPortal;
|
|
2147
2142
|
|
|
2143
|
+
registerMutableSourceForHydration(root: FiberRoot, mutableSource: MutableSource): void;
|
|
2144
|
+
|
|
2148
2145
|
createComponentSelector(component: React$AbstractComponent<never, unknown>): ComponentSelector;
|
|
2149
2146
|
|
|
2150
2147
|
createHasPseudoClassSelector(selectors: Selector[]): HasPseudoClassSelector;
|
|
@@ -2179,12 +2176,8 @@ declare namespace ReactReconciler {
|
|
|
2179
2176
|
isStrictMode: boolean,
|
|
2180
2177
|
concurrentUpdatesByDefaultOverride: null | boolean,
|
|
2181
2178
|
identifierPrefix: string,
|
|
2182
|
-
|
|
2183
|
-
onCaughtError: (error: Error, info: BaseErrorInfo) => void,
|
|
2184
|
-
onRecoverableError: (error: Error, info: BaseErrorInfo) => void,
|
|
2185
|
-
onDefaultTransitionIndicator: () => void,
|
|
2179
|
+
onRecoverableError: (error: Error) => void,
|
|
2186
2180
|
transitionCallbacks: null | TransitionTracingCallbacks,
|
|
2187
|
-
formState: unknown,
|
|
2188
2181
|
): OpaqueRoot;
|
|
2189
2182
|
|
|
2190
2183
|
updateContainer(
|
|
@@ -2194,27 +2187,17 @@ declare namespace ReactReconciler {
|
|
|
2194
2187
|
callback?: (() => void) | null,
|
|
2195
2188
|
): Lane;
|
|
2196
2189
|
|
|
2197
|
-
updateContainerSync(
|
|
2198
|
-
element: ReactNode,
|
|
2199
|
-
container: OpaqueRoot,
|
|
2200
|
-
parentComponent?: Component<any, any> | null,
|
|
2201
|
-
callback?: (() => void) | null,
|
|
2202
|
-
): Lane;
|
|
2203
|
-
|
|
2204
2190
|
batchedUpdates<A, R>(fn: (a: A) => R, a: A): R;
|
|
2205
2191
|
|
|
2206
2192
|
deferredUpdates<A>(fn: () => A): A;
|
|
2207
2193
|
|
|
2208
2194
|
discreteUpdates<A, B, C, D, R>(fn: (arg0: A, arg1: B, arg2: C, arg3: D) => R, a: A, b: B, c: C, d: D): R;
|
|
2209
2195
|
|
|
2196
|
+
flushControlled(fn: () => any): void;
|
|
2197
|
+
|
|
2210
2198
|
flushSync(): void;
|
|
2211
2199
|
flushSync<R>(fn: () => R): R;
|
|
2212
2200
|
|
|
2213
|
-
flushSyncFromReconciler(): void;
|
|
2214
|
-
flushSyncFromReconciler<R>(fn: () => R): R;
|
|
2215
|
-
|
|
2216
|
-
flushSyncWork(): boolean;
|
|
2217
|
-
|
|
2218
2201
|
isAlreadyRendering(): boolean;
|
|
2219
2202
|
|
|
2220
2203
|
flushPassiveEffects(): boolean;
|
|
@@ -2223,10 +2206,16 @@ declare namespace ReactReconciler {
|
|
|
2223
2206
|
|
|
2224
2207
|
attemptSynchronousHydration(fiber: Fiber): void;
|
|
2225
2208
|
|
|
2209
|
+
attemptDiscreteHydration(fiber: Fiber): void;
|
|
2210
|
+
|
|
2226
2211
|
attemptContinuousHydration(fiber: Fiber): void;
|
|
2227
2212
|
|
|
2228
2213
|
attemptHydrationAtCurrentPriority(fiber: Fiber): void;
|
|
2229
2214
|
|
|
2215
|
+
getCurrentUpdatePriority(): LanePriority;
|
|
2216
|
+
|
|
2217
|
+
runWithPriority<T>(priority: LanePriority, fn: () => T): T;
|
|
2218
|
+
|
|
2230
2219
|
findHostInstance(component: any): PublicInstance | null;
|
|
2231
2220
|
|
|
2232
2221
|
findHostInstanceWithWarning(component: any, methodName: string): PublicInstance | null;
|
|
@@ -2239,17 +2228,6 @@ declare namespace ReactReconciler {
|
|
|
2239
2228
|
|
|
2240
2229
|
injectIntoDevTools(devToolsConfig: DevToolsConfig<Instance, TextInstance, any>): boolean;
|
|
2241
2230
|
}
|
|
2242
|
-
|
|
2243
|
-
function defaultOnUncaughtError(error: Error): void;
|
|
2244
|
-
function defaultOnCaughtError(error: Error): void;
|
|
2245
|
-
function defaultOnRecoverableError(error: Error): void;
|
|
2246
|
-
|
|
2247
|
-
function startHostTransition(
|
|
2248
|
-
formFiber: Fiber,
|
|
2249
|
-
pendingState: unknown,
|
|
2250
|
-
action: ((formData: FormData) => void) | null,
|
|
2251
|
-
formData: FormData,
|
|
2252
|
-
): void;
|
|
2253
2231
|
}
|
|
2254
2232
|
|
|
2255
2233
|
declare function extend<T extends ConstructorRepresentation>(objects: T): React$1.ExoticComponent<ThreeElement<T>>;
|