react-dialogger 1.1.72 → 1.1.73

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.
@@ -361,7 +361,7 @@ var DialogBase = /** @class */ (function (_super) {
361
361
  if (typeof ((_c = this.props) === null || _c === void 0 ? void 0 : _c.didMountCallback) === "function") {
362
362
  setTimeout(function () {
363
363
  _this.props.didMountCallback(_this);
364
- }, this.dialogOptions.animate === "jumper" ? 500 : 100);
364
+ }, this.dialogOptions.animate === "jumper" ? 300 : 100);
365
365
  }
366
366
  // accessFrom Property of Parent object Internal->External
367
367
  this.accessFrom = "internal";
@@ -127,14 +127,14 @@ var DialogContent = function (props) {
127
127
  (0, react_1.useEffect)(function () {
128
128
  // Register Dialog Bounds
129
129
  setTimeout(function () {
130
- var _a, _b;
130
+ var _a, _b, _c;
131
131
  if ((_a = dialog.dialogOptions.base) === null || _a === void 0 ? void 0 : _a.memoBounds) {
132
132
  if (!_helpers_1.InitDialogMemoizeBoundsDeclared) {
133
133
  throw new Error('InitDialogMemoizeBounds is not defined. Please make sure to declare it only once, at the top‑level of your module—outside of App or its render logic.\n' +
134
134
  'InitDialogMemoizeBounds()\n' +
135
135
  'const App() => {...');
136
136
  }
137
- var _c = (_b = dialogRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect(), width = _c.width, height = _c.height, x = _c.x, y = _c.y;
137
+ var _d = (_c = (_b = dialogRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect()) !== null && _c !== void 0 ? _c : {}, width = _d.width, height = _d.height, x = _d.x, y = _d.y;
138
138
  (0, _helpers_1.dialogRegister)(dialog.dialogOptions.base.id, {
139
139
  width: width,
140
140
  height: height,
@@ -144,6 +144,9 @@ var DialogContent = function (props) {
144
144
  });
145
145
  }
146
146
  }, 1000);
147
+ return function () {
148
+ dialogRef.current = null;
149
+ };
147
150
  }, []);
148
151
  return (0, jsx_runtime_1.jsx)(react_draggable_1.default, { disabled: !baseOptions.draggable || fullscreenMode, axis: 'both', handle: baseOptions.draggable ? '.drag-handle' : '', scale: 1, nodeRef: dialogRef, onDrag: function (event, data) {
149
152
  event.stopPropagation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dialogger",
3
- "version": "1.1.72",
3
+ "version": "1.1.73",
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",