@pdf-viewer/react 1.19.0-beta.3 → 1.19.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/dist/types/components/layout/LayoutContainer.d.ts +1 -5
- package/dist/types/components/layout/LayoutWrapper.d.ts +1 -5
- package/dist/types/components/layout/sidebar/Thumbnails.d.ts +1 -3
- package/dist/types/components/layout/toolbar/RPToolbar.d.ts +1 -3
- package/dist/types/components/page/RPPage.d.ts +1 -3
- package/dist/types/components/ui/Button.d.ts +1 -3
- package/dist/types/components/ui/Input.d.ts +1 -3
- package/dist/types/components/ui/RPTooltip.d.ts +1 -3
- package/dist/types/utils/withRef.d.ts +5 -4
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/withRef.js +5 -5
- package/package.json +1 -1
|
@@ -6,9 +6,5 @@ interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const LayoutContainer: import('react').ForwardRefExoticComponent<Props & {
|
|
8
8
|
children?: import('react').ReactNode | undefined;
|
|
9
|
-
} & import('react').RefAttributes<HTMLDivElement
|
|
10
|
-
children?: import('react').ReactNode | undefined;
|
|
11
|
-
} & {
|
|
12
|
-
ref?: import('react').Ref<HTMLDivElement> | undefined;
|
|
13
|
-
}) => import('react').ReactNode);
|
|
9
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
10
|
export {};
|
|
@@ -4,9 +4,5 @@ interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
|
4
4
|
}
|
|
5
5
|
export declare const LayoutWrapper: import('react').ForwardRefExoticComponent<Props & {
|
|
6
6
|
children?: import('react').ReactNode | undefined;
|
|
7
|
-
} & import('react').RefAttributes<HTMLDivElement
|
|
8
|
-
children?: import('react').ReactNode | undefined;
|
|
9
|
-
} & {
|
|
10
|
-
ref?: import('react').Ref<HTMLDivElement> | undefined;
|
|
11
|
-
}) => import('react').ReactNode);
|
|
7
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
8
|
export {};
|
|
@@ -2,7 +2,5 @@ interface Props {
|
|
|
2
2
|
show: boolean;
|
|
3
3
|
width?: number;
|
|
4
4
|
}
|
|
5
|
-
export declare const Thumbnails: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLDivElement
|
|
6
|
-
ref?: import('react').Ref<HTMLDivElement> | undefined;
|
|
7
|
-
}) => import('react').ReactNode);
|
|
5
|
+
export declare const Thumbnails: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
6
|
export {};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export declare const RPToolbar: import('react').ForwardRefExoticComponent<object & import('react').RefAttributes<HTMLDivElement
|
|
2
|
-
ref?: import('react').Ref<HTMLDivElement> | undefined;
|
|
3
|
-
}) => import('react').ReactNode);
|
|
1
|
+
export declare const RPToolbar: import('react').ForwardRefExoticComponent<object & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
interface Props extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
2
|
pageNumber: number;
|
|
3
3
|
}
|
|
4
|
-
export declare const RPPage: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLDivElement
|
|
5
|
-
ref?: import('react').Ref<HTMLDivElement> | undefined;
|
|
6
|
-
}) => import('react').ReactNode);
|
|
4
|
+
export declare const RPPage: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
5
|
export {};
|
|
@@ -2,7 +2,5 @@ import { ButtonHTMLAttributes, PropsWithChildren } from 'react';
|
|
|
2
2
|
interface Props extends PropsWithChildren, ButtonHTMLAttributes<{}> {
|
|
3
3
|
active?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const UIButton: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLButtonElement
|
|
6
|
-
ref?: import('react').Ref<HTMLButtonElement> | undefined;
|
|
7
|
-
}) => import('react').ReactNode);
|
|
5
|
+
export declare const UIButton: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLButtonElement>>;
|
|
8
6
|
export {};
|
|
@@ -2,7 +2,5 @@ import { InputHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
|
|
|
2
2
|
interface Props extends InputHTMLAttributes<HTMLInputElement>, PropsWithChildren {
|
|
3
3
|
icon?: ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare const UIInput: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLInputElement
|
|
6
|
-
ref?: import('react').Ref<HTMLInputElement> | undefined;
|
|
7
|
-
}) => ReactNode);
|
|
5
|
+
export declare const UIInput: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLInputElement>>;
|
|
8
6
|
export {};
|
|
@@ -5,7 +5,5 @@ interface TooltipProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
style?: CSSProperties;
|
|
7
7
|
}
|
|
8
|
-
declare const RPTooltip: import('react').ForwardRefExoticComponent<TooltipProps & import('react').RefAttributes<HTMLDivElement
|
|
9
|
-
ref?: import('react').Ref<HTMLDivElement> | undefined;
|
|
10
|
-
}) => ReactNode);
|
|
8
|
+
declare const RPTooltip: import('react').ForwardRefExoticComponent<TooltipProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
9
|
export default RPTooltip;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, PropsWithoutRef, Ref, ReactElement } from 'react';
|
|
2
|
+
type WithRefRender<R extends HTMLElement, P> = (props: PropsWithoutRef<P>, ref: Ref<R>) => ReactElement | null;
|
|
3
|
+
type WithRefComponent<R extends HTMLElement, P> = ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<R>>;
|
|
4
|
+
export declare const withRef: <R extends HTMLElement, P = object>(render: WithRefRender<R, P>) => WithRefComponent<R, P>;
|
|
5
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as E, useCallback as h, useEffect as A } from "react";
|
|
2
2
|
import { appConsole as l } from "../appConsole.js";
|
|
3
|
-
const b = /* @__PURE__ */ new Date("2026-02-
|
|
3
|
+
const b = /* @__PURE__ */ new Date("2026-02-12T04:07:00.343Z"), d = "Please visit https://www.react-pdf.dev/manage-license/ to generate a new license key.", s = {
|
|
4
4
|
invalidLicense: `You are currently using without a valid license. ${d}`,
|
|
5
5
|
mismatchedDomain: `Your license key is not valid for the current domain / IP. ${d}`,
|
|
6
6
|
expired: `Your license key has expired. ${d}`,
|
package/dist/utils/withRef.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { forwardRef as
|
|
2
|
-
const
|
|
3
|
-
const { ref:
|
|
4
|
-
return e
|
|
1
|
+
import { forwardRef as r } from "react";
|
|
2
|
+
const c = (o) => r ? r(o) : (t) => {
|
|
3
|
+
const { ref: n, ...e } = t;
|
|
4
|
+
return o(e, n);
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
c as withRef
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@pdf-viewer/react",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.",
|
|
5
|
-
"version": "1.19.0-beta.
|
|
5
|
+
"version": "1.19.0-beta.4",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"react-pdf",
|
|
8
8
|
"react-pdf-viewer",
|