@gearbox-protocol/ui-kit 3.1.0-next.1 → 3.1.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.
Files changed (68) hide show
  1. package/README.md +6 -86
  2. package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
  3. package/dist/cjs/components/auth/connect-required.cjs +1 -1
  4. package/dist/cjs/components/auth/index.cjs +1 -1
  5. package/dist/cjs/components/auth/signin-required.cjs +1 -1
  6. package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
  7. package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
  8. package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
  9. package/dist/cjs/components/complex-input/complex-input.cjs +1 -1
  10. package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
  11. package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
  12. package/dist/cjs/components/graph/graph.cjs +1 -1
  13. package/dist/cjs/components/index.cjs +1 -1
  14. package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
  15. package/dist/cjs/components/next/index.cjs +1 -1
  16. package/dist/cjs/components/next/siwe-provider.cjs +1 -0
  17. package/dist/cjs/components/table/editable-grid-table.cjs +1 -1
  18. package/dist/cjs/components/table/editable-table.cjs +1 -1
  19. package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -1
  20. package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
  21. package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
  22. package/dist/cjs/index.cjs +1 -1
  23. package/dist/esm/components/assets-list-cell/assets-list-cell.js +4 -3
  24. package/dist/esm/components/auth/connect-required.js +11 -18
  25. package/dist/esm/components/auth/index.js +4 -5
  26. package/dist/esm/components/auth/signin-required.js +23 -30
  27. package/dist/esm/components/block-sync/block-sync.js +4 -3
  28. package/dist/esm/components/checkbox/checkbox-labeled.js +2 -1
  29. package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +2 -1
  30. package/dist/esm/components/complex-input/complex-input.js +4 -3
  31. package/dist/esm/components/compound-apy/compound-apy.js +4 -3
  32. package/dist/esm/components/detailed-page-title/detailed-page-title.js +2 -1
  33. package/dist/esm/components/graph/graph.js +280 -266
  34. package/dist/esm/components/index.js +607 -608
  35. package/dist/esm/components/markdown-viewer/markdown-viewer.js +4 -3
  36. package/dist/esm/components/next/index.js +8 -6
  37. package/dist/esm/components/next/{connectkit/siwe-provider.js → siwe-provider.js} +1 -1
  38. package/dist/esm/components/table/editable-grid-table.js +37 -36
  39. package/dist/esm/components/table/editable-table.js +18 -17
  40. package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +2 -1
  41. package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +4 -3
  42. package/dist/esm/components/with-copy/with-copy.js +4 -3
  43. package/dist/esm/index.js +767 -768
  44. package/dist/types/components/auth/connect-required.d.ts +11 -10
  45. package/dist/types/components/auth/index.d.ts +1 -1
  46. package/dist/types/components/auth/signin-required.d.ts +5 -7
  47. package/dist/types/components/auth/siwe-provider.d.ts +31 -0
  48. package/dist/types/components/graph/graph.d.ts +14 -1
  49. package/dist/types/components/next/index.d.ts +1 -0
  50. package/dist/types/components/next/siwe-provider.d.ts +7 -0
  51. package/package.json +4 -21
  52. package/dist/cjs/components/auth/wallet-ui-context.cjs +0 -1
  53. package/dist/cjs/components/connectkit/connect-kit-wallet-adapter.cjs +0 -1
  54. package/dist/cjs/components/connectkit/index.cjs +0 -1
  55. package/dist/cjs/components/next/connectkit/index.cjs +0 -1
  56. package/dist/cjs/components/next/connectkit/siwe-provider.cjs +0 -1
  57. package/dist/esm/components/auth/wallet-ui-context.js +0 -13
  58. package/dist/esm/components/connectkit/connect-kit-wallet-adapter.js +0 -32
  59. package/dist/esm/components/connectkit/index.js +0 -6
  60. package/dist/esm/components/next/connectkit/index.js +0 -4
  61. package/dist/types/components/auth/wallet-ui-context.d.ts +0 -36
  62. package/dist/types/components/connectkit/connect-kit-wallet-adapter.d.ts +0 -12
  63. package/dist/types/components/connectkit/index.d.ts +0 -2
  64. package/dist/types/components/connectkit/siwe-provider.d.ts +0 -30
  65. package/dist/types/components/next/connectkit/index.d.ts +0 -1
  66. package/dist/types/components/next/connectkit/siwe-provider.d.ts +0 -8
  67. /package/dist/cjs/components/{connectkit → auth}/siwe-provider.cjs +0 -0
  68. /package/dist/esm/components/{connectkit → auth}/siwe-provider.js +0 -0
