js-dos 7.2.0 → 7.2.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.
@@ -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 {};
@@ -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,7 @@ 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
53
  };
@@ -7,9 +7,9 @@ export interface Props {
7
7
  setClientId: (clientId: ClientId | null) => void;
8
8
  requestClientId?: (userGesture: boolean) => Promise<ClientId | null>;
9
9
  mobileControls: boolean;
10
- setMobileControls: (controls: boolean) => void;
10
+ setMobileControls: (controls: boolean) => Promise<void>;
11
11
  mirroredControls: boolean;
12
- setMirroredControls: (mirrored: boolean) => void;
12
+ setMirroredControls: (mirrored: boolean) => Promise<void>;
13
13
  keyboard: boolean;
14
14
  toggleKeyboard: () => void;
15
15
  fullscreen: boolean;
@@ -14,6 +14,7 @@ export interface DosPlayerOptions extends DosOptions {
14
14
  clientId?: ClientIdSupplier;
15
15
  onExit?: () => void;
16
16
  noSideBar?: boolean;
17
+ noFullscreen?: boolean;
17
18
  }
18
19
  export declare type DosPlayerFactoryType = (root: HTMLDivElement, options?: DosPlayerOptions) => DosPlayer;
19
20
  export declare function DosPlayer(root: HTMLDivElement, options?: DosPlayerOptions): DosPlayer;
@@ -24,7 +24,7 @@
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 = "bundle.jsdos";
28
28
  let clientId = null;
29
29
  emulators.pathPrefix = "/dist/";
30
30
  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.1",
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",
@@ -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.2",
53
53
  "eslint": "^7.32.0",
54
54
  "eslint-config-google": "^0.14.0",
55
55
  "gulp": "^4.0.2",