Skip to content

Commit

Permalink
Merge pull request #479 from mg3-codes/react19
Browse files Browse the repository at this point in the history
Major package upgrades
  • Loading branch information
mgamlem3 authored Dec 14, 2024
2 parents a875f54 + 073653b commit 0a89ced
Show file tree
Hide file tree
Showing 86 changed files with 633 additions and 611 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
48 changes: 24 additions & 24 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

192 changes: 96 additions & 96 deletions .yarn/releases/yarn-3.5.1.cjs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

# Changelog

## 0.5.6
- Upgrade to React 19
- Upgrade to AG Grid 33
- Upgrade to Vite 6

## 0.5.5
- Upgrade packages
- Switch to css & lightningcss
Expand Down
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ag-grid-community@32.3.3/styles/ag-grid.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ag-grid-community@32.3.3/styles/ag-theme-quartz.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>D&D Spell Finder</title>
</head>
Expand Down
25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dnd-spell-organizer",
"license": "MIT",
"version": "0.5.5",
"version": "0.5.6",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -15,32 +15,31 @@
"outdated": "yarn upgrade-interactive"
},
"dependencies": {
"@ag-grid-community/client-side-row-model": "^32.3.3",
"@ag-grid-community/core": "^32.3.3",
"@ag-grid-community/react": "^32.3.3",
"@popperjs/core": "^2.11.8",
"@rollbar/react": "^0.12.0-beta",
"ag-grid-community": "^32.3.3",
"ag-grid-community": "^33.0.1",
"ag-grid-react": "^33.0.1",
"path": "^0.12.7",
"react": "^18.3.1",
"react": "^19.0.0",
"react-bootstrap": "^2.10.6",
"react-dom": "^18.3.1",
"react-router-dom": "^6.28.0",
"react-dom": "^19.0.0",
"react-router": "^7.0.2",
"rollbar": "^2.26.4"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@swc/core": "1.10.0",
"@swc/core": "1.10.1",
"@swc/helpers": "^0.5.15",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.1",
"@types/react": "18.3.14",
"@types/react-dom": "^18.3.2",
"@types/node": "^22.10.2",
"@types/react": "19.0.1",
"@types/react-dom": "^19.0.2",
"@types/react-router": "^5.1.20",
"@vitejs/plugin-react-swc": "^3.7.2",
"cypress": "^13.16.1",
"lightningcss": "^1.28.2",
"typescript": "^5.7.2",
"vite": "5.4.11"
"vite": "6.0.3"
},
"packageManager": "yarn@3.5.1"
}
6 changes: 3 additions & 3 deletions src/components/export-page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { useCallback, useContext, useEffect, useMemo } from "react";
import Alert from "react-bootstrap/Alert";
import { useSearchParams } from "react-router-dom";
import { useSearchParams } from "react-router";

