keyring-chatbot-agent-sdk-test 1.0.37 → 1.0.40
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/chat-widget.es.js +40 -40
- package/dist/chat-widget.umd.js +2 -2
- package/dist/lib.d.ts +36 -28
- package/package.json +3 -2
package/dist/lib.d.ts
CHANGED
|
@@ -164,21 +164,29 @@ declare const _default: {
|
|
|
164
164
|
"walletConnectedChainUnsupported": "Your wallet is connected but the chain is not supported for trading. Please switch to a supported chain to see trending tokens.",
|
|
165
165
|
"walletNotConnected": "Please connect your wallet to see trending tokens.",
|
|
166
166
|
"actionProcessing": "⏳ Processing transaction...",
|
|
167
|
-
"actionSuccess": "
|
|
167
|
+
"actionSuccess": "Transaction completed",
|
|
168
168
|
"actionFail": "❌ Action cancelled or failed",
|
|
169
169
|
"txSubmitted": "⏳ Transaction submitted. Waiting for confirmation...",
|
|
170
|
-
"txConfirmed": "
|
|
170
|
+
"txConfirmed": "Transaction confirmed!",
|
|
171
171
|
"txReverted": "❌ Transaction reverted on-chain.",
|
|
172
|
-
"txTimeout": "
|
|
173
|
-
"txSuccessful": "
|
|
172
|
+
"txTimeout": "Transaction submitted but confirmation timed out. Please check manually.",
|
|
173
|
+
"txSuccessful": "Transaction successful!",
|
|
174
174
|
"txFailed": "❌ Transaction failed. Please try again.",
|
|
175
|
-
"txNoHandler": "
|
|
176
|
-
"txInsufficientGas": "
|
|
175
|
+
"txNoHandler": "No transaction handler configured.",
|
|
176
|
+
"txInsufficientGas": "**Insufficient {symbol} for gas!** You have {balance} {symbol} but need ~{fee} {symbol} for the transaction fee. Please top up your wallet and try again.",
|
|
177
177
|
"txError": "❌ Error: {message}",
|
|
178
|
+
"txErrRecipientRequired": "Recipient address is required.",
|
|
179
|
+
"txErrAmountRequired": "Amount is required.",
|
|
180
|
+
"txErrTokenContractRequired": "Token contract address is required.",
|
|
181
|
+
"txErrSpenderRequired": "Spender address is required.",
|
|
182
|
+
"txErrNftContractRequired": "NFT contract address is required.",
|
|
183
|
+
"txErrTokenIdRequired": "Token ID is required.",
|
|
184
|
+
"txErrWrapUnsupported": "Wrapped native token is not supported on chain {chainId}.",
|
|
185
|
+
"txErrUnsupportedAction": "Action \"{action}\" is not a supported transaction action.",
|
|
178
186
|
"swapConfirmButton": "Confirm",
|
|
179
187
|
"swapConfirmValue": "Confirm swap",
|
|
180
188
|
"swapReadyToProceed": "Ready to proceed with the swap?",
|
|
181
|
-
"swapEstimationError": "
|
|
189
|
+
"swapEstimationError": "Unable to get swap estimation. Error: {error}",
|
|
182
190
|
"formCancel": "Cancel",
|
|
183
191
|
"formExecute": "Execute",
|
|
184
192
|
"formProcessing": "⏳ Processing...",
|
|
@@ -198,39 +206,39 @@ declare const _default: {
|
|
|
198
206
|
"walletFetchError": "Sorry, I encountered an error fetching your wallet balance.",
|
|
199
207
|
"insufficientFeeToken": "Insufficient fee. Please ensure you have enough {symbol} to cover the transaction fees, or select a different token.",
|
|
200
208
|
"selectAmountOf": "Select the amount of {symbol} to use:\n\nSpendable: {balance} {symbol}",
|
|
201
|
-
"swapFeeWarning": "\n
|
|
209
|
+
"swapFeeWarning": "\n**Insufficient {symbol} for fees!**\n You have {balance} {symbol} but need ~{needed} {symbol}.\n",
|
|
202
210
|
"swapNeedApprove": "You need to approve {symbol} first before swapping.",
|
|
203
211
|
"swapApproveButton": "Approve {symbol}",
|
|
204
212
|
"swapApproveValue": "Approve {symbol} for swap",
|
|
205
|
-
"swapNoSourceToken": "
|
|
213
|
+
"swapNoSourceToken": "You don't have the source token in your wallet or balance is 0.",
|
|
206
214
|
"swapSelectAmount": "Swap {from} → {to}\n\nSelect the amount of {from} to swap:\n\nSpendable: {balance} {from}",
|
|
207
|
-
"swapApprovalRequired": "
|
|
208
|
-
"swapEstimationFailed": "
|
|
209
|
-
"swapInsufficientNativeBalance": "
|
|
210
|
-
"swapTokenNotInWallet": "
|
|
211
|
-
"swapInsufficientTokenBalance": "
|
|
215
|
+
"swapApprovalRequired": "Token approval required before swapping.\n\nStep 1: Approve {symbol}\nStep 2: Confirm Swap",
|
|
216
|
+
"swapEstimationFailed": "Failed to get swap estimation. Please try again.",
|
|
217
|
+
"swapInsufficientNativeBalance": "Insufficient balance! You have {balance} {symbol} but need {amount} {symbol}. Please top up your wallet or reduce the amount.",
|
|
218
|
+
"swapTokenNotInWallet": "You don't have {symbol} in your wallet. Please acquire some first before swapping.",
|
|
219
|
+
"swapInsufficientTokenBalance": "Insufficient balance! You have {balance} {symbol} but need {amount} {symbol}. Please reduce the amount or add more tokens.",
|
|
212
220
|
"selectAmountToSwap": "Select the amount of {symbol} to swap:\n\nSpendable: {balance} {symbol}",
|
|
213
|
-
"couldNotLoadTokenList": "
|
|
221
|
+
"couldNotLoadTokenList": "Could not load token list. Please specify the destination token.",
|
|
214
222
|
"trendingTokensForReceive": "📈 Trending tokens on {chain} chain. Pick the token you want to receive or type the token you want to receive:",
|
|
215
223
|
"txProcessing": "⏳ Transaction processing... Please confirm in your wallet.",
|
|
216
|
-
"txConfirmedSwap": "
|
|
224
|
+
"txConfirmedSwap": "Transaction confirmed! Your swap has been completed.",
|
|
217
225
|
"txRevertedSwap": "❌ Transaction reverted on-chain. Please try again.",
|
|
218
|
-
"txSuccessfulSwap": "
|
|
219
|
-
"txSuccessfulSendToken": "
|
|
220
|
-
"txSuccessfulSendNative": "
|
|
221
|
-
"txSuccessfulSendNft": "
|
|
222
|
-
"txSuccessfulWrapNative": "
|
|
223
|
-
"txSuccessfulUnwrapNative": "
|
|
224
|
-
"txDataNotAvailable": "
|
|
225
|
-
"approvalDataNotAvailable": "
|
|
226
|
+
"txSuccessfulSwap": "Transaction successful! Your swap has been completed.",
|
|
227
|
+
"txSuccessfulSendToken": "Sent successfully **{amount} {symbol}** to {to}",
|
|
228
|
+
"txSuccessfulSendNative": "Sent successfully **{amount} {symbol}** to {to}",
|
|
229
|
+
"txSuccessfulSendNft": "Sent successfully NFT **{name}** (#{tokenId}) to {to}",
|
|
230
|
+
"txSuccessfulWrapNative": "Wrapped successfully **{amount} {from}** → **{to}**",
|
|
231
|
+
"txSuccessfulUnwrapNative": "Unwrapped successfully **{amount} {from}** → **{to}**",
|
|
232
|
+
"txDataNotAvailable": "Transaction data not available.",
|
|
233
|
+
"approvalDataNotAvailable": "Approval data not available.",
|
|
226
234
|
"approving": "Approving {symbol}... Please confirm in your wallet.",
|
|
227
|
-
"approvalSuccess": "
|
|
235
|
+
"approvalSuccess": "{symbol} approved successfully!",
|
|
228
236
|
"approvalConfirmSwap": "Now you can execute the swap.",
|
|
229
237
|
"confirmSwapButton": "Confirm Swap",
|
|
230
238
|
"approvalFailed": "❌ Approval failed. Please try again.",
|
|
231
|
-
"couldNotFetchBalance": "
|
|
232
|
-
"couldNotLoadBalance": "
|
|
233
|
-
"couldNotFetchBalanceRetry": "
|
|
239
|
+
"couldNotFetchBalance": "Could not fetch your wallet balance.",
|
|
240
|
+
"couldNotLoadBalance": "Could not load balance. Please try again.",
|
|
241
|
+
"couldNotFetchBalanceRetry": "Could not fetch your balance. Please try again.",
|
|
234
242
|
"nftSendReview": "📤 Send **{name}** ({standard} #{tokenId})\n\nPlease review and fill in the recipient address below:",
|
|
235
243
|
"nftCollectionHeader": "Your NFTs :\n\n{list}",
|
|
236
244
|
"nftMoreItems": "\n\nAnd {count} more NFTs...",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keyring-chatbot-agent-sdk-test",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.40",
|
|
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,11 +46,12 @@
|
|
|
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.
|
|
49
|
+
"keyring-agent-core": "^0.2.10",
|
|
50
50
|
"lodash": "^4.17.23",
|
|
51
51
|
"react-device-detect": "^2.2.3",
|
|
52
52
|
"react-markdown": "^10.1.0",
|
|
53
53
|
"react-syntax-highlighter": "^16.1.0",
|
|
54
|
+
"remark-breaks": "^4.0.0",
|
|
54
55
|
"remark-gfm": "^4.0.1",
|
|
55
56
|
"viem": "^2.45.1"
|
|
56
57
|
},
|