Skip to content

Commit c1b9582

Browse files
build(deps): bump react-admin from 5.2.3 to 5.3.0 in the react-admin group (#1567)
--------- Co-authored-by: ascariandrea <[email protected]>
1 parent fe76855 commit c1b9582

File tree

16 files changed

+109
-128
lines changed

16 files changed

+109
-128
lines changed

packages/@liexp/shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@types/uuid": "^10.0.0",
5656
"@visx/network": "^3.3.0",
5757
"pdfjs-dist": "^4.6.82",
58-
"react-admin": "^5.2.3",
58+
"react-admin": "^5.3.0",
5959
"typescript": "^5.6.2",
6060
"vite-tsconfig-paths": "^5.0.1",
6161
"vitest": "^2.1.3",

packages/@liexp/ui/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@
9494
"ol": "^10.2.1",
9595
"path-to-regexp": "^8.2.0",
9696
"query-string": "^7.1.3",
97-
"ra-core": "^5.2.3",
98-
"ra-i18n-polyglot": "^5.2.3",
99-
"ra-language-english": "^5.2.3",
100-
"ra-ui-materialui": "^5.2.3",
97+
"ra-core": "^5.3.0",
98+
"ra-i18n-polyglot": "^5.3.0",
99+
"ra-language-english": "^5.3.0",
100+
"ra-ui-materialui": "^5.3.0",
101101
"react": "^18.3.1",
102-
"react-admin": "^5.2.3",
102+
"react-admin": "^5.3.0",
103103
"react-audio-player": "^0.17.0",
104104
"react-dom": "^18.3.1",
105105
"react-dropzone": "^14.2.3",

packages/@liexp/ui/src/components/Common/Button/EditButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const EditButton: React.FC<EditButtonProps> = ({
2828
if (admin === undefined) {
2929
void authProvider?.checkAuth({}).then(
3030
async () => {
31-
const permissions = await authProvider.getPermissions({});
31+
const permissions = await authProvider.getPermissions?.({});
3232
setIsAdmin(checkIsAdmin(permissions));
3333
},
3434
(e) => {

packages/@liexp/ui/src/components/Common/Button/EditEventButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const EditEventButton: React.FC<EditEventButtonProps> = ({ admin, id }) => {
2828
if (admin === undefined) {
2929
void authProvider?.checkAuth({}).then(
3030
async () => {
31-
const permissions = await authProvider.getPermissions({});
31+
const permissions = await authProvider.getPermissions?.({});
3232
setIsAdmin(checkIsAdmin(permissions ?? []));
3333
},
3434
() => {

packages/@liexp/ui/src/components/admin/events/suggestions/AdminEventSuggestion.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,9 @@ export const EventSuggestionEdit: React.FC<EditProps> = () => {
270270
);
271271
};
272272

273-
export const EventSuggestionCreate: React.FC<CreateProps & { event: any }> = ({
274-
event,
275-
...props
276-
}) => {
273+
export const EventSuggestionCreate: React.FC<
274+
Omit<CreateProps, "children"> & { event: any }
275+
> = ({ event, ...props }) => {
277276
const record = useRecordContext({
278277
record: {
279278
status: "Pending",

packages/@liexp/ui/src/components/admin/events/tabs/BookEditFormTab.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ import {
33
PDFType,
44
} from "@liexp/shared/lib/io/http/Media/MediaType.js";
55
import * as React from "react";
6-
import { TextInput, type EditProps } from "react-admin";
6+
import { TextInput } from "react-admin";
77
import { Box } from "../../../mui/index.js";
88
import ReferenceArrayBySubjectInput from "../../common/inputs/BySubject/ReferenceArrayBySubjectInput.js";
99
import ReferenceBySubjectInput from "../../common/inputs/BySubject/ReferenceBySubjectInput.js";
1010
import ReferenceMediaInput from "../../media/input/ReferenceMediaInput.js";
1111

12-
export const BookEditFormTab: React.FC<EditProps & { record?: any }> = (
13-
props,
14-
) => {
12+
export const BookEditFormTab: React.FC = () => {
1513
return (
1614
<Box>
1715
<TextInput source="payload.title" fullWidth />

packages/@liexp/ui/src/components/admin/events/tabs/DocumentaryEditFormTab.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ import {
33
MP4Type,
44
} from "@liexp/shared/lib/io/http/Media/MediaType.js";
55
import * as React from "react";
6-
import { type EditProps, TextInput } from "react-admin";
6+
import { TextInput } from "react-admin";
77
import { Box } from "../../../mui/index.js";
88
import ReferenceArrayActorInput from "../../actors/ReferenceArrayActorInput.js";
99
import ReferenceAreaInput from "../../areas/input/ReferenceAreaInput.js";
1010
import ReferenceArrayGroupInput from "../../groups/ReferenceArrayGroupInput.js";
1111
import ReferenceLinkInput from "../../links/ReferenceLinkInput.js";
1212
import ReferenceMediaInput from "../../media/input/ReferenceMediaInput.js";
1313

14-
export const DocumentaryEditFormTab: React.FC<EditProps & { record?: any }> = (
15-
props,
16-
) => (
14+
export const DocumentaryEditFormTab: React.FC = () => (
1715
<Box>
1816
<TextInput fullWidth source="payload.title" />
1917
<ReferenceAreaInput source="payload.location" />

packages/@liexp/ui/src/components/admin/events/tabs/QuoteEditFormTab.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import * as React from "react";
2-
import { TextField, TextInput, type EditProps } from "react-admin";
2+
import { TextField, TextInput } from "react-admin";
33
import { Box } from "../../../mui/index.js";
44
import ReferenceBySubjectInput from "../../common/inputs/BySubject/ReferenceBySubjectInput.js";
55

6-
export const QuoteEditFormTab: React.FC<EditProps & { record?: any }> = (
7-
props,
8-
) => {
6+
export const QuoteEditFormTab: React.FC = () => {
97
return (
108
<Box>
119
<ReferenceBySubjectInput source="payload.subject" />

packages/@liexp/ui/src/components/admin/events/tabs/ScientificStudyEventEditTab.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import * as React from "react";
2-
import { TextInput, type EditProps, type RaRecord } from "react-admin";
2+
import { TextInput } from "react-admin";
33
import { Box } from "../../../mui/index.js";
44
import ReferenceArrayActorInput from "../../actors/ReferenceArrayActorInput.js";
55
import ReferenceGroupInput from "../../groups/ReferenceGroupInput.js";
66
import ReferenceLinkInput from "../../links/ReferenceLinkInput.js";
77

8-
export const ScientificStudyEventEditTab: React.FC<
9-
EditProps & { record?: RaRecord }
10-
> = (props) => {
8+
export const ScientificStudyEventEditTab: React.FC = () => {
119
return (
1210
<Box>
1311
<TextInput source="payload.title" fullWidth />

packages/@liexp/ui/src/components/admin/events/tabs/UncategorizedEventEditTab.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
ReferenceArrayField,
77
TextField,
88
TextInput,
9-
type EditProps,
109
type RaRecord,
1110
} from "react-admin";
1211
import { Box, Grid } from "../../../mui/index.js";
@@ -21,14 +20,12 @@ import {
2120
} from "../../links/SuggestedEntityRelationsBox.js";
2221
import { type EventGeneralTabChildrenHandlers } from "../../tabs/EventGeneralTab.js";
2322

24-
export const UncategorizedEventEditTab: React.FC<
25-
EditProps & {
26-
record?: RaRecord;
27-
sourcePrefix?: string;
28-
suggestions?: ExtractEntitiesWithNLPOutput | null;
29-
handlers?: EventGeneralTabChildrenHandlers;
30-
}
31-
> = ({ sourcePrefix, suggestions, record, handlers, ...props }) => {
23+
export const UncategorizedEventEditTab: React.FC<{
24+
record?: RaRecord;
25+
sourcePrefix?: string;
26+
suggestions?: ExtractEntitiesWithNLPOutput | null;
27+
handlers?: EventGeneralTabChildrenHandlers;
28+
}> = ({ sourcePrefix, suggestions, record, handlers, ...props }) => {
3229
const source = (s: string): string =>
3330
`${typeof sourcePrefix === "undefined" ? "" : `${sourcePrefix}.`}${s}`;
3431

0 commit comments

Comments
 (0)