@xylabs/sdk-react 2.9.34 → 2.10.1
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/components/EthAccount/EthAccount.stories.d.ts +3 -1
- package/dist/cjs5/components/EthAccount/EthAccountProps.d.ts +1 -0
- 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 +111 -76
- package/dist/cjs5/index.js.map +1 -1
- package/dist/cjs5/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/cjs5/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/components/Background.js +1 -0
- 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 +2 -3
- package/dist/components/BasePage/BasePage.stories.js.map +1 -1
- package/dist/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/components/EthAccount/EthAccount.js +2 -2
- package/dist/components/EthAccount/EthAccount.js.map +1 -1
- package/dist/components/EthAccount/EthAccount.stories.d.ts +3 -1
- package/dist/components/EthAccount/EthAccount.stories.js +18 -1
- package/dist/components/EthAccount/EthAccount.stories.js.map +1 -1
- package/dist/components/EthAccount/EthAccountProps.d.ts +1 -0
- package/dist/components/InvertableThemeProvider/InvertableThemeProvider.js +3 -1
- package/dist/components/InvertableThemeProvider/InvertableThemeProvider.js.map +1 -1
- package/dist/components/LinkEx/LinkToEx.js +1 -0
- package/dist/components/LinkEx/LinkToEx.js.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.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/components/EthAccount/EthAccount.stories.d.ts +3 -1
- package/dist/esm2015/components/EthAccount/EthAccountProps.d.ts +1 -0
- 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 +111 -77
- package/dist/esm2015/index.js.map +1 -1
- package/dist/esm2015/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/esm2015/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/esm2017/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/esm2017/components/EthAccount/EthAccount.stories.d.ts +3 -1
- package/dist/esm2017/components/EthAccount/EthAccountProps.d.ts +1 -0
- 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 +111 -77
- package/dist/esm2017/index.js.map +1 -1
- package/dist/esm2017/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/esm2017/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/esm5/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/esm5/components/EthAccount/EthAccount.stories.d.ts +3 -1
- package/dist/esm5/components/EthAccount/EthAccountProps.d.ts +1 -0
- 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 +111 -77
- package/dist/esm5/index.js.map +1 -1
- package/dist/esm5/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/esm5/lib/Tracking/XyoUserEventHandler.d.ts +3 -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/XyoUserEventHandler.d.ts +3 -1
- package/dist/lib/Tracking/XyoUserEventHandler.js +8 -1
- package/dist/lib/Tracking/XyoUserEventHandler.js.map +1 -1
- package/dist/node/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/node/components/EthAccount/EthAccount.stories.d.ts +3 -1
- package/dist/node/components/EthAccount/EthAccountProps.d.ts +1 -0
- 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 +111 -76
- package/dist/node/index.js.map +1 -1
- package/dist/node/lib/Tracking/Facebook/index.d.ts +1 -0
- package/dist/node/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
- package/dist/node-esm/components/BasePage/BasePageProps.d.ts +0 -2
- package/dist/node-esm/components/EthAccount/EthAccount.stories.d.ts +3 -1
- package/dist/node-esm/components/EthAccount/EthAccountProps.d.ts +1 -0
- 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 +111 -77
- 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/XyoUserEventHandler.d.ts +3 -1
- package/package.json +10 -7
- package/src/components/Background.tsx +1 -0
- package/src/components/BasePage/BasePage.stories.tsx +6 -3
- package/src/components/BasePage/BasePage.tsx +0 -3
- package/src/components/BasePage/BasePageProps.ts +0 -2
- package/src/components/EthAccount/EthAccount.stories.tsx +20 -1
- package/src/components/EthAccount/EthAccount.tsx +2 -1
- package/src/components/EthAccount/EthAccountProps.tsx +1 -0
- 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/UserEvents/Provider.tsx +17 -0
- package/src/contexts/UserEvents/index.ts +1 -1
- package/src/lib/Tracking/Facebook/index.ts +1 -0
- package/src/lib/Tracking/XyoUserEventHandler.ts +11 -2
- 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/esm5/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';
|
|
@@ -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 {
|
|
@@ -1540,8 +1572,8 @@ const DebugUserEventsContext = createContext({
|
|
|
1540
1572
|
},
|
|
1541
1573
|
});
|
|
1542
1574
|
|
|
1543
|
-
const
|
|
1544
|
-
return jsx(UserEventsContext.Provider, Object.assign({ value: { userEvents } }, { children: children }), void 0);
|
|
1575
|
+
const UserEventsProvider = ({ userEvents, children }) => {
|
|
1576
|
+
return (jsx(UserEventsContext.Provider, Object.assign({ value: { userEvents: userEvents !== null && userEvents !== void 0 ? userEvents : XyoUserEventHandler.get() } }, { children: children }), void 0));
|
|
1545
1577
|
};
|
|
1546
1578
|
|
|
1547
1579
|
const calcSpacing = (theme, values) => {
|
|
@@ -1677,7 +1709,9 @@ const resolveThemeColors = (options) => {
|
|
|
1677
1709
|
},
|
|
1678
1710
|
});
|
|
1679
1711
|
};
|
|
1680
|
-
const InvertableThemeProvider = ({ options, children, dark, resolve = false, scoped = false, invert = false, noResponsiveFonts,
|
|
1712
|
+
const InvertableThemeProvider = ({ options, children, dark, resolve = false, scoped = false, invert = false, noResponsiveFonts,
|
|
1713
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
1714
|
+
darkTheme, darkOptions, lightOptions, }) => {
|
|
1681
1715
|
var _a, _b, _c;
|
|
1682
1716
|
const parentContext = useContext(InvertableThemeContext);
|
|
1683
1717
|
const clonedOptions = cloneDeep((_a = options !== null && options !== void 0 ? options : parentContext.options) !== null && _a !== void 0 ? _a : {});
|
|
@@ -1712,10 +1746,10 @@ const ScrollToTop = () => {
|
|
|
1712
1746
|
};
|
|
1713
1747
|
|
|
1714
1748
|
const BasePage = (_a) => {
|
|
1715
|
-
var { disableGutters, children, beta, container, hideFooter, appFooter, appBar, cookieConsent,
|
|
1749
|
+
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
1750
|
const theme = useTheme();
|
|
1717
1751
|
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, {}, void 0), jsx(Helmet, Object.assign({ title: title }, { children: noindex ? jsx("meta", { content: "noindex", name: "robots" }, void 0) : null }), void 0), scrollToTopButton ? jsx("div", { id: scrollToTopAnchorId }, void 0) : null, hideAppBar ? null : appBar,
|
|
1752
|
+
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, {}, void 0), jsx(Helmet, Object.assign({ title: title }, { children: noindex ? jsx("meta", { content: "noindex", name: "robots" }, void 0) : null }), void 0), scrollToTopButton ? jsx("div", { id: scrollToTopAnchorId }, void 0) : 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." }), void 0) }), void 0)) : null, container ? (jsx(Container, Object.assign({ style: { alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1 }, maxWidth: container, disableGutters: disableGutters }, { children: children }), void 0)) : (children), hideFooter ? null : jsx("footer", { children: appFooter }, void 0), cookieConsent !== null && cookieConsent !== void 0 ? cookieConsent : (jsx(ScopedCssBaseline, { children: jsx(InvertableThemeProvider, Object.assign({ invert: true }, { children: jsx(CookieConsent, { borderRadius: 0 }, void 0) }), void 0) }, void 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, {}, void 0) }), void 0) }), void 0)) : null] }), void 0));
|
|
1719
1753
|
};
|
|
1720
1754
|
|
|
1721
1755
|
const getPartialPath = (pathParts, index) => {
|
|
@@ -1947,7 +1981,7 @@ function useWindowSize() {
|
|
|
1947
1981
|
}
|
|
1948
1982
|
|
|
1949
1983
|
const EthAccount = (_a) => {
|
|
1950
|
-
var { address, icon = false, iconSize = 16, iconOnly = false, addressLength = 'auto', fontFamily = '"Source Code Pro",monospace', toEtherScan, onButtonClick } = _a, props = __rest(_a, ["address", "icon", "iconSize", "iconOnly", "addressLength", "fontFamily", "toEtherScan", "onButtonClick"]);
|
|
1984
|
+
var { address, icon = false, iconSize = 16, iconOnly = false, shortenedLength, addressLength = 'auto', fontFamily = '"Source Code Pro",monospace', toEtherScan, onButtonClick } = _a, props = __rest(_a, ["address", "icon", "iconSize", "iconOnly", "shortenedLength", "addressLength", "fontFamily", "toEtherScan", "onButtonClick"]);
|
|
1951
1985
|
const { localAddress } = useContext(EthersContext);
|
|
1952
1986
|
const theme = useTheme();
|
|
1953
1987
|
const large = useMediaQuery(theme.breakpoints.up('md'));
|
|
@@ -1962,7 +1996,7 @@ const EthAccount = (_a) => {
|
|
|
1962
1996
|
const testToDisplay = addressLength === 'long'
|
|
1963
1997
|
? addressToDisplay.toString()
|
|
1964
1998
|
: addressLength === 'short'
|
|
1965
|
-
? addressToDisplay.toShortString()
|
|
1999
|
+
? addressToDisplay.toShortString(shortenedLength)
|
|
1966
2000
|
: large
|
|
1967
2001
|
? addressToDisplay.toString()
|
|
1968
2002
|
: addressToDisplay.toShortString();
|
|
@@ -2284,5 +2318,5 @@ const TokenAmount = (_a) => {
|
|
|
2284
2318
|
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 }, void 0) : null, label ? (jsx(Typography, Object.assign({ marginRight: 1, marginLeft: logo ? 1 : 0, noWrap: true, fontFamily: textFontFamily, variant: "caption" }, { children: label }), void 0)) : null] }, void 0), jsx(Typography, Object.assign({ color: textColor, noWrap: true, fontFamily: textFontFamily, variant: "body1", style: { textTransform: 'none' } }, { children: amountString }), void 0)] }), void 0) }), void 0));
|
|
2285
2319
|
};
|
|
2286
2320
|
|
|
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,
|
|
2321
|
+
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, 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, 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
2322
|
//# sourceMappingURL=index.js.map
|