@rive-app/react-canvas 3.0.33 → 3.0.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/react-canvas",
3
- "version": "3.0.33",
3
+ "version": "3.0.35",
4
4
  "description": "React wrapper around the @rive-app/canvas library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/types/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "homepage": "https://github.com/rive-app/rive-react#readme",
20
20
  "dependencies": {
21
- "@rive-app/canvas": "1.0.95"
21
+ "@rive-app/canvas": "1.0.98"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
@@ -1,12 +1,12 @@
1
1
  import { RefCallback, ComponentProps } from 'react';
2
2
  import { Rive, RiveParameters } from '@rive-app/canvas';
3
- export declare type UseRiveParameters = Partial<Omit<RiveParameters, 'canvas'>> | null;
4
- export declare type UseRiveOptions = {
3
+ export type UseRiveParameters = Partial<Omit<RiveParameters, 'canvas'>> | null;
4
+ export type UseRiveOptions = {
5
5
  useDevicePixelRatio: boolean;
6
6
  fitCanvasToArtboardHeight: boolean;
7
7
  useOffscreenRenderer: boolean;
8
8
  };
9
- export declare type Dimensions = {
9
+ export type Dimensions = {
10
10
  width: number;
11
11
  height: number;
12
12
  };
@@ -20,7 +20,7 @@ export declare type Dimensions = {
20
20
  * container if the window resizes.
21
21
  * @property rive - The loaded Rive Animation
22
22
  */
23
- export declare type RiveState = {
23
+ export type RiveState = {
24
24
  canvas: HTMLCanvasElement | null;
25
25
  setCanvasRef: RefCallback<HTMLCanvasElement>;
26
26
  setContainerRef: RefCallback<HTMLElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/react-canvas",
3
- "version": "3.0.33",
3
+ "version": "3.0.35",
4
4
  "description": "React wrapper around the @rive-app/canvas library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/types/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "homepage": "https://github.com/rive-app/rive-react#readme",
20
20
  "dependencies": {
21
- "@rive-app/canvas": "1.0.95"
21
+ "@rive-app/canvas": "1.0.98"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0"