@carbonorm/carbonreact 3.3.13 → 3.3.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbonorm/carbonreact",
3
- "version": "3.3.13",
3
+ "version": "3.3.14",
4
4
  "browser": "dist/index.umd.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "main": "dist/index.cjs.js",
@@ -1,5 +1,5 @@
1
1
  import styles from './style.module.scss';
2
- import OutsideClickHandler from 'react-outside-click-handler';
2
+ //import OutsideClickHandler from 'react-outside-click-handler';
3
3
  import CarbonReact from "../../CarbonReact";
4
4
  import {ReactElement} from "react";
5
5
 
@@ -13,31 +13,7 @@ export default () : ReactElement => {
13
13
 
14
14
  return <div className={styles.maintenanceHero}>
15
15
  <h1 className={styles.httpStatusCode}>{currentThrowable?.status || 500}</h1>
16
- <OutsideClickHandler
17
- onOutsideClick={() => bootstrap.setState(currentState => ({ backendThrowable: currentState.backendThrowable.slice(1) }))}>
18
- <div className={styles.centeredContainer}>
19
- {Object.keys(currentThrowable).map((key, index) => {
20
16
 
21
- const valueIsString = typeof currentThrowable[key] === 'string';
22
-
23
- const valueIsCode = 'THROWN NEAR' === key;
24
-
25
- return <div key={index}>
26
- <div className={styles.errorTextGeneral}> &gt; <span className={styles.errorKeys}>{key}</span>:
27
- {valueIsString
28
- ? (valueIsCode ? <div
29
- style={{ backgroundColor: 'black', fontSize: 'xx-small' }}
30
- dangerouslySetInnerHTML={{ __html: currentThrowable[key] }} /> :
31
- <i className={styles.errorValues}>&quot;{currentThrowable[key]}&quot;</i>)
32
- : ''}
33
- </div>
34
- {valueIsString
35
- ? ''
36
- : <pre className={styles.errorPre}>{JSON.stringify(currentThrowable[key], undefined, 4)}</pre>}
37
- </div>;
38
- })}
39
- </div>
40
- </OutsideClickHandler>
41
17
  </div>;
42
18
 
43
19
  }