@etsoo/react 1.5.54 → 1.5.55

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.
@@ -2,7 +2,7 @@ import { CoreApp, IActionResult, IAppSettings, ICoreApp, IUser, IUserData } from
2
2
  import { NotificationRenderProps, NotificationReturn } from '@etsoo/notificationbase';
3
3
  import { DataTypes } from '@etsoo/shared';
4
4
  import React from 'react';
5
- import { NotificationReactCallProps } from '../notifier/Notifier';
5
+ import { INotificationReact, NotificationReactCallProps } from '../notifier/Notifier';
6
6
  import { CultureAction, CultureState } from '../states/CultureState';
7
7
  import { IStateProps } from '../states/IState';
8
8
  import { IPageData, PageAction, PageState } from '../states/PageState';
@@ -173,7 +173,7 @@ export declare class ReactApp<S extends IAppSettings, D extends IUser, P extends
173
173
  * Show input dialog
174
174
  * @param props Props
175
175
  */
176
- showInputDialog({ title, message, callback, ...rest }: InputDialogProps): void;
176
+ showInputDialog({ title, message, callback, ...rest }: InputDialogProps): INotificationReact;
177
177
  /**
178
178
  * User login extended
179
179
  * @param user New user
@@ -250,7 +250,7 @@ export class ReactApp extends CoreApp {
250
250
  * @param props Props
251
251
  */
252
252
  showInputDialog({ title, message, callback, ...rest }) {
253
- this.notifier.prompt(message, callback, title, rest);
253
+ return this.notifier.prompt(message, callback, title, rest);
254
254
  }
255
255
  /**
256
256
  * User login extended
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.5.54",
3
+ "version": "1.5.55",
4
4
  "description": "TypeScript ReactJs framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -18,7 +18,10 @@ import { DataTypes, WindowStorage } from '@etsoo/shared';
18
18
  import React from 'react';
19
19
  import { NotifierMU } from '../mu/NotifierMU';
20
20
  import { ProgressCount } from '../mu/ProgressCount';
21
- import { NotificationReactCallProps } from '../notifier/Notifier';
21
+ import {
22
+ INotificationReact,
23
+ NotificationReactCallProps
24
+ } from '../notifier/Notifier';
22
25
  import { CultureAction, CultureState } from '../states/CultureState';
23
26
  import { IStateProps } from '../states/IState';
24
27
  import {
@@ -433,8 +436,8 @@ export class ReactApp<
433
436
  message,
434
437
  callback,
435
438
  ...rest
436
- }: InputDialogProps): void {
437
- this.notifier.prompt<HTMLFormElement | undefined>(
439
+ }: InputDialogProps): INotificationReact {
440
+ return this.notifier.prompt<HTMLFormElement | undefined>(
438
441
  message,
439
442
  callback,
440
443
  title,