@k8slens/extensions 5.6.0-git.c2b4fed5c3.0 → 5.6.0-git.d1a5487384.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/catalog-entities/kubernetes-cluster.d.ts +1 -1
- 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/k8s-api/endpoints/node.api.d.ts +2 -0
- package/dist/src/common/k8s-api/endpoints/pod.api.d.ts +49 -40
- 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/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/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 +348 -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 +15 -3
- package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +5 -3
- 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/+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/dock/terminal/terminal.d.ts +6 -3
- 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/icon/icon.d.ts +22 -1
- package/dist/src/renderer/components/input/input.d.ts +1 -1
- 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/select/select.d.ts +1 -1
- 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 -1
- package/dist/src/{common/ipc-channel/create-channel/create-channel.d.ts → renderer/utils/display-mode.d.ts} +4 -2
- package/dist/src/renderer/utils/index.d.ts +1 -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/renderer/utils/display-booleans.d.ts +0 -6
|
@@ -0,0 +1,348 @@
|
|
|
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
|
+
typescript: string;
|
|
339
|
+
"typescript-plugin-css-modules": string;
|
|
340
|
+
webpack: string;
|
|
341
|
+
"webpack-cli": string;
|
|
342
|
+
"webpack-dev-server": string;
|
|
343
|
+
"webpack-node-externals": string;
|
|
344
|
+
xterm: string;
|
|
345
|
+
"xterm-addon-fit": string;
|
|
346
|
+
};
|
|
347
|
+
}, unknown, void>;
|
|
348
|
+
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,18 +1,30 @@
|
|
|
1
1
|
import type { LensWindow } from "./create-lens-window.injectable";
|
|
2
|
-
|
|
2
|
+
import type { RequireExactlyOne } from "type-fest";
|
|
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>;
|
|
11
|
+
export interface ElectronWindowConfiguration {
|
|
3
12
|
id: string;
|
|
4
13
|
title: string;
|
|
5
14
|
defaultHeight: number;
|
|
6
15
|
defaultWidth: number;
|
|
7
|
-
|
|
16
|
+
getContentSource: () => ContentSource;
|
|
8
17
|
resizable: boolean;
|
|
9
18
|
windowFrameUtilitiesAreShown: boolean;
|
|
10
19
|
centered: boolean;
|
|
20
|
+
titleBarStyle?: ElectronWindowTitleBarStyle;
|
|
11
21
|
beforeOpen?: () => Promise<void>;
|
|
12
22
|
onClose: () => void;
|
|
13
23
|
onFocus?: () => void;
|
|
14
24
|
onBlur?: () => void;
|
|
15
25
|
onDomReady?: () => void;
|
|
16
26
|
}
|
|
17
|
-
declare
|
|
27
|
+
export declare type CreateElectronWindow = () => Promise<LensWindow>;
|
|
28
|
+
export declare type CreateElectronWindowFor = (config: ElectronWindowConfiguration) => CreateElectronWindow;
|
|
29
|
+
declare const createElectronWindowFor: import("@ogre-tools/injectable").Injectable<CreateElectronWindowFor, unknown, void>;
|
|
18
30
|
export default createElectronWindowFor;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import type { SendToViewArgs } from "./lens-window-injection-token";
|
|
2
|
+
import type { ContentSource, ElectronWindowTitleBarStyle } from "./create-electron-window-for.injectable";
|
|
2
3
|
export interface LensWindow {
|
|
3
4
|
show: () => void;
|
|
4
5
|
close: () => void;
|
|
5
6
|
send: (args: SendToViewArgs) => void;
|
|
6
7
|
}
|
|
7
|
-
interface LensWindowConfiguration {
|
|
8
|
+
export interface LensWindowConfiguration {
|
|
8
9
|
id: string;
|
|
9
10
|
title: string;
|
|
10
11
|
defaultHeight: number;
|
|
11
12
|
defaultWidth: number;
|
|
12
|
-
|
|
13
|
+
getContentSource: () => ContentSource;
|
|
13
14
|
resizable: boolean;
|
|
14
15
|
windowFrameUtilitiesAreShown: boolean;
|
|
15
16
|
centered: boolean;
|
|
17
|
+
titleBarStyle?: ElectronWindowTitleBarStyle;
|
|
16
18
|
beforeOpen?: () => Promise<void>;
|
|
17
19
|
onFocus?: () => void;
|
|
18
20
|
onBlur?: () => void;
|
|
@@ -22,6 +24,6 @@ declare const createLensWindowInjectable: import("@ogre-tools/injectable").Injec
|
|
|
22
24
|
readonly visible: boolean;
|
|
23
25
|
show: () => Promise<void>;
|
|
24
26
|
close: () => void;
|
|
25
|
-
send: (args: SendToViewArgs) =>
|
|
27
|
+
send: (args: SendToViewArgs) => void;
|
|
26
28
|
}, unknown, void>;
|
|
27
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;
|
|
@@ -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 {};
|
|
@@ -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
|
}
|
|
@@ -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>>;
|