odaptos_design_system 1.4.186 → 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.
@@ -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: scenario.name ?? `Scenario #${scenario.index}`,
9630
- description: scenario.description ?? '',
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: "End Interview",
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: "Protocol",
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: "My Tasks",
9840
+ text: myTasksText,
9838
9841
  variant: "protocol",
9839
9842
  icon: /*#__PURE__*/React__default.createElement(TaskIcon, {
9840
9843
  fill: "black"
@@ -12488,9 +12491,10 @@ const TabsUnderline = ({
12488
12491
  arrow: true
12489
12492
  }, /*#__PURE__*/React__default.createElement("div", {
12490
12493
  style: {
12491
- height: 'fit-content',
12492
12494
  width: 'fit-content',
12493
- marginTop: '0.6rem'
12495
+ display: 'flex',
12496
+ alignItems: 'center',
12497
+ justifyContent: 'center'
12494
12498
  }
12495
12499
  }, /*#__PURE__*/React__default.createElement(Title, {
12496
12500
  key: `tab#${index}`,