@edrlab/thorium-web 1.3.0 → 1.4.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 (111) hide show
  1. package/dist/{ThPreferencesAdapter-D0rzsGRl.d.mts → ThPreferencesAdapter-L1H6gzmu.d.mts} +23 -6
  2. package/dist/{ThSettingsWrapper-BXuRgdqp.d.mts → ThSettingsWrapper-DWEA4hYF.d.mts} +1 -1
  3. package/dist/{actions-BLAr0oaM.d.mts → actions-BjeRjaJU.d.mts} +1 -1
  4. package/dist/{actionsReducer-BhG1wicI.d.mts → actionsReducer-B32cq2mB.d.mts} +11 -4
  5. package/dist/{chunk-L4XGZAZ5.mjs → chunk-2YRT7RNW.mjs} +20 -3
  6. package/dist/chunk-2YRT7RNW.mjs.map +1 -0
  7. package/dist/{chunk-UCTMVCW7.mjs → chunk-6MONB2DN.mjs} +91 -63
  8. package/dist/chunk-6MONB2DN.mjs.map +1 -0
  9. package/dist/chunk-A575ZW4A.mjs +10 -0
  10. package/dist/chunk-A575ZW4A.mjs.map +1 -0
  11. package/dist/chunk-AE6P4KJB.mjs +13 -0
  12. package/dist/chunk-AE6P4KJB.mjs.map +1 -0
  13. package/dist/{chunk-OWHP7ONM.mjs → chunk-IVXRCKWR.mjs} +4 -4
  14. package/dist/{chunk-OWHP7ONM.mjs.map → chunk-IVXRCKWR.mjs.map} +1 -1
  15. package/dist/{chunk-RRVLWDT3.mjs → chunk-KVUG6BNI.mjs} +92 -27
  16. package/dist/chunk-KVUG6BNI.mjs.map +1 -0
  17. package/dist/{chunk-IYAFKTPL.mjs → chunk-NUXGQWED.mjs} +7 -5
  18. package/dist/chunk-NUXGQWED.mjs.map +1 -0
  19. package/dist/{chunk-4ODYHZKD.mjs → chunk-P6ILEQ5P.mjs} +49 -51
  20. package/dist/chunk-P6ILEQ5P.mjs.map +1 -0
  21. package/dist/{chunk-D7MFLHXV.mjs → chunk-PXXWEMNL.mjs} +951 -592
  22. package/dist/chunk-PXXWEMNL.mjs.map +1 -0
  23. package/dist/{chunk-T2E6MRVP.mjs → chunk-QUSGPT5M.mjs} +11 -12
  24. package/dist/chunk-QUSGPT5M.mjs.map +1 -0
  25. package/dist/{chunk-XBZWGRDM.mjs → chunk-SZAVAQ6S.mjs} +30 -6
  26. package/dist/chunk-SZAVAQ6S.mjs.map +1 -0
  27. package/dist/{chunk-3LDWKC5N.mjs → chunk-T5ENYSDJ.mjs} +5 -5
  28. package/dist/chunk-T5ENYSDJ.mjs.map +1 -0
  29. package/dist/{chunk-4TVEDX7L.mjs → chunk-TSLTLQ6O.mjs} +127 -41
  30. package/dist/chunk-TSLTLQ6O.mjs.map +1 -0
  31. package/dist/{chunk-ITDBOMY5.mjs → chunk-VENFFPK2.mjs} +3 -3
  32. package/dist/{chunk-ITDBOMY5.mjs.map → chunk-VENFFPK2.mjs.map} +1 -1
  33. package/dist/{chunk-YZ3KCMKY.mjs → chunk-WLVE3WNW.mjs} +238 -58
  34. package/dist/chunk-WLVE3WNW.mjs.map +1 -0
  35. package/dist/chunk-XRFLDNAY.mjs +3913 -0
  36. package/dist/chunk-XRFLDNAY.mjs.map +1 -0
  37. package/dist/components/Audio/index.d.mts +12 -12
  38. package/dist/components/Audio/index.mjs +14 -14
  39. package/dist/components/Epub/index.css +3 -3
  40. package/dist/components/Epub/index.css.map +1 -1
  41. package/dist/components/Epub/index.d.mts +12 -12
  42. package/dist/components/Epub/index.mjs +15 -15
  43. package/dist/components/Misc/index.css +2 -2
  44. package/dist/components/Misc/index.css.map +1 -1
  45. package/dist/components/Misc/index.mjs +4 -4
  46. package/dist/components/Reader/index.css +5 -5
  47. package/dist/components/Reader/index.css.map +1 -1
  48. package/dist/components/Reader/index.d.mts +11 -11
  49. package/dist/components/Reader/index.mjs +26 -24
  50. package/dist/components/Reader/index.mjs.map +1 -1
  51. package/dist/components/WebPub/index.css +3 -3
  52. package/dist/components/WebPub/index.css.map +1 -1
  53. package/dist/components/WebPub/index.d.mts +12 -12
  54. package/dist/components/WebPub/index.mjs +15 -15
  55. package/dist/core/Components/index.d.mts +11 -21
  56. package/dist/core/Components/index.mjs +1 -1
  57. package/dist/core/Helpers/index.d.mts +1 -1
  58. package/dist/core/Helpers/index.mjs +2 -3
  59. package/dist/core/Hooks/index.d.mts +12 -8
  60. package/dist/core/Hooks/index.mjs +1 -1
  61. package/dist/i18n/index.mjs +3 -6
  62. package/dist/lib/index.d.mts +49 -20
  63. package/dist/lib/index.mjs +3 -2
  64. package/dist/locales/da/thorium-shared.json +3 -0
  65. package/dist/locales/en/thorium-shared.json +24 -2
  66. package/dist/locales/en/thorium-web.json +2 -2
  67. package/dist/locales/es/thorium-shared.json +364 -0
  68. package/dist/locales/es/thorium-web.json +130 -0
  69. package/dist/locales/et/thorium-shared.json +121 -9
  70. package/dist/locales/et/thorium-web.json +32 -1
  71. package/dist/locales/fi/thorium-shared.json +42 -4
  72. package/dist/locales/fi/thorium-web.json +36 -2
  73. package/dist/locales/fr/thorium-shared.json +108 -1
  74. package/dist/locales/fr/thorium-web.json +121 -86
  75. package/dist/locales/it/thorium-shared.json +108 -1
  76. package/dist/locales/it/thorium-web.json +15 -2
  77. package/dist/locales/lt/thorium-web.json +10 -1
  78. package/dist/locales/pl/thorium-web.json +1 -1
  79. package/dist/locales/pt-BR/thorium-shared.json +6 -0
  80. package/dist/locales/pt-BR/thorium-web.json +88 -88
  81. package/dist/locales/pt-PT/thorium-shared.json +91 -0
  82. package/dist/locales/pt-PT/thorium-web.json +15 -3
  83. package/dist/locales/sv/thorium-shared.json +108 -2
  84. package/dist/locales/sv/thorium-web.json +15 -3
  85. package/dist/locales/tr/thorium-shared.json +42 -0
  86. package/dist/preferences/index.d.mts +59 -13
  87. package/dist/preferences/index.mjs +6 -6
  88. package/dist/{settingsReducer-Bu1zeveu.d.mts → settingsReducer-DLaT2wUB.d.mts} +14 -2
  89. package/dist/{ui-nBv8gfr0.d.mts → ui-DnZZhozX.d.mts} +1 -1
  90. package/dist/{useAudioNavigator-C5aW4-eT.d.mts → useAudioNavigator-CWXyNWq1.d.mts} +3 -1
  91. package/dist/{useContrast-2t429O9O.d.mts → useContrast-Bo7cDw_X.d.mts} +5 -1
  92. package/dist/{usePreferences-VaBf46eP.d.mts → usePreferences-D8NU1yhP.d.mts} +6 -8
  93. package/dist/{useReaderTransitions-JDzlBFsu.d.mts → useReaderTransitions-BQGzKeY2.d.mts} +61 -10
  94. package/package.json +12 -11
  95. package/dist/chunk-3LDWKC5N.mjs.map +0 -1
  96. package/dist/chunk-4ODYHZKD.mjs.map +0 -1
  97. package/dist/chunk-4TVEDX7L.mjs.map +0 -1
  98. package/dist/chunk-7CGMWOZN.mjs +0 -20
  99. package/dist/chunk-7CGMWOZN.mjs.map +0 -1
  100. package/dist/chunk-C236BQQB.mjs +0 -1725
  101. package/dist/chunk-C236BQQB.mjs.map +0 -1
  102. package/dist/chunk-D7MFLHXV.mjs.map +0 -1
  103. package/dist/chunk-IYAFKTPL.mjs.map +0 -1
  104. package/dist/chunk-L4XGZAZ5.mjs.map +0 -1
  105. package/dist/chunk-RRVLWDT3.mjs.map +0 -1
  106. package/dist/chunk-T2E6MRVP.mjs.map +0 -1
  107. package/dist/chunk-UCTMVCW7.mjs.map +0 -1
  108. package/dist/chunk-WECWPYZB.mjs +0 -1950
  109. package/dist/chunk-WECWPYZB.mjs.map +0 -1
  110. package/dist/chunk-XBZWGRDM.mjs.map +0 -1
  111. package/dist/chunk-YZ3KCMKY.mjs.map +0 -1
