@use-glyph/sdk-react 1.1.2 → 1.1.4
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/EIP1193Strategy.js +1 -0
- package/dist/EIP1193Strategy.js.map +1 -0
- package/dist/PrivyStrategy.js +1 -0
- package/dist/PrivyStrategy.js.map +1 -0
- package/dist/glyph-widget.es.js +1 -0
- package/dist/glyph-widget.es.js.map +1 -0
- package/dist/glyph-widget.umd.js +44 -43
- package/dist/glyph-widget.umd.js.map +1 -0
- package/dist/index.js +6416 -6876
- package/dist/index.js.map +1 -0
- package/dist/types/components/shared/UserAvatar.d.ts +1 -2
- package/dist/types/components/shared/WalletViewFooterNav.d.ts +1 -2
- package/dist/types/components/widget/WalletFundFailedView.d.ts +1 -2
- package/dist/types/components/widget/WalletFundPendingView.d.ts +1 -2
- package/dist/types/components/widget/WalletFundSuccessView.d.ts +1 -2
- package/dist/types/components/widget/WalletSendFundFailedView.d.ts +1 -2
- package/dist/types/components/widget/WalletSendFundPendingView.d.ts +1 -2
- package/dist/types/components/widget/WalletSendFundSuccessView.d.ts +1 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/lib/privy/GlyphPrivyProvider.d.ts +3 -4
- package/package.json +3 -7
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
interface UserAvatarProps {
|
|
3
2
|
className?: string;
|
|
4
3
|
overrideUrl?: string;
|
|
5
4
|
overrideAlt?: string;
|
|
6
5
|
}
|
|
7
|
-
declare const _default:
|
|
6
|
+
declare const _default: import('react').NamedExoticComponent<UserAvatarProps>;
|
|
8
7
|
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { WalletMainViewTab } from '../../lib/constants';
|
|
3
2
|
interface WalletViewFooterNavProps {
|
|
4
3
|
tab: WalletMainViewTab;
|
|
5
4
|
setTab: (tab: WalletMainViewTab) => void;
|
|
6
5
|
}
|
|
7
|
-
declare const _default:
|
|
6
|
+
declare const _default: import('react').NamedExoticComponent<WalletViewFooterNavProps>;
|
|
8
7
|
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
interface WalletFundFailedViewProps {
|
|
3
2
|
onEnd: () => void;
|
|
4
3
|
onShowActivity: () => void;
|
|
5
4
|
id: string;
|
|
6
5
|
}
|
|
7
|
-
declare const _default:
|
|
6
|
+
declare const _default: import('react').NamedExoticComponent<WalletFundFailedViewProps>;
|
|
8
7
|
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
interface WalletFundPendingViewProps {
|
|
3
2
|
onBack: () => void;
|
|
4
3
|
id: string;
|
|
5
4
|
value: number;
|
|
6
5
|
}
|
|
7
|
-
declare const _default:
|
|
6
|
+
declare const _default: import('react').NamedExoticComponent<WalletFundPendingViewProps>;
|
|
8
7
|
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
interface WalletFundSuccessViewProps {
|
|
3
2
|
onEnd: () => void;
|
|
4
3
|
onShowActivity: () => void;
|
|
5
4
|
value: number;
|
|
6
5
|
}
|
|
7
|
-
declare const _default:
|
|
6
|
+
declare const _default: import('react').NamedExoticComponent<WalletFundSuccessViewProps>;
|
|
8
7
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
interface WalletSendFundFailedViewProps {
|
|
3
2
|
onEnd: () => void;
|
|
4
3
|
onShowActivity: () => void;
|
|
@@ -6,5 +5,5 @@ interface WalletSendFundFailedViewProps {
|
|
|
6
5
|
txBlockExplorerUrl: string | undefined;
|
|
7
6
|
txBlockExplorerName: string | undefined;
|
|
8
7
|
}
|
|
9
|
-
declare const _default:
|
|
8
|
+
declare const _default: import('react').NamedExoticComponent<WalletSendFundFailedViewProps>;
|
|
10
9
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { SendFundQuote } from './WalletSendFundView';
|
|
3
2
|
interface WalletSendFundPendingViewProps {
|
|
4
3
|
onBack: () => void;
|
|
@@ -9,5 +8,5 @@ interface WalletSendFundPendingViewProps {
|
|
|
9
8
|
tokenSymbol: string;
|
|
10
9
|
TokenIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
11
10
|
}
|
|
12
|
-
declare const _default:
|
|
11
|
+
declare const _default: import('react').NamedExoticComponent<WalletSendFundPendingViewProps>;
|
|
13
12
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { SendFundQuote } from './WalletSendFundView';
|
|
3
2
|
interface WalletSendFundSuccessViewProps {
|
|
4
3
|
onEnd: () => void;
|
|
@@ -6,5 +5,5 @@ interface WalletSendFundSuccessViewProps {
|
|
|
6
5
|
quote: SendFundQuote;
|
|
7
6
|
tokenSymbol: string;
|
|
8
7
|
}
|
|
9
|
-
declare const _default:
|
|
8
|
+
declare const _default: import('react').NamedExoticComponent<WalletSendFundSuccessViewProps>;
|
|
10
9
|
export default _default;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -17,6 +17,6 @@ export { glyphWalletConnector } from './lib/eip1193/glyphWalletConnector';
|
|
|
17
17
|
export { GlyphWalletProvider } from './lib/eip1193/GlyphWalletProvider';
|
|
18
18
|
export { glyphWalletRK, glyphWalletRKStaging } from './lib/eip1193/glyphWalletRK';
|
|
19
19
|
export { GLYPH_ICON_URL, GLYPH_PRIVY_APP_ID, STAGING_GLYPH_PRIVY_APP_ID } from './lib/constants';
|
|
20
|
-
export { GLYPH_APP_LOGIN_METHOD, GlyphPrivyProvider, STAGING_GLYPH_APP_LOGIN_METHOD } from './lib/privy/GlyphPrivyProvider';
|
|
20
|
+
export { GLYPH_APP_LOGIN_METHOD, default as GlyphPrivyProvider, STAGING_GLYPH_APP_LOGIN_METHOD } from './lib/privy/GlyphPrivyProvider';
|
|
21
21
|
export { InjectWagmiConnector } from './lib/privy/InjectWagmiConnector';
|
|
22
22
|
export { usePrivyCrossAppProvider } from './lib/privy/usePrivyCrossAppProvider';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LoginMethodOrderOption, PrivyProviderProps } from '@privy-io/react-auth';
|
|
2
2
|
import { QueryClient } from '@tanstack/react-query';
|
|
3
3
|
import { Chain, Transport } from 'viem';
|
|
4
|
-
import { default as React } from 'react';
|
|
5
4
|
import { BaseGlyphProviderOptions } from '../../types/GlyphWidgetTypes.js';
|
|
6
5
|
export declare const GLYPH_APP_LOGIN_METHOD: LoginMethodOrderOption;
|
|
7
6
|
export declare const STAGING_GLYPH_APP_LOGIN_METHOD: LoginMethodOrderOption;
|
|
@@ -16,7 +15,7 @@ export declare const STAGING_GLYPH_APP_LOGIN_METHOD: LoginMethodOrderOption;
|
|
|
16
15
|
* @property {Function} onLogin - Optional onLogin function to use, defaults to a noop.
|
|
17
16
|
* @property {Function} onLogout - Optional onLogout function to use, defaults to a noop.
|
|
18
17
|
*/
|
|
19
|
-
interface GlyphPrivyProviderProps extends PrivyProviderProps, BaseGlyphProviderOptions {
|
|
18
|
+
interface GlyphPrivyProviderProps extends Omit<PrivyProviderProps, "children">, BaseGlyphProviderOptions {
|
|
20
19
|
chains: [Chain, ...Chain[]];
|
|
21
20
|
transports?: Record<number, Transport>;
|
|
22
21
|
queryClient?: QueryClient;
|
|
@@ -24,5 +23,5 @@ interface GlyphPrivyProviderProps extends PrivyProviderProps, BaseGlyphProviderO
|
|
|
24
23
|
useStagingTenant?: boolean;
|
|
25
24
|
ssr?: boolean;
|
|
26
25
|
}
|
|
27
|
-
|
|
28
|
-
export
|
|
26
|
+
declare const _default: import('react').MemoExoticComponent<({ chains, transports, queryClient, glyphUrl, useStagingTenant, ssr, onLogin, onLogout, ...props }: GlyphPrivyProviderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
27
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@use-glyph/sdk-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "GLYPH-1.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,8 +31,6 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@eslint/js": "^9.34.0",
|
|
33
33
|
"@types/node": "^24.3.0",
|
|
34
|
-
"@types/react": ">=18",
|
|
35
|
-
"@types/react-dom": ">=18",
|
|
36
34
|
"@vitejs/plugin-react": "^5.0.2",
|
|
37
35
|
"autoprefixer": "^10.4.21",
|
|
38
36
|
"dotenv": "^17.2.1",
|
|
@@ -44,11 +42,11 @@
|
|
|
44
42
|
"postcss": "^8.5.6",
|
|
45
43
|
"prettier": "^3.6.2",
|
|
46
44
|
"@rainbow-me/rainbowkit": ">=2.2.8",
|
|
47
|
-
"react": ">=18",
|
|
48
|
-
"react-dom": ">=18",
|
|
49
45
|
"rimraf": "^6.0.1",
|
|
50
46
|
"tailwind-scrollbar": "3.1.0",
|
|
51
47
|
"tailwindcss": "^3.4.17",
|
|
48
|
+
"tailwind-merge": "^2.6.0",
|
|
49
|
+
"tailwindcss-animate": "^1.0.7",
|
|
52
50
|
"typescript": "~5.9.2",
|
|
53
51
|
"typescript-eslint": "^8.41.0",
|
|
54
52
|
"vite": "7.1.3",
|
|
@@ -79,8 +77,6 @@
|
|
|
79
77
|
"lucide-react": "^0.542.0",
|
|
80
78
|
"qrcode.react": "^4.2.0",
|
|
81
79
|
"sonner": "2.0.7",
|
|
82
|
-
"tailwind-merge": "^3.3.1",
|
|
83
|
-
"tailwindcss-animate": "^1.0.7",
|
|
84
80
|
"throttle-debounce": "5.0.2",
|
|
85
81
|
"truncate-eth-address": "1.0.2",
|
|
86
82
|
"vaul": "1.1.2"
|