@kumwe/studio-testkit 0.1.0-alpha.4 → 0.1.0-alpha.6

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.
Files changed (30) hide show
  1. package/dist/http-host-adapter.d.ts +74 -0
  2. package/dist/http-host-adapter.d.ts.map +1 -0
  3. package/dist/http-host-adapter.js +241 -0
  4. package/dist/http-host-adapter.js.map +1 -0
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -0
  8. package/dist/index.js.map +1 -1
  9. package/fixtures/design-vocabulary.example.json +85 -0
  10. package/fixtures/migration.example.json +22 -0
  11. package/invalid/blueprint.revoking-slot-marker.json +57 -0
  12. package/invalid/design-vocabulary.unknown-control-kind.json +38 -0
  13. package/invalid/migration.empty-artifact-kinds.json +22 -0
  14. package/package.json +3 -3
  15. package/vectors/command/mode.blueprint.set-field-value.error.json +76 -0
  16. package/vectors/command/mode.blueprint.set-property.json +131 -0
  17. package/vectors/command/mode.content.insert-node.error.json +88 -0
  18. package/vectors/command/mode.hybrid.batch-atomic.error.json +158 -0
  19. package/vectors/command/mode.hybrid.insert-allowed.json +263 -0
  20. package/vectors/command/mode.hybrid.insert-designer-slot.error.json +145 -0
  21. package/vectors/command/mode.hybrid.insert-disallowed-type.error.json +145 -0
  22. package/vectors/command/mode.hybrid.insert-roots.error.json +143 -0
  23. package/vectors/command/mode.hybrid.remove-locked.error.json +130 -0
  24. package/vectors/command/mode.hybrid.reorder-with-locked.json +239 -0
  25. package/vectors/command/mode.hybrid.set-property.error.json +132 -0
  26. package/vectors/command/mode.hybrid.slot-marker-disallowed.error.json +125 -0
  27. package/vectors/command/mode.hybrid.slot-marker-insert.json +223 -0
  28. package/vectors/command/mode.hybrid.slot-marker-other-slot.error.json +125 -0
  29. package/vectors/command/mode.model.remove-node.error.json +75 -0
  30. package/vectors/command/mode.read-only.set-property.error.json +77 -0
