suada-components 1.16.0 → 1.18.1
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/{DailyMotion-D1W8nF0f.js → DailyMotion-CU-mEwwt.js} +1 -1
- package/dist/{DailyMotion-D8e9rshC.esm.js → DailyMotion-CltB9Fwx.esm.js} +1 -1
- package/dist/{components/Facebook-BPmwqj1f.js → Facebook-1PeZXckV.js} +1 -1
- package/dist/{components/Facebook-DWz-xBTC.esm.js → Facebook-C5bsXWOw.esm.js} +1 -1
- package/dist/{FilePlayer-CZDGyHG8.esm.js → FilePlayer-15mK_T2y.esm.js} +1 -1
- package/dist/{FilePlayer-YhzVa2_c.js → FilePlayer-BkFHURpZ.js} +1 -1
- package/dist/{Kaltura-BWtnUsG8.js → Kaltura-CZC5JjxC.js} +1 -1
- package/dist/{Kaltura-8PnL41dm.esm.js → Kaltura-DMRyYkly.esm.js} +1 -1
- package/dist/{Mixcloud-BwZg08VX.esm.js → Mixcloud-C2W41_xU.esm.js} +1 -1
- package/dist/{components/Mixcloud-BH-WH69X.js → Mixcloud-CobFyox1.js} +1 -1
- package/dist/{components/Mux-BU4oXCnY.js → Mux-B7VqwEAU.js} +1 -1
- package/dist/{Mux-D7eb8_zA.esm.js → Mux-CR4kJZz1.esm.js} +1 -1
- package/dist/{Preview-k3Dm7N__.esm.js → Preview-ChyEERBP.esm.js} +1 -1
- package/dist/{components/Preview-C0L7rSEk.js → Preview-D7VLiRWL.js} +1 -1
- package/dist/{SoundCloud-j_vgnA6A.esm.js → SoundCloud-BuJ6yNTP.esm.js} +1 -1
- package/dist/{components/SoundCloud-1OBiV7Uu.js → SoundCloud-CczyZgu_.js} +1 -1
- package/dist/{Streamable-OIrXt4Vb.esm.js → Streamable-CjvpmkOH.esm.js} +1 -1
- package/dist/{Streamable-CpnLZwlb.js → Streamable-D4JFFtoC.js} +1 -1
- package/dist/{components/Twitch-D9jp55nt.js → Twitch-B1vASMAw.js} +1 -1
- package/dist/{Twitch-ChgWVJuo.esm.js → Twitch-DvrY7N_t.esm.js} +1 -1
- package/dist/{components/Vidyard-Buty3I7g.esm.js → Vidyard-CZtc16q9.esm.js} +1 -1
- package/dist/{components/Vidyard-CeEWYJk3.js → Vidyard-s3lK5PSZ.js} +1 -1
- package/dist/{Vimeo-n3hyvoeV.esm.js → Vimeo-BWyRDwE0.esm.js} +1 -1
- package/dist/{components/Vimeo-BrwjjhnE.js → Vimeo-CFofcECV.js} +1 -1
- package/dist/{components/Wistia-CKdJ_090.js → Wistia-B2cvtDql.js} +1 -1
- package/dist/{components/Wistia-Rk6R0-XG.esm.js → Wistia-sSsycsJH.esm.js} +1 -1
- package/dist/{YouTube-kRbiT6To.esm.js → YouTube-B6EhYDWl.esm.js} +1 -1
- package/dist/{components/YouTube-Cgb87Kum.js → YouTube-CL56XD1_.js} +1 -1
- package/dist/components/{DailyMotion-DnjKGwA2.esm.js → DailyMotion-Cigxd-Jz.esm.js} +1 -1
- package/dist/components/{DailyMotion-3ouqZQIq.js → DailyMotion-Dc8Jt5rL.js} +1 -1
- package/dist/{Facebook-BKtlnyVo.js → components/Facebook-D96yZ-Wv.js} +1 -1
- package/dist/{Facebook-B-Kmnob1.esm.js → components/Facebook-DDWWEbeK.esm.js} +1 -1
- package/dist/components/{FilePlayer-D5y_obwX.esm.js → FilePlayer-B3meC4EP.esm.js} +1 -1
- package/dist/components/{FilePlayer-BgiOWf6h.js → FilePlayer-B60YEygK.js} +1 -1
- package/dist/components/{Kaltura-CZ4QDkC_.esm.js → Kaltura-Btn1U8Zf.esm.js} +1 -1
- package/dist/components/{Kaltura-BLOwRWhz.js → Kaltura-DK-h5jtl.js} +1 -1
- package/dist/{Mixcloud-DYqaCUJx.js → components/Mixcloud-BlY20QI9.js} +1 -1
- package/dist/components/{Mixcloud-BOhEnFu5.esm.js → Mixcloud-D3hCVvRi.esm.js} +1 -1
- package/dist/components/{Mux-C7ph2OVX.esm.js → Mux-BU7bD4pe.esm.js} +1 -1
- package/dist/{Mux-BCwH7Pkk.js → components/Mux-Bp6MFxPb.js} +1 -1
- package/dist/components/{Preview-CXFeVJay.esm.js → Preview-DsGgU4H5.esm.js} +1 -1
- package/dist/{Preview-CWlvUdHk.js → components/Preview-Ipafps1S.js} +1 -1
- package/dist/{SoundCloud-C_1NqviA.js → components/SoundCloud-CLTAypO_.js} +1 -1
- package/dist/components/{SoundCloud-30_94fHz.esm.js → SoundCloud-Cezo6lfg.esm.js} +1 -1
- package/dist/components/{Streamable-sMKvvdpr.esm.js → Streamable-B602PXxI.esm.js} +1 -1
- package/dist/components/{Streamable-IZ2mlfW2.js → Streamable-BYw1N66m.js} +1 -1
- package/dist/{Twitch-Bt3eW4zd.js → components/Twitch-BHVmZejB.js} +1 -1
- package/dist/components/{Twitch-UAsADCkY.esm.js → Twitch-tLysm9DK.esm.js} +1 -1
- package/dist/components/VideoPlayer/PiPContext.types.d.ts +1 -0
- package/dist/{Vidyard-BbMi1qbS.esm.js → components/Vidyard-CN_G9dre.esm.js} +1 -1
- package/dist/{Vidyard-DHXjbx3I.js → components/Vidyard-ClFsw8nL.js} +1 -1
- package/dist/{Vimeo-8X62rTqK.js → components/Vimeo-D3_12JJC.js} +1 -1
- package/dist/components/{Vimeo-DNDOWvCm.esm.js → Vimeo-vOGC9mBk.esm.js} +1 -1
- package/dist/{Wistia-xubllIWJ.esm.js → components/Wistia-BNx386Rg.esm.js} +1 -1
- package/dist/{Wistia-DWGKpLUF.js → components/Wistia-DyxKLkXI.js} +1 -1
- package/dist/components/{YouTube-BTUNtwS5.esm.js → YouTube-CQ70BkZw.esm.js} +1 -1
- package/dist/{YouTube-grMvoRFs.js → components/YouTube-aCsy9GCc.js} +1 -1
- package/dist/components/components/VideoPlayer/PiPContext.types.d.ts +1 -0
- package/dist/components/{index-xSumop9Q.js → index-BIuwQ7Ul.js} +46 -30
- package/dist/components/{index-sywwoar6.esm.js → index-WnDl7x-R.esm.js} +46 -30
- package/dist/components/index.esm.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/icons/components/VideoPlayer/PiPContext.types.d.ts +1 -0
- package/dist/{index-CeU3AhyS.esm.js → index-D2OcKIp8.esm.js} +46 -30
- package/dist/{index-CmjSbbld.js → index-c5_4-PQZ.js} +46 -30
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -76987,7 +76987,7 @@ function requirePlayers () {
|
|
|
76987
76987
|
canPlay: import_patterns.canPlay.youtube,
|
|
76988
76988
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
76989
76989
|
/* webpackChunkName: 'reactPlayerYouTube' */
|
|
76990
|
-
'./YouTube-
|
|
76990
|
+
'./YouTube-aCsy9GCc.js'
|
|
76991
76991
|
); }).then(function (n) { return n.YouTube; }))
|
|
76992
76992
|
},
|
|
76993
76993
|
{
|
|
@@ -76996,7 +76996,7 @@ function requirePlayers () {
|
|
|
76996
76996
|
canPlay: import_patterns.canPlay.soundcloud,
|
|
76997
76997
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
76998
76998
|
/* webpackChunkName: 'reactPlayerSoundCloud' */
|
|
76999
|
-
'./SoundCloud-
|
|
76999
|
+
'./SoundCloud-CLTAypO_.js'
|
|
77000
77000
|
); }).then(function (n) { return n.SoundCloud; }))
|
|
77001
77001
|
},
|
|
77002
77002
|
{
|
|
@@ -77005,7 +77005,7 @@ function requirePlayers () {
|
|
|
77005
77005
|
canPlay: import_patterns.canPlay.vimeo,
|
|
77006
77006
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77007
77007
|
/* webpackChunkName: 'reactPlayerVimeo' */
|
|
77008
|
-
'./Vimeo-
|
|
77008
|
+
'./Vimeo-D3_12JJC.js'
|
|
77009
77009
|
); }).then(function (n) { return n.Vimeo; }))
|
|
77010
77010
|
},
|
|
77011
77011
|
{
|
|
@@ -77014,7 +77014,7 @@ function requirePlayers () {
|
|
|
77014
77014
|
canPlay: import_patterns.canPlay.mux,
|
|
77015
77015
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77016
77016
|
/* webpackChunkName: 'reactPlayerMux' */
|
|
77017
|
-
'./Mux-
|
|
77017
|
+
'./Mux-Bp6MFxPb.js'
|
|
77018
77018
|
); }).then(function (n) { return n.Mux; }))
|
|
77019
77019
|
},
|
|
77020
77020
|
{
|
|
@@ -77023,7 +77023,7 @@ function requirePlayers () {
|
|
|
77023
77023
|
canPlay: import_patterns.canPlay.facebook,
|
|
77024
77024
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77025
77025
|
/* webpackChunkName: 'reactPlayerFacebook' */
|
|
77026
|
-
'./Facebook-
|
|
77026
|
+
'./Facebook-D96yZ-Wv.js'
|
|
77027
77027
|
); }).then(function (n) { return n.Facebook; }))
|
|
77028
77028
|
},
|
|
77029
77029
|
{
|
|
@@ -77032,7 +77032,7 @@ function requirePlayers () {
|
|
|
77032
77032
|
canPlay: import_patterns.canPlay.streamable,
|
|
77033
77033
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77034
77034
|
/* webpackChunkName: 'reactPlayerStreamable' */
|
|
77035
|
-
'./Streamable-
|
|
77035
|
+
'./Streamable-BYw1N66m.js'
|
|
77036
77036
|
); }).then(function (n) { return n.Streamable; }))
|
|
77037
77037
|
},
|
|
77038
77038
|
{
|
|
@@ -77041,7 +77041,7 @@ function requirePlayers () {
|
|
|
77041
77041
|
canPlay: import_patterns.canPlay.wistia,
|
|
77042
77042
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77043
77043
|
/* webpackChunkName: 'reactPlayerWistia' */
|
|
77044
|
-
'./Wistia-
|
|
77044
|
+
'./Wistia-DyxKLkXI.js'
|
|
77045
77045
|
); }).then(function (n) { return n.Wistia; }))
|
|
77046
77046
|
},
|
|
77047
77047
|
{
|
|
@@ -77050,7 +77050,7 @@ function requirePlayers () {
|
|
|
77050
77050
|
canPlay: import_patterns.canPlay.twitch,
|
|
77051
77051
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77052
77052
|
/* webpackChunkName: 'reactPlayerTwitch' */
|
|
77053
|
-
'./Twitch-
|
|
77053
|
+
'./Twitch-BHVmZejB.js'
|
|
77054
77054
|
); }).then(function (n) { return n.Twitch; }))
|
|
77055
77055
|
},
|
|
77056
77056
|
{
|
|
@@ -77059,7 +77059,7 @@ function requirePlayers () {
|
|
|
77059
77059
|
canPlay: import_patterns.canPlay.dailymotion,
|
|
77060
77060
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77061
77061
|
/* webpackChunkName: 'reactPlayerDailyMotion' */
|
|
77062
|
-
'./DailyMotion-
|
|
77062
|
+
'./DailyMotion-Dc8Jt5rL.js'
|
|
77063
77063
|
); }).then(function (n) { return n.DailyMotion; }))
|
|
77064
77064
|
},
|
|
77065
77065
|
{
|
|
@@ -77068,7 +77068,7 @@ function requirePlayers () {
|
|
|
77068
77068
|
canPlay: import_patterns.canPlay.mixcloud,
|
|
77069
77069
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77070
77070
|
/* webpackChunkName: 'reactPlayerMixcloud' */
|
|
77071
|
-
'./Mixcloud-
|
|
77071
|
+
'./Mixcloud-BlY20QI9.js'
|
|
77072
77072
|
); }).then(function (n) { return n.Mixcloud; }))
|
|
77073
77073
|
},
|
|
77074
77074
|
{
|
|
@@ -77077,7 +77077,7 @@ function requirePlayers () {
|
|
|
77077
77077
|
canPlay: import_patterns.canPlay.vidyard,
|
|
77078
77078
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77079
77079
|
/* webpackChunkName: 'reactPlayerVidyard' */
|
|
77080
|
-
'./Vidyard-
|
|
77080
|
+
'./Vidyard-ClFsw8nL.js'
|
|
77081
77081
|
); }).then(function (n) { return n.Vidyard; }))
|
|
77082
77082
|
},
|
|
77083
77083
|
{
|
|
@@ -77086,7 +77086,7 @@ function requirePlayers () {
|
|
|
77086
77086
|
canPlay: import_patterns.canPlay.kaltura,
|
|
77087
77087
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77088
77088
|
/* webpackChunkName: 'reactPlayerKaltura' */
|
|
77089
|
-
'./Kaltura-
|
|
77089
|
+
'./Kaltura-DK-h5jtl.js'
|
|
77090
77090
|
); }).then(function (n) { return n.Kaltura; }))
|
|
77091
77091
|
},
|
|
77092
77092
|
{
|
|
@@ -77098,7 +77098,7 @@ function requirePlayers () {
|
|
|
77098
77098
|
},
|
|
77099
77099
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77100
77100
|
/* webpackChunkName: 'reactPlayerFilePlayer' */
|
|
77101
|
-
'./FilePlayer-
|
|
77101
|
+
'./FilePlayer-B60YEygK.js'
|
|
77102
77102
|
); }).then(function (n) { return n.FilePlayer; }))
|
|
77103
77103
|
}
|
|
77104
77104
|
];
|
|
@@ -77919,7 +77919,7 @@ function requireReactPlayer () {
|
|
|
77919
77919
|
var import_Player = __toESM(/*@__PURE__*/ requirePlayer());
|
|
77920
77920
|
const Preview = (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77921
77921
|
/* webpackChunkName: 'reactPlayerPreview' */
|
|
77922
|
-
'./Preview-
|
|
77922
|
+
'./Preview-Ipafps1S.js'
|
|
77923
77923
|
); }).then(function (n) { return n.Preview; }));
|
|
77924
77924
|
const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
|
|
77925
77925
|
const IS_GLOBAL = typeof commonjsGlobal !== "undefined" && commonjsGlobal.window && commonjsGlobal.window.document;
|
|
@@ -84635,24 +84635,40 @@ var PiPProvider = function PiPProvider(_ref) {
|
|
|
84635
84635
|
case 0:
|
|
84636
84636
|
_context2.prev = 0;
|
|
84637
84637
|
if (!document.pictureInPictureElement) {
|
|
84638
|
-
_context2.next =
|
|
84638
|
+
_context2.next = 6;
|
|
84639
84639
|
break;
|
|
84640
84640
|
}
|
|
84641
84641
|
_context2.next = 4;
|
|
84642
84642
|
return document.exitPictureInPicture();
|
|
84643
84643
|
case 4:
|
|
84644
|
+
_context2.next = 8;
|
|
84645
|
+
break;
|
|
84646
|
+
case 6:
|
|
84647
|
+
// If there's no actual PiP element but context thinks it's active, reset state
|
|
84648
|
+
setIsPiPActive(false);
|
|
84649
|
+
setPipVideoState(null);
|
|
84650
|
+
case 8:
|
|
84644
84651
|
return _context2.abrupt("return", true);
|
|
84645
|
-
case
|
|
84646
|
-
_context2.prev =
|
|
84652
|
+
case 11:
|
|
84653
|
+
_context2.prev = 11;
|
|
84647
84654
|
_context2.t0 = _context2["catch"](0);
|
|
84648
84655
|
console.error('Failed to exit picture-in-picture:', _context2.t0);
|
|
84649
84656
|
return _context2.abrupt("return", false);
|
|
84650
|
-
case
|
|
84657
|
+
case 15:
|
|
84651
84658
|
case "end":
|
|
84652
84659
|
return _context2.stop();
|
|
84653
84660
|
}
|
|
84654
|
-
}, _callee2, null, [[0,
|
|
84661
|
+
}, _callee2, null, [[0, 11]]);
|
|
84655
84662
|
})), []);
|
|
84663
|
+
var syncPiPState = React.useCallback(function () {
|
|
84664
|
+
var actualPiPActive = !!document.pictureInPictureElement;
|
|
84665
|
+
if (isPiPActive !== actualPiPActive) {
|
|
84666
|
+
setIsPiPActive(actualPiPActive);
|
|
84667
|
+
if (!actualPiPActive) {
|
|
84668
|
+
setPipVideoState(null);
|
|
84669
|
+
}
|
|
84670
|
+
}
|
|
84671
|
+
}, [isPiPActive]);
|
|
84656
84672
|
// Listen for PiP events
|
|
84657
84673
|
React.useEffect(function () {
|
|
84658
84674
|
var handlePiPEnter = function handlePiPEnter() {
|
|
@@ -84677,7 +84693,8 @@ var PiPProvider = function PiPProvider(_ref) {
|
|
|
84677
84693
|
exitPiP: exitPiP,
|
|
84678
84694
|
updateVideoState: updateVideoState,
|
|
84679
84695
|
registerVideoElement: registerVideoElement,
|
|
84680
|
-
unregisterVideoElement: unregisterVideoElement
|
|
84696
|
+
unregisterVideoElement: unregisterVideoElement,
|
|
84697
|
+
syncPiPState: syncPiPState
|
|
84681
84698
|
};
|
|
84682
84699
|
return require$$2$2.jsx(PiPContext.Provider, {
|
|
84683
84700
|
value: value,
|
|
@@ -84733,6 +84750,9 @@ var defaultPiPContext = {
|
|
|
84733
84750
|
},
|
|
84734
84751
|
unregisterVideoElement: function unregisterVideoElement() {
|
|
84735
84752
|
// No-op when provider is not available
|
|
84753
|
+
},
|
|
84754
|
+
syncPiPState: function syncPiPState() {
|
|
84755
|
+
// No-op when provider is not available
|
|
84736
84756
|
}
|
|
84737
84757
|
};
|
|
84738
84758
|
var usePiP = function usePiP() {
|
|
@@ -84744,9 +84764,10 @@ var usePiP = function usePiP() {
|
|
|
84744
84764
|
};
|
|
84745
84765
|
|
|
84746
84766
|
var count = 0;
|
|
84767
|
+
// Default video state to ensure all properties are initialized
|
|
84747
84768
|
var defaultVideoState = {
|
|
84748
84769
|
muted: false,
|
|
84749
|
-
volume:
|
|
84770
|
+
volume: 1,
|
|
84750
84771
|
prevVolume: 0.3,
|
|
84751
84772
|
playbackRate: 1.0,
|
|
84752
84773
|
played: 0.0,
|
|
@@ -85469,8 +85490,7 @@ var VideoPlayer = function VideoPlayer(_ref) {
|
|
|
85469
85490
|
var currentEditingNote = editingNote !== undefined ? editingNote : internalEditingNote;
|
|
85470
85491
|
// Get PiP context for state initialization
|
|
85471
85492
|
var _usePiP = usePiP(),
|
|
85472
|
-
|
|
85473
|
-
exitPiP = _usePiP.exitPiP;
|
|
85493
|
+
syncPiPState = _usePiP.syncPiPState;
|
|
85474
85494
|
var _usePlayerControls = usePlayerControls({
|
|
85475
85495
|
startTime: startTime,
|
|
85476
85496
|
setLoading: setLoading,
|
|
@@ -85516,13 +85536,9 @@ var VideoPlayer = function VideoPlayer(_ref) {
|
|
|
85516
85536
|
setCurrentSubtitle = _usePlayerControls.setCurrentSubtitle;
|
|
85517
85537
|
// Initialize PiP state on component mount/URL change
|
|
85518
85538
|
React.useEffect(function () {
|
|
85519
|
-
//
|
|
85520
|
-
|
|
85521
|
-
|
|
85522
|
-
console.log('Resetting PiP state - context out of sync with actual PiP state');
|
|
85523
|
-
exitPiP();
|
|
85524
|
-
}
|
|
85525
|
-
}, [url, contextIsPiPActive, exitPiP]); // Run when URL changes or component mounts
|
|
85539
|
+
// Sync PiP state with actual browser state on mount and URL changes
|
|
85540
|
+
syncPiPState();
|
|
85541
|
+
}, [url, syncPiPState]); // Run when URL changes or component mounts
|
|
85526
85542
|
// Handle adding new notes
|
|
85527
85543
|
var handleAddNote = React.useCallback(function () {
|
|
85528
85544
|
var _a;
|
|
@@ -76967,7 +76967,7 @@ function requirePlayers () {
|
|
|
76967
76967
|
canPlay: import_patterns.canPlay.youtube,
|
|
76968
76968
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
76969
76969
|
/* webpackChunkName: 'reactPlayerYouTube' */
|
|
76970
|
-
'./YouTube-
|
|
76970
|
+
'./YouTube-CQ70BkZw.esm.js'
|
|
76971
76971
|
).then(function (n) { return n.Y; }))
|
|
76972
76972
|
},
|
|
76973
76973
|
{
|
|
@@ -76976,7 +76976,7 @@ function requirePlayers () {
|
|
|
76976
76976
|
canPlay: import_patterns.canPlay.soundcloud,
|
|
76977
76977
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
76978
76978
|
/* webpackChunkName: 'reactPlayerSoundCloud' */
|
|
76979
|
-
'./SoundCloud-
|
|
76979
|
+
'./SoundCloud-Cezo6lfg.esm.js'
|
|
76980
76980
|
).then(function (n) { return n.S; }))
|
|
76981
76981
|
},
|
|
76982
76982
|
{
|
|
@@ -76985,7 +76985,7 @@ function requirePlayers () {
|
|
|
76985
76985
|
canPlay: import_patterns.canPlay.vimeo,
|
|
76986
76986
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
76987
76987
|
/* webpackChunkName: 'reactPlayerVimeo' */
|
|
76988
|
-
'./Vimeo-
|
|
76988
|
+
'./Vimeo-vOGC9mBk.esm.js'
|
|
76989
76989
|
).then(function (n) { return n.V; }))
|
|
76990
76990
|
},
|
|
76991
76991
|
{
|
|
@@ -76994,7 +76994,7 @@ function requirePlayers () {
|
|
|
76994
76994
|
canPlay: import_patterns.canPlay.mux,
|
|
76995
76995
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
76996
76996
|
/* webpackChunkName: 'reactPlayerMux' */
|
|
76997
|
-
'./Mux-
|
|
76997
|
+
'./Mux-BU7bD4pe.esm.js'
|
|
76998
76998
|
).then(function (n) { return n.M; }))
|
|
76999
76999
|
},
|
|
77000
77000
|
{
|
|
@@ -77003,7 +77003,7 @@ function requirePlayers () {
|
|
|
77003
77003
|
canPlay: import_patterns.canPlay.facebook,
|
|
77004
77004
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
77005
77005
|
/* webpackChunkName: 'reactPlayerFacebook' */
|
|
77006
|
-
'./Facebook-
|
|
77006
|
+
'./Facebook-DDWWEbeK.esm.js'
|
|
77007
77007
|
).then(function (n) { return n.F; }))
|
|
77008
77008
|
},
|
|
77009
77009
|
{
|
|
@@ -77012,7 +77012,7 @@ function requirePlayers () {
|
|
|
77012
77012
|
canPlay: import_patterns.canPlay.streamable,
|
|
77013
77013
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
77014
77014
|
/* webpackChunkName: 'reactPlayerStreamable' */
|
|
77015
|
-
'./Streamable-
|
|
77015
|
+
'./Streamable-B602PXxI.esm.js'
|
|
77016
77016
|
).then(function (n) { return n.S; }))
|
|
77017
77017
|
},
|
|
77018
77018
|
{
|
|
@@ -77021,7 +77021,7 @@ function requirePlayers () {
|
|
|
77021
77021
|
canPlay: import_patterns.canPlay.wistia,
|
|
77022
77022
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
77023
77023
|
/* webpackChunkName: 'reactPlayerWistia' */
|
|
77024
|
-
'./Wistia-
|
|
77024
|
+
'./Wistia-BNx386Rg.esm.js'
|
|
77025
77025
|
).then(function (n) { return n.W; }))
|
|
77026
77026
|
},
|
|
77027
77027
|
{
|
|
@@ -77030,7 +77030,7 @@ function requirePlayers () {
|
|
|
77030
77030
|
canPlay: import_patterns.canPlay.twitch,
|
|
77031
77031
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
77032
77032
|
/* webpackChunkName: 'reactPlayerTwitch' */
|
|
77033
|
-
'./Twitch-
|
|
77033
|
+
'./Twitch-tLysm9DK.esm.js'
|
|
77034
77034
|
).then(function (n) { return n.T; }))
|
|
77035
77035
|
},
|
|
77036
77036
|
{
|
|
@@ -77039,7 +77039,7 @@ function requirePlayers () {
|
|
|
77039
77039
|
canPlay: import_patterns.canPlay.dailymotion,
|
|
77040
77040
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
77041
77041
|
/* webpackChunkName: 'reactPlayerDailyMotion' */
|
|
77042
|
-
'./DailyMotion-
|
|
77042
|
+
'./DailyMotion-Cigxd-Jz.esm.js'
|
|
77043
77043
|
).then(function (n) { return n.D; }))
|
|
77044
77044
|
},
|
|
77045
77045
|
{
|
|
@@ -77048,7 +77048,7 @@ function requirePlayers () {
|
|
|
77048
77048
|
canPlay: import_patterns.canPlay.mixcloud,
|
|
77049
77049
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
77050
77050
|
/* webpackChunkName: 'reactPlayerMixcloud' */
|
|
77051
|
-
'./Mixcloud-
|
|
77051
|
+
'./Mixcloud-D3hCVvRi.esm.js'
|
|
77052
77052
|
).then(function (n) { return n.M; }))
|
|
77053
77053
|
},
|
|
77054
77054
|
{
|
|
@@ -77057,7 +77057,7 @@ function requirePlayers () {
|
|
|
77057
77057
|
canPlay: import_patterns.canPlay.vidyard,
|
|
77058
77058
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
77059
77059
|
/* webpackChunkName: 'reactPlayerVidyard' */
|
|
77060
|
-
'./Vidyard-
|
|
77060
|
+
'./Vidyard-CN_G9dre.esm.js'
|
|
77061
77061
|
).then(function (n) { return n.V; }))
|
|
77062
77062
|
},
|
|
77063
77063
|
{
|
|
@@ -77066,7 +77066,7 @@ function requirePlayers () {
|
|
|
77066
77066
|
canPlay: import_patterns.canPlay.kaltura,
|
|
77067
77067
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
77068
77068
|
/* webpackChunkName: 'reactPlayerKaltura' */
|
|
77069
|
-
'./Kaltura-
|
|
77069
|
+
'./Kaltura-Btn1U8Zf.esm.js'
|
|
77070
77070
|
).then(function (n) { return n.K; }))
|
|
77071
77071
|
},
|
|
77072
77072
|
{
|
|
@@ -77078,7 +77078,7 @@ function requirePlayers () {
|
|
|
77078
77078
|
},
|
|
77079
77079
|
lazyPlayer: (0, import_utils.lazy)(() => import(
|
|
77080
77080
|
/* webpackChunkName: 'reactPlayerFilePlayer' */
|
|
77081
|
-
'./FilePlayer-
|
|
77081
|
+
'./FilePlayer-B3meC4EP.esm.js'
|
|
77082
77082
|
).then(function (n) { return n.F; }))
|
|
77083
77083
|
}
|
|
77084
77084
|
];
|
|
@@ -77899,7 +77899,7 @@ function requireReactPlayer () {
|
|
|
77899
77899
|
var import_Player = __toESM(/*@__PURE__*/ requirePlayer());
|
|
77900
77900
|
const Preview = (0, import_utils.lazy)(() => import(
|
|
77901
77901
|
/* webpackChunkName: 'reactPlayerPreview' */
|
|
77902
|
-
'./Preview-
|
|
77902
|
+
'./Preview-DsGgU4H5.esm.js'
|
|
77903
77903
|
).then(function (n) { return n.P; }));
|
|
77904
77904
|
const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
|
|
77905
77905
|
const IS_GLOBAL = typeof commonjsGlobal !== "undefined" && commonjsGlobal.window && commonjsGlobal.window.document;
|
|
@@ -84615,24 +84615,40 @@ var PiPProvider = function PiPProvider(_ref) {
|
|
|
84615
84615
|
case 0:
|
|
84616
84616
|
_context2.prev = 0;
|
|
84617
84617
|
if (!document.pictureInPictureElement) {
|
|
84618
|
-
_context2.next =
|
|
84618
|
+
_context2.next = 6;
|
|
84619
84619
|
break;
|
|
84620
84620
|
}
|
|
84621
84621
|
_context2.next = 4;
|
|
84622
84622
|
return document.exitPictureInPicture();
|
|
84623
84623
|
case 4:
|
|
84624
|
+
_context2.next = 8;
|
|
84625
|
+
break;
|
|
84626
|
+
case 6:
|
|
84627
|
+
// If there's no actual PiP element but context thinks it's active, reset state
|
|
84628
|
+
setIsPiPActive(false);
|
|
84629
|
+
setPipVideoState(null);
|
|
84630
|
+
case 8:
|
|
84624
84631
|
return _context2.abrupt("return", true);
|
|
84625
|
-
case
|
|
84626
|
-
_context2.prev =
|
|
84632
|
+
case 11:
|
|
84633
|
+
_context2.prev = 11;
|
|
84627
84634
|
_context2.t0 = _context2["catch"](0);
|
|
84628
84635
|
console.error('Failed to exit picture-in-picture:', _context2.t0);
|
|
84629
84636
|
return _context2.abrupt("return", false);
|
|
84630
|
-
case
|
|
84637
|
+
case 15:
|
|
84631
84638
|
case "end":
|
|
84632
84639
|
return _context2.stop();
|
|
84633
84640
|
}
|
|
84634
|
-
}, _callee2, null, [[0,
|
|
84641
|
+
}, _callee2, null, [[0, 11]]);
|
|
84635
84642
|
})), []);
|
|
84643
|
+
var syncPiPState = useCallback(function () {
|
|
84644
|
+
var actualPiPActive = !!document.pictureInPictureElement;
|
|
84645
|
+
if (isPiPActive !== actualPiPActive) {
|
|
84646
|
+
setIsPiPActive(actualPiPActive);
|
|
84647
|
+
if (!actualPiPActive) {
|
|
84648
|
+
setPipVideoState(null);
|
|
84649
|
+
}
|
|
84650
|
+
}
|
|
84651
|
+
}, [isPiPActive]);
|
|
84636
84652
|
// Listen for PiP events
|
|
84637
84653
|
useEffect(function () {
|
|
84638
84654
|
var handlePiPEnter = function handlePiPEnter() {
|
|
@@ -84657,7 +84673,8 @@ var PiPProvider = function PiPProvider(_ref) {
|
|
|
84657
84673
|
exitPiP: exitPiP,
|
|
84658
84674
|
updateVideoState: updateVideoState,
|
|
84659
84675
|
registerVideoElement: registerVideoElement,
|
|
84660
|
-
unregisterVideoElement: unregisterVideoElement
|
|
84676
|
+
unregisterVideoElement: unregisterVideoElement,
|
|
84677
|
+
syncPiPState: syncPiPState
|
|
84661
84678
|
};
|
|
84662
84679
|
return jsx$1(PiPContext.Provider, {
|
|
84663
84680
|
value: value,
|
|
@@ -84713,6 +84730,9 @@ var defaultPiPContext = {
|
|
|
84713
84730
|
},
|
|
84714
84731
|
unregisterVideoElement: function unregisterVideoElement() {
|
|
84715
84732
|
// No-op when provider is not available
|
|
84733
|
+
},
|
|
84734
|
+
syncPiPState: function syncPiPState() {
|
|
84735
|
+
// No-op when provider is not available
|
|
84716
84736
|
}
|
|
84717
84737
|
};
|
|
84718
84738
|
var usePiP = function usePiP() {
|
|
@@ -84724,9 +84744,10 @@ var usePiP = function usePiP() {
|
|
|
84724
84744
|
};
|
|
84725
84745
|
|
|
84726
84746
|
var count = 0;
|
|
84747
|
+
// Default video state to ensure all properties are initialized
|
|
84727
84748
|
var defaultVideoState = {
|
|
84728
84749
|
muted: false,
|
|
84729
|
-
volume:
|
|
84750
|
+
volume: 1,
|
|
84730
84751
|
prevVolume: 0.3,
|
|
84731
84752
|
playbackRate: 1.0,
|
|
84732
84753
|
played: 0.0,
|
|
@@ -85449,8 +85470,7 @@ var VideoPlayer = function VideoPlayer(_ref) {
|
|
|
85449
85470
|
var currentEditingNote = editingNote !== undefined ? editingNote : internalEditingNote;
|
|
85450
85471
|
// Get PiP context for state initialization
|
|
85451
85472
|
var _usePiP = usePiP(),
|
|
85452
|
-
|
|
85453
|
-
exitPiP = _usePiP.exitPiP;
|
|
85473
|
+
syncPiPState = _usePiP.syncPiPState;
|
|
85454
85474
|
var _usePlayerControls = usePlayerControls({
|
|
85455
85475
|
startTime: startTime,
|
|
85456
85476
|
setLoading: setLoading,
|
|
@@ -85496,13 +85516,9 @@ var VideoPlayer = function VideoPlayer(_ref) {
|
|
|
85496
85516
|
setCurrentSubtitle = _usePlayerControls.setCurrentSubtitle;
|
|
85497
85517
|
// Initialize PiP state on component mount/URL change
|
|
85498
85518
|
useEffect(function () {
|
|
85499
|
-
//
|
|
85500
|
-
|
|
85501
|
-
|
|
85502
|
-
console.log('Resetting PiP state - context out of sync with actual PiP state');
|
|
85503
|
-
exitPiP();
|
|
85504
|
-
}
|
|
85505
|
-
}, [url, contextIsPiPActive, exitPiP]); // Run when URL changes or component mounts
|
|
85519
|
+
// Sync PiP state with actual browser state on mount and URL changes
|
|
85520
|
+
syncPiPState();
|
|
85521
|
+
}, [url, syncPiPState]); // Run when URL changes or component mounts
|
|
85506
85522
|
// Handle adding new notes
|
|
85507
85523
|
var handleAddNote = useCallback(function () {
|
|
85508
85524
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AudioPlayer, k as Badge, h as Breadcrumb, B as Button, e as Checkbox, j as ColorPicker, p as ColumnNavigation, C as CourseCard, c as CustomSwitcher, m as CustomTooltip, d as DatePicker, w as DrawerTips, D as DropDown, G as GridActionMenu, L as Loader, N as NavigationBar, f as Pagination, P as PhoneCountryCode, n as PiPProvider, R as RadioButton, x as RangeSlider, S as SearchInput, o as SplashScreen, q as StatusIndicator, t as TabNavigation, s as TabPanel, b as ThemeProvider, i as Tile, l as TooltipHeight, T as TranslationProvider, U as Uploader, V as VideoPlayer, v as activeTabClassName, u as usePiP } from './index-
|
|
1
|
+
export { A as AudioPlayer, k as Badge, h as Breadcrumb, B as Button, e as Checkbox, j as ColorPicker, p as ColumnNavigation, C as CourseCard, c as CustomSwitcher, m as CustomTooltip, d as DatePicker, w as DrawerTips, D as DropDown, G as GridActionMenu, L as Loader, N as NavigationBar, f as Pagination, P as PhoneCountryCode, n as PiPProvider, R as RadioButton, x as RangeSlider, S as SearchInput, o as SplashScreen, q as StatusIndicator, t as TabNavigation, s as TabPanel, b as ThemeProvider, i as Tile, l as TooltipHeight, T as TranslationProvider, U as Uploader, V as VideoPlayer, v as activeTabClassName, u as usePiP } from './index-WnDl7x-R.esm.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react-transition-group';
|
package/dist/components/index.js
CHANGED