pro-editor-schema 1.1.4 → 1.1.6

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,19 @@ 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;
363
+
364
+ declare const queryElementBySchema: (content: Document | Element | HTMLElement | ParentNode, schemaCode: SchemaCode) => HTMLElement | undefined;
365
+ declare const queryAllElementsBySchema: (content: Document | Element | HTMLElement | ParentNode, schemaCode: SchemaCode) => HTMLElement[];
51
366
 
52
367
  declare const ElementLabel: Record<SchemaCode, string>;
53
368
 
@@ -86,11 +401,324 @@ declare const ELE_ID_ATTRIBUTE = "ele-id";
86
401
  declare const STORE_ATTRIBUTE = "store";
87
402
  declare const ID_ATTRS: readonly ["store", "ele-id"];
88
403
 
89
- declare const ELEMENT_SCHEMAS: Record<ElementSchemaCode, Schema>;
404
+ declare const ELEMENT_SCHEMAS: {
405
+ bibliodiv: Schema<readonly ["store", "ele-id", {
406
+ readonly name: "role";
407
+ readonly values: readonly ["H1", "H2", "H3", "H4", "H5", "H6"];
408
+ readonly defaultValue: "H1";
409
+ }], readonly []>;
410
+ referenceBibliography: Schema<readonly ["store", "ele-id", "xmlid", {
411
+ readonly name: "role";
412
+ readonly values: readonly ["chapterend"];
413
+ readonly defaultValue: "chapterend";
414
+ }, {
415
+ readonly name: "doc-type";
416
+ readonly values: readonly ["doc-bibliography"];
417
+ readonly defaultValue: "doc-bibliography";
418
+ }], readonly []>;
419
+ referenceBibliomixed: Schema<readonly ["store", "ele-id", "xmlid", "role"], readonly ["track-role", "data-userid", "data-date"]>;
420
+ 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"]>;
421
+ 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", {
422
+ readonly name: "fm-role";
423
+ readonly values: readonly ["true", "false"];
424
+ readonly defaultValue: "false";
425
+ }, {
426
+ readonly name: "title";
427
+ readonly values: readonly ["H1", "H2", "H3", "H4", "H5", "H6", "foot_note"];
428
+ readonly defaultValue: "H1";
429
+ }]>;
430
+ footnote: Schema<readonly ["store", "ele-id", "label", "xmlid", {
431
+ readonly name: "role";
432
+ readonly values: readonly ["end-bk-note", "end-ch-note"];
433
+ readonly defaultValue: "end-ch-note";
434
+ }], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
435
+ footnoteno: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
436
+ olink: Schema<readonly ["store", "ele-id"], readonly []>;
437
+ firstname: Schema<readonly ["store", "ele-id"], readonly []>;
438
+ surname: Schema<readonly ["store", "ele-id"], readonly []>;
439
+ honorific: Schema<readonly ["store", "ele-id"], readonly []>;
440
+ orgname: Schema<readonly ["store", "ele-id"], readonly []>;
441
+ email: Schema<readonly ["store", "ele-id"], readonly []>;
442
+ org: Schema<readonly ["store", "ele-id"], readonly []>;
443
+ degrees: Schema<readonly ["store", "ele-id"], readonly []>;
444
+ dialogue: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
445
+ readonly name: "role";
446
+ readonly values: readonly ["add-element"];
447
+ readonly defaultValue: "add-element";
448
+ }]>;
449
+ line: Schema<readonly ["store", "ele-id"], readonly [{
450
+ readonly name: "role";
451
+ readonly values: readonly ["add-element"];
452
+ readonly defaultValue: "add-element";
453
+ }]>;
454
+ speaker: Schema<readonly ["store", "ele-id"], readonly [{
455
+ readonly name: "role";
456
+ readonly values: readonly ["add-element"];
457
+ readonly defaultValue: "add-element";
458
+ }]>;
459
+ equation: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
460
+ readonly name: "eqn-data";
461
+ readonly values: readonly ["new", "updated"];
462
+ readonly defaultValue: "new";
463
+ }, {
464
+ readonly name: "element-status";
465
+ readonly values: readonly ["added", "changed"];
466
+ readonly defaultValue: "added";
467
+ }]>;
468
+ math: Schema<readonly [], readonly ["xmlns", "display"]>;
469
+ mathphrase: Schema<readonly ["ele-id"], readonly []>;
470
+ merror: Schema<readonly [], readonly []>;
471
+ mfrac: Schema<readonly [], readonly ["denomalign", "linethickness", "numalign"]>;
472
+ mi: Schema<readonly [], readonly ["mathvariant"]>;
473
+ mmultiscripts: Schema<readonly [], readonly ["subscriptshift", "superscriptshift"]>;
474
+ mn: Schema<readonly [], readonly []>;
475
+ mo: Schema<readonly [], readonly ["accent", "fence", "form", "largeop", "lspace", "maxsize", "minsize", "movablelimits", "rspace", "separator", "stretchy", "symmetric"]>;
476
+ mover: Schema<readonly [], readonly ["accent"]>;
477
+ mpadded: Schema<readonly [], readonly ["depth", "height", "lspace", "voffset", "width"]>;
478
+ mphantom: Schema<readonly [], readonly []>;
479
+ mprescripts: Schema<readonly [], readonly []>;
480
+ mroot: Schema<readonly [], readonly []>;
481
+ mrow: Schema<readonly [], readonly []>;
482
+ ms: Schema<readonly [], readonly ["lquote", "rquote"]>;
483
+ mspace: Schema<readonly [], readonly ["depth", "height", "width"]>;
484
+ msqrt: Schema<readonly [], readonly []>;
485
+ mstyle: Schema<readonly [], readonly ["displaystyle", "mathbackground", "mathcolor", "mathsize", "scriptlevel", "scriptminsize", "scriptsizemultiplier"]>;
486
+ msub: Schema<readonly [], readonly ["subscriptshift"]>;
487
+ msubsup: Schema<readonly [], readonly ["subscriptshift", "superscriptshift"]>;
488
+ msup: Schema<readonly [], readonly ["superscriptshift"]>;
489
+ mtable: Schema<readonly [], readonly ["align", "columnalign", "columnlines", "columnspacing", "displaystyle", "equalcolumns", "equalrows", "frame", "rowalign", "rowlines", "rowspacing", "width"]>;
490
+ mtd: Schema<readonly [], readonly ["columnalign", "columnspan", "rowalign", "rowspan"]>;
491
+ mtext: Schema<readonly [], readonly ["mathvariant"]>;
492
+ mtr: Schema<readonly [], readonly ["columnalign", "rowalign"]>;
493
+ munder: Schema<readonly [], readonly ["accentunder"]>;
494
+ munderover: Schema<readonly [], readonly ["accent", "accentunder"]>;
495
+ img: Schema<readonly ["store", "ele-id", "src", "format"], readonly ["alt", "data-track-alt", "data-alignment", "before-replace-img", "data-prev-alt", {
496
+ readonly name: "role";
497
+ readonly values: readonly ["inline-graphics", "presentation"];
498
+ readonly defaultValue: "inline-graphics";
499
+ }]>;
500
+ alttext: Schema<readonly [], readonly []>;
501
+ imageobject: Schema<readonly ["store", "ele-id"], readonly []>;
502
+ mediaobject: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
503
+ caption1: Schema<readonly ["store", "ele-id"], readonly []>;
504
+ figsource: Schema<readonly ["store", "ele-id"], readonly []>;
505
+ fignote: Schema<readonly ["store", "ele-id"], readonly []>;
506
+ figure1: Schema<readonly ["store", "ele-id", "xmlid"], readonly ["data-username", "data-userid", "data-time", "data-date", ...string[], "linkend_fig", "data-anchor-id"]>;
507
+ informalfigure: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-anchor-id"]>;
508
+ keywordset: Schema<readonly ["store", "ele-id", {
509
+ readonly name: "role";
510
+ readonly values: readonly ["xmlonly", "both"];
511
+ readonly defaultValue: "both";
512
+ }], readonly []>;
513
+ keyword: Schema<readonly ["store", "ele-id"], readonly ["data-pos"]>;
514
+ punc: Schema<readonly ["store", "ele-id"], readonly ["data-role"]>;
515
+ 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", {
516
+ readonly name: "fm-role";
517
+ readonly values: readonly ["true", "false"];
518
+ readonly defaultValue: "false";
519
+ }]>;
520
+ li: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "token", "element-change-description", {
521
+ readonly name: "role";
522
+ readonly values: readonly ["list-item-added", "add-element", "list-item-split", "level-list"];
523
+ readonly defaultValue: "add-element";
524
+ }]>;
525
+ ol: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-tagname", {
526
+ readonly name: "role";
527
+ readonly values: readonly ["add-element", "change-style", "change-para-list", "change-element", "changed-element", "LIST1", "LIST2", "LIST3"];
528
+ readonly defaultValue: "add-element";
529
+ }, {
530
+ readonly name: "oldliststyle";
531
+ readonly values: readonly ["bullet", "numbering", "roman", "none"];
532
+ readonly defaultValue: "bullet";
533
+ }, {
534
+ readonly name: "oldmark";
535
+ readonly values: readonly ["disc", "circle", "square", "dash", "ast", "checkbox"];
536
+ readonly defaultValue: "disc";
537
+ }]>;
538
+ ul: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-tagname", {
539
+ readonly name: "role";
540
+ readonly values: readonly ["add-element", "change-style", "change-para-list", "change-element", "LIST1", "LIST2", "LIST3"];
541
+ readonly defaultValue: "add-element";
542
+ }, {
543
+ readonly name: "oldliststyle";
544
+ readonly values: readonly ["bullet", "numbering", "roman", "none"];
545
+ readonly defaultValue: "bullet";
546
+ }, {
547
+ readonly name: "mark";
548
+ readonly values: readonly ["disc", "circle", "square", "dash", "ast", "checkbox"];
549
+ readonly defaultValue: "disc";
550
+ }, {
551
+ readonly name: "oldmark";
552
+ readonly values: readonly ["disc", "circle", "square", "dash", "ast", "checkbox"];
553
+ readonly defaultValue: "disc";
554
+ }]>;
555
+ token: Schema<readonly ["store", "ele-id"], readonly []>;
556
+ tag: Schema<readonly ["store", "ele-id", "data-id"], readonly []>;
557
+ lrh: Schema<readonly ["store", "ele-id"], readonly []>;
558
+ rrh: Schema<readonly ["store", "ele-id"], readonly []>;
559
+ source1: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
560
+ readonly name: "role";
561
+ readonly values: readonly ["add-element"];
562
+ readonly defaultValue: "add-element";
563
+ }]>;
564
+ subtitle1: Schema<readonly ["store", "ele-id"], readonly [{
565
+ readonly name: "role";
566
+ readonly values: readonly ["add-element"];
567
+ readonly defaultValue: "add-element";
568
+ }]>;
569
+ table1: Schema<readonly ["store", "ele-id", {
570
+ readonly name: "role";
571
+ readonly values: readonly ["inline", "float"];
572
+ readonly defaultValue: "inline";
573
+ }], readonly ["data-username", "data-userid", "data-time", "data-date", ...string[], "data-anchor-id", "linkend_tbl", "id", "orient", "xmlid"]>;
574
+ tgroup: Schema<readonly ["store", "ele-id", "cols"], readonly []>;
575
+ table: Schema<readonly [], readonly ["store", "ele-id"]>;
576
+ thead: Schema<readonly [], readonly ["store", "ele-id"]>;
577
+ tbody: Schema<readonly [], readonly ["store", "ele-id"]>;
578
+ 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"]>;
579
+ td: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-cell-width", "width"]>;
580
+ tp: Schema<readonly [], readonly ["store", "ele-id"]>;
581
+ tblfn: Schema<readonly ["store", "ele-id"], readonly []>;
582
+ tblsource: Schema<readonly [], readonly []>;
583
+ heading: Schema<readonly ["store", "ele-id", "xmlid", {
584
+ readonly name: "role";
585
+ readonly values: string[];
586
+ readonly defaultValue: "H1";
587
+ }], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
588
+ footnoteSection: Schema<readonly ["store", "ele-id", {
589
+ readonly name: "role";
590
+ readonly values: string[];
591
+ readonly defaultValue: "ch";
592
+ }], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
593
+ 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"]>;
594
+ info1: Schema<readonly ["store", "ele-id"], readonly []>;
595
+ abstract1: Schema<readonly ["store", "ele-id", {
596
+ readonly name: "role";
597
+ readonly values: readonly ["xmlonly", "both"];
598
+ readonly defaultValue: "both";
599
+ }], readonly ["data-username", "data-userid", "data-time", "data-date", {
600
+ readonly name: "abstract_type";
601
+ readonly values: readonly ["blurb"];
602
+ readonly defaultValue: "blurb";
603
+ }]>;
604
+ epigraph: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "data-tagname", {
605
+ readonly name: "role";
606
+ readonly values: readonly ["add-element", "change-element"];
607
+ readonly defaultValue: "add-element";
608
+ }]>;
609
+ poem: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "role"]>;
610
+ blockquote: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", "xmlid", "data-tagname", "element-change-description", {
611
+ readonly name: "role";
612
+ readonly values: readonly ["add-element", "extract_group", "change-element"];
613
+ readonly defaultValue: "add-element";
614
+ }]>;
615
+ sidebar: Schema<readonly ["store", "ele-id", {
616
+ readonly name: "status";
617
+ readonly values: readonly ["box1", "box2", "box3", "box4", "box5"];
618
+ readonly defaultValue: "box1";
619
+ }], readonly ["data-username", "data-userid", "data-time", "data-date", "xmlid", {
620
+ readonly name: "role";
621
+ readonly values: readonly ["add-element", "change-para-box"];
622
+ readonly defaultValue: "add-element";
623
+ }]>;
624
+ appendix: Schema<readonly ["store", "ele-id", "id", "xmlid"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
625
+ authorgroup: Schema<readonly ["store", "ele-id"], readonly []>;
626
+ author: Schema<readonly ["store", "ele-id"], readonly []>;
627
+ personname: Schema<readonly ["store", "ele-id"], readonly []>;
628
+ affiliation: Schema<readonly ["store", "ele-id"], readonly []>;
629
+ };
90
630
 
