beca-ui 0.1.42 → 0.1.43
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 +25 -30
- package/package.json +1 -1
package/dist/beca-ui.js
CHANGED
|
@@ -143583,12 +143583,6 @@ const ReactPaginate = /* @__PURE__ */ getDefaultExportFromCjs(reactPaginateExpor
|
|
|
143583
143583
|
},
|
|
143584
143584
|
[d, JSON.stringify(c)]
|
|
143585
143585
|
);
|
|
143586
|
-
useEffect(() => {
|
|
143587
|
-
const D = [];
|
|
143588
|
-
c.forEach((j) => {
|
|
143589
|
-
j.page === u && D.push(j);
|
|
143590
|
-
}), d(D);
|
|
143591
|
-
}, [JSON.stringify(c), u]);
|
|
143592
143586
|
function Y(D) {
|
|
143593
143587
|
if (D.preventDefault(), D.stopPropagation(), T) {
|
|
143594
143588
|
const j = [...c].find(
|
|
@@ -143708,48 +143702,49 @@ const ReactPaginate = /* @__PURE__ */ getDefaultExportFromCjs(reactPaginateExpor
|
|
|
143708
143702
|
B.push(Q);
|
|
143709
143703
|
}
|
|
143710
143704
|
d(B), C(D.id);
|
|
143711
|
-
}, z = useCallback(() => c.map((
|
|
143705
|
+
}, z = useCallback(() => c.filter((j) => j.page === u).map((j) => {
|
|
143712
143706
|
const {
|
|
143713
|
-
left:
|
|
143714
|
-
top:
|
|
143715
|
-
title:
|
|
143716
|
-
width:
|
|
143717
|
-
height:
|
|
143718
|
-
image:
|
|
143719
|
-
page:
|
|
143720
|
-
} =
|
|
143707
|
+
left: U,
|
|
143708
|
+
top: P,
|
|
143709
|
+
title: F,
|
|
143710
|
+
width: B,
|
|
143711
|
+
height: A,
|
|
143712
|
+
image: Q,
|
|
143713
|
+
page: H
|
|
143714
|
+
} = j;
|
|
143721
143715
|
return /* @__PURE__ */ jsx(
|
|
143722
143716
|
Box,
|
|
143723
143717
|
{
|
|
143724
|
-
id:
|
|
143718
|
+
id: j.id,
|
|
143725
143719
|
data: c,
|
|
143726
|
-
left:
|
|
143727
|
-
top:
|
|
143720
|
+
left: U,
|
|
143721
|
+
top: P,
|
|
143728
143722
|
hideSourceOnDrag: s,
|
|
143729
|
-
onChangeBoxSize: (
|
|
143730
|
-
I(
|
|
143723
|
+
onChangeBoxSize: (le, ee) => {
|
|
143724
|
+
I(j.id, le, ee);
|
|
143731
143725
|
},
|
|
143732
|
-
onDelete: (
|
|
143726
|
+
onDelete: (le) => X(le),
|
|
143733
143727
|
onHandleBox: E,
|
|
143734
143728
|
pageHeight: y,
|
|
143735
143729
|
pageWidth: M,
|
|
143736
|
-
boxWidth:
|
|
143737
|
-
boxHeight:
|
|
143738
|
-
page:
|
|
143739
|
-
image:
|
|
143730
|
+
boxWidth: B,
|
|
143731
|
+
boxHeight: A,
|
|
143732
|
+
page: H,
|
|
143733
|
+
image: Q,
|
|
143740
143734
|
activeKey: T,
|
|
143741
|
-
imageType:
|
|
143742
|
-
resizable:
|
|
143743
|
-
children:
|
|
143735
|
+
imageType: j.imageType,
|
|
143736
|
+
resizable: j.resizable,
|
|
143737
|
+
children: F
|
|
143744
143738
|
},
|
|
143745
|
-
|
|
143739
|
+
j.id
|
|
143746
143740
|
);
|
|
143747
143741
|
}), [
|
|
143748
143742
|
JSON.stringify(c),
|
|
143749
143743
|
s,
|
|
143750
143744
|
y,
|
|
143751
143745
|
M,
|
|
143752
|
-
T
|
|
143746
|
+
T,
|
|
143747
|
+
u
|
|
143753
143748
|
]);
|
|
143754
143749
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
143755
143750
|
/* @__PURE__ */ jsxs(
|