@xylabs/sdk-react 2.9.36 → 2.10.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/cjs5/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/cjs5/contexts/UserEvents/{Loader.d.ts → Provider.d.ts} +1 -1
- package/dist/cjs5/contexts/UserEvents/index.d.ts +1 -1
- package/dist/cjs5/index.js +261 -146
- package/dist/cjs5/index.js.map +1 -1
- package/dist/cjs5/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/cjs5/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/cjs5/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/cjs5/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/cjs5/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/cjs5/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/cjs5/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/cjs5/lib/Tracking/index.d.ts +1 -0
- package/dist/components/AppBarEx/AppBarEx.js +2 -2
- package/dist/components/AppBarEx/AppBarEx.js.map +1 -1
- package/dist/components/AppBarEx/AppBarEx.stories.js +1 -1
- package/dist/components/AppBarEx/AppBarEx.stories.js.map +1 -1
- package/dist/components/Background.js +2 -1
- package/dist/components/Background.js.map +1 -1
- package/dist/components/BasePage/BasePage.js +2 -2
- package/dist/components/BasePage/BasePage.js.map +1 -1
- package/dist/components/BasePage/BasePage.stories.js +3 -5
- package/dist/components/BasePage/BasePage.stories.js.map +1 -1
- package/dist/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/components/Breadcrumbs/BreadcrumbsEx.js +2 -2
- package/dist/components/Breadcrumbs/BreadcrumbsEx.js.map +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbsEx.stories.js +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbsEx.stories.js.map +1 -1
- package/dist/components/BusyCircularProgress.js +1 -1
- package/dist/components/BusyCircularProgress.js.map +1 -1
- package/dist/components/BusyLinearProgress.js +1 -1
- package/dist/components/BusyLinearProgress.js.map +1 -1
- package/dist/components/ButtonEx/ButtonEx.js +2 -2
- package/dist/components/ButtonEx/ButtonEx.js.map +1 -1
- package/dist/components/ButtonEx/ButtonEx.stories.js +1 -1
- package/dist/components/ButtonEx/ButtonEx.stories.js.map +1 -1
- package/dist/components/ButtonEx/ButtonExBase.js +1 -1
- package/dist/components/ButtonEx/ButtonExBase.js.map +1 -1
- package/dist/components/ButtonEx/ButtonExTo.js +1 -1
- package/dist/components/ButtonEx/ButtonExTo.js.map +1 -1
- package/dist/components/CookieConsent/CookieConsent.js +3 -3
- package/dist/components/CookieConsent/CookieConsent.js.map +1 -1
- package/dist/components/CookieConsent/CookieConsent.stories.js +3 -3
- package/dist/components/CookieConsent/CookieConsent.stories.js.map +1 -1
- package/dist/components/CookieConsent/CookieConsentBody.js +2 -2
- package/dist/components/CookieConsent/CookieConsentBody.js.map +1 -1
- package/dist/components/CoverProgress.js +1 -1
- package/dist/components/CoverProgress.js.map +1 -1
- package/dist/components/Errors/ErrorViewer.js +1 -1
- package/dist/components/Errors/ErrorViewer.js.map +1 -1
- package/dist/components/Errors/ErrorViewer.stories.js +1 -1
- package/dist/components/Errors/ErrorViewer.stories.js.map +1 -1
- package/dist/components/Errors/ErrorsViewer.js +1 -1
- package/dist/components/Errors/ErrorsViewer.js.map +1 -1
- package/dist/components/Errors/ErrorsViewer.stories.js +1 -1
- package/dist/components/Errors/ErrorsViewer.stories.js.map +1 -1
- package/dist/components/EthAccount/EthAccount.js +1 -1
- package/dist/components/EthAccount/EthAccount.js.map +1 -1
- package/dist/components/EthAccount/EthAccount.stories.js +1 -1
- package/dist/components/EthAccount/EthAccount.stories.js.map +1 -1
- package/dist/components/EthBlock.js +2 -2
- package/dist/components/EthBlock.js.map +1 -1
- package/dist/components/Experiments/Experiment.js +1 -1
- package/dist/components/Experiments/Experiment.js.map +1 -1
- package/dist/components/Experiments/Experiments.stories.js +1 -1
- package/dist/components/Experiments/Experiments.stories.js.map +1 -1
- package/dist/components/Experiments/ExperimentsDebugger.js +4 -4
- package/dist/components/Experiments/ExperimentsDebugger.js.map +1 -1
- package/dist/components/Experiments/ExperimentsDebugger.stories.js +1 -1
- package/dist/components/Experiments/ExperimentsDebugger.stories.js.map +1 -1
- package/dist/components/FlexBox/BusyBox.js +1 -1
- package/dist/components/FlexBox/BusyBox.js.map +1 -1
- package/dist/components/FlexBox/BusyBox.stories.js +1 -1
- package/dist/components/FlexBox/BusyBox.stories.js.map +1 -1
- package/dist/components/FlexBox/FlexCol.js +2 -2
- package/dist/components/FlexBox/FlexCol.js.map +1 -1
- package/dist/components/FlexBox/FlexCol.stories.js +2 -2
- package/dist/components/FlexBox/FlexCol.stories.js.map +1 -1
- package/dist/components/FlexBox/FlexRow.js +2 -2
- package/dist/components/FlexBox/FlexRow.js.map +1 -1
- package/dist/components/FlexBox/FlexRow.stories.js +2 -2
- package/dist/components/FlexBox/FlexRow.stories.js.map +1 -1
- package/dist/components/HoverScale.js +1 -1
- package/dist/components/HoverScale.js.map +1 -1
- package/dist/components/Identicon.js +1 -1
- package/dist/components/Identicon.js.map +1 -1
- package/dist/components/InvertableThemeProvider/InvertableThemeProvider.js +5 -3
- package/dist/components/InvertableThemeProvider/InvertableThemeProvider.js.map +1 -1
- package/dist/components/InvertableThemeProvider/InvertableThemeProvider.stories.js +4 -4
- package/dist/components/InvertableThemeProvider/InvertableThemeProvider.stories.js.map +1 -1
- package/dist/components/LinkEx/LinkToEx.js +3 -2
- package/dist/components/LinkEx/LinkToEx.js.map +1 -1
- package/dist/components/MenuEx.js +1 -1
- package/dist/components/MenuEx.js.map +1 -1
- package/dist/components/NumberStatus/NumberStatus.js +1 -1
- package/dist/components/NumberStatus/NumberStatus.js.map +1 -1
- package/dist/components/NumberStatus/NumberStatus.stories.js +1 -1
- package/dist/components/NumberStatus/NumberStatus.stories.js.map +1 -1
- package/dist/components/Pixel/PixelDebugger.js +2 -2
- package/dist/components/Pixel/PixelDebugger.js.map +1 -1
- package/dist/components/Pixel/PixelDebugger.stories.js +1 -1
- package/dist/components/Pixel/PixelDebugger.stories.js.map +1 -1
- package/dist/components/Pixel/PixelDebuggerProvider.js +1 -1
- package/dist/components/Pixel/PixelDebuggerProvider.js.map +1 -1
- package/dist/components/Pixel/PixelDebuggerToggle.js +1 -1
- package/dist/components/Pixel/PixelDebuggerToggle.js.map +1 -1
- package/dist/components/QuickTipButton/QuickTipButton.js +1 -1
- package/dist/components/QuickTipButton/QuickTipButton.js.map +1 -1
- package/dist/components/QuickTipButton/QuickTipButton.stories.js +2 -2
- package/dist/components/QuickTipButton/QuickTipButton.stories.js.map +1 -1
- package/dist/components/RedirectWithQuery.js +1 -1
- package/dist/components/RedirectWithQuery.js.map +1 -1
- package/dist/components/RichResult/RichResult.js +1 -1
- package/dist/components/RichResult/RichResult.js.map +1 -1
- package/dist/components/ScrollToTopButton.js +1 -1
- package/dist/components/ScrollToTopButton.js.map +1 -1
- package/dist/components/SelectEx.js +1 -1
- package/dist/components/SelectEx.js.map +1 -1
- package/dist/components/TokenAmount/TokenAmount.js +1 -1
- package/dist/components/TokenAmount/TokenAmount.js.map +1 -1
- package/dist/components/TokenAmount/TokenAmount.stories.js +1 -1
- package/dist/components/TokenAmount/TokenAmount.stories.js.map +1 -1
- package/dist/components/dialogs/ErrorDialog.js +2 -2
- package/dist/components/dialogs/ErrorDialog.js.map +1 -1
- package/dist/components/dialogs/ErrorDialog.stories.js +1 -1
- package/dist/components/dialogs/ErrorDialog.stories.js.map +1 -1
- package/dist/components/dialogs/MessageDialog.js +1 -1
- package/dist/components/dialogs/MessageDialog.js.map +1 -1
- package/dist/components/dialogs/MessageDialog.stories.js +1 -1
- package/dist/components/dialogs/MessageDialog.stories.js.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/contexts/CookieConsent/Loader.js +1 -1
- package/dist/contexts/CookieConsent/Loader.js.map +1 -1
- package/dist/contexts/Ethers/Infura.js +1 -1
- package/dist/contexts/Ethers/Infura.js.map +1 -1
- package/dist/contexts/Ethers/Loader.js +6 -6
- package/dist/contexts/Ethers/Loader.js.map +1 -1
- package/dist/contexts/Ethers/MetaMask.js +7 -3
- package/dist/contexts/Ethers/MetaMask.js.map +1 -1
- package/dist/contexts/Ethers/MyEtherWallet.js +7 -3
- package/dist/contexts/Ethers/MyEtherWallet.js.map +1 -1
- package/dist/contexts/Ethers/Opera.js +4 -2
- package/dist/contexts/Ethers/Opera.js.map +1 -1
- package/dist/contexts/Ethers/Trust.js +4 -2
- package/dist/contexts/Ethers/Trust.js.map +1 -1
- package/dist/contexts/NetworkSettings/Loader.js +1 -1
- package/dist/contexts/NetworkSettings/Loader.js.map +1 -1
- package/dist/contexts/UserEvents/{Loader.d.ts → Provider.d.ts} +1 -1
- package/dist/contexts/UserEvents/Provider.js +7 -0
- package/dist/contexts/UserEvents/Provider.js.map +1 -0
- package/dist/contexts/UserEvents/index.d.ts +1 -1
- package/dist/contexts/UserEvents/index.js +1 -1
- package/dist/contexts/UserEvents/index.js.map +1 -1
- package/dist/esm2015/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/esm2015/contexts/UserEvents/{Loader.d.ts → Provider.d.ts} +1 -1
- package/dist/esm2015/contexts/UserEvents/index.d.ts +1 -1
- package/dist/esm2015/index.js +258 -147
- package/dist/esm2015/index.js.map +1 -1
- package/dist/esm2015/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/esm2015/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/esm2015/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/esm2015/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/esm2015/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/esm2015/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/esm2015/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/esm2015/lib/Tracking/index.d.ts +1 -0
- package/dist/esm2017/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/esm2017/contexts/UserEvents/{Loader.d.ts → Provider.d.ts} +1 -1
- package/dist/esm2017/contexts/UserEvents/index.d.ts +1 -1
- package/dist/esm2017/index.js +258 -147
- package/dist/esm2017/index.js.map +1 -1
- package/dist/esm2017/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/esm2017/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/esm2017/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/esm2017/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/esm2017/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/esm2017/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/esm2017/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/esm2017/lib/Tracking/index.d.ts +1 -0
- package/dist/esm5/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/esm5/contexts/UserEvents/Provider.d.ts +7 -0
- package/dist/esm5/contexts/UserEvents/index.d.ts +1 -1
- package/dist/esm5/index.js +258 -147
- package/dist/esm5/index.js.map +1 -1
- package/dist/esm5/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/esm5/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/esm5/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/esm5/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/esm5/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/esm5/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/esm5/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/esm5/lib/Tracking/index.d.ts +1 -0
- package/dist/hooks/useWebP.js +4 -2
- package/dist/hooks/useWebP.js.map +1 -1
- package/dist/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/lib/Tracking/Facebook/index.js +1 -0
- package/dist/lib/Tracking/Facebook/index.js.map +1 -1
- package/dist/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/lib/Tracking/Tapjoy/BaseEvent.js +16 -0
- package/dist/lib/Tracking/Tapjoy/BaseEvent.js.map +1 -0
- package/dist/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/lib/Tracking/Tapjoy/EF.js +38 -0
- package/dist/lib/Tracking/Tapjoy/EF.js.map +1 -0
- package/dist/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/lib/Tracking/Tapjoy/StandardEvent.js +13 -0
- package/dist/lib/Tracking/Tapjoy/StandardEvent.js.map +1 -0
- package/dist/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/lib/Tracking/Tapjoy/StandardEvents.js +8 -0
- package/dist/lib/Tracking/Tapjoy/StandardEvents.js.map +1 -0
- package/dist/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/lib/Tracking/Tapjoy/index.js +4 -0
- package/dist/lib/Tracking/Tapjoy/index.js.map +1 -0
- package/dist/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/lib/Tracking/XyoUserEventHandler.js +8 -1
- package/dist/lib/Tracking/XyoUserEventHandler.js.map +1 -1
- package/dist/lib/Tracking/index.d.ts +1 -0
- package/dist/lib/Tracking/index.js +1 -0
- package/dist/lib/Tracking/index.js.map +1 -1
- package/dist/node/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/node/contexts/UserEvents/Provider.d.ts +7 -0
- package/dist/node/contexts/UserEvents/index.d.ts +1 -1
- package/dist/node/index.js +261 -146
- package/dist/node/index.js.map +1 -1
- package/dist/node/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/node/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/node/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/node/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/node/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/node/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/node/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/node/lib/Tracking/index.d.ts +1 -0
- package/dist/node-esm/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/node-esm/contexts/UserEvents/Provider.d.ts +7 -0
- package/dist/node-esm/contexts/UserEvents/index.d.ts +1 -1
- package/dist/node-esm/index.js +258 -147
- package/dist/node-esm/index.js.map +1 -1
- package/dist/node-esm/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/node-esm/lib/Tracking/Tapjoy/BaseEvent.d.ts +8 -0
- package/dist/node-esm/lib/Tracking/Tapjoy/EF.d.ts +8 -0
- package/dist/node-esm/lib/Tracking/Tapjoy/StandardEvent.d.ts +5 -0
- package/dist/node-esm/lib/Tracking/Tapjoy/StandardEvents.d.ts +5 -0
- package/dist/node-esm/lib/Tracking/Tapjoy/index.d.ts +3 -0
- package/dist/node-esm/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/node-esm/lib/Tracking/index.d.ts +1 -0
- package/package.json +33 -50
- package/src/components/Background.tsx +1 -0
- package/src/components/BasePage/BasePage.stories.tsx +0 -2
- package/src/components/BasePage/BasePage.tsx +0 -3
- package/src/components/BasePage/BasePageProps.ts +0 -2
- package/src/components/InvertableThemeProvider/InvertableThemeProvider.tsx +1 -0
- package/src/components/LinkEx/LinkToEx.tsx +1 -0
- package/src/components/index.ts +1 -0
- package/src/contexts/Ethers/MetaMask.tsx +2 -0
- package/src/contexts/Ethers/MyEtherWallet.tsx +2 -0
- package/src/contexts/Ethers/Opera.tsx +1 -0
- package/src/contexts/Ethers/Trust.tsx +1 -0
- package/src/contexts/UserEvents/Provider.tsx +17 -0
- package/src/contexts/UserEvents/index.ts +1 -1
- package/src/hooks/useWebP.tsx +2 -1
- package/src/lib/Tracking/Facebook/index.ts +1 -0
- package/src/lib/Tracking/Tapjoy/BaseEvent.ts +19 -0
- package/src/lib/Tracking/Tapjoy/EF.ts +41 -0
- package/src/lib/Tracking/Tapjoy/StandardEvent.ts +11 -0
- package/src/lib/Tracking/Tapjoy/StandardEvents.ts +9 -0
- package/src/lib/Tracking/Tapjoy/index.ts +3 -0
- package/src/lib/Tracking/XyoUserEventHandler.ts +11 -2
- package/src/lib/Tracking/index.ts +1 -0
- package/dist/contexts/UserEvents/Loader.js +0 -6
- package/dist/contexts/UserEvents/Loader.js.map +0 -1
- package/dist/esm5/contexts/UserEvents/Loader.d.ts +0 -7
- package/dist/node/contexts/UserEvents/Loader.d.ts +0 -7
- package/dist/node-esm/contexts/UserEvents/Loader.d.ts +0 -7
- package/src/contexts/UserEvents/Loader.tsx +0 -12
package/dist/esm2015/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { useNavigate, useLocation, Link as Link$1 } from 'react-router-dom';
|
|
|
9
9
|
import { KeyboardArrowUp } from '@mui/icons-material';
|
|
10
10
|
import { Helmet } from 'react-helmet';
|
|
11
11
|
import { InfuraProvider, Web3Provider } from '@ethersproject/providers';
|
|
12
|
-
import { getApiStage as getApiStage$1,
|
|
12
|
+
import { getApiStage as getApiStage$1, assertEx, delay, EthAddress, forget, BigNumber } from '@xylabs/sdk-js';
|
|
13
13
|
import { UserEventHandler, XyPixel } from '@xylabs/pixel';
|
|
14
14
|
import { parse, stringify } from 'query-string';
|
|
15
15
|
import { createTheme } from '@mui/material/styles';
|
|
@@ -58,54 +58,54 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
58
58
|
const BusyCircularProgress = (_a) => {
|
|
59
59
|
var { bgcolor, style, rounded, size, opacity = 0.85 } = _a, props = __rest(_a, ["bgcolor", "style", "rounded", "size", "opacity"]);
|
|
60
60
|
const theme = useTheme();
|
|
61
|
-
return (jsx(Box, Object.assign({ display: "flex", bgcolor: alpha(bgcolor !== null && bgcolor !== void 0 ? bgcolor : theme.palette.background.default, parseFloat(`${opacity}`)), flexGrow: 1, position: "absolute", left: 0, right: 0, top: 0, bottom: 0, justifyContent: "center", alignItems: "center", overflow: "hidden", style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0 }, style) }, { children: jsx(CircularProgress, Object.assign({ size: size }, props)
|
|
61
|
+
return (jsx(Box, Object.assign({ display: "flex", bgcolor: alpha(bgcolor !== null && bgcolor !== void 0 ? bgcolor : theme.palette.background.default, parseFloat(`${opacity}`)), flexGrow: 1, position: "absolute", left: 0, right: 0, top: 0, bottom: 0, justifyContent: "center", alignItems: "center", overflow: "hidden", style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0 }, style) }, { children: jsx(CircularProgress, Object.assign({ size: size }, props)) })));
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
const BusyLinearProgress = (_a) => {
|
|
65
65
|
var { bgcolor, style, rounded, opacity = 0.85 } = _a, props = __rest(_a, ["bgcolor", "style", "rounded", "opacity"]);
|
|
66
66
|
const theme = useTheme();
|
|
67
|
-
return (jsx(Box, Object.assign({ display: "flex", flexDirection: "column", bgcolor: alpha(bgcolor !== null && bgcolor !== void 0 ? bgcolor : theme.palette.background.default, parseFloat(`${opacity}`)), position: "absolute", left: 0, right: 0, top: 0, bottom: 0, justifyContent: "flex-start", alignItems: "stretch", overflow: "hidden", style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0 }, style) }, { children: jsx(LinearProgress, Object.assign({}, props)
|
|
67
|
+
return (jsx(Box, Object.assign({ display: "flex", flexDirection: "column", bgcolor: alpha(bgcolor !== null && bgcolor !== void 0 ? bgcolor : theme.palette.background.default, parseFloat(`${opacity}`)), position: "absolute", left: 0, right: 0, top: 0, bottom: 0, justifyContent: "flex-start", alignItems: "stretch", overflow: "hidden", style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0 }, style) }, { children: jsx(LinearProgress, Object.assign({}, props)) })));
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
const BusyBox = (_a) => {
|
|
71
71
|
var { background, children, component, busyVariant = 'circular', busySize, busyOpacity = 0.85, busyColor, busy, busyCircularProps, busyLinearProps, paper, style } = _a, props = __rest(_a, ["background", "children", "component", "busyVariant", "busySize", "busyOpacity", "busyColor", "busy", "busyCircularProps", "busyLinearProps", "paper", "style"]);
|
|
72
72
|
const theme = useTheme();
|
|
73
73
|
return (jsxs(Box, Object.assign({ component: paper ? Paper : component, position: "relative", style: background
|
|
74
|
-
? Object.assign({ backgroundColor: theme.palette.background.default, color: theme.palette.text.primary }, style) : style }, props, { children: [children, busy && busyVariant === 'linear' ? (jsx(BusyLinearProgress, Object.assign({ color: busyColor, opacity: busyOpacity }, busyLinearProps)
|
|
74
|
+
? Object.assign({ backgroundColor: theme.palette.background.default, color: theme.palette.text.primary }, style) : style }, props, { children: [children, busy && busyVariant === 'linear' ? (jsx(BusyLinearProgress, Object.assign({ color: busyColor, opacity: busyOpacity }, busyLinearProps))) : null, busy && busyVariant === 'circular' ? (jsx(BusyCircularProgress, Object.assign({ color: busyColor, opacity: busyOpacity, size: busySize }, busyCircularProps))) : null] })));
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
const FlexCol = (props) => {
|
|
78
|
-
return jsx(BusyBox, Object.assign({ alignItems: "center", display: "flex", flexDirection: "column", justifyContent: "center" }, props)
|
|
78
|
+
return jsx(BusyBox, Object.assign({ alignItems: "center", display: "flex", flexDirection: "column", justifyContent: "center" }, props));
|
|
79
79
|
};
|
|
80
80
|
const FlexGrowCol = (props) => {
|
|
81
|
-
return jsx(FlexCol, Object.assign({ flexGrow: 1 }, props)
|
|
81
|
+
return jsx(FlexCol, Object.assign({ flexGrow: 1 }, props));
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
const FlexRow = (props) => {
|
|
85
|
-
return jsx(BusyBox, Object.assign({ alignItems: "center", display: "flex", flexDirection: "row", justifyContent: "center" }, props)
|
|
85
|
+
return jsx(BusyBox, Object.assign({ alignItems: "center", display: "flex", flexDirection: "row", justifyContent: "center" }, props));
|
|
86
86
|
};
|
|
87
87
|
const FlexGrowRow = (props) => {
|
|
88
|
-
return jsx(FlexRow, Object.assign({ flexGrow: 1 }, props)
|
|
88
|
+
return jsx(FlexRow, Object.assign({ flexGrow: 1 }, props));
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* @deprecated The functionality of Background is now part of FlexBox. Use the 'background' property to enable the background.
|
|
93
93
|
*/
|
|
94
94
|
const Background = (props) => {
|
|
95
|
-
return jsx(FlexRow, Object.assign({}, props)
|
|
95
|
+
return jsx(FlexRow, Object.assign({}, props));
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
const ErrorViewer = (props) => {
|
|
99
99
|
const { error } = props, boxProps = __rest(props, ["error"]);
|
|
100
100
|
const theme = useTheme();
|
|
101
|
-
return (jsxs(FlexCol, Object.assign({ color: theme.palette.error.main }, boxProps, { children: [jsx(Typography, Object.assign({ align: "center", variant: "subtitle1" }, { children: error === null || error === void 0 ? void 0 : error.name })
|
|
101
|
+
return (jsxs(FlexCol, Object.assign({ color: theme.palette.error.main }, boxProps, { children: [jsx(Typography, Object.assign({ align: "center", variant: "subtitle1" }, { children: error === null || error === void 0 ? void 0 : error.name })), jsx(Typography, Object.assign({ align: "center", variant: "body2" }, { children: error === null || error === void 0 ? void 0 : error.message }))] })));
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
const ErrorsViewer = (props) => {
|
|
105
105
|
const { onRetry, errors } = props, boxProps = __rest(props, ["onRetry", "errors"]);
|
|
106
106
|
return (jsxs(FlexGrowCol, Object.assign({ padding: 1 }, boxProps, { children: [errors === null || errors === void 0 ? void 0 : errors.map((error, index) => {
|
|
107
107
|
return jsx(ErrorViewer, { error: error }, index);
|
|
108
|
-
}), onRetry ? (jsx(IconButton, Object.assign({ onClick: onRetry }, { children: jsx(AiOutlineReload, {}
|
|
108
|
+
}), onRetry ? (jsx(IconButton, Object.assign({ onClick: onRetry }, { children: jsx(AiOutlineReload, {}) }))) : null] })));
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
const CoverProgress = (props) => {
|
|
@@ -113,7 +113,7 @@ const CoverProgress = (props) => {
|
|
|
113
113
|
const { paper = true, open, opacity = 0.25, errors, onRetry } = props;
|
|
114
114
|
const theme = useTheme();
|
|
115
115
|
if (open) {
|
|
116
|
-
return (jsx(FlexGrowRow, Object.assign({ position: "absolute", margin: -1, top: 0, bottom: 0, right: 0, left: 0, bgcolor: paper ? theme.palette.background.paper : theme.palette.background.default }, { children: ((_a = errors === null || errors === void 0 ? void 0 : errors.length) !== null && _a !== void 0 ? _a : 0) === 0 ? (jsx(CircularProgress, { style: { opacity } }
|
|
116
|
+
return (jsx(FlexGrowRow, Object.assign({ position: "absolute", margin: -1, top: 0, bottom: 0, right: 0, left: 0, bgcolor: paper ? theme.palette.background.paper : theme.palette.background.default }, { children: ((_a = errors === null || errors === void 0 ? void 0 : errors.length) !== null && _a !== void 0 ? _a : 0) === 0 ? (jsx(CircularProgress, { style: { opacity } })) : (jsx(ErrorsViewer, { margin: 1, errors: errors, onRetry: onRetry })) })));
|
|
117
117
|
}
|
|
118
118
|
return null;
|
|
119
119
|
};
|
|
@@ -130,7 +130,7 @@ const HoverScale = (props) => {
|
|
|
130
130
|
},
|
|
131
131
|
}));
|
|
132
132
|
const classes = useStyles();
|
|
133
|
-
return (jsx(FlexRow, { children: jsx(Box, Object.assign({ className: classes.zoomdiv }, { children: children })
|
|
133
|
+
return (jsx(FlexRow, { children: jsx(Box, Object.assign({ className: classes.zoomdiv }, { children: children })) }));
|
|
134
134
|
};
|
|
135
135
|
|
|
136
136
|
const range = (n, in_min, in_max, out_min, out_max) => {
|
|
@@ -189,7 +189,7 @@ const Identicon = (_a) => {
|
|
|
189
189
|
useEffect(() => {
|
|
190
190
|
updateCanvas(canvas, { bg, className, count, fg, iconPadding, palette, size, value });
|
|
191
191
|
});
|
|
192
|
-
return (jsx(FlexRow, Object.assign({}, props, { children: jsx("canvas", { className: className, ref: canvas, style: { height: size, width: size } }
|
|
192
|
+
return (jsx(FlexRow, Object.assign({}, props, { children: jsx("canvas", { className: className, ref: canvas, style: { height: size, width: size } }) })));
|
|
193
193
|
};
|
|
194
194
|
|
|
195
195
|
const RedirectWithQuery = ({ href, to, toOptions }) => {
|
|
@@ -206,7 +206,7 @@ const RedirectWithQuery = ({ href, to, toOptions }) => {
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
|
-
return jsx("div", {}
|
|
209
|
+
return jsx("div", {});
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
const ScrollToTopButton = (_a) => {
|
|
@@ -222,16 +222,16 @@ const ScrollToTopButton = (_a) => {
|
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
const theme = useTheme();
|
|
225
|
-
return (jsx(Zoom, Object.assign({ in: trigger }, props, { children: jsx(Box, Object.assign({ zIndex: 10, position: "fixed", right: theme.spacing(2), bottom: theme.spacing(2), onClick: handleClick, role: "presentation" }, { children: children })
|
|
225
|
+
return (jsx(Zoom, Object.assign({ in: trigger }, props, { children: jsx(Box, Object.assign({ zIndex: 10, position: "fixed", right: theme.spacing(2), bottom: theme.spacing(2), onClick: handleClick, role: "presentation" }, { children: children })) })));
|
|
226
226
|
};
|
|
227
227
|
|
|
228
228
|
const AppBarEx = (props) => {
|
|
229
229
|
const { contextToolbar, systemToolbar, container, style } = props, appbarProps = __rest(props, ["contextToolbar", "systemToolbar", "container", "style"]);
|
|
230
230
|
const theme = useTheme();
|
|
231
231
|
const AppBarExInner = () => {
|
|
232
|
-
return (jsxs(FlexGrowRow, Object.assign({ justifyContent: "space-between" }, { children: [contextToolbar !== null && contextToolbar !== void 0 ? contextToolbar : jsx(Toolbar, {}
|
|
232
|
+
return (jsxs(FlexGrowRow, Object.assign({ justifyContent: "space-between" }, { children: [contextToolbar !== null && contextToolbar !== void 0 ? contextToolbar : jsx(Toolbar, {}), systemToolbar !== null && systemToolbar !== void 0 ? systemToolbar : jsx(Toolbar, {})] })));
|
|
233
233
|
};
|
|
234
|
-
return (jsx(AppBar, Object.assign({ position: "static", style: Object.assign({ backgroundColor: theme.palette.background.paper, color: theme.palette.text.primary, display: 'flex' }, style) }, appbarProps, { children: container ? (jsx(Container, Object.assign({ maxWidth: container }, { children: jsx(AppBarExInner, {}
|
|
234
|
+
return (jsx(AppBar, Object.assign({ position: "static", style: Object.assign({ backgroundColor: theme.palette.background.paper, color: theme.palette.text.primary, display: 'flex' }, style) }, appbarProps, { children: container ? (jsx(Container, Object.assign({ maxWidth: container }, { children: jsx(AppBarExInner, {}) }))) : (jsx(AppBarExInner, {})) })));
|
|
235
235
|
};
|
|
236
236
|
|
|
237
237
|
const CookieConsentContext = createContext({});
|
|
@@ -253,7 +253,7 @@ const CookieConsentLoader = ({ children }) => {
|
|
|
253
253
|
localStorage.removeItem(CookiesAcceptedLocalStorageName);
|
|
254
254
|
setAccepted(getAcceptedFromLocalStorage());
|
|
255
255
|
};
|
|
256
|
-
return (jsx(CookieConsentContext.Provider, Object.assign({ value: { accepted, clearAccepted, setAccepted: setAcceptedHandler, storageName: CookiesAcceptedLocalStorageName } }, { children: children })
|
|
256
|
+
return (jsx(CookieConsentContext.Provider, Object.assign({ value: { accepted, clearAccepted, setAccepted: setAcceptedHandler, storageName: CookiesAcceptedLocalStorageName } }, { children: children })));
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
const useCookieConsent = () => {
|
|
@@ -273,7 +273,7 @@ const InfuraEthersLoader = (props) => {
|
|
|
273
273
|
isConnected: true,
|
|
274
274
|
provider,
|
|
275
275
|
signer: null,
|
|
276
|
-
} }, { children: children })
|
|
276
|
+
} }, { children: children })));
|
|
277
277
|
};
|
|
278
278
|
|
|
279
279
|
const getApiStage = () => {
|
|
@@ -394,77 +394,9 @@ class Referrer {
|
|
|
394
394
|
}
|
|
395
395
|
Referrer.storageId = '_coin_referrer';
|
|
396
396
|
|
|
397
|
-
class XyoUserEventHandler extends UserEventHandler {
|
|
398
|
-
constructor(handlers = []) {
|
|
399
|
-
super();
|
|
400
|
-
this.handlers = handlers;
|
|
401
|
-
}
|
|
402
|
-
testStarted(data) {
|
|
403
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
-
yield Promise.allSettled(this.handlers.map((handler) => handler.testStarted(data)));
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
funnelStarted(data) {
|
|
408
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
409
|
-
yield Promise.allSettled(this.handlers.map((handler) => handler.funnelStarted(data)));
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
viewContent(data) {
|
|
413
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
-
yield Promise.allSettled(this.handlers.map((handler) => handler.viewContent(data)));
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
userClick(data) {
|
|
418
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
419
|
-
yield Promise.allSettled(this.handlers.map((handler) => handler.userClick(data)));
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
|
|
424
397
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
425
398
|
const global = window;
|
|
426
399
|
|
|
427
|
-
class DripBaseEvent {
|
|
428
|
-
constructor(name, param) {
|
|
429
|
-
this.name = name;
|
|
430
|
-
this.param = param;
|
|
431
|
-
this.dcq = this.getDcq();
|
|
432
|
-
this.dcs = this.getDcs();
|
|
433
|
-
}
|
|
434
|
-
send(data) {
|
|
435
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
436
|
-
const payload = [this.name];
|
|
437
|
-
if (this.param) {
|
|
438
|
-
payload.push(this.param);
|
|
439
|
-
}
|
|
440
|
-
payload.push(data);
|
|
441
|
-
this.dcq.push(payload);
|
|
442
|
-
yield delay(0);
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
getDcq() {
|
|
446
|
-
if (!global._dcq) {
|
|
447
|
-
throw Error('DCQ not found');
|
|
448
|
-
}
|
|
449
|
-
return global._dcq;
|
|
450
|
-
}
|
|
451
|
-
getDcs() {
|
|
452
|
-
if (!global._dcs) {
|
|
453
|
-
throw Error('DCS not found');
|
|
454
|
-
}
|
|
455
|
-
return global._dcs;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
class DripCustomEvent extends DripBaseEvent {
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
class DripStandardEvents {
|
|
463
|
-
identify() {
|
|
464
|
-
return new DripBaseEvent('identify');
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
|
|
468
400
|
class Fbq {
|
|
469
401
|
constructor(pixelId) {
|
|
470
402
|
this.pixelId = pixelId;
|
|
@@ -583,6 +515,33 @@ class FacebookStandardEvents {
|
|
|
583
515
|
}
|
|
584
516
|
}
|
|
585
517
|
|
|
518
|
+
class FacebookUserEventHandler {
|
|
519
|
+
testStarted(data) {
|
|
520
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
521
|
+
const event = new FacebookCustomEvent('TestStarted');
|
|
522
|
+
return yield event.send(data);
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
funnelStarted(data) {
|
|
526
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
527
|
+
const event = new FacebookCustomEvent('FunnelStarted');
|
|
528
|
+
return yield event.send(data);
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
viewContent(data) {
|
|
532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
533
|
+
const event = new FacebookCustomEvent('ViewContent');
|
|
534
|
+
return yield event.send(data);
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
userClick(data) {
|
|
538
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
539
|
+
const event = new FacebookCustomEvent('UserClick');
|
|
540
|
+
return yield event.send(data);
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
586
545
|
class Gtag {
|
|
587
546
|
constructor(ga4id, awid, domains) {
|
|
588
547
|
var _a, _b, _c, _d;
|
|
@@ -846,6 +805,79 @@ class GoogleStandardEvents {
|
|
|
846
805
|
}
|
|
847
806
|
}
|
|
848
807
|
|
|
808
|
+
class XyoUserEventHandler extends UserEventHandler {
|
|
809
|
+
constructor(handlers = []) {
|
|
810
|
+
super();
|
|
811
|
+
this.handlers = handlers !== null && handlers !== void 0 ? handlers : [new FacebookUserEventHandler(), new GoogleUserEventHandler()];
|
|
812
|
+
}
|
|
813
|
+
testStarted(data) {
|
|
814
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
815
|
+
yield Promise.allSettled(this.handlers.map((handler) => handler.testStarted(data)));
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
funnelStarted(data) {
|
|
819
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
820
|
+
yield Promise.allSettled(this.handlers.map((handler) => handler.funnelStarted(data)));
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
viewContent(data) {
|
|
824
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
825
|
+
yield Promise.allSettled(this.handlers.map((handler) => handler.viewContent(data)));
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
userClick(data) {
|
|
829
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
830
|
+
yield Promise.allSettled(this.handlers.map((handler) => handler.userClick(data)));
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
static get() {
|
|
834
|
+
var _a;
|
|
835
|
+
this.instance = (_a = this.instance) !== null && _a !== void 0 ? _a : new XyoUserEventHandler();
|
|
836
|
+
return this.instance;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
class DripBaseEvent {
|
|
841
|
+
constructor(name, param) {
|
|
842
|
+
this.name = name;
|
|
843
|
+
this.param = param;
|
|
844
|
+
this.dcq = this.getDcq();
|
|
845
|
+
this.dcs = this.getDcs();
|
|
846
|
+
}
|
|
847
|
+
send(data) {
|
|
848
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
849
|
+
const payload = [this.name];
|
|
850
|
+
if (this.param) {
|
|
851
|
+
payload.push(this.param);
|
|
852
|
+
}
|
|
853
|
+
payload.push(data);
|
|
854
|
+
this.dcq.push(payload);
|
|
855
|
+
yield delay(0);
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
getDcq() {
|
|
859
|
+
if (!global._dcq) {
|
|
860
|
+
throw Error('DCQ not found');
|
|
861
|
+
}
|
|
862
|
+
return global._dcq;
|
|
863
|
+
}
|
|
864
|
+
getDcs() {
|
|
865
|
+
if (!global._dcs) {
|
|
866
|
+
throw Error('DCS not found');
|
|
867
|
+
}
|
|
868
|
+
return global._dcs;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
class DripCustomEvent extends DripBaseEvent {
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
class DripStandardEvents {
|
|
876
|
+
identify() {
|
|
877
|
+
return new DripBaseEvent('identify');
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
|
|
849
881
|
class Rdt {
|
|
850
882
|
static init(pixelId) {
|
|
851
883
|
try {
|
|
@@ -1062,6 +1094,69 @@ class SnapchatStandardEvents {
|
|
|
1062
1094
|
}
|
|
1063
1095
|
}
|
|
1064
1096
|
|
|
1097
|
+
class EF {
|
|
1098
|
+
static init() {
|
|
1099
|
+
try {
|
|
1100
|
+
EF.instance = new EF();
|
|
1101
|
+
}
|
|
1102
|
+
catch (ex) {
|
|
1103
|
+
console.error(`EF.init: ${ex}`);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
static getEF() {
|
|
1107
|
+
if (global.EF) {
|
|
1108
|
+
return global.EF;
|
|
1109
|
+
}
|
|
1110
|
+
console.warn('Missing EF');
|
|
1111
|
+
}
|
|
1112
|
+
track(event, data) {
|
|
1113
|
+
switch (event) {
|
|
1114
|
+
case 'Purchase':
|
|
1115
|
+
this.sendConversion(data);
|
|
1116
|
+
break;
|
|
1117
|
+
default:
|
|
1118
|
+
console.error(`EF.track: missing event ${event}`);
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
sendConversion(data) {
|
|
1122
|
+
try {
|
|
1123
|
+
//data: have session_id, tracking_id, order_id, amount
|
|
1124
|
+
const ef = EF.getEF();
|
|
1125
|
+
ef.conversion(Object.assign({}, data));
|
|
1126
|
+
}
|
|
1127
|
+
catch (ex) {
|
|
1128
|
+
console.error(`EF.conversion: ${ex}`);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
class TapjoyBaseEvent {
|
|
1134
|
+
constructor(name) {
|
|
1135
|
+
this.name = name;
|
|
1136
|
+
this.ef = assertEx(EF.instance, 'Missing Tapjoy Eventflow');
|
|
1137
|
+
}
|
|
1138
|
+
send(_data) {
|
|
1139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1140
|
+
yield delay(0);
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
class TapjoyStandardEvent extends TapjoyBaseEvent {
|
|
1146
|
+
send(data) {
|
|
1147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1148
|
+
this.ef.track(this.name, data);
|
|
1149
|
+
yield delay(0);
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
class TapjoyStandardEvents {
|
|
1155
|
+
purchase() {
|
|
1156
|
+
return new TapjoyStandardEvent('Purchase');
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1065
1160
|
class Ttq {
|
|
1066
1161
|
static init(pixelId) {
|
|
1067
1162
|
try {
|
|
@@ -1290,7 +1385,9 @@ const MetaMaskEthersLoader = (props) => {
|
|
|
1290
1385
|
setSigner(signer);
|
|
1291
1386
|
}
|
|
1292
1387
|
}, [ethereum, isConnected, enabled]);
|
|
1293
|
-
useAsyncEffect(
|
|
1388
|
+
useAsyncEffect(
|
|
1389
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1390
|
+
(isMounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1294
1391
|
if (signer && enabled) {
|
|
1295
1392
|
try {
|
|
1296
1393
|
const localAddress = EthAddress.fromString(yield signer.getAddress());
|
|
@@ -1310,7 +1407,9 @@ const MetaMaskEthersLoader = (props) => {
|
|
|
1310
1407
|
}
|
|
1311
1408
|
}), [signer, resetCount, enabled]);
|
|
1312
1409
|
const [chainId, setChainId] = useState();
|
|
1313
|
-
useAsyncEffect(
|
|
1410
|
+
useAsyncEffect(
|
|
1411
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1412
|
+
(isMounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1314
1413
|
var _b;
|
|
1315
1414
|
if (enabled) {
|
|
1316
1415
|
const chainId = (_b = (yield (provider === null || provider === void 0 ? void 0 : provider.getNetwork()))) === null || _b === void 0 ? void 0 : _b.chainId;
|
|
@@ -1330,7 +1429,7 @@ const MetaMaskEthersLoader = (props) => {
|
|
|
1330
1429
|
providerName,
|
|
1331
1430
|
signer: isConnected ? signer : undefined,
|
|
1332
1431
|
walletProvider,
|
|
1333
|
-
} }, { children: children })
|
|
1432
|
+
} }, { children: children })));
|
|
1334
1433
|
};
|
|
1335
1434
|
|
|
1336
1435
|
const MyEtherWalletEthersLoader = (props) => {
|
|
@@ -1377,7 +1476,9 @@ const MyEtherWalletEthersLoader = (props) => {
|
|
|
1377
1476
|
}
|
|
1378
1477
|
setSigner(signer);
|
|
1379
1478
|
}, [ethereum, isConnected]);
|
|
1380
|
-
useAsyncEffect(
|
|
1479
|
+
useAsyncEffect(
|
|
1480
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1481
|
+
(isMounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1381
1482
|
if (signer) {
|
|
1382
1483
|
try {
|
|
1383
1484
|
const localAddress = EthAddress.fromString(yield signer.getAddress());
|
|
@@ -1396,7 +1497,9 @@ const MyEtherWalletEthersLoader = (props) => {
|
|
|
1396
1497
|
}
|
|
1397
1498
|
}), [signer]);
|
|
1398
1499
|
const [chainId, setChainId] = useState();
|
|
1399
|
-
useAsyncEffect(
|
|
1500
|
+
useAsyncEffect(
|
|
1501
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1502
|
+
(isMounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1400
1503
|
var _b;
|
|
1401
1504
|
const chainId = (_b = (yield (provider === null || provider === void 0 ? void 0 : provider.getNetwork()))) === null || _b === void 0 ? void 0 : _b.chainId;
|
|
1402
1505
|
if (!isMounted())
|
|
@@ -1414,7 +1517,7 @@ const MyEtherWalletEthersLoader = (props) => {
|
|
|
1414
1517
|
providerName,
|
|
1415
1518
|
signer: isConnected ? signer : undefined,
|
|
1416
1519
|
walletProvider,
|
|
1417
|
-
} }, { children: children })
|
|
1520
|
+
} }, { children: children })));
|
|
1418
1521
|
};
|
|
1419
1522
|
|
|
1420
1523
|
const OperaEthersLoader = (props) => {
|
|
@@ -1429,7 +1532,9 @@ const OperaEthersLoader = (props) => {
|
|
|
1429
1532
|
const [localAddress, setLocalAddress] = useState(((_c = (_b = (_a = global.ethereum) === null || _a === void 0 ? void 0 : _a.addresses) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0) > 0 ? EthAddress.fromString((_e = (_d = global.ethereum) === null || _d === void 0 ? void 0 : _d.addresses) === null || _e === void 0 ? void 0 : _e[0]) : null);
|
|
1430
1533
|
const chainId = (ethereum === null || ethereum === void 0 ? void 0 : ethereum.chainId) ? parseInt(ethereum === null || ethereum === void 0 ? void 0 : ethereum.chainId) : 1;
|
|
1431
1534
|
const isConnected = (_f = ethereum === null || ethereum === void 0 ? void 0 : ethereum.isConnected()) !== null && _f !== void 0 ? _f : false;
|
|
1432
|
-
useAsyncEffect(
|
|
1535
|
+
useAsyncEffect(
|
|
1536
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1537
|
+
(mounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1433
1538
|
if (ethereum) {
|
|
1434
1539
|
ethereum.enable();
|
|
1435
1540
|
const operaProvider = new Web3Provider(ethereum);
|
|
@@ -1459,7 +1564,7 @@ const OperaEthersLoader = (props) => {
|
|
|
1459
1564
|
localAddress,
|
|
1460
1565
|
provider,
|
|
1461
1566
|
signer,
|
|
1462
|
-
} }, { children: children })
|
|
1567
|
+
} }, { children: children })));
|
|
1463
1568
|
};
|
|
1464
1569
|
|
|
1465
1570
|
const TrustEthersLoader = (props) => {
|
|
@@ -1472,7 +1577,9 @@ const TrustEthersLoader = (props) => {
|
|
|
1472
1577
|
const signer = trustProvider.getSigner();
|
|
1473
1578
|
const chainId = 1;
|
|
1474
1579
|
const provider = trustProvider;
|
|
1475
|
-
useAsyncEffect(
|
|
1580
|
+
useAsyncEffect(
|
|
1581
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1582
|
+
(mounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1476
1583
|
if (signer) {
|
|
1477
1584
|
try {
|
|
1478
1585
|
const localAddress = EthAddress.fromString(yield signer.getAddress());
|
|
@@ -1494,7 +1601,7 @@ const TrustEthersLoader = (props) => {
|
|
|
1494
1601
|
localAddress,
|
|
1495
1602
|
provider,
|
|
1496
1603
|
signer,
|
|
1497
|
-
} }, { children: children })
|
|
1604
|
+
} }, { children: children })));
|
|
1498
1605
|
};
|
|
1499
1606
|
|
|
1500
1607
|
const EthersLoader = (props) => {
|
|
@@ -1503,21 +1610,21 @@ const EthersLoader = (props) => {
|
|
|
1503
1610
|
const global = window;
|
|
1504
1611
|
const { children } = props;
|
|
1505
1612
|
if ((_a = global.ethereum) === null || _a === void 0 ? void 0 : _a.isMetaMask) {
|
|
1506
|
-
return jsx(MetaMaskEthersLoader, { children: children }
|
|
1613
|
+
return jsx(MetaMaskEthersLoader, { children: children });
|
|
1507
1614
|
}
|
|
1508
1615
|
if ((_b = global.ethereum) === null || _b === void 0 ? void 0 : _b.isTrust) {
|
|
1509
|
-
return jsx(TrustEthersLoader, { children: children }
|
|
1616
|
+
return jsx(TrustEthersLoader, { children: children });
|
|
1510
1617
|
}
|
|
1511
1618
|
if ((_c = global.ethereum) === null || _c === void 0 ? void 0 : _c.isMew) {
|
|
1512
|
-
return jsx(MyEtherWalletEthersLoader, { children: children }
|
|
1619
|
+
return jsx(MyEtherWalletEthersLoader, { children: children });
|
|
1513
1620
|
}
|
|
1514
1621
|
if (((_d = global.ethereum) === null || _d === void 0 ? void 0 : _d.providerName) === 'opera') {
|
|
1515
|
-
return jsx(OperaEthersLoader, { children: children }
|
|
1622
|
+
return jsx(OperaEthersLoader, { children: children });
|
|
1516
1623
|
}
|
|
1517
1624
|
if (global.ethereum) {
|
|
1518
|
-
return jsx(OperaEthersLoader, { children: children }
|
|
1625
|
+
return jsx(OperaEthersLoader, { children: children });
|
|
1519
1626
|
}
|
|
1520
|
-
return jsx(InfuraEthersLoader, { children: children }
|
|
1627
|
+
return jsx(InfuraEthersLoader, { children: children });
|
|
1521
1628
|
};
|
|
1522
1629
|
|
|
1523
1630
|
const NetworkSettingsContext = createContext({});
|
|
@@ -1529,7 +1636,7 @@ const NetworkSettingsLoader = (props) => {
|
|
|
1529
1636
|
xyFhrMerkleSendAddress: EthAddress.fromString('0x46FEEBDffC8076D9E5fd8a11CF1508810472A79f'),
|
|
1530
1637
|
xyGovernanceAddress: EthAddress.fromString('0x01925d0fFE4a6a6162B51ba611e3D4780Fc2dF42'),
|
|
1531
1638
|
xyStakingConsensusAddress: EthAddress.fromString('0x0242514106114DEaA99Fd81574142c36Edb03B6D'),
|
|
1532
|
-
} }, { children: children })
|
|
1639
|
+
} }, { children: children })));
|
|
1533
1640
|
};
|
|
1534
1641
|
|
|
1535
1642
|
const UserEventsContext = createContext({});
|
|
@@ -1540,8 +1647,8 @@ const DebugUserEventsContext = createContext({
|
|
|
1540
1647
|
},
|
|
1541
1648
|
});
|
|
1542
1649
|
|
|
1543
|
-
const
|
|
1544
|
-
return jsx(UserEventsContext.Provider, Object.assign({ value: { userEvents } }, { children: children })
|
|
1650
|
+
const UserEventsProvider = ({ userEvents, children }) => {
|
|
1651
|
+
return (jsx(UserEventsContext.Provider, Object.assign({ value: { userEvents: userEvents !== null && userEvents !== void 0 ? userEvents : XyoUserEventHandler.get() } }, { children: children })));
|
|
1545
1652
|
};
|
|
1546
1653
|
|
|
1547
1654
|
const calcSpacing = (theme, values) => {
|
|
@@ -1586,7 +1693,7 @@ const ButtonExBase = (props) => {
|
|
|
1586
1693
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
1587
1694
|
}
|
|
1588
1695
|
};
|
|
1589
|
-
return (jsxs(Button, Object.assign({ onClick: localOnClick }, rootProps, { children: [busy && busyVariant === 'linear' ? jsx(BusyLinearProgress, { rounded: true, opacity: busyOpacity !== null && busyOpacity !== void 0 ? busyOpacity : 0 }
|
|
1696
|
+
return (jsxs(Button, Object.assign({ onClick: localOnClick }, rootProps, { children: [busy && busyVariant === 'linear' ? jsx(BusyLinearProgress, { rounded: true, opacity: busyOpacity !== null && busyOpacity !== void 0 ? busyOpacity : 0 }) : null, busy && busyVariant === 'circular' ? (jsx(BusyCircularProgress, { rounded: true, size: 24, opacity: busyOpacity !== null && busyOpacity !== void 0 ? busyOpacity : 0.5 })) : null, children] })));
|
|
1590
1697
|
};
|
|
1591
1698
|
|
|
1592
1699
|
const ButtonExTo = (_a) => {
|
|
@@ -1598,16 +1705,16 @@ const ButtonExTo = (_a) => {
|
|
|
1598
1705
|
navigate(to, toOptions);
|
|
1599
1706
|
}
|
|
1600
1707
|
};
|
|
1601
|
-
return jsx(ButtonExBase, Object.assign({ onClick: localOnClick }, props)
|
|
1708
|
+
return jsx(ButtonExBase, Object.assign({ onClick: localOnClick }, props));
|
|
1602
1709
|
};
|
|
1603
1710
|
|
|
1604
1711
|
const ButtonEx = (_a) => {
|
|
1605
1712
|
var { to } = _a, props = __rest(_a, ["to"]);
|
|
1606
1713
|
if (to) {
|
|
1607
|
-
return jsx(ButtonExTo, Object.assign({ to: to }, props)
|
|
1714
|
+
return jsx(ButtonExTo, Object.assign({ to: to }, props));
|
|
1608
1715
|
}
|
|
1609
1716
|
else {
|
|
1610
|
-
return jsx(ButtonExBase, Object.assign({}, props)
|
|
1717
|
+
return jsx(ButtonExBase, Object.assign({}, props));
|
|
1611
1718
|
}
|
|
1612
1719
|
};
|
|
1613
1720
|
|
|
@@ -1643,22 +1750,22 @@ const CookieConsentBody = (_a) => {
|
|
|
1643
1750
|
}, acceptOnTimer);
|
|
1644
1751
|
}
|
|
1645
1752
|
if (!storageName) {
|
|
1646
|
-
return (jsx(FlexRow, Object.assign({ justifyContent: "center", paddingY: 2 }, props, { children: jsx(Typography, Object.assign({ color: "error", variant: "body1" }, { children: "Missing CookieConsentContext" })
|
|
1753
|
+
return (jsx(FlexRow, Object.assign({ justifyContent: "center", paddingY: 2 }, props, { children: jsx(Typography, Object.assign({ color: "error", variant: "body1" }, { children: "Missing CookieConsentContext" })) })));
|
|
1647
1754
|
}
|
|
1648
|
-
return accepted ? null : (jsxs(FlexRow, Object.assign({ justifyContent: "space-between" }, props, { children: [jsxs(Typography, Object.assign({ variant: "body2", margin: 2 }, { children: ['This site uses ', jsx(Link, Object.assign({ href: "https://cookiesandyou.com/", rel: "noopener noreferrer", target: "_blank" }, { children: "cookies" })
|
|
1755
|
+
return accepted ? null : (jsxs(FlexRow, Object.assign({ justifyContent: "space-between" }, props, { children: [jsxs(Typography, Object.assign({ variant: "body2", margin: 2 }, { children: ['This site uses ', jsx(Link, Object.assign({ href: "https://cookiesandyou.com/", rel: "noopener noreferrer", target: "_blank" }, { children: "cookies" })), ' and ', jsx(Link, Object.assign({ href: "https://policies.google.com/technologies/partner-sites", rel: "noopener noreferrer", target: "_blank" }, { children: "Google\u00A0tools" })), ' to analyze traffic and for ads measurement purposes.'] })), jsx(ButtonEx, Object.assign({ variant: "contained", color: "secondary", onClick: onAcceptClick, margin: 2 }, { children: "Accept" }))] })));
|
|
1649
1756
|
};
|
|
1650
1757
|
|
|
1651
1758
|
const CookieConsent = (props) => {
|
|
1652
1759
|
const { storageName } = useCookieConsent();
|
|
1653
1760
|
const Inner = () => {
|
|
1654
1761
|
const { accepted } = useCookieConsent();
|
|
1655
|
-
return accepted ? null : (jsx(CookieConsentBody, Object.assign({ background: true, paper: true, position: "fixed", bottom: 0, maxWidth: "100vw", width: "100%", zIndex: 1000 }, props)
|
|
1762
|
+
return accepted ? null : (jsx(CookieConsentBody, Object.assign({ background: true, paper: true, position: "fixed", bottom: 0, maxWidth: "100vw", width: "100%", zIndex: 1000 }, props)));
|
|
1656
1763
|
};
|
|
1657
1764
|
//if not inside a context, make a context
|
|
1658
1765
|
if (!storageName) {
|
|
1659
|
-
return (jsx(CookieConsentLoader, { children: jsx(Inner, {}
|
|
1766
|
+
return (jsx(CookieConsentLoader, { children: jsx(Inner, {}) }));
|
|
1660
1767
|
}
|
|
1661
|
-
return jsx(Inner, {}
|
|
1768
|
+
return jsx(Inner, {});
|
|
1662
1769
|
};
|
|
1663
1770
|
|
|
1664
1771
|
const InvertableThemeContext = createContext({
|
|
@@ -1677,7 +1784,9 @@ const resolveThemeColors = (options) => {
|
|
|
1677
1784
|
},
|
|
1678
1785
|
});
|
|
1679
1786
|
};
|
|
1680
|
-
const InvertableThemeProvider = ({ options, children, dark, resolve = false, scoped = false, invert = false, noResponsiveFonts,
|
|
1787
|
+
const InvertableThemeProvider = ({ options, children, dark, resolve = false, scoped = false, invert = false, noResponsiveFonts,
|
|
1788
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
1789
|
+
darkTheme, darkOptions, lightOptions, }) => {
|
|
1681
1790
|
var _a, _b, _c;
|
|
1682
1791
|
const parentContext = useContext(InvertableThemeContext);
|
|
1683
1792
|
const clonedOptions = cloneDeep((_a = options !== null && options !== void 0 ? options : parentContext.options) !== null && _a !== void 0 ? _a : {});
|
|
@@ -1697,9 +1806,9 @@ const InvertableThemeProvider = ({ options, children, dark, resolve = false, sco
|
|
|
1697
1806
|
}
|
|
1698
1807
|
const theme = noResponsiveFonts ? createTheme(themeOptions) : responsiveFontSizes(createTheme(themeOptions));
|
|
1699
1808
|
const Provider = () => {
|
|
1700
|
-
return (jsx(InvertableThemeContext.Provider, Object.assign({ value: { darkOptions: clonedDarkOptions, lightOptions: clonedLightOptions, options: clonedOptions } }, { children: jsx(ThemeProvider, Object.assign({ theme: theme }, { children: children })
|
|
1809
|
+
return (jsx(InvertableThemeContext.Provider, Object.assign({ value: { darkOptions: clonedDarkOptions, lightOptions: clonedLightOptions, options: clonedOptions } }, { children: jsx(ThemeProvider, Object.assign({ theme: theme }, { children: children })) })));
|
|
1701
1810
|
};
|
|
1702
|
-
return scoped ? (jsx(ScopedCssBaseline, { children: jsx(Provider, {}
|
|
1811
|
+
return scoped ? (jsx(ScopedCssBaseline, { children: jsx(Provider, {}) })) : (jsx(Provider, {}));
|
|
1703
1812
|
};
|
|
1704
1813
|
|
|
1705
1814
|
// The point of this component it to return to the top of the page on any router navigate
|
|
@@ -1712,10 +1821,10 @@ const ScrollToTop = () => {
|
|
|
1712
1821
|
};
|
|
1713
1822
|
|
|
1714
1823
|
const BasePage = (_a) => {
|
|
1715
|
-
var { disableGutters, children, beta, container, hideFooter, appFooter, appBar, cookieConsent,
|
|
1824
|
+
var { disableGutters, children, beta, container, hideFooter, appFooter, appBar, cookieConsent, hideAppBar, noindex = false, scrollToTopButton = false, title } = _a, props = __rest(_a, ["disableGutters", "children", "beta", "container", "hideFooter", "appFooter", "appBar", "cookieConsent", "hideAppBar", "noindex", "scrollToTopButton", "title"]);
|
|
1716
1825
|
const theme = useTheme();
|
|
1717
1826
|
const scrollToTopAnchorId = 'scroll-to-top-anchor';
|
|
1718
|
-
return (jsxs(FlexCol, Object.assign({ justifyContent: "flex-start", color: theme.palette.text.primary, alignItems: "stretch", width: "100%", maxWidth: "100vw", minHeight: "100vh" }, props, { children: [jsx(ScrollToTop, {}
|
|
1827
|
+
return (jsxs(FlexCol, Object.assign({ justifyContent: "flex-start", color: theme.palette.text.primary, alignItems: "stretch", width: "100%", maxWidth: "100vw", minHeight: "100vh" }, props, { children: [jsx(ScrollToTop, {}), jsx(Helmet, Object.assign({ title: title }, { children: noindex ? jsx("meta", { content: "noindex", name: "robots" }) : null })), scrollToTopButton ? jsx("div", { id: scrollToTopAnchorId }) : null, hideAppBar ? null : appBar, beta ? (jsx(FlexRow, Object.assign({ margin: 1, position: "absolute", top: 0, left: 0, bgcolor: "#cccccc88", paddingX: 1, style: { opacity: 0.5 } }, { children: jsx(Typography, Object.assign({ variant: "body2" }, { children: "Important: This page is a Beta page. It is possible that some information may not be correct." })) }))) : null, container ? (jsx(Container, Object.assign({ style: { alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1 }, maxWidth: container, disableGutters: disableGutters }, { children: children }))) : (children), hideFooter ? null : jsx("footer", { children: appFooter }), cookieConsent !== null && cookieConsent !== void 0 ? cookieConsent : (jsx(ScopedCssBaseline, { children: jsx(InvertableThemeProvider, Object.assign({ invert: true }, { children: jsx(CookieConsent, { borderRadius: 0 }) })) })), scrollToTopButton ? (jsx(ScrollToTopButton, Object.assign({ anchorId: scrollToTopAnchorId }, { children: jsx(Fab, Object.assign({ "aria-label": "scroll to top", color: "secondary", size: "small" }, { children: jsx(KeyboardArrowUp, {}) })) }))) : null] })));
|
|
1719
1828
|
};
|
|
1720
1829
|
|
|
1721
1830
|
const getPartialPath = (pathParts, index) => {
|
|
@@ -1736,8 +1845,8 @@ const BreadcrumbsEx = (_a) => {
|
|
|
1736
1845
|
assertEx(pathParts.length - 1 === (titles === null || titles === void 0 ? void 0 : titles.length), `Path/Title length mismatch: ${JSON.stringify(titles)} with ${JSON.stringify(pathParts)}`);
|
|
1737
1846
|
return (jsxs(Breadcrumbs, Object.assign({ separator: separator }, props, { children: [pathParts.map((_pathPart, index) => {
|
|
1738
1847
|
const path = getPartialPath(pathParts, index);
|
|
1739
|
-
return (jsx(Link, Object.assign({ title: index > 0 ? titles === null || titles === void 0 ? void 0 : titles[index - 1] : 'COIN', color: index === pathParts.length - 1 ? 'textPrimary' : 'inherit', component: Link$1, to: path }, { children: index > 0 ? (titles === null || titles === void 0 ? void 0 : titles[index - 1]) : (jsx(FlexRow, { children: typeof logo === 'string' ? jsx("img", { src: logo }
|
|
1740
|
-
}), children] })
|
|
1848
|
+
return (jsx(Link, Object.assign({ title: index > 0 ? titles === null || titles === void 0 ? void 0 : titles[index - 1] : 'COIN', color: index === pathParts.length - 1 ? 'textPrimary' : 'inherit', component: Link$1, to: path }, { children: index > 0 ? (titles === null || titles === void 0 ? void 0 : titles[index - 1]) : (jsx(FlexRow, { children: typeof logo === 'string' ? jsx("img", { src: logo }) : logo })) }), path));
|
|
1849
|
+
}), children] })));
|
|
1741
1850
|
};
|
|
1742
1851
|
|
|
1743
1852
|
const toAxiosError = (error) => {
|
|
@@ -1754,12 +1863,12 @@ const ErrorDialogOpen = (_a) => {
|
|
|
1754
1863
|
};
|
|
1755
1864
|
const axiosError = toAxiosError(error);
|
|
1756
1865
|
const message = (_b = error.message) !== null && _b !== void 0 ? _b : error.toString();
|
|
1757
|
-
return (jsxs(Dialog, Object.assign({}, props, { children: [jsx(DialogTitle, { children: title }
|
|
1866
|
+
return (jsxs(Dialog, Object.assign({}, props, { children: [jsx(DialogTitle, { children: title }), jsx(DialogContent, { children: jsx(FlexRow, { children: jsx(Typography, Object.assign({ color: "error" }, { children: axiosError ? `${message} [${(_c = axiosError === null || axiosError === void 0 ? void 0 : axiosError.code) !== null && _c !== void 0 ? _c : 'Connection Failure'}]` : `${message}` })) }) }), jsx(DialogActions, { children: jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%", minWidth: "300px" }, { children: [jsx(ButtonEx, Object.assign({ onClick: onCloseClicked, variant: "text" }, { children: "Close" })), jsx(ButtonEx, Object.assign({ onClick: onRetryClicked, variant: "text" }, { children: "Retry" }))] })) })] })));
|
|
1758
1867
|
};
|
|
1759
1868
|
const ErrorDialog = (_a) => {
|
|
1760
1869
|
var { open, error } = _a, props = __rest(_a, ["open", "error"]);
|
|
1761
1870
|
if (error) {
|
|
1762
|
-
return jsx(ErrorDialogOpen, Object.assign({ open: !!error || open, error: error }, props)
|
|
1871
|
+
return jsx(ErrorDialogOpen, Object.assign({ open: !!error || open, error: error }, props));
|
|
1763
1872
|
}
|
|
1764
1873
|
else {
|
|
1765
1874
|
return null;
|
|
@@ -1768,7 +1877,7 @@ const ErrorDialog = (_a) => {
|
|
|
1768
1877
|
|
|
1769
1878
|
const MessageDialog = (_a) => {
|
|
1770
1879
|
var { onOk, onCancel, children, title } = _a, props = __rest(_a, ["onOk", "onCancel", "children", "title"]);
|
|
1771
|
-
return (jsxs(Dialog, Object.assign({}, props, { children: [jsx(DialogTitle, { children: title }
|
|
1880
|
+
return (jsxs(Dialog, Object.assign({}, props, { children: [jsx(DialogTitle, { children: title }), jsx(DialogContent, { children: jsx(FlexCol, Object.assign({ alignItems: "stretch" }, { children: children })) }), jsx(DialogActions, { children: jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%" }, { children: [jsx(Button, Object.assign({ onClick: onCancel, variant: "text" }, { children: "Cancel" })), jsx(Button, Object.assign({ onClick: onOk, variant: "text" }, { children: "Ok" }))] })) })] })));
|
|
1772
1881
|
};
|
|
1773
1882
|
|
|
1774
1883
|
const useBreakpoint = () => {
|
|
@@ -1908,14 +2017,16 @@ const useUserEvents = () => {
|
|
|
1908
2017
|
let supportsWebP = undefined;
|
|
1909
2018
|
const useWebP = (webp, alt) => {
|
|
1910
2019
|
const [img, setImg] = useState();
|
|
1911
|
-
useAsyncEffect(
|
|
2020
|
+
useAsyncEffect(
|
|
2021
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2022
|
+
(mounted) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1912
2023
|
if (supportsWebP === undefined) {
|
|
1913
2024
|
supportsWebP = yield getSupportsWebP();
|
|
1914
2025
|
}
|
|
1915
2026
|
if (mounted()) {
|
|
1916
2027
|
setImg(supportsWebP ? webp : alt);
|
|
1917
2028
|
}
|
|
1918
|
-
}), [
|
|
2029
|
+
}), [alt, webp]);
|
|
1919
2030
|
return img;
|
|
1920
2031
|
};
|
|
1921
2032
|
const getSupportsWebP = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -1967,12 +2078,12 @@ const EthAccount = (_a) => {
|
|
|
1967
2078
|
? addressToDisplay.toString()
|
|
1968
2079
|
: addressToDisplay.toShortString();
|
|
1969
2080
|
// Note: We use the all zero address for spacing in case it is
|
|
1970
|
-
return (jsx(ButtonEx, Object.assign({ onClick: onClickLocal, title: `0x${address === null || address === void 0 ? void 0 : address.toHex()}` }, props, { children: jsxs(FlexGrowRow, Object.assign({ justifyContent: "space-between", alignItems: "center" }, { children: [icon && address ? jsx(Identicon, { size: iconSize, value: address === null || address === void 0 ? void 0 : address.toHex() }
|
|
2081
|
+
return (jsx(ButtonEx, Object.assign({ onClick: onClickLocal, title: `0x${address === null || address === void 0 ? void 0 : address.toHex()}` }, props, { children: jsxs(FlexGrowRow, Object.assign({ justifyContent: "space-between", alignItems: "center" }, { children: [icon && address ? jsx(Identicon, { size: iconSize, value: address === null || address === void 0 ? void 0 : address.toHex() }) : null, iconOnly ? null : (jsxs(FlexRow, { children: [jsx(Typography, Object.assign({ marginLeft: icon ? 1 : 0, variant: "body1", fontFamily: fontFamily, visibility: address ? 'inherit' : 'hidden' }, { children: testToDisplay })), address ? null : (jsx(Typography, Object.assign({ position: "absolute", marginLeft: icon ? 1 : 0, variant: "body1", fontFamily: fontFamily }, { children: "-- --" })))] })), isLocalAddress ? jsx(FlexRow, Object.assign({ marginLeft: 0.5 }, { children: "(You)" })) : null] })) })));
|
|
1971
2082
|
};
|
|
1972
2083
|
|
|
1973
2084
|
const Experiment = (props) => {
|
|
1974
2085
|
const { children } = props;
|
|
1975
|
-
return jsx(Fragment, { children: children }
|
|
2086
|
+
return jsx(Fragment, { children: children });
|
|
1976
2087
|
};
|
|
1977
2088
|
|
|
1978
2089
|
const OutcomesLocalStorageKey = 'outcomes';
|
|
@@ -2073,7 +2184,7 @@ const ExperimentsDebugger = (_a) => {
|
|
|
2073
2184
|
const sumUpVariants = (items) => items.reduce((acc, curr) => acc + curr.weight, 0);
|
|
2074
2185
|
const experimentEntries = Object.entries(experiments);
|
|
2075
2186
|
if (!experiments || !experimentEntries.length) {
|
|
2076
|
-
return (jsxs(FlexCol, Object.assign({ alignItems: "stretch" }, props, { children: [jsx(Typography, Object.assign({ variant: "subtitle1" }, { children: "No Experiments loaded" })
|
|
2187
|
+
return (jsxs(FlexCol, Object.assign({ alignItems: "stretch" }, props, { children: [jsx(Typography, Object.assign({ variant: "subtitle1" }, { children: "No Experiments loaded" })), jsx(Typography, Object.assign({ variant: "subtitle2" }, { children: "Visit a page with an experiment to load the data" }))] })));
|
|
2077
2188
|
}
|
|
2078
2189
|
return (jsx(FlexCol, Object.assign({ alignItems: "stretch" }, props, { children: Object.entries(experiments).map((data) => {
|
|
2079
2190
|
const [name, experiment] = data;
|
|
@@ -2085,22 +2196,22 @@ const ExperimentsDebugger = (_a) => {
|
|
|
2085
2196
|
value: index === 0 ? weight : sumUpVariants(experiment.variants.slice(0, index + 1)),
|
|
2086
2197
|
})),
|
|
2087
2198
|
];
|
|
2088
|
-
return (jsxs(FlexCol, Object.assign({ alignItems: "stretch", paddingX: 4, marginBottom: 4 }, props, { children: [jsxs(FlexRow, { children: [name, ":\u00A0", outcome] }
|
|
2199
|
+
return (jsxs(FlexCol, Object.assign({ alignItems: "stretch", paddingX: 4, marginBottom: 4 }, props, { children: [jsxs(FlexRow, { children: [name, ":\u00A0", outcome] }), jsx(FlexRow, { children: jsx(Slider, { "aria-label": `Experiment ${name}`, defaultValue: outcome, value: outcome, marks: marks, onChange: (e, value) => {
|
|
2089
2200
|
const truncated = Number((Array.isArray(value) ? value[0] : value).toFixed(2));
|
|
2090
2201
|
outcomes[name] = truncated;
|
|
2091
2202
|
// Spread operator triggers rerender
|
|
2092
2203
|
setOutcomes(Object.assign({}, outcomes));
|
|
2093
|
-
} }
|
|
2094
|
-
}) })
|
|
2204
|
+
} }) })] }), `experiment-${name}`));
|
|
2205
|
+
}) })));
|
|
2095
2206
|
};
|
|
2096
2207
|
|
|
2097
2208
|
const LinkEx = (_a) => {
|
|
2098
2209
|
var { to } = _a, props = __rest(_a, ["to"]);
|
|
2099
2210
|
if (to) {
|
|
2100
|
-
return jsx(Link, Object.assign({ component: Link$1, to: to }, props)
|
|
2211
|
+
return jsx(Link, Object.assign({ component: Link$1, to: to }, props));
|
|
2101
2212
|
}
|
|
2102
2213
|
else {
|
|
2103
|
-
return jsx(Link, Object.assign({}, props)
|
|
2214
|
+
return jsx(Link, Object.assign({}, props));
|
|
2104
2215
|
}
|
|
2105
2216
|
};
|
|
2106
2217
|
/** @deprecated use LinkEx instead */
|
|
@@ -2110,7 +2221,7 @@ const MenuEx = (_a) => {
|
|
|
2110
2221
|
var { MenuListProps = {}, mode = 'light', colorize } = _a, props = __rest(_a, ["MenuListProps", "mode", "colorize"]);
|
|
2111
2222
|
const theme = useTheme();
|
|
2112
2223
|
const colorizeMenuListProps = colorize ? { sx: { backgroundColor: theme.palette[colorize][mode] } } : {};
|
|
2113
|
-
return jsx(Menu, Object.assign({ MenuListProps: merge(MenuListProps, colorizeMenuListProps) }, props)
|
|
2224
|
+
return jsx(Menu, Object.assign({ MenuListProps: merge(MenuListProps, colorizeMenuListProps) }, props));
|
|
2114
2225
|
};
|
|
2115
2226
|
|
|
2116
2227
|
const NumberStatus = (_a) => {
|
|
@@ -2122,7 +2233,7 @@ const NumberStatus = (_a) => {
|
|
|
2122
2233
|
const bgColorBottom = (_c = palette === null || palette === void 0 ? void 0 : palette.main) !== null && _c !== void 0 ? _c : theme.palette.background.default;
|
|
2123
2234
|
const sizePixels = size === 'large' ? 96 : size === 'small' ? 64 : 80;
|
|
2124
2235
|
const calcFontSize = fontSize !== null && fontSize !== void 0 ? fontSize : sizePixels * 0.2;
|
|
2125
|
-
return (jsx(ButtonEx, Object.assign({ size: size, padding: 0, style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0, overflow: rounded ? 'hidden' : undefined }, style) }, props, { children: jsxs(FlexCol, Object.assign({ alignItems: "stretch", height: sizePixels, width: autoWidth ? '100%' : sizePixels, busy: value === undefined && !error }, { children: [jsx(FlexGrowRow, Object.assign({ bgcolor: bgColorTop, color: theme.palette.getContrastText(bgColorTop), fontSize: calcFontSize, fontFamily: "Source Code Pro,monospace", alignItems: "center", height: sizePixels * 0.75 }, { children: numeral(value).format(format) })
|
|
2236
|
+
return (jsx(ButtonEx, Object.assign({ size: size, padding: 0, style: Object.assign({ borderRadius: rounded ? theme.shape.borderRadius : 0, overflow: rounded ? 'hidden' : undefined }, style) }, props, { children: jsxs(FlexCol, Object.assign({ alignItems: "stretch", height: sizePixels, width: autoWidth ? '100%' : sizePixels, busy: value === undefined && !error }, { children: [jsx(FlexGrowRow, Object.assign({ bgcolor: bgColorTop, color: theme.palette.getContrastText(bgColorTop), fontSize: calcFontSize, fontFamily: "Source Code Pro,monospace", alignItems: "center", height: sizePixels * 0.75 }, { children: numeral(value).format(format) })), jsx(FlexGrowRow, Object.assign({ bgcolor: bgColorBottom, borderTop: "1px", color: theme.palette.getContrastText(bgColorBottom), fontSize: sizePixels * 0.12, fontFamily: theme.typography.fontFamily, height: sizePixels * 0.25 }, { children: title }))] })) })));
|
|
2126
2237
|
};
|
|
2127
2238
|
|
|
2128
2239
|
const Portal = ({ children, className, el = 'div', target = 'body' }) => {
|
|
@@ -2182,35 +2293,35 @@ const PixelDebugger = () => {
|
|
|
2182
2293
|
backgroundColor: 'rgba(18, 18, 18, .70)',
|
|
2183
2294
|
overflowY: 'auto',
|
|
2184
2295
|
width: '100%',
|
|
2185
|
-
}, color: theme.palette.primary.main }, { children: jsxs(FlexCol, Object.assign({ alignItems: "stretch", sx: { flexFlow: 'column', maxHeight: 400 } }, { children: [jsx(FlexCol, Object.assign({ alignItems: "stretch", sx: { flex: '0 1 auto' } }, { children: jsx(ButtonEx, Object.assign({ variant: "text", onClick: () => setDisplayEvents(!displayEvents) }, { children: "XY Pixel Debugger" })
|
|
2296
|
+
}, color: theme.palette.primary.main }, { children: jsxs(FlexCol, Object.assign({ alignItems: "stretch", sx: { flexFlow: 'column', maxHeight: 400 } }, { children: [jsx(FlexCol, Object.assign({ alignItems: "stretch", sx: { flex: '0 1 auto' } }, { children: jsx(ButtonEx, Object.assign({ variant: "text", onClick: () => setDisplayEvents(!displayEvents) }, { children: "XY Pixel Debugger" })) })), displayEvents && !!events.length && (jsx(FlexCol, Object.assign({ alignItems: "stretch", alignContent: "start", padding: 2, sx: { cursor: 'pointer', flex: '1 1 auto', overflowY: 'auto', userSelect: 'none' } }, { children: events.map((e, index) => (jsx(PixelEventDetails, Object.assign({ events: events, index: index }, e), `${e.event}-${index}`))) }))), displayEvents && !events.length && jsx(Typography, Object.assign({ variant: "subtitle2" }, { children: "No Events" }))] })) })) })) })) }));
|
|
2186
2297
|
};
|
|
2187
2298
|
const PixelEventDetails = ({ event, fields, index, events, }) => {
|
|
2188
2299
|
const [isOpen, setIsOpen] = useState(false);
|
|
2189
|
-
return (jsxs(FlexCol, Object.assign({ alignItems: "stretch", marginBottom: 0.5, onClick: () => setIsOpen(!isOpen) }, { children: [jsx(Typography, Object.assign({ variant: "subtitle2" }, { children: event })
|
|
2300
|
+
return (jsxs(FlexCol, Object.assign({ alignItems: "stretch", marginBottom: 0.5, onClick: () => setIsOpen(!isOpen) }, { children: [jsx(Typography, Object.assign({ variant: "subtitle2" }, { children: event })), isOpen && (jsx(Typography, Object.assign({ marginBottom: 0.5, variant: "caption" }, { children: JSON.stringify(fields, null, 2) }))), events[index + 1] && jsx(Divider, {})] })));
|
|
2190
2301
|
};
|
|
2191
2302
|
|
|
2192
2303
|
const PixelDebuggerProvider = ({ children }) => {
|
|
2193
2304
|
const [isDebugging, setIsDebugging] = useLocalStorage('isDebuggingPixel', false);
|
|
2194
|
-
return (jsx(DebugUserEventsContext.Provider, Object.assign({ value: { isDebugging, setIsDebugging } }, { children: children })
|
|
2305
|
+
return (jsx(DebugUserEventsContext.Provider, Object.assign({ value: { isDebugging, setIsDebugging } }, { children: children })));
|
|
2195
2306
|
};
|
|
2196
2307
|
|
|
2197
2308
|
const PixelDebuggerToggle = (_a) => {
|
|
2198
2309
|
var props = __rest(_a, []);
|
|
2199
2310
|
const { setIsDebugging, isDebugging } = useContext(DebugUserEventsContext);
|
|
2200
|
-
return (jsx(FlexRow, Object.assign({}, props, { children: jsxs(FormControl, { children: [jsx(FormLabel, { children: "Enable Debugger" }
|
|
2311
|
+
return (jsx(FlexRow, Object.assign({}, props, { children: jsxs(FormControl, { children: [jsx(FormLabel, { children: "Enable Debugger" }), jsx(Switch, { checked: isDebugging, onClick: () => setIsDebugging(!isDebugging) })] }) })));
|
|
2201
2312
|
};
|
|
2202
2313
|
|
|
2203
2314
|
const QuickTipButton = (_a) => {
|
|
2204
2315
|
var { title, children } = _a, props = __rest(_a, ["title", "children"]);
|
|
2205
2316
|
const [messageOpen, setMessageOpen] = useState(false);
|
|
2206
|
-
return (jsxs(Fragment, { children: [jsx(IconButton, Object.assign({ onClick: () => setMessageOpen(true), size: "small" }, props, { children: jsx(AiOutlineQuestionCircle, { size: 16 }
|
|
2317
|
+
return (jsxs(Fragment, { children: [jsx(IconButton, Object.assign({ onClick: () => setMessageOpen(true), size: "small" }, props, { children: jsx(AiOutlineQuestionCircle, { size: 16 }) })), jsx(MessageDialog, Object.assign({ onOk: () => setMessageOpen(false), onCancel: () => setMessageOpen(false), onClose: () => setMessageOpen(false), open: messageOpen, title: title !== null && title !== void 0 ? title : '' }, { children: children }))] }));
|
|
2207
2318
|
};
|
|
2208
2319
|
|
|
2209
2320
|
const RichResult = (props) => {
|
|
2210
2321
|
const { thing } = props;
|
|
2211
2322
|
const thingWithContext = thing;
|
|
2212
2323
|
thingWithContext['@context'] = 'https://schema.org';
|
|
2213
|
-
return jsx("script", Object.assign({ type: "application/ld+json" }, { children: JSON.stringify(thingWithContext) })
|
|
2324
|
+
return jsx("script", Object.assign({ type: "application/ld+json" }, { children: JSON.stringify(thingWithContext) }));
|
|
2214
2325
|
};
|
|
2215
2326
|
|
|
2216
2327
|
var ActionStatusType;
|
|
@@ -2263,7 +2374,7 @@ const SelectEx = (_a) => {
|
|
|
2263
2374
|
const colorizeMenuProps = colorize
|
|
2264
2375
|
? { MenuListProps: { sx: { backgroundColor: theme.palette[colorize][mode] } } }
|
|
2265
2376
|
: {};
|
|
2266
|
-
return jsx(Select, Object.assign({ MenuProps: merge(MenuProps, colorizeMenuProps) }, props)
|
|
2377
|
+
return jsx(Select, Object.assign({ MenuProps: merge(MenuProps, colorizeMenuProps) }, props));
|
|
2267
2378
|
};
|
|
2268
2379
|
|
|
2269
2380
|
var img = "data:image/svg+xml,%3csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 238'%3e%3cdefs%3e%3cstyle%3e.cls-1%7bfill:%23999%3b%7d%3c/style%3e%3c/defs%3e%3ctitle%3eicon_gray%3c/title%3e%3cpath class='cls-1' d='M74.5%2c28.33%2c21.29%2c120.5%2c74.5%2c212.67H180.94l1.76-3%2c51.46-89.13L180.94%2c28.33ZM84.65%2c40.54h78.83L111.65%2c56.93a15.85%2c15.85%2c0%2c0%2c1%2c2%2c5l59.66-18.81L185.22%2c101a20.12%2c20.12%2c0%2c0%2c1%2c5.36-.78l-10-47.91%2c37.87%2c65.53h-7.62a24.21%2c24.21%2c0%2c0%2c1%2c.15%2c2.68%2c23.29%2c23.29%2c0%2c0%2c1-.15%2c2.68h7.62l-39.1%2c67.75%2c10.92-50.13A20.57%2c20.57%2c0%2c0%2c1%2c185%2c140l-12.88%2c59-58.37-19.53a17.61%2c17.61%2c0%2c0%2c1-1.7%2c5l47.5%2c15.92H84.65l4-6.85A20.17%2c20.17%2c0%2c0%2c1%2c83.93%2c191L80%2c197.78%2c42.67%2c133.13l37%2c32.66a20.52%2c20.52%2c0%2c0%2c1%2c3.6-4L36.69%2c120.66%2c85%2c77.79a17.45%2c17.45%2c0%2c0%2c1-3.19-4.32l-39.46%2c35L80%2c43.22l5.56%2c9.69A17.51%2c17.51%2c0%2c0%2c1%2c90.12%2c50Zm28.24%2c31.17a16.15%2c16.15%2c0%2c0%2c1-2.68%2c4.64l62%2c35.81a19.74%2c19.74%2c0%2c0%2c1%2c2.83-4.54Zm-20%2c10.51v75.33a18%2c18%2c0%2c0%2c1%2c2.47-.16%2c17.18%2c17.18%2c0%2c0%2c1%2c2.89.21v-75a11.21%2c11.21%2c0%2c0%2c1-1.29%2c0%2c17.57%2c17.57%2c0%2c0%2c1-4.07-.47Zm79.34%2c46.63-62.08%2c35.81a18.45%2c18.45%2c0%2c0%2c1%2c2.68%2c4.68l62.23-36a19.68%2c19.68%2c0%2c0%2c1-2.83-4.53Z'/%3e%3cpath class='cls-1' d='M97%2c48.58a17.06%2c17.06%2c0%2c1%2c0%2c17%2c17%2c17.08%2c17.08%2c0%2c0%2c0-17-17Zm0%2c5.36a11.7%2c11.7%2c0%2c1%2c1-11.7%2c11.69A11.65%2c11.65%2c0%2c0%2c1%2c97%2c53.94Z'/%3e%3cpath class='cls-1' d='M95.37%2c157.39a18.73%2c18.73%2c0%2c1%2c0%2c18.7%2c18.7%2c18.74%2c18.74%2c0%2c0%2c0-18.7-18.7Zm0%2c5.31A13.4%2c13.4%2c0%2c1%2c1%2c82%2c176.09a13.37%2c13.37%2c0%2c0%2c1%2c13.4-13.39Z'/%3e%3cpath class='cls-1' d='M190.73%2c100.2A20.3%2c20.3%2c0%2c1%2c0%2c211%2c120.5a20.34%2c20.34%2c0%2c0%2c0-20.3-20.3Zm0%2c5.36a14.94%2c14.94%2c0%2c1%2c1-14.94%2c14.94%2c14.88%2c14.88%2c0%2c0%2c1%2c14.94-14.94Z'/%3e%3c/svg%3e";
|
|
@@ -2281,8 +2392,8 @@ const TokenAmount = (_a) => {
|
|
|
2281
2392
|
var { textFontFamily = '"Source Code Pro",monospace', textColor, statusColor, style, amount, places = -18, logo, label, onButtonClick } = _a, props = __rest(_a, ["textFontFamily", "textColor", "statusColor", "style", "amount", "places", "logo", "label", "onButtonClick"]);
|
|
2282
2393
|
const adjustedAmount = amount ? base10Shift(amount, places).toNumber() : undefined;
|
|
2283
2394
|
const amountString = adjustedAmount ? Math.trunc(adjustedAmount).toLocaleString() : '-';
|
|
2284
|
-
return (jsx(ButtonEx, Object.assign({ style: Object.assign({ backgroundColor: statusColor }, style), variant: "outlined", onClick: onButtonClick }, props, { children: jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%", busy: amount === undefined, busySize: 16 }, { children: [jsxs(FlexRow, { children: [logo ? jsx("img", { src: img, height: 24 }
|
|
2395
|
+
return (jsx(ButtonEx, Object.assign({ style: Object.assign({ backgroundColor: statusColor }, style), variant: "outlined", onClick: onButtonClick }, props, { children: jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%", busy: amount === undefined, busySize: 16 }, { children: [jsxs(FlexRow, { children: [logo ? jsx("img", { src: img, height: 24 }) : null, label ? (jsx(Typography, Object.assign({ marginRight: 1, marginLeft: logo ? 1 : 0, noWrap: true, fontFamily: textFontFamily, variant: "caption" }, { children: label }))) : null] }), jsx(Typography, Object.assign({ color: textColor, noWrap: true, fontFamily: textFontFamily, variant: "body1", style: { textTransform: 'none' } }, { children: amountString }))] })) })));
|
|
2285
2396
|
};
|
|
2286
2397
|
|
|
2287
|
-
export { ActionStatusType, AppBarEx, Background, BasePage, BreadcrumbsEx, BusyBox, ButtonEx, ContactPointOption, CookieConsent, CookieConsentBody, CookieConsentContext, CookieConsentLoader, CoverProgress, DebugUserEventsContext, DripCustomEvent, DripStandardEvents, ErrorDialog, EthAccount, EthersContext, EthersLoader, Experiment, Experiments, ExperimentsDebugger, FacebookCustomEvent, FacebookStandardEvents, Fbq, FlexCol, FlexGrowCol, FlexGrowRow, FlexRow, GoogleBaseEvent, GoogleCustomEvent, GoogleStandardEvents, GoogleUserEventHandler, Gtag, Gtm, HoverScale, Identicon, InvertableThemeProvider, ItemAvailability, LinkEx, LinkToEx, MapCategoryType, MenuEx, MessageDialog, NetworkSettingsContext, NetworkSettingsLoader, NumberStatus, PixelDebugger, PixelDebuggerProvider, PixelDebuggerToggle, Portal, QuickTipButton, Rdt, RedditCustomEvent, RedditStandardEvents, RedirectWithQuery, Referrer, RichResult, ScrollToTop, ScrollToTopButton, SelectEx, SnapTr, SnapchatStandardEvents, TiktokCustomEvent, TiktokStandardEvents, TokenAmount, Ttq, UserEventsContext,
|
|
2398
|
+
export { ActionStatusType, AppBarEx, Background, BasePage, BreadcrumbsEx, BusyBox, ButtonEx, ContactPointOption, CookieConsent, CookieConsentBody, CookieConsentContext, CookieConsentLoader, CoverProgress, DebugUserEventsContext, DripCustomEvent, DripStandardEvents, EF, ErrorDialog, EthAccount, EthersContext, EthersLoader, Experiment, Experiments, ExperimentsDebugger, FacebookCustomEvent, FacebookStandardEvents, FacebookUserEventHandler, Fbq, FlexCol, FlexGrowCol, FlexGrowRow, FlexRow, GoogleBaseEvent, GoogleCustomEvent, GoogleStandardEvents, GoogleUserEventHandler, Gtag, Gtm, HoverScale, Identicon, InvertableThemeProvider, ItemAvailability, LinkEx, LinkToEx, MapCategoryType, MenuEx, MessageDialog, NetworkSettingsContext, NetworkSettingsLoader, NumberStatus, PixelDebugger, PixelDebuggerProvider, PixelDebuggerToggle, Portal, QuickTipButton, Rdt, RedditCustomEvent, RedditStandardEvents, RedirectWithQuery, Referrer, RichResult, ScrollToTop, ScrollToTopButton, SelectEx, SnapTr, SnapchatStandardEvents, TapjoyStandardEvent, TapjoyStandardEvents, TiktokCustomEvent, TiktokStandardEvents, TokenAmount, Ttq, UserEventsContext, UserEventsProvider, XyBaseEvent, XyCustomEvent, XyUserEventHandler, XyoUserEventHandler, enableProfileLogging, getApiStage, getLocalStorageObject, getSessionStorageObject, isLocalhost, profileBlock, profileResults, resolveThemeColors, setLocalStorageObject, setSessionStorageObject, useAsyncEffect, useBreakpoint, useCookieConsent, useInterval, useLocalStorage, useMounted, useNavigateToEthAddress, useSpacing, useTimeout, useUserEvents, useWebP, useWindowSize };
|
|
2288
2399
|
//# sourceMappingURL=index.js.map
|