@k8slens/extensions 6.1.0-git.3f194471f9.0 → 6.1.0-git.67ac1692b2.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/application-update/selected-update-channel/default-update-channel.injectable.d.ts +1 -1
- package/dist/src/common/application-update/selected-update-channel/selected-update-channel.injectable.d.ts +2 -2
- package/dist/src/common/application-update/update-channels.d.ts +7 -3
- package/dist/src/common/error-reporting/initialize-sentry-reporting.global-override-for-injectable.d.ts +9 -0
- package/dist/src/common/error-reporting/initialize-sentry-reporting.injectable.d.ts +5 -0
- package/dist/src/common/initializable-state/create.d.ts +15 -0
- package/dist/src/common/initializable-state/create.test.d.ts +5 -0
- package/dist/src/common/user-store/user-store.d.ts +1 -3
- package/dist/src/common/utils/app-version.d.ts +0 -2
- package/dist/src/{main/app-paths/app-name → common/vars}/app-name.injectable.d.ts +0 -0
- package/dist/src/common/vars/application-copyright.injectable.d.ts +2 -0
- package/dist/src/common/vars/application-description.injectable.d.ts +2 -0
- package/dist/src/common/vars/application-information.global-override-for-injectable.d.ts +9 -0
- package/dist/src/common/vars/application-information.injectable.d.ts +6 -0
- package/dist/src/common/vars/build-semantic-version.injectable.d.ts +11 -0
- package/dist/src/common/vars/bundled-kubectl-version.injectable.d.ts +2 -0
- package/dist/src/common/vars/content-security-policy.injectable.d.ts +2 -0
- package/dist/src/common/vars/extension-api-version.injectable.d.ts +2 -0
- package/dist/src/{main/menu/build-version.global-override-for-injectable.d.ts → common/vars/is-snap-package.global-override-for-injectable.d.ts} +2 -2
- package/dist/src/common/vars/is-snap-package.injectable.d.ts +2 -0
- package/dist/src/{main/app-paths/app-name → common/vars}/product-name.injectable.d.ts +0 -0
- package/dist/src/common/vars/release-channel.injectable.d.ts +3 -0
- package/dist/src/common/vars/sentry-dsn-url.injectable.d.ts +2 -0
- package/dist/src/common/vars/store-migration-version.injectable.d.ts +2 -0
- package/dist/src/common/vars.d.ts +0 -8
- package/dist/src/extensions/common-api/app.d.ts +14 -5
- package/dist/src/extensions/common-api/index.d.ts +2 -2
- package/dist/src/extensions/common-api/user-preferences.d.ts +7 -4
- package/dist/src/extensions/common-api/utils.d.ts +13 -8
- package/dist/src/extensions/extension-api.js +135 -58
- package/dist/src/extensions/extension-discovery/is-compatible-extension/is-compatible-extension.d.ts +2 -7
- package/dist/src/main/build-version/setup-channel.injectable.d.ts +5 -0
- package/dist/src/main/electron-app/electron-app.global-override-for-injectable.d.ts +9 -0
- package/dist/src/main/kubectl/kubectl.d.ts +2 -1
- package/dist/src/main/kubectl/version-map.injectable.d.ts +2 -0
- package/dist/src/main/lens-proxy/lens-proxy.d.ts +5 -4
- package/dist/src/main/menu/menu.d.ts +0 -8
- package/dist/src/main/menu/show-about.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/runnables/sentry/initialize-on-main.global-override-for-injectable.d.ts +9 -0
- package/dist/src/main/start-main-application/runnables/sentry/initialize-on-main.injectable.d.ts +3 -0
- package/dist/src/main/start-main-application/runnables/{setup-sentry.injectable.d.ts → sentry/setup.injectable.d.ts} +1 -1
- package/dist/src/main/tray/tray-menu-item/implementations/about-app-tray-item.injectable.d.ts +1 -1
- package/dist/src/main/tray/tray-menu-item/implementations/open-app-tray-item.injectable.d.ts +1 -1
- package/dist/src/main/vars/build-version/build-version.injectable.d.ts +2 -0
- package/dist/src/main/vars/build-version/get-build-version.injectable.d.ts +2 -0
- package/dist/src/main/vars/build-version/init.injectable.d.ts +4 -0
- package/dist/src/main/vars/default-update-channel/init.injectable.d.ts +2 -0
- package/dist/src/main/vars/semantic-build-version/init.injectable.d.ts +2 -0
- package/dist/src/renderer/components/cluster-settings/components/cluster-prometheus-setting.d.ts +1 -24
- package/dist/src/renderer/utils/prevDefault.d.ts +1 -1
- package/dist/src/renderer/vars/build-version/build-version.injectable.d.ts +2 -0
- package/dist/src/renderer/vars/build-version/init.injectable.d.ts +4 -0
- package/dist/src/renderer/vars/default-update-channel/init.injectable.d.ts +2 -0
- package/dist/src/renderer/vars/semantic-build-version/init.injectable.d.ts +2 -0
- package/package.json +1 -1
- package/dist/src/common/front-end-routing/routes/welcome/welcome-route-config.global-override-for-injectable.d.ts +0 -5
- package/dist/src/common/sentry.d.ts +0 -10
- package/dist/src/common/vars/app-semantic-version.injectable.d.ts +0 -3
- package/dist/src/common/vars/app-version.injectable.d.ts +0 -2
- package/dist/src/common/vars/package-json.injectable.d.ts +0 -368
- package/dist/src/main/menu/build-version.injectable.d.ts +0 -2
- package/dist/src/main/shell-sync.d.ts +0 -10
- package/dist/src/renderer/components/+preferences/sentry-dns-url.injectable.d.ts +0 -2
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const defaultUpdateChannelInjectable: import("@ogre-tools/injectable").Injectable<import("../update-channels").UpdateChannel
|
1
|
+
declare const defaultUpdateChannelInjectable: import("@ogre-tools/injectable").Injectable<import("../../initializable-state/create").InitializableState<import("../update-channels").UpdateChannel>, unknown, void>;
|
2
2
|
export default defaultUpdateChannelInjectable;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { IComputedValue } from "mobx";
|
2
|
-
import type { UpdateChannel,
|
2
|
+
import type { UpdateChannel, ReleaseChannel } from "../update-channels";
|
3
3
|
export interface SelectedUpdateChannel {
|
4
4
|
value: IComputedValue<UpdateChannel>;
|
5
|
-
setValue: (channelId?:
|
5
|
+
setValue: (channelId?: ReleaseChannel) => void;
|
6
6
|
}
|
7
7
|
declare const selectedUpdateChannelInjectable: import("@ogre-tools/injectable").Injectable<SelectedUpdateChannel, unknown, void>;
|
8
8
|
export default selectedUpdateChannelInjectable;
|
@@ -2,10 +2,14 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
-
export declare type
|
6
|
-
export declare const updateChannels:
|
5
|
+
export declare type ReleaseChannel = "alpha" | "beta" | "latest";
|
6
|
+
export declare const updateChannels: {
|
7
|
+
latest: UpdateChannel;
|
8
|
+
beta: UpdateChannel;
|
9
|
+
alpha: UpdateChannel;
|
10
|
+
};
|
7
11
|
export interface UpdateChannel {
|
8
|
-
readonly id:
|
12
|
+
readonly id: ReleaseChannel;
|
9
13
|
readonly label: string;
|
10
14
|
readonly moreStableUpdateChannel: UpdateChannel | null;
|
11
15
|
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
declare const _default: {
|
6
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./initialize-sentry-reporting.injectable").InitializeSentryReportingWith, unknown, void>;
|
7
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./initialize-sentry-reporting.injectable").InitializeSentryReportingWith, void>;
|
8
|
+
};
|
9
|
+
export default _default;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { ElectronMainOptions } from "@sentry/electron/main";
|
2
|
+
import type { BrowserOptions } from "@sentry/electron/renderer";
|
3
|
+
export declare type InitializeSentryReportingWith = (initSentry: (opts: BrowserOptions | ElectronMainOptions) => void) => void;
|
4
|
+
declare const initializeSentryReportingWithInjectable: import("@ogre-tools/injectable").Injectable<InitializeSentryReportingWith, unknown, void>;
|
5
|
+
export default initializeSentryReportingWithInjectable;
|
@@ -0,0 +1,15 @@
|
|
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 { DiContainerForInjection, Injectable, InjectionToken } from "@ogre-tools/injectable";
|
6
|
+
export interface CreateInitializableStateArgs<T> {
|
7
|
+
id: string;
|
8
|
+
init: (di: DiContainerForInjection) => Promise<T> | T;
|
9
|
+
injectionToken?: InjectionToken<InitializableState<T>, void>;
|
10
|
+
}
|
11
|
+
export interface InitializableState<T> {
|
12
|
+
get: () => T;
|
13
|
+
init: () => Promise<void>;
|
14
|
+
}
|
15
|
+
export declare function createInitializableState<T>(args: CreateInitializableStateArgs<T>): Injectable<InitializableState<T>, unknown, void>;
|
@@ -11,7 +11,7 @@ export interface UserStoreModel {
|
|
11
11
|
preferences: UserPreferencesModel;
|
12
12
|
}
|
13
13
|
interface Dependencies {
|
14
|
-
selectedUpdateChannel: SelectedUpdateChannel;
|
14
|
+
readonly selectedUpdateChannel: SelectedUpdateChannel;
|
15
15
|
}
|
16
16
|
export declare class UserStore extends BaseStore<UserStoreModel> {
|
17
17
|
private readonly dependencies;
|
@@ -65,7 +65,6 @@ export declare class UserStore extends BaseStore<UserStoreModel> {
|
|
65
65
|
* The set of file/folder paths to be synced
|
66
66
|
*/
|
67
67
|
syncKubeconfigEntries: StoreType<typeof DESCRIPTORS["syncKubeconfigEntries"]>;
|
68
|
-
get isNewVersion(): boolean;
|
69
68
|
get resolvedShell(): string | undefined;
|
70
69
|
startMainReactions(): void;
|
71
70
|
/**
|
@@ -80,7 +79,6 @@ export declare class UserStore extends BaseStore<UserStoreModel> {
|
|
80
79
|
*/
|
81
80
|
toggleTableColumnVisibility(tableId: string, columnId: string): void;
|
82
81
|
resetTheme(): void;
|
83
|
-
saveLastSeenAppVersion(): void;
|
84
82
|
protected fromStore({ lastSeenAppVersion, preferences }?: Partial<UserStoreModel>): void;
|
85
83
|
toJSON(): UserStoreModel;
|
86
84
|
}
|
@@ -2,6 +2,4 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
-
export declare function getAppVersion(): string;
|
6
|
-
export declare function getBundledKubectlVersion(): string;
|
7
5
|
export declare function getAppVersionFromProxyServer(proxyPort: number): Promise<string>;
|
File without changes
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
declare const _default: {
|
6
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./application-information.injectable").ApplicationInformation, unknown, void>;
|
7
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./application-information.injectable").ApplicationInformation, void>;
|
8
|
+
};
|
9
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import packageJson from "../../../package.json";
|
2
|
+
export declare type ApplicationInformation = Pick<typeof packageJson, "version" | "config" | "productName" | "copyright" | "description"> & {
|
3
|
+
build: Partial<typeof packageJson["build"]>;
|
4
|
+
};
|
5
|
+
declare const applicationInformationInjectable: import("@ogre-tools/injectable").Injectable<ApplicationInformation, unknown, void>;
|
6
|
+
export default applicationInformationInjectable;
|
@@ -0,0 +1,11 @@
|
|
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 { SemVer } from "semver";
|
6
|
+
import type { InitializableState } from "../initializable-state/create";
|
7
|
+
import type { RequestChannel } from "../utils/channel/request-channel-injection-token";
|
8
|
+
export declare const buildVersionInjectionToken: import("@ogre-tools/injectable").InjectionToken<InitializableState<string>, void>;
|
9
|
+
export declare const buildVersionChannel: RequestChannel<void, string>;
|
10
|
+
declare const buildSemanticVersionInjectable: import("@ogre-tools/injectable").Injectable<InitializableState<SemVer>, unknown, void>;
|
11
|
+
export default buildSemanticVersionInjectable;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
declare const _default: {
|
6
|
-
injectable: import("@ogre-tools/injectable").Injectable<
|
7
|
-
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<
|
6
|
+
injectable: import("@ogre-tools/injectable").Injectable<boolean, unknown, void>;
|
7
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<boolean, void>;
|
8
8
|
};
|
9
9
|
export default _default;
|
File without changes
|
@@ -16,7 +16,6 @@ export declare const isWindows: boolean;
|
|
16
16
|
*/
|
17
17
|
export declare const isLinux: boolean;
|
18
18
|
export declare const isDebugging: boolean;
|
19
|
-
export declare const isSnap: boolean;
|
20
19
|
/**
|
21
20
|
* @deprecated Switch to using isTestEnvInjectable
|
22
21
|
*/
|
@@ -29,11 +28,6 @@ export declare const isProduction: boolean;
|
|
29
28
|
* @deprecated Switch to using isDevelopmentInjectable
|
30
29
|
*/
|
31
30
|
export declare const isDevelopment: boolean;
|
32
|
-
export declare const productName: string;
|
33
|
-
/**
|
34
|
-
* @deprecated Switch to using appNameInjectable
|
35
|
-
*/
|
36
|
-
export declare const appName: string;
|
37
31
|
export declare const publicPath: string;
|
38
32
|
export declare const defaultThemeId: ThemeId;
|
39
33
|
export declare const defaultFontSize = 12;
|
@@ -78,5 +72,3 @@ export declare const lensTwitterWeblinkId = "lens-twitter-link";
|
|
78
72
|
export declare const lensBlogWeblinkId = "lens-blog-link";
|
79
73
|
export declare const kubernetesDocumentationWeblinkId = "kubernetes-documentation-link";
|
80
74
|
export declare const docsUrl: string;
|
81
|
-
export declare const sentryDsn: string;
|
82
|
-
export declare const contentSecurityPolicy: string;
|
@@ -2,8 +2,17 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
-
import
|
6
|
-
export
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
import type { UserPreferenceExtensionItems } from "./user-preferences";
|
6
|
+
export interface AppExtensionItems {
|
7
|
+
readonly Preferences: UserPreferenceExtensionItems;
|
8
|
+
readonly version: string;
|
9
|
+
readonly appName: string;
|
10
|
+
readonly slackUrl: string;
|
11
|
+
readonly issuesTrackerUrl: string;
|
12
|
+
readonly isSnap: boolean;
|
13
|
+
readonly isWindows: boolean;
|
14
|
+
readonly isMac: boolean;
|
15
|
+
readonly isLinux: boolean;
|
16
|
+
getEnabledExtensions: () => string[];
|
17
|
+
}
|
18
|
+
export declare const App: AppExtensionItems;
|
@@ -2,10 +2,10 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
-
import
|
5
|
+
import { App } from "./app";
|
6
6
|
import * as EventBus from "./event-bus";
|
7
7
|
import * as Store from "./stores";
|
8
|
-
import
|
8
|
+
import { Util } from "./utils";
|
9
9
|
import * as Catalog from "./catalog";
|
10
10
|
import * as Types from "./types";
|
11
11
|
import * as Proxy from "./proxy";
|
@@ -2,7 +2,10 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
export interface UserPreferenceExtensionItems {
|
6
|
+
/**
|
7
|
+
* Get the configured kubectl binaries path.
|
8
|
+
*/
|
9
|
+
getKubectlPath: () => string | undefined;
|
10
|
+
}
|
11
|
+
export declare const Preferences: UserPreferenceExtensionItems;
|
@@ -2,11 +2,16 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
/// <reference types="react" />
|
6
|
+
import { Singleton } from "../../common/utils";
|
7
|
+
import type { IClassName } from "../../renderer/utils/cssNames";
|
8
|
+
export interface UtilsExtensionItems {
|
9
|
+
Singleton: Singleton;
|
10
|
+
prevDefault: <E extends React.SyntheticEvent | Event, R>(callback: (evt: E) => R) => (evt: E) => R;
|
11
|
+
stopPropagation: (evt: Event | React.SyntheticEvent) => void;
|
12
|
+
cssNames: (...classNames: IClassName[]) => string;
|
13
|
+
openExternal: (url: string) => Promise<void>;
|
14
|
+
openBrowser: (url: string) => Promise<void>;
|
15
|
+
getAppVersion: () => string;
|
16
|
+
}
|
17
|
+
export declare const Util: UtilsExtensionItems;
|