pro-editor-schema 1.1.3 → 1.1.5

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/index.d.ts CHANGED
@@ -25,7 +25,319 @@ type ElementSchemaCode = "referenceBibliomixed" | "referenceBibliography" | "bib
25
25
  type AtomSchemaCode = "indexterm" | "primary" | "secondary" | "tertiary" | "quaternary" | "bookmark" | "see" | "commentQuerySection" | "comment" | "content" | "query" | "reply" | "deletion" | "emphasis" | "highlightmark" | "i" | "insertion" | "sc" | "strike" | "sub" | "sup" | "u" | "b" | "referenceMark" | "abbreviation";
26
26
  type InlineSchemaCode = "footnote1" | "inlineequation" | "link" | "uri" | "phrase";
27
27
 
28
- declare const SCHEMAS: Record<SchemaCode, Schema>;
28
+ declare const SCHEMAS: {
29
+ uri: Schema<readonly ["store", "ele-id"], readonly ["xlinkhref"]>;
30
+ footnote1: Schema<readonly ["store", "ele-id", {
31
+ readonly name: "role";
32
+ readonly values: string[];
33
+ readonly defaultValue: "end-ch-note";
34
+ }, "label", "linkend"], readonly []>;
35
+ link: Schema<readonly ["store", "ele-id", "linkend", {
36
+ readonly name: "role";
37
+ readonly values: readonly ["table", "figure", "equation", "footnote", "bibr", "chapter"];
38
+ readonly defaultValue: "bibr";
39
+ }], readonly ["data-target-id"]>;
40
+ inlineequation: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
41
+ readonly name: "eqn-data";
42
+ readonly values: readonly ["new", "updated"];
43
+ readonly defaultValue: "new";
44
+ }, {
45
+ readonly name: "element-status";
46
+ readonly values: readonly ["added", "changed"];
47
+ readonly defaultValue: "added";
48
+ }]>;
49
+ phrase: Schema<readonly ["store", "ele-id", "xml:lang"], readonly []>;
50
+ bibliodiv: Schema<readonly ["store", "ele-id", {
51
+ readonly name: "role";
52
+ readonly values: readonly ["H1", "H2", "H3", "H4", "H5", "H6"];
53
+ readonly defaultValue: "H1";
54
+ }], readonly []>;
55
+ referenceBibliography: Schema<readonly ["store", "ele-id", "xmlid", {
56
+ readonly name: "role";
57
+ readonly values: readonly ["chapterend"];
58
+ readonly defaultValue: "chapterend";
59
+ }, {
60
+ readonly name: "doc-type";
61
+ readonly values: readonly ["doc-bibliography"];
62
+ readonly defaultValue: "doc-bibliography";
63
+ }], readonly []>;
64
+ referenceBibliomixed: Schema<readonly ["store", "ele-id", "xmlid", "role"], readonly ["track-role", "data-userid", "data-date"]>;
65
+ para: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-alignment", "data-left-indent", "data-right-indent", "data-special-indent", "data-space-above", "data-space-below", "data-indent-type", "data-layout-user", "data-paragraph-style", "xmlid", "role", "data-pos"]>;
66
+ title1: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-alignment", "data-left-indent", "data-right-indent", "data-special-indent", "data-space-above", "data-space-below", "data-indent-type", "data-layout-user", "data-paragraph-style", "role", {
67
+ readonly name: "fm-role";
68
+ readonly values: readonly ["true", "false"];
69
+ readonly defaultValue: "false";
70
+ }, {
71
+ readonly name: "title";
72
+ readonly values: readonly ["H1", "H2", "H3", "H4", "H5", "H6", "foot_note"];
73
+ readonly defaultValue: "H1";
74
+ }]>;
75
+ footnote: Schema<readonly ["store", "ele-id", "label", "xmlid", {
76
+ readonly name: "role";
77
+ readonly values: readonly ["end-bk-note", "end-ch-note"];
78
+ readonly defaultValue: "end-ch-note";
79
+ }], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
80
+ footnoteno: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
81
+ olink: Schema<readonly ["store", "ele-id"], readonly []>;
82
+ firstname: Schema<readonly ["store", "ele-id"], readonly []>;
83
+ surname: Schema<readonly ["store", "ele-id"], readonly []>;
84
+ honorific: Schema<readonly ["store", "ele-id"], readonly []>;
85
+ orgname: Schema<readonly ["store", "ele-id"], readonly []>;
86
+ email: Schema<readonly ["store", "ele-id"], readonly []>;
87
+ org: Schema<readonly ["store", "ele-id"], readonly []>;
88
+ degrees: Schema<readonly ["store", "ele-id"], readonly []>;
89
+ dialogue: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
90
+ readonly name: "role";
91
+ readonly values: readonly ["add-element"];
92
+ readonly defaultValue: "add-element";
93
+ }]>;
94
+ line: Schema<readonly ["store", "ele-id"], readonly [{
95
+ readonly name: "role";
96
+ readonly values: readonly ["add-element"];
97
+ readonly defaultValue: "add-element";
98
+ }]>;
99
+ speaker: Schema<readonly ["store", "ele-id"], readonly [{
100
+ readonly name: "role";
101
+ readonly values: readonly ["add-element"];
102
+ readonly defaultValue: "add-element";
103
+ }]>;
104
+ equation: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
105
+ readonly name: "eqn-data";
106
+ readonly values: readonly ["new", "updated"];
107
+ readonly defaultValue: "new";
108
+ }, {
109
+ readonly name: "element-status";
110
+ readonly values: readonly ["added", "changed"];
111
+ readonly defaultValue: "added";
112
+ }]>;
113
+ math: Schema<readonly [], readonly ["xmlns", "display"]>;
114
+ mathphrase: Schema<readonly ["ele-id"], readonly []>;
115
+ merror: Schema<readonly [], readonly []>;
116
+ mfrac: Schema<readonly [], readonly ["denomalign", "linethickness", "numalign"]>;
117
+ mi: Schema<readonly [], readonly ["mathvariant"]>;
118
+ mmultiscripts: Schema<readonly [], readonly ["subscriptshift", "superscriptshift"]>;
119
+ mn: Schema<readonly [], readonly []>;
120
+ mo: Schema<readonly [], readonly ["accent", "fence", "form", "largeop", "lspace", "maxsize", "minsize", "movablelimits", "rspace", "separator", "stretchy", "symmetric"]>;
121
+ mover: Schema<readonly [], readonly ["accent"]>;
122
+ mpadded: Schema<readonly [], readonly ["depth", "height", "lspace", "voffset", "width"]>;
123
+ mphantom: Schema<readonly [], readonly []>;
124
+ mprescripts: Schema<readonly [], readonly []>;
125
+ mroot: Schema<readonly [], readonly []>;
126
+ mrow: Schema<readonly [], readonly []>;
127
+ ms: Schema<readonly [], readonly ["lquote", "rquote"]>;
128
+ mspace: Schema<readonly [], readonly ["depth", "height", "width"]>;
129
+ msqrt: Schema<readonly [], readonly []>;
130
+ mstyle: Schema<readonly [], readonly ["displaystyle", "mathbackground", "mathcolor", "mathsize", "scriptlevel", "scriptminsize", "scriptsizemultiplier"]>;
131
+ msub: Schema<readonly [], readonly ["subscriptshift"]>;
132
+ msubsup: Schema<readonly [], readonly ["subscriptshift", "superscriptshift"]>;
133
+ msup: Schema<readonly [], readonly ["superscriptshift"]>;
134
+ mtable: Schema<readonly [], readonly ["align", "columnalign", "columnlines", "columnspacing", "displaystyle", "equalcolumns", "equalrows", "frame", "rowalign", "rowlines", "rowspacing", "width"]>;
135
+ mtd: Schema<readonly [], readonly ["columnalign", "columnspan", "rowalign", "rowspan"]>;
136
+ mtext: Schema<readonly [], readonly ["mathvariant"]>;
137
+ mtr: Schema<readonly [], readonly ["columnalign", "rowalign"]>;
138
+ munder: Schema<readonly [], readonly ["accentunder"]>;
139
+ munderover: Schema<readonly [], readonly ["accent", "accentunder"]>;
140
+ img: Schema<readonly ["store", "ele-id", "src", "format"], readonly ["alt", "data-track-alt", "data-alignment", "before-replace-img", "data-prev-alt", {
141
+ readonly name: "role";
142
+ readonly values: readonly ["inline-graphics", "presentation"];
143
+ readonly defaultValue: "inline-graphics";
144
+ }]>;
145
+ alttext: Schema<readonly [], readonly []>;
146
+ imageobject: Schema<readonly ["store", "ele-id"], readonly []>;
147
+ mediaobject: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
148
+ caption1: Schema<readonly ["store", "ele-id"], readonly []>;
149
+ figsource: Schema<readonly ["store", "ele-id"], readonly []>;
150
+ fignote: Schema<readonly ["store", "ele-id"], readonly []>;
151
+ figure1: Schema<readonly ["store", "ele-id", "xmlid"], readonly ["data-username", "data-userid", "data-time", "data-date", ...string[], "linkend_fig", "data-anchor-id"]>;
152
+ informalfigure: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-anchor-id"]>;
153
+ keywordset: Schema<readonly ["store", "ele-id", {
154
+ readonly name: "role";
155
+ readonly values: readonly ["xmlonly", "both"];
156
+ readonly defaultValue: "both";
157
+ }], readonly []>;
158
+ keyword: Schema<readonly ["store", "ele-id"], readonly ["data-pos"]>;
159
+ punc: Schema<readonly ["store", "ele-id"], readonly ["data-role"]>;
160
+ label1: Schema<readonly ["store", "ele-id"], readonly ["data-alignment", "data-left-indent", "data-right-indent", "data-special-indent", "data-space-above", "data-space-below", "data-indent-type", "data-layout-user", "data-paragraph-style", {
161
+ readonly name: "fm-role";
162
+ readonly values: readonly ["true", "false"];
163
+ readonly defaultValue: "false";
164
+ }]>;
165
+ li: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "token", "element-change-description", {
166
+ readonly name: "role";
167
+ readonly values: readonly ["list-item-added", "add-element", "list-item-split", "level-list"];
168
+ readonly defaultValue: "add-element";
169
+ }]>;
170
+ ol: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-tagname", {
171
+ readonly name: "role";
172
+ readonly values: readonly ["add-element", "change-style", "change-para-list", "change-element", "changed-element", "LIST1", "LIST2", "LIST3"];
173
+ readonly defaultValue: "add-element";
174
+ }, {
175
+ readonly name: "oldliststyle";
176
+ readonly values: readonly ["bullet", "numbering", "roman", "none"];
177
+ readonly defaultValue: "bullet";
178
+ }, {
179
+ readonly name: "oldmark";
180
+ readonly values: readonly ["disc", "circle", "square", "dash", "ast", "checkbox"];
181
+ readonly defaultValue: "disc";
182
+ }]>;
183
+ ul: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-tagname", {
184
+ readonly name: "role";
185
+ readonly values: readonly ["add-element", "change-style", "change-para-list", "change-element", "LIST1", "LIST2", "LIST3"];
186
+ readonly defaultValue: "add-element";
187
+ }, {
188
+ readonly name: "oldliststyle";
189
+ readonly values: readonly ["bullet", "numbering", "roman", "none"];
190
+ readonly defaultValue: "bullet";
191
+ }, {
192
+ readonly name: "mark";
193
+ readonly values: readonly ["disc", "circle", "square", "dash", "ast", "checkbox"];
194
+ readonly defaultValue: "disc";
195
+ }, {
196
+ readonly name: "oldmark";
197
+ readonly values: readonly ["disc", "circle", "square", "dash", "ast", "checkbox"];
198
+ readonly defaultValue: "disc";
199
+ }]>;
200
+ token: Schema<readonly ["store", "ele-id"], readonly []>;
201
+ tag: Schema<readonly ["store", "ele-id", "data-id"], readonly []>;
202
+ lrh: Schema<readonly ["store", "ele-id"], readonly []>;
203
+ rrh: Schema<readonly ["store", "ele-id"], readonly []>;
204
+ source1: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
205
+ readonly name: "role";
206
+ readonly values: readonly ["add-element"];
207
+ readonly defaultValue: "add-element";
208
+ }]>;
209
+ subtitle1: Schema<readonly ["store", "ele-id"], readonly [{
210
+ readonly name: "role";
211
+ readonly values: readonly ["add-element"];
212
+ readonly defaultValue: "add-element";
213
+ }]>;
214
+ table1: Schema<readonly ["store", "ele-id", {
215
+ readonly name: "role";
216
+ readonly values: readonly ["inline", "float"];
217
+ readonly defaultValue: "inline";
218
+ }], readonly ["data-username", "data-userid", "data-time", "data-date", ...string[], "data-anchor-id", "linkend_tbl", "id", "orient", "xmlid"]>;
219
+ tgroup: Schema<readonly ["store", "ele-id", "cols"], readonly []>;
220
+ table: Schema<readonly [], readonly ["store", "ele-id"]>;
221
+ thead: Schema<readonly [], readonly ["store", "ele-id"]>;
222
+ tbody: Schema<readonly [], readonly ["store", "ele-id"]>;
223
+ tr: Schema<readonly [], readonly ["data-alignment", "data-left-indent", "data-right-indent", "data-special-indent", "data-space-above", "data-space-below", "data-indent-type", "data-layout-user", "data-paragraph-style", "store", "ele-id", "width"]>;
224
+ td: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-cell-width", "width"]>;
225
+ tp: Schema<readonly [], readonly ["store", "ele-id"]>;
226
+ tblfn: Schema<readonly ["store", "ele-id"], readonly []>;
227
+ tblsource: Schema<readonly [], readonly []>;
228
+ heading: Schema<readonly ["store", "ele-id", "xmlid", {
229
+ readonly name: "role";
230
+ readonly values: string[];
231
+ readonly defaultValue: "H1";
232
+ }], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
233
+ footnoteSection: Schema<readonly ["store", "ele-id", {
234
+ readonly name: "role";
235
+ readonly values: string[];
236
+ readonly defaultValue: "ch";
237
+ }], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
238
+ chapter: Schema<readonly ["store", "ele-id", "xmlid"], readonly ["role", "data-paragraph-numbering-padding", "data-paragraph-numbering-format", "data-paragraph-numbering-elements", "data-paragraph-numbering-chapters"]>;
239
+ info1: Schema<readonly ["store", "ele-id"], readonly []>;
240
+ abstract1: Schema<readonly ["store", "ele-id", {
241
+ readonly name: "role";
242
+ readonly values: readonly ["xmlonly", "both"];
243
+ readonly defaultValue: "both";
244
+ }], readonly ["data-username", "data-userid", "data-time", "data-date", {
245
+ readonly name: "abstract_type";
246
+ readonly values: readonly ["blurb"];
247
+ readonly defaultValue: "blurb";
248
+ }]>;
249
+ epigraph: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-tagname", {
250
+ readonly name: "role";
251
+ readonly values: readonly ["add-element", "change-element"];
252
+ readonly defaultValue: "add-element";
253
+ }]>;
254
+ poem: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "role"]>;
255
+ blockquote: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "xmlid", "data-tagname", "element-change-description", {
256
+ readonly name: "role";
257
+ readonly values: readonly ["add-element", "extract_group", "change-element"];
258
+ readonly defaultValue: "add-element";
259
+ }]>;
260
+ sidebar: Schema<readonly ["store", "ele-id", {
261
+ readonly name: "status";
262
+ readonly values: readonly ["box1", "box2", "box3", "box4", "box5"];
263
+ readonly defaultValue: "box1";
264
+ }], readonly ["data-username", "data-userid", "data-time", "data-date", "xmlid", {
265
+ readonly name: "role";
266
+ readonly values: readonly ["add-element", "change-para-box"];
267
+ readonly defaultValue: "add-element";
268
+ }]>;
269
+ appendix: Schema<readonly ["store", "ele-id", "id", "xmlid"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
270
+ authorgroup: Schema<readonly ["store", "ele-id"], readonly []>;
271
+ author: Schema<readonly ["store", "ele-id"], readonly []>;
272
+ personname: Schema<readonly ["store", "ele-id"], readonly []>;
273
+ affiliation: Schema<readonly ["store", "ele-id"], readonly []>;
274
+ indexterm: Schema<readonly ["linkend", {
275
+ readonly name: "index-level";
276
+ readonly values: readonly ["PRIMARY", "SECONDARY", "TERTIARY", "QUATERNARY"];
277
+ readonly defaultValue: "PRIMARY";
278
+ }, "store", "ele-id"], readonly []>;
279
+ primary: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id"], readonly []>;
280
+ secondary: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id"], readonly []>;
281
+ tertiary: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id"], readonly []>;
282
+ quaternary: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id"], readonly []>;
283
+ bookmark: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id", {
284
+ readonly name: "index-position";
285
+ readonly values: readonly ["start", "end"];
286
+ readonly defaultValue: "";
287
+ }], readonly []>;
288
+ see: Schema<readonly ["linkend", "data-user", "crossref-pagenumber", {
289
+ readonly name: "role";
290
+ readonly values: readonly ["see", "see-also"];
291
+ readonly defaultValue: "";
292
+ }, "store", "ele-id", "data-date", "crossref-firstentry", "crossref-secondentry", "crossref-thirdentry", "crossref-fourthentry"], readonly []>;
293
+ b: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
294
+ referenceMark: Schema<readonly ["store", "ele-id", "data-date", "data-username", "data-userid", {
295
+ readonly name: "data-position";
296
+ readonly values: readonly ["single", "middle", "start", "end"];
297
+ readonly defaultValue: "single";
298
+ }], readonly []>;
299
+ i: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
300
+ u: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
301
+ sc: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
302
+ emphasis: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
303
+ readonly name: "role";
304
+ readonly values: readonly ["lowercase", "uppercase", "initialcaps"];
305
+ readonly defaultValue: "lowercase";
306
+ }]>;
307
+ strike: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
308
+ sub: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
309
+ sup: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
310
+ highlightmark: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
311
+ commentQuerySection: Schema<readonly ["store", "ele-id", "id"], readonly ["data-username", "data-userid", "data-time", "data-date", "title"]>;
312
+ insertion: Schema<readonly ["data-username", "data-userid", "data-time", "data-date", "store", "ele-id"], readonly [{
313
+ readonly name: "role";
314
+ readonly values: readonly ["web-link", "figure-note-link", "figsource"];
315
+ readonly defaultValue: "";
316
+ }]>;
317
+ deletion: Schema<readonly ["data-username", "data-userid", "data-time", "data-date", "store", "ele-id"], readonly []>;
318
+ content: Schema<readonly ["store", "ele-id"], readonly []>;
319
+ comment: Schema<readonly ["store", "ele-id", "id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
320
+ readonly name: "status";
321
+ readonly values: readonly ["marks-done", "marks-open"];
322
+ readonly defaultValue: "marks-open";
323
+ }, "title", "markuser", "marktime"]>;
324
+ query: Schema<readonly ["store", "ele-id", "id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
325
+ readonly name: "status";
326
+ readonly values: readonly ["marks-done", "marks-open"];
327
+ readonly defaultValue: "marks-open";
328
+ }, "title", "markuser", "marktime"]>;
329
+ reply: Schema<readonly ["store", "ele-id", "id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
330
+ readonly name: "status";
331
+ readonly values: readonly ["marks-done", "marks-open"];
332
+ readonly defaultValue: "marks-open";
333
+ }, "title", "markuser", "marktime"]>;
334
+ abbreviation: Schema<readonly ["store", "ele-id", "title", "data-time", "data-userid", "data-username", {
335
+ readonly name: "data-abbr-action";
336
+ readonly values: readonly ["add", "edit"];
337
+ readonly defaultValue: "add";
338
+ }], readonly []>;
339
+ };
340
+ type SchemasByCode = typeof SCHEMAS;
29
341
 
