diff --git a/CHANGELOG.md b/CHANGELOG.md index fac30bd809..c963cd2d5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -123,9 +123,9 @@ Notes: web developers are advised to use [`~` (tilde range)](https://github.com/ - Switched math block syntax from `$$` to Tex-style `\[ \]` and `\( \)` delimiters with improved rendering and error handling, in PR [#5353](https://github.com/microsoft/BotFramework-WebChat/pull/5353), by [@OEvgeny](https://github.com/OEvgeny) - Improved avatar display and grouping behavior by fixing rendering issues and activity sender identification, in PR [#5346](https://github.com/microsoft/BotFramework-WebChat/pull/5346), by [@OEvgeny](https://github.com/OEvgeny) - Activity "copy" button will use `outerHTML` and `textContent` for clipboard content, in PR [#5378](https://github.com/microsoft/BotFramework-WebChat/pull/5378), by [@compulim](https://github.com/compulim) -- Bumped dependencies to the latest versions, by [@compulim](https://github.com/compulim) in PR [#5385](https://github.com/microsoft/BotFramework-WebChat/pull/5385), [#5400](https://github.com/microsoft/BotFramework-WebChat/pull/5400), [#5426](https://github.com/microsoft/BotFramework-WebChat/pull/5426), and [#5476](https://github.com/microsoft/BotFramework-WebChat/pull/5476) +- Bumped dependencies to the latest versions, by [@compulim](https://github.com/compulim) in PR [#5385](https://github.com/microsoft/BotFramework-WebChat/pull/5385), [#5400](https://github.com/microsoft/BotFramework-WebChat/pull/5400), [#5426](https://github.com/microsoft/BotFramework-WebChat/pull/5426), [#5476](https://github.com/microsoft/BotFramework-WebChat/pull/5476), and [#5516](https://github.com/microsoft/BotFramework-WebChat/pull/5516) - Production dependencies - - [`web-speech-cognitive-services@8.1.0`](https://npmjs.com/package/web-speech-cognitive-services) + - [`web-speech-cognitive-services@8.1.3`](https://npmjs.com/package/web-speech-cognitive-services) - [`react-dictate-button@4.0.0`](https://npmjs.com/package/react-dictate-button) - Enabled icon customization in Fluent theme through CSS variables, in PR [#5413](https://github.com/microsoft/BotFramework-WebChat/pull/5413), by [@OEvgeny](https://github.com/OEvgeny) - Reworked, enabled in Web Chat, in PR [#5502](https://github.com/microsoft/BotFramework-WebChat/pull/5502), by [@OEvgeny](https://github.com/OEvgeny) @@ -238,6 +238,7 @@ Notes: web developers are advised to use [`~` (tilde range)](https://github.com/ - Fixed [#5479](https://github.com/microsoft/BotFramework-WebChat/issues/5479). Fixed feedback form buttons should not squash other buttons, in PR [#5480](https://github.com/microsoft/BotFramework-WebChat/pull/5480), by [@compulim](https://github.com/compulim) - Migrated to radio button for like/dislike where form submission is required - Fixed long citation identifiers break activity layout, in PR [#5507](https://github.com/microsoft/BotFramework-WebChat/pull/5507), by [@OEvgeny](https://github.com/OEvgeny) +- Updated file-based import with `.js` extension and removed the file extension from build config, by [@compulim](https://github.com/compulim), in PR [#5516](https://github.com/microsoft/BotFramework-WebChat/pull/5516) # Removed diff --git a/package-lock.json b/package-lock.json index be370c1714..df9ff834ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23579,10 +23579,9 @@ } }, "node_modules/valibot": { - "version": "0.42.1", - "resolved": "https://registry.npmjs.org/valibot/-/valibot-0.42.1.tgz", - "integrity": "sha512-3keXV29Ar5b//Hqi4MbSdV7lfVp6zuYLZuA9V1PvQUsXqogr+u5lvLPLk3A4f74VUXDnf/JfWMN6sB+koJ/FFw==", - "license": "MIT", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.1.0.tgz", + "integrity": "sha512-Nk8lX30Qhu+9txPYTwM0cFlWLdPFsFr6LblzqIySfbZph9+BFsAHsNvHOymEviUepeIW6KFHzpX8TKhbptBXXw==", "peerDependencies": { "typescript": ">=5" }, @@ -23685,10 +23684,9 @@ } }, "node_modules/web-speech-cognitive-services": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/web-speech-cognitive-services/-/web-speech-cognitive-services-8.1.1.tgz", - "integrity": "sha512-9D7u6108HJipSwYSlMMMBzjF11tR9o4GvCCFNPY2eD17wstg6ZWztkfW3v+JWXHm/3KD50N5gdBNLaweD0qETw==", - "license": "MIT", + "version": "8.1.3", + "resolved": "https://registry.npmjs.org/web-speech-cognitive-services/-/web-speech-cognitive-services-8.1.3.tgz", + "integrity": "sha512-StlM8XsScA6Z/HGl4aAR9dmIe/+B5Tlc0ke1Bp7T/TSafzjszzDvXp/65u9vfbnJ2ZuCX+ie8IXR2y6q5rgYww==", "dependencies": { "base64-arraybuffer": "^1.0.2", "event-as-promise": "^2.0.0", @@ -23696,8 +23694,8 @@ "memoize-one": "^6.0.0", "on-error-resume-next": "^2.0.2", "simple-update-in": "^2.2.0", - "valibot": "^0.42.1", - "web-speech-cognitive-services": "^8.1.1" + "valibot": "^1.1.0", + "web-speech-cognitive-services": "^8.1.3" }, "peerDependencies": { "microsoft-cognitiveservices-speech-sdk": "^1.17.0" @@ -24536,20 +24534,6 @@ "dev": true, "license": "MIT" }, - "packages/api/node_modules/valibot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.1.0.tgz", - "integrity": "sha512-Nk8lX30Qhu+9txPYTwM0cFlWLdPFsFr6LblzqIySfbZph9+BFsAHsNvHOymEviUepeIW6KFHzpX8TKhbptBXXw==", - "license": "MIT", - "peerDependencies": { - "typescript": ">=5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "packages/base": { "name": "botframework-webchat-base", "version": "0.0.0-0", @@ -24624,7 +24608,7 @@ "use-ref-from": "^0.1.0", "uuid": "8.3.2", "valibot": "1.1.0", - "web-speech-cognitive-services": "8.1.1", + "web-speech-cognitive-services": "8.1.3", "whatwg-fetch": "3.6.20" }, "devDependencies": { @@ -24824,20 +24808,6 @@ "dev": true, "license": "MIT" }, - "packages/bundle/node_modules/valibot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.1.0.tgz", - "integrity": "sha512-Nk8lX30Qhu+9txPYTwM0cFlWLdPFsFr6LblzqIySfbZph9+BFsAHsNvHOymEviUepeIW6KFHzpX8TKhbptBXXw==", - "license": "MIT", - "peerDependencies": { - "typescript": ">=5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "packages/component": { "name": "botframework-webchat-component", "version": "0.0.0-0", @@ -24927,20 +24897,6 @@ "dev": true, "license": "MIT" }, - "packages/component/node_modules/valibot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.1.0.tgz", - "integrity": "sha512-Nk8lX30Qhu+9txPYTwM0cFlWLdPFsFr6LblzqIySfbZph9+BFsAHsNvHOymEviUepeIW6KFHzpX8TKhbptBXXw==", - "license": "MIT", - "peerDependencies": { - "typescript": ">=5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "packages/core": { "name": "botframework-webchat-core", "version": "0.0.0-0", @@ -25150,20 +25106,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "packages/core/node_modules/valibot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.1.0.tgz", - "integrity": "sha512-Nk8lX30Qhu+9txPYTwM0cFlWLdPFsFr6LblzqIySfbZph9+BFsAHsNvHOymEviUepeIW6KFHzpX8TKhbptBXXw==", - "license": "MIT", - "peerDependencies": { - "typescript": ">=5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "packages/directlinespeech": { "name": "botframework-directlinespeech-sdk", "version": "0.0.0-0", @@ -25179,7 +25121,7 @@ "event-target-shim": "6.0.2", "math-random": "2.0.1", "microsoft-cognitiveservices-speech-sdk": "1.17.0", - "web-speech-cognitive-services": "8.1.1" + "web-speech-cognitive-services": "8.1.3" }, "devDependencies": { "@babel/cli": "^7.18.10", @@ -26399,20 +26341,6 @@ "dev": true, "license": "MIT" }, - "packages/fluent-theme/node_modules/valibot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.1.0.tgz", - "integrity": "sha512-Nk8lX30Qhu+9txPYTwM0cFlWLdPFsFr6LblzqIySfbZph9+BFsAHsNvHOymEviUepeIW6KFHzpX8TKhbptBXXw==", - "license": "MIT", - "peerDependencies": { - "typescript": ">=5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "packages/isomorphic-react": { "version": "0.0.0-0", "license": "MIT", @@ -26466,20 +26394,6 @@ "react": ">= 16.8.6" } }, - "packages/react-valibot/node_modules/valibot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.1.0.tgz", - "integrity": "sha512-Nk8lX30Qhu+9txPYTwM0cFlWLdPFsFr6LblzqIySfbZph9+BFsAHsNvHOymEviUepeIW6KFHzpX8TKhbptBXXw==", - "license": "MIT", - "peerDependencies": { - "typescript": ">=5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "packages/redux-store": { "name": "botframework-webchat-redux-store", "version": "0.0.0-0", @@ -26497,20 +26411,6 @@ "react": ">= 16.8.6" } }, - "packages/redux-store/node_modules/valibot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.1.0.tgz", - "integrity": "sha512-Nk8lX30Qhu+9txPYTwM0cFlWLdPFsFr6LblzqIySfbZph9+BFsAHsNvHOymEviUepeIW6KFHzpX8TKhbptBXXw==", - "license": "MIT", - "peerDependencies": { - "typescript": ">=5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "packages/store": { "name": "botframework-webchat-store", "version": "0.0.0-0", diff --git a/packages/bundle/package.json b/packages/bundle/package.json index 29910b68a3..3472b1a1f0 100644 --- a/packages/bundle/package.json +++ b/packages/bundle/package.json @@ -141,7 +141,7 @@ "use-ref-from": "^0.1.0", "uuid": "8.3.2", "valibot": "1.1.0", - "web-speech-cognitive-services": "8.1.1", + "web-speech-cognitive-services": "8.1.3", "whatwg-fetch": "3.6.20" }, "devDependencies": { diff --git a/packages/bundle/src/speech/CustomAudioInputStream.ts b/packages/bundle/src/speech/CustomAudioInputStream.ts index 764d23385d..56626a9875 100644 --- a/packages/bundle/src/speech/CustomAudioInputStream.ts +++ b/packages/bundle/src/speech/CustomAudioInputStream.ts @@ -12,15 +12,15 @@ import { AudioStreamNodeErrorEvent, Events, EventSource -} from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports'; +} from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js'; -import { AudioStreamFormatImpl } from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat'; +import { AudioStreamFormatImpl } from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js'; import { connectivity as Connectivity, ISpeechConfigAudioDevice, type as Type -} from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports'; +} from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js'; import { isForbiddenPropertyName, withResolvers } from 'botframework-webchat-core'; import { v4 } from 'uuid'; diff --git a/packages/bundle/src/speech/createMicrophoneAudioConfigAndAudioContext.ts b/packages/bundle/src/speech/createMicrophoneAudioConfigAndAudioContext.ts index 5c6e25cf50..0ea5ff4942 100644 --- a/packages/bundle/src/speech/createMicrophoneAudioConfigAndAudioContext.ts +++ b/packages/bundle/src/speech/createMicrophoneAudioConfigAndAudioContext.ts @@ -1,5 +1,5 @@ -import { ChunkedArrayBufferStream } from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports'; -import { PcmRecorder } from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports'; +import { ChunkedArrayBufferStream } from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js'; +import { PcmRecorder } from 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js'; import { AudioStreamNode, DeviceInfo, Format } from './CustomAudioInputStream'; import bytesPerSample from './bytesPerSample'; diff --git a/packages/bundle/tsup.config.ts b/packages/bundle/tsup.config.ts index a6446879fa..9c04a120ad 100644 --- a/packages/bundle/tsup.config.ts +++ b/packages/bundle/tsup.config.ts @@ -8,7 +8,7 @@ const resolveCognitiveServicesToES2015 = { name: 'microsoft-cognitiveservices-speech-sdk', setup(build) { build.onResolve({ filter: /microsoft-cognitiveservices-speech-sdk.+/u }, args => ({ - path: path.join(process.cwd(), '../../node_modules', args.path.replace('distrib/lib', 'distrib/es2015') + '.js') + path: path.join(process.cwd(), '../../node_modules', args.path.replace('distrib/lib', 'distrib/es2015')) })); } }; diff --git a/packages/directlinespeech/package.json b/packages/directlinespeech/package.json index f7f1e02074..5a28021e99 100644 --- a/packages/directlinespeech/package.json +++ b/packages/directlinespeech/package.json @@ -120,7 +120,7 @@ "event-target-shim": "6.0.2", "math-random": "2.0.1", "microsoft-cognitiveservices-speech-sdk": "1.17.0", - "web-speech-cognitive-services": "8.1.1" + "web-speech-cognitive-services": "8.1.3" }, "engines": { "node": ">= 10.14.2"