@backstage-community/plugin-cost-insights 0.28.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/alpha/plugin.esm.js +5 -10
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha.d.ts +0 -21
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @backstage-community/plugin-cost-insights
|
|
2
2
|
|
|
3
|
+
## 0.29.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 582443e: Removed NavItemBlueprint that was removed in Backstage 1.51.0
|
|
8
|
+
|
|
9
|
+
## 0.29.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- b08cbb6: Backstage version bump to v1.52.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [b08cbb6]
|
|
18
|
+
- @backstage-community/plugin-cost-insights-common@0.14.0
|
|
19
|
+
|
|
3
20
|
## 0.28.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/dist/alpha/plugin.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { ApiBlueprint, PageBlueprint,
|
|
2
|
+
import { ApiBlueprint, PageBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
3
|
import { compatWrapper, convertLegacyRouteRef, convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
4
4
|
import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
5
5
|
import MoneyIcon from '@material-ui/icons/MonetizationOn';
|
|
@@ -102,6 +102,8 @@ const CostInsightsApi = ApiBlueprint.make({
|
|
|
102
102
|
const CostInsightsPage = PageBlueprint.make({
|
|
103
103
|
params: {
|
|
104
104
|
path: "/cost-insights",
|
|
105
|
+
title: "Cost Insights",
|
|
106
|
+
icon: /* @__PURE__ */ jsx(MoneyIcon, {}),
|
|
105
107
|
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
106
108
|
loader: () => import('./router.esm.js').then((m) => compatWrapper(/* @__PURE__ */ jsx(m.CostInsightsRouter, {})))
|
|
107
109
|
}
|
|
@@ -116,20 +118,13 @@ EntityContentBlueprint.make({
|
|
|
116
118
|
)
|
|
117
119
|
}
|
|
118
120
|
});
|
|
119
|
-
const CostInsightsNavItem = NavItemBlueprint.make({
|
|
120
|
-
params: {
|
|
121
|
-
title: "Cost Insights",
|
|
122
|
-
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
123
|
-
icon: MoneyIcon
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
121
|
var plugin = createFrontendPlugin({
|
|
127
122
|
pluginId: "cost-insights",
|
|
128
|
-
extensions: [CostInsightsApi, CostInsightsPage
|
|
123
|
+
extensions: [CostInsightsApi, CostInsightsPage],
|
|
129
124
|
routes: convertLegacyRouteRefs({
|
|
130
125
|
root: rootRouteRef
|
|
131
126
|
})
|
|
132
127
|
});
|
|
133
128
|
|
|
134
|
-
export { CostInsightsApi,
|
|
129
|
+
export { CostInsightsApi, CostInsightsPage, plugin as default };
|
|
135
130
|
//# sourceMappingURL=plugin.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n PageBlueprint,\n
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n PageBlueprint,\n createFrontendPlugin,\n ApiBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n convertLegacyRouteRefs,\n} from '@backstage/core-compat-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport MoneyIcon from '@material-ui/icons/MonetizationOn';\nimport { rootRouteRef } from '../routes';\nimport { costInsightsApiRef } from '../api';\nimport { ExampleCostInsightsClient } from '../example';\n\n/** @alpha */\nexport const CostInsightsApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: costInsightsApiRef,\n deps: {},\n factory: ({}) => new ExampleCostInsightsClient(),\n }),\n});\n\n/** @alpha */\nexport const CostInsightsPage = PageBlueprint.make({\n params: {\n path: '/cost-insights',\n title: 'Cost Insights',\n icon: <MoneyIcon />,\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: () =>\n import('./router').then(m => compatWrapper(<m.CostInsightsRouter />)),\n },\n});\n\n/** @alpha */\nexport const EntityCostInsightsContent = EntityContentBlueprint.make({\n name: 'EntityCostInsightsContent',\n params: {\n path: '/cost-insights',\n title: 'Cost Insights',\n loader: () =>\n import('../components/EntityCosts').then(m =>\n compatWrapper(<m.EntityCosts />),\n ),\n },\n});\n\nexport default createFrontendPlugin({\n pluginId: 'cost-insights',\n extensions: [CostInsightsApi, CostInsights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,sBAAA,CAAuB;AAAA,IAC7B,IAAA,EAAM;AAAA,GACP;AACH,CAAC,CAAA;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -13,27 +13,6 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
13
13
|
inputs: {};
|
|
14
14
|
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
15
15
|
}>;
|
|
16
|
-
"nav-item:cost-insights": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
17
|
-
kind: "nav-item";
|
|
18
|
-
name: undefined;
|
|
19
|
-
config: {
|
|
20
|
-
title: string | undefined;
|
|
21
|
-
};
|
|
22
|
-
configInput: {
|
|
23
|
-
title?: string | undefined;
|
|
24
|
-
};
|
|
25
|
-
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
26
|
-
title: string;
|
|
27
|
-
icon: _backstage_frontend_plugin_api.IconComponent;
|
|
28
|
-
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
29
|
-
}, "core.nav-item.target", {}>;
|
|
30
|
-
inputs: {};
|
|
31
|
-
params: {
|
|
32
|
-
title: string;
|
|
33
|
-
icon: _backstage_frontend_plugin_api.IconComponent;
|
|
34
|
-
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
35
|
-
};
|
|
36
|
-
}>;
|
|
37
16
|
"page:cost-insights": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
38
17
|
kind: "page";
|
|
39
18
|
name: undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-cost-insights",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.1",
|
|
4
4
|
"description": "A Backstage plugin that helps you keep track of your cloud spend",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -67,15 +67,15 @@
|
|
|
67
67
|
"test": "backstage-cli package test"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@backstage-community/plugin-cost-insights-common": "^0.
|
|
71
|
-
"@backstage/catalog-model": "^1.
|
|
72
|
-
"@backstage/config": "^1.3.
|
|
73
|
-
"@backstage/core-compat-api": "^0.5.
|
|
74
|
-
"@backstage/core-components": "^0.18.
|
|
75
|
-
"@backstage/core-plugin-api": "^1.12.
|
|
76
|
-
"@backstage/frontend-plugin-api": "^0.
|
|
77
|
-
"@backstage/plugin-catalog-react": "^
|
|
78
|
-
"@backstage/theme": "^0.7.
|
|
70
|
+
"@backstage-community/plugin-cost-insights-common": "^0.14.0",
|
|
71
|
+
"@backstage/catalog-model": "^1.9.0",
|
|
72
|
+
"@backstage/config": "^1.3.8",
|
|
73
|
+
"@backstage/core-compat-api": "^0.5.12",
|
|
74
|
+
"@backstage/core-components": "^0.18.11",
|
|
75
|
+
"@backstage/core-plugin-api": "^1.12.7",
|
|
76
|
+
"@backstage/frontend-plugin-api": "^0.17.2",
|
|
77
|
+
"@backstage/plugin-catalog-react": "^3.1.0",
|
|
78
|
+
"@backstage/theme": "^0.7.3",
|
|
79
79
|
"@date-io/luxon": "1.x",
|
|
80
80
|
"@material-ui/core": "^4.12.2",
|
|
81
81
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
"yup": "^1.0.0"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@backstage/cli": "^0.36.
|
|
99
|
-
"@backstage/core-app-api": "^1.
|
|
100
|
-
"@backstage/dev-utils": "^1.1.
|
|
101
|
-
"@backstage/test-utils": "^1.7.
|
|
98
|
+
"@backstage/cli": "^0.36.3",
|
|
99
|
+
"@backstage/core-app-api": "^1.20.2",
|
|
100
|
+
"@backstage/dev-utils": "^1.1.24",
|
|
101
|
+
"@backstage/test-utils": "^1.7.19",
|
|
102
102
|
"@testing-library/dom": "^10.0.0",
|
|
103
103
|
"@testing-library/jest-dom": "^6.0.0",
|
|
104
104
|
"@testing-library/react": "^15.0.0",
|