@k8slens/extensions 5.6.0-git.d09816aacf.0 → 5.6.0-git.e1152790c3.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/app-paths/app-path-injection-token.d.ts +0 -1
- package/dist/src/common/application-update/selected-update-channel/default-update-channel.injectable.d.ts +2 -0
- package/dist/src/common/application-update/selected-update-channel/selected-update-channel.injectable.d.ts +8 -0
- package/dist/src/common/application-update/update-channels.d.ts +11 -0
- package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -1
- package/dist/src/common/ipc/index.d.ts +0 -1
- package/dist/src/common/k8s-api/endpoints/custom-resource-definition.api.d.ts +8 -3
- package/dist/src/common/k8s-api/endpoints/pod.api.d.ts +49 -40
- package/dist/src/common/{ipc-channel/channel.d.ts → k8s-api/endpoints/types/external-documentation.d.ts} +3 -3
- package/dist/src/common/k8s-api/endpoints/types/json-schema-props.d.ts +86 -0
- package/dist/src/common/k8s-api/kube-api.d.ts +9 -0
- package/dist/src/common/terminal/channels.d.ts +28 -0
- package/dist/src/common/user-store/preferences-helpers.d.ts +2 -6
- package/dist/src/common/user-store/user-store.d.ts +7 -3
- package/dist/src/common/vars/base-bundled-binaries-dir.injectable.d.ts +2 -0
- package/dist/src/common/vars/bundled-binaries-normalized-arch.injectable.d.ts +2 -0
- package/dist/src/common/vars/bundled-resources-dir.injectable.d.ts +2 -0
- package/dist/src/common/vars/lens-resources-dir.injectable.d.ts +2 -0
- package/dist/src/common/vars/normalized-platform.injectable.d.ts +2 -0
- package/dist/src/common/vars/package-json.injectable.d.ts +348 -0
- package/dist/src/common/vars/static-files-directory.injectable.d.ts +2 -0
- package/dist/src/common/vars.d.ts +6 -9
- package/dist/src/main/app-paths/app-name/product-name.injectable.d.ts +2 -0
- package/dist/src/main/kubectl/kubectl.d.ts +18 -14
- package/dist/src/main/start-main-application/lens-window/application-window/application-window.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/lens-window/application-window/create-electron-window-for.injectable.d.ts +9 -1
- package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +4 -4
- package/dist/src/main/start-main-application/lens-window/application-window/lens-window-injection-token.d.ts +1 -1
- package/dist/src/main/start-main-application/lens-window/splash-window/splash-window.injectable.d.ts +1 -1
- package/dist/src/main/{app-paths/register-channel → utils/channel}/ipc-main/ipc-main.injectable.d.ts +0 -0
- package/dist/src/renderer/api/terminal-api.d.ts +2 -22
- package/dist/src/renderer/api/websocket-api.d.ts +4 -4
- package/dist/src/renderer/components/+namespaces/namespace-select.d.ts +1 -0
- package/dist/src/renderer/components/+user-management/+service-accounts/service-account-menu.d.ts +1 -0
- package/dist/src/renderer/components/animate/animate.d.ts +6 -1
- package/dist/src/renderer/components/animate/request-animation-frame.injectable.d.ts +2 -0
- package/dist/src/renderer/components/dock/terminal/terminal.d.ts +6 -3
- package/dist/src/renderer/components/drawer/drawer-item-labels.d.ts +1 -0
- package/dist/src/renderer/components/drawer/drawer-item.d.ts +7 -2
- package/dist/src/renderer/components/icon/icon.d.ts +22 -1
- package/dist/src/renderer/components/input/input.d.ts +1 -1
- package/dist/src/renderer/components/item-object-list/filter-icon.d.ts +1 -0
- package/dist/src/renderer/components/notifications/notifications-store.injectable.d.ts +3 -0
- package/dist/src/renderer/components/notifications/notifications.d.ts +7 -12
- package/dist/src/renderer/components/notifications/notifications.store.d.ts +0 -1
- package/dist/src/renderer/components/resource-metrics/no-metrics.d.ts +1 -0
- package/dist/src/renderer/components/select/select.d.ts +1 -1
- package/dist/src/renderer/components/switch/form-switcher.d.ts +1 -0
- package/dist/src/renderer/components/table/table-cell.d.ts +0 -4
- package/dist/src/renderer/{app-paths/get-value-from-registered-channel/ipc-renderer → utils/channel}/ipc-renderer.injectable.d.ts +0 -0
- package/dist/src/{common/ipc-channel/create-channel/create-channel.d.ts → renderer/utils/display-mode.d.ts} +4 -2
- package/dist/src/renderer/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/common/app-paths/directory-for-bundled-binaries/directory-for-bundled-binaries.injectable.d.ts +0 -2
- package/dist/src/common/ipc/update-available.d.ts +0 -19
- package/dist/src/renderer/utils/display-booleans.d.ts +0 -6
|
@@ -11,7 +11,28 @@ export interface BaseIconProps {
|
|
|
11
11
|
*/
|
|
12
12
|
material?: string;
|
|
13
13
|
/**
|
|
14
|
-
* Either an SVG
|
|
14
|
+
* Either an SVG XML or one of the following names
|
|
15
|
+
* - configuration
|
|
16
|
+
* - crane
|
|
17
|
+
* - group
|
|
18
|
+
* - helm
|
|
19
|
+
* - install
|
|
20
|
+
* - kube
|
|
21
|
+
* - lens-logo
|
|
22
|
+
* - license
|
|
23
|
+
* - logo-lens
|
|
24
|
+
* - logout
|
|
25
|
+
* - nodes
|
|
26
|
+
* - push_off
|
|
27
|
+
* - push_pin
|
|
28
|
+
* - spinner
|
|
29
|
+
* - ssh
|
|
30
|
+
* - storage
|
|
31
|
+
* - terminal
|
|
32
|
+
* - user
|
|
33
|
+
* - users
|
|
34
|
+
* - wheel
|
|
35
|
+
* - workloads
|
|
15
36
|
*/
|
|
16
37
|
svg?: string;
|
|
17
38
|
/**
|
|
@@ -94,7 +94,7 @@ export declare class Input extends React.Component<InputProps, State> {
|
|
|
94
94
|
onFocus(evt: React.FocusEvent<InputElement>): void;
|
|
95
95
|
onBlur(evt: React.FocusEvent<InputElement>): void;
|
|
96
96
|
setDirtyOnChange: import("lodash").DebouncedFunc<() => void>;
|
|
97
|
-
onChange(evt: React.ChangeEvent<any>): void
|
|
97
|
+
onChange(evt: React.ChangeEvent<any>): Promise<void>;
|
|
98
98
|
onKeyDown(evt: React.KeyboardEvent<InputElement>): void;
|
|
99
99
|
get showMaxLenIndicator(): boolean | 0 | undefined;
|
|
100
100
|
get isUncontrolled(): boolean;
|
|
@@ -2,6 +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
|
+
/// <reference types="react" />
|
|
5
6
|
import type { IconProps } from "../icon";
|
|
6
7
|
import { FilterType } from "./page-filters/store";
|
|
7
8
|
export interface FilterIconProps extends Partial<IconProps> {
|
|
@@ -5,15 +5,10 @@
|
|
|
5
5
|
import "./notifications.scss";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import type { Notification, NotificationMessage } from "./notifications.store";
|
|
8
|
-
export declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
componentDidMount(): void;
|
|
16
|
-
scrollToLastNotification(): void;
|
|
17
|
-
getMessage(notification: Notification): (React.ReactChild | React.ReactFragment | React.ReactPortal)[];
|
|
18
|
-
render(): JSX.Element;
|
|
19
|
-
}
|
|
8
|
+
export declare const Notifications: React.FC<{}> & {
|
|
9
|
+
ok: (message: NotificationMessage) => () => void;
|
|
10
|
+
checkedError: (message: unknown, fallback: string, customOpts?: Partial<Omit<Notification, "message">> | undefined) => () => void;
|
|
11
|
+
error: (message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">> | undefined) => () => void;
|
|
12
|
+
shortInfo: (message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">> | undefined) => () => void;
|
|
13
|
+
info: (message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">> | undefined) => () => void;
|
|
14
|
+
};
|
|
@@ -8,7 +8,7 @@ import type { ObservableSet } from "mobx";
|
|
|
8
8
|
import type { Props as ReactSelectProps, GroupBase, PropsValue } from "react-select";
|
|
9
9
|
export interface SelectOption<Value> {
|
|
10
10
|
value: Value;
|
|
11
|
-
label:
|
|
11
|
+
label: React.ReactNode;
|
|
12
12
|
isDisabled?: boolean;
|
|
13
13
|
isSelected?: boolean;
|
|
14
14
|
}
|
|
@@ -2,6 +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
|
+
/// <reference types="react" />
|
|
5
6
|
import type { FormControlLabelProps } from "@material-ui/core/FormControlLabel";
|
|
6
7
|
/**
|
|
7
8
|
* @deprecated Use <Switch/> instead from "../switch.tsx".
|
|
@@ -32,10 +32,6 @@ export interface TableCellProps extends React.DOMAttributes<HTMLDivElement> {
|
|
|
32
32
|
* mark checkbox as checked or not
|
|
33
33
|
*/
|
|
34
34
|
isChecked?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* show "true" or "false" for all of the children elements are "typeof boolean"
|
|
37
|
-
*/
|
|
38
|
-
renderBoolean?: boolean;
|
|
39
35
|
/**
|
|
40
36
|
* column name, must be same as key in sortable object <Table sortable={}/>
|
|
41
37
|
*/
|
|
File without changes
|
|
@@ -2,5 +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
|
-
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Format `mode` in octal notation
|
|
7
|
+
*/
|
|
8
|
+
export declare function displayMode(mode: number): string;
|
|
@@ -6,7 +6,7 @@ export * from "../../common/utils";
|
|
|
6
6
|
export * from "../../common/event-emitter";
|
|
7
7
|
export * from "./cssNames";
|
|
8
8
|
export * from "./cssVar";
|
|
9
|
-
export * from "./display-
|
|
9
|
+
export * from "./display-mode";
|
|
10
10
|
export * from "./interval";
|
|
11
11
|
export * from "./isMiddleClick";
|
|
12
12
|
export * from "./isReactNode";
|
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.6.0-git.
|
|
5
|
+
"version": "5.6.0-git.e1152790c3.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
|
@@ -1,19 +0,0 @@
|
|
|
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 { UpdateInfo } from "electron-updater";
|
|
6
|
-
export declare const UpdateAvailableChannel = "update-available";
|
|
7
|
-
export declare const AutoUpdateChecking = "auto-update:checking";
|
|
8
|
-
export declare const AutoUpdateNoUpdateAvailable = "auto-update:no-update";
|
|
9
|
-
export declare const AutoUpdateLogPrefix = "[UPDATE-CHECKER]";
|
|
10
|
-
export declare type UpdateAvailableFromMain = [backChannel: string, updateInfo: UpdateInfo];
|
|
11
|
-
export declare function areArgsUpdateAvailableFromMain(args: unknown[]): args is UpdateAvailableFromMain;
|
|
12
|
-
export declare type BackchannelArg = {
|
|
13
|
-
doUpdate: false;
|
|
14
|
-
} | {
|
|
15
|
-
doUpdate: true;
|
|
16
|
-
now: boolean;
|
|
17
|
-
};
|
|
18
|
-
export declare type UpdateAvailableToBackchannel = [updateDecision: BackchannelArg];
|
|
19
|
-
export declare function areArgsUpdateAvailableToBackchannel(args: unknown[]): args is UpdateAvailableToBackchannel;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 React from "react";
|
|
6
|
-
export declare function displayBooleans(shouldShow: boolean | undefined, from: React.ReactNode): React.ReactNode;
|