5etools-utils 0.12.45 → 0.12.47

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.45",
3
+ "version": "0.12.47",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "2.12.3",
3
+ "version": "2.12.4",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -124,6 +124,15 @@
124
124
  "minItems": 20,
125
125
  "maxItems": 20
126
126
  },
127
+ "preparedSpellsChange": {
128
+ "description": "The event at which a character can change their prepared spells.",
129
+ "type": "string",
130
+ "enum": [
131
+ "restShort",
132
+ "restLong",
133
+ "level"
134
+ ]
135
+ },
127
136
  "spellsKnownProgression": {
128
137
  "type": "array",
129
138
  "items": {
@@ -817,6 +826,9 @@
817
826
  "preparedSpellsProgression": {
818
827
  "$ref": "#/$defs/preparedSpellsProgression"
819
828
  },
829
+ "preparedSpellsChange": {
830
+ "$ref": "#/$defs/preparedSpellsChange"
831
+ },
820
832
  "spellsKnownProgression": {
821
833
  "$ref": "#/$defs/spellsKnownProgression"
822
834
  },
@@ -1026,6 +1038,9 @@
1026
1038
  "preparedSpellsProgression": {
1027
1039
  "$ref": "#/$defs/preparedSpellsProgression"
1028
1040
  },
1041
+ "preparedSpellsChange": {
1042
+ "$ref": "#/$defs/preparedSpellsChange"
1043
+ },
1029
1044
  "spellsKnownProgression": {
1030
1045
  "$ref": "#/$defs/spellsKnownProgression"
1031
1046
  },
@@ -1235,6 +1250,9 @@
1235
1250
  "preparedSpellsProgression": {
1236
1251
  "$ref": "#/$defs/preparedSpellsProgression"
1237
1252
  },
1253
+ "preparedSpellsChange": {
1254
+ "$ref": "#/$defs/preparedSpellsChange"
1255
+ },
1238
1256
  "spellsKnownProgression": {
1239
1257
  "$ref": "#/$defs/spellsKnownProgression"
1240
1258
  },
@@ -1634,6 +1652,9 @@
1634
1652
  "preparedSpellsProgression": {
1635
1653
  "$ref": "#/$defs/preparedSpellsProgression"
1636
1654
  },
1655
+ "preparedSpellsChange": {
1656
+ "$ref": "#/$defs/preparedSpellsChange"
1657
+ },
1637
1658
  "spellsKnownProgression": {
1638
1659
  "$ref": "#/$defs/spellsKnownProgression"
1639
1660
  },
@@ -1938,6 +1959,9 @@
1938
1959
  "preparedSpellsProgression": {
1939
1960
  "$ref": "#/$defs/preparedSpellsProgression"
1940
1961
  },
1962
+ "preparedSpellsChange": {
1963
+ "$ref": "#/$defs/preparedSpellsChange"
1964
+ },
1941
1965
  "spellsKnownProgression": {
1942
1966
  "$ref": "#/$defs/spellsKnownProgression"
1943
1967
  },
@@ -2245,6 +2269,9 @@
2245
2269
  "preparedSpellsProgression": {
2246
2270
  "$ref": "#/$defs/preparedSpellsProgression"
2247
2271
  },
2272
+ "preparedSpellsChange": {
2273
+ "$ref": "#/$defs/preparedSpellsChange"
2274
+ },
2248
2275
  "spellsKnownProgression": {
2249
2276
  "$ref": "#/$defs/spellsKnownProgression"
2250
2277
  },
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.23",
6
+ "version": "1.8.24",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -3353,6 +3353,66 @@
3353
3353
  ],
3354
3354
  "additionalProperties": false
3355
3355
  },