@@ -2,27 +2,28 @@ import { ReactNode } from 'react';
2
2
  import { Address } from 'viem';
3
3
  import { TabButtonProps } from '../buttons';
4
4
  /**
5
- * ConnectRequired — component that requires a connected wallet to display content.
5
+ * SignInRequired — component that requires SIWE authentication to display content.
6
6
  *
7
7
  * @usage
8
- * Use ConnectRequired to protect content that requires a wallet connection:
9
- * action buttons, editable content, owner-specific features.
8
+ * Use SignInRequired to protect content that requires authentication:
9
+ * action buttons, editable content, owner-specific features, authenticated actions.
10
10
  *
11
11
  * Props:
12
- * - `owner` — optional address that must match connected address to display content.
13
- * - `children` — content displayed when connected (required).
12
+ * - `owner` — optional address that must match signed-in address to display content.
13
+ * - `children` — content displayed when authenticated (required).
14
14
  * - All Button props are supported (variant, size, className, onClick, etc.).
15
15
  *
16
16
  * Behavior:
17
17
  * - If user is connected: renders children (or "You are not the author" if owner mismatch).
18
- * - If wallet not connected: shows "Connect Wallet" button that calls `openConnectModal` from {@link WalletUIProvider}.
19
- *
20
- * When no {@link WalletUIProvider} is mounted, the gate is skipped and `children` are rendered (graceful degradation).
18
+ * - If wallet connected but not signed in: shows "Sign In as {address}" button or "Try Again" if rejected.
19
+ * - If wallet not connected: shows "Connect Wallet" button.
21
20
  *
22
21
  * Note: Uses TabButton by default, but switches to Button if custom props are provided.
22
+ * Button text changes based on authentication state and loading status.
23
23
  *
24
- * Do NOT use ConnectRequired:
25
- * - for public content that does not require a wallet (render content directly).
24
+ * Do NOT use SignInRequired:
25
+ * - for public content that doesn't require authentication (render content directly).
26
+ * - when you need different authentication flow (use appropriate authentication components).
26
27
  */
