@k8slens/extensions 6.2.0-git.077c49f97d.0 → 6.2.0-git.18f73d8a39.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/fetch/download-json.injectable.d.ts +1 -2
- package/dist/src/common/fetch/fetch.global-override-for-injectable.d.ts +2 -2
- package/dist/src/common/fetch/fetch.injectable.d.ts +3 -1
- package/dist/src/common/k8s-api/__tests__/kube-api-version-detection.test.d.ts +1 -0
- package/dist/src/common/k8s-api/endpoints/cron-job.api.d.ts +1 -1
- package/dist/src/common/k8s-api/kube-api-parse.d.ts +1 -0
- package/dist/src/common/k8s-api/kube-api.d.ts +16 -4
- package/dist/src/common/utils/abort-controller.d.ts +1 -0
- package/dist/src/extensions/extension-api.js +180 -39
- package/dist/src/features/preferences/common/preferences-route-for-legacy-extensions.injectable.d.ts +6 -0
- package/dist/src/features/preferences/renderer/preferences-route-component-for-legacy-extensions.injectable.d.ts +13 -0
- package/dist/src/features/preferences/urls-of-legacy-extensions.test.d.ts +1 -0
- package/dist/src/main/routes/files/development.injectable.d.ts +4 -0
- package/dist/src/main/routes/files/production.injectable.d.ts +12 -0
- package/dist/src/main/routes/files/static-file-route.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+workloads-cronjobs/cron-jobs-route-component.injectable.d.ts +1 -2
- package/dist/src/renderer/components/+workloads-cronjobs/cronjobs.d.ts +1 -3
- package/dist/src/renderer/utils/jsonPath.d.ts +3 -1
- package/package.json +1 -1
- package/dist/src/main/routes/static-file-route.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+workloads-cronjobs/legacy-store.d.ts +0 -8
package/dist/src/features/preferences/common/preferences-route-for-legacy-extensions.injectable.d.ts
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
declare const preferencesRouteForLegacyExtensionsInjectable: import("@ogre-tools/injectable").Injectable<{
|
2
|
+
path: string;
|
3
|
+
clusterFrame: boolean;
|
4
|
+
isEnabled: import("mobx").IComputedValue<boolean>;
|
5
|
+
}, import("../../../common/front-end-routing/front-end-route-injection-token").Route<unknown>, void>;
|
6
|
+
export default preferencesRouteForLegacyExtensionsInjectable;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const preferencesRouteComponentInjectable: import("@ogre-tools/injectable").Injectable<{
|
3
|
+
route: {
|
4
|
+
path: string;
|
5
|
+
clusterFrame: boolean;
|
6
|
+
isEnabled: import("mobx").IComputedValue<boolean>;
|
7
|
+
};
|
8
|
+
Component: import("react").FunctionComponent<{}>;
|
9
|
+
}, {
|
10
|
+
route: import("../../../common/front-end-routing/front-end-route-injection-token").Route<unknown>;
|
11
|
+
Component: import("react").ElementType<any>;
|
12
|
+
}, void>;
|
13
|
+
export default preferencesRouteComponentInjectable;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import type { LensApiRequest, RouteResponse } from "../../router/route";
|
3
|
+
declare const devStaticFileRouteHandlerInjectable: import("@ogre-tools/injectable").Injectable<({ raw: { req, res } }: LensApiRequest<"/{path*}">) => Promise<RouteResponse<Buffer>>, unknown, void>;
|
4
|
+
export default devStaticFileRouteHandlerInjectable;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import type { LensApiRequest } from "../../router/route";
|
3
|
+
declare const prodStaticFileRouteHandlerInjectable: import("@ogre-tools/injectable").Injectable<({ params }: LensApiRequest<"/{path*}">) => Promise<{
|
4
|
+
statusCode: number;
|
5
|
+
response?: undefined;
|
6
|
+
contentType?: undefined;
|
7
|
+
} | {
|
8
|
+
response: Buffer;
|
9
|
+
contentType: import("../../router/router-content-types").LensApiResultContentType;
|
10
|
+
statusCode?: undefined;
|
11
|
+
}>, unknown, void>;
|
12
|
+
export default prodStaticFileRouteHandlerInjectable;
|
@@ -0,0 +1,3 @@
|
|
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;
|
package/dist/src/renderer/components/+workloads-cronjobs/cron-jobs-route-component.injectable.d.ts
CHANGED
@@ -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:
|
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>;
|
@@ -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):
|
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.
|
5
|
+
"version": "6.2.0-git.18f73d8a39.0",
|
6
6
|
"copyright": "© 2022 OpenLens Authors",
|
7
7
|
"license": "MIT",
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
@@ -1,8 +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
|
-
/**
|
6
|
-
* @deprecated use `di.inject(cronJobStoreInjectable)` instead
|
7
|
-
*/
|
8
|
-
export declare const cronJobStore: import("./store").CronJobStore;
|