@workadventure/iframe-api-typings
Advanced tools
Comparing version
@@ -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; |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
204645
2.51%90
2.27%6458
2.7%