3356
+ {
3357
+ "type": "object",
3358
+ "properties": {
3359
+ "name": {
3360
+ "type": "string"
3361
+ },
3362
+ "type": {
3363
+ "type": "string",
3364
+ "const": "statblock"
3365
+ },
3366
+ "source": {
3367
+ "$ref": "util.json#/$defs/source"
3368
+ },
3369
+ "page": {
3370
+ "$ref": "util.json#/$defs/page"
3371
+ },
3372
+ "srd": {
3373
+ "$ref": "util.json#/$defs/srd"
3374
+ },
3375
+ "srd52": {
3376
+ "$ref": "util.json#/$defs/srd"
3377
+ },
3378
+ "basicRules": {
3379
+ "$ref": "util.json#/$defs/basicRules"
3380
+ },
3381
+ "freeRules2024": {
3382
+ "$ref": "util.json#/$defs/basicRules"
3383
+ },
3384
+ "data": {
3385
+ "$ref": "#/$defs/_entryDataData"
3386
+ },
3387
+ "id": {
3388
+ "type": "string"
3389
+ },
3390
+ "tag": {
3391
+ "$ref": "util.json#/$defs/tagNameStatsAbbreviation"
3392
+ },
3393
+ "abbreviation": {
3394
+ "type": "string"
3395
+ },
3396
+ "displayName": {
3397
+ "type": "string"
3398
+ },
3399
+ "hash": {
3400
+ "type": "string"
3401
+ },
3402
+ "style": {
3403
+ "$ref": "#/$defs/_entryDataStyle"
3404
+ },
3405
+ "collapsed": {
3406
+ "const": true
3407
+ }
3408
+ },
3409
+ "required": [
3410
+ "type",
3411
+ "tag",
3412
+ "abbreviation"
3413
+ ],
3414
+ "additionalProperties": false
3415
+ },
3356
3416
  {
3357
3417
  "type": "object",
3358
3418
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.26",
3
+ "version": "1.10.27",
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": {
@@ -296,12 +296,17 @@
296
296
  "invalid",
297
297
  "deprecated"
298
298
  ]
299
+ },
300
+ "edition": {
301
+ "description": "The rules edition this homebrew is compatible with. If ambiguous, \"classic\" should be specified.",
302
+ "$ref": "util-edition.json#/$defs/edition"
299
303
  }
300
304
  },
301
305
  "required": [
302
306
  "sources",
303
307
  "dateAdded",
304
- "dateLastModified"
308
+ "dateLastModified",
309
+ "edition"
305
310
  ],
306
311
  "additionalProperties": false
307
312
  },
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.0.2",
5
+ "version": "1.0.3",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -855,6 +855,29 @@
855
855
  "scalar"
856
856
  ],
857
857
  "additionalProperties": false
858
+ },
859
+ {
860
+ "type": "object",
861
+ "properties": {
862
+ "mode": {
863
+ "const": "prefixSuffixStringProp"
864
+ },
865
+ "prop": {
866
+ "type": "string"
867
+ },
868
+ "prefix": {
869
+ "type": "string"
870
+ },
871
+ "suffix": {
872
+ "type": "string"
873
+ }
874
+ },
875
+ "required": [
876
+ "mode",
877
+ "prop"
878
+ ],
879
+ "minProperties": 3,
880
+ "additionalProperties": false
858
881
  }
859
882
  ]
860
883
  },
@@ -3,7 +3,7 @@
3
3
  "$id": "util.json",
4
4
  "title": "Util",
5
5
  "description": "Utility definitions to be used in other schemas.",
6
- "version": "1.17.10",
6
+ "version": "1.17.11",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -212,6 +212,12 @@
212
212
  "card"
213
213
  ]
214
214
  },
215
+ "tagNameStatsAbbreviation": {
216
+ "type": "string",
217
+ "enum": [
218
+ "itemProperty"
219
+ ]
220
+ },
215
221
  "propNameStats": {
216
222
  "type": "string",
217
223
  "enum": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "2.12.3",
3
+ "version": "2.12.4",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -124,6 +124,15 @@
124
124
  "minItems": 20,
125
125
  "maxItems": 20
126
126
  },