30
342
  declare const isTrackChangesSchema: (schema: Schema) => boolean;
31
343
  declare const isIgnoredAttribute: (attribute: string) => boolean;
@@ -38,16 +350,16 @@ declare const getAttributeName: (attribute: AttributeDefinition) => string;
38
350
  declare const findAttributeDefinitionByName: (definitions: readonly AttributeDefinition[], name: string) => AttributeDefinition | undefined;
39
351
 
40
352
  type AttributeValue<TAttribute extends AttributeDefinition> = TAttribute extends string ? string : TAttribute extends RestrictedAttribute<infer TValues> ? TValues extends readonly string[] ? TValues[number] : string : never;
41
- type SchemaAttributes<TSchema extends Schema> = TSchema extends Schema<infer TRequired extends readonly AttributeDefinition[], infer TOptional extends readonly AttributeDefinition[]> ? {
42
- [TAttribute in TRequired[number] as TAttribute extends string ? TAttribute : TAttribute extends RestrictedAttribute ? TAttribute["name"] : never]: AttributeValue<TAttribute>;
43
- } & {
44
- [TAttribute in TOptional[number] as TAttribute extends string ? TAttribute : TAttribute extends RestrictedAttribute ? TAttribute["name"] : never]?: AttributeValue<TAttribute>;
45
- } : never;
46
- type CreateElementParams<TSchema extends Schema> = {
47
- schemaCode: SchemaCode;
48
- attributes: SchemaAttributes<TSchema>;
353
+ type AttributeName<TAttribute extends AttributeDefinition> = TAttribute extends string ? TAttribute : TAttribute extends RestrictedAttribute ? TAttribute["name"] : never;
354
+ type AttributesFromDefinitions<TDefinitions extends readonly AttributeDefinition[]> = {
355
+ [TAttribute in TDefinitions[number] as AttributeName<TAttribute>]: AttributeValue<TAttribute>;
356
+ };
357
+ type SchemaAttributes<TSchema extends Schema> = TSchema extends Schema<infer TRequired extends readonly AttributeDefinition[], infer TOptional extends readonly AttributeDefinition[]> ? AttributesFromDefinitions<TRequired> & Partial<AttributesFromDefinitions<TOptional>> : never;
358
+ type CreateElementParams<TCode extends SchemaCode> = {
359
+ schemaCode: TCode;
360
+ attributes: SchemaAttributes<SchemasByCode[TCode]>;
49
361
  };
50
- declare const createElement: <TSchema extends Schema>({ schemaCode, attributes, }: CreateElementParams<TSchema>) => HTMLElement;
362
+ declare const createElement: <TCode extends SchemaCode>({ schemaCode, attributes, }: CreateElementParams<TCode>) => HTMLElement;
51
363
 
52
364
  declare const ElementLabel: Record<SchemaCode, string>;
53
365
 
@@ -86,11 +398,324 @@ declare const ELE_ID_ATTRIBUTE = "ele-id";
86
398
  declare const STORE_ATTRIBUTE = "store";
87
399
  declare const ID_ATTRS: readonly ["store", "ele-id"];
88
400
 
89
- declare const ELEMENT_SCHEMAS: Record<ElementSchemaCode, Schema>;
401
+ declare const ELEMENT_SCHEMAS: {
402
+ bibliodiv: Schema<readonly ["store", "ele-id", {
403
+ readonly name: "role";
404
+ readonly values: readonly ["H1", "H2", "H3", "H4", "H5", "H6"];
405
+ readonly defaultValue: "H1";
406
+ }], readonly []>;
407
+ referenceBibliography: Schema<readonly ["store", "ele-id", "xmlid", {
408
+ readonly name: "role";
409
+ readonly values: readonly ["chapterend"];
410
+ readonly defaultValue: "chapterend";
411
+ }, {
412
+ readonly name: "doc-type";
413
+ readonly values: readonly ["doc-bibliography"];
414
+ readonly defaultValue: "doc-bibliography";
415
+ }], readonly []>;
416
+ referenceBibliomixed: Schema<readonly ["store", "ele-id", "xmlid", "role"], readonly ["track-role", "data-userid", "data-date"]>;
417
+ para: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-alignment", "data-left-indent", "data-right-indent", "data-special-indent", "data-space-above", "data-space-below", "data-indent-type", "data-layout-user", "data-paragraph-style", "xmlid", "role", "data-pos"]>;
418
+ title1: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-alignment", "data-left-indent", "data-right-indent", "data-special-indent", "data-space-above", "data-space-below", "data-indent-type", "data-layout-user", "data-paragraph-style", "role", {
419
+ readonly name: "fm-role";
420
+ readonly values: readonly ["true", "false"];
421
+ readonly defaultValue: "false";
422
+ }, {
423
+ readonly name: "title";
424
+ readonly values: readonly ["H1", "H2", "H3", "H4", "H5", "H6", "foot_note"];
425
+ readonly defaultValue: "H1";
426
+ }]>;
427
+ footnote: Schema<readonly ["store", "ele-id", "label", "xmlid", {
428
+ readonly name: "role";
429
+ readonly values: readonly ["end-bk-note", "end-ch-note"];
430
+ readonly defaultValue: "end-ch-note";
431
+ }], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
432
+ footnoteno: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
433
+ olink: Schema<readonly ["store", "ele-id"], readonly []>;
434
+ firstname: Schema<readonly ["store", "ele-id"], readonly []>;
435
+ surname: Schema<readonly ["store", "ele-id"], readonly []>;
436
+ honorific: Schema<readonly ["store", "ele-id"], readonly []>;
437
+ orgname: Schema<readonly ["store", "ele-id"], readonly []>;
438
+ email: Schema<readonly ["store", "ele-id"], readonly []>;
439
+ org: Schema<readonly ["store", "ele-id"], readonly []>;
440
+ degrees: Schema<readonly ["store", "ele-id"], readonly []>;
441
+ dialogue: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
442
+ readonly name: "role";
443
+ readonly values: readonly ["add-element"];
444
+ readonly defaultValue: "add-element";
445
+ }]>;
446
+ line: Schema<readonly ["store", "ele-id"], readonly [{
447
+ readonly name: "role";
448
+ readonly values: readonly ["add-element"];
449
+ readonly defaultValue: "add-element";
450
+ }]>;
451
+ speaker: Schema<readonly ["store", "ele-id"], readonly [{
452
+ readonly name: "role";
453
+ readonly values: readonly ["add-element"];
454
+ readonly defaultValue: "add-element";
455
+ }]>;
456
+ equation: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
457
+ readonly name: "eqn-data";
458
+ readonly values: readonly ["new", "updated"];
459
+ readonly defaultValue: "new";
460
+ }, {
461
+ readonly name: "element-status";
462
+ readonly values: readonly ["added", "changed"];
463
+ readonly defaultValue: "added";
464
+ }]>;
465
+ math: Schema<readonly [], readonly ["xmlns", "display"]>;
466
+ mathphrase: Schema<readonly ["ele-id"], readonly []>;
467
+ merror: Schema<readonly [], readonly []>;
468
+ mfrac: Schema<readonly [], readonly ["denomalign", "linethickness", "numalign"]>;
469
+ mi: Schema<readonly [], readonly ["mathvariant"]>;
470
+ mmultiscripts: Schema<readonly [], readonly ["subscriptshift", "superscriptshift"]>;
471
+ mn: Schema<readonly [], readonly []>;
472
+ mo: Schema<readonly [], readonly ["accent", "fence", "form", "largeop", "lspace", "maxsize", "minsize", "movablelimits", "rspace", "separator", "stretchy", "symmetric"]>;
473
+ mover: Schema<readonly [], readonly ["accent"]>;
474
+ mpadded: Schema<readonly [], readonly ["depth", "height", "lspace", "voffset", "width"]>;
475
+ mphantom: Schema<readonly [], readonly []>;
476
+ mprescripts: Schema<readonly [], readonly []>;
477
+ mroot: Schema<readonly [], readonly []>;
478
+ mrow: Schema<readonly [], readonly []>;
479
+ ms: Schema<readonly [], readonly ["lquote", "rquote"]>;
480
+ mspace: Schema<readonly [], readonly ["depth", "height", "width"]>;
481
+ msqrt: Schema<readonly [], readonly []>;
482
+ mstyle: Schema<readonly [], readonly ["displaystyle", "mathbackground", "mathcolor", "mathsize", "scriptlevel", "scriptminsize", "scriptsizemultiplier"]>;
483
+ msub: Schema<readonly [], readonly ["subscriptshift"]>;
484
+ msubsup: Schema<readonly [], readonly ["subscriptshift", "superscriptshift"]>;
485
+ msup: Schema<readonly [], readonly ["superscriptshift"]>;
486
+ mtable: Schema<readonly [], readonly ["align", "columnalign", "columnlines", "columnspacing", "displaystyle", "equalcolumns", "equalrows", "frame", "rowalign", "rowlines", "rowspacing", "width"]>;
487
+ mtd: Schema<readonly [], readonly ["columnalign", "columnspan", "rowalign", "rowspan"]>;
488
+ mtext: Schema<readonly [], readonly ["mathvariant"]>;
489
+ mtr: Schema<readonly [], readonly ["columnalign", "rowalign"]>;
490
+ munder: Schema<readonly [], readonly ["accentunder"]>;
491
+ munderover: Schema<readonly [], readonly ["accent", "accentunder"]>;
492
+ img: Schema<readonly ["store", "ele-id", "src", "format"], readonly ["alt", "data-track-alt", "data-alignment", "before-replace-img", "data-prev-alt", {
493
+ readonly name: "role";
494
+ readonly values: readonly ["inline-graphics", "presentation"];
495
+ readonly defaultValue: "inline-graphics";
496
+ }]>;
497
+ alttext: Schema<readonly [], readonly []>;
498
+ imageobject: Schema<readonly ["store", "ele-id"], readonly []>;
499
+ mediaobject: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
500
+ caption1: Schema<readonly ["store", "ele-id"], readonly []>;
501
+ figsource: Schema<readonly ["store", "ele-id"], readonly []>;
502
+ fignote: Schema<readonly ["store", "ele-id"], readonly []>;
503
+ figure1: Schema<readonly ["store", "ele-id", "xmlid"], readonly ["data-username", "data-userid", "data-time", "data-date", ...string[], "linkend_fig", "data-anchor-id"]>;
504
+ informalfigure: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-anchor-id"]>;
505
+ keywordset: Schema<readonly ["store", "ele-id", {
506
+ readonly name: "role";
507
+ readonly values: readonly ["xmlonly", "both"];
508
+ readonly defaultValue: "both";
509
+ }], readonly []>;
510
+ keyword: Schema<readonly ["store", "ele-id"], readonly ["data-pos"]>;
511
+ punc: Schema<readonly ["store", "ele-id"], readonly ["data-role"]>;
512
+ label1: Schema<readonly ["store", "ele-id"], readonly ["data-alignment", "data-left-indent", "data-right-indent", "data-special-indent", "data-space-above", "data-space-below", "data-indent-type", "data-layout-user", "data-paragraph-style", {
513
+ readonly name: "fm-role";
514
+ readonly values: readonly ["true", "false"];
515
+ readonly defaultValue: "false";
516
+ }]>;
517
+ li: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "token", "element-change-description", {
518
+ readonly name: "role";
519
+ readonly values: readonly ["list-item-added", "add-element", "list-item-split", "level-list"];
520
+ readonly defaultValue: "add-element";
521
+ }]>;
522
+ ol: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-tagname", {
523
+ readonly name: "role";
524
+ readonly values: readonly ["add-element", "change-style", "change-para-list", "change-element", "changed-element", "LIST1", "LIST2", "LIST3"];
525
+ readonly defaultValue: "add-element";
526
+ }, {
527
+ readonly name: "oldliststyle";
528
+ readonly values: readonly ["bullet", "numbering", "roman", "none"];
529
+ readonly defaultValue: "bullet";
530
+ }, {
531
+ readonly name: "oldmark";
532
+ readonly values: readonly ["disc", "circle", "square", "dash", "ast", "checkbox"];
533
+ readonly defaultValue: "disc";
534
+ }]>;
535
+ ul: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-tagname", {
536
+ readonly name: "role";
537
+ readonly values: readonly ["add-element", "change-style", "change-para-list", "change-element", "LIST1", "LIST2", "LIST3"];
538
+ readonly defaultValue: "add-element";
539
+ }, {
540
+ readonly name: "oldliststyle";
541
+ readonly values: readonly ["bullet", "numbering", "roman", "none"];
542
+ readonly defaultValue: "bullet";
543
+ }, {
544
+ readonly name: "mark";
545
+ readonly values: readonly ["disc", "circle", "square", "dash", "ast", "checkbox"];
546
+ readonly defaultValue: "disc";
547
+ }, {
548
+ readonly name: "oldmark";
549
+ readonly values: readonly ["disc", "circle", "square", "dash", "ast", "checkbox"];
550
+ readonly defaultValue: "disc";
551
+ }]>;
552
+ token: Schema<readonly ["store", "ele-id"], readonly []>;
553
+ tag: Schema<readonly ["store", "ele-id", "data-id"], readonly []>;
554
+ lrh: Schema<readonly ["store", "ele-id"], readonly []>;
555
+ rrh: Schema<readonly ["store", "ele-id"], readonly []>;
556
+ source1: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
557
+ readonly name: "role";
558
+ readonly values: readonly ["add-element"];
559
+ readonly defaultValue: "add-element";
560
+ }]>;
561
+ subtitle1: Schema<readonly ["store", "ele-id"], readonly [{
562
+ readonly name: "role";
563
+ readonly values: readonly ["add-element"];
564
+ readonly defaultValue: "add-element";
565
+ }]>;
566
+ table1: Schema<readonly ["store", "ele-id", {
567
+ readonly name: "role";
568
+ readonly values: readonly ["inline", "float"];
569
+ readonly defaultValue: "inline";
570
+ }], readonly ["data-username", "data-userid", "data-time", "data-date", ...string[], "data-anchor-id", "linkend_tbl", "id", "orient", "xmlid"]>;
571
+ tgroup: Schema<readonly ["store", "ele-id", "cols"], readonly []>;
572
+ table: Schema<readonly [], readonly ["store", "ele-id"]>;
573
+ thead: Schema<readonly [], readonly ["store", "ele-id"]>;
574
+ tbody: Schema<readonly [], readonly ["store", "ele-id"]>;
575
+ tr: Schema<readonly [], readonly ["data-alignment", "data-left-indent", "data-right-indent", "data-special-indent", "data-space-above", "data-space-below", "data-indent-type", "data-layout-user", "data-paragraph-style", "store", "ele-id", "width"]>;
576
+ td: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-cell-width", "width"]>;
577
+ tp: Schema<readonly [], readonly ["store", "ele-id"]>;
578
+ tblfn: Schema<readonly ["store", "ele-id"], readonly []>;
579
+ tblsource: Schema<readonly [], readonly []>;
580
+ heading: Schema<readonly ["store", "ele-id", "xmlid", {
581
+ readonly name: "role";
582
+ readonly values: string[];
583
+ readonly defaultValue: "H1";
584
+ }], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
585
+ footnoteSection: Schema<readonly ["store", "ele-id", {
586
+ readonly name: "role";
587
+ readonly values: string[];
588
+ readonly defaultValue: "ch";
589
+ }], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
590
+ chapter: Schema<readonly ["store", "ele-id", "xmlid"], readonly ["role", "data-paragraph-numbering-padding", "data-paragraph-numbering-format", "data-paragraph-numbering-elements", "data-paragraph-numbering-chapters"]>;
591
+ info1: Schema<readonly ["store", "ele-id"], readonly []>;
592
+ abstract1: Schema<readonly ["store", "ele-id", {
593
+ readonly name: "role";
594
+ readonly values: readonly ["xmlonly", "both"];
595
+ readonly defaultValue: "both";
596
+ }], readonly ["data-username", "data-userid", "data-time", "data-date", {
597
+ readonly name: "abstract_type";
598
+ readonly values: readonly ["blurb"];
599
+ readonly defaultValue: "blurb";
600
+ }]>;
601
+ epigraph: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-tagname", {
602
+ readonly name: "role";
603
+ readonly values: readonly ["add-element", "change-element"];
604
+ readonly defaultValue: "add-element";
605
+ }]>;
606
+ poem: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "role"]>;
607
+ blockquote: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "xmlid", "data-tagname", "element-change-description", {
608
+ readonly name: "role";
609
+ readonly values: readonly ["add-element", "extract_group", "change-element"];
610
+ readonly defaultValue: "add-element";
611
+ }]>;
612
+ sidebar: Schema<readonly ["store", "ele-id", {
613
+ readonly name: "status";
614
+ readonly values: readonly ["box1", "box2", "box3", "box4", "box5"];
615
+ readonly defaultValue: "box1";
616
+ }], readonly ["data-username", "data-userid", "data-time", "data-date", "xmlid", {
617
+ readonly name: "role";
618
+ readonly values: readonly ["add-element", "change-para-box"];
619
+ readonly defaultValue: "add-element";
620
+ }]>;
621
+ appendix: Schema<readonly ["store", "ele-id", "id", "xmlid"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
622
+ authorgroup: Schema<readonly ["store", "ele-id"], readonly []>;
623
+ author: Schema<readonly ["store", "ele-id"], readonly []>;
624
+ personname: Schema<readonly ["store", "ele-id"], readonly []>;
625
+ affiliation: Schema<readonly ["store", "ele-id"], readonly []>;
626
+ };
90
627
 
