@react-pdf-kit/viewer 2.7.0 → 2.8.0-beta.1
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/{AnnotationLayer-D6BfL976.js → AnnotationLayer-C6UTOVmc.js} +1 -1
- package/dist/{Button-jStpvb3T.js → Button-DBu3SaMk.js} +3 -3
- package/dist/{Checkbox-Brta-YKG.js → Checkbox-CSIEUyO8.js} +4 -4
- package/dist/{Combination-DqNkTtir.js → Combination-11kyhTGt.js} +15 -15
- package/dist/Container-BuamPhw4.js +18 -0
- package/dist/{DocumentDialog-DHAWcYIz.js → DocumentDialog-cRr9sSSH.js} +10 -10
- package/dist/{DropDown-DikL-krI.js → DropDown-CM6xEwZC.js} +2 -2
- package/dist/{Input-DGJSVFE8.js → Input-Dpo1Xfxe.js} +5 -5
- package/dist/{LoaderIcon-D9YjinGf.js → LoaderIcon-B3ddfd0D.js} +1 -1
- package/dist/{LoadingIndicator-DiWoWs4Y.js → LoadingIndicator-Bzzf28Xv.js} +1 -1
- package/dist/{MenuItem-BJDWfzAw.js → MenuItem-9kCH_GQ0.js} +2 -2
- package/dist/{MenuSeparator-D1H5l8Ej.js → MenuSeparator-CaFxd8b5.js} +1 -1
- package/dist/{PaginationContext--n91mIJ4.js → PaginationContext-C5CJiEW-.js} +76 -66
- package/dist/{PasswordModal-CA6x2l7v.js → PasswordModal-BeLyLUsu.js} +12 -11
- package/dist/{RPDropFileZone-D1C3ouep.js → RPDropFileZone-Bq1bzWmO.js} +1 -1
- package/dist/{RPPage-BuSGUFzw.js → RPPage-BsDixmqF.js} +1 -1
- package/dist/{RPPages-CQsmCbyj.js → RPPages-Cf-FDd0a.js} +12 -12
- package/dist/{RPTooltip-ZZoFqP7C.js → RPTooltip-CXBVXusS.js} +4 -4
- package/dist/{SkipLink-Bvbn3miT.js → SkipLink-CdcjClGB.js} +1 -1
- package/dist/{Thumbnail-Dwo2-4Ki.js → Thumbnail-BO3QHzxR.js} +3 -3
- package/dist/{Thumbnails-ComClyJJ.js → Thumbnails-DyeBsQJT.js} +2 -2
- package/dist/assets/Button.css +1 -1
- package/dist/assets/DocumentDialog.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/PasswordModal.css +1 -1
- package/dist/assets/SkipLink.css +1 -1
- package/dist/assets/style.js +1 -1
- package/dist/{clsx-B7LyVm5O.js → clsx-DSGuh5YW.js} +1 -1
- package/dist/components/RPController.js +1 -1
- package/dist/components/RPDropFileZone.js +1 -1
- package/dist/components/RPPages.js +1 -1
- package/dist/components/RPProvider.js +1 -1
- package/dist/components/icons/LoaderIcon.js +1 -1
- package/dist/components/layout/Container.js +1 -1
- package/dist/components/layout/LayoutContainer.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +3 -3
- package/dist/components/layout/RPLayout.js +3 -3
- package/dist/components/layout/SkipLink.js +1 -1
- package/dist/components/layout/sidebar/RPSidebar.js +3 -3
- package/dist/components/layout/sidebar/Thumbnail.js +1 -1
- package/dist/components/layout/sidebar/Thumbnails.js +1 -1
- package/dist/components/layout/toolbar/DarkModeTool.js +2 -2
- package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
- package/dist/components/layout/toolbar/DocumentProperties.js +3 -3
- package/dist/components/layout/toolbar/FileDownloadTool.js +3 -3
- package/dist/components/layout/toolbar/FileUploadTool.js +3 -3
- package/dist/components/layout/toolbar/FullScreenTool.js +3 -3
- package/dist/components/layout/toolbar/MenuItem.js +1 -1
- package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
- package/dist/components/layout/toolbar/MostPageTool.js +5 -5
- package/dist/components/layout/toolbar/OtherTool.js +6 -6
- package/dist/components/layout/toolbar/Paginate.js +4 -4
- package/dist/components/layout/toolbar/PrintTool.js +3 -3
- package/dist/components/layout/toolbar/RPMenuItem.js +3 -3
- package/dist/components/layout/toolbar/RPMoreOptions.js +6 -6
- package/dist/components/layout/toolbar/RPToolbar.js +1 -1
- package/dist/components/layout/toolbar/RotateTool.js +4 -4
- package/dist/components/layout/toolbar/ScrollModeTool.js +3 -3
- package/dist/components/layout/toolbar/SearchCloseButton.js +2 -2
- package/dist/components/layout/toolbar/SearchResultNavigator.js +2 -2
- package/dist/components/layout/toolbar/SearchTool.js +7 -6
- package/dist/components/layout/toolbar/SelectionModeTool.js +4 -4
- package/dist/components/layout/toolbar/ThumbnailTool.js +2 -2
- package/dist/components/layout/toolbar/ToolbarCustom.js +2 -2
- package/dist/components/layout/toolbar/ToolbarDefault.js +2 -2
- package/dist/components/layout/toolbar/ViewModeTool.js +4 -4
- package/dist/components/layout/toolbar/ZoomTool.js +7 -7
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +3 -3
- package/dist/components/layout/toolbar/tools/DualPageTool.js +2 -2
- package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +1 -1
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/FirstPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +2 -2
- package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +2 -2
- package/dist/components/layout/toolbar/tools/InputPageTool.js +4 -3
- package/dist/components/layout/toolbar/tools/LastPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/NextPageTool.js +3 -3
- package/dist/components/layout/toolbar/tools/PageScrollingTool.js +2 -2
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +3 -3
- package/dist/components/layout/toolbar/tools/PrintTool.js +2 -2
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +2 -2
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +2 -2
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +2 -2
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +2 -2
- package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +6 -6
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +5 -5
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +2 -2
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +4 -4
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +4 -4
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +4 -4
- package/dist/components/page/AnnotationLayer.js +1 -1
- package/dist/components/page/DualPage.js +2 -2
- package/dist/components/page/DualPageWithCover.js +2 -2
- package/dist/components/page/RPPage.js +1 -1
- package/dist/components/page/SinglePage.js +2 -2
- package/dist/components/ui/Button.js +1 -1
- package/dist/components/ui/Checkbox.js +1 -1
- package/dist/components/ui/DropDown.js +1 -1
- package/dist/components/ui/Input.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/PasswordModal.js +1 -1
- package/dist/components/ui/RPTooltip.js +1 -1
- package/dist/contexts/ElementThumbnailContext.js +1 -1
- package/dist/contexts/LoaderContext.js +1 -1
- package/dist/contexts/LocalizationContext.js +12 -6
- package/dist/contexts/PaginationContext.js +1 -1
- package/dist/contexts/RenderQueueProvider.js +1 -1
- package/dist/{dist-7FA4Do6I.js → dist-B2hwhF6G.js} +7 -7
- package/dist/{dist-BRVqFn7R.js → dist-BfuBBQ14.js} +6 -6
- package/dist/{dist-C3WNMuW2.js → dist-CNbFpoT1.js} +2 -2
- package/dist/{dist-bK-AHWLF.js → dist-CgoP608h.js} +7 -7
- package/dist/{dist-CKteKPPA.js → dist-VbpVNBs6.js} +7 -7
- package/dist/icons.js +1 -1
- package/dist/{lib-BiapEtK1.js → lib-CSInlR9T.js} +142 -237
- package/dist/{main-CHO5p1qM.js → main-0RC2E65p.js} +3 -3
- package/dist/main.js +5 -5
- package/dist/style-BPQRJJJ7.js +5 -0
- package/dist/types/utils/types.d.ts +1 -0
- package/dist/utils/hooks/useLicense.js +2 -2
- package/dist/utils/hooks/usePaginate.js +1 -1
- package/dist/utils/hooks/usePresentPage.js +1 -1
- package/dist/utils/hooks/useScrollToPage.js +1 -1
- package/dist/utils/hooks/useSearch.js +1 -1
- package/package.json +1 -1
- package/dist/Container-DTWaZzc7.js +0 -16
- package/dist/style-DKH7g1Kh.js +0 -5
|
@@ -2,7 +2,7 @@ import { AnnotationSubType as e } from "./utils/types.js";
|
|
|
2
2
|
import { useDocumentContext as t } from "./contexts/RPDocumentContext.js";
|
|
3
3
|
import { useInitialStateContext as n } from "./contexts/InitialStateContext.js";
|
|
4
4
|
import { useScrollModeContext as r } from "./contexts/ScrollModeContext.js";
|
|
5
|
-
import { r as i } from "./PaginationContext
|
|
5
|
+
import { r as i } from "./PaginationContext-C5CJiEW-.js";
|
|
6
6
|
import { usePrintContext as a } from "./contexts/PrintContext.js";
|
|
7
7
|
import { SimpleLinkService as o } from "./utils/link_service.js";
|
|
8
8
|
import { annotationEventsHandler as s, bindLayerEvents as c, enhanceLinkAccessibility as l, fixTabIndexAccessibility as u, handleAnnotationWidget as d, insertDateText as f, unbindLayerEvents as p } from "./utils/annotations.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-DSGuh5YW.js";
|
|
2
2
|
import { withRef as t } from "./utils/withRef.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
import './assets/Button.css';//#region lib/components/ui/Button.module.css
|
|
5
5
|
var r = {
|
|
6
|
-
"rp-button": "_rp-
|
|
7
|
-
"rp-button-active": "_rp-button-
|
|
6
|
+
"rp-button": "_rp-button_xxds9_1",
|
|
7
|
+
"rp-button-active": "_rp-button-active_xxds9_20"
|
|
8
8
|
}, i = t((t, i) => {
|
|
9
9
|
let { children: a, active: o, className: s, role: c, ...l } = t;
|
|
10
10
|
return /* @__PURE__ */ n("button", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as e, f as t, i as n, l as r, n as i, t as a } from "./dist-
|
|
2
|
-
import { t as o } from "./dist-
|
|
1
|
+
import { d as e, f as t, i as n, l as r, n as i, t as a } from "./dist-CgoP608h.js";
|
|
2
|
+
import { t as o } from "./dist-CNbFpoT1.js";
|
|
3
3
|
import { CheckIcon as s } from "./components/icons/CheckIcon.js";
|
|
4
4
|
import * as c from "react";
|
|
5
5
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
|
-
import './assets/Checkbox.css';//#region node_modules
|
|
6
|
+
import './assets/Checkbox.css';//#region node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
7
7
|
function f(e) {
|
|
8
8
|
let t = c.useRef({
|
|
9
9
|
value: e,
|
|
@@ -12,7 +12,7 @@ function f(e) {
|
|
|
12
12
|
return c.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
|
-
//#region node_modules
|
|
15
|
+
//#region node_modules/@radix-ui/react-checkbox/dist/index.mjs
|
|
16
16
|
var p = "Checkbox", [m, h] = r(p), [g, _] = m(p);
|
|
17
17
|
function v(e) {
|
|
18
18
|
let { __scopeCheckbox: t, checked: n, children: r, defaultChecked: i, disabled: o, form: s, name: l, onCheckedChange: d, required: f, value: m = "on", internal_do_not_use_render: h } = e, [_, v] = a({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as e, i as t } from "./dist-
|
|
2
|
-
import { i as n } from "./dist-
|
|
1
|
+
import { d as e, i as t } from "./dist-CgoP608h.js";
|
|
2
|
+
import { i as n } from "./dist-BfuBBQ14.js";
|
|
3
3
|
import * as r from "react";
|
|
4
4
|
import { useState as i } from "react";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
-
//#region node_modules
|
|
6
|
+
//#region node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
7
7
|
var o = 0;
|
|
8
8
|
function s() {
|
|
9
9
|
r.useEffect(() => {
|
|
@@ -18,7 +18,7 @@ function c() {
|
|
|
18
18
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region node_modules
|
|
21
|
+
//#region node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
22
22
|
var l = "focusScope.autoFocusOnMount", u = "focusScope.autoFocusOnUnmount", d = {
|
|
23
23
|
bubbles: !1,
|
|
24
24
|
cancelable: !0
|
|
@@ -157,7 +157,7 @@ function w(e) {
|
|
|
157
157
|
return e.filter((e) => e.tagName !== "A");
|
|
158
158
|
}
|
|
159
159
|
//#endregion
|
|
160
|
-
//#region node_modules
|
|
160
|
+
//#region node_modules/aria-hidden/dist/es2015/index.js
|
|
161
161
|
var T = function(e) {
|
|
162
162
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
163
163
|
}, E = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), O = {}, k = 0, A = function(e) {
|
|
@@ -217,15 +217,15 @@ function re(e, t, n) {
|
|
|
217
217
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
218
218
|
}
|
|
219
219
|
//#endregion
|
|
220
|
-
//#region node_modules
|
|
220
|
+
//#region node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
221
221
|
var N = "right-scroll-bar-position", P = "width-before-scroll-bar", ie = "with-scroll-bars-hidden", ae = "--removed-body-scroll-bar-size";
|
|
222
222
|
//#endregion
|
|
223
|
-
//#region node_modules
|
|
223
|
+
//#region node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
224
224
|
function F(e, t) {
|
|
225
225
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
226
226
|
}
|
|
227
227
|
//#endregion
|
|
228
|
-
//#region node_modules
|
|
228
|
+
//#region node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
229
229
|
function oe(e, t) {
|
|
230
230
|
var n = i(function() {
|
|
231
231
|
return {
|
|
@@ -245,7 +245,7 @@ function oe(e, t) {
|
|
|
245
245
|
return n.callback = t, n.facade;
|
|
246
246
|
}
|
|
247
247
|
//#endregion
|
|
248
|
-
//#region node_modules
|
|
248
|
+
//#region node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
249
249
|
var se = typeof window < "u" ? r.useLayoutEffect : r.useEffect, ce = /* @__PURE__ */ new WeakMap();
|
|
250
250
|
function le(e, t) {
|
|
251
251
|
var n = oe(t || null, function(t) {
|
|
@@ -267,7 +267,7 @@ function le(e, t) {
|
|
|
267
267
|
}, [e]), n;
|
|
268
268
|
}
|
|
269
269
|
//#endregion
|
|
270
|
-
//#region node_modules
|
|
270
|
+
//#region node_modules/use-sidecar/dist/es2015/medium.js
|
|
271
271
|
function ue(e) {
|
|
272
272
|
return e;
|
|
273
273
|
}
|
|
@@ -334,7 +334,7 @@ function fe(e) {
|
|
|
334
334
|
}, e), t;
|
|
335
335
|
}
|
|
336
336
|
//#endregion
|
|
337
|
-
//#region node_modules
|
|
337
|
+
//#region node_modules/use-sidecar/dist/es2015/exports.js
|
|
338
338
|
var I = function(e) {
|
|
339
339
|
var t = e.sideCar, n = M(e, ["sideCar"]);
|
|
340
340
|
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
@@ -347,7 +347,7 @@ function pe(e, t) {
|
|
|
347
347
|
return e.useMedium(t), I;
|
|
348
348
|
}
|
|
349
349
|
//#endregion
|
|
350
|
-
//#region node_modules
|
|
350
|
+
//#region node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
351
351
|
var L = fe(), R = function() {}, z = r.forwardRef(function(e, t) {
|
|
352
352
|
var n = r.useRef(null), i = r.useState({
|
|
353
353
|
onScrollCapture: R,
|
|
@@ -393,13 +393,13 @@ z.defaultProps = {
|
|
|
393
393
|
zeroRight: N
|
|
394
394
|
};
|
|
395
395
|
//#endregion
|
|
396
|
-
//#region node_modules
|
|
396
|
+
//#region node_modules/get-nonce/dist/es2015/index.js
|
|
397
397
|
var B, me = function() {
|
|
398
398
|
if (B) return B;
|
|
399
399
|
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
400
400
|
};
|
|
401
401
|
//#endregion
|
|
402
|
-
//#region node_modules
|
|
402
|
+
//#region node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
403
403
|
function he() {
|
|
404
404
|
if (!document) return null;
|
|
405
405
|
var e = document.createElement("style");
|
|
@@ -683,7 +683,7 @@ function Be(e) {
|
|
|
683
683
|
return t;
|
|
684
684
|
}
|
|
685
685
|
//#endregion
|
|
686
|
-
//#region node_modules
|
|
686
|
+
//#region node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
687
687
|
var Ve = pe(L, ze), He = r.forwardRef(function(e, t) {
|
|
688
688
|
return r.createElement(z, j({}, e, {
|
|
689
689
|
ref: t,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useLocalizationContext as e } from "./contexts/LocalizationContext.js";
|
|
2
|
+
import { t } from "./clsx-DSGuh5YW.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import './assets/Container.css';//#region lib/components/layout/Container.module.css
|
|
5
|
+
var r = { "rp-container": "_rp-container_f63gc_1" }, i = (e) => e.replace(/_/g, "-"), a = (a) => {
|
|
6
|
+
let { children: o, getContainerRef: s, style: c, className: l } = a, { locale: u } = e();
|
|
7
|
+
return /* @__PURE__ */ n("div", {
|
|
8
|
+
tabIndex: 0,
|
|
9
|
+
ref: s,
|
|
10
|
+
"data-rp": "container",
|
|
11
|
+
lang: u ? i(u) : void 0,
|
|
12
|
+
className: t(r["rp-container"], l),
|
|
13
|
+
style: c,
|
|
14
|
+
children: o
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { a as t };
|
|
@@ -3,15 +3,15 @@ import { useLayoutContainer as t } from "./contexts/LayoutContainerContext.js";
|
|
|
3
3
|
import { useLocalizationContext as n } from "./contexts/LocalizationContext.js";
|
|
4
4
|
import { useOtherToolContext as r } from "./contexts/OtherToolContext.js";
|
|
5
5
|
import { dateFormatter as i } from "./utils/dateFormatter.js";
|
|
6
|
-
import { c as a, d as o, f as s, i as c, l, n as u, o as d, t as f } from "./dist-
|
|
7
|
-
import { n as p, r as m, t as h } from "./dist-
|
|
8
|
-
import { i as g, n as ee, r as _, t as v } from "./Combination-
|
|
6
|
+
import { c as a, d as o, f as s, i as c, l, n as u, o as d, t as f } from "./dist-CgoP608h.js";
|
|
7
|
+
import { n as p, r as m, t as h } from "./dist-BfuBBQ14.js";
|
|
8
|
+
import { i as g, n as ee, r as _, t as v } from "./Combination-11kyhTGt.js";
|
|
9
9
|
import { CloseIcon as te } from "./components/icons/CloseIcon.js";
|
|
10
10
|
import { t as y } from "./PropertyItem-evJWWmWZ.js";
|
|
11
11
|
import * as b from "react";
|
|
12
12
|
import { useMemo as x } from "react";
|
|
13
13
|
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
14
|
-
import './assets/DocumentDialog.css';//#region node_modules
|
|
14
|
+
import './assets/DocumentDialog.css';//#region node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
15
15
|
var T = "Dialog", [E, ne] = l(T), [D, O] = E(T), k = (e) => {
|
|
16
16
|
let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s = b.useRef(null), c = b.useRef(null), [l, u] = f({
|
|
17
17
|
prop: r,
|
|
@@ -217,12 +217,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
217
217
|
t
|
|
218
218
|
]), null;
|
|
219
219
|
}, ce = k, le = F, ue = L, de = z, fe = W, pe = J, $ = {
|
|
220
|
-
"rp-dialog-wrapper": "_rp-dialog-
|
|
221
|
-
"rp-dialog-overlay": "_rp-dialog-
|
|
222
|
-
"rp-document-dialog": "_rp-document-
|
|
223
|
-
"rp-dialog-title": "_rp-dialog-
|
|
224
|
-
"rp-dialog-close": "_rp-dialog-
|
|
225
|
-
"rp-properties-divider": "_rp-properties-
|
|
220
|
+
"rp-dialog-wrapper": "_rp-dialog-wrapper_39boz_1",
|
|
221
|
+
"rp-dialog-overlay": "_rp-dialog-overlay_39boz_7",
|
|
222
|
+
"rp-document-dialog": "_rp-document-dialog_39boz_13",
|
|
223
|
+
"rp-dialog-title": "_rp-dialog-title_39boz_35",
|
|
224
|
+
"rp-dialog-close": "_rp-dialog-close_39boz_44",
|
|
225
|
+
"rp-properties-divider": "_rp-properties-divider_39boz_52"
|
|
226
226
|
}, me = () => {
|
|
227
227
|
let { pdfProperties: a } = e(), { container: o } = t(), { activeDocumentProperties: s, setActiveDocumentProperties: c } = r(), { localeMessages: l } = n(), u = x(() => {
|
|
228
228
|
if (!a) return [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
2
|
-
import { a as t, i as n, s as r, t as i } from "./dist-
|
|
1
|
+
import { t as e } from "./clsx-DSGuh5YW.js";
|
|
2
|
+
import { a as t, i as n, s as r, t as i } from "./dist-VbpVNBs6.js";
|
|
3
3
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
4
|
import './assets/DropDown.css';var s = {
|
|
5
5
|
"rp-dropdown-content": "_rp-dropdown-content_1vzkq_1",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-DSGuh5YW.js";
|
|
2
2
|
import { withRef as t } from "./utils/withRef.js";
|
|
3
3
|
import { useId as n } from "react";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
import './assets/Input.css';//#region lib/components/ui/Input.module.css
|
|
6
6
|
var a = {
|
|
7
|
-
"rp-input": "_rp-
|
|
8
|
-
"rp-input-wrapper": "_rp-input-
|
|
9
|
-
"rp-input-label": "_rp-input-
|
|
10
|
-
"rp-input-icon": "_rp-input-
|
|
7
|
+
"rp-input": "_rp-input_dun7b_1",
|
|
8
|
+
"rp-input-wrapper": "_rp-input-wrapper_dun7b_28",
|
|
9
|
+
"rp-input-label": "_rp-input-label_dun7b_32",
|
|
10
|
+
"rp-input-icon": "_rp-input-icon_dun7b_44"
|
|
11
11
|
}, o = t((t, o) => {
|
|
12
12
|
let { className: s, icon: c, children: l, id: u, label: d, ...f } = t, p = n(), m = u || p, h = f.role || (f.type === "text" || !f.type ? "textbox" : void 0);
|
|
13
13
|
return /* @__PURE__ */ i("div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
1
|
+
import { t as e } from "./clsx-DSGuh5YW.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import './assets/LoaderIcon.css';//#region lib/assets/loader.png
|
|
4
4
|
var n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABPbSURBVHgB5Vx7jB3ldT/nm7mPfXqxsQFj4msCMYRCTCBVDCFeUlEVhQa7ld0SpcI0KSFUwIJCq6ZqvUZV2iR/sDZJWuiDpU1UCUsYUEOgIuxaFKgiCyelMTbYeNfYMeDX2l7v4975v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GYVhab/NRdu2FPcwPtdo6FZptAWyEZXHlPOcsenQY5LQwcTwjQtuIIzCPdaqfFEgUYsynEoCAP+TWjbZiFMZ2mnWDvnc42+5MAV9Dev37Rw1szPfQss6cTsLHyG7LNE1I07Q7WAAAAAElFTkSuQmCC", r = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useLocalizationContext as e } from "./contexts/LocalizationContext.js";
|
|
2
2
|
import { usePrintContext as t } from "./contexts/PrintContext.js";
|
|
3
|
-
import { t as n } from "./clsx-
|
|
3
|
+
import { t as n } from "./clsx-DSGuh5YW.js";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
import './assets/LoadingIndicator.css';var a = {
|
|
6
6
|
"rp-loading-overlay": "_rp-loading-overlay_wazy2_1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
2
|
-
import { r as t } from "./dist-
|
|
1
|
+
import { t as e } from "./clsx-DSGuh5YW.js";
|
|
2
|
+
import { r as t } from "./dist-VbpVNBs6.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
import './assets/MenuItem.css';//#region lib/components/layout/toolbar/MenuItem.module.css
|
|
5
5
|
var r = { "rp-menu-item": "_rp-menu-item_cu12j_1" }, i = (i) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e } from "./dist-
|
|
1
|
+
import { o as e } from "./dist-VbpVNBs6.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import './assets/MenuSeparator.css';//#region lib/components/layout/toolbar/MenuSeparator.module.css
|
|
4
4
|
var n = { "rp-menu-separator": "_rp-menu-separator_17dlz_1" }, r = () => /* @__PURE__ */ t(e, { className: n["rp-menu-separator"] });
|
|
@@ -13,23 +13,23 @@ import { useDebounce as f } from "./utils/hooks/useDebounce.js";
|
|
|
13
13
|
import { useDimensionPagesContext as p } from "./contexts/DimensionPagesContext.js";
|
|
14
14
|
import { useSmoothScrollContext as m } from "./contexts/SmoothScrollContext.js";
|
|
15
15
|
import { getScrollDistance as h } from "./utils/getScrollDistance.js";
|
|
16
|
-
import { getGridDimension as g } from "./utils/calculatePage.js";
|
|
17
|
-
import { createContext as
|
|
18
|
-
import { jsx as
|
|
16
|
+
import { getGridDimension as g, getPositionFromPage as _ } from "./utils/calculatePage.js";
|
|
17
|
+
import { createContext as v, useCallback as y, useContext as b, useEffect as x, useMemo as S, useRef as C, useState as w } from "react";
|
|
18
|
+
import { jsx as T } from "react/jsx-runtime";
|
|
19
19
|
//#region lib/utils/hooks/useScrollToPage.ts
|
|
20
|
-
var
|
|
21
|
-
let { viewMode: n } = o(), { scrollMode: r } = a(), { virtualScrollRef: i, virtualScrollableElementRef: u, pageScrollElementRef: d } = s(), { setFocusedPage: f } =
|
|
22
|
-
|
|
23
|
-
i?.scrollToItem && (
|
|
24
|
-
}, [i]),
|
|
25
|
-
|
|
20
|
+
var E = () => {
|
|
21
|
+
let { viewMode: n } = o(), { scrollMode: r } = a(), { virtualScrollRef: i, virtualScrollableElementRef: u, pageScrollElementRef: d } = s(), { setFocusedPage: f } = k(), v = C(), { columnCount: b } = c(), { widths: S, heights: w } = p(), T = C(r), E = C(n), D = C(b), { targetScrollPage: O, scrollBehavior: A } = m(), j = C(null);
|
|
22
|
+
x(() => {
|
|
23
|
+
i?.scrollToItem && (v.current = i);
|
|
24
|
+
}, [i]), x(() => {
|
|
25
|
+
T.current = r, E.current = n;
|
|
26
26
|
}, [r, n]);
|
|
27
|
-
let
|
|
27
|
+
let M = y((e, t) => {
|
|
28
28
|
if (!d) return;
|
|
29
29
|
let n = Math.ceil(e / 2) * 2 - 1;
|
|
30
30
|
if (e === n + 1) {
|
|
31
31
|
let e = {
|
|
32
|
-
left:
|
|
32
|
+
left: S[n],
|
|
33
33
|
top: 0
|
|
34
34
|
};
|
|
35
35
|
return new Promise((t) => l(d, e, t));
|
|
@@ -41,42 +41,42 @@ var T = () => {
|
|
|
41
41
|
});
|
|
42
42
|
}, [
|
|
43
43
|
d,
|
|
44
|
-
|
|
44
|
+
S,
|
|
45
45
|
l
|
|
46
46
|
]);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}, [r, n]),
|
|
50
|
-
|
|
51
|
-
}, [
|
|
52
|
-
let
|
|
47
|
+
x(() => {
|
|
48
|
+
T.current = r, E.current = n;
|
|
49
|
+
}, [r, n]), x(() => {
|
|
50
|
+
D.current = b;
|
|
51
|
+
}, [b]);
|
|
52
|
+
let N = y((n, r = A) => {
|
|
53
53
|
f(n);
|
|
54
54
|
let i = n - 1, a = i, o = 0;
|
|
55
|
-
if (
|
|
56
|
-
|
|
55
|
+
if (E.current === t.DUAL_PAGE && T.current === e.PAGE_SCROLLING) {
|
|
56
|
+
M(n, r);
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
|
-
if (
|
|
59
|
+
if (T.current === e.PAGE_SCROLLING) {
|
|
60
60
|
f(n);
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
|
-
if (!
|
|
64
|
-
|
|
63
|
+
if (!v.current || !u) {
|
|
64
|
+
j.current = {
|
|
65
65
|
page: n,
|
|
66
66
|
behavior: r
|
|
67
67
|
};
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
j.current = null;
|
|
71
71
|
let s = u;
|
|
72
|
-
r === "smooth" && (
|
|
73
|
-
let { columnsWidth:
|
|
74
|
-
widths:
|
|
75
|
-
heights:
|
|
76
|
-
},
|
|
77
|
-
if (
|
|
72
|
+
r === "smooth" && (O.current = n);
|
|
73
|
+
let c = E.current === t.DUAL_PAGE_WITH_COVER, { columnsWidth: l, rowsHeight: d } = g({
|
|
74
|
+
widths: S,
|
|
75
|
+
heights: w
|
|
76
|
+
}, b, c);
|
|
77
|
+
if (T.current === e.HORIZONTAL_SCROLLING) {
|
|
78
78
|
o = i;
|
|
79
|
-
let e = h(
|
|
79
|
+
let e = h(l, o), t = {
|
|
80
80
|
left: Math.floor(e),
|
|
81
81
|
top: 0
|
|
82
82
|
};
|
|
@@ -85,9 +85,19 @@ var T = () => {
|
|
|
85
85
|
behavior: r
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
if (
|
|
88
|
+
if (E.current === t.DUAL_PAGE_WITH_COVER) {
|
|
89
|
+
let { rowIndex: e, columnIndex: t } = _(n, b, !0), i = h(l, t), a = h(d, e), o = {
|
|
90
|
+
left: Math.floor(i),
|
|
91
|
+
top: Math.floor(a)
|
|
92
|
+
};
|
|
93
|
+
return s.scrollTo({
|
|
94
|
+
...o,
|
|
95
|
+
behavior: r
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
if (E.current === t.DUAL_PAGE) {
|
|
89
99
|
o = i % 2, a = Math.floor(i / 2);
|
|
90
|
-
let e = h(
|
|
100
|
+
let e = h(l, o), t = h(d, a), n = {
|
|
91
101
|
left: Math.floor(e),
|
|
92
102
|
top: Math.floor(t)
|
|
93
103
|
};
|
|
@@ -96,31 +106,31 @@ var T = () => {
|
|
|
96
106
|
behavior: r
|
|
97
107
|
});
|
|
98
108
|
}
|
|
99
|
-
let
|
|
109
|
+
let p = h(d, a), m = {
|
|
100
110
|
left: 0,
|
|
101
|
-
top: Math.floor(
|
|
111
|
+
top: Math.floor(p)
|
|
102
112
|
};
|
|
103
113
|
return s.scrollTo({
|
|
104
|
-
...
|
|
114
|
+
...m,
|
|
105
115
|
behavior: r
|
|
106
116
|
});
|
|
107
117
|
}, [
|
|
108
118
|
u,
|
|
109
|
-
|
|
110
|
-
|
|
119
|
+
b,
|
|
120
|
+
M,
|
|
111
121
|
f,
|
|
112
122
|
l,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
123
|
+
w,
|
|
124
|
+
S,
|
|
125
|
+
A
|
|
116
126
|
]);
|
|
117
|
-
return
|
|
118
|
-
if (!u || !
|
|
119
|
-
let { page: e, behavior: t } =
|
|
120
|
-
|
|
121
|
-
}, [u,
|
|
122
|
-
},
|
|
123
|
-
let [r, i] =
|
|
127
|
+
return x(() => {
|
|
128
|
+
if (!u || !j.current) return;
|
|
129
|
+
let { page: e, behavior: t } = j.current;
|
|
130
|
+
j.current = null, N(e, t);
|
|
131
|
+
}, [u, N]), { scrollToPage: N };
|
|
132
|
+
}, D = (n = 1) => {
|
|
133
|
+
let [r, i] = w(n), [s, c] = w(0), { scrollToPage: l } = E(), d = C(n), { viewMode: m } = o(), { scrollMode: h } = a(), { widths: g } = p(), { pagesRef: _ } = u(), v = f(r, 100), b = y((e) => {
|
|
124
134
|
if (!/^[0-9]*$/g.test(e.toString()) || !e) return {
|
|
125
135
|
success: !1,
|
|
126
136
|
currentPage: d.current
|
|
@@ -133,12 +143,12 @@ var T = () => {
|
|
|
133
143
|
success: !0,
|
|
134
144
|
currentPage: +e
|
|
135
145
|
});
|
|
136
|
-
}, [s]),
|
|
146
|
+
}, [s]), x = y(b, [b]), T = y((e) => {
|
|
137
147
|
i(e), d.current = e;
|
|
138
|
-
}, []), D =
|
|
148
|
+
}, []), D = y((e, t) => {
|
|
139
149
|
let n = b(e);
|
|
140
150
|
return n.success && l(n.currentPage, t), n;
|
|
141
|
-
}, [b, l]), O =
|
|
151
|
+
}, [b, l]), O = y((e) => {
|
|
142
152
|
let n = e % 2 == 1;
|
|
143
153
|
if (!_ || n) return !1;
|
|
144
154
|
let r = n ? g[e] : g[e - 1], i = n ? g[e + 1] : g[e];
|
|
@@ -148,7 +158,7 @@ var T = () => {
|
|
|
148
158
|
g,
|
|
149
159
|
_,
|
|
150
160
|
s
|
|
151
|
-
]), k =
|
|
161
|
+
]), k = y(() => {
|
|
152
162
|
let e = r - 1;
|
|
153
163
|
O(e) && (e = r - 2), D(e);
|
|
154
164
|
}, [
|
|
@@ -157,19 +167,19 @@ var T = () => {
|
|
|
157
167
|
m,
|
|
158
168
|
h,
|
|
159
169
|
O
|
|
160
|
-
]), A =
|
|
170
|
+
]), A = S(() => m === t.DUAL_PAGE && h === e.PAGE_SCROLLING ? r === s - 1 : r === s, [
|
|
161
171
|
r,
|
|
162
172
|
s,
|
|
163
173
|
m,
|
|
164
174
|
h
|
|
165
175
|
]);
|
|
166
176
|
return {
|
|
167
|
-
focusedPage:
|
|
177
|
+
focusedPage: v,
|
|
168
178
|
totalPages: s,
|
|
169
|
-
setFocusedPage:
|
|
170
|
-
resetPage:
|
|
179
|
+
setFocusedPage: x,
|
|
180
|
+
resetPage: T,
|
|
171
181
|
setTotalPages: c,
|
|
172
|
-
nextPage:
|
|
182
|
+
nextPage: y(() => {
|
|
173
183
|
if (A) return;
|
|
174
184
|
let e = r + 1;
|
|
175
185
|
O(e) && (e = r + 2), D(e);
|
|
@@ -184,7 +194,7 @@ var T = () => {
|
|
|
184
194
|
prevPage: k,
|
|
185
195
|
goToPage: D
|
|
186
196
|
};
|
|
187
|
-
},
|
|
197
|
+
}, O = v({
|
|
188
198
|
focusedPage: 0,
|
|
189
199
|
setFocusedPage: (e) => {},
|
|
190
200
|
goToPage: (e, t) => ({
|
|
@@ -195,12 +205,12 @@ var T = () => {
|
|
|
195
205
|
setTotalPages: (e) => {},
|
|
196
206
|
prevPage: () => {},
|
|
197
207
|
nextPage: () => {}
|
|
198
|
-
}),
|
|
199
|
-
let e =
|
|
208
|
+
}), k = () => {
|
|
209
|
+
let e = b(O);
|
|
200
210
|
return e?.focusedPage === void 0 && n.error("Please use this hooks inside children component of RPProvider"), e;
|
|
201
|
-
},
|
|
202
|
-
let { pdf: t } = r(), { setCurrentPage: n } = d(), { initialPage: a = 1 } = i(), { focusedPage: o, totalPages: s, setFocusedPage: c, resetPage: l, setTotalPages: u, goToPage: f, nextPage: p, prevPage: m } =
|
|
203
|
-
return
|
|
211
|
+
}, A = ({ children: e }) => {
|
|
212
|
+
let { pdf: t } = r(), { setCurrentPage: n } = d(), { initialPage: a = 1 } = i(), { focusedPage: o, totalPages: s, setFocusedPage: c, resetPage: l, setTotalPages: u, goToPage: f, nextPage: p, prevPage: m } = D(a), h = C(!0);
|
|
213
|
+
return x(() => {
|
|
204
214
|
if (!t) {
|
|
205
215
|
h.current || (u(0), l(1));
|
|
206
216
|
return;
|
|
@@ -213,9 +223,9 @@ var T = () => {
|
|
|
213
223
|
t,
|
|
214
224
|
u,
|
|
215
225
|
l
|
|
216
|
-
]),
|
|
226
|
+
]), x(() => {
|
|
217
227
|
n(o);
|
|
218
|
-
}, [o, n]), /* @__PURE__ */
|
|
228
|
+
}, [o, n]), /* @__PURE__ */ T(O.Provider, {
|
|
219
229
|
value: {
|
|
220
230
|
focusedPage: o,
|
|
221
231
|
totalPages: s,
|
|
@@ -229,4 +239,4 @@ var T = () => {
|
|
|
229
239
|
});
|
|
230
240
|
};
|
|
231
241
|
//#endregion
|
|
232
|
-
export {
|
|
242
|
+
export { E as a, D as i, A as n, k as r, O as t };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { useDocumentPasswordContext as e } from "./contexts/DocumentPasswordContext.js";
|
|
2
2
|
import { useLocalizationContext as t } from "./contexts/LocalizationContext.js";
|
|
3
|
-
import { t as n } from "./clsx-
|
|
3
|
+
import { t as n } from "./clsx-DSGuh5YW.js";
|
|
4
4
|
import { useState as r } from "react";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
import './assets/PasswordModal.css';//#region lib/components/ui/PasswordModal.module.css
|
|
7
7
|
var o = {
|
|
8
|
-
"rp-password-overlay": "_rp-password-
|
|
9
|
-
"rp-password-modal": "_rp-password-
|
|
10
|
-
"rp-password-title": "_rp-password-
|
|
11
|
-
"rp-password-content": "_rp-password-
|
|
12
|
-
"rp-password-form": "_rp-password-
|
|
13
|
-
"rp-password-label": "_rp-password-
|
|
14
|
-
"rp-password-input": "_rp-password-
|
|
15
|
-
"rp-password-input-invalid": "_rp-password-input-
|
|
16
|
-
"rp-password-message-invalid": "_rp-password-message-
|
|
17
|
-
"rp-password-submit-button": "_rp-password-submit-
|
|
8
|
+
"rp-password-overlay": "_rp-password-overlay_9cdbk_1",
|
|
9
|
+
"rp-password-modal": "_rp-password-modal_9cdbk_13",
|
|
10
|
+
"rp-password-title": "_rp-password-title_9cdbk_27",
|
|
11
|
+
"rp-password-content": "_rp-password-content_9cdbk_35",
|
|
12
|
+
"rp-password-form": "_rp-password-form_9cdbk_41",
|
|
13
|
+
"rp-password-label": "_rp-password-label_9cdbk_45",
|
|
14
|
+
"rp-password-input": "_rp-password-input_9cdbk_57",
|
|
15
|
+
"rp-password-input-invalid": "_rp-password-input-invalid_9cdbk_74",
|
|
16
|
+
"rp-password-message-invalid": "_rp-password-message-invalid_9cdbk_78",
|
|
17
|
+
"rp-password-submit-button": "_rp-password-submit-button_9cdbk_84"
|
|
18
18
|
}, s = () => {
|
|
19
19
|
let [s, c] = r(""), { localeMessages: l } = t(), { setPassword: u, setPasswordError: d, invalidPassword: f } = e(), p = (e) => {
|
|
20
20
|
c(e.target.value), f && d(void 0);
|
|
@@ -58,6 +58,7 @@ var o = {
|
|
|
58
58
|
className: n(o["rp-password-input"], f && o["rp-password-input-invalid"]),
|
|
59
59
|
placeholder: l?.passwordPlaceholder,
|
|
60
60
|
autoComplete: "off",
|
|
61
|
+
"aria-label": l?.passwordPlaceholder,
|
|
61
62
|
"aria-required": "true",
|
|
62
63
|
"aria-invalid": f,
|
|
63
64
|
"aria-describedby": f ? "password-modal-message password-error" : "password-modal-message"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useDarkModeContext as e } from "./contexts/DarkModeContext.js";
|
|
2
2
|
import { useLocalizationContext as t } from "./contexts/LocalizationContext.js";
|
|
3
3
|
import { useDropFileZoneContext as n } from "./contexts/DropFileZoneContext.js";
|
|
4
|
-
import { t as r } from "./clsx-
|
|
4
|
+
import { t as r } from "./clsx-DSGuh5YW.js";
|
|
5
5
|
import { t as i } from "./LightPdfIcon-DL8MYtWQ.js";
|
|
6
6
|
import { t as a } from "./DarkPdfIcon-B5ehd9CV.js";
|
|
7
7
|
import { useDropFileZone as o } from "./utils/hooks/useDropFileZone.js";
|
|
@@ -5,7 +5,7 @@ import { useLayerContext as r } from "./contexts/LayerContext.js";
|
|
|
5
5
|
import { useLoaderContext as i } from "./contexts/LoaderContext.js";
|
|
6
6
|
import { CanvasLayer as a } from "./components/page/CanvasLayer.js";
|
|
7
7
|
import { t as o } from "./TextLayer-DWGFN9SF.js";
|
|
8
|
-
import { t as s } from "./AnnotationLayer-
|
|
8
|
+
import { t as s } from "./AnnotationLayer-C6UTOVmc.js";
|
|
9
9
|
import { t as c } from "./TextHighlightLayer-BSVgBxR3.js";
|
|
10
10
|
import { CustomElement as l } from "./components/page/CustomElement.js";
|
|
11
11
|
import { withRef as u } from "./utils/withRef.js";
|