@@ -1,11 +1,11 @@
1
- export { B as BreakpointsMap, f as ThBreakpointsObject, u as useBreakpoints } from '../../ui-nBv8gfr0.mjs';
2
- import { T as ThLineHeightOptions, c as ThTextAlignOptions } from '../../useContrast-2t429O9O.mjs';
3
- export { e as ThColorScheme, f as ThContrast, u as useColorScheme, k as useContrast } from '../../useContrast-2t429O9O.mjs';
1
+ export { B as BreakpointsMap, e as ThBreakpointsObject, u as useBreakpoints } from '../../ui-DnZZhozX.mjs';
2
+ import { T as ThLineHeightOptions, c as ThTextAlignOptions } from '../../useContrast-Bo7cDw_X.mjs';
3
+ export { e as ThColorScheme, f as ThContrast, u as useColorScheme, k as useContrast } from '../../useContrast-Bo7cDw_X.mjs';
4
4
  import * as React from 'react';
5
5
  export { T as TimelineItem, a as TimelineProgression, c as TocEntryRef, b as TocItem, U as UnstableTimeline, t as timelineInstance, u as useTimeline } from '../../useTimeline-DCZ1qoCO.mjs';
6
- export { A as AudioNavigatorLoadProps, c as AudioSettings, d as AudioSettingsCache, E as EpubNavigatorLoadProps, W as WebPubNavigatorLoadProps, u as useAudioNavigator, e as useAudioSettingsCache, a as useEpubNavigator, b as useWebPubNavigator } from '../../useAudioNavigator-C5aW4-eT.mjs';
7
- import { F as FontFamilyStateObject, L as LineLengthStateObject } from '../../settingsReducer-Bu1zeveu.mjs';
8
- import '../../actions-BLAr0oaM.mjs';
6
+ export { A as AudioNavigatorLoadProps, c as AudioSettings, d as AudioSettingsCache, E as EpubNavigatorLoadProps, W as WebPubNavigatorLoadProps, u as useAudioNavigator, e as useAudioSettingsCache, a as useEpubNavigator, b as useWebPubNavigator } from '../../useAudioNavigator-CWXyNWq1.mjs';
7
+ import { F as FontFamilyStateObject, L as LineLengthStateObject } from '../../settingsReducer-DLaT2wUB.mjs';
8
+ import '../../actions-BjeRjaJU.mjs';
9
9
  import 'react/jsx-runtime';
10
10
  import 'react-aria-components';
11
11
  import '@readium/shared';
