@aigamo/hydrangean-diva 0.0.1-alpha.28 → 0.0.1-alpha.31
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/features/common/stores/ObservableStateProvider.d.ts +1 -1
- package/dist/features/media-player.play-queue/components/AddVideoButton.d.ts +2 -2
- package/dist/features/media-player.play-queue/components/DeveloperToolsButton.d.ts +2 -2
- package/dist/features/media-player.play-queue/components/PlayQueue.d.ts +2 -2
- package/dist/features/media-player.play-queue/components/PlayQueueProvider.d.ts +6 -0
- package/dist/features/media-player.play-queue/components/PlayQueueTable.d.ts +2 -2
- package/dist/features/media-player.play-queue.abstractions/contexts/PlayQueueContext.d.ts +3 -0
- package/dist/features/media-player.play-queue.abstractions/contexts/index.d.ts +1 -1
- package/dist/features/media-player.player/components/PlayerProvider.d.ts +6 -0
- package/dist/features/media-player.player/components/bottom-bar/BottomBarCenterControls.d.ts +1 -6
- package/dist/features/media-player.player/components/bottom-bar/BottomBarLeftControls.d.ts +1 -6
- package/dist/features/media-player.player/components/bottom-bar/BottomBarProvider.d.ts +6 -0
- package/dist/features/media-player.player/components/bottom-bar/BottomBarRightControls.d.ts +1 -3
- package/dist/features/media-player.player/components/bottom-bar/SeekBar.d.ts +1 -6
- package/dist/features/media-player.player/components/mini-player/MiniPlayerProvider.d.ts +6 -0
- package/dist/features/media-player.player/contexts/BottomBarContext.d.ts +3 -0
- package/dist/features/media-player.player/contexts/MiniPlayerContext.d.ts +3 -0
- package/dist/features/media-player.player/contexts/PlayerContext.d.ts +3 -0
- package/dist/features/media-player.player/interfaces/IBottomBarStore.d.ts +1 -1
- package/dist/features/media-player.player/stores/BottomBarStore.d.ts +2 -1
- package/dist/features/media-player.playlists/components/PlaylistTable.d.ts +2 -2
- package/dist/features/media-player.playlists/pages/PlaylistDetailsPage.d.ts +2 -4
- package/dist/features/media-player.playlists/stores/PlaylistItemStore.d.ts +3 -3
- package/dist/features/media-player.playlists/stores/PlaylistListStore.d.ts +3 -3
- package/dist/features/media-player.playlists/stores/PlaylistStore.d.ts +5 -5
- package/dist/index.cjs.js +8 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1109 -1140
- package/dist/index.es.js.map +1 -1
- package/package.json +7 -7
- package/dist/features/media-player.play-queue/components/PlayQueueStoreProvider.d.ts +0 -6
- package/dist/features/media-player.play-queue.abstractions/contexts/PlayQueueStoreContext.d.ts +0 -3
- package/dist/features/media-player.player/components/PlayerStoreProvider.d.ts +0 -6
- package/dist/features/media-player.player/components/bottom-bar/BottomBarStoreProvider.d.ts +0 -6
- package/dist/features/media-player.player/components/mini-player/MiniPlayerStoreProvider.d.ts +0 -6
- package/dist/features/media-player.player/contexts/BottomBarStoreContext.d.ts +0 -3
- package/dist/features/media-player.player/contexts/MiniPlayerStoreContext.d.ts +0 -3
- package/dist/features/media-player.player/contexts/PlayerStoreContext.d.ts +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IObservableStateProvider } from '../interfaces/IObservableStateProvider';
|
|
2
2
|
import { AnnotationsMap } from 'mobx';
|
|
3
3
|
export declare class ObservableStateProvider implements IObservableStateProvider {
|
|
4
|
-
makeObservable<T extends object, AdditionalKeys extends PropertyKey = never>(target: T,
|
|
4
|
+
makeObservable<T extends object, AdditionalKeys extends PropertyKey = never>(target: T, _annotations?: AnnotationsMap<T, AdditionalKeys>): T;
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
2
|
export interface AddVideoFormSubmitEvent {
|
|
3
3
|
url: string;
|
|
4
4
|
title: string;
|
|
@@ -6,5 +6,5 @@ export interface AddVideoFormSubmitEvent {
|
|
|
6
6
|
interface AddVideoButtonProps {
|
|
7
7
|
onSave: (e: AddVideoFormSubmitEvent) => Promise<void>;
|
|
8
8
|
}
|
|
9
|
-
export declare const AddVideoButton:
|
|
9
|
+
export declare const AddVideoButton: import('react').MemoExoticComponent<({ onSave }: AddVideoButtonProps) => ReactElement>;
|
|
10
10
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PlayQueueStore } from '../stores/PlayQueueStore';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
interface DeveloperToolsButtonProps {
|
|
4
|
-
|
|
4
|
+
playQueue: PlayQueueStore;
|
|
5
5
|
}
|
|
6
|
-
export declare const DeveloperToolsButton: (({
|
|
6
|
+
export declare const DeveloperToolsButton: (({ playQueue }: DeveloperToolsButtonProps) => ReactElement) & {
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IPlayQueueStore } from '../../media-player.play-queue.abstractions/interfaces/IPlayQueueStore';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
interface PlayQueueProps {
|
|
4
|
-
|
|
4
|
+
playQueue: IPlayQueueStore;
|
|
5
5
|
}
|
|
6
|
-
export declare const PlayQueue: (({
|
|
6
|
+
export declare const PlayQueue: (({ playQueue }: PlayQueueProps) => ReactElement) & {
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IPlayQueueStore } from '../../media-player.play-queue.abstractions/interfaces/IPlayQueueStore';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
interface PlayQueueTableProps {
|
|
4
|
-
|
|
4
|
+
playQueue: IPlayQueueStore;
|
|
5
5
|
}
|
|
6
|
-
export declare const PlayQueueTable: (({
|
|
6
|
+
export declare const PlayQueueTable: (({ playQueue }: PlayQueueTableProps) => ReactElement) & {
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './PlayQueueContext';
|
package/dist/features/media-player.player/components/bottom-bar/BottomBarCenterControls.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { IBottomBarStore } from '../../interfaces/IBottomBarStore';
|
|
2
1
|
import { ReactElement } from 'react';
|
|
3
|
-
|
|
4
|
-
bottomBarStore: IBottomBarStore;
|
|
5
|
-
}
|
|
6
|
-
export declare const BottomBarCenterControls: (({ bottomBarStore }: BottomBarCenterControlsProps) => ReactElement) & {
|
|
2
|
+
export declare const BottomBarCenterControls: (() => ReactElement) & {
|
|
7
3
|
displayName: string;
|
|
8
4
|
};
|
|
9
|
-
export {};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { IBottomBarStore } from '../../interfaces/IBottomBarStore';
|
|
2
1
|
import { ReactElement } from 'react';
|
|
3
|
-
|
|
4
|
-
bottomBarStore: IBottomBarStore;
|
|
5
|
-
}
|
|
6
|
-
export declare const BottomBarLeftControls: (({ bottomBarStore }: BottomBarLeftControlsProps) => ReactElement) & {
|
|
2
|
+
export declare const BottomBarLeftControls: (() => ReactElement) & {
|
|
7
3
|
displayName: string;
|
|
8
4
|
};
|
|
9
|
-
export {};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { IBottomBarStore } from '../../interfaces/IBottomBarStore';
|
|
2
1
|
import { MouseEventHandler, ReactElement } from 'react';
|
|
3
2
|
interface BottomBarRightControlsProps {
|
|
4
|
-
bottomBarStore: IBottomBarStore;
|
|
5
3
|
onClickPlayQueueButton?: MouseEventHandler<HTMLButtonElement>;
|
|
6
4
|
}
|
|
7
|
-
export declare const BottomBarRightControls: import('react').MemoExoticComponent<({
|
|
5
|
+
export declare const BottomBarRightControls: import('react').MemoExoticComponent<({ onClickPlayQueueButton }: BottomBarRightControlsProps) => ReactElement>;
|
|
8
6
|
export {};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { IBottomBarStore } from '../../interfaces/IBottomBarStore';
|
|
2
1
|
import { ReactElement } from 'react';
|
|
3
|
-
|
|
4
|
-
bottomBarStore: IBottomBarStore;
|
|
5
|
-
}
|
|
6
|
-
export declare const SeekBar: (({ bottomBarStore }: SeekBarProps) => ReactElement) & {
|
|
2
|
+
export declare const SeekBar: (() => ReactElement) & {
|
|
7
3
|
displayName: string;
|
|
8
4
|
};
|
|
9
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RepeatMode } from '../../media-player.play-queue.abstractions';
|
|
2
1
|
import { IPlayQueueItemStore } from '../../media-player.play-queue.abstractions/interfaces/IPlayQueueItemStore';
|
|
2
|
+
import { RepeatMode } from '../../media-player.play-queue.abstractions/interfaces/RepeatMode';
|
|
3
3
|
import { IPlayerController } from '@aigamo/nostalgic-diva';
|
|
4
4
|
export interface IBottomBarStore {
|
|
5
5
|
readonly controller: IPlayerController;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IObservableStateProvider } from '../../common/interfaces/IObservableStateProvider';
|
|
2
|
-
import { IPlayQueueItemStore
|
|
2
|
+
import { IPlayQueueItemStore } from '../../media-player.play-queue.abstractions/interfaces/IPlayQueueItemStore';
|
|
3
3
|
import { IPlayQueueStore } from '../../media-player.play-queue.abstractions/interfaces/IPlayQueueStore';
|
|
4
|
+
import { RepeatMode } from '../../media-player.play-queue.abstractions/interfaces/RepeatMode';
|
|
4
5
|
import { IBottomBarStore } from '../interfaces/IBottomBarStore';
|
|
5
6
|
import { IPlayerStore } from '../interfaces/IPlayerStore';
|
|
6
7
|
import { IPlayerController } from '@aigamo/nostalgic-diva';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PlaylistStore } from '../stores/PlaylistStore';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
interface PlaylistTableProps {
|
|
4
|
-
|
|
4
|
+
playlist: PlaylistStore;
|
|
5
5
|
}
|
|
6
|
-
export declare const PlaylistTable: (({
|
|
6
|
+
export declare const PlaylistTable: (({ playlist }: PlaylistTableProps) => ReactElement) & {
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { HydrangeanDivaMediaPlayerContractsPlaylistsDtosPlaylistDto } from '../../../api';
|
|
2
1
|
import { PlaylistStore } from '../stores/PlaylistStore';
|
|
3
2
|
import { ReactElement } from 'react';
|
|
4
3
|
interface PlaylistDetailsPageProps {
|
|
5
|
-
playlist:
|
|
6
|
-
playlistStore: PlaylistStore;
|
|
4
|
+
playlist: PlaylistStore;
|
|
7
5
|
}
|
|
8
|
-
export declare const PlaylistDetailsPage: (({ playlist
|
|
6
|
+
export declare const PlaylistDetailsPage: (({ playlist }: PlaylistDetailsPageProps) => ReactElement) & {
|
|
9
7
|
displayName: string;
|
|
10
8
|
};
|
|
11
9
|
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { HydrangeanDivaMediaPlayerContractsPlaylistsDtosTrackDto } from '../../../api';
|
|
2
|
-
import { IObservableStateProvider } from '../../common';
|
|
2
|
+
import { IObservableStateProvider } from '../../common/interfaces/IObservableStateProvider';
|
|
3
3
|
import { PlaylistStore } from './PlaylistStore';
|
|
4
4
|
import { PlayerType } from '@aigamo/nostalgic-diva';
|
|
5
5
|
export declare class PlaylistItemStore {
|
|
6
|
-
private readonly
|
|
6
|
+
private readonly playlist;
|
|
7
7
|
private readonly dto;
|
|
8
8
|
static nextId: number;
|
|
9
9
|
readonly id: number;
|
|
10
10
|
isSelected: boolean;
|
|
11
|
-
constructor(observableStateProvider: IObservableStateProvider,
|
|
11
|
+
constructor(observableStateProvider: IObservableStateProvider, playlist: PlaylistStore, dto: HydrangeanDivaMediaPlayerContractsPlaylistsDtosTrackDto);
|
|
12
12
|
get url(): string;
|
|
13
13
|
get type(): PlayerType;
|
|
14
14
|
get videoId(): string;
|
|
@@ -8,9 +8,9 @@ export declare class PlaylistListStore implements LocationStateStore<PlaylistLis
|
|
|
8
8
|
loading: boolean;
|
|
9
9
|
constructor(observableStateProvider: IObservableStateProvider, mediaPlayerPlaylistsApi: MediaPlayerPlaylistsApi);
|
|
10
10
|
get locationState(): PlaylistListLocationState;
|
|
11
|
-
set locationState(
|
|
12
|
-
validateLocationState(
|
|
11
|
+
set locationState(_value: PlaylistListLocationState);
|
|
12
|
+
validateLocationState(_locationState: any): _locationState is PlaylistListLocationState;
|
|
13
13
|
updateResults(): Promise<void>;
|
|
14
|
-
onLocationStateChange: (
|
|
14
|
+
onLocationStateChange: (_event: StateChangeEvent<PlaylistListLocationState>) => Promise<void>;
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HydrangeanDivaMediaPlayerContractsPlaylistsDtosPlaylistDto, HydrangeanDivaMediaPlayerContractsPlaylistsDtosTrackDto, MediaPlayerPlaylistsApi } from '../../../api';
|
|
2
|
-
import { IObservableStateProvider } from '../../common';
|
|
2
|
+
import { IObservableStateProvider } from '../../common/interfaces/IObservableStateProvider';
|
|
3
3
|
import { IPlayQueueStore } from '../../media-player.play-queue.abstractions/interfaces/IPlayQueueStore';
|
|
4
4
|
import { PlaylistItemStore } from './PlaylistItemStore';
|
|
5
5
|
import { LocationStateStore, StateChangeEvent } from '@aigamo/route-sphere';
|
|
@@ -8,19 +8,19 @@ export declare class PlaylistStore implements LocationStateStore<PlaylistLocatio
|
|
|
8
8
|
private readonly playQueue;
|
|
9
9
|
private readonly observableStateProvider;
|
|
10
10
|
private readonly mediaPlayerPlaylistsApi;
|
|
11
|
-
|
|
11
|
+
readonly dto: HydrangeanDivaMediaPlayerContractsPlaylistsDtosPlaylistDto;
|
|
12
12
|
items: PlaylistItemStore[];
|
|
13
13
|
loading: boolean;
|
|
14
14
|
constructor(playQueue: IPlayQueueStore, observableStateProvider: IObservableStateProvider, mediaPlayerPlaylistsApi: MediaPlayerPlaylistsApi, dto: HydrangeanDivaMediaPlayerContractsPlaylistsDtosPlaylistDto);
|
|
15
15
|
createItem(dto: HydrangeanDivaMediaPlayerContractsPlaylistsDtosTrackDto): PlaylistItemStore;
|
|
16
16
|
get locationState(): PlaylistLocationState;
|
|
17
|
-
set locationState(
|
|
17
|
+
set locationState(_value: PlaylistLocationState);
|
|
18
18
|
get selectedItems(): PlaylistItemStore[];
|
|
19
19
|
get hasSelectedItems(): boolean;
|
|
20
20
|
get selectedItemsOrAllItems(): PlaylistItemStore[];
|
|
21
|
-
validateLocationState(
|
|
21
|
+
validateLocationState(_locationState: any): _locationState is PlaylistLocationState;
|
|
22
22
|
updateResults(): Promise<void>;
|
|
23
|
-
onLocationStateChange: (
|
|
23
|
+
onLocationStateChange: (_event: StateChangeEvent<PlaylistLocationState>) => Promise<void>;
|
|
24
24
|
unselectAll(): void;
|
|
25
25
|
select(items: PlaylistItemStore[]): void;
|
|
26
26
|
play(items: PlaylistItemStore[]): void;
|