@crownpeak/dqm-react-component 1.2.0 → 1.2.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/CHANGELOG.md +19 -0
- package/dist/DQMSidebar.d.ts.map +1 -1
- package/dist/context/ai/useAITranslation.d.ts.map +1 -1
- package/dist/dqm-widget.esm.js +21 -21
- package/dist/dqm-widget.iife.js +5 -5
- package/dist/index.cjs +38 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3777 -3740
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.2.2] - 2026-01-08
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **AI Translation Reliability**: Resolved issue where AI translations were not triggered automatically
|
|
12
|
+
- Translation now starts automatically when AI summary completes
|
|
13
|
+
- Translation now starts automatically when AI engine becomes ready
|
|
14
|
+
- Fixed race condition where blocked translations would never retry
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- **300ms Debounce**: API calls are now debounced to prevent accidental spam when state changes rapidly
|
|
18
|
+
- **Reactive State Management**: `summaryGenerating` and `engineIsReady` are now proper effect dependencies
|
|
19
|
+
- **Automatic Retry Logic**: Translation automatically restarts when blocking conditions are resolved
|
|
20
|
+
- **Unit Tests**: 13 new tests for `useAITranslation` hook covering debounce, blocking, cache, and abort behavior
|
|
21
|
+
- **Integration Tests**: 6 new tests for Summary→Translation flow with API call counting
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- AI Translation hook now uses reactive dependencies instead of refs for blocking conditions
|
|
25
|
+
- Improved cleanup on component unmount (cancels pending debounce timers and aborts requests)
|
|
26
|
+
|
|
8
27
|
## [1.2.0] - 2026-01-07
|
|
9
28
|
|
|
10
29
|
### Added
|
package/dist/DQMSidebar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DQMSidebar.d.ts","sourceRoot":"","sources":["../src/DQMSidebar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AA4CtE,OAAO,KAAK,EAA8B,eAAe,EAAc,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"DQMSidebar.d.ts","sourceRoot":"","sources":["../src/DQMSidebar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AA4CtE,OAAO,KAAK,EAA8B,eAAe,EAAc,MAAM,SAAS,CAAC;AAukFvF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAahD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAITranslation.d.ts","sourceRoot":"","sources":["../../../src/context/ai/useAITranslation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAUH,OAAO,KAAK,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAG/E;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,uBAAuB,KAAG,
|
|
1
|
+
{"version":3,"file":"useAITranslation.d.ts","sourceRoot":"","sources":["../../../src/context/ai/useAITranslation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAUH,OAAO,KAAK,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAG/E;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,uBAAuB,KAAG,sBAsWnE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|