react-modern-audio-player 0.0.3 → 1.0.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.
@@ -3,7 +3,7 @@ import { ActiveUI } from "./element";
3
3
  export declare type PlayListPlacement = "bottom" | "top";
4
4
  export declare type PlayerPlacement = "bottom" | "top" | "bottom-left" | "bottom-right" | "top-left" | "top-right";
5
5
  export declare const interfacePlacementMaxLength = 10;
6
- declare type InterfacePlacementKey = Exclude<keyof ActiveUI, "all" | "prevNnext" | "trackTime"> | "trackTimeCurrent" | "trackTimeDuration";
6
+ export declare type InterfacePlacementKey = Exclude<keyof ActiveUI, "all" | "prevNnext" | "trackTime"> | "trackTimeCurrent" | "trackTimeDuration";
7
7
  export declare type InterfaceGridTemplateArea = Partial<Record<InterfacePlacementKey, `row${NumbersToUnionNum<typeof interfacePlacementMaxLength>}-${NumbersToUnionNum<typeof interfacePlacementMaxLength>}`>>;
8
8
  export declare type InterfaceGridItemArea = Partial<Record<InterfacePlacementKey, string>>;
9
9
  export declare type InterfacePlacement = {
@@ -13,4 +13,3 @@ export declare type InterfacePlacement = {
13
13
  export declare const defaultInterfacePlacement: {
14
14
  templateArea: Required<InterfaceGridTemplateArea>;
15
15
  };
16
- export {};
@@ -1,6 +1,7 @@
1
1
  import { FC } from "react";
2
2
  interface PrevNnextBtnProps {
3
3
  type: "prev" | "next";
4
+ visible: boolean;
4
5
  }
5
6
  export declare const PrevNnextBtn: FC<PrevNnextBtnProps>;
6
7
  export {};
@@ -1,2 +1,7 @@
1
- import { View } from "@react-spectrum/view";
2
- export declare const GridItem: typeof View;
1
+ import { ViewProps } from "@react-types/view";
2
+ import { DOMRefValue } from "@react-types/shared";
3
+ export interface GridItemProps extends Omit<ViewProps, "children"> {
4
+ visible?: boolean;
5
+ children: React.ReactNode;
6
+ }
7
+ export declare const GridItem: import("react").ForwardRefExoticComponent<GridItemProps & import("react").RefAttributes<import("react").RefAttributes<DOMRefValue<HTMLElement>>>>;
@@ -1,5 +1,5 @@
1
1
  import { ActiveUI } from '../components/AudioPlayer/Context/StateContext';
2
- export declare const generateGridTemplateValues: (activeUi: ActiveUI, placement?: Partial<Record<"progress" | "playButton" | "playList" | "volume" | "repeatType" | "trackInfo" | "artwork" | "trackTimeCurrent" | "trackTimeDuration", "row1-1" | "row1-2" | "row1-3" | "row1-4" | "row1-5" | "row1-6" | "row1-7" | "row1-8" | "row1-9" | "row2-1" | "row2-2" | "row2-3" | "row2-4" | "row2-5" | "row2-6" | "row2-7" | "row2-8" | "row2-9" | "row3-1" | "row3-2" | "row3-3" | "row3-4" | "row3-5" | "row3-6" | "row3-7" | "row3-8" | "row3-9" | "row4-1" | "row4-2" | "row4-3" | "row4-4" | "row4-5" | "row4-6" | "row4-7" | "row4-8" | "row4-9" | "row5-1" | "row5-2" | "row5-3" | "row5-4" | "row5-5" | "row5-6" | "row5-7" | "row5-8" | "row5-9" | "row6-1" | "row6-2" | "row6-3" | "row6-4" | "row6-5" | "row6-6" | "row6-7" | "row6-8" | "row6-9" | "row7-1" | "row7-2" | "row7-3" | "row7-4" | "row7-5" | "row7-6" | "row7-7" | "row7-8" | "row7-9" | "row8-1" | "row8-2" | "row8-3" | "row8-4" | "row8-5" | "row8-6" | "row8-7" | "row8-8" | "row8-9" | "row9-1" | "row9-2" | "row9-3" | "row9-4" | "row9-5" | "row9-6" | "row9-7" | "row9-8" | "row9-9">> | undefined) => {
2
+ export declare const generateGridTemplateValues: (activeUi: ActiveUI, placement?: Partial<Record<import('../components/AudioPlayer/Context/StateContext').InterfacePlacementKey, "row1-1" | "row1-2" | "row1-3" | "row1-4" | "row1-5" | "row1-6" | "row1-7" | "row1-8" | "row1-9" | "row2-1" | "row2-2" | "row2-3" | "row2-4" | "row2-5" | "row2-6" | "row2-7" | "row2-8" | "row2-9" | "row3-1" | "row3-2" | "row3-3" | "row3-4" | "row3-5" | "row3-6" | "row3-7" | "row3-8" | "row3-9" | "row4-1" | "row4-2" | "row4-3" | "row4-4" | "row4-5" | "row4-6" | "row4-7" | "row4-8" | "row4-9" | "row5-1" | "row5-2" | "row5-3" | "row5-4" | "row5-5" | "row5-6" | "row5-7" | "row5-8" | "row5-9" | "row6-1" | "row6-2" | "row6-3" | "row6-4" | "row6-5" | "row6-6" | "row6-7" | "row6-8" | "row6-9" | "row7-1" | "row7-2" | "row7-3" | "row7-4" | "row7-5" | "row7-6" | "row7-7" | "row7-8" | "row7-9" | "row8-1" | "row8-2" | "row8-3" | "row8-4" | "row8-5" | "row8-6" | "row8-7" | "row8-8" | "row8-9" | "row9-1" | "row9-2" | "row9-3" | "row9-4" | "row9-5" | "row9-6" | "row9-7" | "row9-8" | "row9-9">> | undefined) => {
3
3
  gridAreas: string[];
4
4
  gridColumns: string[];
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-modern-audio-player",
3
- "version": "0.0.3",
3
+ "version": "1.0.0",
4
4
  "homepage": "https://github.com/slash9494/react-modern-audio-player/",
5
5
  "module": "dist/index.es.js",
6
6
  "main": "dist/index.cjs",
@@ -10,9 +10,7 @@
10
10
  "dist"
11
11
  ],
12
12
  "exports": {
13
- ".": {
14
- "import": "./dist/index.es.js",
15
- "require": "./dist/index.cjs"
13
+ ".": {
16
14
  }
17
15
  },
18
16
  "repository": {