mdt-client 31.3.41 → 31.3.42

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.41",
3
+ "version": "31.3.42",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,11 @@
1
+ /// <reference types="../../../../mithril" />
2
+ /// <reference types="mithril" />
1
3
  /// <reference types="react" />
4
+ import { ClassNamesArg } from "../helpers/utils/classNames";
2
5
  import { ViewElement } from "../helpers/types";
6
+ interface ReactComponentWrapOptions extends Omit<_mithril.MithrilAttributes, "className"> {
7
+ className?: ClassNamesArg;
8
+ }
3
9
  export interface IUiKitUtilsFacade {
4
10
  /**
5
11
  * Адаптирует React-компонент из UI Kit для использования в Mithril-представлениях.
@@ -17,7 +23,7 @@ export interface IUiKitUtilsFacade {
17
23
  * variant: "primary"
18
24
  * });
19
25
  */
20
- wrapComponent<P>(Component: React.FC<P>, props?: P): ViewElement;
26
+ wrapComponent<P>(Component: React.FC<P>, props?: P, options?: ReactComponentWrapOptions): ViewElement;
21
27
  /**
22
28
  * Создаёт класс-контроллер для интеграции React-компонента в Mithril-контролы/формы.
23
29
  *
@@ -33,3 +39,4 @@ export interface IUiKitUtilsFacade {
33
39
  $view: () => ViewElement;
34
40
  };
35
41
  }
42
+ export {};