keyring-chatbot-agent 1.0.8 → 1.0.17

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, }: ChatWidgetProps) => JSX.Element | null;
48
57
 
49
58
  /** Alias kept for backwards-compatibility */
50
59
  export declare type ChatWidgetLanguage = Language;
@@ -59,6 +68,13 @@ 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;
62
78
  }
63
79
 
64
80
  export declare interface ChatWidgetTheme {
@@ -72,6 +88,8 @@ export declare interface ChatWidgetTheme {
72
88
  };
73
89
  }
74
90
 
91
+ export declare function clearChat(): void;
92
+
75
93
  export declare interface Config {
76
94
  position?: 'bottom-right' | 'bottom-left';
77
95
  theme?: ChatWidgetTheme;
@@ -134,6 +152,11 @@ export declare interface MessageTokenInfo {
134
152
  contractAddress: string;
135
153
  }
136
154
 
155
+ export declare interface SuggestionButtonConfig {
156
+ icon?: string;
157
+ text: string;
158
+ }
159
+
137
160
  export declare interface Transaction {
138
161
  from: string;
139
162
  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.17",
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
  }