laif-ds 0.2.32 → 0.2.33
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/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +5 -5
- package/dist/_virtual/index5.js +4 -4
- package/dist/components/ui/secure-pdf-viewer.js +64 -57
- package/dist/laif-ds.css +1 -1
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-hook-form/dist/index.esm.js +1 -1
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +6 -4
- package/dist/_virtual/warning.js +0 -8
- package/dist/node_modules/dequal/dist/index.js +0 -56
- package/dist/node_modules/make-cancellable-promise/dist/index.js +0 -15
- package/dist/node_modules/make-event-props/dist/index.js +0 -114
- package/dist/node_modules/merge-refs/dist/index.js +0 -19
- package/dist/node_modules/react-pdf/dist/Document.js +0 -180
- package/dist/node_modules/react-pdf/dist/DocumentContext.js +0 -6
- package/dist/node_modules/react-pdf/dist/LinkService.js +0 -94
- package/dist/node_modules/react-pdf/dist/Message.js +0 -8
- package/dist/node_modules/react-pdf/dist/Page/AnnotationLayer.js +0 -97
- package/dist/node_modules/react-pdf/dist/Page/Canvas.js +0 -55
- package/dist/node_modules/react-pdf/dist/Page/TextLayer.js +0 -111
- package/dist/node_modules/react-pdf/dist/Page.js +0 -180
- package/dist/node_modules/react-pdf/dist/PageContext.js +0 -6
- package/dist/node_modules/react-pdf/dist/PasswordResponses.js +0 -8
- package/dist/node_modules/react-pdf/dist/StructTree.js +0 -44
- package/dist/node_modules/react-pdf/dist/StructTreeItem.js +0 -14
- package/dist/node_modules/react-pdf/dist/index.js +0 -9
- package/dist/node_modules/react-pdf/dist/shared/constants.js +0 -62
- package/dist/node_modules/react-pdf/dist/shared/hooks/useDocumentContext.js +0 -9
- package/dist/node_modules/react-pdf/dist/shared/hooks/usePageContext.js +0 -9
- package/dist/node_modules/react-pdf/dist/shared/hooks/useResolver.js +0 -20
- package/dist/node_modules/react-pdf/dist/shared/structTreeUtils.js +0 -55
- package/dist/node_modules/react-pdf/dist/shared/utils.js +0 -110
- package/dist/node_modules/react-pdf/node_modules/pdfjs-dist/build/pdf.js +0 -15282
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +0 -13
- package/dist/node_modules/warning/warning.js +0 -39
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getDefaultExportFromCjs as
|
|
3
|
-
import { __require as
|
|
4
|
-
var
|
|
5
|
-
const
|
|
2
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as e } from "../node_modules/style-to-js/cjs/index.js";
|
|
4
|
+
var t = e();
|
|
5
|
+
const a = /* @__PURE__ */ r(t);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getDefaultExportFromCjs as
|
|
3
|
-
import { __require as
|
|
4
|
-
var t =
|
|
5
|
-
const
|
|
2
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as r } from "../node_modules/extend/index.js";
|
|
4
|
+
var t = r();
|
|
5
|
+
const x = /* @__PURE__ */ e(t);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
x as default
|
|
8
8
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
3
|
-
import { __require as
|
|
4
|
-
var
|
|
5
|
-
const
|
|
3
|
+
import { __require as t } from "../node_modules/eventemitter3/index2.js";
|
|
4
|
+
var r = t();
|
|
5
|
+
const m = /* @__PURE__ */ e(r);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
m as default
|
|
8
8
|
};
|
|
@@ -1,54 +1,61 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { Button as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { useState as
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
W.workerSrc = "https://unpkg.com/pdfjs-dist@5.3.93/build/pdf.worker.min.mjs";
|
|
13
|
-
function G({
|
|
14
|
-
url: a,
|
|
15
|
-
initialPage: w = 1,
|
|
16
|
-
className: N = ""
|
|
2
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { Button as v } from "./button.js";
|
|
4
|
+
import { Icon as s } from "./icon.js";
|
|
5
|
+
import { useState as l, useRef as W, useMemo as N, useEffect as d } from "react";
|
|
6
|
+
import "react-pdf/dist/Page/AnnotationLayer.css";
|
|
7
|
+
import "react-pdf/dist/Page/TextLayer.css";
|
|
8
|
+
function R({
|
|
9
|
+
url: m,
|
|
10
|
+
initialPage: g = 1,
|
|
11
|
+
className: u = ""
|
|
17
12
|
}) {
|
|
18
|
-
const [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
const [o, j] = l(null), [a, P] = l(), [t, f] = l(g), [p, h] = l(null), n = W(null), [b, x] = l(950), E = N(() => ({ url: m }), [m]), w = N(() => o ? {
|
|
14
|
+
cMapUrl: `https://unpkg.com/pdfjs-dist@${o.pdfjs.version}/cmaps/`,
|
|
15
|
+
cMapPacked: !0
|
|
16
|
+
} : null, [o]);
|
|
17
|
+
d(() => {
|
|
18
|
+
if (typeof window > "u") return;
|
|
19
|
+
let r = !0;
|
|
20
|
+
return import("react-pdf").then((i) => {
|
|
21
|
+
r && (i.pdfjs.GlobalWorkerOptions.workerSrc = `https://unpkg.com/pdfjs-dist@${i.pdfjs.version}/build/pdf.worker.min.mjs`, j(i));
|
|
22
|
+
}), () => {
|
|
23
|
+
r = !1;
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
26
|
+
const L = ({ numPages: r }) => {
|
|
27
|
+
P(r), h(null), setTimeout(() => {
|
|
26
28
|
if (n.current) {
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
+
const i = n.current.clientWidth;
|
|
30
|
+
x(i - 32);
|
|
29
31
|
}
|
|
30
32
|
}, 50);
|
|
31
|
-
},
|
|
32
|
-
console.error("PDF Load Error:", r),
|
|
33
|
+
}, y = (r) => {
|
|
34
|
+
console.error("PDF Load Error:", r), h(r.message || "Errore nel caricamento del PDF");
|
|
33
35
|
};
|
|
34
|
-
|
|
36
|
+
if (d(() => {
|
|
35
37
|
n.current && (n.current.scrollTop = 0);
|
|
36
|
-
}, [t]),
|
|
38
|
+
}, [t]), d(() => {
|
|
37
39
|
const r = () => {
|
|
38
40
|
if (n.current) {
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
+
const i = n.current.clientWidth;
|
|
42
|
+
x(i - 32);
|
|
41
43
|
}
|
|
42
44
|
};
|
|
43
45
|
return r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
|
44
|
-
}, []),
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
}, []), p)
|
|
47
|
+
return /* @__PURE__ */ c("div", { className: "text-d-destructive flex min-h-[600px] flex-col items-center justify-center gap-3", children: [
|
|
48
|
+
/* @__PURE__ */ e(s, { name: "AlertCircle", className: "h-12 w-12" }),
|
|
49
|
+
/* @__PURE__ */ e("p", { className: "font-semibold", children: "Errore nel caricamento del PDF" }),
|
|
50
|
+
/* @__PURE__ */ e("p", { className: "text-d-muted-foreground text-sm", children: p })
|
|
51
|
+
] });
|
|
52
|
+
if (!o || !w)
|
|
53
|
+
return /* @__PURE__ */ e("div", { className: `flex min-h-[600px] w-full flex-col items-center ${u}`, children: /* @__PURE__ */ e("div", { className: "flex min-h-[600px] w-full items-center justify-center", children: /* @__PURE__ */ e(s, { name: "Loader2", className: "text-d-primary h-8 w-8 animate-spin" }) }) });
|
|
54
|
+
const { Document: C, Page: k } = o;
|
|
55
|
+
return /* @__PURE__ */ c(
|
|
49
56
|
"div",
|
|
50
57
|
{
|
|
51
|
-
className: `flex min-h-[600px] w-full flex-col items-center ${
|
|
58
|
+
className: `flex min-h-[600px] w-full flex-col items-center ${u}`,
|
|
52
59
|
children: [
|
|
53
60
|
/* @__PURE__ */ e(
|
|
54
61
|
"div",
|
|
@@ -56,53 +63,53 @@ function G({
|
|
|
56
63
|
ref: n,
|
|
57
64
|
className: "border-d-border max-h-[500px] w-full overflow-auto rounded border",
|
|
58
65
|
children: /* @__PURE__ */ e(
|
|
59
|
-
|
|
66
|
+
C,
|
|
60
67
|
{
|
|
61
|
-
file:
|
|
62
|
-
onLoadSuccess:
|
|
63
|
-
onLoadError:
|
|
64
|
-
options:
|
|
68
|
+
file: E,
|
|
69
|
+
onLoadSuccess: L,
|
|
70
|
+
onLoadError: y,
|
|
71
|
+
options: w,
|
|
65
72
|
loading: /* @__PURE__ */ e("div", { className: "flex min-h-[600px] items-center justify-center", children: /* @__PURE__ */ e(
|
|
66
|
-
|
|
73
|
+
s,
|
|
67
74
|
{
|
|
68
75
|
name: "Loader2",
|
|
69
76
|
className: "text-d-primary h-8 w-8 animate-spin"
|
|
70
77
|
}
|
|
71
78
|
) }),
|
|
72
|
-
error: /* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */ e(
|
|
79
|
+
error: /* @__PURE__ */ c("div", { className: "text-d-destructive flex min-h-[600px] flex-col items-center justify-center gap-2", children: [
|
|
80
|
+
/* @__PURE__ */ e(s, { name: "AlertCircle", className: "h-12 w-12" }),
|
|
74
81
|
/* @__PURE__ */ e("p", { children: "Errore nel caricamento del PDF" })
|
|
75
82
|
] }),
|
|
76
83
|
className: "h-full min-h-[600px] w-full border-0",
|
|
77
|
-
children: /* @__PURE__ */ e(k, { pageNumber: t, width:
|
|
84
|
+
children: /* @__PURE__ */ e(k, { pageNumber: t, width: b })
|
|
78
85
|
}
|
|
79
86
|
)
|
|
80
87
|
}
|
|
81
88
|
),
|
|
82
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ c("div", { className: "my-8 flex h-full w-full items-center justify-center gap-4", children: [
|
|
83
90
|
/* @__PURE__ */ e(
|
|
84
|
-
|
|
91
|
+
v,
|
|
85
92
|
{
|
|
86
|
-
onClick: () =>
|
|
93
|
+
onClick: () => f(Math.max(1, t - 1)),
|
|
87
94
|
disabled: t <= 1,
|
|
88
95
|
variant: "outline",
|
|
89
96
|
size: "sm",
|
|
90
|
-
children: /* @__PURE__ */ e(
|
|
97
|
+
children: /* @__PURE__ */ e(s, { name: "ChevronLeft", className: "h-4 w-4" })
|
|
91
98
|
}
|
|
92
99
|
),
|
|
93
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ c("p", { className: "text-d-foreground text-sm", children: [
|
|
94
101
|
t,
|
|
95
102
|
" / ",
|
|
96
|
-
|
|
103
|
+
a
|
|
97
104
|
] }),
|
|
98
105
|
/* @__PURE__ */ e(
|
|
99
|
-
|
|
106
|
+
v,
|
|
100
107
|
{
|
|
101
|
-
onClick: () =>
|
|
102
|
-
disabled: t >= (
|
|
108
|
+
onClick: () => f(Math.min(a || 1, t + 1)),
|
|
109
|
+
disabled: t >= (a || 1),
|
|
103
110
|
variant: "outline",
|
|
104
111
|
size: "sm",
|
|
105
|
-
children: /* @__PURE__ */ e(
|
|
112
|
+
children: /* @__PURE__ */ e(s, { name: "ChevronRight", className: "h-4 w-4" })
|
|
106
113
|
}
|
|
107
114
|
)
|
|
108
115
|
] })
|
|
@@ -111,5 +118,5 @@ function G({
|
|
|
111
118
|
);
|
|
112
119
|
}
|
|
113
120
|
export {
|
|
114
|
-
|
|
121
|
+
R as SecurePdfViewer
|
|
115
122
|
};
|
package/dist/laif-ds.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.EditorTheme__code{background-color:transparent;font-family:Menlo,Consolas,Monaco,monospace;display:block;padding:8px 8px 8px 52px;line-height:1.53;font-size:13px;margin:8px 0;overflow-x:auto;border:1px solid #ccc;position:relative;border-radius:8px;tab-size:2}.EditorTheme__code:before{content:attr(data-gutter);position:absolute;background-color:transparent;border-right:1px solid #ccc;left:0;top:0;padding:8px;color:#777;white-space:pre-wrap;text-align:right;min-width:25px}.EditorTheme__table{border-collapse:collapse;border-spacing:0;overflow-y:scroll;overflow-x:scroll;table-layout:fixed;width:fit-content;width:100%;margin:0 25px 30px 0}.EditorTheme__tokenComment{color:#708090}.EditorTheme__tokenPunctuation{color:#999}.EditorTheme__tokenProperty{color:#905}.EditorTheme__tokenSelector{color:#690}.EditorTheme__tokenOperator{color:#9a6e3a}.EditorTheme__tokenAttr{color:#07a}.EditorTheme__tokenVariable{color:#e90}.EditorTheme__tokenFunction{color:#dd4a68}.Collapsible__container{background-color:var(--background);border:1px solid #ccc;border-radius:.5rem;margin-bottom:.5rem}.Collapsible__title{padding:.25rem .25rem .25rem 1rem;position:relative;font-weight:700;outline:none;cursor:pointer;list-style-type:disclosure-closed;list-style-position:inside}.Collapsible__title p{display:inline-flex}.Collapsible__title::marker{color:#d3d3d3}.Collapsible__container[open]>.Collapsible__title{list-style-type:disclosure-open}:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors: active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--total-scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--total-scale-factor));width:100%;min-width:calc(180px * var(--total-scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--total-scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--total-scale-factor)) calc(5px * var(--total-scale-factor)) #888;border-radius:calc(2px * var(--total-scale-factor));padding:calc(6px * var(--total-scale-factor));margin-left:calc(5px * var(--total-scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--total-scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--total-scale-factor));padding-top:calc(2px * var(--total-scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors: active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;inset:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}
|
|
1
|
+
.EditorTheme__code{background-color:transparent;font-family:Menlo,Consolas,Monaco,monospace;display:block;padding:8px 8px 8px 52px;line-height:1.53;font-size:13px;margin:8px 0;overflow-x:auto;border:1px solid #ccc;position:relative;border-radius:8px;tab-size:2}.EditorTheme__code:before{content:attr(data-gutter);position:absolute;background-color:transparent;border-right:1px solid #ccc;left:0;top:0;padding:8px;color:#777;white-space:pre-wrap;text-align:right;min-width:25px}.EditorTheme__table{border-collapse:collapse;border-spacing:0;overflow-y:scroll;overflow-x:scroll;table-layout:fixed;width:fit-content;width:100%;margin:0 25px 30px 0}.EditorTheme__tokenComment{color:#708090}.EditorTheme__tokenPunctuation{color:#999}.EditorTheme__tokenProperty{color:#905}.EditorTheme__tokenSelector{color:#690}.EditorTheme__tokenOperator{color:#9a6e3a}.EditorTheme__tokenAttr{color:#07a}.EditorTheme__tokenVariable{color:#e90}.EditorTheme__tokenFunction{color:#dd4a68}.Collapsible__container{background-color:var(--background);border:1px solid #ccc;border-radius:.5rem;margin-bottom:.5rem}.Collapsible__title{padding:.25rem .25rem .25rem 1rem;position:relative;font-weight:700;outline:none;cursor:pointer;list-style-type:disclosure-closed;list-style-position:inside}.Collapsible__title p{display:inline-flex}.Collapsible__title::marker{color:#d3d3d3}.Collapsible__container[open]>.Collapsible__title{list-style-type:disclosure-open}
|
|
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
|
|
|
3
3
|
import { ok as u } from "../../devlop/lib/default.js";
|
|
4
4
|
import { svg as m, html as C } from "../../property-information/index.js";
|
|
5
5
|
import { stringify as N } from "../../space-separated-tokens/index.js";
|
|
6
|
-
import S from "../../../_virtual/
|
|
6
|
+
import S from "../../../_virtual/index3.js";
|
|
7
7
|
import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
|
|
8
8
|
import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
|
|
9
9
|
import { VFileMessage as h } from "../../vfile-message/lib/index.js";
|
|
@@ -213,7 +213,7 @@ function re(e) {
|
|
|
213
213
|
C && C._f && (C._f.mount = G);
|
|
214
214
|
};
|
|
215
215
|
if (A(t, !0), d) {
|
|
216
|
-
const k = T(f(r._options.defaultValues, t));
|
|
216
|
+
const k = T(f(r._options.defaultValues, t, m.current.defaultValue));
|
|
217
217
|
M(r._defaultValues, t, k), x(f(r._formValues, t)) && M(r._formValues, t, k);
|
|
218
218
|
}
|
|
219
219
|
return !u && r.register(t), h.current = t, () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { bail as P } from "../../bail/index.js";
|
|
3
|
-
import y from "../../../_virtual/
|
|
3
|
+
import y from "../../../_virtual/index4.js";
|
|
4
4
|
import z from "../../is-plain-obj/index.js";
|
|
5
5
|
import { CallableInstance as C } from "./callable-instance.js";
|
|
6
6
|
import { trough as A } from "../../trough/lib/index.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "laif-ds",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.33",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -48,8 +48,10 @@
|
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"framer-motion": "^11.0.0 || ^12.0.0",
|
|
51
|
+
"pdfjs-dist": "^5.4.149",
|
|
51
52
|
"react": "^18.2.0 || ^19.0.0",
|
|
52
|
-
"react-dom": "^18.2.0 || ^19.0.0"
|
|
53
|
+
"react-dom": "^18.2.0 || ^19.0.0",
|
|
54
|
+
"react-pdf": "^10.1.0"
|
|
53
55
|
},
|
|
54
56
|
"devDependencies": {
|
|
55
57
|
"@chromatic-com/storybook": "^4.0.1",
|
|
@@ -76,8 +78,10 @@
|
|
|
76
78
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
77
79
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
78
80
|
"eslint-plugin-storybook": "^9.0.13",
|
|
81
|
+
"pdfjs-dist": "^5.4.149",
|
|
79
82
|
"prettier": "^3.6.0",
|
|
80
83
|
"prettier-plugin-tailwindcss": "^0.6.13",
|
|
84
|
+
"react-pdf": "^10.1.0",
|
|
81
85
|
"storybook": "^9.0.13",
|
|
82
86
|
"tailwindcss": "^4.1.13",
|
|
83
87
|
"tailwindcss-v3": "npm:tailwindcss@3.4.1",
|
|
@@ -143,13 +147,11 @@
|
|
|
143
147
|
"lucide-react": "^0.523.0",
|
|
144
148
|
"next-themes": "^0.4.6",
|
|
145
149
|
"papaparse": "^5.5.3",
|
|
146
|
-
"pdfjs-dist": "^5.4.149",
|
|
147
150
|
"react-colorful": "^5.6.1",
|
|
148
151
|
"react-day-picker": "^9.7.0",
|
|
149
152
|
"react-hook-form": "^7.58.1",
|
|
150
153
|
"react-is": "^19.1.0",
|
|
151
154
|
"react-markdown": "10",
|
|
152
|
-
"react-pdf": "^10.1.0",
|
|
153
155
|
"react-resizable-panels": "^3.0.3",
|
|
154
156
|
"react-window": "^1.8.11",
|
|
155
157
|
"recharts": "^3.0.0",
|
package/dist/_virtual/warning.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var f = Object.prototype.hasOwnProperty;
|
|
3
|
-
function l(t, e, n) {
|
|
4
|
-
for (n of t.keys())
|
|
5
|
-
if (u(n, e)) return n;
|
|
6
|
-
}
|
|
7
|
-
function u(t, e) {
|
|
8
|
-
var n, i, r;
|
|
9
|
-
if (t === e) return !0;
|
|
10
|
-
if (t && e && (n = t.constructor) === e.constructor) {
|
|
11
|
-
if (n === Date) return t.getTime() === e.getTime();
|
|
12
|
-
if (n === RegExp) return t.toString() === e.toString();
|
|
13
|
-
if (n === Array) {
|
|
14
|
-
if ((i = t.length) === e.length)
|
|
15
|
-
for (; i-- && u(t[i], e[i]); ) ;
|
|
16
|
-
return i === -1;
|
|
17
|
-
}
|
|
18
|
-
if (n === Set) {
|
|
19
|
-
if (t.size !== e.size)
|
|
20
|
-
return !1;
|
|
21
|
-
for (i of t)
|
|
22
|
-
if (r = i, r && typeof r == "object" && (r = l(e, r), !r) || !e.has(r)) return !1;
|
|
23
|
-
return !0;
|
|
24
|
-
}
|
|
25
|
-
if (n === Map) {
|
|
26
|
-
if (t.size !== e.size)
|
|
27
|
-
return !1;
|
|
28
|
-
for (i of t)
|
|
29
|
-
if (r = i[0], r && typeof r == "object" && (r = l(e, r), !r) || !u(i[1], e.get(r)))
|
|
30
|
-
return !1;
|
|
31
|
-
return !0;
|
|
32
|
-
}
|
|
33
|
-
if (n === ArrayBuffer)
|
|
34
|
-
t = new Uint8Array(t), e = new Uint8Array(e);
|
|
35
|
-
else if (n === DataView) {
|
|
36
|
-
if ((i = t.byteLength) === e.byteLength)
|
|
37
|
-
for (; i-- && t.getInt8(i) === e.getInt8(i); ) ;
|
|
38
|
-
return i === -1;
|
|
39
|
-
}
|
|
40
|
-
if (ArrayBuffer.isView(t)) {
|
|
41
|
-
if ((i = t.byteLength) === e.byteLength)
|
|
42
|
-
for (; i-- && t[i] === e[i]; ) ;
|
|
43
|
-
return i === -1;
|
|
44
|
-
}
|
|
45
|
-
if (!n || typeof t == "object") {
|
|
46
|
-
i = 0;
|
|
47
|
-
for (n in t)
|
|
48
|
-
if (f.call(t, n) && ++i && !f.call(e, n) || !(n in e) || !u(t[n], e[n])) return !1;
|
|
49
|
-
return Object.keys(e).length === i;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return t !== t && e !== e;
|
|
53
|
-
}
|
|
54
|
-
export {
|
|
55
|
-
u as dequal
|
|
56
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const r = ["onCopy", "onCut", "onPaste"], i = [
|
|
3
|
-
"onCompositionEnd",
|
|
4
|
-
"onCompositionStart",
|
|
5
|
-
"onCompositionUpdate"
|
|
6
|
-
], c = ["onFocus", "onBlur"], u = ["onInput", "onInvalid", "onReset", "onSubmit"], E = ["onLoad", "onError"], v = ["onKeyDown", "onKeyPress", "onKeyUp"], d = [
|
|
7
|
-
"onAbort",
|
|
8
|
-
"onCanPlay",
|
|
9
|
-
"onCanPlayThrough",
|
|
10
|
-
"onDurationChange",
|
|
11
|
-
"onEmptied",
|
|
12
|
-
"onEncrypted",
|
|
13
|
-
"onEnded",
|
|
14
|
-
"onError",
|
|
15
|
-
"onLoadedData",
|
|
16
|
-
"onLoadedMetadata",
|
|
17
|
-
"onLoadStart",
|
|
18
|
-
"onPause",
|
|
19
|
-
"onPlay",
|
|
20
|
-
"onPlaying",
|
|
21
|
-
"onProgress",
|
|
22
|
-
"onRateChange",
|
|
23
|
-
"onSeeked",
|
|
24
|
-
"onSeeking",
|
|
25
|
-
"onStalled",
|
|
26
|
-
"onSuspend",
|
|
27
|
-
"onTimeUpdate",
|
|
28
|
-
"onVolumeChange",
|
|
29
|
-
"onWaiting"
|
|
30
|
-
], l = [
|
|
31
|
-
"onClick",
|
|
32
|
-
"onContextMenu",
|
|
33
|
-
"onDoubleClick",
|
|
34
|
-
"onMouseDown",
|
|
35
|
-
"onMouseEnter",
|
|
36
|
-
"onMouseLeave",
|
|
37
|
-
"onMouseMove",
|
|
38
|
-
"onMouseOut",
|
|
39
|
-
"onMouseOver",
|
|
40
|
-
"onMouseUp"
|
|
41
|
-
], p = [
|
|
42
|
-
"onDrag",
|
|
43
|
-
"onDragEnd",
|
|
44
|
-
"onDragEnter",
|
|
45
|
-
"onDragExit",
|
|
46
|
-
"onDragLeave",
|
|
47
|
-
"onDragOver",
|
|
48
|
-
"onDragStart",
|
|
49
|
-
"onDrop"
|
|
50
|
-
], P = ["onSelect"], g = ["onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"], m = [
|
|
51
|
-
"onPointerDown",
|
|
52
|
-
"onPointerMove",
|
|
53
|
-
"onPointerUp",
|
|
54
|
-
"onPointerCancel",
|
|
55
|
-
"onGotPointerCapture",
|
|
56
|
-
"onLostPointerCapture",
|
|
57
|
-
"onPointerEnter",
|
|
58
|
-
"onPointerLeave",
|
|
59
|
-
"onPointerOver",
|
|
60
|
-
"onPointerOut"
|
|
61
|
-
], C = ["onScroll"], h = ["onWheel"], D = [
|
|
62
|
-
"onAnimationStart",
|
|
63
|
-
"onAnimationEnd",
|
|
64
|
-
"onAnimationIteration"
|
|
65
|
-
], M = ["onTransitionEnd"], S = ["onToggle"], y = ["onChange"], f = [
|
|
66
|
-
...r,
|
|
67
|
-
...i,
|
|
68
|
-
...c,
|
|
69
|
-
...u,
|
|
70
|
-
...E,
|
|
71
|
-
...v,
|
|
72
|
-
...d,
|
|
73
|
-
...l,
|
|
74
|
-
...p,
|
|
75
|
-
...P,
|
|
76
|
-
...g,
|
|
77
|
-
...m,
|
|
78
|
-
...C,
|
|
79
|
-
...h,
|
|
80
|
-
...D,
|
|
81
|
-
...M,
|
|
82
|
-
...y,
|
|
83
|
-
...S
|
|
84
|
-
];
|
|
85
|
-
function L(s, t) {
|
|
86
|
-
const o = {};
|
|
87
|
-
for (const n of f) {
|
|
88
|
-
const e = s[n];
|
|
89
|
-
e && (t ? o[n] = ((a) => e(a, t(n))) : o[n] = e);
|
|
90
|
-
}
|
|
91
|
-
return o;
|
|
92
|
-
}
|
|
93
|
-
export {
|
|
94
|
-
f as allEvents,
|
|
95
|
-
D as animationEvents,
|
|
96
|
-
y as changeEvents,
|
|
97
|
-
r as clipboardEvents,
|
|
98
|
-
i as compositionEvents,
|
|
99
|
-
L as default,
|
|
100
|
-
p as dragEvents,
|
|
101
|
-
c as focusEvents,
|
|
102
|
-
u as formEvents,
|
|
103
|
-
E as imageEvents,
|
|
104
|
-
v as keyboardEvents,
|
|
105
|
-
d as mediaEvents,
|
|
106
|
-
l as mouseEvents,
|
|
107
|
-
S as otherEvents,
|
|
108
|
-
m as pointerEvents,
|
|
109
|
-
P as selectionEvents,
|
|
110
|
-
g as touchEvents,
|
|
111
|
-
M as transitionEvents,
|
|
112
|
-
C as uiEvents,
|
|
113
|
-
h as wheelEvents
|
|
114
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
function s() {
|
|
3
|
-
for (var a = [], e = 0; e < arguments.length; e++)
|
|
4
|
-
a[e] = arguments[e];
|
|
5
|
-
var n = a.filter(Boolean);
|
|
6
|
-
if (n.length <= 1) {
|
|
7
|
-
var o = n[0];
|
|
8
|
-
return o || null;
|
|
9
|
-
}
|
|
10
|
-
return function(f) {
|
|
11
|
-
for (var t = 0, l = n; t < l.length; t++) {
|
|
12
|
-
var r = l[t];
|
|
13
|
-
typeof r == "function" ? r(f) : r && (r.current = f);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
s as default
|
|
19
|
-
};
|