@suilend/sui-fe-next 2.0.3 → 2.0.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/contexts/SettingsContext.d.ts +1 -1
- package/contexts/{SettingsContext.jsx → SettingsContext.js} +2 -3
- package/contexts/WalletContext.d.ts +1 -1
- package/contexts/{WalletContext.jsx → WalletContext.js} +3 -6
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- /package/hooks/{useIsAndroid.jsx → useIsAndroid.js} +0 -0
- /package/hooks/{useIsTouchscreen.jsx → useIsTouchscreen.js} +0 -0
- /package/hooks/{useIsiOS.jsx → useIsiOS.js} +0 -0
- /package/lib/{toasts.jsx → toasts.js} +0 -0
|
@@ -13,5 +13,5 @@ interface SettingsContext {
|
|
|
13
13
|
}
|
|
14
14
|
declare const SettingsContext: import("react").Context<SettingsContext>;
|
|
15
15
|
export declare const useSettingsContext: () => SettingsContext;
|
|
16
|
-
export declare function SettingsContextProvider({ children }: PropsWithChildren): import("react").JSX.Element;
|
|
16
|
+
export declare function SettingsContextProvider({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -9,6 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
13
|
import { createContext, useContext, useMemo } from "react";
|
|
13
14
|
import { SuiJsonRpcClient, getJsonRpcFullnodeUrl } from "@mysten/sui/jsonRpc";
|
|
14
15
|
import { useLocalStorage } from "usehooks-ts";
|
|
@@ -76,7 +77,5 @@ export function SettingsContextProvider(_a) {
|
|
|
76
77
|
setGasBudget,
|
|
77
78
|
suiClient,
|
|
78
79
|
]);
|
|
79
|
-
return (
|
|
80
|
-
{children}
|
|
81
|
-
</SettingsContext.Provider>);
|
|
80
|
+
return (_jsx(SettingsContext.Provider, { value: contextValue, children: children }));
|
|
82
81
|
}
|
|
@@ -65,5 +65,5 @@ export declare const useWalletContext: () => WalletContext;
|
|
|
65
65
|
interface WalletContextProviderProps extends PropsWithChildren {
|
|
66
66
|
appName: string;
|
|
67
67
|
}
|
|
68
|
-
export declare function WalletContextProvider({ appName, children, }: WalletContextProviderProps): import("react").JSX.Element;
|
|
68
|
+
export declare function WalletContextProvider({ appName, children, }: WalletContextProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
69
69
|
export {};
|
|
@@ -55,6 +55,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
55
55
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
56
56
|
};
|
|
57
57
|
var _a, _b;
|
|
58
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
58
59
|
import { useRouter } from "next/router";
|
|
59
60
|
import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, } from "react";
|
|
60
61
|
import { createDAppKit } from "@mysten/dapp-kit-core";
|
|
@@ -725,9 +726,7 @@ function Inner(_a) {
|
|
|
725
726
|
setIsUsingLedger,
|
|
726
727
|
signPersonalMessage,
|
|
727
728
|
]);
|
|
728
|
-
return (
|
|
729
|
-
{children}
|
|
730
|
-
</WalletContext.Provider>);
|
|
729
|
+
return (_jsx(WalletContext.Provider, { value: contextValue, children: children }));
|
|
731
730
|
}
|
|
732
731
|
export function WalletContextProvider(_a) {
|
|
733
732
|
var appName = _a.appName, children = _a.children;
|
|
@@ -743,7 +742,5 @@ export function WalletContextProvider(_a) {
|
|
|
743
742
|
slushWalletConfig: { appName: appName },
|
|
744
743
|
});
|
|
745
744
|
}, [rpc.url, appName]);
|
|
746
|
-
return (
|
|
747
|
-
<Inner appName={appName}>{children}</Inner>
|
|
748
|
-
</DAppKitProvider>);
|
|
745
|
+
return (_jsx(DAppKitProvider, { dAppKit: dAppKitInstance, children: _jsx(Inner, { appName: appName, children: children }) }));
|
|
749
746
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@suilend/sui-fe-next","version":"2.0.
|
|
1
|
+
{"name":"@suilend/sui-fe-next","version":"2.0.4","private":false,"description":"A collection of TypeScript frontend components and hooks","author":"Suilend","license":"MIT","main":"./index.js","exports":{".":"./index.js","./contexts/WalletContext":"./contexts/WalletContext.js","./contexts":"./contexts/index.js","./contexts/SettingsContext":"./contexts/SettingsContext.js","./fetchers":"./fetchers/index.js","./fetchers/useFetchBalances":"./fetchers/useFetchBalances.js","./hooks/useRefreshOnBalancesChange":"./hooks/useRefreshOnBalancesChange.js","./hooks/useLedgerHashDialog":"./hooks/useLedgerHashDialog.js","./hooks/useCoinMetadataMap":"./hooks/useCoinMetadataMap.js","./hooks":"./hooks/index.js","./hooks/useIsiOS":"./hooks/useIsiOS.js","./hooks/keypair":"./hooks/keypair.js","./hooks/useIsAndroid":"./hooks/useIsAndroid.js","./hooks/useIsTouchscreen":"./hooks/useIsTouchscreen.js","./lib/track":"./lib/track.js","./lib":"./lib/index.js","./lib/router":"./lib/router.js","./lib/connector":"./lib/connector.js","./lib/toasts":"./lib/toasts.js"},"types":"./index.js","scripts":{"build":"rm -rf ./dist && bun tsc","eslint":"eslint --fix src/","prettier":"prettier --write src/","lint":"bun eslint && bun prettier && bun tsc --noEmit","release":"bun run build && bun ./release.js && cd ./dist && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/suilend/sui-fe.git"},"bugs":{"url":"https://github.com/suilend/sui-fe/issues"},"dependencies":{"@reown/appkit":"^1.8.10","@reown/appkit-common":"^1.8.10","@reown/appkit-universal-connector":"^1.8.10","@tanstack/react-query":"^5.60.2","bignumber.js":"^9.1.2","launchdarkly-react-client-sdk":"^3.6.0","lodash":"^4.17.21","mixpanel-browser":"^2.72.0","next":"^15.0.3","react":"18.3.1","react-dom":"18.3.1","react-responsive":"^10.0.0","shio-sdk":"^1.0.8","sonner":"1.4.41","swr":"^2.2.5","tailwind-merge":"^2.5.4","usehooks-ts":"^3.1.1"},"devDependencies":{"@tsconfig/next":"^2.0.3","@types/lodash":"^4.17.13","@types/node":"^22.9.0","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@typescript-eslint/eslint-plugin":"^8.14.0","@typescript-eslint/parser":"^8.14.0","eslint":"^9.14.0","eslint-config-next":"^15.0.3","eslint-config-prettier":"^9.1.0","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.1","prettier":"^3.3.3","ts-node":"^10.9.2","typescript":"^5.6.3"},"peerDependencies":{"@mysten/dapp-kit-core":"1.0.3","@mysten/dapp-kit-react":"1.0.1","@mysten/sui":"2.3.1","@mysten/wallet-standard":"0.20.0","@suilend/sui-fe":"^2.0.3"}}
|