@edrlab/thorium-web 1.0.0-beta.2 → 1.0.0-beta.3
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/LICENSE +1 -1
- package/dist/{ThSettingsWrapper-De4qvjsh.d.mts → ThSettingsWrapper-CA2_0nQz.d.mts} +1 -1
- package/dist/{actionsReducer-e808e6V_.d.mts → actionsReducer-D4Mphfuv.d.mts} +1 -1
- package/dist/chunk-BNPR6V7V.mjs.map +1 -1
- package/dist/chunk-IEYR7QV7.mjs.map +1 -1
- package/dist/{chunk-O4MBY6P4.mjs → chunk-KQLSID7M.mjs} +52 -20
- package/dist/chunk-KQLSID7M.mjs.map +1 -0
- package/dist/chunk-MLEYTQGK.mjs.map +1 -1
- package/dist/chunk-NA3KMUS4.mjs +417 -0
- package/dist/chunk-NA3KMUS4.mjs.map +1 -0
- package/dist/{chunk-GHEGQBCW.mjs → chunk-NOV43IG4.mjs} +4 -18
- package/dist/chunk-NOV43IG4.mjs.map +1 -0
- package/dist/chunk-NQ2ZSGCX.mjs.map +1 -1
- package/dist/{chunk-TWGRY5SW.mjs → chunk-RQFPGXWN.mjs} +29 -22
- package/dist/chunk-RQFPGXWN.mjs.map +1 -0
- package/dist/{chunk-BVSROK7Z.mjs → chunk-SDVDRPT5.mjs} +116 -6
- package/dist/chunk-SDVDRPT5.mjs.map +1 -0
- package/dist/chunk-TTGURRX3.mjs.map +1 -1
- package/dist/{chunk-PGZF5NO2.mjs → chunk-TXILKP4F.mjs} +16 -12
- package/dist/chunk-TXILKP4F.mjs.map +1 -0
- package/dist/components/Epub/index.d.mts +48 -25
- package/dist/components/Epub/index.mjs +877 -407
- package/dist/components/Epub/index.mjs.map +1 -1
- package/dist/{const-DGYvRLhk.d.mts → const-IAfi9t_g.d.mts} +14 -11
- package/dist/core/Components/index.d.mts +52 -6
- package/dist/core/Components/index.mjs +2 -2
- package/dist/core/Helpers/index.d.mts +3 -9
- package/dist/core/Helpers/index.mjs +2 -3
- package/dist/core/Hooks/index.d.mts +15 -5
- package/dist/core/Hooks/index.mjs +2 -3
- package/dist/{enums-DxbWWvn7.d.mts → enums-DqGQ66r1.d.mts} +1 -23
- package/dist/lib/index.d.mts +355 -11
- package/dist/lib/index.mjs +2 -3
- package/dist/{overflowMenu.module-XQRI7RJJ.module.css → overflowMenu.module-FO27A2A3.module.css} +12 -0
- package/dist/preferences/index.d.mts +6 -6
- package/dist/preferences/index.mjs +2 -3
- package/dist/publicationGrid.module-T6ISNRGM.module.css +70 -0
- package/dist/{reader-QFK7DGLX.css → reader-NGCQJKLX.css} +74 -36
- package/dist/{readerArrowButton.module-NHAUIQXS.module.css → readerArrowButton.module-EFLOIADG.module.css} +4 -0
- package/dist/{readerHeader.module-OBKZATSW.module.css → readerHeader.module-K7OLOIJP.module.css} +2 -7
- package/dist/{readerLoader.module-U6LLXOVQ.module.css → readerLoader.module-KDBPCQZJ.module.css} +1 -1
- package/dist/readerPagination.module-W4IAEOSH.module.css +73 -0
- package/dist/readerProgression.module-7PU7L74S.module.css +5 -0
- package/dist/{readerSharedUI.module-MCLGNG22.module.css → readerSharedUI.module-Y2VDWFS5.module.css} +1 -5
- package/dist/{sheets.module-DDN7GPMG.module.css → sheets.module-NA32WOSZ.module.css} +4 -4
- package/dist/{toc.module-XJLXQM7G.module.css → toc.module-KNW5CKIY.module.css} +1 -0
- package/dist/{useBreakpoints-I7vHrywa.d.mts → useBreakpoints-BQaiwecQ.d.mts} +1 -1
- package/dist/{useEpubNavigator-BrV4MYJy.d.mts → useEpubNavigator-DFRJ_tHa.d.mts} +9 -10
- package/dist/{usePreferences-B55XqFto.d.mts → usePreferences-BMyBhq7F.d.mts} +1 -1
- package/dist/useTimeline-Bid5B7AQ.d.mts +39 -0
- package/package.json +31 -22
- package/dist/bookUrlConverter.module-J46O27CR.module.css +0 -63
- package/dist/chunk-3QS3WKRC.mjs +0 -29
- package/dist/chunk-3QS3WKRC.mjs.map +0 -1
- package/dist/chunk-BVSROK7Z.mjs.map +0 -1
- package/dist/chunk-GHEGQBCW.mjs.map +0 -1
- package/dist/chunk-JS5WI5D4.mjs +0 -600
- package/dist/chunk-JS5WI5D4.mjs.map +0 -1
- package/dist/chunk-O4MBY6P4.mjs.map +0 -1
- package/dist/chunk-PGZF5NO2.mjs.map +0 -1
- package/dist/chunk-TWGRY5SW.mjs.map +0 -1
- package/dist/index-ClB-1iNN.d.mts +0 -356
- package/dist/readerProgression.module-S5R3Y6JI.module.css +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as ThBreakpoints, h as ThDockingTypes, k as ThSheetTypes, l as ThSheetHeaderVariant, j as ThSettingsRangeVariant, d as ThSettingsKeys, p as ThLineHeightOptions, b as ThActionsKeys, c as ThThemeKeys, e as ThTextSettingsKeys, f as ThSpacingSettingsKeys, m as ThLayoutDirection, g as ThLayoutUI, a as ThDockingKeys } from './enums-DqGQ66r1.mjs';
|
|
2
2
|
import { U as UnstableShortcutRepresentation } from './keyboardUtilities-CoTR9LKx.mjs';
|
|
3
|
-
import { B as BreakpointsMap, T as ThBreakpointsObject } from './useBreakpoints-
|
|
3
|
+
import { B as BreakpointsMap, T as ThBreakpointsObject } from './useBreakpoints-BQaiwecQ.mjs';
|
|
4
4
|
import { T as ThColorScheme, a as ThContrast } from './useContrast-Cgsrl7GS.mjs';
|
|
5
5
|
import { T as ThCollapsibilityVisibility, a as ThCollapsibility } from './useCollapsibility-BmWuCzU4.mjs';
|
|
6
6
|
|
|
@@ -113,7 +113,7 @@ type ThSettingsKeyTypes = {
|
|
|
113
113
|
[ThSettingsKeys.wordSpacing]?: ThSettingsRangePref;
|
|
114
114
|
[ThSettingsKeys.zoom]?: ThSettingsRangePref;
|
|
115
115
|
};
|
|
116
|
-
type ThConstraintKeys = Extract<ThSheetTypes, ThSheetTypes.bottomSheet | ThSheetTypes.popover
|
|
116
|
+
type ThConstraintKeys = Extract<ThSheetTypes, ThSheetTypes.bottomSheet | ThSheetTypes.popover> | "pagination";
|
|
117
117
|
type CustomKeyType = string;
|
|
118
118
|
interface CustomizableKeys {
|
|
119
119
|
actionKeys: CustomKeyType;
|
|
@@ -142,12 +142,6 @@ interface ThPreferences<T extends Partial<CustomizableKeys> = {}> {
|
|
|
142
142
|
maximalLineLength?: number | null;
|
|
143
143
|
optimalLineLength: number;
|
|
144
144
|
pageGutter: number;
|
|
145
|
-
layoutStrategy?: ThLayoutStrategy | null;
|
|
146
|
-
};
|
|
147
|
-
scroll: {
|
|
148
|
-
topAffordance: ThScrollAffordancePref;
|
|
149
|
-
bottomAffordance: ThScrollAffordancePref;
|
|
150
|
-
backTo: ThScrollBackTo;
|
|
151
145
|
};
|
|
152
146
|
theming: {
|
|
153
147
|
arrow: {
|
|
@@ -162,7 +156,8 @@ interface ThPreferences<T extends Partial<CustomizableKeys> = {}> {
|
|
|
162
156
|
};
|
|
163
157
|
layout: {
|
|
164
158
|
ui?: {
|
|
165
|
-
|
|
159
|
+
reflow?: ThLayoutUI;
|
|
160
|
+
fxl?: ThLayoutUI;
|
|
166
161
|
};
|
|
167
162
|
radius: number;
|
|
168
163
|
spacing: number;
|
|
@@ -171,7 +166,7 @@ interface ThPreferences<T extends Partial<CustomizableKeys> = {}> {
|
|
|
171
166
|
scrim: string;
|
|
172
167
|
};
|
|
173
168
|
constraints?: {
|
|
174
|
-
[key in KeysOf<T["constraintsKeys"], ThConstraintKeys>]?: number;
|
|
169
|
+
[key in KeysOf<T["constraintsKeys"], ThConstraintKeys>]?: number | null;
|
|
175
170
|
};
|
|
176
171
|
};
|
|
177
172
|
breakpoints: BreakpointsMap<number | null>;
|
|
@@ -187,6 +182,14 @@ interface ThPreferences<T extends Partial<CustomizableKeys> = {}> {
|
|
|
187
182
|
};
|
|
188
183
|
};
|
|
189
184
|
};
|
|
185
|
+
affordances: {
|
|
186
|
+
scroll: {
|
|
187
|
+
hintInImmersive: boolean;
|
|
188
|
+
toggleOnMiddlePointer: Array<"tap" | "click">;
|
|
189
|
+
hideOnForwardScroll: boolean;
|
|
190
|
+
showOnBackwardScroll: boolean;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
190
193
|
actions: ThActionsPref<KeysOf<T["actionKeys"], ThActionsKeys>>;
|
|
191
194
|
shortcuts: {
|
|
192
195
|
representation: UnstableShortcutRepresentation;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { A as ActionStateObject } from '../../actionsReducer-D4Mphfuv.mjs';
|
|
2
|
+
import { a as ThDockingKeys } from '../../enums-DqGQ66r1.mjs';
|
|
3
3
|
export { C as CollapsiblePref, b as ThActionEntry, e as ThActionsBar, c as ThActionsBarProps, d as ThActionsTriggerVariant, a as ThCollapsibility, T as ThCollapsibilityVisibility, u as useCollapsibility } from '../../useCollapsibility-BmWuCzU4.mjs';
|
|
4
|
-
import { T as ThActionButtonProps, H as HTMLAttributesWithRef, W as WithRef } from '../../ThSettingsWrapper-
|
|
5
|
-
export { d as THMenuProps, c as ThActionButton, b as ThCollapsibleActionsBar, a as ThCollapsibleActionsBarProps, e as ThMenu, g as ThMenuItem, f as ThMenuItemProps, i as ThNumberField, h as ThNumberFieldProps, l as ThRadioGroup, j as ThRadioGroupItems, k as ThRadioGroupProps, q as ThSettingsEntry, r as ThSettingsPrefs, t as ThSettingsWrapper, s as ThSettingsWrapperProps, n as ThSlider, m as ThSliderProps, p as ThSwitch, o as ThSwitchProps } from '../../ThSettingsWrapper-
|
|
4
|
+
import { T as ThActionButtonProps, H as HTMLAttributesWithRef, W as WithRef } from '../../ThSettingsWrapper-CA2_0nQz.mjs';
|
|
5
|
+
export { d as THMenuProps, c as ThActionButton, b as ThCollapsibleActionsBar, a as ThCollapsibleActionsBarProps, e as ThMenu, g as ThMenuItem, f as ThMenuItemProps, i as ThNumberField, h as ThNumberFieldProps, l as ThRadioGroup, j as ThRadioGroupItems, k as ThRadioGroupProps, q as ThSettingsEntry, r as ThSettingsPrefs, t as ThSettingsWrapper, s as ThSettingsWrapperProps, n as ThSlider, m as ThSliderProps, p as ThSwitch, o as ThSwitchProps } from '../../ThSettingsWrapper-CA2_0nQz.mjs';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { ButtonProps, HeadingProps, PopoverProps, DialogProps, ModalOverlayProps, FormProps, Button, NumberFieldProps, LabelProps, InputProps, TextFieldProps, FieldErrorProps, ValidationResult, SearchFieldProps, SelectProps, ListBoxProps, ListBox, ListBoxItemProps } from 'react-aria-components';
|
|
8
|
-
import React__default, { ReactNode, HTMLAttributes } from 'react';
|
|
8
|
+
import React__default, { ReactNode, HTMLAttributes, ComponentType, SVGProps } from 'react';
|
|
9
9
|
import { SheetRef, Sheet } from 'react-modal-sheet';
|
|
10
10
|
import { AriaOverlayProps } from 'react-aria';
|
|
11
11
|
import '@reduxjs/toolkit';
|
|
@@ -200,6 +200,43 @@ declare const ThLoader: ({ ref, isLoading, loader, children, ...props }: ThLoade
|
|
|
200
200
|
|
|
201
201
|
declare const ThHeader: ({ ref, children, ...props }: HTMLAttributesWithRef<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
202
202
|
|
|
203
|
+
interface ThInteractiveOverlayProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
204
|
+
ref?: React.ForwardedRef<HTMLDivElement>;
|
|
205
|
+
isActive: boolean;
|
|
206
|
+
children?: never;
|
|
207
|
+
}
|
|
208
|
+
declare const ThInteractiveOverlay: ({ ref, isActive, className, style, ...props }: ThInteractiveOverlayProps) => react_jsx_runtime.JSX.Element | undefined;
|
|
209
|
+
|
|
210
|
+
interface ThPaginationLinkProps {
|
|
211
|
+
icon?: ComponentType<SVGProps<SVGElement>> | null;
|
|
212
|
+
node: React__default.ReactNode;
|
|
213
|
+
onPress: () => void;
|
|
214
|
+
}
|
|
215
|
+
interface ThPaginationProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
216
|
+
ref?: React__default.RefObject<HTMLDivElement>;
|
|
217
|
+
direction?: "left" | "right";
|
|
218
|
+
children?: React__default.ReactNode;
|
|
219
|
+
links?: {
|
|
220
|
+
previous?: ThPaginationLinkProps;
|
|
221
|
+
next?: ThPaginationLinkProps;
|
|
222
|
+
};
|
|
223
|
+
compounds?: {
|
|
224
|
+
/**
|
|
225
|
+
* Props for the list item element wrapping links and children
|
|
226
|
+
*/
|
|
227
|
+
listItem?: React__default.HTMLAttributes<HTMLLIElement>;
|
|
228
|
+
/**
|
|
229
|
+
* Props for the previous button element
|
|
230
|
+
*/
|
|
231
|
+
previousButton?: Exclude<WithRef<ButtonProps, HTMLButtonElement>, "type">;
|
|
232
|
+
/**
|
|
233
|
+
* Props for the next button element
|
|
234
|
+
*/
|
|
235
|
+
nextButton?: Exclude<WithRef<ButtonProps, HTMLButtonElement>, "type">;
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
declare const ThPagination: ({ ref, direction, links, compounds, children, ...props }: ThPaginationProps) => react_jsx_runtime.JSX.Element | null;
|
|
239
|
+
|
|
203
240
|
interface ThProgressionProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
204
241
|
ref?: React__default.RefObject<HTMLDivElement>;
|
|
205
242
|
}
|
|
@@ -256,4 +293,13 @@ declare const ThDropdownButton: ({ ref, children, ...props }: ThDropdownButtonPr
|
|
|
256
293
|
|
|
257
294
|
declare const ThSettingsWrapperButton: ({ label, ref, compounds, children, ...props }: ThActionButtonProps) => react_jsx_runtime.JSX.Element;
|
|
258
295
|
|
|
259
|
-
|
|
296
|
+
interface ThGridProps<T> extends HTMLAttributesWithRef<HTMLUListElement> {
|
|
297
|
+
items: T[];
|
|
298
|
+
children?: never;
|
|
299
|
+
renderItem: (item: T, index: number) => React__default.ReactNode;
|
|
300
|
+
columnWidth?: number | string;
|
|
301
|
+
gap?: number | string;
|
|
302
|
+
}
|
|
303
|
+
declare const ThGrid: <T extends unknown>({ ref, items, renderItem, columnWidth, gap, ...props }: ThGridProps<T>) => react_jsx_runtime.JSX.Element;
|
|
304
|
+
|
|
305
|
+
export { type ComponentMap, type THContainerWithCloseProps, type THContainerWithPreviousProps, ThActionButtonProps, type ThActionMap, ThBottomSheet, type ThBottomSheetCompounds, type ThBottomSheetHeaderProps, type ThBottomSheetProps, ThCloseButton, ThContainerBody, type ThContainerBodyProps, ThContainerHeader, type ThContainerHeaderProps, ThContainerHeaderWithClose, ThContainerHeaderWithPrevious, ThDockedPanel, type ThDockedPanelProps, ThDragIndicatorButton, type ThDragIndicatorButtonProps, ThDropdown, ThDropdownButton, type ThDropdownButtonProps, type ThDropdownEntry, type ThDropdownProps, ThFooter, ThForm, ThFormNumberField, type ThFormNumberFieldProps, type ThFormProps, ThFormSearchField, type ThFormSearchFieldProps, ThFormTextField, type ThFormTextFieldProps, ThGrid, type ThGridProps, ThHeader, ThInteractiveOverlay, type ThInteractiveOverlayProps, ThLoader, type ThLoaderProps, ThMenuButton, ThModal, type ThModalProps, ThNavigationButton, type ThNavigationButtonProps, ThPagination, type ThPaginationLinkProps, type ThPaginationProps, ThPopover, type ThPopoverProps, ThProgression, type ThProgressionProps, ThRunningHead, type ThRunningHeadProps, ThSettingsWrapperButton, ThTypedComponentRenderer, type TypedComponentRendererProps, type UseFirstFocusableProps, useActions, useFirstFocusable };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ThActionButton, ThActionsBar, ThActionsTriggerVariant, ThBottomSheet, ThCloseButton, ThCollapsibleActionsBar, ThContainerBody, ThContainerHeader, ThContainerHeaderWithClose, ThContainerHeaderWithPrevious, ThDockedPanel, ThDragIndicatorButton, ThDropdown, ThDropdownButton, ThFooter, ThForm, ThFormNumberField, ThFormSearchField, ThFormTextField, ThHeader, ThLoader, ThMenu, ThMenuButton, ThMenuItem, ThModal, ThNavigationButton, ThNumberField, ThPopover, ThProgression, ThRadioGroup, ThRunningHead, ThSettingsWrapper, ThSettingsWrapperButton, ThSlider, ThSwitch, ThTypedComponentRenderer, useActions, useFirstFocusable } from '../../chunk-
|
|
1
|
+
export { ThActionButton, ThActionsBar, ThActionsTriggerVariant, ThBottomSheet, ThCloseButton, ThCollapsibleActionsBar, ThContainerBody, ThContainerHeader, ThContainerHeaderWithClose, ThContainerHeaderWithPrevious, ThDockedPanel, ThDragIndicatorButton, ThDropdown, ThDropdownButton, ThFooter, ThForm, ThFormNumberField, ThFormSearchField, ThFormTextField, ThGrid, ThHeader, ThInteractiveOverlay, ThLoader, ThMenu, ThMenuButton, ThMenuItem, ThModal, ThNavigationButton, ThNumberField, ThPagination, ThPopover, ThProgression, ThRadioGroup, ThRunningHead, ThSettingsWrapper, ThSettingsWrapperButton, ThSlider, ThSwitch, ThTypedComponentRenderer, useActions, useFirstFocusable } from '../../chunk-SDVDRPT5.mjs';
|
|
2
2
|
export { ThCollapsibilityVisibility, useCollapsibility } from '../../chunk-MLEYTQGK.mjs';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-RQFPGXWN.mjs';
|
|
4
4
|
//# sourceMappingURL=index.mjs.map
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as BreakpointsMap } from '../../useBreakpoints-
|
|
1
|
+
import { B as BreakpointsMap } from '../../useBreakpoints-BQaiwecQ.mjs';
|
|
2
2
|
export { a as UnstableKey, b as UnstableMetaKey, d as UnstableMetaKeys, g as UnstablePShortcut, c as UnstablePlatformModifier, f as UnstableShortcut, e as UnstableShortcutMetaKeywords, U as UnstableShortcutRepresentation, j as buildShortcut, h as defaultPlatformModifier, i as getPlatformModifier, m as metaKeys } from '../../keyboardUtilities-CoTR9LKx.mjs';
|
|
3
|
-
import '../../enums-
|
|
3
|
+
import '../../enums-DqGQ66r1.mjs';
|
|
4
4
|
|
|
5
5
|
declare const makeBreakpointsMap: <T>({ defaultValue, fromEnum, pref, disabledValue, }: {
|
|
6
6
|
defaultValue: T;
|
|
@@ -18,12 +18,6 @@ declare const isMacish: () => boolean;
|
|
|
18
18
|
declare const isIpadOS: () => boolean;
|
|
19
19
|
declare const isIOSish: () => boolean;
|
|
20
20
|
|
|
21
|
-
declare const localData: {
|
|
22
|
-
set(key: string, value: any): void;
|
|
23
|
-
get(key: string): any;
|
|
24
|
-
remove(key: string): void;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
21
|
/** Converts Object properties to CSSProperties, recursively. If recursive, the prefix will be ignored for objects */
|
|
28
22
|
declare const propsToCSSVars: (props: {
|
|
29
23
|
[x: string]: any;
|
|
@@ -31,4 +25,4 @@ declare const propsToCSSVars: (props: {
|
|
|
31
25
|
[key: string]: any;
|
|
32
26
|
};
|
|
33
27
|
|
|
34
|
-
export { getPlatform, isActiveElement, isIOSish, isInteractiveElement, isIpadOS, isKeyboardTriggered, isMacish,
|
|
28
|
+
export { getPlatform, isActiveElement, isIOSish, isInteractiveElement, isIpadOS, isKeyboardTriggered, isMacish, makeBreakpointsMap, propsToCSSVars };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { isActiveElement, isInteractiveElement, isKeyboardTriggered,
|
|
1
|
+
export { isActiveElement, isInteractiveElement, isKeyboardTriggered, makeBreakpointsMap } from '../../chunk-NOV43IG4.mjs';
|
|
2
2
|
export { propsToCSSVars } from '../../chunk-TTGURRX3.mjs';
|
|
3
3
|
export { UnstableShortcutMetaKeywords, UnstableShortcutRepresentation, buildShortcut, defaultPlatformModifier, getPlatform, getPlatformModifier, isIOSish, isIpadOS, isMacish, metaKeys } from '../../chunk-IEYR7QV7.mjs';
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-3QS3WKRC.mjs';
|
|
4
|
+
import '../../chunk-RQFPGXWN.mjs';
|
|
6
5
|
//# sourceMappingURL=index.mjs.map
|
|
7
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export { B as BreakpointsMap, T as ThBreakpointsObject, u as useBreakpoints } from '../../useBreakpoints-
|
|
1
|
+
export { B as BreakpointsMap, T as ThBreakpointsObject, u as useBreakpoints } from '../../useBreakpoints-BQaiwecQ.mjs';
|
|
2
2
|
export { T as ThColorScheme, a as ThContrast, u as useColorScheme, b as useContrast } from '../../useContrast-Cgsrl7GS.mjs';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export { a as TimelineItem, T as TocItem, U as UnstableTimeline, u as useTimeline } from '../../useTimeline-Bid5B7AQ.mjs';
|
|
5
|
+
export { E as EpubNavigatorLoadProps, u as useEpubNavigator } from '../../useEpubNavigator-DFRJ_tHa.mjs';
|
|
6
|
+
import '../../enums-DqGQ66r1.mjs';
|
|
6
7
|
import '@readium/shared';
|
|
8
|
+
import '@readium/navigator';
|
|
7
9
|
|
|
8
10
|
declare const useForcedColors: (onChange?: (forcedColors: boolean) => void) => boolean;
|
|
9
11
|
|
|
@@ -12,6 +14,14 @@ declare const useFullscreen: (onChange?: (isFullscreen: boolean) => void) => {
|
|
|
12
14
|
handleFullscreen: () => void;
|
|
13
15
|
};
|
|
14
16
|
|
|
17
|
+
declare const useLocalStorage: (key: string) => {
|
|
18
|
+
setLocalData: (newValue: any) => void;
|
|
19
|
+
getLocalData: () => any;
|
|
20
|
+
clearLocalData: () => void;
|
|
21
|
+
localData: any;
|
|
22
|
+
cachedLocalData: React.RefObject<any>;
|
|
23
|
+
};
|
|
24
|
+
|
|
15
25
|
declare const useMediaQuery: (query: string | null) => boolean;
|
|
16
26
|
|
|
17
27
|
declare const useMonochrome: (onChange?: (isMonochrome: boolean) => void) => boolean;
|
|
@@ -24,4 +34,4 @@ declare const useReducedMotion: (onChange?: (reducedMotion: boolean) => void) =>
|
|
|
24
34
|
|
|
25
35
|
declare const useReducedTransparency: (onChange?: (reducedTransparency: boolean) => void) => boolean;
|
|
26
36
|
|
|
27
|
-
export { useForcedColors, useFullscreen, useIsClient, useMediaQuery, useMonochrome, usePrevious, useReducedMotion, useReducedTransparency };
|
|
37
|
+
export { useForcedColors, useFullscreen, useIsClient, useLocalStorage, useMediaQuery, useMonochrome, usePrevious, useReducedMotion, useReducedTransparency };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { useEpubNavigator, useFullscreen, useIsClient, usePrevious } from '../../chunk-
|
|
1
|
+
export { useEpubNavigator, useFullscreen, useIsClient, useLocalStorage, usePrevious, useTimeline } from '../../chunk-NA3KMUS4.mjs';
|
|
2
2
|
export { useBreakpoints, useForcedColors, useMonochrome, useReducedMotion, useReducedTransparency } from '../../chunk-BNPR6V7V.mjs';
|
|
3
3
|
export { ThColorScheme, ThContrast, useColorScheme, useContrast, useMediaQuery } from '../../chunk-NQ2ZSGCX.mjs';
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-3QS3WKRC.mjs';
|
|
4
|
+
import '../../chunk-RQFPGXWN.mjs';
|
|
6
5
|
//# sourceMappingURL=index.mjs.map
|
|
7
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -26,11 +26,6 @@ declare enum ThDockingTypes {
|
|
|
26
26
|
start = "start",
|
|
27
27
|
end = "end"
|
|
28
28
|
}
|
|
29
|
-
declare enum ThScrollBackTo {
|
|
30
|
-
top = "top",
|
|
31
|
-
bottom = "bottom",
|
|
32
|
-
untouched = "untouched"
|
|
33
|
-
}
|
|
34
29
|
declare enum ThSettingsKeys {
|
|
35
30
|
columns = "columns",
|
|
36
31
|
fontFamily = "fontFamily",
|
|
@@ -57,18 +52,6 @@ declare enum ThTextSettingsKeys {
|
|
|
57
52
|
textAlign = "textAlign",
|
|
58
53
|
textNormalize = "textNormalize"
|
|
59
54
|
}
|
|
60
|
-
declare enum ThScrollAffordancePref {
|
|
61
|
-
none = "none",
|
|
62
|
-
prev = "previous",
|
|
63
|
-
next = "next",
|
|
64
|
-
both = "both"
|
|
65
|
-
}
|
|
66
|
-
interface ScrollAffordanceConfig {
|
|
67
|
-
pref: ThScrollAffordancePref;
|
|
68
|
-
placement: "top" | "bottom";
|
|
69
|
-
className?: string;
|
|
70
|
-
styleSheetContent?: string;
|
|
71
|
-
}
|
|
72
55
|
declare enum ThSpacingSettingsKeys {
|
|
73
56
|
letterSpacing = "letterSpacing",
|
|
74
57
|
lineHeight = "lineHeight",
|
|
@@ -110,11 +93,6 @@ declare enum ThLayoutDirection {
|
|
|
110
93
|
rtl = "rtl",
|
|
111
94
|
ltr = "ltr"
|
|
112
95
|
}
|
|
113
|
-
declare enum ThLayoutStrategy {
|
|
114
|
-
margin = "margin",
|
|
115
|
-
lineLength = "lineLength",
|
|
116
|
-
columns = "columns"
|
|
117
|
-
}
|
|
118
96
|
declare enum ThLayoutOptions {
|
|
119
97
|
scroll = "scroll_option",
|
|
120
98
|
paginated = "page_option"
|
|
@@ -131,4 +109,4 @@ declare enum ThLineHeightOptions {
|
|
|
131
109
|
large = "large"
|
|
132
110
|
}
|
|
133
111
|
|
|
134
|
-
export {
|
|
112
|
+
export { ThBreakpoints as T, ThDockingKeys as a, ThActionsKeys as b, ThThemeKeys as c, ThSettingsKeys as d, ThTextSettingsKeys as e, ThSpacingSettingsKeys as f, ThLayoutUI as g, ThDockingTypes as h, ThSettingsContainerKeys as i, ThSettingsRangeVariant as j, ThSheetTypes as k, ThSheetHeaderVariant as l, ThLayoutDirection as m, ThLayoutOptions as n, ThTextAlignOptions as o, ThLineHeightOptions as p };
|