@rive-app/react-canvas 3.0.57 → 4.1.0

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,8 +1,8 @@
1
- import Rive from './components/Rive';
1
+ import Rive, { RiveProps } from './components/Rive';
2
2
  import useRive from './hooks/useRive';
3
3
  import useStateMachineInput from './hooks/useStateMachineInput';
4
4
  import useResizeCanvas from './hooks/useResizeCanvas';
5
5
  export default Rive;
6
- export { useRive, useStateMachineInput, useResizeCanvas };
6
+ export { useRive, useStateMachineInput, useResizeCanvas, RiveProps };
7
7
  export { RiveState, UseRiveParameters, UseRiveOptions } from './types';
8
8
  export * from '@rive-app/canvas';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/react-canvas",
3
- "version": "3.0.57",
3
+ "version": "4.1.0",
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.2.4"
21
+ "@rive-app/canvas": "2.1.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0"