analytica-frontend-lib 1.1.57 → 1.1.59
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/Accordation/index.js +20 -2
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +22 -3
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.js +20 -2
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +22 -3
- package/dist/Card/index.mjs.map +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/DropdownMenu/index.js.map +1 -1
- package/dist/DropdownMenu/index.mjs +1 -1
- package/dist/DropdownMenu/index.mjs.map +1 -1
- package/dist/NotificationCard/index.js +1 -1
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs +1 -1
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/Quiz/index.js +20 -2
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +32 -13
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Search/index.js +1 -1
- package/dist/Search/index.js.map +1 -1
- package/dist/Search/index.mjs +1 -1
- package/dist/Search/index.mjs.map +1 -1
- package/dist/SubjectInfo/index.d.mts +2 -0
- package/dist/SubjectInfo/index.d.ts +2 -0
- package/dist/SubjectInfo/index.js +313 -0
- package/dist/SubjectInfo/index.js.map +1 -0
- package/dist/SubjectInfo/index.mjs +293 -0
- package/dist/SubjectInfo/index.mjs.map +1 -0
- package/dist/SubjectInfo-DZvZ5alE.d.mts +37 -0
- package/dist/SubjectInfo-DZvZ5alE.d.ts +37 -0
- package/dist/VideoPlayer/index.js +20 -1
- package/dist/VideoPlayer/index.js.map +1 -1
- package/dist/VideoPlayer/index.mjs +20 -1
- package/dist/VideoPlayer/index.mjs.map +1 -1
- package/dist/index.css +73 -12
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +727 -382
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +758 -407
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +73 -12
- package/dist/styles.css.map +1 -1
- package/package.json +2 -1
package/dist/Card/index.js
CHANGED
|
@@ -1574,6 +1574,8 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1574
1574
|
const [showSpeedMenu, setShowSpeedMenu] = (0, import_react.useState)(false);
|
|
1575
1575
|
const [playbackRate, setPlaybackRate] = (0, import_react.useState)(1);
|
|
1576
1576
|
const audioRef = (0, import_react.useRef)(null);
|
|
1577
|
+
const volumeControlRef = (0, import_react.useRef)(null);
|
|
1578
|
+
const speedMenuRef = (0, import_react.useRef)(null);
|
|
1577
1579
|
const formatTime = (time) => {
|
|
1578
1580
|
const minutes = Math.floor(time / 60);
|
|
1579
1581
|
const seconds = Math.floor(time % 60);
|
|
@@ -1625,9 +1627,11 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1625
1627
|
};
|
|
1626
1628
|
const toggleVolumeControl = () => {
|
|
1627
1629
|
setShowVolumeControl(!showVolumeControl);
|
|
1630
|
+
setShowSpeedMenu(false);
|
|
1628
1631
|
};
|
|
1629
1632
|
const toggleSpeedMenu = () => {
|
|
1630
1633
|
setShowSpeedMenu(!showSpeedMenu);
|
|
1634
|
+
setShowVolumeControl(false);
|
|
1631
1635
|
};
|
|
1632
1636
|
const handleSpeedChange = (speed) => {
|
|
1633
1637
|
setPlaybackRate(speed);
|
|
@@ -1645,6 +1649,20 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1645
1649
|
}
|
|
1646
1650
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.SpeakerHigh, { size: 24 });
|
|
1647
1651
|
};
|
|
1652
|
+
(0, import_react.useEffect)(() => {
|
|
1653
|
+
const handleClickOutside = (event) => {
|
|
1654
|
+
if (volumeControlRef.current && !volumeControlRef.current.contains(event.target)) {
|
|
1655
|
+
setShowVolumeControl(false);
|
|
1656
|
+
}
|
|
1657
|
+
if (speedMenuRef.current && !speedMenuRef.current.contains(event.target)) {
|
|
1658
|
+
setShowSpeedMenu(false);
|
|
1659
|
+
}
|
|
1660
|
+
};
|
|
1661
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
1662
|
+
return () => {
|
|
1663
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
1664
|
+
};
|
|
1665
|
+
}, []);
|
|
1648
1666
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1649
1667
|
CardBase,
|
|
1650
1668
|
{
|
|
@@ -1733,7 +1751,7 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1733
1751
|
}
|
|
1734
1752
|
) }),
|
|
1735
1753
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-text-800 text-md font-medium min-w-[2.5rem]", children: formatTime(duration) }),
|
|
1736
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "relative h-6", children: [
|
|
1754
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "relative h-6", ref: volumeControlRef, children: [
|
|
1737
1755
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1738
1756
|
"button",
|
|
1739
1757
|
{
|
|
@@ -1795,7 +1813,7 @@ var CardAudio = (0, import_react.forwardRef)(
|
|
|
1795
1813
|
}
|
|
1796
1814
|
)
|
|
1797
1815
|
] }),
|
|
1798
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "relative h-6", children: [
|
|
1816
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "relative h-6", ref: speedMenuRef, children: [
|
|
1799
1817
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1800
1818
|
"button",
|
|
1801
1819
|
{
|