@workadventure/iframe-api-typings 1.11.1 → 1.11.4
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/Api/iframe/Area/Area.d.ts +3 -3
- package/Api/iframe/ui.d.ts +2 -2
- package/iframe_api.d.ts +7 -1
- package/package.json +1 -1
|
@@ -11,12 +11,12 @@ export declare class Area implements IArea {
|
|
|
11
11
|
private _height;
|
|
12
12
|
constructor(config: CreateAreaEvent);
|
|
13
13
|
setProperty(propertyName: string, propertyValue: string | number | boolean | undefined): void;
|
|
14
|
+
get x(): number;
|
|
14
15
|
set x(x: number);
|
|
15
16
|
set y(y: number);
|
|
16
|
-
set width(width: number);
|
|
17
|
-
set height(height: number);
|
|
18
|
-
get x(): number;
|
|
19
17
|
get y(): number;
|
|
18
|
+
set width(width: number);
|
|
20
19
|
get width(): number;
|
|
20
|
+
set height(height: number);
|
|
21
21
|
get height(): number;
|
|
22
22
|
}
|
package/Api/iframe/ui.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare class RemotePlayer {
|
|
|
24
24
|
readonly name: string;
|
|
25
25
|
private actions;
|
|
26
26
|
constructor(remotePlayer: RemotePlayerClickedEvent);
|
|
27
|
-
addAction(key: string, callback:
|
|
27
|
+
addAction(key: string, callback: () => void): ActionsMenuAction;
|
|
28
28
|
callAction(key: string): void;
|
|
29
29
|
removeAction(key: string): void;
|
|
30
30
|
}
|
|
@@ -32,7 +32,7 @@ export declare class ActionsMenuAction {
|
|
|
32
32
|
private remotePlayer;
|
|
33
33
|
private key;
|
|
34
34
|
private callback;
|
|
35
|
-
constructor(remotePlayer: RemotePlayer, key: string, callback:
|
|
35
|
+
constructor(remotePlayer: RemotePlayer, key: string, callback: () => void);
|
|
36
36
|
call(): void;
|
|
37
37
|
remove(): void;
|
|
38
38
|
}
|
package/iframe_api.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import { CoWebsite } from "./Api/iframe/nav";
|
|
|
2
2
|
import type { ButtonDescriptor } from "./Api/iframe/Ui/ButtonDescriptor";
|
|
3
3
|
import type { Popup } from "./Api/iframe/Ui/Popup";
|
|
4
4
|
import type { Sound } from "./Api/iframe/Sound/Sound";
|
|
5
|
+
export type { UIWebsite } from "./Api/iframe/Ui/UIWebsite";
|
|
6
|
+
export type { Menu } from "./Api/iframe/Ui/Menu";
|
|
7
|
+
export type { ActionMessage } from "./Api/iframe/Ui/ActionMessage";
|
|
8
|
+
export type { EmbeddedWebsite } from "./Api/iframe/Room/EmbeddedWebsite";
|
|
9
|
+
export type { Area } from "./Api/iframe/Area/Area";
|
|
10
|
+
export type { RemotePlayer, ActionsMenuAction } from "./Api/iframe/ui";
|
|
5
11
|
declare const wa: {
|
|
6
12
|
ui: import("./Api/iframe/ui").WorkAdventureUiCommands;
|
|
7
13
|
nav: import("./Api/iframe/nav").WorkadventureNavigationCommands;
|
|
@@ -77,10 +83,10 @@ declare const wa: {
|
|
|
77
83
|
onLeaveZone(name: string, callback: () => void): void;
|
|
78
84
|
};
|
|
79
85
|
export declare type WorkAdventureApi = typeof wa;
|
|
86
|
+
export type { Sound, Popup, ButtonDescriptor, CoWebsite };
|
|
80
87
|
declare global {
|
|
81
88
|
interface Window {
|
|
82
89
|
WA: WorkAdventureApi;
|
|
83
90
|
}
|
|
84
91
|
let WA: WorkAdventureApi;
|
|
85
92
|
}
|
|
86
|
-
export {};
|