@@ -0,0 +1,223 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "command-vector",
4
+ "id": "vector.command-vector.mode.hybrid.slot-marker-insert",
5
+ "description": "A per-slot composition marker makes one named slot of a non-structural node composable.",
6
+ "mode": "hybrid",
7
+ "initial": {
8
+ "contractVersion": "0.1-draft",
9
+ "dependencyLock": {
10
+ "blocks": [
11
+ {
12
+ "revision": "block-r1",
13
+ "type": "studio.vector/card",
14
+ "version": "1.0.0"
15
+ },
16
+ {
17
+ "revision": "block-r1",
18
+ "type": "studio.vector/section",
19
+ "version": "1.0.0"
20
+ }
21
+ ],
22
+ "theme": {
23
+ "id": "studio.vector/theme",
24
+ "revision": "theme-r1",
25
+ "version": "1.0.0"
26
+ }
27
+ },
28
+ "id": "vector.blueprint",
29
+ "kind": "blueprint",
30
+ "label": {
31
+ "defaultMessage": "Vector Blueprint",
32
+ "key": "studio.vector/blueprint"
33
+ },
34
+ "model": {
35
+ "id": "studio.vector/model",
36
+ "revision": "model-r1",
37
+ "version": "1.0.0"
38
+ },
39
+ "owner": {
40
+ "id": "studio.vector/suite",
41
+ "version": "0.1.0-alpha.0"
42
+ },
43
+ "revision": "blueprint-r1",
44
+ "roots": [
45
+ {
46
+ "authoring": {
47
+ "mode": "designer",
48
+ "slots": {
49
+ "inlay": {
50
+ "allowedBlocks": ["studio.vector/card"],
51
+ "composable": true
52
+ }
53
+ }
54
+ },
55
+ "bindings": {},
56
+ "id": "panel",
57
+ "properties": {},
58
+ "slots": {
59
+ "inlay": [
60
+ {
61
+ "authoring": {
62
+ "mode": "content"
63
+ },
64
+ "bindings": {},
65
+ "id": "card-1",
66
+ "properties": {
67
+ "title": "First"
68
+ },
69
+ "slots": {},
70
+ "type": "studio.vector/card",
71
+ "version": "1.0.0"
72
+ }
73
+ ],
74
+ "trim": [
75
+ {
76
+ "authoring": {
77
+ "mode": "designer"
78
+ },
79
+ "bindings": {},
80
+ "id": "fixed",
81
+ "properties": {},
82
+ "slots": {},
83
+ "type": "studio.vector/section",
84
+ "version": "1.0.0"
85
+ }
86
+ ]
87
+ },
88
+ "type": "studio.vector/section",
89
+ "version": "1.0.0"
90
+ }
91
+ ],
92
+ "status": "draft",
93
+ "version": "1.0.0"
94
+ },
95
+ "command": {
96
+ "artifactId": "vector.blueprint",
97
+ "baseStateVersion": 0,
98
+ "contractVersion": "0.1-draft",
99
+ "id": "vector.command.mode.hybrid.slot-marker-insert",
100
+ "kind": "command",
101
+ "payload": {
102
+ "destination": {
103
+ "parentNodeId": "panel",
104
+ "position": 1,
105
+ "slot": "inlay"
106
+ },
107
+ "node": {
108
+ "authoring": {
109
+ "mode": "content"
110
+ },
111
+ "bindings": {},
112
+ "id": "card-2",
113
+ "properties": {},
114
+ "slots": {},
115
+ "type": "studio.vector/card",
116
+ "version": "1.0.0"
117
+ }
118
+ },
119
+ "sessionGeneration": "session-r1",
120
+ "type": "studio.command/insert-node"
121
+ },
122
+ "expect": {
123
+ "document": {
124
+ "contractVersion": "0.1-draft",
125
+ "dependencyLock": {
126
+ "blocks": [
127
+ {
128
+ "revision": "block-r1",
129
+ "type": "studio.vector/card",
130
+ "version": "1.0.0"
131
+ },
132
+ {
133
+ "revision": "block-r1",
134
+ "type": "studio.vector/section",
135
+ "version": "1.0.0"
136
+ }
137
+ ],
138
+ "theme": {
139
+ "id": "studio.vector/theme",
140
+ "revision": "theme-r1",
141
+ "version": "1.0.0"
142
+ }
143
+ },
144
+ "id": "vector.blueprint",
145
+ "kind": "blueprint",
146
+ "label": {
147
+ "defaultMessage": "Vector Blueprint",
148
+ "key": "studio.vector/blueprint"
149
+ },
150
+ "model": {
151
+ "id": "studio.vector/model",
152
+ "revision": "model-r1",
153
+ "version": "1.0.0"
154
+ },
155
+ "owner": {
156
+ "id": "studio.vector/suite",
157
+ "version": "0.1.0-alpha.0"
158
+ },
159
+ "revision": "blueprint-r1",
160
+ "roots": [
161
+ {
162
+ "authoring": {
163
+ "mode": "designer",
164
+ "slots": {
165
+ "inlay": {
166
+ "allowedBlocks": ["studio.vector/card"],
167
+ "composable": true
168
+ }
169
+ }
170
+ },
171
+ "bindings": {},
172
+ "id": "panel",
173
+ "properties": {},
174
+ "slots": {
175
+ "inlay": [
176
+ {
177
+ "authoring": {
178
+ "mode": "content"
179
+ },
180
+ "bindings": {},
181
+ "id": "card-1",
182
+ "properties": {
183
+ "title": "First"
184
+ },
185
+ "slots": {},
186
+ "type": "studio.vector/card",
187
+ "version": "1.0.0"
188
+ },
189
+ {
190
+ "authoring": {
191
+ "mode": "content"
192
+ },
193
+ "bindings": {},
194
+ "id": "card-2",
195
+ "properties": {},
196
+ "slots": {},
197
+ "type": "studio.vector/card",
198
+ "version": "1.0.0"
199
+ }
200
+ ],
201
+ "trim": [
202
+ {
203
+ "authoring": {
204
+ "mode": "designer"
205
+ },
206
+ "bindings": {},
207
+ "id": "fixed",
208
+ "properties": {},
209
+ "slots": {},
210
+ "type": "studio.vector/section",
211
+ "version": "1.0.0"
212
+ }
213
+ ]
214
+ },
215
+ "type": "studio.vector/section",
216
+ "version": "1.0.0"
217
+ }
218
+ ],
219
+ "status": "draft",
220
+ "version": "1.0.0"
221
+ }
222
+ }
223
+ }
@@ -0,0 +1,125 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "command-vector",
4
+ "id": "vector.command-vector.mode.hybrid.slot-marker-other-slot",
5
+ "description": "The marker grants composability slot by slot; an unmarked sibling slot stays out of bounds.",
6
+ "mode": "hybrid",
7
+ "initial": {
8
+ "contractVersion": "0.1-draft",
9
+ "dependencyLock": {
10
+ "blocks": [
11
+ {
12
+ "revision": "block-r1",
13
+ "type": "studio.vector/card",
14
+ "version": "1.0.0"
15
+ },
16
+ {
17
+ "revision": "block-r1",
18
+ "type": "studio.vector/section",
19
+ "version": "1.0.0"
20
+ }
21
+ ],
22
+ "theme": {
23
+ "id": "studio.vector/theme",
24
+ "revision": "theme-r1",
25
+ "version": "1.0.0"
26
+ }
27
+ },
28
+ "id": "vector.blueprint",
29
+ "kind": "blueprint",
30
+ "label": {
31
+ "defaultMessage": "Vector Blueprint",
32
+ "key": "studio.vector/blueprint"
33
+ },
34
+ "model": {
35
+ "id": "studio.vector/model",
36
+ "revision": "model-r1",
37
+ "version": "1.0.0"
38
+ },
39
+ "owner": {
40
+ "id": "studio.vector/suite",
41
+ "version": "0.1.0-alpha.0"
42
+ },
43
+ "revision": "blueprint-r1",
44
+ "roots": [
45
+ {
46
+ "authoring": {
47
+ "mode": "designer",
48
+ "slots": {
49
+ "inlay": {
50
+ "allowedBlocks": ["studio.vector/card"],
51
+ "composable": true
52
+ }
53
+ }
54
+ },
55
+ "bindings": {},
56
+ "id": "panel",
57
+ "properties": {},
58
+ "slots": {
59
+ "inlay": [
60
+ {
61
+ "authoring": {
62
+ "mode": "content"
63
+ },
64
+ "bindings": {},
65
+ "id": "card-1",
66
+ "properties": {
67
+ "title": "First"
68
+ },
69
+ "slots": {},
70
+ "type": "studio.vector/card",
71
+ "version": "1.0.0"
72
+ }
73
+ ],
74
+ "trim": [
75
+ {
76
+ "authoring": {
77
+ "mode": "designer"
78
+ },
79
+ "bindings": {},
80
+ "id": "fixed",
81
+ "properties": {},
82
+ "slots": {},
83
+ "type": "studio.vector/section",
84
+ "version": "1.0.0"
85
+ }
86
+ ]
87
+ },
88
+ "type": "studio.vector/section",
89
+ "version": "1.0.0"
90
+ }
91
+ ],
92
+ "status": "draft",
93
+ "version": "1.0.0"
94
+ },
95
+ "command": {
96
+ "artifactId": "vector.blueprint",
97
+ "baseStateVersion": 0,
98
+ "contractVersion": "0.1-draft",
99
+ "id": "vector.command.mode.hybrid.slot-marker-other-slot",
100
+ "kind": "command",
101
+ "payload": {
102
+ "destination": {
103
+ "parentNodeId": "panel",
104
+ "position": 0,
105
+ "slot": "trim"
106
+ },
107
+ "node": {
108
+ "authoring": {
109
+ "mode": "content"
110
+ },
111
+ "bindings": {},
112
+ "id": "card-2",
113
+ "properties": {},
114
+ "slots": {},
115
+ "type": "studio.vector/card",
116
+ "version": "1.0.0"
117
+ }
118
+ },
119
+ "sessionGeneration": "session-r1",
120
+ "type": "studio.command/insert-node"
121
+ },
122
+ "expect": {
123
+ "errorCode": "mode-forbidden"
124
+ }
125
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "command-vector",
4
+ "id": "vector.command-vector.mode.model.remove-node",
5
+ "description": "A model-mode session permits only content-model commands; structure commands are mode-forbidden.",
6
+ "mode": "model",
7
+ "initial": {
8
+ "contractVersion": "0.1-draft",
9
+ "dependencyLock": {
10
+ "blocks": [
11
+ {
12
+ "revision": "block-r1",
13
+ "type": "studio.vector/section",
14
+ "version": "1.0.0"
15
+ },
16
+ {
17
+ "revision": "block-r1",
18
+ "type": "studio.vector/text",
19
+ "version": "1.0.0"
20
+ }
21
+ ],
22
+ "theme": {
23
+ "id": "studio.vector/theme",
24
+ "revision": "theme-r1",
25
+ "version": "1.0.0"
26
+ }
27
+ },
28
+ "id": "vector.blueprint",
29
+ "kind": "blueprint",
30
+ "label": {
31
+ "defaultMessage": "Vector Blueprint",
32
+ "key": "studio.vector/blueprint"
33
+ },
34
+ "model": {
35
+ "id": "studio.vector/model",
36
+ "revision": "model-r1",
37
+ "version": "1.0.0"
38
+ },
39
+ "owner": {
40
+ "id": "studio.vector/suite",
41
+ "version": "0.1.0-alpha.0"
42
+ },
43
+ "revision": "blueprint-r1",
44
+ "roots": [
45
+ {
46
+ "authoring": {
47
+ "mode": "designer"
48
+ },
49
+ "bindings": {},
50
+ "id": "text-a",
51
+ "properties": {},
52
+ "slots": {},
53
+ "type": "studio.vector/text",
54
+ "version": "1.0.0"
55
+ }
56
+ ],
57
+ "status": "draft",
58
+ "version": "1.0.0"
59
+ },
60
+ "command": {
61
+ "artifactId": "vector.blueprint",
62
+ "baseStateVersion": 0,
63
+ "contractVersion": "0.1-draft",
64
+ "id": "vector.command.mode.model.remove-node",
65
+ "kind": "command",
66
+ "payload": {
67
+ "nodeId": "text-a"
68
+ },
69
+ "sessionGeneration": "session-r1",
70
+ "type": "studio.command/remove-node"
71
+ },
72
+ "expect": {
73
+ "errorCode": "mode-forbidden"
74
+ }
75
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "command-vector",
4
+ "id": "vector.command-vector.mode.read-only.set-property",
5
+ "description": "A read-only session never applies a persistent command; the rejection precedes the mode table.",
6
+ "mode": "read-only",
7
+ "initial": {
8
+ "contractVersion": "0.1-draft",
9
+ "dependencyLock": {
10
+ "blocks": [
11
+ {
12
+ "revision": "block-r1",
13
+ "type": "studio.vector/section",
14
+ "version": "1.0.0"
15
+ },
16
+ {
17
+ "revision": "block-r1",
18
+ "type": "studio.vector/text",
19
+ "version": "1.0.0"
20
+ }
21
+ ],
22
+ "theme": {
23
+ "id": "studio.vector/theme",
24
+ "revision": "theme-r1",
25
+ "version": "1.0.0"
26
+ }
27
+ },
28
+ "id": "vector.blueprint",
29
+ "kind": "blueprint",
30
+ "label": {
31
+ "defaultMessage": "Vector Blueprint",
32
+ "key": "studio.vector/blueprint"
33
+ },
34
+ "model": {
35
+ "id": "studio.vector/model",
36
+ "revision": "model-r1",
37
+ "version": "1.0.0"
38
+ },
39
+ "owner": {
40
+ "id": "studio.vector/suite",
41
+ "version": "0.1.0-alpha.0"
42
+ },
43
+ "revision": "blueprint-r1",
44
+ "roots": [
45
+ {
46
+ "authoring": {
47
+ "mode": "designer"
48
+ },
49
+ "bindings": {},
50
+ "id": "text-a",
51
+ "properties": {},
52
+ "slots": {},
53
+ "type": "studio.vector/text",
54
+ "version": "1.0.0"
55
+ }
56
+ ],
57
+ "status": "draft",
58
+ "version": "1.0.0"
59
+ },
60
+ "command": {
61
+ "artifactId": "vector.blueprint",
62
+ "baseStateVersion": 0,
63
+ "contractVersion": "0.1-draft",
64
+ "id": "vector.command.mode.read-only.set-property",
65
+ "kind": "command",
66
+ "payload": {
67
+ "nodeId": "text-a",
68
+ "property": "text",
69
+ "value": "Hello"
70
+ },
71
+ "sessionGeneration": "session-r1",
72
+ "type": "studio.command/set-property"
73
+ },
74
+ "expect": {
75
+ "errorCode": "read-only-session"
76
+ }
77
+ }