@trackunit/react-form-components 2.1.8 → 2.1.9

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 CHANGED
@@ -388,6 +388,8 @@ const LANG_STORAGE_KEY = "i18nextLng";
388
388
  */
389
389
  const useDateFieldLocale = () => {
390
390
  const browserLocale = typeof navigator !== "undefined" ? navigator.language : "";
391
+ // TODO: migrate to useLocalStorage hook — this file was exempted when the no-direct-storage-access rule was introduced
392
+ // eslint-disable-next-line no-restricted-globals
391
393
  const selectedLanguage = typeof localStorage !== "undefined" ? localStorage.getItem(LANG_STORAGE_KEY) : null;
392
394
  return react.useMemo(() => {
393
395
  if (browserLocale.includes("-")) {
package/index.esm.js CHANGED
@@ -387,6 +387,8 @@ const LANG_STORAGE_KEY = "i18nextLng";
387
387
  */
388
388
  const useDateFieldLocale = () => {
389
389
  const browserLocale = typeof navigator !== "undefined" ? navigator.language : "";
390
+ // TODO: migrate to useLocalStorage hook — this file was exempted when the no-direct-storage-access rule was introduced
391
+ // eslint-disable-next-line no-restricted-globals
390
392
  const selectedLanguage = typeof localStorage !== "undefined" ? localStorage.getItem(LANG_STORAGE_KEY) : null;
391
393
  return useMemo(() => {
392
394
  if (browserLocale.includes("-")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-form-components",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "migrations": "./migrations.json",
@@ -10,17 +10,17 @@
10
10
  "dependencies": {
11
11
  "react-calendar": "^6.0.0",
12
12
  "react-select": "^5.10.2",
13
- "@trackunit/date-and-time-utils": "1.13.18",
13
+ "@trackunit/date-and-time-utils": "1.13.19",
14
14
  "usehooks-ts": "^3.1.0",
15
15
  "libphonenumber-js": "^1.12.22",
16
16
  "zod": "^3.25.76",
17
17
  "tailwind-merge": "^2.0.0",
18
- "@trackunit/css-class-variance-utilities": "1.13.17",
19
- "@trackunit/react-components": "2.1.7",
20
- "@trackunit/ui-icons": "1.13.18",
21
- "@trackunit/shared-utils": "1.15.17",
22
- "@trackunit/ui-design-tokens": "1.13.17",
23
- "@trackunit/i18n-library-translation": "2.0.9",
18
+ "@trackunit/css-class-variance-utilities": "1.13.18",
19
+ "@trackunit/react-components": "2.1.8",
20
+ "@trackunit/ui-icons": "1.13.19",
21
+ "@trackunit/shared-utils": "1.15.18",
22
+ "@trackunit/ui-design-tokens": "1.13.18",
23
+ "@trackunit/i18n-library-translation": "2.0.10",
24
24
  "string-ts": "^2.0.0",
25
25
  "es-toolkit": "^1.39.10"
26
26
  },