@imtbl/sdk 0.26.0 → 0.27.1

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.
@@ -25581,27 +25581,27 @@ type WalletNetworkSwitchEvent = {
25581
25581
  */
25582
25582
  type WalletDisconnectWalletEvent = {};
25583
25583
  /**
25584
- * Enum representing possible Primary Revenue Widget event types.
25584
+ * Enum representing possible Sale Widget event types.
25585
25585
  */
25586
- declare enum PrimaryRevenueEventType {
25586
+ declare enum SaleEventType {
25587
25587
  CLOSE_WIDGET = "close-widget",
25588
25588
  SUCCESS = "success",
25589
25589
  FAILURE = "failure",
25590
25590
  REJECTED = "rejected"
25591
25591
  }
25592
25592
  /**
25593
- * Represents a successful primary revenue transaction.
25593
+ * Represents a successful Sale transaction.
25594
25594
  * @property {string} transactionHash - The hash of the successful transaction.
25595
25595
  */
25596
- type PrimaryRevenueSuccess = {
25596
+ type SaleSuccess = {
25597
25597
  [key: string]: string;
25598
25598
  };
25599
25599
  /**
25600
- * Type representing a PrimaryRevenue Widget with type FAILURE.
25600
+ * Type representing a Sale Widget with type FAILURE.
25601
25601
  * @property {string} reason - The reason why the swap failed.
25602
25602
  * @property {number} timestamp - The timestamp of the failed swap.
25603
25603
  */
25604
- type PrimaryRevenueFailed = {
25604
+ type SaleFailed = {
25605
25605
  reason: string;
25606
25606
  timestamp: number;
25607
25607
  };
@@ -25614,16 +25614,16 @@ declare enum IMTBLWidgetEvents {
25614
25614
  IMTBL_SWAP_WIDGET_EVENT = "imtbl-swap-widget",
25615
25615
  IMTBL_BRIDGE_WIDGET_EVENT = "imtbl-bridge-widget",
25616
25616
  IMTBL_ONRAMP_WIDGET_EVENT = "imtbl-onramp-widget",
25617
- IMTBL_PRIMARY_REVENUE_WIDGET_EVENT = "imtbl-primary-revenue-widget"
25617
+ IMTBL_PRIMARY_REVENUE_WIDGET_EVENT = "imtbl-sale-widget"
25618
25618
  }
25619
25619
  /**
25620
25620
  * Represents an event emitted by a widget.
25621
25621
  * @template T - The type of data associated with the event.
25622
- * @property {OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType | OnRampEventType | PrimaryRevenueEventType} type - The type of the event.
25622
+ * @property {OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType | OnRampEventType | SaleEventType} type - The type of the event.
25623
25623
  * @property {T} data - The data associated with the event.
25624
25624
  */
25625
25625
  type WidgetEvent<T> = {
25626
- type: OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType | OnRampEventType | PrimaryRevenueEventType;
25626
+ type: OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType | OnRampEventType | SaleEventType;
25627
25627
  data: T;
25628
25628
  };
25629
25629
  /**
@@ -25652,7 +25652,7 @@ declare global {
25652
25652
  'imtbl-swap': ImtblSwapProps;
25653
25653
  'imtbl-bridge': ImtblBridgeProps;
25654
25654
  'imtbl-onramp': ImtblOnRampProps;
25655
- 'imtbl-primary-revenue': ImtblPrimaryRevenueProps;
25655
+ 'imtbl-sale': ImtblSaleProps;
25656
25656
  }
25657
25657
  }
25658
25658
  interface ImmutableWebComponent {
@@ -25734,9 +25734,9 @@ interface ImtblOnRampProps extends React.DetailedHTMLProps<React.HTMLAttributes<
25734
25734
  contractAddress?: string;
25735
25735
  }
25736
25736
  /**
25737
- * Interface for the properties of the primary revenue web component.
25737
+ * Interface for the properties of the Sale web component.
25738
25738
  * Extends the React.DetailedHTMLProps interface to inherit HTML attributes for an HTMLElement.
25739
- * @interface ImtblPrimaryRevenueProps
25739
+ * @interface ImtblSaleProps
25740
25740
  * @extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>
25741
25741
  * @property {string | undefined} widgetConfig - Optional string representing the widget configuration.
25742
25742
  * @property {string | undefined} amount - The amount to be paid.
@@ -25745,7 +25745,7 @@ interface ImtblOnRampProps extends React.DetailedHTMLProps<React.HTMLAttributes<
25745
25745
  * @property {string | undefined} env - The environment to use: SANDBOX, DEV, PRODUCTION, ...
25746
25746
  * @property {string | undefined} environmentId - The environment id from Immutable Hub.
25747
25747
  */
25748
- interface ImtblPrimaryRevenueProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
25748
+ interface ImtblSaleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
25749
25749
  widgetConfig?: string;
25750
25750
  amount: string;
25751
25751
  products: string;
@@ -25853,4 +25853,4 @@ interface OnRampReactProps {
25853
25853
  */
25854
25854
  declare function OnRampReact(props: OnRampReactProps): JSX.Element;
25855
25855
 
25856
- export { BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess, CheckoutWidgetTagNames, CheckoutWidgets, CheckoutWidgetsConfig, ConnectEventType, ConnectReact, ConnectReactProps, ConnectionFailed, ConnectionSuccess, IMTBLWidgetEvents, ImtblBridgeProps, ImtblConnectProps, ImtblOnRampProps, ImtblPrimaryRevenueProps, ImtblSwapProps, ImtblWalletProps, OnRampEventType, OnRampFailed, OnRampReact, OnRampReactProps, OnRampSuccess, OrchestrationEventType, PrimaryRevenueEventType, PrimaryRevenueFailed, PrimaryRevenueSuccess, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, SemanticVersion, SwapEventType, SwapFailed, SwapReact, SwapReactProps, SwapRejected, SwapSuccess, UpdateConfig, WalletDisconnectWalletEvent, WalletEventType, WalletNetworkSwitchEvent, WalletReact, WalletReactProps, WidgetEvent, WidgetTheme };
25856
+ export { BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess, CheckoutWidgetTagNames, CheckoutWidgets, CheckoutWidgetsConfig, ConnectEventType, ConnectReact, ConnectReactProps, ConnectionFailed, ConnectionSuccess, IMTBLWidgetEvents, ImtblBridgeProps, ImtblConnectProps, ImtblOnRampProps, ImtblSaleProps, ImtblSwapProps, ImtblWalletProps, OnRampEventType, OnRampFailed, OnRampReact, OnRampReactProps, OnRampSuccess, OrchestrationEventType, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, SaleEventType, SaleFailed, SaleSuccess, SemanticVersion, SwapEventType, SwapFailed, SwapReact, SwapReactProps, SwapRejected, SwapSuccess, UpdateConfig, WalletDisconnectWalletEvent, WalletEventType, WalletNetworkSwitchEvent, WalletReact, WalletReactProps, WidgetEvent, WidgetTheme };
@@ -25,7 +25,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
25
25
  })($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
26
26
 
27
27
 
28
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.26.0";
28
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.27.1";
29
29
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
30
30
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
31
31
 
@@ -159,7 +159,7 @@ var $207ed853f11d19d5$export$5a0ace85cae72d45;
159
159
  IMTBLWidgetEvents["IMTBL_SWAP_WIDGET_EVENT"] = "imtbl-swap-widget";
160
160
  IMTBLWidgetEvents["IMTBL_BRIDGE_WIDGET_EVENT"] = "imtbl-bridge-widget";
161
161
  IMTBLWidgetEvents["IMTBL_ONRAMP_WIDGET_EVENT"] = "imtbl-onramp-widget";
162
- IMTBLWidgetEvents["IMTBL_PRIMARY_REVENUE_WIDGET_EVENT"] = "imtbl-primary-revenue-widget";
162
+ IMTBLWidgetEvents["IMTBL_PRIMARY_REVENUE_WIDGET_EVENT"] = "imtbl-sale-widget";
163
163
  })($207ed853f11d19d5$export$5a0ace85cae72d45 || ($207ed853f11d19d5$export$5a0ace85cae72d45 = {}));
164
164
 
165
165
 
@@ -199,18 +199,18 @@ $parcel$export($53d219e7f6bf0cd6$exports, "SwapEventType", () => $53d219e7f6bf0c
199
199
  })($53d219e7f6bf0cd6$export$140a49745ab55563 || ($53d219e7f6bf0cd6$export$140a49745ab55563 = {}));
200
200
 
201
201
 
202
- var $8c83f59522c4ca40$exports = {};
202
+ var $9b3189b6b155842e$exports = {};
203
203
 
204
- $parcel$export($8c83f59522c4ca40$exports, "PrimaryRevenueEventType", () => $8c83f59522c4ca40$export$b33478ffb988bd5e);
204
+ $parcel$export($9b3189b6b155842e$exports, "SaleEventType", () => $9b3189b6b155842e$export$881881ffb3bd733e);
205
205
  /**
206
- * Enum representing possible Primary Revenue Widget event types.
207
- */ var $8c83f59522c4ca40$export$b33478ffb988bd5e;
208
- (function(PrimaryRevenueEventType) {
209
- PrimaryRevenueEventType["CLOSE_WIDGET"] = "close-widget";
210
- PrimaryRevenueEventType["SUCCESS"] = "success";
211
- PrimaryRevenueEventType["FAILURE"] = "failure";
212
- PrimaryRevenueEventType["REJECTED"] = "rejected";
213
- })($8c83f59522c4ca40$export$b33478ffb988bd5e || ($8c83f59522c4ca40$export$b33478ffb988bd5e = {}));
206
+ * Enum representing possible Sale Widget event types.
207
+ */ var $9b3189b6b155842e$export$881881ffb3bd733e;
208
+ (function(SaleEventType) {
209
+ SaleEventType["CLOSE_WIDGET"] = "close-widget";
210
+ SaleEventType["SUCCESS"] = "success";
211
+ SaleEventType["FAILURE"] = "failure";
212
+ SaleEventType["REJECTED"] = "rejected";
213
+ })($9b3189b6b155842e$export$881881ffb3bd733e || ($9b3189b6b155842e$export$881881ffb3bd733e = {}));
214
214
 
215
215
 
216
216
  var $15cc9e120aa6f3bf$exports = {};
@@ -446,4 +446,4 @@ function $f94f63f2c041a04c$export$9e363c61ea99bbb4(props) {
446
446
  });
