|
176 | 176 | "valueType": "string", |
177 | 177 | "name": "image", |
178 | 178 | "label": "Image", |
179 | | - "multi": false |
| 179 | + "multi": false, |
| 180 | + "description": "Optional. Block renders without image when empty." |
180 | 181 | }, |
181 | 182 | { |
182 | 183 | "component": "text", |
|
193 | 194 | } |
194 | 195 | ] |
195 | 196 | }, |
196 | | - { |
197 | | - "id": "cards-item-noimage", |
198 | | - "fields": [ |
199 | | - { |
200 | | - "component": "richtext", |
201 | | - "name": "text", |
202 | | - "label": "Text", |
203 | | - "valueType": "string" |
204 | | - } |
205 | | - ] |
206 | | - }, |
207 | 197 | { |
208 | 198 | "id": "columns", |
209 | 199 | "fields": [ |
|
223 | 213 | { |
224 | 214 | "id": "embed", |
225 | 215 | "fields": [ |
| 216 | + { |
| 217 | + "component": "select", |
| 218 | + "name": "classes", |
| 219 | + "label": "Variation", |
| 220 | + "options": [ |
| 221 | + { |
| 222 | + "name": "With placeholder", |
| 223 | + "value": "" |
| 224 | + }, |
| 225 | + { |
| 226 | + "name": "No placeholder", |
| 227 | + "value": "no-placeholder" |
| 228 | + } |
| 229 | + ] |
| 230 | + }, |
226 | 231 | { |
227 | 232 | "component": "reference", |
228 | 233 | "valueType": "string", |
229 | 234 | "name": "image", |
230 | 235 | "label": "Placeholder Image", |
231 | 236 | "multi": false, |
232 | | - "description": "Optional thumbnail shown before the video plays" |
| 237 | + "description": "Optional thumbnail shown before the video plays. Leave empty when using 'No placeholder' variation." |
233 | 238 | }, |
234 | 239 | { |
235 | 240 | "component": "text", |
|
254 | 259 | } |
255 | 260 | ] |
256 | 261 | }, |
257 | | - { |
258 | | - "id": "embed-no-placeholder", |
259 | | - "fields": [ |
260 | | - { |
261 | | - "component": "text", |
262 | | - "name": "embedUrl", |
263 | | - "label": "Embed URL", |
264 | | - "valueType": "string", |
265 | | - "required": true, |
266 | | - "description": "URL to embed (YouTube, Vimeo, Twitter, or any embed URL)" |
267 | | - }, |
268 | | - { |
269 | | - "component": "text", |
270 | | - "name": "embedUrlText", |
271 | | - "label": "Embed URL Text", |
272 | | - "valueType": "string" |
273 | | - } |
274 | | - ] |
275 | | - }, |
276 | 262 | { |
277 | 263 | "id": "form", |
278 | 264 | "fields": [ |
|
388 | 374 | { |
389 | 375 | "id": "related-articles", |
390 | 376 | "fields": [ |
| 377 | + { |
| 378 | + "component": "richtext", |
| 379 | + "name": "links", |
| 380 | + "label": "Article Links", |
| 381 | + "valueType": "string", |
| 382 | + "description": "A list of links to specific articles. When present, block uses links mode; otherwise uses keywords." |
| 383 | + }, |
391 | 384 | { |
392 | 385 | "component": "text", |
393 | 386 | "name": "keywords", |
394 | 387 | "label": "Keywords", |
395 | 388 | "valueType": "string", |
396 | | - "description": "Comma-separated keywords to match articles (e.g. fire, tfsa, rrsp). Use 'random' for random articles." |
| 389 | + "description": "Comma-separated keywords to match articles (e.g. fire, tfsa, rrsp). Use 'random' for random articles. Used when no links are authored." |
397 | 390 | }, |
398 | 391 | { |
399 | 392 | "component": "text", |
|
404 | 397 | } |
405 | 398 | ] |
406 | 399 | }, |
407 | | - { |
408 | | - "id": "related-articles-links", |
409 | | - "fields": [ |
410 | | - { |
411 | | - "component": "richtext", |
412 | | - "name": "links", |
413 | | - "label": "Article Links", |
414 | | - "valueType": "string", |
415 | | - "description": "A list of links to specific articles" |
416 | | - } |
417 | | - ] |
418 | | - }, |
419 | 400 | { |
420 | 401 | "id": "search", |
421 | 402 | "fields": [ |
|
0 commit comments