127
+ "preparedSpellsChange": {
128
+ "description": "The event at which a character can change their prepared spells.",
129
+ "type": "string",
130
+ "enum": [
131
+ "restShort",
132
+ "restLong",
133
+ "level"
134
+ ]
135
+ },
127
136
  "spellsKnownProgression": {
128
137
  "type": "array",
129
138
  "items": {
@@ -817,6 +826,9 @@
817
826
  "preparedSpellsProgression": {
818
827
  "$ref": "#/$defs/preparedSpellsProgression"
819
828
  },
829
+ "preparedSpellsChange": {
830
+ "$ref": "#/$defs/preparedSpellsChange"
831
+ },
820
832
  "spellsKnownProgression": {
821
833
  "$ref": "#/$defs/spellsKnownProgression"
822
834
  },
@@ -1026,6 +1038,9 @@
1026
1038
  "preparedSpellsProgression": {
1027
1039
  "$ref": "#/$defs/preparedSpellsProgression"
1028
1040
  },
1041
+ "preparedSpellsChange": {
1042
+ "$ref": "#/$defs/preparedSpellsChange"
1043
+ },
1029
1044
  "spellsKnownProgression": {
1030
1045
  "$ref": "#/$defs/spellsKnownProgression"
1031
1046
  },
@@ -1235,6 +1250,9 @@
1235
1250
  "preparedSpellsProgression": {
1236
1251
  "$ref": "#/$defs/preparedSpellsProgression"
1237
1252
  },
1253
+ "preparedSpellsChange": {
1254
+ "$ref": "#/$defs/preparedSpellsChange"
1255
+ },
1238
1256
  "spellsKnownProgression": {
1239
1257
  "$ref": "#/$defs/spellsKnownProgression"
1240
1258
  },
@@ -1634,6 +1652,9 @@
1634
1652
  "preparedSpellsProgression": {
1635
1653
  "$ref": "#/$defs/preparedSpellsProgression"
1636
1654
  },
1655
+ "preparedSpellsChange": {
1656
+ "$ref": "#/$defs/preparedSpellsChange"
1657
+ },
1637
1658
  "spellsKnownProgression": {
1638
1659
  "$ref": "#/$defs/spellsKnownProgression"
1639
1660
  },
@@ -1938,6 +1959,9 @@
1938
1959
  "preparedSpellsProgression": {
1939
1960
  "$ref": "#/$defs/preparedSpellsProgression"
1940
1961
  },
1962
+ "preparedSpellsChange": {
1963
+ "$ref": "#/$defs/preparedSpellsChange"
1964
+ },
1941
1965
  "spellsKnownProgression": {
1942
1966
  "$ref": "#/$defs/spellsKnownProgression"
1943
1967
  },
@@ -2245,6 +2269,9 @@
2245
2269
  "preparedSpellsProgression": {
2246
2270
  "$ref": "#/$defs/preparedSpellsProgression"
2247
2271
  },
2272
+ "preparedSpellsChange": {
2273
+ "$ref": "#/$defs/preparedSpellsChange"
2274
+ },
2248
2275
  "spellsKnownProgression": {
2249
2276
  "$ref": "#/$defs/spellsKnownProgression"
2250
2277
  },
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.23",
6
+ "version": "1.8.24",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -3353,6 +3353,66 @@
3353
3353
  ],
3354
3354
  "additionalProperties": false
3355
3355
  },
3356
+ {
3357
+ "type": "object",
3358
+ "properties": {
3359
+ "name": {
3360
+ "type": "string"
3361
+ },
3362
+ "type": {
3363
+ "type": "string",
3364
+ "const": "statblock"
3365
+ },
3366
+ "source": {
3367
+ "$ref": "util.json#/$defs/source"
3368
+ },
3369
+ "page": {
3370
+ "$ref": "util.json#/$defs/page"
3371
+ },
3372
+ "srd": {
3373
+ "$ref": "util.json#/$defs/srd"
3374
+ },
3375
+ "srd52": {
3376
+ "$ref": "util.json#/$defs/srd"
3377
+ },
3378
+ "basicRules": {
3379
+ "$ref": "util.json#/$defs/basicRules"
3380
+ },
3381
+ "freeRules2024": {
3382
+ "$ref": "util.json#/$defs/basicRules"
3383
+ },
3384
+ "data": {
3385
+ "$ref": "#/$defs/_entryDataData"
3386
+ },
3387
+ "id": {
3388
+ "type": "string"
3389
+ },
3390
+ "tag": {
3391
+ "$ref": "util.json#/$defs/tagNameStatsAbbreviation"
3392
+ },
3393
+ "abbreviation": {
3394
+ "type": "string"
3395
+ },
3396
+ "displayName": {
3397
+ "type": "string"
3398
+ },
3399
+ "hash": {
3400
+ "type": "string"
3401
+ },
3402
+ "style": {
3403
+ "$ref": "#/$defs/_entryDataStyle"
3404
+ },
3405
+ "collapsed": {
3406
+ "const": true
3407
+ }
3408
+ },
3409
+ "required": [
3410
+ "type",
3411
+ "tag",
3412
+ "abbreviation"
3413
+ ],
3414
+ "additionalProperties": false
3415
+ },
3356
3416
  {
3357
3417
  "type": "object",
3358
3418
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.26",
3
+ "version": "1.10.27",
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": {
@@ -294,12 +294,17 @@
294
294
  "invalid",
295
295
  "deprecated"
296
296
  ]
