@k8slens/extensions 5.6.0-git.e1c1e00a2b.0 → 5.6.0-git.ef6f4a5bfa.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/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/kube-api.d.ts +9 -0
- package/dist/src/common/terminal/channels.d.ts +28 -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/package-json.injectable.d.ts +349 -0
- package/dist/src/common/vars.d.ts +1 -1
- package/dist/src/main/app-paths/app-name/product-name.injectable.d.ts +2 -0
- 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-lens-window.injectable.d.ts +1 -1
- 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 -1
- package/dist/src/renderer/api/terminal-api.d.ts +2 -22
- package/dist/src/renderer/api/websocket-api.d.ts +4 -4
- 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/dock/terminal/terminal.d.ts +6 -3
- package/dist/src/renderer/components/drawer/drawer-title.d.ts +5 -1
- package/dist/src/renderer/components/input/input.d.ts +1 -1
- 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/select/select.d.ts +1 -1
- package/dist/src/renderer/{app-paths/get-value-from-registered-channel/ipc-renderer → utils/channel}/ipc-renderer.injectable.d.ts +0 -1
- package/package.json +1 -1
- package/dist/src/common/ipc/update-available.d.ts +0 -19
- package/dist/src/common/ipc-channel/channel.d.ts +0 -8
- package/dist/src/common/ipc-channel/create-channel/create-channel.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
|
+
}
|
@@ -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="node" />
|
5
6
|
import type { KubeObjectConstructor, KubeJsonApiDataFor, KubeObjectMetadata, KubeObjectScope } from "./kube-object";
|
6
7
|
import { KubeObject } from "./kube-object";
|
7
8
|
import type { IKubeWatchEvent } from "./kube-watch-event";
|
@@ -10,6 +11,7 @@ import { KubeJsonApi } from "./kube-json-api";
|
|
10
11
|
import type { Disposer } from "../utils";
|
11
12
|
import type { RequestInit } from "node-fetch";
|
12
13
|
import type AbortController from "abort-controller";
|
14
|
+
import { Agent } from "https";
|
13
15
|
import type { Patch } from "rfc6902";
|
14
16
|
import type { PartialDeep } from "type-fest";
|
15
17
|
/**
|
@@ -137,6 +139,13 @@ export interface IRemoteKubeApiConfig {
|
|
137
139
|
clientCertificateData?: string;
|
138
140
|
clientKeyData?: string;
|
139
141
|
};
|
142
|
+
/**
|
143
|
+
* Custom instance of https.agent to use for the requests
|
144
|
+
*
|
145
|
+
* @remarks the custom agent replaced default agent, options skipTLSVerify,
|
146
|
+
* clientCertificateData, clientKeyData and caData are ignored.
|
147
|
+
*/
|
148
|
+
agent?: Agent;
|
140
149
|
}
|
141
150
|
export declare function forCluster<Object extends KubeObject<any, any, KubeObjectScope>, Api extends KubeApi<Object>, Data extends KubeJsonApiDataFor<Object>>(cluster: ILocalKubeApiConfig, kubeClass: KubeObjectConstructor<Object, Data>, apiClass: new (apiOpts: KubeApiOptions<Object>) => Api): Api;
|
142
151
|
export declare function forCluster<Object extends KubeObject<any, any, KubeObjectScope>, Data extends KubeJsonApiDataFor<Object>>(cluster: ILocalKubeApiConfig, kubeClass: KubeObjectConstructor<Object, Data>, apiClass?: new (apiOpts: KubeApiOptions<Object>) => KubeApi<Object>): KubeApi<Object>;
|
@@ -0,0 +1,28 @@
|
|
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 enum TerminalChannels {
|
6
|
+
STDIN = "stdin",
|
7
|
+
STDOUT = "stdout",
|
8
|
+
CONNECTED = "connected",
|
9
|
+
RESIZE = "resize",
|
10
|
+
PING = "ping"
|
11
|
+
}
|
12
|
+
export declare type TerminalMessage = {
|
13
|
+
type: TerminalChannels.STDIN;
|
14
|
+
data: string;
|
15
|
+
} | {
|
16
|
+
type: TerminalChannels.STDOUT;
|
17
|
+
data: string;
|
18
|
+
} | {
|
19
|
+
type: TerminalChannels.CONNECTED;
|
20
|
+
} | {
|
21
|
+
type: TerminalChannels.RESIZE;
|
22
|
+
data: {
|
23
|
+
width: number;
|
24
|
+
height: number;
|
25
|
+
};
|
26
|
+
} | {
|
27
|
+
type: TerminalChannels.PING;
|
28
|
+
};
|
@@ -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
|
+
contentSecurityPolicy: string;
|
54
|
+
};
|
55
|
+
engines: {
|
56
|
+
node: string;
|
57
|
+
};
|
58
|
+
jest: {
|
59
|
+
collectCoverage: boolean;
|
60
|
+
verbose: boolean;
|
61
|
+
transform: {
|
62
|
+
"^.+\\.tsx?$": string;
|
63
|
+
};
|
64
|
+
moduleNameMapper: {
|
65
|
+
"\\.(css|scss)$": string;
|
66
|
+
"\\.(svg|png|jpg|eot|woff2?|ttf)$": string;
|
67
|
+
};
|
68
|
+
modulePathIgnorePatterns: string[];
|
69
|
+
setupFiles: string[];
|
70
|
+
setupFilesAfterEnv: string[];
|
71
|
+
globals: {
|
72
|
+
"ts-jest": {
|
73
|
+
isolatedModules: boolean;
|
74
|
+
};
|
75
|
+
};
|
76
|
+
};
|
77
|
+
build: {
|
78
|
+
generateUpdatesFilesForAllChannels: boolean;
|
79
|
+
files: string[];
|
80
|
+
afterSign: string;
|
81
|
+
extraResources: (string | {
|
82
|
+
from: string;
|
83
|
+
to: string;
|
84
|
+
filter: string;
|
85
|
+
} | {
|
86
|
+
from: string;
|
87
|
+
to: string;
|
88
|
+
filter: string[];
|
89
|
+
})[];
|
90
|
+
linux: {
|
91
|
+
category: string;
|
92
|
+
artifactName: string;
|
93
|
+
target: string[];
|
94
|
+
extraResources: {
|
95
|
+
from: string;
|
96
|
+
to: string;
|
97
|
+
}[];
|
98
|
+
};
|
99
|
+
rpm: {
|
100
|
+
fpm: string[];
|
101
|
+
};
|
102
|
+
mac: {
|
103
|
+
hardenedRuntime: boolean;
|
104
|
+
gatekeeperAssess: boolean;
|
105
|
+
entitlements: string;
|
106
|
+
entitlementsInherit: string;
|
107
|
+
extraResources: {
|
108
|
+
from: string;
|
109
|
+
to: string;
|
110
|
+
}[];
|
111
|
+
};
|
112
|
+
win: {
|
113
|
+
target: string[];
|
114
|
+
extraResources: {
|
115
|
+
from: string;
|
116
|
+
to: string;
|
117
|
+
}[];
|
118
|
+
};
|
119
|
+
nsis: {
|
120
|
+
include: string;
|
121
|
+
oneClick: boolean;
|
122
|
+
allowElevation: boolean;
|
123
|
+
createStartMenuShortcut: boolean;
|
124
|
+
allowToChangeInstallationDirectory: boolean;
|
125
|
+
};
|
126
|
+
protocols: {
|
127
|
+
name: string;
|
128
|
+
schemes: string[];
|
129
|
+
role: string;
|
130
|
+
};
|
131
|
+
};
|
132
|
+
dependencies: {
|
133
|
+
"@astronautlabs/jsonpath": string;
|
134
|
+
"@hapi/call": string;
|
135
|
+
"@hapi/subtext": string;
|
136
|
+
"@kubernetes/client-node": string;
|
137
|
+
"@material-ui/styles": string;
|
138
|
+
"@ogre-tools/injectable": string;
|
139
|
+
"@ogre-tools/injectable-react": string;
|
140
|
+
"@ogre-tools/fp": string;
|
141
|
+
"@ogre-tools/injectable-extension-for-auto-registration": string;
|
142
|
+
"@sentry/electron": string;
|
143
|
+
"@sentry/integrations": string;
|
144
|
+
"@types/circular-dependency-plugin": string;
|
145
|
+
"abort-controller": string;
|
146
|
+
"auto-bind": string;
|
147
|
+
"await-lock": string;
|
148
|
+
byline: string;
|
149
|
+
chokidar: string;
|
150
|
+
conf: string;
|
151
|
+
"crypto-js": string;
|
152
|
+
"electron-devtools-installer": string;
|
153
|
+
"electron-updater": string;
|
154
|
+
"electron-window-state": string;
|
155
|
+
filehound: string;
|
156
|
+
"fs-extra": string;
|
157
|
+
"glob-to-regexp": string;
|
158
|
+
got: string;
|
159
|
+
"grapheme-splitter": string;
|
160
|
+
handlebars: string;
|
161
|
+
history: string;
|
162
|
+
"http-proxy": string;
|
163
|
+
immer: string;
|
164
|
+
joi: string;
|
165
|
+
"js-yaml": string;
|
166
|
+
jsdom: string;
|
167
|
+
lodash: string;
|
168
|
+
"mac-ca": string;
|
169
|
+
marked: string;
|
170
|
+
"md5-file": string;
|
171
|
+
mobx: string;
|
172
|
+
"mobx-observable-history": string;
|
173
|
+
"mobx-react": string;
|
174
|
+
"mobx-utils": string;
|
175
|
+
"mock-fs": string;
|
176
|
+
moment: string;
|
177
|
+
"moment-timezone": string;
|
178
|
+
"monaco-editor": string;
|
179
|
+
"monaco-editor-webpack-plugin": string;
|
180
|
+
"node-fetch": string;
|
181
|
+
"node-pty": string;
|
182
|
+
npm: string;
|
183
|
+
"p-limit": string;
|
184
|
+
"path-to-regexp": string;
|
185
|
+
"proper-lockfile": string;
|
186
|
+
react: string;
|
187
|
+
"react-dom": string;
|
188
|
+
"react-material-ui-carousel": string;
|
189
|
+
"react-router": string;
|
190
|
+
"react-virtualized-auto-sizer": string;
|
191
|
+
"readable-stream": string;
|
192
|
+
request: string;
|
193
|
+
"request-promise-native": string;
|
194
|
+
rfc6902: string;
|
195
|
+
selfsigned: string;
|
196
|
+
semver: string;
|
197
|
+
"shell-env": string;
|
198
|
+
spdy: string;
|
199
|
+
tar: string;
|
200
|
+
"tcp-port-used": string;
|
201
|
+
tempy: string;
|
202
|
+
"typed-regex": string;
|
203
|
+
"url-parse": string;
|
204
|
+
uuid: string;
|
205
|
+
"win-ca": string;
|
206
|
+
winston: string;
|
207
|
+
"winston-console-format": string;
|
208
|
+
"winston-transport-browserconsole": string;
|
209
|
+
ws: string;
|
210
|
+
};
|
211
|
+
devDependencies: {
|
212
|
+
"@async-fn/jest": string;
|
213
|
+
"@material-ui/core": string;
|
214
|
+
"@material-ui/icons": string;
|
215
|
+
"@material-ui/lab": string;
|
216
|
+
"@pmmmwh/react-refresh-webpack-plugin": string;
|
217
|
+
"@sentry/types": string;
|
218
|
+
"@testing-library/dom": string;
|
219
|
+
"@testing-library/jest-dom": string;
|
220
|
+
"@testing-library/react": string;
|
221
|
+
"@testing-library/user-event": string;
|
222
|
+
"@types/byline": string;
|
223
|
+
"@types/chart.js": string;
|
224
|
+
"@types/circular-dependency-plugin": string;
|
225
|
+
"@types/cli-progress": string;
|
226
|
+
"@types/color": string;
|
227
|
+
"@types/command-line-args": string;
|
228
|
+
"@types/crypto-js": string;
|
229
|
+
"@types/dompurify": string;
|
230
|
+
"@types/electron-devtools-installer": string;
|
231
|
+
"@types/fs-extra": string;
|
232
|
+
"@types/glob-to-regexp": string;
|
233
|
+
"@types/gunzip-maybe": string;
|
234
|
+
"@types/html-webpack-plugin": string;
|
235
|
+
"@types/http-proxy": string;
|
236
|
+
"@types/jest": string;
|
237
|
+
"@types/js-yaml": string;
|
238
|
+
"@types/jsdom": string;
|
239
|
+
"@types/lodash": string;
|
240
|
+
"@types/marked": string;
|
241
|
+
"@types/md5-file": string;
|
242
|
+
"@types/mini-css-extract-plugin": string;
|
243
|
+
"@types/mock-fs": string;
|
244
|
+
"@types/node": string;
|
245
|
+
"@types/node-fetch": string;
|
246
|
+
"@types/npm": string;
|
247
|
+
"@types/proper-lockfile": string;
|
248
|
+
"@types/randomcolor": string;
|
249
|
+
"@types/react": string;
|
250
|
+
"@types/react-beautiful-dnd": string;
|
251
|
+
"@types/react-dom": string;
|
252
|
+
"@types/react-router": string;
|
253
|
+
"@types/react-router-dom": string;
|
254
|
+
"@types/react-table": string;
|
255
|
+
"@types/react-virtualized-auto-sizer": string;
|
256
|
+
"@types/react-window": string;
|
257
|
+
"@types/readable-stream": string;
|
258
|
+
"@types/request": string;
|
259
|
+
"@types/request-promise-native": string;
|
260
|
+
"@types/semver": string;
|
261
|
+
"@types/sharp": string;
|
262
|
+
"@types/spdy": string;
|
263
|
+
"@types/tar": string;
|
264
|
+
"@types/tar-stream": string;
|
265
|
+
"@types/tcp-port-used": string;
|
266
|
+
"@types/tempy": string;
|
267
|
+
"@types/triple-beam": string;
|
268
|
+
"@types/url-parse": string;
|
269
|
+
"@types/uuid": string;
|
270
|
+
"@types/webpack": string;
|
271
|
+
"@types/webpack-dev-server": string;
|
272
|
+
"@types/webpack-env": string;
|
273
|
+
"@types/webpack-node-externals": string;
|
274
|
+
"@typescript-eslint/eslint-plugin": string;
|
275
|
+
"@typescript-eslint/parser": string;
|
276
|
+
ansi_up: string;
|
277
|
+
"chart.js": string;
|
278
|
+
"circular-dependency-plugin": string;
|
279
|
+
"cli-progress": string;
|
280
|
+
color: string;
|
281
|
+
"command-line-args": string;
|
282
|
+
concurrently: string;
|
283
|
+
"css-loader": string;
|
284
|
+
deepdash: string;
|
285
|
+
dompurify: string;
|
286
|
+
electron: string;
|
287
|
+
"electron-builder": string;
|
288
|
+
"electron-notarize": string;
|
289
|
+
esbuild: string;
|
290
|
+
"esbuild-loader": string;
|
291
|
+
eslint: string;
|
292
|
+
"eslint-plugin-header": string;
|
293
|
+
"eslint-plugin-import": string;
|
294
|
+
"eslint-plugin-react": string;
|
295
|
+
"eslint-plugin-react-hooks": string;
|
296
|
+
"eslint-plugin-unused-imports": string;
|
297
|
+
"flex.box": string;
|
298
|
+
"fork-ts-checker-webpack-plugin": string;
|
299
|
+
"gunzip-maybe": string;
|
300
|
+
"html-webpack-plugin": string;
|
301
|
+
"identity-obj-proxy": string;
|
302
|
+
"ignore-loader": string;
|
303
|
+
"include-media": string;
|
304
|
+
jest: string;
|
305
|
+
"jest-canvas-mock": string;
|
306
|
+
"jest-fetch-mock": string;
|
307
|
+
"jest-mock-extended": string;
|
308
|
+
"make-plural": string;
|
309
|
+
"mini-css-extract-plugin": string;
|
310
|
+
"mock-http": string;
|
311
|
+
"node-gyp": string;
|
312
|
+
"node-loader": string;
|
313
|
+
nodemon: string;
|
314
|
+
playwright: string;
|
315
|
+
postcss: string;
|
316
|
+
"postcss-loader": string;
|
317
|
+
randomcolor: string;
|
318
|
+
"react-beautiful-dnd": string;
|
319
|
+
"react-refresh": string;
|
320
|
+
"react-refresh-typescript": string;
|
321
|
+
"react-router-dom": string;
|
322
|
+
"react-select": string;
|
323
|
+
"react-select-event": string;
|
324
|
+
"react-table": string;
|
325
|
+
"react-window": string;
|
326
|
+
sass: string;
|
327
|
+
"sass-loader": string;
|
328
|
+
sharp: string;
|
329
|
+
"style-loader": string;
|
330
|
+
tailwindcss: string;
|
331
|
+
"tar-stream": string;
|
332
|
+
"ts-jest": string;
|
333
|
+
"ts-loader": string;
|
334
|
+
"ts-node": string;
|
335
|
+
"type-fest": string;
|
336
|
+
"typed-emitter": string;
|
337
|
+
typedoc: string;
|
338
|
+
"typedoc-plugin-markdown": 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
|
@@ -82,3 +81,4 @@ export declare const kubernetesDocumentationWeblinkId = "kubernetes-documentatio
|
|
82
81
|
export declare const appSemVer: SemVer;
|
83
82
|
export declare const docsUrl: string;
|
84
83
|
export declare const sentryDsn: string;
|
84
|
+
export declare const contentSecurityPolicy: string;
|
@@ -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;
|
@@ -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;
|
@@ -4,27 +4,7 @@
|
|
4
4
|
*/
|
5
5
|
import type { WebSocketEvents } from "./websocket-api";
|
6
6
|
import { WebSocketApi } from "./websocket-api";
|
7
|
-
|
8
|
-
STDIN = "stdin",
|
9
|
-
STDOUT = "stdout",
|
10
|
-
CONNECTED = "connected",
|
11
|
-
RESIZE = "resize"
|
12
|
-
}
|
13
|
-
export declare type TerminalMessage = {
|
14
|
-
type: TerminalChannels.STDIN;
|
15
|
-
data: string;
|
16
|
-
} | {
|
17
|
-
type: TerminalChannels.STDOUT;
|
18
|
-
data: string;
|
19
|
-
} | {
|
20
|
-
type: TerminalChannels.CONNECTED;
|
21
|
-
} | {
|
22
|
-
type: TerminalChannels.RESIZE;
|
23
|
-
data: {
|
24
|
-
width: number;
|
25
|
-
height: number;
|
26
|
-
};
|
27
|
-
};
|
7
|
+
import { type TerminalMessage } from "../../common/terminal/channels";
|
28
8
|
declare enum TerminalColor {
|
29
9
|
RED = "\u001B[31m",
|
30
10
|
GREEN = "\u001B[32m",
|
@@ -60,7 +40,7 @@ export declare class TerminalApi extends WebSocketApi<TerminalEvents> {
|
|
60
40
|
connect(): Promise<void>;
|
61
41
|
sendMessage(message: TerminalMessage): void;
|
62
42
|
sendTerminalSize(cols: number, rows: number): void;
|
63
|
-
protected _onMessage({ data, ...evt }: MessageEvent<
|
43
|
+
protected _onMessage({ data, ...evt }: MessageEvent<string>): void;
|
64
44
|
protected _onOpen(evt: Event): void;
|
65
45
|
protected _onClose(evt: CloseEvent): void;
|
66
46
|
protected emitStatus(data: string, options?: {
|
@@ -22,9 +22,9 @@ interface WebsocketApiParams {
|
|
22
22
|
/**
|
23
23
|
* The message for pinging the websocket
|
24
24
|
*
|
25
|
-
* @default "
|
25
|
+
* @default "{type: \"ping\"}"
|
26
26
|
*/
|
27
|
-
pingMessage?: string
|
27
|
+
pingMessage?: string;
|
28
28
|
/**
|
29
29
|
* If set to a number > 0, then the API will ping the socket on that interval.
|
30
30
|
*
|
@@ -53,7 +53,7 @@ export interface WebSocketEvents {
|
|
53
53
|
declare const WebSocketApi_base: new <T>() => TypedEventEmitter<T>;
|
54
54
|
export declare class WebSocketApi<Events extends WebSocketEvents> extends WebSocketApi_base<Events> {
|
55
55
|
protected socket: WebSocket | null;
|
56
|
-
protected pendingCommands:
|
56
|
+
protected pendingCommands: string[];
|
57
57
|
protected reconnectTimer?: number;
|
58
58
|
protected pingTimer?: number;
|
59
59
|
protected params: Defaulted<WebsocketApiParams, keyof typeof WebSocketApi["defaultParams"]>;
|
@@ -70,7 +70,7 @@ export declare class WebSocketApi<Events extends WebSocketEvents> extends WebSoc
|
|
70
70
|
reconnect(): void;
|
71
71
|
destroy(): void;
|
72
72
|
clearAllListeners(): void;
|
73
|
-
send(command: string
|
73
|
+
send(command: string): void;
|
74
74
|
protected flush(): void;
|
75
75
|
protected _onOpen(evt: Event): void;
|
76
76
|
protected _onMessage({ data }: MessageEvent): void;
|
@@ -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 {};
|
@@ -30,7 +30,10 @@ export declare class Terminal {
|
|
30
30
|
private get viewport();
|
31
31
|
attachTo(parentElem: HTMLElement): void;
|
32
32
|
detach(): void;
|
33
|
-
|
33
|
+
get fontFamily(): string;
|
34
|
+
get fontSize(): number;
|
35
|
+
get theme(): Record<string, string>;
|
36
|
+
constructor(dependencies: TerminalDependencies, { tabId, api, }: TerminalArguments);
|
34
37
|
destroy(): void;
|
35
38
|
fit: () => void;
|
36
39
|
fitLazy: import("lodash").DebouncedFunc<() => void>;
|
@@ -44,7 +47,7 @@ export declare class Terminal {
|
|
44
47
|
onClickLink: (evt: MouseEvent, link: string) => void;
|
45
48
|
onContextMenu: () => void;
|
46
49
|
onSelectionChange: () => void;
|
47
|
-
setFontSize: (
|
48
|
-
setFontFamily: (
|
50
|
+
setFontSize: (fontSize: number) => void;
|
51
|
+
setFontFamily: (fontFamily: string) => void;
|
49
52
|
keyHandler: (evt: KeyboardEvent) => boolean;
|
50
53
|
}
|
@@ -5,7 +5,11 @@
|
|
5
5
|
import React from "react";
|
6
6
|
export interface DrawerTitleProps {
|
7
7
|
className?: string;
|
8
|
-
children
|
8
|
+
children?: React.ReactNode;
|
9
|
+
/**
|
10
|
+
* @deprecated Prefer passing the value as `children`
|
11
|
+
*/
|
12
|
+
title?: React.ReactNode;
|
9
13
|
/**
|
10
14
|
* Specifies how large this title is
|
11
15
|
*
|
@@ -94,7 +94,7 @@ export declare class Input extends React.Component<InputProps, State> {
|
|
94
94
|
onFocus(evt: React.FocusEvent<InputElement>): void;
|
95
95
|
onBlur(evt: React.FocusEvent<InputElement>): void;
|
96
96
|
setDirtyOnChange: import("lodash").DebouncedFunc<() => void>;
|
97
|
-
onChange(evt: React.ChangeEvent<any>): void
|
97
|
+
onChange(evt: React.ChangeEvent<any>): Promise<void>;
|
98
98
|
onKeyDown(evt: React.KeyboardEvent<InputElement>): void;
|
99
99
|
get showMaxLenIndicator(): boolean | 0 | undefined;
|
100
100
|
get isUncontrolled(): boolean;
|
@@ -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
|
+
};
|
@@ -8,7 +8,7 @@ import type { ObservableSet } from "mobx";
|
|
8
8
|
import type { Props as ReactSelectProps, GroupBase, PropsValue } from "react-select";
|
9
9
|
export interface SelectOption<Value> {
|
10
10
|
value: Value;
|
11
|
-
label:
|
11
|
+
label: React.ReactNode;
|
12
12
|
isDisabled?: boolean;
|
13
13
|
isSelected?: boolean;
|
14
14
|
}
|
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.ef6f4a5bfa.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>;
|