react-dialogger 1.1.32 → 1.1.36
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.js +13 -12
- package/package.json +1 -1
package/components/DialogBase.js
CHANGED
|
@@ -579,7 +579,7 @@ var DialogBase = /** @class */ (function (_super) {
|
|
|
579
579
|
}, onMouseDown: (_c = _this._Resizeable) === null || _c === void 0 ? void 0 : _c.resizeHandleMouseDown, children: (0, jsx_runtime_1.jsx)(ResizeIcon_1.default, { color: '#286e94' }) }) })] }) });
|
|
580
580
|
};
|
|
581
581
|
_this.highestZ = function () {
|
|
582
|
-
var presentationElements = document.querySelectorAll('div[
|
|
582
|
+
var presentationElements = document.querySelectorAll('div[data-family="presentation"]');
|
|
583
583
|
var highest = 1201;
|
|
584
584
|
presentationElements.forEach(function (element) {
|
|
585
585
|
var z = parseInt(window.getComputedStyle(element).zIndex, 10);
|
|
@@ -985,24 +985,25 @@ var DialogBase = /** @class */ (function (_super) {
|
|
|
985
985
|
configurable: true
|
|
986
986
|
});
|
|
987
987
|
DialogBase.prototype.show = function (callback) {
|
|
988
|
-
var presentationElements = document.querySelectorAll('div[
|
|
988
|
+
var presentationElements = document.querySelectorAll('div[data-family="presentation"]');
|
|
989
989
|
console.log('String(this.highestZ()', presentationElements, String(this.highestZ()));
|
|
990
990
|
console.log('this._actions', this._actions);
|
|
991
991
|
this._dom = document.createElement('div');
|
|
992
992
|
this._dom.setAttribute('role', 'presentation');
|
|
993
993
|
this._dom.setAttribute('data-type', 'dialog');
|
|
994
|
+
this._dom.setAttribute('data-family', 'presentation');
|
|
994
995
|
this._dom.classList.add('appinsource-dialog-root');
|
|
995
996
|
this._dom.style.setProperty('z-index', String(this.highestZ()));
|
|
996
|
-
// Find root element
|
|
997
|
-
|
|
998
|
-
// const AppElement = rootElement.firstElementChild;
|
|
999
|
-
if (rootElement) {
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
997
|
+
// // Find root element
|
|
998
|
+
// const rootElement = document.getElementById('root');
|
|
999
|
+
// // const AppElement = rootElement.firstElementChild;
|
|
1000
|
+
// if (rootElement) {
|
|
1001
|
+
// rootElement.appendChild(this._dom);
|
|
1002
|
+
// // AppElement.prepend(this._dom);
|
|
1003
|
+
// } else {
|
|
1004
|
+
// document.body.appendChild(this._dom);
|
|
1005
|
+
// }
|
|
1006
|
+
document.body.appendChild(this._dom);
|
|
1006
1007
|
var root = (0, client_1.createRoot)(this._dom);
|
|
1007
1008
|
var props = {
|
|
1008
1009
|
ref: this._innerRef,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dialogger",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.36",
|
|
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",
|