297
+ },
298
+ "edition": {
299
+ "description": "The rules edition this homebrew is compatible with. If ambiguous, \"classic\" should be specified.",
300
+ "$ref": "util-edition.json#/$defs/edition"
297
301
  }
298
302
  },
299
303
  "required": [
300
304
  "sources",
301
305
  "dateAdded",
302
- "dateLastModified"
306
+ "dateLastModified",
307
+ "edition"
303
308
  ],
304
309
  "additionalProperties": false
305
310
  },
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.0.2",
5
+ "version": "1.0.3",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -855,6 +855,29 @@
855
855
  "scalar"
856
856
  ],
857
857
  "additionalProperties": false
858
+ },
859
+ {
860
+ "type": "object",
861
+ "properties": {
862
+ "mode": {
863
+ "const": "prefixSuffixStringProp"
864
+ },
865
+ "prop": {
866
+ "type": "string"
867
+ },
868
+ "prefix": {
869
+ "type": "string"
870
+ },
871
+ "suffix": {
872
+ "type": "string"
873
+ }
874
+ },
875
+ "required": [
876
+ "mode",
877
+ "prop"
878
+ ],
879
+ "minProperties": 3,
880
+ "additionalProperties": false
858
881
  }
859
882
  ]
860
883
  },
@@ -3,7 +3,7 @@
3
3
  "$id": "util.json",
4
4
  "title": "Util",
5
5
  "description": "Utility definitions to be used in other schemas.",
6
- "version": "1.17.10",
6
+ "version": "1.17.11",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -212,6 +212,12 @@
212
212
  "card"
213
213
  ]
214
214
  },
215
+ "tagNameStatsAbbreviation": {
216
+ "type": "string",
217
+ "enum": [
218
+ "itemProperty"
219
+ ]
220
+ },
215
221
  "propNameStats": {
216
222
  "type": "string",
217
223
  "enum": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "2.12.3",
3
+ "version": "2.12.4",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -124,6 +124,15 @@
124
124
  "minItems": 20,
125
125
  "maxItems": 20
126
126
  },
