@ethersphere/bee-dashboard 0.11.1 → 0.11.2

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 (102) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/asset-manifest.json +3 -3
  3. package/build/index.html +1 -1
  4. package/build/static/js/{main.2ee7499d.chunk.js → main.83c3a1a6.chunk.js} +1 -1
  5. package/build/static/js/{main.2ee7499d.chunk.js.map → main.83c3a1a6.chunk.js.map} +1 -1
  6. package/lib/App.js.map +1 -0
  7. package/lib/assets/fonts/IBMPlexMono500.ttf +0 -0
  8. package/lib/assets/fonts/IBMPlexMono600.ttf +0 -0
  9. package/lib/assets/fonts/IBMPlexMonoregular.ttf +0 -0
  10. package/lib/assets/fonts/WorkSans-Italic-VariableFont_wght.ttf +0 -0
  11. package/lib/assets/fonts/WorkSans-VariableFont_wght.ttf +0 -0
  12. package/lib/assets/logo.svg +11 -0
  13. package/lib/src/App.d.ts +9 -0
  14. package/lib/src/App.test.d.ts +1 -0
  15. package/lib/src/components/AlertUploadSize.d.ts +6 -0
  16. package/lib/src/components/AlertVersion.d.ts +2 -0
  17. package/lib/src/components/Capacity.d.ts +7 -0
  18. package/lib/src/components/CashoutModal.d.ts +7 -0
  19. package/lib/src/components/ClipboardCopy.d.ts +6 -0
  20. package/lib/src/components/CodeBlock.d.ts +8 -0
  21. package/lib/src/components/CodeBlockTabs.d.ts +8 -0
  22. package/lib/src/components/ErrorBoundary.d.ts +16 -0
  23. package/lib/src/components/EthereumAddress.d.ts +9 -0
  24. package/lib/src/components/ExpandableElement.d.ts +8 -0
  25. package/lib/src/components/ExpandableList.d.ts +10 -0
  26. package/lib/src/components/ExpandableListItem.d.ts +8 -0
  27. package/lib/src/components/ExpandableListItemActions.d.ts +6 -0
  28. package/lib/src/components/ExpandableListItemInput.d.ts +16 -0
  29. package/lib/src/components/ExpandableListItemKey.d.ts +7 -0
  30. package/lib/src/components/ExpandableListItemLink.d.ts +10 -0
  31. package/lib/src/components/ExpandableListItemNote.d.ts +6 -0
  32. package/lib/src/components/FitImage.d.ts +9 -0
  33. package/lib/src/components/History.d.ts +8 -0
  34. package/lib/src/components/HistoryHeader.d.ts +6 -0
  35. package/lib/src/components/Loading.d.ts +2 -0
  36. package/lib/src/components/QRCodeModal.d.ts +7 -0
  37. package/lib/src/components/SideBar.d.ts +2 -0
  38. package/lib/src/components/SideBarItem.d.ts +9 -0
  39. package/lib/src/components/SideBarStatus.d.ts +6 -0
  40. package/lib/src/components/StatusIcon.d.ts +9 -0
  41. package/lib/src/components/StripedWrapper.d.ts +6 -0
  42. package/lib/src/components/SwarmButton.d.ts +12 -0
  43. package/lib/src/components/TabsContainer.d.ts +12 -0
  44. package/lib/src/components/TopologyStats.d.ts +7 -0
  45. package/lib/src/components/TroubleshootConnectionCard.d.ts +2 -0
  46. package/lib/src/components/WithdrawDepositModal.d.ts +14 -0
  47. package/lib/src/config.d.ts +11 -0
  48. package/lib/src/containers/DepositModal.d.ts +2 -0
  49. package/lib/src/containers/WithdrawModal.d.ts +2 -0
  50. package/lib/src/hooks/accounting.d.ts +18 -0
  51. package/lib/src/hooks/apiHooks.d.ts +6 -0
  52. package/lib/src/index.d.ts +1 -0
  53. package/lib/src/layout/Dashboard.d.ts +6 -0
  54. package/lib/src/models/Token.d.ts +25 -0
  55. package/lib/src/models/Token.test.d.ts +1 -0
  56. package/lib/src/pages/accounting/PeerBalances.d.ts +10 -0
  57. package/lib/src/pages/accounting/index.d.ts +2 -0
  58. package/lib/src/pages/files/AssetIcon.d.ts +6 -0
  59. package/lib/src/pages/files/AssetPreview.d.ts +8 -0
  60. package/lib/src/pages/files/AssetSummary.d.ts +6 -0
  61. package/lib/src/pages/files/Download.d.ts +2 -0
  62. package/lib/src/pages/files/DownloadActionBar.d.ts +10 -0
  63. package/lib/src/pages/files/FileNavigation.d.ts +6 -0
  64. package/lib/src/pages/files/SelectStamp.d.ts +9 -0
  65. package/lib/src/pages/files/Share.d.ts +7 -0
  66. package/lib/src/pages/files/StampPreview.d.ts +7 -0
  67. package/lib/src/pages/files/Upload.d.ts +2 -0
  68. package/lib/src/pages/files/UploadActionBar.d.ts +13 -0
  69. package/lib/src/pages/files/UploadArea.d.ts +6 -0
  70. package/lib/src/pages/files/UploadLander.d.ts +2 -0
  71. package/lib/src/pages/info/index.d.ts +2 -0
  72. package/lib/src/pages/settings/index.d.ts +2 -0
  73. package/lib/src/pages/stamps/CreatePostageStampModal.d.ts +6 -0
  74. package/lib/src/pages/stamps/PostageStamp.d.ts +8 -0
  75. package/lib/src/pages/stamps/SelectPostageStampModal.d.ts +9 -0
  76. package/lib/src/pages/stamps/StampsTable.d.ts +7 -0
  77. package/lib/src/pages/stamps/index.d.ts +2 -0
  78. package/lib/src/pages/status/SetupSteps/ChequebookDeployFund.d.ts +3 -0
  79. package/lib/src/pages/status/SetupSteps/DebugConnectionCheck.d.ts +2 -0
  80. package/lib/src/pages/status/SetupSteps/EthereumConnectionCheck.d.ts +2 -0
  81. package/lib/src/pages/status/SetupSteps/NodeConnectionCheck.d.ts +2 -0
  82. package/lib/src/pages/status/SetupSteps/PeerConnection.d.ts +2 -0
  83. package/lib/src/pages/status/SetupSteps/VersionCheck.d.ts +2 -0
  84. package/lib/src/pages/status/index.d.ts +2 -0
  85. package/lib/src/providers/Bee.d.ts +45 -0
  86. package/lib/src/providers/File.d.ts +13 -0
  87. package/lib/src/providers/Platform.d.ts +23 -0
  88. package/lib/src/providers/Settings.d.ts +21 -0
  89. package/lib/src/providers/Stamps.d.ts +22 -0
  90. package/lib/src/reportWebVitals.d.ts +3 -0
  91. package/lib/src/routes.d.ts +15 -0
  92. package/lib/src/setupTests.d.ts +1 -0
  93. package/lib/src/theme.d.ts +7 -0
  94. package/lib/src/types.d.ts +19 -0
  95. package/lib/src/utils/SwarmFile.d.ts +10 -0
  96. package/lib/src/utils/date.d.ts +1 -0
  97. package/lib/src/utils/file.d.ts +7 -0
  98. package/lib/src/utils/hash.d.ts +1 -0
  99. package/lib/src/utils/index.d.ts +52 -0
  100. package/lib/src/utils/local-storage.d.ts +12 -0
  101. package/lib/src/utils/threshold.d.ts +22 -0
  102. package/package.json +2 -1