91
- declare const INLINE_ELEMENT_SCHEMAS: Record<InlineSchemaCode, Schema>;
631
+ declare const INLINE_ELEMENT_SCHEMAS: {
632
+ uri: Schema<readonly ["store", "ele-id"], readonly ["xlinkhref"]>;
633
+ footnote1: Schema<readonly ["store", "ele-id", {
634
+ readonly name: "role";
635
+ readonly values: string[];
636
+ readonly defaultValue: "end-ch-note";
637
+ }, "label", "linkend"], readonly []>;
638
+ link: Schema<readonly ["store", "ele-id", "linkend", {
639
+ readonly name: "role";
640
+ readonly values: readonly ["table", "figure", "equation", "footnote", "bibr", "chapter"];
641
+ readonly defaultValue: "bibr";
642
+ }], readonly ["data-target-id"]>;
643
+ inlineequation: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
644
+ readonly name: "eqn-data";
645
+ readonly values: readonly ["new", "updated"];
646
+ readonly defaultValue: "new";
647
+ }, {
648
+ readonly name: "element-status";
649
+ readonly values: readonly ["added", "changed"];
650
+ readonly defaultValue: "added";
651
+ }]>;
652
+ phrase: Schema<readonly ["store", "ele-id", "xml:lang"], readonly []>;
653
+ };
92
654
 
