@k8slens/extensions 5.6.0-git.165bf57380.0 → 5.6.0-git.1a9fa699c9.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/behaviours/status-bar/status-bar-items-originating-from-extensions.test.d.ts +1 -0
- package/dist/src/common/application-update/discovered-update-version/discovered-update-version.injectable.d.ts +4 -2
- package/dist/src/common/application-update/progress-of-update-download/progress-of-update-download.injectable.d.ts +4 -1
- package/dist/src/common/application-update/update-is-being-downloaded/update-is-being-downloaded.injectable.d.ts +3 -1
- package/dist/src/common/application-update/updates-are-being-discovered/updates-are-being-discovered.injectable.d.ts +3 -1
- package/dist/src/common/test-utils/use-fake-time.d.ts +2 -0
- package/dist/src/common/utils/reactive-now/reactive-now.d.ts +1 -0
- package/dist/src/common/utils/reactive-now/reactive-now.test.d.ts +1 -0
- package/dist/src/extensions/extension-api.js +14 -3
- package/dist/src/renderer/components/status-bar/auto-update-component.d.ts +14 -0
- package/dist/src/renderer/components/status-bar/auto-update-status-bar-item.injectable.d.ts +7 -0
- package/dist/src/renderer/components/status-bar/status-bar-item-injection-token.d.ts +8 -0
- package/dist/src/renderer/components/status-bar/status-bar-item-registrator.injectable.d.ts +8 -0
- package/dist/src/renderer/components/status-bar/status-bar-items.injectable.d.ts +8 -1
- package/dist/src/renderer/components/test-utils/get-renderer-extension-fake.d.ts +2 -1
- package/package.json +1 -1
- package/dist/src/common/application-update/application-update-status-channel.injectable.d.ts +0 -9
- package/dist/src/main/application-update/check-for-updates/broadcast-change-in-updating-status.injectable.d.ts +0 -3
- package/dist/src/renderer/application-update/application-update-status-listener.injectable.d.ts +0 -4
- package/dist/src/renderer/components/status-bar/registered-status-bar-items.injectable.d.ts +0 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { UpdateChannel } from "../update-channels";
|
|
2
|
-
|
|
2
|
+
import type { SyncBox } from "../../utils/sync-box/sync-box-injection-token";
|
|
3
|
+
export declare type DiscoveredUpdateVersion = SyncBox<{
|
|
3
4
|
version: string;
|
|
4
5
|
updateChannel: UpdateChannel;
|
|
5
|
-
} | null
|
|
6
|
+
} | null>;
|
|
7
|
+
declare const discoveredUpdateVersionInjectable: import("@ogre-tools/injectable").Injectable<DiscoveredUpdateVersion, SyncBox<any>, void>;
|
|
6
8
|
export default discoveredUpdateVersionInjectable;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import type { SyncBox } from "../../utils/sync-box/sync-box-injection-token";
|
|
1
2
|
export interface ProgressOfDownload {
|
|
2
3
|
percentage: number;
|
|
4
|
+
failed?: string;
|
|
3
5
|
}
|
|
4
|
-
declare
|
|
6
|
+
export declare type ProgressOfUpdateDownload = SyncBox<ProgressOfDownload>;
|
|
7
|
+
declare const progressOfUpdateDownloadInjectable: import("@ogre-tools/injectable").Injectable<SyncBox<ProgressOfDownload>, SyncBox<any>, void>;
|
|
5
8
|
export default progressOfUpdateDownloadInjectable;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SyncBox } from "../../utils/sync-box/sync-box-injection-token";
|
|
2
|
+
export declare type UpdateIsBeingDownloaded = SyncBox<boolean>;
|
|
3
|
+
declare const updateIsBeingDownloadedInjectable: import("@ogre-tools/injectable").Injectable<SyncBox<boolean>, SyncBox<any>, void>;
|
|
2
4
|
export default updateIsBeingDownloadedInjectable;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SyncBox } from "../../utils/sync-box/sync-box-injection-token";
|
|
2
|
+
export declare type UpdatesAreBeingDiscovered = SyncBox<boolean>;
|
|
3
|
+
declare const updatesAreBeingDiscoveredInjectable: import("@ogre-tools/injectable").Injectable<SyncBox<boolean>, SyncBox<any>, void>;
|
|
2
4
|
export default updatesAreBeingDiscoveredInjectable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function reactiveNow(interval?: number | "frame"): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -33281,6 +33281,17 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
33281
33281
|
|
|
33282
33282
|
/***/ }),
|
|
33283
33283
|
|
|
33284
|
+
/***/ "./src/common/utils/reactive-now/reactive-now.ts":
|
|
33285
|
+
/*!*******************************************************!*\
|
|
33286
|
+
!*** ./src/common/utils/reactive-now/reactive-now.ts ***!
|
|
33287
|
+
\*******************************************************/
|
|
33288
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
33289
|
+
|
|
33290
|
+
"use strict";
|
|
33291
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"reactiveNow\": () => (/* binding */ reactiveNow)\n/* harmony export */ });\n/* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! mobx */ \"./node_modules/mobx/dist/mobx.esm.js\");\n/* harmony import */ var mobx_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! mobx-utils */ \"./node_modules/mobx-utils/mobx-utils.module.js\");\n/**\n * Copyright (c) OpenLens Authors. All rights reserved.\n * Licensed under MIT License. See LICENSE in root directory for more information.\n */\n\n\n// Note: This file is copy-pasted from mobx-utils to fix very specific issue.\n// TODO: Remove this file once https://github.com/mobxjs/mobx-utils/issues/306 is fixed.\nconst tickers = {};\nfunction reactiveNow(interval) {\n if (interval === void 0) {\n interval = 1000;\n }\n if (!(0,mobx__WEBPACK_IMPORTED_MODULE_0__._isComputingDerivation)()) {\n // See #40\n return Date.now();\n }\n // Note: This is the kludge until https://github.com/mobxjs/mobx-utils/issues/306 is fixed\n const synchronizationIsEnabled = !process.env.JEST_WORKER_ID;\n if (!tickers[interval] || !synchronizationIsEnabled) {\n if (typeof interval === \"number\")\n tickers[interval] = createIntervalTicker(interval);\n else\n tickers[interval] = createAnimationFrameTicker();\n }\n return tickers[interval].current();\n}\nfunction createIntervalTicker(interval) {\n let subscriptionHandle;\n return (0,mobx_utils__WEBPACK_IMPORTED_MODULE_1__.fromResource)(function (sink) {\n sink(Date.now());\n subscriptionHandle = setInterval(function () { return sink(Date.now()); }, interval);\n }, function () {\n clearInterval(subscriptionHandle);\n }, Date.now());\n}\nfunction createAnimationFrameTicker() {\n const frameBasedTicker = (0,mobx_utils__WEBPACK_IMPORTED_MODULE_1__.fromResource)(function (sink) {\n sink(Date.now());\n function scheduleTick() {\n window.requestAnimationFrame(function () {\n sink(Date.now());\n if (frameBasedTicker.isAlive())\n scheduleTick();\n });\n }\n scheduleTick();\n }, function () { }, Date.now());\n return frameBasedTicker;\n}\n\n\n//# sourceURL=webpack://open-lens/./src/common/utils/reactive-now/reactive-now.ts?");
|
|
33292
|
+
|
|
33293
|
+
/***/ }),
|
|
33294
|
+
|
|
33284
33295
|
/***/ "./src/common/utils/readonly.ts":
|
|
33285
33296
|
/*!**************************************!*\
|
|
33286
33297
|
!*** ./src/common/utils/readonly.ts ***!
|
|
@@ -33431,7 +33442,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
33431
33442
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
33432
33443
|
|
|
33433
33444
|
"use strict";
|
|
33434
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"apiKubePrefix\": () => (/* binding */ apiKubePrefix),\n/* harmony export */ \"apiPrefix\": () => (/* binding */ apiPrefix),\n/* harmony export */ \"appName\": () => (/* binding */ appName),\n/* harmony export */ \"appSemVer\": () => (/* binding */ appSemVer),\n/* harmony export */ \"baseBinariesDir\": () => (/* binding */ baseBinariesDir),\n/* harmony export */ \"contentSecurityPolicy\": () => (/* binding */ contentSecurityPolicy),\n/* harmony export */ \"defaultEditorFontFamily\": () => (/* binding */ defaultEditorFontFamily),\n/* harmony export */ \"defaultFontSize\": () => (/* binding */ defaultFontSize),\n/* harmony export */ \"defaultTerminalFontFamily\": () => (/* binding */ defaultTerminalFontFamily),\n/* harmony export */ \"defaultThemeId\": () => (/* binding */ defaultThemeId),\n/* harmony export */ \"docsUrl\": () => (/* binding */ docsUrl),\n/* harmony export */ \"getBinaryName\": () => (/* binding */ getBinaryName),\n/* harmony export */ \"helmBinaryName\": () => (/* binding */ helmBinaryName),\n/* harmony export */ \"helmBinaryPath\": () => (/* binding */ helmBinaryPath),\n/* harmony export */ \"isDebugging\": () => (/* binding */ isDebugging),\n/* harmony export */ \"isDevelopment\": () => (/* binding */ isDevelopment),\n/* harmony export */ \"isLinux\": () => (/* binding */ isLinux),\n/* harmony export */ \"isMac\": () => (/* binding */ isMac),\n/* harmony export */ \"isProduction\": () => (/* binding */ isProduction),\n/* harmony export */ \"isSnap\": () => (/* binding */ isSnap),\n/* harmony export */ \"isTestEnv\": () => (/* binding */ isTestEnv),\n/* harmony export */ \"isWindows\": () => (/* binding */ isWindows),\n/* harmony export */ \"issuesTrackerUrl\": () => (/* binding */ issuesTrackerUrl),\n/* harmony export */ \"kubeAuthProxyBinaryName\": () => (/* binding */ kubeAuthProxyBinaryName),\n/* harmony export */ \"kubernetesDocumentationWeblinkId\": () => (/* binding */ kubernetesDocumentationWeblinkId),\n/* harmony export */ \"lensBlogWeblinkId\": () => (/* binding */ lensBlogWeblinkId),\n/* harmony export */ \"lensDocumentationWeblinkId\": () => (/* binding */ lensDocumentationWeblinkId),\n/* harmony export */ \"lensSlackWeblinkId\": () => (/* binding */ lensSlackWeblinkId),\n/* harmony export */ \"lensTwitterWeblinkId\": () => (/* binding */ lensTwitterWeblinkId),\n/* harmony export */ \"lensWebsiteWeblinkId\": () => (/* binding */ lensWebsiteWeblinkId),\n/* harmony export */ \"normalizedArch\": () => (/* binding */ normalizedArch),\n/* harmony export */ \"normalizedPlatform\": () => (/* binding */ normalizedPlatform),\n/* harmony export */ \"productName\": () => (/* binding */ productName),\n/* harmony export */ \"publicPath\": () => (/* binding */ publicPath),\n/* harmony export */ \"sentryDsn\": () => (/* binding */ sentryDsn),\n/* harmony export */ \"slackUrl\": () => (/* binding */ slackUrl),\n/* harmony export */ \"supportUrl\": () => (/* binding */ supportUrl)\n/* harmony export */ });\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var semver__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! semver */ \"./node_modules/semver/index.js\");\n/* harmony import */ var semver__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(semver__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../package.json */ \"./package.json\");\n/* harmony import */ var _utils_lazy_initialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/lazy-initialized */ \"./src/common/utils/lazy-initialized.ts\");\n/**\n * Copyright (c) OpenLens Authors. All rights reserved.\n * Licensed under MIT License. See LICENSE in root directory for more information.\n */\nvar _a, _b, _c, _d, _e;\n// App's common configuration for any process (main, renderer, build pipeline, etc.)\n\n\n\n\n/**\n * @deprecated Switch to using isMacInjectable\n */\nconst isMac = process.platform === \"darwin\";\n/**\n * @deprecated Switch to using isWindowsInjectable\n */\nconst isWindows = process.platform === \"win32\";\n/**\n * @deprecated Switch to using isLinuxInjectable\n */\nconst isLinux = process.platform === \"linux\";\nconst isDebugging = [\"true\", \"1\", \"yes\", \"y\", \"on\"].includes(((_a = process.env.DEBUG) !== null && _a !== void 0 ? _a : \"\").toLowerCase());\nconst isSnap = !!process.env.SNAP;\n/**\n * @deprecated Switch to using isTestEnvInjectable\n */\nconst isTestEnv = !!process.env.JEST_WORKER_ID;\n/**\n * @deprecated Switch to using isProductionInjectable\n */\nconst isProduction = \"development\" === \"production\";\n/**\n * @deprecated Switch to using isDevelopmentInjectable\n */\nconst isDevelopment = !isTestEnv && !isProduction;\nconst productName = _package_json__WEBPACK_IMPORTED_MODULE_2__.productName;\n/**\n * @deprecated Switch to using appNameInjectable\n */\nconst appName = `${_package_json__WEBPACK_IMPORTED_MODULE_2__.productName}${isDevelopment ? \"Dev\" : \"\"}`;\nconst publicPath = \"/build/\";\nconst defaultThemeId = \"lens-dark\";\nconst defaultFontSize = 12;\nconst defaultTerminalFontFamily = \"RobotoMono\";\nconst defaultEditorFontFamily = \"RobotoMono\";\n/**\n * @deprecated use `di.inject(normalizedPlatformInjectable)` instead\n */\nconst normalizedPlatform = (() => {\n switch (process.platform) {\n case \"darwin\":\n return \"darwin\";\n case \"linux\":\n return \"linux\";\n case \"win32\":\n return \"windows\";\n default:\n throw new Error(`platform=${process.platform} is unsupported`);\n }\n})();\n/**\n * @deprecated use `di.inject(bundledBinariesNormalizedArchInjectable)` instead\n */\nconst normalizedArch = (() => {\n switch (process.arch) {\n case \"arm64\":\n return \"arm64\";\n case \"x64\":\n case \"amd64\":\n return \"x64\";\n case \"386\":\n case \"x32\":\n case \"ia32\":\n return \"ia32\";\n default:\n throw new Error(`arch=${process.arch} is unsupported`);\n }\n})();\nfunction getBinaryName(name, { forPlatform = normalizedPlatform } = {}) {\n if (forPlatform === \"windows\") {\n return `${name}.exe`;\n }\n return name;\n}\nconst resourcesDir = (0,_utils_lazy_initialized__WEBPACK_IMPORTED_MODULE_3__.lazyInitialized)(() => (isProduction\n ? process.resourcesPath\n : path__WEBPACK_IMPORTED_MODULE_0___default().join(process.cwd(), \"binaries\", \"client\", normalizedPlatform)));\n/**\n * @deprecated for being explicit side effect.\n */\nconst baseBinariesDir = (0,_utils_lazy_initialized__WEBPACK_IMPORTED_MODULE_3__.lazyInitialized)(() => path__WEBPACK_IMPORTED_MODULE_0___default().join(resourcesDir.get(), normalizedArch));\n/**\n * @deprecated for being explicit side effect.\n */\nconst kubeAuthProxyBinaryName = getBinaryName(\"lens-k8s-proxy\");\n/**\n * @deprecated for being explicit side effect.\n */\nconst helmBinaryName = getBinaryName(\"helm\");\n/**\n * @deprecated for being explicit side effect.\n */\nconst helmBinaryPath = (0,_utils_lazy_initialized__WEBPACK_IMPORTED_MODULE_3__.lazyInitialized)(() => path__WEBPACK_IMPORTED_MODULE_0___default().join(baseBinariesDir.get(), helmBinaryName));\n// Apis\nconst apiPrefix = \"/api\"; // local router apis\nconst apiKubePrefix = \"/api-kube\"; // k8s cluster apis\n// Links\nconst issuesTrackerUrl = \"https://github.com/lensapp/lens/issues\";\nconst slackUrl = \"https://join.slack.com/t/k8slens/shared_invite/zt-wcl8jq3k-68R5Wcmk1o95MLBE5igUDQ\";\nconst supportUrl = \"https://docs.k8slens.dev/latest/support/\";\nconst lensWebsiteWeblinkId = \"lens-website-link\";\nconst lensDocumentationWeblinkId = \"lens-documentation-link\";\nconst lensSlackWeblinkId = \"lens-slack-link\";\nconst lensTwitterWeblinkId = \"lens-twitter-link\";\nconst lensBlogWeblinkId = \"lens-blog-link\";\nconst kubernetesDocumentationWeblinkId = \"kubernetes-documentation-link\";\nconst appSemVer = new semver__WEBPACK_IMPORTED_MODULE_1__.SemVer(_package_json__WEBPACK_IMPORTED_MODULE_2__.version);\nconst docsUrl = \"https://docs.k8slens.dev/main
|
|
33445
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"apiKubePrefix\": () => (/* binding */ apiKubePrefix),\n/* harmony export */ \"apiPrefix\": () => (/* binding */ apiPrefix),\n/* harmony export */ \"appName\": () => (/* binding */ appName),\n/* harmony export */ \"appSemVer\": () => (/* binding */ appSemVer),\n/* harmony export */ \"baseBinariesDir\": () => (/* binding */ baseBinariesDir),\n/* harmony export */ \"contentSecurityPolicy\": () => (/* binding */ contentSecurityPolicy),\n/* harmony export */ \"defaultEditorFontFamily\": () => (/* binding */ defaultEditorFontFamily),\n/* harmony export */ \"defaultFontSize\": () => (/* binding */ defaultFontSize),\n/* harmony export */ \"defaultTerminalFontFamily\": () => (/* binding */ defaultTerminalFontFamily),\n/* harmony export */ \"defaultThemeId\": () => (/* binding */ defaultThemeId),\n/* harmony export */ \"docsUrl\": () => (/* binding */ docsUrl),\n/* harmony export */ \"getBinaryName\": () => (/* binding */ getBinaryName),\n/* harmony export */ \"helmBinaryName\": () => (/* binding */ helmBinaryName),\n/* harmony export */ \"helmBinaryPath\": () => (/* binding */ helmBinaryPath),\n/* harmony export */ \"isDebugging\": () => (/* binding */ isDebugging),\n/* harmony export */ \"isDevelopment\": () => (/* binding */ isDevelopment),\n/* harmony export */ \"isLinux\": () => (/* binding */ isLinux),\n/* harmony export */ \"isMac\": () => (/* binding */ isMac),\n/* harmony export */ \"isProduction\": () => (/* binding */ isProduction),\n/* harmony export */ \"isSnap\": () => (/* binding */ isSnap),\n/* harmony export */ \"isTestEnv\": () => (/* binding */ isTestEnv),\n/* harmony export */ \"isWindows\": () => (/* binding */ isWindows),\n/* harmony export */ \"issuesTrackerUrl\": () => (/* binding */ issuesTrackerUrl),\n/* harmony export */ \"kubeAuthProxyBinaryName\": () => (/* binding */ kubeAuthProxyBinaryName),\n/* harmony export */ \"kubernetesDocumentationWeblinkId\": () => (/* binding */ kubernetesDocumentationWeblinkId),\n/* harmony export */ \"lensBlogWeblinkId\": () => (/* binding */ lensBlogWeblinkId),\n/* harmony export */ \"lensDocumentationWeblinkId\": () => (/* binding */ lensDocumentationWeblinkId),\n/* harmony export */ \"lensSlackWeblinkId\": () => (/* binding */ lensSlackWeblinkId),\n/* harmony export */ \"lensTwitterWeblinkId\": () => (/* binding */ lensTwitterWeblinkId),\n/* harmony export */ \"lensWebsiteWeblinkId\": () => (/* binding */ lensWebsiteWeblinkId),\n/* harmony export */ \"normalizedArch\": () => (/* binding */ normalizedArch),\n/* harmony export */ \"normalizedPlatform\": () => (/* binding */ normalizedPlatform),\n/* harmony export */ \"productName\": () => (/* binding */ productName),\n/* harmony export */ \"publicPath\": () => (/* binding */ publicPath),\n/* harmony export */ \"sentryDsn\": () => (/* binding */ sentryDsn),\n/* harmony export */ \"slackUrl\": () => (/* binding */ slackUrl),\n/* harmony export */ \"supportUrl\": () => (/* binding */ supportUrl)\n/* harmony export */ });\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var semver__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! semver */ \"./node_modules/semver/index.js\");\n/* harmony import */ var semver__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(semver__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../package.json */ \"./package.json\");\n/* harmony import */ var _utils_lazy_initialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/lazy-initialized */ \"./src/common/utils/lazy-initialized.ts\");\n/**\n * Copyright (c) OpenLens Authors. All rights reserved.\n * Licensed under MIT License. See LICENSE in root directory for more information.\n */\nvar _a, _b, _c, _d, _e;\n// App's common configuration for any process (main, renderer, build pipeline, etc.)\n\n\n\n\n/**\n * @deprecated Switch to using isMacInjectable\n */\nconst isMac = process.platform === \"darwin\";\n/**\n * @deprecated Switch to using isWindowsInjectable\n */\nconst isWindows = process.platform === \"win32\";\n/**\n * @deprecated Switch to using isLinuxInjectable\n */\nconst isLinux = process.platform === \"linux\";\nconst isDebugging = [\"true\", \"1\", \"yes\", \"y\", \"on\"].includes(((_a = process.env.DEBUG) !== null && _a !== void 0 ? _a : \"\").toLowerCase());\nconst isSnap = !!process.env.SNAP;\n/**\n * @deprecated Switch to using isTestEnvInjectable\n */\nconst isTestEnv = !!process.env.JEST_WORKER_ID;\n/**\n * @deprecated Switch to using isProductionInjectable\n */\nconst isProduction = \"development\" === \"production\";\n/**\n * @deprecated Switch to using isDevelopmentInjectable\n */\nconst isDevelopment = !isTestEnv && !isProduction;\nconst productName = _package_json__WEBPACK_IMPORTED_MODULE_2__.productName;\n/**\n * @deprecated Switch to using appNameInjectable\n */\nconst appName = `${_package_json__WEBPACK_IMPORTED_MODULE_2__.productName}${isDevelopment ? \"Dev\" : \"\"}`;\nconst publicPath = \"/build/\";\nconst defaultThemeId = \"lens-dark\";\nconst defaultFontSize = 12;\nconst defaultTerminalFontFamily = \"RobotoMono\";\nconst defaultEditorFontFamily = \"RobotoMono\";\n/**\n * @deprecated use `di.inject(normalizedPlatformInjectable)` instead\n */\nconst normalizedPlatform = (() => {\n switch (process.platform) {\n case \"darwin\":\n return \"darwin\";\n case \"linux\":\n return \"linux\";\n case \"win32\":\n return \"windows\";\n default:\n throw new Error(`platform=${process.platform} is unsupported`);\n }\n})();\n/**\n * @deprecated use `di.inject(bundledBinariesNormalizedArchInjectable)` instead\n */\nconst normalizedArch = (() => {\n switch (process.arch) {\n case \"arm64\":\n return \"arm64\";\n case \"x64\":\n case \"amd64\":\n return \"x64\";\n case \"386\":\n case \"x32\":\n case \"ia32\":\n return \"ia32\";\n default:\n throw new Error(`arch=${process.arch} is unsupported`);\n }\n})();\nfunction getBinaryName(name, { forPlatform = normalizedPlatform } = {}) {\n if (forPlatform === \"windows\") {\n return `${name}.exe`;\n }\n return name;\n}\nconst resourcesDir = (0,_utils_lazy_initialized__WEBPACK_IMPORTED_MODULE_3__.lazyInitialized)(() => (isProduction\n ? process.resourcesPath\n : path__WEBPACK_IMPORTED_MODULE_0___default().join(process.cwd(), \"binaries\", \"client\", normalizedPlatform)));\n/**\n * @deprecated for being explicit side effect.\n */\nconst baseBinariesDir = (0,_utils_lazy_initialized__WEBPACK_IMPORTED_MODULE_3__.lazyInitialized)(() => path__WEBPACK_IMPORTED_MODULE_0___default().join(resourcesDir.get(), normalizedArch));\n/**\n * @deprecated for being explicit side effect.\n */\nconst kubeAuthProxyBinaryName = getBinaryName(\"lens-k8s-proxy\");\n/**\n * @deprecated for being explicit side effect.\n */\nconst helmBinaryName = getBinaryName(\"helm\");\n/**\n * @deprecated for being explicit side effect.\n */\nconst helmBinaryPath = (0,_utils_lazy_initialized__WEBPACK_IMPORTED_MODULE_3__.lazyInitialized)(() => path__WEBPACK_IMPORTED_MODULE_0___default().join(baseBinariesDir.get(), helmBinaryName));\n// Apis\nconst apiPrefix = \"/api\"; // local router apis\nconst apiKubePrefix = \"/api-kube\"; // k8s cluster apis\n// Links\nconst issuesTrackerUrl = \"https://github.com/lensapp/lens/issues\";\nconst slackUrl = \"https://join.slack.com/t/k8slens/shared_invite/zt-wcl8jq3k-68R5Wcmk1o95MLBE5igUDQ\";\nconst supportUrl = \"https://docs.k8slens.dev/latest/support/\";\nconst lensWebsiteWeblinkId = \"lens-website-link\";\nconst lensDocumentationWeblinkId = \"lens-documentation-link\";\nconst lensSlackWeblinkId = \"lens-slack-link\";\nconst lensTwitterWeblinkId = \"lens-twitter-link\";\nconst lensBlogWeblinkId = \"lens-blog-link\";\nconst kubernetesDocumentationWeblinkId = \"kubernetes-documentation-link\";\nconst appSemVer = new semver__WEBPACK_IMPORTED_MODULE_1__.SemVer(_package_json__WEBPACK_IMPORTED_MODULE_2__.version);\nconst docsUrl = \"https://docs.k8slens.dev/main\";\nconst sentryDsn = (_c = (_b = _package_json__WEBPACK_IMPORTED_MODULE_2__.config) === null || _b === void 0 ? void 0 : _b.sentryDsn) !== null && _c !== void 0 ? _c : \"\";\nconst contentSecurityPolicy = (_e = (_d = _package_json__WEBPACK_IMPORTED_MODULE_2__.config) === null || _d === void 0 ? void 0 : _d.contentSecurityPolicy) !== null && _e !== void 0 ? _e : \"\";\n\n\n//# sourceURL=webpack://open-lens/./src/common/vars.ts?");
|
|
33435
33446
|
|
|
33436
33447
|
/***/ }),
|
|
33437
33448
|
|
|
@@ -35664,7 +35675,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
35664
35675
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
35665
35676
|
|
|
35666
35677
|
"use strict";
|
|
35667
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ReactiveDuration\": () => (/* binding */ ReactiveDuration)\n/* harmony export */ });\n/* harmony import */ var
|
|
35678
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ReactiveDuration\": () => (/* binding */ ReactiveDuration)\n/* harmony export */ });\n/* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! mobx-react */ \"./node_modules/mobx-react/dist/mobxreact.esm.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils */ \"./src/renderer/utils/index.ts\");\n/* harmony import */ var _common_utils_reactive_now_reactive_now__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/utils/reactive-now/reactive-now */ \"./src/common/utils/reactive-now/reactive-now.ts\");\n/**\n * Copyright (c) OpenLens Authors. All rights reserved.\n * Licensed under MIT License. See LICENSE in root directory for more information.\n */\n\n\n\n\n/**\n * This function computes a resonable update\n */\nfunction computeUpdateInterval(creationTimestampEpoch) {\n const seconds = Math.floor((Date.now() - creationTimestampEpoch) / 1000);\n const minutes = Math.floor(seconds / 60);\n if (minutes < 10) {\n // Update every second\n return 1000;\n }\n return 60 * 1000;\n}\nconst ReactiveDuration = (0,mobx_react__WEBPACK_IMPORTED_MODULE_3__.observer)(({ timestamp, compact = true }) => {\n if (!timestamp) {\n return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, \"<unknown>\");\n }\n const timestampSeconds = new Date(timestamp).getTime();\n return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_utils__WEBPACK_IMPORTED_MODULE_1__.formatDuration)((0,_common_utils_reactive_now_reactive_now__WEBPACK_IMPORTED_MODULE_2__.reactiveNow)(computeUpdateInterval(timestampSeconds)) - timestampSeconds, compact)));\n});\n\n\n//# sourceURL=webpack://open-lens/./src/renderer/components/duration/reactive-duration.tsx?");
|
|
35668
35679
|
|
|
35669
35680
|
/***/ }),
|
|
35670
35681
|
|
|
@@ -39129,7 +39140,7 @@ eval("module.exports = JSON.parse('{\"name\":\"winston\",\"description\":\"A log
|
|
|
39129
39140
|
/***/ ((module) => {
|
|
39130
39141
|
|
|
39131
39142
|
"use strict";
|
|
39132
|
-
eval("module.exports = JSON.parse('{\"name\":\"open-lens\",\"productName\":\"OpenLens\",\"description\":\"OpenLens - Open Source IDE for Kubernetes\",\"homepage\":\"https://github.com/lensapp/lens\",\"version\":\"5.6.0-alpha.5\",\"main\":\"static/build/main.js\",\"copyright\":\"© 2022 OpenLens Authors\",\"license\":\"MIT\",\"author\":{\"name\":\"OpenLens Authors\",\"email\":\"info@k8slens.dev\"},\"scripts\":{\"dev\":\"concurrently -i -k \\\\\"yarn run dev-run -C\\\\\" yarn:dev:*\",\"dev-build\":\"concurrently yarn:compile:*\",\"debug-build\":\"concurrently yarn:compile:main yarn:compile:extension-types\",\"dev-run\":\"nodemon --watch ./static/build/main.js --exec \\\\\"electron --remote-debugging-port=9223 --inspect .\\\\\"\",\"dev:main\":\"yarn run compile:main --watch --progress\",\"dev:renderer\":\"yarn run ts-node webpack/dev-server.ts\",\"compile\":\"env NODE_ENV=production concurrently yarn:compile:*\",\"compile:main\":\"yarn run webpack --config webpack/main.ts\",\"compile:renderer\":\"yarn run webpack --config webpack/renderer.ts\",\"compile:extension-types\":\"yarn run webpack --config webpack/extensions.ts\",\"npm:fix-build-version\":\"yarn run ts-node build/set_build_version.ts\",\"npm:fix-package-version\":\"yarn run ts-node build/set_npm_version.ts\",\"build:linux\":\"yarn run compile && electron-builder --linux --dir\",\"build:mac\":\"yarn run compile && electron-builder --mac --dir\",\"build:win\":\"yarn run compile && electron-builder --win --dir\",\"integration\":\"jest --runInBand --detectOpenHandles --forceExit integration\",\"test:unit\":\"func() { jest ${1} --watch --testPathIgnorePatterns integration; }; func\",\"test:integration\":\"func() { jest ${1:-xyz} --watch --runInBand --detectOpenHandles --forceExit --modulePaths=[\\\\\"<rootDir>/integration/\\\\\"]; }; func\",\"dist\":\"yarn run compile && electron-builder --publish onTag\",\"dist:dir\":\"yarn run dist --dir -c.compression=store -c.mac.identity=null\",\"download:binaries\":\"yarn run ts-node build/download_binaries.ts\",\"build:tray-icons\":\"yarn run ts-node build/generate-tray-icons.ts\",\"build:theme-vars\":\"yarn run ts-node build/build_theme_vars.ts\",\"lint\":\"PROD=true yarn run eslint --ext js,ts,tsx --max-warnings=0 .\",\"lint:fix\":\"yarn run lint --fix\",\"mkdocs-serve-local\":\"docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -it -p 8000:8000 -v ${PWD}:/docs mkdocs-serve-local:latest\",\"verify-docs\":\"docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -v ${PWD}:/docs mkdocs-serve-local:latest build --strict\",\"typedocs-extensions-api\":\"yarn run typedoc src/extensions/extension-api.ts\",\"version-checkout\":\"cat package.json | jq \\'.version\\' -r | xargs printf \\\\\"release/v%s\\\\\" | xargs git checkout -b\",\"version-commit\":\"cat package.json | jq \\'.version\\' -r | xargs printf \\\\\"release v%s\\\\\" | git commit --no-edit -s -F -\",\"version\":\"yarn run version-checkout && git add package.json && yarn run version-commit\",\"postversion\":\"git push --set-upstream ${GIT_REMOTE:-origin} release/v$npm_package_version\"},\"config\":{\"k8sProxyVersion\":\"0.2.1\",\"bundledKubectlVersion\":\"1.23.3\",\"bundledHelmVersion\":\"3.7.2\",\"sentryDsn\":\"\",\"contentSecurityPolicy\":\"script-src \\'unsafe-eval\\' \\'self\\'; frame-src http://*.localhost:*/; img-src * data:\"},\"engines\":{\"node\":\">=16 <17\"},\"jest\":{\"collectCoverage\":false,\"verbose\":true,\"transform\":{\"^.+\\\\\\\\.(t|j)sx?$\":[\"@swc/jest\"]},\"testEnvironment\":\"jsdom\",\"resolver\":\"<rootDir>/src/jest-28-resolver.js\",\"moduleNameMapper\":{\"\\\\\\\\.(css|scss)$\":\"identity-obj-proxy\",\"\\\\\\\\.(svg|png|jpg|eot|woff2?|ttf)$\":\"<rootDir>/__mocks__/assetMock.ts\"},\"modulePathIgnorePatterns\":[\"<rootDir>/dist\",\"<rootDir>/src/extensions/npm\"],\"setupFiles\":[\"<rootDir>/src/jest.setup.ts\",\"jest-canvas-mock\"],\"globalSetup\":\"<rootDir>/src/jest.timezone.ts\",\"setupFilesAfterEnv\":[\"<rootDir>/src/jest-after-env.setup.ts\"],\"runtime\":\"@side/jest-runtime\"},\"build\":{\"generateUpdatesFilesForAllChannels\":true,\"files\":[\"static/build/main.js\"],\"afterSign\":\"build/notarize.js\",\"extraResources\":[{\"from\":\"locales/\",\"to\":\"locales/\",\"filter\":\"**/*.js\"},{\"from\":\"static/\",\"to\":\"static/\",\"filter\":\"!**/main.js\"},{\"from\":\"build/tray\",\"to\":\"static/icons\",\"filter\":\"*.png\"},{\"from\":\"extensions/\",\"to\":\"./extensions/\",\"filter\":[\"**/*.tgz\",\"**/package.json\",\"!**/node_modules\"]},{\"from\":\"templates/\",\"to\":\"./templates/\",\"filter\":\"**/*.yaml\"},\"LICENSE\"],\"linux\":{\"category\":\"Network\",\"artifactName\":\"${productName}-${version}.${arch}.${ext}\",\"target\":[\"deb\",\"rpm\",\"AppImage\"],\"extraResources\":[{\"from\":\"binaries/client/linux/${arch}/kubectl\",\"to\":\"./${arch}/kubectl\"},{\"from\":\"binaries/client/linux/${arch}/lens-k8s-proxy\",\"to\":\"./${arch}/lens-k8s-proxy\"},{\"from\":\"binaries/client/linux/${arch}/helm\",\"to\":\"./${arch}/helm\"}]},\"rpm\":{\"fpm\":[\"--rpm-rpmbuild-define=%define _build_id_links none\"]},\"mac\":{\"hardenedRuntime\":true,\"gatekeeperAssess\":false,\"entitlements\":\"build/entitlements.mac.plist\",\"entitlementsInherit\":\"build/entitlements.mac.plist\",\"extraResources\":[{\"from\":\"binaries/client/darwin/${arch}/kubectl\",\"to\":\"./${arch}/kubectl\"},{\"from\":\"binaries/client/darwin/${arch}/lens-k8s-proxy\",\"to\":\"./${arch}/lens-k8s-proxy\"},{\"from\":\"binaries/client/darwin/${arch}/helm\",\"to\":\"./${arch}/helm\"}]},\"win\":{\"target\":[\"nsis\"],\"extraResources\":[{\"from\":\"binaries/client/windows/${arch}/kubectl.exe\",\"to\":\"./${arch}/kubectl.exe\"},{\"from\":\"binaries/client/windows/${arch}/lens-k8s-proxy.exe\",\"to\":\"./${arch}/lens-k8s-proxy.exe\"},{\"from\":\"binaries/client/windows/${arch}/helm.exe\",\"to\":\"./${arch}/helm.exe\"}]},\"nsis\":{\"include\":\"build/installer.nsh\",\"oneClick\":false,\"allowElevation\":true,\"createStartMenuShortcut\":true,\"allowToChangeInstallationDirectory\":true},\"protocols\":{\"name\":\"Lens Protocol Handler\",\"schemes\":[\"lens\"],\"role\":\"Viewer\"}},\"dependencies\":{\"@astronautlabs/jsonpath\":\"^1.1.0\",\"@hapi/call\":\"^9.0.0\",\"@hapi/subtext\":\"^7.0.4\",\"@kubernetes/client-node\":\"^0.16.3\",\"@material-ui/styles\":\"^4.11.5\",\"@ogre-tools/fp\":\"9.0.0\",\"@ogre-tools/injectable\":\"9.0.0\",\"@ogre-tools/injectable-extension-for-auto-registration\":\"9.0.0\",\"@ogre-tools/injectable-extension-for-mobx\":\"9.0.0\",\"@ogre-tools/injectable-react\":\"9.0.0\",\"@sentry/electron\":\"^3.0.7\",\"@sentry/integrations\":\"^6.19.3\",\"@side/jest-runtime\":\"^1.0.1\",\"@types/circular-dependency-plugin\":\"5.0.5\",\"abort-controller\":\"^3.0.0\",\"auto-bind\":\"^4.0.0\",\"await-lock\":\"^2.2.2\",\"byline\":\"^5.0.0\",\"chokidar\":\"^3.5.3\",\"conf\":\"^7.1.2\",\"crypto-js\":\"^4.1.1\",\"electron-devtools-installer\":\"^3.2.0\",\"electron-updater\":\"^4.6.5\",\"electron-window-state\":\"^5.0.3\",\"filehound\":\"^1.17.6\",\"fs-extra\":\"^9.0.1\",\"glob-to-regexp\":\"^0.4.1\",\"got\":\"^11.8.5\",\"grapheme-splitter\":\"^1.0.4\",\"handlebars\":\"^4.7.7\",\"history\":\"^4.10.1\",\"http-proxy\":\"^1.18.1\",\"immer\":\"^9.0.15\",\"joi\":\"^17.6.0\",\"js-yaml\":\"^4.1.0\",\"jsdom\":\"^16.7.0\",\"lodash\":\"^4.17.15\",\"mac-ca\":\"^1.0.6\",\"marked\":\"^4.0.17\",\"md5-file\":\"^5.0.0\",\"mobx\":\"^6.6.1\",\"mobx-observable-history\":\"^2.0.3\",\"mobx-react\":\"^7.5.1\",\"mobx-utils\":\"^6.0.4\",\"mock-fs\":\"^5.1.2\",\"moment\":\"^2.29.3\",\"moment-timezone\":\"^0.5.34\",\"monaco-editor\":\"^0.29.1\",\"monaco-editor-webpack-plugin\":\"^5.0.0\",\"node-fetch\":\"lensapp/node-fetch#2.x\",\"node-pty\":\"^0.11.0-beta19\",\"npm\":\"^6.14.17\",\"p-limit\":\"^3.1.0\",\"path-to-regexp\":\"^6.2.0\",\"proper-lockfile\":\"^4.1.2\",\"react\":\"^17.0.2\",\"react-dom\":\"^17.0.2\",\"react-material-ui-carousel\":\"^2.3.11\",\"react-router\":\"^5.2.0\",\"react-virtualized-auto-sizer\":\"^1.0.6\",\"readable-stream\":\"^3.6.0\",\"request\":\"^2.88.2\",\"request-promise-native\":\"^1.0.9\",\"rfc6902\":\"^4.0.2\",\"selfsigned\":\"^2.0.1\",\"semver\":\"^7.3.7\",\"shell-env\":\"^3.0.1\",\"spdy\":\"^4.0.2\",\"tar\":\"^6.1.11\",\"tcp-port-used\":\"^1.0.2\",\"tempy\":\"1.0.1\",\"typed-regex\":\"^0.0.8\",\"url-parse\":\"^1.5.10\",\"uuid\":\"^8.3.2\",\"win-ca\":\"^3.5.0\",\"winston\":\"^3.8.0\",\"winston-console-format\":\"^1.0.8\",\"winston-transport-browserconsole\":\"^1.0.5\",\"ws\":\"^8.8.0\"},\"devDependencies\":{\"@async-fn/jest\":\"1.6.1\",\"@material-ui/core\":\"^4.12.3\",\"@material-ui/icons\":\"^4.11.2\",\"@material-ui/lab\":\"^4.0.0-alpha.60\",\"@pmmmwh/react-refresh-webpack-plugin\":\"^0.5.7\",\"@sentry/types\":\"^6.19.7\",\"@swc/core\":\"^1.2.197\",\"@swc/jest\":\"^0.2.21\",\"@testing-library/dom\":\"^7.31.2\",\"@testing-library/jest-dom\":\"^5.16.4\",\"@testing-library/react\":\"^12.1.5\",\"@testing-library/user-event\":\"^13.5.0\",\"@types/byline\":\"^4.2.33\",\"@types/chart.js\":\"^2.9.36\",\"@types/circular-dependency-plugin\":\"5.0.5\",\"@types/cli-progress\":\"^3.11.0\",\"@types/color\":\"^3.0.3\",\"@types/command-line-args\":\"^5.2.0\",\"@types/crypto-js\":\"^3.1.47\",\"@types/dompurify\":\"^2.3.3\",\"@types/electron-devtools-installer\":\"^2.2.1\",\"@types/fs-extra\":\"^9.0.13\",\"@types/glob-to-regexp\":\"^0.4.1\",\"@types/gunzip-maybe\":\"^1.4.0\",\"@types/hapi__call\":\"^9.0.0\",\"@types/hapi__subtext\":\"^7.0.0\",\"@types/html-webpack-plugin\":\"^3.2.6\",\"@types/http-proxy\":\"^1.17.9\",\"@types/jest\":\"^28.1.3\",\"@types/js-yaml\":\"^4.0.5\",\"@types/jsdom\":\"^16.2.14\",\"@types/lodash\":\"^4.14.181\",\"@types/marked\":\"^4.0.3\",\"@types/md5-file\":\"^4.0.2\",\"@types/mini-css-extract-plugin\":\"^2.4.0\",\"@types/mock-fs\":\"^4.13.1\",\"@types/node\":\"^16.11.41\",\"@types/node-fetch\":\"^2.6.2\",\"@types/npm\":\"^2.0.32\",\"@types/proper-lockfile\":\"^4.1.2\",\"@types/randomcolor\":\"^0.5.6\",\"@types/react\":\"^17.0.45\",\"@types/react-beautiful-dnd\":\"^13.1.2\",\"@types/react-dom\":\"^17.0.16\",\"@types/react-router\":\"^5.1.18\",\"@types/react-router-dom\":\"^5.3.3\",\"@types/react-table\":\"^7.7.12\",\"@types/react-virtualized-auto-sizer\":\"^1.0.1\",\"@types/react-window\":\"^1.8.5\",\"@types/readable-stream\":\"^2.3.13\",\"@types/request\":\"^2.48.7\",\"@types/request-promise-native\":\"^1.0.18\",\"@types/semver\":\"^7.3.10\",\"@types/sharp\":\"^0.30.4\",\"@types/spdy\":\"^3.4.5\",\"@types/tar\":\"^4.0.5\",\"@types/tar-stream\":\"^2.2.2\",\"@types/tcp-port-used\":\"^1.0.1\",\"@types/tempy\":\"^0.3.0\",\"@types/triple-beam\":\"^1.3.2\",\"@types/url-parse\":\"^1.4.8\",\"@types/uuid\":\"^8.3.4\",\"@types/webpack\":\"^5.28.0\",\"@types/webpack-dev-server\":\"^4.7.2\",\"@types/webpack-env\":\"^1.17.0\",\"@types/webpack-node-externals\":\"^2.5.3\",\"@typescript-eslint/eslint-plugin\":\"^5.29.0\",\"@typescript-eslint/parser\":\"^5.29.0\",\"ansi_up\":\"^5.1.0\",\"chart.js\":\"^2.9.4\",\"circular-dependency-plugin\":\"^5.2.2\",\"cli-progress\":\"^3.11.2\",\"color\":\"^3.2.1\",\"command-line-args\":\"^5.2.1\",\"concurrently\":\"^7.2.2\",\"css-loader\":\"^6.7.1\",\"deepdash\":\"^5.3.9\",\"dompurify\":\"^2.3.8\",\"electron\":\"^15.5.7\",\"electron-builder\":\"^23.1.0\",\"electron-notarize\":\"^0.3.0\",\"esbuild\":\"^0.14.47\",\"esbuild-loader\":\"^2.19.0\",\"eslint\":\"^8.18.0\",\"eslint-plugin-header\":\"^3.1.1\",\"eslint-plugin-import\":\"^2.26.0\",\"eslint-plugin-react\":\"^7.30.1\",\"eslint-plugin-react-hooks\":\"^4.6.0\",\"eslint-plugin-unused-imports\":\"^2.0.0\",\"flex.box\":\"^3.4.4\",\"fork-ts-checker-webpack-plugin\":\"^6.5.2\",\"gunzip-maybe\":\"^1.4.2\",\"html-webpack-plugin\":\"^5.5.0\",\"identity-obj-proxy\":\"^3.0.0\",\"ignore-loader\":\"^0.1.2\",\"include-media\":\"^1.4.9\",\"jest\":\"^28.1.2\",\"jest-canvas-mock\":\"^2.3.1\",\"jest-environment-jsdom\":\"^28.1.1\",\"jest-fetch-mock\":\"^3.0.3\",\"jest-mock-extended\":\"^2.0.6\",\"make-plural\":\"^6.2.2\",\"mini-css-extract-plugin\":\"^2.6.1\",\"mock-http\":\"^1.1.0\",\"node-gyp\":\"7.1.2\",\"node-loader\":\"^2.0.0\",\"nodemon\":\"^2.0.18\",\"playwright\":\"^1.23.0\",\"postcss\":\"^8.4.14\",\"postcss-loader\":\"^6.2.1\",\"randomcolor\":\"^0.6.2\",\"react-beautiful-dnd\":\"^13.1.0\",\"react-refresh\":\"^0.13.0\",\"react-refresh-typescript\":\"^2.0.5\",\"react-router-dom\":\"^5.3.3\",\"react-select\":\"^5.3.2\",\"react-select-event\":\"^5.5.0\",\"react-table\":\"^7.8.0\",\"react-window\":\"^1.8.7\",\"sass\":\"^1.53.0\",\"sass-loader\":\"^12.6.0\",\"sharp\":\"^0.30.7\",\"style-loader\":\"^3.3.1\",\"tailwindcss\":\"^3.1.4\",\"tar-stream\":\"^2.2.0\",\"ts-loader\":\"^9.3.1\",\"ts-node\":\"^10.8.1\",\"type-fest\":\"^2.14.0\",\"typed-emitter\":\"^1.4.0\",\"typedoc\":\"0.23.2\",\"typedoc-plugin-markdown\":\"^3.13.1\",\"typescript\":\"^4.7.4\",\"typescript-plugin-css-modules\":\"^3.4.0\",\"webpack\":\"^5.73.0\",\"webpack-cli\":\"^4.9.2\",\"webpack-dev-server\":\"^4.9.2\",\"webpack-node-externals\":\"^3.0.0\",\"xterm\":\"^4.18.0\",\"xterm-addon-fit\":\"^0.5.0\"}}');\n\n//# sourceURL=webpack://open-lens/./package.json?");
|
|
39143
|
+
eval("module.exports = JSON.parse('{\"name\":\"open-lens\",\"productName\":\"OpenLens\",\"description\":\"OpenLens - Open Source IDE for Kubernetes\",\"homepage\":\"https://github.com/lensapp/lens\",\"version\":\"5.6.0-alpha.5\",\"main\":\"static/build/main.js\",\"copyright\":\"© 2022 OpenLens Authors\",\"license\":\"MIT\",\"author\":{\"name\":\"OpenLens Authors\",\"email\":\"info@k8slens.dev\"},\"scripts\":{\"dev\":\"concurrently -i -k \\\\\"yarn run dev-run -C\\\\\" yarn:dev:*\",\"dev-build\":\"concurrently yarn:compile:*\",\"debug-build\":\"concurrently yarn:compile:main yarn:compile:extension-types\",\"dev-run\":\"nodemon --watch ./static/build/main.js --exec \\\\\"electron --remote-debugging-port=9223 --inspect .\\\\\"\",\"dev:main\":\"yarn run compile:main --watch --progress\",\"dev:renderer\":\"yarn run ts-node webpack/dev-server.ts\",\"compile\":\"env NODE_ENV=production concurrently yarn:compile:*\",\"compile:main\":\"yarn run webpack --config webpack/main.ts\",\"compile:renderer\":\"yarn run webpack --config webpack/renderer.ts\",\"compile:extension-types\":\"yarn run webpack --config webpack/extensions.ts\",\"npm:fix-build-version\":\"yarn run ts-node build/set_build_version.ts\",\"npm:fix-package-version\":\"yarn run ts-node build/set_npm_version.ts\",\"build:linux\":\"yarn run compile && electron-builder --linux --dir\",\"build:mac\":\"yarn run compile && electron-builder --mac --dir\",\"build:win\":\"yarn run compile && electron-builder --win --dir\",\"integration\":\"jest --runInBand --detectOpenHandles --forceExit integration\",\"test:unit\":\"func() { jest ${1} --watch --testPathIgnorePatterns integration; }; func\",\"test:integration\":\"func() { jest ${1:-xyz} --watch --runInBand --detectOpenHandles --forceExit --modulePaths=[\\\\\"<rootDir>/integration/\\\\\"]; }; func\",\"dist\":\"yarn run compile && electron-builder --publish onTag\",\"dist:dir\":\"yarn run dist --dir -c.compression=store -c.mac.identity=null\",\"download:binaries\":\"yarn run ts-node build/download_binaries.ts\",\"build:tray-icons\":\"yarn run ts-node build/generate-tray-icons.ts\",\"build:theme-vars\":\"yarn run ts-node build/build_theme_vars.ts\",\"lint\":\"PROD=true yarn run eslint --ext js,ts,tsx --max-warnings=0 .\",\"lint:fix\":\"yarn run lint --fix\",\"mkdocs-serve-local\":\"docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -it -p 8000:8000 -v ${PWD}:/docs mkdocs-serve-local:latest\",\"verify-docs\":\"docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -v ${PWD}:/docs mkdocs-serve-local:latest build --strict\",\"typedocs-extensions-api\":\"yarn run typedoc src/extensions/extension-api.ts\",\"version-checkout\":\"cat package.json | jq \\'.version\\' -r | xargs printf \\\\\"release/v%s\\\\\" | xargs git checkout -b\",\"version-commit\":\"cat package.json | jq \\'.version\\' -r | xargs printf \\\\\"release v%s\\\\\" | git commit --no-edit -s -F -\",\"version\":\"yarn run version-checkout && git add package.json && yarn run version-commit\",\"postversion\":\"git push --set-upstream ${GIT_REMOTE:-origin} release/v$npm_package_version\"},\"config\":{\"k8sProxyVersion\":\"0.2.1\",\"bundledKubectlVersion\":\"1.23.3\",\"bundledHelmVersion\":\"3.7.2\",\"sentryDsn\":\"\",\"contentSecurityPolicy\":\"script-src \\'unsafe-eval\\' \\'self\\'; frame-src http://*.localhost:*/; img-src * data:\"},\"engines\":{\"node\":\">=16 <17\"},\"jest\":{\"collectCoverage\":false,\"verbose\":true,\"transform\":{\"^.+\\\\\\\\.(t|j)sx?$\":[\"@swc/jest\"]},\"testEnvironment\":\"jsdom\",\"resolver\":\"<rootDir>/src/jest-28-resolver.js\",\"moduleNameMapper\":{\"\\\\\\\\.(css|scss)$\":\"identity-obj-proxy\",\"\\\\\\\\.(svg|png|jpg|eot|woff2?|ttf)$\":\"<rootDir>/__mocks__/assetMock.ts\"},\"modulePathIgnorePatterns\":[\"<rootDir>/dist\",\"<rootDir>/src/extensions/npm\"],\"setupFiles\":[\"<rootDir>/src/jest.setup.ts\",\"jest-canvas-mock\"],\"globalSetup\":\"<rootDir>/src/jest.timezone.ts\",\"setupFilesAfterEnv\":[\"<rootDir>/src/jest-after-env.setup.ts\"],\"runtime\":\"@side/jest-runtime\"},\"build\":{\"generateUpdatesFilesForAllChannels\":true,\"files\":[\"static/build/main.js\"],\"afterSign\":\"build/notarize.js\",\"extraResources\":[{\"from\":\"locales/\",\"to\":\"locales/\",\"filter\":\"**/*.js\"},{\"from\":\"static/\",\"to\":\"static/\",\"filter\":\"!**/main.js\"},{\"from\":\"build/tray\",\"to\":\"static/icons\",\"filter\":\"*.png\"},{\"from\":\"extensions/\",\"to\":\"./extensions/\",\"filter\":[\"**/*.tgz\",\"**/package.json\",\"!**/node_modules\"]},{\"from\":\"templates/\",\"to\":\"./templates/\",\"filter\":\"**/*.yaml\"},\"LICENSE\"],\"linux\":{\"category\":\"Network\",\"artifactName\":\"${productName}-${version}.${arch}.${ext}\",\"target\":[\"deb\",\"rpm\",\"AppImage\"],\"extraResources\":[{\"from\":\"binaries/client/linux/${arch}/kubectl\",\"to\":\"./${arch}/kubectl\"},{\"from\":\"binaries/client/linux/${arch}/lens-k8s-proxy\",\"to\":\"./${arch}/lens-k8s-proxy\"},{\"from\":\"binaries/client/linux/${arch}/helm\",\"to\":\"./${arch}/helm\"}]},\"rpm\":{\"fpm\":[\"--rpm-rpmbuild-define=%define _build_id_links none\"]},\"mac\":{\"hardenedRuntime\":true,\"gatekeeperAssess\":false,\"entitlements\":\"build/entitlements.mac.plist\",\"entitlementsInherit\":\"build/entitlements.mac.plist\",\"extraResources\":[{\"from\":\"binaries/client/darwin/${arch}/kubectl\",\"to\":\"./${arch}/kubectl\"},{\"from\":\"binaries/client/darwin/${arch}/lens-k8s-proxy\",\"to\":\"./${arch}/lens-k8s-proxy\"},{\"from\":\"binaries/client/darwin/${arch}/helm\",\"to\":\"./${arch}/helm\"}]},\"win\":{\"target\":[\"nsis\"],\"extraResources\":[{\"from\":\"binaries/client/windows/${arch}/kubectl.exe\",\"to\":\"./${arch}/kubectl.exe\"},{\"from\":\"binaries/client/windows/${arch}/lens-k8s-proxy.exe\",\"to\":\"./${arch}/lens-k8s-proxy.exe\"},{\"from\":\"binaries/client/windows/${arch}/helm.exe\",\"to\":\"./${arch}/helm.exe\"}]},\"nsis\":{\"include\":\"build/installer.nsh\",\"oneClick\":false,\"allowElevation\":true,\"createStartMenuShortcut\":true,\"allowToChangeInstallationDirectory\":true},\"protocols\":{\"name\":\"Lens Protocol Handler\",\"schemes\":[\"lens\"],\"role\":\"Viewer\"}},\"dependencies\":{\"@astronautlabs/jsonpath\":\"^1.1.0\",\"@hapi/call\":\"^9.0.0\",\"@hapi/subtext\":\"^7.0.4\",\"@kubernetes/client-node\":\"^0.16.3\",\"@material-ui/styles\":\"^4.11.5\",\"@ogre-tools/fp\":\"9.0.0\",\"@ogre-tools/injectable\":\"9.0.0\",\"@ogre-tools/injectable-extension-for-auto-registration\":\"9.0.0\",\"@ogre-tools/injectable-extension-for-mobx\":\"9.0.0\",\"@ogre-tools/injectable-react\":\"9.0.0\",\"@sentry/electron\":\"^3.0.7\",\"@sentry/integrations\":\"^6.19.3\",\"@side/jest-runtime\":\"^1.0.1\",\"@types/circular-dependency-plugin\":\"5.0.5\",\"abort-controller\":\"^3.0.0\",\"auto-bind\":\"^4.0.0\",\"await-lock\":\"^2.2.2\",\"byline\":\"^5.0.0\",\"chokidar\":\"^3.5.3\",\"conf\":\"^7.1.2\",\"crypto-js\":\"^4.1.1\",\"electron-devtools-installer\":\"^3.2.0\",\"electron-updater\":\"^4.6.5\",\"electron-window-state\":\"^5.0.3\",\"filehound\":\"^1.17.6\",\"fs-extra\":\"^9.0.1\",\"glob-to-regexp\":\"^0.4.1\",\"got\":\"^11.8.5\",\"grapheme-splitter\":\"^1.0.4\",\"handlebars\":\"^4.7.7\",\"history\":\"^4.10.1\",\"http-proxy\":\"^1.18.1\",\"immer\":\"^9.0.15\",\"joi\":\"^17.6.0\",\"js-yaml\":\"^4.1.0\",\"jsdom\":\"^16.7.0\",\"lodash\":\"^4.17.15\",\"mac-ca\":\"^1.0.6\",\"marked\":\"^4.0.17\",\"md5-file\":\"^5.0.0\",\"mobx\":\"^6.6.1\",\"mobx-observable-history\":\"^2.0.3\",\"mobx-react\":\"^7.5.1\",\"mobx-utils\":\"^6.0.4\",\"mock-fs\":\"^5.1.2\",\"moment\":\"^2.29.3\",\"moment-timezone\":\"^0.5.34\",\"monaco-editor\":\"^0.29.1\",\"monaco-editor-webpack-plugin\":\"^5.0.0\",\"node-fetch\":\"lensapp/node-fetch#2.x\",\"node-pty\":\"^0.11.0-beta19\",\"npm\":\"^6.14.17\",\"p-limit\":\"^3.1.0\",\"path-to-regexp\":\"^6.2.0\",\"proper-lockfile\":\"^4.1.2\",\"react\":\"^17.0.2\",\"react-dom\":\"^17.0.2\",\"react-material-ui-carousel\":\"^2.3.11\",\"react-router\":\"^5.2.0\",\"react-virtualized-auto-sizer\":\"^1.0.6\",\"readable-stream\":\"^3.6.0\",\"request\":\"^2.88.2\",\"request-promise-native\":\"^1.0.9\",\"rfc6902\":\"^4.0.2\",\"selfsigned\":\"^2.0.1\",\"semver\":\"^7.3.7\",\"shell-env\":\"^3.0.1\",\"spdy\":\"^4.0.2\",\"tar\":\"^6.1.11\",\"tcp-port-used\":\"^1.0.2\",\"tempy\":\"1.0.1\",\"typed-regex\":\"^0.0.8\",\"url-parse\":\"^1.5.10\",\"uuid\":\"^8.3.2\",\"win-ca\":\"^3.5.0\",\"winston\":\"^3.8.0\",\"winston-console-format\":\"^1.0.8\",\"winston-transport-browserconsole\":\"^1.0.5\",\"ws\":\"^8.8.0\"},\"devDependencies\":{\"@async-fn/jest\":\"1.6.1\",\"@material-ui/core\":\"^4.12.3\",\"@material-ui/icons\":\"^4.11.2\",\"@material-ui/lab\":\"^4.0.0-alpha.60\",\"@pmmmwh/react-refresh-webpack-plugin\":\"^0.5.7\",\"@sentry/types\":\"^6.19.7\",\"@swc/core\":\"^1.2.197\",\"@swc/jest\":\"^0.2.21\",\"@testing-library/dom\":\"^7.31.2\",\"@testing-library/jest-dom\":\"^5.16.4\",\"@testing-library/react\":\"^12.1.5\",\"@testing-library/user-event\":\"^13.5.0\",\"@types/byline\":\"^4.2.33\",\"@types/chart.js\":\"^2.9.36\",\"@types/circular-dependency-plugin\":\"5.0.5\",\"@types/cli-progress\":\"^3.11.0\",\"@types/color\":\"^3.0.3\",\"@types/command-line-args\":\"^5.2.0\",\"@types/crypto-js\":\"^3.1.47\",\"@types/dompurify\":\"^2.3.3\",\"@types/electron-devtools-installer\":\"^2.2.1\",\"@types/fs-extra\":\"^9.0.13\",\"@types/glob-to-regexp\":\"^0.4.1\",\"@types/gunzip-maybe\":\"^1.4.0\",\"@types/hapi__call\":\"^9.0.0\",\"@types/hapi__subtext\":\"^7.0.0\",\"@types/html-webpack-plugin\":\"^3.2.6\",\"@types/http-proxy\":\"^1.17.9\",\"@types/jest\":\"^28.1.3\",\"@types/js-yaml\":\"^4.0.5\",\"@types/jsdom\":\"^16.2.14\",\"@types/lodash\":\"^4.14.181\",\"@types/marked\":\"^4.0.3\",\"@types/md5-file\":\"^4.0.2\",\"@types/mini-css-extract-plugin\":\"^2.4.0\",\"@types/mock-fs\":\"^4.13.1\",\"@types/node\":\"^16.11.43\",\"@types/node-fetch\":\"^2.6.2\",\"@types/npm\":\"^2.0.32\",\"@types/proper-lockfile\":\"^4.1.2\",\"@types/randomcolor\":\"^0.5.6\",\"@types/react\":\"^17.0.45\",\"@types/react-beautiful-dnd\":\"^13.1.2\",\"@types/react-dom\":\"^17.0.16\",\"@types/react-router\":\"^5.1.18\",\"@types/react-router-dom\":\"^5.3.3\",\"@types/react-table\":\"^7.7.12\",\"@types/react-virtualized-auto-sizer\":\"^1.0.1\",\"@types/react-window\":\"^1.8.5\",\"@types/readable-stream\":\"^2.3.13\",\"@types/request\":\"^2.48.7\",\"@types/request-promise-native\":\"^1.0.18\",\"@types/semver\":\"^7.3.10\",\"@types/sharp\":\"^0.30.4\",\"@types/spdy\":\"^3.4.5\",\"@types/tar\":\"^4.0.5\",\"@types/tar-stream\":\"^2.2.2\",\"@types/tcp-port-used\":\"^1.0.1\",\"@types/tempy\":\"^0.3.0\",\"@types/triple-beam\":\"^1.3.2\",\"@types/url-parse\":\"^1.4.8\",\"@types/uuid\":\"^8.3.4\",\"@types/webpack\":\"^5.28.0\",\"@types/webpack-dev-server\":\"^4.7.2\",\"@types/webpack-env\":\"^1.17.0\",\"@types/webpack-node-externals\":\"^2.5.3\",\"@typescript-eslint/eslint-plugin\":\"^5.29.0\",\"@typescript-eslint/parser\":\"^5.29.0\",\"ansi_up\":\"^5.1.0\",\"chart.js\":\"^2.9.4\",\"circular-dependency-plugin\":\"^5.2.2\",\"cli-progress\":\"^3.11.2\",\"color\":\"^3.2.1\",\"command-line-args\":\"^5.2.1\",\"concurrently\":\"^7.2.2\",\"css-loader\":\"^6.7.1\",\"deepdash\":\"^5.3.9\",\"dompurify\":\"^2.3.8\",\"electron\":\"^15.5.7\",\"electron-builder\":\"^23.1.0\",\"electron-notarize\":\"^0.3.0\",\"esbuild\":\"^0.14.47\",\"esbuild-loader\":\"^2.19.0\",\"eslint\":\"^8.18.0\",\"eslint-plugin-header\":\"^3.1.1\",\"eslint-plugin-import\":\"^2.26.0\",\"eslint-plugin-react\":\"^7.30.1\",\"eslint-plugin-react-hooks\":\"^4.6.0\",\"eslint-plugin-unused-imports\":\"^2.0.0\",\"flex.box\":\"^3.4.4\",\"fork-ts-checker-webpack-plugin\":\"^6.5.2\",\"gunzip-maybe\":\"^1.4.2\",\"html-webpack-plugin\":\"^5.5.0\",\"identity-obj-proxy\":\"^3.0.0\",\"ignore-loader\":\"^0.1.2\",\"include-media\":\"^1.4.9\",\"jest\":\"^28.1.2\",\"jest-canvas-mock\":\"^2.3.1\",\"jest-environment-jsdom\":\"^28.1.1\",\"jest-fetch-mock\":\"^3.0.3\",\"jest-mock-extended\":\"^2.0.6\",\"make-plural\":\"^6.2.2\",\"mini-css-extract-plugin\":\"^2.6.1\",\"mock-http\":\"^1.1.0\",\"node-gyp\":\"7.1.2\",\"node-loader\":\"^2.0.0\",\"nodemon\":\"^2.0.18\",\"playwright\":\"^1.23.0\",\"postcss\":\"^8.4.14\",\"postcss-loader\":\"^6.2.1\",\"randomcolor\":\"^0.6.2\",\"react-beautiful-dnd\":\"^13.1.0\",\"react-refresh\":\"^0.13.0\",\"react-refresh-typescript\":\"^2.0.5\",\"react-router-dom\":\"^5.3.3\",\"react-select\":\"^5.3.2\",\"react-select-event\":\"^5.5.0\",\"react-table\":\"^7.8.0\",\"react-window\":\"^1.8.7\",\"sass\":\"^1.53.0\",\"sass-loader\":\"^12.6.0\",\"sharp\":\"^0.30.7\",\"style-loader\":\"^3.3.1\",\"tailwindcss\":\"^3.1.4\",\"tar-stream\":\"^2.2.0\",\"ts-loader\":\"^9.3.1\",\"ts-node\":\"^10.8.1\",\"type-fest\":\"^2.14.0\",\"typed-emitter\":\"^1.4.0\",\"typedoc\":\"0.23.2\",\"typedoc-plugin-markdown\":\"^3.13.1\",\"typescript\":\"^4.7.4\",\"typescript-plugin-css-modules\":\"^3.4.0\",\"webpack\":\"^5.73.0\",\"webpack-cli\":\"^4.9.2\",\"webpack-dev-server\":\"^4.9.2\",\"webpack-node-externals\":\"^3.0.0\",\"xterm\":\"^4.18.0\",\"xterm-addon-fit\":\"^0.5.0\"}}');\n\n//# sourceURL=webpack://open-lens/./package.json?");
|
|
39133
39144
|
|
|
39134
39145
|
/***/ }),
|
|
39135
39146
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ProgressOfUpdateDownload } from "../../../common/application-update/progress-of-update-download/progress-of-update-download.injectable";
|
|
3
|
+
import type { DiscoveredUpdateVersion } from "../../../common/application-update/discovered-update-version/discovered-update-version.injectable";
|
|
4
|
+
import type { UpdateIsBeingDownloaded } from "../../../common/application-update/update-is-being-downloaded/update-is-being-downloaded.injectable";
|
|
5
|
+
import type { UpdatesAreBeingDiscovered } from "../../../common/application-update/updates-are-being-discovered/updates-are-being-discovered.injectable";
|
|
6
|
+
interface Dependencies {
|
|
7
|
+
progressOfUpdateDownload: ProgressOfUpdateDownload;
|
|
8
|
+
discoveredVersionState: DiscoveredUpdateVersion;
|
|
9
|
+
downloadingUpdateState: UpdateIsBeingDownloaded;
|
|
10
|
+
checkingForUpdatesState: UpdatesAreBeingDiscovered;
|
|
11
|
+
}
|
|
12
|
+
export declare const NonInjectedAutoUpdateComponent: ({ progressOfUpdateDownload, discoveredVersionState, downloadingUpdateState, checkingForUpdatesState, }: Dependencies) => JSX.Element;
|
|
13
|
+
export declare const AutoUpdateComponent: React.FunctionComponent<{}>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const autoUpdateStatusBarItemInjectable: import("@ogre-tools/injectable").Injectable<{
|
|
3
|
+
component: import("react").FunctionComponent<{}>;
|
|
4
|
+
position: "left";
|
|
5
|
+
visible: import("mobx").IComputedValue<boolean>;
|
|
6
|
+
}, import("./status-bar-item-injection-token").StatusBarItem, void>;
|
|
7
|
+
export default autoUpdateStatusBarItemInjectable;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IComputedValue } from "mobx";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
export interface StatusBarItem {
|
|
4
|
+
component: React.ComponentType<any>;
|
|
5
|
+
position: "left" | "right";
|
|
6
|
+
visible: IComputedValue<boolean>;
|
|
7
|
+
}
|
|
8
|
+
export declare const statusBarItemInjectionToken: import("@ogre-tools/injectable").InjectionToken<StatusBarItem, void>;
|
|
@@ -0,0 +1,8 @@
|
|
|
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 { StatusBarItem } from "./status-bar-item-injection-token";
|
|
7
|
+
declare const statusBarItemRegistratorInjectable: Injectable<(extension: import("../../../extensions/lens-extension").LensExtension<import("../../../extensions/lens-extension-set-dependencies").LensExtensionDependencies>) => Injectable<StatusBarItem, StatusBarItem, void>[], (extension: import("../../../extensions/lens-extension").LensExtension<import("../../../extensions/lens-extension-set-dependencies").LensExtensionDependencies>) => Injectable<any, any, any>[], void>;
|
|
8
|
+
export default statusBarItemRegistratorInjectable;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IComputedValue } from "mobx";
|
|
3
|
+
import type { StatusBarItemProps } from "./status-bar-registration";
|
|
4
|
+
export interface StatusBarItems {
|
|
5
|
+
right: React.ComponentType<StatusBarItemProps>[];
|
|
6
|
+
left: React.ComponentType<StatusBarItemProps>[];
|
|
7
|
+
}
|
|
8
|
+
declare const statusBarItemsInjectable: import("@ogre-tools/injectable").Injectable<IComputedValue<StatusBarItems>, unknown, void>;
|
|
2
9
|
export default statusBarItemsInjectable;
|
|
@@ -8,4 +8,5 @@ import type { ApplicationBuilder } from "./get-application-builder";
|
|
|
8
8
|
export declare class TestExtension extends LensRendererExtension {
|
|
9
9
|
}
|
|
10
10
|
export declare type FakeExtensionData = SetRequired<Partial<LensRendererExtension>, "id" | "name">;
|
|
11
|
-
export declare
|
|
11
|
+
export declare type GetRendererExtensionFake = (fakeExtensionData: FakeExtensionData) => TestExtension;
|
|
12
|
+
export declare const getRendererExtensionFakeFor: (builder: ApplicationBuilder) => GetRendererExtensionFake;
|
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.1a9fa699c9.0",
|
|
6
6
|
"copyright": "© 2022 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
package/dist/src/common/application-update/application-update-status-channel.injectable.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { MessageChannel } from "../utils/channel/message-channel-injection-token";
|
|
2
|
-
export declare type ApplicationUpdateStatusEventId = "checking-for-updates" | "no-updates-available" | "download-for-update-started" | "download-for-update-failed";
|
|
3
|
-
export declare type ApplicationUpdateStatusChannelMessage = {
|
|
4
|
-
eventId: ApplicationUpdateStatusEventId;
|
|
5
|
-
version?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare type ApplicationUpdateStatusChannel = MessageChannel<ApplicationUpdateStatusChannelMessage>;
|
|
8
|
-
declare const applicationUpdateStatusChannelInjectable: import("@ogre-tools/injectable").Injectable<ApplicationUpdateStatusChannel, MessageChannel<any>, void>;
|
|
9
|
-
export default applicationUpdateStatusChannelInjectable;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ApplicationUpdateStatusChannelMessage } from "../../../common/application-update/application-update-status-channel.injectable";
|
|
2
|
-
declare const broadcastChangeInUpdatingStatusInjectable: import("@ogre-tools/injectable").Injectable<(data: ApplicationUpdateStatusChannelMessage) => void, unknown, void>;
|
|
3
|
-
export default broadcastChangeInUpdatingStatusInjectable;
|
package/dist/src/renderer/application-update/application-update-status-listener.injectable.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ApplicationUpdateStatusChannel } from "../../common/application-update/application-update-status-channel.injectable";
|
|
2
|
-
import type { MessageChannelListener } from "../../common/utils/channel/message-channel-listener-injection-token";
|
|
3
|
-
declare const applicationUpdateStatusListenerInjectable: import("@ogre-tools/injectable").Injectable<MessageChannelListener<ApplicationUpdateStatusChannel>, MessageChannelListener<import("../../common/utils/channel/message-channel-injection-token").MessageChannel<any>>, void>;
|
|
4
|
-
export default applicationUpdateStatusListenerInjectable;
|
|
@@ -1,13 +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 React from "react";
|
|
6
|
-
import type { IComputedValue } from "mobx";
|
|
7
|
-
import type { StatusBarItemProps } from "./status-bar-registration";
|
|
8
|
-
export interface RegisteredStatusBarItems {
|
|
9
|
-
right: React.ComponentType<StatusBarItemProps>[];
|
|
10
|
-
left: React.ComponentType<StatusBarItemProps>[];
|
|
11
|
-
}
|
|
12
|
-
declare const registeredStatusBarItemsInjectable: import("@ogre-tools/injectable").Injectable<IComputedValue<RegisteredStatusBarItems>, unknown, void>;
|
|
13
|
-
export default registeredStatusBarItemsInjectable;
|