@k8slens/extensions 6.2.0-git.f4d5097d2f.0 → 6.2.1-git.df99b91d58.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 (97) hide show
  1. package/dist/src/common/app-paths/directory-for-logs.injectable.d.ts +2 -0
  2. package/dist/src/common/fetch/download-json.injectable.d.ts +1 -2
  3. package/dist/src/common/fetch/fetch.global-override-for-injectable.d.ts +2 -2
  4. package/dist/src/common/fetch/fetch.injectable.d.ts +3 -1
  5. package/dist/src/common/ipc/index.d.ts +0 -1
  6. package/dist/src/common/k8s-api/__tests__/kube-api-version-detection.test.d.ts +1 -0
  7. package/dist/src/common/k8s-api/endpoints/cron-job.api.d.ts +1 -1
  8. package/dist/src/common/k8s-api/kube-api-parse.d.ts +1 -0
  9. package/dist/src/common/k8s-api/kube-api.d.ts +16 -4
  10. package/dist/src/common/logger/transports.d.ts +6 -0
  11. package/dist/src/common/logger.d.ts +3 -0
  12. package/dist/src/common/runnable/run-many-for.d.ts +4 -0
  13. package/dist/src/common/runnable/run-many-sync-for.d.ts +11 -3
  14. package/dist/src/common/user-store/shell-setting.injectable.d.ts +2 -0
  15. package/dist/src/common/user-store/user-info.global-override-for-injectable.d.ts +10 -0
  16. package/dist/src/common/user-store/user-info.injectable.d.ts +3 -0
  17. package/dist/src/common/user-store/user-store.d.ts +0 -1
  18. package/dist/src/common/utils/abort-controller.d.ts +1 -0
  19. package/dist/src/common/utils/channel/listening-on-message-channels.injectable.d.ts +1 -5
  20. package/dist/src/common/utils/get-startable-stoppable.d.ts +7 -7
  21. package/dist/src/extensions/extension-api.js +222 -215
  22. package/dist/src/extensions/extension-loader/extension/extension.injectable.d.ts +6 -1
  23. package/dist/src/extensions/extension-loader/extension-registrator-injection-token.d.ts +2 -1
  24. package/dist/src/extensions/lens-main-extension.d.ts +2 -2
  25. package/dist/src/extensions/lens-renderer-extension.d.ts +2 -0
  26. package/dist/src/features/application-menu/main/application-menu-reactivity.injectable.d.ts +1 -5
  27. package/dist/src/features/application-menu/main/stop-application-menu.injectable.d.ts +1 -1
  28. 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
  29. package/dist/src/features/application-update/child-features/periodical-checking-of-updates/main/periodical-check-for-updates.injectable.d.ts +1 -5
  30. package/dist/src/features/application-update/child-features/periodical-checking-of-updates/main/stop-checking-for-updates.injectable.d.ts +1 -1
  31. 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
  32. 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
  33. package/dist/src/features/cluster/legacy-extension-adding-cluster-frame-components.test.d.ts +1 -0
  34. package/dist/src/features/preferences/common/preferences-route-for-legacy-extensions.injectable.d.ts +6 -0
  35. package/dist/src/features/preferences/renderer/preferences-route-component-for-legacy-extensions.injectable.d.ts +13 -0
  36. package/dist/src/features/preferences/urls-of-legacy-extensions.test.d.ts +1 -0
  37. package/dist/src/main/app-paths/setup-app-paths.injectable.d.ts +1 -1
  38. package/dist/src/main/catalog-sync-to-renderer/catalog-sync-to-renderer.injectable.d.ts +1 -5
  39. package/dist/src/main/catalog-sync-to-renderer/stop-catalog-sync.injectable.d.ts +1 -1
  40. package/dist/src/main/electron-app/features/sync-theme-from-operating-system.injectable.d.ts +1 -5
  41. package/dist/src/main/electron-app/runnables/clean-up-deep-linking.injectable.d.ts +1 -1
  42. package/dist/src/main/electron-app/runnables/dock-visibility/hide-dock-for-last-closed-window.injectable.d.ts +1 -1
  43. package/dist/src/main/electron-app/runnables/enforce-single-application-instance.injectable.d.ts +1 -1
  44. package/dist/src/main/electron-app/runnables/setup-application-name.injectable.d.ts +1 -1
  45. package/dist/src/main/electron-app/runnables/setup-runnables-after-window-is-opened.injectable.d.ts +1 -1
  46. package/dist/src/main/electron-app/runnables/setup-runnables-before-closing-of-application.injectable.d.ts +1 -1
  47. package/dist/src/main/logger/console-format.d.ts +39 -0
  48. package/dist/src/main/logger/console-transport.injectable.d.ts +3 -0
  49. package/dist/src/main/logger/file-transport.injectable.d.ts +3 -0
  50. package/dist/src/{common/os/home-directory-path.global-override-for-injectable.d.ts → main/logger/level.global-override-for-injectable.d.ts} +2 -2
  51. package/dist/src/main/logger/level.injectable.d.ts +3 -0
  52. package/dist/src/main/routes/files/development.injectable.d.ts +4 -0
  53. package/dist/src/main/routes/files/production.injectable.d.ts +12 -0
  54. package/dist/src/main/routes/files/static-file-route.injectable.d.ts +3 -0
  55. package/dist/src/main/shell-session/shell-session.d.ts +2 -1
  56. package/dist/src/main/start-main-application/runnable-tokens/phases.d.ts +16 -0
  57. package/dist/src/main/start-main-application/runnables/clean-up-shell-sessions.injectable.d.ts +1 -1
  58. package/dist/src/main/start-main-application/runnables/emit-close-to-event-bus.injectable.d.ts +1 -1
  59. package/dist/src/main/start-main-application/runnables/flag-renderer/flag-renderer-as-not-loaded.injectable.d.ts +1 -1
  60. package/dist/src/main/start-main-application/runnables/kube-config-sync/stop-kube-config-sync.injectable.d.ts +1 -1
  61. package/dist/src/main/start-main-application/runnables/sentry/setup.injectable.d.ts +1 -1
  62. package/dist/src/main/start-main-application/runnables/setup-hardware-acceleration.injectable.d.ts +1 -1
  63. package/dist/src/main/start-main-application/runnables/setup-immer.injectable.d.ts +1 -1
  64. package/dist/src/main/start-main-application/runnables/setup-mobx.injectable.d.ts +1 -1
  65. package/dist/src/main/start-main-application/runnables/setup-proxy-env.injectable.d.ts +1 -1
  66. package/dist/src/main/start-main-application/runnables/show-initial-window.injectable.d.ts +5 -0
  67. package/dist/src/main/start-main-application/runnables/show-loading.injectable.d.ts +5 -0
  68. package/dist/src/main/start-main-application/runnables/stop-cluster-manager.injectable.d.ts +1 -1
  69. package/dist/src/main/start-main-application/start-main-application.injectable.d.ts +1 -1
  70. package/dist/src/main/theme/broadcast-theme-change/broadcast-theme-change.injectable.d.ts +1 -5
  71. package/dist/src/main/theme/broadcast-theme-change/stop-broadcasting-theme-change.injectable.d.ts +1 -1
  72. package/dist/src/main/theme/sync-theme-from-os/stop-syncing-theme-from-operating-system.injectable.d.ts +1 -1
  73. package/dist/src/main/tray/electron-tray/stop-tray.injectable.d.ts +2 -2
  74. package/dist/src/main/tray/menu-icon/reactive.injectable.d.ts +1 -5
  75. package/dist/src/main/tray/menu-icon/stop-reactivity.injectable.d.ts +1 -1
  76. package/dist/src/main/tray/reactive-tray-menu-items/reactive-tray-menu-items.injectable.d.ts +1 -5
  77. package/dist/src/main/tray/reactive-tray-menu-items/start-reactive-tray-menu-items.injectable.d.ts +1 -1
  78. package/dist/src/main/tray/reactive-tray-menu-items/stop-reactive-tray-menu-items.injectable.d.ts +1 -1
  79. package/dist/src/main/tray/tray-menu-item/tray-menu-item-registrator.injectable.d.ts +1 -1
  80. package/dist/src/main/utils/channel/channel-listeners/listening-on-request-channels.injectable.d.ts +1 -5
  81. package/dist/src/main/utils/channel/channel-listeners/start-listening-on-channels.injectable.d.ts +1 -1
  82. package/dist/src/main/utils/shell-env/compute-unix-shell-environment.injectable.d.ts +3 -2
  83. package/dist/src/{common/ipc/__tests__/type-enforced-ipc.test.d.ts → main/utils/shell-env/compute-unix-shell-environment.test.d.ts} +0 -0
  84. package/dist/src/main/utils/shell-env/env.injectable.d.ts +3 -0
  85. package/dist/src/main/utils/shell-env/execPath.injectable.d.ts +2 -0
  86. package/dist/src/renderer/components/+workloads-cronjobs/cron-jobs-route-component.injectable.d.ts +1 -2
  87. package/dist/src/renderer/components/+workloads-cronjobs/cronjobs.d.ts +1 -3
  88. package/dist/src/renderer/components/{+workloads-cronjobs/legacy-store.d.ts → icon/icon.test.d.ts} +1 -4
  89. package/dist/src/renderer/frames/cluster-frame/cluster-frame-component-registrator.injectable.d.ts +3 -0
  90. package/dist/src/renderer/frames/cluster-frame/cluster-frame.d.ts +2 -1
  91. package/dist/src/renderer/logger/browser-transport.injectable.d.ts +3 -0
  92. package/dist/src/renderer/utils/jsonPath.d.ts +3 -1
  93. package/package.json +1 -1
  94. package/dist/src/common/ipc/type-enforced-ipc.d.ts +0 -40
  95. package/dist/src/common/runnable/throw-with-incorrect-hierarchy-for.d.ts +0 -7
  96. package/dist/src/common/user-store/resolved-shell.injectable.d.ts +0 -2
  97. package/dist/src/main/routes/static-file-route.injectable.d.ts +0 -3
