odaptos_design_system 2.0.32 → 2.0.34
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/SelfProtocolManager.d.ts +2 -1
- package/dist/odaptos_design_system.cjs.development.js +4 -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 +4 -3
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Molecules/Interviews/SelfProtocolManager.tsx +5 -7
|
@@ -33,11 +33,12 @@ export interface SelfProtocolManagerProps extends HTMLAttributes<HTMLDivElement>
|
|
|
33
33
|
isSus: boolean;
|
|
34
34
|
isUserSharingScreen: boolean;
|
|
35
35
|
isScreenShareMessageDisplayed?: boolean;
|
|
36
|
+
isExtensionDownloaded?: boolean;
|
|
36
37
|
startScreenSharing: () => void;
|
|
37
38
|
startInterview: (task: any) => void;
|
|
38
39
|
sendTask: (task: any) => void;
|
|
39
40
|
stopRecording: () => void;
|
|
40
41
|
onClickFinishScenario?: () => void;
|
|
41
42
|
}
|
|
42
|
-
export declare const SelfProtocolManager: ({ texts, className, customScrollingClassname, customContentClassname, tasks, idsTasksAlreadySent, currentTask, disableAllTasks, areAllTasksSend, isLastScenario, isRecordingFinished, isSus, isUserSharingScreen, isScreenShareMessageDisplayed, startScreenSharing, startInterview, sendTask, stopRecording, onClickFinishScenario, ...props }: SelfProtocolManagerProps) => React.JSX.Element;
|
|
43
|
+
export declare const SelfProtocolManager: ({ texts, className, customScrollingClassname, customContentClassname, tasks, idsTasksAlreadySent, currentTask, disableAllTasks, areAllTasksSend, isLastScenario, isRecordingFinished, isSus, isUserSharingScreen, isScreenShareMessageDisplayed, isExtensionDownloaded, startScreenSharing, startInterview, sendTask, stopRecording, onClickFinishScenario, ...props }: SelfProtocolManagerProps) => React.JSX.Element;
|
|
43
44
|
export {};
|
|
@@ -11856,6 +11856,7 @@ const SelfProtocolManager = ({
|
|
|
11856
11856
|
isSus,
|
|
11857
11857
|
isUserSharingScreen,
|
|
11858
11858
|
isScreenShareMessageDisplayed = true,
|
|
11859
|
+
isExtensionDownloaded = false,
|
|
11859
11860
|
startScreenSharing,
|
|
11860
11861
|
startInterview,
|
|
11861
11862
|
sendTask,
|
|
@@ -11876,7 +11877,9 @@ const SelfProtocolManager = ({
|
|
|
11876
11877
|
};
|
|
11877
11878
|
|
|
11878
11879
|
const getIsTaskDisabled = task => {
|
|
11879
|
-
if (idsTasksAlreadySent.includes(task._id)
|
|
11880
|
+
if (!isExtensionDownloaded && idsTasksAlreadySent.includes(task._id)) {
|
|
11881
|
+
return true;
|
|
11882
|
+
} else if (idsTasksAlreadySent.includes(task._id) && currentTask && currentTask._id !== task._id) {
|
|
11880
11883
|
return true;
|
|
11881
11884
|
} else if (disableAllTasks) {
|
|
11882
11885
|
return true;
|
|
@@ -11934,8 +11937,6 @@ const SelfProtocolManager = ({
|
|
|
11934
11937
|
isDisplay: task.isDisplay
|
|
11935
11938
|
});
|
|
11936
11939
|
} else if (task.type === 'scenario') {
|
|
11937
|
-
console.log(' !isUserSharingScreen', !isUserSharingScreen);
|
|
11938
|
-
console.log('getIsTaskDisabled(task)', getIsTaskDisabled(task), task.name);
|
|
11939
11940
|
return /*#__PURE__*/React__default.createElement(SelfProtocolTaskContainer, {
|
|
11940
11941
|
key: task._id,
|
|
11941
11942
|
smallTitle: getTaskTitle(task),
|