Skip to content

Commit

Permalink
Merge pull request #682 from tgstation/REACTPLS
Browse files Browse the repository at this point in the history
Weekly dependencies update
  • Loading branch information
Cyberboss authored Jan 3, 2025
2 parents 307f912 + c5e86cf commit 1e2506c
Show file tree
Hide file tree
Showing 21 changed files with 201 additions and 185 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.54.2",
"react-intl": "^7.0.4",
"react-intl": "^7.1.0",
"react-relay": "^18.2.0",
"react-router-dom": "^7.1.1",
"react-router": "^7.1.1",
"semver": "^7.6.3",
"tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7",
Expand All @@ -86,7 +86,7 @@
"@storybook/react-vite": "^8.4.7",
"@storybook/test": "^8.4.7",
"@storybook/theming": "^8.4.7",
"@types/node": "^22.10.2",
"@types/node": "^22.10.4",
"@types/react": "^18",
"@types/react-dom": "^18.3.1",
"@types/react-relay": "^18.2.0",
Expand All @@ -97,29 +97,29 @@
"autoprefixer": "^10.4.20",
"babel-plugin-relay": "^18.2.0",
"chromatic": "^11.20.2",
"concurrently": "^9.1.0",
"concurrently": "^9.1.2",
"escodegen": "^2.1.0",
"eslint": "^9.17.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.16",
"eslint-plugin-storybook": "0.11.1",
"eslint-plugin-storybook": "0.11.2",
"globals": "^15.14.0",
"postcss": "^8.4.49",
"prettier": "^3.4.2",
"relay-compiler": "^18.2.0",
"relay-test-utils": "^18.2.0",
"rollup-plugin-jsx-remove-attributes": "^2.1.0",
"storybook": "^8.4.7",
"storybook-addon-remix-react-router": "^3.0.2",
"storybook-addon-remix-react-router": "^4.0.0",
"tailwindcss": "^3.4.17",
"type-fest": "^4.31.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.2",
"vite": "^6.0.6",
"typescript-eslint": "^8.19.0",
"vite": "^6.0.7",
"vite-plugin-relay": "^2.1.0"
},
"packageManager": "yarn@4.5.3",
"packageManager": "yarn@4.6.0",
"eslintConfig": {
"extends": [
"plugin:storybook/recommended"
Expand Down
2 changes: 1 addition & 1 deletion src/components/core/Layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Suspense } from "react";
import { Outlet } from "react-router-dom";
import { Outlet } from "react-router";

import ErrorViewer from "../ErrorViewer/ErrorViewer";
import Logo from "../Logo/Logo";
Expand Down
2 changes: 1 addition & 1 deletion src/components/core/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { Menu, X } from "lucide-react";
import { useState } from "react";
import { Link } from "react-router-dom";
import { Link } from "react-router";

import { Button } from "@/components/ui/button";
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { lazy } from "react";
import { Environment, PreloadedQuery, useFragment, usePreloadedQuery } from "react-relay";
import { KeyType } from "react-relay/relay-hooks/helpers";
import { Outlet, RouteObject } from "react-router-dom";
import { Outlet, RouteObject } from "react-router";

import IRoutePermissionsChecker from "./IRoutePermissionsChecker";
import IPermissionedRouteInfo from "./PermissionedRouteInfo";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Navigate, Outlet, useLocation } from "react-router-dom";
import { Navigate, Outlet, useLocation } from "react-router";

import ILocationState from "@/components/routed/Login/LocationState";
import useSession from "@/contexts/session/useSession";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useRouteError } from "react-router-dom";
import { useRouteError } from "react-router";

const RethrowRouteError = () => {
const error = useRouteError();
Expand Down
2 changes: 1 addition & 1 deletion src/components/core/Router/Router.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lazy, useMemo } from "react";
import { useRelayEnvironment } from "react-relay";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import { createBrowserRouter, RouterProvider } from "react-router";

import HomeRoutes from "../../routed/Home/HomeRoutes";

Expand Down
2 changes: 1 addition & 1 deletion src/components/routed/Administration/Administration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { faLinux, faWindows } from "@fortawesome/free-brands-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { FormattedMessage } from "react-intl";
import { PreloadedQuery, usePreloadedQuery } from "react-relay";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import { lt } from "semver";

import { RestartTgsMutation } from "./graphql/__generated__/RestartTgsMutation.graphql";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lazy } from "react";
import { Environment } from "react-relay";
import { RouteObject } from "react-router-dom";
import { RouteObject } from "react-router";

