5etools-utils 0.17.18 → 0.17.20

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.
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.11.0",
6
+ "version": "1.11.2",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -352,6 +352,62 @@
352
352
  ],
353
353
  "additionalProperties": false
354
354
  },
355
+ "entryHomebrew": {
356
+ "$comment": "Note that this is intended as homebrew-only, but, is made available everywhere to support samples.",
357
+ "type": "object",
358
+ "properties": {
359
+ "name": {
360
+ "type": "string"
361
+ },
362
+ "type": {
363
+ "type": "string",
364
+ "const": "homebrew"
365
+ },
366
+ "source": {
367
+ "$ref": "util.json#/$defs/source"
368
+ },
369
+ "page": {
370
+ "$ref": "util.json#/$defs/page"
371
+ },
372
+ "data": {
373
+ "$ref": "#/$defs/_entryDataData"
374
+ },
375
+ "id": {
376
+ "type": "string"
377
+ },
378
+ "srd": {
379
+ "$ref": "util.json#/$defs/srd"
380
+ },
381
+ "srd52": {
382
+ "$ref": "util.json#/$defs/srd"
383
+ },
384
+ "basicRules": {
385
+ "$ref": "util.json#/$defs/basicRules"
386
+ },
387
+ "basicRules2024": {
388
+ "$ref": "util.json#/$defs/basicRules"
389
+ },
390
+ "entries": {
391
+ "type": "array",
392
+ "items": {
393
+ "$ref": "#"
394
+ }
395
+ },
396
+ "movedTo": {
397
+ "$ref": "#"
398
+ },
399
+ "oldEntries": {
400
+ "type": "array",
401
+ "items": {
402
+ "$ref": "#"
403
+ }
404
+ }
405
+ },
406
+ "required": [
407
+ "type"
408
+ ],
409
+ "additionalProperties": false
410
+ },
355
411
  "entryQuote": {
356
412
  "type": "object",
357
413
  "properties": {
@@ -1378,199 +1434,406 @@
1378
1434
  "additionalProperties": false
1379
1435
  },
1380
1436
  "abilityGeneric": {
1381
- "type": "object",
1382
- "properties": {
1383
- "name": {
1384
- "type": "string"
1385
- },
1386
- "type": {
1387
- "type": "string",
1388
- "const": "abilityGeneric"
1389
- },
1390
- "source": {
1391
- "$ref": "util.json#/$defs/source"
1392
- },
1393
- "page": {
1394
- "$ref": "util.json#/$defs/page"
1395
- },
1396
- "data": {
1397
- "$ref": "#/$defs/_entryDataData"
1398
- },
1399
- "id": {
1400
- "type": "string"
1401
- },
1402
- "srd": {
1403
- "$ref": "util.json#/$defs/srd"
1404
- },
1405
- "srd52": {
1406
- "$ref": "util.json#/$defs/srd"
1407
- },
1408
- "basicRules": {
1409
- "$ref": "util.json#/$defs/basicRules"
1410
- },
1411
- "basicRules2024": {
1412
- "$ref": "util.json#/$defs/basicRules"
1413
- },
1414
- "text": {
1415
- "type": "string"
1437
+ "anyOf": [
1438
+ {
1439
+ "type": "object",
1440
+ "deprecated": true,
1441
+ "properties": {
1442
+ "name": {
1443
+ "type": "string"
1444
+ },
1445
+ "type": {
1446
+ "type": "string",
1447
+ "const": "abilityGeneric"
1448
+ },
1449
+ "source": {
1450
+ "$ref": "util.json#/$defs/source"
1451
+ },
1452
+ "page": {
1453
+ "$ref": "util.json#/$defs/page"
1454
+ },
1455
+ "data": {
1456
+ "$ref": "#/$defs/_entryDataData"
1457
+ },
1458
+ "id": {
1459
+ "type": "string"
1460
+ },
1461
+ "srd": {
1462
+ "$ref": "util.json#/$defs/srd"
1463
+ },
1464
+ "srd52": {
1465
+ "$ref": "util.json#/$defs/srd"
1466
+ },
1467
+ "basicRules": {
1468
+ "$ref": "util.json#/$defs/basicRules"
1469
+ },
1470
+ "basicRules2024": {
1471
+ "$ref": "util.json#/$defs/basicRules"
1472
+ },
1473
+ "text": {
1474
+ "type": "string"
1475
+ },
1476
+ "attributes": {
1477
+ "type": "array",
1478
+ "items": {
1479
+ "$ref": "util.json#/$defs/abilityScoreAbbreviation"
1480
+ }
1481
+ }
1482
+ },
1483
+ "required": [
1484
+ "type",
1485
+ "text"
1486
+ ],
1487
+ "additionalProperties": false
1416
1488
  },
1417
- "attributes": {
1418
- "type": "array",
1419
- "items": {
1420
- "$ref": "util.json#/$defs/abilityScoreAbbreviation"
1421
- }
1489
+ {
1490
+ "type": "object",
1491
+ "properties": {
1492
+ "name": {
1493
+ "type": "string"
1494
+ },
1495
+ "type": {
1496
+ "type": "string",
1497
+ "const": "abilityGeneric"
1498
+ },
1499
+ "source": {
1500
+ "$ref": "util.json#/$defs/source"
1501
+ },
1502
+ "page": {
1503
+ "$ref": "util.json#/$defs/page"
1504
+ },
1505
+ "data": {
1506
+ "$ref": "#/$defs/_entryDataData"
1507
+ },
1508
+ "id": {
1509
+ "type": "string"
1510
+ },
1511
+ "srd": {
1512
+ "$ref": "util.json#/$defs/srd"
1513
+ },
1514
+ "srd52": {
1515
+ "$ref": "util.json#/$defs/srd"
1516
+ },
1517
+ "basicRules": {
1518
+ "$ref": "util.json#/$defs/basicRules"
1519
+ },
1520
+ "basicRules2024": {
1521
+ "$ref": "util.json#/$defs/basicRules"
1522
+ },
1523
+ "entry": {
1524
+ "type": "string"
1525
+ },
1526
+ "attributes": {
1527
+ "type": "array",
1528
+ "items": {
1529
+ "$ref": "util.json#/$defs/abilityScoreAbbreviation"
1530
+ }
1531
+ }
1532
+ },
1533
+ "required": [
1534
+ "type",
1535
+ "entry"
1536
+ ],
1537
+ "additionalProperties": false
1422
1538
  }
1423
- },
1424
- "required": [
1425
- "type",
1426
- "text"
1427
1539
  ],
1428
- "additionalProperties": false
1540
+ "$comment": "Ditto \"entryStatblockInline\"."
1429
1541
  },
1430
1542
  "entryLink": {
1431
- "type": "object",
1432
- "properties": {
1433
- "name": {
1434
- "type": "string"
1435
- },
1436
- "type": {
1437
- "type": "string",
1438
- "const": "link"
1439
- },
1440
- "source": {
1441
- "$ref": "util.json#/$defs/source"
1442
- },
1443
- "page": {
1444
- "$ref": "util.json#/$defs/page"
1445
- },
1446
- "data": {
1447
- "$ref": "#/$defs/_entryDataData"
1448
- },
1449
- "id": {
1450
- "type": "string"
1451
- },
1452
- "srd": {
1453
- "$ref": "util.json#/$defs/srd"
1454
- },
1455
- "srd52": {
1456
- "$ref": "util.json#/$defs/srd"
1457
- },
1458
- "basicRules": {
1459
- "$ref": "util.json#/$defs/basicRules"
1460
- },
1461
- "basicRules2024": {
1462
- "$ref": "util.json#/$defs/basicRules"
1463
- },
1464
- "text": {
1465
- "type": "string"
1466
- },
1467
- "href": {
1468
- "oneOf": [
1469
- {
1470
- "type": "object",
1471
- "properties": {
1472
- "type": {
1473
- "const": "internal"
1474
- },
1475
- "path": {
1476
- "type": "string"
1477
- },
1478
- "hash": {
1479
- "type": "string"
1480
- },
1481
- "hashPreEncoded": {
1482
- "type": "boolean"
1483
- },
1484
- "subhashes": {
1485
- "type": "array",
1486
- "items": {
1487
- "oneOf": [
1488
- {
1489
- "type": "object",
1490
- "properties": {
1491
- "key": {
1492
- "type": "string"
1493
- },
1494
- "values": {
1495
- "type": "array",
1496
- "items": {
1497
- "type": "string"
1498
- }
1543
+ "anyOf": [
1544
+ {
1545
+ "type": "object",
1546
+ "deprecated": true,
1547
+ "properties": {
1548
+ "name": {
1549
+ "type": "string"
1550
+ },
1551
+ "type": {
1552
+ "type": "string",
1553
+ "const": "link"
1554
+ },
1555
+ "source": {
1556
+ "$ref": "util.json#/$defs/source"
1557
+ },
1558
+ "page": {
1559
+ "$ref": "util.json#/$defs/page"
1560
+ },
1561
+ "data": {
1562
+ "$ref": "#/$defs/_entryDataData"
1563
+ },
1564
+ "id": {
1565
+ "type": "string"
1566
+ },
1567
+ "srd": {
1568
+ "$ref": "util.json#/$defs/srd"
1569
+ },
1570
+ "srd52": {
1571
+ "$ref": "util.json#/$defs/srd"
1572
+ },
1573
+ "basicRules": {
1574
+ "$ref": "util.json#/$defs/basicRules"
1575
+ },
1576
+ "basicRules2024": {
1577
+ "$ref": "util.json#/$defs/basicRules"
1578
+ },
1579
+ "text": {
1580
+ "type": "string"
1581
+ },
1582
+ "href": {
1583
+ "oneOf": [
1584
+ {
1585
+ "type": "object",
1586
+ "properties": {
1587
+ "type": {
1588
+ "const": "internal"
1589
+ },
1590
+ "path": {
1591
+ "type": "string"
1592
+ },
1593
+ "hash": {
1594
+ "type": "string"
1595
+ },
1596
+ "hashPreEncoded": {
1597
+ "type": "boolean"
1598
+ },
1599
+ "subhashes": {
1600
+ "type": "array",
1601
+ "items": {
1602
+ "oneOf": [
1603
+ {
1604
+ "type": "object",
1605
+ "properties": {
1606
+ "key": {
1607
+ "type": "string"
1608
+ },
1609
+ "values": {
1610
+ "type": "array",
1611
+ "items": {
1612
+ "type": "string"
1613
+ }
1614
+ },
1615
+ "preEncoded": {
1616
+ "type": "boolean"
1617
+ }
1618
+ },
1619
+ "required": [
1620
+ "key",
1621
+ "values"
1622
+ ],
1623
+ "additionalProperties": false
1499
1624
  },
1500
- "preEncoded": {
1501
- "type": "boolean"
1625
+ {
1626
+ "type": "object",
1627
+ "properties": {
1628
+ "key": {
1629
+ "type": "string"
1630
+ },
1631
+ "value": {
1632
+ "type": "string"
1633
+ },
1634
+ "preEncoded": {
1635
+ "type": "boolean"
1636
+ }
1637
+ },
1638
+ "required": [
1639
+ "key",
1640
+ "value"
1641
+ ],
1642
+ "additionalProperties": false
1502
1643
  }
1644
+ ]
1645
+ }
1646
+ },
1647
+ "hover": {
1648
+ "type": "object",
1649
+ "properties": {
1650
+ "page": {
1651
+ "$ref": "util.json#/$defs/page"
1503
1652
  },
1504
- "required": [
1505
- "key",
1506
- "values"
1507
- ],
1508
- "additionalProperties": false
1509
- },
1510
- {
1511
- "type": "object",
1512
- "properties": {
1513
- "key": {
1514
- "type": "string"
1515
- },
1516
- "value": {
1517
- "type": "string"
1518
- },
1519
- "preEncoded": {
1520
- "type": "boolean"
1521
- }
1653
+ "source": {
1654
+ "$ref": "util.json#/$defs/source"
1522
1655
  },
1523
- "required": [
1524
- "key",
1525
- "value"
1526
- ],
1527
- "additionalProperties": false
1528
- }
1529
- ]
1530
- }
1656
+ "hash": {
1657
+ "description": "Optional; overrides the href hash for hover handlers.",
1658
+ "type": "string",
1659
+ "markdownDescription": "Optional; overrides the href hash for hover handlers."
1660
+ },
1661
+ "hashPreEncoded": {
1662
+ "type": "boolean"
1663
+ }
1664
+ },
1665
+ "additionalProperties": false,
1666
+ "required": [
1667
+ "page",
1668
+ "source"
1669
+ ]
1670
+ }
1671
+ },
1672
+ "required": [
1673
+ "path"
1674
+ ],
1675
+ "additionalProperties": false
1531
1676
  },
1532
- "hover": {
1677
+ {
1678
+ "$ref": "#/$defs/mediaHrefExternal"
1679
+ }
1680
+ ]
1681
+ }
1682
+ },
1683
+ "required": [
1684
+ "type",
1685
+ "text",
1686
+ "href"
1687
+ ],
1688
+ "additionalProperties": false
1689
+ },
1690
+ {
1691
+ "type": "object",
1692
+ "properties": {
1693
+ "name": {
1694
+ "type": "string"
1695
+ },
1696
+ "type": {
1697
+ "type": "string",
1698
+ "const": "link"
1699
+ },
1700
+ "source": {
1701
+ "$ref": "util.json#/$defs/source"
1702
+ },
1703
+ "page": {
1704
+ "$ref": "util.json#/$defs/page"
1705
+ },
1706
+ "data": {
1707
+ "$ref": "#/$defs/_entryDataData"
1708
+ },
1709
+ "id": {
1710
+ "type": "string"
1711
+ },
1712
+ "srd": {
1713
+ "$ref": "util.json#/$defs/srd"
1714
+ },
1715
+ "srd52": {
1716
+ "$ref": "util.json#/$defs/srd"
1717
+ },
1718
+ "basicRules": {
1719
+ "$ref": "util.json#/$defs/basicRules"
1720
+ },
1721
+ "basicRules2024": {
1722
+ "$ref": "util.json#/$defs/basicRules"
1723
+ },
1724
+ "entry": {
1725
+ "type": "string"
1726
+ },
1727
+ "href": {
1728
+ "oneOf": [
1729
+ {
1533
1730
  "type": "object",
1534
1731
  "properties": {
1535
- "page": {
1536
- "$ref": "util.json#/$defs/page"
1732
+ "type": {
1733
+ "const": "internal"
1537
1734
  },
1538
- "source": {
1539
- "$ref": "util.json#/$defs/source"
1735
+ "path": {
1736
+ "type": "string"
1540
1737
  },
1541
1738
  "hash": {
1542
- "description": "Optional; overrides the href hash for hover handlers.",
1543
- "type": "string",
1544
- "markdownDescription": "Optional; overrides the href hash for hover handlers."
1739
+ "type": "string"
1545
1740
  },
1546
1741
  "hashPreEncoded": {
1547
1742
  "type": "boolean"
1743
+ },
1744
+ "subhashes": {
1745
+ "type": "array",
1746
+ "items": {
1747
+ "oneOf": [
1748
+ {
1749
+ "type": "object",
1750
+ "properties": {
1751
+ "key": {
1752
+ "type": "string"
1753
+ },
1754
+ "values": {
1755
+ "type": "array",
1756
+ "items": {
1757
+ "type": "string"
1758
+ }
1759
+ },
1760
+ "preEncoded": {
1761
+ "type": "boolean"
1762
+ }
1763
+ },
1764
+ "required": [
1765
+ "key",
1766
+ "values"
1767
+ ],
1768
+ "additionalProperties": false
1769
+ },
1770
+ {
1771
+ "type": "object",
1772
+ "properties": {
1773
+ "key": {
1774
+ "type": "string"
1775
+ },
1776
+ "value": {
1777
+ "type": "string"
1778
+ },
1779
+ "preEncoded": {
1780
+ "type": "boolean"
1781
+ }
1782
+ },
1783
+ "required": [
1784
+ "key",
1785
+ "value"
1786
+ ],
1787
+ "additionalProperties": false
1788
+ }
1789
+ ]
1790
+ }
1791
+ },
1792
+ "hover": {
1793
+ "type": "object",
1794
+ "properties": {
1795
+ "page": {
1796
+ "$ref": "util.json#/$defs/page"
1797
+ },
1798
+ "source": {
1799
+ "$ref": "util.json#/$defs/source"
1800
+ },
1801
+ "hash": {
1802
+ "description": "Optional; overrides the href hash for hover handlers.",
1803
+ "type": "string",
1804
+ "markdownDescription": "Optional; overrides the href hash for hover handlers."
1805
+ },
1806
+ "hashPreEncoded": {
1807
+ "type": "boolean"
1808
+ }
1809
+ },
1810
+ "additionalProperties": false,
1811
+ "required": [
1812
+ "page",
1813
+ "source"
1814
+ ]
1548
1815
  }
1549
1816
  },
1550
- "additionalProperties": false,
1551
1817
  "required": [
1552
- "page",
1553
- "source"
1554
- ]
1818
+ "path"
1819
+ ],
1820
+ "additionalProperties": false
1821
+ },
1822
+ {
1823
+ "$ref": "#/$defs/mediaHrefExternal"
1555
1824
  }
1556
- },
1557
- "required": [
1558
- "path"
1559
- ],
1560
- "additionalProperties": false
1561
- },
1562
- {
1563
- "$ref": "#/$defs/mediaHrefExternal"
1825
+ ]
1564
1826
  }
1565
- ]
1827
+ },
1828
+ "required": [
1829
+ "type",
1830
+ "entry",
1831
+ "href"
1832
+ ],
1833
+ "additionalProperties": false
1566
1834
  }
1567
- },
1568
- "required": [
1569
- "type",
1570
- "text",
1571
- "href"
1572
1835
  ],
1573
- "additionalProperties": false
1836
+ "$comment": "Ditto \"entryStatblockInline\"."
1574
1837
  },
1575
1838
  "entryOptFeature": {
1576
1839
  "description": "For e.g. Eldritch Invocations which require prerequisite text. Deprecated; prefer \"refOptionalfeature\" or \"statblock\" entries instead.",
@@ -5435,6 +5698,9 @@
5435
5698
  {
5436
5699
  "$ref": "#/$defs/entryEntries"
5437
5700
  },
5701
+ {
5702
+ "$ref": "#/$defs/entryHomebrew"
5703
+ },
5438
5704
  {
5439
5705
  "$ref": "#/$defs/entryQuote"
5440
5706
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -833,6 +833,10 @@
833
833
  },
834
834
  "encounterShape": {
835
835
  "$ref": "encounterbuilder.json#/properties/encounterShape"
836
+ },
837
+ "renderdemo": {
838
+ "$comment": "(Provided for completion's sake, please ignore)",
839
+ "$ref": "renderdemo.json#/properties/renderdemo"
836
840
  }
837
841
  },
838
842
  "additionalProperties": false,