@edrlab/thorium-web 1.4.1 → 1.5.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 (74) hide show
  1. package/dist/{ThPreferencesAdapter-_5AePKHa.d.mts → ThPreferencesAdapter-B3a-f5v-.d.mts} +22 -17
  2. package/dist/{ThSettingsWrapper-B_9klYXH.d.mts → ThSettingsWrapper-DtzcwzYX.d.mts} +4 -4
  3. package/dist/{actions-CuRRM3rp.d.mts → actions-C33UN3Ji.d.mts} +14 -3
  4. package/dist/{actionsReducer-VFR42qgL.d.mts → actionsReducer-Bzcj3wk3.d.mts} +1 -1
  5. package/dist/{chunk-WF2UOYO7.mjs → chunk-2T65MDBR.mjs} +3 -3
  6. package/dist/{chunk-WF2UOYO7.mjs.map → chunk-2T65MDBR.mjs.map} +1 -1
  7. package/dist/{chunk-RBEPH5E5.mjs → chunk-63LKYJFG.mjs} +50 -50
  8. package/dist/chunk-63LKYJFG.mjs.map +1 -0
  9. package/dist/{chunk-SI4FBFHM.mjs → chunk-BBCSLDQT.mjs} +132 -78
  10. package/dist/chunk-BBCSLDQT.mjs.map +1 -0
  11. package/dist/{chunk-E2JEGVVE.mjs → chunk-BCXKBHU3.mjs} +28 -10
  12. package/dist/chunk-BCXKBHU3.mjs.map +1 -0
  13. package/dist/{chunk-SZAVAQ6S.mjs → chunk-GRYEOCGD.mjs} +8 -5
  14. package/dist/chunk-GRYEOCGD.mjs.map +1 -0
  15. package/dist/{chunk-MSHUPSBI.mjs → chunk-KJ55Q63A.mjs} +173 -75
  16. package/dist/chunk-KJ55Q63A.mjs.map +1 -0
  17. package/dist/{chunk-44PEO3DS.mjs → chunk-KOR74F6M.mjs} +9 -41
  18. package/dist/chunk-KOR74F6M.mjs.map +1 -0
  19. package/dist/{chunk-YEVLT3AV.mjs → chunk-PAFJZH7O.mjs} +3 -3
  20. package/dist/{chunk-YEVLT3AV.mjs.map → chunk-PAFJZH7O.mjs.map} +1 -1
  21. package/dist/{chunk-OD75GC5N.mjs → chunk-PRQBFBJ7.mjs} +73 -46
  22. package/dist/chunk-PRQBFBJ7.mjs.map +1 -0
  23. package/dist/{chunk-KGSFTRCH.mjs → chunk-Y5X74VW7.mjs} +44 -116
  24. package/dist/chunk-Y5X74VW7.mjs.map +1 -0
  25. package/dist/{chunk-ETLIGONP.mjs → chunk-ZD4LTF6G.mjs} +2 -2
  26. package/dist/chunk-ZD4LTF6G.mjs.map +1 -0
  27. package/dist/components/Audio/index.css +10 -0
  28. package/dist/components/Audio/index.css.map +1 -1
  29. package/dist/components/Audio/index.d.mts +12 -11
  30. package/dist/components/Audio/index.mjs +7 -7
  31. package/dist/components/Epub/index.css +10 -0
  32. package/dist/components/Epub/index.css.map +1 -1
  33. package/dist/components/Epub/index.d.mts +12 -11
  34. package/dist/components/Epub/index.mjs +8 -8
  35. package/dist/components/Misc/index.mjs +2 -2
  36. package/dist/components/Reader/index.css +10 -0
  37. package/dist/components/Reader/index.css.map +1 -1
  38. package/dist/components/Reader/index.d.mts +11 -10
  39. package/dist/components/Reader/index.mjs +14 -14
  40. package/dist/components/Reader/index.mjs.map +1 -1
  41. package/dist/components/WebPub/index.css +10 -0
  42. package/dist/components/WebPub/index.css.map +1 -1
  43. package/dist/components/WebPub/index.d.mts +12 -11
  44. package/dist/components/WebPub/index.mjs +8 -8
  45. package/dist/core/Components/index.d.mts +6 -5
  46. package/dist/core/Components/index.mjs +1 -1
  47. package/dist/core/Helpers/index.d.mts +1 -1
  48. package/dist/core/Helpers/index.mjs +1 -1
  49. package/dist/core/Hooks/index.d.mts +6 -5
  50. package/dist/core/Hooks/index.mjs +1 -1
  51. package/dist/keyboardUtilities-BCP3UcLb.d.mts +30 -0
  52. package/dist/lib/index.d.mts +9 -8
  53. package/dist/lib/index.mjs +2 -2
  54. package/dist/locales/he/thorium-web.json +9 -0
  55. package/dist/locales/it/thorium-web.json +22 -0
  56. package/dist/locales/sv/thorium-web.json +22 -0
  57. package/dist/preferences/index.d.mts +14 -23
  58. package/dist/preferences/index.mjs +2 -2
  59. package/dist/{settingsReducer-VqBhLq50.d.mts → settingsReducer-Pp9aoiiC.d.mts} +1 -1
  60. package/dist/{useAudioNavigator-CWXyNWq1.d.mts → useAudioNavigator-pGwxhXLj.d.mts} +4 -1
  61. package/dist/{useContrast-Cbso7N1l.d.mts → useContrast-Bl08zDTU.d.mts} +2 -7
  62. package/dist/{usePreferences-9ZvbcbLW.d.mts → usePreferences-Cy7-JN2x.d.mts} +4 -8
  63. package/dist/{useReaderTransitions-0hKGCvMm.d.mts → useReaderTransitions-Zvomj9RQ.d.mts} +27 -19
  64. package/package.json +7 -7
  65. package/dist/chunk-44PEO3DS.mjs.map +0 -1
  66. package/dist/chunk-E2JEGVVE.mjs.map +0 -1
  67. package/dist/chunk-ETLIGONP.mjs.map +0 -1
  68. package/dist/chunk-KGSFTRCH.mjs.map +0 -1
  69. package/dist/chunk-MSHUPSBI.mjs.map +0 -1
  70. package/dist/chunk-OD75GC5N.mjs.map +0 -1
  71. package/dist/chunk-RBEPH5E5.mjs.map +0 -1
  72. package/dist/chunk-SI4FBFHM.mjs.map +0 -1
  73. package/dist/chunk-SZAVAQ6S.mjs.map +0 -1
  74. package/dist/keyboardUtilities-BWAyLS_D.d.mts +0 -56
@@ -1,8 +1,8 @@
1
- import { a as ActionStateObject } from '../../actionsReducer-VFR42qgL.mjs';
2
- import { T as ThDockingKeys } from '../../actions-CuRRM3rp.mjs';
3
- export { C as CollapsiblePref, h as ThActionEntry, v as ThActionsBar, i as ThActionsBarProps, t as ThActionsTriggerVariant, d as ThCollapsibility, s as ThCollapsibilityVisibility, u as useCollapsibility } from '../../actions-CuRRM3rp.mjs';
4
- import { T as ThActionButtonProps, W as WithRef, H as HTMLAttributesWithRef } from '../../ThSettingsWrapper-B_9klYXH.mjs';
5
- export { d as THMenuProps, c as ThActionButton, b as ThCollapsibleActionsBar, a as ThCollapsibleActionsBarProps, u as ThDropdown, s as ThDropdownEntry, t as ThDropdownProps, e as ThMenu, g as ThMenuItem, f as ThMenuItemProps, i as ThNumberField, h as ThNumberFieldProps, l as ThRadioGroup, j as ThRadioGroupItems, k as ThRadioGroupProps, v as ThSettingsEntry, w as ThSettingsPrefs, y as ThSettingsWrapper, x as ThSettingsWrapperProps, n as ThSlider, m as ThSliderProps, p as ThSliderWithPresets, o as ThSliderWithPresetsProps, r as ThSwitch, q as ThSwitchProps } from '../../ThSettingsWrapper-B_9klYXH.mjs';
1
+ import { a as ActionStateObject } from '../../actionsReducer-Bzcj3wk3.mjs';
2
+ import { T as ThDockingKeys } from '../../actions-C33UN3Ji.mjs';
3
+ export { C as CollapsiblePref, h as ThActionEntry, x as ThActionsBar, i as ThActionsBarProps, w as ThActionsTriggerVariant, d as ThCollapsibility, u as ThCollapsibilityVisibility, v as useCollapsibility } from '../../actions-C33UN3Ji.mjs';
4
+ import { T as ThActionButtonProps, W as WithRef, H as HTMLAttributesWithRef } from '../../ThSettingsWrapper-DtzcwzYX.mjs';
5
+ export { d as THMenuProps, c as ThActionButton, b as ThCollapsibleActionsBar, a as ThCollapsibleActionsBarProps, u as ThDropdown, s as ThDropdownEntry, t as ThDropdownProps, e as ThMenu, g as ThMenuItem, f as ThMenuItemProps, i as ThNumberField, h as ThNumberFieldProps, l as ThRadioGroup, j as ThRadioGroupItems, k as ThRadioGroupProps, v as ThSettingsEntry, w as ThSettingsPrefs, y as ThSettingsWrapper, x as ThSettingsWrapperProps, n as ThSlider, m as ThSliderProps, p as ThSliderWithPresets, o as ThSliderWithPresetsProps, r as ThSwitch, q as ThSwitchProps } from '../../ThSettingsWrapper-DtzcwzYX.mjs';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { ButtonProps, SliderProps, SliderTrackProps, SliderThumbProps, HeadingProps, PopoverProps, DialogProps, ModalOverlayProps, FormProps, Button, NumberFieldProps, LabelProps, InputProps, FieldErrorProps, TextFieldProps, ValidationResult, SearchFieldProps, LinkProps, TooltipProps } from 'react-aria-components';
8
8
  import { PositionProps, OverlayContainerProps, AriaOverlayProps, TooltipTriggerProps } from 'react-aria';
