5etools-utils 0.12.52 → 0.12.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.12.52",
3
+ "version": "0.12.53",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.9.1",
6
+ "version": "1.9.2",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -51,6 +51,57 @@
51
51
  }
52
52
  ]
53
53
  },
54
+ "_entryStatblockBase": {
55
+ "type": "object",
56
+ "properties": {
57
+ "name": {
58
+ "type": "string"
59
+ },
60
+ "type": {
61
+ "type": "string",
62
+ "const": "statblock"
63
+ },
64
+ "source": {
65
+ "$ref": "util.json#/$defs/source"
66
+ },
67
+ "page": {
68
+ "$ref": "util.json#/$defs/page"
69
+ },
70
+ "srd": {
71
+ "$ref": "util.json#/$defs/srd"
72
+ },
73
+ "srd52": {
74
+ "$ref": "util.json#/$defs/srd"
75
+ },
76
+ "basicRules": {
77
+ "$ref": "util.json#/$defs/basicRules"
78
+ },
79
+ "freeRules2024": {
80
+ "$ref": "util.json#/$defs/basicRules"
81
+ },
82
+ "data": {
83
+ "$ref": "#/$defs/_entryDataData"
84
+ },
85
+ "id": {
86
+ "type": "string"
87
+ },
88
+ "displayName": {
89
+ "type": "string"
90
+ },
91
+ "hash": {
92
+ "type": "string"
93
+ },
94
+ "style": {
95
+ "$ref": "#/$defs/_entryDataStyle"
96
+ },
97
+ "collapsed": {
98
+ "const": true
99
+ }
100
+ },
101
+ "required": [
102
+ "type"
103
+ ]
104
+ },
54
105
  "mediaHrefInternal": {
55
106
  "type": "object",
56
107
  "properties": {
@@ -3384,9 +3435,6 @@
3384
3435
  "id": {
3385
3436
  "type": "string"
3386
3437
  },
3387
- "tag": {
3388
- "$ref": "util.json#/$defs/tagNameStats"
3389
- },
3390
3438
  "displayName": {
3391
3439
  "type": "string"
3392
3440
  },
@@ -3398,6 +3446,9 @@
3398
3446
  },
3399
3447
  "collapsed": {
3400
3448
  "const": true
3449
+ },
3450
+ "tag": {
3451
+ "$ref": "util.json#/$defs/tagNameStats"
3401
3452
  }
3402
3453
  },
3403
3454
  "required": [
@@ -3441,10 +3492,64 @@
3441
3492
  "id": {
3442
3493
  "type": "string"
3443
3494
  },
3495
+ "displayName": {
3496
+ "type": "string"
3497
+ },
3498
+ "hash": {
3499
+ "type": "string"
3500
+ },
3501
+ "style": {
3502
+ "$ref": "#/$defs/_entryDataStyle"
3503
+ },
3504
+ "collapsed": {
3505
+ "const": true
3506
+ },
3444
3507
  "tag": {
3445
- "$ref": "util.json#/$defs/tagNameStatsAbbreviation"
3508
+ "const": "deity"
3446
3509
  },
3447
- "abbreviation": {
3510
+ "pantheon": {
3511
+ "type": "string"
3512
+ }
3513
+ },
3514
+ "required": [
3515
+ "type",
3516
+ "tag",
3517
+ "name"
3518
+ ],
3519
+ "additionalProperties": false
3520
+ },
3521
+ {
3522
+ "type": "object",
3523
+ "properties": {
3524
+ "name": {
3525
+ "type": "string"
3526
+ },
3527
+ "type": {
3528
+ "type": "string",
3529
+ "const": "statblock"
3530
+ },
3531
+ "source": {
3532
+ "$ref": "util.json#/$defs/source"
3533
+ },
3534
+ "page": {
3535
+ "$ref": "util.json#/$defs/page"
3536
+ },
3537
+ "srd": {
3538
+ "$ref": "util.json#/$defs/srd"
3539
+ },
3540
+ "srd52": {
3541
+ "$ref": "util.json#/$defs/srd"
3542
+ },
3543
+ "basicRules": {
3544
+ "$ref": "util.json#/$defs/basicRules"
3545
+ },
3546
+ "freeRules2024": {
3547
+ "$ref": "util.json#/$defs/basicRules"
3548
+ },
3549
+ "data": {
3550
+ "$ref": "#/$defs/_entryDataData"
3551
+ },
3552
+ "id": {
3448
3553
  "type": "string"
3449
3554
  },
3450
3555
  "displayName": {
@@ -3458,6 +3563,12 @@
3458
3563
  },
3459
3564
  "collapsed": {
3460
3565
  "const": true
3566
+ },
3567
+ "tag": {
3568
+ "$ref": "util.json#/$defs/tagNameStatsAbbreviation"
3569
+ },
3570
+ "abbreviation": {
3571
+ "type": "string"
3461
3572
  }
3462
3573
  },
3463
3574
  "required": [
@@ -3501,9 +3612,6 @@
3501
3612
  "id": {
3502
3613
  "type": "string"
3503
3614
  },
3504
- "prop": {
3505
- "$ref": "util.json#/$defs/propNameStats"
3506
- },
3507
3615
  "displayName": {
3508
3616
  "type": "string"
3509
3617
  },
@@ -3515,6 +3623,9 @@
3515
3623
  },
3516
3624
  "collapsed": {
3517
3625
  "const": true
3626
+ },
3627
+ "prop": {
3628
+ "$ref": "util.json#/$defs/propNameStats"
3518
3629
  }
3519
3630
  },