27
28
  export interface ConnectRequiredProps extends TabButtonProps {
28
29
  owner?: Address;
@@ -1,3 +1,3 @@
1
1
  export * from './connect-required';
2
2
  export * from './signin-required';
3
- export * from './wallet-ui-context';
3
+ export * from './siwe-provider';
@@ -16,17 +16,15 @@ import { TabButtonProps } from '../buttons';
16
16
  *
17
17
  * Behavior:
18
18
  * - If `skipSignIn={true}` or user is signed in: renders children (or "You are not the author" if owner mismatch).
19
- * - If wallet connected but not signed in: shows "Sign In as {address}" or "Try Again".
20
- * - If wallet not connected: shows "Connect Wallet".
21
- *
22
- * Requires {@link WalletUIProvider} with SIWE state (e.g. {@link ConnectKitWalletAdapter} from
23
- * `@gearbox-protocol/ui-kit/connectkit`). Without a provider, the sign-in gate is skipped and `children`
24
- * are rendered (graceful degradation).
19
+ * - If wallet connected but not signed in: shows "Sign In as {address}" button or "Try Again" if rejected.
20
+ * - If wallet not connected: shows "Connect Wallet" button.
25
21
  *
26
22
  * Note: Uses TabButton by default, but switches to Button if custom props are provided.
23
+ * Button text changes based on authentication state and loading status.
27
24
  *
28
25
  * Do NOT use SignInRequired:
29
- * - for public content that does not require authentication (render content directly).
26
+ * - for public content that doesn't require authentication (render content directly).
27
+ * - when you need different authentication flow (use appropriate authentication components).
30
28
  */
31
29
  export interface SignInRequiredProps extends TabButtonProps {
32
30
  owner?: Address;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * SIWEClientProvider — provider component for Sign-In With Ethereum (SIWE) authentication.
3
+ *
4
+ * @usage
5
+ * Use SIWEClientProvider to wrap your application and enable SIWE authentication:
6
+ * app root, authentication context, wallet-based authentication.
7
+ *
8
+ * Props:
9
+ * - `apiRoutePrefix` — API route prefix for SIWE endpoints (required):
10
+ * - `/api/nonce` — endpoint for fetching nonce.
11
+ * - `/api/signin` — endpoint for verifying signature.
12
+ * - `/api/session` — endpoint for getting current session.
13
+ * - `/api/logout` — endpoint for signing out.
14
+ * - `statement` — optional custom statement for SIWE message (defaults to "Sign In With Ethereum.").
15
+ * - `children` — application content wrapped by provider (required).
16
+ *
17
+ * Note: SIWEClientProvider wraps ConnectKit's SIWEProvider with custom API integration.
18
+ * Handles nonce generation, message creation, signature verification, session management, and sign out.
19
+ * Automatically refreshes router on sign in/out.
20
+ *
21
+ * Do NOT use SIWEClientProvider:
22
+ * - when you don't need SIWE authentication (use regular ConnectKit providers).
23
+ */
24
+ interface SIWEProviderProps {
25
+ apiRoutePrefix: string;
26
+ statement?: string;
27
+ children?: React.ReactNode;
28
+ onRefresh?: () => void;
29
+ }
30
+ export declare function SIWEClientProvider({ apiRoutePrefix, statement, children, onRefresh, ...props }: SIWEProviderProps): import("react/jsx-runtime").JSX.Element;
31
+ export {};
@@ -32,6 +32,12 @@ export declare function getVerticalLineTooltipContent(opts: VerticalLineOptions,
32
32
  labelText: string;
33
33
  valueStr: string;
34
34
  };
35
+ /**
36
+ * Step-forward interpolation: find the last data point with
37
+ * `time <= crosshairTime` and return its value.
38
+ * Returns 0 when the crosshair is before the first data point (no history).
39
+ */
40
+ export declare function getStepForwardValue(data: ReadonlyArray<Point>, crosshairTime: number): number;
35
41
  /**
36
42
  * Palette ordered for maximum contrast; first color is the original teal.
37
43
  * Greens/teals are spread out so that when only a subset of series is visible,
@@ -95,10 +101,17 @@ export interface GraphProps {
95
101
  * Which prop applies is chosen by how many series actually have points (empty series are ignored).
96
102
  */
97
103
  yScaleMinMultiple?: number;
104
+ /**
105
+ * Minimum visible time (unix seconds). When set, the X axis never zooms
106
+ * in further than this value — even if the current series data starts later.
107
+ * Useful for keeping the full selected time range (e.g. 1Y) when switching
108
+ * between series with different data coverage.
109
+ */
110
+ visibleTimeFrom?: number;
98
111
  }
99
112
  /**
100
113
  * Graph component that renders a chart using lightweight-charts library
101
114
  * with support for area series, custom tooltips, and vertical line annotations
102
115
  * Supports single or multiple series with different colors and legends
103
116
  */
104
- export declare function Graph({ series, className, showLegend, onUnselectSeries, xMeasureUnit, yMeasureUnit, optionsOverrides, verticalLineOptions, currentValueDecimals, useSharedPriceScale, showCurrentValue, graphTitle, yScaleMin, yScaleMinMultiple, }: GraphProps): React.ReactElement;
117
+ export declare function Graph({ series, className, showLegend, onUnselectSeries, xMeasureUnit, yMeasureUnit, optionsOverrides, verticalLineOptions, currentValueDecimals, useSharedPriceScale, showCurrentValue, graphTitle, yScaleMin, yScaleMinMultiple, visibleTimeFrom, }: GraphProps): React.ReactElement;
@@ -8,4 +8,5 @@ export { preloadTokenIcons } from '../token-icon';
8
8
  export { BackButton } from './back-button';
9
9
  export { NextMarkdownViewer, type NextMarkdownViewerProps, } from './next-markdown-viewer';
10
10
  export { NextNavigationProvider } from './next-navigation-provider';
11
+ export { SIWEClientProvider } from './siwe-provider';
11
12
  export { TokenIcon } from './token-icon';
@@ -0,0 +1,7 @@
1
+ interface SIWEProviderProps {
2
+ apiRoutePrefix: string;
3
+ statement?: string;
4
+ children?: React.ReactNode;
5
+ }
6
+ export declare function SIWEClientProvider(props: SIWEProviderProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/ui-kit",
3
- "version": "3.1.0-next.1",
3
+ "version": "3.1.0",
4
4
  "description": "Internal UI components",
5
5
  "repository": "https://github.com/gearbox-protocol/ui-kit",
6
6
  "license": "MIT",
@@ -34,22 +34,7 @@
34
34
  "./globals.css": "./dist/globals.css",
35
35
  "./grid-safelist.css": "./dist/grid-safelist.css",
36
36
  "./theme.css": "./src/styles/theme.css",
37
- "./base.css": "./src/styles/base.css",
38
- "./sdk-legacy": {
39
- "types": "./dist/types/sdk-legacy/index.d.ts",
40
- "import": "./dist/esm/sdk-legacy/index.js",
41
- "default": "./dist/cjs/sdk-legacy/index.cjs"
42
- },
43
- "./connectkit": {
44
- "types": "./dist/types/components/connectkit/index.d.ts",
45
- "import": "./dist/esm/components/connectkit/index.js",
46
- "default": "./dist/cjs/components/connectkit/index.cjs"
47
- },
48
- "./next/connectkit": {
49
- "types": "./dist/types/components/next/connectkit/index.d.ts",
50
- "import": "./dist/esm/components/next/connectkit/index.js",
51
- "default": "./dist/cjs/components/next/connectkit/index.cjs"
52
- }
37
+ "./base.css": "./src/styles/base.css"
53
38
  },
54
39
  "files": [
55
40
  "dist",
@@ -66,8 +51,8 @@
66
51
  "check": "biome check --write",
67
52
  "check:ci": "biome check --diagnostic-level=error",
68
53
  "typecheck:ci": "tsc --noEmit",
69
- "test": "pnpm exec vitest run",
70
- "test:watch": "pnpm exec vitest",
54
+ "test": "vitest run",
55
+ "test:watch": "vitest",
71
56
  "storybook": "storybook dev -p 6006",
72
57
  "build-storybook": "storybook build"
73
58
  },
@@ -108,7 +93,6 @@
108
93
  "tailwindcss-animate": "^1.0.7"
109
94
  },
