@b3dotfun/sdk 0.0.7-alpha.21 → 0.0.7-alpha.22

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.
@@ -4,5 +4,5 @@ export declare function AnyspendSignatureMint({ loadOrder, mode, signatureData,
4
4
  mode?: "modal" | "page";
5
5
  signatureData: GenerateSigMintResponse;
6
6
  imageUrl?: string;
7
- onSuccess?: () => void;
7
+ onSuccess?: (txHash?: string) => void;
8
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -249,7 +249,7 @@ export interface AnySpendSignatureMintProps extends BaseModalProps {
249
249
  /** Optional image URL for NFT preview */
250
250
  imageUrl?: string;
251
251
  /** Callback function called when minting is successful */
252
- onSuccess?: () => void;
252
+ onSuccess?: (txHash?: string) => void;
253
253
  }
254
254
  /**
255
255
  * Union type of all possible modal content types
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { eqci, getDefaultToken, isCustomTxMetadata, isNftMetadata, isTournamentMetadata, NftType, OrderStatus, OrderType, RELAY_ETH_ADDRESS, USDC_BASE, useAnyspendCreateOnrampOrder, useAnyspendCreateOrder, useAnyspendOrderAndTransactions, useAnyspendQuote, useAnyspendTokenList, useGeoOnrampOptions, } from "../../../anyspend/index.js";
3
- import { Badge, Button, ShinyButton, Skeleton, StyleRoot, Tabs, TabsContent, TabsList, TabTrigger, TextShimmer, TransitionPanel, useAccountWallet, useB3, useBsmntProfile, useHasMounted, useModalStore, useRouter, useSearchParamsSSR, useTokenBalancesByChain, Dialog, DialogContent, Input, } from "../../../global-account/react/index.js";
3
+ import { Badge, Button, Dialog, DialogContent, Input, ShinyButton, Skeleton, StyleRoot, Tabs, TabsContent, TabsList, TabTrigger, TextShimmer, TransitionPanel, useAccountWallet, useB3, useBsmntProfile, useHasMounted, useModalStore, useRouter, useSearchParamsSSR, useTokenBalancesByChain, } from "../../../global-account/react/index.js";
4
4
  import { cn } from "../../../shared/utils/index.js";
5
5
  import centerTruncate from "../../../shared/utils/centerTruncate.js";
6
6
  import { formatTokenAmount } from "../../../shared/utils/number.js";
@@ -4,5 +4,5 @@ export declare function AnyspendSignatureMint({ loadOrder, mode, signatureData,
4
4
  mode?: "modal" | "page";
5
5
  signatureData: GenerateSigMintResponse;
6
6
  imageUrl?: string;
7
- onSuccess?: () => void;
7
+ onSuccess?: (txHash?: string) => void;
8
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -249,7 +249,7 @@ export interface AnySpendSignatureMintProps extends BaseModalProps {
249
249
  /** Optional image URL for NFT preview */
250
250
  imageUrl?: string;
251
251
  /** Callback function called when minting is successful */
252
- onSuccess?: () => void;
252
+ onSuccess?: (txHash?: string) => void;
253
253
  }
254
254
  /**
255
255
  * Union type of all possible modal content types
@@ -4,5 +4,5 @@ export declare function AnyspendSignatureMint({ loadOrder, mode, signatureData,
4
4
  mode?: "modal" | "page";
5
5
  signatureData: GenerateSigMintResponse;
6
6
  imageUrl?: string;
7
- onSuccess?: () => void;
7
+ onSuccess?: (txHash?: string) => void;
8
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -249,7 +249,7 @@ export interface AnySpendSignatureMintProps extends BaseModalProps {
249
249
  /** Optional image URL for NFT preview */
250
250
  imageUrl?: string;
251
251
  /** Callback function called when minting is successful */
252
- onSuccess?: () => void;
252
+ onSuccess?: (txHash?: string) => void;
253
253
  }
254
254
  /**
255
255
  * Union type of all possible modal content types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.7-alpha.21",
3
+ "version": "0.0.7-alpha.22",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -26,6 +26,9 @@ import {
26
26
  import {
27
27
  Badge,
28
28
  Button,
29
+ Dialog,
30
+ DialogContent,
31
+ Input,
29
32
  ShinyButton,
30
33
  Skeleton,
31
34
  StyleRoot,
@@ -43,9 +46,6 @@ import {
43
46
  useRouter,
44
47
  useSearchParamsSSR,
45
48
  useTokenBalancesByChain,
46
- Dialog,
47
- DialogContent,
48
- Input,
49
49
  } from "@b3dotfun/sdk/global-account/react";
50
50
  import { cn } from "@b3dotfun/sdk/shared/utils";
51
51
  import centerTruncate from "@b3dotfun/sdk/shared/utils/centerTruncate";
@@ -53,7 +53,7 @@ export function AnyspendSignatureMint({
53
53
  mode?: "modal" | "page";
54
54
  signatureData: GenerateSigMintResponse;
55
55
  imageUrl?: string;
56
- onSuccess?: () => void;
56
+ onSuccess?: (txHash?: string) => void;
57
57
  }) {
58
58
  const hasMounted = useHasMounted();
59
59
 
@@ -264,7 +264,7 @@ export interface AnySpendSignatureMintProps extends BaseModalProps {
264
264
  /** Optional image URL for NFT preview */
265
265
  imageUrl?: string;
266
266
  /** Callback function called when minting is successful */
267
- onSuccess?: () => void;
267
+ onSuccess?: (txHash?: string) => void;
268
268
  }
269
269
 
270
270
  /**