@k8slens/extensions 5.3.1-git.f61563c99f.0 → 5.3.1-git.f7f27a8304.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 (173) hide show
  1. package/dist/src/common/catalog/catalog-entity.d.ts +51 -0
  2. package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -2
  3. package/dist/src/common/catalog-entities/web-link.d.ts +0 -2
  4. package/dist/src/common/cluster-types.d.ts +5 -1
  5. package/dist/src/common/hotbar-store.d.ts +16 -11
  6. package/dist/src/common/hotbar-store.injectable.d.ts +4 -0
  7. package/dist/src/common/hotbar-types.d.ts +5 -2
  8. package/dist/src/{extensions/registries/welcome-menu-registry.d.ts → common/ipc/catalog.d.ts} +9 -7
  9. package/dist/src/common/ipc/extension-loader.ipc.d.ts +21 -0
  10. package/dist/src/common/ipc/index.d.ts +2 -0
  11. package/dist/src/common/k8s-api/endpoints/crd.api.d.ts +29 -28
  12. package/dist/src/common/protocol-handler/router.d.ts +8 -2
  13. package/dist/src/common/user-store/preferences-helpers.d.ts +14 -0
  14. package/dist/src/common/user-store/user-store.d.ts +2 -1
  15. package/dist/src/common/utils/index.d.ts +1 -0
  16. package/dist/src/common/utils/promise-exec.d.ts +1 -2
  17. package/dist/src/common/utils/readableStream.d.ts +2 -2
  18. package/dist/src/common/vars.d.ts +1 -0
  19. package/dist/src/extensions/extension-api.js +1256 -991
  20. package/dist/src/extensions/extension-compatibility.d.ts +3 -1
  21. package/dist/src/extensions/extension-discovery.d.ts +3 -1
  22. package/dist/src/extensions/{extension-loader.d.ts → extension-loader/extension-loader.d.ts} +15 -7
  23. package/dist/src/extensions/extension-loader/extension-loader.injectable.d.ts +4 -0
  24. package/dist/src/{main/initializers/registries.d.ts → extensions/extension-loader/index.d.ts} +1 -1
  25. package/dist/src/extensions/extensions.injectable.d.ts +3 -0
  26. package/dist/src/{renderer/components → extensions}/getDiForUnitTesting.d.ts +0 -0
  27. package/dist/src/extensions/lens-extension.d.ts +2 -1
  28. package/dist/src/extensions/lens-main-extension.d.ts +3 -1
  29. package/dist/src/extensions/lens-renderer-extension.d.ts +14 -7
  30. package/dist/src/extensions/main-extensions.injectable.d.ts +5 -0
  31. package/dist/src/extensions/registries/base-registry.d.ts +1 -1
  32. package/dist/src/extensions/registries/entity-setting-registry.d.ts +1 -1
  33. package/dist/src/extensions/registries/index.d.ts +0 -5
  34. package/dist/src/extensions/renderer-extensions.injectable.d.ts +5 -0
  35. package/dist/src/main/catalog-pusher.d.ts +1 -1
  36. package/dist/src/main/cluster-manager.d.ts +1 -1
  37. package/dist/src/{renderer/components/hotbar/hotbar-display-label.d.ts → main/getDi.d.ts} +2 -2
  38. package/dist/src/main/getDiForUnitTesting.d.ts +22 -0
  39. package/dist/src/main/helm/helm-release-manager.d.ts +9 -10
  40. package/dist/src/main/helm/helm-repo-manager.d.ts +2 -2
  41. package/dist/src/main/helm/helm-service.d.ts +2 -2
  42. package/dist/src/main/initializers/index.d.ts +0 -1
  43. package/dist/src/main/initializers/ipc.d.ts +3 -1
  44. package/dist/src/main/lens-proxy.d.ts +8 -1
  45. package/dist/src/main/menu/electron-menu-items.injectable.d.ts +3 -0
  46. package/dist/src/main/menu/electron-menu-items.test.d.ts +1 -0
  47. package/dist/src/main/menu/menu.d.ts +33 -0
  48. package/dist/src/main/protocol-handler/index.d.ts +1 -1
  49. package/dist/src/main/protocol-handler/{router.d.ts → lens-protocol-router-main/lens-protocol-router-main.d.ts} +11 -5
  50. package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable.d.ts +4 -0
  51. package/dist/src/main/routes/port-forward-route.d.ts +0 -1
  52. package/dist/src/main/tray/tray-menu-items.injectable.d.ts +3 -0
  53. package/dist/src/main/tray/tray-menu-items.test.d.ts +1 -0
  54. package/dist/src/main/{tray.d.ts → tray/tray.d.ts} +4 -2
  55. package/dist/src/main/window-manager.d.ts +3 -0
  56. package/dist/src/renderer/api/__tests__/catalog-entity-registry.test.d.ts +1 -1
  57. package/dist/src/renderer/api/catalog-entity-registry.d.ts +4 -0
  58. package/dist/src/renderer/api/catalog-entity.d.ts +1 -5
  59. package/dist/src/{main/catalog-sources → renderer/api}/helpers/general-active-sync.d.ts +0 -0
  60. package/dist/src/renderer/bootstrap.d.ts +3 -1
  61. package/dist/src/renderer/cluster-frame.d.ts +2 -1
  62. package/dist/src/renderer/components/+catalog/catalog-entity-details.d.ts +3 -3
  63. package/dist/src/renderer/components/+catalog/catalog-entity-drawer-menu.d.ts +1 -2
  64. package/dist/src/renderer/components/+catalog/catalog-entity.store.d.ts +4 -4
  65. package/dist/src/renderer/components/+catalog/catalog.d.ts +5 -6
  66. package/dist/src/renderer/components/{command-palette/command-overlay.d.ts → +catalog/helpers.d.ts} +5 -7
  67. package/dist/src/renderer/components/+custom-resources/custom-resources.injectable.d.ts +23 -0
  68. package/dist/src/{extensions/registries/command-registry.d.ts → renderer/components/+extensions/attempt-install/attempt-install.d.ts} +11 -15
  69. package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +3 -0
  70. package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate/create-temp-files-and-validate.d.ts +11 -0
  71. package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder/get-extension-dest-folder.d.ts +1 -0
  72. package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.d.ts +28 -0
  73. package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.injectable.d.ts +3 -0
  74. package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +22 -0
  75. package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.d.ts +13 -0
  76. package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.injectable.d.ts +3 -0
  77. package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.d.ts +6 -0
  78. package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts +3 -0
  79. package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.d.ts +7 -0
  80. package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.injectable.d.ts +3 -0
  81. package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.d.ts +27 -0
  82. package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts +3 -0
  83. package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.d.ts +27 -0
  84. package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts +3 -0
  85. package/dist/src/renderer/components/+extensions/extensions.d.ts +1 -15
  86. package/dist/src/{extensions/registries/menu-registry.d.ts → renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts} +5 -6
  87. package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.injectable.d.ts +23 -0
  88. package/dist/src/renderer/components/+extensions/get-message-from-error/get-message-from-error.d.ts +21 -0
  89. package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.d.ts +29 -0
  90. package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.d.ts +3 -0
  91. package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +5 -0
  92. package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts +3 -0
  93. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +5 -0
  94. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +3 -0
  95. package/dist/src/renderer/components/+extensions/read-file-notify/read-file-notify.d.ts +2 -0
  96. package/dist/src/renderer/components/+extensions/supported-extension-formats.d.ts +21 -0
  97. package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.d.ts +27 -0
  98. package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.injectable.d.ts +3 -0
  99. package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts +3 -0
  100. package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +5 -2
  101. package/dist/src/renderer/components/+network-port-forwards/port-forward-menu.d.ts +2 -0
  102. package/dist/src/renderer/components/+network-services/service-port-component.d.ts +1 -0
  103. package/dist/src/renderer/components/+preferences/extension-settings.d.ts +7 -0
  104. package/dist/src/renderer/components/+preferences/preferences.d.ts +0 -2
  105. package/dist/src/renderer/components/+welcome/welcome-banner-items/welcome-banner-items.injectable.d.ts +3 -0
  106. package/dist/src/renderer/components/+welcome/welcome-menu-items/get-welcome-menu-items.d.ts +27 -0
  107. package/dist/src/renderer/components/+welcome/welcome-menu-items/welcome-menu-items.injectable.d.ts +3 -0
  108. package/dist/src/renderer/components/+welcome/welcome.d.ts +1 -3
  109. package/dist/src/renderer/components/+workloads-pods/pod-container-port.d.ts +1 -0
  110. package/dist/src/renderer/components/activate-entity-command/activate-entity-command.d.ts +1 -9
  111. package/dist/src/renderer/components/catalog-entities/weblink-add-command.d.ts +1 -11
  112. package/dist/src/renderer/components/checkbox/checkbox.d.ts +0 -1
  113. package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +2 -1
  114. package/dist/src/renderer/components/command-palette/command-container.d.ts +1 -7
  115. package/dist/src/renderer/components/command-palette/command-dialog.d.ts +1 -13
  116. package/dist/src/renderer/components/command-palette/command-overlay.injectable.d.ts +31 -0
  117. package/dist/src/renderer/components/command-palette/index.d.ts +1 -1
  118. package/dist/src/renderer/components/command-palette/registered-commands/internal-commands.injectable.d.ts +25 -0
  119. package/dist/src/renderer/components/command-palette/registered-commands/registered-commands.injectable.d.ts +25 -0
  120. package/dist/src/renderer/components/dock/install-chart.d.ts +0 -1
  121. package/dist/src/renderer/components/dock/terminal.d.ts +1 -1
  122. package/dist/src/renderer/components/hotbar/hotbar-add-command.d.ts +1 -6
  123. package/dist/src/renderer/components/hotbar/hotbar-menu.d.ts +1 -1
  124. package/dist/src/renderer/components/hotbar/hotbar-remove-command.d.ts +1 -9
  125. package/dist/src/renderer/components/hotbar/hotbar-rename-command.d.ts +1 -14
  126. package/dist/src/renderer/components/hotbar/hotbar-selector.d.ts +3 -3
  127. package/dist/src/renderer/components/hotbar/hotbar-switch-command.d.ts +1 -12
  128. package/dist/src/renderer/components/input/input.d.ts +1 -0
  129. package/dist/src/renderer/components/input/validators/unique-hotbar-name.injectable.d.ts +24 -0
  130. package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts +2 -23
  131. package/dist/src/renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts +2 -6
  132. package/dist/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.d.ts +2 -3
  133. package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts +2 -2
  134. package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +2 -2
  135. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/get-kube-object-menu-items.d.ts +2 -5
  136. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-items.injectable.d.ts +8 -23
  137. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-registry.injectable.d.ts +2 -2
  138. package/dist/src/renderer/components/kube-object-menu/index.d.ts +1 -1
  139. package/dist/src/renderer/components/kube-object-menu/kube-object-menu.d.ts +2 -21
  140. package/dist/src/renderer/components/layout/{topbar.d.ts → close-button.d.ts} +3 -3
  141. package/dist/src/renderer/components/layout/top-bar/top-bar-items/top-bar-items.injectable.d.ts +3 -0
  142. package/dist/src/renderer/components/layout/{__tests__/topbar.test.d.ts → top-bar/top-bar-win-linux.test.d.ts} +0 -0
  143. package/dist/src/renderer/components/layout/top-bar/top-bar.d.ts +22 -0
  144. package/dist/src/renderer/{initializers/command-registry.d.ts → components/layout/top-bar/top-bar.test.d.ts} +1 -1
  145. package/dist/src/renderer/components/menu/menu-actions.d.ts +1 -1
  146. package/dist/src/renderer/components/monaco-editor/monaco-editor.d.ts +1 -1
  147. package/dist/src/renderer/{initializers/welcome-menu-registry.d.ts → components/switch/__tests__/switch.test.d.ts} +1 -1
  148. package/dist/src/renderer/components/switch/form-switcher.d.ts +3 -0
  149. package/dist/src/renderer/components/switch/index.d.ts +1 -0
  150. package/dist/src/{extensions/registries/topbar-registry.d.ts → renderer/components/switch/switch.d.ts} +4 -9
  151. package/dist/src/renderer/components/switch/switcher.d.ts +4 -1
  152. package/dist/src/renderer/getDi.d.ts +22 -0
  153. package/dist/src/renderer/{components/getDi.d.ts → getDiForUnitTesting.d.ts} +2 -2
  154. package/dist/src/renderer/initializers/catalog.d.ts +6 -1
  155. package/dist/src/renderer/initializers/index.d.ts +0 -2
  156. package/dist/src/renderer/initializers/ipc.d.ts +2 -1
  157. package/dist/src/renderer/navigation/helpers.d.ts +1 -1
  158. package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +1 -1
  159. package/dist/src/renderer/port-forward/port-forward-item.d.ts +4 -4
  160. package/dist/src/renderer/port-forward/port-forward-notify.d.ts +1 -0
  161. package/dist/src/renderer/port-forward/port-forward.store.d.ts +56 -6
  162. package/dist/src/{main/menu.d.ts → renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts} +8 -6
  163. package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable.d.ts +3 -0
  164. package/dist/src/renderer/protocol-handler/index.d.ts +2 -2
  165. package/dist/src/renderer/protocol-handler/{router.d.ts → lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts} +8 -1
  166. package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable.d.ts +4 -0
  167. package/dist/src/renderer/root-frame.d.ts +3 -1
  168. package/dist/src/renderer/theme.store.d.ts +0 -1
  169. package/dist/src/{extensions/registries/welcome-banner-registry.d.ts → renderer/window/event-listener.injectable.d.ts} +5 -18
  170. package/package.json +1 -1
  171. package/dist/src/renderer/components/kube-object-menu/kube-object-menu-container.d.ts +0 -2
  172. package/dist/src/renderer/components/kube-object-menu/kube-object-menu.injectable.d.ts +0 -5
  173. package/dist/src/renderer/protocol-handler/app-handlers.d.ts +0 -21
