@semiont/react-ui 0.2.34-build.92 → 0.2.34
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/dist/index.mjs
CHANGED
|
@@ -48242,7 +48242,7 @@ function UnifiedAnnotationsPanel(props) {
|
|
|
48242
48242
|
if (!annotator) return null;
|
|
48243
48243
|
const annotations = grouped[activeTab] || [];
|
|
48244
48244
|
const isAssisting = props.assistingMotivation === annotator.motivation;
|
|
48245
|
-
const progress = props.progress ?? null;
|
|
48245
|
+
const progress = isAssisting ? props.progress ?? null : null;
|
|
48246
48246
|
const commonProps = {
|
|
48247
48247
|
annotations,
|
|
48248
48248
|
pendingAnnotation: props.pendingAnnotation,
|
|
@@ -56575,12 +56575,10 @@ function useAnnotationFlow(rUri) {
|
|
|
56575
56575
|
const handleAnnotationProgress = useCallback33((chunk) => {
|
|
56576
56576
|
setProgress(chunk);
|
|
56577
56577
|
}, []);
|
|
56578
|
-
const handleAnnotationComplete = useCallback33((
|
|
56579
|
-
setAssistingMotivation((
|
|
56580
|
-
if (motivation
|
|
56581
|
-
|
|
56582
|
-
}
|
|
56583
|
-
return current;
|
|
56578
|
+
const handleAnnotationComplete = useCallback33((event) => {
|
|
56579
|
+
setAssistingMotivation((prev) => {
|
|
56580
|
+
if (!event.motivation || event.motivation !== prev) return prev;
|
|
56581
|
+
return null;
|
|
56584
56582
|
});
|
|
56585
56583
|
showSuccess("Annotation complete");
|
|
56586
56584
|
if (progressDismissTimeoutRef.current) {
|