@@ -0,0 +1,11 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="172" height="30" viewBox="0 0 172 30">
2
+ <g fill="none" fill-rule="evenodd">
3
+ <g>
4
+ <g>
5
+ <path d="M0 0H172V30H0z" transform="translate(-64.000000, -64.000000) translate(64.000000, 64.000000)"/>
6
+ <path fill="#F9F9F9" fill-rule="nonzero" d="M94.26 21.338c1.242 0 2.168-.427 2.779-1.28.61-.853.916-2.118.916-3.796 0-1.677-.306-2.942-.916-3.795-.611-.854-1.537-1.28-2.778-1.28h-2.836v10.15h2.836zm-.057-1.062h-1.556V12.25h1.556c.814 0 1.427.28 1.84.843.411.562.617 1.357.617 2.385v1.57c0 1.028-.206 1.823-.618 2.386-.412.562-1.025.843-1.84.843zm6.767 1.062l.858-2.894h3.563l.858 2.894h1.294l-3.112-10.151h-1.614l-3.112 10.15h1.265zm4.13-3.956h-2.981l1.425-4.9h.131l1.425 4.9zm7.698 4.13c1.135 0 2.01-.266 2.625-.8.616-.533.924-1.27.924-2.21 0-.33-.044-.645-.131-.945-.087-.3-.235-.572-.444-.815-.208-.242-.482-.45-.821-.625-.34-.175-.757-.305-1.251-.393l-1.09-.189c-.718-.126-1.215-.332-1.491-.618-.277-.286-.415-.657-.415-1.112 0-.582.184-1.018.553-1.31.368-.29.897-.436 1.585-.436.63 0 1.144.117 1.541.35.398.232.737.533 1.018.901l.858-.742c-.339-.494-.787-.877-1.345-1.148-.557-.272-1.243-.408-2.058-.408-1.037 0-1.861.238-2.472.713-.61.475-.916 1.178-.916 2.109 0 .32.044.627.13.923.088.296.234.567.437.815.204.247.473.458.807.632.335.175.75.306 1.244.393l1.134.189c.698.116 1.188.313 1.469.589.281.276.422.662.422 1.156 0 .61-.194 1.086-.582 1.425-.388.34-.95.51-1.687.51-.61 0-1.137-.122-1.578-.364-.441-.243-.86-.611-1.258-1.106l-.887.728c.378.523.858.952 1.44 1.287.581.334 1.328.501 2.24.501zm7.262-.174v-4.61h3.956v4.61h1.221V11.187h-1.221v4.48h-3.956v-4.48h-1.222v10.15h1.222zm11.988 0c.388 0 .75-.075 1.084-.226.334-.15.625-.356.872-.618.248-.261.439-.572.575-.93.135-.36.203-.742.203-1.15 0-.707-.184-1.248-.552-1.62-.369-.374-.839-.629-1.411-.764v-.044c.465-.145.846-.393 1.142-.742.295-.349.443-.829.443-1.44 0-.794-.247-1.43-.741-1.904-.495-.476-1.178-.713-2.051-.713h-3.447v10.15h3.883zm-.567-5.745h-2.094V12.25h2.094c.514 0 .916.116 1.207.349.291.232.436.581.436 1.047v.567c0 .465-.145.812-.436 1.04-.29.227-.693.341-1.207.341zm.204 4.683h-2.298v-3.68h2.298c.562 0 1.003.13 1.323.386.32.257.48.643.48 1.156v.597c0 .523-.16.911-.48 1.163-.32.252-.761.378-1.323.378zm8.774 1.236c.62 0 1.154-.118 1.6-.356.446-.237.814-.58 1.105-1.025.29-.446.504-.994.64-1.644.136-.65.203-1.39.203-2.225 0-.824-.067-1.563-.203-2.217-.136-.655-.35-1.205-.64-1.651-.29-.446-.66-.788-1.105-1.025-.446-.238-.98-.357-1.6-.357-.62 0-1.154.12-1.6.357-.446.237-.814.579-1.105 1.025-.29.446-.504.996-.64 1.65-.136.655-.204 1.394-.204 2.218 0 .834.068 1.576.204 2.225.136.65.35 1.198.64 1.644.29.446.66.788 1.105 1.025.446.238.98.356 1.6.356zm0-1.061c-.407 0-.751-.08-1.033-.24-.28-.16-.513-.386-.698-.676-.184-.291-.317-.643-.4-1.055-.082-.412-.123-.875-.123-1.389v-1.658c0-.504.041-.964.123-1.381.083-.417.216-.77.4-1.062.185-.29.417-.516.698-.676.282-.16.626-.24 1.033-.24.407 0 .751.08 1.032.24.282.16.514.385.699.676.184.291.317.645.4 1.062.082.417.123.877.123 1.381v1.658c0 .514-.041.977-.124 1.39-.082.411-.215.763-.4 1.054-.184.29-.416.516-.698.676-.28.16-.625.24-1.032.24zm6.564.887l.858-2.894h3.563l.858 2.894h1.294l-3.112-10.151h-1.614l-3.113 10.15h1.266zm4.13-3.956h-2.981l1.425-4.9h.13l1.426 4.9zm5.895 3.956v-4.334h1.614l2.472 4.334h1.367l-2.588-4.392c.814-.078 1.434-.364 1.861-.858.427-.495.64-1.154.64-1.978 0-.921-.247-1.638-.742-2.152-.494-.514-1.212-.771-2.152-.771h-3.694v10.15h1.222zm2.443-5.366h-2.443v-3.723h2.443c.514 0 .914.128 1.2.385.286.257.429.623.429 1.098v.756c0 .475-.143.841-.43 1.098-.285.257-.685.386-1.2.386zm8.454 5.366c1.241 0 2.167-.427 2.778-1.28.61-.853.916-2.118.916-3.796 0-1.677-.305-2.942-.916-3.795-.611-.854-1.537-1.28-2.778-1.28h-2.836v10.15h2.836zm-.058-1.062h-1.556V12.25h1.556c.814 0 1.428.28 1.84.843.412.562.618 1.357.618 2.385v1.57c0 1.028-.206 1.823-.618 2.386-.412.562-1.026.843-1.84.843z" transform="translate(-64.000000, -64.000000) translate(64.000000, 64.000000)"/>
7
+ <path fill="#F9F9F9" d="M5.064 14.685l4.822 2.709v5.4L5.064 25.5l-4.82-2.706v-5.4l4.82-2.71zm11.034 0l4.822 2.709v5.4L16.098 25.5l-4.82-2.706v-5.4l4.82-2.71zm42.17-3.332v7.644l1.655 1.432.017-.014-1.187 1.327h-.019l-2.097-1.815-2.505 1.465c-.41.237-.876.362-1.35.357-.709-.005-1.392-.277-1.91-.762-.539-.503-.838-1.213-.824-1.95-.002-.974.52-1.874 1.367-2.356l5.05-2.895v-.644H50.55v-1.79h7.719zm-29.357.085c.802-.392 1.705-.529 2.588-.392.845.17 1.627.57 2.258 1.159.166.145.443.417.632.606l.122.121.08.08-1.178 1.336c.014-.017-.801-.773-.883-.841-.389-.367-.863-.627-1.383-.754-.539-.12-1.104-.022-1.573.27-.323.195-.508.552-.484.928.006.372.213.71.54.885.547.291 1.136.49 1.747.586.387.075.766.172 1.102.261.335.088.662.21.974.359.314.11.602.285.844.515.233.194.416.438.537.715.152.298.232.626.236.96.034.957-.403 1.87-1.17 2.444-.81.602-1.8.911-2.809.876-.379.002-.76-.036-1.131-.114-1.007-.247-1.925-.768-2.652-1.506-.05-.043-.608-.566-.608-.566l1.145-1.378c.246.23.486.462.741.677.313.303.655.574 1.02.813.913.518 2.035.518 2.948 0 .375-.227.596-.638.58-1.074.008-.364-.223-.687-.569-.799-.634-.27-1.298-.47-1.979-.59-.864-.152-1.684-.485-2.408-.978-.602-.433-.895-1.095-.895-2.025-.018-.85.365-1.657 1.03-2.183.186-.152.386-.282.598-.39zm17.705-.135c0-.022.006.006.006.006h1.922l-1.606 10.212h-3.152l-1.15-8.808h-.024l-1.164 8.804H38.3l-1.573-10.214h1.926l1.267 8.822h.024l1.114-8.822h3.157l1.109 8.822h.025zm33.488-.29c.703-.039 1.386.244 1.858.765.435.557.655 1.252.618 1.958v7.76h-1.89V14.08c-.014-.314-.113-.621-.288-.886-.212-.26-.54-.396-.873-.359-.362-.011-.708.145-.936.427-.272.41-.4.9-.357 1.391v6.854h-1.88v-7.337c.018-.353-.097-.7-.317-.976-.206-.241-.508-.373-.824-.359-.376-.022-.74.145-.966.448-.253.366-.379.808-.358 1.252v6.978h-1.876v-10.21h1.876v.946c.153-.354.401-.657.715-.877.38-.245.821-.37 1.272-.358.465-.02.923.124 1.296.404.304.244.535.57.664.937.424-.855 1.312-1.381 2.266-1.341zm-13.503-.011c.899-.011 1.763.349 2.387.996.66.62 1.031 1.488 1.023 2.393v.588h-1.764v-.588c0-.05-.003-.099-.008-.146-.08-.877-.859-1.519-1.735-1.436-.832.111-1.449.829-1.431 1.668v5.205h2.574v1.764H61.56v-1.764h1.687v-5.62l-1.697-1.538 1.178-1.315 1.195 1.096c.626-.846 1.625-1.332 2.677-1.303zm-10.136 4.89L52.32 18.27c-.288.158-.465.46-.46.789.01.496.41.894.905.905.166-.003.328-.052.468-.143h-.022l3.254-1.89v-2.04zM10.544 5.254l1.847 1.102v3.181l.634.354 2.347 1.318v2.15l-4.82 2.707-4.82-2.706v-5.4l4.812-2.706zm5.638-.755l2.568 1.44v2.886l-2.548 1.428-.02-.011-2.553-1.43V5.951l.005-.021L16.182 4.5z" transform="translate(-64.000000, -64.000000) translate(64.000000, 64.000000)"/>
8
+ </g>
9
+ </g>
10
+ </g>
11
+ </svg>
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ import './App.css';
3
+ interface Props {
4
+ beeApiUrl?: string;
5
+ beeDebugApiUrl?: string;
6
+ lockedApiSettings?: boolean;
7
+ }
8
+ declare const App: ({ beeApiUrl, beeDebugApiUrl, lockedApiSettings }: Props) => ReactElement;
9
+ export default App;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ files: File[];
4
+ }
5
+ export default function UploadSizeAlert(props: Props): ReactElement | null;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function VersionAlert(): ReactElement | null;
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ width: string;
4
+ usage: number;
5
+ }
6
+ export declare function Capacity({ width, usage }: Props): ReactElement;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ peerId: string;
4
+ uncashedAmount: string;
5
+ }
6
+ export default function CheckoutModal({ peerId, uncashedAmount }: Props): ReactElement;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { ReactElement } from 'react';
2
+ interface Props {
3
+ value: string;
4
+ }
5
+ export default function ClipboardCopy({ value }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { ReactElement } from 'react';
2
+ interface Props {
3
+ code: string;
4
+ language: string;
5
+ showLineNumbers?: boolean;
6
+ }
7
+ declare const CodeBlock: (props: Props) => ReactElement;
8
+ export default CodeBlock;
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ linux: string;
4
+ mac: string;
5
+ showLineNumbers?: boolean;
6
+ }
7
+ export default function CodeBlockTabs(props: Props): ReactElement;
8
+ export {};
@@ -0,0 +1,16 @@
1
+ import { Component, ErrorInfo, ReactElement } from 'react';
2
+ interface Props {
3
+ children: ReactElement;
4
+ }
5
+ interface State {
6
+ error: Error | null;
7
+ }
8
+ export default class ErrorBoundary extends Component<Props, State> {
9
+ constructor(props: Props);
10
+ static getDerivedStateFromError(error: Error): {
11
+ error: Error;
12
+ };
13
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
14
+ render(): ReactElement;
15
+ }
16
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ address: string | undefined;
4
+ hideBlockie?: boolean;
5
+ transaction?: boolean;
6
+ truncate?: boolean;
7
+ }
8
+ export default function EthereumAddress(props: Props): ReactElement;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ interface Props {
3
+ children: ReactNode;
4
+ expandable: ReactNode;
5
+ defaultOpen?: boolean;
6
+ }
7
+ export default function ExpandableElement({ children, expandable, defaultOpen }: Props): ReactElement | null;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ interface Props {
3
+ children?: ReactNode;
4
+ label: ReactNode;
5
+ info?: ReactNode;
6
+ level?: 0 | 1 | 2;
7
+ defaultOpen?: boolean;
8
+ }
9
+ export default function ExpandableList({ children, label, level, defaultOpen, info }: Props): ReactElement | null;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ interface Props {
3
+ label?: ReactNode;
4
+ value?: ReactNode;
5
+ tooltip?: string;
6
+ }
7
+ export default function ExpandableListItem({ label, value, tooltip }: Props): ReactElement | null;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ interface Props {
3
+ children: ReactNode | ReactNode[];
4
+ }
5
+ export default function ExpandableListItemActions({ children }: Props): ReactElement | null;
6
+ export {};
@@ -0,0 +1,16 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ label: string;
4
+ value?: string;
5
+ placeholder?: string;
6
+ helperText?: string;
7
+ expandedOnly?: boolean;
8
+ confirmLabel?: string;
9
+ confirmLabelDisabled?: boolean;
10
+ onChange?: (value: string) => void;
11
+ onConfirm: (value: string) => void;
12
+ mapperFn?: (value: string) => string;
13
+ locked?: boolean;
14
+ }
15
+ export default function ExpandableListItemKey({ label, value, onConfirm, onChange, confirmLabel, confirmLabelDisabled, expandedOnly, helperText, placeholder, mapperFn, locked, }: Props): ReactElement | null;
16
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ export default function ExpandableListItemKey({ label, value }: Props): ReactElement | null;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ label: string;
4
+ value: string;
5
+ link?: string;
6
+ navigationType?: 'NEW_WINDOW' | 'HISTORY_PUSH';
7
+ allowClipboard?: boolean;
8
+ }
9
+ export default function ExpandableListItemLink({ label, value, link, navigationType, allowClipboard, }: Props): ReactElement | null;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ interface Props {
3
+ children?: ReactNode | ReactNode[];
4
+ }
5
+ export default function ExpandableListItemNote({ children }: Props): ReactElement | null;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ alt: string;
4
+ src: string | undefined;
5
+ maxHeight?: string;
6
+ maxWidth?: string;
7
+ }
8
+ export declare function FitImage(props: Props): ReactElement;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from 'react';
2
+ import { HISTORY_KEYS } from '../utils/local-storage';
3
+ interface Props {
4
+ title: string;
5
+ localStorageKey: HISTORY_KEYS;
6
+ }
7
+ export declare function History({ title, localStorageKey }: Props): ReactElement | null;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ children: string;
4
+ }
5
+ export declare function HistoryHeader({ children }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function Loading(): ReactElement;
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ value: string;
4
+ label: string;
5
+ }
6
+ export default function QRCodeModal(props: Props): ReactElement;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { ReactElement } from 'react';
2
+ export default function SideBar(): ReactElement;
@@ -0,0 +1,9 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ interface Props {
3
+ iconStart?: ReactNode;
4
+ iconEnd?: ReactNode;
5
+ path?: string;
6
+ label: ReactNode;
7
+ }
8
+ export default function SideBarItem({ iconStart, iconEnd, path, label }: Props): ReactElement;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ path?: string;
4
+ }
5
+ export default function SideBarItem({ path }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { ReactElement } from 'react';
2
+ interface Props {
3
+ isOk: boolean;
4
+ isLoading?: boolean;
5
+ size?: number | string;
6
+ className?: string;
7
+ }
8
+ export default function StatusIcon({ isOk, size, className, isLoading }: Props): ReactElement;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ children: ReactElement | ReactElement[];
4
+ }
5
+ export declare function StripedWrapper({ children }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,12 @@
1
+ import React, { ReactElement } from 'react';
2
+ import { IconProps } from 'react-feather';
3
+ interface Props {
4
+ onClick: () => void;
5
+ iconType: React.ComponentType<IconProps>;
6
+ children: string;
7
+ className?: string;
8
+ disabled?: boolean;
9
+ loading?: boolean;
10
+ }
11
+ export declare function SwarmButton({ children, onClick, iconType, className, disabled, loading }: Props): ReactElement;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ interface TabsValues {
3
+ component: ReactNode;
4
+ label: ReactNode;
5
+ }
6
+ interface Props {
7
+ values: TabsValues[];
8
+ index?: number;
9
+ indexChanged?: (index: number) => void;
10
+ }
11
+ export default function SimpleTabs({ values, index, indexChanged }: Props): ReactElement;
12
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { Topology } from '@ethersphere/bee-js';
2
+ import type { ReactElement } from 'react';
3
+ interface Props {
4
+ topology: Topology | null;
5
+ }
6
+ declare const TopologyStats: (props: Props) => ReactElement;
7
+ export default TopologyStats;
@@ -0,0 +1,2 @@
1
+ import type { ReactElement } from 'react';
2
+ export default function TroubleshootConnectionCard(): ReactElement;
@@ -0,0 +1,14 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import type { BigNumber } from 'bignumber.js';
3
+ interface Props {
4
+ successMessage: string;
5
+ errorMessage: string;
6
+ dialogMessage: string;
7
+ label: string;
8
+ max?: BigNumber;
9
+ min?: BigNumber;
10
+ action: (amount: bigint) => Promise<string>;
11
+ icon?: ReactNode;
12
+ }
13
+ export default function WithdrawDepositModal({ successMessage, errorMessage, dialogMessage, min, max, label, action, icon, }: Props): ReactElement;
14
+ export {};
@@ -0,0 +1,11 @@
1
+ declare class Config {
2
+ readonly BEE_API_HOST: string;
3
+ readonly BEE_DEBUG_API_HOST: string;
4
+ readonly BLOCKCHAIN_EXPLORER_URL: string;
5
+ readonly BEE_DOCS_HOST: string;
6
+ readonly BEE_DISCORD_HOST: string;
7
+ readonly GITHUB_REPO_URL: string;
8
+ constructor();
9
+ }
10
+ export declare const config: Config;
11
+ export default config;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function DepositModal(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function WithdrawModal(): ReactElement;
@@ -0,0 +1,18 @@
1
+ import { BeeDebug } from '@ethersphere/bee-js';
2
+ import { Token } from '../models/Token';
3
+ import { Balance, Settlements } from '../types';
4
+ interface UseAccountingHook {
5
+ isLoadingUncashed: boolean;
6
+ totalUncashed: Token;
7
+ accounting: Accounting[] | null;
8
+ }
9
+ export interface Accounting {
10
+ peer: string;
11
+ uncashedAmount: Token;
12
+ balance: Token;
13
+ received: Token;
14
+ sent: Token;
15
+ total: Token;
16
+ }
17
+ export declare const useAccounting: (beeDebugApi: BeeDebug | null, settlements: Settlements | null, balances: Balance[] | null) => UseAccountingHook;
18
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface LatestBeeReleaseHook {
2
+ latestBeeRelease: LatestBeeRelease | null;
3
+ isLoadingLatestBeeRelease: boolean;
4
+ error: Error | null;
5
+ }
6
+ export declare const useLatestBeeRelease: () => LatestBeeReleaseHook;
@@ -0,0 +1 @@
1
+ import './index.css';
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ children?: ReactElement;
4
+ }
5
+ declare const Dashboard: (props: Props) => ReactElement;
6
+ export default Dashboard;
@@ -0,0 +1,25 @@
1
+ import { BigNumber } from 'bignumber.js';
2
+ declare const POSSIBLE_DECIMALS: number[];
3
+ declare type digits = typeof POSSIBLE_DECIMALS[number];
4
+ export declare class Token {
5
+ private amount;
6
+ private readonly decimals;
7
+ constructor(amount: BigNumber | string | BigInt, decimals?: digits);
8
+ /**
9
+ * Construct new Token from a digit representation
10
+ *
11
+ * @param amount Amount of a token in the digits (1 token = 10^decimals)
12
+ * @param decimals Number of decimals for the token (must be integer)
13
+ *
14
+ * @throws {TypeError} If the decimals is not an integer or the amount after conversion is not an integer
15
+ *
16
+ * @returns new Token
17
+ */
18
+ static fromDecimal(amount: BigNumber | string | BigInt, decimals?: digits): Token | never;
19
+ get toBigInt(): BigInt;
20
+ get toString(): string;
21
+ get toBigNumber(): BigNumber;
22
+ get toDecimal(): BigNumber;
23
+ toFixedDecimal(digits?: number): string;
24
+ }
25
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { ReactElement } from 'react';
2
+ import { Accounting } from '../../hooks/accounting';
3
+ import type { Token } from '../../models/Token';
4
+ interface Props {
5
+ isLoadingUncashed: boolean;
6
+ totalUncashed: Token;
7
+ accounting: Accounting[] | null;
8
+ }
9
+ export default function PeerBalances({ accounting, isLoadingUncashed, totalUncashed }: Props): ReactElement | null;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function Accounting(): ReactElement;
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ icon: ReactElement;
4
+ }
5
+ export declare function AssetIcon({ icon }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from 'react';
2
+ import { SwarmFile } from '../../utils/SwarmFile';
3
+ interface Props {
4
+ assetName?: string;
5
+ files: SwarmFile[];
6
+ }
7
+ export declare function AssetPreview({ assetName, files }: Props): ReactElement;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ hash: string;
4
+ }
5
+ export declare function AssetSummary({ hash }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function Download(): ReactElement;
@@ -0,0 +1,10 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ onOpen: () => void;
4
+ onDownload: () => void;
5
+ onCancel: () => void;
6
+ hasIndexDocument: boolean;
7
+ loading: boolean;
8
+ }
9
+ export declare function DownloadActionBar({ onOpen, onDownload, onCancel, hasIndexDocument, loading }: Props): ReactElement;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ active: 'UPLOAD' | 'DOWNLOAD';
4
+ }
5
+ export declare function FileNavigation({ active }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ import { EnrichedPostageBatch } from '../../providers/Stamps';
3
+ interface Props {
4
+ stamps: EnrichedPostageBatch[] | null;
5
+ selectedStamp: EnrichedPostageBatch | null;
6
+ setSelected: (stamp: EnrichedPostageBatch) => void;
7
+ }
8
+ export default function SimpleMenu({ stamps, selectedStamp, setSelected }: Props): ReactElement | null;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ import { RouteComponentProps } from 'react-router-dom';
3
+ interface MatchParams {
4
+ hash: string;
5
+ }
6
+ export declare function Share(props: RouteComponentProps<MatchParams>): ReactElement;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ import { EnrichedPostageBatch } from '../../providers/Stamps';
3
+ interface Props {
4
+ stamp: EnrichedPostageBatch;
5
+ }
6
+ export declare function StampPreview({ stamp }: Props): ReactElement;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function Upload(): ReactElement;
@@ -0,0 +1,13 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ canSelectStamp: boolean;
4
+ hasSelectedStamp: boolean;
5
+ onUpload: () => void;
6
+ onBuy: () => void;
7
+ onSelect: () => void;
8
+ onCancel: () => void;
9
+ onClearStamp: () => void;
10
+ isUploading: boolean;
11
+ }
12
+ export declare function UploadActionBar({ canSelectStamp, hasSelectedStamp, onUpload, onBuy, onSelect, onCancel, onClearStamp, isUploading, }: Props): ReactElement;
13
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ maximumSizeInBytes: number;
4
+ }
5
+ export declare function UploadArea({ maximumSizeInBytes }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function UploadLander(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function Status(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function Settings(): ReactElement;
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ onClose: () => void;
4
+ }
5
+ export declare function CreatePostageStampModal({ onClose }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from 'react';
2
+ import { EnrichedPostageBatch } from '../../providers/Stamps';
3
+ interface Props {
4
+ stamp: EnrichedPostageBatch;
5
+ shorten?: boolean;
6
+ }
7
+ export declare function PostageStamp({ stamp, shorten }: Props): ReactElement;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ import { EnrichedPostageBatch } from '../../providers/Stamps';
3
+ interface Props {
4
+ stamps: EnrichedPostageBatch[];
5
+ onSelect: (stamp: EnrichedPostageBatch) => void;
6
+ onClose: () => void;
7
+ }
8
+ export declare function SelectPostageStampModal({ stamps, onSelect, onClose }: Props): ReactElement;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { ReactElement } from 'react';
2
+ import { EnrichedPostageBatch } from '../../providers/Stamps';
3
+ interface Props {
4
+ postageStamps: EnrichedPostageBatch[] | null;
5
+ }
6
+ declare function StampsTable({ postageStamps }: Props): ReactElement | null;
7
+ export default StampsTable;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function Stamp(): ReactElement;