@k8slens/extensions 5.6.0-git.d23f4018c8.0 → 5.6.0-git.d5ee13c993.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/src/common/app-paths/app-path-injection-token.d.ts +0 -1
  2. package/dist/src/common/application-update/selected-update-channel/default-update-channel.injectable.d.ts +2 -0
  3. package/dist/src/common/application-update/selected-update-channel/selected-update-channel.injectable.d.ts +8 -0
  4. package/dist/src/common/application-update/update-channels.d.ts +11 -0
  5. package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -1
  6. package/dist/src/common/cluster/cluster.d.ts +2 -2
  7. package/dist/src/common/cluster/create-cluster-injection-token.d.ts +2 -2
  8. package/dist/src/common/cluster-store/allowed-resources-injection-token.d.ts +6 -0
  9. package/dist/src/common/cluster-store/cluster-store.d.ts +4 -1
  10. package/dist/src/common/cluster-store/read-cluster-config.injectable.d.ts +4 -0
  11. package/dist/src/common/cluster-types.d.ts +8 -0
  12. package/dist/src/common/front-end-routing/{route-injection-token.d.ts → front-end-route-injection-token.d.ts} +1 -1
  13. package/dist/src/common/front-end-routing/navigate-to-route-injection-token.d.ts +1 -1
  14. package/dist/src/common/front-end-routing/routes/catalog/catalog-route.injectable.d.ts +1 -1
  15. package/dist/src/common/front-end-routing/routes/cluster/custom-resources/custom-resources/custom-resources-route.injectable.d.ts +1 -1
  16. package/dist/src/common/front-end-routing/routes/cluster-view/cluster-view-route.injectable.d.ts +1 -1
  17. package/dist/src/common/fs/read-file-sync.injectable.d.ts +3 -0
  18. package/dist/src/common/ipc/index.d.ts +0 -1
  19. package/dist/src/common/k8s-api/endpoints/cluster.api.d.ts +7 -0
  20. package/dist/src/common/k8s-api/endpoints/custom-resource-definition.api.d.ts +8 -3
  21. package/dist/src/common/k8s-api/endpoints/ingress.api.d.ts +1 -1
  22. package/dist/src/common/k8s-api/endpoints/metrics.api.d.ts +1 -1
  23. package/dist/src/common/k8s-api/endpoints/node.api.d.ts +2 -0
  24. package/dist/src/common/k8s-api/endpoints/pod.api.d.ts +49 -40
  25. package/dist/src/common/{ipc-channel/channel.d.ts → k8s-api/endpoints/types/external-documentation.d.ts} +3 -3
  26. package/dist/src/common/k8s-api/endpoints/types/json-schema-props.d.ts +86 -0
  27. package/dist/src/common/k8s-api/kube-api.d.ts +9 -0
  28. package/dist/src/common/k8s-api/kube-object.store.d.ts +2 -2
  29. package/dist/src/common/kube-helpers.d.ts +10 -2
  30. package/dist/src/common/terminal/channels.d.ts +28 -0
  31. package/dist/src/common/user-store/preferences-helpers.d.ts +2 -6
  32. package/dist/src/common/user-store/user-store.d.ts +7 -3
  33. package/dist/src/common/utils/buildUrl.d.ts +1 -1
  34. package/dist/src/common/utils/reject-promise.d.ts +2 -2
  35. package/dist/src/common/utils/resolve-system-proxy/resolve-system-proxy-injection-token.d.ts +6 -0
  36. package/dist/src/common/utils/type-narrowing.d.ts +5 -0
  37. package/dist/src/common/vars/base-bundled-binaries-dir.injectable.d.ts +2 -0
  38. package/dist/src/common/vars/bundled-resources-dir.injectable.d.ts +2 -0
  39. package/dist/src/common/vars/lens-resources-dir.injectable.d.ts +2 -0
  40. package/dist/src/common/vars/normalized-platform-architecture.injectable.d.ts +2 -0
  41. package/dist/src/common/vars/normalized-platform.injectable.d.ts +2 -0
  42. package/dist/src/common/vars/package-json.injectable.d.ts +353 -0
  43. package/dist/src/common/vars/static-files-directory.injectable.d.ts +2 -0
  44. package/dist/src/common/vars.d.ts +7 -9
  45. package/dist/src/extensions/common-api/index.d.ts +2 -1
  46. package/dist/src/extensions/common-api/proxy.d.ts +10 -0
  47. package/dist/src/extensions/extension-loader/extension/extension.injectable.d.ts +7 -0
  48. package/dist/src/extensions/extension-loader/extension-loader.d.ts +2 -2
  49. package/dist/src/extensions/extension-loader/extension-registrator-injection-token.d.ts +7 -0
  50. package/dist/src/extensions/extensions-store/extensions-store.d.ts +5 -4
  51. package/dist/src/extensions/lens-extension-set-dependencies.d.ts +1 -1
  52. package/dist/src/extensions/lens-renderer-extension.d.ts +2 -0
  53. package/dist/src/extensions/registries/entity-setting-registry.d.ts +1 -1
  54. package/dist/src/extensions/renderer-api/components.d.ts +1 -0
  55. package/dist/src/main/app-paths/app-name/product-name.injectable.d.ts +2 -0
  56. package/dist/src/main/kube-auth-proxy/kube-auth-proxy.d.ts +1 -0
  57. package/dist/src/main/kubectl/kubectl.d.ts +18 -14
  58. package/dist/src/main/start-main-application/lens-window/application-window/application-window.injectable.d.ts +1 -6
  59. package/dist/src/main/start-main-application/lens-window/application-window/create-electron-window.injectable.d.ts +29 -0
  60. package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +8 -11
  61. package/dist/src/main/start-main-application/lens-window/application-window/lens-window-injection-token.d.ts +6 -3
  62. package/dist/src/main/start-main-application/lens-window/application-window/wait-until-bundled-extensions-are-loaded.injectable.d.ts +2 -0
  63. package/dist/src/main/start-main-application/lens-window/navigate.injectable.d.ts +1 -1
  64. package/dist/src/main/start-main-application/lens-window/splash-window/splash-window.injectable.d.ts +1 -6
  65. package/dist/src/main/{app-paths/register-channel → utils/channel}/ipc-main/ipc-main.injectable.d.ts +0 -1
  66. package/dist/src/renderer/api/terminal-api.d.ts +2 -22
  67. package/dist/src/renderer/api/websocket-api.d.ts +4 -4
  68. package/dist/src/{common/cluster-store → renderer/cluster-frame-context}/hosted-cluster-id.injectable.d.ts +0 -0
  69. package/dist/src/{common/cluster-store → renderer/cluster-frame-context}/hosted-cluster.injectable.d.ts +1 -1
  70. package/dist/src/renderer/components/+namespaces/namespace-select.d.ts +1 -0
  71. package/dist/src/{common/ipc-channel/create-channel/create-channel.d.ts → renderer/components/+preferences/app-preference-tab/app-preference-tab-registration.d.ts} +5 -2
  72. package/dist/src/renderer/components/+user-management/+service-accounts/service-account-menu.d.ts +1 -0
  73. package/dist/src/renderer/components/animate/animate.d.ts +6 -1
  74. package/dist/src/renderer/components/animate/request-animation-frame.injectable.d.ts +2 -0
  75. package/dist/src/renderer/components/dock/dock/create-dock-tab.injectable.d.ts +1 -1
  76. package/dist/src/renderer/components/dock/terminal/terminal.d.ts +6 -3
  77. package/dist/src/renderer/components/drawer/drawer-item-labels.d.ts +1 -0
  78. package/dist/src/renderer/components/drawer/drawer-item.d.ts +7 -2
  79. package/dist/src/renderer/components/drawer/drawer-title.d.ts +5 -1
  80. package/dist/src/renderer/components/icon/icon.d.ts +22 -1
  81. package/dist/src/renderer/components/input/input.d.ts +7 -8
  82. package/dist/src/renderer/components/input/input_validators.d.ts +28 -15
  83. package/dist/src/renderer/components/item-object-list/filter-icon.d.ts +1 -0
  84. package/dist/src/renderer/components/layout/sidebar-items.injectable.d.ts +0 -2
  85. package/dist/src/renderer/components/notifications/index.d.ts +0 -1
  86. package/dist/src/renderer/components/notifications/notifications-store.injectable.d.ts +3 -0
  87. package/dist/src/renderer/components/notifications/notifications.d.ts +7 -12
  88. package/dist/src/renderer/components/notifications/notifications.store.d.ts +0 -1
  89. package/dist/src/renderer/components/resource-metrics/no-metrics.d.ts +1 -0
  90. package/dist/src/renderer/components/select/select.d.ts +1 -1
  91. package/dist/src/renderer/components/switch/form-switcher.d.ts +1 -0
  92. package/dist/src/renderer/components/table/table-cell.d.ts +0 -4
  93. package/dist/src/renderer/components/wizard/wizard.d.ts +2 -0
  94. package/dist/src/renderer/routes/route-path-parameters.injectable.d.ts +1 -1
  95. package/dist/src/renderer/{app-paths/get-value-from-registered-channel/ipc-renderer → utils/channel}/ipc-renderer.injectable.d.ts +0 -1
  96. package/dist/src/renderer/utils/{display-booleans.d.ts → display-mode.d.ts} +4 -2
  97. package/dist/src/renderer/utils/index.d.ts +1 -1
  98. package/package.json +2 -2
  99. package/dist/src/common/app-paths/directory-for-bundled-binaries/directory-for-bundled-binaries.injectable.d.ts +0 -2
  100. package/dist/src/common/cluster-store/allowed-resources.injectable.d.ts +0 -2
  101. package/dist/src/common/ipc/update-available.d.ts +0 -19
  102. package/dist/src/main/start-main-application/lens-window/application-window/create-electron-window-for.injectable.d.ts +0 -22
