@1interface/voice-shell 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.
@@ -0,0 +1,27 @@
1
+ import { AudioPlatform } from '@1interface/voice-core';
2
+ import { default as default_2 } from 'react';
3
+ import { Provider } from 'react';
4
+ import { ReactNode } from 'react';
5
+ import { VoiceChatBridge } from '@1interface/voice-core';
6
+ import { VoiceUIContextValue } from '@1interface/voice-core';
7
+
8
+ export declare const AudioPlatformProvider: default_2.FC<AudioPlatformProviderProps>;
9
+
10
+ declare interface AudioPlatformProviderProps {
11
+ value?: AudioPlatform;
12
+ children: ReactNode;
13
+ }
14
+
15
+ export declare const VoiceProvider: default_2.FC<VoiceProviderProps>;
16
+
17
+ declare interface VoiceProviderProps {
18
+ conversationId: string | null;
19
+ children: ReactNode;
20
+ voiceBridge: VoiceChatBridge;
21
+ assistantStartsConversation: boolean;
22
+ audioPlatform?: AudioPlatform;
23
+ }
24
+
25
+ export declare const VoiceUIProvider: Provider<VoiceUIContextValue>;
26
+
27
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@1interface/voice-core"),o=({value:o,children:i})=>e.jsx(r.AudioPlatformContext.Provider,{value:o??r.browserAudioPlatform,children:i}),i=({children:o,...i})=>e.jsx(r.VoiceContext.Provider,{value:r.useVoiceProviderValue(i),children:o}),t=r.VoiceUIContext.Provider;exports.AudioPlatformProvider=o,exports.VoiceProvider=({audioPlatform:r,...t})=>e.jsx(o,{value:r,children:e.jsx(i,{...t})}),exports.VoiceUIProvider=t;
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{AudioPlatformContext as e,browserAudioPlatform as i,VoiceContext as o,useVoiceProviderValue as c,VoiceUIContext as l}from"@1interface/voice-core";const d=({value:o,children:c})=>r(e.Provider,{value:o??i,children:c}),a=({children:e,...i})=>r(o.Provider,{value:c(i),children:e}),n=({audioPlatform:e,...i})=>r(d,{value:e,children:r(a,{...i})}),t=l.Provider;export{d as AudioPlatformProvider,n as VoiceProvider,t as VoiceUIProvider};
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@1interface/voice-shell",
3
+ "version": "0.1.0",
4
+ "license": "UNLICENSED",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.mjs",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.mjs",
14
+ "require": "./dist/index.js"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/aiatcore/1interface-chat.git",
23
+ "directory": "packages/voice-shell"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "dependencies": {
29
+ "@1interface/shared-core": "^0.1.0",
30
+ "@1interface/voice-core": "^0.1.0"
31
+ },
32
+ "peerDependencies": {
33
+ "@reduxjs/toolkit": "^2.0.0",
34
+ "react": "^18.0.0 || ^19.0.0",
35
+ "react-dom": "^18.0.0 || ^19.0.0",
36
+ "react-redux": "^9.0.0"
37
+ },
38
+ "devDependencies": {
39
+ "@rollup/plugin-terser": "^1.0.0",
40
+ "@testing-library/jest-dom": "^6.9.1",
41
+ "@testing-library/react": "^16.3.2",
42
+ "@types/node": "^24.12.4",
43
+ "@types/react": "^19.2.15",
44
+ "@types/react-dom": "^19.2.3",
45
+ "@vitejs/plugin-react": "5.1.1",
46
+ "@vitest/ui": "4.1.0",
47
+ "jsdom": "^27.4.0",
48
+ "terser": "5.46.1",
49
+ "typescript": "~5.9.3",
50
+ "vite": "7.3.2",
51
+ "vite-plugin-dts": "^4.5.4",
52
+ "vitest": "4.1.0"
53
+ },
54
+ "scripts": {
55
+ "build": "vite build",
56
+ "dev": "vite build --watch",
57
+ "test": "vitest",
58
+ "test:ui": "vitest --ui",
59
+ "postinstall": "rm -rf node_modules/react node_modules/react-dom 2>/dev/null || true"
60
+ }
61
+ }