@k8slens/extensions 6.1.0-git.b428518857.0 → 6.1.0-git.dad6dcacda.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.
Files changed (64) hide show
  1. package/dist/src/common/application-update/selected-update-channel/default-update-channel.injectable.d.ts +1 -1
  2. package/dist/src/common/application-update/selected-update-channel/selected-update-channel.injectable.d.ts +2 -2
  3. package/dist/src/common/application-update/update-channels.d.ts +7 -3
  4. package/dist/src/common/error-reporting/initialize-sentry-reporting.global-override-for-injectable.d.ts +9 -0
  5. package/dist/src/common/error-reporting/initialize-sentry-reporting.injectable.d.ts +5 -0
  6. package/dist/src/common/initializable-state/create.d.ts +15 -0
  7. package/dist/src/common/initializable-state/create.test.d.ts +5 -0
  8. package/dist/src/common/user-store/user-store.d.ts +1 -3
  9. package/dist/src/common/utils/app-version.d.ts +0 -2
  10. package/dist/src/{main/app-paths/app-name → common/vars}/app-name.injectable.d.ts +0 -0
  11. package/dist/src/common/vars/application-copyright.injectable.d.ts +2 -0
  12. package/dist/src/common/vars/application-description.injectable.d.ts +2 -0
  13. package/dist/src/common/vars/application-information.global-override-for-injectable.d.ts +9 -0
  14. package/dist/src/common/vars/application-information.injectable.d.ts +8 -0
  15. package/dist/src/common/vars/build-semantic-version.injectable.d.ts +11 -0
  16. package/dist/src/common/vars/bundled-kubectl-version.injectable.d.ts +2 -0
  17. package/dist/src/common/vars/content-security-policy.injectable.d.ts +2 -0
  18. package/dist/src/common/vars/extension-api-version.injectable.d.ts +2 -0
  19. 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
  20. package/dist/src/common/vars/is-snap-package.injectable.d.ts +2 -0
  21. package/dist/src/{main/app-paths/app-name → common/vars}/product-name.injectable.d.ts +0 -0
  22. package/dist/src/common/vars/release-channel.injectable.d.ts +3 -0
  23. package/dist/src/common/vars/sentry-dsn-url.injectable.d.ts +2 -0
  24. package/dist/src/common/vars/store-migration-version.injectable.d.ts +2 -0
  25. package/dist/src/common/vars.d.ts +0 -8
  26. package/dist/src/extensions/common-api/app.d.ts +14 -5
  27. package/dist/src/extensions/common-api/index.d.ts +2 -2
  28. package/dist/src/extensions/common-api/k8s-api.d.ts +1 -1
  29. package/dist/src/extensions/common-api/user-preferences.d.ts +7 -4
  30. package/dist/src/extensions/common-api/utils.d.ts +13 -8
  31. package/dist/src/extensions/extension-api.js +146 -69
  32. package/dist/src/extensions/extension-discovery/is-compatible-extension/is-compatible-extension.d.ts +2 -7
  33. package/dist/src/main/build-version/setup-channel.injectable.d.ts +5 -0
  34. package/dist/src/main/electron-app/electron-app.global-override-for-injectable.d.ts +9 -0
  35. package/dist/src/main/kubectl/kubectl.d.ts +2 -1
  36. package/dist/src/main/kubectl/version-map.injectable.d.ts +2 -0
  37. package/dist/src/main/lens-proxy/lens-proxy.d.ts +5 -4
  38. package/dist/src/main/menu/menu.d.ts +0 -8
  39. package/dist/src/main/menu/show-about.injectable.d.ts +1 -1
  40. package/dist/src/main/start-main-application/runnables/sentry/initialize-on-main.global-override-for-injectable.d.ts +9 -0
  41. package/dist/src/main/start-main-application/runnables/sentry/initialize-on-main.injectable.d.ts +3 -0
  42. package/dist/src/main/start-main-application/runnables/{setup-sentry.injectable.d.ts → sentry/setup.injectable.d.ts} +1 -1
  43. package/dist/src/main/tray/tray-menu-item/implementations/about-app-tray-item.injectable.d.ts +1 -1
  44. package/dist/src/main/tray/tray-menu-item/implementations/open-app-tray-item.injectable.d.ts +1 -1
  45. package/dist/src/main/vars/build-version/build-version.injectable.d.ts +2 -0
  46. package/dist/src/main/vars/build-version/get-build-version.injectable.d.ts +2 -0
  47. package/dist/src/main/vars/build-version/init.injectable.d.ts +4 -0
  48. package/dist/src/main/vars/default-update-channel/init.injectable.d.ts +2 -0
  49. package/dist/src/main/vars/semantic-build-version/init.injectable.d.ts +2 -0
  50. package/dist/src/renderer/components/cluster-settings/components/cluster-prometheus-setting.d.ts +1 -24
  51. package/dist/src/renderer/utils/prevDefault.d.ts +1 -1
  52. package/dist/src/renderer/vars/build-version/build-version.injectable.d.ts +2 -0
  53. package/dist/src/renderer/vars/build-version/init.injectable.d.ts +4 -0
  54. package/dist/src/renderer/vars/default-update-channel/init.injectable.d.ts +2 -0
  55. package/dist/src/renderer/vars/semantic-build-version/init.injectable.d.ts +2 -0
  56. package/package.json +1 -1
  57. package/dist/src/common/front-end-routing/routes/welcome/welcome-route-config.global-override-for-injectable.d.ts +0 -5
  58. package/dist/src/common/sentry.d.ts +0 -10
  59. package/dist/src/common/vars/app-semantic-version.injectable.d.ts +0 -3
  60. package/dist/src/common/vars/app-version.injectable.d.ts +0 -2
  61. package/dist/src/common/vars/package-json.injectable.d.ts +0 -368
  62. package/dist/src/main/menu/build-version.injectable.d.ts +0 -2
  63. package/dist/src/main/shell-sync.d.ts +0 -10
  64. 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, unknown, void>;
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, UpdateChannelId } from "../update-channels";
2
+ import type { UpdateChannel, ReleaseChannel } from "../update-channels";
3
3
  export interface SelectedUpdateChannel {
4
4
  value: IComputedValue<UpdateChannel>;
5
- setValue: (channelId?: UpdateChannelId) => void;
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 UpdateChannelId = "alpha" | "beta" | "latest";
6
- export declare const updateChannels: Record<UpdateChannelId, UpdateChannel>;
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: UpdateChannelId;
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>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ export {};
@@ -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>;
@@ -0,0 +1,2 @@
1
+ declare const applicationCopyrightInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default applicationCopyrightInjectable;
@@ -0,0 +1,2 @@
1
+ declare const applicationDescriptionInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default applicationDescriptionInjectable;
@@ -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,8 @@
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
+ publish?: unknown[];
5
+ };
6
+ };
7
+ declare const applicationInformationInjectable: import("@ogre-tools/injectable").Injectable<ApplicationInformation, unknown, void>;
8
+ 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;
@@ -0,0 +1,2 @@
1
+ declare const bundledKubectlVersionInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default bundledKubectlVersionInjectable;
@@ -0,0 +1,2 @@
1
+ declare const contentSecurityPolicyInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default contentSecurityPolicyInjectable;
@@ -0,0 +1,2 @@
1
+ declare const extensionApiVersionInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default extensionApiVersionInjectable;
@@ -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<string, unknown, void>;
7
- overridingInstantiate: import("@ogre-tools/injectable").Instantiate<string, void>;
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;
@@ -0,0 +1,2 @@
1
+ declare const isSnapPackageInjectable: import("@ogre-tools/injectable").Injectable<boolean, unknown, void>;
2
+ export default isSnapPackageInjectable;
@@ -0,0 +1,3 @@
1
+ import type { ReleaseChannel } from "../application-update/update-channels";
2
+ declare const releaseChannelInjectable: import("@ogre-tools/injectable").Injectable<ReleaseChannel, unknown, void>;
3
+ export default releaseChannelInjectable;
@@ -0,0 +1,2 @@
1
+ declare const sentryDataSourceNameInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default sentryDataSourceNameInjectable;
@@ -0,0 +1,2 @@
1
+ declare const storeMigrationVersionInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default storeMigrationVersionInjectable;
@@ -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 * as Preferences from "./user-preferences";
6
- export declare const version: string;
7
- export { isSnap, isWindows, isMac, isLinux, appName, slackUrl, issuesTrackerUrl } from "../../common/vars";
8
- export declare const getEnabledExtensions: () => string[];
9
- export { Preferences };
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 * as App from "./app";
5
+ import { App } from "./app";
6
6
  import * as EventBus from "./event-bus";
