@k8slens/extensions 5.3.1-git.a2b9153e52.0 → 5.3.1-git.a9abcf99e4.0
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/src/common/catalog/catalog-entity.d.ts +1 -1
- package/dist/src/common/hotbar-store.d.ts +2 -3
- package/dist/src/common/ipc/catalog.d.ts +12 -10
- package/dist/src/common/{cluster-ipc.d.ts → ipc/cluster.d.ts} +8 -0
- package/dist/src/{renderer/remote-helpers → common/ipc}/dialog.d.ts +1 -1
- package/dist/src/common/ipc/extension-handling.d.ts +8 -0
- package/dist/src/common/ipc/hotbar.d.ts +1 -1
- package/dist/src/common/ipc/index.d.ts +1 -6
- package/dist/src/common/ipc/ipc.d.ts +2 -3
- package/dist/src/common/ipc/{update-available.ipc.d.ts → update-available.d.ts} +0 -0
- package/dist/src/common/ipc/window.d.ts +33 -0
- package/dist/src/common/{ipc/extension-loader.ipc.d.ts → ipc-channel/channel.d.ts} +4 -1
- package/dist/src/common/k8s-api/kube-watch-event.d.ts +9 -0
- package/dist/src/extensions/common-api/registrations.d.ts +1 -1
- package/dist/src/extensions/extension-api.js +88 -171
- package/dist/src/extensions/extension-discovery/extension-discovery.d.ts +0 -1
- package/dist/src/extensions/extension-loader/extension-loader.d.ts +0 -2
- package/dist/src/extensions/lens-renderer-extension.d.ts +2 -1
- package/dist/src/extensions/registries/index.d.ts +0 -1
- package/dist/src/main/cluster-manager.d.ts +1 -1
- package/dist/src/main/ipc/dialog.d.ts +9 -0
- package/dist/src/main/ipc/window.d.ts +7 -0
- package/dist/src/main/menu/menu-registration.d.ts +8 -0
- package/dist/src/main/tray/tray-menu-registration.d.ts +13 -0
- package/dist/src/main/window-manager.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/attempt-install/install-request.d.ts +9 -0
- package/dist/src/renderer/components/+extensions/{install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts → install-from-select-file-dialog.injectable.d.ts} +0 -0
- package/dist/src/renderer/components/+preferences/app-preferences/app-preference-registration.d.ts +18 -0
- package/dist/src/renderer/components/+user-management/+service-accounts/details.d.ts +1 -1
- package/dist/src/renderer/components/+welcome/welcome-banner-items/welcome-banner-registration.d.ts +19 -0
- package/dist/src/renderer/components/+welcome/welcome-menu-items/welcome-menu-registration.d.ts +9 -0
- package/dist/src/renderer/components/+workloads-pods/pod-details-secrets.d.ts +1 -1
- package/dist/src/renderer/components/cluster-manager/bottom-bar-items.injectable.d.ts +4 -0
- package/dist/src/renderer/components/cluster-manager/bottom-bar.d.ts +3 -6
- package/dist/src/{extensions/registries/status-bar-registry.d.ts → renderer/components/cluster-manager/status-bar-registration.d.ts} +1 -4
- package/dist/src/renderer/components/command-palette/registered-commands/commands.d.ts +47 -0
- package/dist/src/renderer/components/dialog/dialog.d.ts +0 -1
- package/dist/src/renderer/components/icon/icon.d.ts +1 -0
- package/dist/src/renderer/components/input/search-input-url.d.ts +1 -1
- package/dist/src/renderer/components/kube-object-details/kube-object-details.d.ts +1 -1
- package/dist/src/renderer/components/layout/top-bar/top-bar-registration.d.ts +12 -0
- package/dist/src/renderer/components/path-picker/path-picker.d.ts +1 -1
- package/dist/src/renderer/hooks/index.d.ts +1 -0
- package/dist/src/renderer/hooks/use-toggle.d.ts +1 -0
- package/dist/src/renderer/ipc/index.d.ts +35 -1
- package/dist/src/renderer/{remote-helpers/index.d.ts → ipc/register-listeners.d.ts} +1 -2
- package/package.json +1 -1
- package/dist/src/common/ipc/cluster.ipc.d.ts +0 -11
- package/dist/src/renderer/components/+catalog/catalog-entity-item.d.ts +0 -23
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +0 -6
|
@@ -242,7 +242,7 @@ export declare abstract class CatalogEntity<Metadata extends CatalogEntityMetada
|
|
|
242
242
|
metadata: Metadata;
|
|
243
243
|
status: Status;
|
|
244
244
|
spec: Spec;
|
|
245
|
-
constructor(
|
|
245
|
+
constructor({ metadata, status, spec }: CatalogEntityData<Metadata, Status, Spec>);
|
|
246
246
|
/**
|
|
247
247
|
* Get the UID of this entity
|
|
248
248
|
*/
|
|
@@ -44,10 +44,9 @@ export declare class HotbarStore extends BaseStore<HotbarStoreModel> {
|
|
|
44
44
|
switchToPrevious(): void;
|
|
45
45
|
switchToNext(): void;
|
|
46
46
|
/**
|
|
47
|
-
* Checks if entity already pinned to hotbar
|
|
48
|
-
* @returns boolean
|
|
47
|
+
* Checks if entity already pinned to the active hotbar
|
|
49
48
|
*/
|
|
50
|
-
isAddedToActive(entity: CatalogEntity): boolean;
|
|
49
|
+
isAddedToActive(entity: CatalogEntity | null | undefined): boolean;
|
|
51
50
|
getDisplayLabel(hotbar: Hotbar): string;
|
|
52
51
|
getDisplayIndex(hotbar: Hotbar): string;
|
|
53
52
|
}
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
/**
|
|
6
|
+
* This is used to activate a specific entity in the renderer main frame
|
|
7
|
+
*/
|
|
8
|
+
export declare const catalogEntityRunListener = "catalog-entity:run";
|
|
9
|
+
/**
|
|
10
|
+
* This is broadcast on whenever there is an update to any catalog item
|
|
11
|
+
*/
|
|
12
|
+
export declare const catalogItemsChannel = "catalog:items";
|
|
13
|
+
/**
|
|
14
|
+
* This can be sent from renderer to main to initialize a broadcast of ITEMS
|
|
15
|
+
*/
|
|
16
|
+
export declare const catalogInitChannel = "catalog:init";
|
|
@@ -12,3 +12,11 @@ export declare const clusterSetDeletingHandler = "cluster:deleting:set";
|
|
|
12
12
|
export declare const clusterClearDeletingHandler = "cluster:deleting:clear";
|
|
13
13
|
export declare const clusterKubectlApplyAllHandler = "cluster:kubectl-apply-all";
|
|
14
14
|
export declare const clusterKubectlDeleteAllHandler = "cluster:kubectl-delete-all";
|
|
15
|
+
export declare const clusterStates = "cluster:states";
|
|
16
|
+
/**
|
|
17
|
+
* This channel is broadcast on whenever the cluster fails to list namespaces
|
|
18
|
+
* during a refresh and no `accessibleNamespaces` have been set.
|
|
19
|
+
*/
|
|
20
|
+
export declare const clusterListNamespaceForbiddenChannel = "cluster:list-namespace-forbidden";
|
|
21
|
+
export declare type ListNamespaceForbiddenArgs = [clusterId: string];
|
|
22
|
+
export declare function isListNamespaceForbiddenArgs(args: unknown[]): args is ListNamespaceForbiddenArgs;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
|
-
export declare
|
|
5
|
+
export declare const openFilePickingDialogChannel = "dialog:open:file-picking";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
|
+
*/
|
|
5
|
+
export declare const extensionDiscoveryStateChannel = "extension-discovery:state";
|
|
6
|
+
export declare const bundledExtensionsLoaded = "extension-loader:bundled-extensions-loaded";
|
|
7
|
+
export declare const extensionLoaderFromMainChannel = "extension-loader:main:state";
|
|
8
|
+
export declare const extensionLoaderFromRendererChannel = "extension-loader:renderer:state";
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const hotbarTooManyItemsChannel = "hotbar:too-many-items";
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
|
-
export declare const dialogShowOpenDialogHandler = "dialog:show-open-dialog";
|
|
6
|
-
export declare const catalogEntityRunListener = "catalog-entity:run";
|
|
7
5
|
export * from "./ipc";
|
|
8
6
|
export * from "./invalid-kubeconfig";
|
|
9
|
-
export * from "./update-available
|
|
10
|
-
export * from "./cluster.ipc";
|
|
7
|
+
export * from "./update-available";
|
|
11
8
|
export * from "./type-enforced-ipc";
|
|
12
|
-
export * from "./hotbar";
|
|
13
|
-
export * from "./extension-loader.ipc";
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
5
|
import type { Disposer } from "../utils";
|
|
6
|
-
export declare
|
|
6
|
+
export declare const broadcastMainChannel = "ipc:broadcast-main";
|
|
7
7
|
export declare function ipcMainHandle(channel: string, listener: (event: Electron.IpcMainInvokeEvent, ...args: any[]) => any): void;
|
|
8
|
-
export declare function broadcastMessage(channel: string, ...args: any[]): void
|
|
8
|
+
export declare function broadcastMessage(channel: string, ...args: any[]): Promise<void>;
|
|
9
9
|
export declare function ipcMainOn(channel: string, listener: (event: Electron.IpcMainEvent, ...args: any[]) => any): Disposer;
|
|
10
10
|
export declare function ipcRendererOn(channel: string, listener: (event: Electron.IpcRendererEvent, ...args: any[]) => any): Disposer;
|
|
11
|
-
export declare function bindBroadcastHandlers(): void;
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
|
+
*/
|
|
5
|
+
export declare const windowActionHandleChannel = "window:window-action";
|
|
6
|
+
export declare const windowOpenAppMenuAsContextMenuChannel = "window:open-app-context-menu";
|
|
7
|
+
export declare const windowLocationChangedChannel = "window:location-changed";
|
|
8
|
+
/**
|
|
9
|
+
* The supported actions on the current window. The argument for `windowActionHandleChannel`
|
|
10
|
+
*/
|
|
11
|
+
export declare enum WindowAction {
|
|
12
|
+
/**
|
|
13
|
+
* Request that the current window goes back one step of browser history
|
|
14
|
+
*/
|
|
15
|
+
GO_BACK = "back",
|
|
16
|
+
/**
|
|
17
|
+
* Request that the current window goes forward one step of browser history
|
|
18
|
+
*/
|
|
19
|
+
GO_FORWARD = "forward",
|
|
20
|
+
/**
|
|
21
|
+
* Request that the current window is minimized
|
|
22
|
+
*/
|
|
23
|
+
MINIMIZE = "minimize",
|
|
24
|
+
/**
|
|
25
|
+
* Request that the current window is maximized if it isn't, or unmaximized
|
|
26
|
+
* if it is
|
|
27
|
+
*/
|
|
28
|
+
TOGGLE_MAXIMIZE = "toggle-maximize",
|
|
29
|
+
/**
|
|
30
|
+
* Request that the current window is closed
|
|
31
|
+
*/
|
|
32
|
+
CLOSE = "close"
|
|
33
|
+
}
|
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export interface Channel<TInstance> {
|
|
6
|
+
name: string;
|
|
7
|
+
_template: TInstance;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
|
+
*/
|
|
5
|
+
import type { KubeJsonApiData } from "./kube-json-api";
|
|
6
|
+
export interface IKubeWatchEvent<T extends KubeJsonApiData> {
|
|
7
|
+
type: "ADDED" | "MODIFIED" | "DELETED" | "ERROR";
|
|
8
|
+
object?: T;
|
|
9
|
+
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
|
+
export type { StatusBarRegistration } from "../../renderer/components/cluster-manager/status-bar-registration";
|
|
5
6
|
export type { AppPreferenceRegistration, AppPreferenceComponents } from "../../renderer/components/+preferences/app-preferences/app-preference-registration";
|
|
6
7
|
export type { KubeObjectDetailRegistration, KubeObjectDetailComponents } from "../registries/kube-object-detail-registry";
|
|
7
8
|
export type { KubeObjectMenuRegistration, KubeObjectMenuComponents } from "../registries/kube-object-menu-registry";
|
|
8
9
|
export type { KubeObjectStatusRegistration } from "../registries/kube-object-status-registry";
|
|
9
10
|
export type { PageRegistration, RegisteredPage, PageParams, PageComponentProps, PageComponents, PageTarget } from "../registries/page-registry";
|
|
10
11
|
export type { ClusterPageMenuRegistration, ClusterPageMenuComponents } from "../registries/page-menu-registry";
|
|
11
|
-
export type { StatusBarRegistration } from "../registries/status-bar-registry";
|
|
12
12
|
export type { ProtocolHandlerRegistration, RouteParams as ProtocolRouteParams, RouteHandler as ProtocolRouteHandler } from "../registries/protocol-handler";
|
|
13
13
|
export type { CustomCategoryViewProps, CustomCategoryViewComponents, CustomCategoryViewRegistration } from "../../renderer/components/+catalog/custom-views";
|