@prose-reader/react-reader 1.178.0 → 1.180.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/index.js +556 -252
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/{ReactReader.d.ts → src/ReactReader.d.ts} +2 -2
- package/dist/src/components/ui/accordion.d.ts +12 -0
- package/dist/{context → src/context}/ReactReaderProvider.d.ts +3 -1
- package/dist/src/context/context.d.ts +9 -0
- package/dist/src/navigation/QuickMenu/BottomBar.d.ts +5 -0
- package/dist/{navigation → src/navigation}/QuickMenu/QuickMenu.d.ts +3 -2
- package/dist/src/navigation/QuickMenu/useQuickMenu.d.ts +1 -0
- package/dist/src/navigation/help/HelpDialog.d.ts +4 -0
- package/dist/src/navigation/toc/TableOfContentsDialog.d.ts +5 -0
- package/dist/src/navigation/toc/TableOfContentsDialogContent.d.ts +4 -0
- package/package.json +2 -2
- package/dist/context/context.d.ts +0 -3
- package/dist/navigation/QuickMenu/BottomBar.d.ts +0 -3
- /package/dist/{common → src/common}/useFullscreen.d.ts +0 -0
- /package/dist/{components → src/components}/ui/avatar.d.ts +0 -0
- /package/dist/{components → src/components}/ui/checkbox.d.ts +0 -0
- /package/dist/{components → src/components}/ui/close-button.d.ts +0 -0
- /package/dist/{components → src/components}/ui/color-mode.d.ts +0 -0
- /package/dist/{components → src/components}/ui/dialog.d.ts +0 -0
- /package/dist/{components → src/components}/ui/drawer.d.ts +0 -0
- /package/dist/{components → src/components}/ui/field.d.ts +0 -0
- /package/dist/{components → src/components}/ui/input-group.d.ts +0 -0
- /package/dist/{components → src/components}/ui/popover.d.ts +0 -0
- /package/dist/{components → src/components}/ui/progress.d.ts +0 -0
- /package/dist/{components → src/components}/ui/provider.d.ts +0 -0
- /package/dist/{components → src/components}/ui/radio.d.ts +0 -0
- /package/dist/{components → src/components}/ui/slider.d.ts +0 -0
- /package/dist/{components → src/components}/ui/toggle-tip.d.ts +0 -0
- /package/dist/{components → src/components}/ui/tooltip.d.ts +0 -0
- /package/dist/{context → src/context}/useReader.d.ts +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{navigation → src/navigation}/FloatingProgress.d.ts +0 -0
- /package/dist/{navigation → src/navigation}/FloatingTime.d.ts +0 -0
- /package/dist/{navigation → src/navigation}/QuickMenu/PaginationInfoSection.d.ts +0 -0
- /package/dist/{navigation → src/navigation}/QuickMenu/QuickBar.d.ts +0 -0
- /package/dist/{navigation → src/navigation}/QuickMenu/Scrubber.d.ts +0 -0
- /package/dist/{navigation → src/navigation}/QuickMenu/ThemedSlider.d.ts +0 -0
- /package/dist/{navigation → src/navigation}/QuickMenu/TimeIndicator.d.ts +0 -0
- /package/dist/{navigation → src/navigation}/QuickMenu/TopBar.d.ts +0 -0
- /package/dist/{navigation → src/navigation}/useNavigationContext.d.ts +0 -0
- /package/dist/{pagination → src/pagination}/usePagination.d.ts +0 -0
- /package/dist/{settings → src/settings}/useSettings.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { QuickMenu } from './navigation/QuickMenu/QuickMenu';
|
|
3
|
-
export declare const ReactReader: ({ enableFloatingTime, enableFloatingProgress,
|
|
3
|
+
export declare const ReactReader: ({ enableFloatingTime, enableFloatingProgress, ...rest }: {
|
|
4
4
|
enableFloatingTime?: boolean;
|
|
5
5
|
enableFloatingProgress?: boolean;
|
|
6
|
-
} & ComponentProps<typeof QuickMenu>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
} & Omit<ComponentProps<typeof QuickMenu>, "onTableOfContentsClick" | "open">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Accordion } from '@chakra-ui/react';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface AccordionItemTriggerProps extends Accordion.ItemTriggerProps {
|
|
4
|
+
indicatorPlacement?: "start" | "end";
|
|
5
|
+
}
|
|
6
|
+
export declare const AccordionItemTrigger: React.ForwardRefExoticComponent<AccordionItemTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
interface AccordionItemContentProps extends Accordion.ItemContentProps {
|
|
8
|
+
}
|
|
9
|
+
export declare const AccordionItemContent: React.ForwardRefExoticComponent<AccordionItemContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const AccordionRoot: React.ForwardRefExoticComponent<Accordion.RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const AccordionItem: React.ForwardRefExoticComponent<Accordion.ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Reader } from '@prose-reader/core';
|
|
2
|
-
export declare const ReactReaderProvider: import('react').MemoExoticComponent<({ children, reader, }: {
|
|
2
|
+
export declare const ReactReaderProvider: import('react').MemoExoticComponent<({ children, reader, quickMenuOpen, onQuickMenuOpenChange, }: {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
reader: Reader | undefined;
|
|
5
|
+
quickMenuOpen: boolean;
|
|
6
|
+
onQuickMenuOpenChange: (open: boolean) => void;
|
|
5
7
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Reader } from '@prose-reader/core';
|
|
2
|
+
import { Context } from 'react';
|
|
3
|
+
import { Signal } from 'reactjrx';
|
|
4
|
+
type ContextType = {
|
|
5
|
+
reader: Reader | undefined;
|
|
6
|
+
quickMenuSignal: Signal<boolean, boolean, undefined>;
|
|
7
|
+
};
|
|
8
|
+
export declare const ReaderContext: Context<ContextType>;
|
|
9
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare const QuickMenu: import('react').MemoExoticComponent<({
|
|
2
|
-
open: boolean;
|
|
1
|
+
export declare const QuickMenu: import('react').MemoExoticComponent<({ onBackClick, onMoreClick, onTableOfContentsClick, onHelpClick, }: {
|
|
3
2
|
onBackClick: () => void;
|
|
4
3
|
onMoreClick: () => void;
|
|
4
|
+
onTableOfContentsClick: () => void;
|
|
5
|
+
onHelpClick: () => void;
|
|
5
6
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useQuickMenu: () => readonly [boolean, (stateOrUpdater: boolean | typeof import('reactjrx').SIGNAL_RESET | ((prev: boolean) => boolean)) => void, import('reactjrx').Signal<boolean, boolean, undefined>];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prose-reader/react-reader",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.180.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"react-icons": "^5.4.0",
|
|
37
37
|
"reactjrx": "1.x"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "f5e1311747802a3e36a19f1a7c7568e98b95a86d"
|
|
40
40
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|