@pdf-viewer/react 1.6.0-beta.8 → 1.6.0-rc.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.
Files changed (65) hide show
  1. package/dist/RPDefaultLayout-6173dbb0.js +3181 -0
  2. package/dist/SearchCloseButton-ddb9877e.js +32 -0
  3. package/dist/assets/PasswordModal.css +1 -1
  4. package/dist/assets/RPDefaultLayout.css +1 -1
  5. package/dist/assets/SearchCloseButton.css +1 -1
  6. package/dist/components/RPController.js +51 -52
  7. package/dist/components/RPPages.js +1 -1
  8. package/dist/components/RPProvider.js +1 -1
  9. package/dist/components/layout/LayoutContainer.js +1 -1
  10. package/dist/components/layout/RPDefaultLayout.js +1 -1
  11. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  12. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  13. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  14. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  15. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  16. package/dist/components/layout/toolbar/MostPageTool.js +1 -1
  17. package/dist/components/layout/toolbar/OtherTool.js +2 -3
  18. package/dist/components/layout/toolbar/Paginate.js +1 -1
  19. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  20. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  21. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  22. package/dist/components/layout/toolbar/SearchCloseButton.js +1 -1
  23. package/dist/components/layout/toolbar/SearchResultNavigator.js +2 -2
  24. package/dist/components/layout/toolbar/SearchTool.js +2 -2
  25. package/dist/components/layout/toolbar/ViewModeTool.js +18 -19
  26. package/dist/components/layout/toolbar/ZoomTool.js +1 -1
  27. package/dist/components/page/AnnotationLayer.js +1 -1
  28. package/dist/components/page/CanvasLayer.js +1 -1
  29. package/dist/components/page/DualPage.js +1 -1
  30. package/dist/components/page/RPPage.js +1 -1
  31. package/dist/components/page/SinglePage.js +1 -1
  32. package/dist/components/page/TextHighlightLayer.js +2 -2
  33. package/dist/components/page/TextLayer.js +1 -1
  34. package/dist/components/page/searchHighlight.js +37 -0
  35. package/dist/components/ui/LoadingIndicator.js +1 -1
  36. package/dist/components/ui/PasswordModal.js +24 -24
  37. package/dist/contexts/PaginationContext.js +1 -1
  38. package/dist/contexts/PrintContext.js +1 -1
  39. package/dist/contexts/SearchContext.js +1 -1
  40. package/dist/contexts/ThumbnailsContext.js +1 -1
  41. package/dist/contexts/ToolbarComponentContext.js +2 -2
  42. package/dist/contexts/ViewModeContext.js +16 -17
  43. package/dist/main.js +1 -1
  44. package/dist/types/components/layout/toolbar/ViewModeTool.d.ts +1 -1
  45. package/dist/types/components/page/TextHighlightLayer.d.ts +4 -0
  46. package/dist/types/components/page/searchHighlight.d.ts +5 -0
  47. package/dist/types/utils/const.d.ts +2 -0
  48. package/dist/types/utils/highlight.d.ts +1 -0
  49. package/dist/types/utils/types.d.ts +43 -6
  50. package/dist/utils/const.js +8 -0
  51. package/dist/utils/getZoomLevel.js +14 -13
  52. package/dist/utils/highlight.js +1 -0
  53. package/dist/utils/hooks/useFileDownload.js +1 -1
  54. package/dist/utils/hooks/useLicense.js +1 -1
  55. package/dist/utils/hooks/usePaginate.js +1 -1
  56. package/dist/utils/hooks/usePresentPage.js +1 -1
  57. package/dist/utils/hooks/usePrint.js +1 -1
  58. package/dist/utils/hooks/useScrollToPage.js +1 -1
  59. package/dist/utils/hooks/useSearch.js +1 -1
  60. package/dist/utils/hooks/useThumbnail.js +1 -1
  61. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  62. package/dist/utils/types.js +9 -9
  63. package/package.json +1 -1
  64. package/dist/RPDefaultLayout-0478995c.js +0 -3060
  65. package/dist/SearchCloseButton-959cc1ed.js +0 -32
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../contexts/RPDocumentContext.js";
4
4
  import "../../contexts/DocumentPasswordContext.js";
5
- import { p as F } from "../../RPDefaultLayout-0478995c.js";
5
+ import { p as F } from "../../RPDefaultLayout-6173dbb0.js";
6
6
  import "../../contexts/DarkModeContext.js";
7
7
  import "../../contexts/RotationContext.js";
8
8
  import "../../contexts/LayerContext.js";
