@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,15 +20,15 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import type { ClusterContext } from "./cluster-context";
|
|
22
22
|
import { KubeObject } from "./kube-object";
|
|
23
|
-
import type { IKubeWatchEvent } from "./kube-watch-
|
|
23
|
+
import type { IKubeWatchEvent } from "./kube-watch-event";
|
|
24
24
|
import { ItemStore } from "../item.store";
|
|
25
25
|
import { IKubeApiQueryParams, KubeApi } from "./kube-api";
|
|
26
26
|
import type { KubeJsonApiData } from "./kube-json-api";
|
|
27
27
|
import type { RequestInit } from "node-fetch";
|
|
28
|
+
import AbortController from "abort-controller";
|
|
28
29
|
import type { Patch } from "rfc6902";
|
|
29
|
-
export interface KubeObjectStoreLoadingParams
|
|
30
|
+
export interface KubeObjectStoreLoadingParams {
|
|
30
31
|
namespaces: string[];
|
|
31
|
-
api?: KubeApi<K>;
|
|
32
32
|
reqInit?: RequestInit;
|
|
33
33
|
/**
|
|
34
34
|
* A function that is called when listing fails. If set then blocks errors
|
|
@@ -52,6 +52,10 @@ export interface KubeObjectStoreSubscribeParams {
|
|
|
52
52
|
* being rejected with
|
|
53
53
|
*/
|
|
54
54
|
onLoadFailure?: (err: any) => void;
|
|
55
|
+
/**
|
|
56
|
+
* An optional parent abort controller
|
|
57
|
+
*/
|
|
58
|
+
abortController?: AbortController;
|
|
55
59
|
}
|
|
56
60
|
export declare abstract class KubeObjectStore<T extends KubeObject> extends ItemStore<T> {
|
|
57
61
|
static defaultContext: import("mobx").IObservableValue<ClusterContext>;
|
|
@@ -78,16 +82,16 @@ export declare abstract class KubeObjectStore<T extends KubeObject> extends Item
|
|
|
78
82
|
getByLabel(labels: string[] | {
|
|
79
83
|
[label: string]: string;
|
|
80
84
|
}): T[];
|
|
81
|
-
protected loadItems({ namespaces,
|
|
85
|
+
protected loadItems({ namespaces, reqInit, onLoadFailure }: KubeObjectStoreLoadingParams): Promise<T[]>;
|
|
82
86
|
protected filterItemsOnLoad(items: T[]): T[];
|
|
83
|
-
loadAll(
|
|
87
|
+
loadAll({ namespaces, merge, reqInit, onLoadFailure }?: KubeObjectStoreLoadAllParams): Promise<void | T[]>;
|
|
84
88
|
reloadAll(opts?: {
|
|
85
89
|
force?: boolean;
|
|
86
90
|
namespaces?: string[];
|
|
87
91
|
merge?: boolean;
|
|
88
92
|
}): Promise<void | T[]>;
|
|
89
|
-
protected mergeItems(partialItems: T[], {
|
|
90
|
-
|
|
93
|
+
protected mergeItems(partialItems: T[], { merge, updateStore, sort, filter }?: {
|
|
94
|
+
merge?: boolean;
|
|
91
95
|
updateStore?: boolean;
|
|
92
96
|
sort?: boolean;
|
|
93
97
|
filter?: boolean;
|
|
@@ -106,10 +110,10 @@ export declare abstract class KubeObjectStore<T extends KubeObject> extends Item
|
|
|
106
110
|
name: string;
|
|
107
111
|
namespace?: string;
|
|
108
112
|
}, data?: Partial<T>): Promise<T>;
|
|
109
|
-
create(params: {
|
|
113
|
+
create: (params: {
|
|
110
114
|
name: string;
|
|
111
115
|
namespace?: string;
|
|
112
|
-
}, data?: Partial<T>)
|
|
116
|
+
}, data?: Partial<T>) => Promise<T>;
|
|
113
117
|
private postUpdate;
|
|
114
118
|
patch(item: T, patch: Patch): Promise<T>;
|
|
115
119
|
update(item: T, data: Partial<T>): Promise<T>;
|
|
@@ -117,7 +121,7 @@ export declare abstract class KubeObjectStore<T extends KubeObject> extends Item
|
|
|
117
121
|
removeSelectedItems(): Promise<void[]>;
|
|
118
122
|
protected eventsBuffer: import("mobx").IObservableArray<IKubeWatchEvent<KubeJsonApiData>>;
|
|
119
123
|
protected bindWatchEventsUpdater(delay?: number): void;
|
|
120
|
-
subscribe(
|
|
124
|
+
subscribe({ onLoadFailure, abortController }?: KubeObjectStoreSubscribeParams): () => void;
|
|
121
125
|
private watchNamespace;
|
|
122
126
|
protected updateFromEventsBuffer(): void;
|
|
123
127
|
}
|
|
@@ -27,13 +27,13 @@ export declare enum RoutingErrorType {
|
|
|
27
27
|
NO_EXTENSION_ID = "no-ext-id",
|
|
28
28
|
MISSING_EXTENSION = "missing-ext"
|
|
29
29
|
}
|
|
30
|
-
export declare class RoutingError extends Error {
|
|
30
|
+
export declare class RoutingError<Query> extends Error {
|
|
31
31
|
type: RoutingErrorType;
|
|
32
|
-
url: Url
|
|
32
|
+
url: Url<Query>;
|
|
33
33
|
/**
|
|
34
34
|
* Will be set if the routing error originated in an extension route table
|
|
35
35
|
*/
|
|
36
36
|
extensionName?: string;
|
|
37
|
-
constructor(type: RoutingErrorType, url: Url);
|
|
37
|
+
constructor(type: RoutingErrorType, url: Url<Query>);
|
|
38
38
|
toString(): string;
|
|
39
39
|
}
|
|
@@ -19,8 +19,9 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import { match } from "react-router";
|
|
22
|
-
import { Singleton } from "../utils";
|
|
23
22
|
import type Url from "url-parse";
|
|
23
|
+
import type { ExtensionsStore } from "../../extensions/extensions-store/extensions-store";
|
|
24
|
+
import type { ExtensionLoader } from "../../extensions/extension-loader";
|
|
24
25
|
import type { LensExtension } from "../../extensions/lens-extension";
|
|
25
26
|
import type { RouteHandler } from "../../extensions/registries/protocol-handler";
|
|
26
27
|
export declare const ProtocolHandlerIpcPrefix = "protocol-handler";
|
|
@@ -54,29 +55,35 @@ export declare enum RouteAttempt {
|
|
|
54
55
|
MISSING_EXTENSION = "no-extension"
|
|
55
56
|
}
|
|
56
57
|
export declare function foldAttemptResults(mainAttempt: RouteAttempt, rendererAttempt: RouteAttempt): RouteAttempt;
|
|
57
|
-
|
|
58
|
+
interface Dependencies {
|
|
59
|
+
extensionLoader: ExtensionLoader;
|
|
60
|
+
extensionsStore: ExtensionsStore;
|
|
61
|
+
}
|
|
62
|
+
export declare abstract class LensProtocolRouter {
|
|
63
|
+
protected dependencies: Dependencies;
|
|
58
64
|
protected internalRoutes: Map<string, RouteHandler>;
|
|
59
65
|
static readonly LoggingPrefix = "[PROTOCOL ROUTER]";
|
|
60
66
|
static readonly ExtensionUrlSchema: string;
|
|
67
|
+
constructor(dependencies: Dependencies);
|
|
61
68
|
/**
|
|
62
69
|
* Attempts to route the given URL to all internal routes that have been registered
|
|
63
70
|
* @param url the parsed URL that initiated the `lens://` protocol
|
|
64
71
|
* @returns true if a route has been found
|
|
65
72
|
*/
|
|
66
|
-
protected _routeToInternal(url: Url): RouteAttempt;
|
|
73
|
+
protected _routeToInternal(url: Url<Record<string, string>>): RouteAttempt;
|
|
67
74
|
/**
|
|
68
75
|
* match against all matched URIs, returning either the first exact match or
|
|
69
76
|
* the most specific match if none are exact.
|
|
70
77
|
* @param routes the array of path schemas, handler pairs to match against
|
|
71
78
|
* @param url the url (in its current state)
|
|
72
79
|
*/
|
|
73
|
-
protected _findMatchingRoute(routes: Iterable<[string, RouteHandler]>, url: Url): null | [match<Record<string, string>>, RouteHandler];
|
|
80
|
+
protected _findMatchingRoute(routes: Iterable<[string, RouteHandler]>, url: Url<Record<string, string>>): null | [match<Record<string, string>>, RouteHandler];
|
|
74
81
|
/**
|
|
75
82
|
* find the most specific matching handler and call it
|
|
76
83
|
* @param routes the array of (path schemas, handler) pairs to match against
|
|
77
84
|
* @param url the url (in its current state)
|
|
78
85
|
*/
|
|
79
|
-
protected _route(routes: Iterable<[string, RouteHandler]>, url: Url, extensionName?: string): RouteAttempt;
|
|
86
|
+
protected _route(routes: Iterable<[string, RouteHandler]>, url: Url<Record<string, string>>, extensionName?: string): RouteAttempt;
|
|
80
87
|
/**
|
|
81
88
|
* Tries to find the matching LensExtension instance
|
|
82
89
|
*
|
|
@@ -84,7 +91,7 @@ export declare abstract class LensProtocolRouter extends Singleton {
|
|
|
84
91
|
* @param url the protocol request URI that was "open"-ed
|
|
85
92
|
* @returns either the found name or the instance of `LensExtension`
|
|
86
93
|
*/
|
|
87
|
-
protected _findMatchingExtensionByName(url: Url): Promise<LensExtension | string>;
|
|
94
|
+
protected _findMatchingExtensionByName(url: Url<Record<string, string>>): Promise<LensExtension | string>;
|
|
88
95
|
/**
|
|
89
96
|
* Find a matching extension by the first one or two path segments of `url` and then try to `_route`
|
|
90
97
|
* its correspondingly registered handlers.
|
|
@@ -95,7 +102,7 @@ export declare abstract class LensProtocolRouter extends Singleton {
|
|
|
95
102
|
* Note: this function modifies its argument, do not reuse
|
|
96
103
|
* @param url the protocol request URI that was "open"-ed
|
|
97
104
|
*/
|
|
98
|
-
protected _routeToExtension(url: Url): Promise<RouteAttempt>;
|
|
105
|
+
protected _routeToExtension(url: Url<Record<string, string>>): Promise<RouteAttempt>;
|
|
99
106
|
/**
|
|
100
107
|
* Add a handler under the `lens://app` tree of routing.
|
|
101
108
|
* @param pathSchema the URI path schema to match against for this handler
|
|
@@ -108,3 +115,4 @@ export declare abstract class LensProtocolRouter extends Singleton {
|
|
|
108
115
|
*/
|
|
109
116
|
removeInternalHandler(urlSchema: string): void;
|
|
110
117
|
}
|
|
118
|
+
export {};
|
|
@@ -39,6 +39,19 @@ export interface DownloadMirror {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const defaultPackageMirror = "default";
|
|
41
41
|
export declare const packageMirrors: Map<string, DownloadMirror>;
|
|
42
|
+
export declare enum ExtensionRegistryLocation {
|
|
43
|
+
DEFAULT = "default",
|
|
44
|
+
NPMRC = "npmrc",
|
|
45
|
+
CUSTOM = "custom"
|
|
46
|
+
}
|
|
47
|
+
export declare type ExtensionRegistry = {
|
|
48
|
+
location: ExtensionRegistryLocation.DEFAULT | ExtensionRegistryLocation.NPMRC;
|
|
49
|
+
customUrl?: undefined;
|
|
50
|
+
} | {
|
|
51
|
+
location: ExtensionRegistryLocation.CUSTOM;
|
|
52
|
+
customUrl: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const defaultExtensionRegistryUrl = "https://registry.npmjs.org";
|
|
42
55
|
declare type PreferencesModelType<field extends keyof typeof DESCRIPTORS> = typeof DESCRIPTORS[field] extends PreferenceDescription<infer T, any> ? T : never;
|
|
43
56
|
declare type UserStoreModelType<field extends keyof typeof DESCRIPTORS> = typeof DESCRIPTORS[field] extends PreferenceDescription<any, infer T> ? T : never;
|
|
44
57
|
export declare type UserStoreFlatModel = {
|
|
@@ -65,6 +78,7 @@ export declare const DESCRIPTORS: {
|
|
|
65
78
|
editorConfiguration: PreferenceDescription<EditorConfiguration, EditorConfiguration>;
|
|
66
79
|
terminalCopyOnSelect: PreferenceDescription<boolean, boolean>;
|
|
67
80
|
updateChannel: PreferenceDescription<string, string>;
|
|
81
|
+
extensionRegistryUrl: PreferenceDescription<ExtensionRegistry, ExtensionRegistry>;
|
|
68
82
|
};
|
|
69
83
|
export declare const CONSTANTS: {
|
|
70
84
|
updateChannels: Map<string, {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { BaseStore } from "../base-store";
|
|
22
22
|
import { ObservableToggleSet } from "../../renderer/utils";
|
|
23
|
-
import { EditorConfiguration, KubeconfigSyncValue, UserPreferencesModel } from "./preferences-helpers";
|
|
23
|
+
import { EditorConfiguration, ExtensionRegistry, KubeconfigSyncValue, UserPreferencesModel } from "./preferences-helpers";
|
|
24
24
|
export interface UserStoreModel {
|
|
25
25
|
lastSeenAppVersion: string;
|
|
26
26
|
preferences: UserPreferencesModel;
|
|
@@ -47,6 +47,7 @@ export declare class UserStore extends BaseStore<UserStoreModel> {
|
|
|
47
47
|
kubectlBinariesPath?: string;
|
|
48
48
|
terminalCopyOnSelect: boolean;
|
|
49
49
|
updateChannel?: string;
|
|
50
|
+
extensionRegistryUrl: ExtensionRegistry;
|
|
50
51
|
/**
|
|
51
52
|
* Download kubectl binaries matching cluster version
|
|
52
53
|
*/
|
|
@@ -86,8 +87,3 @@ export declare class UserStore extends BaseStore<UserStoreModel> {
|
|
|
86
87
|
protected fromStore({ lastSeenAppVersion, preferences }?: Partial<UserStoreModel>): void;
|
|
87
88
|
toJSON(): UserStoreModel;
|
|
88
89
|
}
|
|
89
|
-
/**
|
|
90
|
-
* Getting default directory to download kubectl binaries
|
|
91
|
-
* @returns string
|
|
92
|
-
*/
|
|
93
|
-
export declare function getDefaultKubectlDownloadPath(): string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
import { UserStore } from "./user-store";
|
|
3
|
+
declare const userStoreInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<UserStore, unknown>, UserStore, unknown>;
|
|
4
|
+
export default userStoreInjectable;
|
|
@@ -39,11 +39,11 @@ export * from "./extended-map";
|
|
|
39
39
|
export * from "./formatDuration";
|
|
40
40
|
export * from "./getRandId";
|
|
41
41
|
export * from "./hash-set";
|
|
42
|
-
export * from "./local-kubeconfig";
|
|
43
42
|
export * from "./n-fircate";
|
|
44
43
|
export * from "./objects";
|
|
45
44
|
export * from "./openExternal";
|
|
46
45
|
export * from "./paths";
|
|
46
|
+
export * from "./promise-exec";
|
|
47
47
|
export * from "./reject-promise";
|
|
48
48
|
export * from "./singleton";
|
|
49
49
|
export * from "./sort-compare";
|
|
@@ -19,6 +19,5 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="node" />
|
|
22
|
-
import {
|
|
23
|
-
export declare const promiseExec: typeof exec.__promisify__;
|
|
22
|
+
import { execFile } from "child_process";
|
|
24
23
|
export declare const promiseExecFile: typeof execFile.__promisify__;
|
|
@@ -39,7 +39,7 @@ export declare class ReadableWebToNodeStream<T extends TypedArray> extends Reada
|
|
|
39
39
|
private pendingRead;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @param stream
|
|
42
|
+
* @param stream ReadableStream: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream
|
|
43
43
|
*/
|
|
44
44
|
constructor(stream: ReadableStream<T>);
|
|
45
45
|
/**
|
|
@@ -50,7 +50,7 @@ export declare class ReadableWebToNodeStream<T extends TypedArray> extends Reada
|
|
|
50
50
|
*/
|
|
51
51
|
_read(): Promise<void>;
|
|
52
52
|
/**
|
|
53
|
-
* If there is no unresolved read call to Web-API
|
|
53
|
+
* If there is no unresolved read call to Web-API ReadableStream immediately returns;
|
|
54
54
|
* otherwise will wait until the read is resolved.
|
|
55
55
|
*/
|
|
56
56
|
waitForReadToComplete(): Promise<void>;
|
|
@@ -33,6 +33,7 @@ export declare const isIntegrationTesting: boolean;
|
|
|
33
33
|
export declare const productName: string;
|
|
34
34
|
export declare const appName: string;
|
|
35
35
|
export declare const publicPath: string;
|
|
36
|
+
export declare const defaultTheme: string;
|
|
36
37
|
export declare const contextDir: string;
|
|
37
38
|
export declare const buildDir: string;
|
|
38
39
|
export declare const preloadEntrypoint: string;
|
|
@@ -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 { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
declare type TentativeTuple<T> = T extends object ? [T] : [undefined?];
|
|
23
|
+
declare type FactoryType = <TInjectable extends Injectable<unknown, TInstance, TInstantiationParameter>, TInstantiationParameter, TInstance extends (...args: unknown[]) => any, TFunction extends (...args: unknown[]) => any = Awaited<ReturnType<TInjectable["instantiate"]>>>(injectableKey: TInjectable, ...instantiationParameter: TentativeTuple<TInstantiationParameter>) => (...args: Parameters<TFunction>) => ReturnType<TFunction>;
|
|
24
|
+
export declare const asLegacyGlobalFunctionForExtensionApi: FactoryType;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
declare type TentativeTuple<T> = T extends object ? [T] : [undefined?];
|
|
23
|
+
export declare const asLegacyGlobalObjectForExtensionApi: <TInjectable extends Injectable<unknown, unknown, TInstantiationParameter>, TInstantiationParameter>(injectableKey: TInjectable, ...instantiationParameter: TentativeTuple<TInstantiationParameter>) => ReturnType<TInjectable["instantiate"]>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
declare type TentativeTuple<T> = T extends object ? [T] : [undefined?];
|
|
23
|
+
export declare const asLegacyGlobalSingletonForExtensionApi: <TClass extends abstract new (...args: any[]) => any, TInjectable extends Injectable<unknown, unknown, TInstantiationParameter>, TInstantiationParameter>(Class: TClass, injectableKey: TInjectable, ...instantiationParameter: TentativeTuple<TInstantiationParameter>) => InstanceType<TClass> & {
|
|
24
|
+
getInstance: () => InstanceType<TClass>;
|
|
25
|
+
createInstance: () => InstanceType<TClass>;
|
|
26
|
+
resetInstance: () => void;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
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 setLegacyGlobalDiForExtensionApi: (di: DependencyInjectionContainer) => void;
|
|
23
|
+
export declare const getLegacyGlobalDiForExtensionApi: () => DependencyInjectionContainer;
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
import * as Preferences from "./user-preferences";
|
|
22
22
|
export declare const version: string;
|
|
23
23
|
export { isSnap, isWindows, isMac, isLinux, appName, slackUrl, issuesTrackerUrl } from "../../common/vars";
|
|
24
|
-
export declare
|
|
24
|
+
export declare const getEnabledExtensions: () => string[];
|
|
25
25
|
export { Preferences };
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
export { appEventBus } from "../../common/event-bus";
|
|
22
|
-
export type { AppEvent } from "../../common/event-bus";
|
|
21
|
+
export { appEventBus } from "../../common/app-event-bus/event-bus";
|
|
22
|
+
export type { AppEvent } from "../../common/app-event-bus/event-bus";
|
package/dist/src/extensions/common-api/get-enabled-extensions/get-enabled-extensions.injectable.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
declare const getEnabledExtensionsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<() => string[], unknown>, () => string[], unknown>;
|
|
3
|
+
export default getEnabledExtensionsInjectable;
|