7
7
  import * as Store from "./stores";
8
- import * as Util from "./utils";
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";
@@ -6,6 +6,6 @@ export { ResourceStack } from "../../common/k8s/resource-stack";
6
6
  export declare const apiManager: import("../../common/k8s-api/api-manager").ApiManager;
7
7
  export { KubeApi, forCluster, forRemoteCluster, type ILocalKubeApiConfig, type IRemoteKubeApiConfig, type IKubeApiCluster, } from "../../common/k8s-api/kube-api";
8
8
  export { KubeObject, KubeStatus, type OwnerReference, type KubeObjectMetadata, type NamespaceScopedMetadata, type ClusterScopedMetadata, type BaseKubeJsonApiObjectMetadata, type KubeJsonApiObjectMetadata, type KubeStatusData, } from "../../common/k8s-api/kube-object";
9
- export { type KubeJsonApiData, } from "../../common/k8s-api/kube-json-api";
9
+ export { KubeJsonApi, type KubeJsonApiData, } from "../../common/k8s-api/kube-json-api";
10
10
  export { KubeObjectStore, type JsonPatch, type KubeObjectStoreLoadAllParams, type KubeObjectStoreLoadingParams, type KubeObjectStoreSubscribeParams, } from "../../common/k8s-api/kube-object.store";
