@edrlab/thorium-web 1.5.0 → 1.5.2

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.
Files changed (64) hide show
  1. package/dist/{chunk-BBCSLDQT.mjs → chunk-7O7RI3FX.mjs} +60 -65
  2. package/dist/chunk-7O7RI3FX.mjs.map +1 -0
  3. package/dist/{chunk-GRYEOCGD.mjs → chunk-AEEGHJVM.mjs} +36 -49
  4. package/dist/chunk-AEEGHJVM.mjs.map +1 -0
  5. package/dist/{chunk-BCXKBHU3.mjs → chunk-AV4IJXTM.mjs} +29 -14
  6. package/dist/chunk-AV4IJXTM.mjs.map +1 -0
  7. package/dist/{chunk-ZD4LTF6G.mjs → chunk-AXX4U2FW.mjs} +25 -133
  8. package/dist/chunk-AXX4U2FW.mjs.map +1 -0
  9. package/dist/{chunk-63LKYJFG.mjs → chunk-G4CEFOQK.mjs} +44 -14
  10. package/dist/chunk-G4CEFOQK.mjs.map +1 -0
  11. package/dist/{chunk-Y5X74VW7.mjs → chunk-KD727LNE.mjs} +8 -8
  12. package/dist/{chunk-Y5X74VW7.mjs.map → chunk-KD727LNE.mjs.map} +1 -1
  13. package/dist/chunk-KQ3KS5O5.mjs +37 -0
  14. package/dist/chunk-KQ3KS5O5.mjs.map +1 -0
  15. package/dist/{chunk-PRQBFBJ7.mjs → chunk-MBB6VHEQ.mjs} +19 -8
  16. package/dist/chunk-MBB6VHEQ.mjs.map +1 -0
  17. package/dist/{chunk-KJ55Q63A.mjs → chunk-QKCS2WPM.mjs} +173 -24
  18. package/dist/chunk-QKCS2WPM.mjs.map +1 -0
  19. package/dist/{chunk-2T65MDBR.mjs → chunk-VLMPRICM.mjs} +3 -3
  20. package/dist/{chunk-2T65MDBR.mjs.map → chunk-VLMPRICM.mjs.map} +1 -1
  21. package/dist/{chunk-VENFFPK2.mjs → chunk-VYSDLACR.mjs} +2 -2
  22. package/dist/{chunk-VENFFPK2.mjs.map → chunk-VYSDLACR.mjs.map} +1 -1
  23. package/dist/{chunk-KOR74F6M.mjs → chunk-X63WSMOH.mjs} +4 -36
  24. package/dist/chunk-X63WSMOH.mjs.map +1 -0
  25. package/dist/{chunk-PAFJZH7O.mjs → chunk-YE5QOQUT.mjs} +3 -3
  26. package/dist/{chunk-PAFJZH7O.mjs.map → chunk-YE5QOQUT.mjs.map} +1 -1
  27. package/dist/components/Audio/index.d.mts +3 -3
  28. package/dist/components/Audio/index.mjs +11 -10
  29. package/dist/components/Epub/index.d.mts +3 -3
  30. package/dist/components/Epub/index.mjs +12 -11
  31. package/dist/components/Misc/index.mjs +2 -2
  32. package/dist/components/Reader/index.d.mts +2 -2
  33. package/dist/components/Reader/index.mjs +17 -16
  34. package/dist/components/Reader/index.mjs.map +1 -1
  35. package/dist/components/WebPub/index.d.mts +3 -3
  36. package/dist/components/WebPub/index.mjs +12 -11
  37. package/dist/core/Components/index.d.mts +4 -20
  38. package/dist/core/Components/index.mjs +1 -1
  39. package/dist/core/Helpers/index.mjs +3 -2
  40. package/dist/core/Hooks/index.d.mts +10 -4
  41. package/dist/core/Hooks/index.mjs +2 -1
  42. package/dist/lib/index.mjs +3 -2
  43. package/dist/locales/da/thorium-shared.json +217 -10
  44. package/dist/locales/et/thorium-shared.json +24 -3
  45. package/dist/locales/he/thorium-shared.json +8 -0
  46. package/dist/locales/it/thorium-shared.json +11 -11
  47. package/dist/locales/it/thorium-web.json +4 -4
  48. package/dist/locales/lt/thorium-shared.json +85 -1
  49. package/dist/locales/pl/thorium-shared.json +249 -7
  50. package/dist/locales/pl/thorium-web.json +36 -1
  51. package/dist/locales/sv/thorium-shared.json +5 -5
  52. package/dist/preferences/index.d.mts +2 -0
  53. package/dist/preferences/index.mjs +4 -3
  54. package/dist/{useAudioNavigator-pGwxhXLj.d.mts → useAudioNavigator-9RuOpLGB.d.mts} +4 -4
  55. package/dist/{useReaderTransitions-Zvomj9RQ.d.mts → useReaderTransitions-CpgrXS5g.d.mts} +25 -6
  56. package/package.json +7 -7
  57. package/dist/chunk-63LKYJFG.mjs.map +0 -1
  58. package/dist/chunk-BBCSLDQT.mjs.map +0 -1
  59. package/dist/chunk-BCXKBHU3.mjs.map +0 -1
  60. package/dist/chunk-GRYEOCGD.mjs.map +0 -1
  61. package/dist/chunk-KJ55Q63A.mjs.map +0 -1
  62. package/dist/chunk-KOR74F6M.mjs.map +0 -1
  63. package/dist/chunk-PRQBFBJ7.mjs.map +0 -1
  64. package/dist/chunk-ZD4LTF6G.mjs.map +0 -1
