5etools-utils 0.17.18 → 0.17.19

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.17.18",
3
+ "version": "0.17.19",
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.11.0",
6
+ "version": "1.11.1",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -1182,175 +1182,358 @@
1182
1182
  "additionalProperties": false
1183
1183
  },
1184
1184
  "abilityGeneric": {
1185
- "type": "object",
1186
- "properties": {
1187
- "name": {
1188
- "type": "string"
1189
- },
1190
- "type": {
1191
- "type": "string",
1192
- "const": "abilityGeneric"
1193
- },
1194
- "source": {
1195
- "$ref": "util.json#/$defs/source"
1196
- },
1197
- "page": {
1198
- "$ref": "util.json#/$defs/page"
1199
- },
1200
- "data": {
1201
- "$ref": "#/$defs/_entryDataData"
1202
- },
1203
- "id": {
1204
- "type": "string"
1205
- },
1206
- "text": {
1207
- "type": "string"
1185
+ "anyOf": [
1186
+ {
1187
+ "type": "object",
1188
+ "deprecated": true,
1189
+ "properties": {
1190
+ "name": {
1191
+ "type": "string"
1192
+ },
1193
+ "type": {
1194
+ "type": "string",
1195
+ "const": "abilityGeneric"
1196
+ },
1197
+ "source": {
1198
+ "$ref": "util.json#/$defs/source"
1199
+ },
1200
+ "page": {
1201
+ "$ref": "util.json#/$defs/page"
1202
+ },
1203
+ "data": {
1204
+ "$ref": "#/$defs/_entryDataData"
1205
+ },
1206
+ "id": {
1207
+ "type": "string"
1208
+ },
1209
+ "text": {
1210
+ "type": "string"
1211
+ },
1212
+ "attributes": {
1213
+ "type": "array",
1214
+ "items": {
1215
+ "$ref": "util.json#/$defs/abilityScoreAbbreviation"
1216
+ }
1217
+ }
1218
+ },
1219
+ "required": [
1220
+ "type",
1221
+ "text"
1222
+ ],
1223
+ "additionalProperties": false
1208
1224
  },
1209
- "attributes": {
1210
- "type": "array",
1211
- "items": {
1212
- "$ref": "util.json#/$defs/abilityScoreAbbreviation"
1213
- }
1225
+ {
1226
+ "type": "object",
1227
+ "properties": {
1228
+ "name": {
1229
+ "type": "string"
1230
+ },
1231
+ "type": {
1232
+ "type": "string",
1233
+ "const": "abilityGeneric"
1234
+ },
1235
+ "source": {
1236
+ "$ref": "util.json#/$defs/source"
1237
+ },
1238
+ "page": {
1239
+ "$ref": "util.json#/$defs/page"
1240
+ },
1241
+ "data": {
1242
+ "$ref": "#/$defs/_entryDataData"
1243
+ },
1244
+ "id": {
1245
+ "type": "string"
1246
+ },
1247
+ "entry": {
1248
+ "type": "string"
1249
+ },
1250
+ "attributes": {
1251
+ "type": "array",
1252
+ "items": {
1253
+ "$ref": "util.json#/$defs/abilityScoreAbbreviation"
1254
+ }
1255
+ }
1256
+ },
1257
+ "required": [
1258
+ "type",
1259
+ "entry"
1260
+ ],
1261
+ "additionalProperties": false
1214
1262
  }
1215
- },
1216
- "required": [
1217
- "type",
1218
- "text"
1219
1263
  ],
1220
- "additionalProperties": false
1264
+ "$comment": "Ditto \"entryStatblockInline\"."
1221
1265
  },
1222
1266
  "entryLink": {
1223
- "type": "object",
1224
- "properties": {
1225
- "name": {
1226
- "type": "string"
1227
- },
1228
- "type": {
1229
- "type": "string",
1230
- "const": "link"
1231
- },
1232
- "source": {
1233
- "$ref": "util.json#/$defs/source"
1234
- },
1235
- "page": {
1236
- "$ref": "util.json#/$defs/page"
1237
- },
1238
- "data": {
1239
- "$ref": "#/$defs/_entryDataData"
1240
- },
1241
- "id": {
1242
- "type": "string"
1243
- },
1244
- "text": {
1245
- "type": "string"
1246
- },
1247
- "href": {
1248
- "oneOf": [
1249
- {
1250
- "type": "object",
1251
- "properties": {
1252
- "type": {
1253
- "const": "internal"
1254
- },
1255
- "path": {
1256
- "type": "string"
1257
- },
1258
- "hash": {
1259
- "type": "string"
1260
- },
1261
- "hashPreEncoded": {
1262
- "type": "boolean"
1263
- },
1264
- "subhashes": {
1265
- "type": "array",
1266
- "items": {
1267
- "oneOf": [
1268
- {
1269
- "type": "object",
1270
- "properties": {
1271
- "key": {
1272
- "type": "string"
1273
- },
1274
- "values": {
1275
- "type": "array",
1276
- "items": {
1277
- "type": "string"
1278
- }
1267
+ "anyOf": [
1268
+ {
1269
+ "type": "object",
1270
+ "deprecated": true,
1271
+ "properties": {
1272
+ "name": {
1273
+ "type": "string"
1274
+ },
1275
+ "type": {
1276
+ "type": "string",
1277
+ "const": "link"
1278
+ },
1279
+ "source": {
1280
+ "$ref": "util.json#/$defs/source"
1281
+ },
1282
+ "page": {
1283
+ "$ref": "util.json#/$defs/page"
1284
+ },
1285
+ "data": {
1286
+ "$ref": "#/$defs/_entryDataData"
1287
+ },
1288
+ "id": {
1289
+ "type": "string"
1290
+ },
1291
+ "text": {
1292
+ "type": "string"
1293
+ },
1294
+ "href": {
1295
+ "oneOf": [
1296
+ {
1297
+ "type": "object",
1298
+ "properties": {
1299
+ "type": {
1300
+ "const": "internal"
1301
+ },
1302
+ "path": {
1303
+ "type": "string"
1304
+ },
1305
+ "hash": {
1306
+ "type": "string"
1307
+ },
1308
+ "hashPreEncoded": {
1309
+ "type": "boolean"
1310
+ },
1311
+ "subhashes": {
1312
+ "type": "array",
1313
+ "items": {
1314
+ "oneOf": [
1315
+ {
1316
+ "type": "object",
1317
+ "properties": {
1318
+ "key": {
1319
+ "type": "string"
1320
+ },
1321
+ "values": {
1322
+ "type": "array",
1323
+ "items": {
1324
+ "type": "string"
1325
+ }
1326
+ },
1327
+ "preEncoded": {
1328
+ "type": "boolean"
1329
+ }
1330
+ },
1331
+ "required": [
1332
+ "key",
1333
+ "values"
1334
+ ],
1335
+ "additionalProperties": false
1279
1336
  },
1280
- "preEncoded": {
1281
- "type": "boolean"
1337
+ {
1338
+ "type": "object",
1339
+ "properties": {
1340
+ "key": {
1341
+ "type": "string"
1342
+ },
1343
+ "value": {
1344
+ "type": "string"
1345
+ },
1346
+ "preEncoded": {
1347
+ "type": "boolean"
1348
+ }
1349
+ },
1350
+ "required": [
1351
+ "key",
1352
+ "value"
1353
+ ],
1354
+ "additionalProperties": false
1282
1355
  }
1356
+ ]
1357
+ }
1358
+ },
1359
+ "hover": {
1360
+ "type": "object",
1361
+ "properties": {
1362
+ "page": {
1363
+ "$ref": "util.json#/$defs/page"
1283
1364
  },
1284
- "required": [
1285
- "key",
1286
- "values"
1287
- ],
1288
- "additionalProperties": false
1289
- },
1290
- {
1291
- "type": "object",
1292
- "properties": {
1293
- "key": {
1294
- "type": "string"
1295
- },
1296
- "value": {
1297
- "type": "string"
1298
- },
1299
- "preEncoded": {
1300
- "type": "boolean"
1301
- }
1365
+ "source": {
1366
+ "$ref": "util.json#/$defs/source"
1302
1367
  },
1303
- "required": [
1304
- "key",
1305
- "value"
1306
- ],
1307
- "additionalProperties": false
1308
- }
1309
- ]
1310
- }
1368
+ "hash": {
1369
+ "description": "Optional; overrides the href hash for hover handlers.",
1370
+ "type": "string",
1371
+ "markdownDescription": "Optional; overrides the href hash for hover handlers."
1372
+ },
1373
+ "hashPreEncoded": {
1374
+ "type": "boolean"
1375
+ }
1376
+ },
1377
+ "additionalProperties": false,
1378
+ "required": [
1379
+ "page",
1380
+ "source"
1381
+ ]
1382
+ }
1383
+ },
1384
+ "required": [
1385
+ "path"
1386
+ ],
1387
+ "additionalProperties": false
1311
1388
  },
1312
- "hover": {
1389
+ {
1390
+ "$ref": "#/$defs/mediaHrefExternal"
1391
+ }
1392
+ ]
1393
+ }
1394
+ },
1395
+ "required": [
1396
+ "type",
1397
+ "text",
1398
+ "href"
1399
+ ],
1400
+ "additionalProperties": false
1401
+ },
1402
+ {
1403
+ "type": "object",
1404
+ "properties": {
1405
+ "name": {
1406
+ "type": "string"
1407
+ },
1408
+ "type": {
1409
+ "type": "string",
1410
+ "const": "link"
1411
+ },
1412
+ "source": {
1413
+ "$ref": "util.json#/$defs/source"
1414
+ },
1415
+ "page": {
1416
+ "$ref": "util.json#/$defs/page"
1417
+ },
1418
+ "data": {
1419
+ "$ref": "#/$defs/_entryDataData"
1420
+ },
1421
+ "id": {
1422
+ "type": "string"
1423
+ },
1424
+ "entry": {
1425
+ "type": "string"
1426
+ },
1427
+ "href": {
1428
+ "oneOf": [
1429
+ {
1313
1430
  "type": "object",
1314
1431
  "properties": {
1315
- "page": {
1316
- "$ref": "util.json#/$defs/page"
1432
+ "type": {
1433
+ "const": "internal"
1317
1434
  },
1318
- "source": {
1319
- "$ref": "util.json#/$defs/source"
1435
+ "path": {
1436
+ "type": "string"
1320
1437
  },
1321
1438
  "hash": {
1322
- "description": "Optional; overrides the href hash for hover handlers.",
1323
- "type": "string",
1324
- "markdownDescription": "Optional; overrides the href hash for hover handlers."
1439
+ "type": "string"
1325
1440
  },
1326
1441
  "hashPreEncoded": {
1327
1442
  "type": "boolean"
1443
+ },
1444
+ "subhashes": {
1445
+ "type": "array",
1446
+ "items": {
1447
+ "oneOf": [
1448
+ {
1449
+ "type": "object",
1450
+ "properties": {
1451
+ "key": {
1452
+ "type": "string"
1453
+ },
1454
+ "values": {
1455
+ "type": "array",
1456
+ "items": {
1457
+ "type": "string"
1458
+ }
1459
+ },
1460
+ "preEncoded": {
1461
+ "type": "boolean"
1462
+ }
1463
+ },
1464
+ "required": [
1465
+ "key",
1466
+ "values"
1467
+ ],
1468
+ "additionalProperties": false
1469
+ },
1470
+ {
1471
+ "type": "object",
1472
+ "properties": {
1473
+ "key": {
1474
+ "type": "string"
1475
+ },
1476
+ "value": {
1477
+ "type": "string"
1478
+ },
1479
+ "preEncoded": {
1480
+ "type": "boolean"
1481
+ }
1482
+ },
1483
+ "required": [
1484
+ "key",
1485
+ "value"
1486
+ ],
1487
+ "additionalProperties": false
1488
+ }
1489
+ ]
1490
+ }
1491
+ },
1492
+ "hover": {
1493
+ "type": "object",
1494
+ "properties": {
1495
+ "page": {
1496
+ "$ref": "util.json#/$defs/page"
1497
+ },
1498
+ "source": {
1499
+ "$ref": "util.json#/$defs/source"
1500
+ },
1501
+ "hash": {
1502
+ "description": "Optional; overrides the href hash for hover handlers.",
1503
+ "type": "string",
1504
+ "markdownDescription": "Optional; overrides the href hash for hover handlers."
1505
+ },
1506
+ "hashPreEncoded": {
1507
+ "type": "boolean"
1508
+ }
1509
+ },
1510
+ "additionalProperties": false,
1511
+ "required": [
1512
+ "page",
1513
+ "source"
1514
+ ]
1328
1515
  }
1329
1516
  },
1330
- "additionalProperties": false,
1331
1517
  "required": [
1332
- "page",
1333
- "source"
1334
- ]
1518
+ "path"
1519
+ ],
1520
+ "additionalProperties": false
1521
+ },
1522
+ {
1523
+ "$ref": "#/$defs/mediaHrefExternal"
1335
1524
  }
1336
- },
1337
- "required": [
1338
- "path"
1339
- ],
1340
- "additionalProperties": false
1341
- },
1342
- {
1343
- "$ref": "#/$defs/mediaHrefExternal"
1525
+ ]
1344
1526
  }
1345
- ]
1527
+ },
1528
+ "required": [
1529
+ "type",
1530
+ "entry",
1531
+ "href"
1532
+ ],
1533
+ "additionalProperties": false
1346
1534
  }
1347
- },
1348
- "required": [
1349
- "type",
1350
- "text",
1351
- "href"
1352
1535
  ],
1353
- "additionalProperties": false
1536
+ "$comment": "Ditto \"entryStatblockInline\"."
1354
1537
  },
1355
1538
  "entryOptFeature": {
1356
1539
  "description": "For e.g. Eldritch Invocations which require prerequisite text. Deprecated; prefer \"refOptionalfeature\" or \"statblock\" entries instead.",