@@ -2,11 +2,11 @@
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
- import "abort-controller/polyfill";
5
+ import type { AbortSignal } from "abort-controller";
6
6
  /**
7
7
  * Creates a new promise that will be rejected when the signal rejects.
8
8
  *
9
9
  * Useful for `Promise.race()` applications.
10
10
  * @param signal The AbortController's signal to reject with
11
11
  */
12
- export declare function rejectPromiseBy(signal: AbortSignal): Promise<void>;
12
+ export declare function rejectPromiseBy(signal: AbortSignal): Promise<never>;
@@ -0,0 +1,6 @@
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 ResolveSystemProxy = (url: string) => Promise<string>;
6
+ export declare const resolveSystemProxyInjectionToken: import("@ogre-tools/injectable").InjectionToken<ResolveSystemProxy, void>;
@@ -3,6 +3,9 @@
3
3
  * Licensed under MIT License. See LICENSE in root directory for more information.
4
4
  */
5
5
  /// <reference types="node" />
6
+ /// <reference types="node" />
7
+ /// <reference types="node" />
8
+ /// <reference types="node" />
6
9
  import type { ExecException, ExecFileException } from "child_process";
7
10
  import type { IncomingMessage } from "http";
8
11
  /**
@@ -96,6 +99,8 @@ export declare function bindPredicate<FnArgs extends any[], T>(fn: (arg1: unknow
96
99
  export declare function hasDefiniteField<Field extends keyof T, T>(field: Field): (val: T) => val is T & {
97
100
  [f in Field]-?: NonNullable<T[Field]>;
98
101
  };
102
+ export declare function isPromiseSettledRejected<T>(result: PromiseSettledResult<T>): result is PromiseRejectedResult;
103
+ export declare function isPromiseSettledFulfilled<T>(result: PromiseSettledResult<T>): result is PromiseFulfilledResult<T>;
99
104
  export declare function isErrnoException(error: unknown): error is NodeJS.ErrnoException;
100
105
  export declare function isExecException(error: unknown): error is ExecException;
101
106
  export declare function isExecFileException(error: unknown): error is ExecFileException;
@@ -0,0 +1,2 @@
1
+ declare const baseBundledBinariesDirectoryInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default baseBundledBinariesDirectoryInjectable;
@@ -0,0 +1,2 @@
1
+ declare const bundledResourcesDirectoryInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default bundledResourcesDirectoryInjectable;
@@ -0,0 +1,2 @@
1
+ declare const lensResourcesDirInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default lensResourcesDirInjectable;
@@ -0,0 +1,2 @@
1
+ declare const normalizedPlatformArchitectureInjectable: import("@ogre-tools/injectable").Injectable<"arm64" | "x64" | "ia32", unknown, void>;
2
+ export default normalizedPlatformArchitectureInjectable;
@@ -0,0 +1,2 @@
1
+ declare const normalizedPlatformInjectable: import("@ogre-tools/injectable").Injectable<"darwin" | "linux" | "windows", unknown, void>;
2
+ export default normalizedPlatformInjectable;
@@ -0,0 +1,353 @@
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
+ "^.+\\.(t|j)sx?$": string[];
63
+ };
64
+ testEnvironment: string;
65
+ resolver: string;
66
+ moduleNameMapper: {
67
+ "\\.(css|scss)$": string;
68
+ "\\.(svg|png|jpg|eot|woff2?|ttf)$": string;
69
+ };
70
+ modulePathIgnorePatterns: string[];
71
+ setupFiles: string[];
72
+ setupFilesAfterEnv: string[];
73
+ runtime: string;
74
+ };
75
+ build: {
76
+ generateUpdatesFilesForAllChannels: boolean;
77
+ files: string[];
78
+ afterSign: string;
79
+ extraResources: (string | {
80
+ from: string;
81
+ to: string;
82
+ filter: string;
83
+ } | {
84
+ from: string;
85
+ to: string;
86
+ filter: string[];
87
+ })[];
88
+ linux: {
89
+ category: string;
90
+ artifactName: string;
91
+ target: string[];
92
+ extraResources: {
93
+ from: string;
94
+ to: string;
95
+ }[];
96
+ };
97
+ rpm: {
98
+ fpm: string[];
99
+ };
100
+ mac: {
101
+ hardenedRuntime: boolean;
102
+ gatekeeperAssess: boolean;
103
+ entitlements: string;
104
+ entitlementsInherit: string;
105
+ extraResources: {
106
+ from: string;
107
+ to: string;
108
+ }[];
109
+ };
110
+ win: {
111
+ target: string[];
112
+ extraResources: {
113
+ from: string;
114
+ to: string;
115
+ }[];
116
+ };
117
+ nsis: {
118
+ include: string;
119
+ oneClick: boolean;
120
+ allowElevation: boolean;
121
+ createStartMenuShortcut: boolean;
122
+ allowToChangeInstallationDirectory: boolean;
123
+ };
124
+ protocols: {
125
+ name: string;
126
+ schemes: string[];
127
+ role: string;
128
+ };
129
+ };
130
+ dependencies: {
131
+ "@astronautlabs/jsonpath": string;
132
+ "@hapi/call": string;
133
+ "@hapi/subtext": string;
134
+ "@kubernetes/client-node": string;
135
+ "@material-ui/styles": string;
136
+ "@ogre-tools/fp": string;
137
+ "@ogre-tools/injectable": string;
138
+ "@ogre-tools/injectable-extension-for-auto-registration": string;
139
+ "@ogre-tools/injectable-extension-for-mobx": string;
140
+ "@ogre-tools/injectable-react": string;
141
+ "@sentry/electron": string;
142
+ "@sentry/integrations": string;
143
+ "@side/jest-runtime": 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
+ "@swc/core": string;
219
+ "@swc/jest": string;
220
+ "@testing-library/dom": string;
221
+ "@testing-library/jest-dom": string;
222
+ "@testing-library/react": string;
223
+ "@testing-library/user-event": string;
224
+ "@types/byline": string;
225
+ "@types/chart.js": string;
226
+ "@types/circular-dependency-plugin": string;
227
+ "@types/cli-progress": string;
228
+ "@types/color": string;
229
+ "@types/command-line-args": string;
230
+ "@types/crypto-js": string;
231
+ "@types/dompurify": string;
232
+ "@types/electron-devtools-installer": string;
233
+ "@types/fs-extra": string;
234
+ "@types/glob-to-regexp": string;
235
+ "@types/gunzip-maybe": string;
236
+ "@types/hapi__call": string;
237
+ "@types/hapi__subtext": string;
238
+ "@types/html-webpack-plugin": string;
239
+ "@types/http-proxy": string;
240
+ "@types/jest": string;
241
+ "@types/js-yaml": string;
242
+ "@types/jsdom": string;
243
+ "@types/lodash": string;
244
+ "@types/marked": string;
245
+ "@types/md5-file": string;
246
+ "@types/mini-css-extract-plugin": string;
247
+ "@types/mock-fs": string;
248
+ "@types/node": string;
249
+ "@types/node-fetch": string;
250
+ "@types/npm": string;
251
+ "@types/proper-lockfile": string;
252
+ "@types/randomcolor": string;
253
+ "@types/react": string;
254
+ "@types/react-beautiful-dnd": string;
255
+ "@types/react-dom": string;
256
+ "@types/react-router": string;
257
+ "@types/react-router-dom": string;
258
+ "@types/react-table": string;
259
+ "@types/react-virtualized-auto-sizer": string;
260
+ "@types/react-window": string;
261
+ "@types/readable-stream": string;
262
+ "@types/request": string;
263
+ "@types/request-promise-native": string;
264
+ "@types/semver": string;
265
+ "@types/sharp": string;
266
+ "@types/spdy": string;
267
+ "@types/tar": string;
268
+ "@types/tar-stream": string;
269
+ "@types/tcp-port-used": string;
270
+ "@types/tempy": string;
271
+ "@types/triple-beam": string;
272
+ "@types/url-parse": string;
273
+ "@types/uuid": string;
274
+ "@types/webpack": string;
275
+ "@types/webpack-dev-server": string;
276
+ "@types/webpack-env": string;
277
+ "@types/webpack-node-externals": string;
278
+ "@typescript-eslint/eslint-plugin": string;
279
+ "@typescript-eslint/parser": string;
280
+ ansi_up: string;
281
+ "chart.js": string;
282
+ "circular-dependency-plugin": string;
283
+ "cli-progress": string;
284
+ color: string;
285
+ "command-line-args": string;
286
+ concurrently: string;
287
+ "css-loader": string;
288
+ deepdash: string;
289
+ dompurify: string;
290
+ electron: string;
291
+ "electron-builder": string;
292
+ "electron-notarize": string;
293
+ esbuild: string;
294
+ "esbuild-loader": string;
295
+ eslint: string;
296
+ "eslint-plugin-header": string;
297
+ "eslint-plugin-import": string;
298
+ "eslint-plugin-react": string;
299
+ "eslint-plugin-react-hooks": string;
300
+ "eslint-plugin-unused-imports": string;
301
+ "flex.box": string;
302
+ "fork-ts-checker-webpack-plugin": string;
303
+ "gunzip-maybe": string;
304
+ "html-webpack-plugin": string;
305
+ "identity-obj-proxy": string;
306
+ "ignore-loader": string;
307
+ "include-media": string;
308
+ jest: string;
309
+ "jest-canvas-mock": string;
310
+ "jest-environment-jsdom": string;
311
+ "jest-fetch-mock": string;
312
+ "jest-mock-extended": string;
313
+ "make-plural": string;
314
+ "mini-css-extract-plugin": string;
315
+ "mock-http": string;
316
+ "node-gyp": string;
317
+ "node-loader": string;
318
+ nodemon: string;
319
+ playwright: string;
320
+ postcss: string;
321
+ "postcss-loader": string;
322
+ randomcolor: string;
323
+ "react-beautiful-dnd": string;
324
+ "react-refresh": string;
325
+ "react-refresh-typescript": string;
326
+ "react-router-dom": string;
327
+ "react-select": string;
328
+ "react-select-event": string;
329
+ "react-table": string;
330
+ "react-window": string;
331
+ sass: string;
332
+ "sass-loader": string;
333
+ sharp: string;
334
+ "style-loader": string;
335
+ tailwindcss: string;
336
+ "tar-stream": string;
337
+ "ts-loader": string;
338
+ "ts-node": string;
339
+ "type-fest": string;
340
+ "typed-emitter": string;
341
+ typedoc: string;
342
+ "typedoc-plugin-markdown": string;
343
+ typescript: string;
344
+ "typescript-plugin-css-modules": string;
345
+ webpack: string;
346
+ "webpack-cli": string;
347
+ "webpack-dev-server": string;
348
+ "webpack-node-externals": string;
349
+ xterm: string;
350
+ "xterm-addon-fit": string;
351
+ };
352
+ }, unknown, void>;
353
+ export default packageJsonInjectable;
@@ -0,0 +1,2 @@
1
+ declare const staticFilesDirectoryInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default staticFilesDirectoryInjectable;
@@ -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;
@@ -84,3 +81,4 @@ export declare const kubernetesDocumentationWeblinkId = "kubernetes-documentatio
84
81
  export declare const appSemVer: SemVer;
85
82
  export declare const docsUrl: string;
86
83
  export declare const sentryDsn: string;
84
+ export declare const contentSecurityPolicy: string;
@@ -8,5 +8,6 @@ import * as Store from "./stores";
8
8
  import * as Util from "./utils";
9
9
  import * as Catalog from "./catalog";
10
10
  import * as Types from "./types";
11
+ import * as Proxy from "./proxy";
11
12
  import logger from "../../common/logger";
12
- export { App, EventBus, Catalog, Store, Types, Util, logger, };
13
+ export { App, EventBus, Catalog, Store, Types, Util, logger, Proxy, };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ /**
6
+ * Resolves URL-specific proxy information from system. See more here: https://www.electronjs.org/docs/latest/api/session#sesresolveproxyurl
7
+ * @param url - The URL for proxy information
8
+ * @returns Promise for proxy information as string
9
+ */
10
+ export declare const resolveSystemProxy: import("../../common/utils/resolve-system-proxy/resolve-system-proxy-injection-token").ResolveSystemProxy;
@@ -0,0 +1,7 @@
1
+ import type { LensExtension } from "../../lens-extension";
2
+ export interface Extension {
3
+ register: () => void;
4
+ deregister: () => void;
5
+ }
6
+ declare const extensionInjectable: import("@ogre-tools/injectable").Injectable<Extension, unknown, LensExtension<import("../../lens-extension-set-dependencies").LensExtensionDependencies>>;
7
+ export default extensionInjectable;
@@ -9,12 +9,12 @@ import type { InstalledExtension } from "../extension-discovery/extension-discov
9
9
  import type { LensExtension, LensExtensionConstructor, LensExtensionId } from "../lens-extension";
