@edrlab/thorium-web 1.1.6 → 1.2.0

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 (77) hide show
  1. package/dist/{ThPreferencesAdapter-B8AYujCA.d.mts → ThPreferencesAdapter-DrZ5_6Dv.d.mts} +4 -139
  2. package/dist/{ThSettingsWrapper-BlmAxcWF.d.mts → ThSettingsWrapper-8Kx0SnH4.d.mts} +1 -1
  3. package/dist/{actions-BRtHsxpm.d.mts → actions-D2CHvCHu.d.mts} +2 -2
  4. package/dist/{actionsReducer-bT0pfxLJ.d.mts → actionsReducer-kc-S130w.d.mts} +3 -24
  5. package/dist/chunk-34MVY33F.mjs +913 -0
  6. package/dist/chunk-34MVY33F.mjs.map +1 -0
  7. package/dist/{chunk-KJXHAJYK.mjs → chunk-4VHEHMJN.mjs} +128 -11
  8. package/dist/chunk-4VHEHMJN.mjs.map +1 -0
  9. package/dist/{chunk-QNYZCQKO.mjs → chunk-72XCX5TD.mjs} +4 -4
  10. package/dist/chunk-72XCX5TD.mjs.map +1 -0
  11. package/dist/{chunk-SMK7A7VF.mjs → chunk-7NEQAW7J.mjs} +3 -3
  12. package/dist/chunk-7NEQAW7J.mjs.map +1 -0
  13. package/dist/{chunk-SFHOVH6R.mjs → chunk-H4J2VY7Z.mjs} +201 -35
  14. package/dist/chunk-H4J2VY7Z.mjs.map +1 -0
  15. package/dist/{chunk-COQXDRKD.mjs → chunk-K3K7TUWM.mjs} +2 -2
  16. package/dist/chunk-K3K7TUWM.mjs.map +1 -0
  17. package/dist/{chunk-KTPIH35Y.mjs → chunk-NYZBHYW2.mjs} +5 -3
  18. package/dist/chunk-NYZBHYW2.mjs.map +1 -0
  19. package/dist/chunk-RRDEPGBK.mjs +75 -0
  20. package/dist/chunk-RRDEPGBK.mjs.map +1 -0
  21. package/dist/chunk-S4M7ED5Q.mjs +407 -0
  22. package/dist/chunk-S4M7ED5Q.mjs.map +1 -0
  23. package/dist/components/Epub/index.d.mts +17 -11
  24. package/dist/components/Epub/index.mjs +12 -831
  25. package/dist/components/Epub/index.mjs.map +1 -1
  26. package/dist/components/Misc/index.css +23 -0
  27. package/dist/components/Misc/index.css.map +1 -1
  28. package/dist/components/Misc/index.d.mts +10 -1
  29. package/dist/components/Misc/index.mjs +30 -2
  30. package/dist/components/Misc/index.mjs.map +1 -1
  31. package/dist/components/Reader/index.css +1283 -0
  32. package/dist/components/Reader/index.css.map +1 -0
  33. package/dist/components/Reader/index.d.mts +30 -0
  34. package/dist/components/Reader/index.mjs +79 -0
  35. package/dist/components/Reader/index.mjs.map +1 -0
  36. package/dist/components/WebPub/index.d.mts +15 -31
  37. package/dist/components/WebPub/index.mjs +11 -374
  38. package/dist/components/WebPub/index.mjs.map +1 -1
  39. package/dist/core/Components/index.d.mts +11 -8
  40. package/dist/core/Components/index.mjs +1 -1
  41. package/dist/core/Helpers/index.d.mts +1 -1
  42. package/dist/core/Hooks/index.d.mts +54 -5
  43. package/dist/core/Hooks/index.mjs +1 -1
  44. package/dist/errorHandler-CL2YIfQY.d.mts +26 -0
  45. package/dist/i18n/index.mjs +4 -4
  46. package/dist/immer.d-CoRThNOF.d.mts +23 -0
  47. package/dist/lib/index.d.mts +12 -162
  48. package/dist/lib/index.mjs +2 -2
  49. package/dist/locales/el/thorium-web.json +31 -0
  50. package/dist/locales/en/thorium-web.json +14 -2
  51. package/dist/locales/et/thorium-web.json +6 -2
  52. package/dist/locales/fi/thorium-shared.json +14 -8
  53. package/dist/locales/fi/thorium-web.json +2 -1
  54. package/dist/locales/fr/thorium-shared.json +100 -0
  55. package/dist/locales/it/thorium-shared.json +9 -0
  56. package/dist/locales/lt/thorium-shared.json +22 -13
  57. package/dist/locales/lt/thorium-web.json +2 -1
  58. package/dist/locales/pt-PT/thorium-shared.json +64 -1
  59. package/dist/locales/pt-PT/thorium-web.json +4 -3
  60. package/dist/locales/sv/thorium-shared.json +61 -3
  61. package/dist/locales/sv/thorium-web.json +4 -3
  62. package/dist/preferences/index.d.mts +8 -7
  63. package/dist/preferences/index.mjs +3 -3
  64. package/dist/settingsReducer-C1wwCAMv.d.mts +159 -0
  65. package/dist/{ui-BVlJcPL_.d.mts → ui-CamWuqOo.d.mts} +1 -1
  66. package/dist/useContrast-D6sjPjxy.d.mts +152 -0
  67. package/dist/{useEpubNavigator-CsraD65e.d.mts → useEpubNavigator-CwHJfoiV.d.mts} +1 -1
  68. package/dist/{usePreferences-rfT368__.d.mts → usePreferences-BXFJbval.d.mts} +1 -1
  69. package/dist/{StatefulReader-CjgFzHoO.d.mts → useReaderTransitions-guT-eA-Q.d.mts} +50 -50
  70. package/package.json +5 -3
  71. package/dist/chunk-COQXDRKD.mjs.map +0 -1
  72. package/dist/chunk-KJXHAJYK.mjs.map +0 -1
  73. package/dist/chunk-KTPIH35Y.mjs.map +0 -1
  74. package/dist/chunk-QNYZCQKO.mjs.map +0 -1
  75. package/dist/chunk-SFHOVH6R.mjs.map +0 -1
  76. package/dist/chunk-SMK7A7VF.mjs.map +0 -1
  77. package/dist/useContrast-Cgsrl7GS.d.mts +0 -15
