@kumwe/studio-testkit 0.1.0-alpha.7 → 0.1.0-beta.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.
Files changed (189) hide show
  1. package/README.md +122 -23
  2. package/THIRD_PARTY_NOTICES.md +9 -0
  3. package/conformance/authoring-web/non-drag-move-equivalence.json +199 -0
  4. package/conformance/renderer-web/blob-default-deny.json +62 -0
  5. package/conformance/renderer-web/chart-fallback.json +54 -0
  6. package/conformance/renderer-web/complete-catalog.json +649 -0
  7. package/conformance/renderer-web/escaped-heading.json +43 -0
  8. package/conformance/renderer-web/interactive-behaviors.json +284 -0
  9. package/conformance/renderer-web/presentation-capabilities.json +104 -0
  10. package/conformance/renderer-web/responsive-grid.json +48 -0
  11. package/conformance/renderer-web/security-fallbacks.json +184 -0
  12. package/conformance/rich-text/advanced.first-party.json +67 -0
  13. package/corpus-manifest.json +571 -37
  14. package/dist/contextual-conformance.d.ts +81 -0
  15. package/dist/contextual-conformance.d.ts.map +1 -0
  16. package/dist/contextual-conformance.js +1 -0
  17. package/dist/host-testbed.d.ts +68 -5
  18. package/dist/host-testbed.d.ts.map +1 -1
  19. package/dist/host-testbed.js +1 -547
  20. package/dist/http-authoring-contract.d.ts +3 -0
  21. package/dist/http-authoring-contract.d.ts.map +1 -0
  22. package/dist/http-authoring-contract.js +1 -0
  23. package/dist/http-host-adapter.d.ts +12 -64
  24. package/dist/http-host-adapter.d.ts.map +1 -1
  25. package/dist/http-host-adapter.js +1 -256
  26. package/dist/http-host-responder.d.ts +58 -0
  27. package/dist/http-host-responder.d.ts.map +1 -0
  28. package/dist/http-host-responder.js +1 -0
  29. package/dist/index.d.ts +88 -3
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +2 -140
  32. package/dist/web-conformance.d.ts +112 -0
  33. package/dist/web-conformance.d.ts.map +1 -0
  34. package/dist/web-conformance.js +1 -0
  35. package/fixtures/authoring-message-catalog.en.json +1093 -0
  36. package/fixtures/authoring-save.plan.example.json +48 -0
  37. package/fixtures/authoring-session.example.json +212 -0
  38. package/fixtures/authoring-target.example.json +34 -0
  39. package/fixtures/host-capabilities.example.json +2 -2
  40. package/fixtures/host-operations.example.json +77 -0
  41. package/fixtures/plugin.example.json +12 -0
  42. package/fixtures/preview.render.example.json +1 -0
  43. package/fixtures/reusable-content-type.example.json +26 -0
  44. package/fixtures/studio-config.example.json +3 -3
  45. package/fixtures/studio-deployment.hosted.example.json +152 -0
  46. package/fixtures/studio-deployment.standalone.example.json +9 -0
  47. package/invalid/authoring-save.plan-missing-coordinates.json +16 -0
  48. package/invalid/authoring-save.plan-missing-successor-context.json +28 -0
  49. package/invalid/authoring-save.request-plan-missing-successor-context.json +26 -0
  50. package/invalid/authoring-session.missing-entry-state.json +9 -0
  51. package/invalid/authoring-target.missing-resource-types.json +24 -0
  52. package/invalid/binding-projection-vector.unknown-status.json +85 -0
  53. package/invalid/host-capabilities.invalid-protocol-version.json +1 -1
  54. package/invalid/host-error.retry-delay-without-retry.json +16 -0
  55. package/invalid/host-error.retry-delay-wrong-category.json +16 -0
  56. package/invalid/host-error.revision-without-conflict.json +16 -0
  57. package/invalid/host-sequence.pending-expectation.json +52 -0
  58. package/invalid/host-sequence.preview-render-missing-request-id.json +50 -0
  59. package/invalid/preview-message.activated-unknown-interaction.json +1 -1
  60. package/invalid/preview-message.duplicate-marker.json +24 -0
  61. package/invalid/preview-message.invalid-digest.json +1 -0
  62. package/invalid/preview-message.invalid-marker-grammar.json +19 -0
  63. package/invalid/preview-message.missing-marker-map.json +20 -0
  64. package/invalid/preview-message.missing-render-request-id.json +18 -0
  65. package/invalid/preview-message.unknown-type.json +13 -0
  66. package/invalid/preview-message.viewport-height-too-small.json +13 -0
  67. package/invalid/preview-message.viewport-unsafe-role.json +13 -0
  68. package/invalid/reusable-content-type.entry-values.json +32 -0
  69. package/invalid/studio-chart.script-config.json +10 -0
  70. package/invalid/studio-deployment.long-lived-token.json +24 -0
  71. package/invalid/studio-deployment.missing-required.json +5 -0
  72. package/invalid/studio-deployment.unknown-member.json +15 -0
  73. package/invalid/studio-drawing.svg-payload.json +10 -0
  74. package/invalid/studio-money.float.json +8 -0
  75. package/invalid/studio-presentation.css-injection.json +8 -0
  76. package/invalid/studio-table.html-cell.json +8 -0
  77. package/package.json +8 -4
  78. package/studio-release.json +35 -0
  79. package/vectors/authoring-http/transport-matrix.json +237 -0
  80. package/vectors/binding-projection/app-content-fields.resolved.json +286 -0
  81. package/vectors/binding-projection/field-removed.diagnostic.json +135 -0
  82. package/vectors/binding-projection/model-revision-mismatch.diagnostic.json +124 -0
  83. package/vectors/host/artifact.dependencies.result.json +2 -2
  84. package/vectors/host/artifact.load.stored.json +2 -2
  85. package/vectors/host/artifact.load.unknown.error.json +2 -2
  86. package/vectors/host/artifact.publish.accepted.json +2 -2
  87. package/vectors/host/artifact.publish.forbidden.error.json +1 -1
  88. package/vectors/host/artifact.publish.stale.error.json +2 -2
  89. package/vectors/host/artifact.save.accepted.json +2 -2
  90. package/vectors/host/artifact.save.forbidden.error.json +1 -1
  91. package/vectors/host/artifact.save.stale.error.json +2 -2
  92. package/vectors/host/artifact.unpublish.stale.error.json +2 -2
  93. package/vectors/host/envelope.malformed-context.error.json +2 -2
  94. package/vectors/host/envelope.protocol-version.error.json +1 -1
  95. package/vectors/host/envelope.stale-generation.error.json +2 -2
  96. package/vectors/host/localization.messages.unknown-locale.error.json +2 -2
  97. package/vectors/host/media.abort-upload.unknown.error.json +1 -1
  98. package/vectors/host/media.authorize-upload.granted.json +1 -1
  99. package/vectors/host/media.authorize-upload.path-filename.error.json +1 -1
  100. package/vectors/host/media.authorize-upload.too-large.error.json +1 -1
  101. package/vectors/host/media.complete-upload.unknown.error.json +1 -1
  102. package/vectors/host/media.get.unknown.json +2 -2
  103. package/vectors/host/media.import-external.private-host.error.json +1 -1
  104. package/vectors/host/media.list.cursor.error.json +2 -2
  105. package/vectors/host/media.list.limit.error.json +2 -2
  106. package/vectors/host/media.upload-status.unknown.error.json +1 -1
  107. package/vectors/host/model.get.stored.json +37 -0
  108. package/vectors/host/model.list.authorized.json +31 -0
  109. package/vectors/host/permission.explain.withheld.json +2 -2
  110. package/vectors/host/permission.refresh.snapshot.json +2 -2
  111. package/vectors/host/recovery.load.absent.json +2 -2
  112. package/vectors/host/telemetry.emit.accepted.json +2 -2
  113. package/vectors/host/telemetry.emit.non-primitive.error.json +2 -2
  114. package/vectors/host-sequence/artifact.publish.changed-intent.sequence.json +75 -0
  115. package/vectors/host-sequence/artifact.publish.idempotent-replay.sequence.json +111 -0
  116. package/vectors/host-sequence/preview.cancel.cross-context.sequence.json +78 -0
  117. package/vectors/host-sequence/preview.render.cancelled.sequence.json +75 -0
  118. package/vectors/host-sequence/recovery.store.canonical-number.sequence.json +72 -0
  119. package/vectors/host-sequence/recovery.store.changed-context.sequence.json +61 -0
  120. package/vectors/host-sequence/recovery.store.rate-limited.sequence.json +93 -0
  121. package/vectors/host-sequence/recovery.store.resource-scope.sequence.json +61 -0
  122. package/vectors/host-sequence/recovery.store.wrong-operation-id.sequence.json +56 -0
  123. package/vectors/preview/canonical-preorder.json +102 -0
  124. package/vectors/preview/empty-draft.json +36 -0
  125. package/vectors/schema-profile/alternative-limit.accepted.json +95 -0
  126. package/vectors/schema-profile/alternative-limit.rejected.json +92 -0
  127. package/vectors/schema-profile/array-composition.accepted.json +35 -0
  128. package/vectors/schema-profile/byte-limit.accepted.json +30 -0
  129. package/vectors/schema-profile/byte-limit.rejected.json +26 -0
  130. package/vectors/schema-profile/closed-object.accepted.json +38 -0
  131. package/vectors/schema-profile/decimal-multiple.accepted.json +54 -0
  132. package/vectors/schema-profile/depth-limit.accepted.json +90 -0
  133. package/vectors/schema-profile/depth-limit.rejected.json +88 -0
  134. package/vectors/schema-profile/description-limit.accepted.json +29 -0
  135. package/vectors/schema-profile/description-limit.rejected.json +25 -0
  136. package/vectors/schema-profile/diagnostic-precedence.rejected.json +26 -0
  137. package/vectors/schema-profile/duplicate-dependent-required.rejected.json +21 -0
  138. package/vectors/schema-profile/duplicate-required.rejected.json +18 -0
  139. package/vectors/schema-profile/empty-combinator.rejected.json +17 -0
  140. package/vectors/schema-profile/empty-enum.rejected.json +17 -0
  141. package/vectors/schema-profile/enum-limit.accepted.json +89 -0
  142. package/vectors/schema-profile/enum-limit.rejected.json +84 -0
  143. package/vectors/schema-profile/examples-limit.accepted.json +35 -0
  144. package/vectors/schema-profile/examples-limit.rejected.json +31 -0
  145. package/vectors/schema-profile/format-keyword.rejected.json +17 -0
  146. package/vectors/schema-profile/forward-reference-path-precedence.rejected.json +20 -0
  147. package/vectors/schema-profile/invalid-pointer.rejected.json +18 -0
  148. package/vectors/schema-profile/json-depth-limit.accepted.json +278 -0
  149. package/vectors/schema-profile/json-depth-limit.rejected.json +276 -0
  150. package/vectors/schema-profile/json-item-limit.accepted.json +686 -0
  151. package/vectors/schema-profile/json-item-limit.rejected.json +682 -0
  152. package/vectors/schema-profile/json-property-limit.accepted.json +1031 -0
  153. package/vectors/schema-profile/json-property-limit.rejected.json +1028 -0
  154. package/vectors/schema-profile/local-reference.accepted.json +28 -0
  155. package/vectors/schema-profile/memoized-diagnostic.accepted.json +31 -0
  156. package/vectors/schema-profile/node-limit.accepted.json +1097 -0
  157. package/vectors/schema-profile/node-limit.rejected.json +1094 -0
  158. package/vectors/schema-profile/non-object-root.rejected.json +9 -0
  159. package/vectors/schema-profile/non-schema-reference.rejected.json +21 -0
  160. package/vectors/schema-profile/object-key-limit.accepted.json +32 -0
  161. package/vectors/schema-profile/object-key-limit.rejected.json +28 -0
  162. package/vectors/schema-profile/open-root.rejected.json +13 -0
  163. package/vectors/schema-profile/percent-encoded-pointer.rejected.json +26 -0
  164. package/vectors/schema-profile/property-name-limit.accepted.json +543 -0
  165. package/vectors/schema-profile/property-name-limit.rejected.json +536 -0
  166. package/vectors/schema-profile/recursive-diagnostic-precedence.rejected.json +30 -0
  167. package/vectors/schema-profile/recursive-reference.rejected.json +24 -0
  168. package/vectors/schema-profile/reference-fanout.accepted.json +662 -0
  169. package/vectors/schema-profile/reference-length-limit.accepted.json +45 -0
  170. package/vectors/schema-profile/reference-length-limit.rejected.json +39 -0
  171. package/vectors/schema-profile/reference-limit.accepted.json +416 -0
  172. package/vectors/schema-profile/reference-limit.rejected.json +415 -0
  173. package/vectors/schema-profile/reference-vs-keyword-precedence.rejected.json +22 -0
  174. package/vectors/schema-profile/reserved-pointer.rejected.json +26 -0
  175. package/vectors/schema-profile/root-diagnostic-precedence.rejected.json +16 -0
  176. package/vectors/schema-profile/root-vs-reference-precedence.rejected.json +19 -0
  177. package/vectors/schema-profile/schema-map-limit.accepted.json +539 -0
  178. package/vectors/schema-profile/schema-map-limit.rejected.json +536 -0
  179. package/vectors/schema-profile/semantic-recursion-precedence.rejected.json +21 -0
  180. package/vectors/schema-profile/semantic-reference-precedence.rejected.json +21 -0
  181. package/vectors/schema-profile/title-limit.accepted.json +29 -0
  182. package/vectors/schema-profile/title-limit.rejected.json +25 -0
  183. package/vectors/schema-profile/unresolved-reference.rejected.json +17 -0
  184. package/vectors/schema-profile/unsafe-dependent-required.rejected.json +24 -0
  185. package/vectors/schema-profile/unsafe-member.rejected.json +17 -0
  186. package/vectors/schema-profile/unsafe-required.rejected.json +17 -0
  187. package/dist/host-testbed.js.map +0 -1
  188. package/dist/http-host-adapter.js.map +0 -1
  189. package/dist/index.js.map +0 -1
