@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.
- package/dist/components/layout/toolbar/SearchTool.js +100 -98
- package/dist/icons.js +32 -0
- package/dist/types/icons.d.ts +31 -0
- package/dist/utils/hooks/useLicense.js +1 -1
- package/package.json +12 -1
|
@@ -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
|
|
8
|
-
import { useIconToolContext as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
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,
|
|
23
|
-
import { Fragment as
|
|
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 } =
|
|
27
|
-
return e ?? t ?? /* @__PURE__ */
|
|
28
|
-
},
|
|
29
|
-
let { searchClearIcon: e } = l(), { searchClearIcon: t } =
|
|
30
|
-
return e ?? t ?? /* @__PURE__ */
|
|
31
|
-
},
|
|
32
|
-
let { container: l } = t(), [g,
|
|
33
|
-
|
|
34
|
-
}, []),
|
|
35
|
-
|
|
36
|
-
}, [
|
|
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]),
|
|
42
|
-
e.shiftKey && e.key === "Enter" ?
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
H,
|
|
47
|
+
R,
|
|
48
|
+
L,
|
|
49
|
+
P,
|
|
50
|
+
z
|
|
49
51
|
]);
|
|
50
52
|
b(() => {
|
|
51
|
-
|
|
52
|
-
}, [
|
|
53
|
-
|
|
54
|
-
}, [
|
|
55
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
+
j && setTimeout(() => {
|
|
62
|
+
j.focus();
|
|
61
63
|
}, 0);
|
|
62
|
-
}, [
|
|
63
|
-
let
|
|
64
|
-
|
|
64
|
+
}, [j]);
|
|
65
|
+
let ce = y((e) => {
|
|
66
|
+
U(e.target.value);
|
|
65
67
|
}, []), Q = y(() => {
|
|
66
|
-
|
|
67
|
-
}, [
|
|
68
|
-
|
|
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
|
-
}, [
|
|
73
|
-
|
|
74
|
+
}, [N]), pe = y((e) => {
|
|
75
|
+
N((t) => ({
|
|
74
76
|
...t,
|
|
75
77
|
wholeWords: e
|
|
76
78
|
}));
|
|
77
|
-
}, [
|
|
79
|
+
}, [N]);
|
|
78
80
|
b(() => {
|
|
79
|
-
|
|
80
|
-
}, [
|
|
81
|
-
let $ = x(() =>
|
|
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 !
|
|
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__ */
|
|
108
|
-
content:
|
|
109
|
-
children: /* @__PURE__ */
|
|
109
|
+
triggerComponent: /* @__PURE__ */ T(u, {
|
|
110
|
+
content: W?.searchButtonTooltip,
|
|
111
|
+
children: /* @__PURE__ */ T(s, {
|
|
110
112
|
active: g,
|
|
111
|
-
onClick:
|
|
112
|
-
"aria-label":
|
|
113
|
+
onClick: oe,
|
|
114
|
+
"aria-label": W?.searchButtonTooltip,
|
|
113
115
|
"aria-expanded": g,
|
|
114
116
|
"aria-haspopup": "dialog",
|
|
115
|
-
children:
|
|
117
|
+
children: o || /* @__PURE__ */ T(ne, {})
|
|
116
118
|
})
|
|
117
119
|
}),
|
|
118
|
-
children: /* @__PURE__ */
|
|
119
|
-
ref:
|
|
120
|
+
children: /* @__PURE__ */ E("div", {
|
|
121
|
+
ref: q,
|
|
120
122
|
className: m["rp-search-tool-content"],
|
|
121
123
|
tabIndex: -1,
|
|
122
|
-
onKeyDown:
|
|
124
|
+
onKeyDown: me,
|
|
123
125
|
role: "dialog",
|
|
124
|
-
"aria-label":
|
|
125
|
-
children: [/* @__PURE__ */
|
|
126
|
+
"aria-label": W?.searchInputTooltip || "Search dialog",
|
|
127
|
+
children: [/* @__PURE__ */ E("div", {
|
|
126
128
|
className: m["rp-search-tool-input-wrapper"],
|
|
127
|
-
children: [/* @__PURE__ */
|
|
129
|
+
children: [/* @__PURE__ */ E("div", {
|
|
128
130
|
className: m["rp-search-tool-input"],
|
|
129
131
|
children: [
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
content:
|
|
132
|
-
children: /* @__PURE__ */
|
|
133
|
-
value:
|
|
134
|
-
onKeyDown:
|
|
135
|
-
onChange:
|
|
136
|
-
icon: /* @__PURE__ */
|
|
137
|
-
placeholder:
|
|
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:
|
|
141
|
+
ref: re,
|
|
140
142
|
id: "search-input",
|
|
141
143
|
name: "search-input",
|
|
142
144
|
tabIndex: 0,
|
|
143
|
-
"aria-label":
|
|
145
|
+
"aria-label": W?.searchInputTooltip || W?.searchInputPlaceholder,
|
|
144
146
|
"aria-describedby": "search-results-count",
|
|
145
|
-
children: !!
|
|
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":
|
|
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__ */
|
|
156
|
+
children: /* @__PURE__ */ T(D, {})
|
|
155
157
|
})
|
|
156
158
|
})
|
|
157
159
|
}),
|
|
158
|
-
ie ? /* @__PURE__ */
|
|
160
|
+
ie ? /* @__PURE__ */ T("span", {
|
|
159
161
|
"aria-live": "polite",
|
|
160
162
|
"aria-label": "Searching",
|
|
161
|
-
children: /* @__PURE__ */
|
|
163
|
+
children: /* @__PURE__ */ T(ee, {
|
|
162
164
|
className: m["rp-search-loader-icon"],
|
|
163
165
|
"aria-hidden": "true"
|
|
164
166
|
})
|
|
165
|
-
}) : /* @__PURE__ */
|
|
167
|
+
}) : /* @__PURE__ */ T("span", {
|
|
166
168
|
id: "search-results-count",
|
|
167
169
|
"aria-live": "polite",
|
|
168
|
-
children:
|
|
170
|
+
children: le
|
|
169
171
|
}),
|
|
170
|
-
|
|
172
|
+
G && /* @__PURE__ */ T("div", {
|
|
171
173
|
className: m["rp-search-tool-controls"],
|
|
172
|
-
children: /* @__PURE__ */
|
|
174
|
+
children: /* @__PURE__ */ T(v, {
|
|
173
175
|
onKeyPress: X,
|
|
174
176
|
handleClose: Y
|
|
175
177
|
})
|
|
176
178
|
})
|
|
177
179
|
]
|
|
178
|
-
}), /* @__PURE__ */
|
|
180
|
+
}), /* @__PURE__ */ E("div", {
|
|
179
181
|
className: m["rp-search-tool-input-checkboxes"],
|
|
180
182
|
children: [
|
|
181
|
-
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
+
G && /* @__PURE__ */ T(_, {}),
|
|
184
|
+
/* @__PURE__ */ T(h, {
|
|
183
185
|
tabIndex: 0,
|
|
184
186
|
name: "matchCase",
|
|
185
|
-
value:
|
|
186
|
-
onChange:
|
|
187
|
-
"aria-label":
|
|
188
|
-
children:
|
|
187
|
+
value: de,
|
|
188
|
+
onChange: fe,
|
|
189
|
+
"aria-label": W?.searchMatchCaseLabel,
|
|
190
|
+
children: W?.searchMatchCaseLabel
|
|
189
191
|
}),
|
|
190
|
-
!
|
|
191
|
-
content:
|
|
192
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
197
|
+
children: /* @__PURE__ */ T(f, {})
|
|
196
198
|
})
|
|
197
199
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ T(h, {
|
|
199
201
|
tabIndex: 0,
|
|
200
202
|
name: "wholeWord",
|
|
201
|
-
value:
|
|
202
|
-
onChange:
|
|
203
|
-
"aria-label":
|
|
204
|
-
children:
|
|
203
|
+
value: ue,
|
|
204
|
+
onChange: pe,
|
|
205
|
+
"aria-label": W?.searchWholeWordsLabel,
|
|
206
|
+
children: W?.searchWholeWordsLabel
|
|
205
207
|
}),
|
|
206
|
-
!
|
|
207
|
-
content:
|
|
208
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
213
|
+
children: /* @__PURE__ */ T(f, {})
|
|
212
214
|
})
|
|
213
215
|
})
|
|
214
216
|
]
|
|
215
217
|
})]
|
|
216
|
-
}), !
|
|
218
|
+
}), !G && /* @__PURE__ */ E("div", {
|
|
217
219
|
className: m["rp-search-tool-controls"],
|
|
218
|
-
children: [/* @__PURE__ */
|
|
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 {
|
|
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-
|
|
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.
|
|
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
|
},
|