3520
3631
  "required": [
@@ -3,7 +3,7 @@
3
3
  "$id": "items-shared.json",
4
4
  "title": "Shared Item Schema",
5
5
  "description": "Shared item definitions to be used in item schemas.",
6
- "version": "1.1.4",
6
+ "version": "1.1.5",
7
7
  "$defs": {
8
8
  "_itemModifySpeedEqual": {
9
9
  "type": "string",
@@ -315,7 +315,27 @@
315
315
  "itemMastery": {
316
316
  "type": "array",
317
317
  "items": {
318
- "type": "string"
318
+ "oneOf": [
319
+ {
320
+ "type": "string"
321
+ },
322
+ {
323
+ "type": "object",
324
+ "properties": {
325
+ "uid": {
326
+ "type": "string"
327
+ },
328
+ "note": {
329
+ "type": "string"
330
+ }
331
+ },
332
+ "additionalProperties": false,
333
+ "required": [
334
+ "uid",
335
+ "note"
336
+ ]
337
+ }
338
+ ]
319
339
  },
320
340
  "minItems": 1,
321
341
  "uniqueItems": true
@@ -193,7 +193,6 @@
193
193
  "boon",
194
194
  "trap",
195
195
  "hazard",
196
- "deity",
197
196
  "variantrule",
198
197
  "charoption",
199
198
  "vehicle",
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.9.1",
6
+ "version": "1.9.2",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -51,6 +51,57 @@
51
51
  }
52
52
  ]
53
53
  },
54
+ "_entryStatblockBase": {
55
+ "type": "object",
56
+ "properties": {
57
+ "name": {
58
+ "type": "string"
59
+ },
60
+ "type": {
61
+ "type": "string",
62
+ "const": "statblock"
63
+ },
64
+ "source": {
65
+ "$ref": "util.json#/$defs/source"
66
+ },
67
+ "page": {
68
+ "$ref": "util.json#/$defs/page"
69
+ },
70
+ "srd": {
71
+ "$ref": "util.json#/$defs/srd"
72
+ },
73
+ "srd52": {
74
+ "$ref": "util.json#/$defs/srd"
75
+ },
76
+ "basicRules": {
77
+ "$ref": "util.json#/$defs/basicRules"
78
+ },
79
+ "freeRules2024": {
80
+ "$ref": "util.json#/$defs/basicRules"
81
+ },
82
+ "data": {
83
+ "$ref": "#/$defs/_entryDataData"
84
+ },
85
+ "id": {
86
+ "type": "string"
87
+ },
88
+ "displayName": {
89
+ "type": "string"
90
+ },
91
+ "hash": {
92
+ "type": "string"
93
+ },
94
+ "style": {
95
+ "$ref": "#/$defs/_entryDataStyle"
96
+ },
97
+ "collapsed": {
98
+ "const": true
99
+ }
100
+ },
101
+ "required": [
102
+ "type"
103
+ ]
104
+ },
54
105
  "mediaHrefInternal": {
55
106
  "type": "object",
56
107
  "properties": {
@@ -3384,9 +3435,6 @@
3384
3435
  "id": {
3385
3436
  "type": "string"
3386
3437
  },
3387
- "tag": {
3388
- "$ref": "util.json#/$defs/tagNameStats"
3389
- },
3390
3438
  "displayName": {
3391
3439
  "type": "string"
3392
3440
  },
@@ -3398,6 +3446,9 @@
3398
3446
  },
3399
3447
  "collapsed": {
3400
3448
  "const": true
3449
+ },
3450
+ "tag": {
3451
+ "$ref": "util.json#/$defs/tagNameStats"
3401
3452
  }
3402
3453
  },
3403
3454
  "required": [
@@ -3441,10 +3492,64 @@
3441
3492
  "id": {
3442
3493
  "type": "string"
3443
3494
  },
3495
+ "displayName": {
3496
+ "type": "string"
3497
+ },
3498
+ "hash": {
3499
+ "type": "string"
3500
+ },
3501
+ "style": {
3502
+ "$ref": "#/$defs/_entryDataStyle"
3503
+ },
3504
+ "collapsed": {
3505
+ "const": true
3506
+ },
3444
3507
  "tag": {
3445
- "$ref": "util.json#/$defs/tagNameStatsAbbreviation"
3508
+ "const": "deity"
3446
3509
  },
3447
- "abbreviation": {
3510
+ "pantheon": {
3511
+ "type": "string"
3512
+ }
3513
+ },
3514
+ "required": [
3515
+ "type",
3516
+ "tag",
3517
+ "name"
3518
+ ],
3519
+ "additionalProperties": false
3520
+ },
3521
+ {
3522
+ "type": "object",
3523
+ "properties": {
3524
+ "name": {
3525
+ "type": "string"
3526
+ },
3527
+ "type": {
3528
+ "type": "string",
3529
+ "const": "statblock"
3530
+ },
3531
+ "source": {
3532
+ "$ref": "util.json#/$defs/source"
3533
+ },
3534
+ "page": {
3535
+ "$ref": "util.json#/$defs/page"
3536
+ },
3537
+ "srd": {
3538
+ "$ref": "util.json#/$defs/srd"
3539
+ },
3540
+ "srd52": {
3541
+ "$ref": "util.json#/$defs/srd"
3542
+ },
3543
+ "basicRules": {
3544
+ "$ref": "util.json#/$defs/basicRules"
3545
+ },
3546
+ "freeRules2024": {
3547
+ "$ref": "util.json#/$defs/basicRules"
3548
+ },
3549
+ "data": {
3550
+ "$ref": "#/$defs/_entryDataData"
3551
+ },
3552
+ "id": {
3448
3553
  "type": "string"
3449
3554
  },
3450
3555
  "displayName": {
@@ -3458,6 +3563,12 @@
3458
3563
  },
3459
3564
  "collapsed": {
3460
3565
  "const": true
3566
+ },
3567
+ "tag": {
3568
+ "$ref": "util.json#/$defs/tagNameStatsAbbreviation"
3569
+ },
3570
+ "abbreviation": {
3571
+ "type": "string"
3461
3572
  }
3462
3573
  },
3463
3574
  "required": [
@@ -3501,9 +3612,6 @@
3501
3612
  "id": {
3502
3613
  "type": "string"
3503
3614
  },
3504
- "prop": {
3505
- "$ref": "util.json#/$defs/propNameStats"
3506
- },
3507
3615
  "displayName": {
3508
3616
  "type": "string"
3509
3617
  },
@@ -3515,6 +3623,9 @@
3515
3623
  },
3516
3624
  "collapsed": {
3517
3625
  "const": true
3626
+ },
3627
+ "prop": {
3628
+ "$ref": "util.json#/$defs/propNameStats"
3518
3629
  }
3519
3630
  },
3520
3631
  "required": [
@@ -3,7 +3,7 @@
3
3
  "$id": "items-shared.json",
4
4
  "title": "Shared Item Schema",
5
5
  "description": "Shared item definitions to be used in item schemas.",
6
- "version": "1.1.4",
6
+ "version": "1.1.5",
7
7
  "$defs": {
8
8
  "_itemModifySpeedEqual": {
9
9
  "type": "string",
@@ -315,7 +315,27 @@
315
315
  "itemMastery": {
316
316
  "type": "array",
317
317
  "items": {
318
- "type": "string"
318
+ "oneOf": [
319
+ {
320
+ "type": "string"
321
+ },
322
+ {
323
+ "type": "object",
324
+ "properties": {
325
+ "uid": {
326
+ "type": "string"
327
+ },
328
+ "note": {
329
+ "type": "string"
330
+ }
331
+ },
332
+ "additionalProperties": false,
333
+ "required": [
334
+ "uid",
335
+ "note"
336
+ ]
337
+ }
338
+ ]
319
339
  },
320
340
  "minItems": 1,
321
341
  "uniqueItems": true
@@ -193,7 +193,6 @@
193
193
  "boon",
194
194
  "trap",
195
195
  "hazard",
196
- "deity",
197
196
  "variantrule",
198
197
  "charoption",
199
198
  "vehicle",
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.9.1",
6
+ "version": "1.9.2",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -51,6 +51,57 @@
51
51
  }
52
52
  ]
53
53
  },
54
+ "_entryStatblockBase": {
55
+ "type": "object",
56
+ "properties": {
57
+ "name": {
58
+ "type": "string"
59
+ },
60
+ "type": {
61
+ "type": "string",
62
+ "const": "statblock"
63
+ },
64
+ "source": {
65
+ "$ref": "util.json#/$defs/source"
66
+ },
67
+ "page": {
68
+ "$ref": "util.json#/$defs/page"
69
+ },
70
+ "srd": {
71
+ "$ref": "util.json#/$defs/srd"
72
+ },
73
+ "srd52": {
74
+ "$ref": "util.json#/$defs/srd"
75
+ },
76
+ "basicRules": {
77
+ "$ref": "util.json#/$defs/basicRules"
78
+ },
79
+ "freeRules2024": {
80
+ "$ref": "util.json#/$defs/basicRules"
81
+ },
82
+ "data": {
83
+ "$ref": "#/$defs/_entryDataData"
84
+ },
85
+ "id": {
86
+ "type": "string"
87
+ },
88
+ "displayName": {
89
+ "type": "string"
90
+ },
91
+ "hash": {
92
+ "type": "string"
93
+ },
94
+ "style": {
95
+ "$ref": "#/$defs/_entryDataStyle"
96
+ },
97
+ "collapsed": {
98
+ "const": true
99
+ }
100
+ },
101
+ "required": [
102
+ "type"
103
+ ]
104
+ },
54
105
  "mediaHrefInternal": {
55
106
  "type": "object",
56
107
  "properties": {
@@ -3335,9 +3386,6 @@
3335
3386
  "id": {
3336
3387
  "type": "string"
3337
3388
  },
3338
- "tag": {
3339
- "$ref": "util.json#/$defs/tagNameStats"
3340
- },
3341
3389
  "displayName": {
3342
3390
  "type": "string"
3343
3391
  },
@@ -3349,6 +3397,9 @@
3349
3397
  },
3350
3398
  "collapsed": {
3351
3399
  "const": true
3400
+ },
3401
+ "tag": {
3402
+ "$ref": "util.json#/$defs/tagNameStats"
3352
3403
  }
3353
3404
  },
3354
3405
  "required": [
@@ -3392,10 +3443,64 @@
3392
3443
  "id": {
3393
3444
  "type": "string"
3394
3445
  },
3446
+ "displayName": {
3447
+ "type": "string"
3448
+ },
3449
+ "hash": {
3450
+ "type": "string"
3451
+ },
3452
+ "style": {
3453
+ "$ref": "#/$defs/_entryDataStyle"
3454
+ },
3455
+ "collapsed": {
3456
+ "const": true
3457
+ },
3395
3458
  "tag": {
3396
- "$ref": "util.json#/$defs/tagNameStatsAbbreviation"
3459
+ "const": "deity"
3397
3460
  },
3398
- "abbreviation": {
3461
+ "pantheon": {
3462
+ "type": "string"
3463
+ }
3464
+ },
3465
+ "required": [
3466
+ "type",
3467
+ "tag",
3468
+ "name"
3469
+ ],
3470
+ "additionalProperties": false
3471
+ },
3472
+ {
3473
+ "type": "object",
3474
+ "properties": {
3475
+ "name": {
3476
+ "type": "string"
3477
+ },
3478
+ "type": {
3479
+ "type": "string",
3480
+ "const": "statblock"
3481
+ },
3482
+ "source": {
3483
+ "$ref": "util.json#/$defs/source"
3484
+ },
3485
+ "page": {
3486
+ "$ref": "util.json#/$defs/page"
3487
+ },
3488
+ "srd": {
3489
+ "$ref": "util.json#/$defs/srd"
3490
+ },
3491
+ "srd52": {
3492
+ "$ref": "util.json#/$defs/srd"
3493
+ },
3494
+ "basicRules": {
3495
+ "$ref": "util.json#/$defs/basicRules"
3496
+ },
3497
+ "freeRules2024": {
3498
+ "$ref": "util.json#/$defs/basicRules"
3499
+ },
3500
+ "data": {
3501
+ "$ref": "#/$defs/_entryDataData"
3502
+ },
3503
+ "id": {
3399
3504
  "type": "string"
3400
3505
  },
3401
3506
  "displayName": {
@@ -3409,6 +3514,12 @@
3409
3514
  },
3410
3515
  "collapsed": {
3411
3516
  "const": true
3517
+ },
3518
+ "tag": {
3519
+ "$ref": "util.json#/$defs/tagNameStatsAbbreviation"
3520
+ },
3521
+ "abbreviation": {
3522
+ "type": "string"
3412
3523
  }
3413
3524
  },
3414
3525
  "required": [
@@ -3452,9 +3563,6 @@
3452
3563
  "id": {
3453
3564
  "type": "string"
3454
3565
  },
3455
- "prop": {
3456
- "$ref": "util.json#/$defs/propNameStats"
3457
- },
3458
3566
  "displayName": {
3459
3567
  "type": "string"
3460
3568
  },
@@ -3466,6 +3574,9 @@
3466
3574
  },
3467
3575
  "collapsed": {
3468
3576
  "const": true
3577
+ },
3578
+ "prop": {
3579
+ "$ref": "util.json#/$defs/propNameStats"
3469
3580
  }
3470
3581
  },
3471
3582
  "required": [
@@ -3,7 +3,7 @@
3
3
  "$id": "items-shared.json",
4
4
  "title": "Shared Item Schema",
5
5
  "description": "Shared item definitions to be used in item schemas.",
6
- "version": "1.1.4",
6
+ "version": "1.1.5",
7
7
  "$defs": {
8
8
  "_itemModifySpeedEqual": {
9
9
  "type": "string",
@@ -315,7 +315,27 @@
315
315
  "itemMastery": {
316
316
  "type": "array",
317
317
  "items": {
318
- "type": "string"
318
+ "oneOf": [
319
+ {
320
+ "type": "string"
321
+ },
322
+ {
323
+ "type": "object",
324
+ "properties": {
325
+ "uid": {
326
+ "type": "string"
327
+ },
328
+ "note": {
329
+ "type": "string"
330
+ }
331
+ },
332
+ "additionalProperties": false,
333
+ "required": [
334
+ "uid",
335
+ "note"
336
+ ]
337
+ }
338
+ ]
319
339
  },
320
340
  "minItems": 1,
321
341
  "uniqueItems": true
@@ -177,7 +177,6 @@
177
177
  "boon",
178
178
  "trap",
179
179
  "hazard",
180
- "deity",
181
180
  "variantrule",
182
181
  "charoption",
183
182
  "vehicle",