@@ -0,0 +1,48 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "authoring-save-plan",
4
+ "id": "save-plans/product-page-v2",
5
+ "revision": "save-plan-r1",
6
+ "successorContext": {
7
+ "key": "returns/product-trail-backpack-r8",
8
+ "label": {
9
+ "key": "studio.example/return-to-product",
10
+ "defaultMessage": "Return to accepted product"
11
+ }
12
+ },
13
+ "sessionId": "sessions/product-trail-backpack",
14
+ "outcome": "save-new-type-version",
15
+ "expected": {
16
+ "type": {
17
+ "id": "content-types/product-page",
18
+ "version": "1.0.0",
19
+ "revision": "product-page-type-r1"
20
+ },
21
+ "model": {
22
+ "id": "org.example.models/product",
23
+ "version": "1.0.0",
24
+ "revision": "product-model-r1"
25
+ },
26
+ "blueprint": {
27
+ "id": "org.example.blueprints/product-card",
28
+ "version": "1.0.0",
29
+ "revision": "product-card-r5"
30
+ },
31
+ "entry": {
32
+ "id": "products/trail-backpack",
33
+ "revision": "entry-r7"
34
+ }
35
+ },
36
+ "affectedArtifacts": ["model", "blueprint", "reusable-content-type"],
37
+ "consequences": [
38
+ {
39
+ "code": "studio.authoring/dependent-entry-migration",
40
+ "severity": "warning",
41
+ "message": {
42
+ "key": "studio.authoring/dependent-entry-migration",
43
+ "defaultMessage": "Dependent entries remain on the current type version until migrated."
44
+ }
45
+ }
46
+ ],
47
+ "confirmationRequired": true
48
+ }
@@ -0,0 +1,212 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "authoring-session",
4
+ "sessionId": "sessions/product-trail-backpack",
5
+ "sessionGeneration": "session-generation-r3",
6
+ "target": {
7
+ "contractVersion": "0.1-draft",
8
+ "kind": "authoring-target",
9
+ "id": "org.example.catalog/product-content",
10
+ "owner": {
11
+ "id": "org.example/catalog",
12
+ "version": "1.0.0"
13
+ },
14
+ "label": {
15
+ "key": "org.example.catalog/product-content",
16
+ "defaultMessage": "Product content"
17
+ },
18
+ "surface": "org.example.catalog/product-editor",
19
+ "resourceTypes": ["org.example.catalog/product"],
20
+ "eligibility": ["create", "edit"],
21
+ "modes": ["model", "blueprint", "content"],
22
+ "startKinds": ["blank", "from-type", "existing"],
23
+ "presentationStates": ["inline", "fullscreen"],
24
+ "saveOutcomes": ["save-item", "save-new-type-version", "save-as-new-type"],
25
+ "requiredCapabilities": [],
26
+ "contributionDependencies": []
27
+ },
28
+ "resourceContext": {
29
+ "key": "contexts/product-trail-backpack",
30
+ "surface": "org.example.catalog/product-editor",
31
+ "revision": "context-r2",
32
+ "scopes": [
33
+ {
34
+ "kind": "org.example/tenant",
35
+ "id": "tenants/north"
36
+ }
37
+ ],
38
+ "resource": {
39
+ "type": "org.example.catalog/product",
40
+ "id": "products/trail-backpack"
41
+ }
42
+ },
43
+ "start": {
44
+ "kind": "existing"
45
+ },
46
+ "type": {
47
+ "contractVersion": "0.1-draft",
48
+ "kind": "reusable-content-type",
49
+ "id": "content-types/product-page",
50
+ "version": "1.0.0",
51
+ "revision": "product-page-type-r1",
52
+ "label": {
53
+ "key": "org.example.catalog/product-page-type",
54
+ "defaultMessage": "Product page"
55
+ },
56
+ "status": "published",
57
+ "model": {
58
+ "id": "org.example.models/product",
59
+ "version": "1.0.0",
60
+ "revision": "product-model-r1"
61
+ },
62
+ "blueprint": {
63
+ "id": "org.example.blueprints/product-card",
64
+ "version": "1.0.0",
65
+ "revision": "product-card-r5"
66
+ },
67
+ "authoringPolicy": {
68
+ "modes": ["model", "blueprint", "content"],
69
+ "itemComposition": "overrides"
70
+ }
71
+ },
72
+ "state": {
73
+ "coordinates": {
74
+ "type": {
75
+ "id": "content-types/product-page",
76
+ "version": "1.0.0",
77
+ "revision": "product-page-type-r1"
78
+ },
79
+ "model": {
80
+ "id": "org.example.models/product",
81
+ "version": "1.0.0",
82
+ "revision": "product-model-r1"
83
+ },
84
+ "blueprint": {
85
+ "id": "org.example.blueprints/product-card",
86
+ "version": "1.0.0",
87
+ "revision": "product-card-r5"
88
+ },
89
+ "entry": {
90
+ "id": "products/trail-backpack",
91
+ "revision": "entry-r7"
92
+ }
93
+ },
94
+ "model": {
95
+ "contractVersion": "0.1-draft",
96
+ "kind": "content-model",
97
+ "id": "org.example.models/product",
98
+ "version": "1.0.0",
99
+ "revision": "product-model-r1",
100
+ "owner": {
101
+ "id": "org.example/catalog",
102
+ "version": "1.0.0"
103
+ },
104
+ "status": "published",
105
+ "label": {
106
+ "key": "org.example.catalog/product-model",
107
+ "defaultMessage": "Product"
108
+ },
109
+ "fields": [
110
+ {
111
+ "id": "name",
112
+ "kind": "string",
113
+ "label": {
114
+ "key": "org.example.catalog/product-name",
115
+ "defaultMessage": "Name"
116
+ },
117
+ "required": true,
118
+ "localized": true,
119
+ "cardinality": "one"
120
+ }
121
+ ],
122
+ "relationships": []
123
+ },
124
+ "blueprint": {
125
+ "contractVersion": "0.1-draft",
126
+ "kind": "blueprint",
127
+ "id": "org.example.blueprints/product-card",
128
+ "version": "1.0.0",
129
+ "revision": "product-card-r5",
130
+ "owner": {
131
+ "id": "org.example/catalog",
132
+ "version": "1.0.0"
133
+ },
134
+ "status": "published",
135
+ "label": {
136
+ "key": "org.example.catalog/product-card",
137
+ "defaultMessage": "Product card"
138
+ },
139
+ "model": {
140
+ "id": "org.example.models/product",
141
+ "version": "1.0.0",
142
+ "revision": "product-model-r1"
143
+ },
144
+ "dependencyLock": {
145
+ "theme": {
146
+ "id": "org.example.themes/commerce",
147
+ "version": "1.0.0",
148
+ "revision": "commerce-theme-r3"
149
+ },
150
+ "blocks": [
151
+ {
152
+ "type": "studio.core/text",
153
+ "version": "1.0.0",
154
+ "revision": "text-block-r1"
155
+ }
156
+ ]
157
+ },
158
+ "roots": [
159
+ {
160
+ "id": "node-name",
161
+ "type": "studio.core/text",
162
+ "version": "1.0.0",
163
+ "properties": {},
164
+ "bindings": {
165
+ "value": {
166
+ "source": {
167
+ "kind": "entry-field",
168
+ "fieldPath": ["name"]
169
+ },
170
+ "transforms": [],
171
+ "onNull": "empty",
172
+ "onError": "error"
173
+ }
174
+ },
175
+ "slots": {},
176
+ "authoring": {
177
+ "mode": "content"
178
+ }
179
+ }
180
+ ]
181
+ },
182
+ "entry": {
183
+ "contractVersion": "0.1-draft",
184
+ "kind": "entry",
185
+ "id": "products/trail-backpack",
186
+ "revision": "entry-r7",
187
+ "model": {
188
+ "id": "org.example.models/product",
189
+ "version": "1.0.0",
190
+ "revision": "product-model-r1"
191
+ },
192
+ "status": "draft",
193
+ "values": {
194
+ "name": "Trail Backpack"
195
+ }
196
+ },
197
+ "dirty": [],
198
+ "diagnostics": []
199
+ },
200
+ "capabilities": {
201
+ "modes": ["model", "blueprint", "content"],
202
+ "presentationStates": ["inline", "fullscreen"],
203
+ "saveOutcomes": ["save-item", "save-new-type-version", "save-as-new-type"]
204
+ },
205
+ "presentation": {
206
+ "current": "inline",
207
+ "returnContext": {
208
+ "key": "return/product-list"
209
+ }
210
+ },
211
+ "contributionGeneration": "contributions-r8"
212
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "authoring-target",
4
+ "id": "org.example.catalog/product-content",
5
+ "owner": {
6
+ "id": "org.example/catalog",
7
+ "version": "1.0.0"
8
+ },
9
+ "label": {
10
+ "key": "org.example.catalog/product-content",
11
+ "defaultMessage": "Product content"
12
+ },
13
+ "surface": "org.example.catalog/product-editor",
14
+ "resourceTypes": ["org.example.catalog/product"],
15
+ "eligibility": ["create", "edit"],
16
+ "modes": ["model", "blueprint", "content"],
17
+ "startKinds": ["blank", "from-type", "existing"],
18
+ "presentationStates": ["inline", "minimized", "maximized", "fullscreen"],
19
+ "saveOutcomes": ["save-item", "save-new-type-version", "save-as-new-type"],
20
+ "requiredCapabilities": [
21
+ {
22
+ "id": "studio.capability/contextual-authoring",
23
+ "versions": ">=0.1.0 <1.0.0"
24
+ }
25
+ ],
26
+ "contributionDependencies": [
27
+ {
28
+ "kind": "field-adapter",
29
+ "id": "org.example.catalog/money-control",
30
+ "versions": "^1.0.0",
31
+ "required": true
32
+ }
33
+ ]
34
+ }
@@ -2,11 +2,11 @@
2
2
  "contractVersion": "0.1-draft",