91
- declare const INLINE_ELEMENT_SCHEMAS: Record<InlineSchemaCode, Schema>;
628
+ declare const INLINE_ELEMENT_SCHEMAS: {
629
+ uri: Schema<readonly ["store", "ele-id"], readonly ["xlinkhref"]>;
630
+ footnote1: Schema<readonly ["store", "ele-id", {
631
+ readonly name: "role";
632
+ readonly values: string[];
633
+ readonly defaultValue: "end-ch-note";
634
+ }, "label", "linkend"], readonly []>;
635
+ link: Schema<readonly ["store", "ele-id", "linkend", {
636
+ readonly name: "role";
637
+ readonly values: readonly ["table", "figure", "equation", "footnote", "bibr", "chapter"];
638
+ readonly defaultValue: "bibr";
639
+ }], readonly ["data-target-id"]>;
640
+ inlineequation: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
641
+ readonly name: "eqn-data";
642
+ readonly values: readonly ["new", "updated"];
643
+ readonly defaultValue: "new";
644
+ }, {
645
+ readonly name: "element-status";
646
+ readonly values: readonly ["added", "changed"];
647
+ readonly defaultValue: "added";
648
+ }]>;
649
+ phrase: Schema<readonly ["store", "ele-id", "xml:lang"], readonly []>;
650
+ };
92
651
 
