odaptos_design_system 1.4.100 → 1.4.101
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 +10 -1
- 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 +10 -1
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Interviews/ControlsBar.tsx +16 -1
|
@@ -11,6 +11,8 @@ export interface ControlsBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
11
11
|
muteCamera?: () => void;
|
|
12
12
|
displayChat?: () => void;
|
|
13
13
|
displayTasks?: () => void;
|
|
14
|
+
startRecording?: () => void;
|
|
15
|
+
stopRecording?: () => void;
|
|
14
16
|
isChatOpen?: boolean;
|
|
15
17
|
areTasksOpen?: boolean;
|
|
16
18
|
isNewTask?: boolean;
|
|
@@ -18,5 +20,6 @@ export interface ControlsBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
18
20
|
isMicrophoneActive?: boolean;
|
|
19
21
|
isCameraActive?: boolean;
|
|
20
22
|
isRecording?: boolean;
|
|
23
|
+
disabledRecording?: boolean;
|
|
21
24
|
}
|
|
22
|
-
export declare const ControlsBar: ({ className, isInterviewer, isScreenShare, endInterview, enableScreenSharing, enableMicrophone, muteMicrophone, enableCamera, muteCamera, displayChat, displayTasks, isChatOpen, areTasksOpen, isNewTask, isNewMessage, isMicrophoneActive, isCameraActive, isRecording, ...props }: ControlsBarProps) => React.JSX.Element;
|
|
25
|
+
export declare const ControlsBar: ({ className, isInterviewer, isScreenShare, endInterview, enableScreenSharing, enableMicrophone, muteMicrophone, enableCamera, muteCamera, displayChat, displayTasks, startRecording, stopRecording, isChatOpen, areTasksOpen, isNewTask, isNewMessage, isMicrophoneActive, isCameraActive, isRecording, disabledRecording, ...props }: ControlsBarProps) => React.JSX.Element;
|
|
@@ -7868,6 +7868,8 @@ const ControlsBar = ({
|
|
|
7868
7868
|
muteCamera,
|
|
7869
7869
|
displayChat,
|
|
7870
7870
|
displayTasks,
|
|
7871
|
+
startRecording,
|
|
7872
|
+
stopRecording,
|
|
7871
7873
|
isChatOpen,
|
|
7872
7874
|
areTasksOpen,
|
|
7873
7875
|
isNewTask,
|
|
@@ -7875,6 +7877,7 @@ const ControlsBar = ({
|
|
|
7875
7877
|
isMicrophoneActive,
|
|
7876
7878
|
isCameraActive,
|
|
7877
7879
|
isRecording,
|
|
7880
|
+
disabledRecording,
|
|
7878
7881
|
...props
|
|
7879
7882
|
}) => {
|
|
7880
7883
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({
|
|
@@ -7896,7 +7899,13 @@ const ControlsBar = ({
|
|
|
7896
7899
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7897
7900
|
className: styles$a.separator
|
|
7898
7901
|
}), isInterviewer && /*#__PURE__*/React__default.createElement("button", {
|
|
7899
|
-
|
|
7902
|
+
disabled: disabledRecording,
|
|
7903
|
+
className: styles$a.record_btn,
|
|
7904
|
+
onClick: () => {
|
|
7905
|
+
if (isRecording && startRecording) startRecording();else {
|
|
7906
|
+
if (stopRecording) stopRecording();
|
|
7907
|
+
}
|
|
7908
|
+
}
|
|
7900
7909
|
}, isRecording ? /*#__PURE__*/React__default.createElement(StopRecordingIcon, null) : /*#__PURE__*/React__default.createElement(RecordIcon, null)), isInterviewer && endInterview && /*#__PURE__*/React__default.createElement(InterviewButton, {
|
|
7901
7910
|
text: "End Interview",
|
|
7902
7911
|
variant: "end-interview",
|