js-dos 7.4.4 → 7.4.6
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/js-dos.js +2 -2
- package/dist/js-dos.js.map +1 -1
- package/dist/types/src/player-app.d.ts +4 -4
- package/dist/types/src/player.d.ts +5 -1
- package/dist/types/v7-services/src/personal.d.ts +2 -2
- package/dist/wdosbox.js +1 -1
- package/dist/wdosbox.js.symbols +3062 -3020
- package/dist/wdosbox.shared.js +1 -1
- package/dist/wdosbox.shared.js.symbols +3160 -3119
- package/dist/wdosbox.shared.wasm +0 -0
- package/dist/wdosbox.wasm +0 -0
- package/package.json +13 -13
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ClientId, DosPlayer,
|
|
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: () =>
|
|
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: () =>
|
|
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:
|
|
50
|
+
export declare function createPlayerApp(root: HTMLDivElement, player: DosPlayer, options: DosPlayerOptionsWithDefaults, setOnRun: (onRun: () => void) => void): 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,
|
|
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;
|