93
- declare const ATOM_SCHEMAS: Record<AtomSchemaCode, Schema>;
652
+ declare const ATOM_SCHEMAS: {
653
+ indexterm: Schema<readonly ["linkend", {
654
+ readonly name: "index-level";
655
+ readonly values: readonly ["PRIMARY", "SECONDARY", "TERTIARY", "QUATERNARY"];
656
+ readonly defaultValue: "PRIMARY";
657
+ }, "store", "ele-id"], readonly []>;
658
+ primary: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id"], readonly []>;
659
+ secondary: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id"], readonly []>;
660
+ tertiary: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id"], readonly []>;
661
+ quaternary: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id"], readonly []>;
662
+ bookmark: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id", {
663
+ readonly name: "index-position";
664
+ readonly values: readonly ["start", "end"];
665
+ readonly defaultValue: "";
666
+ }], readonly []>;
667
+ see: Schema<readonly ["linkend", "data-user", "crossref-pagenumber", {
668
+ readonly name: "role";
669
+ readonly values: readonly ["see", "see-also"];
670
+ readonly defaultValue: "";
671
+ }, "store", "ele-id", "data-date", "crossref-firstentry", "crossref-secondentry", "crossref-thirdentry", "crossref-fourthentry"], readonly []>;
672
+ b: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
673
+ referenceMark: Schema<readonly ["store", "ele-id", "data-date", "data-username", "data-userid", {
674
+ readonly name: "data-position";
675
+ readonly values: readonly ["single", "middle", "start", "end"];
676
+ readonly defaultValue: "single";
677
+ }], readonly []>;
678
+ i: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
679
+ u: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
680
+ sc: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
681
+ emphasis: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
682
+ readonly name: "role";
683
+ readonly values: readonly ["lowercase", "uppercase", "initialcaps"];
684
+ readonly defaultValue: "lowercase";
685
+ }]>;
686
+ strike: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
687
+ sub: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
688
+ sup: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
689
+ highlightmark: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
690
+ commentQuerySection: Schema<readonly ["store", "ele-id", "id"], readonly ["data-username", "data-userid", "data-time", "data-date", "title"]>;
691
+ insertion: Schema<readonly ["data-username", "data-userid", "data-time", "data-date", "store", "ele-id"], readonly [{
692
+ readonly name: "role";
693
+ readonly values: readonly ["web-link", "figure-note-link", "figsource"];
694
+ readonly defaultValue: "";
695
+ }]>;
696
+ deletion: Schema<readonly ["data-username", "data-userid", "data-time", "data-date", "store", "ele-id"], readonly []>;
697
+ content: Schema<readonly ["store", "ele-id"], readonly []>;
698
+ comment: Schema<readonly ["store", "ele-id", "id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
699
+ readonly name: "status";
700
+ readonly values: readonly ["marks-done", "marks-open"];
701
+ readonly defaultValue: "marks-open";
702
+ }, "title", "markuser", "marktime"]>;
703
+ query: Schema<readonly ["store", "ele-id", "id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
704
+ readonly name: "status";
705
+ readonly values: readonly ["marks-done", "marks-open"];
706
+ readonly defaultValue: "marks-open";
707
+ }, "title", "markuser", "marktime"]>;
708
+ reply: Schema<readonly ["store", "ele-id", "id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
709
+ readonly name: "status";
710
+ readonly values: readonly ["marks-done", "marks-open"];
711
+ readonly defaultValue: "marks-open";
712
+ }, "title", "markuser", "marktime"]>;
713
+ abbreviation: Schema<readonly ["store", "ele-id", "title", "data-time", "data-userid", "data-username", {
714
+ readonly name: "data-abbr-action";
715
+ readonly values: readonly ["add", "edit"];
716
+ readonly defaultValue: "add";
717
+ }], readonly []>;
718
+ };
94
719
 
