@gfazioli/mantine-video 1.0.0

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.
Files changed (78) hide show
  1. package/CODE_OF_CONDUCT.md +128 -0
  2. package/CONTRIBUTING.md +18 -0
  3. package/LICENSE +21 -0
  4. package/README.md +179 -0
  5. package/dist/cjs/Video.cjs +301 -0
  6. package/dist/cjs/Video.cjs.map +1 -0
  7. package/dist/cjs/Video.context.cjs +21 -0
  8. package/dist/cjs/Video.context.cjs.map +1 -0
  9. package/dist/cjs/Video.module.css.cjs +7 -0
  10. package/dist/cjs/Video.module.css.cjs.map +1 -0
  11. package/dist/cjs/components/VideoCaptionsButton.cjs +75 -0
  12. package/dist/cjs/components/VideoCaptionsButton.cjs.map +1 -0
  13. package/dist/cjs/components/VideoControls.cjs +34 -0
  14. package/dist/cjs/components/VideoControls.cjs.map +1 -0
  15. package/dist/cjs/components/VideoFullscreenButton.cjs +35 -0
  16. package/dist/cjs/components/VideoFullscreenButton.cjs.map +1 -0
  17. package/dist/cjs/components/VideoMuteButton.cjs +36 -0
  18. package/dist/cjs/components/VideoMuteButton.cjs.map +1 -0
  19. package/dist/cjs/components/VideoPiPButton.cjs +34 -0
  20. package/dist/cjs/components/VideoPiPButton.cjs.map +1 -0
  21. package/dist/cjs/components/VideoPlayButton.cjs +33 -0
  22. package/dist/cjs/components/VideoPlayButton.cjs.map +1 -0
  23. package/dist/cjs/components/VideoSkipButton.cjs +34 -0
  24. package/dist/cjs/components/VideoSkipButton.cjs.map +1 -0
  25. package/dist/cjs/components/VideoTimeDisplay.cjs +55 -0
  26. package/dist/cjs/components/VideoTimeDisplay.cjs.map +1 -0
  27. package/dist/cjs/components/VideoTimeline.cjs +112 -0
  28. package/dist/cjs/components/VideoTimeline.cjs.map +1 -0
  29. package/dist/cjs/index.cjs +33 -0
  30. package/dist/cjs/index.cjs.map +1 -0
  31. package/dist/cjs/use-video.cjs +332 -0
  32. package/dist/cjs/use-video.cjs.map +1 -0
  33. package/dist/esm/Video.context.mjs +17 -0
  34. package/dist/esm/Video.context.mjs.map +1 -0
  35. package/dist/esm/Video.mjs +299 -0
  36. package/dist/esm/Video.mjs.map +1 -0
  37. package/dist/esm/Video.module.css.mjs +5 -0
  38. package/dist/esm/Video.module.css.mjs.map +1 -0
  39. package/dist/esm/components/VideoCaptionsButton.mjs +73 -0
  40. package/dist/esm/components/VideoCaptionsButton.mjs.map +1 -0
  41. package/dist/esm/components/VideoControls.mjs +32 -0
  42. package/dist/esm/components/VideoControls.mjs.map +1 -0
  43. package/dist/esm/components/VideoFullscreenButton.mjs +33 -0
  44. package/dist/esm/components/VideoFullscreenButton.mjs.map +1 -0
  45. package/dist/esm/components/VideoMuteButton.mjs +34 -0
  46. package/dist/esm/components/VideoMuteButton.mjs.map +1 -0
  47. package/dist/esm/components/VideoPiPButton.mjs +32 -0
  48. package/dist/esm/components/VideoPiPButton.mjs.map +1 -0
  49. package/dist/esm/components/VideoPlayButton.mjs +31 -0
  50. package/dist/esm/components/VideoPlayButton.mjs.map +1 -0
  51. package/dist/esm/components/VideoSkipButton.mjs +32 -0
  52. package/dist/esm/components/VideoSkipButton.mjs.map +1 -0
  53. package/dist/esm/components/VideoTimeDisplay.mjs +53 -0
  54. package/dist/esm/components/VideoTimeDisplay.mjs.map +1 -0
  55. package/dist/esm/components/VideoTimeline.mjs +110 -0
  56. package/dist/esm/components/VideoTimeline.mjs.map +1 -0
  57. package/dist/esm/index.mjs +13 -0
  58. package/dist/esm/index.mjs.map +1 -0
  59. package/dist/esm/use-video.mjs +330 -0
  60. package/dist/esm/use-video.mjs.map +1 -0
  61. package/dist/styles.css +1 -0
  62. package/dist/styles.layer.css +1 -0
  63. package/dist/types/Video.context.d.ts +11 -0
  64. package/dist/types/Video.d.ts +136 -0
  65. package/dist/types/components/VideoCaptionsButton.d.ts +7 -0
  66. package/dist/types/components/VideoControls.d.ts +7 -0
  67. package/dist/types/components/VideoFullscreenButton.d.ts +7 -0
  68. package/dist/types/components/VideoMuteButton.d.ts +7 -0
  69. package/dist/types/components/VideoPiPButton.d.ts +6 -0
  70. package/dist/types/components/VideoPlayButton.d.ts +7 -0
  71. package/dist/types/components/VideoSkipButton.d.ts +11 -0
  72. package/dist/types/components/VideoTimeDisplay.d.ts +8 -0
  73. package/dist/types/components/VideoTimeline.d.ts +14 -0
  74. package/dist/types/components/index.d.ts +9 -0
  75. package/dist/types/index.d.mts +8 -0
  76. package/dist/types/index.d.ts +8 -0
  77. package/dist/types/use-video.d.ts +57 -0
  78. package/package.json +61 -0
