@copart/ops-tool-kit 1.10.4-alpha.1 → 1.10.4-alpha.3
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/dist/ops-tool-kit.js +27 -33
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -33,7 +33,7 @@ var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
|
33
33
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
34
34
|
|
|
35
35
|
const name$f = "@copart/ops-tool-kit";
|
|
36
|
-
const version$5 = "1.10.4-alpha.
|
|
36
|
+
const version$5 = "1.10.4-alpha.3";
|
|
37
37
|
const main$1 = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -38158,12 +38158,8 @@ var AppBar$1 = function AppBar(props) {
|
|
|
38158
38158
|
var _useState13 = React.useState(null),
|
|
38159
38159
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
38160
38160
|
ideaNoteToken = _useState14[0],
|
|
38161
|
-
setIdeaNoteToken = _useState14[1];
|
|
38161
|
+
setIdeaNoteToken = _useState14[1]; // const [viewPortHeight, setViewPortHeight] = useState(null)
|
|
38162
38162
|
|
|
38163
|
-
var _useState15 = React.useState(null),
|
|
38164
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
38165
|
-
viewPortHeight = _useState16[0],
|
|
38166
|
-
setViewPortHeight = _useState16[1];
|
|
38167
38163
|
|
|
38168
38164
|
var isLoggedOn = props.isLoggedOn,
|
|
38169
38165
|
moduleName = props.moduleName,
|
|
@@ -38180,15 +38176,13 @@ var AppBar$1 = function AppBar(props) {
|
|
|
38180
38176
|
showMihelpDot = props.showMihelpDot;
|
|
38181
38177
|
|
|
38182
38178
|
var _useWindowSize = useWindowSize(),
|
|
38183
|
-
width = _useWindowSize.width
|
|
38184
|
-
|
|
38185
|
-
|
|
38186
|
-
console.log('+++viewPortHeight==', viewPortHeight);
|
|
38179
|
+
width = _useWindowSize.width;
|
|
38180
|
+
_useWindowSize.height;
|
|
38187
38181
|
|
|
38188
|
-
var
|
|
38189
|
-
|
|
38190
|
-
count =
|
|
38191
|
-
setCount =
|
|
38182
|
+
var _useState15 = React.useState(0),
|
|
38183
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
38184
|
+
count = _useState16[0],
|
|
38185
|
+
setCount = _useState16[1];
|
|
38192
38186
|
|
|
38193
38187
|
var mihelpRef = React.useRef(null);
|
|
38194
38188
|
var mihelpIconRef = React.useRef(null);
|
|
@@ -38199,12 +38193,12 @@ var AppBar$1 = function AppBar(props) {
|
|
|
38199
38193
|
if (mihelpVisible) {
|
|
38200
38194
|
setNotificationsVisible(false);
|
|
38201
38195
|
}
|
|
38202
|
-
}, [mihelpVisible]);
|
|
38203
|
-
|
|
38204
|
-
|
|
38205
|
-
|
|
38206
|
-
|
|
38207
|
-
|
|
38196
|
+
}, [mihelpVisible]); // useEffect(()=>{
|
|
38197
|
+
// if(isCalloutVisible){
|
|
38198
|
+
// setViewPortHeight(height)
|
|
38199
|
+
// }
|
|
38200
|
+
// },[isCalloutVisible])
|
|
38201
|
+
|
|
38208
38202
|
React.useEffect(function () {
|
|
38209
38203
|
if (ideaNoteVisible) {
|
|
38210
38204
|
setMihelpVisible(false);
|
|
@@ -38340,19 +38334,19 @@ var AppBar$1 = function AppBar(props) {
|
|
|
38340
38334
|
};
|
|
38341
38335
|
|
|
38342
38336
|
var handleCallOutDismiss = function handleCallOutDismiss() {
|
|
38343
|
-
|
|
38344
|
-
|
|
38345
|
-
|
|
38346
|
-
|
|
38347
|
-
|
|
38348
|
-
|
|
38349
|
-
|
|
38350
|
-
|
|
38351
|
-
|
|
38352
|
-
|
|
38353
|
-
|
|
38354
|
-
|
|
38355
|
-
|
|
38337
|
+
// if(hasTouchSupport()){
|
|
38338
|
+
// setTimeout(() => {
|
|
38339
|
+
// let newViewportHeight = window.innerHeight
|
|
38340
|
+
// if (newViewportHeight < viewPortHeight) {
|
|
38341
|
+
// return
|
|
38342
|
+
// } else {
|
|
38343
|
+
// setCalloutVisible(false)
|
|
38344
|
+
// }
|
|
38345
|
+
// }, 300)
|
|
38346
|
+
// } else {
|
|
38347
|
+
// setCalloutVisible(false)
|
|
38348
|
+
// }
|
|
38349
|
+
if (!hasTouchSupport()) {
|
|
38356
38350
|
setCalloutVisible(false);
|
|
38357
38351
|
}
|
|
38358
38352
|
};
|