thirdweb 5.58.0-nightly-3229e1f03c3cbb62ddc8dccf22ad8a8feb0a95f0-20240920000335 → 5.58.1
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/cjs/react/core/hooks/others/useProfiles.js +2 -1
- package/dist/cjs/react/core/hooks/others/useProfiles.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Details.js +27 -2
- package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +11 -0
- package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js +4 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js.map +1 -1
- package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +6 -5
- package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +42 -22
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js +14 -13
- package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/wallet/ecosystem-core.js +27 -12
- package/dist/cjs/wallets/in-app/core/wallet/ecosystem-core.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/wallet/in-app-core.js +2 -2
- package/dist/cjs/wallets/in-app/core/wallet/in-app-core.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/wallet/profiles.js +3 -2
- package/dist/cjs/wallets/in-app/core/wallet/profiles.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/actions/get-enclave-user-status.js +2 -2
- package/dist/cjs/wallets/in-app/web/lib/actions/get-enclave-user-status.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/iframe-auth.js +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/iframe-auth.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/index.js +2 -2
- package/dist/cjs/wallets/in-app/web/lib/auth/index.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/enclave-wallet.js +3 -3
- package/dist/cjs/wallets/in-app/web/lib/enclave-wallet.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/iframe-wallet.js +0 -17
- package/dist/cjs/wallets/in-app/web/lib/iframe-wallet.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/web-connector.js +14 -1
- package/dist/cjs/wallets/in-app/web/lib/web-connector.js.map +1 -1
- package/dist/esm/react/core/hooks/others/useProfiles.js +2 -1
- package/dist/esm/react/core/hooks/others/useProfiles.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Details.js +27 -2
- package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +11 -0
- package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js +4 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/ManageWalletScreen.js.map +1 -1
- package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +6 -5
- package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +42 -22
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/esm/wallets/in-app/core/authentication/linkAccount.js +14 -13
- package/dist/esm/wallets/in-app/core/authentication/linkAccount.js.map +1 -1
- package/dist/esm/wallets/in-app/core/wallet/ecosystem-core.js +27 -12
- package/dist/esm/wallets/in-app/core/wallet/ecosystem-core.js.map +1 -1
- package/dist/esm/wallets/in-app/core/wallet/in-app-core.js +2 -2
- package/dist/esm/wallets/in-app/core/wallet/in-app-core.js.map +1 -1
- package/dist/esm/wallets/in-app/core/wallet/profiles.js +3 -2
- package/dist/esm/wallets/in-app/core/wallet/profiles.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/get-enclave-user-status.js +1 -1
- package/dist/esm/wallets/in-app/web/lib/actions/get-enclave-user-status.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/iframe-auth.js +2 -2
- package/dist/esm/wallets/in-app/web/lib/auth/iframe-auth.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/index.js +2 -2
- package/dist/esm/wallets/in-app/web/lib/auth/index.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/enclave-wallet.js +4 -4
- package/dist/esm/wallets/in-app/web/lib/enclave-wallet.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/iframe-wallet.js +0 -17
- package/dist/esm/wallets/in-app/web/lib/iframe-wallet.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/web-connector.js +15 -2
- package/dist/esm/wallets/in-app/web/lib/web-connector.js.map +1 -1
- package/dist/types/react/core/hooks/others/useProfiles.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Details.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/LinkProfileScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/ManageWalletScreen.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts +5 -2
- package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/authentication/types.d.ts +1 -0
- package/dist/types/wallets/in-app/core/authentication/types.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/wallet/ecosystem-core.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/wallet/in-app-core.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/wallet/profiles.d.ts +3 -2
- package/dist/types/wallets/in-app/core/wallet/profiles.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/get-enclave-user-status.d.ts +1 -1
- package/dist/types/wallets/in-app/web/lib/actions/get-enclave-user-status.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/iframe-auth.d.ts +3 -0
- package/dist/types/wallets/in-app/web/lib/auth/iframe-auth.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/enclave-wallet.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/iframe-wallet.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/web-connector.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/react/core/hooks/others/useProfiles.ts +2 -1
- package/src/react/web/ui/ConnectWallet/Details.tsx +44 -4
- package/src/react/web/ui/ConnectWallet/screens/LinkProfileScreen.tsx +27 -0
- package/src/react/web/ui/ConnectWallet/screens/ManageWalletScreen.tsx +18 -15
- package/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx +6 -6
- package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +82 -49
- package/src/version.ts +1 -1
- package/src/wallets/in-app/core/authentication/linkAccount.ts +17 -14
- package/src/wallets/in-app/core/authentication/types.ts +1 -0
- package/src/wallets/in-app/core/wallet/ecosystem-core.ts +47 -13
- package/src/wallets/in-app/core/wallet/in-app-core.ts +2 -5
- package/src/wallets/in-app/core/wallet/profiles.ts +6 -4
- package/src/wallets/in-app/web/lib/actions/get-enclave-user-status.ts +1 -1
- package/src/wallets/in-app/web/lib/auth/iframe-auth.ts +5 -2
- package/src/wallets/in-app/web/lib/auth/index.ts +2 -2
- package/src/wallets/in-app/web/lib/enclave-wallet.ts +5 -4
- package/src/wallets/in-app/web/lib/iframe-wallet.ts +0 -21
- package/src/wallets/in-app/web/lib/web-connector.ts +20 -2
- package/dist/cjs/react/web/wallets/in-app/LinkButton.js +0 -23
- package/dist/cjs/react/web/wallets/in-app/LinkButton.js.map +0 -1
- package/dist/esm/react/web/wallets/in-app/LinkButton.js +0 -20
- package/dist/esm/react/web/wallets/in-app/LinkButton.js.map +0 -1
- package/dist/types/react/web/wallets/in-app/LinkButton.d.ts +0 -5
- package/dist/types/react/web/wallets/in-app/LinkButton.d.ts.map +0 -1
- package/src/react/web/wallets/in-app/LinkButton.tsx +0 -20
@@ -1,3 +1,5 @@
|
|
1
|
+
import { isEcosystemWallet } from "../../../../wallets/ecosystem/is-ecosystem-wallet.js";
|
2
|
+
import type { EcosystemWalletId } from "../../../../wallets/wallet-types.js";
|
1
3
|
import type { Wallet } from "../../../interfaces/wallet.js";
|
2
4
|
import type {
|
3
5
|
MultiStepAuthArgsType,
|
@@ -25,8 +27,8 @@ import type {
|
|
25
27
|
* ```
|
26
28
|
* @wallet
|
27
29
|
*/
|
28
|
-
export async function getProfiles(wallet: Wallet<"inApp">) {
|
29
|
-
if (wallet.id !== "inApp") {
|
30
|
+
export async function getProfiles(wallet: Wallet<"inApp" | EcosystemWalletId>) {
|
31
|
+
if (wallet.id !== "inApp" && !isEcosystemWallet(wallet)) {
|
30
32
|
throw new Error("Multi-auth currently only supports in-app wallets");
|
31
33
|
}
|
32
34
|
|
@@ -59,10 +61,10 @@ export async function getProfiles(wallet: Wallet<"inApp">) {
|
|
59
61
|
* @wallet
|
60
62
|
*/
|
61
63
|
export async function linkProfile(
|
62
|
-
wallet: Wallet<"inApp">,
|
64
|
+
wallet: Wallet<"inApp" | EcosystemWalletId>,
|
63
65
|
auth: MultiStepAuthArgsType | SingleStepAuthArgsType,
|
64
66
|
): Promise<Profile[]> {
|
65
|
-
if (wallet.id !== "inApp") {
|
67
|
+
if (wallet.id !== "inApp" && !isEcosystemWallet(wallet)) {
|
66
68
|
throw new Error("Multi-auth currently only supports in-app wallets");
|
67
69
|
}
|
68
70
|
|
@@ -11,7 +11,7 @@ import type {
|
|
11
11
|
import type { ClientIdWithQuerierType, Ecosystem } from "../../types.js";
|
12
12
|
import type { InAppWalletIframeCommunicator } from "../../utils/iFrameCommunication/InAppWalletIframeCommunicator.js";
|
13
13
|
import { generateWallet } from "../actions/generate-wallet.enclave.js";
|
14
|
-
import {
|
14
|
+
import { getUserStatus } from "../actions/get-enclave-user-status.js";
|
15
15
|
import { BaseLogin } from "./base-login.js";
|
16
16
|
|
17
17
|
export type AuthQuerierTypes = {
|
@@ -28,6 +28,9 @@ export type AuthQuerierTypes = {
|
|
28
28
|
storedToken: AuthStoredTokenWithCookieReturnType["storedToken"];
|
29
29
|
recoveryCode?: string;
|
30
30
|
};
|
31
|
+
migrateFromShardToEnclave: {
|
32
|
+
storedToken: AuthStoredTokenWithCookieReturnType["storedToken"];
|
33
|
+
};
|
31
34
|
};
|
32
35
|
|
33
36
|
/**
|
@@ -108,7 +111,7 @@ export class Auth {
|
|
108
111
|
): Promise<AuthLoginReturnType> {
|
109
112
|
await this.preLogin();
|
110
113
|
|
111
|
-
const user = await
|
114
|
+
const user = await getUserStatus({
|
112
115
|
authToken: authToken.storedToken.cookieString,
|
113
116
|
client: this.client,
|
114
117
|
ecosystem: this.ecosystem,
|
@@ -51,8 +51,8 @@ async function getInAppWalletConnector(
|
|
51
51
|
export async function getAuthenticatedUser(
|
52
52
|
options: GetAuthenticatedUserParams,
|
53
53
|
) {
|
54
|
-
const { client } = options;
|
55
|
-
const connector = await getInAppWalletConnector(client);
|
54
|
+
const { client, ecosystem } = options;
|
55
|
+
const connector = await getInAppWalletConnector(client, ecosystem);
|
56
56
|
const user = await connector.getUser();
|
57
57
|
switch (user.status) {
|
58
58
|
case UserWalletStatus.LOGGED_IN_WALLET_INITIALIZED: {
|
@@ -20,7 +20,7 @@ import {
|
|
20
20
|
type WalletAddressObjectType,
|
21
21
|
} from "../../core/authentication/types.js";
|
22
22
|
import type { Ecosystem } from "../types.js";
|
23
|
-
import {
|
23
|
+
import { getUserStatus } from "./actions/get-enclave-user-status.js";
|
24
24
|
import { signMessage as signEnclaveMessage } from "./actions/sign-message.enclave.js";
|
25
25
|
import { signTransaction as signEnclaveTransaction } from "./actions/sign-transaction.enclave.js";
|
26
26
|
import { signTypedData as signEnclaveTypedData } from "./actions/sign-typed-data.enclave.js";
|
@@ -96,11 +96,12 @@ export class EnclaveWallet implements IWebWallet {
|
|
96
96
|
return { status: UserWalletStatus.LOGGED_OUT };
|
97
97
|
}
|
98
98
|
|
99
|
-
const userStatus = await
|
99
|
+
const userStatus = await getUserStatus({
|
100
100
|
authToken: token,
|
101
101
|
client: this.client,
|
102
102
|
ecosystem: this.ecosystem,
|
103
103
|
});
|
104
|
+
|
104
105
|
if (!userStatus) {
|
105
106
|
return { status: UserWalletStatus.LOGGED_OUT };
|
106
107
|
}
|
@@ -108,10 +109,10 @@ export class EnclaveWallet implements IWebWallet {
|
|
108
109
|
|
109
110
|
const authDetails = {
|
110
111
|
email: userStatus.linkedAccounts.find(
|
111
|
-
(account) => account.
|
112
|
+
(account) => account.details.email !== undefined,
|
112
113
|
)?.details.email,
|
113
114
|
phoneNumber: userStatus.linkedAccounts.find(
|
114
|
-
(account) => account.
|
115
|
+
(account) => account.details.phone !== undefined,
|
115
116
|
)?.details.phone,
|
116
117
|
userWalletId: userStatus.id || "",
|
117
118
|
recoveryShareManagement: RecoveryShareManagement.ENCLAVE,
|
@@ -10,7 +10,6 @@ import { type Hex, hexToString } from "../../../../utils/encoding/hex.js";
|
|
10
10
|
import { parseTypedData } from "../../../../utils/signatures/helpers/parseTypedData.js";
|
11
11
|
import { webLocalStorage } from "../../../../utils/storage/webStorage.js";
|
12
12
|
import type { Prettify } from "../../../../utils/type-utils.js";
|
13
|
-
import { getEcosystemPartnerPermissions } from "../../../ecosystem/get-ecosystem-partner-permissions.js";
|
14
13
|
import type {
|
15
14
|
Account,
|
16
15
|
SendTransactionOption,
|
@@ -199,14 +198,6 @@ export class IFrameWallet implements IWebWallet {
|
|
199
198
|
.walletManagerQuerier as unknown as InAppWalletIframeCommunicator<SignerProcedureTypes>;
|
200
199
|
const client = this.client;
|
201
200
|
const partnerId = this.ecosystem?.partnerId;
|
202
|
-
const isEcosystem = !!this.ecosystem;
|
203
|
-
|
204
|
-
const permissions = this.ecosystem?.partnerId
|
205
|
-
? await getEcosystemPartnerPermissions(
|
206
|
-
this.ecosystem.id,
|
207
|
-
this.ecosystem?.partnerId,
|
208
|
-
)
|
209
|
-
: undefined;
|
210
201
|
|
211
202
|
const { address } = await querier.call<GetAddressReturnType>({
|
212
203
|
procedureName: "getAddress",
|
@@ -244,10 +235,6 @@ export class IFrameWallet implements IWebWallet {
|
|
244
235
|
partnerId,
|
245
236
|
rpcEndpoint: `https://${tx.chainId}.${RPC_URL}`, // TODO (ew) shouldnt be needed
|
246
237
|
},
|
247
|
-
// Can hide the iframe if the partner has full control (no user approvals)
|
248
|
-
showIframe: permissions?.permissions.includes("FULL_CONTROL_V1")
|
249
|
-
? false
|
250
|
-
: isEcosystem,
|
251
238
|
});
|
252
239
|
return signedTransaction as Hex;
|
253
240
|
};
|
@@ -296,10 +283,6 @@ export class IFrameWallet implements IWebWallet {
|
|
296
283
|
partnerId,
|
297
284
|
chainId: 1, // TODO check if we need this
|
298
285
|
},
|
299
|
-
// Can hide the iframe if the partner has full control (no user approvals)
|
300
|
-
showIframe: permissions?.permissions.includes("FULL_CONTROL_V1")
|
301
|
-
? false
|
302
|
-
: isEcosystem,
|
303
286
|
});
|
304
287
|
return signedMessage as Hex;
|
305
288
|
},
|
@@ -339,10 +322,6 @@ export class IFrameWallet implements IWebWallet {
|
|
339
322
|
partnerId,
|
340
323
|
rpcEndpoint: `https://${chainId}.${RPC_URL}`, // TODO (ew) shouldnt be needed
|
341
324
|
},
|
342
|
-
// Can hide the iframe if the partner has full control (no user approvals)
|
343
|
-
showIframe: permissions?.permissions.includes("FULL_CONTROL_V1")
|
344
|
-
? false
|
345
|
-
: isEcosystem,
|
346
325
|
});
|
347
326
|
return signedTypedData as Hex;
|
348
327
|
},
|
@@ -20,7 +20,7 @@ import {
|
|
20
20
|
UserWalletStatus,
|
21
21
|
} from "../../core/authentication/types.js";
|
22
22
|
import type { InAppConnector } from "../../core/interfaces/connector.js";
|
23
|
-
import {
|
23
|
+
import { getUserStatus } from "../lib/actions/get-enclave-user-status.js";
|
24
24
|
import type { Ecosystem, InAppWalletConstructorType } from "../types.js";
|
25
25
|
import { InAppWalletIframeCommunicator } from "../utils/iFrameCommunication/InAppWalletIframeCommunicator.js";
|
26
26
|
import { Auth, type AuthQuerierTypes } from "./auth/iframe-auth.js";
|
@@ -85,6 +85,23 @@ export class InAppWebConnector implements InAppConnector {
|
|
85
85
|
ecosystem,
|
86
86
|
onAuthSuccess: async (authResult) => {
|
87
87
|
onAuthSuccess?.(authResult);
|
88
|
+
|
89
|
+
if (
|
90
|
+
this.ecosystem &&
|
91
|
+
authResult.storedToken.authDetails.walletType === "sharded"
|
92
|
+
) {
|
93
|
+
// If this is an existing sharded ecosystem wallet, we'll need to migrate
|
94
|
+
const result = await this.querier.call<boolean>({
|
95
|
+
procedureName: "migrateFromShardToEnclave",
|
96
|
+
params: {
|
97
|
+
storedToken: authResult.storedToken,
|
98
|
+
},
|
99
|
+
});
|
100
|
+
if (!result) {
|
101
|
+
throw new Error("Failed to migrate from sharded to enclave wallet");
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
88
105
|
await this.initializeWallet(authResult.storedToken.cookieString);
|
89
106
|
|
90
107
|
if (!this.wallet) {
|
@@ -135,7 +152,7 @@ export class InAppWebConnector implements InAppConnector {
|
|
135
152
|
);
|
136
153
|
}
|
137
154
|
|
138
|
-
const user = await
|
155
|
+
const user = await getUserStatus({
|
139
156
|
authToken: authToken || (storedAuthToken as string),
|
140
157
|
client: this.client,
|
141
158
|
ecosystem: this.ecosystem,
|
@@ -148,6 +165,7 @@ export class InAppWebConnector implements InAppConnector {
|
|
148
165
|
"Cannot initialize wallet, this user does not have a wallet generated yet",
|
149
166
|
);
|
150
167
|
}
|
168
|
+
|
151
169
|
if (user.wallets[0].type === "enclave") {
|
152
170
|
this.wallet = new EnclaveWallet({
|
153
171
|
client: this.client,
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
"use client";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.LinkButton = void 0;
|
5
|
-
const CustomThemeProvider_js_1 = require("../../../core/design-system/CustomThemeProvider.js");
|
6
|
-
const index_js_1 = require("../../../core/design-system/index.js");
|
7
|
-
const elements_js_1 = require("../../ui/design-system/elements.js");
|
8
|
-
exports.LinkButton = (0, elements_js_1.StyledButton)((_) => {
|
9
|
-
const theme = (0, CustomThemeProvider_js_1.useCustomTheme)();
|
10
|
-
return {
|
11
|
-
all: "unset",
|
12
|
-
color: theme.colors.accentText,
|
13
|
-
fontSize: index_js_1.fontSize.sm,
|
14
|
-
cursor: "pointer",
|
15
|
-
textAlign: "center",
|
16
|
-
fontWeight: 500,
|
17
|
-
width: "100%",
|
18
|
-
"&:hover": {
|
19
|
-
color: theme.colors.primaryText,
|
20
|
-
},
|
21
|
-
};
|
22
|
-
});
|
23
|
-
//# sourceMappingURL=LinkButton.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"LinkButton.js","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/in-app/LinkButton.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;AACb,+FAAoF;AACpF,mEAAgE;AAChE,oEAAkE;AAErD,QAAA,UAAU,GAAmB,IAAA,0BAAY,EAAC,CAAC,CAAC,EAAE,EAAE;IAC3D,MAAM,KAAK,GAAG,IAAA,uCAAc,GAAE,CAAC;IAC/B,OAAO;QACL,GAAG,EAAE,OAAO;QACZ,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU;QAC9B,QAAQ,EAAE,mBAAQ,CAAC,EAAE;QACrB,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,QAAQ;QACnB,UAAU,EAAE,GAAG;QACf,KAAK,EAAE,MAAM;QACb,SAAS,EAAE;YACT,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW;SAChC;KACF,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use client";
|
2
|
-
import { useCustomTheme } from "../../../core/design-system/CustomThemeProvider.js";
|
3
|
-
import { fontSize } from "../../../core/design-system/index.js";
|
4
|
-
import { StyledButton } from "../../ui/design-system/elements.js";
|
5
|
-
export const LinkButton = /* @__PURE__ */ StyledButton((_) => {
|
6
|
-
const theme = useCustomTheme();
|
7
|
-
return {
|
8
|
-
all: "unset",
|
9
|
-
color: theme.colors.accentText,
|
10
|
-
fontSize: fontSize.sm,
|
11
|
-
cursor: "pointer",
|
12
|
-
textAlign: "center",
|
13
|
-
fontWeight: 500,
|
14
|
-
width: "100%",
|
15
|
-
"&:hover": {
|
16
|
-
color: theme.colors.primaryText,
|
17
|
-
},
|
18
|
-
};
|
19
|
-
});
|
20
|
-
//# sourceMappingURL=LinkButton.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"LinkButton.js","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/in-app/LinkButton.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE;IAC3D,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAC/B,OAAO;QACL,GAAG,EAAE,OAAO;QACZ,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU;QAC9B,QAAQ,EAAE,QAAQ,CAAC,EAAE;QACrB,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,QAAQ;QACnB,UAAU,EAAE,GAAG;QACf,KAAK,EAAE,MAAM;QACb,SAAS,EAAE;YACT,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW;SAChC;KACF,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
export declare const LinkButton: import("@emotion/styled").StyledComponent<{
|
2
|
-
theme?: import("@emotion/react").Theme;
|
3
|
-
as?: React.ElementType;
|
4
|
-
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
5
|
-
//# sourceMappingURL=LinkButton.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/in-app/LinkButton.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;SAeW,MAAO,WAAW;qHADlD,CAAC"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use client";
|
2
|
-
import { useCustomTheme } from "../../../core/design-system/CustomThemeProvider.js";
|
3
|
-
import { fontSize } from "../../../core/design-system/index.js";
|
4
|
-
import { StyledButton } from "../../ui/design-system/elements.js";
|
5
|
-
|
6
|
-
export const LinkButton = /* @__PURE__ */ StyledButton((_) => {
|
7
|
-
const theme = useCustomTheme();
|
8
|
-
return {
|
9
|
-
all: "unset",
|
10
|
-
color: theme.colors.accentText,
|
11
|
-
fontSize: fontSize.sm,
|
12
|
-
cursor: "pointer",
|
13
|
-
textAlign: "center",
|
14
|
-
fontWeight: 500,
|
15
|
-
width: "100%",
|
16
|
-
"&:hover": {
|
17
|
-
color: theme.colors.primaryText,
|
18
|
-
},
|
19
|
-
};
|
20
|
-
});
|