@k8slens/extensions 5.6.0-git.d6107e9585.0 → 5.6.0-git.db65a89ee0.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.
Files changed (57) hide show
  1. package/dist/src/common/app-paths/app-path-injection-token.d.ts +0 -1
  2. package/dist/src/common/application-update/selected-update-channel/default-update-channel.injectable.d.ts +2 -0
  3. package/dist/src/common/application-update/selected-update-channel/selected-update-channel.injectable.d.ts +8 -0
  4. package/dist/src/common/application-update/update-channels.d.ts +11 -0
  5. package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -1
  6. package/dist/src/common/ipc/index.d.ts +0 -1
  7. package/dist/src/common/k8s-api/endpoints/custom-resource-definition.api.d.ts +8 -3
  8. package/dist/src/common/k8s-api/endpoints/node.api.d.ts +2 -0
  9. package/dist/src/common/k8s-api/endpoints/pod.api.d.ts +49 -40
  10. package/dist/src/common/{ipc-channel/channel.d.ts → k8s-api/endpoints/types/external-documentation.d.ts} +3 -3
  11. package/dist/src/common/k8s-api/endpoints/types/json-schema-props.d.ts +86 -0
  12. package/dist/src/common/k8s-api/kube-api.d.ts +9 -0
  13. package/dist/src/common/terminal/channels.d.ts +28 -0
  14. package/dist/src/common/user-store/preferences-helpers.d.ts +2 -6
  15. package/dist/src/common/user-store/user-store.d.ts +7 -3
  16. package/dist/src/common/vars/base-bundled-binaries-dir.injectable.d.ts +2 -0
  17. package/dist/src/common/vars/bundled-binaries-normalized-arch.injectable.d.ts +2 -0
  18. package/dist/src/common/vars/bundled-resources-dir.injectable.d.ts +2 -0
  19. package/dist/src/common/vars/lens-resources-dir.injectable.d.ts +2 -0
  20. package/dist/src/common/vars/normalized-platform.injectable.d.ts +2 -0
  21. package/dist/src/common/vars/package-json.injectable.d.ts +348 -0
  22. package/dist/src/common/vars/static-files-directory.injectable.d.ts +2 -0
  23. package/dist/src/common/vars.d.ts +6 -9
  24. package/dist/src/main/app-paths/app-name/product-name.injectable.d.ts +2 -0
  25. package/dist/src/main/kubectl/kubectl.d.ts +18 -14
  26. package/dist/src/main/start-main-application/lens-window/application-window/application-window.injectable.d.ts +1 -1
  27. package/dist/src/main/start-main-application/lens-window/application-window/create-electron-window-for.injectable.d.ts +9 -1
  28. package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +4 -4
  29. package/dist/src/main/start-main-application/lens-window/application-window/lens-window-injection-token.d.ts +1 -1
  30. package/dist/src/main/start-main-application/lens-window/splash-window/splash-window.injectable.d.ts +1 -1
  31. package/dist/src/main/{app-paths/register-channel → utils/channel}/ipc-main/ipc-main.injectable.d.ts +0 -1
  32. package/dist/src/renderer/api/terminal-api.d.ts +2 -22
  33. package/dist/src/renderer/api/websocket-api.d.ts +4 -4
  34. package/dist/src/renderer/components/+namespaces/namespace-select.d.ts +1 -0
  35. package/dist/src/renderer/components/+user-management/+service-accounts/service-account-menu.d.ts +1 -0
  36. package/dist/src/renderer/components/animate/animate.d.ts +6 -1
  37. package/dist/src/renderer/components/animate/request-animation-frame.injectable.d.ts +2 -0
  38. package/dist/src/renderer/components/dock/terminal/terminal.d.ts +6 -3
  39. package/dist/src/renderer/components/drawer/drawer-item-labels.d.ts +1 -0
  40. package/dist/src/renderer/components/drawer/drawer-item.d.ts +7 -2
  41. package/dist/src/renderer/components/icon/icon.d.ts +22 -1
  42. package/dist/src/renderer/components/input/input.d.ts +1 -1
  43. package/dist/src/renderer/components/item-object-list/filter-icon.d.ts +1 -0
  44. package/dist/src/renderer/components/notifications/notifications-store.injectable.d.ts +3 -0
  45. package/dist/src/renderer/components/notifications/notifications.d.ts +7 -12
  46. package/dist/src/renderer/components/notifications/notifications.store.d.ts +0 -1
  47. package/dist/src/renderer/components/resource-metrics/no-metrics.d.ts +1 -0
  48. package/dist/src/renderer/components/select/select.d.ts +1 -1
  49. package/dist/src/renderer/components/switch/form-switcher.d.ts +1 -0
  50. package/dist/src/renderer/components/table/table-cell.d.ts +0 -4
  51. package/dist/src/renderer/{app-paths/get-value-from-registered-channel/ipc-renderer → utils/channel}/ipc-renderer.injectable.d.ts +0 -1
  52. package/dist/src/{common/ipc-channel/create-channel/create-channel.d.ts → renderer/utils/display-mode.d.ts} +4 -2
  53. package/dist/src/renderer/utils/index.d.ts +1 -1
  54. package/package.json +1 -1
  55. package/dist/src/common/app-paths/directory-for-bundled-binaries/directory-for-bundled-binaries.injectable.d.ts +0 -2
  56. package/dist/src/common/ipc/update-available.d.ts +0 -19
  57. 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 data URL or one of the following strings
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> {
@@ -0,0 +1,3 @@
1
+ import { NotificationsStore } from "./notifications.store";
2
+ declare const notificationsStoreInjectable: import("@ogre-tools/injectable").Injectable<NotificationsStore, unknown, void>;
3
+ export default notificationsStoreInjectable;
@@ -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 class Notifications extends React.Component {
9
- elem: HTMLDivElement | null;
10
- static ok(message: NotificationMessage): () => void;
11
- static checkedError(message: unknown, fallback: string, customOpts?: Partial<Omit<Notification, "message">>): () => void;
12
- static error(message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">>): () => void;
13
- static shortInfo(message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">>): () => void;
14
- static info(message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">>): () => void;
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
+ };
@@ -28,4 +28,3 @@ export declare class NotificationsStore {
28
28
  add(rawNotification: Notification): () => void;
29
29
  remove(id: NotificationId): void;
30
30
  }
31
- export declare const notificationsStore: NotificationsStore;
@@ -2,4 +2,5 @@
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
  export declare function NoMetrics(): JSX.Element;
@@ -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: string;
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
  */
@@ -1,3 +1,2 @@
1
- /// <reference types="electron" />
2
1
  declare const ipcRendererInjectable: import("@ogre-tools/injectable").Injectable<Electron.IpcRenderer, unknown, void>;
3
2
  export default ipcRendererInjectable;
@@ -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
- import type { Channel } from "../channel";
6
- export declare const createChannel: <Message>(name: string) => Channel<Message>;
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-booleans";
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.d6107e9585.0",
5
+ "version": "5.6.0-git.db65a89ee0.0",
6
6
  "copyright": "© 2021 OpenLens Authors",
7
7
  "license": "MIT",
8
8
  "main": "dist/src/extensions/extension-api.js",
@@ -1,2 +0,0 @@
1
- declare const directoryForBundledBinariesInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
- export default directoryForBundledBinariesInjectable;
@@ -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;