@e-llm-studio/citation 0.0.243 → 0.0.245
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/assests/icons/InfoAlert.js +2 -0
- package/dist/assests/icons/InfoAlert.js.map +1 -0
- package/dist/cjs/assests/icons/InfoAlert.js +2 -0
- package/dist/cjs/assests/icons/InfoAlert.js.map +1 -0
- package/dist/cjs/features/PdfViewer/PdfContainer.js +1 -1
- package/dist/cjs/features/PdfViewer/PdfStyle.js +1 -1
- package/dist/cjs/features/PdfViewer/PdfToolbar.js +1 -1
- package/dist/cjs/features/PdfViewer/PdfViewer.js +1 -1
- package/dist/cjs/features/PdfViewer/rotationManager.js +2 -0
- package/dist/cjs/features/PdfViewer/rotationManager.js.map +1 -0
- package/dist/cjs/features/ReviewPanel/ReviewPanel.js +2 -0
- package/dist/cjs/features/ReviewPanel/ReviewPanel.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/CardWrapper.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/CardWrapper.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIcon.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIcon.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/PageCheck.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/PageCheck.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/RevertCard.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/RevertCard.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/ReviewedBoundaryActions.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/ReviewedBoundaryActions.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/helper.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/helper.js.map +1 -0
- package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/features/PdfViewer/PdfContainer.js +1 -1
- package/dist/features/PdfViewer/PdfStyle.js +1 -1
- package/dist/features/PdfViewer/PdfToolbar.js +1 -1
- package/dist/features/PdfViewer/PdfViewer.js +1 -1
- package/dist/features/PdfViewer/rotationManager.js +2 -0
- package/dist/features/PdfViewer/rotationManager.js.map +1 -0
- package/dist/features/ReviewPanel/ReviewPanel.js +2 -0
- package/dist/features/ReviewPanel/ReviewPanel.js.map +1 -0
- package/dist/features/SegmentReviewComponents/BoundaryCard.js +2 -0
- package/dist/features/SegmentReviewComponents/BoundaryCard.js.map +1 -0
- package/dist/features/SegmentReviewComponents/CardWrapper.js +2 -0
- package/dist/features/SegmentReviewComponents/CardWrapper.js.map +1 -0
- package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js +2 -0
- package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +1 -0
- package/dist/features/SegmentReviewComponents/CognitiveIcon.js +2 -0
- package/dist/features/SegmentReviewComponents/CognitiveIcon.js.map +1 -0
- package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js +2 -0
- package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js.map +1 -0
- package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js +2 -0
- package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js.map +1 -0
- package/dist/features/SegmentReviewComponents/LabelCheck.js +2 -0
- package/dist/features/SegmentReviewComponents/LabelCheck.js.map +1 -0
- package/dist/features/SegmentReviewComponents/PageCheck.js +2 -0
- package/dist/features/SegmentReviewComponents/PageCheck.js.map +1 -0
- package/dist/features/SegmentReviewComponents/RevertCard.js +2 -0
- package/dist/features/SegmentReviewComponents/RevertCard.js.map +1 -0
- package/dist/features/SegmentReviewComponents/RevertSuccessCard.js +2 -0
- package/dist/features/SegmentReviewComponents/RevertSuccessCard.js.map +1 -0
- package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js +2 -0
- package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js.map +1 -0
- package/dist/features/SegmentReviewComponents/ReviewedBoundaryActions.js +2 -0
- package/dist/features/SegmentReviewComponents/ReviewedBoundaryActions.js.map +1 -0
- package/dist/features/SegmentReviewComponents/ReviewedCard.js +2 -0
- package/dist/features/SegmentReviewComponents/ReviewedCard.js.map +1 -0
- package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +2 -0
- package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js.map +1 -0
- package/dist/features/SegmentReviewComponents/helper.js +2 -0
- package/dist/features/SegmentReviewComponents/helper.js.map +1 -0
- package/dist/features/SegmentReviewComponents/reviewStepAdapters.js +2 -0
- package/dist/features/SegmentReviewComponents/reviewStepAdapters.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/types/src/assests/icons/ChartSplitIcon.d.ts +3 -0
- package/dist/types/src/assests/icons/ChartSplitIcon.d.ts.map +1 -0
- package/dist/types/src/assests/icons/InfoAlert.d.ts +3 -0
- package/dist/types/src/assests/icons/InfoAlert.d.ts.map +1 -0
- package/dist/types/src/features/PdfViewer/PdfContainer.d.ts +4 -2
- package/dist/types/src/features/PdfViewer/PdfContainer.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfStyle.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts +4 -1
- package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfViewer.d.ts +19 -2
- package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/coordinateTransformer.d.ts +41 -0
- package/dist/types/src/features/PdfViewer/coordinateTransformer.d.ts.map +1 -0
- package/dist/types/src/features/PdfViewer/rotationManager.d.ts +23 -0
- package/dist/types/src/features/PdfViewer/rotationManager.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts +85 -0
- package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/CardWrapper.d.ts +26 -0
- package/dist/types/src/features/SegmentReviewComponents/CardWrapper.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts +3 -0
- package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/CognitiveIcon.d.ts +3 -0
- package/dist/types/src/features/SegmentReviewComponents/CognitiveIcon.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/CognitiveIntegrity.d.ts +33 -0
- package/dist/types/src/features/SegmentReviewComponents/CognitiveIntegrity.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts +7 -0
- package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts +87 -0
- package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts +51 -0
- package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts +37 -0
- package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts +9 -0
- package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts +7 -0
- package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts +17 -0
- package/dist/types/src/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts +33 -0
- package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts +124 -0
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts +13 -0
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/helper.d.ts +53 -0
- package/dist/types/src/features/SegmentReviewComponents/helper.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/index.d.ts +23 -0
- package/dist/types/src/features/SegmentReviewComponents/index.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts +242 -0
- package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +4 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export interface LabelCheckOption {
|
|
4
|
+
/** Stable value returned with the selected option. */
|
|
5
|
+
id: string;
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
/** Displays the custom-label field when this option is selected. */
|
|
9
|
+
requiresInput?: boolean;
|
|
10
|
+
inputPlaceholder?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare enum LabelReviewActionEnum {
|
|
14
|
+
KEEP_LABEL = "KEEP_LABEL",
|
|
15
|
+
SET_CUSTOM_LABEL = "SET_CUSTOM_LABEL"
|
|
16
|
+
}
|
|
17
|
+
export type LabelReviewAction = `${LabelReviewActionEnum}`;
|
|
18
|
+
/** Metadata supplied by a `Label Review` review step. */
|
|
19
|
+
export interface LabelReviewMetadata {
|
|
20
|
+
current_label?: string | null;
|
|
21
|
+
custom_label?: string | null;
|
|
22
|
+
group_id?: string | null;
|
|
23
|
+
user_actions: readonly LabelReviewAction[];
|
|
24
|
+
}
|
|
25
|
+
export interface LabelReviewConfirmDetails {
|
|
26
|
+
selectedIndex: number;
|
|
27
|
+
option: LabelCheckOption;
|
|
28
|
+
customLabel?: string;
|
|
29
|
+
metadata?: LabelReviewMetadata;
|
|
30
|
+
}
|
|
31
|
+
export declare const createLabelCheckOptions: (metadata: LabelReviewMetadata) => LabelCheckOption[];
|
|
32
|
+
export declare const isLabelReviewAction: (value: string) => value is "KEEP_LABEL" | "SET_CUSTOM_LABEL";
|
|
33
|
+
export interface LabelCheckStyles {
|
|
34
|
+
root?: SxProps<Theme>;
|
|
35
|
+
header?: SxProps<Theme>;
|
|
36
|
+
option?: SxProps<Theme>;
|
|
37
|
+
confirmButton?: SxProps<Theme>;
|
|
38
|
+
customInput?: SxProps<Theme>;
|
|
39
|
+
confirmationWarning?: SxProps<Theme>;
|
|
40
|
+
footer?: SxProps<Theme>;
|
|
41
|
+
}
|
|
42
|
+
export interface LabelCheckProps {
|
|
43
|
+
headerName?: ReactNode;
|
|
44
|
+
title: ReactNode;
|
|
45
|
+
pageNo?: ReactNode;
|
|
46
|
+
content?: ReactNode;
|
|
47
|
+
/** Replaces content when the API provides an operation-level revert summary. */
|
|
48
|
+
revertSummary?: ReactNode;
|
|
49
|
+
cognitiveScore?: ReactNode;
|
|
50
|
+
/** Explicit options. When omitted, options are derived from metadata.user_actions. */
|
|
51
|
+
config?: readonly LabelCheckOption[];
|
|
52
|
+
/** Metadata from a review step whose type is `Label Review`. */
|
|
53
|
+
metadata?: LabelReviewMetadata;
|
|
54
|
+
/** Controlled selection. Omit to let LabelCheck manage it internally. */
|
|
55
|
+
selectedIndex?: number | null;
|
|
56
|
+
defaultSelectedIndex?: number | null;
|
|
57
|
+
onSelectionChange?: (selectedIndex: number, option: LabelCheckOption) => void;
|
|
58
|
+
/** Controlled custom-label value. Omit to use internal state. */
|
|
59
|
+
customLabel?: string;
|
|
60
|
+
defaultCustomLabel?: string;
|
|
61
|
+
onCustomLabelChange?: (value: string) => void;
|
|
62
|
+
/** Legacy/index-based callback retained for explicitly configured options. */
|
|
63
|
+
onConfirm?: (selectedIndex: number, option: LabelCheckOption, customLabel?: string) => void;
|
|
64
|
+
/** Preferred callback when options come from Label Review metadata. */
|
|
65
|
+
onActionConfirm?: (action: LabelReviewAction, details: LabelReviewConfirmDetails) => void;
|
|
66
|
+
onCognitiveClick?: () => void;
|
|
67
|
+
onAdjustManually?: () => void;
|
|
68
|
+
onClose?: () => void;
|
|
69
|
+
confirmLabel?: ReactNode;
|
|
70
|
+
customInputAriaLabel?: string;
|
|
71
|
+
manualPrompt?: ReactNode;
|
|
72
|
+
manualActionLabel?: ReactNode;
|
|
73
|
+
cognitiveLabel?: ReactNode;
|
|
74
|
+
showAdjustManually?: boolean;
|
|
75
|
+
showCognitiveIntegrity?: boolean;
|
|
76
|
+
showCloseButton?: boolean;
|
|
77
|
+
confirmDisabled?: boolean;
|
|
78
|
+
confirmationBlocked?: boolean;
|
|
79
|
+
confirmationWarning?: ReactNode;
|
|
80
|
+
disableAllActions?: boolean;
|
|
81
|
+
width?: number | string;
|
|
82
|
+
maxWidth?: number | string;
|
|
83
|
+
className?: string;
|
|
84
|
+
styles?: LabelCheckStyles;
|
|
85
|
+
}
|
|
86
|
+
export default function LabelCheck({ headerName, title, pageNo, content, revertSummary, cognitiveScore, config, metadata, selectedIndex, defaultSelectedIndex, onSelectionChange, customLabel, defaultCustomLabel, onCustomLabelChange, onConfirm, onActionConfirm, onCognitiveClick, onAdjustManually, onClose, confirmLabel, customInputAriaLabel, manualPrompt, manualActionLabel, cognitiveLabel, showAdjustManually, showCognitiveIntegrity, showCloseButton, confirmDisabled, confirmationBlocked, confirmationWarning, disableAllActions, width, maxWidth, className, styles, }: LabelCheckProps): import("react/jsx-runtime").JSX.Element;
|
|
87
|
+
//# sourceMappingURL=LabelCheck.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabelCheck.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/LabelCheck.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAe1D,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAa3D,MAAM,WAAW,gBAAgB;IAC/B,sDAAsD;IACtD,EAAE,EA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,CAAC,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,UAA0B,EAC1B,KAAK,EACL,MAAM,EACN,OAA8G,EAC9G,aAAa,EACb,cAAc,EACd,MAAM,EACN,QAAQ,EACR,aAAa,EACb,oBAA2B,EAC3B,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,YAAwB,EACxB,oBAA8C,EAC9C,YAA8C,EAC9C,iBAAqC,EACrC,cAAsC,EACtC,kBAAyB,EACzB,sBAA6B,EAC7B,eAAsB,EACtB,eAAuB,EACvB,mBAA2B,EAC3B,mBAAmB,EACnB,iBAAyB,EACzB,KAAW,EACX,QAAc,EACd,SAAS,EACT,MAAM,GACP,EAAE,eAAe,2CAkWjB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export declare enum PageCheckActionEnum {
|
|
4
|
+
YES = "YES",
|
|
5
|
+
NO = "NO"
|
|
6
|
+
}
|
|
7
|
+
export type PageCheckAction = `${PageCheckActionEnum}`;
|
|
8
|
+
export type PageCheckPageType = 'table' | 'drawing';
|
|
9
|
+
/** Metadata supplied by a `Page Type Check` review step. */
|
|
10
|
+
export interface PageCheckMetadata {
|
|
11
|
+
user_actions: readonly PageCheckAction[];
|
|
12
|
+
page_type?: PageCheckPageType | null;
|
|
13
|
+
page_num?: number | null;
|
|
14
|
+
classification_id?: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface PageCheckConfirmDetails {
|
|
17
|
+
action: PageCheckAction;
|
|
18
|
+
pageType?: PageCheckPageType | null;
|
|
19
|
+
metadata?: PageCheckMetadata;
|
|
20
|
+
}
|
|
21
|
+
export declare const isPageCheckAction: (value: string) => value is "YES" | "NO";
|
|
22
|
+
export interface PageCheckStyles {
|
|
23
|
+
root?: SxProps<Theme>;
|
|
24
|
+
header?: SxProps<Theme>;
|
|
25
|
+
yesButton?: SxProps<Theme>;
|
|
26
|
+
noButton?: SxProps<Theme>;
|
|
27
|
+
footer?: SxProps<Theme>;
|
|
28
|
+
}
|
|
29
|
+
export interface PageCheckProps {
|
|
30
|
+
headerName?: ReactNode;
|
|
31
|
+
title: ReactNode;
|
|
32
|
+
pageNo?: ReactNode;
|
|
33
|
+
content?: ReactNode;
|
|
34
|
+
cognitiveScore?: ReactNode;
|
|
35
|
+
pageType?: PageCheckPageType | null;
|
|
36
|
+
metadata?: PageCheckMetadata;
|
|
37
|
+
/** Metadata from a review step whose type is `Page Type Check`. */
|
|
38
|
+
onActionConfirm?: (action: PageCheckAction, details: PageCheckConfirmDetails) => void;
|
|
39
|
+
onCognitiveClick?: () => void;
|
|
40
|
+
onClose?: () => void;
|
|
41
|
+
showCognitiveIntegrity?: boolean;
|
|
42
|
+
showCloseButton?: boolean;
|
|
43
|
+
confirmDisabled?: boolean;
|
|
44
|
+
disableAllActions?: boolean;
|
|
45
|
+
width?: number | string;
|
|
46
|
+
maxWidth?: number | string;
|
|
47
|
+
className?: string;
|
|
48
|
+
styles?: PageCheckStyles;
|
|
49
|
+
}
|
|
50
|
+
export default function PageCheck({ headerName, title, pageNo, content, cognitiveScore, pageType, metadata, onActionConfirm, onCognitiveClick, onClose, showCognitiveIntegrity, showCloseButton, confirmDisabled, disableAllActions, width, maxWidth, className, styles, }: PageCheckProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
//# sourceMappingURL=PageCheck.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageCheck.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/PageCheck.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAUpD,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAa3D,oBAAY,mBAAmB;IAC7B,GAAG,QAAQ;IACX,EAAE,OAAO;CACV;AAED,MAAM,MAAM,eAAe,GAAG,GAAG,mBAAmB,EAAE,CAAC;AACvD,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpD,4DAA4D;AAC5D,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,SAAS,eAAe,EAAE,CAAC;IACzC,SAAS,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,eAAO,MAAM,iBAAiB,UAAW,MAAM,0BAC4B,CAAC;AAE5E,MAAM,WAAW,eAAe;IAC9B,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gBAAgB,EAChB,OAAO,EACP,sBAA6B,EAC7B,eAAsB,EACtB,eAAuB,EACvB,iBAAyB,EACzB,KAAW,EACX,QAAc,EACd,SAAS,EACT,MAAM,GACP,EAAE,cAAc,2CA+LhB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface SegmentData {
|
|
3
|
+
title: string;
|
|
4
|
+
startPage: number;
|
|
5
|
+
endPage: number;
|
|
6
|
+
}
|
|
7
|
+
export interface RevertData {
|
|
8
|
+
currentSegment: SegmentData;
|
|
9
|
+
previousSegments: SegmentData[];
|
|
10
|
+
}
|
|
11
|
+
/** Value returned by the host after the revert request and refresh complete. */
|
|
12
|
+
export interface RevertActionResult {
|
|
13
|
+
message?: string | null;
|
|
14
|
+
}
|
|
15
|
+
export interface RevertCardProps {
|
|
16
|
+
icon: ReactNode;
|
|
17
|
+
title: string;
|
|
18
|
+
pageRange: string;
|
|
19
|
+
description: string | null;
|
|
20
|
+
onRevert: () => void | RevertActionResult | Promise<void | RevertActionResult>;
|
|
21
|
+
/** Called only after `onRevert` completes successfully. */
|
|
22
|
+
onRevertComplete?: (result: void | RevertActionResult) => void;
|
|
23
|
+
onRevertError?: (error: unknown) => void;
|
|
24
|
+
revertData: RevertData;
|
|
25
|
+
/** Prevent submission when the host cannot provide a valid revert request. */
|
|
26
|
+
confirmDisabled?: boolean;
|
|
27
|
+
/** Hide when the surrounding reviewed-card shell already renders it. */
|
|
28
|
+
showDocumentHeader?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Displays an approved action summary and reveals the appropriate revert
|
|
32
|
+
* confirmation after the user selects Revert. An empty `previousSegments`
|
|
33
|
+
* collection represents keep-as-is; structural changes provide the segments
|
|
34
|
+
* that will be restored after reverting.
|
|
35
|
+
*/
|
|
36
|
+
export default function RevertCard({ icon, title, pageRange, description, onRevert, onRevertComplete, onRevertError, revertData, confirmDisabled, showDocumentHeader, }: RevertCardProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
//# sourceMappingURL=RevertCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RevertCard.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/RevertCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAUjD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,cAAc,EAAE,WAAW,CAAC;IAC5B,gBAAgB,EAAE,WAAW,EAAE,CAAC;CACjC;AAED,gFAAgF;AAChF,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,IAAI,GAAG,kBAAkB,GAAG,OAAO,CAAC,IAAI,GAAG,kBAAkB,CAAC,CAAC;IAC/E,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,GAAG,kBAAkB,KAAK,IAAI,CAAC;IAC/D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,UAAU,EAAE,UAAU,CAAC;IACvB,8EAA8E;IAC9E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AA8BD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,IAAI,EACJ,KAAK,EACL,SAAS,EACT,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,eAAuB,EACvB,kBAAyB,GAC1B,EAAE,eAAe,2CAgPjB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface RevertSuccessCardProps {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
description: ReactNode;
|
|
5
|
+
onReview: () => void;
|
|
6
|
+
reviewLabel?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export default function RevertSuccessCard({ title, description, onReview, reviewLabel, }: RevertSuccessCardProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=RevertSuccessCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RevertSuccessCard.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/RevertSuccessCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,EAAE,SAAS,CAAC;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,KAAK,EACL,WAAW,EACX,QAAQ,EACR,WAAsB,GACvB,EAAE,sBAAsB,2CAkExB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface RevertSummaryNoticeProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/** Operation summary shown in place of the normal review-step question. */
|
|
6
|
+
export default function RevertSummaryNotice({ children, }: RevertSummaryNoticeProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=RevertSummaryNotice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RevertSummaryNotice.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/RevertSummaryNotice.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,2EAA2E;AAC3E,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,QAAQ,GACT,EAAE,wBAAwB,2CAwB1B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type BoundaryReviewAction, type BoundaryReviewConfirmDetails, type BoundaryReviewMetadata } from './BoundaryCard';
|
|
3
|
+
import type { SegmentReviewAction } from './reviewStepAdapters';
|
|
4
|
+
export declare const getAdditionalBoundaryActions: (reviewAction?: SegmentReviewAction) => BoundaryReviewAction[];
|
|
5
|
+
export interface ReviewedBoundaryActionsProps {
|
|
6
|
+
metadata: BoundaryReviewMetadata;
|
|
7
|
+
reviewAction?: SegmentReviewAction;
|
|
8
|
+
startPage: number;
|
|
9
|
+
endPage: number;
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
previousSegmentTitle?: ReactNode;
|
|
12
|
+
nextSegmentTitle?: ReactNode;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onConfirm: (action: BoundaryReviewAction, details: BoundaryReviewConfirmDetails) => void;
|
|
15
|
+
}
|
|
16
|
+
export default function ReviewedBoundaryActions({ metadata, reviewAction, startPage, endPage, title, previousSegmentTitle, nextSegmentTitle, disabled, onConfirm, }: ReviewedBoundaryActionsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
+
//# sourceMappingURL=ReviewedBoundaryActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReviewedBoundaryActions.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/ReviewedBoundaryActions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAW1D,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAKhE,eAAO,MAAM,4BAA4B,kBACxB,mBAAmB,KACjC,oBAAoB,EAQtB,CAAC;AAgDF,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,sBAAsB,CAAC;IACjC,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,CACT,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EAAE,4BAA4B,KAClC,IAAI,CAAC;CACX;AAED,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,OAAO,EACP,KAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,QAAgB,EAChB,SAAS,GACV,EAAE,4BAA4B,kDAmW9B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export interface ReviewedCardStyles {
|
|
4
|
+
root?: SxProps<Theme>;
|
|
5
|
+
header?: SxProps<Theme>;
|
|
6
|
+
content?: SxProps<Theme>;
|
|
7
|
+
footer?: SxProps<Theme>;
|
|
8
|
+
}
|
|
9
|
+
export interface ReviewedCardProps {
|
|
10
|
+
headerName?: ReactNode;
|
|
11
|
+
headerIcon?: ReactNode;
|
|
12
|
+
title: ReactNode;
|
|
13
|
+
pageNo?: ReactNode;
|
|
14
|
+
summary?: ReactNode;
|
|
15
|
+
/** Actions exposed only after this review has been resolved. */
|
|
16
|
+
additionalActions?: ReactNode;
|
|
17
|
+
cognitiveScore?: ReactNode;
|
|
18
|
+
onCognitiveClick?: () => void;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
cognitiveLabel?: ReactNode;
|
|
21
|
+
showCognitiveIntegrity?: boolean;
|
|
22
|
+
showCloseButton?: boolean;
|
|
23
|
+
width?: number | string;
|
|
24
|
+
maxWidth?: number | string;
|
|
25
|
+
className?: string;
|
|
26
|
+
styles?: ReviewedCardStyles;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Read-only review card shell. The middle stack is intentionally empty until
|
|
30
|
+
* the reviewed-action content is introduced.
|
|
31
|
+
*/
|
|
32
|
+
export default function ReviewedCard({ headerName, headerIcon, title, pageNo, summary, additionalActions, cognitiveScore, onCognitiveClick, onClose, cognitiveLabel, showCognitiveIntegrity, showCloseButton, width, maxWidth, className, styles, }: ReviewedCardProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=ReviewedCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReviewedCard.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/ReviewedCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAa3D,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,UAAuB,EACvB,UAAU,EACV,KAAK,EACL,MAAM,EACN,OAAO,EACP,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,cAAsC,EACtC,sBAA6B,EAC7B,eAAsB,EACtB,KAAW,EACX,QAAc,EACd,SAAS,EACT,MAAM,GACP,EAAE,iBAAiB,2CAyInB"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { type CSSProperties } from 'react';
|
|
2
|
+
import { type PdfViewerProps } from '../PdfViewer/PdfViewer';
|
|
3
|
+
import { type BoundaryReviewAction, type BoundaryReviewConfirmDetails } from './BoundaryCard';
|
|
4
|
+
import { type LabelReviewAction, type LabelReviewConfirmDetails } from './LabelCheck';
|
|
5
|
+
import { type PageCheckAction, type PageCheckConfirmDetails } from './PageCheck';
|
|
6
|
+
import { type SegmentRevertInfo, type SegmentReviewSource } from './reviewStepAdapters';
|
|
7
|
+
import { type RevertActionResult } from './RevertCard';
|
|
8
|
+
type ForwardedPdfViewerProps = Partial<Omit<PdfViewerProps, 'pdfUrl' | 'pdfName' | 'segments' | 'onCurrentPageChange' | 'navigationRequest' | 'onNavigationSettled' | 'renderPage' | 'setRenderRange'>>;
|
|
9
|
+
export type ReviewConfidence = 'low' | 'medium' | 'high';
|
|
10
|
+
export type ReviewConfidenceFilter = 'low' | 'high' | 'all';
|
|
11
|
+
export type ReviewRedirectionType = 'boundary' | 'label' | 'page' | 'pageGroup';
|
|
12
|
+
export declare enum SegmentPdfSpecialZoomLevel {
|
|
13
|
+
ActualSize = "ActualSize",
|
|
14
|
+
PageFit = "PageFit",
|
|
15
|
+
PageWidth = "PageWidth"
|
|
16
|
+
}
|
|
17
|
+
export interface SelectedBadgeData {
|
|
18
|
+
reviewId: string;
|
|
19
|
+
segment_id: string | null;
|
|
20
|
+
reviewStepIndex: number;
|
|
21
|
+
kind: 'boundary' | 'label' | 'page';
|
|
22
|
+
pageNumber: number;
|
|
23
|
+
metadata: Record<string, any>;
|
|
24
|
+
}
|
|
25
|
+
export interface SegmentReviewActionContext {
|
|
26
|
+
reviewId: string;
|
|
27
|
+
segment: SegmentReviewSource;
|
|
28
|
+
pageNumber: number;
|
|
29
|
+
}
|
|
30
|
+
export interface PageTypeRevertDetails {
|
|
31
|
+
classification_id: string;
|
|
32
|
+
human_verdict: 'No';
|
|
33
|
+
}
|
|
34
|
+
export interface RedirectionData {
|
|
35
|
+
/** Change for every redirect request, including repeated redirects to the same badge. */
|
|
36
|
+
requestKey?: string | number;
|
|
37
|
+
pageNumber?: string;
|
|
38
|
+
type?: ReviewRedirectionType;
|
|
39
|
+
/** Stable backend segment id used to disambiguate reviews on the same page. */
|
|
40
|
+
segmentId?: string;
|
|
41
|
+
/** Exact review id returned by the wrapper, if the parent has it. */
|
|
42
|
+
reviewId?: string;
|
|
43
|
+
/** Stable backend page_classifications[].questions[].id for page-type redirects. */
|
|
44
|
+
classificationId?: string;
|
|
45
|
+
/** Optional page-type disambiguation when table/drawing checks share a page. */
|
|
46
|
+
pageType?: string;
|
|
47
|
+
/** type: 'pageGroup' only — ordered pages to step through, e.g. a segment's tabular pages. */
|
|
48
|
+
pages?: number[];
|
|
49
|
+
/** type: 'pageGroup' only — which page in `pages` to land on first. Defaults to 0. */
|
|
50
|
+
pageIndex?: number;
|
|
51
|
+
/** type: 'pageGroup' only — short label for the floating pill, e.g. "Tabular". */
|
|
52
|
+
groupLabel?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface SegmentReviewPdfWrapperProps {
|
|
55
|
+
pdfUrl: string;
|
|
56
|
+
pdfName?: string;
|
|
57
|
+
/** Live backend segments. Changes are re-extracted automatically. */
|
|
58
|
+
segments: readonly SegmentReviewSource[];
|
|
59
|
+
pdfViewerProps?: ForwardedPdfViewerProps;
|
|
60
|
+
totalPages?: number;
|
|
61
|
+
/** Special PDF zoom mode. Defaults to PageFit. */
|
|
62
|
+
specialZoomLevel?: SegmentPdfSpecialZoomLevel;
|
|
63
|
+
heightBuffer?: number;
|
|
64
|
+
showBadges?: boolean;
|
|
65
|
+
/** @deprecated Reviewed steps are always hidden from badges and navigation. */
|
|
66
|
+
showResolvedBadges?: boolean;
|
|
67
|
+
/** Confidence group placed first in the badge navigator. */
|
|
68
|
+
sortByConfidence?: ReviewConfidence;
|
|
69
|
+
/** Only render and navigate badges matching this confidence. */
|
|
70
|
+
filterByConfidence?: ReviewConfidenceFilter;
|
|
71
|
+
showBadgeNavigation?: boolean;
|
|
72
|
+
autoSelectReviewOnPageChange?: boolean;
|
|
73
|
+
autoAdvanceAfterConfirm?: boolean;
|
|
74
|
+
/** Restrict post-confirm auto-advance to pending reviews in this score band. */
|
|
75
|
+
autoAdvanceScoreBand?: ReviewConfidence;
|
|
76
|
+
/** Number of PDF page layers mounted before and after the visible range. */
|
|
77
|
+
badgePreloadPages?: number;
|
|
78
|
+
/** Vertical badge offset from the page's top-right edge. */
|
|
79
|
+
badgeOffsetTop?: number;
|
|
80
|
+
/** Horizontal inset from the external badge rail's right edge. */
|
|
81
|
+
badgeOffsetRight?: number;
|
|
82
|
+
badgeOffsetLeft?: number;
|
|
83
|
+
initialReviewId?: string;
|
|
84
|
+
onBoundaryAction?: (action: BoundaryReviewAction, details: BoundaryReviewConfirmDetails, context: SegmentReviewActionContext) => void | Promise<void>;
|
|
85
|
+
onLabelAction?: (action: LabelReviewAction, details: LabelReviewConfirmDetails, context: SegmentReviewActionContext) => void | Promise<void>;
|
|
86
|
+
onPageAction?: (action: PageCheckAction, details: PageCheckConfirmDetails, context: SegmentReviewActionContext) => void | Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* Revert a confirmed page-type decision by submitting `human_verdict: "No"`.
|
|
89
|
+
* Refresh the latest classifications before resolving this callback.
|
|
90
|
+
*/
|
|
91
|
+
onPageTypeRevert?: (details: PageTypeRevertDetails, context: SegmentReviewActionContext) => void | RevertActionResult | Promise<void | RevertActionResult>;
|
|
92
|
+
/**
|
|
93
|
+
* Submit the operation-level revert, poll it to completion, and refresh the
|
|
94
|
+
* latest segments before resolving this callback. `revert` is null when the
|
|
95
|
+
* current segment does not include revert metadata.
|
|
96
|
+
*/
|
|
97
|
+
onRevert?: (revert: SegmentRevertInfo | null, context: SegmentReviewActionContext) => void | RevertActionResult | Promise<void | RevertActionResult>;
|
|
98
|
+
/** Called when a badge is selected, with its complete source segment. */
|
|
99
|
+
onActiveReviewChange?: (reviewId: string | null, segment: SegmentReviewSource | null) => void;
|
|
100
|
+
onBadgeSelected?: (data: SelectedBadgeData) => void;
|
|
101
|
+
onCurrentPageChange?: (pageNumber: number) => void;
|
|
102
|
+
onActionError?: (error: unknown, context: SegmentReviewActionContext) => void;
|
|
103
|
+
onAdjustManually?: (context: SegmentReviewActionContext) => void;
|
|
104
|
+
onCognitiveClick?: (context: SegmentReviewActionContext) => void;
|
|
105
|
+
className?: string;
|
|
106
|
+
style?: CSSProperties;
|
|
107
|
+
viewerStyle?: CSSProperties;
|
|
108
|
+
railStyle?: CSSProperties;
|
|
109
|
+
redirectionData?: RedirectionData;
|
|
110
|
+
styles?: Record<string, React.CSSProperties>;
|
|
111
|
+
disableAllActions?: boolean;
|
|
112
|
+
disablePdfAnnotations?: boolean;
|
|
113
|
+
/** Disable the transparent PDF text layer that can overflow rotated pages. */
|
|
114
|
+
disablePdfTextLayer?: boolean;
|
|
115
|
+
disableTitleCheckUntilBoundaryCheckCompleted?: boolean;
|
|
116
|
+
manualPrompt?: string;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Orchestrates the PDF, review badges, page navigation, active card and actions.
|
|
120
|
+
* It consumes backend-shaped segments directly; cards never parse the raw payload.
|
|
121
|
+
*/
|
|
122
|
+
export default function SegmentReviewPdfWrapper({ pdfUrl, pdfName, segments, totalPages, styles, pdfViewerProps, specialZoomLevel, showBadges, sortByConfidence, filterByConfidence, showBadgeNavigation, autoSelectReviewOnPageChange, autoAdvanceAfterConfirm, autoAdvanceScoreBand, badgePreloadPages, badgeOffsetTop, badgeOffsetRight, badgeOffsetLeft, initialReviewId, manualPrompt, heightBuffer, onBoundaryAction, onLabelAction, onPageAction, onPageTypeRevert, onRevert, onActiveReviewChange, onCurrentPageChange, onActionError, disableAllActions, disablePdfAnnotations, disablePdfTextLayer, disableTitleCheckUntilBoundaryCheckCompleted, onAdjustManually, onCognitiveClick, className, style, viewerStyle, railStyle, redirectionData, onBadgeSelected, }: SegmentReviewPdfWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
123
|
+
export {};
|
|
124
|
+
//# sourceMappingURL=SegmentReviewPdfWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentReviewPdfWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/SegmentReviewPdfWr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wB,EACxB,kBAA0B,EAC1B,mBAA0B,EAC1B,4BAAoC,EACpC,uBAA8B,EAC9B,oBAAoB,EACpB,iBAAqB,EACrB,cAAmB,EACnB,gBAAqB,EACrB,eAAmB,EACnB,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,mBAAmB,EACnB,aAAa,EACb,iBAAyB,EACzB,qBAA6B,EAC7B,mBAA0B,EAC1B,4CAAoD,EACpD,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,WAAW,EACX,SAAS,EACT,eAAe,EACf,eAAe,GAChB,EAAE,4BAA4B,2CAkgE9B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SegmentReviewSource } from './reviewStepAdapters';
|
|
2
|
+
export interface SegmentReviewRedirectionTestProps {
|
|
3
|
+
pdfUrl: string;
|
|
4
|
+
segments: readonly SegmentReviewSource[];
|
|
5
|
+
pageCheckPdfUrl?: string;
|
|
6
|
+
pageCheckSegments?: readonly SegmentReviewSource[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Isolated development example for exercising prop-driven badge redirection.
|
|
10
|
+
* This file is intentionally not exported from the package entry point.
|
|
11
|
+
*/
|
|
12
|
+
export default function SegmentReviewRedirectionTest({ pdfUrl, segments, pageCheckPdfUrl, pageCheckSegments, }: SegmentReviewRedirectionTestProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=SegmentReviewRedirectionTest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentReviewRedirectionTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAEV,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;CACpD;AAwGD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAC,EACnD,MAAM,EACN,QAAQ,EACR,eAAoB,EACpB,iBAAsB,GACvB,EAAE,iCAAiC,2CAgSnC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ReviewStepSource, SegmentReviewSource } from './reviewStepAdapters';
|
|
2
|
+
export declare const getNumericScore: (score?: number | string | null) => number | null;
|
|
3
|
+
export declare const getFallbackScore: (confidence?: string | null) => 40 | 70 | 95 | null;
|
|
4
|
+
export declare const getResolvedScore: (score?: number | string | null, confidence?: string | null) => number | null;
|
|
5
|
+
export type ReviewScoreBand = 'low' | 'medium' | 'high';
|
|
6
|
+
/** Uses the same percentage thresholds as review badge colors. */
|
|
7
|
+
export declare const getReviewScoreBand: (score?: number | string | null) => ReviewScoreBand | null;
|
|
8
|
+
export declare const formatScore: (score?: number | string | null, confidence?: string | null) => string;
|
|
9
|
+
/** Returns the user-facing badge text for structural segment actions. */
|
|
10
|
+
export declare const getHumanActionBadgeLabel: (humanAction?: string | null) => "Merged" | "Split" | null;
|
|
11
|
+
/** Resolves an action label from pending or approved review-step data. */
|
|
12
|
+
export declare const getReviewStepActionBadgeLabel: (step: ReviewStepSource) => "Merged" | "Split" | null;
|
|
13
|
+
export declare const isReviewStepResolutionCurrent: (step: ReviewStepSource, segment: SegmentReviewSource) => boolean;
|
|
14
|
+
export declare const isReviewStepResolved: (step: ReviewStepSource, segment: SegmentReviewSource) => boolean;
|
|
15
|
+
/** Returns whether this boundary step belongs to a split or merge operation. */
|
|
16
|
+
export declare const hasStructuralBoundaryAction: (step: ReviewStepSource) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Resolves the structural label owned by this segment. Split history is copied
|
|
19
|
+
* to both outputs, so the retained `after` range is not the Split result. A
|
|
20
|
+
* merge result, on the other hand, is the expanded `after` range.
|
|
21
|
+
*/
|
|
22
|
+
export declare const getStructuralResultBadgeLabel: (segment: SegmentReviewSource) => "Merged" | "Split" | null;
|
|
23
|
+
/**
|
|
24
|
+
* Title checks inherit only merge results from their segment. Split remains
|
|
25
|
+
* specific to the boundary step that performed it.
|
|
26
|
+
*/
|
|
27
|
+
export declare const getTitleReviewActionBadgeLabel: (step: ReviewStepSource, segment: SegmentReviewSource, optimisticAction?: string | null) => "Merged" | "Split" | null;
|
|
28
|
+
/** Optimistic structural state wins over stale polling for boundary badges. */
|
|
29
|
+
export declare const getBoundaryReviewActionBadgeLabel: (step: ReviewStepSource, segment: SegmentReviewSource, optimisticAction?: string | null) => "Merged" | "Split" | null;
|
|
30
|
+
export declare const shouldHideStructuralBoundaryReview: (step: ReviewStepSource, segment: SegmentReviewSource, hasTitleReview: boolean, optimisticAction?: string | null) => boolean;
|
|
31
|
+
/** Polling has taken ownership only when it reflects the same optimistic action. */
|
|
32
|
+
export declare const hasPolledStructuralAction: (segment: SegmentReviewSource, optimisticAction?: string | null) => boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Finds the adjacent merge input while optimistic data owns the UI. Once the
|
|
35
|
+
* same directional action is visible in polling, the polled-state helper owns
|
|
36
|
+
* adjacency so a newly-next unrelated segment is never hidden for one frame.
|
|
37
|
+
*/
|
|
38
|
+
export declare const getOptimisticMergeImpactedSegmentKeys: (segments: readonly SegmentReviewSource[], optimisticActions: ReadonlyMap<string, string>, rangeAdjustedSegmentKeys?: ReadonlySet<string>) => Set<string>;
|
|
39
|
+
/**
|
|
40
|
+
* While a merge is applying, the action-bearing segment owns the Merged badge
|
|
41
|
+
* and its adjacent input segment is only impacted by that action. Once the
|
|
42
|
+
* resolution is committed, the adjacent input has disappeared and the
|
|
43
|
+
* expanded result remains badge-eligible.
|
|
44
|
+
*/
|
|
45
|
+
export declare const getPendingMergeImpactedSegmentKeys: (segments: readonly SegmentReviewSource[]) => Set<string>;
|
|
46
|
+
export declare const getConfidenceColors: (score?: number | string | null, _confidence?: string | null, awaiting_llm?: boolean) => {
|
|
47
|
+
border: string;
|
|
48
|
+
cardBorder: string;
|
|
49
|
+
background: string;
|
|
50
|
+
text: string;
|
|
51
|
+
divider: string;
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,eAAe,WAAY,MAAM,GAAG,MAAM,GAAG,IAAI,kBAY7D,CAAC;AAEF,eAAO,MAAM,gBAAgB,gBAAiB,MAAM,GAAG,IAAI,wBAW1D,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAAY,MAAM,GAAG,MAAM,GAAG,IAAI,eAAe,MAAM,GAAG,IAAI,kBACnC,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAExD,kEAAkE;AAClE,eAAO,MAAM,kBAAkB,WACrB,MAAM,GAAG,MAAM,GAAG,IAAI,KAC7B,eAAe,GAAG,IAOpB,CAAC;AAEF,eAAO,MAAM,WAAW,WAAY,MAAM,GAAG,MAAM,GAAG,IAAI,eAAe,MAAM,GAAG,IAAI,WAOrF,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,wBAAwB,iBAAkB,MAAM,GAAG,IAAI,8BAanE,CAAC;AA6LF,0EAA0E;AAC1E,eAAO,MAAM,6BAA6B,SAClC,gBAAgB,8BAWrB,CAAC;AAEJ,eAAO,MAAM,6BAA6B,SAClC,gBAAgB,WACb,mBAAmB,YAY7B,CAAC;AAEF,eAAO,MAAM,oBAAoB,SACzB,gBAAgB,WACb,mBAAmB,YAQ7B,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,2BAA2B,SAAU,gBAAgB,YAMtD,CAAC;AAEb;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,YAC/B,mBAAmB,8BAqD7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,SACnC,gBAAgB,WACb,mBAAmB,qBACT,MAAM,GAAG,IAAI,8BASjC,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,iCAAiC,SACtC,gBAAgB,WACb,mBAAmB,qBACT,MAAM,GAAG,IAAI,8BAGM,CAAC;AASzC,eAAO,MAAM,kCAAkC,SACvC,gBAAgB,WACb,mBAAmB,kBACZ,OAAO,qBACJ,MAAM,GAAG,IAAI,YAmBjC,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,YAC3B,mBAAmB,qBACT,MAAM,GAAG,IAAI,YAmBjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,aACtC,SAAS,mBAAmB,EAAE,qBACrB,YAAY,MAAM,EAAE,MAAM,CAAC,6BACpB,YAAY,MAAM,CAAC,gBAuC9C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,aACnC,SAAS,mBAAmB,EAAE,gBAwCzC,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY,MAAM,GAAG,MAAM,GAAG,IAAI,gBAAgB,MAAM,GAAG,IAAI,iBAAiB,OAAO;;;;;;CA6CtH,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { default as BoundaryCard } from './BoundaryCard';
|
|
2
|
+
export { createBoundaryCardOptions, isBoundaryReviewAction } from './BoundaryCard';
|
|
3
|
+
export type { BoundaryCardOption, BoundaryCardProps, BoundaryCardStyles, BoundaryReviewAction, BoundaryReviewConfirmDetails, BoundaryReviewMetadata, } from './BoundaryCard';
|
|
4
|
+
export { default as CardWrapper } from './CardWrapper';
|
|
5
|
+
export type { CardWrapperProps } from './CardWrapper';
|
|
6
|
+
export { default as CognitiveIcon } from './CognitiveIcon';
|
|
7
|
+
export { default as CognitiveIntegrity } from './CognitiveIntegrity';
|
|
8
|
+
export type { CognitiveIntegrityProps, CognitiveIntegrityStyles, } from './CognitiveIntegrity';
|
|
9
|
+
export { default as LabelCheck } from './LabelCheck';
|
|
10
|
+
export { createLabelCheckOptions, isLabelReviewAction } from './LabelCheck';
|
|
11
|
+
export type { LabelCheckOption, LabelCheckProps, LabelCheckStyles, LabelReviewAction, LabelReviewConfirmDetails, LabelReviewMetadata, } from './LabelCheck';
|
|
12
|
+
export { default as PageCheck } from './PageCheck';
|
|
13
|
+
export { isPageCheckAction } from './PageCheck';
|
|
14
|
+
export type { PageCheckAction, PageCheckConfirmDetails, PageCheckMetadata, PageCheckPageType, PageCheckProps, PageCheckStyles, } from './PageCheck';
|
|
15
|
+
export { extractSegmentReviewData } from './reviewStepAdapters';
|
|
16
|
+
export type { ExtractedBoundaryReview, ExtractedLabelReview, ExtractedPageReview, PageClassificationSource, ReviewStepMetadata, ReviewStepReview, ReviewStepSource, SegmentRevertInfo, SegmentRevertSnapshot, SegmentReviewSource, } from './reviewStepAdapters';
|
|
17
|
+
export { default as RevertCard } from './RevertCard';
|
|
18
|
+
export type { RevertActionResult, RevertCardProps, RevertData, SegmentData as RevertSegmentData, } from './RevertCard';
|
|
19
|
+
export { default as RevertSuccessCard } from './RevertSuccessCard';
|
|
20
|
+
export type { RevertSuccessCardProps } from './RevertSuccessCard';
|
|
21
|
+
export { default as SegmentReviewPdfWrapper, SegmentPdfSpecialZoomLevel, } from './SegmentReviewPdfWrapper';
|
|
22
|
+
export type { RedirectionData, ReviewConfidence, ReviewConfidenceFilter, ReviewRedirectionType, SegmentReviewActionContext, SegmentReviewPdfWrapperProps, } from './SegmentReviewPdfWrapper';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACnF,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EACV,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC5E,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACV,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,YAAY,EACV,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,kBA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