@camunda/copilot-chat 0.0.0-alpha2 → 0.0.0-alpha3
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/CopilotChat.d.ts +8 -4
- package/dist/CopilotChat.d.ts.map +1 -1
- package/dist/components/ChatInput/ChatInput.d.ts +9 -0
- package/dist/components/ChatInput/ChatInput.d.ts.map +1 -0
- package/dist/components/ChatInput/index.d.ts +2 -0
- package/dist/components/ChatInput/index.d.ts.map +1 -0
- package/dist/components/ChatMessage/ChatMessage.d.ts +7 -0
- package/dist/components/ChatMessage/ChatMessage.d.ts.map +1 -0
- package/dist/components/ChatMessage/index.d.ts +2 -0
- package/dist/components/ChatMessage/index.d.ts.map +1 -0
- package/dist/components/ChatMessageList/ChatMessageList.d.ts +9 -0
- package/dist/components/ChatMessageList/ChatMessageList.d.ts.map +1 -0
- package/dist/components/ChatMessageList/index.d.ts +2 -0
- package/dist/components/ChatMessageList/index.d.ts.map +1 -0
- package/dist/components/CopilotHeader.d.ts +6 -0
- package/dist/components/CopilotHeader.d.ts.map +1 -0
- package/dist/components/CopilotLauncher.d.ts +2 -3
- package/dist/components/CopilotLauncher.d.ts.map +1 -1
- package/dist/components/CopilotStopButton.d.ts +7 -0
- package/dist/components/CopilotStopButton.d.ts.map +1 -0
- package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts +6 -0
- package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
- package/dist/components/MarkdownRenderer/index.d.ts +2 -0
- package/dist/components/MarkdownRenderer/index.d.ts.map +1 -0
- package/dist/constants/theme.d.ts +79 -0
- package/dist/constants/theme.d.ts.map +1 -0
- package/dist/index.css +29536 -82
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26712 -81
- package/dist/package.json +6 -4
- package/dist/store/chatStore.d.ts +19 -0
- package/dist/store/chatStore.d.ts.map +1 -0
- package/dist/store/index.d.ts +2 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/test-setup.d.ts +1 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/types/chatTypes.d.ts +22 -0
- package/dist/types/chatTypes.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +5 -3
- package/dist/jsx-runtime.d.ts +0 -7
- package/dist/jsx-runtime.d.ts.map +0 -1
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/copilot-chat",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-alpha3",
|
|
4
4
|
"description": "Camunda Copilot Client Library - React components and utilities for Camunda Platform 8",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "https://github.com/camunda/camunda-copilot-client.git",
|
|
28
|
+
"url": "git+https://github.com/camunda/camunda-copilot-client.git",
|
|
29
29
|
"directory": "packages/copilot-chat"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
@@ -44,8 +44,10 @@
|
|
|
44
44
|
"npm": ">=9.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@carbon/
|
|
48
|
-
"@carbon/
|
|
47
|
+
"@carbon/react": "1.95.0",
|
|
48
|
+
"@carbon/styles": "^1.68.0",
|
|
49
|
+
"react-markdown": "^9.0.1",
|
|
50
|
+
"zustand": "^5.0.2"
|
|
49
51
|
},
|
|
50
52
|
"peerDependencies": {
|
|
51
53
|
"react": ">=18.0.0 <20.0.0",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ChatMessage, MessageStatus } from '../types';
|
|
2
|
+
interface ChatState {
|
|
3
|
+
readonly messages: readonly ChatMessage[];
|
|
4
|
+
readonly isStreaming: boolean;
|
|
5
|
+
readonly streamingMessageId: string | null;
|
|
6
|
+
}
|
|
7
|
+
interface ChatActions {
|
|
8
|
+
readonly addUserMessage: (content: string) => string;
|
|
9
|
+
readonly addAssistantMessage: (id: string) => void;
|
|
10
|
+
readonly appendToMessage: (id: string, content: string) => void;
|
|
11
|
+
readonly setMessageContent: (id: string, content: string) => void;
|
|
12
|
+
readonly updateMessageStatus: (id: string, status: MessageStatus) => void;
|
|
13
|
+
readonly setStreaming: (isStreaming: boolean, messageId?: string | null) => void;
|
|
14
|
+
readonly clearMessages: () => void;
|
|
15
|
+
}
|
|
16
|
+
type ChatStore = ChatState & ChatActions;
|
|
17
|
+
export declare const useChatStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ChatStore>>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=chatStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatStore.d.ts","sourceRoot":"","sources":["../../src/store/chatStore.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE3D,UAAU,SAAS;IACjB,QAAQ,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IAC1C,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5C;AAED,UAAU,WAAW;IACnB,QAAQ,CAAC,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IACrD,QAAQ,CAAC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,QAAQ,CAAC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1E,QAAQ,CAAC,YAAY,EAAE,CACrB,WAAW,EAAE,OAAO,EACpB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,KACtB,IAAI,CAAC;IACV,QAAQ,CAAC,aAAa,EAAE,MAAM,IAAI,CAAC;CACpC;AAED,KAAK,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAKzC,eAAO,MAAM,YAAY,wEAiFtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=test-setup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-setup.d.ts","sourceRoot":"","sources":["../src/test-setup.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type MessageRole = 'user' | 'assistant';
|
|
2
|
+
export type MessageStatus = 'pending' | 'streaming' | 'complete' | 'error';
|
|
3
|
+
export interface ChatMessage {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly role: MessageRole;
|
|
6
|
+
readonly content: string;
|
|
7
|
+
readonly status: MessageStatus;
|
|
8
|
+
readonly timestamp: number;
|
|
9
|
+
}
|
|
10
|
+
export interface StreamChunk {
|
|
11
|
+
readonly type: 'chunk';
|
|
12
|
+
readonly content: string;
|
|
13
|
+
readonly itemId: string;
|
|
14
|
+
readonly responseId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface StreamFinal {
|
|
17
|
+
readonly type: 'final';
|
|
18
|
+
readonly content: string;
|
|
19
|
+
readonly responseId: string;
|
|
20
|
+
}
|
|
21
|
+
export type StreamEvent = StreamChunk | StreamFinal;
|
|
22
|
+
//# sourceMappingURL=chatTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatTypes.d.ts","sourceRoot":"","sources":["../../src/types/chatTypes.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,WAAW,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC;AAE3E,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAQA,cAAc,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/copilot-chat",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-alpha3",
|
|
4
4
|
"description": "Camunda Copilot Client Library - React components and utilities for Camunda Platform 8",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -44,8 +44,10 @@
|
|
|
44
44
|
"npm": ">=9.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@carbon/
|
|
48
|
-
"@carbon/
|
|
47
|
+
"@carbon/react": "1.95.0",
|
|
48
|
+
"@carbon/styles": "^1.68.0",
|
|
49
|
+
"react-markdown": "^9.0.1",
|
|
50
|
+
"zustand": "^5.0.2"
|
|
49
51
|
},
|
|
50
52
|
"peerDependencies": {
|
|
51
53
|
"react": ">=18.0.0 <20.0.0",
|
package/dist/jsx-runtime.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
declare const jsx: (type: React.ElementType, props: Record<string, unknown> | null | undefined, key?: React.Key) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
3
|
-
declare const jsxs: (type: React.ElementType, props: Record<string, unknown> | null | undefined, key?: React.Key) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
4
|
-
declare const jsxDEV: (type: React.ElementType, props: Record<string, unknown> | null | undefined, key?: React.Key, _isStaticChildren?: boolean, _source?: unknown, _self?: unknown) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
5
|
-
declare const Fragment: React.ExoticComponent<React.FragmentProps>;
|
|
6
|
-
export { jsx, jsxs, jsxDEV, Fragment };
|
|
7
|
-
//# sourceMappingURL=jsx-runtime.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../src/jsx-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,GAAG,GACP,MAAM,KAAK,CAAC,WAAW,EACvB,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EACjD,MAAM,KAAK,CAAC,GAAG,uEACa,CAAC;AAE/B,QAAA,MAAM,IAAI,SALF,KAAK,CAAC,WAAW,SAChB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,QAC3C,KAAK,CAAC,GAAG,uEAGD,CAAC;AAEjB,QAAA,MAAM,MAAM,GACV,MAAM,KAAK,CAAC,WAAW,EACvB,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EACjD,MAAM,KAAK,CAAC,GAAG,EACf,oBAAoB,OAAO,EAC3B,UAAU,OAAO,EACjB,QAAQ,OAAO,uEACa,CAAC;AAE/B,QAAA,MAAM,QAAQ,4CAAiB,CAAC;AAEhC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC"}
|