odaptos_design_system 1.4.187 → 1.4.189

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.
@@ -25,5 +25,6 @@ export interface ChatProps extends HTMLAttributes<HTMLDivElement> {
25
25
  customScrollingClassname?: string;
26
26
  customContentClassname?: string;
27
27
  disabledTask?: boolean;
28
+ disabledScenario?: boolean;
28
29
  }
29
- export declare const Chat: ({ goBackText, goBack, chatTitle, welcomeTitle, welcomeDescription, startInterviewTitle, startInterviewBtnTitle, startInterviewIcon, startInterview, tasks, sendTask, currentTask, chatInputPlaceholder, chatInputValue, chatInputonChange, sendMessage, className, isTaskMode, isInterviewer, messages, idsTasksAlreadySent, customScrollingClassname, customContentClassname, disabledTask, ...props }: ChatProps) => React.JSX.Element;
30
+ export declare const Chat: ({ goBackText, goBack, chatTitle, welcomeTitle, welcomeDescription, startInterviewTitle, startInterviewBtnTitle, startInterviewIcon, startInterview, tasks, sendTask, currentTask, chatInputPlaceholder, chatInputValue, chatInputonChange, sendMessage, className, isTaskMode, isInterviewer, messages, idsTasksAlreadySent, customScrollingClassname, customContentClassname, disabledTask, disabledScenario, ...props }: ChatProps) => React.JSX.Element;
@@ -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;
@@ -9561,6 +9561,7 @@ const Chat = ({
9561
9561
  customScrollingClassname,
9562
9562
  customContentClassname,
9563
9563
  disabledTask,
9564
+ disabledScenario,
9564
9565
  ...props
9565
9566
  }) => {
9566
9567
  const replaceURLs = message => {
@@ -9626,12 +9627,12 @@ const Chat = ({
9626
9627
  } else if (task.type === 'scenario' && !isInterviewer) {
9627
9628
  const scenario = isInterviewer ? task : JSON.parse(task.body);
9628
9629
  return /*#__PURE__*/React__default.createElement(Scenario, {
9629
- title: scenario.name ?? `Scenario #${scenario.index}`,
9630
- description: scenario.description ?? '',
9630
+ title: `Scenario #${scenario.index}`,
9631
+ description: scenario.name ?? scenario.description,
9631
9632
  buttonText: scenario.url ? startInterviewBtnTitle : undefined,
9632
9633
  buttonIcon: scenario.url ? startInterviewIcon : undefined,
9633
9634
  url: replaceURLs(scenario.url) ?? '',
9634
- disabled: disabledTask
9635
+ disabled: disabledScenario
9635
9636
  });
9636
9637
  } else return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
9637
9638
  })) : messages && messages.map(message => {
@@ -9780,6 +9781,9 @@ const ControlsBar = ({
9780
9781
  screenShareText,
9781
9782
  disabledRecording,
9782
9783
  disabledEndInterview,
9784
+ myTasksText,
9785
+ protocolText,
9786
+ endInterviewText,
9783
9787
  ...props
9784
9788
  }) => {
9785
9789
  return /*#__PURE__*/React__default.createElement("div", Object.assign({
@@ -9810,7 +9814,7 @@ const ControlsBar = ({
9810
9814
  }
9811
9815
  }
9812
9816
  }, isRecording ? /*#__PURE__*/React__default.createElement(StopRecordingIcon, null) : /*#__PURE__*/React__default.createElement(RecordIcon, null)), isInterviewer && endInterview && /*#__PURE__*/React__default.createElement(InterviewButton, {
9813
- text: "End Interview",
9817
+ text: endInterviewText,
9814
9818
  variant: "end-interview",
9815
9819
  disabled: disabledEndInterview,
9816
9820
  onClick: () => endInterview(),
@@ -9823,7 +9827,7 @@ const ControlsBar = ({
9823
9827
  }), /*#__PURE__*/React__default.createElement("div", {
9824
9828
  className: styles$g.separator
9825
9829
  }), isInterviewer ? /*#__PURE__*/React__default.createElement(InterviewButton, {
9826
- text: "Protocol",
9830
+ text: protocolText,
9827
9831
  variant: "protocol",
9828
9832
  icon: /*#__PURE__*/React__default.createElement(TaskIcon, {
9829
9833
  fill: "black"
@@ -9834,7 +9838,7 @@ const ControlsBar = ({
9834
9838
  isActive: areTasksOpen,
9835
9839
  isNotif: isNewTask
9836
9840
  }) : /*#__PURE__*/React__default.createElement(InterviewButton, {
9837
- text: "My Tasks",
9841
+ text: myTasksText,
9838
9842
  variant: "protocol",
9839
9843
  icon: /*#__PURE__*/React__default.createElement(TaskIcon, {
9840
9844
  fill: "black"