@imtbl/sdk 0.28.1-alpha → 0.28.2

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
@@ -3632,7 +3632,7 @@ class MultiRollupApiClients {
3632
3632
  }
3633
3633
 
3634
3634
  // eslint-disable-next-line @typescript-eslint/naming-convention
3635
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.28.1-alpha' };
3635
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.28.2' };
3636
3636
  const createConfig = ({ basePath, headers, }) => {
3637
3637
  if (!basePath.trim()) {
3638
3638
  throw Error('basePath can not be empty');
@@ -3692,7 +3692,7 @@ class APIError extends Error {
3692
3692
 
3693
3693
  /* eslint-disable implicit-arrow-linebreak */
3694
3694
  const defaultHeaders = {
3695
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.28.1-alpha',
3695
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.28.2',
3696
3696
  };
3697
3697
  /**
3698
3698
  * createAPIConfiguration to create a custom Configuration
@@ -4103,7 +4103,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
4103
4103
  chainID,
4104
4104
  coreContractAddress,
4105
4105
  registrationContractAddress,
4106
- sdkVersion: 'ts-immutable-sdk-0.28.1-alpha',
4106
+ sdkVersion: 'ts-immutable-sdk-0.28.2',
4107
4107
  });
4108
4108
  /**
4109
4109
  * Sets `sdkVersion` at the time of build
@@ -10764,11 +10764,7 @@ class Passport {
10764
10764
  async connectImxSilent() {
10765
10765
  return this.passportImxProviderFactory.getProviderSilent();
10766
10766
  }
10767
- async connectImx(options) {
10768
- const { useCachedSession = false } = options || {};
10769
- if (useCachedSession) {
10770
- return this.passportImxProviderFactory.getProviderSilent();
10771
- }
10767
+ async connectImx() {
10772
10768
  return this.passportImxProviderFactory.getProvider();
10773
10769
  }
10774
10770
  async loginWithDeviceFlow() {
@@ -30317,7 +30313,7 @@ class $fd8a8472dcc3ec2b$export$ef140a6b05dfc786 {
30317
30313
 
30318
30314
  const $458d407830d66110$export$e6a390ea6399b7d8 = (config, debugString, seconds)=>{
30319
30315
  // eslint-disable-next-line no-console
30320
- if (!config.isProduction) console.debug(debugString, seconds);
30316
+ if (!config.isProduction) console.info(debugString, seconds);
30321
30317
  };
30322
30318
  const $458d407830d66110$export$5280dbcb91c8b391 = async (config, debugString, promise)=>{
30323
30319
  const startTime = performance.now();
@@ -33558,7 +33554,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
33558
33554
  })($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
33559
33555
 
33560
33556
 
33561
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.28.1-alpha";
33557
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.28.2";
33562
33558
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
33563
33559
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
33564
33560
 
package/dist/index.d.ts CHANGED
@@ -14968,9 +14968,7 @@ declare class Passport {
14968
14968
  * @deprecated The method connectImx(useCachedSession) should be used instead
14969
14969
  */
14970
14970
  connectImxSilent(): Promise<IMXProvider | null>;
14971
- connectImx(options?: {
14972
- useCachedSession: boolean;
14973
- }): Promise<IMXProvider | null>;
14971
+ connectImx(): Promise<IMXProvider>;
14974
14972
  loginWithDeviceFlow(): Promise<DeviceConnectResponse>;
14975
14973
  connectImxDeviceFlow(deviceCode: string, interval: number, timeoutMs?: number): Promise<IMXProvider | null>;
14976
14974
  getPKCEAuthorizationUrl(): string;
package/dist/index.js CHANGED
@@ -3610,7 +3610,7 @@ class MultiRollupApiClients {
3610
3610
  }
3611
3611
 
3612
3612
  // eslint-disable-next-line @typescript-eslint/naming-convention
3613
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.28.1-alpha' };
3613
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.28.2' };
3614
3614
  const createConfig = ({ basePath, headers, }) => {
3615
3615
  if (!basePath.trim()) {
3616
3616
  throw Error('basePath can not be empty');
@@ -3670,7 +3670,7 @@ class APIError extends Error {
3670
3670
 
3671
3671
  /* eslint-disable implicit-arrow-linebreak */
3672
3672
  const defaultHeaders = {
3673
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.28.1-alpha',
3673
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.28.2',
3674
3674
  };
3675
3675
  /**
3676
3676
  * createAPIConfiguration to create a custom Configuration
@@ -4081,7 +4081,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
4081
4081
  chainID,
4082
4082
  coreContractAddress,
4083
4083
  registrationContractAddress,
4084
- sdkVersion: 'ts-immutable-sdk-0.28.1-alpha',
4084
+ sdkVersion: 'ts-immutable-sdk-0.28.2',
4085
4085
  });
4086
4086
  /**
4087
4087
  * Sets `sdkVersion` at the time of build
@@ -10742,11 +10742,7 @@ class Passport {
10742
10742
  async connectImxSilent() {
10743
10743
  return this.passportImxProviderFactory.getProviderSilent();
10744
10744
  }
10745
- async connectImx(options) {
10746
- const { useCachedSession = false } = options || {};
10747
- if (useCachedSession) {
10748
- return this.passportImxProviderFactory.getProviderSilent();
10749
- }
10745
+ async connectImx() {
10750
10746
  return this.passportImxProviderFactory.getProvider();
10751
10747
  }
10752
10748
  async loginWithDeviceFlow() {
@@ -30295,7 +30291,7 @@ class $fd8a8472dcc3ec2b$export$ef140a6b05dfc786 {
30295
30291
 
30296
30292
  const $458d407830d66110$export$e6a390ea6399b7d8 = (config, debugString, seconds)=>{
30297
30293
  // eslint-disable-next-line no-console
30298
- if (!config.isProduction) console.debug(debugString, seconds);
30294
+ if (!config.isProduction) console.info(debugString, seconds);
30299
30295
  };
30300
30296
  const $458d407830d66110$export$5280dbcb91c8b391 = async (config, debugString, promise)=>{
30301
30297
  const startTime = performance.now();
@@ -33536,7 +33532,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
33536
33532
  })($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
33537
33533
 
33538
33534
 
33539
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.28.1-alpha";
33535
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.28.2";
33540
33536
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
33541
33537
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
33542
33538
 
@@ -10615,9 +10615,7 @@ declare class Passport {
10615
10615
  * @deprecated The method connectImx(useCachedSession) should be used instead
10616
10616
  */
10617
10617
  connectImxSilent(): Promise<IMXProvider | null>;
10618
- connectImx(options?: {
10619
- useCachedSession: boolean;
10620
- }): Promise<IMXProvider | null>;
10618
+ connectImx(): Promise<IMXProvider>;
10621
10619
  loginWithDeviceFlow(): Promise<DeviceConnectResponse>;
10622
10620
  connectImxDeviceFlow(deviceCode: string, interval: number, timeoutMs?: number): Promise<IMXProvider | null>;
10623
10621
  getPKCEAuthorizationUrl(): string;
package/dist/passport.js CHANGED
@@ -2072,7 +2072,7 @@ class MultiRollupApiClients {
2072
2072
  }
2073
2073
 
2074
2074
  // eslint-disable-next-line @typescript-eslint/naming-convention
2075
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.28.1-alpha' };
2075
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.28.2' };
2076
2076
  const createConfig = ({ basePath, headers, }) => {
2077
2077
  if (!basePath.trim()) {
2078
2078
  throw Error('basePath can not be empty');
@@ -2128,7 +2128,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2128
2128
  chainID,
2129
2129
  coreContractAddress,
2130
2130
  registrationContractAddress,
2131
- sdkVersion: 'ts-immutable-sdk-0.28.1-alpha',
2131
+ sdkVersion: 'ts-immutable-sdk-0.28.2',
2132
2132
  });
2133
2133
  /**
2134
2134
  * Sets `sdkVersion` at the time of build
@@ -8772,11 +8772,7 @@ class Passport {
8772
8772
  async connectImxSilent() {
8773
8773
  return this.passportImxProviderFactory.getProviderSilent();
8774
8774
  }
8775
- async connectImx(options) {
8776
- const { useCachedSession = false } = options || {};
8777
- if (useCachedSession) {
8778
- return this.passportImxProviderFactory.getProviderSilent();
8779
- }
8775
+ async connectImx() {
8780
8776
  return this.passportImxProviderFactory.getProvider();
8781
8777
  }
8782
8778
  async loginWithDeviceFlow() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "0.28.1-alpha",
4
+ "version": "0.28.2",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
package/dist/global.d.ts DELETED
@@ -1,42 +0,0 @@
1
- /* eslint-disable @typescript-eslint/naming-convention */
2
- import {
3
- ImtblConnectProps,
4
- ImtblWalletProps,
5
- ImtblSwapProps,
6
- ImtblBridgeProps,
7
- ImtblOnRampProps,
8
- // ImtblExampleProps,
9
- // ImtblBuyProps,
10
- // ImtblTransitionExampleProps,
11
- // ImtblInnerWidgetExampleProps,
12
- // ImtblOuterWidgetExampleProps,
13
- ImtblSaleProps,
14
- } from '@imtbl/checkout-widgets';
15
-
16
- declare global {
17
- interface Window {
18
- ImtblCheckoutWidgetConfig: any;
19
- }
20
- namespace JSX {
21
- interface IntrinsicElements {
22
- 'imtbl-connect': ImtblConnectProps;
23
- 'imtbl-wallet': ImtblWalletProps;
24
- 'imtbl-swap': ImtblSwapProps;
25
- 'imtbl-bridge': ImtblBridgeProps;
26
- 'imtbl-onramp': ImtblOnRampProps;
27
- // 'imtbl-buy': ImtblBuyProps;
28
- 'imtbl-sale': ImtblSaleProps;
29
- // 'imtbl-example': ImtblExampleProps;
30
- // 'imtbl-transition-example': ImtblTransitionExampleProps;
31
- // 'imtbl-inner-widget-example': ImtblInnerWidgetExampleProps;
32
- // 'imtbl-outer-widget-example': ImtblOuterWidgetExampleProps;
33
- }
34
- }
35
- interface ImmutableWebComponent {
36
- setProvider: Function;
37
- addPassportOption: Function;
38
- setAttribute: Function;
39
- }
40
- }
41
-
42
- export {};