@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.
Files changed (38) hide show
  1. package/dist/features/common/stores/ObservableStateProvider.d.ts +1 -1
  2. package/dist/features/media-player.play-queue/components/AddVideoButton.d.ts +2 -2
  3. package/dist/features/media-player.play-queue/components/DeveloperToolsButton.d.ts +2 -2
  4. package/dist/features/media-player.play-queue/components/PlayQueue.d.ts +2 -2
  5. package/dist/features/media-player.play-queue/components/PlayQueueProvider.d.ts +6 -0
  6. package/dist/features/media-player.play-queue/components/PlayQueueTable.d.ts +2 -2
  7. package/dist/features/media-player.play-queue.abstractions/contexts/PlayQueueContext.d.ts +3 -0
  8. package/dist/features/media-player.play-queue.abstractions/contexts/index.d.ts +1 -1
  9. package/dist/features/media-player.player/components/PlayerProvider.d.ts +6 -0
  10. package/dist/features/media-player.player/components/bottom-bar/BottomBarCenterControls.d.ts +1 -6
  11. package/dist/features/media-player.player/components/bottom-bar/BottomBarLeftControls.d.ts +1 -6
  12. package/dist/features/media-player.player/components/bottom-bar/BottomBarProvider.d.ts +6 -0
  13. package/dist/features/media-player.player/components/bottom-bar/BottomBarRightControls.d.ts +1 -3
  14. package/dist/features/media-player.player/components/bottom-bar/SeekBar.d.ts +1 -6
  15. package/dist/features/media-player.player/components/mini-player/MiniPlayerProvider.d.ts +6 -0
  16. package/dist/features/media-player.player/contexts/BottomBarContext.d.ts +3 -0
  17. package/dist/features/media-player.player/contexts/MiniPlayerContext.d.ts +3 -0
  18. package/dist/features/media-player.player/contexts/PlayerContext.d.ts +3 -0
  19. package/dist/features/media-player.player/interfaces/IBottomBarStore.d.ts +1 -1
  20. package/dist/features/media-player.player/stores/BottomBarStore.d.ts +2 -1
  21. package/dist/features/media-player.playlists/components/PlaylistTable.d.ts +2 -2
  22. package/dist/features/media-player.playlists/pages/PlaylistDetailsPage.d.ts +2 -4
  23. package/dist/features/media-player.playlists/stores/PlaylistItemStore.d.ts +3 -3
  24. package/dist/features/media-player.playlists/stores/PlaylistListStore.d.ts +3 -3
  25. package/dist/features/media-player.playlists/stores/PlaylistStore.d.ts +5 -5
  26. package/dist/index.cjs.js +8 -8
  27. package/dist/index.cjs.js.map +1 -1
  28. package/dist/index.es.js +1109 -1140
  29. package/dist/index.es.js.map +1 -1
  30. package/package.json +7 -7
  31. package/dist/features/media-player.play-queue/components/PlayQueueStoreProvider.d.ts +0 -6
  32. package/dist/features/media-player.play-queue.abstractions/contexts/PlayQueueStoreContext.d.ts +0 -3
  33. package/dist/features/media-player.player/components/PlayerStoreProvider.d.ts +0 -6
  34. package/dist/features/media-player.player/components/bottom-bar/BottomBarStoreProvider.d.ts +0 -6
  35. package/dist/features/media-player.player/components/mini-player/MiniPlayerStoreProvider.d.ts +0 -6
  36. package/dist/features/media-player.player/contexts/BottomBarStoreContext.d.ts +0 -3
  37. package/dist/features/media-player.player/contexts/MiniPlayerStoreContext.d.ts +0 -3
  38. 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, annotations?: AnnotationsMap<T, AdditionalKeys>): 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 { default as React, ReactElement } from 'react';
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: React.MemoExoticComponent<({ onSave }: AddVideoButtonProps) => ReactElement>;
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
- playQueueStore: PlayQueueStore;
4
+ playQueue: PlayQueueStore;
5
5
  }
6
- export declare const DeveloperToolsButton: (({ playQueueStore }: DeveloperToolsButtonProps) => ReactElement) & {
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
- playQueueStore: IPlayQueueStore;
4
+ playQueue: IPlayQueueStore;
5
5
  }
