@kumwe/studio-testkit 0.1.0-alpha.10
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 +138 -0
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/conformance/authoring-web/non-drag-move-equivalence.json +199 -0
- package/conformance/renderer-web/blob-default-deny.json +47 -0
- package/conformance/renderer-web/chart-fallback.json +39 -0
- package/conformance/renderer-web/complete-catalog.json +634 -0
- package/conformance/renderer-web/escaped-heading.json +28 -0
- package/conformance/renderer-web/interactive-behaviors.json +226 -0
- package/conformance/renderer-web/presentation-capabilities.json +76 -0
- package/conformance/renderer-web/responsive-grid.json +33 -0
- package/conformance/renderer-web/security-fallbacks.json +169 -0
- package/conformance/rich-text/advanced.first-party.json +67 -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/corpus-manifest.json +1212 -0
- package/dist/host-testbed.d.ts +71 -0
- package/dist/host-testbed.d.ts.map +1 -0
- package/dist/host-testbed.js +782 -0
- package/dist/host-testbed.js.map +1 -0
- package/dist/http-host-adapter.d.ts +74 -0
- package/dist/http-host-adapter.d.ts.map +1 -0
- package/dist/http-host-adapter.js +264 -0
- package/dist/http-host-adapter.js.map +1 -0
- package/dist/index.d.ts +112 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +211 -0
- package/dist/index.js.map +1 -0
- package/dist/web-conformance.d.ts +105 -0
- package/dist/web-conformance.d.ts.map +1 -0
- package/dist/web-conformance.js +72 -0
- package/dist/web-conformance.js.map +1 -0
- package/fixtures/authoring-message-catalog.en.json +649 -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/design-vocabulary.example.json +85 -0
- package/fixtures/entry.product.example.json +55 -0
- package/fixtures/field-adapter.example.json +27 -0
- package/fixtures/host-capabilities.example.json +42 -0
- package/fixtures/host-error.conflict.example.json +23 -0
- package/fixtures/host-operations.example.json +270 -0
- package/fixtures/inspector.example.json +17 -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-grant.example.json +14 -0
- package/fixtures/media-upload-session.transferring.example.json +22 -0
- package/fixtures/migration.example.json +22 -0
- package/fixtures/pattern.example.json +49 -0
- package/fixtures/plugin.example.json +49 -0
- package/fixtures/preview.render.example.json +15 -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/binding-projection-vector.unknown-status.json +85 -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.revoking-slot-marker.json +57 -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.malformed-size-role.json +18 -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/design-vocabulary.unknown-control-kind.json +38 -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/host-sequence.pending-expectation.json +52 -0
- package/invalid/host-sequence.preview-render-missing-request-id.json +50 -0
- package/invalid/inspector.empty-block-types.json +20 -0
- package/invalid/media-reference.missing-accessibility.json +25 -0
- package/invalid/media-upload-grant.insecure-url.json +14 -0
- package/invalid/media-upload-session.complete-without-asset.json +20 -0
- package/invalid/migration.empty-artifact-kinds.json +22 -0
- package/invalid/preview-message.activated-unknown-interaction.json +16 -0
- package/invalid/preview-message.duplicate-marker.json +24 -0
- package/invalid/preview-message.invalid-digest.json +19 -0
- package/invalid/preview-message.invalid-marker-grammar.json +19 -0
- package/invalid/preview-message.missing-marker-map.json +20 -0
- package/invalid/preview-message.missing-render-request-id.json +18 -0
- package/invalid/preview-message.unknown-type.json +13 -0
- package/invalid/preview-message.viewport-height-too-small.json +13 -0
- package/invalid/preview-message.viewport-role-and-size.json +16 -0
- package/invalid/preview-message.viewport-unsafe-role.json +13 -0
- package/invalid/rich-text.embedded-html.json +13 -0
- package/invalid/rich-text.unknown-mark.json +19 -0
- package/invalid/studio-chart.script-config.json +10 -0
- package/invalid/studio-drawing.svg-payload.json +10 -0
- package/invalid/studio-money.float.json +8 -0
- package/invalid/studio-presentation.css-injection.json +8 -0
- package/invalid/studio-table.html-cell.json +8 -0
- package/invalid/theme.unknown-member.json +128 -0
- package/package.json +54 -0
- package/studio-release.json +18 -0
- package/vectors/binding-projection/app-content-fields.resolved.json +286 -0
- package/vectors/binding-projection/field-removed.diagnostic.json +135 -0
- package/vectors/binding-projection/model-revision-mismatch.diagnostic.json +124 -0
- 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/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/batch.size-roles.json +180 -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/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/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/set-size-role.base.json +144 -0
- package/vectors/command/set-size-role.duplicate.json +148 -0
- package/vectors/command/set-size-role.viewport-add.json +154 -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
- package/vectors/command/unset-size-role.missing.error.json +78 -0
- package/vectors/command/unset-size-role.viewport.json +154 -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/model.get.stored.json +37 -0
- package/vectors/host/model.list.authorized.json +31 -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
- package/vectors/host-sequence/artifact.publish.changed-intent.sequence.json +75 -0
- package/vectors/host-sequence/artifact.publish.idempotent-replay.sequence.json +111 -0
- package/vectors/host-sequence/preview.cancel.cross-context.sequence.json +78 -0
- package/vectors/host-sequence/preview.render.cancelled.sequence.json +75 -0
- package/vectors/host-sequence/recovery.store.canonical-number.sequence.json +72 -0
- package/vectors/host-sequence/recovery.store.changed-context.sequence.json +61 -0
- package/vectors/host-sequence/recovery.store.rate-limited.sequence.json +93 -0
- package/vectors/host-sequence/recovery.store.resource-scope.sequence.json +61 -0
- package/vectors/host-sequence/recovery.store.wrong-operation-id.sequence.json +56 -0
- package/vectors/media/accept.plan-deterministic.json +26 -0
- package/vectors/media/accept.size-at-boundary.json +26 -0
- package/vectors/media/cancel.complete-noop.json +30 -0
- package/vectors/media/cancel.requested.json +30 -0
- package/vectors/media/cancel.transferring.json +30 -0
- package/vectors/media/cancel.verifying.json +30 -0
- package/vectors/media/reject.disallowed-kind.json +23 -0
- package/vectors/media/reject.filename-empty.json +22 -0
- package/vectors/media/reject.filename-path.json +23 -0
- package/vectors/media/reject.size-one-byte-over.json +23 -0
- package/vectors/media/retry.fresh-session.json +26 -0
- package/vectors/preview/canonical-preorder.json +102 -0
- package/vectors/preview/empty-draft.json +36 -0
- package/vectors/schema-profile/alternative-limit.accepted.json +95 -0
- package/vectors/schema-profile/alternative-limit.rejected.json +92 -0
- package/vectors/schema-profile/array-composition.accepted.json +35 -0
- package/vectors/schema-profile/byte-limit.accepted.json +30 -0
- package/vectors/schema-profile/byte-limit.rejected.json +26 -0
- package/vectors/schema-profile/closed-object.accepted.json +38 -0
- package/vectors/schema-profile/decimal-multiple.accepted.json +54 -0
- package/vectors/schema-profile/depth-limit.accepted.json +90 -0
- package/vectors/schema-profile/depth-limit.rejected.json +88 -0
- package/vectors/schema-profile/description-limit.accepted.json +29 -0
- package/vectors/schema-profile/description-limit.rejected.json +25 -0
- package/vectors/schema-profile/diagnostic-precedence.rejected.json +26 -0
- package/vectors/schema-profile/duplicate-dependent-required.rejected.json +21 -0
- package/vectors/schema-profile/duplicate-required.rejected.json +18 -0
- package/vectors/schema-profile/empty-combinator.rejected.json +17 -0
- package/vectors/schema-profile/empty-enum.rejected.json +17 -0
- package/vectors/schema-profile/enum-limit.accepted.json +89 -0
- package/vectors/schema-profile/enum-limit.rejected.json +84 -0
- package/vectors/schema-profile/examples-limit.accepted.json +35 -0
- package/vectors/schema-profile/examples-limit.rejected.json +31 -0
- package/vectors/schema-profile/format-keyword.rejected.json +17 -0
- package/vectors/schema-profile/forward-reference-path-precedence.rejected.json +20 -0
- package/vectors/schema-profile/invalid-pointer.rejected.json +18 -0
- package/vectors/schema-profile/json-depth-limit.accepted.json +278 -0
- package/vectors/schema-profile/json-depth-limit.rejected.json +276 -0
- package/vectors/schema-profile/json-item-limit.accepted.json +686 -0
- package/vectors/schema-profile/json-item-limit.rejected.json +682 -0
- package/vectors/schema-profile/json-property-limit.accepted.json +1031 -0
- package/vectors/schema-profile/json-property-limit.rejected.json +1028 -0
- package/vectors/schema-profile/local-reference.accepted.json +28 -0
- package/vectors/schema-profile/memoized-diagnostic.accepted.json +31 -0
- package/vectors/schema-profile/node-limit.accepted.json +1097 -0
- package/vectors/schema-profile/node-limit.rejected.json +1094 -0
- package/vectors/schema-profile/non-object-root.rejected.json +9 -0
- package/vectors/schema-profile/non-schema-reference.rejected.json +21 -0
- package/vectors/schema-profile/object-key-limit.accepted.json +32 -0
- package/vectors/schema-profile/object-key-limit.rejected.json +28 -0
- package/vectors/schema-profile/open-root.rejected.json +13 -0
- package/vectors/schema-profile/percent-encoded-pointer.rejected.json +26 -0
- package/vectors/schema-profile/property-name-limit.accepted.json +543 -0
- package/vectors/schema-profile/property-name-limit.rejected.json +536 -0
- package/vectors/schema-profile/recursive-diagnostic-precedence.rejected.json +30 -0
- package/vectors/schema-profile/recursive-reference.rejected.json +24 -0
- package/vectors/schema-profile/reference-fanout.accepted.json +662 -0
- package/vectors/schema-profile/reference-length-limit.accepted.json +45 -0
- package/vectors/schema-profile/reference-length-limit.rejected.json +39 -0
- package/vectors/schema-profile/reference-limit.accepted.json +416 -0
- package/vectors/schema-profile/reference-limit.rejected.json +415 -0
- package/vectors/schema-profile/reference-vs-keyword-precedence.rejected.json +22 -0
- package/vectors/schema-profile/reserved-pointer.rejected.json +26 -0
- package/vectors/schema-profile/root-diagnostic-precedence.rejected.json +16 -0
- package/vectors/schema-profile/root-vs-reference-precedence.rejected.json +19 -0
- package/vectors/schema-profile/schema-map-limit.accepted.json +539 -0
- package/vectors/schema-profile/schema-map-limit.rejected.json +536 -0
- package/vectors/schema-profile/semantic-recursion-precedence.rejected.json +21 -0
- package/vectors/schema-profile/semantic-reference-precedence.rejected.json +21 -0
- package/vectors/schema-profile/title-limit.accepted.json +29 -0
- package/vectors/schema-profile/title-limit.rejected.json +25 -0
- package/vectors/schema-profile/unresolved-reference.rejected.json +17 -0
- package/vectors/schema-profile/unsafe-dependent-required.rejected.json +24 -0
- package/vectors/schema-profile/unsafe-member.rejected.json +17 -0
- package/vectors/schema-profile/unsafe-required.rejected.json +17 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "blueprint.schema.json",
|
|
3
|
+
"description": "The per-slot composition marker only grants composability; a revoking marker is rejected.",
|
|
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
|
+
"theme": {
|
|
15
|
+
"id": "studio.vector/theme",
|
|
16
|
+
"revision": "theme-r1",
|
|
17
|
+
"version": "1.0.0"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"id": "vector.blueprint",
|
|
21
|
+
"kind": "blueprint",
|
|
22
|
+
"label": {
|
|
23
|
+
"defaultMessage": "Vector Blueprint",
|
|
24
|
+
"key": "studio.vector/blueprint"
|
|
25
|
+
},
|
|
26
|
+
"model": {
|
|
27
|
+
"id": "studio.vector/model",
|
|
28
|
+
"revision": "model-r1",
|
|
29
|
+
"version": "1.0.0"
|
|
30
|
+
},
|
|
31
|
+
"owner": {
|
|
32
|
+
"id": "studio.vector/suite",
|
|
33
|
+
"version": "0.1.0-alpha.0"
|
|
34
|
+
},
|
|
35
|
+
"revision": "blueprint-r1",
|
|
36
|
+
"roots": [
|
|
37
|
+
{
|
|
38
|
+
"authoring": {
|
|
39
|
+
"mode": "structural",
|
|
40
|
+
"slots": {
|
|
41
|
+
"main": {
|
|
42
|
+
"composable": false
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"bindings": {},
|
|
47
|
+
"id": "section-a",
|
|
48
|
+
"properties": {},
|
|
49
|
+
"slots": {},
|
|
50
|
+
"type": "studio.vector/section",
|
|
51
|
+
"version": "1.0.0"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"status": "draft",
|
|
55
|
+
"version": "1.0.0"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "blueprint.schema.json",
|
|
3
|
+
"description": "A closed Blueprint document rejects unknown top-level members.",
|
|
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
|
+
"type": "studio.vector/text",
|
|
51
|
+
"version": "1.0.0"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"status": "draft",
|
|
55
|
+
"version": "1.0.0",
|
|
56
|
+
"surprise": true
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "command-vector.schema.json",
|
|
3
|
+
"description": "Command vectors only use the closed stable failure-code taxonomy.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "command-vector",
|
|
7
|
+
"id": "vector.command-vector.insert-node.root",
|
|
8
|
+
"description": "Inserting a node at a root position appends it exactly there; the inverse removal restores the prior document.",
|
|
9
|
+
"initial": {
|
|
10
|
+
"contractVersion": "0.1-draft",
|
|
11
|
+
"dependencyLock": {
|
|
12
|
+
"blocks": [
|
|
13
|
+
{
|
|
14
|
+
"revision": "block-r1",
|
|
15
|
+
"type": "studio.vector/section",
|
|
16
|
+
"version": "1.0.0"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"revision": "block-r1",
|
|
20
|
+
"type": "studio.vector/text",
|
|
21
|
+
"version": "1.0.0"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"theme": {
|
|
25
|
+
"id": "studio.vector/theme",
|
|
26
|
+
"revision": "theme-r1",
|
|
27
|
+
"version": "1.0.0"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"id": "vector.blueprint",
|
|
31
|
+
"kind": "blueprint",
|
|
32
|
+
"label": {
|
|
33
|
+
"defaultMessage": "Vector Blueprint",
|
|
34
|
+
"key": "studio.vector/blueprint"
|
|
35
|
+
},
|
|
36
|
+
"model": {
|
|
37
|
+
"id": "studio.vector/model",
|
|
38
|
+
"revision": "model-r1",
|
|
39
|
+
"version": "1.0.0"
|
|
40
|
+
},
|
|
41
|
+
"owner": {
|
|
42
|
+
"id": "studio.vector/suite",
|
|
43
|
+
"version": "0.1.0-alpha.0"
|
|
44
|
+
},
|
|
45
|
+
"revision": "blueprint-r1",
|
|
46
|
+
"roots": [
|
|
47
|
+
{
|
|
48
|
+
"authoring": {
|
|
49
|
+
"mode": "designer"
|
|
50
|
+
},
|
|
51
|
+
"bindings": {},
|
|
52
|
+
"id": "text-a",
|
|
53
|
+
"properties": {},
|
|
54
|
+
"slots": {},
|
|
55
|
+
"type": "studio.vector/text",
|
|
56
|
+
"version": "1.0.0"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"status": "draft",
|
|
60
|
+
"version": "1.0.0"
|
|
61
|
+
},
|
|
62
|
+
"command": {
|
|
63
|
+
"artifactId": "vector.blueprint",
|
|
64
|
+
"baseStateVersion": 0,
|
|
65
|
+
"contractVersion": "0.1-draft",
|
|
66
|
+
"id": "vector.command.insert-node.root",
|
|
67
|
+
"kind": "command",
|
|
68
|
+
"payload": {
|
|
69
|
+
"destination": {
|
|
70
|
+
"position": 1
|
|
71
|
+
},
|
|
72
|
+
"node": {
|
|
73
|
+
"authoring": {
|
|
74
|
+
"mode": "designer"
|
|
75
|
+
},
|
|
76
|
+
"bindings": {},
|
|
77
|
+
"id": "text-b",
|
|
78
|
+
"properties": {},
|
|
79
|
+
"slots": {},
|
|
80
|
+
"type": "studio.vector/text",
|
|
81
|
+
"version": "1.0.0"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"sessionGeneration": "session-r1",
|
|
85
|
+
"type": "studio.command/insert-node"
|
|
86
|
+
},
|
|
87
|
+
"expect": {
|
|
88
|
+
"errorCode": "mystery-error"
|
|
89
|
+
},
|
|
90
|
+
"inverse": {
|
|
91
|
+
"artifactId": "vector.blueprint",
|
|
92
|
+
"baseStateVersion": 1,
|
|
93
|
+
"contractVersion": "0.1-draft",
|
|
94
|
+
"id": "vector.inverse.insert-node.root",
|
|
95
|
+
"kind": "command",
|
|
96
|
+
"payload": {
|
|
97
|
+
"nodeId": "text-b"
|
|
98
|
+
},
|
|
99
|
+
"sessionGeneration": "session-r1",
|
|
100
|
+
"type": "studio.command/remove-node"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "command.schema.json",
|
|
3
|
+
"description": "A batch must contain at least one operation.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "command",
|
|
7
|
+
"id": "command-01J5",
|
|
8
|
+
"type": "studio.command/batch",
|
|
9
|
+
"artifactId": "org.example.blueprints/product-card",
|
|
10
|
+
"expectedRevision": "product-card-r5",
|
|
11
|
+
"sessionGeneration": "session-generation-1",
|
|
12
|
+
"baseStateVersion": 12,
|
|
13
|
+
"payload": {
|
|
14
|
+
"operations": []
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "command.schema.json",
|
|
3
|
+
"description": "Duplicate identifier maps reject prototype-polluting member names.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "command",
|
|
7
|
+
"id": "command-01J5",
|
|
8
|
+
"type": "studio.command/duplicate-node",
|
|
9
|
+
"artifactId": "org.example.blueprints/product-card",
|
|
10
|
+
"expectedRevision": "product-card-r5",
|
|
11
|
+
"sessionGeneration": "session-generation-1",
|
|
12
|
+
"baseStateVersion": 12,
|
|
13
|
+
"payload": {
|
|
14
|
+
"nodeId": "node-a",
|
|
15
|
+
"idMap": {
|
|
16
|
+
"__proto__": "node-b"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "command.schema.json",
|
|
3
|
+
"description": "A size role must be a bounded lower-case identifier, never free text or CSS.",
|
|
4
|
+
"value": {
|
|
5
|
+
"artifactId": "vector.blueprint",
|
|
6
|
+
"baseStateVersion": 0,
|
|
7
|
+
"contractVersion": "0.1-draft",
|
|
8
|
+
"id": "vector.command.malformed-size-role",
|
|
9
|
+
"kind": "command",
|
|
10
|
+
"payload": {
|
|
11
|
+
"axis": "inline",
|
|
12
|
+
"nodeId": "text-a",
|
|
13
|
+
"role": "calc(50% - 1rem)"
|
|
14
|
+
},
|
|
15
|
+
"sessionGeneration": "session-r1",
|
|
16
|
+
"type": "studio.command/set-size-role"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "command.schema.json",
|
|
3
|
+
"description": "Destination positions are non-negative integers.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "command",
|
|
7
|
+
"id": "command-01J5",
|
|
8
|
+
"type": "studio.command/move-node",
|
|
9
|
+
"artifactId": "org.example.blueprints/product-card",
|
|
10
|
+
"expectedRevision": "product-card-r5",
|
|
11
|
+
"sessionGeneration": "session-generation-1",
|
|
12
|
+
"baseStateVersion": 12,
|
|
13
|
+
"payload": {
|
|
14
|
+
"nodeId": "node-price",
|
|
15
|
+
"destination": {
|
|
16
|
+
"position": -1
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "command.schema.json",
|
|
3
|
+
"description": "A batch operation cannot contain another batch.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "command",
|
|
7
|
+
"id": "command-01J5",
|
|
8
|
+
"type": "studio.command/batch",
|
|
9
|
+
"artifactId": "org.example.blueprints/product-card",
|
|
10
|
+
"expectedRevision": "product-card-r5",
|
|
11
|
+
"sessionGeneration": "session-generation-1",
|
|
12
|
+
"baseStateVersion": 12,
|
|
13
|
+
"payload": {
|
|
14
|
+
"operations": [
|
|
15
|
+
{
|
|
16
|
+
"type": "studio.command/batch",
|
|
17
|
+
"payload": {
|
|
18
|
+
"operations": []
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "command.schema.json",
|
|
3
|
+
"description": "Pattern application cannot nest inside a batch because its inverse is itself a batch.",
|
|
4
|
+
"value": {
|
|
5
|
+
"artifactId": "vector.blueprint",
|
|
6
|
+
"baseStateVersion": 0,
|
|
7
|
+
"contractVersion": "0.1-draft",
|
|
8
|
+
"id": "vector.command.pattern-in-batch",
|
|
9
|
+
"kind": "command",
|
|
10
|
+
"payload": {
|
|
11
|
+
"operations": [
|
|
12
|
+
{
|
|
13
|
+
"type": "studio.command/apply-pattern",
|
|
14
|
+
"payload": {
|
|
15
|
+
"destination": { "position": 0 },
|
|
16
|
+
"idMap": { "text-p": "text-p1" },
|
|
17
|
+
"nodes": [
|
|
18
|
+
{
|
|
19
|
+
"authoring": { "mode": "designer" },
|
|
20
|
+
"bindings": {},
|
|
21
|
+
"id": "text-p",
|
|
22
|
+
"properties": {},
|
|
23
|
+
"slots": {},
|
|
24
|
+
"type": "studio.vector/text",
|
|
25
|
+
"version": "1.0.0"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"pattern": {
|
|
29
|
+
"id": "patterns/hero-with-caption",
|
|
30
|
+
"revision": "pattern-r3",
|
|
31
|
+
"version": "1.2.0"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"sessionGeneration": "session-r1",
|
|
38
|
+
"type": "studio.command/batch"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "command.schema.json",
|
|
3
|
+
"description": "Inheritance reset cannot nest inside a batch because its inverse is itself a batch.",
|
|
4
|
+
"value": {
|
|
5
|
+
"artifactId": "vector.blueprint",
|
|
6
|
+
"baseStateVersion": 0,
|
|
7
|
+
"contractVersion": "0.1-draft",
|
|
8
|
+
"id": "vector.command.reset-inherited-property-in-batch",
|
|
9
|
+
"kind": "command",
|
|
10
|
+
"payload": {
|
|
11
|
+
"operations": [
|
|
12
|
+
{
|
|
13
|
+
"type": "studio.command/reset-inherited-property",
|
|
14
|
+
"payload": {
|
|
15
|
+
"nodeId": "text-a",
|
|
16
|
+
"property": "emphasis"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"sessionGeneration": "session-r1",
|
|
22
|
+
"type": "studio.command/batch"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "command.schema.json",
|
|
3
|
+
"description": "The closed command envelope rejects unknown members.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "command",
|
|
7
|
+
"id": "command-01J5",
|
|
8
|
+
"type": "studio.command/move-node",
|
|
9
|
+
"artifactId": "org.example.blueprints/product-card",
|
|
10
|
+
"expectedRevision": "product-card-r5",
|
|
11
|
+
"sessionGeneration": "session-generation-1",
|
|
12
|
+
"baseStateVersion": 12,
|
|
13
|
+
"payload": {
|
|
14
|
+
"nodeId": "node-price",
|
|
15
|
+
"destination": {
|
|
16
|
+
"parentNodeId": "node-grid",
|
|
17
|
+
"slot": "items",
|
|
18
|
+
"position": 0
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"audit": "unexpected"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "command.schema.json",
|
|
3
|
+
"description": "Commands pin the exact draft contract version.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "9.9-final",
|
|
6
|
+
"kind": "command",
|
|
7
|
+
"id": "command-01J5",
|
|
8
|
+
"type": "studio.command/move-node",
|
|
9
|
+
"artifactId": "org.example.blueprints/product-card",
|
|
10
|
+
"expectedRevision": "product-card-r5",
|
|
11
|
+
"sessionGeneration": "session-generation-1",
|
|
12
|
+
"baseStateVersion": 12,
|
|
13
|
+
"payload": {
|
|
14
|
+
"nodeId": "node-price",
|
|
15
|
+
"destination": {
|
|
16
|
+
"parentNodeId": "node-grid",
|
|
17
|
+
"slot": "items",
|
|
18
|
+
"position": 0
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "content-model.schema.json",
|
|
3
|
+
"description": "A published content model must declare at least one field or relationship.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "content-model",
|
|
7
|
+
"id": "org.example.models/product",
|
|
8
|
+
"version": "1.0.0",
|
|
9
|
+
"revision": "product-model-r1",
|
|
10
|
+
"owner": {
|
|
11
|
+
"id": "org.example/catalog",
|
|
12
|
+
"version": "1.0.0"
|
|
13
|
+
},
|
|
14
|
+
"status": "published",
|
|
15
|
+
"label": {
|
|
16
|
+
"key": "org.example.catalog/product-model",
|
|
17
|
+
"defaultMessage": "Product"
|
|
18
|
+
},
|
|
19
|
+
"fields": [],
|
|
20
|
+
"relationships": []
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "design-vocabulary.schema.json",
|
|
3
|
+
"description": "Design controls carry only the closed design-control kind vocabulary.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "design-vocabulary",
|
|
7
|
+
"id": "org.example.catalog/product-vocabulary",
|
|
8
|
+
"version": "1.0.0",
|
|
9
|
+
"owner": {
|
|
10
|
+
"id": "org.example/catalog",
|
|
11
|
+
"version": "1.0.0"
|
|
12
|
+
},
|
|
13
|
+
"label": {
|
|
14
|
+
"key": "org.example.catalog/product-vocabulary",
|
|
15
|
+
"defaultMessage": "Product design vocabulary"
|
|
16
|
+
},
|
|
17
|
+
"designControls": [
|
|
18
|
+
{
|
|
19
|
+
"id": "card-face",
|
|
20
|
+
"kind": "font-role",
|
|
21
|
+
"label": {
|
|
22
|
+
"key": "org.example.catalog/card-face",
|
|
23
|
+
"defaultMessage": "Card face"
|
|
24
|
+
},
|
|
25
|
+
"choices": [
|
|
26
|
+
{
|
|
27
|
+
"id": "serif",
|
|
28
|
+
"label": {
|
|
29
|
+
"key": "org.example.catalog/card-face-serif",
|
|
30
|
+
"defaultMessage": "Serif"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"recipes": []
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "entry.schema.json",
|
|
3
|
+
"description": "Entry values reject prototype-polluting member names.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "entry",
|
|
7
|
+
"id": "products/trail-backpack",
|
|
8
|
+
"revision": "entry-r7",
|
|
9
|
+
"model": {
|
|
10
|
+
"id": "org.example.models/product",
|
|
11
|
+
"version": "1.0.0",
|
|
12
|
+
"revision": "product-model-r1"
|
|
13
|
+
},
|
|
14
|
+
"status": "draft",
|
|
15
|
+
"locale": "en-NA",
|
|
16
|
+
"workflowState": "org.example.catalog/draft",
|
|
17
|
+
"values": {
|
|
18
|
+
"__proto__": {
|
|
19
|
+
"polluted": true
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "entry.schema.json",
|
|
3
|
+
"description": "Entry locales follow the canonical language-tag profile.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "entry",
|
|
7
|
+
"id": "products/trail-backpack",
|
|
8
|
+
"revision": "entry-r7",
|
|
9
|
+
"model": {
|
|
10
|
+
"id": "org.example.models/product",
|
|
11
|
+
"version": "1.0.0",
|
|
12
|
+
"revision": "product-model-r1"
|
|
13
|
+
},
|
|
14
|
+
"status": "draft",
|
|
15
|
+
"locale": "not a locale!",
|
|
16
|
+
"workflowState": "org.example.catalog/draft",
|
|
17
|
+
"values": {
|
|
18
|
+
"name": "Trail Backpack",
|
|
19
|
+
"featured": false,
|
|
20
|
+
"category": {
|
|
21
|
+
"resourceType": "org.example.models/category",
|
|
22
|
+
"id": "categories/outdoor"
|
|
23
|
+
},
|
|
24
|
+
"price": {
|
|
25
|
+
"amount": "1499.00",
|
|
26
|
+
"currency": "NAD"
|
|
27
|
+
},
|
|
28
|
+
"image": {
|
|
29
|
+
"contractVersion": "0.1-draft",
|
|
30
|
+
"kind": "media-reference",
|
|
31
|
+
"assetId": "media/trail-backpack-front",
|
|
32
|
+
"assetRevision": "media-r4",
|
|
33
|
+
"usage": "org.example.catalog/product-hero",
|
|
34
|
+
"renditionIntent": {
|
|
35
|
+
"role": "hero",
|
|
36
|
+
"fit": "cover"
|
|
37
|
+
},
|
|
38
|
+
"accessibility": {
|
|
39
|
+
"mode": "informative",
|
|
40
|
+
"altText": "Green trail backpack shown from the front"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"description": {
|
|
44
|
+
"type": "doc",
|
|
45
|
+
"content": [
|
|
46
|
+
{
|
|
47
|
+
"type": "paragraph",
|
|
48
|
+
"content": [
|
|
49
|
+
{
|
|
50
|
+
"type": "text",
|
|
51
|
+
"text": "A durable pack for long days outdoors."
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "host-capabilities.schema.json",
|
|
3
|
+
"description": "Protocol versions are canonical semantic versions.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "host-capabilities",
|
|
7
|
+
"host": {
|
|
8
|
+
"id": "org.kumwe/app",
|
|
9
|
+
"version": "3.0.0-alpha.1",
|
|
10
|
+
"generation": "runtime-generation-42"
|
|
11
|
+
},
|
|
12
|
+
"protocolVersions": ["v1"],
|
|
13
|
+
"ports": [
|
|
14
|
+
{
|
|
15
|
+
"id": "studio.port/artifact",
|
|
16
|
+
"version": "1.0.0",
|
|
17
|
+
"operations": ["studio.operation/load", "studio.operation/save", "studio.operation/publish"]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "studio.port/preview",
|
|
21
|
+
"version": "1.0.0",
|
|
22
|
+
"operations": ["studio.operation/render-preview", "studio.operation/cancel-preview"]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "studio.port/media",
|
|
26
|
+
"version": "1.0.0",
|
|
27
|
+
"operations": ["studio.operation/search-media", "studio.operation/upload-media"]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"capabilities": [
|
|
31
|
+
{
|
|
32
|
+
"id": "studio.host/server-rendered-preview",
|
|
33
|
+
"version": "1.0.0",
|
|
34
|
+
"configuration": {
|
|
35
|
+
"exact": true
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|