Skip to content

Commit 0d20f73

Browse files
committed
Bump deps
1 parent 562f97e commit 0d20f73

35 files changed

Lines changed: 3525 additions & 6143 deletions

File tree

package-lock.json

Lines changed: 3147 additions & 5529 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/api/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,30 +111,30 @@
111111
"@babel/preset-env": "^7.19.1",
112112
"@babel/preset-react": "^7.18.6",
113113
"@babel/preset-typescript": "^7.18.6",
114-
"@types/dom-speech-recognition": "^0.0.4",
115-
"@types/node": "^22.13.4",
116-
"@types/react": "^16.14.62",
114+
"@types/dom-speech-recognition": "^0.0.6",
115+
"@types/node": "^24.1.0",
116+
"@types/react": "^16.14.65",
117117
"babel-plugin-istanbul": "^7.0.0",
118118
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
119119
"botframework-webchat-cldr-data": "36.0.0-0",
120120
"botframework-webchat-react-valibot": "^0.0.0-0",
121121
"botframework-webchat-redux-store": "^0.0.0-0",
122-
"concurrently": "^9.1.2",
123-
"core-js": "^3.40.0",
124-
"cross-env": "^7.0.3",
122+
"concurrently": "^9.2.0",
123+
"core-js": "^3.44.0",
124+
"cross-env": "^10.0.0",
125125
"globalize-compiler": "^1.1.1",
126126
"iana-tz-data": "^2019.1.0",
127-
"nodemon": "^3.1.9",
128-
"type-fest": "^4.34.1",
129-
"typescript": "^5.7.3"
127+
"nodemon": "^3.1.10",
128+
"type-fest": "^4.41.0",
129+
"typescript": "^5.9.2"
130130
},
131131
"dependencies": {
132132
"botframework-webchat-core": "0.0.0-0",
133133
"globalize": "1.7.0",
134-
"iter-fest": "^0.2.1",
134+
"iter-fest": "0.3.0",
135135
"math-random": "2.0.1",
136136
"prop-types": "15.8.1",
137-
"react-chain-of-responsibility": "0.2.0",
137+
"react-chain-of-responsibility": "0.3.0",
138138
"react-redux": "7.2.9",
139139
"redux": "5.0.1",
140140
"simple-update-in": "2.2.0",

packages/api/src/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"pretty": true,
1010
"resolveJsonModule": true, // Required for localization files
1111
"skipLibCheck": true,
12-
"sourceMap": true
12+
"sourceMap": true,
13+
"target": "ESNext"
1314
}
1415
}

packages/base/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
},
6060
"devDependencies": {
6161
"@tsconfig/strictest": "^2.0.5",
62-
"@types/node": "^22.13.4",
63-
"core-js-pure": "^3.40.0",
64-
"cross-env": "^7.0.3",
65-
"type-fest": "^4.34.1",
66-
"typescript": "^5.7.3"
62+
"@types/node": "^24.1.0",
63+
"core-js-pure": "^3.44.0",
64+
"cross-env": "^10.0.0",
65+
"type-fest": "^4.41.0",
66+
"typescript": "^5.9.2"
6767
}
6868
}

