uneeq-js 2.47.0 → 2.47.2

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/package.json CHANGED
@@ -1,62 +1,64 @@
1
- {
2
- "name": "uneeq-js",
3
- "version": "2.47.0",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "types": "dist/src/index.d.ts",
7
- "scripts": {
8
- "start": "npx webpack -w",
9
- "test-local": "npx karma start karma.conf.js -logLevel=DEBUG",
10
- "test": "npx karma start --browsers ChromeHeadless --single-run",
11
- "test:windows": "karma start karma.conf.js",
12
- "build": "webpack --config webpack.config.prod.js && webpack --config webpack.config.umd.js",
13
- "lint": "npx tslint -p tsconfig.json --fix",
14
- "docs": "npx typedoc --options"
15
- },
16
- "files": [
17
- "dist",
18
- "!dist/test"
19
- ],
20
- "author": "",
21
- "license": "ISC",
22
- "dependencies": {
23
- "@stomp/stompjs": "^6.0.0",
24
- "@uehreka/seriously": "^1.0.1",
25
- "fast-text-encoding": "^1.0.0",
26
- "intrinsic-scale": "^3.0.4",
27
- "onnxruntime-web": "^1.15.1",
28
- "promjs": "^0.4.1",
29
- "ring-buffer-ts": "^1.2.0",
30
- "rxjs": "^7.8.1",
31
- "rxjs-compat": "^6.6.7",
32
- "simple-peer": "^9.11.1",
33
- "webrtc-adapter": "^8.2.3"
34
- },
35
- "devDependencies": {
36
- "@types/dom-mediacapture-record": "^1.0.16",
37
- "@types/jasmine": "^2.8.8",
38
- "@types/node": "^10.9.4",
39
- "fetch-mock": "7.7.3",
40
- "ignore-styles": "^5.0.1",
41
- "jasmine": "^5.1.0",
42
- "jasmine-core": "^5.1.0",
43
- "karma": "^6.4.2",
44
- "karma-chrome-launcher": "^3.2.0",
45
- "karma-firefox-launcher": "^2.1.2",
46
- "karma-jasmine": "^5.1.0",
47
- "karma-jasmine-html-reporter": "^2.1.0",
48
- "karma-requirejs": "^1.1.0",
49
- "karma-typescript": "^5.5.4",
50
- "karma-typescript-es6-transform": "^5.5.4",
51
- "nock": "^9.6.1",
52
- "requirejs": "^2.3.6",
53
- "ts-loader": "^9.4.4",
54
- "ts-node": "^7.0.1",
55
- "tslint": "^5.11.0",
56
- "tslint-no-focused-test": "^0.5.0",
57
- "typedoc": "^0.18.0",
58
- "typescript": "^5.1.6",
59
- "webpack": "^5.88.2",
60
- "webpack-cli": "^5.1.4"
61
- }
62
- }
1
+ {
2
+ "name": "uneeq-js",
3
+ "version": "2.47.2",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "types": "dist/src/index.d.ts",
7
+ "scripts": {
8
+ "start": "npx webpack -w",
9
+ "test-local": "npx karma start karma.conf.js -logLevel=DEBUG",
10
+ "test": "npx karma start --browsers ChromeHeadless --single-run",
11
+ "test:windows": "karma start karma.conf.js",
12
+ "build": "webpack --config webpack.config.prod.js && webpack --config webpack.config.umd.js",
13
+ "lint": "npx tslint -p tsconfig.json --fix",
14
+ "docs": "npx typedoc --options"
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "!dist/test"
19
+ ],
20
+ "author": "",
21
+ "license": "ISC",
22
+ "dependencies": {
23
+ "@stomp/stompjs": "^6.0.0",
24
+ "@uehreka/seriously": "^1.0.1",
25
+ "crossoriginworker": "^1.1.0",
26
+ "fast-text-encoding": "^1.0.0",
27
+ "intrinsic-scale": "^3.0.4",
28
+ "onnxruntime-web": "^1.15.1",
29
+ "opus-media-recorder": "^0.8.0",
30
+ "promjs": "^0.4.1",
31
+ "ring-buffer-ts": "^1.2.0",
32
+ "rxjs": "^7.8.1",
33
+ "rxjs-compat": "^6.6.7",
34
+ "simple-peer": "^9.11.1",
35
+ "webrtc-adapter": "^8.2.3"
36
+ },
37
+ "devDependencies": {
38
+ "@types/dom-mediacapture-record": "^1.0.16",
39
+ "@types/jasmine": "^2.8.8",
40
+ "@types/node": "^10.9.4",
41
+ "fetch-mock": "7.7.3",
42
+ "ignore-styles": "^5.0.1",
43
+ "jasmine": "^5.1.0",
44
+ "jasmine-core": "^5.1.0",
45
+ "karma": "^6.4.2",
46
+ "karma-chrome-launcher": "^3.2.0",
47
+ "karma-firefox-launcher": "^2.1.2",
48
+ "karma-jasmine": "^5.1.0",
49
+ "karma-jasmine-html-reporter": "^2.1.0",
50
+ "karma-requirejs": "^1.1.0",
51
+ "karma-typescript": "^5.5.4",
52
+ "karma-typescript-es6-transform": "^5.5.4",
53
+ "nock": "^9.6.1",
54
+ "requirejs": "^2.3.6",
55
+ "ts-loader": "^9.4.4",
56
+ "ts-node": "^7.0.1",
57
+ "tslint": "^5.11.0",
58
+ "tslint-no-focused-test": "^0.5.0",
59
+ "typedoc": "^0.18.0",
60
+ "typescript": "^5.1.6",
61
+ "webpack": "^5.88.2",
62
+ "webpack-cli": "^5.1.4"
63
+ }
64
+ }
package/readme.md CHANGED
@@ -1,204 +1,58 @@
1
- # uneeq-js
2
- This package is for use inside web projects to establish a live session with a digital human.
3
-
4
- ## Usage and Documentation:
5
- https://docs.uneeq.io/build-your-own-experience
6
-
7
- #### Installation Notes
8
- To use uneeq-js with a typescript version < 3.8, 'skipLibCheck' must be set to true.
9
-
10
- ## Release Notes
11
- #### 2.47.0
12
- * Added pre-alpha release of speech_recognition input mode.
13
-
14
- #### 2.46.7
15
- * Updated dependency versions
16
-
17
- #### 2.46.6
18
- * Fix build pipeline
19
-
20
- #### 2.46.5
21
- * Dependency version updates
22
-
23
- #### 2.46.4
24
- * Improve locale detection to ensure we fall back to supported speech to text languages
25
-
26
- #### 2.46.3
27
- * Fix for sessions to start without localStorage availability.
28
-
29
- #### 2.46.2
30
- * Fix for session starting in incognito browser windows.
31
-
32
- #### 2.46.1
33
- * Tweaking locale detection to better handle null or undefined input
34
-
35
- #### 2.46.0
36
- * Adding automatic detection of speech to text language - If no speechToTextLocales set, we will try to automatically detect a users browser language. If we cannot do that, we will fall back to en-US as the default speech to text language.
37
-
38
- #### 2.45.0
39
- * Added ability to, when starting a session, specify up to four languages (using locale codes) that a Digital Human should understand
40
-
41
- #### 2.44.6
42
- * Fixed an issue when ending a session that would cause newly created sessions to be ended shortly after.
43
-
44
- #### 2.44.5
45
- * Fixed issue preventing Firefox based sessions from starting
46
-
47
- #### 2.44.4
48
- * Updated voice activity mode to no longer request the users microphone when the session becomes live.
49
-
50
- #### 2.44.3
51
- * Fix for DigitalHumanUnmuted message on video play.
52
-
53
- #### 2.44.2
54
- * Added DigitalHumanUnmuted message when video plays in unmuted mode.
55
-
56
- #### 2.44.1
57
- * Optimized publish stream and improved audio performance on iOS
58
-
59
- #### 2.44.0
60
- * Added beta support for session resume.
61
-
62
- #### 2.43.0
63
- * Adding support for setting a background image and name tag image when starting a session using new fields in UneeqOptions. Url restrictions apply, please reach out to the Customer Service team.
64
-
65
- #### 2.42.3
66
- * Fixed issue that caused voiceActivity input not to work when using autoStart
67
-
68
- #### 2.42.2
69
- * Improved responsiveness of RecordingStartedMessage when using VOICE_ACTIVITY input mode.
70
-
71
- #### 2.42.1
72
- * Fixed behaviour in Safari so that DigitalHumanPlayedInMutedModeSuccess is emitted when video starts in muted state.
73
- * Added a new message 'DigitalHumanUnmuted'.
74
-
75
- #### 2.42.0
76
- * Allow digital human videos that are blocked by browser autoplay policy to be played in muted state without user interaction with the page.
77
-
78
- #### 2.41.1
79
- * Fix for VOICE_ACTIVITY disengaging during long utterances.
80
-
81
- #### 2.41.0
82
- * Added support for voice activity detection
83
-
84
- #### 2.40.2
85
- * Minor tweak to client performance metricing
86
-
87
- #### 2.40.1
88
- * Fixed an issue that would sometimes cause a session to start with no video.
89
-
90
- #### 2.40.0
91
- * Adds support for upcoming instructions field
92
-
93
- #### 2.39.8
94
- * Improvements to support upcoming feature
95
-
96
- #### 2.39.7
97
- * Minor fixes to support upcoming feature releases.
98
-
99
- #### 2.39.6
100
- * Fixed video scaling issues when running in a low bandwidth environment.
101
- * Fixed an issue that occasionally caused the video stream not to render in Safari 15
102
-
103
- #### 2.39.1
104
- * Support for Safari 15
105
-
106
- #### 2.39.0
107
- * Adding support for upcoming features
108
-
109
- #### 2.38.3
110
- * Improves the quality of the UneeQ watermark for customers in our Starter pricing tier
111
-
112
- #### 2.38.1
113
- * Fixed an issue that could cause reconnections to fail.
114
-
115
- #### 2.38.0
116
- * Adds support for transparent background
117
-
118
- #### 2.37.2
119
- * Adds hasDisplayHtml boolean to AvatarAnswerContentMessage to be able to distinguish inclusion of displayHtml
120
- #### 2.37.0
121
- * Adds client resolution detection to identify screen ratios.
122
-
123
- #### 2.36.6
124
- * Improved audio management.
125
-
126
- #### 2.36.4
127
- * Added ClientPerformanceMessage to identify if session quality is being impacted by client-side conditions.
128
- * Added enableClientPerformanceMessage option to control the visibility of client-side network performance messages in the developer console.
129
- * Added transcriptId to AvatarAnswerMessage, AvatarAnswerContentMessage and AvatarQuestionMessage to link between a question and an answer.
130
-
131
- #### 2.35.0
132
- * Fixed a bug that caused enabling/changing media devices to take a long time to be functional.
133
-
134
- #### 2.32.0
135
- * Users who lose network connection for more than 10 seconds will have their session ended and SessionError will occur.
136
-
137
- #### 2.31.1
138
- * Resolved an issue that caused Chrome to be very slow to detect network connection lost, and not send ConnectionLost message.
139
-
140
- #### 2.31.0
141
- * Add support for stop speaking api
142
- * Add support for AvatarRequestIgnored and AvatarRequestCompleted messages.
143
-
144
- #### 2.30.3
145
- * Updated readme and removed post install script.
146
-
147
- #### 2.30.0
148
- * Add graceful handling of end sessions messages from websocket - ending the session on the client side.
149
-
150
- #### 2.29.2
151
- * Added new messages: StartedSpeakingMessage, FinishedSpeakingMessage and SessionInfoMessage.
152
- * Deprecated message: AvatarTextInputFinishedMessage (use FinishedSpeakingMessage)
153
-
154
- #### 2.29.1
155
- * Added the ability to start a session without microphone access and request access to mic/cam mid-session.
156
- * Fixed an issue that caused some iOS devices to experience low volume.
157
- * Fixed an issue that caused some iOS devices to play audio from the wrong speaker.
158
- * *There is a known issue on some iOS devices that can cause audio to crackle when using sendLocalVideo: false with sendLocalAudio: true.*
159
-
160
- #### 2.29.0
161
- * Allow for microphone and camera enable/disable.
162
- * *This version has been deprecated due to crackling audio on iOS devices.*
163
-
164
- #### 2.28.1
165
- * Fixed a bug which could cause an error when starting a session.
166
-
167
- #### 2.28.0
168
- * Added sendLocalVideo: boolean to UneeqOptions. sendLocalVideo: false will not request or publish the users video stream.
169
-
170
- #### 2.27.2
171
- * Sending information to indicate if user has denied permission for audio/video device
172
-
173
- #### 2.27.1
174
- * Fix for video not playing when changing device (introduced in 2.27.0).
175
-
176
- #### 2.27.0
177
- * Addressed SDP issue causing some sessions not to start following Safari update.
178
-
179
- #### 2.26.5
180
- * Fix for occasional video freeze on session start.
181
-
182
- #### 2.26.4
183
- * Added OnlineStatusUpdateMessage.
184
-
185
- #### 2.26.3
186
- * Send media devices availability to the server
187
-
188
- #### 2.26.2
189
- * Set websocket reconnection and timeout limits.
190
-
191
- #### 2.26.1
192
- * Added timezone to session start request.
193
-
194
- #### 2.26.0
195
- * Added ClientMediaStreamUpdate message. Shifted SessionLiveMessage to only send once audio and video are streaming between client and server.
196
-
197
- #### 2.25.2
198
- * Added sessionId as a parameter on Uneeq class and log it upon session start.
199
-
200
- #### 2.25.1
201
- * Added release notes to readme.
202
-
203
- #### 2.25.0
204
- * Update to match faceme-sdk version number + fixes.
1
+ # uneeq-js
2
+ This package is for use inside web projects to establish a live session with a digital human.
3
+
4
+ ## Running Locally
5
+ - `npm i && npm start`
6
+
7
+ ## Usage
8
+ Inside a web project you can install this package `npm i uneeq`, and begin a session with a digital human:
9
+ ```
10
+ let uneeq = new Uneeq(UneeqOptions);
11
+ uneeq.initWithToken(token);
12
+ ```
13
+
14
+ For details on obtaining a token, please refer to:<br/>
15
+ https://docs.uneeq.io/#/chatbot_integration?id=obtaining-an-access-token
16
+
17
+ ## Unit Tests
18
+ Unit testing is performed via Jasmine with Karma.
19
+ - `npm test`
20
+ - In Windows, you will need to install Karma globally `npm install -g karma-cli`. After installing you can run Karma tests with the command `npm run test:windows`.
21
+
22
+ ## Linting
23
+ Lint rules are defined in tslint.json
24
+ - `npm run lint`
25
+
26
+ ## Documentation
27
+ - `npm run docs` will output documentation to the docs/ folder using typedoc
28
+
29
+ ## Publish a new version to NPM
30
+ - `./release.sh`
31
+ - Submit a merge request.
32
+ - Follow code review, merge the code
33
+ - GitLab will automatically publish new versions to NPM
34
+
35
+ A detailed guide to releasing uneeq-js can be found here:
36
+ https://faceme.atlassian.net/wiki/spaces/PM/pages/1564246028/Web+SDK+uneeq-js+release+and+test+process
37
+
38
+ ### Deprecating a version in NPM
39
+ - Think you need to deprecate a version in NPM? See the [runbook](https://faceme.atlassian.net/wiki/spaces/SUP/pages/1115160577/Deprecating+a+version+of+uneeq-js+in+the+NPM+registry).
40
+
41
+ ## Local Development
42
+ You can develop this package locally but you'll still need to connect the npm package to a running front end application
43
+ in order to test any changes or additions. The best method for doing this is with `npm link`.
44
+
45
+ ## Releasing a beta version
46
+ Releasing a beta SDK is not a very clean process and must be performed manually from a development machine, though it is possible to incorporate this via Gitlab CI, this is not a simple process. For now you can follow these steps:
47
+ 1. Commit all changes locally
48
+ 2. Delete node_modules folder
49
+ 3. Fresh install all node_modules (for safety) `npm i`
50
+ 4. Lint and Test the project: `npm run lint` , `npm run test`
51
+ 5. Update release notes file release-notes.md
52
+ 6. Build the project `./build.sh`
53
+ 7. Step 6 will generate some changes to readme files, you need to commit these before step 8. It is likely you will want to revert these before final release (not a great process!)
54
+ 8. Increment version number `npm version patch` (or minor/major) - this step required a clean working directory
55
+ 9. Log in to NPM registry `npm login` (production vault in 1pass)
56
+ 10. Publish to NPM `npm publish --tag beta`
57
+
58
+ The newly published version can be installed in a project via `npm i uneeq-js@beta`