@@ -11,6 +11,7 @@ import { SheetRef, Sheet } from 'react-modal-sheet';
11
11
  import '@reduxjs/toolkit';
12
12
  import '../../immer.d-CoRThNOF.mjs';
13
13
  import '../../ui-DnZZhozX.mjs';
14
+ import '@readium/navigator-html-injectables';
14
15
 
15
16
  declare const ThCloseButton: ({ label, ref, compounds, children, ...props }: ThActionButtonProps) => react_jsx_runtime.JSX.Element;
16
17
 
@@ -1,4 +1,4 @@
1
- export { ThActionButton, ThActionsBar, ThActionsTriggerVariant, ThAudioProgress, ThBackArrow, ThBottomSheet, ThCloseButton, ThCollapsibleActionsBar, ThContainerBody, ThContainerHeader, ThContainerHeaderWithClose, ThContainerHeaderWithPrevious, ThDeleteButton, ThDockedPanel, ThDragIndicatorButton, ThDropdown, ThDropdownButton, ThFooter, ThForm, ThFormNumberField, ThFormSearchField, ThFormTextField, ThGrid, ThHeader, ThHome, ThInteractiveOverlay, ThLibrary, ThLink, ThLoader, ThMenu, ThMenuButton, ThMenuItem, ThModal, ThNavigationButton, ThNumberField, ThPagination, ThPopover, ThRadioGroup, ThRunningHead, ThSettingsResetButton, ThSettingsWrapper, ThSettingsWrapperButton, ThSlider, ThSliderWithPresets, ThSwitch, ThTypedComponentRenderer, useActionComponentStatus, useActions, useFirstFocusable } from '../../chunk-ETLIGONP.mjs';
1
+ export { ThActionButton, ThActionsBar, ThActionsTriggerVariant, ThAudioProgress, ThBackArrow, ThBottomSheet, ThCloseButton, ThCollapsibleActionsBar, ThContainerBody, ThContainerHeader, ThContainerHeaderWithClose, ThContainerHeaderWithPrevious, ThDeleteButton, ThDockedPanel, ThDragIndicatorButton, ThDropdown, ThDropdownButton, ThFooter, ThForm, ThFormNumberField, ThFormSearchField, ThFormTextField, ThGrid, ThHeader, ThHome, ThInteractiveOverlay, ThLibrary, ThLink, ThLoader, ThMenu, ThMenuButton, ThMenuItem, ThModal, ThNavigationButton, ThNumberField, ThPagination, ThPopover, ThRadioGroup, ThRunningHead, ThSettingsResetButton, ThSettingsWrapper, ThSettingsWrapperButton, ThSlider, ThSliderWithPresets, ThSwitch, ThTypedComponentRenderer, useActionComponentStatus, useActions, useFirstFocusable } from '../../chunk-ZD4LTF6G.mjs';
2
2
  import '../../chunk-YZ73DHRU.mjs';
3
3
  export { ThCollapsibilityVisibility, useCollapsibility } from '../../chunk-AQSJDL63.mjs';
4
4
  import '../../chunk-3GDQP6AS.mjs';
@@ -1,5 +1,5 @@
1
1
  import { B as BreakpointsMap, i as ThProgressionFormat } from '../../ui-DnZZhozX.mjs';
2
- export { U as UnstableKey, a as UnstableMetaKey, c as UnstableMetaKeys, g as UnstablePShortcut, b as UnstablePlatformModifier, f as UnstableShortcut, d as UnstableShortcutMetaKeywords, e as UnstableShortcutRepresentation, j as buildShortcut, h as defaultPlatformModifier, i as getPlatformModifier, m as metaKeys } from '../../keyboardUtilities-BWAyLS_D.mjs';
2
+ export { S as ShortcutRepresentation, U as UnstableKey, a as UnstableMetaKey, c as UnstableMetaKeys, b as UnstablePlatformModifier, d as defaultPlatformModifier, g as getPlatformModifier, m as metaKeys } from '../../keyboardUtilities-BCP3UcLb.mjs';
3
3
  import { a as TimelineProgression } from '../../useTimeline-DCZ1qoCO.mjs';
4
4
  import '@readium/shared';
5
5
 
@@ -1,6 +1,6 @@
1
1
  export { canRenderProgressionFormat, getBestMatchingProgressionFormat, getSupportedProgressionFormats, isActiveElement, isInteractiveElement, isKeyboardTriggered, makeBreakpointsMap } from '../../chunk-VENFFPK2.mjs';
2
2
  export { propsToCSSVars } from '../../chunk-2YRT7RNW.mjs';
3
- export { UnstableShortcutMetaKeywords, UnstableShortcutRepresentation, buildShortcut, defaultPlatformModifier, getPlatform, getPlatformModifier, isIOSish, isIpadOS, isMacish, metaKeys } from '../../chunk-44PEO3DS.mjs';
3
+ export { ShortcutRepresentation, defaultPlatformModifier, getPlatform, getPlatformModifier, isIOSish, isIpadOS, isMacish, metaKeys } from '../../chunk-KOR74F6M.mjs';
4
4
  import '../../chunk-3GDQP6AS.mjs';
5
5
  //# sourceMappingURL=index.mjs.map
6
6
  //# sourceMappingURL=index.mjs.map
@@ -1,13 +1,14 @@
1
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-Cbso7N1l.mjs';
3
- export { e as ThColorScheme, f as ThContrast, u as useColorScheme, k as useContrast } from '../../useContrast-Cbso7N1l.mjs';
2
+ import { T as ThLineHeightOptions, c as ThTextAlignOptions } from '../../useContrast-Bl08zDTU.mjs';
3
+ export { e as ThColorScheme, f as ThContrast, u as useColorScheme, k as useContrast } from '../../useContrast-Bl08zDTU.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-CWXyNWq1.mjs';
7
- import { F as FontFamilyStateObject, L as LineLengthStateObject } from '../../settingsReducer-VqBhLq50.mjs';
8
- import '../../actions-CuRRM3rp.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-pGwxhXLj.mjs';
7
+ import { F as FontFamilyStateObject, L as LineLengthStateObject } from '../../settingsReducer-Pp9aoiiC.mjs';
8
+ import '../../actions-C33UN3Ji.mjs';
9
9
  import 'react/jsx-runtime';
10
10
  import 'react-aria-components';
11
+ import '@readium/navigator-html-injectables';
11
12
  import '@readium/shared';
12
13
  import '@readium/navigator';
13
14
  import '@reduxjs/toolkit';
@@ -1,4 +1,4 @@
1
- export { timelineInstance, useAudioNavigator, useAudioSettingsCache, useDocumentTitle, useEpubNavigator, useEpubSettingsCache, useFullscreen, useIsClient, useLocalStorage, useTimeline, useWebPubNavigator, useWebPubSettingsCache } from '../../chunk-SZAVAQ6S.mjs';
1
+ export { timelineInstance, useAudioNavigator, useAudioSettingsCache, useDocumentTitle, useEpubNavigator, useEpubSettingsCache, useFullscreen, useIsClient, useLocalStorage, useTimeline, useWebPubNavigator, useWebPubSettingsCache } from '../../chunk-GRYEOCGD.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';
@@ -0,0 +1,30 @@
1
+ interface UnstableKey {
2
+ [key: string]: string;
3
+ longform: string;
4
+ shortform: string;
5
+ }
6
+ interface UnstableMetaKey extends UnstableKey {
7
+ modifier: "altKey" | "ctrlKey" | "metaKey" | "shiftKey";
8
+ symbol: "⌥" | "^" | "⌘" | "⊞" | "⇧";
9
+ }
10
+ interface UnstablePlatformModifier extends UnstableKey {
11
+ modifier: "ctrlKey" | "metaKey";
12
+ symbol: "^" | "⌘";
13
+ }
14
+ interface UnstableMetaKeys {
15
+ [key: string]: UnstableMetaKey;
16
+ altKey: UnstableMetaKey;
17
+ ctrlKey: UnstableMetaKey;
18
+ metaKey: UnstableMetaKey;
19
+ shiftKey: UnstableMetaKey;
20
+ }
21
+ declare enum ShortcutRepresentation {
22
+ symbol = "symbol",
23
+ short = "shortform",
24
+ long = "longform"
25
+ }
26
+ declare const metaKeys: UnstableMetaKeys;
27
+ declare const defaultPlatformModifier: UnstableMetaKey & UnstablePlatformModifier;
28
+ declare const getPlatformModifier: () => UnstablePlatformModifier;
29
+
30
+ export { ShortcutRepresentation as S, type UnstableKey as U, type UnstableMetaKey as a, type UnstablePlatformModifier as b, type UnstableMetaKeys as c, defaultPlatformModifier as d, getPlatformModifier as g, metaKeys as m };
@@ -2,21 +2,22 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  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
- 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-Cbso7N1l.mjs';
5
+ import { b as UnstablePlatformModifier } from '../keyboardUtilities-BCP3UcLb.mjs';
6
+ import { m as ThSettingsContainerKeys, e as ThColorScheme, f as ThContrast, T as ThLineHeightOptions, c as ThTextAlignOptions, a as ThSpacingPresetKeys } from '../useContrast-Bl08zDTU.mjs';
7
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-VqBhLq50.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-VqBhLq50.mjs';
10
- import { a as ThemeTokens, d as ThPreferences, C as CustomizableKeys, c as ThPreferencesAdapter, f as ThGlobalPreferencesAdapter, e as ThGlobalPreferences } from '../ThPreferencesAdapter-_5AePKHa.mjs';
11
- import { m as ActionsReducerState } from '../actionsReducer-VFR42qgL.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-VFR42qgL.mjs';
8
+ import { F as FontFamilyStateObject, e as SpacingStateObject, S as SetFontFamilyPayload, c as SetSpacingPresetPayload, d as SpacingStateKey, f as SettingsReducerState } from '../settingsReducer-Pp9aoiiC.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-Pp9aoiiC.mjs';
10
+ import { a as ThemeTokens, e as ThPreferences, C as CustomizableKeys, d as ThPreferencesAdapter, g as ThGlobalPreferencesAdapter, f as ThGlobalPreferences } from '../ThPreferencesAdapter-B3a-f5v-.mjs';
11
+ import { m as ActionsReducerState } from '../actionsReducer-Bzcj3wk3.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-Bzcj3wk3.mjs';
13
13
  import { Locator } from '@readium/shared';
