@edrlab/thorium-web 1.0.0-beta.8 → 1.0.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/{actionsReducer-ZN1H6lWp.d.mts → actionsReducer-CpRAplzM.d.mts} +1 -1
- package/dist/{chunk-NA3KMUS4.mjs → chunk-2KTSTQ62.mjs} +7 -7
- package/dist/chunk-2KTSTQ62.mjs.map +1 -0
- package/dist/{chunk-ITT2P3LQ.mjs → chunk-7PVZJQXV.mjs} +3 -3
- package/dist/{chunk-ITT2P3LQ.mjs.map → chunk-7PVZJQXV.mjs.map} +1 -1
- package/dist/{chunk-SN7KBNGK.mjs → chunk-DSQWBBAX.mjs} +3 -3
- package/dist/{chunk-SN7KBNGK.mjs.map → chunk-DSQWBBAX.mjs.map} +1 -1
- package/dist/{chunk-DYR64DDH.mjs → chunk-EDUSR3DX.mjs} +21 -3
- package/dist/chunk-EDUSR3DX.mjs.map +1 -0
- package/dist/{chunk-HUMV6I5L.mjs → chunk-KJMXTNYK.mjs} +3 -2
- package/dist/chunk-KJMXTNYK.mjs.map +1 -0
- package/dist/{chunk-MS2TXXYX.mjs → chunk-R5KZTO4S.mjs} +3 -3
- package/dist/{chunk-MS2TXXYX.mjs.map → chunk-R5KZTO4S.mjs.map} +1 -1
- package/dist/{chunk-WTRUE2ES.mjs → chunk-ZZS7TTFX.mjs} +4 -3
- package/dist/chunk-ZZS7TTFX.mjs.map +1 -0
- package/dist/components/Epub/index.d.mts +8 -8
- package/dist/components/Epub/index.mjs +64 -49
- package/dist/components/Epub/index.mjs.map +1 -1
- package/dist/{const-PMmwYJND.d.mts → const-CWJ3Tl-E.d.mts} +4 -3
- package/dist/core/Components/index.d.mts +8 -3
- package/dist/core/Components/index.mjs +2 -2
- package/dist/core/Helpers/index.d.mts +2 -2
- package/dist/core/Helpers/index.mjs +2 -2
- package/dist/core/Hooks/index.d.mts +3 -3
- package/dist/core/Hooks/index.mjs +2 -2
- package/dist/{enums-zr26wZEt.d.mts → enums-C9lRPPoF.d.mts} +1 -0
- package/dist/i18n/index.mjs +3 -3
- package/dist/lib/index.d.mts +5 -5
- package/dist/lib/index.mjs +2 -2
- package/dist/preferences/index.d.mts +6 -6
- package/dist/preferences/index.mjs +2 -2
- package/dist/{useBreakpoints-D4hBQiGq.d.mts → useBreakpoints-cngn8st0.d.mts} +1 -1
- package/dist/{useEpubNavigator-DFRJ_tHa.d.mts → useEpubNavigator-DpvqVgNu.d.mts} +2 -2
- package/dist/{usePreferences-DN1ACFM8.d.mts → usePreferences-D81fL5N6.d.mts} +1 -1
- package/package.json +27 -36
- package/dist/chunk-DYR64DDH.mjs.map +0 -1
- package/dist/chunk-HUMV6I5L.mjs.map +0 -1
- package/dist/chunk-NA3KMUS4.mjs.map +0 -1
- package/dist/chunk-WTRUE2ES.mjs.map +0 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { useI18n } from '../../chunk-
|
|
2
|
-
export { DEFAULT_CONFIG, ThI18nProvider, Trans, i18n, initI18n, useI18n } from '../../chunk-
|
|
3
|
-
import { require_debounce, useAppSelector, useAppDispatch, setColumnCount, setFontFamily, setFontWeight, setHyphens, setScroll, setLetterSpacing, setPublisherStyles, setLineHeight, setParagraphIndent, setParagraphSpacing, setSettingsContainer, setTextAlign, setTextNormalization, setTheme, setWordSpacing, setFontSize, setFullscreen, setActionOpen, dockAction, setReducedTransparency, setReducedMotion, setMonochrome, setForcedColors, setContrast, setColorScheme, setBreakpoint, setTimeline, setImmersive, setHovering, setArrows, toggleImmersive, setProgression, useAppStore, toggleActionOpen, setDirection, setPlatformModifier, setRTL, setFXL, setRunningHead, setOverflow, setScrollAffordance, setPublicationStart, setPublicationEnd, setPositionsList, setLoading, setTocEntry, collapseDockPanel, expandDockPanel, activateDockPanel, deactivateDockPanel, setDockPanelWidth } from '../../chunk-
|
|
4
|
-
export { ThStoreProvider, actionsSlice, activateDockPanel, collapseDockPanel, deactivateDockPanel, dockAction, expandDockPanel, makeStore, publicationSlice, readerSlice, setActionOpen, setArrows, setBreakpoint, setColorScheme, setColumnCount, setContrast, setDirection, setDockPanelWidth, setFXL, setFontFamily, setFontSize, setFontWeight, setForcedColors, setFullscreen, setHovering, setHyphens, setImmersive, setLetterSpacing, setLineHeight, setLineLength, setLoading, setMonochrome, setOverflow, setParagraphIndent, setParagraphSpacing, setPlatformModifier, setPositionsList, setProgression, setPublicationEnd, setPublicationStart, setPublisherStyles, setRTL, setReducedMotion, setReducedTransparency, setRunningHead, setScroll, setScrollAffordance, setSettingsContainer, setTextAlign, setTextNormalization, setTheme, setTimeline, setTocEntry, setTocTree, setWordSpacing, settingsSlice, themeSlice, toggleActionOpen, toggleImmersive, useAppDispatch, useAppSelector, useAppStore } from '../../chunk-
|
|
5
|
-
import { defaultFontFamilyOptions, usePreferences, defaultLetterSpacing, defaultLineHeights, defaultParagraphIndent, defaultParagraphSpacing, defaultSpacingSettingsSubpanel, defaultSpacingSettingsMain, defaultTextSettingsSubpanel, defaultTextSettingsMain, usePreferenceKeys, buildThemeObject, defaultWordSpacing, defaultFontSize, useTheming } from '../../chunk-
|
|
6
|
-
export { ThPreferencesProvider, usePreferences, useTheming } from '../../chunk-
|
|
7
|
-
import { ThRadioGroup, ThDropdown, ThSlider, ThSwitch, ThNumberField, ThSettingsWrapper, ThActionButton, ThMenu, ThCollapsibleActionsBar, ThMenuItem, ThPopover, ThContainerHeader, ThNavigationButton, ThContainerBody, ThBottomSheet, ThCloseButton, ThModal, ThDockedPanel, ThTypedComponentRenderer, useActions, ThForm, ThFormNumberField, ThFormSearchField, ThLoader, ThGrid, ThInteractiveOverlay, ThHeader, ThRunningHead, ThFooter, ThLink, ThLibrary, ThHome, ThPagination, ThProgression } from '../../chunk-
|
|
1
|
+
import { useI18n } from '../../chunk-7PVZJQXV.mjs';
|
|
2
|
+
export { DEFAULT_CONFIG, ThI18nProvider, Trans, i18n, initI18n, useI18n } from '../../chunk-7PVZJQXV.mjs';
|
|
3
|
+
import { require_debounce, useAppSelector, useAppDispatch, setColumnCount, setFontFamily, setFontWeight, setHyphens, setScroll, setLetterSpacing, setPublisherStyles, setLineHeight, setParagraphIndent, setParagraphSpacing, setSettingsContainer, setTextAlign, setTextNormalization, setTheme, setWordSpacing, setFontSize, setFullscreen, setActionOpen, dockAction, setReducedTransparency, setReducedMotion, setMonochrome, setForcedColors, setContrast, setColorScheme, setBreakpoint, setTimeline, setImmersive, setHovering, setArrows, toggleImmersive, setProgression, useAppStore, toggleActionOpen, setDirection, setPlatformModifier, setRTL, setFXL, setRunningHead, setOverflow, setScrollAffordance, setPublicationStart, setPublicationEnd, setPositionsList, setLoading, setTocEntry, collapseDockPanel, expandDockPanel, activateDockPanel, deactivateDockPanel, setDockPanelWidth } from '../../chunk-R5KZTO4S.mjs';
|
|
4
|
+
export { ThStoreProvider, actionsSlice, activateDockPanel, collapseDockPanel, deactivateDockPanel, dockAction, expandDockPanel, makeStore, publicationSlice, readerSlice, setActionOpen, setArrows, setBreakpoint, setColorScheme, setColumnCount, setContrast, setDirection, setDockPanelWidth, setFXL, setFontFamily, setFontSize, setFontWeight, setForcedColors, setFullscreen, setHovering, setHyphens, setImmersive, setLetterSpacing, setLineHeight, setLineLength, setLoading, setMonochrome, setOverflow, setParagraphIndent, setParagraphSpacing, setPlatformModifier, setPositionsList, setProgression, setPublicationEnd, setPublicationStart, setPublisherStyles, setRTL, setReducedMotion, setReducedTransparency, setRunningHead, setScroll, setScrollAffordance, setSettingsContainer, setTextAlign, setTextNormalization, setTheme, setTimeline, setTocEntry, setTocTree, setWordSpacing, settingsSlice, themeSlice, toggleActionOpen, toggleImmersive, useAppDispatch, useAppSelector, useAppStore } from '../../chunk-R5KZTO4S.mjs';
|
|
5
|
+
import { defaultFontFamilyOptions, usePreferences, defaultLetterSpacing, defaultLineHeights, defaultParagraphIndent, defaultParagraphSpacing, defaultSpacingSettingsSubpanel, defaultSpacingSettingsMain, defaultTextSettingsSubpanel, defaultTextSettingsMain, usePreferenceKeys, buildThemeObject, defaultWordSpacing, defaultFontSize, useTheming } from '../../chunk-ZZS7TTFX.mjs';
|
|
6
|
+
export { ThPreferencesProvider, usePreferences, useTheming } from '../../chunk-ZZS7TTFX.mjs';
|
|
7
|
+
import { ThRadioGroup, ThDropdown, ThSlider, ThSwitch, ThNumberField, ThSettingsWrapper, ThActionButton, ThMenu, ThCollapsibleActionsBar, ThMenuItem, ThPopover, ThContainerHeader, ThNavigationButton, ThContainerBody, ThBottomSheet, ThCloseButton, ThModal, ThDockedPanel, ThTypedComponentRenderer, useActions, ThForm, ThFormNumberField, ThFormSearchField, ThLoader, ThGrid, ThInteractiveOverlay, ThHeader, ThRunningHead, ThFooter, ThLink, ThLibrary, ThHome, ThBackArrow, ThPagination, ThProgression } from '../../chunk-EDUSR3DX.mjs';
|
|
8
8
|
import '../../chunk-MLEYTQGK.mjs';
|
|
9
|
-
import { makeBreakpointsMap, isKeyboardTriggered, isActiveElement, isInteractiveElement } from '../../chunk-
|
|
10
|
-
export { isActiveElement, isInteractiveElement, isKeyboardTriggered, makeBreakpointsMap } from '../../chunk-
|
|
9
|
+
import { makeBreakpointsMap, isKeyboardTriggered, isActiveElement, isInteractiveElement } from '../../chunk-DSQWBBAX.mjs';
|
|
10
|
+
export { isActiveElement, isInteractiveElement, isKeyboardTriggered, makeBreakpointsMap } from '../../chunk-DSQWBBAX.mjs';
|
|
11
11
|
import { propsToCSSVars } from '../../chunk-TTGURRX3.mjs';
|
|
12
12
|
export { propsToCSSVars } from '../../chunk-TTGURRX3.mjs';
|
|
13
13
|
import { isIOSish, getPlatformModifier, buildShortcut, metaKeys } from '../../chunk-IEYR7QV7.mjs';
|
|
14
14
|
export { UnstableShortcutMetaKeywords, UnstableShortcutRepresentation, buildShortcut, defaultPlatformModifier, getPlatform, getPlatformModifier, isIOSish, isIpadOS, isMacish, metaKeys } from '../../chunk-IEYR7QV7.mjs';
|
|
15
|
-
import { useEpubNavigator, useFullscreen, usePrevious, useLocalStorage, useTimeline } from '../../chunk-
|
|
16
|
-
export { useEpubNavigator } from '../../chunk-
|
|
15
|
+
import { useEpubNavigator, useFullscreen, usePrevious, useLocalStorage, useTimeline } from '../../chunk-2KTSTQ62.mjs';
|
|
16
|
+
export { useEpubNavigator } from '../../chunk-2KTSTQ62.mjs';
|
|
17
17
|
import '../../chunk-BNPR6V7V.mjs';
|
|
18
18
|
import '../../chunk-NQ2ZSGCX.mjs';
|
|
19
|
-
import { __toESM, ThDockingTypes, ThSheetTypes } from '../../chunk-
|
|
19
|
+
import { __toESM, ThDockingTypes, ThSheetTypes } from '../../chunk-KJMXTNYK.mjs';
|
|
20
20
|
import React50, { createContext, useState, useMemo, useCallback, useEffect, useRef, useContext, isValidElement, cloneElement } from 'react';
|
|
21
21
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
22
22
|
import settingsStyles3 from '../../settings.module-O2SOKTIN.module.css';
|
|
23
23
|
import { ListBox, ListBoxItem, Radio, Text, useFilter, Tree, TreeItem, TreeItemContent, Button, Collection, Link, Keyboard, Toolbar } from 'react-aria-components';
|
|
24
24
|
import { fontWeightRangeConfig, TextAlignment } from '@readium/navigator';
|
|
25
|
-
import
|
|
25
|
+
import classNames10 from 'classnames';
|
|
26
26
|
import readerSharedUI4 from '../../readerSharedUI.module-Y2VDWFS5.module.css';
|
|
27
27
|
import '../../reader-NGCQJKLX.css';
|
|
28
28
|
import arrowStyles2 from '../../readerArrowButton.module-EFLOIADG.module.css';
|
|
29
29
|
import { I18nProvider, useFocusWithin } from 'react-aria';
|
|
30
|
-
import { HttpFetcher, Manifest, Publication, ReadingProgression,
|
|
30
|
+
import { HttpFetcher, Manifest, Publication, ReadingProgression, Layout, Link as Link$1 } from '@readium/shared';
|
|
31
31
|
import dockingStyles from '../../docking.module-TDNYZX4H.module.css';
|
|
32
32
|
import { PanelGroup, Panel, PanelResizeHandle } from 'react-resizable-panels';
|
|
33
33
|
import readerHeaderStyles from '../../readerHeader.module-RNGQFLVS.module.css';
|
|
@@ -230,10 +230,10 @@ var StatefulSlider = ({
|
|
|
230
230
|
{
|
|
231
231
|
...props,
|
|
232
232
|
...standalone ? { label } : { "aria-label": label },
|
|
233
|
-
className:
|
|
233
|
+
className: classNames10(settingsStyles3.readerSettingsSlider, standalone ? settingsStyles3.readerSettingsGroup : ""),
|
|
234
234
|
compounds: {
|
|
235
235
|
label: {
|
|
236
|
-
className:
|
|
236
|
+
className: classNames10(settingsStyles3.readerSettingsLabel, settingsStyles3.readerSettingsSliderLabel)
|
|
237
237
|
},
|
|
238
238
|
output: {
|
|
239
239
|
className: settingsStyles3.readerSettingsSliderOutput
|
|
@@ -372,7 +372,7 @@ var StatefulNumberField = ({
|
|
|
372
372
|
{
|
|
373
373
|
...props,
|
|
374
374
|
...standalone ? { label } : { "aria-label": label },
|
|
375
|
-
className:
|
|
375
|
+
className: classNames10(settingsStyles3.readerSettingsNumbfield, standalone ? settingsStyles3.readerSettingsGroup : ""),
|
|
376
376
|
compounds: {
|
|
377
377
|
group: {
|
|
378
378
|
className: settingsStyles3.readerSettingsGroupWrapper
|
|
@@ -683,16 +683,16 @@ var StatefulGroupWrapper = ({
|
|
|
683
683
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
684
684
|
ThSettingsWrapper,
|
|
685
685
|
{
|
|
686
|
-
className:
|
|
686
|
+
className: classNames10(settingsStyles3.readerSettingsGroup, settingsStyles3.readerSettingsAdvancedGroup),
|
|
687
687
|
items: componentsMap,
|
|
688
688
|
prefs: resolvedPrefs,
|
|
689
689
|
compounds: {
|
|
690
690
|
label: heading,
|
|
691
691
|
heading: {
|
|
692
|
-
className:
|
|
692
|
+
className: classNames10(settingsStyles3.readerSettingsLabel, settingsStyles3.readerSettingsGroupLabel)
|
|
693
693
|
},
|
|
694
694
|
button: {
|
|
695
|
-
className:
|
|
695
|
+
className: classNames10(readerSharedUI4.icon, settingsStyles3.readerSettingsAdvancedIcon),
|
|
696
696
|
"aria-label": moreLabel,
|
|
697
697
|
compounds: {
|
|
698
698
|
tooltipTrigger: {
|
|
@@ -1060,11 +1060,11 @@ var StatefulTheme = ({ mapArrowNav }) => {
|
|
|
1060
1060
|
label: t("reader.settings.themes.title"),
|
|
1061
1061
|
value: theme,
|
|
1062
1062
|
onChange: async (val) => await updatePreference(val),
|
|
1063
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
1063
|
+
children: /* @__PURE__ */ jsx("div", { className: classNames10(settingsStyles3.readerSettingsRadioWrapper, settingsStyles3.readerSettingsThemesWrapper), children: themeItems.current.map(
|
|
1064
1064
|
(themeItem) => /* @__PURE__ */ jsx(
|
|
1065
1065
|
Radio,
|
|
1066
1066
|
{
|
|
1067
|
-
className:
|
|
1067
|
+
className: classNames10(
|
|
1068
1068
|
settingsStyles3.readerSettingsRadio,
|
|
1069
1069
|
settingsStyles3.readerSettingsThemeRadio
|
|
1070
1070
|
),
|
|
@@ -1300,7 +1300,7 @@ var DockHandle = ({
|
|
|
1300
1300
|
className: dockingStyles.dockResizeHandle,
|
|
1301
1301
|
disabled: !isResizable,
|
|
1302
1302
|
tabIndex: isPopulated ? 0 : -1,
|
|
1303
|
-
children: isResizable && hasDragIndicator && /* @__PURE__ */ jsx("div", { className:
|
|
1303
|
+
children: isResizable && hasDragIndicator && /* @__PURE__ */ jsx("div", { className: classNames10(dockingStyles.dockResizeHandleGrab, classFromFlow()) })
|
|
1304
1304
|
}
|
|
1305
1305
|
) });
|
|
1306
1306
|
};
|
|
@@ -1391,7 +1391,7 @@ var DockPanel = ({
|
|
|
1391
1391
|
{
|
|
1392
1392
|
id: flow,
|
|
1393
1393
|
"aria-label": makeDockLabel(),
|
|
1394
|
-
className:
|
|
1394
|
+
className: classNames10(dockingStyles.dockPanelContainer, dockClassName)
|
|
1395
1395
|
}
|
|
1396
1396
|
)
|
|
1397
1397
|
}
|
|
@@ -1472,9 +1472,13 @@ var StatefulBackLink = ({
|
|
|
1472
1472
|
}) => {
|
|
1473
1473
|
const { t } = useI18n();
|
|
1474
1474
|
const RSPrefs = usePreferences();
|
|
1475
|
-
const
|
|
1475
|
+
const direction = useAppSelector((state) => state.reader.direction);
|
|
1476
|
+
const isRTL = direction === "rtl" /* rtl */;
|
|
1477
|
+
const variant = RSPrefs.header.backLink?.variant || "arrow" /* arrow */;
|
|
1476
1478
|
const href = RSPrefs.header.backLink?.href;
|
|
1477
1479
|
const content = RSPrefs.header.backLink?.content;
|
|
1480
|
+
const visibility = RSPrefs.header.backLink?.visibility || "partially";
|
|
1481
|
+
const backLinkClassName = classNames10(backLinkStyles.backLink, visibility === "always" ? readerSharedUI4.alwaysVisible : readerSharedUI4.partiallyVisible);
|
|
1478
1482
|
const compounds = {
|
|
1479
1483
|
tooltipTrigger: {
|
|
1480
1484
|
delay: RSPrefs.theming.arrow.tooltipDelay,
|
|
@@ -1487,11 +1491,22 @@ var StatefulBackLink = ({
|
|
|
1487
1491
|
};
|
|
1488
1492
|
if (!href) return null;
|
|
1489
1493
|
switch (variant) {
|
|
1494
|
+
case "arrow" /* arrow */:
|
|
1495
|
+
return /* @__PURE__ */ jsx("div", { className, children: /* @__PURE__ */ jsx(
|
|
1496
|
+
ThBackArrow,
|
|
1497
|
+
{
|
|
1498
|
+
className: backLinkClassName,
|
|
1499
|
+
href,
|
|
1500
|
+
direction: isRTL ? "right" : "left",
|
|
1501
|
+
"aria-label": t("reader.app.header.backLink.trigger"),
|
|
1502
|
+
compounds
|
|
1503
|
+
}
|
|
1504
|
+
) });
|
|
1490
1505
|
case "home" /* home */:
|
|
1491
1506
|
return /* @__PURE__ */ jsx("div", { className, children: /* @__PURE__ */ jsx(
|
|
1492
1507
|
ThHome,
|
|
1493
1508
|
{
|
|
1494
|
-
className:
|
|
1509
|
+
className: backLinkClassName,
|
|
1495
1510
|
href,
|
|
1496
1511
|
"aria-label": t("reader.app.header.backLink.trigger"),
|
|
1497
1512
|
compounds
|
|
@@ -1501,7 +1516,7 @@ var StatefulBackLink = ({
|
|
|
1501
1516
|
return /* @__PURE__ */ jsx("div", { className, children: /* @__PURE__ */ jsx(
|
|
1502
1517
|
ThLibrary,
|
|
1503
1518
|
{
|
|
1504
|
-
className:
|
|
1519
|
+
className: backLinkClassName,
|
|
1505
1520
|
href,
|
|
1506
1521
|
"aria-label": t("reader.app.header.backLink.trigger"),
|
|
1507
1522
|
compounds
|
|
@@ -1536,7 +1551,7 @@ var StatefulBackLink = ({
|
|
|
1536
1551
|
return /* @__PURE__ */ jsx("div", { className, children: /* @__PURE__ */ jsx(
|
|
1537
1552
|
ThLink,
|
|
1538
1553
|
{
|
|
1539
|
-
className:
|
|
1554
|
+
className: backLinkClassName,
|
|
1540
1555
|
href,
|
|
1541
1556
|
"aria-label": t("reader.app.header.backLink.trigger"),
|
|
1542
1557
|
compounds,
|
|
@@ -1586,7 +1601,7 @@ var StatefulActionIcon = ({
|
|
|
1586
1601
|
ThActionButton,
|
|
1587
1602
|
{
|
|
1588
1603
|
ref: triggerRef,
|
|
1589
|
-
className:
|
|
1604
|
+
className: classNames10(readerSharedUI4.icon, handleClassNameFromState(), props.className),
|
|
1590
1605
|
onPress: props.onPress || defaultOnPressFunc,
|
|
1591
1606
|
onKeyDown: blurOnEsc,
|
|
1592
1607
|
onFocus: handleImmersive,
|
|
@@ -1859,7 +1874,7 @@ var StatefulReaderArrowButton = ({
|
|
|
1859
1874
|
onPress: (e) => onPress && handleOnPress(e, onPress),
|
|
1860
1875
|
onHoverChange: (isHovering2) => setIsHovering(isHovering2),
|
|
1861
1876
|
onKeyDown: blurOnEsc,
|
|
1862
|
-
className:
|
|
1877
|
+
className: classNames10(className, handleClassNameFromSpaceProp(), handleClassNameFromState()),
|
|
1863
1878
|
isDisabled,
|
|
1864
1879
|
preventFocusOnPress: true,
|
|
1865
1880
|
...props,
|
|
@@ -2483,7 +2498,7 @@ var StatefulPopoverSheet = ({
|
|
|
2483
2498
|
updateState: resetFocus
|
|
2484
2499
|
},
|
|
2485
2500
|
placement: placement || "bottom",
|
|
2486
|
-
className:
|
|
2501
|
+
className: classNames10(sheetStyles2.popOverSheet, className),
|
|
2487
2502
|
isOpen,
|
|
2488
2503
|
onOpenChange,
|
|
2489
2504
|
isKeyboardDismissDisabled: dismissEscapeKeyClose,
|
|
@@ -2513,7 +2528,7 @@ var StatefulPopoverSheet = ({
|
|
|
2513
2528
|
direction: direction === "ltr" ? "left" : "right",
|
|
2514
2529
|
label: t("reader.app.back.trigger"),
|
|
2515
2530
|
ref: popoverCloseRef,
|
|
2516
|
-
className:
|
|
2531
|
+
className: classNames10(className, readerSharedUI4.backButton),
|
|
2517
2532
|
"aria-label": t("reader.app.back.trigger"),
|
|
2518
2533
|
onPress: onClosePress
|
|
2519
2534
|
}
|
|
@@ -2730,7 +2745,7 @@ var StatefulBottomSheet = ({
|
|
|
2730
2745
|
prefersReducedMotion,
|
|
2731
2746
|
compounds: {
|
|
2732
2747
|
container: {
|
|
2733
|
-
className:
|
|
2748
|
+
className: classNames10(sheetStyles2.bottomSheetModal, detentClassName),
|
|
2734
2749
|
ref: sheetContainerRef,
|
|
2735
2750
|
style: {
|
|
2736
2751
|
maxWidth: maxWidthPref
|
|
@@ -2742,15 +2757,15 @@ var StatefulBottomSheet = ({
|
|
|
2742
2757
|
onKeyDown: onDragKeyCallback
|
|
2743
2758
|
},
|
|
2744
2759
|
content: {
|
|
2745
|
-
className:
|
|
2760
|
+
className: classNames10(sheetStyles2.bottomSheet, className),
|
|
2746
2761
|
disableDrag: true
|
|
2747
2762
|
},
|
|
2748
2763
|
scroller: {
|
|
2749
|
-
className:
|
|
2764
|
+
className: classNames10(sheetStyles2.bottomSheetScroller, sheetStyles2.sheetBody),
|
|
2750
2765
|
draggable: false
|
|
2751
2766
|
},
|
|
2752
2767
|
backdrop: {
|
|
2753
|
-
className:
|
|
2768
|
+
className: classNames10(sheetStyles2.bottomSheetBackdrop, scrimClassName),
|
|
2754
2769
|
style: { "--defaults-scrim": scrimPref.override }
|
|
2755
2770
|
}
|
|
2756
2771
|
},
|
|
@@ -2771,7 +2786,7 @@ var StatefulBottomSheet = ({
|
|
|
2771
2786
|
direction: direction === "ltr" ? "left" : "right",
|
|
2772
2787
|
label: t("reader.app.back.trigger"),
|
|
2773
2788
|
ref: bottomSheetCloseRef,
|
|
2774
|
-
className:
|
|
2789
|
+
className: classNames10(className, readerSharedUI4.backButton),
|
|
2775
2790
|
"aria-label": t("reader.app.back.trigger"),
|
|
2776
2791
|
onPress: onClosePress
|
|
2777
2792
|
}
|
|
@@ -2835,7 +2850,7 @@ var StatefulFullScreenSheet = ({
|
|
|
2835
2850
|
isOpen,
|
|
2836
2851
|
onOpenChange,
|
|
2837
2852
|
isDismissable: true,
|
|
2838
|
-
className:
|
|
2853
|
+
className: classNames10(sheetStyles2.fullScreenSheet, className),
|
|
2839
2854
|
isKeyboardDismissDisabled: dismissEscapeKeyClose,
|
|
2840
2855
|
style: {
|
|
2841
2856
|
"--sheet-sticky-header": fullScreenHeaderRef.current ? `${fullScreenHeaderRef.current.clientHeight}px` : void 0
|
|
@@ -2858,7 +2873,7 @@ var StatefulFullScreenSheet = ({
|
|
|
2858
2873
|
direction: direction === "ltr" ? "left" : "right",
|
|
2859
2874
|
label: t("reader.app.back.trigger"),
|
|
2860
2875
|
ref: fullScreenCloseRef,
|
|
2861
|
-
className:
|
|
2876
|
+
className: classNames10(className, readerSharedUI4.backButton),
|
|
2862
2877
|
"aria-label": t("reader.app.back.trigger"),
|
|
2863
2878
|
onPress: onClosePress
|
|
2864
2879
|
}
|
|
@@ -2925,7 +2940,7 @@ var StatefulDockedSheet = ({
|
|
|
2925
2940
|
autoFocus: false,
|
|
2926
2941
|
updateState: resetFocus
|
|
2927
2942
|
},
|
|
2928
|
-
className:
|
|
2943
|
+
className: classNames10(sheetStyles2.dockedSheet, className, classFromFlow()),
|
|
2929
2944
|
style: {
|
|
2930
2945
|
"--sheet-sticky-header": dockedSheetHeaderRef.current ? `${dockedSheetHeaderRef.current.clientHeight}px` : void 0
|
|
2931
2946
|
},
|
|
@@ -2947,7 +2962,7 @@ var StatefulDockedSheet = ({
|
|
|
2947
2962
|
direction: direction === "ltr" ? "left" : "right",
|
|
2948
2963
|
label: t("reader.app.back.trigger"),
|
|
2949
2964
|
ref: dockedSheetCloseRef,
|
|
2950
|
-
className:
|
|
2965
|
+
className: classNames10(className, readerSharedUI4.backButton),
|
|
2951
2966
|
"aria-label": t("reader.app.back.trigger"),
|
|
2952
2967
|
onPress: onClosePress
|
|
2953
2968
|
}
|
|
@@ -3659,7 +3674,7 @@ var createDefaultPlugin = () => {
|
|
|
3659
3674
|
id: "core",
|
|
3660
3675
|
name: "Core Components",
|
|
3661
3676
|
description: "Default components for Thorium Web StatefulReader",
|
|
3662
|
-
version: "1.0.0
|
|
3677
|
+
version: "1.0.0",
|
|
3663
3678
|
components: {
|
|
3664
3679
|
actions: {
|
|
3665
3680
|
["fullscreen" /* fullscreen */]: {
|
|
@@ -4041,7 +4056,7 @@ var StatefulReader = ({
|
|
|
4041
4056
|
}, [handleProgression, setLocalData]);
|
|
4042
4057
|
onFXLPositionChange(handleFXLProgression);
|
|
4043
4058
|
const initReadingEnv = async () => {
|
|
4044
|
-
if (navLayout() ===
|
|
4059
|
+
if (navLayout() === Layout.fixed) {
|
|
4045
4060
|
const cLoc = currentLocator();
|
|
4046
4061
|
if (cLoc) {
|
|
4047
4062
|
handleFXLProgression(cLoc);
|
|
@@ -4090,7 +4105,7 @@ var StatefulReader = ({
|
|
|
4090
4105
|
p.observe(window);
|
|
4091
4106
|
},
|
|
4092
4107
|
positionChanged: async function(locator) {
|
|
4093
|
-
if (navLayout()
|
|
4108
|
+
if (navLayout() !== Layout.fixed) {
|
|
4094
4109
|
const debouncedHandleProgression = (0, import_debounce2.default)(
|
|
4095
4110
|
async () => {
|
|
4096
4111
|
handleProgression(locator);
|
|
@@ -4128,7 +4143,7 @@ var StatefulReader = ({
|
|
|
4128
4143
|
miscPointer: function(_amount) {
|
|
4129
4144
|
},
|
|
4130
4145
|
scroll: function(_delta) {
|
|
4131
|
-
if (cache.current.settings.scroll && navLayout()
|
|
4146
|
+
if (cache.current.settings.scroll && navLayout() !== Layout.fixed) {
|
|
4132
4147
|
if (isScrollStart() || isScrollEnd()) {
|
|
4133
4148
|
if (
|
|
4134
4149
|
// Keep consistent with pagination behavior
|
|
@@ -4286,7 +4301,7 @@ var StatefulReader = ({
|
|
|
4286
4301
|
useEffect(() => {
|
|
4287
4302
|
if (!publication) return;
|
|
4288
4303
|
dispatch(setRTL(publication.metadata.effectiveReadingProgression === ReadingProgression.rtl));
|
|
4289
|
-
dispatch(setFXL(publication.metadata.
|
|
4304
|
+
dispatch(setFXL(publication.metadata.effectiveLayout === Layout.fixed));
|
|
4290
4305
|
const pubTitle = publication.metadata.title.getTranslation("en");
|
|
4291
4306
|
dispatch(setRunningHead(pubTitle));
|
|
4292
4307
|
dispatch(setProgression({ currentPublication: pubTitle }));
|
|
@@ -4300,7 +4315,7 @@ var StatefulReader = ({
|
|
|
4300
4315
|
dispatch(setPositionsList(deserializedPositionsList));
|
|
4301
4316
|
};
|
|
4302
4317
|
fetchPositions().catch(console.error).then(() => {
|
|
4303
|
-
const isFXL2 = publication.metadata.
|
|
4318
|
+
const isFXL2 = publication.metadata.effectiveLayout === Layout.fixed;
|
|
4304
4319
|
const initialPosition = getLocalData();
|
|
4305
4320
|
const initialConstraint = cache.current.arrowsOccupySpace ? arrowsWidth.current : 0;
|
|
4306
4321
|
const themeKeys = isFXL2 ? fxlThemeKeys : reflowThemeKeys;
|
|
@@ -4369,7 +4384,7 @@ var StatefulReader = ({
|
|
|
4369
4384
|
"div",
|
|
4370
4385
|
{
|
|
4371
4386
|
id: "reader-shell",
|
|
4372
|
-
className:
|
|
4387
|
+
className: classNames10(
|
|
4373
4388
|
isFXL ? "isFXL" : "isReflow",
|
|
4374
4389
|
isImmersive ? "isImmersive" : "",
|
|
4375
4390
|
isHovering ? "isHovering" : "",
|
|
@@ -4451,7 +4466,7 @@ var PublicationGrid = ({
|
|
|
4451
4466
|
);
|
|
4452
4467
|
}
|
|
4453
4468
|
return cloneElement(cover, {
|
|
4454
|
-
className:
|
|
4469
|
+
className: classNames10(
|
|
4455
4470
|
publicationGridStyles.publicationImage,
|
|
4456
4471
|
cover.props.className
|
|
4457
4472
|
)
|