@libshub/gif-tools 1.0.1 → 1.0.3
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,4 +1,4 @@
|
|
|
1
|
-
import { type CSSProperties } from 'react';
|
|
1
|
+
import { type CSSProperties, type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
2
2
|
import './GifPlayer.css';
|
|
3
3
|
export interface GifPlayerRef {
|
|
4
4
|
play: () => void;
|
|
@@ -25,4 +25,5 @@ export interface GifPlayerProps {
|
|
|
25
25
|
onLoaded?: (decodeTimeMs: number) => void;
|
|
26
26
|
onError?: (error: Error) => void;
|
|
27
27
|
}
|
|
28
|
-
export
|
|
28
|
+
export type GifPlayerComponent = ForwardRefExoticComponent<GifPlayerProps & RefAttributes<GifPlayerRef>>;
|
|
29
|
+
export declare const GifPlayer: GifPlayerComponent;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { GifPlayer } from './components/GifPlayer';
|
|
2
|
-
export type { GifPlayerProps, GifPlayerRef } from './components/GifPlayer';
|
|
2
|
+
export type { GifPlayerComponent, GifPlayerProps, GifPlayerRef, } from './components/GifPlayer';
|
|
3
3
|
export { createGifController } from './utils';
|
|
4
4
|
export type { CreateGifOptions, GifController } from './utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libshub/gif-tools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "./dist/gif-tools.es.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
],
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
15
16
|
"import": "./dist/gif-tools.es.js",
|
|
16
|
-
"
|
|
17
|
+
"default": "./dist/gif-tools.es.js"
|
|
17
18
|
},
|
|
18
19
|
"./style.css": "./dist/gif-tools.css"
|
|
19
20
|
},
|
|
@@ -52,4 +53,4 @@
|
|
|
52
53
|
"dependencies": {
|
|
53
54
|
"gifuct-js": "^2.1.2"
|
|
54
55
|
}
|
|
55
|
-
}
|
|
56
|
+
}
|