@bytexbyte/nxtlinq-ai-agent-sdk 1.4.4 → 1.4.6
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/components/context/ChatBotContext.d.ts.map +1 -1
- package/dist/components/context/ChatBotContext.js +79 -45
- package/dist/components/types/ChatBotTypes.d.ts +1 -1
- package/dist/components/types/ChatBotTypes.d.ts.map +1 -1
- package/dist/components/ui/ChatBotUI.d.ts.map +1 -1
- package/dist/components/ui/ChatBotUI.js +7 -1
- package/dist/components/ui/MessageList.d.ts.map +1 -1
- package/dist/components/ui/MessageList.js +21 -8
- package/dist/components/ui/PermissionForm.d.ts.map +1 -1
- package/dist/components/ui/PermissionForm.js +35 -8
- package/dist/core/utils/__tests__/urlUtils.test.d.ts +5 -0
- package/dist/core/utils/__tests__/urlUtils.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/urlUtils.test.js +57 -0
- package/dist/core/utils/urlUtils.d.ts +23 -0
- package/dist/core/utils/urlUtils.d.ts.map +1 -0
- package/dist/core/utils/urlUtils.js +72 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/setupTests.d.ts +2 -0
- package/dist/setupTests.d.ts.map +1 -0
- package/dist/setupTests.js +16 -0
- package/package.json +1 -1
- package/umd/nxtlinq-ai-agent.umd.js +19 -19
package/dist/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export { AI_MODEL_MAP, ALL_AVAILABLE_MODELS, DEFAULT_AI_MODELS } from './compone
|
|
|
16
16
|
export { connectWallet, disconnectWallet, validateToken } from './core/utils/walletUtils';
|
|
17
17
|
export { createAITMetadata, generateAITId, prepareAITCreation } from './core/utils/aitUtils';
|
|
18
18
|
export { createNotification, getNotificationIcon } from './core/utils/notificationUtils';
|
|
19
|
+
export { containsUrls, convertUrlsToLinks, convertUrlsToHtml } from './core/utils/urlUtils';
|
|
19
20
|
// API client
|
|
20
21
|
export { createNxtlinqApi } from './api/nxtlinq-api';
|
|
21
22
|
export { default as useLocalStorage } from './core/lib/useLocalStorage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupTests.d.ts","sourceRoot":"","sources":["../src/setupTests.ts"],"names":[],"mappings":"AACA,OAAO,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Test setup file for Jest
|
|
2
|
+
import '@testing-library/jest-dom';
|
|
3
|
+
// Mock window.open for URL tests
|
|
4
|
+
Object.defineProperty(window, 'open', {
|
|
5
|
+
writable: true,
|
|
6
|
+
value: jest.fn(),
|
|
7
|
+
});
|
|
8
|
+
// Mock console methods to avoid noise in tests
|
|
9
|
+
global.console = {
|
|
10
|
+
...console,
|
|
11
|
+
log: jest.fn(),
|
|
12
|
+
debug: jest.fn(),
|
|
13
|
+
info: jest.fn(),
|
|
14
|
+
warn: jest.fn(),
|
|
15
|
+
error: jest.fn(),
|
|
16
|
+
};
|
package/package.json
CHANGED