@readium/shared 2.0.0 → 2.1.1

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.
@@ -59,22 +59,73 @@ export declare class Accessibility {
59
59
  export declare class AccessibilityProfile {
60
60
  readonly uri: string;
61
61
  constructor(uri: string);
62
+ /**
63
+ * Parses an [AccessibilityProfile] from its RWPM JSON representation.
64
+ */
62
65
  static deserialize(json: any): AccessibilityProfile | undefined;
66
+ /**
67
+ * Serializes an [AccessibilityProfile] to its RWPM JSON representation.
68
+ */
63
69
  serialize(): any;
70
+ /**
71
+ * EPUB Accessibility 1.0 WCAG 2.0 A – http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-a
72
+ */
64
73
  static readonly EPUB_A11Y_10_WCAG_20_A: AccessibilityProfile;
74
+ /**
75
+ * EPUB Accessibility 1.0 WCAG 2.0 AA – http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aa
76
+ */
65
77
  static readonly EPUB_A11Y_10_WCAG_20_AA: AccessibilityProfile;
78
+ /**
79
+ * EPUB Accessibility 1.0 WCAG 2.0 AAA – http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aaa
80
+ */
66
81
  static readonly EPUB_A11Y_10_WCAG_20_AAA: AccessibilityProfile;
82
+ /**
83
+ * EPUB Accessibility 1.1 WCAG 2.0 A – https://www.w3.org/TR/epub-a11y-11#wcag-2.0-a
84
+ */
67
85
  static readonly EPUB_A11Y_11_WCAG_20_A: AccessibilityProfile;
86
+ /**
87
+ * EPUB Accessibility 1.1 WCAG 2.0 AA – https://www.w3.org/TR/epub-a11y-11#wcag-2.0-aa
88
+ */
68
89
  static readonly EPUB_A11Y_11_WCAG_20_AA: AccessibilityProfile;
90
+ /**
91
+ * EPUB Accessibility 1.1 WCAG 2.0 AAA – https://www.w3.org/TR/epub-a11y-11#wcag-2.0-aaa
92
+ */
69
93
  static readonly EPUB_A11Y_11_WCAG_20_AAA: AccessibilityProfile;
94
+ /**
95
+ * EPUB Accessibility 1.1 WCAG 2.1 A – https://www.w3.org/TR/epub-a11y-11#wcag-2.1-a
96
+ */
70
97
  static readonly EPUB_A11Y_11_WCAG_21_A: AccessibilityProfile;
98
+ /**
99
+ * EPUB Accessibility 1.1 WCAG 2.1 AA – https://www.w3.org/TR/epub-a11y-11#wcag-2.1-aa
100
+ */
71
101
  static readonly EPUB_A11Y_11_WCAG_21_AA: AccessibilityProfile;
102
+ /**
103
+ * EPUB Accessibility 1.1 WCAG 2.1 AAA – https://www.w3.org/TR/epub-a11y-11#wcag-2.1-aaa
104
+ */
72
105
  static readonly EPUB_A11Y_11_WCAG_21_AAA: AccessibilityProfile;
106
+ /**
107
+ * EPUB Accessibility 1.1 WCAG 2.2 A – https://www.w3.org/TR/epub-a11y-11#wcag-2.2-a
108
+ */
73
109
  static readonly EPUB_A11Y_11_WCAG_22_A: AccessibilityProfile;
110
+ /**
111
+ * EPUB Accessibility 1.1 WCAG 2.2 AA – https://www.w3.org/TR/epub-a11y-11#wcag-2.2-aa
112
+ */
74
113
  static readonly EPUB_A11Y_11_WCAG_22_AA: AccessibilityProfile;
114
+ /**
115
+ * EPUB Accessibility 1.1 WCAG 2.2 AAA – https://www.w3.org/TR/epub-a11y-11#wcag-2.2-aaa
116
+ */
75
117
  static readonly EPUB_A11Y_11_WCAG_22_AAA: AccessibilityProfile;
118
+ /**
119
+ * Returns true if the profile is a WCAG Level A profile.
120
+ */
76
121
  get isWCAGLevelA(): boolean;
122
+ /**
123
+ * Returns true if the profile is a WCAG Level AA profile.
124
+ */
77
125
  get isWCAGLevelAA(): boolean;
126
+ /**
127
+ * Returns true if the profile is a WCAG Level AAA profile.
128
+ */
78
129
  get isWCAGLevelAAA(): boolean;
79
130
  }
80
131
  export declare class Certification {
@@ -82,115 +133,385 @@ export declare class Certification {
82
133
  readonly credential: string | null;
83
134
  readonly report: string | null;
84
135
  constructor(certifiedBy?: string | null, credential?: string | null, report?: string | null);
136
+ /**
137
+ * Parses a [Certification] from its RWPM JSON representation.
138
+ */
85
139
  static deserialize(json: any): Certification | undefined;
140
+ /**
141
+ * Serializes a [Certification] to its RWPM JSON representation.
142
+ */
86
143
  serialize(): Record<string, any>;
87
144
  }
88
145
  export declare class AccessMode {
89
146
  readonly value: string;
90
147
  constructor(value: string);
148
+ /**
149
+ * Parses an [AccessMode] from its RWPM JSON representation.
150
+ */
91
151
  static deserialize(json: any): AccessMode | undefined;
152
+ /**
153
+ * Serializes an [AccessMode] to its RWPM JSON representation.
154
+ */
92
155
  serialize(): any;
156
+ /**
157
+ * Access mode for auditory content.
158
+ */
93
159
  static readonly AUDITORY: AccessMode;
160
+ /**
161
+ * Access mode for chart on visual content.
162
+ */
94
163
  static readonly CHART_ON_VISUAL: AccessMode;
164
+ /**
165
+ * Access mode for chemical on visual content.
166
+ */
95
167
  static readonly CHEM_ON_VISUAL: AccessMode;
168
+ /**
169
+ * Access mode for color dependent content.
170
+ */
96
171
  static readonly COLOR_DEPENDENT: AccessMode;
172
+ /**
173
+ * Access mode for diagram on visual content.
174
+ */
97
175
  static readonly DIAGRAM_ON_VISUAL: AccessMode;
176
+ /**
177
+ * Access mode for math on visual content.
178
+ */
98
179
  static readonly MATH_ON_VISUAL: AccessMode;
180
+ /**
181
+ * Access mode for music on visual content.
182
+ */
99
183
  static readonly MUSIC_ON_VISUAL: AccessMode;
184
+ /**
185
+ * Access mode for tactile content.
186
+ */
100
187
  static readonly TACTILE: AccessMode;
188
+ /**
189
+ * Access mode for text on visual content.
190
+ */
101
191
  static readonly TEXT_ON_VISUAL: AccessMode;
192
+ /**
193
+ * Access mode for textual content.
194
+ */
102
195
  static readonly TEXTUAL: AccessMode;
196
+ /**
197
+ * Access mode for visual content.
198
+ */
103
199
  static readonly VISUAL: AccessMode;
104
200
  }
105
201
  export declare class PrimaryAccessMode {
106
202
  readonly value: string | string[];
107
203
  private static readonly VALID_MODES;
108
204
  constructor(value: string | string[]);
205
+ /**
206
+ * Parses a [PrimaryAccessMode] from its RWPM JSON representation.
207
+ */
109
208
  static deserialize(json: any): PrimaryAccessMode | undefined;
209
+ /**
210
+ * Serializes a [PrimaryAccessMode] to its RWPM JSON representation.
211
+ */
110
212
  serialize(): string | string[];
213
+ /**
214
+ * Primary access mode for auditory content.
215
+ */
111
216
  static readonly AUDITORY: PrimaryAccessMode;
217
+ /**
218
+ * Primary access mode for tactile content.
219
+ */
112
220
  static readonly TACTILE: PrimaryAccessMode;
221
+ /**
222
+ * Primary access mode for textual content.
223
+ */
113
224
  static readonly TEXTUAL: PrimaryAccessMode;
225
+ /**
226
+ * Primary access mode for visual content.
227
+ */
114
228
  static readonly VISUAL: PrimaryAccessMode;
115
229
  }
116
230
  export declare class Feature {
117
231
  readonly value: string;
118
232
  constructor(value: string);
233
+ /**
234
+ * Parses a [Feature] from its RWPM JSON representation.
235
+ */
119
236
  static deserialize(json: any): Feature | undefined;
237
+ /**
238
+ * Serializes a [Feature] to its RWPM JSON representation.
239
+ */
120
240
  serialize(): any;
241
+ /**
242
+ * Feature for no accessibility features.
243
+ */
121
244
  static readonly NONE: Feature;
245
+ /**
246
+ * Feature for annotations.
247
+ */
122
248
  static readonly ANNOTATIONS: Feature;
249
+ /**
250
+ * Feature for ARIA.
251
+ */
123
252
  static readonly ARIA: Feature;
253
+ /**
254
+ * Feature for index.
255
+ */
124
256
  static readonly INDEX: Feature;
257
+ /**
258
+ * Feature for page break markers.
259
+ */
125
260
  static readonly PAGE_BREAK_MARKERS: Feature;
261
+ /**
262
+ * Feature for page navigation.
263
+ */
126
264
  static readonly PAGE_NAVIGATION: Feature;
265
+ /**
266
+ * Feature for print page numbers.
267
+ */
127
268
  static readonly PRINT_PAGE_NUMBERS: Feature;
269
+ /**
270
+ * Feature for reading order.
271
+ */
128
272
  static readonly READING_ORDER: Feature;
273
+ /**
274
+ * Feature for structural navigation.
275
+ */
129
276
  static readonly STRUCTURAL_NAVIGATION: Feature;
277
+ /**
278
+ * Feature for table of contents.
279
+ */
130
280
  static readonly TABLE_OF_CONTENTS: Feature;
281
+ /**
282
+ * Feature for tagged PDF.
283
+ */
131
284
  static readonly TAGGED_PDF: Feature;
285
+ /**
286
+ * Feature for alternative text.
287
+ */
132
288
  static readonly ALTERNATIVE_TEXT: Feature;
289
+ /**
290
+ * Feature for audio description.
291
+ */
133
292
  static readonly AUDIO_DESCRIPTION: Feature;
293
+ /**
294
+ * Feature for captions.
295
+ */
134
296
  static readonly CAPTIONS: Feature;
297
+ /**
298
+ * Feature for closed captions.
299
+ */
135
300
  static readonly CLOSED_CAPTIONS: Feature;
301
+ /**
302
+ * Feature for described math.
303
+ */
136
304
  static readonly DESCRIBED_MATH: Feature;
305
+ /**
306
+ * Feature for long description.
307
+ */
137
308
  static readonly LONG_DESCRIPTION: Feature;
309
+ /**
310
+ * Feature for open captions.
311
+ */
138
312
  static readonly OPEN_CAPTIONS: Feature;
313
+ /**
314
+ * Feature for sign language.
315
+ */
139
316
  static readonly SIGN_LANGUAGE: Feature;
317
+ /**
318
+ * Feature for transcript.
319
+ */
140
320
  static readonly TRANSCRIPT: Feature;
321
+ /**
322
+ * Feature for display transformability.
323
+ */
141
324
  static readonly DISPLAY_TRANSFORMABILITY: Feature;
325
+ /**
326
+ * Feature for synchronized audio text.
327
+ */
142
328
  static readonly SYNCHRONIZED_AUDIO_TEXT: Feature;
329
+ /**
330
+ * Feature for timing control.
331
+ */
143
332
  static readonly TIMING_CONTROL: Feature;
333
+ /**
334
+ * Feature for unlocked.
335
+ */
144
336
  static readonly UNLOCKED: Feature;
337
+ /**
338
+ * Feature for ChemML.
339
+ */
145
340
  static readonly CHEM_ML: Feature;
341
+ /**
342
+ * Feature for LaTeX.
343
+ */
146
344
  static readonly LATEX: Feature;
345
+ /**
346
+ * Feature for LaTeX chemistry.
347
+ */
147
348
  static readonly LATEX_CHEMISTRY: Feature;
349
+ /**
350
+ * Feature for MathML.
351
+ */
148
352
  static readonly MATH_ML: Feature;
353
+ /**
354
+ * Feature for MathML chemistry.
355
+ */
149
356
  static readonly MATH_ML_CHEMISTRY: Feature;
357
+ /**
358
+ * Feature for TTS markup.
359
+ */
150
360
  static readonly TTS_MARKUP: Feature;
361
+ /**
362
+ * Feature for high contrast audio.
363
+ */
151
364
  static readonly HIGH_CONTRAST_AUDIO: Feature;
365
+ /**
366
+ * Feature for high contrast display.
367
+ */
152
368
  static readonly HIGH_CONTRAST_DISPLAY: Feature;
369
+ /**
370
+ * Feature for large print.
371
+ */
153
372
  static readonly LARGE_PRINT: Feature;
373
+ /**
374
+ * Feature for braille.
375
+ */
154
376
  static readonly BRAILLE: Feature;
377
+ /**
378
+ * Feature for tactile graphic.
379
+ */
155
380
  static readonly TACTILE_GRAPHIC: Feature;
381
+ /**
382
+ * Feature for tactile object.
383
+ */
156
384
  static readonly TACTILE_OBJECT: Feature;
385
+ /**
386
+ * Feature for full ruby annotations.
387
+ */
157
388
  static readonly FULL_RUBY_ANNOTATIONS: Feature;
389
+ /**
390
+ * Feature for horizontal writing.
391
+ */
158
392
  static readonly HORIZONTAL_WRITING: Feature;
393
+ /**
394
+ * Feature for ruby annotations.
395
+ */
159
396
  static readonly RUBY_ANNOTATIONS: Feature;
397
+ /**
398
+ * Feature for vertical writing.
399
+ */
160
400
  static readonly VERTICAL_WRITING: Feature;
401
+ /**
402
+ * Feature for additional word segmentation.
403
+ */
161
404
  static readonly WITH_ADDITIONAL_WORD_SEGMENTATION: Feature;
405
+ /**
406
+ * Feature for lack of additional word segmentation.
407
+ */
162
408
  static readonly WITHOUT_ADDITIONAL_WORD_SEGMENTATION: Feature;
163
409
  }
164
410
  export declare class Hazard {
165
411
  readonly value: string;
166
412
  constructor(value: string);
413
+ /**
414
+ * Parses a [Hazard] from its RWPM JSON representation.
415
+ */
167
416
  static deserialize(json: any): Hazard | undefined;
417
+ /**
418
+ * Serializes a [Hazard] to its RWPM JSON representation.
419
+ */
168
420
  serialize(): any;
421
+ /**
422
+ * Hazard for flashing.
423
+ */
169
424
  static readonly FLASHING: Hazard;
425
+ /**
426
+ * Hazard for no flashing hazard.
427
+ */
170
428
  static readonly NO_FLASHING_HAZARD: Hazard;
429
+ /**
430
+ * Hazard for unknown flashing hazard.
431
+ */
171
432
  static readonly UNKNOWN_FLASHING_HAZARD: Hazard;
433
+ /**
434
+ * Hazard for motion simulation.
435
+ */
172
436
  static readonly MOTION_SIMULATION: Hazard;
437
+ /**
438
+ * Hazard for no motion simulation hazard.
439
+ */
173
440
  static readonly NO_MOTION_SIMULATION_HAZARD: Hazard;
441
+ /**
442
+ * Hazard for unknown motion simulation hazard.
443
+ */
174
444
  static readonly UNKNOWN_MOTION_SIMULATION_HAZARD: Hazard;
445
+ /**
446
+ * Hazard for sound.
447
+ */
175
448
  static readonly SOUND: Hazard;
449
+ /**
450
+ * Hazard for no sound hazard.
451
+ */
176
452
  static readonly NO_SOUND_HAZARD: Hazard;
453
+ /**
454
+ * Hazard for unknown sound hazard.
455
+ */
177
456
  static readonly UNKNOWN_SOUND_HAZARD: Hazard;
457
+ /**
458
+ * Hazard for unknown hazard.
459
+ */
178
460
  static readonly UNKNOWN: Hazard;
461
+ /**
462
+ * Hazard for no hazard.
463
+ */
179
464
  static readonly NONE: Hazard;
180
465
  }
181
466
  export declare class Exemption {
182
467
  readonly value: string;
183
468
  constructor(value: string);
469
+ /**
470
+ * Parses an [Exemption] from its RWPM JSON representation.
471
+ */
184
472
  static deserialize(json: any): Exemption | undefined;
473
+ /**
474
+ * Serializes an [Exemption] to its RWPM JSON representation.
475
+ */
185
476
  serialize(): any;
477
+ /**
478
+ * None exemption.
479
+ */
186
480
  static readonly NONE: Exemption;
481
+ /**
482
+ * Documented exemption.
483
+ */
187
484
  static readonly DOCUMENTED: Exemption;
485
+ /**
486
+ * Legal exemption.
487
+ */
188
488
  static readonly LEGAL: Exemption;
489
+ /**
490
+ * Temporary exemption.
491
+ */
189
492
  static readonly TEMPORARY: Exemption;
493
+ /**
494
+ * Technical exemption.
495
+ */
190
496
  static readonly TECHNICAL: Exemption;
497
+ /**
498
+ * EAA disproportionate burden exemption.
499
+ */
191
500
  static readonly EAA_DISPROPORTIONATE_BURDEN: Exemption;
501
+ /**
502
+ * EAA fundamental alteration exemption.
503
+ */
192
504
  static readonly EAA_FUNDAMENTAL_ALTERATION: Exemption;
505
+ /**
506
+ * EAA microenterprise exemption.
507
+ */
193
508
  static readonly EAA_MICROENTERPRISE: Exemption;
509
+ /**
510
+ * EAA technical impossibility exemption.
511
+ */
194
512
  static readonly EAA_TECHNICAL_IMPOSSIBILITY: Exemption;
513
+ /**
514
+ * EAA temporary exemption.
515
+ */
195
516
  static readonly EAA_TEMPORARY: Exemption;
196
517
  }
@@ -31,7 +31,15 @@ declare class LocalizationImpl {
31
31
  */
32
32
  getAvailableLocales(): string[];
33
33
  private getNestedValue;
34
+ /**
35
+ * Gets a localized string by key
36
+ * @param key The key for the string to retrieve
37
+ * @returns The localized string as a [L10nString], or an empty string if not found
38
+ */
34
39
  getString(key: string): L10nString;
35
40
  }
41
+ /**
42
+ * The singleton instance of the [Localization] class.
43
+ */
36
44
  export declare const Localization: LocalizationImpl;
37
45
  export {};
@@ -1,3 +1,4 @@
1
+ export * from './accessibility';
1
2
  export * from './encryption';
2
3
  export * from './epub';
3
4
  export * from './html';