uneeq-js 3.0.16-preview.9 → 3.0.16-preview.90
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 +4 -0
- package/dist/constants/reconnection-ui-style.d.ts +1 -0
- package/dist/constants/video-container-style.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -636
- package/dist/lib/logger.d.ts +6 -6
- package/dist/session-transfer-manager.d.ts +10 -0
- package/dist/session-transfer-manager.spec.d.ts +1 -0
- package/dist/session.d.ts +15 -2
- package/dist/signaling.d.ts +33 -6
- package/dist/signaling.spec.d.ts +1 -0
- package/dist/speech-recognition.d.ts +22 -9
- package/dist/types/PromptMetadata.d.ts +10 -0
- package/dist/types/PromptRequest.d.ts +4 -0
- package/dist/types/PromptResult.d.ts +14 -0
- package/dist/types/SessionEnded.d.ts +10 -0
- package/dist/types/SignalingEvents.d.ts +20 -5
- package/dist/types/SpeechEvent.d.ts +6 -0
- package/dist/types/SpeechHandlerOptions.d.ts +11 -4
- package/dist/types/SpeechRecognitionStartMessage.d.ts +2 -1
- package/dist/types/UneeqConfig.d.ts +26 -4
- package/dist/types/UneeqMessages.d.ts +117 -50
- package/dist/types/dhop-messages.d.ts +5 -0
- package/dist/uneeq.d.ts +10 -7
- package/dist/webrtc-data-channel/DataChannelAction.d.ts +6 -1
- package/dist/webrtc-data-channel/DataChannelActionType.d.ts +3 -1
- package/dist/webrtc-data-channel/DataChannelResponse.d.ts +11 -0
- package/dist/webrtc-data-channel/messages/CameraAnchor.d.ts +18 -3
- package/dist/webrtc-data-channel/messages/ChatPrompt.d.ts +7 -1
- package/dist/webrtc-data-channel/messages/{SpeakRequest.d.ts → Speak.d.ts} +4 -0
- package/dist/webrtc-data-channel/messages/StopSpeaking.d.ts +8 -0
- package/dist/webrtc-data-channel/messages/UserSpeaking.d.ts +15 -0
- package/package.json +5 -3
- package/dist/lib/api/api.d.ts +0 -6
- package/dist/types/CreateSessionResponse.d.ts +0 -4
- package/dist/webrtc-data-channel/ChatPrompt.d.ts +0 -7
- package/dist/webrtc-data-channel/SpeakRequest.d.ts +0 -7
package/README.md
CHANGED
|
@@ -8,11 +8,15 @@ This project is a web npm package used to connect to Uneeq's Digital Human Orche
|
|
|
8
8
|
#### Start:
|
|
9
9
|
`npm start`
|
|
10
10
|
|
|
11
|
+
#### Run Tests:
|
|
12
|
+
`npm test`
|
|
13
|
+
|
|
11
14
|
#### Local testing
|
|
12
15
|
|
|
13
16
|
See [./example/README.md](./example/README.md)
|
|
14
17
|
|
|
15
18
|
#### Lint
|
|
19
|
+
|
|
16
20
|
Eslint is used in this project and can be run with `npm run lint`. You may find it easier to install VSCode plugin `eslint` to see lint errors in editor. Additionally adding the following option to the plugin settings will fix errors on save:
|
|
17
21
|
|
|
18
22
|
`"editor.codeActionsOnSave": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RECONNECTION_UI_STYLE = "\n <style>\n .reconnection-ui.hide { display: none; }\n .reconnection-ui {\n z-index: 99;\n position: fixed;\n inset: 0;\n color: white;\n font-size: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .reconnection-ui::before {\n content: '';\n position: absolute;\n inset: 0;\n background: inherit;\n filter: blur(10px);\n z-index: -1;\n }\n .text-container {\n position: relative;\n z-index: 1;\n 2px 2px 15px black\n }\n </style>\n ";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VIDEO_CONTAINER_STYLE = "\n <style>\n .uneeqVideoContainerElement {\n position: relative;\n }\n .uneeqVideoContainerElement video {\n object-fit: cover !important;\n pointer-events: none !important;\n }\n .uneeqVideoContainerElement video.blur {\n opacity: 0;\n animation: fadeInBlur 1000ms forwards;\n }\n\n @keyframes fadeInBlur {\n 0% {\n opacity: 0;\n filter: blur(10px);\n }\n 100% {\n opacity: 1;\n filter: blur(0);\n }\n }\n </style>\n ";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export type { UneeqConfig } from './types/UneeqConfig';
|
|
2
2
|
export * from './types/UneeqMessages';
|
|
3
3
|
export { Uneeq } from './uneeq';
|
|
4
|
+
export type { SpeechTranscriptionResult } from './types/SpeechTranscriptionResult';
|
|
5
|
+
export { CameraAnchorDistance, CameraAnchorHorizontal } from './webrtc-data-channel/messages/CameraAnchor';
|
|
6
|
+
export { LogLevel } from './types/LogLevel';
|