@kumwe/studio-protocol 0.1.0-alpha.6 → 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 +54 -5
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/generated/schema-models.d.ts +1968 -0
- package/dist/generated/schema-models.d.ts.map +1 -0
- package/dist/generated/schema-models.js +76 -0
- package/dist/generated/schema-models.js.map +1 -0
- package/dist/host-failure.d.ts +16 -0
- package/dist/host-failure.d.ts.map +1 -0
- package/dist/host-failure.js +27 -0
- package/dist/host-failure.js.map +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +14 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +42 -0
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +111 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -1
- package/package.json +6 -2
- package/schemas/authoring-message-catalog.schema.json +45 -0
- package/schemas/authoring-web-vector.schema.json +236 -0
- package/schemas/binding-projection-vector.schema.json +127 -0
- package/schemas/block-definition.schema.json +10 -1
- package/schemas/host-vector.schema.json +2 -0
- package/schemas/manifest.json +58 -4
- package/schemas/renderer-web-vector.schema.json +160 -0
- package/schemas/rich-text-projection.schema.json +12 -3
- package/schemas/rich-text.schema.json +156 -7
- package/schemas/studio-chart.schema.json +35 -0
- package/schemas/studio-drawing.schema.json +44 -0
- package/schemas/studio-money.schema.json +16 -0
- package/schemas/studio-presentation.schema.json +31 -0
- package/schemas/studio-release.schema.json +81 -0
- package/schemas/studio-table.schema.json +27 -0
- package/studio-release.json +28 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/studio-drawing.schema.json",
|
|
4
|
+
"title": "Studio canonical drawing",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["width", "height", "alt", "strokes"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"width": { "type": "integer", "minimum": 1, "maximum": 4096 },
|
|
10
|
+
"height": { "type": "integer", "minimum": 1, "maximum": 4096 },
|
|
11
|
+
"alt": { "type": "string", "minLength": 1, "maxLength": 5000 },
|
|
12
|
+
"strokes": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"maxItems": 5000,
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": ["color", "width", "points"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"color": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^(?:#[0-9A-Fa-f]{6}|[a-z][a-z0-9-]{0,62}/[a-z][a-z0-9-]{0,62})$",
|
|
23
|
+
"maxLength": 127
|
|
24
|
+
},
|
|
25
|
+
"width": { "type": "number", "minimum": 0.25, "maximum": 64 },
|
|
26
|
+
"points": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"minItems": 1,
|
|
29
|
+
"maxItems": 10000,
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"required": ["x", "y"],
|
|
34
|
+
"properties": {
|
|
35
|
+
"x": { "type": "number", "minimum": 0, "maximum": 4096 },
|
|
36
|
+
"y": { "type": "number", "minimum": 0, "maximum": 4096 }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/studio-money.schema.json",
|
|
4
|
+
"title": "Studio canonical money",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["amount", "currency"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"amount": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"pattern": "^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{1,6})?$",
|
|
12
|
+
"maxLength": 26
|
|
13
|
+
},
|
|
14
|
+
"currency": { "type": "string", "pattern": "^[A-Z]{3}$" }
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/studio-presentation.schema.json",
|
|
4
|
+
"title": "Studio presentation intent",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"maxProperties": 12,
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"align": { "enum": ["center", "end", "start", "stretch"] },
|
|
10
|
+
"animation": { "enum": ["fade", "none", "parallax", "scale", "slide"] },
|
|
11
|
+
"height": { "enum": ["auto", "content", "full", "viewport"] },
|
|
12
|
+
"inverse": { "type": "boolean" },
|
|
13
|
+
"margin": { "enum": ["comfortable", "compact", "none", "spacious"] },
|
|
14
|
+
"marker": { "enum": ["check", "decimal", "disc", "none"] },
|
|
15
|
+
"padding": { "enum": ["comfortable", "compact", "none", "spacious"] },
|
|
16
|
+
"position": { "enum": ["flow", "relative", "sticky"] },
|
|
17
|
+
"print": { "enum": ["hide", "only", "show"] },
|
|
18
|
+
"scrolling": { "enum": ["auto", "clip", "snap", "visible"] },
|
|
19
|
+
"visibility": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"maxProperties": 3,
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"properties": {
|
|
24
|
+
"compact": { "enum": ["hidden", "visible"] },
|
|
25
|
+
"expanded": { "enum": ["hidden", "visible"] },
|
|
26
|
+
"medium": { "enum": ["hidden", "visible"] }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"width": { "enum": ["auto", "content", "full"] }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/studio-release.schema.json",
|
|
4
|
+
"title": "Studio coordinated release record",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"contractVersion",
|
|
9
|
+
"kind",
|
|
10
|
+
"release",
|
|
11
|
+
"packages",
|
|
12
|
+
"protocolVersion",
|
|
13
|
+
"corpusManifestDigest",
|
|
14
|
+
"claimedProfiles"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"contractVersion": {
|
|
18
|
+
"$ref": "common.schema.json#/$defs/contractVersion"
|
|
19
|
+
},
|
|
20
|
+
"kind": {
|
|
21
|
+
"const": "studio-release"
|
|
22
|
+
},
|
|
23
|
+
"release": {
|
|
24
|
+
"$ref": "common.schema.json#/$defs/semanticVersion"
|
|
25
|
+
},
|
|
26
|
+
"packages": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": [
|
|
30
|
+
"@kumwe/studio-core",
|
|
31
|
+
"@kumwe/studio-media",
|
|
32
|
+
"@kumwe/studio-preview",
|
|
33
|
+
"@kumwe/studio-protocol",
|
|
34
|
+
"@kumwe/studio-renderer-web",
|
|
35
|
+
"@kumwe/studio-rich-text",
|
|
36
|
+
"@kumwe/studio",
|
|
37
|
+
"@kumwe/studio-testkit"
|
|
38
|
+
],
|
|
39
|
+
"properties": {
|
|
40
|
+
"@kumwe/studio-core": {
|
|
41
|
+
"$ref": "common.schema.json#/$defs/semanticVersion"
|
|
42
|
+
},
|
|
43
|
+
"@kumwe/studio-media": {
|
|
44
|
+
"$ref": "common.schema.json#/$defs/semanticVersion"
|
|
45
|
+
},
|
|
46
|
+
"@kumwe/studio-preview": {
|
|
47
|
+
"$ref": "common.schema.json#/$defs/semanticVersion"
|
|
48
|
+
},
|
|
49
|
+
"@kumwe/studio-protocol": {
|
|
50
|
+
"$ref": "common.schema.json#/$defs/semanticVersion"
|
|
51
|
+
},
|
|
52
|
+
"@kumwe/studio-renderer-web": {
|
|
53
|
+
"$ref": "common.schema.json#/$defs/semanticVersion"
|
|
54
|
+
},
|
|
55
|
+
"@kumwe/studio-rich-text": {
|
|
56
|
+
"$ref": "common.schema.json#/$defs/semanticVersion"
|
|
57
|
+
},
|
|
58
|
+
"@kumwe/studio": {
|
|
59
|
+
"$ref": "common.schema.json#/$defs/semanticVersion"
|
|
60
|
+
},
|
|
61
|
+
"@kumwe/studio-testkit": {
|
|
62
|
+
"$ref": "common.schema.json#/$defs/semanticVersion"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"protocolVersion": {
|
|
67
|
+
"$ref": "common.schema.json#/$defs/semanticVersion"
|
|
68
|
+
},
|
|
69
|
+
"corpusManifestDigest": {
|
|
70
|
+
"$ref": "common.schema.json#/$defs/integrity"
|
|
71
|
+
},
|
|
72
|
+
"claimedProfiles": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"maxItems": 32,
|
|
75
|
+
"uniqueItems": true,
|
|
76
|
+
"items": {
|
|
77
|
+
"$ref": "common.schema.json#/$defs/qualifiedName"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/studio-table.schema.json",
|
|
4
|
+
"title": "Studio table document",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["columns", "rows"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"caption": { "type": "string", "maxLength": 500 },
|
|
10
|
+
"columns": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"minItems": 1,
|
|
13
|
+
"maxItems": 50,
|
|
14
|
+
"items": { "type": "string", "maxLength": 500 }
|
|
15
|
+
},
|
|
16
|
+
"rows": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"maxItems": 1000,
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"minItems": 1,
|
|
22
|
+
"maxItems": 50,
|
|
23
|
+
"items": { "type": "string", "maxLength": 5000 }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -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
|
+
}
|