odaptos_design_system 1.4.187 → 1.4.188
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/Interviews/ControlsBar.d.ts +4 -1
- package/dist/odaptos_design_system.cjs.development.js +8 -5
- 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 +8 -5
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Interviews/Chat.tsx +2 -2
- package/src/Interviews/ControlsBar.tsx +9 -3
|
@@ -22,5 +22,8 @@ export interface ControlsBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
22
22
|
isRecording?: boolean;
|
|
23
23
|
disabledRecording?: boolean;
|
|
24
24
|
disabledEndInterview?: boolean;
|
|
25
|
+
myTasksText: string;
|
|
26
|
+
protocolText: string;
|
|
27
|
+
endInterviewText: string;
|
|
25
28
|
}
|
|
26
|
-
export declare const ControlsBar: ({ className, isInterviewer, endInterview, enableScreenSharing, enableMicrophone, muteMicrophone, enableCamera, muteCamera, displayChat, displayTasks, startRecording, stopRecording, isChatOpen, areTasksOpen, isNewTask, isNewMessage, isMicrophoneActive, isCameraActive, isRecording, screenShareText, disabledRecording, disabledEndInterview, ...props }: ControlsBarProps) => React.JSX.Element;
|
|
29
|
+
export declare const ControlsBar: ({ className, isInterviewer, endInterview, enableScreenSharing, enableMicrophone, muteMicrophone, enableCamera, muteCamera, displayChat, displayTasks, startRecording, stopRecording, isChatOpen, areTasksOpen, isNewTask, isNewMessage, isMicrophoneActive, isCameraActive, isRecording, screenShareText, disabledRecording, disabledEndInterview, myTasksText, protocolText, endInterviewText, ...props }: ControlsBarProps) => React.JSX.Element;
|
|
@@ -9626,8 +9626,8 @@ const Chat = ({
|
|
|
9626
9626
|
} else if (task.type === 'scenario' && !isInterviewer) {
|
|
9627
9627
|
const scenario = isInterviewer ? task : JSON.parse(task.body);
|
|
9628
9628
|
return /*#__PURE__*/React__default.createElement(Scenario, {
|
|
9629
|
-
title:
|
|
9630
|
-
description: scenario.
|
|
9629
|
+
title: `Scenario #${scenario.index}`,
|
|
9630
|
+
description: scenario.name ?? scenario.description,
|
|
9631
9631
|
buttonText: scenario.url ? startInterviewBtnTitle : undefined,
|
|
9632
9632
|
buttonIcon: scenario.url ? startInterviewIcon : undefined,
|
|
9633
9633
|
url: replaceURLs(scenario.url) ?? '',
|
|
@@ -9780,6 +9780,9 @@ const ControlsBar = ({
|
|
|
9780
9780
|
screenShareText,
|
|
9781
9781
|
disabledRecording,
|
|
9782
9782
|
disabledEndInterview,
|
|
9783
|
+
myTasksText,
|
|
9784
|
+
protocolText,
|
|
9785
|
+
endInterviewText,
|
|
9783
9786
|
...props
|
|
9784
9787
|
}) => {
|
|
9785
9788
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({
|
|
@@ -9810,7 +9813,7 @@ const ControlsBar = ({
|
|
|
9810
9813
|
}
|
|
9811
9814
|
}
|
|
9812
9815
|
}, isRecording ? /*#__PURE__*/React__default.createElement(StopRecordingIcon, null) : /*#__PURE__*/React__default.createElement(RecordIcon, null)), isInterviewer && endInterview && /*#__PURE__*/React__default.createElement(InterviewButton, {
|
|
9813
|
-
text:
|
|
9816
|
+
text: endInterviewText,
|
|
9814
9817
|
variant: "end-interview",
|
|
9815
9818
|
disabled: disabledEndInterview,
|
|
9816
9819
|
onClick: () => endInterview(),
|
|
@@ -9823,7 +9826,7 @@ const ControlsBar = ({
|
|
|
9823
9826
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
9824
9827
|
className: styles$g.separator
|
|
9825
9828
|
}), isInterviewer ? /*#__PURE__*/React__default.createElement(InterviewButton, {
|
|
9826
|
-
text:
|
|
9829
|
+
text: protocolText,
|
|
9827
9830
|
variant: "protocol",
|
|
9828
9831
|
icon: /*#__PURE__*/React__default.createElement(TaskIcon, {
|
|
9829
9832
|
fill: "black"
|
|
@@ -9834,7 +9837,7 @@ const ControlsBar = ({
|
|
|
9834
9837
|
isActive: areTasksOpen,
|
|
9835
9838
|
isNotif: isNewTask
|
|
9836
9839
|
}) : /*#__PURE__*/React__default.createElement(InterviewButton, {
|
|
9837
|
-
text:
|
|
9840
|
+
text: myTasksText,
|
|
9838
9841
|
variant: "protocol",
|
|
9839
9842
|
icon: /*#__PURE__*/React__default.createElement(TaskIcon, {
|
|
9840
9843
|
fill: "black"
|