3
3
  "kind": "host-capabilities",
4
4
  "host": {
5
- "id": "org.kumwe/cms",
5
+ "id": "org.kumwe/app",
6
6
  "version": "3.0.0-alpha.1",
7
7
  "generation": "runtime-generation-42"
8
8
  },
9
- "protocolVersions": ["0.1.0-draft.1"],
9
+ "protocolVersions": ["0.1.0-draft.2"],
10
10
  "ports": [
11
11
  {
12
12
  "id": "studio.port/artifact",
@@ -57,6 +57,83 @@
57
57
  "required": true,
58
58
  "route": "artifact/unpublish"
59
59
  },
60
+ {
61
+ "capability": "studio.operation/authoring.list-types",
62
+ "expectsRevision": false,
63
+ "method": "listTypes",
64
+ "mutating": false,
65
+ "operation": "list-types",
66
+ "port": "authoring",
67
+ "portCapability": "studio.port/authoring",
68
+ "required": false,
69
+ "route": "authoring/list-types"
70
+ },
71
+ {
72
+ "capability": "studio.operation/authoring.plan-save",
73
+ "expectsRevision": false,
74
+ "method": "planSave",
75
+ "mutating": false,
76
+ "operation": "plan-save",
77
+ "port": "authoring",
78
+ "portCapability": "studio.port/authoring",
79
+ "required": false,
80
+ "route": "authoring/plan-save"
81
+ },
82
+ {
83
+ "capability": "studio.operation/authoring.resolve-target",
84
+ "expectsRevision": false,
85
+ "method": "resolveTarget",
86
+ "mutating": false,
87
+ "operation": "resolve-target",
88
+ "port": "authoring",
89
+ "portCapability": "studio.port/authoring",
90
+ "required": false,
91
+ "route": "authoring/resolve-target"
92
+ },
93
+ {
94
+ "capability": "studio.operation/authoring.save-as-new-type",
95
+ "expectsRevision": false,
96
+ "method": "saveAsNewType",
97
+ "mutating": true,
98
+ "operation": "save-as-new-type",
99
+ "port": "authoring",
100
+ "portCapability": "studio.port/authoring",
101
+ "required": false,
102
+ "route": "authoring/save-as-new-type"
103
+ },
104
+ {
105
+ "capability": "studio.operation/authoring.save-item",
106
+ "expectsRevision": false,
107
+ "method": "saveItem",
108
+ "mutating": true,
109
+ "operation": "save-item",
110
+ "port": "authoring",
111
+ "portCapability": "studio.port/authoring",
112
+ "required": false,
113
+ "route": "authoring/save-item"
114
+ },
115
+ {
116
+ "capability": "studio.operation/authoring.save-new-type-version",
117
+ "expectsRevision": false,
118
+ "method": "saveNewTypeVersion",
119
+ "mutating": true,
120
+ "operation": "save-new-type-version",
121
+ "port": "authoring",
122
+ "portCapability": "studio.port/authoring",
123
+ "required": false,
124
+ "route": "authoring/save-new-type-version"
125
+ },
126
+ {
127
+ "capability": "studio.operation/authoring.start",
128
+ "expectsRevision": false,
129
+ "method": "start",
130
+ "mutating": true,
131
+ "operation": "start",
132
+ "port": "authoring",
133
+ "portCapability": "studio.port/authoring",
134
+ "required": false,
135
+ "route": "authoring/start"
136
+ },
60
137
  {
61
138
  "capability": "studio.operation/localization.messages",
62
139
  "expectsRevision": false,
@@ -14,6 +14,14 @@
14
14
  "activation": "declarative",
15
15
  "entryModules": [],
16
16
  "contributions": [
17
+ {
18
+ "kind": "authoring-target",
19
+ "id": "org.example.catalog/product-content",
20
+ "version": "1.0.0",
21
+ "resource": "authoring/product-content.json",
22
+ "integrity": "sha256-8UXhVSSK8qpAIeINL/EZAeMXvriQ6Xy97BKjuvI2gTU=",
23
+ "executable": false
24
+ },
17
25
  {
18
26
  "kind": "block",
19
27
  "id": "org.example.catalog/price",
@@ -32,6 +40,10 @@
32
40
  }
33
41
  ],
34
42
  "requiredCapabilities": [
43
+ {
44
+ "id": "studio.capability/contextual-authoring",
45
+ "versions": "^1.0.0"
46
+ },
35
47
  {
36
48
  "id": "studio.host/artifact",
37
49
  "versions": "^1.0.0"
@@ -9,6 +9,7 @@
9
9
  "artifactId": "org.example.blueprints/product-card",
10
10
  "draftDigest": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
11
11
  "draftRevision": "product-card-r5-local-12",
12
+ "requestId": "renders/product-card-14",
12
13
  "viewport": "expanded"
13
14
  }
14
15
  }
@@ -0,0 +1,26 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "reusable-content-type",
4
+ "id": "content-types/product-page",
5
+ "version": "1.0.0",
6
+ "revision": "product-page-type-r1",
7
+ "label": {
8
+ "key": "org.example.catalog/product-page-type",
9
+ "defaultMessage": "Product page"
10
+ },
11
+ "status": "published",
12
+ "model": {
13
+ "id": "org.example.models/product",
14
+ "version": "1.0.0",
15
+ "revision": "product-model-r1"
16
+ },
17
+ "blueprint": {
18
+ "id": "org.example.blueprints/product-card",
19
+ "version": "1.0.0",
20
+ "revision": "product-card-r5"
21
+ },
22
+ "authoringPolicy": {
23
+ "modes": ["model", "blueprint", "content"],
24
+ "itemComposition": "overrides"
25
+ }
26
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "contractVersion": "0.1-draft",
3
- "protocolVersion": "0.1.0-draft.1",
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/cms",
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.1"],
96
+ "protocolVersions": ["0.1.0-draft.2"],
97
97
  "ports": [
98
98
  {
99
99
  "id": "studio.port/artifact",
@@ -0,0 +1,152 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "studio-deployment",
4
+ "instanceId": "studio-example-page",
5
+ "mount": "#studio-page",
6
+ "release": {
7
+ "version": "0.1.0-beta.2",
8
+ "corpusManifestDigest": "sha256-HCQ5pF8NMk9nPOXfU6kVX/E8sjgJjHdyDQ86CTOjGi0="
9
+ },
10
+ "launch": {
11
+ "targetId": "org.example.authoring/page",
12
+ "intent": "create",
13
+ "resourceContext": {
14
+ "key": "contexts/example-page",
15
+ "surface": "org.example.surface/content",
16
+ "revision": "context-r1",
17
+ "scopes": [
18
+ {
19
+ "kind": "studio.scope/site",
20
+ "id": "sites/main"
21
+ }
22
+ ],
23
+ "resource": {
24
+ "type": "org.example.content/page",
25
+ "id": "pages/example"
26
+ }
27
+ },
28
+ "start": { "kind": "blank" },
29
+ "initialPresentation": "inline"
30
+ },
31
+ "session": {
32
+ "contractVersion": "0.1-draft",
33
+ "protocolVersion": "0.1.0-draft.2",
34
+ "sessionId": "session-example-page",
35
+ "sessionGeneration": "session-generation-1",
36
+ "mode": "blueprint",
37
+ "composite": "single",
38
+ "sessionState": "editable",
39
+ "actor": {
40
+ "id": "users/example-author",
41
+ "displayName": "Example Author"
42
+ },
43
+ "locale": {
44
+ "requested": "en",
45
+ "resolved": "en",
46
+ "fallbacks": [],
47
+ "direction": "ltr",
48
+ "timeZone": "Etc/UTC"
49
+ },
50
+ "displayPreferences": {
51
+ "calendar": "gregory",
52
+ "numberingSystem": "latn",
53
+ "hourCycle": "h23",
54
+ "measurementSystem": "metric"
55
+ },
56
+ "resourceContext": {
57
+ "key": "contexts/example-page",
58
+ "surface": "org.example.surface/content",
59
+ "revision": "context-r1",
60
+ "scopes": [
61
+ {
62
+ "kind": "studio.scope/site",
63
+ "id": "sites/main"
64
+ }
65
+ ],
66
+ "resource": {
67
+ "type": "org.example.content/page",
68
+ "id": "pages/example"
69
+ }
70
+ },
71
+ "permissions": [
72
+ "studio.operation/authoring.resolve-target",
73
+ "studio.operation/authoring.start"
74
+ ],
75
+ "artifacts": {},
76
+ "blocks": [],
77
+ "plugins": [],
78
+ "hostCapabilities": {
79
+ "contractVersion": "0.1-draft",
80
+ "kind": "host-capabilities",
81
+ "host": {
82
+ "id": "org.example/php-host",
83
+ "version": "1.0.0",
84
+ "generation": "php-runtime-1"
85
+ },
86
+ "protocolVersions": ["0.1.0-draft.2"],
87
+ "ports": [
88
+ {
89
+ "id": "studio.port/authoring",
90
+ "version": "1.0.0",
91
+ "operations": [
92
+ "studio.operation/authoring.resolve-target",
93
+ "studio.operation/authoring.start"
94
+ ]
95
+ }
96
+ ],
97
+ "capabilities": []
98
+ },
99
+ "limits": {
100
+ "maxNodes": 5000,
101
+ "maxDepth": 32,
102
+ "maxSlotsPerNode": 20,
103
+ "maxChildrenPerSlot": 1000,
104
+ "maxPropertyBytes": 1048576,
105
+ "maxExtensionBytes": 1048576,
106
+ "maxCommandBatch": 100,
107
+ "maxHistoryEntries": 1000,
108
+ "maxRichTextBytes": 1048576,
109
+ "maxRichTextDepth": 32,
110
+ "maxPreviewRequestsPerMinute": 600,
111
+ "maxPreviewBytes": 10485760,
112
+ "maxMediaUploadBytes": 1073741824,
113
+ "maxMediaBatch": 50,
114
+ "maxPluginCount": 50,
115
+ "maxContributionsPerPlugin": 500,
116
+ "maxLocaleBytes": 1048576
117
+ },
118
+ "features": {
119
+ "executablePlugins": false,
120
+ "customInspectors": false,
121
+ "externalMediaImport": false,
122
+ "clipboardMediaUpload": false,
123
+ "collaboration": false,
124
+ "offlineRecovery": false
125
+ },
126
+ "preview": {
127
+ "enabled": false,
128
+ "sameOriginRequired": true,
129
+ "allowApproximateRenderer": false
130
+ }
131
+ },
132
+ "transport": {
133
+ "kind": "http",
134
+ "routing": {
135
+ "kind": "operation-map",
136
+ "endpoints": {
137
+ "authoring/resolve-target": "/api/studio/authoring/resolve-target",
138
+ "authoring/start": "/api/studio/authoring/start"
139
+ }
140
+ },
141
+ "authentication": {
142
+ "kind": "same-origin-session",
143
+ "credentials": "same-origin",
144
+ "csrf": {
145
+ "headerName": "X-CSRF-Token",
146
+ "token": "<csrf-token>"
147
+ }
148
+ },
149
+ "requestTimeoutMilliseconds": 10000,
150
+ "maximumResponseBytes": 67108864
151
+ }
152
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "kind": "studio-deployment",
3
+ "mount": "#studio-page",
4
+ "release": {
5
+ "version": "0.1.0-beta.2",
6
+ "corpusManifestDigest": "sha256-HCQ5pF8NMk9nPOXfU6kVX/E8sjgJjHdyDQ86CTOjGi0="
7
+ },
8
+ "locale": "rw"
9
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "schema": "authoring-save.schema.json",
3
+ "description": "A save plan cannot be confirmed without the exact expected Model, Blueprint, and Entry coordinates.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "authoring-save-plan",
7
+ "id": "save-plans/incomplete",
8
+ "revision": "save-plan-r1",
9
+ "successorContext": { "key": "returns/incomplete-r2" },
10
+ "sessionId": "sessions/incomplete",
11
+ "outcome": "save-item",
12
+ "affectedArtifacts": ["entry"],
13
+ "consequences": [],
14
+ "confirmationRequired": false
15
+ }
16
+ }