@trustware/sdk-staging 1.1.8-staging.6 → 1.1.8-staging.7

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/wallet.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { s as SolanaProviderLike, U as WalletMeta, f as DetectedWallet, M as WalletId, t as SolanaWalletInterface } from './manager-DHCXknCG.cjs';
2
- export { W as WagmiBridge, C as WagmiConnector, V as WalletSnapshot, a4 as useWalletConnectConnect, a5 as useWalletExternalDisconnect, a6 as useWalletInfo, a7 as useWireDetectionIntoManager, a8 as walletManager } from './manager-DHCXknCG.cjs';
3
- export { a as autoDetectWallet, b as buildDetectedWalletFromProvider, c as connectDetectedWallet, d as createWalletConnectEntry, t as toWalletInterfaceFromDetected, u as useEIP1193, e as useIsMobile, f as useWagmi, g as useWalletDetection } from './detect-CWNTV5Wq.cjs';
1
+ import { r as SolanaProviderLike, Q as WalletMeta, e as DetectedWallet, L as WalletId, s as SolanaWalletInterface } from './manager-DKVW7zeh.cjs';
2
+ export { W as WagmiBridge, A as WagmiConnector, U as WalletSnapshot, a3 as useWalletConnectConnect, a4 as useWalletExternalDisconnect, a5 as useWalletInfo, a6 as useWireDetectionIntoManager, a7 as walletManager } from './manager-DKVW7zeh.cjs';
3
+ export { a as autoDetectWallet, b as buildDetectedWalletFromProvider, c as connectDetectedWallet, d as createWalletConnectEntry, t as toWalletInterfaceFromDetected, u as useEIP1193, e as useIsMobile, f as useWagmi, g as useWalletDetection } from './detect-DlbgTrkm.cjs';
4
4
  import './blockchain-BONedEsU.cjs';
5
5
 
6
6
  type SolanaEventHandlers = {
package/dist/wallet.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { s as SolanaProviderLike, U as WalletMeta, f as DetectedWallet, M as WalletId, t as SolanaWalletInterface } from './manager-Dtmjibzl.js';
2
- export { W as WagmiBridge, C as WagmiConnector, V as WalletSnapshot, a4 as useWalletConnectConnect, a5 as useWalletExternalDisconnect, a6 as useWalletInfo, a7 as useWireDetectionIntoManager, a8 as walletManager } from './manager-Dtmjibzl.js';
3
- export { a as autoDetectWallet, b as buildDetectedWalletFromProvider, c as connectDetectedWallet, d as createWalletConnectEntry, t as toWalletInterfaceFromDetected, u as useEIP1193, e as useIsMobile, f as useWagmi, g as useWalletDetection } from './detect-CaQQECVe.js';
1
+ import { r as SolanaProviderLike, Q as WalletMeta, e as DetectedWallet, L as WalletId, s as SolanaWalletInterface } from './manager-aOd3vkF9.js';
2
+ export { W as WagmiBridge, A as WagmiConnector, U as WalletSnapshot, a3 as useWalletConnectConnect, a4 as useWalletExternalDisconnect, a5 as useWalletInfo, a6 as useWireDetectionIntoManager, a7 as walletManager } from './manager-aOd3vkF9.js';
3
+ export { a as autoDetectWallet, b as buildDetectedWalletFromProvider, c as connectDetectedWallet, d as createWalletConnectEntry, t as toWalletInterfaceFromDetected, u as useEIP1193, e as useIsMobile, f as useWagmi, g as useWalletDetection } from './detect-MWKHLhn9.js';
4
4
  import './blockchain-BONedEsU.js';
5
5
 
6
6
  type SolanaEventHandlers = {
package/dist/wallet.mjs CHANGED
@@ -224,7 +224,7 @@ var init_constants = __esm({
224
224
  "src/constants.ts"() {
225
225
  "use strict";
226
226
  SDK_NAME = "@trustware/sdk";
227
- SDK_VERSION = "1.1.8-staging.6";
227
+ SDK_VERSION = "1.1.8-staging.7";
228
228
  API_ROOT = "https://bv-staging-api.trustware.io";
229
229
  API_PREFIX = "/api";
230
230
  WALLETCONNECT_PROJECT_ID = "72ea74c400f5111d43aea638d7d83a24";
@@ -233,20 +233,12 @@ var init_constants = __esm({
233
233
  });
234
234
 
235
235
  // src/config/defaults.ts
236
- var DEFAULT_SLIPPAGE, DEFAULT_AUTO_DETECT_PROVIDER, DEFAULT_THEME, DEFAULT_MESSAGES;
236
+ var DEFAULT_SLIPPAGE, DEFAULT_AUTO_DETECT_PROVIDER, DEFAULT_MESSAGES;
237
237
  var init_defaults = __esm({
238
238
  "src/config/defaults.ts"() {
239
239
  "use strict";
240
240
  DEFAULT_SLIPPAGE = 1;
241
241
  DEFAULT_AUTO_DETECT_PROVIDER = false;
242
- DEFAULT_THEME = {
243
- primaryColor: "#4F46E5",
244
- secondaryColor: "#6366F1",
245
- backgroundColor: "#FFFFFF",
246
- textColor: "#111827",
247
- borderColor: "#E5E7EB",
248
- radius: 8
249
- };
250
242
  DEFAULT_MESSAGES = {
251
243
  title: "Trustware SDK",
252
244
  description: "Seamlessly bridge assets across chains with Trustware."
@@ -306,10 +298,7 @@ var init_store = __esm({
306
298
  ...this._cfg,
307
299
  ...patch,
308
300
  routes: { ...this._cfg.routes, ...patch.routes ?? {} },
309
- theme: {
310
- ...this._cfg.theme,
311
- ...patch.theme ?? {}
312
- },
301
+ theme: patch.theme ?? this._cfg.theme,
313
302
  messages: {
314
303
  ...this._cfg.messages,
315
304
  ...patch.messages ?? {}
@@ -3436,7 +3425,7 @@ function resolveConfig(input) {
3436
3425
  ...input.routes.options
3437
3426
  }
3438
3427
  };
3439
- const theme = deepMerge(DEFAULT_THEME, input.theme);
3428
+ const theme = input.theme ?? "system";
3440
3429
  const messages = deepMerge(DEFAULT_MESSAGES, input.messages);
3441
3430
  const retry = {
3442
3431
  autoRetry: input.retry?.autoRetry ?? DEFAULT_RETRY_CONFIG.autoRetry,