@k8slens/extensions 5.3.1-git.93a60caf40.0 → 5.3.1-git.a6763391ee.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/common/base-store.d.ts +5 -2
- package/dist/src/common/k8s-api/api-manager.d.ts +1 -1
- package/dist/src/extensions/extension-api.js +20 -8
- package/dist/src/renderer/components/+namespaces/namespace.store.d.ts +4 -2
- package/dist/src/renderer/components/cluster-manager/cluster-status.d.ts +3 -2
- package/dist/src/renderer/components/dock/dock.store.d.ts +11 -4
- package/dist/src/renderer/components/notifications/notifications.d.ts +3 -3
- package/package.json +1 -1
@@ -18,7 +18,7 @@
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
20
20
|
*/
|
21
|
-
import { IReactionDisposer
|
21
|
+
import { IReactionDisposer } from "mobx";
|
22
22
|
import { noop } from "../../utils";
|
23
23
|
import { KubeObjectStore, KubeObjectStoreLoadingParams } from "../../../common/k8s-api/kube-object.store";
|
24
24
|
import { Namespace } from "../../../common/k8s-api/endpoints/namespaces.api";
|
@@ -27,7 +27,9 @@ export declare class NamespaceStore extends KubeObjectStore<Namespace> {
|
|
27
27
|
private storage;
|
28
28
|
constructor();
|
29
29
|
private init;
|
30
|
-
onContextChange(callback: (namespaces: string[]) => void, opts?:
|
30
|
+
onContextChange(callback: (namespaces: string[]) => void, opts?: {
|
31
|
+
fireImmediately?: boolean;
|
32
|
+
}): IReactionDisposer;
|
31
33
|
private autoLoadAllowedNamespaces;
|
32
34
|
private get initialNamespaces();
|
33
35
|
/**
|
@@ -21,16 +21,17 @@
|
|
21
21
|
import React from "react";
|
22
22
|
import type { Cluster } from "../../../main/cluster";
|
23
23
|
import { IClassName } from "../../utils";
|
24
|
-
import type {
|
24
|
+
import type { KubeAuthUpdate } from "../../../common/cluster-types";
|
25
25
|
interface Props {
|
26
26
|
className?: IClassName;
|
27
|
-
|
27
|
+
cluster: Cluster;
|
28
28
|
}
|
29
29
|
export declare class ClusterStatus extends React.Component<Props> {
|
30
30
|
authOutput: KubeAuthUpdate[];
|
31
31
|
isReconnecting: boolean;
|
32
32
|
constructor(props: Props);
|
33
33
|
get cluster(): Cluster;
|
34
|
+
get entity(): import("../../api/catalog-entity").CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>;
|
34
35
|
get hasErrors(): boolean;
|
35
36
|
componentDidMount(): void;
|
36
37
|
reconnect: () => Promise<void>;
|
@@ -18,7 +18,6 @@
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
20
20
|
*/
|
21
|
-
import { IReactionOptions } from "mobx";
|
22
21
|
export declare type TabId = string;
|
23
22
|
export declare enum TabKind {
|
24
23
|
TERMINAL = "terminal",
|
@@ -78,7 +77,11 @@ export interface DockTabChangeEvent {
|
|
78
77
|
tabId: TabId;
|
79
78
|
prevTab?: DockTab;
|
80
79
|
}
|
81
|
-
export interface DockTabChangeEventOptions
|
80
|
+
export interface DockTabChangeEventOptions {
|
81
|
+
/**
|
82
|
+
* apply a callback right after initialization
|
83
|
+
*/
|
84
|
+
fireImmediately?: boolean;
|
82
85
|
/**
|
83
86
|
* filter: by dockStore.selectedTab.kind == tabKind
|
84
87
|
*/
|
@@ -111,8 +114,12 @@ export declare class DockStore implements DockStorageState {
|
|
111
114
|
private init;
|
112
115
|
get maxHeight(): number;
|
113
116
|
protected adjustHeight(): void;
|
114
|
-
onResize(callback: () => void,
|
115
|
-
|
117
|
+
onResize(callback: () => void, opts?: {
|
118
|
+
fireImmediately?: boolean;
|
119
|
+
}): import("mobx").IReactionDisposer;
|
120
|
+
onTabClose(callback: (evt: DockTabCloseEvent) => void, opts?: {
|
121
|
+
fireImmediately?: boolean;
|
122
|
+
}): import("mobx").IReactionDisposer;
|
116
123
|
onTabChange(callback: (evt: DockTabChangeEvent) => void, options?: DockTabChangeEventOptions): import("mobx").IReactionDisposer;
|
117
124
|
hasTabs(): boolean;
|
118
125
|
open(fullSize?: boolean): void;
|
@@ -23,9 +23,9 @@ import React from "react";
|
|
23
23
|
import { Notification, NotificationMessage } from "./notifications.store";
|
24
24
|
export declare class Notifications extends React.Component {
|
25
25
|
elem: HTMLElement;
|
26
|
-
static ok(message: NotificationMessage): void;
|
27
|
-
static error(message: NotificationMessage, customOpts?: Partial<Notification>): void;
|
28
|
-
static shortInfo(message: NotificationMessage, customOpts?: Partial<Notification>): void;
|
26
|
+
static ok(message: NotificationMessage): () => void;
|
27
|
+
static error(message: NotificationMessage, customOpts?: Partial<Notification>): () => void;
|
28
|
+
static shortInfo(message: NotificationMessage, customOpts?: Partial<Notification>): () => void;
|
29
29
|
static info(message: NotificationMessage, customOpts?: Partial<Notification>): () => void;
|
30
30
|
componentDidMount(): void;
|
31
31
|
scrollToLastNotification(): void;
|
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.
|
5
|
+
"version": "5.3.1-git.a6763391ee.0",
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
7
7
|
"license": "MIT",
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|