@workadventure/iframe-api-typings 1.16.11 → 1.17.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.
@@ -5,14 +5,14 @@ export declare const isJoinMucEvent: z.ZodObject<{
5
5
  type: z.ZodString;
6
6
  subscribe: z.ZodBoolean;
7
7
  }, "strip", z.ZodTypeAny, {
8
+ url: string;
8
9
  type: string;
9
10
  name: string;
10
- url: string;
11
11
  subscribe: boolean;
12
12
  }, {
13
+ url: string;
13
14
  type: string;
14
15
  name: string;
15
- url: string;
16
16
  subscribe: boolean;
17
17
  }>;
18
18
  /**
@@ -6,16 +6,16 @@ export declare const isModalEvent: z.ZodObject<{
6
6
  position: z.ZodDefault<z.ZodOptional<z.ZodEnum<["right", "left", "center"]>>>;
7
7
  allowApi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8
8
  }, "strip", z.ZodTypeAny, {
9
+ title: string;
9
10
  allowApi: boolean;
10
11
  position: "left" | "right" | "center";
11
12
  allow: string | null;
12
13
  src: string;
13
- title: string;
14
14
  }, {
15
+ title?: string | undefined;
15
16
  allowApi?: boolean | undefined;
16
17
  position?: "left" | "right" | "center" | undefined;
17
18
  allow?: string | null | undefined;
18
- title?: string | undefined;
19
19
  src: string;
20
20
  }>;
21
21
  /**
@@ -17,25 +17,25 @@ export declare const isBannerEvent: z.ZodObject<{
17
17
  label: string;
18
18
  }>>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- bgColor?: string | undefined;
21
- textColor?: string | undefined;
22
20
  link?: {
23
21
  url: string;
24
22
  label: string;
25
23
  } | undefined;
24
+ bgColor?: string | undefined;
25
+ textColor?: string | undefined;
26
26
  text: string;
27
27
  closable: boolean;
28
28
  id: string;
29
29
  timeToClose: number;
30
30
  }, {
31
- closable?: boolean | undefined;
32
- bgColor?: string | undefined;
33
- textColor?: string | undefined;
34
- timeToClose?: number | undefined;
35
31
  link?: {
36
32
  url: string;
37
33
  label: string;
38
34
  } | undefined;
35
+ closable?: boolean | undefined;
36
+ bgColor?: string | undefined;
37
+ textColor?: string | undefined;
38
+ timeToClose?: number | undefined;
39
39
  text: string;
40
40
  id: string;
41
41
  }>;
@@ -5,12 +5,12 @@ export declare const isAddClassicButtonActionBarEvent: z.ZodObject<{
5
5
  type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["button"]>>>;
6
6
  }, "strip", z.ZodTypeAny, {
7
7
  type: "button";
8
- id: string;
9
8
  label: string;
9
+ id: string;
10
10
  }, {
11
11
  type?: "button" | undefined;
12
- id: string;
13
12
  label: string;
13
+ id: string;
14
14
  }>;
15
15
  export declare const isAddActionButtonActionBarEvent: z.ZodObject<{
16
16
  id: z.ZodString;
@@ -34,12 +34,12 @@ export declare const isAddButtonActionBarEvent: z.ZodUnion<[z.ZodObject<{
34
34
  type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["button"]>>>;
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  type: "button";
37
- id: string;
38
37
  label: string;
38
+ id: string;
39
39
  }, {
40
40
  type?: "button" | undefined;
41
- id: string;
42
41
  label: string;
42
+ id: string;
43
43
  }>, z.ZodObject<{
44
44
  id: z.ZodString;
45
45
  type: z.ZodEnum<["action"]>;
@@ -7,14 +7,14 @@ export declare const isUIWebsiteMargin: z.ZodObject<{
7
7
  left: z.ZodOptional<z.ZodString>;
8
8
  right: z.ZodOptional<z.ZodString>;
9
9
  }, "strip", z.ZodTypeAny, {
10
+ left?: string | undefined;
10
11
  top?: string | undefined;
11
12
  bottom?: string | undefined;
12
- left?: string | undefined;
13
13
  right?: string | undefined;
14
14
  }, {
15
+ left?: string | undefined;
15
16
  top?: string | undefined;
16
17
  bottom?: string | undefined;
17
- left?: string | undefined;
18
18
  right?: string | undefined;
19
19
  }>;
20
20
  export type UIWebsiteMargin = z.infer<typeof isUIWebsiteMargin>;
@@ -37,11 +37,11 @@ export declare const isUIWebsiteSize: z.ZodObject<{
37
37
  height: z.ZodString;
38
38
  width: z.ZodString;
39
39
  }, "strip", z.ZodTypeAny, {
40
- width: string;
41
40
  height: string;
42
- }, {
43
41
  width: string;
42
+ }, {
44
43
  height: string;
44
+ width: string;
45
45
  }>;
46
46
  export type UIWebsiteSize = z.infer<typeof isUIWebsiteSize>;
47
47
  export declare const isCreateUIWebsiteEvent: z.ZodObject<{
@@ -63,11 +63,11 @@ export declare const isCreateUIWebsiteEvent: z.ZodObject<{
63
63
  height: z.ZodString;
64
64
  width: z.ZodString;
65
65
  }, "strip", z.ZodTypeAny, {
66
- width: string;
67
66
  height: string;
68
- }, {
69
67
  width: string;
68
+ }, {
70
69
  height: string;
70
+ width: string;
71
71
  }>;
72
72
  margin: z.ZodOptional<z.ZodObject<{
73
73
  top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -75,14 +75,14 @@ export declare const isCreateUIWebsiteEvent: z.ZodObject<{
75
75
  left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
76
76
  right: z.ZodOptional<z.ZodOptional<z.ZodString>>;
77
77
  }, "strip", z.ZodTypeAny, {
78
+ left?: string | undefined;
78
79
  top?: string | undefined;
79
80
  bottom?: string | undefined;
80
- left?: string | undefined;
81
81
  right?: string | undefined;
82
82
  }, {
83
+ left?: string | undefined;
83
84
  top?: string | undefined;
84
85
  bottom?: string | undefined;
85
- left?: string | undefined;
86
86
  right?: string | undefined;
87
87
  }>>;
88
88
  }, "strip", z.ZodTypeAny, {
@@ -90,9 +90,9 @@ export declare const isCreateUIWebsiteEvent: z.ZodObject<{
90
90
  allowPolicy?: string | undefined;
91
91
  visible?: boolean | undefined;
92
92
  margin?: {
93
+ left?: string | undefined;
93
94
  top?: string | undefined;
94
95
  bottom?: string | undefined;
95
- left?: string | undefined;
96
96
  right?: string | undefined;
97
97
  } | undefined;
98
98
  url: string;
@@ -101,17 +101,17 @@ export declare const isCreateUIWebsiteEvent: z.ZodObject<{
101
101
  horizontal: "left" | "right" | "middle";
102
102
  };
103
103
  size: {
104
- width: string;
105
104
  height: string;
105
+ width: string;
106
106
  };
107
107
  }, {
108
108
  allowApi?: boolean | undefined;
109
109
  allowPolicy?: string | undefined;
110
110
  visible?: boolean | undefined;
111
111
  margin?: {
112
+ left?: string | undefined;
112
113
  top?: string | undefined;
113
114
  bottom?: string | undefined;
114
- left?: string | undefined;
115
115
  right?: string | undefined;
116
116
  } | undefined;
117
117
  url: string;
@@ -120,8 +120,8 @@ export declare const isCreateUIWebsiteEvent: z.ZodObject<{
120
120
  horizontal: "left" | "right" | "middle";
121
121
  };
122
122
  size: {
123
- width: string;
124
123
  height: string;
124
+ width: string;
125
125
  };
126
126
  }>;
127
127
  export type CreateUIWebsiteEvent = z.infer<typeof isCreateUIWebsiteEvent>;
@@ -143,11 +143,11 @@ export declare const isModifyUIWebsiteEvent: z.ZodObject<{
143
143
  height: z.ZodString;
144
144
  width: z.ZodString;
145
145
  }, "strip", z.ZodTypeAny, {
146
- width: string;
147
146
  height: string;
148
- }, {
149
147
  width: string;
148
+ }, {
150
149
  height: string;
150
+ width: string;
151
151
  }>>;
152
152
  margin: z.ZodOptional<z.ZodObject<{
153
153
  top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -155,14 +155,14 @@ export declare const isModifyUIWebsiteEvent: z.ZodObject<{
155
155
  left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
156
156
  right: z.ZodOptional<z.ZodOptional<z.ZodString>>;
157
157
  }, "strip", z.ZodTypeAny, {
158
+ left?: string | undefined;
158
159
  top?: string | undefined;
159
160
  bottom?: string | undefined;
160
- left?: string | undefined;
161
161
  right?: string | undefined;
162
162
  }, {
163
+ left?: string | undefined;
163
164
  top?: string | undefined;
164
165
  bottom?: string | undefined;
165
- left?: string | undefined;
166
166
  right?: string | undefined;
167
167
  }>>;
168
168
  }, "strip", z.ZodTypeAny, {
@@ -173,13 +173,13 @@ export declare const isModifyUIWebsiteEvent: z.ZodObject<{
173
173
  } | undefined;
174
174
  visible?: boolean | undefined;
175
175
  size?: {
176
- width: string;
177
176
  height: string;
177
+ width: string;
178
178
  } | undefined;
179
179
  margin?: {
180
+ left?: string | undefined;
180
181
  top?: string | undefined;
181
182
  bottom?: string | undefined;
182
- left?: string | undefined;
183
183
  right?: string | undefined;
184
184
  } | undefined;
185
185
  id: string;
@@ -191,13 +191,13 @@ export declare const isModifyUIWebsiteEvent: z.ZodObject<{
191
191
  } | undefined;
192
192
  visible?: boolean | undefined;
193
193
  size?: {
194
- width: string;
195
194
  height: string;
195
+ width: string;
196
196
  } | undefined;
197
197
  margin?: {
198
+ left?: string | undefined;
198
199
  top?: string | undefined;
199
200
  bottom?: string | undefined;
200
- left?: string | undefined;
201
201
  right?: string | undefined;
202
202
  } | undefined;
203
203
  id: string;
@@ -223,11 +223,11 @@ export declare const isUIWebsiteEvent: z.ZodObject<{
223
223
  height: z.ZodString;
224
224
  width: z.ZodString;
225
225
  }, "strip", z.ZodTypeAny, {
226
- width: string;
227
226
  height: string;
228
- }, {
229
227
  width: string;
228
+ }, {
230
229
  height: string;
230
+ width: string;
231
231
  }>;
232
232
  margin: z.ZodOptional<z.ZodObject<{
233
233
  top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -235,21 +235,21 @@ export declare const isUIWebsiteEvent: z.ZodObject<{
235
235
  left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
236
236
  right: z.ZodOptional<z.ZodOptional<z.ZodString>>;
237
237
  }, "strip", z.ZodTypeAny, {
238
+ left?: string | undefined;
238
239
  top?: string | undefined;
239
240
  bottom?: string | undefined;
240
- left?: string | undefined;
241
241
  right?: string | undefined;
242
242
  }, {
243
+ left?: string | undefined;
243
244
  top?: string | undefined;
244
245
  bottom?: string | undefined;
245
- left?: string | undefined;
246
246
  right?: string | undefined;
247
247
  }>>;
248
248
  }, "strip", z.ZodTypeAny, {
249
249
  margin?: {
250
+ left?: string | undefined;
250
251
  top?: string | undefined;
251
252
  bottom?: string | undefined;
252
- left?: string | undefined;
253
253
  right?: string | undefined;
254
254
  } | undefined;
255
255
  url: string;
@@ -262,14 +262,14 @@ export declare const isUIWebsiteEvent: z.ZodObject<{
262
262
  id: string;
263
263
  visible: boolean;
264
264
  size: {
265
- width: string;
266
265
  height: string;
266
+ width: string;
267
267
  };
268
268
  }, {
269
269
  margin?: {
270
+ left?: string | undefined;
270
271
  top?: string | undefined;
271
272
  bottom?: string | undefined;
272
- left?: string | undefined;
273
273
  right?: string | undefined;
274
274
  } | undefined;
275
275
  url: string;
@@ -282,8 +282,8 @@ export declare const isUIWebsiteEvent: z.ZodObject<{
282
282
  id: string;
283
283
  visible: boolean;
284
284
  size: {
285
- width: string;
286
285
  height: string;
286
+ width: string;
287
287
  };
288
288
  }>;
289
289
  export type UIWebsiteEvent = z.infer<typeof isUIWebsiteEvent>;
@@ -6,16 +6,16 @@ export declare const isWasCameraUpdatedEvent: z.ZodObject<{
6
6
  height: z.ZodNumber;
7
7
  zoom: z.ZodNumber;
8
8
  }, "strip", z.ZodTypeAny, {
9
+ height: number;
10
+ width: number;
9
11
  x: number;
10
12
  y: number;
11
- width: number;
12
- height: number;
13
13
  zoom: number;
14
14
  }, {
15
+ height: number;
16
+ width: number;
15
17
  x: number;
16
18
  y: number;
17
- width: number;
18
- height: number;
19
19
  zoom: number;
20
20
  }>;
21
21
  /**
@@ -7,24 +7,24 @@ export declare const isXmppSettingsMessageEvent: z.ZodObject<{
7
7
  type: z.ZodString;
8
8
  subscribe: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9
9
  }, "strip", z.ZodTypeAny, {
10
+ url: string;
10
11
  type: string;
11
12
  name: string;
12
- url: string;
13
13
  subscribe: boolean;
14
14
  }, {
15
15
  subscribe?: boolean | undefined;
16
+ url: string;
16
17
  type: string;
17
18
  name: string;
18
- url: string;
19
19
  }>, "many">;
20
20
  jabberId: z.ZodString;
21
21
  jabberPassword: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  conferenceDomain: string;
24
24
  rooms: {
25
+ url: string;
25
26
  type: string;
26
27
  name: string;
27
- url: string;
28
28
  subscribe: boolean;
29
29
  }[];
30
30
  jabberId: string;
@@ -33,9 +33,9 @@ export declare const isXmppSettingsMessageEvent: z.ZodObject<{
33
33
  conferenceDomain: string;
34
34
  rooms: {
35
35
  subscribe?: boolean | undefined;
36
+ url: string;
36
37
  type: string;
37
38
  name: string;
38
- url: string;
39
39
  }[];
40
40
  jabberId: string;
41
41
  jabberPassword: string;
@@ -25,8 +25,8 @@ export declare class WorkAdventureButtonActionBarCommands extends IframeApiContr
25
25
  type: "buttonActionBarTrigger";
26
26
  callback: (event: {
27
27
  type: "button";
28
- id: string;
29
28
  label: string;
29
+ id: string;
30
30
  } | {
31
31
  type: "action";
32
32
  id: string;
@@ -5,11 +5,11 @@ export declare class WorkadventureModalCommands extends IframeApiContribution<Wo
5
5
  callbacks: {
6
6
  type: "modalCloseTrigger";
7
7
  callback: (event: {
8
+ title: string;
8
9
  allowApi: boolean;
9
10
  position: "left" | "right" | "center";
10
11
  allow: string | null;
11
12
  src: string;
12
- title: string;
13
13
  }) => void;
14
14
  }[];
15
15
  /**
@@ -5,10 +5,10 @@ export declare class WorkAdventureCameraCommands extends IframeApiContribution<W
5
5
  callbacks: {
6
6
  type: "wasCameraUpdated";
7
7
  callback: (event: {
8
+ height: number;
9
+ width: number;
8
10
  x: number;
9
11
  y: number;
10
- width: number;
11
- height: number;
12
12
  zoom: number;
13
13
  }) => void;
14
14
  }[];
@@ -89,7 +89,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
89
89
  */
90
90
  onPlayerMove(callback: HasPlayerMovedEventCallback): void;
91
91
  /**
92
- * Player will try to find shortest path to the destination point and proceed to move there.
92
+ * Player will try to find the shortest path to the destination point and proceed to move there.
93
93
  * {@link https://workadventu.re/map-building/api-player.md#move-player-to-position | Website documentation}
94
94
  *
95
95
  * @param {number} x Horizontal position
@@ -71,7 +71,7 @@ export declare class WorkadventurePlayersCommands extends IframeApiContribution<
71
71
  *
72
72
  * ```ts
73
73
  * WA.players.onVariableChange("score").subscribe({ player, value } => {
74
- * console.log("Score for player", player.name, "has been updated to", value);
74
+ * console.info("Score for player", player.name, "has been updated to", value);
75
75
  * });
76
76
  * ```
77
77
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workadventure/iframe-api-typings",
3
- "version": "v1.16.11",
3
+ "version": "v1.17.1",
4
4
  "description": "Typescript typings for WorkAdventure iFrame API",
5
5
  "main": "iframe_api.js",
6
6
  "types": "iframe_api.d.ts",