110
95
  "peerDependencies": {
111
- "axios": "^1.0.0",
112
96
  "@gearbox-protocol/sdk": "*",
113
97
  "@tanstack/react-query": "^5.64.1",
114
98
  "@types/react": "^18 || ^19",
@@ -142,7 +126,6 @@
142
126
  }
143
127
  },
144
128
  "devDependencies": {
145
- "axios": "^1.12.2",
146
129
  "@biomejs/biome": "^2.2.4",
147
130
  "@chromatic-com/storybook": "^4.1.3",
148
131
  "@commitlint/cli": "^20.1.0",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),e=require("react"),t=e.createContext(null);function o({value:r,children:n}){return l.jsx(t.Provider,{value:r,children:n})}function u(){return e.useContext(t)}exports.WalletUIProvider=o;exports.useWalletUI=u;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),i=require("connectkit"),c=require("react"),d=require("../auth/wallet-ui-context.cjs");function r({children:o}){const{setOpen:t,openSIWE:n}=i.useModal(),e=i.useSIWE(),s=c.useMemo(()=>({openConnectModal:()=>t(!0),openSIWE:n,siwe:{isSignedIn:e.isSignedIn,isRejected:e.isRejected,isLoading:e.isLoading,data:e.data}}),[t,n,e.isSignedIn,e.isRejected,e.isLoading,e.data]);return a.jsx(d.WalletUIProvider,{value:s,children:o})}exports.ConnectKitWalletAdapter=r;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./connect-kit-wallet-adapter.cjs"),t=require("./siwe-provider.cjs");exports.ConnectKitWalletAdapter=e.ConnectKitWalletAdapter;exports.SIWEClientProvider=t.SIWEClientProvider;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./siwe-provider.cjs");exports.SIWEClientProvider=e.SIWEClientProvider;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("next/navigation"),o=require("../../connectkit/siwe-provider.cjs");function i(e){const r=n.useRouter();return t.jsx(o.SIWEClientProvider,{...e,onRefresh:()=>r.refresh()})}exports.SIWEClientProvider=i;
