@edrlab/thorium-web 1.1.7 → 1.2.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.
Files changed (79) 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-KJXHAJYK.mjs → chunk-4VHEHMJN.mjs} +128 -11
  6. package/dist/chunk-4VHEHMJN.mjs.map +1 -0
  7. package/dist/{chunk-6V3O7FCS.mjs → chunk-72XCX5TD.mjs} +3 -3
  8. package/dist/{chunk-6V3O7FCS.mjs.map → chunk-72XCX5TD.mjs.map} +1 -1
  9. package/dist/{chunk-YIW2OOMW.mjs → chunk-7NEQAW7J.mjs} +2 -2
  10. package/dist/chunk-7NEQAW7J.mjs.map +1 -0
  11. package/dist/{chunk-COQXDRKD.mjs → chunk-K3K7TUWM.mjs} +2 -2
  12. package/dist/chunk-K3K7TUWM.mjs.map +1 -0
  13. package/dist/chunk-P4V3LA5R.mjs +407 -0
  14. package/dist/chunk-P4V3LA5R.mjs.map +1 -0
  15. package/dist/{chunk-4C3UOTX4.mjs → chunk-PXAUQJEU.mjs} +172 -27
  16. package/dist/chunk-PXAUQJEU.mjs.map +1 -0
  17. package/dist/chunk-QPE574OW.mjs +913 -0
  18. package/dist/chunk-QPE574OW.mjs.map +1 -0
  19. package/dist/chunk-RRDEPGBK.mjs +75 -0
  20. package/dist/chunk-RRDEPGBK.mjs.map +1 -0
  21. package/dist/components/Epub/index.css +7 -0
  22. package/dist/components/Epub/index.css.map +1 -1
  23. package/dist/components/Epub/index.d.mts +17 -11
  24. package/dist/components/Epub/index.mjs +9 -828
  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 +31 -3
  30. package/dist/components/Misc/index.mjs.map +1 -1
  31. package/dist/components/Reader/index.css +1290 -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.css +7 -0
  37. package/dist/components/WebPub/index.css.map +1 -1
  38. package/dist/components/WebPub/index.d.mts +16 -32
  39. package/dist/components/WebPub/index.mjs +9 -372
  40. package/dist/components/WebPub/index.mjs.map +1 -1
  41. package/dist/core/Components/index.d.mts +7 -6
  42. package/dist/core/Helpers/index.d.mts +1 -1
  43. package/dist/core/Hooks/index.d.mts +55 -6
  44. package/dist/core/Hooks/index.mjs +1 -1
  45. package/dist/errorHandler-CL2YIfQY.d.mts +26 -0
  46. package/dist/i18n/index.mjs +2 -2
  47. package/dist/immer.d-CoRThNOF.d.mts +23 -0
  48. package/dist/lib/index.d.mts +12 -162
  49. package/dist/lib/index.mjs +1 -1
  50. package/dist/locales/el/thorium-web.json +31 -0
  51. package/dist/locales/en/thorium-shared.json +84 -0
  52. package/dist/locales/en/thorium-web.json +10 -1
  53. package/dist/locales/et/thorium-shared.json +93 -2
  54. package/dist/locales/et/thorium-web.json +6 -2
  55. package/dist/locales/fi/thorium-shared.json +82 -8
  56. package/dist/locales/fi/thorium-web.json +2 -1
  57. package/dist/locales/fr/thorium-shared.json +100 -0
  58. package/dist/locales/it/thorium-shared.json +9 -0
  59. package/dist/locales/lt/thorium-shared.json +22 -13
  60. package/dist/locales/lt/thorium-web.json +2 -1
  61. package/dist/locales/pt-PT/thorium-shared.json +64 -1
  62. package/dist/locales/pt-PT/thorium-web.json +4 -3
  63. package/dist/locales/sv/thorium-shared.json +61 -3
  64. package/dist/locales/sv/thorium-web.json +4 -3
  65. package/dist/preferences/index.d.mts +8 -7
  66. package/dist/preferences/index.mjs +1 -1
  67. package/dist/settingsReducer-C1wwCAMv.d.mts +159 -0
  68. package/dist/{ui-BVlJcPL_.d.mts → ui-CamWuqOo.d.mts} +1 -1
  69. package/dist/useContrast-D6sjPjxy.d.mts +152 -0
  70. package/dist/{useEpubNavigator-CsraD65e.d.mts → useEpubNavigator-CwHJfoiV.d.mts} +1 -1
  71. package/dist/{usePreferences-rfT368__.d.mts → usePreferences-BXFJbval.d.mts} +1 -1
  72. package/dist/{StatefulReader-CjgFzHoO.d.mts → useReaderTransitions-guT-eA-Q.d.mts} +50 -50
  73. package/dist/{useWebPubNavigator-Che8r5Wg.d.mts → useWebPubNavigator-CuSNQKMw.d.mts} +1 -1
  74. package/package.json +5 -3
  75. package/dist/chunk-4C3UOTX4.mjs.map +0 -1
  76. package/dist/chunk-COQXDRKD.mjs.map +0 -1
  77. package/dist/chunk-KJXHAJYK.mjs.map +0 -1
  78. package/dist/chunk-YIW2OOMW.mjs.map +0 -1
  79. package/dist/useContrast-Cgsrl7GS.d.mts +0 -15
