@k8slens/extensions 5.3.1-git.a6763391ee.0 → 5.3.1-git.b3723de3ec.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,10 +26,11 @@ import * as ReactRouter from "react-router";
26
26
  import * as ReactRouterDom from "react-router-dom";
27
27
  import * as LensExtensionsCommonApi from "../extensions/common-api";
28
28
  import * as LensExtensionsRendererApi from "../extensions/renderer-api";
29
+ import type { DependencyInjectionContainer } from "@ogre-tools/injectable";
29
30
  declare type AppComponent = React.ComponentType & {
30
31
  init(rootElem: HTMLElement): Promise<void>;
31
32
  };
32
- export declare function bootstrap(comp: () => Promise<AppComponent>): Promise<void>;
33
+ export declare function bootstrap(comp: () => Promise<AppComponent>, di: DependencyInjectionContainer): Promise<void>;
33
34
  /**
34
35
  * Exports for virtual package "@k8slens/extensions" for renderer-process.
35
36
  * All exporting names available in global runtime scope:
@@ -21,15 +21,10 @@
21
21
  import "./overview-workload-status.scss";
22
22
  import React from "react";
23
23
  interface Props {
24
- status: {
25
- [key: string]: number;
26
- };
24
+ status: Record<string, number>;
27
25
  }
28
26
  export declare class OverviewWorkloadStatus extends React.Component<Props> {
29
- elem: HTMLElement;
30
- constructor(props: Props);
31
- componentDidMount(): void;
32
- getStatusColor(status: string): string;
27
+ elem?: HTMLElement;
33
28
  renderChart(): JSX.Element;
34
29
  render(): JSX.Element;
35
30
  }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2021 OpenLens Authors
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ * this software and associated documentation files (the "Software"), to deal in
6
+ * the Software without restriction, including without limitation the rights to
7
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ * the Software, and to permit persons to whom the Software is furnished to do so,
9
+ * subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in all
12
+ * copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ */
21
+ import type { ConfigurableDependencyInjectionContainer } from "@ogre-tools/injectable";
22
+ export declare const getDi: () => ConfigurableDependencyInjectionContainer;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2021 OpenLens Authors
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ * this software and associated documentation files (the "Software"), to deal in
6
+ * the Software without restriction, including without limitation the rights to
7
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ * the Software, and to permit persons to whom the Software is furnished to do so,
9
+ * subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in all
12
+ * copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ */
21
+ import { ConfigurableDependencyInjectionContainer } from "@ogre-tools/injectable";
22
+ export declare const getDiForUnitTesting: () => ConfigurableDependencyInjectionContainer;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@k8slens/extensions",
3
3
  "productName": "OpenLens extensions",
4
4
  "description": "OpenLens - Open Source Kubernetes IDE: extensions",
5
- "version": "5.3.1-git.a6763391ee.0",
5
+ "version": "5.3.1-git.b3723de3ec.0",
6
6
  "copyright": "© 2021 OpenLens Authors",
7
7
  "license": "MIT",
8
8
  "main": "dist/src/extensions/extension-api.js",