superstack-wallet-sdk 0.4.2 → 0.4.4

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.ts CHANGED
@@ -7,7 +7,7 @@ import react__default, { ReactNode } from 'react';
7
7
  type SupportedTransactionVersions = ReadonlySet<TransactionVersion> | null | undefined;
8
8
  type TransactionOrVersionedTransaction<S extends SupportedTransactionVersions> = S extends null | undefined ? Transaction : Transaction | VersionedTransaction;
9
9
  declare function isVersionedTransaction(transaction: Transaction | VersionedTransaction): transaction is VersionedTransaction;
10
- type LoginType = "TwitterOAuth" | "GoogleOAuth" | "Phantom" | "Okx" | "Email" | "Phone" | "Telegram" | "TelegramOAuth";
10
+ type LoginType = "TwitterOAuth" | "GoogleOAuth" | "Phantom" | "Okx" | "Email" | "Phone" | "Telegram" | "TelegramOAuth" | "MetaMask" | "Rabby" | "Coinbase";
11
11
  declare enum Network {
12
12
  Solana = "Solana",
13
13
  Ethereum = "Ethereum"
@@ -275,7 +275,7 @@ declare class WalletClient {
275
275
  client_id: string;
276
276
  }>;
277
277
  getSignChallenge(params: {
278
- method: "phantom" | "metamask";
278
+ method: "phantom" | "metamask" | LoginType;
279
279
  id: string;
280
280
  }): Promise<{
281
281
  challenge: string;
@@ -386,7 +386,7 @@ declare function useLoginModal({ client, isOpen, onClose, onLogin, isLoading, }:
386
386
  handleCodeSubmit: (code?: string, emailInput?: string) => Promise<void>;
387
387
  handlePhoneCodeSubmit: (code?: string, phoneInput?: string) => Promise<void>;
388
388
  handleSendPhoneVerificationCode: (phoneInput?: string) => Promise<void>;
389
- handleGetChallenge: (address: string) => Promise<{
389
+ handleGetChallenge: (address: string, method?: LoginType) => Promise<{
390
390
  challenge: string;
391
391
  nonce: string;
392
392
  expires_at: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superstack-wallet-sdk",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "A wallet SDK for superstack",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",