@@ -49,8 +49,10 @@ interface ReadiumCSSSettings {
49
49
  fontWeight: number;
50
50
  hyphens: boolean | null;
51
51
  letterSpacing: number | null;
52
+ ligatures: boolean | null;
52
53
  lineLength: LineLengthStateObject | null;
53
54
  lineHeight: ThLineHeightOptions | null;
55
+ noRuby: boolean | null;
54
56
  paragraphIndent: number | null;
55
57
  paragraphSpacing: number | null;
56
58
  publisherStyles: boolean;
@@ -63,14 +65,16 @@ interface ReadiumCSSSettings {
63
65
  interface EPubSettingsCache {
64
66
  settings: ReadiumCSSSettings;
65
67
  }
66
- declare const useEpubSettingsCache: (textAlign: ThTextAlignOptions | null, columnCount: string, fontFamily: FontFamilyStateObject, fontSize: number, fontWeight: number, hyphens: boolean | null, letterSpacing: number | null, lineLength: LineLengthStateObject | null, lineHeight: ThLineHeightOptions | null, paragraphIndent: number | null, paragraphSpacing: number | null, publisherStyles: boolean, scroll: boolean, textNormalization: boolean, wordSpacing: number | null, theme: string | undefined) => React.RefObject<EPubSettingsCache>;
68
+ declare const useEpubSettingsCache: (textAlign: ThTextAlignOptions | null, columnCount: string, fontFamily: FontFamilyStateObject, fontSize: number, fontWeight: number, hyphens: boolean | null, letterSpacing: number | null, ligatures: boolean | null, lineLength: LineLengthStateObject | null, lineHeight: ThLineHeightOptions | null, noRuby: boolean | null, paragraphIndent: number | null, paragraphSpacing: number | null, publisherStyles: boolean, scroll: boolean, textNormalization: boolean, wordSpacing: number | null, theme: string | undefined) => React.RefObject<EPubSettingsCache>;
67
69
 
68
70
  interface WebPubCSSSettings {
69
71
  fontFamily: FontFamilyStateObject;
70
72
  fontWeight: number;
71
73
  hyphens: boolean | null;
72
74
  letterSpacing: number | null;
75
+ ligatures: boolean | null;
73
76
  lineHeight: ThLineHeightOptions | null;
77
+ noRuby: boolean | null;
74
78
  paragraphIndent: number | null;
75
79
  paragraphSpacing: number | null;
76
80
  publisherStyles: boolean;
@@ -82,6 +86,6 @@ interface WebPubCSSSettings {
82
86
  interface WebPubStatelessCache {
83
87
  settings: WebPubCSSSettings;
84
88
  }
85
- declare const useWebPubSettingsCache: (fontFamily: FontFamilyStateObject, fontWeight: number, hyphens: boolean | null, letterSpacing: number | null, lineHeight: ThLineHeightOptions | null, paragraphIndent: number | null, paragraphSpacing: number | null, publisherStyles: boolean, textAlign: ThTextAlignOptions | null, textNormalization: boolean, wordSpacing: number | null, zoom: number) => React.RefObject<WebPubStatelessCache>;
89
+ declare const useWebPubSettingsCache: (fontFamily: FontFamilyStateObject, fontWeight: number, hyphens: boolean | null, letterSpacing: number | null, ligatures: boolean | null, lineHeight: ThLineHeightOptions | null, noRuby: boolean | null, paragraphIndent: number | null, paragraphSpacing: number | null, publisherStyles: boolean, textAlign: ThTextAlignOptions | null, textNormalization: boolean, wordSpacing: number | null, zoom: number) => React.RefObject<WebPubStatelessCache>;
86
90
 
87
91
  export { type EPubSettingsCache, type ReadiumCSSSettings, type WebPubCSSSettings, type WebPubStatelessCache, useDocumentTitle, useEpubSettingsCache, useForcedColors, useFullscreen, useIsClient, useLocalStorage, useMediaQuery, useMonochrome, usePrevious, useReducedMotion, useReducedTransparency, useWebPubSettingsCache };
@@ -1,4 +1,4 @@
1
- export { timelineInstance, useAudioNavigator, useAudioSettingsCache, useDocumentTitle, useEpubNavigator, useEpubSettingsCache, useFullscreen, useIsClient, useLocalStorage, useTimeline, useWebPubNavigator, useWebPubSettingsCache } from '../../chunk-XBZWGRDM.mjs';
1
+ export { timelineInstance, useAudioNavigator, useAudioSettingsCache, useDocumentTitle, useEpubNavigator, useEpubSettingsCache, useFullscreen, useIsClient, useLocalStorage, useTimeline, useWebPubNavigator, useWebPubSettingsCache } from '../../chunk-SZAVAQ6S.mjs';
2
2
  import '../../chunk-TEZB4ULX.mjs';
3
3
  export { useBreakpoints, useForcedColors, useMonochrome, useReducedMotion, useReducedTransparency } from '../../chunk-GFSLVQIG.mjs';
4
4
  export { ThColorScheme, ThContrast, useColorScheme, useContrast, useMediaQuery } from '../../chunk-NQ2ZSGCX.mjs';
@@ -1,10 +1,7 @@
1
- export { ThI18nProvider, Trans } from '../chunk-3LDWKC5N.mjs';
2
- import '../chunk-C236BQQB.mjs';
3
- import '../chunk-L4XGZAZ5.mjs';
4
- import '../chunk-5LUMM7FW.mjs';
5
- export { DEFAULT_CONFIG, i18n, initI18n, useI18n } from '../chunk-IYAFKTPL.mjs';
1
+ export { ThI18nProvider, Trans } from '../chunk-T5ENYSDJ.mjs';
2
+ import '../chunk-AE6P4KJB.mjs';
3
+ export { DEFAULT_CONFIG, i18n, initI18n, useI18n } from '../chunk-NUXGQWED.mjs';
6
4
  import '../chunk-B3WDMWCT.mjs';
7
- import '../chunk-MLEYTQGK.mjs';
8
5
  import '../chunk-3GDQP6AS.mjs';
9
6
  //# sourceMappingURL=index.mjs.map
10
7
  //# sourceMappingURL=index.mjs.map
@@ -3,19 +3,19 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
3
3
  import { PayloadAction, Store } from '@reduxjs/toolkit';
4
4
  import { W as WritableDraft } from '../immer.d-CoRThNOF.mjs';
5
5
  import { b as UnstablePlatformModifier } from '../keyboardUtilities-BWAyLS_D.mjs';
6
- import { m as ThSettingsContainerKeys, e as ThColorScheme, f as ThContrast, T as ThLineHeightOptions, c as ThTextAlignOptions, a as ThSpacingPresetKeys } from '../useContrast-2t429O9O.mjs';
7
- import { T as ThLayoutDirection, e as ThBreakpoints, j as ThProgressionFormat, i as ThRunningHeadFormat, o as ThPaginatedAffordancePrefValue, k as ThLayoutUI } from '../ui-nBv8gfr0.mjs';
8
- import { F as FontFamilyStateObject, e as SpacingStateObject, S as SetFontFamilyPayload, c as SetSpacingPresetPayload, d as SpacingStateKey, f as SettingsReducerState } from '../settingsReducer-Bu1zeveu.mjs';
9
- export { L as LineLengthStateObject, a as SetLineLengthPayload, b as SetSpacingSettingPayload, h as handleSpacingSetting, i as initialSettingsState, g as setColumnCount, l as setFontFamily, j as setFontSize, k as setFontWeight, m as setHyphens, n as setLetterSpacing, o as setLineHeight, p as setLineLength, q as setParagraphIndent, r as setParagraphSpacing, t as setPublisherStyles, u as setScroll, v as setSpacingPreset, w as setTextAlign, x as setTextNormalization, y as setWordSpacing, s as settingsSlice } from '../settingsReducer-Bu1zeveu.mjs';
10
- import { a as ThemeTokens, d as ThPreferences, C as CustomizableKeys, c as ThPreferencesAdapter } from '../ThPreferencesAdapter-D0rzsGRl.mjs';
11
- import { l as ActionsReducerState } from '../actionsReducer-BhG1wicI.mjs';
12
- export { f as ActionOverflowOpenPayload, c as ActionStateDockPayload, g as ActionStateDockedPayload, a as ActionStateObject, d as ActionStateOpenPayload, h as ActionStateSlotPayload, i as ActionStateSlotPayloadWithProfile, j as ActionStateSlotWidthPayload, e as ActionStateTogglePayload, A as ActionsStateKeys, k as DockState, D as DockStateObject, O as OverflowStateKeys, b as OverflowStateObject, m as actionsSlice, p as activateDockPanel, r as collapseDockPanel, q as deactivateDockPanel, n as dockAction, u as expandDockPanel, s as setActionOpen, v as setDockPanelWidth, o as setOverflow, t as toggleActionOpen } from '../actionsReducer-BhG1wicI.mjs';
6
+ import { m as ThSettingsContainerKeys, e as ThColorScheme, f as ThContrast, T as ThLineHeightOptions, c as ThTextAlignOptions, a as ThSpacingPresetKeys } from '../useContrast-Bo7cDw_X.mjs';
7
+ import { q as ThLayoutDirection, d as ThBreakpoints, i as ThProgressionFormat, h as ThRunningHeadFormat, n as ThPaginatedAffordancePrefValue, j as ThLayoutUI } from '../ui-DnZZhozX.mjs';
8
+ import { F as FontFamilyStateObject, e as SpacingStateObject, S as SetFontFamilyPayload, c as SetSpacingPresetPayload, d as SpacingStateKey, f as SettingsReducerState } from '../settingsReducer-DLaT2wUB.mjs';
9
+ export { L as LineLengthStateObject, a as SetLineLengthPayload, b as SetSpacingSettingPayload, h as handleSpacingSetting, i as initialSettingsState, g as setColumnCount, l as setFontFamily, j as setFontSize, k as setFontWeight, m as setHyphens, o as setLetterSpacing, n as setLigatures, p as setLineHeight, q as setLineLength, z as setNoRuby, r as setParagraphIndent, t as setParagraphSpacing, u as setPublisherStyles, v as setScroll, w as setSpacingPreset, x as setTextAlign, y as setTextNormalization, A as setWordSpacing, s as settingsSlice } from '../settingsReducer-DLaT2wUB.mjs';
10
+ import { a as ThemeTokens, d as ThPreferences, C as CustomizableKeys, c as ThPreferencesAdapter, f as ThGlobalPreferencesAdapter, e as ThGlobalPreferences } from '../ThPreferencesAdapter-L1H6gzmu.mjs';
11
+ import { m as ActionsReducerState } from '../actionsReducer-B32cq2mB.mjs';
12
+ export { l as ActionKeysState, f as ActionOverflowOpenPayload, c as ActionStateDockPayload, g as ActionStateDockedPayload, a as ActionStateObject, d as ActionStateOpenPayload, h as ActionStateSlotPayload, i as ActionStateSlotPayloadWithProfile, j as ActionStateSlotWidthPayload, e as ActionStateTogglePayload, A as ActionsStateKeys, k as DockState, D as DockStateObject, O as OverflowStateKeys, b as OverflowStateObject, n as actionsSlice, q as activateDockPanel, u as collapseDockPanel, r as deactivateDockPanel, o as dockAction, v as expandDockPanel, s as setActionOpen, w as setDockPanelWidth, p as setOverflow, t as toggleActionOpen } from '../actionsReducer-B32cq2mB.mjs';
13
13
  import { Locator } from '@readium/shared';
14
+ import { ScriptMode } from '@readium/navigator';
14
15
  import { U as UnstableTimeline, b as TocItem } from '../useTimeline-DCZ1qoCO.mjs';
15
16
  import { TypedUseSelectorHook } from 'react-redux';
16
- import '../actions-BLAr0oaM.mjs';
17
+ import '../actions-BjeRjaJU.mjs';
17
18
  import 'react-aria-components';
18
- import '@readium/navigator';
19
19
 
20
20
  type ReaderProfile = "epub" | "webPub" | "audio" | undefined;
21
21
  interface ReaderReducerState {
@@ -170,6 +170,7 @@ interface PublicationReducerState {
170
170
  fontLanguage: string;
171
171
  isFXL: boolean;
172
172
  isRTL: boolean;
173
+ scriptMode: ScriptMode;
173
174
  hasDisplayTransformability: boolean;
174
175
  positionsList: Locator[];
175
176
  atPublicationStart: boolean;
@@ -193,6 +194,10 @@ declare const publicationSlice: _reduxjs_toolkit.Slice<PublicationReducerState,
193
194
  payload: any;
194
195
  type: string;
195
196
  }) => void;
197
+ setScriptMode: (state: WritableDraft<PublicationReducerState>, action: {
198
+ payload: any;
199
+ type: string;
200
+ }) => void;
196
201
  setHasDisplayTransformability: (state: WritableDraft<PublicationReducerState>, action: {
197
202
  payload: any;
198
203
  type: string;
@@ -230,6 +235,7 @@ declare const publicationSlice: _reduxjs_toolkit.Slice<PublicationReducerState,
230
235
  declare const setFontLanguage: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setFontLanguage">;
231
236
  declare const setFXL: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setFXL">;
232
237
  declare const setRTL: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setRTL">;
238
+ declare const setScriptMode: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setScriptMode">;
233
239
  declare const setHasDisplayTransformability: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setHasDisplayTransformability">;
234
240
  declare const setPositionsList: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setPositionsList">;
235
241
  declare const setPublicationStart: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setPublicationStart">;
@@ -242,10 +248,6 @@ declare const setAdjacentTimelineItems: _reduxjs_toolkit.ActionCreatorWithPayloa
242
248
  next: AdjacentTimelineItem | null;
243
249
  }, "publication/setAdjacentTimelineItems">;
244
250
 
245
- interface L10nObject {
246
- locale?: string;
247
- direction?: ThLayoutDirection;
248
- }
249
251
  interface RenditionProperties<T extends string | Array<string>> {
250
252
  default?: T;
251
253
  breakpoints?: {
@@ -291,10 +293,6 @@ interface PaginatedAffordancePayload {
291
293
  };
292
294
  }
293
295
  interface PreferencesReducerState {
294
- l10n?: {
295
- locale?: string;
296
- direction?: ThLayoutDirection;
297
- };
298
296
  progressionFormat?: RenditionObject<ThProgressionFormat | Array<ThProgressionFormat>>;
299
297
  runningHeadFormat?: RenditionObject<ThRunningHeadFormat>;
300
298
  paginatedAffordances?: PaginatedAffordanceObject;
@@ -311,7 +309,6 @@ interface PreferencesReducerState {
311
309
  };
312
310
  }
313
311
  declare const preferencesSlice: _reduxjs_toolkit.Slice<PreferencesReducerState, {
314
- setL10n: (state: WritableDraft<PreferencesReducerState>, action: PayloadAction<L10nObject>) => void;
315
312
  setProgressionFormat: (state: WritableDraft<PreferencesReducerState>, action: RenditionChangePayload<ThProgressionFormat | Array<ThProgressionFormat>>) => void;
316
313
  setRunningHeadFormat: (state: WritableDraft<PreferencesReducerState>, action: RenditionChangePayload<ThRunningHeadFormat>) => void;
317
314
  setUI: (state: WritableDraft<PreferencesReducerState>, action: UIChangePayload) => void;
@@ -322,7 +319,6 @@ declare const preferencesSlice: _reduxjs_toolkit.Slice<PreferencesReducerState,
322
319
  setPaginatedAffordance: (state: WritableDraft<PreferencesReducerState>, action: PaginatedAffordancePayload) => void;
323
320
  updateFromPreferences(state: WritableDraft<PreferencesReducerState>, action: PayloadAction<ThPreferences<CustomizableKeys>>): PreferencesReducerState;
324
321
  }, "preferences", "preferences", _reduxjs_toolkit.SliceSelectors<PreferencesReducerState>>;
325
- declare const setL10n: _reduxjs_toolkit.ActionCreatorWithPayload<L10nObject, "preferences/setL10n">;
326
322
  declare const setProgressionFormat: _reduxjs_toolkit.ActionCreatorWithPayload<{
327
323
  key: "reflow" | "fxl" | "webPub";
328
324
  value?: ThProgressionFormat | ThProgressionFormat[] | undefined;
@@ -345,12 +341,22 @@ declare const setPaginatedAffordance: _reduxjs_toolkit.ActionCreatorWithPayload<
345
341
  }, "preferences/setPaginatedAffordance">;
346
342
  declare const updateFromPreferences: _reduxjs_toolkit.ActionCreatorWithPayload<ThPreferences<CustomizableKeys>, "preferences/updateFromPreferences">;
347
343
 
344
+ interface GlobalPreferencesReducerState {
345
+ locale?: string;
346
+ }
347
+ declare const globalPreferencesSlice: _reduxjs_toolkit.Slice<GlobalPreferencesReducerState, {
348
+ setLocale: (state: WritableDraft<GlobalPreferencesReducerState>, action: PayloadAction<string | undefined>) => void;
349
+ }, "globalPreferences", "globalPreferences", _reduxjs_toolkit.SliceSelectors<GlobalPreferencesReducerState>>;
350
+ declare const setLocale: _reduxjs_toolkit.ActionCreatorWithOptionalPayload<string | undefined, "globalPreferences/setLocale">;
351
+
348
352
  interface WebPubSettingsReducerState {
349
353
  fontFamily: FontFamilyStateObject;
350
354
  fontWeight: number;
351
355
  hyphens: boolean | null;
352
356
  letterSpacing: number | null;
357
+ ligatures: boolean | null;
353
358
  lineHeight: ThLineHeightOptions | null;
359
+ noRuby: boolean | null;
354
360
  paragraphIndent: number | null;
355
361
  paragraphSpacing: number | null;
356
362
  publisherStyles: boolean;
@@ -370,6 +376,10 @@ declare const webPubSettingsSlice: _reduxjs_toolkit.Slice<WebPubSettingsReducerS
370
376
  payload: any;
371
377
  type: string;
372
378
  }) => void;
379
+ setWebPubLigatures: (state: WritableDraft<WebPubSettingsReducerState>, action: {
380
+ payload: any;
381
+ type: string;
382
+ }) => void;
373
383
  setWebPubLetterSpacing: (state: WritableDraft<WebPubSettingsReducerState>, action: {
374
384
  payload: any;
375
385
  type: string;
@@ -399,6 +409,10 @@ declare const webPubSettingsSlice: _reduxjs_toolkit.Slice<WebPubSettingsReducerS
399
409
  payload: any;
400
410
  type: string;
401
411
  }) => void;
412
+ setWebPubNoRuby: (state: WritableDraft<WebPubSettingsReducerState>, action: {
413
+ payload: any;
414
+ type: string;
415
+ }) => void;
402
416
  setWebPubWordSpacing: (state: WritableDraft<WebPubSettingsReducerState>, action: {
403
417
  payload: any;
404
418
  type: string;
@@ -415,6 +429,7 @@ declare const setWebPubFontFamily: _reduxjs_toolkit.ActionCreatorWithPayload<{
415
429
  }, "webPubSettings/setWebPubFontFamily">;
416
430
  declare const setWebPubFontWeight: _reduxjs_toolkit.ActionCreatorWithPayload<any, "webPubSettings/setWebPubFontWeight">;
417
431
  declare const setWebPubHyphens: _reduxjs_toolkit.ActionCreatorWithPayload<any, "webPubSettings/setWebPubHyphens">;
432
+ declare const setWebPubLigatures: _reduxjs_toolkit.ActionCreatorWithPayload<any, "webPubSettings/setWebPubLigatures">;
418
433
  declare const setWebPubLetterSpacing: _reduxjs_toolkit.ActionCreatorWithPayload<any, "webPubSettings/setWebPubLetterSpacing">;
419
434
  declare const setWebPubLineHeight: _reduxjs_toolkit.ActionCreatorWithPayload<any, "webPubSettings/setWebPubLineHeight">;
420
435
  declare const setWebPubParagraphIndent: _reduxjs_toolkit.ActionCreatorWithPayload<any, "webPubSettings/setWebPubParagraphIndent">;
@@ -426,6 +441,7 @@ declare const setWebPubSpacingPreset: _reduxjs_toolkit.ActionCreatorWithPayload<
426
441
  }, "webPubSettings/setWebPubSpacingPreset">;
427
442
  declare const setWebPubTextAlign: _reduxjs_toolkit.ActionCreatorWithPayload<any, "webPubSettings/setWebPubTextAlign">;
428
443
  declare const setWebPubTextNormalization: _reduxjs_toolkit.ActionCreatorWithPayload<any, "webPubSettings/setWebPubTextNormalization">;
444
+ declare const setWebPubNoRuby: _reduxjs_toolkit.ActionCreatorWithPayload<any, "webPubSettings/setWebPubNoRuby">;
429
445
  declare const setWebPubWordSpacing: _reduxjs_toolkit.ActionCreatorWithPayload<any, "webPubSettings/setWebPubWordSpacing">;
430
446
  declare const setWebPubZoom: _reduxjs_toolkit.ActionCreatorWithPayload<any, "webPubSettings/setWebPubZoom">;
431
447
 
@@ -558,6 +574,7 @@ type RootState = {
558
574
  actions: ActionsReducerState;
559
575
  publication: PublicationReducerState;
560
576
  preferences: PreferencesReducerState;
577
+ globalPreferences: GlobalPreferencesReducerState;
561
578
  webPubSettings: WebPubSettingsReducerState;
562
579
  audioSettings: AudioSettingsState;
563
580
  player: PlayerReducerState;
@@ -589,8 +606,20 @@ declare class ThReduxPreferencesAdapter<T extends CustomizableKeys = Customizabl
589
606
  private notifyListeners;
590
607
  }
591
608
 
609
+ declare class ThReduxGlobalPreferencesAdapter implements ThGlobalPreferencesAdapter {
610
+ private store;
611
+ private listeners;
612
+ private currentPreferences;
613
+ constructor(store: Store<AppState>, initialPreferences?: ThGlobalPreferences);
614
+ getPreferences(): ThGlobalPreferences;
615
+ setPreferences(prefs: ThGlobalPreferences): void;
616
+ subscribe(callback: (prefs: ThGlobalPreferences) => void): void;
617
+ unsubscribe(callback: (prefs: ThGlobalPreferences) => void): void;
618
+ private notifyListeners;
619
+ }
620
+
592
621
  declare const useAppDispatch: () => AppDispatch;
593
622
  declare const useAppSelector: TypedUseSelectorHook<RootState>;
594
623
  declare const useAppStore: () => AppStore;
595
624
 
596
- export { ActionsReducerState, type AdjacentTimelineItem, type AppDispatch, type AppState, type AppStore, type AudioSettingsState, FontFamilyStateObject, type L10nObject, type PaginatedAffordanceObject, type PaginatedAffordancePayload, type PaginatedAffordanceProperties, type PlayerReducerState, type PlayerStatus, type PreferencesReducerState, type PublicationReducerState, type ReaderProfile, type ReaderReducerState, type RemotePlaybackState, type RenditionChangePayload, type RenditionObject, type RenditionProperties, type RootState, type SeekableRange, SetFontFamilyPayload, SetSpacingPresetPayload, SettingsReducerState, type SleepTimerState, SpacingStateKey, SpacingStateObject, ThReduxPreferencesAdapter, ThStoreProvider, type ThemeReducerState, type ThemeStateChangePayload, type ThemeStateObject, type UIChangePayload, type WebPubSettingsReducerState, audioSettingsSlice, initialWebPubSettingsState, makeStore, playerSlice, preferencesSlice, publicationSlice, readerSlice, setAdjacentTimelineItems, setAutoPlay, setBreakpoint, setColorScheme, setContrast, setCoverTheme, setDirection, setEnableMediaSession, setFXL, setFontLanguage, setForcedColors, setFullscreen, setHasArrows, setHasDisplayTransformability, setHovering, setImmersive, setL10n, setLoading, setMonochrome, setPaginatedAffordance, setPlatformModifier, setPlaybackRate, setPollInterval, setPositionsList, setPreservePitch, setProgressionFormat, setPublicationEnd, setPublicationStart, setRTL, setReaderProfile, setReducedMotion, setReducedTransparency, setRemotePlaybackState, setRunningHeadFormat, setScrollAffordance, setScrollAffordances, setSeekableRanges, setSeeking, setSettingsContainer, setSkipBackwardInterval, setSkipForwardInterval, setSkipInterval, setSleepTimerOnFragmentEnd, setSleepTimerOnTrackEnd, setSleepTimerRemainingSeconds, setStalled, setStatus, setTheme, setTimeline, setTocEntry, setTocTree, setTrackReady, setUI, setUserNavigated, setVolume, setWebPubFontFamily, setWebPubFontWeight, setWebPubHyphens, setWebPubLetterSpacing, setWebPubLineHeight, setWebPubParagraphIndent, setWebPubParagraphSpacing, setWebPubPublisherStyles, setWebPubSpacingPreset, setWebPubTextAlign, setWebPubTextNormalization, setWebPubWordSpacing, setWebPubZoom, themeSlice, toggleImmersive, updateFromPreferences, useAppDispatch, useAppSelector, useAppStore, webPubSettingsSlice };
625
+ export { ActionsReducerState, type AdjacentTimelineItem, type AppDispatch, type AppState, type AppStore, type AudioSettingsState, FontFamilyStateObject, type GlobalPreferencesReducerState, type PaginatedAffordanceObject, type PaginatedAffordancePayload, type PaginatedAffordanceProperties, type PlayerReducerState, type PlayerStatus, type PreferencesReducerState, type PublicationReducerState, type ReaderProfile, type ReaderReducerState, type RemotePlaybackState, type RenditionChangePayload, type RenditionObject, type RenditionProperties, type RootState, type SeekableRange, SetFontFamilyPayload, SetSpacingPresetPayload, SettingsReducerState, type SleepTimerState, SpacingStateKey, SpacingStateObject, ThReduxGlobalPreferencesAdapter, ThReduxPreferencesAdapter, ThStoreProvider, type ThemeReducerState, type ThemeStateChangePayload, type ThemeStateObject, type UIChangePayload, type WebPubSettingsReducerState, audioSettingsSlice, globalPreferencesSlice, initialWebPubSettingsState, makeStore, playerSlice, preferencesSlice, publicationSlice, readerSlice, setAdjacentTimelineItems, setAutoPlay, setBreakpoint, setColorScheme, setContrast, setCoverTheme, setDirection, setEnableMediaSession, setFXL, setFontLanguage, setForcedColors, setFullscreen, setHasArrows, setHasDisplayTransformability, setHovering, setImmersive, setLoading, setLocale, setMonochrome, setPaginatedAffordance, setPlatformModifier, setPlaybackRate, setPollInterval, setPositionsList, setPreservePitch, setProgressionFormat, setPublicationEnd, setPublicationStart, setRTL, setReaderProfile, setReducedMotion, setReducedTransparency, setRemotePlaybackState, setRunningHeadFormat, setScriptMode, setScrollAffordance, setScrollAffordances, setSeekableRanges, setSeeking, setSettingsContainer, setSkipBackwardInterval, setSkipForwardInterval, setSkipInterval, setSleepTimerOnFragmentEnd, setSleepTimerOnTrackEnd, setSleepTimerRemainingSeconds, setStalled, setStatus, setTheme, setTimeline, setTocEntry, setTocTree, setTrackReady, setUI, setUserNavigated, setVolume, setWebPubFontFamily, setWebPubFontWeight, setWebPubHyphens, setWebPubLetterSpacing, setWebPubLigatures, setWebPubLineHeight, setWebPubNoRuby, setWebPubParagraphIndent, setWebPubParagraphSpacing, setWebPubPublisherStyles, setWebPubSpacingPreset, setWebPubTextAlign, setWebPubTextNormalization, setWebPubWordSpacing, setWebPubZoom, themeSlice, toggleImmersive, updateFromPreferences, useAppDispatch, useAppSelector, useAppStore, webPubSettingsSlice };
@@ -1,7 +1,8 @@
1
- export { ThReduxPreferencesAdapter, ThStoreProvider, actionsSlice, activateDockPanel, audioSettingsSlice, collapseDockPanel, deactivateDockPanel, dockAction, expandDockPanel, handleSpacingSetting, initialSettingsState, initialWebPubSettingsState, makeStore, playerSlice, preferencesSlice, publicationSlice, readerSlice, setActionOpen, setAdjacentTimelineItems, setAutoPlay, setBreakpoint, setColorScheme, setColumnCount, setContrast, setCoverTheme, setDirection, setDockPanelWidth, setEnableMediaSession, setFXL, setFontFamily, setFontLanguage, setFontSize, setFontWeight, setForcedColors, setFullscreen, setHasArrows, setHasDisplayTransformability, setHovering, setHyphens, setImmersive, setL10n, setLetterSpacing, setLineHeight, setLineLength, setLoading, setMonochrome, setOverflow, setPaginatedAffordance, setParagraphIndent, setParagraphSpacing, setPlatformModifier, setPlaybackRate, setPollInterval, setPositionsList, setPreservePitch, setProgressionFormat, setPublicationEnd, setPublicationStart, setPublisherStyles, setRTL, setReaderProfile, setReducedMotion, setReducedTransparency, setRemotePlaybackState, setRunningHeadFormat, setScroll, setScrollAffordance, setScrollAffordances, setSeekableRanges, setSeeking, setSettingsContainer, setSkipBackwardInterval, setSkipForwardInterval, setSkipInterval, setSleepTimerOnFragmentEnd, setSleepTimerOnTrackEnd, setSleepTimerRemainingSeconds, setSpacingPreset, setStalled, setStatus, setTextAlign, setTextNormalization, setTheme, setTimeline, setTocEntry, setTocTree, setTrackReady, setUI, setUserNavigated, setVolume, setWebPubFontFamily, setWebPubFontWeight, setWebPubHyphens, setWebPubLetterSpacing, setWebPubLineHeight, setWebPubParagraphIndent, setWebPubParagraphSpacing, setWebPubPublisherStyles, setWebPubSpacingPreset, setWebPubTextAlign, setWebPubTextNormalization, setWebPubWordSpacing, setWebPubZoom, setWordSpacing, settingsSlice, themeSlice, toggleActionOpen, toggleImmersive, updateFromPreferences, useAppDispatch, useAppSelector, useAppStore, webPubSettingsSlice } from '../chunk-YZ3KCMKY.mjs';
1
+ export { ThReduxGlobalPreferencesAdapter, ThReduxPreferencesAdapter, ThStoreProvider, actionsSlice, activateDockPanel, audioSettingsSlice, collapseDockPanel, deactivateDockPanel, dockAction, expandDockPanel, globalPreferencesSlice, handleSpacingSetting, initialSettingsState, initialWebPubSettingsState, makeStore, playerSlice, preferencesSlice, publicationSlice, readerSlice, setActionOpen, setAdjacentTimelineItems, setAutoPlay, setBreakpoint, setColorScheme, setColumnCount, setContrast, setCoverTheme, setDirection, setDockPanelWidth, setEnableMediaSession, setFXL, setFontFamily, setFontLanguage, setFontSize, setFontWeight, setForcedColors, setFullscreen, setHasArrows, setHasDisplayTransformability, setHovering, setHyphens, setImmersive, setLetterSpacing, setLigatures, setLineHeight, setLineLength, setLoading, setLocale, setMonochrome, setNoRuby, setOverflow, setPaginatedAffordance, setParagraphIndent, setParagraphSpacing, setPlatformModifier, setPlaybackRate, setPollInterval, setPositionsList, setPreservePitch, setProgressionFormat, setPublicationEnd, setPublicationStart, setPublisherStyles, setRTL, setReaderProfile, setReducedMotion, setReducedTransparency, setRemotePlaybackState, setRunningHeadFormat, setScriptMode, setScroll, setScrollAffordance, setScrollAffordances, setSeekableRanges, setSeeking, setSettingsContainer, setSkipBackwardInterval, setSkipForwardInterval, setSkipInterval, setSleepTimerOnFragmentEnd, setSleepTimerOnTrackEnd, setSleepTimerRemainingSeconds, setSpacingPreset, setStalled, setStatus, setTextAlign, setTextNormalization, setTheme, setTimeline, setTocEntry, setTocTree, setTrackReady, setUI, setUserNavigated, setVolume, setWebPubFontFamily, setWebPubFontWeight, setWebPubHyphens, setWebPubLetterSpacing, setWebPubLigatures, setWebPubLineHeight, setWebPubNoRuby, setWebPubParagraphIndent, setWebPubParagraphSpacing, setWebPubPublisherStyles, setWebPubSpacingPreset, setWebPubTextAlign, setWebPubTextNormalization, setWebPubWordSpacing, setWebPubZoom, setWordSpacing, settingsSlice, themeSlice, toggleActionOpen, toggleImmersive, updateFromPreferences, webPubSettingsSlice } from '../chunk-WLVE3WNW.mjs';
2
2
  import '../chunk-TEZB4ULX.mjs';
3
- import '../chunk-NQ2ZSGCX.mjs';
3
+ export { useAppDispatch, useAppSelector, useAppStore } from '../chunk-A575ZW4A.mjs';
4
4
  import '../chunk-5LUMM7FW.mjs';
5
+ import '../chunk-NQ2ZSGCX.mjs';
5
6
  import '../chunk-3GDQP6AS.mjs';
6
7
  //# sourceMappingURL=index.mjs.map
7
8
  //# sourceMappingURL=index.mjs.map
@@ -120,12 +120,15 @@
120
120
  "progression": {
121
121
  "percentage": "{{ percentage }}%",
122
122
  "positionsLeft": {
123
+ "descriptive_one": "",
123
124
  "descriptive_other": "{{ count }} tilbage"
124
125
  },
125
126
  "positionsLeftInChapter": {
127
+ "descriptive_one": "",
126
128
  "descriptive_other": "{{ count }} tilbage i nuværende kapitel"
127
129
  },
128
130
  "positionsLeftInPublication": {
131
+ "descriptive_one": "",
129
132
  "descriptive_other": "{{ count }} tilbage i bogen"
130
133
  },
131
134
  "range": "{{ start }}–{{ end }}",
@@ -83,7 +83,7 @@
83
83
  }
84
84
  },
85
85
  "emptyState": {
86
- "description": "No bookmarks added yet.",
86
+ "description": "New bookmarks added while reading will show up in this list.",
87
87
  "title": "No bookmarks"
88
88
  },
89
89
  "title": "Bookmarks"
@@ -202,6 +202,10 @@
202
202
  "title": "Layout"
203
203
  },
204
204
  "letterSpacing": "Letter spacing",
205
+ "ligatures": {
206
+ "label": "Enable ligatures",
207
+ "title": "Ligatures"
208
+ },
205
209
  "lineHeight": {
206
210
  "default": "Default",
207
211
  "large": "Loose",
@@ -209,6 +213,10 @@
209
213
  "small": "Tight",
210
214
  "title": "Line height"
211
215
  },
216
+ "noRuby": {
217
+ "label": "Hide ruby annotations",
218
+ "title": "Ruby annotations"
219
+ },
212
220
  "offsetFirstPage": "Display first page on its own",
213
221
  "paragraphIndent": "Paragraph indent",
214
222
  "paragraphSpacing": "Paragraph spacing",
@@ -321,9 +329,23 @@
321
329
  "descriptive": "{{ x }} of {{ y }} ({{ z }})"
322
330
  }
323
331
  },
332
+ "search": {
333
+ "actions": {
334
+ "next": {
335
+ "compact": "Next result"
336
+ },
337
+ "previous": {
338
+ "compact": "Previous result"
339
+ }
340
+ },
341
+ "placeholder": "Search for keywords or phrases",
342
+ "result_one": "{{ current }} of {{ count }} result",
343
+ "result_other": "{{ current }} of {{ count }} results",
344
+ "title": "Search"
345
+ },
324
346
  "tableOfContents": {
325
347
  "emptyState": {
326
- "description": "The table of contents was not provided for this publication.",
348
+ "description": "A table of contents was not provided by the author.",
327
349
  "title": "No table of contents"
328
350
  },
329
351
  "title": "Table of contents"
@@ -68,7 +68,7 @@
68
68
  "fullscreen": {
69
69
  "tooltip": "Fullscreen",
70
70
  "trigger": "Toggle fullscreen mode",
71
- "close": "Exit fullscreen mode"
71
+ "close": "Exit fullscreen mode"
72
72
  },
73
73
  "toc": {
74
74
  "entries": "Entries in the table"
@@ -127,4 +127,4 @@
127
127
  }
128
128
  }
129
129
  }
130
- }
130
+ }