11
11
  export { type Container as IPodContainer, type PodContainerStatus as IPodContainerStatus, Pod, PodApi as PodsApi, Node, NodeApi as NodesApi, Deployment, DeploymentApi, DaemonSet, StatefulSet, Job, CronJob, ConfigMap, type SecretReference as ISecretRef, Secret, ReplicaSet, ResourceQuota, LimitRange, HorizontalPodAutoscaler, PodDisruptionBudget, PriorityClass, Service, Endpoints as Endpoint, Ingress, IngressApi, NetworkPolicy, PersistentVolume, PersistentVolumeClaim, PersistentVolumeClaimApi as PersistentVolumeClaimsApi, StorageClass, Namespace, KubeEvent, ServiceAccount, Role, RoleBinding, ClusterRole, ClusterRoleBinding, CustomResourceDefinition, } from "../../common/k8s-api/endpoints";
@@ -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
- * Get the configured kubectl binaries path.
7
- */
8
- export declare function getKubectlPath(): string | undefined;
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
- export { Singleton, getAppVersion } from "../../common/utils";
6
- export { prevDefault, stopPropagation } from "../../renderer/utils/prevDefault";
7
- export { cssNames } from "../../renderer/utils/cssNames";
8
- /**
9
- * @deprecated Use {@link openBrowser} instead
10
- */
11
- export declare const openExternal: import("../../common/utils/open-link-in-browser.injectable").OpenLinkInBrowser;
12
- export declare const openBrowser: import("../../common/utils/open-link-in-browser.injectable").OpenLinkInBrowser;
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;