@kweaver-ai/chatkit 0.1.1 → 0.1.2
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 +3 -3
- package/dist/chatkit.cjs.js +377 -22
- package/dist/chatkit.es.js +72448 -2015
- package/dist/components/base/ChatKitBase.d.ts +17 -2
- package/dist/components/base/assistant/AssistantBase.d.ts +47 -4
- package/dist/components/base/assistant/ConversationHistory.d.ts +26 -0
- package/dist/components/base/assistant/MessageItem.d.ts +2 -0
- package/dist/components/base/assistant/MessageList.d.ts +2 -0
- package/dist/components/base/assistant/Prologue.d.ts +2 -0
- package/dist/components/base/assistant/blocks/CodeViewTool/CodeViewTool.d.ts +22 -0
- package/dist/components/base/assistant/blocks/CodeViewTool/SqlFormatter.d.ts +24 -0
- package/dist/components/base/assistant/blocks/CodeViewTool/index.d.ts +4 -0
- package/dist/components/base/assistant/blocks/Json2PlotBlock/EChartsView.d.ts +25 -0
- package/dist/components/base/assistant/blocks/Json2PlotBlock/Json2PlotContentView.d.ts +21 -0
- package/dist/components/base/assistant/blocks/Json2PlotBlock/Json2PlotModal.d.ts +21 -0
- package/dist/components/base/assistant/blocks/Json2PlotBlock/TableView.d.ts +21 -0
- package/dist/components/base/assistant/blocks/Json2PlotBlock/index.d.ts +9 -0
- package/dist/components/base/assistant/blocks/Json2PlotBlock/utils.d.ts +14 -0
- package/dist/components/base/assistant/blocks/Json2PlotBlock.d.ts +20 -0
- package/dist/components/base/assistant/blocks/MarkdownBlock.d.ts +4 -0
- package/dist/components/base/assistant/blocks/index.d.ts +3 -0
- package/dist/components/base/copilot/MessageItem.d.ts +2 -0
- package/dist/components/base/copilot/MessageList.d.ts +2 -0
- package/dist/components/base/copilot/blocks/MarkdownBlock.d.ts +4 -0
- package/dist/components/dip/DIPBase.d.ts +73 -35
- package/dist/components/icons/AssistantIcon.d.ts +6 -0
- package/dist/components/icons/ColumnIcon.d.ts +6 -0
- package/dist/components/icons/ExpandIcon.d.ts +6 -0
- package/dist/components/icons/JsonPlotIcon.d.ts +6 -0
- package/dist/components/icons/LineIcon.d.ts +6 -0
- package/dist/components/icons/MoreIcon.d.ts +6 -0
- package/dist/components/icons/NewIcon.d.ts +6 -0
- package/dist/components/icons/PieIcon.d.ts +6 -0
- package/dist/components/icons/TableIcon.d.ts +6 -0
- package/dist/components/icons/Text2SqlIcon.d.ts +6 -0
- package/dist/components/icons/index.d.ts +10 -0
- package/dist/types/index.d.ts +86 -3
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -109,7 +109,7 @@ npm run build
|
|
|
109
109
|
|
|
110
110
|
```tsx
|
|
111
111
|
import React, { useRef } from 'react';
|
|
112
|
-
import { ChatKitCoze } from '@
|
|
112
|
+
import { ChatKitCoze } from '@kweaver-ai/chatkit';
|
|
113
113
|
|
|
114
114
|
function App() {
|
|
115
115
|
const chatKitRef = useRef<ChatKitCoze>(null);
|
|
@@ -156,7 +156,7 @@ function App() {
|
|
|
156
156
|
|
|
157
157
|
```tsx
|
|
158
158
|
import React, { useRef, useState } from 'react';
|
|
159
|
-
import { Copilot, type ApplicationContext } from '@
|
|
159
|
+
import { Copilot, type ApplicationContext } from '@kweaver-ai/chatkit';
|
|
160
160
|
|
|
161
161
|
function App() {
|
|
162
162
|
const [showChat, setShowChat] = useState(false);
|
|
@@ -221,7 +221,7 @@ function App() {
|
|
|
221
221
|
|
|
222
222
|
```tsx
|
|
223
223
|
import React, { useRef } from 'react';
|
|
224
|
-
import { Assistant, type ConversationHistory } from '@
|
|
224
|
+
import { Assistant, type ConversationHistory } from '@kweaver-ai/chatkit';
|
|
225
225
|
|
|
226
226
|
function App() {
|
|
227
227
|
const chatKitRef = useRef<Assistant>(null);
|