@gustavo-valsechi/client 1.4.53 → 1.4.55

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.
@@ -49,8 +49,9 @@ const TargetProviderContainer = ({ children }) => {
49
49
  const element = (_a = target.ref) == null ? void 0 : _a.current;
50
50
  if (!element) return;
51
51
  element.addEventListener("click", () => {
52
- console.log(showMemory);
52
+ console.log("showMemory", showMemory);
53
53
  const isShow = import_lodash.default.find(showMemory, (data) => data.index === index);
54
+ console.log("isShow", isShow);
54
55
  if (isShow) {
55
56
  showMemory.slice(index, 1);
56
57
  setShow(showMemory);
@@ -61,6 +62,7 @@ const TargetProviderContainer = ({ children }) => {
61
62
  });
62
63
  });
63
64
  }, [targets]);
65
+ console.log("targets", targets);
64
66
  const getCoords = (target) => {
65
67
  const rect = target.getBoundingClientRect();
66
68
  const targetTop = rect.top + window.scrollY;
@@ -78,6 +80,7 @@ const TargetProviderContainer = ({ children }) => {
78
80
  return coords;
79
81
  };
80
82
  const add = (target) => {
83
+ console.log("AQQQQQQ");
81
84
  memory.push(target);
82
85
  setTargets(memory);
83
86
  };
@@ -15,8 +15,9 @@ const TargetProviderContainer = ({ children }) => {
15
15
  const element = (_a = target.ref) == null ? void 0 : _a.current;
16
16
  if (!element) return;
17
17
  element.addEventListener("click", () => {
18
- console.log(showMemory);
18
+ console.log("showMemory", showMemory);
19
19
  const isShow = _.find(showMemory, (data) => data.index === index);
20
+ console.log("isShow", isShow);
20
21
  if (isShow) {
21
22
  showMemory.slice(index, 1);
22
23
  setShow(showMemory);
@@ -27,6 +28,7 @@ const TargetProviderContainer = ({ children }) => {
27
28
  });
28
29
  });
29
30
  }, [targets]);
31
+ console.log("targets", targets);
30
32
  const getCoords = (target) => {
31
33
  const rect = target.getBoundingClientRect();
32
34
  const targetTop = rect.top + window.scrollY;
@@ -44,6 +46,7 @@ const TargetProviderContainer = ({ children }) => {
44
46
  return coords;
45
47
  };
46
48
  const add = (target) => {
49
+ console.log("AQQQQQQ");
47
50
  memory.push(target);
48
51
  setTargets(memory);
49
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.53",
3
+ "version": "1.4.55",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",