@connect-xyz/auth-js 1.19.0 → 1.21.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -28,6 +28,7 @@ declare type AppEvent<TType extends string = string, TData = Record<string, unkn
28
28
  * jwt: 'your-jwt-token',
29
29
  * env: 'production',
30
30
  * theme: 'dark', // 'auto' | 'light' | 'dark'
31
+ * onLoaded: () => console.log('Auth loaded and ready'),
31
32
  * onError: ({ error, reason }) => console.error(error, reason),
32
33
  * onClose: () => console.log('Auth closed'),
33
34
  * onDeposit: ({ data }) => console.log('Deposit', data),
@@ -93,6 +94,8 @@ export default Auth;
93
94
  declare type AuthCallbacks = CommonCallbacks<AuthEvent> & {
94
95
  /** Called when a deposit action occurs */
95
96
  onDeposit?: (deposit: DepositCompletedPayload) => void;
97
+ /** Called when the Auth component has finished loading and is ready */
98
+ onLoaded?: () => void;
96
99
  };
97
100
 
98
101
  export declare interface AuthConfig extends BaseConfig<AuthEvent>, AuthCallbacks {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connect-xyz/auth-js",
3
- "version": "1.19.0",
3
+ "version": "1.21.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",