@mat3ra/esse 2024.4.8-3 → 2024.4.8-5

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/dist/js/types.ts CHANGED
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mat3ra/esse",
3
- "version": "2024.4.8-3",
3
+ "version": "2024.4.8-5",
4
4
  "description": "Mat3ra's Excellent Source of Schemas and Examples (ESSE) for Digital Materials R&D",
5
5
  "scripts": {
6
6
  "transpile": "tsc -p tsconfig-transpile.json",
@@ -11,6 +11,10 @@
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,6 +24,11 @@
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": {