@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.
Files changed (106) hide show
  1. package/dist/cjs5/components/BasePage/BasePageProps.d.ts +0 -2
  2. package/dist/cjs5/components/EthAccount/EthAccount.stories.d.ts +3 -1
  3. package/dist/cjs5/components/EthAccount/EthAccountProps.d.ts +1 -0
  4. package/dist/cjs5/contexts/UserEvents/{Loader.d.ts → Provider.d.ts} +1 -1
  5. package/dist/cjs5/contexts/UserEvents/index.d.ts +1 -1
  6. package/dist/cjs5/index.js +111 -76
  7. package/dist/cjs5/index.js.map +1 -1
  8. package/dist/cjs5/lib/Tracking/Facebook/index.d.ts +1 -0
  9. package/dist/cjs5/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
  10. package/dist/components/Background.js +1 -0
  11. package/dist/components/Background.js.map +1 -1
  12. package/dist/components/BasePage/BasePage.js +2 -2
  13. package/dist/components/BasePage/BasePage.js.map +1 -1
  14. package/dist/components/BasePage/BasePage.stories.js +2 -3
  15. package/dist/components/BasePage/BasePage.stories.js.map +1 -1
  16. package/dist/components/BasePage/BasePageProps.d.ts +0 -2
  17. package/dist/components/EthAccount/EthAccount.js +2 -2
  18. package/dist/components/EthAccount/EthAccount.js.map +1 -1
  19. package/dist/components/EthAccount/EthAccount.stories.d.ts +3 -1
  20. package/dist/components/EthAccount/EthAccount.stories.js +18 -1
  21. package/dist/components/EthAccount/EthAccount.stories.js.map +1 -1
  22. package/dist/components/EthAccount/EthAccountProps.d.ts +1 -0
  23. package/dist/components/InvertableThemeProvider/InvertableThemeProvider.js +3 -1
  24. package/dist/components/InvertableThemeProvider/InvertableThemeProvider.js.map +1 -1
  25. package/dist/components/LinkEx/LinkToEx.js +1 -0
  26. package/dist/components/LinkEx/LinkToEx.js.map +1 -1
  27. package/dist/components/index.js +1 -0
  28. package/dist/components/index.js.map +1 -1
  29. package/dist/contexts/UserEvents/{Loader.d.ts → Provider.d.ts} +1 -1
  30. package/dist/contexts/UserEvents/Provider.js +7 -0
  31. package/dist/contexts/UserEvents/Provider.js.map +1 -0
  32. package/dist/contexts/UserEvents/index.d.ts +1 -1
  33. package/dist/contexts/UserEvents/index.js +1 -1
  34. package/dist/contexts/UserEvents/index.js.map +1 -1
  35. package/dist/esm2015/components/BasePage/BasePageProps.d.ts +0 -2
  36. package/dist/esm2015/components/EthAccount/EthAccount.stories.d.ts +3 -1
  37. package/dist/esm2015/components/EthAccount/EthAccountProps.d.ts +1 -0
  38. package/dist/esm2015/contexts/UserEvents/{Loader.d.ts → Provider.d.ts} +1 -1
  39. package/dist/esm2015/contexts/UserEvents/index.d.ts +1 -1
  40. package/dist/esm2015/index.js +111 -77
  41. package/dist/esm2015/index.js.map +1 -1
  42. package/dist/esm2015/lib/Tracking/Facebook/index.d.ts +1 -0
  43. package/dist/esm2015/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
  44. package/dist/esm2017/components/BasePage/BasePageProps.d.ts +0 -2
  45. package/dist/esm2017/components/EthAccount/EthAccount.stories.d.ts +3 -1
  46. package/dist/esm2017/components/EthAccount/EthAccountProps.d.ts +1 -0
  47. package/dist/esm2017/contexts/UserEvents/{Loader.d.ts → Provider.d.ts} +1 -1
  48. package/dist/esm2017/contexts/UserEvents/index.d.ts +1 -1
  49. package/dist/esm2017/index.js +111 -77
  50. package/dist/esm2017/index.js.map +1 -1
  51. package/dist/esm2017/lib/Tracking/Facebook/index.d.ts +1 -0
  52. package/dist/esm2017/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
  53. package/dist/esm5/components/BasePage/BasePageProps.d.ts +0 -2
  54. package/dist/esm5/components/EthAccount/EthAccount.stories.d.ts +3 -1
  55. package/dist/esm5/components/EthAccount/EthAccountProps.d.ts +1 -0
  56. package/dist/esm5/contexts/UserEvents/Provider.d.ts +7 -0
  57. package/dist/esm5/contexts/UserEvents/index.d.ts +1 -1
  58. package/dist/esm5/index.js +111 -77
  59. package/dist/esm5/index.js.map +1 -1
  60. package/dist/esm5/lib/Tracking/Facebook/index.d.ts +1 -0
  61. package/dist/esm5/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
  62. package/dist/lib/Tracking/Facebook/index.d.ts +1 -0
  63. package/dist/lib/Tracking/Facebook/index.js +1 -0
  64. package/dist/lib/Tracking/Facebook/index.js.map +1 -1
  65. package/dist/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
  66. package/dist/lib/Tracking/XyoUserEventHandler.js +8 -1
  67. package/dist/lib/Tracking/XyoUserEventHandler.js.map +1 -1
  68. package/dist/node/components/BasePage/BasePageProps.d.ts +0 -2
  69. package/dist/node/components/EthAccount/EthAccount.stories.d.ts +3 -1
  70. package/dist/node/components/EthAccount/EthAccountProps.d.ts +1 -0
  71. package/dist/node/contexts/UserEvents/Provider.d.ts +7 -0
  72. package/dist/node/contexts/UserEvents/index.d.ts +1 -1
  73. package/dist/node/index.js +111 -76
  74. package/dist/node/index.js.map +1 -1
  75. package/dist/node/lib/Tracking/Facebook/index.d.ts +1 -0
  76. package/dist/node/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
  77. package/dist/node-esm/components/BasePage/BasePageProps.d.ts +0 -2
  78. package/dist/node-esm/components/EthAccount/EthAccount.stories.d.ts +3 -1
  79. package/dist/node-esm/components/EthAccount/EthAccountProps.d.ts +1 -0
  80. package/dist/node-esm/contexts/UserEvents/Provider.d.ts +7 -0
  81. package/dist/node-esm/contexts/UserEvents/index.d.ts +1 -1
  82. package/dist/node-esm/index.js +111 -77
  83. package/dist/node-esm/index.js.map +1 -1
  84. package/dist/node-esm/lib/Tracking/Facebook/index.d.ts +1 -0
  85. package/dist/node-esm/lib/Tracking/XyoUserEventHandler.d.ts +3 -1
  86. package/package.json +10 -7
  87. package/src/components/Background.tsx +1 -0
  88. package/src/components/BasePage/BasePage.stories.tsx +6 -3
  89. package/src/components/BasePage/BasePage.tsx +0 -3
  90. package/src/components/BasePage/BasePageProps.ts +0 -2
  91. package/src/components/EthAccount/EthAccount.stories.tsx +20 -1
  92. package/src/components/EthAccount/EthAccount.tsx +2 -1
  93. package/src/components/EthAccount/EthAccountProps.tsx +1 -0
  94. package/src/components/InvertableThemeProvider/InvertableThemeProvider.tsx +1 -0
  95. package/src/components/LinkEx/LinkToEx.tsx +1 -0
  96. package/src/components/index.ts +1 -0
  97. package/src/contexts/UserEvents/Provider.tsx +17 -0
  98. package/src/contexts/UserEvents/index.ts +1 -1
  99. package/src/lib/Tracking/Facebook/index.ts +1 -0
  100. package/src/lib/Tracking/XyoUserEventHandler.ts +11 -2
  101. package/dist/contexts/UserEvents/Loader.js +0 -6
  102. package/dist/contexts/UserEvents/Loader.js.map +0 -1
  103. package/dist/esm5/contexts/UserEvents/Loader.d.ts +0 -7
  104. package/dist/node/contexts/UserEvents/Loader.d.ts +0 -7
  105. package/dist/node-esm/contexts/UserEvents/Loader.d.ts +0 -7
  106. package/src/contexts/UserEvents/Loader.tsx +0 -12
