@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.
Files changed (304) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +138 -0
  3. package/THIRD_PARTY_NOTICES.md +9 -0
  4. package/conformance/authoring-web/non-drag-move-equivalence.json +199 -0
  5. package/conformance/renderer-web/blob-default-deny.json +47 -0
  6. package/conformance/renderer-web/chart-fallback.json +39 -0
  7. package/conformance/renderer-web/complete-catalog.json +634 -0
  8. package/conformance/renderer-web/escaped-heading.json +28 -0
  9. package/conformance/renderer-web/interactive-behaviors.json +226 -0
  10. package/conformance/renderer-web/presentation-capabilities.json +76 -0
  11. package/conformance/renderer-web/responsive-grid.json +33 -0
  12. package/conformance/renderer-web/security-fallbacks.json +169 -0
  13. package/conformance/rich-text/advanced.first-party.json +67 -0
  14. package/conformance/rich-text/blocks.structural.json +57 -0
  15. package/conformance/rich-text/document.multi-block.json +74 -0
  16. package/conformance/rich-text/embed.hard-break.json +24 -0
  17. package/conformance/rich-text/marks.nested.json +29 -0
  18. package/conformance/rich-text/offsets.astral.json +24 -0
  19. package/conformance/rich-text/paragraph.plain.json +20 -0
  20. package/conformance/rich-text/spans.adjacent.json +27 -0
  21. package/corpus-manifest.json +1212 -0
  22. package/dist/host-testbed.d.ts +71 -0
  23. package/dist/host-testbed.d.ts.map +1 -0
  24. package/dist/host-testbed.js +782 -0
  25. package/dist/host-testbed.js.map +1 -0
  26. package/dist/http-host-adapter.d.ts +74 -0
  27. package/dist/http-host-adapter.d.ts.map +1 -0
  28. package/dist/http-host-adapter.js +264 -0
  29. package/dist/http-host-adapter.js.map +1 -0
  30. package/dist/index.d.ts +112 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +211 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/web-conformance.d.ts +105 -0
  35. package/dist/web-conformance.d.ts.map +1 -0
  36. package/dist/web-conformance.js +72 -0
  37. package/dist/web-conformance.js.map +1 -0
  38. package/fixtures/authoring-message-catalog.en.json +649 -0
  39. package/fixtures/block.grid.example.json +76 -0
  40. package/fixtures/block.price.example.json +69 -0
  41. package/fixtures/blueprint.product.example.json +92 -0
  42. package/fixtures/command.move-node.example.json +18 -0
  43. package/fixtures/content-model.product.example.json +141 -0
  44. package/fixtures/design-vocabulary.example.json +85 -0
  45. package/fixtures/entry.product.example.json +55 -0
  46. package/fixtures/field-adapter.example.json +27 -0
  47. package/fixtures/host-capabilities.example.json +42 -0
  48. package/fixtures/host-error.conflict.example.json +23 -0
  49. package/fixtures/host-operations.example.json +270 -0
  50. package/fixtures/inspector.example.json +17 -0
  51. package/fixtures/media-asset.example.json +29 -0
  52. package/fixtures/media-asset.processing.example.json +15 -0
  53. package/fixtures/media-reference.example.json +26 -0
  54. package/fixtures/media-upload-grant.example.json +14 -0
  55. package/fixtures/media-upload-session.transferring.example.json +22 -0
  56. package/fixtures/migration.example.json +22 -0
  57. package/fixtures/pattern.example.json +49 -0
  58. package/fixtures/plugin.example.json +49 -0
  59. package/fixtures/preview.render.example.json +15 -0
  60. package/fixtures/provenance.example.json +38 -0
  61. package/fixtures/rich-text.example.json +48 -0
  62. package/fixtures/studio-config.example.json +139 -0
  63. package/fixtures/theme.example.json +123 -0
  64. package/fixtures/unresolved-contribution.example.json +23 -0
  65. package/invalid/binding-projection-vector.unknown-status.json +85 -0
  66. package/invalid/blueprint.control-character-member.json +59 -0
  67. package/invalid/blueprint.forbidden-property-member.json +61 -0
  68. package/invalid/blueprint.invalid-node-id.json +57 -0
  69. package/invalid/blueprint.invalid-slot-name.json +59 -0
  70. package/invalid/blueprint.published-empty-roots.json +45 -0
  71. package/invalid/blueprint.revoking-slot-marker.json +57 -0
  72. package/invalid/blueprint.unknown-member.json +58 -0
  73. package/invalid/command-vector.unknown-error-code.json +103 -0
  74. package/invalid/command.empty-batch.json +17 -0
  75. package/invalid/command.forbidden-id-map-member.json +20 -0
  76. package/invalid/command.malformed-size-role.json +18 -0
  77. package/invalid/command.negative-position.json +20 -0
  78. package/invalid/command.nested-batch.json +24 -0
  79. package/invalid/command.pattern-in-batch.json +40 -0
  80. package/invalid/command.reset-inherited-property-in-batch.json +24 -0
  81. package/invalid/command.unknown-member.json +23 -0
  82. package/invalid/command.wrong-contract-version.json +22 -0
  83. package/invalid/content-model.published-empty.json +22 -0
  84. package/invalid/design-vocabulary.unknown-control-kind.json +38 -0
  85. package/invalid/entry.forbidden-value-member.json +23 -0
  86. package/invalid/entry.invalid-locale.json +59 -0
  87. package/invalid/host-capabilities.invalid-protocol-version.json +40 -0
  88. package/invalid/host-sequence.pending-expectation.json +52 -0
  89. package/invalid/host-sequence.preview-render-missing-request-id.json +50 -0
  90. package/invalid/inspector.empty-block-types.json +20 -0
  91. package/invalid/media-reference.missing-accessibility.json +25 -0
  92. package/invalid/media-upload-grant.insecure-url.json +14 -0
  93. package/invalid/media-upload-session.complete-without-asset.json +20 -0
  94. package/invalid/migration.empty-artifact-kinds.json +22 -0
  95. package/invalid/preview-message.activated-unknown-interaction.json +16 -0
  96. package/invalid/preview-message.duplicate-marker.json +24 -0
  97. package/invalid/preview-message.invalid-digest.json +19 -0
  98. package/invalid/preview-message.invalid-marker-grammar.json +19 -0
  99. package/invalid/preview-message.missing-marker-map.json +20 -0
  100. package/invalid/preview-message.missing-render-request-id.json +18 -0
  101. package/invalid/preview-message.unknown-type.json +13 -0
  102. package/invalid/preview-message.viewport-height-too-small.json +13 -0
  103. package/invalid/preview-message.viewport-role-and-size.json +16 -0
  104. package/invalid/preview-message.viewport-unsafe-role.json +13 -0
  105. package/invalid/rich-text.embedded-html.json +13 -0
  106. package/invalid/rich-text.unknown-mark.json +19 -0
  107. package/invalid/studio-chart.script-config.json +10 -0
  108. package/invalid/studio-drawing.svg-payload.json +10 -0
  109. package/invalid/studio-money.float.json +8 -0
  110. package/invalid/studio-presentation.css-injection.json +8 -0
  111. package/invalid/studio-table.html-cell.json +8 -0
  112. package/invalid/theme.unknown-member.json +128 -0
  113. package/package.json +54 -0
  114. package/studio-release.json +18 -0
  115. package/vectors/binding-projection/app-content-fields.resolved.json +286 -0
  116. package/vectors/binding-projection/field-removed.diagnostic.json +135 -0
  117. package/vectors/binding-projection/model-revision-mismatch.diagnostic.json +124 -0
  118. package/vectors/canonical/array-order.json +13 -0
  119. package/vectors/canonical/control-characters.json +13 -0
  120. package/vectors/canonical/depth-exceeded.json +21 -0
  121. package/vectors/canonical/empty-containers.json +14 -0
  122. package/vectors/canonical/forbidden-member.json +14 -0
  123. package/vectors/canonical/member-order.json +16 -0
  124. package/vectors/canonical/negative-zero.json +13 -0
  125. package/vectors/canonical/nested-order.json +19 -0
  126. package/vectors/canonical/non-ascii.json +13 -0
  127. package/vectors/canonical/numbers.json +16 -0
  128. package/vectors/canonical/string-escapes.json +13 -0
  129. package/vectors/canonical/surrogate-pair.json +13 -0
  130. package/vectors/command/apply-pattern.colliding-id.error.json +97 -0
  131. package/vectors/command/apply-pattern.incomplete-id-map.error.json +111 -0
  132. package/vectors/command/apply-pattern.two-roots.json +259 -0
  133. package/vectors/command/batch.atomic-failure.error.json +100 -0
  134. package/vectors/command/batch.insert-and-configure.json +197 -0
  135. package/vectors/command/batch.size-roles.json +180 -0
  136. package/vectors/command/duplicate-node.existing-id.error.json +88 -0
  137. package/vectors/command/duplicate-node.explicit-destination.json +183 -0
  138. package/vectors/command/duplicate-node.incomplete-id-map.error.json +91 -0
  139. package/vectors/command/duplicate-node.subtree.json +201 -0
  140. package/vectors/command/insert-node.duplicate-id.error.json +87 -0
  141. package/vectors/command/insert-node.inner-duplicate-id.error.json +115 -0
  142. package/vectors/command/insert-node.invalid-index.error.json +87 -0
  143. package/vectors/command/insert-node.root.json +162 -0
  144. package/vectors/command/insert-node.slot.json +167 -0
  145. package/vectors/command/mode.blueprint.set-field-value.error.json +76 -0
  146. package/vectors/command/mode.blueprint.set-property.json +131 -0
  147. package/vectors/command/mode.content.insert-node.error.json +88 -0
  148. package/vectors/command/mode.hybrid.batch-atomic.error.json +158 -0
  149. package/vectors/command/mode.hybrid.insert-allowed.json +263 -0
  150. package/vectors/command/mode.hybrid.insert-designer-slot.error.json +145 -0
  151. package/vectors/command/mode.hybrid.insert-disallowed-type.error.json +145 -0
  152. package/vectors/command/mode.hybrid.insert-roots.error.json +143 -0
  153. package/vectors/command/mode.hybrid.remove-locked.error.json +130 -0
  154. package/vectors/command/mode.hybrid.reorder-with-locked.json +239 -0
  155. package/vectors/command/mode.hybrid.set-property.error.json +132 -0
  156. package/vectors/command/mode.hybrid.slot-marker-disallowed.error.json +125 -0
  157. package/vectors/command/mode.hybrid.slot-marker-insert.json +223 -0
  158. package/vectors/command/mode.hybrid.slot-marker-other-slot.error.json +125 -0
  159. package/vectors/command/mode.model.remove-node.error.json +75 -0
  160. package/vectors/command/mode.read-only.set-property.error.json +77 -0
  161. package/vectors/command/move-node.into-self.error.json +95 -0
  162. package/vectors/command/move-node.reparent.json +196 -0
  163. package/vectors/command/move-node.within-roots.json +188 -0
  164. package/vectors/command/remove-binding.base.json +159 -0
  165. package/vectors/command/remove-binding.missing.error.json +75 -0
  166. package/vectors/command/remove-node.empties-slot.json +167 -0
  167. package/vectors/command/remove-node.missing.error.json +74 -0
  168. package/vectors/command/remove-node.nested.json +192 -0
  169. package/vectors/command/reorder-children.not-permutation.error.json +85 -0
  170. package/vectors/command/reorder-children.roots.json +182 -0
  171. package/vectors/command/reorder-children.slot.json +192 -0
  172. package/vectors/command/reset-inherited-property.missing.error.json +82 -0
  173. package/vectors/command/reset-inherited-property.single-viewport.json +151 -0
  174. package/vectors/command/reset-inherited-property.two-viewports.json +168 -0
  175. package/vectors/command/restore-node.inner-duplicate-id.error.json +115 -0
  176. package/vectors/command/restore-node.subtree-into-slot.json +195 -0
  177. package/vectors/command/set-binding.add.json +159 -0
  178. package/vectors/command/set-binding.replace.json +178 -0
  179. package/vectors/command/set-property.add.json +143 -0
  180. package/vectors/command/set-property.replace.json +146 -0
  181. package/vectors/command/set-property.viewport-add.json +148 -0
  182. package/vectors/command/set-size-role.base.json +144 -0
  183. package/vectors/command/set-size-role.duplicate.json +148 -0
  184. package/vectors/command/set-size-role.viewport-add.json +154 -0
  185. package/vectors/command/unset-property.base.json +143 -0
  186. package/vectors/command/unset-property.missing.error.json +75 -0
  187. package/vectors/command/unset-property.viewport.json +154 -0
  188. package/vectors/command/unset-size-role.missing.error.json +78 -0
  189. package/vectors/command/unset-size-role.viewport.json +154 -0
  190. package/vectors/host/artifact.dependencies.result.json +35 -0
  191. package/vectors/host/artifact.load.stored.json +36 -0
  192. package/vectors/host/artifact.load.unknown.error.json +37 -0
  193. package/vectors/host/artifact.publish.accepted.json +37 -0
  194. package/vectors/host/artifact.publish.forbidden.error.json +37 -0
  195. package/vectors/host/artifact.publish.stale.error.json +38 -0
  196. package/vectors/host/artifact.save.accepted.json +38 -0
  197. package/vectors/host/artifact.save.forbidden.error.json +38 -0
  198. package/vectors/host/artifact.save.stale.error.json +39 -0
  199. package/vectors/host/artifact.unpublish.stale.error.json +38 -0
  200. package/vectors/host/envelope.malformed-context.error.json +36 -0
  201. package/vectors/host/envelope.protocol-version.error.json +36 -0
  202. package/vectors/host/envelope.stale-generation.error.json +36 -0
  203. package/vectors/host/localization.messages.unknown-locale.error.json +36 -0
  204. package/vectors/host/media.abort-upload.unknown.error.json +35 -0
  205. package/vectors/host/media.authorize-upload.granted.json +37 -0
  206. package/vectors/host/media.authorize-upload.path-filename.error.json +39 -0
  207. package/vectors/host/media.authorize-upload.too-large.error.json +38 -0
  208. package/vectors/host/media.complete-upload.unknown.error.json +36 -0
  209. package/vectors/host/media.get.unknown.json +34 -0
  210. package/vectors/host/media.import-external.private-host.error.json +36 -0
  211. package/vectors/host/media.list.cursor.error.json +36 -0
  212. package/vectors/host/media.list.limit.error.json +35 -0
  213. package/vectors/host/media.upload-status.unknown.error.json +35 -0
  214. package/vectors/host/model.get.stored.json +37 -0
  215. package/vectors/host/model.list.authorized.json +31 -0
  216. package/vectors/host/permission.explain.withheld.json +34 -0
  217. package/vectors/host/permission.refresh.snapshot.json +31 -0
  218. package/vectors/host/recovery.load.absent.json +31 -0
  219. package/vectors/host/telemetry.emit.accepted.json +37 -0
  220. package/vectors/host/telemetry.emit.non-primitive.error.json +40 -0
  221. package/vectors/host-sequence/artifact.publish.changed-intent.sequence.json +75 -0
  222. package/vectors/host-sequence/artifact.publish.idempotent-replay.sequence.json +111 -0
  223. package/vectors/host-sequence/preview.cancel.cross-context.sequence.json +78 -0
  224. package/vectors/host-sequence/preview.render.cancelled.sequence.json +75 -0
  225. package/vectors/host-sequence/recovery.store.canonical-number.sequence.json +72 -0
  226. package/vectors/host-sequence/recovery.store.changed-context.sequence.json +61 -0
  227. package/vectors/host-sequence/recovery.store.rate-limited.sequence.json +93 -0
  228. package/vectors/host-sequence/recovery.store.resource-scope.sequence.json +61 -0
  229. package/vectors/host-sequence/recovery.store.wrong-operation-id.sequence.json +56 -0
  230. package/vectors/media/accept.plan-deterministic.json +26 -0
  231. package/vectors/media/accept.size-at-boundary.json +26 -0
  232. package/vectors/media/cancel.complete-noop.json +30 -0
  233. package/vectors/media/cancel.requested.json +30 -0
  234. package/vectors/media/cancel.transferring.json +30 -0
  235. package/vectors/media/cancel.verifying.json +30 -0
  236. package/vectors/media/reject.disallowed-kind.json +23 -0
  237. package/vectors/media/reject.filename-empty.json +22 -0
  238. package/vectors/media/reject.filename-path.json +23 -0
  239. package/vectors/media/reject.size-one-byte-over.json +23 -0
  240. package/vectors/media/retry.fresh-session.json +26 -0
  241. package/vectors/preview/canonical-preorder.json +102 -0
  242. package/vectors/preview/empty-draft.json +36 -0
  243. package/vectors/schema-profile/alternative-limit.accepted.json +95 -0
  244. package/vectors/schema-profile/alternative-limit.rejected.json +92 -0
  245. package/vectors/schema-profile/array-composition.accepted.json +35 -0
  246. package/vectors/schema-profile/byte-limit.accepted.json +30 -0
  247. package/vectors/schema-profile/byte-limit.rejected.json +26 -0
  248. package/vectors/schema-profile/closed-object.accepted.json +38 -0
  249. package/vectors/schema-profile/decimal-multiple.accepted.json +54 -0
  250. package/vectors/schema-profile/depth-limit.accepted.json +90 -0
  251. package/vectors/schema-profile/depth-limit.rejected.json +88 -0
  252. package/vectors/schema-profile/description-limit.accepted.json +29 -0
  253. package/vectors/schema-profile/description-limit.rejected.json +25 -0
  254. package/vectors/schema-profile/diagnostic-precedence.rejected.json +26 -0
  255. package/vectors/schema-profile/duplicate-dependent-required.rejected.json +21 -0
  256. package/vectors/schema-profile/duplicate-required.rejected.json +18 -0
  257. package/vectors/schema-profile/empty-combinator.rejected.json +17 -0
  258. package/vectors/schema-profile/empty-enum.rejected.json +17 -0
  259. package/vectors/schema-profile/enum-limit.accepted.json +89 -0
  260. package/vectors/schema-profile/enum-limit.rejected.json +84 -0
  261. package/vectors/schema-profile/examples-limit.accepted.json +35 -0
  262. package/vectors/schema-profile/examples-limit.rejected.json +31 -0
  263. package/vectors/schema-profile/format-keyword.rejected.json +17 -0
  264. package/vectors/schema-profile/forward-reference-path-precedence.rejected.json +20 -0
  265. package/vectors/schema-profile/invalid-pointer.rejected.json +18 -0
  266. package/vectors/schema-profile/json-depth-limit.accepted.json +278 -0
  267. package/vectors/schema-profile/json-depth-limit.rejected.json +276 -0
  268. package/vectors/schema-profile/json-item-limit.accepted.json +686 -0
  269. package/vectors/schema-profile/json-item-limit.rejected.json +682 -0
  270. package/vectors/schema-profile/json-property-limit.accepted.json +1031 -0
  271. package/vectors/schema-profile/json-property-limit.rejected.json +1028 -0
  272. package/vectors/schema-profile/local-reference.accepted.json +28 -0
  273. package/vectors/schema-profile/memoized-diagnostic.accepted.json +31 -0
  274. package/vectors/schema-profile/node-limit.accepted.json +1097 -0
  275. package/vectors/schema-profile/node-limit.rejected.json +1094 -0
  276. package/vectors/schema-profile/non-object-root.rejected.json +9 -0
  277. package/vectors/schema-profile/non-schema-reference.rejected.json +21 -0
  278. package/vectors/schema-profile/object-key-limit.accepted.json +32 -0
  279. package/vectors/schema-profile/object-key-limit.rejected.json +28 -0
  280. package/vectors/schema-profile/open-root.rejected.json +13 -0
  281. package/vectors/schema-profile/percent-encoded-pointer.rejected.json +26 -0
  282. package/vectors/schema-profile/property-name-limit.accepted.json +543 -0
  283. package/vectors/schema-profile/property-name-limit.rejected.json +536 -0
  284. package/vectors/schema-profile/recursive-diagnostic-precedence.rejected.json +30 -0
  285. package/vectors/schema-profile/recursive-reference.rejected.json +24 -0
  286. package/vectors/schema-profile/reference-fanout.accepted.json +662 -0
  287. package/vectors/schema-profile/reference-length-limit.accepted.json +45 -0
  288. package/vectors/schema-profile/reference-length-limit.rejected.json +39 -0
  289. package/vectors/schema-profile/reference-limit.accepted.json +416 -0
  290. package/vectors/schema-profile/reference-limit.rejected.json +415 -0
  291. package/vectors/schema-profile/reference-vs-keyword-precedence.rejected.json +22 -0
  292. package/vectors/schema-profile/reserved-pointer.rejected.json +26 -0
  293. package/vectors/schema-profile/root-diagnostic-precedence.rejected.json +16 -0
  294. package/vectors/schema-profile/root-vs-reference-precedence.rejected.json +19 -0
  295. package/vectors/schema-profile/schema-map-limit.accepted.json +539 -0
  296. package/vectors/schema-profile/schema-map-limit.rejected.json +536 -0
  297. package/vectors/schema-profile/semantic-recursion-precedence.rejected.json +21 -0
  298. package/vectors/schema-profile/semantic-reference-precedence.rejected.json +21 -0
  299. package/vectors/schema-profile/title-limit.accepted.json +29 -0
  300. package/vectors/schema-profile/title-limit.rejected.json +25 -0
  301. package/vectors/schema-profile/unresolved-reference.rejected.json +17 -0
  302. package/vectors/schema-profile/unsafe-dependent-required.rejected.json +24 -0
  303. package/vectors/schema-profile/unsafe-member.rejected.json +17 -0
  304. package/vectors/schema-profile/unsafe-required.rejected.json +17 -0
