@workadventure/iframe-api-typings 1.15.9 → 1.15.11
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.
|
@@ -1227,6 +1227,7 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
|
|
|
1227
1227
|
bgColor: z.ZodOptional<z.ZodString>;
|
|
1228
1228
|
textColor: z.ZodOptional<z.ZodString>;
|
|
1229
1229
|
closable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1230
|
+
timeToClose: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1230
1231
|
link: z.ZodOptional<z.ZodObject<{
|
|
1231
1232
|
url: z.ZodString;
|
|
1232
1233
|
label: z.ZodString;
|
|
@@ -1247,10 +1248,12 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
|
|
|
1247
1248
|
text: string;
|
|
1248
1249
|
closable: boolean;
|
|
1249
1250
|
id: string;
|
|
1251
|
+
timeToClose: number;
|
|
1250
1252
|
}, {
|
|
1251
1253
|
closable?: boolean | undefined;
|
|
1252
1254
|
bgColor?: string | undefined;
|
|
1253
1255
|
textColor?: string | undefined;
|
|
1256
|
+
timeToClose?: number | undefined;
|
|
1254
1257
|
link?: {
|
|
1255
1258
|
url: string;
|
|
1256
1259
|
label: string;
|
|
@@ -1270,6 +1273,7 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
|
|
|
1270
1273
|
text: string;
|
|
1271
1274
|
closable: boolean;
|
|
1272
1275
|
id: string;
|
|
1276
|
+
timeToClose: number;
|
|
1273
1277
|
};
|
|
1274
1278
|
}, {
|
|
1275
1279
|
type: "openBanner";
|
|
@@ -1277,6 +1281,7 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
|
|
|
1277
1281
|
closable?: boolean | undefined;
|
|
1278
1282
|
bgColor?: string | undefined;
|
|
1279
1283
|
textColor?: string | undefined;
|
|
1284
|
+
timeToClose?: number | undefined;
|
|
1280
1285
|
link?: {
|
|
1281
1286
|
url: string;
|
|
1282
1287
|
label: string;
|
|
@@ -5,6 +5,7 @@ export declare const isBannerEvent: z.ZodObject<{
|
|
|
5
5
|
bgColor: z.ZodOptional<z.ZodString>;
|
|
6
6
|
textColor: z.ZodOptional<z.ZodString>;
|
|
7
7
|
closable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8
|
+
timeToClose: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
8
9
|
link: z.ZodOptional<z.ZodObject<{
|
|
9
10
|
url: z.ZodString;
|
|
10
11
|
label: z.ZodString;
|
|
@@ -25,10 +26,12 @@ export declare const isBannerEvent: z.ZodObject<{
|
|
|
25
26
|
text: string;
|
|
26
27
|
closable: boolean;
|
|
27
28
|
id: string;
|
|
29
|
+
timeToClose: number;
|
|
28
30
|
}, {
|
|
29
31
|
closable?: boolean | undefined;
|
|
30
32
|
bgColor?: string | undefined;
|
|
31
33
|
textColor?: string | undefined;
|
|
34
|
+
timeToClose?: number | undefined;
|
|
32
35
|
link?: {
|
|
33
36
|
url: string;
|
|
34
37
|
label: string;
|
|
@@ -203,7 +203,7 @@ export declare const isModifyUIWebsiteEvent: z.ZodObject<{
|
|
|
203
203
|
id: string;
|
|
204
204
|
}>;
|
|
205
205
|
export type ModifyUIWebsiteEvent = z.infer<typeof isModifyUIWebsiteEvent>;
|
|
206
|
-
export declare const
|
|
206
|
+
export declare const isUIWebsiteEvent: z.ZodObject<{
|
|
207
207
|
id: z.ZodString;
|
|
208
208
|
url: z.ZodString;
|
|
209
209
|
visible: z.ZodBoolean;
|
|
@@ -286,4 +286,4 @@ export declare const isUIWebsite: z.ZodObject<{
|
|
|
286
286
|
height: string;
|
|
287
287
|
};
|
|
288
288
|
}>;
|
|
289
|
-
export type
|
|
289
|
+
export type UIWebsiteEvent = z.infer<typeof isUIWebsiteEvent>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateUIWebsiteEvent, UIWebsiteMargin, UIWebsitePosition, UIWebsiteSize,
|
|
1
|
+
import type { CreateUIWebsiteEvent, UIWebsiteMargin, UIWebsitePosition, UIWebsiteSize, UIWebsiteEvent } from "../../Events/Ui/UIWebsiteEvent";
|
|
2
2
|
import { IframeApiContribution } from "../IframeApiContribution";
|
|
3
3
|
export declare class UIWebsite {
|
|
4
4
|
readonly id: string;
|
|
@@ -9,7 +9,7 @@ export declare class UIWebsite {
|
|
|
9
9
|
private _position;
|
|
10
10
|
private _size;
|
|
11
11
|
private _margin;
|
|
12
|
-
constructor(config:
|
|
12
|
+
constructor(config: UIWebsiteEvent);
|
|
13
13
|
get url(): string;
|
|
14
14
|
set url(url: string);
|
|
15
15
|
get visible(): boolean;
|
package/iframe_api.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import type { CoWebsite } from "./front/Api/Iframe/nav";
|
|
|
2
2
|
import type { ButtonDescriptor } from "./front/Api/Iframe/Ui/ButtonDescriptor";
|
|
3
3
|
import type { Popup } from "./front/Api/Iframe/Ui/Popup";
|
|
4
4
|
import type { Sound } from "./front/Api/Iframe/Sound/Sound";
|
|
5
|
+
export type { CreateUIWebsiteEvent, ModifyUIWebsiteEvent, UIWebsiteEvent, UIWebsiteCSSValue, UIWebsiteMargin, UIWebsitePosition, UIWebsiteSize, ViewportPositionHorizontal, ViewportPositionVertical, } from "./front/Api/Events/Ui/UIWebsiteEvent";
|
|
6
|
+
export type { CreateEmbeddedWebsiteEvent, ModifyEmbeddedWebsiteEvent, Rectangle, } from "./front/Api/Events/EmbeddedWebsiteEvent";
|
|
5
7
|
export type { UIWebsite } from "./front/Api/Iframe/Ui/UIWebsite";
|
|
6
8
|
export type { Menu } from "./front/Api/Iframe/Ui/Menu";
|
|
7
9
|
export type { ActionMessage } from "./front/Api/Iframe/Ui/ActionMessage";
|