@@ -1,33 +1,173 @@
1
1
  {
2
2
  "common": {
3
3
  "actions": {
4
+ "cancel": "Anuluj",
4
5
  "clear": "Wyczyść",
5
6
  "close": "Zamknij",
7
+ "collapse": "Zwiń",
8
+ "collapseAll": "Zwiń wszystkie",
6
9
  "decrease": "Zmniejsz",
10
+ "disable": "Wyłącz",
11
+ "enable": "Włącz",
12
+ "exit": "Wyjdź",
13
+ "expand": "Rozwiń",
14
+ "expandAll": "Rozwiń wszystkie",
15
+ "filter": "Filtruj",
16
+ "hide": "Ukryj",
17
+ "hideAll": "Ukryj wszystkie",
7
18
  "increase": "Zwiększ",
8
- "search": "Szukaj"
19
+ "open": "Otwórz",
20
+ "reset": "Resetuj",
21
+ "search": "Szukaj",
22
+ "show": "Pokaż",
23
+ "showAll": "Pokaż wszystkie",
24
+ "sortBy": "Sortuj według",
25
+ "toggle": "Przełącz"
9
26
  }
10
27
  },
11
28
  "reader": {
12
29
  "actions": {
13
30
  "goBackward": "Do tyłu",
14
31
  "goForward": "Do przodu",
32
+ "goToNextChapter": {
33
+ "compact": "Następny",
34
+ "descriptive": "Następny rozdział"
35
+ },
36
+ "goToNextPage": {
37
+ "compact": "Następna",
38
+ "descriptive": "Następna strona"
39
+ },
40
+ "goToNextResource": {
41
+ "compact": "Następny",
42
+ "descriptive": "Następny zasób"
43
+ },
44
+ "goToNextSentence": {
45
+ "compact": "Następne",
46
+ "descriptive": "Następne zdanie"
47
+ },
15
48
  "goToPosition": {
16
49
  "compact": "Przejdź do…",
17
50
  "descriptive": "Przejdź do pozycji"
51
+ },
52
+ "goToPreviousChapter": {
53
+ "compact": "Poprzedni",
54
+ "descriptive": "Poprzedni rozdział"
55
+ },
56
+ "goToPreviousPage": {
57
+ "compact": "Poprzednia",
58
+ "descriptive": "Poprzednia strona"
59
+ },
60
+ "goToPreviousResource": {
61
+ "compact": "Poprzedni",
62
+ "descriptive": "Poprzedni zasób"
63
+ },
64
+ "goToPreviousSentence": {
65
+ "compact": "Poprzednie",
66
+ "descriptive": "Poprzednie zdanie"
67
+ }
68
+ },
69
+ "annotations": {
70
+ "actions": {
71
+ "editNote": {
72
+ "compact": "Edytuj notatkę"
73
+ }
74
+ },
75
+ "bookmarks": {
76
+ "actions": {
77
+ "add": {
78
+ "compact": "Dodaj zakładkę"
79
+ },
80
+ "delete": {
81
+ "compact": "Usuń zakładkę",
82
+ "confirmation": "Czy na pewno chcesz usunąć tę zakładkę?"
83
+ }
84
+ },
85
+ "emptyState": {
86
+ "description": "Nowe zakładki dodane podczas czytania pojawią się na tej liście.",
87
+ "title": "Brak zakładek"
88
+ },
89
+ "title": "Zakładki"
90
+ },
91
+ "note": {
92
+ "title": "Notatka"
93
+ },
94
+ "sort": {
95
+ "lastAdded": {
96
+ "compact": "Ostatnio dodane"
97
+ },
98
+ "lastEdited": {
99
+ "compact": "Ostatnio edytowane"
100
+ },
101
+ "progression": {
102
+ "compact": "Postęp"
103
+ }
104
+ }
105
+ },
106
+ "playback": {
107
+ "actions": {
108
+ "pause": "Wstrzymaj",
109
+ "play": "Odtwarzaj",
110
+ "skipBackward": {
111
+ "compact": "Cofnij",
112
+ "descriptive": "Przewiń do tyłu"
113
+ },
114
+ "skipForward": {
115
+ "compact": "Dalej",
116
+ "descriptive": "Przewiń do przodu"
117
+ }
118
+ },
119
+ "preferences": {
120
+ "audio": {
121
+ "skipBackwardInterval": "Interwał przewijania do tyłu",
122
+ "skipForwardInterval": "Interwał przewijania do przodu",
123
+ "skipInterval": "Interwał przewijania",
124
+ "title": "Ustawienia dźwięku",
125
+ "volume": "Głośność"
126
+ },
127
+ "autoPlay": {
128
+ "label": "Ciągłe odtwarzanie",
129
+ "title": "Autoodtwarzanie"
130
+ },
131
+ "playbackRate": {
132
+ "compact": "Szybkość",
133
+ "descriptive": "Prędkość odtwarzania"
134
+ },
135
+ "sleepTimer": {
136
+ "compact": "Timer",
137
+ "descriptive": "Timer zasypiania",
138
+ "presets": {
139
+ "endOfChapter": "Koniec rozdziału",
140
+ "endOfResource": "Koniec zasobu"
141
+ }
142
+ }
18
143
  }
19
144
  },
20
145
  "preferences": {
146
+ "brightness": "Jasność",
21
147
  "columns": {
22
148
  "auto": "Automatycznie",
23
149
  "dual": {
24
- "compact": "2 kol"
150
+ "compact": "2 kol",
151
+ "descriptive": "Dwie kolumny"
25
152
  },
26
153
  "single": {
27
- "compact": "1 kol"
154
+ "compact": "1 kol",
155
+ "descriptive": "Jedna kolumna"
28
156
  },
29
157
  "title": "Kolumny"
30
158
  },
159
+ "fit": {
160
+ "auto": {
161
+ "compact": "Auto"
162
+ },
163
+ "page": {
164
+ "compact": "Strona"
165
+ },
166
+ "title": "Dopasowanie",
167
+ "width": {
168
+ "compact": "Szerokość"
169
+ }
170
+ },
31
171
  "fontFamily": {
32
172
  "humanist": {
33
173
  "compact": "Humanist",
@@ -48,8 +188,8 @@
48
188
  },
49
189
  "fontSize": "Rozmiar czcionki",
50
190
  "fontWeight": {
51
- "bold": "Ryškesnis",
52
- "normal": "Normalus",
191
+ "bold": "Pogrubiony",
192
+ "normal": "Normalny",
53
193
  "title": "Grubość kroju"
54
194
  },
55
195
  "hyphens": {
@@ -62,6 +202,10 @@
62
202
  "title": "Układ"
63
203
  },
64
204
  "letterSpacing": "Odstępy między literami",
205
+ "ligatures": {
206
+ "label": "Włącz ligatury",
207
+ "title": "Ligatury"
208
+ },
65
209
  "lineHeight": {
66
210
  "default": "Domyślna",
67
211
  "large": "Luźna",
@@ -69,14 +213,56 @@
69
213
  "small": "Ciasna",
70
214
  "title": "Interlinia"
71
215
  },
216
+ "noRuby": {
217
+ "label": "Ukryj adnotacje ruby",
218
+ "title": "Adnotacje ruby"
219
+ },
220
+ "offsetFirstPage": "Wyświetlaj pierwszą stronę osobno",
72
221
  "paragraphIndent": "Wcięcie akapitu",
73
222
  "paragraphSpacing": "Odstęp między akapitami",
74
223
  "publisherStyles": {
75
- "label": "Użyj oryginalnego formatowania"
224
+ "label": "Użyj oryginalnego formatowania",
225
+ "title": "Style wydawcy"
226
+ },
227
+ "readingDirection": {
228
+ "default": {
229
+ "compact": "Domyślny",
230
+ "descriptive": "Użyj oryginalnego kierunku czytania"
231
+ },
232
+ "ltr": {
233
+ "compact": "Prawo",
234
+ "descriptive": "Od lewej do prawej"
235
+ },
236
+ "rtl": {
237
+ "compact": "Lewo",
238
+ "descriptive": "Od prawej do lewej"
239
+ },
240
+ "title": "Kierunek czytania"
76
241
  },
77
242
  "spacing": {
243
+ "presets": {
244
+ "accessible": "Dostępne",
245
+ "balanced": "Zbalansowane",
246
+ "custom": "Niestandardowe",
247
+ "default": "Domyślne",
248
+ "loose": "Luźne",
249
+ "tight": "Ciasne",
250
+ "title": "Presety"
251
+ },
78
252
  "title": "Odstępy"
79
253
  },
254
+ "spread": {
255
+ "always": {
256
+ "compact": "Podwójna strona"
257
+ },
258
+ "auto": {
259
+ "compact": "Auto"
260
+ },
261
+ "never": {
262
+ "compact": "Pojedyncza strona"
263
+ },
264
+ "title": "Rozkładówka"
265
+ },
80
266
  "text": "Tekst",
81
267
  "textAlign": {
82
268
  "default": "Domyślne",
@@ -95,6 +281,7 @@
95
281
  "contrast2": "Kontrast 2",
96
282
  "contrast3": "Kontrast 3",
97
283
  "dark": "Ciemny",
284
+ "gray": "Szary",
98
285
  "light": "Jasny",
99
286
  "paper": "Papier",
100
287
  "sepia": "Sepia",
@@ -105,16 +292,71 @@
105
292
  "zoom": "Powiększenie"
106
293
  },
107
294
  "progression": {
295
+ "pagesLeft": {
296
+ "descriptive_few": "Pozostały {{ count }} strony",
297
+ "descriptive_many": "Pozostało {{ count }} stron",
298
+ "descriptive_one": "Pozostała {{ count }} strona"
299
+ },
300
+ "pagesLeftInChapter": {
301
+ "descriptive_few": "Pozostały {{ count }} strony w rozdziale",
302
+ "descriptive_many": "Pozostało {{ count }} stron w rozdziale",
303
+ "descriptive_one": "Pozostała {{ count }} strona w rozdziale"
304
+ },
305
+ "pagesLeftInPublication": {
306
+ "descriptive_few": "Pozostały {{ count }} strony w publikacji",
307
+ "descriptive_many": "Pozostało {{ count }} stron w publikacji",
308
+ "descriptive_one": "Pozostała {{ count }} strona w publikacji"
309
+ },
108
310
  "percentage": "{{ percentage }}%",
311
+ "positionsLeft": {
312
+ "compact_few": "Pozostały {{ count }}",
313
+ "compact_many": "Pozostało {{ count }}",
314
+ "compact_one": "Pozostała {{ count }}",
315
+ "descriptive_few": "Pozostały {{ count }} pozycje",
316
+ "descriptive_many": "Pozostało {{ count }} pozycji",
317
+ "descriptive_one": "Pozostała {{ count }} pozycja"
318
+ },
319
+ "positionsLeftInChapter": {
320
+ "compact_few": "Pozostały {{ count }} w rozdziale",
321
+ "compact_many": "Pozostało {{ count }} w rozdziale",
322
+ "compact_one": "Pozostała {{ count }} w rozdziale",
323
+ "descriptive_few": "Pozostały {{ count }} pozycje w rozdziale",
324
+ "descriptive_many": "Pozostało {{ count }} pozycji w rozdziale",
325
+ "descriptive_one": "Pozostała {{ count }} pozycja w rozdziale"
326
+ },
327
+ "positionsLeftInPublication": {
328
+ "compact_few": "Pozostały {{ count }} w publikacji",
329
+ "compact_many": "Pozostało {{ count }} w publikacji",
330
+ "compact_one": "Pozostała {{ count }} w publikacji",
331
+ "descriptive_few": "Pozostały {{ count }} pozycje w publikacji",
332
+ "descriptive_many": "Pozostało {{ count }} pozycji w publikacji",
333
+ "descriptive_one": "Pozostała {{ count }} pozycja w publikacji"
334
+ },
109
335
  "range": "{{ start }}–{{ end }}",
110
336
  "xOfY": {
111
337
  "compact": "{{ x }} z {{ y }}",
112
338
  "descriptive": "{{ x }} z {{ y }} ({{ z }})"
113
339
  }
114
340
  },
341
+ "search": {
342
+ "actions": {
343
+ "next": {
344
+ "compact": "Następny wynik"
345
+ },
346
+ "previous": {
347
+ "compact": "Poprzedni wynik"
348
+ }
349
+ },
350
+ "placeholder": "Szukaj słów kluczowych lub fraz",
351
+ "result_few": "{{ current }} z {{ count }} wyników",
352
+ "result_many": "{{ current }} z {{ count }} wyników",
353
+ "result_one": "{{ current }} z {{ count }} wyniku",
354
+ "title": "Szukaj"
355
+ },
115
356
  "tableOfContents": {
116
357
  "emptyState": {
117
- "description": "Spis treści nie został dostarczony dla tej publikacji."
358
+ "description": "Spis treści nie został dostarczony dla tej publikacji.",
359
+ "title": "Brak spisu treści"
118
360
  },
119
361
  "title": "Spis treści"
120
362
  }
@@ -48,6 +48,16 @@
48
48
  },
49
49
  "back": {
50
50
  "trigger": "Wróć"
51
+ },
52
+ "printingDisabled": "Drukowanie zostało wyłączone",
53
+ "errors": {
54
+ "title": "Błąd",
55
+ "notFound": "Publikacja nie została znaleziona.",
56
+ "accessDenied": "Odmowa dostępu.",
57
+ "network": "Serwer niedostępny – spróbuj ponownie później.",
58
+ "serverError": "Błąd serwera – spróbuj ponownie później.",
59
+ "clientError": "Nieprawidłowe żądanie.",
60
+ "generic": "Nie można załadować publikacji."
51
61
  }
52
62
  },
53
63
  "navigation": {
@@ -65,7 +75,10 @@
65
75
  },
66
76
  "jumpToPosition": {
67
77
  "go": "Idź",
68
- "label": "Wybierz pozycję od {{ positionStart }} do {{ positionEnd }}:"
78
+ "label": "Wybierz pozycję od {{ positionStart }} do {{ positionEnd }}:",
79
+ "error": {
80
+ "notFound": "Pozycja nie została znaleziona."
81
+ }
69
82
  },
70
83
  "overflowMenu": {
71
84
  "active": {
@@ -91,5 +104,27 @@
91
104
  }
92
105
  }
93
106
  }
107
+ },
108
+ "audio": {
109
+ "player": {
110
+ "progress": "Postęp odtwarzania",
111
+ "controls": "Sterowanie odtwarzaniem",
112
+ "mediaControls": "Ustawienia audio",
113
+ "coverAlt": "Okładka audiobook-a"
114
+ },
115
+ "remotePlayback": {
116
+ "trigger": "Zdalne odtwarzanie",
117
+ "connected": "Połączono zdalnie"
118
+ },
119
+ "settings": {
120
+ "sleepTimer": {
121
+ "hours": "g",
122
+ "minutes": "min",
123
+ "seconds": "s",
124
+ "start": "Start",
125
+ "instruction": "Odtwarzanie zostanie wstrzymane po upływie ustawionego czasu.",
126
+ "remaining": "Wstrzymanie za {{ remaining }}"
127
+ }
128
+ }
94
129
  }
