@k8slens/extensions 5.6.0-git.96ed99a06b.0 → 5.6.0-git.9adf0a6448.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/vars/package-json.injectable.d.ts +1 -0
- package/dist/src/extensions/extension-loader/extension/extension.injectable.d.ts +7 -0
- package/dist/src/extensions/extension-loader/extension-loader.d.ts +2 -2
- package/dist/src/extensions/extension-loader/extension-registrator-injection-token.d.ts +7 -0
- package/dist/src/renderer/components/layout/sidebar-items.injectable.d.ts +0 -2
- package/package.json +1 -1
| @@ -136,6 +136,7 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable | |
| 136 136 | 
             
                    "@ogre-tools/fp": string;
         | 
| 137 137 | 
             
                    "@ogre-tools/injectable": string;
         | 
| 138 138 | 
             
                    "@ogre-tools/injectable-extension-for-auto-registration": string;
         | 
| 139 | 
            +
                    "@ogre-tools/injectable-extension-for-mobx": string;
         | 
| 139 140 | 
             
                    "@ogre-tools/injectable-react": string;
         | 
| 140 141 | 
             
                    "@sentry/electron": string;
         | 
| 141 142 | 
             
                    "@sentry/integrations": string;
         | 
| @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            import type { LensExtension } from "../../lens-extension";
         | 
| 2 | 
            +
            export interface Extension {
         | 
| 3 | 
            +
                register: () => void;
         | 
| 4 | 
            +
                deregister: () => void;
         | 
| 5 | 
            +
            }
         | 
| 6 | 
            +
            declare const extensionInjectable: import("@ogre-tools/injectable").Injectable<Extension, unknown, LensExtension<import("../../lens-extension-set-dependencies").LensExtensionDependencies>>;
         | 
| 7 | 
            +
            export default extensionInjectable;
         | 
| @@ -9,12 +9,12 @@ import type { InstalledExtension } from "../extension-discovery/extension-discov | |
| 9 9 | 
             
            import type { LensExtension, LensExtensionConstructor, LensExtensionId } from "../lens-extension";
         | 
| 10 10 | 
             
            import type { LensExtensionState } from "../extensions-store/extensions-store";
         | 
| 11 11 | 
             
            import type { CreateExtensionInstance } from "./create-extension-instance.token";
         | 
| 12 | 
            +
            import type { Extension } from "./extension/extension.injectable";
         | 
| 12 13 | 
             
            interface Dependencies {
         | 
| 13 14 | 
             
                updateExtensionsState: (extensionsState: Record<LensExtensionId, LensExtensionState>) => void;
         | 
| 14 15 | 
             
                createExtensionInstance: CreateExtensionInstance;
         | 
| 15 | 
            -
                readonly extensionRegistrators: ((extension: LensExtension, extensionInstallationCount: number) => void)[];
         | 
| 16 | 
            -
                readonly extensionInstallationCounter: Map<string, number>;
         | 
| 17 16 | 
             
                readonly extensionInstances: ObservableMap<LensExtensionId, LensExtension>;
         | 
| 17 | 
            +
                getExtension: (instance: LensExtension) => Extension;
         | 
| 18 18 | 
             
            }
         | 
| 19 19 | 
             
            export interface ExtensionLoading {
         | 
| 20 20 | 
             
                isBundled: boolean;
         | 
| @@ -0,0 +1,7 @@ | |
| 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 { Injectable } from "@ogre-tools/injectable";
         | 
| 6 | 
            +
            import type { LensExtension } from "../lens-extension";
         | 
| 7 | 
            +
            export declare const extensionRegistratorInjectionToken: import("@ogre-tools/injectable").InjectionToken<(extension: LensExtension) => Injectable<any, any, any>[], void>;
         | 
| @@ -1,6 +1,5 @@ | |
| 1 1 | 
             
            /// <reference types="react" />
         | 
| 2 2 | 
             
            import type { IComputedValue } from "mobx";
         | 
| 3 | 
            -
            import type { LensRendererExtension } from "../../../extensions/lens-renderer-extension";
         | 
| 4 3 | 
             
            export interface SidebarItemRegistration {
         | 
| 5 4 | 
             
                id: string;
         | 
| 6 5 | 
             
                parentId: string | null;
         | 
| @@ -10,7 +9,6 @@ export interface SidebarItemRegistration { | |
| 10 9 | 
             
                isActive?: IComputedValue<boolean>;
         | 
| 11 10 | 
             
                isVisible?: IComputedValue<boolean>;
         | 
| 12 11 | 
             
                orderNumber: number;
         | 
| 13 | 
            -
                extension?: LensRendererExtension;
         | 
| 14 12 | 
             
            }
         | 
| 15 13 | 
             
            export declare const sidebarItemsInjectionToken: import("@ogre-tools/injectable").InjectionToken<IComputedValue<SidebarItemRegistration[]>, void>;
         | 
| 16 14 | 
             
            export interface HierarchicalSidebarItem {
         | 
    
        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.9adf0a6448.0",
         | 
| 6 6 | 
             
              "copyright": "© 2022 OpenLens Authors",
         | 
| 7 7 | 
             
              "license": "MIT",
         | 
| 8 8 | 
             
              "main": "dist/src/extensions/extension-api.js",
         |