@skip-go/widget 3.1.12 → 3.1.14-alpha.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
@@ -31,10 +31,10 @@ declare type DefaultRouteConfig = {
31
31
 
32
32
  export declare const defaultTheme: {
33
33
  brandColor: string;
34
+ brandTextColor: undefined;
34
35
  primary: {
35
36
  background: {
36
37
  normal: string;
37
- transparent: string;
38
38
  };
39
39
  text: {
40
40
  normal: string;
@@ -65,10 +65,10 @@ export declare const defaultTheme: {
65
65
 
66
66
  export declare const lightTheme: {
67
67
  brandColor: string;
68
+ brandTextColor: undefined;
68
69
  primary: {
69
70
  background: {
70
71
  normal: string;
71
- transparent: string;
72
72
  };
73
73
  text: {
74
74
  normal: string;
@@ -111,12 +111,24 @@ declare type OnTransactionBroadcastedProps = {
111
111
  txHash: string;
112
112
  chainId: string;
113
113
  explorerLink: string;
114
+ sourceAddress: string;
115
+ destinationAddress: string;
116
+ sourceAssetDenom: string;
117
+ sourceAssetChainID: string;
118
+ destAssetDenom: string;
119
+ destAssetChainID: string;
114
120
  };
115
121
 
116
122
  declare type OnTransactionCompleteProps = {
117
123
  txHash: string;
118
124
  chainId: string;
119
125
  explorerLink: string;
126
+ sourceAddress: string;
127
+ destinationAddress: string;
128
+ sourceAssetDenom: string;
129
+ sourceAssetChainID: string;
130
+ destAssetDenom: string;
131
+ destAssetChainID: string;
120
132
  };
121
133
 
122
134
  declare type OnTransactionFailedProps = {
@@ -145,10 +157,10 @@ export declare const ShowWidget: ({ button, ...props }: ShowSwapWidget) => JSX_2
145
157
 
146
158
  declare type Theme = {
147
159
  brandColor: string;
160
+ brandTextColor?: string;
148
161
  primary: {
149
162
  background: {
150
163
  normal: string;
151
- transparent: string;
152
164
  };
153
165
  text: {
154
166
  normal: string;
@@ -210,6 +222,11 @@ export declare type WidgetProps = {
210
222
  * <Widget connectedAddresses={{ "cosmoshub-4": "cosmos1...", "1": "0x..." }} />
211
223
  * ```
212
224
  */
225
+ enableSentrySessionReplays?: boolean;
226
+ /**
227
+ * enables sentry session replays on the widget to help with troubleshooting errors
228
+ * https://docs.sentry.io/product/explore/session-replay/web/
229
+ */
213
230
  connectedAddresses?: Record<string, string | undefined>;
214
231
  } & Pick<NewSkipClientOptions, "apiUrl" | "chainIdsToAffiliates" | "endpointOptions" | "getCosmosSigner" | "getEVMSigner" | "getSVMSigner"> & Callbacks;
215
232
 
@@ -1,4 +1,4 @@
1
- import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-2E1fefGv.js";
1
+ import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-T5NIq65m.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,8 +1,7 @@
1
- import { S as d, W as h, d as i, l as m } from "./index-2E1fefGv.js";
2
- import "@sentry/react";
1
+ import { S as t, W as d, d as h, l as s } from "./index-T5NIq65m.js";
3
2
  export {
4
- d as ShowWidget,
5
- h as Widget,
6
- i as defaultTheme,
7
- m as lightTheme
3
+ t as ShowWidget,
4
+ d as Widget,
5
+ h as defaultTheme,
6
+ s as lightTheme
8
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.1.12",
4
+ "version": "3.1.14-alpha.0",
5
5
  "repository": {
6
6
  "url": "https://github.com/skip-mev/skip-go",
7
7
  "directory": "packages/widget"
@@ -20,16 +20,19 @@
20
20
  ],
21
21
  "peerDependencies": {
22
22
  "@tanstack/react-query": "^5.51.21",
23
- "graz": "^0.1.30",
24
23
  "react": ">=17.0.0",
25
24
  "react-dom": ">=17.0.0",
26
25
  "viem": "^2.21.55",
27
26
  "wagmi": "^2.14.1"
28
27
  },
29
28
  "dependencies": {
30
- "@cosmjs/cosmwasm-stargate": "^0.32.4",
31
- "@cosmjs/math": "^0.32.4",
32
- "@cosmjs/stargate": "^0.32.4",
29
+ "@cosmjs/amino": "0.31.3",
30
+ "@cosmjs/cosmwasm-stargate": "0.31.3",
31
+ "@cosmjs/launchpad": "*",
32
+ "@cosmjs/math": "^0.31.3",
33
+ "@cosmjs/proto-signing": "0.31.3",
34
+ "@cosmjs/stargate": "0.31.3",
35
+ "@cosmjs/tendermint-rpc": "0.31.3",
33
36
  "@ebay/nice-modal-react": "^1.2.13",
34
37
  "@eslint/compat": "^1.1.1",
35
38
  "@leapwallet/cosmos-social-login-capsule-provider": "^0.0.44",
@@ -40,7 +43,7 @@
40
43
  "@r2wc/react-to-web-component": "^2.0.3",
41
44
  "@radix-ui/react-dialog": "^1.1.1",
42
45
  "@sentry/react": "^8.46.0",
43
- "@skip-go/client": "0.16.6",
46
+ "@skip-go/client": "0.16.7",
44
47
  "@solana/spl-token": "^0.4.8",
45
48
  "@solana/wallet-adapter-backpack": "^0.1.14",
46
49
  "@solana/wallet-adapter-coinbase": "^0.1.19",
@@ -54,11 +57,11 @@
54
57
  "@walletconnect/modal": "2.7.0",
55
58
  "@walletconnect/sign-client": "2.17.2",
56
59
  "@walletconnect/solana-adapter": "^0.0.6",
60
+ "graz": "^0.1.30",
57
61
  "jotai": "^2.10.1",
58
62
  "jotai-effect": "^1.0.2",
59
63
  "jotai-tanstack-query": "^0.8.6",
60
64
  "lodash.debounce": "^4.0.8",
61
- "match-sorter": "^6.3.4",
62
65
  "pluralize": "^8.0.0",
63
66
  "rc-virtual-list": "^3.14.5",
64
67
  "react-error-boundary": "^4.0.13",