react-dialogger 1.1.53 → 1.1.54
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.
|
@@ -20,6 +20,11 @@ declare class DialogActionBase extends Component<ActionProps, ActionState> {
|
|
|
20
20
|
get baseDialogAction(): DialogActionBase;
|
|
21
21
|
getInitialClickHandler: () => DialogActionType;
|
|
22
22
|
updateOptions(options: DialogActionOptionsType): this;
|
|
23
|
+
/**
|
|
24
|
+
* use updateOptions
|
|
25
|
+
* @deprecated
|
|
26
|
+
* @link updateOptions */
|
|
27
|
+
setOptions(options: DialogActionOptionsType): this;
|
|
23
28
|
get options(): DialogActionOptionsType;
|
|
24
29
|
updateLabel: (label: string) => DialogActionBase;
|
|
25
30
|
getLabel(): string;
|
|
@@ -235,6 +235,14 @@ var DialogActionBase = /** @class */ (function (_super) {
|
|
|
235
235
|
this.forceUpdate();
|
|
236
236
|
return this;
|
|
237
237
|
};
|
|
238
|
+
/**
|
|
239
|
+
* use updateOptions
|
|
240
|
+
* @deprecated
|
|
241
|
+
* @link updateOptions */
|
|
242
|
+
DialogActionBase.prototype.setOptions = function (options) {
|
|
243
|
+
this.updateOptions(options);
|
|
244
|
+
return this;
|
|
245
|
+
};
|
|
238
246
|
Object.defineProperty(DialogActionBase.prototype, "options", {
|
|
239
247
|
get: function () {
|
|
240
248
|
return this._options;
|
|
@@ -68,7 +68,7 @@ declare class DialogBase<Values extends Record<string, any>> extends Component<B
|
|
|
68
68
|
close: (callbackFn?: () => void) => void;
|
|
69
69
|
focus: () => void;
|
|
70
70
|
get actions(): {
|
|
71
|
-
[key: string]: Pick<DialogActionBase, "updateOptions" | "setInProcess" | "getLabel" | "options" | "click" | "remove" | "name">;
|
|
71
|
+
[key: string]: Pick<DialogActionBase, "updateOptions" | "setOptions" | "setInProcess" | "getLabel" | "options" | "click" | "remove" | "name">;
|
|
72
72
|
};
|
|
73
73
|
updateBody(body: TDialogCallbackFn): void;
|
|
74
74
|
processingListener(listener: (inProcess: boolean) => void): this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dialogger",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.54",
|
|
4
4
|
"description": "This package is a continuation of the react-araci package. Due to an error, react-araci was removed, and it has been decided to continue under the new package name react-dialogger",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Sueleyman Topaloglu",
|
|
@@ -8,7 +8,9 @@ import { DialogAction } from "../models";
|
|
|
8
8
|
import { ACTION_INTENTS } from "../models/DialogAction";
|
|
9
9
|
export type ActionDialogDef = Omit<IDialogApiDef, 'switchFullScreen'>;
|
|
10
10
|
export type ActionDef = Pick<DialogAction, 'onClick' | 'setOptions' | 'name'>;
|
|
11
|
-
export type ActionBaseDef = Pick<DialogActionBase, 'updateOptions' |
|
|
11
|
+
export type ActionBaseDef = Pick<DialogActionBase, 'updateOptions' |
|
|
12
|
+
/**@deprecated use updateOptions*/
|
|
13
|
+
'setOptions' | 'setInProcess' | 'getLabel' | 'options' | 'click' | 'remove' | 'name'>;
|
|
12
14
|
export interface IDialogActionDef extends ActionBaseDef {
|
|
13
15
|
}
|
|
14
16
|
export type DialogActionType = (button: ActionBaseDef, dialog: Omit<IDialogApiDef, 'switchFullScreen'>) => void;
|