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
1
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.14.7

front/Api/Events/Ui/ButtonActionBarEvent.d.ts

2

front/Api/Iframe/ui.d.ts

@@ -12,2 +12,3 @@ import { IframeApiContribution } from "./IframeApiContribution";

import type { WorkadventureModalCommands } from "./Ui/Modal";
import { WorkAdventureButtonActionBarCommands } from "./Ui/ButtonActionBar";
interface MenuDescriptor {

@@ -115,4 +116,5 @@ callback?: (commandDescriptor: string) => void;

get modal(): WorkadventureModalCommands;
get actionBar(): WorkAdventureButtonActionBarCommands;
}
declare const _default: WorkAdventureUiCommands;
export default _default;

22

front/Api/Iframe/Ui/Modal.d.ts
import { IframeApiContribution } from "../IframeApiContribution";
import type { ModalEvent } from "../../Events/ModalEvent";
export declare class WorkadventureModalCommands extends IframeApiContribution<WorkadventureModalCommands> {
callbacks: never[];
private _closeCallback?;
callbacks: {
type: "modalCloseTrigger";
callback: (event: {
allowApi: boolean;
position: "left" | "right" | "center";
allow: string | null;
src: string;
title: string;
}) => void;
}[];
/**
* Open instantly the chat window.
* {@link https://workadventu.re/map-building/api-chat.md#open-the-modal-window | Website documentation}
* Open instantly the modal window.
* {@link http://workadventure.localhost/map-building/api-ui.md#open-the-modal-iframe | Website documentation}
*/
openModal(modalEvent: ModalEvent): void;
openModal(modalEvent: ModalEvent, closeCallback?: (arg: ModalEvent) => void): void;
/**
* Close instantly the chat window.
* {@link https://workadventu.re/map-building/api-chat.md#close-the-modal-window | Website documentation}
* Close instantly the modal window.
* {@link http://workadventure.localhost/map-building/api-ui.md#close-the-chat-window | Website documentation}
*/

@@ -14,0 +24,0 @@ closeModal(): void;

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

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

Sorry, the diff of this file is too big to display