omnix-chat 0.1.0
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/CHANGELOG.md +34 -0
- package/LICENSE +21 -0
- package/README.md +360 -0
- package/dist/es-BoccmK_s.js +457 -0
- package/dist/es-BoccmK_s.js.map +1 -0
- package/dist/favicon.svg +1 -0
- package/dist/logo.svg +1 -0
- package/dist/omnix-chat.es.js +3197 -0
- package/dist/omnix-chat.es.js.map +1 -0
- package/dist/omnix-chat.umd.js +4 -0
- package/dist/omnix-chat.umd.js.map +1 -0
- package/dist/react.es.js +26062 -0
- package/dist/react.es.js.map +1 -0
- package/dist/react.umd.js +593 -0
- package/dist/react.umd.js.map +1 -0
- package/dist/src/chat/ChatRoot.d.ts +9 -0
- package/dist/src/chat/ChatRoot.d.ts.map +1 -0
- package/dist/src/chat/bridge/index.d.ts +2 -0
- package/dist/src/chat/bridge/index.d.ts.map +1 -0
- package/dist/src/chat/bridge/messageBridge.d.ts +8 -0
- package/dist/src/chat/bridge/messageBridge.d.ts.map +1 -0
- package/dist/src/chat/components/AIAssistantBubble.d.ts +13 -0
- package/dist/src/chat/components/AIAssistantBubble.d.ts.map +1 -0
- package/dist/src/chat/components/ErrorBoundary.d.ts +25 -0
- package/dist/src/chat/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/src/chat/components/LauncherSlot.d.ts +8 -0
- package/dist/src/chat/components/LauncherSlot.d.ts.map +1 -0
- package/dist/src/chat/components/LoginForm.d.ts +7 -0
- package/dist/src/chat/components/LoginForm.d.ts.map +1 -0
- package/dist/src/chat/components/PanelHeaderTitle.d.ts +7 -0
- package/dist/src/chat/components/PanelHeaderTitle.d.ts.map +1 -0
- package/dist/src/chat/components/message/BlockExportActions.d.ts +7 -0
- package/dist/src/chat/components/message/BlockExportActions.d.ts.map +1 -0
- package/dist/src/chat/components/message/MessageBlockRenderer.d.ts +6 -0
- package/dist/src/chat/components/message/MessageBlockRenderer.d.ts.map +1 -0
- package/dist/src/chat/components/message/SafeMarkdownHtml.d.ts +11 -0
- package/dist/src/chat/components/message/SafeMarkdownHtml.d.ts.map +1 -0
- package/dist/src/chat/components/message/blockExport.d.ts +5 -0
- package/dist/src/chat/components/message/blockExport.d.ts.map +1 -0
- package/dist/src/chat/components/message/chartBlockUtils.d.ts +10 -0
- package/dist/src/chat/components/message/chartBlockUtils.d.ts.map +1 -0
- package/dist/src/chat/components/message/index.d.ts +4 -0
- package/dist/src/chat/components/message/index.d.ts.map +1 -0
- package/dist/src/chat/components/message/parseMessageBlocks.d.ts +15 -0
- package/dist/src/chat/components/message/parseMessageBlocks.d.ts.map +1 -0
- package/dist/src/chat/components/message/types.d.ts +89 -0
- package/dist/src/chat/components/message/types.d.ts.map +1 -0
- package/dist/src/chat/components/panel/AIAssistantPanel.d.ts +4 -0
- package/dist/src/chat/components/panel/AIAssistantPanel.d.ts.map +1 -0
- package/dist/src/chat/components/panel/AgentSkillBar.d.ts +17 -0
- package/dist/src/chat/components/panel/AgentSkillBar.d.ts.map +1 -0
- package/dist/src/chat/components/panel/BubbleAvatars.d.ts +7 -0
- package/dist/src/chat/components/panel/BubbleAvatars.d.ts.map +1 -0
- package/dist/src/chat/components/panel/ConversationSidebar.d.ts +23 -0
- package/dist/src/chat/components/panel/ConversationSidebar.d.ts.map +1 -0
- package/dist/src/chat/components/panel/DownFeedbackModal.d.ts +18 -0
- package/dist/src/chat/components/panel/DownFeedbackModal.d.ts.map +1 -0
- package/dist/src/chat/components/panel/MessageBody.d.ts +16 -0
- package/dist/src/chat/components/panel/MessageBody.d.ts.map +1 -0
- package/dist/src/chat/components/panel/MessageFeedbackFooter.d.ts +10 -0
- package/dist/src/chat/components/panel/MessageFeedbackFooter.d.ts.map +1 -0
- package/dist/src/chat/components/panel/MessageList.d.ts +13 -0
- package/dist/src/chat/components/panel/MessageList.d.ts.map +1 -0
- package/dist/src/chat/components/panel/PanelModals.d.ts +13 -0
- package/dist/src/chat/components/panel/PanelModals.d.ts.map +1 -0
- package/dist/src/chat/components/panel/PromptsSection.d.ts +11 -0
- package/dist/src/chat/components/panel/PromptsSection.d.ts.map +1 -0
- package/dist/src/chat/components/panel/constants.d.ts +83 -0
- package/dist/src/chat/components/panel/constants.d.ts.map +1 -0
- package/dist/src/chat/components/panel/index.d.ts +3 -0
- package/dist/src/chat/components/panel/index.d.ts.map +1 -0
- package/dist/src/chat/components/panel/types.d.ts +60 -0
- package/dist/src/chat/components/panel/types.d.ts.map +1 -0
- package/dist/src/chat/components/panel/useBubbleItems.d.ts +15 -0
- package/dist/src/chat/components/panel/useBubbleItems.d.ts.map +1 -0
- package/dist/src/chat/components/panel/useBubbleScroll.d.ts +21 -0
- package/dist/src/chat/components/panel/useBubbleScroll.d.ts.map +1 -0
- package/dist/src/chat/components/panel/useConversationSidebarScroll.d.ts +10 -0
- package/dist/src/chat/components/panel/useConversationSidebarScroll.d.ts.map +1 -0
- package/dist/src/chat/components/panel/utils.d.ts +25 -0
- package/dist/src/chat/components/panel/utils.d.ts.map +1 -0
- package/dist/src/chat/config/assistantPrompts.d.ts +9 -0
- package/dist/src/chat/config/assistantPrompts.d.ts.map +1 -0
- package/dist/src/chat/config/globalInteractionCopy.d.ts +19 -0
- package/dist/src/chat/config/globalInteractionCopy.d.ts.map +1 -0
- package/dist/src/chat/config/index.d.ts +2 -0
- package/dist/src/chat/config/index.d.ts.map +1 -0
- package/dist/src/chat/hooks/index.d.ts +4 -0
- package/dist/src/chat/hooks/index.d.ts.map +1 -0
- package/dist/src/chat/hooks/useClientState.d.ts +15 -0
- package/dist/src/chat/hooks/useClientState.d.ts.map +1 -0
- package/dist/src/chat/hooks/useDebouncedSessionPrepare.d.ts +9 -0
- package/dist/src/chat/hooks/useDebouncedSessionPrepare.d.ts.map +1 -0
- package/dist/src/chat/hooks/useLauncherPosition.d.ts +11 -0
- package/dist/src/chat/hooks/useLauncherPosition.d.ts.map +1 -0
- package/dist/src/chat/i18n.d.ts +11 -0
- package/dist/src/chat/i18n.d.ts.map +1 -0
- package/dist/src/chat/styles/host-styles.d.ts +10 -0
- package/dist/src/chat/styles/host-styles.d.ts.map +1 -0
- package/dist/src/chat/styles/inject.d.ts +4 -0
- package/dist/src/chat/styles/inject.d.ts.map +1 -0
- package/dist/src/chat/types.d.ts +56 -0
- package/dist/src/chat/types.d.ts.map +1 -0
- package/dist/src/chat/utils.d.ts +3 -0
- package/dist/src/chat/utils.d.ts.map +1 -0
- package/dist/src/core/api-envelope.d.ts +6 -0
- package/dist/src/core/api-envelope.d.ts.map +1 -0
- package/dist/src/core/auth-headers.d.ts +19 -0
- package/dist/src/core/auth-headers.d.ts.map +1 -0
- package/dist/src/core/auth-response.d.ts +9 -0
- package/dist/src/core/auth-response.d.ts.map +1 -0
- package/dist/src/core/auth-store.d.ts +23 -0
- package/dist/src/core/auth-store.d.ts.map +1 -0
- package/dist/src/core/auth-types.d.ts +26 -0
- package/dist/src/core/auth-types.d.ts.map +1 -0
- package/dist/src/core/auth.d.ts +25 -0
- package/dist/src/core/auth.d.ts.map +1 -0
- package/dist/src/core/chat-response.d.ts +66 -0
- package/dist/src/core/chat-response.d.ts.map +1 -0
- package/dist/src/core/chat-sse.d.ts +66 -0
- package/dist/src/core/chat-sse.d.ts.map +1 -0
- package/dist/src/core/errors.d.ts +16 -0
- package/dist/src/core/errors.d.ts.map +1 -0
- package/dist/src/core/events.d.ts +19 -0
- package/dist/src/core/events.d.ts.map +1 -0
- package/dist/src/core/feedback-utils.d.ts +9 -0
- package/dist/src/core/feedback-utils.d.ts.map +1 -0
- package/dist/src/core/http/client.d.ts +3 -0
- package/dist/src/core/http/client.d.ts.map +1 -0
- package/dist/src/core/http/errors.d.ts +6 -0
- package/dist/src/core/http/errors.d.ts.map +1 -0
- package/dist/src/core/http/index.d.ts +3 -0
- package/dist/src/core/http/index.d.ts.map +1 -0
- package/dist/src/core/http/sse.d.ts +5 -0
- package/dist/src/core/http/sse.d.ts.map +1 -0
- package/dist/src/core/http/types.d.ts +30 -0
- package/dist/src/core/http/types.d.ts.map +1 -0
- package/dist/src/core/instance.d.ts +135 -0
- package/dist/src/core/instance.d.ts.map +1 -0
- package/dist/src/core/message-blocks.d.ts +25 -0
- package/dist/src/core/message-blocks.d.ts.map +1 -0
- package/dist/src/core/resolve.d.ts +5 -0
- package/dist/src/core/resolve.d.ts.map +1 -0
- package/dist/src/core/services/agent.service.d.ts +18 -0
- package/dist/src/core/services/agent.service.d.ts.map +1 -0
- package/dist/src/core/services/auth.service.d.ts +14 -0
- package/dist/src/core/services/auth.service.d.ts.map +1 -0
- package/dist/src/core/services/chat.service.d.ts +28 -0
- package/dist/src/core/services/chat.service.d.ts.map +1 -0
- package/dist/src/core/services/feedback.service.d.ts +15 -0
- package/dist/src/core/services/feedback.service.d.ts.map +1 -0
- package/dist/src/core/services/index.d.ts +5 -0
- package/dist/src/core/services/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +15 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/react/AgentChat.d.ts +25 -0
- package/dist/src/react/AgentChat.d.ts.map +1 -0
- package/dist/src/react/AgentChatEmbedded.d.ts +12 -0
- package/dist/src/react/AgentChatEmbedded.d.ts.map +1 -0
- package/dist/src/react/AgentChatProvider.d.ts +15 -0
- package/dist/src/react/AgentChatProvider.d.ts.map +1 -0
- package/dist/src/react/context.d.ts +4 -0
- package/dist/src/react/context.d.ts.map +1 -0
- package/dist/src/react/index.d.ts +11 -0
- package/dist/src/react/index.d.ts.map +1 -0
- package/dist/src/react/useAgentChat.d.ts +36 -0
- package/dist/src/react/useAgentChat.d.ts.map +1 -0
- package/dist/src/types.d.ts +337 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/utils/id.d.ts +7 -0
- package/dist/src/utils/id.d.ts.map +1 -0
- package/dist/src/utils/sdk-version.d.ts +9 -0
- package/dist/src/utils/sdk-version.d.ts.map +1 -0
- package/dist/xlsx-CXTDRHcz.js +12389 -0
- package/dist/xlsx-CXTDRHcz.js.map +1 -0
- package/package.json +115 -0
package/package.json
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "omnix-chat",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Embeddable Agent chat SDK for the browser. Configure with a DSN and drop a chat widget into any web page.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"chat",
|
|
8
|
+
"agent",
|
|
9
|
+
"widget",
|
|
10
|
+
"sdk",
|
|
11
|
+
"react",
|
|
12
|
+
"antd",
|
|
13
|
+
"sse",
|
|
14
|
+
"embeddable"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "./dist/omnix-chat.umd.js",
|
|
18
|
+
"module": "./dist/omnix-chat.es.js",
|
|
19
|
+
"types": "./dist/src/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./dist/src/index.d.ts",
|
|
23
|
+
"import": "./dist/omnix-chat.es.js",
|
|
24
|
+
"require": "./dist/omnix-chat.umd.js"
|
|
25
|
+
},
|
|
26
|
+
"./react": {
|
|
27
|
+
"types": "./dist/src/react/index.d.ts",
|
|
28
|
+
"import": "./dist/react.es.js",
|
|
29
|
+
"require": "./dist/react.umd.js"
|
|
30
|
+
},
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md",
|
|
36
|
+
"CHANGELOG.md",
|
|
37
|
+
"LICENSE"
|
|
38
|
+
],
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"sideEffects": [
|
|
43
|
+
"src/chat/styles/inject.ts",
|
|
44
|
+
"**/*.css"
|
|
45
|
+
],
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=20",
|
|
48
|
+
"pnpm": ">=8"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"dev": "vite --config vite.config.demo.ts",
|
|
52
|
+
"build": "vite build && vite build --config vite.config.react.ts",
|
|
53
|
+
"prepublishOnly": "pnpm typecheck && pnpm build",
|
|
54
|
+
"build:demo": "vite build --config vite.config.demo.ts",
|
|
55
|
+
"preview": "vite preview --config vite.config.demo.ts",
|
|
56
|
+
"typecheck": "tsc -p tsconfig.app.json --noEmit",
|
|
57
|
+
"lint": "eslint .",
|
|
58
|
+
"size": "node scripts/size.mjs"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"@ant-design/cssinjs": ">=2",
|
|
62
|
+
"@ant-design/icons": ">=5",
|
|
63
|
+
"@ant-design/x": ">=2 <3",
|
|
64
|
+
"antd": ">=6",
|
|
65
|
+
"react": ">=18 <20",
|
|
66
|
+
"react-dom": ">=18 <20"
|
|
67
|
+
},
|
|
68
|
+
"peerDependenciesMeta": {
|
|
69
|
+
"react": {
|
|
70
|
+
"optional": true
|
|
71
|
+
},
|
|
72
|
+
"react-dom": {
|
|
73
|
+
"optional": true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"eventsource-parser": "^3.0.0",
|
|
78
|
+
"html-to-image": "^1.11.13",
|
|
79
|
+
"ky": "^2.0.2",
|
|
80
|
+
"xlsx": "^0.18.5",
|
|
81
|
+
"zustand": "^5.0.5"
|
|
82
|
+
},
|
|
83
|
+
"pnpm": {
|
|
84
|
+
"overrides": {
|
|
85
|
+
"@ant-design/cssinjs": "^2.1.2"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"devDependencies": {
|
|
89
|
+
"@ant-design/cssinjs": "^2.1.2",
|
|
90
|
+
"@ant-design/icons": "^5.6.1",
|
|
91
|
+
"@ant-design/x": "^2.7.0",
|
|
92
|
+
"@ant-design/x-markdown": "^2.7.0",
|
|
93
|
+
"@eslint/js": "^10.0.1",
|
|
94
|
+
"@types/dompurify": "^3.2.0",
|
|
95
|
+
"@types/node": "^24.12.2",
|
|
96
|
+
"@types/react": "^19.2.14",
|
|
97
|
+
"@types/react-dom": "^19.2.3",
|
|
98
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
99
|
+
"antd": "^6.4.3",
|
|
100
|
+
"dayjs": "^1.11.20",
|
|
101
|
+
"dompurify": "^3.4.5",
|
|
102
|
+
"eslint": "^10.2.1",
|
|
103
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
104
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
105
|
+
"globals": "^17.5.0",
|
|
106
|
+
"marked": "^18.0.4",
|
|
107
|
+
"react": "^19.2.5",
|
|
108
|
+
"react-dom": "^19.2.5",
|
|
109
|
+
"recharts": "^3.8.1",
|
|
110
|
+
"typescript": "~6.0.2",
|
|
111
|
+
"typescript-eslint": "^8.58.2",
|
|
112
|
+
"vite": "^8.0.10",
|
|
113
|
+
"vite-plugin-dts": "^4.5.4"
|
|
114
|
+
}
|
|
115
|
+
}
|