react-dialogger 1.1.25 → 1.1.26
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/models/Dialog.d.ts +2 -0
- package/models/Dialog.js +4 -0
- package/package.json +1 -1
package/models/Dialog.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { DialogAction } from "./DialogAction";
|
|
|
3
3
|
import DialogBase from "../components/DialogBase";
|
|
4
4
|
import { TInitialHolder, TAccessFrom, ComponentOrderPositions, ISnackbarAnchor, DialogValues } from "../types/types";
|
|
5
5
|
import { IDialogSize, TDialogStateListenerCallbackType, DialogOptionsType, IDialogDef, TDialogCallbackNodeFn, TDialogCallbackVoidFn } from "../types/DialogTypes";
|
|
6
|
+
import { FormikProps } from "formik";
|
|
6
7
|
declare class Dialog extends DialogBase {
|
|
7
8
|
constructor(dialogRef?: React.RefObject<IDialogDef | undefined | null> | null, options?: DialogOptionsType);
|
|
8
9
|
/**
|
|
@@ -13,6 +14,7 @@ declare class Dialog extends DialogBase {
|
|
|
13
14
|
get accessFrom(): TAccessFrom;
|
|
14
15
|
setHeader(header: TDialogCallbackNodeFn): this;
|
|
15
16
|
setBody(body: TDialogCallbackNodeFn): this;
|
|
17
|
+
setFormik(formik: FormikProps<any>): this;
|
|
16
18
|
addActions(actions: Array<DialogAction>): this;
|
|
17
19
|
addAction(action: DialogAction): this;
|
|
18
20
|
/**
|
package/models/Dialog.js
CHANGED
|
@@ -98,6 +98,10 @@ var Dialog = /** @class */ (function (_super) {
|
|
|
98
98
|
_super.prototype.setBody.call(this, body);
|
|
99
99
|
return this;
|
|
100
100
|
};
|
|
101
|
+
Dialog.prototype.setFormik = function (formik) {
|
|
102
|
+
this.formikProps = formik;
|
|
103
|
+
return this;
|
|
104
|
+
};
|
|
101
105
|
Dialog.prototype.addActions = function (actions) {
|
|
102
106
|
_super.prototype.addActions.call(this, actions); // overrided
|
|
103
107
|
return this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dialogger",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.26",
|
|
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",
|