93
- declare const ATOM_SCHEMAS: Record<AtomSchemaCode, Schema>;
655
+ declare const ATOM_SCHEMAS: {
656
+ indexterm: Schema<readonly ["linkend", {
657
+ readonly name: "index-level";
658
+ readonly values: readonly ["PRIMARY", "SECONDARY", "TERTIARY", "QUATERNARY"];
659
+ readonly defaultValue: "PRIMARY";
660
+ }, "store", "ele-id"], readonly []>;
661
+ primary: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id"], readonly []>;
662
+ secondary: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id"], readonly []>;
663
+ tertiary: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id"], readonly []>;
664
+ quaternary: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id"], readonly []>;
665
+ bookmark: Schema<readonly ["data-date", "data-user", "firstentry", "secondentry", "thirdentry", "entry", "linkend", "store", "ele-id", {
666
+ readonly name: "index-position";
667
+ readonly values: readonly ["start", "end"];
668
+ readonly defaultValue: "";
669
+ }], readonly []>;
670
+ see: Schema<readonly ["linkend", "data-user", "crossref-pagenumber", {
671
+ readonly name: "role";
672
+ readonly values: readonly ["see", "see-also"];
673
+ readonly defaultValue: "";
674
+ }, "store", "ele-id", "data-date", "crossref-firstentry", "crossref-secondentry", "crossref-thirdentry", "crossref-fourthentry"], readonly []>;
675
+ b: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
676
+ referenceMark: Schema<readonly ["store", "ele-id", "data-date", "data-username", "data-userid", {
677
+ readonly name: "data-position";
678
+ readonly values: readonly ["single", "middle", "start", "end"];
679
+ readonly defaultValue: "single";
680
+ }], readonly []>;
681
+ i: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
682
+ u: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
683
+ sc: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
684
+ emphasis: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
685
+ readonly name: "role";
686
+ readonly values: readonly ["lowercase", "uppercase", "initialcaps"];
687
+ readonly defaultValue: "lowercase";
688
+ }]>;
689
+ strike: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
690
+ sub: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
691
+ sup: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
692
+ highlightmark: Schema<readonly ["store", "ele-id"], readonly ["data-username", "data-userid", "data-time", "data-date"]>;
693
+ commentQuerySection: Schema<readonly ["store", "ele-id", "id"], readonly ["data-username", "data-userid", "data-time", "data-date", "title"]>;
694
+ insertion: Schema<readonly ["data-username", "data-userid", "data-time", "data-date", "store", "ele-id"], readonly [{
695
+ readonly name: "role";
696
+ readonly values: readonly ["web-link", "figure-note-link", "figsource"];
697
+ readonly defaultValue: "";
698
+ }]>;
699
+ deletion: Schema<readonly ["data-username", "data-userid", "data-time", "data-date", "store", "ele-id"], readonly []>;
700
+ content: Schema<readonly ["store", "ele-id"], readonly []>;
701
+ comment: Schema<readonly ["store", "ele-id", "id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
702
+ readonly name: "status";
703
+ readonly values: readonly ["marks-done", "marks-open"];
704
+ readonly defaultValue: "marks-open";
705
+ }, "title", "markuser", "marktime"]>;
706
+ query: Schema<readonly ["store", "ele-id", "id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
707
+ readonly name: "status";
708
+ readonly values: readonly ["marks-done", "marks-open"];
709
+ readonly defaultValue: "marks-open";
710
+ }, "title", "markuser", "marktime"]>;
711
+ reply: Schema<readonly ["store", "ele-id", "id"], readonly ["data-username", "data-userid", "data-time", "data-date", {
712
+ readonly name: "status";
713
+ readonly values: readonly ["marks-done", "marks-open"];
714
+ readonly defaultValue: "marks-open";
715
+ }, "title", "markuser", "marktime"]>;
716
+ abbreviation: Schema<readonly ["store", "ele-id", "title", "data-time", "data-userid", "data-username", {
717
+ readonly name: "data-abbr-action";
718
+ readonly values: readonly ["add", "edit"];
719
+ readonly defaultValue: "add";
720
+ }], readonly []>;
721
+ };
94
722
 
95
723
  type ValidationErrorLevel = "blocker" | "warning" | "info";
96
724
  type ValidationErrorKind = "unlinked" | "forbidden" | "missing" | "converted" | "possible-url" | "unreachable-url";
@@ -115,4 +743,4 @@ type ValidationError = {
115
743
  */
116
744
  declare const validateXml: (xml: Element, elementsToLink: string[], linkElements: string[], schemasToValidateAgainst: SchemaCode[]) => ValidationError[];
117
745
 
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 };
746
+ 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, queryAllElementsBySchema, queryElementBySchema, validateXml };