@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.
- package/LICENSE +21 -0
- package/README.md +39 -0
- package/conformance/rich-text/blocks.structural.json +57 -0
- package/conformance/rich-text/document.multi-block.json +74 -0
- package/conformance/rich-text/embed.hard-break.json +24 -0
- package/conformance/rich-text/marks.nested.json +29 -0
- package/conformance/rich-text/offsets.astral.json +24 -0
- package/conformance/rich-text/paragraph.plain.json +20 -0
- package/conformance/rich-text/spans.adjacent.json +27 -0
- package/dist/host-testbed.d.ts +40 -0
- package/dist/host-testbed.d.ts.map +1 -0
- package/dist/host-testbed.js +390 -0
- package/dist/host-testbed.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +139 -0
- package/dist/index.js.map +1 -0
- package/fixtures/block.grid.example.json +76 -0
- package/fixtures/block.price.example.json +69 -0
- package/fixtures/blueprint.product.example.json +92 -0
- package/fixtures/command.move-node.example.json +18 -0
- package/fixtures/content-model.product.example.json +141 -0
- package/fixtures/entry.product.example.json +55 -0
- package/fixtures/host-capabilities.example.json +36 -0
- package/fixtures/host-error.conflict.example.json +23 -0
- package/fixtures/media-asset.example.json +29 -0
- package/fixtures/media-asset.processing.example.json +15 -0
- package/fixtures/media-reference.example.json +26 -0
- package/fixtures/media-upload-session.transferring.example.json +22 -0
- package/fixtures/pattern.example.json +49 -0
- package/fixtures/plugin.example.json +49 -0
- package/fixtures/preview.render.example.json +14 -0
- package/fixtures/provenance.example.json +38 -0
- package/fixtures/rich-text.example.json +48 -0
- package/fixtures/studio-config.example.json +139 -0
- package/fixtures/theme.example.json +123 -0
- package/fixtures/unresolved-contribution.example.json +23 -0
- package/invalid/blueprint.control-character-member.json +59 -0
- package/invalid/blueprint.forbidden-property-member.json +61 -0
- package/invalid/blueprint.invalid-node-id.json +57 -0
- package/invalid/blueprint.invalid-slot-name.json +59 -0
- package/invalid/blueprint.published-empty-roots.json +45 -0
- package/invalid/blueprint.unknown-member.json +58 -0
- package/invalid/command-vector.unknown-error-code.json +103 -0
- package/invalid/command.empty-batch.json +17 -0
- package/invalid/command.forbidden-id-map-member.json +20 -0
- package/invalid/command.negative-position.json +20 -0
- package/invalid/command.nested-batch.json +24 -0
- package/invalid/command.pattern-in-batch.json +40 -0
- package/invalid/command.reset-inherited-property-in-batch.json +24 -0
- package/invalid/command.unknown-member.json +23 -0
- package/invalid/command.wrong-contract-version.json +22 -0
- package/invalid/content-model.published-empty.json +22 -0
- package/invalid/entry.forbidden-value-member.json +23 -0
- package/invalid/entry.invalid-locale.json +59 -0
- package/invalid/host-capabilities.invalid-protocol-version.json +40 -0
- package/invalid/media-reference.missing-accessibility.json +25 -0
- package/invalid/media-upload-session.complete-without-asset.json +20 -0
- package/invalid/preview-message.invalid-digest.json +18 -0
- package/invalid/rich-text.embedded-html.json +13 -0
- package/invalid/rich-text.unknown-mark.json +19 -0
- package/invalid/theme.unknown-member.json +128 -0
- package/package.json +48 -0
- package/vectors/command/apply-pattern.colliding-id.error.json +97 -0
- package/vectors/command/apply-pattern.incomplete-id-map.error.json +111 -0
- package/vectors/command/apply-pattern.two-roots.json +259 -0
- package/vectors/command/batch.atomic-failure.error.json +100 -0
- package/vectors/command/batch.insert-and-configure.json +197 -0
- package/vectors/command/duplicate-node.existing-id.error.json +88 -0
- package/vectors/command/duplicate-node.explicit-destination.json +183 -0
- package/vectors/command/duplicate-node.incomplete-id-map.error.json +91 -0
- package/vectors/command/duplicate-node.subtree.json +201 -0
- package/vectors/command/insert-node.duplicate-id.error.json +87 -0
- package/vectors/command/insert-node.inner-duplicate-id.error.json +115 -0
- package/vectors/command/insert-node.invalid-index.error.json +87 -0
- package/vectors/command/insert-node.root.json +162 -0
- package/vectors/command/insert-node.slot.json +167 -0
- package/vectors/command/move-node.into-self.error.json +95 -0
- package/vectors/command/move-node.reparent.json +196 -0
- package/vectors/command/move-node.within-roots.json +188 -0
- package/vectors/command/remove-binding.base.json +159 -0
- package/vectors/command/remove-binding.missing.error.json +75 -0
- package/vectors/command/remove-node.empties-slot.json +167 -0
- package/vectors/command/remove-node.missing.error.json +74 -0
- package/vectors/command/remove-node.nested.json +192 -0
- package/vectors/command/reorder-children.not-permutation.error.json +85 -0
- package/vectors/command/reorder-children.roots.json +182 -0
- package/vectors/command/reorder-children.slot.json +192 -0
- package/vectors/command/reset-inherited-property.missing.error.json +82 -0
- package/vectors/command/reset-inherited-property.single-viewport.json +151 -0
- package/vectors/command/reset-inherited-property.two-viewports.json +168 -0
- package/vectors/command/restore-node.inner-duplicate-id.error.json +115 -0
- package/vectors/command/restore-node.subtree-into-slot.json +195 -0
- package/vectors/command/set-binding.add.json +159 -0
- package/vectors/command/set-binding.replace.json +178 -0
- package/vectors/command/set-property.add.json +143 -0
- package/vectors/command/set-property.replace.json +146 -0
- package/vectors/command/set-property.viewport-add.json +148 -0
- package/vectors/command/unset-property.base.json +143 -0
- package/vectors/command/unset-property.missing.error.json +75 -0
- package/vectors/command/unset-property.viewport.json +154 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "plugin-manifest",
|
|
4
|
+
"id": "org.example/catalog-plugin",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"owner": {
|
|
7
|
+
"id": "org.example/catalog",
|
|
8
|
+
"version": "1.0.0"
|
|
9
|
+
},
|
|
10
|
+
"label": {
|
|
11
|
+
"key": "org.example.catalog/plugin",
|
|
12
|
+
"defaultMessage": "Catalog Studio integration"
|
|
13
|
+
},
|
|
14
|
+
"activation": "declarative",
|
|
15
|
+
"entryModules": [],
|
|
16
|
+
"contributions": [
|
|
17
|
+
{
|
|
18
|
+
"kind": "block",
|
|
19
|
+
"id": "org.example.catalog/price",
|
|
20
|
+
"version": "1.0.0",
|
|
21
|
+
"resource": "blocks/price.json",
|
|
22
|
+
"integrity": "sha256-gEReHtrWQj4XVxU9b3Yie2ssI8Wsy/nv+rvEe6RcFac=",
|
|
23
|
+
"executable": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"kind": "locale",
|
|
27
|
+
"id": "org.example.catalog/en",
|
|
28
|
+
"version": "1.0.0",
|
|
29
|
+
"resource": "locales/en.json",
|
|
30
|
+
"integrity": "sha256-5sNWsx8n/MDESzjxSwhjg4AnBq/6Mtur4NX0cWTHkKg=",
|
|
31
|
+
"executable": false
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"requiredCapabilities": [
|
|
35
|
+
{
|
|
36
|
+
"id": "studio.host/artifact",
|
|
37
|
+
"versions": "^1.0.0"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"optionalCapabilities": [
|
|
41
|
+
{
|
|
42
|
+
"id": "studio.host/media",
|
|
43
|
+
"versions": "^1.0.0"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"dependencies": [],
|
|
47
|
+
"permissions": ["org.example.catalog/read-product"],
|
|
48
|
+
"locales": ["en"]
|
|
49
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "preview-message",
|
|
4
|
+
"channelId": "preview-channel-7f8d",
|
|
5
|
+
"sessionGeneration": "session-generation-1",
|
|
6
|
+
"sequence": 14,
|
|
7
|
+
"type": "studio.preview/render",
|
|
8
|
+
"payload": {
|
|
9
|
+
"artifactId": "org.example.blueprints/product-card",
|
|
10
|
+
"draftDigest": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
|
|
11
|
+
"draftRevision": "product-card-r5-local-12",
|
|
12
|
+
"viewport": "expanded"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "provenance",
|
|
4
|
+
"artifact": {
|
|
5
|
+
"id": "landing.blueprint",
|
|
6
|
+
"revision": "blueprint-r9"
|
|
7
|
+
},
|
|
8
|
+
"chain": [
|
|
9
|
+
{
|
|
10
|
+
"origin": "authoring",
|
|
11
|
+
"fromRevision": "blueprint-r8",
|
|
12
|
+
"toRevision": "blueprint-r9",
|
|
13
|
+
"recordedAt": "2026-08-15T09:30:00Z",
|
|
14
|
+
"actor": { "id": "users/lemuel", "displayName": "Lemuel" },
|
|
15
|
+
"sessionId": "sessions/2f6c1f6d",
|
|
16
|
+
"commandCount": 14
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"origin": "migration",
|
|
20
|
+
"fromRevision": "blueprint-r7",
|
|
21
|
+
"toRevision": "blueprint-r8",
|
|
22
|
+
"recordedAt": "2026-08-14T16:05:12Z",
|
|
23
|
+
"actor": { "id": "users/lemuel", "displayName": "Lemuel" },
|
|
24
|
+
"migrationId": "org.example.migration/rename-text"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"origin": "pattern",
|
|
28
|
+
"toRevision": "blueprint-r7",
|
|
29
|
+
"recordedAt": "2026-08-14T15:58:41Z",
|
|
30
|
+
"actor": { "id": "users/lemuel", "displayName": "Lemuel" },
|
|
31
|
+
"source": {
|
|
32
|
+
"id": "patterns/hero-with-caption",
|
|
33
|
+
"version": "1.2.0",
|
|
34
|
+
"revision": "pattern-r3"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "doc",
|
|
3
|
+
"content": [
|
|
4
|
+
{
|
|
5
|
+
"type": "heading",
|
|
6
|
+
"attrs": { "level": 2 },
|
|
7
|
+
"content": [{ "type": "text", "text": "Trail care" }]
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"type": "paragraph",
|
|
11
|
+
"content": [
|
|
12
|
+
{ "type": "text", "text": "Wash with " },
|
|
13
|
+
{ "type": "text", "text": "cold water", "marks": [{ "type": "bold" }] },
|
|
14
|
+
{ "type": "text", "text": " only." },
|
|
15
|
+
{ "type": "hardBreak" },
|
|
16
|
+
{ "type": "text", "text": "Air dry away from direct sun.", "marks": [{ "type": "italic" }] }
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "orderedList",
|
|
21
|
+
"attrs": { "start": 1 },
|
|
22
|
+
"content": [
|
|
23
|
+
{
|
|
24
|
+
"type": "listItem",
|
|
25
|
+
"content": [
|
|
26
|
+
{ "type": "paragraph", "content": [{ "type": "text", "text": "Empty all pockets." }] }
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "listItem",
|
|
31
|
+
"content": [
|
|
32
|
+
{ "type": "paragraph", "content": [{ "type": "text", "text": "Brush off dry mud." }] }
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{ "type": "horizontalRule" },
|
|
38
|
+
{
|
|
39
|
+
"type": "blockquote",
|
|
40
|
+
"content": [
|
|
41
|
+
{
|
|
42
|
+
"type": "paragraph",
|
|
43
|
+
"content": [{ "type": "text", "text": "Repairs beat replacements." }]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"protocolVersion": "0.1.0-draft.1",
|
|
4
|
+
"sessionId": "session-018f",
|
|
5
|
+
"sessionGeneration": "session-generation-1",
|
|
6
|
+
"mode": "content",
|
|
7
|
+
"composite": "hybrid",
|
|
8
|
+
"sessionState": "editable",
|
|
9
|
+
"actor": {
|
|
10
|
+
"id": "users/designer-17",
|
|
11
|
+
"displayName": "Example Designer"
|
|
12
|
+
},
|
|
13
|
+
"locale": {
|
|
14
|
+
"requested": "en-NA",
|
|
15
|
+
"resolved": "en-NA",
|
|
16
|
+
"fallbacks": ["en"],
|
|
17
|
+
"direction": "ltr",
|
|
18
|
+
"timeZone": "Africa/Windhoek"
|
|
19
|
+
},
|
|
20
|
+
"displayPreferences": {
|
|
21
|
+
"calendar": "gregory",
|
|
22
|
+
"numberingSystem": "latn",
|
|
23
|
+
"hourCycle": "h23",
|
|
24
|
+
"measurementSystem": "metric"
|
|
25
|
+
},
|
|
26
|
+
"resourceContext": {
|
|
27
|
+
"key": "contexts/main-site-catalog",
|
|
28
|
+
"surface": "org.kumwe.surface/administrator",
|
|
29
|
+
"revision": "context-r7",
|
|
30
|
+
"scopes": [
|
|
31
|
+
{
|
|
32
|
+
"kind": "studio.scope/tenant",
|
|
33
|
+
"id": "tenants/example"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"kind": "studio.scope/site",
|
|
37
|
+
"id": "sites/main"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"kind": "studio.scope/organization",
|
|
41
|
+
"id": "organizations/windhoek"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"resource": {
|
|
45
|
+
"type": "org.example.models/product",
|
|
46
|
+
"id": "products/trail-backpack"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"permissions": [
|
|
50
|
+
"studio.permission/edit-content",
|
|
51
|
+
"studio.permission/edit-blueprint",
|
|
52
|
+
"studio.permission/upload-media"
|
|
53
|
+
],
|
|
54
|
+
"artifacts": {
|
|
55
|
+
"model": {
|
|
56
|
+
"id": "org.example.models/product",
|
|
57
|
+
"version": "1.0.0",
|
|
58
|
+
"revision": "product-model-r1"
|
|
59
|
+
},
|
|
60
|
+
"blueprint": {
|
|
61
|
+
"id": "org.example.blueprints/product-card",
|
|
62
|
+
"version": "1.0.0",
|
|
63
|
+
"revision": "product-card-r5"
|
|
64
|
+
},
|
|
65
|
+
"entry": {
|
|
66
|
+
"id": "products/trail-backpack",
|
|
67
|
+
"revision": "entry-r7"
|
|
68
|
+
},
|
|
69
|
+
"theme": {
|
|
70
|
+
"id": "org.example.themes/commerce",
|
|
71
|
+
"version": "1.0.0",
|
|
72
|
+
"revision": "commerce-theme-r3"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"blocks": [
|
|
76
|
+
{
|
|
77
|
+
"type": "studio.core/grid",
|
|
78
|
+
"version": "1.0.0",
|
|
79
|
+
"revision": "grid-block-r1"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "org.example.catalog/price",
|
|
83
|
+
"version": "1.0.0",
|
|
84
|
+
"revision": "price-block-r1"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"plugins": [],
|
|
88
|
+
"hostCapabilities": {
|
|
89
|
+
"contractVersion": "0.1-draft",
|
|
90
|
+
"kind": "host-capabilities",
|
|
91
|
+
"host": {
|
|
92
|
+
"id": "org.kumwe/cms",
|
|
93
|
+
"version": "3.0.0-alpha.1",
|
|
94
|
+
"generation": "runtime-generation-42"
|
|
95
|
+
},
|
|
96
|
+
"protocolVersions": ["0.1.0-draft.1"],
|
|
97
|
+
"ports": [
|
|
98
|
+
{
|
|
99
|
+
"id": "studio.port/artifact",
|
|
100
|
+
"version": "1.0.0",
|
|
101
|
+
"operations": ["studio.operation/load", "studio.operation/save"]
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"capabilities": []
|
|
105
|
+
},
|
|
106
|
+
"limits": {
|
|
107
|
+
"maxNodes": 5000,
|
|
108
|
+
"maxDepth": 32,
|
|
109
|
+
"maxSlotsPerNode": 20,
|
|
110
|
+
"maxChildrenPerSlot": 1000,
|
|
111
|
+
"maxPropertyBytes": 1048576,
|
|
112
|
+
"maxExtensionBytes": 1048576,
|
|
113
|
+
"maxCommandBatch": 100,
|
|
114
|
+
"maxHistoryEntries": 1000,
|
|
115
|
+
"maxRichTextBytes": 1048576,
|
|
116
|
+
"maxRichTextDepth": 32,
|
|
117
|
+
"maxPreviewRequestsPerMinute": 600,
|
|
118
|
+
"maxPreviewBytes": 10485760,
|
|
119
|
+
"maxMediaUploadBytes": 1073741824,
|
|
120
|
+
"maxMediaBatch": 50,
|
|
121
|
+
"maxPluginCount": 50,
|
|
122
|
+
"maxContributionsPerPlugin": 500,
|
|
123
|
+
"maxLocaleBytes": 1048576
|
|
124
|
+
},
|
|
125
|
+
"features": {
|
|
126
|
+
"executablePlugins": false,
|
|
127
|
+
"customInspectors": false,
|
|
128
|
+
"externalMediaImport": false,
|
|
129
|
+
"clipboardMediaUpload": true,
|
|
130
|
+
"collaboration": false,
|
|
131
|
+
"offlineRecovery": true
|
|
132
|
+
},
|
|
133
|
+
"preview": {
|
|
134
|
+
"enabled": true,
|
|
135
|
+
"sameOriginRequired": true,
|
|
136
|
+
"allowApproximateRenderer": false,
|
|
137
|
+
"initialViewport": "expanded"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "theme",
|
|
4
|
+
"id": "org.example.themes/commerce",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"revision": "commerce-theme-r3",
|
|
7
|
+
"owner": {
|
|
8
|
+
"id": "org.example/theme-package",
|
|
9
|
+
"version": "1.0.0"
|
|
10
|
+
},
|
|
11
|
+
"label": {
|
|
12
|
+
"key": "org.example.theme/commerce",
|
|
13
|
+
"defaultMessage": "Commerce"
|
|
14
|
+
},
|
|
15
|
+
"viewports": [
|
|
16
|
+
{
|
|
17
|
+
"id": "compact",
|
|
18
|
+
"label": {
|
|
19
|
+
"key": "studio.viewport/compact",
|
|
20
|
+
"defaultMessage": "Compact"
|
|
21
|
+
},
|
|
22
|
+
"order": 0,
|
|
23
|
+
"base": true,
|
|
24
|
+
"previewWidth": 360
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "medium",
|
|
28
|
+
"label": {
|
|
29
|
+
"key": "studio.viewport/medium",
|
|
30
|
+
"defaultMessage": "Medium"
|
|
31
|
+
},
|
|
32
|
+
"order": 1,
|
|
33
|
+
"base": false,
|
|
34
|
+
"previewWidth": 768
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "expanded",
|
|
38
|
+
"label": {
|
|
39
|
+
"key": "studio.viewport/expanded",
|
|
40
|
+
"defaultMessage": "Expanded"
|
|
41
|
+
},
|
|
42
|
+
"order": 2,
|
|
43
|
+
"base": false,
|
|
44
|
+
"previewWidth": 1440
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"designControls": [
|
|
48
|
+
{
|
|
49
|
+
"id": "gap",
|
|
50
|
+
"kind": "spacing-role",
|
|
51
|
+
"label": {
|
|
52
|
+
"key": "org.example.theme/gap",
|
|
53
|
+
"defaultMessage": "Gap"
|
|
54
|
+
},
|
|
55
|
+
"choices": [
|
|
56
|
+
{
|
|
57
|
+
"id": "small",
|
|
58
|
+
"label": {
|
|
59
|
+
"key": "org.example.theme/gap-small",
|
|
60
|
+
"defaultMessage": "Small"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "large",
|
|
65
|
+
"label": {
|
|
66
|
+
"key": "org.example.theme/gap-large",
|
|
67
|
+
"defaultMessage": "Large"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "emphasis",
|
|
74
|
+
"kind": "typography-role",
|
|
75
|
+
"label": {
|
|
76
|
+
"key": "org.example.theme/emphasis",
|
|
77
|
+
"defaultMessage": "Emphasis"
|
|
78
|
+
},
|
|
79
|
+
"choices": [
|
|
80
|
+
{
|
|
81
|
+
"id": "price",
|
|
82
|
+
"label": {
|
|
83
|
+
"key": "org.example.theme/emphasis-price",
|
|
84
|
+
"defaultMessage": "Price emphasis"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"recipes": [
|
|
91
|
+
{
|
|
92
|
+
"id": "product-grid",
|
|
93
|
+
"blockType": "studio.core/grid",
|
|
94
|
+
"label": {
|
|
95
|
+
"key": "org.example.theme/product-grid",
|
|
96
|
+
"defaultMessage": "Product grid"
|
|
97
|
+
},
|
|
98
|
+
"designValues": {
|
|
99
|
+
"gap": "large"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"renderers": [
|
|
104
|
+
{
|
|
105
|
+
"id": "org.example.renderer/twig",
|
|
106
|
+
"version": "1.0.0",
|
|
107
|
+
"surfaces": ["web", "preview"],
|
|
108
|
+
"exactPreview": true
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"blockSupport": [
|
|
112
|
+
{
|
|
113
|
+
"type": "studio.core/grid",
|
|
114
|
+
"versions": "^1.0.0",
|
|
115
|
+
"renderer": "org.example.renderer/twig"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"type": "org.example.catalog/price",
|
|
119
|
+
"versions": "^1.0.0",
|
|
120
|
+
"renderer": "org.example.renderer/twig"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "unresolved-contribution",
|
|
4
|
+
"reference": {
|
|
5
|
+
"contribution": "block",
|
|
6
|
+
"id": "org.example.blocks/hero",
|
|
7
|
+
"version": "1.0.0"
|
|
8
|
+
},
|
|
9
|
+
"reason": "owner-disabled",
|
|
10
|
+
"owner": { "id": "org.example/blocks", "version": "1.0.0" },
|
|
11
|
+
"affectedNodes": ["node-hero-1", "node-hero-2"],
|
|
12
|
+
"diagnostics": [
|
|
13
|
+
{
|
|
14
|
+
"code": "studio.validation/block-unavailable",
|
|
15
|
+
"severity": "warning",
|
|
16
|
+
"message": {
|
|
17
|
+
"key": "studio.validation/block-unavailable",
|
|
18
|
+
"defaultMessage": "The hero block's provider is disabled; its content is preserved but not editable."
|
|
19
|
+
},
|
|
20
|
+
"location": { "nodeId": "node-hero-1" }
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "blueprint.schema.json",
|
|
3
|
+
"description": "Node property member names reject control characters.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"dependencyLock": {
|
|
7
|
+
"blocks": [
|
|
8
|
+
{
|
|
9
|
+
"revision": "block-r1",
|
|
10
|
+
"type": "studio.vector/section",
|
|
11
|
+
"version": "1.0.0"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"revision": "block-r1",
|
|
15
|
+
"type": "studio.vector/text",
|
|
16
|
+
"version": "1.0.0"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"theme": {
|
|
20
|
+
"id": "studio.vector/theme",
|
|
21
|
+
"revision": "theme-r1",
|
|
22
|
+
"version": "1.0.0"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"id": "vector.blueprint",
|
|
26
|
+
"kind": "blueprint",
|
|
27
|
+
"label": {
|
|
28
|
+
"defaultMessage": "Vector Blueprint",
|
|
29
|
+
"key": "studio.vector/blueprint"
|
|
30
|
+
},
|
|
31
|
+
"model": {
|
|
32
|
+
"id": "studio.vector/model",
|
|
33
|
+
"revision": "model-r1",
|
|
34
|
+
"version": "1.0.0"
|
|
35
|
+
},
|
|
36
|
+
"owner": {
|
|
37
|
+
"id": "studio.vector/suite",
|
|
38
|
+
"version": "0.1.0-alpha.0"
|
|
39
|
+
},
|
|
40
|
+
"revision": "blueprint-r1",
|
|
41
|
+
"roots": [
|
|
42
|
+
{
|
|
43
|
+
"authoring": {
|
|
44
|
+
"mode": "designer"
|
|
45
|
+
},
|
|
46
|
+
"bindings": {},
|
|
47
|
+
"id": "text-a",
|
|
48
|
+
"properties": {
|
|
49
|
+
"line\nbreak": true
|
|
50
|
+
},
|
|
51
|
+
"slots": {},
|
|
52
|
+
"type": "studio.vector/text",
|
|
53
|
+
"version": "1.0.0"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"status": "draft",
|
|
57
|
+
"version": "1.0.0"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "blueprint.schema.json",
|
|
3
|
+
"description": "Node properties reject prototype-polluting member names.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"dependencyLock": {
|
|
7
|
+
"blocks": [
|
|
8
|
+
{
|
|
9
|
+
"revision": "block-r1",
|
|
10
|
+
"type": "studio.vector/section",
|
|
11
|
+
"version": "1.0.0"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"revision": "block-r1",
|
|
15
|
+
"type": "studio.vector/text",
|
|
16
|
+
"version": "1.0.0"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"theme": {
|
|
20
|
+
"id": "studio.vector/theme",
|
|
21
|
+
"revision": "theme-r1",
|
|
22
|
+
"version": "1.0.0"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"id": "vector.blueprint",
|
|
26
|
+
"kind": "blueprint",
|
|
27
|
+
"label": {
|
|
28
|
+
"defaultMessage": "Vector Blueprint",
|
|
29
|
+
"key": "studio.vector/blueprint"
|
|
30
|
+
},
|
|
31
|
+
"model": {
|
|
32
|
+
"id": "studio.vector/model",
|
|
33
|
+
"revision": "model-r1",
|
|
34
|
+
"version": "1.0.0"
|
|
35
|
+
},
|
|
36
|
+
"owner": {
|
|
37
|
+
"id": "studio.vector/suite",
|
|
38
|
+
"version": "0.1.0-alpha.0"
|
|
39
|
+
},
|
|
40
|
+
"revision": "blueprint-r1",
|
|
41
|
+
"roots": [
|
|
42
|
+
{
|
|
43
|
+
"authoring": {
|
|
44
|
+
"mode": "designer"
|
|
45
|
+
},
|
|
46
|
+
"bindings": {},
|
|
47
|
+
"id": "text-a",
|
|
48
|
+
"properties": {
|
|
49
|
+
"__proto__": {
|
|
50
|
+
"polluted": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"slots": {},
|
|
54
|
+
"type": "studio.vector/text",
|
|
55
|
+
"version": "1.0.0"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"status": "draft",
|
|
59
|
+
"version": "1.0.0"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "blueprint.schema.json",
|
|
3
|
+
"description": "Node identifiers must start with an alphanumeric character.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"dependencyLock": {
|
|
7
|
+
"blocks": [
|
|
8
|
+
{
|
|
9
|
+
"revision": "block-r1",
|
|
10
|
+
"type": "studio.vector/section",
|
|
11
|
+
"version": "1.0.0"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"revision": "block-r1",
|
|
15
|
+
"type": "studio.vector/text",
|
|
16
|
+
"version": "1.0.0"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"theme": {
|
|
20
|
+
"id": "studio.vector/theme",
|
|
21
|
+
"revision": "theme-r1",
|
|
22
|
+
"version": "1.0.0"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"id": "vector.blueprint",
|
|
26
|
+
"kind": "blueprint",
|
|
27
|
+
"label": {
|
|
28
|
+
"defaultMessage": "Vector Blueprint",
|
|
29
|
+
"key": "studio.vector/blueprint"
|
|
30
|
+
},
|
|
31
|
+
"model": {
|
|
32
|
+
"id": "studio.vector/model",
|
|
33
|
+
"revision": "model-r1",
|
|
34
|
+
"version": "1.0.0"
|
|
35
|
+
},
|
|
36
|
+
"owner": {
|
|
37
|
+
"id": "studio.vector/suite",
|
|
38
|
+
"version": "0.1.0-alpha.0"
|
|
39
|
+
},
|
|
40
|
+
"revision": "blueprint-r1",
|
|
41
|
+
"roots": [
|
|
42
|
+
{
|
|
43
|
+
"authoring": {
|
|
44
|
+
"mode": "designer"
|
|
45
|
+
},
|
|
46
|
+
"bindings": {},
|
|
47
|
+
"id": "-leading-dash",
|
|
48
|
+
"properties": {},
|
|
49
|
+
"slots": {},
|
|
50
|
+
"type": "studio.vector/text",
|
|
51
|
+
"version": "1.0.0"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"status": "draft",
|
|
55
|
+
"version": "1.0.0"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "blueprint.schema.json",
|
|
3
|
+
"description": "Slot names are lower-case local names.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"dependencyLock": {
|
|
7
|
+
"blocks": [
|
|
8
|
+
{
|
|
9
|
+
"revision": "block-r1",
|
|
10
|
+
"type": "studio.vector/section",
|
|
11
|
+
"version": "1.0.0"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"revision": "block-r1",
|
|
15
|
+
"type": "studio.vector/text",
|
|
16
|
+
"version": "1.0.0"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"theme": {
|
|
20
|
+
"id": "studio.vector/theme",
|
|
21
|
+
"revision": "theme-r1",
|
|
22
|
+
"version": "1.0.0"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"id": "vector.blueprint",
|
|
26
|
+
"kind": "blueprint",
|
|
27
|
+
"label": {
|
|
28
|
+
"defaultMessage": "Vector Blueprint",
|
|
29
|
+
"key": "studio.vector/blueprint"
|
|
30
|
+
},
|
|
31
|
+
"model": {
|
|
32
|
+
"id": "studio.vector/model",
|
|
33
|
+
"revision": "model-r1",
|
|
34
|
+
"version": "1.0.0"
|
|
35
|
+
},
|
|
36
|
+
"owner": {
|
|
37
|
+
"id": "studio.vector/suite",
|
|
38
|
+
"version": "0.1.0-alpha.0"
|
|
39
|
+
},
|
|
40
|
+
"revision": "blueprint-r1",
|
|
41
|
+
"roots": [
|
|
42
|
+
{
|
|
43
|
+
"authoring": {
|
|
44
|
+
"mode": "designer"
|
|
45
|
+
},
|
|
46
|
+
"bindings": {},
|
|
47
|
+
"id": "text-a",
|
|
48
|
+
"properties": {},
|
|
49
|
+
"slots": {
|
|
50
|
+
"Main": []
|
|
51
|
+
},
|
|
52
|
+
"type": "studio.vector/text",
|
|
53
|
+
"version": "1.0.0"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"status": "draft",
|
|
57
|
+
"version": "1.0.0"
|
|
58
|
+
}
|
|
59
|
+
}
|