@k8slens/extensions 5.4.1-git.c9c76cf2db.0 → 5.4.1-git.d1e4d8e681.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/endpoints/events.api.d.ts +6 -0
- package/dist/src/common/k8s-api/kube-object.d.ts +15 -0
- package/dist/src/common/utils/tuple.d.ts +4 -0
- package/dist/src/extensions/extension-api.js +55 -33
- package/dist/src/renderer/components/+cluster/cluster-issues.d.ts +2 -3
- package/dist/src/renderer/components/+custom-resources/crd-list.d.ts +1 -2
- package/dist/src/renderer/components/+custom-resources/crd-resources.d.ts +1 -2
- package/dist/src/renderer/components/+events/events.d.ts +0 -1
- package/dist/src/renderer/components/dock/__test__/dock-store.test.d.ts +5 -0
- package/dist/src/renderer/components/dock/dock/store.d.ts +1 -0
- package/dist/src/renderer/components/dock/dock-tab.d.ts +0 -1
- package/dist/src/renderer/components/duration/reactive-duration.d.ts +13 -0
- package/dist/src/renderer/components/kube-object/age.d.ts +14 -0
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/dist/src/renderer/hooks/index.d.ts +1 -0
- package/dist/src/renderer/hooks/useResizeObserver.d.ts +5 -0
- package/package.json +1 -1
|
@@ -11,11 +11,10 @@ interface IWarning extends ItemObject {
|
|
|
11
11
|
kind: string;
|
|
12
12
|
message: string;
|
|
13
13
|
selfLink: string;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
renderAge: () => React.ReactElement;
|
|
15
|
+
ageMs: number;
|
|
16
16
|
}
|
|
17
17
|
export declare class ClusterIssues extends React.Component<ClusterIssuesProps> {
|
|
18
|
-
private sortCallbacks;
|
|
19
18
|
constructor(props: ClusterIssuesProps);
|
|
20
19
|
get warnings(): IWarning[];
|
|
21
20
|
getTableRow(uid: string): JSX.Element;
|
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import "./crd-list.scss";
|
|
6
6
|
import React from "react";
|
|
7
|
-
import type { CustomResourceDefinition } from "../../../common/k8s-api/endpoints/crd.api";
|
|
8
7
|
export declare const crdGroupsUrlParam: import("../../navigation").PageParam<string[]>;
|
|
9
8
|
export declare class CustomResourceDefinitions extends React.Component {
|
|
10
9
|
constructor(props: {});
|
|
11
10
|
get selectedGroups(): string[];
|
|
12
|
-
get items(): CustomResourceDefinition[];
|
|
11
|
+
get items(): import("../../../common/k8s-api/endpoints").CustomResourceDefinition[];
|
|
13
12
|
toggleSelection(group: string): void;
|
|
14
13
|
render(): JSX.Element;
|
|
15
14
|
}
|
|
@@ -5,13 +5,12 @@
|
|
|
5
5
|
import "./crd-resources.scss";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import type { RouteComponentProps } from "react-router";
|
|
8
|
-
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
|
9
8
|
import type { CRDRouteParams } from "../../../common/routes";
|
|
10
9
|
export interface CustomResourceDefinitionResourcesProps extends RouteComponentProps<CRDRouteParams> {
|
|
11
10
|
}
|
|
12
11
|
export declare class CustomResourceDefinitionResources extends React.Component<CustomResourceDefinitionResourcesProps> {
|
|
13
12
|
constructor(props: CustomResourceDefinitionResourcesProps);
|
|
14
13
|
get crd(): import("../../../common/k8s-api/endpoints").CustomResourceDefinition;
|
|
15
|
-
get store(): import("../../../common/k8s-api/kube-object.store").KubeObjectStore<KubeObject<import("../../../common/k8s-api/kube-object").KubeObjectMetadata, any, any>>;
|
|
14
|
+
get store(): import("../../../common/k8s-api/kube-object.store").KubeObjectStore<import("../../../common/k8s-api/kube-object").KubeObject<import("../../../common/k8s-api/kube-object").KubeObjectMetadata, any, any>>;
|
|
16
15
|
render(): JSX.Element;
|
|
17
16
|
}
|
|
@@ -17,7 +17,6 @@ export interface EventsProps extends Partial<KubeObjectListLayoutProps<KubeEvent
|
|
|
17
17
|
}
|
|
18
18
|
export declare class Events extends React.Component<EventsProps> {
|
|
19
19
|
static defaultProps: object;
|
|
20
|
-
now: number;
|
|
21
20
|
sorting: TableSortParams;
|
|
22
21
|
private sortingCallbacks;
|
|
23
22
|
constructor(props: EventsProps);
|
|
@@ -100,6 +100,7 @@ export declare class DockStore implements DockStorageState {
|
|
|
100
100
|
set tabs(tabs: DockTab[]);
|
|
101
101
|
get selectedTabId(): TabId | undefined;
|
|
102
102
|
set selectedTabId(tabId: TabId);
|
|
103
|
+
get tabsNumber(): number;
|
|
103
104
|
get selectedTab(): Required<DockTabCreate>;
|
|
104
105
|
private init;
|
|
105
106
|
get maxHeight(): number;
|
|
@@ -2,7 +2,6 @@
|
|
|
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 "./dock-tab.scss";
|
|
6
5
|
import React from "react";
|
|
7
6
|
import type { DockTab as DockTabModel } from "./dock/store";
|
|
8
7
|
import { TabProps } from "../tabs";
|
|
@@ -0,0 +1,13 @@
|
|
|
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 interface ReactiveDurationProps {
|
|
6
|
+
timestamp: string;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the display string should prefer length over precision
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const ReactiveDuration: ({ timestamp, compact }: ReactiveDurationProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { KubeObject } from "../../../common/k8s-api/kube-object";
|
|
6
|
+
export interface KubeObjectAgeProps {
|
|
7
|
+
object: KubeObject;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the display string should prefer length over precision
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
compact?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const KubeObjectAge: ({ object, compact }: KubeObjectAgeProps) => JSX.Element;
|
|
@@ -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" | "title" | "value" | "size" | "key" | "prefix" | "defaultValue" | "form" | "slot" | "style" | "
|
|
16
|
+
export declare const Switcher: React.ComponentType<Pick<SwitcherProps, "id" | "name" | "title" | "value" | "size" | "key" | "prefix" | "defaultValue" | "form" | "slot" | "style" | "className" | "color" | "ref" | "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" | "thumb" | "focusVisible" | "switchBase">>;
|
|
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.4.1-git.
|
|
5
|
+
"version": "5.4.1-git.d1e4d8e681.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|