stellar-wallet-kit 2.0.0 → 2.0.3

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 CHANGED
@@ -1,7 +1,8 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
 
3
3
  declare enum WalletType {
4
- FREIGHTER = "freighter"
4
+ FREIGHTER = "freighter",
5
+ ALBEDO = "albedo"
5
6
  }
6
7
  declare enum NetworkType {
7
8
  PUBLIC = "PUBLIC",
@@ -33,8 +34,18 @@ interface WalletInfo {
33
34
  name: string;
34
35
  icon: string;
35
36
  description?: string;
37
+ /** true = ready to use (installed OR web wallet) */
36
38
  installed: boolean;
39
+ /** Optional install link (extensions only) */
37
40
  downloadUrl?: string;
41
+ /** NEW: wallet delivery model */
42
+ kind?: WalletKind;
43
+ /** NEW: capability flags (future-proof) */
44
+ capabilities?: {
45
+ silentReconnect?: boolean;
46
+ networkDetection?: boolean;
47
+ authEntrySigning?: boolean;
48
+ };
38
49
  }
39
50
  interface ConnectWalletResponse {
40
51
  address: string;
@@ -73,7 +84,7 @@ interface StellarWalletKitConfig {
73
84
  appIcon?: string;
74
85
  }
75
86
  interface WalletTheme {
76
- mode?: 'light' | 'dark' | 'auto';
87
+ mode?: "light" | "dark" | "auto";
77
88
  primaryColor?: string;
78
89
  backgroundColor?: string;
79
90
  borderRadius?: string;
@@ -107,7 +118,13 @@ interface WalletContextValue {
107
118
  availableWallets: WalletInfo[];
108
119
  refreshBalances: () => Promise<void>;
109
120
  isLoadingBalances: boolean;
121
+ supports: {
122
+ silentReconnect: boolean;
123
+ networkDetection: boolean;
124
+ authEntrySigning: boolean;
125
+ };
110
126
  }
127
+ type WalletKind = "extension" | "web";
111
128
 
112
129
  type WalletProviderProps = PropsWithChildren<{
113
130
  config?: StellarWalletKitConfig;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
 
3
3
  declare enum WalletType {
4
- FREIGHTER = "freighter"
4
+ FREIGHTER = "freighter",
5
+ ALBEDO = "albedo"
5
6
  }
6
7
  declare enum NetworkType {
7
8
  PUBLIC = "PUBLIC",
@@ -33,8 +34,18 @@ interface WalletInfo {
33
34
  name: string;
34
35
  icon: string;
35
36
  description?: string;
37
+ /** true = ready to use (installed OR web wallet) */
36
38
  installed: boolean;
39
+ /** Optional install link (extensions only) */
37
40
  downloadUrl?: string;
41
+ /** NEW: wallet delivery model */
42
+ kind?: WalletKind;
43
+ /** NEW: capability flags (future-proof) */
44
+ capabilities?: {
45
+ silentReconnect?: boolean;
46
+ networkDetection?: boolean;
47
+ authEntrySigning?: boolean;
48
+ };
38
49
  }
39
50
  interface ConnectWalletResponse {
40
51
  address: string;
@@ -73,7 +84,7 @@ interface StellarWalletKitConfig {
73
84
  appIcon?: string;
74
85
  }
75
86
  interface WalletTheme {
76
- mode?: 'light' | 'dark' | 'auto';
87
+ mode?: "light" | "dark" | "auto";
77
88
  primaryColor?: string;
78
89
  backgroundColor?: string;
79
90
  borderRadius?: string;
@@ -107,7 +118,13 @@ interface WalletContextValue {
107
118
  availableWallets: WalletInfo[];
108
119
  refreshBalances: () => Promise<void>;
109
120
  isLoadingBalances: boolean;
121
+ supports: {
122
+ silentReconnect: boolean;
123
+ networkDetection: boolean;
124
+ authEntrySigning: boolean;
125
+ };
110
126
  }
127
+ type WalletKind = "extension" | "web";
111
128
 
112
129
  type WalletProviderProps = PropsWithChildren<{
113
130
  config?: StellarWalletKitConfig;