@workadventure/iframe-api-typings 1.18.0 → 1.18.2
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/iframe_api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * from "./play/src/iframe_api";
|
package/package.json
CHANGED
|
@@ -24,13 +24,13 @@ export declare class WorkadventureChatCommands extends IframeApiContribution<Wor
|
|
|
24
24
|
*/
|
|
25
25
|
close(): void;
|
|
26
26
|
/**
|
|
27
|
-
* Sends a message in the chat.
|
|
27
|
+
* Sends a message in the chat.
|
|
28
28
|
* {@link https://docs.workadventu.re/developer/map-scripting/references/api-chat#sending-a-message-in-the-chat | Website documentation}
|
|
29
|
-
*
|
|
29
|
+
*
|
|
30
30
|
* @param {string} message Message to be displayed in the chat
|
|
31
|
-
* @param {string|undefined}
|
|
31
|
+
* @param {SendChatMessageOptions|string|undefined} options Decides if the message is sent only to the local users or to all users in the bubble. In undefined, the message is sent to the local user only. If the message is sent locally, you can decide an "author" name to be displayed in the chat. It does not have to be a real user. If a string is passed instead of an object, it will be used as the Name displayed for the author of the message (and the message type will automatically by "local"). Using a string instead of an object is deprecated.
|
|
32
32
|
*/
|
|
33
|
-
sendChatMessage(message: string,
|
|
33
|
+
sendChatMessage(message: string, options?: string | SendChatMessageOptions): void;
|
|
34
34
|
/**
|
|
35
35
|
* Simulates a user is currently typing a message in the chat.
|
|
36
36
|
*
|
package/play/src/iframe_api.d.ts
CHANGED
|
@@ -4,9 +4,11 @@ import type { Popup } from "./front/Api/Iframe/Ui/Popup";
|
|
|
4
4
|
import type { Sound } from "./front/Api/Iframe/Sound/Sound";
|
|
5
5
|
export type { CreateUIWebsiteEvent, ModifyUIWebsiteEvent, UIWebsiteEvent, UIWebsiteCSSValue, UIWebsiteMargin, UIWebsitePosition, UIWebsiteSize, ViewportPositionHorizontal, ViewportPositionVertical, } from "./front/Api/Events/Ui/UIWebsiteEvent";
|
|
6
6
|
export type { CreateEmbeddedWebsiteEvent, ModifyEmbeddedWebsiteEvent, Rectangle, } from "./front/Api/Events/EmbeddedWebsiteEvent";
|
|
7
|
+
export type { HasPlayerMovedEvent } from "./front/Api/Events/HasPlayerMovedEvent";
|
|
7
8
|
export type { UIWebsite } from "./front/Api/Iframe/Ui/UIWebsite";
|
|
8
9
|
export type { Menu } from "./front/Api/Iframe/Ui/Menu";
|
|
9
10
|
export type { ActionMessage } from "./front/Api/Iframe/Ui/ActionMessage";
|
|
11
|
+
export type { Position } from "./front/Api/Iframe/player";
|
|
10
12
|
export type { EmbeddedWebsite } from "./front/Api/Iframe/Room/EmbeddedWebsite";
|
|
11
13
|
export type { Area } from "./front/Api/Iframe/Area/Area";
|
|
12
14
|
export type { ActionsMenuAction } from "./front/Api/Iframe/ui";
|