@skip-go/widget 3.14.4 → 3.14.5
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/add-BJQPsA8k.js +19 -0
- package/build/all-wallets-B11_4Ybe.js +10 -0
- package/build/app-store-CARimMW3.js +21 -0
- package/build/apple-DEuxqvQi.js +22 -0
- package/build/arrow-bottom-BsHbGBdB.js +12 -0
- package/build/arrow-bottom-circle-Cs2knW0e.js +15 -0
- package/build/arrow-left-DzEykZh_.js +12 -0
- package/build/arrow-right-BhBVwf9g.js +12 -0
- package/build/arrow-top-CQFpDrN4.js +12 -0
- package/build/bank-CjU2Dyen.js +18 -0
- package/build/basic-DEapmA0E.js +6930 -0
- package/build/browser-DuTL2ZwF.js +18 -0
- package/build/card-H_VBjXH3.js +18 -0
- package/build/checkmark-Dtjtjmf1.js +15 -0
- package/build/checkmark-bold-z4hM-TsC.js +12 -0
- package/build/chevron-bottom-CtArV2wF.js +12 -0
- package/build/chevron-left-DdvY2CTb.js +12 -0
- package/build/chevron-right-CFXUESPe.js +12 -0
- package/build/chevron-top-Dy9Hw3fV.js +12 -0
- package/build/chrome-store-C_pTffOw.js +65 -0
- package/build/clock-CMOyk9S9.js +12 -0
- package/build/close-Dms7aMSR.js +12 -0
- package/build/coinPlaceholder-B2cZTC3R.js +12 -0
- package/build/compass-DNOfEAM2.js +12 -0
- package/build/copy-DZbibH1K.js +19 -0
- package/build/core-BfKZ4PIC.js +13138 -0
- package/build/cursor-BbBjTjwp.js +7 -0
- package/build/cursor-transparent-DCOjv2sR.js +16 -0
- package/build/desktop-uyYbF0Mn.js +13 -0
- package/build/disconnect-CetZ4edH.js +12 -0
- package/build/discord-Cf_HZf3N.js +21 -0
- package/build/etherscan-C4OLKng2.js +10 -0
- package/build/exclamation-triangle-uVxTDhvu.js +8 -0
- package/build/extension-DxctmiWz.js +12 -0
- package/build/external-link-MqCcqsdd.js +12 -0
- package/build/facebook-C4dd-ziA.js +30 -0
- package/build/farcaster-CeVdeAEP.js +16 -0
- package/build/filters-BiMkQFV8.js +12 -0
- package/build/github-CU_W_N6N.js +22 -0
- package/build/google-7s8MQVzB.js +22 -0
- package/build/help-circle-C3-nycKi.js +16 -0
- package/build/id-C2tHtjX6.js +16 -0
- package/build/image-DPaMR_cv.js +8 -0
- package/build/{index-Be7LbriZ.js → index-jvbs7eGH.js} +880 -747
- package/build/index-omwtuTW1.js +1132 -0
- package/build/index.d.ts +39 -0
- package/build/index.es-LTt2Eg_D.js +8712 -0
- package/build/index.js +3 -2
- package/build/info-circle-B_IxCfxa.js +16 -0
- package/build/info-qKe_hnXy.js +7 -0
- package/build/lightbulb-1XI0Bxv-.js +7 -0
- package/build/mail-CJW1dmhW.js +12 -0
- package/build/mobile-DHY_7Eey.js +13 -0
- package/build/more-CHCKQBcM.js +15 -0
- package/build/network-placeholder-Bjoe5sTj.js +18 -0
- package/build/nftPlaceholder-BfGB28hh.js +12 -0
- package/build/off-Bf2iuTEi.js +12 -0
- package/build/play-store-BIvS0r4I.js +36 -0
- package/build/plus-qgz3JQAB.js +17 -0
- package/build/qr-code-BuWsCw2z.js +10 -0
- package/build/recycle-horizontal-B1CVSSLJ.js +13 -0
- package/build/refresh-BhvhNniM.js +12 -0
- package/build/reown-logo-C5z3wp07.js +16 -0
- package/build/search-BTpo0HGA.js +12 -0
- package/build/send-B8pnkBAp.js +19 -0
- package/build/swapHorizontal-A29wlFie.js +12 -0
- package/build/swapHorizontalBold-CG4RbMR8.js +12 -0
- package/build/swapHorizontalMedium-BZPbiWG7.js +20 -0
- package/build/swapHorizontalRoundedBold-CgYvX4sR.js +12 -0
- package/build/swapVertical-DGjhPMtl.js +12 -0
- package/build/telegram-BTYv80UF.js +20 -0
- package/build/three-dots-CK7eAfOP.js +9 -0
- package/build/twitch-K05X_UT8.js +22 -0
- package/build/twitterIcon-BE4qUrhF.js +10 -0
- package/build/verify-filled-BfZdE__v.js +12 -0
- package/build/verify-zHV40_w6.js +12 -0
- package/build/w3m-modal-DkheqxGa.js +1721 -0
- package/build/wallet-BTbqWApb.js +12 -0
- package/build/wallet-placeholder-B6hnZ20G.js +18 -0
- package/build/walletconnect-BgwXLnVI.js +38 -0
- package/build/warning-circle-B-OJt-sc.js +16 -0
- package/build/x-Dd85BL0v.js +16 -0
- package/package.json +2 -2
- package/build/index.es-D8nY1geH.js +0 -62088
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Asset } from '@skip-go/client';
|
|
2
|
+
import { Chain } from '@skip-go/client';
|
|
2
3
|
import { ChainType } from '@skip-go/client';
|
|
3
4
|
import { default as default_2 } from 'react';
|
|
4
5
|
import { MessagesRequest } from '@skip-go/client';
|
|
@@ -9,6 +10,18 @@ import { SignerGetters } from '@skip-go/client';
|
|
|
9
10
|
import { SkipClientOptions } from '@skip-go/client';
|
|
10
11
|
import { WalletConnectModalConfig } from '@walletconnect/modal';
|
|
11
12
|
|
|
13
|
+
declare type AssetDetailsProps = {
|
|
14
|
+
asset?: ClientAsset;
|
|
15
|
+
chain?: Chain;
|
|
16
|
+
symbol?: string;
|
|
17
|
+
assetImage?: string;
|
|
18
|
+
chainName?: string;
|
|
19
|
+
chainImage?: string;
|
|
20
|
+
amount?: string;
|
|
21
|
+
tokenAmount?: string;
|
|
22
|
+
decimals?: number;
|
|
23
|
+
};
|
|
24
|
+
|
|
12
25
|
declare type Callbacks = {
|
|
13
26
|
onWalletConnected?: (props: onWalletConnectedProps) => void;
|
|
14
27
|
onWalletDisconnected?: (props: onWalletDisconnectedProps) => void;
|
|
@@ -66,6 +79,7 @@ export declare const defaultTheme: {
|
|
|
66
79
|
};
|
|
67
80
|
};
|
|
68
81
|
success: {
|
|
82
|
+
background: string;
|
|
69
83
|
text: string;
|
|
70
84
|
};
|
|
71
85
|
warning: {
|
|
@@ -103,6 +117,7 @@ export declare const lightTheme: {
|
|
|
103
117
|
};
|
|
104
118
|
};
|
|
105
119
|
success: {
|
|
120
|
+
background: string;
|
|
106
121
|
text: string;
|
|
107
122
|
};
|
|
108
123
|
warning: {
|
|
@@ -235,6 +250,7 @@ export declare type Theme = {
|
|
|
235
250
|
};
|
|
236
251
|
};
|
|
237
252
|
success: {
|
|
253
|
+
background: string;
|
|
238
254
|
text: string;
|
|
239
255
|
};
|
|
240
256
|
warning: {
|
|
@@ -247,6 +263,29 @@ export declare type Theme = {
|
|
|
247
263
|
};
|
|
248
264
|
};
|
|
249
265
|
|
|
266
|
+
/**
|
|
267
|
+
* @param {string} [params.assetDenom] - The denomination of the asset to retrieve details for
|
|
268
|
+
* @param {string} [params.amount] - The human-readable amount amount of the asset
|
|
269
|
+
* @param {string} [params.tokenAmount] - The token/raw amount of the asset
|
|
270
|
+
* @param {string} [params.chainId] - The id of the chain associated with the asset
|
|
271
|
+
*
|
|
272
|
+
* @returns {AssetDetails} An object containing the following properties:
|
|
273
|
+
* - `asset` The asset object corresponding to the provided denomination
|
|
274
|
+
* - `chain` The chain object associated with the provided chain id
|
|
275
|
+
* - `symbol` The symbol of the asset, derived from the asset object
|
|
276
|
+
* - `assetImage` The asset image url derived from the asset object
|
|
277
|
+
* - `chainName` The name of the chain, derived from the chain object
|
|
278
|
+
* - `chainImage` The chain image url, derived from the chain object
|
|
279
|
+
* - `amount` The human-readable amount of the asset
|
|
280
|
+
* - `tokenAmount` The token/raw amount of the asset
|
|
281
|
+
*/
|
|
282
|
+
export declare const useGetAssetDetails: ({ assetDenom, amount, tokenAmount, chainId, }: {
|
|
283
|
+
assetDenom?: string;
|
|
284
|
+
amount?: string;
|
|
285
|
+
tokenAmount?: string;
|
|
286
|
+
chainId?: string;
|
|
287
|
+
}) => AssetDetailsProps;
|
|
288
|
+
|
|
250
289
|
declare type WalletConnect = {
|
|
251
290
|
options: Pick<SignClientTypes.Options, "projectId" | "name"> | null;
|
|
252
291
|
walletConnectModal?: Pick<WalletConnectModalConfig, "themeVariables" | "themeMode" | "privacyPolicyUrl" | "termsOfServiceUrl"> | null;
|