@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.
- package/lib/app/ReactApp.d.ts +2 -2
- package/lib/app/ReactApp.js +1 -1
- package/package.json +1 -1
- package/src/app/ReactApp.ts +6 -3
package/lib/app/ReactApp.d.ts
CHANGED
|
@@ -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):
|
|
176
|
+
showInputDialog({ title, message, callback, ...rest }: InputDialogProps): INotificationReact;
|
|
177
177
|
/**
|
|
178
178
|
* User login extended
|
|
179
179
|
* @param user New user
|
package/lib/app/ReactApp.js
CHANGED
|
@@ -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
package/src/app/ReactApp.ts
CHANGED
|
@@ -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 {
|
|
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):
|
|
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,
|