@edrlab/thorium-web 1.1.1 → 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/{StatefulReader-BU_EpfhE.d.mts → StatefulReader-BjH7bkU1.d.mts} +1 -1
- package/dist/{ThPreferencesAdapter-CYSE2wnE.d.mts → ThPreferencesAdapter-x_D4c7wI.d.mts} +1 -2
- package/dist/{chunk-6JMWZYOA.mjs → chunk-2JHEFF46.mjs} +7 -9
- 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-NHUVBN7S.mjs → chunk-EY4D4BZN.mjs} +4 -4
- package/dist/{chunk-NHUVBN7S.mjs.map → chunk-EY4D4BZN.mjs.map} +1 -1
- package/dist/{chunk-DCW6H2DC.mjs → chunk-IRA4ZKAX.mjs} +108 -7
- package/dist/chunk-IRA4ZKAX.mjs.map +1 -0
- package/dist/{chunk-RNED2SPT.mjs → chunk-IYAFKTPL.mjs} +3 -3
- 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.d.mts +3 -3
- package/dist/components/Epub/index.mjs +10 -10
- package/dist/components/Misc/index.mjs +2 -2
- package/dist/components/WebPub/index.d.mts +5 -5
- package/dist/components/WebPub/index.mjs +10 -10
- package/dist/core/Hooks/index.mjs +1 -1
- package/dist/i18n/index.mjs +4 -4
- package/dist/lib/index.d.mts +1 -1
- package/dist/locales/da/thorium-shared.json +3 -9
- package/dist/locales/el/thorium-web.json +12 -0
- package/dist/locales/en/thorium-shared.json +62 -24
- package/dist/locales/et/thorium-shared.json +17 -12
- package/dist/locales/et/thorium-web.json +95 -1
- package/dist/locales/fi/thorium-shared.json +60 -9
- package/dist/locales/fr/thorium-shared.json +12 -13
- package/dist/locales/it/thorium-shared.json +15 -25
- package/dist/locales/it/thorium-web.json +95 -1
- package/dist/locales/lt/thorium-shared.json +12 -24
- package/dist/locales/pt-BR/thorium-shared.json +12 -24
- package/dist/locales/pt-PT/thorium-shared.json +12 -24
- package/dist/locales/sv/thorium-shared.json +12 -24
- package/dist/locales/tr/thorium-shared.json +14 -24
- package/dist/preferences/index.d.mts +3 -3
- package/dist/preferences/index.mjs +2 -2
- package/dist/{usePreferences-aGLrGdNR.d.mts → usePreferences-CRjFlZvF.d.mts} +1 -1
- package/package.json +3 -2
- package/dist/chunk-6JMWZYOA.mjs.map +0 -1
- package/dist/chunk-DCW6H2DC.mjs.map +0 -1
- package/dist/chunk-J5NR3FTV.mjs +0 -106
- package/dist/chunk-J5NR3FTV.mjs.map +0 -1
- package/dist/chunk-OWJCESNF.mjs.map +0 -1
- package/dist/chunk-RNED2SPT.mjs.map +0 -1
|
@@ -4,7 +4,7 @@ import { d as ThActionsTriggerVariant, a as ThCollapsibilityVisibility, b as ThA
|
|
|
4
4
|
import { T as ThActionButtonProps, f as ThMenuItemProps, a as ThCollapsibleActionsBarProps, t as ThSettingsEntry, W as WithRef, r as ThDropdownProps, h as ThNumberFieldProps, k as ThRadioGroupProps, m as ThSliderProps, o as ThSwitchProps } from './ThSettingsWrapper-CMLegiqy.mjs';
|
|
5
5
|
import { d as ThActionsKeys, c as ThDockingKeys, t as ThSheetTypes, g as ThTextSettingsKeys, h as ThSpacingSettingsKeys, i as ThSpacingPresetKeys, T as ThLineHeightOptions, u as ThSheetHeaderVariant, a as ThTextAlignOptions, j as ThLayoutUI } from './enums-CBaXSsr9.mjs';
|
|
6
6
|
import React__default, { RefObject, ReactNode } from 'react';
|
|
7
|
-
import { q as ThSettingsGroupPref, a as ThPreferences, D as DefaultKeys, d as defaultFontFamilyOptions } from './ThPreferencesAdapter-
|
|
7
|
+
import { q as ThSettingsGroupPref, a as ThPreferences, D as DefaultKeys, d as defaultFontFamilyOptions } from './ThPreferencesAdapter-x_D4c7wI.mjs';
|
|
8
8
|
import { PressEvent } from 'react-aria';
|
|
9
9
|
import { A as ActionsStateKeys } from './actionsReducer-BKoeohBu.mjs';
|
|
10
10
|
import { T as ThColorScheme } from './useContrast-Cgsrl7GS.mjs';
|
|
@@ -324,7 +324,6 @@ type SettingsKeyType<K extends CustomizableKeys = DefaultKeys> = K["settings"] e
|
|
|
324
324
|
type TextSettingsKeyType<K extends CustomizableKeys = DefaultKeys> = K["text"] extends string ? K["text"] : ThTextSettingsKeys;
|
|
325
325
|
type SpacingSettingsKeyType<K extends CustomizableKeys = DefaultKeys> = K["spacing"] extends string ? K["spacing"] : ThSpacingSettingsKeys;
|
|
326
326
|
|
|
327
|
-
declare const supportedLocales: string[];
|
|
328
327
|
declare const defaultActionKeysObject: ThActionsTokens;
|
|
329
328
|
declare const defaultTextSettingsMain: ThTextSettingsKeys[];
|
|
330
329
|
declare const defaultTextSettingsSubpanel: ThTextSettingsKeys[];
|
|
@@ -381,4 +380,4 @@ interface ThPreferencesAdapter<T extends CustomizableKeys = CustomizableKeys> {
|
|
|
381
380
|
unsubscribe(callback: (prefs: ThPreferences<T>) => void): void;
|
|
382
381
|
}
|
|
383
382
|
|
|
384
|
-
export { type ActionKey as A, createPreferences as B, type CustomizableKeys as C, type DefaultKeys as D, type ActionKeyType as E, type ThemeKeyType as F, type SettingsKeyType as G, type TextSettingsKeyType as H, type I18nValue as I, type SpacingSettingsKeyType as J, type useThemingProps as K,
|
|
383
|
+
export { type ActionKey as A, createPreferences as B, type CustomizableKeys as C, type DefaultKeys as D, type ActionKeyType as E, type ThemeKeyType as F, type SettingsKeyType as G, type TextSettingsKeyType as H, type I18nValue as I, type SpacingSettingsKeyType as J, type useThemingProps as K, defaultActionKeysObject as L, defaultTextSettingsMain as M, defaultTextSettingsSubpanel as N, defaultSpacingSettingsMain as O, defaultSpacingSettingsSubpanel as P, defaultSpacingPresetsOrder as Q, defaultParagraphSpacing as R, type SettingsKey as S, type ThPreferencesAdapter as T, defaultParagraphIndent as U, defaultWordSpacing as V, defaultLetterSpacing as W, defaultLineHeights as X, defaultZoom as Y, defaultSpacingPresets as Z, type ThPreferences as a, type ThemeTokens as b, type ThBackLinkContent as c, defaultFontFamilyOptions as d, type ThBackLinkPref as e, type ThBottomSheetDetent as f, type ThActionsSnappedPref as g, type ThActionsDockedPref as h, type ThActionsTokens as i, type ThSettingsSpacingPresets as j, type ThSpacingPreset as k, type ThemeKey as l, type TextSettingsKey as m, type SpacingSettingsKey as n, type ThActionsPref as o, type ThDockingPref as p, type ThSettingsGroupPref as q, type ThSettingsRangePref as r, type ThSettingsRadioPref as s, type ThSettingsKeyTypes as t, useTheming as u, type ThConstraintKeys as v, type ThFormatPrefValue as w, type ThFormatPref as x, type ThPaginatedAffordancePrefValue as y, type ThPaginatedAffordancePref as z };
|
|
@@ -1,10 +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, usePreferenceKeys, 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-
|
|
7
|
-
import { defaultSpacingSettingsSubpanel, defaultSpacingSettingsMain, defaultTextSettingsSubpanel, defaultTextSettingsMain, defaultFontFamilyOptions } from './chunk-J5NR3FTV.mjs';
|
|
6
|
+
import { useI18n } from './chunk-IYAFKTPL.mjs';
|
|
8
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';
|
|
9
8
|
import { usePrevious } from './chunk-YZ73DHRU.mjs';
|
|
10
9
|
import { ThDockingTypes, ThSheetTypes, ThTextSettingsKeys, ThSpacingSettingsKeys, ThRunningHeadFormat, ThProgressionFormat } from './chunk-CVM2ZAPL.mjs';
|
|
@@ -3875,7 +3874,7 @@ var createDefaultPlugin = () => {
|
|
|
3875
3874
|
id: "core",
|
|
3876
3875
|
name: "Core Components",
|
|
3877
3876
|
description: "Default components for Thorium Web Epub StatefulReader",
|
|
3878
|
-
version: "1.1.
|
|
3877
|
+
version: "1.1.2",
|
|
3879
3878
|
components: {
|
|
3880
3879
|
actions: {
|
|
3881
3880
|
["fullscreen" /* fullscreen */]: {
|
|
@@ -4704,8 +4703,7 @@ var StatefulReaderProgression = ({
|
|
|
4704
4703
|
break;
|
|
4705
4704
|
case "positionsLeft" /* positionsLeft */:
|
|
4706
4705
|
if (positionsLeft !== void 0) {
|
|
4707
|
-
|
|
4708
|
-
text = t(`reader.progression.positionsLeft.${pluralKey}`, {
|
|
4706
|
+
text = t(`reader.progression.positionsLeftInChapter`, {
|
|
4709
4707
|
count: positionsLeft
|
|
4710
4708
|
});
|
|
4711
4709
|
}
|
|
@@ -5066,5 +5064,5 @@ function getReaderClassNames(options) {
|
|
|
5066
5064
|
}
|
|
5067
5065
|
|
|
5068
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 };
|
|
5069
|
-
//# sourceMappingURL=chunk-
|
|
5070
|
-
//# sourceMappingURL=chunk-
|
|
5067
|
+
//# sourceMappingURL=chunk-2JHEFF46.mjs.map
|
|
5068
|
+
//# sourceMappingURL=chunk-2JHEFF46.mjs.map
|