From 5cd5f153aefc3cb6be511db38751024c894d4b00 Mon Sep 17 00:00:00 2001 From: pramod-cog Date: Wed, 5 Feb 2025 16:32:35 +0100 Subject: [PATCH] fixed missing export of Reveal3DResourcesList (#4985) --- react-components/package.json | 2 +- .../Reveal3DResourcesList/Reveal3DResourcesList.tsx | 2 +- .../src/components/Reveal3DResourcesList/index.ts | 5 +++++ react-components/src/components/index.ts | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 react-components/src/components/Reveal3DResourcesList/index.ts diff --git a/react-components/package.json b/react-components/package.json index 600b4f686cd..808e4e5b841 100644 --- a/react-components/package.json +++ b/react-components/package.json @@ -1,6 +1,6 @@ { "name": "@cognite/reveal-react-components", - "version": "0.75.0", + "version": "0.75.1", "exports": { ".": { "import": "./dist/index.js", diff --git a/react-components/src/components/Reveal3DResourcesList/Reveal3DResourcesList.tsx b/react-components/src/components/Reveal3DResourcesList/Reveal3DResourcesList.tsx index 7e6d131de06..bb81795536e 100644 --- a/react-components/src/components/Reveal3DResourcesList/Reveal3DResourcesList.tsx +++ b/react-components/src/components/Reveal3DResourcesList/Reveal3DResourcesList.tsx @@ -13,7 +13,7 @@ import { RevisionList } from './RevisionList'; import { handleModelClick, handleRevisionSelect, onSearchInputChange } from './utils'; import { useTranslation } from '../i18n/I18n'; -type Reveal3DResourcesListProps = { +export type Reveal3DResourcesListProps = { sdk: CogniteClient; modelType?: string; onRevisionSelect?: (modelId: number, revisionId: number) => void; diff --git a/react-components/src/components/Reveal3DResourcesList/index.ts b/react-components/src/components/Reveal3DResourcesList/index.ts new file mode 100644 index 00000000000..adf14006533 --- /dev/null +++ b/react-components/src/components/Reveal3DResourcesList/index.ts @@ -0,0 +1,5 @@ +/*! + * Copyright 2025 Cognite AS + */ +export { Reveal3DResourcesList } from './Reveal3DResourcesList'; +export type { Reveal3DResourcesListProps } from './Reveal3DResourcesList'; diff --git a/react-components/src/components/index.ts b/react-components/src/components/index.ts index 30dc4d84be1..c404dc4ad7c 100644 --- a/react-components/src/components/index.ts +++ b/react-components/src/components/index.ts @@ -17,6 +17,7 @@ export * from './CadModelContainer'; export * from './Image360CollectionContainer'; export * from './PointCloudContainer'; export * from './Reveal3DResources'; +export * from './Reveal3DResourcesList'; export * from './RevealCanvas'; export * from './RevealContext'; export * from './RevealToolbar';