@react-three/fiber 8.17.6 → 8.17.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @react-three/fiber
2
2
 
3
+ ## 8.17.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 3c885807: fix(types): fix React typings, fault tolerant Node type
8
+
9
+ ## 8.17.7
10
+
11
+ ### Patch Changes
12
+
13
+ - c20a7d73: fix(native): missing pointerId in pointer events
14
+
3
15
  ## 8.17.6
4
16
 
5
17
  ### Patch Changes
@@ -38,7 +38,9 @@ export interface NodeProps<T, P> {
38
38
  export declare type ExtendedColors<T> = {
39
39
  [K in keyof T]: T[K] extends THREE.Color | undefined ? Color : T[K];
40
40
  };
41
- export declare type Node<T, P> = ExtendedColors<Overwrite<Partial<T>, NodeProps<T, P>>>;
41
+ export declare type Node<T, P> = [T] extends [{
42
+ thisShouldNeverHappen: 'unless the object is of type any';
43
+ }] ? ExtendedColors<Overwrite<Partial<{}>, NodeProps<{}, {}>>> : ExtendedColors<Overwrite<Partial<T>, NodeProps<T, P>>>;
42
44
  export declare type Object3DNode<T, P> = Overwrite<Node<T, P>, {
43
45
  position?: Vector3;
44
46
  up?: Vector3;
@@ -171,7 +171,8 @@ const CanvasImpl = /*#__PURE__*/React__namespace.forwardRef(({
171
171
  type,
172
172
  offsetX: gestureEvent.nativeEvent.locationX,
173
173
  offsetY: gestureEvent.nativeEvent.locationY,
174
- pointerType: 'touch'
174
+ pointerType: 'touch',
175
+ pointerId: gestureEvent.nativeEvent.identifier
175
176
  }));
176
177
  return true;
177
178
  }
@@ -171,7 +171,8 @@ const CanvasImpl = /*#__PURE__*/React__namespace.forwardRef(({
171
171
  type,
172
172
  offsetX: gestureEvent.nativeEvent.locationX,
173
173
  offsetY: gestureEvent.nativeEvent.locationY,
174
- pointerType: 'touch'
174
+ pointerType: 'touch',
175
+ pointerId: gestureEvent.nativeEvent.identifier
175
176
  }));
176
177
  return true;
177
178
  }
@@ -146,7 +146,8 @@ const CanvasImpl = /*#__PURE__*/React.forwardRef(({
146
146
  type,
147
147
  offsetX: gestureEvent.nativeEvent.locationX,
148
148
  offsetY: gestureEvent.nativeEvent.locationY,
149
- pointerType: 'touch'
149
+ pointerType: 'touch',
150
+ pointerId: gestureEvent.nativeEvent.identifier
150
151
  }));
151
152
  return true;
152
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/fiber",
3
- "version": "8.17.6",
3
+ "version": "8.17.8",
4
4
  "description": "A React renderer for Threejs",
5
5
  "keywords": [
6
6
  "react",