File tree 5 files changed +38
-10
lines changed
5 files changed +38
-10
lines changed Original file line number Diff line number Diff line change 16
16
"enum" : [
17
17
" from-iframe-to-host" ,
18
18
" from-host-to-iframe"
19
+ ],
20
+ "tsEnumNames" : [
21
+ " fromIframeToHost" ,
22
+ " fromHostToIframe"
19
23
]
20
24
},
21
25
"action" : {
25
29
" set-data" ,
26
30
" get-data" ,
27
31
" info"
32
+ ],
33
+ "tsEnumNames" : [
34
+ " setData" ,
35
+ " getData" ,
36
+ " info"
28
37
]
29
38
},
30
39
"payload" : {
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -27025,19 +27025,29 @@ export interface HistorySchema {
27025
27025
* communication message between iframe and the parent window.
27026
27026
*/
27027
27027
export interface IframeMessageSchema {
27028
- /**
27029
- * The type of the message to distinguish the direction of the message.
27030
- */
27031
- type: "from-iframe-to-host" | "from-host-to-iframe";
27032
- /**
27033
- * The action to be performed upon receiving the message.
27034
- */
27035
- action: "set-data" | "get-data" | "info";
27028
+ type: Type;
27029
+ action: Action;
27036
27030
/**
27037
27031
* The content of the message with actual data.
27038
27032
*/
27039
27033
payload: {};
27040
27034
}
27035
+
27036
+ /**
27037
+ * The type of the message to distinguish the direction of the message.
27038
+ */
27039
+ export const enum Type {
27040
+ fromIframeToHost = "from-iframe-to-host",
27041
+ fromHostToIframe = "from-host-to-iframe"
27042
+ }
27043
+ /**
27044
+ * The action to be performed upon receiving the message.
27045
+ */
27046
+ export const enum Action {
27047
+ setData = "set-data",
27048
+ getData = "get-data",
27049
+ info = "info"
27050
+ }
27041
27051
27042
27052
/** Schema dist/js/schema/system/in_set.json */
27043
27053
Original file line number Diff line number Diff line change 11
11
"enum" : [
12
12
" from-iframe-to-host" ,
13
13
" from-host-to-iframe"
14
+ ],
15
+ "tsEnumNames" : [
16
+ " fromIframeToHost" ,
17
+ " fromHostToIframe"
14
18
]
15
19
},
16
20
"action" : {
20
24
" set-data" ,
21
25
" get-data" ,
22
26
" info"
27
+ ],
28
+ "tsEnumNames" : [
29
+ " setData" ,
30
+ " getData" ,
31
+ " info"
23
32
]
24
33
},
25
34
"payload" : {
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments