@use-glyph/sdk-react 2.2.3 → 2.2.5

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.
@@ -7,5 +7,5 @@ export declare class GlyphDataRequestError extends Error {
7
7
  readonly status: number;
8
8
  constructor(status: number);
9
9
  }
10
- export declare function fetchScopedGlyphData<T>(apiFetch: GlyphApiFetch | null, path: string, signal: AbortSignal, isCurrent: () => boolean, scope: string): Promise<ScopedGlyphData<T>>;
10
+ export declare function fetchScopedGlyphData<T>(apiFetch: GlyphApiFetch | null, path: string, signal: AbortSignal, isCurrent: () => boolean, scope: string, decode?: (value: unknown) => T): Promise<ScopedGlyphData<T>>;
11
11
  export declare function shouldRetryGlyphData(error: Error, failureCount: number, limit: number): boolean;
@@ -0,0 +1,6 @@
1
+ import { GlyphWidgetBalances } from '../types';
2
+ export declare class GlyphBalancesDecodeError extends Error {
3
+ constructor();
4
+ }
5
+ /** Decode only explicitly negotiated NFT image references; legacy arrays pass through unchanged. */
6
+ export declare function decodeGlyphBalances(value: unknown): GlyphWidgetBalances;
@@ -4,7 +4,7 @@ interface UsePrivyCrossAppEIP1193Props {
4
4
  useStagingTenant?: boolean;
5
5
  }
6
6
  export declare const usePrivyCrossAppProvider: ({ chains, useStagingTenant }: UsePrivyCrossAppEIP1193Props) => {
7
- ready: boolean | null;
7
+ ready: boolean;
8
8
  provider: {
9
9
  on: <event extends keyof import('viem').EIP1193EventMap>(event: event, listener: import('viem').EIP1193EventMap[event]) => void;
10
10
  removeListener: <event extends keyof import('viem').EIP1193EventMap>(event: event, listener: import('viem').EIP1193EventMap[event]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-glyph/sdk-react",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "type": "module",
5
5
  "license": "GLYPH-1.0",
6
6
  "sideEffects": false,