@@ -64,7 +64,7 @@
64
64
  "auto": "Auto",
65
65
  "dual": {
66
66
  "compact": "2 stulpeliai",
67
- "descriptive": "2 stulpeliai"
67
+ "descriptive": "Du stulpeliai"
68
68
  },
69
69
  "single": {
70
70
  "compact": "1 stulpelis",
@@ -201,35 +201,44 @@
201
201
  },
202
202
  "progression": {
203
203
  "pagesLeft": {
204
- "descriptive_few": "",
204
+ "descriptive_few": "Liko {{ count }} puslapiai",
205
205
  "descriptive_one": "Liko {{ count }} puslapis",
206
- "descriptive_other": "Liko {{ count }} puslapiai (-ių)"
206
+ "descriptive_other": "Liko {{ count }} puslapių"
207
207
  },
208
208
  "pagesLeftInChapter": {
209
- "descriptive_few": "",
209
+ "descriptive_few": "Skyriuje liko {{ count }} puslapiai",
210
210
  "descriptive_one": "Skyriuje liko {{ count }} puslapis",
211
- "descriptive_other": "Skyriuje liko {{ count }} puslapiai"
211
+ "descriptive_other": "Skyriuje liko {{ count }} puslapių"
212
212
  },
213
213
  "pagesLeftInPublication": {
214
- "descriptive_few": "",
214
+ "descriptive_few": "Leidinyje liko {{ count }} puslapiai",
215
215
  "descriptive_one": "Leidinyje liko {{ count }} puslapis",
216
- "descriptive_other": "Leidinyje liko {{ count }} puslapiai (-ių)"
216
+ "descriptive_other": "Leidinyje liko {{ count }} puslapių"
217
217
  },
218
218
  "percentage": "{{ percentage }}%",
219
219
  "positionsLeft": {
220
- "descriptive_few": "",
220
+ "compact_few": "Liko {{ count }}",
221
+ "compact_one": "Liko {{ count }}",
222
+ "compact_other": "Liko {{ count }}",
223
+ "descriptive_few": "Liko {{ count }} pozicijos",
221
224
  "descriptive_one": "Liko {{ count }} pozicija",
222
- "descriptive_other": ""
225
+ "descriptive_other": "Liko {{ count }} pozicijų"
223
226
  },
224
227
  "positionsLeftInChapter": {
225
- "descriptive_few": "",
228
+ "compact_few": "Skyriuje lijo {{ count }}",
229
+ "compact_one": "Skyriuje lijo {{ count }}",
230
+ "compact_other": "Skyriuje lijo {{ count }}",
231
+ "descriptive_few": "Skyriuje liko {{ count }} pozicijos",
226
232
  "descriptive_one": "Skyriuje liko {{ count }} pozicija",
227
- "descriptive_other": "Skyriuje liko {{ count }} pozicijos (-ų)"
233
+ "descriptive_other": "Skyriuje liko {{ count }} pozicijų"
228
234
  },
229
235
  "positionsLeftInPublication": {
230
- "descriptive_few": "",
236
+ "compact_few": "Leidinyje liko {{ count }}",
237
+ "compact_one": "Leidinyje liko {{ count }}",
238
+ "compact_other": "Leidinyje liko {{ count }}",
239
+ "descriptive_few": "Leidinyje liko {{ count }} pozicijos",
231
240
  "descriptive_one": "Leidinyje liko {{ count }} pozicija",
232
- "descriptive_other": "Leidinyje liko {{ count }} pozicijos (-ų)"
241
+ "descriptive_other": "Leidinyje liko {{ count }} pozicijų"
233
242
  },
234
243
  "range": "{{ start }}–{{ end }}",
235
244
  "xOfY": {
@@ -48,7 +48,8 @@
48
48
  "wrapper": "Dabartinė eiga",
49
49
  "referenceFallback": "dabartinis skyrius",
50
50
  "pubFallback": "leidinys"
51
- }
51
+ },
52
+ "printingDisabled": "Spausdinimas išjungtas"
52
53
  },
