keyring-chatbot-agent 1.0.8 → 1.0.19

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/lib.d.ts CHANGED
@@ -5,6 +5,15 @@ export declare interface Account {
5
5
  chainId: number | string;
6
6
  }
7
7
 
8
+ export declare interface ChatUICustomization {
9
+ chatTitle?: string;
10
+ welcomeMessage?: string;
11
+ suggestions?: SuggestionButtonConfig[];
12
+ additionalSuggestions?: SuggestionButtonConfig[];
13
+ buttonIcon?: string;
14
+ chatIcon?: string;
15
+ }
16
+
8
17
  /**
9
18
  * `ChatWidget` is the main entry point for embedding the Keyring AI chat assistant
10
19
  * into your dApp. It renders a floating chat button that opens a full-featured
@@ -44,7 +53,7 @@ export declare interface Account {
44
53
  * over the built-in defaults for balance queries and fee estimation.
45
54
  * e.g. `{ 1: 'https://...', 137: 'https://...' }`
46
55
  */
47
- export declare const ChatWidget: ({ position, theme, defaultOpen, onOpen, onClose, account, onTransaction, language, rpcUrls, }: ChatWidgetProps) => JSX.Element | null;
56
+ export declare const ChatWidget: ({ position, theme, defaultOpen, onOpen, onClose, account, onTransaction, language, rpcUrls, chatTitle, welcomeMessage, customSuggestions, additionalSuggestions, buttonIcon, chatIcon, customChatButton, styleButtonChat, }: ChatWidgetProps) => JSX.Element | null;
48
57
 
49
58
  /** Alias kept for backwards-compatibility */
50
59
  export declare type ChatWidgetLanguage = Language;
@@ -59,6 +68,14 @@ export declare interface ChatWidgetProps {
59
68
  onTransaction?: (tx: Transaction) => Promise<TransactionResult>;
60
69
  language?: ChatWidgetLanguage;
61
70
  rpcUrls?: Record<number, string>;
71
+ chatTitle?: string;
72
+ welcomeMessage?: string;
73
+ customSuggestions?: SuggestionButtonConfig[];
74
+ additionalSuggestions?: SuggestionButtonConfig[];
75
+ buttonIcon?: string;
76
+ chatIcon?: string;
77
+ customChatButton?: React.ReactNode;
78
+ styleButtonChat?: React.CSSProperties;
62
79
  }
63
80
 
64
81
  export declare interface ChatWidgetTheme {
@@ -72,6 +89,8 @@ export declare interface ChatWidgetTheme {
72
89
  };
73
90
  }
74
91
 
92
+ export declare function clearChat(): void;
93
+
75
94
  export declare interface Config {
76
95
  position?: 'bottom-right' | 'bottom-left';
77
96
  theme?: ChatWidgetTheme;
@@ -134,6 +153,11 @@ export declare interface MessageTokenInfo {
134
153
  contractAddress: string;
135
154
  }
136
155
 
156
+ export declare interface SuggestionButtonConfig {
157
+ icon?: string;
158
+ text: string;
159
+ }
160
+
137
161
  export declare interface Transaction {
138
162
  from: string;
139
163
  to: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keyring-chatbot-agent",
3
- "version": "1.0.8",
3
+ "version": "1.0.19",
4
4
  "private": false,
5
5
  "description": "A React chat widget SDK with floating button and modal",
6
6
  "keywords": [
@@ -100,5 +100,8 @@
100
100
  "module": "./dist/chat-widget.es.js",
101
101
  "sideEffects": [
102
102
  "**/*.css"
103
- ]
103
+ ],
104
+ "resolutions": {
105
+ "@noble/hashes": "1.8.0"
106
+ }
104
107
  }