@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.
@@ -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.1";
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
- height = _useWindowSize.height;
38185
-
38186
- console.log('+++viewPortHeight==', viewPortHeight);
38179
+ width = _useWindowSize.width;
38180
+ _useWindowSize.height;
38187
38181
 
38188
- var _useState17 = React.useState(0),
38189
- _useState18 = _slicedToArray(_useState17, 2),
38190
- count = _useState18[0],
38191
- setCount = _useState18[1];
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
- React.useEffect(function () {
38204
- if (isCalloutVisible) {
38205
- setViewPortHeight(height);
38206
- }
38207
- }, [isCalloutVisible]);
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
- console.log('+++hasTouchSupport=', hasTouchSupport());
38344
-
38345
- if (hasTouchSupport()) {
38346
- setTimeout(function () {
38347
- var newViewportHeight = window.innerHeight;
38348
-
38349
- if (newViewportHeight < viewPortHeight) {
38350
- return;
38351
- } else {
38352
- setCalloutVisible(false);
38353
- }
38354
- }, 300);
38355
- } else {
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
  };