odaptos_design_system 2.0.39 → 2.0.40

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.
@@ -34,7 +34,7 @@ export interface SelfProtocolManagerProps extends HTMLAttributes<HTMLDivElement>
34
34
  areAllTasksSend?: boolean;
35
35
  isLastScenario?: boolean;
36
36
  isRecordingFinished?: boolean;
37
- isUserSharingScreen: boolean;
37
+ isUserSharingScreen?: boolean;
38
38
  isScreenShareMessageDisplayed?: boolean;
39
39
  disabledStopRecording?: boolean;
40
40
  isExtensionDownloaded?: boolean;
@@ -11930,7 +11930,7 @@ const SelfProtocolManager = ({
11930
11930
  ctaText: texts.nextTaskCTA,
11931
11931
  buttonIcon: /*#__PURE__*/React__default.createElement(SendIcon, null),
11932
11932
  onClick: () => sendTask(task),
11933
- isDisabled: getIsTaskDisabled(task),
11933
+ isDisabled: getIsTaskDisabled(task) || isUserSharingScreen === false,
11934
11934
  isDisplay: task.isDisplay
11935
11935
  });
11936
11936
  } else if (task.type === 'scenario') {
@@ -11944,7 +11944,7 @@ const SelfProtocolManager = ({
11944
11944
  buttonId: 'start_scenario',
11945
11945
  onClick: () => sendTask(task),
11946
11946
  isDisplay: task.isDisplay,
11947
- isDisabled: getIsTaskDisabled(task) || !isUserSharingScreen
11947
+ isDisabled: getIsTaskDisabled(task) || isUserSharingScreen === false
11948
11948
  });
11949
11949
  } else return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
11950
11950
  }), areAllTasksSend && !isLastScenario && onClickFinishScenario && /*#__PURE__*/React__default.createElement(SelfProtocolTaskContainer, {