@backstage-community/plugin-cost-insights 0.19.0 → 0.21.0
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 +22 -0
- package/dist/alpha/plugin.esm.js +9 -11
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha.d.ts +9 -8
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @backstage-community/plugin-cost-insights
|
|
2
2
|
|
|
3
|
+
## 0.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1d90def: Backstage version bump to v1.43.2
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [1d90def]
|
|
12
|
+
- @backstage-community/plugin-cost-insights-common@0.8.0
|
|
13
|
+
|
|
14
|
+
## 0.20.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- e47a75c: Backstage version bump to v1.42.3
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [e47a75c]
|
|
23
|
+
- @backstage-community/plugin-cost-insights-common@0.7.0
|
|
24
|
+
|
|
3
25
|
## 0.19.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/dist/alpha/plugin.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { ApiBlueprint,
|
|
2
|
+
import { ApiBlueprint, PageBlueprint, NavItemBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
3
|
import { convertLegacyRouteRef, compatWrapper, 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';
|
|
@@ -92,17 +92,15 @@ import '../example/forms/KubernetesMigrationDismissForm.esm.js';
|
|
|
92
92
|
import { ExampleCostInsightsClient } from '../example/client.esm.js';
|
|
93
93
|
|
|
94
94
|
const CostInsightsApi = ApiBlueprint.make({
|
|
95
|
-
params: {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
})
|
|
101
|
-
}
|
|
95
|
+
params: (defineParams) => defineParams({
|
|
96
|
+
api: costInsightsApiRef,
|
|
97
|
+
deps: {},
|
|
98
|
+
factory: ({}) => new ExampleCostInsightsClient()
|
|
99
|
+
})
|
|
102
100
|
});
|
|
103
101
|
const CostInsightsPage = PageBlueprint.make({
|
|
104
102
|
params: {
|
|
105
|
-
|
|
103
|
+
path: "/cost-insights",
|
|
106
104
|
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
107
105
|
loader: () => import('./router.esm.js').then((m) => compatWrapper(/* @__PURE__ */ jsx(m.CostInsightsRouter, {})))
|
|
108
106
|
}
|
|
@@ -110,8 +108,8 @@ const CostInsightsPage = PageBlueprint.make({
|
|
|
110
108
|
EntityContentBlueprint.make({
|
|
111
109
|
name: "EntityCostInsightsContent",
|
|
112
110
|
params: {
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
path: "/cost-insights",
|
|
112
|
+
title: "Cost Insights",
|
|
115
113
|
loader: () => import('../components/EntityCosts/index.esm.js').then(
|
|
116
114
|
(m) => compatWrapper(/* @__PURE__ */ jsx(m.EntityCosts, {}))
|
|
117
115
|
)
|
|
@@ -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 NavItemBlueprint,\n createFrontendPlugin,\n ApiBlueprint,\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 NavItemBlueprint,\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 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\n/**\n * @alpha\n */\nexport const CostInsightsNavItem = NavItemBlueprint.make({\n params: {\n title: 'Cost Insights',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n icon: MoneyIcon,\n },\n});\n\nexport default createFrontendPlugin({\n pluginId: 'cost-insights',\n extensions: [CostInsightsApi, CostInsightsPage, CostInsightsNavItem],\n routes: convertLegacyRouteRefs({\n root: rootRouteRef,\n }),\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCa,MAAA,eAAA,GAAkB,aAAa,IAAK,CAAA;AAAA,EAC/C,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,kBAAA;AAAA,IACL,MAAM,EAAC;AAAA,IACP,OAAS,EAAA,CAAC,EAAC,KAAM,IAAI,yBAA0B;AAAA,GAChD;AACL,CAAC;AAGY,MAAA,gBAAA,GAAmB,cAAc,IAAK,CAAA;AAAA,EACjD,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,gBAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAQ,EAAA,MACN,OAAO,iBAAU,CAAE,CAAA,IAAA,CAAK,CAAK,CAAA,KAAA,aAAA,iBAAe,GAAA,CAAA,CAAA,CAAE,kBAAF,EAAA,EAAqB,CAAE,CAAC;AAAA;AAE1E,CAAC;AAGwC,uBAAuB,IAAK,CAAA;AAAA,EACnE,IAAM,EAAA,2BAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,gBAAA;AAAA,IACN,KAAO,EAAA,eAAA;AAAA,IACP,MAAQ,EAAA,MACN,OAAO,wCAA2B,CAAE,CAAA,IAAA;AAAA,MAAK,OACvC,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,WAAA,EAAF,EAAc,CAAE;AAAA;AACjC;AAEN,CAAC;AAKY,MAAA,mBAAA,GAAsB,iBAAiB,IAAK,CAAA;AAAA,EACvD,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA,eAAA;AAAA,IACP,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,IAAM,EAAA;AAAA;AAEV,CAAC;AAED,aAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,eAAA;AAAA,EACV,UAAY,EAAA,CAAC,eAAiB,EAAA,gBAAA,EAAkB,mBAAmB,CAAA;AAAA,EACnE,QAAQ,sBAAuB,CAAA;AAAA,IAC7B,IAAM,EAAA;AAAA,GACP;AACH,CAAC,CAAA;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as react from 'react';
|
|
|
3
3
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
4
4
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
5
5
|
|
|
6
|
-
declare const _default: _backstage_frontend_plugin_api.
|
|
6
|
+
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
7
7
|
root: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
8
8
|
}, {}, {
|
|
9
9
|
"api:cost-insights": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
@@ -11,18 +11,18 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
11
11
|
name: undefined;
|
|
12
12
|
config: {};
|
|
13
13
|
configInput: {};
|
|
14
|
-
output: _backstage_frontend_plugin_api.
|
|
14
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
15
15
|
inputs: {};
|
|
16
|
-
params: {
|
|
17
|
-
|
|
18
|
-
}
|
|
16
|
+
params: <TApi, TImpl extends TApi, TDeps extends {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
}>(params: _backstage_core_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_core_plugin_api.AnyApiFactory>;
|
|
19
19
|
}>;
|
|
20
20
|
"nav-item:cost-insights": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
21
21
|
kind: "nav-item";
|
|
22
22
|
name: undefined;
|
|
23
23
|
config: {};
|
|
24
24
|
configInput: {};
|
|
25
|
-
output: _backstage_frontend_plugin_api.
|
|
25
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
26
26
|
title: string;
|
|
27
27
|
icon: _backstage_core_plugin_api.IconComponent;
|
|
28
28
|
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
@@ -43,12 +43,13 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
43
43
|
configInput: {
|
|
44
44
|
path?: string | undefined;
|
|
45
45
|
};
|
|
46
|
-
output: _backstage_frontend_plugin_api.
|
|
46
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
47
47
|
optional: true;
|
|
48
48
|
}>;
|
|
49
49
|
inputs: {};
|
|
50
50
|
params: {
|
|
51
|
-
defaultPath:
|
|
51
|
+
defaultPath?: [Error: "Use the 'path' param instead"] | undefined;
|
|
52
|
+
path: string;
|
|
52
53
|
loader: () => Promise<JSX.Element>;
|
|
53
54
|
routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
|
|
54
55
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-cost-insights",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
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.
|
|
70
|
+
"@backstage-community/plugin-cost-insights-common": "^0.8.0",
|
|
71
71
|
"@backstage/catalog-model": "^1.7.5",
|
|
72
72
|
"@backstage/config": "^1.3.3",
|
|
73
|
-
"@backstage/core-compat-api": "^0.
|
|
74
|
-
"@backstage/core-components": "^0.
|
|
75
|
-
"@backstage/core-plugin-api": "^1.
|
|
76
|
-
"@backstage/frontend-plugin-api": "^0.
|
|
77
|
-
"@backstage/plugin-catalog-react": "^1.
|
|
78
|
-
"@backstage/theme": "^0.6.
|
|
73
|
+
"@backstage/core-compat-api": "^0.5.2",
|
|
74
|
+
"@backstage/core-components": "^0.18.1",
|
|
75
|
+
"@backstage/core-plugin-api": "^1.11.0",
|
|
76
|
+
"@backstage/frontend-plugin-api": "^0.12.0",
|
|
77
|
+
"@backstage/plugin-catalog-react": "^1.21.1",
|
|
78
|
+
"@backstage/theme": "^0.6.8",
|
|
79
79
|
"@material-ui/core": "^4.12.2",
|
|
80
80
|
"@material-ui/icons": "^4.9.1",
|
|
81
81
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
"yup": "^1.0.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@backstage/cli": "^0.
|
|
97
|
-
"@backstage/core-app-api": "^1.
|
|
98
|
-
"@backstage/dev-utils": "^1.1.
|
|
99
|
-
"@backstage/test-utils": "^1.7.
|
|
96
|
+
"@backstage/cli": "^0.34.3",
|
|
97
|
+
"@backstage/core-app-api": "^1.19.0",
|
|
98
|
+
"@backstage/dev-utils": "^1.1.14",
|
|
99
|
+
"@backstage/test-utils": "^1.7.11",
|
|
100
100
|
"@testing-library/dom": "^10.0.0",
|
|
101
101
|
"@testing-library/jest-dom": "^6.0.0",
|
|
102
102
|
"@testing-library/react": "^15.0.0",
|