@k8slens/extensions 6.0.0-git.f61330611e.0 → 6.0.1-git.feb2859b5d.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/{renderer/components/kube-object-status-icon/kube-object-status-icon.test.d.ts → behaviours/cluster/kube-object-status-icon/show-status-for-a-kube-object.test.d.ts} +0 -0
- package/dist/src/behaviours/cluster/namespaces/edit-namespace-from-new-tab.test.d.ts +1 -0
- package/dist/src/behaviours/cluster/namespaces/edit-namespace-from-previously-opened-tab.test.d.ts +1 -0
- package/dist/src/common/cluster/is-allowed-resource.d.ts +1 -0
- package/dist/src/common/k8s-api/endpoints/cluster-role-binding.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/cluster-role.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/cluster.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/component-status.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/config-map.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/cron-job.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/custom-resource-definition.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/daemon-set.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/deployment.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/endpoint.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/events.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/horizontal-pod-autoscaler.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/ingress.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/job.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/limit-range.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/namespace.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/network-policy.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/node.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/persistent-volume-claim.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/persistent-volume.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/pod-disruption-budget.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/pod-metrics.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/pod-security-policy.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/pod.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/priority-class.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/replica-set.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/resource-quota.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/role-binding.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/role.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/secret.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/self-subject-rules-reviews.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/service-account.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/service.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/stateful-set.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/storage-class.api.injectable.d.ts +1 -1
- package/dist/src/common/k8s-api/kube-api/get-kube-api-from-path.injectable.d.ts +3 -0
- package/dist/src/common/k8s-api/kube-api/kube-api-injection-token.d.ts +2 -0
- package/dist/src/extensions/extension-api.js +60 -38
- package/dist/src/renderer/components/+preferences/extension-preference-model.injectable.d.ts +1 -0
- package/dist/src/renderer/components/dock/edit-resource/edit-resource-model/call-for-patch-resource/call-for-patch-resource.global-override-for-injectable.d.ts +5 -0
- package/dist/src/renderer/components/dock/edit-resource/edit-resource-model/call-for-patch-resource/call-for-patch-resource.injectable.d.ts +9 -0
- package/dist/src/renderer/components/dock/edit-resource/edit-resource-model/call-for-resource/call-for-resource.global-override-for-injectable.d.ts +5 -0
- package/dist/src/renderer/components/dock/edit-resource/edit-resource-model/call-for-resource/call-for-resource.injectable.d.ts +5 -0
- package/dist/src/renderer/components/dock/edit-resource/edit-resource-model/edit-resource-model.injectable.d.ts +38 -0
- package/dist/src/renderer/components/dock/edit-resource/get-random-id-for-edit-resource-tab.injectable.d.ts +2 -0
- package/dist/src/renderer/components/dock/edit-resource/store.d.ts +2 -14
- package/dist/src/renderer/components/dock/info-panel.d.ts +1 -0
- package/dist/src/renderer/components/kube-object-status-icon/kube-object-status-text-injection-token.d.ts +1 -1
- package/dist/src/renderer/components/kube-object-status-icon/kube-object-status-texts-for-object.injectable.d.ts +1 -1
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/dist/src/renderer/utils/create-storage/storages-are-ready.d.ts +1 -1
- package/package.json +1 -1
package/dist/src/renderer/components/+preferences/extension-preference-model.injectable.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
declare const extensionPreferencesModelInjectable: import("@ogre-tools/injectable").Injectable<import("mobx").IComputedValue<{
|
2
2
|
extensionName: string | undefined;
|
3
3
|
preferenceItems: import("./app-preferences/app-preference-registration").RegisteredAppPreference[];
|
4
|
+
preferencePageTitle: string;
|
4
5
|
}>, unknown, void>;
|
5
6
|
export default extensionPreferencesModelInjectable;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./call-for-patch-resource.injectable").CallForPatchResource, unknown, void>;
|
3
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./call-for-patch-resource.injectable").CallForPatchResource, void>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { AsyncResult } from "../../../../../../common/utils/async-result";
|
2
|
+
import type { JsonPatch } from "../../../../../../common/k8s-api/kube-object.store";
|
3
|
+
import type { KubeObject } from "../../../../../../common/k8s-api/kube-object";
|
4
|
+
export declare type CallForPatchResource = (item: KubeObject, patch: JsonPatch) => Promise<AsyncResult<{
|
5
|
+
name: string;
|
6
|
+
kind: string;
|
7
|
+
}>>;
|
8
|
+
declare const callForPatchResourceInjectable: import("@ogre-tools/injectable").Injectable<CallForPatchResource, unknown, void>;
|
9
|
+
export default callForPatchResourceInjectable;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./call-for-resource.injectable").CallForResource, unknown, void>;
|
3
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./call-for-resource.injectable").CallForResource, void>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { KubeObject } from "../../../../../../common/k8s-api/kube-object";
|
2
|
+
import type { AsyncResult } from "../../../../../../common/utils/async-result";
|
3
|
+
export declare type CallForResource = (selfLink: string) => Promise<AsyncResult<KubeObject | undefined>>;
|
4
|
+
declare const callForResourceInjectable: import("@ogre-tools/injectable").Injectable<CallForResource, unknown, void>;
|
5
|
+
export default callForResourceInjectable;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import type { CallForResource } from "./call-for-resource/call-for-resource.injectable";
|
2
|
+
import type { EditingResource, EditResourceTabStore } from "../store";
|
3
|
+
import type { KubeObject } from "../../../../../common/k8s-api/kube-object";
|
4
|
+
import type { CallForPatchResource } from "./call-for-patch-resource/call-for-patch-resource.injectable";
|
5
|
+
import type { ShowNotification } from "../../../notifications";
|
6
|
+
declare const editResourceModelInjectable: import("@ogre-tools/injectable").Injectable<Promise<EditResourceModel>, unknown, string>;
|
7
|
+
export default editResourceModelInjectable;
|
8
|
+
interface Dependencies {
|
9
|
+
callForResource: CallForResource;
|
10
|
+
callForPatchResource: CallForPatchResource;
|
11
|
+
waitForEditingResource: () => Promise<EditingResource>;
|
12
|
+
showSuccessNotification: ShowNotification;
|
13
|
+
showErrorNotification: ShowNotification;
|
14
|
+
store: EditResourceTabStore;
|
15
|
+
tabId: string;
|
16
|
+
}
|
17
|
+
export declare class EditResourceModel {
|
18
|
+
private dependencies;
|
19
|
+
constructor(dependencies: Dependencies);
|
20
|
+
readonly configuration: {
|
21
|
+
value: import("mobx").IComputedValue<string>;
|
22
|
+
onChange: (value: string) => void;
|
23
|
+
error: {
|
24
|
+
value: import("mobx").IObservableValue<string>;
|
25
|
+
onChange: (error: string) => void;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
private _resource;
|
29
|
+
get shouldShowErrorAboutNoResource(): boolean;
|
30
|
+
get resource(): KubeObject<import("../../../../../common/k8s-api/kube-object").KubeObjectMetadata<import("../../../../../common/k8s-api/kube-object").KubeObjectScope>, unknown, unknown>;
|
31
|
+
get editingResource(): EditingResource;
|
32
|
+
private get selfLink();
|
33
|
+
load: () => Promise<void>;
|
34
|
+
get namespace(): string;
|
35
|
+
get name(): string;
|
36
|
+
get kind(): string;
|
37
|
+
save: () => Promise<void>;
|
38
|
+
}
|
@@ -4,26 +4,14 @@
|
|
4
4
|
*/
|
5
5
|
import type { DockTabStoreDependencies } from "../dock-tab-store/dock-tab.store";
|
6
6
|
import { DockTabStore } from "../dock-tab-store/dock-tab.store";
|
7
|
-
import type { TabId } from "../dock/store";
|
8
7
|
import type { KubeObject } from "../../../../common/k8s-api/kube-object";
|
9
|
-
import type { ApiManager } from "../../../../common/k8s-api/api-manager";
|
10
|
-
import type { KubeObjectStore } from "../../../../common/k8s-api/kube-object.store";
|
11
8
|
export interface EditingResource {
|
12
9
|
resource: string;
|
13
10
|
draft?: string;
|
14
11
|
firstDraft?: string;
|
15
12
|
}
|
16
|
-
export interface EditResourceTabStoreDependencies extends DockTabStoreDependencies {
|
17
|
-
readonly apiManager: ApiManager;
|
18
|
-
}
|
19
13
|
export declare class EditResourceTabStore extends DockTabStore<EditingResource> {
|
20
|
-
protected readonly dependencies:
|
21
|
-
constructor(dependencies:
|
22
|
-
protected finalizeDataForSave({ draft, ...data }: EditingResource): EditingResource;
|
23
|
-
isReady(tabId: TabId): boolean;
|
24
|
-
getStore(tabId: TabId): KubeObjectStore | undefined;
|
25
|
-
getResource(tabId: TabId): KubeObject | undefined;
|
26
|
-
getResourcePath(tabId: TabId): string | undefined;
|
14
|
+
protected readonly dependencies: DockTabStoreDependencies;
|
15
|
+
constructor(dependencies: DockTabStoreDependencies);
|
27
16
|
getTabIdByResource(object: KubeObject): string | undefined;
|
28
|
-
clearInitialDraft(tabId: TabId): void;
|
29
17
|
}
|
@@ -4,7 +4,7 @@ import type { IComputedValue } from "mobx";
|
|
4
4
|
export interface KubeObjectStatusText {
|
5
5
|
kind: string;
|
6
6
|
apiVersions: string[];
|
7
|
-
resolve: (object: KubeObject) => KubeObjectStatus;
|
7
|
+
resolve: (object: KubeObject) => KubeObjectStatus | null;
|
8
8
|
enabled: IComputedValue<boolean>;
|
9
9
|
}
|
10
10
|
export declare const kubeObjectStatusTextInjectionToken: import("@ogre-tools/injectable").InjectionToken<KubeObjectStatusText, void>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
2
|
-
declare const kubeObjectStatusTextsForObjectInjectable: import("@ogre-tools/injectable").Injectable<import("mobx").IComputedValue<import("
|
2
|
+
declare const kubeObjectStatusTextsForObjectInjectable: import("@ogre-tools/injectable").Injectable<import("mobx").IComputedValue<import("./kube-object-status-text-injection-token").KubeObjectStatusText[]>, unknown, KubeObject<import("../../../common/k8s-api/kube-object").KubeObjectMetadata<import("../../../common/k8s-api/kube-object").KubeObjectScope>, unknown, unknown>>;
|
3
3
|
export default kubeObjectStatusTextsForObjectInjectable;
|
@@ -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, "
|
16
|
+
export declare const Switcher: React.ComponentType<Pick<SwitcherProps, "id" | "name" | "key" | "value" | "className" | "form" | "slot" | "style" | "title" | "size" | "type" | "action" | "ref" | "autoFocus" | "checked" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "readOnly" | "required" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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 {};
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { DiContainer } from "@ogre-tools/injectable";
|
6
|
-
export declare const controlWhenStoragesAreReady: (di: DiContainer) => () => Promise<
|
6
|
+
export declare const controlWhenStoragesAreReady: (di: DiContainer) => () => Promise<void>;
|
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": "6.0.
|
5
|
+
"version": "6.0.1-git.feb2859b5d.0",
|
6
6
|
"copyright": "© 2022 OpenLens Authors",
|
7
7
|
"license": "MIT",
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|