@b3dotfun/sdk 0.0.20-alpha.4 → 0.0.20-alpha.6

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.
Files changed (29) hide show
  1. package/dist/cjs/anyspend/index.native.d.ts +0 -2
  2. package/dist/cjs/anyspend/index.native.js +0 -4
  3. package/dist/cjs/anyspend/react/components/AnySpend.d.ts +3 -3
  4. package/dist/cjs/anyspend/react/hooks/useSigMint.d.ts +3 -3
  5. package/dist/cjs/anyspend/react/index.d.ts +1 -1
  6. package/dist/cjs/anyspend/react/index.js +1 -1
  7. package/dist/cjs/anyspend/react/providers/index.d.ts +2 -0
  8. package/dist/cjs/anyspend/react/providers/index.js +18 -0
  9. package/dist/cjs/shared/constants/index.js +5 -3
  10. package/dist/esm/anyspend/index.native.d.ts +0 -2
  11. package/dist/esm/anyspend/index.native.js +0 -4
  12. package/dist/esm/anyspend/react/components/AnySpend.d.ts +3 -3
  13. package/dist/esm/anyspend/react/hooks/useSigMint.d.ts +3 -3
  14. package/dist/esm/anyspend/react/index.d.ts +1 -1
  15. package/dist/esm/anyspend/react/index.js +1 -1
  16. package/dist/esm/anyspend/react/providers/index.d.ts +2 -0
  17. package/dist/esm/anyspend/react/providers/index.js +2 -0
  18. package/dist/esm/shared/constants/index.js +5 -3
  19. package/dist/types/anyspend/index.native.d.ts +0 -2
  20. package/dist/types/anyspend/react/components/AnySpend.d.ts +3 -3
  21. package/dist/types/anyspend/react/hooks/useSigMint.d.ts +3 -3
  22. package/dist/types/anyspend/react/index.d.ts +1 -1
  23. package/dist/types/anyspend/react/providers/index.d.ts +2 -0
  24. package/package.json +1 -1
  25. package/src/anyspend/index.native.ts +0 -6
  26. package/src/anyspend/react/components/AnySpend.tsx +3 -3
  27. package/src/anyspend/react/index.ts +1 -1
  28. package/src/anyspend/react/providers/index.ts +2 -0
  29. package/src/shared/constants/index.ts +5 -3
@@ -1,5 +1,3 @@
1
- export * from "./react/hooks";
2
- export * from "./react/providers/AnyspendProvider";
3
1
  export * from "./types/api";
4
2
  export * from "./utils/address";
5
3
  export * from "./utils/chain";
@@ -14,10 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- // Export all hooks
18
- __exportStar(require("./react/hooks"), exports);
19
- // Providers
20
- __exportStar(require("./react/providers/AnyspendProvider"), exports);
21
17
  // Types
22
18
  __exportStar(require("./types/api"), exports);
23
19
  // Utils
@@ -15,12 +15,12 @@ export declare enum PanelView {
15
15
  FIAT_PAYMENT_METHOD = 7
16
16
  }
17
17
  export declare function AnySpend(props: {
18
- destinationTokenAddress?: string;
19
- destinationTokenChainId?: number;
20
18
  isMainnet?: boolean;
21
19
  mode?: "page" | "modal";
22
20
  defaultActiveTab?: "crypto" | "fiat";
21
+ destinationTokenAddress?: string;
22
+ destinationTokenChainId?: number;
23
+ recipientAddress?: string;
23
24
  loadOrder?: string;
24
25
  hideTransactionHistoryButton?: boolean;
25
- recipientAddress?: string;
26
26
  }): import("react/jsx-runtime").JSX.Element;
