@gustavo-valsechi/client 1.4.63 → 1.4.64

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.
@@ -53,15 +53,16 @@ const TargetProviderContainer = ({ children }) => {
53
53
  if (isShow) {
54
54
  const showIndex = import_lodash.default.findIndex(showMemory, (data) => data.index === index);
55
55
  showMemory.splice(showIndex, 1);
56
+ console.log("showMemory", showMemory);
56
57
  setShow(showMemory);
57
58
  return;
58
59
  }
59
60
  showMemory.push({ index, coords: getCoords(element) });
61
+ console.log("showMemory", showMemory);
60
62
  setShow(showMemory);
61
63
  });
62
64
  });
63
65
  }, [targets]);
64
- console.log(show);
65
66
  const getCoords = (target) => {
66
67
  const rect = target.getBoundingClientRect();
67
68
  const targetTop = rect.top + window.scrollY;
@@ -96,7 +97,9 @@ const TargetProviderContainer = ({ children }) => {
96
97
  },
97
98
  children: [
98
99
  import_lodash.default.map(targets, (target, index) => {
100
+ console.log("show", show);
99
101
  const targetContent = import_lodash.default.find(show, (data) => data.index === index);
102
+ console.log("targetContent", targetContent);
100
103
  if (!targetContent) return;
101
104
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
102
105
  import_styles.Container,
@@ -19,15 +19,16 @@ const TargetProviderContainer = ({ children }) => {
19
19
  if (isShow) {
20
20
  const showIndex = _.findIndex(showMemory, (data) => data.index === index);
21
21
  showMemory.splice(showIndex, 1);
22
+ console.log("showMemory", showMemory);
22
23
  setShow(showMemory);
23
24
  return;
24
25
  }
25
26
  showMemory.push({ index, coords: getCoords(element) });
27
+ console.log("showMemory", showMemory);
26
28
  setShow(showMemory);
27
29
  });
28
30
  });
29
31
  }, [targets]);
30
- console.log(show);
31
32
  const getCoords = (target) => {
32
33
  const rect = target.getBoundingClientRect();
33
34
  const targetTop = rect.top + window.scrollY;
@@ -62,7 +63,9 @@ const TargetProviderContainer = ({ children }) => {
62
63
  },
63
64
  children: [
64
65
  _.map(targets, (target, index) => {
66
+ console.log("show", show);
65
67
  const targetContent = _.find(show, (data) => data.index === index);
68
+ console.log("targetContent", targetContent);
66
69
  if (!targetContent) return;
67
70
  return /* @__PURE__ */ jsx(
68
71
  Container,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.63",
3
+ "version": "1.4.64",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",