447
447
  }
448
448
 
449
- export { $15cc9e120aa6f3bf$export$d1bfa21f7c76447a as BridgeEventType, $1f969328e5988c99$export$30f61ebf204c69f6 as BridgeReact, $045213b18e9f1f94$export$75be0f6af9650f2c as CheckoutWidgetTagNames, $430e3eda76fa4d5f$export$af210a0808087845 as CheckoutWidgets, $a85ecdbd885c58ad$export$e72e7f9969a47dd3 as ConnectEventType, $f2083cd30e2f5c56$export$49d62957f420a1e2 as ConnectReact, $207ed853f11d19d5$export$5a0ace85cae72d45 as IMTBLWidgetEvents, $d882ddc5600b1284$export$66ec39c0924078d8 as OnRampEventType, $f94f63f2c041a04c$export$9e363c61ea99bbb4 as OnRampReact, $ad06b030b1a3ba34$export$b80d2daf830437b9 as OrchestrationEventType, $8c83f59522c4ca40$export$b33478ffb988bd5e as PrimaryRevenueEventType, $53d219e7f6bf0cd6$export$140a49745ab55563 as SwapEventType, $a4fbb8e3a6aeff58$export$971e031379577f4 as SwapReact, $430e3eda76fa4d5f$export$bf1548ba7e61c17f as UpdateConfig, $77b6aac5c353d4a9$export$d9be06b70b28c742 as WalletEventType, $89d55ace0f8f1c07$export$ceaac94f34dba154 as WalletReact, $045213b18e9f1f94$export$c88931fdc51854eb as WidgetTheme };
449
+ export { $15cc9e120aa6f3bf$export$d1bfa21f7c76447a as BridgeEventType, $1f969328e5988c99$export$30f61ebf204c69f6 as BridgeReact, $045213b18e9f1f94$export$75be0f6af9650f2c as CheckoutWidgetTagNames, $430e3eda76fa4d5f$export$af210a0808087845 as CheckoutWidgets, $a85ecdbd885c58ad$export$e72e7f9969a47dd3 as ConnectEventType, $f2083cd30e2f5c56$export$49d62957f420a1e2 as ConnectReact, $207ed853f11d19d5$export$5a0ace85cae72d45 as IMTBLWidgetEvents, $d882ddc5600b1284$export$66ec39c0924078d8 as OnRampEventType, $f94f63f2c041a04c$export$9e363c61ea99bbb4 as OnRampReact, $ad06b030b1a3ba34$export$b80d2daf830437b9 as OrchestrationEventType, $9b3189b6b155842e$export$881881ffb3bd733e as SaleEventType, $53d219e7f6bf0cd6$export$140a49745ab55563 as SwapEventType, $a4fbb8e3a6aeff58$export$971e031379577f4 as SwapReact, $430e3eda76fa4d5f$export$bf1548ba7e61c17f as UpdateConfig, $77b6aac5c353d4a9$export$d9be06b70b28c742 as WalletEventType, $89d55ace0f8f1c07$export$ceaac94f34dba154 as WalletReact, $045213b18e9f1f94$export$c88931fdc51854eb as WidgetTheme };
@@ -16,7 +16,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
16
16
  chainID,
17
17
  coreContractAddress,
18
18
  registrationContractAddress,
19
- sdkVersion: 'ts-immutable-sdk-0.26.0',
19
+ sdkVersion: 'ts-immutable-sdk-0.27.1',
20
20
  });
21
21
  /**
22
22
  * Sets `sdkVersion` at the time of build