@electrolux-oss/plugin-infrawallet 0.1.11 → 0.1.12
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/dist/api/InfraWalletApiClient.esm.js +4 -2
- package/dist/api/InfraWalletApiClient.esm.js.map +1 -1
- package/dist/api/functions.esm.js +15 -3
- package/dist/api/functions.esm.js.map +1 -1
- package/dist/components/ColumnsChartComponent/ColumnsChartComponent.esm.js +142 -173
- package/dist/components/ColumnsChartComponent/ColumnsChartComponent.esm.js.map +1 -1
- package/dist/components/CostReportsTableComponent/CostReportsTableComponent.esm.js +147 -91
- package/dist/components/CostReportsTableComponent/CostReportsTableComponent.esm.js.map +1 -1
- package/dist/components/EntityInfraWalletCard/EntityInfraWalletCard.esm.js +254 -0
- package/dist/components/EntityInfraWalletCard/EntityInfraWalletCard.esm.js.map +1 -0
- package/dist/components/EntityInfraWalletCard/index.esm.js +2 -0
- package/dist/components/EntityInfraWalletCard/index.esm.js.map +1 -0
- package/dist/components/ErrorsAlertComponent/ErrorsAlertComponent.esm.js +4 -4
- package/dist/components/ErrorsAlertComponent/ErrorsAlertComponent.esm.js.map +1 -1
- package/dist/components/FiltersComponent/FiltersComponent.esm.js +27 -27
- package/dist/components/FiltersComponent/FiltersComponent.esm.js.map +1 -1
- package/dist/components/InfraWalletAppData.esm.js +9 -0
- package/dist/components/InfraWalletAppData.esm.js.map +1 -0
- package/dist/components/MetricConfigurationComponent/MetricConfigurationComponent.esm.js +22 -10
- package/dist/components/MetricConfigurationComponent/MetricConfigurationComponent.esm.js.map +1 -1
- package/dist/components/PieChartComponent/PieChartComponent.esm.js +63 -59
- package/dist/components/PieChartComponent/PieChartComponent.esm.js.map +1 -1
- package/dist/components/ProviderIcons/ProviderIcons.esm.js +8 -8
- package/dist/components/ProviderIcons/ProviderIcons.esm.js.map +1 -1
- package/dist/components/ReportsComponent/ReportsComponent.esm.js +24 -20
- package/dist/components/ReportsComponent/ReportsComponent.esm.js.map +1 -1
- package/dist/components/SettingsComponent/SettingsComponent.esm.js +4 -4
- package/dist/components/SettingsComponent/SettingsComponent.esm.js.map +1 -1
- package/dist/components/index.esm.js +36 -0
- package/dist/components/index.esm.js.map +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.esm.js +2 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/plugin.esm.js +10 -2
- package/dist/plugin.esm.js.map +1 -1
- package/package.json +9 -11
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Page, Header, Content } from '@backstage/core-components';
|
|
2
|
-
import React, { useState, useCallback, useEffect } from 'react';
|
|
3
2
|
import { useApi, alertApiRef } from '@backstage/core-plugin-api';
|
|
4
|
-
import { infraWalletApiRef } from '../../api/InfraWalletApi.esm.js';
|
|
5
3
|
import { Grid } from '@material-ui/core';
|
|
6
|
-
import Alert from '@material
|
|
4
|
+
import Alert from '@mui/material/Alert';
|
|
5
|
+
import React, { useState, useCallback, useEffect } from 'react';
|
|
7
6
|
import { useParams } from 'react-router-dom';
|
|
7
|
+
import { infraWalletApiRef } from '../../api/InfraWalletApi.esm.js';
|
|
8
8
|
import { MetricConfigurationComponent } from '../MetricConfigurationComponent/MetricConfigurationComponent.esm.js';
|
|
9
9
|
|
|
10
10
|
const SettingsComponent = () => {
|
|
@@ -23,7 +23,7 @@ const SettingsComponent = () => {
|
|
|
23
23
|
useEffect(() => {
|
|
24
24
|
getWalletInfo();
|
|
25
25
|
}, [getWalletInfo]);
|
|
26
|
-
return /* @__PURE__ */ React.createElement(Page, { themeId: "tool" }, /* @__PURE__ */ React.createElement(Header, { title: "Wallet Settings
|
|
26
|
+
return /* @__PURE__ */ React.createElement(Page, { themeId: "tool" }, /* @__PURE__ */ React.createElement(Header, { title: "Wallet Settings" }), /* @__PURE__ */ React.createElement(Content, null, /* @__PURE__ */ React.createElement(Grid, { container: true, spacing: 3 }, /* @__PURE__ */ React.createElement(Grid, { item: true, xs: 12 }, /* @__PURE__ */ React.createElement(Alert, { severity: "info" }, "Currently, you can only configure business metrics for the Default wallet.")), /* @__PURE__ */ React.createElement(Grid, { item: true, xs: 12 }, /* @__PURE__ */ React.createElement(MetricConfigurationComponent, { wallet })))));
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export { SettingsComponent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsComponent.esm.js","sources":["../../../src/components/SettingsComponent/SettingsComponent.tsx"],"sourcesContent":["import { Content, Header, Page } from '@backstage/core-components';\nimport
|
|
1
|
+
{"version":3,"file":"SettingsComponent.esm.js","sources":["../../../src/components/SettingsComponent/SettingsComponent.tsx"],"sourcesContent":["import { Content, Header, Page } from '@backstage/core-components';\nimport { alertApiRef, useApi } from '@backstage/core-plugin-api';\nimport { Grid } from '@material-ui/core';\nimport Alert from '@mui/material/Alert';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport { infraWalletApiRef } from '../../api/InfraWalletApi';\nimport { Wallet } from '../../api/types';\nimport { MetricConfigurationComponent } from '../MetricConfigurationComponent';\n\nexport const SettingsComponent = () => {\n const params = useParams();\n const alertApi = useApi(alertApiRef);\n const infraWalletApi = useApi(infraWalletApiRef);\n const [wallet, setWallet] = useState<Wallet>();\n\n const getWalletInfo = useCallback(async () => {\n await infraWalletApi\n .getWalletByName(params.name ?? 'default')\n .then(getWalletResponse => {\n if (getWalletResponse.data && getWalletResponse.status === 200) {\n setWallet(getWalletResponse.data);\n }\n })\n .catch(e => alertApi.post({ message: `${e.message}`, severity: 'error' }));\n }, [params.name, infraWalletApi, alertApi]);\n\n useEffect(() => {\n getWalletInfo();\n }, [getWalletInfo]);\n\n return (\n <Page themeId=\"tool\">\n <Header title=\"Wallet Settings\" />\n <Content>\n <Grid container spacing={3}>\n <Grid item xs={12}>\n <Alert severity=\"info\">Currently, you can only configure business metrics for the Default wallet.</Alert>\n </Grid>\n <Grid item xs={12}>\n <MetricConfigurationComponent wallet={wallet} />\n </Grid>\n </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,SAAS,CACvB,EAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,QAAK,IAAI,EAAA,IAAA,EAAC,EAAI,EAAA,EAAA,EAAA,sCACZ,KAAM,EAAA,EAAA,QAAA,EAAS,UAAO,4EAA0E,CACnG,mBACC,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAK,MAAI,IAAC,EAAA,EAAA,EAAI,sBACZ,KAAA,CAAA,aAAA,CAAA,4BAAA,EAAA,EAA6B,QAAgB,CAChD,CACF,CACF,CACF,CAAA,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import '@material-ui/core';
|
|
3
|
+
export { EntityInfraWalletCard } from './EntityInfraWalletCard/EntityInfraWalletCard.esm.js';
|
|
4
|
+
import { INFRAWALLET_ANNOTATION_PROJECT, INFRAWALLET_ANNOTATION_ACCOUNT, INFRAWALLET_ANNOTATION_SERVICE, INFRAWALLET_ANNOTATION_CATEGORY, INFRAWALLET_ANNOTATION_PROVIDER, INFRAWALLET_ANNOTATION_EXTRAS } from './InfraWalletAppData.esm.js';
|
|
5
|
+
|
|
6
|
+
const isInfraWalletProjectIDAnnotationAvailable = (entity) => {
|
|
7
|
+
var _a;
|
|
8
|
+
return Boolean((_a = entity.metadata.annotations) == null ? void 0 : _a[INFRAWALLET_ANNOTATION_PROJECT]);
|
|
9
|
+
};
|
|
10
|
+
const isInfraWalletAccountAnnotationAvailable = (entity) => {
|
|
11
|
+
var _a;
|
|
12
|
+
return Boolean((_a = entity.metadata.annotations) == null ? void 0 : _a[INFRAWALLET_ANNOTATION_ACCOUNT]);
|
|
13
|
+
};
|
|
14
|
+
const isInfraWalletServiceAnnotationAvailable = (entity) => {
|
|
15
|
+
var _a;
|
|
16
|
+
return Boolean((_a = entity.metadata.annotations) == null ? void 0 : _a[INFRAWALLET_ANNOTATION_SERVICE]);
|
|
17
|
+
};
|
|
18
|
+
const isInfraWalletCategoryAnnotationAvailable = (entity) => {
|
|
19
|
+
var _a;
|
|
20
|
+
return Boolean((_a = entity.metadata.annotations) == null ? void 0 : _a[INFRAWALLET_ANNOTATION_CATEGORY]);
|
|
21
|
+
};
|
|
22
|
+
const isInfraWalletProviderAnnotationAvailable = (entity) => {
|
|
23
|
+
var _a;
|
|
24
|
+
return Boolean((_a = entity.metadata.annotations) == null ? void 0 : _a[INFRAWALLET_ANNOTATION_PROVIDER]);
|
|
25
|
+
};
|
|
26
|
+
const isInfraWalletExtrasAnnotationAvailable = (entity) => {
|
|
27
|
+
var _a;
|
|
28
|
+
return Boolean((_a = entity.metadata.annotations) == null ? void 0 : _a[INFRAWALLET_ANNOTATION_EXTRAS]);
|
|
29
|
+
};
|
|
30
|
+
const isInfraWalletAvailable = (entity) => {
|
|
31
|
+
const available = isInfraWalletProjectIDAnnotationAvailable(entity) || isInfraWalletAccountAnnotationAvailable(entity) || isInfraWalletServiceAnnotationAvailable(entity) || isInfraWalletCategoryAnnotationAvailable(entity) || isInfraWalletProviderAnnotationAvailable(entity) || isInfraWalletExtrasAnnotationAvailable(entity);
|
|
32
|
+
return available;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export { isInfraWalletAccountAnnotationAvailable, isInfraWalletAvailable, isInfraWalletCategoryAnnotationAvailable, isInfraWalletExtrasAnnotationAvailable, isInfraWalletProjectIDAnnotationAvailable, isInfraWalletProviderAnnotationAvailable, isInfraWalletServiceAnnotationAvailable };
|
|
36
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/components/index.ts"],"sourcesContent":["export { InfraWalletIcon } from './InfraWalletIcon';\nexport { EntityInfraWalletCard } from './EntityInfraWalletCard';\nexport type { ReportsComponentProps } from './ReportsComponent';\nimport { Entity } from '@backstage/catalog-model';\nimport {\n INFRAWALLET_ANNOTATION_PROJECT,\n INFRAWALLET_ANNOTATION_ACCOUNT,\n INFRAWALLET_ANNOTATION_SERVICE,\n INFRAWALLET_ANNOTATION_CATEGORY,\n INFRAWALLET_ANNOTATION_PROVIDER,\n INFRAWALLET_ANNOTATION_EXTRAS,\n} from './InfraWalletAppData';\n\nexport const isInfraWalletProjectIDAnnotationAvailable = (entity: Entity) =>\n Boolean(entity.metadata.annotations?.[INFRAWALLET_ANNOTATION_PROJECT]);\n\nexport const isInfraWalletAccountAnnotationAvailable = (entity: Entity) =>\n Boolean(entity.metadata.annotations?.[INFRAWALLET_ANNOTATION_ACCOUNT]);\n\nexport const isInfraWalletServiceAnnotationAvailable = (entity: Entity) =>\n Boolean(entity.metadata.annotations?.[INFRAWALLET_ANNOTATION_SERVICE]);\n\nexport const isInfraWalletCategoryAnnotationAvailable = (entity: Entity) =>\n Boolean(entity.metadata.annotations?.[INFRAWALLET_ANNOTATION_CATEGORY]);\n\nexport const isInfraWalletProviderAnnotationAvailable = (entity: Entity) =>\n Boolean(entity.metadata.annotations?.[INFRAWALLET_ANNOTATION_PROVIDER]);\n\nexport const isInfraWalletExtrasAnnotationAvailable = (entity: Entity) =>\n Boolean(entity.metadata.annotations?.[INFRAWALLET_ANNOTATION_EXTRAS]);\n\nexport const isInfraWalletAvailable = (entity: Entity) => {\n const available =\n isInfraWalletProjectIDAnnotationAvailable(entity) ||\n isInfraWalletAccountAnnotationAvailable(entity) ||\n isInfraWalletServiceAnnotationAvailable(entity) ||\n isInfraWalletCategoryAnnotationAvailable(entity) ||\n isInfraWalletProviderAnnotationAvailable(entity) ||\n isInfraWalletExtrasAnnotationAvailable(entity);\n return available;\n};\n"],"names":[],"mappings":";;;;;AAaa,MAAA,yCAAA,GAA4C,CAAC,MAAgB,KAAA;AAb1E,EAAA,IAAA,EAAA,CAAA;AAcE,EAAA,OAAA,OAAA,CAAA,CAAQ,EAAO,GAAA,MAAA,CAAA,QAAA,CAAS,WAAhB,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAA8B,8BAA+B,CAAA,CAAA,CAAA;AAAA,EAAA;AAE1D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,EAAA;AAEzD,MAAA,sBAAA,GAAyB,CAAC,MAAmB,KAAA;AACxD,EAAA,MAAM,YACJ,yCAA0C,CAAA,MAAM,CAChD,IAAA,uCAAA,CAAwC,MAAM,CAC9C,IAAA,uCAAA,CAAwC,MAAM,CAAA,IAC9C,yCAAyC,MAAM,CAAA,IAC/C,yCAAyC,MAAM,CAAA,IAC/C,uCAAuC,MAAM,CAAA,CAAA;AAC/C,EAAO,OAAA,SAAA,CAAA;AACT;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { Entity } from '@backstage/catalog-model';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
import React__default from 'react';
|
|
4
5
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
@@ -10,6 +11,8 @@ interface ReportsComponentProps {
|
|
|
10
11
|
subTitle?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
14
|
+
declare const isInfraWalletAvailable: (entity: Entity) => boolean;
|
|
15
|
+
|
|
13
16
|
declare const infraWalletPlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
14
17
|
root: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
15
18
|
settings: _backstage_core_plugin_api.RouteRef<{
|
|
@@ -17,5 +20,6 @@ declare const infraWalletPlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
|
17
20
|
}>;
|
|
18
21
|
}, {}, {}>;
|
|
19
22
|
declare const InfraWalletPage: (props: ReportsComponentProps) => React.JSX.Element;
|
|
23
|
+
declare const EntityInfraWalletCard: () => React.JSX.Element;
|
|
20
24
|
|
|
21
|
-
export { InfraWalletIcon, InfraWalletPage, type ReportsComponentProps, infraWalletPlugin };
|
|
25
|
+
export { EntityInfraWalletCard, InfraWalletIcon, InfraWalletPage, type ReportsComponentProps, infraWalletPlugin, isInfraWalletAvailable };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { isInfraWalletAvailable } from './components/index.esm.js';
|
|
2
|
+
export { EntityInfraWalletCard, InfraWalletPage, infraWalletPlugin } from './plugin.esm.js';
|
|
1
3
|
export { InfraWalletIcon } from './components/InfraWalletIcon.esm.js';
|
|
2
|
-
export { InfraWalletPage, infraWalletPlugin } from './plugin.esm.js';
|
|
3
4
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/plugin.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createPlugin, createApiFactory, identityApiRef, configApiRef, createRoutableExtension } from '@backstage/core-plugin-api';
|
|
1
|
+
import { createPlugin, createApiFactory, identityApiRef, configApiRef, createRoutableExtension, createComponentExtension } from '@backstage/core-plugin-api';
|
|
2
2
|
import { rootRouteRef, settingsRouteRef } from './routes.esm.js';
|
|
3
3
|
import { infraWalletApiRef } from './api/InfraWalletApi.esm.js';
|
|
4
4
|
import { InfraWalletApiClient } from './api/InfraWalletApiClient.esm.js';
|
|
@@ -24,6 +24,14 @@ const InfraWalletPage = infraWalletPlugin.provide(
|
|
|
24
24
|
mountPoint: rootRouteRef
|
|
25
25
|
})
|
|
26
26
|
);
|
|
27
|
+
const EntityInfraWalletCard = infraWalletPlugin.provide(
|
|
28
|
+
createComponentExtension({
|
|
29
|
+
name: "EntityInfraWalletCard",
|
|
30
|
+
component: {
|
|
31
|
+
lazy: () => import('./components/EntityInfraWalletCard/index.esm.js').then((m) => m.EntityInfraWalletCard)
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
);
|
|
27
35
|
|
|
28
|
-
export { InfraWalletPage, infraWalletPlugin };
|
|
36
|
+
export { EntityInfraWalletCard, InfraWalletPage, infraWalletPlugin };
|
|
29
37
|
//# sourceMappingURL=plugin.esm.js.map
|
package/dist/plugin.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["import {\n createApiFactory,\n createPlugin,\n createRoutableExtension,\n identityApiRef,\n configApiRef,\n} from '@backstage/core-plugin-api';\n\nimport { rootRouteRef, settingsRouteRef } from './routes';\nimport { infraWalletApiRef } from './api/InfraWalletApi';\nimport { InfraWalletApiClient } from './api/InfraWalletApiClient';\n\nexport const infraWalletPlugin = createPlugin({\n id: 'infrawallet',\n routes: {\n root: rootRouteRef,\n settings: settingsRouteRef,\n },\n apis: [\n createApiFactory({\n api: infraWalletApiRef,\n deps: { identityApi: identityApiRef, configApi: configApiRef },\n factory: ({ identityApi, configApi }) => new InfraWalletApiClient({ identityApi, configApi }),\n }),\n ],\n});\n\nexport const InfraWalletPage = infraWalletPlugin.provide(\n createRoutableExtension({\n name: 'InfraWalletPage',\n component: () => import('./components/Router').then(m => m.Router),\n mountPoint: rootRouteRef,\n }),\n);\n"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["import {\n createApiFactory,\n createPlugin,\n createRoutableExtension,\n createComponentExtension,\n identityApiRef,\n configApiRef,\n} from '@backstage/core-plugin-api';\n\nimport { rootRouteRef, settingsRouteRef } from './routes';\nimport { infraWalletApiRef } from './api/InfraWalletApi';\nimport { InfraWalletApiClient } from './api/InfraWalletApiClient';\n\nexport const infraWalletPlugin = createPlugin({\n id: 'infrawallet',\n routes: {\n root: rootRouteRef,\n settings: settingsRouteRef,\n },\n apis: [\n createApiFactory({\n api: infraWalletApiRef,\n deps: { identityApi: identityApiRef, configApi: configApiRef },\n factory: ({ identityApi, configApi }) => new InfraWalletApiClient({ identityApi, configApi }),\n }),\n ],\n});\n\nexport const InfraWalletPage = infraWalletPlugin.provide(\n createRoutableExtension({\n name: 'InfraWalletPage',\n component: () => import('./components/Router').then(m => m.Router),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const EntityInfraWalletCard = infraWalletPlugin.provide(\n createComponentExtension({\n name: 'EntityInfraWalletCard',\n component: {\n lazy: () => import('./components/EntityInfraWalletCard').then(m => m.EntityInfraWalletCard),\n },\n }),\n);\n"],"names":[],"mappings":";;;;;AAaO,MAAM,oBAAoB,YAAa,CAAA;AAAA,EAC5C,EAAI,EAAA,aAAA;AAAA,EACJ,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,YAAA;AAAA,IACN,QAAU,EAAA,gBAAA;AAAA,GACZ;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,iBAAA;AAAA,MACL,IAAM,EAAA,EAAE,WAAa,EAAA,cAAA,EAAgB,WAAW,YAAa,EAAA;AAAA,MAC7D,OAAA,EAAS,CAAC,EAAE,WAAa,EAAA,SAAA,EAAgB,KAAA,IAAI,oBAAqB,CAAA,EAAE,WAAa,EAAA,SAAA,EAAW,CAAA;AAAA,KAC7F,CAAA;AAAA,GACH;AACF,CAAC,EAAA;AAEM,MAAM,kBAAkB,iBAAkB,CAAA,OAAA;AAAA,EAC/C,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,iBAAA;AAAA,IACN,SAAA,EAAW,MAAM,OAAO,4BAAqB,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,MAAM,CAAA;AAAA,IACjE,UAAY,EAAA,YAAA;AAAA,GACb,CAAA;AACH,EAAA;AAEO,MAAM,wBAAwB,iBAAkB,CAAA,OAAA;AAAA,EACrD,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,uBAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAA,EAAM,MAAM,OAAO,iDAAoC,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,qBAAqB,CAAA;AAAA,KAC5F;AAAA,GACD,CAAA;AACH;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@electrolux-oss/plugin-infrawallet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin"
|
|
6
6
|
},
|
|
@@ -33,28 +33,26 @@
|
|
|
33
33
|
"test": "backstage-cli package test"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
+
"@backstage/catalog-model": "^1.7.0",
|
|
36
37
|
"@backstage/config": "^1.2.0",
|
|
37
38
|
"@backstage/core-components": "^0.14.7",
|
|
38
39
|
"@backstage/core-plugin-api": "^1.9.2",
|
|
40
|
+
"@backstage/plugin-catalog-react": "^1.13.0",
|
|
39
41
|
"@backstage/theme": "^0.5.4",
|
|
40
42
|
"@material-ui/core": "^4.9.13",
|
|
41
|
-
"@
|
|
42
|
-
"@material
|
|
43
|
-
"@mui/
|
|
44
|
-
"@mui/x-
|
|
45
|
-
"@mui/x-
|
|
46
|
-
"@mui/x-date-pickers": "7.17.0",
|
|
43
|
+
"@mui/icons-material": "6.1.1",
|
|
44
|
+
"@mui/material": "^5.16.7",
|
|
45
|
+
"@mui/x-charts": "7.18.0",
|
|
46
|
+
"@mui/x-data-grid": "7.18.0",
|
|
47
|
+
"@mui/x-date-pickers": "7.18.0",
|
|
47
48
|
"@stitches/react": "1.2.8",
|
|
48
49
|
"@types/react": "^18",
|
|
49
|
-
"apexcharts": "3.51.0",
|
|
50
|
-
"better-react-mathjax": "^2.0.2",
|
|
51
50
|
"date-fns": "2.30.0",
|
|
52
|
-
"human-format": "1.2.0",
|
|
53
51
|
"lodash": "^4.17.21",
|
|
54
52
|
"moment": "2.29.4",
|
|
55
53
|
"mui-modal-provider": "2.2.0",
|
|
56
54
|
"node-fetch": "^2.6.7",
|
|
57
|
-
"
|
|
55
|
+
"recharts": "^2.12.7",
|
|
58
56
|
"uuid": "10.0.0"
|
|
59
57
|
},
|
|
60
58
|
"devDependencies": {
|