@use-glyph/sdk-react 2.0.17-rc.2 → 2.0.17-rc.3
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.es.js +33 -31
- package/dist/glyph-widget.umd.js +67 -67
- package/dist/glyph-widget.umd.js.map +1 -1
- package/dist/index.js +3795 -3788
- package/dist/index.js.map +1 -1
- package/dist/types/components/GlyphWidget.d.ts +1 -1
- package/dist/types/components/shared/ChainSelector.d.ts +2 -0
- package/dist/types/index.d.ts +4 -1
- package/dist/types/types/GlyphWidgetTypes.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GlyphWidgetProps } from '../types';
|
|
2
|
-
export declare const GlyphWidget: ({ buttonProps }: GlyphWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const GlyphWidget: ({ buttonProps, minWidth, alwaysOpen }: GlyphWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { LoginButton } from './components/LoginButton';
|
|
|
3
3
|
import { LogoutButton } from './components/LogoutButton';
|
|
4
4
|
import { SignUpButton } from './components/SignUpButton';
|
|
5
5
|
import { GlyphProvider } from './context/GlyphProvider';
|
|
6
|
+
import { Wallet } from './components/widget/Wallet';
|
|
7
|
+
import { default as ChainSelector } from './components/shared/ChainSelector';
|
|
6
8
|
export { useGlyphConfigureDynamicChains } from './hooks/useGlyphConfigureDynamicChains';
|
|
7
9
|
export { configureRelayChains } from './lib/relay';
|
|
8
10
|
export { useBalances } from './hooks/useBalances';
|
|
@@ -13,7 +15,8 @@ export { useGlyphTokenGate, useGlyphOwnershipCheck, type GlyphOwnershipCheckRequ
|
|
|
13
15
|
export { useGlyphView } from './hooks/useGlyphView';
|
|
14
16
|
export { glyphConnectorDetails } from './lib/constants';
|
|
15
17
|
export { GlyphViewType as GlyphView, StrategyType, WalletClientType } from './types';
|
|
16
|
-
export {
|
|
18
|
+
export type { GlyphWidgetUser } from './types';
|
|
19
|
+
export { GlyphProvider, GlyphWidget, LoginButton, LogoutButton, SignUpButton, Wallet, ChainSelector };
|
|
17
20
|
export { NativeGlyphConnectButton } from './components/NativeGlyphConnectButton';
|
|
18
21
|
export { useNativeGlyphConnection } from './hooks/useNativeGlyphConnection';
|
|
19
22
|
export { glyphWalletConnector } from './lib/eip1193/glyphWalletConnector';
|
|
@@ -101,12 +101,15 @@ export type GlyphWidgetBalances = {
|
|
|
101
101
|
};
|
|
102
102
|
};
|
|
103
103
|
export type GlyphWidgetButtonProps = {
|
|
104
|
+
hide?: boolean;
|
|
104
105
|
showAvatar?: boolean;
|
|
105
106
|
showBalance?: boolean;
|
|
106
107
|
showUsername?: boolean;
|
|
107
108
|
};
|
|
108
109
|
export type GlyphWidgetProps = {
|
|
109
110
|
buttonProps?: GlyphWidgetButtonProps;
|
|
111
|
+
minWidth?: number;
|
|
112
|
+
alwaysOpen?: boolean;
|
|
110
113
|
};
|
|
111
114
|
export type GlyphWidgetUser = {
|
|
112
115
|
hasProfile: boolean;
|