53
54
  "navigation": {
54
55
  "scroll": {
@@ -37,6 +37,10 @@
37
37
  "compact": "Seguinte",
38
38
  "descriptive": "Página seguinte"
39
39
  },
40
+ "goToNextSentence": {
41
+ "compact": "Seguinte",
42
+ "descriptive": "Frase seguinte"
43
+ },
40
44
  "goToPosition": {
41
45
  "compact": "Saltar para…",
42
46
  "descriptive": "Saltar para a posição"
@@ -48,9 +52,14 @@
48
52
  "goToPreviousPage": {
49
53
  "compact": "Anterior",
50
54
  "descriptive": "Página anterior"
55
+ },
56
+ "goToPreviousSentence": {
57
+ "compact": "Anterior",
58
+ "descriptive": "Frase anterior"
51
59
  }
52
60
  },
53
61
  "preferences": {
62
+ "brightness": "Brilho",
54
63
  "columns": {
55
64
  "auto": "Auto",
56
65
  "dual": {
@@ -63,6 +72,18 @@
63
72
  },
64
73
  "title": "Colunas"
65
74
  },
75
+ "fit": {
76
+ "auto": {
77
+ "compact": "Automático"
78
+ },
79
+ "page": {
80
+ "compact": "Página"
81
+ },
82
+ "title": "Ajustar",
83
+ "width": {
84
+ "compact": "Largura"
85
+ }
86
+ },
66
87
  "fontFamily": {
67
88
  "humanist": {
68
89
  "compact": "Humanista",
@@ -110,6 +131,20 @@
110
131
  "label": "Utilizar formatação original",
111
132
  "title": "Estilos do editor"
112
133
  },
134
+ "readingDirection": {
135
+ "default": {
136
+ "compact": "Predefinição"
137
+ },
138
+ "ltr": {
139
+ "compact": "Direita",
140
+ "descriptive": "Esquerda para a direita"
141
+ },
142
+ "rtl": {
143
+ "compact": "Esquerda",
144
+ "descriptive": "Direita para a esquerda"
145
+ },
146
+ "title": "Direção de leitura"
147
+ },
113
148
  "spacing": {
114
149
  "presets": {
115
150
  "accessible": "Acessível",
@@ -122,9 +157,21 @@
122
157
  },
123
158
  "title": "Espaçamento"
124
159
  },
160
+ "spread": {
161
+ "always": {
162
+ "compact": "Página dupla"
163
+ },
164
+ "auto": {
165
+ "compact": "Automático"
166
+ },
167
+ "never": {
168
+ "compact": "Página única"
169
+ },
170
+ "title": "Espelhamento"
171
+ },
125
172
  "text": "Texto",
126
173
  "textAlign": {
127
- "default": "Padrão",
174
+ "default": "Predefinição",
128
175
  "justify": "Justificar",
129
176
  "left": "Esquerda",
130
177
  "right": "Direita",
@@ -140,6 +187,7 @@
140
187
  "contrast2": "Contraste 2",
141
188
  "contrast3": "Contraste 3",
142
189
  "dark": "Escuro",
190
+ "gray": "Cinza",
143
191
  "light": "Claro",
144
192
  "paper": "Papel",
145
193
  "sepia": "Sépia",
@@ -151,27 +199,42 @@
151
199
  },
152
200
  "progression": {
153
201
  "pagesLeft": {
202
+ "descriptive_many": "{{ count }} páginas restantes",
154
203
  "descriptive_one": "{{ count }} página restante",
155
204
  "descriptive_other": "{{ count }} páginas restantes"
156
205
  },
157
206
  "pagesLeftInChapter": {
207
+ "descriptive_many": "{{ count }} páginas restantes no capítulo",
158
208
  "descriptive_one": "{{ count }} página restante no capítulo",
159
209
  "descriptive_other": "{{ count }} páginas restantes no capítulo"
160
210
  },
161
211
  "pagesLeftInPublication": {
212
+ "descriptive_many": "{{ count }} páginas restantes na publicação",
162
213
  "descriptive_one": "{{ count }} página restante na publicação",
163
214
  "descriptive_other": "{{ count }} páginas restantes na publicação"
164
215
  },
165
216
  "percentage": "{{ percentage }}%",
166
217
  "positionsLeft": {
218
+ "compact_many": "{{ count }} restantes",
219
+ "compact_one": "{{ count }} restante",
220
+ "compact_other": "{{ count }} restantes",
221
+ "descriptive_many": "{{ count }} posições restantes",
167
222
  "descriptive_one": "{{ count }} posição restante",
168
223
  "descriptive_other": "{{ count }} posições restantes"
169
224
  },
170
225
  "positionsLeftInChapter": {
226
+ "compact_many": "{{ count }} restantes no capítulo",
227
+ "compact_one": "{{ count }} restante no capítulo",
228
+ "compact_other": "{{ count }} restantes no capítulo",
229
+ "descriptive_many": "{{ count }} posições restantes no capítulo",
171
230
  "descriptive_one": "{{ count }} posição restante no capítulo",
172
231
  "descriptive_other": "{{ count }} posições restantes no capítulo"
173
232
  },
174
233
  "positionsLeftInPublication": {
234
+ "compact_many": "{{ count }} restantes no documento",
235
+ "compact_one": "{{ count }} restante no documento",
236
+ "compact_other": "{{ count }} restantes no documento",
237
+ "descriptive_many": "{{ count }} posições restantes na publicação",
175
238
  "descriptive_one": "{{ count }} posição restante na publicação",
176
239
  "descriptive_other": "{{ count }} posições restantes na publicação"
177
240
  },
@@ -38,7 +38,7 @@
38
38
  "back": {
39
39
  "trigger": "Anterior"
40
40
  },
41
- "publicationWrapper": "Agora estás na publicação.",
41
+ "publicationWrapper": "Agora está na publicação.",
42
42
  "docking": {
43
43
  "dockingEmpty": "Atualmente vazio",
44
44
  "dockingClosed": "Está fechado, contém {{ action }}",
@@ -48,7 +48,8 @@
48
48
  },
49
49
  "footer": {
50
50
  "label": "Barra inferior"
51
- }
51
+ },
52
+ "printingDisabled": "A impressão foi desativada"
52
53
  },
53
54
  "navigation": {
54
55
  "scroll": {
@@ -92,4 +93,4 @@
92
93
  }
93
94
  }
94
95
  }
95
- }
96
+ }
@@ -3,13 +3,15 @@
3
3
  "actions": {
4
4
  "cancel": "Avbryt",
5
5
  "clear": "Rensa",
6
- "close": "Avsluta",
6
+ "close": "Stäng",
7
+ "collapse": "Minimera",
8
+ "collapseAll": "Minimera alla",
7
9
  "decrease": "Minska",
8
10
  "disable": "Inaktivera",
9
11
  "enable": "Aktivera",
10
12
  "exit": "Lämna",
11
- "expand": "Utvidga",
12
- "expandAll": "Expandera alla",
13
+ "expand": "Utöka",
14
+ "expandAll": "Utöka alla",
13
15
  "filter": "Filter",
14
16
  "hide": "Dölj",
15
17
  "hideAll": "Dölj alla",
@@ -35,6 +37,10 @@
35
37
  "compact": "Nästa",
36
38
  "descriptive": "Nästa sida"
37
39
  },
