@react-pdf-kit/viewer 2.6.0-rc.0 → 2.7.0-beta.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.
@@ -4,10 +4,10 @@ import { useToolbarComponentContext as n } from "../../../contexts/ToolbarCompon
4
4
  import { useToolComponentContext as r } from "../../../contexts/ToolComponentContext.js";
5
5
  import { useSearchContext as i } from "../../../contexts/SearchContext.js";
6
6
  import { useLocalizationContext as a } from "../../../contexts/LocalizationContext.js";
7
- import { t as o } from "../../../LoaderIcon-D9YjinGf.js";
8
- import { useIconToolContext as s } from "../../../contexts/IconToolContext.js";
9
- import { t as c } from "../../../Button-jStpvb3T.js";
10
- import { t as ee } from "../../../Input-Bb_-ljl1.js";
7
+ import { t as ee } from "../../../LoaderIcon-D9YjinGf.js";
8
+ import { useIconToolContext as o } from "../../../contexts/IconToolContext.js";
9
+ import { t as s } from "../../../Button-jStpvb3T.js";
10
+ import { t as c } from "../../../Input-Bb_-ljl1.js";
11
11
  import { useIconContext as l } from "../../../contexts/IconContext.js";
12
12
  import { useViewportContext as te } from "../../../contexts/ViewportContext.js";
13
13
  import { t as u } from "../../../RPTooltip-ZZoFqP7C.js";
@@ -19,66 +19,68 @@ import { t as h } from "../../../Checkbox-Brta-YKG.js";
19
19
  import { ClearIcon as g } from "../../icons/ClearIcon.js";
20
20
  import { SearchResultNavigator as _ } from "./SearchResultNavigator.js";
21
21
  import { SearchCloseButton as v } from "./SearchCloseButton.js";
22
- import { useCallback as y, useEffect as b, useMemo as x, useState as S } from "react";
23
- import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
22
+ import { useCallback as y, useEffect as b, useMemo as x, useRef as S, useState as C } from "react";
23
+ import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
24
24
  //#region lib/components/layout/toolbar/SearchTool.tsx
