@kumwe/studio-testkit 0.1.0-alpha.5 → 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.
@@ -0,0 +1,132 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "command-vector",
4
+ "id": "vector.command-vector.mode.hybrid.set-property",
5
+ "description": "Property editing is not hybrid vocabulary; configuring a composed block stays mode-forbidden.",
6
+ "mode": "hybrid",
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/card",
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": "shell",
51
+ "properties": {},
52
+ "slots": {
53
+ "main": [
54
+ {
55
+ "authoring": {
56
+ "allowedBlocks": ["studio.vector/card"],
57
+ "mode": "structural"
58
+ },
59
+ "bindings": {},
60
+ "id": "region",
61
+ "properties": {},
62
+ "slots": {
63
+ "items": [
64
+ {
65
+ "authoring": {
66
+ "mode": "content"
67
+ },
68
+ "bindings": {},
69
+ "id": "card-1",
70
+ "properties": {
71
+ "title": "First"
72
+ },
73
+ "slots": {},
74
+ "type": "studio.vector/card",
75
+ "version": "1.0.0"
76
+ },
77
+ {
78
+ "authoring": {
79
+ "mode": "locked"
80
+ },
81
+ "bindings": {},
82
+ "id": "seal",
83
+ "properties": {},
84
+ "slots": {},
85
+ "type": "studio.vector/card",
86
+ "version": "1.0.0"
87
+ }
88
+ ]
89
+ },
90
+ "type": "studio.vector/section",
91
+ "version": "1.0.0"
92
+ }
93
+ ],
94
+ "side": [
95
+ {
96
+ "authoring": {
97
+ "mode": "designer"
98
+ },
99
+ "bindings": {},
100
+ "id": "fixed",
101
+ "properties": {},
102
+ "slots": {},
103
+ "type": "studio.vector/section",
104
+ "version": "1.0.0"
105
+ }
106
+ ]
107
+ },
108
+ "type": "studio.vector/section",
109
+ "version": "1.0.0"
110
+ }
111
+ ],
112
+ "status": "draft",
113
+ "version": "1.0.0"
114
+ },
115
+ "command": {
116
+ "artifactId": "vector.blueprint",
117
+ "baseStateVersion": 0,
118
+ "contractVersion": "0.1-draft",
119
+ "id": "vector.command.mode.hybrid.set-property",
120
+ "kind": "command",
121
+ "payload": {
122
+ "nodeId": "card-1",
123
+ "property": "title",
124
+ "value": "Renamed"
125
+ },
126
+ "sessionGeneration": "session-r1",
127
+ "type": "studio.command/set-property"
128
+ },
129
+ "expect": {
130
+ "errorCode": "mode-forbidden"
131
+ }
132
+ }
@@ -0,0 +1,125 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "command-vector",
4
+ "id": "vector.command-vector.mode.hybrid.slot-marker-disallowed",
5
+ "description": "The marker's own allowed-blocks list bounds its slot ahead of the node-level list.",
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-disallowed",
100
+ "kind": "command",
101
+ "payload": {
102
+ "destination": {
103
+ "parentNodeId": "panel",
104
+ "position": 0,
105
+ "slot": "inlay"
106
+ },
107
+ "node": {
108
+ "authoring": {
109
+ "mode": "designer"
110
+ },
111
+ "bindings": {},
112
+ "id": "intruder",
113
+ "properties": {},
114
+ "slots": {},
115
+ "type": "studio.vector/section",
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,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
+ }