@kumwe/studio-testkit 0.1.0-alpha.7 → 0.1.0-rc.1
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 +91 -18
- 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/corpus-manifest.json +487 -35
- package/dist/host-testbed.d.ts +24 -5
- package/dist/host-testbed.d.ts.map +1 -1
- package/dist/host-testbed.js +276 -41
- package/dist/host-testbed.js.map +1 -1
- package/dist/http-host-adapter.d.ts.map +1 -1
- package/dist/http-host-adapter.js +8 -0
- package/dist/http-host-adapter.js.map +1 -1
- package/dist/index.d.ts +84 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +73 -2
- package/dist/index.js.map +1 -1
- 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/host-capabilities.example.json +2 -2
- package/fixtures/preview.render.example.json +1 -0
- package/fixtures/studio-config.example.json +3 -3
- package/invalid/binding-projection-vector.unknown-status.json +85 -0
- package/invalid/host-capabilities.invalid-protocol-version.json +1 -1
- package/invalid/host-sequence.pending-expectation.json +52 -0
- package/invalid/host-sequence.preview-render-missing-request-id.json +50 -0
- package/invalid/preview-message.activated-unknown-interaction.json +1 -1
- package/invalid/preview-message.duplicate-marker.json +24 -0
- package/invalid/preview-message.invalid-digest.json +1 -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-unsafe-role.json +13 -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/package.json +7 -3
- package/studio-release.json +28 -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/host/artifact.dependencies.result.json +2 -2
- package/vectors/host/artifact.load.stored.json +2 -2
- package/vectors/host/artifact.load.unknown.error.json +2 -2
- package/vectors/host/artifact.publish.accepted.json +2 -2
- package/vectors/host/artifact.publish.forbidden.error.json +1 -1
- package/vectors/host/artifact.publish.stale.error.json +2 -2
- package/vectors/host/artifact.save.accepted.json +2 -2
- package/vectors/host/artifact.save.forbidden.error.json +1 -1
- package/vectors/host/artifact.save.stale.error.json +2 -2
- package/vectors/host/artifact.unpublish.stale.error.json +2 -2
- package/vectors/host/envelope.malformed-context.error.json +2 -2
- package/vectors/host/envelope.protocol-version.error.json +1 -1
- package/vectors/host/envelope.stale-generation.error.json +2 -2
- package/vectors/host/localization.messages.unknown-locale.error.json +2 -2
- package/vectors/host/media.abort-upload.unknown.error.json +1 -1
- package/vectors/host/media.authorize-upload.granted.json +1 -1
- package/vectors/host/media.authorize-upload.path-filename.error.json +1 -1
- package/vectors/host/media.authorize-upload.too-large.error.json +1 -1
- package/vectors/host/media.complete-upload.unknown.error.json +1 -1
- package/vectors/host/media.get.unknown.json +2 -2
- package/vectors/host/media.import-external.private-host.error.json +1 -1
- package/vectors/host/media.list.cursor.error.json +2 -2
- package/vectors/host/media.list.limit.error.json +2 -2
- package/vectors/host/media.upload-status.unknown.error.json +1 -1
- 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 +2 -2
- package/vectors/host/permission.refresh.snapshot.json +2 -2
- package/vectors/host/recovery.load.absent.json +2 -2
- package/vectors/host/telemetry.emit.accepted.json +2 -2
- package/vectors/host/telemetry.emit.non-primitive.error.json +2 -2
- 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/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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contractVersion": "0.1-draft",
|
|
3
|
-
"protocolVersion": "0.1.0-draft.
|
|
3
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
4
4
|
"sessionId": "session-018f",
|
|
5
5
|
"sessionGeneration": "session-generation-1",
|
|
6
6
|
"mode": "content",
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"contractVersion": "0.1-draft",
|
|
90
90
|
"kind": "host-capabilities",
|
|
91
91
|
"host": {
|
|
92
|
-
"id": "org.kumwe/
|
|
92
|
+
"id": "org.kumwe/app",
|
|
93
93
|
"version": "3.0.0-alpha.1",
|
|
94
94
|
"generation": "runtime-generation-42"
|
|
95
95
|
},
|
|
96
|
-
"protocolVersions": ["0.1.0-draft.
|
|
96
|
+
"protocolVersions": ["0.1.0-draft.2"],
|
|
97
97
|
"ports": [
|
|
98
98
|
{
|
|
99
99
|
"id": "studio.port/artifact",
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "binding-projection-vector.schema.json",
|
|
3
|
+
"description": "A binding projection vector cannot invent a status a second host cannot reproduce.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "binding-projection-vector",
|
|
7
|
+
"id": "binding-projection/invalid-status",
|
|
8
|
+
"description": "Invalid status probe.",
|
|
9
|
+
"profile": "studio.profile/binding-projection-v1",
|
|
10
|
+
"blueprint": {
|
|
11
|
+
"contractVersion": "0.1-draft",
|
|
12
|
+
"kind": "blueprint",
|
|
13
|
+
"id": "studio.test/invalid-vector-blueprint",
|
|
14
|
+
"version": "1.0.0",
|
|
15
|
+
"revision": "blueprint-r1",
|
|
16
|
+
"owner": { "id": "studio.test/host", "version": "1.0.0" },
|
|
17
|
+
"status": "draft",
|
|
18
|
+
"label": { "key": "studio.test/blueprint", "defaultMessage": "Blueprint" },
|
|
19
|
+
"model": { "id": "studio.test/model", "version": "1.0.0", "revision": "model-r1" },
|
|
20
|
+
"dependencyLock": {
|
|
21
|
+
"theme": { "id": "studio.test/theme", "version": "1.0.0", "revision": "theme-r1" },
|
|
22
|
+
"blocks": []
|
|
23
|
+
},
|
|
24
|
+
"roots": []
|
|
25
|
+
},
|
|
26
|
+
"model": {
|
|
27
|
+
"contractVersion": "0.1-draft",
|
|
28
|
+
"kind": "content-model",
|
|
29
|
+
"id": "studio.test/model",
|
|
30
|
+
"version": "1.0.0",
|
|
31
|
+
"revision": "model-r1",
|
|
32
|
+
"owner": { "id": "studio.test/host", "version": "1.0.0" },
|
|
33
|
+
"status": "published",
|
|
34
|
+
"label": { "key": "studio.test/model", "defaultMessage": "Model" },
|
|
35
|
+
"fields": [
|
|
36
|
+
{
|
|
37
|
+
"id": "title",
|
|
38
|
+
"kind": "string",
|
|
39
|
+
"label": { "key": "studio.test/title", "defaultMessage": "Title" },
|
|
40
|
+
"required": false,
|
|
41
|
+
"localized": false,
|
|
42
|
+
"cardinality": "one"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"relationships": []
|
|
46
|
+
},
|
|
47
|
+
"blockDefinitions": [
|
|
48
|
+
{
|
|
49
|
+
"contractVersion": "0.1-draft",
|
|
50
|
+
"kind": "block-definition",
|
|
51
|
+
"type": "studio.test/text",
|
|
52
|
+
"version": "1.0.0",
|
|
53
|
+
"revision": "block-r1",
|
|
54
|
+
"owner": { "id": "studio.test/host", "version": "1.0.0" },
|
|
55
|
+
"label": { "key": "studio.test/text", "defaultMessage": "Text" },
|
|
56
|
+
"category": "studio.category/content",
|
|
57
|
+
"propertySchema": { "type": "object", "additionalProperties": false },
|
|
58
|
+
"slots": [],
|
|
59
|
+
"ports": [],
|
|
60
|
+
"editingModes": ["blueprint"],
|
|
61
|
+
"themeControls": [],
|
|
62
|
+
"rendererRequirements": [
|
|
63
|
+
{ "surface": "preview", "capability": "studio.renderer/test", "versions": "^1.0.0" }
|
|
64
|
+
],
|
|
65
|
+
"accessibility": {
|
|
66
|
+
"category": "text",
|
|
67
|
+
"accessibleName": "not-applicable",
|
|
68
|
+
"keyboard": { "key": "studio.test/keyboard", "defaultMessage": "Use the outline." },
|
|
69
|
+
"reducedMotion": "not-applicable",
|
|
70
|
+
"outputChecks": ["studio.check/text"]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"expect": {
|
|
75
|
+
"model": { "id": "studio.test/model", "version": "1.0.0", "revision": "model-r1" },
|
|
76
|
+
"nodes": [
|
|
77
|
+
{
|
|
78
|
+
"nodeId": "node-1",
|
|
79
|
+
"ports": [{ "port": "title", "status": "silently-repaired", "candidates": [] }]
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"diagnostics": []
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "host-sequence-vector.schema.json",
|
|
3
|
+
"description": "A pending invocation cannot declare a settled outcome before an explicit settle step.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "host-sequence-vector",
|
|
7
|
+
"id": "vector.host-sequence.invalid.pending-expectation",
|
|
8
|
+
"description": "Invalid pending sequence step.",
|
|
9
|
+
"profile": "studio.profile/host-baseline-v2",
|
|
10
|
+
"assertions": ["in-flight-preview-cancellation"],
|
|
11
|
+
"idempotencyPolicy": {
|
|
12
|
+
"scopeFields": ["idempotencyKey", "operationId", "resourceContextKey", "sessionGeneration"],
|
|
13
|
+
"argumentCanonicalization": "canonical-json",
|
|
14
|
+
"intentContextFields": ["expectedRevision", "locale", "protocolVersion"],
|
|
15
|
+
"absentOptionalFields": "omit",
|
|
16
|
+
"numberNormalization": "canonical-json",
|
|
17
|
+
"excludedContextFields": ["requestId", "traceContext"]
|
|
18
|
+
},
|
|
19
|
+
"given": { "artifacts": [], "permissions": [], "sessionGeneration": "session-r1" },
|
|
20
|
+
"steps": [
|
|
21
|
+
{
|
|
22
|
+
"action": "invoke",
|
|
23
|
+
"id": "render-pending",
|
|
24
|
+
"port": "preview",
|
|
25
|
+
"operation": "render",
|
|
26
|
+
"context": {
|
|
27
|
+
"operationId": "studio.operation/preview.render",
|
|
28
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
29
|
+
"requestId": "requests/preview-render",
|
|
30
|
+
"resourceContextKey": "contexts/vector",
|
|
31
|
+
"sessionGeneration": "session-r1"
|
|
32
|
+
},
|
|
33
|
+
"argument": {
|
|
34
|
+
"artifactId": "vector.blueprint",
|
|
35
|
+
"draftDigest": "b03cc45a784d7cd4d2836e24694d42f9c8e2ee3dde3ceca79b0a147436db47c6",
|
|
36
|
+
"draftRevision": "vector-blueprint-r1",
|
|
37
|
+
"requestId": "renders/pending-invalid-1",
|
|
38
|
+
"viewport": "desktop"
|
|
39
|
+
},
|
|
40
|
+
"completion": "pending",
|
|
41
|
+
"expect": { "outcome": "result", "value": "rendered" }
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"action": "settle",
|
|
45
|
+
"id": "render-settled",
|
|
46
|
+
"invocation": "render-pending",
|
|
47
|
+
"expect": { "outcome": "error", "category": "cancelled", "retryable": false }
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"expectFinal": { "pendingPreviewRenders": 0, "previewDeliveries": [] }
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "host-sequence-vector.schema.json",
|
|
3
|
+
"description": "A preview render invocation must carry the complete draft.2 render identity, including its session-unique request identifier.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "host-sequence-vector",
|
|
7
|
+
"id": "vector.host-sequence.invalid.preview-render-missing-request-id",
|
|
8
|
+
"description": "Invalid preview render identity.",
|
|
9
|
+
"profile": "studio.profile/host-baseline-v2",
|
|
10
|
+
"assertions": ["cross-context-cancellation-isolation"],
|
|
11
|
+
"idempotencyPolicy": {
|
|
12
|
+
"scopeFields": ["idempotencyKey", "operationId", "resourceContextKey", "sessionGeneration"],
|
|
13
|
+
"argumentCanonicalization": "canonical-json",
|
|
14
|
+
"intentContextFields": ["expectedRevision", "locale", "protocolVersion"],
|
|
15
|
+
"absentOptionalFields": "omit",
|
|
16
|
+
"numberNormalization": "canonical-json",
|
|
17
|
+
"excludedContextFields": ["requestId", "traceContext"]
|
|
18
|
+
},
|
|
19
|
+
"given": { "artifacts": [], "permissions": [], "sessionGeneration": "session-r1" },
|
|
20
|
+
"steps": [
|
|
21
|
+
{
|
|
22
|
+
"action": "invoke",
|
|
23
|
+
"id": "render-missing-request-id",
|
|
24
|
+
"port": "preview",
|
|
25
|
+
"operation": "render",
|
|
26
|
+
"context": {
|
|
27
|
+
"operationId": "studio.operation/preview.render",
|
|
28
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
29
|
+
"requestId": "requests/preview-render",
|
|
30
|
+
"resourceContextKey": "contexts/vector",
|
|
31
|
+
"sessionGeneration": "session-r1"
|
|
32
|
+
},
|
|
33
|
+
"argument": {
|
|
34
|
+
"artifactId": "vector.blueprint",
|
|
35
|
+
"draftDigest": "b03cc45a784d7cd4d2836e24694d42f9c8e2ee3dde3ceca79b0a147436db47c6",
|
|
36
|
+
"draftRevision": "vector-blueprint-r1",
|
|
37
|
+
"viewport": "desktop"
|
|
38
|
+
},
|
|
39
|
+
"completion": "pending"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"action": "settle",
|
|
43
|
+
"id": "render-settled",
|
|
44
|
+
"invocation": "render-missing-request-id",
|
|
45
|
+
"expect": { "outcome": "error", "category": "invalid-request", "retryable": false }
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"expectFinal": { "pendingPreviewRenders": 0, "previewDeliveries": [] }
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "preview-message.schema.json",
|
|
3
|
+
"description": "A rendered marker inventory contains each canonical marker exactly once.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "preview-message",
|
|
7
|
+
"channelId": "preview-channel-1",
|
|
8
|
+
"sessionGeneration": "session-r1",
|
|
9
|
+
"sequence": 4,
|
|
10
|
+
"type": "studio.preview/rendered",
|
|
11
|
+
"payload": {
|
|
12
|
+
"draftDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
13
|
+
"markers": [
|
|
14
|
+
"studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0",
|
|
15
|
+
"studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0"
|
|
16
|
+
],
|
|
17
|
+
"markerMap": {
|
|
18
|
+
"studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0": "node-1"
|
|
19
|
+
},
|
|
20
|
+
"requestId": "renders/1",
|
|
21
|
+
"diagnostics": []
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "preview-message.schema.json",
|
|
3
|
+
"description": "A preview marker binds one canonical draft digest to a bounded zero-based preorder ordinal.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "preview-message",
|
|
7
|
+
"channelId": "preview-channel-1",
|
|
8
|
+
"sessionGeneration": "session-r1",
|
|
9
|
+
"sequence": 4,
|
|
10
|
+
"type": "studio.preview/rendered",
|
|
11
|
+
"payload": {
|
|
12
|
+
"draftDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
13
|
+
"markers": ["markers/m1"],
|
|
14
|
+
"markerMap": { "markers/m1": "node-1" },
|
|
15
|
+
"requestId": "renders/1",
|
|
16
|
+
"diagnostics": []
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "preview-message.schema.json",
|
|
3
|
+
"description": "A rendered response must carry an exact marker-to-node map for its complete marker inventory.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "preview-message",
|
|
7
|
+
"channelId": "preview-channel-1",
|
|
8
|
+
"sessionGeneration": "session-r1",
|
|
9
|
+
"sequence": 4,
|
|
10
|
+
"type": "studio.preview/rendered",
|
|
11
|
+
"payload": {
|
|
12
|
+
"draftDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
13
|
+
"markers": [
|
|
14
|
+
"studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0"
|
|
15
|
+
],
|
|
16
|
+
"requestId": "renders/1",
|
|
17
|
+
"diagnostics": []
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "preview-message.schema.json",
|
|
3
|
+
"description": "Every render attempt has a session-unique request identifier for exact callback correlation.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "preview-message",
|
|
7
|
+
"channelId": "preview-channel-1",
|
|
8
|
+
"sessionGeneration": "session-r1",
|
|
9
|
+
"sequence": 4,
|
|
10
|
+
"type": "studio.preview/render",
|
|
11
|
+
"payload": {
|
|
12
|
+
"artifactId": "blueprints/example",
|
|
13
|
+
"draftDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
14
|
+
"draftRevision": "blueprint-r1",
|
|
15
|
+
"viewport": "expanded"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "preview-message.schema.json",
|
|
3
|
+
"description": "The draft.2 preview vocabulary is closed; unknown message types require a negotiated protocol revision.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "preview-message",
|
|
7
|
+
"channelId": "preview-channel-1",
|
|
8
|
+
"sessionGeneration": "session-r1",
|
|
9
|
+
"sequence": 4,
|
|
10
|
+
"type": "org.example.preview/custom",
|
|
11
|
+
"payload": {}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "preview-message.schema.json",
|
|
3
|
+
"description": "Explicit preview viewport width and height are each bounded to at least 240 CSS pixels.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "preview-message",
|
|
7
|
+
"channelId": "preview-channel-1",
|
|
8
|
+
"sessionGeneration": "session-r1",
|
|
9
|
+
"sequence": 3,
|
|
10
|
+
"type": "studio.preview/viewport",
|
|
11
|
+
"payload": { "height": 239 }
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "preview-message.schema.json",
|
|
3
|
+
"description": "Semantic viewport roles use the safe local-name grammar.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "preview-message",
|
|
7
|
+
"channelId": "preview-channel-1",
|
|
8
|
+
"sessionGeneration": "session-r1",
|
|
9
|
+
"sequence": 3,
|
|
10
|
+
"type": "studio.preview/viewport",
|
|
11
|
+
"payload": { "viewport": "constructor" }
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "studio-chart.schema.json",
|
|
3
|
+
"description": "Chart.js options and authored callbacks are not canonical Studio chart data.",
|
|
4
|
+
"value": {
|
|
5
|
+
"type": "bar",
|
|
6
|
+
"labels": ["Unsafe"],
|
|
7
|
+
"datasets": [{ "label": "Values", "values": [1] }],
|
|
8
|
+
"options": { "onClick": "alert(1)" }
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "studio-drawing.schema.json",
|
|
3
|
+
"description": "Drawing colors cannot carry CSS URLs or executable SVG payloads.",
|
|
4
|
+
"value": {
|
|
5
|
+
"width": 100,
|
|
6
|
+
"height": 100,
|
|
7
|
+
"alt": "Unsafe drawing",
|
|
8
|
+
"strokes": [{ "color": "url(javascript:alert(1))", "width": 2, "points": [{ "x": 1, "y": 1 }] }]
|
|
9
|
+
}
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kumwe/studio-testkit",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-rc.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/kumwe/studio.git",
|
|
@@ -13,12 +13,15 @@
|
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"files": [
|
|
15
15
|
"LICENSE",
|
|
16
|
+
"THIRD_PARTY_NOTICES.md",
|
|
17
|
+
"third-party-licenses",
|
|
16
18
|
"README.md",
|
|
17
19
|
"conformance",
|
|
18
20
|
"corpus-manifest.json",
|
|
19
21
|
"dist",
|
|
20
22
|
"fixtures",
|
|
21
23
|
"invalid",
|
|
24
|
+
"studio-release.json",
|
|
22
25
|
"vectors"
|
|
23
26
|
],
|
|
24
27
|
"exports": {
|
|
@@ -30,14 +33,15 @@
|
|
|
30
33
|
"./corpus-manifest.json": "./corpus-manifest.json",
|
|
31
34
|
"./fixtures/*": "./fixtures/*",
|
|
32
35
|
"./invalid/*": "./invalid/*",
|
|
36
|
+
"./studio-release.json": "./studio-release.json",
|
|
33
37
|
"./vectors/*": "./vectors/*"
|
|
34
38
|
},
|
|
35
39
|
"scripts": {
|
|
36
40
|
"build": "tsc -b"
|
|
37
41
|
},
|
|
38
42
|
"dependencies": {
|
|
39
|
-
"@kumwe/studio-core": "0.1.0-
|
|
40
|
-
"@kumwe/studio-protocol": "0.1.0-
|
|
43
|
+
"@kumwe/studio-core": "0.1.0-rc.1",
|
|
44
|
+
"@kumwe/studio-protocol": "0.1.0-rc.1"
|
|
41
45
|
},
|
|
42
46
|
"publishConfig": {
|
|
43
47
|
"access": "public",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "studio-release",
|
|
4
|
+
"release": "0.1.0-rc.1",
|
|
5
|
+
"packages": {
|
|
6
|
+
"@kumwe/studio-core": "0.1.0-rc.1",
|
|
7
|
+
"@kumwe/studio-media": "0.1.0-rc.1",
|
|
8
|
+
"@kumwe/studio-preview": "0.1.0-rc.1",
|
|
9
|
+
"@kumwe/studio-protocol": "0.1.0-rc.1",
|
|
10
|
+
"@kumwe/studio-renderer-web": "0.1.0-rc.1",
|
|
11
|
+
"@kumwe/studio-rich-text": "0.1.0-rc.1",
|
|
12
|
+
"@kumwe/studio": "0.1.0-rc.1",
|
|
13
|
+
"@kumwe/studio-testkit": "0.1.0-rc.1"
|
|
14
|
+
},
|
|
15
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
16
|
+
"corpusManifestDigest": "sha256-4/ChS3pCA32CoZ+BjvL2tj2RGOFJNdqXwuqO8gWDxTs=",
|
|
17
|
+
"claimedProfiles": [
|
|
18
|
+
"studio.profile/authoring-web",
|
|
19
|
+
"studio.profile/binding-projection-v1",
|
|
20
|
+
"studio.profile/engine-core",
|
|
21
|
+
"studio.profile/host-baseline",
|
|
22
|
+
"studio.profile/host-baseline-v2",
|
|
23
|
+
"studio.profile/media-policy",
|
|
24
|
+
"studio.profile/preview-identity-v1",
|
|
25
|
+
"studio.profile/renderer-web",
|
|
26
|
+
"studio.profile/schema-property"
|
|
27
|
+
]
|
|
28
|
+
}
|