@edrlab/thorium-web 1.1.0 → 1.1.2
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/{chunk-D24O64OP.mjs → chunk-2JHEFF46.mjs} +123 -105
- package/dist/chunk-2JHEFF46.mjs.map +1 -0
- package/dist/chunk-B3WDMWCT.mjs +9 -0
- package/dist/chunk-B3WDMWCT.mjs.map +1 -0
- package/dist/chunk-EY4D4BZN.mjs +35 -0
- package/dist/chunk-EY4D4BZN.mjs.map +1 -0
- package/dist/{chunk-SPAC7T57.mjs → chunk-IRA4ZKAX.mjs} +10 -2
- package/dist/chunk-IRA4ZKAX.mjs.map +1 -0
- package/dist/chunk-IYAFKTPL.mjs +69 -0
- package/dist/chunk-IYAFKTPL.mjs.map +1 -0
- package/dist/{chunk-OWJCESNF.mjs → chunk-VETE7ULS.mjs} +16 -17
- package/dist/chunk-VETE7ULS.mjs.map +1 -0
- package/dist/components/Epub/index.mjs +11 -10
- package/dist/components/Epub/index.mjs.map +1 -1
- package/dist/components/Misc/index.mjs +2 -1
- package/dist/components/Misc/index.mjs.map +1 -1
- package/dist/components/WebPub/index.mjs +10 -9
- package/dist/components/WebPub/index.mjs.map +1 -1
- package/dist/core/Hooks/index.mjs +1 -1
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.mjs +4 -3
- package/dist/locales/ar/thorium-shared.json +10 -0
- package/dist/locales/ar/thorium-web.json +0 -10
- package/dist/locales/da/thorium-shared.json +138 -0
- package/dist/locales/da/thorium-web.json +16 -153
- package/dist/locales/el/thorium-web.json +12 -0
- package/dist/locales/en/thorium-shared.json +230 -0
- package/dist/locales/en/thorium-web.json +4 -141
- package/dist/locales/et/thorium-shared.json +38 -0
- package/dist/locales/et/thorium-web.json +95 -1
- package/dist/locales/fi/thorium-shared.json +189 -0
- package/dist/locales/fi/thorium-web.json +4 -141
- package/dist/locales/fr/thorium-shared.json +151 -0
- package/dist/locales/fr/thorium-web.json +2 -166
- package/dist/locales/it/thorium-shared.json +180 -0
- package/dist/locales/it/thorium-web.json +95 -1
- package/dist/locales/lt/thorium-shared.json +180 -0
- package/dist/locales/lt/thorium-web.json +13 -150
- package/dist/locales/pl/thorium-shared.json +122 -0
- package/dist/locales/pl/thorium-web.json +5 -169
- package/dist/locales/pt-BR/thorium-shared.json +180 -0
- package/dist/locales/pt-BR/thorium-web.json +2 -126
- package/dist/locales/pt-PT/thorium-shared.json +180 -0
- package/dist/locales/pt-PT/thorium-web.json +5 -142
- package/dist/locales/sv/thorium-shared.json +178 -0
- package/dist/locales/sv/thorium-web.json +18 -155
- package/dist/locales/ta/thorium-shared.json +120 -0
- package/dist/locales/ta/thorium-web.json +2 -126
- package/dist/locales/tr/thorium-shared.json +69 -0
- package/dist/preferences/index.mjs +2 -1
- package/package.json +7 -3
- package/dist/chunk-D24O64OP.mjs.map +0 -1
- package/dist/chunk-FG6BJGVE.mjs +0 -64
- package/dist/chunk-FG6BJGVE.mjs.map +0 -1
- package/dist/chunk-KKJA56IZ.mjs +0 -27
- package/dist/chunk-KKJA56IZ.mjs.map +0 -1
- package/dist/chunk-OWJCESNF.mjs.map +0 -1
- package/dist/chunk-SPAC7T57.mjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { makeBreakpointsMap, isInteractiveElement, isKeyboardTriggered, isActiveElement, getBestMatchingProgressionFormat } from './chunk-VH22EPOM.mjs';
|
|
2
|
-
import { useFullscreen, useEpubNavigator } from './chunk-
|
|
2
|
+
import { useFullscreen, useEpubNavigator } from './chunk-VETE7ULS.mjs';
|
|
3
3
|
import { useAppDispatch, setFullscreen, useAppSelector, setActionOpen, dockAction, setSettingsContainer, debounce, setColumnCount, setWebPubFontFamily, setFontFamily, setWebPubFontWeight, setFontWeight, setWebPubHyphens, setHyphens, setScroll, setWebPubLetterSpacing, setLetterSpacing, setWebPubLineHeight, setLineHeight, setWebPubParagraphIndent, setParagraphIndent, setWebPubParagraphSpacing, setParagraphSpacing, setWebPubWordSpacing, setWordSpacing, setWebPubSpacingPreset, setWebPubPublisherStyles, setSpacingPreset, setPublisherStyles, setWebPubTextAlign, setTextAlign, setWebPubTextNormalization, setTextNormalization, setTheme, setWebPubZoom, setFontSize, ThReduxPreferencesAdapter, setHovering, setImmersive, setOverflow, setUserNavigated, setTocEntry, collapseDockPanel, expandDockPanel, activateDockPanel, deactivateDockPanel, setDockPanelWidth } from './chunk-HE3WFPGE.mjs';
|
|
4
|
-
import { usePreferences, prefixString, defaultSpacingSettingsSubpanel, defaultSpacingSettingsMain, defaultTextSettingsSubpanel, defaultTextSettingsMain, usePreferenceKeys, defaultFontFamilyOptions, buildThemeObject, defaultPreferences, ThPreferencesProvider } from './chunk-
|
|
4
|
+
import { usePreferences, prefixString, defaultSpacingSettingsSubpanel, defaultSpacingSettingsMain, defaultTextSettingsSubpanel, defaultTextSettingsMain, usePreferenceKeys, defaultFontFamilyOptions, buildThemeObject, defaultPreferences, ThPreferencesProvider } from './chunk-IRA4ZKAX.mjs';
|
|
5
5
|
import { isIOSish, buildShortcut, metaKeys } from './chunk-5LUMM7FW.mjs';
|
|
6
|
-
import { useI18n } from './chunk-
|
|
6
|
+
import { useI18n } from './chunk-IYAFKTPL.mjs';
|
|
7
7
|
import { ThMenuItem, ThActionButton, ThMenu, ThCollapsibleActionsBar, ThPopover, ThContainerHeader, ThNavigationButton, ThContainerBody, ThBottomSheet, ThCloseButton, ThModal, ThDockedPanel, ThTypedComponentRenderer, useActions, ThForm, ThFormNumberField, ThSettingsWrapper, ThFormSearchField, ThRadioGroup, ThDropdown, ThSwitch, ThNumberField, ThSlider, ThInteractiveOverlay, ThHeader, ThFooter, ThLink, ThLibrary, ThHome, ThBackArrow, ThRunningHead, ThPagination, ThProgression } from './chunk-GZDYMUV7.mjs';
|
|
8
8
|
import { usePrevious } from './chunk-YZ73DHRU.mjs';
|
|
9
9
|
import { ThDockingTypes, ThSheetTypes, ThTextSettingsKeys, ThSpacingSettingsKeys, ThRunningHeadFormat, ThProgressionFormat } from './chunk-CVM2ZAPL.mjs';
|
|
@@ -522,7 +522,7 @@ var StatefulDocker = ({
|
|
|
522
522
|
{
|
|
523
523
|
ref,
|
|
524
524
|
className: thorium_web_button_default.dockerButton,
|
|
525
|
-
"aria-label": t("
|
|
525
|
+
"aria-label": t("common.actions.close"),
|
|
526
526
|
onPress: onClose,
|
|
527
527
|
compounds: {
|
|
528
528
|
tooltipTrigger: {
|
|
@@ -532,7 +532,7 @@ var StatefulDocker = ({
|
|
|
532
532
|
tooltip: {
|
|
533
533
|
className: thorium_web_button_default.tooltip
|
|
534
534
|
},
|
|
535
|
-
label: t("
|
|
535
|
+
label: t("common.actions.close")
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
)
|
|
@@ -937,7 +937,7 @@ var StatefulBottomSheet = ({
|
|
|
937
937
|
{
|
|
938
938
|
ref: bottomSheetCloseRef,
|
|
939
939
|
className: thorium_web_button_default.closeButton,
|
|
940
|
-
"aria-label": t("
|
|
940
|
+
"aria-label": t("common.actions.close"),
|
|
941
941
|
onPress: onClosePress
|
|
942
942
|
}
|
|
943
943
|
)
|
|
@@ -1041,7 +1041,7 @@ var StatefulFullScreenSheet = ({
|
|
|
1041
1041
|
{
|
|
1042
1042
|
ref: fullScreenCloseRef,
|
|
1043
1043
|
className: thorium_web_button_default.closeButton,
|
|
1044
|
-
"aria-label": t("
|
|
1044
|
+
"aria-label": t("common.actions.close"),
|
|
1045
1045
|
onPress: onClosePress
|
|
1046
1046
|
}
|
|
1047
1047
|
)
|
|
@@ -1438,7 +1438,7 @@ var StatefulJumpToPositionContainer = ({
|
|
|
1438
1438
|
sheetProps: {
|
|
1439
1439
|
id: "jumpToPosition" /* jumpToPosition */,
|
|
1440
1440
|
triggerRef,
|
|
1441
|
-
heading: t("reader.
|
|
1441
|
+
heading: t("reader.actions.goToPosition.descriptive"),
|
|
1442
1442
|
className: thorium_web_jumpToPosition_default.wrapper,
|
|
1443
1443
|
placement: "bottom",
|
|
1444
1444
|
isOpen: actionState?.isOpen || false,
|
|
@@ -1506,7 +1506,7 @@ var StatefulJumpToPositionTrigger = ({ variant }) => {
|
|
|
1506
1506
|
return /* @__PURE__ */ jsx(Fragment, { children: variant && variant === "menuItem" /* menu */ ? /* @__PURE__ */ jsx(
|
|
1507
1507
|
StatefulOverflowMenuItem,
|
|
1508
1508
|
{
|
|
1509
|
-
label: t("reader.
|
|
1509
|
+
label: t("reader.actions.goToPosition.descriptive"),
|
|
1510
1510
|
SVGIcon: pin_drop_default,
|
|
1511
1511
|
shortcut: preferences.actions.keys["jumpToPosition" /* jumpToPosition */].shortcut,
|
|
1512
1512
|
id: "jumpToPosition" /* jumpToPosition */,
|
|
@@ -1516,9 +1516,9 @@ var StatefulJumpToPositionTrigger = ({ variant }) => {
|
|
|
1516
1516
|
StatefulActionIcon,
|
|
1517
1517
|
{
|
|
1518
1518
|
visibility: preferences.actions.keys["jumpToPosition" /* jumpToPosition */].visibility,
|
|
1519
|
-
"aria-label": t("reader.
|
|
1519
|
+
"aria-label": t("reader.actions.goToPosition.descriptive"),
|
|
1520
1520
|
placement: "bottom",
|
|
1521
|
-
tooltipLabel: t("reader.
|
|
1521
|
+
tooltipLabel: t("reader.actions.goToPosition.compact"),
|
|
1522
1522
|
onPress: () => setOpen(!actionState?.isOpen),
|
|
1523
1523
|
children: /* @__PURE__ */ jsx(pin_drop_default, { "aria-hidden": "true", focusable: "false" })
|
|
1524
1524
|
}
|
|
@@ -1712,7 +1712,7 @@ var StatefulSpacingGroup = () => {
|
|
|
1712
1712
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
1713
1713
|
StatefulGroupWrapper,
|
|
1714
1714
|
{
|
|
1715
|
-
label: t("reader.
|
|
1715
|
+
label: t("reader.preferences.spacing.title"),
|
|
1716
1716
|
moreLabel: t("reader.settings.spacing.advanced.trigger"),
|
|
1717
1717
|
moreTooltip: t("reader.settings.spacing.advanced.tooltip"),
|
|
1718
1718
|
onPressMore: setSpacingContainer,
|
|
@@ -1749,7 +1749,7 @@ var StatefulTextGroup = () => {
|
|
|
1749
1749
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
1750
1750
|
StatefulGroupWrapper,
|
|
1751
1751
|
{
|
|
1752
|
-
label: t("reader.
|
|
1752
|
+
label: t("reader.preferences.text"),
|
|
1753
1753
|
moreLabel: t("reader.settings.text.advanced.trigger"),
|
|
1754
1754
|
moreTooltip: t("reader.settings.text.advanced.tooltip"),
|
|
1755
1755
|
onPressMore: setTextContainer,
|
|
@@ -1866,12 +1866,12 @@ var StatefulSettingsContainer = ({
|
|
|
1866
1866
|
const getHeading = useCallback(() => {
|
|
1867
1867
|
switch (contains) {
|
|
1868
1868
|
case "text" /* text */:
|
|
1869
|
-
return t("reader.
|
|
1869
|
+
return t("reader.preferences.text");
|
|
1870
1870
|
case "spacing" /* spacing */:
|
|
1871
|
-
return t("reader.
|
|
1871
|
+
return t("reader.preferences.spacing.title");
|
|
1872
1872
|
case "initial" /* initial */:
|
|
1873
1873
|
default:
|
|
1874
|
-
return t("reader.
|
|
1874
|
+
return t("reader.preferences.title");
|
|
1875
1875
|
}
|
|
1876
1876
|
}, [contains, t]);
|
|
1877
1877
|
const getHeaderVariant = useCallback(() => {
|
|
@@ -1941,7 +1941,7 @@ var StatefulSettingsTrigger = ({ variant }) => {
|
|
|
1941
1941
|
return /* @__PURE__ */ jsx(Fragment, { children: variant && variant === "menuItem" /* menu */ ? /* @__PURE__ */ jsx(
|
|
1942
1942
|
StatefulOverflowMenuItem,
|
|
1943
1943
|
{
|
|
1944
|
-
label: t("reader.
|
|
1944
|
+
label: t("reader.preferences.title"),
|
|
1945
1945
|
SVGIcon: match_case_default,
|
|
1946
1946
|
shortcut: preferences.actions.keys["settings" /* settings */].shortcut,
|
|
1947
1947
|
id: "settings" /* settings */,
|
|
@@ -1951,9 +1951,9 @@ var StatefulSettingsTrigger = ({ variant }) => {
|
|
|
1951
1951
|
StatefulActionIcon,
|
|
1952
1952
|
{
|
|
1953
1953
|
visibility: preferences.actions.keys["settings" /* settings */].visibility,
|
|
1954
|
-
"aria-label": t("reader.
|
|
1954
|
+
"aria-label": t("reader.preferences.title"),
|
|
1955
1955
|
placement: "bottom",
|
|
1956
|
-
tooltipLabel: t("reader.
|
|
1956
|
+
tooltipLabel: t("reader.preferences.title"),
|
|
1957
1957
|
onPress: () => setOpen(!actionState?.isOpen),
|
|
1958
1958
|
children: /* @__PURE__ */ jsx(match_case_default, { "aria-hidden": "true", focusable: "false" })
|
|
1959
1959
|
}
|
|
@@ -2084,7 +2084,7 @@ var StatefulTocContainer = ({ triggerRef }) => {
|
|
|
2084
2084
|
sheetProps: {
|
|
2085
2085
|
id: "toc" /* toc */,
|
|
2086
2086
|
triggerRef,
|
|
2087
|
-
heading: t("reader.
|
|
2087
|
+
heading: t("reader.tableOfContents.title"),
|
|
2088
2088
|
className: thorium_web_toc_default.wrapper,
|
|
2089
2089
|
placement: "bottom",
|
|
2090
2090
|
isOpen: actionState?.isOpen || false,
|
|
@@ -2098,7 +2098,7 @@ var StatefulTocContainer = ({ triggerRef }) => {
|
|
|
2098
2098
|
/* @__PURE__ */ jsx(
|
|
2099
2099
|
ThFormSearchField,
|
|
2100
2100
|
{
|
|
2101
|
-
"aria-label": t("
|
|
2101
|
+
"aria-label": t("common.actions.search"),
|
|
2102
2102
|
value: filterValue,
|
|
2103
2103
|
onChange: setFilterValue,
|
|
2104
2104
|
onClear: () => setFilterValue(""),
|
|
@@ -2110,7 +2110,7 @@ var StatefulTocContainer = ({ triggerRef }) => {
|
|
|
2110
2110
|
input: {
|
|
2111
2111
|
ref: searchInputRef,
|
|
2112
2112
|
className: thorium_web_toc_default.searchInput,
|
|
2113
|
-
placeholder: t("
|
|
2113
|
+
placeholder: t("common.actions.search")
|
|
2114
2114
|
},
|
|
2115
2115
|
searchIcon: {
|
|
2116
2116
|
className: thorium_web_toc_default.searchIcon,
|
|
@@ -2118,7 +2118,8 @@ var StatefulTocContainer = ({ triggerRef }) => {
|
|
|
2118
2118
|
},
|
|
2119
2119
|
clearButton: {
|
|
2120
2120
|
className: thorium_web_toc_default.clearButton,
|
|
2121
|
-
isDisabled: !filterValue
|
|
2121
|
+
isDisabled: !filterValue,
|
|
2122
|
+
"aria-label": t("common.actions.clear")
|
|
2122
2123
|
}
|
|
2123
2124
|
}
|
|
2124
2125
|
}
|
|
@@ -2165,7 +2166,7 @@ var StatefulTocContainer = ({ triggerRef }) => {
|
|
|
2165
2166
|
}
|
|
2166
2167
|
}
|
|
2167
2168
|
)
|
|
2168
|
-
] }) : /* @__PURE__ */ jsx("div", { className: thorium_web_toc_default.empty, children: t("reader.
|
|
2169
|
+
] }) : /* @__PURE__ */ jsx("div", { className: thorium_web_toc_default.empty, children: t("reader.tableOfContents.emptyState.description") })
|
|
2169
2170
|
}
|
|
2170
2171
|
) });
|
|
2171
2172
|
};
|
|
@@ -2185,7 +2186,7 @@ var StatefulTocTrigger = ({ variant }) => {
|
|
|
2185
2186
|
return /* @__PURE__ */ jsx(Fragment, { children: variant && variant === "menuItem" /* menu */ ? /* @__PURE__ */ jsx(
|
|
2186
2187
|
StatefulOverflowMenuItem,
|
|
2187
2188
|
{
|
|
2188
|
-
label: t("reader.
|
|
2189
|
+
label: t("reader.tableOfContents.title"),
|
|
2189
2190
|
SVGIcon: toc_default,
|
|
2190
2191
|
shortcut: preferences.actions.keys["toc" /* toc */].shortcut,
|
|
2191
2192
|
id: "toc" /* toc */,
|
|
@@ -2195,9 +2196,9 @@ var StatefulTocTrigger = ({ variant }) => {
|
|
|
2195
2196
|
StatefulActionIcon,
|
|
2196
2197
|
{
|
|
2197
2198
|
visibility: preferences.actions.keys["toc" /* toc */].visibility,
|
|
2198
|
-
"aria-label": t("reader.
|
|
2199
|
+
"aria-label": t("reader.tableOfContents.title"),
|
|
2199
2200
|
placement: "bottom",
|
|
2200
|
-
tooltipLabel: t("reader.
|
|
2201
|
+
tooltipLabel: t("reader.tableOfContents.title"),
|
|
2201
2202
|
onPress: () => setOpen(!actionState?.isOpen),
|
|
2202
2203
|
children: /* @__PURE__ */ jsx(toc_default, { "aria-hidden": "true", focusable: "false" })
|
|
2203
2204
|
}
|
|
@@ -2386,19 +2387,19 @@ var StatefulColumns = () => {
|
|
|
2386
2387
|
{
|
|
2387
2388
|
id: "auto",
|
|
2388
2389
|
icon: document_scanner_default,
|
|
2389
|
-
label: t("reader.
|
|
2390
|
+
label: t("reader.preferences.columns.auto"),
|
|
2390
2391
|
value: "auto"
|
|
2391
2392
|
},
|
|
2392
2393
|
{
|
|
2393
2394
|
id: "1",
|
|
2394
2395
|
icon: article_default,
|
|
2395
|
-
label: t("reader.
|
|
2396
|
+
label: t("reader.preferences.columns.single.compact"),
|
|
2396
2397
|
value: "1"
|
|
2397
2398
|
},
|
|
2398
2399
|
{
|
|
2399
2400
|
id: "2",
|
|
2400
2401
|
icon: menu_book_default,
|
|
2401
|
-
label: t("reader.
|
|
2402
|
+
label: t("reader.preferences.columns.dual.compact"),
|
|
2402
2403
|
value: "2",
|
|
2403
2404
|
// This is subpar when the columnCount is 1 though because
|
|
2404
2405
|
// it won't be disabled, but it's the best we can do with
|
|
@@ -2431,7 +2432,7 @@ var StatefulColumns = () => {
|
|
|
2431
2432
|
StatefulRadioGroup,
|
|
2432
2433
|
{
|
|
2433
2434
|
standalone: true,
|
|
2434
|
-
label: t("reader.
|
|
2435
|
+
label: t("reader.preferences.columns.title"),
|
|
2435
2436
|
orientation: "horizontal",
|
|
2436
2437
|
value: effectiveValue,
|
|
2437
2438
|
onChange: async (val) => await updatePreference(val),
|
|
@@ -2487,15 +2488,32 @@ var StatefulDropdown = ({
|
|
|
2487
2488
|
}
|
|
2488
2489
|
);
|
|
2489
2490
|
};
|
|
2491
|
+
var fontFamilyLabelMap = {
|
|
2492
|
+
publisher: "direct",
|
|
2493
|
+
oldStyle: "descriptive",
|
|
2494
|
+
modern: "descriptive",
|
|
2495
|
+
sans: "direct",
|
|
2496
|
+
humanist: "descriptive",
|
|
2497
|
+
monospace: "direct"
|
|
2498
|
+
};
|
|
2490
2499
|
var StatefulFontFamily = ({ standalone = true }) => {
|
|
2491
2500
|
const { t } = useI18n();
|
|
2501
|
+
const getFontFamilyLabel = useCallback((property) => {
|
|
2502
|
+
const config = fontFamilyLabelMap[property];
|
|
2503
|
+
const labelPath = `reader.preferences.fontFamily.${property}`;
|
|
2504
|
+
if (config === "direct") {
|
|
2505
|
+
return t(labelPath);
|
|
2506
|
+
} else {
|
|
2507
|
+
return t(`${labelPath}.${config}`);
|
|
2508
|
+
}
|
|
2509
|
+
}, [t]);
|
|
2492
2510
|
const profile = useAppSelector((state) => state.reader.profile);
|
|
2493
2511
|
const isWebPub = profile === "webPub";
|
|
2494
2512
|
const fontFamily = useAppSelector((state) => isWebPub ? state.webPubSettings.fontFamily : state.settings.fontFamily) ?? "publisher";
|
|
2495
2513
|
const fontFamilyOptions = useRef(
|
|
2496
2514
|
Object.entries(defaultFontFamilyOptions).map(([property, stack]) => ({
|
|
2497
2515
|
id: property,
|
|
2498
|
-
label:
|
|
2516
|
+
label: getFontFamilyLabel(property),
|
|
2499
2517
|
value: stack
|
|
2500
2518
|
}))
|
|
2501
2519
|
);
|
|
@@ -2519,7 +2537,7 @@ var StatefulFontFamily = ({ standalone = true }) => {
|
|
|
2519
2537
|
StatefulDropdown,
|
|
2520
2538
|
{
|
|
2521
2539
|
standalone,
|
|
2522
|
-
label: t("reader.
|
|
2540
|
+
label: t("reader.preferences.fontFamily.title"),
|
|
2523
2541
|
selectedKey: fontFamily,
|
|
2524
2542
|
onSelectionChange: async (key) => await updatePreference(key),
|
|
2525
2543
|
compounds: {
|
|
@@ -2560,13 +2578,13 @@ var UnstableStatefulFontWeight = ({ standalone = true }) => {
|
|
|
2560
2578
|
{
|
|
2561
2579
|
id: "default",
|
|
2562
2580
|
icon: format_bold_wght200_default,
|
|
2563
|
-
label: t("reader.
|
|
2581
|
+
label: t("reader.preferences.fontWeight.normal"),
|
|
2564
2582
|
value: "default"
|
|
2565
2583
|
},
|
|
2566
2584
|
{
|
|
2567
2585
|
id: "bolder",
|
|
2568
2586
|
icon: format_bold_wght500_default,
|
|
2569
|
-
label: t("reader.
|
|
2587
|
+
label: t("reader.preferences.fontWeight.bold"),
|
|
2570
2588
|
value: "bolder"
|
|
2571
2589
|
}
|
|
2572
2590
|
];
|
|
@@ -2592,7 +2610,7 @@ var UnstableStatefulFontWeight = ({ standalone = true }) => {
|
|
|
2592
2610
|
StatefulRadioGroup,
|
|
2593
2611
|
{
|
|
2594
2612
|
standalone,
|
|
2595
|
-
label: t("reader.
|
|
2613
|
+
label: t("reader.preferences.fontWeight.title"),
|
|
2596
2614
|
orientation: "horizontal",
|
|
2597
2615
|
value: derivedValue,
|
|
2598
2616
|
onChange: async (val) => await updatePreference(val),
|
|
@@ -2648,8 +2666,8 @@ var StatefulHyphens = ({ standalone = true }) => {
|
|
|
2648
2666
|
StatefulSwitch,
|
|
2649
2667
|
{
|
|
2650
2668
|
standalone,
|
|
2651
|
-
heading: t("reader.
|
|
2652
|
-
label: t("reader.
|
|
2669
|
+
heading: t("reader.preferences.hyphens.title"),
|
|
2670
|
+
label: t("reader.preferences.hyphens.label"),
|
|
2653
2671
|
onChange: async (isSelected) => await updatePreference(isSelected),
|
|
2654
2672
|
isSelected: hyphens ?? false,
|
|
2655
2673
|
isDisabled: textAlign === "publisher" /* publisher */
|
|
@@ -2671,13 +2689,13 @@ var StatefulLayout = () => {
|
|
|
2671
2689
|
{
|
|
2672
2690
|
id: "page_option" /* paginated */,
|
|
2673
2691
|
icon: docs_default,
|
|
2674
|
-
label: t("reader.
|
|
2692
|
+
label: t("reader.preferences.layout.paginated"),
|
|
2675
2693
|
value: "page_option" /* paginated */
|
|
2676
2694
|
},
|
|
2677
2695
|
{
|
|
2678
2696
|
id: "scroll_option" /* scroll */,
|
|
2679
2697
|
icon: contract_default,
|
|
2680
|
-
label: t("reader.
|
|
2698
|
+
label: t("reader.preferences.layout.scrolled"),
|
|
2681
2699
|
value: "scroll_option" /* scroll */
|
|
2682
2700
|
}
|
|
2683
2701
|
];
|
|
@@ -2690,7 +2708,7 @@ var StatefulLayout = () => {
|
|
|
2690
2708
|
StatefulRadioGroup,
|
|
2691
2709
|
{
|
|
2692
2710
|
standalone: true,
|
|
2693
|
-
label: t("reader.
|
|
2711
|
+
label: t("reader.preferences.layout.title"),
|
|
2694
2712
|
orientation: "horizontal",
|
|
2695
2713
|
value: isScroll ? "scroll_option" /* scroll */ : "page_option" /* paginated */,
|
|
2696
2714
|
onChange: async (val) => await updatePreference(val),
|
|
@@ -2745,7 +2763,7 @@ var StatefulNumberField = ({
|
|
|
2745
2763
|
tooltip: {
|
|
2746
2764
|
className: thorium_web_button_default.tooltip
|
|
2747
2765
|
},
|
|
2748
|
-
label: resetLabel ?? t("
|
|
2766
|
+
label: resetLabel ?? t("common.actions.reset")
|
|
2749
2767
|
}
|
|
2750
2768
|
}
|
|
2751
2769
|
}
|
|
@@ -2819,7 +2837,7 @@ var StatefulSlider = ({
|
|
|
2819
2837
|
tooltip: {
|
|
2820
2838
|
className: thorium_web_button_default.tooltip
|
|
2821
2839
|
},
|
|
2822
|
-
label: resetLabel ?? t("
|
|
2840
|
+
label: resetLabel ?? t("common.actions.reset")
|
|
2823
2841
|
}
|
|
2824
2842
|
}
|
|
2825
2843
|
}
|
|
@@ -3114,7 +3132,7 @@ var StatefulLetterSpacing = ({ standalone = true }) => {
|
|
|
3114
3132
|
StatefulNumberField,
|
|
3115
3133
|
{
|
|
3116
3134
|
standalone,
|
|
3117
|
-
label: t("reader.
|
|
3135
|
+
label: t("reader.preferences.letterSpacing"),
|
|
3118
3136
|
placeholder: placeholderText,
|
|
3119
3137
|
defaultValue: void 0,
|
|
3120
3138
|
value: letterSpacing ?? void 0,
|
|
@@ -3123,8 +3141,8 @@ var StatefulLetterSpacing = ({ standalone = true }) => {
|
|
|
3123
3141
|
range: letterSpacingRangeConfig.range,
|
|
3124
3142
|
step: letterSpacingRangeConfig.step,
|
|
3125
3143
|
steppers: {
|
|
3126
|
-
decrementLabel: t("
|
|
3127
|
-
incrementLabel: t("
|
|
3144
|
+
decrementLabel: t("common.actions.decrease"),
|
|
3145
|
+
incrementLabel: t("common.actions.increase")
|
|
3128
3146
|
},
|
|
3129
3147
|
formatOptions: { style: "percent" },
|
|
3130
3148
|
isWheelDisabled: true,
|
|
@@ -3135,7 +3153,7 @@ var StatefulLetterSpacing = ({ standalone = true }) => {
|
|
|
3135
3153
|
{
|
|
3136
3154
|
standalone,
|
|
3137
3155
|
displayTicks: letterSpacingRangeConfig.variant === "incrementedSlider" /* incrementedSlider */,
|
|
3138
|
-
label: t("reader.
|
|
3156
|
+
label: t("reader.preferences.letterSpacing"),
|
|
3139
3157
|
placeholder: placeholderText,
|
|
3140
3158
|
defaultValue: void 0,
|
|
3141
3159
|
value: letterSpacing ?? void 0,
|
|
@@ -3179,19 +3197,19 @@ var StatefulLineHeight = ({ standalone = true }) => {
|
|
|
3179
3197
|
{
|
|
3180
3198
|
id: "small" /* small */,
|
|
3181
3199
|
icon: density_small_default,
|
|
3182
|
-
label: t("reader.
|
|
3200
|
+
label: t("reader.preferences.lineHeight.small"),
|
|
3183
3201
|
value: "small" /* small */
|
|
3184
3202
|
},
|
|
3185
3203
|
{
|
|
3186
3204
|
id: "medium" /* medium */,
|
|
3187
3205
|
icon: density_medium_default,
|
|
3188
|
-
label: t("reader.
|
|
3206
|
+
label: t("reader.preferences.lineHeight.medium"),
|
|
3189
3207
|
value: "medium" /* medium */
|
|
3190
3208
|
},
|
|
3191
3209
|
{
|
|
3192
3210
|
id: "large" /* large */,
|
|
3193
3211
|
icon: density_large_default,
|
|
3194
|
-
label: t("reader.
|
|
3212
|
+
label: t("reader.preferences.lineHeight.large"),
|
|
3195
3213
|
value: "large" /* large */
|
|
3196
3214
|
}
|
|
3197
3215
|
];
|
|
@@ -3199,7 +3217,7 @@ var StatefulLineHeight = ({ standalone = true }) => {
|
|
|
3199
3217
|
baseItems.unshift({
|
|
3200
3218
|
id: "publisher" /* publisher */,
|
|
3201
3219
|
icon: book_default,
|
|
3202
|
-
label: t("reader.
|
|
3220
|
+
label: t("reader.preferences.lineHeight.default"),
|
|
3203
3221
|
value: "publisher" /* publisher */
|
|
3204
3222
|
});
|
|
3205
3223
|
}
|
|
@@ -3218,7 +3236,7 @@ var StatefulLineHeight = ({ standalone = true }) => {
|
|
|
3218
3236
|
StatefulRadioGroup,
|
|
3219
3237
|
{
|
|
3220
3238
|
standalone,
|
|
3221
|
-
label: t("reader.
|
|
3239
|
+
label: t("reader.preferences.lineHeight.title"),
|
|
3222
3240
|
orientation: "horizontal",
|
|
3223
3241
|
value: !isWebPub && publisherStyles ? "publisher" /* publisher */ : lineHeight,
|
|
3224
3242
|
onChange: async (val) => await updatePreference(val),
|
|
@@ -3249,7 +3267,7 @@ var StatefulParagraphIndent = ({ standalone = true }) => {
|
|
|
3249
3267
|
StatefulNumberField,
|
|
3250
3268
|
{
|
|
3251
3269
|
standalone,
|
|
3252
|
-
label: t("reader.
|
|
3270
|
+
label: t("reader.preferences.paragraphIndent"),
|
|
3253
3271
|
placeholder: placeholderText,
|
|
3254
3272
|
defaultValue: void 0,
|
|
3255
3273
|
value: paragraphIndent ?? void 0,
|
|
@@ -3258,8 +3276,8 @@ var StatefulParagraphIndent = ({ standalone = true }) => {
|
|
|
3258
3276
|
range: paragraphIndentRangeConfig.range,
|
|
3259
3277
|
step: paragraphIndentRangeConfig.step,
|
|
3260
3278
|
steppers: {
|
|
3261
|
-
decrementLabel: t("
|
|
3262
|
-
incrementLabel: t("
|
|
3279
|
+
decrementLabel: t("common.actions.decrease"),
|
|
3280
|
+
incrementLabel: t("common.actions.increase")
|
|
3263
3281
|
},
|
|
3264
3282
|
formatOptions: {
|
|
3265
3283
|
signDisplay: "exceptZero",
|
|
@@ -3274,7 +3292,7 @@ var StatefulParagraphIndent = ({ standalone = true }) => {
|
|
|
3274
3292
|
{
|
|
3275
3293
|
standalone,
|
|
3276
3294
|
displayTicks: paragraphIndentRangeConfig.variant === "incrementedSlider" /* incrementedSlider */,
|
|
3277
|
-
label: t("reader.
|
|
3295
|
+
label: t("reader.preferences.paragraphIndent"),
|
|
3278
3296
|
placeholder: placeholderText,
|
|
3279
3297
|
defaultValue: void 0,
|
|
3280
3298
|
value: paragraphIndent ?? void 0,
|
|
@@ -3313,7 +3331,7 @@ var StatefulParagraphSpacing = ({ standalone = true }) => {
|
|
|
3313
3331
|
StatefulNumberField,
|
|
3314
3332
|
{
|
|
3315
3333
|
standalone,
|
|
3316
|
-
label: t("reader.
|
|
3334
|
+
label: t("reader.preferences.paragraphSpacing"),
|
|
3317
3335
|
placeholder: placeholderText,
|
|
3318
3336
|
defaultValue: void 0,
|
|
3319
3337
|
value: paragraphSpacing ?? void 0,
|
|
@@ -3322,8 +3340,8 @@ var StatefulParagraphSpacing = ({ standalone = true }) => {
|
|
|
3322
3340
|
range: paragraphSpacingRangeConfig.range,
|
|
3323
3341
|
step: paragraphSpacingRangeConfig.step,
|
|
3324
3342
|
steppers: {
|
|
3325
|
-
decrementLabel: t("
|
|
3326
|
-
incrementLabel: t("
|
|
3343
|
+
decrementLabel: t("common.actions.decrease"),
|
|
3344
|
+
incrementLabel: t("common.actions.increase")
|
|
3327
3345
|
},
|
|
3328
3346
|
formatOptions: {
|
|
3329
3347
|
signDisplay: "exceptZero",
|
|
@@ -3338,7 +3356,7 @@ var StatefulParagraphSpacing = ({ standalone = true }) => {
|
|
|
3338
3356
|
{
|
|
3339
3357
|
standalone,
|
|
3340
3358
|
displayTicks: paragraphSpacingRangeConfig.variant === "incrementedSlider" /* incrementedSlider */,
|
|
3341
|
-
label: t("reader.
|
|
3359
|
+
label: t("reader.preferences.paragraphSpacing"),
|
|
3342
3360
|
placeholder: placeholderText,
|
|
3343
3361
|
defaultValue: void 0,
|
|
3344
3362
|
value: paragraphSpacing ?? void 0,
|
|
@@ -3386,7 +3404,7 @@ var StatefulPublisherStyles = ({ standalone = true }) => {
|
|
|
3386
3404
|
StatefulSwitch,
|
|
3387
3405
|
{
|
|
3388
3406
|
standalone,
|
|
3389
|
-
label: t("reader.
|
|
3407
|
+
label: t("reader.preferences.publisherStyles.label"),
|
|
3390
3408
|
onChange: async (isSelected) => await updatePreference(isSelected),
|
|
3391
3409
|
isSelected: publisherStyles
|
|
3392
3410
|
}
|
|
@@ -3474,7 +3492,7 @@ var StatefulSpacingPresets = ({ standalone }) => {
|
|
|
3474
3492
|
id: key,
|
|
3475
3493
|
icon: iconMap[key],
|
|
3476
3494
|
value: key,
|
|
3477
|
-
label: t(`reader.
|
|
3495
|
+
label: t(`reader.preferences.spacing.presets.${key === "publisher" /* publisher */ ? "default" : key}`)
|
|
3478
3496
|
}));
|
|
3479
3497
|
}, [spacingKeys, t]);
|
|
3480
3498
|
if (items.length === 0) {
|
|
@@ -3484,7 +3502,7 @@ var StatefulSpacingPresets = ({ standalone }) => {
|
|
|
3484
3502
|
StatefulRadioGroup,
|
|
3485
3503
|
{
|
|
3486
3504
|
standalone,
|
|
3487
|
-
label: t("reader.
|
|
3505
|
+
label: t("reader.preferences.spacing.presets.title"),
|
|
3488
3506
|
orientation: "horizontal",
|
|
3489
3507
|
value: spacing?.preset || "publisher" /* publisher */,
|
|
3490
3508
|
onChange: async (val) => await updatePreference(val),
|
|
@@ -3510,19 +3528,19 @@ var StatefulTextAlign = ({ standalone = true }) => {
|
|
|
3510
3528
|
{
|
|
3511
3529
|
id: "publisher" /* publisher */,
|
|
3512
3530
|
icon: book_default,
|
|
3513
|
-
label: t("reader.
|
|
3531
|
+
label: t("reader.preferences.textAlign.default"),
|
|
3514
3532
|
value: "publisher" /* publisher */
|
|
3515
3533
|
},
|
|
3516
3534
|
{
|
|
3517
3535
|
id: "start" /* start */,
|
|
3518
3536
|
icon: isRTL ? format_align_right_default : format_align_left_default,
|
|
3519
|
-
label: isRTL ? t("reader.
|
|
3537
|
+
label: isRTL ? t("reader.preferences.textAlign.right") : t("reader.preferences.textAlign.left"),
|
|
3520
3538
|
value: "start" /* start */
|
|
3521
3539
|
},
|
|
3522
3540
|
{
|
|
3523
3541
|
id: "justify" /* justify */,
|
|
3524
3542
|
icon: format_align_justify_default,
|
|
3525
|
-
label: t("reader.
|
|
3543
|
+
label: t("reader.preferences.textAlign.justify"),
|
|
3526
3544
|
value: "justify" /* justify */
|
|
3527
3545
|
}
|
|
3528
3546
|
];
|
|
@@ -3549,7 +3567,7 @@ var StatefulTextAlign = ({ standalone = true }) => {
|
|
|
3549
3567
|
StatefulRadioGroup,
|
|
3550
3568
|
{
|
|
3551
3569
|
standalone,
|
|
3552
|
-
label: t("reader.
|
|
3570
|
+
label: t("reader.preferences.textAlign.title"),
|
|
3553
3571
|
orientation: "horizontal",
|
|
3554
3572
|
value: textAlign,
|
|
3555
3573
|
onChange: async (val) => await updatePreference(val),
|
|
@@ -3577,8 +3595,8 @@ var StatefulTextNormalize = ({ standalone = true }) => {
|
|
|
3577
3595
|
StatefulSwitch,
|
|
3578
3596
|
{
|
|
3579
3597
|
standalone,
|
|
3580
|
-
heading: t("reader.
|
|
3581
|
-
label: t("reader.
|
|
3598
|
+
heading: t("reader.preferences.textNormalization.title"),
|
|
3599
|
+
label: t("reader.preferences.textNormalization.label"),
|
|
3582
3600
|
onChange: async (isSelected) => await updatePreference(isSelected),
|
|
3583
3601
|
isSelected: textNormalization ?? false
|
|
3584
3602
|
}
|
|
@@ -3671,7 +3689,7 @@ var StatefulTheme = () => {
|
|
|
3671
3689
|
{
|
|
3672
3690
|
ref: radioGroupRef,
|
|
3673
3691
|
standalone: true,
|
|
3674
|
-
label: t("reader.
|
|
3692
|
+
label: t("reader.preferences.themes.title"),
|
|
3675
3693
|
value: theme,
|
|
3676
3694
|
onChange: async (val) => await updatePreference(val),
|
|
3677
3695
|
useGraphicalNavigation: false,
|
|
@@ -3693,7 +3711,7 @@ var StatefulTheme = () => {
|
|
|
3693
3711
|
style: doStyles(themeItem),
|
|
3694
3712
|
onKeyDown,
|
|
3695
3713
|
children: /* @__PURE__ */ jsxs("span", { children: [
|
|
3696
|
-
t(`reader.
|
|
3714
|
+
t(`reader.preferences.themes.${themeItem}`, { defaultValue: themeItem }),
|
|
3697
3715
|
themeItem === theme && /* @__PURE__ */ jsx(check_default, { "aria-hidden": "true", focusable: "false" })
|
|
3698
3716
|
] })
|
|
3699
3717
|
},
|
|
@@ -3728,7 +3746,7 @@ var StatefulWordSpacing = ({ standalone = true }) => {
|
|
|
3728
3746
|
StatefulNumberField,
|
|
3729
3747
|
{
|
|
3730
3748
|
standalone,
|
|
3731
|
-
label: t("reader.
|
|
3749
|
+
label: t("reader.preferences.wordSpacing"),
|
|
3732
3750
|
placeholder: placeholderText,
|
|
3733
3751
|
defaultValue: void 0,
|
|
3734
3752
|
value: wordSpacing ?? void 0,
|
|
@@ -3737,8 +3755,8 @@ var StatefulWordSpacing = ({ standalone = true }) => {
|
|
|
3737
3755
|
range: wordSpacingRangeConfig.range,
|
|
3738
3756
|
step: wordSpacingRangeConfig.step,
|
|
3739
3757
|
steppers: {
|
|
3740
|
-
decrementLabel: t("
|
|
3741
|
-
incrementLabel: t("
|
|
3758
|
+
decrementLabel: t("common.actions.decrease"),
|
|
3759
|
+
incrementLabel: t("common.actions.increase")
|
|
3742
3760
|
},
|
|
3743
3761
|
formatOptions: { style: "percent" },
|
|
3744
3762
|
isWheelDisabled: true,
|
|
@@ -3749,7 +3767,7 @@ var StatefulWordSpacing = ({ standalone = true }) => {
|
|
|
3749
3767
|
{
|
|
3750
3768
|
standalone,
|
|
3751
3769
|
displayTicks: wordSpacingRangeConfig.variant === "incrementedSlider" /* incrementedSlider */,
|
|
3752
|
-
label: t("reader.
|
|
3770
|
+
label: t("reader.preferences.wordSpacing"),
|
|
3753
3771
|
placeholder: placeholderText,
|
|
3754
3772
|
defaultValue: void 0,
|
|
3755
3773
|
value: wordSpacing ?? void 0,
|
|
@@ -3819,15 +3837,15 @@ var StatefulZoom = () => {
|
|
|
3819
3837
|
defaultValue: 1,
|
|
3820
3838
|
value: derivedState,
|
|
3821
3839
|
onChange: async (value) => await updatePreference(value),
|
|
3822
|
-
label: isFXL ? t("reader.
|
|
3840
|
+
label: isFXL ? t("reader.preferences.zoom") : t("reader.preferences.fontSize"),
|
|
3823
3841
|
placeholder: placeholderText,
|
|
3824
3842
|
range: zoomRangeConfig.range,
|
|
3825
3843
|
step: zoomRangeConfig.step,
|
|
3826
3844
|
steppers: {
|
|
3827
3845
|
decrementIcon: isFXL ? zoom_out_default : text_decrease_default,
|
|
3828
|
-
decrementLabel:
|
|
3846
|
+
decrementLabel: t("common.actions.decrease"),
|
|
3829
3847
|
incrementIcon: isFXL ? zoom_in_default : text_increase_default,
|
|
3830
|
-
incrementLabel:
|
|
3848
|
+
incrementLabel: t("common.actions.increase")
|
|
3831
3849
|
},
|
|
3832
3850
|
formatOptions: { style: "percent" },
|
|
3833
3851
|
isWheelDisabled: true,
|
|
@@ -3841,7 +3859,7 @@ var StatefulZoom = () => {
|
|
|
3841
3859
|
defaultValue: 1,
|
|
3842
3860
|
value: derivedState,
|
|
3843
3861
|
onChange: async (value) => await updatePreference(value),
|
|
3844
|
-
label: isFXL ? t("reader.
|
|
3862
|
+
label: isFXL ? t("reader.preferences.zoom") : t("reader.preferences.fontSize"),
|
|
3845
3863
|
placeholder: placeholderText,
|
|
3846
3864
|
range: zoomRangeConfig.range,
|
|
3847
3865
|
step: zoomRangeConfig.step,
|
|
@@ -3856,7 +3874,7 @@ var createDefaultPlugin = () => {
|
|
|
3856
3874
|
id: "core",
|
|
3857
3875
|
name: "Core Components",
|
|
3858
3876
|
description: "Default components for Thorium Web Epub StatefulReader",
|
|
3859
|
-
version: "1.1.
|
|
3877
|
+
version: "1.1.2",
|
|
3860
3878
|
components: {
|
|
3861
3879
|
actions: {
|
|
3862
3880
|
["fullscreen" /* fullscreen */]: {
|
|
@@ -4667,26 +4685,26 @@ var StatefulReaderProgression = ({
|
|
|
4667
4685
|
break;
|
|
4668
4686
|
case "positionsOfTotal" /* positionsOfTotal */:
|
|
4669
4687
|
if (currentPositions.length > 0 && totalPositions) {
|
|
4670
|
-
text = t("reader.
|
|
4671
|
-
|
|
4672
|
-
|
|
4688
|
+
text = t("reader.progression.xOfY.compact", {
|
|
4689
|
+
x: formatPositions(currentPositions),
|
|
4690
|
+
y: totalPositions
|
|
4673
4691
|
});
|
|
4674
4692
|
}
|
|
4675
4693
|
break;
|
|
4676
4694
|
case "positionsPercentOfTotal" /* positionsPercentOfTotal */:
|
|
4677
4695
|
if (currentPositions.length > 0 && totalPositions) {
|
|
4678
4696
|
const percentage = Math.round((totalProgression || 0) * 100);
|
|
4679
|
-
text = t("reader.
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4697
|
+
text = t("reader.progression.xOfY.descriptive", {
|
|
4698
|
+
x: formatPositions(currentPositions),
|
|
4699
|
+
y: totalPositions,
|
|
4700
|
+
z: `${percentage}%`
|
|
4701
|
+
});
|
|
4683
4702
|
}
|
|
4684
4703
|
break;
|
|
4685
4704
|
case "positionsLeft" /* positionsLeft */:
|
|
4686
4705
|
if (positionsLeft !== void 0) {
|
|
4687
|
-
text = t(
|
|
4688
|
-
count: positionsLeft
|
|
4689
|
-
reference: currentChapter || t("reader.app.progression.referenceFallback")
|
|
4706
|
+
text = t(`reader.progression.positionsLeftInChapter`, {
|
|
4707
|
+
count: positionsLeft
|
|
4690
4708
|
});
|
|
4691
4709
|
}
|
|
4692
4710
|
break;
|
|
@@ -4705,17 +4723,17 @@ var StatefulReaderProgression = ({
|
|
|
4705
4723
|
case "progressionOfResource" /* progressionOfResource */:
|
|
4706
4724
|
if (relativeProgression !== void 0) {
|
|
4707
4725
|
const percentage = Math.round(relativeProgression * 100);
|
|
4708
|
-
text = t("reader.
|
|
4709
|
-
|
|
4710
|
-
|
|
4726
|
+
text = t("reader.progression.xOfY.compact", {
|
|
4727
|
+
x: `${percentage}%`,
|
|
4728
|
+
y: currentChapter || t("reader.app.progression.referenceFallback")
|
|
4711
4729
|
});
|
|
4712
4730
|
}
|
|
4713
4731
|
break;
|
|
4714
4732
|
case "readingOrderIndex" /* readingOrderIndex */:
|
|
4715
4733
|
if (currentIndex !== void 0 && totalItems !== void 0) {
|
|
4716
|
-
text = t("reader.
|
|
4717
|
-
|
|
4718
|
-
|
|
4734
|
+
text = t("reader.progression.xOfY.compact", {
|
|
4735
|
+
x: currentIndex,
|
|
4736
|
+
y: totalItems
|
|
4719
4737
|
});
|
|
4720
4738
|
}
|
|
4721
4739
|
break;
|
|
@@ -4824,9 +4842,9 @@ var StatefulReaderFooter = ({
|
|
|
4824
4842
|
if (previous) {
|
|
4825
4843
|
links.previous = {
|
|
4826
4844
|
node: breakpoint !== "compact" /* compact */ && breakpoint !== "medium" /* medium */ ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4827
|
-
/* @__PURE__ */ jsx("span", { className: thorium_web_reader_app_default.srOnly, children: t("reader.
|
|
4828
|
-
/* @__PURE__ */ jsx("span", { className: thorium_web_reader_pagination_default.label, children: timeline?.previousItem?.title || previous.title || t("reader.
|
|
4829
|
-
] }) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("span", { className: thorium_web_reader_pagination_default.label, children: t("reader.
|
|
4845
|
+
/* @__PURE__ */ jsx("span", { className: thorium_web_reader_app_default.srOnly, children: t(isFXL ? "reader.actions.goToPreviousPage.descriptive" : "reader.actions.goToPreviousChapter.descriptive") }),
|
|
4846
|
+
/* @__PURE__ */ jsx("span", { className: thorium_web_reader_pagination_default.label, children: timeline?.previousItem?.title || previous.title || t(isFXL ? "reader.actions.goToPreviousPage.compact" : "reader.actions.goToPreviousChapter.compact") })
|
|
4847
|
+
] }) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("span", { className: thorium_web_reader_pagination_default.label, children: t(isFXL ? "reader.actions.goToPreviousPage.compact" : "reader.actions.goToPreviousChapter.compact") }) }),
|
|
4830
4848
|
onPress: () => go(previous, !reducedMotion, () => {
|
|
4831
4849
|
})
|
|
4832
4850
|
};
|
|
@@ -4834,15 +4852,15 @@ var StatefulReaderFooter = ({
|
|
|
4834
4852
|
if (next) {
|
|
4835
4853
|
links.next = {
|
|
4836
4854
|
node: breakpoint !== "compact" /* compact */ && breakpoint !== "medium" /* medium */ ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4837
|
-
/* @__PURE__ */ jsx("span", { className: thorium_web_reader_app_default.srOnly, children: t("reader.
|
|
4838
|
-
/* @__PURE__ */ jsx("span", { className: thorium_web_reader_pagination_default.label, children: timeline?.nextItem?.title || next.title || t("reader.
|
|
4839
|
-
] }) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("span", { className: thorium_web_reader_pagination_default.label, children: t("reader.
|
|
4855
|
+
/* @__PURE__ */ jsx("span", { className: thorium_web_reader_app_default.srOnly, children: t(isFXL ? "reader.actions.goToNextPage.descriptive" : "reader.actions.goToNextChapter.descriptive") }),
|
|
4856
|
+
/* @__PURE__ */ jsx("span", { className: thorium_web_reader_pagination_default.label, children: timeline?.nextItem?.title || next.title || t(isFXL ? "reader.actions.goToNextPage.compact" : "reader.actions.goToNextChapter.compact") })
|
|
4857
|
+
] }) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("span", { className: thorium_web_reader_pagination_default.label, children: t(isFXL ? "reader.actions.goToNextPage.compact" : "reader.actions.goToNextChapter.compact") }) }),
|
|
4840
4858
|
onPress: () => go(next, !reducedMotion, () => {
|
|
4841
4859
|
})
|
|
4842
4860
|
};
|
|
4843
4861
|
}
|
|
4844
4862
|
return links;
|
|
4845
|
-
}, [go, previousLocator, nextLocator, t, timeline, breakpoint, reducedMotion]);
|
|
4863
|
+
}, [go, previousLocator, nextLocator, t, timeline, breakpoint, reducedMotion, isFXL]);
|
|
4846
4864
|
useEffect(() => {
|
|
4847
4865
|
updateLinks();
|
|
4848
4866
|
}, [timeline, updateLinks]);
|
|
@@ -5046,5 +5064,5 @@ function getReaderClassNames(options) {
|
|
|
5046
5064
|
}
|
|
5047
5065
|
|
|
5048
5066
|
export { NavigatorProvider, Peripherals, StatefulActionIcon, StatefulBottomSheet, StatefulCollapsibleActionsBar, StatefulColumns, StatefulDockedSheet, StatefulDockingWrapper, StatefulDropdown, StatefulFontFamily, StatefulFullScreenSheet, StatefulFullscreenTrigger, StatefulGroupWrapper, StatefulHyphens, StatefulJumpToPositionContainer, StatefulJumpToPositionTrigger, StatefulLayout, StatefulLetterSpacing, StatefulLineHeight, StatefulNumberField, StatefulOverflowMenu, StatefulOverflowMenuItem, StatefulParagraphIndent, StatefulParagraphSpacing, StatefulPopoverSheet, StatefulPreferencesProvider, StatefulPublisherStyles, StatefulRadioGroup, StatefulReaderFooter, StatefulReaderHeader, StatefulSettingsContainer, StatefulSettingsTrigger, StatefulSheetWrapper, StatefulSlider, StatefulSpacingGroup, StatefulSpacingGroupContainer, StatefulSpacingPresets, StatefulSwitch, StatefulTextAlign, StatefulTextGroup, StatefulTextGroupContainer, StatefulTextNormalize, StatefulTheme, StatefulTocContainer, StatefulTocTrigger, StatefulWordSpacing, StatefulZoom, ThPluginProvider, ThPluginRegistry, UnstableStatefulFontWeight, createDefaultPlugin, getReaderClassNames, thorium_web_button_default, thorium_web_reader_app_default, useDocking, useGridNavigation, useGridTemplate, useLineHeight, useNavigator, usePublication, useReaderTransitions, useSpacingPresets };
|
|
5049
|
-
//# sourceMappingURL=chunk-
|
|
5050
|
-
//# sourceMappingURL=chunk-
|
|
5067
|
+
//# sourceMappingURL=chunk-2JHEFF46.mjs.map
|
|
5068
|
+
//# sourceMappingURL=chunk-2JHEFF46.mjs.map
|