@workadventure/iframe-api-typings 1.15.11 → 1.16.1

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.
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const isAreaEvent: z.ZodObject<{
2
+ export declare const isDynamicAreaEvent: z.ZodObject<{
3
3
  name: z.ZodString;
4
4
  x: z.ZodOptional<z.ZodNumber>;
5
5
  y: z.ZodOptional<z.ZodNumber>;
@@ -21,8 +21,8 @@ export declare const isAreaEvent: z.ZodObject<{
21
21
  /**
22
22
  * A message sent from the iFrame to the game to modify an embedded website
23
23
  */
24
- export type ModifyAreaEvent = z.infer<typeof isAreaEvent>;
25
- export declare const isCreateAreaEvent: z.ZodObject<{
24
+ export type ModifyDynamicAreaEvent = z.infer<typeof isDynamicAreaEvent>;
25
+ export declare const isCreateDynamicAreaEvent: z.ZodObject<{
26
26
  name: z.ZodString;
27
27
  x: z.ZodNumber;
28
28
  y: z.ZodNumber;
@@ -41,4 +41,4 @@ export declare const isCreateAreaEvent: z.ZodObject<{
41
41
  width: number;
42
42
  height: number;
43
43
  }>;
44
- export type CreateAreaEvent = z.infer<typeof isCreateAreaEvent>;
44
+ export type CreateDynamicAreaEvent = z.infer<typeof isCreateDynamicAreaEvent>;
@@ -2336,7 +2336,6 @@ export declare const isIframeResponseEvent: z.ZodUnion<[z.ZodObject<{
2336
2336
  }>, z.ZodObject<{
2337
2337
  type: z.ZodLiteral<"xmppSettingsMessage">;
2338
2338
  data: z.ZodObject<{
2339
- jid: z.ZodString;
2340
2339
  conferenceDomain: z.ZodString;
2341
2340
  rooms: z.ZodArray<z.ZodObject<{
2342
2341
  name: z.ZodString;
@@ -2357,7 +2356,6 @@ export declare const isIframeResponseEvent: z.ZodUnion<[z.ZodObject<{
2357
2356
  jabberId: z.ZodString;
2358
2357
  jabberPassword: z.ZodString;
2359
2358
  }, "strip", z.ZodTypeAny, {
2360
- jid: string;
2361
2359
  conferenceDomain: string;
2362
2360
  rooms: {
2363
2361
  type: string;
@@ -2368,7 +2366,6 @@ export declare const isIframeResponseEvent: z.ZodUnion<[z.ZodObject<{
2368
2366
  jabberId: string;
2369
2367
  jabberPassword: string;
2370
2368
  }, {
2371
- jid: string;
2372
2369
  conferenceDomain: string;
2373
2370
  rooms: {
2374
2371
  subscribe?: boolean | undefined;
@@ -2382,7 +2379,6 @@ export declare const isIframeResponseEvent: z.ZodUnion<[z.ZodObject<{
2382
2379
  }, "strip", z.ZodTypeAny, {
2383
2380
  type: "xmppSettingsMessage";
2384
2381
  data: {
2385
- jid: string;
2386
2382
  conferenceDomain: string;
2387
2383
  rooms: {
2388
2384
  type: string;
@@ -2396,7 +2392,6 @@ export declare const isIframeResponseEvent: z.ZodUnion<[z.ZodObject<{
2396
2392
  }, {
2397
2393
  type: "xmppSettingsMessage";
2398
2394
  data: {
2399
- jid: string;
2400
2395
  conferenceDomain: string;
2401
2396
  rooms: {
2402
2397
  subscribe?: boolean | undefined;
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  export declare const isXmppSettingsMessageEvent: z.ZodObject<{
3
- jid: z.ZodString;
4
3
  conferenceDomain: z.ZodString;
5
4
  rooms: z.ZodArray<z.ZodObject<{
6
5
  name: z.ZodString;
@@ -21,7 +20,6 @@ export declare const isXmppSettingsMessageEvent: z.ZodObject<{
21
20
  jabberId: z.ZodString;
22
21
  jabberPassword: z.ZodString;
23
22
  }, "strip", z.ZodTypeAny, {
24
- jid: string;
25
23
  conferenceDomain: string;
26
24
  rooms: {
27
25
  type: string;
@@ -32,7 +30,6 @@ export declare const isXmppSettingsMessageEvent: z.ZodObject<{
32
30
  jabberId: string;
33
31
  jabberPassword: string;
34
32
  }, {
35
- jid: string;
36
33
  conferenceDomain: string;
37
34
  rooms: {
38
35
  subscribe?: boolean | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { ITiledMapObject } from "@workadventure/tiled-map-type-guard";
2
- import type { CreateAreaEvent } from "../../Events/CreateAreaEvent";
2
+ import type { CreateDynamicAreaEvent } from "../../Events/CreateDynamicAreaEvent";
3
3
  export type IArea = Omit<ITiledMapObject, "id" | "gid" | "visible" | "rotation" | "ellipse" | "polygon" | "polyline">;
4
4
  export declare class Area implements IArea {
5
5
  private config;
@@ -10,7 +10,7 @@ export declare class Area implements IArea {
10
10
  private _y;
11
11
  private _width;
12
12
  private _height;
13
- constructor(config: CreateAreaEvent);
13
+ constructor(config: CreateDynamicAreaEvent);
14
14
  setProperty(propertyName: string, propertyValue: string | number | boolean | undefined): void;
15
15
  get x(): number;
16
16
  set x(x: number);
@@ -1,6 +1,6 @@
1
- import type { AddPlayerEvent } from "../../Events/AddPlayerEvent";
2
1
  import type { Observable } from "rxjs";
3
2
  import { Subject } from "rxjs";
3
+ import type { AddPlayerEvent } from "../../Events/AddPlayerEvent";
4
4
  import type { PlayerPosition } from "../../Events/PlayerPosition";
5
5
  import { ActionsMenuAction } from "../ui";
6
6
  export declare const remotePlayers: Map<number, RemotePlayer>;
@@ -1,5 +1,5 @@
1
- import { BannerEvent } from "./../../Events/Ui/BannerEvent";
2
1
  import { IframeApiContribution } from "../IframeApiContribution";
2
+ import { BannerEvent } from "./../../Events/Ui/BannerEvent";
3
3
  export declare class WorkadventureBannerCommands extends IframeApiContribution<WorkadventureBannerCommands> {
4
4
  callbacks: never[];
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import type { Observable } from "rxjs";
2
- import type { CreateAreaEvent } from "../Events/CreateAreaEvent";
2
+ import type { CreateDynamicAreaEvent } from "../Events/CreateDynamicAreaEvent";
3
3
  import { Area } from "./Area/Area";
4
4
  import { IframeApiContribution } from "./IframeApiContribution";
5
5
  export declare class WorkadventureAreaCommands extends IframeApiContribution<WorkadventureAreaCommands> {
@@ -21,7 +21,7 @@ export declare class WorkadventureAreaCommands extends IframeApiContribution<Wor
21
21
  * @param {{name: string, x: number, y: number, width: number, height: number}} createAreaEvent Define the name, position and size of the area
22
22
  * @returns {Area} Area object
23
23
  */
24
- create(createAreaEvent: CreateAreaEvent): Area;
24
+ create(createAreaEvent: CreateDynamicAreaEvent): Area;
25
25
  /**
26
26
  * Get an existing Area object.
27
27
  * {@link https://workadventu.re/map-building/api-room.md#get-an-area | Website documentation}
@@ -1,6 +1,6 @@
1
- import { IframeApiContribution } from "./IframeApiContribution";
2
1
  import type { Observable } from "rxjs";
3
2
  import type { WasCameraUpdatedEvent } from "../Events/WasCameraUpdatedEvent";
3
+ import { IframeApiContribution } from "./IframeApiContribution";
4
4
  export declare class WorkAdventureCameraCommands extends IframeApiContribution<WorkAdventureCameraCommands> {
5
5
  callbacks: {
6
6
  type: "wasCameraUpdated";
@@ -1,5 +1,5 @@
1
- import { IframeApiContribution } from "./IframeApiContribution";
2
1
  import type { HasPlayerMovedEventCallback } from "../Events/HasPlayerMovedEvent";
2
+ import { IframeApiContribution } from "./IframeApiContribution";
3
3
  import type { WorkadventureProximityMeetingCommands } from "./Player/ProximityMeeting";
4
4
  export declare const setPlayerName: (name: string) => void;
5
5
  export declare const setPlayerLanguage: (language: string | undefined) => void;
@@ -1,5 +1,5 @@
1
- import { IframeApiContribution } from "./IframeApiContribution";
2
1
  import type { Observable } from "rxjs";
2
+ import { IframeApiContribution } from "./IframeApiContribution";
3
3
  import type { RemotePlayerInterface, RemotePlayerMoved } from "./Players/RemotePlayer";
4
4
  import { RemotePlayer } from "./Players/RemotePlayer";
5
5
  export interface PlayerVariableChanged {
@@ -1,9 +1,9 @@
1
1
  import type { Observable } from "rxjs";
2
+ import type { ITiledMap } from "@workadventure/tiled-map-type-guard";
2
3
  import { IframeApiContribution } from "./IframeApiContribution";
3
4
  import type { WorkadventureRoomWebsiteCommands } from "./website";
4
5
  import type { WorkadventureAreaCommands } from "./area";
5
- import type { ITiledMap } from "@workadventure/tiled-map-type-guard";
6
- interface TileDescriptor {
6
+ export interface TileDescriptor {
7
7
  x: number;
8
8
  y: number;
9
9
  tile: number | string | null;
@@ -1,11 +1,11 @@
1
+ import type { Observable } from "rxjs";
2
+ import { Subject } from "rxjs";
3
+ import type { RequireOnlyOne } from "../types";
1
4
  import { IframeApiContribution } from "./IframeApiContribution";
2
5
  import type { ButtonDescriptor } from "./Ui/ButtonDescriptor";
3
6
  import { Popup } from "./Ui/Popup";
4
7
  import { ActionMessage } from "./Ui/ActionMessage";
5
8
  import { Menu } from "./Ui/Menu";
6
- import type { RequireOnlyOne } from "../types";
7
- import type { Observable } from "rxjs";
8
- import { Subject } from "rxjs";
9
9
  import type { UIWebsiteCommands } from "./Ui/UIWebsite";
10
10
  import { RemotePlayer } from "./Players/RemotePlayer";
11
11
  import type { WorkadventureModalCommands } from "./Ui/Modal";
@@ -1,6 +1,6 @@
1
+ import type { CreateEmbeddedWebsiteEvent } from "../Events/EmbeddedWebsiteEvent";
1
2
  import { IframeApiContribution } from "./IframeApiContribution";
2
3
  import { EmbeddedWebsite } from "./Room/EmbeddedWebsite";
3
- import type { CreateEmbeddedWebsiteEvent } from "../Events/EmbeddedWebsiteEvent";
4
4
  export declare class WorkadventureRoomWebsiteCommands extends IframeApiContribution<WorkadventureRoomWebsiteCommands> {
5
5
  callbacks: never[];
6
6
  /**
package/iframe_api.d.ts CHANGED
@@ -10,6 +10,7 @@ export type { ActionMessage } from "./front/Api/Iframe/Ui/ActionMessage";
10
10
  export type { EmbeddedWebsite } from "./front/Api/Iframe/Room/EmbeddedWebsite";
11
11
  export type { Area } from "./front/Api/Iframe/Area/Area";
12
12
  export type { ActionsMenuAction } from "./front/Api/Iframe/ui";
13
+ export type { TileDescriptor } from "./front/Api/Iframe/room";
13
14
  declare const wa: {
14
15
  ui: import("./front/Api/Iframe/ui").WorkAdventureUiCommands;
15
16
  nav: import("./front/Api/Iframe/nav").WorkadventureNavigationCommands;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workadventure/iframe-api-typings",
3
- "version": "v1.15.11",
3
+ "version": "v1.16.1",
4
4
  "description": "Typescript typings for WorkAdventure iFrame API",
5
5
  "main": "iframe_api.js",
6
6
  "types": "iframe_api.d.ts",