40
+ "goToNextSentence": {
41
+ "compact": "Nästa",
42
+ "descriptive": "Nästa mening"
43
+ },
38
44
  "goToPosition": {
39
45
  "compact": "Hoppa till…",
40
46
  "descriptive": "Hoppa till position"
@@ -46,9 +52,14 @@
46
52
  "goToPreviousPage": {
47
53
  "compact": "Föregående",
48
54
  "descriptive": "Föregående sida"
55
+ },
56
+ "goToPreviousSentence": {
57
+ "compact": "Föregående",
58
+ "descriptive": "Föregående mening"
49
59
  }
50
60
  },
51
61
  "preferences": {
62
+ "brightness": "Ljusstyrka",
52
63
  "columns": {
53
64
  "auto": "Auto",
54
65
  "dual": {
@@ -61,6 +72,18 @@
61
72
  },
62
73
  "title": "Kolumner"
63
74
  },
75
+ "fit": {
76
+ "auto": {
77
+ "compact": "Automatisk"
78
+ },
79
+ "page": {
80
+ "compact": "Sida"
81
+ },
82
+ "title": "Anpassa",
83
+ "width": {
84
+ "compact": "Bredd"
85
+ }
86
+ },
64
87
  "fontFamily": {
65
88
  "humanist": {
66
89
  "compact": "Humanist",
@@ -102,12 +125,28 @@
102
125
  "small": "Tätt",
103
126
  "title": "Radavstånd"
104
127
  },
128
+ "offsetFirstPage": "Visa första sidan på egen hand",
105
129
  "paragraphIndent": "Styckeindrag",
106
130
  "paragraphSpacing": "Styckeavstånd",
107
131
  "publisherStyles": {
108
132
  "label": "Använd originalformat",
109
133
  "title": "Utgivarens stilar"
110
134
  },
135
+ "readingDirection": {
136
+ "default": {
137
+ "compact": "Standard",
138
+ "descriptive": "Använd orginal läsriktning"
139
+ },
140
+ "ltr": {
141
+ "compact": "Höger",
142
+ "descriptive": "Vänster till höger"
143
+ },
144
+ "rtl": {
145
+ "compact": "Vänster",
146
+ "descriptive": "Höger till vänster"
147
+ },
148
+ "title": "Läsriktning"
149
+ },
111
150
  "spacing": {
112
151
  "presets": {
113
152
  "accessible": "Tillgänglig",
@@ -120,6 +159,18 @@
120
159
  },
121
160
  "title": "Avstånd"
122
161
  },
162
+ "spread": {
163
+ "always": {
164
+ "compact": "Dubbelsidig"
165
+ },
166
+ "auto": {
167
+ "compact": "Automatisk"
168
+ },
169
+ "never": {
170
+ "compact": "Ensidig"
171
+ },
172
+ "title": "Spridning"
173
+ },
123
174
  "text": "Text",
124
175
  "textAlign": {
125
176
  "default": "Standard",
@@ -138,6 +189,7 @@
138
189
  "contrast2": "Kontrast 2",
139
190
  "contrast3": "Kontrast 3",
140
191
  "dark": "Mörkt",
192
+ "gray": "Grå",
141
193
  "light": "Ljust",
142
194
  "paper": "Papper",
143
195
  "sepia": "Sepia",
@@ -162,14 +214,20 @@
162
214
  },
163
215
  "percentage": "{{ percentage }}%",
164
216
  "positionsLeft": {
217
+ "compact_one": "{{ count }} vänster",
218
+ "compact_other": "{{ count }} vänster",
165
219
  "descriptive_one": "{{ count }} position kvar",
166
220
  "descriptive_other": "{{ count }} positioner kvar"
167
221
  },
168
222
  "positionsLeftInChapter": {
223
+ "compact_one": "{{ count }} kvar i kapitel",
224
+ "compact_other": "{{ count }} kvar i kapitel",
169
225
  "descriptive_one": "{{ count }} position kvar i kapitlet",
170
226
  "descriptive_other": "{{ count }} positioner kvar i nuvarande kapitel"
171
227
  },
172
228
  "positionsLeftInPublication": {
229
+ "compact_one": "{{ count }} kvar i publikationen",
230
+ "compact_other": "{{ count }} kvar i publikationen",
173
231
  "descriptive_one": "{{ count }} position kvar i publikation",
174
232
  "descriptive_other": "{{ count }} kvar i boken"
175
233
  },
@@ -6,7 +6,7 @@
6
6
  "docking": {
7
7
  "dockingLeft": "Dockad panel till vänster",
8
8
  "dockingRight": "Dockad panel till höger",
9
- "dockingEmpty": "Inget innehåll",
9
+ "dockingEmpty": "För närvarande tom",
10
10
  "dockingClosed": "Är stängd, innehåller {{ action }}",
11
11
  "dockingCollapsed": "Är minimerad, innehåller {{ action }}"
12
12
  },
@@ -48,7 +48,8 @@
48
48
  },
49
49
  "back": {
50
50
  "trigger": "Tillbaka"
51
- }
51
+ },
52
+ "printingDisabled": "Utskrift har inaktiverats"
52
53
  },
53
54
  "navigation": {
54
55
  "scroll": {
@@ -92,4 +93,4 @@
92
93
  }
93
94
  }
94
95
  }
