js-dos 7.2.5 → 7.3.1
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 +77 -15
- package/dist/js-dos.css +249 -14
- package/dist/js-dos.js +2 -2
- package/dist/js-dos.js.map +1 -1
- package/dist/types/src/backend/v7/latency.d.ts +8 -0
- package/dist/types/src/backend/v7/v7-config.d.ts +13 -0
- package/dist/types/src/components/action-save-or-exit.d.ts +2 -0
- package/dist/types/src/components/sidebar/latency-info.d.ts +7 -0
- package/dist/types/src/components/sidebar/main.d.ts +2 -0
- package/dist/types/src/components/sidebar/networking.d.ts +2 -0
- package/dist/types/src/components/sidebar/token/token-add-time.d.ts +2 -0
- package/dist/types/src/components/sidebar/token/token-select.d.ts +2 -0
- package/dist/types/src/components/sidebar/token/token.d.ts +15 -0
- package/dist/types/src/components/tip.d.ts +2 -0
- package/dist/types/src/hardware-transport-layer.d.ts +3 -1
- package/dist/types/src/icons.d.ts +21 -0
- package/dist/types/src/player-app.d.ts +15 -1
- package/dist/types/src/player.d.ts +2 -1
- package/dist/types/src/request.d.ts +1 -0
- package/dist/types/src/xhr.d.ts +1 -0
- package/dist/types/{sls → v7-services}/src/personal.d.ts +0 -0
- package/dist/wdosbox.js +2 -2
- package/dist/wdosbox.js.symbols +3125 -3068
- package/dist/wdosbox.wasm +0 -0
- package/examples/digger/index.html +10 -8
- package/package.json +6 -3
- package/.github/workflows/codeql-analysis.yml +0 -70
- package/.github/workflows/yarn-gulp.yml +0 -30
- package/dist/types/src/backend/jj/jj-config.d.ts +0 -4
- package/dist/types/src/backend/jj/latency.d.ts +0 -1
- package/dist/types/src/components/action-exit.d.ts +0 -2
- package/yarn-error.log +0 -6344
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
export declare const endpointBase = "https://kdhkdsv558.execute-api.eu-central-1.amazonaws.com/dev";
|
|
2
2
|
export declare const personalPut: string;
|
|
3
3
|
export declare const personalAcl: string;
|
|
4
|
+
export declare const createTokenEndpoint: string;
|
|
5
|
+
export declare const tokeInfoGetEndpoint: string;
|
|
6
|
+
export declare const addFreeTimeTierEndpoint: string;
|
|
7
|
+
export declare const startIpx: string;
|
|
8
|
+
export declare const stopIpx: string;
|
|
9
|
+
export declare const checkoutCreateTokenEndpoint: string;
|
|
10
|
+
export declare const checkoutEndpoint = "https://js-dos.com/checkout/index.html";
|
|
11
|
+
export interface AwsRegion {
|
|
12
|
+
label: string;
|
|
13
|
+
name: string;
|
|
14
|
+
ok: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const awsRegions: AwsRegion[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Props } from "../../player-app";
|
|
2
|
+
interface LatencyInfoProps extends Props {
|
|
3
|
+
class?: string;
|
|
4
|
+
asButton?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function LatencyInfo(props: LatencyInfoProps): import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Props } from "../../../player-app";
|
|
2
|
+
interface IpxProps {
|
|
3
|
+
ipxArn: string | null;
|
|
4
|
+
setIpxArn: (ipxArn: string | null) => void;
|
|
5
|
+
ipxAddress: string | null;
|
|
6
|
+
setIpxAddress: (ipxAddress: string | null) => void;
|
|
7
|
+
awaitingIpxAddress: boolean;
|
|
8
|
+
setAwaitingIpxAddress: (waitingIpx: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface TokenProps extends Props {
|
|
11
|
+
ipx: IpxProps;
|
|
12
|
+
update: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function TokenConfiguration(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
15
|
+
export {};
|
|
@@ -6,7 +6,9 @@ export interface Hardware {
|
|
|
6
6
|
mouseMove(x: number, y: number, relative: boolean, timeMs: number): void;
|
|
7
7
|
mouseButton(button: number, pressed: number, timeMs: number): void;
|
|
8
8
|
getFramePayload(): string;
|
|
9
|
-
|
|
9
|
+
createFile(path: string): string;
|
|
10
|
+
appendFile(blob: string): string;
|
|
11
|
+
closeFile(): string;
|
|
10
12
|
}
|
|
11
13
|
export declare class HardwareTransportLayerFactory {
|
|
12
14
|
private serverMessageHandler;
|
|
@@ -32,6 +32,12 @@ export declare const Icons: {
|
|
|
32
32
|
ArrowsExpand: (props: {
|
|
33
33
|
class: string;
|
|
34
34
|
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
35
|
+
ArrowsCircleLeft: (props: {
|
|
36
|
+
class: string;
|
|
37
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
38
|
+
ArrowsCircleRight: (props: {
|
|
39
|
+
class: string;
|
|
40
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
35
41
|
ChevronLeft: (props: {
|
|
36
42
|
class: string;
|
|
37
43
|
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
@@ -62,4 +68,19 @@ export declare const Icons: {
|
|
|
62
68
|
CurrencyDollar: (props: {
|
|
63
69
|
class: string;
|
|
64
70
|
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
71
|
+
QuestionMarkCircle: (props: {
|
|
72
|
+
class: string;
|
|
73
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
74
|
+
Discord: (props: {
|
|
75
|
+
class: string;
|
|
76
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
77
|
+
Telegram: (props: {
|
|
78
|
+
class: string;
|
|
79
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
80
|
+
Twitter: (props: {
|
|
81
|
+
class: string;
|
|
82
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
83
|
+
FloppyDisk: (props: {
|
|
84
|
+
class: string;
|
|
85
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
65
86
|
};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { ClientId, DosPlayer, DosPlayerOptions } from "./player";
|
|
2
|
+
import { LatencyInfo } from "./backend/v7/latency";
|
|
3
|
+
export declare type SidebarPage = "main" | "latency-info" | "networking";
|
|
2
4
|
export interface Props {
|
|
3
5
|
player: () => DosPlayer;
|
|
4
6
|
options: () => DosPlayerOptions;
|
|
5
7
|
clientId: ClientId | null;
|
|
6
8
|
setClientId: (clientId: ClientId | null) => void;
|
|
7
9
|
requestClientId?: (userGesture: boolean) => Promise<ClientId | null>;
|
|
10
|
+
anonymousClientId: ClientId;
|
|
11
|
+
networkToken: string | null;
|
|
12
|
+
setNetworkToken: (token: string | null) => void;
|
|
8
13
|
mobileControls: boolean;
|
|
9
14
|
setMobileControls: (controls: boolean) => Promise<void>;
|
|
10
15
|
mirroredControls: boolean;
|
|
@@ -25,8 +30,17 @@ export interface Props {
|
|
|
25
30
|
openSideBar: () => void;
|
|
26
31
|
closeSideBar: () => void;
|
|
27
32
|
region: string | null;
|
|
28
|
-
estimatingRegion: string | null;
|
|
29
33
|
setRegion: (region: string | null) => void;
|
|
34
|
+
estimatingRegion: string | null;
|
|
35
|
+
setEstimatingRegion: (region: string | null) => void;
|
|
36
|
+
latencyInfo: LatencyInfo | null;
|
|
37
|
+
setLatencyInfo: (latencyInfo: LatencyInfo) => void;
|
|
38
|
+
showTips: boolean;
|
|
39
|
+
setShowTips: (showTips: boolean) => void;
|
|
40
|
+
sideBarPage: SidebarPage;
|
|
41
|
+
setSideBarPage: (page: SidebarPage) => void;
|
|
42
|
+
ipxConnected: boolean;
|
|
43
|
+
setIpxConnected: (ipxConnected: boolean) => void;
|
|
30
44
|
}
|
|
31
45
|
export declare function PlayerApp(playerProps: {
|
|
32
46
|
player: () => DosPlayer;
|
|
@@ -15,7 +15,8 @@ export interface DosPlayerOptions extends DosOptions {
|
|
|
15
15
|
onExit?: () => void;
|
|
16
16
|
noSideBar?: boolean;
|
|
17
17
|
noFullscreen?: boolean;
|
|
18
|
-
|
|
18
|
+
noSocialLinks?: boolean;
|
|
19
|
+
withExperimentalApi?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export declare type DosPlayerFactoryType = (root: HTMLDivElement, options?: DosPlayerOptions) => DosPlayer;
|
|
21
22
|
export declare function DosPlayer(root: HTMLDivElement, options?: DosPlayerOptions): DosPlayer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function request(endpoint: string, method?: string, body?: BodyInit | null): Promise<any>;
|
package/dist/types/src/xhr.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export declare function send(method: "get" | "post" | "head" | "put", url: strin
|
|
|
2
2
|
[name: string]: string;
|
|
3
3
|
}): Promise<string | ArrayBuffer>;
|
|
4
4
|
export declare function postObject(url: string, data?: string | ArrayBuffer): Promise<any>;
|
|
5
|
+
export declare function getObject(url: string): Promise<any>;
|
|
5
6
|
export declare function post(url: string, responseType: XMLHttpRequestResponseType, data?: string | ArrayBuffer): Promise<string | ArrayBuffer>;
|
|
File without changes
|