@imtbl/sdk 1.7.1 → 1.7.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.
@@ -22397,6 +22397,7 @@ interface CheckoutModuleConfiguration extends ModuleConfiguration<CheckoutOverri
22397
22397
  /**
22398
22398
  * A type representing various remotely defined configurations which are
22399
22399
  * accessible via the Checkout config and configured based on the Environment.
22400
+ * @property {ConnectConfig} connect
22400
22401
  * @property {DexConfig} dex
22401
22402
  * @property {OnRampConfig} onramp
22402
22403
  * @property {BridgeConfig} bridge
@@ -22406,6 +22407,8 @@ interface CheckoutModuleConfiguration extends ModuleConfiguration<CheckoutOverri
22406
22407
  * @property {TelemetryConfig | undefined} telemetry
22407
22408
  */
22408
22409
  type RemoteConfiguration = {
22410
+ /** The config used for the Connect. */
22411
+ connect: ConnectConfig;
22409
22412
  /** The config used for the DEX. */
22410
22413
  dex: DexConfig;
22411
22414
  /** The config used for the OnRamp */
@@ -22457,6 +22460,14 @@ type OnRampConfig = {
22457
22460
  /** OnRamp config for Transak provider */
22458
22461
  [key: string]: OnRampProviderConfig;
22459
22462
  };
22463
+ /**
22464
+ * A type representing the configuration for the Connect.
22465
+ * @property {boolean} walletConnect
22466
+ */
22467
+ type ConnectConfig = {
22468
+ /** A boolean value for enabling/disabling WalletConnect */
22469
+ walletConnect: boolean;
22470
+ };
22460
22471
  /**
22461
22472
  * A type representing the configuration for the DEX.
22462
22473
  * @property {ExchangeOverrides | undefined} overrides
package/dist/checkout.js CHANGED
@@ -107,7 +107,7 @@ const storeDetail$1 = (key, value) => {
107
107
  };
108
108
  setItem$1(Store$1.RUNTIME, RUNTIME_DETAILS$1);
109
109
  };
110
- const getDetail$1 = (key) => {
110
+ const getDetail$1$1 = (key) => {
111
111
  // Handle the scenario where detail is a falsy value
112
112
  if (RUNTIME_DETAILS$1[key] === undefined) {
113
113
  return undefined;
@@ -139,7 +139,7 @@ const flattenProperties$1 = (properties) => {
139
139
  };
140
140
 
141
141
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
142
- const SDK_VERSION$1 = '1.7.1';
142
+ const SDK_VERSION$1 = '1.7.2';
143
143
  const getReferrer$1 = () => {
144
144
  if (isNode$1()) {
145
145
  return '';
@@ -182,7 +182,7 @@ const initialise$2 = async () => {
182
182
  initialised$1 = true;
183
183
  try {
184
184
  const runtimeDetails = flattenProperties$1(getRuntimeDetails$1());
185
- const existingRuntimeId = getDetail$1(Detail$1.RUNTIME_ID);
185
+ const existingRuntimeId = getDetail$1$1(Detail$1.RUNTIME_ID);
186
186
  const body = {
187
187
  version: 1,
188
188
  data: {
@@ -314,6 +314,7 @@ const setPublishableApiKeyFn$1 = (publishableApiKey) => {
314
314
  storeDetail$1(Detail$1.PUBLISHABLE_API_KEY, publishableApiKey);
315
315
  };
316
316
  errorBoundary$1(getGlobalisedValue$2('setPublishableApiKey', setPublishableApiKeyFn$1));
317
+ errorBoundary$1(getGlobalisedValue$2('getDetail', getDetail$1$1));
317
318
 
318
319
  var Environment$1;
319
320
  (function (Environment) {
@@ -17446,7 +17447,7 @@ const storeDetail = (key, value) => {
17446
17447
  };
17447
17448
  setItem(Store.RUNTIME, RUNTIME_DETAILS);
17448
17449
  };
17449
- const getDetail = (key) => {
17450
+ const getDetail$1 = (key) => {
17450
17451
  // Handle the scenario where detail is a falsy value
17451
17452
  if (RUNTIME_DETAILS[key] === undefined) {
17452
17453
  return undefined;
@@ -17478,7 +17479,7 @@ const flattenProperties = (properties) => {
17478
17479
  };
17479
17480
 
17480
17481
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
17481
- const SDK_VERSION = '1.7.1';
17482
+ const SDK_VERSION = '1.7.2';
17482
17483
  const getReferrer = () => {
17483
17484
  if (isNode()) {
17484
17485
  return '';
@@ -17521,7 +17522,7 @@ const initialise = async () => {
17521
17522
  initialised = true;
17522
17523
  try {
17523
17524
  const runtimeDetails = flattenProperties(getRuntimeDetails());
17524
- const existingRuntimeId = getDetail(Detail.RUNTIME_ID);
17525
+ const existingRuntimeId = getDetail$1(Detail.RUNTIME_ID);
17525
17526
  const body = {
17526
17527
  version: 1,
17527
17528
  data: {
@@ -17653,6 +17654,7 @@ const setPublishableApiKeyFn = (publishableApiKey) => {
17653
17654
  storeDetail(Detail.PUBLISHABLE_API_KEY, publishableApiKey);
17654
17655
  };
17655
17656
  errorBoundary(getGlobalisedValue('setPublishableApiKey', setPublishableApiKeyFn));
17657
+ errorBoundary(getGlobalisedValue('getDetail', getDetail$1));
17656
17658
 
17657
17659
  var Environment;
17658
17660
  (function (Environment) {
@@ -27723,7 +27725,7 @@ class APIError extends Error {
27723
27725
 
27724
27726
  /* eslint-disable implicit-arrow-linebreak */
27725
27727
  const defaultHeaders = {
27726
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.1',
27728
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.2',
27727
27729
  };
27728
27730
  /**
27729
27731
  * createAPIConfiguration to create a custom Configuration
@@ -29090,7 +29092,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
29090
29092
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
29091
29093
  };
29092
29094
 
29093
- const SDK_VERSION_MARKER = '1.7.1';
29095
+ const SDK_VERSION_MARKER = '1.7.2';
29094
29096
  // This SDK version is replaced by the `yarn build` command ran on the root level
29095
29097
  const globalPackageVersion = () => SDK_VERSION_MARKER;
29096
29098
 
package/dist/config.js CHANGED
@@ -96,7 +96,7 @@ const storeDetail = (key, value) => {
96
96
  };
97
97
  setItem(Store.RUNTIME, RUNTIME_DETAILS);
98
98
  };
99
- const getDetail = (key) => {
99
+ const getDetail$1 = (key) => {
100
100
  // Handle the scenario where detail is a falsy value
101
101
  if (RUNTIME_DETAILS[key] === undefined) {
102
102
  return undefined;
@@ -128,7 +128,7 @@ const flattenProperties = (properties) => {
128
128
  };
129
129
 
130
130
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
131
- const SDK_VERSION = '1.7.1';
131
+ const SDK_VERSION = '1.7.2';
132
132
  const getReferrer = () => {
133
133
  if (isNode()) {
134
134
  return '';
@@ -171,7 +171,7 @@ const initialise = async () => {
171
171
  initialised = true;
172
172
  try {
173
173
  const runtimeDetails = flattenProperties(getRuntimeDetails());
174
- const existingRuntimeId = getDetail(Detail.RUNTIME_ID);
174
+ const existingRuntimeId = getDetail$1(Detail.RUNTIME_ID);
175
175
  const body = {
176
176
  version: 1,
177
177
  data: {
@@ -303,6 +303,7 @@ const setPublishableApiKeyFn = (publishableApiKey) => {
303
303
  storeDetail(Detail.PUBLISHABLE_API_KEY, publishableApiKey);
304
304
  };
305
305
  const setPublishableApiKey = errorBoundary(getGlobalisedValue('setPublishableApiKey', setPublishableApiKeyFn));
306
+ errorBoundary(getGlobalisedValue('getDetail', getDetail$1));
306
307
 
307
308
  var Environment;
308
309
  (function (Environment) {