@k8slens/extensions 5.6.0-git.c2b4fed5c3.0 → 5.6.0-git.d23f4018c8.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.
@@ -1,5 +1,6 @@
1
1
  import type { LensWindow } from "./create-lens-window.injectable";
2
- interface ElectronWindowConfiguration {
2
+ export declare type ElectronWindowTitleBarStyle = "hiddenInset" | "hidden" | "default" | "customButtonsOnHover";
3
+ export interface ElectronWindowConfiguration {
3
4
  id: string;
4
5
  title: string;
5
6
  defaultHeight: number;
@@ -8,11 +9,14 @@ interface ElectronWindowConfiguration {
8
9
  resizable: boolean;
9
10
  windowFrameUtilitiesAreShown: boolean;
10
11
  centered: boolean;
12
+ titleBarStyle?: ElectronWindowTitleBarStyle;
11
13
  beforeOpen?: () => Promise<void>;
12
14
  onClose: () => void;
13
15
  onFocus?: () => void;
14
16
  onBlur?: () => void;
15
17
  onDomReady?: () => void;
16
18
  }
17
- declare const createElectronWindowFor: import("@ogre-tools/injectable").Injectable<(configuration: ElectronWindowConfiguration) => () => Promise<LensWindow>, unknown, void>;
19
+ export declare type CreateElectronWindow = () => Promise<LensWindow>;
20
+ export declare type CreateElectronWindowFor = (config: ElectronWindowConfiguration) => CreateElectronWindow;
21
+ declare const createElectronWindowFor: import("@ogre-tools/injectable").Injectable<CreateElectronWindowFor, unknown, void>;
18
22
  export default createElectronWindowFor;
@@ -1,4 +1,5 @@
1
1
  import type { SendToViewArgs } from "./lens-window-injection-token";
2
+ import type { ElectronWindowTitleBarStyle } from "./create-electron-window-for.injectable";
2
3
  export interface LensWindow {
3
4
  show: () => void;
4
5
  close: () => void;
@@ -13,6 +14,7 @@ interface LensWindowConfiguration {
13
14
  resizable: boolean;
14
15
  windowFrameUtilitiesAreShown: boolean;
15
16
  centered: boolean;
17
+ titleBarStyle?: ElectronWindowTitleBarStyle;
16
18
  beforeOpen?: () => Promise<void>;
17
19
  onFocus?: () => void;
18
20
  onBlur?: () => 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": "5.6.0-git.c2b4fed5c3.0",
5
+ "version": "5.6.0-git.d23f4018c8.0",
6
6
  "copyright": "© 2021 OpenLens Authors",
7
7
  "license": "MIT",
8
8
  "main": "dist/src/extensions/extension-api.js",