@@ -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<{}>;
@@ -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>;
@@ -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<{}>;
@@ -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;
@@ -18,4 +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 declare const ActiveHotbarName: () => JSX.Element;
21
+ import React from "react";
22
+ export declare const ActiveHotbarName: React.FC<{}>;
@@ -24,10 +24,4 @@ import type { ClusterId } from "../../../common/cluster-types";
24
24
  export interface CommandContainerProps {
25
25
  clusterId?: ClusterId;
26
26
  }
27
- export declare class CommandContainer extends React.Component<CommandContainerProps> {
28
- private escHandler;
29
- private findCommandById;
30
- private runCommand;
31
- componentDidMount(): void;
32
- render(): JSX.Element;
33
- }
27
+ export declare const CommandContainer: React.FC<CommandContainerProps>;
@@ -19,16 +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 "../../../common/catalog";
23
- export declare class CommandDialog extends React.Component {
24
- menuIsOpen: boolean;
25
- searchValue: any;
26
- constructor(props: {});
27
- get activeEntity(): CatalogEntity | undefined;
28
- get options(): {
29
- value: string;
30
- label: string;
31
- }[];
32
- private onChange;
33
- render(): JSX.Element;
34
- }
22
+ export declare const CommandDialog: React.FC<{}>;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) 2021 OpenLens Authors
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ * this software and associated documentation files (the "Software"), to deal in
6
+ * the Software without restriction, including without limitation the rights to
7
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ * the Software, and to permit persons to whom the Software is furnished to do so,
9
+ * subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in all
12
+ * copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ */
21
+ /// <reference types="@ogre-tools/injectable" />
22
+ import React from "react";
23
+ export declare class CommandOverlay {
24
+ #private;
25
+ get isOpen(): boolean;
26
+ open: (component: React.ReactElement) => void;
27
+ close: () => void;
28
+ get component(): React.ReactElement | null;
29
+ }
30
+ declare const commandOverlayInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<CommandOverlay, unknown>, CommandOverlay, unknown>;
31
+ export default commandOverlayInjectable;
@@ -20,4 +20,4 @@
20
20
  */
