@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/dist/index.cjs CHANGED
@@ -2420,7 +2420,7 @@ class MultiRollupApiClients {
2420
2420
  }
2421
2421
 
2422
2422
  // eslint-disable-next-line @typescript-eslint/naming-convention
2423
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.13.0-alpha.1' };
2423
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.13.1-alpha' };
2424
2424
  const createConfig = ({ basePath, headers, }) => {
2425
2425
  if (!basePath.trim()) {
2426
2426
  throw Error('basePath can not be empty');
@@ -2480,7 +2480,7 @@ class APIError extends Error {
2480
2480
 
2481
2481
  /* eslint-disable implicit-arrow-linebreak */
2482
2482
  const defaultHeaders = {
2483
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.13.0-alpha.1',
2483
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.13.1-alpha',
2484
2484
  };
2485
2485
  /**
2486
2486
  * createAPIConfiguration to create a custom Configuration
@@ -2752,7 +2752,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2752
2752
  chainID,
2753
2753
  coreContractAddress,
2754
2754
  registrationContractAddress,
2755
- sdkVersion: 'ts-immutable-sdk-0.13.0-alpha.1',
2755
+ sdkVersion: 'ts-immutable-sdk-0.13.1-alpha',
2756
2756
  });
2757
2757
  /**
2758
2758
  * Sets `sdkVersion` at the time of build
@@ -8729,6 +8729,7 @@ class ZkEvmProvider {
8729
8729
  // Pass through methods
8730
8730
  case 'eth_gasPrice':
8731
8731
  case 'eth_getBalance':
8732
+ case 'eth_getCode':
8732
8733
  case 'eth_getStorageAt':
8733
8734
  case 'eth_estimateGas':
8734
8735
  case 'eth_call':
@@ -28514,7 +28515,7 @@ var checkout_sdk = /*#__PURE__*/Object.freeze({
28514
28515
  function $parcel$export(e, n, v, s) {
28515
28516
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
28516
28517
  }
28517
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.13.0-alpha.1";
28518
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.13.1-alpha";
28518
28519
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
28519
28520
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
28520
28521
 
package/dist/index.d.ts CHANGED
@@ -13832,7 +13832,8 @@ declare enum WalletProviderName {
13832
13832
  * Interface for the parameters required to create a wallet provider {@link Checkout.createProvider}.
13833
13833
  * @interface CreateProviderParams
13834
13834
  * @property {WalletProviderName} walletProvider - The name of the wallet provider.
13835
- * @property {Passport} passport - The Passport instance to create a Web3Provider.
13835
+ * @property {Passport | undefined} passport - The Passport instance required to create a provider for passport users.
13836
+ * If walletProvider is 'passport', then the passport instance must be passed in.
13836
13837
  */
13837
13838
  interface CreateProviderParams {
13838
13839
  walletProvider: WalletProviderName;
@@ -28939,6 +28940,7 @@ interface ImtblBridgeProps extends React.DetailedHTMLProps<React.HTMLAttributes<
28939
28940
  * @interface BridgeReactProps
28940
28941
  * @property {WalletProviderName | undefined} walletProvider - The name of the wallet provider.
28941
28942
  * @property {Web3Provider | undefined} provider - The Web3 provider.
28943
+ * @property {Passport | undefined} passport - The Passport instance to create a Web3Provider.
28942
28944
  * @property {string | undefined} fromContractAddress - The address of the contract.
28943
28945
  * @property {string | undefined} amount - The amount.
28944
28946
  */
@@ -28956,18 +28958,24 @@ interface BridgeReactProps {
28956
28958
  */
28957
28959
  declare function BridgeReact(props: BridgeReactProps): JSX.Element;
28958
28960
  /**
28959
- * A React functional component that renders the Checkout Connect Widget.
28960
- * @returns {JSX.Element} - The rendered Connect Widget component.
28961
+ * Interface representing the props for the Bridge Widget component.
28962
+ * @interface ConnectReactProps
28963
+ * @property {Passport | undefined} passport - The Passport instance to create a Web3Provider.
28961
28964
  */
28962
28965
  interface ConnectReactProps {
28963
28966
  passport?: Passport;
28964
28967
  }
28968
+ /**
28969
+ * A React functional component that renders the Checkout Connect Widget.
28970
+ * @returns {JSX.Element} - The rendered Connect Widget component.
28971
+ */
28965
28972
  declare function ConnectReact({ passport }: ConnectReactProps): JSX.Element;
28966
28973
  /**
28967
28974
  * Interface representing the props for the Swap Widget component.
28968
28975
  * @interface SwapReactProps
28969
28976
  * @property {WalletProviderName | undefined} walletProvider - The name of the wallet provider.
28970
28977
  * @property {Web3Provider | undefined} provider - The Web3 provider.
28978
+ * @property {Passport | undefined} passport - The Passport instance to create a Web3Provider.
28971
28979
  * @property {string | undefined} fromContractAddress - The address of the contract swapping from. If the string is 'NATIVE' then the native token is used.
28972
28980
  * @property {string | undefined} amount - The amount.
28973
28981
  * @property {string | undefined} toContractAddress - The address of the contract swapping to. If the string is 'NATIVE' then the native token is used.
@@ -28991,6 +28999,7 @@ declare function SwapReact(props: SwapReactProps): JSX.Element;
28991
28999
  * @interface WalletReactProps
28992
29000
  * @property {WalletProviderName | undefined} walletProvider - The name of the wallet provider.
28993
29001
  * @property {Web3Provider | undefined} provider - The Web3 provider.
29002
+ * @property {Passport | undefined} passport - The Passport instance to create a Web3Provider.
28994
29003
  */
28995
29004
  interface WalletReactProps {
28996
29005
  walletProvider?: WalletProviderName;
package/dist/index.js CHANGED
@@ -2398,7 +2398,7 @@ class MultiRollupApiClients {
2398
2398
  }
2399
2399
 
2400
2400
  // eslint-disable-next-line @typescript-eslint/naming-convention
2401
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.13.0-alpha.1' };
2401
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.13.1-alpha' };
2402
2402
  const createConfig = ({ basePath, headers, }) => {
2403
2403
  if (!basePath.trim()) {
2404
2404
  throw Error('basePath can not be empty');
@@ -2458,7 +2458,7 @@ class APIError extends Error {
2458
2458
 
2459
2459
  /* eslint-disable implicit-arrow-linebreak */
2460
2460
  const defaultHeaders = {
2461
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.13.0-alpha.1',
2461
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.13.1-alpha',
2462
2462
  };
2463
2463
  /**
2464
2464
  * createAPIConfiguration to create a custom Configuration
@@ -2730,7 +2730,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2730
2730
  chainID,
2731
2731
  coreContractAddress,
2732
2732
  registrationContractAddress,
2733
- sdkVersion: 'ts-immutable-sdk-0.13.0-alpha.1',
2733
+ sdkVersion: 'ts-immutable-sdk-0.13.1-alpha',
2734
2734
  });
2735
2735
  /**
2736
2736
  * Sets `sdkVersion` at the time of build
@@ -8707,6 +8707,7 @@ class ZkEvmProvider {
8707
8707
  // Pass through methods
8708
8708
  case 'eth_gasPrice':
8709
8709
  case 'eth_getBalance':
8710
+ case 'eth_getCode':
8710
8711
  case 'eth_getStorageAt':
8711
8712
  case 'eth_estimateGas':
8712
8713
  case 'eth_call':
@@ -28492,7 +28493,7 @@ var checkout_sdk = /*#__PURE__*/Object.freeze({
28492
28493
  function $parcel$export(e, n, v, s) {
28493
28494
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
28494
28495
  }
28495
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.13.0-alpha.1";
28496
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.13.1-alpha";
28496
28497
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
28497
28498
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
28498
28499
 
package/dist/passport.js CHANGED
@@ -1457,7 +1457,7 @@ class MultiRollupApiClients {
1457
1457
  }
1458
1458
 
1459
1459
  // eslint-disable-next-line @typescript-eslint/naming-convention
1460
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.13.0-alpha.1' };
1460
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.13.1-alpha' };
1461
1461
  const createConfig = ({ basePath, headers, }) => {
1462
1462
  if (!basePath.trim()) {
1463
1463
  throw Error('basePath can not be empty');
@@ -1513,7 +1513,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
1513
1513
  chainID,
1514
1514
  coreContractAddress,
1515
1515
  registrationContractAddress,
1516
- sdkVersion: 'ts-immutable-sdk-0.13.0-alpha.1',
1516
+ sdkVersion: 'ts-immutable-sdk-0.13.1-alpha',
1517
1517
  });
1518
1518
  /**
1519
1519
  * Sets `sdkVersion` at the time of build
@@ -7474,6 +7474,7 @@ class ZkEvmProvider {
7474
7474
  // Pass through methods
7475
7475
  case 'eth_gasPrice':
7476
7476
  case 'eth_getBalance':
7477
+ case 'eth_getCode':
7477
7478
  case 'eth_getStorageAt':
7478
7479
  case 'eth_estimateGas':
7479
7480
  case 'eth_call':
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "0.13.0-alpha.1",
4
+ "version": "0.13.1-alpha",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",