@loafmarkets/ui 0.1.424 → 0.1.426
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/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2850,7 +2850,6 @@ function MobileDepthRow({
|
|
|
2850
2850
|
);
|
|
2851
2851
|
}
|
|
2852
2852
|
var isHlsManifest = (url) => /\.m3u8(\?|$)/i.test(url);
|
|
2853
|
-
var HLS_MIME = "application/vnd.apple.mpegurl";
|
|
2854
2853
|
var MANIFEST_FAILURES = /* @__PURE__ */ new Set(["manifestLoadError", "manifestLoadTimeOut", "manifestParsingError"]);
|
|
2855
2854
|
var HlsVideo = React9.forwardRef(
|
|
2856
2855
|
({ src, capLevelToPlayerSize = true, onError, ...videoProps }, ref) => {
|
|
@@ -2868,7 +2867,7 @@ var HlsVideo = React9.forwardRef(
|
|
|
2868
2867
|
React9.useEffect(() => {
|
|
2869
2868
|
const video = videoRef.current;
|
|
2870
2869
|
if (!video || !activeSrc) return;
|
|
2871
|
-
if (!isHlsManifest(activeSrc)
|
|
2870
|
+
if (!isHlsManifest(activeSrc)) {
|
|
2872
2871
|
video.src = activeSrc;
|
|
2873
2872
|
return;
|
|
2874
2873
|
}
|
|
@@ -13847,9 +13846,20 @@ function AssetSelectorBar({
|
|
|
13847
13846
|
imageUrl,
|
|
13848
13847
|
badgeLabel,
|
|
13849
13848
|
tickerPrimary,
|
|
13850
|
-
compactName
|
|
13849
|
+
compactName,
|
|
13850
|
+
onOpenChange
|
|
13851
13851
|
}) {
|
|
13852
13852
|
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
|
13853
|
+
const openChangeRef = useRef(onOpenChange);
|
|
13854
|
+
openChangeRef.current = onOpenChange;
|
|
13855
|
+
const openSeenRef = useRef(false);
|
|
13856
|
+
useEffect(() => {
|
|
13857
|
+
if (!openSeenRef.current) {
|
|
13858
|
+
openSeenRef.current = true;
|
|
13859
|
+
return;
|
|
13860
|
+
}
|
|
13861
|
+
openChangeRef.current?.(isDropdownOpen);
|
|
13862
|
+
}, [isDropdownOpen]);
|
|
13853
13863
|
const [nameTip, setNameTip] = useState(null);
|
|
13854
13864
|
const anchorRef = useRef(null);
|
|
13855
13865
|
const [dropdownPos, setDropdownPos] = useState(null);
|