packages/bundle/package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -117,28 +117,28 @@
117117
"dependencies": {
118118
"@babel/runtime": "7.19.0",
119119
"adaptivecards": "3.0.2",
120-
"botframework-directlinejs": "0.15.5",
120+
"botframework-directlinejs": "0.15.6",
121121
"botframework-directlinespeech-sdk": "0.0.0-0",
122122
"botframework-webchat-api": "0.0.0-0",
123123
"botframework-webchat-component": "0.0.0-0",
124124
"botframework-webchat-core": "0.0.0-0",
125125
"classnames": "2.5.1",
126-
"core-js": "3.40.0",
127-
"katex": "0.16.21",
126+
"core-js": "3.44.0",
127+
"katex": "0.16.22",
128128
"math-random": "2.0.1",
129129
"mdast-util-from-markdown": "2.0.2",
130130
"memoize-one": "6.0.0",
131-
"micromark": "4.0.1",
131+
"micromark": "4.0.2",
132132
"micromark-extension-gfm": "3.0.0",
133133
"micromark-util-character": "2.1.1",
134-
"microsoft-cognitiveservices-speech-sdk": "1.42.0",
134+
"microsoft-cognitiveservices-speech-sdk": "1.45.0",
135135
"prop-types": "15.8.1",
136136
"punycode": "2.3.1",
137-
"sanitize-html": "2.14.0",
138-
"shiki": "2.3.2",
137+
"sanitize-html": "2.17.0",
138+
"shiki": "3.9.0",
139139
"swiper": "8.4.7",
140140
"url-search-params-polyfill": "8.2.5",
141-
"use-ref-from": "^0.1.0",
141+
"use-ref-from": "0.1.0",
142142
"uuid": "8.3.2",
143143
"valibot": "1.1.0",
144144
"web-speech-cognitive-services": "8.1.3",
@@ -151,24 +151,24 @@
151151
"@babel/preset-env": "^7.19.1",
152152
"@babel/preset-react": "^7.18.6",
153153
"@babel/preset-typescript": "^7.18.6",
154-
"@types/dom-speech-recognition": "^0.0.4",
154+
"@types/dom-speech-recognition": "^0.0.6",
155155
"@types/mdast": "^4.0.4",
156-
"@types/node": "^22.13.4",
157-
"@types/react": "^16.14.62",
156+
"@types/node": "^24.1.0",
157+
"@types/react": "^16.14.65",
158158
"@types/uuid": "^10.0.0",
159159
"babel-plugin-istanbul": "^7.0.0",
160160
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
161161
"botframework-webchat-base": "0.0.0-0",
162162
"botframework-webchat-react-valibot": "0.0.0-0",
163-
"concurrently": "^9.1.2",
164-
"cross-env": "^7.0.3",
165-
"esbuild": "^0.25.0",
163+
"concurrently": "^9.2.0",
164+
"cross-env": "^10.0.0",
165+
"esbuild": "^0.25.8",
166166
"isomorphic-react": "^0.0.0-0",
167167
"isomorphic-react-dom": "^0.0.0-0",
168-
"micromark-util-types": "^2.0.1",
169-
"tsd": "^0.31.2",
170-
"type-fest": "^4.34.1",
171-
"typescript": "^5.7.3"
168+
"micromark-util-types": "^2.0.2",
169+
"tsd": "^0.32.0",
170+
"type-fest": "^4.41.0",
171+
"typescript": "^5.9.2"
172172
},
173173
"peerDependencies": {
174174
"react": ">= 16.8.6",

packages/bundle/tsup.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import baseConfig from '../../tsup.base.config';
77
const resolveCognitiveServicesToES2015 = {
88
name: 'microsoft-cognitiveservices-speech-sdk',
99
setup(build) {
10-
build.onResolve({ filter: /microsoft-cognitiveservices-speech-sdk.+/u }, args => ({
10+
// ESBuild use Go regular expressions and does not understand Unicode flag.
11+
// eslint-disable-next-line require-unicode-regexp
12+
build.onResolve({ filter: /microsoft-cognitiveservices-speech-sdk.+/ }, args => ({
1113
path: path.join(process.cwd(), '../../node_modules', args.path.replace('distrib/lib', 'distrib/es2015'))
1214
}));
1315
}
@@ -17,7 +19,9 @@ const resolveCognitiveServicesToES2015 = {
1719
const resolveReact = {
1820
name: 'isomorphic-react',
1921
setup(build) {
20-
build.onResolve({ filter: /^(react|react-dom)$/u }, ({ path: pkgNamne }) => ({
22+
// ESBuild use Go regular expressions and does not understand Unicode flag.
23+
// eslint-disable-next-line require-unicode-regexp
24+
build.onResolve({ filter: /^(react|react-dom)$/ }, ({ path: pkgNamne }) => ({
2125
path: path.join(process.cwd(), '../../node_modules', `isomorphic-${pkgNamne}/dist/${pkgNamne}.js`)
2226
}));
2327
}

packages/component/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,19 +126,19 @@
126126
"@babel/preset-react": "^7.18.6",
127127
"@babel/preset-typescript": "^7.18.6",
128128
"@types/mdast": "^4.0.4",
129-
"@types/node": "^22.13.4",
130-
"@types/react": "^16.14.62",
129+
"@types/node": "^24.1.0",
130+
"@types/react": "^16.14.65",
131131
"babel-plugin-istanbul": "^7.0.0",
132132
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
133133
"botframework-webchat-base": "0.0.0-0",
134134
"botframework-webchat-react-valibot": "^0.0.0-0",
135135
"botframework-webchat-styles": "0.0.0-0",
136-
"concurrently": "^9.1.2",
137-
"core-js": "^3.40.0",
138-
"cross-env": "^7.0.3",
136+
"concurrently": "^9.2.0",
137+
"core-js": "^3.44.0",
138+
"cross-env": "^10.0.0",
139139
"node-dev": "^8.0.0",
140-
"type-fest": "^4.34.1",
141-
"typescript": "^5.7.3"
140+
"type-fest": "^4.41.0",
141+
"typescript": "^5.9.2"
142142
},
143143
"dependencies": {
144144
"@emotion/css": "11.13.5",
@@ -152,16 +152,16 @@
152152
"math-random": "2.0.1",
153153
"mdast-util-from-markdown": "2.0.2",
154154
"memoize-one": "6.0.0",
155-
"merge-refs": "1.3.0",
155+
"merge-refs": "2.0.0",
156156
"prop-types": "15.8.1",
157157
"punycode": "2.3.1",
158-
"react-chain-of-responsibility": "0.2.0",
158+
"react-chain-of-responsibility": "0.3.0",
159159
"react-dictate-button": "4.0.0",
160160
"react-film": "3.1.1-main.f623bf6",
161161
"react-redux": "7.2.9",
162-
"react-say": "2.1.0",
162+
"react-say": "2.2.0",
163163
"react-scroll-to-bottom": "4.2.1-main.53844f5",
164-
"react-wrap-with": "^0.2.0-main.62328fb",
164+
"react-wrap-with": "0.1.0",
165165
"redux": "5.0.1",
166166
"simple-update-in": "2.2.0",
167167
"use-propagate": "0.2.1",

packages/component/src/Activity/Speak.tsx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import { hooks } from 'botframework-webchat-api';
2-
import { validateProps } from 'botframework-webchat-react-valibot';
32
import { type WebChatActivity } from 'botframework-webchat-core';
3+
import { validateProps } from 'botframework-webchat-react-valibot';
44
import React, { memo, useCallback, useMemo } from 'react';
55
import ReactSay, { SayUtterance } from 'react-say';
66
import { useRefFrom } from 'use-ref-from';
77
import { any, array, object, optional, pipe, readonly, string, type InferInput } from 'valibot';
88

9+
import useWebSpeechPonyfill from '../hooks/useWebSpeechPonyfill';
910
import SayAlt from './SayAlt';
1011

12+
// TODO: [P*] Do we still need this?
1113
// TODO: [P1] Interop between Babel and esbuild.
12-
const Say = 'default' in ReactSay ? ReactSay.default : ReactSay;
14+
const Say = 'default' in ReactSay ? (ReactSay.default as typeof ReactSay) : ReactSay;
1315
const { useMarkActivityAsSpoken, useStyleOptions, useVoiceSelector } = hooks;
1416

1517
// TODO: [P4] Consider moving this feature into BasicActivity
@@ -63,6 +65,7 @@ function Speak(props: SpeakProps) {
6365
const { activity } = validateProps(speakPropsSchema, props);
6466

6567
const [{ showSpokenText }] = useStyleOptions();
68+
const [webSpeechPonyfill] = useWebSpeechPonyfill();
6669
const activityRef = useRefFrom(activity);
6770
const markActivityAsSpoken = useMarkActivityAsSpoken();
6871
const selectVoice = useVoiceSelector(activity);
@@ -103,9 +106,20 @@ function Speak(props: SpeakProps) {
103106
!!activity && (
104107
<React.Fragment>
105108
{speechSynthesisUtterance ? (
106-
<SayUtterance onEnd={markAsSpoken} onError={markAsSpoken} utterance={speechSynthesisUtterance} />
109+
<SayUtterance
110+
onEnd={markAsSpoken}
111+
onError={markAsSpoken}
112+
ponyfill={webSpeechPonyfill}
113+
utterance={speechSynthesisUtterance}
114+
/>
107115
) : (
108-
<Say onEnd={markAsSpoken} onError={markAsSpoken} text={singleLine} voice={selectVoice} />
116+
<Say
117+
onEnd={markAsSpoken}
118+
onError={markAsSpoken}
119+
ponyfill={webSpeechPonyfill}
120+
text={singleLine}
121+
voice={selectVoice}
122+
/>
109123
)}
110124
{!!showSpokenText && <SayAlt speak={singleLine} />}
111125
</React.Fragment>

packages/component/src/Styles/StyleSet/SpinnerAnimation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function createSpinnerAnimationStyle({
1616
}: StrictStyleOptions) {
1717
defaultImageBlobURL ||
1818
(defaultImageBlobURL = URL.createObjectURL(
19-
new Blob([toByteArray(DEFAULT_IMAGE_BASE64)], { type: DEFAULT_IMAGE_TYPE })
19+
new Blob([new Uint8Array(toByteArray(DEFAULT_IMAGE_BASE64))], { type: DEFAULT_IMAGE_TYPE })
2020
));
2121

2222
const backgroundImage = spinnerAnimationBackgroundImage || `url('${defaultImageBlobURL}')`;

packages/component/src/Styles/StyleSet/TypingAnimation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function createTypingAnimationStyle({
1414
}: StrictStyleOptions) {
1515
defaultImageBlobURL ||
1616
(defaultImageBlobURL = URL.createObjectURL(
17-
new Blob([toByteArray(DEFAULT_IMAGE_BASE64)], { type: DEFAULT_IMAGE_TYPE })
17+
new Blob([new Uint8Array(toByteArray(DEFAULT_IMAGE_BASE64))], { type: DEFAULT_IMAGE_TYPE })
1818
));
1919

2020
const backgroundImage = typingAnimationBackgroundImage || `url('${defaultImageBlobURL}')`;

0 commit comments

Comments
 (0)