@kumwe/studio-testkit 0.1.0-alpha.5 → 0.1.0-alpha.7
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/README.md +28 -2
- package/corpus-manifest.json +760 -0
- package/dist/host-testbed.d.ts.map +1 -1
- package/dist/host-testbed.js +131 -0
- package/dist/host-testbed.js.map +1 -1
- package/dist/http-host-adapter.d.ts.map +1 -1
- package/dist/http-host-adapter.js +15 -0
- package/dist/http-host-adapter.js.map +1 -1
- package/fixtures/design-vocabulary.example.json +85 -0
- package/fixtures/field-adapter.example.json +27 -0
- package/fixtures/host-capabilities.example.json +9 -3
- package/fixtures/host-operations.example.json +270 -0
- package/fixtures/inspector.example.json +17 -0
- package/fixtures/media-upload-grant.example.json +14 -0
- package/fixtures/migration.example.json +22 -0
- package/fixtures/studio-config.example.json +1 -1
- package/invalid/blueprint.revoking-slot-marker.json +57 -0
- package/invalid/design-vocabulary.unknown-control-kind.json +38 -0
- package/invalid/inspector.empty-block-types.json +20 -0
- package/invalid/media-upload-grant.insecure-url.json +14 -0
- package/invalid/migration.empty-artifact-kinds.json +22 -0
- package/invalid/preview-message.activated-unknown-interaction.json +16 -0
- package/invalid/preview-message.viewport-role-and-size.json +16 -0
- package/package.json +6 -4
- package/vectors/canonical/array-order.json +13 -0
- package/vectors/canonical/control-characters.json +13 -0
- package/vectors/canonical/depth-exceeded.json +21 -0
- package/vectors/canonical/empty-containers.json +14 -0
- package/vectors/canonical/forbidden-member.json +14 -0
- package/vectors/canonical/member-order.json +16 -0
- package/vectors/canonical/negative-zero.json +13 -0
- package/vectors/canonical/nested-order.json +19 -0
- package/vectors/canonical/non-ascii.json +13 -0
- package/vectors/canonical/numbers.json +16 -0
- package/vectors/canonical/string-escapes.json +13 -0
- package/vectors/canonical/surrogate-pair.json +13 -0
- package/vectors/command/mode.blueprint.set-field-value.error.json +76 -0
- package/vectors/command/mode.blueprint.set-property.json +131 -0
- package/vectors/command/mode.content.insert-node.error.json +88 -0
- package/vectors/command/mode.hybrid.batch-atomic.error.json +158 -0
- package/vectors/command/mode.hybrid.insert-allowed.json +263 -0
- package/vectors/command/mode.hybrid.insert-designer-slot.error.json +145 -0
- package/vectors/command/mode.hybrid.insert-disallowed-type.error.json +145 -0
- package/vectors/command/mode.hybrid.insert-roots.error.json +143 -0
- package/vectors/command/mode.hybrid.remove-locked.error.json +130 -0
- package/vectors/command/mode.hybrid.reorder-with-locked.json +239 -0
- package/vectors/command/mode.hybrid.set-property.error.json +132 -0
- package/vectors/command/mode.hybrid.slot-marker-disallowed.error.json +125 -0
- package/vectors/command/mode.hybrid.slot-marker-insert.json +223 -0
- package/vectors/command/mode.hybrid.slot-marker-other-slot.error.json +125 -0
- package/vectors/command/mode.model.remove-node.error.json +75 -0
- package/vectors/command/mode.read-only.set-property.error.json +77 -0
- package/vectors/host/artifact.dependencies.result.json +35 -0
- package/vectors/host/artifact.load.stored.json +36 -0
- package/vectors/host/artifact.load.unknown.error.json +37 -0
- package/vectors/host/artifact.publish.accepted.json +37 -0
- package/vectors/host/artifact.publish.forbidden.error.json +37 -0
- package/vectors/host/artifact.publish.stale.error.json +38 -0
- package/vectors/host/artifact.save.accepted.json +38 -0
- package/vectors/host/artifact.save.forbidden.error.json +38 -0
- package/vectors/host/artifact.save.stale.error.json +39 -0
- package/vectors/host/artifact.unpublish.stale.error.json +38 -0
- package/vectors/host/envelope.malformed-context.error.json +36 -0
- package/vectors/host/envelope.protocol-version.error.json +36 -0
- package/vectors/host/envelope.stale-generation.error.json +36 -0
- package/vectors/host/localization.messages.unknown-locale.error.json +36 -0
- package/vectors/host/media.abort-upload.unknown.error.json +35 -0
- package/vectors/host/media.authorize-upload.granted.json +37 -0
- package/vectors/host/media.authorize-upload.path-filename.error.json +39 -0
- package/vectors/host/media.authorize-upload.too-large.error.json +38 -0
- package/vectors/host/media.complete-upload.unknown.error.json +36 -0
- package/vectors/host/media.get.unknown.json +34 -0
- package/vectors/host/media.import-external.private-host.error.json +36 -0
- package/vectors/host/media.list.cursor.error.json +36 -0
- package/vectors/host/media.list.limit.error.json +35 -0
- package/vectors/host/media.upload-status.unknown.error.json +35 -0
- package/vectors/host/permission.explain.withheld.json +34 -0
- package/vectors/host/permission.refresh.snapshot.json +31 -0
- package/vectors/host/recovery.load.absent.json +31 -0
- package/vectors/host/telemetry.emit.accepted.json +37 -0
- package/vectors/host/telemetry.emit.non-primitive.error.json +40 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "command-vector",
|
|
4
|
+
"id": "vector.command-vector.mode.hybrid.remove-locked",
|
|
5
|
+
"description": "A subtree containing a locked node is never removed by hybrid composition.",
|
|
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.remove-locked",
|
|
120
|
+
"kind": "command",
|
|
121
|
+
"payload": {
|
|
122
|
+
"nodeId": "seal"
|
|
123
|
+
},
|
|
124
|
+
"sessionGeneration": "session-r1",
|
|
125
|
+
"type": "studio.command/remove-node"
|
|
126
|
+
},
|
|
127
|
+
"expect": {
|
|
128
|
+
"errorCode": "mode-forbidden"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "command-vector",
|
|
4
|
+
"id": "vector.command-vector.mode.hybrid.reorder-with-locked",
|
|
5
|
+
"description": "Hybrid reordering inside a structural slot is in bounds even when a locked sibling changes position.",
|
|
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.reorder-with-locked",
|
|
120
|
+
"kind": "command",
|
|
121
|
+
"payload": {
|
|
122
|
+
"order": ["seal", "card-1"],
|
|
123
|
+
"parentNodeId": "region",
|
|
124
|
+
"slot": "items"
|
|
125
|
+
},
|
|
126
|
+
"sessionGeneration": "session-r1",
|
|
127
|
+
"type": "studio.command/reorder-children"
|
|
128
|
+
},
|
|
129
|
+
"expect": {
|
|
130
|
+
"document": {
|
|
131
|
+
"contractVersion": "0.1-draft",
|
|
132
|
+
"dependencyLock": {
|
|
133
|
+
"blocks": [
|
|
134
|
+
{
|
|
135
|
+
"revision": "block-r1",
|
|
136
|
+
"type": "studio.vector/section",
|
|
137
|
+
"version": "1.0.0"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"revision": "block-r1",
|
|
141
|
+
"type": "studio.vector/card",
|
|
142
|
+
"version": "1.0.0"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"theme": {
|
|
146
|
+
"id": "studio.vector/theme",
|
|
147
|
+
"revision": "theme-r1",
|
|
148
|
+
"version": "1.0.0"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"id": "vector.blueprint",
|
|
152
|
+
"kind": "blueprint",
|
|
153
|
+
"label": {
|
|
154
|
+
"defaultMessage": "Vector Blueprint",
|
|
155
|
+
"key": "studio.vector/blueprint"
|
|
156
|
+
},
|
|
157
|
+
"model": {
|
|
158
|
+
"id": "studio.vector/model",
|
|
159
|
+
"revision": "model-r1",
|
|
160
|
+
"version": "1.0.0"
|
|
161
|
+
},
|
|
162
|
+
"owner": {
|
|
163
|
+
"id": "studio.vector/suite",
|
|
164
|
+
"version": "0.1.0-alpha.0"
|
|
165
|
+
},
|
|
166
|
+
"revision": "blueprint-r1",
|
|
167
|
+
"roots": [
|
|
168
|
+
{
|
|
169
|
+
"authoring": {
|
|
170
|
+
"mode": "designer"
|
|
171
|
+
},
|
|
172
|
+
"bindings": {},
|
|
173
|
+
"id": "shell",
|
|
174
|
+
"properties": {},
|
|
175
|
+
"slots": {
|
|
176
|
+
"main": [
|
|
177
|
+
{
|
|
178
|
+
"authoring": {
|
|
179
|
+
"allowedBlocks": ["studio.vector/card"],
|
|
180
|
+
"mode": "structural"
|
|
181
|
+
},
|
|
182
|
+
"bindings": {},
|
|
183
|
+
"id": "region",
|
|
184
|
+
"properties": {},
|
|
185
|
+
"slots": {
|
|
186
|
+
"items": [
|
|
187
|
+
{
|
|
188
|
+
"authoring": {
|
|
189
|
+
"mode": "locked"
|
|
190
|
+
},
|
|
191
|
+
"bindings": {},
|
|
192
|
+
"id": "seal",
|
|
193
|
+
"properties": {},
|
|
194
|
+
"slots": {},
|
|
195
|
+
"type": "studio.vector/card",
|
|
196
|
+
"version": "1.0.0"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"authoring": {
|
|
200
|
+
"mode": "content"
|
|
201
|
+
},
|
|
202
|
+
"bindings": {},
|
|
203
|
+
"id": "card-1",
|
|
204
|
+
"properties": {
|
|
205
|
+
"title": "First"
|
|
206
|
+
},
|
|
207
|
+
"slots": {},
|
|
208
|
+
"type": "studio.vector/card",
|
|
209
|
+
"version": "1.0.0"
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"type": "studio.vector/section",
|
|
214
|
+
"version": "1.0.0"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"side": [
|
|
218
|
+
{
|
|
219
|
+
"authoring": {
|
|
220
|
+
"mode": "designer"
|
|
221
|
+
},
|
|
222
|
+
"bindings": {},
|
|
223
|
+
"id": "fixed",
|
|
224
|
+
"properties": {},
|
|
225
|
+
"slots": {},
|
|
226
|
+
"type": "studio.vector/section",
|
|
227
|
+
"version": "1.0.0"
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
"type": "studio.vector/section",
|
|
232
|
+
"version": "1.0.0"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"status": "draft",
|
|
236
|
+
"version": "1.0.0"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
@@ -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
|
+
}
|