@superinterface/react 2.25.0 → 2.25.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/index.cjs +37 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +36 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
package/dist/index.cjs
CHANGED
|
@@ -1516,10 +1516,45 @@ var Image = function(props) {
|
|
|
1516
1516
|
});
|
|
1517
1517
|
};
|
|
1518
1518
|
// src/contexts/markdown/MarkdownContext/lib/components/Img/lib/isVideoSrc.ts
|
|
1519
|
-
var
|
|
1519
|
+
var videoExtensions = [
|
|
1520
|
+
"3g2",
|
|
1521
|
+
"3gp",
|
|
1522
|
+
"aaf",
|
|
1523
|
+
"asf",
|
|
1524
|
+
"avchd",
|
|
1525
|
+
"avi",
|
|
1526
|
+
"drc",
|
|
1527
|
+
"flv",
|
|
1528
|
+
"m2v",
|
|
1529
|
+
"m3u8",
|
|
1530
|
+
"m4p",
|
|
1531
|
+
"m4v",
|
|
1532
|
+
"mkv",
|
|
1533
|
+
"mng",
|
|
1534
|
+
"mov",
|
|
1535
|
+
"mp2",
|
|
1536
|
+
"mp4",
|
|
1537
|
+
"mpe",
|
|
1538
|
+
"mpeg",
|
|
1539
|
+
"mpg",
|
|
1540
|
+
"mpv",
|
|
1541
|
+
"mxf",
|
|
1542
|
+
"nsv",
|
|
1543
|
+
"ogg",
|
|
1544
|
+
"ogv",
|
|
1545
|
+
"qt",
|
|
1546
|
+
"rm",
|
|
1547
|
+
"rmvb",
|
|
1548
|
+
"roq",
|
|
1549
|
+
"svi",
|
|
1550
|
+
"vob",
|
|
1551
|
+
"webm",
|
|
1552
|
+
"wmv",
|
|
1553
|
+
"yuv"
|
|
1554
|
+
];
|
|
1520
1555
|
var isVideoSrc = function(param) {
|
|
1521
1556
|
var src = param.src;
|
|
1522
|
-
return
|
|
1557
|
+
return videoExtensions.includes(src.split(".").pop() || "");
|
|
1523
1558
|
};
|
|
1524
1559
|
// src/contexts/markdown/MarkdownContext/lib/components/Img/lib/isAudioSrc.ts
|
|
1525
1560
|
var isAudioSrc = function(param) {
|