@videojs/react 10.0.0-beta.17 → 10.0.0-beta.21
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/default/index.js +1 -2
- package/dist/default/media/dash-video/index.js +2 -2
- package/dist/default/media/dash-video/index.js.map +1 -1
- package/dist/default/media/hls-video/index.js +2 -2
- package/dist/default/media/hls-video/index.js.map +1 -1
- package/dist/default/media/mux-audio/index.js +3 -3
- package/dist/default/media/mux-audio/index.js.map +1 -1
- package/dist/default/media/mux-video/index.js +3 -3
- package/dist/default/media/mux-video/index.js.map +1 -1
- package/dist/default/media/native-hls-video/index.js +2 -2
- package/dist/default/media/native-hls-video/index.js.map +1 -1
- package/dist/default/media/simple-hls-video/index.js +1 -2
- package/dist/default/media/simple-hls-video/index.js.map +1 -1
- package/dist/default/player/context.js.map +1 -1
- package/dist/default/ui/alert-dialog/alert-dialog-root.js +1 -1
- package/dist/default/ui/buffering-indicator/buffering-indicator.js +1 -1
- package/dist/default/ui/captions-button/captions-button.js +1 -1
- package/dist/default/ui/controls/controls-root.js +1 -1
- package/dist/default/ui/error-dialog/error-dialog-root.js +1 -1
- package/dist/default/ui/fullscreen-button/fullscreen-button.js +1 -1
- package/dist/default/ui/mute-button/mute-button.js +1 -1
- package/dist/default/ui/pip-button/pip-button.js +1 -1
- package/dist/default/ui/play-button/play-button.js +1 -1
- package/dist/default/ui/playback-rate-button/playback-rate-button.js +1 -1
- package/dist/default/ui/popover/popover-root.js +1 -1
- package/dist/default/ui/poster/poster.js +1 -1
- package/dist/default/ui/seek-button/seek-button.js +1 -1
- package/dist/default/ui/slider/slider-root.js +1 -1
- package/dist/default/ui/thumbnail/thumbnail.js +1 -1
- package/dist/default/ui/time/time-value.js +1 -1
- package/dist/default/ui/time-slider/time-slider-root.js +1 -1
- package/dist/default/ui/tooltip/tooltip-popup.js +1 -1
- package/dist/default/ui/tooltip/tooltip-provider.js +1 -1
- package/dist/default/ui/tooltip/tooltip-root.js +1 -1
- package/dist/default/ui/volume-slider/volume-slider-root.js +1 -1
- package/dist/default/utils/media-props.js.map +1 -1
- package/dist/default/utils/use-media-instance.js.map +1 -1
- package/dist/dev/index.d.ts +1 -2
- package/dist/dev/index.js +1 -2
- package/dist/dev/media/dash-video/index.d.ts +4 -4
- package/dist/dev/media/dash-video/index.d.ts.map +1 -1
- package/dist/dev/media/dash-video/index.js +2 -2
- package/dist/dev/media/dash-video/index.js.map +1 -1
- package/dist/dev/media/hls-video/index.d.ts +4 -4
- package/dist/dev/media/hls-video/index.d.ts.map +1 -1
- package/dist/dev/media/hls-video/index.js +2 -2
- package/dist/dev/media/hls-video/index.js.map +1 -1
- package/dist/dev/media/mux-audio/index.d.ts +4 -4
- package/dist/dev/media/mux-audio/index.d.ts.map +1 -1
- package/dist/dev/media/mux-audio/index.js +3 -3
- package/dist/dev/media/mux-audio/index.js.map +1 -1
- package/dist/dev/media/mux-video/index.d.ts +4 -4
- package/dist/dev/media/mux-video/index.d.ts.map +1 -1
- package/dist/dev/media/mux-video/index.js +3 -3
- package/dist/dev/media/mux-video/index.js.map +1 -1
- package/dist/dev/media/native-hls-video/index.d.ts +4 -4
- package/dist/dev/media/native-hls-video/index.d.ts.map +1 -1
- package/dist/dev/media/native-hls-video/index.js +2 -2
- package/dist/dev/media/native-hls-video/index.js.map +1 -1
- package/dist/dev/media/simple-hls-video/index.d.ts.map +1 -1
- package/dist/dev/media/simple-hls-video/index.js +1 -2
- package/dist/dev/media/simple-hls-video/index.js.map +1 -1
- package/dist/dev/player/context.d.ts +6 -5
- package/dist/dev/player/context.d.ts.map +1 -1
- package/dist/dev/player/context.js.map +1 -1
- package/dist/dev/ui/alert-dialog/alert-dialog-close.d.ts +1 -1
- package/dist/dev/ui/alert-dialog/alert-dialog-description.d.ts +1 -1
- package/dist/dev/ui/alert-dialog/alert-dialog-popup.d.ts +1 -1
- package/dist/dev/ui/alert-dialog/alert-dialog-root.d.ts +1 -1
- package/dist/dev/ui/alert-dialog/alert-dialog-root.js +1 -1
- package/dist/dev/ui/alert-dialog/alert-dialog-title.d.ts +1 -1
- package/dist/dev/ui/alert-dialog/context.d.ts +3 -2
- package/dist/dev/ui/alert-dialog/context.d.ts.map +1 -1
- package/dist/dev/ui/buffering-indicator/buffering-indicator.d.ts +1 -1
- package/dist/dev/ui/buffering-indicator/buffering-indicator.js +1 -1
- package/dist/dev/ui/captions-button/captions-button.d.ts +1 -1
- package/dist/dev/ui/captions-button/captions-button.js +1 -1
- package/dist/dev/ui/controls/controls-group.d.ts +1 -1
- package/dist/dev/ui/controls/controls-root.d.ts +1 -1
- package/dist/dev/ui/controls/controls-root.js +1 -1
- package/dist/dev/ui/error-dialog/context.d.ts +1 -0
- package/dist/dev/ui/error-dialog/context.d.ts.map +1 -1
- package/dist/dev/ui/error-dialog/error-dialog-description.d.ts +1 -1
- package/dist/dev/ui/error-dialog/error-dialog-root.js +1 -1
- package/dist/dev/ui/fullscreen-button/fullscreen-button.d.ts +1 -1
- package/dist/dev/ui/fullscreen-button/fullscreen-button.js +1 -1
- package/dist/dev/ui/hooks/use-slider.d.ts +1 -1
- package/dist/dev/ui/mute-button/mute-button.d.ts +1 -1
- package/dist/dev/ui/mute-button/mute-button.js +1 -1
- package/dist/dev/ui/pip-button/pip-button.d.ts +1 -1
- package/dist/dev/ui/pip-button/pip-button.js +1 -1
- package/dist/dev/ui/play-button/play-button.d.ts +1 -1
- package/dist/dev/ui/play-button/play-button.js +1 -1
- package/dist/dev/ui/playback-rate-button/playback-rate-button.d.ts +1 -1
- package/dist/dev/ui/playback-rate-button/playback-rate-button.js +1 -1
- package/dist/dev/ui/popover/context.d.ts +3 -2
- package/dist/dev/ui/popover/context.d.ts.map +1 -1
- package/dist/dev/ui/popover/popover-arrow.d.ts +1 -1
- package/dist/dev/ui/popover/popover-popup.d.ts +1 -1
- package/dist/dev/ui/popover/popover-root.d.ts +1 -1
- package/dist/dev/ui/popover/popover-root.js +1 -1
- package/dist/dev/ui/popover/popover-trigger.d.ts +1 -1
- package/dist/dev/ui/poster/poster.d.ts +1 -1
- package/dist/dev/ui/poster/poster.js +1 -1
- package/dist/dev/ui/seek-button/seek-button.d.ts +1 -1
- package/dist/dev/ui/seek-button/seek-button.js +1 -1
- package/dist/dev/ui/slider/slider-buffer.d.ts +1 -1
- package/dist/dev/ui/slider/slider-fill.d.ts +1 -1
- package/dist/dev/ui/slider/slider-preview.d.ts +1 -1
- package/dist/dev/ui/slider/slider-root.d.ts +1 -1
- package/dist/dev/ui/slider/slider-root.js +1 -1
- package/dist/dev/ui/slider/slider-thumb.d.ts +1 -1
- package/dist/dev/ui/slider/slider-thumbnail.d.ts +1 -1
- package/dist/dev/ui/slider/slider-track.d.ts +1 -1
- package/dist/dev/ui/slider/slider-value.d.ts +1 -1
- package/dist/dev/ui/thumbnail/thumbnail.d.ts +1 -1
- package/dist/dev/ui/thumbnail/thumbnail.js +1 -1
- package/dist/dev/ui/time/time-value.d.ts +1 -1
- package/dist/dev/ui/time/time-value.js +1 -1
- package/dist/dev/ui/time-slider/time-slider-root.d.ts +1 -1
- package/dist/dev/ui/time-slider/time-slider-root.js +1 -1
- package/dist/dev/ui/tooltip/context.d.ts +3 -2
- package/dist/dev/ui/tooltip/context.d.ts.map +1 -1
- package/dist/dev/ui/tooltip/tooltip-arrow.d.ts +1 -1
- package/dist/dev/ui/tooltip/tooltip-popup.d.ts +1 -1
- package/dist/dev/ui/tooltip/tooltip-popup.js +1 -1
- package/dist/dev/ui/tooltip/tooltip-provider.d.ts +1 -1
- package/dist/dev/ui/tooltip/tooltip-provider.js +1 -1
- package/dist/dev/ui/tooltip/tooltip-root.d.ts +1 -1
- package/dist/dev/ui/tooltip/tooltip-root.js +1 -1
- package/dist/dev/ui/tooltip/tooltip-trigger.d.ts +1 -1
- package/dist/dev/ui/volume-slider/volume-slider-root.d.ts +1 -1
- package/dist/dev/ui/volume-slider/volume-slider-root.js +1 -1
- package/dist/dev/utils/media-props.d.ts +2 -2
- package/dist/dev/utils/media-props.d.ts.map +1 -1
- package/dist/dev/utils/media-props.js.map +1 -1
- package/dist/dev/utils/use-media-instance.d.ts +1 -1
- package/dist/dev/utils/use-media-instance.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { InferDelegateProps } from "@videojs/core";
|
|
2
1
|
import * as react from "react";
|
|
3
2
|
import { PropsWithChildren, VideoHTMLAttributes } from "react";
|
|
4
|
-
import {
|
|
3
|
+
import { HlsMedia } from "@videojs/core/dom/media/hls";
|
|
4
|
+
import { InferClassProps } from "@videojs/utils/types";
|
|
5
5
|
|
|
6
6
|
//#region src/media/hls-video/index.d.ts
|
|
7
|
-
type HlsVideoProps = PropsWithChildren<VideoHTMLAttributes<HTMLVideoElement>> &
|
|
7
|
+
type HlsVideoProps = PropsWithChildren<VideoHTMLAttributes<HTMLVideoElement>> & InferClassProps<typeof HlsMedia>;
|
|
8
8
|
declare const HlsVideo: react.ForwardRefExoticComponent<VideoHTMLAttributes<HTMLVideoElement> & {
|
|
9
9
|
children?: react.ReactNode | undefined;
|
|
10
|
-
} & Partial<Pick<
|
|
10
|
+
} & Partial<Pick<HlsMedia, "src" | "currentTime" | "volume" | "muted" | "playbackRate" | "preload" | "type" | "preferPlayback" | "config" | "debug">> & react.RefAttributes<HTMLVideoElement>>;
|
|
11
11
|
declare namespace HlsVideo {
|
|
12
12
|
type Props = HlsVideoProps;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/media/hls-video/index.tsx"],"mappings":";;;;;;KAWY,aAAA,GAAgB,iBAAA,CAAkB,mBAAA,CAAoB,gBAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/media/hls-video/index.tsx"],"mappings":";;;;;;KAWY,aAAA,GAAgB,iBAAA,CAAkB,mBAAA,CAAoB,gBAAA,KAAqB,eAAA,QAAuB,QAAA;AAAA,cAEjG,QAAA,QAAQ,yBAAA,CAAA,mBAAA,CAAA,gBAAA;aAAA,KAAA,CAAA,SAAA;AAAA;kBAYJ,QAAA;EAAA,KACH,KAAA,GAAQ,aAAA;AAAA"}
|
|
@@ -5,13 +5,13 @@ import { mediaProps } from "../../utils/media-props.js";
|
|
|
5
5
|
import { useMediaInstance } from "../../utils/use-media-instance.js";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
import { HlsMedia
|
|
8
|
+
import { HlsMedia } from "@videojs/core/dom/media/hls";
|
|
9
9
|
//#region src/media/hls-video/index.tsx
|
|
10
10
|
const HlsVideo = forwardRef(function HlsVideo({ children, ...props }, ref) {
|
|
11
11
|
const mediaApi = useMediaInstance(HlsMedia);
|
|
12
12
|
return /* @__PURE__ */ jsx("video", {
|
|
13
13
|
ref: useComposedRefs(attachMediaElement(mediaApi), ref),
|
|
14
|
-
...mediaProps(mediaApi,
|
|
14
|
+
...mediaProps(mediaApi, HlsMedia, props),
|
|
15
15
|
children
|
|
16
16
|
});
|
|
17
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/media/hls-video/index.tsx"],"sourcesContent":["'use client';\n\nimport
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/media/hls-video/index.tsx"],"sourcesContent":["'use client';\n\nimport { HlsMedia } from '@videojs/core/dom/media/hls';\nimport type { InferClassProps } from '@videojs/utils/types';\nimport type { PropsWithChildren, VideoHTMLAttributes } from 'react';\nimport { forwardRef } from 'react';\nimport { attachMediaElement } from '../../utils/attach-media-element';\nimport { mediaProps } from '../../utils/media-props';\nimport { useComposedRefs } from '../../utils/use-composed-refs';\nimport { useMediaInstance } from '../../utils/use-media-instance';\n\nexport type HlsVideoProps = PropsWithChildren<VideoHTMLAttributes<HTMLVideoElement>> & InferClassProps<typeof HlsMedia>;\n\nexport const HlsVideo = forwardRef<HTMLVideoElement, HlsVideoProps>(function HlsVideo({ children, ...props }, ref) {\n const mediaApi = useMediaInstance(HlsMedia);\n\n const composedRef = useComposedRefs(attachMediaElement(mediaApi), ref);\n\n return (\n <video ref={composedRef} {...mediaProps(mediaApi, HlsMedia, props)}>\n {children}\n </video>\n );\n});\n\nexport namespace HlsVideo {\n export type Props = HlsVideoProps;\n}\n"],"mappings":";;;;;;;;;AAaA,MAAa,WAAW,WAA4C,SAAS,SAAS,EAAE,UAAU,GAAG,SAAS,KAAK;CACjH,MAAM,WAAW,iBAAiB,SAAS;AAI3C,QACE,oBAAC,SAAD;EAAO,KAHW,gBAAgB,mBAAmB,SAAS,EAAE,IAAI;EAG3C,GAAI,WAAW,UAAU,UAAU,MAAM;EAC/D;EACK,CAAA;EAEV"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { InferDelegateProps } from "@videojs/core";
|
|
2
1
|
import * as react from "react";
|
|
3
2
|
import { AudioHTMLAttributes, PropsWithChildren } from "react";
|
|
4
|
-
import {
|
|
3
|
+
import { MuxAudioMedia } from "@videojs/core/dom/media/mux";
|
|
4
|
+
import { InferClassProps } from "@videojs/utils/types";
|
|
5
5
|
|
|
6
6
|
//#region src/media/mux-audio/index.d.ts
|
|
7
|
-
type MuxAudioProps = PropsWithChildren<AudioHTMLAttributes<HTMLAudioElement>> &
|
|
7
|
+
type MuxAudioProps = PropsWithChildren<AudioHTMLAttributes<HTMLAudioElement>> & InferClassProps<typeof MuxAudioMedia>;
|
|
8
8
|
declare const MuxAudio: react.ForwardRefExoticComponent<AudioHTMLAttributes<HTMLAudioElement> & {
|
|
9
9
|
children?: react.ReactNode | undefined;
|
|
10
|
-
} & Partial<Pick<
|
|
10
|
+
} & Partial<Pick<MuxAudioMedia, "src" | "currentTime" | "volume" | "muted" | "playbackRate" | "preload" | "type" | "preferPlayback" | "config" | "debug" | "metadata" | "MuxDataSdk" | "beaconCollectionDomain" | "disableCookies" | "envKey" | "playerSoftwareName" | "playerSoftwareVersion" | "playerInitTime">> & react.RefAttributes<HTMLAudioElement>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { MuxAudio, MuxAudio as default, MuxAudioProps };
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/media/mux-audio/index.tsx"],"mappings":";;;;;;KASY,aAAA,GAAgB,iBAAA,CAAkB,mBAAA,CAAoB,gBAAA,KAChE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/media/mux-audio/index.tsx"],"mappings":";;;;;;KASY,aAAA,GAAgB,iBAAA,CAAkB,mBAAA,CAAoB,gBAAA,KAChE,eAAA,QAAuB,aAAA;AAAA,cAEZ,QAAA,QAAQ,yBAAA,CAAA,mBAAA,CAAA,gBAAA;aAAA,KAAA,CAAA,SAAA;AAAA"}
|
|
@@ -4,13 +4,13 @@ import { mediaProps } from "../../utils/media-props.js";
|
|
|
4
4
|
import { useMediaInstance } from "../../utils/use-media-instance.js";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { MuxAudioMedia } from "@videojs/core/dom/media/mux";
|
|
8
8
|
//#region src/media/mux-audio/index.tsx
|
|
9
9
|
const MuxAudio = forwardRef(({ children, ...props }, ref) => {
|
|
10
|
-
const mediaApi = useMediaInstance(
|
|
10
|
+
const mediaApi = useMediaInstance(MuxAudioMedia);
|
|
11
11
|
return /* @__PURE__ */ jsx("audio", {
|
|
12
12
|
ref: useComposedRefs(attachMediaElement(mediaApi), ref),
|
|
13
|
-
...mediaProps(mediaApi,
|
|
13
|
+
...mediaProps(mediaApi, MuxAudioMedia, props),
|
|
14
14
|
children
|
|
15
15
|
});
|
|
16
16
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/media/mux-audio/index.tsx"],"sourcesContent":["import { MuxAudioMedia } from '@videojs/core/dom/media/mux';\nimport type { InferClassProps } from '@videojs/utils/types';\nimport type { AudioHTMLAttributes, PropsWithChildren } from 'react';\nimport { forwardRef } from 'react';\nimport { attachMediaElement } from '../../utils/attach-media-element';\nimport { mediaProps } from '../../utils/media-props';\nimport { useComposedRefs } from '../../utils/use-composed-refs';\nimport { useMediaInstance } from '../../utils/use-media-instance';\n\nexport type MuxAudioProps = PropsWithChildren<AudioHTMLAttributes<HTMLAudioElement>> &\n InferClassProps<typeof MuxAudioMedia>;\n\nexport const MuxAudio = forwardRef<HTMLAudioElement, MuxAudioProps>(({ children, ...props }, ref) => {\n const mediaApi = useMediaInstance(MuxAudioMedia);\n\n const composedRef = useComposedRefs(attachMediaElement(mediaApi), ref);\n\n return (\n <audio ref={composedRef} {...mediaProps(mediaApi, MuxAudioMedia, props)}>\n {children}\n </audio>\n );\n});\n\nexport default MuxAudio;\n"],"mappings":";;;;;;;;AAYA,MAAa,WAAW,YAA6C,EAAE,UAAU,GAAG,SAAS,QAAQ;CACnG,MAAM,WAAW,iBAAiB,cAAc;AAIhD,QACE,oBAAC,SAAD;EAAO,KAHW,gBAAgB,mBAAmB,SAAS,EAAE,IAAI;EAG3C,GAAI,WAAW,UAAU,eAAe,MAAM;EACpE;EACK,CAAA;EAEV"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { InferDelegateProps } from "@videojs/core";
|
|
2
1
|
import * as react from "react";
|
|
3
2
|
import { PropsWithChildren, VideoHTMLAttributes } from "react";
|
|
4
|
-
import {
|
|
3
|
+
import { MuxVideoMedia } from "@videojs/core/dom/media/mux";
|
|
4
|
+
import { InferClassProps } from "@videojs/utils/types";
|
|
5
5
|
|
|
6
6
|
//#region src/media/mux-video/index.d.ts
|
|
7
|
-
type MuxVideoProps = PropsWithChildren<VideoHTMLAttributes<HTMLVideoElement>> &
|
|
7
|
+
type MuxVideoProps = PropsWithChildren<VideoHTMLAttributes<HTMLVideoElement>> & InferClassProps<typeof MuxVideoMedia>;
|
|
8
8
|
declare const MuxVideo: react.ForwardRefExoticComponent<VideoHTMLAttributes<HTMLVideoElement> & {
|
|
9
9
|
children?: react.ReactNode | undefined;
|
|
10
|
-
} & Partial<Pick<
|
|
10
|
+
} & Partial<Pick<MuxVideoMedia, "src" | "currentTime" | "volume" | "muted" | "playbackRate" | "preload" | "type" | "preferPlayback" | "config" | "debug" | "metadata" | "MuxDataSdk" | "beaconCollectionDomain" | "disableCookies" | "envKey" | "playerSoftwareName" | "playerSoftwareVersion" | "playerInitTime">> & react.RefAttributes<HTMLVideoElement>>;
|
|
11
11
|
declare namespace MuxVideo {
|
|
12
12
|
type Props = MuxVideoProps;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/media/mux-video/index.tsx"],"mappings":";;;;;;KAWY,aAAA,GAAgB,iBAAA,CAAkB,mBAAA,CAAoB,gBAAA,KAChE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/media/mux-video/index.tsx"],"mappings":";;;;;;KAWY,aAAA,GAAgB,iBAAA,CAAkB,mBAAA,CAAoB,gBAAA,KAChE,eAAA,QAAuB,aAAA;AAAA,cAEZ,QAAA,QAAQ,yBAAA,CAAA,mBAAA,CAAA,gBAAA;aAAA,KAAA,CAAA,SAAA;AAAA;kBAYJ,QAAA;EAAA,KACH,KAAA,GAAQ,aAAA;AAAA"}
|
|
@@ -5,13 +5,13 @@ import { mediaProps } from "../../utils/media-props.js";
|
|
|
5
5
|
import { useMediaInstance } from "../../utils/use-media-instance.js";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
8
|
+
import { MuxVideoMedia } from "@videojs/core/dom/media/mux";
|
|
9
9
|
//#region src/media/mux-video/index.tsx
|
|
10
10
|
const MuxVideo = forwardRef(function MuxVideo({ children, ...props }, ref) {
|
|
11
|
-
const mediaApi = useMediaInstance(
|
|
11
|
+
const mediaApi = useMediaInstance(MuxVideoMedia);
|
|
12
12
|
return /* @__PURE__ */ jsx("video", {
|
|
13
13
|
ref: useComposedRefs(attachMediaElement(mediaApi), ref),
|
|
14
|
-
...mediaProps(mediaApi,
|
|
14
|
+
...mediaProps(mediaApi, MuxVideoMedia, props),
|
|
15
15
|
children
|
|
16
16
|
});
|
|
17
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/media/mux-video/index.tsx"],"sourcesContent":["'use client';\n\nimport { MuxVideoMedia } from '@videojs/core/dom/media/mux';\nimport type { InferClassProps } from '@videojs/utils/types';\nimport type { PropsWithChildren, VideoHTMLAttributes } from 'react';\nimport { forwardRef } from 'react';\nimport { attachMediaElement } from '../../utils/attach-media-element';\nimport { mediaProps } from '../../utils/media-props';\nimport { useComposedRefs } from '../../utils/use-composed-refs';\nimport { useMediaInstance } from '../../utils/use-media-instance';\n\nexport type MuxVideoProps = PropsWithChildren<VideoHTMLAttributes<HTMLVideoElement>> &\n InferClassProps<typeof MuxVideoMedia>;\n\nexport const MuxVideo = forwardRef<HTMLVideoElement, MuxVideoProps>(function MuxVideo({ children, ...props }, ref) {\n const mediaApi = useMediaInstance(MuxVideoMedia);\n\n const composedRef = useComposedRefs(attachMediaElement(mediaApi), ref);\n\n return (\n <video ref={composedRef} {...mediaProps(mediaApi, MuxVideoMedia, props)}>\n {children}\n </video>\n );\n});\n\nexport namespace MuxVideo {\n export type Props = MuxVideoProps;\n}\n"],"mappings":";;;;;;;;;AAcA,MAAa,WAAW,WAA4C,SAAS,SAAS,EAAE,UAAU,GAAG,SAAS,KAAK;CACjH,MAAM,WAAW,iBAAiB,cAAc;AAIhD,QACE,oBAAC,SAAD;EAAO,KAHW,gBAAgB,mBAAmB,SAAS,EAAE,IAAI;EAG3C,GAAI,WAAW,UAAU,eAAe,MAAM;EACpE;EACK,CAAA;EAEV"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { InferDelegateProps } from "@videojs/core";
|
|
2
1
|
import * as react from "react";
|
|
3
2
|
import { PropsWithChildren, VideoHTMLAttributes } from "react";
|
|
4
|
-
import {
|
|
3
|
+
import { NativeHlsMedia } from "@videojs/core/dom/media/native-hls";
|
|
4
|
+
import { InferClassProps } from "@videojs/utils/types";
|
|
5
5
|
|
|
6
6
|
//#region src/media/native-hls-video/index.d.ts
|
|
7
|
-
type NativeHlsVideoProps = PropsWithChildren<VideoHTMLAttributes<HTMLVideoElement>> &
|
|
7
|
+
type NativeHlsVideoProps = PropsWithChildren<VideoHTMLAttributes<HTMLVideoElement>> & InferClassProps<typeof NativeHlsMedia>;
|
|
8
8
|
declare const NativeHlsVideo: react.ForwardRefExoticComponent<VideoHTMLAttributes<HTMLVideoElement> & {
|
|
9
9
|
children?: react.ReactNode | undefined;
|
|
10
|
-
} & Partial<Pick<
|
|
10
|
+
} & Partial<Pick<NativeHlsMedia, "src" | "currentTime" | "volume" | "muted" | "playbackRate" | "preload">> & react.RefAttributes<HTMLVideoElement>>;
|
|
11
11
|
declare namespace NativeHlsVideo {
|
|
12
12
|
type Props = NativeHlsVideoProps;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/media/native-hls-video/index.tsx"],"mappings":";;;;;;KAWY,mBAAA,GAAsB,iBAAA,CAAkB,mBAAA,CAAoB,gBAAA,KACtE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/media/native-hls-video/index.tsx"],"mappings":";;;;;;KAWY,mBAAA,GAAsB,iBAAA,CAAkB,mBAAA,CAAoB,gBAAA,KACtE,eAAA,QAAuB,cAAA;AAAA,cAEZ,cAAA,QAAc,yBAAA,CAAA,mBAAA,CAAA,gBAAA;aAAA,KAAA,CAAA,SAAA;AAAA;kBAeV,cAAA;EAAA,KACH,KAAA,GAAQ,mBAAA;AAAA"}
|
|
@@ -5,13 +5,13 @@ import { mediaProps } from "../../utils/media-props.js";
|
|
|
5
5
|
import { useMediaInstance } from "../../utils/use-media-instance.js";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
import { NativeHlsMedia
|
|
8
|
+
import { NativeHlsMedia } from "@videojs/core/dom/media/native-hls";
|
|
9
9
|
//#region src/media/native-hls-video/index.tsx
|
|
10
10
|
const NativeHlsVideo = forwardRef(function NativeHlsVideo({ children, ...props }, ref) {
|
|
11
11
|
const mediaApi = useMediaInstance(NativeHlsMedia);
|
|
12
12
|
return /* @__PURE__ */ jsx("video", {
|
|
13
13
|
ref: useComposedRefs(attachMediaElement(mediaApi), ref),
|
|
14
|
-
...mediaProps(mediaApi,
|
|
14
|
+
...mediaProps(mediaApi, NativeHlsMedia, props),
|
|
15
15
|
children
|
|
16
16
|
});
|
|
17
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/media/native-hls-video/index.tsx"],"sourcesContent":["'use client';\n\nimport
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/media/native-hls-video/index.tsx"],"sourcesContent":["'use client';\n\nimport { NativeHlsMedia } from '@videojs/core/dom/media/native-hls';\nimport type { InferClassProps } from '@videojs/utils/types';\nimport type { PropsWithChildren, VideoHTMLAttributes } from 'react';\nimport { forwardRef } from 'react';\nimport { attachMediaElement } from '../../utils/attach-media-element';\nimport { mediaProps } from '../../utils/media-props';\nimport { useComposedRefs } from '../../utils/use-composed-refs';\nimport { useMediaInstance } from '../../utils/use-media-instance';\n\nexport type NativeHlsVideoProps = PropsWithChildren<VideoHTMLAttributes<HTMLVideoElement>> &\n InferClassProps<typeof NativeHlsMedia>;\n\nexport const NativeHlsVideo = forwardRef<HTMLVideoElement, NativeHlsVideoProps>(function NativeHlsVideo(\n { children, ...props },\n ref\n) {\n const mediaApi = useMediaInstance(NativeHlsMedia);\n\n const composedRef = useComposedRefs(attachMediaElement(mediaApi), ref);\n\n return (\n <video ref={composedRef} {...mediaProps(mediaApi, NativeHlsMedia, props)}>\n {children}\n </video>\n );\n});\n\nexport namespace NativeHlsVideo {\n export type Props = NativeHlsVideoProps;\n}\n"],"mappings":";;;;;;;;;AAcA,MAAa,iBAAiB,WAAkD,SAAS,eACvF,EAAE,UAAU,GAAG,SACf,KACA;CACA,MAAM,WAAW,iBAAiB,eAAe;AAIjD,QACE,oBAAC,SAAD;EAAO,KAHW,gBAAgB,mBAAmB,SAAS,EAAE,IAAI;EAG3C,GAAI,WAAW,UAAU,gBAAgB,MAAM;EACrE;EACK,CAAA;EAEV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/media/simple-hls-video/index.tsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/media/simple-hls-video/index.tsx"],"mappings":";;;;KAUY,mBAAA,GAAsB,iBAAA,CAAkB,mBAAA,CAAoB,gBAAA;AAAA,cAE3D,cAAA,QAAc,yBAAA,CAAA,mBAAA,CAAA,gBAAA;aAAA,KAAA,CAAA,SAAA;AAAA;kBAeV,cAAA;EAAA,KACH,KAAA,GAAQ,mBAAA;AAAA"}
|
|
@@ -6,13 +6,12 @@ import { useMediaInstance } from "../../utils/use-media-instance.js";
|
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { SimpleHlsMedia } from "@videojs/core/dom/media/simple-hls";
|
|
9
|
-
import { SpfMedia } from "@videojs/spf/dom";
|
|
10
9
|
//#region src/media/simple-hls-video/index.tsx
|
|
11
10
|
const SimpleHlsVideo = forwardRef(function SimpleHlsVideo({ children, ...props }, ref) {
|
|
12
11
|
const mediaApi = useMediaInstance(SimpleHlsMedia);
|
|
13
12
|
return /* @__PURE__ */ jsx("video", {
|
|
14
13
|
ref: useComposedRefs(attachMediaElement(mediaApi), ref),
|
|
15
|
-
...mediaProps(mediaApi,
|
|
14
|
+
...mediaProps(mediaApi, SimpleHlsMedia, props),
|
|
16
15
|
children
|
|
17
16
|
});
|
|
18
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/media/simple-hls-video/index.tsx"],"sourcesContent":["'use client';\n\nimport { SimpleHlsMedia } from '@videojs/core/dom/media/simple-hls';\nimport
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/media/simple-hls-video/index.tsx"],"sourcesContent":["'use client';\n\nimport { SimpleHlsMedia } from '@videojs/core/dom/media/simple-hls';\nimport type { PropsWithChildren, VideoHTMLAttributes } from 'react';\nimport { forwardRef } from 'react';\nimport { attachMediaElement } from '../../utils/attach-media-element';\nimport { mediaProps } from '../../utils/media-props';\nimport { useComposedRefs } from '../../utils/use-composed-refs';\nimport { useMediaInstance } from '../../utils/use-media-instance';\n\nexport type SimpleHlsVideoProps = PropsWithChildren<VideoHTMLAttributes<HTMLVideoElement>>;\n\nexport const SimpleHlsVideo = forwardRef<HTMLVideoElement, SimpleHlsVideoProps>(function SimpleHlsVideo(\n { children, ...props },\n ref\n) {\n const mediaApi = useMediaInstance(SimpleHlsMedia);\n\n const composedRef = useComposedRefs(attachMediaElement(mediaApi), ref);\n\n return (\n <video ref={composedRef} {...mediaProps(mediaApi, SimpleHlsMedia, props)}>\n {children}\n </video>\n );\n});\n\nexport namespace SimpleHlsVideo {\n export type Props = SimpleHlsVideoProps;\n}\n"],"mappings":";;;;;;;;;AAYA,MAAa,iBAAiB,WAAkD,SAAS,eACvF,EAAE,UAAU,GAAG,SACf,KACA;CACA,MAAM,WAAW,iBAAiB,eAAe;AAIjD,QACE,oBAAC,SAAD;EAAO,KAHW,gBAAgB,mBAAmB,SAAS,EAAE,IAAI;EAG3C,GAAI,WAAW,UAAU,gBAAgB,MAAM;EACrE;EACK,CAAA;EAEV"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MediaContainer } from "@videojs/core/dom";
|
|
2
2
|
import { UnknownState, UnknownStore } from "@videojs/store";
|
|
3
3
|
import * as react from "react";
|
|
4
4
|
import { Dispatch, HTMLAttributes, ReactNode, SetStateAction } from "react";
|
|
5
|
+
import { Media as Media$1 } from "@videojs/core";
|
|
5
6
|
|
|
6
7
|
//#region src/player/context.d.ts
|
|
7
8
|
interface PlayerContextValue {
|
|
8
9
|
store: UnknownStore;
|
|
9
|
-
media: Media | null;
|
|
10
|
-
setMedia: Dispatch<SetStateAction<Media | null>>;
|
|
10
|
+
media: Media$1 | null;
|
|
11
|
+
setMedia: Dispatch<SetStateAction<Media$1 | null>>;
|
|
11
12
|
container: MediaContainer | null;
|
|
12
13
|
setContainer: Dispatch<SetStateAction<HTMLElement | null>>;
|
|
13
14
|
}
|
|
@@ -37,11 +38,11 @@ declare function useOptionalPlayer(): UnknownStore | undefined;
|
|
|
37
38
|
/** @label With Selector */
|
|
38
39
|
declare function useOptionalPlayer<R>(selector: (state: UnknownState) => R): R | undefined;
|
|
39
40
|
/** Access the media element from within a Player Provider. */
|
|
40
|
-
declare function useMedia(): Media | null;
|
|
41
|
+
declare function useMedia(): Media$1 | null;
|
|
41
42
|
/** Access the container element from within a Player Provider. */
|
|
42
43
|
declare function useContainer(): MediaContainer | null;
|
|
43
44
|
/** Access the media attach setter for connecting a media element to the player. */
|
|
44
|
-
declare function useMediaAttach(): Dispatch<SetStateAction<Media | null>> | undefined;
|
|
45
|
+
declare function useMediaAttach(): Dispatch<SetStateAction<Media$1 | null>> | undefined;
|
|
45
46
|
/** Access the container attach setter for connecting a container element to the player. */
|
|
46
47
|
declare function useContainerAttach(): Dispatch<SetStateAction<HTMLElement | null>> | undefined;
|
|
47
48
|
interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","names":[],"sources":["../../../src/player/context.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.ts","names":[],"sources":["../../../src/player/context.tsx"],"mappings":";;;;;;;UAWiB,kBAAA;EACf,KAAA,EAAO,YAAA;EACP,KAAA,EAAO,OAAA;EACP,QAAA,EAAU,QAAA,CAAS,cAAA,CAAe,OAAA;EAClC,SAAA,EAAW,cAAA;EACX,YAAA,EAAc,QAAA,CAAS,cAAA,CAAe,WAAA;AAAA;;iBAqBxB,gBAAA,CAAA,GAAoB,kBAAA;;;;;;iBAWpB,SAAA,CAAA,GAAa,YAAA;;;;;;;iBAOb,SAAA,GAAA,CAAa,QAAA,GAAW,KAAA,EAAO,YAAA,KAAiB,CAAA,GAAI,CAAA;;;;;;;;iBAapD,iBAAA,CAAA,GAAqB,YAAA;;iBAErB,iBAAA,GAAA,CAAqB,QAAA,GAAW,KAAA,EAAO,YAAA,KAAiB,CAAA,GAAI,CAAA;;iBAS5D,QAAA,CAAA,GAAY,OAAA;AA/B5B;AAAA,iBAqCgB,YAAA,CAAA,GAAgB,cAAA;;iBAMhB,cAAA,CAAA,GAAkB,QAAA,CAAS,cAAA,CAAe,OAAA;;iBAM1C,kBAAA,CAAA,GAAsB,QAAA,CAAS,cAAA,CAAe,WAAA;AAAA,UAK7C,cAAA,SAAuB,cAAA,CAAe,cAAA;EACrD,QAAA,GAAW,SAAA;AAAA;AAAA,cAGA,SAAA,EAAS,KAAA,CAAA,yBAAA,CAAA,cAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,kBA8BL,SAAA;EAAA,KACH,KAAA,GAAQ,cAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/player/context.tsx"],"sourcesContent":["'use client';\n\nimport type { Media
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/player/context.tsx"],"sourcesContent":["'use client';\n\nimport type { Media } from '@videojs/core';\nimport type { MediaContainer } from '@videojs/core/dom';\nimport type { UnknownState, UnknownStore } from '@videojs/store';\nimport { useStore } from '@videojs/store/react';\nimport type { Dispatch, HTMLAttributes, ReactNode, PointerEvent as ReactPointerEvent, SetStateAction } from 'react';\nimport { createContext, forwardRef, useContext, useEffect, useRef } from 'react';\n\nimport { useComposedRefs } from '../utils/use-composed-refs';\n\nexport interface PlayerContextValue {\n store: UnknownStore;\n media: Media | null;\n setMedia: Dispatch<SetStateAction<Media | null>>;\n container: MediaContainer | null;\n setContainer: Dispatch<SetStateAction<HTMLElement | null>>;\n}\n\nconst PlayerContext = createContext<PlayerContextValue | null>(null);\nconst EMPTY_UNSUBSCRIBE = () => {};\nconst EMPTY_STORE = {\n state: {} as UnknownState,\n subscribe: () => EMPTY_UNSUBSCRIBE,\n} as Pick<UnknownStore, 'state' | 'subscribe'>;\n\nexport function PlayerContextProvider({\n value,\n children,\n}: {\n value: PlayerContextValue;\n children: ReactNode;\n}): ReactNode {\n return <PlayerContext.Provider value={value}>{children}</PlayerContext.Provider>;\n}\n\n/** Access the full player context value. Throws if used outside a Player Provider. */\nexport function usePlayerContext(): PlayerContextValue {\n const ctx = useContext(PlayerContext);\n if (!ctx) throw new Error('usePlayerContext must be used within a Player Provider');\n return ctx;\n}\n\n/**\n * Access the player store from within a Player Provider.\n *\n * @label Without Selector\n */\nexport function usePlayer(): UnknownStore;\n/**\n * Select a value from the player store. Re-renders when the selected value changes.\n *\n * @label With Selector\n * @param selector - Derives a value from the player store state.\n */\nexport function usePlayer<R>(selector: (state: UnknownState) => R): R;\nexport function usePlayer<R>(selector?: (state: UnknownState) => R) {\n const { store } = usePlayerContext();\n return useStore(store, selector as any);\n}\n\n/**\n * Access player state when available, but return `undefined` outside Provider.\n *\n * This is useful for components that can operate without player context\n * (e.g. they accept fully explicit props as a fallback).\n */\n/** @label Without Selector */\nexport function useOptionalPlayer(): UnknownStore | undefined;\n/** @label With Selector */\nexport function useOptionalPlayer<R>(selector: (state: UnknownState) => R): R | undefined;\nexport function useOptionalPlayer<R>(selector?: (state: UnknownState) => R) {\n const ctx = useContext(PlayerContext);\n const store = (ctx?.store ?? (EMPTY_STORE as unknown as UnknownStore)) as UnknownStore;\n const value = useStore(store, (ctx ? selector : undefined) as any);\n return ctx ? value : undefined;\n}\n\n/** Access the media element from within a Player Provider. */\nexport function useMedia(): Media | null {\n const { media } = usePlayerContext();\n return media;\n}\n\n/** Access the container element from within a Player Provider. */\nexport function useContainer(): MediaContainer | null {\n const { container } = usePlayerContext();\n return container;\n}\n\n/** Access the media attach setter for connecting a media element to the player. */\nexport function useMediaAttach(): Dispatch<SetStateAction<Media | null>> | undefined {\n const ctx = useContext(PlayerContext);\n return ctx?.setMedia;\n}\n\n/** Access the container attach setter for connecting a container element to the player. */\nexport function useContainerAttach(): Dispatch<SetStateAction<HTMLElement | null>> | undefined {\n const ctx = useContext(PlayerContext);\n return ctx?.setContainer;\n}\n\nexport interface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n children?: ReactNode;\n}\n\nexport const Container = forwardRef<HTMLDivElement, ContainerProps>(function Container(\n { children, tabIndex = 0, ...props },\n ref\n) {\n const setContainer = useContainerAttach();\n const internalRef = useRef<HTMLDivElement>(null);\n const composedRef = useComposedRefs(ref, internalRef);\n\n useEffect(() => {\n setContainer?.(internalRef.current);\n return () => setContainer?.(null);\n }, [setContainer]);\n\n const handlePointerUp = (event: ReactPointerEvent<HTMLDivElement>) => {\n props.onPointerUp?.(event);\n const el = internalRef.current;\n if (!el) return;\n // If nothing inside has focus, grab it so keyboard events reach hotkey listeners.\n if (!el.contains(document.activeElement) || document.activeElement === document.body) {\n el.focus({ preventScroll: true });\n }\n };\n\n return (\n <div ref={composedRef} tabIndex={tabIndex} {...props} onPointerUp={handlePointerUp}>\n {children}\n </div>\n );\n});\n\nexport namespace Container {\n export type Props = ContainerProps;\n}\n"],"mappings":";;;;;;AAmBA,MAAM,gBAAgB,cAAyC,KAAK;AACpE,MAAM,0BAA0B;AAChC,MAAM,cAAc;CAClB,OAAO,EAAE;CACT,iBAAiB;CAClB;AAED,SAAgB,sBAAsB,EACpC,OACA,YAIY;AACZ,QAAO,oBAAC,cAAc,UAAf;EAA+B;EAAQ;EAAkC,CAAA;;;AAIlF,SAAgB,mBAAuC;CACrD,MAAM,MAAM,WAAW,cAAc;AACrC,KAAI,CAAC,IAAK,OAAM,IAAI,MAAM,yDAAyD;AACnF,QAAO;;AAgBT,SAAgB,UAAa,UAAuC;CAClE,MAAM,EAAE,UAAU,kBAAkB;AACpC,QAAO,SAAS,OAAO,SAAgB;;AAazC,SAAgB,kBAAqB,UAAuC;CAC1E,MAAM,MAAM,WAAW,cAAc;CAErC,MAAM,QAAQ,SADC,KAAK,SAAU,aACC,MAAM,WAAW,KAAA,EAAkB;AAClE,QAAO,MAAM,QAAQ,KAAA;;;AAIvB,SAAgB,WAAyB;CACvC,MAAM,EAAE,UAAU,kBAAkB;AACpC,QAAO;;;AAIT,SAAgB,eAAsC;CACpD,MAAM,EAAE,cAAc,kBAAkB;AACxC,QAAO;;;AAIT,SAAgB,iBAAqE;AAEnF,QADY,WAAW,cAAc,EACzB;;;AAId,SAAgB,qBAA+E;AAE7F,QADY,WAAW,cAAc,EACzB;;AAOd,MAAa,YAAY,WAA2C,SAAS,UAC3E,EAAE,UAAU,WAAW,GAAG,GAAG,SAC7B,KACA;CACA,MAAM,eAAe,oBAAoB;CACzC,MAAM,cAAc,OAAuB,KAAK;CAChD,MAAM,cAAc,gBAAgB,KAAK,YAAY;AAErD,iBAAgB;AACd,iBAAe,YAAY,QAAQ;AACnC,eAAa,eAAe,KAAK;IAChC,CAAC,aAAa,CAAC;CAElB,MAAM,mBAAmB,UAA6C;AACpE,QAAM,cAAc,MAAM;EAC1B,MAAM,KAAK,YAAY;AACvB,MAAI,CAAC,GAAI;AAET,MAAI,CAAC,GAAG,SAAS,SAAS,cAAc,IAAI,SAAS,kBAAkB,SAAS,KAC9E,IAAG,MAAM,EAAE,eAAe,MAAM,CAAC;;AAIrC,QACE,oBAAC,OAAD;EAAK,KAAK;EAAuB;EAAU,GAAI;EAAO,aAAa;EAChE;EACG,CAAA;EAER"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { AlertDialogCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
3
|
+
import { AlertDialogCore } from "@videojs/core";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/alert-dialog/alert-dialog-close.d.ts
|
|
6
6
|
interface AlertDialogCloseProps extends UIComponentProps<'button', AlertDialogCore.State> {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { AlertDialogCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
3
|
+
import { AlertDialogCore } from "@videojs/core";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/alert-dialog/alert-dialog-description.d.ts
|
|
6
6
|
interface AlertDialogDescriptionProps extends UIComponentProps<'p', AlertDialogCore.State> {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { AlertDialogCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
3
|
+
import { AlertDialogCore } from "@videojs/core";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/alert-dialog/alert-dialog-popup.d.ts
|
|
6
6
|
interface AlertDialogPopupProps extends UIComponentProps<'div', AlertDialogCore.State> {}
|
|
@@ -3,11 +3,11 @@ import { useLatestRef } from "../../utils/use-latest-ref.js";
|
|
|
3
3
|
import { useDestroy } from "../../utils/use-destroy.js";
|
|
4
4
|
import { AlertDialogContextProvider } from "./context.js";
|
|
5
5
|
import { useSafeId } from "../../utils/use-safe-id.js";
|
|
6
|
-
import { AlertDialogCore, AlertDialogDataAttrs } from "@videojs/core";
|
|
7
6
|
import { createAlertDialog, createTransition } from "@videojs/core/dom";
|
|
8
7
|
import { useSnapshot } from "@videojs/store/react";
|
|
9
8
|
import { useEffect, useState } from "react";
|
|
10
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import { AlertDialogCore, AlertDialogDataAttrs } from "@videojs/core";
|
|
11
11
|
//#region src/ui/alert-dialog/alert-dialog-root.tsx
|
|
12
12
|
function AlertDialogRoot({ open: controlledOpen, defaultOpen = AlertDialogCore.defaultProps.defaultOpen, onOpenChange: onOpenChangeProp, onOpenChangeComplete: onOpenChangeCompleteProp, children }) {
|
|
13
13
|
const [core] = useState(() => new AlertDialogCore());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { AlertDialogCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
3
|
+
import { AlertDialogCore } from "@videojs/core";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/alert-dialog/alert-dialog-title.d.ts
|
|
6
6
|
interface AlertDialogTitleProps extends UIComponentProps<'h2', AlertDialogCore.State> {}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { AlertDialogCore, StateAttrMap } from "@videojs/core";
|
|
2
1
|
import { AlertDialogApi } from "@videojs/core/dom";
|
|
2
|
+
import { AlertDialogCore, StateAttrMap as StateAttrMap$1 } from "@videojs/core";
|
|
3
|
+
|
|
3
4
|
//#region src/ui/alert-dialog/context.d.ts
|
|
4
5
|
interface AlertDialogContextValue {
|
|
5
6
|
core: AlertDialogCore;
|
|
6
7
|
dialog: AlertDialogApi;
|
|
7
8
|
state: AlertDialogCore.State;
|
|
8
|
-
stateAttrMap: StateAttrMap<AlertDialogCore.State>;
|
|
9
|
+
stateAttrMap: StateAttrMap$1<AlertDialogCore.State>;
|
|
9
10
|
}
|
|
10
11
|
declare function useAlertDialogContext(): AlertDialogContextValue;
|
|
11
12
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","names":[],"sources":["../../../../src/ui/alert-dialog/context.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.ts","names":[],"sources":["../../../../src/ui/alert-dialog/context.tsx"],"mappings":";;;;UAMiB,uBAAA;EACf,IAAA,EAAM,eAAA;EACN,MAAA,EAAQ,cAAA;EACR,KAAA,EAAO,eAAA,CAAgB,KAAA;EACvB,YAAA,EAAc,cAAA,CAAa,eAAA,CAAgB,KAAA;AAAA;AAAA,iBAO7B,qBAAA,CAAA,GAAyB,uBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { BufferingIndicatorCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
3
|
+
import { BufferingIndicatorCore } from "@videojs/core";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/buffering-indicator/buffering-indicator.d.ts
|
|
6
6
|
interface BufferingIndicatorProps extends UIComponentProps<'div', BufferingIndicatorCore.State>, BufferingIndicatorCore.Props {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { usePlayer } from "../../player/context.js";
|
|
3
3
|
import { useDestroy } from "../../utils/use-destroy.js";
|
|
4
4
|
import { renderElement } from "../../utils/use-render.js";
|
|
5
|
-
import { BufferingIndicatorCore, BufferingIndicatorDataAttrs } from "@videojs/core";
|
|
6
5
|
import { logMissingFeature, selectPlayback } from "@videojs/core/dom";
|
|
7
6
|
import { forwardRef, useState, useSyncExternalStore } from "react";
|
|
7
|
+
import { BufferingIndicatorCore, BufferingIndicatorDataAttrs } from "@videojs/core";
|
|
8
8
|
//#region src/ui/buffering-indicator/buffering-indicator.tsx
|
|
9
9
|
/**
|
|
10
10
|
* Displays a buffering indicator when media is waiting for data.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { CaptionsButtonCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
3
|
+
import { CaptionsButtonCore } from "@videojs/core";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/captions-button/captions-button.d.ts
|
|
6
6
|
interface CaptionsButtonProps extends UIComponentProps<'button', CaptionsButtonCore.State>, CaptionsButtonCore.Props {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createMediaButton } from "../create-media-button.js";
|
|
3
|
-
import { CaptionsButtonCore, CaptionsButtonDataAttrs } from "@videojs/core";
|
|
4
3
|
import { selectTextTrack } from "@videojs/core/dom";
|
|
4
|
+
import { CaptionsButtonCore, CaptionsButtonDataAttrs } from "@videojs/core";
|
|
5
5
|
//#region src/ui/captions-button/captions-button.tsx
|
|
6
6
|
/** A button that toggles captions. */
|
|
7
7
|
const CaptionsButton = createMediaButton({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { ControlsCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
4
3
|
import { ReactNode } from "react";
|
|
4
|
+
import { ControlsCore } from "@videojs/core";
|
|
5
5
|
|
|
6
6
|
//#region src/ui/controls/controls-group.d.ts
|
|
7
7
|
interface ControlsGroupProps extends UIComponentProps<'div', ControlsCore.State> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { ControlsCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
4
3
|
import { ReactNode } from "react";
|
|
4
|
+
import { ControlsCore } from "@videojs/core";
|
|
5
5
|
|
|
6
6
|
//#region src/ui/controls/controls-root.d.ts
|
|
7
7
|
interface ControlsRootProps extends UIComponentProps<'div', ControlsCore.State> {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { usePlayer } from "../../player/context.js";
|
|
3
3
|
import { renderElement } from "../../utils/use-render.js";
|
|
4
4
|
import { ControlsContextProvider } from "./context.js";
|
|
5
|
-
import { ControlsCore, ControlsDataAttrs } from "@videojs/core";
|
|
6
5
|
import { logMissingFeature, selectControls } from "@videojs/core/dom";
|
|
7
6
|
import { forwardRef, useState } from "react";
|
|
8
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { ControlsCore, ControlsDataAttrs } from "@videojs/core";
|
|
9
9
|
//#region src/ui/controls/controls-root.tsx
|
|
10
10
|
/** Root container for player controls state and rendered control content. */
|
|
11
11
|
const ControlsRoot = forwardRef(function ControlsRoot(componentProps, forwardedRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","names":[],"sources":["../../../../src/ui/error-dialog/context.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.ts","names":[],"sources":["../../../../src/ui/error-dialog/context.tsx"],"mappings":";;;UAKiB,uBAAA;EACf,SAAA,EAAW,UAAA;AAAA;AAAA,iBAOG,qBAAA,CAAA,GAAyB,uBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { AlertDialogCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
3
|
+
import { AlertDialogCore } from "@videojs/core";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/error-dialog/error-dialog-description.d.ts
|
|
6
6
|
interface ErrorDialogDescriptionProps extends UIComponentProps<'p', AlertDialogCore.State> {}
|
|
@@ -5,11 +5,11 @@ import { useDestroy } from "../../utils/use-destroy.js";
|
|
|
5
5
|
import { AlertDialogContextProvider } from "../alert-dialog/context.js";
|
|
6
6
|
import { useSafeId } from "../../utils/use-safe-id.js";
|
|
7
7
|
import { ErrorDialogContextProvider } from "./context.js";
|
|
8
|
-
import { AlertDialogDataAttrs, ErrorDialogCore } from "@videojs/core";
|
|
9
8
|
import { createAlertDialog, createTransition, selectError } from "@videojs/core/dom";
|
|
10
9
|
import { useSnapshot } from "@videojs/store/react";
|
|
11
10
|
import { useEffect, useRef, useState } from "react";
|
|
12
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
import { AlertDialogDataAttrs, ErrorDialogCore } from "@videojs/core";
|
|
13
13
|
//#region src/ui/error-dialog/error-dialog-root.tsx
|
|
14
14
|
function ErrorDialogRoot({ children }) {
|
|
15
15
|
const [core] = useState(() => new ErrorDialogCore());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { FullscreenButtonCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
3
|
+
import { FullscreenButtonCore } from "@videojs/core";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/fullscreen-button/fullscreen-button.d.ts
|
|
6
6
|
interface FullscreenButtonProps extends UIComponentProps<'button', FullscreenButtonCore.State>, FullscreenButtonCore.Props {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createMediaButton } from "../create-media-button.js";
|
|
3
|
-
import { FullscreenButtonCore, FullscreenButtonDataAttrs } from "@videojs/core";
|
|
4
3
|
import { selectFullscreen } from "@videojs/core/dom";
|
|
4
|
+
import { FullscreenButtonCore, FullscreenButtonDataAttrs } from "@videojs/core";
|
|
5
5
|
//#region src/ui/fullscreen-button/fullscreen-button.tsx
|
|
6
6
|
/** A button that toggles fullscreen. */
|
|
7
7
|
const FullscreenButton = createMediaButton({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SliderInput, SliderState } from "@videojs/core";
|
|
2
1
|
import { SliderOptions, SliderRootProps, SliderRootStyle, SliderThumbProps } from "@videojs/core/dom";
|
|
2
|
+
import { SliderInput, SliderState } from "@videojs/core";
|
|
3
3
|
|
|
4
4
|
//#region src/ui/hooks/use-slider.d.ts
|
|
5
5
|
interface UseSliderOptions<State extends SliderState = SliderState> extends Pick<SliderOptions, 'getPercent' | 'getStepPercent' | 'getLargeStepPercent' | 'changeThrottle' | 'onValueChange' | 'onValueCommit' | 'onDragStart' | 'onDragEnd'> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { MuteButtonCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
3
|
+
import { MuteButtonCore } from "@videojs/core";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/mute-button/mute-button.d.ts
|
|
6
6
|
interface MuteButtonProps extends UIComponentProps<'button', MuteButtonCore.State>, MuteButtonCore.Props {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createMediaButton } from "../create-media-button.js";
|
|
3
|
-
import { MuteButtonCore, MuteButtonDataAttrs } from "@videojs/core";
|
|
4
3
|
import { selectVolume } from "@videojs/core/dom";
|
|
4
|
+
import { MuteButtonCore, MuteButtonDataAttrs } from "@videojs/core";
|
|
5
5
|
//#region src/ui/mute-button/mute-button.tsx
|
|
6
6
|
/** A button that toggles mute state. */
|
|
7
7
|
const MuteButton = createMediaButton({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { PiPButtonCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
3
|
+
import { PiPButtonCore } from "@videojs/core";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/pip-button/pip-button.d.ts
|
|
6
6
|
interface PiPButtonProps extends UIComponentProps<'button', PiPButtonCore.State>, PiPButtonCore.Props {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createMediaButton } from "../create-media-button.js";
|
|
3
|
-
import { PiPButtonCore, PiPButtonDataAttrs } from "@videojs/core";
|
|
4
3
|
import { selectPiP } from "@videojs/core/dom";
|
|
4
|
+
import { PiPButtonCore, PiPButtonDataAttrs } from "@videojs/core";
|
|
5
5
|
//#region src/ui/pip-button/pip-button.tsx
|
|
6
6
|
/** A button that toggles picture-in-picture. */
|
|
7
7
|
const PiPButton = createMediaButton({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIComponentProps } from "../../utils/types.js";
|
|
2
|
-
import { PlayButtonCore } from "@videojs/core";
|
|
3
2
|
import * as react from "react";
|
|
3
|
+
import { PlayButtonCore } from "@videojs/core";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/play-button/play-button.d.ts
|
|
6
6
|
interface PlayButtonProps extends UIComponentProps<'button', PlayButtonCore.State>, PlayButtonCore.Props {}
|