21
21
  export * from "./command-container";
22
22
  export * from "./command-dialog";
23
- export * from "./command-overlay";
23
+ export * from "./command-overlay.injectable";
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright (c) 2021 OpenLens Authors
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ * this software and associated documentation files (the "Software"), to deal in
6
+ * the Software without restriction, including without limitation the rights to
7
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ * the Software, and to permit persons to whom the Software is furnished to do so,
9
+ * subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in all
12
+ * copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ */
21
+ /// <reference types="@ogre-tools/injectable" />
22
+ import type { CommandContext, CommandRegistration } from "./commands";
23
+ export declare function isKubernetesClusterActive(context: CommandContext): boolean;
24
+ declare const internalCommandsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<CommandRegistration[], unknown>, CommandRegistration[], unknown>;
25
+ export default internalCommandsInjectable;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright (c) 2021 OpenLens Authors
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ * this software and associated documentation files (the "Software"), to deal in
6
+ * the Software without restriction, including without limitation the rights to
7
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ * the Software, and to permit persons to whom the Software is furnished to do so,
9
+ * subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in all
12
+ * copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ */
21
+ /// <reference types="@ogre-tools/injectable" />
22
+ import { IComputedValue } from "mobx";
23
+ import type { CommandRegistration } from "./commands";
24
+ declare const registeredCommandsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<IComputedValue<Map<string, Required<Omit<CommandRegistration, "scope">>>>, unknown>, IComputedValue<Map<string, Required<Omit<CommandRegistration, "scope">>>>, unknown>;
25
+ export default registeredCommandsInjectable;
@@ -30,7 +30,6 @@ export declare class InstallChart extends Component<Props> {
30
30
  error: string;
31
31
  showNotes: boolean;
32
32
  constructor(props: Props);
33
- get values(): string;
34
33
  get chartData(): IChartInstallData;
35
34
  get tabId(): string;
36
35
  get versions(): string[];
@@ -24,7 +24,7 @@ import { TerminalApi } from "../../api/terminal-api";
24
24
  export declare class Terminal {
25
25
  tabId: TabId;
26
26
  protected api: TerminalApi;
27
- static readonly spawningPool: HTMLDivElement;
27
+ static get spawningPool(): HTMLElement;
28
28
  static preloadFonts(): Promise<void>;
29
29
  private xterm;
30
30
  private readonly fitAddon;
@@ -19,9 +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 { InputValidator } from "../input";
23
- export declare const uniqueHotbarName: InputValidator;
24
- export declare class HotbarAddCommand extends React.Component {
25
- onSubmit: (name: string) => void;
26
- render(): JSX.Element;
27
- }
22
+ export declare const HotbarAddCommand: React.FC<{}>;
@@ -30,7 +30,7 @@ interface Props {
30
30
  export declare class HotbarMenu extends React.Component<Props> {
31
31
  draggingOver: boolean;
32
32
  constructor(props: Props);
33
- get hotbar(): Required<import("../../../common/hotbar-types").HotbarCreateOptions>;
33
+ get hotbar(): Required<import("../../../common/hotbar-types").CreateHotbarData>;
34
34
  getEntity(item: HotbarItem): CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>;
35
35
  onDragStart(): void;
36
36
  onDragEnd(result: DropResult): void;
@@ -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
- export declare class HotbarRemoveCommand extends React.Component {
23
- constructor(props: {});
24
- get options(): {
25
- value: string;
26
- label: string;
27
- }[];
28
- onChange(id: string): void;
29
- render(): JSX.Element;
30
- }
22
+ export declare const HotbarRemoveCommand: React.FC<{}>;
@@ -19,17 +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 HotbarRenameCommand extends React.Component {
23
- hotbarId: string;
24
- hotbarName: string;
25
- constructor(props: {});
26
- get options(): {
27
- value: string;
28
- label: string;
29
- }[];
30
- onSelect: (id: string) => void;
31
- onSubmit: (name: string) => void;
32
- renderHotbarList(): JSX.Element;
33
- renderNameInput(): JSX.Element;
34
- render(): JSX.Element;
35
- }
22
+ export declare const HotbarRenameCommand: React.FC<{}>;
@@ -19,9 +19,9 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import "./hotbar-selector.scss";
22
+ import React from "react";
22
23
  import type { Hotbar } from "../../../common/hotbar-types";
23
- interface Props {
24
+ export interface HotbarSelectorProps {
24
25
  hotbar: Hotbar;
25
26
  }
26
- export declare const HotbarSelector: ({ hotbar }: Props) => JSX.Element;
27
- export {};
27
+ export declare const HotbarSelector: React.FC<HotbarSelectorProps>;
@@ -19,15 +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 HotbarSwitchCommand extends React.Component {
23
- private static addActionId;
24
- private static removeActionId;
25
- private static renameActionId;
26
- constructor(props: {});
27
- get options(): {
28
- value: string;
29
- label: string;
30
- }[];
31
- onChange(idOrAction: string): void;
32
- render(): JSX.Element;
33
- }
22
+ export declare const HotbarSwitchCommand: React.FC<{}>;
@@ -83,6 +83,7 @@ export declare class Input extends React.Component<InputProps, State> {
83
83
  input: InputElement | null;
84
84
  validators: InputValidator[];
85
85
  state: State;
86
+ componentWillUnmount(): void;
86
87
  setValue(value?: string): void;
87
88
  getValue(): string;
88
89
  focus(): void;
@@ -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
+ /// <reference types="@ogre-tools/injectable" />
22
+ import type { InputValidator } from "../input_validators";
23
+ declare const uniqueHotbarNameInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<InputValidator, unknown>, InputValidator, unknown>;
24
+ export default uniqueHotbarNameInjectable;
@@ -1,24 +1,3 @@
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 { ApiManager } from "../../../../common/k8s-api/api-manager";
22
- import type { Injectable } from "@ogre-tools/injectable";
23
- declare const apiManagerInjectable: Injectable<ApiManager>;
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const apiManagerInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("../../../../common/k8s-api/api-manager").ApiManager, unknown>, import("../../../../common/k8s-api/api-manager").ApiManager, unknown>;
24
3
  export default apiManagerInjectable;
@@ -18,10 +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 type { Injectable } from "@ogre-tools/injectable";
22
- import type { Cluster } from "../../../../main/cluster";
23
- interface Dependencies {
24
- cluster: Cluster;
25
- }
26
- declare const clusterNameInjectable: Injectable<string | undefined, Dependencies>;
21
+ /// <reference types="@ogre-tools/injectable" />
22
+ declare const clusterNameInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<string, unknown>, string, unknown>;
27
23
  export default clusterNameInjectable;
@@ -1,4 +1,3 @@
1
- import type { Injectable } from "@ogre-tools/injectable";
2
- import type { Cluster } from "../../../../main/cluster";
3
- declare const clusterInjectable: Injectable<Cluster | null>;
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const clusterInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("../../../../main/cluster").Cluster, unknown>, import("../../../../main/cluster").Cluster, unknown>;
4
3
  export default clusterInjectable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="@ogre-tools/injectable" />
1
2
  /**
2
3
  * Copyright (c) 2021 OpenLens Authors
3
4
  *
@@ -19,6 +20,5 @@
19
20
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21
  */
21
22
  import { editResourceTab } from "../../dock/edit-resource.store";
22
- import type { Injectable } from "@ogre-tools/injectable";
23
- declare const editResourceTabInjectable: Injectable<typeof editResourceTab>;
23
+ declare const editResourceTabInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<typeof editResourceTab, unknown>, typeof editResourceTab, unknown>;
24
24
  export default editResourceTabInjectable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="@ogre-tools/injectable" />
1
2
  /**
2
3
  * Copyright (c) 2021 OpenLens Authors
3
4
  *
@@ -19,6 +20,5 @@
19
20
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21
  */
21
22
  import { hideDetails } from "../../kube-detail-params";
22
- import type { Injectable } from "@ogre-tools/injectable";
23
- export declare const hideDetailsInjectable: Injectable<typeof hideDetails>;
23
+ declare const hideDetailsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<typeof hideDetails, unknown>, typeof hideDetails, unknown>;
24
24
  export default hideDetailsInjectable;
@@ -20,10 +20,7 @@
20
20
  */
21
21
  import type { KubeObjectMenuRegistry } from "../../../../../extensions/registries";
22
22
  import type { KubeObject } from "../../../../../common/k8s-api/kube-object";
23
- export interface Dependencies {
23
+ export declare const getKubeObjectMenuItems: ({ kubeObjectMenuRegistry, kubeObject, }: {
24
24
  kubeObjectMenuRegistry: KubeObjectMenuRegistry;
25
- }
26
- export interface InstantiationParameter {
27
25
  kubeObject: KubeObject;
28
- }
29
- export declare const getKubeObjectMenuItems: ({ kubeObjectMenuRegistry }: Dependencies, { kubeObject }: InstantiationParameter) => import("react").ComponentType<any>[];
26
+ }) => import("react").ComponentType<any>[];
@@ -1,24 +1,9 @@
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 { Injectable } from "@ogre-tools/injectable";
22
- import { InstantiationParameter, Dependencies, getKubeObjectMenuItems } from "./get-kube-object-menu-items";
23
- declare const kubeObjectMenuItemsInjectable: Injectable<ReturnType<typeof getKubeObjectMenuItems>, Dependencies, InstantiationParameter>;
1
+ /// <reference types="react" />
2
+ /// <reference types="@ogre-tools/injectable" />
3
+ import type { KubeObject } from "../../../../../common/k8s-api/kube-object";
4
+ declare const kubeObjectMenuItemsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("react").ComponentType<any>[], {
5
+ kubeObject: KubeObject;
6
+ }>, import("react").ComponentType<any>[], {
7
+ kubeObject: KubeObject;
8
+ }>;
24
9
  export default kubeObjectMenuItemsInjectable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="@ogre-tools/injectable" />
1
2
  /**
2
3
  * Copyright (c) 2021 OpenLens Authors
3
4
  *
@@ -19,6 +20,5 @@
19
20
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21
  */
21
22
  import { KubeObjectMenuRegistry } from "../../../../../extensions/registries";
22
- import type { Injectable } from "@ogre-tools/injectable";
23
- declare const kubeObjectMenuRegistryInjectable: Injectable<KubeObjectMenuRegistry>;
23
+ declare const kubeObjectMenuRegistryInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<KubeObjectMenuRegistry, unknown>, KubeObjectMenuRegistry, unknown>;
24
24
  export default kubeObjectMenuRegistryInjectable;
@@ -19,4 +19,4 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  export type { KubeObjectMenuProps } from "./kube-object-menu";
22
- export { KubeObjectMenu } from "./kube-object-menu-container";
22
+ export { KubeObjectMenu } from "./kube-object-menu";
@@ -21,28 +21,9 @@
21
21
  import React from "react";
22
22
  import type { KubeObject } from "../../../common/k8s-api/kube-object";
23
23
  import { MenuActionsProps } from "../menu";
24
- import type { ApiManager } from "../../../common/k8s-api/api-manager";
25
- export interface KubeObjectMenuDependencies<TKubeObject> {
26
- apiManager: ApiManager;
27
- kubeObjectMenuItems: React.ElementType[];
28
- clusterName: string;
29
- hideDetails: () => void;
30
- editResourceTab: (kubeObject: TKubeObject) => void;
31
- }
32
- export interface KubeObjectMenuProps<TKubeObject> extends MenuActionsProps {
24
+ export interface KubeObjectMenuProps<TKubeObject extends KubeObject> extends MenuActionsProps {
33
25
  object: TKubeObject | null | undefined;
34
26
  editable?: boolean;
35
27
  removable?: boolean;
36
28
  }
37
- export interface KubeObjectMenuPropsAndDependencies<TKubeObject> extends KubeObjectMenuProps<TKubeObject>, KubeObjectMenuDependencies<TKubeObject> {
38
- }
39
- export declare class KubeObjectMenu<TKubeObject extends KubeObject> extends React.Component<KubeObjectMenuPropsAndDependencies<TKubeObject>> {
40
- get store(): import("../../../common/k8s-api/kube-object.store").KubeObjectStore<KubeObject<import("../../../common/k8s-api/kube-object").KubeObjectMetadata, any, any>>;
41
- get isEditable(): boolean;
42
- get isRemovable(): boolean;
43
- update(): Promise<void>;
44
- remove(): Promise<void>;
45
- renderRemoveMessage(): JSX.Element;
46
- getMenuItems(): React.ReactChild[];
47
- render(): JSX.Element;
48
- }
29
+ export declare function KubeObjectMenu<T extends KubeObject>(props: KubeObjectMenuProps<T>): React.ReactElement<any, any>;
@@ -18,8 +18,8 @@
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 React from "react";
22
- interface Props extends React.HTMLAttributes<any> {
21
+ import { HTMLAttributes } from "react";
22
+ interface Props extends HTMLAttributes<HTMLDivElement> {
23
23
  }
24
- export declare const TopBar: ({ children, ...rest }: Props) => JSX.Element;
24
+ export declare function CloseButton(props: Props): JSX.Element;
25
25
  export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const topBarItemsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("mobx").IComputedValue<import("../top-bar-registration").TopBarRegistration[]>, unknown>, import("mobx").IComputedValue<import("../top-bar-registration").TopBarRegistration[]>, unknown>;
3
+ export default topBarItemsInjectable;
@@ -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 TopBar: React.FC<{}>;
@@ -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 declare function initCommandRegistry(): void;
21
+ import "@testing-library/jest-dom/extend-expect";
@@ -21,7 +21,7 @@
21
21
  import "./menu-actions.scss";
22
22
  import React from "react";
23
23
  import { IconProps } from "../icon";
24
- import { MenuProps } from "../menu";
24
+ import { MenuProps } from "./menu";
25
25
  export interface MenuActionsProps extends Partial<MenuProps> {
26
26
  className?: string;
27
27
  toolbar?: boolean;
@@ -21,7 +21,7 @@
21
21
  /// <reference types="lodash" />
22
22
  import React from "react";
23
23
  import { editor, Uri } from "monaco-editor";
24
- import { MonacoTheme } from "./index";
24
+ import type { MonacoTheme } from "./monaco-themes";
25
25
  export declare type MonacoEditorId = string;
26
26
  export interface MonacoEditorProps {
27
27
  id?: MonacoEditorId;