keyring-chatbot-agent-sdk-test 1.0.5 → 1.0.8
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/README.md +11 -56
- package/dist/chat-widget-wc.es.js +24 -24
- package/dist/chat-widget-wc.umd.js +1 -1
- package/dist/chat-widget.es.js +25 -25
- package/dist/chat-widget.umd.js +1 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -23,9 +23,9 @@ An AI-powered Web3 chatbot SDK. Provides a floating chat widget with on-chain ca
|
|
|
23
23
|
## Installation
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
npm install keyring-chatbot-agent
|
|
26
|
+
npm install keyring-chatbot-agent-sdk-test
|
|
27
27
|
# or
|
|
28
|
-
yarn add keyring-chatbot-agent
|
|
28
|
+
yarn add keyring-chatbot-agent-sdk-test
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
**Peer dependencies** (React 17, 18, or 19):
|
|
@@ -41,8 +41,8 @@ npm install react react-dom
|
|
|
41
41
|
### Basic example
|
|
42
42
|
|
|
43
43
|
```tsx
|
|
44
|
-
import { ChatWidget } from 'keyring-chatbot-agent';
|
|
45
|
-
import type { Transaction, TransactionResult } from 'keyring-chatbot-agent';
|
|
44
|
+
import { ChatWidget } from 'keyring-chatbot-agent-sdk-test';
|
|
45
|
+
import type { Transaction, TransactionResult } from 'keyring-chatbot-agent-sdk-test';
|
|
46
46
|
|
|
47
47
|
function App() {
|
|
48
48
|
const handleTransaction = async (
|
|
@@ -68,8 +68,8 @@ function App() {
|
|
|
68
68
|
### Full example
|
|
69
69
|
|
|
70
70
|
```tsx
|
|
71
|
-
import { ChatWidget } from 'keyring-chatbot-agent';
|
|
72
|
-
import type { Transaction, TransactionResult } from 'keyring-chatbot-agent';
|
|
71
|
+
import { ChatWidget } from 'keyring-chatbot-agent-sdk-test';
|
|
72
|
+
import type { Transaction, TransactionResult } from 'keyring-chatbot-agent-sdk-test';
|
|
73
73
|
|
|
74
74
|
function App() {
|
|
75
75
|
const handleTransaction = async (
|
|
@@ -116,8 +116,8 @@ function App() {
|
|
|
116
116
|
|
|
117
117
|
```tsx
|
|
118
118
|
import { useSendTransaction, useAccount } from 'wagmi';
|
|
119
|
-
import { ChatWidget } from 'keyring-chatbot-agent';
|
|
120
|
-
import type { Transaction, TransactionResult } from 'keyring-chatbot-agent';
|
|
119
|
+
import { ChatWidget } from 'keyring-chatbot-agent-sdk-test';
|
|
120
|
+
import type { Transaction, TransactionResult } from 'keyring-chatbot-agent-sdk-test';
|
|
121
121
|
|
|
122
122
|
function App() {
|
|
123
123
|
const { address, chainId } = useAccount();
|
|
@@ -205,7 +205,7 @@ Complex objects (`account`, `rpcUrls`, callbacks) are assigned as JavaScript pro
|
|
|
205
205
|
</head>
|
|
206
206
|
<body>
|
|
207
207
|
<!-- 1. Load the bundle -->
|
|
208
|
-
<script src="https://unpkg.com/keyring-chatbot-agent/dist/chat-widget-wc.umd.js"></script>
|
|
208
|
+
<script src="https://unpkg.com/keyring-chatbot-agent-sdk-test/dist/chat-widget-wc.umd.js"></script>
|
|
209
209
|
|
|
210
210
|
<!-- 2. Place the custom element with basic attributes -->
|
|
211
211
|
<chat-widget
|
|
@@ -269,7 +269,7 @@ Complex objects (`account`, `rpcUrls`, callbacks) are assigned as JavaScript pro
|
|
|
269
269
|
></chat-widget>
|
|
270
270
|
|
|
271
271
|
<script type="module">
|
|
272
|
-
import 'https://unpkg.com/keyring-chatbot-agent/dist/chat-widget-wc.es.js';
|
|
272
|
+
import 'https://unpkg.com/keyring-chatbot-agent-sdk-test/dist/chat-widget-wc.es.js';
|
|
273
273
|
|
|
274
274
|
const widget = document.getElementById('my-chat');
|
|
275
275
|
|
|
@@ -292,7 +292,7 @@ Complex objects (`account`, `rpcUrls`, callbacks) are assigned as JavaScript pro
|
|
|
292
292
|
<meta charset="UTF-8" />
|
|
293
293
|
<title>My dApp</title>
|
|
294
294
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/ethers/6.13.0/ethers.umd.min.js"></script>
|
|
295
|
-
<script src="https://unpkg.com/keyring-chatbot-agent/dist/chat-widget-wc.umd.js"></script>
|
|
295
|
+
<script src="https://unpkg.com/keyring-chatbot-agent-sdk-test/dist/chat-widget-wc.umd.js"></script>
|
|
296
296
|
</head>
|
|
297
297
|
<body>
|
|
298
298
|
<button id="connect-btn">Connect Wallet</button>
|
|
@@ -478,43 +478,6 @@ The AI handles missing parameters gracefully:
|
|
|
478
478
|
}
|
|
479
479
|
```
|
|
480
480
|
|
|
481
|
-
---
|
|
482
|
-
|
|
483
|
-
## Development
|
|
484
|
-
|
|
485
|
-
```bash
|
|
486
|
-
# Clone
|
|
487
|
-
git clone git@bitbucket.org:bacoorteam/keyring-chatbot-agent-sdk.git
|
|
488
|
-
cd keyring-chatbot-agent-sdk
|
|
489
|
-
|
|
490
|
-
# Install dependencies
|
|
491
|
-
yarn install
|
|
492
|
-
|
|
493
|
-
# Start demo dev server
|
|
494
|
-
yarn dev
|
|
495
|
-
|
|
496
|
-
# Build both React and Web Component bundles
|
|
497
|
-
yarn build
|
|
498
|
-
|
|
499
|
-
# Build React bundle only
|
|
500
|
-
yarn build:react
|
|
501
|
-
|
|
502
|
-
# Build Web Component bundle only
|
|
503
|
-
yarn build:wc
|
|
504
|
-
|
|
505
|
-
# Watch mode (auto-rebuild on change)
|
|
506
|
-
yarn watch
|
|
507
|
-
|
|
508
|
-
# Lint
|
|
509
|
-
yarn lint
|
|
510
|
-
yarn lint:fix
|
|
511
|
-
|
|
512
|
-
# Format
|
|
513
|
-
yarn format
|
|
514
|
-
```
|
|
515
|
-
|
|
516
|
-
---
|
|
517
|
-
|
|
518
481
|
## Project Structure
|
|
519
482
|
|
|
520
483
|
```
|
|
@@ -572,11 +535,3 @@ npm publish
|
|
|
572
535
|
## License
|
|
573
536
|
|
|
574
537
|
ISC
|
|
575
|
-
|
|
576
|
-
## Repository
|
|
577
|
-
|
|
578
|
-
[Bitbucket — keyring-chatbot-agent-sdk](https://bitbucket.org/bacoorteam/keyring-chatbot-agent-sdk)
|
|
579
|
-
|
|
580
|
-
## Issues
|
|
581
|
-
|
|
582
|
-
[Issue tracker](https://bitbucket.org/bacoorteam/keyring-chatbot-agent-sdk/issues)
|