@jfvilas/plugin-kwirth-frontend 0.13.5 → 0.14.2

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.
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { Dialog, DialogTitle, DialogContent, Typography, DialogActions, Button } from '@material-ui/core';
3
- import { InstanceMessageTypeEnum } from '@jfvilas/kwirth-common';
3
+ import { EInstanceMessageType } from '@jfvilas/kwirth-common';
4
4
 
5
5
  const StatusLog = (props) => {
6
- return /* @__PURE__ */ React.createElement(Dialog, { open: true }, /* @__PURE__ */ React.createElement(DialogTitle, null, "Status: ", props.level), /* @__PURE__ */ React.createElement(DialogContent, null, props.statusMessages.filter((m) => m.type === InstanceMessageTypeEnum.SIGNAL && m.level === props.level).map((m, index) => /* @__PURE__ */ React.createElement(Typography, { key: index }, m.text))), /* @__PURE__ */ React.createElement(DialogActions, null, /* @__PURE__ */ React.createElement(Button, { onClick: () => props.onClear(props.level), color: "primary", variant: "contained" }, "Clear"), /* @__PURE__ */ React.createElement(Button, { onClick: props.onClose, color: "primary", variant: "contained" }, "Close")));
6
+ return /* @__PURE__ */ React.createElement(Dialog, { open: true }, /* @__PURE__ */ React.createElement(DialogTitle, null, "Status: ", props.level), /* @__PURE__ */ React.createElement(DialogContent, null, props.statusMessages.filter((m) => m.type === EInstanceMessageType.SIGNAL && m.level === props.level).map((m, index) => /* @__PURE__ */ React.createElement(Typography, { key: index }, m.text))), /* @__PURE__ */ React.createElement(DialogActions, null, /* @__PURE__ */ React.createElement(Button, { onClick: () => props.onClear(props.level), color: "primary", variant: "contained" }, "Clear"), /* @__PURE__ */ React.createElement(Button, { onClick: props.onClose, color: "primary", variant: "contained" }, "Close")));
7
7
  };
8
8
 
9
9
  export { StatusLog };
