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.
Files changed (2) hide show
  1. package/dist/beca-ui.js +25 -30
  2. 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((D) => {
143705
+ }, z = useCallback(() => c.filter((j) => j.page === u).map((j) => {
143712
143706
  const {
143713
- left: j,
143714
- top: U,
143715
- title: P,
143716
- width: F,
143717
- height: B,
143718
- image: A,
143719
- page: Q
143720
- } = D;
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: D.id,
143718
+ id: j.id,
143725
143719
  data: c,
143726
- left: j,
143727
- top: U,
143720
+ left: U,
143721
+ top: P,
143728
143722
  hideSourceOnDrag: s,
143729
- onChangeBoxSize: (H, le) => {
143730
- I(D.id, H, le);
143723
+ onChangeBoxSize: (le, ee) => {
143724
+ I(j.id, le, ee);
143731
143725
  },
143732
- onDelete: (H) => X(H),
143726
+ onDelete: (le) => X(le),
143733
143727
  onHandleBox: E,
143734
143728
  pageHeight: y,
143735
143729
  pageWidth: M,
143736
- boxWidth: F,
143737
- boxHeight: B,
143738
- page: Q,
143739
- image: A,
143730
+ boxWidth: B,
143731
+ boxHeight: A,
143732
+ page: H,
143733
+ image: Q,
143740
143734
  activeKey: T,
143741
- imageType: D.imageType,
143742
- resizable: D.resizable,
143743
- children: P
143735
+ imageType: j.imageType,
143736
+ resizable: j.resizable,
143737
+ children: F
143744
143738
  },
143745
- D.id
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(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {