beca-ui 0.1.46 → 0.1.48
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/beca-ui.js +11 -6
- package/package.json +2 -2
package/dist/beca-ui.js
CHANGED
|
@@ -142627,10 +142627,12 @@ function mergeRefs() {
|
|
|
142627
142627
|
const PageContext = createContext$1(null), PDF_ROLE_TO_HTML_ROLE = {
|
|
142628
142628
|
// Document level structure types
|
|
142629
142629
|
Document: null,
|
|
142630
|
+
// There's a "document" role, but it doesn't make sense here.
|
|
142630
142631
|
DocumentFragment: null,
|
|
142631
142632
|
// Grouping level structure types
|
|
142632
142633
|
Part: "group",
|
|
142633
142634
|
Sect: "group",
|
|
142635
|
+
// XXX: There's a "section" role, but it's abstract.
|
|
142634
142636
|
Div: "group",
|
|
142635
142637
|
Aside: "note",
|
|
142636
142638
|
NonStruct: "none",
|
|
@@ -143057,9 +143059,12 @@ function AnnotationLayer() {
|
|
|
143057
143059
|
return;
|
|
143058
143060
|
const U = z.clone({ dontFlip: !0 }), P = {
|
|
143059
143061
|
accessibilityManager: null,
|
|
143062
|
+
// TODO: Implement this
|
|
143060
143063
|
annotationCanvasMap: null,
|
|
143064
|
+
// TODO: Implement this
|
|
143061
143065
|
div: j,
|
|
143062
143066
|
l10n: null,
|
|
143067
|
+
// TODO: Implement this
|
|
143063
143068
|
page: b,
|
|
143064
143069
|
viewport: U
|
|
143065
143070
|
}, F = {
|
|
@@ -143895,12 +143900,12 @@ const ReactPaginate = /* @__PURE__ */ getDefaultExportFromCjs(reactPaginateExpor
|
|
|
143895
143900
|
(T, R) => {
|
|
143896
143901
|
const { multiple: L = !0 } = T, I = [...h], Y = document.querySelector(".react-pdf__Document");
|
|
143897
143902
|
if (Y) {
|
|
143898
|
-
const G = Y.getBoundingClientRect(), X = I.find((
|
|
143903
|
+
const G = Y.getBoundingClientRect(), X = I.find((z) => z.id === T.id), V = R.x - G.x - (d === "Safari" ? 4 : 0), E = R.y - G.y + (d === "Safari" ? 6 : 0);
|
|
143899
143904
|
if (L || !X) {
|
|
143900
|
-
const
|
|
143905
|
+
const z = {
|
|
143901
143906
|
id: L ? (/* @__PURE__ */ new Date()).getMilliseconds() : T.id,
|
|
143902
|
-
left:
|
|
143903
|
-
top:
|
|
143907
|
+
left: Math.round(V),
|
|
143908
|
+
top: Math.round(E),
|
|
143904
143909
|
title: T.title,
|
|
143905
143910
|
image: T.image,
|
|
143906
143911
|
page: y,
|
|
@@ -143909,9 +143914,9 @@ const ReactPaginate = /* @__PURE__ */ getDefaultExportFromCjs(reactPaginateExpor
|
|
|
143909
143914
|
width: T.width ?? BOX_WIDTH,
|
|
143910
143915
|
height: T.height ?? BOX_HEIGHT
|
|
143911
143916
|
};
|
|
143912
|
-
I.push(
|
|
143917
|
+
I.push(z);
|
|
143913
143918
|
} else
|
|
143914
|
-
X.left =
|
|
143919
|
+
X.left = Math.round(V), X.top = Math.round(E), X.width = T.width ?? X.width, X.height = T.height ?? X.height;
|
|
143915
143920
|
p(I);
|
|
143916
143921
|
}
|
|
143917
143922
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beca-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.48",
|
|
4
4
|
"description": "Becawork UI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"react-i18next": "13.0.1",
|
|
78
78
|
"react-infinite-scroll-component": "6.1.0",
|
|
79
79
|
"react-paginate": "8.2.0",
|
|
80
|
-
"react-pdf": "7.
|
|
80
|
+
"react-pdf": "7.6.0",
|
|
81
81
|
"react-resizable": "3.0.5",
|
|
82
82
|
"react-virtuoso": "4.6.2",
|
|
83
83
|
"tippy.js": "6.3.7"
|