@skip-go/widget 1.2.1-alpha.3 → 1.2.1-alpha.4
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.es.js +7 -1
- package/build/index.es.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { ChainProvider, useManager, useWalletClient, useWallet as useWallet$1 } from '@cosmos-kit/react';
|
|
3
2
|
import { Buffer } from 'buffer';
|
|
3
|
+
import { ChainProvider, useManager, useWalletClient, useWallet as useWallet$1 } from '@cosmos-kit/react';
|
|
4
4
|
import { wallets as wallets$2 } from '@cosmos-kit/cosmostation-extension';
|
|
5
5
|
import { wallets as wallets$1 } from '@cosmos-kit/keplr-extension';
|
|
6
6
|
import { wallets as wallets$3 } from '@cosmos-kit/leap-extension';
|
|
@@ -80,6 +80,7 @@ const wallets = [
|
|
|
80
80
|
...wallets$6,
|
|
81
81
|
];
|
|
82
82
|
|
|
83
|
+
globalThis.Buffer = Buffer;
|
|
83
84
|
const CosmosProvider = ({ children }) => {
|
|
84
85
|
const chains = getChains();
|
|
85
86
|
const assets = getAssetLists();
|
|
@@ -310,6 +311,7 @@ function isReadyToCheckLedger(walletClient) {
|
|
|
310
311
|
return false;
|
|
311
312
|
}
|
|
312
313
|
|
|
314
|
+
globalThis.Buffer = Buffer;
|
|
313
315
|
const SkipContext = createContext(undefined);
|
|
314
316
|
function SkipProvider({ children, apiURL, endpointOptions, }) {
|
|
315
317
|
const { getWalletRepo } = useManager();
|
|
@@ -730,6 +732,7 @@ function isMobile() {
|
|
|
730
732
|
!!window.navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u));
|
|
731
733
|
}
|
|
732
734
|
|
|
735
|
+
globalThis.Buffer = Buffer;
|
|
733
736
|
const useStore = create(() => ({}));
|
|
734
737
|
function useTotalWallets() {
|
|
735
738
|
return useStore((state) => Object.keys(state).length);
|
|
@@ -783,6 +786,7 @@ const EvmWalletListItem = ({ children, walletName, ...props }) => {
|
|
|
783
786
|
return jsx("div", { ...props, children: children });
|
|
784
787
|
};
|
|
785
788
|
|
|
789
|
+
globalThis.Buffer = Buffer;
|
|
786
790
|
const useMakeWallets = () => {
|
|
787
791
|
const { data: chains } = useChains();
|
|
788
792
|
const getChain = (_chainID) => chains === null || chains === void 0 ? void 0 : chains.find((chain) => chain.chainID === _chainID);
|
|
@@ -1163,6 +1167,7 @@ function useAnyDisclosureOpen() {
|
|
|
1163
1167
|
return disclosureStore((state) => Object.values(state).some(Boolean));
|
|
1164
1168
|
}
|
|
1165
1169
|
|
|
1170
|
+
globalThis.Buffer = Buffer;
|
|
1166
1171
|
function useAccount(chainID) {
|
|
1167
1172
|
const { data: chain } = useChainByID(chainID);
|
|
1168
1173
|
const trackedWallet = useTrackWallet(chain === null || chain === void 0 ? void 0 : chain.chainType);
|
|
@@ -1868,6 +1873,7 @@ function parseAmountWei(amount, decimals = 6) {
|
|
|
1868
1873
|
}
|
|
1869
1874
|
}
|
|
1870
1875
|
|
|
1876
|
+
globalThis.Buffer = Buffer;
|
|
1871
1877
|
const PRICE_IMPACT_THRESHOLD = 0.1;
|
|
1872
1878
|
function useSwapWidget() {
|
|
1873
1879
|
/**
|