@skip-go/widget 3.10.11 → 3.11.0
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
|
@@ -17,6 +17,8 @@ declare type Callbacks = {
|
|
|
17
17
|
onTransactionFailed?: (props: onTransactionFailedProps) => void;
|
|
18
18
|
onRouteUpdated?: (props: onRouteUpdatedProps) => void;
|
|
19
19
|
onSourceAndDestinationSwapped?: (props: onSourceAndDestinationSwappedProps) => void;
|
|
20
|
+
onSourceAssetUpdated?: (props: onAssetUpdatedProps) => void;
|
|
21
|
+
onDestinationAssetUpdated?: (props: onAssetUpdatedProps) => void;
|
|
20
22
|
};
|
|
21
23
|
|
|
22
24
|
declare type ChainFilter = {
|
|
@@ -110,6 +112,11 @@ export declare const lightTheme: {
|
|
|
110
112
|
};
|
|
111
113
|
};
|
|
112
114
|
|
|
115
|
+
declare type onAssetUpdatedProps = {
|
|
116
|
+
chainId?: string;
|
|
117
|
+
denom?: string;
|
|
118
|
+
};
|
|
119
|
+
|
|
113
120
|
declare type onRouteUpdatedProps = {
|
|
114
121
|
srcChainId?: string;
|
|
115
122
|
srcAssetDenom?: string;
|
|
@@ -180,6 +187,22 @@ export declare const resetWidget: ({ onlyClearInputValues }?: {
|
|
|
180
187
|
onlyClearInputValues?: boolean;
|
|
181
188
|
}) => void;
|
|
182
189
|
|
|
190
|
+
/**
|
|
191
|
+
* Sets the selected asset (source or destination) in the global state
|
|
192
|
+
* @param {"source" | "destination"} options.type - Indicates whether to update the source or destination asset.
|
|
193
|
+
* @param {string} options.chainId - The chain Id of the asset.
|
|
194
|
+
* @param {string} options.denom - The denom (token identifier) of the asset.
|
|
195
|
+
* @param {number} options.amount - Optional amount to associate with the asset.
|
|
196
|
+
*/
|
|
197
|
+
export declare const setAsset: ({ type, ...assetDetails }: SetAssetProps) => void;
|
|
198
|
+
|
|
199
|
+
declare type SetAssetProps = {
|
|
200
|
+
type: "source" | "destination";
|
|
201
|
+
chainId: string;
|
|
202
|
+
denom: string;
|
|
203
|
+
amount?: number;
|
|
204
|
+
};
|
|
205
|
+
|
|
183
206
|
export declare type Theme = {
|
|
184
207
|
brandColor: string;
|
|
185
208
|
brandTextColor?: string;
|
|
@@ -277,6 +300,7 @@ export declare type WidgetProps = {
|
|
|
277
300
|
ibcEurekaHighlightedAssets?: IbcEurekaHighlightedAssets;
|
|
278
301
|
assetSymbolsSortedToTop?: string[];
|
|
279
302
|
hideAssetsUnlessWalletTypeConnected?: boolean;
|
|
303
|
+
batchSignTxs?: boolean;
|
|
280
304
|
} & SkipClientOptions & Callbacks & SignerGetters & SetApiOptionsProps;
|
|
281
305
|
|
|
282
306
|
declare type WidgetRouteConfig = RouteRequest & Pick<MessagesRequest, "timeoutSeconds">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-
|
|
1
|
+
import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-CXd73ec3.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 = {};
|
package/build/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { W, d, l, o, r } from "./index-
|
|
1
|
+
import { W, d, l, o, r, s } from "./index-CXd73ec3.js";
|
|
2
2
|
export {
|
|
3
3
|
W as Widget,
|
|
4
4
|
d as defaultTheme,
|
|
5
5
|
l as lightTheme,
|
|
6
6
|
o as openAssetAndChainSelectorModal,
|
|
7
|
-
r as resetWidget
|
|
7
|
+
r as resetWidget,
|
|
8
|
+
s as setAsset
|
|
8
9
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skip-go/widget",
|
|
3
3
|
"description": "Swap widget",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.11.0",
|
|
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": "1.
|
|
45
|
+
"@skip-go/client": "1.2.0",
|
|
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",
|