14
14
  import { ScriptMode } from '@readium/navigator';
15
15
  import { U as UnstableTimeline, b as TocItem } from '../useTimeline-DCZ1qoCO.mjs';
16
16
  import { TypedUseSelectorHook } from 'react-redux';
17
- import '../actions-CuRRM3rp.mjs';
17
+ import '../actions-C33UN3Ji.mjs';
18
18
  import 'react';
19
19
  import 'react-aria-components';
20
+ import '@readium/navigator-html-injectables';
20
21
 
21
22
  type ReaderProfile = "epub" | "webPub" | "audio" | undefined;
22
23
  interface ReaderReducerState {
@@ -1,7 +1,7 @@
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, setContainerBreakpoint, 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-YEVLT3AV.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, setContainerBreakpoint, 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-PAFJZH7O.mjs';
2
2
  import '../chunk-TEZB4ULX.mjs';
3
3
  export { useAppDispatch, useAppSelector, useAppStore } from '../chunk-A575ZW4A.mjs';
4
- import '../chunk-44PEO3DS.mjs';
4
+ import '../chunk-KOR74F6M.mjs';
5
5
  import '../chunk-NQ2ZSGCX.mjs';
6
6
  import '../chunk-3GDQP6AS.mjs';
7
7
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "reader": {
3
+ "app": {
4
+ "loading": "טעינה",
5
+ "printingDisabled": "הדפסה אינה זמינה",
6
+ "publicationWrapper": "אתה עכשיו בכותר"
7
+ }
8
+ }
9
+ }
@@ -104,5 +104,27 @@
104
104
  }
105
105
  }
106
106
  }
107
+ },
108
+ "audio": {
109
+ "player": {
110
+ "progress": "Progressione della riproduzione",
111
+ "controls": "Controlli della riproduzione",
112
+ "mediaControls": "Impostazioni audio",
113
+ "coverAlt": "Copertina dell'audiolibro"
114
+ },
115
+ "remotePlayback": {
116
+ "trigger": "Riproduzione da remoto",
117
+ "connected": "Dispositivo connesso"
118
+ },
119
+ "settings": {
120
+ "sleepTimer": {
121
+ "hours": "h",
122
+ "minutes": "min",
123
+ "seconds": "s",
124
+ "start": "Avvio",
125
+ "instruction": "La riproduzione si fermerà dopo l'intervallo di tempo selezionato.",
126
+ "remaining": "Arresto in {{ remaining }}"
127
+ }
128
+ }
107
129
  }
108
130
  }
@@ -104,5 +104,27 @@
104
104
  }
105
105
  }
106
106
  }
107
+ },
108
+ "audio": {
109
+ "player": {
110
+ "progress": "Läsposition",
111
+ "controls": "Uppspelningskontroller",
112
+ "mediaControls": "Ljudinställningar",
113
+ "coverAlt": "Omslag för ljudbok"
114
+ },
115
+ "remotePlayback": {
116
+ "trigger": "Fjärruppspelning",
117
+ "connected": "Fjärruppspelning aktiv"
118
+ },
119
+ "settings": {
120
+ "sleepTimer": {
121
+ "hours": "h",
122
+ "minutes": "min",
123
+ "seconds": "s",
124
+ "instruction": "Uppspelningen pausas efter den inställda tiden.",
125
+ "remaining": "Pausar om {{ remaining }}",
126
+ "start": "Starta sömntimer"
127
+ }
128
+ }
107
129
  }
108
130
  }
@@ -1,18 +1,19 @@
1
- import { e as ThGlobalPreferences, f as ThGlobalPreferencesAdapter, C as CustomizableKeys, D as DefaultKeys, d as ThPreferences, c as ThPreferencesAdapter, a as ThemeTokens, F as FontCollection, L as LocalStaticFontFile, g as FontDefinition, T as ThThemeKeys } from '../ThPreferencesAdapter-_5AePKHa.mjs';
2
- export { A as ActionKey, r as ActionKeyType, b as AudioContentProtectionConfig, Z as BunnyFontSource, B as CSSAbsoluteLength, E as CSSAngle, X as CSSColor, G as CSSDefaultViewport, H as CSSDynamicViewport, J as CSSFontRelativeLength, I as CSSFrequency, K as CSSLargeViewport, M as CSSPhysicalLength, N as CSSRelativeLength, O as CSSResolution, P as CSSRootFontRelativeLength, Q as CSSSmallViewport, R as CSSTime, y as CSSValueUnitless, z as CSSValueWithUnit, U as CSSViewport, aj as ContentProtectionConfig, ah as CopyProtectionConfig, a3 as FontSource, a4 as FontSpec, _ as GoogleFontSource, a2 as LocalFontSource, a0 as LocalStaticFontSource, $ as LocalVariableFontFile, a1 as LocalVariableFontSource, ai as PrintProtectionConfig, S as SettingsKey, t as SettingsKeyType, k as SpacingSettingsKey, w as SpacingSettingsKeyType, Y as SystemFontSource, j as TextSettingsKey, v as TextSettingsKeyType, n as ThActionsPref, p as ThConstraintKeys, a6 as ThFontFamilyPref, o as ThSettingsKeyTypes, l as ThSettingsSpacingPresets, m as ThSpacingPreset, i as ThemeKey, s as ThemeKeyType, a5 as ValidatedLanguageCollection, V as VariableFontRangeConfig, W as WeightConfig, aa as arabicFarsiCollection, ac as chineseSimplifiedCollection, ad as chineseTraditionalCollection, at as contrast1Theme, au as contrast2Theme, av as contrast3Theme, h as createGlobalPreferences, q as createPreferences, aq as darkTheme, an as defaultAudioContentProtectionConfig, am as defaultContentProtectionConfig, a8 as defaultFontCollection, ao as devContentProtectionConfig, ab as hebrewCollection, ae as japaneseCollection, af as japaneseVerticalCollection, ag as koreanCollection, ap as lightTheme, ar as paperTheme, a7 as readiumCSSFontCollection, al as resolveAudioContentProtectionConfig, ak as resolveContentProtectionConfig, as as sepiaTheme, a9 as tamilCollection, u as useTheming, x as useThemingProps } from '../ThPreferencesAdapter-_5AePKHa.mjs';
1
+ import { f as ThGlobalPreferences, g as ThGlobalPreferencesAdapter, C as CustomizableKeys, D as DefaultKeys, e as ThPreferences, d as ThPreferencesAdapter, a as ThemeTokens, F as FontCollection, L as LocalStaticFontFile, h as FontDefinition, T as ThThemeKeys, c as ThShortcutsPref, i as ThIconPref, j as ThLayoutDefaultsPref } from '../ThPreferencesAdapter-B3a-f5v-.mjs';
2
+ export { A as ActionKey, w as ActionKeyType, b as AudioContentProtectionConfig, a1 as BunnyFontSource, I as CSSAbsoluteLength, J as CSSAngle, $ as CSSColor, K as CSSDefaultViewport, M as CSSDynamicViewport, O as CSSFontRelativeLength, N as CSSFrequency, P as CSSLargeViewport, Q as CSSPhysicalLength, R as CSSRelativeLength, U as CSSResolution, X as CSSRootFontRelativeLength, Y as CSSSmallViewport, Z as CSSTime, G as CSSValueUnitless, H as CSSValueWithUnit, _ as CSSViewport, an as ContentProtectionConfig, al as CopyProtectionConfig, a7 as FontSource, a8 as FontSpec, a2 as GoogleFontSource, a6 as LocalFontSource, a4 as LocalStaticFontSource, a3 as LocalVariableFontFile, a5 as LocalVariableFontSource, am as PrintProtectionConfig, S as SettingsKey, y as SettingsKeyType, n as SpacingSettingsKey, B as SpacingSettingsKeyType, a0 as SystemFontSource, m as TextSettingsKey, z as TextSettingsKeyType, q as ThActionsPref, s as ThConstraintKeys, aa as ThFontFamilyPref, r as ThSettingsKeyTypes, o as ThSettingsSpacingPresets, t as ThShortcutsDisplayIn, p as ThSpacingPreset, l as ThemeKey, x as ThemeKeyType, a9 as ValidatedLanguageCollection, V as VariableFontRangeConfig, W as WeightConfig, ae as arabicFarsiCollection, ag as chineseSimplifiedCollection, ah as chineseTraditionalCollection, ax as contrast1Theme, ay as contrast2Theme, az as contrast3Theme, k as createGlobalPreferences, v as createPreferences, au as darkTheme, ar as defaultAudioContentProtectionConfig, aq as defaultContentProtectionConfig, ac as defaultFontCollection, as as devContentProtectionConfig, af as hebrewCollection, ai as japaneseCollection, aj as japaneseVerticalCollection, ak as koreanCollection, at as lightTheme, av as paperTheme, ab as readiumCSSFontCollection, ap as resolveAudioContentProtectionConfig, ao as resolveContentProtectionConfig, aw as sepiaTheme, ad as tamilCollection, u as useTheming, E as useThemingProps } from '../ThPreferencesAdapter-B3a-f5v-.mjs';
3
3
  import * as React$1 from 'react';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { a as ThAudioPreferences, A as AudioDefaultKeys, b as AudioCustomizableKeys, c as ThAudioPreferencesAdapter } from '../usePreferences-9ZvbcbLW.mjs';
