@k8slens/extensions 5.3.1-git.93a60caf40.0 → 5.3.1-git.a5e89b79d6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/dist/src/common/base-store.d.ts +5 -2
  2. package/dist/src/common/catalog/catalog-entity.d.ts +51 -0
  3. package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -2
  4. package/dist/src/common/catalog-entities/web-link.d.ts +0 -2
  5. package/dist/src/common/cluster-types.d.ts +5 -1
  6. package/dist/src/common/hotbar-store.d.ts +16 -11
  7. package/dist/src/common/hotbar-store.injectable.d.ts +4 -0
  8. package/dist/src/common/hotbar-types.d.ts +5 -2
  9. package/dist/src/{extensions/registries/welcome-menu-registry.d.ts → common/ipc/catalog.d.ts} +9 -7
  10. package/dist/src/common/ipc/extension-loader.ipc.d.ts +21 -0
  11. package/dist/src/common/ipc/index.d.ts +2 -0
  12. package/dist/src/common/ipc/update-available.ipc.d.ts +2 -0
  13. package/dist/src/common/k8s-api/api-manager.d.ts +1 -1
  14. package/dist/src/common/k8s-api/cluster-context.d.ts +1 -0
  15. package/dist/src/common/k8s-api/endpoints/crd.api.d.ts +29 -28
  16. package/dist/src/common/k8s-api/endpoints/daemon-set.api.d.ts +2 -5
  17. package/dist/src/common/k8s-api/endpoints/deployment.api.d.ts +2 -5
  18. package/dist/src/common/k8s-api/endpoints/job.api.d.ts +2 -5
  19. package/dist/src/common/k8s-api/endpoints/metrics.api.d.ts +2 -0
  20. package/dist/src/common/k8s-api/endpoints/network-policy.api.d.ts +72 -32
  21. package/dist/src/common/k8s-api/endpoints/nodes.api.d.ts +6 -6
  22. package/dist/src/common/k8s-api/endpoints/persistent-volume-claims.api.d.ts +3 -16
  23. package/dist/src/common/k8s-api/endpoints/poddisruptionbudget.api.d.ts +2 -6
  24. package/dist/src/common/k8s-api/endpoints/pods.api.d.ts +2 -0
  25. package/dist/src/common/k8s-api/endpoints/replica-set.api.d.ts +2 -5
  26. package/dist/src/common/k8s-api/endpoints/stateful-set.api.d.ts +2 -5
  27. package/dist/src/common/k8s-api/kube-api-parse.d.ts +2 -2
  28. package/dist/src/common/k8s-api/kube-api.d.ts +58 -30
  29. package/dist/src/common/k8s-api/kube-json-api.d.ts +1 -2
  30. package/dist/src/common/k8s-api/kube-object.d.ts +25 -2
  31. package/dist/src/common/k8s-api/kube-object.store.d.ts +11 -7
  32. package/dist/src/common/k8s-api/kube-watch-api.d.ts +7 -30
  33. package/dist/src/common/protocol-handler/error.d.ts +3 -3
  34. package/dist/src/common/protocol-handler/router.d.ts +13 -7
  35. package/dist/src/common/user-store/preferences-helpers.d.ts +15 -0
  36. package/dist/src/common/user-store/user-store.d.ts +3 -1
  37. package/dist/src/common/utils/index.d.ts +1 -0
  38. package/dist/src/common/utils/promise-exec.d.ts +1 -2
  39. package/dist/src/common/utils/readableStream.d.ts +2 -2
  40. package/dist/src/common/vars.d.ts +1 -0
  41. package/dist/src/extensions/{registries/command-registry.d.ts → as-legacy-globals-for-extension-api/as-legacy-global-function-for-extension-api.d.ts} +5 -16
  42. package/dist/src/extensions/as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api.d.ts +24 -0
  43. package/dist/src/{renderer/utils/copyToClipboard.d.ts → extensions/as-legacy-globals-for-extension-api/as-legacy-global-singleton-for-extension-api.d.ts} +7 -6
  44. package/dist/src/extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.d.ts +23 -0
  45. package/dist/src/extensions/extension-api.js +1955 -3336
  46. package/dist/src/extensions/extension-compatibility.d.ts +3 -1
  47. package/dist/src/extensions/extension-discovery.d.ts +3 -1
  48. package/dist/src/extensions/{extension-loader.d.ts → extension-loader/extension-loader.d.ts} +15 -7
  49. package/dist/src/extensions/extension-loader/extension-loader.injectable.d.ts +4 -0
  50. package/dist/src/{main/initializers/registries.d.ts → extensions/extension-loader/index.d.ts} +1 -1
  51. package/dist/src/extensions/extensions.injectable.d.ts +3 -0
  52. package/dist/src/extensions/getDiForUnitTesting.d.ts +22 -0
  53. package/dist/src/extensions/lens-extension.d.ts +2 -1
  54. package/dist/src/extensions/lens-main-extension.d.ts +3 -1
  55. package/dist/src/extensions/lens-renderer-extension.d.ts +14 -7
  56. package/dist/src/extensions/main-extensions.injectable.d.ts +5 -0
  57. package/dist/src/extensions/registries/base-registry.d.ts +1 -1
  58. package/dist/src/extensions/registries/entity-setting-registry.d.ts +1 -1
  59. package/dist/src/extensions/registries/index.d.ts +0 -5
  60. package/dist/src/extensions/registries/status-bar-registry.d.ts +6 -0
  61. package/dist/src/extensions/renderer-api/components.d.ts +1 -1
  62. package/dist/src/extensions/renderer-api/k8s-api.d.ts +1 -0
  63. package/dist/src/extensions/renderer-extensions.injectable.d.ts +5 -0
  64. package/dist/src/main/catalog-pusher.d.ts +1 -1
  65. package/dist/src/main/cluster-manager.d.ts +1 -1
  66. package/dist/src/main/cluster.d.ts +3 -7
  67. package/dist/src/main/context-handler.d.ts +8 -1
  68. package/dist/src/main/getDi.d.ts +22 -0
  69. package/dist/src/main/getDiForUnitTesting.d.ts +22 -0
  70. package/dist/src/main/helm/helm-release-manager.d.ts +9 -10
  71. package/dist/src/main/helm/helm-repo-manager.d.ts +2 -2
  72. package/dist/src/main/helm/helm-service.d.ts +2 -2
  73. package/dist/src/main/initializers/index.d.ts +0 -1
  74. package/dist/src/main/initializers/ipc.d.ts +3 -1
  75. package/dist/src/main/kube-auth-proxy.d.ts +5 -7
  76. package/dist/src/main/kubeconfig-manager.d.ts +16 -4
  77. package/dist/src/main/lens-proxy.d.ts +8 -1
  78. package/dist/src/main/menu/electron-menu-items.injectable.d.ts +3 -0
  79. package/dist/src/main/menu/electron-menu-items.test.d.ts +1 -0
  80. package/dist/src/main/menu/menu.d.ts +33 -0
  81. package/dist/src/main/protocol-handler/index.d.ts +1 -1
  82. package/dist/src/main/protocol-handler/{router.d.ts → lens-protocol-router-main/lens-protocol-router-main.d.ts} +14 -8
  83. package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable.d.ts +4 -0
  84. package/dist/src/main/routes/port-forward-route.d.ts +0 -1
  85. package/dist/src/main/tray/tray-menu-items.injectable.d.ts +3 -0
  86. package/dist/src/main/tray/tray-menu-items.test.d.ts +1 -0
  87. package/dist/src/main/tray/tray.d.ts +27 -0
  88. package/dist/src/main/window-manager.d.ts +3 -0
  89. package/dist/src/renderer/api/__tests__/catalog-entity-registry.test.d.ts +1 -1
  90. package/dist/src/renderer/api/catalog-entity-registry.d.ts +4 -0
  91. package/dist/src/renderer/api/catalog-entity.d.ts +1 -5
  92. package/dist/src/{main/catalog-sources → renderer/api}/helpers/general-active-sync.d.ts +0 -0
  93. package/dist/src/renderer/api/terminal-api.d.ts +0 -2
  94. package/dist/src/renderer/bootstrap.d.ts +5 -2
  95. package/dist/src/renderer/cluster-frame.d.ts +2 -1
  96. package/dist/src/renderer/components/+catalog/catalog-entity-details.d.ts +3 -3
  97. package/dist/src/renderer/components/+catalog/catalog-entity-drawer-menu.d.ts +1 -2
  98. package/dist/src/renderer/components/+catalog/catalog-entity.store.d.ts +4 -4
  99. package/dist/src/renderer/components/+catalog/catalog.d.ts +5 -6
  100. package/dist/src/renderer/components/{command-palette/command-overlay.d.ts → +catalog/helpers.d.ts} +5 -7
  101. package/dist/src/renderer/components/+custom-resources/custom-resources.injectable.d.ts +23 -0
  102. package/dist/src/renderer/components/+events/kube-event-details.d.ts +1 -1
  103. package/dist/src/renderer/components/{clipboard/clipboard.d.ts → +extensions/attempt-install/attempt-install.d.ts} +11 -16
  104. package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +3 -0
  105. package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate/create-temp-files-and-validate.d.ts +11 -0
  106. package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder/get-extension-dest-folder.d.ts +1 -0
  107. package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.d.ts +28 -0
  108. package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.injectable.d.ts +3 -0
  109. package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +22 -0
  110. package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.d.ts +13 -0
  111. package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.injectable.d.ts +3 -0
  112. package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.d.ts +6 -0
  113. package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts +3 -0
  114. package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.d.ts +7 -0
  115. package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.injectable.d.ts +3 -0
  116. package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.d.ts +27 -0
  117. package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts +3 -0
  118. package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.d.ts +27 -0
  119. package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts +3 -0
  120. package/dist/src/renderer/components/+extensions/extensions.d.ts +1 -15
  121. package/dist/src/{extensions/registries/menu-registry.d.ts → renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts} +5 -6
  122. package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.injectable.d.ts +23 -0
  123. package/dist/src/renderer/components/+extensions/get-message-from-error/get-message-from-error.d.ts +21 -0
  124. package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.d.ts +29 -0
  125. package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.d.ts +3 -0
  126. package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +5 -0
  127. package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts +3 -0
  128. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +5 -0
  129. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +3 -0
  130. package/dist/src/renderer/components/+extensions/read-file-notify/read-file-notify.d.ts +2 -0
  131. package/dist/src/renderer/components/+extensions/supported-extension-formats.d.ts +21 -0
  132. package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.d.ts +27 -0
  133. package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.injectable.d.ts +3 -0
  134. package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts +3 -0
  135. package/dist/src/renderer/components/+namespaces/namespace-details.d.ts +0 -1
  136. package/dist/src/renderer/components/+namespaces/namespace-select.d.ts +0 -1
  137. package/dist/src/renderer/components/+namespaces/namespace.store.d.ts +5 -3
  138. package/dist/src/renderer/components/+network-ingresses/ingress-details.d.ts +1 -1
  139. package/dist/src/renderer/components/{clipboard/index.d.ts → +network-policies/__tests__/network-policy-details.test.d.ts} +1 -1
  140. package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +8 -4
  141. package/dist/src/renderer/components/+network-port-forwards/port-forward-menu.d.ts +2 -0
  142. package/dist/src/renderer/components/+network-services/service-port-component.d.ts +1 -0
  143. package/dist/src/renderer/components/+nodes/node-details.d.ts +1 -2
  144. package/dist/src/renderer/components/+nodes/nodes.d.ts +2 -1
  145. package/dist/src/renderer/components/+preferences/extension-settings.d.ts +7 -0
  146. package/dist/src/renderer/components/+preferences/preferences.d.ts +0 -2
  147. package/dist/src/renderer/components/+storage-classes/storage-class-details.d.ts +1 -1
  148. package/dist/src/renderer/components/+storage-volume-claims/volume-claim-details.d.ts +1 -1
  149. package/dist/src/renderer/components/+welcome/welcome-banner-items/welcome-banner-items.injectable.d.ts +3 -0
  150. package/dist/src/renderer/components/+welcome/welcome-menu-items/get-welcome-menu-items.d.ts +27 -0
  151. package/dist/src/renderer/components/+welcome/welcome-menu-items/welcome-menu-items.injectable.d.ts +3 -0
  152. package/dist/src/renderer/components/+welcome/welcome.d.ts +1 -3
  153. package/dist/src/renderer/components/+workloads-cronjobs/cronjob-details.d.ts +1 -1
  154. package/dist/src/renderer/components/+workloads-daemonsets/daemonset-details.d.ts +0 -1
  155. package/dist/src/renderer/components/+workloads-deployments/deployment-details.d.ts +0 -1
  156. package/dist/src/renderer/components/+workloads-jobs/job-details.d.ts +1 -1
  157. package/dist/src/renderer/components/+workloads-overview/overview-workload-status.d.ts +2 -7
  158. package/dist/src/renderer/components/+workloads-overview/overview.d.ts +2 -0
  159. package/dist/src/renderer/components/+workloads-pods/pod-container-port.d.ts +1 -0
  160. package/dist/src/renderer/components/+workloads-replicasets/replicaset-details.d.ts +1 -2
  161. package/dist/src/renderer/components/+workloads-statefulsets/statefulset-details.d.ts +0 -1
  162. package/dist/src/renderer/components/activate-entity-command/activate-entity-command.d.ts +1 -9
  163. package/dist/src/renderer/components/{layout/__tests__/topbar.test.d.ts → avatar/__tests__/avatar.test.d.ts} +0 -0
  164. package/dist/src/renderer/components/avatar/avatar.d.ts +7 -8
  165. package/dist/src/renderer/components/{+404 → avatar}/index.d.ts +1 -1
  166. package/dist/src/renderer/components/catalog-entities/weblink-add-command.d.ts +1 -11
  167. package/dist/src/renderer/components/checkbox/checkbox.d.ts +0 -1
  168. package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +22 -0
  169. package/dist/src/renderer/components/cluster-manager/bottom-bar.d.ts +0 -1
  170. package/dist/src/renderer/components/cluster-manager/cluster-status.d.ts +3 -2
  171. package/dist/src/renderer/components/command-palette/command-container.d.ts +1 -7
  172. package/dist/src/renderer/components/command-palette/command-dialog.d.ts +1 -13
  173. package/dist/src/renderer/components/command-palette/command-overlay.injectable.d.ts +31 -0
  174. package/dist/src/renderer/components/command-palette/index.d.ts +1 -1
  175. package/dist/src/renderer/components/command-palette/registered-commands/internal-commands.injectable.d.ts +25 -0
  176. package/dist/src/renderer/components/command-palette/registered-commands/registered-commands.injectable.d.ts +25 -0
  177. package/dist/src/renderer/components/context.d.ts +8 -1
  178. package/dist/src/renderer/components/dialog/dialog.d.ts +1 -0
  179. package/dist/src/renderer/components/dock/dock.store.d.ts +11 -4
  180. package/dist/src/renderer/components/dock/install-chart.d.ts +0 -1
  181. package/dist/src/renderer/components/dock/terminal.d.ts +1 -2
  182. package/dist/src/renderer/components/drawer/drawer.d.ts +14 -3
  183. package/dist/src/renderer/components/hotbar/hotbar-add-command.d.ts +1 -6
  184. package/dist/src/renderer/components/hotbar/hotbar-entity-icon.d.ts +3 -3
  185. package/dist/src/renderer/components/hotbar/hotbar-icon.d.ts +3 -10
  186. package/dist/src/renderer/components/hotbar/hotbar-menu.d.ts +4 -1
  187. package/dist/src/renderer/components/hotbar/hotbar-remove-command.d.ts +1 -9
  188. package/dist/src/renderer/components/hotbar/hotbar-rename-command.d.ts +1 -14
  189. package/dist/src/renderer/components/hotbar/hotbar-selector.d.ts +3 -3
  190. package/dist/src/renderer/components/hotbar/hotbar-switch-command.d.ts +1 -12
  191. package/dist/src/renderer/components/input/input.d.ts +1 -0
  192. package/dist/src/renderer/components/input/validators/unique-hotbar-name.injectable.d.ts +24 -0
  193. package/dist/src/renderer/components/kube-object-list-layout/kube-object-list-layout.d.ts +2 -0
  194. package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts +3 -0
  195. package/dist/src/{main/tray.d.ts → renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts} +3 -5
  196. package/dist/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.d.ts +3 -0
  197. package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts +24 -0
  198. package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +24 -0
  199. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/get-kube-object-menu-items.d.ts +26 -0
  200. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-items.injectable.d.ts +9 -0
  201. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-registry.injectable.d.ts +24 -0
  202. package/dist/src/renderer/components/kube-object-menu/index.d.ts +2 -1
  203. package/dist/src/renderer/components/kube-object-menu/kube-object-menu.d.ts +4 -13
  204. package/dist/src/renderer/components/kube-object-menu/kube-object-menu.test.d.ts +21 -0
  205. package/dist/src/renderer/components/kubeconfig-dialog/kubeconfig-dialog.d.ts +0 -1
  206. package/dist/src/renderer/components/layout/{topbar.d.ts → close-button.d.ts} +3 -3
  207. package/dist/src/renderer/components/layout/top-bar/top-bar-items/top-bar-items.injectable.d.ts +3 -0
  208. package/dist/src/renderer/components/layout/top-bar/top-bar-win-linux.test.d.ts +21 -0
  209. package/dist/src/renderer/components/layout/top-bar/top-bar.d.ts +22 -0
  210. package/dist/src/renderer/components/layout/top-bar/top-bar.test.d.ts +21 -0
  211. package/dist/src/renderer/components/menu/menu-actions.d.ts +1 -1
  212. package/dist/src/renderer/components/monaco-editor/monaco-editor.d.ts +1 -1
  213. package/dist/src/renderer/components/notifications/notifications.d.ts +3 -3
  214. package/dist/src/renderer/components/resizing-anchor/resizing-anchor.d.ts +3 -1
  215. package/dist/src/renderer/components/switch/__tests__/switch.test.d.ts +21 -0
  216. package/dist/src/renderer/components/switch/form-switcher.d.ts +3 -0
  217. package/dist/src/renderer/components/switch/index.d.ts +1 -0
  218. package/dist/src/{extensions/registries/topbar-registry.d.ts → renderer/components/switch/switch.d.ts} +4 -9
  219. package/dist/src/renderer/components/switch/switcher.d.ts +4 -1
  220. package/dist/src/renderer/components/test-utils/renderFor.d.ts +27 -0
  221. package/dist/src/renderer/{components/+404/not-found.d.ts → getDi.d.ts} +2 -4
  222. package/dist/src/renderer/getDiForUnitTesting.d.ts +22 -0
  223. package/dist/src/renderer/initializers/catalog.d.ts +6 -1
  224. package/dist/src/renderer/initializers/index.d.ts +1 -2
  225. package/dist/src/renderer/initializers/ipc.d.ts +2 -1
  226. package/dist/src/renderer/initializers/status-bar-registry.d.ts +21 -0
  227. package/dist/src/renderer/navigation/helpers.d.ts +1 -1
  228. package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +1 -1
  229. package/dist/src/renderer/port-forward/port-forward-item.d.ts +4 -4
  230. package/dist/src/renderer/port-forward/port-forward-notify.d.ts +1 -0
  231. package/dist/src/renderer/port-forward/port-forward.store.d.ts +56 -6
  232. package/dist/src/{main/menu.d.ts → renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts} +8 -6
  233. package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable.d.ts +3 -0
  234. package/dist/src/renderer/protocol-handler/index.d.ts +2 -2
  235. package/dist/src/renderer/protocol-handler/{router.d.ts → lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts} +8 -1
  236. package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable.d.ts +4 -0
  237. package/dist/src/renderer/root-frame.d.ts +3 -1
  238. package/dist/src/renderer/theme.store.d.ts +6 -4
  239. package/dist/src/renderer/utils/index.d.ts +0 -1
  240. package/dist/src/{extensions/registries/welcome-banner-registry.d.ts → renderer/window/event-listener.injectable.d.ts} +5 -18
  241. package/package.json +1 -1
  242. package/dist/src/renderer/components/hotbar/hotbar-display-label.d.ts +0 -22
  243. package/dist/src/renderer/initializers/command-registry.d.ts +0 -21
  244. package/dist/src/renderer/initializers/welcome-menu-registry.d.ts +0 -21
  245. package/dist/src/renderer/protocol-handler/app-handlers.d.ts +0 -21
