@kodiak-finance/orderly-ui-connector 2.8.18 → 2.8.19
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/index.d.mts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +920 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +909 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -34,6 +34,13 @@ declare const useWalletConnectorBuilder: () => {
|
|
|
34
34
|
readonly showRefCodeInput: boolean;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Hook to check if the user is authenticated and authorized
|
|
39
|
+
* @param status - Required account status to be satisfied. If not provided, defaults to EnableTrading or EnableTradingWithoutConnected based on current state
|
|
40
|
+
* @returns boolean indicating if the user meets the authentication requirements
|
|
41
|
+
*/
|
|
42
|
+
declare const useAuthGuard: (status?: AccountStatusEnum) => boolean;
|
|
43
|
+
|
|
37
44
|
type alertMessages = {
|
|
38
45
|
connectWallet?: string;
|
|
39
46
|
switchChain?: string;
|
|
@@ -107,4 +114,12 @@ declare const AuthGuardTooltip: {
|
|
|
107
114
|
displayName: string;
|
|
108
115
|
};
|
|
109
116
|
|
|
110
|
-
|
|
117
|
+
declare enum AuthStatusEnum {
|
|
118
|
+
WrongNetwork = 0,
|
|
119
|
+
ConnectWallet = 1,
|
|
120
|
+
CreateAccount = 2,
|
|
121
|
+
EnableTrading = 3
|
|
122
|
+
}
|
|
123
|
+
declare const useAuthStatus: () => AuthStatusEnum;
|
|
124
|
+
|
|
125
|
+
export { AuthGuard, AuthGuardDataTable, AuthGuardEmpty, AuthGuardTooltip, AuthStatusEnum, WalletConnectContent, type WalletConnectContentProps, WalletConnectorModalId, WalletConnectorSheetId, WalletConnectorWidget, useAuthGuard, useAuthStatus, useWalletConnectorBuilder };
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,13 @@ declare const useWalletConnectorBuilder: () => {
|
|
|
34
34
|
readonly showRefCodeInput: boolean;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Hook to check if the user is authenticated and authorized
|
|
39
|
+
* @param status - Required account status to be satisfied. If not provided, defaults to EnableTrading or EnableTradingWithoutConnected based on current state
|
|
40
|
+
* @returns boolean indicating if the user meets the authentication requirements
|
|
41
|
+
*/
|
|
42
|
+
declare const useAuthGuard: (status?: AccountStatusEnum) => boolean;
|
|
43
|
+
|
|
37
44
|
type alertMessages = {
|
|
38
45
|
connectWallet?: string;
|
|
39
46
|
switchChain?: string;
|
|
@@ -107,4 +114,12 @@ declare const AuthGuardTooltip: {
|
|
|
107
114
|
displayName: string;
|
|
108
115
|
};
|
|
109
116
|
|
|
110
|
-
|
|
117
|
+
declare enum AuthStatusEnum {
|
|
118
|
+
WrongNetwork = 0,
|
|
119
|
+
ConnectWallet = 1,
|
|
120
|
+
CreateAccount = 2,
|
|
121
|
+
EnableTrading = 3
|
|
122
|
+
}
|
|
123
|
+
declare const useAuthStatus: () => AuthStatusEnum;
|
|
124
|
+
|
|
125
|
+
export { AuthGuard, AuthGuardDataTable, AuthGuardEmpty, AuthGuardTooltip, AuthStatusEnum, WalletConnectContent, type WalletConnectContentProps, WalletConnectorModalId, WalletConnectorSheetId, WalletConnectorWidget, useAuthGuard, useAuthStatus, useWalletConnectorBuilder };
|