@k8slens/extensions 5.6.0-git.5c1f0daf50.0 → 5.6.0-git.6451df1f17.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/main/start-main-application/lens-window/application-window/application-window.injectable.d.ts +1 -6
- package/dist/src/main/start-main-application/lens-window/application-window/{create-electron-window-for.injectable.d.ts → create-electron-window.injectable.d.ts} +4 -5
- package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +6 -9
- package/dist/src/main/start-main-application/lens-window/application-window/lens-window-injection-token.d.ts +5 -2
- package/dist/src/main/start-main-application/lens-window/application-window/wait-until-bundled-extensions-are-loaded.injectable.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/splash-window/splash-window.injectable.d.ts +1 -6
- package/package.json +1 -1
| @@ -1,7 +1,2 @@ | |
| 1 | 
            -
            declare const applicationWindowInjectable: import("@ogre-tools/injectable").Injectable< | 
| 2 | 
            -
                readonly visible: boolean;
         | 
| 3 | 
            -
                show: () => Promise<void>;
         | 
| 4 | 
            -
                close: () => void;
         | 
| 5 | 
            -
                send: (args: import("./lens-window-injection-token").SendToViewArgs) => void;
         | 
| 6 | 
            -
            }, import("./lens-window-injection-token").LensWindow, void>;
         | 
| 1 | 
            +
            declare const applicationWindowInjectable: import("@ogre-tools/injectable").Injectable<import("./lens-window-injection-token").LensWindow, import("./lens-window-injection-token").LensWindow, void>;
         | 
| 7 2 | 
             
            export default applicationWindowInjectable;
         | 
| @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            import type {  | 
| 1 | 
            +
            import type { ElectronWindow } from "./create-lens-window.injectable";
         | 
| 2 2 | 
             
            import type { RequireExactlyOne } from "type-fest";
         | 
| 3 3 | 
             
            export declare type ElectronWindowTitleBarStyle = "hiddenInset" | "hidden" | "default" | "customButtonsOnHover";
         | 
| 4 4 | 
             
            export interface FileSource {
         | 
| @@ -24,7 +24,6 @@ export interface ElectronWindowConfiguration { | |
| 24 24 | 
             
                onBlur?: () => void;
         | 
| 25 25 | 
             
                onDomReady?: () => void;
         | 
| 26 26 | 
             
            }
         | 
| 27 | 
            -
            export declare type CreateElectronWindow = () =>  | 
| 28 | 
            -
             | 
| 29 | 
            -
             | 
| 30 | 
            -
            export default createElectronWindowFor;
         | 
| 27 | 
            +
            export declare type CreateElectronWindow = (config: ElectronWindowConfiguration) => ElectronWindow;
         | 
| 28 | 
            +
            declare const createElectronWindowInjectable: import("@ogre-tools/injectable").Injectable<CreateElectronWindow, unknown, void>;
         | 
| 29 | 
            +
            export default createElectronWindowInjectable;
         | 
| @@ -1,9 +1,11 @@ | |
| 1 | 
            -
            import type { SendToViewArgs } from "./lens-window-injection-token";
         | 
| 2 | 
            -
            import type { ContentSource, ElectronWindowTitleBarStyle } from "./create-electron-window | 
| 3 | 
            -
            export interface  | 
| 1 | 
            +
            import type { LensWindow, SendToViewArgs } from "./lens-window-injection-token";
         | 
| 2 | 
            +
            import type { ContentSource, ElectronWindowTitleBarStyle } from "./create-electron-window.injectable";
         | 
| 3 | 
            +
            export interface ElectronWindow {
         | 
| 4 4 | 
             
                show: () => void;
         | 
| 5 5 | 
             
                close: () => void;
         | 
| 6 6 | 
             
                send: (args: SendToViewArgs) => void;
         | 
| 7 | 
            +
                loadFile: (filePath: string) => Promise<void>;
         | 
| 8 | 
            +
                loadUrl: (url: string) => Promise<void>;
         | 
| 7 9 | 
             
            }
         | 
| 8 10 | 
             
            export interface LensWindowConfiguration {
         | 
| 9 11 | 
             
                id: string;
         | 
| @@ -20,10 +22,5 @@ export interface LensWindowConfiguration { | |
| 20 22 | 
             
                onBlur?: () => void;
         | 
| 21 23 | 
             
                onDomReady?: () => void;
         | 
| 22 24 | 
             
            }
         | 
| 23 | 
            -
            declare const createLensWindowInjectable: import("@ogre-tools/injectable").Injectable<(configuration: LensWindowConfiguration) =>  | 
| 24 | 
            -
                readonly visible: boolean;
         | 
| 25 | 
            -
                show: () => Promise<void>;
         | 
| 26 | 
            -
                close: () => void;
         | 
| 27 | 
            -
                send: (args: SendToViewArgs) => void;
         | 
| 28 | 
            -
            }, unknown, void>;
         | 
| 25 | 
            +
            declare const createLensWindowInjectable: import("@ogre-tools/injectable").Injectable<(configuration: LensWindowConfiguration) => LensWindow, unknown, void>;
         | 
| 29 26 | 
             
            export default createLensWindowInjectable;
         | 
| @@ -5,9 +5,12 @@ export interface SendToViewArgs { | |
| 5 5 | 
             
                data?: unknown[];
         | 
| 6 6 | 
             
            }
         | 
| 7 7 | 
             
            export interface LensWindow {
         | 
| 8 | 
            -
                 | 
| 8 | 
            +
                id: string;
         | 
| 9 | 
            +
                start: () => Promise<void>;
         | 
| 9 10 | 
             
                close: () => void;
         | 
| 11 | 
            +
                show: () => void;
         | 
| 10 12 | 
             
                send: (args: SendToViewArgs) => void;
         | 
| 11 | 
            -
                 | 
| 13 | 
            +
                isVisible: boolean;
         | 
| 14 | 
            +
                isStarting: boolean;
         | 
| 12 15 | 
             
            }
         | 
| 13 16 | 
             
            export declare const lensWindowInjectionToken: import("@ogre-tools/injectable").InjectionToken<LensWindow, void>;
         | 
    
        package/dist/src/main/start-main-application/lens-window/splash-window/splash-window.injectable.d.ts
    CHANGED
    
    | @@ -1,7 +1,2 @@ | |
| 1 | 
            -
            declare const splashWindowInjectable: import("@ogre-tools/injectable").Injectable< | 
| 2 | 
            -
                readonly visible: boolean;
         | 
| 3 | 
            -
                show: () => Promise<void>;
         | 
| 4 | 
            -
                close: () => void;
         | 
| 5 | 
            -
                send: (args: import("../application-window/lens-window-injection-token").SendToViewArgs) => void;
         | 
| 6 | 
            -
            }, import("../application-window/lens-window-injection-token").LensWindow, void>;
         | 
| 1 | 
            +
            declare const splashWindowInjectable: import("@ogre-tools/injectable").Injectable<import("../application-window/lens-window-injection-token").LensWindow, import("../application-window/lens-window-injection-token").LensWindow, void>;
         | 
| 7 2 | 
             
            export default splashWindowInjectable;
         | 
    
        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. | 
| 5 | 
            +
              "version": "5.6.0-git.6451df1f17.0",
         | 
| 6 6 | 
             
              "copyright": "© 2022 OpenLens Authors",
         | 
| 7 7 | 
             
              "license": "MIT",
         | 
| 8 8 | 
             
              "main": "dist/src/extensions/extension-api.js",
         |