@workadventure/iframe-api-typings 1.25.6 → 1.25.8
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.
- package/iframe_api.d.ts +1 -111
- package/libs/shared-utils/src/Events/ChatEvent.d.ts +168 -0
- package/package.json +2 -2
- package/{Api → play/src/front/Api}/Events/ActionsMenuActionClickedEvent.d.ts +2 -2
- package/{Api → play/src/front/Api}/Events/AddActionsMenuKeyToRemotePlayerEvent.d.ts +2 -2
- package/{Api → play/src/front/Api}/Events/AddPlayerEvent.d.ts +17 -11
- package/{Api → play/src/front/Api}/Events/AskPositionEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/ButtonClickedEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/CameraFollowPlayerEvent.d.ts +4 -1
- package/{Api → play/src/front/Api}/Events/CameraSetEvent.d.ts +8 -5
- package/{Api → play/src/front/Api}/Events/ChangeAreaEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/ChangeLayerEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/ChatVisibilityEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/ClosePopupEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/ColorEvent.d.ts +1 -1
- package/{Api/Events/CreateAreaEvent.d.ts → play/src/front/Api/Events/CreateDynamicAreaEvent.d.ts} +14 -14
- package/{Api → play/src/front/Api}/Events/EmbeddedWebsiteEvent.d.ts +32 -32
- package/{Api → play/src/front/Api}/Events/EnablePlayersTrackingEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/EnterLeaveEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/GameStateEvent.d.ts +17 -8
- package/{Api → play/src/front/Api}/Events/GoToPageEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/HasPlayerMovedEvent.d.ts +5 -5
- package/{Api → play/src/front/Api}/Events/IframeEvent.d.ts +1849 -486
- package/{Api → play/src/front/Api}/Events/JoinMucEvent.d.ts +3 -3
- package/{Api → play/src/front/Api}/Events/LayerEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/LeaveMucEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/LoadPageEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/LoadSoundEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/LoadTilesetEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/MapDataEvent.d.ts +1 -1
- package/play/src/front/Api/Events/ModalEvent.d.ts +27 -0
- package/{Api → play/src/front/Api}/Events/MovePlayerToEvent.d.ts +3 -3
- package/{Api → play/src/front/Api}/Events/MovePlayerToEventAnswer.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/OpenCoWebsiteEvent.d.ts +3 -3
- package/{Api → play/src/front/Api}/Events/OpenPopupEvent.d.ts +7 -7
- package/{Api → play/src/front/Api}/Events/OpenTabEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/PlaySoundEvent.d.ts +3 -3
- package/{Api → play/src/front/Api}/Events/PlayerPosition.d.ts +1 -1
- package/play/src/front/Api/Events/ProximityMeeting/AppendPCMDataEvent.d.ts +14 -0
- package/{Api → play/src/front/Api}/Events/ProximityMeeting/JoinProximityMeetingEvent.d.ts +14 -9
- package/{Api → play/src/front/Api}/Events/ProximityMeeting/ParticipantProximityMeetingEvent.d.ts +14 -9
- package/play/src/front/Api/Events/ProximityMeeting/PlaySoundInBubbleEvent.d.ts +12 -0
- package/play/src/front/Api/Events/ProximityMeeting/StartStreamInBubbleEvent.d.ts +13 -0
- package/play/src/front/Api/Events/ReceiveEventEvent.d.ts +48 -0
- package/{Api → play/src/front/Api}/Events/RemoveActionsMenuKeyFromRemotePlayerEvent.d.ts +2 -2
- package/play/src/front/Api/Events/SendEventEvent.d.ts +48 -0
- package/{Api → play/src/front/Api}/Events/SetAreaPropertyEvent.d.ts +3 -3
- package/{Api → play/src/front/Api}/Events/SetPlayerVariableEvent.d.ts +6 -6
- package/{Api → play/src/front/Api}/Events/SetPropertyEvent.d.ts +3 -3
- package/{Api → play/src/front/Api}/Events/SetSharedPlayerVariableEvent.d.ts +4 -4
- package/{Api → play/src/front/Api}/Events/SetTilesEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/SetVariableEvent.d.ts +7 -7
- package/play/src/front/Api/Events/SettingsEvent.d.ts +24 -0
- package/{Api → play/src/front/Api}/Events/ShowBusinessCardEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/StopSoundEvent.d.ts +1 -1
- package/play/src/front/Api/Events/TeleportPlayerToEvent.d.ts +12 -0
- package/play/src/front/Api/Events/Ui/BannerEvent.d.ts +42 -0
- package/play/src/front/Api/Events/Ui/ButtonActionBarEvent.d.ts +38 -0
- package/{Api/Events/Ui/MenuRegisterEvent.d.ts → play/src/front/Api/Events/Ui/MenuEvents.d.ts} +29 -7
- package/{Api → play/src/front/Api}/Events/Ui/MenuItemClickedEvent.d.ts +1 -1
- package/play/src/front/Api/Events/Ui/PlayVideoEvent.d.ts +67 -0
- package/{Api → play/src/front/Api}/Events/Ui/TriggerActionMessageEvent.d.ts +3 -3
- package/play/src/front/Api/Events/Ui/TriggerPlayerMessageEvent.d.ts +27 -0
- package/{Api/Events/Ui/UIWebsite.d.ts → play/src/front/Api/Events/Ui/UIWebsiteEvent.d.ts} +95 -95
- package/{Api → play/src/front/Api}/Events/UserInputChatEvent.d.ts +4 -1
- package/play/src/front/Api/Events/WamMapDataEvent.d.ts +12 -0
- package/{Api → play/src/front/Api}/Events/WasCameraUpdatedEvent.d.ts +6 -6
- package/play/src/front/Api/Iframe/AbstractEvent.d.ts +18 -0
- package/play/src/front/Api/Iframe/AbstractState.d.ts +19 -0
- package/{Api → play/src/front/Api}/Iframe/Area/Area.d.ts +5 -4
- package/{Api → play/src/front/Api}/Iframe/IframeApiContribution.d.ts +2 -2
- package/play/src/front/Api/Iframe/MapEditor/MapEditorArea.d.ts +12 -0
- package/play/src/front/Api/Iframe/Player/AudioStream.d.ts +5 -0
- package/play/src/front/Api/Iframe/Player/ProximityMeeting.d.ts +164 -0
- package/{Api → play/src/front/Api}/Iframe/Players/RemotePlayer.d.ts +14 -12
- package/play/src/front/Api/Iframe/PrivatePlayerState.d.ts +7 -0
- package/play/src/front/Api/Iframe/PublicPlayerState.d.ts +11 -0
- package/{Api → play/src/front/Api}/Iframe/Room/EmbeddedWebsite.d.ts +0 -3
- package/play/src/front/Api/Iframe/RoomState.d.ts +7 -0
- package/{Api → play/src/front/Api}/Iframe/Sound/Sound.d.ts +1 -1
- package/play/src/front/Api/Iframe/Ui/Banner.d.ts +21 -0
- package/play/src/front/Api/Iframe/Ui/ButtonActionBar.d.ts +25 -0
- package/{Api → play/src/front/Api}/Iframe/Ui/ButtonDescriptor.d.ts +1 -1
- package/play/src/front/Api/Iframe/Ui/Menu.d.ts +12 -0
- package/play/src/front/Api/Iframe/Ui/Modal.d.ts +28 -0
- package/play/src/front/Api/Iframe/Ui/PlayerMessage.d.ts +12 -0
- package/{Api → play/src/front/Api}/Iframe/Ui/UIWebsite.d.ts +11 -4
- package/play/src/front/Api/Iframe/Ui/Video.d.ts +5 -0
- package/{Api → play/src/front/Api}/Iframe/area.d.ts +9 -9
- package/{Api → play/src/front/Api}/Iframe/camera.d.ts +9 -9
- package/play/src/front/Api/Iframe/chat.d.ts +69 -0
- package/play/src/front/Api/Iframe/controls.d.ts +116 -0
- package/play/src/front/Api/Iframe/event.d.ts +15 -0
- package/play/src/front/Api/Iframe/mapEditor.d.ts +52 -0
- package/{Api → play/src/front/Api}/Iframe/nav.d.ts +9 -5
- package/{Api → play/src/front/Api}/Iframe/player.d.ts +41 -21
- package/{Api → play/src/front/Api}/Iframe/playerState.d.ts +8 -6
- package/{Api → play/src/front/Api}/Iframe/players.d.ts +30 -18
- package/{Api → play/src/front/Api}/Iframe/registeredCallbacks.d.ts +1 -1
- package/{Api → play/src/front/Api}/Iframe/room.d.ts +23 -16
- package/{Api → play/src/front/Api}/Iframe/sound.d.ts +1 -1
- package/{Api → play/src/front/Api}/Iframe/state.d.ts +5 -6
- package/{Api → play/src/front/Api}/Iframe/ui.d.ts +50 -8
- package/{Api → play/src/front/Api}/Iframe/website.d.ts +4 -4
- package/play/src/front/Api/types.d.ts +3 -0
- package/play/src/iframe_api.d.ts +130 -0
- package/Api/Events/ChatEvent.d.ts +0 -44
- package/Api/Events/NotificationEvent.d.ts +0 -18
- package/Api/Events/SettingsEvent.d.ts +0 -12
- package/Api/Iframe/AbstractState.d.ts +0 -14
- package/Api/Iframe/Player/ProximityMeeting.d.ts +0 -85
- package/Api/Iframe/Ui/Menu.d.ts +0 -8
- package/Api/Iframe/chat.d.ts +0 -36
- package/Api/Iframe/controls.d.ts +0 -56
- package/Api/types.d.ts +0 -3
- /package/{Api → play/src/front/Api}/Iframe/Ui/ActionMessage.d.ts +0 -0
- /package/{Api → play/src/front/Api}/Iframe/Ui/Popup.d.ts +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const isUIWebsiteCSSValue: z.ZodString;
|
|
3
|
-
export
|
|
3
|
+
export type UIWebsiteCSSValue = z.infer<typeof isUIWebsiteCSSValue>;
|
|
4
4
|
export declare const isUIWebsiteMargin: z.ZodObject<{
|
|
5
5
|
top: z.ZodOptional<z.ZodString>;
|
|
6
6
|
bottom: z.ZodOptional<z.ZodString>;
|
|
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
|
-
export
|
|
20
|
+
export type UIWebsiteMargin = z.infer<typeof isUIWebsiteMargin>;
|
|
21
21
|
export declare const isViewportPositionVertical: z.ZodEnum<["top", "middle", "bottom"]>;
|
|
22
|
-
export
|
|
22
|
+
export type ViewportPositionVertical = z.infer<typeof isViewportPositionVertical>;
|
|
23
23
|
export declare const isViewportPositionHorizontal: z.ZodEnum<["left", "middle", "right"]>;
|
|
24
|
-
export
|
|
24
|
+
export type ViewportPositionHorizontal = z.infer<typeof isViewportPositionHorizontal>;
|
|
25
25
|
export declare const isUIWebsitePosition: z.ZodObject<{
|
|
26
26
|
vertical: z.ZodEnum<["top", "middle", "bottom"]>;
|
|
27
27
|
horizontal: z.ZodEnum<["left", "middle", "right"]>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
vertical: "top" | "
|
|
30
|
-
horizontal: "
|
|
29
|
+
vertical: "top" | "bottom" | "middle";
|
|
30
|
+
horizontal: "left" | "right" | "middle";
|
|
31
31
|
}, {
|
|
32
|
-
vertical: "top" | "
|
|
33
|
-
horizontal: "
|
|
32
|
+
vertical: "top" | "bottom" | "middle";
|
|
33
|
+
horizontal: "left" | "right" | "middle";
|
|
34
34
|
}>;
|
|
35
|
-
export
|
|
35
|
+
export type UIWebsitePosition = z.infer<typeof isUIWebsitePosition>;
|
|
36
36
|
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
|
-
export
|
|
46
|
+
export type UIWebsiteSize = z.infer<typeof isUIWebsiteSize>;
|
|
47
47
|
export declare const isCreateUIWebsiteEvent: z.ZodObject<{
|
|
48
48
|
url: z.ZodString;
|
|
49
49
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -53,78 +53,78 @@ export declare const isCreateUIWebsiteEvent: z.ZodObject<{
|
|
|
53
53
|
vertical: z.ZodEnum<["top", "middle", "bottom"]>;
|
|
54
54
|
horizontal: z.ZodEnum<["left", "middle", "right"]>;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
vertical: "top" | "
|
|
57
|
-
horizontal: "
|
|
56
|
+
vertical: "top" | "bottom" | "middle";
|
|
57
|
+
horizontal: "left" | "right" | "middle";
|
|
58
58
|
}, {
|
|
59
|
-
vertical: "top" | "
|
|
60
|
-
horizontal: "
|
|
59
|
+
vertical: "top" | "bottom" | "middle";
|
|
60
|
+
horizontal: "left" | "right" | "middle";
|
|
61
61
|
}>;
|
|
62
62
|
size: 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
|
-
top: z.ZodOptional<z.ZodString
|
|
74
|
-
bottom: z.ZodOptional<z.ZodString
|
|
75
|
-
left: z.ZodOptional<z.ZodString
|
|
76
|
-
right: z.ZodOptional<z.ZodString
|
|
73
|
+
top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
74
|
+
bottom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
75
|
+
left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
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, {
|
|
89
|
+
url: string;
|
|
90
|
+
position: {
|
|
91
|
+
vertical: "top" | "bottom" | "middle";
|
|
92
|
+
horizontal: "left" | "right" | "middle";
|
|
93
|
+
};
|
|
94
|
+
size: {
|
|
95
|
+
height: string;
|
|
96
|
+
width: string;
|
|
97
|
+
};
|
|
89
98
|
allowApi?: boolean | undefined;
|
|
90
99
|
allowPolicy?: string | undefined;
|
|
91
100
|
visible?: boolean | undefined;
|
|
92
101
|
margin?: {
|
|
102
|
+
left?: string | undefined;
|
|
93
103
|
top?: string | undefined;
|
|
94
104
|
bottom?: string | undefined;
|
|
95
|
-
left?: string | undefined;
|
|
96
105
|
right?: string | undefined;
|
|
97
106
|
} | undefined;
|
|
107
|
+
}, {
|
|
98
108
|
url: string;
|
|
99
109
|
position: {
|
|
100
|
-
vertical: "top" | "
|
|
101
|
-
horizontal: "
|
|
110
|
+
vertical: "top" | "bottom" | "middle";
|
|
111
|
+
horizontal: "left" | "right" | "middle";
|
|
102
112
|
};
|
|
103
113
|
size: {
|
|
104
|
-
width: string;
|
|
105
114
|
height: string;
|
|
115
|
+
width: string;
|
|
106
116
|
};
|
|
107
|
-
}, {
|
|
108
117
|
allowApi?: boolean | undefined;
|
|
109
118
|
allowPolicy?: string | undefined;
|
|
110
119
|
visible?: boolean | undefined;
|
|
111
120
|
margin?: {
|
|
121
|
+
left?: string | undefined;
|
|
112
122
|
top?: string | undefined;
|
|
113
123
|
bottom?: string | undefined;
|
|
114
|
-
left?: string | undefined;
|
|
115
124
|
right?: string | undefined;
|
|
116
125
|
} | undefined;
|
|
117
|
-
url: string;
|
|
118
|
-
position: {
|
|
119
|
-
vertical: "top" | "middle" | "bottom";
|
|
120
|
-
horizontal: "middle" | "left" | "right";
|
|
121
|
-
};
|
|
122
|
-
size: {
|
|
123
|
-
width: string;
|
|
124
|
-
height: string;
|
|
125
|
-
};
|
|
126
126
|
}>;
|
|
127
|
-
export
|
|
127
|
+
export type CreateUIWebsiteEvent = z.infer<typeof isCreateUIWebsiteEvent>;
|
|
128
128
|
export declare const isModifyUIWebsiteEvent: z.ZodObject<{
|
|
129
129
|
id: z.ZodString;
|
|
130
130
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -133,77 +133,77 @@ export declare const isModifyUIWebsiteEvent: z.ZodObject<{
|
|
|
133
133
|
vertical: z.ZodEnum<["top", "middle", "bottom"]>;
|
|
134
134
|
horizontal: z.ZodEnum<["left", "middle", "right"]>;
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
vertical: "top" | "
|
|
137
|
-
horizontal: "
|
|
136
|
+
vertical: "top" | "bottom" | "middle";
|
|
137
|
+
horizontal: "left" | "right" | "middle";
|
|
138
138
|
}, {
|
|
139
|
-
vertical: "top" | "
|
|
140
|
-
horizontal: "
|
|
139
|
+
vertical: "top" | "bottom" | "middle";
|
|
140
|
+
horizontal: "left" | "right" | "middle";
|
|
141
141
|
}>>;
|
|
142
142
|
size: z.ZodOptional<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
|
-
top: z.ZodOptional<z.ZodString
|
|
154
|
-
bottom: z.ZodOptional<z.ZodString
|
|
155
|
-
left: z.ZodOptional<z.ZodString
|
|
156
|
-
right: z.ZodOptional<z.ZodString
|
|
153
|
+
top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
154
|
+
bottom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
155
|
+
left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
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, {
|
|
169
|
+
id: string;
|
|
169
170
|
url?: string | undefined;
|
|
170
171
|
position?: {
|
|
171
|
-
vertical: "top" | "
|
|
172
|
-
horizontal: "
|
|
172
|
+
vertical: "top" | "bottom" | "middle";
|
|
173
|
+
horizontal: "left" | "right" | "middle";
|
|
173
174
|
} | undefined;
|
|
174
175
|
visible?: boolean | undefined;
|
|
175
176
|
size?: {
|
|
176
|
-
width: string;
|
|
177
177
|
height: string;
|
|
178
|
+
width: string;
|
|
178
179
|
} | undefined;
|
|
179
180
|
margin?: {
|
|
181
|
+
left?: string | undefined;
|
|
180
182
|
top?: string | undefined;
|
|
181
183
|
bottom?: string | undefined;
|
|
182
|
-
left?: string | undefined;
|
|
183
184
|
right?: string | undefined;
|
|
184
185
|
} | undefined;
|
|
185
|
-
id: string;
|
|
186
186
|
}, {
|
|
187
|
+
id: string;
|
|
187
188
|
url?: string | undefined;
|
|
188
189
|
position?: {
|
|
189
|
-
vertical: "top" | "
|
|
190
|
-
horizontal: "
|
|
190
|
+
vertical: "top" | "bottom" | "middle";
|
|
191
|
+
horizontal: "left" | "right" | "middle";
|
|
191
192
|
} | undefined;
|
|
192
193
|
visible?: boolean | undefined;
|
|
193
194
|
size?: {
|
|
194
|
-
width: string;
|
|
195
195
|
height: string;
|
|
196
|
+
width: string;
|
|
196
197
|
} | undefined;
|
|
197
198
|
margin?: {
|
|
199
|
+
left?: string | undefined;
|
|
198
200
|
top?: string | undefined;
|
|
199
201
|
bottom?: string | undefined;
|
|
200
|
-
left?: string | undefined;
|
|
201
202
|
right?: string | undefined;
|
|
202
203
|
} | undefined;
|
|
203
|
-
id: string;
|
|
204
204
|
}>;
|
|
205
|
-
export
|
|
206
|
-
export declare const
|
|
205
|
+
export type ModifyUIWebsiteEvent = z.infer<typeof isModifyUIWebsiteEvent>;
|
|
206
|
+
export declare const isUIWebsiteEvent: z.ZodObject<{
|
|
207
207
|
id: z.ZodString;
|
|
208
208
|
url: z.ZodString;
|
|
209
209
|
visible: z.ZodBoolean;
|
|
@@ -213,77 +213,77 @@ export declare const isUIWebsite: z.ZodObject<{
|
|
|
213
213
|
vertical: z.ZodEnum<["top", "middle", "bottom"]>;
|
|
214
214
|
horizontal: z.ZodEnum<["left", "middle", "right"]>;
|
|
215
215
|
}, "strip", z.ZodTypeAny, {
|
|
216
|
-
vertical: "top" | "
|
|
217
|
-
horizontal: "
|
|
216
|
+
vertical: "top" | "bottom" | "middle";
|
|
217
|
+
horizontal: "left" | "right" | "middle";
|
|
218
218
|
}, {
|
|
219
|
-
vertical: "top" | "
|
|
220
|
-
horizontal: "
|
|
219
|
+
vertical: "top" | "bottom" | "middle";
|
|
220
|
+
horizontal: "left" | "right" | "middle";
|
|
221
221
|
}>;
|
|
222
222
|
size: 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
|
-
top: z.ZodOptional<z.ZodString
|
|
234
|
-
bottom: z.ZodOptional<z.ZodString
|
|
235
|
-
left: z.ZodOptional<z.ZodString
|
|
236
|
-
right: z.ZodOptional<z.ZodString
|
|
233
|
+
top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
234
|
+
bottom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
235
|
+
left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
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
|
-
margin?: {
|
|
250
|
-
top?: string | undefined;
|
|
251
|
-
bottom?: string | undefined;
|
|
252
|
-
left?: string | undefined;
|
|
253
|
-
right?: string | undefined;
|
|
254
|
-
} | undefined;
|
|
255
249
|
url: string;
|
|
250
|
+
id: string;
|
|
256
251
|
allowApi: boolean;
|
|
257
252
|
allowPolicy: string;
|
|
258
253
|
position: {
|
|
259
|
-
vertical: "top" | "
|
|
260
|
-
horizontal: "
|
|
254
|
+
vertical: "top" | "bottom" | "middle";
|
|
255
|
+
horizontal: "left" | "right" | "middle";
|
|
261
256
|
};
|
|
262
|
-
id: string;
|
|
263
257
|
visible: boolean;
|
|
264
258
|
size: {
|
|
265
|
-
width: string;
|
|
266
259
|
height: string;
|
|
260
|
+
width: string;
|
|
267
261
|
};
|
|
268
|
-
}, {
|
|
269
262
|
margin?: {
|
|
263
|
+
left?: string | undefined;
|
|
270
264
|
top?: string | undefined;
|
|
271
265
|
bottom?: string | undefined;
|
|
272
|
-
left?: string | undefined;
|
|
273
266
|
right?: string | undefined;
|
|
274
267
|
} | undefined;
|
|
268
|
+
}, {
|
|
275
269
|
url: string;
|
|
270
|
+
id: string;
|
|
276
271
|
allowApi: boolean;
|
|
277
272
|
allowPolicy: string;
|
|
278
273
|
position: {
|
|
279
|
-
vertical: "top" | "
|
|
280
|
-
horizontal: "
|
|
274
|
+
vertical: "top" | "bottom" | "middle";
|
|
275
|
+
horizontal: "left" | "right" | "middle";
|
|
281
276
|
};
|
|
282
|
-
id: string;
|
|
283
277
|
visible: boolean;
|
|
284
278
|
size: {
|
|
285
|
-
width: string;
|
|
286
279
|
height: string;
|
|
280
|
+
width: string;
|
|
287
281
|
};
|
|
282
|
+
margin?: {
|
|
283
|
+
left?: string | undefined;
|
|
284
|
+
top?: string | undefined;
|
|
285
|
+
bottom?: string | undefined;
|
|
286
|
+
right?: string | undefined;
|
|
287
|
+
} | undefined;
|
|
288
288
|
}>;
|
|
289
|
-
export
|
|
289
|
+
export type UIWebsiteEvent = z.infer<typeof isUIWebsiteEvent>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const isUserInputChatEvent: z.ZodObject<{
|
|
3
3
|
message: z.ZodString;
|
|
4
|
+
senderId: z.ZodOptional<z.ZodString>;
|
|
4
5
|
}, "strip", z.ZodTypeAny, {
|
|
5
6
|
message: string;
|
|
7
|
+
senderId?: string | undefined;
|
|
6
8
|
}, {
|
|
7
9
|
message: string;
|
|
10
|
+
senderId?: string | undefined;
|
|
8
11
|
}>;
|
|
9
12
|
/**
|
|
10
13
|
* A message sent from the game to the iFrame when a user types a message in the chat.
|
|
11
14
|
*/
|
|
12
|
-
export
|
|
15
|
+
export type UserInputChatEvent = z.infer<typeof isUserInputChatEvent>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const isWamMapDataEvent: z.ZodObject<{
|
|
3
|
+
data: z.ZodUnknown;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
data?: unknown;
|
|
6
|
+
}, {
|
|
7
|
+
data?: unknown;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* A message sent from the game to the iFrame with the content of the WAM file. We don't type the content of the WAM file for performance reasons.
|
|
11
|
+
*/
|
|
12
|
+
export type MapDataEvent = z.infer<typeof isWamMapDataEvent>;
|
|
@@ -6,20 +6,20 @@ 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
|
/**
|
|
22
22
|
* A message sent from the game to the iFrame to notify a movement from the camera.
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
25
|
-
export
|
|
24
|
+
export type WasCameraUpdatedEvent = z.infer<typeof isWasCameraUpdatedEvent>;
|
|
25
|
+
export type WasCameraUpdatedEventCallback = (event: WasCameraUpdatedEvent) => void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Observable } from "rxjs";
|
|
2
|
+
import { Subject } from "rxjs";
|
|
3
|
+
import { ReceiveEventEvent } from "../Events/ReceiveEventEvent";
|
|
4
|
+
export type ScriptingEvent = ReceiveEventEvent;
|
|
5
|
+
export declare abstract class AbstractWorkadventureEventCommands {
|
|
6
|
+
protected receivedEventResolvers: Subject<{
|
|
7
|
+
name: string;
|
|
8
|
+
data?: unknown;
|
|
9
|
+
senderId?: number | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
protected eventSubscribers: Map<string, Subject<{
|
|
12
|
+
name: string;
|
|
13
|
+
data?: unknown;
|
|
14
|
+
senderId?: number | undefined;
|
|
15
|
+
}>>;
|
|
16
|
+
protected constructor();
|
|
17
|
+
on(key: string): Observable<ScriptingEvent>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Observable } from "rxjs";
|
|
2
|
+
import { Subject } from "rxjs";
|
|
3
|
+
export declare abstract class AbstractWorkadventureStateCommands<State extends {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}> {
|
|
6
|
+
protected setVariableResolvers: Subject<{
|
|
7
|
+
key: string;
|
|
8
|
+
value?: unknown;
|
|
9
|
+
}>;
|
|
10
|
+
protected variables: Partial<State>;
|
|
11
|
+
protected variableSubscribers: Partial<{
|
|
12
|
+
[K in keyof State]: Subject<State[K]>;
|
|
13
|
+
}>;
|
|
14
|
+
protected constructor();
|
|
15
|
+
initVariables(_variables: Map<string, unknown>): void;
|
|
16
|
+
loadVariable<K extends keyof State>(key: K): State[K] | undefined;
|
|
17
|
+
hasVariable<K extends keyof State>(key: K): boolean;
|
|
18
|
+
onVariableChange<K extends keyof State>(key: K): Observable<State[K]>;
|
|
19
|
+
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { ITiledMapObject } from "@workadventure/tiled-map-type-guard";
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
1
|
+
import type { ITiledMapObject } from "@workadventure/tiled-map-type-guard";
|
|
2
|
+
import type { CreateDynamicAreaEvent } from "../../Events/CreateDynamicAreaEvent";
|
|
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;
|
|
6
6
|
readonly name: string;
|
|
7
7
|
readonly type: string;
|
|
8
|
+
readonly class: string;
|
|
8
9
|
private _x;
|
|
9
10
|
private _y;
|
|
10
11
|
private _width;
|
|
11
12
|
private _height;
|
|
12
|
-
constructor(config:
|
|
13
|
+
constructor(config: CreateDynamicAreaEvent);
|
|
13
14
|
setProperty(propertyName: string, propertyValue: string | number | boolean | undefined): void;
|
|
14
15
|
get x(): number;
|
|
15
16
|
set x(x: number);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { IframeEvent, IframeQuery, IframeQueryMap } from "../Events/IframeEvent";
|
|
2
|
-
export declare function sendToWorkadventure(content: IframeEvent): void;
|
|
2
|
+
export declare function sendToWorkadventure(content: IframeEvent, transfer?: Transferable[]): void;
|
|
3
3
|
export declare const answerPromises: Map<number, {
|
|
4
4
|
resolve: (value: IframeQueryMap[keyof IframeQueryMap]["answer"] | PromiseLike<IframeQueryMap[keyof IframeQueryMap]["answer"]>) => void;
|
|
5
5
|
reject: (reason?: any) => void;
|
|
6
6
|
}>;
|
|
7
|
-
export declare function queryWorkadventure<T extends keyof IframeQueryMap>(content: IframeQuery<T
|
|
7
|
+
export declare function queryWorkadventure<T extends keyof IframeQueryMap>(content: IframeQuery<T>, transfer?: Transferable[]): Promise<IframeQueryMap[T]["answer"]>;
|
|
8
8
|
/**
|
|
9
9
|
* !! be aware that the implemented attributes (addMethodsAtRoot and subObjectIdentifier) must be readonly
|
|
10
10
|
*
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AreaData } from "@workadventure/map-editor";
|
|
2
|
+
export interface MapEditorArea {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string | undefined;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
searchable: boolean | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare function toMapEditorArea(area: AreaData): MapEditorArea;
|