@use-glyph/sdk-react 2.1.10 → 2.1.12

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 @@ import { SignUpButton } from './components/SignUpButton';
5
5
  import { GlyphProvider } from './context/GlyphProvider';
6
6
  import { Wallet } from './components/widget/Wallet';
7
7
  import { default as ChainSelector } from './components/shared/ChainSelector';
8
+ export { setGlyphDebugLogging } from './lib/logger';
8
9
  export { useGlyphConfigureDynamicChains } from './hooks/useGlyphConfigureDynamicChains';
9
10
  export { configureRelayChains } from './lib/relay';
10
11
  export { useBalances } from './hooks/useBalances';
@@ -0,0 +1,8 @@
1
+ /** Enable SDK debug diagnostics explicitly. Warnings and errors remain enabled. */
2
+ export declare function setGlyphDebugLogging(enabled: boolean): void;
3
+ export declare const createLogger: (namespace: string) => {
4
+ debug: (...args: unknown[]) => void;
5
+ log: (...args: unknown[]) => void;
6
+ warn: (...args: unknown[]) => void;
7
+ error: (...args: unknown[]) => void;
8
+ };
@@ -0,0 +1,5 @@
1
+ import { PublicClient } from 'viem';
2
+ /**
3
+ * Intended primarily for client-side code. Could be used as a fallback on server-side code, but bear in mind we could be rate-limited.
4
+ */
5
+ export declare function createDefaultPublicClient(chainId: number): PublicClient;
@@ -7,12 +7,7 @@ export declare function copyToClipboard(text: string): boolean;
7
7
  export declare const generateNonce: () => number;
8
8
  export declare const ethereumAvatar: (address: string | undefined) => string;
9
9
  export declare function isEthereumAddress(address?: string): boolean;
10
- export declare const createLogger: (namespace: string) => {
11
- debug: (...args: any[]) => void;
12
- log: (...args: any[]) => void;
13
- warn: (...args: any[]) => void;
14
- error: (...args: any[]) => void;
15
- };
10
+ export { createLogger } from './logger';
16
11
  export declare function tokenToBigIntWei(balance: number | string, decimals: number): bigint;
17
12
  export declare const displayNumberPrecision: (value: number | null | undefined, precision?: number) => number;
18
13
  export declare const formatTokenCount: (valueInWei: bigint | number | string, decimals: number, displayDecimals?: number) => string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-glyph/sdk-react",
3
- "version": "2.1.10",
3
+ "version": "2.1.12",
4
4
  "type": "module",
5
5
  "license": "GLYPH-1.0",
6
6
  "sideEffects": false,