react-dialogger 1.1.114 → 1.1.116
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.
|
@@ -37,7 +37,7 @@ declare class DialogBase<V, I> extends Component<BaseDialogProps<V, I>, BaseDial
|
|
|
37
37
|
private _accessFrom;
|
|
38
38
|
private readonly _processingListeners;
|
|
39
39
|
private readonly _abortedListeners;
|
|
40
|
-
deps(): DialogInjectDef<I>;
|
|
40
|
+
get deps(): DialogInjectDef<I>;
|
|
41
41
|
get values(): Readonly<{
|
|
42
42
|
[K in keyof V]: Dialogify<V[K]>;
|
|
43
43
|
}>;
|
package/components/DialogBase.js
CHANGED
|
@@ -246,9 +246,13 @@ var DialogBase = /** @class */ (function (_super) {
|
|
|
246
246
|
_this._initialValues = props.initialValues;
|
|
247
247
|
return _this;
|
|
248
248
|
}
|
|
249
|
-
DialogBase.prototype
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
Object.defineProperty(DialogBase.prototype, "deps", {
|
|
250
|
+
get: function () {
|
|
251
|
+
return this.state.inject;
|
|
252
|
+
},
|
|
253
|
+
enumerable: false,
|
|
254
|
+
configurable: true
|
|
255
|
+
});
|
|
252
256
|
Object.defineProperty(DialogBase.prototype, "values", {
|
|
253
257
|
get: function () {
|
|
254
258
|
return this._inlineFormikProps.values;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dialogger",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.116",
|
|
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",
|
package/types/DialogTypes.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export interface TBaseDialogState {
|
|
|
12
12
|
}
|
|
13
13
|
export interface BaseDialogState<V, I> {
|
|
14
14
|
/**@deprecated use FormikProps Values*/
|
|
15
|
-
values: DialogValues<Record<string, any>>;
|
|
16
15
|
inProcess: IInProcess;
|
|
17
16
|
fullscreenMode?: boolean;
|
|
18
17
|
prevDialogRect: WithBackdrop['prevDialogRect'];
|
|
@@ -141,7 +140,7 @@ export interface BaseDialogSlotProps {
|
|
|
141
140
|
dialogOptions: DialogOptionsType;
|
|
142
141
|
dialog?: IDialogApiDef;
|
|
143
142
|
}
|
|
144
|
-
export interface IStateDef extends Pick<BaseDialogState<any, any>, "
|
|
143
|
+
export interface IStateDef extends Pick<BaseDialogState<any, any>, "fullscreenMode" | "inProcess"> {
|
|
145
144
|
}
|
|
146
145
|
export interface IListenerDialogDef extends Omit<IDialogApiDef, "values" | "setValues"> {
|
|
147
146
|
}
|
|
@@ -271,7 +270,7 @@ export type DialogExternalRefs<T> = T extends {
|
|
|
271
270
|
} : never;
|
|
272
271
|
export type DialogInjectDef<T> = T extends Function ? T : T extends {
|
|
273
272
|
current: any;
|
|
274
|
-
} ? T : T extends string | number | boolean | null | undefined | Date ? never : T extends Array<infer U> ? never : T extends object ? {
|
|
273
|
+
} ? T : T extends string | number | boolean | null | undefined | Date ? never : T extends Array<infer U> ? never : T extends object ? (T extends Array<any> ? never : T) : T extends object ? {
|
|
275
274
|
[K in keyof T]: DialogInjectDef<T[K]>;
|
|
276
275
|
} : never;
|
|
277
276
|
export interface BaseDialogDOMRect {
|