@workadventure/iframe-api-typings
Advanced tools
Comparing version
@@ -0,1 +1,2 @@ | ||
import SoundConfig = Phaser.Types.Sound.SoundConfig; | ||
interface WorkAdventureApi { | ||
@@ -9,8 +10,9 @@ sendChatMessage(message: string, author: string): void; | ||
goToPage(url: string): void; | ||
openCoWebSite(url: string): void; | ||
openCoWebSite(url: string, allowApi: boolean, allowPolicy: string): void; | ||
closeCoWebSite(): void; | ||
disablePlayerControl(): void; | ||
restorePlayerControl(): void; | ||
disablePlayerControls(): void; | ||
restorePlayerControls(): void; | ||
displayBubble(): void; | ||
removeBubble(): void; | ||
loadSound(url: string): Sound; | ||
} | ||
@@ -35,3 +37,3 @@ declare global { | ||
} | ||
declare class Popup { | ||
export declare class Popup { | ||
private id; | ||
@@ -44,2 +46,8 @@ constructor(id: number); | ||
} | ||
export declare class Sound { | ||
private url; | ||
constructor(url: string); | ||
play(config: SoundConfig): string; | ||
stop(): string; | ||
} | ||
export {}; |
{ | ||
"name": "@workadventure/iframe-api-typings", | ||
"version": "v1.3.15", | ||
"version": "v1.4.5", | ||
"description": "Typescript typings for WorkAdventure iFrame API", | ||
@@ -5,0 +5,0 @@ "main": "iframe_api.js", |
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
2896
10.41%51
18.6%