@@ -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
+ /// <reference types="@ogre-tools/injectable" />
22
+ declare const getBaseRegistryUrlInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<() => Promise<string>, unknown>, () => Promise<string>, unknown>;
23
+ export default getBaseRegistryUrlInjectable;
@@ -0,0 +1,21 @@
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 getMessageFromError(error: any): string;
@@ -0,0 +1,29 @@
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 { ExtendableDisposer } from "../../../../common/utils";
22
+ import type { InstallRequest } from "../attempt-install/install-request";
23
+ import type { ExtensionInfo } from "../attempt-install-by-info/attempt-install-by-info";
24
+ interface Dependencies {
25
+ attemptInstall: (request: InstallRequest, disposer?: ExtendableDisposer) => Promise<void>;
26
+ attemptInstallByInfo: (extensionInfo: ExtensionInfo) => Promise<void>;
27
+ }
28
+ export declare const installFromInput: ({ attemptInstall, attemptInstallByInfo }: Dependencies) => (input: string) => Promise<void>;
29
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const installFromInputInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<(input: string) => Promise<void>, unknown>, (input: string) => Promise<void>, unknown>;
3
+ export default installFromInputInjectable;
@@ -0,0 +1,5 @@
1
+ interface Dependencies {
2
+ attemptInstalls: (filePaths: string[]) => Promise<void>;
3
+ }
4
+ export declare const installFromSelectFileDialog: ({ attemptInstalls }: Dependencies) => () => Promise<void>;
5
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const installFromSelectFileDialogInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<() => Promise<void>, unknown>, () => Promise<void>, unknown>;
3
+ export default installFromSelectFileDialogInjectable;
@@ -0,0 +1,5 @@
1
+ interface Dependencies {
2
+ attemptInstalls: (filePaths: string[]) => Promise<void>;
3
+ }
4
+ export declare const installOnDrop: ({ attemptInstalls }: Dependencies) => (files: File[]) => Promise<void>;
5
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const installOnDropInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<(files: File[]) => Promise<void>, unknown>, (files: File[]) => Promise<void>, unknown>;
3
+ export default installOnDropInjectable;
@@ -0,0 +1,2 @@
1
+ /// <reference types="node" />
2
+ export declare const readFileNotify: (filePath: string, showError?: boolean) => Promise<Buffer | null>;
@@ -0,0 +1,21 @@
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 const supportedExtensionFormats: string[];
@@ -0,0 +1,27 @@
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 { ExtensionLoader } from "../../../../extensions/extension-loader";
22
+ import { LensExtensionId } from "../../../../extensions/lens-extension";
23
+ interface Dependencies {
24
+ extensionLoader: ExtensionLoader;
25
+ }
26
+ export declare const uninstallExtension: ({ extensionLoader }: Dependencies) => (extensionId: LensExtensionId) => Promise<boolean>;
27
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const uninstallExtensionInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<(extensionId: string) => Promise<boolean>, unknown>, (extensionId: string) => Promise<boolean>, unknown>;
3
+ export default uninstallExtensionInjectable;
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const userExtensionsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("mobx").IComputedValue<import("../../../../extensions/extension-discovery").InstalledExtension[]>, unknown>, import("mobx").IComputedValue<import("../../../../extensions/extension-discovery").InstalledExtension[]>, unknown>;
3
+ export default userExtensionsInjectable;
@@ -27,7 +27,6 @@ interface Props extends KubeObjectDetailsProps<Namespace> {
27
27
  export declare class NamespaceDetails extends React.Component<Props> {
28
28
  metrics: IPodMetrics;
29
29
  constructor(props: Props);
30
- clean: import("mobx").IReactionDisposer;
31
30
  componentDidMount(): void;
32
31
  get quotas(): import("../../../common/k8s-api/endpoints").ResourceQuota[];
33
32
  get limitranges(): import("../../../common/k8s-api/endpoints").LimitRange[];
@@ -30,7 +30,6 @@ interface Props extends SelectProps {
30
30
  export declare class NamespaceSelect extends React.Component<Props> {
31
31
  static defaultProps: object;
32
32
  constructor(props: Props);
33
- componentDidMount(): void;
34
33
  get options(): SelectOption[];
35
34
  formatOptionLabel: (option: SelectOption) => {};
36
35
  render(): JSX.Element;
@@ -18,7 +18,7 @@
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
- import { IReactionDisposer, IReactionOptions } from "mobx";
21
+ import { IReactionDisposer } from "mobx";
22
22
  import { noop } from "../../utils";
23
23
  import { KubeObjectStore, KubeObjectStoreLoadingParams } from "../../../common/k8s-api/kube-object.store";
24
24
  import { Namespace } from "../../../common/k8s-api/endpoints/namespaces.api";
@@ -27,7 +27,9 @@ export declare class NamespaceStore extends KubeObjectStore<Namespace> {
27
27
  private storage;
28
28
  constructor();
29
29
  private init;
30
- onContextChange(callback: (namespaces: string[]) => void, opts?: IReactionOptions): IReactionDisposer;
30
+ onContextChange(callback: (namespaces: string[]) => void, opts?: {
31
+ fireImmediately?: boolean;
32
+ }): IReactionDisposer;
31
33
  private autoLoadAllowedNamespaces;
32
34
  private get initialNamespaces();
33
35
  /**
@@ -52,7 +54,7 @@ export declare class NamespaceStore extends KubeObjectStore<Namespace> {
52
54
  */
53
55
  get areAllSelectedImplicitly(): boolean;
54
56
  subscribe(): typeof noop;
55
- protected loadItems(params: KubeObjectStoreLoadingParams<Namespace>): Promise<Namespace[]>;
57
+ protected loadItems(params: KubeObjectStoreLoadingParams): Promise<Namespace[]>;
56
58
  selectNamespaces(namespace: string | string[]): void;
57
59
  clearSelected(namespaces?: string | string[]): void;
58
60
  /**
@@ -28,7 +28,7 @@ interface Props extends KubeObjectDetailsProps<Ingress> {
28
28
  export declare class IngressDetails extends React.Component<Props> {
29
29
  metrics: IIngressMetrics;
30
30
  constructor(props: Props);
31
- clean: import("mobx").IReactionDisposer;
31
+ componentDidMount(): void;
32
32
  loadMetrics(): Promise<void>;
33
33
  renderPaths(ingress: Ingress): JSX.Element[];
34
34
  renderIngressPoints(ingressPoints: ILoadBalancerIngress[]): JSX.Element;
@@ -18,4 +18,4 @@
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 * from "./clipboard";
21
+ export {};
@@ -18,15 +18,19 @@
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
- import "./network-policy-details.scss";
22
21
  import React from "react";
23
- import { IPolicyEgress, IPolicyIngress, NetworkPolicy } from "../../../common/k8s-api/endpoints/network-policy.api";
22
+ import { IPolicyIpBlock, NetworkPolicy, NetworkPolicyPeer, NetworkPolicyPort } from "../../../common/k8s-api/endpoints/network-policy.api";
24
23
  import type { KubeObjectDetailsProps } from "../kube-object-details";
24
+ import type { LabelMatchExpression, LabelSelector } from "../../../common/k8s-api/kube-object";
25
25
  interface Props extends KubeObjectDetailsProps<NetworkPolicy> {
26
26
  }
27
27
  export declare class NetworkPolicyDetails extends React.Component<Props> {
28
- renderIngressFrom(ingress: IPolicyIngress): JSX.Element;
29
- renderEgressTo(egress: IPolicyEgress): JSX.Element;
28
+ renderIPolicyIpBlock(ipBlock: IPolicyIpBlock | undefined): JSX.Element;
29
+ renderMatchLabels(matchLabels: Record<string, string | undefined> | undefined): JSX.Element[];
30
+ renderMatchExpressions(matchExpressions: LabelMatchExpression[] | undefined): JSX.Element[];
31
+ renderIPolicySelector(name: string, selector: LabelSelector | undefined): JSX.Element;
32
+ renderNetworkPolicyPeers(name: string, peers: NetworkPolicyPeer[] | undefined): JSX.Element;
33
+ renderNetworkPolicyPorts(ports: NetworkPolicyPort[] | undefined): JSX.Element;
30
34
  render(): JSX.Element;
31
35
  }
32
36
  export {};
@@ -27,6 +27,8 @@ interface Props extends MenuActionsProps {
27
27
  }
28
28
  export declare class PortForwardMenu extends React.Component<Props> {
29
29
  remove(): void;
30
+ private startPortForwarding;
31
+ renderStartStopMenuItem(): JSX.Element;
30
32
  renderContent(): JSX.Element;
31
33
  render(): JSX.Element;
32
34
  }
@@ -29,6 +29,7 @@ export declare class ServicePortComponent extends React.Component<Props> {
29
29
  waiting: boolean;
30
30
  forwardPort: number;
31
31
  isPortForwarded: boolean;
32
+ isActive: boolean;
32
33
  constructor(props: Props);
33
34
  componentDidMount(): void;
34
35
  checkExistingPortForwarding(): Promise<void>;
@@ -27,8 +27,7 @@ interface Props extends KubeObjectDetailsProps<Node> {
27
27
  export declare class NodeDetails extends React.Component<Props> {
28
28
  metrics: Partial<IClusterMetrics>;
29
29
  constructor(props: Props);
30
- clean: import("mobx").IReactionDisposer;
31
- componentDidMount(): Promise<void>;
30
+ componentDidMount(): void;
32
31
  loadMetrics(): Promise<void>;
33
32
  render(): JSX.Element;
34
33
  }
@@ -32,9 +32,10 @@ export declare class Nodes extends React.Component<Props> {
32
32
  componentDidMount(): Promise<void>;
33
33
  componentWillUnmount(): void;
34
34
  getLastMetricValues(node: Node, metricNames: string[]): number[];
35
+ private renderUsage;
35
36
  renderCpuUsage(node: Node): JSX.Element;
36
37
  renderMemoryUsage(node: Node): JSX.Element;
37
- renderDiskUsage(node: Node): any;
38
+ renderDiskUsage(node: Node): JSX.Element;
38
39
  renderConditions(node: Node): JSX.Element[];
39
40
  render(): JSX.Element;
40
41
  }
@@ -0,0 +1,7 @@
1
+ import type { RegisteredAppPreference } from "../../../extensions/registries/app-preference-registry";
2
+ interface ExtensionSettingsProps {
3
+ setting: RegisteredAppPreference;
4
+ size: "small" | "normal";
5
+ }
6
+ export declare function ExtensionSettings({ setting, size }: ExtensionSettingsProps): JSX.Element;
7
+ export {};
@@ -20,11 +20,9 @@
20
20
  */
21
21
  import "./preferences.scss";
22
22
  import React from "react";
23
- import { RegisteredAppPreference } from "../../../extensions/registries/app-preference-registry";
24
23
  export declare class Preferences extends React.Component {
25
24
  historyLength: number | undefined;
26
25
  constructor(props: {});
27
26
  renderNavigation(): JSX.Element;
28
27
  render(): JSX.Element;
29
28
  }
30
- export declare function ExtensionSettings({ title, id, components: { Hint, Input } }: RegisteredAppPreference): JSX.Element;
@@ -25,7 +25,7 @@ import { StorageClass } from "../../../common/k8s-api/endpoints";
25
25
  interface Props extends KubeObjectDetailsProps<StorageClass> {
26
26
  }
27
27
  export declare class StorageClassDetails extends React.Component<Props> {
28
- componentDidMount(): Promise<void>;
28
+ componentDidMount(): void;
29
29
  render(): JSX.Element;
30
30
  }
31
31
  export {};
@@ -27,7 +27,7 @@ interface Props extends KubeObjectDetailsProps<PersistentVolumeClaim> {
27
27
  export declare class PersistentVolumeClaimDetails extends React.Component<Props> {
28
28
  metrics: IPvcMetrics;
29
29
  constructor(props: Props);
30
- clean: import("mobx").IReactionDisposer;
30
+ componentDidMount(): void;
31
31
  loadMetrics(): Promise<void>;
32
32
  render(): JSX.Element;
33
33
  }
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const welcomeBannerItemsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("mobx").IComputedValue<import("./welcome-banner-registration").WelcomeBannerRegistration[]>, unknown>, import("mobx").IComputedValue<import("./welcome-banner-registration").WelcomeBannerRegistration[]>, unknown>;
3
+ export default welcomeBannerItemsInjectable;
@@ -0,0 +1,27 @@
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 { IComputedValue } from "mobx";
22
+ import type { LensRendererExtension } from "../../../../extensions/lens-renderer-extension";
23
+ interface Dependencies {
24
+ extensions: IComputedValue<LensRendererExtension[]>;
25
+ }
26
+ export declare const getWelcomeMenuItems: ({ extensions }: Dependencies) => IComputedValue<import("./welcome-menu-registration").WelcomeMenuRegistration[]>;
27
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const welcomeMenuItemsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("mobx").IComputedValue<import("./welcome-menu-registration").WelcomeMenuRegistration[]>, unknown>, import("mobx").IComputedValue<import("./welcome-menu-registration").WelcomeMenuRegistration[]>, unknown>;
3
+ export default welcomeMenuItemsInjectable;
@@ -21,6 +21,4 @@
21
21
  import "./welcome.scss";
22
22
  import React from "react";
23
23
  export declare const defaultWidth = 320;
24
- export declare class Welcome extends React.Component {
25
- render(): JSX.Element;
26
- }
24
+ export declare const Welcome: React.FC<{}>;
@@ -25,7 +25,7 @@ import { CronJob } from "../../../common/k8s-api/endpoints";
25
25
  interface Props extends KubeObjectDetailsProps<CronJob> {
26
26
  }
27
27
  export declare class CronJobDetails extends React.Component<Props> {
28
- componentDidMount(): Promise<void>;
28
+ componentDidMount(): void;
29
29
  render(): JSX.Element;
30
30
  }
31
31
  export {};
@@ -27,7 +27,6 @@ interface Props extends KubeObjectDetailsProps<DaemonSet> {
27
27
  export declare class DaemonSetDetails extends React.Component<Props> {
28
28
  metrics: IPodMetrics;
29
29
  constructor(props: Props);
30
- clean: import("mobx").IReactionDisposer;
31
30
  componentDidMount(): void;
32
31
  loadMetrics(): Promise<void>;
33
32
  render(): JSX.Element;
@@ -27,7 +27,6 @@ interface Props extends KubeObjectDetailsProps<Deployment> {
27
27
  export declare class DeploymentDetails extends React.Component<Props> {
28
28
  metrics: IPodMetrics;
29
29
  constructor(props: Props);
30
- clean: import("mobx").IReactionDisposer;
31
30
  componentDidMount(): void;
32
31
  loadMetrics(): Promise<void>;
33
32
  render(): JSX.Element;
@@ -27,7 +27,7 @@ interface Props extends KubeObjectDetailsProps<Job> {
27
27
  export declare class JobDetails extends React.Component<Props> {
28
28
  metrics: IPodMetrics;
29
29
  constructor(props: Props);
30
- componentDidMount(): Promise<void>;
30
+ componentDidMount(): void;
31
31
  loadMetrics(): Promise<void>;
32
32
  render(): JSX.Element;
33
33
  }
@@ -21,15 +21,10 @@
21
21
  import "./overview-workload-status.scss";
22
22
  import React from "react";
23
23
  interface Props {
24
- status: {
25
- [key: string]: number;
26
- };
24
+ status: Record<string, number>;
27
25
  }
28
26
  export declare class OverviewWorkloadStatus extends React.Component<Props> {
29
- elem: HTMLElement;
30
- constructor(props: Props);
31
- componentDidMount(): void;
32
- getStatusColor(status: string): string;
27
+ elem?: HTMLElement;
33
28
  renderChart(): JSX.Element;
34
29
  render(): JSX.Element;
35
30
  }
@@ -22,9 +22,11 @@ import "./overview.scss";
22
22
  import React from "react";
23
23
  import type { RouteComponentProps } from "react-router";
24
24
  import type { WorkloadsOverviewRouteParams } from "../../../common/routes";
25
+ import type { ClusterContext } from "../../../common/k8s-api/cluster-context";
25
26
  interface Props extends RouteComponentProps<WorkloadsOverviewRouteParams> {
26
27
  }
27
28
  export declare class WorkloadsOverview extends React.Component<Props> {
29
+ static clusterContext: ClusterContext;
28
30
  loadErrors: string[];
29
31
  constructor(props: Props);
30
32
  componentDidMount(): void;
@@ -33,6 +33,7 @@ export declare class PodContainerPort extends React.Component<Props> {
33
33
  waiting: boolean;
34
34
  forwardPort: number;
35
35
  isPortForwarded: boolean;
36
+ isActive: boolean;
36
37
  constructor(props: Props);
37
38
  componentDidMount(): void;
38
39
  checkExistingPortForwarding(): Promise<void>;
@@ -27,8 +27,7 @@ interface Props extends KubeObjectDetailsProps<ReplicaSet> {
27
27
  export declare class ReplicaSetDetails extends React.Component<Props> {
28
28
  metrics: IPodMetrics;
29
29
  constructor(props: Props);
30
- clean: import("mobx").IReactionDisposer;
31
- componentDidMount(): Promise<void>;
30
+ componentDidMount(): void;
32
31
  loadMetrics(): Promise<void>;
33
32
  render(): JSX.Element;
34
33
  }
@@ -27,7 +27,6 @@ interface Props extends KubeObjectDetailsProps<StatefulSet> {
27
27
  export declare class StatefulSetDetails extends React.Component<Props> {
28
28
  metrics: IPodMetrics;
29
29
  constructor(props: Props);
30
- clean: import("mobx").IReactionDisposer;
31
30
  componentDidMount(): void;
32
31
  loadMetrics(): Promise<void>;
33
32
  render(): JSX.Element;
@@ -19,12 +19,4 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import React from "react";
22
- import type { CatalogEntity } from "../../api/catalog-entity";
23
- export declare class ActivateEntityCommand extends React.Component {
24
- get options(): {
25
- label: string;
26
- value: CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>;
27
- }[];
28
- onSelect(entity: CatalogEntity): void;
29
- render(): JSX.Element;
30
- }
22
+ export declare const ActivateEntityCommand: React.FC<{}>;
@@ -18,16 +18,15 @@
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
- import { DOMAttributes } from "react";
22
- import { AvatarTypeMap } from "@material-ui/core";
23
- interface Props extends DOMAttributes<HTMLElement>, Partial<AvatarTypeMap> {
21
+ import { HTMLAttributes, ImgHTMLAttributes } from "react";
22
+ export interface AvatarProps extends HTMLAttributes<HTMLElement> {
24
23
  title: string;
25
24
  colorHash?: string;
26
- width?: number;
27
- height?: number;
25
+ size?: number;
28
26
  src?: string;
29
- className?: string;
30
27
  background?: string;
28
+ variant?: "circle" | "rounded" | "square";
29
+ imgProps?: ImgHTMLAttributes<HTMLImageElement>;
30
+ disabled?: boolean;
31
31
  }
32
- export declare function Avatar(props: Props): JSX.Element;
33
- export {};
32
+ export declare function Avatar(props: AvatarProps): JSX.Element;
@@ -18,4 +18,4 @@
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 * from "./not-found";
21
+ export * from "./avatar";
@@ -19,14 +19,4 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import React from "react";
22
- export declare class WeblinkAddCommand extends React.Component {
23
- url: string;
24
- nameHidden: boolean;
25
- dirty: boolean;
26
- constructor(props: {});
27
- onChangeUrl(url: string): void;
28
- onSubmitUrl(url: string): void;
29
- onSubmit(name: string): void;
30
- get showValidation(): boolean;
31
- render(): JSX.Element;
32
- }
22
+ export declare const WeblinkAddCommand: React.FC<{}>;
@@ -21,7 +21,6 @@
21
21
  import "./checkbox.scss";
22
22
  import React from "react";
23
23
  export interface CheckboxProps<T = boolean> {
24
- theme?: "dark" | "light";
25
24
  className?: string;
26
25
  label?: React.ReactNode;
27
26
  inline?: boolean;
@@ -0,0 +1,22 @@
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
+ export declare const ActiveHotbarName: React.FC<{}>;
@@ -18,7 +18,6 @@
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
- import "./bottom-bar.scss";
22
21
  import React from "react";
23
22
  import { StatusBarRegistration } from "../../../extensions/registries";
24
23
  export declare class BottomBar extends React.Component {