@xyo-network/react-wallet 4.4.10 → 4.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/components/MaxAccounts/MaxAccountsTableRow.d.ts +9 -0
- package/dist/browser/components/MaxAccounts/MaxAccountsTableRow.d.ts.map +1 -0
- package/dist/browser/components/MaxAccounts/OutOfBoundsSnackBar.d.ts +11 -0
- package/dist/browser/components/MaxAccounts/OutOfBoundsSnackBar.d.ts.map +1 -0
- package/dist/browser/components/MaxAccounts/index.d.ts +2 -0
- package/dist/browser/components/MaxAccounts/index.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/DefaultSeedPhrase.d.ts +9 -0
- package/dist/browser/components/SeedPhrase/DefaultSeedPhrase.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/_shared/SeedPhraseIconButton.d.ts +4 -0
- package/dist/browser/components/SeedPhrase/_shared/SeedPhraseIconButton.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/_shared/index.d.ts +2 -0
- package/dist/browser/components/SeedPhrase/_shared/index.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/SeedPhraseDialog.d.ts +13 -0
- package/dist/browser/components/SeedPhrase/dialog/SeedPhraseDialog.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/components/DialogActionButtons.d.ts +8 -0
- package/dist/browser/components/SeedPhrase/dialog/components/DialogActionButtons.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/components/OverwriteWarning.d.ts +2 -0
- package/dist/browser/components/SeedPhrase/dialog/components/OverwriteWarning.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/NewPhraseTextField.d.ts +9 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/NewPhraseTextField.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/PhraseDialogActions.d.ts +2 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/PhraseDialogActions.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/SavedPhraseTextField.d.ts +10 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/SavedPhraseTextField.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/index.d.ts +5 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/index.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/validation-messages/InvalidPhrase.d.ts +4 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/validation-messages/InvalidPhrase.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/validation-messages/PhraseHeaderBox.d.ts +9 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/validation-messages/PhraseHeaderBox.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/validation-messages/colorParser.d.ts +2 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/validation-messages/colorParser.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/validation-messages/index.d.ts +4 -0
- package/dist/browser/components/SeedPhrase/dialog/components/fields/validation-messages/index.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/components/index.d.ts +4 -0
- package/dist/browser/components/SeedPhrase/dialog/components/index.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/dialog/index.d.ts +3 -0
- package/dist/browser/components/SeedPhrase/dialog/index.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/index.d.ts +5 -0
- package/dist/browser/components/SeedPhrase/index.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/settings/SeedPhraseTableRow.d.ts +8 -0
- package/dist/browser/components/SeedPhrase/settings/SeedPhraseTableRow.d.ts.map +1 -0
- package/dist/browser/components/SeedPhrase/settings/index.d.ts +2 -0
- package/dist/browser/components/SeedPhrase/settings/index.d.ts.map +1 -0
- package/dist/browser/components/WalletAccountDetails/WalletAccountDetails.d.ts +9 -0
- package/dist/browser/components/WalletAccountDetails/WalletAccountDetails.d.ts.map +1 -0
- package/dist/browser/components/WalletAccountDetails/index.d.ts +2 -0
- package/dist/browser/components/WalletAccountDetails/index.d.ts.map +1 -0
- package/dist/browser/components/WalletAccountSelect/Select.d.ts +11 -0
- package/dist/browser/components/WalletAccountSelect/Select.d.ts.map +1 -0
- package/dist/browser/components/WalletAccountSelect/SelectBar.d.ts +13 -0
- package/dist/browser/components/WalletAccountSelect/SelectBar.d.ts.map +1 -0
- package/dist/browser/components/WalletAccountSelect/WalletInfo.d.ts +17 -0
- package/dist/browser/components/WalletAccountSelect/WalletInfo.d.ts.map +1 -0
- package/dist/browser/components/WalletAccountSelect/index.d.ts +3 -0
- package/dist/browser/components/WalletAccountSelect/index.d.ts.map +1 -0
- package/dist/browser/components/WalletAccountSelect/stories/WalletProviderDecorator.d.ts +3 -0
- package/dist/browser/components/WalletAccountSelect/stories/WalletProviderDecorator.d.ts.map +1 -0
- package/dist/browser/components/WalletAccountSelect/stories/index.d.ts +2 -0
- package/dist/browser/components/WalletAccountSelect/stories/index.d.ts.map +1 -0
- package/dist/browser/components/index.d.ts +5 -0
- package/dist/browser/components/index.d.ts.map +1 -0
- package/dist/browser/contexts/SeedPhrase/Context.d.ts +3 -0
- package/dist/browser/contexts/SeedPhrase/Context.d.ts.map +1 -0
- package/dist/browser/contexts/SeedPhrase/Provider.d.ts +11 -0
- package/dist/browser/contexts/SeedPhrase/Provider.d.ts.map +1 -0
- package/dist/browser/contexts/SeedPhrase/State.d.ts +18 -0
- package/dist/browser/contexts/SeedPhrase/State.d.ts.map +1 -0
- package/dist/browser/contexts/SeedPhrase/index.d.ts +5 -0
- package/dist/browser/contexts/SeedPhrase/index.d.ts.map +1 -0
- package/dist/browser/contexts/SeedPhrase/use.d.ts +2 -0
- package/dist/browser/contexts/SeedPhrase/use.d.ts.map +1 -0
- package/dist/browser/contexts/Wallet/Context.d.ts +3 -0
- package/dist/browser/contexts/Wallet/Context.d.ts.map +1 -0
- package/dist/browser/contexts/Wallet/Provider.d.ts +9 -0
- package/dist/browser/contexts/Wallet/Provider.d.ts.map +1 -0
- package/dist/browser/contexts/Wallet/State.d.ts +14 -0
- package/dist/browser/contexts/Wallet/State.d.ts.map +1 -0
- package/dist/browser/contexts/Wallet/index.d.ts +5 -0
- package/dist/browser/contexts/Wallet/index.d.ts.map +1 -0
- package/dist/browser/contexts/Wallet/use.d.ts +7 -0
- package/dist/browser/contexts/Wallet/use.d.ts.map +1 -0
- package/dist/browser/contexts/Wallet/usePromise.d.ts +14 -0
- package/dist/browser/contexts/Wallet/usePromise.d.ts.map +1 -0
- package/dist/browser/contexts/index.d.ts +3 -0
- package/dist/browser/contexts/index.d.ts.map +1 -0
- package/dist/browser/hooks/index.d.ts +5 -0
- package/dist/browser/hooks/index.d.ts.map +1 -0
- package/dist/browser/hooks/useAccount.d.ts +10 -0
- package/dist/browser/hooks/useAccount.d.ts.map +1 -0
- package/dist/browser/hooks/useWallet.d.ts +10 -0
- package/dist/browser/hooks/useWallet.d.ts.map +1 -0
- package/dist/browser/hooks/useWallets.d.ts +7 -0
- package/dist/browser/hooks/useWallets.d.ts.map +1 -0
- package/dist/browser/hooks/useWrapperAccount.d.ts +4 -0
- package/dist/browser/hooks/useWrapperAccount.d.ts.map +1 -0
- package/dist/browser/index.d.ts +4 -176
- package/dist/browser/index.d.ts.map +1 -0
- package/package.json +24 -24
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TableRowProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface MaxAccountsTableRow extends TableRowProps {
|
|
4
|
+
activeAccountIndex?: number;
|
|
5
|
+
changeMaxAccounts?: (maxAccounts: number) => void;
|
|
6
|
+
maxAccounts?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const MaxAccountsTableRow: React.FC<MaxAccountsTableRow>;
|
|
9
|
+
//# sourceMappingURL=MaxAccountsTableRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaxAccountsTableRow.d.ts","sourceRoot":"","sources":["../../../../src/components/MaxAccounts/MaxAccountsTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAKlD,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyD7D,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SnackbarProps } from '@mui/material';
|
|
2
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface OutOfBoundsSnackBarProps extends SnackbarProps {
|
|
5
|
+
activeAccountIndex?: number;
|
|
6
|
+
desiredMaximumAccounts?: number;
|
|
7
|
+
setShowSnackBar?: Dispatch<SetStateAction<boolean>>;
|
|
8
|
+
showSnackBar?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const OutOfBoundsSnackBar: React.FC<OutOfBoundsSnackBarProps>;
|
|
11
|
+
//# sourceMappingURL=OutOfBoundsSnackBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutOfBoundsSnackBar.d.ts","sourceRoot":"","sources":["../../../../src/components/MaxAccounts/OutOfBoundsSnackBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAIlD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,wBAAyB,SAAQ,aAAa;IAC7D,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,eAAe,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAwBlE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/MaxAccounts/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface DefaultSeedPhraseProps extends PropsWithChildren {
|
|
4
|
+
changeSeedPhrase?: (seedPhrase: string) => void;
|
|
5
|
+
hideDefaultSeedPhraseMessage?: boolean;
|
|
6
|
+
seedPhrase?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DefaultSeedPhrase: React.FC<DefaultSeedPhraseProps>;
|
|
9
|
+
//# sourceMappingURL=DefaultSeedPhrase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultSeedPhrase.d.ts","sourceRoot":"","sources":["../../../../src/components/SeedPhrase/DefaultSeedPhrase.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAA4B,MAAM,OAAO,CAAA;AAEhD,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAiC9D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeedPhraseIconButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/SeedPhrase/_shared/SeedPhraseIconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAapD,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmC1D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SeedPhrase/_shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DialogProps } from '@mui/material';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface SeedPhraseDialogProps extends DialogProps {
|
|
5
|
+
changeSeedPhrase?: (value: string) => void;
|
|
6
|
+
dialogTitle?: ReactNode;
|
|
7
|
+
seedPhrase?: string;
|
|
8
|
+
seedPhraseTextFieldTitle?: ReactNode;
|
|
9
|
+
showCopyButton?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const SeedPhraseDialog: React.FC<SeedPhraseDialogProps>;
|
|
12
|
+
export declare const SeedPhraseDialogInner: React.FC<SeedPhraseDialogProps>;
|
|
13
|
+
//# sourceMappingURL=SeedPhraseDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeedPhraseDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/SeedPhrase/dialog/SeedPhraseDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAIhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAazB,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACxD,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wBAAwB,CAAC,EAAE,SAAS,CAAA;IACpC,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAa5D,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAuCjE,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DialogActionsProps, DialogProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface DialogActionButtonsProps extends DialogActionsProps {
|
|
4
|
+
onClose?: DialogProps['onClose'];
|
|
5
|
+
}
|
|
6
|
+
export declare const DialogActionButtons: React.FC<DialogActionButtonsProps>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=DialogActionButtons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DialogActionButtons.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SeedPhrase/dialog/components/DialogActionButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAGpE,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,UAAU,wBAAyB,SAAQ,kBAAkB;IAC3D,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;CACjC;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAmBlE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverwriteWarning.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SeedPhrase/dialog/components/OverwriteWarning.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,+CAoB5B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StandardTextFieldProps } from '@mui/material';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface NewPhraseTextFieldProps extends StandardTextFieldProps {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
disableColor?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const NewPhraseTextField: React.FC<NewPhraseTextFieldProps>;
|
|
9
|
+
//# sourceMappingURL=NewPhraseTextField.d.ts.map
|
package/dist/browser/components/SeedPhrase/dialog/components/fields/NewPhraseTextField.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewPhraseTextField.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/SeedPhrase/dialog/components/fields/NewPhraseTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA+BhE,CAAA"}
|
package/dist/browser/components/SeedPhrase/dialog/components/fields/PhraseDialogActions.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhraseDialogActions.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/SeedPhrase/dialog/components/fields/PhraseDialogActions.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB,+CAc/B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StandardTextFieldProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface SavedPhraseTextFieldProps extends StandardTextFieldProps {
|
|
4
|
+
fullWidth?: boolean;
|
|
5
|
+
showCopyButton?: boolean;
|
|
6
|
+
showPhraseHeader?: boolean;
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const SavedPhraseTextField: React.FC<SavedPhraseTextFieldProps>;
|
|
10
|
+
//# sourceMappingURL=SavedPhraseTextField.d.ts.map
|
package/dist/browser/components/SeedPhrase/dialog/components/fields/SavedPhraseTextField.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SavedPhraseTextField.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/SeedPhrase/dialog/components/fields/SavedPhraseTextField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAO3D,OAAO,KAA4B,MAAM,OAAO,CAAA;AAKhD,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACvE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAwFpE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/SeedPhrase/dialog/components/fields/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gCAAgC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvalidPhrase.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/SeedPhrase/dialog/components/fields/validation-messages/InvalidPhrase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAQ7D,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
|
+
import type { PropsWithChildren } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
interface PhraseHeaderBox extends FlexBoxProps, PropsWithChildren {
|
|
5
|
+
conditional?: boolean | null;
|
|
6
|
+
}
|
|
7
|
+
export declare const PhraseHeaderBox: React.FC<PhraseHeaderBox>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=PhraseHeaderBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhraseHeaderBox.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/SeedPhrase/dialog/components/fields/validation-messages/PhraseHeaderBox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAkB,MAAM,OAAO,CAAA;AAEtC,UAAU,eAAgB,SAAQ,YAAY,EAAE,iBAAiB;IAC/D,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;CAC7B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqCrD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorParser.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/SeedPhrase/dialog/components/fields/validation-messages/colorParser.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,cAAc,OAAO,GAAG,IAAI,oCAYvD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/SeedPhrase/dialog/components/fields/validation-messages/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SeedPhrase/dialog/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SeedPhrase/dialog/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SeedPhrase/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TableRowProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface SeedPhraseTableRowProps extends TableRowProps {
|
|
4
|
+
changeSeedPhrase?: (seedPhrase: string) => void;
|
|
5
|
+
seedPhrase?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SeedPhraseTableRow: React.FC<SeedPhraseTableRowProps>;
|
|
8
|
+
//# sourceMappingURL=SeedPhraseTableRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeedPhraseTableRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/SeedPhrase/settings/SeedPhraseTableRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAIlD,OAAO,KAAmB,MAAM,OAAO,CAAA;AAKvC,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA8BhE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SeedPhrase/settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
|
+
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface WalletAccountDetailsProps extends FlexBoxProps {
|
|
5
|
+
account?: WalletInstance;
|
|
6
|
+
exploreUrl?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const WalletAccountDetails: React.FC<WalletAccountDetailsProps>;
|
|
9
|
+
//# sourceMappingURL=WalletAccountDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletAccountDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/WalletAccountDetails/WalletAccountDetails.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAIzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAkBpE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/WalletAccountDetails/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SelectProps } from '@mui/material';
|
|
2
|
+
import type { AddressRenderRowBoxProps } from '@xyo-network/react-address-render';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
type SharedAddressRenderRowBoxProps = Pick<AddressRenderRowBoxProps, 'iconOnly' | 'iconSize' | 'icons' | 'showFavorite'>;
|
|
5
|
+
export type WalletAccountSelectProps = SharedAddressRenderRowBoxProps & Omit<SelectProps<number>, 'variant'> & Partial<SelectProps<number>> & {
|
|
6
|
+
addressNames?: Record<string, string | undefined>;
|
|
7
|
+
maxAccounts?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const WalletAccountSelect: React.FC<WalletAccountSelectProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/WalletAccountSelect/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAGhD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAEjF,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,KAAK,8BAA8B,GAAG,IAAI,CAAC,wBAAwB,EAAE,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,cAAc,CAAC,CAAA;AAExH,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,GACnE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,GACpC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,GAAG;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;IACjD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAMH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA8FlE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface WalletAccountSelectBarProps extends FlexBoxProps {
|
|
4
|
+
addressNames?: Record<string, string | undefined>;
|
|
5
|
+
iconOnly?: boolean;
|
|
6
|
+
iconSize?: number;
|
|
7
|
+
icons?: boolean;
|
|
8
|
+
maxAccounts?: number;
|
|
9
|
+
showFavorite?: boolean;
|
|
10
|
+
size?: 'small' | 'medium';
|
|
11
|
+
}
|
|
12
|
+
export declare const WalletAccountSelectBar: React.FC<WalletAccountSelectBarProps>;
|
|
13
|
+
//# sourceMappingURL=SelectBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectBar.d.ts","sourceRoot":"","sources":["../../../../src/components/WalletAccountSelect/SelectBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;CAC1B;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAyBxE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
|
+
import type { AccountInstance } from '@xyo-network/account-model';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface WalletErrorProps {
|
|
5
|
+
error?: Error;
|
|
6
|
+
}
|
|
7
|
+
export declare const WalletError: React.FC<WalletErrorProps>;
|
|
8
|
+
export interface WalletIdenticonProps {
|
|
9
|
+
account?: AccountInstance | null;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const WalletIdenticon: React.FC<WalletIdenticonProps>;
|
|
13
|
+
export declare const RootWalletInfo: React.FC<FlexBoxProps>;
|
|
14
|
+
export declare const SelectedWalletInfo: React.FC<FlexBoxProps>;
|
|
15
|
+
export declare const WalletInfo: React.FC<FlexBoxProps>;
|
|
16
|
+
export declare const AccountInfo: React.FC<FlexBoxProps>;
|
|
17
|
+
//# sourceMappingURL=WalletInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/WalletAccountSelect/WalletInfo.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAIzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAA;CACd;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAmBlD,CAAA;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;IAChC,IAAI,EAAE,MAAM,CAAA;CACb;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA+B1D,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAQjD,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAQrD,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAQ7C,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAQ9C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/WalletAccountSelect/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletProviderDecorator.d.ts","sourceRoot":"","sources":["../../../../../src/components/WalletAccountSelect/stories/WalletProviderDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAOjD,eAAO,MAAM,uBAAuB,EAAE,SAQrC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/WalletAccountSelect/stories/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/SeedPhrase/Context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAExD,eAAO,MAAM,iBAAiB,sGAA4C,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface SeedPhraseProviderProps extends PropsWithChildren {
|
|
4
|
+
defaultPhrase?: string;
|
|
5
|
+
handleChangeSeedPhrase?: (phrase: string) => void;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
saveCallback?: () => void;
|
|
8
|
+
seedPhrase?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const SeedPhraseProvider: React.FC<SeedPhraseProviderProps>;
|
|
11
|
+
//# sourceMappingURL=Provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/SeedPhrase/Provider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAEN,MAAM,OAAO,CAAA;AAId,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,sBAAsB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AASD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAuFhE,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ContextExState } from '@xyo-network/react-shared';
|
|
2
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
export interface SeedPhraseContextState extends ContextExState {
|
|
4
|
+
handleCancelOverwrite?: () => void;
|
|
5
|
+
handleChangeSeedPhrase?: (value: string) => void;
|
|
6
|
+
handleClear?: () => void;
|
|
7
|
+
handleGenerate?: () => void;
|
|
8
|
+
handleSave?: () => void;
|
|
9
|
+
overwriteWarning?: boolean;
|
|
10
|
+
phrase?: string;
|
|
11
|
+
seedPhrase?: string;
|
|
12
|
+
setOverwriteWarning?: Dispatch<SetStateAction<boolean>>;
|
|
13
|
+
setPhrase?: Dispatch<SetStateAction<string | undefined>>;
|
|
14
|
+
validPhrase?: boolean | null;
|
|
15
|
+
validSeedPhrase?: boolean | null;
|
|
16
|
+
validate?: (passedPhrase?: string) => boolean | null;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=State.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/SeedPhrase/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAErD,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;IAClC,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mBAAmB,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IACvD,SAAS,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IACxD,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAC5B,eAAe,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAChC,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAA;CACrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/SeedPhrase/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/SeedPhrase/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,0HAA4D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Wallet/Context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,eAAO,MAAM,aAAa,kGAAwC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
2
|
+
import type { PropsWithChildren } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface WalletProviderProps {
|
|
5
|
+
defaultActiveAccountIndex?: number;
|
|
6
|
+
rootWallet?: WalletInstance | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const WalletProvider: React.FC<PropsWithChildren<WalletProviderProps>>;
|
|
9
|
+
//# sourceMappingURL=Provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Wallet/Provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAkB,MAAM,OAAO,CAAA;AAItC,MAAM,WAAW,mBAAmB;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CACnC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CA6B3E,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ContextExState } from '@xyo-network/react-shared';
|
|
2
|
+
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
3
|
+
import type { Dispatch } from 'react';
|
|
4
|
+
export interface WalletContextState extends ContextExState {
|
|
5
|
+
/** Currently selected account */
|
|
6
|
+
activeAccount?: WalletInstance | null;
|
|
7
|
+
/** Currently selected index */
|
|
8
|
+
activeAccountIndex?: number;
|
|
9
|
+
/** The root wallet being used */
|
|
10
|
+
rootWallet?: WalletInstance | null;
|
|
11
|
+
/** Set currently selected index */
|
|
12
|
+
setActiveAccountIndex?: Dispatch<number>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=State.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Wallet/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,iCAAiC;IACjC,aAAa,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACrC,+BAA+B;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,iCAAiC;IACjC,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IAClC,mCAAmC;IACnC,qBAAqB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Wallet/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
2
|
+
export declare const useWalletContext: (required?: boolean) => Omit<import("./State.ts").WalletContextState & import("@xyo-network/react-shared").ContextExState, "provided">;
|
|
3
|
+
export declare const useWalletProvided: () => boolean;
|
|
4
|
+
export declare const useRootWallet: (required?: boolean) => [WalletInstance | null | undefined, Error | undefined];
|
|
5
|
+
export declare const useIndexedWalletFromContext: (index: number, required?: boolean) => [WalletInstance | null | undefined, Error | undefined];
|
|
6
|
+
export declare const useSelectedWalletAccount: (required?: boolean) => [WalletInstance | null | undefined, Error | undefined];
|
|
7
|
+
//# sourceMappingURL=use.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Wallet/use.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAI/D,eAAO,MAAM,gBAAgB,GAAI,kBAAe,mHAE/C,CAAA;AAED,eAAO,MAAM,iBAAiB,eAE7B,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,kBAAe,KAAG,CAAC,cAAc,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAGpG,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAI,OAAO,MAAM,EAAE,kBAAe,KAAG,CAAC,cAAc,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAIjI,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAI,kBAAe,KAAG,CAAC,cAAc,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAM/G,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { EnumValue } from '@xylabs/enum';
|
|
2
|
+
import { Enum } from '@xylabs/enum';
|
|
3
|
+
import type { DependencyList } from 'react';
|
|
4
|
+
export declare const State: Enum<{
|
|
5
|
+
pending: "pending";
|
|
6
|
+
rejected: "rejected";
|
|
7
|
+
resolved: "resolved";
|
|
8
|
+
}>;
|
|
9
|
+
export type State = EnumValue<typeof State>;
|
|
10
|
+
/**
|
|
11
|
+
* usePromise -
|
|
12
|
+
*/
|
|
13
|
+
export declare const usePromise: <TResult>(promise: () => Promise<TResult | undefined>, dependencies: DependencyList, debug?: string | undefined) => [TResult | undefined, Error | undefined, State | undefined];
|
|
14
|
+
//# sourceMappingURL=usePromise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePromise.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Wallet/usePromise.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAK3C,eAAO,MAAM,KAAK;;;;EAIhB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,KAAK,CAAC,CAAA;AAE3C;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,EAChC,SAAS,MAAM,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,EAC3C,cAAc,cAAc,EAC5B,QAAO,MAAM,GAAG,SAAqB,KACpC,CAAC,OAAO,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CA6D5D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AccountInstance } from '@xyo-network/account-model';
|
|
2
|
+
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
3
|
+
export interface AccountHookParams {
|
|
4
|
+
account?: AccountInstance;
|
|
5
|
+
index?: number;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
wallet?: WalletInstance;
|
|
8
|
+
}
|
|
9
|
+
export declare const useAccount: ({ wallet, account, index, required, }?: AccountHookParams) => [AccountInstance | null | undefined, Error | undefined];
|
|
10
|
+
//# sourceMappingURL=useAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAccount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAO/D,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,cAAc,CAAA;CACxB;AAED,eAAO,MAAM,UAAU,GAAI,wCAExB,iBAAsB,KAAG,CAC1B,eAAe,GAAG,IAAI,GAAG,SAAS,EAClC,KAAK,GAAG,SAAS,CA2ClB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
2
|
+
export interface WalletHookParams {
|
|
3
|
+
mnemonic?: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
seed?: ArrayBufferLike | string;
|
|
7
|
+
wallet?: WalletInstance | null;
|
|
8
|
+
}
|
|
9
|
+
export declare const useWallet: ({ mnemonic, wallet, path, required, seed, }?: WalletHookParams) => [WalletInstance | null | undefined, Error | undefined];
|
|
10
|
+
//# sourceMappingURL=useWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWallet.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWallet.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAK/D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,eAAe,GAAG,MAAM,CAAA;IAC/B,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CAC/B;AAED,eAAO,MAAM,SAAS,GAAI,8CAEvB,gBAAqB,KAAG,CACzB,cAAc,GAAG,IAAI,GAAG,SAAS,EACjC,KAAK,GAAG,SAAS,CAwBlB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
2
|
+
export interface WalletsHookParams {
|
|
3
|
+
paths: string[];
|
|
4
|
+
wallet?: WalletInstance | null;
|
|
5
|
+
}
|
|
6
|
+
export declare const useWallets: ({ wallet, paths }: WalletsHookParams) => [WalletInstance[] | null | undefined, Error | undefined];
|
|
7
|
+
//# sourceMappingURL=useWallets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWallets.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWallets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAK/D,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CAC/B;AAED,eAAO,MAAM,UAAU,GAAI,mBAAmB,iBAAiB,KAAG,CAAC,cAAc,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAQxH,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { UsePromiseState } from '@xylabs/react-promise';
|
|
2
|
+
import type { AccountInstance } from '@xyo-network/account-model';
|
|
3
|
+
export declare const useWrapperAccount: (account?: AccountInstance | null) => [AccountInstance | null | undefined, Error | undefined, UsePromiseState | undefined];
|
|
4
|
+
//# sourceMappingURL=useWrapperAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWrapperAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWrapperAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAG5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAOjE,eAAO,MAAM,iBAAiB,GAC5B,UAAU,eAAe,GAAG,IAAI,KAC/B,CAAC,eAAe,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,eAAe,GAAG,SAAS,CAsBrF,CAAA"}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,176 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
6
|
-
import { WalletInstance } from '@xyo-network/wallet-model';
|
|
7
|
-
import { AddressRenderRowBoxProps } from '@xyo-network/react-address-render';
|
|
8
|
-
import * as _xyo_network_react_shared from '@xyo-network/react-shared';
|
|
9
|
-
import { ContextExState } from '@xyo-network/react-shared';
|
|
10
|
-
import { AccountInstance } from '@xyo-network/account-model';
|
|
11
|
-
import { UsePromiseState } from '@xylabs/react-promise';
|
|
12
|
-
|
|
13
|
-
interface MaxAccountsTableRow extends TableRowProps {
|
|
14
|
-
activeAccountIndex?: number;
|
|
15
|
-
changeMaxAccounts?: (maxAccounts: number) => void;
|
|
16
|
-
maxAccounts?: number;
|
|
17
|
-
}
|
|
18
|
-
declare const MaxAccountsTableRow: React__default.FC<MaxAccountsTableRow>;
|
|
19
|
-
|
|
20
|
-
declare const SeedPhraseIconButton: React__default.FC<IconButtonProps>;
|
|
21
|
-
|
|
22
|
-
interface DefaultSeedPhraseProps extends PropsWithChildren {
|
|
23
|
-
changeSeedPhrase?: (seedPhrase: string) => void;
|
|
24
|
-
hideDefaultSeedPhraseMessage?: boolean;
|
|
25
|
-
seedPhrase?: string;
|
|
26
|
-
}
|
|
27
|
-
declare const DefaultSeedPhrase: React__default.FC<DefaultSeedPhraseProps>;
|
|
28
|
-
|
|
29
|
-
interface DialogActionButtonsProps extends DialogActionsProps {
|
|
30
|
-
onClose?: DialogProps['onClose'];
|
|
31
|
-
}
|
|
32
|
-
declare const DialogActionButtons: React__default.FC<DialogActionButtonsProps>;
|
|
33
|
-
|
|
34
|
-
interface NewPhraseTextFieldProps extends StandardTextFieldProps {
|
|
35
|
-
children?: ReactNode;
|
|
36
|
-
disableColor?: boolean;
|
|
37
|
-
}
|
|
38
|
-
declare const NewPhraseTextField: React__default.FC<NewPhraseTextFieldProps>;
|
|
39
|
-
|
|
40
|
-
declare const PhraseDialogActions: () => react_jsx_runtime.JSX.Element;
|
|
41
|
-
|
|
42
|
-
interface SavedPhraseTextFieldProps extends StandardTextFieldProps {
|
|
43
|
-
fullWidth?: boolean;
|
|
44
|
-
showCopyButton?: boolean;
|
|
45
|
-
showPhraseHeader?: boolean;
|
|
46
|
-
visible?: boolean;
|
|
47
|
-
}
|
|
48
|
-
declare const SavedPhraseTextField: React__default.FC<SavedPhraseTextFieldProps>;
|
|
49
|
-
|
|
50
|
-
declare const colorParser: (conditional?: boolean | null) => "error" | "success" | undefined;
|
|
51
|
-
|
|
52
|
-
declare const InvalidPhraseTypography: React__default.FC<TypographyProps>;
|
|
53
|
-
|
|
54
|
-
interface PhraseHeaderBox extends FlexBoxProps, PropsWithChildren {
|
|
55
|
-
conditional?: boolean | null;
|
|
56
|
-
}
|
|
57
|
-
declare const PhraseHeaderBox: React__default.FC<PhraseHeaderBox>;
|
|
58
|
-
|
|
59
|
-
declare const OverwriteWarning: () => react_jsx_runtime.JSX.Element;
|
|
60
|
-
|
|
61
|
-
interface SeedPhraseDialogProps extends DialogProps {
|
|
62
|
-
changeSeedPhrase?: (value: string) => void;
|
|
63
|
-
dialogTitle?: ReactNode;
|
|
64
|
-
seedPhrase?: string;
|
|
65
|
-
seedPhraseTextFieldTitle?: ReactNode;
|
|
66
|
-
showCopyButton?: boolean;
|
|
67
|
-
}
|
|
68
|
-
declare const SeedPhraseDialog: React__default.FC<SeedPhraseDialogProps>;
|
|
69
|
-
declare const SeedPhraseDialogInner: React__default.FC<SeedPhraseDialogProps>;
|
|
70
|
-
|
|
71
|
-
interface SeedPhraseTableRowProps extends TableRowProps {
|
|
72
|
-
changeSeedPhrase?: (seedPhrase: string) => void;
|
|
73
|
-
seedPhrase?: string;
|
|
74
|
-
}
|
|
75
|
-
declare const SeedPhraseTableRow: React__default.FC<SeedPhraseTableRowProps>;
|
|
76
|
-
|
|
77
|
-
interface WalletAccountDetailsProps extends FlexBoxProps {
|
|
78
|
-
account?: WalletInstance;
|
|
79
|
-
exploreUrl?: string;
|
|
80
|
-
}
|
|
81
|
-
declare const WalletAccountDetails: React__default.FC<WalletAccountDetailsProps>;
|
|
82
|
-
|
|
83
|
-
type SharedAddressRenderRowBoxProps = Pick<AddressRenderRowBoxProps, 'iconOnly' | 'iconSize' | 'icons' | 'showFavorite'>;
|
|
84
|
-
type WalletAccountSelectProps = SharedAddressRenderRowBoxProps & Omit<SelectProps<number>, 'variant'> & Partial<SelectProps<number>> & {
|
|
85
|
-
addressNames?: Record<string, string | undefined>;
|
|
86
|
-
maxAccounts?: number;
|
|
87
|
-
};
|
|
88
|
-
declare const WalletAccountSelect: React__default.FC<WalletAccountSelectProps>;
|
|
89
|
-
|
|
90
|
-
interface WalletAccountSelectBarProps extends FlexBoxProps {
|
|
91
|
-
addressNames?: Record<string, string | undefined>;
|
|
92
|
-
iconOnly?: boolean;
|
|
93
|
-
iconSize?: number;
|
|
94
|
-
icons?: boolean;
|
|
95
|
-
maxAccounts?: number;
|
|
96
|
-
showFavorite?: boolean;
|
|
97
|
-
size?: 'small' | 'medium';
|
|
98
|
-
}
|
|
99
|
-
declare const WalletAccountSelectBar: React__default.FC<WalletAccountSelectBarProps>;
|
|
100
|
-
|
|
101
|
-
interface SeedPhraseContextState extends ContextExState {
|
|
102
|
-
handleCancelOverwrite?: () => void;
|
|
103
|
-
handleChangeSeedPhrase?: (value: string) => void;
|
|
104
|
-
handleClear?: () => void;
|
|
105
|
-
handleGenerate?: () => void;
|
|
106
|
-
handleSave?: () => void;
|
|
107
|
-
overwriteWarning?: boolean;
|
|
108
|
-
phrase?: string;
|
|
109
|
-
seedPhrase?: string;
|
|
110
|
-
setOverwriteWarning?: Dispatch<SetStateAction<boolean>>;
|
|
111
|
-
setPhrase?: Dispatch<SetStateAction<string | undefined>>;
|
|
112
|
-
validPhrase?: boolean | null;
|
|
113
|
-
validSeedPhrase?: boolean | null;
|
|
114
|
-
validate?: (passedPhrase?: string) => boolean | null;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
declare const SeedPhraseContext: React.Context<SeedPhraseContextState & _xyo_network_react_shared.ContextExState>;
|
|
118
|
-
|
|
119
|
-
interface SeedPhraseProviderProps extends PropsWithChildren {
|
|
120
|
-
defaultPhrase?: string;
|
|
121
|
-
handleChangeSeedPhrase?: (phrase: string) => void;
|
|
122
|
-
open?: boolean;
|
|
123
|
-
saveCallback?: () => void;
|
|
124
|
-
seedPhrase?: string;
|
|
125
|
-
}
|
|
126
|
-
declare const SeedPhraseProvider: React__default.FC<SeedPhraseProviderProps>;
|
|
127
|
-
|
|
128
|
-
declare const useSeedPhrase: () => Omit<SeedPhraseContextState & _xyo_network_react_shared.ContextExState, "provided">;
|
|
129
|
-
|
|
130
|
-
interface WalletContextState extends ContextExState {
|
|
131
|
-
activeAccount?: WalletInstance | null;
|
|
132
|
-
activeAccountIndex?: number;
|
|
133
|
-
rootWallet?: WalletInstance | null;
|
|
134
|
-
setActiveAccountIndex?: Dispatch<number>;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
declare const WalletContext: React.Context<WalletContextState & _xyo_network_react_shared.ContextExState>;
|
|
138
|
-
|
|
139
|
-
interface WalletProviderProps {
|
|
140
|
-
defaultActiveAccountIndex?: number;
|
|
141
|
-
rootWallet?: WalletInstance | null;
|
|
142
|
-
}
|
|
143
|
-
declare const WalletProvider: React__default.FC<PropsWithChildren<WalletProviderProps>>;
|
|
144
|
-
|
|
145
|
-
declare const useWalletContext: (required?: boolean) => Omit<WalletContextState & _xyo_network_react_shared.ContextExState, "provided">;
|
|
146
|
-
declare const useWalletProvided: () => boolean;
|
|
147
|
-
declare const useRootWallet: (required?: boolean) => [WalletInstance | null | undefined, Error | undefined];
|
|
148
|
-
declare const useIndexedWalletFromContext: (index: number, required?: boolean) => [WalletInstance | null | undefined, Error | undefined];
|
|
149
|
-
declare const useSelectedWalletAccount: (required?: boolean) => [WalletInstance | null | undefined, Error | undefined];
|
|
150
|
-
|
|
151
|
-
interface AccountHookParams {
|
|
152
|
-
account?: AccountInstance;
|
|
153
|
-
index?: number;
|
|
154
|
-
required?: boolean;
|
|
155
|
-
wallet?: WalletInstance;
|
|
156
|
-
}
|
|
157
|
-
declare const useAccount: ({ wallet, account, index, required, }?: AccountHookParams) => [AccountInstance | null | undefined, Error | undefined];
|
|
158
|
-
|
|
159
|
-
interface WalletHookParams {
|
|
160
|
-
mnemonic?: string;
|
|
161
|
-
path?: string;
|
|
162
|
-
required?: boolean;
|
|
163
|
-
seed?: ArrayBufferLike | string;
|
|
164
|
-
wallet?: WalletInstance | null;
|
|
165
|
-
}
|
|
166
|
-
declare const useWallet: ({ mnemonic, wallet, path, required, seed, }?: WalletHookParams) => [WalletInstance | null | undefined, Error | undefined];
|
|
167
|
-
|
|
168
|
-
interface WalletsHookParams {
|
|
169
|
-
paths: string[];
|
|
170
|
-
wallet?: WalletInstance | null;
|
|
171
|
-
}
|
|
172
|
-
declare const useWallets: ({ wallet, paths }: WalletsHookParams) => [WalletInstance[] | null | undefined, Error | undefined];
|
|
173
|
-
|
|
174
|
-
declare const useWrapperAccount: (account?: AccountInstance | null) => [AccountInstance | null | undefined, Error | undefined, UsePromiseState | undefined];
|
|
175
|
-
|
|
176
|
-
export { type AccountHookParams, DefaultSeedPhrase, type DefaultSeedPhraseProps, DialogActionButtons, InvalidPhraseTypography, MaxAccountsTableRow, NewPhraseTextField, type NewPhraseTextFieldProps, OverwriteWarning, PhraseDialogActions, PhraseHeaderBox, SavedPhraseTextField, type SavedPhraseTextFieldProps, SeedPhraseContext, type SeedPhraseContextState, SeedPhraseDialog, SeedPhraseDialogInner, type SeedPhraseDialogProps, SeedPhraseIconButton, SeedPhraseProvider, type SeedPhraseProviderProps, SeedPhraseTableRow, type SeedPhraseTableRowProps, WalletAccountDetails, type WalletAccountDetailsProps, WalletAccountSelect, WalletAccountSelectBar, type WalletAccountSelectBarProps, type WalletAccountSelectProps, WalletContext, type WalletContextState, type WalletHookParams, WalletProvider, type WalletProviderProps, type WalletsHookParams, colorParser, useAccount, useIndexedWalletFromContext, useRootWallet, useSeedPhrase, useSelectedWalletAccount, useWallet, useWalletContext, useWalletProvided, useWallets, useWrapperAccount };
|
|
1
|
+
export * from './components/index.ts';
|
|
2
|
+
export * from './contexts/index.ts';
|
|
3
|
+
export * from './hooks/index.ts';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-wallet",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.11",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -44,38 +44,38 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@scure/bip39": "^1.5.4",
|
|
47
|
-
"@xylabs/enum": "^4.5.
|
|
48
|
-
"@xylabs/eth-address": "^4.5.
|
|
49
|
-
"@xylabs/react-button": "^5.3.
|
|
50
|
-
"@xylabs/react-crypto": "^5.3.
|
|
51
|
-
"@xylabs/react-flexbox": "^5.3.
|
|
52
|
-
"@xylabs/react-hooks": "^5.3.
|
|
53
|
-
"@xylabs/react-identicon": "^5.3.
|
|
54
|
-
"@xylabs/react-number-status": "^5.3.
|
|
55
|
-
"@xylabs/react-promise": "^5.3.
|
|
56
|
-
"@xylabs/react-quick-tip-button": "^5.3.
|
|
57
|
-
"@xylabs/react-select": "^5.3.
|
|
58
|
-
"@xyo-network/account": "^3.9.
|
|
59
|
-
"@xyo-network/account-model": "^3.9.
|
|
60
|
-
"@xyo-network/react-address-render": "^4.4.
|
|
61
|
-
"@xyo-network/react-network": "^4.4.
|
|
62
|
-
"@xyo-network/react-shared": "^4.4.
|
|
63
|
-
"@xyo-network/wallet-model": "^3.9.
|
|
47
|
+
"@xylabs/enum": "^4.5.6",
|
|
48
|
+
"@xylabs/eth-address": "^4.5.6",
|
|
49
|
+
"@xylabs/react-button": "^5.3.25",
|
|
50
|
+
"@xylabs/react-crypto": "^5.3.25",
|
|
51
|
+
"@xylabs/react-flexbox": "^5.3.25",
|
|
52
|
+
"@xylabs/react-hooks": "^5.3.25",
|
|
53
|
+
"@xylabs/react-identicon": "^5.3.25",
|
|
54
|
+
"@xylabs/react-number-status": "^5.3.25",
|
|
55
|
+
"@xylabs/react-promise": "^5.3.25",
|
|
56
|
+
"@xylabs/react-quick-tip-button": "^5.3.25",
|
|
57
|
+
"@xylabs/react-select": "^5.3.25",
|
|
58
|
+
"@xyo-network/account": "^3.9.25",
|
|
59
|
+
"@xyo-network/account-model": "^3.9.25",
|
|
60
|
+
"@xyo-network/react-address-render": "^4.4.11",
|
|
61
|
+
"@xyo-network/react-network": "^4.4.11",
|
|
62
|
+
"@xyo-network/react-shared": "^4.4.11",
|
|
63
|
+
"@xyo-network/wallet-model": "^3.9.25",
|
|
64
64
|
"async-mutex": "^0.5.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@mui/icons-material": "^6.4.6",
|
|
68
68
|
"@mui/material": "^6.4.6",
|
|
69
69
|
"@mui/styles": "^6.4.6",
|
|
70
|
-
"@storybook/react": "^8.6.
|
|
71
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
72
|
-
"@xylabs/tsconfig-react": "^5.0.
|
|
73
|
-
"@xyo-network/react-storybook": "^4.4.
|
|
70
|
+
"@storybook/react": "^8.6.3",
|
|
71
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.39",
|
|
72
|
+
"@xylabs/tsconfig-react": "^5.0.39",
|
|
73
|
+
"@xyo-network/react-storybook": "^4.4.11",
|
|
74
74
|
"react": "^18.3.1",
|
|
75
75
|
"react-dom": "^18.3.1",
|
|
76
76
|
"react-router-dom": "^7.2.0",
|
|
77
|
-
"storybook": "^8.6.
|
|
78
|
-
"typescript": "^5.
|
|
77
|
+
"storybook": "^8.6.3",
|
|
78
|
+
"typescript": "^5.8.2"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@mui/icons-material": "^6",
|