@imtbl/sdk 0.13.0-alpha.1 → 0.13.1-alpha
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/README.md +5 -2
- package/dist/blockchain_data.js +1 -1
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +2 -1
- package/dist/checkout_widgets.d.ts +10 -2
- package/dist/checkout_widgets.js +1 -1
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +3 -3
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.d.ts +12 -3
- package/dist/index.js +5 -4
- package/dist/passport.js +3 -2
- package/package.json +1 -1
package/dist/checkout_sdk.d.ts
CHANGED
|
@@ -11437,7 +11437,8 @@ declare enum WalletProviderName {
|
|
|
11437
11437
|
* Interface for the parameters required to create a wallet provider {@link Checkout.createProvider}.
|
|
11438
11438
|
* @interface CreateProviderParams
|
|
11439
11439
|
* @property {WalletProviderName} walletProvider - The name of the wallet provider.
|
|
11440
|
-
* @property {Passport} passport - The Passport instance to create a
|
|
11440
|
+
* @property {Passport | undefined} passport - The Passport instance required to create a provider for passport users.
|
|
11441
|
+
* If walletProvider is 'passport', then the passport instance must be passed in.
|
|
11441
11442
|
*/
|
|
11442
11443
|
interface CreateProviderParams {
|
|
11443
11444
|
walletProvider: WalletProviderName;
|
|
@@ -25665,6 +25665,7 @@ interface ImtblBridgeProps extends React.DetailedHTMLProps<React.HTMLAttributes<
|
|
|
25665
25665
|
* @interface BridgeReactProps
|
|
25666
25666
|
* @property {WalletProviderName | undefined} walletProvider - The name of the wallet provider.
|
|
25667
25667
|
* @property {Web3Provider | undefined} provider - The Web3 provider.
|
|
25668
|
+
* @property {Passport | undefined} passport - The Passport instance to create a Web3Provider.
|
|
25668
25669
|
* @property {string | undefined} fromContractAddress - The address of the contract.
|
|
25669
25670
|
* @property {string | undefined} amount - The amount.
|
|
25670
25671
|
*/
|
|
@@ -25682,18 +25683,24 @@ interface BridgeReactProps {
|
|
|
25682
25683
|
*/
|
|
25683
25684
|
declare function BridgeReact(props: BridgeReactProps): JSX.Element;
|
|
25684
25685
|
/**
|
|
25685
|
-
*
|
|
25686
|
-
* @
|
|
25686
|
+
* Interface representing the props for the Bridge Widget component.
|
|
25687
|
+
* @interface ConnectReactProps
|
|
25688
|
+
* @property {Passport | undefined} passport - The Passport instance to create a Web3Provider.
|
|
25687
25689
|
*/
|
|
25688
25690
|
interface ConnectReactProps {
|
|
25689
25691
|
passport?: Passport;
|
|
25690
25692
|
}
|
|
25693
|
+
/**
|
|
25694
|
+
* A React functional component that renders the Checkout Connect Widget.
|
|
25695
|
+
* @returns {JSX.Element} - The rendered Connect Widget component.
|
|
25696
|
+
*/
|
|
25691
25697
|
declare function ConnectReact({ passport }: ConnectReactProps): JSX.Element;
|
|
25692
25698
|
/**
|
|
25693
25699
|
* Interface representing the props for the Swap Widget component.
|
|
25694
25700
|
* @interface SwapReactProps
|
|
25695
25701
|
* @property {WalletProviderName | undefined} walletProvider - The name of the wallet provider.
|
|
25696
25702
|
* @property {Web3Provider | undefined} provider - The Web3 provider.
|
|
25703
|
+
* @property {Passport | undefined} passport - The Passport instance to create a Web3Provider.
|
|
25697
25704
|
* @property {string | undefined} fromContractAddress - The address of the contract swapping from. If the string is 'NATIVE' then the native token is used.
|
|
25698
25705
|
* @property {string | undefined} amount - The amount.
|
|
25699
25706
|
* @property {string | undefined} toContractAddress - The address of the contract swapping to. If the string is 'NATIVE' then the native token is used.
|
|
@@ -25717,6 +25724,7 @@ declare function SwapReact(props: SwapReactProps): JSX.Element;
|
|
|
25717
25724
|
* @interface WalletReactProps
|
|
25718
25725
|
* @property {WalletProviderName | undefined} walletProvider - The name of the wallet provider.
|
|
25719
25726
|
* @property {Web3Provider | undefined} provider - The Web3 provider.
|
|
25727
|
+
* @property {Passport | undefined} passport - The Passport instance to create a Web3Provider.
|
|
25720
25728
|
*/
|
|
25721
25729
|
interface WalletReactProps {
|
|
25722
25730
|
walletProvider?: WalletProviderName;
|
package/dist/checkout_widgets.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useEffect } from 'react';
|
|
|
4
4
|
function $parcel$export(e, n, v, s) {
|
|
5
5
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
6
|
}
|
|
7
|
-
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.13.
|
|
7
|
+
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.13.1-alpha";
|
|
8
8
|
const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
|
|
9
9
|
const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
16
16
|
chainID,
|
|
17
17
|
coreContractAddress,
|
|
18
18
|
registrationContractAddress,
|
|
19
|
-
sdkVersion: 'ts-immutable-sdk-0.13.
|
|
19
|
+
sdkVersion: 'ts-immutable-sdk-0.13.1-alpha',
|
|
20
20
|
});
|
|
21
21
|
/**
|
|
22
22
|
* Sets `sdkVersion` at the time of build
|