@kumwe/studio-testkit 0.1.0-alpha.2

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 (101) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +39 -0
  3. package/conformance/rich-text/blocks.structural.json +57 -0
  4. package/conformance/rich-text/document.multi-block.json +74 -0
  5. package/conformance/rich-text/embed.hard-break.json +24 -0
  6. package/conformance/rich-text/marks.nested.json +29 -0
  7. package/conformance/rich-text/offsets.astral.json +24 -0
  8. package/conformance/rich-text/paragraph.plain.json +20 -0
  9. package/conformance/rich-text/spans.adjacent.json +27 -0
  10. package/dist/host-testbed.d.ts +40 -0
  11. package/dist/host-testbed.d.ts.map +1 -0
  12. package/dist/host-testbed.js +390 -0
  13. package/dist/host-testbed.js.map +1 -0
  14. package/dist/index.d.ts +29 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +139 -0
  17. package/dist/index.js.map +1 -0
  18. package/fixtures/block.grid.example.json +76 -0
  19. package/fixtures/block.price.example.json +69 -0
  20. package/fixtures/blueprint.product.example.json +92 -0
  21. package/fixtures/command.move-node.example.json +18 -0
  22. package/fixtures/content-model.product.example.json +141 -0
  23. package/fixtures/entry.product.example.json +55 -0
  24. package/fixtures/host-capabilities.example.json +36 -0
  25. package/fixtures/host-error.conflict.example.json +23 -0
  26. package/fixtures/media-asset.example.json +29 -0
  27. package/fixtures/media-asset.processing.example.json +15 -0
  28. package/fixtures/media-reference.example.json +26 -0
  29. package/fixtures/media-upload-session.transferring.example.json +22 -0
  30. package/fixtures/pattern.example.json +49 -0
  31. package/fixtures/plugin.example.json +49 -0
  32. package/fixtures/preview.render.example.json +14 -0
  33. package/fixtures/provenance.example.json +38 -0
  34. package/fixtures/rich-text.example.json +48 -0
  35. package/fixtures/studio-config.example.json +139 -0
  36. package/fixtures/theme.example.json +123 -0
  37. package/fixtures/unresolved-contribution.example.json +23 -0
  38. package/invalid/blueprint.control-character-member.json +59 -0
  39. package/invalid/blueprint.forbidden-property-member.json +61 -0
  40. package/invalid/blueprint.invalid-node-id.json +57 -0
  41. package/invalid/blueprint.invalid-slot-name.json +59 -0
  42. package/invalid/blueprint.published-empty-roots.json +45 -0
  43. package/invalid/blueprint.unknown-member.json +58 -0
  44. package/invalid/command-vector.unknown-error-code.json +103 -0
  45. package/invalid/command.empty-batch.json +17 -0
  46. package/invalid/command.forbidden-id-map-member.json +20 -0
  47. package/invalid/command.negative-position.json +20 -0
  48. package/invalid/command.nested-batch.json +24 -0
  49. package/invalid/command.pattern-in-batch.json +40 -0
  50. package/invalid/command.reset-inherited-property-in-batch.json +24 -0
  51. package/invalid/command.unknown-member.json +23 -0
  52. package/invalid/command.wrong-contract-version.json +22 -0
  53. package/invalid/content-model.published-empty.json +22 -0
  54. package/invalid/entry.forbidden-value-member.json +23 -0
  55. package/invalid/entry.invalid-locale.json +59 -0
  56. package/invalid/host-capabilities.invalid-protocol-version.json +40 -0
  57. package/invalid/media-reference.missing-accessibility.json +25 -0
  58. package/invalid/media-upload-session.complete-without-asset.json +20 -0
  59. package/invalid/preview-message.invalid-digest.json +18 -0
  60. package/invalid/rich-text.embedded-html.json +13 -0
  61. package/invalid/rich-text.unknown-mark.json +19 -0
  62. package/invalid/theme.unknown-member.json +128 -0
  63. package/package.json +48 -0
  64. package/vectors/command/apply-pattern.colliding-id.error.json +97 -0
  65. package/vectors/command/apply-pattern.incomplete-id-map.error.json +111 -0
  66. package/vectors/command/apply-pattern.two-roots.json +259 -0
  67. package/vectors/command/batch.atomic-failure.error.json +100 -0
  68. package/vectors/command/batch.insert-and-configure.json +197 -0
  69. package/vectors/command/duplicate-node.existing-id.error.json +88 -0
  70. package/vectors/command/duplicate-node.explicit-destination.json +183 -0
  71. package/vectors/command/duplicate-node.incomplete-id-map.error.json +91 -0
  72. package/vectors/command/duplicate-node.subtree.json +201 -0
  73. package/vectors/command/insert-node.duplicate-id.error.json +87 -0
  74. package/vectors/command/insert-node.inner-duplicate-id.error.json +115 -0
  75. package/vectors/command/insert-node.invalid-index.error.json +87 -0
  76. package/vectors/command/insert-node.root.json +162 -0
  77. package/vectors/command/insert-node.slot.json +167 -0
  78. package/vectors/command/move-node.into-self.error.json +95 -0
  79. package/vectors/command/move-node.reparent.json +196 -0
  80. package/vectors/command/move-node.within-roots.json +188 -0
  81. package/vectors/command/remove-binding.base.json +159 -0
  82. package/vectors/command/remove-binding.missing.error.json +75 -0
  83. package/vectors/command/remove-node.empties-slot.json +167 -0
  84. package/vectors/command/remove-node.missing.error.json +74 -0
  85. package/vectors/command/remove-node.nested.json +192 -0
  86. package/vectors/command/reorder-children.not-permutation.error.json +85 -0
  87. package/vectors/command/reorder-children.roots.json +182 -0
  88. package/vectors/command/reorder-children.slot.json +192 -0
  89. package/vectors/command/reset-inherited-property.missing.error.json +82 -0
  90. package/vectors/command/reset-inherited-property.single-viewport.json +151 -0
  91. package/vectors/command/reset-inherited-property.two-viewports.json +168 -0
  92. package/vectors/command/restore-node.inner-duplicate-id.error.json +115 -0
  93. package/vectors/command/restore-node.subtree-into-slot.json +195 -0
  94. package/vectors/command/set-binding.add.json +159 -0
  95. package/vectors/command/set-binding.replace.json +178 -0
  96. package/vectors/command/set-property.add.json +143 -0
  97. package/vectors/command/set-property.replace.json +146 -0
  98. package/vectors/command/set-property.viewport-add.json +148 -0
  99. package/vectors/command/unset-property.base.json +143 -0
  100. package/vectors/command/unset-property.missing.error.json +75 -0
  101. package/vectors/command/unset-property.viewport.json +154 -0
