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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.39",
2
+ "version": "2.0.40",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -41,7 +41,7 @@ export interface SelfProtocolManagerProps
41
41
  areAllTasksSend?: boolean;
42
42
  isLastScenario?: boolean;
43
43
  isRecordingFinished?: boolean;
44
- isUserSharingScreen: boolean;
44
+ isUserSharingScreen?: boolean;
45
45
  isScreenShareMessageDisplayed?: boolean;
46
46
  disabledStopRecording?: boolean;
47
47
  isExtensionDownloaded?: boolean;
@@ -161,7 +161,9 @@ export const SelfProtocolManager = ({
161
161
  ctaText={texts.nextTaskCTA}
162
162
  buttonIcon={<SendIcon />}
163
163
  onClick={() => sendTask(task)}
164
- isDisabled={getIsTaskDisabled(task)}
164
+ isDisabled={
165
+ getIsTaskDisabled(task) || isUserSharingScreen === false
166
+ }
165
167
  isDisplay={task.isDisplay}
166
168
  />
167
169
  );
@@ -179,7 +181,9 @@ export const SelfProtocolManager = ({
179
181
  buttonId={'start_scenario'}
180
182
  onClick={() => sendTask(task)}
181
183
  isDisplay={task.isDisplay}
182
- isDisabled={getIsTaskDisabled(task) || !isUserSharingScreen}
184
+ isDisabled={
185
+ getIsTaskDisabled(task) || isUserSharingScreen === false
186
+ }
183
187
  />
184
188
  );
185
189
  } else return <></>;