@kontourai/survey 1.10.0 → 1.12.0
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/example-data/public-directory-review-resource.d.ts +2 -0
- package/dist/example-data/public-directory-review-resource.js +1 -0
- package/dist/examples/calibrated-auto-accept.d.ts +29 -0
- package/dist/examples/calibrated-auto-accept.js +135 -0
- package/dist/examples/review-workbench/downstream-public-directory-adapter.js +3 -1
- package/dist/src/review-resource.d.ts +18 -0
- package/dist/src/review-workbench/review-queue-session.d.ts +30 -0
- package/dist/src/review-workbench/review-queue-session.js +30 -0
- package/dist/src/review-workbench/review-session-replay.js +7 -2
- package/dist/src/review-workbench/review-workbench-css.generated.js +608 -1426
- package/dist/src/review-workbench/review-workbench-data.d.ts +4 -0
- package/dist/src/review-workbench/review-workbench-data.js +172 -0
- package/dist/src/review-workbench/review-workbench-element.d.ts +5 -1
- package/dist/src/review-workbench/review-workbench-element.js +86 -3
- package/dist/src/review-workbench/review-workbench.css +608 -1426
- package/dist/src/review-workbench/review-workbench.d.ts +11 -1
- package/dist/src/review-workbench/review-workbench.js +390 -538
- package/dist/src/review-workbench/review-workbench.standalone.css +602 -1421
- package/package.json +1 -1
|
@@ -92,8 +92,18 @@ export interface ReviewWorkbenchResult {
|
|
|
92
92
|
readonly selectedCandidate: ReviewCandidate;
|
|
93
93
|
readonly selectedCandidateId: string;
|
|
94
94
|
readonly selectedCandidateRole?: ReviewCandidate["role"];
|
|
95
|
+
/** The selected candidate's original value, unaffected by any reviewer edit. Used
|
|
96
|
+
* for candidate-identity matching (see `matchingSelectedCandidate`); consumers who
|
|
97
|
+
* want the reviewer's edited value should read `effectiveValue` instead. */
|
|
95
98
|
readonly selectedValue: unknown;
|
|
96
99
|
readonly selectedDisplayValue: string;
|
|
100
|
+
/** Reviewer-edited override captured for an accept-proposed decision, if the
|
|
101
|
+
* reviewer changed the proposed value before applying it. Additive/optional. */
|
|
102
|
+
readonly editedValue?: unknown;
|
|
103
|
+
/** The value that should actually be applied: `editedValue` when present (and the
|
|
104
|
+
* decision selects the proposed candidate), otherwise `selectedValue`. */
|
|
105
|
+
readonly effectiveValue: unknown;
|
|
106
|
+
readonly effectiveDisplayValue: string;
|
|
97
107
|
readonly unselectedCandidates: readonly ReviewCandidate[];
|
|
98
108
|
readonly reviewDecision: ReviewDecision;
|
|
99
109
|
readonly status: ReviewDecision["spec"]["status"];
|
|
@@ -166,7 +176,7 @@ export declare function persistReviewSessionEvents(options: PersistReviewSession
|
|
|
166
176
|
export declare function createPersistentReviewSessionEventStore(options: PersistentReviewSessionEventStoreOptions): ReviewSessionEventStore & {
|
|
167
177
|
events(): readonly ReviewSessionEvent[];
|
|
168
178
|
};
|
|
169
|
-
export declare function renderReviewWorkbenchHtml(state: ReviewWorkbenchState | ReviewQueueSessionState,
|
|
179
|
+
export declare function renderReviewWorkbenchHtml(state: ReviewWorkbenchState | ReviewQueueSessionState, _events?: readonly ReviewSessionEvent[], options?: {
|
|
170
180
|
readonly presentationAdapter?: ReviewPresentationAdapter;
|
|
171
181
|
}): string;
|
|
172
182
|
export declare function mountReviewWorkbench(root: HTMLElement, startState?: ReviewQueueSessionState | ReviewWorkbenchState, options?: MountReviewWorkbenchOptions): void;
|