@djangocfg/ui-tools 2.1.397 → 2.1.399
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/ui-tools",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.399",
|
|
4
4
|
"description": "Heavy React tools with lazy loading - for Electron, Vite, CRA, Next.js apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui-tools",
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
"test:watch": "vitest"
|
|
155
155
|
},
|
|
156
156
|
"peerDependencies": {
|
|
157
|
-
"@djangocfg/i18n": "^2.1.
|
|
158
|
-
"@djangocfg/ui-core": "^2.1.
|
|
157
|
+
"@djangocfg/i18n": "^2.1.399",
|
|
158
|
+
"@djangocfg/ui-core": "^2.1.399",
|
|
159
159
|
"consola": "^3.4.2",
|
|
160
160
|
"lodash-es": "^4.18.1",
|
|
161
161
|
"lucide-react": "^0.545.0",
|
|
@@ -209,9 +209,9 @@
|
|
|
209
209
|
"material-file-icons": "^2.4.0"
|
|
210
210
|
},
|
|
211
211
|
"devDependencies": {
|
|
212
|
-
"@djangocfg/i18n": "^2.1.
|
|
213
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
214
|
-
"@djangocfg/ui-core": "^2.1.
|
|
212
|
+
"@djangocfg/i18n": "^2.1.399",
|
|
213
|
+
"@djangocfg/typescript-config": "^2.1.399",
|
|
214
|
+
"@djangocfg/ui-core": "^2.1.399",
|
|
215
215
|
"@types/lodash-es": "^4.17.12",
|
|
216
216
|
"@types/mapbox__mapbox-gl-draw": "^1.4.8",
|
|
217
217
|
"@types/node": "^24.7.2",
|
|
@@ -143,7 +143,9 @@ export function createWebSpeechEngine(
|
|
|
143
143
|
rec.onresult = (e) => {
|
|
144
144
|
for (let i = e.resultIndex; i < e.results.length; i += 1) {
|
|
145
145
|
const res = e.results[i];
|
|
146
|
+
if (!res) continue;
|
|
146
147
|
const alt = res[0];
|
|
148
|
+
if (!alt) continue;
|
|
147
149
|
const text = alt.transcript;
|
|
148
150
|
if (!currentSegmentId) currentSegmentId = newSegmentId();
|
|
149
151
|
if (res.isFinal) {
|