@kumwe/studio-testkit 0.1.0-alpha.5 → 0.1.0-alpha.6

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.
@@ -0,0 +1,85 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "design-vocabulary",
4
+ "id": "org.example.catalog/product-vocabulary",
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/product-vocabulary",
12
+ "defaultMessage": "Product design vocabulary"
13
+ },
14
+ "designControls": [
15
+ {
16
+ "id": "card-density",
17
+ "kind": "enum",
18
+ "label": {
19
+ "key": "org.example.catalog/card-density",
20
+ "defaultMessage": "Card density"
21
+ },
22
+ "choices": [
23
+ {
24
+ "id": "compact",
25
+ "label": {
26
+ "key": "org.example.catalog/card-density-compact",
27
+ "defaultMessage": "Compact"
28
+ }
29
+ },
30
+ {
31
+ "id": "comfortable",
32
+ "label": {
33
+ "key": "org.example.catalog/card-density-comfortable",
34
+ "defaultMessage": "Comfortable"
35
+ }
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "id": "card-width",
41
+ "kind": "size-role",
42
+ "label": {
43
+ "key": "org.example.catalog/card-width",
44
+ "defaultMessage": "Card width"
45
+ },
46
+ "choices": [
47
+ {
48
+ "id": "full",
49
+ "label": {
50
+ "key": "org.example.catalog/card-width-full",
51
+ "defaultMessage": "Full"
52
+ }
53
+ },
54
+ {
55
+ "id": "half",
56
+ "label": {
57
+ "key": "org.example.catalog/card-width-half",
58
+ "defaultMessage": "Half"
59
+ }
60
+ },
61
+ {
62
+ "id": "quarter",
63
+ "label": {
64
+ "key": "org.example.catalog/card-width-quarter",
65
+ "defaultMessage": "Quarter"
66
+ }
67
+ }
68
+ ]
69
+ }
70
+ ],
71
+ "recipes": [
72
+ {
73
+ "id": "price-compact",
74
+ "blockType": "org.example.catalog/price",
75
+ "label": {
76
+ "key": "org.example.catalog/price-compact",
77
+ "defaultMessage": "Compact price"
78
+ },
79
+ "designValues": {
80
+ "card-density": "compact",
81
+ "card-width": "quarter"
82
+ }
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "migration",
4
+ "id": "org.example.catalog/price-to-money",
5
+ "version": "1.1.0",
6
+ "owner": {
7
+ "id": "org.example/catalog",
8
+ "version": "1.1.0"
9
+ },
10
+ "label": {
11
+ "key": "org.example.catalog/price-to-money",
12
+ "defaultMessage": "Price becomes typed money"
13
+ },
14
+ "description": {
15
+ "key": "org.example.catalog/price-to-money-description",
16
+ "defaultMessage": "Rewrites plain price properties into the typed money value shape."
17
+ },
18
+ "artifactKinds": ["blueprint", "entry"],
19
+ "sourceVersions": ">=1.0.0 <1.1.0",
20
+ "targetVersion": "1.1.0",
21
+ "lossClassification": "lossless"
22
+ }
@@ -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,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,22 @@
1
+ {
2
+ "schema": "migration.schema.json",
3
+ "description": "A migration declaration must cover at least one artifact kind.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "migration",
7
+ "id": "org.example.catalog/price-to-money",
8
+ "version": "1.1.0",
9
+ "owner": {
10
+ "id": "org.example/catalog",
11
+ "version": "1.1.0"
12
+ },
13
+ "label": {
14
+ "key": "org.example.catalog/price-to-money",
15
+ "defaultMessage": "Price becomes typed money"
16
+ },
17
+ "artifactKinds": [],
18
+ "sourceVersions": ">=1.0.0 <1.1.0",
19
+ "targetVersion": "1.1.0",
20
+ "lossClassification": "lossless"
21
+ }
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumwe/studio-testkit",
3
- "version": "0.1.0-alpha.5",
3
+ "version": "0.1.0-alpha.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/kumwe/studio.git",
@@ -34,8 +34,8 @@
34
34
  "build": "tsc -b"
35
35
  },
36
36
  "dependencies": {
37
- "@kumwe/studio-core": "0.1.0-alpha.5",
38
- "@kumwe/studio-protocol": "0.1.0-alpha.3"
37
+ "@kumwe/studio-core": "0.1.0-alpha.6",
38
+ "@kumwe/studio-protocol": "0.1.0-alpha.4"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public",
@@ -0,0 +1,76 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "command-vector",
4
+ "id": "vector.command-vector.mode.blueprint.set-field-value",
5
+ "description": "Blueprint mode owns structure only; an entry field command outside its permitted set fails closed.",
6
+ "mode": "blueprint",
7
+ "initial": {
8
+ "contractVersion": "0.1-draft",
9
+ "dependencyLock": {
10
+ "blocks": [
11
+ {
12
+ "revision": "block-r1",
13
+ "type": "studio.vector/section",
14
+ "version": "1.0.0"
15
+ },
16
+ {
17
+ "revision": "block-r1",
18
+ "type": "studio.vector/text",
19
+ "version": "1.0.0"
20
+ }
21
+ ],
22
+ "theme": {
23
+ "id": "studio.vector/theme",
24
+ "revision": "theme-r1",
25
+ "version": "1.0.0"
26
+ }
27
+ },
28
+ "id": "vector.blueprint",
29
+ "kind": "blueprint",
30
+ "label": {
31
+ "defaultMessage": "Vector Blueprint",
32
+ "key": "studio.vector/blueprint"
33
+ },
34
+ "model": {
35
+ "id": "studio.vector/model",
36
+ "revision": "model-r1",
37
+ "version": "1.0.0"
38
+ },
39
+ "owner": {
40
+ "id": "studio.vector/suite",
41
+ "version": "0.1.0-alpha.0"
42
+ },
43
+ "revision": "blueprint-r1",
44
+ "roots": [
45
+ {
46
+ "authoring": {
47
+ "mode": "designer"
48
+ },
49
+ "bindings": {},
50
+ "id": "text-a",
51
+ "properties": {},
52
+ "slots": {},
53
+ "type": "studio.vector/text",
54
+ "version": "1.0.0"
55
+ }
56
+ ],
57
+ "status": "draft",
58
+ "version": "1.0.0"
59
+ },
60
+ "command": {
61
+ "artifactId": "vector.blueprint",
62
+ "baseStateVersion": 0,
63
+ "contractVersion": "0.1-draft",
64
+ "id": "vector.command.mode.blueprint.set-field-value",
65
+ "kind": "command",
66
+ "payload": {
67
+ "fieldPath": ["title"],
68
+ "value": "Hello"
69
+ },
70
+ "sessionGeneration": "session-r1",
71
+ "type": "studio.command/set-field-value"
72
+ },
73
+ "expect": {
74
+ "errorCode": "mode-forbidden"
75
+ }
76
+ }
@@ -0,0 +1,131 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "command-vector",
4
+ "id": "vector.command-vector.mode.blueprint.set-property",
5
+ "description": "A blueprint-mode session applies the full structure vocabulary; the reduction matches the reducer exactly.",
6
+ "mode": "blueprint",
7
+ "initial": {
8
+ "contractVersion": "0.1-draft",
9
+ "dependencyLock": {
10
+ "blocks": [
11
+ {
12
+ "revision": "block-r1",
13
+ "type": "studio.vector/section",
14
+ "version": "1.0.0"
15
+ },
16
+ {
17
+ "revision": "block-r1",
18
+ "type": "studio.vector/text",
19
+ "version": "1.0.0"
20
+ }
21
+ ],
22
+ "theme": {
23
+ "id": "studio.vector/theme",
24
+ "revision": "theme-r1",
25
+ "version": "1.0.0"
26
+ }
27
+ },
28
+ "id": "vector.blueprint",
29
+ "kind": "blueprint",
30
+ "label": {
31
+ "defaultMessage": "Vector Blueprint",
32
+ "key": "studio.vector/blueprint"
33
+ },
34
+ "model": {
35
+ "id": "studio.vector/model",
36
+ "revision": "model-r1",
37
+ "version": "1.0.0"
38
+ },
39
+ "owner": {
40
+ "id": "studio.vector/suite",
41
+ "version": "0.1.0-alpha.0"
42
+ },
43
+ "revision": "blueprint-r1",
44
+ "roots": [
45
+ {
46
+ "authoring": {
47
+ "mode": "designer"
48
+ },
49
+ "bindings": {},
50
+ "id": "text-a",
51
+ "properties": {},
52
+ "slots": {},
53
+ "type": "studio.vector/text",
54
+ "version": "1.0.0"
55
+ }
56
+ ],
57
+ "status": "draft",
58
+ "version": "1.0.0"
59
+ },
60
+ "command": {
61
+ "artifactId": "vector.blueprint",
62
+ "baseStateVersion": 0,
63
+ "contractVersion": "0.1-draft",
64
+ "id": "vector.command.mode.blueprint.set-property",
65
+ "kind": "command",
66
+ "payload": {
67
+ "nodeId": "text-a",
68
+ "property": "text",
69
+ "value": "Hello"
70
+ },
71
+ "sessionGeneration": "session-r1",
72
+ "type": "studio.command/set-property"
73
+ },
74
+ "expect": {
75
+ "document": {
76
+ "contractVersion": "0.1-draft",
77
+ "dependencyLock": {
78
+ "blocks": [
79
+ {
80
+ "revision": "block-r1",
81
+ "type": "studio.vector/section",
82
+ "version": "1.0.0"
83
+ },
84
+ {
85
+ "revision": "block-r1",
86
+ "type": "studio.vector/text",
87
+ "version": "1.0.0"
88
+ }
89
+ ],
90
+ "theme": {
91
+ "id": "studio.vector/theme",
92
+ "revision": "theme-r1",
93
+ "version": "1.0.0"
94
+ }
95
+ },
96
+ "id": "vector.blueprint",
97
+ "kind": "blueprint",
98
+ "label": {
99
+ "defaultMessage": "Vector Blueprint",
100
+ "key": "studio.vector/blueprint"
101
+ },
102
+ "model": {
103
+ "id": "studio.vector/model",
104
+ "revision": "model-r1",
105
+ "version": "1.0.0"
106
+ },
107
+ "owner": {
108
+ "id": "studio.vector/suite",
109
+ "version": "0.1.0-alpha.0"
110
+ },
111
+ "revision": "blueprint-r1",
112
+ "roots": [
113
+ {
114
+ "authoring": {
115
+ "mode": "designer"
116
+ },
117
+ "bindings": {},
118
+ "id": "text-a",
119
+ "properties": {
120
+ "text": "Hello"
121
+ },
122
+ "slots": {},
123
+ "type": "studio.vector/text",
124
+ "version": "1.0.0"
125
+ }
126
+ ],
127
+ "status": "draft",
128
+ "version": "1.0.0"
129
+ }
130
+ }
131
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "command-vector",
4
+ "id": "vector.command-vector.mode.content.insert-node",
5
+ "description": "A content-mode session permits only field commands; every structure command is mode-forbidden.",
6
+ "mode": "content",
7
+ "initial": {
8
+ "contractVersion": "0.1-draft",
9
+ "dependencyLock": {
10
+ "blocks": [
11
+ {
12
+ "revision": "block-r1",
13
+ "type": "studio.vector/section",
14
+ "version": "1.0.0"
15
+ },
16
+ {
17
+ "revision": "block-r1",
18
+ "type": "studio.vector/text",
19
+ "version": "1.0.0"
20
+ }
21
+ ],
22
+ "theme": {
23
+ "id": "studio.vector/theme",
24
+ "revision": "theme-r1",
25
+ "version": "1.0.0"
26
+ }
27
+ },
28
+ "id": "vector.blueprint",
29
+ "kind": "blueprint",
30
+ "label": {
31
+ "defaultMessage": "Vector Blueprint",
32
+ "key": "studio.vector/blueprint"
33
+ },
34
+ "model": {
35
+ "id": "studio.vector/model",
36
+ "revision": "model-r1",
37
+ "version": "1.0.0"
38
+ },
39
+ "owner": {
40
+ "id": "studio.vector/suite",
41
+ "version": "0.1.0-alpha.0"
42
+ },
43
+ "revision": "blueprint-r1",
44
+ "roots": [
45
+ {
46
+ "authoring": {
47
+ "mode": "designer"
48
+ },
49
+ "bindings": {},
50
+ "id": "text-a",
51
+ "properties": {},
52
+ "slots": {},
53
+ "type": "studio.vector/text",
54
+ "version": "1.0.0"
55
+ }
56
+ ],
57
+ "status": "draft",
58
+ "version": "1.0.0"
59
+ },
60
+ "command": {
61
+ "artifactId": "vector.blueprint",
62
+ "baseStateVersion": 0,
63
+ "contractVersion": "0.1-draft",
64
+ "id": "vector.command.mode.content.insert-node",
65
+ "kind": "command",
66
+ "payload": {
67
+ "destination": {
68
+ "position": 1
69
+ },
70
+ "node": {
71
+ "authoring": {
72
+ "mode": "designer"
73
+ },
74
+ "bindings": {},
75
+ "id": "text-b",
76
+ "properties": {},
77
+ "slots": {},
78
+ "type": "studio.vector/text",
79
+ "version": "1.0.0"
80
+ }
81
+ },
82
+ "sessionGeneration": "session-r1",
83
+ "type": "studio.command/insert-node"
84
+ },
85
+ "expect": {
86
+ "errorCode": "mode-forbidden"
87
+ }
88
+ }