js-dos 7.2.0 → 7.2.5

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.
@@ -0,0 +1,4 @@
1
+ export declare const awsRegions: {
2
+ label: string;
3
+ value: string;
4
+ }[];
@@ -0,0 +1 @@
1
+ export declare function getAutoRegion(onLatencyUpdate: (region: string) => void): Promise<string>;
@@ -0,0 +1,3 @@
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;
@@ -2,6 +2,7 @@ import { Props } from "../player-app";
2
2
  interface ControlsProps extends Props {
3
3
  class?: string;
4
4
  column?: boolean;
5
+ portal: boolean;
5
6
  }
6
7
  export declare function Controls(props: ControlsProps): import("preact").VNode<any> | import("preact").VNode<any>[];
7
8
  export {};
@@ -0,0 +1,6 @@
1
+ import { Props } from "../player-app";
2
+ interface RegionProps extends Props {
3
+ class?: string;
4
+ }
5
+ export declare function Region(props: RegionProps): import("preact").VNode<any> | import("preact").VNode<any>[];
6
+ export {};
@@ -3,7 +3,7 @@ export interface Hardware {
3
3
  readConfig(): string;
4
4
  sendMessage(payload: string): void;
5
5
  addKey(key: number, pressed: number, timeMs: number): void;
6
- mouseMove(x: number, y: number, timeMs: number): void;
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
  writeFile(path: string, blob: string): string;
@@ -11,7 +11,7 @@ export declare const Icons: {
11
11
  SwithcHorizontal: (props: {
12
12
  class: string;
13
13
  }) => import("preact").VNode<any> | import("preact").VNode<any>[];
14
- DesktopComputer: (props: {
14
+ EyeOff: (props: {
15
15
  class: string;
16
16
  }) => import("preact").VNode<any> | import("preact").VNode<any>[];
17
17
  Pause: (props: {
@@ -29,10 +29,7 @@ export declare const Icons: {
29
29
  PencilAlt: (props: {
30
30
  class: string;
31
31
  }) => import("preact").VNode<any> | import("preact").VNode<any>[];
32
- Fullscreen: (props: {
33
- class: string;
34
- }) => import("preact").VNode<any> | import("preact").VNode<any>[];
35
- Minimize: (props: {
32
+ ArrowsExpand: (props: {
36
33
  class: string;
37
34
  }) => import("preact").VNode<any> | import("preact").VNode<any>[];
38
35
  ChevronLeft: (props: {
@@ -50,4 +47,19 @@ export declare const Icons: {
50
47
  Upload: (props: {
51
48
  class: string;
52
49
  }) => import("preact").VNode<any> | import("preact").VNode<any>[];
50
+ Plus: (props: {
51
+ class: string;
52
+ }) => import("preact").VNode<any> | import("preact").VNode<any>[];
53
+ CursorClick: (props: {
54
+ class: string;
55
+ }) => import("preact").VNode<any> | import("preact").VNode<any>[];
56
+ Cursor: (props: {
57
+ class: string;
58
+ }) => import("preact").VNode<any> | import("preact").VNode<any>[];
59
+ Refresh: (props: {
60
+ class: string;
61
+ }) => import("preact").VNode<any> | import("preact").VNode<any>[];
62
+ CurrencyDollar: (props: {
63
+ class: string;
64
+ }) => import("preact").VNode<any> | import("preact").VNode<any>[];
53
65
  };
@@ -1,4 +1,3 @@
1
- import "preact/debug";
2
1
  import { ClientId, DosPlayer, DosPlayerOptions } from "./player";
3
2
  export interface Props {
4
3
  player: () => DosPlayer;
@@ -7,9 +6,11 @@ export interface Props {
7
6
  setClientId: (clientId: ClientId | null) => void;
8
7
  requestClientId?: (userGesture: boolean) => Promise<ClientId | null>;
9
8
  mobileControls: boolean;
10
- setMobileControls: (controls: boolean) => void;
9
+ setMobileControls: (controls: boolean) => Promise<void>;
11
10
  mirroredControls: boolean;
12
- setMirroredControls: (mirrored: boolean) => void;
11
+ setMirroredControls: (mirrored: boolean) => Promise<void>;
12
+ autolock: boolean;
13
+ setAutolock: (autolock: boolean) => Promise<void>;
13
14
  keyboard: boolean;
14
15
  toggleKeyboard: () => void;
15
16
  fullscreen: boolean;
@@ -23,9 +24,13 @@ export interface Props {
23
24
  sideBar: boolean;
24
25
  openSideBar: () => void;
25
26
  closeSideBar: () => void;
27
+ region: string | null;
28
+ estimatingRegion: string | null;
29
+ setRegion: (region: string | null) => void;
26
30
  }
27
31
  export declare function PlayerApp(playerProps: {
28
32
  player: () => DosPlayer;
29
33
  options: () => DosPlayerOptions;
34
+ setOnRun: (onRun: () => void) => void;
30
35
  }): import("preact").VNode<any> | import("preact").VNode<any>[];
31
- export declare function createPlayerApp(root: HTMLDivElement, player: DosPlayer, options: DosPlayerOptions): void;
36
+ export declare function createPlayerApp(root: HTMLDivElement, player: DosPlayer, options: DosPlayerOptions, setOnRun: (onRun: () => void) => void): void;
@@ -14,6 +14,8 @@ export interface DosPlayerOptions extends DosOptions {
14
14
  clientId?: ClientIdSupplier;
15
15
  onExit?: () => void;
16
16
  noSideBar?: boolean;
17
+ noFullscreen?: boolean;
18
+ donate?: boolean;
17
19
  }
18
20
  export declare type DosPlayerFactoryType = (root: HTMLDivElement, options?: DosPlayerOptions) => DosPlayer;
19
21
  export declare function DosPlayer(root: HTMLDivElement, options?: DosPlayerOptions): DosPlayer;
@@ -24,7 +24,10 @@
24
24
  let bundleUrl = "https://cdn.dos.zone/original/2X/2/24b00b14f118580763440ecaddcc948f8cb94f14.jsdos"; // digger
25
25
  // bundleUrl = "https://cdn.dos.zone/original/2X/6/6a2bfa87c031c2a11ab212758a5d914f7c112eeb.jsdos"; // dagnerous dave 2
26
26
  // bundleUrl = "https://cdn.dos.zone/original/2X/1/1b063b2520052ebb504184667ac95e72423331de.jsdos"; // lost vikings
27
- // bundleUrl = "bundle.jsdos";
27
+ // bundleUrl = "doom.jsdos";
28
+ // bundleUrl = "wolf.jsdos";
29
+ // bundleUrl = "heroes2.jsdos";
30
+ // bundleUrl = "https://doszone-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/2X/6/60b165c86771eadf24cb2f81aef4656b85d167a6.jsdos";
28
31
  let clientId = null;
29
32
  emulators.pathPrefix = "/dist/";
30
33
  Dos(document.getElementById("jsdos"), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-dos",
3
- "version": "7.2.0",
3
+ "version": "7.2.5",
4
4
  "description": "Easiest API to run dos programs in browser",
5
5
  "main": "dist/js-dos.js",
6
6
  "types": "dist/types/src/player.d.ts",
@@ -21,7 +21,7 @@
21
21
  "dosbox"
22
22
  ],
23
23
  "author": "Alexander Guryanov (aka caiiiycuk)",
24
- "license": "ISC",
24
+ "license": "GPL-2.0",
25
25
  "bugs": {
26
26
  "url": "https://github.com/caiiiycuk/js-dos/issues"
27
27
  },
@@ -49,7 +49,7 @@
49
49
  "core-js": "^3.17.1",
50
50
  "del": "^5.1.0",
51
51
  "emulators": "^0.72.0",
52
- "emulators-ui": "^0.72.1",
52
+ "emulators-ui": "^0.72.5",
53
53
  "eslint": "^7.32.0",
54
54
  "eslint-config-google": "^0.14.0",
55
55
  "gulp": "^4.0.2",
package/yarn-error.log CHANGED
@@ -1,8 +1,8 @@
1
1
  Arguments:
2
- /home/caiiiycuk/sdk/emsdk/node/14.15.5_64bit/bin/node /home/caiiiycuk/.yarn/bin/yarn.js add emulator-ui@latest
2
+ /home/caiiiycuk/sdk/emsdk/node/14.15.5_64bit/bin/node /home/caiiiycuk/.yarn/bin/yarn.js add emulators-ui@latest emulatros@latest --dev
3
3
 
4
4
  PATH:
5
- /home/caiiiycuk/sdk/emsdk:/home/caiiiycuk/sdk/emsdk/upstream/emscripten:/home/caiiiycuk/sdk/emsdk/node/14.15.5_64bit/bin:/home/caiiiycuk/.yarn/bin:/home/caiiiycuk/.config/yarn/global/node_modules/.bin:/home/caiiiycuk/gems/bin:/home/caiiiycuk/.rbenv/shims:/home/caiiiycuk/.rbenv/bin:/home/caiiiycuk/.cargo/bin:/home/caiiiycuk/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/caiiiycuk/.dotnet/tools
5
+ /home/caiiiycuk/sdk/emsdk:/home/caiiiycuk/sdk/emsdk/upstream/emscripten:/home/caiiiycuk/sdk/emsdk/node/14.15.5_64bit/bin:/home/caiiiycuk/.yarn/bin:/home/caiiiycuk/.config/yarn/global/node_modules/.bin:/home/caiiiycuk/gems/bin:/home/caiiiycuk/.rbenv/shims:/home/caiiiycuk/.rbenv/bin:/home/caiiiycuk/.local/bin:/home/caiiiycuk/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/caiiiycuk/.dotnet/tools
6
6
 
7
7
  Yarn version:
8
8
  1.22.15
@@ -14,7 +14,7 @@ Platform:
14
14
  linux x64
15
15
 
16
16
  Trace:
17
- Error: https://registry.yarnpkg.com/emulator-ui: Not found
17
+ Error: https://registry.yarnpkg.com/emulatros: Not found
18
18
  at Request.params.callback [as _callback] (/home/caiiiycuk/.yarn/lib/cli.js:67031:18)
19
19
  at Request.self.callback (/home/caiiiycuk/.yarn/lib/cli.js:140885:22)
20
20
  at Request.emit (events.js:315:20)
@@ -29,7 +29,7 @@ Trace:
29
29
  npm manifest:
30
30
  {
31
31
  "name": "js-dos",
32
- "version": "7.1.19",
32
+ "version": "7.2.2",
33
33
  "description": "Easiest API to run dos programs in browser",
34
34
  "main": "dist/js-dos.js",
35
35
  "types": "dist/types/src/player.d.ts",
@@ -78,7 +78,7 @@ npm manifest:
78
78
  "core-js": "^3.17.1",
79
79
  "del": "^5.1.0",
80
80
  "emulators": "^0.72.0",
81
- "emulators-ui": "^0.71.9",
81
+ "emulators-ui": "^0.72.2",
82
82
  "eslint": "^7.32.0",
83
83
  "eslint-config-google": "^0.14.0",
84
84
  "gulp": "^4.0.2",
@@ -2581,10 +2581,10 @@ Lockfile:
2581
2581
  resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
2582
2582
  integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
2583
2583
 
2584
- emulators-ui@^0.71.9:
2585
- version "0.71.9"
2586
- resolved "https://registry.yarnpkg.com/emulators-ui/-/emulators-ui-0.71.9.tgz#4a82078a93c3a17f9d4c2f7190b6e0f6d17af00e"
2587
- integrity sha512-cpcqaXiOR6R6Ll21HHhTW5vC2DQdfSjtXvoSz/JXsDYTu9ilKTmjpyELOWjcGMK692SwwD13h4CcacafQwz2yQ==
2584
+ emulators-ui@^0.72.2:
2585
+ version "0.72.2"
2586
+ resolved "https://registry.yarnpkg.com/emulators-ui/-/emulators-ui-0.72.2.tgz#4d6b951bc1f4e152348a15094aa137465d3a18c6"
2587
+ integrity sha512-fCCIAwm0Az0EYO+sTK/9wg20GbwsScNWXKur5zeegB5y1M/VEPrvz9kZtvHwGhAtCYbgXz25B9dy8J7ZLLlf2A==
2588
2588
 
2589
2589
  emulators@^0.72.0:
2590
2590
  version "0.72.0"
Binary file
Binary file