js-dos 7.4.9 → 8.1.0
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/.github/workflows/build.yml +51 -0
- package/.gitmodules +4 -0
- package/README.deployment.md +11 -0
- package/README.md +29 -89
- package/index.html +106 -0
- package/package.json +46 -71
- package/postcss.config.cjs +8 -0
- package/src/app.css +14 -0
- package/src/base.css +10 -0
- package/src/components/checkbox.tsx +41 -0
- package/src/components/close-button.tsx +17 -0
- package/src/components/components.css +28 -0
- package/src/components/dos-option-checkbox.tsx +94 -0
- package/src/components/dos-option-select.tsx +108 -0
- package/src/components/dos-option-slider.tsx +35 -0
- package/src/components/error.tsx +16 -0
- package/src/components/loading.tsx +26 -0
- package/src/components/lock.tsx +10 -0
- package/src/components/select.tsx +33 -0
- package/src/components/slider.tsx +69 -0
- package/src/download-file.ts +18 -0
- package/src/frame/account-frame.tsx +156 -0
- package/src/frame/editor/defaults.ts +419 -0
- package/src/frame/editor/editor-conf-frame.tsx +226 -0
- package/src/frame/editor/editor-frame.css +55 -0
- package/src/frame/editor/editor-fs-frame.tsx +314 -0
- package/src/frame/fat-drives-frame.tsx +135 -0
- package/src/frame/frame.css +119 -0
- package/src/frame/frame.tsx +34 -0
- package/src/frame/image-rendering-frame.tsx +8 -0
- package/src/frame/network-frame.tsx +157 -0
- package/src/frame/quick-save-frame.tsx +96 -0
- package/src/frame/settings-frame.tsx +14 -0
- package/src/frame/stats-frame.tsx +87 -0
- package/src/host/bundle-storage.ts +91 -0
- package/src/host/fullscreen.ts +35 -0
- package/src/host/lcache.ts +203 -0
- package/src/host/lstorage.ts +156 -0
- package/src/i18n.ts +179 -0
- package/src/index.css +7 -0
- package/src/load.ts +132 -0
- package/src/login/login.css +9 -0
- package/src/login/login.tsx +77 -0
- package/src/main.tsx +197 -0
- package/src/public/types.ts +41 -0
- package/src/sidebar/account-button.tsx +33 -0
- package/src/sidebar/cloud-save-button.tsx +89 -0
- package/src/sidebar/diskette-icon.tsx +14 -0
- package/src/sidebar/fullscreen-button.tsx +44 -0
- package/src/sidebar/network-button.tsx +39 -0
- package/src/sidebar/sidebar-button.tsx +244 -0
- package/src/sidebar/sidebar.css +47 -0
- package/src/sidebar/sidebar.tsx +30 -0
- package/src/sockdrive/LICENSE +674 -0
- package/src/sockdrive/README.md +45 -0
- package/src/sockdrive/include/sockdrive.h +23 -0
- package/src/sockdrive/js/.eslintrc.json +43 -0
- package/src/sockdrive/js/package.json +29 -0
- package/src/sockdrive/js/src/fatfs/chains.js +318 -0
- package/src/sockdrive/js/src/fatfs/dir.js +385 -0
- package/src/sockdrive/js/src/fatfs/helpers.js +210 -0
- package/src/sockdrive/js/src/fatfs/index.js +606 -0
- package/src/sockdrive/js/src/fatfs/structs.js +255 -0
- package/src/sockdrive/js/src/fatfs/vol.js +166 -0
- package/src/sockdrive/js/src/sockdrive/cache.ts +133 -0
- package/src/sockdrive/js/src/sockdrive/drive.ts +457 -0
- package/src/sockdrive/js/src/sockdrive/lru.ts +221 -0
- package/src/sockdrive/js/src/sockdrive/types.ts +14 -0
- package/src/sockdrive/js/src/sockdrive-fat.d.ts +64 -0
- package/src/sockdrive/js/src/sockdrive-fat.ts +226 -0
- package/src/sockdrive/js/src/sockdrive-native.ts +100 -0
- package/src/sockdrive/js/src/test/test.ts +288 -0
- package/src/sockdrive/js/tsconfig.json +11 -0
- package/src/sockdrive/js/webpack.config.js +68 -0
- package/src/sockdrive/js/yarn.lock +1808 -0
- package/src/store/auth.ts +115 -0
- package/src/store/dos.ts +305 -0
- package/src/store/editor.ts +61 -0
- package/src/store/init.ts +48 -0
- package/src/store/storage.ts +32 -0
- package/src/store/ui.ts +186 -0
- package/src/store.tsx +108 -0
- package/src/ui.tsx +104 -0
- package/src/v8/changes.ts +56 -0
- package/src/v8/config.ts +18 -0
- package/src/v8/subscriptions.ts +62 -0
- package/src/vite-env.d.ts +2 -0
- package/src/window/dos/controls/keyboard.ts +32 -0
- package/src/window/dos/controls/keys.ts +331 -0
- package/src/window/dos/controls/mouse/mount.ts +99 -0
- package/src/window/dos/controls/mouse/mouse-locked.ts +51 -0
- package/src/window/dos/controls/mouse/mouse-not-locked.ts +84 -0
- package/src/window/dos/controls/mouse/mouse-swipe.ts +57 -0
- package/src/window/dos/controls/mouse/pointer.ts +85 -0
- package/src/window/dos/controls/mouse.ts +21 -0
- package/src/window/dos/dos-dhry2.tsx +191 -0
- package/src/window/dos/dos-runtime.tsx +214 -0
- package/src/window/dos/dos-window.tsx +84 -0
- package/src/window/dos/render/canvas.ts +65 -0
- package/src/window/dos/render/resize.ts +31 -0
- package/src/window/dos/render/webgl.ts +173 -0
- package/src/window/dos/sound/audio-node.ts +148 -0
- package/src/window/error-window.tsx +9 -0
- package/src/window/loading-window.tsx +54 -0
- package/src/window/prerun-window.tsx +123 -0
- package/src/window/select-window.tsx +118 -0
- package/src/window/window.css +78 -0
- package/src/window/window.tsx +49 -0
- package/src/ws/ws-sockdrive.ts +101 -0
- package/src/ws/ws-transport-layer.ts +455 -0
- package/tailwind.config.cjs +48 -0
- package/tsconfig.json +32 -0
- package/tsconfig.node.json +9 -0
- package/vite.config.ts +22 -0
- package/LICENSE +0 -339
- package/dist/emulators-ui-loader.png +0 -0
- package/dist/js-dos.css +0 -1690
- package/dist/js-dos.js +0 -17
- package/dist/js-dos.js.map +0 -1
- package/dist/types/src/backend/v7/latency.d.ts +0 -8
- package/dist/types/src/backend/v7/personal.d.ts +0 -2
- package/dist/types/src/backend/v7/v7-config.d.ts +0 -16
- package/dist/types/src/components/action-bar.d.ts +0 -2
- package/dist/types/src/components/action-hide.d.ts +0 -4
- package/dist/types/src/components/action-save-or-exit.d.ts +0 -4
- package/dist/types/src/components/client.d.ts +0 -6
- package/dist/types/src/components/controls.d.ts +0 -8
- package/dist/types/src/components/cpu-control.d.ts +0 -2
- package/dist/types/src/components/horizontal-slider.d.ts +0 -13
- package/dist/types/src/components/region.d.ts +0 -6
- package/dist/types/src/components/scale-control.d.ts +0 -3
- package/dist/types/src/components/sensitivity-control.d.ts +0 -3
- package/dist/types/src/components/sidebar/latency-info.d.ts +0 -7
- package/dist/types/src/components/sidebar/main.d.ts +0 -2
- package/dist/types/src/components/sidebar/networking.d.ts +0 -2
- package/dist/types/src/components/sidebar/token/token-add-time.d.ts +0 -2
- package/dist/types/src/components/sidebar/token/token-select.d.ts +0 -2
- package/dist/types/src/components/sidebar/token/token.d.ts +0 -17
- package/dist/types/src/components/sidebar.d.ts +0 -2
- package/dist/types/src/components/sync-control.d.ts +0 -2
- package/dist/types/src/components/tip.d.ts +0 -2
- package/dist/types/src/components/vertical-slider.d.ts +0 -12
- package/dist/types/src/components/volume-control.d.ts +0 -3
- package/dist/types/src/dom.d.ts +0 -8
- package/dist/types/src/hardware-transport-layer.d.ts +0 -18
- package/dist/types/src/icons.d.ts +0 -95
- package/dist/types/src/player-app.d.ts +0 -50
- package/dist/types/src/player.d.ts +0 -29
- package/dist/types/src/request.d.ts +0 -1
- package/dist/types/src/xhr.d.ts +0 -6
- package/dist/types/v7-services/src/personal.d.ts +0 -3
- package/dist/wdosbox.js +0 -55
- package/dist/wdosbox.js.symbols +0 -3174
- package/dist/wdosbox.wasm +0 -0
- package/examples/digger/index.html +0 -71
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const endpointBase = "https://kdhkdsv558.execute-api.eu-central-1.amazonaws.com/dev";
|
|
2
|
-
export declare const personalPut: string;
|
|
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[];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Props } from "../player-app";
|
|
2
|
-
interface ControlsProps extends Props {
|
|
3
|
-
class?: string;
|
|
4
|
-
column?: boolean;
|
|
5
|
-
portal: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function Controls(props: ControlsProps): import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
8
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
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>[];
|
|
@@ -1,3 +0,0 @@
|
|
|
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>[];
|
|
@@ -1,3 +0,0 @@
|
|
|
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>[];
|
|
@@ -1,7 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Props } from "../../../player-app";
|
|
2
|
-
interface IpxProps {
|
|
3
|
-
arn: string | null;
|
|
4
|
-
setArn: (ipxArn: string | null) => void;
|
|
5
|
-
address: string | null;
|
|
6
|
-
setAddress: (ipxAddress: string | null) => void;
|
|
7
|
-
awaitingAddress: boolean;
|
|
8
|
-
setAwaitingAddress: (waitingIpx: boolean) => void;
|
|
9
|
-
awaitingConnection: boolean;
|
|
10
|
-
setAwaitingConnection: (waitingIpx: boolean) => void;
|
|
11
|
-
}
|
|
12
|
-
export interface TokenProps extends Props {
|
|
13
|
-
ipx: IpxProps;
|
|
14
|
-
update: () => void;
|
|
15
|
-
}
|
|
16
|
-
export declare function TokenConfiguration(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
17
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
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>[];
|
|
@@ -1,3 +0,0 @@
|
|
|
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>[];
|
package/dist/types/src/dom.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const html: (strings: TemplateStringsArray, ...values: any[]) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
2
|
-
export declare const goneClass = "jsdos-player-gone";
|
|
3
|
-
export declare const disabledClass = "jsdos-player-button-disabled";
|
|
4
|
-
export declare const primaryClass = "jsdos-player-button-primary";
|
|
5
|
-
export declare const activeClass = "jsdos-player-button-active";
|
|
6
|
-
export declare function createDiv(className: string | string[], innerHtml?: string): HTMLDivElement;
|
|
7
|
-
export declare function click(el: HTMLElement, callbackFn: (el: HTMLElement) => void): void;
|
|
8
|
-
export declare function downloadFile(data: Uint8Array, fileName: string, mimeType: string): void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TransportLayer } from "emulators/dist/types/protocol/protocol";
|
|
2
|
-
export interface Hardware {
|
|
3
|
-
readConfig(): string;
|
|
4
|
-
sendMessage(payload: string): void;
|
|
5
|
-
addKey(key: number, pressed: number, timeMs: number): void;
|
|
6
|
-
mouseMove(x: number, y: number, relative: boolean, timeMs: number): void;
|
|
7
|
-
mouseButton(button: number, pressed: number, timeMs: number): void;
|
|
8
|
-
getFramePayload(): string;
|
|
9
|
-
createFile(path: string): string;
|
|
10
|
-
appendFile(blob: string): string;
|
|
11
|
-
closeFile(): string;
|
|
12
|
-
}
|
|
13
|
-
export declare class HardwareTransportLayerFactory {
|
|
14
|
-
private serverMessageHandler;
|
|
15
|
-
constructor();
|
|
16
|
-
createTransportLayer(realtime: Hardware): TransportLayer;
|
|
17
|
-
}
|
|
18
|
-
export declare const hardwareTransportLayerFactory: HardwareTransportLayerFactory;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
export declare const Icons: {
|
|
2
|
-
XCircle: (props: {
|
|
3
|
-
class: string;
|
|
4
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
5
|
-
UserCircle: (props: {
|
|
6
|
-
class: string;
|
|
7
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
8
|
-
Mobile: (props: {
|
|
9
|
-
class: string;
|
|
10
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
11
|
-
SwithcHorizontal: (props: {
|
|
12
|
-
class: string;
|
|
13
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
14
|
-
EyeOff: (props: {
|
|
15
|
-
class: string;
|
|
16
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
17
|
-
Pause: (props: {
|
|
18
|
-
class: string;
|
|
19
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
20
|
-
Play: (props: {
|
|
21
|
-
class: string;
|
|
22
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
23
|
-
VolumeUp: (props: {
|
|
24
|
-
class: string;
|
|
25
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
26
|
-
VolumeOff: (props: {
|
|
27
|
-
class: string;
|
|
28
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
29
|
-
PencilAlt: (props: {
|
|
30
|
-
class: string;
|
|
31
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
32
|
-
ArrowsExpand: (props: {
|
|
33
|
-
class: string;
|
|
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>[];
|
|
41
|
-
ChevronLeft: (props: {
|
|
42
|
-
class: string;
|
|
43
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
44
|
-
ChevronRight: (props: {
|
|
45
|
-
class: string;
|
|
46
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
47
|
-
DotsHorizontal: (props: {
|
|
48
|
-
class: string;
|
|
49
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
50
|
-
Download: (props: {
|
|
51
|
-
class: string;
|
|
52
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
53
|
-
Upload: (props: {
|
|
54
|
-
class: string;
|
|
55
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
56
|
-
Plus: (props: {
|
|
57
|
-
class: string;
|
|
58
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
59
|
-
CursorClick: (props: {
|
|
60
|
-
class: string;
|
|
61
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
62
|
-
Cursor: (props: {
|
|
63
|
-
class: string;
|
|
64
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
65
|
-
Refresh: (props: {
|
|
66
|
-
class: string;
|
|
67
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
68
|
-
CurrencyDollar: (props: {
|
|
69
|
-
class: string;
|
|
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>[];
|
|
86
|
-
Online: (props: {
|
|
87
|
-
class: string;
|
|
88
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
89
|
-
Offline: (props: {
|
|
90
|
-
class: string;
|
|
91
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
92
|
-
InformationCircle: (props: {
|
|
93
|
-
class: string;
|
|
94
|
-
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
95
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ClientId, DosPlayer, DosPlayerOptionsWithDefaults } from "./player";
|
|
2
|
-
import { LatencyInfo } from "./backend/v7/latency";
|
|
3
|
-
export declare type SidebarPage = "main" | "latency-info" | "networking";
|
|
4
|
-
export interface Props {
|
|
5
|
-
player: () => DosPlayer;
|
|
6
|
-
options: () => DosPlayerOptionsWithDefaults;
|
|
7
|
-
clientId: ClientId | null;
|
|
8
|
-
setClientId: (clientId: ClientId | null) => void;
|
|
9
|
-
requestClientId?: (userGesture: boolean) => Promise<ClientId | null>;
|
|
10
|
-
anonymousClientId: ClientId;
|
|
11
|
-
networkToken: string | null;
|
|
12
|
-
setNetworkToken: (token: string | null) => void;
|
|
13
|
-
mobileControls: boolean;
|
|
14
|
-
setMobileControls: (controls: boolean) => Promise<void>;
|
|
15
|
-
mirroredControls: boolean;
|
|
16
|
-
setMirroredControls: (mirrored: boolean) => Promise<void>;
|
|
17
|
-
autolock: boolean;
|
|
18
|
-
setAutolock: (autolock: boolean) => Promise<void>;
|
|
19
|
-
keyboard: boolean;
|
|
20
|
-
toggleKeyboard: () => void;
|
|
21
|
-
fullscreen: boolean;
|
|
22
|
-
toggleFullscreen: () => void;
|
|
23
|
-
pause: boolean;
|
|
24
|
-
setPause: (pause: boolean) => void;
|
|
25
|
-
mute: boolean;
|
|
26
|
-
setMute: (mute: boolean) => void;
|
|
27
|
-
actionBar: boolean;
|
|
28
|
-
setActionBar: (actionBar: boolean) => void;
|
|
29
|
-
sideBar: boolean;
|
|
30
|
-
openSideBar: () => void;
|
|
31
|
-
closeSideBar: () => void;
|
|
32
|
-
region: string | null;
|
|
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;
|
|
44
|
-
}
|
|
45
|
-
export declare function PlayerApp(playerProps: {
|
|
46
|
-
player: () => DosPlayer;
|
|
47
|
-
options: () => DosPlayerOptionsWithDefaults;
|
|
48
|
-
setOnRun: (onRun: () => void) => void;
|
|
49
|
-
}): import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
50
|
-
export declare function createPlayerApp(root: HTMLDivElement, player: DosPlayer, options: DosPlayerOptionsWithDefaults, setOnRun: (onRun: () => void) => void): void;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DosInstance, DosOptions } from "emulators-ui/dist/types/js-dos";
|
|
2
|
-
import { Hardware } from "./hardware-transport-layer";
|
|
3
|
-
export interface ClientId {
|
|
4
|
-
namespace: string;
|
|
5
|
-
id: string;
|
|
6
|
-
}
|
|
7
|
-
export declare type ClientIdSupplier = (userGesture: boolean) => Promise<ClientId | null>;
|
|
8
|
-
export interface DosPlayer extends DosInstance {
|
|
9
|
-
bundleUrl: string | null;
|
|
10
|
-
}
|
|
11
|
-
export interface DosPlayerOptions extends DosOptions {
|
|
12
|
-
style?: "default" | "none" | "hidden";
|
|
13
|
-
hardware?: Hardware;
|
|
14
|
-
clientId?: ClientIdSupplier;
|
|
15
|
-
onBeforeExit?: () => Promise<void>;
|
|
16
|
-
onExit?: () => void;
|
|
17
|
-
noSideBar?: boolean;
|
|
18
|
-
noFullscreen?: boolean;
|
|
19
|
-
noSocialLinks?: boolean;
|
|
20
|
-
preventUnload?: boolean;
|
|
21
|
-
withNetworkingApi?: boolean;
|
|
22
|
-
withExperimentalApi?: boolean;
|
|
23
|
-
windowOpen?: (url: string, target: string) => void;
|
|
24
|
-
}
|
|
25
|
-
export interface DosPlayerOptionsWithDefaults extends DosPlayerOptions {
|
|
26
|
-
windowOpen: (url: string, target?: string) => void;
|
|
27
|
-
}
|
|
28
|
-
export declare type DosPlayerFactoryType = (root: HTMLDivElement, options?: DosPlayerOptions) => DosPlayer;
|
|
29
|
-
export declare function DosPlayer(root: HTMLDivElement, optOptions?: DosPlayerOptions): DosPlayer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function request(endpoint: string, method?: string, body?: BodyInit | null): Promise<any>;
|
package/dist/types/src/xhr.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare function send(method: "get" | "post" | "head" | "put", url: string, responseType: XMLHttpRequestResponseType, body?: string | ArrayBuffer, onprogress?: (progress: number) => void, headers?: {
|
|
2
|
-
[name: string]: string;
|
|
3
|
-
}): Promise<string | ArrayBuffer>;
|
|
4
|
-
export declare function postObject(url: string, data?: string | ArrayBuffer): Promise<any>;
|
|
5
|
-
export declare function getObject(url: string): Promise<any>;
|
|
6
|
-
export declare function post(url: string, responseType: XMLHttpRequestResponseType, data?: string | ArrayBuffer): Promise<string | ArrayBuffer>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const uploadsS3Bucket = "doszone-uploads";
|
|
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;
|