6
- export { g as AudioSettingsKey, i as ThAudioActionKey, m as ThAudioActionKeys, j as ThAudioActionsPref, d as ThAudioAffordance, k as ThAudioConstraintKeys, h as ThAudioKeyTypes, n as ThAudioKeys, q as ThAudioSettingsKeys, f as ThAudioThemeKey, e as ThAudioThemeKeys, T as ThPreferencesProvider, p as ThSettingsTimerPref, o as ThSettingsTimerVariant, l as createAudioPreferences, s as defaultAudioPlaybackRate, B as defaultAudioPlaybackRateAction, D as defaultAudioRemotePlaybackAction, t as defaultAudioSkipBackwardInterval, v as defaultAudioSkipForwardInterval, w as defaultAudioSkipInterval, x as defaultAudioSleepTimer, C as defaultAudioSleepTimerAction, y as defaultAudioSleepTimerPresetList, E as defaultAudioTocAction, r as defaultAudioVolume, z as defaultAudioVolumeAction, u as usePreferences } from '../usePreferences-9ZvbcbLW.mjs';
7
- import { e as ThColorScheme, g as ThSettingsKeys, h as ThTextSettingsKeys, b as ThSpacingSettingsKeys, a as ThSpacingPresetKeys } from '../useContrast-Cbso7N1l.mjs';
8
- export { I as I18nValue, p as ThLayoutOptions, T as ThLineHeightOptions, m as ThSettingsContainerKeys, j as ThSettingsGroupPref, i as ThSettingsRadioPref, o as ThSettingsRangePlaceholder, l as ThSettingsRangePref, d as ThSettingsRangePrefRequired, n as ThSettingsRangeVariant, c as ThTextAlignOptions, z as defaultLetterSpacing, A as defaultLineHeights, x as defaultParagraphIndent, w as defaultParagraphSpacing, C as defaultSpacingPresets, v as defaultSpacingPresetsOrder, s as defaultSpacingSettingsMain, t as defaultSpacingSettingsSubpanel, q as defaultTextSettingsMain, r as defaultTextSettingsSubpanel, y as defaultWordSpacing, B as defaultZoom } from '../useContrast-Cbso7N1l.mjs';
9
- import { f as ThDockingPref, T as ThDockingKeys, c as ThActionsTokens, b as ThAudioActionsTokens, g as ThActionsKeys } from '../actions-CuRRM3rp.mjs';
10
- export { k as ThActionsDockedPref, l as ThActionsSnappedPref, j as ThBottomSheetDetent, m as ThDockingTypes, a as ThSheetHeaderVariant, e as ThSheetTypes, n as defaultActionKeysObject, p as defaultFullscreenAction, r as defaultJumpToPositionAction, o as defaultSettingsAction, q as defaultTocAction } from '../actions-CuRRM3rp.mjs';
5
+ import { a as ThAudioPreferences, A as AudioDefaultKeys, b as AudioCustomizableKeys, c as ThAudioPreferencesAdapter } from '../usePreferences-Cy7-JN2x.mjs';
6
+ export { g as AudioSettingsKey, i as ThAudioActionKey, m as ThAudioActionKeys, j as ThAudioActionsPref, d as ThAudioAffordance, k as ThAudioConstraintKeys, h as ThAudioKeyTypes, n as ThAudioKeys, q as ThAudioSettingsKeys, f as ThAudioThemeKey, e as ThAudioThemeKeys, T as ThPreferencesProvider, p as ThSettingsTimerPref, o as ThSettingsTimerVariant, l as createAudioPreferences, s as defaultAudioPlaybackRate, B as defaultAudioPlaybackRateAction, D as defaultAudioRemotePlaybackAction, t as defaultAudioSkipBackwardInterval, v as defaultAudioSkipForwardInterval, w as defaultAudioSkipInterval, x as defaultAudioSleepTimer, C as defaultAudioSleepTimerAction, y as defaultAudioSleepTimerPresetList, E as defaultAudioTocAction, r as defaultAudioVolume, z as defaultAudioVolumeAction, u as usePreferences } from '../usePreferences-Cy7-JN2x.mjs';
7
+ import { e as ThColorScheme, g as ThSettingsKeys, h as ThTextSettingsKeys, b as ThSpacingSettingsKeys, a as ThSpacingPresetKeys } from '../useContrast-Bl08zDTU.mjs';
8
+ export { p as ThLayoutOptions, T as ThLineHeightOptions, m as ThSettingsContainerKeys, j as ThSettingsGroupPref, i as ThSettingsRadioPref, o as ThSettingsRangePlaceholder, l as ThSettingsRangePref, d as ThSettingsRangePrefRequired, n as ThSettingsRangeVariant, c as ThTextAlignOptions, z as defaultLetterSpacing, A as defaultLineHeights, x as defaultParagraphIndent, w as defaultParagraphSpacing, C as defaultSpacingPresets, v as defaultSpacingPresetsOrder, s as defaultSpacingSettingsMain, t as defaultSpacingSettingsSubpanel, q as defaultTextSettingsMain, r as defaultTextSettingsSubpanel, y as defaultWordSpacing, B as defaultZoom } from '../useContrast-Bl08zDTU.mjs';
9
+ import { f as ThDockingPref, T as ThDockingKeys, c as ThActionsTokens, b as ThAudioActionsTokens, g as ThActionsKeys } from '../actions-C33UN3Ji.mjs';
10
+ export { I as I18nValue, k as TEXT_INPUT_SELECTORS, m as ThActionsDockedPref, n as ThActionsSnappedPref, l as ThBottomSheetDetent, o as ThDockingTypes, a as ThSheetHeaderVariant, e as ThSheetTypes, j as ThShortcutConfig, p as defaultActionKeysObject, r as defaultFullscreenAction, t as defaultJumpToPositionAction, q as defaultSettingsAction, s as defaultTocAction } from '../actions-C33UN3Ji.mjs';
11
11
  import { T as ThBackLinkPref, B as BreakpointsMap } from '../ui-DnZZhozX.mjs';
12
12
  export { o as ThArrowVariant, a as ThAudioPlayerComponent, c as ThAudioProgressBarVariant, r as ThAudioPublicationMetadataComponent, l as ThBackLinkContent, p as ThBackLinkVariant, d as ThBreakpoints, f as ThDocumentTitleFormat, g as ThFormatPref, m as ThFormatPrefValue, q as ThLayoutDirection, j as ThLayoutUI, k as ThPaginatedAffordancePref, n as ThPaginatedAffordancePrefValue, i as ThProgressionFormat, b as ThPublicationMetadataOrder, h as ThRunningHeadFormat } from '../ui-DnZZhozX.mjs';
13
- import { e as UnstableShortcutRepresentation } from '../keyboardUtilities-BWAyLS_D.mjs';
13
+ import '../keyboardUtilities-BCP3UcLb.mjs';
14
14
  import '@readium/navigator';
15
15
  import 'react-aria-components';
16
+ import '@readium/navigator-html-injectables';
16
17
 
