New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@workadventure/iframe-api-typings

Package Overview
Dependencies
Maintainers
2
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workadventure/iframe-api-typings - npm Package Compare versions

Comparing version

to
1.17.7

4

front/Api/Iframe/chat.d.ts

@@ -0,1 +1,2 @@

import { Subscription } from "rxjs";
import { IframeApiContribution } from "./IframeApiContribution";

@@ -32,6 +33,7 @@ export declare class WorkadventureChatCommands extends IframeApiContribution<WorkadventureChatCommands> {

* @param {function(string): void} callback Function that will be called when a message is received. It contains the message typed by the user
* @return {Subscription} Subscription to the chat message. Call ".unsubscribe()" to stop listening to the chat.
*/
onChatMessage(callback: (message: string) => void): void;
onChatMessage(callback: (message: string) => void): Subscription;
}
declare const _default: WorkadventureChatCommands;
export default _default;

@@ -0,1 +1,2 @@

import { Subscription } from "rxjs";
import type { HasPlayerMovedEventCallback } from "../Events/HasPlayerMovedEvent";

@@ -89,4 +90,5 @@ import { IframeApiContribution } from "./IframeApiContribution";

* @param {HasPlayerMovedEventCallback} callback Function that will be called when the current player is moving. It contains the event
* @return {Subscription} Subscription to the stream. Use ".unsubscribe()" to stop listening.
*/
onPlayerMove(callback: HasPlayerMovedEventCallback): void;
onPlayerMove(callback: HasPlayerMovedEventCallback): Subscription;
/**

@@ -93,0 +95,0 @@ * Player will try to find the shortest path to the destination point and proceed to move there.

import type { Observable } from "rxjs";
import { Subscription } from "rxjs";
import type { ITiledMap } from "@workadventure/tiled-map-type-guard";

@@ -39,7 +40,7 @@ import { IframeApiContribution } from "./IframeApiContribution";

*/
onEnterZone(name: string, callback: () => void): void;
onEnterZone(name: string, callback: () => void): Subscription;
/**
* @deprecated Use onLeaveLayer instead
*/
onLeaveZone(name: string, callback: () => void): void;
onLeaveZone(name: string, callback: () => void): Subscription;
/**

@@ -46,0 +47,0 @@ * Listens to the position of the current user. The event is triggered when the user enters a given layer.

{
"name": "@workadventure/iframe-api-typings",
"version": "v1.17.6",
"version": "v1.17.7",
"description": "Typescript typings for WorkAdventure iFrame API",

@@ -5,0 +5,0 @@ "main": "iframe_api.js",