@@ -16,13 +16,13 @@ export declare const useGenerateSigMintData: ({ recipientAddress, contractAddres
16
16
  creator?: string | undefined;
17
17
  signatureRequestBody?: {
18
18
  currency?: string | undefined;
19
- price?: string | undefined;
20
- clonePrice?: string | undefined;
21
- primarySaleRecipient?: string | undefined;
22
19
  royaltyRecipient?: string | undefined;
23
20
  royaltyBps?: number | undefined;
21
+ primarySaleRecipient?: string | undefined;
24
22
  validityStartTimestamp?: number | undefined;
25
23
  validityEndTimestamp?: number | undefined;
24
+ price?: string | undefined;
25
+ clonePrice?: string | undefined;
26
26
  metadata: {
27
27
  name?: string | undefined;
28
28
  description?: string | undefined;
@@ -1,3 +1,3 @@
1
1
  export * from "./components";
2
2
  export * from "./hooks";
3
- export * from "./providers/AnyspendProvider";
3
+ export * from "./providers";
@@ -16,4 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./components"), exports);
18
18
  __exportStar(require("./hooks"), exports);
19
- __exportStar(require("./providers/AnyspendProvider"), exports);
19
+ __exportStar(require("./providers"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./AnyspendProvider";
2
+ export * from "./StripeRedirectHandler";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AnyspendProvider"), exports);
18
+ __exportStar(require("./StripeRedirectHandler"), exports);
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ENS_GATEWAY_URL = exports.B3_AUTH_COOKIE_NAME = exports.CLIENT_APP_BUNDLE_ID = exports.THIRDWEB_CLIENT_ID = exports.THIRDWEB_SECRET_KEY = exports.tokenIcons = exports.ecosystemWalletId = exports.b3CoinIcon = exports.siteURL = void 0;
4
4
  exports.siteURL = "https://basement.fun";
5
5
  exports.b3CoinIcon = "https://cdn.b3.fun/b3-coin-3d.png";
6
- exports.ecosystemWalletId = (process.env.EXPO_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
7
- process.env.NEXT_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
6
+ exports.ecosystemWalletId = (process.env.NEXT_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
7
+ process.env.EXPO_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
8
8
  "ecosystem.b3-open-gaming"); // Fallback to prod key lookup
9
9
  exports.tokenIcons = {
10
10
  ETH: "https://cdn.b3.fun/ethereum.svg",
@@ -16,7 +16,9 @@ exports.tokenIcons = {
16
16
  // Add more asset icons as needed
17
17
  };
18
18
  exports.THIRDWEB_SECRET_KEY = process.env.THIRDWEB_SECRET_KEY || "";
19
- exports.THIRDWEB_CLIENT_ID = process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID || process.env.EXPO_PUBLIC_THIRDWEB_CLIENT_ID || "";
19
+ exports.THIRDWEB_CLIENT_ID = process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID ||
20
+ process.env.EXPO_PUBLIC_THIRDWEB_CLIENT_ID ||
21
+ "f393c7eb287696dc4db76d980cc68328";
20
22
  exports.CLIENT_APP_BUNDLE_ID = process.env.EXPO_PUBLIC_B3_BUNDLE_ID || "";
21
23
  exports.B3_AUTH_COOKIE_NAME = "b3-auth";
22
24
  exports.ENS_GATEWAY_URL = "https://ens-gateway.b3.fun/";
@@ -1,5 +1,3 @@
1
- export * from "./react/hooks";
2
- export * from "./react/providers/AnyspendProvider";
3
1
  export * from "./types/api";
4
2
  export * from "./utils/address";
5
3
  export * from "./utils/chain";
@@ -1,7 +1,3 @@
1
- // Export all hooks
2
- export * from "./react/hooks/index.js";
3
- // Providers
4
- export * from "./react/providers/AnyspendProvider.js";
5
1
  // Types
6
2
  export * from "./types/api.js";
7
3
  // Utils
@@ -15,12 +15,12 @@ export declare enum PanelView {
15
15
  FIAT_PAYMENT_METHOD = 7
16
16
  }
17
17
  export declare function AnySpend(props: {
18
- destinationTokenAddress?: string;
19
- destinationTokenChainId?: number;
20
18
  isMainnet?: boolean;
21
19
  mode?: "page" | "modal";
22
20
  defaultActiveTab?: "crypto" | "fiat";
21
+ destinationTokenAddress?: string;
22
+ destinationTokenChainId?: number;
23
+ recipientAddress?: string;
23
24
  loadOrder?: string;
24
25
  hideTransactionHistoryButton?: boolean;
25
- recipientAddress?: string;
26
26
  }): import("react/jsx-runtime").JSX.Element;
@@ -16,13 +16,13 @@ export declare const useGenerateSigMintData: ({ recipientAddress, contractAddres
16
16
  creator?: string | undefined;
17
17
  signatureRequestBody?: {
18
18
  currency?: string | undefined;
19
- price?: string | undefined;
20
- clonePrice?: string | undefined;
21
- primarySaleRecipient?: string | undefined;
22
19
  royaltyRecipient?: string | undefined;
23
20
  royaltyBps?: number | undefined;
21
+ primarySaleRecipient?: string | undefined;
24
22
  validityStartTimestamp?: number | undefined;
25
23
  validityEndTimestamp?: number | undefined;
24
+ price?: string | undefined;
25
+ clonePrice?: string | undefined;
26
26
  metadata: {
27
27
  name?: string | undefined;
28
28
  description?: string | undefined;
@@ -1,3 +1,3 @@
1
1
  export * from "./components";
2
2
  export * from "./hooks";
3
- export * from "./providers/AnyspendProvider";
3
+ export * from "./providers";
@@ -1,3 +1,3 @@
1
1
  export * from "./components/index.js";
2
2
  export * from "./hooks/index.js";
3
- export * from "./providers/AnyspendProvider.js";
3
+ export * from "./providers/index.js";
@@ -0,0 +1,2 @@
1
+ export * from "./AnyspendProvider";
2
+ export * from "./StripeRedirectHandler";
@@ -0,0 +1,2 @@
1
+ export * from "./AnyspendProvider.js";
2
+ export * from "./StripeRedirectHandler.js";
@@ -1,7 +1,7 @@
1
1
  export const siteURL = "https://basement.fun";
2
2
  export const b3CoinIcon = "https://cdn.b3.fun/b3-coin-3d.png";
3
- export const ecosystemWalletId = (process.env.EXPO_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
4
- process.env.NEXT_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
3
+ export const ecosystemWalletId = (process.env.NEXT_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
4
+ process.env.EXPO_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
5
5
  "ecosystem.b3-open-gaming"); // Fallback to prod key lookup
6
6
  export const tokenIcons = {
7
7
  ETH: "https://cdn.b3.fun/ethereum.svg",
@@ -13,7 +13,9 @@ export const tokenIcons = {
13
13
  // Add more asset icons as needed
14
14
  };
15
15
  export const THIRDWEB_SECRET_KEY = process.env.THIRDWEB_SECRET_KEY || "";
16
- export const THIRDWEB_CLIENT_ID = process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID || process.env.EXPO_PUBLIC_THIRDWEB_CLIENT_ID || "";
16
+ export const THIRDWEB_CLIENT_ID = process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID ||
17
+ process.env.EXPO_PUBLIC_THIRDWEB_CLIENT_ID ||
18
+ "f393c7eb287696dc4db76d980cc68328";
17
19
  export const CLIENT_APP_BUNDLE_ID = process.env.EXPO_PUBLIC_B3_BUNDLE_ID || "";
18
20
  export const B3_AUTH_COOKIE_NAME = "b3-auth";
19
21
  export const ENS_GATEWAY_URL = "https://ens-gateway.b3.fun/";
@@ -1,5 +1,3 @@
1
- export * from "./react/hooks";
2
- export * from "./react/providers/AnyspendProvider";
3
1
  export * from "./types/api";
4
2
  export * from "./utils/address";
5
3
  export * from "./utils/chain";
@@ -15,12 +15,12 @@ export declare enum PanelView {
15
15
  FIAT_PAYMENT_METHOD = 7
16
16
  }
17
17
  export declare function AnySpend(props: {
18
- destinationTokenAddress?: string;
19
- destinationTokenChainId?: number;
20
18
  isMainnet?: boolean;
21
19
  mode?: "page" | "modal";
22
20
  defaultActiveTab?: "crypto" | "fiat";
21
+ destinationTokenAddress?: string;
22
+ destinationTokenChainId?: number;
23
+ recipientAddress?: string;
23
24
  loadOrder?: string;
24
25
  hideTransactionHistoryButton?: boolean;
25
- recipientAddress?: string;
26
26
  }): import("react/jsx-runtime").JSX.Element;
@@ -16,13 +16,13 @@ export declare const useGenerateSigMintData: ({ recipientAddress, contractAddres
16
16
  creator?: string | undefined;
17
17
  signatureRequestBody?: {
18
18
  currency?: string | undefined;
19
- price?: string | undefined;
20
- clonePrice?: string | undefined;
21
- primarySaleRecipient?: string | undefined;
22
19
  royaltyRecipient?: string | undefined;
23
20
  royaltyBps?: number | undefined;
21
+ primarySaleRecipient?: string | undefined;
24
22
  validityStartTimestamp?: number | undefined;
25
23
  validityEndTimestamp?: number | undefined;
24
+ price?: string | undefined;
25
+ clonePrice?: string | undefined;
26
26
  metadata: {
27
27
  name?: string | undefined;
28
28
  description?: string | undefined;
@@ -1,3 +1,3 @@
1
1
  export * from "./components";
2
2
  export * from "./hooks";
3
- export * from "./providers/AnyspendProvider";
3
+ export * from "./providers";
@@ -0,0 +1,2 @@
1
+ export * from "./AnyspendProvider";
2
+ export * from "./StripeRedirectHandler";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.20-alpha.4",
3
+ "version": "0.0.20-alpha.6",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -1,9 +1,3 @@
1
- // Export all hooks
2
- export * from "./react/hooks";
3
-
4
- // Providers
5
- export * from "./react/providers/AnyspendProvider";
6
-
7
1
  // Types
8
2
  export * from "./types/api";
9
3
 
@@ -72,14 +72,14 @@ export enum PanelView {
72
72
  const ANYSPEND_RECIPIENTS_KEY = "anyspend_recipients";
73
73
 
74
74
  export function AnySpend(props: {
75
- destinationTokenAddress?: string;
76
- destinationTokenChainId?: number;
77
75
  isMainnet?: boolean;
78
76
  mode?: "page" | "modal";
79
77
  defaultActiveTab?: "crypto" | "fiat";
78
+ destinationTokenAddress?: string;
79
+ destinationTokenChainId?: number;
80
+ recipientAddress?: string;
80
81
  loadOrder?: string;
81
82
  hideTransactionHistoryButton?: boolean;
82
- recipientAddress?: string;
83
83
  }) {
84
84
  const fingerprintConfig = getFingerprintConfig();
85
85
 
@@ -1,3 +1,3 @@
1
1
  export * from "./components";
2
2
  export * from "./hooks";
3
- export * from "./providers/AnyspendProvider";
3
+ export * from "./providers";
@@ -0,0 +1,2 @@
1
+ export * from "./AnyspendProvider";
2
+ export * from "./StripeRedirectHandler";
@@ -2,8 +2,8 @@ export const siteURL = "https://basement.fun";
2
2
 
3
3
  export const b3CoinIcon = "https://cdn.b3.fun/b3-coin-3d.png";
4
4
 
5
- export const ecosystemWalletId = (process.env.EXPO_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
6
- process.env.NEXT_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
5
+ export const ecosystemWalletId = (process.env.NEXT_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
6
+ process.env.EXPO_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
7
7
  "ecosystem.b3-open-gaming") as `ecosystem.${string}`; // Fallback to prod key lookup
8
8
 
9
9
  export const tokenIcons = {
@@ -19,7 +19,9 @@ export const tokenIcons = {
19
19
  export const THIRDWEB_SECRET_KEY = process.env.THIRDWEB_SECRET_KEY || "";
20
20
 
21
21
  export const THIRDWEB_CLIENT_ID =
22
- process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID || process.env.EXPO_PUBLIC_THIRDWEB_CLIENT_ID || "";
22
+ process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID ||
23
+ process.env.EXPO_PUBLIC_THIRDWEB_CLIENT_ID ||
24
+ "f393c7eb287696dc4db76d980cc68328";
23
25
 
24
26
  export const CLIENT_APP_BUNDLE_ID = process.env.EXPO_PUBLIC_B3_BUNDLE_ID || "";
25
27