@trackunit/react-components 2.1.6 → 2.1.8
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.
- package/index.cjs.js +4 -0
- package/index.esm.js +4 -0
- package/package.json +6 -6
package/index.cjs.js
CHANGED
|
@@ -11951,6 +11951,8 @@ const usePersistedState = ({ key, validate, serialize, toUrlValue, fromUrlValue,
|
|
|
11951
11951
|
let storageState;
|
|
11952
11952
|
if (localStorageEnabled) {
|
|
11953
11953
|
try {
|
|
11954
|
+
// TODO: migrate to useLocalStorage hook — this file was exempted when the no-direct-storage-access rule was introduced
|
|
11955
|
+
// eslint-disable-next-line no-restricted-globals
|
|
11954
11956
|
const raw = localStorage.getItem(storageKey);
|
|
11955
11957
|
if (raw) {
|
|
11956
11958
|
const parsed = storageSerializer.deserialize(raw);
|
|
@@ -12086,6 +12088,7 @@ const usePersistedState = ({ key, validate, serialize, toUrlValue, fromUrlValue,
|
|
|
12086
12088
|
const serialized = serializeRef.current
|
|
12087
12089
|
? serializeRef.current(migrated)
|
|
12088
12090
|
: storageSerializer.serialize(migrated);
|
|
12091
|
+
// eslint-disable-next-line no-restricted-globals
|
|
12089
12092
|
localStorage.setItem(storageKey, serialized);
|
|
12090
12093
|
}
|
|
12091
12094
|
const urlValue = toUrlValueRef.current ? toUrlValueRef.current(migrated) : migrated;
|
|
@@ -12100,6 +12103,7 @@ const usePersistedState = ({ key, validate, serialize, toUrlValue, fromUrlValue,
|
|
|
12100
12103
|
lastPersistedRef.current = state;
|
|
12101
12104
|
if (localStorageEnabled) {
|
|
12102
12105
|
const serialized = serializeRef.current ? serializeRef.current(state) : storageSerializer.serialize(state);
|
|
12106
|
+
// eslint-disable-next-line no-restricted-globals
|
|
12103
12107
|
localStorage.setItem(storageKey, serialized);
|
|
12104
12108
|
}
|
|
12105
12109
|
const urlValue = toUrlValueRef.current ? toUrlValueRef.current(state) : state;
|
package/index.esm.js
CHANGED
|
@@ -11949,6 +11949,8 @@ const usePersistedState = ({ key, validate, serialize, toUrlValue, fromUrlValue,
|
|
|
11949
11949
|
let storageState;
|
|
11950
11950
|
if (localStorageEnabled) {
|
|
11951
11951
|
try {
|
|
11952
|
+
// TODO: migrate to useLocalStorage hook — this file was exempted when the no-direct-storage-access rule was introduced
|
|
11953
|
+
// eslint-disable-next-line no-restricted-globals
|
|
11952
11954
|
const raw = localStorage.getItem(storageKey);
|
|
11953
11955
|
if (raw) {
|
|
11954
11956
|
const parsed = storageSerializer.deserialize(raw);
|
|
@@ -12084,6 +12086,7 @@ const usePersistedState = ({ key, validate, serialize, toUrlValue, fromUrlValue,
|
|
|
12084
12086
|
const serialized = serializeRef.current
|
|
12085
12087
|
? serializeRef.current(migrated)
|
|
12086
12088
|
: storageSerializer.serialize(migrated);
|
|
12089
|
+
// eslint-disable-next-line no-restricted-globals
|
|
12087
12090
|
localStorage.setItem(storageKey, serialized);
|
|
12088
12091
|
}
|
|
12089
12092
|
const urlValue = toUrlValueRef.current ? toUrlValueRef.current(migrated) : migrated;
|
|
@@ -12098,6 +12101,7 @@ const usePersistedState = ({ key, validate, serialize, toUrlValue, fromUrlValue,
|
|
|
12098
12101
|
lastPersistedRef.current = state;
|
|
12099
12102
|
if (localStorageEnabled) {
|
|
12100
12103
|
const serialized = serializeRef.current ? serializeRef.current(state) : storageSerializer.serialize(state);
|
|
12104
|
+
// eslint-disable-next-line no-restricted-globals
|
|
12101
12105
|
localStorage.setItem(storageKey, serialized);
|
|
12102
12106
|
}
|
|
12103
12107
|
const urlValue = toUrlValueRef.current ? toUrlValueRef.current(state) : state;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-components",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"migrations": "./migrations.json",
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
"@floating-ui/react": "^0.26.25",
|
|
15
15
|
"string-ts": "^2.0.0",
|
|
16
16
|
"tailwind-merge": "^2.0.0",
|
|
17
|
-
"@trackunit/ui-design-tokens": "1.13.
|
|
18
|
-
"@trackunit/css-class-variance-utilities": "1.13.
|
|
19
|
-
"@trackunit/shared-utils": "1.15.
|
|
20
|
-
"@trackunit/ui-icons": "1.13.
|
|
17
|
+
"@trackunit/ui-design-tokens": "1.13.18",
|
|
18
|
+
"@trackunit/css-class-variance-utilities": "1.13.18",
|
|
19
|
+
"@trackunit/shared-utils": "1.15.18",
|
|
20
|
+
"@trackunit/ui-icons": "1.13.19",
|
|
21
21
|
"es-toolkit": "^1.39.10",
|
|
22
22
|
"@tanstack/react-virtual": "3.13.12",
|
|
23
23
|
"dequal": "^2.0.3",
|
|
24
24
|
"fflate": "^0.8.2",
|
|
25
25
|
"superjson": "^2.2.6",
|
|
26
26
|
"zod": "^3.25.76",
|
|
27
|
-
"@trackunit/i18n-library-translation": "2.0.
|
|
27
|
+
"@trackunit/i18n-library-translation": "2.0.10"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "^19.0.0",
|