mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
packages/ui-components/tooltip
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
1 parent
67fa57c15c
commit
6404993432
434 files changed
+45562
-38
No files matched your search
@@ -0,0 +1,2 @@
|
||||
export * from "./src/bundled-extension";
|
||||
export * from "./src/lens-extension";
|
||||
@@ -0,0 +1 @@
|
||||
(()=>{"use strict";var e={d:(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{bundledExtensionInjectionToken:()=>t});const t=(0,require("@ogre-tools/injectable").getInjectionToken)({id:"bundled-extension-path"});module.exports=o})();
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import type { LensExtensionConstructor, LensExtensionManifest } from "./lens-extension";
|
||||
export interface BundledExtension {
|
||||
readonly manifest: LensExtensionManifest;
|
||||
main: () => LensExtensionConstructor | null;
|
||||
renderer: () => LensExtensionConstructor | null;
|
||||
}
|
||||
export declare const bundledExtensionInjectionToken: import("@ogre-tools/injectable").InjectionToken<BundledExtension, void>;
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
export type LensExtensionId = string;
|
||||
export type LensExtensionConstructor = new (ext: InstalledExtension) => LegacyLensExtension;
|
||||
export interface InstalledExtension {
|
||||
id: LensExtensionId;
|
||||
readonly manifest: LensExtensionManifest;
|
||||
readonly absolutePath: string;
|
||||
/**
|
||||
* Absolute to the symlinked package.json file
|
||||
*/
|
||||
readonly manifestPath: string;
|
||||
readonly isBundled: boolean;
|
||||
readonly isCompatible: boolean;
|
||||
isEnabled: boolean;
|
||||
}
|
||||
export interface LegacyLensExtension {
|
||||
readonly id: LensExtensionId;
|
||||
readonly manifest: LensExtensionManifest;
|
||||
readonly manifestPath: string;
|
||||
readonly isBundled: boolean;
|
||||
readonly sanitizedExtensionId: string;
|
||||
readonly name: string;
|
||||
readonly version: string;
|
||||
readonly description: string | undefined;
|
||||
readonly storeName: string;
|
||||
getExtensionFileFolder(): Promise<string>;
|
||||
enable(): Promise<void>;
|
||||
disable(): Promise<void>;
|
||||
activate(): Promise<void>;
|
||||
}
|
||||
export interface LensExtensionManifest {
|
||||
name: string;
|
||||
version: string;
|
||||
description?: string;
|
||||
main?: string;
|
||||
renderer?: string;
|
||||
/**
|
||||
* Supported Lens version engine by extension could be defined in `manifest.engines.lens`
|
||||
* Only MAJOR.MINOR version is taken in consideration.
|
||||
*/
|
||||
engines: {
|
||||
lens: string;
|
||||
npm?: string;
|
||||
node?: string;
|
||||
};
|
||||
/**
|
||||
* Specify extension name used for persisting data.
|
||||
* Useful if extension is renamed but the data should not be lost.
|
||||
*/
|
||||
storeName?: string;
|
||||
}
|
||||
Reference in new issue
Block a user