95
- }
96
+ }
@@ -1,11 +1,12 @@
1
- import { C as CustomizableKeys, D as DefaultKeys, c as ThPreferences, b as ThPreferencesAdapter, d as ThemeTokens, F as FontCollection, L as LocalStaticFontFile, e as FontDefinition, f as ThThemeKeys, g as ThSettingsKeys, h as ThTextSettingsKeys, i as ThSpacingSettingsKeys, j as ThSpacingPresetKeys } from '../ThPreferencesAdapter-B8AYujCA.mjs';
2
- export { A as ActionKey, t as ActionKeyType, $ as BunnyFontSource, G as CSSAbsoluteLength, H as CSSAngle, Z as CSSColor, I as CSSDefaultViewport, J as CSSDynamicViewport, M as CSSFontRelativeLength, K as CSSFrequency, N as CSSLargeViewport, O as CSSPhysicalLength, P as CSSRelativeLength, Q as CSSResolution, R as CSSRootFontRelativeLength, U as CSSSmallViewport, X as CSSTime, B as CSSValueUnitless, E as CSSValueWithUnit, Y as CSSViewport, af as ContentProtectionConfig, ad as CopyProtectionConfig, a5 as FontSource, a6 as FontSpec, a0 as GoogleFontSource, ac as I18nValue, a4 as LocalFontSource, a2 as LocalStaticFontSource, a1 as LocalVariableFontFile, a3 as LocalVariableFontSource, ae as PrintProtectionConfig, S as SettingsKey, w as SettingsKeyType, m as SpacingSettingsKey, y as SpacingSettingsKeyType, _ as SystemFontSource, l as TextSettingsKey, x as TextSettingsKeyType, p as ThActionsPref, r as ThConstraintKeys, a8 as ThFontFamilyPref, ap as ThLayoutOptions, T as ThLineHeightOptions, am as ThSettingsContainerKeys, aj as ThSettingsGroupPref, q as ThSettingsKeyTypes, al as ThSettingsRadioPref, ao as ThSettingsRangePlaceholder, ak as ThSettingsRangePref, an as ThSettingsRangeVariant, n as ThSettingsSpacingPresets, o as ThSpacingPreset, a as ThTextAlignOptions, k as ThemeKey, v as ThemeKeyType, a7 as ValidatedLanguageCollection, V as VariableFontRangeConfig, W as WeightConfig, aG as contrast1Theme, aH as contrast2Theme, aI as contrast3Theme, s as createPreferences, aD as darkTheme, ah as defaultContentProtectionConfig, aa as defaultFontCollection, ay as defaultLetterSpacing, az as defaultLineHeights, aw as defaultParagraphIndent, av as defaultParagraphSpacing, aB as defaultSpacingPresets, au as defaultSpacingPresetsOrder, as as defaultSpacingSettingsMain, at as defaultSpacingSettingsSubpanel, aq as defaultTextSettingsMain, ar as defaultTextSettingsSubpanel, ax as defaultWordSpacing, aA as defaultZoom, ai as devContentProtectionConfig, aC as lightTheme, aE as paperTheme, a9 as readiumCSSFontCollection, ag as resolveContentProtectionConfig, aF as sepiaTheme, ab as tamilCollection, u as useTheming, z as useThemingProps } from '../ThPreferencesAdapter-B8AYujCA.mjs';
1
+ import { C as CustomizableKeys, D as DefaultKeys, a as ThPreferences, T as ThPreferencesAdapter, b as ThemeTokens, F as FontCollection, L as LocalStaticFontFile, c as FontDefinition, d as ThThemeKeys } from '../ThPreferencesAdapter-DrZ5_6Dv.mjs';
2
+ export { A as ActionKey, n as ActionKeyType, R as BunnyFontSource, w as CSSAbsoluteLength, x as CSSAngle, P as CSSColor, y as CSSDefaultViewport, z as CSSDynamicViewport, E as CSSFontRelativeLength, B as CSSFrequency, G as CSSLargeViewport, H as CSSPhysicalLength, I as CSSRelativeLength, J as CSSResolution, K as CSSRootFontRelativeLength, M as CSSSmallViewport, N as CSSTime, t as CSSValueUnitless, v as CSSValueWithUnit, O as CSSViewport, a8 as ContentProtectionConfig, a6 as CopyProtectionConfig, $ as FontSource, a0 as FontSpec, U as GoogleFontSource, _ as LocalFontSource, Y as LocalStaticFontSource, X as LocalVariableFontFile, Z as LocalVariableFontSource, a7 as PrintProtectionConfig, S as SettingsKey, p as SettingsKeyType, g as SpacingSettingsKey, r as SpacingSettingsKeyType, Q as SystemFontSource, f as TextSettingsKey, q as TextSettingsKeyType, j as ThActionsPref, l as ThConstraintKeys, a2 as ThFontFamilyPref, k as ThSettingsKeyTypes, h as ThSettingsSpacingPresets, i as ThSpacingPreset, e as ThemeKey, o as ThemeKeyType, a1 as ValidatedLanguageCollection, V as VariableFontRangeConfig, W as WeightConfig, ag as contrast1Theme, ah as contrast2Theme, ai as contrast3Theme, m as createPreferences, ad as darkTheme, aa as defaultContentProtectionConfig, a4 as defaultFontCollection, ab as devContentProtectionConfig, ac as lightTheme, ae as paperTheme, a3 as readiumCSSFontCollection, a9 as resolveContentProtectionConfig, af as sepiaTheme, a5 as tamilCollection, u as useTheming, s as useThemingProps } from '../ThPreferencesAdapter-DrZ5_6Dv.mjs';
3
3
  import * as React from 'react';
