react-modern-audio-player 1.2.4 → 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;
@@ -1,4 +1,5 @@
1
1
  import { SpectrumProviderProps } from '../Provider';
2
2
  import { FC } from "react";
3
3
  import { AudioPlayerProps } from "./Player";
4
- export declare const AudioPlayerWithProvider: FC<AudioPlayerProps & SpectrumProviderProps>;
4
+ export declare type RMAudioPlayerProps = AudioPlayerProps & SpectrumProviderProps;
5
+ export declare const AudioPlayerWithProvider: FC<RMAudioPlayerProps>;
@@ -0,0 +1,2 @@
1
+ import { ActiveUI, InterfacePlacement } from '../components/AudioPlayer/Context';
2
+ export declare const useGridTemplate: (activeUI: ActiveUI, templateArea: InterfacePlacement["templateArea"] | undefined) => readonly [string[], string[]];
@@ -1,3 +1,6 @@
1
- export * from "./components/AudioPlayer";
2
1
  import { AudioPlayerWithProvider as AudioPlayer } from "./components/AudioPlayer";
3
2
  export default AudioPlayer;
3
+ export * from "./components/AudioPlayer";
4
+ export * from "./components/AudioPlayer/Context";
5
+ export * from "./components/AudioPlayer/Player";
6
+ export * from "./components/Provider/SpectrumProvider";
@@ -0,0 +1 @@
1
+ export declare const getRandomNumber: (min: number, max: number) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-modern-audio-player",
3
- "version": "1.2.4",
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>;
@@ -1,5 +0,0 @@
1
- import { ActiveUI, InterfacePlacement } from '../components/AudioPlayer/Context/StateContext';
2
- export declare const generateGridTemplateValues: (activeUi: ActiveUI, placement?: InterfacePlacement["templateArea"]) => {
3
- gridAreas: string[];
4
- gridColumns: string[];
5
- };