document-content-model 7.15.2 → 7.16.0
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/dist/bijection-constructs-3By08A5K.cjs +14695 -0
- package/dist/bijection-constructs-DlP29TpB.js +14624 -0
- package/dist/bijection-constructs.cjs +4 -0
- package/dist/bijection-constructs.d.cts +6 -0
- package/dist/bijection-constructs.d.ts +6 -0
- package/dist/bijection-constructs.js +2 -0
- package/dist/bijection-corpus.cjs +12 -0
- package/dist/bijection-corpus.d.cts +46 -0
- package/dist/bijection-corpus.d.ts +46 -0
- package/dist/bijection-corpus.js +2 -0
- package/dist/codec.d.cts +3 -3
- package/dist/codec.d.ts +3 -3
- package/dist/{construct-GVdTKrE7.d.cts → construct-C4XiF8OW.d.cts} +3 -3
- package/dist/{construct-GVdTKrE7.d.ts → construct-C4XiF8OW.d.ts} +3 -3
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/{content-CYB2gqF8.d.ts → content-CBE4kBMo.d.ts} +7924 -6158
- package/dist/{content-CG0dBdiE.d.cts → content-DKx5QaRd.d.cts} +7924 -6158
- package/dist/content-drawing-Dlo8cXJj.d.cts +1606 -0
- package/dist/content-drawing-DuvQQwuc.d.ts +1606 -0
- package/dist/content-drawing.cjs +186 -0
- package/dist/content-drawing.d.cts +2 -0
- package/dist/content-drawing.d.ts +2 -0
- package/dist/content-drawing.js +171 -0
- package/dist/content-json-schema-defs.cjs +29 -3035
- package/dist/content-json-schema-defs.d.cts +2 -6
- package/dist/content-json-schema-defs.d.ts +2 -6
- package/dist/content-json-schema-defs.js +30 -3033
- package/dist/content-sheet.cjs +408 -0
- package/dist/content-sheet.d.cts +2 -0
- package/dist/content-sheet.d.ts +2 -0
- package/dist/content-sheet.js +385 -0
- package/dist/content-vocabulary.cjs +190 -0
- package/dist/content-vocabulary.d.cts +2 -0
- package/dist/content-vocabulary.d.ts +2 -0
- package/dist/content-vocabulary.js +168 -0
- package/dist/content.cjs +29 -777
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +10 -701
- package/dist/decompose.cjs +5 -0
- package/dist/decompose.d.cts +5 -3
- package/dist/decompose.d.ts +5 -3
- package/dist/decompose.js +5 -1
- package/dist/definitions.cjs +2 -1
- package/dist/definitions.d.cts +4 -4
- package/dist/definitions.d.ts +4 -4
- package/dist/definitions.js +2 -1
- package/dist/factor-styles.cjs +2 -0
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/factor-styles.js +4 -2
- package/dist/flatten.cjs +5 -0
- package/dist/flatten.d.cts +3 -2
- package/dist/flatten.d.ts +3 -2
- package/dist/flatten.js +5 -1
- package/dist/index.cjs +71 -67
- package/dist/index.d.cts +12 -10
- package/dist/index.d.ts +12 -10
- package/dist/index.js +12 -12
- package/dist/json-schema-defs-blocks.cjs +1036 -0
- package/dist/json-schema-defs-blocks.d.cts +5 -0
- package/dist/json-schema-defs-blocks.d.ts +5 -0
- package/dist/json-schema-defs-blocks.js +1035 -0
- package/dist/json-schema-defs-math.cjs +291 -0
- package/dist/json-schema-defs-math.d.cts +5 -0
- package/dist/json-schema-defs-math.d.ts +5 -0
- package/dist/json-schema-defs-math.js +290 -0
- package/dist/json-schema-defs-shared.cjs +42 -0
- package/dist/json-schema-defs-shared.d.cts +9 -0
- package/dist/json-schema-defs-shared.d.ts +9 -0
- package/dist/json-schema-defs-shared.js +38 -0
- package/dist/json-schema-defs-sheet.cjs +944 -0
- package/dist/json-schema-defs-sheet.d.cts +5 -0
- package/dist/json-schema-defs-sheet.d.ts +5 -0
- package/dist/json-schema-defs-sheet.js +943 -0
- package/dist/json-schema-defs-tree.cjs +237 -0
- package/dist/json-schema-defs-tree.d.cts +5 -0
- package/dist/json-schema-defs-tree.d.ts +5 -0
- package/dist/json-schema-defs-tree.js +237 -0
- package/dist/json-schema-defs-vector.cjs +513 -0
- package/dist/json-schema-defs-vector.d.cts +5 -0
- package/dist/json-schema-defs-vector.d.ts +5 -0
- package/dist/json-schema-defs-vector.js +512 -0
- package/dist/magic-string.es-CB2hOw9v.js +1012 -0
- package/dist/magic-string.es-MEBc20Ce.cjs +1012 -0
- package/dist/math-layout.d.cts +2 -2
- package/dist/math-layout.d.ts +2 -2
- package/dist/math.cjs +7 -5
- package/dist/math.js +7 -5
- package/dist/mathml.cjs +3 -1
- package/dist/mathml.js +3 -1
- package/dist/{package-node-B8eeIyze.d.cts → package-node-BYL2owXg.d.cts} +40 -39
- package/dist/{package-node-BOvXA2-v.d.ts → package-node-vI3Q0nFf.d.ts} +40 -39
- package/dist/package-node.cjs +12 -9
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package-node.js +4 -1
- package/dist/package.d.cts +6 -6
- package/dist/package.d.ts +6 -6
- package/dist/schema-io.cjs +7 -2
- package/dist/schema-io.d.cts +3 -2
- package/dist/schema-io.d.ts +3 -2
- package/dist/schema-io.js +7 -3
- package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
- package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
- package/dist/style.d.cts +1 -1
- package/dist/style.d.ts +1 -1
- package/dist/table-grid.cjs +5 -0
- package/dist/table-grid.d.cts +4 -3
- package/dist/table-grid.d.ts +4 -3
- package/dist/table-grid.js +5 -1
- package/dist/text-layout.d.cts +7 -7
- package/dist/text-layout.d.ts +7 -7
- package/package.json +1 -1
- package/schemas/content-document.schema.json +16 -16
- package/schemas/document-tree.schema.json +3 -3
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/json-schema-defs-tree.ts
|
|
3
|
+
const DEFS_TREE = {
|
|
4
|
+
ContentControlDescriptor: {
|
|
5
|
+
type: "object",
|
|
6
|
+
properties: {
|
|
7
|
+
kind: {
|
|
8
|
+
type: "string",
|
|
9
|
+
const: "contentControl"
|
|
10
|
+
},
|
|
11
|
+
controlType: {
|
|
12
|
+
type: "string",
|
|
13
|
+
enum: [
|
|
14
|
+
"richText",
|
|
15
|
+
"plainText",
|
|
16
|
+
"checkbox",
|
|
17
|
+
"dropDown",
|
|
18
|
+
"comboBox",
|
|
19
|
+
"date",
|
|
20
|
+
"picture",
|
|
21
|
+
"repeatingSection",
|
|
22
|
+
"button",
|
|
23
|
+
"index",
|
|
24
|
+
"group"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
tag: { type: "string" },
|
|
28
|
+
alias: { type: "string" },
|
|
29
|
+
lock: {
|
|
30
|
+
type: "string",
|
|
31
|
+
enum: [
|
|
32
|
+
"content",
|
|
33
|
+
"container",
|
|
34
|
+
"both"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
value: { type: "string" },
|
|
38
|
+
checked: { type: "boolean" },
|
|
39
|
+
options: {
|
|
40
|
+
type: "array",
|
|
41
|
+
items: { type: "string" }
|
|
42
|
+
},
|
|
43
|
+
source: { $ref: "#/$defs/SourceResidue" }
|
|
44
|
+
},
|
|
45
|
+
required: ["kind", "controlType"],
|
|
46
|
+
additionalProperties: false
|
|
47
|
+
},
|
|
48
|
+
FieldDescriptor: {
|
|
49
|
+
type: "object",
|
|
50
|
+
properties: {
|
|
51
|
+
kind: {
|
|
52
|
+
type: "string",
|
|
53
|
+
const: "field"
|
|
54
|
+
},
|
|
55
|
+
instruction: { type: "string" },
|
|
56
|
+
cachedResult: { type: "string" },
|
|
57
|
+
source: { $ref: "#/$defs/SourceResidue" }
|
|
58
|
+
},
|
|
59
|
+
required: ["kind", "instruction"],
|
|
60
|
+
additionalProperties: false
|
|
61
|
+
},
|
|
62
|
+
AnchorDescriptor: {
|
|
63
|
+
type: "object",
|
|
64
|
+
properties: {
|
|
65
|
+
kind: {
|
|
66
|
+
type: "string",
|
|
67
|
+
const: "anchor"
|
|
68
|
+
},
|
|
69
|
+
anchorType: {
|
|
70
|
+
type: "string",
|
|
71
|
+
enum: [
|
|
72
|
+
"bookmark",
|
|
73
|
+
"footnote",
|
|
74
|
+
"endnote",
|
|
75
|
+
"comment"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
name: { type: "string" },
|
|
79
|
+
definition: { type: "string" },
|
|
80
|
+
source: { $ref: "#/$defs/SourceResidue" }
|
|
81
|
+
},
|
|
82
|
+
required: [
|
|
83
|
+
"kind",
|
|
84
|
+
"anchorType",
|
|
85
|
+
"name"
|
|
86
|
+
],
|
|
87
|
+
additionalProperties: false
|
|
88
|
+
},
|
|
89
|
+
LinkTarget: { oneOf: [{
|
|
90
|
+
type: "object",
|
|
91
|
+
properties: {
|
|
92
|
+
kind: {
|
|
93
|
+
type: "string",
|
|
94
|
+
const: "external"
|
|
95
|
+
},
|
|
96
|
+
uri: { type: "string" }
|
|
97
|
+
},
|
|
98
|
+
required: ["kind", "uri"],
|
|
99
|
+
additionalProperties: false
|
|
100
|
+
}, {
|
|
101
|
+
type: "object",
|
|
102
|
+
properties: {
|
|
103
|
+
kind: {
|
|
104
|
+
type: "string",
|
|
105
|
+
const: "internal"
|
|
106
|
+
},
|
|
107
|
+
anchor: { type: "string" }
|
|
108
|
+
},
|
|
109
|
+
required: ["kind", "anchor"],
|
|
110
|
+
additionalProperties: false
|
|
111
|
+
}] },
|
|
112
|
+
LinkDescriptor: {
|
|
113
|
+
type: "object",
|
|
114
|
+
properties: {
|
|
115
|
+
kind: {
|
|
116
|
+
type: "string",
|
|
117
|
+
const: "link"
|
|
118
|
+
},
|
|
119
|
+
target: { $ref: "#/$defs/LinkTarget" },
|
|
120
|
+
title: { type: "string" },
|
|
121
|
+
source: { $ref: "#/$defs/SourceResidue" }
|
|
122
|
+
},
|
|
123
|
+
required: ["kind", "target"],
|
|
124
|
+
additionalProperties: false
|
|
125
|
+
},
|
|
126
|
+
ProvenanceDescriptor: {
|
|
127
|
+
type: "object",
|
|
128
|
+
properties: {
|
|
129
|
+
kind: {
|
|
130
|
+
type: "string",
|
|
131
|
+
const: "provenance"
|
|
132
|
+
},
|
|
133
|
+
change: {
|
|
134
|
+
type: "string",
|
|
135
|
+
enum: [
|
|
136
|
+
"insertion",
|
|
137
|
+
"deletion",
|
|
138
|
+
"moveFrom",
|
|
139
|
+
"moveTo",
|
|
140
|
+
"formatChange"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
author: { type: "string" },
|
|
144
|
+
dateIso: { type: "string" },
|
|
145
|
+
source: { $ref: "#/$defs/SourceResidue" }
|
|
146
|
+
},
|
|
147
|
+
required: ["kind", "change"],
|
|
148
|
+
additionalProperties: false
|
|
149
|
+
},
|
|
150
|
+
DivisionSource: {
|
|
151
|
+
type: "object",
|
|
152
|
+
properties: {
|
|
153
|
+
href: { type: "string" },
|
|
154
|
+
sectionName: { type: "string" }
|
|
155
|
+
},
|
|
156
|
+
required: ["href"],
|
|
157
|
+
additionalProperties: false
|
|
158
|
+
},
|
|
159
|
+
DivisionDescriptor: {
|
|
160
|
+
type: "object",
|
|
161
|
+
properties: {
|
|
162
|
+
kind: {
|
|
163
|
+
type: "string",
|
|
164
|
+
const: "division"
|
|
165
|
+
},
|
|
166
|
+
name: { type: "string" },
|
|
167
|
+
columnCount: {
|
|
168
|
+
type: "integer",
|
|
169
|
+
exclusiveMinimum: 0,
|
|
170
|
+
maximum: require("./json-schema-defs-shared.cjs").MAX_SAFE_INTEGER
|
|
171
|
+
},
|
|
172
|
+
protected: { type: "boolean" },
|
|
173
|
+
linked: { $ref: "#/$defs/DivisionSource" },
|
|
174
|
+
source: { $ref: "#/$defs/SourceResidue" }
|
|
175
|
+
},
|
|
176
|
+
required: ["kind"],
|
|
177
|
+
additionalProperties: false
|
|
178
|
+
},
|
|
179
|
+
ConstructDescriptor: { oneOf: [
|
|
180
|
+
{ $ref: "#/$defs/ContentControlDescriptor" },
|
|
181
|
+
{ $ref: "#/$defs/FieldDescriptor" },
|
|
182
|
+
{ $ref: "#/$defs/AnchorDescriptor" },
|
|
183
|
+
{ $ref: "#/$defs/LinkDescriptor" },
|
|
184
|
+
{ $ref: "#/$defs/ProvenanceDescriptor" },
|
|
185
|
+
{ $ref: "#/$defs/DivisionDescriptor" }
|
|
186
|
+
] },
|
|
187
|
+
StyleParagraphProperties: {
|
|
188
|
+
type: "object",
|
|
189
|
+
properties: {
|
|
190
|
+
alignment: { $ref: "#/$defs/Alignment" },
|
|
191
|
+
list: { $ref: "#/$defs/ContentListMembership" },
|
|
192
|
+
spacingBeforePt: { type: "number" },
|
|
193
|
+
spacingAfterPt: { type: "number" },
|
|
194
|
+
lineSpacing: {
|
|
195
|
+
type: "number",
|
|
196
|
+
exclusiveMinimum: 0
|
|
197
|
+
},
|
|
198
|
+
indentLeftPt: { type: "number" },
|
|
199
|
+
indentFirstLinePt: { type: "number" },
|
|
200
|
+
pageBreakBefore: { type: "boolean" },
|
|
201
|
+
pageBreakAfter: { type: "boolean" }
|
|
202
|
+
},
|
|
203
|
+
additionalProperties: false
|
|
204
|
+
},
|
|
205
|
+
StyleRunProperties: {
|
|
206
|
+
type: "object",
|
|
207
|
+
properties: {
|
|
208
|
+
bold: { type: "boolean" },
|
|
209
|
+
italic: { type: "boolean" },
|
|
210
|
+
underline: { type: "boolean" },
|
|
211
|
+
strike: { type: "boolean" },
|
|
212
|
+
fontFamily: { type: "string" },
|
|
213
|
+
sizePt: {
|
|
214
|
+
type: "number",
|
|
215
|
+
exclusiveMinimum: 0
|
|
216
|
+
},
|
|
217
|
+
color: { $ref: "#/$defs/Color" }
|
|
218
|
+
},
|
|
219
|
+
additionalProperties: false
|
|
220
|
+
},
|
|
221
|
+
StyleEntry: {
|
|
222
|
+
type: "object",
|
|
223
|
+
properties: {
|
|
224
|
+
paragraph: { $ref: "#/$defs/StyleParagraphProperties" },
|
|
225
|
+
run: { $ref: "#/$defs/StyleRunProperties" }
|
|
226
|
+
},
|
|
227
|
+
additionalProperties: false
|
|
228
|
+
},
|
|
229
|
+
DefinitionEntry: {
|
|
230
|
+
type: "object",
|
|
231
|
+
properties: { kind: { type: "string" } },
|
|
232
|
+
required: ["kind"],
|
|
233
|
+
additionalProperties: {}
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
//#endregion
|
|
237
|
+
exports.DEFS_TREE = DEFS_TREE;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { MAX_SAFE_INTEGER } from "./json-schema-defs-shared.js";
|
|
2
|
+
//#region src/json-schema-defs-tree.ts
|
|
3
|
+
const DEFS_TREE = {
|
|
4
|
+
ContentControlDescriptor: {
|
|
5
|
+
type: "object",
|
|
6
|
+
properties: {
|
|
7
|
+
kind: {
|
|
8
|
+
type: "string",
|
|
9
|
+
const: "contentControl"
|
|
10
|
+
},
|
|
11
|
+
controlType: {
|
|
12
|
+
type: "string",
|
|
13
|
+
enum: [
|
|
14
|
+
"richText",
|
|
15
|
+
"plainText",
|
|
16
|
+
"checkbox",
|
|
17
|
+
"dropDown",
|
|
18
|
+
"comboBox",
|
|
19
|
+
"date",
|
|
20
|
+
"picture",
|
|
21
|
+
"repeatingSection",
|
|
22
|
+
"button",
|
|
23
|
+
"index",
|
|
24
|
+
"group"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
tag: { type: "string" },
|
|
28
|
+
alias: { type: "string" },
|
|
29
|
+
lock: {
|
|
30
|
+
type: "string",
|
|
31
|
+
enum: [
|
|
32
|
+
"content",
|
|
33
|
+
"container",
|
|
34
|
+
"both"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
value: { type: "string" },
|
|
38
|
+
checked: { type: "boolean" },
|
|
39
|
+
options: {
|
|
40
|
+
type: "array",
|
|
41
|
+
items: { type: "string" }
|
|
42
|
+
},
|
|
43
|
+
source: { $ref: "#/$defs/SourceResidue" }
|
|
44
|
+
},
|
|
45
|
+
required: ["kind", "controlType"],
|
|
46
|
+
additionalProperties: false
|
|
47
|
+
},
|
|
48
|
+
FieldDescriptor: {
|
|
49
|
+
type: "object",
|
|
50
|
+
properties: {
|
|
51
|
+
kind: {
|
|
52
|
+
type: "string",
|
|
53
|
+
const: "field"
|
|
54
|
+
},
|
|
55
|
+
instruction: { type: "string" },
|
|
56
|
+
cachedResult: { type: "string" },
|
|
57
|
+
source: { $ref: "#/$defs/SourceResidue" }
|
|
58
|
+
},
|
|
59
|
+
required: ["kind", "instruction"],
|
|
60
|
+
additionalProperties: false
|
|
61
|
+
},
|
|
62
|
+
AnchorDescriptor: {
|
|
63
|
+
type: "object",
|
|
64
|
+
properties: {
|
|
65
|
+
kind: {
|
|
66
|
+
type: "string",
|
|
67
|
+
const: "anchor"
|
|
68
|
+
},
|
|
69
|
+
anchorType: {
|
|
70
|
+
type: "string",
|
|
71
|
+
enum: [
|
|
72
|
+
"bookmark",
|
|
73
|
+
"footnote",
|
|
74
|
+
"endnote",
|
|
75
|
+
"comment"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
name: { type: "string" },
|
|
79
|
+
definition: { type: "string" },
|
|
80
|
+
source: { $ref: "#/$defs/SourceResidue" }
|
|
81
|
+
},
|
|
82
|
+
required: [
|
|
83
|
+
"kind",
|
|
84
|
+
"anchorType",
|
|
85
|
+
"name"
|
|
86
|
+
],
|
|
87
|
+
additionalProperties: false
|
|
88
|
+
},
|
|
89
|
+
LinkTarget: { oneOf: [{
|
|
90
|
+
type: "object",
|
|
91
|
+
properties: {
|
|
92
|
+
kind: {
|
|
93
|
+
type: "string",
|
|
94
|
+
const: "external"
|
|
95
|
+
},
|
|
96
|
+
uri: { type: "string" }
|
|
97
|
+
},
|
|
98
|
+
required: ["kind", "uri"],
|
|
99
|
+
additionalProperties: false
|
|
100
|
+
}, {
|
|
101
|
+
type: "object",
|
|
102
|
+
properties: {
|
|
103
|
+
kind: {
|
|
104
|
+
type: "string",
|
|
105
|
+
const: "internal"
|
|
106
|
+
},
|
|
107
|
+
anchor: { type: "string" }
|
|
108
|
+
},
|
|
109
|
+
required: ["kind", "anchor"],
|
|
110
|
+
additionalProperties: false
|
|
111
|
+
}] },
|
|
112
|
+
LinkDescriptor: {
|
|
113
|
+
type: "object",
|
|
114
|
+
properties: {
|
|
115
|
+
kind: {
|
|
116
|
+
type: "string",
|
|
117
|
+
const: "link"
|
|
118
|
+
},
|
|
119
|
+
target: { $ref: "#/$defs/LinkTarget" },
|
|
120
|
+
title: { type: "string" },
|
|
121
|
+
source: { $ref: "#/$defs/SourceResidue" }
|
|
122
|
+
},
|
|
123
|
+
required: ["kind", "target"],
|
|
124
|
+
additionalProperties: false
|
|
125
|
+
},
|
|
126
|
+
ProvenanceDescriptor: {
|
|
127
|
+
type: "object",
|
|
128
|
+
properties: {
|
|
129
|
+
kind: {
|
|
130
|
+
type: "string",
|
|
131
|
+
const: "provenance"
|
|
132
|
+
},
|
|
133
|
+
change: {
|
|
134
|
+
type: "string",
|
|
135
|
+
enum: [
|
|
136
|
+
"insertion",
|
|
137
|
+
"deletion",
|
|
138
|
+
"moveFrom",
|
|
139
|
+
"moveTo",
|
|
140
|
+
"formatChange"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
author: { type: "string" },
|
|
144
|
+
dateIso: { type: "string" },
|
|
145
|
+
source: { $ref: "#/$defs/SourceResidue" }
|
|
146
|
+
},
|
|
147
|
+
required: ["kind", "change"],
|
|
148
|
+
additionalProperties: false
|
|
149
|
+
},
|
|
150
|
+
DivisionSource: {
|
|
151
|
+
type: "object",
|
|
152
|
+
properties: {
|
|
153
|
+
href: { type: "string" },
|
|
154
|
+
sectionName: { type: "string" }
|
|
155
|
+
},
|
|
156
|
+
required: ["href"],
|
|
157
|
+
additionalProperties: false
|
|
158
|
+
},
|
|
159
|
+
DivisionDescriptor: {
|
|
160
|
+
type: "object",
|
|
161
|
+
properties: {
|
|
162
|
+
kind: {
|
|
163
|
+
type: "string",
|
|
164
|
+
const: "division"
|
|
165
|
+
},
|
|
166
|
+
name: { type: "string" },
|
|
167
|
+
columnCount: {
|
|
168
|
+
type: "integer",
|
|
169
|
+
exclusiveMinimum: 0,
|
|
170
|
+
maximum: MAX_SAFE_INTEGER
|
|
171
|
+
},
|
|
172
|
+
protected: { type: "boolean" },
|
|
173
|
+
linked: { $ref: "#/$defs/DivisionSource" },
|
|
174
|
+
source: { $ref: "#/$defs/SourceResidue" }
|
|
175
|
+
},
|
|
176
|
+
required: ["kind"],
|
|
177
|
+
additionalProperties: false
|
|
178
|
+
},
|
|
179
|
+
ConstructDescriptor: { oneOf: [
|
|
180
|
+
{ $ref: "#/$defs/ContentControlDescriptor" },
|
|
181
|
+
{ $ref: "#/$defs/FieldDescriptor" },
|
|
182
|
+
{ $ref: "#/$defs/AnchorDescriptor" },
|
|
183
|
+
{ $ref: "#/$defs/LinkDescriptor" },
|
|
184
|
+
{ $ref: "#/$defs/ProvenanceDescriptor" },
|
|
185
|
+
{ $ref: "#/$defs/DivisionDescriptor" }
|
|
186
|
+
] },
|
|
187
|
+
StyleParagraphProperties: {
|
|
188
|
+
type: "object",
|
|
189
|
+
properties: {
|
|
190
|
+
alignment: { $ref: "#/$defs/Alignment" },
|
|
191
|
+
list: { $ref: "#/$defs/ContentListMembership" },
|
|
192
|
+
spacingBeforePt: { type: "number" },
|
|
193
|
+
spacingAfterPt: { type: "number" },
|
|
194
|
+
lineSpacing: {
|
|
195
|
+
type: "number",
|
|
196
|
+
exclusiveMinimum: 0
|
|
197
|
+
},
|
|
198
|
+
indentLeftPt: { type: "number" },
|
|
199
|
+
indentFirstLinePt: { type: "number" },
|
|
200
|
+
pageBreakBefore: { type: "boolean" },
|
|
201
|
+
pageBreakAfter: { type: "boolean" }
|
|
202
|
+
},
|
|
203
|
+
additionalProperties: false
|
|
204
|
+
},
|
|
205
|
+
StyleRunProperties: {
|
|
206
|
+
type: "object",
|
|
207
|
+
properties: {
|
|
208
|
+
bold: { type: "boolean" },
|
|
209
|
+
italic: { type: "boolean" },
|
|
210
|
+
underline: { type: "boolean" },
|
|
211
|
+
strike: { type: "boolean" },
|
|
212
|
+
fontFamily: { type: "string" },
|
|
213
|
+
sizePt: {
|
|
214
|
+
type: "number",
|
|
215
|
+
exclusiveMinimum: 0
|
|
216
|
+
},
|
|
217
|
+
color: { $ref: "#/$defs/Color" }
|
|
218
|
+
},
|
|
219
|
+
additionalProperties: false
|
|
220
|
+
},
|
|
221
|
+
StyleEntry: {
|
|
222
|
+
type: "object",
|
|
223
|
+
properties: {
|
|
224
|
+
paragraph: { $ref: "#/$defs/StyleParagraphProperties" },
|
|
225
|
+
run: { $ref: "#/$defs/StyleRunProperties" }
|
|
226
|
+
},
|
|
227
|
+
additionalProperties: false
|
|
228
|
+
},
|
|
229
|
+
DefinitionEntry: {
|
|
230
|
+
type: "object",
|
|
231
|
+
properties: { kind: { type: "string" } },
|
|
232
|
+
required: ["kind"],
|
|
233
|
+
additionalProperties: {}
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
//#endregion
|
|
237
|
+
export { DEFS_TREE };
|