@@ -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,4 +1,4 @@
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-YIW2OOMW.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
2
  export { ThArrowVariant, ThBackLinkVariant, ThBreakpoints, ThDocumentTitleFormat, ThLayoutDirection, ThLayoutUI, ThProgressionFormat, ThRunningHeadFormat } from '../chunk-XVSFXHYB.mjs';
3
3
  import '../chunk-GFSLVQIG.mjs';
4
4
  import '../chunk-5LUMM7FW.mjs';
@@ -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 };
@@ -0,0 +1,152 @@
1
+ import { a as ThSheetHeaderVariant } from './actions-D2CHvCHu.mjs';
2
+
3
+ type I18nValue<T> = T | string | {
4
+ key: string;
5
+ fallback?: string;
6
+ };
7
+
8
+ interface ThSettingsGroupPref<T> {
9
+ main: T[];
10
+ subPanel: T[] | null;
11
+ header?: ThSheetHeaderVariant;
12
+ }
13
+ interface ThSettingsRangePref {
14
+ variant?: ThSettingsRangeVariant;
15
+ placeholder?: I18nValue<ThSettingsRangePlaceholder>;
16
+ range?: [number, number];
17
+ step?: number;
18
+ }
19
+ interface ThSettingsRadioPref<T extends string> {
20
+ allowUnset?: boolean;
21
+ keys: {
22
+ [key in T]: number;
23
+ };
24
+ }
25
+ declare enum ThSettingsKeys {
26
+ columns = "columns",
27
+ fontFamily = "fontFamily",
28
+ fontWeight = "fontWeight",
29
+ hyphens = "hyphens",
30
+ layout = "layout",
31
+ letterSpacing = "letterSpacing",
32
+ lineHeight = "lineHeight",
33
+ paragraphIndent = "paragraphIndent",
34
+ paragraphSpacing = "paragraphSpacing",
35
+ publisherStyles = "publisherStyles",
36
+ spacingGroup = "spacingGroup",
37
+ spacingPresets = "spacingPresets",
38
+ textAlign = "textAlign",
39
+ textGroup = "textGroup",
40
+ textNormalize = "textNormalize",
41
+ theme = "theme",
42
+ wordSpacing = "wordSpacing",
43
+ zoom = "zoom"
44
+ }
45
+ declare enum ThTextSettingsKeys {
46
+ fontFamily = "fontFamily",
47
+ fontWeight = "fontWeight",
48
+ hyphens = "hyphens",
49
+ textAlign = "textAlign",
50
+ textNormalize = "textNormalize"
51
+ }
52
+ declare enum ThSpacingSettingsKeys {
53
+ letterSpacing = "letterSpacing",
54
+ lineHeight = "lineHeight",
55
+ paragraphIndent = "paragraphIndent",
56
+ paragraphSpacing = "paragraphSpacing",
57
+ publisherStyles = "publisherStyles",
58
+ spacingPresets = "spacingPresets",
59
+ wordSpacing = "wordSpacing"
60
+ }
61
+ declare enum ThSettingsContainerKeys {
62
+ initial = "initial",
63
+ text = "text",
64
+ spacing = "spacing"
65
+ }
66
+ declare enum ThSettingsRangeVariant {
67
+ slider = "slider",
68
+ incrementedSlider = "incrementedSlider",
69
+ numberField = "numberField"
70
+ }
71
+ declare enum ThSettingsRangePlaceholder {
72
+ range = "range",
73
+ none = "none"
74
+ }
75
+ declare enum ThSpacingPresetKeys {
76
+ publisher = "publisher",
77
+ tight = "tight",
78
+ balanced = "balanced",
79
+ loose = "loose",
80
+ accessible = "accessible",
81
+ custom = "custom"
82
+ }
83
+ declare enum ThLayoutOptions {
84
+ scroll = "scroll_option",
85
+ paginated = "page_option"
86
+ }
87
+ declare enum ThTextAlignOptions {
88
+ publisher = "publisher",
89
+ start = "start",
90
+ justify = "justify"
91
+ }
92
+ declare enum ThLineHeightOptions {
93
+ publisher = "publisher",
94
+ small = "small",
95
+ medium = "medium",
96
+ large = "large"
97
+ }
98
+ declare const defaultTextSettingsMain: ThTextSettingsKeys[];
99
+ declare const defaultTextSettingsSubpanel: ThTextSettingsKeys[];
100
+ declare const defaultSpacingSettingsMain: ThSpacingSettingsKeys[];
101
+ declare const defaultSpacingSettingsSubpanel: ThSpacingSettingsKeys[];
102
+ declare const defaultSpacingPresetsOrder: ThSpacingPresetKeys[];
103
+ declare const defaultParagraphSpacing: Required<ThSettingsRangePref>;
104
+ declare const defaultParagraphIndent: Required<ThSettingsRangePref>;
105
+ declare const defaultWordSpacing: Required<ThSettingsRangePref>;
106
+ declare const defaultLetterSpacing: Required<ThSettingsRangePref>;
107
+ declare const defaultLineHeights: {
108
+ small: number;
109
+ medium: number;
110
+ large: number;
111
+ };
112
+ declare const defaultZoom: Required<ThSettingsRangePref>;
113
+ declare const defaultSpacingPresets: {
114
+ tight: {
115
+ lineHeight: ThLineHeightOptions;
116
+ paragraphSpacing: number;
117
+ paragraphIndent: number;
118
+ };
119
+ balanced: {
120
+ lineHeight: ThLineHeightOptions;
121
+ paragraphSpacing: number;
122
+ paragraphIndent: number;
123
+ };
124
+ loose: {
125
+ lineHeight: ThLineHeightOptions;
126
+ paragraphSpacing: number;
127
+ paragraphIndent: number;
128
+ };
129
+ accessible: {
130
+ lineHeight: ThLineHeightOptions;
131
+ paragraphSpacing: number;
132
+ paragraphIndent: number;
133
+ letterSpacing: number;
134
+ wordSpacing: number;
135
+ };
136
+ };
137
+
138
+ declare enum ThColorScheme {
139
+ light = "light",
140
+ dark = "dark"
141
+ }
142
+ declare const useColorScheme: (onChange?: (colorScheme: ThColorScheme) => void) => ThColorScheme;
143
+
144
+ declare enum ThContrast {
145
+ none = "no-preference",
146
+ more = "more",
147
+ less = "less",
148
+ custom = "custom"
149
+ }
150
+ declare const useContrast: (onChange?: (contrast: ThContrast) => void) => ThContrast;
151
+
152
+ export { useColorScheme as A, useContrast as B, type I18nValue as I, ThLineHeightOptions as T, ThSpacingPresetKeys as a, ThSpacingSettingsKeys as b, ThTextAlignOptions as c, ThColorScheme as d, ThContrast as e, ThSettingsKeys as f, ThTextSettingsKeys as g, type ThSettingsRangePref as h, type ThSettingsRadioPref as i, type ThSettingsGroupPref as j, ThSettingsContainerKeys as k, ThSettingsRangeVariant as l, ThSettingsRangePlaceholder as m, ThLayoutOptions as n, defaultTextSettingsMain as o, defaultTextSettingsSubpanel as p, defaultSpacingSettingsMain as q, defaultSpacingSettingsSubpanel as r, defaultSpacingPresetsOrder as s, defaultParagraphSpacing as t, defaultParagraphIndent as u, defaultWordSpacing as v, defaultLetterSpacing as w, defaultLineHeights as x, defaultZoom as y, defaultSpacingPresets as z };
@@ -15,7 +15,7 @@ interface EpubNavigatorLoadProps {
15
15
  contentProtection?: IContentProtectionConfig;
16
16
  }
17
17
  declare const useEpubNavigator: () => {
18
- EpubNavigatorLoad: (config: EpubNavigatorLoadProps, cb: Function) => void;
18
+ EpubNavigatorLoad: (config: EpubNavigatorLoadProps, cb: Function, fxlCallback?: (locator: Locator) => void) => void;
19
19
  EpubNavigatorDestroy: (cb: Function) => void;
20
20
  goRight: (animated: boolean, callback: cbb) => void;
21
21
  goLeft: (animated: boolean, callback: cbb) => void;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomizableKeys, D as DefaultKeys, b as ThPreferencesAdapter, c as ThPreferences, W as WeightConfig, V as VariableFontRangeConfig, F as FontCollection } from './ThPreferencesAdapter-B8AYujCA.mjs';
2
+ import { C as CustomizableKeys, D as DefaultKeys, T as ThPreferencesAdapter, a as ThPreferences, W as WeightConfig, V as VariableFontRangeConfig, F as FontCollection } from './ThPreferencesAdapter-DrZ5_6Dv.mjs';
3
3
  import { ILinkInjectable, IUrlInjectable, IBlobInjectable } from '@readium/navigator';
4
4
 
5
5
  type Props<K extends CustomizableKeys = DefaultKeys> = {