4
- export { T as ThPreferencesProvider, u as usePreferences } from '../usePreferences-rfT368__.mjs';
5
- import { T as ThColorScheme } from '../useContrast-Cgsrl7GS.mjs';
6
- import { a as ThActionsKeys } from '../actions-BRtHsxpm.mjs';
7
- export { d as ThActionsDockedPref, e as ThActionsSnappedPref, c as ThActionsTokens, b as ThBottomSheetDetent, T as ThDockingKeys, f as ThDockingPref, g as ThDockingTypes, i as ThSheetHeaderVariant, h as ThSheetTypes, j as defaultActionKeysObject, l as defaultFullscreenAction, n as defaultJumpToPositionAction, k as defaultSettingsAction, m as defaultTocAction } from '../actions-BRtHsxpm.mjs';
8
- export { f as ThArrowVariant, T as ThBackLinkContent, a as ThBackLinkPref, h as ThBackLinkVariant, g as ThBreakpoints, i as ThDocumentTitleFormat, c as ThFormatPref, b as ThFormatPrefValue, j as ThLayoutDirection, k as ThLayoutUI, e as ThPaginatedAffordancePref, d as ThPaginatedAffordancePrefValue, l as ThProgressionFormat, m as ThRunningHeadFormat } from '../ui-BVlJcPL_.mjs';
4
+ export { T as ThPreferencesProvider, u as usePreferences } from '../usePreferences-BXFJbval.mjs';
5
+ import { d as ThColorScheme, f as ThSettingsKeys, g as ThTextSettingsKeys, b as ThSpacingSettingsKeys, a as ThSpacingPresetKeys } from '../useContrast-D6sjPjxy.mjs';
6
+ export { I as I18nValue, n as ThLayoutOptions, T as ThLineHeightOptions, k as ThSettingsContainerKeys, j as ThSettingsGroupPref, i as ThSettingsRadioPref, m as ThSettingsRangePlaceholder, h as ThSettingsRangePref, l as ThSettingsRangeVariant, c as ThTextAlignOptions, w as defaultLetterSpacing, x as defaultLineHeights, u as defaultParagraphIndent, t as defaultParagraphSpacing, z as defaultSpacingPresets, s as defaultSpacingPresetsOrder, q as defaultSpacingSettingsMain, r as defaultSpacingSettingsSubpanel, o as defaultTextSettingsMain, p as defaultTextSettingsSubpanel, v as defaultWordSpacing, y as defaultZoom } from '../useContrast-D6sjPjxy.mjs';
7
+ import { c as ThActionsKeys } from '../actions-D2CHvCHu.mjs';
8
+ export { h as ThActionsDockedPref, i as ThActionsSnappedPref, e as ThActionsTokens, g as ThBottomSheetDetent, T as ThDockingKeys, f as ThDockingPref, j as ThDockingTypes, a as ThSheetHeaderVariant, b as ThSheetTypes, k as defaultActionKeysObject, m as defaultFullscreenAction, o as defaultJumpToPositionAction, l as defaultSettingsAction, n as defaultTocAction } from '../actions-D2CHvCHu.mjs';
9
+ export { m as ThArrowVariant, j as ThBackLinkContent, d as ThBackLinkPref, n as ThBackLinkVariant, T as ThBreakpoints, c as ThDocumentTitleFormat, e as ThFormatPref, k as ThFormatPrefValue, b as ThLayoutDirection, h as ThLayoutUI, i as ThPaginatedAffordancePref, l as ThPaginatedAffordancePrefValue, g as ThProgressionFormat, f as ThRunningHeadFormat } from '../ui-CamWuqOo.mjs';
9
10
  import '../keyboardUtilities-BWAyLS_D.mjs';
10
11
  import '@readium/navigator';
11
12
  import 'react/jsx-runtime';
@@ -1,9 +1,9 @@
1
- export { ThActionsKeys, ThDockingKeys, ThDockingTypes, ThLayoutOptions, ThLineHeightOptions, ThMemoryPreferencesAdapter, ThPreferencesContext, ThPreferencesProvider, ThSettingsContainerKeys, ThSettingsKeys, ThSettingsRangePlaceholder, ThSettingsRangeVariant, ThSheetHeaderVariant, ThSheetTypes, ThSpacingPresetKeys, ThSpacingSettingsKeys, ThTextAlignOptions, ThTextSettingsKeys, ThThemeKeys, buildThemeObject, contrast1Theme, contrast2Theme, contrast3Theme, createDefinitionFromStaticFonts, createDefinitionsFromBunnyFonts, createDefinitionsFromGoogleFonts, createPreferences, darkTheme, defaultActionKeysObject, defaultContentProtectionConfig, defaultFontCollection, defaultFullscreenAction, defaultJumpToPositionAction, defaultLetterSpacing, defaultLineHeights, defaultParagraphIndent, defaultParagraphSpacing, defaultPreferences, defaultPreferencesContextValue, defaultSettingsAction, defaultSpacingPresets, defaultSpacingPresetsOrder, defaultSpacingSettingsMain, defaultSpacingSettingsSubpanel, defaultTextSettingsMain, defaultTextSettingsSubpanel, defaultTocAction, defaultWordSpacing, defaultZoom, devContentProtectionConfig, lightTheme, paperTheme, readiumCSSFontCollection, resolveContentProtectionConfig, sepiaTheme, tamilCollection, usePreferenceKeys, usePreferences, useTheming } from '../chunk-SMK7A7VF.mjs';
1
+ export { ThActionsKeys, ThDockingKeys, ThDockingTypes, ThLayoutOptions, ThLineHeightOptions, ThMemoryPreferencesAdapter, ThPreferencesContext, ThPreferencesProvider, ThSettingsContainerKeys, ThSettingsKeys, ThSettingsRangePlaceholder, ThSettingsRangeVariant, ThSheetHeaderVariant, ThSheetTypes, ThSpacingPresetKeys, ThSpacingSettingsKeys, ThTextAlignOptions, ThTextSettingsKeys, ThThemeKeys, buildThemeObject, contrast1Theme, contrast2Theme, contrast3Theme, createDefinitionFromStaticFonts, createDefinitionsFromBunnyFonts, createDefinitionsFromGoogleFonts, createPreferences, darkTheme, defaultActionKeysObject, defaultContentProtectionConfig, defaultFontCollection, defaultFullscreenAction, defaultJumpToPositionAction, defaultLetterSpacing, defaultLineHeights, defaultParagraphIndent, defaultParagraphSpacing, defaultPreferences, defaultPreferencesContextValue, defaultSettingsAction, defaultSpacingPresets, defaultSpacingPresetsOrder, defaultSpacingSettingsMain, defaultSpacingSettingsSubpanel, defaultTextSettingsMain, defaultTextSettingsSubpanel, defaultTocAction, defaultWordSpacing, defaultZoom, devContentProtectionConfig, lightTheme, paperTheme, readiumCSSFontCollection, resolveContentProtectionConfig, sepiaTheme, tamilCollection, usePreferenceKeys, usePreferences, useTheming } from '../chunk-7NEQAW7J.mjs';
2
+ export { ThArrowVariant, ThBackLinkVariant, ThBreakpoints, ThDocumentTitleFormat, ThLayoutDirection, ThLayoutUI, ThProgressionFormat, ThRunningHeadFormat } from '../chunk-XVSFXHYB.mjs';
2
3
  import '../chunk-GFSLVQIG.mjs';
