@skip-go/widget 3.3.11 → 3.4.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,8 +1,7 @@
|
|
|
1
1
|
import { ChainAffiliates } from '@skip-go/client';
|
|
2
2
|
import { ChainType } from '@skip-go/client';
|
|
3
|
-
import {
|
|
3
|
+
import { default as default_2 } from 'react';
|
|
4
4
|
import { MsgsRequest } from '@skip-go/client';
|
|
5
|
-
import { ReactElement } from 'react';
|
|
6
5
|
import { RouteConfig } from '@skip-go/client';
|
|
7
6
|
import { SignClientTypes } from '@walletconnect/types';
|
|
8
7
|
import { SkipClientOptions } from '@skip-go/client';
|
|
@@ -163,11 +162,9 @@ declare type onWalletDisconnectedProps = {
|
|
|
163
162
|
|
|
164
163
|
declare type PartialTheme = Partial<Theme> | undefined;
|
|
165
164
|
|
|
166
|
-
declare
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export declare const ShowWidget: ({ button, ...props }: ShowSwapWidget) => JSX_2.Element;
|
|
165
|
+
export declare const resetWidget: ({ onlyClearInputValues }?: {
|
|
166
|
+
onlyClearInputValues?: boolean;
|
|
167
|
+
}) => void;
|
|
171
168
|
|
|
172
169
|
declare type Theme = {
|
|
173
170
|
brandColor: string;
|
|
@@ -208,7 +205,7 @@ declare type WalletConnect = {
|
|
|
208
205
|
walletConnectModal?: Pick<WalletConnectModalConfig, "themeVariables" | "themeMode" | "privacyPolicyUrl" | "termsOfServiceUrl"> | null;
|
|
209
206
|
};
|
|
210
207
|
|
|
211
|
-
export declare const Widget: (props: WidgetProps) =>
|
|
208
|
+
export declare const Widget: (props: WidgetProps) => default_2.JSX.Element;
|
|
212
209
|
|
|
213
210
|
export declare type WidgetProps = {
|
|
214
211
|
theme?: PartialTheme | "light" | "dark";
|
|
@@ -234,6 +231,10 @@ export declare type WidgetProps = {
|
|
|
234
231
|
* https://docs.sentry.io/product/explore/session-replay/web/
|
|
235
232
|
*/
|
|
236
233
|
enableSentrySessionReplays?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Enable Amplitude analytics for the widget to improve user experience.
|
|
236
|
+
*/
|
|
237
|
+
enableAmplitudeAnalytics?: boolean;
|
|
237
238
|
/**
|
|
238
239
|
* Map of connected wallet addresses, allowing your app to pass pre-connected addresses to the widget.
|
|
239
240
|
* This feature enables the widget to display a specific address as connected for a given chain.
|
|
@@ -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-EWiJWFmx.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,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { W as a, d as s, l as d, r } from "./index-EWiJWFmx.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
a as Widget,
|
|
4
|
+
s as defaultTheme,
|
|
5
|
+
d as lightTheme,
|
|
6
|
+
r as resetWidget
|
|
7
7
|
};
|
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.4.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/skip-mev/skip-go",
|
|
7
7
|
"directory": "packages/widget"
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"wagmi": "^2.14.1"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"@amplitude/analytics-browser": "^2.11.12",
|
|
29
30
|
"@cosmjs/amino": "0.31.3",
|
|
30
31
|
"@cosmjs/cosmwasm-stargate": "0.31.3",
|
|
31
32
|
"@cosmjs/launchpad": "*",
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
"@penumbra-zone/transport-dom": "^7.5.0",
|
|
43
44
|
"@r2wc/react-to-web-component": "^2.0.3",
|
|
44
45
|
"@sentry/react": "^8.46.0",
|
|
45
|
-
"@skip-go/client": "0.16.
|
|
46
|
+
"@skip-go/client": "0.16.17",
|
|
46
47
|
"@solana/spl-token": "^0.4.8",
|
|
47
48
|
"@solana/wallet-adapter-backpack": "^0.1.14",
|
|
48
49
|
"@solana/wallet-adapter-coinbase": "^0.1.19",
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
"@walletconnect/modal": "2.7.0",
|
|
56
57
|
"@walletconnect/sign-client": "2.17.2",
|
|
57
58
|
"@walletconnect/solana-adapter": "^0.0.6",
|
|
59
|
+
"add": "^2.0.6",
|
|
58
60
|
"bech32": "^2.0.0",
|
|
59
61
|
"graz": "^0.1.30",
|
|
60
62
|
"jotai": "^2.10.1",
|
|
@@ -66,6 +68,7 @@
|
|
|
66
68
|
"react-error-boundary": "^4.0.13",
|
|
67
69
|
"react-shadow-scope": "^1.0.5",
|
|
68
70
|
"styled-components": "^6.1.13",
|
|
71
|
+
"yarn": "^1.22.22",
|
|
69
72
|
"zod": "^3.23.8"
|
|
70
73
|
},
|
|
71
74
|
"publishConfig": {
|