@gustavo-valsechi/client 1.4.324 → 1.4.326

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.
@@ -69,20 +69,6 @@ const TargetProviderContainer = ({ children }) => {
69
69
  focusable.addEventListener("blur", () => (0, import_events.onBlur)(target, index, close, focusable, insideMemory));
70
70
  });
71
71
  }, [targets, inputRef, containerRef, theme.content.isMobile]);
72
- (0, import_react.useEffect)(() => {
73
- const observer = new MutationObserver((mutations) => {
74
- for (const mutation of mutations) {
75
- mutation.removedNodes.forEach((node) => {
76
- if (!(node instanceof HTMLElement)) return;
77
- memory = import_lodash.default.filter(memory, (target) => !!target.ref.current);
78
- insideMemory = [];
79
- setTargets([...memory]);
80
- });
81
- }
82
- });
83
- observer.observe(document.body, { childList: true, subtree: true });
84
- return () => observer.disconnect();
85
- }, []);
86
72
  const getCoords = (target, component) => {
87
73
  const rect = target.getBoundingClientRect();
88
74
  const targetTop = rect.top + window.scrollY;
@@ -35,20 +35,6 @@ const TargetProviderContainer = ({ children }) => {
35
35
  focusable.addEventListener("blur", () => onBlur(target, index, close, focusable, insideMemory));
36
36
  });
37
37
  }, [targets, inputRef, containerRef, theme.content.isMobile]);
38
- useEffect(() => {
39
- const observer = new MutationObserver((mutations) => {
40
- for (const mutation of mutations) {
41
- mutation.removedNodes.forEach((node) => {
42
- if (!(node instanceof HTMLElement)) return;
43
- memory = _.filter(memory, (target) => !!target.ref.current);
44
- insideMemory = [];
45
- setTargets([...memory]);
46
- });
47
- }
48
- });
49
- observer.observe(document.body, { childList: true, subtree: true });
50
- return () => observer.disconnect();
51
- }, []);
52
38
  const getCoords = (target, component) => {
53
39
  const rect = target.getBoundingClientRect();
54
40
  const targetTop = rect.top + window.scrollY;
@@ -13,6 +13,7 @@ export interface ICommonTheme {
13
13
  mobileMaxWidth: string;
14
14
  mobileMinWidth: string;
15
15
  isMobile: boolean;
16
+ [key: string]: any;
16
17
  }
17
18
  export interface IThemeContent extends ICommonTheme {
18
19
  primary: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.324",
3
+ "version": "1.4.326",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",