@k8slens/extensions 5.3.0-git.fe4a56ba59.0 → 5.3.1-git.4f33dfdfd5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/src/common/__tests__/base-store.test.d.ts +21 -0
  2. package/dist/src/common/base-store.d.ts +3 -2
  3. package/dist/src/common/cluster-store.d.ts +1 -0
  4. package/dist/src/common/hotbar-store.d.ts +1 -0
  5. package/dist/src/common/k8s-api/api-manager.d.ts +1 -1
  6. package/dist/src/common/user-store/user-store.d.ts +1 -0
  7. package/dist/src/common/utils/paths.d.ts +1 -0
  8. package/dist/src/common/weblink-store.d.ts +1 -0
  9. package/dist/src/extensions/extension-api.js +23 -23
  10. package/dist/src/extensions/extension-store.d.ts +1 -0
  11. package/dist/src/extensions/extensions-store.d.ts +1 -0
  12. package/dist/src/extensions/registries/workloads-overview-detail-registry.d.ts +6 -3
  13. package/dist/src/main/context-handler.d.ts +8 -4
  14. package/dist/src/main/extension-filesystem.d.ts +1 -0
  15. package/dist/src/main/prometheus/helm.d.ts +1 -1
  16. package/dist/src/main/prometheus/lens.d.ts +1 -1
  17. package/dist/src/main/prometheus/operator.d.ts +1 -1
  18. package/dist/src/main/prometheus/provider-registry.d.ts +2 -1
  19. package/dist/src/main/prometheus/stacklight.d.ts +1 -1
  20. package/dist/src/main/shell-session/shell-session.d.ts +2 -1
  21. package/dist/src/renderer/bootstrap.d.ts +1 -1
  22. package/dist/src/renderer/{components/app.d.ts → cluster-frame.d.ts} +6 -4
  23. package/dist/src/renderer/components/+workloads-overview/overview.d.ts +3 -0
  24. package/dist/src/renderer/components/animate/animate.d.ts +3 -2
  25. package/dist/src/renderer/components/cluster-manager/cluster-status.d.ts +3 -2
  26. package/dist/src/renderer/components/cluster-manager/lens-views.d.ts +2 -4
  27. package/dist/src/renderer/components/cluster-settings/components/__tests__/cluster-local-terminal-settings.test.d.ts +21 -0
  28. package/dist/src/renderer/components/cluster-settings/components/{cluster-home-dir-setting.d.ts → cluster-local-terminal-settings.d.ts} +1 -12
  29. package/dist/src/renderer/components/cluster-settings/components/index.d.ts +1 -1
  30. package/dist/src/renderer/components/notifications/notifications.d.ts +3 -3
  31. package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
  32. package/dist/src/renderer/initializers/kube-object-detail-registry.d.ts +1 -1
  33. package/dist/src/renderer/{lens-app.d.ts → root-frame.d.ts} +3 -1
  34. package/package.json +1 -1
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright (c) 2021 OpenLens Authors
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ * this software and associated documentation files (the "Software"), to deal in
6
+ * the Software without restriction, including without limitation the rights to
7
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ * the Software, and to permit persons to whom the Software is furnished to do so,
9
+ * subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in all
12
+ * copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ */
21
+ export {};
@@ -32,6 +32,7 @@ export declare abstract class BaseStore<T> extends Singleton {
32
32
  protected params: BaseStoreParams<T>;
33
33
  protected storeConfig?: Config<T>;
34
34
  protected syncDisposers: Disposer[];
35
+ readonly displayName: string;
35
36
  protected constructor(params: BaseStoreParams<T>);
36
37
  /**
37
38
  * This must be called after the last child's constructor is finished (or just before it finishes)
@@ -42,14 +43,14 @@ export declare abstract class BaseStore<T> extends Singleton {
42
43
  protected get syncMainChannel(): string;
43
44
  get path(): string;
44
45
  protected cwd(): string;
45
- protected saveToFile(model: T): Promise<void>;
46
+ protected saveToFile(model: T): void;
46
47
  enableSync(): void;
47
48
  protected onSyncFromMain(model: T): void;
48
49
  unregisterIpcListener(): void;
49
50
  disableSync(): void;
50
51
  protected applyWithoutSync(callback: () => void): void;
51
52
  protected onSync(model: T): void;
52
- protected onModelChange(model: T): Promise<void>;
53
+ protected onModelChange(model: T): void;
53
54
  /**
54
55
  * fromStore is called internally when a child class syncs with the file
55
56
  * system.
@@ -25,6 +25,7 @@ export interface ClusterStoreModel {
25
25
  clusters?: ClusterModel[];
26
26
  }
27
27
  export declare class ClusterStore extends BaseStore<ClusterStoreModel> {
28
+ readonly displayName = "ClusterStore";
28
29
  clusters: import("mobx").ObservableMap<string, Cluster>;
29
30
  protected disposer: import("./utils").ExtendableDisposer;
30
31
  constructor();
@@ -26,6 +26,7 @@ export interface HotbarStoreModel {
26
26
  activeHotbarId: string;
27
27
  }
28
28
  export declare class HotbarStore extends BaseStore<HotbarStoreModel> {
29
+ readonly displayName = "HotbarStore";
29
30
  hotbars: Hotbar[];
30
31
  private _activeHotbarId;
31
32
  constructor();
@@ -33,6 +33,6 @@ export declare class ApiManager {
33
33
  unregisterApi(api: string | KubeApi<KubeObject>): void;
34
34
  registerStore(store: KubeObjectStore<KubeObject>, apis?: KubeApi<KubeObject>[]): void;
35
35
  getStore<S extends KubeObjectStore<KubeObject>>(api: string | KubeApi<KubeObject>): S | undefined;
36
- lookupApiLink(ref: IKubeObjectRef, parentObject: KubeObject): string;
36
+ lookupApiLink(ref: IKubeObjectRef, parentObject?: KubeObject): string;
37
37
  }
38
38
  export declare const apiManager: ApiManager;
@@ -26,6 +26,7 @@ export interface UserStoreModel {
26
26
  preferences: UserPreferencesModel;
27
27
  }
28
28
  export declare class UserStore extends BaseStore<UserStoreModel> {
29
+ readonly displayName = "UserStore";
29
30
  constructor();
30
31
  lastSeenAppVersion: string;
31
32
  /**
@@ -18,6 +18,7 @@
18
18
  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
+ export declare function resolveTilde(filePath: string): string;
21
22
  export declare function resolvePath(filePath: string): string;
22
23
  /**
23
24
  * Checks if `testPath` represents a potential filesystem entry that would be
@@ -33,6 +33,7 @@ export interface WeblinkStoreModel {
33
33
  weblinks: WeblinkData[];
34
34
  }
35
35
  export declare class WeblinkStore extends BaseStore<WeblinkStoreModel> {
36
+ readonly displayName = "WeblinkStore";
36
37
  weblinks: WeblinkData[];
37
38
  constructor();
38
39
  protected fromStore(data?: Partial<WeblinkStoreModel>): void;