hive-react-kit 1.5.4 → 1.5.5
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/components/IpfsMedia.d.ts +15 -0
- package/dist/index.cjs.js +173 -173
- package/dist/index.esm.js +16097 -15933
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const IPFS_URL_REGEX: RegExp;
|
|
2
|
+
export type IpfsKind = "image" | "video" | "unknown";
|
|
3
|
+
export declare function getIpfsKind(url: string): Promise<IpfsKind>;
|
|
4
|
+
export declare function useIpfsKind(url: string): IpfsKind | null;
|
|
5
|
+
export interface IpfsMediaProps {
|
|
6
|
+
url: string;
|
|
7
|
+
/** Strip-tile preview (lazy-loaded image, video poster + play badge). */
|
|
8
|
+
variant?: "tile" | "full";
|
|
9
|
+
/** Tile-only — fires when the user taps the tile so the host can open it
|
|
10
|
+
* in its own popup viewer instead of relying on the inline player. */
|
|
11
|
+
onTileClick?: (e: React.MouseEvent) => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const IpfsMedia: React.FC<IpfsMediaProps>;
|
|
15
|
+
export default IpfsMedia;
|