@@ -1 +1 @@
1
- {"version":3,"file":"StatusLog.esm.js","sources":["../../src/StatusLog/StatusLog.tsx"],"sourcesContent":["/*\r\nCopyright 2025 Julio Fernandez\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License.\r\n*/\r\nimport React from 'react';\r\nimport { Dialog, DialogTitle, DialogContent, DialogActions, Button, Typography } from '@material-ui/core'\r\nimport { InstanceMessageTypeEnum, SignalMessageLevelEnum } from '@jfvilas/kwirth-common'\r\nimport { IStatusLine } from '@jfvilas/plugin-kwirth-common';\r\n\r\ninterface IProps {\r\n level: SignalMessageLevelEnum\r\n statusMessages: IStatusLine[]\r\n onClear: (level:SignalMessageLevelEnum) => void\r\n onClose: () => void\r\n}\r\n\r\nconst StatusLog = (props:IProps) => {\r\n return (\r\n <Dialog open={true}>\r\n <DialogTitle>\r\n Status: {props.level} \r\n </DialogTitle>\r\n <DialogContent>\r\n { props.statusMessages.filter(m => m.type === InstanceMessageTypeEnum.SIGNAL && m.level === props.level).map( (m,index) => <Typography key={index}>{m.text}</Typography>) }\r\n </DialogContent>\r\n <DialogActions>\r\n <Button onClick={() => props.onClear(props.level)} color='primary' variant='contained'>Clear</Button>\r\n <Button onClick={props.onClose} color='primary' variant='contained'>Close</Button>\r\n </DialogActions>\r\n </Dialog>\r\n )\r\n\r\n}\r\n\r\nexport { StatusLog }"],"names":[],"mappings":";;;;AA2BA,MAAM,SAAA,GAAY,CAAC,KAAA,KAAiB;AAChC,EAAA,uBACI,KAAA,CAAA,aAAA,CAAC,MAAA,EAAA,EAAO,IAAA,EAAM,IAAA,EAAA,kBACV,KAAA,CAAA,aAAA,CAAC,WAAA,EAAA,IAAA,EAAY,UAAA,EACA,KAAA,CAAM,KACnB,CAAA,kBACA,KAAA,CAAA,aAAA,CAAC,aAAA,EAAA,IAAA,EACK,MAAM,cAAA,CAAe,MAAA,CAAO,CAAA,CAAA,KAAK,CAAA,CAAE,IAAA,KAAS,uBAAA,CAAwB,MAAA,IAAU,CAAA,CAAE,UAAU,KAAA,CAAM,KAAK,CAAA,CAAE,GAAA,CAAK,CAAC,CAAA,EAAE,KAAA,qBAAU,KAAA,CAAA,aAAA,CAAC,cAAW,GAAA,EAAK,KAAA,EAAA,EAAQ,CAAA,CAAE,IAAK,CAAa,CAC5K,CAAA,kBACA,KAAA,CAAA,aAAA,CAAC,aAAA,EAAA,IAAA,kBACG,KAAA,CAAA,aAAA,CAAC,MAAA,EAAA,EAAO,OAAA,EAAS,MAAM,KAAA,CAAM,OAAA,CAAQ,KAAA,CAAM,KAAK,CAAA,EAAG,KAAA,EAAM,SAAA,EAAU,OAAA,EAAQ,WAAA,EAAA,EAAY,OAAK,CAAA,kBAC5F,KAAA,CAAA,aAAA,CAAC,UAAO,OAAA,EAAS,KAAA,CAAM,OAAA,EAAS,KAAA,EAAM,SAAA,EAAU,OAAA,EAAQ,WAAA,EAAA,EAAY,OAAK,CAC7E,CACJ,CAAA;AAGR;;;;"}
1
+ {"version":3,"file":"StatusLog.esm.js","sources":["../../src/StatusLog/StatusLog.tsx"],"sourcesContent":["/*\r\nCopyright 2025 Julio Fernandez\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License.\r\n*/\r\nimport React from 'react';\r\nimport { Dialog, DialogTitle, DialogContent, DialogActions, Button, Typography } from '@material-ui/core'\r\nimport { ESignalMessageLevel, EInstanceMessageType } from '@jfvilas/kwirth-common'\r\nimport { IStatusLine } from '@jfvilas/plugin-kwirth-common';\r\n\r\ninterface IProps {\r\n level: ESignalMessageLevel\r\n statusMessages: IStatusLine[]\r\n onClear: (level:ESignalMessageLevel) => void\r\n onClose: () => void\r\n}\r\n\r\nconst StatusLog = (props:IProps) => {\r\n return (\r\n <Dialog open={true}>\r\n <DialogTitle>\r\n Status: {props.level} \r\n </DialogTitle>\r\n <DialogContent>\r\n { props.statusMessages.filter(m => m.type === EInstanceMessageType.SIGNAL && m.level === props.level).map( (m,index) => <Typography key={index}>{m.text}</Typography>) }\r\n </DialogContent>\r\n <DialogActions>\r\n <Button onClick={() => props.onClear(props.level)} color='primary' variant='contained'>Clear</Button>\r\n <Button onClick={props.onClose} color='primary' variant='contained'>Close</Button>\r\n </DialogActions>\r\n </Dialog>\r\n )\r\n\r\n}\r\n\r\nexport { StatusLog }"],"names":[],"mappings":";;;;AA2BA,MAAM,SAAA,GAAY,CAAC,KAAA,KAAiB;AAChC,EAAA,uBACI,KAAA,CAAA,aAAA,CAAC,MAAA,EAAA,EAAO,IAAA,EAAM,IAAA,EAAA,kBACV,KAAA,CAAA,aAAA,CAAC,WAAA,EAAA,IAAA,EAAY,UAAA,EACA,KAAA,CAAM,KACnB,CAAA,kBACA,KAAA,CAAA,aAAA,CAAC,aAAA,EAAA,IAAA,EACK,MAAM,cAAA,CAAe,MAAA,CAAO,CAAA,CAAA,KAAK,CAAA,CAAE,IAAA,KAAS,oBAAA,CAAqB,MAAA,IAAU,CAAA,CAAE,UAAU,KAAA,CAAM,KAAK,CAAA,CAAE,GAAA,CAAK,CAAC,CAAA,EAAE,KAAA,qBAAU,KAAA,CAAA,aAAA,CAAC,cAAW,GAAA,EAAK,KAAA,EAAA,EAAQ,CAAA,CAAE,IAAK,CAAa,CACzK,CAAA,kBACA,KAAA,CAAA,aAAA,CAAC,aAAA,EAAA,IAAA,kBACG,KAAA,CAAA,aAAA,CAAC,MAAA,EAAA,EAAO,OAAA,EAAS,MAAM,KAAA,CAAM,OAAA,CAAQ,KAAA,CAAM,KAAK,CAAA,EAAG,KAAA,EAAM,SAAA,EAAU,OAAA,EAAQ,WAAA,EAAA,EAAY,OAAK,CAAA,kBAC5F,KAAA,CAAA,aAAA,CAAC,UAAO,OAAA,EAAS,KAAA,CAAM,OAAA,EAAS,KAAA,EAAM,SAAA,EAAU,OAAA,EAAQ,WAAA,EAAA,EAAY,OAAK,CAC7E,CACJ,CAAA;AAGR;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Entity } from '@backstage/catalog-model';
3
3
  import { ClusterValidPods, IStatusLine, IBackendInfo } from '@jfvilas/plugin-kwirth-common';
4
- import { InstanceConfigScopeEnum, SignalMessageLevelEnum } from '@jfvilas/kwirth-common';
4
+ import { ESignalMessageLevel } from '@jfvilas/kwirth-common';
5
5
 
6
6
  declare enum ErrorType {
7
7
  NO_PODS = 0,
@@ -18,7 +18,8 @@ interface IProps$3 {
18
18
  selectedNamespaces: string[];
19
19
  selectedPodNames: string[];
20
20
  selectedContainerNames: string[];
21
- scope: InstanceConfigScopeEnum;
21
+ excludeCotainers?: string[];
22
+ scope: string;
22
23
  disabled: boolean;
23
24
  }
24
25
  declare const ObjectSelector: (props: IProps$3) => React.JSX.Element;
@@ -31,9 +32,9 @@ interface IProps$2 {
31
32
  declare const ClusterList: (props: IProps$2) => React.JSX.Element;
32
33
 
33
34
  interface IProps$1 {
34
- level: SignalMessageLevelEnum;
35
+ level: ESignalMessageLevel;
35
36
  statusMessages: IStatusLine[];
36
- onClear: (level: SignalMessageLevelEnum) => void;
37
+ onClear: (level: ESignalMessageLevel) => void;
37
38
  onClose: () => void;
38
39
  }
39
40
  declare const StatusLog: (props: IProps$1) => React.JSX.Element;
@@ -50,6 +51,4 @@ declare const ShowError: (props: {
50
51
  onClose: () => void;
51
52
  }) => React.JSX.Element;
52
53
 
53
- declare const VERSION = "0.13.4";
54
-
55
- export { ClusterList, ComponentNotFound, ErrorType, KwirthNews, ObjectSelector, ShowError, StatusLog, VERSION };
54
+ export { ClusterList, ComponentNotFound, ErrorType, KwirthNews, ObjectSelector, ShowError, StatusLog };
package/dist/index.esm.js CHANGED
@@ -4,8 +4,4 @@ export { ClusterList } from './ClusterList/ClusterList.esm.js';
4
4
  export { StatusLog } from './StatusLog/StatusLog.esm.js';
5
5
  export { KwirthNews } from './KwirthNews/KwirthNews.esm.js';
6
6
  export { ShowError } from './ShowError/ShowError.esm.js';
7
-
8
- const VERSION = "0.13.4";
9
-
10
- export { VERSION };
11
7
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["export const VERSION='0.13.4'\r\n\r\nexport * from './ComponentNotFound'\r\nexport * from './ObjectSelector'\r\nexport * from './ClusterList'\r\nexport * from './StatusLog'\r\nexport * from './KwirthNews'\r\nexport * from './ShowError'"],"names":[],"mappings":";;;;;;;AAAO,MAAM,OAAA,GAAQ;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jfvilas/plugin-kwirth-frontend",
3
- "version": "0.13.5",
3
+ "version": "0.14.2",
4
4
  "description": "Frontend common artifacts for viewing real-time Kubernetes logs in Backstage",
5
5
  "keywords": [
6
6
  "Backstage",
@@ -43,6 +43,13 @@
43
43
  },
44
44
  "main": "./dist/index.esm.js",
45
45
  "types": "./dist/index.d.ts",
46
+ "typesVersions": {
47
+ "*": {
48
+ "package.json": [
49
+ "package.json"
50
+ ]
51
+ }
52
+ },
46
53
  "files": [
47
54
  "dist"
48
55
  ],
@@ -56,20 +63,20 @@
56
63
  "test": "backstage-cli package test"
57
64
  },
58
65
  "dependencies": {
59
- "@backstage/catalog-model": "1.5.0",
60
- "@backstage/core-components": "^0.14.9",
61
- "@backstage/core-plugin-api": "^1.9.3",
62
- "@backstage/frontend-plugin-api": "^0.7.0",
63
- "@backstage/integration-react": "^1.1.29",
64
- "@backstage/plugin-auth-react": "^0.1.4",
65
- "@backstage/plugin-catalog-react": "^1.12.2",
66
+ "@backstage/catalog-model": "^1.7.7",
67
+ "@backstage/core-components": "^0.18.8",
68
+ "@backstage/core-plugin-api": "^1.12.4",
69
+ "@backstage/frontend-plugin-api": "^0.15.1",
70
+ "@backstage/integration-react": "^1.2.16",
71
+ "@backstage/plugin-auth-react": "^0.1.25",
72
+ "@backstage/plugin-catalog-react": "^2.1.0",
66
73
  "@material-ui/core": "^4.12.2",
67
74
  "@material-ui/icons": "^4.9.1",
68
75
  "@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
69
76
  "react-use": "^17.2.4"
70
77
  },
71
78
  "devDependencies": {
72
- "@backstage/cli": "^0.26.11",
79
+ "@backstage/cli": "^0.36.0",
73
80
  "@testing-library/dom": "^10.0.0",
74
81
  "@testing-library/jest-dom": "^6.0.0",
75
82
  "@testing-library/react": "^15.0.0",