@magic-ext/magic-widget 1.0.0-canary.979.21086257393.0 → 1.0.0-canary.979.21192450759.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.
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { MagicWidgetProps } from './types';
3
- export declare function MagicWidget({ displayMode, isOpen, onClose, closeOnSuccess, closeOnClickOutside, wallets, onSuccess, onError, }: MagicWidgetProps): React.JSX.Element | null;
3
+ export declare function MagicWidget({ displayMode, isOpen, onClose, closeOnSuccess, closeOnClickOutside, wallets, onSuccess, onError, onReady, }: MagicWidgetProps): React.JSX.Element | null;
@@ -6,7 +6,10 @@ export interface ClientTheme {
6
6
  buttonRadius: string | undefined;
7
7
  containerRadius: string | undefined;
8
8
  backgroundColor: `#${string}` | undefined;
9
+ neutralColor: `#${string}` | undefined;
9
10
  themeColor: 'auto' | 'dark' | 'light';
11
+ customBrandingType: 1 | 2;
12
+ isDefaultAsset?: boolean;
10
13
  }
11
14
  export interface ClientConfig {
12
15
  clientId: string;
@@ -158,4 +158,10 @@ export interface MagicWidgetProps {
158
158
  * @example onError={(error) => console.error(error.message)}
159
159
  */
160
160
  onError?: (error: Error) => void;
161
+ /**
162
+ * Callback fired when the widget has finished initializing and is ready to display.
163
+ * Use this to hide your custom loading UI.
164
+ * @example onReady={() => setIsLoading(false)}
165
+ */
166
+ onReady?: () => void;
161
167
  }