@os-team/profile 1.2.2 → 1.2.4

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/README.md CHANGED
@@ -193,7 +193,7 @@ import {
193
193
  Navigation,
194
194
  NavigationItem,
195
195
  } from '@os-design/core';
196
- import { useLocation, Link } from 'react-router-dom';
196
+ import { useLocation, Link } from 'react-router';
197
197
  import {
198
198
  UserAvatarAddon,
199
199
  ProfileDrawer,
@@ -266,7 +266,7 @@ Wrap your app in `ProtectedWrapper` like this:
266
266
  import React, { Suspense } from 'react';
267
267
  import { GlobalStyles } from '@os-design/core';
268
268
  import { ThemeProvider } from '@os-design/theming';
269
- import { BrowserRouter } from 'react-router-dom';
269
+ import { BrowserRouter } from 'react-router';
270
270
  import { RelayEnvironmentProvider } from 'react-relay/hooks';
271
271
  import { ProtectedWrapper } from '@os-team/profile';
272
272
  import ErrorBoundary from '@os-design/error-boundary';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@os-team/profile",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "license": "UNLICENSED",
5
5
  "repository": "git@gitlab.com:os-team/libs/profile.git",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "relay:watch": "yarn relay --watch",
23
23
  "dev-start": "react-app-rewired start",
24
24
  "dev": "yarn relay && npm-run-all dev-start relay:watch",
25
- "test": "react-app-rewired test --watchAll=false --passWithNoTests",
25
+ "test": "exit 0",
26
26
  "ncu": "ncu -u",
27
27
  "lint": "eslint --fix .",
28
28
  "lint-check": "eslint .",
@@ -35,14 +35,14 @@
35
35
  "registry": "https://registry.npmjs.org"
36
36
  },
37
37
  "dependencies": {
38
- "@os-design/core": "^1.0.261",
39
- "@os-design/form": "^1.0.96",
40
- "@os-design/icons": "^1.0.64",
41
- "@os-design/media": "^1.0.29",
42
- "@os-design/styles": "^1.0.61",
43
- "@os-design/theming": "^1.0.57",
44
- "@os-design/utils": "^1.0.81",
45
- "@os-team/plural-forms": "^1.0.14"
38
+ "@os-design/core": "^1.0.263",
39
+ "@os-design/form": "^1.0.98",
40
+ "@os-design/icons": "^1.0.66",
41
+ "@os-design/media": "^1.0.30",
42
+ "@os-design/styles": "^1.0.63",
43
+ "@os-design/theming": "^1.0.59",
44
+ "@os-design/utils": "^1.0.83",
45
+ "@os-team/plural-forms": "^1.0.15"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@babel/cli": "^7.25.9",
@@ -54,38 +54,36 @@
54
54
  "@emotion/react": "^11.13.5",
55
55
  "@emotion/serialize": "^1.3.3",
56
56
  "@emotion/styled": "^11.13.5",
57
- "@os-team/prettier-config": "1.2.5",
57
+ "@os-team/prettier-config": "1.2.7",
58
58
  "@os-team/relay-network-creator": "^1.3.1",
59
- "@os-team/relay-network-mw-upload": "^1.2.24",
60
- "@types/jest": "^29.5.14",
61
- "@types/node": "^22.9.3",
59
+ "@os-team/relay-network-mw-upload": "^1.2.25",
60
+ "@types/node": "^22.10.0",
62
61
  "@types/react": "^18.3.12",
63
62
  "@types/react-dom": "^18.3.1",
64
63
  "@types/react-relay": "^16.0.6",
65
- "@types/react-router-dom": "^5.3.3",
66
- "@typescript-eslint/eslint-plugin": "^8.15.0",
67
- "@typescript-eslint/parser": "^8.15.0",
64
+ "@typescript-eslint/eslint-plugin": "^8.16.0",
65
+ "@typescript-eslint/parser": "^8.16.0",
68
66
  "babel-plugin-relay": "^18.2.0",
69
67
  "cross-env": "^7.0.3",
70
68
  "eslint": "^9.15.0",
71
- "eslint-config-os-team-react": "1.2.20",
69
+ "eslint-config-os-team-react": "1.2.25",
72
70
  "get-graphql-schema": "^2.1.2",
73
71
  "graphql": "^16.9.0",
74
72
  "husky": "^9.1.7",
75
- "i18next": "^24.0.0",
73
+ "i18next": "^24.0.2",
76
74
  "i18next-browser-languagedetector": "^8.0.0",
77
75
  "i18next-http-backend": "^3.0.1",
78
76
  "lazysizes": "^5.3.2",
79
77
  "lint-staged": "^15.2.10",
80
78
  "npm-run-all": "^4.1.5",
81
- "prettier": "3.3.3",
79
+ "prettier": "3.4.1",
82
80
  "progress-bar-webpack-plugin": "^2.1.0",
83
81
  "react": "^18.3.1",
84
82
  "react-app-rewired": "^2.2.1",
85
83
  "react-dom": "^18.3.1",
86
- "react-i18next": "^15.1.1",
84
+ "react-i18next": "^15.1.2",
87
85
  "react-relay": "^18.2.0",
88
- "react-router-dom": "^7.0.1",
86
+ "react-router": "^7.0.1",
89
87
  "react-scripts": "^5.0.1",
90
88
  "react-test-renderer": "^18.3.1",
91
89
  "relay-compiler": "^18.2.0",
@@ -111,7 +109,7 @@
111
109
  "react-dom": "^18.2.0",
112
110
  "react-i18next": ">=11",
113
111
  "react-relay": "^14.1.0",
114
- "react-router-dom": ">=5",
112
+ "react-router": ">=5",
115
113
  "react-scripts": ">=5",
116
114
  "relay-compiler": ">=12",
117
115
  "relay-runtime": ">=12"
package/src/App.tsx CHANGED
@@ -1,7 +1,7 @@
1
1
  import React, { Suspense } from 'react';
2
2
  import { GlobalStyles } from '@os-design/core';
3
3
  import { ThemeProvider } from '@os-design/theming';
4
- import { BrowserRouter } from 'react-router-dom';
4
+ import { BrowserRouter } from 'react-router';
5
5
  import { RelayEnvironmentProvider } from 'react-relay';
6
6
  import { ErrorBoundary, type FallbackFn } from '@os-design/utils';
7
7
  import AppRouter from './AppRouter';
package/src/AppRouter.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Routes, Route, Navigate } from 'react-router-dom';
2
+ import { Routes, Route, Navigate } from 'react-router';
3
3
  import HomePage from './pages/HomePage';
4
4
 
5
5
  const AppRouter: React.FC = () => (
@@ -4,7 +4,7 @@ import {
4
4
  Navigation,
5
5
  NavigationItem,
6
6
  } from '@os-design/core';
7
- import { useLocation, Link } from 'react-router-dom';
7
+ import { useLocation, Link } from 'react-router';
8
8
  import { useTranslation } from 'react-i18next';
9
9
  import HomeIcon from './icons/HomeIcon';
10
10
  import {
package/src/i18next.ts CHANGED
@@ -3,6 +3,7 @@ import HttpBackend from 'i18next-http-backend';
3
3
  import { initReactI18next } from 'react-i18next';
4
4
  import LanguageDetector from 'i18next-browser-languagedetector';
5
5
 
6
+ // eslint-disable-next-line import/no-named-as-default-member
6
7
  i18next
7
8
  .use(HttpBackend) // Load translation. See /public/locales
8
9
  .use(LanguageDetector) // Detect user language