@@ -10,34 +10,34 @@ export class Metric {
10
10
11
11
export type Options = {
12
12
/** Determines if the focus can be stolen */
13
- allowStealFocus : boolean ;
13
+ allowStealFocus ? : boolean ;
14
14
15
15
/** Version of the authentication API */
16
16
authAPIVersion : number ;
17
17
18
18
/** Height of the bookmark thumbnail */
19
- bookmarkThumbHeight : number ;
19
+ bookmarkThumbHeight ? : number ;
20
20
21
21
/** Width of the bookmark thumbnail */
22
- bookmarkThumbWidth : number ;
22
+ bookmarkThumbWidth ? : number ;
23
23
24
24
/** Determines if drop is enabled */
25
- dropEnabled : boolean ;
25
+ dropEnabled ? : boolean ;
26
26
27
27
/** Determines if the footer panel is enabled */
28
- footerPanelEnabled : boolean ;
28
+ footerPanelEnabled ? : boolean ;
29
29
30
30
/** Determines if the header panel is enabled */
31
- headerPanelEnabled : boolean ;
31
+ headerPanelEnabled ? : boolean ;
32
32
33
33
/** Determines if the left panel is enabled */
34
- leftPanelEnabled : boolean ;
34
+ leftPanelEnabled ? : boolean ;
35
35
36
36
/** Determines if locales are limited */
37
- limitLocales : boolean ;
37
+ limitLocales ? : boolean ;
38
38
39
39
/** Determines if double click annotation is enabled */
40
- doubleClickAnnotationEnabled : boolean ;
40
+ doubleClickAnnotationEnabled ? : boolean ;
41
41
42
42
/** Metrics array */
43
43
metrics : Metric [ ] ;
@@ -46,7 +46,7 @@ export type Options = {
46
46
multiSelectionMimeType : string ;
47
47
48
48
/** Determines if the navigator is enabled */
49
- navigatorEnabled : boolean ;
49
+ navigatorEnabled ? : boolean ;
50
50
51
51
/** Template for opening */
52
52
openTemplate : string ;
@@ -55,31 +55,31 @@ export type Options = {
55
55
overrideFullScreen : boolean ;
56
56
57
57
/** Determines if paging is enabled */
58
- pagingEnabled : boolean ;
58
+ pagingEnabled ? : boolean ;
59
59
60
60
/** Determines if paging option is enabled */
61
- pagingOptionEnabled : boolean ;
61
+ pagingOptionEnabled ? : boolean ;
62
62
63
63
/** Determines if access control is pessimistic */
64
- pessimisticAccessControl : boolean ;
64
+ pessimisticAccessControl ? : boolean ;
65
65
66
66
/** Determines if viewport is preserved */
67
- preserveViewport : boolean ;
67
+ preserveViewport ? : boolean ;
68
68
69
69
/** Determines if the right panel is enabled */
70
- rightPanelEnabled : boolean ;
70
+ rightPanelEnabled ? : boolean ;
71
71
72
72
/** Determines if user settings are saved */
73
- saveUserSettings : boolean ;
73
+ saveUserSettings ? : boolean ;
74
74
75
75
/** Determines if click to zoom is enabled */
76
- clickToZoomEnabled : boolean ;
76
+ clickToZoomEnabled ? : boolean ;
77
77
78
78
/** Determines if search within is enabled */
79
- searchWithinEnabled : boolean ;
79
+ searchWithinEnabled ? : boolean ;
80
80
81
81
/** Determines if seealso content is enabled */
82
- seeAlsoEnabled : boolean ;
82
+ seeAlsoEnabled ? : boolean ;
83
83
84
84
/** Determines if terms of use are enabled */
85
85
termsOfUseEnabled : boolean ;
@@ -91,13 +91,16 @@ export type Options = {
91
91
tokenStorage : string | StorageType ;
92
92
93
93
/** Determines if arrow keys can be used to navigate */
94
- useArrowKeysToNavigate : boolean ;
94
+ useArrowKeysToNavigate ?: boolean ;
95
+
96
+ /** Determines if PDF.js should be used for PDF rendering */
97
+ usePdfJs ?: boolean ;
95
98
96
99
/** Determines if zoom to search result is enabled */
97
- zoomToSearchResultEnabled : boolean ;
100
+ zoomToSearchResultEnabled ? : boolean ;
98
101
99
102
/** Determines if zoom to bounds is enabled */
100
- zoomToBoundsEnabled : boolean ;
103
+ zoomToBoundsEnabled ? : boolean ;
101
104
} ;
102
105
103
106
type Locale = {
@@ -110,12 +113,16 @@ export type Localisation = {
110
113
locales : Locale [ ] ;
111
114
} ;
112
115
116
+ type DialogueOptions = {
117
+ topCloseButtonEnabled : boolean ;
118
+ } ;
119
+
113
120
type DialogueContent = {
114
121
close : string ;
115
122
} ;
116
123
117
124
type Dialogue = {
118
- topCloseButtonEnabled : boolean ;
125
+ options ?: DialogueOptions ;
119
126
content : DialogueContent ;
120
127
} ;
121
128
@@ -167,10 +174,15 @@ type DownloadDialogueContent = {
167
174
} ;
168
175
169
176
type DownloadDialogue = {
170
- options : DownloadDialogueOptions ;
177
+ options ? : DownloadDialogueOptions ;
171
178
content : DownloadDialogueContent ;
172
179
} ;
173
180
181
+ /**
182
+ * Type for Generic Dialogue Options
183
+ */
184
+ type GenericDialogueOptions = { } ;
185
+
174
186
type GenericDialogueContent = {
175
187
emptyValue : string ;
176
188
invalidNumber : string ;
@@ -181,9 +193,66 @@ type GenericDialogueContent = {
181
193
} ;
182
194
183
195
type GenericDialogue = {
196
+ options ?: GenericDialogueOptions ;
184
197
content : GenericDialogueContent ;
185
198
} ;
186
199
200
+ type MoreInfoRightPanelOptions = {
201
+ /** Order in which canvases are displayed */
202
+ canvasDisplayOrder : string ;
203
+ /** Canvases to exclude from display */
204
+ canvasExclude : string ;
205
+ /** Determines if copying to clipboard is enabled */
206
+ copyToClipboardEnabled : boolean ;
207
+ /** Order in which manifests are displayed */
208
+ manifestDisplayOrder : string ;
209
+ /** Manifests to exclude from display */
210
+ manifestExclude : string ;
211
+ /** Duration of the panel animation */
212
+ panelAnimationDuration : number ;
213
+ /** Width of the collapsed panel */
214
+ panelCollapsedWidth : number ;
215
+ /** Width of the expanded panel */
216
+ panelExpandedWidth : number ;
217
+ /** Determines if the panel is open */
218
+ panelOpen : boolean ;
219
+ /** Language codes for right-to-left languages */
220
+ rtlLanguageCodes : string ;
221
+ /** Determines if all languages should be shown */
222
+ showAllLanguages : boolean ;
223
+ /** Limit for the text */
224
+ textLimit : number ;
225
+ /** Type of the text limit */
226
+ textLimitType : string ;
227
+ } ;
228
+
229
+ type MoreInfoRightPanelContent = {
230
+ attribution : string ;
231
+ canvasHeader : string ;
232
+ collapse : string ;
233
+ collapseFull : string ;
234
+ copiedToClipboard : string ;
235
+ copyToClipboard : string ;
236
+ description : string ;
237
+ expand : string ;
238
+ expandFull : string ;
239
+ holdingText : string ;
240
+ less : string ;
241
+ license : string ;
242
+ logo : string ;
243
+ manifestHeader : string ;
244
+ more : string ;
245
+ noData : string ;
246
+ page : string ;
247
+ rangeHeader : string ;
248
+ title : string ;
249
+ } ;
250
+
251
+ type MoreInfoRightPanel = {
252
+ options : MoreInfoRightPanelOptions ;
253
+ content : MoreInfoRightPanelContent ;
254
+ } ;
255
+
187
256
export type Content = {
188
257
authCORSError : string ;
189
258
authorisationFailedMessage : string ;
@@ -203,6 +272,7 @@ export type BaseConfig = {
203
272
dialogue : Dialogue ;
204
273
downloadDialogue : DownloadDialogue ;
205
274
genericDialogue : GenericDialogue ;
275
+ moreInfoRightPanel : MoreInfoRightPanel ;
206
276
} ;
207
277
localisation : Localisation ;
208
278
content : Content ;
0 commit comments