@talken/talkenkit 2.3.5 → 2.3.6

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.
@@ -0,0 +1,39 @@
1
+ "use client";
2
+ import {
3
+ createAbcSolanaConnector
4
+ } from "./chunk-AEQOPQL6.js";
5
+ import {
6
+ createAbcSolanaProvider
7
+ } from "./chunk-MY5YIDOB.js";
8
+ import {
9
+ createAbcWaasClient
10
+ } from "./chunk-YZBFKVTX.js";
11
+
12
+ // src/wallets/walletConnectors/abcWallet/abcSolanaWallet.ts
13
+ var abcSolanaWallet = (options) => ({
14
+ id: "abc-solana",
15
+ name: "ABC Solana Wallet",
16
+ iconUrl: async () => (await import("./abcWallet-AYWSIGAG.js")).default,
17
+ iconBackground: "#fff",
18
+ // Embedded wallet - no download URLs needed
19
+ installed: void 0,
20
+ createConnector: () => {
21
+ console.log("[abcSolanaWallet] Creating Solana connector with options:", {
22
+ hasConfig: !!options.config,
23
+ waasUrl: options.config.waasUrl,
24
+ environment: options.config.environment
25
+ });
26
+ const client = createAbcWaasClient(options.config);
27
+ const provider = createAbcSolanaProvider(client);
28
+ const connector = createAbcSolanaConnector({
29
+ client,
30
+ provider
31
+ });
32
+ console.log("[abcSolanaWallet] Solana connector created successfully");
33
+ return connector;
34
+ }
35
+ });
36
+
37
+ export {
38
+ abcSolanaWallet
39
+ };
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ import {
3
+ abcConnector
4
+ } from "./chunk-BHMMHU7Y.js";
5
+ import {
6
+ ABC_WALLET_METADATA
7
+ } from "./chunk-VETRBBA2.js";
8
+
9
+ // src/wallets/walletConnectors/abcWallet/abcWallet.ts
10
+ var abcWallet = (specificOptions) => ({ projectId }) => {
11
+ const waasUrl = specificOptions?.waasUrl || process.env.NEXT_PUBLIC_ABC_WAAS_URL || process.env.VITE_ABC_WAAS_URL;
12
+ if (!waasUrl) {
13
+ throw new Error(
14
+ 'ABC WaaS URL is required. Please provide it via:\n1. abcWallet({ waasUrl: "..." }) options, or\n2. NEXT_PUBLIC_ABC_WAAS_URL environment variable, or\n3. VITE_ABC_WAAS_URL environment variable'
15
+ );
16
+ }
17
+ const config = {
18
+ waasUrl,
19
+ apiKey: specificOptions?.apiKey,
20
+ plain: specificOptions?.plain || "",
21
+ // Deprecated - not used (secure.ts uses random generation)
22
+ environment: specificOptions?.environment || "development",
23
+ projectId
24
+ };
25
+ return {
26
+ id: ABC_WALLET_METADATA.id,
27
+ name: ABC_WALLET_METADATA.name,
28
+ rdns: ABC_WALLET_METADATA.rdns,
29
+ iconUrl: async () => (await import("./abcWallet-AYWSIGAG.js")).default,
30
+ iconBackground: ABC_WALLET_METADATA.iconBackground,
31
+ // Embedded wallet - no installation required
32
+ installed: void 0,
33
+ // No download URLs for embedded wallet
34
+ downloadUrls: void 0,
35
+ // Create connector - wrapper function required by Wallet type
36
+ createConnector: (_walletDetails) => abcConnector({ config }),
37
+ // Embedded wallet always available
38
+ hidden: () => false
39
+ };
40
+ };
41
+
42
+ export {
43
+ abcWallet
44
+ };