@k8slens/extensions 6.2.0-git.2403e6d0cb.0 → 6.2.0-git.3581c172a6.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 (80) hide show
  1. package/dist/src/common/app-event-bus/app-event-bus.injectable.d.ts +3 -1
  2. package/dist/src/common/app-event-bus/emit-event.injectable.d.ts +4 -2
  3. package/dist/src/common/app-event-bus/event-bus.d.ts +3 -2
  4. package/dist/src/common/cluster-store/cluster-store.d.ts +3 -1
  5. package/dist/src/common/event-emitter.d.ts +1 -1
  6. package/dist/src/common/fs/exec-file.injectable.d.ts +2 -3
  7. package/dist/src/common/helm/add-helm-repository-channel.d.ts +1 -1
  8. package/dist/src/common/helm/remove-helm-repository-channel.d.ts +1 -1
  9. package/dist/src/common/runnable/run-many-for.d.ts +4 -0
  10. package/dist/src/common/runnable/run-many-sync-for.d.ts +11 -3
  11. package/dist/src/common/user-store/user-store.d.ts +2 -0
  12. package/dist/src/common/utils/async-result.d.ts +5 -2
  13. package/dist/src/common/utils/channel/listening-on-message-channels.injectable.d.ts +1 -5
  14. package/dist/src/common/utils/get-startable-stoppable.d.ts +7 -7
  15. package/dist/src/extensions/common-api/event-bus.d.ts +1 -1
  16. package/dist/src/extensions/extension-api.js +196 -62
  17. package/dist/src/extensions/lens-renderer-extension.d.ts +2 -0
  18. package/dist/src/features/application-menu/main/application-menu-reactivity.injectable.d.ts +1 -5
  19. package/dist/src/features/application-menu/main/stop-application-menu.injectable.d.ts +1 -1
  20. package/dist/src/features/application-update/child-features/periodical-checking-of-updates/main/periodical-check-for-updates.global-override-for-injectable.d.ts +2 -10
  21. package/dist/src/features/application-update/child-features/periodical-checking-of-updates/main/periodical-check-for-updates.injectable.d.ts +1 -5
  22. package/dist/src/features/application-update/child-features/periodical-checking-of-updates/main/stop-checking-for-updates.injectable.d.ts +1 -1
  23. package/dist/src/features/application-update/main/watch-if-update-should-happen-on-quit/stop-watching-if-update-should-happen-on-quit.injectable.d.ts +1 -1
  24. package/dist/src/features/application-update/main/watch-if-update-should-happen-on-quit/watch-if-update-should-happen-on-quit.injectable.d.ts +1 -5
  25. package/dist/src/features/cluster/legacy-extension-adding-cluster-frame-components.test.d.ts +1 -0
  26. package/dist/src/features/preferences/common/preferences-route-for-legacy-extensions.injectable.d.ts +6 -0
  27. package/dist/src/features/preferences/renderer/preferences-route-component-for-legacy-extensions.injectable.d.ts +13 -0
  28. package/dist/src/features/preferences/urls-of-legacy-extensions.test.d.ts +1 -0
  29. package/dist/src/features/telemetry/renderer/telemetry-decorator.injectable.d.ts +1 -1
  30. package/dist/src/main/app-paths/setup-app-paths.injectable.d.ts +1 -1
  31. package/dist/src/main/catalog-sync-to-renderer/catalog-sync-to-renderer.injectable.d.ts +1 -5
  32. package/dist/src/main/catalog-sync-to-renderer/stop-catalog-sync.injectable.d.ts +1 -1
  33. package/dist/src/main/electron-app/features/sync-theme-from-operating-system.injectable.d.ts +1 -5
  34. package/dist/src/main/electron-app/runnables/clean-up-deep-linking.injectable.d.ts +1 -1
  35. package/dist/src/main/electron-app/runnables/dock-visibility/hide-dock-for-last-closed-window.injectable.d.ts +1 -1
  36. package/dist/src/main/electron-app/runnables/enforce-single-application-instance.injectable.d.ts +1 -1
  37. package/dist/src/main/electron-app/runnables/setup-application-name.injectable.d.ts +1 -1
  38. package/dist/src/main/electron-app/runnables/setup-ipc-main-handlers/setup-ipc-main-handlers.d.ts +5 -1
  39. package/dist/src/main/electron-app/runnables/setup-runnables-after-window-is-opened.injectable.d.ts +1 -1
  40. package/dist/src/main/electron-app/runnables/setup-runnables-before-closing-of-application.injectable.d.ts +1 -1
  41. package/dist/src/main/helm/exec-helm/exec-helm.injectable.d.ts +5 -1
  42. package/dist/src/main/helm/repositories/add-helm-repository/add-helm-repository-channel-listener.injectable.d.ts +1 -1
  43. package/dist/src/main/helm/repositories/add-helm-repository/add-helm-repository.injectable.d.ts +1 -2
  44. package/dist/src/main/helm/repositories/remove-helm-repository/remove-helm-repository-channel-listener.injectable.d.ts +1 -1
  45. package/dist/src/main/helm/repositories/remove-helm-repository/remove-helm-repository.injectable.d.ts +2 -1
  46. package/dist/src/main/lens-proxy/lens-proxy.d.ts +4 -0
  47. package/dist/src/main/resource-applier/create-resource-applier.injectable.d.ts +5 -0
  48. package/dist/src/main/{resource-applier.d.ts → resource-applier/resource-applier.d.ts} +19 -4
  49. package/dist/src/main/shell-session/shell-session.d.ts +4 -0
  50. package/dist/src/main/start-main-application/runnables/clean-up-shell-sessions.injectable.d.ts +1 -1
  51. package/dist/src/main/start-main-application/runnables/emit-close-to-event-bus.injectable.d.ts +1 -1
  52. package/dist/src/main/start-main-application/runnables/flag-renderer/flag-renderer-as-not-loaded.injectable.d.ts +1 -1
  53. package/dist/src/main/start-main-application/runnables/kube-config-sync/stop-kube-config-sync.injectable.d.ts +1 -1
  54. package/dist/src/main/start-main-application/runnables/sentry/setup.injectable.d.ts +1 -1
  55. package/dist/src/main/start-main-application/runnables/setup-hardware-acceleration.injectable.d.ts +1 -1
  56. package/dist/src/main/start-main-application/runnables/setup-immer.injectable.d.ts +1 -1
  57. package/dist/src/main/start-main-application/runnables/setup-mobx.injectable.d.ts +1 -1
  58. package/dist/src/main/start-main-application/runnables/setup-proxy-env.injectable.d.ts +1 -1
  59. package/dist/src/main/start-main-application/runnables/stop-cluster-manager.injectable.d.ts +1 -1
  60. package/dist/src/main/theme/broadcast-theme-change/broadcast-theme-change.injectable.d.ts +1 -5
  61. package/dist/src/main/theme/broadcast-theme-change/stop-broadcasting-theme-change.injectable.d.ts +1 -1
  62. package/dist/src/main/theme/sync-theme-from-os/stop-syncing-theme-from-operating-system.injectable.d.ts +1 -1
  63. package/dist/src/main/tray/electron-tray/stop-tray.injectable.d.ts +2 -2
  64. package/dist/src/main/tray/menu-icon/reactive.injectable.d.ts +1 -5
  65. package/dist/src/main/tray/menu-icon/stop-reactivity.injectable.d.ts +1 -1
  66. package/dist/src/main/tray/reactive-tray-menu-items/reactive-tray-menu-items.injectable.d.ts +1 -5
  67. package/dist/src/main/tray/reactive-tray-menu-items/stop-reactive-tray-menu-items.injectable.d.ts +1 -1
  68. package/dist/src/main/utils/channel/channel-listeners/listening-on-request-channels.injectable.d.ts +1 -5
  69. package/dist/src/main/utils/channel/channel-listeners/start-listening-on-channels.injectable.d.ts +1 -1
  70. package/dist/src/main/utils/shell-env/compute-unix-shell-environment.injectable.d.ts +3 -2
  71. package/dist/src/{common/__tests__/event-bus.test.d.ts → main/utils/shell-env/compute-unix-shell-environment.test.d.ts} +0 -0
  72. package/dist/src/main/utils/shell-env/env.injectable.d.ts +3 -0
  73. package/dist/src/main/utils/shell-env/execPath.injectable.d.ts +2 -0
  74. package/dist/src/renderer/frames/cluster-frame/cluster-frame-component-registrator.injectable.d.ts +3 -0
  75. package/dist/src/renderer/frames/cluster-frame/cluster-frame.d.ts +2 -1
  76. package/dist/src/renderer/frames/cluster-frame/init-cluster-frame/init-cluster-frame.d.ts +3 -3
  77. package/dist/src/renderer/utils/jsonPath.d.ts +3 -1
  78. package/package.json +1 -1
  79. package/dist/src/common/app-event-bus/app-event-bus.global-override-for-injectable.d.ts +0 -5
  80. package/dist/src/common/runnable/throw-with-incorrect-hierarchy-for.d.ts +0 -7
