odaptos_design_system 2.0.33 → 2.0.35

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.
@@ -3,6 +3,7 @@ export interface EndRecordingProps extends HTMLAttributes<HTMLDivElement> {
3
3
  stopRecTitle: string;
4
4
  stopRecDescription: string;
5
5
  stopRecCTA: string;
6
+ disabledStopRecording?: boolean;
6
7
  stopRecording: () => void;
7
8
  }
8
- export declare const EndRecording: ({ stopRecTitle, stopRecDescription, stopRecCTA, stopRecording, }: EndRecordingProps) => React.JSX.Element;
9
+ export declare const EndRecording: ({ stopRecTitle, stopRecDescription, stopRecCTA, disabledStopRecording, stopRecording, }: EndRecordingProps) => React.JSX.Element;
@@ -30,14 +30,15 @@ export interface SelfProtocolManagerProps extends HTMLAttributes<HTMLDivElement>
30
30
  areAllTasksSend?: boolean;
31
31
  isLastScenario?: boolean;
32
32
  isRecordingFinished?: boolean;
33
- isSus: boolean;
34
33
  isUserSharingScreen: boolean;
35
34
  isScreenShareMessageDisplayed?: boolean;
35
+ disabledStopRecording?: 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, isUserSharingScreen, isScreenShareMessageDisplayed, isExtensionDownloaded, disabledStopRecording, startScreenSharing, startInterview, sendTask, stopRecording, onClickFinishScenario, ...props }: SelfProtocolManagerProps) => React.JSX.Element;
43
44
  export {};
@@ -11853,9 +11853,10 @@ const SelfProtocolManager = ({
11853
11853
  areAllTasksSend,
11854
11854
  isLastScenario,
11855
11855
  isRecordingFinished,
11856
- isSus,
11857
11856
  isUserSharingScreen,
11858
11857
  isScreenShareMessageDisplayed = true,
11858
+ isExtensionDownloaded = false,
11859
+ disabledStopRecording = false,
11859
11860
  startScreenSharing,
11860
11861
  startInterview,
11861
11862
  sendTask,
@@ -11876,8 +11877,9 @@ const SelfProtocolManager = ({
11876
11877
  };
11877
11878
 
11878
11879
  const getIsTaskDisabled = task => {
11879
- console.log('EXTENSION', idsTasksAlreadySent, currentTask, task);
11880
- if (idsTasksAlreadySent.includes(task._id) && currentTask && currentTask._id !== task._id) {
11880
+ if (!isExtensionDownloaded && idsTasksAlreadySent.includes(task._id)) {
11881
+ return true;
11882
+ } else if (idsTasksAlreadySent.includes(task._id) && currentTask && currentTask._id !== task._id) {
11881
11883
  return true;
11882
11884
  } else if (disableAllTasks) {
11883
11885
  return true;
@@ -11935,8 +11937,6 @@ const SelfProtocolManager = ({
11935
11937
  isDisplay: task.isDisplay
11936
11938
  });
11937
11939
  } else if (task.type === 'scenario') {
11938
- console.log(' !isUserSharingScreen', !isUserSharingScreen);
11939
- console.log('getIsTaskDisabled(task)', getIsTaskDisabled(task), task.name);
11940
11940
  return /*#__PURE__*/React__default.createElement(SelfProtocolTaskContainer, {
11941
11941
  key: task._id,
11942
11942
  smallTitle: getTaskTitle(task),
@@ -11962,7 +11962,8 @@ const SelfProtocolManager = ({
11962
11962
  stopRecTitle: texts.stopRecTitleNM,
11963
11963
  stopRecDescription: texts.stopRecDescriptionNM,
11964
11964
  stopRecCTA: texts.stopRecCTANM,
11965
- stopRecording: stopRecording
11965
+ stopRecording: stopRecording,
11966
+ disabledStopRecording: disabledStopRecording
11966
11967
  }), /*#__PURE__*/React__default.createElement("div", {
11967
11968
  ref: refTask
11968
11969
  }))));
@@ -12205,6 +12206,7 @@ const EndRecording = ({
12205
12206
  stopRecTitle,
12206
12207
  stopRecDescription,
12207
12208
  stopRecCTA,
12209
+ disabledStopRecording,
12208
12210
  stopRecording
12209
12211
  }) => {
12210
12212
  return /*#__PURE__*/React__default.createElement("div", {
@@ -12222,7 +12224,8 @@ const EndRecording = ({
12222
12224
  iconRight: /*#__PURE__*/React__default.createElement(StopRecordingIcon, {
12223
12225
  fill: '#FFF6F6',
12224
12226
  stroke: '#FFF6F6'
12225
- })
12227
+ }),
12228
+ disabled: disabledStopRecording
12226
12229
  }));
12227
12230
  };
12228
12231