keyring-chatbot-agent-sdk-test 1.0.27 → 1.0.29

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/README.md +12 -12
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # keyring-chatbot-agent
1
+ # keyring-chatbot-agent-sdk-test
2
2
 
3
3
  React chat widget — drops a floating chat button + modal into any React dApp.
4
4
  The widget answers questions and handles wallet / token / NFT lookups in the
@@ -9,7 +9,7 @@ transaction to sign and broadcast.
9
9
  ## Install
10
10
 
11
11
  ```bash
12
- yarn add keyring-chatbot-agent
12
+ yarn add keyring-chatbot-agent-sdk-test
13
13
  # peer deps
14
14
  yarn add react react-dom
15
15
  ```
@@ -19,8 +19,8 @@ Peer deps: `react` / `react-dom` (17, 18 or 19).
19
19
  ## Quick start
20
20
 
21
21
  ```tsx
22
- import { ChatWidget } from 'keyring-chatbot-agent';
23
- import type { Transaction, TransactionResult } from 'keyring-chatbot-agent';
22
+ import { ChatWidget } from 'keyring-chatbot-agent-sdk-test';
23
+ import type { Transaction, TransactionResult } from 'keyring-chatbot-agent-sdk-test';
24
24
 
25
25
  export function App() {
26
26
  // Sign + broadcast with your own wallet/provider, then report the result.
@@ -329,8 +329,8 @@ set `false` to hide the header icon.
329
329
  ### A fuller example
330
330
 
331
331
  ```tsx
332
- import { ChatWidget } from 'keyring-chatbot-agent';
333
- import type { Transaction, TransactionResult } from 'keyring-chatbot-agent';
332
+ import { ChatWidget } from 'keyring-chatbot-agent-sdk-test';
333
+ import type { Transaction, TransactionResult } from 'keyring-chatbot-agent-sdk-test';
334
334
 
335
335
  export function Chat({ address, chainId, connected }) {
336
336
  const onTransaction = async (tx: Transaction): Promise<TransactionResult> => {
@@ -366,7 +366,7 @@ Reset the active widget's chat history imperatively — e.g. on logout — witho
366
366
  holding a ref:
367
367
 
368
368
  ```ts
369
- import { clearChat } from 'keyring-chatbot-agent';
369
+ import { clearChat } from 'keyring-chatbot-agent-sdk-test';
370
370
 
371
371
  function onLogout() {
372
372
  clearChat(); // clears in-memory + localStorage history and re-shows suggestions
@@ -386,7 +386,7 @@ import {
386
386
  useAgent,
387
387
  useAgentChat,
388
388
  ActionForm,
389
- } from 'keyring-chatbot-agent';
389
+ } from 'keyring-chatbot-agent-sdk-test';
390
390
  ```
391
391
 
392
392
  - `useAgent()` — builds the per-session chat agent (config-driven; takes no args).
@@ -397,10 +397,10 @@ import {
397
397
 
398
398
  ```ts
399
399
  // Widget
400
- import { ChatWidget, type ChatWidgetProps } from 'keyring-chatbot-agent';
400
+ import { ChatWidget, type ChatWidgetProps } from 'keyring-chatbot-agent-sdk-test';
401
401
 
402
402
  // Imperative
403
- import { clearChat } from 'keyring-chatbot-agent';
403
+ import { clearChat } from 'keyring-chatbot-agent-sdk-test';
404
404
 
405
405
  // Compose-your-own
406
406
  import {
@@ -413,7 +413,7 @@ import {
413
413
  useAgent,
414
414
  useAgentChat,
415
415
  ActionForm,
416
- } from 'keyring-chatbot-agent';
416
+ } from 'keyring-chatbot-agent-sdk-test';
417
417
 
418
418
  // Types
419
419
  import type {
@@ -435,5 +435,5 @@ import type {
435
435
  Transaction,
436
436
  TransactionStatus,
437
437
  TransactionResult,
438
- } from 'keyring-chatbot-agent';
438
+ } from 'keyring-chatbot-agent-sdk-test';
439
439
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keyring-chatbot-agent-sdk-test",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "private": false,
5
5
  "description": "React chat widget for keyring-agent-core — floating chatbot UI with AI answers, wallet/token/NFT lookups",
6
6
  "keywords": [
@@ -46,6 +46,7 @@
46
46
  "@solana/web3.js": "^1.98.4",
47
47
  "@types/react-syntax-highlighter": "^15.5.13",
48
48
  "bignumber.js": "^9.3.1",
49
+ "keyring-agent-core": "^0.2.3",
49
50
  "lodash": "^4.17.23",
50
51
  "react-device-detect": "^2.2.3",
51
52
  "react-markdown": "^10.1.0",