@use-glyph/sdk-react 2.0.17-rc.6 → 2.1.8

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.
@@ -5,6 +5,7 @@ interface WalletViewHeaderProps {
5
5
  onCloseClick?: () => void;
6
6
  };
7
7
  onProfileClick?: () => void;
8
+ isStickyHeader: boolean;
8
9
  }
9
- declare const _default: import('react').MemoExoticComponent<({ fullScreenHeader, onProfileClick }: WalletViewHeaderProps) => import("react/jsx-runtime").JSX.Element>;
10
+ declare const _default: import('react').MemoExoticComponent<({ fullScreenHeader, onProfileClick, isStickyHeader }: WalletViewHeaderProps) => import("react/jsx-runtime").JSX.Element>;
10
11
  export default _default;
@@ -8,5 +8,6 @@ export type WalletScreenProps = {
8
8
  setView?: (view: SelectedView) => void;
9
9
  headerClassName?: string;
10
10
  footerClassName?: string;
11
+ isStickyHeader: boolean;
11
12
  };
12
- export declare function WalletViewTemplate({ mainFooter, ...props }: WalletScreenProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function WalletViewTemplate({ mainFooter, isStickyHeader, ...props }: WalletScreenProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import { ButtonHTMLAttributes } from 'react';
3
3
  declare const buttonVariantsClasses: (props?: ({
4
- variant?: "default" | "link" | "destructive" | "secondary" | "outline" | "tertiary" | "ghost" | "link-inline" | "cube" | null | undefined;
4
+ variant?: "default" | "link" | "destructive" | "secondary" | "outline" | "tertiary" | "ghost" | "link-inline" | "cube" | "liquidGlass" | null | undefined;
5
5
  size?: "default" | "login" | "icon" | "cube" | "xs" | "xs-inline" | "sm" | "lg" | null | undefined;
6
6
  shadow?: boolean | null | undefined;
7
7
  scale?: boolean | null | undefined;
@@ -7,6 +7,7 @@ interface UseGlyphRequiredChainsResult {
7
7
  * Hook to fetch the list of required Glyph chain IDs (viem chain ids) from an API endpoint. SHOULD ONLY BE USED ONCE AT THE TOP LEVEL.
8
8
  *
9
9
  * @param glyphUrl - (optional) The URL of the Glyph API endpoint if need to override
10
+ * @param rpcUrls - (optional) Per-chain RPC override (chainId -> URL or URL[]). Treated as static at mount.
10
11
  */
11
- export declare const useGlyphConfigureDynamicChains: (glyphUrl?: string) => UseGlyphRequiredChainsResult;
12
+ export declare const useGlyphConfigureDynamicChains: (glyphUrl?: string, rpcUrls?: Record<number, string | string[]>) => UseGlyphRequiredChainsResult;
12
13
  export {};
@@ -23,5 +23,5 @@ interface GlyphPrivyProviderProps extends Omit<PrivyProviderProps, "children" |
23
23
  useStagingTenant?: boolean;
24
24
  ssr?: boolean;
25
25
  }
26
- export declare const GlyphPrivyProvider: ({ queryClient, glyphUrl, useStagingTenant, ssr, onLogin, onLogout, ...props }: GlyphPrivyProviderProps) => import("react/jsx-runtime").JSX.Element | null;
26
+ export declare const GlyphPrivyProvider: ({ queryClient, glyphUrl, useStagingTenant, ssr, onLogin, onLogout, rpcUrls, ...props }: GlyphPrivyProviderProps) => import("react/jsx-runtime").JSX.Element | null;
27
27
  export {};
@@ -34,6 +34,12 @@ export interface BaseGlyphProviderOptions extends PropsWithChildren {
34
34
  useStagingTenant?: boolean;
35
35
  onLogin?: () => void;
36
36
  onLogout?: () => void;
37
+ /**
38
+ * Optional per-chain RPC override. Maps a chainId to a single RPC URL or an array of URLs
39
+ * (used as a viem `fallback` transport). Chains without an entry keep the default RPC
40
+ * returned by the Glyph API. Treat this as static at mount — changing it after mount has no effect.
41
+ */
42
+ rpcUrls?: Record<number, string | string[]>;
37
43
  }
38
44
  export interface EIP1193GlyphProviderOptionsWithSignature extends BaseGlyphProviderOptions {
39
45
  strategy: StrategyType.EIP1193;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-glyph/sdk-react",
3
- "version": "2.0.17-rc.6",
3
+ "version": "2.1.8",
4
4
  "type": "module",
5
5
  "license": "GLYPH-1.0",
6
6
  "sideEffects": false,