25
25
  var ne = () => {
26
- let { searchIcon: e } = l(), { searchIcon: t } = s();
27
- return e ?? t ?? /* @__PURE__ */ w(p, {});
28
- }, re = () => {
29
- let { searchClearIcon: e } = l(), { searchClearIcon: t } = s();
30
- return e ?? t ?? /* @__PURE__ */ w(g, {});
31
- }, E = ({ icon: s }) => {
32
- let { container: l } = t(), [g, E] = S(!1), { pdf: D } = e(), [O, k] = S(null), { searchOptions: A, setSearchOptions: j, loading: ie, setSearch: M, totalMatches: N, currentMatchPosition: P, nextMatch: F, prevMatch: I, search: L } = i(), { searchTool: R = !0 } = n(), { searchTool: z = !0 } = r(), [B, V] = S(L), { localeMessages: H } = a(), { isSmallScreen: U } = te(), [W, G] = S(null), [K, q] = S(!1), J = y(() => {
33
- E(!0);
34
- }, []), Y = y(() => {
35
- M(""), V(""), E(!1);
36
- }, [M]), X = (e) => {
26
+ let { searchIcon: e } = l(), { searchIcon: t } = o();
27
+ return e ?? t ?? /* @__PURE__ */ T(p, {});
28
+ }, D = () => {
29
+ let { searchClearIcon: e } = l(), { searchClearIcon: t } = o();
30
+ return e ?? t ?? /* @__PURE__ */ T(g, {});
31
+ }, O = ({ icon: o }) => {
32
+ let { container: l } = t(), [g, O] = C(!1), k = S(g);
33
+ k.current = g;
34
+ let { pdf: A } = e(), [j, re] = C(null), { searchOptions: M, setSearchOptions: N, loading: ie, setSearch: P, totalMatches: F, currentMatchPosition: I, nextMatch: L, prevMatch: R, search: z } = i(), { searchTool: B = !0 } = n(), { searchTool: V = !0 } = r(), [H, U] = C(z), { localeMessages: W } = a(), { isSmallScreen: G } = te(), [K, q] = C(null), [J, ae] = C(!1), oe = y(() => {
35
+ k.current && (P(""), U("")), O((e) => !e);
36
+ }, [P]), Y = y(() => {
37
+ P(""), U(""), O(!1);
38
+ }, [P]), X = (e) => {
37
39
  let t = e.key === "Enter", n = e.key === " ";
38
40
  (t || n) && Y();
39
41
  }, Z = y((e) => {
40
42
  e.key === "Escape" && g && Y();
41
- }, [g]), ae = y((e) => {
42
- e.shiftKey && e.key === "Enter" ? I() : e.key === "Enter" && L !== B ? M(B) : e.key === "Enter" && F();
43
+ }, [g]), se = y((e) => {
44
+ e.shiftKey && e.key === "Enter" ? R() : e.key === "Enter" && z !== H ? P(H) : e.key === "Enter" && L();
43
45
  }, [
44
- B,
45
- I,
46
- F,
47
- M,
48
- L
46
+ H,
47
+ R,
48
+ L,
49
+ P,
50
+ z
49
51
  ]);
50
52
  b(() => {
51
- V(L);
52
- }, [L]), b(() => {
53
- L && D && q(!0);
54
- }, [L, D]), b(() => {
55
- L && L.trim() !== "" && (V(L), M(L));
53
+ U(z);
54
+ }, [z]), b(() => {
55
+ z && A && ae(!0);
56
+ }, [z, A]), b(() => {
57
+ z && z.trim() !== "" && (U(z), P(z));
56
58
  }, []), b(() => (window.addEventListener("keydown", Z), () => {
57
59
  window.removeEventListener("keydown", Z);
58
60
  }), [Z]), b(() => {
59
- O && setTimeout(() => {
60
- O.focus();
61
+ j && setTimeout(() => {
62
+ j.focus();
61
63
  }, 0);
62
- }, [O]);
63
- let oe = y((e) => {
64
- V(e.target.value);
64
+ }, [j]);
65
+ let ce = y((e) => {
66
+ U(e.target.value);
65
67
  }, []), Q = y(() => {
66
- V(""), M("");
67
- }, [M]), se = x(() => `${P} / ${N}`, [P, N]), { wholeWords: ce, matchCase: le } = x(() => A, [A]), ue = y((e) => {
68
- j((t) => ({
68
+ U(""), P("");
69
+ }, [P]), le = x(() => `${I} / ${F}`, [I, F]), { wholeWords: ue, matchCase: de } = x(() => M, [M]), fe = y((e) => {
70
+ N((t) => ({
69
71
  ...t,
70
72
  matchCase: e
71
73
  }));
72
- }, [j]), de = y((e) => {
73
- j((t) => ({
74
+ }, [N]), pe = y((e) => {
75
+ N((t) => ({
74
76
  ...t,
75
77
  wholeWords: e
76
78
  }));
77
- }, [j]);
79
+ }, [N]);
78
80
  b(() => {
79
- D && K && Y();
80
- }, [D, Y]);
81
- let $ = x(() => W?.querySelectorAll("[tabindex]:not([tabindex=\"-1\"])") || [], [W]), fe = y((e) => {
81
+ A && J && Y();
82
+ }, [A, Y]);
83
+ let $ = x(() => K?.querySelectorAll("[tabindex]:not([tabindex=\"-1\"])") || [], [K]), me = y((e) => {
82
84
  if (e.key === "Tab") {
83
85
  let t = document.activeElement, n = -1;
84
86
  $.forEach((e, r) => {
@@ -97,125 +99,125 @@ var ne = () => {
97
99
  }
98
100
  }
99
101
  }, [$]);
100
- return !R || !z ? null : /* @__PURE__ */ w(C, { children: /* @__PURE__ */ w(d, {
102
+ return !B || !V ? null : /* @__PURE__ */ T(w, { children: /* @__PURE__ */ T(d, {
101
103
  open: g,
102
104
  container: l,
103
105
  side: "bottom",
104
106
  align: "start",
105
107
  tabIndex: 0,
106
108
  avoidCollisions: !1,
107
- triggerComponent: /* @__PURE__ */ w(u, {
108
- content: H?.searchButtonTooltip,
109
- children: /* @__PURE__ */ w(c, {
109
+ triggerComponent: /* @__PURE__ */ T(u, {
110
+ content: W?.searchButtonTooltip,
111
+ children: /* @__PURE__ */ T(s, {
110
112
  active: g,
111
- onClick: J,
112
- "aria-label": H?.searchButtonTooltip,
113
+ onClick: oe,
114
+ "aria-label": W?.searchButtonTooltip,
113
115
  "aria-expanded": g,
114
116
  "aria-haspopup": "dialog",
115
- children: s || /* @__PURE__ */ w(ne, {})
117
+ children: o || /* @__PURE__ */ T(ne, {})
116
118
  })
117
119
  }),
118
- children: /* @__PURE__ */ T("div", {
119
- ref: G,
120
+ children: /* @__PURE__ */ E("div", {
121
+ ref: q,
120
122
  className: m["rp-search-tool-content"],
121
123
  tabIndex: -1,
122
- onKeyDown: fe,
124
+ onKeyDown: me,
123
125
  role: "dialog",
124
- "aria-label": H?.searchInputTooltip || "Search dialog",
125
- children: [/* @__PURE__ */ T("div", {
126
+ "aria-label": W?.searchInputTooltip || "Search dialog",
127
+ children: [/* @__PURE__ */ E("div", {
126
128
  className: m["rp-search-tool-input-wrapper"],
127
- children: [/* @__PURE__ */ T("div", {
129
+ children: [/* @__PURE__ */ E("div", {
128
130
  className: m["rp-search-tool-input"],
129
131
  children: [
130
- /* @__PURE__ */ w(u, {
131
- content: H?.searchInputTooltip,
132
- children: /* @__PURE__ */ w(ee, {
133
- value: B,
134
- onKeyDown: ae,
135
- onChange: oe,
136
- icon: /* @__PURE__ */ w(p, {}),
137
- placeholder: H?.searchInputPlaceholder,
132
+ /* @__PURE__ */ T(u, {
133
+ content: W?.searchInputTooltip,
134
+ children: /* @__PURE__ */ T(c, {
135
+ value: H,
136
+ onKeyDown: se,
137
+ onChange: ce,
138
+ icon: /* @__PURE__ */ T(p, {}),
139
+ placeholder: W?.searchInputPlaceholder,
138
140
  className: m["rp-search-input"],
139
- ref: k,
141
+ ref: re,
140
142
  id: "search-input",
141
143
  name: "search-input",
142
144
  tabIndex: 0,
143
- "aria-label": H?.searchInputTooltip || H?.searchInputPlaceholder,
145
+ "aria-label": W?.searchInputTooltip || W?.searchInputPlaceholder,
144
146
  "aria-describedby": "search-results-count",
145
- children: !!B && /* @__PURE__ */ w("span", {
147
+ children: !!H && /* @__PURE__ */ T("span", {
146
148
  className: m["rp-search-tool-input-clear"],
147
149
  onClick: Q,
148
150
  role: "button",
149
151
  tabIndex: 0,
150
- "aria-label": H?.searchCloseButtonTooltip || "Clear search",
152
+ "aria-label": W?.searchCloseButtonTooltip || "Clear search",
151
153
  onKeyDown: (e) => {
152
154
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), Q());
153
155
  },
154
- children: /* @__PURE__ */ w(re, {})
156
+ children: /* @__PURE__ */ T(D, {})
155
157
  })
156
158
  })
157
159
  }),
158
- ie ? /* @__PURE__ */ w("span", {
160
+ ie ? /* @__PURE__ */ T("span", {
159
161
  "aria-live": "polite",
160
162
  "aria-label": "Searching",
161
- children: /* @__PURE__ */ w(o, {
163
+ children: /* @__PURE__ */ T(ee, {
162
164
  className: m["rp-search-loader-icon"],
163
165
  "aria-hidden": "true"
164
166
  })
165
- }) : /* @__PURE__ */ w("span", {
167
+ }) : /* @__PURE__ */ T("span", {
166
168
  id: "search-results-count",
167
169
  "aria-live": "polite",
168
- children: se
170
+ children: le
169
171
  }),
170
- U && /* @__PURE__ */ w("div", {
172
+ G && /* @__PURE__ */ T("div", {
171
173
  className: m["rp-search-tool-controls"],
172
- children: /* @__PURE__ */ w(v, {
174
+ children: /* @__PURE__ */ T(v, {
173
175
  onKeyPress: X,
174
176
  handleClose: Y
175
177
  })
176
178
  })
177
179
  ]
178
- }), /* @__PURE__ */ T("div", {
180
+ }), /* @__PURE__ */ E("div", {
179
181
  className: m["rp-search-tool-input-checkboxes"],
180
182
  children: [
181
- U && /* @__PURE__ */ w(_, {}),
182
- /* @__PURE__ */ w(h, {
183
+ G && /* @__PURE__ */ T(_, {}),
184
+ /* @__PURE__ */ T(h, {
183
185
  tabIndex: 0,
184
186
  name: "matchCase",
185
- value: le,
186
- onChange: ue,
187
- "aria-label": H?.searchMatchCaseLabel,
188
- children: H?.searchMatchCaseLabel
187
+ value: de,
188
+ onChange: fe,
189
+ "aria-label": W?.searchMatchCaseLabel,
190
+ children: W?.searchMatchCaseLabel
189
191
  }),
190
- !U && /* @__PURE__ */ w(u, {
191
- content: H?.searchMatchCaseTooltip,
192
- children: /* @__PURE__ */ w("div", {
192
+ !G && /* @__PURE__ */ T(u, {
193
+ content: W?.searchMatchCaseTooltip,
194
+ children: /* @__PURE__ */ T("div", {
193
195
  className: m["rp-search-icon-info"],
194
196
  tabIndex: 0,
195
- children: /* @__PURE__ */ w(f, {})
197
+ children: /* @__PURE__ */ T(f, {})
196
198
  })
197
199
  }),
198
- /* @__PURE__ */ w(h, {
200
+ /* @__PURE__ */ T(h, {
199
201
  tabIndex: 0,
200
202
  name: "wholeWord",
201
- value: ce,
202
- onChange: de,
203
- "aria-label": H?.searchWholeWordsLabel,
204
- children: H?.searchWholeWordsLabel
203
+ value: ue,
204
+ onChange: pe,
205
+ "aria-label": W?.searchWholeWordsLabel,
206
+ children: W?.searchWholeWordsLabel
205
207
  }),
206
- !U && /* @__PURE__ */ w(u, {
207
- content: H?.searchWholeWordsTooltip,
208
- children: /* @__PURE__ */ w("div", {
208
+ !G && /* @__PURE__ */ T(u, {
209
+ content: W?.searchWholeWordsTooltip,
210
+ children: /* @__PURE__ */ T("div", {
209
211
  tabIndex: 0,
210
212
  className: m["rp-search-icon-info"],
211
- children: /* @__PURE__ */ w(f, {})
213
+ children: /* @__PURE__ */ T(f, {})
212
214
  })
213
215
  })
214
216
  ]
215
217
  })]
216
- }), !U && /* @__PURE__ */ T("div", {
218
+ }), !G && /* @__PURE__ */ E("div", {
217
219
  className: m["rp-search-tool-controls"],
218
- children: [/* @__PURE__ */ w(_, {}), /* @__PURE__ */ w(v, {
220
+ children: [/* @__PURE__ */ T(_, {}), /* @__PURE__ */ T(v, {
219
221
  onKeyPress: X,
220
222
  handleClose: Y
221
223
  })]
@@ -224,4 +226,4 @@ var ne = () => {
224
226
  }) });
225
227
  };
226
228
  //#endregion
227
- export { E as SearchTool };
229
+ export { O as SearchTool };
package/dist/icons.js ADDED
@@ -0,0 +1,32 @@
1
+ import { t as e } from "./LoaderIcon-D9YjinGf.js";
2
+ import { ChevronUpIcon as t } from "./components/icons/ChevronUpIcon.js";
3
+ import { FileUploadDefaultIcon as n } from "./components/icons/FileUploadDefaultIcon.js";
4
+ import { MoonIcon as r } from "./components/icons/MoonIcon.js";
5
+ import { SunIcon as i } from "./components/icons/SunIcon.js";
6
+ import { ThreeDotIcon as a } from "./components/icons/ThreeDotIcon.js";
7
+ import { CloseIcon as o } from "./components/icons/CloseIcon.js";
8
+ import { InfoIcon as s } from "./components/icons/InfoIcon.js";
9
+ import { ClockwiseIcon as c } from "./components/icons/ClockwiseIcon.js";
10
+ import { DualPageIcon as l } from "./components/icons/DualPageIcon.js";
11
+ import { DualPageWithCoverIcon as u } from "./components/icons/DualPageWithCoverIcon.js";
12
+ import { SinglePageIcon as d } from "./components/icons/SinglePageIcon.js";
13
+ import { CheckIcon as f } from "./components/icons/CheckIcon.js";
14
+ import { PageScrollingIcon as p } from "./components/icons/PageScrollingIcon.js";
15
+ import { VerticalScrollingIcon as m } from "./components/icons/VerticalScrollingIcon.js";
16
+ import { HorizontalScrollingIcon as h } from "./components/icons/HorizontalScrollingIcon.js";
17
+ import { FileDownloadDefaultIcon as g } from "./components/icons/FileDownloadDefaultIcon.js";
18
+ import { PrintDefaultTool as _ } from "./components/icons/PrintDefaultIcon.js";
19
+ import { FullScreenIcon as v } from "./components/icons/FullScreenIcon.js";
20
+ import { GoToDownIcon as y } from "./components/icons/GoToDownIcon.js";
21
+ import { TextSelectionDefaultIcon as b } from "./components/icons/TextSelectionDefaultIcon.js";
22
+ import { HandModeDefaultIcon as x } from "./components/icons/HandModeDefaultIcon.js";
23
+ import { ZoomInIcon as S } from "./components/icons/ZoomInIcon.js";
24
+ import { ZoomOutIcon as C } from "./components/icons/ZoomOutIcon.js";
25
+ import { SearchIcon as w } from "./components/icons/SearchIcon.js";
26
+ import { ClearIcon as T } from "./components/icons/ClearIcon.js";
27
+ import { ThumbnailIcon as E } from "./components/icons/Thumbnail.js";
28
+ import { t as D } from "./LightPdfIcon-DL8MYtWQ.js";
29
+ import { t as O } from "./DarkPdfIcon-B5ehd9CV.js";
30
+ import { ChevronDownIcon as k } from "./components/icons/ChevronDownIcon.js";
31
+ import { WrappedScrollingIcon as A } from "./components/icons/WrappedScrollingIcon.js";
32
+ export { f as RPIconCheck, k as RPIconChevronDown, t as RPIconChevronUp, T as RPIconClear, c as RPIconClockwise, o as RPIconClose, O as RPIconDarkPdf, l as RPIconDualPage, u as RPIconDualPageWithCover, g as RPIconFileDownloadDefault, n as RPIconFileUploadDefault, v as RPIconFullScreen, y as RPIconGoToDown, x as RPIconHandModeDefault, h as RPIconHorizontalScrolling, s as RPIconInfo, D as RPIconLightPdf, e as RPIconLoader, r as RPIconMoon, p as RPIconPageScrolling, _ as RPIconPrintDefault, w as RPIconSearch, d as RPIconSinglePage, i as RPIconSun, b as RPIconTextSelectionDefault, a as RPIconThreeDot, E as RPIconThumbnail, m as RPIconVerticalScrolling, A as RPIconWrappedScrolling, S as RPIconZoomIn, C as RPIconZoomOut };
@@ -0,0 +1,31 @@
1
+ export { CheckIcon as RPIconCheck } from './components/icons/CheckIcon';
2
+ export { ChevronDownIcon as RPIconChevronDown } from './components/icons/ChevronDownIcon';
3
+ export { ChevronUpIcon as RPIconChevronUp } from './components/icons/ChevronUpIcon';
4
+ export { ClearIcon as RPIconClear } from './components/icons/ClearIcon';
5
+ export { ClockwiseIcon as RPIconClockwise } from './components/icons/ClockwiseIcon';
6
+ export { CloseIcon as RPIconClose } from './components/icons/CloseIcon';
7
+ export { DarkPdfIcon as RPIconDarkPdf } from './components/icons/DarkPdfIcon';
8
+ export { DualPageIcon as RPIconDualPage } from './components/icons/DualPageIcon';
9
+ export { DualPageWithCoverIcon as RPIconDualPageWithCover } from './components/icons/DualPageWithCoverIcon';
10
+ export { FileDownloadDefaultIcon as RPIconFileDownloadDefault } from './components/icons/FileDownloadDefaultIcon';
11
+ export { FileUploadDefaultIcon as RPIconFileUploadDefault } from './components/icons/FileUploadDefaultIcon';
12
+ export { FullScreenIcon as RPIconFullScreen } from './components/icons/FullScreenIcon';
13
+ export { GoToDownIcon as RPIconGoToDown } from './components/icons/GoToDownIcon';
14
+ export { HandModeDefaultIcon as RPIconHandModeDefault } from './components/icons/HandModeDefaultIcon';
15
+ export { HorizontalScrollingIcon as RPIconHorizontalScrolling } from './components/icons/HorizontalScrollingIcon';
16
+ export { InfoIcon as RPIconInfo } from './components/icons/InfoIcon';
17
+ export { LightPdfIcon as RPIconLightPdf } from './components/icons/LightPdfIcon';
18
+ export { LoaderIcon as RPIconLoader } from './components/icons/LoaderIcon';
19
+ export { MoonIcon as RPIconMoon } from './components/icons/MoonIcon';
20
+ export { PageScrollingIcon as RPIconPageScrolling } from './components/icons/PageScrollingIcon';
21
+ export { PrintDefaultTool as RPIconPrintDefault } from './components/icons/PrintDefaultIcon';
22
+ export { SearchIcon as RPIconSearch } from './components/icons/SearchIcon';
23
+ export { SinglePageIcon as RPIconSinglePage } from './components/icons/SinglePageIcon';
24
+ export { SunIcon as RPIconSun } from './components/icons/SunIcon';
25
+ export { TextSelectionDefaultIcon as RPIconTextSelectionDefault } from './components/icons/TextSelectionDefaultIcon';
26
+ export { ThreeDotIcon as RPIconThreeDot } from './components/icons/ThreeDotIcon';
27
+ export { ThumbnailIcon as RPIconThumbnail } from './components/icons/Thumbnail';
28
+ export { VerticalScrollingIcon as RPIconVerticalScrolling } from './components/icons/VerticalScrollingIcon';
29
+ export { WrappedScrollingIcon as RPIconWrappedScrolling } from './components/icons/WrappedScrollingIcon';
30
+ export { ZoomInIcon as RPIconZoomIn } from './components/icons/ZoomInIcon';
31
+ export { ZoomOutIcon as RPIconZoomOut } from './components/icons/ZoomOutIcon';
@@ -3,7 +3,7 @@ import { LicenseType as t } from "../types.js";
3
3
  import { appConsole as n } from "../appConsole.js";
4
4
  import { useCallback as r, useEffect as i, useState as a } from "react";
5
5
  //#region lib/utils/hooks/useLicense.ts
6
- var o = /* @__PURE__ */ new Date("2026-05-14T05:10:23.147Z"), s = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvIokvErJ0Fctu0jduSAx\ngr+5Har/VSuZLlOunS28hnlqqA+OF1apHL7RYkjBosS15yvviYdLrVWYHpHnoY4b\nHLQ9I6YX6FMB9T/VbB4xLdVdKvfi8r49aTScl5EKuSpgpPgz2VSJTfvVGcRuth/Y\nBm7PPGYdL2l2gvKDxchmmsHFPukGki9L4JOUeIVX0GXAxabENckaEH/iC1NZhX+W\nvXnpHeHuIIKlZ16LSivXNgo6BH2Z3GFdg4G3cAaXr6qNP8fsacYNqv2SpTW1viFD\nvzcGRabN25gpJAp9/syeScefWH3OiJY1lmw88oTiJbjIoiq6AkPhfn3G9mF54nvR\nkwIDAQAB\n-----END PUBLIC KEY-----", c = "Please visit https://app.react-pdf-kit.dev to generate a new license key.", l = {
6
+ var o = /* @__PURE__ */ new Date("2026-05-15T05:12:06.096Z"), s = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvIokvErJ0Fctu0jduSAx\ngr+5Har/VSuZLlOunS28hnlqqA+OF1apHL7RYkjBosS15yvviYdLrVWYHpHnoY4b\nHLQ9I6YX6FMB9T/VbB4xLdVdKvfi8r49aTScl5EKuSpgpPgz2VSJTfvVGcRuth/Y\nBm7PPGYdL2l2gvKDxchmmsHFPukGki9L4JOUeIVX0GXAxabENckaEH/iC1NZhX+W\nvXnpHeHuIIKlZ16LSivXNgo6BH2Z3GFdg4G3cAaXr6qNP8fsacYNqv2SpTW1viFD\nvzcGRabN25gpJAp9/syeScefWH3OiJY1lmw88oTiJbjIoiq6AkPhfn3G9mF54nvR\nkwIDAQAB\n-----END PUBLIC KEY-----", c = "Please visit https://app.react-pdf-kit.dev to generate a new license key.", l = {
7
7
  invalidLicense: `You are currently using without a valid license. ${c}`,
8
8
  mismatchedDomain: `Your license key is not valid for the current domain / IP. ${c}`,
9
9
  expired: `Your license key has expired. ${c}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pdf-kit/viewer",
3
- "version": "2.6.0-rc.0",
3
+ "version": "2.7.0-beta.0",
4
4
  "private": false,
5
5
  "description": "A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.",
6
6
  "keywords": [
@@ -22,6 +22,17 @@
22
22
  "type": "module",
23
23
  "main": "dist/main.js",
24
24
  "types": "dist/types/main.d.ts",
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/types/main.d.ts",
28
+ "import": "./dist/main.js"
29
+ },
30
+ "./icons": {
31
+ "types": "./dist/types/icons.d.ts",
32
+ "import": "./dist/icons.js"
33
+ },
34
+ "./*": "./*"
35
+ },
25
36
  "directories": {
26
37
  "lib": "lib"
27
38
  },