@use-glyph/sdk-react 1.0.0 → 1.0.1
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/dist/glyph-widget.umd.js +27 -27
- package/dist/index.js +389 -382
- package/dist/types/lib/privy/GlyphPrivyProvider.d.ts +5 -2
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { LoginMethodOrderOption, PrivyProviderProps } from '@privy-io/react-auth
|
|
|
2
2
|
import { QueryClient } from '@tanstack/react-query';
|
|
3
3
|
import { Chain, Transport } from 'viem';
|
|
4
4
|
import { default as React } from 'react';
|
|
5
|
+
import { BaseGlyphProviderOptions } from '../../types/GlyphWidgetTypes.js';
|
|
5
6
|
export declare const GLYPH_APP_LOGIN_METHOD: LoginMethodOrderOption;
|
|
6
7
|
export declare const STAGING_GLYPH_APP_LOGIN_METHOD: LoginMethodOrderOption;
|
|
7
8
|
/**
|
|
@@ -12,8 +13,10 @@ export declare const STAGING_GLYPH_APP_LOGIN_METHOD: LoginMethodOrderOption;
|
|
|
12
13
|
* @property {Record<number, Transport>} transports - Optional transports to use, defaults to standard http.
|
|
13
14
|
* @property {QueryClient} queryClient - Optional query client to use, defaults to a standard query client.
|
|
14
15
|
* @property {boolean} ssr - Optional ssr to use, defaults to true.
|
|
16
|
+
* @property {Function} onLogin - Optional onLogin function to use, defaults to a noop.
|
|
17
|
+
* @property {Function} onLogout - Optional onLogout function to use, defaults to a noop.
|
|
15
18
|
*/
|
|
16
|
-
interface GlyphPrivyProviderProps extends PrivyProviderProps {
|
|
19
|
+
interface GlyphPrivyProviderProps extends PrivyProviderProps, BaseGlyphProviderOptions {
|
|
17
20
|
chains: [Chain, ...Chain[]];
|
|
18
21
|
transports?: Record<number, Transport>;
|
|
19
22
|
queryClient?: QueryClient;
|
|
@@ -21,5 +24,5 @@ interface GlyphPrivyProviderProps extends PrivyProviderProps {
|
|
|
21
24
|
useStagingTenant?: boolean;
|
|
22
25
|
ssr?: boolean;
|
|
23
26
|
}
|
|
24
|
-
export declare const GlyphPrivyProvider: React.MemoExoticComponent<({ chains, transports, queryClient, glyphUrl, useStagingTenant, ssr, ...props }: GlyphPrivyProviderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
27
|
+
export declare const GlyphPrivyProvider: React.MemoExoticComponent<({ chains, transports, queryClient, glyphUrl, useStagingTenant, ssr, onLogin, onLogout, ...props }: GlyphPrivyProviderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
25
28
|
export {};
|