@k8slens/extensions 5.5.0-beta.0 → 5.5.0-beta.1
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/user-store/preferences-helpers.d.ts +0 -1
- package/dist/src/common/user-store/user-store.d.ts +0 -1
- package/dist/src/common/utils/type-narrowing.d.ts +5 -0
- package/dist/src/extensions/extension-api.js +193 -171
- package/dist/src/main/menu/menu.d.ts +1 -6
- package/dist/src/main/tray/tray.d.ts +1 -1
- package/dist/src/renderer/components/+namespaces/namespace-select-filter-model/namespace-select-filter-model.d.ts +1 -1
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/dist/src/renderer/theme.store.d.ts +5 -7
- package/package.json +6 -3
|
@@ -1,11 +1,6 @@
|
|
|
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 { BrowserWindow } from "electron";
|
|
6
1
|
import type { IComputedValue } from "mobx";
|
|
7
2
|
import type { MenuItemOpts } from "./application-menu-items.injectable";
|
|
8
3
|
export declare type MenuTopId = "mac" | "file" | "edit" | "view" | "help";
|
|
9
4
|
export declare function initMenu(applicationMenuItems: IComputedValue<MenuItemOpts[]>): import("mobx").IReactionDisposer;
|
|
10
|
-
export declare function showAbout(
|
|
5
|
+
export declare function showAbout(): void;
|
|
11
6
|
export declare function buildMenu(applicationMenuItems: MenuItemOpts[]): void;
|
|
@@ -8,4 +8,4 @@ import type { WindowManager } from "../window-manager";
|
|
|
8
8
|
import type { Disposer } from "../../common/utils";
|
|
9
9
|
import type { TrayMenuRegistration } from "./tray-menu-registration";
|
|
10
10
|
export declare let tray: Tray;
|
|
11
|
-
export declare function initTray(windowManager: WindowManager, trayMenuItems: IComputedValue<TrayMenuRegistration[]>, navigateToPreferences: () => void):
|
|
11
|
+
export declare function initTray(windowManager: WindowManager, trayMenuItems: IComputedValue<TrayMenuRegistration[]>, navigateToPreferences: () => void): Disposer;
|
|
@@ -13,7 +13,7 @@ export declare class NamespaceSelectFilterModel {
|
|
|
13
13
|
isSelected: (namespace: string | string[]) => boolean;
|
|
14
14
|
selectSingle: (namespace: string) => void;
|
|
15
15
|
selectAll: () => void;
|
|
16
|
-
onChange: ([
|
|
16
|
+
onChange: ([selected]: SelectOption<string>[]) => void;
|
|
17
17
|
onClick: () => void;
|
|
18
18
|
private isMultiSelection;
|
|
19
19
|
onKeyDown: (event: React.KeyboardEvent) => void;
|
|
@@ -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" | "className" | "form" | "slot" | "style" | "title" | "size" | "hidden" | "
|
|
16
|
+
export declare const Switcher: React.ComponentType<Pick<SwitcherProps, "id" | "name" | "prefix" | "defaultValue" | "key" | "value" | "className" | "form" | "slot" | "style" | "title" | "size" | "hidden" | "color" | "ref" | "disabled" | "onDrag" | "onDoubleClick" | "action" | "autoFocus" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "readOnly" | "required" | "type" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "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" | "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" | "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 {};
|
|
@@ -17,18 +17,16 @@ export interface Theme {
|
|
|
17
17
|
export declare class ThemeStore extends Singleton {
|
|
18
18
|
private terminalColorPrefix;
|
|
19
19
|
private themes;
|
|
20
|
-
|
|
21
|
-
get
|
|
22
|
-
get
|
|
20
|
+
private osNativeThemeType;
|
|
21
|
+
private get colorThemePreference();
|
|
22
|
+
private get activeThemeId();
|
|
23
|
+
private get terminalThemeId();
|
|
23
24
|
get activeTheme(): Theme;
|
|
24
|
-
get terminalColors()
|
|
25
|
+
private get terminalColors();
|
|
25
26
|
get xtermColors(): Record<string, string>;
|
|
26
27
|
get themeOptions(): SelectOption<string>[];
|
|
27
|
-
get systemTheme(): Theme;
|
|
28
28
|
constructor();
|
|
29
29
|
init(): Promise<void>;
|
|
30
|
-
bindNativeThemeUpdateEvent(): void;
|
|
31
|
-
setNativeTheme(): Promise<void>;
|
|
32
30
|
getThemeById(themeId: ThemeId): Theme;
|
|
33
31
|
protected applyTheme(themeId: ThemeId): void;
|
|
34
32
|
}
|
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-beta.
|
|
5
|
+
"version": "5.5.0-beta.1",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
|
@@ -16,9 +16,12 @@
|
|
|
16
16
|
"name": "OpenLens Authors"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@types/node": "14.17.14",
|
|
20
|
-
"@types/react-select": "3.1.2",
|
|
21
19
|
"@material-ui/core": "4.12.3",
|
|
20
|
+
"@types/node": "14.17.14",
|
|
21
|
+
"@types/react": "^17.0.45",
|
|
22
|
+
"@types/react-dom": "^17.0.16",
|
|
23
|
+
"@types/react-router": "^5.1.18",
|
|
24
|
+
"@types/react-router-dom": "^5.3.3",
|
|
22
25
|
"conf": "^7.0.1",
|
|
23
26
|
"typed-emitter": "^1.3.1"
|
|
24
27
|
}
|