Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump react and @types/react in /src #1473

Merged
merged 3 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,37 @@ updates:
aws-sdk:
patterns:
- "@aws-sdk*"

aws-cdk:
patterns:
- "aws-cdk"
- "aws-cdk-lib"

graphql-tools:
patterns:
- "@graphql-tools*"

mikro-orm:
patterns:
- "@mikro-orm*"

nivo:
patterns:
- "@nivo*"

opentelemetry:
patterns:
- "@opentelemetry*"

react:
patterns:
- "react"
- "react-dom"

simplewebauthn:
patterns:
- "@simplewebauthn*"

typescript-eslint:
patterns:
- "@typescript-eslint*"
2 changes: 1 addition & 1 deletion src/examples/auth-zero/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"graphql": "16.9.0",
"graphweaver": "workspace:*",
"mikro-orm-sqlite-wasm": "workspace:*",
"react": "18.3.1"
"react": "19.0.0"
},
"devDependencies": {
"@types/node": "22.10.1",
Expand Down
2 changes: 1 addition & 1 deletion src/examples/aws-cognito/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@exogee/graphweaver-server": "workspace:*",
"dotenv": "16.4.7",
"graphql": "16.9.0",
"react": "18.3.1"
"react": "19.0.0"
},
"devDependencies": {
"@types/node": "22.10.1",
Expand Down
4 changes: 2 additions & 2 deletions src/examples/databases/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"graphweaver": "workspace:*",
"mysql2": "3.11.5",
"pg": "8.13.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-syntax-highlighter": "15.6.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/examples/microsoft-entra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"graphql": "16.9.0",
"graphweaver": "workspace:*",
"mikro-orm-sqlite-wasm": "workspace:*",
"react": "18.3.1"
"react": "19.0.0"
},
"devDependencies": {
"@types/node": "22.10.1",
Expand Down
2 changes: 1 addition & 1 deletion src/examples/rest-with-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"graphql": "16.9.0",
"graphweaver": "workspace:*",
"mysql2": "3.11.5",
"react": "18.3.1"
"react": "19.0.0"
},
"devDependencies": {
"@types/node": "22.10.1",
Expand Down
4 changes: 2 additions & 2 deletions src/examples/s3-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"graphql": "16.9.0",
"graphweaver": "workspace:*",
"pg": "8.13.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-syntax-highlighter": "15.6.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/examples/sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@mikro-orm/sqlite": "6.4.2",
"graphql": "16.9.0",
"mikro-orm-sqlite-wasm": "workspace:*",
"react": "18.3.1",
"react-dom": "18.3.1"
"react": "19.0.0",
"react-dom": "19.0.0"
},
"devDependencies": {
"@types/node": "22.10.1",
Expand Down
4 changes: 2 additions & 2 deletions src/examples/xero/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"graphql": "16.9.0",
"graphweaver": "workspace:*",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-router-dom": "6.28.0",
"xero-node": "9.3.0"
},
Expand Down
2 changes: 2 additions & 0 deletions src/packages/admin-ui-components/@types/custom-pages.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
declare module 'virtual:graphweaver-user-supplied-custom-pages' {
import { RouteObject } from 'react-router-dom';
import { JSX } from 'react';

export interface NavLinkExport {
name: string;
route: string;
Expand Down
10 changes: 5 additions & 5 deletions src/packages/admin-ui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,22 @@
"peerDependencies": {
"formik": "^2.4.6",
"graphql": "^16.9.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0",
"react-router-dom": "^6.26.2"
},
"devDependencies": {
"@types/graphql-deduplicator": "2.0.2",
"@types/luxon": "3.4.2",
"@types/papaparse": "5.3.15",
"@types/react": "18.3.12",
"@types/react": "19.0.2",
"@types/react-syntax-highlighter": "15.5.13",
"esbuild": "0.24.0",
"esbuild-plugin-copy": "2.1.1",
"formik": "2.4.6",
"glob": "10.4.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-router-dom": "6.28.0",
"typescript": "5.7.2",
"vite": "6.0.3"
Expand Down
2 changes: 1 addition & 1 deletion src/packages/admin-ui-components/src/alert/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface AlertProps {
children?: ReactNode;
}

export const Alert = ({ severity = 'error', children }: AlertProps): JSX.Element => {
export const Alert = ({ severity = 'error', children }: AlertProps) => {
const severityClass = {
['error']: styles.error,
['warning']: styles.warning,
Expand Down
2 changes: 1 addition & 1 deletion src/packages/admin-ui-components/src/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Button = ({
type = 'button',
disabled = false,
loading = false,
}: PropsWithChildren<ButtonProps>): JSX.Element => {
}: PropsWithChildren<ButtonProps>) => {
const buttonRef = useRef<HTMLButtonElement>(null);
const navigate = useNavigate();

Expand Down
12 changes: 5 additions & 7 deletions src/packages/admin-ui-components/src/header/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ export interface HeaderProps {
children?: ReactNode;
}

export const Header = ({ children }: HeaderProps): JSX.Element => {
return (
<header>
<div className={styles.header}>{children}</div>
</header>
);
};
export const Header = ({ children }: HeaderProps) => (
<header>
<div className={styles.header}>{children}</div>
</header>
);
2 changes: 1 addition & 1 deletion src/packages/admin-ui-components/src/popover/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const Popover = ({
defaultValue,
position = 'bottom',
...props
}: PropsWithChildren<PopoverProps>): JSX.Element => {
}: PropsWithChildren<PopoverProps>) => {
const [isOpen, setIsOpen] = useState(false);

const handleOnClickItem = (item: PopoverItem) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface RequireSchemaProps {
children?: ReactNode;
}

export const RequireSchema = ({ children }: RequireSchemaProps): JSX.Element => {
export const RequireSchema = ({ children }: RequireSchemaProps) => {
const { loading, error } = useSchema();

if (error) return <div>{error.message}</div>;
Expand Down
2 changes: 1 addition & 1 deletion src/packages/admin-ui-components/src/utils/use-schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useMemo } from 'react';
import { useEffect, useMemo, JSX } from 'react';
import { InMemoryCache, useQuery } from '@apollo/client';
import { generateTypePolicies } from '@exogee/graphweaver-apollo-client';

Expand Down
8 changes: 4 additions & 4 deletions src/packages/admin-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"formik": "2.4.6",
"graphql": "16.9.0",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-modal": "3.16.1",
"react-router-dom": "6.28.0"
},
"devDependencies": {
"@chialab/esbuild-plugin-html": "0.18.2",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "19.0.2",
"@types/react-dom": "19.0.0",
"@types/react-modal": "3.16.3",
"@vitejs/plugin-react": "4.3.4",
"esbuild": "0.24.0",
Expand Down
12 changes: 6 additions & 6 deletions src/packages/auth-ui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@
"@exogee/graphweaver-admin-ui-components": "workspace:*",
"formik": "^2.2.9",
"graphql": "^16.9.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0",
"react-router-dom": "^6.23.1"
},
"devDependencies": {
"@auth0/auth0-spa-js": "2.1.3",
"@azure/msal-browser": "3.28.0",
"@exogee/graphweaver-admin-ui-components": "workspace:*",
"@simplewebauthn/types": "10.0.0",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "19.0.2",
"@types/react-dom": "19.0.2",
"esbuild": "0.24.0",
"glob": "10.4.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"typescript": "5.7.2",
"vite": "6.0.3"
},
Expand Down
9 changes: 2 additions & 7 deletions src/packages/xero/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,13 @@
"graphql": "16.9.0",
"xero-node": "9.3.0"
},
"peerDependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.2"
},
"devDependencies": {
"@types/node": "22.10.1",
"esbuild": "0.24.0",
"glob": "10.4.3",
"prettier": "3.4.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-router-dom": "6.28.0",
"typescript": "5.7.2"
},
Expand Down
Loading
Loading