@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.
@@ -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, events?: readonly ReviewSessionEvent[], options?: {
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;