@edrlab/thorium-web 1.0.9 → 1.1.1
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/README.md +2 -0
- package/dist/{StatefulReader-DdQrrgZY.d.mts → StatefulReader-BU_EpfhE.d.mts} +2 -26
- package/dist/{ThPreferencesAdapter-x_D4c7wI.d.mts → ThPreferencesAdapter-CYSE2wnE.d.mts} +2 -1
- package/dist/{chunk-PVGIY5SC.mjs → chunk-6JMWZYOA.mjs} +487 -370
- package/dist/chunk-6JMWZYOA.mjs.map +1 -0
- package/dist/chunk-7CGMWOZN.mjs +20 -0
- package/dist/chunk-7CGMWOZN.mjs.map +1 -0
- package/dist/{chunk-OXZU5FTD.mjs → chunk-DCW6H2DC.mjs} +40 -122
- package/dist/chunk-DCW6H2DC.mjs.map +1 -0
- package/dist/{chunk-SQHOOSST.mjs → chunk-HE3WFPGE.mjs} +84 -85
- package/dist/chunk-HE3WFPGE.mjs.map +1 -0
- package/dist/chunk-J5NR3FTV.mjs +106 -0
- package/dist/chunk-J5NR3FTV.mjs.map +1 -0
- package/dist/chunk-NHUVBN7S.mjs +35 -0
- package/dist/chunk-NHUVBN7S.mjs.map +1 -0
- package/dist/chunk-RNED2SPT.mjs +69 -0
- package/dist/chunk-RNED2SPT.mjs.map +1 -0
- package/dist/components/Epub/index.css +1282 -0
- package/dist/components/Epub/index.css.map +1 -0
- package/dist/components/Epub/index.d.mts +3 -3
- package/dist/components/Epub/index.mjs +49 -45
- package/dist/components/Epub/index.mjs.map +1 -1
- package/dist/components/Misc/index.css +102 -0
- package/dist/components/Misc/index.css.map +1 -0
- package/dist/components/Misc/index.d.mts +28 -0
- package/dist/components/Misc/index.mjs +111 -0
- package/dist/components/Misc/index.mjs.map +1 -0
- package/dist/components/WebPub/index.css +1214 -0
- package/dist/components/WebPub/index.css.map +1 -0
- package/dist/components/WebPub/index.d.mts +5 -5
- package/dist/components/WebPub/index.mjs +29 -25
- package/dist/components/WebPub/index.mjs.map +1 -1
- package/dist/core/Components/index.mjs +0 -1
- package/dist/core/Helpers/index.d.mts +12 -2
- package/dist/core/Helpers/index.mjs +1 -2
- package/dist/core/Hooks/index.mjs +0 -1
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.mjs +6 -5
- package/dist/lib/index.d.mts +1 -1
- package/dist/lib/index.mjs +2 -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 +144 -0
- package/dist/locales/da/thorium-web.json +16 -153
- package/dist/locales/en/thorium-shared.json +192 -0
- package/dist/locales/en/thorium-web.json +4 -141
- package/dist/locales/et/thorium-shared.json +33 -0
- package/dist/locales/et/thorium-web.json +1 -0
- package/dist/locales/fi/thorium-shared.json +138 -0
- package/dist/locales/fi/thorium-web.json +4 -141
- package/dist/locales/fr/thorium-shared.json +152 -0
- package/dist/locales/fr/thorium-web.json +2 -166
- package/dist/locales/it/thorium-shared.json +190 -0
- package/dist/locales/it/thorium-web.json +1 -0
- package/dist/locales/lt/thorium-shared.json +192 -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 -156
- package/dist/locales/pt-BR/thorium-shared.json +192 -0
- package/dist/locales/pt-BR/thorium-web.json +2 -126
- package/dist/locales/pt-PT/thorium-shared.json +192 -0
- package/dist/locales/pt-PT/thorium-web.json +5 -142
- package/dist/locales/sv/thorium-shared.json +190 -0
- package/dist/locales/sv/thorium-web.json +31 -168
- 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 +79 -0
- package/dist/next-lib/index.mjs +0 -2
- package/dist/next-lib/index.mjs.map +1 -1
- package/dist/preferences/index.d.mts +3 -3
- package/dist/preferences/index.mjs +4 -4
- package/dist/{usePreferences-CRjFlZvF.d.mts → usePreferences-aGLrGdNR.d.mts} +1 -1
- package/package.json +43 -36
- package/dist/backLink.module-QFOMD4RA.module.css +0 -36
- package/dist/chunk-3QS3WKRC.mjs +0 -29
- package/dist/chunk-3QS3WKRC.mjs.map +0 -1
- package/dist/chunk-G2SKPGPO.mjs +0 -84
- package/dist/chunk-G2SKPGPO.mjs.map +0 -1
- package/dist/chunk-OXZU5FTD.mjs.map +0 -1
- package/dist/chunk-PVGIY5SC.mjs.map +0 -1
- package/dist/chunk-SQHOOSST.mjs.map +0 -1
- package/dist/chunk-TTGURRX3.mjs +0 -19
- package/dist/chunk-TTGURRX3.mjs.map +0 -1
- package/dist/docking.module-TDNYZX4H.module.css +0 -40
- package/dist/jumpToPosition.module-4C47UYPE.module.css +0 -41
- package/dist/overflowMenu.module-QL32ISXF.module.css +0 -68
- package/dist/publicationGrid.module-T6ISNRGM.module.css +0 -70
- package/dist/reader-NGCQJKLX.css +0 -261
- package/dist/readerArrowButton.module-EFLOIADG.module.css +0 -77
- package/dist/readerHeader.module-RNGQFLVS.module.css +0 -35
- package/dist/readerLoader.module-KDBPCQZJ.module.css +0 -40
- package/dist/readerPagination.module-DYBZAQ7H.module.css +0 -76
- package/dist/readerProgression.module-7PU7L74S.module.css +0 -5
- package/dist/readerSharedUI.module-Y2VDWFS5.module.css +0 -98
- package/dist/settings.module-H5MUDFJO.module.css +0 -437
- package/dist/sheets.module-LJOLY4MK.module.css +0 -195
- package/dist/toc.module-F47C5CDS.module.css +0 -153
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Thorium Web is a web-based reader for EPUB and other digital publications, built using Next.js and modern web technologies. It is designed to provide a fast, responsive, and accessible reading experience.
|
|
4
4
|
|
|
5
|
+