@@ -4,16 +4,16 @@
4
4
  */
5
5
  import type { Cluster } from "../../../../common/cluster/cluster";
6
6
  import type { CatalogEntityRegistry } from "../../../api/catalog/entity/registry";
7
- import type { AppEvent } from "../../../../common/app-event-bus/event-bus";
8
7
  import type { CatalogEntity } from "../../../../common/catalog";
9
8
  import type { ClusterFrameContext } from "../../../cluster-frame-context/cluster-frame-context";
9
+ import type { EmitAppEvent } from "../../../../common/app-event-bus/emit-event.injectable";
10
10
  interface Dependencies {
11
11
  hostedCluster: Cluster;
12
12
  loadExtensions: (getCluster: () => CatalogEntity) => void;
13
13
  catalogEntityRegistry: CatalogEntityRegistry;
14
14
  frameRoutingId: number;
15
- emitEvent: (event: AppEvent) => void;
15
+ emitAppEvent: EmitAppEvent;
16
16
  clusterFrameContext: ClusterFrameContext;
17
17
  }
18
- export declare const initClusterFrame: ({ hostedCluster, loadExtensions, catalogEntityRegistry, frameRoutingId, emitEvent, clusterFrameContext, }: Dependencies) => (unmountRoot: () => void) => Promise<void>;
18
+ export declare const initClusterFrame: ({ hostedCluster, loadExtensions, catalogEntityRegistry, frameRoutingId, emitAppEvent, clusterFrameContext, }: Dependencies) => (unmountRoot: () => void) => Promise<void>;
19
19
  export {};
