@workadventure/iframe-api-typings 1.9.3 → 1.9.4

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.
Files changed (62) hide show
  1. package/{front/src/Api → Api}/Events/ActionsMenuActionClickedEvent.d.ts +0 -0
  2. package/{front/src/Api → Api}/Events/AddActionsMenuKeyToRemotePlayerEvent.d.ts +0 -0
  3. package/{front/src/Api → Api}/Events/ButtonClickedEvent.d.ts +0 -0
  4. package/{front/src/Api → Api}/Events/CameraFollowPlayerEvent.d.ts +0 -0
  5. package/{front/src/Api → Api}/Events/CameraSetEvent.d.ts +0 -0
  6. package/{front/src/Api → Api}/Events/ChangeLayerEvent.d.ts +0 -0
  7. package/{front/src/Api → Api}/Events/ChangeZoneEvent.d.ts +0 -0
  8. package/{front/src/Api → Api}/Events/ChatEvent.d.ts +0 -0
  9. package/{front/src/Api → Api}/Events/ClosePopupEvent.d.ts +0 -0
  10. package/{front/src/Api → Api}/Events/ColorEvent.d.ts +0 -0
  11. package/{front/src/Api → Api}/Events/EmbeddedWebsiteEvent.d.ts +0 -0
  12. package/{front/src/Api → Api}/Events/EnterLeaveEvent.d.ts +0 -0
  13. package/{front/src/Api → Api}/Events/GameStateEvent.d.ts +0 -0
  14. package/{front/src/Api → Api}/Events/GoToPageEvent.d.ts +0 -0
  15. package/{front/src/Api → Api}/Events/HasPlayerMovedEvent.d.ts +0 -0
  16. package/{front/src/Api → Api}/Events/IframeEvent.d.ts +0 -0
  17. package/{front/src/Api → Api}/Events/LayerEvent.d.ts +0 -0
  18. package/{front/src/Api → Api}/Events/LoadPageEvent.d.ts +0 -0
  19. package/{front/src/Api → Api}/Events/LoadSoundEvent.d.ts +0 -0
  20. package/{front/src/Api → Api}/Events/LoadTilesetEvent.d.ts +0 -0
  21. package/{front/src/Api → Api}/Events/MapDataEvent.d.ts +0 -0
  22. package/{front/src/Api → Api}/Events/MovePlayerToEvent.d.ts +0 -0
  23. package/{front/src/Api → Api}/Events/MovePlayerToEventAnswer.d.ts +0 -0
  24. package/{front/src/Api → Api}/Events/OpenCoWebsiteEvent.d.ts +0 -0
  25. package/{front/src/Api → Api}/Events/OpenPopupEvent.d.ts +0 -0
  26. package/{front/src/Api → Api}/Events/OpenTabEvent.d.ts +0 -0
  27. package/{front/src/Api → Api}/Events/PlaySoundEvent.d.ts +0 -0
  28. package/{front/src/Api → Api}/Events/PlayerPosition.d.ts +0 -0
  29. package/{front/src/Api → Api}/Events/RemotePlayerClickedEvent.d.ts +0 -0
  30. package/{front/src/Api → Api}/Events/RemoveActionsMenuKeyFromRemotePlayerEvent.d.ts +0 -0
  31. package/{front/src/Api → Api}/Events/SetTilesEvent.d.ts +0 -0
  32. package/{front/src/Api → Api}/Events/SetVariableEvent.d.ts +0 -0
  33. package/{front/src/Api → Api}/Events/StopSoundEvent.d.ts +0 -0
  34. package/{front/src/Api → Api}/Events/UserInputChatEvent.d.ts +0 -0
  35. package/{front/src/Api → Api}/Events/WasCameraUpdatedEvent.d.ts +0 -0
  36. package/{front/src/Api → Api}/Events/setPropertyEvent.d.ts +0 -0
  37. package/{front/src/Api → Api}/Events/ui/MenuItemClickedEvent.d.ts +0 -0
  38. package/{front/src/Api → Api}/Events/ui/MenuRegisterEvent.d.ts +0 -0
  39. package/{front/src/Api → Api}/Events/ui/TriggerActionMessageEvent.d.ts +0 -0
  40. package/{front/src/Api → Api}/iframe/IframeApiContribution.d.ts +0 -0
  41. package/{front/src/Api → Api}/iframe/Room/EmbeddedWebsite.d.ts +0 -0
  42. package/{front/src/Api → Api}/iframe/Sound/Sound.d.ts +0 -0
  43. package/{front/src/Api → Api}/iframe/Ui/ActionMessage.d.ts +0 -0
  44. package/{front/src/Api → Api}/iframe/Ui/ButtonDescriptor.d.ts +0 -0
  45. package/{front/src/Api → Api}/iframe/Ui/Menu.d.ts +0 -0
  46. package/{front/src/Api → Api}/iframe/Ui/Popup.d.ts +0 -0
  47. package/{front/src/Api → Api}/iframe/camera.d.ts +0 -0
  48. package/{front/src/Api → Api}/iframe/chat.d.ts +0 -0
  49. package/{front/src/Api → Api}/iframe/controls.d.ts +0 -0
  50. package/{front/src/Api → Api}/iframe/nav.d.ts +0 -0
  51. package/{front/src/Api → Api}/iframe/player.d.ts +0 -0
  52. package/{front/src/Api → Api}/iframe/registeredCallbacks.d.ts +0 -0
  53. package/{front/src/Api → Api}/iframe/room.d.ts +0 -0
  54. package/{front/src/Api → Api}/iframe/sound.d.ts +0 -0
  55. package/{front/src/Api → Api}/iframe/state.d.ts +0 -0
  56. package/{front/src/Api → Api}/iframe/ui.d.ts +0 -0
  57. package/{front/src/Api → Api}/iframe/website.d.ts +0 -0
  58. package/{front/src/Api → Api}/types.d.ts +0 -0
  59. package/{front/src/Phaser → Phaser}/Map/ITiledMap.d.ts +0 -0
  60. package/{front/src/iframe_api.d.ts → iframe_api.d.ts} +6 -0
  61. package/package.json +1 -1
  62. package/desktop/electron/src/preload-app/types.d.ts +0 -8
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -77,4 +77,10 @@ declare const wa: {
77
77
  onLeaveZone(name: string, callback: () => void): void;
78
78
  };
79
79
  export declare type WorkAdventureApi = typeof wa;
80
+ declare global {
81
+ interface Window {
82
+ WA: WorkAdventureApi;
83
+ }
84
+ let WA: WorkAdventureApi;
85
+ }
80
86
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workadventure/iframe-api-typings",
3
- "version": "v1.9.3",
3
+ "version": "v1.9.4",
4
4
  "description": "Typescript typings for WorkAdventure iFrame API",
5
5
  "main": "iframe_api.js",
6
6
  "types": "iframe_api.d.ts",
@@ -1,8 +0,0 @@
1
- export declare type WorkAdventureDesktopApi = {
2
- desktop: boolean;
3
- isDevelopment: () => Promise<boolean>;
4
- getVersion: () => Promise<string>;
5
- notify: (txt: string) => void;
6
- onMuteToggle: (callback: () => void) => void;
7
- onCameraToggle: (callback: () => void) => void;
8
- };