@tonconnect/ui-react 0.0.5 → 0.0.6

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,7 +1,5 @@
1
- import { Locales, Theme, TonConnectUI } from '@tonconnect/ui';
1
+ import { ActionConfiguration, Locales, Theme, TonConnectUI, UIPreferences, WalletsListConfiguration } from '@tonconnect/ui';
2
2
  import { ITonConnect } from '@tonconnect/sdk';
3
- import type * as CSS from 'csstype';
4
- declare type Color = CSS.Property.Color;
5
3
  export declare const TonConnectUIContext: import("react").Context<TonConnectUI | null>;
6
4
  export declare type TonConnectUIProviderProps = {
7
5
  children: JSX.Element;
@@ -30,11 +28,6 @@ export interface TonConnectUIProviderPropsBase {
30
28
  * @default SYSTEM theme.
31
29
  */
32
30
  theme: Theme;
33
- /**
34
- * Accent color for the UI elements.
35
- * @default #31A6F5 (blue).
36
- */
37
- accentColor: Color;
38
31
  /**
39
32
  * Language for the phrases it the UI elements.
40
33
  * @default system
@@ -45,10 +38,22 @@ export interface TonConnectUIProviderPropsBase {
45
38
  * @default `div#tc-widget-root`.
46
39
  */
47
40
  widgetRootId: string;
41
+ /**
42
+ * UI elements configuration.
43
+ */
44
+ uiPreferences?: UIPreferences;
45
+ /**
46
+ * Configuration for the wallets list in the connect wallet modal.
47
+ */
48
+ walletsList?: WalletsListConfiguration;
49
+ /**
50
+ * Configuration for action-period (e.g. sendTransaction) UI elements: modals and notifications.
51
+ */
52
+ actionsConfiguration?: ActionConfiguration;
48
53
  /**
49
54
  * @deprecated Don't use it
50
55
  */
51
- walletsListSource: string;
56
+ walletsListSource?: string;
52
57
  }
53
58
  declare const _default: import("react").NamedExoticComponent<TonConnectUIProviderProps>;
54
59
  export default _default;