4
+ import '../chunk-5LUMM7FW.mjs';
3
5
  import '../chunk-NQ2ZSGCX.mjs';
4
6
  import '../chunk-B3WDMWCT.mjs';
5
7
  import '../chunk-MLEYTQGK.mjs';
6
- export { ThArrowVariant, ThBackLinkVariant, ThBreakpoints, ThDocumentTitleFormat, ThLayoutDirection, ThLayoutUI, ThProgressionFormat, ThRunningHeadFormat } from '../chunk-XVSFXHYB.mjs';
7
- import '../chunk-5LUMM7FW.mjs';
8
8
  //# sourceMappingURL=index.mjs.map
9
9
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,159 @@
1
+ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
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-D6sjPjxy.mjs';
4
+
5
+ interface FontFamilyStateObject {
6
+ default: string;
7
+ [language: string]: string;
8
+ }
9
+ interface SetFontFamilyPayload {
10
+ type: string;
11
+ payload: {
12
+ key: "default" | string;
13
+ value: string;
14
+ };
15
+ }
16
+ interface LineLengthStateObject {
17
+ optimal?: number | null;
18
+ min?: {
19
+ chars?: number | null;
20
+ isDisabled?: boolean;
21
+ };
22
+ max?: {
23
+ chars?: number | null;
24
+ isDisabled?: boolean;
25
+ };
26
+ }
27
+ interface SetLineLengthPayload {
28
+ type: string;
29
+ payload: {
30
+ key: "optimal" | "min" | "max";
31
+ value?: number | null;
32
+ isDisabled?: boolean;
33
+ };
34
+ }
35
+ interface SetSpacingSettingPayload<T = number | ThLineHeightOptions | null> {
36
+ type: string;
37
+ payload: {
38
+ value: T;
39
+ preset?: ThSpacingPresetKeys;
40
+ };
41
+ }
42
+ interface SetSpacingPresetPayload {
43
+ type: string;
44
+ payload: {
45
+ preset: ThSpacingPresetKeys;
46
+ values: Partial<Record<SpacingStateKey, number | ThLineHeightOptions | null>>;
47
+ };
48
+ }
49
+ type SpacingStateKey = Exclude<ThSpacingSettingsKeys, ThSpacingSettingsKeys.spacingPresets | ThSpacingSettingsKeys.publisherStyles>;
50
+ interface SpacingStateObject {
51
+ preset: ThSpacingPresetKeys;
52
+ custom: Partial<Record<SpacingStateKey, number | ThLineHeightOptions | null>>;
53
+ baseline: Partial<Record<SpacingStateKey, number | ThLineHeightOptions | null>>;
54
+ }
55
+ interface SettingsReducerState {
56
+ columnCount: string;
57
+ fontFamily: FontFamilyStateObject;
58
+ fontSize: number;
59
+ fontWeight: number;
60
+ hyphens: boolean | null;
61
+ letterSpacing: number | null;
62
+ lineHeight: ThLineHeightOptions | null;
63
+ lineLength: LineLengthStateObject | null;
64
+ paragraphIndent: number | null;
65
+ paragraphSpacing: number | null;
66
+ publisherStyles: boolean;
67
+ scroll: boolean;
68
+ spacing: SpacingStateObject;
69
+ textAlign: ThTextAlignOptions;
70
+ textNormalization: boolean;
71
+ wordSpacing: number | null;
72
+ }
73
+ declare const handleSpacingSetting: (state: any, action: SetSpacingSettingPayload, settingKey: ThSpacingSettingsKeys) => void;
74
+ declare const settingsSlice: _reduxjs_toolkit.Slice<SettingsReducerState, {
75
+ setColumnCount: (state: WritableDraft<SettingsReducerState>, action: {
76
+ payload: any;
77
+ type: string;
78
+ }) => void;
79
+ setFontFamily: (state: WritableDraft<SettingsReducerState>, action: SetFontFamilyPayload) => void;
80
+ setFontSize: (state: WritableDraft<SettingsReducerState>, action: {
81
+ payload: any;
82
+ type: string;
83
+ }) => void;
84
+ setFontWeight: (state: WritableDraft<SettingsReducerState>, action: {
85
+ payload: any;
86
+ type: string;
87
+ }) => void;
88
+ setHyphens: (state: WritableDraft<SettingsReducerState>, action: {
89
+ payload: any;
90
+ type: string;
91
+ }) => void;
92
+ setLetterSpacing: (state: WritableDraft<SettingsReducerState>, action: {
93
+ payload: any;
94
+ type: string;
95
+ }) => void;
96
+ setLineHeight: (state: WritableDraft<SettingsReducerState>, action: {
97
+ payload: any;
98
+ type: string;
99
+ }) => void;
100
+ setLineLength: (state: WritableDraft<SettingsReducerState>, action: SetLineLengthPayload) => void;
101
+ setParagraphIndent: (state: WritableDraft<SettingsReducerState>, action: {
102
+ payload: any;
103
+ type: string;
104
+ }) => void;
105
+ setParagraphSpacing: (state: WritableDraft<SettingsReducerState>, action: {
106
+ payload: any;
107
+ type: string;
108
+ }) => void;
109
+ setPublisherStyles: (state: WritableDraft<SettingsReducerState>, action: {
110
+ payload: any;
111
+ type: string;
112
+ }) => void;
113
+ setScroll: (state: WritableDraft<SettingsReducerState>, action: {
114
+ payload: any;
115
+ type: string;
116
+ }) => void;
117
+ setSpacingPreset: (state: WritableDraft<SettingsReducerState>, action: SetSpacingPresetPayload) => void;
118
+ setTextAlign: (state: WritableDraft<SettingsReducerState>, action: {
119
+ payload: any;
120
+ type: string;
121
+ }) => void;
122
+ setTextNormalization: (state: WritableDraft<SettingsReducerState>, action: {
123
+ payload: any;
124
+ type: string;
125
+ }) => void;
126
+ setWordSpacing: (state: WritableDraft<SettingsReducerState>, action: {
127
+ payload: any;
128
+ type: string;
129
+ }) => void;
130
+ }, "settings", "settings", _reduxjs_toolkit.SliceSelectors<SettingsReducerState>>;
131
+ declare const initialSettingsState: SettingsReducerState;
132
+ declare const setColumnCount: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setColumnCount">;
133
+ declare const setFontSize: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setFontSize">;
134
+ declare const setFontWeight: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setFontWeight">;
135
+ declare const setFontFamily: _reduxjs_toolkit.ActionCreatorWithPayload<{
136
+ key: "default" | string;
137
+ value: string;
138
+ }, "settings/setFontFamily">;
139
+ declare const setHyphens: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setHyphens">;
140
+ declare const setLetterSpacing: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setLetterSpacing">;
141
+ declare const setLineHeight: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setLineHeight">;
142
+ declare const setLineLength: _reduxjs_toolkit.ActionCreatorWithPayload<{
143
+ key: "optimal" | "min" | "max";
144
+ value?: number | null;
145
+ isDisabled?: boolean;
146
+ }, "settings/setLineLength">;
147
+ declare const setParagraphIndent: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setParagraphIndent">;
148
+ declare const setParagraphSpacing: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setParagraphSpacing">;
149
+ declare const setPublisherStyles: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setPublisherStyles">;
150
+ declare const setScroll: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setScroll">;
151
+ declare const setSpacingPreset: _reduxjs_toolkit.ActionCreatorWithPayload<{
152
+ preset: ThSpacingPresetKeys;
153
+ values: Partial<Record<SpacingStateKey, number | ThLineHeightOptions | null>>;
154
+ }, "settings/setSpacingPreset">;
155
+ declare const setTextAlign: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setTextAlign">;
156
+ declare const setTextNormalization: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setTextNormalization">;
157
+ declare const setWordSpacing: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setWordSpacing">;
158
+
159
+ export { type FontFamilyStateObject as F, type LineLengthStateObject as L, type SetFontFamilyPayload as S, type SetLineLengthPayload as a, type SetSpacingSettingPayload as b, type SetSpacingPresetPayload as c, type SpacingStateKey as d, type SpacingStateObject as e, type SettingsReducerState as f, setColumnCount as g, handleSpacingSetting as h, initialSettingsState as i, setFontSize as j, setFontWeight as k, setFontFamily as l, setHyphens as m, setLetterSpacing as n, setLineHeight as o, setLineLength as p, setParagraphIndent as q, setParagraphSpacing as r, settingsSlice as s, setPublisherStyles as t, setScroll as u, setSpacingPreset as v, setTextAlign as w, setTextNormalization as x, setWordSpacing as y };
@@ -102,4 +102,4 @@ declare enum ThRunningHeadFormat {
102
102
  none = "none"
103
103
  }
104
104
 
105
- export { type BreakpointsMap as B, type ThBackLinkContent as T, type ThBackLinkPref as a, type ThFormatPrefValue as b, type ThFormatPref as c, type ThPaginatedAffordancePrefValue as d, type ThPaginatedAffordancePref as e, ThArrowVariant as f, ThBreakpoints as g, ThBackLinkVariant as h, ThDocumentTitleFormat as i, ThLayoutDirection as j, ThLayoutUI as k, ThProgressionFormat as l, ThRunningHeadFormat as m, type ThBreakpointsObject as n, useBreakpoints as u };
105
+ export { type BreakpointsMap as B, ThBreakpoints as T, type ThBreakpointsObject as a, ThLayoutDirection as b, ThDocumentTitleFormat as c, type ThBackLinkPref as d, type ThFormatPref as e, ThRunningHeadFormat as f, ThProgressionFormat as g, ThLayoutUI as h, type ThPaginatedAffordancePref as i, type ThBackLinkContent as j, type ThFormatPrefValue as k, type ThPaginatedAffordancePrefValue as l, ThArrowVariant as m, ThBackLinkVariant as n, useBreakpoints as u };