odaptos_design_system 2.0.118 → 2.0.120

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.
@@ -13315,7 +13315,7 @@ const PipModerated = ({
13315
13315
  gap: 0.5rem;
13316
13316
  padding: 0.375rem 0.75rem;
13317
13317
  border-radius: 0.5rem;
13318
- font-family: "Open Sans";
13318
+ font-family: Poppins;
13319
13319
  text-align: center;
13320
13320
  font-size: 0.875rem;
13321
13321
  font-style: normal;
@@ -13323,6 +13323,12 @@ const PipModerated = ({
13323
13323
  line-height: 140%; /* 1.225rem */
13324
13324
  width: 100%;
13325
13325
  margin-top: 0.5rem;
13326
+ cursor: pointer;
13327
+ text-overflow: ellipsis;
13328
+ max-width: 99%;
13329
+ overflow: hidden;
13330
+ white-space: nowrap;
13331
+ text-decoration: none;
13326
13332
  }
13327
13333
  }
13328
13334
 
@@ -13616,7 +13622,10 @@ display: flex;
13616
13622
  <button class="buttonScenario" onclick="window.open('${(() => {
13617
13623
  const parsed = JSON.parse(currentScenario.body);
13618
13624
  return parsed ? parsed.url : '';
13619
- })()}', '_blank')">${contentFunc('startNow')}</button>
13625
+ })()}', '_blank')">${(() => {
13626
+ const parsed = JSON.parse(currentScenario.body);
13627
+ return parsed ? parsed.url : '';
13628
+ })()}</button>
13620
13629
  </div>` : '';
13621
13630
  root.innerHTML = `
13622
13631
  <div class="pipContainer">
@@ -13670,6 +13679,15 @@ display: flex;
13670
13679
  window.open(url, '_blank');
13671
13680
  return;
13672
13681
  }
13682
+ if (tasks[tasks.length - 1] && lastTaskRead && tasks[tasks.length - 1]._id !== lastTaskRead._id) {
13683
+ const onlyTasks = tasks.filter(task => task.type === 'task');
13684
+ const onlyScenarios = tasks.filter(task => task.type === 'scenario');
13685
+ const lastTask = onlyTasks[onlyTasks.length - 1];
13686
+ const lastScenario = onlyScenarios[onlyScenarios.length - 1];
13687
+ setTabOpen('tasks');
13688
+ setCurrentTask(tasks[tasks.length - 1]._id === lastTask._id ? lastTask : null);
13689
+ setCurrentScenario(lastScenario);
13690
+ }
13673
13691
  // Ouvrir d'abord la fenêtre PiP puisque nous avons l'interaction utilisateur
13674
13692
  const pipWindow = await window.documentPictureInPicture.requestWindow({
13675
13693
  width: 400,