17
18
  interface GlobalPreferencesContextValue {
18
19
  preferences: ThGlobalPreferences;
@@ -216,17 +217,10 @@ declare const useFilteredPreferenceKeys: () => {
216
217
  };
217
218
 
218
219
  interface SharedPreferences {
219
- shortcuts: {
220
- representation: UnstableShortcutRepresentation;
221
- joiner?: string;
222
- };
220
+ shortcuts: ThShortcutsPref;
223
221
  docking: ThDockingPref<ThDockingKeys>;
224
222
  theming: {
225
- icon: {
226
- size: number;
227
- tooltipOffset: number;
228
- tooltipDelay?: number;
229
- };
223
+ icon: ThIconPref;
230
224
  header?: {
231
225
  backLink?: ThBackLinkPref | null;
232
226
  };
@@ -241,10 +235,7 @@ interface SharedPreferences {
241
235
  fxlOrder?: Array<string>;
242
236
  };
243
237
  layout: {
244
- defaults: {
245
- dockingWidth: number;
246
- scrim: string;
247
- };
238
+ defaults: ThLayoutDefaultsPref;
248
239
  };
249
240
  breakpoints: BreakpointsMap<number | null>;
250
241
  };
@@ -258,4 +249,4 @@ declare const useSharedPreferences: () => SharedPreferences;
258
249
 
259
250
  declare const useGlobalPreferences: () => GlobalPreferencesContextValue;
260
251
 
261
- export { type ActionsPreferences, type AudioActionsPreferences, AudioCustomizableKeys, AudioDefaultKeys, type AudioPreferencesContextValue, CustomizableKeys, DefaultKeys, FontCollection, FontDefinition, type GlobalPreferencesContextValue, type GoogleFontDefinitionParams, LocalStaticFontFile, type PreferencesContextValue, type SharedPreferences, ThActionsKeys, ThActionsTokens, ThAudioActionsTokens, ThAudioMemoryPreferencesAdapter, ThAudioPreferences, ThAudioPreferencesAdapter, ThAudioPreferencesContext, ThAudioPreferencesProvider, ThBackLinkPref, ThDockingKeys, ThDockingPref, ThGlobalMemoryPreferencesAdapter, ThGlobalPreferences, ThGlobalPreferencesAdapter, ThGlobalPreferencesContext, ThGlobalPreferencesProvider, ThMemoryPreferencesAdapter, ThPreferences, ThPreferencesAdapter, ThPreferencesContext, ThSettingsKeys, ThSpacingPresetKeys, ThSpacingSettingsKeys, ThTextSettingsKeys, ThThemeKeys, ThemeTokens, buildThemeObject, type buildThemeProps, createDefinitionFromStaticFonts, createDefinitionsFromBunnyFonts, createDefinitionsFromGoogleFonts, defaultAudioPreferences, defaultAudioPreferencesContextValue, defaultPreferences, defaultPreferencesContextValue, useActionsPreferences, useAudioActionsPreferences, useAudioPreferences, useFilteredPreferenceKeys, useGlobalPreferences, usePreferenceKeys, useSharedPreferences, validateObjectKeys };
252
+ export { type ActionsPreferences, type AudioActionsPreferences, AudioCustomizableKeys, AudioDefaultKeys, type AudioPreferencesContextValue, CustomizableKeys, DefaultKeys, FontCollection, FontDefinition, type GlobalPreferencesContextValue, type GoogleFontDefinitionParams, LocalStaticFontFile, type PreferencesContextValue, type SharedPreferences, ThActionsKeys, ThActionsTokens, ThAudioActionsTokens, ThAudioMemoryPreferencesAdapter, ThAudioPreferences, ThAudioPreferencesAdapter, ThAudioPreferencesContext, ThAudioPreferencesProvider, ThBackLinkPref, ThDockingKeys, ThDockingPref, ThGlobalMemoryPreferencesAdapter, ThGlobalPreferences, ThGlobalPreferencesAdapter, ThGlobalPreferencesContext, ThGlobalPreferencesProvider, ThIconPref, ThLayoutDefaultsPref, ThMemoryPreferencesAdapter, ThPreferences, ThPreferencesAdapter, ThPreferencesContext, ThSettingsKeys, ThShortcutsPref, ThSpacingPresetKeys, ThSpacingSettingsKeys, ThTextSettingsKeys, ThThemeKeys, ThemeTokens, buildThemeObject, type buildThemeProps, createDefinitionFromStaticFonts, createDefinitionsFromBunnyFonts, createDefinitionsFromGoogleFonts, defaultAudioPreferences, defaultAudioPreferencesContextValue, defaultPreferences, defaultPreferencesContextValue, useActionsPreferences, useAudioActionsPreferences, useAudioPreferences, useFilteredPreferenceKeys, useGlobalPreferences, usePreferenceKeys, useSharedPreferences, validateObjectKeys };
@@ -1,9 +1,9 @@
1
- export { ThActionsKeys, ThAudioActionKeys, ThAudioAffordance, ThAudioKeys, ThAudioMemoryPreferencesAdapter, ThAudioPreferencesContext, ThAudioPreferencesProvider, ThDockingKeys, ThDockingTypes, ThGlobalMemoryPreferencesAdapter, ThGlobalPreferencesProvider, ThLayoutOptions, ThLineHeightOptions, ThMemoryPreferencesAdapter, ThPreferencesContext, ThPreferencesProvider, ThSettingsContainerKeys, ThSettingsKeys, ThSettingsRangePlaceholder, ThSettingsRangeVariant, ThSettingsTimerVariant, ThSheetHeaderVariant, ThSheetTypes, ThSpacingPresetKeys, ThSpacingSettingsKeys, ThTextAlignOptions, ThTextSettingsKeys, ThThemeKeys, arabicFarsiCollection, buildThemeObject, chineseSimplifiedCollection, chineseTraditionalCollection, contrast1Theme, contrast2Theme, contrast3Theme, createAudioPreferences, createDefinitionFromStaticFonts, createDefinitionsFromBunnyFonts, createDefinitionsFromGoogleFonts, createGlobalPreferences, createPreferences, darkTheme, defaultActionKeysObject, defaultAudioContentProtectionConfig, defaultAudioPlaybackRate, defaultAudioPlaybackRateAction, defaultAudioPreferences, defaultAudioPreferencesContextValue, defaultAudioRemotePlaybackAction, defaultAudioSkipBackwardInterval, defaultAudioSkipForwardInterval, defaultAudioSkipInterval, defaultAudioSleepTimer, defaultAudioSleepTimerAction, defaultAudioSleepTimerPresetList, defaultAudioTocAction, defaultAudioVolume, defaultAudioVolumeAction, defaultContentProtectionConfig, defaultFontCollection, defaultFullscreenAction, defaultJumpToPositionAction, defaultLetterSpacing, defaultLineHeights, defaultParagraphIndent, defaultParagraphSpacing, defaultPreferences, defaultPreferencesContextValue, defaultSettingsAction, defaultSpacingPresets, defaultSpacingPresetsOrder, defaultSpacingSettingsMain, defaultSpacingSettingsSubpanel, defaultTextSettingsMain, defaultTextSettingsSubpanel, defaultTocAction, defaultWordSpacing, defaultZoom, devContentProtectionConfig, hebrewCollection, japaneseCollection, japaneseVerticalCollection, koreanCollection, lightTheme, paperTheme, readiumCSSFontCollection, resolveAudioContentProtectionConfig, resolveContentProtectionConfig, sepiaTheme, tamilCollection, useActionsPreferences, useAudioActionsPreferences, useAudioPreferences, useFilteredPreferenceKeys, usePreferenceKeys, usePreferences, useSharedPreferences, useTheming, validateObjectKeys } from '../chunk-OD75GC5N.mjs';
1
+ export { TEXT_INPUT_SELECTORS, ThActionsKeys, ThAudioActionKeys, ThAudioAffordance, ThAudioKeys, ThAudioMemoryPreferencesAdapter, ThAudioPreferencesContext, ThAudioPreferencesProvider, ThDockingKeys, ThDockingTypes, ThGlobalMemoryPreferencesAdapter, ThGlobalPreferencesProvider, ThLayoutOptions, ThLineHeightOptions, ThMemoryPreferencesAdapter, ThPreferencesContext, ThPreferencesProvider, ThSettingsContainerKeys, ThSettingsKeys, ThSettingsRangePlaceholder, ThSettingsRangeVariant, ThSettingsTimerVariant, ThSheetHeaderVariant, ThSheetTypes, ThSpacingPresetKeys, ThSpacingSettingsKeys, ThTextAlignOptions, ThTextSettingsKeys, ThThemeKeys, arabicFarsiCollection, buildThemeObject, chineseSimplifiedCollection, chineseTraditionalCollection, contrast1Theme, contrast2Theme, contrast3Theme, createAudioPreferences, createDefinitionFromStaticFonts, createDefinitionsFromBunnyFonts, createDefinitionsFromGoogleFonts, createGlobalPreferences, createPreferences, darkTheme, defaultActionKeysObject, defaultAudioContentProtectionConfig, defaultAudioPlaybackRate, defaultAudioPlaybackRateAction, defaultAudioPreferences, defaultAudioPreferencesContextValue, defaultAudioRemotePlaybackAction, defaultAudioSkipBackwardInterval, defaultAudioSkipForwardInterval, defaultAudioSkipInterval, defaultAudioSleepTimer, defaultAudioSleepTimerAction, defaultAudioSleepTimerPresetList, defaultAudioTocAction, defaultAudioVolume, defaultAudioVolumeAction, defaultContentProtectionConfig, defaultFontCollection, defaultFullscreenAction, defaultJumpToPositionAction, defaultLetterSpacing, defaultLineHeights, defaultParagraphIndent, defaultParagraphSpacing, defaultPreferences, defaultPreferencesContextValue, defaultSettingsAction, defaultSpacingPresets, defaultSpacingPresetsOrder, defaultSpacingSettingsMain, defaultSpacingSettingsSubpanel, defaultTextSettingsMain, defaultTextSettingsSubpanel, defaultTocAction, defaultWordSpacing, defaultZoom, devContentProtectionConfig, hebrewCollection, japaneseCollection, japaneseVerticalCollection, koreanCollection, lightTheme, paperTheme, readiumCSSFontCollection, resolveAudioContentProtectionConfig, resolveContentProtectionConfig, sepiaTheme, tamilCollection, useActionsPreferences, useAudioActionsPreferences, useAudioPreferences, useFilteredPreferenceKeys, usePreferenceKeys, usePreferences, useSharedPreferences, useTheming, validateObjectKeys } from '../chunk-PRQBFBJ7.mjs';
2
2
  export { ThArrowVariant, ThAudioPlayerComponent, ThAudioProgressBarVariant, ThAudioPublicationMetadataComponent, ThBackLinkVariant, ThBreakpoints, ThDocumentTitleFormat, ThLayoutDirection, ThLayoutUI, ThProgressionFormat, ThRunningHeadFormat } from '../chunk-2YRT7RNW.mjs';
3
3
  import '../chunk-GFSLVQIG.mjs';
4
4
  export { ThGlobalPreferencesContext, useGlobalPreferences } from '../chunk-AE6P4KJB.mjs';
5
5
  import '../chunk-A575ZW4A.mjs';
6
- import '../chunk-44PEO3DS.mjs';
6
+ import '../chunk-KOR74F6M.mjs';
7
7
  import '../chunk-NQ2ZSGCX.mjs';
8
8
  import '../chunk-AQSJDL63.mjs';
9
9
  import '../chunk-GNROODJB.mjs';
@@ -1,6 +1,6 @@
1
1
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
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-Cbso7N1l.mjs';
3
+ import { T as ThLineHeightOptions, a as ThSpacingPresetKeys, b as ThSpacingSettingsKeys, c as ThTextAlignOptions } from './useContrast-Bl08zDTU.mjs';
4
4
 
5
5
  interface FontFamilyStateObject {
6
6
  default: string;
@@ -1,5 +1,5 @@
1
1
  import * as _readium_navigator from '@readium/navigator';
2
- import { EpubNavigatorListeners, IEpubPreferences, IEpubDefaults, IInjectablesConfig, IContentProtectionConfig, EpubSettings, ScriptMode, WebPubNavigatorListeners, IWebPubPreferences, IWebPubDefaults, WebPubSettings, AudioNavigatorListeners, IAudioPreferences, IAudioDefaults } from '@readium/navigator';
2
+ import { EpubNavigatorListeners, IEpubPreferences, IEpubDefaults, IInjectablesConfig, IContentProtectionConfig, IKeyboardPeripheralsConfig, EpubSettings, ScriptMode, WebPubNavigatorListeners, IWebPubPreferences, IWebPubDefaults, WebPubSettings, AudioNavigatorListeners, IAudioPreferences, IAudioDefaults } from '@readium/navigator';
3
3
  import { Publication, Locator, Link, Layout, Timeline } from '@readium/shared';
4
4
  import * as React from 'react';
5
5
 
@@ -14,6 +14,7 @@ interface EpubNavigatorLoadProps {
14
14
  defaults?: IEpubDefaults;
15
15
  injectables?: IInjectablesConfig;
16
16
  contentProtection?: IContentProtectionConfig;
17
+ keyboardPeripherals?: IKeyboardPeripheralsConfig;
17
18
  }
18
19
  declare const useEpubNavigator: () => {
19
20
  EpubNavigatorLoad: (config: EpubNavigatorLoadProps, cb: Function, fxlCallback?: (locator: Locator) => void) => void;
@@ -51,6 +52,7 @@ interface WebPubNavigatorLoadProps {
51
52
  defaults?: IWebPubDefaults;
52
53
  injectables?: IInjectablesConfig;
53
54
  contentProtection?: IContentProtectionConfig;
55
+ keyboardPeripherals?: IKeyboardPeripheralsConfig;
54
56
  }
55
57
  declare const useWebPubNavigator: () => {
56
58
  WebPubNavigatorLoad: (config: WebPubNavigatorLoadProps, cb: Function) => void;
@@ -100,6 +102,7 @@ interface AudioNavigatorLoadProps {
100
102
  preferences?: IAudioPreferences;
101
103
  defaults?: IAudioDefaults;
102
104
  contentProtection?: IContentProtectionConfig;
105
+ keyboardPeripherals?: IKeyboardPeripheralsConfig;
103
106
  audioContext?: AudioContext;
104
107
  }
105
108
  declare const useAudioNavigator: () => {
@@ -1,9 +1,4 @@
1
- import { a as ThSheetHeaderVariant } from './actions-CuRRM3rp.mjs';
2
-
3
- type I18nValue<T> = T | string | {
4
- key: string;
5
- fallback?: string;
6
- };
1
+ import { I as I18nValue, a as ThSheetHeaderVariant } from './actions-C33UN3Ji.mjs';
7
2
 
8
3
  interface ThSettingsGroupPref<T> {
9
4
  main: T[];
@@ -161,4 +156,4 @@ declare enum ThContrast {
161
156
  }
162
157
  declare const useContrast: (onChange?: (contrast: ThContrast) => void) => ThContrast;
163
158
 
164
- export { defaultLineHeights as A, defaultZoom as B, defaultSpacingPresets as C, type I18nValue as I, ThLineHeightOptions as T, ThSpacingPresetKeys as a, ThSpacingSettingsKeys as b, ThTextAlignOptions as c, type ThSettingsRangePrefRequired as d, ThColorScheme as e, ThContrast as f, ThSettingsKeys as g, ThTextSettingsKeys as h, type ThSettingsRadioPref as i, type ThSettingsGroupPref as j, useContrast as k, type ThSettingsRangePref as l, ThSettingsContainerKeys as m, ThSettingsRangeVariant as n, ThSettingsRangePlaceholder as o, ThLayoutOptions as p, defaultTextSettingsMain as q, defaultTextSettingsSubpanel as r, defaultSpacingSettingsMain as s, defaultSpacingSettingsSubpanel as t, useColorScheme as u, defaultSpacingPresetsOrder as v, defaultParagraphSpacing as w, defaultParagraphIndent as x, defaultWordSpacing as y, defaultLetterSpacing as z };
159
+ export { defaultLineHeights as A, defaultZoom as B, defaultSpacingPresets as C, ThLineHeightOptions as T, ThSpacingPresetKeys as a, ThSpacingSettingsKeys as b, ThTextAlignOptions as c, type ThSettingsRangePrefRequired as d, ThColorScheme as e, ThContrast as f, ThSettingsKeys as g, ThTextSettingsKeys as h, type ThSettingsRadioPref as i, type ThSettingsGroupPref as j, useContrast as k, type ThSettingsRangePref as l, ThSettingsContainerKeys as m, ThSettingsRangeVariant as n, ThSettingsRangePlaceholder as o, ThLayoutOptions as p, defaultTextSettingsMain as q, defaultTextSettingsSubpanel as r, defaultSpacingSettingsMain as s, defaultSpacingSettingsSubpanel as t, useColorScheme as u, defaultSpacingPresetsOrder as v, defaultParagraphSpacing as w, defaultParagraphIndent as x, defaultWordSpacing as y, defaultLetterSpacing as z };
@@ -1,8 +1,7 @@
1
- import { e as UnstableShortcutRepresentation } from './keyboardUtilities-BWAyLS_D.mjs';
2
1
  import { T as ThBackLinkPref, a as ThAudioPlayerComponent, b as ThPublicationMetadataOrder, c as ThAudioProgressBarVariant, B as BreakpointsMap } from './ui-DnZZhozX.mjs';
3
- import { T as ThThemeKeys, A as ActionKey, a as ThemeTokens, b as AudioContentProtectionConfig, C as CustomizableKeys, D as DefaultKeys, c as ThPreferencesAdapter, d as ThPreferences, W as WeightConfig, V as VariableFontRangeConfig, F as FontCollection } from './ThPreferencesAdapter-_5AePKHa.mjs';
4
- import { b as ThAudioActionsTokens, c as ThActionsTokens, d as ThCollapsibility, e as ThSheetTypes, f as ThDockingPref, T as ThDockingKeys } from './actions-CuRRM3rp.mjs';
5
- import { d as ThSettingsRangePrefRequired } from './useContrast-Cbso7N1l.mjs';
2
+ import { T as ThThemeKeys, A as ActionKey, a as ThemeTokens, b as AudioContentProtectionConfig, c as ThShortcutsPref, C as CustomizableKeys, D as DefaultKeys, d as ThPreferencesAdapter, e as ThPreferences, W as WeightConfig, V as VariableFontRangeConfig, F as FontCollection } from './ThPreferencesAdapter-B3a-f5v-.mjs';
3
+ import { b as ThAudioActionsTokens, c as ThActionsTokens, d as ThCollapsibility, e as ThSheetTypes, f as ThDockingPref, T as ThDockingKeys } from './actions-C33UN3Ji.mjs';
4
+ import { d as ThSettingsRangePrefRequired } from './useContrast-Bl08zDTU.mjs';
6
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
6
  import { ILinkInjectable, IUrlInjectable, IBlobInjectable, ScriptMode } from '@readium/navigator';
8
7
 
@@ -172,10 +171,7 @@ interface ThAudioPreferences<K extends AudioCustomizableKeys = {}> {
172
171
  previous: ThAudioAffordance;
173
172
  next: ThAudioAffordance;
174
173
  };
175
- shortcuts: {
176
- representation: UnstableShortcutRepresentation;
177
- joiner?: string;
178
- };
174
+ shortcuts: ThShortcutsPref;
179
175
  docking: ThDockingPref<ThDockingKeys>;
180
176
  }
181
177
  declare const createAudioPreferences: <K extends AudioCustomizableKeys = {}>(params: ThAudioPreferences<K>) => ThAudioPreferences<K>;
@@ -1,20 +1,20 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React__default, { RefObject, ReactNode } from 'react';
3
- import { t as ThActionsTriggerVariant, a as ThSheetHeaderVariant, s as ThCollapsibilityVisibility, h as ThActionEntry, g as ThActionsKeys, T as ThDockingKeys, e as ThSheetTypes } from './actions-CuRRM3rp.mjs';
3
+ import { w as ThActionsTriggerVariant, a as ThSheetHeaderVariant, u as ThCollapsibilityVisibility, j as ThShortcutConfig, h as ThActionEntry, g as ThActionsKeys, T as ThDockingKeys, e as ThSheetTypes } from './actions-C33UN3Ji.mjs';
4
4
  import { TooltipProps, Heading, HeadingProps, PopoverProps } from 'react-aria-components';
5
- import { T as ThActionButtonProps, f as ThMenuItemProps, a as ThCollapsibleActionsBarProps, v as ThSettingsEntry, W as WithRef, t as ThDropdownProps, h as ThNumberFieldProps, k as ThRadioGroupProps, m as ThSliderProps, o as ThSliderWithPresetsProps, q as ThSwitchProps } from './ThSettingsWrapper-B_9klYXH.mjs';
6
- import { h as ThTextSettingsKeys, b as ThSpacingSettingsKeys, j as ThSettingsGroupPref, o as ThSettingsRangePlaceholder, g as ThSettingsKeys, a as ThSpacingPresetKeys, T as ThLineHeightOptions } from './useContrast-Cbso7N1l.mjs';
5
+ import { T as ThActionButtonProps, f as ThMenuItemProps, a as ThCollapsibleActionsBarProps, v as ThSettingsEntry, W as WithRef, t as ThDropdownProps, h as ThNumberFieldProps, k as ThRadioGroupProps, m as ThSliderProps, o as ThSliderWithPresetsProps, q as ThSwitchProps } from './ThSettingsWrapper-DtzcwzYX.mjs';
6
+ import { h as ThTextSettingsKeys, b as ThSpacingSettingsKeys, j as ThSettingsGroupPref, o as ThSettingsRangePlaceholder, g as ThSettingsKeys, T as ThLineHeightOptions, a as ThSpacingPresetKeys } from './useContrast-Bl08zDTU.mjs';
7
7
  import { PressEvent } from 'react-aria';
8
- import { f as SettingsReducerState } from './settingsReducer-VqBhLq50.mjs';
8
+ import { f as SettingsReducerState } from './settingsReducer-Pp9aoiiC.mjs';
9
9
  import { WebPubSettingsReducerState, ReaderProfile } from './lib/index.mjs';
10
- import { A as ActionsStateKeys } from './actionsReducer-VFR42qgL.mjs';
11
- import { d as ThPreferences, D as DefaultKeys, e as ThGlobalPreferences, C as CustomizableKeys, c as ThPreferencesAdapter } from './ThPreferencesAdapter-_5AePKHa.mjs';
10
+ import { A as ActionsStateKeys } from './actionsReducer-Bzcj3wk3.mjs';
11
+ import { e as ThPreferences, D as DefaultKeys, f as ThGlobalPreferences, C as CustomizableKeys, d as ThPreferencesAdapter } from './ThPreferencesAdapter-B3a-f5v-.mjs';
12
12
  import * as _readium_navigator from '@readium/navigator';
13
13
  import { EpubSettings, WebPubSettings, FXLFrameManager, FrameManager, ScriptMode, WebPubFrameManager } from '@readium/navigator';
14
14
  import * as _readium_shared from '@readium/shared';
15
15
  import { Locator, Link, Publication, Fetcher } from '@readium/shared';
16
- import { E as EpubNavigatorLoadProps, W as WebPubNavigatorLoadProps, A as AudioNavigatorLoadProps, c as AudioSettings, a as useEpubNavigator, b as useWebPubNavigator, u as useAudioNavigator } from './useAudioNavigator-CWXyNWq1.mjs';
17
- import { a as ThAudioPreferences, c as ThAudioPreferencesAdapter } from './usePreferences-9ZvbcbLW.mjs';
16
+ import { E as EpubNavigatorLoadProps, W as WebPubNavigatorLoadProps, A as AudioNavigatorLoadProps, c as AudioSettings, a as useEpubNavigator, b as useWebPubNavigator, u as useAudioNavigator } from './useAudioNavigator-pGwxhXLj.mjs';
17
+ import { a as ThAudioPreferences, c as ThAudioPreferencesAdapter } from './usePreferences-Cy7-JN2x.mjs';
18
18
  import { InitOptions } from 'i18next';
19
19
  import { P as ProcessedError } from './errorHandler-CL2YIfQY.mjs';
20
20
 
@@ -63,11 +63,12 @@ interface StatefulActionIconProps extends ThActionButtonProps {
63
63
  visibility?: ThCollapsibilityVisibility;
64
64
  placement?: TooltipProps["placement"];
65
65
  tooltipLabel?: string;
66
+ shortcut?: ThShortcutConfig | null;
66
67
  }
67
- declare const StatefulActionIcon: ({ ref: externalRef, visibility, placement, tooltipLabel, children, ...props }: StatefulActionIconProps) => react_jsx_runtime.JSX.Element;
68
+ declare const StatefulActionIcon: ({ ref: externalRef, visibility, placement, tooltipLabel, shortcut, children, ...props }: StatefulActionIconProps) => react_jsx_runtime.JSX.Element;
68
69
 
69
70
  interface StatefulOverflowMenuItemProps extends Omit<ThMenuItemProps, "shortcut"> {
70
- shortcut?: string | null;
71
+ shortcut?: ThShortcutConfig | null;
71
72
  }
72
73
  declare const StatefulOverflowMenuItem: ({ id, label, SVGIcon, shortcut, ...props }: StatefulOverflowMenuItemProps) => react_jsx_runtime.JSX.Element;
73
74
 
@@ -261,15 +262,22 @@ declare const StatefulSpacingPresets: ({ standalone }: StatefulSettingsItemProps
261
262
 
262
263
  declare const StatefulWordSpacing: ({ standalone }: StatefulSettingsItemProps) => react_jsx_runtime.JSX.Element;
263
264
 
264
- /**
265
- * Hook that returns a mapping of line height options to their actual numeric values
266
- * This eliminates code duplication across spacing components
267
- */
265
+ declare const ORDERED_LINE_HEIGHT_OPTIONS: readonly [ThLineHeightOptions.small, ThLineHeightOptions.medium, ThLineHeightOptions.large];
268
266
  declare const useLineHeight: () => {
269
- publisher: null;
270
- small: any;
271
- medium: any;
272
- large: any;
267
+ values: {
268
+ publisher: null;
269
+ small: any;
270
+ medium: any;
271
+ large: any;
272
+ };
273
+ compensatedValues: {
274
+ publisher: null;
275
+ small: number | null;
276
+ medium: number | null;
277
+ large: number | null;
278
+ };
279
+ processedValues: Record<ThLineHeightOptions.small | ThLineHeightOptions.medium | ThLineHeightOptions.large, number>;
280
+ compensate: (v: number | null) => number | null;
273
281
  };
274
282
 
275
283
  /**
@@ -579,4 +587,4 @@ interface ReaderTransitions {
579
587
  }
580
588
  declare const useReaderTransitions: () => ReaderTransitions;
581
589
 
582
- export { StatefulSpacingGroup as $, StatefulGroupWrapper as A, type StatefulDropdownProps as B, StatefulDropdown as C, type StatefulNumberFieldProps as D, StatefulNumberField as E, type StatefulRadioGroupProps as F, StatefulRadioGroup as G, type StatefulSliderProps as H, StatefulSlider as I, type StatefulSliderWithPresetsProps as J, StatefulSliderWithPresets as K, type StatefulSwitchProps as L, StatefulSwitch as M, useEffectiveRange as N, type useGridNavigationProps as O, useGridNavigation as P, useGridTemplate as Q, usePlaceholder as R, type StatefulActionsMapObject as S, type ThPlugin as T, useReaderSetting as U, useSettingsComponentStatus as V, type StatefulSettingsItemProps as W, StatefulLetterSpacing as X, StatefulLineHeight as Y, StatefulParagraphIndent as Z, StatefulParagraphSpacing as _, usePublication as a, StatefulSpacingGroupContainer as a0, StatefulSpacingPresets as a1, StatefulWordSpacing as a2, useLineHeight as a3, useSpacingPresets as a4, StatefulFontFamily as a5, UnstableStatefulFontWeight as a6, StatefulHyphens as a7, StatefulTextAlign as a8, StatefulTextGroup as a9, type PositionStorage as aA, type StatefulReaderProps as aB, type ThPluginFactory as aC, type ReaderPlugins as aD, type ReaderComponentProps as aE, StatefulReaderWrapper as aF, StatefulTextGroupContainer as aa, StatefulTextNormalize as ab, StatefulLigatures as ac, StatefulNoRuby as ad, StatefulPublisherStyles as ae, StatefulTheme as af, StatefulZoom as ag, type StatefulBottomSheetProps as ah, type ScrimPref as ai, StatefulBottomSheet as aj, type StatefulCompactPopoverSheetProps as ak, StatefulCompactPopoverSheet as al, type StatefulDockedSheetProps as am, StatefulDockedSheet as an, type StatefulFullScreenSheetProps as ao, StatefulFullScreenSheet as ap, type StatefulModalSheetProps as aq, StatefulModalSheet as ar, type StatefulPopoverSheetProps as as, StatefulPopoverSheet as at, type StatefulModalBaseProps as au, StatefulModalBase as av, StatefulSheetWrapper as aw, type StatefulSheet as ax, StatefulPreferencesProvider as ay, StatefulGlobalPreferencesProvider as az, useReaderTransitions as b, type StatefulActionTriggerProps as c, type StatefulActionContainerProps as d, StatefulFullscreenTrigger as e, StatefulJumpToPositionContainer as f, StatefulJumpToPositionTrigger as g, StatefulSettingsWrapper as h, StatefulAudioSettingsContainer as i, StatefulVisualSettingsContainer as j, StatefulSettingsTrigger as k, StatefulTocContainer as l, StatefulTocTrigger as m, type StatefulActionIconProps as n, StatefulActionIcon as o, type StatefulOverflowMenuItemProps as p, StatefulOverflowMenuItem as q, type StatefulCollapsibleActionsBarProps as r, StatefulCollapsibleActionsBar as s, type StatefulOverflowMenuProps as t, useNavigator as u, StatefulOverflowMenu as v, useDocking as w, createDefaultPlugin as x, createAudioDefaultPlugin as y, type StatefulGroupWrapperProps as z };
590
+ export { StatefulSpacingGroup as $, StatefulGroupWrapper as A, type StatefulDropdownProps as B, StatefulDropdown as C, type StatefulNumberFieldProps as D, StatefulNumberField as E, type StatefulRadioGroupProps as F, StatefulRadioGroup as G, type StatefulSliderProps as H, StatefulSlider as I, type StatefulSliderWithPresetsProps as J, StatefulSliderWithPresets as K, type StatefulSwitchProps as L, StatefulSwitch as M, useEffectiveRange as N, type useGridNavigationProps as O, useGridNavigation as P, useGridTemplate as Q, usePlaceholder as R, type StatefulActionsMapObject as S, type ThPlugin as T, useReaderSetting as U, useSettingsComponentStatus as V, type StatefulSettingsItemProps as W, StatefulLetterSpacing as X, StatefulLineHeight as Y, StatefulParagraphIndent as Z, StatefulParagraphSpacing as _, usePublication as a, StatefulSpacingGroupContainer as a0, StatefulSpacingPresets as a1, StatefulWordSpacing as a2, ORDERED_LINE_HEIGHT_OPTIONS as a3, useLineHeight as a4, useSpacingPresets as a5, StatefulFontFamily as a6, UnstableStatefulFontWeight as a7, StatefulHyphens as a8, StatefulTextAlign as a9, StatefulGlobalPreferencesProvider as aA, type PositionStorage as aB, type StatefulReaderProps as aC, type ThPluginFactory as aD, type ReaderPlugins as aE, type ReaderComponentProps as aF, StatefulReaderWrapper as aG, StatefulTextGroup as aa, StatefulTextGroupContainer as ab, StatefulTextNormalize as ac, StatefulLigatures as ad, StatefulNoRuby as ae, StatefulPublisherStyles as af, StatefulTheme as ag, StatefulZoom as ah, type StatefulBottomSheetProps as ai, type ScrimPref as aj, StatefulBottomSheet as ak, type StatefulCompactPopoverSheetProps as al, StatefulCompactPopoverSheet as am, type StatefulDockedSheetProps as an, StatefulDockedSheet as ao, type StatefulFullScreenSheetProps as ap, StatefulFullScreenSheet as aq, type StatefulModalSheetProps as ar, StatefulModalSheet as as, type StatefulPopoverSheetProps as at, StatefulPopoverSheet as au, type StatefulModalBaseProps as av, StatefulModalBase as aw, StatefulSheetWrapper as ax, type StatefulSheet as ay, StatefulPreferencesProvider as az, useReaderTransitions as b, type StatefulActionTriggerProps as c, type StatefulActionContainerProps as d, StatefulFullscreenTrigger as e, StatefulJumpToPositionContainer as f, StatefulJumpToPositionTrigger as g, StatefulSettingsWrapper as h, StatefulAudioSettingsContainer as i, StatefulVisualSettingsContainer as j, StatefulSettingsTrigger as k, StatefulTocContainer as l, StatefulTocTrigger as m, type StatefulActionIconProps as n, StatefulActionIcon as o, type StatefulOverflowMenuItemProps as p, StatefulOverflowMenuItem as q, type StatefulCollapsibleActionsBarProps as r, StatefulCollapsibleActionsBar as s, type StatefulOverflowMenuProps as t, useNavigator as u, StatefulOverflowMenu as v, useDocking as w, createDefaultPlugin as x, createAudioDefaultPlugin as y, type StatefulGroupWrapperProps as z };
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "bugs": {
21
21
  "url": "https://github.com/edrlab/thorium-web/issues"
22
22
  },
23
- "version": "1.4.1",
23
+ "version": "1.5.0",
24
24
  "private": false,
25
25
  "files": [
26
26
  "./dist"
@@ -64,9 +64,9 @@
64
64
  "increment": "node scripts/increment.mjs"
65
65
  },
66
66
  "peerDependencies": {
67
- "@readium/css": "^2.0.2",
68
- "@readium/navigator": "^2.5.1",
69
- "@readium/navigator-html-injectables": "^2.4.1",
67
+ "@readium/css": "^2.0.4",
68
+ "@readium/navigator": "^2.5.3",
69
+ "@readium/navigator-html-injectables": "^2.4.2",
70
70
  "@readium/shared": "^2.2.0",
71
71
  "@reduxjs/toolkit": "^2.11.2",
72
72
  "i18next": "^25.8.13",
@@ -85,9 +85,9 @@
85
85
  },
86
86
  "dependencies": {
87
87
  "@edrlab/thorium-locales": "github:edrlab/thorium-locales",
88
- "@readium/css": "^2.0.2",
89
- "@readium/navigator": "^2.5.1",
90
- "@readium/navigator-html-injectables": "^2.4.1",
88
+ "@readium/css": "^2.0.4",
89
+ "@readium/navigator": "^2.5.3",
90
+ "@readium/navigator-html-injectables": "^2.4.2",
91
91
  "@readium/shared": "^2.2.0",
92
92
  "@reduxjs/toolkit": "^2.11.2",
93
93
  "classnames": "^2.5.1",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/core/Helpers/getPlatform.ts","../src/core/Helpers/keyboardUtilities.ts"],"names":["UnstableShortcutMetaKeywords","UnstableShortcutRepresentation"],"mappings":"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","file":"chunk-44PEO3DS.mjs","sourcesContent":["\"use client\";\n\n// Extend Navigator interface to include userAgentData\ndeclare global {\n interface Navigator {\n userAgentData?: {\n brands: Array<{brand: string; version: string}>;\n mobile: boolean;\n platform: string;\n };\n }\n}\n\n// See https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgentData\nexport const getPlatform = () => {\n if (typeof window !== \"undefined\") {\n const nav = window.navigator;\n\n if (nav.userAgentData) {\n return nav.userAgentData.platform.toLowerCase();\n }\n\n // Deprecated but userAgentData still experimental…\n if (typeof nav.platform !== \"undefined\") {\n // android navigator.platform is often set as \"linux\", so we have to check userAgent\n if (typeof nav.userAgent !== \"undefined\" && /android/.test(nav.userAgent.toLowerCase())) {\n return \"android\";\n }\n return nav.platform.toLowerCase();\n }\n }\n\n return \"unknown\";\n};\n\nexport const isMacish = () => {\n const MacOSPattern = /mac|ipod|iphone|ipad/i;\n const platform = getPlatform();\n return MacOSPattern.test(platform);\n}\n\n// “Desktop-class” iPadOS\nexport const isIpadOS = () => {\n return !!(navigator.maxTouchPoints \n && navigator.maxTouchPoints > 2 \n && navigator.userAgent.includes(\"Intel\"));\n}\n\n// Covers all iOS/iPadOS: iPhone/iPod/iPad by platform string + desktop-class iPadOS by UA sniff\nexport const isIOSish = () => {\n const AppleMobilePattern = /ipod|iphone|ipad/i;\n const platform = getPlatform();\n if (AppleMobilePattern.test(platform)) {\n return true;\n } else {\n return isIpadOS();\n }\n}","\"use client\";\n\nimport { isMacish } from \"./getPlatform\";\n\nexport interface UnstableKey {\n [key: string]: string;\n longform: string;\n shortform: string;\n}\n\nexport interface UnstableMetaKey extends UnstableKey {\n modifier: \"altKey\" | \"ctrlKey\" | \"metaKey\" | \"shiftKey\";\n symbol: \"⌥\" | \"^\" | \"⌘\" | \"⊞\" | \"⇧\";\n}\n\nexport interface UnstablePlatformModifier extends UnstableKey {\n modifier: \"ctrlKey\" | \"metaKey\";\n symbol: \"^\" | \"⌘\";\n}\n\nexport interface UnstableMetaKeys {\n [key: string]: UnstableMetaKey;\n altKey: UnstableMetaKey;\n ctrlKey: UnstableMetaKey;\n metaKey: UnstableMetaKey;\n shiftKey: UnstableMetaKey;\n}\n\nexport enum UnstableShortcutMetaKeywords {\n alt = \"altKey\",\n ctrl = \"ctrlKey\",\n meta = \"metaKey\",\n platform = \"platformKey\",\n shift = \"shiftKey\"\n}\n\nexport enum UnstableShortcutRepresentation {\n symbol = \"symbol\",\n short = \"shortform\",\n long = \"longform\"\n};\n\nexport interface UnstableShortcut {\n className?: string;\n rawForm: string;\n representation?: UnstableShortcutRepresentation; \n joiner?: string;\n}\n\nexport interface UnstablePShortcut {\n key?: string;\n char?: string;\n modifiers: {\n [key: string]: boolean;\n altKey: boolean;\n ctrlKey: boolean;\n metaKey: boolean;\n platformKey: boolean;\n shiftKey: boolean;\n }\n}\n\nconst altModifier: UnstableMetaKey = {\n longform: \"Option\",\n shortform: \"Alt\",\n modifier: \"altKey\",\n symbol: \"⌥\"\n}\n\nconst ctrlModifier: UnstableMetaKey & UnstablePlatformModifier = {\n longform: \"Control\",\n shortform: \"Ctrl\",\n modifier: \"ctrlKey\",\n symbol: \"^\"\n}\n\nconst metaModifierMac: UnstableMetaKey & UnstablePlatformModifier = {\n longform: \"Command\",\n shortform: \"Cmd\",\n modifier: \"metaKey\",\n symbol: \"⌘\" \n}\n\nconst metaModifierWin: UnstableMetaKey = {\n longform: \"Windows\",\n shortform: \"Win\",\n modifier: \"metaKey\",\n symbol: \"⊞\"\n}\n\nconst shiftModifier: UnstableMetaKey = {\n longform: \"Shift\",\n shortform: \"Shift\",\n modifier: \"shiftKey\",\n symbol: \"⇧\"\n}\n\nexport const metaKeys: UnstableMetaKeys = {\n altKey: altModifier,\n ctrlKey: ctrlModifier,\n metaKey: isMacish() ? metaModifierMac : metaModifierWin,\n shiftKey: shiftModifier\n}\n\n// Platform modifier differs from Mac to Windows so we have to get it dynamically\n\nexport const defaultPlatformModifier = ctrlModifier;\n\nexport const getPlatformModifier = (): UnstablePlatformModifier => {\n if (isMacish()) {\n return metaModifierMac;\n } else {\n return ctrlModifier;\n }\n}\n\nexport const buildShortcut = (str: string) => {\n let shortcutObj: UnstablePShortcut = {\n key: \"\",\n char: \"\",\n modifiers: {\n altKey: false,\n ctrlKey: false,\n metaKey: false,\n platformKey: false,\n shiftKey: false\n }\n }\n \n const shortcutArray = str.split(/\\s*?[+-]\\s*?/);\n\n shortcutArray.filter((val) => {\n if ((Object.values(UnstableShortcutMetaKeywords) as string[]).includes(val)) {\n const trimmedKey = val.trim();\n shortcutObj.modifiers[trimmedKey] = true;\n } else {\n shortcutObj.char = val.trim().toUpperCase();\n shortcutObj.key = `Key${ val.trim().toUpperCase() }`;\n }\n });\n\n return shortcutObj.key ? shortcutObj : null;\n}"]}