@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/dist/index.esm.js CHANGED
@@ -2,8 +2,8 @@ import react, { Component, lazy, useState, useEffect } from 'react';
2
2
  import { toastOptions, clearCache, axiosInstance, isVerbose, checkAllRequestsComplete } from '@carbonorm/carbonnode';
3
3
  import { useNavigate, BrowserRouter } from 'react-router-dom';
4
4
  import { toast, ToastContainer } from 'react-toastify';
5
- import OutsideClickHandler from 'react-outside-click-handler';
6
5
  import classNames from 'classnames';
6
+ import OutsideClickHandler from 'react-outside-click-handler';
7
7
  import { faClose } from '@fortawesome/free-solid-svg-icons';
8
8
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
9
9
  import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';
@@ -1394,16 +1394,7 @@ var BackendThrowable = () => {
1394
1394
  const bootstrap = CarbonReact.instance;
1395
1395
  const currentThrowable = bootstrap.state.backendThrowable[0];
1396
1396
  console.log([bootstrap.state.backendThrowable, currentThrowable]);
1397
- return jsxRuntime_2("div", { className: styles.maintenanceHero, children: [jsxRuntime_1("h1", { className: styles.httpStatusCode, children: currentThrowable?.status || 500 }), jsxRuntime_1(OutsideClickHandler, { onOutsideClick: () => bootstrap.setState(currentState => ({ backendThrowable: currentState.backendThrowable.slice(1) })), children: jsxRuntime_1("div", { className: styles.centeredContainer, children: Object.keys(currentThrowable).map((key, index) => {
1398
- const valueIsString = typeof currentThrowable[key] === 'string';
1399
- const valueIsCode = 'THROWN NEAR' === key;
1400
- return jsxRuntime_2("div", { children: [jsxRuntime_2("div", { className: styles.errorTextGeneral, children: [" > ", jsxRuntime_1("span", { className: styles.errorKeys, children: key }), ":", valueIsString
1401
- ? (valueIsCode ? jsxRuntime_1("div", { style: { backgroundColor: 'black', fontSize: 'xx-small' }, dangerouslySetInnerHTML: { __html: currentThrowable[key] } }) :
1402
- jsxRuntime_2("i", { className: styles.errorValues, children: ["\"", currentThrowable[key], "\""] }))
1403
- : ''] }), valueIsString
1404
- ? ''
1405
- : jsxRuntime_1("pre", { className: styles.errorPre, children: JSON.stringify(currentThrowable[key], undefined, 4) })] }, index);
1406
- }) }) })] });
1397
+ return jsxRuntime_1("div", { className: styles.maintenanceHero, children: jsxRuntime_1("h1", { className: styles.httpStatusCode, children: currentThrowable?.status || 500 }) });
1407
1398
  };
1408
1399
 
1409
1400
  const range = n => new Array(n).fill(0).map((_, idx) => idx);