@bluxcc/react 0.2.18 → 0.3.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/README.md CHANGED
@@ -1,15 +1,35 @@
1
- # Blux Wallet Kit - The Missing Piece for Stellar dApps
1
+ # Blux: Authentication & Wallet Infrastructure for Stellar dApps
2
2
 
3
- Blux is a **comprehensive authentication and wallet connect kit** designed for Stellar dApps. It simplifies onboarding by integrating multiple authentication methods, including **wallets, email, phone, and OAuth**. With Blux, developers can create seamless multi-auth experiences without the complexity of building custom authentication solutions from scratch.
3
+ Blux gives Stellar developers one unified SDK for user authentication, wallet connections, transaction signing, and Soroban interactions. Users can onboard through supported Stellar wallets, email, social accounts, or optional SMS, while developers get built-in hooks, customizable interfaces, user management, and analytics.
4
+
5
+ ## Useful Links
6
+
7
+ * **Website:** [blux.cc](https://blux.cc/)
8
+ * **Documentation:** [docs.blux.cc](https://docs.blux.cc/)
9
+ * **Live Demo:** [demo.blux.cc](https://demo.blux.cc/)
10
+ * **Dashboard:** [dashboard.blux.cc](https://dashboard.blux.cc/)
11
+ * **GitHub:** [github.com/bluxcc/core](https://github.com/bluxcc/core)
4
12
 
5
13
  ## Features
6
14
 
7
- - **Multi-Wallet Support**: Easily integrate Stellar wallets such as **Rabet, xBull, Lobstr, Freighter, and Albedo**.
8
- - **OAuth & Social Login** _(Coming Soon)_: Support for **Apple, Meta, Google, and more**.
9
- - **Email & Phone Authentication** _(Coming Soon)_: Securely onboard users with non-crypto credentials.
10
- - **Customizable UI**: Adjust themes, fonts, backgrounds, logos, border radius, and text colors.
11
- - **Configurable Networks**: Set up and modify network preferences via API keys.
12
- - **Future-Proof**: More wallets and authentication methods will be added based on community feedback.
15
+ * **Multi-Wallet Support**: Integrate more than 15 Stellar-compatible wallets and connection methods.
16
+ * **OAuth & Social Login**: Onboard users through Google and other supported social accounts without requiring users to manage a traditional wallet.
17
+ * **Email Authentication**: Allow users to create or access their accounts using their email address.
18
+ * **Phone Authentication**: SMS authentication can be activated for custom partners using a paid plan. Contact Blux support to request access.
19
+ * **Customizable UI**: Adjust themes, fonts, backgrounds, logos, border radius, text colors, and other interface elements.
20
+ * **Wallet Configuration**: Include or exclude specific wallets and control the order in which they appear.
21
+ * **Configurable Networks**: Configure supported Stellar networks and select the default network for your application.
22
+ * **Custom Explorer**: Configure the block explorer used for transaction and account links.
23
+ * **Localization**: Provide the authentication experience in multiple supported languages.
24
+ * **Developer Hooks**: Use built-in React hooks and helpers for authentication, wallet state, Stellar transactions, and Soroban interactions.
25
+ * **Transaction Signing**: Connect wallets and request transaction signatures through a consistent interface.
26
+ * **Soroban Support**: Build and integrate smart contract interactions into your Stellar application.
27
+ * **Profile Interface**: Give connected users access to their account and wallet information through a built-in profile modal.
28
+ * **Dashboard & Analytics**: Review authentication activity, connection methods, login timestamps, and associated wallet addresses.
29
+ * **User Management**: View and manage users who have connected to your application.
30
+ * **Testing Tools**: Use predefined test accounts and reusable OTP credentials in configured testing environments.
31
+ * **Multiple Projects**: Create and manage multiple applications from the same Blux account.
32
+ * **Future-Proof**: More wallets and authentication methods will be added based on community feedback.
13
33
 
14
34
  ## Installation
15
35
 
@@ -56,52 +76,106 @@ const App = () => {
56
76
  export default App;
57
77
  ```
58
78
 
79
+ Create a project through the [Blux Dashboard](https://dashboard.blux.cc/) to obtain your application ID. You can create and manage multiple projects from the same account.
80
+
59
81
  ## Customization
60
82
 
61
83
  Developers can customize various UI elements:
62
84
 
63
- - **Themes & Fonts**
64
- - **Backgrounds, Logos**
65
- - **Border Radius & Text Colors**
66
- - **Authentication Limits** (Free tier supports 500-1000 accounts per auth method)
85
+ * **Themes & Fonts**
86
+ * **Backgrounds, Logos**
87
+ * **Border Radius & Text Colors**
88
+ * **Authentication Limits** (Free tier supports 500-1000 accounts per auth method)
89
+
90
+ Developers can also configure:
91
+
92
+ * Enabled authentication methods
93
+ * Included and excluded wallets
94
+ * Wallet display order
95
+ * Supported networks
96
+ * Default network
97
+ * Block explorer
98
+ * Interface language
67
99
 
68
100
  Configuration options can be set via the `BluxProvider` config or environment variables.
69
101
 
102
+ ## Dashboard & User Analytics
103
+
104
+ The Blux dashboard provides information about the users who have connected to your application.
105
+
106
+ Available information includes:
107
+
108
+ * Authentication method
109
+ * Login and connection timestamps
110
+ * Associated wallet addresses, when available
111
+ * Recent authentication activity
112
+ * Individual user information
113
+
114
+ This information can help developers understand how their applications are being used and troubleshoot authentication or wallet connection issues.
115
+
116
+ ## Development & Testing
117
+
118
+ Blux provides predefined accounts for development and quality assurance.
119
+
120
+ Developers can use preset email identities together with a reusable testing OTP. This makes it possible to test the complete login process repeatedly without waiting for real email delivery or using personal user information.
121
+
122
+ These credentials are intended only for the configured testing environment. Refer to the [Blux documentation](https://docs.blux.cc/) for the current testing credentials and setup instructions.
123
+
70
124
  ## Supported Wallets
71
125
 
72
126
  Currently supported connection methods:
73
127
 
74
- - [x] **Freighter**
75
- - [x] **Rabet**
76
- - [x] **Hana**
77
- - [x] **xBull**
78
- - [x] **Lobstr**
79
- - [x] **Albedo**
80
- - [x] **Ledger**
81
- - [x] **HotWallet**
82
- - [x] **WalletConnect**
83
- - [x] **Klever Wallet**
84
- - [x] **Email**
85
- - [ ] **Trezor**
86
- - [ ] **OAuth**
128
+ * [x] **Freighter**
129
+ * [x] **Rabet**
130
+ * [x] **WalletConnect**
131
+ * [x] **HOT Wallet**
132
+ * [x] **Hana**
133
+ * [x] **xBull**
134
+ * [x] **LOBSTR**
135
+ * [x] **Ledger**
136
+ * [x] **Albedo**
137
+ * [x] **Klever Wallet**
138
+ * [x] **Bitget Wallet**
139
+ * [x] **OneKey**
140
+ * [x] **CactusLink**
141
+ * [x] **Fordefi**
142
+ * [x] **Trezor**
143
+ * [x] **Email**
144
+ * [x] **Google**
145
+ * [x] **Passkey**
146
+
147
+ ## Supported Languages
148
+
149
+ Currently supported languages:
150
+
151
+ * [x] **English**
152
+ * [x] **Spanish**
153
+ * [x] **Portuguese**
154
+ * [x] **French**
155
+ * [x] **German**
156
+ * [x] **Russian**
157
+ * [x] **Chinese**
158
+ * [x] **Japanese**
159
+ * [x] **Korean**
87
160
 
88
161
  ## License & Usage Restrictions
89
162
 
90
- - **No Production Use Until 2028**: This software is provided under the **Blux Team License** with restrictions on production use.
91
- - **No Forking or Unauthorized Modifications**: Removing references to **Blux Team** or forking without attribution is strictly prohibited.
92
- - **Custom Licensing Available**: Contact us at [support@blux.cc](mailto:support@blux.cc) to discuss licensing options.
163
+ * **No Unauthorized Modifications**: Removing references to **Blux Team** or forking without attribution is strictly prohibited.
164
+ * **Custom Licensing Available**: Contact us at [support@blux.cc](mailto:support@blux.cc) to discuss licensing options.
93
165
 
94
166
  ## Support & Contact
95
167
 
96
- For support, licensing, or inquiries, reach out via:
168
+ For support, licensing, custom SMS authentication, or other inquiries, reach out via:
97
169
 
98
- - **Email**: [support@blux.cc](mailto:support@blux.cc)
99
- - **X**: [@BluxOfficial](https://x.com/bluxofficial)
170
+ * **Email**: [support@blux.cc](mailto:support@blux.cc)
171
+ * **X**: [@BluxOfficial](https://x.com/bluxofficial)
100
172
 
101
173
  ## Roadmap & Future Plans
102
174
 
103
- Blux is evolving. Follow our updates on [X (Twitter)](https://x.com/BluxOfficial) for:
175
+ Blux is evolving. Follow our updates on [X](https://x.com/BluxOfficial) for:
104
176
 
105
- - **Email & OAuth Authentication (Apple, Meta, Google, etc.)**
106
- - **More Wallet Integrations**
107
- - **Enhanced Customization & Security Features**
177
+ * **Additional OAuth and Social Authentication Methods**
178
+ * **More Wallet Integrations**
179
+ * **Enhanced Developer Hooks**
180
+ * **Expanded Soroban Support**
181
+ * **Enhanced Customization, Analytics, and Security Features**
@@ -25,13 +25,11 @@
25
25
  * ```
26
26
  */
27
27
  export declare const useBlux: () => {
28
- login: () => Promise<import("@bluxcc/core/dist/store").IUser>;
28
+ login: () => Promise<import("@bluxcc/core").IUser>;
29
29
  logout: () => void;
30
30
  fundMe: () => void;
31
31
  profile: () => void;
32
- signMessage: (message: string, options?: {
33
- network: string;
34
- }) => Promise<unknown>;
32
+ signMessage: (message: string) => Promise<unknown>;
35
33
  signAuthEntry: (authEntry: string, options?: {
36
34
  network: string;
37
35
  }) => Promise<unknown>;
@@ -43,5 +41,5 @@ export declare const useBlux: () => {
43
41
  }) => Promise<unknown>;
44
42
  readonly isReady: boolean;
45
43
  readonly isAuthenticated: boolean;
46
- readonly user: import("@bluxcc/core/dist/store").IUser | undefined;
44
+ readonly user: import("@bluxcc/core").IUser | undefined;
47
45
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bluxcc/react",
3
3
  "author": "Blux team",
4
- "version": "0.2.18",
4
+ "version": "0.3.1",
5
5
  "homepage": "https://blux.cc",
6
6
  "description": "Connecting to the Stellar Ecosystem and Beyond",
7
7
  "repository": {
@@ -30,8 +30,8 @@
30
30
  "build": "rollup -c rollup.config.prod.js"
31
31
  },
32
32
  "peerDependencies": {
33
- "@bluxcc/core": "^0.2.18",
34
- "@stellar/stellar-sdk": "^16.2.0",
33
+ "@bluxcc/core": "^0.3.1",
34
+ "@stellar/stellar-sdk": "^17.0.1",
35
35
  "@tanstack/react-query": "^5.90.11",
36
36
  "react": ">=17.0.0",
37
37
  "react-dom": ">=17.0.0"