@jfvilas/plugin-kwirth-metrics 0.13.1 → 0.13.3

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/index.esm.js CHANGED
@@ -2,7 +2,7 @@ export { EntityKwirthMetricsContent, kwirthMetricsPlugin } from './plugin.esm.js
2
2
  export { KwirthMetricsClient } from './api/KwirthMetricsClient.esm.js';
3
3
  export { kwirthMetricsApiRef } from './api/types.esm.js';
4
4
 
5
- const VERSION = "0.12.9";
5
+ const VERSION = "0.13.2";
6
6
 
7
7
  export { VERSION };
8
8
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["export const VERSION='0.12.9'\r\n\r\nexport { EntityKwirthMetricsContent, kwirthMetricsPlugin } from './plugin'\r\nexport { KwirthMetricsClient as KwirthMetricsClient, kwirthMetricsApiRef as kwirthMetricsApiRef } from './api'\r\n\r\nexport type { KwirthMetricsApi, KwirthMetricsClientOptions } from './api'"],"names":[],"mappings":";;;;AAAO,MAAM,OAAA,GAAQ;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["export const VERSION='0.13.2'\r\n\r\nexport { EntityKwirthMetricsContent, kwirthMetricsPlugin } from './plugin'\r\nexport { KwirthMetricsClient as KwirthMetricsClient, kwirthMetricsApiRef as kwirthMetricsApiRef } from './api'\r\n\r\nexport type { KwirthMetricsApi, KwirthMetricsClientOptions } from './api'"],"names":[],"mappings":";;;;AAAO,MAAM,OAAA,GAAQ;;;;"}
@@ -24,7 +24,10 @@ const kwirthMetricsPlugin = createPlugin({
24
24
  const EntityKwirthMetricsContent = kwirthMetricsPlugin.provide(
25
25
  createRoutableExtension({
26
26
  name: "EntityKwirthMetricsContent",
27
- component: () => import('./components/EntityKwirthMetricsContent.esm.js').then((m) => m.EntityKwirthMetricsContent),
27
+ component: () => (
28
+ //import('./components/EntityKwirthMetricsContent').then(m => m.EntityKwirthMetricsContent),
29
+ import('./components/EntityKwirthMetricsContent.esm.js').then((m) => m.EntityKwirthMetricsContent)
30
+ ),
28
31
  mountPoint: rootRouteRef
29
32
  })
30
33
  );
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\r\nCopyright 2024 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 { kwirthMetricsApiRef, KwirthMetricsClient } from './api';\r\nimport { createApiFactory, createPlugin, createRoutableExtension } from '@backstage/core-plugin-api';\r\nimport { discoveryApiRef, fetchApiRef } from '@backstage/core-plugin-api';\r\nimport { rootRouteRef } from './routes';\r\n\r\nexport const kwirthMetricsPlugin = createPlugin({\r\n id: 'kwirthmetrics', \r\n apis: [\r\n createApiFactory({\r\n api: kwirthMetricsApiRef,\r\n deps: {\r\n discoveryApi: discoveryApiRef,\r\n fetchApi: fetchApiRef,\r\n },\r\n factory({ discoveryApi, fetchApi }) {\r\n return new KwirthMetricsClient({ discoveryApi, fetchApi });\r\n },\r\n }),\r\n ],\r\n routes: {\r\n root: rootRouteRef\r\n }\r\n});\r\n\r\nexport const EntityKwirthMetricsContent = kwirthMetricsPlugin.provide(\r\n createRoutableExtension({\r\n name: 'EntityKwirthMetricsContent',\r\n component: () =>\r\n import('./components/EntityKwirthMetricsContent').then(m => m.EntityKwirthMetricsContent),\r\n mountPoint: rootRouteRef\r\n })\r\n);\r\n"],"names":[],"mappings":";;;;;AAoBO,MAAM,sBAAsB,YAAA,CAAa;AAAA,EAC9C,EAAA,EAAI,eAAA;AAAA,EACJ,IAAA,EAAM;AAAA,IACJ,gBAAA,CAAiB;AAAA,MACf,GAAA,EAAK,mBAAA;AAAA,MACL,IAAA,EAAM;AAAA,QACJ,YAAA,EAAc,eAAA;AAAA,QACd,QAAA,EAAU;AAAA,OACZ;AAAA,MACA,OAAA,CAAQ,EAAE,YAAA,EAAc,QAAA,EAAS,EAAG;AAClC,QAAA,OAAO,IAAI,mBAAA,CAAoB,EAAE,YAAA,EAAc,UAAU,CAAA;AAAA,MAC3D;AAAA,KACD;AAAA,GACH;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA;AAEV,CAAC;AAEM,MAAM,6BAA6B,mBAAA,CAAoB,OAAA;AAAA,EAC5D,uBAAA,CAAwB;AAAA,IACtB,IAAA,EAAM,4BAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,gDAAyC,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,0BAA0B,CAAA;AAAA,IAC1F,UAAA,EAAY;AAAA,GACb;AACH;;;;"}
1
+ {"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\r\nCopyright 2024 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 { kwirthMetricsApiRef, KwirthMetricsClient } from './api';\r\nimport { createApiFactory, createPlugin, createRoutableExtension } from '@backstage/core-plugin-api';\r\nimport { discoveryApiRef, fetchApiRef } from '@backstage/core-plugin-api';\r\nimport { rootRouteRef } from './routes';\r\n\r\nexport const kwirthMetricsPlugin = createPlugin({\r\n id: 'kwirthmetrics', \r\n apis: [\r\n createApiFactory({\r\n api: kwirthMetricsApiRef,\r\n deps: {\r\n discoveryApi: discoveryApiRef,\r\n fetchApi: fetchApiRef,\r\n },\r\n factory({ discoveryApi, fetchApi }) {\r\n return new KwirthMetricsClient({ discoveryApi, fetchApi });\r\n },\r\n }),\r\n ],\r\n routes: {\r\n root: rootRouteRef\r\n }\r\n});\r\n\r\nexport const EntityKwirthMetricsContent = kwirthMetricsPlugin.provide(\r\n createRoutableExtension({\r\n name: 'EntityKwirthMetricsContent',\r\n component: () =>\r\n //import('./components/EntityKwirthMetricsContent').then(m => m.EntityKwirthMetricsContent),\r\n import('./components/EntityKwirthMetricsContent').then(m => m.EntityKwirthMetricsContent as (props: any) => JSX.Element),\r\n mountPoint: rootRouteRef\r\n })\r\n)\r\n"],"names":[],"mappings":";;;;;AAoBO,MAAM,sBAAsB,YAAA,CAAa;AAAA,EAC9C,EAAA,EAAI,eAAA;AAAA,EACJ,IAAA,EAAM;AAAA,IACJ,gBAAA,CAAiB;AAAA,MACf,GAAA,EAAK,mBAAA;AAAA,MACL,IAAA,EAAM;AAAA,QACJ,YAAA,EAAc,eAAA;AAAA,QACd,QAAA,EAAU;AAAA,OACZ;AAAA,MACA,OAAA,CAAQ,EAAE,YAAA,EAAc,QAAA,EAAS,EAAG;AAClC,QAAA,OAAO,IAAI,mBAAA,CAAoB,EAAE,YAAA,EAAc,UAAU,CAAA;AAAA,MAC3D;AAAA,KACD;AAAA,GACH;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA;AAEV,CAAC;AAEM,MAAM,6BAA6B,mBAAA,CAAoB,OAAA;AAAA,EAC5D,uBAAA,CAAwB;AAAA,IACtB,IAAA,EAAM,4BAAA;AAAA,IACN,SAAA,EAAW;AAAA;AAAA,MAET,OAAO,gDAAyC,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,0BAAyD;AAAA,KAAA;AAAA,IACzH,UAAA,EAAY;AAAA,GACb;AACH;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jfvilas/plugin-kwirth-metrics",
3
- "version": "0.13.1",
3
+ "version": "0.13.3",
4
4
  "description": "Frontend plugin for viewing Kubernetes resource usage (metrics) in Backstage",
5
5
  "keywords": [
6
6
  "Backstage",