@openfort/react 1.4.0 → 1.5.0
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.
|
@@ -17,8 +17,14 @@
|
|
|
17
17
|
*
|
|
18
18
|
* ui.open(); // Opens modal with default route
|
|
19
19
|
* ui.close(); // Closes modal
|
|
20
|
-
* ui.openProfile(); // Opens
|
|
20
|
+
* ui.openProfile(); // Opens the connected wallet overview
|
|
21
|
+
* ui.openSend(); // Opens the Send flow
|
|
22
|
+
* ui.openFunding(); // Opens the Deposit (funding) hub
|
|
21
23
|
* ```
|
|
24
|
+
*
|
|
25
|
+
* The `open*` navigation helpers target connected-only screens. When called while
|
|
26
|
+
* the user is not connected they fall back to the login screen, so a caller can
|
|
27
|
+
* fire them directly and let the modal route the user through auth first.
|
|
22
28
|
*/
|
|
23
29
|
export declare function useUI(): {
|
|
24
30
|
isOpen: boolean;
|
|
@@ -29,4 +35,10 @@ export declare function useUI(): {
|
|
|
29
35
|
openSwitchNetworks: () => void;
|
|
30
36
|
openProviders: () => void;
|
|
31
37
|
openWallets: () => void;
|
|
38
|
+
openSend: () => void;
|
|
39
|
+
openReceive: () => void;
|
|
40
|
+
openFunding: () => void;
|
|
41
|
+
openBuy: () => void;
|
|
42
|
+
openExportKey: () => void;
|
|
43
|
+
openSettings: () => void;
|
|
32
44
|
};
|
|
@@ -20,6 +20,12 @@ const safeRoutes = {
|
|
|
20
20
|
{ route: routes.CONNECTORS, connectType: 'linkIfUserConnectIfNoUser' },
|
|
21
21
|
routes.ETH_SWITCH_NETWORK,
|
|
22
22
|
routes.PROVIDERS,
|
|
23
|
+
routes.PROFILE,
|
|
24
|
+
routes.SEND,
|
|
25
|
+
routes.RECEIVE,
|
|
26
|
+
routes.DEPOSIT,
|
|
27
|
+
routes.BUY,
|
|
28
|
+
routes.EXPORT_KEY,
|
|
23
29
|
],
|
|
24
30
|
};
|
|
25
31
|
/** Route can be selected by string (route name) or by object with `route` property */
|
|
@@ -51,8 +57,14 @@ function isAccountId(id) {
|
|
|
51
57
|
*
|
|
52
58
|
* ui.open(); // Opens modal with default route
|
|
53
59
|
* ui.close(); // Closes modal
|
|
54
|
-
* ui.openProfile(); // Opens
|
|
60
|
+
* ui.openProfile(); // Opens the connected wallet overview
|
|
61
|
+
* ui.openSend(); // Opens the Send flow
|
|
62
|
+
* ui.openFunding(); // Opens the Deposit (funding) hub
|
|
55
63
|
* ```
|
|
64
|
+
*
|
|
65
|
+
* The `open*` navigation helpers target connected-only screens. When called while
|
|
66
|
+
* the user is not connected they fall back to the login screen, so a caller can
|
|
67
|
+
* fire them directly and let the modal route the user through auth first.
|
|
56
68
|
*/
|
|
57
69
|
function useUI() {
|
|
58
70
|
var _a;
|
|
@@ -111,6 +123,12 @@ function useUI() {
|
|
|
111
123
|
openSwitchNetworks: () => gotoAndOpen(routes.ETH_SWITCH_NETWORK),
|
|
112
124
|
openProviders: () => gotoAndOpen(routes.PROVIDERS),
|
|
113
125
|
openWallets: () => gotoAndOpen({ route: routes.CONNECTORS, connectType: 'linkIfUserConnectIfNoUser' }),
|
|
126
|
+
openSend: () => gotoAndOpen(routes.SEND),
|
|
127
|
+
openReceive: () => gotoAndOpen(routes.RECEIVE),
|
|
128
|
+
openFunding: () => gotoAndOpen(routes.DEPOSIT),
|
|
129
|
+
openBuy: () => gotoAndOpen(routes.BUY),
|
|
130
|
+
openExportKey: () => gotoAndOpen(routes.EXPORT_KEY),
|
|
131
|
+
openSettings: () => gotoAndOpen(routes.PROFILE),
|
|
114
132
|
};
|
|
115
133
|
}
|
|
116
134
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUI.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUI.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const OPENFORT_VERSION = "1.
|
|
1
|
+
export declare const OPENFORT_VERSION = "1.5.0";
|
package/build/version.js
CHANGED