6
- export declare const PlayQueue: (({ playQueueStore }: PlayQueueProps) => ReactElement) & {
6
+ export declare const PlayQueue: (({ playQueue }: PlayQueueProps) => ReactElement) & {
7
7
  displayName: string;
8
8
  };
9
9
  export {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ interface PlayQueueProviderProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const PlayQueueProvider: ({ children, }: PlayQueueProviderProps) => ReactElement;
6
+ 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
- playQueueStore: IPlayQueueStore;
4
+ playQueue: IPlayQueueStore;
5
5
  }
6
- export declare const PlayQueueTable: (({ playQueueStore }: PlayQueueTableProps) => ReactElement) & {
6
+ export declare const PlayQueueTable: (({ playQueue }: PlayQueueTableProps) => ReactElement) & {
7
7
  displayName: string;
8
8
  };
9
9
  export {};
@@ -0,0 +1,3 @@
1
+ import { IPlayQueueStore } from '../interfaces/IPlayQueueStore';
2
+ export declare const PlayQueueContext: import('react').Context<IPlayQueueStore>;
3
+ export declare const usePlayQueue: () => IPlayQueueStore;
@@ -1 +1 @@
1
- export * from './PlayQueueStoreContext';
1
+ export * from './PlayQueueContext';
@@ -0,0 +1,6 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ interface PlayerProviderProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const PlayerProvider: ({ children, }: PlayerProviderProps) => ReactElement;
6
+ export {};
@@ -1,9 +1,4 @@
1
- import { IBottomBarStore } from '../../interfaces/IBottomBarStore';
2
1
  import { ReactElement } from 'react';
3
- interface BottomBarCenterControlsProps {
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
- interface BottomBarLeftControlsProps {
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 {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ interface BottomBarProviderProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const BottomBarProvider: ({ children, }: BottomBarProviderProps) => ReactElement;
6
+ 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<({ bottomBarStore, onClickPlayQueueButton, }: BottomBarRightControlsProps) => ReactElement>;
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
- interface SeekBarProps {
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 {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ interface MiniPlayerProviderProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const MiniPlayerProvider: ({ children, }: MiniPlayerProviderProps) => ReactElement;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import { IBottomBarStore } from '../interfaces/IBottomBarStore';
2
+ export declare const BottomBarContext: import('react').Context<IBottomBarStore>;
3
+ export declare const useBottomBar: () => IBottomBarStore;
@@ -0,0 +1,3 @@
1
+ import { IMiniPlayerStore } from '../interfaces/IMiniPlayerStore';
2
+ export declare const MiniPlayerContext: import('react').Context<IMiniPlayerStore>;
3
+ export declare const useMiniPlayer: () => IMiniPlayerStore;
@@ -0,0 +1,3 @@
1
+ import { IPlayerStore } from '../interfaces/IPlayerStore';
2
+ export declare const PlayerContext: import('react').Context<IPlayerStore>;
3
+ export declare const usePlayer: () => IPlayerStore;
@@ -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, RepeatMode } from '../../media-player.play-queue.abstractions';
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
- playlistStore: PlaylistStore;
4
+ playlist: PlaylistStore;
5
5
  }
6
- export declare const PlaylistTable: (({ playlistStore }: PlaylistTableProps) => ReactElement) & {
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: HydrangeanDivaMediaPlayerContractsPlaylistsDtosPlaylistDto;
6
- playlistStore: PlaylistStore;
4
+ playlist: PlaylistStore;
7
5
  }
8
- export declare const PlaylistDetailsPage: (({ playlist, playlistStore }: PlaylistDetailsPageProps) => ReactElement) & {
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 playlistStore;
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, playlistStore: PlaylistStore, dto: HydrangeanDivaMediaPlayerContractsPlaylistsDtosTrackDto);
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(value: PlaylistListLocationState);
12
- validateLocationState(locationState: any): locationState is PlaylistListLocationState;
11
+ set locationState(_value: PlaylistListLocationState);
12
+ validateLocationState(_locationState: any): _locationState is PlaylistListLocationState;
13
13
  updateResults(): Promise<void>;
14
- onLocationStateChange: (event: StateChangeEvent<PlaylistListLocationState>) => Promise<void>;
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
- private readonly dto;
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(value: PlaylistLocationState);
17
+ set locationState(_value: PlaylistLocationState);
18
18
  get selectedItems(): PlaylistItemStore[];
19
19
  get hasSelectedItems(): boolean;
20
20
  get selectedItemsOrAllItems(): PlaylistItemStore[];
21
- validateLocationState(locationState: any): locationState is PlaylistLocationState;
21
+ validateLocationState(_locationState: any): _locationState is PlaylistLocationState;
22
22
  updateResults(): Promise<void>;
23
- onLocationStateChange: (event: StateChangeEvent<PlaylistLocationState>) => Promise<void>;
23
+ onLocationStateChange: (_event: StateChangeEvent<PlaylistLocationState>) => Promise<void>;
24
24
  unselectAll(): void;
25
25
  select(items: PlaylistItemStore[]): void;
26
26
  play(items: PlaylistItemStore[]): void;