js-dos 7.4.3 → 7.4.7

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
1
  import { Props } from "../player-app";
2
- export declare function ActionHide(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];
2
+ export declare function ActionHide(props: Props & {
3
+ class: string;
4
+ }): import("preact").VNode<any> | import("preact").VNode<any>[];
@@ -1,2 +1,4 @@
1
1
  import { Props } from "../player-app";
2
- export declare function ActionSaveOrExit(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];
2
+ export declare function ActionSaveOrExit(props: Props & {
3
+ class: string;
4
+ }): import("preact").VNode<any> | import("preact").VNode<any>[];
@@ -0,0 +1,2 @@
1
+ import { Props } from "../player-app";
2
+ export declare function SideBarCpuControl(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];
@@ -0,0 +1,13 @@
1
+ import { JSX } from "preact";
2
+ export interface HorizontalSliderProps {
3
+ class?: string;
4
+ minValue: number;
5
+ maxValue: number;
6
+ maxLabel?: string;
7
+ initialValue: number;
8
+ onChange: (value: number) => void;
9
+ icon: JSX.Element;
10
+ registerListner: (fn: (value: number) => void) => void;
11
+ removeListener: (fn: (value: number) => void) => void;
12
+ }
13
+ export declare function HorizontalSlider(props: HorizontalSliderProps): import("preact").VNode<any> | import("preact").VNode<any>[];
@@ -0,0 +1,3 @@
1
+ import { Props } from "../player-app";
2
+ export declare function ActionBarScaleControl(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];
3
+ export declare function SideBarScaleControl(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];
@@ -0,0 +1,3 @@
1
+ import { Props } from "../player-app";
2
+ export declare function ActionBarSensitivityControl(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];
3
+ export declare function SideBarSensitivityControl(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];
@@ -0,0 +1,2 @@
1
+ import { Props } from "../player-app";
2
+ export declare function SyncMouseControl(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];
@@ -0,0 +1,12 @@
1
+ import { JSX } from "preact";
2
+ export interface VerticalSliderProps {
3
+ class?: string;
4
+ minValue: number;
5
+ maxValue: number;
6
+ initialValue: number;
7
+ onChange: (value: number) => void;
8
+ icon: JSX.Element;
9
+ registerListner: (fn: (value: number) => void) => void;
10
+ removeListener: (fn: (value: number) => void) => void;
11
+ }
12
+ export declare function VerticalSlider(props: VerticalSliderProps): import("preact").VNode<any> | import("preact").VNode<any>[];
@@ -0,0 +1,3 @@
1
+ import { Props } from "../player-app";
2
+ export declare function ActionBarVolumeControl(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];
3
+ export declare function SideBarVolumeControl(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];
@@ -1,9 +1,9 @@
1
- import { ClientId, DosPlayer, DosPlayerOptions } from "./player";
1
+ import { ClientId, DosPlayer, DosPlayerOptionsWithDefaults } from "./player";
2
2
  import { LatencyInfo } from "./backend/v7/latency";
3
3
  export declare type SidebarPage = "main" | "latency-info" | "networking";
4
4
  export interface Props {
5
5
  player: () => DosPlayer;
6
- options: () => DosPlayerOptions;
6
+ options: () => DosPlayerOptionsWithDefaults;
7
7
  clientId: ClientId | null;
8
8
  setClientId: (clientId: ClientId | null) => void;
9
9
  requestClientId?: (userGesture: boolean) => Promise<ClientId | null>;
@@ -44,7 +44,7 @@ export interface Props {
44
44
  }
45
45
  export declare function PlayerApp(playerProps: {
46
46
  player: () => DosPlayer;
47
- options: () => DosPlayerOptions;
47
+ options: () => DosPlayerOptionsWithDefaults;
48
48
  setOnRun: (onRun: () => void) => void;
49
49
  }): import("preact").VNode<any> | import("preact").VNode<any>[];
50
- export declare function createPlayerApp(root: HTMLDivElement, player: DosPlayer, options: DosPlayerOptions, setOnRun: (onRun: () => void) => void): void;
50
+ export declare function createPlayerApp(root: HTMLDivElement, player: DosPlayer, options: DosPlayerOptionsWithDefaults, setOnRun: (onRun: () => void) => void): void;
@@ -9,7 +9,7 @@ export interface DosPlayer extends DosInstance {
9
9
  bundleUrl: string | null;
10
10
  }
11
11
  export interface DosPlayerOptions extends DosOptions {
12
- style?: "default" | "none";
12
+ style?: "default" | "none" | "hidden";
13
13
  hardware?: Hardware;
14
14
  clientId?: ClientIdSupplier;
15
15
  onBeforeExit?: () => Promise<void>;
@@ -20,6 +20,10 @@ export interface DosPlayerOptions extends DosOptions {
20
20
  preventUnload?: boolean;
21
21
  withNetworkingApi?: boolean;
22
22
  withExperimentalApi?: boolean;
23
+ windowOpen?: (url: string, target: string) => void;
24
+ }
25
+ export interface DosPlayerOptionsWithDefaults extends DosPlayerOptions {
26
+ windowOpen: (url: string, target?: string) => void;
23
27
  }
24
28
  export declare type DosPlayerFactoryType = (root: HTMLDivElement, options?: DosPlayerOptions) => DosPlayer;
25
- export declare function DosPlayer(root: HTMLDivElement, options?: DosPlayerOptions): DosPlayer;
29
+ export declare function DosPlayer(root: HTMLDivElement, optOptions?: DosPlayerOptions): DosPlayer;
@@ -1,3 +1,3 @@
1
1
  export declare const uploadsS3Bucket = "doszone-uploads";
2
- export declare function getPersonalBundleKey(namespace: string, id: string, bundleUrl: string): string;
3
- export declare function getPersonalBundleUrl(namespace: string, id: string, bundleUrl: string): string;
2
+ export declare function getPersonalBundleKey(namespace: string, id: string, bundleUrl: string, publishToken: string | undefined): string;
3
+ export declare function getPersonalBundleUrl(namespace: string, id: string, bundleUrl: string, publishToken: string | undefined): string;