@merit-systems/echo-react-sdk 1.0.16 → 1.0.18

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/index.d.ts CHANGED
@@ -57,6 +57,8 @@ export declare interface EchoContextValue {
57
57
  getToken: () => Promise<string | null>;
58
58
  clearAuth: () => Promise<void>;
59
59
  config: EchoConfig_2;
60
+ isInsufficientFunds: boolean;
61
+ setIsInsufficientFunds: (value: boolean) => void;
60
62
  }
61
63
 
62
64
  export declare function EchoProvider({ config, children }: EchoProviderProps): JSX.Element | null;
@@ -75,14 +77,24 @@ export declare interface EchoSignInProps {
75
77
  children?: React.ReactNode;
76
78
  }
77
79
 
78
- export declare function EchoTokenPurchase({ onPurchaseComplete, onError, className, children, }: EchoTokenPurchaseProps): JSX.Element;
80
+ export declare function EchoSignOut({ onSuccess, onError, className, children, }: EchoSignOutProps): JSX.Element;
79
81
 
80
- export declare interface EchoTokenPurchaseProps {
82
+ export declare interface EchoSignOutProps {
83
+ onSuccess?: () => void;
84
+ onError?: (error: Error) => void;
85
+ className?: string;
86
+ children?: React.ReactNode;
87
+ }
88
+
89
+ export declare function EchoTokens({ onPurchaseComplete, onError, className, children, showAvatar, }: EchoTokensProps): JSX.Element;
90
+
91
+ export declare interface EchoTokensProps {
81
92
  amount?: number;
82
93
  onPurchaseComplete?: (balance: EchoBalance) => void;
83
94
  onError?: (error: Error) => void;
84
95
  className?: string;
85
96
  children?: React.ReactNode;
97
+ showAvatar?: boolean;
86
98
  }
87
99
 
88
100
  export declare interface EchoUser {
@@ -92,6 +104,15 @@ export declare interface EchoUser {
92
104
  picture?: string;
93
105
  }
94
106
 
107
+ export declare function InsufficientFundsModal({ isOpen, onClose, onPurchaseComplete, onError, }: InsufficientFundsModalProps): JSX.Element | null;
108
+
109
+ declare interface InsufficientFundsModalProps {
110
+ isOpen: boolean;
111
+ onClose: () => void;
112
+ onPurchaseComplete?: () => void;
113
+ onError?: ((error: Error) => void) | undefined;
114
+ }
115
+
95
116
  export declare const Logo: default_2.FC<LogoProps>;
96
117
 
97
118
  declare interface LogoProps {