react-modern-audio-player 1.2.5 → 1.3.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,2 +1,4 @@
1
- import { FC } from "react";
2
- export declare const Audio: FC;
1
+ import React, { FC } from "react";
2
+ export declare const Audio: FC<{
3
+ audioRef?: React.MutableRefObject<HTMLAudioElement>;
4
+ }>;
@@ -0,0 +1,2 @@
1
+ import { HTMLAttributes } from "react";
2
+ export declare const useAudio: () => HTMLAttributes<HTMLAudioElement>;
@@ -0,0 +1,2 @@
1
+ import { HTMLAttributes } from "react";
2
+ export declare const useProgress: () => HTMLAttributes<HTMLDivElement>;
@@ -0,0 +1 @@
1
+ export declare const useWaveSurfer: (waveformRef: React.RefObject<HTMLElement>) => void;
@@ -3,6 +3,7 @@ import { ActiveUI, PlayListPlacement, CustomIcons, PlayerPlacement, PlayList, Au
3
3
  export interface AudioPlayerProps {
4
4
  playList: PlayList;
5
5
  audioInitialState?: AudioInitialState;
6
+ audioRef?: React.MutableRefObject<HTMLAudioElement>;
6
7
  activeUI?: ActiveUI;
7
8
  customIcons?: CustomIcons;
8
9
  coverImgsCss?: CoverImgsCss;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-modern-audio-player",
3
- "version": "1.2.5",
3
+ "version": "1.3.0",
4
4
  "author": {
5
5
  "name": "LYH",
6
6
  "email": "slash9494@naver.com",
@@ -1,2 +0,0 @@
1
- import { FC } from "react";
2
- export declare const Basic: FC;
@@ -1,2 +0,0 @@
1
- import { FC } from "react";
2
- export declare const WaveSurferAudio: FC;
@@ -1,2 +0,0 @@
1
- import { HTMLAttributes } from "react";
2
- export declare const useBasicAudio: () => HTMLAttributes<HTMLAudioElement>;
@@ -1 +0,0 @@
1
- export declare const useWaveSurfer: () => null;
@@ -1,2 +0,0 @@
1
- import { HTMLAttributes } from "react";
2
- export declare const useBarProgress: () => HTMLAttributes<HTMLDivElement>;