@@ -0,0 +1,128 @@
1
+ {
2
+ "schema": "theme.schema.json",
3
+ "description": "Theme documents are closed; arbitrary members such as raw CSS are rejected.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "theme",
7
+ "id": "org.example.themes/commerce",
8
+ "version": "1.0.0",
9
+ "revision": "commerce-theme-r3",
10
+ "owner": {
11
+ "id": "org.example/theme-package",
12
+ "version": "1.0.0"
13
+ },
14
+ "label": {
15
+ "key": "org.example.theme/commerce",
16
+ "defaultMessage": "Commerce"
17
+ },
18
+ "viewports": [
19
+ {
20
+ "id": "compact",
21
+ "label": {
22
+ "key": "studio.viewport/compact",
23
+ "defaultMessage": "Compact"
24
+ },
25
+ "order": 0,
26
+ "base": true,
27
+ "previewWidth": 360
28
+ },
29
+ {
30
+ "id": "medium",
31
+ "label": {
32
+ "key": "studio.viewport/medium",
33
+ "defaultMessage": "Medium"
34
+ },
35
+ "order": 1,
36
+ "base": false,
37
+ "previewWidth": 768
38
+ },
39
+ {
40
+ "id": "expanded",
41
+ "label": {
42
+ "key": "studio.viewport/expanded",
43
+ "defaultMessage": "Expanded"
44
+ },
45
+ "order": 2,
46
+ "base": false,
47
+ "previewWidth": 1440
48
+ }
49
+ ],
50
+ "designControls": [
51
+ {
52
+ "id": "gap",
53
+ "kind": "spacing-role",
54
+ "label": {
55
+ "key": "org.example.theme/gap",
56
+ "defaultMessage": "Gap"
57
+ },
58
+ "choices": [
59
+ {
60
+ "id": "small",
61
+ "label": {
62
+ "key": "org.example.theme/gap-small",
63
+ "defaultMessage": "Small"
64
+ }
65
+ },
66
+ {
67
+ "id": "large",
68
+ "label": {
69
+ "key": "org.example.theme/gap-large",
70
+ "defaultMessage": "Large"
71
+ }
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "id": "emphasis",
77
+ "kind": "typography-role",
78
+ "label": {
79
+ "key": "org.example.theme/emphasis",
80
+ "defaultMessage": "Emphasis"
81
+ },
82
+ "choices": [
83
+ {
84
+ "id": "price",
85
+ "label": {
86
+ "key": "org.example.theme/emphasis-price",
87
+ "defaultMessage": "Price emphasis"
88
+ }
89
+ }
90
+ ]
91
+ }
92
+ ],
93
+ "recipes": [
94
+ {
95
+ "id": "product-grid",
96
+ "blockType": "studio.core/grid",
97
+ "label": {
98
+ "key": "org.example.theme/product-grid",
99
+ "defaultMessage": "Product grid"
100
+ },
101
+ "designValues": {
102
+ "gap": "large"
103
+ }
104
+ }
105
+ ],
106
+ "renderers": [
107
+ {
108
+ "id": "org.example.renderer/twig",
109
+ "version": "1.0.0",
110
+ "surfaces": ["web", "preview"],
111
+ "exactPreview": true
112
+ }
113
+ ],
114
+ "blockSupport": [
115
+ {
116
+ "type": "studio.core/grid",
117
+ "versions": "^1.0.0",
118
+ "renderer": "org.example.renderer/twig"
119
+ },
120
+ {
121
+ "type": "org.example.catalog/price",
122
+ "versions": "^1.0.0",
123
+ "renderer": "org.example.renderer/twig"
124
+ }
125
+ ],
126
+ "customCss": ".hero { color: red }"
127
+ }
128
+ }
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@kumwe/studio-testkit",
3
+ "version": "0.1.0-alpha.2",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/kumwe/studio.git",
7
+ "directory": "packages/testkit"
8
+ },
9
+ "homepage": "https://github.com/kumwe/studio/tree/main/packages/testkit#readme",
10
+ "bugs": "https://github.com/kumwe/studio/issues",
11
+ "description": "Draft canonical fixtures, builders, and the initial Blueprint assertion for Studio.",
12
+ "type": "module",
13
+ "sideEffects": false,
14
+ "files": [
15
+ "LICENSE",
16
+ "conformance",
17
+ "dist",
18
+ "fixtures",
19
+ "invalid",
20
+ "README.md",
21
+ "vectors"
22
+ ],
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.js"
27
+ },
28
+ "./conformance/*": "./conformance/*",
29
+ "./fixtures/*": "./fixtures/*",
30
+ "./invalid/*": "./invalid/*",
31
+ "./vectors/*": "./vectors/*"
32
+ },
33
+ "scripts": {
34
+ "build": "tsc -b"
35
+ },
36
+ "dependencies": {
37
+ "@kumwe/studio-core": "0.1.0-alpha.2",
38
+ "@kumwe/studio-protocol": "0.1.0-alpha.2"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public",
42
+ "provenance": true
43
+ },
44
+ "license": "MIT",
45
+ "engines": {
46
+ "node": ">=24.0.0"
47
+ }
48
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "command-vector",
4
+ "id": "vector.command-vector.apply-pattern.colliding-id.error",
5
+ "description": "A pattern application may not reuse an identifier that already exists in the document.",
6
+ "initial": {
7
+ "contractVersion": "0.1-draft",
8
+ "dependencyLock": {
9
+ "blocks": [
10
+ {
11
+ "revision": "block-r1",
12
+ "type": "studio.vector/section",
13
+ "version": "1.0.0"
14
+ },
15
+ {
16
+ "revision": "block-r1",
17
+ "type": "studio.vector/text",
18
+ "version": "1.0.0"
19
+ }
20
+ ],
21
+ "theme": {
22
+ "id": "studio.vector/theme",
23
+ "revision": "theme-r1",
24
+ "version": "1.0.0"
25
+ }
26
+ },
27
+ "id": "vector.blueprint",
28
+ "kind": "blueprint",
29
+ "label": {
30
+ "defaultMessage": "Vector Blueprint",
31
+ "key": "studio.vector/blueprint"
32
+ },
33
+ "model": {
34
+ "id": "studio.vector/model",
35
+ "revision": "model-r1",
36
+ "version": "1.0.0"
37
+ },
38
+ "owner": {
39
+ "id": "studio.vector/suite",
40
+ "version": "0.1.0-alpha.0"
41
+ },
42
+ "revision": "blueprint-r1",
43
+ "roots": [
44
+ {
45
+ "authoring": {
46
+ "mode": "designer"
47
+ },
48
+ "bindings": {},
49
+ "id": "text-a",
50
+ "properties": {},
51
+ "slots": {},
52
+ "type": "studio.vector/text",
53
+ "version": "1.0.0"
54
+ }
55
+ ],
56
+ "status": "draft",
57
+ "version": "1.0.0"
58
+ },
59
+ "command": {
60
+ "artifactId": "vector.blueprint",
61
+ "baseStateVersion": 0,
62
+ "contractVersion": "0.1-draft",
63
+ "id": "vector.command.apply-pattern.colliding-id",
64
+ "kind": "command",
65
+ "payload": {
66
+ "destination": {
67
+ "position": 1
68
+ },
69
+ "idMap": {
70
+ "text-p": "text-a"
71
+ },
72
+ "nodes": [
73
+ {
74
+ "authoring": {
75
+ "mode": "designer"
76
+ },
77
+ "bindings": {},
78
+ "id": "text-p",
79
+ "properties": {},
80
+ "slots": {},
81
+ "type": "studio.vector/text",
82
+ "version": "1.0.0"
83
+ }
84
+ ],
85
+ "pattern": {
86
+ "id": "patterns/hero-with-caption",
87
+ "revision": "pattern-r3",
88
+ "version": "1.2.0"
89
+ }
90
+ },
91
+ "sessionGeneration": "session-r1",
92
+ "type": "studio.command/apply-pattern"
93
+ },
94
+ "expect": {
95
+ "errorCode": "duplicate-node"
96
+ }
97
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "command-vector",
4
+ "id": "vector.command-vector.apply-pattern.incomplete-id-map.error",
5
+ "description": "A pattern application must remap every node of every fragment root exactly once.",
6
+ "initial": {
7
+ "contractVersion": "0.1-draft",
8
+ "dependencyLock": {
9
+ "blocks": [
10
+ {
11
+ "revision": "block-r1",
12
+ "type": "studio.vector/section",
13
+ "version": "1.0.0"
14
+ },
15
+ {
16
+ "revision": "block-r1",
17
+ "type": "studio.vector/text",
18
+ "version": "1.0.0"
19
+ }
20
+ ],
21
+ "theme": {
22
+ "id": "studio.vector/theme",
23
+ "revision": "theme-r1",
24
+ "version": "1.0.0"
25
+ }
26
+ },
27
+ "id": "vector.blueprint",
28
+ "kind": "blueprint",
29
+ "label": {
30
+ "defaultMessage": "Vector Blueprint",
31
+ "key": "studio.vector/blueprint"
32
+ },
33
+ "model": {
34
+ "id": "studio.vector/model",
35
+ "revision": "model-r1",
36
+ "version": "1.0.0"
37
+ },
38
+ "owner": {
39
+ "id": "studio.vector/suite",
40
+ "version": "0.1.0-alpha.0"
41
+ },
42
+ "revision": "blueprint-r1",
43
+ "roots": [
44
+ {
45
+ "authoring": {
46
+ "mode": "designer"
47
+ },
48
+ "bindings": {},
49
+ "id": "text-a",
50
+ "properties": {},
51
+ "slots": {},
52
+ "type": "studio.vector/text",
53
+ "version": "1.0.0"
54
+ }
55
+ ],
56
+ "status": "draft",
57
+ "version": "1.0.0"
58
+ },
59
+ "command": {
60
+ "artifactId": "vector.blueprint",
61
+ "baseStateVersion": 0,
62
+ "contractVersion": "0.1-draft",
63
+ "id": "vector.command.apply-pattern.incomplete-id-map",
64
+ "kind": "command",
65
+ "payload": {
66
+ "destination": {
67
+ "position": 1
68
+ },
69
+ "idMap": {
70
+ "section-p": "section-p1"
71
+ },
72
+ "nodes": [
73
+ {
74
+ "authoring": {
75
+ "mode": "structural"
76
+ },
77
+ "bindings": {},
78
+ "id": "section-p",
79
+ "properties": {},
80
+ "slots": {
81
+ "main": [
82
+ {
83
+ "authoring": {
84
+ "mode": "designer"
85
+ },
86
+ "bindings": {},
87
+ "id": "text-p",
88
+ "properties": {},
89
+ "slots": {},
90
+ "type": "studio.vector/text",
91
+ "version": "1.0.0"
92
+ }
93
+ ]
94
+ },
95
+ "type": "studio.vector/section",
96
+ "version": "1.0.0"
97
+ }
98
+ ],
99
+ "pattern": {
100
+ "id": "patterns/hero-with-caption",
101
+ "revision": "pattern-r3",
102
+ "version": "1.2.0"
103
+ }
104
+ },
105
+ "sessionGeneration": "session-r1",
106
+ "type": "studio.command/apply-pattern"
107
+ },
108
+ "expect": {
109
+ "errorCode": "invalid-id-map"
110
+ }
111
+ }
@@ -0,0 +1,259 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "command-vector",
4
+ "id": "vector.command-vector.apply-pattern.two-roots",
5
+ "description": "Applying a pattern inserts every remapped fragment root in order at the destination and stamps pattern provenance on each applied root; the inverse removes the applied roots.",
6
+ "initial": {
7
+ "contractVersion": "0.1-draft",
8
+ "dependencyLock": {
9
+ "blocks": [
10
+ {
11
+ "revision": "block-r1",
12
+ "type": "studio.vector/section",
13
+ "version": "1.0.0"
14
+ },
15
+ {
16
+ "revision": "block-r1",
17
+ "type": "studio.vector/text",
18
+ "version": "1.0.0"
19
+ }
20
+ ],
21
+ "theme": {
22
+ "id": "studio.vector/theme",
23
+ "revision": "theme-r1",
24
+ "version": "1.0.0"
25
+ }
26
+ },
27
+ "id": "vector.blueprint",
28
+ "kind": "blueprint",
29
+ "label": {
30
+ "defaultMessage": "Vector Blueprint",
31
+ "key": "studio.vector/blueprint"
32
+ },
33
+ "model": {
34
+ "id": "studio.vector/model",
35
+ "revision": "model-r1",
36
+ "version": "1.0.0"
37
+ },
38
+ "owner": {
39
+ "id": "studio.vector/suite",
40
+ "version": "0.1.0-alpha.0"
41
+ },
42
+ "revision": "blueprint-r1",
43
+ "roots": [
44
+ {
45
+ "authoring": {
46
+ "mode": "designer"
47
+ },
48
+ "bindings": {},
49
+ "id": "text-a",
50
+ "properties": {},
51
+ "slots": {},
52
+ "type": "studio.vector/text",
53
+ "version": "1.0.0"
54
+ }
55
+ ],
56
+ "status": "draft",
57
+ "version": "1.0.0"
58
+ },
59
+ "command": {
60
+ "artifactId": "vector.blueprint",
61
+ "baseStateVersion": 0,
62
+ "contractVersion": "0.1-draft",
63
+ "id": "vector.command.apply-pattern.two-roots",
64
+ "kind": "command",
65
+ "payload": {
66
+ "destination": {
67
+ "position": 1
68
+ },
69
+ "idMap": {
70
+ "section-p": "section-p1",
71
+ "text-p": "text-p1",
72
+ "text-q": "text-q1"
73
+ },
74
+ "nodes": [
75
+ {
76
+ "authoring": {
77
+ "mode": "structural"
78
+ },
79
+ "bindings": {},
80
+ "id": "section-p",
81
+ "properties": {},
82
+ "slots": {
83
+ "main": [
84
+ {
85
+ "authoring": {
86
+ "mode": "designer"
87
+ },
88
+ "bindings": {},
89
+ "id": "text-p",
90
+ "properties": {
91
+ "text": "Hero"
92
+ },
93
+ "slots": {},
94
+ "type": "studio.vector/text",
95
+ "version": "1.0.0"
96
+ }
97
+ ]
98
+ },
99
+ "type": "studio.vector/section",
100
+ "version": "1.0.0"
101
+ },
102
+ {
103
+ "authoring": {
104
+ "mode": "designer"
105
+ },
106
+ "bindings": {},
107
+ "id": "text-q",
108
+ "properties": {
109
+ "text": "Caption"
110
+ },
111
+ "slots": {},
112
+ "type": "studio.vector/text",
113
+ "version": "1.0.0"
114
+ }
115
+ ],
116
+ "pattern": {
117
+ "id": "patterns/hero-with-caption",
118
+ "revision": "pattern-r3",
119
+ "version": "1.2.0"
120
+ }
121
+ },
122
+ "sessionGeneration": "session-r1",
123
+ "type": "studio.command/apply-pattern"
124
+ },
125
+ "expect": {
126
+ "document": {
127
+ "contractVersion": "0.1-draft",
128
+ "dependencyLock": {
129
+ "blocks": [
130
+ {
131
+ "revision": "block-r1",
132
+ "type": "studio.vector/section",
133
+ "version": "1.0.0"
134
+ },
135
+ {
136
+ "revision": "block-r1",
137
+ "type": "studio.vector/text",
138
+ "version": "1.0.0"
139
+ }
140
+ ],
141
+ "theme": {
142
+ "id": "studio.vector/theme",
143
+ "revision": "theme-r1",
144
+ "version": "1.0.0"
145
+ }
146
+ },
147
+ "id": "vector.blueprint",
148
+ "kind": "blueprint",
149
+ "label": {
150
+ "defaultMessage": "Vector Blueprint",
151
+ "key": "studio.vector/blueprint"
152
+ },
153
+ "model": {
154
+ "id": "studio.vector/model",
155
+ "revision": "model-r1",
156
+ "version": "1.0.0"
157
+ },
158
+ "owner": {
159
+ "id": "studio.vector/suite",
160
+ "version": "0.1.0-alpha.0"
161
+ },
162
+ "revision": "blueprint-r1",
163
+ "roots": [
164
+ {
165
+ "authoring": {
166
+ "mode": "designer"
167
+ },
168
+ "bindings": {},
169
+ "id": "text-a",
170
+ "properties": {},
171
+ "slots": {},
172
+ "type": "studio.vector/text",
173
+ "version": "1.0.0"
174
+ },
175
+ {
176
+ "authoring": {
177
+ "mode": "structural"
178
+ },
179
+ "bindings": {},
180
+ "id": "section-p1",
181
+ "properties": {},
182
+ "slots": {
183
+ "main": [
184
+ {
185
+ "authoring": {
186
+ "mode": "designer"
187
+ },
188
+ "bindings": {},
189
+ "id": "text-p1",
190
+ "properties": {
191
+ "text": "Hero"
192
+ },
193
+ "slots": {},
194
+ "type": "studio.vector/text",
195
+ "version": "1.0.0"
196
+ }
197
+ ]
198
+ },
199
+ "type": "studio.vector/section",
200
+ "version": "1.0.0",
201
+ "extensions": {
202
+ "studio.pattern/source": {
203
+ "id": "patterns/hero-with-caption",
204
+ "revision": "pattern-r3",
205
+ "version": "1.2.0"
206
+ }
207
+ }
208
+ },
209
+ {
210
+ "authoring": {
211
+ "mode": "designer"
212
+ },
213
+ "bindings": {},
214
+ "id": "text-q1",
215
+ "properties": {
216
+ "text": "Caption"
217
+ },
218
+ "slots": {},
219
+ "type": "studio.vector/text",
220
+ "version": "1.0.0",
221
+ "extensions": {
222
+ "studio.pattern/source": {
223
+ "id": "patterns/hero-with-caption",
224
+ "revision": "pattern-r3",
225
+ "version": "1.2.0"
226
+ }
227
+ }
228
+ }
229
+ ],
230
+ "status": "draft",
231
+ "version": "1.0.0"
232
+ }
233
+ },
234
+ "inverse": {
235
+ "artifactId": "vector.blueprint",
236
+ "baseStateVersion": 1,
237
+ "contractVersion": "0.1-draft",
238
+ "id": "vector.inverse.apply-pattern.two-roots",
239
+ "kind": "command",
240
+ "payload": {
241
+ "operations": [
242
+ {
243
+ "payload": {
244
+ "nodeId": "section-p1"
245
+ },
246
+ "type": "studio.command/remove-node"
247
+ },
248
+ {
249
+ "payload": {
250
+ "nodeId": "text-q1"
251
+ },
252
+ "type": "studio.command/remove-node"
253
+ }
254
+ ]
255
+ },
256
+ "sessionGeneration": "session-r1",
257
+ "type": "studio.command/batch"
258
+ }
259
+ }