@k8slens/extensions 5.3.1-git.6284bd1eb4.0 → 5.3.1-git.71175a0ae1.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/cluster-types.d.ts +5 -1
- package/dist/src/{extensions/registries/menu-registry.d.ts → common/ipc/catalog.d.ts} +9 -6
- package/dist/src/{renderer/utils/copyToClipboard.d.ts → common/ipc/extension-loader.ipc.d.ts} +1 -7
- package/dist/src/common/ipc/index.d.ts +1 -0
- package/dist/src/common/protocol-handler/router.d.ts +8 -2
- package/dist/src/common/user-store/preferences-helpers.d.ts +14 -0
- package/dist/src/common/user-store/user-store.d.ts +2 -1
- package/dist/src/common/utils/index.d.ts +1 -0
- package/dist/src/common/utils/promise-exec.d.ts +1 -2
- package/dist/src/common/utils/readableStream.d.ts +2 -2
- package/dist/src/extensions/extension-api.js +51 -75
- package/dist/src/extensions/extension-compatibility.d.ts +3 -1
- package/dist/src/extensions/extension-discovery.d.ts +3 -1
- package/dist/src/extensions/{extension-loader.d.ts → extension-loader/extension-loader.d.ts} +15 -7
- package/dist/src/extensions/extension-loader/extension-loader.injectable.d.ts +24 -0
- package/dist/src/{renderer/components/clipboard → extensions/extension-loader}/index.d.ts +1 -1
- package/dist/src/extensions/extensions.injectable.d.ts +28 -0
- package/dist/src/extensions/getDiForUnitTesting.d.ts +22 -0
- package/dist/src/extensions/lens-extension.d.ts +2 -1
- package/dist/src/extensions/lens-main-extension.d.ts +1 -1
- package/dist/src/extensions/lens-renderer-extension.d.ts +6 -3
- package/dist/src/extensions/registries/index.d.ts +0 -1
- package/dist/src/main/catalog-pusher.d.ts +1 -1
- package/dist/src/main/cluster-manager.d.ts +1 -1
- package/dist/src/main/getDi.d.ts +22 -0
- package/dist/src/main/getDiForUnitTesting.d.ts +22 -0
- package/dist/src/main/helm/helm-release-manager.d.ts +9 -10
- package/dist/src/main/helm/helm-repo-manager.d.ts +2 -2
- package/dist/src/main/helm/helm-service.d.ts +2 -2
- package/dist/src/main/initializers/index.d.ts +0 -1
- package/dist/src/main/initializers/ipc.d.ts +3 -1
- package/dist/src/main/lens-proxy.d.ts +8 -1
- package/dist/src/main/menu/electron-menu-items.injectable.d.ts +28 -0
- package/dist/src/main/menu/electron-menu-items.test.d.ts +1 -0
- package/dist/src/main/menu/menu.d.ts +33 -0
- package/dist/src/main/protocol-handler/index.d.ts +1 -1
- package/dist/src/main/protocol-handler/{router.d.ts → lens-protocol-router-main/lens-protocol-router-main.d.ts} +10 -5
- package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable.d.ts +25 -0
- package/dist/src/main/window-manager.d.ts +3 -0
- package/dist/src/renderer/api/terminal-api.d.ts +0 -2
- package/dist/src/renderer/bootstrap.d.ts +3 -1
- package/dist/src/renderer/cluster-frame.d.ts +2 -1
- package/dist/src/renderer/components/{clipboard/clipboard.d.ts → +extensions/attempt-install/attempt-install.d.ts} +10 -16
- package/dist/src/{main/menu.d.ts → renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts} +6 -6
- package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate/create-temp-files-and-validate.d.ts +11 -0
- package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder/get-extension-dest-folder.d.ts +1 -0
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.d.ts +27 -0
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.injectable.d.ts +26 -0
- package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +22 -0
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.d.ts +12 -0
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.d.ts +5 -0
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.d.ts +6 -0
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.injectable.d.ts +25 -0
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.d.ts +26 -0
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts +25 -0
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.d.ts +26 -0
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts +25 -0
- package/dist/src/renderer/components/+extensions/extensions.d.ts +1 -15
- package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts +25 -0
- package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+extensions/get-message-from-error/get-message-from-error.d.ts +21 -0
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.d.ts +28 -0
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +4 -0
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +4 -0
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+extensions/read-file-notify/read-file-notify.d.ts +2 -0
- package/dist/src/renderer/{protocol-handler/app-handlers.d.ts → components/+extensions/supported-extension-formats.d.ts} +1 -1
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.d.ts +26 -0
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.injectable.d.ts +25 -0
- package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts +28 -0
- package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +5 -2
- package/dist/src/renderer/components/+preferences/extension-settings.d.ts +7 -0
- package/dist/src/renderer/components/+preferences/preferences.d.ts +0 -2
- package/dist/src/renderer/components/dock/install-chart.d.ts +0 -1
- package/dist/src/renderer/components/getDi.d.ts +2 -2
- package/dist/src/renderer/components/kube-object-menu/index.d.ts +1 -1
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu.d.ts +2 -21
- package/dist/src/renderer/components/kubeconfig-dialog/kubeconfig-dialog.d.ts +0 -1
- package/dist/src/{main/initializers/registries.d.ts → renderer/components/layout/__tests__/topbar-win-linux.test.d.ts} +1 -1
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/dist/src/renderer/initializers/ipc.d.ts +2 -1
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts +27 -0
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable.d.ts +24 -0
- package/dist/src/renderer/protocol-handler/index.d.ts +2 -2
- package/dist/src/renderer/protocol-handler/{router.d.ts → lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts} +7 -1
- package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable.d.ts +25 -0
- package/dist/src/renderer/root-frame.d.ts +3 -1
- package/dist/src/renderer/utils/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu-container.d.ts +0 -2
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu.injectable.d.ts +0 -5
package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
import { IComputedValue } from "mobx";
|
|
23
|
+
import type { InstalledExtension } from "../../../../extensions/extension-discovery";
|
|
24
|
+
import type { ExtensionLoader } from "../../../../extensions/extension-loader";
|
|
25
|
+
declare const userExtensionsInjectable: Injectable<IComputedValue<InstalledExtension[]>, {
|
|
26
|
+
extensionLoader: ExtensionLoader;
|
|
27
|
+
}>;
|
|
28
|
+
export default userExtensionsInjectable;
|
|
@@ -19,13 +19,16 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
-
import { IPolicyIpBlock,
|
|
22
|
+
import { IPolicyIpBlock, NetworkPolicy, NetworkPolicyPeer, NetworkPolicyPort } from "../../../common/k8s-api/endpoints/network-policy.api";
|
|
23
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
+
import type { LabelMatchExpression, LabelSelector } from "../../../common/k8s-api/kube-object";
|
|
24
25
|
interface Props extends KubeObjectDetailsProps<NetworkPolicy> {
|
|
25
26
|
}
|
|
26
27
|
export declare class NetworkPolicyDetails extends React.Component<Props> {
|
|
27
28
|
renderIPolicyIpBlock(ipBlock: IPolicyIpBlock | undefined): JSX.Element;
|
|
28
|
-
|
|
29
|
+
renderMatchLabels(matchLabels: Record<string, string | undefined> | undefined): JSX.Element[];
|
|
30
|
+
renderMatchExpressions(matchExpressions: LabelMatchExpression[] | undefined): JSX.Element[];
|
|
31
|
+
renderIPolicySelector(name: string, selector: LabelSelector | undefined): JSX.Element;
|
|
29
32
|
renderNetworkPolicyPeers(name: string, peers: NetworkPolicyPeer[] | undefined): JSX.Element;
|
|
30
33
|
renderNetworkPolicyPorts(ports: NetworkPolicyPort[] | undefined): JSX.Element;
|
|
31
34
|
render(): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RegisteredAppPreference } from "../../../extensions/registries/app-preference-registry";
|
|
2
|
+
interface ExtensionSettingsProps {
|
|
3
|
+
setting: RegisteredAppPreference;
|
|
4
|
+
size: "small" | "normal";
|
|
5
|
+
}
|
|
6
|
+
export declare function ExtensionSettings({ setting, size }: ExtensionSettingsProps): JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -20,11 +20,9 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import "./preferences.scss";
|
|
22
22
|
import React from "react";
|
|
23
|
-
import { RegisteredAppPreference } from "../../../extensions/registries/app-preference-registry";
|
|
24
23
|
export declare class Preferences extends React.Component {
|
|
25
24
|
historyLength: number | undefined;
|
|
26
25
|
constructor(props: {});
|
|
27
26
|
renderNavigation(): JSX.Element;
|
|
28
27
|
render(): JSX.Element;
|
|
29
28
|
}
|
|
30
|
-
export declare function ExtensionSettings({ title, id, components: { Hint, Input } }: RegisteredAppPreference): JSX.Element;
|
|
@@ -18,5 +18,5 @@
|
|
|
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
|
-
|
|
22
|
-
export declare const getDi: () => ConfigurableDependencyInjectionContainer;
|
|
21
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
22
|
+
export declare const getDi: () => import("@ogre-tools/injectable").ConfigurableDependencyInjectionContainer;
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
export type { KubeObjectMenuProps } from "./kube-object-menu";
|
|
22
|
-
export { KubeObjectMenu } from "./kube-object-menu
|
|
22
|
+
export { KubeObjectMenu } from "./kube-object-menu";
|
|
@@ -21,28 +21,9 @@
|
|
|
21
21
|
import React from "react";
|
|
22
22
|
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
|
23
23
|
import { MenuActionsProps } from "../menu";
|
|
24
|
-
|
|
25
|
-
export interface KubeObjectMenuDependencies<TKubeObject> {
|
|
26
|
-
apiManager: ApiManager;
|
|
27
|
-
kubeObjectMenuItems: React.ElementType[];
|
|
28
|
-
clusterName: string;
|
|
29
|
-
hideDetails: () => void;
|
|
30
|
-
editResourceTab: (kubeObject: TKubeObject) => void;
|
|
31
|
-
}
|
|
32
|
-
export interface KubeObjectMenuProps<TKubeObject> extends MenuActionsProps {
|
|
24
|
+
export interface KubeObjectMenuProps<TKubeObject extends KubeObject> extends MenuActionsProps {
|
|
33
25
|
object: TKubeObject | null | undefined;
|
|
34
26
|
editable?: boolean;
|
|
35
27
|
removable?: boolean;
|
|
36
28
|
}
|
|
37
|
-
export
|
|
38
|
-
}
|
|
39
|
-
export declare class KubeObjectMenu<TKubeObject extends KubeObject> extends React.Component<KubeObjectMenuPropsAndDependencies<TKubeObject>> {
|
|
40
|
-
get store(): import("../../../common/k8s-api/kube-object.store").KubeObjectStore<KubeObject<import("../../../common/k8s-api/kube-object").KubeObjectMetadata, any, any>>;
|
|
41
|
-
get isEditable(): boolean;
|
|
42
|
-
get isRemovable(): boolean;
|
|
43
|
-
update(): Promise<void>;
|
|
44
|
-
remove(): Promise<void>;
|
|
45
|
-
renderRemoveMessage(): JSX.Element;
|
|
46
|
-
getMenuItems(): React.ReactChild[];
|
|
47
|
-
render(): JSX.Element;
|
|
48
|
-
}
|
|
29
|
+
export declare function KubeObjectMenu<T extends KubeObject>(props: KubeObjectMenuProps<T>): React.ReactElement<any, any>;
|
|
@@ -28,7 +28,6 @@ interface IKubeconfigDialogData {
|
|
|
28
28
|
interface Props extends Partial<DialogProps> {
|
|
29
29
|
}
|
|
30
30
|
export declare class KubeConfigDialog extends React.Component<Props> {
|
|
31
|
-
configTextArea: HTMLTextAreaElement;
|
|
32
31
|
config: string;
|
|
33
32
|
constructor(props: Props);
|
|
34
33
|
static open(data: IKubeconfigDialogData): void;
|
|
@@ -26,5 +26,5 @@ interface Styles extends Partial<Record<SwitchClassKey, string>> {
|
|
|
26
26
|
interface Props extends SwitchProps {
|
|
27
27
|
classes: Styles;
|
|
28
28
|
}
|
|
29
|
-
export declare const Switcher: React.ComponentType<Pick<Props, "
|
|
29
|
+
export declare const Switcher: React.ComponentType<Pick<Props, "name" | "key" | "id" | "value" | "type" | "size" | "resource" | "style" | "dir" | "form" | "slot" | "title" | "color" | "className" | "prefix" | "defaultValue" | "hidden" | "ref" | "disabled" | "onDrag" | "onDoubleClick" | "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" | "onDoubleClickCapture" | "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" | "role" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "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" | "autoFocus" | "icon" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "readOnly" | "required" | "inputProps" | "action" | "innerRef" | "checkedIcon" | "disableFocusRipple" | "edge" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "inputRef"> & import("@material-ui/core/styles").StyledComponentProps<"track" | "checked" | "root" | "thumb" | "focusVisible" | "switchBase">>;
|
|
30
30
|
export {};
|
|
@@ -18,4 +18,5 @@
|
|
|
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
|
-
|
|
21
|
+
import type { ExtensionLoader } from "../../extensions/extension-loader";
|
|
22
|
+
export declare function initIpcRendererListeners(extensionLoader: ExtensionLoader): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { LensProtocolRouterRenderer } from "../lens-protocol-router-renderer/lens-protocol-router-renderer";
|
|
22
|
+
import type { ExtensionInfo } from "../../components/+extensions/attempt-install-by-info/attempt-install-by-info";
|
|
23
|
+
export interface Dependencies {
|
|
24
|
+
attemptInstallByInfo: (extensionInfo: ExtensionInfo) => Promise<void>;
|
|
25
|
+
lensProtocolRouterRenderer: LensProtocolRouterRenderer;
|
|
26
|
+
}
|
|
27
|
+
export declare const bindProtocolAddRouteHandlers: ({ attemptInstallByInfo, lensProtocolRouterRenderer }: Dependencies) => () => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
import { Dependencies } from "./bind-protocol-add-route-handlers";
|
|
23
|
+
declare const bindProtocolAddRouteHandlersInjectable: Injectable<() => void, Dependencies>;
|
|
24
|
+
export default bindProtocolAddRouteHandlersInjectable;
|
|
@@ -18,5 +18,5 @@
|
|
|
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
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export { LensProtocolRouterRenderer } from "./lens-protocol-router-renderer/lens-protocol-router-renderer";
|
|
22
|
+
export { bindProtocolAddRouteHandlers } from "./bind-protocol-add-route-handlers/bind-protocol-add-route-handlers";
|
|
@@ -18,8 +18,14 @@
|
|
|
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 * as proto from "
|
|
21
|
+
import * as proto from "../../../common/protocol-handler";
|
|
22
|
+
import type { ExtensionLoader } from "../../../extensions/extension-loader";
|
|
23
|
+
export interface Dependencies {
|
|
24
|
+
extensionLoader: ExtensionLoader;
|
|
25
|
+
}
|
|
22
26
|
export declare class LensProtocolRouterRenderer extends proto.LensProtocolRouter {
|
|
27
|
+
protected dependencies: Dependencies;
|
|
28
|
+
constructor(dependencies: Dependencies);
|
|
23
29
|
/**
|
|
24
30
|
* This function is needed to be called early on in the renderers lifetime.
|
|
25
31
|
*/
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
import type { Dependencies } from "./lens-protocol-router-renderer";
|
|
23
|
+
import { LensProtocolRouterRenderer } from "./lens-protocol-router-renderer";
|
|
24
|
+
declare const lensProtocolRouterRendererInjectable: Injectable<LensProtocolRouterRenderer, Dependencies>;
|
|
25
|
+
export default lensProtocolRouterRendererInjectable;
|
|
@@ -19,10 +19,12 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
+
import type { ExtensionLoader } from "../extensions/extension-loader";
|
|
23
|
+
import type { LensProtocolRouterRenderer } from "./protocol-handler";
|
|
22
24
|
export declare class RootFrame extends React.Component {
|
|
23
25
|
static readonly logPrefix = "[ROOT-FRAME]:";
|
|
24
26
|
static displayName: string;
|
|
25
|
-
static init(rootElem: HTMLElement): Promise<void>;
|
|
27
|
+
static init(rootElem: HTMLElement, extensionLoader: ExtensionLoader, bindProtocolAddRouteHandlers: () => void, lensProtocolRouterRendererInjectable: LensProtocolRouterRenderer): Promise<void>;
|
|
26
28
|
constructor(props: {});
|
|
27
29
|
componentDidMount(): void;
|
|
28
30
|
render(): JSX.Element;
|
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.71175a0ae1.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { KubeObjectMenuDependencies, KubeObjectMenuProps } from "./kube-object-menu";
|
|
2
|
-
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
|
3
|
-
import { Injectable } from "@ogre-tools/injectable";
|
|
4
|
-
declare const KubeObjectMenuInjectable: Injectable<JSX.Element, KubeObjectMenuDependencies<KubeObject>, KubeObjectMenuProps<KubeObject>>;
|
|
5
|
-
export default KubeObjectMenuInjectable;
|