@k8slens/extensions 5.5.0-git.e4b1fa2f40.0 → 5.5.0-git.e532b90b72.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/k8s-api/__tests__/kube-object.store.test.d.ts +5 -0
- package/dist/src/common/k8s-api/kube-object.store.d.ts +11 -9
- package/dist/src/common/utils/collection-functions.d.ts +4 -0
- package/dist/src/extensions/extension-api.js +231 -186
- package/dist/src/main/tray/tray.d.ts +2 -2
- package/dist/src/renderer/components/+cluster/cluster-no-metrics.d.ts +9 -1
- package/dist/src/renderer/components/+namespaces/namespace-select-filter.d.ts +2 -2
- package/dist/src/renderer/components/select/select.d.ts +6 -7
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Tray } from "electron";
|
|
6
6
|
import type { IComputedValue } from "mobx";
|
|
7
7
|
import type { WindowManager } from "../window-manager";
|
|
8
|
+
import type { Disposer } from "../../common/utils";
|
|
8
9
|
import type { TrayMenuRegistration } from "./tray-menu-registration";
|
|
9
10
|
export declare let tray: Tray;
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function initTray(windowManager: WindowManager, trayMenuItems: IComputedValue<TrayMenuRegistration[]>, navigateToPreferences: () => void): () => void;
|
|
11
|
+
export declare function initTray(windowManager: WindowManager, trayMenuItems: IComputedValue<TrayMenuRegistration[]>, navigateToPreferences: () => void): Promise<Disposer>;
|
|
@@ -2,7 +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
|
+
import React from "react";
|
|
6
|
+
import type { NavigateToEntitySettings } from "../../../common/front-end-routing/routes/entity-settings/navigate-to-entity-settings.injectable";
|
|
5
7
|
export interface ClusterNoMetricsProps {
|
|
6
8
|
className: string;
|
|
7
9
|
}
|
|
8
|
-
|
|
10
|
+
interface Dependencies {
|
|
11
|
+
navigateToEntitySettings: NavigateToEntitySettings;
|
|
12
|
+
clusterId: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare function NonInjectedClusterNoMetrics({ className, navigateToEntitySettings, clusterId }: Dependencies & ClusterNoMetricsProps): JSX.Element;
|
|
15
|
+
export declare const ClusterNoMetrics: React.FunctionComponent<ClusterNoMetricsProps>;
|
|
16
|
+
export {};
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import "./namespace-select-filter.scss";
|
|
6
6
|
import React from "react";
|
|
7
|
-
import
|
|
7
|
+
import { type PlaceholderProps } from "react-select";
|
|
8
8
|
import type { SelectProps } from "../select";
|
|
9
9
|
export declare const NamespaceSelectFilter: React.FunctionComponent<SelectProps<any>>;
|
|
10
|
-
export interface CustomPlaceholderProps extends PlaceholderProps
|
|
10
|
+
export interface CustomPlaceholderProps extends PlaceholderProps {
|
|
11
11
|
}
|
|
@@ -3,19 +3,18 @@
|
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
5
|
import "./select.scss";
|
|
6
|
-
import type { ReactNode } from "react";
|
|
7
6
|
import React from "react";
|
|
8
|
-
import type
|
|
9
|
-
import type
|
|
7
|
+
import { type ActionMeta, type GroupBase, type Props as ReactSelectProps, type StylesConfig } from "react-select";
|
|
8
|
+
import { type CreatableProps } from "react-select/creatable";
|
|
10
9
|
export interface GroupSelectOption<T extends SelectOption = SelectOption> {
|
|
11
|
-
label: ReactNode;
|
|
10
|
+
label: React.ReactNode;
|
|
12
11
|
options: T[];
|
|
13
12
|
}
|
|
14
13
|
export interface SelectOption<T = any> {
|
|
15
14
|
value: T;
|
|
16
15
|
label?: React.ReactNode;
|
|
17
16
|
}
|
|
18
|
-
export interface SelectProps<T = any> extends ReactSelectProps<T, boolean>, CreatableProps<T, boolean
|
|
17
|
+
export interface SelectProps<T = any> extends ReactSelectProps<T, boolean>, CreatableProps<T, boolean, GroupBase<T>> {
|
|
19
18
|
id?: string;
|
|
20
19
|
value?: T;
|
|
21
20
|
themeName?: "dark" | "light" | "outlined" | "lens";
|
|
@@ -28,11 +27,11 @@ export declare class Select extends React.Component<SelectProps> {
|
|
|
28
27
|
static defaultProps: Omit<SelectProps, "id">;
|
|
29
28
|
constructor(props: SelectProps);
|
|
30
29
|
get themeClass(): string;
|
|
31
|
-
|
|
30
|
+
get styles(): StylesConfig;
|
|
32
31
|
protected isValidOption(opt: SelectOption | any): boolean;
|
|
33
32
|
get selectedOption(): SelectOption<any> | SelectOption<any>[];
|
|
34
33
|
get options(): SelectOption[];
|
|
35
34
|
onChange(value: SelectOption, meta: ActionMeta<any>): void;
|
|
36
|
-
onKeyDown(evt: React.KeyboardEvent<
|
|
35
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLDivElement>): void;
|
|
37
36
|
render(): JSX.Element;
|
|
38
37
|
}
|
|
@@ -13,5 +13,5 @@ export interface SwitcherProps extends SwitchProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* @deprecated Use <Switch/> instead from "../switch.tsx".
|
|
15
15
|
*/
|
|
16
|
-
export declare const Switcher: React.ComponentType<Pick<SwitcherProps, "id" | "name" | "prefix" | "defaultValue" | "key" | "value" | "title" | "size" | "
|
|
16
|
+
export declare const Switcher: React.ComponentType<Pick<SwitcherProps, "id" | "name" | "prefix" | "defaultValue" | "key" | "value" | "title" | "size" | "className" | "color" | "ref" | "form" | "slot" | "style" | "action" | "autoFocus" | "checked" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "readOnly" | "required" | "type" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "icon" | "inputProps" | "innerRef" | "checkedIcon" | "disableFocusRipple" | "edge" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "inputRef"> & import("@material-ui/core/styles").StyledComponentProps<"track" | "checked" | "root" | "switchBase" | "thumb" | "focusVisible">>;
|
|
17
17
|
export {};
|
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.5.0-git.
|
|
5
|
+
"version": "5.5.0-git.e532b90b72.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|