odaptos_design_system 2.0.113 → 2.0.114
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/odaptos_design_system.cjs.development.js +3 -10
- 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 +3 -10
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Molecules/Interviews/PipModerated.tsx +4 -11
|
@@ -13637,7 +13637,8 @@ display: flex;
|
|
|
13637
13637
|
}
|
|
13638
13638
|
}
|
|
13639
13639
|
};
|
|
13640
|
-
const openPiP = async
|
|
13640
|
+
const openPiP = async url => {
|
|
13641
|
+
window.open(url, '_blank');
|
|
13641
13642
|
if (document.pictureInPictureEnabled && !document.pictureInPictureElement) {
|
|
13642
13643
|
try {
|
|
13643
13644
|
const pipWindow = await window.documentPictureInPicture.requestWindow({
|
|
@@ -13702,15 +13703,7 @@ display: flex;
|
|
|
13702
13703
|
disabled: disabled,
|
|
13703
13704
|
onClick: () => {
|
|
13704
13705
|
if (url) {
|
|
13705
|
-
openPiP()
|
|
13706
|
-
console.error("Erreur lors de l'ouverture du PiP :", error);
|
|
13707
|
-
});
|
|
13708
|
-
// Petit délai pour s'assurer que la nouvelle fenêtre est bien ouverte
|
|
13709
|
-
setTimeout(() => {
|
|
13710
|
-
// Ouvrir d'abord l'URL dans un nouvel onglet
|
|
13711
|
-
const fullUrl = url.includes('https://') ? url : `https://${url}`;
|
|
13712
|
-
window.open(fullUrl, '_blank');
|
|
13713
|
-
}, 10000);
|
|
13706
|
+
openPiP(url);
|
|
13714
13707
|
}
|
|
13715
13708
|
}
|
|
13716
13709
|
});
|