5etools-utils 0.8.6 → 0.8.8
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/lib/ObjectWalker.js +28 -16
- package/package.json +1 -1
- package/schema/brew/entry.json +141 -1
- package/schema/brew/tables.json +101 -69
- package/schema/brew-fast/entry.json +141 -1
- package/schema/brew-fast/tables.json +101 -69
- package/schema/site/entry.json +127 -1
- package/schema/site/tables.json +98 -66
- package/schema/site-fast/entry.json +127 -1
- package/schema/site-fast/tables.json +98 -66
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "entry.json",
|
|
4
4
|
"title": "Entry",
|
|
5
5
|
"description": "A recursively renderable object.",
|
|
6
|
-
"version": "1.8.
|
|
6
|
+
"version": "1.8.10",
|
|
7
7
|
"$defs": {
|
|
8
8
|
"_arrayOfSpell": {
|
|
9
9
|
"type": "array",
|
|
@@ -388,6 +388,101 @@
|
|
|
388
388
|
],
|
|
389
389
|
"additionalProperties": false
|
|
390
390
|
},
|
|
391
|
+
"entryTableBase": {
|
|
392
|
+
"properties": {
|
|
393
|
+
"caption": {
|
|
394
|
+
"type": "string"
|
|
395
|
+
},
|
|
396
|
+
"isStriped": {
|
|
397
|
+
"type": "boolean"
|
|
398
|
+
},
|
|
399
|
+
"isNameGenerator": {
|
|
400
|
+
"type": "boolean",
|
|
401
|
+
"description": "Uses the result rolled to construct a name from multiple columns, such as Prefix, Given, Family, Suffix names etc."
|
|
402
|
+
},
|
|
403
|
+
"style": {
|
|
404
|
+
"type": "string"
|
|
405
|
+
},
|
|
406
|
+
"colLabels": {
|
|
407
|
+
"type": "array",
|
|
408
|
+
"items": {
|
|
409
|
+
"type": "string"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"colLabelGroups": {
|
|
413
|
+
"type": "array",
|
|
414
|
+
"items": {
|
|
415
|
+
"type": "object",
|
|
416
|
+
"properties": {
|
|
417
|
+
"colLabels": {
|
|
418
|
+
"type": "array",
|
|
419
|
+
"items": {
|
|
420
|
+
"type": "string"
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"additionalProperties": false
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"colStyles": {
|
|
428
|
+
"type": "array",
|
|
429
|
+
"items": {
|
|
430
|
+
"type": "string"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"rowLabels": {
|
|
434
|
+
"type": "array",
|
|
435
|
+
"items": {
|
|
436
|
+
"type": "string"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
"rowStyles": {
|
|
440
|
+
"type": "array",
|
|
441
|
+
"items": {
|
|
442
|
+
"type": "string"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"rows": {
|
|
446
|
+
"type": "array",
|
|
447
|
+
"items": {
|
|
448
|
+
"anyOf": [
|
|
449
|
+
{
|
|
450
|
+
"type": "array",
|
|
451
|
+
"items": {
|
|
452
|
+
"$ref": "#"
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"$ref": "#/$defs/entryTableRow"
|
|
457
|
+
}
|
|
458
|
+
]
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
"footnotes": {
|
|
462
|
+
"type": "array",
|
|
463
|
+
"items": {
|
|
464
|
+
"$ref": "#"
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"dependencies": {
|
|
469
|
+
"colLabels": {
|
|
470
|
+
"not": {
|
|
471
|
+
"required": [
|
|
472
|
+
"colLabelGroups"
|
|
473
|
+
]
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
"colLabelGroups": {
|
|
477
|
+
"not": {
|
|
478
|
+
"required": [
|
|
479
|
+
"colLabels"
|
|
480
|
+
]
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"additionalProperties": false
|
|
485
|
+
},
|
|
391
486
|
"entryTable": {
|
|
392
487
|
"type": "object",
|
|
393
488
|
"properties": {
|
|
@@ -436,6 +531,21 @@
|
|
|
436
531
|
"type": "string"
|
|
437
532
|
}
|
|
438
533
|
},
|
|
534
|
+
"colLabelGroups": {
|
|
535
|
+
"type": "array",
|
|
536
|
+
"items": {
|
|
537
|
+
"type": "object",
|
|
538
|
+
"properties": {
|
|
539
|
+
"colLabels": {
|
|
540
|
+
"type": "array",
|
|
541
|
+
"items": {
|
|
542
|
+
"type": "string"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
"additionalProperties": false
|
|
547
|
+
}
|
|
548
|
+
},
|
|
439
549
|
"colStyles": {
|
|
440
550
|
"type": "array",
|
|
441
551
|
"items": {
|
|
@@ -481,6 +591,22 @@
|
|
|
481
591
|
"type",
|
|
482
592
|
"rows"
|
|
483
593
|
],
|
|
594
|
+
"dependencies": {
|
|
595
|
+
"colLabels": {
|
|
596
|
+
"not": {
|
|
597
|
+
"required": [
|
|
598
|
+
"colLabelGroups"
|
|
599
|
+
]
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"colLabelGroups": {
|
|
603
|
+
"not": {
|
|
604
|
+
"required": [
|
|
605
|
+
"colLabels"
|
|
606
|
+
]
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
},
|
|
484
610
|
"additionalProperties": false
|
|
485
611
|
},
|
|
486
612
|
"entryTableGroup": {
|
|
@@ -1,80 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "tables.json",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.6",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"$defs": {
|
|
7
7
|
"tableData": {
|
|
8
8
|
"type": "object",
|
|
9
9
|
"properties": {
|
|
10
|
+
"tables": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"$ref": "#/$defs/tableData"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
10
16
|
"name": {
|
|
11
17
|
"type": "string"
|
|
12
18
|
},
|
|
13
|
-
"type": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"default": "table",
|
|
16
|
-
"enum": [
|
|
17
|
-
"table",
|
|
18
|
-
"tableGroup"
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
19
|
"source": {
|
|
22
20
|
"type": "string"
|
|
23
21
|
},
|
|
22
|
+
"page": {
|
|
23
|
+
"$ref": "util.json#/$defs/page"
|
|
24
|
+
},
|
|
24
25
|
"srd": {
|
|
25
26
|
"$ref": "util.json#/$defs/srd"
|
|
26
27
|
},
|
|
27
28
|
"basicRules": {
|
|
28
29
|
"$ref": "util.json#/$defs/basicRules"
|
|
29
30
|
},
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"page": {
|
|
34
|
-
"$ref": "util.json#/$defs/page"
|
|
35
|
-
},
|
|
36
|
-
"otherSources": {
|
|
37
|
-
"$ref": "util.json#/$defs/otherSources"
|
|
38
|
-
},
|
|
39
|
-
"chapter": {
|
|
40
|
-
"type": "object",
|
|
41
|
-
"properties": {
|
|
42
|
-
"name": {
|
|
43
|
-
"type": "string"
|
|
44
|
-
},
|
|
45
|
-
"ordinal": {
|
|
46
|
-
"type": "object",
|
|
47
|
-
"properties": {
|
|
48
|
-
"type": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"enum": [
|
|
51
|
-
"chapter",
|
|
52
|
-
"appendix",
|
|
53
|
-
"part",
|
|
54
|
-
"episode"
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
"identifier": {
|
|
58
|
-
"type": [
|
|
59
|
-
"integer",
|
|
60
|
-
"string"
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"additionalProperties": false,
|
|
65
|
-
"required": [
|
|
66
|
-
"type",
|
|
67
|
-
"identifier"
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
"index": {
|
|
71
|
-
"type": "integer"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
31
|
+
"data": {
|
|
32
|
+
"description": "A generic object for storing special data for external use-cases. Keys prefixed with \"rd-\" should be added as \"data-\" HTML attributes when rendering to HTML.",
|
|
33
|
+
"type": "object"
|
|
74
34
|
},
|
|
75
35
|
"caption": {
|
|
76
36
|
"type": "string"
|
|
77
37
|
},
|
|
38
|
+
"isStriped": {
|
|
39
|
+
"type": "boolean"
|
|
40
|
+
},
|
|
41
|
+
"isNameGenerator": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"description": "Uses the result rolled to construct a name from multiple columns, such as Prefix, Given, Family, Suffix names etc."
|
|
44
|
+
},
|
|
78
45
|
"style": {
|
|
79
46
|
"type": "string"
|
|
80
47
|
},
|
|
@@ -84,6 +51,21 @@
|
|
|
84
51
|
"type": "string"
|
|
85
52
|
}
|
|
86
53
|
},
|
|
54
|
+
"colLabelGroups": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"colLabels": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"additionalProperties": false
|
|
67
|
+
}
|
|
68
|
+
},
|
|
87
69
|
"colStyles": {
|
|
88
70
|
"type": "array",
|
|
89
71
|
"items": {
|
|
@@ -118,27 +100,77 @@
|
|
|
118
100
|
]
|
|
119
101
|
}
|
|
120
102
|
},
|
|
121
|
-
"tables": {
|
|
122
|
-
"type": "array",
|
|
123
|
-
"items": {
|
|
124
|
-
"$ref": "#/$defs/tableData"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
103
|
"footnotes": {
|
|
128
104
|
"type": "array",
|
|
129
105
|
"items": {
|
|
130
106
|
"$ref": "entry.json"
|
|
131
107
|
}
|
|
132
108
|
},
|
|
133
|
-
"
|
|
134
|
-
"type": "
|
|
109
|
+
"type": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"default": "table",
|
|
112
|
+
"enum": [
|
|
113
|
+
"table",
|
|
114
|
+
"tableGroup"
|
|
115
|
+
]
|
|
135
116
|
},
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"description": "Uses the result rolled to construct a name from multiple columns, such as Prefix, Given, Family, Suffix names etc."
|
|
117
|
+
"legacy": {
|
|
118
|
+
"$ref": "util.json#/$defs/legacy"
|
|
139
119
|
},
|
|
140
|
-
"
|
|
141
|
-
"
|
|
120
|
+
"otherSources": {
|
|
121
|
+
"$ref": "util.json#/$defs/otherSources"
|
|
122
|
+
},
|
|
123
|
+
"chapter": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"properties": {
|
|
126
|
+
"name": {
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"ordinal": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"properties": {
|
|
132
|
+
"type": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"enum": [
|
|
135
|
+
"chapter",
|
|
136
|
+
"appendix",
|
|
137
|
+
"part",
|
|
138
|
+
"episode"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"identifier": {
|
|
142
|
+
"type": [
|
|
143
|
+
"integer",
|
|
144
|
+
"string"
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"additionalProperties": false,
|
|
149
|
+
"required": [
|
|
150
|
+
"type",
|
|
151
|
+
"identifier"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
"index": {
|
|
155
|
+
"type": "integer"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"dependencies": {
|
|
161
|
+
"colLabels": {
|
|
162
|
+
"not": {
|
|
163
|
+
"required": [
|
|
164
|
+
"colLabelGroups"
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"colLabelGroups": {
|
|
169
|
+
"not": {
|
|
170
|
+
"required": [
|
|
171
|
+
"colLabels"
|
|
172
|
+
]
|
|
173
|
+
}
|
|
142
174
|
}
|
|
143
175
|
},
|
|
144
176
|
"additionalProperties": false,
|