@@ -7,9 +7,7 @@ interface BasePageProps extends BoxProps {
7
7
  beta?: boolean;
8
8
  container?: 'xl' | 'lg' | 'md' | 'sm' | 'xs';
9
9
  disableGutters?: boolean;
10
- filterBar?: ReactElement;
11
10
  hideAppBar?: boolean;
12
- hideFilterBar?: boolean;
13
11
  hideFooter?: boolean;
14
12
  noindex?: boolean;
15
13
  cookieConsent?: ReactNode;
@@ -9,7 +9,7 @@ import { ButtonEx } from '../ButtonEx';
9
9
  import { FlexGrowRow, FlexRow } from '../FlexBox';
10
10
  import { Identicon } from '../Identicon';
11
11
  const EthAccount = (_a) => {
12
- 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"]);
12
+ 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"]);
13
13
  const { localAddress } = useContext(EthersContext);
14
14
  const theme = useTheme();
15
15
  const large = useMediaQuery(theme.breakpoints.up('md'));
@@ -24,7 +24,7 @@ const EthAccount = (_a) => {
24
24
  const testToDisplay = addressLength === 'long'
25
25
  ? addressToDisplay.toString()
26
26
  : addressLength === 'short'
27
- ? addressToDisplay.toShortString()
27
+ ? addressToDisplay.toShortString(shortenedLength)
28
28
  : large
29
29
  ? addressToDisplay.toString()
30
30
  : addressToDisplay.toShortString();
@@ -1 +1 @@
1
- {"version":3,"file":"EthAccount.js","sourceRoot":"","sources":["../../../src/components/EthAccount/EthAccount.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAc,UAAU,EAAE,MAAM,OAAO,CAAA;AAE9C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAGxC,MAAM,UAAU,GAA8B,CAAC,EAU9C,EAAE,EAAE;QAV0C,EAC7C,OAAO,EACP,IAAI,GAAG,KAAK,EACZ,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,KAAK,EAChB,aAAa,GAAG,MAAM,EACtB,UAAU,GAAG,6BAA6B,EAC1C,WAAW,EACX,aAAa,OAEd,EADI,KAAK,cATqC,0GAU9C,CADS;IAER,MAAM,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC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O,EAAC,OAAO,EAAC,UAAU,EAAE,UAAU,mCAEnF,CACd,YACO,CACX,EACA,cAAc,CAAC,CAAC,CAAC,KAAC,OAAO,kBAAC,UAAU,EAAE,GAAG,mCAAiB,CAAC,CAAC,CAAC,IAAI,aACtD,YACL,CACZ,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -3,9 +3,11 @@ import { ComponentMeta, ComponentStory } from '@storybook/react';
3
3
  declare const StorybookEntry: ComponentMeta<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
4
4
  declare const Long: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
5
5
  declare const LongEmpty: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
6
+ declare const Medium: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
7
+ declare const MediumEmpty: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
6
8
  declare const Short: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
7
9
  declare const ShortEmpty: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
8
10
  declare const Auto: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
9
11
  declare const AutoEmpty: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
10
- export { Auto, AutoEmpty, Long, LongEmpty, Short, ShortEmpty };
12
+ export { Auto, AutoEmpty, Long, LongEmpty, Medium, MediumEmpty, Short, ShortEmpty };
11
13
  export default StorybookEntry;
@@ -28,6 +28,23 @@ LongEmpty.args = {
28
28
  title: 'Sample EthAccount',
29
29
  toEtherScan: true,
30
30
  };
31
+ const Medium = Template.bind({});
32
+ Medium.args = {
33
+ address: EthAddress.fromString('0x6792b02f88b32c4fe8e31cfa41ae5af44865f930'),
34
+ addressLength: 'short',
35
+ icon: true,
36
+ shortenedLength: 8,
37
+ title: 'Sample EthAccount',
38
+ toEtherScan: true,
39
+ };
40
+ const MediumEmpty = Template.bind({});
41
+ MediumEmpty.args = {
42
+ addressLength: 'short',
43
+ icon: true,
44
+ shortenedLength: 8,
45
+ title: 'Sample EthAccount',
46
+ toEtherScan: true,
47
+ };
31
48
  const Short = Template.bind({});
32
49
  Short.args = {
33
50
  address: EthAddress.fromString('0x6792b02f88b32c4fe8e31cfa41ae5af44865f930'),
@@ -58,7 +75,7 @@ AutoEmpty.args = {
58
75
  title: 'Sample EthAccount',
59
76
  toEtherScan: true,
60
77
  };
61
- export { Auto, AutoEmpty, Long, LongEmpty, Short, ShortEmpty };
78
+ export { Auto, AutoEmpty, Long, LongEmpty, Medium, MediumEmpty, Short, ShortEmpty };
62
79
  // eslint-disable-next-line import/no-default-export
63
80
  export default StorybookEntry;
64
81
  //# sourceMappingURL=EthAccount.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EthAccount.stories.js","sourceRoot":"","sources":["../../../src/components/EthAccount/EthAccount.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,uBAAuB;CACK,CAAA;AAErC,MAAM,QAAQ,GAAsC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC5D,KAAC,OAAO,cACN,KAAC,UAAU,kBAAC,OAAO,EAAC,UAAU,IAAK,IAAI,UAAe,WAC9C,CACX,CAAA;AAED,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC9B,IAAI,CAAC,IAAI,GAAG;IACV,OAAO,EAAE,UAAU,CAAC,UAAU,CAAC,4CAA4C,CA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,WAAW,EAAE,IAAI;CAClB,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAA;AAE9D,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"EthAccount.stories.js","sourceRoot":"","sources":["../../../src/components/EthAccount/EthAccount.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,uBAAuB;CACK,CAAA;AAErC,MAAM,QAAQ,GAAsC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC5D,KAAC,OAAO,cACN,KAAC,UAAU,kBAAC,OAAO,EAAC,UAAU,IAAK,IAAI,UAAe,WAC9C,CACX,CAAA;AAED,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC9B,IAAI,CAAC,IAAI,GAAG;IACV,OAAO,EAAE,UAAU,CAAC,UAAU,CAAC,4CAA4C,CAAC;IAC5E,aAAa,EAAE,MAAM;IACrB,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,IAAI;CAClB,CAAA;AAED,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACnC,SAAS,CAAC,IAAI,GAAG;IACf,aAAa,EAAE,MAAM;IACrB,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,IAAI;CAClB,CAAA;AAED,MAAM,MAAM,GAAG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A;AAED,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACnC,SAAS,CAAC,IAAI,GAAG;IACf,aAAa,EAAE,MAAM;IACrB,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,IAAI;CAClB,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,CAAA;AAEnF,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
@@ -4,6 +4,7 @@ import { ButtonExProps } from '../ButtonEx';
4
4
  interface EthAccountProps extends ButtonExProps {
5
5
  address?: EthAddress | null;
6
6
  addressLength?: 'auto' | 'short' | 'long';
7
+ shortenedLength?: number;
7
8
  full?: boolean;
8
9
  icon?: boolean;
9
10
  iconSize?: number;
@@ -17,7 +17,9 @@ export const resolveThemeColors = (options) => {
17
17
  },
18
18
  });
19
19
  };
20
- export const InvertableThemeProvider = ({ options, children, dark, resolve = false, scoped = false, invert = false, noResponsiveFonts, darkTheme, darkOptions, lightOptions, }) => {
20
+ export const InvertableThemeProvider = ({ options, children, dark, resolve = false, scoped = false, invert = false, noResponsiveFonts,
21
+ // eslint-disable-next-line deprecation/deprecation
22
+ darkTheme, darkOptions, lightOptions, }) => {
21
23
  var _a, _b, _c;
22
24
  const parentContext = useContext(InvertableThemeContext);
23
25
  const clonedOptions = cloneDeep((_a = options !== null && options !== void 0 ? options : parentContext.options) !== null && _a !== void 0 ? _a : {});
@@ -1 +1 @@
1
- {"version":3,"file":"InvertableThemeProvider.js","sourceRoot":"","sources":["../../../src/components/InvertableThemeProvider/InvertableThemeProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAS,aAAa,EAAE,MAAM,eAAe,CAAA;AAC5F,OAAO,EAAE,WAAW,EAAgB,MAAM,sBAAsB,CAAA;AAChE,O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AC,CAAC,CACF,KAAC,QAAQ,aAAG,CACb,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"InvertableThemeProvider.js","sourceRoot":"","sources":["../../../src/components/InvertableThemeProvider/InvertableThemeProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAS,aAAa,EAAE,MAAM,eAAe,CAAA;AAC5F,OAAO,EAAE,WAAW,EAAgB,MAAM,sBAAsB,CAAA;AAChE,OAAO,SAAS,MAAM,kBAAkB,CAAA;AACxC,OAAO,KAAK,MAAM,cAAc,CAAA;AAChC,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAGjE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,OAAqB,EAAE,EAAE;;IAC1D,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAA;IAClC,OAAO,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE;QACxB,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,OAAO,EAAE,MAAA,KAAK,CAAC,OAAO,0CAAE,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;gBACnE,SAAS,EAAE,MAAA,KAAK,CAAC,OAAO,0CAAE,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC;aACxE;SACF;KACF,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAA2C,CAAC,EAC9E,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,OAAO,GAAG,KAAK,EACf,MAAM,GAAG,KAAK,EACd,MAAM,GAAG,KAAK,EACd,iBAAiB;AACjB,mDAAmD;AACnD,SAAS,EACT,WAAW,EACX,YAAY,GACb,EAAE,EAAE;;IACH,MAAM,aAAa,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAA;IAC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CAAC,QAAQ,kBAC9B,KAAK,EAAE,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY,EAAE,kBAAkB,EAAE,OAAO,EAAE,aAAa,EAAE,gBAEnG,KAAC,aAAa,kBAAC,KAAK,EAAE,KAAK,gBAAG,QAAQ,YAAiB,YACvB,CACnC,CAAA;IACH,CAAC,CAAA;IAED,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,iBAAiB,cAChB,KAAC,QAAQ,aAAG,WACM,CACrB,CAAC,CAAC,CAAC,CACF,KAAC,QAAQ,aAAG,CACb,CAAA;AACH,CAAC,CAAA"}
@@ -13,5 +13,6 @@ const LinkEx = (_a) => {
13
13
  };
14
14
  /** @deprecated use LinkEx instead */
15
15
  const LinkToEx = LinkEx;
16
+ // eslint-disable-next-line deprecation/deprecation
16
17
  export { LinkEx, LinkToEx };
17
18
  //# sourceMappingURL=LinkToEx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkToEx.js","sourceRoot":"","sources":["../../../src/components/LinkEx/LinkToEx.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,IAAI,EAAa,MAAM,eAAe,CAAA;AAE/C,OAAO,EAAE,IAAI,IAAI,UAAU,EAAM,MAAM,kBAAkB,CAAA;AAMzD,MAAM,MAAM,GAAoB,CAAC,EAAgB,EAAE,EAAE;QAApB,EAAE,EAAE,OAAY,EAAP,KAAK,cAAd,MAAgB,CAAF;IAC7C,IAAI,EAAE,EAAE;QACN,OAAO,KAAC,IAAI,kBAAC,SAAS,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,IAAM,KAAK,UAAI,CAAA;KAC1D;SAAM;QACL,OAAO,KAAC,IAAI,oBAAK,KAAK,UAAI,CAAA;KAC3B;AACH,CAAC,CAAA;AAED,qCAAqC;AACrC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"LinkToEx.js","sourceRoot":"","sources":["../../../src/components/LinkEx/LinkToEx.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,IAAI,EAAa,MAAM,eAAe,CAAA;AAE/C,OAAO,EAAE,IAAI,IAAI,UAAU,EAAM,MAAM,kBAAkB,CAAA;AAMzD,MAAM,MAAM,GAAoB,CAAC,EAAgB,EAAE,EAAE;QAApB,EAAE,EAAE,OAAY,EAAP,KAAK,cAAd,MAAgB,CAAF;IAC7C,IAAI,EAAE,EAAE;QACN,OAAO,KAAC,IAAI,kBAAC,SAAS,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,IAAM,KAAK,UAAI,CAAA;KAC1D;SAAM;QACL,OAAO,KAAC,IAAI,oBAAK,KAAK,UAAI,CAAA;KAC3B;AACH,CAAC,CAAA;AAED,qCAAqC;AACrC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,mDAAmD;AACnD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA"}
@@ -24,5 +24,6 @@ export * from './RichResult';
24
24
  export * from './ScrollToTop';
25
25
  export * from './SelectEx';
26
26
  export * from './TokenAmount';
27
+ // eslint-disable-next-line deprecation/deprecation
27
28
  export { Background, CoverProgress, HoverScale, Identicon, RedirectWithQuery, ScrollToTopButton };
28
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA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ACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAE7B,mDAAmD;AACnD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAA"}
@@ -3,5 +3,5 @@ import React from 'react';
3
3
  interface Props<T> {
4
4
  userEvents: UserEventHandler<T>;
5
5
  }
6
- export declare const UserEventsLoader: React.FC<Props<unknown>>;
6
+ export declare const UserEventsProvider: React.FC<Props<unknown>>;
7
7
  export {};
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { XyoUserEventHandler } from '../../lib';
3
+ import { UserEventsContext } from './Context';
4
+ export const UserEventsProvider = ({ userEvents, children }) => {
5
+ return (_jsx(UserEventsContext.Provider, Object.assign({ value: { userEvents: userEvents !== null && userEvents !== void 0 ? userEvents : XyoUserEventHandler.get() } }, { children: children }), void 0));
6
+ };
7
+ //# sourceMappingURL=Provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../src/contexts/UserEvents/Provider.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAM7C,MAAM,CAAC,MAAM,kBAAkB,GAA6B,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvF,OAAO,CACL,KAAC,iBAAiB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,mBAAmB,CAAC,GAAG,EAAE,EAAE,gBACvF,QAAQ,YACkB,CAC9B,CAAA;AACH,CAAC,CAAA"}
@@ -1,2 +1,2 @@
1
1
  export * from './Context';
2
- export * from './Loader';
2
+ export * from './Provider';
@@ -1,3 +1,3 @@
1
1
  export * from './Context';
2
- export * from './Loader';
2
+ export * from './Provider';
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contexts/UserEvents/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contexts/UserEvents/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
@@ -7,9 +7,7 @@ interface BasePageProps extends BoxProps {
7
7
  beta?: boolean;
8
8
  container?: 'xl' | 'lg' | 'md' | 'sm' | 'xs';
9
9
  disableGutters?: boolean;
10
- filterBar?: ReactElement;
11
10
  hideAppBar?: boolean;
12
- hideFilterBar?: boolean;
13
11
  hideFooter?: boolean;
14
12
  noindex?: boolean;
15
13
  cookieConsent?: ReactNode;
@@ -3,9 +3,11 @@ import { ComponentMeta, ComponentStory } from '@storybook/react';
3
3
  declare const StorybookEntry: ComponentMeta<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
4
4
  declare const Long: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
5
5
  declare const LongEmpty: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
6
+ declare const Medium: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
7
+ declare const MediumEmpty: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
6
8
  declare const Short: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
7
9
  declare const ShortEmpty: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
8
10
  declare const Auto: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
9
11
  declare const AutoEmpty: ComponentStory<import("react").FC<import("./EthAccountProps").EthAccountProps>>;
10
- export { Auto, AutoEmpty, Long, LongEmpty, Short, ShortEmpty };
12
+ export { Auto, AutoEmpty, Long, LongEmpty, Medium, MediumEmpty, Short, ShortEmpty };
11
13
  export default StorybookEntry;
@@ -4,6 +4,7 @@ import { ButtonExProps } from '../ButtonEx';
4
4
  interface EthAccountProps extends ButtonExProps {
5
5
  address?: EthAddress | null;
6
6
  addressLength?: 'auto' | 'short' | 'long';
7
+ shortenedLength?: number;
7
8
  full?: boolean;
8
9
  icon?: boolean;
9
10
  iconSize?: number;
@@ -3,5 +3,5 @@ import React from 'react';
3
3
  interface Props<T> {
4
4
  userEvents: UserEventHandler<T>;
5
5
  }
6
- export declare const UserEventsLoader: React.FC<Props<unknown>>;
6
+ export declare const UserEventsProvider: React.FC<Props<unknown>>;
7
7
  export {};
@@ -1,2 +1,2 @@
1
1
  export * from './Context';
2
- export * from './Loader';
2
+ export * from './Provider';
@@ -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, delay, assertEx, EthAddress, forget, BigNumber } from '@xylabs/sdk-js';
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 UserEventsLoader = ({ userEvents, children }) => {
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, darkTheme, darkOptions, lightOptions, }) => {
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, filterBar, hideAppBar, hideFilterBar, noindex = false, scrollToTopButton = false, title } = _a, props = __rest(_a, ["disableGutters", "children", "beta", "container", "hideFooter", "appFooter", "appBar", "cookieConsent", "filterBar", "hideAppBar", "hideFilterBar", "noindex", "scrollToTopButton", "title"]);
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, hideFilterBar ? null : filterBar, 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));
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, UserEventsLoader, 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 };
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