@prose-reader/react-reader 1.260.0 → 1.261.0
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/context/context.d.ts +5 -4
- package/dist/index.js +647 -604
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/settings/types.d.ts +12 -6
- package/package.json +2 -2
- package/dist/common/useMemoCompare.d.ts +0 -1
|
@@ -3,7 +3,7 @@ import { EnhancerAPI as GesturesEnhancerAPI } from '@prose-reader/enhancer-gestu
|
|
|
3
3
|
import { Signal } from 'reactjrx';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { ReaderNotification } from '../notifications/types';
|
|
6
|
-
import {
|
|
6
|
+
import { PROSE_REACT_READER_SETTINGS_SCOPE, PROSE_REACT_READER_SETTINGS_SCOPE_REFERENCE } from '../settings/types';
|
|
7
7
|
type PrivateContextType = {
|
|
8
8
|
uncontrolledFontSize: number;
|
|
9
9
|
refitMenuOpen: boolean;
|
|
@@ -23,9 +23,10 @@ export type PublicContextType = {
|
|
|
23
23
|
quickMenuOpen: boolean;
|
|
24
24
|
onQuickMenuOpenChange: (open: boolean) => void;
|
|
25
25
|
fontSize?: number;
|
|
26
|
-
onFontSizeChange?: (
|
|
27
|
-
fontSizeScope?:
|
|
28
|
-
onFontSizeScopeChange?: (scope:
|
|
26
|
+
onFontSizeChange?: (from: PROSE_REACT_READER_SETTINGS_SCOPE_REFERENCE | "internal", value: number) => void;
|
|
27
|
+
fontSizeScope?: PROSE_REACT_READER_SETTINGS_SCOPE_REFERENCE;
|
|
28
|
+
onFontSizeScopeChange?: (scope: PROSE_REACT_READER_SETTINGS_SCOPE) => void;
|
|
29
|
+
fontSizeValues?: Record<PROSE_REACT_READER_SETTINGS_SCOPE_REFERENCE, number | undefined>;
|
|
29
30
|
};
|
|
30
31
|
export type ReaderContextType = PrivateContextType & PublicContextType;
|
|
31
32
|
export declare const getDefaultValue: () => ReaderContextType;
|