@@ -0,0 +1,136 @@
1
+ import { BoxProps, ElementProps, Factory, StylesApiProps, type MantineColor, type MantineRadius, type MantineSize } from '@mantine/core';
2
+ import { VideoCaptionsButton } from './components/VideoCaptionsButton';
3
+ import { VideoControls } from './components/VideoControls';
4
+ import { VideoFullscreenButton } from './components/VideoFullscreenButton';
5
+ import { VideoMuteButton } from './components/VideoMuteButton';
6
+ import { VideoPiPButton } from './components/VideoPiPButton';
7
+ import { VideoPlayButton } from './components/VideoPlayButton';
8
+ import { VideoSkipButton } from './components/VideoSkipButton';
9
+ import { VideoTimeDisplay } from './components/VideoTimeDisplay';
10
+ import { VideoTimeline } from './components/VideoTimeline';
11
+ export type VideoVariant = 'overlay' | 'minimal' | 'floating' | 'bordered';
12
+ export type VideoStylesNames = 'root' | 'video' | 'controls' | 'controlBar' | 'playButton' | 'timeline' | 'timelineTrack' | 'timelineBuffered' | 'timelineFill' | 'timelineThumb' | 'timelineMarkers' | 'timeDisplay' | 'muteButton' | 'fullscreenButton' | 'pipButton' | 'captionsButton' | 'skipButton' | 'iconButton' | 'backgroundMuteButton';
13
+ export type VideoCssVariables = {
14
+ root: '--video-color' | '--video-radius' | '--video-bg' | '--video-controls-bg' | '--video-controls-height' | '--video-controls-text-color' | '--video-timeline-color' | '--video-timeline-thumb-color';
15
+ };
16
+ export interface VideoBaseProps {
17
+ /** Video source URL */
18
+ src?: string;
19
+ /** Poster image displayed before playback starts */
20
+ poster?: string;
21
+ /** Render the default control bar; set to `false` to bring your own children */
22
+ controls?: boolean;
23
+ /** Auto-play (browsers usually require `muted` for this to work) */
24
+ autoPlay?: boolean;
25
+ /** Mute initially */
26
+ muted?: boolean;
27
+ /** Loop on end */
28
+ loop?: boolean;
29
+ /** Inline playback on iOS Safari (default: `true`) */
30
+ playsInline?: boolean;
31
+ /** Preload hint forwarded to the `<video>` element */
32
+ preload?: 'none' | 'metadata' | 'auto';
33
+ /** Controlled playing state */
34
+ playing?: boolean;
35
+ /** Called when play state changes */
36
+ onPlayChange?: (playing: boolean) => void;
37
+ /** Controlled current time (seconds) */
38
+ currentTime?: number;
39
+ /** Called when the current time changes */
40
+ onCurrentTimeChange?: (currentTime: number) => void;
41
+ /** Controlled volume (0..1) */
42
+ volume?: number;
43
+ /** Called when the volume changes */
44
+ onVolumeChange?: (volume: number) => void;
45
+ /** Controlled playback rate */
46
+ playbackRate?: number;
47
+ /** Called when the playback rate changes */
48
+ onPlaybackRateChange?: (rate: number) => void;
49
+ /** Theme color used for the timeline fill, thumb and active states */
50
+ color?: MantineColor;
51
+ /** Border radius applied to the container */
52
+ radius?: MantineRadius | (string & {}) | number;
53
+ /** Aspect ratio of the container (e.g. `16 / 9`). When set, the container enforces the ratio. */
54
+ aspectRatio?: number;
55
+ /** Enable keyboard shortcuts when the player is focused (Space, ←/→, ↑/↓, M, F, P, J/K/L) */
56
+ shortcuts?: boolean;
57
+ /** Click on the video toggles play/pause */
58
+ clickToToggle?: boolean;
59
+ /** Double-click toggles fullscreen */
60
+ doubleClickToFullscreen?: boolean;
61
+ /** Auto-hide controls after N ms of inactivity (0 disables auto-hide) */
62
+ autoHideControls?: number;
63
+ /** Size scale for control elements */
64
+ size?: MantineSize | (string & {});
65
+ /** Called when the video ends */
66
+ onEnded?: () => void;
67
+ /** Called when an error occurs on the underlying `<video>` element */
68
+ onError?: (error: MediaError | null) => void;
69
+ /** Called when the player enters Picture-in-Picture mode */
70
+ onEnterPictureInPicture?: () => void;
71
+ /** Called when the player leaves Picture-in-Picture mode */
72
+ onLeavePictureInPicture?: () => void;
73
+ /** Called when fullscreen state changes */
74
+ onFullscreenChange?: (fullscreen: boolean) => void;
75
+ /**
76
+ * `object-fit` applied to the underlying `<video>` element. Use `'cover'` to crop
77
+ * the video so it fills the container (typical for background usage). Default `'contain'`.
78
+ */
79
+ fit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
80
+ /**
81
+ * Convenience preset for using the player as a section / page background. When `true`
82
+ * the component:
83
+ * - positions itself absolutely (`position: absolute; inset: 0`) to fill its parent
84
+ * - sets `object-fit: cover` on the `<video>` element (overrides `fit`)
85
+ * - disables `controls`, `clickToToggle`, `shortcuts`, `doubleClickToFullscreen`,
86
+ * `autoHideControls` *as defaults* (you can still re-enable them explicitly)
87
+ *
88
+ * Wrap the player in a positioned parent of the size you want — e.g.
89
+ * `<Box pos="relative" h="100vh">` for a full-viewport hero.
90
+ */
91
+ asBackground?: boolean;
92
+ /**
93
+ * When `asBackground` is `true`, render a small floating mute toggle in the bottom-right
94
+ * corner so users can opt in/out of audio. Default `true` — pass `false` to hide it
95
+ * (e.g. if you want to manage audio yourself via children or controlled state).
96
+ */
97
+ backgroundMuteButton?: boolean;
98
+ }
99
+ export interface VideoProps extends BoxProps, VideoBaseProps, StylesApiProps<VideoFactory>, Omit<ElementProps<'div', keyof VideoBaseProps>, 'color' | 'onError'> {
100
+ }
101
+ export type VideoFactory = Factory<{
102
+ props: VideoProps;
103
+ ref: HTMLDivElement;
104
+ stylesNames: VideoStylesNames;
105
+ variant: VideoVariant;
106
+ vars: VideoCssVariables;
107
+ staticComponents: {
108
+ Controls: typeof VideoControls;
109
+ PlayButton: typeof VideoPlayButton;
110
+ Timeline: typeof VideoTimeline;
111
+ TimeDisplay: typeof VideoTimeDisplay;
112
+ MuteButton: typeof VideoMuteButton;
113
+ FullscreenButton: typeof VideoFullscreenButton;
114
+ PiPButton: typeof VideoPiPButton;
115
+ CaptionsButton: typeof VideoCaptionsButton;
116
+ SkipButton: typeof VideoSkipButton;
117
+ };
118
+ }>;
119
+ export declare const Video: import("@mantine/core").MantineComponent<{
120
+ props: VideoProps;
121
+ ref: HTMLDivElement;
122
+ stylesNames: VideoStylesNames;
123
+ variant: VideoVariant;
124
+ vars: VideoCssVariables;
125
+ staticComponents: {
126
+ Controls: typeof VideoControls;
127
+ PlayButton: typeof VideoPlayButton;
128
+ Timeline: typeof VideoTimeline;
129
+ TimeDisplay: typeof VideoTimeDisplay;
130
+ MuteButton: typeof VideoMuteButton;
131
+ FullscreenButton: typeof VideoFullscreenButton;
132
+ PiPButton: typeof VideoPiPButton;
133
+ CaptionsButton: typeof VideoCaptionsButton;
134
+ SkipButton: typeof VideoSkipButton;
135
+ };
136
+ }>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { type ActionIconProps, type ElementProps } from '@mantine/core';
3
+ export interface VideoCaptionsButtonProps extends ActionIconProps, ElementProps<'button', keyof ActionIconProps> {
4
+ enableLabel?: string;
5
+ disableLabel?: string;
6
+ }
7
+ export declare const VideoCaptionsButton: React.ForwardRefExoticComponent<Omit<VideoCaptionsButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { type ReactNode } from 'react';
3
+ import { type BoxProps } from '@mantine/core';
4
+ export interface VideoControlsProps extends BoxProps {
5
+ children?: ReactNode;
6
+ }
7
+ export declare const VideoControls: React.ForwardRefExoticComponent<VideoControlsProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { type ActionIconProps, type ElementProps } from '@mantine/core';
3
+ export interface VideoFullscreenButtonProps extends ActionIconProps, ElementProps<'button', keyof ActionIconProps> {
4
+ enterLabel?: string;
5
+ exitLabel?: string;
6
+ }
7
+ export declare const VideoFullscreenButton: React.ForwardRefExoticComponent<Omit<VideoFullscreenButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { type ActionIconProps, type ElementProps } from '@mantine/core';
3
+ export interface VideoMuteButtonProps extends ActionIconProps, ElementProps<'button', keyof ActionIconProps> {
4
+ muteLabel?: string;
5
+ unmuteLabel?: string;
6
+ }
7
+ export declare const VideoMuteButton: React.ForwardRefExoticComponent<Omit<VideoMuteButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { type ActionIconProps, type ElementProps } from '@mantine/core';
3
+ export interface VideoPiPButtonProps extends ActionIconProps, ElementProps<'button', keyof ActionIconProps> {
4
+ label?: string;
5
+ }
6
+ export declare const VideoPiPButton: React.ForwardRefExoticComponent<Omit<VideoPiPButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { type ActionIconProps, type ElementProps } from '@mantine/core';
3
+ export interface VideoPlayButtonProps extends ActionIconProps, ElementProps<'button', keyof ActionIconProps> {
4
+ playLabel?: string;
5
+ pauseLabel?: string;
6
+ }
7
+ export declare const VideoPlayButton: React.ForwardRefExoticComponent<Omit<VideoPlayButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { type ActionIconProps, type ElementProps } from '@mantine/core';
3
+ export interface VideoSkipButtonProps extends ActionIconProps, ElementProps<'button', keyof ActionIconProps | 'children'> {
4
+ /** Seconds to skip. Negative = backward, positive = forward. Default `10`. */
5
+ seconds?: number;
6
+ /** Override the displayed icon */
7
+ icon?: React.ReactNode;
8
+ /** Tooltip label override */
9
+ label?: string;
10
+ }
11
+ export declare const VideoSkipButton: React.ForwardRefExoticComponent<Omit<VideoSkipButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { type TextProps } from '@mantine/core';
3
+ export type VideoTimeDisplayFormat = 'current' | 'duration' | 'remaining' | 'current/duration' | 'current/-remaining';
4
+ export interface VideoTimeDisplayProps extends TextProps {
5
+ /** Display format. Default `'current/duration'`. */
6
+ format?: VideoTimeDisplayFormat;
7
+ }
8
+ export declare const VideoTimeDisplay: React.ForwardRefExoticComponent<VideoTimeDisplayProps & React.RefAttributes<HTMLParagraphElement>>;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type BoxProps, type SliderProps } from '@mantine/core';
3
+ export interface VideoTimelineProps extends Omit<BoxProps, 'onChange'> {
4
+ /** Slider props forwarded to the underlying Mantine Slider */
5
+ sliderProps?: Partial<Omit<SliderProps, 'value' | 'onChange' | 'onChangeEnd' | 'max' | 'min'>>;
6
+ /**
7
+ * Live-scrub the video while dragging the timeline thumb — the underlying `<video>`
8
+ * element seeks to the new position on every change, so the user sees the frame
9
+ * update in real time. The player is paused for the duration of the drag and
10
+ * resumes automatically on release if it was playing. Default `true`.
11
+ */
12
+ liveScrub?: boolean;
13
+ }
14
+ export declare const VideoTimeline: React.ForwardRefExoticComponent<VideoTimelineProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,9 @@
1
+ export { VideoCaptionsButton, type VideoCaptionsButtonProps } from './VideoCaptionsButton';
2
+ export { VideoControls, type VideoControlsProps } from './VideoControls';
3
+ export { VideoFullscreenButton, type VideoFullscreenButtonProps, } from './VideoFullscreenButton';
4
+ export { VideoMuteButton, type VideoMuteButtonProps } from './VideoMuteButton';
5
+ export { VideoPiPButton, type VideoPiPButtonProps } from './VideoPiPButton';
6
+ export { VideoPlayButton, type VideoPlayButtonProps } from './VideoPlayButton';
7
+ export { VideoSkipButton, type VideoSkipButtonProps } from './VideoSkipButton';
8
+ export { VideoTimeDisplay, type VideoTimeDisplayFormat, type VideoTimeDisplayProps, } from './VideoTimeDisplay';
9
+ export { VideoTimeline, type VideoTimelineProps } from './VideoTimeline';
@@ -0,0 +1,8 @@
1
+ export { Video } from './Video';
2
+ export type { VideoBaseProps, VideoCssVariables, VideoFactory, VideoProps, VideoStylesNames, VideoVariant, } from './Video';
3
+ export { useVideo } from './use-video';
4
+ export type { UseVideoOptions, UseVideoReturn } from './use-video';
5
+ export { useVideoContext, VideoContext, VideoProvider } from './Video.context';
6
+ export type { VideoContextValue } from './Video.context';
7
+ export { VideoCaptionsButton, VideoControls, VideoFullscreenButton, VideoMuteButton, VideoPiPButton, VideoPlayButton, VideoSkipButton, VideoTimeDisplay, VideoTimeline, } from './components';
8
+ export type { VideoCaptionsButtonProps, VideoControlsProps, VideoFullscreenButtonProps, VideoMuteButtonProps, VideoPiPButtonProps, VideoPlayButtonProps, VideoSkipButtonProps, VideoTimeDisplayFormat, VideoTimeDisplayProps, VideoTimelineProps, } from './components';
@@ -0,0 +1,8 @@
1
+ export { Video } from './Video';
2
+ export type { VideoBaseProps, VideoCssVariables, VideoFactory, VideoProps, VideoStylesNames, VideoVariant, } from './Video';
3
+ export { useVideo } from './use-video';
4
+ export type { UseVideoOptions, UseVideoReturn } from './use-video';
5
+ export { useVideoContext, VideoContext, VideoProvider } from './Video.context';
6
+ export type { VideoContextValue } from './Video.context';
7
+ export { VideoCaptionsButton, VideoControls, VideoFullscreenButton, VideoMuteButton, VideoPiPButton, VideoPlayButton, VideoSkipButton, VideoTimeDisplay, VideoTimeline, } from './components';
8
+ export type { VideoCaptionsButtonProps, VideoControlsProps, VideoFullscreenButtonProps, VideoMuteButtonProps, VideoPiPButtonProps, VideoPlayButtonProps, VideoSkipButtonProps, VideoTimeDisplayFormat, VideoTimeDisplayProps, VideoTimelineProps, } from './components';
@@ -0,0 +1,57 @@
1
+ export interface UseVideoOptions {
2
+ src?: string;
3
+ autoPlay?: boolean;
4
+ muted?: boolean;
5
+ loop?: boolean;
6
+ playbackRate?: number;
7
+ volume?: number;
8
+ playing?: boolean;
9
+ onPlayChange?: (playing: boolean) => void;
10
+ currentTime?: number;
11
+ onCurrentTimeChange?: (currentTime: number) => void;
12
+ onVolumeChange?: (volume: number) => void;
13
+ onPlaybackRateChange?: (rate: number) => void;
14
+ onEnded?: () => void;
15
+ onError?: (error: MediaError | null) => void;
16
+ onDurationChange?: (duration: number) => void;
17
+ onEnterPictureInPicture?: () => void;
18
+ onLeavePictureInPicture?: () => void;
19
+ onFullscreenChange?: (fullscreen: boolean) => void;
20
+ }
21
+ export interface UseVideoReturn {
22
+ videoRef: React.RefObject<HTMLVideoElement | null>;
23
+ containerRef: React.RefObject<HTMLDivElement | null>;
24
+ playing: boolean;
25
+ paused: boolean;
26
+ ended: boolean;
27
+ currentTime: number;
28
+ duration: number;
29
+ buffered: number;
30
+ volume: number;
31
+ muted: boolean;
32
+ playbackRate: number;
33
+ fullscreen: boolean;
34
+ pip: boolean;
35
+ isLoading: boolean;
36
+ error: MediaError | null;
37
+ canPlay: boolean;
38
+ canFullscreen: boolean;
39
+ canPiP: boolean;
40
+ play: () => Promise<void>;
41
+ pause: () => void;
42
+ toggle: () => void;
43
+ seek: (time: number) => void;
44
+ seekBy: (delta: number) => void;
45
+ setVolume: (volume: number) => void;
46
+ mute: () => void;
47
+ unmute: () => void;
48
+ toggleMute: () => void;
49
+ setPlaybackRate: (rate: number) => void;
50
+ requestFullscreen: () => Promise<void>;
51
+ exitFullscreen: () => Promise<void>;
52
+ toggleFullscreen: () => Promise<void>;
53
+ requestPiP: () => Promise<void>;
54
+ exitPiP: () => Promise<void>;
55
+ togglePiP: () => Promise<void>;
56
+ }
57
+ export declare function useVideo(options?: UseVideoOptions): UseVideoReturn;
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@gfazioli/mantine-video",
3
+ "version": "1.0.0",
4
+ "description": "A customizable video player component for React built with Mantine. Compound API in Mantine ecosystem style, headless useVideo hook, theme-aware styling, accessibility, and full Styles API.",
5
+ "homepage": "https://gfazioli.github.io/mantine-video/",
6
+ "packageManager": "yarn@4.0.1",
7
+ "license": "MIT",
8
+ "author": "Giovambattista Fazioli <giovambattista.fazioli@gmail.com>",
9
+ "keywords": [
10
+ "mantine",
11
+ "mantine-ui",
12
+ "mantine-v8",
13
+ "react",
14
+ "react-component",
15
+ "typescript",
16
+ "extension",
17
+ "component",
18
+ "video",
19
+ "video-player",
20
+ "media-player",
21
+ "html5-video",
22
+ "react-video",
23
+ "react-video-player",
24
+ "captions",
25
+ "playback",
26
+ "fullscreen",
27
+ "picture-in-picture",
28
+ "a11y"
29
+ ],
30
+ "main": "./dist/cjs/index.cjs",
31
+ "module": "./dist/esm/index.mjs",
32
+ "types": "./dist/types/index.d.ts",
33
+ "exports": {
34
+ ".": {
35
+ "import": {
36
+ "types": "./dist/types/index.d.mts",
37
+ "default": "./dist/esm/index.mjs"
38
+ },
39
+ "require": {
40
+ "types": "./dist/types/index.d.ts",
41
+ "default": "./dist/cjs/index.cjs"
42
+ }
43
+ },
44
+ "./styles.css": "./dist/styles.css",
45
+ "./styles.layer.css": "./dist/styles.layer.css"
46
+ },
47
+ "repository": "https://github.com/gfazioli/mantine-video.git",
48
+ "peerDependencies": {
49
+ "@mantine/core": ">=7.0.0",
50
+ "@mantine/hooks": ">=7.0.0",
51
+ "@tabler/icons-react": ">=3.0.0",
52
+ "react": "^18.x || ^19.x",
53
+ "react-dom": "^18.x || ^19.x"
54
+ },
55
+ "peerDependenciesMeta": {
56
+ "@tabler/icons-react": {
57
+ "optional": true
58
+ }
59
+ },
60
+ "bugs": "https://github.com/gfazioli/mantine-video/issues"
61
+ }