@edrlab/thorium-web 1.4.1 → 1.5.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.
- package/dist/{ThPreferencesAdapter-_5AePKHa.d.mts → ThPreferencesAdapter-B3a-f5v-.d.mts} +22 -17
- package/dist/{ThSettingsWrapper-B_9klYXH.d.mts → ThSettingsWrapper-DtzcwzYX.d.mts} +4 -4
- package/dist/{actions-CuRRM3rp.d.mts → actions-C33UN3Ji.d.mts} +14 -3
- package/dist/{actionsReducer-VFR42qgL.d.mts → actionsReducer-Bzcj3wk3.d.mts} +1 -1
- package/dist/{chunk-SZAVAQ6S.mjs → chunk-2B3HE57E.mjs} +42 -52
- package/dist/chunk-2B3HE57E.mjs.map +1 -0
- package/dist/{chunk-SI4FBFHM.mjs → chunk-3ITHCTDL.mjs} +157 -108
- package/dist/chunk-3ITHCTDL.mjs.map +1 -0
- package/dist/{chunk-OD75GC5N.mjs → chunk-3VB756GR.mjs} +89 -51
- package/dist/chunk-3VB756GR.mjs.map +1 -0
- package/dist/{chunk-ETLIGONP.mjs → chunk-AXX4U2FW.mjs} +25 -133
- package/dist/chunk-AXX4U2FW.mjs.map +1 -0
- package/dist/{chunk-WF2UOYO7.mjs → chunk-CCHCCVSF.mjs} +3 -3
- package/dist/{chunk-WF2UOYO7.mjs.map → chunk-CCHCCVSF.mjs.map} +1 -1
- package/dist/{chunk-RBEPH5E5.mjs → chunk-J6XDICU2.mjs} +80 -50
- package/dist/chunk-J6XDICU2.mjs.map +1 -0
- package/dist/chunk-KQ3KS5O5.mjs +37 -0
- package/dist/chunk-KQ3KS5O5.mjs.map +1 -0
- package/dist/{chunk-DQDOOTCE.mjs → chunk-KT2QY5QU.mjs} +3 -3
- package/dist/{chunk-DQDOOTCE.mjs.map → chunk-KT2QY5QU.mjs.map} +1 -1
- package/dist/{chunk-KGSFTRCH.mjs → chunk-KXOIN35D.mjs} +45 -117
- package/dist/chunk-KXOIN35D.mjs.map +1 -0
- package/dist/{chunk-E2JEGVVE.mjs → chunk-MTH2RF6V.mjs} +45 -12
- package/dist/chunk-MTH2RF6V.mjs.map +1 -0
- package/dist/{chunk-MSHUPSBI.mjs → chunk-THOJRBVD.mjs} +337 -90
- package/dist/chunk-THOJRBVD.mjs.map +1 -0
- package/dist/{chunk-VENFFPK2.mjs → chunk-VYSDLACR.mjs} +2 -2
- package/dist/{chunk-VENFFPK2.mjs.map → chunk-VYSDLACR.mjs.map} +1 -1
- package/dist/chunk-X63WSMOH.mjs +57 -0
- package/dist/chunk-X63WSMOH.mjs.map +1 -0
- package/dist/{chunk-YEVLT3AV.mjs → chunk-YE5QOQUT.mjs} +3 -3
- package/dist/{chunk-YEVLT3AV.mjs.map → chunk-YE5QOQUT.mjs.map} +1 -1
- package/dist/components/Audio/index.css +10 -0
- package/dist/components/Audio/index.css.map +1 -1
- package/dist/components/Audio/index.d.mts +12 -11
- package/dist/components/Audio/index.mjs +13 -12
- package/dist/components/Epub/index.css +10 -0
- package/dist/components/Epub/index.css.map +1 -1
- package/dist/components/Epub/index.d.mts +12 -11
- package/dist/components/Epub/index.mjs +14 -13
- package/dist/components/Misc/index.mjs +4 -4
- package/dist/components/Reader/index.css +10 -0
- package/dist/components/Reader/index.css.map +1 -1
- package/dist/components/Reader/index.d.mts +11 -10
- package/dist/components/Reader/index.mjs +21 -20
- package/dist/components/Reader/index.mjs.map +1 -1
- package/dist/components/WebPub/index.css +10 -0
- package/dist/components/WebPub/index.css.map +1 -1
- package/dist/components/WebPub/index.d.mts +12 -11
- package/dist/components/WebPub/index.mjs +14 -13
- package/dist/core/Components/index.d.mts +10 -25
- package/dist/core/Components/index.mjs +1 -1
- package/dist/core/Helpers/index.d.mts +1 -1
- package/dist/core/Helpers/index.mjs +3 -2
- package/dist/core/Hooks/index.d.mts +14 -7
- package/dist/core/Hooks/index.mjs +2 -1
- package/dist/i18n/index.mjs +2 -2
- package/dist/keyboardUtilities-BCP3UcLb.d.mts +30 -0
- package/dist/lib/index.d.mts +9 -8
- package/dist/lib/index.mjs +3 -2
- package/dist/locales/da/thorium-shared.json +217 -10
- package/dist/locales/he/thorium-shared.json +8 -0
- package/dist/locales/he/thorium-web.json +9 -0
- package/dist/locales/it/thorium-shared.json +2 -2
- package/dist/locales/it/thorium-web.json +24 -2
- package/dist/locales/lt/thorium-shared.json +85 -1
- package/dist/locales/sv/thorium-shared.json +5 -5
- package/dist/locales/sv/thorium-web.json +22 -0
- package/dist/preferences/index.d.mts +16 -23
- package/dist/preferences/index.mjs +4 -3
- package/dist/{settingsReducer-VqBhLq50.d.mts → settingsReducer-Pp9aoiiC.d.mts} +1 -1
- package/dist/{useAudioNavigator-CWXyNWq1.d.mts → useAudioNavigator-9RuOpLGB.d.mts} +8 -5
- package/dist/{useContrast-Cbso7N1l.d.mts → useContrast-Bl08zDTU.d.mts} +2 -7
- package/dist/{usePreferences-9ZvbcbLW.d.mts → usePreferences-Cy7-JN2x.d.mts} +4 -8
- package/dist/{useReaderTransitions-0hKGCvMm.d.mts → useReaderTransitions-CpgrXS5g.d.mts} +50 -23
- package/package.json +7 -7
- package/dist/chunk-44PEO3DS.mjs +0 -121
- package/dist/chunk-44PEO3DS.mjs.map +0 -1
- package/dist/chunk-E2JEGVVE.mjs.map +0 -1
- package/dist/chunk-ETLIGONP.mjs.map +0 -1
- package/dist/chunk-KGSFTRCH.mjs.map +0 -1
- package/dist/chunk-MSHUPSBI.mjs.map +0 -1
- package/dist/chunk-OD75GC5N.mjs.map +0 -1
- package/dist/chunk-RBEPH5E5.mjs.map +0 -1
- package/dist/chunk-SI4FBFHM.mjs.map +0 -1
- package/dist/chunk-SZAVAQ6S.mjs.map +0 -1
- package/dist/keyboardUtilities-BWAyLS_D.d.mts +0 -56
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"header": {
|
|
14
14
|
"backLink": {
|
|
15
|
-
"trigger": "Ritorna alla tua
|
|
16
|
-
"tooltip": "
|
|
15
|
+
"trigger": "Ritorna alla tua biblioteca",
|
|
16
|
+
"tooltip": "Biblioteca"
|
|
17
17
|
},
|
|
18
18
|
"label": "Barra in alto",
|
|
19
19
|
"runningHead": "Titolo principale",
|
|
@@ -104,5 +104,27 @@
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
+
},
|
|
108
|
+
"audio": {
|
|
109
|
+
"player": {
|
|
110
|
+
"progress": "Progressione della riproduzione",
|
|
111
|
+
"controls": "Controlli della riproduzione",
|
|
112
|
+
"mediaControls": "Impostazioni audio",
|
|
113
|
+
"coverAlt": "Copertina dell'audiolibro"
|
|
114
|
+
},
|
|
115
|
+
"remotePlayback": {
|
|
116
|
+
"trigger": "Riproduzione da remoto",
|
|
117
|
+
"connected": "Dispositivo connesso"
|
|
118
|
+
},
|
|
119
|
+
"settings": {
|
|
120
|
+
"sleepTimer": {
|
|
121
|
+
"hours": "h",
|
|
122
|
+
"minutes": "min",
|
|
123
|
+
"seconds": "s",
|
|
124
|
+
"start": "Avvio",
|
|
125
|
+
"instruction": "La riproduzione si interromperà dopo l'intervallo di tempo selezionato.",
|
|
126
|
+
"remaining": "Arresto in {{ remaining }}"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
107
129
|
}
|
|
108
130
|
}
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
"compact": "Kitas",
|
|
38
38
|
"descriptive": "Kitas puslapis"
|
|
39
39
|
},
|
|
40
|
+
"goToNextResource": {
|
|
41
|
+
"compact": "Kitas",
|
|
42
|
+
"descriptive": "Kitas išteklius"
|
|
43
|
+
},
|
|
40
44
|
"goToNextSentence": {
|
|
41
45
|
"compact": "Kitas",
|
|
42
46
|
"descriptive": "Kitas sakinys"
|
|
@@ -53,11 +57,68 @@
|
|
|
53
57
|
"compact": "Ankstesnis",
|
|
54
58
|
"descriptive": "Ankstesnis puslapis"
|
|
55
59
|
},
|
|
60
|
+
"goToPreviousResource": {
|
|
61
|
+
"compact": "Ankstesnis",
|
|
62
|
+
"descriptive": "Ankstesnis išteklius"
|
|
63
|
+
},
|
|
56
64
|
"goToPreviousSentence": {
|
|
57
65
|
"compact": "Ankstesnis",
|
|
58
66
|
"descriptive": "Ankstesnis sakinys"
|
|
59
67
|
}
|
|
60
68
|
},
|
|
69
|
+
"annotations": {
|
|
70
|
+
"actions": {
|
|
71
|
+
"editNote": {
|
|
72
|
+
"compact": "Redaguoti pastabą"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"bookmarks": {
|
|
76
|
+
"actions": {
|
|
77
|
+
"add": {
|
|
78
|
+
"compact": "Pridėti skirtuką"
|
|
79
|
+
},
|
|
80
|
+
"delete": {
|
|
81
|
+
"compact": "Pašalinti skirtuką",
|
|
82
|
+
"confirmation": "Ar tikrai norite pašalinti šį skirtuką?"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"emptyState": {
|
|
86
|
+
"title": "Skirtukų nėra"
|
|
87
|
+
},
|
|
88
|
+
"title": "Skirtukai"
|
|
89
|
+
},
|
|
90
|
+
"note": {
|
|
91
|
+
"title": "Pastaba"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"playback": {
|
|
95
|
+
"actions": {
|
|
96
|
+
"pause": "Pristabdyti",
|
|
97
|
+
"play": "Atkurti"
|
|
98
|
+
},
|
|
99
|
+
"preferences": {
|
|
100
|
+
"audio": {
|
|
101
|
+
"title": "Garso nuostatos",
|
|
102
|
+
"volume": "Garsis"
|
|
103
|
+
},
|
|
104
|
+
"autoPlay": {
|
|
105
|
+
"label": "Nepertraukiamas atkūrimas",
|
|
106
|
+
"title": "Automatinis paleidimas"
|
|
107
|
+
},
|
|
108
|
+
"playbackRate": {
|
|
109
|
+
"compact": "Sparta",
|
|
110
|
+
"descriptive": "Atkūrimo sparta"
|
|
111
|
+
},
|
|
112
|
+
"sleepTimer": {
|
|
113
|
+
"compact": "Laikmatis",
|
|
114
|
+
"descriptive": "Miego laikmatis",
|
|
115
|
+
"presets": {
|
|
116
|
+
"endOfChapter": "Skyriaus pabaiga",
|
|
117
|
+
"endOfResource": "Ištekliaus pabaiga"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
61
122
|
"preferences": {
|
|
62
123
|
"brightness": "Ryškumas",
|
|
63
124
|
"columns": {
|
|
@@ -118,6 +179,10 @@
|
|
|
118
179
|
"title": "Išdėstymas"
|
|
119
180
|
},
|
|
120
181
|
"letterSpacing": "Raidžių išretinimas",
|
|
182
|
+
"ligatures": {
|
|
183
|
+
"label": "Įgalinti ligatūras",
|
|
184
|
+
"title": "Ligatūros"
|
|
185
|
+
},
|
|
121
186
|
"lineHeight": {
|
|
122
187
|
"default": "Numatytasis",
|
|
123
188
|
"large": "Erdvus",
|
|
@@ -125,6 +190,10 @@
|
|
|
125
190
|
"small": "Glaudus",
|
|
126
191
|
"title": "Eilutės aukštis"
|
|
127
192
|
},
|
|
193
|
+
"noRuby": {
|
|
194
|
+
"label": "Slėpti „ruby“ anotacijas",
|
|
195
|
+
"title": "„Ruby“ anotacijos"
|
|
196
|
+
},
|
|
128
197
|
"offsetFirstPage": "Atvaizduoti pirmąjį puslapį atskirai",
|
|
129
198
|
"paragraphIndent": "Pastraipos įtrauka",
|
|
130
199
|
"paragraphSpacing": "Tarpas tarp pastraipų",
|
|
@@ -246,9 +315,24 @@
|
|
|
246
315
|
"descriptive": "{{ x }} iš {{ y }} ({{ z }})"
|
|
247
316
|
}
|
|
248
317
|
},
|
|
318
|
+
"search": {
|
|
319
|
+
"actions": {
|
|
320
|
+
"next": {
|
|
321
|
+
"compact": "Kitas rezultatas"
|
|
322
|
+
},
|
|
323
|
+
"previous": {
|
|
324
|
+
"compact": "Ankstesnis rezultatas"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"placeholder": "Ieškoti raktažodžių ar frazių",
|
|
328
|
+
"result_few": "{{ current }} iš {{ count }} rezultatų",
|
|
329
|
+
"result_one": "{{ current }} iš {{ count }} rezultato",
|
|
330
|
+
"result_other": "{{ current }} iš {{ count }} rezultatų",
|
|
331
|
+
"title": "Paieška"
|
|
332
|
+
},
|
|
249
333
|
"tableOfContents": {
|
|
250
334
|
"emptyState": {
|
|
251
|
-
"description": "
|
|
335
|
+
"description": "Autorius nepateikė turinio.",
|
|
252
336
|
"title": "Nėra turinio"
|
|
253
337
|
},
|
|
254
338
|
"title": "Turinys"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"emptyState": {
|
|
86
|
-
"description": "
|
|
86
|
+
"description": "Bokmärken som du lagt till under läsning kommer att visas i den här listan.",
|
|
87
87
|
"title": "Inga bokmärken"
|
|
88
88
|
},
|
|
89
89
|
"title": "Bokmärken"
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"pause": "Paus",
|
|
109
109
|
"play": "Spela",
|
|
110
110
|
"skipBackward": {
|
|
111
|
-
"compact": "
|
|
111
|
+
"compact": "Hoppa tillbaka",
|
|
112
112
|
"descriptive": "Hoppa bakåt"
|
|
113
113
|
},
|
|
114
114
|
"skipForward": {
|
|
@@ -120,13 +120,13 @@
|
|
|
120
120
|
"audio": {
|
|
121
121
|
"skipBackwardInterval": "Hoppa bakåt intervall",
|
|
122
122
|
"skipForwardInterval": "Hoppa framåt intervall",
|
|
123
|
-
"skipInterval": "
|
|
123
|
+
"skipInterval": "Längd på hopp",
|
|
124
124
|
"title": "Ljudinställningar",
|
|
125
125
|
"volume": "Volym"
|
|
126
126
|
},
|
|
127
127
|
"autoPlay": {
|
|
128
|
-
"label": "
|
|
129
|
-
"title": "
|
|
128
|
+
"label": "Fortsätt spela vid kapitelslut",
|
|
129
|
+
"title": "Kontinuerlig uppspelning"
|
|
130
130
|
},
|
|
131
131
|
"playbackRate": {
|
|
132
132
|
"compact": "Hastighet",
|
|
@@ -104,5 +104,27 @@
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
+
},
|
|
108
|
+
"audio": {
|
|
109
|
+
"player": {
|
|
110
|
+
"progress": "Läsposition",
|
|
111
|
+
"controls": "Uppspelningskontroller",
|
|
112
|
+
"mediaControls": "Ljudinställningar",
|
|
113
|
+
"coverAlt": "Omslag för ljudbok"
|
|
114
|
+
},
|
|
115
|
+
"remotePlayback": {
|
|
116
|
+
"trigger": "Fjärruppspelning",
|
|
117
|
+
"connected": "Fjärruppspelning aktiv"
|
|
118
|
+
},
|
|
119
|
+
"settings": {
|
|
120
|
+
"sleepTimer": {
|
|
121
|
+
"hours": "h",
|
|
122
|
+
"minutes": "min",
|
|
123
|
+
"seconds": "s",
|
|
124
|
+
"instruction": "Uppspelningen pausas efter den inställda tiden.",
|
|
125
|
+
"remaining": "Pausar om {{ remaining }}",
|
|
126
|
+
"start": "Starta sömntimer"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
107
129
|
}
|
|
108
130
|
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ActionKey,
|
|
1
|
+
import { f as ThGlobalPreferences, g as ThGlobalPreferencesAdapter, C as CustomizableKeys, D as DefaultKeys, e as ThPreferences, d as ThPreferencesAdapter, a as ThemeTokens, F as FontCollection, L as LocalStaticFontFile, h as FontDefinition, T as ThThemeKeys, c as ThShortcutsPref, i as ThIconPref, j as ThLayoutDefaultsPref } from '../ThPreferencesAdapter-B3a-f5v-.mjs';
|
|
2
|
+
export { A as ActionKey, w as ActionKeyType, b as AudioContentProtectionConfig, a1 as BunnyFontSource, I as CSSAbsoluteLength, J as CSSAngle, $ as CSSColor, K as CSSDefaultViewport, M as CSSDynamicViewport, O as CSSFontRelativeLength, N as CSSFrequency, P as CSSLargeViewport, Q as CSSPhysicalLength, R as CSSRelativeLength, U as CSSResolution, X as CSSRootFontRelativeLength, Y as CSSSmallViewport, Z as CSSTime, G as CSSValueUnitless, H as CSSValueWithUnit, _ as CSSViewport, an as ContentProtectionConfig, al as CopyProtectionConfig, a7 as FontSource, a8 as FontSpec, a2 as GoogleFontSource, a6 as LocalFontSource, a4 as LocalStaticFontSource, a3 as LocalVariableFontFile, a5 as LocalVariableFontSource, am as PrintProtectionConfig, S as SettingsKey, y as SettingsKeyType, n as SpacingSettingsKey, B as SpacingSettingsKeyType, a0 as SystemFontSource, m as TextSettingsKey, z as TextSettingsKeyType, q as ThActionsPref, s as ThConstraintKeys, aa as ThFontFamilyPref, r as ThSettingsKeyTypes, o as ThSettingsSpacingPresets, t as ThShortcutsDisplayIn, p as ThSpacingPreset, l as ThemeKey, x as ThemeKeyType, a9 as ValidatedLanguageCollection, V as VariableFontRangeConfig, W as WeightConfig, ae as arabicFarsiCollection, ag as chineseSimplifiedCollection, ah as chineseTraditionalCollection, ax as contrast1Theme, ay as contrast2Theme, az as contrast3Theme, k as createGlobalPreferences, v as createPreferences, au as darkTheme, ar as defaultAudioContentProtectionConfig, aq as defaultContentProtectionConfig, ac as defaultFontCollection, as as devContentProtectionConfig, af as hebrewCollection, ai as japaneseCollection, aj as japaneseVerticalCollection, ak as koreanCollection, at as lightTheme, av as paperTheme, ab as readiumCSSFontCollection, ap as resolveAudioContentProtectionConfig, ao as resolveContentProtectionConfig, aw as sepiaTheme, ad as tamilCollection, u as useTheming, E as useThemingProps } from '../ThPreferencesAdapter-B3a-f5v-.mjs';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { a as ThAudioPreferences, A as AudioDefaultKeys, b as AudioCustomizableKeys, c as ThAudioPreferencesAdapter } from '../usePreferences-
|
|
6
|
-
export { g as AudioSettingsKey, i as ThAudioActionKey, m as ThAudioActionKeys, j as ThAudioActionsPref, d as ThAudioAffordance, k as ThAudioConstraintKeys, h as ThAudioKeyTypes, n as ThAudioKeys, q as ThAudioSettingsKeys, f as ThAudioThemeKey, e as ThAudioThemeKeys, T as ThPreferencesProvider, p as ThSettingsTimerPref, o as ThSettingsTimerVariant, l as createAudioPreferences, s as defaultAudioPlaybackRate, B as defaultAudioPlaybackRateAction, D as defaultAudioRemotePlaybackAction, t as defaultAudioSkipBackwardInterval, v as defaultAudioSkipForwardInterval, w as defaultAudioSkipInterval, x as defaultAudioSleepTimer, C as defaultAudioSleepTimerAction, y as defaultAudioSleepTimerPresetList, E as defaultAudioTocAction, r as defaultAudioVolume, z as defaultAudioVolumeAction, u as usePreferences } from '../usePreferences-
|
|
7
|
-
import { e as ThColorScheme, g as ThSettingsKeys, h as ThTextSettingsKeys, b as ThSpacingSettingsKeys, a as ThSpacingPresetKeys } from '../useContrast-
|
|
8
|
-
export {
|
|
9
|
-
import { f as ThDockingPref, T as ThDockingKeys, c as ThActionsTokens, b as ThAudioActionsTokens, g as ThActionsKeys } from '../actions-
|
|
10
|
-
export { k as ThActionsDockedPref,
|
|
5
|
+
import { a as ThAudioPreferences, A as AudioDefaultKeys, b as AudioCustomizableKeys, c as ThAudioPreferencesAdapter } from '../usePreferences-Cy7-JN2x.mjs';
|
|
6
|
+
export { g as AudioSettingsKey, i as ThAudioActionKey, m as ThAudioActionKeys, j as ThAudioActionsPref, d as ThAudioAffordance, k as ThAudioConstraintKeys, h as ThAudioKeyTypes, n as ThAudioKeys, q as ThAudioSettingsKeys, f as ThAudioThemeKey, e as ThAudioThemeKeys, T as ThPreferencesProvider, p as ThSettingsTimerPref, o as ThSettingsTimerVariant, l as createAudioPreferences, s as defaultAudioPlaybackRate, B as defaultAudioPlaybackRateAction, D as defaultAudioRemotePlaybackAction, t as defaultAudioSkipBackwardInterval, v as defaultAudioSkipForwardInterval, w as defaultAudioSkipInterval, x as defaultAudioSleepTimer, C as defaultAudioSleepTimerAction, y as defaultAudioSleepTimerPresetList, E as defaultAudioTocAction, r as defaultAudioVolume, z as defaultAudioVolumeAction, u as usePreferences } from '../usePreferences-Cy7-JN2x.mjs';
|
|
7
|
+
import { e as ThColorScheme, g as ThSettingsKeys, h as ThTextSettingsKeys, b as ThSpacingSettingsKeys, a as ThSpacingPresetKeys } from '../useContrast-Bl08zDTU.mjs';
|
|
8
|
+
export { p as ThLayoutOptions, T as ThLineHeightOptions, m as ThSettingsContainerKeys, j as ThSettingsGroupPref, i as ThSettingsRadioPref, o as ThSettingsRangePlaceholder, l as ThSettingsRangePref, d as ThSettingsRangePrefRequired, n as ThSettingsRangeVariant, c as ThTextAlignOptions, z as defaultLetterSpacing, A as defaultLineHeights, x as defaultParagraphIndent, w as defaultParagraphSpacing, C as defaultSpacingPresets, v as defaultSpacingPresetsOrder, s as defaultSpacingSettingsMain, t as defaultSpacingSettingsSubpanel, q as defaultTextSettingsMain, r as defaultTextSettingsSubpanel, y as defaultWordSpacing, B as defaultZoom } from '../useContrast-Bl08zDTU.mjs';
|
|
9
|
+
import { f as ThDockingPref, T as ThDockingKeys, c as ThActionsTokens, b as ThAudioActionsTokens, g as ThActionsKeys } from '../actions-C33UN3Ji.mjs';
|
|
10
|
+
export { I as I18nValue, k as TEXT_INPUT_SELECTORS, m as ThActionsDockedPref, n as ThActionsSnappedPref, l as ThBottomSheetDetent, o as ThDockingTypes, a as ThSheetHeaderVariant, e as ThSheetTypes, j as ThShortcutConfig, p as defaultActionKeysObject, r as defaultFullscreenAction, t as defaultJumpToPositionAction, q as defaultSettingsAction, s as defaultTocAction } from '../actions-C33UN3Ji.mjs';
|
|
11
11
|
import { T as ThBackLinkPref, B as BreakpointsMap } from '../ui-DnZZhozX.mjs';
|
|
12
12
|
export { o as ThArrowVariant, a as ThAudioPlayerComponent, c as ThAudioProgressBarVariant, r as ThAudioPublicationMetadataComponent, l as ThBackLinkContent, p as ThBackLinkVariant, d as ThBreakpoints, f as ThDocumentTitleFormat, g as ThFormatPref, m as ThFormatPrefValue, q as ThLayoutDirection, j as ThLayoutUI, k as ThPaginatedAffordancePref, n as ThPaginatedAffordancePrefValue, i as ThProgressionFormat, b as ThPublicationMetadataOrder, h as ThRunningHeadFormat } from '../ui-DnZZhozX.mjs';
|
|
13
|
-
import
|
|
13
|
+
import '../keyboardUtilities-BCP3UcLb.mjs';
|
|
14
14
|
import '@readium/navigator';
|
|
15
15
|
import 'react-aria-components';
|
|
16
|
+
import '@readium/navigator-html-injectables';
|
|
16
17
|
|
|
17
18
|
interface GlobalPreferencesContextValue {
|
|
18
19
|
preferences: ThGlobalPreferences;
|
|
@@ -159,6 +160,8 @@ interface AudioActionsPreferences {
|
|
|
159
160
|
docking: ThDockingPref<ThDockingKeys>;
|
|
160
161
|
primaryActionsKeys: Record<string, ThAudioActionsTokens>;
|
|
161
162
|
secondaryActionsKeys: Record<string, ThActionsTokens>;
|
|
163
|
+
primaryDisplayOrder: string[];
|
|
164
|
+
secondaryDisplayOrder: string[];
|
|
162
165
|
}
|
|
163
166
|
/**
|
|
164
167
|
* Context-agnostic hook for docking/actions infrastructure.
|
|
@@ -216,17 +219,10 @@ declare const useFilteredPreferenceKeys: () => {
|
|
|
216
219
|
};
|
|
217
220
|
|
|
218
221
|
interface SharedPreferences {
|
|
219
|
-
shortcuts:
|
|
220
|
-
representation: UnstableShortcutRepresentation;
|
|
221
|
-
joiner?: string;
|
|
222
|
-
};
|
|
222
|
+
shortcuts: ThShortcutsPref;
|
|
223
223
|
docking: ThDockingPref<ThDockingKeys>;
|
|
224
224
|
theming: {
|
|
225
|
-
icon:
|
|
226
|
-
size: number;
|
|
227
|
-
tooltipOffset: number;
|
|
228
|
-
tooltipDelay?: number;
|
|
229
|
-
};
|
|
225
|
+
icon: ThIconPref;
|
|
230
226
|
header?: {
|
|
231
227
|
backLink?: ThBackLinkPref | null;
|
|
232
228
|
};
|
|
@@ -241,10 +237,7 @@ interface SharedPreferences {
|
|
|
241
237
|
fxlOrder?: Array<string>;
|
|
242
238
|
};
|
|
243
239
|
layout: {
|
|
244
|
-
defaults:
|
|
245
|
-
dockingWidth: number;
|
|
246
|
-
scrim: string;
|
|
247
|
-
};
|
|
240
|
+
defaults: ThLayoutDefaultsPref;
|
|
248
241
|
};
|
|
249
242
|
breakpoints: BreakpointsMap<number | null>;
|
|
250
243
|
};
|
|
@@ -258,4 +251,4 @@ declare const useSharedPreferences: () => SharedPreferences;
|
|
|
258
251
|
|
|
259
252
|
declare const useGlobalPreferences: () => GlobalPreferencesContextValue;
|
|
260
253
|
|
|
261
|
-
export { type ActionsPreferences, type AudioActionsPreferences, AudioCustomizableKeys, AudioDefaultKeys, type AudioPreferencesContextValue, CustomizableKeys, DefaultKeys, FontCollection, FontDefinition, type GlobalPreferencesContextValue, type GoogleFontDefinitionParams, LocalStaticFontFile, type PreferencesContextValue, type SharedPreferences, ThActionsKeys, ThActionsTokens, ThAudioActionsTokens, ThAudioMemoryPreferencesAdapter, ThAudioPreferences, ThAudioPreferencesAdapter, ThAudioPreferencesContext, ThAudioPreferencesProvider, ThBackLinkPref, ThDockingKeys, ThDockingPref, ThGlobalMemoryPreferencesAdapter, ThGlobalPreferences, ThGlobalPreferencesAdapter, ThGlobalPreferencesContext, ThGlobalPreferencesProvider, ThMemoryPreferencesAdapter, ThPreferences, ThPreferencesAdapter, ThPreferencesContext, ThSettingsKeys, ThSpacingPresetKeys, ThSpacingSettingsKeys, ThTextSettingsKeys, ThThemeKeys, ThemeTokens, buildThemeObject, type buildThemeProps, createDefinitionFromStaticFonts, createDefinitionsFromBunnyFonts, createDefinitionsFromGoogleFonts, defaultAudioPreferences, defaultAudioPreferencesContextValue, defaultPreferences, defaultPreferencesContextValue, useActionsPreferences, useAudioActionsPreferences, useAudioPreferences, useFilteredPreferenceKeys, useGlobalPreferences, usePreferenceKeys, useSharedPreferences, validateObjectKeys };
|
|
254
|
+
export { type ActionsPreferences, type AudioActionsPreferences, AudioCustomizableKeys, AudioDefaultKeys, type AudioPreferencesContextValue, CustomizableKeys, DefaultKeys, FontCollection, FontDefinition, type GlobalPreferencesContextValue, type GoogleFontDefinitionParams, LocalStaticFontFile, type PreferencesContextValue, type SharedPreferences, ThActionsKeys, ThActionsTokens, ThAudioActionsTokens, ThAudioMemoryPreferencesAdapter, ThAudioPreferences, ThAudioPreferencesAdapter, ThAudioPreferencesContext, ThAudioPreferencesProvider, ThBackLinkPref, ThDockingKeys, ThDockingPref, ThGlobalMemoryPreferencesAdapter, ThGlobalPreferences, ThGlobalPreferencesAdapter, ThGlobalPreferencesContext, ThGlobalPreferencesProvider, ThIconPref, ThLayoutDefaultsPref, ThMemoryPreferencesAdapter, ThPreferences, ThPreferencesAdapter, ThPreferencesContext, ThSettingsKeys, ThShortcutsPref, ThSpacingPresetKeys, ThSpacingSettingsKeys, ThTextSettingsKeys, ThThemeKeys, ThemeTokens, buildThemeObject, type buildThemeProps, createDefinitionFromStaticFonts, createDefinitionsFromBunnyFonts, createDefinitionsFromGoogleFonts, defaultAudioPreferences, defaultAudioPreferencesContextValue, defaultPreferences, defaultPreferencesContextValue, useActionsPreferences, useAudioActionsPreferences, useAudioPreferences, useFilteredPreferenceKeys, useGlobalPreferences, usePreferenceKeys, useSharedPreferences, validateObjectKeys };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export { ThActionsKeys, ThAudioActionKeys, ThAudioAffordance, ThAudioKeys, ThAudioMemoryPreferencesAdapter, ThAudioPreferencesContext, ThAudioPreferencesProvider, ThDockingKeys, ThDockingTypes, ThGlobalMemoryPreferencesAdapter, ThGlobalPreferencesProvider, ThLayoutOptions, ThLineHeightOptions, ThMemoryPreferencesAdapter, ThPreferencesContext, ThPreferencesProvider, ThSettingsContainerKeys, ThSettingsKeys, ThSettingsRangePlaceholder, ThSettingsRangeVariant, ThSettingsTimerVariant, ThSheetHeaderVariant, ThSheetTypes, ThSpacingPresetKeys, ThSpacingSettingsKeys, ThTextAlignOptions, ThTextSettingsKeys, ThThemeKeys, arabicFarsiCollection, buildThemeObject, chineseSimplifiedCollection, chineseTraditionalCollection, contrast1Theme, contrast2Theme, contrast3Theme, createAudioPreferences, createDefinitionFromStaticFonts, createDefinitionsFromBunnyFonts, createDefinitionsFromGoogleFonts, createGlobalPreferences, createPreferences, darkTheme, defaultActionKeysObject, defaultAudioContentProtectionConfig, defaultAudioPlaybackRate, defaultAudioPlaybackRateAction, defaultAudioPreferences, defaultAudioPreferencesContextValue, defaultAudioRemotePlaybackAction, defaultAudioSkipBackwardInterval, defaultAudioSkipForwardInterval, defaultAudioSkipInterval, defaultAudioSleepTimer, defaultAudioSleepTimerAction, defaultAudioSleepTimerPresetList, defaultAudioTocAction, defaultAudioVolume, defaultAudioVolumeAction, defaultContentProtectionConfig, defaultFontCollection, defaultFullscreenAction, defaultJumpToPositionAction, defaultLetterSpacing, defaultLineHeights, defaultParagraphIndent, defaultParagraphSpacing, defaultPreferences, defaultPreferencesContextValue, defaultSettingsAction, defaultSpacingPresets, defaultSpacingPresetsOrder, defaultSpacingSettingsMain, defaultSpacingSettingsSubpanel, defaultTextSettingsMain, defaultTextSettingsSubpanel, defaultTocAction, defaultWordSpacing, defaultZoom, devContentProtectionConfig, hebrewCollection, japaneseCollection, japaneseVerticalCollection, koreanCollection, lightTheme, paperTheme, readiumCSSFontCollection, resolveAudioContentProtectionConfig, resolveContentProtectionConfig, sepiaTheme, tamilCollection, useActionsPreferences, useAudioActionsPreferences, useAudioPreferences, useFilteredPreferenceKeys, usePreferenceKeys, usePreferences, useSharedPreferences, useTheming, validateObjectKeys } from '../chunk-
|
|
1
|
+
export { TEXT_INPUT_SELECTORS, ThActionsKeys, ThAudioActionKeys, ThAudioAffordance, ThAudioKeys, ThAudioMemoryPreferencesAdapter, ThAudioPreferencesContext, ThAudioPreferencesProvider, ThDockingKeys, ThDockingTypes, ThGlobalMemoryPreferencesAdapter, ThGlobalPreferencesProvider, ThLayoutOptions, ThLineHeightOptions, ThMemoryPreferencesAdapter, ThPreferencesContext, ThPreferencesProvider, ThSettingsContainerKeys, ThSettingsKeys, ThSettingsRangePlaceholder, ThSettingsRangeVariant, ThSettingsTimerVariant, ThSheetHeaderVariant, ThSheetTypes, ThSpacingPresetKeys, ThSpacingSettingsKeys, ThTextAlignOptions, ThTextSettingsKeys, ThThemeKeys, arabicFarsiCollection, buildThemeObject, chineseSimplifiedCollection, chineseTraditionalCollection, contrast1Theme, contrast2Theme, contrast3Theme, createAudioPreferences, createDefinitionFromStaticFonts, createDefinitionsFromBunnyFonts, createDefinitionsFromGoogleFonts, createGlobalPreferences, createPreferences, darkTheme, defaultActionKeysObject, defaultAudioContentProtectionConfig, defaultAudioPlaybackRate, defaultAudioPlaybackRateAction, defaultAudioPreferences, defaultAudioPreferencesContextValue, defaultAudioRemotePlaybackAction, defaultAudioSkipBackwardInterval, defaultAudioSkipForwardInterval, defaultAudioSkipInterval, defaultAudioSleepTimer, defaultAudioSleepTimerAction, defaultAudioSleepTimerPresetList, defaultAudioTocAction, defaultAudioVolume, defaultAudioVolumeAction, defaultContentProtectionConfig, defaultFontCollection, defaultFullscreenAction, defaultJumpToPositionAction, defaultLetterSpacing, defaultLineHeights, defaultParagraphIndent, defaultParagraphSpacing, defaultPreferences, defaultPreferencesContextValue, defaultSettingsAction, defaultSpacingPresets, defaultSpacingPresetsOrder, defaultSpacingSettingsMain, defaultSpacingSettingsSubpanel, defaultTextSettingsMain, defaultTextSettingsSubpanel, defaultTocAction, defaultWordSpacing, defaultZoom, devContentProtectionConfig, hebrewCollection, japaneseCollection, japaneseVerticalCollection, koreanCollection, lightTheme, paperTheme, readiumCSSFontCollection, resolveAudioContentProtectionConfig, resolveContentProtectionConfig, sepiaTheme, tamilCollection, useActionsPreferences, useAudioActionsPreferences, useAudioPreferences, useFilteredPreferenceKeys, usePreferenceKeys, usePreferences, useSharedPreferences, useTheming, validateObjectKeys } from '../chunk-3VB756GR.mjs';
|
|
2
2
|
export { ThArrowVariant, ThAudioPlayerComponent, ThAudioProgressBarVariant, ThAudioPublicationMetadataComponent, ThBackLinkVariant, ThBreakpoints, ThDocumentTitleFormat, ThLayoutDirection, ThLayoutUI, ThProgressionFormat, ThRunningHeadFormat } from '../chunk-2YRT7RNW.mjs';
|
|
3
3
|
import '../chunk-GFSLVQIG.mjs';
|
|
4
4
|
export { ThGlobalPreferencesContext, useGlobalPreferences } from '../chunk-AE6P4KJB.mjs';
|
|
5
|
+
import '../chunk-GNROODJB.mjs';
|
|
5
6
|
import '../chunk-A575ZW4A.mjs';
|
|
6
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-X63WSMOH.mjs';
|
|
7
8
|
import '../chunk-NQ2ZSGCX.mjs';
|
|
9
|
+
import '../chunk-KQ3KS5O5.mjs';
|
|
8
10
|
import '../chunk-AQSJDL63.mjs';
|
|
9
|
-
import '../chunk-GNROODJB.mjs';
|
|
10
11
|
import '../chunk-3GDQP6AS.mjs';
|
|
11
12
|
//# sourceMappingURL=index.mjs.map
|
|
12
13
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
2
2
|
import { W as WritableDraft } from './immer.d-CoRThNOF.mjs';
|
|
3
|
-
import { T as ThLineHeightOptions, a as ThSpacingPresetKeys, b as ThSpacingSettingsKeys, c as ThTextAlignOptions } from './useContrast-
|
|
3
|
+
import { T as ThLineHeightOptions, a as ThSpacingPresetKeys, b as ThSpacingSettingsKeys, c as ThTextAlignOptions } from './useContrast-Bl08zDTU.mjs';
|
|
4
4
|
|
|
5
5
|
interface FontFamilyStateObject {
|
|
6
6
|
default: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _readium_navigator from '@readium/navigator';
|
|
2
|
-
import { EpubNavigatorListeners, IEpubPreferences, IEpubDefaults, IInjectablesConfig, IContentProtectionConfig, EpubSettings, ScriptMode, WebPubNavigatorListeners, IWebPubPreferences, IWebPubDefaults, WebPubSettings, AudioNavigatorListeners, IAudioPreferences, IAudioDefaults } from '@readium/navigator';
|
|
3
|
-
import
|
|
2
|
+
import { EpubNavigatorListeners, IEpubPreferences, IEpubDefaults, IInjectablesConfig, IContentProtectionConfig, IKeyboardPeripheralsConfig, EpubSettings, ScriptMode, WebPubNavigatorListeners, IWebPubPreferences, IWebPubDefaults, WebPubSettings, AudioNavigatorListeners, IAudioPreferences, IAudioDefaults } from '@readium/navigator';
|
|
3
|
+
import * as _readium_shared from '@readium/shared';
|
|
4
|
+
import { Publication, Locator, Link, Timeline } from '@readium/shared';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
|
|
6
7
|
type cbb$2 = (ok: boolean) => void;
|
|
@@ -14,9 +15,10 @@ interface EpubNavigatorLoadProps {
|
|
|
14
15
|
defaults?: IEpubDefaults;
|
|
15
16
|
injectables?: IInjectablesConfig;
|
|
16
17
|
contentProtection?: IContentProtectionConfig;
|
|
18
|
+
keyboardPeripherals?: IKeyboardPeripheralsConfig;
|
|
17
19
|
}
|
|
18
20
|
declare const useEpubNavigator: () => {
|
|
19
|
-
EpubNavigatorLoad: (config: EpubNavigatorLoadProps, cb: Function
|
|
21
|
+
EpubNavigatorLoad: (config: EpubNavigatorLoadProps, cb: Function) => void;
|
|
20
22
|
EpubNavigatorDestroy: (cb: Function) => void;
|
|
21
23
|
goRight: (animated: boolean, callback: cbb$2) => void;
|
|
22
24
|
goLeft: (animated: boolean, callback: cbb$2) => void;
|
|
@@ -24,7 +26,7 @@ declare const useEpubNavigator: () => {
|
|
|
24
26
|
goForward: (animated: boolean, callback: cbb$2) => void;
|
|
25
27
|
goLink: (link: Link, animated: boolean, callback: cbb$2) => void;
|
|
26
28
|
go: (locator: Locator, animated: boolean, callback: cbb$2) => void;
|
|
27
|
-
navLayout: () => Layout | undefined;
|
|
29
|
+
navLayout: () => _readium_shared.Layout | undefined;
|
|
28
30
|
currentLocator: () => Locator | undefined;
|
|
29
31
|
previousLocator: () => Locator | null | undefined;
|
|
30
32
|
nextLocator: () => Locator | null | undefined;
|
|
@@ -38,7 +40,6 @@ declare const useEpubNavigator: () => {
|
|
|
38
40
|
submitPreferences: (preferences: IEpubPreferences) => Promise<void>;
|
|
39
41
|
getCframes: () => (_readium_navigator.FXLFrameManager | _readium_navigator.FrameManager | undefined)[] | undefined;
|
|
40
42
|
getScriptMode: () => ScriptMode | undefined;
|
|
41
|
-
onFXLPositionChange: (cb: (locator: Locator) => void) => void;
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
type cbb$1 = (ok: boolean) => void;
|
|
@@ -51,6 +52,7 @@ interface WebPubNavigatorLoadProps {
|
|
|
51
52
|
defaults?: IWebPubDefaults;
|
|
52
53
|
injectables?: IInjectablesConfig;
|
|
53
54
|
contentProtection?: IContentProtectionConfig;
|
|
55
|
+
keyboardPeripherals?: IKeyboardPeripheralsConfig;
|
|
54
56
|
}
|
|
55
57
|
declare const useWebPubNavigator: () => {
|
|
56
58
|
WebPubNavigatorLoad: (config: WebPubNavigatorLoadProps, cb: Function) => void;
|
|
@@ -100,6 +102,7 @@ interface AudioNavigatorLoadProps {
|
|
|
100
102
|
preferences?: IAudioPreferences;
|
|
101
103
|
defaults?: IAudioDefaults;
|
|
102
104
|
contentProtection?: IContentProtectionConfig;
|
|
105
|
+
keyboardPeripherals?: IKeyboardPeripheralsConfig;
|
|
103
106
|
audioContext?: AudioContext;
|
|
104
107
|
}
|
|
105
108
|
declare const useAudioNavigator: () => {
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { a as ThSheetHeaderVariant } from './actions-
|
|
2
|
-
|
|
3
|
-
type I18nValue<T> = T | string | {
|
|
4
|
-
key: string;
|
|
5
|
-
fallback?: string;
|
|
6
|
-
};
|
|
1
|
+
import { I as I18nValue, a as ThSheetHeaderVariant } from './actions-C33UN3Ji.mjs';
|
|
7
2
|
|
|
8
3
|
interface ThSettingsGroupPref<T> {
|
|
9
4
|
main: T[];
|
|
@@ -161,4 +156,4 @@ declare enum ThContrast {
|
|
|
161
156
|
}
|
|
162
157
|
declare const useContrast: (onChange?: (contrast: ThContrast) => void) => ThContrast;
|
|
163
158
|
|
|
164
|
-
export { defaultLineHeights as A, defaultZoom as B, defaultSpacingPresets as C,
|
|
159
|
+
export { defaultLineHeights as A, defaultZoom as B, defaultSpacingPresets as C, ThLineHeightOptions as T, ThSpacingPresetKeys as a, ThSpacingSettingsKeys as b, ThTextAlignOptions as c, type ThSettingsRangePrefRequired as d, ThColorScheme as e, ThContrast as f, ThSettingsKeys as g, ThTextSettingsKeys as h, type ThSettingsRadioPref as i, type ThSettingsGroupPref as j, useContrast as k, type ThSettingsRangePref as l, ThSettingsContainerKeys as m, ThSettingsRangeVariant as n, ThSettingsRangePlaceholder as o, ThLayoutOptions as p, defaultTextSettingsMain as q, defaultTextSettingsSubpanel as r, defaultSpacingSettingsMain as s, defaultSpacingSettingsSubpanel as t, useColorScheme as u, defaultSpacingPresetsOrder as v, defaultParagraphSpacing as w, defaultParagraphIndent as x, defaultWordSpacing as y, defaultLetterSpacing as z };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { e as UnstableShortcutRepresentation } from './keyboardUtilities-BWAyLS_D.mjs';
|
|
2
1
|
import { T as ThBackLinkPref, a as ThAudioPlayerComponent, b as ThPublicationMetadataOrder, c as ThAudioProgressBarVariant, B as BreakpointsMap } from './ui-DnZZhozX.mjs';
|
|
3
|
-
import { T as ThThemeKeys, A as ActionKey, a as ThemeTokens, b as AudioContentProtectionConfig, C as CustomizableKeys, D as DefaultKeys,
|
|
4
|
-
import { b as ThAudioActionsTokens, c as ThActionsTokens, d as ThCollapsibility, e as ThSheetTypes, f as ThDockingPref, T as ThDockingKeys } from './actions-
|
|
5
|
-
import { d as ThSettingsRangePrefRequired } from './useContrast-
|
|
2
|
+
import { T as ThThemeKeys, A as ActionKey, a as ThemeTokens, b as AudioContentProtectionConfig, c as ThShortcutsPref, C as CustomizableKeys, D as DefaultKeys, d as ThPreferencesAdapter, e as ThPreferences, W as WeightConfig, V as VariableFontRangeConfig, F as FontCollection } from './ThPreferencesAdapter-B3a-f5v-.mjs';
|
|
3
|
+
import { b as ThAudioActionsTokens, c as ThActionsTokens, d as ThCollapsibility, e as ThSheetTypes, f as ThDockingPref, T as ThDockingKeys } from './actions-C33UN3Ji.mjs';
|
|
4
|
+
import { d as ThSettingsRangePrefRequired } from './useContrast-Bl08zDTU.mjs';
|
|
6
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
6
|
import { ILinkInjectable, IUrlInjectable, IBlobInjectable, ScriptMode } from '@readium/navigator';
|
|
8
7
|
|
|
@@ -172,10 +171,7 @@ interface ThAudioPreferences<K extends AudioCustomizableKeys = {}> {
|
|
|
172
171
|
previous: ThAudioAffordance;
|
|
173
172
|
next: ThAudioAffordance;
|
|
174
173
|
};
|
|
175
|
-
shortcuts:
|
|
176
|
-
representation: UnstableShortcutRepresentation;
|
|
177
|
-
joiner?: string;
|
|
178
|
-
};
|
|
174
|
+
shortcuts: ThShortcutsPref;
|
|
179
175
|
docking: ThDockingPref<ThDockingKeys>;
|
|
180
176
|
}
|
|
181
177
|
declare const createAudioPreferences: <K extends AudioCustomizableKeys = {}>(params: ThAudioPreferences<K>) => ThAudioPreferences<K>;
|
|
@@ -1,23 +1,43 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { RefObject, ReactNode } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { w as ThActionsTriggerVariant, a as ThSheetHeaderVariant, u as ThCollapsibilityVisibility, j as ThShortcutConfig, h as ThActionEntry, g as ThActionsKeys, T as ThDockingKeys, e as ThSheetTypes } from './actions-C33UN3Ji.mjs';
|
|
4
4
|
import { TooltipProps, Heading, HeadingProps, PopoverProps } from 'react-aria-components';
|
|
5
|
-
import { T as ThActionButtonProps, f as ThMenuItemProps, a as ThCollapsibleActionsBarProps, v as ThSettingsEntry, W as WithRef, t as ThDropdownProps, h as ThNumberFieldProps, k as ThRadioGroupProps, m as ThSliderProps, o as ThSliderWithPresetsProps, q as ThSwitchProps } from './ThSettingsWrapper-
|
|
6
|
-
import { h as ThTextSettingsKeys, b as ThSpacingSettingsKeys, j as ThSettingsGroupPref, o as ThSettingsRangePlaceholder, g as ThSettingsKeys,
|
|
5
|
+
import { T as ThActionButtonProps, f as ThMenuItemProps, a as ThCollapsibleActionsBarProps, v as ThSettingsEntry, W as WithRef, t as ThDropdownProps, h as ThNumberFieldProps, k as ThRadioGroupProps, m as ThSliderProps, o as ThSliderWithPresetsProps, q as ThSwitchProps } from './ThSettingsWrapper-DtzcwzYX.mjs';
|
|
6
|
+
import { h as ThTextSettingsKeys, b as ThSpacingSettingsKeys, j as ThSettingsGroupPref, o as ThSettingsRangePlaceholder, g as ThSettingsKeys, T as ThLineHeightOptions, a as ThSpacingPresetKeys } from './useContrast-Bl08zDTU.mjs';
|
|
7
7
|
import { PressEvent } from 'react-aria';
|
|
8
|
-
import { f as SettingsReducerState } from './settingsReducer-
|
|
8
|
+
import { f as SettingsReducerState } from './settingsReducer-Pp9aoiiC.mjs';
|
|
9
9
|
import { WebPubSettingsReducerState, ReaderProfile } from './lib/index.mjs';
|
|
10
|
-
import { A as ActionsStateKeys } from './actionsReducer-
|
|
11
|
-
import {
|
|
10
|
+
import { A as ActionsStateKeys } from './actionsReducer-Bzcj3wk3.mjs';
|
|
11
|
+
import { e as ThPreferences, D as DefaultKeys, f as ThGlobalPreferences, C as CustomizableKeys, d as ThPreferencesAdapter } from './ThPreferencesAdapter-B3a-f5v-.mjs';
|
|
12
12
|
import * as _readium_navigator from '@readium/navigator';
|
|
13
13
|
import { EpubSettings, WebPubSettings, FXLFrameManager, FrameManager, ScriptMode, WebPubFrameManager } from '@readium/navigator';
|
|
14
14
|
import * as _readium_shared from '@readium/shared';
|
|
15
|
-
import {
|
|
16
|
-
import { E as EpubNavigatorLoadProps, W as WebPubNavigatorLoadProps, A as AudioNavigatorLoadProps, c as AudioSettings, a as useEpubNavigator, b as useWebPubNavigator, u as useAudioNavigator } from './useAudioNavigator-
|
|
17
|
-
import { a as ThAudioPreferences, c as ThAudioPreferencesAdapter } from './usePreferences-
|
|
15
|
+
import { Link, Locator, Publication, Fetcher } from '@readium/shared';
|
|
16
|
+
import { E as EpubNavigatorLoadProps, W as WebPubNavigatorLoadProps, A as AudioNavigatorLoadProps, c as AudioSettings, a as useEpubNavigator, b as useWebPubNavigator, u as useAudioNavigator } from './useAudioNavigator-9RuOpLGB.mjs';
|
|
17
|
+
import { a as ThAudioPreferences, c as ThAudioPreferencesAdapter } from './usePreferences-Cy7-JN2x.mjs';
|
|
18
18
|
import { InitOptions } from 'i18next';
|
|
19
19
|
import { P as ProcessedError } from './errorHandler-CL2YIfQY.mjs';
|
|
20
20
|
|
|
21
|
+
interface UseActionComponentStatusOptions {
|
|
22
|
+
actionKey: string;
|
|
23
|
+
orderArray?: string[];
|
|
24
|
+
additionalCondition?: boolean;
|
|
25
|
+
}
|
|
26
|
+
interface ActionComponentStatus {
|
|
27
|
+
isComponentRegistered: boolean;
|
|
28
|
+
isInOrder: boolean;
|
|
29
|
+
isComponentAvailable: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Generic hook to check if an action component is registered in the plugin registry,
|
|
33
|
+
* in the provided display order array, and meets any additional conditions.
|
|
34
|
+
* Parallel to useSettingsComponentStatus for settings.
|
|
35
|
+
*
|
|
36
|
+
* @param options - Configuration options for the action component status check
|
|
37
|
+
* @returns Object containing status flags for the action component
|
|
38
|
+
*/
|
|
39
|
+
declare const useActionComponentStatus: (options: UseActionComponentStatusOptions) => ActionComponentStatus;
|
|
40
|
+
|
|
21
41
|
interface StatefulActionsMapObject {
|
|
22
42
|
Trigger: React.ComponentType<StatefulActionTriggerProps>;
|
|
23
43
|
Target?: React.ComponentType<StatefulActionContainerProps>;
|
|
@@ -63,11 +83,12 @@ interface StatefulActionIconProps extends ThActionButtonProps {
|
|
|
63
83
|
visibility?: ThCollapsibilityVisibility;
|
|
64
84
|
placement?: TooltipProps["placement"];
|
|
65
85
|
tooltipLabel?: string;
|
|
86
|
+
shortcut?: ThShortcutConfig | null;
|
|
66
87
|
}
|
|
67
|
-
declare const StatefulActionIcon: ({ ref: externalRef, visibility, placement, tooltipLabel, children, ...props }: StatefulActionIconProps) => react_jsx_runtime.JSX.Element;
|
|
88
|
+
declare const StatefulActionIcon: ({ ref: externalRef, visibility, placement, tooltipLabel, shortcut, children, ...props }: StatefulActionIconProps) => react_jsx_runtime.JSX.Element;
|
|
68
89
|
|
|
69
90
|
interface StatefulOverflowMenuItemProps extends Omit<ThMenuItemProps, "shortcut"> {
|
|
70
|
-
shortcut?:
|
|
91
|
+
shortcut?: ThShortcutConfig | null;
|
|
71
92
|
}
|
|
72
93
|
declare const StatefulOverflowMenuItem: ({ id, label, SVGIcon, shortcut, ...props }: StatefulOverflowMenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
73
94
|
|
|
@@ -261,15 +282,22 @@ declare const StatefulSpacingPresets: ({ standalone }: StatefulSettingsItemProps
|
|
|
261
282
|
|
|
262
283
|
declare const StatefulWordSpacing: ({ standalone }: StatefulSettingsItemProps) => react_jsx_runtime.JSX.Element;
|
|
263
284
|
|
|
264
|
-
|
|
265
|
-
* Hook that returns a mapping of line height options to their actual numeric values
|
|
266
|
-
* This eliminates code duplication across spacing components
|
|
267
|
-
*/
|
|
285
|
+
declare const ORDERED_LINE_HEIGHT_OPTIONS: readonly [ThLineHeightOptions.small, ThLineHeightOptions.medium, ThLineHeightOptions.large];
|
|
268
286
|
declare const useLineHeight: () => {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
287
|
+
values: {
|
|
288
|
+
publisher: null;
|
|
289
|
+
small: any;
|
|
290
|
+
medium: any;
|
|
291
|
+
large: any;
|
|
292
|
+
};
|
|
293
|
+
compensatedValues: {
|
|
294
|
+
publisher: null;
|
|
295
|
+
small: number | null;
|
|
296
|
+
medium: number | null;
|
|
297
|
+
large: number | null;
|
|
298
|
+
};
|
|
299
|
+
processedValues: Record<ThLineHeightOptions.small | ThLineHeightOptions.medium | ThLineHeightOptions.large, number>;
|
|
300
|
+
compensate: (v: number | null) => number | null;
|
|
273
301
|
};
|
|
274
302
|
|
|
275
303
|
/**
|
|
@@ -366,7 +394,7 @@ declare const StatefulBottomSheet: ({ id, heading, headerVariant, className, isO
|
|
|
366
394
|
interface StatefulCompactPopoverSheetProps extends StatefulSheet {
|
|
367
395
|
placement?: PopoverProps["placement"];
|
|
368
396
|
}
|
|
369
|
-
declare const StatefulCompactPopoverSheet: ({ triggerRef, heading, className, isOpen, onOpenChange, placement, children, resetFocus, focusWithinRef, focusSelector, scrollTopOnFocus, dismissEscapeKeyClose }: StatefulCompactPopoverSheetProps) => react_jsx_runtime.JSX.Element | undefined;
|
|
397
|
+
declare const StatefulCompactPopoverSheet: ({ id, triggerRef, heading, className, isOpen, onOpenChange, placement, children, resetFocus, focusWithinRef, focusSelector, scrollTopOnFocus, dismissEscapeKeyClose }: StatefulCompactPopoverSheetProps) => react_jsx_runtime.JSX.Element | undefined;
|
|
370
398
|
|
|
371
399
|
interface StatefulDockedSheetProps extends StatefulSheet {
|
|
372
400
|
flow: ThDockingKeys.start | ThDockingKeys.end | null;
|
|
@@ -428,7 +456,7 @@ interface UnifiedNavigator {
|
|
|
428
456
|
declare const useNavigator: () => {
|
|
429
457
|
readonly visual: {
|
|
430
458
|
getSetting: <K extends keyof AllVisualSettings>(settingKey: K) => AllVisualSettings[K];
|
|
431
|
-
EpubNavigatorLoad: (config: EpubNavigatorLoadProps, cb: Function
|
|
459
|
+
EpubNavigatorLoad: (config: EpubNavigatorLoadProps, cb: Function) => void;
|
|
432
460
|
EpubNavigatorDestroy: (cb: Function) => void;
|
|
433
461
|
goRight: (animated: boolean, callback: (ok: boolean) => void) => void;
|
|
434
462
|
goLeft: (animated: boolean, callback: (ok: boolean) => void) => void;
|
|
@@ -449,7 +477,6 @@ declare const useNavigator: () => {
|
|
|
449
477
|
submitPreferences: (preferences: _readium_navigator.IEpubPreferences) => Promise<void>;
|
|
450
478
|
getCframes: () => (FXLFrameManager | FrameManager | undefined)[] | undefined;
|
|
451
479
|
getScriptMode: () => ScriptMode | undefined;
|
|
452
|
-
onFXLPositionChange: (cb: (locator: Locator) => void) => void;
|
|
453
480
|
} | {
|
|
454
481
|
getSetting: <K extends keyof AllVisualSettings>(settingKey: K) => AllVisualSettings[K];
|
|
455
482
|
WebPubNavigatorLoad: (config: WebPubNavigatorLoadProps, cb: Function) => void;
|
|
@@ -579,4 +606,4 @@ interface ReaderTransitions {
|
|
|
579
606
|
}
|
|
580
607
|
declare const useReaderTransitions: () => ReaderTransitions;
|
|
581
608
|
|
|
582
|
-
export {
|
|
609
|
+
export { StatefulParagraphSpacing as $, type StatefulGroupWrapperProps as A, StatefulGroupWrapper as B, type StatefulDropdownProps as C, StatefulDropdown as D, type StatefulNumberFieldProps as E, StatefulNumberField as F, type StatefulRadioGroupProps as G, StatefulRadioGroup as H, type StatefulSliderProps as I, StatefulSlider as J, type StatefulSliderWithPresetsProps as K, StatefulSliderWithPresets as L, type StatefulSwitchProps as M, StatefulSwitch as N, useEffectiveRange as O, type useGridNavigationProps as P, useGridNavigation as Q, useGridTemplate as R, type StatefulActionsMapObject as S, type ThPlugin as T, usePlaceholder as U, useReaderSetting as V, useSettingsComponentStatus as W, type StatefulSettingsItemProps as X, StatefulLetterSpacing as Y, StatefulLineHeight as Z, StatefulParagraphIndent as _, usePublication as a, StatefulSpacingGroup as a0, StatefulSpacingGroupContainer as a1, StatefulSpacingPresets as a2, StatefulWordSpacing as a3, ORDERED_LINE_HEIGHT_OPTIONS as a4, useLineHeight as a5, useSpacingPresets as a6, StatefulFontFamily as a7, UnstableStatefulFontWeight as a8, StatefulHyphens as a9, StatefulPreferencesProvider as aA, StatefulGlobalPreferencesProvider as aB, type PositionStorage as aC, type StatefulReaderProps as aD, type ThPluginFactory as aE, type ReaderPlugins as aF, type ReaderComponentProps as aG, StatefulReaderWrapper as aH, StatefulTextAlign as aa, StatefulTextGroup as ab, StatefulTextGroupContainer as ac, StatefulTextNormalize as ad, StatefulLigatures as ae, StatefulNoRuby as af, StatefulPublisherStyles as ag, StatefulTheme as ah, StatefulZoom as ai, type StatefulBottomSheetProps as aj, type ScrimPref as ak, StatefulBottomSheet as al, type StatefulCompactPopoverSheetProps as am, StatefulCompactPopoverSheet as an, type StatefulDockedSheetProps as ao, StatefulDockedSheet as ap, type StatefulFullScreenSheetProps as aq, StatefulFullScreenSheet as ar, type StatefulModalSheetProps as as, StatefulModalSheet as at, type StatefulPopoverSheetProps as au, StatefulPopoverSheet as av, type StatefulModalBaseProps as aw, StatefulModalBase as ax, StatefulSheetWrapper as ay, type StatefulSheet as az, useReaderTransitions as b, useActionComponentStatus as c, type StatefulActionTriggerProps as d, type StatefulActionContainerProps as e, StatefulFullscreenTrigger as f, StatefulJumpToPositionContainer as g, StatefulJumpToPositionTrigger as h, StatefulSettingsWrapper as i, StatefulAudioSettingsContainer as j, StatefulVisualSettingsContainer as k, StatefulSettingsTrigger as l, StatefulTocContainer as m, StatefulTocTrigger as n, type StatefulActionIconProps as o, StatefulActionIcon as p, type StatefulOverflowMenuItemProps as q, StatefulOverflowMenuItem as r, type StatefulCollapsibleActionsBarProps as s, StatefulCollapsibleActionsBar as t, useNavigator as u, type StatefulOverflowMenuProps as v, StatefulOverflowMenu as w, useDocking as x, createDefaultPlugin as y, createAudioDefaultPlugin as z };
|