95
720
  type ValidationErrorLevel = "blocker" | "warning" | "info";
96
721
  type ValidationErrorKind = "unlinked" | "forbidden" | "missing" | "converted" | "possible-url" | "unreachable-url";
@@ -115,4 +740,4 @@ type ValidationError = {
115
740
  */
116
741
  declare const validateXml: (xml: Element, elementsToLink: string[], linkElements: string[], schemasToValidateAgainst: SchemaCode[]) => ValidationError[];
117
742
 
118
- export { ALIGNMENT_ATTRIBUTE, ATOM_SCHEMAS, type AllowedChildren, type AtomSchemaCode, type AttributeDefinition, DEPENDENT_FORBIDDEN_ELEMENTS, ELEMENT_SCHEMAS, ELE_ID_ATTRIBUTE, ElementLabel, type ElementSchemaCode, FIGURE_PLACEMENT_ATTRIBUTE, type FreeAttribute, ID_ATTRS, IGNORED_ATTRIBUTES, IGNORED_ATTRIBUTES_STARTS_WITH, IGNORED_ELEMENT_SELECTORS, IGNORED_VALIDATION_ELEMENT_SELECTORS, INDENT_TYPE_ATTRIBUTE, INLINE_ELEMENT_SCHEMAS, type InlineSchemaCode, LAYOUT_ATTRIBUTES, LAYOUT_CELL_WIDTH_ATTRIBUTE, LAYOUT_TABLE_ORIENTATION_ATTRIBUTE, LAYOUT_TABLE_PLACEMENT_ATTRIBUTE, LAYOUT_USER_ATTRIBUTE, LEFT_INDENT_ATTRIBUTE, RIGHT_INDENT_ATTRIBUTE, type RestrictedAttribute, SCHEMAS, SPACE_ABOVE_ATTRIBUTE, SPACE_BELOW_ATTRIBUTE, SPECIAL_INDENT_ATTRIBUTE, STORE_ATTRIBUTE, STYLE_NAME_ATTRIBUTE, type Schema, type SchemaCode, type SchemaKind, TRACK_CHANGES_ATTRS, TRACK_CHANGES_ATTR_DATA_DATE, TRACK_CHANGES_ATTR_DATA_TIME, TRACK_CHANGES_ATTR_DATA_USERID, TRACK_CHANGES_ATTR_DATA_USERNAME, type ValidationError, type ValidationErrorKind, type ValidationErrorLevel, createElement, findAttributeDefinitionByName, findSchemaByCode, findSchemaByElement, getAttributeName, isAttributeRestricted, isIgnoredAttribute, isIgnoredElement, isIgnoredValidation, isTrackChangesSchema, validateXml };
743
+ export { ALIGNMENT_ATTRIBUTE, ATOM_SCHEMAS, type AllowedChildren, type AtomSchemaCode, type AttributeDefinition, DEPENDENT_FORBIDDEN_ELEMENTS, ELEMENT_SCHEMAS, ELE_ID_ATTRIBUTE, ElementLabel, type ElementSchemaCode, FIGURE_PLACEMENT_ATTRIBUTE, type FreeAttribute, ID_ATTRS, IGNORED_ATTRIBUTES, IGNORED_ATTRIBUTES_STARTS_WITH, IGNORED_ELEMENT_SELECTORS, IGNORED_VALIDATION_ELEMENT_SELECTORS, INDENT_TYPE_ATTRIBUTE, INLINE_ELEMENT_SCHEMAS, type InlineSchemaCode, LAYOUT_ATTRIBUTES, LAYOUT_CELL_WIDTH_ATTRIBUTE, LAYOUT_TABLE_ORIENTATION_ATTRIBUTE, LAYOUT_TABLE_PLACEMENT_ATTRIBUTE, LAYOUT_USER_ATTRIBUTE, LEFT_INDENT_ATTRIBUTE, RIGHT_INDENT_ATTRIBUTE, type RestrictedAttribute, SCHEMAS, SPACE_ABOVE_ATTRIBUTE, SPACE_BELOW_ATTRIBUTE, SPECIAL_INDENT_ATTRIBUTE, STORE_ATTRIBUTE, STYLE_NAME_ATTRIBUTE, type Schema, type SchemaAttributes, type SchemaCode, type SchemaKind, type SchemasByCode, TRACK_CHANGES_ATTRS, TRACK_CHANGES_ATTR_DATA_DATE, TRACK_CHANGES_ATTR_DATA_TIME, TRACK_CHANGES_ATTR_DATA_USERID, TRACK_CHANGES_ATTR_DATA_USERNAME, type ValidationError, type ValidationErrorKind, type ValidationErrorLevel, createElement, findAttributeDefinitionByName, findSchemaByCode, findSchemaByElement, getAttributeName, isAttributeRestricted, isIgnoredAttribute, isIgnoredElement, isIgnoredValidation, isTrackChangesSchema, validateXml };