@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.
Files changed (97) hide show
  1. package/README.md +2 -0
  2. package/dist/{StatefulReader-DdQrrgZY.d.mts → StatefulReader-BU_EpfhE.d.mts} +2 -26
  3. package/dist/{ThPreferencesAdapter-x_D4c7wI.d.mts → ThPreferencesAdapter-CYSE2wnE.d.mts} +2 -1
  4. package/dist/{chunk-PVGIY5SC.mjs → chunk-6JMWZYOA.mjs} +487 -370
  5. package/dist/chunk-6JMWZYOA.mjs.map +1 -0
  6. package/dist/chunk-7CGMWOZN.mjs +20 -0
  7. package/dist/chunk-7CGMWOZN.mjs.map +1 -0
  8. package/dist/{chunk-OXZU5FTD.mjs → chunk-DCW6H2DC.mjs} +40 -122
  9. package/dist/chunk-DCW6H2DC.mjs.map +1 -0
  10. package/dist/{chunk-SQHOOSST.mjs → chunk-HE3WFPGE.mjs} +84 -85
  11. package/dist/chunk-HE3WFPGE.mjs.map +1 -0
  12. package/dist/chunk-J5NR3FTV.mjs +106 -0
  13. package/dist/chunk-J5NR3FTV.mjs.map +1 -0
  14. package/dist/chunk-NHUVBN7S.mjs +35 -0
  15. package/dist/chunk-NHUVBN7S.mjs.map +1 -0
  16. package/dist/chunk-RNED2SPT.mjs +69 -0
  17. package/dist/chunk-RNED2SPT.mjs.map +1 -0
  18. package/dist/components/Epub/index.css +1282 -0
  19. package/dist/components/Epub/index.css.map +1 -0
  20. package/dist/components/Epub/index.d.mts +3 -3
  21. package/dist/components/Epub/index.mjs +49 -45
  22. package/dist/components/Epub/index.mjs.map +1 -1
  23. package/dist/components/Misc/index.css +102 -0
  24. package/dist/components/Misc/index.css.map +1 -0
  25. package/dist/components/Misc/index.d.mts +28 -0
  26. package/dist/components/Misc/index.mjs +111 -0
  27. package/dist/components/Misc/index.mjs.map +1 -0
  28. package/dist/components/WebPub/index.css +1214 -0
  29. package/dist/components/WebPub/index.css.map +1 -0
  30. package/dist/components/WebPub/index.d.mts +5 -5
  31. package/dist/components/WebPub/index.mjs +29 -25
  32. package/dist/components/WebPub/index.mjs.map +1 -1
  33. package/dist/core/Components/index.mjs +0 -1
  34. package/dist/core/Helpers/index.d.mts +12 -2
  35. package/dist/core/Helpers/index.mjs +1 -2
  36. package/dist/core/Hooks/index.mjs +0 -1
  37. package/dist/i18n/index.d.mts +3 -3
  38. package/dist/i18n/index.mjs +6 -5
  39. package/dist/lib/index.d.mts +1 -1
  40. package/dist/lib/index.mjs +2 -3
  41. package/dist/locales/ar/thorium-shared.json +10 -0
  42. package/dist/locales/ar/thorium-web.json +0 -10
  43. package/dist/locales/da/thorium-shared.json +144 -0
  44. package/dist/locales/da/thorium-web.json +16 -153
  45. package/dist/locales/en/thorium-shared.json +192 -0
  46. package/dist/locales/en/thorium-web.json +4 -141
  47. package/dist/locales/et/thorium-shared.json +33 -0
  48. package/dist/locales/et/thorium-web.json +1 -0
  49. package/dist/locales/fi/thorium-shared.json +138 -0
  50. package/dist/locales/fi/thorium-web.json +4 -141
  51. package/dist/locales/fr/thorium-shared.json +152 -0
  52. package/dist/locales/fr/thorium-web.json +2 -166
  53. package/dist/locales/it/thorium-shared.json +190 -0
  54. package/dist/locales/it/thorium-web.json +1 -0
  55. package/dist/locales/lt/thorium-shared.json +192 -0
  56. package/dist/locales/lt/thorium-web.json +13 -150
  57. package/dist/locales/pl/thorium-shared.json +122 -0
  58. package/dist/locales/pl/thorium-web.json +5 -156
  59. package/dist/locales/pt-BR/thorium-shared.json +192 -0
  60. package/dist/locales/pt-BR/thorium-web.json +2 -126
  61. package/dist/locales/pt-PT/thorium-shared.json +192 -0
  62. package/dist/locales/pt-PT/thorium-web.json +5 -142
  63. package/dist/locales/sv/thorium-shared.json +190 -0
  64. package/dist/locales/sv/thorium-web.json +31 -168
  65. package/dist/locales/ta/thorium-shared.json +120 -0
  66. package/dist/locales/ta/thorium-web.json +2 -126
  67. package/dist/locales/tr/thorium-shared.json +79 -0
  68. package/dist/next-lib/index.mjs +0 -2
  69. package/dist/next-lib/index.mjs.map +1 -1
  70. package/dist/preferences/index.d.mts +3 -3
  71. package/dist/preferences/index.mjs +4 -4
  72. package/dist/{usePreferences-CRjFlZvF.d.mts → usePreferences-aGLrGdNR.d.mts} +1 -1
  73. package/package.json +43 -36
  74. package/dist/backLink.module-QFOMD4RA.module.css +0 -36
  75. package/dist/chunk-3QS3WKRC.mjs +0 -29
  76. package/dist/chunk-3QS3WKRC.mjs.map +0 -1
  77. package/dist/chunk-G2SKPGPO.mjs +0 -84
  78. package/dist/chunk-G2SKPGPO.mjs.map +0 -1
  79. package/dist/chunk-OXZU5FTD.mjs.map +0 -1
  80. package/dist/chunk-PVGIY5SC.mjs.map +0 -1
  81. package/dist/chunk-SQHOOSST.mjs.map +0 -1
  82. package/dist/chunk-TTGURRX3.mjs +0 -19
  83. package/dist/chunk-TTGURRX3.mjs.map +0 -1
  84. package/dist/docking.module-TDNYZX4H.module.css +0 -40
  85. package/dist/jumpToPosition.module-4C47UYPE.module.css +0 -41
  86. package/dist/overflowMenu.module-QL32ISXF.module.css +0 -68
  87. package/dist/publicationGrid.module-T6ISNRGM.module.css +0 -70
  88. package/dist/reader-NGCQJKLX.css +0 -261
  89. package/dist/readerArrowButton.module-EFLOIADG.module.css +0 -77
  90. package/dist/readerHeader.module-RNGQFLVS.module.css +0 -35
  91. package/dist/readerLoader.module-KDBPCQZJ.module.css +0 -40
  92. package/dist/readerPagination.module-DYBZAQ7H.module.css +0 -76
  93. package/dist/readerProgression.module-7PU7L74S.module.css +0 -5
  94. package/dist/readerSharedUI.module-Y2VDWFS5.module.css +0 -98
  95. package/dist/settings.module-H5MUDFJO.module.css +0 -437
  96. package/dist/sheets.module-LJOLY4MK.module.css +0 -195
  97. 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
+ ![Thorium Web in a browser with settings and table of contents panels open. Default settings such as font-size, font-family, and themes are visible in the overflowing settings panel. In table of contents, the current entry is indicated, and its parent entry is expanded.](./thorium-web.png)
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-x_D4c7wI.mjs';
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, StatefulLoader as ah, DefaultImage as ai, type Publication as aj, type PublicationGridProps as ak, PublicationGrid as al, StatefulPreferencesProvider as am, type ReadiumCSSSettings as an, type StatelessCache as ao, StatefulReader as ap, 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 };
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, 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 };
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 };