@ethersphere/bee-dashboard 0.19.0 → 0.19.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 (151) hide show
  1. package/build/asset-manifest.json +3 -3
  2. package/build/index.html +1 -1
  3. package/build/static/js/{main.712f4f3e.js → main.c3963f3e.js} +3 -3
  4. package/build/static/js/{main.712f4f3e.js.LICENSE.txt → main.c3963f3e.js.LICENSE.txt} +0 -0
  5. package/build/static/js/{main.712f4f3e.js.map → main.c3963f3e.js.map} +1 -1
  6. package/lib/App.js +1 -1
  7. package/lib/src/App.d.ts +10 -0
  8. package/lib/src/components/AlertUploadSize.d.ts +6 -0
  9. package/lib/src/components/Capacity.d.ts +7 -0
  10. package/lib/src/components/Card.d.ts +11 -0
  11. package/lib/src/components/CashoutModal.d.ts +7 -0
  12. package/lib/src/components/ClipboardCopy.d.ts +6 -0
  13. package/lib/src/components/CloseButton.d.ts +6 -0
  14. package/lib/src/components/Code.d.ts +7 -0
  15. package/lib/src/components/CodeBlock.d.ts +8 -0
  16. package/lib/src/components/CodeBlockTabs.d.ts +8 -0
  17. package/lib/src/components/DocumentationText.d.ts +6 -0
  18. package/lib/src/components/ErrorBoundary.d.ts +16 -0
  19. package/lib/src/components/EthereumAddress.d.ts +9 -0
  20. package/lib/src/components/ExpandableElement.d.ts +8 -0
  21. package/lib/src/components/ExpandableList.d.ts +10 -0
  22. package/lib/src/components/ExpandableListItem.d.ts +8 -0
  23. package/lib/src/components/ExpandableListItemActions.d.ts +6 -0
  24. package/lib/src/components/ExpandableListItemInput.d.ts +19 -0
  25. package/lib/src/components/ExpandableListItemKey.d.ts +8 -0
  26. package/lib/src/components/ExpandableListItemLink.d.ts +10 -0
  27. package/lib/src/components/ExpandableListItemNote.d.ts +6 -0
  28. package/lib/src/components/Feedback.d.ts +2 -0
  29. package/lib/src/components/FitImage.d.ts +9 -0
  30. package/lib/src/components/History.d.ts +8 -0
  31. package/lib/src/components/HistoryHeader.d.ts +6 -0
  32. package/lib/src/components/Loading.d.ts +2 -0
  33. package/lib/src/components/Map.d.ts +7 -0
  34. package/lib/src/components/ProgressIndicator.d.ts +7 -0
  35. package/lib/src/components/QRCodeModal.d.ts +7 -0
  36. package/lib/src/components/SideBar.d.ts +2 -0
  37. package/lib/src/components/SideBarItem.d.ts +10 -0
  38. package/lib/src/components/SideBarStatus.d.ts +6 -0
  39. package/lib/src/components/StatusIcon.d.ts +10 -0
  40. package/lib/src/components/StripedWrapper.d.ts +6 -0
  41. package/lib/src/components/SwarmButton.d.ts +10 -0
  42. package/lib/src/components/SwarmDialog.d.ts +6 -0
  43. package/lib/src/components/SwarmDivider.d.ts +9 -0
  44. package/lib/src/components/SwarmSelect.d.ts +19 -0
  45. package/lib/src/components/SwarmTextInput.d.ts +13 -0
  46. package/lib/src/components/TabsContainer.d.ts +12 -0
  47. package/lib/src/components/TitleWithClose.d.ts +7 -0
  48. package/lib/src/components/TopologyStats.d.ts +7 -0
  49. package/lib/src/components/TroubleshootConnectionCard.d.ts +2 -0
  50. package/lib/src/components/Waiting.d.ts +2 -0
  51. package/lib/src/components/WithdrawDepositModal.d.ts +14 -0
  52. package/lib/src/config.d.ts +16 -0
  53. package/lib/src/constants.d.ts +7 -0
  54. package/lib/src/containers/DepositModal.d.ts +2 -0
  55. package/lib/src/containers/WithdrawModal.d.ts +2 -0
  56. package/lib/src/hooks/accounting.d.ts +18 -0
  57. package/lib/src/hooks/apiHooks.d.ts +50 -0
  58. package/lib/src/hooks/apiHooks.test.d.ts +3 -0
  59. package/lib/src/index.d.ts +1 -0
  60. package/lib/src/layout/Dashboard.d.ts +6 -0
  61. package/lib/src/layout/ItsBroken.d.ts +6 -0
  62. package/lib/src/models/BzzToken.d.ts +5 -0
  63. package/lib/src/models/DaiToken.d.ts +5 -0
  64. package/lib/src/models/Token.d.ts +27 -0
  65. package/lib/src/models/Token.test.d.ts +1 -0
  66. package/lib/src/pages/account/AccountNavigation.d.ts +6 -0
  67. package/lib/src/pages/account/Header.d.ts +2 -0
  68. package/lib/src/pages/account/chequebook/AccountChequebook.d.ts +2 -0
  69. package/lib/src/pages/account/feeds/AccountFeeds.d.ts +2 -0
  70. package/lib/src/pages/account/stamps/AccountStamps.d.ts +2 -0
  71. package/lib/src/pages/account/wallet/AccountWallet.d.ts +2 -0
  72. package/lib/src/pages/accounting/PeerBalances.d.ts +10 -0
  73. package/lib/src/pages/feeds/CreateNewFeed.d.ts +2 -0
  74. package/lib/src/pages/feeds/DeleteFeedDialog.d.ts +9 -0
  75. package/lib/src/pages/feeds/ExportFeedDialog.d.ts +8 -0
  76. package/lib/src/pages/feeds/FeedPasswordDialog.d.ts +9 -0
  77. package/lib/src/pages/feeds/FeedSubpage.d.ts +2 -0
  78. package/lib/src/pages/feeds/ImportFeedDialog.d.ts +6 -0
  79. package/lib/src/pages/feeds/UpdateFeed.d.ts +2 -0
  80. package/lib/src/pages/feeds/index.d.ts +2 -0
  81. package/lib/src/pages/files/AssetIcon.d.ts +6 -0
  82. package/lib/src/pages/files/AssetPreview.d.ts +7 -0
  83. package/lib/src/pages/files/AssetSummary.d.ts +7 -0
  84. package/lib/src/pages/files/Download.d.ts +2 -0
  85. package/lib/src/pages/files/DownloadActionBar.d.ts +11 -0
  86. package/lib/src/pages/files/FileNavigation.d.ts +6 -0
  87. package/lib/src/pages/files/SelectStamp.d.ts +9 -0
  88. package/lib/src/pages/files/Share.d.ts +2 -0
  89. package/lib/src/pages/files/StampPreview.d.ts +7 -0
  90. package/lib/src/pages/files/Upload.d.ts +2 -0
  91. package/lib/src/pages/files/UploadActionBar.d.ts +16 -0
  92. package/lib/src/pages/files/UploadArea.d.ts +8 -0
  93. package/lib/src/pages/files/UploadLander.d.ts +2 -0
  94. package/lib/src/pages/gift-code/index.d.ts +2 -0
  95. package/lib/src/pages/info/NodeInfoCard.d.ts +2 -0
  96. package/lib/src/pages/info/index.d.ts +2 -0
  97. package/lib/src/pages/restart/LightModeRestart.d.ts +2 -0
  98. package/lib/src/pages/settings/index.d.ts +2 -0
  99. package/lib/src/pages/stamps/CreatePostageStampPage.d.ts +2 -0
  100. package/lib/src/pages/stamps/PostageStamp.d.ts +8 -0
  101. package/lib/src/pages/stamps/PostageStampCreation.d.ts +6 -0
  102. package/lib/src/pages/stamps/PostageStampSelector.d.ts +8 -0
  103. package/lib/src/pages/stamps/SelectPostageStampModal.d.ts +9 -0
  104. package/lib/src/pages/stamps/StampsTable.d.ts +7 -0
  105. package/lib/src/pages/stamps/index.d.ts +2 -0
  106. package/lib/src/pages/status/SetupSteps/ChequebookDeployFund.d.ts +3 -0
  107. package/lib/src/pages/status/SetupSteps/DebugConnectionCheck.d.ts +2 -0
  108. package/lib/src/pages/status/SetupSteps/EthereumConnectionCheck.d.ts +2 -0
  109. package/lib/src/pages/status/SetupSteps/NodeConnectionCheck.d.ts +2 -0
  110. package/lib/src/pages/status/SetupSteps/PeerConnection.d.ts +2 -0
  111. package/lib/src/pages/status/SetupSteps/VersionCheck.d.ts +2 -0
  112. package/lib/src/pages/status/index.d.ts +2 -0
  113. package/lib/src/pages/top-up/Balance.d.ts +9 -0
  114. package/lib/src/pages/top-up/BankCardTopUpIndex.d.ts +2 -0
  115. package/lib/src/pages/top-up/CryptoTopUpIndex.d.ts +2 -0
  116. package/lib/src/pages/top-up/GiftCardFund.d.ts +2 -0
  117. package/lib/src/pages/top-up/GiftCardTopUpIndex.d.ts +2 -0
  118. package/lib/src/pages/top-up/Swap.d.ts +6 -0
  119. package/lib/src/pages/top-up/TopUpProgressIndicator.d.ts +6 -0
  120. package/lib/src/pages/top-up/index.d.ts +2 -0
  121. package/lib/src/providers/Bee.d.ts +56 -0
  122. package/lib/src/providers/Feeds.d.ts +21 -0
  123. package/lib/src/providers/File.d.ts +22 -0
  124. package/lib/src/providers/Platform.d.ts +23 -0
  125. package/lib/src/providers/Settings.d.ts +33 -0
  126. package/lib/src/providers/Stamps.d.ts +23 -0
  127. package/lib/src/providers/TopUp.d.ts +13 -0
  128. package/lib/src/providers/WalletBalance.d.ts +18 -0
  129. package/lib/src/reportWebVitals.d.ts +3 -0
  130. package/lib/src/routes.d.ts +31 -0
  131. package/lib/src/setupTests.d.ts +1 -0
  132. package/lib/src/theme.d.ts +7 -0
  133. package/lib/src/types.d.ts +36 -0
  134. package/lib/src/utils/bzz-abi.d.ts +16 -0
  135. package/lib/src/utils/bzz-faucet.d.ts +1 -0
  136. package/lib/src/utils/chain.d.ts +1 -0
  137. package/lib/src/utils/date.d.ts +1 -0
  138. package/lib/src/utils/desktop.d.ts +18 -0
  139. package/lib/src/utils/file.d.ts +14 -0
  140. package/lib/src/utils/hash.d.ts +1 -0
  141. package/lib/src/utils/identity.d.ts +9 -0
  142. package/lib/src/utils/image.d.ts +27 -0
  143. package/lib/src/utils/index.d.ts +72 -0
  144. package/lib/src/utils/index.test.d.ts +1 -0
  145. package/lib/src/utils/local-storage.d.ts +12 -0
  146. package/lib/src/utils/net.d.ts +3 -0
  147. package/lib/src/utils/rpc.d.ts +24 -0
  148. package/lib/src/utils/sentry.d.ts +1 -0
  149. package/lib/src/utils/threshold.d.ts +22 -0
  150. package/lib/src/utils/wallet.d.ts +24 -0
  151. package/package.json +2 -2
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function Header(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function AccountChequebook(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function AccountFeeds(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function AccountStamps(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function AccountWallet(): ReactElement;
@@ -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 CreateNewFeed(): ReactElement;
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ import { Identity } from '../../providers/Feeds';
3
+ interface Props {
4
+ identity: Identity;
5
+ onConfirm: (identity: Identity) => void;
6
+ onClose: () => void;
7
+ }
8
+ export declare function DeleteFeedDialog({ identity, onConfirm, onClose }: Props): ReactElement;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from 'react';
2
+ import { Identity } from '../../providers/Feeds';
3
+ interface Props {
4
+ identity: Identity;
5
+ onClose: () => void;
6
+ }
7
+ export declare function ExportFeedDialog({ identity, onClose }: Props): ReactElement;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ feedName: string;
4
+ onProceed: (password: string) => void;
5
+ onCancel: () => void;
6
+ loading: boolean;
7
+ }
8
+ export declare function FeedPasswordDialog({ feedName, onProceed, onCancel, loading }: Props): ReactElement;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function FeedSubpage(): ReactElement;
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ onClose: () => void;
4
+ }
5
+ export declare function ImportFeedDialog({ onClose }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function UpdateFeed(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function Feeds(): 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,7 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ previewUri?: string;
4
+ metadata?: Metadata;
5
+ }
6
+ export declare function AssetPreview({ metadata, previewUri }: Props): ReactElement | null;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ isWebsite?: boolean;
4
+ reference: string;
5
+ }
6
+ export declare function AssetSummary({ isWebsite, reference }: Props): ReactElement;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function Download(): ReactElement;
@@ -0,0 +1,11 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ onOpen: () => void;
4
+ onCancel: () => void;
5
+ onDownload: () => void;
6
+ onUpdateFeed: () => void;
7
+ hasIndexDocument: boolean;
8
+ loading: boolean;
9
+ }
10
+ export declare function DownloadActionBar({ onOpen, onCancel, onDownload, onUpdateFeed, hasIndexDocument, loading, }: Props): ReactElement;
11
+ 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,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function Share(): ReactElement;
@@ -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,16 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ step: number;
4
+ onUpload: () => void;
5
+ onCancel: () => void;
6
+ onGoBack: () => void;
7
+ onProceed: () => void;
8
+ isUploading: boolean;
9
+ hasStamp: boolean;
10
+ hasAnyStamps: boolean;
11
+ uploadLabel: string;
12
+ stampMode: 'BUY' | 'SELECT';
13
+ setStampMode: (mode: 'BUY' | 'SELECT') => void;
14
+ }
15
+ export declare function UploadActionBar({ step, onUpload, onCancel, onGoBack, onProceed, isUploading, hasStamp, hasAnyStamps, uploadLabel, stampMode, setStampMode, }: Props): ReactElement;
16
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from 'react';
2
+ import { UploadOrigin } from '../../providers/File';
3
+ interface Props {
4
+ uploadOrigin: UploadOrigin;
5
+ showHelp: boolean;
6
+ }
7
+ export declare function UploadArea({ uploadOrigin, showHelp }: Props): ReactElement;
8
+ 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 Index(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function NodeInfoCard(): 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 LightModeRestart(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function SettingsPage(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function CreatePostageStampPage(): ReactElement;
@@ -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,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ onFinished: () => void;
4
+ }
5
+ export declare function PostageStampCreation({ onFinished }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from 'react';
2
+ import { EnrichedPostageBatch } from '../../providers/Stamps';
3
+ interface Props {
4
+ onSelect: (stamp: EnrichedPostageBatch) => void;
5
+ defaultValue?: string;
6
+ }
7
+ export declare function PostageStampSelector({ onSelect, defaultValue }: 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;
@@ -0,0 +1,3 @@
1
+ import type { ReactElement } from 'react';
2
+ declare const ChequebookDeployFund: () => ReactElement | null;
3
+ export default ChequebookDeployFund;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function NodeConnectionCheck(): ReactElement | null;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function EthereumConnectionCheck(): ReactElement | null;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function NodeConnectionCheck(): ReactElement | null;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function PeerConnection(): ReactElement | null;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function VersionCheck(): ReactElement | null;
@@ -0,0 +1,2 @@
1
+ import type { ReactElement } from 'react';
2
+ export default function NodeSetupWorkflow(): ReactElement;
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ header: string;
4
+ title: string;
5
+ p: ReactElement;
6
+ next: string;
7
+ }
8
+ export default function Index({ header, title, p, next }: Props): ReactElement;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function BankCardTopUpIndex(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function CryptoTopUpIndex(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function GiftCardFund(): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare function GiftCardTopUpIndex(): ReactElement;
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ header: string;
4
+ }
5
+ export declare function Swap({ header }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ interface Props {
3
+ index: number;
4
+ }
5
+ export declare function TopUpProgressIndicator({ index }: Props): ReactElement;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export default function TopUp(): ReactElement;
@@ -0,0 +1,56 @@
1
+ import { ChainState, ChequebookAddressResponse, Health, LastChequesResponse, NodeAddresses, NodeInfo, Peer, Topology } from '@ethersphere/bee-js';
2
+ import { ReactChild, ReactElement } from 'react';
3
+ import type { Balance, ChequebookBalance, Settlements } from '../types';
4
+ export declare enum CheckState {
5
+ OK = "OK",
6
+ WARNING = "Warning",
7
+ ERROR = "Error"
8
+ }
9
+ interface StatusItem {
10
+ isEnabled: boolean;
11
+ checkState: CheckState;
12
+ }
13
+ interface Status {
14
+ all: CheckState;
15
+ version: StatusItem;
16
+ blockchainConnection: StatusItem;
17
+ debugApiConnection: StatusItem;
18
+ apiConnection: StatusItem;
19
+ topology: StatusItem;
20
+ chequebook: StatusItem;
21
+ }
22
+ interface ContextInterface {
23
+ status: Status;
24
+ latestPublishedVersion?: string;
25
+ latestUserVersion?: string;
26
+ latestUserVersionExact?: string;
27
+ isLatestBeeVersion: boolean;
28
+ latestBeeVersionUrl: string;
29
+ error: Error | null;
30
+ apiHealth: boolean;
31
+ debugApiHealth: Health | null;
32
+ nodeAddresses: NodeAddresses | null;
33
+ nodeInfo: NodeInfo | null;
34
+ topology: Topology | null;
35
+ chequebookAddress: ChequebookAddressResponse | null;
36
+ peers: Peer[] | null;
37
+ chequebookBalance: ChequebookBalance | null;
38
+ peerBalances: Balance[] | null;
39
+ peerCheques: LastChequesResponse | null;
40
+ settlements: Settlements | null;
41
+ chainState: ChainState | null;
42
+ chainId: number | null;
43
+ latestBeeRelease: LatestBeeRelease | null;
44
+ isLoading: boolean;
45
+ lastUpdate: number | null;
46
+ start: (frequency?: number) => void;
47
+ stop: () => void;
48
+ refresh: () => Promise<void>;
49
+ }
50
+ export declare const Context: import("react").Context<ContextInterface>;
51
+ export declare const Consumer: import("react").Consumer<ContextInterface>;
52
+ interface Props {
53
+ children: ReactChild;
54
+ }
55
+ export declare function Provider({ children }: Props): ReactElement;
56
+ export {};
@@ -0,0 +1,21 @@
1
+ import { ReactChild, ReactElement } from 'react';
2
+ export declare type IdentityType = 'V3' | 'PRIVATE_KEY';
3
+ export interface Identity {
4
+ uuid: string;
5
+ name: string;
6
+ feedHash?: string;
7
+ identity: string;
8
+ address: string;
9
+ type: IdentityType;
10
+ }
11
+ interface ContextInterface {
12
+ identities: Identity[];
13
+ setIdentities: (identities: Identity[]) => void;
14
+ }
15
+ export declare const Context: import("react").Context<ContextInterface>;
16
+ export declare const Consumer: import("react").Consumer<ContextInterface>;
17
+ interface Props {
18
+ children: ReactChild;
19
+ }
20
+ export declare function Provider({ children }: Props): ReactElement;
21
+ export {};
@@ -0,0 +1,22 @@
1
+ import { ReactChild, ReactElement } from 'react';
2
+ export declare type UploadOrigin = {
3
+ origin: 'UPLOAD' | 'FEED';
4
+ uuid?: string;
5
+ };
6
+ export declare const defaultUploadOrigin: UploadOrigin;
7
+ interface ContextInterface {
8
+ files: FilePath[];
9
+ setFiles: (files: FilePath[]) => void;
10
+ uploadOrigin: UploadOrigin;
11
+ setUploadOrigin: (uploadOrigin: UploadOrigin) => void;
12
+ metadata?: Metadata;
13
+ previewUri?: string;
14
+ previewBlob?: Blob;
15
+ }
16
+ export declare const Context: import("react").Context<ContextInterface>;
17
+ export declare const Consumer: import("react").Consumer<ContextInterface>;
18
+ interface Props {
19
+ children: ReactChild;
20
+ }
21
+ export declare function Provider({ children }: Props): ReactElement;
22
+ export {};
@@ -0,0 +1,23 @@
1
+ import { ReactChild, ReactElement } from 'react';
2
+ export declare enum Platforms {
3
+ macOS = 0,
4
+ Linux = 1,
5
+ Windows = 2,
6
+ iOS = 3,
7
+ Android = 4
8
+ }
9
+ export declare enum SupportedPlatforms {
10
+ macOS = 0,
11
+ Linux = 1
12
+ }
13
+ interface ContextInterface {
14
+ platform: SupportedPlatforms;
15
+ setPlatform: (platform: SupportedPlatforms) => void;
16
+ }
17
+ export declare const Context: import("react").Context<ContextInterface>;
18
+ export declare const Consumer: import("react").Consumer<ContextInterface>;
19
+ interface Props {
20
+ children: ReactChild;
21
+ }
22
+ export declare function Provider({ children }: Props): ReactElement;
23
+ export {};
@@ -0,0 +1,33 @@
1
+ import { Bee, BeeDebug } from '@ethersphere/bee-js';
2
+ import { providers } from 'ethers';
3
+ import { ReactNode, ReactElement } from 'react';
4
+ interface ContextInterface {
5
+ apiUrl: string;
6
+ apiDebugUrl: string;
7
+ beeApi: Bee | null;
8
+ beeDebugApi: BeeDebug | null;
9
+ lockedApiSettings: boolean;
10
+ desktopApiKey: string;
11
+ providerUrl: string;
12
+ provider: providers.JsonRpcProvider;
13
+ cors: string | null;
14
+ dataDir: string | null;
15
+ ensResolver: string | null;
16
+ setApiUrl: (url: string) => void;
17
+ setDebugApiUrl: (url: string) => void;
18
+ setAndPersistJsonRpcProvider: (url: string) => Promise<void>;
19
+ isBeeDesktop: boolean;
20
+ isLoading: boolean;
21
+ error: Error | null;
22
+ }
23
+ export declare const Context: import("react").Context<ContextInterface>;
24
+ export declare const Consumer: import("react").Consumer<ContextInterface>;
25
+ interface Props {
26
+ children: ReactNode;
27
+ beeApiUrl?: string;
28
+ beeDebugApiUrl?: string;
29
+ lockedApiSettings?: boolean;
30
+ isBeeDesktop?: boolean;
31
+ }
32
+ export declare function Provider({ children, beeApiUrl, beeDebugApiUrl, lockedApiSettings: extLockedApiSettings, isBeeDesktop: extIsBeeDesktop, }: Props): ReactElement;
33
+ export {};
@@ -0,0 +1,23 @@
1
+ import { PostageBatch } from '@ethersphere/bee-js';
2
+ import { ReactChild, ReactElement } from 'react';
3
+ export interface EnrichedPostageBatch extends PostageBatch {
4
+ usage: number;
5
+ usageText: string;
6
+ }
7
+ interface ContextInterface {
8
+ stamps: EnrichedPostageBatch[] | null;
9
+ error: Error | null;
10
+ isLoading: boolean;
11
+ lastUpdate: number | null;
12
+ start: (frequency?: number) => void;
13
+ stop: () => void;
14
+ refresh: () => Promise<void>;
15
+ }
16
+ export declare const Context: import("react").Context<ContextInterface>;
17
+ export declare const Consumer: import("react").Consumer<ContextInterface>;
18
+ interface Props {
19
+ children: ReactChild;
20
+ }
21
+ export declare function enrichStamp(postageBatch: PostageBatch): EnrichedPostageBatch;
22
+ export declare function Provider({ children }: Props): ReactElement;
23
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Wallet } from 'ethers';
2
+ import { ReactElement } from 'react';
3
+ interface ContextInterface {
4
+ giftWallets: Wallet[];
5
+ addGiftWallet: (wallet: Wallet) => void;
6
+ }
7
+ export declare const Context: import("react").Context<ContextInterface>;
8
+ export declare const Consumer: import("react").Consumer<ContextInterface>;
9
+ interface Props {
10
+ children: ReactElement;
11
+ }
12
+ export declare function Provider({ children }: Props): ReactElement;
13
+ export {};
@@ -0,0 +1,18 @@
1
+ import { ReactChild, ReactElement } from 'react';
2
+ import { WalletAddress } from '../utils/wallet';
3
+ interface ContextInterface {
4
+ balance: WalletAddress | null;
5
+ error: Error | null;
6
+ isLoading: boolean;
7
+ lastUpdate: number | null;
8
+ start: (frequency?: number) => void;
9
+ stop: () => void;
10
+ refresh: () => Promise<void>;
11
+ }
12
+ export declare const Context: import("react").Context<ContextInterface>;
13
+ export declare const Consumer: import("react").Consumer<ContextInterface>;
14
+ interface Props {
15
+ children: ReactChild;
16
+ }
17
+ export declare function Provider({ children }: Props): ReactElement;
18
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ReportHandler } from 'web-vitals';
2
+ declare const reportWebVitals: (onPerfEntry?: ReportHandler) => void;
3
+ export default reportWebVitals;
@@ -0,0 +1,31 @@
1
+ import { ReactElement } from 'react';
2
+ export declare enum ROUTES {
3
+ INFO = "/",
4
+ FILES = "/files",
5
+ UPLOAD = "/files/upload",
6
+ UPLOAD_IN_PROGRESS = "/files/upload/workflow",
7
+ DOWNLOAD = "/files/download",
8
+ HASH = "/files/hash/:hash",
9
+ SETTINGS = "/settings",
10
+ STATUS = "/status",
11
+ TOP_UP = "/account/wallet/top-up",
12
+ TOP_UP_CRYPTO = "/account/wallet/top-up/crypto",
13
+ TOP_UP_CRYPTO_SWAP = "/account/wallet/top-up/crypto/swap",
14
+ TOP_UP_BANK_CARD = "/account/wallet/top-up/bank-card",
15
+ TOP_UP_BANK_CARD_SWAP = "/account/wallet/top-up/bank-card/swap",
16
+ TOP_UP_GIFT_CODE = "/account/wallet/top-up/gift-code",
17
+ TOP_UP_GIFT_CODE_FUND = "/account/wallet/top-up/gift-code/fund/:privateKeyString",
18
+ RESTART_LIGHT = "/light-mode-restart",
19
+ ACCOUNT_WALLET = "/account/wallet",
20
+ ACCOUNT_CHEQUEBOOK = "/account/chequebook",
21
+ ACCOUNT_STAMPS = "/account/stamps",
22
+ ACCOUNT_STAMPS_NEW = "/account/stamps/new",
23
+ ACCOUNT_FEEDS = "/account/feeds",
24
+ ACCOUNT_FEEDS_NEW = "/account/feeds/new",
25
+ ACCOUNT_FEEDS_UPDATE = "/account/feeds/update/:hash",
26
+ ACCOUNT_FEEDS_VIEW = "/account/feeds/:uuid",
27
+ ACCOUNT_INVITATIONS = "/account/invitations"
28
+ }
29
+ export declare const ACCOUNT_TABS: ROUTES[];
30
+ declare const BaseRouter: () => ReactElement;
31
+ export default BaseRouter;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,7 @@
1
+ import { Theme } from '@material-ui/core/styles';
2
+ declare module '@material-ui/core/styles/createPalette' {
3
+ interface TypeBackground {
4
+ appBar: string;
5
+ }
6
+ }
7
+ export declare const theme: Theme;