react-dialogger 1.1.135 → 1.1.136

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.
@@ -4,6 +4,8 @@ import { TInitialHolder, IDialogSize, TDialogStateListenerCallbackType, DialogOp
4
4
  declare class Dialog<V, I> {
5
5
  private _initialValues?;
6
6
  private _inject?;
7
+ private static _globalWrapper?;
8
+ static setGlobalWrapper(wrapper: React.ComponentType): void;
7
9
  private readonly _processingListeners;
8
10
  private readonly _abortedListeners;
9
11
  private _stateListener;
package/models/Dialog.js CHANGED
@@ -107,6 +107,9 @@ var Dialog = /** @class */ (function () {
107
107
  }
108
108
  // this._xrefs = {} as DialogExternalRefs<StockDialogRefs>;
109
109
  }
110
+ Dialog.setGlobalWrapper = function (wrapper) {
111
+ Dialog._globalWrapper = wrapper;
112
+ };
110
113
  Dialog.prototype.inject = function (args) {
111
114
  // @ts-ignore
112
115
  var t = new Dialog(this._apiRef, this._dialogOptions, this._initialValues, args);
@@ -200,7 +203,12 @@ var Dialog = /** @class */ (function () {
200
203
  // root.render( React.createElement( DialogBase as React.ComponentType<
201
204
  // typeof this._initialValues
202
205
  // >, props ) );
203
- root.render(React.createElement(DialogBase_1.default, props));
206
+ // root.render( React.createElement( DialogBase as React.ComponentType<BaseDialogProps<Values, I>>, props ) );
207
+ var element = React.createElement(DialogBase_1.default, props);
208
+ // Wrapper varsa sar, yoksa direkt render
209
+ root.render(Dialog._globalWrapper
210
+ ? React.createElement(Dialog._globalWrapper, null, element)
211
+ : element);
204
212
  };
205
213
  return Dialog;
206
214
  }());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dialogger",
3
- "version": "1.1.135",
3
+ "version": "1.1.136",
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",