@@ -9,6 +9,7 @@
9
9
  *
10
10
  * Known shorthands:
11
11
  * - Leading `$` is optional (but implied)
12
+ * - The string `/` can be used without a leading `\` escapement
12
13
  * - The string `\.` is used to denote the "value of '.'" and not "next key"
13
14
  * - The string `-` can be used while not in quotes
14
15
  * - `[]` as shorthand for `[0]`
@@ -16,9 +17,10 @@
16
17
  * - Allow `...foo` as well as `..foo`
17
18
  */
18
19
  export declare function convertKubectlJsonPathToNodeJsonPath(jsonPath: string): string;
20
+ export declare function formatJSONValue(value: unknown): string;
19
21
  /**
20
22
  * This function is a safer version of `JSONPath.value(obj, path)` with untrusted jsonpath strings
21
23
  *
22
24
  * This function will also stringify the value retreived from the object
23
25
  */
24
- export declare function safeJSONPathValue(obj: object, path: string): string;
26
+ export declare function safeJSONPathValue(obj: object, path: string): unknown;
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": "6.2.0-git.2403e6d0cb.0",
5
+ "version": "6.2.0-git.3581c172a6.0",
6
6
  "copyright": "© 2022 OpenLens Authors",
7
7
  "license": "MIT",
8
8
  "main": "dist/src/extensions/extension-api.js",
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- injectable: import("@ogre-tools/injectable").Injectable<(data_0: import("./event-bus").AppEvent) => void, unknown, void>;
3
- overridingInstantiate: import("@ogre-tools/injectable").Instantiate<(data_0: import("./event-bus").AppEvent) => void, void>;
4
- };
5
- export default _default;
@@ -1,7 +0,0 @@
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 { Runnable } from "./run-many-for";
6
- import type { RunnableSync } from "./run-many-sync-for";
7
- export declare const throwWithIncorrectHierarchyFor: (injectionTokenId: string, allRunnables: Runnable<any>[] | RunnableSync<any>[]) => (runnable: Runnable<any> | RunnableSync<any>) => void;