@k8slens/extensions 5.6.0-git.e8b337d022.0 → 5.6.0-git.fba5892c8a.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/common/app-paths/app-path-injection-token.d.ts +0 -1
- package/dist/src/common/application-update/selected-update-channel/default-update-channel.injectable.d.ts +2 -0
- package/dist/src/common/application-update/selected-update-channel/selected-update-channel.injectable.d.ts +8 -0
- package/dist/src/common/application-update/update-channels.d.ts +11 -0
- package/dist/src/common/ipc/index.d.ts +0 -1
- package/dist/src/common/k8s-api/endpoints/custom-resource-definition.api.d.ts +8 -3
- package/dist/src/common/{ipc-channel/channel.d.ts → k8s-api/endpoints/types/external-documentation.d.ts} +3 -3
- package/dist/src/common/k8s-api/endpoints/types/json-schema-props.d.ts +86 -0
- package/dist/src/common/user-store/preferences-helpers.d.ts +2 -6
- package/dist/src/common/user-store/user-store.d.ts +7 -3
- package/dist/src/common/vars/base-bundled-binaries-dir.injectable.d.ts +2 -0
- package/dist/src/common/vars/bundled-binaries-normalized-arch.injectable.d.ts +2 -0
- package/dist/src/common/vars/bundled-resources-dir.injectable.d.ts +2 -0
- package/dist/src/common/vars/lens-resources-dir.injectable.d.ts +2 -0
- package/dist/src/common/vars/normalized-platform.injectable.d.ts +2 -0
- package/dist/src/common/vars/package-json.injectable.d.ts +349 -0
- package/dist/src/common/vars/static-files-directory.injectable.d.ts +2 -0
- package/dist/src/common/vars.d.ts +6 -9
- package/dist/src/main/app-paths/app-name/product-name.injectable.d.ts +2 -0
- package/dist/src/main/kubectl/kubectl.d.ts +18 -14
- package/dist/src/main/start-main-application/lens-window/application-window/application-window.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/lens-window/application-window/create-electron-window-for.injectable.d.ts +9 -1
- package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +4 -4
- package/dist/src/main/start-main-application/lens-window/application-window/lens-window-injection-token.d.ts +1 -1
- package/dist/src/main/start-main-application/lens-window/splash-window/splash-window.injectable.d.ts +1 -1
- package/dist/src/main/{app-paths/register-channel → utils/channel}/ipc-main/ipc-main.injectable.d.ts +0 -0
- package/dist/src/renderer/components/+namespaces/namespace-select.d.ts +1 -0
- package/dist/src/renderer/components/+user-management/+service-accounts/service-account-menu.d.ts +1 -0
- package/dist/src/renderer/components/animate/animate.d.ts +6 -1
- package/dist/src/renderer/components/animate/request-animation-frame.injectable.d.ts +2 -0
- package/dist/src/renderer/components/drawer/drawer-item-labels.d.ts +1 -0
- package/dist/src/renderer/components/drawer/drawer-item.d.ts +7 -2
- package/dist/src/renderer/components/item-object-list/filter-icon.d.ts +1 -0
- package/dist/src/renderer/components/notifications/notifications-store.injectable.d.ts +3 -0
- package/dist/src/renderer/components/notifications/notifications.d.ts +7 -12
- package/dist/src/renderer/components/notifications/notifications.store.d.ts +0 -1
- package/dist/src/renderer/components/resource-metrics/no-metrics.d.ts +1 -0
- package/dist/src/renderer/components/switch/form-switcher.d.ts +1 -0
- package/dist/src/renderer/components/table/table-cell.d.ts +0 -4
- package/dist/src/renderer/{app-paths/get-value-from-registered-channel/ipc-renderer → utils/channel}/ipc-renderer.injectable.d.ts +0 -0
- package/dist/src/renderer/utils/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/src/common/app-paths/directory-for-bundled-binaries/directory-for-bundled-binaries.injectable.d.ts +0 -2
- package/dist/src/common/ipc/update-available.d.ts +0 -19
- package/dist/src/common/ipc-channel/create-channel/create-channel.d.ts +0 -6
- package/dist/src/renderer/utils/display-booleans.d.ts +0 -6
@@ -1,4 +1,3 @@
|
|
1
1
|
import type { PathName } from "./app-path-names";
|
2
2
|
export declare type AppPaths = Record<PathName, string>;
|
3
3
|
export declare const appPathsInjectionToken: import("@ogre-tools/injectable").InjectionToken<AppPaths, void>;
|
4
|
-
export declare const appPathsIpcChannel: import("../ipc-channel/channel").Channel<AppPaths>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { IComputedValue } from "mobx";
|
2
|
+
import type { UpdateChannel, UpdateChannelId } from "../update-channels";
|
3
|
+
export interface SelectedUpdateChannel {
|
4
|
+
value: IComputedValue<UpdateChannel>;
|
5
|
+
setValue: (channelId?: UpdateChannelId) => void;
|
6
|
+
}
|
7
|
+
declare const selectedUpdateChannelInjectable: import("@ogre-tools/injectable").Injectable<SelectedUpdateChannel, unknown, void>;
|
8
|
+
export default selectedUpdateChannelInjectable;
|
@@ -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
|
+
export declare type UpdateChannelId = "alpha" | "beta" | "latest";
|
6
|
+
export declare const updateChannels: Record<UpdateChannelId, UpdateChannel>;
|
7
|
+
export interface UpdateChannel {
|
8
|
+
readonly id: UpdateChannelId;
|
9
|
+
readonly label: string;
|
10
|
+
readonly moreStableUpdateChannel: UpdateChannel | null;
|
11
|
+
}
|
@@ -6,11 +6,13 @@ import type { BaseKubeObjectCondition, KubeObjectScope } from "../kube-object";
|
|
6
6
|
import { KubeObject } from "../kube-object";
|
7
7
|
import type { DerivedKubeApiOptions } from "../kube-api";
|
8
8
|
import { KubeApi } from "../kube-api";
|
9
|
+
import type { JSONSchemaProps } from "./types/json-schema-props";
|
9
10
|
interface AdditionalPrinterColumnsCommon {
|
10
11
|
name: string;
|
11
12
|
type: "integer" | "number" | "string" | "boolean" | "date";
|
12
|
-
priority
|
13
|
-
|
13
|
+
priority?: number;
|
14
|
+
format?: "int32" | "int64" | "float" | "double" | "byte" | "binary" | "date" | "date-time" | "password";
|
15
|
+
description?: string;
|
14
16
|
}
|
15
17
|
export declare type AdditionalPrinterColumnsV1 = AdditionalPrinterColumnsCommon & {
|
16
18
|
jsonPath: string;
|
@@ -18,11 +20,14 @@ export declare type AdditionalPrinterColumnsV1 = AdditionalPrinterColumnsCommon
|
|
18
20
|
declare type AdditionalPrinterColumnsV1Beta = AdditionalPrinterColumnsCommon & {
|
19
21
|
JSONPath: string;
|
20
22
|
};
|
23
|
+
export interface CustomResourceValidation {
|
24
|
+
openAPIV3Schema?: JSONSchemaProps;
|
25
|
+
}
|
21
26
|
export interface CustomResourceDefinitionVersion {
|
22
27
|
name: string;
|
23
28
|
served: boolean;
|
24
29
|
storage: boolean;
|
25
|
-
schema?:
|
30
|
+
schema?: CustomResourceValidation;
|
26
31
|
additionalPrinterColumns?: AdditionalPrinterColumnsV1[];
|
27
32
|
}
|
28
33
|
export interface CustomResourceDefinitionNames {
|
@@ -2,7 +2,7 @@
|
|
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 interface
|
6
|
-
|
7
|
-
|
5
|
+
export interface ExternalDocumentation {
|
6
|
+
description?: string;
|
7
|
+
url?: string;
|
8
8
|
}
|
@@ -0,0 +1,86 @@
|
|
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 { JsonValue } from "type-fest";
|
6
|
+
import type { ExternalDocumentation } from "./external-documentation";
|
7
|
+
export interface JSONSchemaProps {
|
8
|
+
$ref?: string;
|
9
|
+
$schema?: string;
|
10
|
+
additionalItems?: JSONSchemaProps | boolean;
|
11
|
+
additionalProperties?: JSONSchemaProps | boolean;
|
12
|
+
allOf?: JSONSchemaProps[];
|
13
|
+
anyOf?: JSONSchemaProps[];
|
14
|
+
/**
|
15
|
+
* default is a default value for undefined object fields.
|
16
|
+
* Defaulting is a beta feature under the CustomResourceDefaulting feature gate.
|
17
|
+
* Defaulting requires spec.preserveUnknownFields to be false.
|
18
|
+
*/
|
19
|
+
_default?: object;
|
20
|
+
definitions?: Partial<Record<string, JSONSchemaProps>>;
|
21
|
+
dependencies?: Partial<Record<string, object>>;
|
22
|
+
description?: string;
|
23
|
+
_enum?: object[];
|
24
|
+
example?: JsonValue;
|
25
|
+
exclusiveMaximum?: boolean;
|
26
|
+
exclusiveMinimum?: boolean;
|
27
|
+
externalDocs?: ExternalDocumentation;
|
28
|
+
/**
|
29
|
+
* format is an OpenAPI v3 format string.
|
30
|
+
* Unknown formats are ignored.
|
31
|
+
*
|
32
|
+
* The following formats are validated:
|
33
|
+
* - bsonobjectid: a bson object ID, i.e. a 24 characters hex string
|
34
|
+
* - uri: an URI as parsed by Golang net/url.ParseRequestURI
|
35
|
+
* - email: an email address as parsed by Golang net/mail.ParseAddress
|
36
|
+
* - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
|
37
|
+
* - ipv4: an IPv4 IP as parsed by Golang net.ParseIP
|
38
|
+
* - ipv6: an IPv6 IP as parsed by Golang net.ParseIP
|
39
|
+
* - cidr: a CIDR as parsed by Golang net.ParseCIDR
|
40
|
+
* - mac: a MAC address as parsed by Golang net.ParseMAC
|
41
|
+
* - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
|
42
|
+
* - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$
|
43
|
+
* - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
|
44
|
+
* - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$
|
45
|
+
* - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041"
|
46
|
+
* - isbn10: an ISBN10 number string like "0321751043"
|
47
|
+
* - isbn13: an ISBN13 number string like "978-0321751041"
|
48
|
+
* - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in
|
49
|
+
* - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$
|
50
|
+
* - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
|
51
|
+
* - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559"
|
52
|
+
* - byte: base64 encoded binary data
|
53
|
+
* - password: any kind of string
|
54
|
+
* - date: a date string like "2006-01-02" as defined by full-date in RFC3339
|
55
|
+
* - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format
|
56
|
+
* - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
|
57
|
+
*/
|
58
|
+
format?: string;
|
59
|
+
id?: string;
|
60
|
+
items?: JSONSchemaProps | JSONSchemaProps[];
|
61
|
+
maxItems?: number;
|
62
|
+
maxLength?: number;
|
63
|
+
maxProperties?: number;
|
64
|
+
maximum?: number;
|
65
|
+
minItems?: number;
|
66
|
+
minLength?: number;
|
67
|
+
minProperties?: number;
|
68
|
+
minimum?: number;
|
69
|
+
multipleOf?: number;
|
70
|
+
not?: JSONSchemaProps;
|
71
|
+
nullable?: boolean;
|
72
|
+
oneOf?: JSONSchemaProps[];
|
73
|
+
pattern?: string;
|
74
|
+
patternProperties?: Partial<Record<string, JSONSchemaProps>>;
|
75
|
+
properties?: Partial<Record<string, JSONSchemaProps>>;
|
76
|
+
required?: Array<string>;
|
77
|
+
title?: string;
|
78
|
+
type?: string;
|
79
|
+
uniqueItems?: boolean;
|
80
|
+
x_kubernetes_embedded_resource?: boolean;
|
81
|
+
x_kubernetes_int_or_string?: boolean;
|
82
|
+
x_kubernetes_list_map_keys?: string[];
|
83
|
+
x_kubernetes_list_type?: string;
|
84
|
+
x_kubernetes_map_type?: string;
|
85
|
+
x_kubernetes_preserve_unknown_fields?: boolean;
|
86
|
+
}
|
@@ -33,11 +33,6 @@ export interface DownloadMirror {
|
|
33
33
|
}
|
34
34
|
export declare const defaultPackageMirror = "default";
|
35
35
|
export declare const packageMirrors: Map<string, DownloadMirror>;
|
36
|
-
export interface UpdateChannelInfo {
|
37
|
-
label: string;
|
38
|
-
}
|
39
|
-
export declare const updateChannels: import("type-fest/source/readonly-deep").ReadonlyMapDeep<string, UpdateChannelInfo>;
|
40
|
-
export declare const defaultUpdateChannel: string;
|
41
36
|
export declare type ExtensionRegistryLocation = "default" | "npmrc" | "custom";
|
42
37
|
export declare type ExtensionRegistry = {
|
43
38
|
location: "default" | "npmrc";
|
@@ -55,6 +50,8 @@ export declare type UserStoreFlatModel = {
|
|
55
50
|
};
|
56
51
|
export declare type UserPreferencesModel = {
|
57
52
|
[field in keyof typeof DESCRIPTORS]: PreferencesModelType<field>;
|
53
|
+
} & {
|
54
|
+
updateChannel: string;
|
58
55
|
};
|
59
56
|
export declare const DESCRIPTORS: {
|
60
57
|
httpsProxy: PreferenceDescription<string | undefined, string | undefined>;
|
@@ -74,7 +71,6 @@ export declare const DESCRIPTORS: {
|
|
74
71
|
editorConfiguration: PreferenceDescription<Partial<Required<BaseEditorConfiguration>> | undefined, Required<BaseEditorConfiguration>>;
|
75
72
|
terminalCopyOnSelect: PreferenceDescription<boolean, boolean>;
|
76
73
|
terminalConfig: PreferenceDescription<TerminalConfig, TerminalConfig>;
|
77
|
-
updateChannel: PreferenceDescription<string, string>;
|
78
74
|
extensionRegistryUrl: PreferenceDescription<ExtensionRegistry, ExtensionRegistry>;
|
79
75
|
};
|
80
76
|
export {};
|
@@ -5,13 +5,18 @@
|
|
5
5
|
import { BaseStore } from "../base-store";
|
6
6
|
import { DESCRIPTORS } from "./preferences-helpers";
|
7
7
|
import type { UserPreferencesModel, StoreType } from "./preferences-helpers";
|
8
|
+
import type { SelectedUpdateChannel } from "../application-update/selected-update-channel/selected-update-channel.injectable";
|
8
9
|
export interface UserStoreModel {
|
9
10
|
lastSeenAppVersion: string;
|
10
11
|
preferences: UserPreferencesModel;
|
11
12
|
}
|
13
|
+
interface Dependencies {
|
14
|
+
selectedUpdateChannel: SelectedUpdateChannel;
|
15
|
+
}
|
12
16
|
export declare class UserStore extends BaseStore<UserStoreModel> {
|
17
|
+
private readonly dependencies;
|
13
18
|
readonly displayName = "UserStore";
|
14
|
-
constructor();
|
19
|
+
constructor(dependencies: Dependencies);
|
15
20
|
lastSeenAppVersion: string;
|
16
21
|
/**
|
17
22
|
* used in add-cluster page for providing context
|
@@ -38,7 +43,6 @@ export declare class UserStore extends BaseStore<UserStoreModel> {
|
|
38
43
|
kubectlBinariesPath: StoreType<typeof DESCRIPTORS["kubectlBinariesPath"]>;
|
39
44
|
terminalCopyOnSelect: StoreType<typeof DESCRIPTORS["terminalCopyOnSelect"]>;
|
40
45
|
terminalConfig: StoreType<typeof DESCRIPTORS["terminalConfig"]>;
|
41
|
-
updateChannel: StoreType<typeof DESCRIPTORS["updateChannel"]>;
|
42
46
|
extensionRegistryUrl: StoreType<typeof DESCRIPTORS["extensionRegistryUrl"]>;
|
43
47
|
/**
|
44
48
|
* Download kubectl binaries matching cluster version
|
@@ -63,7 +67,6 @@ export declare class UserStore extends BaseStore<UserStoreModel> {
|
|
63
67
|
syncKubeconfigEntries: StoreType<typeof DESCRIPTORS["syncKubeconfigEntries"]>;
|
64
68
|
get isNewVersion(): boolean;
|
65
69
|
get resolvedShell(): string | undefined;
|
66
|
-
get isAllowedToDowngrade(): boolean;
|
67
70
|
startMainReactions(): void;
|
68
71
|
/**
|
69
72
|
* Checks if a column (by ID) for a table (by ID) is configured to be hidden
|
@@ -81,3 +84,4 @@ export declare class UserStore extends BaseStore<UserStoreModel> {
|
|
81
84
|
protected fromStore({ lastSeenAppVersion, preferences }?: Partial<UserStoreModel>): void;
|
82
85
|
toJSON(): UserStoreModel;
|
83
86
|
}
|
87
|
+
export {};
|
@@ -0,0 +1,349 @@
|
|
1
|
+
declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable<{
|
2
|
+
name: string;
|
3
|
+
productName: string;
|
4
|
+
description: string;
|
5
|
+
homepage: string;
|
6
|
+
version: string;
|
7
|
+
main: string;
|
8
|
+
copyright: string;
|
9
|
+
license: string;
|
10
|
+
author: {
|
11
|
+
name: string;
|
12
|
+
email: string;
|
13
|
+
};
|
14
|
+
scripts: {
|
15
|
+
dev: string;
|
16
|
+
"dev-build": string;
|
17
|
+
"debug-build": string;
|
18
|
+
"dev-run": string;
|
19
|
+
"dev:main": string;
|
20
|
+
"dev:renderer": string;
|
21
|
+
compile: string;
|
22
|
+
"compile:main": string;
|
23
|
+
"compile:renderer": string;
|
24
|
+
"compile:extension-types": string;
|
25
|
+
"npm:fix-build-version": string;
|
26
|
+
"npm:fix-package-version": string;
|
27
|
+
"build:linux": string;
|
28
|
+
"build:mac": string;
|
29
|
+
"build:win": string;
|
30
|
+
integration: string;
|
31
|
+
"test:unit": string;
|
32
|
+
"test:integration": string;
|
33
|
+
dist: string;
|
34
|
+
"dist:dir": string;
|
35
|
+
"download:binaries": string;
|
36
|
+
"build:tray-icons": string;
|
37
|
+
"build:theme-vars": string;
|
38
|
+
lint: string;
|
39
|
+
"lint:fix": string;
|
40
|
+
"mkdocs-serve-local": string;
|
41
|
+
"verify-docs": string;
|
42
|
+
"typedocs-extensions-api": string;
|
43
|
+
"version-checkout": string;
|
44
|
+
"version-commit": string;
|
45
|
+
version: string;
|
46
|
+
postversion: string;
|
47
|
+
};
|
48
|
+
config: {
|
49
|
+
k8sProxyVersion: string;
|
50
|
+
bundledKubectlVersion: string;
|
51
|
+
bundledHelmVersion: string;
|
52
|
+
sentryDsn: string;
|
53
|
+
};
|
54
|
+
engines: {
|
55
|
+
node: string;
|
56
|
+
};
|
57
|
+
jest: {
|
58
|
+
collectCoverage: boolean;
|
59
|
+
verbose: boolean;
|
60
|
+
transform: {
|
61
|
+
"^.+\\.tsx?$": string;
|
62
|
+
};
|
63
|
+
moduleNameMapper: {
|
64
|
+
"\\.(css|scss)$": string;
|
65
|
+
"\\.(svg|png|jpg|eot|woff2?|ttf)$": string;
|
66
|
+
};
|
67
|
+
modulePathIgnorePatterns: string[];
|
68
|
+
setupFiles: string[];
|
69
|
+
setupFilesAfterEnv: string[];
|
70
|
+
globals: {
|
71
|
+
"ts-jest": {
|
72
|
+
isolatedModules: boolean;
|
73
|
+
};
|
74
|
+
};
|
75
|
+
};
|
76
|
+
build: {
|
77
|
+
generateUpdatesFilesForAllChannels: boolean;
|
78
|
+
files: string[];
|
79
|
+
afterSign: string;
|
80
|
+
extraResources: (string | {
|
81
|
+
from: string;
|
82
|
+
to: string;
|
83
|
+
filter: string;
|
84
|
+
} | {
|
85
|
+
from: string;
|
86
|
+
to: string;
|
87
|
+
filter: string[];
|
88
|
+
})[];
|
89
|
+
linux: {
|
90
|
+
category: string;
|
91
|
+
artifactName: string;
|
92
|
+
target: string[];
|
93
|
+
extraResources: {
|
94
|
+
from: string;
|
95
|
+
to: string;
|
96
|
+
}[];
|
97
|
+
};
|
98
|
+
rpm: {
|
99
|
+
fpm: string[];
|
100
|
+
};
|
101
|
+
mac: {
|
102
|
+
hardenedRuntime: boolean;
|
103
|
+
gatekeeperAssess: boolean;
|
104
|
+
entitlements: string;
|
105
|
+
entitlementsInherit: string;
|
106
|
+
extraResources: {
|
107
|
+
from: string;
|
108
|
+
to: string;
|
109
|
+
}[];
|
110
|
+
};
|
111
|
+
win: {
|
112
|
+
target: string[];
|
113
|
+
extraResources: {
|
114
|
+
from: string;
|
115
|
+
to: string;
|
116
|
+
}[];
|
117
|
+
};
|
118
|
+
nsis: {
|
119
|
+
include: string;
|
120
|
+
oneClick: boolean;
|
121
|
+
allowElevation: boolean;
|
122
|
+
createStartMenuShortcut: boolean;
|
123
|
+
allowToChangeInstallationDirectory: boolean;
|
124
|
+
};
|
125
|
+
protocols: {
|
126
|
+
name: string;
|
127
|
+
schemes: string[];
|
128
|
+
role: string;
|
129
|
+
};
|
130
|
+
};
|
131
|
+
dependencies: {
|
132
|
+
"@astronautlabs/jsonpath": string;
|
133
|
+
"@hapi/call": string;
|
134
|
+
"@hapi/subtext": string;
|
135
|
+
"@kubernetes/client-node": string;
|
136
|
+
"@material-ui/styles": string;
|
137
|
+
"@ogre-tools/injectable": string;
|
138
|
+
"@ogre-tools/injectable-react": string;
|
139
|
+
"@ogre-tools/fp": string;
|
140
|
+
"@ogre-tools/injectable-extension-for-auto-registration": string;
|
141
|
+
"@sentry/electron": string;
|
142
|
+
"@sentry/integrations": string;
|
143
|
+
"@types/circular-dependency-plugin": string;
|
144
|
+
"abort-controller": string;
|
145
|
+
"auto-bind": string;
|
146
|
+
"await-lock": string;
|
147
|
+
byline: string;
|
148
|
+
chokidar: string;
|
149
|
+
conf: string;
|
150
|
+
"crypto-js": string;
|
151
|
+
"electron-devtools-installer": string;
|
152
|
+
"electron-updater": string;
|
153
|
+
"electron-window-state": string;
|
154
|
+
filehound: string;
|
155
|
+
"fs-extra": string;
|
156
|
+
"glob-to-regexp": string;
|
157
|
+
got: string;
|
158
|
+
"grapheme-splitter": string;
|
159
|
+
handlebars: string;
|
160
|
+
history: string;
|
161
|
+
"http-proxy": string;
|
162
|
+
immer: string;
|
163
|
+
joi: string;
|
164
|
+
"js-yaml": string;
|
165
|
+
jsdom: string;
|
166
|
+
lodash: string;
|
167
|
+
"mac-ca": string;
|
168
|
+
marked: string;
|
169
|
+
"md5-file": string;
|
170
|
+
mobx: string;
|
171
|
+
"mobx-observable-history": string;
|
172
|
+
"mobx-react": string;
|
173
|
+
"mobx-utils": string;
|
174
|
+
"mock-fs": string;
|
175
|
+
moment: string;
|
176
|
+
"moment-timezone": string;
|
177
|
+
"monaco-editor": string;
|
178
|
+
"monaco-editor-webpack-plugin": string;
|
179
|
+
"node-fetch": string;
|
180
|
+
"node-pty": string;
|
181
|
+
npm: string;
|
182
|
+
"p-limit": string;
|
183
|
+
"path-to-regexp": string;
|
184
|
+
"proper-lockfile": string;
|
185
|
+
react: string;
|
186
|
+
"react-dom": string;
|
187
|
+
"react-material-ui-carousel": string;
|
188
|
+
"react-router": string;
|
189
|
+
"react-virtualized-auto-sizer": string;
|
190
|
+
"readable-stream": string;
|
191
|
+
request: string;
|
192
|
+
"request-promise-native": string;
|
193
|
+
rfc6902: string;
|
194
|
+
selfsigned: string;
|
195
|
+
semver: string;
|
196
|
+
"shell-env": string;
|
197
|
+
spdy: string;
|
198
|
+
tar: string;
|
199
|
+
"tcp-port-used": string;
|
200
|
+
tempy: string;
|
201
|
+
"typed-regex": string;
|
202
|
+
"url-parse": string;
|
203
|
+
uuid: string;
|
204
|
+
"win-ca": string;
|
205
|
+
winston: string;
|
206
|
+
"winston-console-format": string;
|
207
|
+
"winston-transport-browserconsole": string;
|
208
|
+
ws: string;
|
209
|
+
};
|
210
|
+
devDependencies: {
|
211
|
+
"@async-fn/jest": string;
|
212
|
+
"@material-ui/core": string;
|
213
|
+
"@material-ui/icons": string;
|
214
|
+
"@material-ui/lab": string;
|
215
|
+
"@pmmmwh/react-refresh-webpack-plugin": string;
|
216
|
+
"@sentry/types": string;
|
217
|
+
"@testing-library/dom": string;
|
218
|
+
"@testing-library/jest-dom": string;
|
219
|
+
"@testing-library/react": string;
|
220
|
+
"@testing-library/user-event": string;
|
221
|
+
"@types/byline": string;
|
222
|
+
"@types/chart.js": string;
|
223
|
+
"@types/circular-dependency-plugin": string;
|
224
|
+
"@types/cli-progress": string;
|
225
|
+
"@types/color": string;
|
226
|
+
"@types/command-line-args": string;
|
227
|
+
"@types/crypto-js": string;
|
228
|
+
"@types/dompurify": string;
|
229
|
+
"@types/electron-devtools-installer": string;
|
230
|
+
"@types/fs-extra": string;
|
231
|
+
"@types/glob-to-regexp": string;
|
232
|
+
"@types/gunzip-maybe": string;
|
233
|
+
"@types/html-webpack-plugin": string;
|
234
|
+
"@types/http-proxy": string;
|
235
|
+
"@types/jest": string;
|
236
|
+
"@types/js-yaml": string;
|
237
|
+
"@types/jsdom": string;
|
238
|
+
"@types/lodash": string;
|
239
|
+
"@types/marked": string;
|
240
|
+
"@types/md5-file": string;
|
241
|
+
"@types/mini-css-extract-plugin": string;
|
242
|
+
"@types/mock-fs": string;
|
243
|
+
"@types/node": string;
|
244
|
+
"@types/node-fetch": string;
|
245
|
+
"@types/npm": string;
|
246
|
+
"@types/proper-lockfile": string;
|
247
|
+
"@types/randomcolor": string;
|
248
|
+
"@types/react": string;
|
249
|
+
"@types/react-beautiful-dnd": string;
|
250
|
+
"@types/react-dom": string;
|
251
|
+
"@types/react-router": string;
|
252
|
+
"@types/react-router-dom": string;
|
253
|
+
"@types/react-table": string;
|
254
|
+
"@types/react-virtualized-auto-sizer": string;
|
255
|
+
"@types/react-window": string;
|
256
|
+
"@types/readable-stream": string;
|
257
|
+
"@types/request": string;
|
258
|
+
"@types/request-promise-native": string;
|
259
|
+
"@types/semver": string;
|
260
|
+
"@types/sharp": string;
|
261
|
+
"@types/spdy": string;
|
262
|
+
"@types/tar": string;
|
263
|
+
"@types/tar-stream": string;
|
264
|
+
"@types/tcp-port-used": string;
|
265
|
+
"@types/tempy": string;
|
266
|
+
"@types/triple-beam": string;
|
267
|
+
"@types/url-parse": string;
|
268
|
+
"@types/uuid": string;
|
269
|
+
"@types/webpack": string;
|
270
|
+
"@types/webpack-dev-server": string;
|
271
|
+
"@types/webpack-env": string;
|
272
|
+
"@types/webpack-node-externals": string;
|
273
|
+
"@typescript-eslint/eslint-plugin": string;
|
274
|
+
"@typescript-eslint/parser": string;
|
275
|
+
ansi_up: string;
|
276
|
+
"chart.js": string;
|
277
|
+
"circular-dependency-plugin": string;
|
278
|
+
"cli-progress": string;
|
279
|
+
color: string;
|
280
|
+
"command-line-args": string;
|
281
|
+
concurrently: string;
|
282
|
+
"css-loader": string;
|
283
|
+
deepdash: string;
|
284
|
+
dompurify: string;
|
285
|
+
electron: string;
|
286
|
+
"electron-builder": string;
|
287
|
+
"electron-notarize": string;
|
288
|
+
esbuild: string;
|
289
|
+
"esbuild-loader": string;
|
290
|
+
eslint: string;
|
291
|
+
"eslint-plugin-header": string;
|
292
|
+
"eslint-plugin-import": string;
|
293
|
+
"eslint-plugin-react": string;
|
294
|
+
"eslint-plugin-react-hooks": string;
|
295
|
+
"eslint-plugin-unused-imports": string;
|
296
|
+
"flex.box": string;
|
297
|
+
"fork-ts-checker-webpack-plugin": string;
|
298
|
+
"gunzip-maybe": string;
|
299
|
+
"html-webpack-plugin": string;
|
300
|
+
"identity-obj-proxy": string;
|
301
|
+
"ignore-loader": string;
|
302
|
+
"include-media": string;
|
303
|
+
jest: string;
|
304
|
+
"jest-canvas-mock": string;
|
305
|
+
"jest-fetch-mock": string;
|
306
|
+
"jest-mock-extended": string;
|
307
|
+
"make-plural": string;
|
308
|
+
"mini-css-extract-plugin": string;
|
309
|
+
"mock-http": string;
|
310
|
+
"node-gyp": string;
|
311
|
+
"node-loader": string;
|
312
|
+
nodemon: string;
|
313
|
+
playwright: string;
|
314
|
+
postcss: string;
|
315
|
+
"postcss-loader": string;
|
316
|
+
randomcolor: string;
|
317
|
+
"react-beautiful-dnd": string;
|
318
|
+
"react-refresh": string;
|
319
|
+
"react-refresh-typescript": string;
|
320
|
+
"react-router-dom": string;
|
321
|
+
"react-select": string;
|
322
|
+
"react-select-event": string;
|
323
|
+
"react-table": string;
|
324
|
+
"react-window": string;
|
325
|
+
sass: string;
|
326
|
+
"sass-loader": string;
|
327
|
+
sharp: string;
|
328
|
+
"style-loader": string;
|
329
|
+
tailwindcss: string;
|
330
|
+
"tar-stream": string;
|
331
|
+
"ts-jest": string;
|
332
|
+
"ts-loader": string;
|
333
|
+
"ts-node": string;
|
334
|
+
"type-fest": string;
|
335
|
+
"typed-emitter": string;
|
336
|
+
typedoc: string;
|
337
|
+
"typedoc-plugin-markdown": string;
|
338
|
+
"typeface-roboto": string;
|
339
|
+
typescript: string;
|
340
|
+
"typescript-plugin-css-modules": string;
|
341
|
+
webpack: string;
|
342
|
+
"webpack-cli": string;
|
343
|
+
"webpack-dev-server": string;
|
344
|
+
"webpack-node-externals": string;
|
345
|
+
xterm: string;
|
346
|
+
"xterm-addon-fit": string;
|
347
|
+
};
|
348
|
+
}, unknown, void>;
|
349
|
+
export default packageJsonInjectable;
|
@@ -30,7 +30,6 @@ export declare const isProduction: boolean;
|
|
30
30
|
* @deprecated Switch to using isDevelopmentInjectable
|
31
31
|
*/
|
32
32
|
export declare const isDevelopment: boolean;
|
33
|
-
export declare const isPublishConfigured: boolean;
|
34
33
|
export declare const productName: string;
|
35
34
|
/**
|
36
35
|
* @deprecated Switch to using appNameInjectable
|
@@ -41,7 +40,13 @@ export declare const defaultThemeId: ThemeId;
|
|
41
40
|
export declare const defaultFontSize = 12;
|
42
41
|
export declare const defaultTerminalFontFamily = "RobotoMono";
|
43
42
|
export declare const defaultEditorFontFamily = "RobotoMono";
|
43
|
+
/**
|
44
|
+
* @deprecated use `di.inject(normalizedPlatformInjectable)` instead
|
45
|
+
*/
|
44
46
|
export declare const normalizedPlatform: string;
|
47
|
+
/**
|
48
|
+
* @deprecated use `di.inject(bundledBinariesNormalizedArchInjectable)` instead
|
49
|
+
*/
|
45
50
|
export declare const normalizedArch: string;
|
46
51
|
export declare function getBinaryName(name: string, { forPlatform }?: {
|
47
52
|
forPlatform?: string | undefined;
|
@@ -62,14 +67,6 @@ export declare const helmBinaryName: string;
|
|
62
67
|
* @deprecated for being explicit side effect.
|
63
68
|
*/
|
64
69
|
export declare const helmBinaryPath: import("./utils/lazy-initialized").LazyInitialized<string>;
|
65
|
-
/**
|
66
|
-
* @deprecated for being explicit side effect.
|
67
|
-
*/
|
68
|
-
export declare const kubectlBinaryName: string;
|
69
|
-
/**
|
70
|
-
* @deprecated for being explicit side effect.
|
71
|
-
*/
|
72
|
-
export declare const kubectlBinaryPath: import("./utils/lazy-initialized").LazyInitialized<string>;
|
73
70
|
export declare const apiPrefix = "/api";
|
74
71
|
export declare const apiKubePrefix = "/api-kube";
|
75
72
|
export declare const issuesTrackerUrl: string;
|
@@ -2,24 +2,29 @@
|
|
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
|
-
interface
|
6
|
-
directoryForKubectlBinaries: string;
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
5
|
+
export interface KubectlDependencies {
|
6
|
+
readonly directoryForKubectlBinaries: string;
|
7
|
+
readonly normalizedDownloadPlatform: "darwin" | "linux" | "windows";
|
8
|
+
readonly normalizedDownloadArch: "amd64" | "arm64" | "386";
|
9
|
+
readonly kubectlBinaryName: string;
|
10
|
+
readonly bundledKubectlBinaryPath: string;
|
11
|
+
readonly baseBundeledBinariesDirectory: string;
|
12
|
+
readonly userStore: {
|
13
|
+
readonly kubectlBinariesPath?: string;
|
14
|
+
readonly downloadBinariesPath?: string;
|
15
|
+
readonly downloadKubectlBinaries: boolean;
|
16
|
+
readonly downloadMirror: string;
|
12
17
|
};
|
13
18
|
}
|
14
19
|
export declare class Kubectl {
|
15
|
-
|
16
|
-
kubectlVersion: string;
|
17
|
-
protected url: string;
|
18
|
-
protected path: string;
|
19
|
-
protected dirname: string;
|
20
|
+
protected readonly dependencies: KubectlDependencies;
|
21
|
+
readonly kubectlVersion: string;
|
22
|
+
protected readonly url: string;
|
23
|
+
protected readonly path: string;
|
24
|
+
protected readonly dirname: string;
|
20
25
|
static readonly bundledKubectlVersion: string;
|
21
26
|
static invalidBundle: boolean;
|
22
|
-
constructor(dependencies:
|
27
|
+
constructor(dependencies: KubectlDependencies, clusterVersion: string);
|
23
28
|
getBundledPath(): string;
|
24
29
|
getPathFromPreferences(): string;
|
25
30
|
protected getDownloadDir(): string;
|
@@ -32,4 +37,3 @@ export declare class Kubectl {
|
|
32
37
|
protected writeInitScripts(): Promise<void>;
|
33
38
|
protected getDownloadMirror(): string;
|
34
39
|
}
|
35
|
-
export {};
|
@@ -2,6 +2,6 @@ declare const applicationWindowInjectable: import("@ogre-tools/injectable").Inje
|
|
2
2
|
readonly visible: boolean;
|
3
3
|
show: () => Promise<void>;
|
4
4
|
close: () => void;
|
5
|
-
send: (args: import("./lens-window-injection-token").SendToViewArgs) =>
|
5
|
+
send: (args: import("./lens-window-injection-token").SendToViewArgs) => void;
|
6
6
|
}, import("./lens-window-injection-token").LensWindow, void>;
|
7
7
|
export default applicationWindowInjectable;
|
@@ -1,11 +1,19 @@
|
|
1
1
|
import type { LensWindow } from "./create-lens-window.injectable";
|
2
|
+
import type { RequireExactlyOne } from "type-fest";
|
2
3
|
export declare type ElectronWindowTitleBarStyle = "hiddenInset" | "hidden" | "default" | "customButtonsOnHover";
|
4
|
+
export interface FileSource {
|
5
|
+
file: string;
|
6
|
+
}
|
7
|
+
export interface UrlSource {
|
8
|
+
url: string;
|
9
|
+
}
|
10
|
+
export declare type ContentSource = RequireExactlyOne<FileSource & UrlSource>;
|
3
11
|
export interface ElectronWindowConfiguration {
|
4
12
|
id: string;
|
5
13
|
title: string;
|
6
14
|
defaultHeight: number;
|
7
15
|
defaultWidth: number;
|
8
|
-
|
16
|
+
getContentSource: () => ContentSource;
|
9
17
|
resizable: boolean;
|
10
18
|
windowFrameUtilitiesAreShown: boolean;
|
11
19
|
centered: boolean;
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import type { SendToViewArgs } from "./lens-window-injection-token";
|
2
|
-
import type { ElectronWindowTitleBarStyle } from "./create-electron-window-for.injectable";
|
2
|
+
import type { ContentSource, ElectronWindowTitleBarStyle } from "./create-electron-window-for.injectable";
|
3
3
|
export interface LensWindow {
|
4
4
|
show: () => void;
|
5
5
|
close: () => void;
|
6
6
|
send: (args: SendToViewArgs) => void;
|
7
7
|
}
|
8
|
-
interface LensWindowConfiguration {
|
8
|
+
export interface LensWindowConfiguration {
|
9
9
|
id: string;
|
10
10
|
title: string;
|
11
11
|
defaultHeight: number;
|
12
12
|
defaultWidth: number;
|
13
|
-
|
13
|
+
getContentSource: () => ContentSource;
|
14
14
|
resizable: boolean;
|
15
15
|
windowFrameUtilitiesAreShown: boolean;
|
16
16
|
centered: boolean;
|
@@ -24,6 +24,6 @@ declare const createLensWindowInjectable: import("@ogre-tools/injectable").Injec
|
|
24
24
|
readonly visible: boolean;
|
25
25
|
show: () => Promise<void>;
|
26
26
|
close: () => void;
|
27
|
-
send: (args: SendToViewArgs) =>
|
27
|
+
send: (args: SendToViewArgs) => void;
|
28
28
|
}, unknown, void>;
|
29
29
|
export default createLensWindowInjectable;
|
@@ -7,7 +7,7 @@ export interface SendToViewArgs {
|
|
7
7
|
export interface LensWindow {
|
8
8
|
show: () => Promise<void>;
|
9
9
|
close: () => void;
|
10
|
-
send: (args: SendToViewArgs) =>
|
10
|
+
send: (args: SendToViewArgs) => void;
|
11
11
|
visible: boolean;
|
12
12
|
}
|
13
13
|
export declare const lensWindowInjectionToken: import("@ogre-tools/injectable").InjectionToken<LensWindow, void>;
|
package/dist/src/main/start-main-application/lens-window/splash-window/splash-window.injectable.d.ts
CHANGED
@@ -2,6 +2,6 @@ declare const splashWindowInjectable: import("@ogre-tools/injectable").Injectabl
|
|
2
2
|
readonly visible: boolean;
|
3
3
|
show: () => Promise<void>;
|
4
4
|
close: () => void;
|
5
|
-
send: (args: import("../application-window/lens-window-injection-token").SendToViewArgs) =>
|
5
|
+
send: (args: import("../application-window/lens-window-injection-token").SendToViewArgs) => void;
|
6
6
|
}, import("../application-window/lens-window-injection-token").LensWindow, void>;
|
7
7
|
export default splashWindowInjectable;
|
package/dist/src/main/{app-paths/register-channel → utils/channel}/ipc-main/ipc-main.injectable.d.ts
RENAMED
File without changes
|
@@ -2,6 +2,7 @@
|
|
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
|
+
/// <reference types="react" />
|
5
6
|
import "./namespace-select.scss";
|
6
7
|
import type { SelectProps } from "../select";
|
7
8
|
export declare type NamespaceSelectSort = (left: string, right: string) => number;
|
package/dist/src/renderer/components/+user-management/+service-accounts/service-account-menu.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import type { KubeObjectMenuProps } from "../../kube-object-menu";
|
2
3
|
import type { ServiceAccount } from "../../../../common/k8s-api/endpoints";
|
3
4
|
export declare function ServiceAccountMenu(props: KubeObjectMenuProps<ServiceAccount>): JSX.Element;
|
@@ -14,4 +14,9 @@ export interface AnimateProps {
|
|
14
14
|
leaveDuration?: number;
|
15
15
|
children?: React.ReactNode;
|
16
16
|
}
|
17
|
-
|
17
|
+
interface Dependencies {
|
18
|
+
requestAnimationFrame: (callback: () => void) => void;
|
19
|
+
}
|
20
|
+
export declare const NonInjectedAnimate: (props: AnimateProps & Dependencies) => JSX.Element;
|
21
|
+
export declare const Animate: React.FunctionComponent<AnimateProps>;
|
22
|
+
export {};
|
@@ -2,6 +2,7 @@
|
|
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
|
+
/// <reference types="react" />
|
5
6
|
import type { DrawerItemProps } from "./drawer-item";
|
6
7
|
export interface DrawerItemLabelsProps extends DrawerItemProps {
|
7
8
|
labels: string[] | Partial<Record<string, string>>;
|
@@ -9,6 +9,11 @@ export interface DrawerItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
title?: string;
|
10
10
|
labelsOnly?: boolean;
|
11
11
|
hidden?: boolean;
|
12
|
-
|
12
|
+
/**
|
13
|
+
* @deprecated This prop is no longer used, you should stringify the booleans yourself.
|
14
|
+
*
|
15
|
+
* This was only meant to be an internal prop anyway.
|
16
|
+
*/
|
17
|
+
renderBooleans?: boolean;
|
13
18
|
}
|
14
|
-
export declare function DrawerItem({ name, title, labelsOnly, children, hidden, className,
|
19
|
+
export declare function DrawerItem({ name, title, labelsOnly, children, hidden, className, ...elemProps }: DrawerItemProps): JSX.Element | null;
|
@@ -2,6 +2,7 @@
|
|
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
|
+
/// <reference types="react" />
|
5
6
|
import type { IconProps } from "../icon";
|
6
7
|
import { FilterType } from "./page-filters/store";
|
7
8
|
export interface FilterIconProps extends Partial<IconProps> {
|
@@ -5,15 +5,10 @@
|
|
5
5
|
import "./notifications.scss";
|
6
6
|
import React from "react";
|
7
7
|
import type { Notification, NotificationMessage } from "./notifications.store";
|
8
|
-
export declare
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
componentDidMount(): void;
|
16
|
-
scrollToLastNotification(): void;
|
17
|
-
getMessage(notification: Notification): (React.ReactChild | React.ReactFragment | React.ReactPortal)[];
|
18
|
-
render(): JSX.Element;
|
19
|
-
}
|
8
|
+
export declare const Notifications: React.FC<{}> & {
|
9
|
+
ok: (message: NotificationMessage) => () => void;
|
10
|
+
checkedError: (message: unknown, fallback: string, customOpts?: Partial<Omit<Notification, "message">> | undefined) => () => void;
|
11
|
+
error: (message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">> | undefined) => () => void;
|
12
|
+
shortInfo: (message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">> | undefined) => () => void;
|
13
|
+
info: (message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">> | undefined) => () => void;
|
14
|
+
};
|
@@ -2,6 +2,7 @@
|
|
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
|
+
/// <reference types="react" />
|
5
6
|
import type { FormControlLabelProps } from "@material-ui/core/FormControlLabel";
|
6
7
|
/**
|
7
8
|
* @deprecated Use <Switch/> instead from "../switch.tsx".
|
@@ -32,10 +32,6 @@ export interface TableCellProps extends React.DOMAttributes<HTMLDivElement> {
|
|
32
32
|
* mark checkbox as checked or not
|
33
33
|
*/
|
34
34
|
isChecked?: boolean;
|
35
|
-
/**
|
36
|
-
* show "true" or "false" for all of the children elements are "typeof boolean"
|
37
|
-
*/
|
38
|
-
renderBoolean?: boolean;
|
39
35
|
/**
|
40
36
|
* column name, must be same as key in sortable object <Table sortable={}/>
|
41
37
|
*/
|
File without changes
|
@@ -6,7 +6,6 @@ export * from "../../common/utils";
|
|
6
6
|
export * from "../../common/event-emitter";
|
7
7
|
export * from "./cssNames";
|
8
8
|
export * from "./cssVar";
|
9
|
-
export * from "./display-booleans";
|
10
9
|
export * from "./display-mode";
|
11
10
|
export * from "./interval";
|
12
11
|
export * from "./isMiddleClick";
|
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": "5.6.0-git.
|
5
|
+
"version": "5.6.0-git.fba5892c8a.0",
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
7
7
|
"license": "MIT",
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
@@ -1,19 +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 { UpdateInfo } from "electron-updater";
|
6
|
-
export declare const UpdateAvailableChannel = "update-available";
|
7
|
-
export declare const AutoUpdateChecking = "auto-update:checking";
|
8
|
-
export declare const AutoUpdateNoUpdateAvailable = "auto-update:no-update";
|
9
|
-
export declare const AutoUpdateLogPrefix = "[UPDATE-CHECKER]";
|
10
|
-
export declare type UpdateAvailableFromMain = [backChannel: string, updateInfo: UpdateInfo];
|
11
|
-
export declare function areArgsUpdateAvailableFromMain(args: unknown[]): args is UpdateAvailableFromMain;
|
12
|
-
export declare type BackchannelArg = {
|
13
|
-
doUpdate: false;
|
14
|
-
} | {
|
15
|
-
doUpdate: true;
|
16
|
-
now: boolean;
|
17
|
-
};
|
18
|
-
export declare type UpdateAvailableToBackchannel = [updateDecision: BackchannelArg];
|
19
|
-
export declare function areArgsUpdateAvailableToBackchannel(args: unknown[]): args is UpdateAvailableToBackchannel;
|
@@ -1,6 +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 { Channel } from "../channel";
|
6
|
-
export declare const createChannel: <Message>(name: string) => Channel<Message>;
|
@@ -1,6 +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 React from "react";
|
6
|
-
export declare function displayBooleans(shouldShow: boolean | undefined, from: React.ReactNode): React.ReactNode;
|