@edrlab/thorium-web 1.3.1 → 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.
- package/dist/{ThPreferencesAdapter-D0rzsGRl.d.mts → ThPreferencesAdapter-L1H6gzmu.d.mts} +23 -6
- package/dist/{ThSettingsWrapper-BXuRgdqp.d.mts → ThSettingsWrapper-DWEA4hYF.d.mts} +1 -1
- package/dist/{actions-BLAr0oaM.d.mts → actions-BjeRjaJU.d.mts} +1 -1
- package/dist/{actionsReducer-XWTGGNUd.d.mts → actionsReducer-B32cq2mB.d.mts} +1 -1
- package/dist/{chunk-L4XGZAZ5.mjs → chunk-2YRT7RNW.mjs} +20 -3
- package/dist/chunk-2YRT7RNW.mjs.map +1 -0
- package/dist/{chunk-6BUN7DEA.mjs → chunk-6MONB2DN.mjs} +63 -56
- package/dist/chunk-6MONB2DN.mjs.map +1 -0
- package/dist/chunk-A575ZW4A.mjs +10 -0
- package/dist/chunk-A575ZW4A.mjs.map +1 -0
- package/dist/chunk-AE6P4KJB.mjs +13 -0
- package/dist/chunk-AE6P4KJB.mjs.map +1 -0
- package/dist/{chunk-2ORXUOH3.mjs → chunk-IVXRCKWR.mjs} +4 -4
- package/dist/{chunk-2ORXUOH3.mjs.map → chunk-IVXRCKWR.mjs.map} +1 -1
- package/dist/{chunk-I4BKU5NN.mjs → chunk-KVUG6BNI.mjs} +90 -26
- package/dist/chunk-KVUG6BNI.mjs.map +1 -0
- package/dist/{chunk-6EHFW43Y.mjs → chunk-NUXGQWED.mjs} +4 -3
- package/dist/chunk-NUXGQWED.mjs.map +1 -0
- package/dist/{chunk-DETZMFZ7.mjs → chunk-P6ILEQ5P.mjs} +24 -26
- package/dist/chunk-P6ILEQ5P.mjs.map +1 -0
- package/dist/{chunk-LP3JFZ4A.mjs → chunk-PXXWEMNL.mjs} +666 -430
- package/dist/chunk-PXXWEMNL.mjs.map +1 -0
- package/dist/{chunk-SAUOY37Q.mjs → chunk-QUSGPT5M.mjs} +11 -12
- package/dist/chunk-QUSGPT5M.mjs.map +1 -0
- package/dist/{chunk-A3FZBEUL.mjs → chunk-SZAVAQ6S.mjs} +30 -6
- package/dist/chunk-SZAVAQ6S.mjs.map +1 -0
- package/dist/{chunk-NKO3K3QS.mjs → chunk-T5ENYSDJ.mjs} +5 -5
- package/dist/chunk-T5ENYSDJ.mjs.map +1 -0
- package/dist/{chunk-DMZFSOHK.mjs → chunk-TSLTLQ6O.mjs} +125 -40
- package/dist/chunk-TSLTLQ6O.mjs.map +1 -0
- package/dist/{chunk-ITDBOMY5.mjs → chunk-VENFFPK2.mjs} +3 -3
- package/dist/{chunk-ITDBOMY5.mjs.map → chunk-VENFFPK2.mjs.map} +1 -1
- package/dist/{chunk-EZG6SBSO.mjs → chunk-WLVE3WNW.mjs} +95 -25
- package/dist/chunk-WLVE3WNW.mjs.map +1 -0
- package/dist/chunk-XRFLDNAY.mjs +3913 -0
- package/dist/chunk-XRFLDNAY.mjs.map +1 -0
- package/dist/components/Audio/index.d.mts +12 -12
- package/dist/components/Audio/index.mjs +15 -15
- package/dist/components/Epub/index.css +3 -3
- package/dist/components/Epub/index.css.map +1 -1
- package/dist/components/Epub/index.d.mts +12 -12
- package/dist/components/Epub/index.mjs +16 -16
- package/dist/components/Misc/index.mjs +4 -4
- package/dist/components/Reader/index.css +3 -3
- package/dist/components/Reader/index.css.map +1 -1
- package/dist/components/Reader/index.d.mts +11 -11
- package/dist/components/Reader/index.mjs +26 -24
- package/dist/components/Reader/index.mjs.map +1 -1
- package/dist/components/WebPub/index.css +3 -3
- package/dist/components/WebPub/index.css.map +1 -1
- package/dist/components/WebPub/index.d.mts +12 -12
- package/dist/components/WebPub/index.mjs +16 -16
- package/dist/core/Components/index.d.mts +11 -21
- package/dist/core/Components/index.mjs +1 -1
- package/dist/core/Helpers/index.d.mts +1 -1
- package/dist/core/Helpers/index.mjs +2 -3
- package/dist/core/Hooks/index.d.mts +12 -8
- package/dist/core/Hooks/index.mjs +1 -1
- package/dist/i18n/index.mjs +3 -6
- package/dist/lib/index.d.mts +49 -20
- package/dist/lib/index.mjs +3 -2
- package/dist/locales/da/thorium-shared.json +3 -0
- package/dist/locales/en/thorium-shared.json +24 -2
- package/dist/locales/en/thorium-web.json +2 -2
- package/dist/locales/es/thorium-shared.json +364 -0
- package/dist/locales/es/thorium-web.json +130 -0
- package/dist/locales/et/thorium-shared.json +121 -9
- package/dist/locales/et/thorium-web.json +32 -1
- package/dist/locales/fi/thorium-shared.json +42 -4
- package/dist/locales/fi/thorium-web.json +36 -2
- package/dist/locales/fr/thorium-shared.json +108 -1
- package/dist/locales/fr/thorium-web.json +121 -86
- package/dist/locales/it/thorium-shared.json +108 -1
- package/dist/locales/it/thorium-web.json +15 -2
- package/dist/locales/lt/thorium-web.json +10 -1
- package/dist/locales/pl/thorium-web.json +1 -1
- package/dist/locales/pt-BR/thorium-shared.json +6 -0
- package/dist/locales/pt-BR/thorium-web.json +88 -88
- package/dist/locales/pt-PT/thorium-shared.json +91 -0
- package/dist/locales/pt-PT/thorium-web.json +15 -3
- package/dist/locales/sv/thorium-shared.json +108 -2
- package/dist/locales/sv/thorium-web.json +15 -3
- package/dist/locales/tr/thorium-shared.json +42 -0
- package/dist/preferences/index.d.mts +59 -13
- package/dist/preferences/index.mjs +6 -6
- package/dist/{settingsReducer-Bu1zeveu.d.mts → settingsReducer-DLaT2wUB.d.mts} +14 -2
- package/dist/{ui-nBv8gfr0.d.mts → ui-DnZZhozX.d.mts} +1 -1
- package/dist/{useAudioNavigator-C5aW4-eT.d.mts → useAudioNavigator-CWXyNWq1.d.mts} +3 -1
- package/dist/{useContrast-2t429O9O.d.mts → useContrast-Bo7cDw_X.d.mts} +5 -1
- package/dist/{usePreferences-VaBf46eP.d.mts → usePreferences-D8NU1yhP.d.mts} +6 -8
- package/dist/{useReaderTransitions-IBGdE7qi.d.mts → useReaderTransitions-BQGzKeY2.d.mts} +61 -10
- package/package.json +10 -9
- package/dist/chunk-6BUN7DEA.mjs.map +0 -1
- package/dist/chunk-6EHFW43Y.mjs.map +0 -1
- package/dist/chunk-7CGMWOZN.mjs +0 -20
- package/dist/chunk-7CGMWOZN.mjs.map +0 -1
- package/dist/chunk-A3FZBEUL.mjs.map +0 -1
- package/dist/chunk-DETZMFZ7.mjs.map +0 -1
- package/dist/chunk-DMZFSOHK.mjs.map +0 -1
- package/dist/chunk-DTPO3J2C.mjs +0 -1732
- package/dist/chunk-DTPO3J2C.mjs.map +0 -1
- package/dist/chunk-EZG6SBSO.mjs.map +0 -1
- package/dist/chunk-GPWW5OML.mjs +0 -1955
- package/dist/chunk-GPWW5OML.mjs.map +0 -1
- package/dist/chunk-I4BKU5NN.mjs.map +0 -1
- package/dist/chunk-L4XGZAZ5.mjs.map +0 -1
- package/dist/chunk-LP3JFZ4A.mjs.map +0 -1
- package/dist/chunk-NKO3K3QS.mjs.map +0 -1
- package/dist/chunk-SAUOY37Q.mjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { B as BreakpointsMap,
|
|
2
|
-
import { T as ThLineHeightOptions, c as ThTextAlignOptions } from '../../useContrast-
|
|
3
|
-
export { e as ThColorScheme, f as ThContrast, u as useColorScheme, k as useContrast } from '../../useContrast-
|
|
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-
|
|
7
|
-
import { F as FontFamilyStateObject, L as LineLengthStateObject } from '../../settingsReducer-
|
|
8
|
-
import '../../actions-
|
|
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-
|
|
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';
|
package/dist/i18n/index.mjs
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
export { ThI18nProvider, Trans } from '../chunk-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { ThI18nProvider, Trans } from '../chunk-T5ENYSDJ.mjs';
|
|
2
|
+
import '../chunk-AE6P4KJB.mjs';
|
|
3
|
+
export { DEFAULT_CONFIG, i18n, initI18n, useI18n } from '../chunk-NUXGQWED.mjs';
|
|
4
4
|
import '../chunk-B3WDMWCT.mjs';
|
|
5
|
-
import '../chunk-MLEYTQGK.mjs';
|
|
6
|
-
import '../chunk-L4XGZAZ5.mjs';
|
|
7
|
-
import '../chunk-5LUMM7FW.mjs';
|
|
8
5
|
import '../chunk-3GDQP6AS.mjs';
|
|
9
6
|
//# sourceMappingURL=index.mjs.map
|
|
10
7
|
//# sourceMappingURL=index.mjs.map
|
package/dist/lib/index.d.mts
CHANGED
|
@@ -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-
|
|
7
|
-
import {
|
|
8
|
-
import { F as FontFamilyStateObject, e as SpacingStateObject, S as SetFontFamilyPayload, c as SetSpacingPresetPayload, d as SpacingStateKey, f as SettingsReducerState } from '../settingsReducer-
|
|
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,
|
|
10
|
-
import { a as ThemeTokens, d as ThPreferences, C as CustomizableKeys, c as ThPreferencesAdapter } from '../ThPreferencesAdapter-
|
|
11
|
-
import { m as ActionsReducerState } from '../actionsReducer-
|
|
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-
|
|
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-
|
|
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
|
|
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 };
|
package/dist/lib/index.mjs
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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": "
|
|
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": "
|
|
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
|
+
}
|