@meridial/react 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/LICENSE +21 -0
- package/README.md +134 -0
- package/dist/chunk-QCWLFL7O.js +4294 -0
- package/dist/chunk-QCWLFL7O.js.map +1 -0
- package/dist/chunk-VDQAVB4N.js +1754 -0
- package/dist/chunk-VDQAVB4N.js.map +1 -0
- package/dist/chunk-WCRZUGN4.js +1933 -0
- package/dist/chunk-WCRZUGN4.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/recorder.d.ts +11 -0
- package/dist/recorder.js +9 -0
- package/dist/recorder.js.map +1 -0
- package/dist/styles.css +6012 -0
- package/dist/voicebox-DCgECemo.d.ts +27 -0
- package/dist/voicebox.d.ts +3 -0
- package/dist/voicebox.js +9 -0
- package/dist/voicebox.js.map +1 -0
- package/package.json +68 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
type VoiceboxToolParams = Record<string, string | number | boolean>;
|
|
5
|
+
interface VoiceboxTool<TParams extends VoiceboxToolParams = VoiceboxToolParams> {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
parameters: z.ZodType<TParams>;
|
|
9
|
+
execute: (params: TParams) => Promise<string>;
|
|
10
|
+
}
|
|
11
|
+
declare function defineTool<TParams extends VoiceboxToolParams>(tool: VoiceboxTool<TParams>): VoiceboxTool<TParams>;
|
|
12
|
+
|
|
13
|
+
interface VoiceboxProps {
|
|
14
|
+
firstMessage?: string;
|
|
15
|
+
instructions?: string;
|
|
16
|
+
baseUrl?: string;
|
|
17
|
+
publishableKey?: string;
|
|
18
|
+
identifier?: string | null;
|
|
19
|
+
tools?: VoiceboxTool[];
|
|
20
|
+
triggerIcon?: React.ReactNode;
|
|
21
|
+
cursor?: React.ReactNode;
|
|
22
|
+
metadata?: Record<string, string>;
|
|
23
|
+
onError?: (error: string) => void;
|
|
24
|
+
}
|
|
25
|
+
declare function Voicebox({ baseUrl, publishableKey, identifier, tools, triggerIcon, cursor, firstMessage, instructions, metadata, onError, }: VoiceboxProps): react_jsx_runtime.JSX.Element | null;
|
|
26
|
+
|
|
27
|
+
export { Voicebox as V, type VoiceboxTool as a, type VoiceboxToolParams as b, defineTool as d };
|
package/dist/voicebox.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@meridial/react",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "React components for embedding the Meridial in-app assistant UI (Voicebox) and workflow recorder UI (Recorder).",
|
|
6
|
+
"author": "Meridial",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"react",
|
|
10
|
+
"meridial",
|
|
11
|
+
"voicebox",
|
|
12
|
+
"recorder"
|
|
13
|
+
],
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@hugeicons/core-free-icons": "^4.0.0",
|
|
16
|
+
"@hugeicons/react": "^1.1.5",
|
|
17
|
+
"@livekit/components-react": "^2.9.20",
|
|
18
|
+
"@neodrag/react": "^2.3.1",
|
|
19
|
+
"livekit-client": "^2.0.0",
|
|
20
|
+
"motion": "^12.35.2",
|
|
21
|
+
"react": "^19.2.4",
|
|
22
|
+
"react-dom": "^19.2.4",
|
|
23
|
+
"zod": "^4.3.6"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@tailwindcss/cli": "^4.2.2",
|
|
27
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
28
|
+
"@turbo/gen": "^2.8.1",
|
|
29
|
+
"@types/node": "^25.1.0",
|
|
30
|
+
"@types/react": "^19.2.10",
|
|
31
|
+
"@types/react-dom": "^19.2.3",
|
|
32
|
+
"tailwindcss": "^4.1.18",
|
|
33
|
+
"tsup": "^8.5.0",
|
|
34
|
+
"typescript": "^5.9.3",
|
|
35
|
+
"@workspace/typescript-config": "0.0.0",
|
|
36
|
+
"@workspace/ui": "0.0.0"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"README.md",
|
|
44
|
+
"package.json",
|
|
45
|
+
"LICENSE"
|
|
46
|
+
],
|
|
47
|
+
"exports": {
|
|
48
|
+
".": {
|
|
49
|
+
"types": "./dist/index.d.ts",
|
|
50
|
+
"default": "./dist/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./recorder": {
|
|
53
|
+
"types": "./dist/recorder.d.ts",
|
|
54
|
+
"default": "./dist/recorder.js"
|
|
55
|
+
},
|
|
56
|
+
"./voicebox": {
|
|
57
|
+
"types": "./dist/voicebox.d.ts",
|
|
58
|
+
"default": "./dist/voicebox.js"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"lint": "biome lint .",
|
|
63
|
+
"format": "biome format --write .",
|
|
64
|
+
"typecheck": "tsc --noEmit",
|
|
65
|
+
"build": "tsup && pnpm exec tailwindcss -i src/styles.css -o dist/styles.css",
|
|
66
|
+
"dev": "tsup --watch"
|
|
67
|
+
}
|
|
68
|
+
}
|