127
+ "preparedSpellsChange": {
128
+ "description": "The event at which a character can change their prepared spells.",
129
+ "type": "string",
130
+ "enum": [
131
+ "restShort",
132
+ "restLong",
133
+ "level"
134
+ ]
135
+ },
127
136
  "spellsKnownProgression": {
128
137
  "type": "array",
129
138
  "items": {
@@ -637,6 +646,9 @@
637
646
  "preparedSpellsProgression": {
638
647
  "$ref": "#/$defs/preparedSpellsProgression"
639
648
  },
649
+ "preparedSpellsChange": {
650
+ "$ref": "#/$defs/preparedSpellsChange"
651
+ },
640
652
  "spellsKnownProgression": {
641
653
  "$ref": "#/$defs/spellsKnownProgression"
642
654
  },
@@ -807,6 +819,9 @@
807
819
  "preparedSpellsProgression": {
808
820
  "$ref": "#/$defs/preparedSpellsProgression"
809
821
  },
822
+ "preparedSpellsChange": {
823
+ "$ref": "#/$defs/preparedSpellsChange"
824
+ },
810
825
  "spellsKnownProgression": {
811
826
  "$ref": "#/$defs/spellsKnownProgression"
812
827
  },
@@ -977,6 +992,9 @@
977
992
  "preparedSpellsProgression": {
978
993
  "$ref": "#/$defs/preparedSpellsProgression"
979
994
  },
995
+ "preparedSpellsChange": {
996
+ "$ref": "#/$defs/preparedSpellsChange"
997
+ },
980
998
  "spellsKnownProgression": {
981
999
  "$ref": "#/$defs/spellsKnownProgression"
982
1000
  },
@@ -1333,6 +1351,9 @@
1333
1351
  "preparedSpellsProgression": {
1334
1352
  "$ref": "#/$defs/preparedSpellsProgression"
1335
1353
  },
1354
+ "preparedSpellsChange": {
1355
+ "$ref": "#/$defs/preparedSpellsChange"
1356
+ },
1336
1357
  "spellsKnownProgression": {
1337
1358
  "$ref": "#/$defs/spellsKnownProgression"
1338
1359
  },
@@ -1608,6 +1629,9 @@
1608
1629
  "preparedSpellsProgression": {
1609
1630
  "$ref": "#/$defs/preparedSpellsProgression"
1610
1631
  },
1632
+ "preparedSpellsChange": {
1633
+ "$ref": "#/$defs/preparedSpellsChange"
1634
+ },
1611
1635
  "spellsKnownProgression": {
1612
1636
  "$ref": "#/$defs/spellsKnownProgression"
1613
1637
  },
@@ -1886,6 +1910,9 @@
1886
1910
  "preparedSpellsProgression": {
1887
1911
  "$ref": "#/$defs/preparedSpellsProgression"
1888
1912
  },
1913
+ "preparedSpellsChange": {
1914
+ "$ref": "#/$defs/preparedSpellsChange"
1915
+ },
1889
1916
  "spellsKnownProgression": {
1890
1917
  "$ref": "#/$defs/spellsKnownProgression"
1891
1918
  },
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.23",
6
+ "version": "1.8.24",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -3304,6 +3304,66 @@
3304
3304
  ],
3305
3305
  "additionalProperties": false
3306
3306
  },
3307
+ {
3308
+ "type": "object",
3309
+ "properties": {
3310
+ "name": {
3311
+ "type": "string"
3312
+ },
3313
+ "type": {
3314
+ "type": "string",
3315
+ "const": "statblock"
3316
+ },
3317
+ "source": {
3318
+ "$ref": "util.json#/$defs/source"
3319
+ },
3320
+ "page": {
3321
+ "$ref": "util.json#/$defs/page"
3322
+ },
3323
+ "srd": {
3324
+ "$ref": "util.json#/$defs/srd"
3325
+ },
3326
+ "srd52": {
3327
+ "$ref": "util.json#/$defs/srd"
3328
+ },
3329
+ "basicRules": {
3330
+ "$ref": "util.json#/$defs/basicRules"
3331
+ },
3332
+ "freeRules2024": {
3333
+ "$ref": "util.json#/$defs/basicRules"
3334
+ },
3335
+ "data": {
3336
+ "$ref": "#/$defs/_entryDataData"
3337
+ },
3338
+ "id": {
3339
+ "type": "string"
3340
+ },
3341
+ "tag": {
3342
+ "$ref": "util.json#/$defs/tagNameStatsAbbreviation"
3343
+ },
3344
+ "abbreviation": {
3345
+ "type": "string"
3346
+ },
3347
+ "displayName": {
3348
+ "type": "string"
3349
+ },
3350
+ "hash": {
3351
+ "type": "string"
3352
+ },
3353
+ "style": {
3354
+ "$ref": "#/$defs/_entryDataStyle"
3355
+ },
3356
+ "collapsed": {
3357
+ "const": true
3358
+ }
3359
+ },
3360
+ "required": [
3361
+ "type",
3362
+ "tag",
3363
+ "abbreviation"
3364
+ ],
3365
+ "additionalProperties": false
3366
+ },
3307
3367
  {
3308
3368
  "type": "object",
3309
3369
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.26",
3
+ "version": "1.10.27",
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": {
@@ -296,12 +296,17 @@
296
296
  "invalid",
297
297
  "deprecated"
298
298
  ]
299
+ },
300
+ "edition": {
301
+ "description": "The rules edition this homebrew is compatible with. If ambiguous, \"classic\" should be specified.",
302
+ "$ref": "util-edition.json#/$defs/edition"
299
303
  }
300
304
  },
301
305
  "required": [
302
306
  "sources",
303
307
  "dateAdded",
304
- "dateLastModified"
308
+ "dateLastModified",
309
+ "edition"
305
310
  ],
306
311
  "additionalProperties": false
307
312
  },