mdt-client 31.3.34 → 31.3.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdt-client",
3
- "version": "31.3.34",
3
+ "version": "31.3.35",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ export type UserMenuSlotPosition = "afterProfile" | "beforeLogout";
3
+ declare class UserMenuSlotRegistry {
4
+ private slots;
5
+ register(position: UserMenuSlotPosition, key: string, Component: React.ComponentType): void;
6
+ unregister(position: UserMenuSlotPosition, key: string): void;
7
+ getComponents(position: UserMenuSlotPosition): React.ComponentType[];
8
+ }
9
+ export declare const UserMenuSlot: UserMenuSlotRegistry;
10
+ export {};
@@ -24,6 +24,7 @@ import { TextWithIconOptions } from "mdtScripts/components/textWithIcon/textWith
24
24
  import { ClassNamesArg } from "../../../../helpers/utils/classNames";
25
25
  import { ResizablePanelsCtrl } from "mdtScripts/components/resizablePanels/resizablePanelsCtrl";
26
26
  import { ResizablePanelsOptions } from "mdtScripts/components/resizablePanels/resizablePanelsOptions";
27
+ import { UserMenuSlot } from "mdtScripts/components/navigation/header/userButton/UserMenuSlot";
27
28
  export interface IUiComponentsFacade {
28
29
  button(button: ButtonFacade, translate?: boolean): ViewElement;
29
30
  topNavButton(options: TopNavButton): _mithril.MithrilVirtualElement;
@@ -153,6 +154,7 @@ export interface IUiComponentsFacade {
153
154
  className?: ClassNamesArg;
154
155
  }): ViewElement;
155
156
  resizablePanelsCtrl(options: ResizablePanelsOptions): ResizablePanelsCtrl;
157
+ UserMenuSlot: typeof UserMenuSlot;
156
158
  }
157
159
  export interface IProcessFormBlockOptions {
158
160
  title: string;