@ab-org/predicate-market-sdk 2.2.0-beta.2 → 2.2.0-beta.5
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/{account-F5Z2SMJE.js → account-6PGNCFOX.js} +13 -24
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +1 -1
- package/dist/{autoReconnect-UEPGLSA7.js → autoReconnect-STOYP7SX.js} +3 -3
- package/dist/{chunk-3AR6ZOML.js → chunk-63AEVWHE.js} +1 -1
- package/dist/{chunk-55FTUSW7.js → chunk-BWKDIOBB.js} +11 -17
- package/dist/{chunk-ITLN6GHC.js → chunk-CGP7TSLF.js} +2 -0
- package/dist/{chunk-FMFRUZS3.js → chunk-GQV3VLAX.js} +288 -755
- package/dist/{chunk-AAFQWHHY.js → chunk-HNL3SLGU.js} +1 -1
- package/dist/{chunk-6MMOYCWR.js → chunk-NTFBZNCV.js} +1 -1
- package/dist/{chunk-6YQEHB6P.js → chunk-SV3NR2LW.js} +1 -1
- package/dist/{chunk-FIDON2BY.js → chunk-UMSH3Z43.js} +3 -3
- package/dist/{chunk-WHTI52FI.js → chunk-UPMVYXZ6.js} +1 -1
- package/dist/{chunk-UAXKA6QC.js → chunk-ZS6FNG2D.js} +2 -5
- package/dist/core.d.ts +1 -1
- package/dist/core.js +5 -5
- package/dist/index.d.ts +2 -1
- package/dist/index.js +10 -10
- package/dist/merchant.js +4 -4
- package/dist/react.d.ts +6 -5
- package/dist/react.js +5 -5
- package/package.json +2 -2
- /package/dist/{signInTypes-DESvmgWG.d.ts → signInTypes.d-DESvmgWG.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getChainInfo, getFundingTokenAddress, DEFAULT_FUNDING_CHAIN_ID } from './chunk-
|
|
2
|
-
import { getChains, createOrder } from './chunk-
|
|
3
|
-
import { getEnv } from './chunk-
|
|
1
|
+
import { getChainInfo, getFundingTokenAddress, DEFAULT_FUNDING_CHAIN_ID } from './chunk-NTFBZNCV.js';
|
|
2
|
+
import { getChains, createOrder } from './chunk-HNL3SLGU.js';
|
|
3
|
+
import { getEnv } from './chunk-CGP7TSLF.js';
|
|
4
4
|
import { sessionStore, createSessionCapabilityPolicy } from '@ab-org/sdk-core';
|
|
5
5
|
import { formatUnits } from 'viem';
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../sign_in_sdk/
|
|
1
|
+
// ../sign_in_sdk/dist/popupOAuthBridge.js
|
|
2
2
|
var MESSAGE_TYPE = "twitter-oauth-callback";
|
|
3
3
|
function notifyTwitterCallback() {
|
|
4
4
|
const params = new URLSearchParams(window.location.search);
|
|
@@ -6,10 +6,7 @@ function notifyTwitterCallback() {
|
|
|
6
6
|
const state = params.get("state");
|
|
7
7
|
const error = params.get("error");
|
|
8
8
|
if (window.opener) {
|
|
9
|
-
window.opener.postMessage(
|
|
10
|
-
{ type: MESSAGE_TYPE, code, state, error },
|
|
11
|
-
window.location.origin
|
|
12
|
-
);
|
|
9
|
+
window.opener.postMessage({ type: MESSAGE_TYPE, code, state, error }, window.location.origin);
|
|
13
10
|
window.close();
|
|
14
11
|
}
|
|
15
12
|
}
|
package/dist/core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { C as ChainInfo, a as CustodyAdapter, D as DepositAddressResult, M as MarketDataProvider, b as ModalController, Q as QuoteRequest, c as QuoteResult, T as TokenInfo } from './types-BFidNjd9.js';
|
|
2
2
|
import { CubeSignerConfig } from '@ab-org/sdk-core/social/auth';
|
|
3
|
-
import { S as SignInUiConfig } from './signInTypes-DESvmgWG.js';
|
|
3
|
+
import { S as SignInUiConfig } from './signInTypes.d-DESvmgWG.js';
|
|
4
4
|
import { WalletSession } from '@ab-org/sdk-core';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { tryAutoReconnect } from './chunk-
|
|
2
|
-
export { ClientIds, DEFAULT_FUNDING_CHAIN_ID, DEFAULT_FUNDING_TOKEN_ADDRESS, getChainInfo, getFundingTokenAddress } from './chunk-
|
|
1
|
+
export { tryAutoReconnect } from './chunk-63AEVWHE.js';
|
|
2
|
+
export { ClientIds, DEFAULT_FUNDING_CHAIN_ID, DEFAULT_FUNDING_TOKEN_ADDRESS, getChainInfo, getFundingTokenAddress } from './chunk-NTFBZNCV.js';
|
|
3
3
|
export { getExplorerUrl } from './chunk-XB2DFS2W.js';
|
|
4
|
-
export { getFixedAuthConfig, getSDKConfig, initSDK } from './chunk-
|
|
5
|
-
export { getEnv } from './chunk-
|
|
6
|
-
import './chunk-
|
|
4
|
+
export { getFixedAuthConfig, getSDKConfig, initSDK } from './chunk-BWKDIOBB.js';
|
|
5
|
+
export { getEnv } from './chunk-CGP7TSLF.js';
|
|
6
|
+
import './chunk-UPMVYXZ6.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ClientIds, DEFAULT_FUNDING_CHAIN_ID, DEFAULT_FUNDING_TOKEN_ADDRESS, EvmChainInfo, PredicateSDKConfig, SDKConfig, getChainInfo, getEnv, getExplorerUrl, getFixedAuthConfig, getFundingTokenAddress, getSDKConfig, initSDK, tryAutoReconnect } from './core.js';
|
|
2
2
|
export { notifyTwitterCallback } from './auth.js';
|
|
3
|
-
export { G as GoogleCredential, S as SignInUiConfig, a as SocialProvider, T as TwitterAuthResult, W as WalletItem } from './signInTypes-DESvmgWG.js';
|
|
3
|
+
export { G as GoogleCredential, S as SignInUiConfig, a as SocialProvider, T as TwitterAuthResult, W as WalletItem } from './signInTypes.d-DESvmgWG.js';
|
|
4
4
|
export { DepositDetailsPanel, DepositDetailsPanelProps, DepositModal, DepositModalProps, DropdownField, DropdownFieldProps, SelectOption, SignInModal, SignInModalProps, Toast, WalletAccount, WalletOption, WalletSelectionModal, WalletSelectionModalProps, WithdrawModal, WithdrawModalProps, WithdrawUiStatus, clearSocialAccountInstance } from './react.js';
|
|
5
5
|
export { DepositController, DepositModalConfig, DepositStatus, Erc20BalanceResult, FundingTokenBalanceOptions, FundingWithdrawExecutorOptions, PredicateMarketPolicyAdapterOptions, WithdrawController, WithdrawExecutor, WithdrawModalConfig, WithdrawRequest, WithdrawResult, WithdrawStatus, WithdrawTxRequest, createDepositController, createFundingWithdrawExecutor, createMarketDataProvider, createPredicateMarketPolicyAdapter, createWithdrawController, fetchErc20Balance, fetchFundingTokenBalance, findTokenDataFromChains, isUsdtWithdrawDirect, parseUnits } from './merchant.js';
|
|
6
6
|
export { A as ApiResponse, C as ChainData, a as ChainsResponseData, b as CreateOrderRequest, c as CreateOrderResponseData, D as DepositOrderResponseData, d as DepositOrderStatus, M as MerchantApiConfig, N as NativeSwapPayload, P as PaymentPairData, e as PaymentSessionResponseData, f as PaymentSessionStatus, g as PlatformRegisterRequest, h as PlatformRegisterResponseData, Q as QuoteDirection, i as QuoteResponseData, T as TokenData, W as WithdrawOrderResponseData, j as WithdrawOrderStatus, k as configureMerchantApi, l as createOrder, m as getChains, n as getDepositOrder, o as getMerchantApiClient, p as getWithdrawOrder, q as quote, r as registerPlatform } from './api-DyQAYQ0i.js';
|
|
@@ -8,5 +8,6 @@ export { C as ChainInfo, a as CustodyAdapter, D as DepositAddressResult, M as Ma
|
|
|
8
8
|
import '@ab-org/sdk-core/social/auth';
|
|
9
9
|
import '@ab-org/sdk-core';
|
|
10
10
|
import 'react';
|
|
11
|
+
import 'react/jsx-runtime.js';
|
|
11
12
|
import 'react/jsx-runtime';
|
|
12
13
|
import 'axios';
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { notifyTwitterCallback } from './chunk-
|
|
2
|
-
export { tryAutoReconnect } from './chunk-
|
|
3
|
-
export { createDepositController, createFundingWithdrawExecutor, createMarketDataProvider, createPredicateMarketPolicyAdapter, createWithdrawController, fetchErc20Balance, fetchFundingTokenBalance, findTokenDataFromChains, isUsdtWithdrawDirect, parseUnits } from './chunk-
|
|
4
|
-
export { ClientIds, DEFAULT_FUNDING_CHAIN_ID, DEFAULT_FUNDING_TOKEN_ADDRESS, getChainInfo, getFundingTokenAddress } from './chunk-
|
|
5
|
-
export { DepositDetailsPanel, DepositModal, DropdownField, SignInModal, Toast, WalletAccount, WalletSelectionModal, WithdrawModal, clearSocialAccountInstance } from './chunk-
|
|
1
|
+
export { notifyTwitterCallback } from './chunk-ZS6FNG2D.js';
|
|
2
|
+
export { tryAutoReconnect } from './chunk-63AEVWHE.js';
|
|
3
|
+
export { createDepositController, createFundingWithdrawExecutor, createMarketDataProvider, createPredicateMarketPolicyAdapter, createWithdrawController, fetchErc20Balance, fetchFundingTokenBalance, findTokenDataFromChains, isUsdtWithdrawDirect, parseUnits } from './chunk-UMSH3Z43.js';
|
|
4
|
+
export { ClientIds, DEFAULT_FUNDING_CHAIN_ID, DEFAULT_FUNDING_TOKEN_ADDRESS, getChainInfo, getFundingTokenAddress } from './chunk-NTFBZNCV.js';
|
|
5
|
+
export { DepositDetailsPanel, DepositModal, DropdownField, SignInModal, Toast, WalletAccount, WalletSelectionModal, WithdrawModal, clearSocialAccountInstance } from './chunk-GQV3VLAX.js';
|
|
6
6
|
export { getExplorerUrl } from './chunk-XB2DFS2W.js';
|
|
7
|
-
export { configureMerchantApi, createOrder, getChains, getDepositOrder, getMerchantApiClient, getWithdrawOrder, quote, registerPlatform } from './chunk-
|
|
8
|
-
export { getFixedAuthConfig, getSDKConfig, initSDK } from './chunk-
|
|
9
|
-
export { getEnv } from './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
7
|
+
export { configureMerchantApi, createOrder, getChains, getDepositOrder, getMerchantApiClient, getWithdrawOrder, quote, registerPlatform } from './chunk-HNL3SLGU.js';
|
|
8
|
+
export { getFixedAuthConfig, getSDKConfig, initSDK } from './chunk-BWKDIOBB.js';
|
|
9
|
+
export { getEnv } from './chunk-CGP7TSLF.js';
|
|
10
|
+
import './chunk-SV3NR2LW.js';
|
|
11
|
+
import './chunk-UPMVYXZ6.js';
|
|
12
12
|
import './chunk-YX56ZGDB.js';
|
package/dist/merchant.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createDepositController, createFundingWithdrawExecutor, createMarketDataProvider, createPredicateMarketPolicyAdapter, createWithdrawController, fetchErc20Balance, fetchFundingTokenBalance, findTokenDataFromChains, isUsdtWithdrawDirect, parseUnits } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
export { configureMerchantApi, createOrder, getChains, getDepositOrder, getMerchantApiClient, getWithdrawOrder, quote, registerPlatform } from './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { createDepositController, createFundingWithdrawExecutor, createMarketDataProvider, createPredicateMarketPolicyAdapter, createWithdrawController, fetchErc20Balance, fetchFundingTokenBalance, findTokenDataFromChains, isUsdtWithdrawDirect, parseUnits } from './chunk-UMSH3Z43.js';
|
|
2
|
+
import './chunk-NTFBZNCV.js';
|
|
3
|
+
export { configureMerchantApi, createOrder, getChains, getDepositOrder, getMerchantApiClient, getWithdrawOrder, quote, registerPlatform } from './chunk-HNL3SLGU.js';
|
|
4
|
+
import './chunk-CGP7TSLF.js';
|
package/dist/react.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { a as SocialProvider, W as WalletItem, G as GoogleCredential, T as TwitterAuthResult } from './signInTypes-DESvmgWG.js';
|
|
1
|
+
import * as react_jsx_runtime_js from 'react/jsx-runtime.js';
|
|
2
|
+
import { a as SocialProvider, W as WalletItem, G as GoogleCredential, T as TwitterAuthResult } from './signInTypes.d-DESvmgWG.js';
|
|
3
3
|
import { WalletSession, WalletProviderRequest } from '@ab-org/sdk-core';
|
|
4
4
|
import { CubeSignerSession } from '@ab-org/sdk-core/social/auth';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
6
|
import { ReactNode, ChangeEventHandler } from 'react';
|
|
6
7
|
import { W as WithdrawOrderResponseData } from './api-DyQAYQ0i.js';
|
|
7
8
|
import 'axios';
|
|
@@ -24,7 +25,7 @@ interface SignInModalProps {
|
|
|
24
25
|
/** 登录成功后调用,传入 session;调用方在此回调里更新 session 并自行关闭弹窗 */
|
|
25
26
|
onSuccess?: (session: WalletSession) => void;
|
|
26
27
|
}
|
|
27
|
-
declare const SignInModal: ({ title, socialProviders, wallets, initialVisibleCount, privacyPolicyUrl, termsOfUseUrl, onGoogleLogin, onTwitterLogin, onCubeSignerSession, onWalletConnected, onSocialLogin, onWalletSelect, onDismiss, onSuccess, }: SignInModalProps) =>
|
|
28
|
+
declare const SignInModal: ({ title, socialProviders, wallets, initialVisibleCount, privacyPolicyUrl, termsOfUseUrl, onGoogleLogin, onTwitterLogin, onCubeSignerSession, onWalletConnected, onSocialLogin, onWalletSelect, onDismiss, onSuccess, }: SignInModalProps) => react_jsx_runtime_js.JSX.Element;
|
|
28
29
|
|
|
29
30
|
type ToastVariant = "success" | "error" | "info";
|
|
30
31
|
interface ToastProps {
|
|
@@ -34,7 +35,7 @@ interface ToastProps {
|
|
|
34
35
|
duration?: number;
|
|
35
36
|
onClose?: () => void;
|
|
36
37
|
}
|
|
37
|
-
declare const Toast: ({ message, variant, duration, onClose }: ToastProps) =>
|
|
38
|
+
declare const Toast: ({ message, variant, duration, onClose }: ToastProps) => react_jsx_runtime_js.JSX.Element;
|
|
38
39
|
|
|
39
40
|
type HexString = `0x${string}`;
|
|
40
41
|
type BlockTag = "latest" | "pending";
|
|
@@ -91,7 +92,7 @@ interface DropdownFieldProps {
|
|
|
91
92
|
/** @deprecated Use `options` + `onSelect` instead. */
|
|
92
93
|
onClick?: () => void;
|
|
93
94
|
}
|
|
94
|
-
declare const DropdownField: ({ label, placeholder, value, icon, focused, options, onSelect, wrapperClassName, triggerClassName, triggerId, onClick, }: DropdownFieldProps) => react_jsx_runtime.JSX.Element;
|
|
95
|
+
declare const DropdownField: ({ label, placeholder, value, icon, focused: _focused, options, onSelect, wrapperClassName, triggerClassName, triggerId, onClick, }: DropdownFieldProps) => react_jsx_runtime.JSX.Element;
|
|
95
96
|
|
|
96
97
|
interface DepositModalProps {
|
|
97
98
|
/** Pre-selected token id. */
|
package/dist/react.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { DepositDetailsPanel, DepositModal, DropdownField, SignInModal, Toast, WalletAccount, WalletSelectionModal, WithdrawModal, clearSocialAccountInstance } from './chunk-
|
|
1
|
+
export { DepositDetailsPanel, DepositModal, DropdownField, SignInModal, Toast, WalletAccount, WalletSelectionModal, WithdrawModal, clearSocialAccountInstance } from './chunk-GQV3VLAX.js';
|
|
2
2
|
import './chunk-XB2DFS2W.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
3
|
+
import './chunk-HNL3SLGU.js';
|
|
4
|
+
import './chunk-CGP7TSLF.js';
|
|
5
|
+
import './chunk-SV3NR2LW.js';
|
|
6
|
+
import './chunk-UPMVYXZ6.js';
|
|
7
7
|
import './chunk-YX56ZGDB.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ab-org/predicate-market-sdk",
|
|
3
|
-
"version": "2.2.0-beta.
|
|
3
|
+
"version": "2.2.0-beta.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**/*",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"axios": "^1.13.6",
|
|
40
40
|
"qrcode-generator": "^2.0.4",
|
|
41
41
|
"viem": "2.21.54",
|
|
42
|
-
"@ab-org/sdk-core": "0.3.0-beta.
|
|
42
|
+
"@ab-org/sdk-core": "0.3.0-beta.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=18"
|
|
File without changes
|