@k8slens/extensions 5.3.1-git.e5c1eba9cb.0 → 5.3.1-git.eb93a2eee7.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/__mocks__/electron-updater.ts +23 -0
- package/__mocks__/node-pty.ts +23 -0
- package/dist/src/common/app-event-bus/app-event-bus.injectable.d.ts +3 -0
- package/dist/src/common/{event-bus.d.ts → app-event-bus/event-bus.d.ts} +1 -1
- package/dist/src/common/app-paths/app-path-injection-token.d.ts +5 -0
- package/dist/src/common/app-paths/app-path-names.d.ts +23 -0
- package/dist/src/common/app-paths/app-paths.test.d.ts +1 -0
- package/dist/src/common/app-paths/directory-for-binaries/directory-for-binaries.injectable.d.ts +3 -0
- package/dist/src/common/app-paths/directory-for-downloads/directory-for-downloads.injectable.d.ts +3 -0
- package/dist/src/common/app-paths/directory-for-exes/directory-for-exes.injectable.d.ts +3 -0
- package/dist/src/common/app-paths/directory-for-kube-configs/directory-for-kube-configs.injectable.d.ts +3 -0
- package/dist/src/common/app-paths/directory-for-temp/directory-for-temp.injectable.d.ts +3 -0
- package/dist/src/common/app-paths/directory-for-user-data/directory-for-user-data.injectable.d.ts +3 -0
- package/dist/src/common/app-paths/get-custom-kube-config-directory/get-custom-kube-config-directory.injectable.d.ts +3 -0
- package/dist/src/common/catalog/catalog-entity.d.ts +51 -0
- package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -2
- package/dist/src/common/catalog-entities/web-link.d.ts +0 -2
- package/dist/src/{main → common/cluster}/cluster.d.ts +18 -14
- package/dist/src/common/cluster/create-cluster-injection-token.d.ts +4 -0
- package/dist/src/common/{cluster-store.d.ts → cluster-store/cluster-store.d.ts} +10 -5
- package/dist/src/common/cluster-store/cluster-store.injectable.d.ts +4 -0
- package/dist/src/common/cluster-store/hosted-cluster/hosted-cluster.injectable.d.ts +3 -0
- package/dist/src/common/cluster-types.d.ts +5 -1
- package/dist/src/common/directory-for-lens-local-storage/directory-for-lens-local-storage.injectable.d.ts +3 -0
- package/dist/src/common/event-emitter.d.ts +1 -1
- package/dist/src/common/fs/fs.injectable.d.ts +4 -0
- package/dist/src/common/fs/read-json-file/read-json-file.d.ts +28 -0
- package/dist/src/common/fs/read-json-file/read-json-file.injectable.d.ts +3 -0
- package/dist/src/common/fs/write-json-file/write-json-file.d.ts +13 -0
- package/dist/src/common/fs/write-json-file/write-json-file.injectable.d.ts +3 -0
- package/dist/src/common/hotbar-store.d.ts +16 -11
- package/dist/src/common/hotbar-store.injectable.d.ts +4 -0
- package/dist/src/common/hotbar-types.d.ts +5 -2
- package/dist/src/{renderer/protocol-handler/router.d.ts → common/ipc/catalog.d.ts} +7 -4
- package/dist/src/common/ipc/extension-loader.ipc.d.ts +21 -0
- package/dist/src/common/ipc/index.d.ts +2 -0
- package/dist/src/common/ipc/update-available.ipc.d.ts +2 -0
- package/dist/src/common/ipc-channel/create-channel/create-channel.d.ts +22 -0
- package/dist/src/common/k8s-api/cluster-context.d.ts +2 -1
- package/dist/src/common/k8s-api/endpoints/crd.api.d.ts +29 -28
- package/dist/src/common/k8s-api/endpoints/daemon-set.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/deployment.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/job.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/metrics.api.d.ts +2 -0
- package/dist/src/common/k8s-api/endpoints/network-policy.api.d.ts +72 -32
- package/dist/src/common/k8s-api/endpoints/nodes.api.d.ts +6 -6
- package/dist/src/common/k8s-api/endpoints/persistent-volume-claims.api.d.ts +3 -16
- package/dist/src/common/k8s-api/endpoints/poddisruptionbudget.api.d.ts +2 -6
- package/dist/src/common/k8s-api/endpoints/pods.api.d.ts +4 -2
- package/dist/src/common/k8s-api/endpoints/replica-set.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/stateful-set.api.d.ts +2 -5
- package/dist/src/common/k8s-api/kube-api-parse.d.ts +2 -2
- package/dist/src/common/k8s-api/kube-api.d.ts +59 -31
- package/dist/src/common/k8s-api/kube-json-api.d.ts +1 -2
- package/dist/src/common/k8s-api/kube-object.d.ts +25 -2
- package/dist/src/common/k8s-api/kube-object.store.d.ts +14 -10
- package/dist/src/common/protocol-handler/error.d.ts +3 -3
- package/dist/src/common/protocol-handler/router.d.ts +15 -7
- package/dist/src/common/user-store/preferences-helpers.d.ts +14 -0
- package/dist/src/common/user-store/user-store.d.ts +2 -6
- package/dist/src/common/user-store/user-store.injectable.d.ts +4 -0
- package/dist/src/common/utils/index.d.ts +1 -1
- package/dist/src/common/utils/promise-exec.d.ts +1 -2
- package/dist/src/common/utils/readableStream.d.ts +2 -2
- package/dist/src/common/vars.d.ts +1 -0
- package/dist/src/extensions/as-legacy-globals-for-extension-api/as-legacy-global-function-for-extension-api.d.ts +25 -0
- package/dist/src/extensions/as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api.d.ts +24 -0
- package/dist/src/extensions/as-legacy-globals-for-extension-api/as-legacy-global-singleton-for-extension-api.d.ts +28 -0
- package/dist/src/extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.d.ts +23 -0
- package/dist/src/extensions/common-api/app.d.ts +1 -1
- package/dist/src/extensions/common-api/event-bus.d.ts +2 -2
- package/dist/src/extensions/common-api/get-enabled-extensions/get-enabled-extensions.injectable.d.ts +3 -0
- package/dist/src/extensions/extension-api.js +2489 -4095
- package/dist/src/extensions/extension-compatibility.d.ts +3 -1
- package/dist/src/extensions/{extension-discovery.d.ts → extension-discovery/extension-discovery.d.ts} +18 -5
- package/dist/src/extensions/extension-discovery/extension-discovery.injectable.d.ts +4 -0
- package/dist/src/extensions/{__tests__ → extension-discovery}/extension-discovery.test.d.ts +0 -0
- package/dist/src/extensions/extension-discovery/is-compatible-bundled-extension/is-compatible-bundled-extension.d.ts +27 -0
- package/dist/src/extensions/extension-discovery/is-compatible-bundled-extension/is-compatible-bundled-extension.injectable.d.ts +3 -0
- package/dist/src/extensions/extension-discovery/is-compatible-extension/is-compatible-extension.d.ts +27 -0
- package/dist/src/extensions/extension-discovery/is-compatible-extension/is-compatible-extension.injectable.d.ts +3 -0
- package/dist/src/{renderer/components/+extensions/extension-install.store.d.ts → extensions/extension-installation-state-store/extension-installation-state-store.d.ts} +27 -28
- package/dist/src/extensions/extension-installation-state-store/extension-installation-state-store.injectable.d.ts +4 -0
- package/dist/src/extensions/{extension-installer.d.ts → extension-installer/extension-installer.d.ts} +8 -4
- package/dist/src/extensions/extension-installer/extension-installer.injectable.d.ts +4 -0
- package/dist/src/extensions/extension-installer/extension-package-root-directory/extension-package-root-directory.injectable.d.ts +3 -0
- package/dist/src/extensions/extension-installer/install-extension/install-extension.injectable.d.ts +3 -0
- package/dist/src/extensions/extension-installer/install-extensions/install-extensions.injectable.d.ts +3 -0
- package/dist/src/extensions/extension-loader/create-extension-instance/create-extension-instance.d.ts +24 -0
- package/dist/src/extensions/extension-loader/create-extension-instance/create-extension-instance.injectable.d.ts +3 -0
- package/dist/src/extensions/extension-loader/create-extension-instance/file-system-provisioner-store/directory-for-extension-data/directory-for-extension-data.injectable.d.ts +3 -0
- package/dist/src/{main/extension-filesystem.d.ts → extensions/extension-loader/create-extension-instance/file-system-provisioner-store/file-system-provisioner-store.d.ts} +7 -3
- package/dist/src/extensions/extension-loader/create-extension-instance/file-system-provisioner-store/file-system-provisioner-store.injectable.d.ts +4 -0
- package/dist/src/extensions/{extension-loader.d.ts → extension-loader/extension-loader.d.ts} +21 -9
- package/dist/src/extensions/extension-loader/extension-loader.injectable.d.ts +4 -0
- package/dist/src/{renderer/components/clipboard → extensions/extension-loader}/index.d.ts +1 -1
- package/dist/src/extensions/extension-loader/update-extensions-state/update-extensions-state.injectable.d.ts +3 -0
- package/dist/src/extensions/extension-packages-root/extension-packages-root.injectable.d.ts +3 -0
- package/dist/src/extensions/{extensions-store.d.ts → extensions-store/extensions-store.d.ts} +3 -3
- package/dist/src/extensions/extensions-store/extensions-store.injectable.d.ts +4 -0
- package/dist/src/extensions/extensions.injectable.d.ts +3 -0
- package/dist/src/extensions/{registries/menu-registry.d.ts → lens-extension-set-dependencies.d.ts} +4 -6
- package/dist/src/extensions/lens-extension.d.ts +6 -2
- package/dist/src/extensions/lens-main-extension.d.ts +3 -1
- package/dist/src/extensions/lens-renderer-extension.d.ts +14 -7
- package/dist/src/extensions/main-extensions.injectable.d.ts +5 -0
- package/dist/src/extensions/registries/base-registry.d.ts +1 -1
- package/dist/src/extensions/registries/entity-setting-registry.d.ts +1 -1
- package/dist/src/extensions/registries/index.d.ts +0 -5
- package/dist/src/extensions/registries/status-bar-registry.d.ts +6 -0
- package/dist/src/extensions/renderer-api/components.d.ts +10 -23
- package/dist/src/extensions/renderer-api/k8s-api.d.ts +2 -1
- package/dist/src/extensions/renderer-extensions.injectable.d.ts +5 -0
- package/dist/src/main/__test__/kubeconfig-manager.test.d.ts +0 -20
- package/dist/src/main/app-paths/app-name/app-name.injectable.d.ts +3 -0
- package/dist/src/main/app-paths/app-paths.injectable.d.ts +3 -0
- package/dist/src/main/app-paths/directory-for-integration-testing/directory-for-integration-testing.injectable.d.ts +3 -0
- package/dist/src/main/app-paths/get-app-paths.d.ts +7 -0
- package/dist/src/main/app-paths/get-electron-app-path/electron-app/electron-app.injectable.d.ts +4 -0
- package/dist/src/main/app-paths/get-electron-app-path/get-electron-app-path.d.ts +27 -0
- package/dist/src/main/app-paths/get-electron-app-path/get-electron-app-path.injectable.d.ts +3 -0
- package/dist/src/main/app-paths/get-electron-app-path/get-electron-app-path.test.d.ts +1 -0
- package/dist/src/main/app-paths/register-channel/ipc-main/ipc-main.injectable.d.ts +4 -0
- package/dist/src/main/app-paths/register-channel/register-channel.d.ts +27 -0
- package/dist/src/main/app-paths/register-channel/register-channel.injectable.d.ts +3 -0
- package/dist/src/main/app-paths/set-electron-app-path/set-electron-app-path.injectable.d.ts +4 -0
- package/dist/src/main/catalog-pusher.d.ts +1 -1
- package/dist/src/main/catalog-sources/index.d.ts +0 -1
- package/dist/src/main/catalog-sources/{kubeconfig-sync.d.ts → kubeconfig-sync-manager/kubeconfig-sync-manager.d.ts} +13 -9
- package/dist/src/main/catalog-sources/kubeconfig-sync-manager/kubeconfig-sync-manager.injectable.d.ts +4 -0
- package/dist/src/main/cluster-detectors/base-cluster-detector.d.ts +1 -1
- package/dist/src/main/cluster-detectors/detector-registry.d.ts +1 -1
- package/dist/src/main/cluster-manager.d.ts +2 -2
- package/dist/src/main/{context-handler.d.ts → context-handler/context-handler.d.ts} +17 -6
- package/dist/src/main/context-handler/create-context-handler.injectable.d.ts +5 -0
- package/dist/src/main/create-cluster/create-cluster.injectable.d.ts +5 -0
- package/dist/src/main/getDi.d.ts +22 -0
- package/dist/src/{common/utils/local-kubeconfig.d.ts → main/getDiForUnitTesting.d.ts} +4 -3
- package/dist/src/main/helm/helm-release-manager.d.ts +9 -10
- package/dist/src/main/helm/helm-repo-manager.d.ts +2 -2
- package/dist/src/main/helm/helm-service.d.ts +3 -3
- package/dist/src/main/initializers/index.d.ts +0 -2
- package/dist/src/main/initializers/init-ipc-main-handlers/init-ipc-main-handlers.d.ts +28 -0
- package/dist/src/main/initializers/init-ipc-main-handlers/init-ipc-main-handlers.injectable.d.ts +3 -0
- package/dist/src/main/k8s-request.d.ts +1 -1
- package/dist/src/main/kube-auth-proxy/create-kube-auth-proxy.injectable.d.ts +5 -0
- package/dist/src/main/{kube-auth-proxy.d.ts → kube-auth-proxy/kube-auth-proxy.d.ts} +12 -9
- package/dist/src/main/kubeconfig-manager/create-kubeconfig-manager.injectable.d.ts +8 -0
- package/dist/src/main/{kubeconfig-manager.d.ts → kubeconfig-manager/kubeconfig-manager.d.ts} +24 -7
- package/dist/src/main/kubectl/bundled-kubectl.injectable.d.ts +3 -0
- package/dist/src/main/kubectl/create-kubectl.injectable.d.ts +4 -0
- package/dist/src/main/kubectl/directory-for-kubectl-binaries/directory-for-kubectl-binaries.injectable.d.ts +3 -0
- package/dist/src/main/{kubectl.d.ts → kubectl/kubectl.d.ts} +13 -5
- package/dist/src/main/lens-proxy.d.ts +10 -3
- package/dist/src/main/menu/electron-menu-items.injectable.d.ts +3 -0
- package/dist/src/main/menu/electron-menu-items.test.d.ts +1 -0
- package/dist/src/main/{menu.d.ts → menu/menu.d.ts} +11 -4
- package/dist/src/main/protocol-handler/index.d.ts +1 -1
- package/dist/src/main/protocol-handler/{router.d.ts → lens-protocol-router-main/lens-protocol-router-main.d.ts} +16 -8
- package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable.d.ts +4 -0
- package/dist/src/main/proxy-functions/index.d.ts +0 -1
- package/dist/src/main/proxy-functions/shell-api-request/shell-api-request.d.ts +37 -0
- package/dist/src/main/proxy-functions/shell-api-request/shell-api-request.injectable.d.ts +3 -0
- package/dist/src/main/proxy-functions/shell-api-request/shell-request-authenticator/shell-request-authenticator.d.ts +13 -0
- package/dist/src/main/proxy-functions/shell-api-request/shell-request-authenticator/shell-request-authenticator.injectable.d.ts +4 -0
- package/dist/src/main/proxy-functions/types.d.ts +1 -1
- package/dist/src/main/resource-applier.d.ts +1 -1
- package/dist/src/main/router/router.injectable.d.ts +4 -0
- package/dist/src/main/router.d.ts +7 -2
- package/dist/src/main/routes/port-forward/create-port-forward.injectable.d.ts +4 -0
- package/dist/src/main/routes/port-forward/port-forward.d.ts +32 -0
- package/dist/src/main/routes/port-forward/route-port-forward/route-port-forward.d.ts +27 -0
- package/dist/src/main/routes/port-forward/route-port-forward/route-port-forward.injectable.d.ts +3 -0
- package/dist/src/main/routes/port-forward-route.d.ts +0 -2
- package/dist/src/main/shell-session/create-shell-session.injectable.d.ts +11 -0
- package/dist/src/main/shell-session/index.d.ts +2 -2
- package/dist/src/main/shell-session/{local-shell-session.d.ts → local-shell-session/local-shell-session.d.ts} +1 -1
- package/dist/src/main/shell-session/local-shell-session/local-shell-session.injectable.d.ts +11 -0
- package/dist/src/main/shell-session/{node-shell-session.d.ts → node-shell-session/node-shell-session.d.ts} +4 -3
- package/dist/src/main/shell-session/node-shell-session/node-shell-session.injectable.d.ts +12 -0
- package/dist/src/main/shell-session/shell-session.d.ts +4 -4
- package/dist/src/main/tray/tray-menu-items.injectable.d.ts +3 -0
- package/dist/src/main/tray/tray-menu-items.test.d.ts +1 -0
- package/dist/src/main/{tray.d.ts → tray/tray.d.ts} +4 -2
- package/dist/src/main/window-manager.d.ts +3 -0
- package/dist/src/renderer/api/__tests__/catalog-entity-registry.test.d.ts +1 -1
- package/dist/src/renderer/api/catalog-entity-registry/catalog-entity-registry.injectable.d.ts +3 -0
- package/dist/src/renderer/api/catalog-entity-registry.d.ts +5 -1
- package/dist/src/renderer/api/catalog-entity.d.ts +1 -5
- package/dist/src/{main/catalog-sources → renderer/api}/helpers/general-active-sync.d.ts +0 -0
- package/dist/src/renderer/api/terminal-api.d.ts +0 -2
- package/dist/src/renderer/app-paths/app-paths.injectable.d.ts +4 -0
- package/dist/src/renderer/app-paths/get-value-from-registered-channel/get-value-from-registered-channel.d.ts +27 -0
- package/dist/src/renderer/app-paths/get-value-from-registered-channel/get-value-from-registered-channel.injectable.d.ts +3 -0
- package/dist/src/renderer/app-paths/get-value-from-registered-channel/ipc-renderer/ipc-renderer.injectable.d.ts +4 -0
- package/dist/src/renderer/bootstrap.d.ts +2 -4
- package/dist/src/renderer/{components/context.d.ts → cluster-frame-context/cluster-frame-context.d.ts} +14 -1
- package/dist/src/renderer/cluster-frame-context/cluster-frame-context.injectable.d.ts +4 -0
- package/dist/src/renderer/components/+add-cluster/add-cluster.d.ts +3 -19
- package/dist/src/renderer/components/+apps-helm-charts/helm-chart-details.d.ts +4 -18
- package/dist/src/renderer/components/+apps-releases/release-details.d.ts +5 -23
- package/dist/src/renderer/components/+apps-releases/release-menu.d.ts +3 -7
- package/dist/src/renderer/components/+apps-releases/release-rollback-dialog-model/release-rollback-dialog-model.d.ts +8 -0
- package/dist/src/renderer/components/+apps-releases/release-rollback-dialog-model/release-rollback-dialog-model.injectable.d.ts +4 -0
- package/dist/src/renderer/components/+apps-releases/release-rollback-dialog.d.ts +3 -15
- package/dist/src/renderer/components/+apps-releases/release-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/+apps-releases/release.store.d.ts +9 -4
- package/dist/src/renderer/components/+apps-releases/releases.d.ts +4 -11
- package/dist/src/renderer/components/+catalog/catalog-entity-details.d.ts +3 -3
- package/dist/src/renderer/components/+catalog/catalog-entity-drawer-menu.d.ts +1 -2
- package/dist/src/renderer/components/+catalog/catalog-entity-store/catalog-entity-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/+catalog/{catalog-entity.store.d.ts → catalog-entity-store/catalog-entity.store.d.ts} +15 -11
- package/dist/src/renderer/components/+catalog/catalog-previous-active-tab-storage/catalog-previous-active-tab-storage.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+catalog/catalog.d.ts +3 -28
- package/dist/src/renderer/components/{command-palette/command-overlay.d.ts → +catalog/helpers.d.ts} +5 -7
- package/dist/src/renderer/components/+cluster/cluster-metric-switchers.d.ts +4 -1
- package/dist/src/renderer/components/+cluster/cluster-metrics.d.ts +4 -1
- package/dist/src/renderer/components/+cluster/{cluster-overview.store.d.ts → cluster-overview-store/cluster-overview-store.d.ts} +11 -7
- package/dist/src/renderer/components/+cluster/cluster-overview-store/cluster-overview-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/+cluster/cluster-overview.d.ts +3 -9
- package/dist/src/renderer/components/+cluster/cluster-pie-charts.d.ts +4 -1
- package/dist/src/renderer/components/+custom-resources/custom-resources.injectable.d.ts +23 -0
- package/dist/src/renderer/components/+events/kube-event-details.d.ts +3 -4
- package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.d.ts +36 -0
- package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate/create-temp-files-and-validate.d.ts +16 -0
- package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate/create-temp-files-and-validate.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder/get-extension-dest-folder.d.ts +26 -0
- package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder/get-extension-dest-folder.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.d.ts +31 -0
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +22 -0
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.d.ts +35 -0
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.d.ts +6 -0
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.d.ts +7 -0
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.d.ts +27 -0
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.d.ts +27 -0
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/extensions.d.ts +3 -15
- package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts +26 -0
- package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.injectable.d.ts +23 -0
- package/dist/src/renderer/components/+extensions/get-message-from-error/get-message-from-error.d.ts +21 -0
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.d.ts +31 -0
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +6 -0
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +5 -0
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/install.d.ts +4 -1
- package/dist/src/renderer/components/+extensions/installed-extensions.d.ts +5 -2
- package/dist/src/renderer/components/+extensions/read-file-notify/read-file-notify.d.ts +2 -0
- package/dist/src/renderer/components/+extensions/supported-extension-formats.d.ts +21 -0
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.d.ts +31 -0
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+namespaces/add-namespace-dialog-model/add-namespace-dialog-model.d.ts +6 -0
- package/dist/src/renderer/components/+namespaces/add-namespace-dialog-model/add-namespace-dialog-model.injectable.d.ts +4 -0
- package/dist/src/renderer/components/+namespaces/add-namespace-dialog.d.ts +3 -9
- package/dist/src/renderer/components/+namespaces/namespace-details.d.ts +4 -11
- package/dist/src/renderer/components/+namespaces/namespace-select-filter-model/namespace-select-filter-model.d.ts +23 -0
- package/dist/src/renderer/components/+namespaces/namespace-select-filter-model/namespace-select-filter-model.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+namespaces/namespace-select-filter.d.ts +4 -24
- package/dist/src/renderer/components/+namespaces/namespace-select.d.ts +3 -8
- package/dist/src/renderer/components/+namespaces/namespace-store/namespace-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/+namespaces/{namespace.store.d.ts → namespace-store/namespace.store.d.ts} +12 -9
- package/dist/src/renderer/components/+namespaces/namespaces.d.ts +3 -3
- package/dist/src/renderer/components/+network-ingresses/ingress-details.d.ts +1 -1
- package/dist/src/{common/__tests__/search-store.test.d.ts → renderer/components/+network-policies/__tests__/network-policy-details.test.d.ts} +0 -0
- package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +8 -4
- package/dist/src/renderer/components/+network-port-forwards/port-forward-menu.d.ts +3 -5
- package/dist/src/renderer/components/+network-port-forwards/port-forwards.d.ts +3 -10
- package/dist/src/renderer/components/+network-services/service-details.d.ts +3 -4
- package/dist/src/renderer/components/+network-services/service-port-component.d.ts +3 -11
- package/dist/src/renderer/components/+nodes/node-details.d.ts +4 -9
- package/dist/src/renderer/components/+nodes/nodes.d.ts +2 -1
- package/dist/src/renderer/components/+preferences/extension-settings.d.ts +7 -0
- package/dist/src/renderer/components/+preferences/kubectl-binaries.d.ts +4 -1
- package/dist/src/renderer/components/+preferences/preferences.d.ts +0 -2
- package/dist/src/renderer/components/+storage-classes/storage-class-details.d.ts +3 -4
- package/dist/src/renderer/components/+storage-volume-claims/volume-claim-details.d.ts +1 -1
- package/dist/src/renderer/components/+welcome/welcome-banner-items/welcome-banner-items.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+welcome/welcome-menu-items/get-welcome-menu-items.d.ts +27 -0
- package/dist/src/renderer/components/+welcome/welcome-menu-items/welcome-menu-items.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+welcome/welcome.d.ts +3 -3
- package/dist/src/renderer/components/+workloads-cronjobs/cronjob-details.d.ts +3 -4
- package/dist/src/renderer/components/+workloads-daemonsets/daemonset-details.d.ts +4 -9
- package/dist/src/renderer/components/+workloads-deployments/deployment-details.d.ts +4 -9
- package/dist/src/renderer/components/+workloads-jobs/job-details.d.ts +4 -8
- package/dist/src/renderer/components/+workloads-overview/overview-statuses.d.ts +3 -5
- package/dist/src/renderer/components/+workloads-overview/overview-workload-status.d.ts +2 -7
- package/dist/src/renderer/components/+workloads-overview/overview.d.ts +3 -7
- package/dist/src/renderer/components/+workloads-pods/pod-container-port.d.ts +3 -11
- package/dist/src/renderer/components/+workloads-pods/pod-details-container.d.ts +4 -7
- package/dist/src/renderer/components/+workloads-replicasets/replicaset-details.d.ts +4 -9
- package/dist/src/renderer/components/+workloads-statefulsets/statefulset-details.d.ts +4 -9
- package/dist/src/renderer/components/activate-entity-command/activate-entity-command.d.ts +3 -9
- package/dist/src/renderer/components/{layout/__tests__/topbar.test.d.ts → avatar/__tests__/avatar.test.d.ts} +0 -0
- package/dist/src/renderer/components/avatar/avatar.d.ts +7 -8
- package/dist/src/renderer/components/{+404 → avatar}/index.d.ts +1 -1
- package/dist/src/renderer/components/catalog-entities/weblink-add-command.d.ts +3 -11
- package/dist/src/renderer/components/chart/zebra-stripes.plugin.d.ts +1 -1
- package/dist/src/renderer/components/checkbox/checkbox.d.ts +0 -1
- package/dist/src/renderer/components/{layout/topbar.d.ts → cluster-manager/active-hotbar-name.d.ts} +3 -4
- package/dist/src/renderer/components/cluster-manager/bottom-bar.d.ts +0 -1
- package/dist/src/renderer/components/cluster-manager/cluster-manager.d.ts +3 -4
- package/dist/src/renderer/components/cluster-manager/cluster-status.d.ts +1 -1
- package/dist/src/renderer/components/cluster-manager/cluster-view.d.ts +1 -1
- package/dist/src/renderer/components/cluster-settings/components/cluster-accessible-namespaces.d.ts +1 -1
- package/dist/src/renderer/components/cluster-settings/components/cluster-icon-settings.d.ts +1 -1
- package/dist/src/renderer/components/cluster-settings/components/cluster-kubeconfig.d.ts +1 -1
- package/dist/src/renderer/components/cluster-settings/components/cluster-local-terminal-settings.d.ts +1 -1
- package/dist/src/renderer/components/cluster-settings/components/cluster-metrics-setting.d.ts +1 -1
- package/dist/src/renderer/components/cluster-settings/components/cluster-name-setting.d.ts +1 -1
- package/dist/src/renderer/components/cluster-settings/components/cluster-node-shell-setting.d.ts +1 -1
- package/dist/src/renderer/components/cluster-settings/components/cluster-prometheus-setting.d.ts +1 -1
- package/dist/src/renderer/components/cluster-settings/components/cluster-proxy-setting.d.ts +1 -1
- package/dist/src/renderer/components/cluster-settings/components/cluster-show-metrics.d.ts +1 -1
- package/dist/src/renderer/components/command-palette/command-container.d.ts +3 -7
- package/dist/src/renderer/components/command-palette/command-dialog.d.ts +3 -13
- package/dist/src/renderer/components/command-palette/command-overlay.injectable.d.ts +31 -0
- package/dist/src/renderer/components/command-palette/index.d.ts +1 -1
- package/dist/src/renderer/components/command-palette/registered-commands/internal-commands.injectable.d.ts +25 -0
- package/dist/src/renderer/components/command-palette/registered-commands/registered-commands.injectable.d.ts +25 -0
- package/dist/src/renderer/components/delete-cluster-dialog/delete-cluster-dialog.d.ts +1 -1
- package/dist/src/renderer/components/dialog/dialog.d.ts +1 -0
- package/dist/src/renderer/components/dock/create-install-chart-tab/create-install-chart-tab.d.ts +29 -0
- package/dist/src/renderer/components/dock/create-install-chart-tab/create-install-chart-tab.injectable.d.ts +3 -0
- package/dist/src/renderer/components/dock/create-resource-store/create-resource-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/dock/{create-resource.store.d.ts → create-resource-store/create-resource.store.d.ts} +10 -5
- package/dist/src/renderer/components/dock/create-resource-tab/create-resource-tab.d.ts +26 -0
- package/dist/src/renderer/components/dock/create-resource-tab/create-resource-tab.injectable.d.ts +3 -0
- package/dist/src/renderer/components/dock/create-resource.d.ts +4 -20
- package/dist/src/renderer/components/dock/create-terminal-tab/create-terminal-tab.d.ts +26 -0
- package/dist/src/renderer/components/dock/create-terminal-tab/create-terminal-tab.injectable.d.ts +3 -0
- package/dist/src/renderer/components/dock/create-upgrade-chart-tab/create-upgrade-chart-tab.d.ts +29 -0
- package/dist/src/renderer/components/dock/create-upgrade-chart-tab/create-upgrade-chart-tab.injectable.d.ts +3 -0
- package/dist/src/renderer/components/dock/dock-store/dock-storage/dock-storage.injectable.d.ts +4 -0
- package/dist/src/renderer/components/dock/dock-store/dock-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/dock/{dock.store.d.ts → dock-store/dock.store.d.ts} +8 -4
- package/dist/src/renderer/components/dock/dock-tab-store/create-dock-tab-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/dock/{dock-tab.store.d.ts → dock-tab-store/dock-tab.store.d.ts} +9 -3
- package/dist/src/renderer/components/dock/dock-tab.d.ts +4 -9
- package/dist/src/renderer/components/dock/dock-tabs.d.ts +1 -1
- package/dist/src/renderer/components/dock/dock.d.ts +3 -11
- package/dist/src/renderer/components/dock/edit-resource-store/edit-resource-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/dock/{edit-resource.store.d.ts → edit-resource-store/edit-resource.store.d.ts} +12 -7
- package/dist/src/renderer/components/dock/edit-resource-tab/edit-resource-tab.d.ts +29 -0
- package/dist/src/renderer/components/dock/edit-resource-tab/edit-resource-tab.injectable.d.ts +3 -0
- package/dist/src/renderer/components/dock/edit-resource.d.ts +4 -15
- package/dist/src/renderer/components/dock/editor-panel.d.ts +5 -9
- package/dist/src/renderer/components/dock/info-panel.d.ts +5 -15
- package/dist/src/renderer/components/dock/install-chart-store/install-chart-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/dock/{install-chart.store.d.ts → install-chart-store/install-chart.store.d.ts} +15 -9
- package/dist/src/renderer/components/dock/install-chart.d.ts +5 -23
- package/dist/src/renderer/components/dock/log-controls.d.ts +5 -3
- package/dist/src/renderer/components/dock/log-list.d.ts +13 -4
- package/dist/src/renderer/components/dock/log-resource-selector.d.ts +6 -4
- package/dist/src/renderer/components/dock/log-search.d.ts +4 -1
- package/dist/src/renderer/components/dock/log-store/call-for-logs/call-for-logs.injectable.d.ts +9 -0
- package/dist/src/renderer/components/dock/log-store/log-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/dock/{log.store.d.ts → log-store/log.store.d.ts} +16 -6
- package/dist/src/renderer/components/dock/log-store/reloaded-log-store.injectable.d.ts +3 -0
- package/dist/src/renderer/components/dock/log-tab-store/log-tab-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/dock/{log-tab.store.d.ts → log-tab-store/log-tab.store.d.ts} +12 -5
- package/dist/src/renderer/components/dock/logs/logs-view-model/logs-view-model.d.ts +39 -0
- package/dist/src/renderer/components/dock/logs/logs-view-model/logs-view-model.injectable.d.ts +4 -0
- package/dist/src/renderer/components/dock/logs.d.ts +3 -23
- package/dist/src/renderer/components/dock/terminal/create-terminal.injectable.d.ts +6 -0
- package/dist/src/renderer/components/dock/{terminal.d.ts → terminal/terminal.d.ts} +9 -4
- package/dist/src/renderer/components/dock/terminal-store/terminal-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/dock/{terminal.store.d.ts → terminal-store/terminal.store.d.ts} +12 -11
- package/dist/src/renderer/components/dock/terminal-tab.d.ts +3 -7
- package/dist/src/renderer/components/dock/terminal-window.d.ts +4 -9
- package/dist/src/renderer/components/dock/upgrade-chart-store/upgrade-chart-store.injectable.d.ts +4 -0
- package/dist/src/renderer/components/dock/{upgrade-chart.store.d.ts → upgrade-chart-store/upgrade-chart.store.d.ts} +14 -7
- package/dist/src/renderer/components/dock/upgrade-chart.d.ts +12 -3
- package/dist/src/renderer/components/drawer/drawer-storage/drawer-storage.injectable.d.ts +8 -0
- package/dist/src/renderer/components/drawer/drawer.d.ts +10 -25
- package/dist/src/renderer/components/hotbar/hotbar-add-command.d.ts +3 -6
- package/dist/src/renderer/components/hotbar/hotbar-entity-icon.d.ts +3 -3
- package/dist/src/renderer/components/hotbar/hotbar-icon.d.ts +3 -10
- package/dist/src/renderer/components/hotbar/hotbar-menu.d.ts +4 -1
- package/dist/src/renderer/components/hotbar/hotbar-remove-command.d.ts +3 -9
- package/dist/src/renderer/components/hotbar/hotbar-rename-command.d.ts +3 -14
- package/dist/src/renderer/components/hotbar/hotbar-selector.d.ts +5 -3
- package/dist/src/renderer/components/hotbar/hotbar-switch-command.d.ts +3 -12
- package/dist/src/renderer/components/input/input.d.ts +1 -0
- package/dist/src/renderer/components/input/validators/unique-hotbar-name.injectable.d.ts +24 -0
- package/dist/src/renderer/components/item-object-list/item-list-layout-storage/item-list-layout-storage.injectable.d.ts +7 -0
- package/dist/src/renderer/components/item-object-list/item-list-layout.d.ts +14 -6
- package/dist/src/renderer/components/kube-object-list-layout/kube-object-list-layout.d.ts +1 -10
- package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts +3 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts +23 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.d.ts +3 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/get-kube-object-menu-items.d.ts +26 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-items.injectable.d.ts +9 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-registry.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/index.d.ts +2 -1
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu.d.ts +4 -14
- package/dist/src/{main/initializers/registries.d.ts → renderer/components/kube-object-menu/kube-object-menu.test.d.ts} +1 -1
- package/dist/src/renderer/components/kubeconfig-dialog/kubeconfig-dialog.d.ts +0 -1
- package/dist/src/renderer/components/layout/close-button.d.ts +25 -0
- package/dist/src/renderer/components/layout/main-layout.d.ts +3 -9
- package/dist/src/renderer/components/layout/sidebar-item.d.ts +3 -11
- package/dist/src/renderer/components/layout/sidebar-storage/sidebar-storage.injectable.d.ts +16 -0
- package/dist/src/renderer/components/layout/sidebar.d.ts +3 -12
- package/dist/src/renderer/components/layout/top-bar/top-bar-items/top-bar-items.injectable.d.ts +3 -0
- package/dist/src/renderer/components/layout/top-bar/top-bar-win-linux.test.d.ts +21 -0
- package/dist/src/renderer/components/{+404/not-found.d.ts → layout/top-bar/top-bar.d.ts} +3 -3
- package/dist/src/renderer/components/layout/top-bar/top-bar.test.d.ts +21 -0
- package/dist/src/renderer/components/menu/menu-actions.d.ts +1 -1
- package/dist/src/renderer/components/monaco-editor/monaco-editor.d.ts +1 -1
- package/dist/src/renderer/components/resizing-anchor/resizing-anchor.d.ts +3 -1
- package/dist/src/renderer/components/switch/__tests__/switch.test.d.ts +21 -0
- package/dist/src/renderer/components/switch/form-switcher.d.ts +3 -0
- package/dist/src/renderer/components/switch/index.d.ts +1 -0
- package/dist/src/{extensions/registries/topbar-registry.d.ts → renderer/components/switch/switch.d.ts} +4 -9
- package/dist/src/renderer/components/switch/switcher.d.ts +4 -1
- package/dist/src/renderer/components/table/{table.storage.d.ts → table-model/table-model.d.ts} +12 -4
- package/dist/src/renderer/components/table/table-model/table-model.injectable.d.ts +4 -0
- package/dist/src/renderer/components/table/table.d.ts +1 -15
- package/dist/src/renderer/components/test-utils/renderFor.d.ts +27 -0
- package/dist/src/renderer/create-cluster/create-cluster.injectable.d.ts +5 -0
- package/dist/src/renderer/frames/cluster-frame/cluster-frame.d.ts +24 -0
- package/dist/src/renderer/frames/cluster-frame/init-cluster-frame/frame-routing-id/frame-routing-id.injectable.d.ts +3 -0
- package/dist/src/renderer/frames/cluster-frame/init-cluster-frame/frame-routing-id/web-frame/web-frame.injectable.d.ts +4 -0
- package/dist/src/renderer/frames/cluster-frame/init-cluster-frame/init-cluster-frame.d.ts +35 -0
- package/dist/src/renderer/frames/cluster-frame/init-cluster-frame/init-cluster-frame.injectable.d.ts +3 -0
- package/dist/src/renderer/frames/root-frame/init-root-frame/init-root-frame.d.ts +15 -0
- package/dist/src/renderer/frames/root-frame/init-root-frame/init-root-frame.injectable.d.ts +3 -0
- package/dist/src/renderer/{root-frame.d.ts → frames/root-frame/root-frame.d.ts} +0 -2
- package/dist/src/renderer/getDi.d.ts +22 -0
- package/dist/src/renderer/getDiForUnitTesting.d.ts +24 -0
- package/dist/src/renderer/hooks/index.d.ts +0 -1
- package/dist/src/renderer/initializers/catalog.d.ts +6 -1
- package/dist/src/renderer/initializers/index.d.ts +1 -2
- package/dist/src/renderer/initializers/ipc.d.ts +2 -1
- package/dist/src/{main/initializers/ipc.d.ts → renderer/initializers/status-bar-registry.d.ts} +1 -1
- package/dist/src/renderer/kube-watch-api/kube-watch-api.d.ts +28 -0
- package/dist/src/renderer/kube-watch-api/kube-watch-api.injectable.d.ts +4 -0
- package/dist/src/renderer/navigation/helpers.d.ts +1 -1
- package/dist/src/renderer/port-forward/index.d.ts +1 -1
- package/dist/src/renderer/port-forward/port-forward-dialog-model/port-forward-dialog-model.d.ts +16 -0
- package/dist/src/renderer/port-forward/port-forward-dialog-model/port-forward-dialog-model.injectable.d.ts +4 -0
- package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +4 -20
- package/dist/src/renderer/port-forward/port-forward-item.d.ts +4 -4
- package/dist/src/renderer/port-forward/port-forward-notify.d.ts +1 -0
- package/dist/src/renderer/port-forward/port-forward-store/port-forward-store.d.ts +95 -0
- package/dist/src/renderer/port-forward/port-forward-store/port-forward-store.injectable.d.ts +4 -0
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts +28 -0
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable.d.ts +3 -0
- package/dist/src/renderer/protocol-handler/index.d.ts +2 -2
- package/dist/src/{extensions/registries/welcome-banner-registry.d.ts → renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts} +13 -15
- package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable.d.ts +4 -0
- package/dist/src/{common → renderer/search-store}/search-store.d.ts +6 -2
- package/dist/src/renderer/search-store/search-store.injectable.d.ts +4 -0
- package/dist/src/{main/kubectl_spec.d.ts → renderer/search-store/search-store.test.d.ts} +0 -0
- package/dist/src/renderer/theme.store.d.ts +0 -1
- package/dist/src/renderer/utils/{createStorage.d.ts → create-storage/create-storage.d.ts} +9 -4
- package/dist/src/renderer/utils/create-storage/create-storage.injectable.d.ts +3 -0
- package/dist/src/renderer/utils/index.d.ts +0 -2
- package/dist/src/renderer/utils/storageHelper.d.ts +4 -1
- package/dist/src/renderer/window/event-listener.injectable.d.ts +25 -0
- package/dist/src/test-utils/get-dis-for-unit-testing.d.ts +8 -0
- package/dist/src/test-utils/override-ipc-bridge.d.ts +25 -0
- package/package.json +1 -1
- package/dist/src/common/app-paths.d.ts +0 -43
- package/dist/src/common/k8s-api/kube-watch-api.d.ts +0 -77
- package/dist/src/extensions/registries/command-registry.d.ts +0 -36
- package/dist/src/extensions/registries/welcome-menu-registry.d.ts +0 -28
- package/dist/src/main/proxy-functions/shell-api-request.d.ts +0 -36
- package/dist/src/renderer/cluster-frame.d.ts +0 -37
- package/dist/src/renderer/components/clipboard/clipboard.d.ts +0 -37
- package/dist/src/renderer/components/hotbar/hotbar-display-label.d.ts +0 -22
- package/dist/src/renderer/components/layout/sidebar-storage.d.ts +0 -28
- package/dist/src/renderer/hooks/useStorage.d.ts +0 -21
- package/dist/src/renderer/initializers/command-registry.d.ts +0 -21
- package/dist/src/renderer/initializers/welcome-menu-registry.d.ts +0 -21
- package/dist/src/renderer/port-forward/port-forward.store.d.ts +0 -39
- package/dist/src/renderer/protocol-handler/app-handlers.d.ts +0 -21
- package/dist/src/renderer/utils/copyToClipboard.d.ts +0 -27
|
@@ -20,8 +20,6 @@
|
|
|
20
20
|
*/
|
|
21
21
|
export * from "../../common/utils";
|
|
22
22
|
export * from "../../common/event-emitter";
|
|
23
|
-
export * from "./copyToClipboard";
|
|
24
|
-
export * from "./createStorage";
|
|
25
23
|
export * from "./cssNames";
|
|
26
24
|
export * from "./cssVar";
|
|
27
25
|
export * from "./display-booleans";
|
|
@@ -38,7 +38,6 @@ export interface StorageHelperOptions<T> {
|
|
|
38
38
|
export declare class StorageHelper<T> {
|
|
39
39
|
readonly key: string;
|
|
40
40
|
private options;
|
|
41
|
-
static getLocalStoragePath(): Promise<string>;
|
|
42
41
|
static logPrefix: string;
|
|
43
42
|
readonly storage: StorageAdapter<T>;
|
|
44
43
|
private data;
|
|
@@ -55,7 +54,11 @@ export declare class StorageHelper<T> {
|
|
|
55
54
|
}): void;
|
|
56
55
|
isDefaultValue(value: T): boolean;
|
|
57
56
|
protected onChange(value: T, oldValue?: T): void;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated Switch to using value for being reactive
|
|
59
|
+
*/
|
|
58
60
|
get(): T;
|
|
61
|
+
get value(): T;
|
|
59
62
|
set(value: T): void;
|
|
60
63
|
reset(): void;
|
|
61
64
|
merge(value: Partial<T> | ((draft: Draft<T>) => Partial<T> | void)): void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
22
|
+
import type { Disposer } from "../utils";
|
|
23
|
+
declare function addWindowEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): Disposer;
|
|
24
|
+
declare const windowAddEventListenerInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<typeof addWindowEventListener, unknown>, typeof addWindowEventListener, unknown>;
|
|
25
|
+
export default windowAddEventListenerInjectable;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
export declare const getDisForUnitTesting: ({ doGeneralOverrides }?: {
|
|
3
|
+
doGeneralOverrides: boolean;
|
|
4
|
+
}) => {
|
|
5
|
+
rendererDi: import("@ogre-tools/injectable").ConfigurableDependencyInjectionContainer;
|
|
6
|
+
mainDi: import("@ogre-tools/injectable").ConfigurableDependencyInjectionContainer;
|
|
7
|
+
runSetups: () => Promise<[void, void]>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { DependencyInjectionContainer } from "@ogre-tools/injectable";
|
|
22
|
+
export declare const overrideIpcBridge: ({ rendererDi, mainDi, }: {
|
|
23
|
+
rendererDi: DependencyInjectionContainer;
|
|
24
|
+
mainDi: DependencyInjectionContainer;
|
|
25
|
+
}) => void;
|
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.3.1-git.
|
|
5
|
+
"version": "5.3.1-git.eb93a2eee7.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
import { app } from "electron";
|
|
22
|
-
export declare type PathName = Parameters<typeof app["getPath"]>[0];
|
|
23
|
-
export declare class AppPaths {
|
|
24
|
-
private static paths;
|
|
25
|
-
private static readonly ipcChannel;
|
|
26
|
-
/**
|
|
27
|
-
* Initializes the local copy of the paths from electron.
|
|
28
|
-
*/
|
|
29
|
-
static init(): Promise<void>;
|
|
30
|
-
private static initMain;
|
|
31
|
-
private static initRenderer;
|
|
32
|
-
/**
|
|
33
|
-
* An alternative to `app.getPath()` for use in renderer and common.
|
|
34
|
-
* This function throws if called before initialization.
|
|
35
|
-
* @param name The name of the path field
|
|
36
|
-
*/
|
|
37
|
-
static get(name: PathName): string;
|
|
38
|
-
/**
|
|
39
|
-
* An async version of `AppPaths.get()` which waits for `AppPaths.init()` to
|
|
40
|
-
* be called before returning
|
|
41
|
-
*/
|
|
42
|
-
static getAsync(name: PathName): Promise<string>;
|
|
43
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
import type { KubeObjectStore } from "./kube-object.store";
|
|
22
|
-
import type { ClusterContext } from "./cluster-context";
|
|
23
|
-
import { Disposer } from "../utils";
|
|
24
|
-
import type { KubeApi } from "./kube-api";
|
|
25
|
-
import type { KubeJsonApiData } from "./kube-json-api";
|
|
26
|
-
import type { KubeObject } from "./kube-object";
|
|
27
|
-
export interface IKubeWatchEvent<T extends KubeJsonApiData> {
|
|
28
|
-
type: "ADDED" | "MODIFIED" | "DELETED" | "ERROR";
|
|
29
|
-
object?: T;
|
|
30
|
-
}
|
|
31
|
-
interface KubeWatchPreloadOptions {
|
|
32
|
-
/**
|
|
33
|
-
* The namespaces to watch
|
|
34
|
-
* @default all-accessible
|
|
35
|
-
*/
|
|
36
|
-
namespaces?: string[];
|
|
37
|
-
/**
|
|
38
|
-
* Whether to skip loading if the store is already loaded
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
loadOnce?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* A function that is called when listing fails. If set then blocks errors
|
|
44
|
-
* being rejected with
|
|
45
|
-
*/
|
|
46
|
-
onLoadFailure?: (err: any) => void;
|
|
47
|
-
}
|
|
48
|
-
export interface KubeWatchSubscribeStoreOptions extends KubeWatchPreloadOptions {
|
|
49
|
-
/**
|
|
50
|
-
* Whether to subscribe only after loading all stores
|
|
51
|
-
* @default true
|
|
52
|
-
*/
|
|
53
|
-
waitUntilLoaded?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Whether to preload the stores before watching
|
|
56
|
-
* @default true
|
|
57
|
-
*/
|
|
58
|
-
preload?: boolean;
|
|
59
|
-
}
|
|
60
|
-
export interface IKubeWatchLog {
|
|
61
|
-
message: string | string[] | Error;
|
|
62
|
-
meta?: object;
|
|
63
|
-
cssStyle?: string;
|
|
64
|
-
}
|
|
65
|
-
export declare class KubeWatchApi {
|
|
66
|
-
context: ClusterContext;
|
|
67
|
-
constructor();
|
|
68
|
-
isAllowedApi(api: KubeApi<KubeObject>): boolean;
|
|
69
|
-
preloadStores(stores: KubeObjectStore<KubeObject>[], { loadOnce, namespaces, onLoadFailure }?: KubeWatchPreloadOptions): {
|
|
70
|
-
loading: Promise<PromiseSettledResult<any>[]>;
|
|
71
|
-
cancelLoading: () => void;
|
|
72
|
-
};
|
|
73
|
-
subscribeStores(stores: KubeObjectStore<KubeObject>[], opts?: KubeWatchSubscribeStoreOptions): Disposer;
|
|
74
|
-
protected log({ message, cssStyle, meta }: IKubeWatchLog): void;
|
|
75
|
-
}
|
|
76
|
-
export declare const kubeWatchApi: KubeWatchApi;
|
|
77
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
import { BaseRegistry } from "./base-registry";
|
|
22
|
-
import type { LensExtension } from "../lens-extension";
|
|
23
|
-
import type { CatalogEntity } from "../../common/catalog";
|
|
24
|
-
export interface CommandContext {
|
|
25
|
-
entity?: CatalogEntity;
|
|
26
|
-
}
|
|
27
|
-
export interface CommandRegistration {
|
|
28
|
-
id: string;
|
|
29
|
-
title: string;
|
|
30
|
-
scope: "entity" | "global";
|
|
31
|
-
action: (context: CommandContext) => void;
|
|
32
|
-
isActive?: (context: CommandContext) => boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare class CommandRegistry extends BaseRegistry<CommandRegistration> {
|
|
35
|
-
add(items: CommandRegistration | CommandRegistration[], extension?: LensExtension): () => void;
|
|
36
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
import { BaseRegistry } from "./base-registry";
|
|
22
|
-
export interface WelcomeMenuRegistration {
|
|
23
|
-
title: string | (() => string);
|
|
24
|
-
icon: string;
|
|
25
|
-
click: () => void | Promise<void>;
|
|
26
|
-
}
|
|
27
|
-
export declare class WelcomeMenuRegistry extends BaseRegistry<WelcomeMenuRegistration> {
|
|
28
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
import type { ProxyApiRequestArgs } from "./types";
|
|
22
|
-
import { Singleton } from "../../common/utils";
|
|
23
|
-
import type { ClusterId } from "../../common/cluster-types";
|
|
24
|
-
export declare class ShellRequestAuthenticator extends Singleton {
|
|
25
|
-
private tokens;
|
|
26
|
-
init(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Authenticates a single use token for creating a new shell
|
|
29
|
-
* @param clusterId The `ClusterId` for the shell
|
|
30
|
-
* @param tabId The ID for the shell
|
|
31
|
-
* @param token The value that is being presented as a one time authentication token
|
|
32
|
-
* @returns `true` if `token` was valid, false otherwise
|
|
33
|
-
*/
|
|
34
|
-
authenticate(clusterId: ClusterId, tabId: string, token: string): boolean;
|
|
35
|
-
}
|
|
36
|
-
export declare function shellApiRequest({ req, socket, head }: ProxyApiRequestArgs): void;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
import React from "react";
|
|
22
|
-
import { ClusterPageMenuRegistration } from "../extensions/registries";
|
|
23
|
-
import { TabLayoutRoute } from "./components/layout/tab-layout";
|
|
24
|
-
import type { ClusterId } from "../common/cluster-types";
|
|
25
|
-
export declare class ClusterFrame extends React.Component {
|
|
26
|
-
static clusterId: ClusterId;
|
|
27
|
-
static readonly logPrefix = "[CLUSTER-FRAME]:";
|
|
28
|
-
static displayName: string;
|
|
29
|
-
constructor(props: {});
|
|
30
|
-
static init(rootElem: HTMLElement): Promise<void>;
|
|
31
|
-
componentDidMount(): void;
|
|
32
|
-
startUrl: string;
|
|
33
|
-
getTabLayoutRoutes(menuItem: ClusterPageMenuRegistration): TabLayoutRoute[];
|
|
34
|
-
renderExtensionTabLayoutRoutes(): JSX.Element[];
|
|
35
|
-
renderExtensionRoutes(): JSX.Element[];
|
|
36
|
-
render(): JSX.Element;
|
|
37
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
import "./clipboard.scss";
|
|
22
|
-
import React from "react";
|
|
23
|
-
export interface CopyToClipboardProps {
|
|
24
|
-
resetSelection?: boolean;
|
|
25
|
-
showNotification?: boolean;
|
|
26
|
-
cssSelectorLimit?: string;
|
|
27
|
-
getNotificationMessage?(copiedText: string): React.ReactNode;
|
|
28
|
-
}
|
|
29
|
-
export declare const defaultProps: Partial<CopyToClipboardProps>;
|
|
30
|
-
export declare class Clipboard extends React.Component<CopyToClipboardProps> {
|
|
31
|
-
static displayName: string;
|
|
32
|
-
static defaultProps: object;
|
|
33
|
-
get rootElem(): HTMLElement;
|
|
34
|
-
get rootReactElem(): React.ReactElement<React.HTMLProps<any>>;
|
|
35
|
-
onClick(evt: React.MouseEvent): void;
|
|
36
|
-
render(): React.ReactElement<React.HTMLProps<any>, string | React.JSXElementConstructor<any>>;
|
|
37
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
export declare function hotbarDisplayLabel(id: string): string;
|
|
22
|
-
export declare function hotbarDisplayIndex(id: string): string;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
export interface SidebarStorageState {
|
|
22
|
-
width: number;
|
|
23
|
-
expanded: {
|
|
24
|
-
[itemId: string]: boolean;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export declare const defaultSidebarWidth = 200;
|
|
28
|
-
export declare const sidebarStorage: import("../../utils").StorageHelper<SidebarStorageState>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
export declare function useStorage<T>(key: string, initialValue: T): [T, (value: T) => void];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
export declare function initCommandRegistry(): void;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
export declare function initWelcomeMenuRegistry(): void;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
import { ItemStore } from "../../common/item.store";
|
|
22
|
-
import { ForwardedPort, PortForwardItem } from "./port-forward-item";
|
|
23
|
-
export declare class PortForwardStore extends ItemStore<PortForwardItem> {
|
|
24
|
-
private storage;
|
|
25
|
-
portForwards: PortForwardItem[];
|
|
26
|
-
constructor();
|
|
27
|
-
private init;
|
|
28
|
-
watch(): import("../utils").ExtendableDisposer;
|
|
29
|
-
loadAll(): Promise<any>;
|
|
30
|
-
reset(): void;
|
|
31
|
-
removeSelectedItems(): Promise<void[]>;
|
|
32
|
-
getById(id: string): PortForwardItem;
|
|
33
|
-
}
|
|
34
|
-
export declare function addPortForward(portForward: ForwardedPort): Promise<number>;
|
|
35
|
-
export declare function getPortForward(portForward: ForwardedPort): Promise<number>;
|
|
36
|
-
export declare function modifyPortForward(portForward: ForwardedPort, desiredPort: number): Promise<number>;
|
|
37
|
-
export declare function removePortForward(portForward: ForwardedPort): Promise<void>;
|
|
38
|
-
export declare function getPortForwards(): Promise<ForwardedPort[]>;
|
|
39
|
-
export declare const portForwardStore: PortForwardStore;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
export declare function bindProtocolAddRouteHandlers(): void;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
-
* the Software without restriction, including without limitation the rights to
|
|
7
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
* subject to the following conditions:
|
|
10
|
-
*
|
|
11
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
* copies or substantial portions of the Software.
|
|
13
|
-
*
|
|
14
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
-
*/
|
|
21
|
-
export declare function copyToClipboard(elem: HTMLElement, { resetSelection }?: {
|
|
22
|
-
resetSelection?: boolean;
|
|
23
|
-
}): {
|
|
24
|
-
copied: boolean;
|
|
25
|
-
copiedText: string;
|
|
26
|
-
clearSelection: () => void;
|
|
27
|
-
};
|