@kumwe/studio-testkit 0.1.0-alpha.8 → 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 +48 -14
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/conformance/authoring-web/non-drag-move-equivalence.json +199 -0
- package/conformance/renderer-web/blob-default-deny.json +47 -0
- package/conformance/renderer-web/chart-fallback.json +39 -0
- package/conformance/renderer-web/complete-catalog.json +634 -0
- package/conformance/renderer-web/escaped-heading.json +28 -0
- package/conformance/renderer-web/interactive-behaviors.json +226 -0
- package/conformance/renderer-web/presentation-capabilities.json +76 -0
- package/conformance/renderer-web/responsive-grid.json +33 -0
- package/conformance/renderer-web/security-fallbacks.json +169 -0
- package/conformance/rich-text/advanced.first-party.json +67 -0
- package/corpus-manifest.json +106 -0
- package/dist/host-testbed.d.ts +3 -4
- package/dist/host-testbed.d.ts.map +1 -1
- package/dist/host-testbed.js +46 -6
- package/dist/host-testbed.js.map +1 -1
- package/dist/http-host-adapter.d.ts.map +1 -1
- package/dist/http-host-adapter.js +8 -0
- package/dist/http-host-adapter.js.map +1 -1
- package/dist/index.d.ts +44 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -1
- package/dist/index.js.map +1 -1
- package/dist/web-conformance.d.ts +105 -0
- package/dist/web-conformance.d.ts.map +1 -0
- package/dist/web-conformance.js +72 -0
- package/dist/web-conformance.js.map +1 -0
- package/fixtures/authoring-message-catalog.en.json +649 -0
- package/invalid/binding-projection-vector.unknown-status.json +85 -0
- package/invalid/studio-chart.script-config.json +10 -0
- package/invalid/studio-drawing.svg-payload.json +10 -0
- package/invalid/studio-money.float.json +8 -0
- package/invalid/studio-presentation.css-injection.json +8 -0
- package/invalid/studio-table.html-cell.json +8 -0
- package/package.json +7 -3
- package/studio-release.json +28 -0
- package/vectors/binding-projection/app-content-fields.resolved.json +286 -0
- package/vectors/binding-projection/field-removed.diagnostic.json +135 -0
- package/vectors/binding-projection/model-revision-mismatch.diagnostic.json +124 -0
- package/vectors/host/model.get.stored.json +37 -0
- package/vectors/host/model.list.authorized.json +31 -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
|
+
"<script>alert(1)</script>",
|
|
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
|
+
}
|