import { Theme } from "../../enums/theme";
import { PrintCard } from "../print-card";
Expand Down Expand Up @@ -60,12 +60,12 @@ const ExportPage = () => {
// biome-ignore lint/correctness/useExhaustiveDependencies(getColumnClassName): this should only execute on page load
// biome-ignore lint/correctness/useExhaustiveDependencies(queryParams.get): this should only execute on page load
const generatedCards = useMemo(() => {
const elements: JSX.Element[] = [];
const elements: React.ReactNode[] = [];
const numColumns = Number.parseInt(queryParams.get("numPerRow") ?? "3");
const rowsPerPage = 2;
let counter = 0;
while (counter <= selectedRows.length) {
const pageElements: JSX.Element[][] = [];
const pageElements: React.ReactNode[] = [];
for (let i = 0; i < rowsPerPage; i++) {
const rowSlice = selectedRows.slice(
i * numColumns + counter,
Expand Down
5 changes: 1 addition & 4 deletions src/components/filters/area-filter/area-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* @format
*/

import {
type CustomFilterProps,
useGridFilter,
} from "@ag-grid-community/react";
import { type CustomFilterProps, useGridFilter } from "ag-grid-react";
import { useRollbar } from "@rollbar/react";
import type React from "react";
import {
Expand Down
5 changes: 1 addition & 4 deletions src/components/filters/attack-filter/attack-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* @format
*/

import {
type CustomFilterProps,
useGridFilter,
} from "@ag-grid-community/react";
import { type CustomFilterProps, useGridFilter } from "ag-grid-react";
import { useRollbar } from "@rollbar/react";
import type React from "react";
import {
Expand Down
7 changes: 2 additions & 5 deletions src/components/filters/boolean-filter/boolean-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
* @format
*/

import type { RowNode } from "@ag-grid-community/core";
import {
type CustomFilterProps,
useGridFilter,
} from "@ag-grid-community/react";
import type { RowNode } from "ag-grid-community";
import { type CustomFilterProps, useGridFilter } from "ag-grid-react";
import { useRollbar } from "@rollbar/react";
import type React from "react";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* @format
*/

import {
type CustomFilterProps,
useGridFilter,
} from "@ag-grid-community/react";
import { type CustomFilterProps, useGridFilter } from "ag-grid-react";
import { useRollbar } from "@rollbar/react";
import type React from "react";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* @format
*/

import {
type CustomFilterProps,
useGridFilter,
} from "@ag-grid-community/react";
import { type CustomFilterProps, useGridFilter } from "ag-grid-react";
import { useRollbar } from "@rollbar/react";
import type React from "react";
import {
Expand Down
5 changes: 1 addition & 4 deletions src/components/filters/duration-filter/duration-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* @format
*/

import {
type CustomFilterProps,
useGridFilter,
} from "@ag-grid-community/react";
import { type CustomFilterProps, useGridFilter } from "ag-grid-react";
import { useRollbar } from "@rollbar/react";
import type React from "react";
import {
Expand Down
5 changes: 1 addition & 4 deletions src/components/filters/effect-filter/effect-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* @format
*/

import {
type CustomFilterProps,
useGridFilter,
} from "@ag-grid-community/react";
import { type CustomFilterProps, useGridFilter } from "ag-grid-react";
import { useRollbar } from "@rollbar/react";
import type React from "react";
import {
Expand Down
5 changes: 1 addition & 4 deletions src/components/filters/level-filter/level-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* @format
*/

import {
type CustomFilterProps,
useGridFilter,
} from "@ag-grid-community/react";
import { type CustomFilterProps, useGridFilter } from "ag-grid-react";
import { useRollbar } from "@rollbar/react";
import type React from "react";
import {
Expand Down
5 changes: 1 addition & 4 deletions src/components/filters/range-filter/range-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* @format
*/

import {
type CustomFilterProps,
useGridFilter,
} from "@ag-grid-community/react";
import { type CustomFilterProps, useGridFilter } from "ag-grid-react";
import { useRollbar } from "@rollbar/react";
import type React from "react";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* @format
*/

import {
type CustomFilterProps,
useGridFilter,
} from "@ag-grid-community/react";
import { type CustomFilterProps, useGridFilter } from "ag-grid-react";
import { useRollbar } from "@rollbar/react";
import type React from "react";
import {
Expand Down
5 changes: 1 addition & 4 deletions src/components/filters/school-filter/school-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* @format
*/

import {
type CustomFilterProps,
useGridFilter,
} from "@ag-grid-community/react";
import { type CustomFilterProps, useGridFilter } from "ag-grid-react";
import { useRollbar } from "@rollbar/react";
import type React from "react";
import {
Expand Down
5 changes: 1 addition & 4 deletions src/components/filters/source-filter/source-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* @format
*/

import {
type CustomFilterProps,
useGridFilter,
} from "@ag-grid-community/react";
import { type CustomFilterProps, useGridFilter } from "ag-grid-react";
import { useRollbar } from "@rollbar/react";
import type React from "react";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/components/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const Footer = () => {

return (
<div className="footer">
<span className="version">Version: 0.5.5</span>
<span className="version">Version: 0.5.6</span>
<div className="links">
<Button variant="link" onClick={openHelpModal}>
Help
Expand Down
2 changes: 1 addition & 1 deletion src/components/heading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import React, { useCallback, useContext, useState } from "react";
import Button from "react-bootstrap/Button";
import { Link, useLocation } from "react-router-dom";
import { Link, useLocation } from "react-router";

import { SelectedRowContext } from "../selected-row-context-provider";

Expand Down
2 changes: 1 addition & 1 deletion src/components/index-page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import React, { Suspense, useEffect } from "react";
import { useNavigate, useSearchParams } from "react-router-dom";
import { useNavigate, useSearchParams } from "react-router";

const Heading = React.lazy(() => import("../heading"));
const LoadingSpinner = React.lazy(() => import("../loading-spinner"));
Expand Down
2 changes: 1 addition & 1 deletion src/components/not-found-page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @format
*/

import { Link } from "react-router-dom";
import { Link } from "react-router";

import "./styles.css";

Expand Down
2 changes: 1 addition & 1 deletion src/components/numbered-dice-selector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface INumberedDiceSelectorProps {

export const NumberedDiceSelector = ({
onRollClicked,
}: INumberedDiceSelectorProps): JSX.Element => {
}: INumberedDiceSelectorProps): React.ReactElement => {
const [twoSidedInputValue, setTwoSidedInputValue] = useState<string>("0");
const [fourSidedInputValue, setFourSidedInputValue] = useState<string>("0");
const [sixSidedInputValue, setSixSidedInputValue] = useState<string>("0");
Expand Down
2 changes: 1 addition & 1 deletion src/components/page-wrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface IPageWrapperProps {
children: React.ReactNode;
}

const PageWrapper = ({ children }: IPageWrapperProps): JSX.Element => {
const PageWrapper = ({ children }: IPageWrapperProps): React.ReactElement => {
const { currentTheme } = useContext(ThemeContext);

useLayoutEffect(() => {
Expand Down
8 changes: 6 additions & 2 deletions src/components/print-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Button from "react-bootstrap/Button";
import Carousel from "react-bootstrap/Carousel";
import Dropdown from "react-bootstrap/Dropdown";
import Modal from "react-bootstrap/Modal";
import { Link } from "react-router-dom";
import { Link } from "react-router";

import { PrintCard } from "../print-card";
import { ThemeContext } from "../theme-context-provider";
Expand All @@ -34,7 +34,11 @@ export interface IPrintModalProps {
rows?: TableRow[];
}

const PrintModal = ({ isOpen, toggleIsOpen, rows }: IPrintModalProps) => {
const PrintModal = ({
isOpen,
toggleIsOpen,
rows,
}: IPrintModalProps): React.ReactElement => {
const [selectedNumberPerRow, setSelectedNumberPerRow] = useState<number>(3);
const [printError, setPrintError] = useState<boolean>(false);
const { currentTheme } = useContext(ThemeContext);
Expand Down
2 changes: 1 addition & 1 deletion src/components/roll-history-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const RollHistoryModal = ({
[],
);

const getPages = (): JSX.Element[] => {
const getPages = (): React.ReactElement[] => {
const pages = [];

for (let i = 0; i < currentHistory.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings-offcanvas/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { ThemeContext } from "../theme-context-provider";

import "./styles.css";

const SettingsOffcanvas = (): JSX.Element => {
const SettingsOffcanvas = (): React.ReactElement => {
const [show, setShow] = useState<boolean>(false);
const { useCookies, setUseCookies } = useContext(AppSettingsContext);
const { updateTheme, selectedThemeOption } = useContext(ThemeContext);
Expand Down
Loading

0 comments on commit 0a89ced

Please sign in to comment.