@deriv-web-design/ui 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/block-registry.json +810 -14
- package/components.manifest.json +477 -7
- package/dist/index.css +1150 -86
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +297 -13
- package/dist/index.d.ts +297 -13
- package/dist/index.js +912 -73
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +910 -79
- package/dist/index.mjs.map +1 -1
- package/dist/share-facebook-3B3NOC5Q.png +0 -0
- package/dist/share-link-QGD6KIDA.png +0 -0
- package/dist/share-linkedin-UCIII3JU.png +0 -0
- package/dist/share-telegram-QRXGSHQT.png +0 -0
- package/dist/share-x-UTEBBL73.png +0 -0
- package/dist/trustpilot-rating-badge-D7JOW3KJ.png +0 -0
- package/package.json +1 -1
package/block-registry.json
CHANGED
|
@@ -1227,6 +1227,603 @@
|
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
1229
|
},
|
|
1230
|
+
"feature-blog": {
|
|
1231
|
+
"id": "feature-blog",
|
|
1232
|
+
"name": "Feature Blog",
|
|
1233
|
+
"component": "FeatureBlog",
|
|
1234
|
+
"category": "content",
|
|
1235
|
+
"description": "Light section with a centered H2 heading above a responsive grid of image-led blog / press-release cards (date + category tags, title, summary), with an optional centered \"See all\" link below the grid.",
|
|
1236
|
+
"purpose": "A light-background content section that showcases blog posts or press releases as a responsive grid of image-led cards — thumbnail on top, date/category tags, title, and summary — with an optional centered \"See all\" link below the grid. Modeled after the \"Deriv press releases\" section on [deriv.com/newsroom](https://deriv.com/newsroom).",
|
|
1237
|
+
"keywords": [
|
|
1238
|
+
"blog",
|
|
1239
|
+
"press releases",
|
|
1240
|
+
"newsroom",
|
|
1241
|
+
"articles",
|
|
1242
|
+
"news",
|
|
1243
|
+
"content",
|
|
1244
|
+
"cards",
|
|
1245
|
+
"grid",
|
|
1246
|
+
"media",
|
|
1247
|
+
"press",
|
|
1248
|
+
"trading",
|
|
1249
|
+
"deriv",
|
|
1250
|
+
"newsroom"
|
|
1251
|
+
],
|
|
1252
|
+
"sectionType": "content",
|
|
1253
|
+
"global": false,
|
|
1254
|
+
"requiredFields": [
|
|
1255
|
+
"posts"
|
|
1256
|
+
],
|
|
1257
|
+
"optionalFields": [
|
|
1258
|
+
"title",
|
|
1259
|
+
"showLink",
|
|
1260
|
+
"linkText",
|
|
1261
|
+
"linkHref"
|
|
1262
|
+
],
|
|
1263
|
+
"variants": [
|
|
1264
|
+
"default"
|
|
1265
|
+
],
|
|
1266
|
+
"recommendedPosition": 4,
|
|
1267
|
+
"placement": [
|
|
1268
|
+
"middle",
|
|
1269
|
+
"bottom"
|
|
1270
|
+
],
|
|
1271
|
+
"layout": {
|
|
1272
|
+
"alignment": "center",
|
|
1273
|
+
"gridColumns": "3",
|
|
1274
|
+
"contentWidth": "large",
|
|
1275
|
+
"background": false,
|
|
1276
|
+
"overlay": false
|
|
1277
|
+
},
|
|
1278
|
+
"supports": {
|
|
1279
|
+
"backgroundImage": false,
|
|
1280
|
+
"backgroundVideo": false,
|
|
1281
|
+
"foregroundImage": true,
|
|
1282
|
+
"primaryButton": false,
|
|
1283
|
+
"secondaryButton": false,
|
|
1284
|
+
"sectionLink": true,
|
|
1285
|
+
"cardLink": true,
|
|
1286
|
+
"tags": true
|
|
1287
|
+
},
|
|
1288
|
+
"imageRoles": [
|
|
1289
|
+
"post-thumbnail"
|
|
1290
|
+
],
|
|
1291
|
+
"defaultValues": {
|
|
1292
|
+
"title": "Deriv press releases",
|
|
1293
|
+
"showLink": true,
|
|
1294
|
+
"linkText": "See all press releases"
|
|
1295
|
+
},
|
|
1296
|
+
"fields": {
|
|
1297
|
+
"linkHref": {
|
|
1298
|
+
"type": "url",
|
|
1299
|
+
"required": false,
|
|
1300
|
+
"description": "Href for the \"See all\" link."
|
|
1301
|
+
},
|
|
1302
|
+
"linkText": {
|
|
1303
|
+
"type": "string",
|
|
1304
|
+
"required": false,
|
|
1305
|
+
"default": "See all press releases",
|
|
1306
|
+
"defaultSource": "effective",
|
|
1307
|
+
"maxLength": 40
|
|
1308
|
+
},
|
|
1309
|
+
"posts": {
|
|
1310
|
+
"type": "array",
|
|
1311
|
+
"required": true,
|
|
1312
|
+
"itemFields": {
|
|
1313
|
+
"category": {
|
|
1314
|
+
"type": "string",
|
|
1315
|
+
"required": false,
|
|
1316
|
+
"maxLength": 30,
|
|
1317
|
+
"description": "Category label, e.g. \"Company\"."
|
|
1318
|
+
},
|
|
1319
|
+
"date": {
|
|
1320
|
+
"type": "string",
|
|
1321
|
+
"required": false,
|
|
1322
|
+
"maxLength": 30,
|
|
1323
|
+
"description": "Publish date label, e.g. \"July 24, 2026\"."
|
|
1324
|
+
},
|
|
1325
|
+
"href": {
|
|
1326
|
+
"type": "url",
|
|
1327
|
+
"required": false,
|
|
1328
|
+
"description": "Wraps the card in an anchor when set."
|
|
1329
|
+
},
|
|
1330
|
+
"summary": {
|
|
1331
|
+
"type": "string",
|
|
1332
|
+
"required": true,
|
|
1333
|
+
"maxLength": 220
|
|
1334
|
+
},
|
|
1335
|
+
"thumbnail": {
|
|
1336
|
+
"type": "image",
|
|
1337
|
+
"required": true
|
|
1338
|
+
},
|
|
1339
|
+
"thumbnailAlt": {
|
|
1340
|
+
"type": "string",
|
|
1341
|
+
"required": false,
|
|
1342
|
+
"default": "",
|
|
1343
|
+
"defaultSource": "effective",
|
|
1344
|
+
"maxLength": 125,
|
|
1345
|
+
"description": "Alt text for the post thumbnail. Defaults to an empty string, which marks the image as decorative — set it whenever the image carries meaning."
|
|
1346
|
+
},
|
|
1347
|
+
"title": {
|
|
1348
|
+
"type": "string",
|
|
1349
|
+
"required": true,
|
|
1350
|
+
"maxLength": 100
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1354
|
+
"showLink": {
|
|
1355
|
+
"type": "boolean",
|
|
1356
|
+
"required": false,
|
|
1357
|
+
"default": true,
|
|
1358
|
+
"description": "Show the \"See all\" link below the grid. On by default."
|
|
1359
|
+
},
|
|
1360
|
+
"title": {
|
|
1361
|
+
"type": "string",
|
|
1362
|
+
"required": false,
|
|
1363
|
+
"maxLength": 80
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
},
|
|
1367
|
+
"feature-blog-categories": {
|
|
1368
|
+
"id": "feature-blog-categories",
|
|
1369
|
+
"name": "Feature Blog Categories",
|
|
1370
|
+
"component": "FeatureBlogCategories",
|
|
1371
|
+
"category": "content",
|
|
1372
|
+
"description": "Light section with a centered H2 heading, a search field, and CMS-managed category tabs above a responsive grid of image-led blog / press-release cards. Filtering by tab and search query happens client-side. Each card links to an internal page (same tab) or an external URL (opens in a new tab).",
|
|
1373
|
+
"purpose": "A light-background content section that showcases blog posts or press releases as a searchable, filterable grid of image-led cards. A search field and a row of CMS-managed category tabs sit above a responsive card grid; both filter the same post list client-side. Each card either navigates to an internal page (same tab) or opens an external URL in a new tab. Modeled after [deriv.com/newsroom/press-releases](https://deriv.com/newsroom/press-releases) and [deriv.com/newsroom/deriv-in-the-news](https://deriv.com/newsroom/deriv-in-the-news).",
|
|
1374
|
+
"keywords": [
|
|
1375
|
+
"blog",
|
|
1376
|
+
"press releases",
|
|
1377
|
+
"newsroom",
|
|
1378
|
+
"articles",
|
|
1379
|
+
"news",
|
|
1380
|
+
"content",
|
|
1381
|
+
"cards",
|
|
1382
|
+
"grid",
|
|
1383
|
+
"search",
|
|
1384
|
+
"filter",
|
|
1385
|
+
"tabs",
|
|
1386
|
+
"categories",
|
|
1387
|
+
"cms",
|
|
1388
|
+
"media",
|
|
1389
|
+
"press",
|
|
1390
|
+
"trading",
|
|
1391
|
+
"deriv"
|
|
1392
|
+
],
|
|
1393
|
+
"sectionType": "content",
|
|
1394
|
+
"global": false,
|
|
1395
|
+
"requiredFields": [
|
|
1396
|
+
"categories",
|
|
1397
|
+
"posts"
|
|
1398
|
+
],
|
|
1399
|
+
"optionalFields": [
|
|
1400
|
+
"title",
|
|
1401
|
+
"allCategoryId",
|
|
1402
|
+
"allCategoryLabel",
|
|
1403
|
+
"defaultActiveCategoryId",
|
|
1404
|
+
"searchPlaceholder",
|
|
1405
|
+
"emptyStateText"
|
|
1406
|
+
],
|
|
1407
|
+
"variants": [
|
|
1408
|
+
"default"
|
|
1409
|
+
],
|
|
1410
|
+
"recommendedPosition": 4,
|
|
1411
|
+
"placement": [
|
|
1412
|
+
"middle",
|
|
1413
|
+
"bottom"
|
|
1414
|
+
],
|
|
1415
|
+
"layout": {
|
|
1416
|
+
"alignment": "center",
|
|
1417
|
+
"gridColumns": "3",
|
|
1418
|
+
"contentWidth": "large",
|
|
1419
|
+
"background": false,
|
|
1420
|
+
"overlay": false
|
|
1421
|
+
},
|
|
1422
|
+
"supports": {
|
|
1423
|
+
"backgroundImage": false,
|
|
1424
|
+
"backgroundVideo": false,
|
|
1425
|
+
"foregroundImage": true,
|
|
1426
|
+
"primaryButton": false,
|
|
1427
|
+
"secondaryButton": false,
|
|
1428
|
+
"search": true,
|
|
1429
|
+
"tabs": true,
|
|
1430
|
+
"cardLink": true,
|
|
1431
|
+
"externalLinkNewTab": true,
|
|
1432
|
+
"tags": true
|
|
1433
|
+
},
|
|
1434
|
+
"imageRoles": [
|
|
1435
|
+
"post-thumbnail"
|
|
1436
|
+
],
|
|
1437
|
+
"defaultValues": {
|
|
1438
|
+
"title": "Deriv press releases",
|
|
1439
|
+
"allCategoryId": "all",
|
|
1440
|
+
"allCategoryLabel": "View all",
|
|
1441
|
+
"searchPlaceholder": "Search",
|
|
1442
|
+
"emptyStateText": "Sorry, we couldn't find any results matching."
|
|
1443
|
+
},
|
|
1444
|
+
"fields": {
|
|
1445
|
+
"allCategoryId": {
|
|
1446
|
+
"type": "string",
|
|
1447
|
+
"required": false,
|
|
1448
|
+
"default": "all",
|
|
1449
|
+
"defaultSource": "effective",
|
|
1450
|
+
"maxLength": 40
|
|
1451
|
+
},
|
|
1452
|
+
"allCategoryLabel": {
|
|
1453
|
+
"type": "string",
|
|
1454
|
+
"required": false,
|
|
1455
|
+
"default": "View all",
|
|
1456
|
+
"defaultSource": "effective",
|
|
1457
|
+
"maxLength": 30
|
|
1458
|
+
},
|
|
1459
|
+
"categories": {
|
|
1460
|
+
"type": "array",
|
|
1461
|
+
"required": true,
|
|
1462
|
+
"description": "Category tabs, CMS-managed. An additional \"all\" tab (see allCategoryId/allCategoryLabel) is always prepended automatically — do not include it here.",
|
|
1463
|
+
"itemFields": {
|
|
1464
|
+
"id": {
|
|
1465
|
+
"type": "string",
|
|
1466
|
+
"required": true,
|
|
1467
|
+
"maxLength": 40,
|
|
1468
|
+
"description": "Must match FeatureBlogCategoryPost.category for filtering to work."
|
|
1469
|
+
},
|
|
1470
|
+
"label": {
|
|
1471
|
+
"type": "string",
|
|
1472
|
+
"required": true,
|
|
1473
|
+
"maxLength": 30
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
},
|
|
1477
|
+
"defaultActiveCategoryId": {
|
|
1478
|
+
"type": "string",
|
|
1479
|
+
"required": false,
|
|
1480
|
+
"description": "Initial active tab id. Defaults to allCategoryId (\"View all\") when omitted."
|
|
1481
|
+
},
|
|
1482
|
+
"emptyStateText": {
|
|
1483
|
+
"type": "string",
|
|
1484
|
+
"required": false,
|
|
1485
|
+
"default": "Sorry, we couldn't find any results matching.",
|
|
1486
|
+
"defaultSource": "effective",
|
|
1487
|
+
"maxLength": 120
|
|
1488
|
+
},
|
|
1489
|
+
"posts": {
|
|
1490
|
+
"type": "array",
|
|
1491
|
+
"required": true,
|
|
1492
|
+
"itemFields": {
|
|
1493
|
+
"category": {
|
|
1494
|
+
"type": "string",
|
|
1495
|
+
"required": true,
|
|
1496
|
+
"maxLength": 40,
|
|
1497
|
+
"description": "Must match one of categories[].id. Posts always also match the \"all\" tab."
|
|
1498
|
+
},
|
|
1499
|
+
"categoryLabel": {
|
|
1500
|
+
"type": "string",
|
|
1501
|
+
"required": false,
|
|
1502
|
+
"maxLength": 30,
|
|
1503
|
+
"description": "Category chip label shown on the card. Defaults to the matching tab's label."
|
|
1504
|
+
},
|
|
1505
|
+
"date": {
|
|
1506
|
+
"type": "string",
|
|
1507
|
+
"required": false,
|
|
1508
|
+
"maxLength": 30,
|
|
1509
|
+
"description": "Publish date label, e.g. \"July 24, 2026\"."
|
|
1510
|
+
},
|
|
1511
|
+
"href": {
|
|
1512
|
+
"type": "url",
|
|
1513
|
+
"required": false,
|
|
1514
|
+
"description": "Absolute http(s):// URLs open in a new tab (external); relative/internal paths navigate same-tab."
|
|
1515
|
+
},
|
|
1516
|
+
"summary": {
|
|
1517
|
+
"type": "string",
|
|
1518
|
+
"required": true,
|
|
1519
|
+
"maxLength": 220
|
|
1520
|
+
},
|
|
1521
|
+
"thumbnail": {
|
|
1522
|
+
"type": "image",
|
|
1523
|
+
"required": true
|
|
1524
|
+
},
|
|
1525
|
+
"thumbnailAlt": {
|
|
1526
|
+
"type": "string",
|
|
1527
|
+
"required": false,
|
|
1528
|
+
"default": "",
|
|
1529
|
+
"defaultSource": "effective",
|
|
1530
|
+
"maxLength": 125,
|
|
1531
|
+
"description": "Alt text for the post thumbnail. Defaults to an empty string, which marks the image as decorative — set it whenever the image carries meaning."
|
|
1532
|
+
},
|
|
1533
|
+
"title": {
|
|
1534
|
+
"type": "string",
|
|
1535
|
+
"required": true,
|
|
1536
|
+
"maxLength": 100
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
},
|
|
1540
|
+
"searchPlaceholder": {
|
|
1541
|
+
"type": "string",
|
|
1542
|
+
"required": false,
|
|
1543
|
+
"default": "Search",
|
|
1544
|
+
"defaultSource": "effective",
|
|
1545
|
+
"maxLength": 40
|
|
1546
|
+
},
|
|
1547
|
+
"title": {
|
|
1548
|
+
"type": "string",
|
|
1549
|
+
"required": false,
|
|
1550
|
+
"maxLength": 80
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
},
|
|
1554
|
+
"feature-blog-page": {
|
|
1555
|
+
"id": "feature-blog-page",
|
|
1556
|
+
"name": "Feature Blog Page",
|
|
1557
|
+
"component": "FeatureBlogPage",
|
|
1558
|
+
"category": "content",
|
|
1559
|
+
"description": "A full blog-article page: category tag, title, author/date meta, hero image, and a rich-content body alongside a sticky 'Contents' (table of contents) + 'Share article' sidebar that scroll-spies the current section on desktop. On mobile the sidebar collapses into an expandable 'Contents' card above the title and a horizontal share-icon row below the hero image. Breadcrumb navigation is not part of this template — it is composed separately above it.",
|
|
1560
|
+
"purpose": "A full blog-article page: category tag, title, author/date meta, hero image, and a rich-content body alongside a sticky \"Contents\" (table of contents) and \"Share article\" sidebar that highlights the current section as the reader scrolls. On mobile/tablet the sidebar collapses into an expandable \"Contents\" card above the title and a horizontal share-icon row below the hero image, so both stay reachable without a persistent floating widget. Breadcrumb navigation is intentionally **not** part of this template — it is composed separately above it by the consuming page. Modeled after [deriv.com/newsroom/updates/deriv-derived-indices-on-tradingview](https://deriv.com/newsroom/updates/deriv-derived-indices-on-tradingview).",
|
|
1561
|
+
"keywords": [
|
|
1562
|
+
"blog",
|
|
1563
|
+
"article",
|
|
1564
|
+
"blog post",
|
|
1565
|
+
"press release",
|
|
1566
|
+
"newsroom",
|
|
1567
|
+
"table of contents",
|
|
1568
|
+
"toc",
|
|
1569
|
+
"contents",
|
|
1570
|
+
"share",
|
|
1571
|
+
"social share",
|
|
1572
|
+
"sticky sidebar",
|
|
1573
|
+
"scrollspy",
|
|
1574
|
+
"author",
|
|
1575
|
+
"byline",
|
|
1576
|
+
"trading",
|
|
1577
|
+
"deriv"
|
|
1578
|
+
],
|
|
1579
|
+
"sectionType": "article",
|
|
1580
|
+
"global": false,
|
|
1581
|
+
"requiredFields": [
|
|
1582
|
+
"title",
|
|
1583
|
+
"content"
|
|
1584
|
+
],
|
|
1585
|
+
"optionalFields": [
|
|
1586
|
+
"category",
|
|
1587
|
+
"publishDate",
|
|
1588
|
+
"author",
|
|
1589
|
+
"heroImage",
|
|
1590
|
+
"heroImageAlt",
|
|
1591
|
+
"tocTitle",
|
|
1592
|
+
"tocDefaultOpen",
|
|
1593
|
+
"hideToc",
|
|
1594
|
+
"shareTitle",
|
|
1595
|
+
"shareUrl",
|
|
1596
|
+
"shareText",
|
|
1597
|
+
"sharePlatforms",
|
|
1598
|
+
"hideShare",
|
|
1599
|
+
"copiedLabel"
|
|
1600
|
+
],
|
|
1601
|
+
"variants": [
|
|
1602
|
+
"default"
|
|
1603
|
+
],
|
|
1604
|
+
"recommendedPosition": 1,
|
|
1605
|
+
"placement": [
|
|
1606
|
+
"top",
|
|
1607
|
+
"middle"
|
|
1608
|
+
],
|
|
1609
|
+
"layout": {
|
|
1610
|
+
"alignment": "left",
|
|
1611
|
+
"gridColumns": "2",
|
|
1612
|
+
"contentWidth": "large",
|
|
1613
|
+
"background": false,
|
|
1614
|
+
"overlay": false
|
|
1615
|
+
},
|
|
1616
|
+
"supports": {
|
|
1617
|
+
"backgroundImage": false,
|
|
1618
|
+
"backgroundVideo": false,
|
|
1619
|
+
"foregroundImage": true,
|
|
1620
|
+
"primaryButton": false,
|
|
1621
|
+
"secondaryButton": false,
|
|
1622
|
+
"cardLink": false,
|
|
1623
|
+
"icons": true,
|
|
1624
|
+
"tableOfContents": true,
|
|
1625
|
+
"socialShare": true,
|
|
1626
|
+
"richContent": true
|
|
1627
|
+
},
|
|
1628
|
+
"imageRoles": [
|
|
1629
|
+
"hero-image",
|
|
1630
|
+
"author-avatar",
|
|
1631
|
+
"inline-image"
|
|
1632
|
+
],
|
|
1633
|
+
"defaultValues": {
|
|
1634
|
+
"tocTitle": "Contents",
|
|
1635
|
+
"tocDefaultOpen": true,
|
|
1636
|
+
"hideToc": false,
|
|
1637
|
+
"shareTitle": "Share article",
|
|
1638
|
+
"sharePlatforms": [
|
|
1639
|
+
"facebook",
|
|
1640
|
+
"twitter",
|
|
1641
|
+
"telegram",
|
|
1642
|
+
"linkedin"
|
|
1643
|
+
],
|
|
1644
|
+
"hideShare": false,
|
|
1645
|
+
"copiedLabel": "Copied!"
|
|
1646
|
+
},
|
|
1647
|
+
"fields": {
|
|
1648
|
+
"author": {
|
|
1649
|
+
"type": "object",
|
|
1650
|
+
"required": false,
|
|
1651
|
+
"objectFields": {
|
|
1652
|
+
"avatar": {
|
|
1653
|
+
"type": "image",
|
|
1654
|
+
"required": false
|
|
1655
|
+
},
|
|
1656
|
+
"avatarAlt": {
|
|
1657
|
+
"type": "string",
|
|
1658
|
+
"required": false,
|
|
1659
|
+
"maxLength": 125
|
|
1660
|
+
},
|
|
1661
|
+
"name": {
|
|
1662
|
+
"type": "string",
|
|
1663
|
+
"required": true,
|
|
1664
|
+
"maxLength": 60
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
},
|
|
1668
|
+
"category": {
|
|
1669
|
+
"type": "string",
|
|
1670
|
+
"required": false,
|
|
1671
|
+
"maxLength": 40,
|
|
1672
|
+
"description": "Small category label rendered above the title, e.g. \"Press releases\"."
|
|
1673
|
+
},
|
|
1674
|
+
"content": {
|
|
1675
|
+
"type": "array",
|
|
1676
|
+
"required": true,
|
|
1677
|
+
"itemFields": {
|
|
1678
|
+
"caption": {
|
|
1679
|
+
"type": "string",
|
|
1680
|
+
"required": false,
|
|
1681
|
+
"maxLength": 200
|
|
1682
|
+
},
|
|
1683
|
+
"cite": {
|
|
1684
|
+
"type": "string",
|
|
1685
|
+
"required": false,
|
|
1686
|
+
"maxLength": 120
|
|
1687
|
+
},
|
|
1688
|
+
"id": {
|
|
1689
|
+
"type": "string",
|
|
1690
|
+
"required": false,
|
|
1691
|
+
"maxLength": 80,
|
|
1692
|
+
"description": "Stable anchor id; auto-generated (slugified) from `text` when omitted."
|
|
1693
|
+
},
|
|
1694
|
+
"image": {
|
|
1695
|
+
"type": "image",
|
|
1696
|
+
"required": false
|
|
1697
|
+
},
|
|
1698
|
+
"imageAlt": {
|
|
1699
|
+
"type": "string",
|
|
1700
|
+
"required": false,
|
|
1701
|
+
"maxLength": 125
|
|
1702
|
+
},
|
|
1703
|
+
"items": {
|
|
1704
|
+
"type": "array",
|
|
1705
|
+
"required": false
|
|
1706
|
+
},
|
|
1707
|
+
"level": {
|
|
1708
|
+
"type": "number",
|
|
1709
|
+
"required": false,
|
|
1710
|
+
"default": 2,
|
|
1711
|
+
"defaultSource": "effective",
|
|
1712
|
+
"enum": [
|
|
1713
|
+
2,
|
|
1714
|
+
3
|
|
1715
|
+
],
|
|
1716
|
+
"description": "Only level-2 headings are collected into the table of contents."
|
|
1717
|
+
},
|
|
1718
|
+
"ordered": {
|
|
1719
|
+
"type": "boolean",
|
|
1720
|
+
"required": false,
|
|
1721
|
+
"default": false,
|
|
1722
|
+
"defaultSource": "effective"
|
|
1723
|
+
},
|
|
1724
|
+
"text": {
|
|
1725
|
+
"type": "string",
|
|
1726
|
+
"required": false,
|
|
1727
|
+
"maxLength": 1000
|
|
1728
|
+
},
|
|
1729
|
+
"type": {
|
|
1730
|
+
"type": "string",
|
|
1731
|
+
"required": true,
|
|
1732
|
+
"enum": [
|
|
1733
|
+
"heading",
|
|
1734
|
+
"paragraph",
|
|
1735
|
+
"list",
|
|
1736
|
+
"quote",
|
|
1737
|
+
"image"
|
|
1738
|
+
]
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
},
|
|
1742
|
+
"copiedLabel": {
|
|
1743
|
+
"type": "string",
|
|
1744
|
+
"required": false,
|
|
1745
|
+
"default": "Copied!",
|
|
1746
|
+
"maxLength": 30
|
|
1747
|
+
},
|
|
1748
|
+
"heroImage": {
|
|
1749
|
+
"type": "image",
|
|
1750
|
+
"required": false
|
|
1751
|
+
},
|
|
1752
|
+
"heroImageAlt": {
|
|
1753
|
+
"type": "string",
|
|
1754
|
+
"required": false,
|
|
1755
|
+
"default": "",
|
|
1756
|
+
"defaultSource": "effective",
|
|
1757
|
+
"maxLength": 125
|
|
1758
|
+
},
|
|
1759
|
+
"hideShare": {
|
|
1760
|
+
"type": "boolean",
|
|
1761
|
+
"required": false,
|
|
1762
|
+
"default": false
|
|
1763
|
+
},
|
|
1764
|
+
"hideToc": {
|
|
1765
|
+
"type": "boolean",
|
|
1766
|
+
"required": false,
|
|
1767
|
+
"default": false
|
|
1768
|
+
},
|
|
1769
|
+
"publishDate": {
|
|
1770
|
+
"type": "string",
|
|
1771
|
+
"required": false,
|
|
1772
|
+
"maxLength": 30,
|
|
1773
|
+
"description": "Publish date label, e.g. \"July 24, 2026\"."
|
|
1774
|
+
},
|
|
1775
|
+
"sharePlatforms": {
|
|
1776
|
+
"type": "array",
|
|
1777
|
+
"required": false,
|
|
1778
|
+
"default": [
|
|
1779
|
+
"facebook",
|
|
1780
|
+
"twitter",
|
|
1781
|
+
"telegram",
|
|
1782
|
+
"linkedin"
|
|
1783
|
+
],
|
|
1784
|
+
"defaultSource": "effective",
|
|
1785
|
+
"enum": [
|
|
1786
|
+
"facebook",
|
|
1787
|
+
"twitter",
|
|
1788
|
+
"linkedin",
|
|
1789
|
+
"telegram"
|
|
1790
|
+
]
|
|
1791
|
+
},
|
|
1792
|
+
"shareText": {
|
|
1793
|
+
"type": "string",
|
|
1794
|
+
"required": false,
|
|
1795
|
+
"maxLength": 200,
|
|
1796
|
+
"description": "Text passed to platforms that accept share text (X/Twitter, Telegram); defaults to `title`."
|
|
1797
|
+
},
|
|
1798
|
+
"shareTitle": {
|
|
1799
|
+
"type": "string",
|
|
1800
|
+
"required": false,
|
|
1801
|
+
"default": "Share article",
|
|
1802
|
+
"maxLength": 40
|
|
1803
|
+
},
|
|
1804
|
+
"shareUrl": {
|
|
1805
|
+
"type": "url",
|
|
1806
|
+
"required": false,
|
|
1807
|
+
"description": "Canonical URL used to build every share link and for \"copy link\"; sharing is hidden when omitted."
|
|
1808
|
+
},
|
|
1809
|
+
"title": {
|
|
1810
|
+
"type": "string",
|
|
1811
|
+
"required": true,
|
|
1812
|
+
"maxLength": 160
|
|
1813
|
+
},
|
|
1814
|
+
"tocDefaultOpen": {
|
|
1815
|
+
"type": "boolean",
|
|
1816
|
+
"required": false,
|
|
1817
|
+
"default": true
|
|
1818
|
+
},
|
|
1819
|
+
"tocTitle": {
|
|
1820
|
+
"type": "string",
|
|
1821
|
+
"required": false,
|
|
1822
|
+
"default": "Contents",
|
|
1823
|
+
"maxLength": 40
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1230
1827
|
"feature-bullets-image-right": {
|
|
1231
1828
|
"id": "feature-bullets-image-right",
|
|
1232
1829
|
"name": "Feature Bullets Image Right",
|
|
@@ -1972,8 +2569,8 @@
|
|
|
1972
2569
|
"name": "Header Visuals",
|
|
1973
2570
|
"component": "Header",
|
|
1974
2571
|
"category": "header",
|
|
1975
|
-
"description": "
|
|
1976
|
-
"purpose": "A
|
|
2572
|
+
"description": "Sub-page header with centred title, CTA buttons, and either a light-grey background with optional floating parallax visuals, or a dark navy background (optionally with a search field) in a shorter format.",
|
|
2573
|
+
"purpose": "A page header for sub-pages: an optional eyebrow subtitle, a large title, optional description, and up to two CTA buttons over a faint SVG grid background. - **Visuals** variant adds floating parallax images in the top-left and bottom-right corners. - **Minimal** variant is the same without the floating graphics. - **Centred - Dark** variant swaps to a dark navy background with a shorter min-height, for tool/resource index pages that sit right below a dark navbar (no breadcrumb or navbar baked in — pair those components separately, as on `deriv.com/trading-calculators`). - **Centred - Dark with Search** variant is the dark background plus a search field below the title/description, for pages like the Help Centre index. This block is designed as a lower-weight alternative to the full-viewport Hero — it sits above content without dominating the first viewport (min-height 540px for the light variants; 420px on mobile/tablet and 460px on desktop for the dark variants — actual height still grows with longer content).",
|
|
1977
2574
|
"keywords": [
|
|
1978
2575
|
"header",
|
|
1979
2576
|
"page-header",
|
|
@@ -1986,7 +2583,10 @@
|
|
|
1986
2583
|
"parallax",
|
|
1987
2584
|
"cta",
|
|
1988
2585
|
"trading",
|
|
1989
|
-
"deriv"
|
|
2586
|
+
"deriv",
|
|
2587
|
+
"dark",
|
|
2588
|
+
"search",
|
|
2589
|
+
"help-centre"
|
|
1990
2590
|
],
|
|
1991
2591
|
"sectionType": "header",
|
|
1992
2592
|
"global": false,
|
|
@@ -2000,11 +2600,14 @@
|
|
|
2000
2600
|
"primaryButton",
|
|
2001
2601
|
"secondaryButton",
|
|
2002
2602
|
"leftVisual",
|
|
2003
|
-
"rightVisual"
|
|
2603
|
+
"rightVisual",
|
|
2604
|
+
"search"
|
|
2004
2605
|
],
|
|
2005
2606
|
"variants": [
|
|
2006
2607
|
"visuals",
|
|
2007
|
-
"minimal"
|
|
2608
|
+
"minimal",
|
|
2609
|
+
"dark",
|
|
2610
|
+
"dark-search"
|
|
2008
2611
|
],
|
|
2009
2612
|
"recommendedPosition": 1,
|
|
2010
2613
|
"placement": [
|
|
@@ -2024,7 +2627,8 @@
|
|
|
2024
2627
|
"primaryButton": true,
|
|
2025
2628
|
"secondaryButton": true,
|
|
2026
2629
|
"eyebrow": true,
|
|
2027
|
-
"parallax": true
|
|
2630
|
+
"parallax": true,
|
|
2631
|
+
"search": true
|
|
2028
2632
|
},
|
|
2029
2633
|
"imageRoles": [
|
|
2030
2634
|
"left-visual",
|
|
@@ -2066,6 +2670,19 @@
|
|
|
2066
2670
|
"aspectRatio": "1:1",
|
|
2067
2671
|
"description": "Right floating visual, rendered by the `visuals` variant only. Accepts a ReactNode in code; page builders should pass an image URL string."
|
|
2068
2672
|
},
|
|
2673
|
+
"search": {
|
|
2674
|
+
"type": "object",
|
|
2675
|
+
"required": false,
|
|
2676
|
+
"description": "Search field configuration, rendered only by the `dark-search` variant (the field always appears for that variant; this only customises it).",
|
|
2677
|
+
"objectFields": {
|
|
2678
|
+
"placeholder": {
|
|
2679
|
+
"type": "string",
|
|
2680
|
+
"required": false,
|
|
2681
|
+
"maxLength": 40,
|
|
2682
|
+
"description": "Placeholder text for the search input. Defaults to \"Search\"."
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
},
|
|
2069
2686
|
"secondaryButton": {
|
|
2070
2687
|
"type": "object",
|
|
2071
2688
|
"required": false,
|
|
@@ -2098,9 +2715,11 @@
|
|
|
2098
2715
|
"required": true,
|
|
2099
2716
|
"enum": [
|
|
2100
2717
|
"visuals",
|
|
2101
|
-
"minimal"
|
|
2718
|
+
"minimal",
|
|
2719
|
+
"dark",
|
|
2720
|
+
"dark-search"
|
|
2102
2721
|
],
|
|
2103
|
-
"description": "Layout variant. Required — the component has no fallback, so omitting it renders an unstyled header."
|
|
2722
|
+
"description": "Layout variant. Required — the component has no fallback, so omitting it renders an unstyled header. 'dark' and 'dark-search' use a dark navy background with a shorter min-height than 'visuals'/'minimal'; 'dark-search' also renders a search field below the text (e.g. Help Centre header)."
|
|
2104
2723
|
}
|
|
2105
2724
|
}
|
|
2106
2725
|
},
|
|
@@ -3209,6 +3828,143 @@
|
|
|
3209
3828
|
}
|
|
3210
3829
|
}
|
|
3211
3830
|
},
|
|
3831
|
+
"parallax-banner": {
|
|
3832
|
+
"id": "parallax-banner",
|
|
3833
|
+
"name": "Parallax Banner",
|
|
3834
|
+
"component": "ParallaxBanner",
|
|
3835
|
+
"category": "banner",
|
|
3836
|
+
"description": "Dark rounded banner card with a culture/values headline, supporting copy, one CTA link, and a photo with a subtle scroll-linked parallax. The \"default\" variant adds a grid of four short value cards underneath; \"banner-only\" renders just the banner. Modeled on the \"Our culture\" section on careers.deriv.com.",
|
|
3837
|
+
"purpose": "A dark, rounded banner card that introduces a company's culture or values — headline, supporting copy, and one CTA link on one side, a photo on the other — with a subtle scroll-linked parallax on the photo as the section enters and leaves the viewport. The `default` variant adds a grid of four short value/culture cards directly beneath the banner; the `banner-only` variant renders just the banner card. Modeled after the \"Our culture\" section on [careers.deriv.com](https://careers.deriv.com).",
|
|
3838
|
+
"keywords": [
|
|
3839
|
+
"careers",
|
|
3840
|
+
"culture",
|
|
3841
|
+
"values",
|
|
3842
|
+
"about-us",
|
|
3843
|
+
"banner",
|
|
3844
|
+
"image",
|
|
3845
|
+
"photo",
|
|
3846
|
+
"parallax",
|
|
3847
|
+
"scroll",
|
|
3848
|
+
"cta",
|
|
3849
|
+
"team",
|
|
3850
|
+
"hiring",
|
|
3851
|
+
"jobs",
|
|
3852
|
+
"deriv"
|
|
3853
|
+
],
|
|
3854
|
+
"sectionType": "banner",
|
|
3855
|
+
"global": false,
|
|
3856
|
+
"requiredFields": [],
|
|
3857
|
+
"optionalFields": [
|
|
3858
|
+
"variant",
|
|
3859
|
+
"title",
|
|
3860
|
+
"description",
|
|
3861
|
+
"ctaLabel",
|
|
3862
|
+
"ctaHref",
|
|
3863
|
+
"imageUrl",
|
|
3864
|
+
"imageAlt",
|
|
3865
|
+
"cards",
|
|
3866
|
+
"enableParallax"
|
|
3867
|
+
],
|
|
3868
|
+
"variants": [
|
|
3869
|
+
"default",
|
|
3870
|
+
"banner-only"
|
|
3871
|
+
],
|
|
3872
|
+
"recommendedPosition": 4,
|
|
3873
|
+
"placement": [
|
|
3874
|
+
"middle",
|
|
3875
|
+
"bottom"
|
|
3876
|
+
],
|
|
3877
|
+
"layout": {
|
|
3878
|
+
"alignment": "left",
|
|
3879
|
+
"buttonLayout": "none",
|
|
3880
|
+
"contentWidth": "wide",
|
|
3881
|
+
"background": true,
|
|
3882
|
+
"overlay": false,
|
|
3883
|
+
"parallax": true
|
|
3884
|
+
},
|
|
3885
|
+
"supports": {
|
|
3886
|
+
"backgroundImage": false,
|
|
3887
|
+
"backgroundVideo": false,
|
|
3888
|
+
"foregroundImage": true,
|
|
3889
|
+
"primaryButton": false,
|
|
3890
|
+
"secondaryButton": false,
|
|
3891
|
+
"ctaLink": true,
|
|
3892
|
+
"parallax": true,
|
|
3893
|
+
"editableText": true
|
|
3894
|
+
},
|
|
3895
|
+
"imageRoles": [
|
|
3896
|
+
"split-panel"
|
|
3897
|
+
],
|
|
3898
|
+
"defaultValues": {
|
|
3899
|
+
"variant": "default",
|
|
3900
|
+
"title": "Our culture",
|
|
3901
|
+
"description": "We combine human values with AI precision. Collaboration, integrity, and continuous learning guide every project.",
|
|
3902
|
+
"ctaLabel": "Culture at Deriv",
|
|
3903
|
+
"enableParallax": true
|
|
3904
|
+
},
|
|
3905
|
+
"fields": {
|
|
3906
|
+
"cards": {
|
|
3907
|
+
"type": "array",
|
|
3908
|
+
"required": false,
|
|
3909
|
+
"itemFields": {
|
|
3910
|
+
"description": {
|
|
3911
|
+
"type": "string",
|
|
3912
|
+
"required": true,
|
|
3913
|
+
"maxLength": 220
|
|
3914
|
+
},
|
|
3915
|
+
"title": {
|
|
3916
|
+
"type": "string",
|
|
3917
|
+
"required": true,
|
|
3918
|
+
"maxLength": 40
|
|
3919
|
+
}
|
|
3920
|
+
}
|
|
3921
|
+
},
|
|
3922
|
+
"ctaHref": {
|
|
3923
|
+
"type": "string",
|
|
3924
|
+
"required": false
|
|
3925
|
+
},
|
|
3926
|
+
"ctaLabel": {
|
|
3927
|
+
"type": "string",
|
|
3928
|
+
"required": false,
|
|
3929
|
+
"maxLength": 40
|
|
3930
|
+
},
|
|
3931
|
+
"description": {
|
|
3932
|
+
"type": "string",
|
|
3933
|
+
"required": false,
|
|
3934
|
+
"maxLength": 220
|
|
3935
|
+
},
|
|
3936
|
+
"enableParallax": {
|
|
3937
|
+
"type": "boolean",
|
|
3938
|
+
"required": false,
|
|
3939
|
+
"default": true
|
|
3940
|
+
},
|
|
3941
|
+
"imageAlt": {
|
|
3942
|
+
"type": "string",
|
|
3943
|
+
"required": false,
|
|
3944
|
+
"maxLength": 120,
|
|
3945
|
+
"default": ""
|
|
3946
|
+
},
|
|
3947
|
+
"imageUrl": {
|
|
3948
|
+
"type": "image",
|
|
3949
|
+
"required": false,
|
|
3950
|
+
"aspectRatio": "4:3"
|
|
3951
|
+
},
|
|
3952
|
+
"title": {
|
|
3953
|
+
"type": "string",
|
|
3954
|
+
"required": false,
|
|
3955
|
+
"maxLength": 60
|
|
3956
|
+
},
|
|
3957
|
+
"variant": {
|
|
3958
|
+
"type": "string",
|
|
3959
|
+
"required": false,
|
|
3960
|
+
"enum": [
|
|
3961
|
+
"default",
|
|
3962
|
+
"banner-only"
|
|
3963
|
+
],
|
|
3964
|
+
"default": "default"
|
|
3965
|
+
}
|
|
3966
|
+
}
|
|
3967
|
+
},
|
|
3212
3968
|
"stats-carousel": {
|
|
3213
3969
|
"id": "stats-carousel",
|
|
3214
3970
|
"name": "Stats Carousel",
|
|
@@ -3861,8 +4617,8 @@
|
|
|
3861
4617
|
"name": "Testimonial",
|
|
3862
4618
|
"component": "Testimonial",
|
|
3863
4619
|
"category": "testimonial",
|
|
3864
|
-
"description": "
|
|
3865
|
-
"purpose": "A full-width testimonial
|
|
4620
|
+
"description": "Testimonial section with two variants: an auto-advancing single-slide quote carousel with dot pagination (default), and a horizontally-scrollable row of star-rated Trustpilot review cards with a rating badge and prev/next controls (trustpilot).",
|
|
4621
|
+
"purpose": "A full-width testimonial section for showcasing partner or customer quotes. Ships in two variants: - **Default** — one quote card at a time, with decorative quote marks, an optional author avatar, name, and location; auto-advances every 5 seconds with dot pagination for manual navigation. - **Trustpilot** — a horizontally-scrollable row of star-rated review cards plus a \"Trustpilot\" rating badge and prev/next arrow controls. Modeled after the \"What our customers say\" section on deriv.com's homepage. The 5-second auto-advance is **not configurable** — there is no prop to slow it down or switch it off. The block's only props are `title`, `items` and `className`.",
|
|
3866
4622
|
"keywords": [
|
|
3867
4623
|
"testimonial",
|
|
3868
4624
|
"quote",
|
|
@@ -3874,7 +4630,12 @@
|
|
|
3874
4630
|
"customer",
|
|
3875
4631
|
"trader",
|
|
3876
4632
|
"trading",
|
|
3877
|
-
"deriv"
|
|
4633
|
+
"deriv",
|
|
4634
|
+
"trustpilot",
|
|
4635
|
+
"star rating",
|
|
4636
|
+
"reviews",
|
|
4637
|
+
"customer feedback",
|
|
4638
|
+
"homepage"
|
|
3878
4639
|
],
|
|
3879
4640
|
"sectionType": "testimonial",
|
|
3880
4641
|
"global": false,
|
|
@@ -3882,10 +4643,14 @@
|
|
|
3882
4643
|
"items"
|
|
3883
4644
|
],
|
|
3884
4645
|
"optionalFields": [
|
|
3885
|
-
"title"
|
|
4646
|
+
"title",
|
|
4647
|
+
"variant",
|
|
4648
|
+
"trustpilotUrl",
|
|
4649
|
+
"trustpilotScore"
|
|
3886
4650
|
],
|
|
3887
4651
|
"variants": [
|
|
3888
|
-
"default"
|
|
4652
|
+
"default",
|
|
4653
|
+
"trustpilot"
|
|
3889
4654
|
],
|
|
3890
4655
|
"recommendedPosition": 6,
|
|
3891
4656
|
"placement": [
|
|
@@ -3905,6 +4670,9 @@
|
|
|
3905
4670
|
"autoAdvance": true,
|
|
3906
4671
|
"dotPagination": true,
|
|
3907
4672
|
"quoteMarks": true,
|
|
4673
|
+
"starRating": true,
|
|
4674
|
+
"reviewLinkOut": true,
|
|
4675
|
+
"brandRatingBadge": true,
|
|
3908
4676
|
"primaryButton": false,
|
|
3909
4677
|
"secondaryButton": false,
|
|
3910
4678
|
"badge": false
|
|
@@ -3912,7 +4680,11 @@
|
|
|
3912
4680
|
"imageRoles": [
|
|
3913
4681
|
"author-avatar"
|
|
3914
4682
|
],
|
|
3915
|
-
"defaultValues": {
|
|
4683
|
+
"defaultValues": {
|
|
4684
|
+
"variant": "default",
|
|
4685
|
+
"trustpilotUrl": "https://www.trustpilot.com/review/deriv.com?utm_medium=trustbox&utm_source=Mini",
|
|
4686
|
+
"trustpilotScore": 4.5
|
|
4687
|
+
},
|
|
3916
4688
|
"fields": {
|
|
3917
4689
|
"items": {
|
|
3918
4690
|
"type": "array",
|
|
@@ -3937,6 +4709,16 @@
|
|
|
3937
4709
|
"type": "string",
|
|
3938
4710
|
"required": true,
|
|
3939
4711
|
"maxLength": 400
|
|
4712
|
+
},
|
|
4713
|
+
"rating": {
|
|
4714
|
+
"type": "number",
|
|
4715
|
+
"required": false,
|
|
4716
|
+
"min": 0,
|
|
4717
|
+
"max": 5
|
|
4718
|
+
},
|
|
4719
|
+
"reviewUrl": {
|
|
4720
|
+
"type": "string",
|
|
4721
|
+
"required": false
|
|
3940
4722
|
}
|
|
3941
4723
|
}
|
|
3942
4724
|
},
|
|
@@ -3944,6 +4726,20 @@
|
|
|
3944
4726
|
"type": "string",
|
|
3945
4727
|
"required": false,
|
|
3946
4728
|
"maxLength": 80
|
|
4729
|
+
},
|
|
4730
|
+
"trustpilotScore": {
|
|
4731
|
+
"type": "number",
|
|
4732
|
+
"required": false,
|
|
4733
|
+
"min": 0,
|
|
4734
|
+
"max": 5
|
|
4735
|
+
},
|
|
4736
|
+
"trustpilotUrl": {
|
|
4737
|
+
"type": "string",
|
|
4738
|
+
"required": false
|
|
4739
|
+
},
|
|
4740
|
+
"variant": {
|
|
4741
|
+
"type": "enum",
|
|
4742
|
+
"required": false
|
|
3947
4743
|
}
|
|
3948
4744
|
}
|
|
3949
4745
|
},
|