react-dialogger 1.1.77 → 1.1.78
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/components/DialogBase.d.ts +2 -2
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/types/DialogActionTypes.d.ts +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component, RefObject } from 'react';
|
|
2
2
|
import { FormikProps } from "formik";
|
|
3
3
|
import { DialogActionBase } from "./index.js";
|
|
4
|
-
import { BaseDialogProps, BaseDialogState, IDialogSize, DialogOptionsType, TDialogCallbackFn, TDialogCallbackVoidFn, WithBackdrop, IDialogSnackbar, IInProcess, TInitialHolder, ISnackbarAnchor, TSeverity, DialogValues, TAccessFrom,
|
|
4
|
+
import { BaseDialogProps, BaseDialogState, IDialogSize, DialogOptionsType, TDialogCallbackFn, TDialogCallbackVoidFn, WithBackdrop, IDialogSnackbar, IInProcess, TInitialHolder, ISnackbarAnchor, TSeverity, DialogValues, TAccessFrom, ActionApiDef, DialogContentFooterReturnType, DialogFormikAdapter } from "../types/index.js";
|
|
5
5
|
import Dialog, { DialogAction } from "../models/index.js";
|
|
6
6
|
interface IFormikAdapter extends Pick<FormikProps<any>, 'setValues' | 'setFieldValue' | 'values'> {
|
|
7
7
|
}
|
|
@@ -66,7 +66,7 @@ declare class DialogBase<Values extends FormikProps<Values>> extends Component<B
|
|
|
66
66
|
close: (callbackFn?: () => void) => void;
|
|
67
67
|
focus: () => void;
|
|
68
68
|
get actions(): {
|
|
69
|
-
[key: string]:
|
|
69
|
+
[key: string]: ActionApiDef;
|
|
70
70
|
};
|
|
71
71
|
updateBody(body: TDialogCallbackFn): void;
|
|
72
72
|
processingListener(listener: (inProcess: boolean) => void): this;
|
package/index.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export { default } from "./models/Dialog";
|
|
|
5
5
|
export { DialogProcessing, DialogCloseAction, DialogFullscreenAction, DialogHeaderActionsWrapper, DialogInfoAction } from "./features";
|
|
6
6
|
export { DialogAction, ActionProgress, baseDialogOptions } from "./models";
|
|
7
7
|
export { InitDialogMemoizeBounds } from "./helpers";
|
|
8
|
-
export { IDialogApiDef } from './types';
|
|
8
|
+
export { IDialogApiDef, ActionApiDef } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dialogger",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.78",
|
|
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",
|
|
@@ -5,10 +5,10 @@ import { DialogAction } from "../models/index.js";
|
|
|
5
5
|
import { CSSProperties } from "react";
|
|
6
6
|
export type ActionDialogDef = Omit<IDialogApiDef, 'switchFullScreen'>;
|
|
7
7
|
export type ActionDef = Pick<DialogAction, 'onClick' | 'setOptions' | 'name'>;
|
|
8
|
-
export type
|
|
9
|
-
export interface IDialogActionDef extends
|
|
8
|
+
export type ActionApiDef = Pick<InstanceType<typeof DialogActionBase>, 'updateOptions' | 'updateColor' | 'updateVariant' | 'updateLabel' | 'updateIntent' | 'setOptions' | 'setInProcess' | 'getLabel' | 'options' | 'click' | 'remove' | 'name'>;
|
|
9
|
+
export interface IDialogActionDef extends ActionApiDef {
|
|
10
10
|
}
|
|
11
|
-
export type DialogActionType = (button:
|
|
11
|
+
export type DialogActionType = (button: ActionApiDef, dialog: Omit<IDialogApiDef, 'switchFullScreen'>) => void;
|
|
12
12
|
export interface ActionProps {
|
|
13
13
|
name: string;
|
|
14
14
|
options?: DialogActionOptionsType;
|
|
@@ -62,7 +62,7 @@ export type DialogActionOptionsType = {
|
|
|
62
62
|
style?: React.CSSProperties;
|
|
63
63
|
baseStyle?: React.CSSProperties;
|
|
64
64
|
};
|
|
65
|
-
type TListenerButtonType = Pick<DialogActionBase, Exclude<keyof
|
|
65
|
+
type TListenerButtonType = Pick<DialogActionBase, Exclude<keyof ActionApiDef, 'onClick' | 'getStateListener' | 'name'>>;
|
|
66
66
|
export type TDialogStateListenerForActionCallbackType = (values: TValues, button: TListenerButtonType, dialog: IListenerDialogDef) => void;
|
|
67
67
|
export interface IContentFooterProps {
|
|
68
68
|
}
|