import { AdministrationPermissionsFragment$key } from "./graphql/__generated__/AdministrationPermissionsFragment.graphql";
import { UpdateInformationQuery } from "./graphql/__generated__/UpdateInformationQuery.graphql";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lazy } from "react";
import { Environment } from "react-relay";
import { RouteObject } from "react-router-dom";
import { RouteObject } from "react-router";

import { UpdatePermissionsFragment$key } from "./graphql/__generated__/UpdatePermissionsFragment.graphql";
import { UpdatePreflightQuery } from "./graphql/__generated__/UpdatePreflightQuery.graphql";
Expand Down
2 changes: 1 addition & 1 deletion src/components/routed/Home/HomeCard/HomeCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { FormattedMessage } from "react-intl";
import { Link } from "react-router-dom";
import { Link } from "react-router";

import IHomeCardProps from "./HomeCardProps";

Expand Down
2 changes: 1 addition & 1 deletion src/components/routed/Home/HomeRouteLoader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lazy } from "react";
import { Environment } from "react-relay";
import { RouteObject } from "react-router-dom";
import { RouteObject } from "react-router";

import { HomeCardPermissionsQuery } from "./graphql/__generated__/HomeCardPermissionsQuery.graphql";
import HomeCardPermissions from "./graphql/HomeCardPermissions";
Expand Down
2 changes: 1 addition & 1 deletion src/components/routed/Home/HomeRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from "@fortawesome/free-solid-svg-icons";
import { lazy } from "react";
import { Environment } from "react-relay";
import { RouteObject } from "react-router-dom";
import { RouteObject } from "react-router";

import AdministrationRouteLoader from "../Administration/AdministrationRouteLoader";
import InstancesRouteLoader from "../Instances/InstancesRouteLoader";
Expand Down
2 changes: 1 addition & 1 deletion src/components/routed/Instances/InstancesRouteLoader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lazy } from "react";
import { Environment } from "react-relay";
import { RouteObject } from "react-router-dom";
import { RouteObject } from "react-router";

import { InstancesPermissionsFragment$key } from "./graphql/__generated__/InstancesPermissionsFragment.graphql";
import InstancesPermissions from "./graphql/InstancesPermissions";
Expand Down
2 changes: 1 addition & 1 deletion src/components/routed/Login/LocationState.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Location } from "react-router-dom";
import { Location } from "react-router";

export default interface ILocationState {
from?: Location;
Expand Down
2 changes: 1 addition & 1 deletion src/components/routed/Login/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Suspense, useCallback, useEffect } from "react";
import { FormattedMessage } from "react-intl";
import { useMutation } from "react-relay";
import { Location, Navigate, useLocation } from "react-router-dom";
import { Location, Navigate, useLocation } from "react-router";

import ServerLogin from "../../graphql/ServerLogin";

Expand Down
2 changes: 1 addition & 1 deletion src/components/routed/ServerInfo/ServerInfoRouteLoader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lazy } from "react";
import { Environment } from "react-relay";
import { RouteObject } from "react-router-dom";
import { RouteObject } from "react-router";

import { ServerInformationQuery } from "./graphql/__generated__/ServerInformationQuery.graphql";
import ServerInformation from "./graphql/ServerInformation";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lazy } from "react";
import { Environment } from "react-relay";
import { RouteObject } from "react-router-dom";
import { RouteObject } from "react-router";

import { ChangePasswordPermissionsFragment$key } from "./graphql/__generated__/ChangePasswordPermissionsFragment.graphql";
import { ChangePasswordPreflightQuery } from "./graphql/__generated__/ChangePasswordPreflightQuery.graphql";
Expand Down
2 changes: 1 addition & 1 deletion src/components/routed/Users/UsersRouteLoader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lazy } from "react";
import { Environment } from "react-relay";
import { RouteObject } from "react-router-dom";
import { RouteObject } from "react-router";

import { UsersPermissionsFragment$key } from "./graphql/__generated__/UsersPermissionsFragment.graphql";
import UsersPermissions from "./graphql/UsersPermissions";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RouteQueryLoader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReactNode } from "react";
import { Environment, loadQuery, PreloadedQuery } from "react-relay";
import { LoaderFunctionArgs, RouteObject, useLoaderData } from "react-router-dom";
import { LoaderFunctionArgs, RouteObject, useLoaderData } from "react-router";
import { GraphQLTaggedNode, OperationType, VariablesOf } from "relay-runtime";

import { useOnMountUnsafe } from "./useOnMountUnsafe";
Expand Down
Loading

0 comments on commit 1e2506c

Please sign in to comment.