@trackunit/react-components 0.1.71 → 0.1.75

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 (3) hide show
  1. package/index.cjs +0 -17
  2. package/index.js +0 -17
  3. package/package.json +4 -4
package/index.cjs CHANGED
@@ -1627,23 +1627,6 @@ const useLocalStorage = (key, initialValue) => {
1627
1627
  removeLocalStorageItem();
1628
1628
  }
1629
1629
  }, [item, setLocalStorageItem, removeLocalStorageItem, key]);
1630
- /*
1631
- // Sync local storage between tabs / windows
1632
- useEffect(() => {
1633
- const handleStorageChange = (e: StorageEvent) => {
1634
- if (e.key === key) {
1635
- setValue(tryParse(e.newValue));
1636
- }
1637
- };
1638
-
1639
- window.addEventListener("storage", handleStorageChange);
1640
-
1641
- return () => {
1642
- window.removeEventListener("storage", handleStorageChange);
1643
- };
1644
- // eslint-disable-next-line react-hooks/exhaustive-deps
1645
- }, []);
1646
- */
1647
1630
  const removeItem = () => {
1648
1631
  setValue(null);
1649
1632
  };
package/index.js CHANGED
@@ -1597,23 +1597,6 @@ const useLocalStorage = (key, initialValue) => {
1597
1597
  removeLocalStorageItem();
1598
1598
  }
1599
1599
  }, [item, setLocalStorageItem, removeLocalStorageItem, key]);
1600
- /*
1601
- // Sync local storage between tabs / windows
1602
- useEffect(() => {
1603
- const handleStorageChange = (e: StorageEvent) => {
1604
- if (e.key === key) {
1605
- setValue(tryParse(e.newValue));
1606
- }
1607
- };
1608
-
1609
- window.addEventListener("storage", handleStorageChange);
1610
-
1611
- return () => {
1612
- window.removeEventListener("storage", handleStorageChange);
1613
- };
1614
- // eslint-disable-next-line react-hooks/exhaustive-deps
1615
- }, []);
1616
- */
1617
1600
  const removeItem = () => {
1618
1601
  setValue(null);
1619
1602
  };
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.1.71",
3
+ "version": "0.1.75",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
7
- "@trackunit/css-core": "0.0.76",
7
+ "@trackunit/css-core": "0.0.77",
8
8
  "@trackunit/tailwind-styled-components": "0.0.54",
9
- "@trackunit/ui-design-tokens": "0.0.62",
9
+ "@trackunit/ui-design-tokens": "0.0.63",
10
10
  "react": "18.2.0",
11
11
  "react-use": "17.4.0",
12
12
  "uuid": "8.3.2",
13
13
  "date-fns": "2.29.3",
14
14
  "react-day-picker": "8.3.7",
15
15
  "@floating-ui/react": "0.22.2",
16
- "@trackunit/ui-icons": "0.0.61",
16
+ "@trackunit/ui-icons": "0.0.62",
17
17
  "react-useportal": "1.0.17",
18
18
  "libphonenumber-js": "1.10.24",
19
19
  "react-router-dom": "6.4.5",