@@ -0,0 +1,37 @@
1
+ import { EMPTY_KEYWORD_REGEXP as c } from "../../utils/const.js";
2
+ const n = (e) => {
3
+ let s = e.keyword.replace(/[.^$*+?()[{|\\]/g, (f) => `\\${f}`).trim();
4
+ const i = e.matchCase ? "g" : "gi";
5
+ return {
6
+ keyword: e.keyword,
7
+ regExp: new RegExp(s, i),
8
+ wholeWords: e.wholeWords || !1
9
+ };
10
+ }, u = (e, t, r) => e instanceof RegExp ? {
11
+ keyword: e.source,
12
+ regExp: e,
13
+ wholeWords: r || !1
14
+ } : typeof e == "string" ? e === "" ? c : n({
15
+ keyword: e,
16
+ matchCase: t || !1,
17
+ wholeWords: r || !1
18
+ }) : (typeof t < "u" && (e.matchCase = t), typeof r < "u" && (e.wholeWords = r), n(e)), o = (e) => {
19
+ const t = e.parentNode;
20
+ t && t.removeChild(e);
21
+ }, p = (e, t) => {
22
+ o(e);
23
+ const r = t.parentNode;
24
+ r && r.insertBefore(e, t), o(t);
25
+ }, l = (e) => {
26
+ const t = e.parentNode;
27
+ if (!t)
28
+ return;
29
+ const r = document.createRange();
30
+ r.selectNodeContents(e), p(r.extractContents(), e), t.normalize();
31
+ }, g = (e, t) => e.top < t.top ? -1 : e.top > t.top ? 1 : e.left < t.left ? -1 : e.left > t.left ? 1 : 0;
32
+ export {
33
+ n as normalizeFlagKeyword,
34
+ u as normalizeSingleKeyword,
35
+ g as sortHighlightPosition,
36
+ l as unwrap
37
+ };
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { L as i } from "../../RPDefaultLayout-0478995c.js";
2
+ import { L as i } from "../../RPDefaultLayout-6173dbb0.js";
3
3
  import "../../clsx-0c6e471a.js";
4
4
  import "../../contexts/LocalizationContext.js";
5
5
  export {
@@ -1,44 +1,44 @@
1
- import { jsx as a, jsxs as d } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as t } from "react/jsx-runtime";
2
2
  import { useState as c } from "react";
3
3
  import { c as o } from "../../clsx-0c6e471a.js";
4
4
  import { useLocalizationContext as u } from "../../contexts/LocalizationContext.js";
5
5
  import { useDocumentPasswordContext as _ } from "../../contexts/DocumentPasswordContext.js";
6
6
  import '../../assets/PasswordModal.css';const r = {
7
- "rp-password-overlay": "_rp-password-overlay_2kyt7_1",
8
- "rp-password-modal": "_rp-password-modal_2kyt7_14",
9
- "rp-password-title": "_rp-password-title_2kyt7_27",
10
- "rp-password-content": "_rp-password-content_2kyt7_35",
11
- "rp-password-form": "_rp-password-form_2kyt7_41",
12
- "rp-password-input": "_rp-password-input_2kyt7_45",
13
- "rp-password-input-invalid": "_rp-password-input-invalid_2kyt7_62",
14
- "rp-password-message-invalid": "_rp-password-message-invalid_2kyt7_66",
15
- "rp-password-submit-button": "_rp-password-submit-button_2kyt7_71"
16
- }, k = () => {
17
- const [t, e] = c(""), { localeMessages: s } = u(), { setPassword: l, invalidPassword: i } = _(), m = (p) => {
18
- e(p.target.value);
19
- }, n = (p) => {
20
- p.preventDefault(), t && t.trim() && l(t);
21
- }, w = !t.trim();
22
- return /* @__PURE__ */ a("div", { className: o(r["rp-password-overlay"]), children: /* @__PURE__ */ d("div", { className: o(r["rp-password-modal"]), children: [
7
+ "rp-password-overlay": "_rp-password-overlay_1mqln_1",
8
+ "rp-password-modal": "_rp-password-modal_1mqln_14",
9
+ "rp-password-title": "_rp-password-title_1mqln_27",
10
+ "rp-password-content": "_rp-password-content_1mqln_35",
11
+ "rp-password-form": "_rp-password-form_1mqln_41",
12
+ "rp-password-input": "_rp-password-input_1mqln_45",
13
+ "rp-password-input-invalid": "_rp-password-input-invalid_1mqln_62",
14
+ "rp-password-message-invalid": "_rp-password-message-invalid_1mqln_66",
15
+ "rp-password-submit-button": "_rp-password-submit-button_1mqln_72"
16
+ }, N = () => {
17
+ const [p, e] = c(""), { localeMessages: s } = u(), { setPassword: l, invalidPassword: n } = _(), m = (d) => {
18
+ e(d.target.value);
19
+ }, i = (d) => {
20
+ d.preventDefault(), p && p.trim() && l(p);
21
+ }, w = !p.trim();
22
+ return /* @__PURE__ */ a("div", { className: o(r["rp-password-overlay"]), children: /* @__PURE__ */ t("div", { className: o(r["rp-password-modal"]), children: [
23
23
  /* @__PURE__ */ a("div", { className: o(r["rp-password-title"]), children: s == null ? void 0 : s.passwordModalTitle }),
24
24
  /* @__PURE__ */ a("div", { className: o(r["rp-password-content"]), children: s == null ? void 0 : s.passwordModalMessage }),
25
- /* @__PURE__ */ d("form", { onSubmit: n, children: [
26
- /* @__PURE__ */ d("div", { className: o(r["rp-password-form"]), children: [
25
+ /* @__PURE__ */ t("form", { onSubmit: i, children: [
26
+ /* @__PURE__ */ t("div", { className: o(r["rp-password-form"]), children: [
27
27
  /* @__PURE__ */ a(
28
28
  "input",
29
29
  {
30
30
  type: "password",
31
- value: t,
31
+ value: p,
32
32
  onChange: m,
33
33
  className: o(
34
34
  r["rp-password-input"],
35
- i && r["rp-password-input-invalid"]
35
+ n && r["rp-password-input-invalid"]
36
36
  ),
37
37
  placeholder: "Enter password",
38
38
  autoComplete: "off"
39
39
  }
40
40
  ),
41
- i && /* @__PURE__ */ a("div", { className: o(r["rp-password-message-invalid"]), children: "Incorrect password" })
41
+ /* @__PURE__ */ a("div", { className: o(r["rp-password-message-invalid"]), children: n && /* @__PURE__ */ a("span", { children: "Incorrect password" }) })
42
42
  ] }),
43
43
  /* @__PURE__ */ a(
44
44
  "button",
@@ -46,7 +46,7 @@ import '../../assets/PasswordModal.css';const r = {
46
46
  type: "submit",
47
47
  disabled: w,
48
48
  className: o(r["rp-password-submit-button"]),
49
- onClick: n,
49
+ onClick: i,
50
50
  children: s == null ? void 0 : s.passwordConfirmLabel
51
51
  }
52
52
  )
@@ -54,5 +54,5 @@ import '../../assets/PasswordModal.css';const r = {
54
54
  ] }) });
55
55
  };
56
56
  export {
57
- k as default
57
+ N as default
58
58
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { h as e, P as m, u as p } from "../RPDefaultLayout-0478995c.js";
3
+ import { h as e, P as m, u as p } from "../RPDefaultLayout-6173dbb0.js";
4
4
  import "./RPDocumentContext.js";
5
5
  import "../utils/appConsole.js";
6
6
  export {
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { j as e, a as n, d as a } from "../RPDefaultLayout-0478995c.js";
3
+ import { j as e, a as n, d as a } from "../RPDefaultLayout-6173dbb0.js";
4
4
  export {
5
5
  e as PrintContext,
6
6
  n as PrintProvider,
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { o as a, S as s, e as S } from "../RPDefaultLayout-0478995c.js";
3
+ import { o as a, S as s, e as S } from "../RPDefaultLayout-6173dbb0.js";
4
4
  export {
5
5
  a as SearchContext,
6
6
  s as SearchProvider,
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { l as i, T as r, m as e } from "../RPDefaultLayout-0478995c.js";
3
+ import { l as i, T as r, m as e } from "../RPDefaultLayout-6173dbb0.js";
4
4
  export {
5
5
  i as ThumbnailContext,
6
6
  r as ThumbnailProvider,
@@ -8,7 +8,7 @@ const e = l({
8
8
  openFileTool: !0,
9
9
  dropFileZone: !0,
10
10
  downloadTool: !0,
11
- viewModeTool: !0,
11
+ // viewModeTool: true,
12
12
  scrollModeTool: !0,
13
13
  printTool: !0,
14
14
  showPrintProgress: !0,
@@ -23,7 +23,7 @@ const e = l({
23
23
  openFileTool: !0,
24
24
  dropFileZone: !0,
25
25
  downloadTool: !0,
26
- viewModeTool: !0,
26
+ // viewModeTool: true,
27
27
  scrollModeTool: !0,
28
28
  printTool: !0,
29
29
  thumbnailTool: !0,
@@ -1,28 +1,27 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { createContext as m, useContext as d, useState as P, useCallback as i, useMemo as C } from "react";
3
- import { appConsole as p } from "../utils/appConsole.js";
4
- import { ViewMode as e } from "../utils/types.js";
5
- import { useInitialStateContext as f } from "./InitialStateContext.js";
6
- const r = m({
2
+ import { createContext as m, useContext as a, useState as d, useCallback as r, useMemo as P } from "react";
3
+ import { appConsole as C } from "../utils/appConsole.js";
4
+ import { ViewMode as t } from "../utils/types.js";
5
+ const s = m({
7
6
  columnCount: 1,
8
7
  setSinglePage: () => {
9
8
  },
10
9
  setDualPage: () => {
11
10
  },
12
- viewMode: e.SINGLE_PAGE
13
- }), w = () => {
14
- const o = d(r);
15
- return typeof o.columnCount > "u" && p.error("Please use this hooks inside children component of RPProvider"), o;
16
- }, g = ({ children: o }) => {
17
- const { initialViewMode: s = e.SINGLE_PAGE } = f(), [t, n] = P(s === e.SINGLE_PAGE ? 1 : 2), u = i(() => {
11
+ viewMode: t.SINGLE_PAGE
12
+ }), g = () => {
13
+ const e = a(s);
14
+ return typeof e.columnCount > "u" && C.error("Please use this hooks inside children component of RPProvider"), e;
15
+ }, v = ({ children: e }) => {
16
+ const [o, n] = d(1), i = r(() => {
18
17
  n(1);
19
- }, []), c = i(() => {
18
+ }, []), u = r(() => {
20
19
  n(2);
21
- }, []), a = C(() => t === 1 ? e.SINGLE_PAGE : e.DUAL_PAGE, [t]);
22
- return /* @__PURE__ */ l(r.Provider, { value: { columnCount: t, setSinglePage: u, setDualPage: c, viewMode: a }, children: o });
20
+ }, []), c = P(() => o === 1 ? t.SINGLE_PAGE : t.DUAL_PAGE, [o]);
21
+ return /* @__PURE__ */ l(s.Provider, { value: { columnCount: o, setSinglePage: i, setDualPage: u, viewMode: c }, children: e });
23
22
  };
24
23
  export {
25
- r as ViewModeContext,
26
- g as ViewModeProvider,
27
- w as useViewModeContext
24
+ s as ViewModeContext,
25
+ v as ViewModeProvider,
26
+ g as useViewModeContext
28
27
  };
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { RPProvider as t } from "./components/RPProvider.js";
2
- import { b as x, R as n, c as s, u as m, d as p, e as f } from "./RPDefaultLayout-0478995c.js";
2
+ import { b as x, R as n, c as s, u as m, d as p, e as f } from "./RPDefaultLayout-6173dbb0.js";
3
3
  import { RPConfig as a } from "./components/RPConfig.js";
4
4
  import { RPController as l } from "./components/RPController.js";
5
5
  import { RPTheme as P } from "./components/RPTheme.js";
@@ -1 +1 @@
1
- export declare const ViewModeTool: () => import("react/jsx-runtime").JSX.Element | null;
1
+ export declare const ViewModeTool: () => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,10 @@
1
1
  import { FC } from 'react';
2
2
  interface Props {
3
3
  pageNumber: number;
4
+ viewport: {
5
+ width: number;
6
+ height: number;
7
+ };
4
8
  }
5
9
  export declare const TextHighlightLayer: FC<Props>;
6
10
  export {};
@@ -0,0 +1,5 @@
1
+ import { FlagKeyword, HighlightArea, NormalizedKeyword, SingleKeyword } from '../../utils/types';
2
+ export declare const normalizeFlagKeyword: (flagKeyword: FlagKeyword) => NormalizedKeyword;
3
+ export declare const normalizeSingleKeyword: (keyword: SingleKeyword, matchCase?: boolean, wholeWords?: boolean) => NormalizedKeyword;
4
+ export declare const unwrap: (ele: Node) => void;
5
+ export declare const sortHighlightPosition: (a: HighlightArea, b: HighlightArea) => 1 | 0 | -1;
@@ -0,0 +1,2 @@
1
+ import { NormalizedKeyword } from './types';
2
+ export declare const EMPTY_KEYWORD_REGEXP: NormalizedKeyword;
@@ -1,6 +1,7 @@
1
1
  import { TextContent } from 'pdfjs-dist/types/src/display/text_layer';
2
2
  import { SearchOptions, Match, MatchHighlight } from './types';
3
3
  export declare function findMatches(queries: (string | RegExp)[], textContent: TextContent, pageIndex: number, options: SearchOptions): Match[];
4
+ export declare function isMatchEntireWord(content: string, startIdx: number, length: number): boolean;
4
5
  export declare function highlightMatches(matches: Match[], textContent: TextContent, textDivs: HTMLElement[]): {
5
6
  element: HTMLElement;
6
7
  index: number;
@@ -329,7 +329,6 @@ export interface RPSlots {
329
329
  dropFileZone?: boolean | React.ReactNode | React.ComponentType;
330
330
  downloadTool?: boolean | FC<DownloadToolProps>;
331
331
  zoomTool?: boolean | FC<ZoomProps>;
332
- viewModeTool?: boolean;
333
332
  scrollModeTool?: boolean;
334
333
  thumbnailTool?: boolean | FC<ThumbnailToolProps>;
335
334
  pageNavigationTool?: boolean | FC<PageNavigationToolProps>;
@@ -452,9 +451,15 @@ export declare enum ThemeVariables {
452
451
  CURRENT_HIGHLIGHT_BACKGROUND_COLOR = "--rp-current-highlight-background-color",
453
452
  TOOLTIP_BACKGROUND_COLOR = "--rp-tooltip-background-color",
454
453
  TOOLTIP_BORDER_RADIUS = "--rp-tooltip-border-radius",
455
- PASSWORD_MODAL_BACKGROUND = "--rp-password-background",
456
- PASSWORD_MODAL_TITLE_COLOR = "--rp-password-title-color",
457
- PASSWORD_MODAL_CONTENT_COLOR = "--rp-password-content-color",
454
+ PASSWORD_MODAL_BACKGROUND_COLOR = "--rp-password-background-color",
455
+ PASSWORD_MODAL_TITLE_FONT_COLOR = "--rp-password-title-font-color",
456
+ PASSWORD_MODAL_CONTENT_FONT_COLOR = "--rp-password-content-font-color",
457
+ PASSWORD_MODAL_INPUT_PLACEHOLDER_COLOR = "--rp-password-input-placeholder-color",
458
+ PASSWORD_MODAL_INPUT_BORDER_COLOR = "--rp-password-input-border-color",
459
+ PASSWORD_MODAL_INPUT_FONT_COLOR = "--rp-password-input-font-color",
460
+ PASSWORD_MODAL_BUTTON_FONT_COLOR = "--rp-password-button-font-color",
461
+ PASSWORD_MODAL_BUTTON_BACKGROUND_COLOR = "--rp-password-button-background-color",
462
+ PASSWORD_MODAL_BUTTON_BORDER_COLOR = "--rp-password-button-border-color",
458
463
  CONTAINER_FOCUS_OUTLINE_WIDTH = "--rp-container-focus-outline-width",
459
464
  CONTAINER_FOCUS_OUTLINE_COLOR = "--rp-container-focus-outline-color",
460
465
  CONTAINER_FOCUS_OUTLINE_OFFSET = "--rp-container-focus-outline-offset"
@@ -478,7 +483,7 @@ export interface RPProviderProps extends PropsWithChildren, LoadPDFOptions, RPCo
478
483
  characterMap?: CharacterMap;
479
484
  }
480
485
  export type LocalizationMap = Record<string, Localization>;
481
- export interface RPControllerProps extends PropsWithChildren, DarkModeProviderProps, RotateProviderProps, LayerProviderProps, ZoomProviderProps, PageProviderProps, ViewModeProps, ScrollModeProps {
486
+ export interface RPControllerProps extends PropsWithChildren, DarkModeProviderProps, RotateProviderProps, LayerProviderProps, ZoomProviderProps, PageProviderProps, ScrollModeProps {
482
487
  initialSearch?: string;
483
488
  initialThumbnailsVisible?: boolean;
484
489
  locale?: string;
@@ -511,7 +516,7 @@ export interface ZoomContextType {
511
516
  export type ZoomProps = Omit<ZoomContextType, 'currentZoom'>;
512
517
  export type InitialStateContextType = {
513
518
  instanceId: string;
514
- } & ZoomProviderProps & PageProviderProps & ViewModeProps & ScrollModeProps & RotateProviderProps;
519
+ } & ZoomProviderProps & PageProviderProps & ScrollModeProps & RotateProviderProps;
515
520
  export interface ZoomProviderProps {
516
521
  initialScale?: number | ZoomLevel;
517
522
  }
@@ -664,4 +669,36 @@ export interface MatchHighlight extends MatchValue {
664
669
  keyword: string | RegExp;
665
670
  color: string;
666
671
  }
672
+ export interface FlagKeyword {
673
+ keyword: string;
674
+ matchCase?: boolean;
675
+ wholeWords?: boolean;
676
+ }
677
+ export type SingleKeyword = string | RegExp | FlagKeyword;
678
+ export interface NormalizedKeyword {
679
+ keyword: string;
680
+ regExp: RegExp;
681
+ wholeWords: boolean;
682
+ color?: string;
683
+ }
684
+ export interface MatchRangeIndex {
685
+ keyword: RegExp;
686
+ startIndex: number;
687
+ endIndex: number;
688
+ }
689
+ export interface HighlightArea {
690
+ keywordStr: string;
691
+ left: number;
692
+ top: number;
693
+ height: number;
694
+ width: number;
695
+ pageHeight: number;
696
+ pageWidth: number;
697
+ highlightColor?: string;
698
+ }
699
+ export interface CharacterIndex {
700
+ char: string;
701
+ charIdxInSpan: number;
702
+ spanIdx: number;
703
+ }
667
704
  export {};
@@ -0,0 +1,8 @@
1
+ const e = {
2
+ keyword: "",
3
+ regExp: new RegExp(" "),
4
+ wholeWords: !1
5
+ };
6
+ export {
7
+ e as EMPTY_KEYWORD_REGEXP
8
+ };
@@ -1,23 +1,24 @@
1
- import { SCROLL_BAR_WIDTH as A } from "./constants.js";
2
- import { ZoomLevel as t, ViewMode as u } from "./types.js";
3
- const f = 1, l = (o, e, n, r, m, a) => {
1
+ import { SCROLL_BAR_WIDTH as s } from "./constants.js";
2
+ import { ZoomLevel as e, ViewMode as c } from "./types.js";
3
+ const Z = (o, t, m, r, a, u) => {
4
4
  if (typeof o == "number")
5
5
  return o;
6
6
  switch (o) {
7
- case t.ACTUAL:
7
+ case e.ACTUAL:
8
8
  return 100;
9
- case t.PAGE_FIT:
10
- const c = a === u.DUAL_PAGE ? 2 * r : r, s = Math.min(
11
- (e - A) / c,
12
- n * f / m
13
- );
14
- return Math.floor(s * 100);
15
- case t.PAGE_WIDTH:
16
- return Math.floor(e / r * 100);
9
+ case e.PAGE_FIT:
10
+ let n = 0;
11
+ const l = u === c.DUAL_PAGE ? 2 * r : r;
12
+ return n = Math.min(
13
+ (t - s) / l,
14
+ m / a
15
+ ), Math.floor(n * 100);
16
+ case e.PAGE_WIDTH:
17
+ return Math.floor(t / r * 100);
17
18
  default:
18
19
  return 100;
19
20
  }
20
21
  };
21
22
  export {
22
- l as getZoomLevel
23
+ Z as getZoomLevel
23
24
  };
@@ -216,5 +216,6 @@ export {
216
216
  W as getHighlightOptionsWithDefaults,
217
217
  H as highlightMatches,
218
218
  A as highlightMultipleColorMatches,
219
+ L as isMatchEntireWord,
219
220
  R as resetDivs
220
221
  };
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../contexts/RPDocumentContext.js";
4
4
  import "../../contexts/DocumentPasswordContext.js";
5
- import { c as E } from "../../RPDefaultLayout-0478995c.js";
5
+ import { c as E } from "../../RPDefaultLayout-6173dbb0.js";
6
6
  import "../../contexts/DarkModeContext.js";
7
7
  import "../../contexts/RotationContext.js";
8
8
  import "../../contexts/LayerContext.js";
@@ -1,6 +1,6 @@
1
1
  import { useState as g, 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-21T03:01:21.606Z"), l = "Please visit https://www.react-pdf.dev/manage-license/ to generate a new license key.", s = {
3
+ const b = /* @__PURE__ */ new Date("2025-05-23T02:59:08.768Z"), l = "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. ${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}`,
@@ -1,6 +1,6 @@
1
1
  import "react";
2
2
  import "../types.js";
3
- import { g as G } from "../../RPDefaultLayout-0478995c.js";
3
+ import { g as G } from "../../RPDefaultLayout-6173dbb0.js";
4
4
  import "react/jsx-runtime";
5
5
  import "../../contexts/RPDocumentContext.js";
6
6
  import "../../contexts/DocumentPasswordContext.js";
@@ -5,7 +5,7 @@ import "../calculatePage.js";
5
5
  import "react/jsx-runtime";
6
6
  import "../../contexts/RPDocumentContext.js";
7
7
  import "../../contexts/DocumentPasswordContext.js";
8
- import { v as G } from "../../RPDefaultLayout-0478995c.js";
8
+ import { v as G } from "../../RPDefaultLayout-6173dbb0.js";
9
9
  import "../../contexts/DarkModeContext.js";
10
10
  import "../../contexts/RotationContext.js";
11
11
  import "../../contexts/LayerContext.js";
@@ -2,7 +2,7 @@ import "react";
2
2
  import "react/jsx-runtime";
3
3
  import "../../contexts/RPDocumentContext.js";
4
4
  import "../../contexts/DocumentPasswordContext.js";
5
- import { i as F } from "../../RPDefaultLayout-0478995c.js";
5
+ import { i as F } from "../../RPDefaultLayout-6173dbb0.js";
6
6
  import "../../contexts/DarkModeContext.js";
7
7
  import "../../contexts/RotationContext.js";
8
8
  import "../../contexts/LayerContext.js";
@@ -3,7 +3,7 @@ import "../../contexts/ScrollModeContext.js";
3
3
  import "react/jsx-runtime";
4
4
  import "../../contexts/RPDocumentContext.js";
5
5
  import "../../contexts/DocumentPasswordContext.js";
6
- import { f as F } from "../../RPDefaultLayout-0478995c.js";
6
+ import { f as F } from "../../RPDefaultLayout-6173dbb0.js";
7
7
  import "../../contexts/DarkModeContext.js";
8
8
  import "../types.js";
9
9
  import "../../contexts/RotationContext.js";
@@ -7,7 +7,7 @@ import "../../contexts/RPDocumentContext.js";
7
7
  import "../../contexts/ZoomContext.js";
8
8
  import "react/jsx-runtime";
9
9
  import "../../contexts/DocumentPasswordContext.js";
10
- import { n as I } from "../../RPDefaultLayout-0478995c.js";
10
+ import { n as I } from "../../RPDefaultLayout-6173dbb0.js";
11
11
  import "../../contexts/DarkModeContext.js";
12
12
  import "../../contexts/RotationContext.js";
13
13
  import "../../contexts/LayerContext.js";
@@ -3,7 +3,7 @@ import "../renderPage.js";
3
3
  import "react/jsx-runtime";
4
4
  import "../../contexts/RPDocumentContext.js";
5
5
  import "../../contexts/DocumentPasswordContext.js";
6
- import { k as G } from "../../RPDefaultLayout-0478995c.js";
6
+ import { k as G } from "../../RPDefaultLayout-6173dbb0.js";
7
7
  import "../../contexts/DarkModeContext.js";
8
8
  import "../../contexts/RotationContext.js";
9
9
  import "../../contexts/LayerContext.js";
@@ -4,7 +4,7 @@ import "../../contexts/ScrollModeContext.js";
4
4
  import "react/jsx-runtime";
5
5
  import "../../contexts/RPDocumentContext.js";
6
6
  import "../../contexts/DocumentPasswordContext.js";
7
- import { s as D } from "../../RPDefaultLayout-0478995c.js";
7
+ import { s as D } from "../../RPDefaultLayout-6173dbb0.js";
8
8
  import "../../contexts/DarkModeContext.js";
9
9
  import "../../contexts/RotationContext.js";
10
10
  import "../../contexts/LayerContext.js";
@@ -1,6 +1,6 @@
1
1
  import { e as r, z as _, i as R, p as o, t as p } from "../th_TH-2c4015a5.js";
2
- var E = /* @__PURE__ */ ((O) => (O[O.Text = 1] = "Text", O[O.Link = 2] = "Link", O[O.FreeText = 3] = "FreeText", O[O.Line = 4] = "Line", O[O.Square = 5] = "Square", O[O.Circle = 6] = "Circle", O[O.Polygon = 7] = "Polygon", O[O.Polyline = 8] = "Polyline", O[O.Highlight = 9] = "Highlight", O[O.Underline = 10] = "Underline", O[O.Squiggly = 11] = "Squiggly", O[O.StrikeOut = 12] = "StrikeOut", O[O.Stamp = 13] = "Stamp", O[O.Caret = 14] = "Caret", O[O.Ink = 15] = "Ink", O[O.Popup = 16] = "Popup", O[O.FileAttachment = 17] = "FileAttachment", O[O.Widget = 20] = "Widget", O))(E || {}), I = /* @__PURE__ */ ((O) => (O.INTERNAL_LINK = "internal-link", O.LINK = "link", O.FILE_ATTACHMENT = "file-attachment", O.FORM_TEXT = "form-text", O.FORM_SELECT = "form-select", O.FORM_CHECKBOX = "form-checkbox", O.FORM_RADIO = "form-radio", O.FORM_BUTTON = "form-button", O.BUTTON = "button", O))(I || {}), D = /* @__PURE__ */ ((O) => (O.ACTUAL = "Actual", O.PAGE_FIT = "Fit", O.PAGE_WIDTH = "Width", O))(D || {}), N = /* @__PURE__ */ ((O) => (O.Organization = "organization", O.Developer = "developer", O))(N || {}), d = /* @__PURE__ */ ((O) => (O.SINGLE_PAGE = "Single", O.DUAL_PAGE = "Dual", O))(d || {}), L = /* @__PURE__ */ ((O) => (O.FONT_FAMILY = "--rp-font-family", O.PRIMARY_COLOR = "--rp-primary-color", O.BORDER_RADIUS = "--rp-border-radius", O.TEXT_COLOR = "--rp-text-color", O.OUTLINE_COLOR = "--rp-outline-color", O.FONT_SIZE = "--rp-font-size", O.DROP_MASK_BACKGROUND_COLOR = "--rp-drop-mask-background-color", O.LOADER_BACKDROP_COLOR = "--rp-loader-backdrop-color", O.ICON_DISABLED = "--rp-icon-disabled", O.ICON_FONT_SIZE = "--rp-icon-font-size", O.TOOLBAR_BACKGROUND = "--rp-toolbar-background", O.TOOLBAR_BORDER_COLOR = "--rp-toolbar-border-color", O.TOOLBAR_PADDING = "--rp-toolbar-padding", O.TOOLBAR_GAP = "--rp-toolbar-gap", O.TOOLBAR_SIZE = "--rp-toolbar-size", O.SIDEBAR_WIDTH = "--rp-sidebar-width", O.THUMBNAIL_BORDER_COLOR = "--rp-thumbnail-border-color", O.THUMBNAIL_BACKGROUND_COLOR = "--rp-thumbnail-background-color", O.THUMBNAIL_ACTIVE_COLOR = "--rp-thumbnail-active-color", O.THUMBNAIL_PADDING_Y = "--rp-thumbnail-padding-y", O.BUTTON_HOVER_BACKGROUND = "--rp-button-hover-background", O.BUTTON_PADDING = "--rp-button-padding", O.INPUT_PADDING = "--rp-input-padding", O.INPUT_BORDER_RADIUS = "--rp-input-border-radius", O.INPUT_BACKGROUND_COLOR = "--rp-input-background-color", O.INPUT_PLACEHOLDER_COLOR = "--rp-input-placeholder-color", O.PAGES_BACKGROUND_COLOR = "--rp-pages-background-color", O.ANNOTATION_LAYER_LINK_HOVER_BACKGROUND = "--rp-annotation-layer__link-hover-background", O.DROPDOWN_BACKGROUND_COLOR = "--rp-dropdown-background-color", O.DROPDOWN_PADDING = "--rp-dropdown-padding", O.DROPDOWN_HOVER_BACKGROUND_COLOR = "--rp-dropdown-hover-background-color", O.DROPDOWN_SEPARATOR_COLOR = "--rp-dropdown-separator-color", O.DROPDOWN_SEPARATOR_MARGIN = "--rp-dropdown-separator-margin", O.DROPDOWN_PADDING_MENU_ITEM = "--rp-dropdown-padding-menu-item", O.DROPDOWN_FONT_SIZE = "--rp-dropdown-font-size", O.DROPDOWN_BORDER_RADIUS = "--rp-dropdown-border-radius", O.SEARCH_TOOL_DROPDOWN_PADDING = "--rp-search-tool-dropdown-padding", O.POPOVER_FONT_SIZE = "--rp-popover-font-size", O.POPOVER_BACKGROUND_COLOR = "--rp-popover-background-color", O.POPOVER_COLOR = "--rp-popover-color", O.POPOVER_BORDER_COLOR = "--rp-popover-border-color", O.POPOVER_BORDER_RADIUS = "--rp-popover-border-radius", O.OVERLAY_BACKGROUND_COLOR = "--rp-overlay-background-color", O.DIALOG_BACKGROUND_COLOR = "--rp-dialog-background-color", O.PROPERTIES_DIVIDER_COLOR = "--rp-properties-divider-color", O.PROPERTIES_DIVIDER_MARGIN = "--rp-properties-divider-margin", O.PROPERTY_ITEM_GAP = "--rp-property-item-gap", O.DIALOG_TITLE_COLOR = "--rp-dialog-title-color", O.PROPERTY_ITEM_LABEL_COLOR = "--rp-property-item-label-color", O.PROPERTY_CLOSE_ICON_SIZE = "--rp-property-close-icon-size", O.PROPERTY_ITEM_FONT_SIZE = "--rp-property-item-font-size", O.PROPERTY_ITEM_FONT_WEIGHT = "--rp-property-item-font-weight", O.DIALOG_TITLE_FONT_SIZE = "--rp-dialog-title-font-size", O.DIALOG_TITLE_FONT_WEIGHT = "--rp-dialog-title-font-weight", O.MENU_ITEM_ICON_SIZE = "--rp-menu-item-icon-size", O.PRINT_PROGRESS_BACKGROUND = "--rp-print-progress-background", O.PRINT_PROGRESS_COLOR = "--rp-print-progress-color", O.DROP_ZONE_BORDER = "--rp-drop-zone-border", O.DROP_ZONE_FONT_COLOR = "--rp-drop-zone-font-color", O.DROP_ZONE_FONT_SIZE = "--rp-drop-zone-font-size", O.DROP_ZONE_BACKGROUND_COLOR = "--rp-drop-zone-background-color", O.CHECKBOX_BORDER_RADIUS = "--rp-checkbox-border-radius", O.CHECKBOX_BORDER_COLOR = "--rp-checkbox-border-color", O.CHECKBOX_INDICATOR_COLOR = "--rp-checkbox-indicator-color", O.HIGHLIGHT_BACKGROUND_COLOR = "--rp-highlight-background-color", O.TEXT_LAYER_HIGHLIGHT_BORDER_RADIUS = "--rp-text-layer-highlight-border-radius", O.CURRENT_HIGHLIGHT_BACKGROUND_COLOR = "--rp-current-highlight-background-color", O.TOOLTIP_BACKGROUND_COLOR = "--rp-tooltip-background-color", O.TOOLTIP_BORDER_RADIUS = "--rp-tooltip-border-radius", O.PASSWORD_MODAL_BACKGROUND = "--rp-password-background", O.PASSWORD_MODAL_TITLE_COLOR = "--rp-password-title-color", O.PASSWORD_MODAL_CONTENT_COLOR = "--rp-password-content-color", O.CONTAINER_FOCUS_OUTLINE_WIDTH = "--rp-container-focus-outline-width", O.CONTAINER_FOCUS_OUTLINE_COLOR = "--rp-container-focus-outline-color", O.CONTAINER_FOCUS_OUTLINE_OFFSET = "--rp-container-focus-outline-offset", O))(L || {}), C = /* @__PURE__ */ ((O) => (O.PAGE_SCROLLING = "PAGE", O.VERTICAL_SCROLLING = "VERTICAL", O.HORIZONTAL_SCROLLING = "HORIZONTAL", O))(C || {}), c = /* @__PURE__ */ ((O) => (O.TEXT = "TEXT", O.HAND = "HAND", O))(c || {});
3
- const g = {
2
+ var D = /* @__PURE__ */ ((O) => (O[O.Text = 1] = "Text", O[O.Link = 2] = "Link", O[O.FreeText = 3] = "FreeText", O[O.Line = 4] = "Line", O[O.Square = 5] = "Square", O[O.Circle = 6] = "Circle", O[O.Polygon = 7] = "Polygon", O[O.Polyline = 8] = "Polyline", O[O.Highlight = 9] = "Highlight", O[O.Underline = 10] = "Underline", O[O.Squiggly = 11] = "Squiggly", O[O.StrikeOut = 12] = "StrikeOut", O[O.Stamp = 13] = "Stamp", O[O.Caret = 14] = "Caret", O[O.Ink = 15] = "Ink", O[O.Popup = 16] = "Popup", O[O.FileAttachment = 17] = "FileAttachment", O[O.Widget = 20] = "Widget", O))(D || {}), N = /* @__PURE__ */ ((O) => (O.INTERNAL_LINK = "internal-link", O.LINK = "link", O.FILE_ATTACHMENT = "file-attachment", O.FORM_TEXT = "form-text", O.FORM_SELECT = "form-select", O.FORM_CHECKBOX = "form-checkbox", O.FORM_RADIO = "form-radio", O.FORM_BUTTON = "form-button", O.BUTTON = "button", O))(N || {}), E = /* @__PURE__ */ ((O) => (O.ACTUAL = "Actual", O.PAGE_FIT = "Fit", O.PAGE_WIDTH = "Width", O))(E || {}), L = /* @__PURE__ */ ((O) => (O.Organization = "organization", O.Developer = "developer", O))(L || {}), I = /* @__PURE__ */ ((O) => (O.SINGLE_PAGE = "Single", O.DUAL_PAGE = "Dual", O))(I || {}), d = /* @__PURE__ */ ((O) => (O.FONT_FAMILY = "--rp-font-family", O.PRIMARY_COLOR = "--rp-primary-color", O.BORDER_RADIUS = "--rp-border-radius", O.TEXT_COLOR = "--rp-text-color", O.OUTLINE_COLOR = "--rp-outline-color", O.FONT_SIZE = "--rp-font-size", O.DROP_MASK_BACKGROUND_COLOR = "--rp-drop-mask-background-color", O.LOADER_BACKDROP_COLOR = "--rp-loader-backdrop-color", O.ICON_DISABLED = "--rp-icon-disabled", O.ICON_FONT_SIZE = "--rp-icon-font-size", O.TOOLBAR_BACKGROUND = "--rp-toolbar-background", O.TOOLBAR_BORDER_COLOR = "--rp-toolbar-border-color", O.TOOLBAR_PADDING = "--rp-toolbar-padding", O.TOOLBAR_GAP = "--rp-toolbar-gap", O.TOOLBAR_SIZE = "--rp-toolbar-size", O.SIDEBAR_WIDTH = "--rp-sidebar-width", O.THUMBNAIL_BORDER_COLOR = "--rp-thumbnail-border-color", O.THUMBNAIL_BACKGROUND_COLOR = "--rp-thumbnail-background-color", O.THUMBNAIL_ACTIVE_COLOR = "--rp-thumbnail-active-color", O.THUMBNAIL_PADDING_Y = "--rp-thumbnail-padding-y", O.BUTTON_HOVER_BACKGROUND = "--rp-button-hover-background", O.BUTTON_PADDING = "--rp-button-padding", O.INPUT_PADDING = "--rp-input-padding", O.INPUT_BORDER_RADIUS = "--rp-input-border-radius", O.INPUT_BACKGROUND_COLOR = "--rp-input-background-color", O.INPUT_PLACEHOLDER_COLOR = "--rp-input-placeholder-color", O.PAGES_BACKGROUND_COLOR = "--rp-pages-background-color", O.ANNOTATION_LAYER_LINK_HOVER_BACKGROUND = "--rp-annotation-layer__link-hover-background", O.DROPDOWN_BACKGROUND_COLOR = "--rp-dropdown-background-color", O.DROPDOWN_PADDING = "--rp-dropdown-padding", O.DROPDOWN_HOVER_BACKGROUND_COLOR = "--rp-dropdown-hover-background-color", O.DROPDOWN_SEPARATOR_COLOR = "--rp-dropdown-separator-color", O.DROPDOWN_SEPARATOR_MARGIN = "--rp-dropdown-separator-margin", O.DROPDOWN_PADDING_MENU_ITEM = "--rp-dropdown-padding-menu-item", O.DROPDOWN_FONT_SIZE = "--rp-dropdown-font-size", O.DROPDOWN_BORDER_RADIUS = "--rp-dropdown-border-radius", O.SEARCH_TOOL_DROPDOWN_PADDING = "--rp-search-tool-dropdown-padding", O.POPOVER_FONT_SIZE = "--rp-popover-font-size", O.POPOVER_BACKGROUND_COLOR = "--rp-popover-background-color", O.POPOVER_COLOR = "--rp-popover-color", O.POPOVER_BORDER_COLOR = "--rp-popover-border-color", O.POPOVER_BORDER_RADIUS = "--rp-popover-border-radius", O.OVERLAY_BACKGROUND_COLOR = "--rp-overlay-background-color", O.DIALOG_BACKGROUND_COLOR = "--rp-dialog-background-color", O.PROPERTIES_DIVIDER_COLOR = "--rp-properties-divider-color", O.PROPERTIES_DIVIDER_MARGIN = "--rp-properties-divider-margin", O.PROPERTY_ITEM_GAP = "--rp-property-item-gap", O.DIALOG_TITLE_COLOR = "--rp-dialog-title-color", O.PROPERTY_ITEM_LABEL_COLOR = "--rp-property-item-label-color", O.PROPERTY_CLOSE_ICON_SIZE = "--rp-property-close-icon-size", O.PROPERTY_ITEM_FONT_SIZE = "--rp-property-item-font-size", O.PROPERTY_ITEM_FONT_WEIGHT = "--rp-property-item-font-weight", O.DIALOG_TITLE_FONT_SIZE = "--rp-dialog-title-font-size", O.DIALOG_TITLE_FONT_WEIGHT = "--rp-dialog-title-font-weight", O.MENU_ITEM_ICON_SIZE = "--rp-menu-item-icon-size", O.PRINT_PROGRESS_BACKGROUND = "--rp-print-progress-background", O.PRINT_PROGRESS_COLOR = "--rp-print-progress-color", O.DROP_ZONE_BORDER = "--rp-drop-zone-border", O.DROP_ZONE_FONT_COLOR = "--rp-drop-zone-font-color", O.DROP_ZONE_FONT_SIZE = "--rp-drop-zone-font-size", O.DROP_ZONE_BACKGROUND_COLOR = "--rp-drop-zone-background-color", O.CHECKBOX_BORDER_RADIUS = "--rp-checkbox-border-radius", O.CHECKBOX_BORDER_COLOR = "--rp-checkbox-border-color", O.CHECKBOX_INDICATOR_COLOR = "--rp-checkbox-indicator-color", O.HIGHLIGHT_BACKGROUND_COLOR = "--rp-highlight-background-color", O.TEXT_LAYER_HIGHLIGHT_BORDER_RADIUS = "--rp-text-layer-highlight-border-radius", O.CURRENT_HIGHLIGHT_BACKGROUND_COLOR = "--rp-current-highlight-background-color", O.TOOLTIP_BACKGROUND_COLOR = "--rp-tooltip-background-color", O.TOOLTIP_BORDER_RADIUS = "--rp-tooltip-border-radius", O.PASSWORD_MODAL_BACKGROUND_COLOR = "--rp-password-background-color", O.PASSWORD_MODAL_TITLE_FONT_COLOR = "--rp-password-title-font-color", O.PASSWORD_MODAL_CONTENT_FONT_COLOR = "--rp-password-content-font-color", O.PASSWORD_MODAL_INPUT_PLACEHOLDER_COLOR = "--rp-password-input-placeholder-color", O.PASSWORD_MODAL_INPUT_BORDER_COLOR = "--rp-password-input-border-color", O.PASSWORD_MODAL_INPUT_FONT_COLOR = "--rp-password-input-font-color", O.PASSWORD_MODAL_BUTTON_FONT_COLOR = "--rp-password-button-font-color", O.PASSWORD_MODAL_BUTTON_BACKGROUND_COLOR = "--rp-password-button-background-color", O.PASSWORD_MODAL_BUTTON_BORDER_COLOR = "--rp-password-button-border-color", O.CONTAINER_FOCUS_OUTLINE_WIDTH = "--rp-container-focus-outline-width", O.CONTAINER_FOCUS_OUTLINE_COLOR = "--rp-container-focus-outline-color", O.CONTAINER_FOCUS_OUTLINE_OFFSET = "--rp-container-focus-outline-offset", O))(d || {}), C = /* @__PURE__ */ ((O) => (O.PAGE_SCROLLING = "PAGE", O.VERTICAL_SCROLLING = "VERTICAL", O.HORIZONTAL_SCROLLING = "HORIZONTAL", O))(C || {}), c = /* @__PURE__ */ ((O) => (O.TEXT = "TEXT", O.HAND = "HAND", O))(c || {});
3
+ const A = {
4
4
  en_US: r,
5
5
  zh_CN: _,
6
6
  it_IT: R,
@@ -8,13 +8,13 @@ const g = {
8
8
  th_TH: p
9
9
  };
10
10
  export {
11
- E as AnnotationSubType,
12
- I as AnnotationType,
13
- N as LicenseType,
14
- g as Locales,
11
+ D as AnnotationSubType,
12
+ N as AnnotationType,
13
+ L as LicenseType,
14
+ A as Locales,
15
15
  C as ScrollMode,
16
16
  c as SelectionMode,
17
- L as ThemeVariables,
18
- d as ViewMode,
19
- D as ZoomLevel
17
+ d as ThemeVariables,
18
+ I as ViewMode,
19
+ E as ZoomLevel
20
20
  };
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.6.0-beta.8",
5
+ "version": "1.6.0-rc.0",
6
6
  "keywords": [
7
7
  "component",
8
8
  "frontend",