@xyo-network/react-wallet 5.3.1 → 5.3.3
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/types/contexts/SeedPhrase/Context.d.ts +34 -2
- package/dist/types/contexts/SeedPhrase/Context.d.ts.map +1 -1
- package/dist/types/contexts/SeedPhrase/use.d.ts +1 -1
- package/dist/types/contexts/SeedPhrase/use.d.ts.map +1 -1
- package/dist/types/contexts/Wallet/Context.d.ts +16 -2
- package/dist/types/contexts/Wallet/Context.d.ts.map +1 -1
- package/dist/types/contexts/Wallet/use.d.ts +1 -1
- package/dist/types/contexts/Wallet/use.d.ts.map +1 -1
- package/package.json +14 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SeedPhraseContext: import("react").Context<{
|
|
1
|
+
export declare const SeedPhraseContext: import("react").Context<({
|
|
2
2
|
handleCancelOverwrite?: () => void;
|
|
3
3
|
handleChangeSeedPhrase?: (value: string) => void;
|
|
4
4
|
handleClear?: () => void;
|
|
@@ -14,5 +14,37 @@ export declare const SeedPhraseContext: import("react").Context<{
|
|
|
14
14
|
validate?: (passedPhrase?: string) => boolean | null;
|
|
15
15
|
} & {
|
|
16
16
|
provided: true;
|
|
17
|
-
}
|
|
17
|
+
}) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").ProvidedContextExState<{
|
|
18
|
+
handleCancelOverwrite?: () => void;
|
|
19
|
+
handleChangeSeedPhrase?: (value: string) => void;
|
|
20
|
+
handleClear?: () => void;
|
|
21
|
+
handleGenerate?: () => void;
|
|
22
|
+
handleSave?: () => void;
|
|
23
|
+
overwriteWarning?: boolean;
|
|
24
|
+
phrase?: string;
|
|
25
|
+
seedPhrase?: string;
|
|
26
|
+
setOverwriteWarning?: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
27
|
+
setPhrase?: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
28
|
+
validPhrase?: boolean | null;
|
|
29
|
+
validSeedPhrase?: boolean | null;
|
|
30
|
+
validate?: (passedPhrase?: string) => boolean | null;
|
|
31
|
+
}>, never> & {
|
|
32
|
+
provided: false;
|
|
33
|
+
}) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").NotProvidedContextExState<{
|
|
34
|
+
handleCancelOverwrite?: () => void;
|
|
35
|
+
handleChangeSeedPhrase?: (value: string) => void;
|
|
36
|
+
handleClear?: () => void;
|
|
37
|
+
handleGenerate?: () => void;
|
|
38
|
+
handleSave?: () => void;
|
|
39
|
+
overwriteWarning?: boolean;
|
|
40
|
+
phrase?: string;
|
|
41
|
+
seedPhrase?: string;
|
|
42
|
+
setOverwriteWarning?: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
43
|
+
setPhrase?: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
44
|
+
validPhrase?: boolean | null;
|
|
45
|
+
validSeedPhrase?: boolean | null;
|
|
46
|
+
validate?: (passedPhrase?: string) => boolean | null;
|
|
47
|
+
}>, never> & {
|
|
48
|
+
provided: false;
|
|
49
|
+
})>;
|
|
18
50
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/SeedPhrase/Context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;4BAC8Y,CAAC;;;
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/SeedPhrase/Context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;4BAC8Y,CAAC;;;;;;;;;;;;;;;;4BAAD,CAAC;;;;;;;;;;;;;;;;4BAAD,CAAC;;;GADnW,CAAA"}
|
|
@@ -14,5 +14,5 @@ export declare const useSeedPhrase: () => Omit<{
|
|
|
14
14
|
validate?: (passedPhrase?: string) => boolean | null;
|
|
15
15
|
} & {
|
|
16
16
|
provided: true;
|
|
17
|
-
}, "provided"> | Omit<
|
|
17
|
+
}, "provided"> | Omit<import("@xylabs/react-shared").NotProvidedContextExState<import("./State.ts").SeedPhraseContextState>, "provided">;
|
|
18
18
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/SeedPhrase/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;;;;;;;4BACiZ,CAAC;;;
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/SeedPhrase/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;;;;;;;4BACiZ,CAAC;;;wIADtV,CAAA"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
export declare const WalletContext: import("react").Context<{
|
|
1
|
+
export declare const WalletContext: import("react").Context<({
|
|
2
2
|
activeAccount?: import("@xyo-network/wallet-model").WalletInstance | null;
|
|
3
3
|
activeAccountIndex?: number;
|
|
4
4
|
rootWallet?: import("@xyo-network/wallet-model").WalletInstance | null;
|
|
5
5
|
setActiveAccountIndex?: import("react").Dispatch<number>;
|
|
6
6
|
} & {
|
|
7
7
|
provided: true;
|
|
8
|
-
}
|
|
8
|
+
}) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").ProvidedContextExState<{
|
|
9
|
+
activeAccount?: import("@xyo-network/wallet-model").WalletInstance | null;
|
|
10
|
+
activeAccountIndex?: number;
|
|
11
|
+
rootWallet?: import("@xyo-network/wallet-model").WalletInstance | null;
|
|
12
|
+
setActiveAccountIndex?: import("react").Dispatch<number>;
|
|
13
|
+
}>, never> & {
|
|
14
|
+
provided: false;
|
|
15
|
+
}) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").NotProvidedContextExState<{
|
|
16
|
+
activeAccount?: import("@xyo-network/wallet-model").WalletInstance | null;
|
|
17
|
+
activeAccountIndex?: number;
|
|
18
|
+
rootWallet?: import("@xyo-network/wallet-model").WalletInstance | null;
|
|
19
|
+
setActiveAccountIndex?: import("react").Dispatch<number>;
|
|
20
|
+
}>, never> & {
|
|
21
|
+
provided: false;
|
|
22
|
+
})>;
|
|
9
23
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Wallet/Context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Wallet/Context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;GAAwC,CAAA"}
|
|
@@ -6,7 +6,7 @@ export declare const useWalletContext: (required?: boolean) => Omit<{
|
|
|
6
6
|
setActiveAccountIndex?: import("react").Dispatch<number>;
|
|
7
7
|
} & {
|
|
8
8
|
provided: true;
|
|
9
|
-
}, "provided"> | Omit<
|
|
9
|
+
}, "provided"> | Omit<import("@xylabs/react-shared").NotProvidedContextExState<import("./State.ts").WalletContextState>, "provided">;
|
|
10
10
|
export declare const useWalletProvided: () => boolean;
|
|
11
11
|
export declare const useRootWallet: (required?: boolean) => [WalletInstance | null | undefined, Error | undefined];
|
|
12
12
|
export declare const useIndexedWalletFromContext: (index: number, required?: boolean) => [WalletInstance | null | undefined, Error | undefined];
|
|
@@ -1 +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;;;;;;;
|
|
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;;;;;;;oIAE/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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-wallet",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.3",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -42,19 +42,19 @@
|
|
|
42
42
|
"@scure/bip39": "^1.6.0",
|
|
43
43
|
"@xylabs/enum": "^4.9.15",
|
|
44
44
|
"@xylabs/eth-address": "^4.9.15",
|
|
45
|
-
"@xylabs/react-button": "^6.3.
|
|
46
|
-
"@xylabs/react-crypto": "^6.3.
|
|
47
|
-
"@xylabs/react-flexbox": "^6.3.
|
|
48
|
-
"@xylabs/react-hooks": "^6.3.
|
|
49
|
-
"@xylabs/react-identicon": "^6.3.
|
|
50
|
-
"@xylabs/react-number-status": "^6.3.
|
|
51
|
-
"@xylabs/react-promise": "^6.3.
|
|
52
|
-
"@xylabs/react-quick-tip-button": "^6.3.
|
|
53
|
-
"@xylabs/react-select": "^6.3.
|
|
54
|
-
"@xylabs/react-shared": "^6.3.
|
|
45
|
+
"@xylabs/react-button": "^6.3.1",
|
|
46
|
+
"@xylabs/react-crypto": "^6.3.1",
|
|
47
|
+
"@xylabs/react-flexbox": "^6.3.1",
|
|
48
|
+
"@xylabs/react-hooks": "^6.3.1",
|
|
49
|
+
"@xylabs/react-identicon": "^6.3.1",
|
|
50
|
+
"@xylabs/react-number-status": "^6.3.1",
|
|
51
|
+
"@xylabs/react-promise": "^6.3.1",
|
|
52
|
+
"@xylabs/react-quick-tip-button": "^6.3.1",
|
|
53
|
+
"@xylabs/react-select": "^6.3.1",
|
|
54
|
+
"@xylabs/react-shared": "^6.3.1",
|
|
55
55
|
"@xyo-network/account-model": "^3.15.5",
|
|
56
|
-
"@xyo-network/react-address-render": "^5.3.
|
|
57
|
-
"@xyo-network/react-network": "^5.3.
|
|
56
|
+
"@xyo-network/react-address-render": "^5.3.3",
|
|
57
|
+
"@xyo-network/react-network": "^5.3.3",
|
|
58
58
|
"@xyo-network/wallet": "^3.15.5",
|
|
59
59
|
"@xyo-network/wallet-model": "^3.15.5",
|
|
60
60
|
"async-mutex": "^0.5.0"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@types/react": "^19.1.4",
|
|
67
67
|
"@xylabs/ts-scripts-yarn3": "^6.5.5",
|
|
68
68
|
"@xylabs/tsconfig-react": "^6.5.5",
|
|
69
|
-
"@xyo-network/react-storybook": "^5.3.
|
|
69
|
+
"@xyo-network/react-storybook": "^5.3.3",
|
|
70
70
|
"react": "^19.1.0",
|
|
71
71
|
"react-dom": "^19.1.0",
|
|
72
72
|
"react-router-dom": "^7.6.0",
|