|
|
6
|
+
|
|
5
7
|
## Features
|
|
6
8
|
|
|
7
9
|
- Supports EPUB
|
|
@@ -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-CYSE2wnE.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';
|
|
@@ -288,30 +288,6 @@ declare const StatefulSheetWrapper: ({ sheetType, sheetProps, children }: {
|
|
|
288
288
|
children: ReactNode;
|
|
289
289
|
}) => react_jsx_runtime.JSX.Element;
|
|
290
290
|
|
|
291
|
-
declare const StatefulLoader: ({ isLoading, children }: {
|
|
292
|
-
isLoading: boolean;
|
|
293
|
-
children: ReactNode;
|
|
294
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
295
|
-
|
|
296
|
-
declare const DefaultImage: ({ src, alt }: {
|
|
297
|
-
src: string;
|
|
298
|
-
alt?: string;
|
|
299
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
300
|
-
interface Publication {
|
|
301
|
-
title: string;
|
|
302
|
-
author: string;
|
|
303
|
-
cover: string;
|
|
304
|
-
url: string;
|
|
305
|
-
rendition?: string;
|
|
306
|
-
}
|
|
307
|
-
interface PublicationGridProps {
|
|
308
|
-
publications: Publication[];
|
|
309
|
-
columnWidth?: number;
|
|
310
|
-
gap?: string;
|
|
311
|
-
renderCover?: (publication: Publication) => React__default.ReactElement<React__default.ImgHTMLAttributes<HTMLImageElement>>;
|
|
312
|
-
}
|
|
313
|
-
declare const PublicationGrid: ({ publications, columnWidth, gap, renderCover, }: PublicationGridProps) => react_jsx_runtime.JSX.Element;
|
|
314
|
-
|
|
315
291
|
declare const StatefulPreferencesProvider: ({ children, initialPreferences }: {
|
|
316
292
|
children: ReactNode;
|
|
317
293
|
initialPreferences?: ThPreferences<DefaultKeys>;
|
|
@@ -384,4 +360,4 @@ interface StatefulReaderProps {
|
|
|
384
360
|
}
|
|
385
361
|
declare const StatefulReader: ({ rawManifest, selfHref, plugins }: StatefulReaderProps) => react_jsx_runtime.JSX.Element | null;
|
|
386
362
|
|
|
387
|
-
export { StatefulHyphens as $, StatefulDropdown as A, type StatefulNumberFieldProps as B, StatefulNumberField as C, type StatefulRadioGroupProps as D, StatefulRadioGroup as E, type StatefulSliderProps as F, StatefulSlider as G, type StatefulSwitchProps as H, StatefulSwitch as I, type useGridNavigationProps as J, useGridNavigation as K, useGridTemplate as L, type StatefulSettingsItemProps as M, StatefulLetterSpacing as N, StatefulLineHeight as O, StatefulParagraphIndent as P, StatefulParagraphSpacing as Q, StatefulSpacingGroup as R, type StatefulReaderProps as S, type ThPlugin as T, StatefulSpacingGroupContainer as U, StatefulSpacingPresets as V, StatefulWordSpacing as W, useLineHeight as X, useSpacingPresets as Y, StatefulFontFamily as Z, UnstableStatefulFontWeight as _, usePublication as a, StatefulTextAlign as a0, StatefulTextGroup as a1, StatefulTextGroupContainer as a2, StatefulTextNormalize as a3, StatefulPublisherStyles as a4, StatefulZoom as a5, type StatefulBottomSheetProps as a6, type ScrimPref as a7, StatefulBottomSheet as a8, type StatefulDockedSheetProps as a9, StatefulDockedSheet as aa, type StatefulFullScreenSheetProps as ab, StatefulFullScreenSheet as ac, type StatefulPopoverSheetProps as ad, StatefulPopoverSheet as ae, StatefulSheetWrapper as af, type StatefulSheet as ag,
|
|
363
|
+
export { StatefulHyphens as $, StatefulDropdown as A, type StatefulNumberFieldProps as B, StatefulNumberField as C, type StatefulRadioGroupProps as D, StatefulRadioGroup as E, type StatefulSliderProps as F, StatefulSlider as G, type StatefulSwitchProps as H, StatefulSwitch as I, type useGridNavigationProps as J, useGridNavigation as K, useGridTemplate as L, type StatefulSettingsItemProps as M, StatefulLetterSpacing as N, StatefulLineHeight as O, StatefulParagraphIndent as P, StatefulParagraphSpacing as Q, StatefulSpacingGroup as R, type StatefulReaderProps as S, type ThPlugin as T, StatefulSpacingGroupContainer as U, StatefulSpacingPresets as V, StatefulWordSpacing as W, useLineHeight as X, useSpacingPresets as Y, StatefulFontFamily as Z, UnstableStatefulFontWeight as _, usePublication as a, StatefulTextAlign as a0, StatefulTextGroup as a1, StatefulTextGroupContainer as a2, StatefulTextNormalize as a3, StatefulPublisherStyles as a4, StatefulZoom as a5, type StatefulBottomSheetProps as a6, type ScrimPref as a7, StatefulBottomSheet as a8, type StatefulDockedSheetProps as a9, StatefulDockedSheet as aa, type StatefulFullScreenSheetProps as ab, StatefulFullScreenSheet as ac, type StatefulPopoverSheetProps as ad, StatefulPopoverSheet as ae, StatefulSheetWrapper as af, type StatefulSheet as ag, StatefulPreferencesProvider as ah, type ReadiumCSSSettings as ai, type StatelessCache as aj, StatefulReader as ak, useReaderTransitions as b, type StatefulActionsMapObject as c, type StatefulActionTriggerProps as d, type StatefulActionContainerProps as e, StatefulFullscreenTrigger as f, StatefulJumpToPositionContainer as g, StatefulJumpToPositionTrigger as h, StatefulSettingsContainer as i, StatefulSettingsTrigger as j, StatefulTocContainer as k, StatefulTocTrigger as l, type StatefulActionIconProps as m, StatefulActionIcon as n, type StatefulOverflowMenuItemProps as o, StatefulOverflowMenuItem as p, type StatefulCollapsibleActionsBarProps as q, StatefulCollapsibleActionsBar as r, type StatefulOverflowMenuProps as s, StatefulOverflowMenu as t, useNavigator as u, useDocking as v, createDefaultPlugin as w, type StatefulGroupWrapperProps as x, StatefulGroupWrapper as y, type StatefulDropdownProps as z };
|
|
@@ -324,6 +324,7 @@ 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[];
|
|
327
328
|
declare const defaultActionKeysObject: ThActionsTokens;
|
|
328
329
|
declare const defaultTextSettingsMain: ThTextSettingsKeys[];
|
|
329
330
|
declare const defaultTextSettingsSubpanel: ThTextSettingsKeys[];
|
|
@@ -380,4 +381,4 @@ interface ThPreferencesAdapter<T extends CustomizableKeys = CustomizableKeys> {
|
|
|
380
381
|
unsubscribe(callback: (prefs: ThPreferences<T>) => void): void;
|
|
381
382
|
}
|
|
382
383
|
|
|
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,
|
|
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, supportedLocales as L, defaultActionKeysObject as M, defaultTextSettingsMain as N, defaultTextSettingsSubpanel as O, defaultSpacingSettingsMain as P, defaultSpacingSettingsSubpanel as Q, defaultSpacingPresetsOrder as R, type SettingsKey as S, type ThPreferencesAdapter as T, defaultParagraphSpacing as U, defaultParagraphIndent as V, defaultWordSpacing as W, defaultLetterSpacing as X, defaultLineHeights as Y, defaultZoom as Z, defaultSpacingPresets as _, 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 };
|