Skip to content

Commit 49b0290

Browse files
authored
feat: export the HomepageInsightsCard (#209)
1 parent 73fa47a commit 49b0290

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cortexapps/backstage-plugin",
3-
"version": "2.13.5",
3+
"version": "2.13.6",
44
"main": "src/index.ts",
55
"types": "src/index.ts",
66
"license": "Apache-2.0",

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 Cortex Applications, Inc.
2+
* Copyright 2025 Cortex Applications, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@ export {
2626
SystemCortexContent,
2727
extendableCortexPlugin,
2828
CortexHomepage,
29+
CortexInsightsCard,
2930
} from './plugin';
3031
export { extensionApiRef } from './api/ExtensionApi';
3132
export type { CortexScorecardWidgetProps } from './components/CortexScorecardWidget/CortexScorecardWidget';

src/plugin.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 Cortex Applications, Inc.
2+
* Copyright 2025 Cortex Applications, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -202,3 +202,15 @@ export const CortexHomepage = cortexPlugin.provide(
202202
},
203203
}),
204204
);
205+
206+
export const CortexInsightsCard = cortexPlugin.provide(
207+
createComponentExtension({
208+
name: 'CortexInsightsCard',
209+
component: {
210+
lazy: () =>
211+
import('./components/Homepage/HomepageInsights').then(
212+
m => m.HomepageInsights,
213+
),
214+
},
215+
}),
216+
);

0 commit comments

Comments
 (0)