softbuilders-react-video-player 1.1.69 → 1.1.70
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ControlBar/index.js +8 -7
- package/dist/components/ControlBar/index.js.map +1 -1
- package/dist/components/ControlBar/index.tsx +19 -12
- package/dist/components/CreateNoteMenu/index.d.ts +3 -1
- package/dist/components/CreateNoteMenu/index.js +2 -2
- package/dist/components/CreateNoteMenu/index.js.map +1 -1
- package/dist/components/CreateNoteMenu/index.tsx +6 -0
- package/dist/components/MenuButton/index.d.ts +3 -1
- package/dist/components/MenuButton/index.js +2 -2
- package/dist/components/MenuButton/index.js.map +1 -1
- package/dist/components/MenuButton/index.tsx +9 -1
- package/dist/components/SubtitleMenu/index.d.ts +3 -1
- package/dist/components/SubtitleMenu/index.js +2 -2
- package/dist/components/SubtitleMenu/index.js.map +1 -1
- package/dist/components/SubtitleMenu/index.tsx +10 -1
- package/dist/components/Tooltip/index.d.ts +3 -4
- package/dist/components/Tooltip/index.js +10 -5
- package/dist/components/Tooltip/index.js.map +1 -1
- package/dist/components/Tooltip/index.tsx +19 -7
- package/dist/components/VideoPlayerComponent/index.js +1 -0
- package/dist/components/VideoPlayerComponent/index.js.map +1 -1
- package/dist/components/VideoPlayerComponent/index.tsx +1 -0
- package/dist/index.css +52 -4
- package/dist/index.mjs +76 -37
- package/dist/styles/tailwind.css +49 -4
- package/package.json +1 -1
@@ -11,9 +11,7 @@ import CurrentTimeTracker from "../CurrentTimeTracker";
|
|
11
11
|
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
12
12
|
import SubtitleMenu from "../SubtitleMenu";
|
13
13
|
import { BackwardIcon, ForwardIcon, FullScreenIcon, PauseIcon, PlayIcon, } from "../../images";
|
14
|
-
import Tooltip from "../Tooltip";
|
15
14
|
const ControlBar = ({ player, isPaused, setIsPaused, duration, notes, chapters, seekStep = 5, id, handleSaveNoteAction, handleControlDisplayTimer, setIsQualityMenuOpen, setIsSubtitleMenuOpen, setNoteOpen, disableNote, noteButtonClick, }) => {
|
16
|
-
console.log("432", notes);
|
17
15
|
const { setPlayer, setDuration } = useSoftBuildersVideoPlayerContext();
|
18
16
|
const [width, setWidth] = useState(0);
|
19
17
|
const [isSeeking, setIsSeeking] = useState(true);
|
@@ -78,16 +76,19 @@ const ControlBar = ({ player, isPaused, setIsPaused, duration, notes, chapters,
|
|
78
76
|
: { width: "98%" }, className: `flex gap-2 ${width < 400 ? "absolute sb-top-1" : "-sb-translate-y-0 sb-w-full"} hover:sb-w-[45%] `, children: [_jsx(CurrentTimeLabel, {}), _jsx(TimeSliderContainer, { chapters: chapters, notes: notes }), _jsx("p", { children: durationFormater(duration) })] }) }), _jsx("div", { className: "sb-h-full", children: _jsx(VolumeSlider, { volumeSliderToggler: volumeSliderToggler, width: width, setIsSeeking: (val) => setIsSeeking(val), handleControlDisplayTimer: handleControlDisplayTimer }) }), _jsx(QualityMenu, { width: width, onClick: (e, isOpen) => {
|
79
77
|
setVolumeToggler(!volumeSliderToggler);
|
80
78
|
setIsQualityMenuOpen && setIsQualityMenuOpen(isOpen);
|
81
|
-
} }), disableNote && (_jsx(CreateNoteMenu, { handleSaveNoteAction: handleSaveNoteAction, width: width, setNoteOpen: setNoteOpen, noteButtonClick: (e) => {
|
79
|
+
} }), disableNote && (_jsx(CreateNoteMenu, { onMouseEnter: () => setIsToolTip((prev) => (Object.assign(Object.assign({}, prev), { note: true }))), onMouseLeave: () => setIsToolTip((prev) => (Object.assign(Object.assign({}, prev), { note: false }))), handleSaveNoteAction: handleSaveNoteAction, width: width, setNoteOpen: setNoteOpen, noteButtonClick: (e) => {
|
82
80
|
noteButtonClick &&
|
83
81
|
noteButtonClick({
|
84
82
|
time: Number((player === null || player === void 0 ? void 0 : player.currentTime()) || 0),
|
85
83
|
isOpen: e,
|
86
84
|
});
|
87
|
-
} })), _jsx(
|
88
|
-
|
89
|
-
|
90
|
-
|
85
|
+
} })), _jsx(SubtitleMenu, { onMouseEnter: () => {
|
86
|
+
console.log("get well");
|
87
|
+
setIsToolTip((prev) => (Object.assign(Object.assign({}, prev), { sub: true })));
|
88
|
+
}, onMouseLeave: () => setIsToolTip((prev) => (Object.assign(Object.assign({}, prev), { sub: false }))), width: width, onClick: (e, isOpen) => {
|
89
|
+
setVolumeToggler(!volumeSliderToggler);
|
90
|
+
setIsSubtitleMenuOpen && setIsSubtitleMenuOpen(isOpen);
|
91
|
+
} }), _jsx("button", { onClick: (e) => {
|
91
92
|
e.preventDefault();
|
92
93
|
e.stopPropagation();
|
93
94
|
if (player === null || player === void 0 ? void 0 : player.isFullscreen()) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ControlBar/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AAKvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,SAAS,EACT,QAAQ,GACT,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ControlBar/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,gBA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CAAC,GACD,CACH,EAED,KAAC,YAAY,IACX,YAAY,EAAE,GAAG,EAAE;oBACjB,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;oBAExB,YAAY,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iCAAM,IAAI,KAAE,GAAG,EAAE,IAAI,IAAG,CAAC,CAAC;gBACnD,CAAC,EACD,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iCAAM,IAAI,KAAE,GAAG,EAAE,KAAK,IAAG,CAAC,EACrE,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,CAAC,CAAM,EAAE,MAAe,EAAE,EAAE;oBACnC,gBAAgB,CAAC,CAAC,mBAAmB,CAAC,CAAC;oBACvC,qBAAqB,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC;gBACzD,CAAC,GACD,EAEF,iBACE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,CAAC,CAAC,eAAe,EAAE,CAAC;oBAEpB,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,EAAE,EAAE,CAAC;wBAC3B,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,cAAc,EAAE,CAAC;oBAC3B,CAAC;yBAAM,CAAC;wBACN,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,iBAAiB,EAAE,CAAC;oBAC9B,CAAC;gBACH,CAAC,YAED,KAAC,cAAc,IAAC,SAAS,EAAC,eAAe,GAAG,GACrC,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
@@ -21,7 +21,6 @@ import {
|
|
21
21
|
PauseIcon,
|
22
22
|
PlayIcon,
|
23
23
|
} from "../../images";
|
24
|
-
import { set } from "video.js/dist/types/tech/middleware";
|
25
24
|
import Tooltip from "../Tooltip";
|
26
25
|
|
27
26
|
type Props<T> = {
|
@@ -69,8 +68,6 @@ const ControlBar = <T,>({
|
|
69
68
|
disableNote,
|
70
69
|
noteButtonClick,
|
71
70
|
}: Props<T>) => {
|
72
|
-
console.log("432", notes);
|
73
|
-
|
74
71
|
const { setPlayer, setDuration } = useSoftBuildersVideoPlayerContext();
|
75
72
|
const [width, setWidth] = useState<number>(0);
|
76
73
|
const [isSeeking, setIsSeeking] = useState(true);
|
@@ -208,6 +205,10 @@ const ControlBar = <T,>({
|
|
208
205
|
{/* handleSaveNoteAction */}
|
209
206
|
{disableNote && (
|
210
207
|
<CreateNoteMenu
|
208
|
+
onMouseEnter={() => setIsToolTip((prev) => ({ ...prev, note: true }))}
|
209
|
+
onMouseLeave={() =>
|
210
|
+
setIsToolTip((prev) => ({ ...prev, note: false }))
|
211
|
+
}
|
211
212
|
handleSaveNoteAction={handleSaveNoteAction}
|
212
213
|
width={width}
|
213
214
|
setNoteOpen={setNoteOpen}
|
@@ -220,15 +221,21 @@ const ControlBar = <T,>({
|
|
220
221
|
}}
|
221
222
|
/>
|
222
223
|
)}
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
224
|
+
|
225
|
+
<SubtitleMenu
|
226
|
+
onMouseEnter={() => {
|
227
|
+
console.log("get well");
|
228
|
+
|
229
|
+
setIsToolTip((prev) => ({ ...prev, sub: true }));
|
230
|
+
}}
|
231
|
+
onMouseLeave={() => setIsToolTip((prev) => ({ ...prev, sub: false }))}
|
232
|
+
width={width}
|
233
|
+
onClick={(e: any, isOpen: boolean) => {
|
234
|
+
setVolumeToggler(!volumeSliderToggler);
|
235
|
+
setIsSubtitleMenuOpen && setIsSubtitleMenuOpen(isOpen);
|
236
|
+
}}
|
237
|
+
/>
|
238
|
+
|
232
239
|
<button
|
233
240
|
onClick={(e) => {
|
234
241
|
e.preventDefault();
|
@@ -3,6 +3,8 @@ type Props<T> = {
|
|
3
3
|
width: number;
|
4
4
|
setNoteOpen?: (val: boolean) => void;
|
5
5
|
noteButtonClick?: (e: any) => void;
|
6
|
+
onMouseEnter?: () => void;
|
7
|
+
onMouseLeave?: () => void;
|
6
8
|
};
|
7
|
-
declare const CreateNoteMenu: <T>({ handleSaveNoteAction, width, setNoteOpen, noteButtonClick, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
9
|
+
declare const CreateNoteMenu: <T>({ handleSaveNoteAction, width, setNoteOpen, noteButtonClick, onMouseEnter, onMouseLeave, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
8
10
|
export default CreateNoteMenu;
|
@@ -3,7 +3,7 @@ import { useState } from "react";
|
|
3
3
|
import MenuButton from "../MenuButton";
|
4
4
|
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
5
5
|
import { ClosedNoteIcon } from "../../images";
|
6
|
-
const CreateNoteMenu = ({ handleSaveNoteAction, width, setNoteOpen, noteButtonClick, }) => {
|
6
|
+
const CreateNoteMenu = ({ handleSaveNoteAction, width, setNoteOpen, noteButtonClick, onMouseEnter, onMouseLeave, }) => {
|
7
7
|
const { player } = useSoftBuildersVideoPlayerContext();
|
8
8
|
const [note, setNote] = useState("");
|
9
9
|
const handleSaveNote = () => {
|
@@ -17,7 +17,7 @@ const CreateNoteMenu = ({ handleSaveNoteAction, width, setNoteOpen, noteButtonCl
|
|
17
17
|
window.alert("Video Player, there is no implementation for the handleSaveNoteAction function");
|
18
18
|
}
|
19
19
|
};
|
20
|
-
return (_jsx(MenuButton, { disablePopUp: true, noteButtonClick: noteButtonClick, setNoteOpen: setNoteOpen, classContainer: `${width < 400 ? "!sb-top-8 -sb-left-[9.75rem]" : ""}`, buttonContent: _jsx(ClosedNoteIcon, { className: "sb-w-3 sb-h-3" }), menuContent: _jsx("div", { className: `sb-rounded-md sb-bg-[#303030] sb-bg-opacity-50 ${width > 400 ? " sb-py-5 sb-w-[220px]" : "sb-py-1 sb-w-[150px]"}`, children: _jsxs("div", { className: "sb-flex sb-flex-col sb-gap-3 sb-items-center sb-justify-center", onClick: (e) => e.stopPropagation(), children: [_jsx("h3", { className: "sb-px-5", children: "Add Note" }), _jsx("div", { className: "sb-w-full sb-h-[.1px] sb-bg-[#AAAAAA] sb-bg-opacity-70" }), _jsxs("div", { className: "sb-px-5 sb-flex sb-flex-col sb-gap-4 sb-items-start", children: [_jsx("input", { onClick: (e) => e.stopPropagation(), name: "note", type: "text", placeholder: "Add a note", value: note, onChange: (e) => setNote(e.target.value), required: true, className: "sb-text-white placeholder:sb-text-white sb-w-full sb-bg-transparent sb-px-4 sb-py-3 sb-border sb-border-[#AAAAAA] sb-rounded-md" }), _jsx("button", { className: "sb-w-full", onClick: handleSaveNote, children: _jsx("div", { className: "sb-px-4 sb-py-3 sb-text-center sb-font-bold sb-bg-orange-500 sb-rounded-md", children: "Save" }) })] })] }) }) }));
|
20
|
+
return (_jsx(MenuButton, { onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, disablePopUp: true, noteButtonClick: noteButtonClick, setNoteOpen: setNoteOpen, classContainer: `${width < 400 ? "!sb-top-8 -sb-left-[9.75rem]" : ""}`, buttonContent: _jsx(ClosedNoteIcon, { className: "sb-w-3 sb-h-3" }), menuContent: _jsx("div", { className: `sb-rounded-md sb-bg-[#303030] sb-bg-opacity-50 ${width > 400 ? " sb-py-5 sb-w-[220px]" : "sb-py-1 sb-w-[150px]"}`, children: _jsxs("div", { className: "sb-flex sb-flex-col sb-gap-3 sb-items-center sb-justify-center", onClick: (e) => e.stopPropagation(), children: [_jsx("h3", { className: "sb-px-5", children: "Add Note" }), _jsx("div", { className: "sb-w-full sb-h-[.1px] sb-bg-[#AAAAAA] sb-bg-opacity-70" }), _jsxs("div", { className: "sb-px-5 sb-flex sb-flex-col sb-gap-4 sb-items-start", children: [_jsx("input", { onClick: (e) => e.stopPropagation(), name: "note", type: "text", placeholder: "Add a note", value: note, onChange: (e) => setNote(e.target.value), required: true, className: "sb-text-white placeholder:sb-text-white sb-w-full sb-bg-transparent sb-px-4 sb-py-3 sb-border sb-border-[#AAAAAA] sb-rounded-md" }), _jsx("button", { className: "sb-w-full", onClick: handleSaveNote, children: _jsx("div", { className: "sb-px-4 sb-py-3 sb-text-center sb-font-bold sb-bg-orange-500 sb-rounded-md", children: "Save" }) })] })] }) }) }));
|
21
21
|
};
|
22
22
|
export default CreateNoteMenu;
|
23
23
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CreateNoteMenu/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CreateNoteMenu/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAU9C,MAAM,cAAc,GAAG,CAAK,EAC1B,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,eAAe,EACf,YAAY,EACZ,YAAY,GACH,EAAE,EAAE;IACb,MAAM,EAAE,MAAM,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAEvD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAErC,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,IAAI,oBAAoB,EAAE,CAAC;YACzB,MAAM,IAAI,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,EAAE,KAAI,CAAC,CAAC;YAC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W,EAAC,OAAO,EAAE,cAAc,YACnD,cAAK,SAAS,EAAC,4EAA4E,qBAErF,GACC,IACL,IACF,GACF,GAER,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
@@ -8,12 +8,16 @@ type Props<T> = {
|
|
8
8
|
width: number;
|
9
9
|
setNoteOpen?: (val: boolean) => void;
|
10
10
|
noteButtonClick?: (e: any) => void;
|
11
|
+
onMouseEnter?: () => void;
|
12
|
+
onMouseLeave?: () => void;
|
11
13
|
};
|
12
14
|
const CreateNoteMenu = <T,>({
|
13
15
|
handleSaveNoteAction,
|
14
16
|
width,
|
15
17
|
setNoteOpen,
|
16
18
|
noteButtonClick,
|
19
|
+
onMouseEnter,
|
20
|
+
onMouseLeave,
|
17
21
|
}: Props<T>) => {
|
18
22
|
const { player } = useSoftBuildersVideoPlayerContext();
|
19
23
|
|
@@ -34,6 +38,8 @@ const CreateNoteMenu = <T,>({
|
|
34
38
|
|
35
39
|
return (
|
36
40
|
<MenuButton
|
41
|
+
onMouseEnter={onMouseEnter}
|
42
|
+
onMouseLeave={onMouseLeave}
|
37
43
|
disablePopUp={true}
|
38
44
|
noteButtonClick={noteButtonClick}
|
39
45
|
setNoteOpen={setNoteOpen}
|
@@ -8,6 +8,8 @@ type Props = {
|
|
8
8
|
setNoteOpen?: (val: boolean) => void;
|
9
9
|
noteButtonClick?: (e: any) => void;
|
10
10
|
disablePopUp?: boolean;
|
11
|
+
onMouseEnter?: () => void;
|
12
|
+
onMouseLeave?: () => void;
|
11
13
|
};
|
12
|
-
declare const MenuButton: ({ buttonContent, menuContent, close, classContainer, onClick, setNoteOpen, noteButtonClick, disablePopUp, }: Props) => import("react/jsx-runtime").JSX.Element;
|
14
|
+
declare const MenuButton: ({ buttonContent, menuContent, close, classContainer, onClick, setNoteOpen, noteButtonClick, disablePopUp, onMouseEnter, onMouseLeave, }: Props) => import("react/jsx-runtime").JSX.Element;
|
13
15
|
export default MenuButton;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { useCallback, useEffect, useRef, useState } from "react";
|
3
|
-
const MenuButton = ({ buttonContent, menuContent, close, classContainer, onClick, setNoteOpen, noteButtonClick, disablePopUp = false, }) => {
|
3
|
+
const MenuButton = ({ buttonContent, menuContent, close, classContainer, onClick, setNoteOpen, noteButtonClick, disablePopUp = false, onMouseEnter, onMouseLeave, }) => {
|
4
4
|
const [isOpen, setIsOpen] = useState(false);
|
5
5
|
const buttonRef = useRef(null);
|
6
6
|
const menuRef = useRef(null);
|
@@ -27,7 +27,7 @@ const MenuButton = ({ buttonContent, menuContent, close, classContainer, onClick
|
|
27
27
|
useEffect(() => {
|
28
28
|
setNoteOpen && setNoteOpen(isOpen);
|
29
29
|
}, [isOpen]);
|
30
|
-
return (_jsxs("div", { className: "sb-relative sb-flex sb-items-end", children: [_jsx("button", { ref: buttonRef, onClick: (e) => {
|
30
|
+
return (_jsxs("div", { onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, className: "sb-relative sb-flex sb-items-end", children: [_jsx("button", { ref: buttonRef, onClick: (e) => {
|
31
31
|
isOpen && e.stopPropagation();
|
32
32
|
// if (!disablePopUp) {
|
33
33
|
toggleMenu();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MenuButton/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MenuButton/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAgBxE,MAAM,UAAU,GAAG,CAAC,EAClB,aAAa,EACb,WAAW,EACX,KAAK,EACL,cAAc,EACd,OAAO,E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AAE;QACb,WAAW,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACb,OAAO,CACL,eACE,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAC,mCAAmC,aAE7C,iBACE,GAAG,EAAE,SAAS,EACd,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE;oBAClB,MAAM,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;oBAC9B,uBAAuB;oBACvB,UAAU,EAAE,CAAC;oBACb,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;oBAC/B,IAAI;oBAEJ,eAAe,IAAI,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;gBAC9C,CAAC,mBACa,MAAM,mBACL,MAAM,gBACV,WAAW,YAErB,aAAa,GACP,EAER,CAAC,YAAY,IAAI,MAAM,IAAI,CAC1B,cACE,GAAG,EAAE,OAAO,EACZ,IAAI,EAAC,MAAM,sBACM,UAAU,qBACX,WAAW,EAC3B,SAAS,EAAE,oDAAoD,cAAc,EAAE,YAE9E,WAAW,GACR,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
@@ -10,6 +10,8 @@ type Props = {
|
|
10
10
|
setNoteOpen?: (val: boolean) => void;
|
11
11
|
noteButtonClick?: (e: any) => void;
|
12
12
|
disablePopUp?: boolean;
|
13
|
+
onMouseEnter?: () => void;
|
14
|
+
onMouseLeave?: () => void;
|
13
15
|
};
|
14
16
|
|
15
17
|
const MenuButton = ({
|
@@ -21,6 +23,8 @@ const MenuButton = ({
|
|
21
23
|
setNoteOpen,
|
22
24
|
noteButtonClick,
|
23
25
|
disablePopUp = false,
|
26
|
+
onMouseEnter,
|
27
|
+
onMouseLeave,
|
24
28
|
}: Props) => {
|
25
29
|
const [isOpen, setIsOpen] = useState(false);
|
26
30
|
const buttonRef = useRef<HTMLButtonElement | null>(null);
|
@@ -55,7 +59,11 @@ const MenuButton = ({
|
|
55
59
|
setNoteOpen && setNoteOpen(isOpen);
|
56
60
|
}, [isOpen]);
|
57
61
|
return (
|
58
|
-
<div
|
62
|
+
<div
|
63
|
+
onMouseEnter={onMouseEnter}
|
64
|
+
onMouseLeave={onMouseLeave}
|
65
|
+
className="sb-relative sb-flex sb-items-end"
|
66
|
+
>
|
59
67
|
<button
|
60
68
|
ref={buttonRef}
|
61
69
|
onClick={(e: any) => {
|
@@ -1,6 +1,8 @@
|
|
1
1
|
type SubtitleMenuProps = {
|
2
2
|
width: number;
|
3
3
|
onClick: (e: any, isOpen: boolean) => void;
|
4
|
+
onMouseEnter?: () => void;
|
5
|
+
onMouseLeave?: () => void;
|
4
6
|
};
|
5
|
-
declare const SubtitleMenu: ({ width, onClick }: SubtitleMenuProps) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
declare const SubtitleMenu: ({ width, onClick, onMouseEnter, onMouseLeave, }: SubtitleMenuProps) => import("react/jsx-runtime").JSX.Element;
|
6
8
|
export default SubtitleMenu;
|
@@ -9,7 +9,7 @@ const SubtitleOption = ({ isSelected, subtitle, onClick, }) => {
|
|
9
9
|
onClick(e);
|
10
10
|
}, children: _jsxs("div", { className: "sb-grid sb-grid-cols-12 sb-items-center sb-gap-2", children: [_jsx("div", { className: "sb-col-span-3", children: isSelected ? _jsx(CheckedIcon, { className: "sb-w-5 sb-h-5" }) : _jsx("div", {}) }), _jsx("p", { className: "sb-text-left sb-col-span-9", children: subtitle.label })] }) }));
|
11
11
|
};
|
12
|
-
const SubtitleMenu = ({ width, onClick }) => {
|
12
|
+
const SubtitleMenu = ({ width, onClick, onMouseEnter, onMouseLeave, }) => {
|
13
13
|
const { player } = useSoftBuildersVideoPlayerContext();
|
14
14
|
const [closeMenuFunction, setCloseMenuFunction] = useState(undefined);
|
15
15
|
const [subtitles, setSubtitles] = useState([]);
|
@@ -32,7 +32,7 @@ const SubtitleMenu = ({ width, onClick }) => {
|
|
32
32
|
setSubtitles(textTracks);
|
33
33
|
}
|
34
34
|
}, [player]);
|
35
|
-
return (_jsx(MenuButton, { onClick: (e, isOpen) => {
|
35
|
+
return (_jsx(MenuButton, { onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onClick: (e, isOpen) => {
|
36
36
|
onClick && onClick(e, isOpen);
|
37
37
|
}, classContainer: `${width < 400 ? "!sb-top-8 -sb-left-9" : ""}`, buttonContent: _jsx(SubIcon, { className: "sb-w-4 sb-h-4 sb-text-white " }), menuContent: _jsx("div", { className: `sb-rounded-md sb-bg-[#303030] sb-bg-opacity-50 ${width > 400
|
38
38
|
? "sb-w-[150px] sb-py-5"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SubtitleMenu/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAOnE,MAAM,cAAc,GAAG,CAAC,EACtB,UAAU,EACV,QAAQ,EACR,OAAO,GACa,EAAE,EAAE;IACxB,OAAO,CACL,iBACE,SAAS,EAAC,iCAAiC,EAC3C,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE;YAClB,CAAC,CAAC,eAAe,EAAE,CAAC;YACpB,OAAO,CAAC,CAAC,CAAC,CAAC;QACb,CAAC,YAED,eAAK,SAAS,EAAC,kDAAkD,aAC/D,cAAK,SAAS,EAAC,eAAe,YAC3B,UAAU,CAAC,CAAC,CAAC,KAAC,WAAW,IAAC,SAAS,EAAC,eAAe,GAAG,CAAC,CAAC,CAAC,eAAW,GACjE,EAEN,YAAG,SAAS,EAAC,4BAA4B,YAAE,QAAQ,CAAC,KAAK,GA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B,EAAE,CAAC;oCACtB,CAAC;gCACH,CAAC,EACD,SAAS,EAAC,oBAAoB,YAE9B,KAAC,aAAa,IAAC,SAAS,EAAC,eAAe,GAAG,GACpC,EACT,oCAAiB,IACb,EAEN,cAAK,SAAS,EAAC,wDAAwD,GAAG,EAE1E,cAAK,SAAS,EAAC,sDAAsD,YAClE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;4BACtB,OAAO,CACL,KAAC,cAAc,IAEb,UAAU,EAAE,CAAC,CAAC,IAAI,KAAK,SAAS,EAChC,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,GAAG,EAAE;oCACZ,oBAAoB,CAAC,CAAC,CAAC,CAAC;gCAC1B,CAAC,IALI,YAAY,CAAC,CAAC,KAAK,IAAI,CAAC,EAAE,CAM/B,CACH,CAAC;wBACJ,CAAC,CAAC,GACE,IACF,GACF,EAER,KAAK,EAAE,CAAC,EAAY,EAAE,EAAE;YACtB,oBAAoB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QACjC,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -35,9 +35,16 @@ const SubtitleOption = ({
|
|
35
35
|
type SubtitleMenuProps = {
|
36
36
|
width: number;
|
37
37
|
onClick: (e: any, isOpen: boolean) => void;
|
38
|
+
onMouseEnter?: () => void;
|
39
|
+
onMouseLeave?: () => void;
|
38
40
|
};
|
39
41
|
|
40
|
-
const SubtitleMenu = ({
|
42
|
+
const SubtitleMenu = ({
|
43
|
+
width,
|
44
|
+
onClick,
|
45
|
+
onMouseEnter,
|
46
|
+
onMouseLeave,
|
47
|
+
}: SubtitleMenuProps) => {
|
41
48
|
const { player } = useSoftBuildersVideoPlayerContext();
|
42
49
|
|
43
50
|
const [closeMenuFunction, setCloseMenuFunction] = useState<
|
@@ -69,6 +76,8 @@ const SubtitleMenu = ({ width, onClick }: SubtitleMenuProps) => {
|
|
69
76
|
|
70
77
|
return (
|
71
78
|
<MenuButton
|
79
|
+
onMouseEnter={onMouseEnter}
|
80
|
+
onMouseLeave={onMouseLeave}
|
72
81
|
onClick={(e: any, isOpen: boolean) => {
|
73
82
|
onClick && onClick(e, isOpen);
|
74
83
|
}}
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import React from "react";
|
2
|
-
type
|
2
|
+
type TooltipProps = {
|
3
3
|
open: boolean;
|
4
4
|
children: React.ReactNode;
|
5
|
-
|
6
|
-
onMouseLeave?: (e: any) => void;
|
5
|
+
position?: "top" | "bottom" | "left" | "right";
|
7
6
|
};
|
8
|
-
declare const Tooltip:
|
7
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
9
8
|
export default Tooltip;
|
@@ -1,11 +1,16 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
const Tooltip = ({ open, children }) => {
|
2
|
+
const Tooltip = ({ open, children, position = "top", }) => {
|
3
3
|
if (!open)
|
4
4
|
return null;
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
console.log("tool tip");
|
6
|
+
// Positioning logic for tooltip
|
7
|
+
const positionClasses = {
|
8
|
+
top: "sb-bottom-full sb-left-1/2 sb-transform -sb-translate-x-1/2 sb-mb-2",
|
9
|
+
bottom: "sb-top-full sb-left-1/2 sb-transform -sb-translate-x-1/2 sb-mt-2",
|
10
|
+
left: "sb-right-full sb-top-1/2 sb-transform -sb-translate-y-1/2 sb-mr-2",
|
11
|
+
right: "sb-left-full sb-top-1/2 sb-transform -sb-translate-y-1/2 sb-ml-2",
|
12
|
+
};
|
13
|
+
return (_jsx("div", { className: `sb-relative sb-bg-black sb-text-white sb-text-sm sb-px-2 sb-py-1 sb-rounded sb-shadow-md sb-z-50 ${positionClasses[position]}`, children: children }));
|
9
14
|
};
|
10
15
|
export default Tooltip;
|
11
16
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":";AAQA,MAAM,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":";AAQA,MAAM,OAAO,GAA2B,CAAC,EACvC,IAAI,EACJ,QAAQ,EACR,QAAQ,GAAG,KAAK,GACjB,EAAE,EAAE;IACH,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IACvB,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAExB,gCAAgC;IAChC,MAAM,eAAe,GAAG;QACtB,GAAG,EAAE,qEAAqE;QAC1E,MAAM,EAAE,kEAAkE;QAC1E,IAAI,EAAE,mEAAmE;QACzE,KAAK,EAAE,kEAAkE;KAC1E,CAAC;IAEF,OAAO,CACL,cACE,SAAS,EAAE,oGAAoG,eAAe,CAAC,QAAQ,CAAC,EAAE,YAEzI,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -1,18 +1,30 @@
|
|
1
1
|
import React from "react";
|
2
2
|
|
3
|
-
type
|
3
|
+
type TooltipProps = {
|
4
4
|
open: boolean;
|
5
5
|
children: React.ReactNode;
|
6
|
-
|
7
|
-
onMouseLeave?: (e: any) => void;
|
6
|
+
position?: "top" | "bottom" | "left" | "right"; // Optional position prop for flexibility
|
8
7
|
};
|
9
|
-
|
8
|
+
|
9
|
+
const Tooltip: React.FC<TooltipProps> = ({
|
10
|
+
open,
|
11
|
+
children,
|
12
|
+
position = "top",
|
13
|
+
}) => {
|
10
14
|
if (!open) return null;
|
15
|
+
console.log("tool tip");
|
16
|
+
|
17
|
+
// Positioning logic for tooltip
|
18
|
+
const positionClasses = {
|
19
|
+
top: "sb-bottom-full sb-left-1/2 sb-transform -sb-translate-x-1/2 sb-mb-2",
|
20
|
+
bottom: "sb-top-full sb-left-1/2 sb-transform -sb-translate-x-1/2 sb-mt-2",
|
21
|
+
left: "sb-right-full sb-top-1/2 sb-transform -sb-translate-y-1/2 sb-mr-2",
|
22
|
+
right: "sb-left-full sb-top-1/2 sb-transform -sb-translate-y-1/2 sb-ml-2",
|
23
|
+
};
|
24
|
+
|
11
25
|
return (
|
12
26
|
<div
|
13
|
-
|
14
|
-
// on
|
15
|
-
className="sb-absolute sb-bottom-full sb-mb-2 sb-left-1/2 sb-transform sb--translate-x-1/2 sb-z-10 sb-whitespace-nowrap"
|
27
|
+
className={`sb-relative sb-bg-black sb-text-white sb-text-sm sb-px-2 sb-py-1 sb-rounded sb-shadow-md sb-z-50 ${positionClasses[position]}`}
|
16
28
|
>
|
17
29
|
{children}
|
18
30
|
</div>
|
@@ -232,6 +232,7 @@ const VideoPlayerComponent = forwardRef(({ id, options, notes, chapters, startTi
|
|
232
232
|
if (playerRef.current) {
|
233
233
|
if (playerRef.current.paused()) {
|
234
234
|
try {
|
235
|
+
startTime && playerRef.current.currentTime(startTime);
|
235
236
|
await playerRef.current.play();
|
236
237
|
setIsPaused(false);
|
237
238
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/VideoPlayerComponent/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,OAAO,MAAM,UAAU,CAAC;AAE/B,OAAO,4BAA4B,CAAC;AACpC,OAAO,UAAU,MAAM,eAAe,CAAC;AAMvC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,IAAI,iBAAiB,GAEjB,EAAE,CAAC;AACP,MAAM,mBAAmB,GAAG,CAC1B,EAAU,EACV,MAA0B,EAC1B,QAAiB,E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AT,SAAS,CAAE,OAAO,0CAAE,WAAW,EAAE,CAAC,CAAC,CAAC;IAExC,OAAO,CACL,eACE,GAAG,EAAE,SAAS,EACd,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAC3B,WAAW,EAAE,GAAG,EAAE;YAChB,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACpD,CAAC,EACD,SAAS,EAAC,gFAAgF,EAC1F,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EACtC,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,aAEtC,YAAY,IAAI,CACf,cACE,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,iBAAiB,EAC1B,SAAS,EAAE,+IACT,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,gBACtC,EAAE,EACF,KAAK,EAAE;oBACL,KAAK,EAAE,UAAU;iBAClB,GACI,CACR,EACD,cACE,SAAS,EAAC,6CAA6C,qCAIvD,cACE,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,QAAQ,EACb,SAAS,EAAC,iCAAiC,GACtC,GACH,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AACF,eAAe,oBAAoB,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/VideoPlayerComponent/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,OAAO,MAAM,UAAU,CAAC;AAE/B,OAAO,4BAA4B,CAAC;AACpC,OAAO,UAAU,MAAM,eAAe,CAAC;AAMvC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,2BAA2B,CAAC;AACnC,OAAO,E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G,QAAQ,CAAC,GAAG,GAAG,GAAG,CAAC;oBACnD,aAAa,CAAC,KAAK,CAAC,CAAC;gBACvB,CAAC;qBAAM,CAAC;oBACN,aAAa,CAAC,GAAG,CAAC,CAAC;gBACrB,CAAC;YACH,CAAC;QACH,CAAC,CAAC;QACF,gBAAgB,EAAE,CAAC;IACrB,CAAC,EAAE,CAAC,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,OAAO,0CAAE,WAAW,EAAE,CAAC,CAAC,CAAC;IAExC,OAAO,CACL,eACE,GAAG,EAAE,SAAS,EACd,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAC3B,WAAW,EAAE,GAAG,EAAE;YAChB,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACpD,CAAC,EACD,SAAS,EAAC,gFAAgF,EAC1F,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EACtC,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,aAEtC,YAAY,IAAI,CACf,cACE,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,iBAAiB,EAC1B,SAAS,EAAE,+IACT,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,gBACtC,EAAE,EACF,KAAK,EAAE;oBACL,KAAK,EAAE,UAAU;iBAClB,GACI,CACR,EACD,cACE,SAAS,EAAC,6CAA6C,qCAIvD,cACE,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,QAAQ,EACb,SAAS,EAAC,iCAAiC,GACtC,GACH,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AACF,eAAe,oBAAoB,CAAC"}
|
@@ -347,6 +347,7 @@ const VideoPlayerComponent = forwardRef<HTMLDivElement, Props<any>>(
|
|
347
347
|
if (playerRef.current) {
|
348
348
|
if (playerRef.current.paused()) {
|
349
349
|
try {
|
350
|
+
startTime && playerRef.current.currentTime(startTime);
|
350
351
|
await playerRef.current.play();
|
351
352
|
setIsPaused(false);
|
352
353
|
} catch (error) {
|
package/dist/index.css
CHANGED
@@ -460,21 +460,33 @@ video {
|
|
460
460
|
.sb-left-1\/2 {
|
461
461
|
left: 50%;
|
462
462
|
}
|
463
|
+
.sb-left-full {
|
464
|
+
left: 100%;
|
465
|
+
}
|
463
466
|
.sb-right-0 {
|
464
467
|
right: 0px;
|
465
468
|
}
|
469
|
+
.sb-right-full {
|
470
|
+
right: 100%;
|
471
|
+
}
|
466
472
|
.sb-top-0 {
|
467
473
|
top: 0px;
|
468
474
|
}
|
469
475
|
.sb-top-1 {
|
470
476
|
top: 0.25rem;
|
471
477
|
}
|
478
|
+
.sb-top-1\/2 {
|
479
|
+
top: 50%;
|
480
|
+
}
|
472
481
|
.sb-top-2 {
|
473
482
|
top: 0.5rem;
|
474
483
|
}
|
475
484
|
.sb-top-\[27\%\] {
|
476
485
|
top: 27%;
|
477
486
|
}
|
487
|
+
.sb-top-full {
|
488
|
+
top: 100%;
|
489
|
+
}
|
478
490
|
.sb-z-10 {
|
479
491
|
z-index: 10;
|
480
492
|
}
|
@@ -484,6 +496,9 @@ video {
|
|
484
496
|
.sb-z-30 {
|
485
497
|
z-index: 30;
|
486
498
|
}
|
499
|
+
.sb-z-50 {
|
500
|
+
z-index: 50;
|
501
|
+
}
|
487
502
|
.sb-col-span-3 {
|
488
503
|
grid-column: span 3 / span 3;
|
489
504
|
}
|
@@ -499,9 +514,18 @@ video {
|
|
499
514
|
.sb-ml-0 {
|
500
515
|
margin-left: 0px;
|
501
516
|
}
|
517
|
+
.sb-ml-2 {
|
518
|
+
margin-left: 0.5rem;
|
519
|
+
}
|
502
520
|
.sb-mr-0 {
|
503
521
|
margin-right: 0px;
|
504
522
|
}
|
523
|
+
.sb-mr-2 {
|
524
|
+
margin-right: 0.5rem;
|
525
|
+
}
|
526
|
+
.sb-mt-2 {
|
527
|
+
margin-top: 0.5rem;
|
528
|
+
}
|
505
529
|
.sb-flex {
|
506
530
|
display: flex;
|
507
531
|
}
|
@@ -575,6 +599,10 @@ video {
|
|
575
599
|
--tw-border-spacing-x: 0.5rem;
|
576
600
|
border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
|
577
601
|
}
|
602
|
+
.-sb-translate-x-1\/2 {
|
603
|
+
--tw-translate-x: -50%;
|
604
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
605
|
+
}
|
578
606
|
.-sb-translate-y-0 {
|
579
607
|
--tw-translate-y: -0px;
|
580
608
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
@@ -583,8 +611,8 @@ video {
|
|
583
611
|
--tw-translate-y: -0.25rem;
|
584
612
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
585
613
|
}
|
586
|
-
|
587
|
-
--tw-translate-
|
614
|
+
.-sb-translate-y-1\/2 {
|
615
|
+
--tw-translate-y: -50%;
|
588
616
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
589
617
|
}
|
590
618
|
.sb-translate-y-0 {
|
@@ -669,8 +697,8 @@ video {
|
|
669
697
|
.sb-overflow-hidden {
|
670
698
|
overflow: hidden;
|
671
699
|
}
|
672
|
-
.sb-
|
673
|
-
|
700
|
+
.sb-rounded {
|
701
|
+
border-radius: 0.25rem;
|
674
702
|
}
|
675
703
|
.sb-rounded-full {
|
676
704
|
border-radius: 9999px;
|
@@ -700,6 +728,10 @@ video {
|
|
700
728
|
--tw-bg-opacity: 1;
|
701
729
|
background-color: rgb(255 0 0 / var(--tw-bg-opacity));
|
702
730
|
}
|
731
|
+
.sb-bg-black {
|
732
|
+
--tw-bg-opacity: 1;
|
733
|
+
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
734
|
+
}
|
703
735
|
.sb-bg-orange-500 {
|
704
736
|
--tw-bg-opacity: 1;
|
705
737
|
background-color: rgb(249 115 22 / var(--tw-bg-opacity));
|
@@ -731,6 +763,10 @@ video {
|
|
731
763
|
padding-left: 1rem !important;
|
732
764
|
padding-right: 1rem !important;
|
733
765
|
}
|
766
|
+
.sb-px-2 {
|
767
|
+
padding-left: 0.5rem;
|
768
|
+
padding-right: 0.5rem;
|
769
|
+
}
|
734
770
|
.sb-px-4 {
|
735
771
|
padding-left: 1rem;
|
736
772
|
padding-right: 1rem;
|
@@ -763,6 +799,10 @@ video {
|
|
763
799
|
.sb-text-center {
|
764
800
|
text-align: center;
|
765
801
|
}
|
802
|
+
.sb-text-sm {
|
803
|
+
font-size: 0.875rem;
|
804
|
+
line-height: 1.25rem;
|
805
|
+
}
|
766
806
|
.sb-font-bold {
|
767
807
|
font-weight: 700;
|
768
808
|
}
|
@@ -784,6 +824,14 @@ video {
|
|
784
824
|
var(--tw-ring-shadow, 0 0 #0000),
|
785
825
|
var(--tw-shadow);
|
786
826
|
}
|
827
|
+
.sb-shadow-md {
|
828
|
+
--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
829
|
+
--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
|
830
|
+
box-shadow:
|
831
|
+
var(--tw-ring-offset-shadow, 0 0 #0000),
|
832
|
+
var(--tw-ring-shadow, 0 0 #0000),
|
833
|
+
var(--tw-shadow);
|
834
|
+
}
|
787
835
|
.sb-backdrop-blur-lg {
|
788
836
|
--tw-backdrop-blur: blur(16px);
|
789
837
|
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
package/dist/index.mjs
CHANGED
@@ -610,7 +610,9 @@ var MenuButton = ({
|
|
610
610
|
onClick,
|
611
611
|
setNoteOpen,
|
612
612
|
noteButtonClick,
|
613
|
-
disablePopUp = false
|
613
|
+
disablePopUp = false,
|
614
|
+
onMouseEnter,
|
615
|
+
onMouseLeave
|
614
616
|
}) => {
|
615
617
|
const [isOpen, setIsOpen] = useState3(false);
|
616
618
|
const buttonRef = useRef(null);
|
@@ -634,35 +636,43 @@ var MenuButton = ({
|
|
634
636
|
useEffect3(() => {
|
635
637
|
setNoteOpen && setNoteOpen(isOpen);
|
636
638
|
}, [isOpen]);
|
637
|
-
return /* @__PURE__ */ jsxs5(
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
639
|
+
return /* @__PURE__ */ jsxs5(
|
640
|
+
"div",
|
641
|
+
{
|
642
|
+
onMouseEnter,
|
643
|
+
onMouseLeave,
|
644
|
+
className: "sb-relative sb-flex sb-items-end",
|
645
|
+
children: [
|
646
|
+
/* @__PURE__ */ jsx20(
|
647
|
+
"button",
|
648
|
+
{
|
649
|
+
ref: buttonRef,
|
650
|
+
onClick: (e) => {
|
651
|
+
isOpen && e.stopPropagation();
|
652
|
+
toggleMenu();
|
653
|
+
onClick && onClick(e, !isOpen);
|
654
|
+
noteButtonClick && noteButtonClick(!isOpen);
|
655
|
+
},
|
656
|
+
"aria-haspopup": "true",
|
657
|
+
"aria-expanded": isOpen,
|
658
|
+
"aria-label": "Open menu",
|
659
|
+
children: buttonContent
|
660
|
+
}
|
661
|
+
),
|
662
|
+
!disablePopUp && isOpen && /* @__PURE__ */ jsx20(
|
663
|
+
"div",
|
664
|
+
{
|
665
|
+
ref: menuRef,
|
666
|
+
role: "menu",
|
667
|
+
"aria-orientation": "vertical",
|
668
|
+
"aria-labelledby": "Open menu",
|
669
|
+
className: `sb-absolute sb-shadow-lg sb-right-0 sb-bottom-10 ${classContainer}`,
|
670
|
+
children: menuContent
|
671
|
+
}
|
672
|
+
)
|
673
|
+
]
|
674
|
+
}
|
675
|
+
);
|
666
676
|
};
|
667
677
|
var MenuButton_default = MenuButton;
|
668
678
|
|
@@ -791,7 +801,9 @@ var CreateNoteMenu = ({
|
|
791
801
|
handleSaveNoteAction,
|
792
802
|
width,
|
793
803
|
setNoteOpen,
|
794
|
-
noteButtonClick
|
804
|
+
noteButtonClick,
|
805
|
+
onMouseEnter,
|
806
|
+
onMouseLeave
|
795
807
|
}) => {
|
796
808
|
const { player } = useSoftBuildersVideoPlayerContext();
|
797
809
|
const [note, setNote] = useState5("");
|
@@ -810,6 +822,8 @@ var CreateNoteMenu = ({
|
|
810
822
|
return /* @__PURE__ */ jsx22(
|
811
823
|
MenuButton_default,
|
812
824
|
{
|
825
|
+
onMouseEnter,
|
826
|
+
onMouseLeave,
|
813
827
|
disablePopUp: true,
|
814
828
|
noteButtonClick,
|
815
829
|
setNoteOpen,
|
@@ -861,12 +875,23 @@ import { useEffect as useEffect5, useState as useState6 } from "react";
|
|
861
875
|
|
862
876
|
// src/components/Tooltip/index.tsx
|
863
877
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
864
|
-
var Tooltip = ({
|
878
|
+
var Tooltip = ({
|
879
|
+
open,
|
880
|
+
children,
|
881
|
+
position = "top"
|
882
|
+
}) => {
|
865
883
|
if (!open) return null;
|
884
|
+
console.log("tool tip");
|
885
|
+
const positionClasses = {
|
886
|
+
top: "sb-bottom-full sb-left-1/2 sb-transform -sb-translate-x-1/2 sb-mb-2",
|
887
|
+
bottom: "sb-top-full sb-left-1/2 sb-transform -sb-translate-x-1/2 sb-mt-2",
|
888
|
+
left: "sb-right-full sb-top-1/2 sb-transform -sb-translate-y-1/2 sb-mr-2",
|
889
|
+
right: "sb-left-full sb-top-1/2 sb-transform -sb-translate-y-1/2 sb-ml-2"
|
890
|
+
};
|
866
891
|
return /* @__PURE__ */ jsx23(
|
867
892
|
"div",
|
868
893
|
{
|
869
|
-
className:
|
894
|
+
className: `sb-relative sb-bg-black sb-text-white sb-text-sm sb-px-2 sb-py-1 sb-rounded sb-shadow-md sb-z-50 ${positionClasses[position]}`,
|
870
895
|
children
|
871
896
|
}
|
872
897
|
);
|
@@ -1156,7 +1181,12 @@ var SubtitleOption = ({
|
|
1156
1181
|
}
|
1157
1182
|
);
|
1158
1183
|
};
|
1159
|
-
var SubtitleMenu = ({
|
1184
|
+
var SubtitleMenu = ({
|
1185
|
+
width,
|
1186
|
+
onClick,
|
1187
|
+
onMouseEnter,
|
1188
|
+
onMouseLeave
|
1189
|
+
}) => {
|
1160
1190
|
const { player } = useSoftBuildersVideoPlayerContext();
|
1161
1191
|
const [closeMenuFunction, setCloseMenuFunction] = useState11(void 0);
|
1162
1192
|
const [subtitles, setSubtitles] = useState11([]);
|
@@ -1181,6 +1211,8 @@ var SubtitleMenu = ({ width, onClick }) => {
|
|
1181
1211
|
return /* @__PURE__ */ jsx32(
|
1182
1212
|
MenuButton_default,
|
1183
1213
|
{
|
1214
|
+
onMouseEnter,
|
1215
|
+
onMouseLeave,
|
1184
1216
|
onClick: (e, isOpen) => {
|
1185
1217
|
onClick && onClick(e, isOpen);
|
1186
1218
|
},
|
@@ -1250,7 +1282,6 @@ var ControlBar = ({
|
|
1250
1282
|
disableNote,
|
1251
1283
|
noteButtonClick
|
1252
1284
|
}) => {
|
1253
|
-
console.log("432", notes);
|
1254
1285
|
const { setPlayer, setDuration } = useSoftBuildersVideoPlayerContext();
|
1255
1286
|
const [width, setWidth] = useState12(0);
|
1256
1287
|
const [isSeeking, setIsSeeking] = useState12(true);
|
@@ -1366,6 +1397,8 @@ var ControlBar = ({
|
|
1366
1397
|
disableNote && /* @__PURE__ */ jsx33(
|
1367
1398
|
CreateNoteMenu_default,
|
1368
1399
|
{
|
1400
|
+
onMouseEnter: () => setIsToolTip((prev) => __spreadProps(__spreadValues({}, prev), { note: true })),
|
1401
|
+
onMouseLeave: () => setIsToolTip((prev) => __spreadProps(__spreadValues({}, prev), { note: false })),
|
1369
1402
|
handleSaveNoteAction,
|
1370
1403
|
width,
|
1371
1404
|
setNoteOpen,
|
@@ -1377,16 +1410,21 @@ var ControlBar = ({
|
|
1377
1410
|
}
|
1378
1411
|
}
|
1379
1412
|
),
|
1380
|
-
/* @__PURE__ */ jsx33(
|
1413
|
+
/* @__PURE__ */ jsx33(
|
1381
1414
|
SubtitleMenu_default,
|
1382
1415
|
{
|
1416
|
+
onMouseEnter: () => {
|
1417
|
+
console.log("get well");
|
1418
|
+
setIsToolTip((prev) => __spreadProps(__spreadValues({}, prev), { sub: true }));
|
1419
|
+
},
|
1420
|
+
onMouseLeave: () => setIsToolTip((prev) => __spreadProps(__spreadValues({}, prev), { sub: false })),
|
1383
1421
|
width,
|
1384
1422
|
onClick: (e, isOpen) => {
|
1385
1423
|
setVolumeToggler(!volumeSliderToggler);
|
1386
1424
|
setIsSubtitleMenuOpen && setIsSubtitleMenuOpen(isOpen);
|
1387
1425
|
}
|
1388
1426
|
}
|
1389
|
-
)
|
1427
|
+
),
|
1390
1428
|
/* @__PURE__ */ jsx33(
|
1391
1429
|
"button",
|
1392
1430
|
{
|
@@ -1712,6 +1750,7 @@ var VideoPlayerComponent = forwardRef(
|
|
1712
1750
|
if (playerRef.current) {
|
1713
1751
|
if (playerRef.current.paused()) {
|
1714
1752
|
try {
|
1753
|
+
startTime && playerRef.current.currentTime(startTime);
|
1715
1754
|
await playerRef.current.play();
|
1716
1755
|
setIsPaused(false);
|
1717
1756
|
} catch (error) {
|
package/dist/styles/tailwind.css
CHANGED
@@ -547,21 +547,33 @@ video {
|
|
547
547
|
.sb-left-1\/2 {
|
548
548
|
left: 50%;
|
549
549
|
}
|
550
|
+
.sb-left-full {
|
551
|
+
left: 100%;
|
552
|
+
}
|
550
553
|
.sb-right-0 {
|
551
554
|
right: 0px;
|
552
555
|
}
|
556
|
+
.sb-right-full {
|
557
|
+
right: 100%;
|
558
|
+
}
|
553
559
|
.sb-top-0 {
|
554
560
|
top: 0px;
|
555
561
|
}
|
556
562
|
.sb-top-1 {
|
557
563
|
top: 0.25rem;
|
558
564
|
}
|
565
|
+
.sb-top-1\/2 {
|
566
|
+
top: 50%;
|
567
|
+
}
|
559
568
|
.sb-top-2 {
|
560
569
|
top: 0.5rem;
|
561
570
|
}
|
562
571
|
.sb-top-\[27\%\] {
|
563
572
|
top: 27%;
|
564
573
|
}
|
574
|
+
.sb-top-full {
|
575
|
+
top: 100%;
|
576
|
+
}
|
565
577
|
.sb-z-10 {
|
566
578
|
z-index: 10;
|
567
579
|
}
|
@@ -571,6 +583,9 @@ video {
|
|
571
583
|
.sb-z-30 {
|
572
584
|
z-index: 30;
|
573
585
|
}
|
586
|
+
.sb-z-50 {
|
587
|
+
z-index: 50;
|
588
|
+
}
|
574
589
|
.sb-col-span-3 {
|
575
590
|
grid-column: span 3 / span 3;
|
576
591
|
}
|
@@ -586,9 +601,18 @@ video {
|
|
586
601
|
.sb-ml-0 {
|
587
602
|
margin-left: 0px;
|
588
603
|
}
|
604
|
+
.sb-ml-2 {
|
605
|
+
margin-left: 0.5rem;
|
606
|
+
}
|
589
607
|
.sb-mr-0 {
|
590
608
|
margin-right: 0px;
|
591
609
|
}
|
610
|
+
.sb-mr-2 {
|
611
|
+
margin-right: 0.5rem;
|
612
|
+
}
|
613
|
+
.sb-mt-2 {
|
614
|
+
margin-top: 0.5rem;
|
615
|
+
}
|
592
616
|
.sb-flex {
|
593
617
|
display: flex;
|
594
618
|
}
|
@@ -662,6 +686,10 @@ video {
|
|
662
686
|
--tw-border-spacing-x: 0.5rem;
|
663
687
|
border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
|
664
688
|
}
|
689
|
+
.-sb-translate-x-1\/2 {
|
690
|
+
--tw-translate-x: -50%;
|
691
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
692
|
+
}
|
665
693
|
.-sb-translate-y-0 {
|
666
694
|
--tw-translate-y: -0px;
|
667
695
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
@@ -670,8 +698,8 @@ video {
|
|
670
698
|
--tw-translate-y: -0.25rem;
|
671
699
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
672
700
|
}
|
673
|
-
|
674
|
-
--tw-translate-
|
701
|
+
.-sb-translate-y-1\/2 {
|
702
|
+
--tw-translate-y: -50%;
|
675
703
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
676
704
|
}
|
677
705
|
.sb-translate-y-0 {
|
@@ -756,8 +784,8 @@ video {
|
|
756
784
|
.sb-overflow-hidden {
|
757
785
|
overflow: hidden;
|
758
786
|
}
|
759
|
-
.sb-
|
760
|
-
|
787
|
+
.sb-rounded {
|
788
|
+
border-radius: 0.25rem;
|
761
789
|
}
|
762
790
|
.sb-rounded-full {
|
763
791
|
border-radius: 9999px;
|
@@ -787,6 +815,10 @@ video {
|
|
787
815
|
--tw-bg-opacity: 1;
|
788
816
|
background-color: rgb(255 0 0 / var(--tw-bg-opacity));
|
789
817
|
}
|
818
|
+
.sb-bg-black {
|
819
|
+
--tw-bg-opacity: 1;
|
820
|
+
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
821
|
+
}
|
790
822
|
.sb-bg-orange-500 {
|
791
823
|
--tw-bg-opacity: 1;
|
792
824
|
background-color: rgb(249 115 22 / var(--tw-bg-opacity));
|
@@ -818,6 +850,10 @@ video {
|
|
818
850
|
padding-left: 1rem !important;
|
819
851
|
padding-right: 1rem !important;
|
820
852
|
}
|
853
|
+
.sb-px-2 {
|
854
|
+
padding-left: 0.5rem;
|
855
|
+
padding-right: 0.5rem;
|
856
|
+
}
|
821
857
|
.sb-px-4 {
|
822
858
|
padding-left: 1rem;
|
823
859
|
padding-right: 1rem;
|
@@ -850,6 +886,10 @@ video {
|
|
850
886
|
.sb-text-center {
|
851
887
|
text-align: center;
|
852
888
|
}
|
889
|
+
.sb-text-sm {
|
890
|
+
font-size: 0.875rem;
|
891
|
+
line-height: 1.25rem;
|
892
|
+
}
|
853
893
|
.sb-font-bold {
|
854
894
|
font-weight: 700;
|
855
895
|
}
|
@@ -868,6 +908,11 @@ video {
|
|
868
908
|
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
869
909
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
870
910
|
}
|
911
|
+
.sb-shadow-md {
|
912
|
+
--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
913
|
+
--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
|
914
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
915
|
+
}
|
871
916
|
.sb-backdrop-blur-lg {
|
872
917
|
--tw-backdrop-blur: blur(16px);
|
873
918
|
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|