@@ -1,13 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { createContext as n, useContext as l } from "react";
3
- const t = n(null);
4
- function x({ value: e, children: r }) {
5
- return /* @__PURE__ */ o(t.Provider, { value: e, children: r });
6
- }
7
- function a() {
8
- return l(t);
9
- }
10
- export {
11
- x as WalletUIProvider,
12
- a as useWalletUI
13
- };
@@ -1,32 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { useModal as d, useSIWE as a } from "connectkit";
3
- import { useMemo as r } from "react";
4
- import { WalletUIProvider as c } from "../auth/wallet-ui-context.js";
5
- function g({
6
- children: t
7
- }) {
8
- const { setOpen: i, openSIWE: o } = d(), e = a(), n = r(
9
- () => ({
10
- openConnectModal: () => i(!0),
11
- openSIWE: o,
12
- siwe: {
13
- isSignedIn: e.isSignedIn,
14
- isRejected: e.isRejected,
15
- isLoading: e.isLoading,
16
- data: e.data
17
- }
18
- }),
19
- [
20
- i,
21
- o,
22
- e.isSignedIn,
23
- e.isRejected,
24
- e.isLoading,
25
- e.data
26
- ]
27
- );
28
- return /* @__PURE__ */ s(c, { value: n, children: t });
29
- }
30
- export {
31
- g as ConnectKitWalletAdapter
32
- };
@@ -1,6 +0,0 @@
1
- import { ConnectKitWalletAdapter as t } from "./connect-kit-wallet-adapter.js";
2
- import { SIWEClientProvider as i } from "./siwe-provider.js";
3
- export {
4
- t as ConnectKitWalletAdapter,
5
- i as SIWEClientProvider
6
- };
@@ -1,4 +0,0 @@
1
- import { SIWEClientProvider as o } from "./siwe-provider.js";
2
- export {
3
- o as SIWEClientProvider
4
- };
@@ -1,36 +0,0 @@
1
- import { ReactNode } from 'react';
2
- /**
3
- * SIWE-related state exposed by a wallet UI adapter (e.g. ConnectKit).
4
- */
5
- export interface WalletUISIWEState {
6
- isSignedIn: boolean;
7
- isRejected: boolean;
8
- isLoading: boolean;
9
- data: {
10
- address?: string;
11
- } | null;
12
- }
13
- /**
14
- * Values provided by {@link WalletUIProvider} so auth helpers work without importing ConnectKit.
15
- */
16
- export interface WalletUIContextValue {
17
- openConnectModal: () => void;
18
- openSIWE?: () => void;
19
- siwe?: WalletUISIWEState;
20
- }
21
- export interface WalletUIProviderProps {
22
- value: WalletUIContextValue;
23
- children?: ReactNode;
24
- }
25
- /**
26
- * Supplies wallet modal + optional SIWE actions for {@link ConnectRequired}, {@link SignInRequired},
27
- * and editable tables that use them.
28
- *
29
- * Use {@link ConnectKitWalletAdapter} from `@gearbox-protocol/ui-kit/connectkit` when using ConnectKit,
30
- * or provide your own `value` (e.g. RainbowKit `useConnectModal`).
31
- */
32
- export declare function WalletUIProvider({ value, children }: WalletUIProviderProps): import("react/jsx-runtime").JSX.Element;
33
- /**
34
- * Returns the wallet UI adapter value, or `null` when no {@link WalletUIProvider} is mounted.
35
- */
36
- export declare function useWalletUI(): WalletUIContextValue | null;
@@ -1,12 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface ConnectKitWalletAdapterProps {
3
- children?: ReactNode;
4
- }
5
- /**
6
- * Bridges ConnectKit (`useModal`, `useSIWE`) into {@link WalletUIProvider} so
7
- * {@link ConnectRequired}, {@link SignInRequired}, and editable tables work without importing ConnectKit
8
- * from application code.
9
- *
10
- * Place inside `ConnectKitProvider` (and typically inside or beside {@link SIWEClientProvider} when using SIWE).
11
- */
12
- export declare function ConnectKitWalletAdapter({ children, }: ConnectKitWalletAdapterProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { ConnectKitWalletAdapter, type ConnectKitWalletAdapterProps, } from './connect-kit-wallet-adapter';
2
- export { SIWEClientProvider, type SIWEClientProviderProps, } from './siwe-provider';
@@ -1,30 +0,0 @@
1
- /**
2
- * SIWEClientProvider — provider component for Sign-In With Ethereum (SIWE) authentication.
3
- *
4
- * Requires `connectkit` and must be used under `ConnectKitProvider` + `WagmiProvider`.
5
- *
6
- * @usage
7
- * Use SIWEClientProvider to wrap your application and enable SIWE authentication:
8
- * app root, authentication context, wallet-based authentication.
9
- *
10
- * Props:
11
- * - `apiRoutePrefix` — API route prefix for SIWE endpoints (required):
12
- * - `/nonce` — endpoint for fetching nonce (relative to prefix).
13
- * - `/signin` — endpoint for verifying signature.
14
- * - `/session` — endpoint for getting current session.
15
- * - `/logout` — endpoint for signing out.
16
- * - `statement` — optional custom statement for SIWE message (defaults to "Sign In With Ethereum.").
17
- * - `children` — application content wrapped by provider (required).
18
- * - `onRefresh` — optional callback after sign-in or sign-out (e.g. Next.js `router.refresh()`).
19
- *
20
- * Note: wraps ConnectKit's `SIWEProvider` with custom HTTP API integration.
21
- *
22
- * Import from `@gearbox-protocol/ui-kit/connectkit` so `connectkit` stays an optional peer dependency.
23
- */
24
- export interface SIWEClientProviderProps {
25
- apiRoutePrefix: string;
26
- statement?: string;
27
- children?: React.ReactNode;
28
- onRefresh?: () => void;
29
- }
30
- export declare function SIWEClientProvider({ apiRoutePrefix, statement, children, onRefresh, ...props }: SIWEClientProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export { type NextSIWEClientProviderProps, SIWEClientProvider, } from './siwe-provider';
@@ -1,8 +0,0 @@
1
- import { SIWEClientProviderProps as BaseSIWEClientProviderProps } from '../../connectkit/siwe-provider';
2
- export type NextSIWEClientProviderProps = Omit<BaseSIWEClientProviderProps, "onRefresh">;
3
- /**
4
- * Next.js variant of {@link SIWEClientProvider} that calls `router.refresh()` after sign-in and sign-out.
5
- *
6
- * Import from `@gearbox-protocol/ui-kit/next/connectkit`.
7
- */
8
- export declare function SIWEClientProvider(props: NextSIWEClientProviderProps): import("react/jsx-runtime").JSX.Element;