@@ -0,0 +1,226 @@
1
+ {
2
+ "id": "renderer-web/interactive-behaviors",
3
+ "coverage": {
4
+ "blockTypes": [
5
+ "studio.core/accordion",
6
+ "studio.core/accordion-item",
7
+ "studio.core/countdown",
8
+ "studio.core/dialog",
9
+ "studio.core/gallery",
10
+ "studio.core/navigation",
11
+ "studio.core/navigation-item",
12
+ "studio.core/notice",
13
+ "studio.core/popover",
14
+ "studio.core/tab",
15
+ "studio.core/tabs"
16
+ ],
17
+ "behaviors": [
18
+ "accordion-native",
19
+ "countdown",
20
+ "dialog",
21
+ "lightbox",
22
+ "navigation-disclosure",
23
+ "notice-dismiss",
24
+ "popover",
25
+ "slideshow",
26
+ "tabs"
27
+ ],
28
+ "presentation": [],
29
+ "security": []
30
+ },
31
+ "roots": [
32
+ {
33
+ "authoring": { "mode": "structural" },
34
+ "bindings": {},
35
+ "id": "behavior-accordion",
36
+ "properties": { "allow-multiple": false },
37
+ "slots": {
38
+ "items": [
39
+ {
40
+ "authoring": { "mode": "structural" },
41
+ "bindings": {},
42
+ "id": "behavior-accordion-item",
43
+ "properties": { "expanded": false },
44
+ "slots": { "content": [] },
45
+ "type": "studio.core/accordion-item",
46
+ "version": "1.0.0"
47
+ }
48
+ ]
49
+ },
50
+ "type": "studio.core/accordion",
51
+ "version": "1.0.0"
52
+ },
53
+ {
54
+ "authoring": { "mode": "structural" },
55
+ "bindings": {},
56
+ "id": "behavior-tabs",
57
+ "properties": { "activation": "automatic" },
58
+ "slots": {
59
+ "items": [
60
+ {
61
+ "authoring": { "mode": "structural" },
62
+ "bindings": {},
63
+ "id": "behavior-tab",
64
+ "properties": {},
65
+ "slots": { "content": [] },
66
+ "type": "studio.core/tab",
67
+ "version": "1.0.0"
68
+ }
69
+ ]
70
+ },
71
+ "type": "studio.core/tabs",
72
+ "version": "1.0.0"
73
+ },
74
+ {
75
+ "authoring": { "mode": "structural" },
76
+ "bindings": {},
77
+ "id": "behavior-dialog",
78
+ "properties": { "modal": true, "presentation": "offcanvas" },
79
+ "slots": { "content": [] },
80
+ "type": "studio.core/dialog",
81
+ "version": "1.0.0"
82
+ },
83
+ {
84
+ "authoring": { "mode": "structural" },
85
+ "bindings": {},
86
+ "id": "behavior-popover",
87
+ "properties": { "dismiss-on-blur": true, "placement": "top", "presentation": "tooltip" },
88
+ "slots": { "content": [] },
89
+ "type": "studio.core/popover",
90
+ "version": "1.0.0"
91
+ },
92
+ {
93
+ "authoring": { "mode": "content" },
94
+ "bindings": {},
95
+ "id": "behavior-notice",
96
+ "properties": { "dismissible": true, "tone": "success" },
97
+ "slots": {},
98
+ "type": "studio.core/notice",
99
+ "version": "1.0.0"
100
+ },
101
+ {
102
+ "authoring": { "mode": "content" },
103
+ "bindings": {},
104
+ "id": "behavior-gallery",
105
+ "properties": {
106
+ "autoplay": false,
107
+ "columns": 1,
108
+ "lightbox": true,
109
+ "presentation": "slideshow"
110
+ },
111
+ "slots": {},
112
+ "type": "studio.core/gallery",
113
+ "version": "1.0.0"
114
+ },
115
+ {
116
+ "authoring": { "mode": "content" },
117
+ "bindings": {},
118
+ "id": "behavior-countdown",
119
+ "properties": { "display": "compact", "expired-behavior": "message" },
120
+ "slots": {},
121
+ "type": "studio.core/countdown",
122
+ "version": "1.0.0"
123
+ },
124
+ {
125
+ "authoring": { "mode": "structural" },
126
+ "bindings": {},
127
+ "id": "behavior-navigation",
128
+ "properties": { "presentation": "dropnav" },
129
+ "slots": {
130
+ "items": [
131
+ {
132
+ "authoring": { "mode": "structural" },
133
+ "bindings": {},
134
+ "id": "behavior-navigation-parent",
135
+ "properties": { "current": false, "href": "" },
136
+ "slots": {
137
+ "children": [
138
+ {
139
+ "authoring": { "mode": "structural" },
140
+ "bindings": {},
141
+ "id": "behavior-navigation-child",
142
+ "properties": { "current": false, "href": "/child" },
143
+ "slots": { "children": [] },
144
+ "type": "studio.core/navigation-item",
145
+ "version": "1.0.0"
146
+ }
147
+ ]
148
+ },
149
+ "type": "studio.core/navigation-item",
150
+ "version": "1.0.0"
151
+ }
152
+ ]
153
+ },
154
+ "type": "studio.core/navigation",
155
+ "version": "1.0.0"
156
+ }
157
+ ],
158
+ "bindings": [
159
+ { "nodeId": "behavior-accordion-item", "port": "title", "value": "Question" },
160
+ { "nodeId": "behavior-tab", "port": "title", "value": "Tab" },
161
+ { "nodeId": "behavior-dialog", "port": "trigger-label", "value": "Open" },
162
+ { "nodeId": "behavior-dialog", "port": "title", "value": "Panel" },
163
+ { "nodeId": "behavior-popover", "port": "trigger-label", "value": "Hint" },
164
+ { "nodeId": "behavior-notice", "port": "title", "value": "Saved" },
165
+ {
166
+ "nodeId": "behavior-notice",
167
+ "port": "content",
168
+ "value": {
169
+ "type": "doc",
170
+ "content": [{ "type": "paragraph", "content": [{ "type": "text", "text": "Done" }] }]
171
+ }
172
+ },
173
+ {
174
+ "nodeId": "behavior-gallery",
175
+ "port": "items",
176
+ "value": [
177
+ {
178
+ "contractVersion": "0.1-draft",
179
+ "kind": "media-reference",
180
+ "assetId": "slide",
181
+ "usage": "studio.media/content",
182
+ "accessibility": { "mode": "informative", "altText": "Slide" }
183
+ }
184
+ ]
185
+ },
186
+ { "nodeId": "behavior-countdown", "port": "target", "value": "2099-01-01T00:00:00.000Z" },
187
+ { "nodeId": "behavior-countdown", "port": "completion-message", "value": "Complete" },
188
+ { "nodeId": "behavior-navigation", "port": "label", "value": "Main" },
189
+ { "nodeId": "behavior-navigation-parent", "port": "label", "value": "Parent" },
190
+ { "nodeId": "behavior-navigation-child", "port": "label", "value": "Child" }
191
+ ],
192
+ "media": [
193
+ {
194
+ "assetId": "slide",
195
+ "src": "https://cdn.example.test/slide.jpg",
196
+ "altText": "Slide",
197
+ "mediaType": "image/jpeg"
198
+ }
199
+ ],
200
+ "expect": {
201
+ "htmlContains": [
202
+ "<details>",
203
+ "data-studio-tabs",
204
+ "data-studio-dialog-presentation=\"offcanvas\"",
205
+ "role=\"tooltip\"",
206
+ "data-studio-notice-dismiss",
207
+ "data-studio-lightbox-open",
208
+ "data-studio-countdown",
209
+ "data-studio-navigation-toggle",
210
+ "<ul><li data-studio-navigation-item data-studio-block=\"navigation-item\" data-studio-node=\"behavior-navigation-parent\"",
211
+ "<ul data-studio-navigation-children><li data-studio-navigation-item data-studio-block=\"navigation-item\" data-studio-node=\"behavior-navigation-child\""
212
+ ],
213
+ "htmlExcludes": ["<script", "onclick=", "javascript:"],
214
+ "cssContains": ["data-studio-dialog-presentation", "data-studio-lightbox-dialog"],
215
+ "enhancements": [
216
+ "tabs",
217
+ "dialog",
218
+ "popover",
219
+ "notice",
220
+ "slideshow",
221
+ "lightbox",
222
+ "countdown",
223
+ "navigation"
224
+ ]
225
+ }
226
+ }
@@ -0,0 +1,76 @@
1
+ {
2
+ "id": "renderer-web/presentation-capabilities",
3
+ "coverage": {
4
+ "blockTypes": ["studio.core/heading"],
5
+ "behaviors": [],
6
+ "presentation": [
7
+ "alignment",
8
+ "inverse",
9
+ "markers",
10
+ "motion",
11
+ "position",
12
+ "print",
13
+ "responsive-visibility",
14
+ "scrolling",
15
+ "sizing",
16
+ "spacing"
17
+ ],
18
+ "security": []
19
+ },
20
+ "roots": [
21
+ {
22
+ "authoring": { "mode": "content" },
23
+ "bindings": {},
24
+ "id": "presentation",
25
+ "properties": {
26
+ "level": 2,
27
+ "design": {
28
+ "align": "center",
29
+ "animation": "slide",
30
+ "height": "viewport",
31
+ "inverse": true,
32
+ "margin": "comfortable",
33
+ "marker": "check",
34
+ "padding": "spacious",
35
+ "position": "sticky",
36
+ "print": "hide",
37
+ "scrolling": "snap",
38
+ "visibility": { "compact": "hidden", "medium": "visible", "expanded": "hidden" },
39
+ "width": "full"
40
+ }
41
+ },
42
+ "slots": {},
43
+ "type": "studio.core/heading",
44
+ "version": "1.0.0"
45
+ }
46
+ ],
47
+ "bindings": [{ "nodeId": "presentation", "port": "text", "value": "Presentation" }],
48
+ "media": [],
49
+ "expect": {
50
+ "htmlContains": [
51
+ "data-studio-align=\"center\"",
52
+ "data-studio-animation=\"slide\"",
53
+ "data-studio-height=\"viewport\"",
54
+ "data-studio-inverse=\"true\"",
55
+ "data-studio-margin=\"comfortable\"",
56
+ "data-studio-marker=\"check\"",
57
+ "data-studio-padding=\"spacious\"",
58
+ "data-studio-position=\"sticky\"",
59
+ "data-studio-print=\"hide\"",
60
+ "data-studio-scroll=\"snap\"",
61
+ "data-studio-visible-compact=\"hidden\"",
62
+ "data-studio-visible-medium=\"visible\"",
63
+ "data-studio-visible-expanded=\"hidden\"",
64
+ "data-studio-width=\"full\""
65
+ ],
66
+ "htmlExcludes": ["style=", "<script"],
67
+ "cssContains": [
68
+ "data-studio-position=\"sticky\"",
69
+ "data-studio-motion",
70
+ "@media print",
71
+ "min-width:48rem",
72
+ "min-width:75rem"
73
+ ],
74
+ "enhancements": ["motion"]
75
+ }
76
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "id": "renderer-web/responsive-grid",
3
+ "coverage": {
4
+ "blockTypes": ["studio.core/grid"],
5
+ "behaviors": [],
6
+ "presentation": ["sizing"],
7
+ "security": []
8
+ },
9
+ "roots": [
10
+ {
11
+ "authoring": { "mode": "structural" },
12
+ "bindings": {},
13
+ "id": "grid",
14
+ "properties": { "collapse": "stack", "columns": 1 },
15
+ "responsive": { "columns": { "medium": 2, "expanded": 4 } },
16
+ "slots": { "items": [] },
17
+ "type": "studio.core/grid",
18
+ "version": "1.0.0"
19
+ }
20
+ ],
21
+ "bindings": [],
22
+ "media": [],
23
+ "expect": {
24
+ "htmlContains": ["data-studio-layout=\"grid\""],
25
+ "htmlExcludes": ["<script"],
26
+ "cssContains": [
27
+ "--studio-columns-compact:1",
28
+ "--studio-columns-medium:2",
29
+ "--studio-columns-expanded:4"
30
+ ],
31
+ "enhancements": []
32
+ }
33
+ }
@@ -0,0 +1,169 @@
1
+ {
2
+ "id": "renderer-web/security-fallbacks",
3
+ "coverage": {
4
+ "blockTypes": [
5
+ "studio.core/call-to-action",
6
+ "studio.core/chart",
7
+ "studio.core/heading",
8
+ "studio.core/image",
9
+ "studio.core/table"
10
+ ],
11
+ "behaviors": [],
12
+ "presentation": [],
13
+ "security": ["active-media-deny", "escaped-text", "safe-url-deny", "typed-data-fallback"]
14
+ },
15
+ "context": { "allowBlobMedia": true },
16
+ "roots": [
17
+ {
18
+ "authoring": { "mode": "content" },
19
+ "bindings": {},
20
+ "id": "security-heading",
21
+ "properties": { "level": 2 },
22
+ "slots": {},
23
+ "type": "studio.core/heading",
24
+ "version": "1.0.0"
25
+ },
26
+ {
27
+ "authoring": { "mode": "content" },
28
+ "bindings": {},
29
+ "id": "security-action",
30
+ "properties": { "appearance": "primary", "href": "javascript:alert(1)" },
31
+ "slots": {},
32
+ "type": "studio.core/call-to-action",
33
+ "version": "1.0.0"
34
+ },
35
+ {
36
+ "authoring": { "mode": "content" },
37
+ "bindings": {},
38
+ "id": "security-blob-image",
39
+ "properties": { "fit": "cover", "loading": "lazy" },
40
+ "slots": {},
41
+ "type": "studio.core/image",
42
+ "version": "1.0.0"
43
+ },
44
+ {
45
+ "authoring": { "mode": "content" },
46
+ "bindings": {},
47
+ "id": "security-svg-image",
48
+ "properties": { "fit": "cover", "loading": "lazy" },
49
+ "slots": {},
50
+ "type": "studio.core/image",
51
+ "version": "1.0.0"
52
+ },
53
+ {
54
+ "authoring": { "mode": "content" },
55
+ "bindings": {},
56
+ "id": "security-data-image",
57
+ "properties": { "fit": "cover", "loading": "lazy" },
58
+ "slots": {},
59
+ "type": "studio.core/image",
60
+ "version": "1.0.0"
61
+ },
62
+ {
63
+ "authoring": { "mode": "content" },
64
+ "bindings": {},
65
+ "id": "security-chart",
66
+ "properties": {},
67
+ "slots": {},
68
+ "type": "studio.core/chart",
69
+ "version": "1.0.0"
70
+ },
71
+ {
72
+ "authoring": { "mode": "content" },
73
+ "bindings": {},
74
+ "id": "security-table",
75
+ "properties": {},
76
+ "slots": {},
77
+ "type": "studio.core/table",
78
+ "version": "1.0.0"
79
+ }
80
+ ],
81
+ "bindings": [
82
+ { "nodeId": "security-heading", "port": "text", "value": "<script>alert(1)</script>" },
83
+ { "nodeId": "security-action", "port": "label", "value": "Unsafe" },
84
+ {
85
+ "nodeId": "security-blob-image",
86
+ "port": "asset",
87
+ "value": {
88
+ "contractVersion": "0.1-draft",
89
+ "kind": "media-reference",
90
+ "assetId": "safe-blob",
91
+ "usage": "studio.media/content",
92
+ "accessibility": { "mode": "informative", "altText": "Local" }
93
+ }
94
+ },
95
+ {
96
+ "nodeId": "security-svg-image",
97
+ "port": "asset",
98
+ "value": {
99
+ "contractVersion": "0.1-draft",
100
+ "kind": "media-reference",
101
+ "assetId": "active-svg",
102
+ "usage": "studio.media/content",
103
+ "accessibility": { "mode": "informative", "altText": "SVG" }
104
+ }
105
+ },
106
+ {
107
+ "nodeId": "security-data-image",
108
+ "port": "asset",
109
+ "value": {
110
+ "contractVersion": "0.1-draft",
111
+ "kind": "media-reference",
112
+ "assetId": "data-image",
113
+ "usage": "studio.media/content",
114
+ "accessibility": { "mode": "informative", "altText": "Data" }
115
+ }
116
+ },
117
+ {
118
+ "nodeId": "security-chart",
119
+ "port": "chart",
120
+ "value": {
121
+ "type": "bar",
122
+ "labels": ["A"],
123
+ "datasets": [{ "label": "Bad", "values": [1, 2] }]
124
+ }
125
+ },
126
+ {
127
+ "nodeId": "security-table",
128
+ "port": "table",
129
+ "value": { "columns": ["A", "B"], "rows": [["one"]] }
130
+ }
131
+ ],
132
+ "media": [
133
+ {
134
+ "assetId": "safe-blob",
135
+ "src": "blob:https://studio.example.test/123e4567-e89b-12d3-a456-426614174000",
136
+ "altText": "Local",
137
+ "mediaType": "image/png"
138
+ },
139
+ {
140
+ "assetId": "active-svg",
141
+ "src": "blob:https://studio.example.test/223e4567-e89b-12d3-a456-426614174000",
142
+ "altText": "SVG",
143
+ "mediaType": "image/svg+xml"
144
+ },
145
+ {
146
+ "assetId": "data-image",
147
+ "src": "data:image/png;base64,AAAA",
148
+ "altText": "Data",
149
+ "mediaType": "image/png"
150
+ }
151
+ ],
152
+ "expect": {
153
+ "htmlContains": [
154
+ "&lt;script&gt;alert(1)&lt;/script&gt;",
155
+ "blob:https://studio.example.test/123e4567-e89b-12d3-a456-426614174000",
156
+ "Chart data unavailable",
157
+ "Table data unavailable",
158
+ "Image unavailable"
159
+ ],
160
+ "htmlExcludes": [
161
+ "<script",
162
+ "javascript:",
163
+ "data:image",
164
+ "223e4567-e89b-12d3-a456-426614174000"
165
+ ],
166
+ "cssContains": ["prefers-reduced-motion"],
167
+ "enhancements": []
168
+ }
169
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "description": "First-party callout, checklist, table and inert-code nodes project through their canonical semantic leaves without carrying Editor.js state.",
3
+ "document": {
4
+ "type": "doc",
5
+ "content": [
6
+ {
7
+ "type": "callout",
8
+ "attrs": { "tone": "warning" },
9
+ "content": [
10
+ {
11
+ "type": "paragraph",
12
+ "content": [
13
+ {
14
+ "type": "text",
15
+ "text": "Mind the gap",
16
+ "marks": [{ "type": "highlight", "attrs": { "tone": "accent" } }]
17
+ }
18
+ ]
19
+ }
20
+ ]
21
+ },
22
+ {
23
+ "type": "checklist",
24
+ "content": [
25
+ {
26
+ "type": "checklistItem",
27
+ "attrs": { "checked": true, "level": 0 },
28
+ "content": [{ "type": "text", "text": "Done" }]
29
+ },
30
+ {
31
+ "type": "checklistItem",
32
+ "attrs": { "checked": false, "level": 1 },
33
+ "content": [{ "type": "text", "text": "Nested" }]
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "type": "table",
39
+ "attrs": { "header": true },
40
+ "content": [
41
+ {
42
+ "type": "tableRow",
43
+ "content": [
44
+ {
45
+ "type": "tableCell",
46
+ "content": [{ "type": "text", "text": "Name" }]
47
+ }
48
+ ]
49
+ }
50
+ ]
51
+ },
52
+ { "type": "codeBlock", "attrs": { "language": "typescript" }, "text": "const n = 42;" }
53
+ ]
54
+ },
55
+ "projection": [
56
+ {
57
+ "type": "paragraph",
58
+ "text": "Mind the gap",
59
+ "spans": [{ "start": 0, "end": 12, "marks": ["highlight"] }],
60
+ "embeds": []
61
+ },
62
+ { "type": "checklistItem", "text": "Done", "spans": [], "embeds": [] },
63
+ { "type": "checklistItem", "text": "Nested", "spans": [], "embeds": [] },
64
+ { "type": "tableCell", "text": "Name", "spans": [], "embeds": [] },
65
+ { "type": "codeBlock", "text": "const n = 42;", "spans": [], "embeds": [] }
66
+ ]
67
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "description": "Blockquotes and ordered lists flatten to their leaf blocks, a horizontal rule projects as an empty leaf block, and adjacent text nodes with an identical mark set merge into one span.",
3
+ "document": {
4
+ "type": "doc",
5
+ "content": [
6
+ {
7
+ "type": "blockquote",
8
+ "content": [
9
+ {
10
+ "type": "paragraph",
11
+ "content": [
12
+ { "type": "text", "text": "Quoted " },
13
+ { "type": "text", "text": "wis", "marks": [{ "type": "bold" }] },
14
+ { "type": "text", "text": "dom", "marks": [{ "type": "bold" }] }
15
+ ]
16
+ }
17
+ ]
18
+ },
19
+ { "type": "horizontalRule" },
20
+ {
21
+ "type": "orderedList",
22
+ "attrs": { "start": 3 },
23
+ "content": [
24
+ {
25
+ "type": "listItem",
26
+ "content": [
27
+ {
28
+ "type": "paragraph",
29
+ "content": [{ "type": "text", "text": "Third step first." }]
30
+ }
31
+ ]
32
+ }
33
+ ]
34
+ }
35
+ ]
36
+ },
37
+ "projection": [
38
+ {
39
+ "type": "paragraph",
40
+ "text": "Quoted wisdom",
41
+ "spans": [{ "start": 7, "end": 13, "marks": ["bold"] }],
42
+ "embeds": []
43
+ },
44
+ {
45
+ "type": "horizontalRule",
46
+ "text": "",
47
+ "spans": [],
48
+ "embeds": []
49
+ },
50
+ {
51
+ "type": "paragraph",
52
+ "text": "Third step first.",
53
+ "spans": [],
54
+ "embeds": []
55
+ }
56
+ ]
57
+ }