@skip-go/widget 3.3.5 → 3.3.7

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/build/index.d.ts CHANGED
@@ -8,11 +8,12 @@ import { SkipClientOptions } from '@skip-go/client';
8
8
  import { WalletConnectModalConfig } from '@walletconnect/modal';
9
9
 
10
10
  declare type Callbacks = {
11
- onWalletConnected?: (props: OnWalletConnectedProps) => void;
12
- onWalletDisconnected?: (props: OnWalletDisconnectedProps) => void;
13
- onTransactionBroadcasted?: (props: OnTransactionBroadcastedProps) => void;
14
- onTransactionComplete?: (props: OnTransactionCompleteProps) => void;
15
- onTransactionFailed?: (props: OnTransactionFailedProps) => void;
11
+ onWalletConnected?: (props: onWalletConnectedProps) => void;
12
+ onWalletDisconnected?: (props: onWalletDisconnectedProps) => void;
13
+ onTransactionBroadcasted?: (props: onTransactionBroadcastedProps) => void;
14
+ onTransactionComplete?: (props: onTransactionCompleteProps) => void;
15
+ onTransactionFailed?: (props: onTransactionFailedProps) => void;
16
+ onRouteUpdated?: (props: onRouteUpdatedProps) => void;
16
17
  };
17
18
 
18
19
  declare type ChainFilter = {
@@ -107,7 +108,16 @@ declare type NewSwapVenueRequest = {
107
108
  chainId: string;
108
109
  };
109
110
 
110
- declare type OnTransactionBroadcastedProps = {
111
+ declare type onRouteUpdatedProps = {
112
+ srcChainId?: string;
113
+ srcAssetDenom?: string;
114
+ destChainId?: string;
115
+ destAssetDenom?: string;
116
+ amountIn?: string;
117
+ amountOut?: string;
118
+ };
119
+
120
+ declare type onTransactionBroadcastedProps = {
111
121
  txHash: string;
112
122
  chainId: string;
113
123
  explorerLink: string;
@@ -119,7 +129,7 @@ declare type OnTransactionBroadcastedProps = {
119
129
  destAssetChainID: string;
120
130
  };
121
131
 
122
- declare type OnTransactionCompleteProps = {
132
+ declare type onTransactionCompleteProps = {
123
133
  txHash: string;
124
134
  chainId: string;
125
135
  explorerLink: string;
@@ -131,18 +141,18 @@ declare type OnTransactionCompleteProps = {
131
141
  destAssetChainID: string;
132
142
  };
133
143
 
134
- declare type OnTransactionFailedProps = {
144
+ declare type onTransactionFailedProps = {
135
145
  error: string;
136
146
  };
137
147
 
138
- declare type OnWalletConnectedProps = {
148
+ declare type onWalletConnectedProps = {
139
149
  walletName: string;
140
150
  chainIdToAddressMap?: Record<string, string>;
141
151
  chainId?: string;
142
152
  address?: string;
143
153
  };
144
154
 
145
- declare type OnWalletDisconnectedProps = {
155
+ declare type onWalletDisconnectedProps = {
146
156
  walletName: string;
147
157
  chainType?: ChainType;
148
158
  };
@@ -207,6 +217,10 @@ export declare type WidgetProps = {
207
217
  * @default 1
208
218
  */
209
219
  slippage?: number;
220
+ /**
221
+ * Set allowance amount to max if EVM transaction requires allowance approval
222
+ */
223
+ useUnlimitedApproval?: boolean;
210
224
  };
211
225
  routeConfig?: WidgetRouteConfig;
212
226
  filter?: ChainFilter;
@@ -1,4 +1,4 @@
1
- import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-DqHjtIES.js";
1
+ import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-B4T9k4Sm.js";
2
2
  import qg, { PROPOSAL_EXPIRY_MESSAGE } from "@walletconnect/sign-client";
3
3
  const global = globalThis || void 0 || self;
4
4
  var buffer$1 = {}, base64Js = {};
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as t, W as d, d as h, l as s } from "./index-DqHjtIES.js";
1
+ import { S as t, W as d, d as h, l as s } from "./index-B4T9k4Sm.js";
2
2
  export {
3
3
  t as ShowWidget,
4
4
  d as Widget,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@skip-go/widget",
3
3
  "description": "Swap widget",
4
- "version": "3.3.5",
4
+ "version": "3.3.7",
5
5
  "repository": {
6
6
  "url": "https://github.com/skip-mev/skip-go",
7
7
  "directory": "packages/widget"
@@ -42,7 +42,7 @@
42
42
  "@penumbra-zone/transport-dom": "^7.5.0",
43
43
  "@r2wc/react-to-web-component": "^2.0.3",
44
44
  "@sentry/react": "^8.46.0",
45
- "@skip-go/client": "0.16.12",
45
+ "@skip-go/client": "0.16.14",
46
46
  "@solana/spl-token": "^0.4.8",
47
47
  "@solana/wallet-adapter-backpack": "^0.1.14",
48
48
  "@solana/wallet-adapter-coinbase": "^0.1.19",