@edrlab/thorium-web 1.0.0-beta.2 → 1.0.0-beta.4
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-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-O4MBY6P4.mjs → chunk-OCASVHBV.mjs} +91 -36
- package/dist/chunk-OCASVHBV.mjs.map +1 -0
- 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 +878 -408
- 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/{settings.module-5WB3OOEF.module.css → settings.module-O2SOKTIN.module.css} +4 -0
- 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
package/dist/lib/index.d.mts
CHANGED
|
@@ -1,13 +1,357 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import '
|
|
4
|
-
|
|
5
|
-
import '
|
|
6
|
-
import '../enums-
|
|
7
|
-
import '../const-
|
|
8
|
-
import '../
|
|
9
|
-
import '
|
|
10
|
-
import '../
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
3
|
+
import { W as WritableDraft, k as ActionsReducerState } from '../actionsReducer-D4Mphfuv.mjs';
|
|
4
|
+
export { f as ActionOverflowOpenPayload, c as ActionStateDockPayload, g as ActionStateDockedPayload, A as ActionStateObject, d as ActionStateOpenPayload, h as ActionStateSlotPayload, i as ActionStateSlotWidthPayload, e as ActionStateTogglePayload, a as ActionsStateKeys, j as DockState, D as DockStateObject, O as OverflowStateKeys, b as OverflowStateObject, l as actionsSlice, o as activateDockPanel, q as collapseDockPanel, p as deactivateDockPanel, m as dockAction, r as expandDockPanel, s as setActionOpen, u as setDockPanelWidth, n as setOverflow, t as toggleActionOpen } from '../actionsReducer-D4Mphfuv.mjs';
|
|
5
|
+
import { c as UnstablePlatformModifier } from '../keyboardUtilities-CoTR9LKx.mjs';
|
|
6
|
+
import { m as ThLayoutDirection, i as ThSettingsContainerKeys, p as ThLineHeightOptions, o as ThTextAlignOptions, T as ThBreakpoints } from '../enums-DqGQ66r1.mjs';
|
|
7
|
+
import { x as defaultFontFamilyOptions } from '../const-IAfi9t_g.mjs';
|
|
8
|
+
import { T as ThColorScheme, a as ThContrast } from '../useContrast-Cgsrl7GS.mjs';
|
|
9
|
+
import { Locator } from '@readium/shared';
|
|
10
|
+
import { U as UnstableTimeline } from '../useTimeline-Bid5B7AQ.mjs';
|
|
11
|
+
import { TypedUseSelectorHook } from 'react-redux';
|
|
12
|
+
import '../useBreakpoints-BQaiwecQ.mjs';
|
|
11
13
|
import '../useCollapsibility-BmWuCzU4.mjs';
|
|
12
14
|
import 'react-aria-components';
|
|
13
|
-
|
|
15
|
+
|
|
16
|
+
interface ReaderReducerState {
|
|
17
|
+
direction: ThLayoutDirection;
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
isImmersive: boolean;
|
|
20
|
+
isHovering: boolean;
|
|
21
|
+
hasScrollAffordance: boolean;
|
|
22
|
+
hasArrows: boolean;
|
|
23
|
+
isFullscreen: boolean;
|
|
24
|
+
settingsContainer: ThSettingsContainerKeys;
|
|
25
|
+
platformModifier: UnstablePlatformModifier;
|
|
26
|
+
}
|
|
27
|
+
declare const readerSlice: _reduxjs_toolkit.Slice<ReaderReducerState, {
|
|
28
|
+
setDirection: (state: WritableDraft<ReaderReducerState>, action: {
|
|
29
|
+
payload: any;
|
|
30
|
+
type: string;
|
|
31
|
+
}) => void;
|
|
32
|
+
setLoading: (state: WritableDraft<ReaderReducerState>, action: {
|
|
33
|
+
payload: any;
|
|
34
|
+
type: string;
|
|
35
|
+
}) => void;
|
|
36
|
+
setPlatformModifier: (state: WritableDraft<ReaderReducerState>, action: {
|
|
37
|
+
payload: any;
|
|
38
|
+
type: string;
|
|
39
|
+
}) => void;
|
|
40
|
+
setImmersive: (state: WritableDraft<ReaderReducerState>, action: {
|
|
41
|
+
payload: any;
|
|
42
|
+
type: string;
|
|
43
|
+
}) => void;
|
|
44
|
+
toggleImmersive: (state: WritableDraft<ReaderReducerState>) => void;
|
|
45
|
+
setHovering: (state: WritableDraft<ReaderReducerState>, action: {
|
|
46
|
+
payload: any;
|
|
47
|
+
type: string;
|
|
48
|
+
}) => void;
|
|
49
|
+
setScrollAffordance: (state: WritableDraft<ReaderReducerState>, action: {
|
|
50
|
+
payload: any;
|
|
51
|
+
type: string;
|
|
52
|
+
}) => void;
|
|
53
|
+
setArrows: (state: WritableDraft<ReaderReducerState>, action: {
|
|
54
|
+
payload: any;
|
|
55
|
+
type: string;
|
|
56
|
+
}) => void;
|
|
57
|
+
setFullscreen: (state: WritableDraft<ReaderReducerState>, action: {
|
|
58
|
+
payload: any;
|
|
59
|
+
type: string;
|
|
60
|
+
}) => void;
|
|
61
|
+
setSettingsContainer: (state: WritableDraft<ReaderReducerState>, action: {
|
|
62
|
+
payload: any;
|
|
63
|
+
type: string;
|
|
64
|
+
}) => void;
|
|
65
|
+
}, "reader", "reader", _reduxjs_toolkit.SliceSelectors<ReaderReducerState>>;
|
|
66
|
+
declare const setDirection: _reduxjs_toolkit.ActionCreatorWithPayload<any, "reader/setDirection">;
|
|
67
|
+
declare const setLoading: _reduxjs_toolkit.ActionCreatorWithPayload<any, "reader/setLoading">;
|
|
68
|
+
declare const setPlatformModifier: _reduxjs_toolkit.ActionCreatorWithPayload<any, "reader/setPlatformModifier">;
|
|
69
|
+
declare const setImmersive: _reduxjs_toolkit.ActionCreatorWithPayload<any, "reader/setImmersive">;
|
|
70
|
+
declare const toggleImmersive: _reduxjs_toolkit.ActionCreatorWithoutPayload<"reader/toggleImmersive">;
|
|
71
|
+
declare const setHovering: _reduxjs_toolkit.ActionCreatorWithPayload<any, "reader/setHovering">;
|
|
72
|
+
declare const setScrollAffordance: _reduxjs_toolkit.ActionCreatorWithPayload<any, "reader/setScrollAffordance">;
|
|
73
|
+
declare const setArrows: _reduxjs_toolkit.ActionCreatorWithPayload<any, "reader/setArrows">;
|
|
74
|
+
declare const setFullscreen: _reduxjs_toolkit.ActionCreatorWithPayload<any, "reader/setFullscreen">;
|
|
75
|
+
declare const setSettingsContainer: _reduxjs_toolkit.ActionCreatorWithPayload<any, "reader/setSettingsContainer">;
|
|
76
|
+
|
|
77
|
+
interface LineLengthStateObject {
|
|
78
|
+
optimal?: number | null;
|
|
79
|
+
min?: {
|
|
80
|
+
chars?: number | null;
|
|
81
|
+
isDisabled?: boolean;
|
|
82
|
+
};
|
|
83
|
+
max?: {
|
|
84
|
+
chars?: number | null;
|
|
85
|
+
isDisabled?: boolean;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
interface SetLineLengthPayload {
|
|
89
|
+
type: string;
|
|
90
|
+
payload: {
|
|
91
|
+
key: "optimal" | "min" | "max";
|
|
92
|
+
value?: number | null;
|
|
93
|
+
isDisabled?: boolean;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
interface SettingsReducerState {
|
|
97
|
+
columnCount: string;
|
|
98
|
+
fontFamily: keyof typeof defaultFontFamilyOptions;
|
|
99
|
+
fontSize: number;
|
|
100
|
+
fontWeight: number;
|
|
101
|
+
hyphens: boolean | null;
|
|
102
|
+
letterSpacing: number | null;
|
|
103
|
+
lineHeight: ThLineHeightOptions;
|
|
104
|
+
lineLength: LineLengthStateObject | null;
|
|
105
|
+
paragraphIndent: number | null;
|
|
106
|
+
paragraphSpacing: number | null;
|
|
107
|
+
publisherStyles: boolean;
|
|
108
|
+
scroll: boolean;
|
|
109
|
+
textAlign: ThTextAlignOptions;
|
|
110
|
+
textNormalization: boolean;
|
|
111
|
+
wordSpacing: number | null;
|
|
112
|
+
}
|
|
113
|
+
declare const settingsSlice: _reduxjs_toolkit.Slice<SettingsReducerState, {
|
|
114
|
+
setColumnCount: (state: WritableDraft<SettingsReducerState>, action: {
|
|
115
|
+
payload: any;
|
|
116
|
+
type: string;
|
|
117
|
+
}) => void;
|
|
118
|
+
setFontFamily: (state: WritableDraft<SettingsReducerState>, action: {
|
|
119
|
+
payload: any;
|
|
120
|
+
type: string;
|
|
121
|
+
}) => void;
|
|
122
|
+
setFontSize: (state: WritableDraft<SettingsReducerState>, action: {
|
|
123
|
+
payload: any;
|
|
124
|
+
type: string;
|
|
125
|
+
}) => void;
|
|
126
|
+
setFontWeight: (state: WritableDraft<SettingsReducerState>, action: {
|
|
127
|
+
payload: any;
|
|
128
|
+
type: string;
|
|
129
|
+
}) => void;
|
|
130
|
+
setHyphens: (state: WritableDraft<SettingsReducerState>, action: {
|
|
131
|
+
payload: any;
|
|
132
|
+
type: string;
|
|
133
|
+
}) => void;
|
|
134
|
+
setLetterSpacing: (state: WritableDraft<SettingsReducerState>, action: {
|
|
135
|
+
payload: any;
|
|
136
|
+
type: string;
|
|
137
|
+
}) => void;
|
|
138
|
+
setLineHeight: (state: WritableDraft<SettingsReducerState>, action: {
|
|
139
|
+
payload: any;
|
|
140
|
+
type: string;
|
|
141
|
+
}) => void;
|
|
142
|
+
setLineLength: (state: WritableDraft<SettingsReducerState>, action: SetLineLengthPayload) => void;
|
|
143
|
+
setParagraphIndent: (state: WritableDraft<SettingsReducerState>, action: {
|
|
144
|
+
payload: any;
|
|
145
|
+
type: string;
|
|
146
|
+
}) => void;
|
|
147
|
+
setParagraphSpacing: (state: WritableDraft<SettingsReducerState>, action: {
|
|
148
|
+
payload: any;
|
|
149
|
+
type: string;
|
|
150
|
+
}) => void;
|
|
151
|
+
setPublisherStyles: (state: WritableDraft<SettingsReducerState>, action: {
|
|
152
|
+
payload: any;
|
|
153
|
+
type: string;
|
|
154
|
+
}) => void;
|
|
155
|
+
setScroll: (state: WritableDraft<SettingsReducerState>, action: {
|
|
156
|
+
payload: any;
|
|
157
|
+
type: string;
|
|
158
|
+
}) => void;
|
|
159
|
+
setTextAlign: (state: WritableDraft<SettingsReducerState>, action: {
|
|
160
|
+
payload: any;
|
|
161
|
+
type: string;
|
|
162
|
+
}) => void;
|
|
163
|
+
setTextNormalization: (state: WritableDraft<SettingsReducerState>, action: {
|
|
164
|
+
payload: any;
|
|
165
|
+
type: string;
|
|
166
|
+
}) => void;
|
|
167
|
+
setWordSpacing: (state: WritableDraft<SettingsReducerState>, action: {
|
|
168
|
+
payload: any;
|
|
169
|
+
type: string;
|
|
170
|
+
}) => void;
|
|
171
|
+
}, "settings", "settings", _reduxjs_toolkit.SliceSelectors<SettingsReducerState>>;
|
|
172
|
+
declare const setColumnCount: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setColumnCount">;
|
|
173
|
+
declare const setFontSize: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setFontSize">;
|
|
174
|
+
declare const setFontWeight: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setFontWeight">;
|
|
175
|
+
declare const setFontFamily: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setFontFamily">;
|
|
176
|
+
declare const setHyphens: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setHyphens">;
|
|
177
|
+
declare const setLetterSpacing: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setLetterSpacing">;
|
|
178
|
+
declare const setLineHeight: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setLineHeight">;
|
|
179
|
+
declare const setLineLength: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
180
|
+
key: "optimal" | "min" | "max";
|
|
181
|
+
value?: number | null;
|
|
182
|
+
isDisabled?: boolean;
|
|
183
|
+
}, "settings/setLineLength">;
|
|
184
|
+
declare const setParagraphIndent: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setParagraphIndent">;
|
|
185
|
+
declare const setParagraphSpacing: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setParagraphSpacing">;
|
|
186
|
+
declare const setPublisherStyles: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setPublisherStyles">;
|
|
187
|
+
declare const setScroll: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setScroll">;
|
|
188
|
+
declare const setTextAlign: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setTextAlign">;
|
|
189
|
+
declare const setTextNormalization: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setTextNormalization">;
|
|
190
|
+
declare const setWordSpacing: _reduxjs_toolkit.ActionCreatorWithPayload<any, "settings/setWordSpacing">;
|
|
191
|
+
|
|
192
|
+
interface ThemeStateObject {
|
|
193
|
+
reflow?: string;
|
|
194
|
+
fxl?: string;
|
|
195
|
+
}
|
|
196
|
+
interface ThemeStateChangePayload {
|
|
197
|
+
type: string;
|
|
198
|
+
payload: {
|
|
199
|
+
key: "reflow" | "fxl";
|
|
200
|
+
value?: string;
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
interface ThemeReducerState {
|
|
204
|
+
monochrome: boolean;
|
|
205
|
+
colorScheme: ThColorScheme;
|
|
206
|
+
theme: ThemeStateObject;
|
|
207
|
+
prefersReducedMotion: boolean;
|
|
208
|
+
prefersReducedTransparency: boolean;
|
|
209
|
+
prefersContrast: ThContrast;
|
|
210
|
+
forcedColors: boolean;
|
|
211
|
+
breakpoint?: ThBreakpoints;
|
|
212
|
+
}
|
|
213
|
+
declare const themeSlice: _reduxjs_toolkit.Slice<ThemeReducerState, {
|
|
214
|
+
setMonochrome: (state: WritableDraft<ThemeReducerState>, action: {
|
|
215
|
+
payload: any;
|
|
216
|
+
type: string;
|
|
217
|
+
}) => void;
|
|
218
|
+
setColorScheme: (state: WritableDraft<ThemeReducerState>, action: {
|
|
219
|
+
payload: any;
|
|
220
|
+
type: string;
|
|
221
|
+
}) => void;
|
|
222
|
+
setTheme: (state: WritableDraft<ThemeReducerState>, action: ThemeStateChangePayload) => void;
|
|
223
|
+
setReducedMotion: (state: WritableDraft<ThemeReducerState>, action: {
|
|
224
|
+
payload: any;
|
|
225
|
+
type: string;
|
|
226
|
+
}) => void;
|
|
227
|
+
setReducedTransparency: (state: WritableDraft<ThemeReducerState>, action: {
|
|
228
|
+
payload: any;
|
|
229
|
+
type: string;
|
|
230
|
+
}) => void;
|
|
231
|
+
setContrast: (state: WritableDraft<ThemeReducerState>, action: {
|
|
232
|
+
payload: any;
|
|
233
|
+
type: string;
|
|
234
|
+
}) => void;
|
|
235
|
+
setForcedColors: (state: WritableDraft<ThemeReducerState>, action: {
|
|
236
|
+
payload: any;
|
|
237
|
+
type: string;
|
|
238
|
+
}) => void;
|
|
239
|
+
setBreakpoint: (state: WritableDraft<ThemeReducerState>, action: {
|
|
240
|
+
payload: any;
|
|
241
|
+
type: string;
|
|
242
|
+
}) => void;
|
|
243
|
+
}, "theming", "theming", _reduxjs_toolkit.SliceSelectors<ThemeReducerState>>;
|
|
244
|
+
declare const setMonochrome: _reduxjs_toolkit.ActionCreatorWithPayload<any, "theming/setMonochrome">;
|
|
245
|
+
declare const setColorScheme: _reduxjs_toolkit.ActionCreatorWithPayload<any, "theming/setColorScheme">;
|
|
246
|
+
declare const setTheme: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
247
|
+
key: "reflow" | "fxl";
|
|
248
|
+
value?: string;
|
|
249
|
+
}, "theming/setTheme">;
|
|
250
|
+
declare const setReducedMotion: _reduxjs_toolkit.ActionCreatorWithPayload<any, "theming/setReducedMotion">;
|
|
251
|
+
declare const setReducedTransparency: _reduxjs_toolkit.ActionCreatorWithPayload<any, "theming/setReducedTransparency">;
|
|
252
|
+
declare const setContrast: _reduxjs_toolkit.ActionCreatorWithPayload<any, "theming/setContrast">;
|
|
253
|
+
declare const setForcedColors: _reduxjs_toolkit.ActionCreatorWithPayload<any, "theming/setForcedColors">;
|
|
254
|
+
declare const setBreakpoint: _reduxjs_toolkit.ActionCreatorWithPayload<any, "theming/setBreakpoint">;
|
|
255
|
+
|
|
256
|
+
interface UnstableProgressionObject {
|
|
257
|
+
totalPositions?: number;
|
|
258
|
+
currentPositions?: number[];
|
|
259
|
+
relativeProgression?: number;
|
|
260
|
+
currentChapter?: string;
|
|
261
|
+
totalProgression?: number;
|
|
262
|
+
currentPublication?: string;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
interface PublicationReducerState {
|
|
266
|
+
runningHead?: string;
|
|
267
|
+
isFXL: boolean;
|
|
268
|
+
isRTL: boolean;
|
|
269
|
+
progression: UnstableProgressionObject;
|
|
270
|
+
positionsList: Locator[];
|
|
271
|
+
atPublicationStart: boolean;
|
|
272
|
+
atPublicationEnd: boolean;
|
|
273
|
+
unstableTimeline?: UnstableTimeline;
|
|
274
|
+
}
|
|
275
|
+
declare const publicationSlice: _reduxjs_toolkit.Slice<PublicationReducerState, {
|
|
276
|
+
setRunningHead: (state: WritableDraft<PublicationReducerState>, action: {
|
|
277
|
+
payload: any;
|
|
278
|
+
type: string;
|
|
279
|
+
}) => void;
|
|
280
|
+
setFXL: (state: WritableDraft<PublicationReducerState>, action: {
|
|
281
|
+
payload: any;
|
|
282
|
+
type: string;
|
|
283
|
+
}) => void;
|
|
284
|
+
setRTL: (state: WritableDraft<PublicationReducerState>, action: {
|
|
285
|
+
payload: any;
|
|
286
|
+
type: string;
|
|
287
|
+
}) => void;
|
|
288
|
+
setProgression: (state: WritableDraft<PublicationReducerState>, action: {
|
|
289
|
+
payload: any;
|
|
290
|
+
type: string;
|
|
291
|
+
}) => void;
|
|
292
|
+
setPositionsList: (state: WritableDraft<PublicationReducerState>, action: {
|
|
293
|
+
payload: any;
|
|
294
|
+
type: string;
|
|
295
|
+
}) => void;
|
|
296
|
+
setPublicationStart: (state: WritableDraft<PublicationReducerState>, action: {
|
|
297
|
+
payload: any;
|
|
298
|
+
type: string;
|
|
299
|
+
}) => void;
|
|
300
|
+
setPublicationEnd: (state: WritableDraft<PublicationReducerState>, action: {
|
|
301
|
+
payload: any;
|
|
302
|
+
type: string;
|
|
303
|
+
}) => void;
|
|
304
|
+
setTimeline: (state: WritableDraft<PublicationReducerState>, action: {
|
|
305
|
+
payload: any;
|
|
306
|
+
type: string;
|
|
307
|
+
}) => void;
|
|
308
|
+
setTocTree: (state: WritableDraft<PublicationReducerState>, action: {
|
|
309
|
+
payload: any;
|
|
310
|
+
type: string;
|
|
311
|
+
}) => void;
|
|
312
|
+
setTocEntry: (state: WritableDraft<PublicationReducerState>, action: {
|
|
313
|
+
payload: any;
|
|
314
|
+
type: string;
|
|
315
|
+
}) => void;
|
|
316
|
+
}, "publication", "publication", _reduxjs_toolkit.SliceSelectors<PublicationReducerState>>;
|
|
317
|
+
declare const setRunningHead: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setRunningHead">;
|
|
318
|
+
declare const setFXL: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setFXL">;
|
|
319
|
+
declare const setRTL: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setRTL">;
|
|
320
|
+
declare const setProgression: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setProgression">;
|
|
321
|
+
declare const setPositionsList: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setPositionsList">;
|
|
322
|
+
declare const setPublicationStart: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setPublicationStart">;
|
|
323
|
+
declare const setPublicationEnd: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setPublicationEnd">;
|
|
324
|
+
declare const setTimeline: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setTimeline">;
|
|
325
|
+
declare const setTocTree: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setTocTree">;
|
|
326
|
+
declare const setTocEntry: _reduxjs_toolkit.ActionCreatorWithPayload<any, "publication/setTocEntry">;
|
|
327
|
+
|
|
328
|
+
interface ExternalReducerConfig {
|
|
329
|
+
reducer: any;
|
|
330
|
+
persist?: boolean;
|
|
331
|
+
}
|
|
332
|
+
type RootState = {
|
|
333
|
+
reader: ReaderReducerState;
|
|
334
|
+
settings: SettingsReducerState;
|
|
335
|
+
theming: ThemeReducerState;
|
|
336
|
+
actions: ActionsReducerState;
|
|
337
|
+
publication: PublicationReducerState;
|
|
338
|
+
[key: string]: any;
|
|
339
|
+
};
|
|
340
|
+
declare const makeStore: (storageKey?: string, externalReducers?: Record<string, ExternalReducerConfig>) => _reduxjs_toolkit.EnhancedStore<RootState, _reduxjs_toolkit.UnknownAction, _reduxjs_toolkit.Tuple<[_reduxjs_toolkit.StoreEnhancer<{
|
|
341
|
+
dispatch: _reduxjs_toolkit.ThunkDispatch<RootState, undefined, _reduxjs_toolkit.UnknownAction>;
|
|
342
|
+
}>, _reduxjs_toolkit.StoreEnhancer]>>;
|
|
343
|
+
type AppStore = ReturnType<typeof makeStore>;
|
|
344
|
+
type AppState = RootState;
|
|
345
|
+
type AppDispatch = AppStore["dispatch"];
|
|
346
|
+
|
|
347
|
+
declare function ThStoreProvider({ storageKey, store, children }: {
|
|
348
|
+
storageKey?: string;
|
|
349
|
+
store?: AppStore;
|
|
350
|
+
children: React.ReactNode;
|
|
351
|
+
}): react_jsx_runtime.JSX.Element;
|
|
352
|
+
|
|
353
|
+
declare const useAppDispatch: () => AppDispatch;
|
|
354
|
+
declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
355
|
+
declare const useAppStore: () => AppStore;
|
|
356
|
+
|
|
357
|
+
export { ActionsReducerState, type AppDispatch, type AppState, type AppStore, type LineLengthStateObject, type PublicationReducerState, type ReaderReducerState, type RootState, type SetLineLengthPayload, type SettingsReducerState, ThStoreProvider, type ThemeReducerState, type ThemeStateChangePayload, type ThemeStateObject, makeStore, publicationSlice, readerSlice, setArrows, setBreakpoint, setColorScheme, setColumnCount, setContrast, setDirection, setFXL, setFontFamily, setFontSize, setFontWeight, setForcedColors, setFullscreen, setHovering, setHyphens, setImmersive, setLetterSpacing, setLineHeight, setLineLength, setLoading, setMonochrome, setParagraphIndent, setParagraphSpacing, setPlatformModifier, setPositionsList, setProgression, setPublicationEnd, setPublicationStart, setPublisherStyles, setRTL, setReducedMotion, setReducedTransparency, setRunningHead, setScroll, setScrollAffordance, setSettingsContainer, setTextAlign, setTextNormalization, setTheme, setTimeline, setTocEntry, setTocTree, setWordSpacing, settingsSlice, themeSlice, toggleImmersive, useAppDispatch, useAppSelector, useAppStore };
|
package/dist/lib/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { ThStoreProvider, actionsSlice, activateDockPanel, collapseDockPanel, deactivateDockPanel, dockAction, expandDockPanel, makeStore, publicationSlice, readerSlice, setActionOpen, setArrows, setBreakpoint, setColorScheme, setColumnCount, setContrast, setDirection, setDockPanelWidth, setFXL, setFontFamily, setFontSize, setFontWeight, setForcedColors, setFullscreen, setHovering, setHyphens, setImmersive,
|
|
1
|
+
export { ThStoreProvider, actionsSlice, activateDockPanel, collapseDockPanel, deactivateDockPanel, dockAction, expandDockPanel, makeStore, publicationSlice, readerSlice, setActionOpen, setArrows, setBreakpoint, setColorScheme, setColumnCount, setContrast, setDirection, setDockPanelWidth, setFXL, setFontFamily, setFontSize, setFontWeight, setForcedColors, setFullscreen, setHovering, setHyphens, setImmersive, setLetterSpacing, setLineHeight, setLineLength, setLoading, setMonochrome, setOverflow, setParagraphIndent, setParagraphSpacing, setPlatformModifier, setPositionsList, setProgression, setPublicationEnd, setPublicationStart, setPublisherStyles, setRTL, setReducedMotion, setReducedTransparency, setRunningHead, setScroll, setScrollAffordance, setSettingsContainer, setTextAlign, setTextNormalization, setTheme, setTimeline, setTocEntry, setTocTree, setWordSpacing, settingsSlice, themeSlice, toggleActionOpen, toggleImmersive, useAppDispatch, useAppSelector, useAppStore } from '../chunk-OCASVHBV.mjs';
|
|
2
2
|
import '../chunk-IEYR7QV7.mjs';
|
|
3
3
|
import '../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
|
package/dist/{overflowMenu.module-XQRI7RJJ.module.css → overflowMenu.module-FO27A2A3.module.css}
RENAMED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
:global(.layered-ui.isImmersive:not(.isHovering)) .activeButton.hintButton {
|
|
2
|
+
transform: translateY(calc(var(--icon-size, 24px) * 2.5));
|
|
3
|
+
transition-property: transform;
|
|
4
|
+
transition-duration: 200ms;
|
|
5
|
+
transition-timing-function: ease-in-out;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:global(.layered-ui.isReflow.isScroll.isImmersive:not(.isHovering)) .activeButton.hintButton {
|
|
9
|
+
outline: 1px solid var(--theme-subdue);
|
|
10
|
+
background-color: var(--theme-background);
|
|
11
|
+
}
|
|
12
|
+
|
|
1
13
|
.overflowPopover {
|
|
2
14
|
background-color: var(--theme-background);
|
|
3
15
|
color: var(--theme-text);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { T as ThPreferences, C as CustomizableKeys, a as ThemeTokens, b as CustomKeyType } from '../const-
|
|
2
|
-
export { A as ActionKeyType, D as DefaultKeys, K as KeysOf, S as SettingsKeyType, p as SpacingSettingsKeyType, o as TextSettingsKeyType, e as ThActionsDockedPref, g as ThActionsPref, d as ThActionsSnappedPref, f as ThActionsTokens, c as ThBottomSheetDetent, l as ThConstraintKeys, h as ThDockingPref, i as ThSettingsGroupPref, k as ThSettingsKeyTypes, j as ThSettingsRangePref, n as ThemeKeyType, m as createPreferences, r as defaultActionKeysObject, x as defaultFontFamilyOptions, y as defaultFontSize, F as defaultLetterSpacing, G as defaultLineHeights, B as defaultParagraphIndent, z as defaultParagraphSpacing, v as defaultSpacingSettingsMain, w as defaultSpacingSettingsSubpanel, s as defaultTextSettingsMain, t as defaultTextSettingsSubpanel, E as defaultWordSpacing, q as useTheming, u as useThemingProps } from '../const-
|
|
1
|
+
import { T as ThPreferences, C as CustomizableKeys, a as ThemeTokens, b as CustomKeyType } from '../const-IAfi9t_g.mjs';
|
|
2
|
+
export { A as ActionKeyType, D as DefaultKeys, K as KeysOf, S as SettingsKeyType, p as SpacingSettingsKeyType, o as TextSettingsKeyType, e as ThActionsDockedPref, g as ThActionsPref, d as ThActionsSnappedPref, f as ThActionsTokens, c as ThBottomSheetDetent, l as ThConstraintKeys, h as ThDockingPref, i as ThSettingsGroupPref, k as ThSettingsKeyTypes, j as ThSettingsRangePref, n as ThemeKeyType, m as createPreferences, r as defaultActionKeysObject, x as defaultFontFamilyOptions, y as defaultFontSize, F as defaultLetterSpacing, G as defaultLineHeights, B as defaultParagraphIndent, z as defaultParagraphSpacing, v as defaultSpacingSettingsMain, w as defaultSpacingSettingsSubpanel, s as defaultTextSettingsMain, t as defaultTextSettingsSubpanel, E as defaultWordSpacing, q as useTheming, u as useThemingProps } from '../const-IAfi9t_g.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
export { T as ThPreferencesProvider, u as usePreferences } from '../usePreferences-
|
|
4
|
+
export { T as ThPreferencesProvider, u as usePreferences } from '../usePreferences-BMyBhq7F.mjs';
|
|
5
5
|
import { T as ThColorScheme } from '../useContrast-Cgsrl7GS.mjs';
|
|
6
|
-
import {
|
|
7
|
-
export {
|
|
6
|
+
import { b as ThActionsKeys, c as ThThemeKeys, d as ThSettingsKeys, e as ThTextSettingsKeys, f as ThSpacingSettingsKeys } from '../enums-DqGQ66r1.mjs';
|
|
7
|
+
export { T as ThBreakpoints, a as ThDockingKeys, h as ThDockingTypes, m as ThLayoutDirection, n as ThLayoutOptions, g as ThLayoutUI, p as ThLineHeightOptions, i as ThSettingsContainerKeys, j as ThSettingsRangeVariant, l as ThSheetHeaderVariant, k as ThSheetTypes, o as ThTextAlignOptions } from '../enums-DqGQ66r1.mjs';
|
|
8
8
|
import '../keyboardUtilities-CoTR9LKx.mjs';
|
|
9
|
-
import '../useBreakpoints-
|
|
9
|
+
import '../useBreakpoints-BQaiwecQ.mjs';
|
|
10
10
|
import '../useCollapsibility-BmWuCzU4.mjs';
|
|
11
11
|
import 'react/jsx-runtime';
|
|
12
12
|
import 'react-aria-components';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export { ThPreferencesContext, ThPreferencesProvider, buildThemeObject, createPreferences, defaultActionKeysObject, defaultFontFamilyOptions, defaultFontSize, defaultLetterSpacing, defaultLineHeights, defaultParagraphIndent, defaultParagraphSpacing, defaultPreferences, defaultSpacingSettingsMain, defaultSpacingSettingsSubpanel, defaultTextSettingsMain, defaultTextSettingsSubpanel, defaultWordSpacing, usePreferenceKeys, usePreferences, useTheming } from '../chunk-
|
|
1
|
+
export { ThPreferencesContext, ThPreferencesProvider, buildThemeObject, createPreferences, defaultActionKeysObject, defaultFontFamilyOptions, defaultFontSize, defaultLetterSpacing, defaultLineHeights, defaultParagraphIndent, defaultParagraphSpacing, defaultPreferences, defaultSpacingSettingsMain, defaultSpacingSettingsSubpanel, defaultTextSettingsMain, defaultTextSettingsSubpanel, defaultWordSpacing, usePreferenceKeys, usePreferences, useTheming } from '../chunk-TXILKP4F.mjs';
|
|
2
2
|
import '../chunk-MLEYTQGK.mjs';
|
|
3
3
|
import '../chunk-TTGURRX3.mjs';
|
|
4
4
|
import '../chunk-IEYR7QV7.mjs';
|
|
5
5
|
import '../chunk-BNPR6V7V.mjs';
|
|
6
6
|
import '../chunk-NQ2ZSGCX.mjs';
|
|
7
|
-
export { ThActionsKeys, ThBreakpoints, ThDockingKeys, ThDockingTypes, ThLayoutDirection, ThLayoutOptions,
|
|
8
|
-
import '../chunk-3QS3WKRC.mjs';
|
|
7
|
+
export { ThActionsKeys, ThBreakpoints, ThDockingKeys, ThDockingTypes, ThLayoutDirection, ThLayoutOptions, ThLayoutUI, ThLineHeightOptions, ThSettingsContainerKeys, ThSettingsKeys, ThSettingsRangeVariant, ThSheetHeaderVariant, ThSheetTypes, ThSpacingSettingsKeys, ThTextAlignOptions, ThTextSettingsKeys, ThThemeKeys } from '../chunk-RQFPGXWN.mjs';
|
|
9
8
|
//# sourceMappingURL=index.mjs.map
|
|
10
9
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.publicationGrid {
|
|
2
|
+
--color-text: #333;
|
|
3
|
+
--color-text-secondary: #666;
|
|
4
|
+
--color-background: #fff;
|
|
5
|
+
--color-primary: #e0e0e0;
|
|
6
|
+
|
|
7
|
+
padding: 1rem;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.publicationCard {
|
|
12
|
+
display: flex;
|
|
13
|
+
text-decoration: none;
|
|
14
|
+
color: inherit;
|
|
15
|
+
border: 1px solid var(--color-primary);
|
|
16
|
+
border-radius: 8px;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
19
|
+
background: white;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.publicationCard:hover {
|
|
23
|
+
transform: translateY(-2px);
|
|
24
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.publicationCover {
|
|
28
|
+
width: 120px;
|
|
29
|
+
height: 180px;
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
margin: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.publicationImage {
|
|
35
|
+
width: 120px;
|
|
36
|
+
height: 180px;
|
|
37
|
+
object-fit: cover;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.publicationInfo {
|
|
41
|
+
padding: 1rem;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
flex-grow: 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.publicationTitle {
|
|
48
|
+
margin: 0 0 0.5rem;
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
font-size: 1.25rem;
|
|
51
|
+
color: var(--color-text);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.publicationAuthor {
|
|
55
|
+
margin: 0 0 0.75rem;
|
|
56
|
+
color: var(--color-text-secondary);
|
|
57
|
+
font-size: 1rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.publicationRendition {
|
|
61
|
+
background: var(--color-primary);
|
|
62
|
+
color: var(--color-text);
|
|
63
|
+
padding: 0.25rem 0.75rem;
|
|
64
|
+
margin: 0;
|
|
65
|
+
border-radius: 20px;
|
|
66
|
+
font-size: 0.875rem;
|
|
67
|
+
font-weight: 500;
|
|
68
|
+
margin-top: auto;
|
|
69
|
+
align-self: flex-start;
|
|
70
|
+
}
|