Skip to content

Commit

Permalink
TASK: fix Build (use one version of react)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Pansch committed Jan 21, 2025
1 parent 3d8ba51 commit 5585f7c
Show file tree
Hide file tree
Showing 7 changed files with 13,578 additions and 17,441 deletions.
3 changes: 0 additions & 3 deletions Neos.Ui/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@
"@sitegeist/archaeopteryx-neos-bridge": "^0.0.0",
"final-form": "^4.20.2",
"libphonenumber-js": "^1.9.52",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-final-form": "^6.5.3",
"react-use": "^17.2.4",
"rxjs": "^6.6.7",
"styled-components": "^5.3.0",
"ts-toolbelt": "^9.6.0",
"typesafe-actions": "^5.1.0",
"verror": "^1.10.0"
Expand Down
10 changes: 3 additions & 7 deletions Neos.Ui/core/src/framework/Form/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@ const FieldGroupContext = React.createContext<null | string>(null);

export function Field<
FieldValue = any,
RP extends FieldRenderProps<FieldValue, T> = FieldRenderProps<
FieldValue,
HTMLElement
>,
T extends HTMLElement = HTMLElement
>(props: FieldProps<FieldValue, RP, T>): React.ReactElement {
>(props: FieldProps<FieldValue, FieldRenderProps<FieldValue, T>, T>): React.ReactElement {
const groupPrefix = React.useContext(FieldGroupContext);
const name = groupPrefix !== null
? `${groupPrefix}.${props.name}`
: props.name;

return (<FinalFormField<FieldValue, RP, T> {...props} name={name}/>);
return (<FinalFormField<FieldValue, T> {...props} name={name}/>);
};

export const FieldGroup: React.FC<{
Expand All @@ -27,4 +23,4 @@ export const FieldGroup: React.FC<{
{props.children}
</FieldGroupContext.Provider>
);
};
};
1 change: 0 additions & 1 deletion Neos.Ui/error-handling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
},
"dependencies": {
"react-error-boundary": "^3.1.3",
"styled-components": "^5.3.0",
"verror": "^1.10.0"
},
"devDependencies": {
Expand Down
6 changes: 1 addition & 5 deletions Resources/Public/JavaScript/Plugin.js

Large diffs are not rendered by default.

8 changes: 1 addition & 7 deletions Resources/Public/JavaScript/Plugin.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/*!
* JavaScript Cookie v2.2.1
* https://github.com/js-cookie/js-cookie
Expand All @@ -28,7 +22,7 @@ object-assign

/*!
* screenfull
* v5.1.0 - 2020-12-24
* v5.2.0 - 2021-11-03
* (c) Sindre Sorhus; MIT License
*/

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@
"ts-jest": "^26.5.5",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
},
"resolutions": {
"@types/react": "^17.0.3"
}
}
Loading

0 comments on commit 5585f7c

Please sign in to comment.