@sveda-ai/react 0.3.3 → 0.3.4

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 CHANGED
@@ -5,6 +5,8 @@ React SDK for Sveda — `<SvedaChat>`, hooks, and the default UI theme.
5
5
  - Site: [sveda.dev](https://sveda.dev)
6
6
  - Docs: [sveda.dev/docs/chat-ui/react](https://sveda.dev/docs/chat-ui/react)
7
7
 
8
+ Powers the AI assistant in [Sveda LMS](https://www.svedalms.ru), a learning management system for corporate training.
9
+
8
10
  ```bash
9
11
  npm install @sveda-ai/react
10
12
  ```
@@ -31,7 +31,7 @@ export declare function useSvedaStreaming(store: SvedaStreamingStore, scrollToBo
31
31
  }) => void, options?: SvedaStreamingOptions): {
32
32
  sendMessage: (userPayload: SvedaSendPayload, pageContext?: Record<string, unknown>) => Promise<void>;
33
33
  continueAfterMaxSteps: (pageContext?: Record<string, unknown>) => Promise<void>;
34
- resolveToolConfirmation: (toolCallId: string, decision: "approve" | "deny", pageContext?: Record<string, unknown>) => Promise<void>;
34
+ resolveToolConfirmation: (toolCallId: string, decision: import("@sveda-ai/core").SvedaToolConfirmationDecision, pageContext?: Record<string, unknown>) => Promise<void>;
35
35
  isStreaming: boolean;
36
36
  isThinking: boolean;
37
37
  thinkingMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveda-ai/react",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "React chat UI to embed a Sveda AI agent. https://sveda.dev/docs/chat-ui/react",
@@ -10,14 +10,18 @@
10
10
  "agent",
11
11
  "copilot",
12
12
  "react",
13
- "chat"
13
+ "chat",
14
+ "lms",
15
+ "svedalms",
16
+ "sveda-lms",
17
+ "e-learning"
14
18
  ],
15
19
  "repository": {
16
20
  "type": "git",
17
21
  "url": "git+https://github.com/neresson/sveda.git",
18
22
  "directory": "packages/react"
19
23
  },
20
- "homepage": "https://sveda.dev/docs/chat-ui/react",
24
+ "homepage": "https://www.svedalms.ru",
21
25
  "main": "./dist/index.js",
22
26
  "types": "./dist/index.d.ts",
23
27
  "exports": {
@@ -42,9 +46,9 @@
42
46
  "lucide-react": "^0.468.0",
43
47
  "marked": "^17.0.2",
44
48
  "tailwind-merge": "^2.6.0",
45
- "@sveda-ai/chat": "0.3.3",
46
- "@sveda-ai/core": "0.3.2",
47
- "@sveda-ai/protocol": "0.3.2"
49
+ "@sveda-ai/chat": "0.3.4",
50
+ "@sveda-ai/core": "0.3.3",
51
+ "@sveda-ai/protocol": "0.3.3"
48
52
  },
49
53
  "peerDependencies": {
50
54
  "react": "^18 || ^19",