diff --git a/DEPENDENCIES b/DEPENDENCIES index 6373a6976..401827b7a 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -601,7 +601,7 @@ npm/npmjs/@babel/template/7.24.0, MIT, approved, clearlydefined npm/npmjs/@babel/traverse/7.24.1, MIT AND (BSD-2-Clause AND ISC AND MIT) AND BSD-2-Clause AND BSD-3-Clause, approved, #13926 npm/npmjs/@babel/types/7.24.0, MIT, approved, clearlydefined npm/npmjs/@bcoe/v8-coverage/0.2.3, ISC AND MIT, approved, clearlydefined -npm/npmjs/@catena-x/portal-shared-components/3.5.2, Apache-2.0 AND CC-BY-4.0 AND OFL-1.1, approved, #16079 +npm/npmjs/@catena-x/portal-shared-components/3.6.1, Apache-2.0 AND CC-BY-4.0 AND OFL-1.1, approved, #16144 npm/npmjs/@cspotcode/source-map-support/0.8.1, MIT, approved, clearlydefined npm/npmjs/@date-io/core/3.0.0, MIT, approved, clearlydefined npm/npmjs/@date-io/date-fns/3.0.0, MIT, approved, #14023 diff --git a/package.json b/package.json index ac39cf16c..46a6c22c2 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ ] }, "dependencies": { - "@catena-x/portal-shared-components": "^3.5.2", + "@catena-x/portal-shared-components": "^3.6.1", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", "@hookform/error-message": "^2.0.1", diff --git a/src/components/overlays/OSPRegister/OSPRegisterContent.tsx b/src/components/overlays/OSPRegister/OSPRegisterContent.tsx index 777ff067b..d93f0f1b3 100644 --- a/src/components/overlays/OSPRegister/OSPRegisterContent.tsx +++ b/src/components/overlays/OSPRegister/OSPRegisterContent.tsx @@ -338,7 +338,7 @@ const OSPRegisterForm = ({ variant: 'filled', clearText: 'clear', keyTitle: 'id', - onChangeItem: (value: ItemType): void => { + onChangeItem: (value): void => { updateData({ ...data, uniqueIds: [ diff --git a/src/components/overlays/UpdateCertificate/index.tsx b/src/components/overlays/UpdateCertificate/index.tsx index ee9684532..f876d08f1 100644 --- a/src/components/overlays/UpdateCertificate/index.tsx +++ b/src/components/overlays/UpdateCertificate/index.tsx @@ -259,7 +259,7 @@ export default function UpdateCertificate() { ) } onChangeItem={(e) => { - setSelectedCertificate(e.title) + setSelectedCertificate(e.title as string) }} keyTitle={'title'} disabled={certificatetypesArr.length === 1} diff --git a/src/components/pages/CompanyCertificates/UploadCompanyCerificate.tsx b/src/components/pages/CompanyCertificates/UploadCompanyCerificate.tsx index 10fb49b0d..9b274e966 100644 --- a/src/components/pages/CompanyCertificates/UploadCompanyCerificate.tsx +++ b/src/components/pages/CompanyCertificates/UploadCompanyCerificate.tsx @@ -155,8 +155,8 @@ export default function UploadCompanyCertificate({ 'content.companyCertificate.upload.certificateTypePlaceholder' ) } - onChangeItem={(e: CertificateTypes) => { - setSelectedCertificateType(e) + onChangeItem={(e) => { + setSelectedCertificateType(e as CertificateTypes) }} keyTitle={'certificateType'} disabled={certificateTypes?.length === 1} diff --git a/src/components/shared/basic/ReleaseProcess/AppMarketCard/index.tsx b/src/components/shared/basic/ReleaseProcess/AppMarketCard/index.tsx index efee886a8..604a32858 100644 --- a/src/components/shared/basic/ReleaseProcess/AppMarketCard/index.tsx +++ b/src/components/shared/basic/ReleaseProcess/AppMarketCard/index.tsx @@ -748,7 +748,7 @@ export default function AppMarketCard() { 'content.apprelease.appMarketCard.salesManagerPlaceholder' )} onChangeItem={(e) => { - e && onSalesManagerChange(e.userId) + e && onSalesManagerChange(e.userId as string) }} keyTitle={'fullName'} /> diff --git a/src/components/shared/basic/ReleaseProcess/TechnicalIntegration/index.tsx b/src/components/shared/basic/ReleaseProcess/TechnicalIntegration/index.tsx index 74b9e703d..4c806d3ed 100644 --- a/src/components/shared/basic/ReleaseProcess/TechnicalIntegration/index.tsx +++ b/src/components/shared/basic/ReleaseProcess/TechnicalIntegration/index.tsx @@ -504,7 +504,7 @@ export default function TechnicalIntegration() { 'content.apprelease.technicalIntegration.encoding' )} onChangeItem={(e) => { - setSelectedEncoding(e.value) + setSelectedEncoding(e.value as string) }} keyTitle={'title'} disableClearable={true} diff --git a/src/components/shared/basic/ReleaseProcess/components/ConnectorFormInputField.tsx b/src/components/shared/basic/ReleaseProcess/components/ConnectorFormInputField.tsx index eb64ae5c6..034f89b2a 100644 --- a/src/components/shared/basic/ReleaseProcess/components/ConnectorFormInputField.tsx +++ b/src/components/shared/basic/ReleaseProcess/components/ConnectorFormInputField.tsx @@ -136,9 +136,7 @@ any) => { value={value} items={items} keyTitle={keyTitle} - // Add an ESLint exception until there is a solution - // eslint-disable-next-line - onAddItem={(items: any[]) => { + onAddItem={(items) => { trigger(name) onChange(items?.map((item) => item[saveKeyTitle])) }} diff --git a/src/components/shared/templates/StaticTemplateResponsive/Cards/RenderImage.tsx b/src/components/shared/templates/StaticTemplateResponsive/Cards/RenderImage.tsx index f72101790..386f83e3a 100644 --- a/src/components/shared/templates/StaticTemplateResponsive/Cards/RenderImage.tsx +++ b/src/components/shared/templates/StaticTemplateResponsive/Cards/RenderImage.tsx @@ -20,8 +20,8 @@ import { ImageItem } from '@catena-x/portal-shared-components' import { useMediaQuery } from '@mui/material' +import { type CSSProperties } from 'react' import '../StaticTemplate.scss' -import { type SxProps } from '@mui/system' export default function RenderImage({ url, @@ -30,7 +30,7 @@ export default function RenderImage({ width, }: Readonly<{ url: string - additionalStyles?: SxProps + additionalStyles?: CSSProperties height?: string width?: string }>) { diff --git a/src/features/companyCertification/companyCertificateApiSlice.tsx b/src/features/companyCertification/companyCertificateApiSlice.tsx index 4774cc17b..8ac140267 100644 --- a/src/features/companyCertification/companyCertificateApiSlice.tsx +++ b/src/features/companyCertification/companyCertificateApiSlice.tsx @@ -45,7 +45,7 @@ export interface UploadDocumentType { expiryDate: string | undefined } -export interface CertificateTypes { +export type CertificateTypes = { certificateType: string certificateVersion: string } diff --git a/yarn.lock b/yarn.lock index d1781b20b..1e9f96290 100644 --- a/yarn.lock +++ b/yarn.lock @@ -329,10 +329,10 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@catena-x/portal-shared-components@^3.5.2": - version "3.5.2" - resolved "https://registry.yarnpkg.com/@catena-x/portal-shared-components/-/portal-shared-components-3.5.2.tgz#2ed80179dcef926734687eaf717a1f967be5aacd" - integrity sha512-qmIxToCm3lIEisKzOrihZQ24F+nXlmbWW0+ojnAwIMWa37y0n7IuSf5D8fpBE0S90CQVwmLXyvknCQy1DUJQGg== +"@catena-x/portal-shared-components@^3.6.1": + version "3.6.1" + resolved "https://registry.yarnpkg.com/@catena-x/portal-shared-components/-/portal-shared-components-3.6.1.tgz#750438522b65d4c59976404044cd75fd5883649c" + integrity sha512-mmOETT9z3vDSa/xyM1i+F2N9k20GuqXuW54oF/I7FB7iHAegJbNedj0gaFH4E7LHJQGP9vHtGQ6J4X73ndrsRg== dependencies: "@date-io/date-fns" "^3.0.0" "@emotion/react" "^11.11.4"