chore: new builds & types using tsdown (#20)

This commit is contained in:
Rahim
2025-09-23 23:12:19 +10:00
committed by GitHub
parent 8bb4dcff72
commit 6ad5340b40
142 changed files with 1407 additions and 3468 deletions
@@ -1,4 +1,2 @@
// Video component has been moved to @vjs-10/react as MediaElementVideo
// Export the media element components from the main module
export { VideoElement, AudioElement, createMediaElementAdapter } from './media-elements';
export type { MediaElementProps, MediaElementRef, MediaElementLike } from './media-elements';
@@ -1,4 +1,6 @@
import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';
import type { CSSProperties, ForwardRefExoticComponent } from 'react';
import { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';
// @ts-ignore - Placeholder interfaces for future implementation
interface MediaElementLike {
@@ -95,14 +97,17 @@ export interface MediaElementProps {
onVolumeChange?: (volume: number, muted: boolean) => void;
onEnded?: () => void;
className?: string;
style?: React.CSSProperties;
style?: CSSProperties;
}
export interface MediaElementRef extends MediaElementLike {
element: HTMLVideoElement | HTMLAudioElement | null;
}
export const VideoElement = forwardRef<MediaElementRef, MediaElementProps>(
export const VideoElement: ForwardRefExoticComponent<MediaElementProps> = forwardRef<
MediaElementRef,
MediaElementProps
>(
(
{
src,
@@ -245,7 +250,10 @@ export const VideoElement = forwardRef<MediaElementRef, MediaElementProps>(
VideoElement.displayName = 'VideoElement';
export const AudioElement = forwardRef<MediaElementRef, MediaElementProps>(
export const AudioElement: ForwardRefExoticComponent<MediaElementProps> = forwardRef<
MediaElementRef,
MediaElementProps
>(
(
{
src,