@sapia-ai/chatbot-v3 1.3.0 → 1.3.1-beta.1.g9504c7e
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/core/constants.d.ts +6 -0
- package/dist/core/interview.d.ts +10 -0
- package/dist/core/persistence.d.ts +3 -0
- package/dist/core/store.d.ts +8 -0
- package/dist/index.js +5469 -5428
- package/dist/react/bubbleViewModel.d.ts +4 -1
- package/dist/react/strings.d.ts +4 -1
- package/dist/ui/chat/types.d.ts +5 -0
- package/dist/ui/primitives/Dialog/Dialog.d.ts +2 -0
- package/dist/ui/shell/AgcGuidanceDialog/AgcGuidanceDialog.d.ts +14 -0
- package/dist/ui/shell/DoneScreen/DoneScreen.d.ts +1 -5
- package/dist-umd/sapia-chatbot.umd.js +253 -247
- package/package.json +1 -1
package/dist/core/constants.d.ts
CHANGED
|
@@ -18,6 +18,12 @@ export declare const QUESTION_TAG_VALUE_TERMS_CONSENT = "ph_i_accept";
|
|
|
18
18
|
export declare const QUESTION_MASTER_ID_TERMS_CONSENT = "ph_i_accept";
|
|
19
19
|
/** masterId the BE gives the final submit button. */
|
|
20
20
|
export declare const QUESTION_MASTER_ID_SUBMIT = "ph_submit_assessment";
|
|
21
|
+
/**
|
|
22
|
+
* Bubble id the BE gives the "you already started this assessment" notice. Its link must carry the
|
|
23
|
+
* candidate off to the assessment already in progress, so it is the one agent link that stays in
|
|
24
|
+
* the current tab — a new tab would leave them sitting in this dead duplicate.
|
|
25
|
+
*/
|
|
26
|
+
export declare const DUPLICATED_ASSESSMENT_LINK_BUBBLE_ID = "410270a8-73c9-51b8-b6ae-a6effc5e6cda";
|
|
21
27
|
/** BGQ option trigger actions the BE reads as "this is the consent / submit button". */
|
|
22
28
|
export declare const TRIGGER_ACTION_CONSENT = "continue_assessment_with_consent";
|
|
23
29
|
export declare const TRIGGER_ACTION_SUBMIT = "submit_assessment";
|
package/dist/core/interview.d.ts
CHANGED
|
@@ -65,6 +65,8 @@ export declare class InterviewEngine {
|
|
|
65
65
|
private lastVideoAnswer?;
|
|
66
66
|
/** Option id held back pending the AGC warning resolution. */
|
|
67
67
|
private pendingAgcOptionId?;
|
|
68
|
+
/** Once-per-session latch for the AI-use guidance; the persisted flag covers reloads. */
|
|
69
|
+
private agcGuidanceTriggered;
|
|
68
70
|
constructor(deps: InterviewEngineDeps);
|
|
69
71
|
/** Fetch the translation file; on failure the bundled fallback is used. */
|
|
70
72
|
private loadTranslations;
|
|
@@ -171,6 +173,14 @@ export declare class InterviewEngine {
|
|
|
171
173
|
continueAfterAgcWarning(): Promise<void>;
|
|
172
174
|
/** Dismiss the AGC warning to edit the answer (legacy "Edit"). */
|
|
173
175
|
dismissAgcWarning(): void;
|
|
176
|
+
/**
|
|
177
|
+
* Proactive AI-use guidance, shown once per assessment when the candidate reaches their
|
|
178
|
+
* first free-text interview question. Re-editing an earlier answer never triggers it —
|
|
179
|
+
* the candidate has already been told (legacy useAgcGuidance).
|
|
180
|
+
*/
|
|
181
|
+
private maybeShowAgcGuidance;
|
|
182
|
+
/** Candidate acknowledged the guidance; persist before a reload can lose it. */
|
|
183
|
+
acknowledgeAgcGuidance(): void;
|
|
174
184
|
/** Dismiss the edit-failure dialog; the composer reopens on the edit, so send retries it. */
|
|
175
185
|
dismissEditFailure(): void;
|
|
176
186
|
/** Emits the legacy INVALID_PASTE_ANSWER_ACTION log; fires only once a paste has been refused. */
|
|
@@ -5,3 +5,6 @@ export declare const saveVerifiedEmail: (assessmentId: string, candidateEmail: s
|
|
|
5
5
|
/** Whether the candidate opted out of the below-minimum word-count warning for this assessment. */
|
|
6
6
|
export declare const getSkipShortAnswerWarning: (assessmentId: string) => boolean;
|
|
7
7
|
export declare const setSkipShortAnswerWarning: (assessmentId: string, skip: boolean) => void;
|
|
8
|
+
/** Whether this assessment's proactive AI-use guidance has already been acknowledged. */
|
|
9
|
+
export declare const getAgcGuidanceShown: (assessmentId: string) => boolean;
|
|
10
|
+
export declare const setAgcGuidanceShown: (assessmentId: string) => void;
|
package/dist/core/store.d.ts
CHANGED
|
@@ -62,8 +62,16 @@ export type InterviewState = {
|
|
|
62
62
|
allowNextAgcDetection?: boolean;
|
|
63
63
|
/** Terms accepted for this assessment; locks PII and SMS-consent answers against re-editing. */
|
|
64
64
|
termsAccepted?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* The BE reported this assessment a duplicate of one already in progress. Latched: the status
|
|
67
|
+
* can be set on the response carrying the notice and gone from the empty one that follows. Holds
|
|
68
|
+
* back the completion screen and freezes every answer — nothing written here can be assessed.
|
|
69
|
+
*/
|
|
70
|
+
duplicated?: boolean;
|
|
65
71
|
/** Show the AGC warning modal (automated content suspected on submit). */
|
|
66
72
|
showAgcWarning?: boolean;
|
|
73
|
+
/** Show the one-time proactive AI-use guidance modal, before the first free-text answer. */
|
|
74
|
+
showAgcGuidance?: boolean;
|
|
67
75
|
/** Question whose edited answer failed to save; drives the retry dialog. */
|
|
68
76
|
editFailedQuestionId?: string;
|
|
69
77
|
/** Interview language (resolved); drives translations + text direction. */
|