@alpha-video-kit/svg 0.2.2 → 0.2.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/react.d.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpha-video-kit/svg",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "SVG filter-based renderer for stacked alpha videos",
5
5
  "type": "module",
6
6
  "files": ["dist", "react.d.ts"],
package/react.d.ts CHANGED
@@ -2,6 +2,7 @@ import type { AlphaVideoKitSVG } from './dist/index.js';
2
2
  import type { AlphaVideoKitCanvas } from './dist/index.js';
3
3
 
4
4
  interface AlphaVideoKitSVGAttributes extends React.HTMLAttributes<AlphaVideoKitSVG> {
5
+ ref?: React.Ref<AlphaVideoKitSVG>;
5
6
  src?: string;
6
7
  crossOrigin?: string;
7
8
  preload?: string;
@@ -15,6 +16,7 @@ interface AlphaVideoKitSVGAttributes extends React.HTMLAttributes<AlphaVideoKitS
15
16
  }
16
17
 
17
18
  interface AlphaVideoKitCanvasAttributes extends React.HTMLAttributes<AlphaVideoKitCanvas> {
19
+ ref?: React.Ref<AlphaVideoKitCanvas>;
18
20
  src?: string;
19
21
  crossOrigin?: string;
20
22
  preload?: string;
@@ -27,7 +29,7 @@ interface AlphaVideoKitCanvasAttributes extends React.HTMLAttributes<AlphaVideoK
27
29
  height?: number | string;
28
30
  }
29
31
 
30
- declare global {
32
+ declare module 'react' {
31
33
  namespace JSX {
32
34
  interface IntrinsicElements {
33
35
  'alpha-video-kit-svg': AlphaVideoKitSVGAttributes;