@mezo-org/passport 0.4.0-dev.1 → 0.4.0-dev.10
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/src/api/auth.d.ts +57 -52
- package/dist/src/api/auth.d.ts.map +1 -1
- package/dist/src/api/auth.js +22 -53
- package/dist/src/api/auth.js.map +1 -1
- package/dist/src/api/client.d.ts +24 -0
- package/dist/src/api/client.d.ts.map +1 -0
- package/dist/src/api/client.js +54 -0
- package/dist/src/api/client.js.map +1 -0
- package/dist/src/api/fetch-error.d.ts +5 -0
- package/dist/src/api/fetch-error.d.ts.map +1 -0
- package/dist/src/api/fetch-error.js +8 -0
- package/dist/src/api/fetch-error.js.map +1 -0
- package/dist/src/api/index.d.ts +3 -0
- package/dist/src/api/index.d.ts.map +1 -0
- package/dist/src/api/index.js +3 -0
- package/dist/src/api/index.js.map +1 -0
- package/dist/src/api/portal.d.ts +32 -0
- package/dist/src/api/portal.d.ts.map +1 -0
- package/dist/src/api/portal.js +23 -0
- package/dist/src/api/portal.js.map +1 -0
- package/dist/src/assets/DefaultAvatar.d.ts +5 -0
- package/dist/src/assets/DefaultAvatar.d.ts.map +1 -0
- package/dist/src/assets/DefaultAvatar.js +21 -0
- package/dist/src/assets/DefaultAvatar.js.map +1 -0
- package/dist/src/components/Dropdown/AccountAddress.d.ts +8 -0
- package/dist/src/components/Dropdown/AccountAddress.d.ts.map +1 -0
- package/dist/src/components/Dropdown/AccountAddress.js +66 -0
- package/dist/src/components/Dropdown/AccountAddress.js.map +1 -0
- package/dist/src/components/Dropdown/AccountAssets.d.ts +14 -0
- package/dist/src/components/Dropdown/AccountAssets.d.ts.map +1 -0
- package/dist/src/components/Dropdown/AccountAssets.js +44 -0
- package/dist/src/components/Dropdown/AccountAssets.js.map +1 -0
- package/dist/src/components/Dropdown/AccountBalance.d.ts +7 -0
- package/dist/src/components/Dropdown/AccountBalance.d.ts.map +1 -0
- package/dist/src/components/Dropdown/AccountBalance.js +18 -0
- package/dist/src/components/Dropdown/AccountBalance.js.map +1 -0
- package/dist/src/components/Dropdown/ConnectedTrigger.d.ts +7 -0
- package/dist/src/components/Dropdown/ConnectedTrigger.d.ts.map +1 -0
- package/dist/src/components/Dropdown/ConnectedTrigger.js +30 -0
- package/dist/src/components/Dropdown/ConnectedTrigger.js.map +1 -0
- package/dist/src/components/Dropdown/Content.d.ts +9 -0
- package/dist/src/components/Dropdown/Content.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Content.js +69 -0
- package/dist/src/components/Dropdown/Content.js.map +1 -0
- package/dist/src/components/Dropdown/DisconnectedTrigger.d.ts +7 -0
- package/dist/src/components/Dropdown/DisconnectedTrigger.d.ts.map +1 -0
- package/dist/src/components/Dropdown/DisconnectedTrigger.js +13 -0
- package/dist/src/components/Dropdown/DisconnectedTrigger.js.map +1 -0
- package/dist/src/components/Dropdown/Dropdown.d.ts +20 -0
- package/dist/src/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/src/components/Dropdown/Dropdown.js +64 -0
- package/dist/src/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/src/components/Dropdown/WelcomeBlock.d.ts +8 -0
- package/dist/src/components/Dropdown/WelcomeBlock.d.ts.map +1 -0
- package/dist/src/components/Dropdown/WelcomeBlock.js +44 -0
- package/dist/src/components/Dropdown/WelcomeBlock.js.map +1 -0
- package/dist/src/components/Dropdown/index.d.ts +3 -0
- package/dist/src/components/Dropdown/index.d.ts.map +1 -0
- package/dist/src/components/Dropdown/index.js +2 -0
- package/dist/src/components/Dropdown/index.js.map +1 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/components/index.js +2 -0
- package/dist/src/components/index.js.map +1 -0
- package/dist/src/hooks/constants.d.ts +3 -3
- package/dist/src/hooks/constants.js +4 -4
- package/dist/src/hooks/constants.js.map +1 -1
- package/dist/src/hooks/index.d.ts +1 -4
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/index.js +1 -4
- package/dist/src/hooks/index.js.map +1 -1
- package/dist/src/hooks/useAssetsUSDConversion.d.ts +8 -0
- package/dist/src/hooks/useAssetsUSDConversion.d.ts.map +1 -0
- package/dist/src/hooks/useAssetsUSDConversion.js +21 -0
- package/dist/src/hooks/useAssetsUSDConversion.js.map +1 -0
- package/dist/src/hooks/useAuthApiClient.d.ts +1 -1
- package/dist/src/hooks/useAuthApiClient.d.ts.map +1 -1
- package/dist/src/hooks/useAuthenticateWithWallet.d.ts +73 -0
- package/dist/src/hooks/useAuthenticateWithWallet.d.ts.map +1 -0
- package/dist/src/hooks/useAuthenticateWithWallet.js +69 -0
- package/dist/src/hooks/useAuthenticateWithWallet.js.map +1 -0
- package/dist/src/hooks/useCreateAccount.d.ts +41 -137
- package/dist/src/hooks/useCreateAccount.d.ts.map +1 -1
- package/dist/src/hooks/useCreateAccount.js +8 -10
- package/dist/src/hooks/useCreateAccount.js.map +1 -1
- package/dist/src/hooks/useCreateSession.d.ts +12 -182
- package/dist/src/hooks/useCreateSession.d.ts.map +1 -1
- package/dist/src/hooks/useCreateSession.js +12 -18
- package/dist/src/hooks/useCreateSession.js.map +1 -1
- package/dist/src/hooks/useDropdownData.d.ts +45 -0
- package/dist/src/hooks/useDropdownData.d.ts.map +1 -0
- package/dist/src/hooks/useDropdownData.js +74 -0
- package/dist/src/hooks/useDropdownData.js.map +1 -0
- package/dist/src/hooks/useEnsureNoSessionAndFetchNonce.d.ts +5 -0
- package/dist/src/hooks/useEnsureNoSessionAndFetchNonce.d.ts.map +1 -0
- package/dist/src/hooks/useEnsureNoSessionAndFetchNonce.js +34 -0
- package/dist/src/hooks/useEnsureNoSessionAndFetchNonce.js.map +1 -0
- package/dist/src/hooks/useGetAccountByAddress.d.ts +3 -5
- package/dist/src/hooks/useGetAccountByAddress.d.ts.map +1 -1
- package/dist/src/hooks/useGetAccountByAddress.js +3 -4
- package/dist/src/hooks/useGetAccountByAddress.js.map +1 -1
- package/dist/src/hooks/useGetAccountByMezoId.d.ts +3 -5
- package/dist/src/hooks/useGetAccountByMezoId.d.ts.map +1 -1
- package/dist/src/hooks/useGetAccountByMezoId.js +3 -4
- package/dist/src/hooks/useGetAccountByMezoId.js.map +1 -1
- package/dist/src/hooks/useGetCurrentAccount.d.ts +14 -8
- package/dist/src/hooks/useGetCurrentAccount.d.ts.map +1 -1
- package/dist/src/hooks/useGetCurrentAccount.js +28 -6
- package/dist/src/hooks/useGetCurrentAccount.js.map +1 -1
- package/dist/src/hooks/useGetSession.d.ts +3 -20
- package/dist/src/hooks/useGetSession.d.ts.map +1 -1
- package/dist/src/hooks/useGetSession.js +2 -2
- package/dist/src/hooks/useGetSession.js.map +1 -1
- package/dist/src/hooks/useLinkAccount.d.ts +15 -121
- package/dist/src/hooks/useLinkAccount.d.ts.map +1 -1
- package/dist/src/hooks/useLinkAccount.js +8 -21
- package/dist/src/hooks/useLinkAccount.js.map +1 -1
- package/dist/src/hooks/usePortalApiClient.d.ts +2 -0
- package/dist/src/hooks/usePortalApiClient.d.ts.map +1 -0
- package/dist/src/hooks/usePortalApiClient.js +6 -0
- package/dist/src/hooks/usePortalApiClient.js.map +1 -0
- package/dist/src/hooks/useSignInWithDiscord.d.ts +12 -181
- package/dist/src/hooks/useSignInWithDiscord.d.ts.map +1 -1
- package/dist/src/hooks/useSignInWithDiscord.js +11 -22
- package/dist/src/hooks/useSignInWithDiscord.js.map +1 -1
- package/dist/src/hooks/useSignInWithWallet.d.ts +12 -181
- package/dist/src/hooks/useSignInWithWallet.d.ts.map +1 -1
- package/dist/src/hooks/useSignInWithWallet.js +6 -43
- package/dist/src/hooks/useSignInWithWallet.js.map +1 -1
- package/dist/src/hooks/useSignOut.d.ts +12 -28
- package/dist/src/hooks/useSignOut.d.ts.map +1 -1
- package/dist/src/hooks/useSignOut.js +11 -6
- package/dist/src/hooks/useSignOut.js.map +1 -1
- package/dist/src/hooks/useSignUpWithWallet.d.ts +73 -0
- package/dist/src/hooks/useSignUpWithWallet.d.ts.map +1 -0
- package/dist/src/hooks/useSignUpWithWallet.js +11 -0
- package/dist/src/hooks/useSignUpWithWallet.js.map +1 -0
- package/dist/src/hooks/useUpdateMezoId.d.ts +30 -82
- package/dist/src/hooks/useUpdateMezoId.d.ts.map +1 -1
- package/dist/src/hooks/useUpdateMezoId.js +8 -12
- package/dist/src/hooks/useUpdateMezoId.js.map +1 -1
- package/dist/src/hooks/useWalletAccount.d.ts +12 -0
- package/dist/src/hooks/useWalletAccount.d.ts.map +1 -0
- package/dist/src/hooks/useWalletAccount.js +28 -0
- package/dist/src/hooks/useWalletAccount.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/provider.d.ts +10 -13
- package/dist/src/provider.d.ts.map +1 -1
- package/dist/src/provider.js +11 -20
- package/dist/src/provider.js.map +1 -1
- package/dist/src/utils/address.d.ts +15 -0
- package/dist/src/utils/address.d.ts.map +1 -0
- package/dist/src/utils/address.js +35 -0
- package/dist/src/utils/address.js.map +1 -0
- package/dist/src/utils/address.test.d.ts +2 -0
- package/dist/src/utils/address.test.d.ts.map +1 -0
- package/dist/src/utils/address.test.js +32 -0
- package/dist/src/utils/address.test.js.map +1 -0
- package/dist/src/utils/cryptoAssets.d.ts +28 -0
- package/dist/src/utils/cryptoAssets.d.ts.map +1 -0
- package/dist/src/utils/cryptoAssets.js +73 -0
- package/dist/src/utils/cryptoAssets.js.map +1 -0
- package/dist/src/utils/cryptoAssets.test.d.ts +2 -0
- package/dist/src/utils/cryptoAssets.test.d.ts.map +1 -0
- package/dist/src/utils/cryptoAssets.test.js +50 -0
- package/dist/src/utils/cryptoAssets.test.js.map +1 -0
- package/dist/src/utils/currency.d.ts +14 -0
- package/dist/src/utils/currency.d.ts.map +1 -0
- package/dist/src/utils/currency.js +27 -0
- package/dist/src/utils/currency.js.map +1 -0
- package/dist/src/utils/currency.test.d.ts +2 -0
- package/dist/src/utils/currency.test.d.ts.map +1 -0
- package/dist/src/utils/currency.test.js +34 -0
- package/dist/src/utils/currency.test.js.map +1 -0
- package/dist/src/utils/numbers.d.ts +26 -0
- package/dist/src/utils/numbers.d.ts.map +1 -0
- package/dist/src/utils/numbers.js +40 -0
- package/dist/src/utils/numbers.js.map +1 -0
- package/dist/src/utils/numbers.test.d.ts +2 -0
- package/dist/src/utils/numbers.test.d.ts.map +1 -0
- package/dist/src/utils/numbers.test.js +54 -0
- package/dist/src/utils/numbers.test.js.map +1 -0
- package/package.json +9 -3
- package/src/api/auth.ts +104 -129
- package/src/api/client.ts +78 -0
- package/src/api/fetch-error.ts +8 -0
- package/src/api/index.ts +2 -0
- package/src/api/portal.ts +56 -0
- package/src/assets/DefaultAvatar.tsx +74 -0
- package/src/components/Dropdown/AccountAddress.tsx +130 -0
- package/src/components/Dropdown/AccountAssets.tsx +110 -0
- package/src/components/Dropdown/AccountBalance.tsx +38 -0
- package/src/components/Dropdown/ConnectedTrigger.tsx +56 -0
- package/src/components/Dropdown/Content.tsx +148 -0
- package/src/components/Dropdown/DisconnectedTrigger.tsx +36 -0
- package/src/components/Dropdown/Dropdown.tsx +111 -0
- package/src/components/Dropdown/README.md +51 -0
- package/src/components/Dropdown/WelcomeBlock.tsx +92 -0
- package/src/components/Dropdown/index.ts +2 -0
- package/src/components/index.ts +1 -0
- package/src/hooks/constants.ts +4 -4
- package/src/hooks/index.ts +1 -4
- package/src/hooks/useAssetsUSDConversion.ts +31 -0
- package/src/hooks/useAuthenticateWithWallet.ts +98 -0
- package/src/hooks/useCreateAccount.ts +20 -11
- package/src/hooks/useCreateSession.ts +24 -18
- package/src/hooks/useDropdownData.ts +131 -0
- package/src/hooks/useEnsureNoSessionAndFetchNonce.ts +46 -0
- package/src/hooks/useGetAccountByAddress.ts +11 -5
- package/src/hooks/useGetAccountByMezoId.ts +11 -5
- package/src/hooks/useGetCurrentAccount.ts +53 -7
- package/src/hooks/useGetSession.ts +10 -3
- package/src/hooks/useLinkAccount.ts +19 -31
- package/src/hooks/usePortalApiClient.ts +6 -0
- package/src/hooks/useSignInWithDiscord.ts +19 -28
- package/src/hooks/useSignInWithWallet.ts +14 -54
- package/src/hooks/useSignOut.ts +22 -6
- package/src/hooks/useSignUpWithWallet.ts +21 -0
- package/src/hooks/useUpdateMezoId.ts +20 -12
- package/src/hooks/useWalletAccount.ts +53 -0
- package/src/index.ts +1 -0
- package/src/provider.ts +30 -37
- package/src/utils/address.test.ts +38 -0
- package/src/utils/address.ts +43 -0
- package/src/utils/cryptoAssets.test.ts +61 -0
- package/src/utils/cryptoAssets.ts +93 -0
- package/src/utils/currency.test.ts +38 -0
- package/src/utils/currency.ts +32 -0
- package/src/utils/numbers.test.ts +73 -0
- package/src/utils/numbers.ts +55 -0
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { MutationOptions, DefaultError } from "@tanstack/react-query";
|
|
2
|
+
import type { LinkAccountRequest, LinkAccountResponse } from "../api";
|
|
3
|
+
export declare function useLinkAccount(mutationOptions?: Omit<MutationOptions<LinkAccountResponse, DefaultError, LinkAccountRequest>, "mutationFn" | "mutationKey">): {
|
|
2
4
|
data: undefined;
|
|
3
5
|
variables: undefined;
|
|
4
6
|
error: null;
|
|
@@ -13,35 +15,11 @@ export declare function useLinkAccount(useMutationOptions?: {}): {
|
|
|
13
15
|
failureReason: Error | null;
|
|
14
16
|
isPaused: boolean;
|
|
15
17
|
submittedAt: number;
|
|
16
|
-
linkAccount: import("@tanstack/react-query").UseMutateFunction<
|
|
17
|
-
|
|
18
|
-
provider: "wallet" | "discord" | "email";
|
|
19
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
20
|
-
};
|
|
21
|
-
user_metadata: {
|
|
22
|
-
mezoId?: string | undefined;
|
|
23
|
-
btcAddress: string;
|
|
24
|
-
evmAddress: string;
|
|
25
|
-
};
|
|
26
|
-
} | {
|
|
27
|
-
redirectTo: string;
|
|
28
|
-
}, Error, import("../api/auth").CreateSessionRequest, unknown>;
|
|
29
|
-
linkAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
30
|
-
app_metadata: {
|
|
31
|
-
provider: "wallet" | "discord" | "email";
|
|
32
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
33
|
-
};
|
|
34
|
-
user_metadata: {
|
|
35
|
-
mezoId?: string | undefined;
|
|
36
|
-
btcAddress: string;
|
|
37
|
-
evmAddress: string;
|
|
38
|
-
};
|
|
39
|
-
} | {
|
|
40
|
-
redirectTo: string;
|
|
41
|
-
}, Error, import("../api/auth").CreateSessionRequest, unknown>;
|
|
18
|
+
linkAccount: import("@tanstack/react-query").UseMutateFunction<LinkAccountResponse, Error, import("../api").CreateSessionRequest, unknown>;
|
|
19
|
+
linkAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<LinkAccountResponse, Error, import("../api").CreateSessionRequest, unknown>;
|
|
42
20
|
} | {
|
|
43
21
|
data: undefined;
|
|
44
|
-
variables: import("../api
|
|
22
|
+
variables: import("../api").CreateSessionRequest;
|
|
45
23
|
error: null;
|
|
46
24
|
isError: false;
|
|
47
25
|
isIdle: false;
|
|
@@ -54,36 +32,12 @@ export declare function useLinkAccount(useMutationOptions?: {}): {
|
|
|
54
32
|
failureReason: Error | null;
|
|
55
33
|
isPaused: boolean;
|
|
56
34
|
submittedAt: number;
|
|
57
|
-
linkAccount: import("@tanstack/react-query").UseMutateFunction<
|
|
58
|
-
|
|
59
|
-
provider: "wallet" | "discord" | "email";
|
|
60
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
61
|
-
};
|
|
62
|
-
user_metadata: {
|
|
63
|
-
mezoId?: string | undefined;
|
|
64
|
-
btcAddress: string;
|
|
65
|
-
evmAddress: string;
|
|
66
|
-
};
|
|
67
|
-
} | {
|
|
68
|
-
redirectTo: string;
|
|
69
|
-
}, Error, import("../api/auth").CreateSessionRequest, unknown>;
|
|
70
|
-
linkAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
71
|
-
app_metadata: {
|
|
72
|
-
provider: "wallet" | "discord" | "email";
|
|
73
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
74
|
-
};
|
|
75
|
-
user_metadata: {
|
|
76
|
-
mezoId?: string | undefined;
|
|
77
|
-
btcAddress: string;
|
|
78
|
-
evmAddress: string;
|
|
79
|
-
};
|
|
80
|
-
} | {
|
|
81
|
-
redirectTo: string;
|
|
82
|
-
}, Error, import("../api/auth").CreateSessionRequest, unknown>;
|
|
35
|
+
linkAccount: import("@tanstack/react-query").UseMutateFunction<LinkAccountResponse, Error, import("../api").CreateSessionRequest, unknown>;
|
|
36
|
+
linkAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<LinkAccountResponse, Error, import("../api").CreateSessionRequest, unknown>;
|
|
83
37
|
} | {
|
|
84
38
|
data: undefined;
|
|
85
39
|
error: Error;
|
|
86
|
-
variables: import("../api
|
|
40
|
+
variables: import("../api").CreateSessionRequest;
|
|
87
41
|
isError: true;
|
|
88
42
|
isIdle: false;
|
|
89
43
|
isPending: false;
|
|
@@ -95,48 +49,12 @@ export declare function useLinkAccount(useMutationOptions?: {}): {
|
|
|
95
49
|
failureReason: Error | null;
|
|
96
50
|
isPaused: boolean;
|
|
97
51
|
submittedAt: number;
|
|
98
|
-
linkAccount: import("@tanstack/react-query").UseMutateFunction<
|
|
99
|
-
|
|
100
|
-
provider: "wallet" | "discord" | "email";
|
|
101
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
102
|
-
};
|
|
103
|
-
user_metadata: {
|
|
104
|
-
mezoId?: string | undefined;
|
|
105
|
-
btcAddress: string;
|
|
106
|
-
evmAddress: string;
|
|
107
|
-
};
|
|
108
|
-
} | {
|
|
109
|
-
redirectTo: string;
|
|
110
|
-
}, Error, import("../api/auth").CreateSessionRequest, unknown>;
|
|
111
|
-
linkAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
112
|
-
app_metadata: {
|
|
113
|
-
provider: "wallet" | "discord" | "email";
|
|
114
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
115
|
-
};
|
|
116
|
-
user_metadata: {
|
|
117
|
-
mezoId?: string | undefined;
|
|
118
|
-
btcAddress: string;
|
|
119
|
-
evmAddress: string;
|
|
120
|
-
};
|
|
121
|
-
} | {
|
|
122
|
-
redirectTo: string;
|
|
123
|
-
}, Error, import("../api/auth").CreateSessionRequest, unknown>;
|
|
52
|
+
linkAccount: import("@tanstack/react-query").UseMutateFunction<LinkAccountResponse, Error, import("../api").CreateSessionRequest, unknown>;
|
|
53
|
+
linkAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<LinkAccountResponse, Error, import("../api").CreateSessionRequest, unknown>;
|
|
124
54
|
} | {
|
|
125
|
-
data:
|
|
126
|
-
app_metadata: {
|
|
127
|
-
provider: "wallet" | "discord" | "email";
|
|
128
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
129
|
-
};
|
|
130
|
-
user_metadata: {
|
|
131
|
-
mezoId?: string | undefined;
|
|
132
|
-
btcAddress: string;
|
|
133
|
-
evmAddress: string;
|
|
134
|
-
};
|
|
135
|
-
} | {
|
|
136
|
-
redirectTo: string;
|
|
137
|
-
};
|
|
55
|
+
data: LinkAccountResponse;
|
|
138
56
|
error: null;
|
|
139
|
-
variables: import("../api
|
|
57
|
+
variables: import("../api").CreateSessionRequest;
|
|
140
58
|
isError: false;
|
|
141
59
|
isIdle: false;
|
|
142
60
|
isPending: false;
|
|
@@ -148,31 +66,7 @@ export declare function useLinkAccount(useMutationOptions?: {}): {
|
|
|
148
66
|
failureReason: Error | null;
|
|
149
67
|
isPaused: boolean;
|
|
150
68
|
submittedAt: number;
|
|
151
|
-
linkAccount: import("@tanstack/react-query").UseMutateFunction<
|
|
152
|
-
|
|
153
|
-
provider: "wallet" | "discord" | "email";
|
|
154
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
155
|
-
};
|
|
156
|
-
user_metadata: {
|
|
157
|
-
mezoId?: string | undefined;
|
|
158
|
-
btcAddress: string;
|
|
159
|
-
evmAddress: string;
|
|
160
|
-
};
|
|
161
|
-
} | {
|
|
162
|
-
redirectTo: string;
|
|
163
|
-
}, Error, import("../api/auth").CreateSessionRequest, unknown>;
|
|
164
|
-
linkAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
165
|
-
app_metadata: {
|
|
166
|
-
provider: "wallet" | "discord" | "email";
|
|
167
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
168
|
-
};
|
|
169
|
-
user_metadata: {
|
|
170
|
-
mezoId?: string | undefined;
|
|
171
|
-
btcAddress: string;
|
|
172
|
-
evmAddress: string;
|
|
173
|
-
};
|
|
174
|
-
} | {
|
|
175
|
-
redirectTo: string;
|
|
176
|
-
}, Error, import("../api/auth").CreateSessionRequest, unknown>;
|
|
69
|
+
linkAccount: import("@tanstack/react-query").UseMutateFunction<LinkAccountResponse, Error, import("../api").CreateSessionRequest, unknown>;
|
|
70
|
+
linkAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<LinkAccountResponse, Error, import("../api").CreateSessionRequest, unknown>;
|
|
177
71
|
};
|
|
178
72
|
//# sourceMappingURL=useLinkAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinkAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLinkAccount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLinkAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLinkAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EACf,YAAY,EACb,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAGrE,wBAAgB,cAAc,CAC5B,eAAe,GAAE,IAAI,CACnB,eAAe,CAAC,mBAAmB,EAAE,YAAY,EAAE,kBAAkB,CAAC,EACtE,YAAY,GAAG,aAAa,CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBP"}
|
|
@@ -1,31 +1,18 @@
|
|
|
1
|
-
import { useQueryClient, useMutation } from "@tanstack/react-query";
|
|
1
|
+
import { useQueryClient, useMutation, } from "@tanstack/react-query";
|
|
2
2
|
import { useAuthApiClient } from "./useAuthApiClient";
|
|
3
3
|
import { QUERY_KEYS } from "./constants";
|
|
4
|
-
export function useLinkAccount(
|
|
4
|
+
export function useLinkAccount(mutationOptions = {}) {
|
|
5
5
|
const queryClient = useQueryClient();
|
|
6
6
|
const authApiClient = useAuthApiClient();
|
|
7
|
+
const { onSuccess: customOnSuccess, ...restMutationOptions } = mutationOptions;
|
|
7
8
|
const { mutate, mutateAsync, ...rest } = useMutation({
|
|
8
9
|
mutationFn: (linkAccountRequest) => authApiClient.linkAccount(linkAccountRequest),
|
|
9
|
-
onSuccess: (data) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
queryClient.setQueryData([QUERY_KEYS.ACCOUNT_BY_ADDRESS, data.user_metadata.btcAddress], data);
|
|
15
|
-
queryClient.setQueryData([QUERY_KEYS.ACCOUNT_BY_ADDRESS, data.user_metadata.evmAddress], data);
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
queryClient.resetQueries({
|
|
19
|
-
queryKey: [QUERY_KEYS.ACCOUNT_BY_MEZO_ID],
|
|
20
|
-
exact: false,
|
|
21
|
-
});
|
|
22
|
-
queryClient.resetQueries({
|
|
23
|
-
queryKey: [QUERY_KEYS.ACCOUNT_BY_ADDRESS],
|
|
24
|
-
exact: false,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
10
|
+
onSuccess: (data, variables, context) => {
|
|
11
|
+
queryClient.resetQueries({ queryKey: [QUERY_KEYS.ACCOUNT] });
|
|
12
|
+
if (customOnSuccess)
|
|
13
|
+
customOnSuccess(data, variables, context);
|
|
27
14
|
},
|
|
28
|
-
...
|
|
15
|
+
...restMutationOptions,
|
|
29
16
|
});
|
|
30
17
|
return { linkAccount: mutate, linkAccountAsync: mutateAsync, ...rest };
|
|
31
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinkAccount.js","sourceRoot":"","sources":["../../../src/hooks/useLinkAccount.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useLinkAccount.js","sourceRoot":"","sources":["../../../src/hooks/useLinkAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,GAGZ,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,MAAM,UAAU,cAAc,CAC5B,kBAGI,EAAE;IAEN,MAAM,WAAW,GAAG,cAAc,EAAE,CAAA;IACpC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAA;IAExC,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,GAAG,mBAAmB,EAAE,GAAG,eAAe,CAAA;IAE9E,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,WAAW,CAAC;QACnD,UAAU,EAAE,CAAC,kBAAsC,EAAE,EAAE,CACrD,aAAa,CAAC,WAAW,CAAC,kBAAkB,CAAC;QAC/C,SAAS,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;YACtC,WAAW,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;YAC5D,IAAI,eAAe;gBAAE,eAAe,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;QAChE,CAAC;QACD,GAAG,mBAAmB;KACvB,CAAC,CAAA;IAEF,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,CAAA;AACxE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePortalApiClient.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePortalApiClient.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,qCAGjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePortalApiClient.js","sourceRoot":"","sources":["../../../src/hooks/usePortalApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,UAAU,kBAAkB;IAChC,MAAM,EAAE,eAAe,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAChD,OAAO,eAAe,CAAA;AACxB,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { MutationOptions } from "@tanstack/react-query";
|
|
2
|
+
import type { AuthenticationProviderRedirectResponse } from "../api";
|
|
3
|
+
declare function useSignInWithDiscord(mutationOptions?: Omit<MutationOptions<AuthenticationProviderRedirectResponse>, "mutationFn" | "mutationKey">): {
|
|
2
4
|
data: undefined;
|
|
3
5
|
variables: undefined;
|
|
4
6
|
error: null;
|
|
@@ -13,46 +15,8 @@ declare function useSignInWithDiscord(): {
|
|
|
13
15
|
failureReason: Error | null;
|
|
14
16
|
isPaused: boolean;
|
|
15
17
|
submittedAt: number;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
token_type: string;
|
|
19
|
-
expires_in: number;
|
|
20
|
-
expires_at: number;
|
|
21
|
-
refresh_token: string;
|
|
22
|
-
user: {
|
|
23
|
-
app_metadata: {
|
|
24
|
-
provider: "wallet" | "discord" | "email";
|
|
25
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
26
|
-
};
|
|
27
|
-
user_metadata: {
|
|
28
|
-
mezoId?: string | undefined;
|
|
29
|
-
btcAddress: string;
|
|
30
|
-
evmAddress: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
} | {
|
|
34
|
-
redirectTo: string;
|
|
35
|
-
}, Error, void, unknown>;
|
|
36
|
-
signInAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
37
|
-
access_token: string;
|
|
38
|
-
token_type: string;
|
|
39
|
-
expires_in: number;
|
|
40
|
-
expires_at: number;
|
|
41
|
-
refresh_token: string;
|
|
42
|
-
user: {
|
|
43
|
-
app_metadata: {
|
|
44
|
-
provider: "wallet" | "discord" | "email";
|
|
45
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
46
|
-
};
|
|
47
|
-
user_metadata: {
|
|
48
|
-
mezoId?: string | undefined;
|
|
49
|
-
btcAddress: string;
|
|
50
|
-
evmAddress: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
} | {
|
|
54
|
-
redirectTo: string;
|
|
55
|
-
}, Error, void, unknown>;
|
|
18
|
+
signInWithDiscord: import("@tanstack/react-query").UseMutateFunction<AuthenticationProviderRedirectResponse, Error, void, unknown>;
|
|
19
|
+
signInWithDiscordAsync: import("@tanstack/react-query").UseMutateAsyncFunction<AuthenticationProviderRedirectResponse, Error, void, unknown>;
|
|
56
20
|
} | {
|
|
57
21
|
data: undefined;
|
|
58
22
|
variables: void;
|
|
@@ -68,46 +32,8 @@ declare function useSignInWithDiscord(): {
|
|
|
68
32
|
failureReason: Error | null;
|
|
69
33
|
isPaused: boolean;
|
|
70
34
|
submittedAt: number;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
token_type: string;
|
|
74
|
-
expires_in: number;
|
|
75
|
-
expires_at: number;
|
|
76
|
-
refresh_token: string;
|
|
77
|
-
user: {
|
|
78
|
-
app_metadata: {
|
|
79
|
-
provider: "wallet" | "discord" | "email";
|
|
80
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
81
|
-
};
|
|
82
|
-
user_metadata: {
|
|
83
|
-
mezoId?: string | undefined;
|
|
84
|
-
btcAddress: string;
|
|
85
|
-
evmAddress: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
} | {
|
|
89
|
-
redirectTo: string;
|
|
90
|
-
}, Error, void, unknown>;
|
|
91
|
-
signInAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
92
|
-
access_token: string;
|
|
93
|
-
token_type: string;
|
|
94
|
-
expires_in: number;
|
|
95
|
-
expires_at: number;
|
|
96
|
-
refresh_token: string;
|
|
97
|
-
user: {
|
|
98
|
-
app_metadata: {
|
|
99
|
-
provider: "wallet" | "discord" | "email";
|
|
100
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
101
|
-
};
|
|
102
|
-
user_metadata: {
|
|
103
|
-
mezoId?: string | undefined;
|
|
104
|
-
btcAddress: string;
|
|
105
|
-
evmAddress: string;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
} | {
|
|
109
|
-
redirectTo: string;
|
|
110
|
-
}, Error, void, unknown>;
|
|
35
|
+
signInWithDiscord: import("@tanstack/react-query").UseMutateFunction<AuthenticationProviderRedirectResponse, Error, void, unknown>;
|
|
36
|
+
signInWithDiscordAsync: import("@tanstack/react-query").UseMutateAsyncFunction<AuthenticationProviderRedirectResponse, Error, void, unknown>;
|
|
111
37
|
} | {
|
|
112
38
|
data: undefined;
|
|
113
39
|
error: Error;
|
|
@@ -123,67 +49,10 @@ declare function useSignInWithDiscord(): {
|
|
|
123
49
|
failureReason: Error | null;
|
|
124
50
|
isPaused: boolean;
|
|
125
51
|
submittedAt: number;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
token_type: string;
|
|
129
|
-
expires_in: number;
|
|
130
|
-
expires_at: number;
|
|
131
|
-
refresh_token: string;
|
|
132
|
-
user: {
|
|
133
|
-
app_metadata: {
|
|
134
|
-
provider: "wallet" | "discord" | "email";
|
|
135
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
136
|
-
};
|
|
137
|
-
user_metadata: {
|
|
138
|
-
mezoId?: string | undefined;
|
|
139
|
-
btcAddress: string;
|
|
140
|
-
evmAddress: string;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
} | {
|
|
144
|
-
redirectTo: string;
|
|
145
|
-
}, Error, void, unknown>;
|
|
146
|
-
signInAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
147
|
-
access_token: string;
|
|
148
|
-
token_type: string;
|
|
149
|
-
expires_in: number;
|
|
150
|
-
expires_at: number;
|
|
151
|
-
refresh_token: string;
|
|
152
|
-
user: {
|
|
153
|
-
app_metadata: {
|
|
154
|
-
provider: "wallet" | "discord" | "email";
|
|
155
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
156
|
-
};
|
|
157
|
-
user_metadata: {
|
|
158
|
-
mezoId?: string | undefined;
|
|
159
|
-
btcAddress: string;
|
|
160
|
-
evmAddress: string;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
} | {
|
|
164
|
-
redirectTo: string;
|
|
165
|
-
}, Error, void, unknown>;
|
|
52
|
+
signInWithDiscord: import("@tanstack/react-query").UseMutateFunction<AuthenticationProviderRedirectResponse, Error, void, unknown>;
|
|
53
|
+
signInWithDiscordAsync: import("@tanstack/react-query").UseMutateAsyncFunction<AuthenticationProviderRedirectResponse, Error, void, unknown>;
|
|
166
54
|
} | {
|
|
167
|
-
data:
|
|
168
|
-
access_token: string;
|
|
169
|
-
token_type: string;
|
|
170
|
-
expires_in: number;
|
|
171
|
-
expires_at: number;
|
|
172
|
-
refresh_token: string;
|
|
173
|
-
user: {
|
|
174
|
-
app_metadata: {
|
|
175
|
-
provider: "wallet" | "discord" | "email";
|
|
176
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
177
|
-
};
|
|
178
|
-
user_metadata: {
|
|
179
|
-
mezoId?: string | undefined;
|
|
180
|
-
btcAddress: string;
|
|
181
|
-
evmAddress: string;
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
} | {
|
|
185
|
-
redirectTo: string;
|
|
186
|
-
};
|
|
55
|
+
data: AuthenticationProviderRedirectResponse;
|
|
187
56
|
error: null;
|
|
188
57
|
variables: void;
|
|
189
58
|
isError: false;
|
|
@@ -197,46 +66,8 @@ declare function useSignInWithDiscord(): {
|
|
|
197
66
|
failureReason: Error | null;
|
|
198
67
|
isPaused: boolean;
|
|
199
68
|
submittedAt: number;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
token_type: string;
|
|
203
|
-
expires_in: number;
|
|
204
|
-
expires_at: number;
|
|
205
|
-
refresh_token: string;
|
|
206
|
-
user: {
|
|
207
|
-
app_metadata: {
|
|
208
|
-
provider: "wallet" | "discord" | "email";
|
|
209
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
210
|
-
};
|
|
211
|
-
user_metadata: {
|
|
212
|
-
mezoId?: string | undefined;
|
|
213
|
-
btcAddress: string;
|
|
214
|
-
evmAddress: string;
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
} | {
|
|
218
|
-
redirectTo: string;
|
|
219
|
-
}, Error, void, unknown>;
|
|
220
|
-
signInAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
221
|
-
access_token: string;
|
|
222
|
-
token_type: string;
|
|
223
|
-
expires_in: number;
|
|
224
|
-
expires_at: number;
|
|
225
|
-
refresh_token: string;
|
|
226
|
-
user: {
|
|
227
|
-
app_metadata: {
|
|
228
|
-
provider: "wallet" | "discord" | "email";
|
|
229
|
-
providers: ("wallet" | "discord" | "email")[];
|
|
230
|
-
};
|
|
231
|
-
user_metadata: {
|
|
232
|
-
mezoId?: string | undefined;
|
|
233
|
-
btcAddress: string;
|
|
234
|
-
evmAddress: string;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
} | {
|
|
238
|
-
redirectTo: string;
|
|
239
|
-
}, Error, void, unknown>;
|
|
69
|
+
signInWithDiscord: import("@tanstack/react-query").UseMutateFunction<AuthenticationProviderRedirectResponse, Error, void, unknown>;
|
|
70
|
+
signInWithDiscordAsync: import("@tanstack/react-query").UseMutateAsyncFunction<AuthenticationProviderRedirectResponse, Error, void, unknown>;
|
|
240
71
|
};
|
|
241
72
|
export { useSignInWithDiscord };
|
|
242
73
|
//# sourceMappingURL=useSignInWithDiscord.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSignInWithDiscord.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSignInWithDiscord.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSignInWithDiscord.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSignInWithDiscord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAe,MAAM,uBAAuB,CAAA;AAGpE,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,QAAQ,CAAA;AAEpE,iBAAS,oBAAoB,CAC3B,eAAe,GAAE,IAAI,CACnB,eAAe,CAAC,sCAAsC,CAAC,EACvD,YAAY,GAAG,aAAa,CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBP;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
|
|
@@ -1,34 +1,23 @@
|
|
|
1
|
-
import { useAccount } from "wagmi";
|
|
2
1
|
import { useMutation } from "@tanstack/react-query";
|
|
3
|
-
import { useGetSession } from "./useGetSession";
|
|
4
2
|
import { useCreateSession } from "./useCreateSession";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {
|
|
8
|
-
enabled: false,
|
|
9
|
-
});
|
|
3
|
+
import { useEnsureNoSessionAndFetchNonce } from "./useEnsureNoSessionAndFetchNonce";
|
|
4
|
+
function useSignInWithDiscord(mutationOptions = {}) {
|
|
5
|
+
const { ensureNoSessionAndFetchNonce } = useEnsureNoSessionAndFetchNonce();
|
|
10
6
|
const { createSessionAsync } = useCreateSession();
|
|
11
7
|
const { mutate, mutateAsync, ...signInMutationRestParameters } = useMutation({
|
|
12
8
|
mutationFn: async () => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
const getSessionResult = await getSession();
|
|
17
|
-
// TODO: We should create a separate endpoint that will always return nonce
|
|
18
|
-
if (!getSessionResult.data || !("nonce" in getSessionResult.data)) {
|
|
19
|
-
if (getSessionResult.error) {
|
|
20
|
-
throw new Error(`Sign in error: ${getSessionResult.error}`);
|
|
21
|
-
}
|
|
22
|
-
throw new Error("Sign in error: Nonce not available! Remove the session first.");
|
|
23
|
-
}
|
|
24
|
-
return createSessionAsync({
|
|
9
|
+
await ensureNoSessionAndFetchNonce();
|
|
10
|
+
return (await createSessionAsync({
|
|
25
11
|
type: "discord",
|
|
26
|
-
});
|
|
12
|
+
}));
|
|
13
|
+
// ^ By passing type: "discord" we know for sure the return type is
|
|
14
|
+
// AuthenticationProviderRedirectResponse
|
|
27
15
|
},
|
|
16
|
+
...mutationOptions,
|
|
28
17
|
});
|
|
29
18
|
return {
|
|
30
|
-
|
|
31
|
-
|
|
19
|
+
signInWithDiscord: mutate,
|
|
20
|
+
signInWithDiscordAsync: mutateAsync,
|
|
32
21
|
...signInMutationRestParameters,
|
|
33
22
|
};
|
|
34
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSignInWithDiscord.js","sourceRoot":"","sources":["../../../src/hooks/useSignInWithDiscord.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useSignInWithDiscord.js","sourceRoot":"","sources":["../../../src/hooks/useSignInWithDiscord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAA;AAGnF,SAAS,oBAAoB,CAC3B,kBAGI,EAAE;IAEN,MAAM,EAAE,4BAA4B,EAAE,GAAG,+BAA+B,EAAE,CAAA;IAC1E,MAAM,EAAE,kBAAkB,EAAE,GAAG,gBAAgB,EAAE,CAAA;IAEjD,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,4BAA4B,EAAE,GAAG,WAAW,CAAC;QAC3E,UAAU,EAAE,KAAK,IAAqD,EAAE;YACtE,MAAM,4BAA4B,EAAE,CAAA;YAEpC,OAAO,CAAC,MAAM,kBAAkB,CAAC;gBAC/B,IAAI,EAAE,SAAS;aAChB,CAAC,CAA2C,CAAA;YAC7C,mEAAmE;YACnE,yCAAyC;QAC3C,CAAC;QACD,GAAG,eAAe;KACnB,CAAC,CAAA;IAEF,OAAO;QACL,iBAAiB,EAAE,MAAM;QACzB,sBAAsB,EAAE,WAAW;QACnC,GAAG,4BAA4B;KAChC,CAAA;AACH,CAAC;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
|