10
10
  import type { LensExtensionState } from "../extensions-store/extensions-store";
11
11
  import type { CreateExtensionInstance } from "./create-extension-instance.token";
12
+ import type { Extension } from "./extension/extension.injectable";
12
13
  interface Dependencies {
13
14
  updateExtensionsState: (extensionsState: Record<LensExtensionId, LensExtensionState>) => void;
14
15
  createExtensionInstance: CreateExtensionInstance;
15
- readonly extensionRegistrators: ((extension: LensExtension, extensionInstallationCount: number) => void)[];
16
- readonly extensionInstallationCounter: Map<string, number>;
17
16
  readonly extensionInstances: ObservableMap<LensExtensionId, LensExtension>;
17
+ getExtension: (instance: LensExtension) => Extension;
18
18
  }
19
19
  export interface ExtensionLoading {
20
20
  isBundled: boolean;
@@ -0,0 +1,7 @@
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 { Injectable } from "@ogre-tools/injectable";
6
+ import type { LensExtension } from "../lens-extension";
7
+ export declare const extensionRegistratorInjectionToken: import("@ogre-tools/injectable").InjectionToken<(extension: LensExtension) => Injectable<any, any, any>[], void>;
@@ -11,15 +11,16 @@ export interface LensExtensionState {
11
11
  enabled?: boolean;
12
12
  name: string;
13
13
  }
14
+ export interface IsEnabledExtensionDescriptor {
15
+ id: string;
16
+ isBundled: boolean;
17
+ }
14
18
  export declare class ExtensionsStore extends BaseStore<LensExtensionsStoreModel> {
15
19
  readonly displayName = "ExtensionsStore";
16
20
  constructor();
17
21
  get enabledExtensions(): string[];
18
22
  protected state: import("mobx").ObservableMap<string, LensExtensionState>;
19
- isEnabled({ id, isBundled }: {
20
- id: string;
21
- isBundled: boolean;
22
- }): boolean;
23
+ isEnabled({ id, isBundled }: IsEnabledExtensionDescriptor): boolean;
23
24
  mergeState: (extensionsState: Record<LensExtensionId, LensExtensionState> | [LensExtensionId, LensExtensionState][]) => void;
24
25
  protected fromStore({ extensions }: LensExtensionsStoreModel): void;
25
26
  toJSON(): LensExtensionsStoreModel;
@@ -5,7 +5,7 @@
5
5
  import type { IComputedValue } from "mobx";
6
6
  import type { CatalogCategoryRegistry } from "../common/catalog";
7
7
  import type { NavigateToRoute } from "../common/front-end-routing/navigate-to-route-injection-token";
8
- import type { Route } from "../common/front-end-routing/route-injection-token";
8
+ import type { Route } from "../common/front-end-routing/front-end-route-injection-token";
9
9
  import type { CatalogEntityRegistry as MainCatalogEntityRegistry } from "../main/catalog";
10
10
  import type { CatalogEntityRegistry as RendererCatalogEntityRegistry } from "../renderer/api/catalog/entity/registry";
11
11
  import type { GetExtensionPageParameters } from "../renderer/routes/get-extension-page-parameters.injectable";
@@ -22,12 +22,14 @@ import type { WorkloadsOverviewDetailRegistration } from "../renderer/components
22
22
  import type { KubeObjectStatusRegistration } from "../renderer/components/kube-object-status-icon/kube-object-status-registration";
23
23
  import type { LensRendererExtensionDependencies } from "./lens-extension-set-dependencies";
24
24
  import type { KubeObjectHandlerRegistration } from "../renderer/kube-object/handler";
25
+ import type { AppPreferenceTabRegistration } from "../renderer/components/+preferences/app-preference-tab/app-preference-tab-registration";
25
26
  export declare class LensRendererExtension extends LensExtension<LensRendererExtensionDependencies> {
26
27
  globalPages: registries.PageRegistration[];
27
28
  clusterPages: registries.PageRegistration[];
28
29
  clusterPageMenus: registries.ClusterPageMenuRegistration[];
29
30
  kubeObjectStatusTexts: KubeObjectStatusRegistration[];
30
31
  appPreferences: AppPreferenceRegistration[];
32
+ appPreferenceTabs: AppPreferenceTabRegistration[];
31
33
  entitySettings: registries.EntitySettingRegistration[];
32
34
  statusBarItems: StatusBarRegistration[];
33
35
  kubeObjectDetailItems: registries.KubeObjectDetailRegistration[];
@@ -26,5 +26,5 @@ export interface RegisteredEntitySetting extends EntitySettingRegistration {
26
26
  }
27
27
  export declare class EntitySettingRegistry extends BaseRegistry<EntitySettingRegistration, RegisteredEntitySetting> {
28
28
  getRegisteredItem(item: EntitySettingRegistration): RegisteredEntitySetting;
29
- getItemsForKind: (kind: string, apiVersion: string, source?: string | undefined) => RegisteredEntitySetting[];
29
+ getItemsForKind: (kind: string, apiVersion: string, source?: string) => RegisteredEntitySetting[];
30
30
  }
@@ -66,3 +66,4 @@ export declare class TerminalStore {
66
66
  };
67
67
  static resetInstance(): void;
68
68
  }
69
+ export declare const notificationsStore: import("../../renderer/components/notifications/notifications.store").NotificationsStore;
@@ -0,0 +1,2 @@
1
+ declare const productNameInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default productNameInjectable;
@@ -3,6 +3,7 @@
3
3
  * Licensed under MIT License. See LICENSE in root directory for more information.
4
4
  */
5
5
  /// <reference types="node" />
6
+ /// <reference types="node" />
6
7
  import type { ChildProcess } from "child_process";
7
8
  import type { Cluster } from "../../common/cluster/cluster";
8
9
  import type { SelfSignedCert } from "selfsigned";
@@ -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 Dependencies {
6
- directoryForKubectlBinaries: string;
7
- userStore: {
8
- kubectlBinariesPath?: string;
9
- downloadBinariesPath?: string;
10
- downloadKubectlBinaries: boolean;
11
- downloadMirror: string;
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
- private dependencies;
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: Dependencies, clusterVersion: string);
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 {};
@@ -1,7 +1,2 @@
1
- declare const applicationWindowInjectable: import("@ogre-tools/injectable").Injectable<{
2
- readonly visible: boolean;
3
- show: () => Promise<void>;
4
- close: () => void;
5
- send: (args: import("./lens-window-injection-token").SendToViewArgs) => Promise<void>;
6
- }, import("./lens-window-injection-token").LensWindow, void>;
1
+ declare const applicationWindowInjectable: import("@ogre-tools/injectable").Injectable<import("./lens-window-injection-token").LensWindow, import("./lens-window-injection-token").LensWindow, void>;
7
2
  export default applicationWindowInjectable;