@mat3ra/esse 2024.3.14-0 → 2024.3.20-0

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.
@@ -0,0 +1,9 @@
1
+ {
2
+ "type": "from-iframe-to-host",
3
+ "action": "set-data",
4
+ "payload": {
5
+ "property": {
6
+ "name": "material"
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "type": "from-iframe-to-host",
3
+ "action": "set-data",
4
+ "payload": {
5
+ "property": {
6
+ "name": "material"
7
+ }
8
+ }
9
+ }
@@ -53,6 +53,20 @@
53
53
  }
54
54
  }
55
55
  },
56
+ "labels": {
57
+ "description": "Optional numeric label (e.g., 1, 2, as in Fe1, Fe2) to distinguish same atomic species to attach different spin magnetic moment.",
58
+ "type": "array",
59
+ "items": {
60
+ "properties": {
61
+ "id": {
62
+ "type": "number"
63
+ },
64
+ "value": {
65
+ "type": "number"
66
+ }
67
+ }
68
+ }
69
+ },
56
70
  "coordinates": {
57
71
  "type": "array",
58
72
  "items": {
@@ -36,6 +36,20 @@
36
36
  }
37
37
  }
38
38
  },
39
+ "labels": {
40
+ "description": "Optional numeric label (e.g., 1, 2, as in Fe1, Fe2) to distinguish same atomic species to attach different spin magnetic moment.",
41
+ "type": "array",
42
+ "items": {
43
+ "properties": {
44
+ "id": {
45
+ "type": "number"
46
+ },
47
+ "value": {
48
+ "type": "number"
49
+ }
50
+ }
51
+ }
52
+ },
39
53
  "coordinates": {
40
54
  "type": "array",
41
55
  "items": {
@@ -0,0 +1,35 @@
1
+ {
2
+ "$id": "system/iframe-message",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "iframe message schema",
5
+ "description": "communication message between iframe and the parent window.",
6
+ "type": "object",
7
+ "required": [
8
+ "type",
9
+ "action",
10
+ "payload"
11
+ ],
12
+ "properties": {
13
+ "type": {
14
+ "description": "The type of the message to distinguish the direction of the message.",
15
+ "type": "string",
16
+ "enum": [
17
+ "from-iframe-to-host",
18
+ "from-host-to-iframe"
19
+ ]
20
+ },
21
+ "action": {
22
+ "description": "The action to be performed upon receiving the message.",
23
+ "type": "string",
24
+ "enum": [
25
+ "set-data",
26
+ "get-data",
27
+ "info"
28
+ ]
29
+ },
30
+ "payload": {
31
+ "description": "The content of the message with actual data.",
32
+ "type": "object"
33
+ }
34
+ }
35
+ }