odaptos_design_system 2.0.105 → 2.0.107
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/Molecules/Interviews/Chat.d.ts +2 -1
- package/dist/Molecules/Interviews/Scenario.d.ts +2 -1
- package/dist/odaptos_design_system.cjs.development.js +5 -3
- package/dist/odaptos_design_system.cjs.development.js.map +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
- package/dist/odaptos_design_system.esm.js +5 -3
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Molecules/Interviews/Chat.tsx +3 -0
- package/src/Molecules/Interviews/Scenario.tsx +3 -3
|
@@ -40,5 +40,6 @@ export interface ChatProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
40
40
|
intervieweeName?: string;
|
|
41
41
|
stopRecording: () => void;
|
|
42
42
|
isObserver?: boolean;
|
|
43
|
+
onClickScenario?: () => void;
|
|
43
44
|
}
|
|
44
|
-
export declare const Chat: ({ chatTitle, welcomeTitle, welcomeDescription, startInterviewTitle, startInterviewBtnTitle, scenarioText, taskText, questionText, noteText, actionText, startInterviewIcon, startInterview, tasks, sendTask, currentTask, chatInputPlaceholder, chatInputValue, chatInputonChange, sendMessage, className, isTaskMode, isInterviewer, messages, idsTasksAlreadySent, customScrollingClassname, customContentClassname, disabledTask, disabledScenario, areAllTasksSend, isRecordingFinished, stopRecTitle, stopRecDescription, stopRecCTA, SusExplanationTitle, SusExplanationDescription, isSus, intervieweeName, stopRecording, isObserver, ...props }: ChatProps) => React.JSX.Element;
|
|
45
|
+
export declare const Chat: ({ chatTitle, welcomeTitle, welcomeDescription, startInterviewTitle, startInterviewBtnTitle, scenarioText, taskText, questionText, noteText, actionText, startInterviewIcon, startInterview, tasks, sendTask, currentTask, chatInputPlaceholder, chatInputValue, chatInputonChange, sendMessage, className, isTaskMode, isInterviewer, messages, idsTasksAlreadySent, customScrollingClassname, customContentClassname, disabledTask, disabledScenario, areAllTasksSend, isRecordingFinished, stopRecTitle, stopRecDescription, stopRecCTA, SusExplanationTitle, SusExplanationDescription, isSus, intervieweeName, stopRecording, isObserver, onClickScenario, ...props }: ChatProps) => React.JSX.Element;
|
|
@@ -9,5 +9,6 @@ export interface ScenarioProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
isObserver?: boolean;
|
|
12
|
+
onClickScenario?: () => void;
|
|
12
13
|
}
|
|
13
|
-
export declare const Scenario: ({ title, scenarioName, description, buttonText, buttonIcon, url, className, disabled, isObserver, ...props }: ScenarioProps) => React.JSX.Element;
|
|
14
|
+
export declare const Scenario: ({ title, scenarioName, description, buttonText, buttonIcon, url, className, disabled, isObserver, onClickScenario, ...props }: ScenarioProps) => React.JSX.Element;
|
|
@@ -12342,6 +12342,7 @@ const Chat = ({
|
|
|
12342
12342
|
intervieweeName,
|
|
12343
12343
|
stopRecording,
|
|
12344
12344
|
isObserver,
|
|
12345
|
+
onClickScenario,
|
|
12345
12346
|
...props
|
|
12346
12347
|
}) => {
|
|
12347
12348
|
const replaceURLs = message => {
|
|
@@ -12421,7 +12422,8 @@ const Chat = ({
|
|
|
12421
12422
|
buttonIcon: scenario.url ? startInterviewIcon : undefined,
|
|
12422
12423
|
url: scenario.url ?? '',
|
|
12423
12424
|
disabled: disabledScenario,
|
|
12424
|
-
isObserver: isObserver
|
|
12425
|
+
isObserver: isObserver,
|
|
12426
|
+
onClickScenario: onClickScenario
|
|
12425
12427
|
});
|
|
12426
12428
|
} else return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
12427
12429
|
}), isInterviewer && areAllTasksSend && !isRecordingFinished && /*#__PURE__*/React__default.createElement(EndRecording, {
|
|
@@ -13051,6 +13053,7 @@ const Scenario = ({
|
|
|
13051
13053
|
className,
|
|
13052
13054
|
disabled,
|
|
13053
13055
|
isObserver,
|
|
13056
|
+
onClickScenario,
|
|
13054
13057
|
...props
|
|
13055
13058
|
}) => {
|
|
13056
13059
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({
|
|
@@ -13071,9 +13074,8 @@ const Scenario = ({
|
|
|
13071
13074
|
iconRight: buttonIcon ?? /*#__PURE__*/React__default.createElement(SendIcon, null),
|
|
13072
13075
|
disabled: disabled,
|
|
13073
13076
|
onClick: () => {
|
|
13074
|
-
localStorage.removeItem('openedTabUrl');
|
|
13075
13077
|
window.open(url.includes('https://') ? url : `https://${url}`, '_blank');
|
|
13076
|
-
|
|
13078
|
+
if (onClickScenario) onClickScenario();
|
|
13077
13079
|
}
|
|
13078
13080
|
}));
|
|
13079
13081
|
};
|