@skip-go/widget 3.7.0 → 3.7.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.
package/build/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Asset } from '@skip-go/client';
|
|
1
2
|
import { ChainAffiliates } from '@skip-go/client';
|
|
2
3
|
import { ChainType } from '@skip-go/client';
|
|
3
4
|
import { default as default_2 } from 'react';
|
|
@@ -21,6 +22,11 @@ declare type ChainFilter = {
|
|
|
21
22
|
destination?: Record<string, string[] | undefined>;
|
|
22
23
|
};
|
|
23
24
|
|
|
25
|
+
declare type ClientAsset = Asset & {
|
|
26
|
+
chain_key: string;
|
|
27
|
+
chainName: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
24
30
|
declare type DefaultRouteConfig = {
|
|
25
31
|
amountIn?: number;
|
|
26
32
|
amountOut?: number;
|
|
@@ -162,6 +168,11 @@ declare type onWalletDisconnectedProps = {
|
|
|
162
168
|
chainType?: ChainType;
|
|
163
169
|
};
|
|
164
170
|
|
|
171
|
+
export declare const openAssetAndChainSelectorModal: ({ context, onSelect, }: {
|
|
172
|
+
onSelect: (asset: ClientAsset | null) => void;
|
|
173
|
+
context: "source" | "destination";
|
|
174
|
+
}) => void;
|
|
175
|
+
|
|
165
176
|
declare type PartialTheme = Partial<Theme> | undefined;
|
|
166
177
|
|
|
167
178
|
export declare const resetWidget: ({ onlyClearInputValues }?: {
|
|
@@ -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-SURT_wpx.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,7 +1,8 @@
|
|
|
1
|
-
import { W as
|
|
1
|
+
import { W as s, d as t, l as d, o, r as l } from "./index-SURT_wpx.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
s as Widget,
|
|
4
|
+
t as defaultTheme,
|
|
5
5
|
d as lightTheme,
|
|
6
|
-
|
|
6
|
+
o as openAssetAndChainSelectorModal,
|
|
7
|
+
l as resetWidget
|
|
7
8
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skip-go/widget",
|
|
3
3
|
"description": "Swap widget",
|
|
4
|
-
"version": "3.7.
|
|
4
|
+
"version": "3.7.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/skip-mev/skip-go",
|
|
7
7
|
"directory": "packages/widget"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@penumbra-zone/transport-dom": "^7.5.0",
|
|
44
44
|
"@r2wc/react-to-web-component": "^2.0.3",
|
|
45
45
|
"@sentry/react": "^8.46.0",
|
|
46
|
-
"@skip-go/client": "0.16.
|
|
46
|
+
"@skip-go/client": "0.16.28",
|
|
47
47
|
"@solana/spl-token": "^0.4.8",
|
|
48
48
|
"@solana/wallet-adapter-backpack": "^0.1.14",
|
|
49
49
|
"@solana/wallet-adapter-coinbase": "^0.1.19",
|