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.
@@ -1,16 +1,37 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "renderdemo.json",
4
- "version": "1.0.1",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
7
+ "renderdemo": {
8
8
  "type": "array",
9
9
  "minItems": 1,
10
10
  "items": {
11
- "$ref": "entry.json"
11
+ "type": "object",
12
+ "properties": {
13
+ "name": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "source": {
18
+ "$ref": "util.json#/$defs/source"
19
+ },
20
+ "entry": {
21
+ "$ref": "entry.json"
22
+ }
23
+ },
24
+ "required": [
25
+ "name",
26
+ "source",
27
+ "entry"
28
+ ],
29
+ "additionalProperties": false
12
30
  }
13
31
  }
14
32
  },
33
+ "required": [
34
+ "renderdemo"
35
+ ],
15
36
  "additionalProperties": false
16
37
  }
@@ -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",
@@ -303,6 +303,50 @@
303
303
  ],
304
304
  "additionalProperties": false
305
305
  },
306
+ "entryHomebrew": {
307
+ "$comment": "Note that this is intended as homebrew-only, but, is made available everywhere to support samples.",
308
+ "type": "object",
309
+ "properties": {
310
+ "name": {
311
+ "type": "string"
312
+ },
313
+ "type": {
314
+ "type": "string",
315
+ "const": "homebrew"
316
+ },
317
+ "source": {
318
+ "$ref": "util.json#/$defs/source"
319
+ },
320
+ "page": {
321
+ "$ref": "util.json#/$defs/page"
322
+ },
323
+ "data": {
324
+ "$ref": "#/$defs/_entryDataData"
325
+ },
326
+ "id": {
327
+ "type": "string"
328
+ },
329
+ "entries": {
330
+ "type": "array",
331
+ "items": {
332
+ "$ref": "#"
333
+ }
334
+ },
335
+ "movedTo": {
336
+ "$ref": "#"
337
+ },
338
+ "oldEntries": {
339
+ "type": "array",
340
+ "items": {
341
+ "$ref": "#"
342
+ }
343
+ }
344
+ },
345
+ "required": [
346
+ "type"
347
+ ],
348
+ "additionalProperties": false
349
+ },
306
350
  "entryQuote": {
307
351
  "type": "object",
308
352
  "properties": {
@@ -1149,175 +1193,358 @@
1149
1193
  "additionalProperties": false
1150
1194
  },
1151
1195
  "abilityGeneric": {
1152
- "type": "object",
1153
- "properties": {
1154
- "name": {
1155
- "type": "string"
1156
- },
1157
- "type": {
1158
- "type": "string",
1159
- "const": "abilityGeneric"
1160
- },
1161
- "source": {
1162
- "$ref": "util.json#/$defs/source"
1163
- },
1164
- "page": {
1165
- "$ref": "util.json#/$defs/page"
1166
- },
1167
- "data": {
1168
- "$ref": "#/$defs/_entryDataData"
1169
- },
1170
- "id": {
1171
- "type": "string"
1172
- },
1173
- "text": {
1174
- "type": "string"
1196
+ "anyOf": [
1197
+ {
1198
+ "type": "object",
1199
+ "deprecated": true,
1200
+ "properties": {
1201
+ "name": {
1202
+ "type": "string"
1203
+ },
1204
+ "type": {
1205
+ "type": "string",
1206
+ "const": "abilityGeneric"
1207
+ },
1208
+ "source": {
1209
+ "$ref": "util.json#/$defs/source"
1210
+ },
1211
+ "page": {
1212
+ "$ref": "util.json#/$defs/page"
1213
+ },
1214
+ "data": {
1215
+ "$ref": "#/$defs/_entryDataData"
1216
+ },
1217
+ "id": {
1218
+ "type": "string"
1219
+ },
1220
+ "text": {
1221
+ "type": "string"
1222
+ },
1223
+ "attributes": {
1224
+ "type": "array",
1225
+ "items": {
1226
+ "$ref": "util.json#/$defs/abilityScoreAbbreviation"
1227
+ }
1228
+ }
1229
+ },
1230
+ "required": [
1231
+ "type",
1232
+ "text"
1233
+ ],
1234
+ "additionalProperties": false
1175
1235
  },
1176
- "attributes": {
1177
- "type": "array",
1178
- "items": {
1179
- "$ref": "util.json#/$defs/abilityScoreAbbreviation"
1180
- }
1236
+ {
1237
+ "type": "object",
1238
+ "properties": {
1239
+ "name": {
1240
+ "type": "string"
1241
+ },
1242
+ "type": {
1243
+ "type": "string",
1244
+ "const": "abilityGeneric"
1245
+ },
1246
+ "source": {
1247
+ "$ref": "util.json#/$defs/source"
1248
+ },
1249
+ "page": {
1250
+ "$ref": "util.json#/$defs/page"
1251
+ },
1252
+ "data": {
1253
+ "$ref": "#/$defs/_entryDataData"
1254
+ },
1255
+ "id": {
1256
+ "type": "string"
1257
+ },
1258
+ "entry": {
1259
+ "type": "string"
1260
+ },
1261
+ "attributes": {
1262
+ "type": "array",
1263
+ "items": {
1264
+ "$ref": "util.json#/$defs/abilityScoreAbbreviation"
1265
+ }
1266
+ }
1267
+ },
1268
+ "required": [
1269
+ "type",
1270
+ "entry"
1271
+ ],
1272
+ "additionalProperties": false
1181
1273
  }
1182
- },
1183
- "required": [
1184
- "type",
1185
- "text"
1186
1274
  ],
1187
- "additionalProperties": false
1275
+ "$comment": "Ditto \"entryStatblockInline\"."
1188
1276
  },
1189
1277
  "entryLink": {
1190
- "type": "object",
1191
- "properties": {
1192
- "name": {
1193
- "type": "string"
1194
- },
1195
- "type": {
1196
- "type": "string",
1197
- "const": "link"
1198
- },
1199
- "source": {
1200
- "$ref": "util.json#/$defs/source"
1201
- },
1202
- "page": {
1203
- "$ref": "util.json#/$defs/page"
1204
- },
1205
- "data": {
1206
- "$ref": "#/$defs/_entryDataData"
1207
- },
1208
- "id": {
1209
- "type": "string"
1210
- },
1211
- "text": {
1212
- "type": "string"
1213
- },
1214
- "href": {
1215
- "oneOf": [
1216
- {
1217
- "type": "object",
1218
- "properties": {
1219
- "type": {
1220
- "const": "internal"
1221
- },
1222
- "path": {
1223
- "type": "string"
1224
- },
1225
- "hash": {
1226
- "type": "string"
1227
- },
1228
- "hashPreEncoded": {
1229
- "type": "boolean"
1230
- },
1231
- "subhashes": {
1232
- "type": "array",
1233
- "items": {
1234
- "oneOf": [
1235
- {
1236
- "type": "object",
1237
- "properties": {
1238
- "key": {
1239
- "type": "string"
1240
- },
1241
- "values": {
1242
- "type": "array",
1243
- "items": {
1244
- "type": "string"
1245
- }
1278
+ "anyOf": [
1279
+ {
1280
+ "type": "object",
1281
+ "deprecated": true,
1282
+ "properties": {
1283
+ "name": {
1284
+ "type": "string"
1285
+ },
1286
+ "type": {
1287
+ "type": "string",
1288
+ "const": "link"
1289
+ },
1290
+ "source": {
1291
+ "$ref": "util.json#/$defs/source"
1292
+ },
1293
+ "page": {
1294
+ "$ref": "util.json#/$defs/page"
1295
+ },
1296
+ "data": {
1297
+ "$ref": "#/$defs/_entryDataData"
1298
+ },
1299
+ "id": {
1300
+ "type": "string"
1301
+ },
1302
+ "text": {
1303
+ "type": "string"
1304
+ },
1305
+ "href": {
1306
+ "oneOf": [
1307
+ {
1308
+ "type": "object",
1309
+ "properties": {
1310
+ "type": {
1311
+ "const": "internal"
1312
+ },
1313
+ "path": {
1314
+ "type": "string"
1315
+ },
1316
+ "hash": {
1317
+ "type": "string"
1318
+ },
1319
+ "hashPreEncoded": {
1320
+ "type": "boolean"
1321
+ },
1322
+ "subhashes": {
1323
+ "type": "array",
1324
+ "items": {
1325
+ "oneOf": [
1326
+ {
1327
+ "type": "object",
1328
+ "properties": {
1329
+ "key": {
1330
+ "type": "string"
1331
+ },
1332
+ "values": {
1333
+ "type": "array",
1334
+ "items": {
1335
+ "type": "string"
1336
+ }
1337
+ },
1338
+ "preEncoded": {
1339
+ "type": "boolean"
1340
+ }
1341
+ },
1342
+ "required": [
1343
+ "key",
1344
+ "values"
1345
+ ],
1346
+ "additionalProperties": false
1246
1347
  },
1247
- "preEncoded": {
1248
- "type": "boolean"
1348
+ {
1349
+ "type": "object",
1350
+ "properties": {
1351
+ "key": {
1352
+ "type": "string"
1353
+ },
1354
+ "value": {
1355
+ "type": "string"
1356
+ },
1357
+ "preEncoded": {
1358
+ "type": "boolean"
1359
+ }
1360
+ },
1361
+ "required": [
1362
+ "key",
1363
+ "value"
1364
+ ],
1365
+ "additionalProperties": false
1249
1366
  }
1367
+ ]
1368
+ }
1369
+ },
1370
+ "hover": {
1371
+ "type": "object",
1372
+ "properties": {
1373
+ "page": {
1374
+ "$ref": "util.json#/$defs/page"
1250
1375
  },
1251
- "required": [
1252
- "key",
1253
- "values"
1254
- ],
1255
- "additionalProperties": false
1256
- },
1257
- {
1258
- "type": "object",
1259
- "properties": {
1260
- "key": {
1261
- "type": "string"
1262
- },
1263
- "value": {
1264
- "type": "string"
1265
- },
1266
- "preEncoded": {
1267
- "type": "boolean"
1268
- }
1376
+ "source": {
1377
+ "$ref": "util.json#/$defs/source"
1269
1378
  },
1270
- "required": [
1271
- "key",
1272
- "value"
1273
- ],
1274
- "additionalProperties": false
1275
- }
1276
- ]
1277
- }
1379
+ "hash": {
1380
+ "description": "Optional; overrides the href hash for hover handlers.",
1381
+ "type": "string",
1382
+ "markdownDescription": "Optional; overrides the href hash for hover handlers."
1383
+ },
1384
+ "hashPreEncoded": {
1385
+ "type": "boolean"
1386
+ }
1387
+ },
1388
+ "additionalProperties": false,
1389
+ "required": [
1390
+ "page",
1391
+ "source"
1392
+ ]
1393
+ }
1394
+ },
1395
+ "required": [
1396
+ "path"
1397
+ ],
1398
+ "additionalProperties": false
1278
1399
  },
1279
- "hover": {
1400
+ {
1401
+ "$ref": "#/$defs/mediaHrefExternal"
1402
+ }
1403
+ ]
1404
+ }
1405
+ },
1406
+ "required": [
1407
+ "type",
1408
+ "text",
1409
+ "href"
1410
+ ],
1411
+ "additionalProperties": false
1412
+ },
1413
+ {
1414
+ "type": "object",
1415
+ "properties": {
1416
+ "name": {
1417
+ "type": "string"
1418
+ },
1419
+ "type": {
1420
+ "type": "string",
1421
+ "const": "link"
1422
+ },
1423
+ "source": {
1424
+ "$ref": "util.json#/$defs/source"
1425
+ },
1426
+ "page": {
1427
+ "$ref": "util.json#/$defs/page"
1428
+ },
1429
+ "data": {
1430
+ "$ref": "#/$defs/_entryDataData"
1431
+ },
1432
+ "id": {
1433
+ "type": "string"
1434
+ },
1435
+ "entry": {
1436
+ "type": "string"
1437
+ },
1438
+ "href": {
1439
+ "oneOf": [
1440
+ {
1280
1441
  "type": "object",
1281
1442
  "properties": {
1282
- "page": {
1283
- "$ref": "util.json#/$defs/page"
1443
+ "type": {
1444
+ "const": "internal"
1284
1445
  },
1285
- "source": {
1286
- "$ref": "util.json#/$defs/source"
1446
+ "path": {
1447
+ "type": "string"
1287
1448
  },
1288
1449
  "hash": {
1289
- "description": "Optional; overrides the href hash for hover handlers.",
1290
- "type": "string",
1291
- "markdownDescription": "Optional; overrides the href hash for hover handlers."
1450
+ "type": "string"
1292
1451
  },
1293
1452
  "hashPreEncoded": {
1294
1453
  "type": "boolean"
1454
+ },
1455
+ "subhashes": {
1456
+ "type": "array",
1457
+ "items": {
1458
+ "oneOf": [
1459
+ {
1460
+ "type": "object",
1461
+ "properties": {
1462
+ "key": {
1463
+ "type": "string"
1464
+ },
1465
+ "values": {
1466
+ "type": "array",
1467
+ "items": {
1468
+ "type": "string"
1469
+ }
1470
+ },
1471
+ "preEncoded": {
1472
+ "type": "boolean"
1473
+ }
1474
+ },
1475
+ "required": [
1476
+ "key",
1477
+ "values"
1478
+ ],
1479
+ "additionalProperties": false
1480
+ },
1481
+ {
1482
+ "type": "object",
1483
+ "properties": {
1484
+ "key": {
1485
+ "type": "string"
1486
+ },
1487
+ "value": {
1488
+ "type": "string"
1489
+ },
1490
+ "preEncoded": {
1491
+ "type": "boolean"
1492
+ }
1493
+ },
1494
+ "required": [
1495
+ "key",
1496
+ "value"
1497
+ ],
1498
+ "additionalProperties": false
1499
+ }
1500
+ ]
1501
+ }
1502
+ },
1503
+ "hover": {
1504
+ "type": "object",
1505
+ "properties": {
1506
+ "page": {
1507
+ "$ref": "util.json#/$defs/page"
1508
+ },
1509
+ "source": {
1510
+ "$ref": "util.json#/$defs/source"
1511
+ },
1512
+ "hash": {
1513
+ "description": "Optional; overrides the href hash for hover handlers.",
1514
+ "type": "string",
1515
+ "markdownDescription": "Optional; overrides the href hash for hover handlers."
1516
+ },
1517
+ "hashPreEncoded": {
1518
+ "type": "boolean"
1519
+ }
1520
+ },
1521
+ "additionalProperties": false,
1522
+ "required": [
1523
+ "page",
1524
+ "source"
1525
+ ]
1295
1526
  }
1296
1527
  },
1297
- "additionalProperties": false,
1298
1528
  "required": [
1299
- "page",
1300
- "source"
1301
- ]
1529
+ "path"
1530
+ ],
1531
+ "additionalProperties": false
1532
+ },
1533
+ {
1534
+ "$ref": "#/$defs/mediaHrefExternal"
1302
1535
  }
1303
- },
1304
- "required": [
1305
- "path"
1306
- ],
1307
- "additionalProperties": false
1308
- },
1309
- {
1310
- "$ref": "#/$defs/mediaHrefExternal"
1536
+ ]
1311
1537
  }
1312
- ]
1538
+ },
1539
+ "required": [
1540
+ "type",
1541
+ "entry",
1542
+ "href"
1543
+ ],
1544
+ "additionalProperties": false
1313
1545
  }
1314
- },
1315
- "required": [
1316
- "type",
1317
- "text",
1318
- "href"
1319
1546
  ],
1320
- "additionalProperties": false
1547
+ "$comment": "Ditto \"entryStatblockInline\"."
1321
1548
  },
1322
1549
  "entryOptFeature": {
1323
1550
  "description": "For e.g. Eldritch Invocations which require prerequisite text. Deprecated; prefer \"refOptionalfeature\" or \"statblock\" entries instead.",
@@ -4834,6 +5061,9 @@
4834
5061
  {
4835
5062
  "$ref": "#/$defs/entryEntries"
4836
5063
  },
5064
+ {
5065
+ "$ref": "#/$defs/entryHomebrew"
5066
+ },
4837
5067
  {
4838
5068
  "$ref": "#/$defs/entryQuote"
4839
5069
  },
@@ -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,
@@ -1,16 +1,37 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "renderdemo.json",
4
- "version": "1.0.1",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
7
+ "renderdemo": {
8
8
  "type": "array",
9
9
  "minItems": 1,
10
10
  "items": {
11
- "$ref": "entry.json"
11
+ "type": "object",
12
+ "properties": {
13
+ "name": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "source": {
18
+ "$ref": "util.json#/$defs/source"
19
+ },
20
+ "entry": {
21
+ "$ref": "entry.json"
22
+ }
23
+ },
24
+ "required": [
25
+ "name",
26
+ "source",
27
+ "entry"
28
+ ],
29
+ "additionalProperties": false
12
30
  }
13
31
  }
14
32
  },
33
+ "required": [
34
+ "renderdemo"
35
+ ],
15
36
  "additionalProperties": false
16
37
  }