95
130
  }
@@ -83,7 +83,7 @@
83
83
  }
84
84
  },
85
85
  "emptyState": {
86
- "description": "Nya bokmärken läggs till när du läser kommer att visas i den här listan.",
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": "Spola tillbaka",
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": "Hoppa intervall",
123
+ "skipInterval": "Längd på hopp",
124
124
  "title": "Ljudinställningar",
125
125
  "volume": "Volym"
126
126
  },
127
127
  "autoPlay": {
128
- "label": "Kontinuerlig uppspelning",
129
- "title": "Autoplay"
128
+ "label": "Fortsätt spela vid kapitelslut",
129
+ "title": "Kontinuerlig uppspelning"
130
130
  },
131
131
  "playbackRate": {
132
132
  "compact": "Hastighet",
@@ -160,6 +160,8 @@ interface AudioActionsPreferences {
160
160
  docking: ThDockingPref<ThDockingKeys>;
161
161
  primaryActionsKeys: Record<string, ThAudioActionsTokens>;
162
162
  secondaryActionsKeys: Record<string, ThActionsTokens>;
163
+ primaryDisplayOrder: string[];
164
+ secondaryDisplayOrder: string[];
163
165
  }
164
166
  /**
165
167
  * Context-agnostic hook for docking/actions infrastructure.
@@ -1,10 +1,11 @@
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-PRQBFBJ7.mjs';
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-MBB6VHEQ.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
- export { ThGlobalPreferencesContext, useGlobalPreferences } from '../chunk-AE6P4KJB.mjs';
5
4
  import '../chunk-A575ZW4A.mjs';
6
- import '../chunk-KOR74F6M.mjs';
5
+ import '../chunk-X63WSMOH.mjs';
7
6
  import '../chunk-NQ2ZSGCX.mjs';
7
+ import '../chunk-KQ3KS5O5.mjs';
8
+ export { ThGlobalPreferencesContext, useGlobalPreferences } from '../chunk-AE6P4KJB.mjs';
8
9
  import '../chunk-AQSJDL63.mjs';
9
10
  import '../chunk-GNROODJB.mjs';
10
11
  import '../chunk-3GDQP6AS.mjs';
@@ -1,6 +1,7 @@
1
1
  import * as _readium_navigator from '@readium/navigator';
2
2
  import { EpubNavigatorListeners, IEpubPreferences, IEpubDefaults, IInjectablesConfig, IContentProtectionConfig, IKeyboardPeripheralsConfig, EpubSettings, ScriptMode, WebPubNavigatorListeners, IWebPubPreferences, IWebPubDefaults, WebPubSettings, AudioNavigatorListeners, IAudioPreferences, IAudioDefaults } from '@readium/navigator';
3
- import { Publication, Locator, Link, Layout, Timeline } from '@readium/shared';
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;
@@ -17,7 +18,7 @@ interface EpubNavigatorLoadProps {
17
18
  keyboardPeripherals?: IKeyboardPeripheralsConfig;
18
19
  }
19
20
  declare const useEpubNavigator: () => {
20
- EpubNavigatorLoad: (config: EpubNavigatorLoadProps, cb: Function, fxlCallback?: (locator: Locator) => void) => void;
21
+ EpubNavigatorLoad: (config: EpubNavigatorLoadProps, cb: Function) => void;
21
22
  EpubNavigatorDestroy: (cb: Function) => void;
22
23
  goRight: (animated: boolean, callback: cbb$2) => void;
23
24
  goLeft: (animated: boolean, callback: cbb$2) => void;
@@ -25,7 +26,7 @@ declare const useEpubNavigator: () => {
25
26
  goForward: (animated: boolean, callback: cbb$2) => void;
26
27
  goLink: (link: Link, animated: boolean, callback: cbb$2) => void;
27
28
  go: (locator: Locator, animated: boolean, callback: cbb$2) => void;
28
- navLayout: () => Layout | undefined;
29
+ navLayout: () => _readium_shared.Layout | undefined;
29
30
  currentLocator: () => Locator | undefined;
30
31
  previousLocator: () => Locator | null | undefined;
31
32
  nextLocator: () => Locator | null | undefined;
@@ -39,7 +40,6 @@ declare const useEpubNavigator: () => {
39
40
  submitPreferences: (preferences: IEpubPreferences) => Promise<void>;
40
41
  getCframes: () => (_readium_navigator.FXLFrameManager | _readium_navigator.FrameManager | undefined)[] | undefined;
41
42
  getScriptMode: () => ScriptMode | undefined;
42
- onFXLPositionChange: (cb: (locator: Locator) => void) => void;
43
43
  };
44
44
 
45
45
  type cbb$1 = (ok: boolean) => void;
@@ -12,12 +12,32 @@ import { e as ThPreferences, D as DefaultKeys, f as ThGlobalPreferences, C as Cu
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 { Locator, Link, 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-pGwxhXLj.mjs';
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
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>;
@@ -374,7 +394,7 @@ declare const StatefulBottomSheet: ({ id, heading, headerVariant, className, isO
374
394
  interface StatefulCompactPopoverSheetProps extends StatefulSheet {
375
395
  placement?: PopoverProps["placement"];
376
396
  }
377
- 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;
378
398
 
379
399
  interface StatefulDockedSheetProps extends StatefulSheet {
380
400
  flow: ThDockingKeys.start | ThDockingKeys.end | null;
@@ -436,7 +456,7 @@ interface UnifiedNavigator {
436
456
  declare const useNavigator: () => {
437
457
  readonly visual: {
438
458
  getSetting: <K extends keyof AllVisualSettings>(settingKey: K) => AllVisualSettings[K];
439
- EpubNavigatorLoad: (config: EpubNavigatorLoadProps, cb: Function, fxlCallback?: (locator: Locator) => void) => void;
459
+ EpubNavigatorLoad: (config: EpubNavigatorLoadProps, cb: Function) => void;
440
460
  EpubNavigatorDestroy: (cb: Function) => void;
441
461
  goRight: (animated: boolean, callback: (ok: boolean) => void) => void;
442
462
  goLeft: (animated: boolean, callback: (ok: boolean) => void) => void;
@@ -457,7 +477,6 @@ declare const useNavigator: () => {
457
477
  submitPreferences: (preferences: _readium_navigator.IEpubPreferences) => Promise<void>;
458
478
  getCframes: () => (FXLFrameManager | FrameManager | undefined)[] | undefined;
459
479
  getScriptMode: () => ScriptMode | undefined;
460
- onFXLPositionChange: (cb: (locator: Locator) => void) => void;
461
480
  } | {
462
481
  getSetting: <K extends keyof AllVisualSettings>(settingKey: K) => AllVisualSettings[K];
463
482
  WebPubNavigatorLoad: (config: WebPubNavigatorLoadProps, cb: Function) => void;
@@ -587,4 +606,4 @@ interface ReaderTransitions {
587
606
  }
588
607
  declare const useReaderTransitions: () => ReaderTransitions;
589
608
 
590
- export { StatefulSpacingGroup as $, StatefulGroupWrapper as A, type StatefulDropdownProps as B, StatefulDropdown as C, type StatefulNumberFieldProps as D, StatefulNumberField as E, type StatefulRadioGroupProps as F, StatefulRadioGroup as G, type StatefulSliderProps as H, StatefulSlider as I, type StatefulSliderWithPresetsProps as J, StatefulSliderWithPresets as K, type StatefulSwitchProps as L, StatefulSwitch as M, useEffectiveRange as N, type useGridNavigationProps as O, useGridNavigation as P, useGridTemplate as Q, usePlaceholder as R, type StatefulActionsMapObject as S, type ThPlugin as T, useReaderSetting as U, useSettingsComponentStatus as V, type StatefulSettingsItemProps as W, StatefulLetterSpacing as X, StatefulLineHeight as Y, StatefulParagraphIndent as Z, StatefulParagraphSpacing as _, usePublication as a, StatefulSpacingGroupContainer as a0, StatefulSpacingPresets as a1, StatefulWordSpacing as a2, ORDERED_LINE_HEIGHT_OPTIONS as a3, useLineHeight as a4, useSpacingPresets as a5, StatefulFontFamily as a6, UnstableStatefulFontWeight as a7, StatefulHyphens as a8, StatefulTextAlign as a9, StatefulGlobalPreferencesProvider as aA, type PositionStorage as aB, type StatefulReaderProps as aC, type ThPluginFactory as aD, type ReaderPlugins as aE, type ReaderComponentProps as aF, StatefulReaderWrapper as aG, StatefulTextGroup as aa, StatefulTextGroupContainer as ab, StatefulTextNormalize as ac, StatefulLigatures as ad, StatefulNoRuby as ae, StatefulPublisherStyles as af, StatefulTheme as ag, StatefulZoom as ah, type StatefulBottomSheetProps as ai, type ScrimPref as aj, StatefulBottomSheet as ak, type StatefulCompactPopoverSheetProps as al, StatefulCompactPopoverSheet as am, type StatefulDockedSheetProps as an, StatefulDockedSheet as ao, type StatefulFullScreenSheetProps as ap, StatefulFullScreenSheet as aq, type StatefulModalSheetProps as ar, StatefulModalSheet as as, type StatefulPopoverSheetProps as at, StatefulPopoverSheet as au, type StatefulModalBaseProps as av, StatefulModalBase as aw, StatefulSheetWrapper as ax, type StatefulSheet as ay, StatefulPreferencesProvider as az, useReaderTransitions as b, type StatefulActionTriggerProps as c, type StatefulActionContainerProps as d, StatefulFullscreenTrigger as e, StatefulJumpToPositionContainer as f, StatefulJumpToPositionTrigger as g, StatefulSettingsWrapper as h, StatefulAudioSettingsContainer as i, StatefulVisualSettingsContainer as j, StatefulSettingsTrigger as k, StatefulTocContainer as l, StatefulTocTrigger as m, type StatefulActionIconProps as n, StatefulActionIcon as o, type StatefulOverflowMenuItemProps as p, StatefulOverflowMenuItem as q, type StatefulCollapsibleActionsBarProps as r, StatefulCollapsibleActionsBar as s, type StatefulOverflowMenuProps as t, useNavigator as u, StatefulOverflowMenu as v, useDocking as w, createDefaultPlugin as x, createAudioDefaultPlugin as y, type StatefulGroupWrapperProps as z };
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 };
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "bugs": {
21
21
  "url": "https://github.com/edrlab/thorium-web/issues"
22
22
  },
23
- "version": "1.5.0",
23
+ "version": "1.5.2",
24
24
  "private": false,
25
25
  "files": [
26
26
  "./dist"
@@ -64,8 +64,8 @@
64
64
  "increment": "node scripts/increment.mjs"
65
65
  },
66
66
  "peerDependencies": {
67
- "@readium/css": "^2.0.4",
68
- "@readium/navigator": "^2.5.3",
67
+ "@readium/css": ">=2.0.5",
68
+ "@readium/navigator": ">=2.5.5",
69
69
  "@readium/navigator-html-injectables": "^2.4.2",
70
70
  "@readium/shared": "^2.2.0",
71
71
  "@reduxjs/toolkit": "^2.11.2",
@@ -85,10 +85,10 @@
85
85
  },
86
86
  "dependencies": {
87
87
  "@edrlab/thorium-locales": "github:edrlab/thorium-locales",
88
- "@readium/css": "^2.0.4",
89
- "@readium/navigator": "^2.5.3",
90
- "@readium/navigator-html-injectables": "^2.4.2",
91
- "@readium/shared": "^2.2.0",
88
+ "@readium/css": ">=2.0.5",
89
+ "@readium/navigator": "^2.5.7",
90
+ "@readium/navigator-html-injectables": "^2.4.3",
91
+ "@readium/shared": "^2.2.1",
92
92
  "@reduxjs/toolkit": "^2.11.2",
93
93
  "classnames": "^2.5.1",
94
94
  "colorthief": "^3.3.1",