ostbay-player 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.
- package/README.md +131 -0
- package/dist/index.css +1 -0
- package/dist/ostbay-player.cjs.js +30 -0
- package/dist/ostbay-player.es.js +1035 -0
- package/dist/types/components/OstbayIcon/Icons/Logo.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/Next.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/Ostbay.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/Pause.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/Play.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/PlayList.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/Prev.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/RepeatAll.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/RepeatNone.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/RepeatOne.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/RepeatShuffle.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/VolumeFull.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/VolumeMiddle.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/VolumeNone.d.ts +1 -0
- package/dist/types/components/OstbayIcon/Icons/index.d.ts +14 -0
- package/dist/types/components/OstbayIcon/OstbayIcon.d.ts +2 -0
- package/dist/types/components/OstbayIcon/OstbayIcon.types.d.ts +7 -0
- package/dist/types/components/OstbayIcon/index.d.ts +2 -0
- package/dist/types/components/OstbayPlayer/OstbayPlayer.d.ts +2 -0
- package/dist/types/components/OstbayPlayer/OstbayPlayer.types.d.ts +13 -0
- package/dist/types/components/OstbayPlayer/constants.d.ts +5 -0
- package/dist/types/components/OstbayPlayer/index.d.ts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +57 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Next: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Ostbay: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Pause: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Play: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PlayList: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Prev: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RepeatAll: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RepeatNone: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RepeatOne: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RepeatShuffle: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VolumeFull: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VolumeMiddle: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VolumeNone: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { Logo } from './Logo';
|
|
2
|
+
export { Next } from './Next';
|
|
3
|
+
export { Ostbay } from './Ostbay';
|
|
4
|
+
export { Pause } from './Pause';
|
|
5
|
+
export { Play } from './Play';
|
|
6
|
+
export { PlayList } from './PlayList';
|
|
7
|
+
export { Prev } from './Prev';
|
|
8
|
+
export { RepeatAll } from './RepeatAll';
|
|
9
|
+
export { RepeatNone } from './RepeatNone';
|
|
10
|
+
export { RepeatOne } from './RepeatOne';
|
|
11
|
+
export { RepeatShuffle } from './RepeatShuffle';
|
|
12
|
+
export { VolumeFull } from './VolumeFull';
|
|
13
|
+
export { VolumeMiddle } from './VolumeMiddle';
|
|
14
|
+
export { VolumeNone } from './VolumeNone';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export type OstbayIconProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
name?: OstbayIconName;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
};
|
|
7
|
+
export type OstbayIconName = 'logo' | 'next' | 'ostbay' | 'pause' | 'play' | 'playList' | 'prev' | 'repeatAll' | 'repeatNone' | 'repeatOne' | 'repeatShuffle' | 'volumeFull' | 'volumeMiddle' | 'volumeNone';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CSSProperties, RefObject } from 'react';
|
|
2
|
+
export interface IPlayerProps {
|
|
3
|
+
audioRef?: RefObject<HTMLAudioElement>;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
playList: IPlayListItem[];
|
|
7
|
+
}
|
|
8
|
+
export interface IPlayListItem {
|
|
9
|
+
id?: number;
|
|
10
|
+
name: string;
|
|
11
|
+
src: string;
|
|
12
|
+
writer: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ActiveUI, AudioPlayerProps, InterfacePlacement, SpectrumProviderProps } from 'react-modern-audio-player';
|
|
2
|
+
export declare const ACTIVE_UI: ActiveUI;
|
|
3
|
+
export declare const INTERFACE_PLACEMENT: InterfacePlacement;
|
|
4
|
+
export declare const PLACEMENT: AudioPlayerProps['placement'];
|
|
5
|
+
export declare const ROOT_CONTAINER_PROPS: SpectrumProviderProps['rootContainerProps'];
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ostbay-player",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Ostbay player",
|
|
5
|
+
"main": "dist/ostbay-player.cjs.js",
|
|
6
|
+
"module": "dist/ostbay-player.es.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"type": "module",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "vite",
|
|
15
|
+
"build": "tsc -b && vite build",
|
|
16
|
+
"build:lib": "tsc -b && vite build --mode library && npm pack",
|
|
17
|
+
"lint": "eslint ."
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"react",
|
|
21
|
+
"audio",
|
|
22
|
+
"player",
|
|
23
|
+
"music",
|
|
24
|
+
"ostbay"
|
|
25
|
+
],
|
|
26
|
+
"author": "Ostbay",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "https://github.com/snooperv/ostbay_player.git"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/snooperv/ostbay_player#readme",
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/snooperv/ostbay_player/issues"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"react": ">=16.8.0 <=18.3.1",
|
|
38
|
+
"react-dom": ">=16.8.0 <=18.3.1",
|
|
39
|
+
"react-modern-audio-player": ">=1.0.0 <=1.3.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@eslint/js": "9.36.0",
|
|
43
|
+
"@types/node": "24.6.0",
|
|
44
|
+
"@types/react": "18.3.12",
|
|
45
|
+
"@types/react-dom": "18.3.1",
|
|
46
|
+
"@vitejs/plugin-react": "5.0.4",
|
|
47
|
+
"eslint": "9.36.0",
|
|
48
|
+
"eslint-plugin-react-hooks": "5.2.0",
|
|
49
|
+
"eslint-plugin-react-refresh": "0.4.22",
|
|
50
|
+
"globals": "16.4.0",
|
|
51
|
+
"typescript": "5.9.3",
|
|
52
|
+
"typescript-eslint": "8.45.0",
|
|
53
|
+
"vite": "7.1.11",
|
|
54
|
+
"vite-plugin-dts": "4.5.4",
|
|
55
|
+
"vite-plugin-lib-inject-css": "2.2.2"
|
|
56
|
+
}
|
|
57
|
+
}
|