@@ -0,0 +1,3 @@
1
+ /// <reference types="node" />
2
+ declare const processEnvInjectable: import("@ogre-tools/injectable").Injectable<NodeJS.ProcessEnv, unknown, void>;
3
+ export default processEnvInjectable;
@@ -0,0 +1,2 @@
1
+ declare const processExecPathInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default processExecPathInjectable;
@@ -1,12 +1,11 @@
1
1
  /// <reference types="react" />
2
- import { CronJobs } from "./cronjobs";
3
2
  declare const cronJobsRouteComponentInjectable: import("@ogre-tools/injectable").Injectable<{
4
3
  route: {
5
4
  path: string;
6
5
  clusterFrame: boolean;
7
6
  isEnabled: import("mobx").IComputedValue<boolean>;
8
7
  };
9
- Component: typeof CronJobs;
8
+ Component: import("react").FunctionComponent<{}>;
10
9
  }, {
11
10
  route: import("../../../common/front-end-routing/front-end-route-injection-token").Route<unknown>;
12
11
  Component: import("react").ElementType<any>;
@@ -4,6 +4,4 @@
4
4
  */
5
5
  import "./cronjobs.scss";
6
6
  import React from "react";
7
- export declare class CronJobs extends React.Component {
8
- render(): JSX.Element;
9
- }
7
+ export declare const CronJobs: React.FunctionComponent<{}>;
@@ -2,7 +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
- /**
6
- * @deprecated use `di.inject(cronJobStoreInjectable)` instead
7
- */
8
- export declare const cronJobStore: import("./store").CronJobStore;
5
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { ExtensionRegistrator } from "../../../extensions/extension-loader/extension-registrator-injection-token";
2
+ declare const clusterFrameComponentRegistratorInjectable: import("@ogre-tools/injectable").Injectable<ExtensionRegistrator, ExtensionRegistrator, void>;
3
+ export default clusterFrameComponentRegistratorInjectable;
@@ -6,10 +6,11 @@ import React from "react";
6
6
  import type { NamespaceStore } from "../../components/+namespaces/store";
7
7
  import type { SubscribeStores } from "../../kube-watch-api/kube-watch-api";
8
8
  import type { ClusterFrameChildComponent } from "./cluster-frame-child-component-injection-token";
9
+ import type { IComputedValue } from "mobx";
9
10
  interface Dependencies {
10
11
  namespaceStore: NamespaceStore;
11
12
  subscribeStores: SubscribeStores;
12
- childComponents: ClusterFrameChildComponent[];
13
+ childComponents: IComputedValue<ClusterFrameChildComponent[]>;
13
14
  watchHistoryState: () => () => void;
14
15
  }
15
16
  export declare const NonInjectedClusterFrame: ({ namespaceStore, subscribeStores, childComponents, watchHistoryState, }: Dependencies) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import BrowserConsole from "winston-transport-browserconsole";
2
+ declare const browserLoggerTransportInjectable: import("@ogre-tools/injectable").Injectable<BrowserConsole, import("winston-transport"), void>;
3
+ export default browserLoggerTransportInjectable;
@@ -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.f4d5097d2f.0",
5
+ "version": "6.2.1-git.df99b91d58.0",
6
6
  "copyright": "© 2022 OpenLens Authors",
7
7
  "license": "MIT",
8
8
  "main": "dist/src/extensions/extension-api.js",
@@ -1,40 +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
- /// <reference types="node" />
6
- import type { EventEmitter } from "events";
7
- import type { Disposer } from "../utils";
8
- export declare type ListenerEvent<EM extends EventEmitter> = Parameters<Parameters<EM["on"]>[1]>[0];
9
- export declare type ListVerifier<T extends any[]> = (args: unknown[]) => args is T;
10
- export declare type Rest<T> = T extends [any, ...infer R] ? R : [];
11
- /**
12
- * Adds a listener to `source` that waits for the first IPC message with the correct
13
- * argument data is sent.
14
- * @param channel The channel to be listened on
15
- * @param listener The function for the channel to be called if the args of the correct type
16
- * @param verifier The function to be called to verify that the args are the correct type
17
- */
18
- export declare function onceCorrect<IPC extends EventEmitter, Listener extends (event: ListenerEvent<IPC>, ...args: any[]) => any>({ source, channel, listener, verifier, }: {
19
- source: IPC;
20
- channel: string;
21
- listener: Listener;
22
- verifier: ListVerifier<Rest<Parameters<Listener>>>;
23
- }): void;
24
- /**
25
- * Adds a listener to `source` that checks to verify the arguments before calling the handler.
26
- * @param channel The channel to be listened on
27
- * @param listener The function for the channel to be called if the args of the correct type
28
- * @param verifier The function to be called to verify that the args are the correct type
29
- */
30
- export declare function onCorrect<IPC extends EventEmitter, Listener extends (event: ListenerEvent<IPC>, ...args: any[]) => any>({ source, channel, listener, verifier, }: {
31
- source: IPC;
32
- channel: string;
33
- listener: Listener;
34
- verifier: ListVerifier<Rest<Parameters<Listener>>>;
35
- }): Disposer;
36
- export declare function handleCorrect<Handler extends (event: Electron.IpcMainInvokeEvent, ...args: any[]) => any>({ channel, handler, verifier, }: {
37
- channel: string;
38
- handler: Handler;
39
- verifier: ListVerifier<Rest<Parameters<Handler>>>;
40
- }): Disposer;
@@ -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;
@@ -1,2 +0,0 @@
1
- declare const resolvedShellInjectable: import("@ogre-tools/injectable").Injectable<string | undefined, unknown, void>;
2
- export default resolvedShellInjectable;
@@ -1,3 +0,0 @@
1
- /// <reference types="node" />
2
- declare const staticFileRouteInjectable: import("@ogre-tools/injectable").Injectable<import("../router/route").Route<Buffer, "/{path*}">, import("../router/route").Route<Buffer, "/{path*}">, void>;
3
- export default staticFileRouteInjectable;