@pdf-viewer/react 1.5.0-beta.8 → 1.5.0-beta.9

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.
@@ -1,8 +1,8 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { useId as a } from "react";
3
- import { DocumentProvider as f } from "../contexts/RPDocumentContext.js";
2
+ import { useMemo as a } from "react";
3
+ import { DocumentProvider as s } from "../contexts/RPDocumentContext.js";
4
4
  import { RPController as l } from "./RPController.js";
5
- import { LoaderProvider as P } from "../contexts/LoaderContext.js";
5
+ import { LoaderProvider as f } from "../contexts/LoaderContext.js";
6
6
  import { useWatermark as u } from "../utils/hooks/useWatermark.js";
7
7
  import "../RPDefaultLayout-e1e07d65.js";
8
8
  import "./RPConfig.js";
@@ -18,22 +18,21 @@ import "../contexts/HighlightContext.js";
18
18
  import "../utils/hooks/usePdfProperties.js";
19
19
  import "../contexts/FullScreenContext.js";
20
20
  import "../utils/types.js";
21
- const W = (i) => {
22
- const { children: m, src: r, characterMap: p, onLoaded: e, onLoadError: n, loaderImage: d, ...c } = i, s = a();
21
+ const z = (t) => {
22
+ const { children: m, src: r, characterMap: i, onLoaded: e, onLoadError: p, loaderImage: n, ...c } = t;
23
23
  u();
24
- const t = `${s}-${typeof r == "string" ? r : JSON.stringify(r)}`;
24
+ const d = a(() => typeof r == "string" ? r : Date.now(), [r]);
25
25
  return /* @__PURE__ */ o(
26
- f,
26
+ s,
27
27
  {
28
28
  src: r,
29
- characterMap: p,
29
+ characterMap: i,
30
30
  onLoaded: e,
31
- onLoadError: n,
32
- children: /* @__PURE__ */ o(l, { ...c, children: /* @__PURE__ */ o(P, { loaderImage: d, children: m }) }, t)
33
- },
34
- t
31
+ onLoadError: p,
32
+ children: /* @__PURE__ */ o(l, { ...c, children: /* @__PURE__ */ o(f, { loaderImage: n, children: m }) }, d)
33
+ }
35
34
  );
36
35
  };
37
36
  export {
38
- W as RPProvider
37
+ z as RPProvider
39
38
  };
@@ -1,6 +1,6 @@
1
1
  import { useState as E, useCallback as h, useEffect as A } from "react";
2
2
  import { appConsole as c } from "../appConsole.js";
3
- const b = /* @__PURE__ */ new Date("2025-05-06T02:51:50.012Z"), l = "Please visit https://www.react-pdf.dev/manage-license/ to generate a new license key.", o = {
3
+ const b = /* @__PURE__ */ new Date("2025-05-06T03:01:50.335Z"), l = "Please visit https://www.react-pdf.dev/manage-license/ to generate a new license key.", o = {
4
4
  invalidLicense: `You are currently using without a valid license. ${l}`,
5
5
  mismatchedDomain: `Your license key is not valid for the current domain / IP. ${l}`,
6
6
  expired: `Your license key has expired. ${l}`,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pdf-viewer/react",
3
3
  "private": false,
4
4
  "description": "The PDF Viewer component for React and Next.js",
5
- "version": "1.5.0-beta.8",
5
+ "version": "1.5.0-beta.9",
6
6
  "keywords": [
7
7
  "component",
8
8
  "frontend",