suada-components 1.9.0 → 1.10.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 (96) hide show
  1. package/dist/{components/DailyMotion-B7yDPBbg.js → DailyMotion-DacNkqsi.js} +1 -1
  2. package/dist/{components/DailyMotion-BmnymjR1.esm.js → DailyMotion-gaY-1HqX.esm.js} +1 -1
  3. package/dist/{components/Facebook-D9Ak6ZJU.esm.js → Facebook-C_tH1Bi_.esm.js} +1 -1
  4. package/dist/{components/Facebook-42iqQU2G.js → Facebook-D4wLMJkY.js} +1 -1
  5. package/dist/{components/FilePlayer-CAnHK0Cd.js → FilePlayer-B4s5OcYq.js} +1 -1
  6. package/dist/{components/FilePlayer-wg9lyafD.esm.js → FilePlayer-DqR2mvGK.esm.js} +1 -1
  7. package/dist/{components/Kaltura-DPaEN-dq.esm.js → Kaltura-C9QbmEfO.esm.js} +1 -1
  8. package/dist/{components/Kaltura-Ct6kwbgP.js → Kaltura-kCqUZWuf.js} +1 -1
  9. package/dist/{components/Mixcloud-sBbcL5rG.js → Mixcloud-2c71b3Nf.js} +1 -1
  10. package/dist/{components/Mixcloud-BobSN3YI.esm.js → Mixcloud-ib_DIXF1.esm.js} +1 -1
  11. package/dist/{components/Mux-Cosy8sFO.js → Mux-BsXgGo6C.js} +1 -1
  12. package/dist/{components/Mux-B9YP-rFr.esm.js → Mux-CJ6kEh1R.esm.js} +1 -1
  13. package/dist/{components/Preview-DiVfo6aa.js → Preview-gEkhA4mX.js} +1 -1
  14. package/dist/{components/Preview-XcTlhHT1.esm.js → Preview-kqr7fWet.esm.js} +1 -1
  15. package/dist/{components/SoundCloud-CIWqB-QW.js → SoundCloud-BWup2g--.js} +1 -1
  16. package/dist/{components/SoundCloud-BTHoyFWT.esm.js → SoundCloud-DJM0bsQG.esm.js} +1 -1
  17. package/dist/{components/Streamable-DsfQCy3p.esm.js → Streamable-CJltauTy.esm.js} +1 -1
  18. package/dist/{components/Streamable-9anYiQtU.js → Streamable-UeTHV2nZ.js} +1 -1
  19. package/dist/{components/Twitch-D1BOr8hj.esm.js → Twitch-C9qq_89Q.esm.js} +1 -1
  20. package/dist/{components/Twitch-Dud6e1Rv.js → Twitch-_N8mEsiS.js} +1 -1
  21. package/dist/{components/Vidyard-BuOu85uS.js → Vidyard-CQuxB99Z.js} +1 -1
  22. package/dist/{components/Vidyard-C1csjpQH.esm.js → Vidyard-gtcLQdYd.esm.js} +1 -1
  23. package/dist/{components/Vimeo-CHlHIswX.esm.js → Vimeo-Dzp5eoLi.esm.js} +1 -1
  24. package/dist/{components/Vimeo-DrDJ5O9H.js → Vimeo-nhXVoFTb.js} +1 -1
  25. package/dist/{components/Wistia-fh9U2CA2.js → Wistia-C1DqA9IW.js} +1 -1
  26. package/dist/{components/Wistia-D-eYyONb.esm.js → Wistia-DV3BO3z9.esm.js} +1 -1
  27. package/dist/{components/YouTube-CmnnzZvk.esm.js → YouTube-BKwvJCnt.esm.js} +1 -1
  28. package/dist/{components/YouTube-DC2uZ14c.js → YouTube-DDou5phH.js} +1 -1
  29. package/dist/components/CourseCard/CourseCard.styles.d.ts +1 -1
  30. package/dist/components/DailyMotion-B8IJNjSc.js +180 -0
  31. package/dist/components/DailyMotion-COg3zgIZ.esm.js +178 -0
  32. package/dist/components/Facebook-DJ7a3Bj8.js +181 -0
  33. package/dist/components/Facebook-NS80Vk6j.esm.js +179 -0
  34. package/dist/components/FilePlayer-D-fc3B0E.esm.js +408 -0
  35. package/dist/components/FilePlayer-SyLt5qGX.js +410 -0
  36. package/dist/components/Kaltura-BTFxSMxP.js +178 -0
  37. package/dist/components/Kaltura-CmFIWSef.esm.js +176 -0
  38. package/dist/components/Mixcloud-CO5MsWUJ.esm.js +164 -0
  39. package/dist/components/Mixcloud-DHAfVpcc.js +166 -0
  40. package/dist/components/Mux-C8-HithD.esm.js +264 -0
  41. package/dist/components/Mux-bycDxP8G.js +266 -0
  42. package/dist/components/Preview-Clg3y6sj.esm.js +173 -0
  43. package/dist/components/Preview-CzpcknZI.js +175 -0
  44. package/dist/components/SoundCloud-Dz9DeIIM.js +183 -0
  45. package/dist/components/SoundCloud-LfWEBVy1.esm.js +181 -0
  46. package/dist/components/Streamable-BpcVhi4M.esm.js +174 -0
  47. package/dist/components/Streamable-Cs_c-7jS.js +176 -0
  48. package/dist/components/Twitch-BJ9aSIM2.esm.js +168 -0
  49. package/dist/components/Twitch-C9bksXF6.js +170 -0
  50. package/dist/components/VideoPlayer/PiPContext.d.ts +8 -0
  51. package/dist/components/VideoPlayer/PiPContext.js +149 -0
  52. package/dist/components/VideoPlayer/PiPContext.js.map +1 -0
  53. package/dist/components/VideoPlayer/PiPContext.types.d.ts +16 -0
  54. package/dist/components/VideoPlayer/PiPContext.types.js +2 -0
  55. package/dist/components/VideoPlayer/PiPContext.types.js.map +1 -0
  56. package/dist/components/VideoPlayer/usePiP.d.ts +2 -0
  57. package/dist/components/VideoPlayer/usePiP.js +10 -0
  58. package/dist/components/VideoPlayer/usePiP.js.map +1 -0
  59. package/dist/components/VideoPlayer/usePlayerControls.js +46 -64
  60. package/dist/components/VideoPlayer/usePlayerControls.js.map +1 -1
  61. package/dist/components/Vidyard-CsUFSBXh.js +174 -0
  62. package/dist/components/Vidyard-Dc8NHJ7p.esm.js +172 -0
  63. package/dist/components/Vimeo-CwlScNtK.esm.js +213 -0
  64. package/dist/components/Vimeo-D6C93592.js +215 -0
  65. package/dist/components/Wistia-Bxvdn3oO.js +190 -0
  66. package/dist/components/Wistia-Cwl4fNWW.esm.js +188 -0
  67. package/dist/components/YouTube-BF85SRPF.js +260 -0
  68. package/dist/components/YouTube-DKkYzN7-.esm.js +258 -0
  69. package/dist/components/components/CourseCard/CourseCard.styles.d.ts +1 -1
  70. package/dist/components/components/VideoPlayer/PiPContext.d.ts +8 -0
  71. package/dist/components/components/VideoPlayer/PiPContext.types.d.ts +16 -0
  72. package/dist/components/components/VideoPlayer/usePiP.d.ts +2 -0
  73. package/dist/components/components/index.d.ts +2 -0
  74. package/dist/components/{index-DetZ05pw.js → index-C08W0lXg.js} +157 -295
  75. package/dist/components/{index-DKAGRUEW.esm.js → index-F6zEoSWf.esm.js} +156 -296
  76. package/dist/components/index.d.ts +2 -0
  77. package/dist/components/index.esm.js +1 -1
  78. package/dist/components/index.js +2 -0
  79. package/dist/components/index.js.map +1 -1
  80. package/dist/icons/components/CourseCard/CourseCard.styles.d.ts +1 -1
  81. package/dist/icons/components/VideoPlayer/PiPContext.d.ts +8 -0
  82. package/dist/icons/components/VideoPlayer/PiPContext.types.d.ts +16 -0
  83. package/dist/icons/components/VideoPlayer/usePiP.d.ts +2 -0
  84. package/dist/icons/components/index.d.ts +2 -0
  85. package/dist/index-CcTTuhg8.esm.js +94920 -0
  86. package/dist/index-Dq4qpx9F.js +95142 -0
  87. package/dist/index.d.ts +2 -0
  88. package/dist/index.esm.js +3 -3
  89. package/dist/index.js +3 -0
  90. package/dist/index.js.map +1 -1
  91. package/package.json +1 -1
  92. package/dist/components/VideoPlayer/pipManager.d.ts +0 -60
  93. package/dist/components/VideoPlayer/pipManager.js +0 -272
  94. package/dist/components/VideoPlayer/pipManager.js.map +0 -1
  95. package/dist/components/components/VideoPlayer/pipManager.d.ts +0 -60
  96. package/dist/icons/components/VideoPlayer/pipManager.d.ts +0 -60
@@ -0,0 +1,258 @@
1
+ import { r as requireUtils, a as requirePatterns, g as getDefaultExportFromCjs } from './index-F6zEoSWf.esm.js';
2
+ import React__default from 'react';
3
+
4
+ function _mergeNamespaces(n, m) {
5
+ m.forEach(function (e) {
6
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
7
+ if (k !== 'default' && !(k in n)) {
8
+ var d = Object.getOwnPropertyDescriptor(e, k);
9
+ Object.defineProperty(n, k, d.get ? d : {
10
+ enumerable: true,
11
+ get: function () { return e[k]; }
12
+ });
13
+ }
14
+ });
15
+ });
16
+ return Object.freeze(n);
17
+ }
18
+
19
+ var YouTube_1;
20
+ var hasRequiredYouTube;
21
+
22
+ function requireYouTube () {
23
+ if (hasRequiredYouTube) return YouTube_1;
24
+ hasRequiredYouTube = 1;
25
+ var __create = Object.create;
26
+ var __defProp = Object.defineProperty;
27
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
28
+ var __getOwnPropNames = Object.getOwnPropertyNames;
29
+ var __getProtoOf = Object.getPrototypeOf;
30
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
31
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
32
+ var __export = (target, all) => {
33
+ for (var name in all)
34
+ __defProp(target, name, { get: all[name], enumerable: true });
35
+ };
36
+ var __copyProps = (to, from, except, desc) => {
37
+ if (from && typeof from === "object" || typeof from === "function") {
38
+ for (let key of __getOwnPropNames(from))
39
+ if (!__hasOwnProp.call(to, key) && key !== except)
40
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
41
+ }
42
+ return to;
43
+ };
44
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
45
+ // If the importer is in node compatibility mode or this is not an ESM
46
+ // file that has been converted to a CommonJS file using a Babel-
47
+ // compatible transform (i.e. "__esModule" has not been set), then set
48
+ // "default" to the CommonJS "module.exports" for node compatibility.
49
+ !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
50
+ mod
51
+ ));
52
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
53
+ var __publicField = (obj, key, value) => {
54
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
55
+ return value;
56
+ };
57
+ var YouTube_exports = {};
58
+ __export(YouTube_exports, {
59
+ default: () => YouTube
60
+ });
61
+ YouTube_1 = __toCommonJS(YouTube_exports);
62
+ var import_react = __toESM(React__default);
63
+ var import_utils = /*@__PURE__*/ requireUtils();
64
+ var import_patterns = /*@__PURE__*/ requirePatterns();
65
+ const SDK_URL = "https://www.youtube.com/iframe_api";
66
+ const SDK_GLOBAL = "YT";
67
+ const SDK_GLOBAL_READY = "onYouTubeIframeAPIReady";
68
+ const MATCH_PLAYLIST = /[?&](?:list|channel)=([a-zA-Z0-9_-]+)/;
69
+ const MATCH_USER_UPLOADS = /user\/([a-zA-Z0-9_-]+)\/?/;
70
+ const MATCH_NOCOOKIE = /youtube-nocookie\.com/;
71
+ const NOCOOKIE_HOST = "https://www.youtube-nocookie.com";
72
+ class YouTube extends import_react.Component {
73
+ constructor() {
74
+ super(...arguments);
75
+ __publicField(this, "callPlayer", import_utils.callPlayer);
76
+ __publicField(this, "parsePlaylist", (url) => {
77
+ if (url instanceof Array) {
78
+ return {
79
+ listType: "playlist",
80
+ playlist: url.map(this.getID).join(",")
81
+ };
82
+ }
83
+ if (MATCH_PLAYLIST.test(url)) {
84
+ const [, playlistId] = url.match(MATCH_PLAYLIST);
85
+ return {
86
+ listType: "playlist",
87
+ list: playlistId.replace(/^UC/, "UU")
88
+ };
89
+ }
90
+ if (MATCH_USER_UPLOADS.test(url)) {
91
+ const [, username] = url.match(MATCH_USER_UPLOADS);
92
+ return {
93
+ listType: "user_uploads",
94
+ list: username
95
+ };
96
+ }
97
+ return {};
98
+ });
99
+ __publicField(this, "onStateChange", (event) => {
100
+ const { data } = event;
101
+ const { onPlay, onPause, onBuffer, onBufferEnd, onEnded, onReady, loop, config: { playerVars, onUnstarted } } = this.props;
102
+ const { UNSTARTED, PLAYING, PAUSED, BUFFERING, ENDED, CUED } = window[SDK_GLOBAL].PlayerState;
103
+ if (data === UNSTARTED)
104
+ onUnstarted();
105
+ if (data === PLAYING) {
106
+ onPlay();
107
+ onBufferEnd();
108
+ }
109
+ if (data === PAUSED)
110
+ onPause();
111
+ if (data === BUFFERING)
112
+ onBuffer();
113
+ if (data === ENDED) {
114
+ const isPlaylist = !!this.callPlayer("getPlaylist");
115
+ if (loop && !isPlaylist) {
116
+ if (playerVars.start) {
117
+ this.seekTo(playerVars.start);
118
+ } else {
119
+ this.play();
120
+ }
121
+ }
122
+ onEnded();
123
+ }
124
+ if (data === CUED)
125
+ onReady();
126
+ });
127
+ __publicField(this, "mute", () => {
128
+ this.callPlayer("mute");
129
+ });
130
+ __publicField(this, "unmute", () => {
131
+ this.callPlayer("unMute");
132
+ });
133
+ __publicField(this, "ref", (container) => {
134
+ this.container = container;
135
+ });
136
+ }
137
+ componentDidMount() {
138
+ this.props.onMount && this.props.onMount(this);
139
+ }
140
+ getID(url) {
141
+ if (!url || url instanceof Array || MATCH_PLAYLIST.test(url)) {
142
+ return null;
143
+ }
144
+ return url.match(import_patterns.MATCH_URL_YOUTUBE)[1];
145
+ }
146
+ load(url, isReady) {
147
+ const { playing, muted, playsinline, controls, loop, config, onError } = this.props;
148
+ const { playerVars, embedOptions } = config;
149
+ const id = this.getID(url);
150
+ if (isReady) {
151
+ if (MATCH_PLAYLIST.test(url) || MATCH_USER_UPLOADS.test(url) || url instanceof Array) {
152
+ this.player.loadPlaylist(this.parsePlaylist(url));
153
+ return;
154
+ }
155
+ this.player.cueVideoById({
156
+ videoId: id,
157
+ startSeconds: (0, import_utils.parseStartTime)(url) || playerVars.start,
158
+ endSeconds: (0, import_utils.parseEndTime)(url) || playerVars.end
159
+ });
160
+ return;
161
+ }
162
+ (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY, (YT) => YT.loaded).then((YT) => {
163
+ if (!this.container)
164
+ return;
165
+ this.player = new YT.Player(this.container, {
166
+ width: "100%",
167
+ height: "100%",
168
+ videoId: id,
169
+ playerVars: {
170
+ autoplay: playing ? 1 : 0,
171
+ mute: muted ? 1 : 0,
172
+ controls: controls ? 1 : 0,
173
+ start: (0, import_utils.parseStartTime)(url),
174
+ end: (0, import_utils.parseEndTime)(url),
175
+ origin: window.location.origin,
176
+ playsinline: playsinline ? 1 : 0,
177
+ ...this.parsePlaylist(url),
178
+ ...playerVars
179
+ },
180
+ events: {
181
+ onReady: () => {
182
+ if (loop) {
183
+ this.player.setLoop(true);
184
+ }
185
+ this.props.onReady();
186
+ },
187
+ onPlaybackRateChange: (event) => this.props.onPlaybackRateChange(event.data),
188
+ onPlaybackQualityChange: (event) => this.props.onPlaybackQualityChange(event),
189
+ onStateChange: this.onStateChange,
190
+ onError: (event) => onError(event.data)
191
+ },
192
+ host: MATCH_NOCOOKIE.test(url) ? NOCOOKIE_HOST : void 0,
193
+ ...embedOptions
194
+ });
195
+ }, onError);
196
+ if (embedOptions.events) {
197
+ console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause");
198
+ }
199
+ }
200
+ play() {
201
+ this.callPlayer("playVideo");
202
+ }
203
+ pause() {
204
+ this.callPlayer("pauseVideo");
205
+ }
206
+ stop() {
207
+ if (!document.body.contains(this.callPlayer("getIframe")))
208
+ return;
209
+ this.callPlayer("stopVideo");
210
+ }
211
+ seekTo(amount, keepPlaying = false) {
212
+ this.callPlayer("seekTo", amount);
213
+ if (!keepPlaying && !this.props.playing) {
214
+ this.pause();
215
+ }
216
+ }
217
+ setVolume(fraction) {
218
+ this.callPlayer("setVolume", fraction * 100);
219
+ }
220
+ setPlaybackRate(rate) {
221
+ this.callPlayer("setPlaybackRate", rate);
222
+ }
223
+ setLoop(loop) {
224
+ this.callPlayer("setLoop", loop);
225
+ }
226
+ getDuration() {
227
+ return this.callPlayer("getDuration");
228
+ }
229
+ getCurrentTime() {
230
+ return this.callPlayer("getCurrentTime");
231
+ }
232
+ getSecondsLoaded() {
233
+ return this.callPlayer("getVideoLoadedFraction") * this.getDuration();
234
+ }
235
+ render() {
236
+ const { display } = this.props;
237
+ const style = {
238
+ width: "100%",
239
+ height: "100%",
240
+ display
241
+ };
242
+ return /* @__PURE__ */ import_react.default.createElement("div", { style }, /* @__PURE__ */ import_react.default.createElement("div", { ref: this.ref }));
243
+ }
244
+ }
245
+ __publicField(YouTube, "displayName", "YouTube");
246
+ __publicField(YouTube, "canPlay", import_patterns.canPlay.youtube);
247
+ return YouTube_1;
248
+ }
249
+
250
+ var YouTubeExports = /*@__PURE__*/ requireYouTube();
251
+ var YouTube = /*@__PURE__*/getDefaultExportFromCjs(YouTubeExports);
252
+
253
+ var YouTube$1 = /*#__PURE__*/_mergeNamespaces({
254
+ __proto__: null,
255
+ default: YouTube
256
+ }, [YouTubeExports]);
257
+
258
+ export { YouTube$1 as Y };
@@ -4,7 +4,7 @@ export declare const GridItemTitle: import("styled-components/dist/types").IStyl
4
4
  export declare const DeleteSpan: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
5
5
  export declare const DisabledTypography: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
6
6
  ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
7
- }, "children" | "className" | "p" | "zIndex" | "typography" | "style" | "color" | "height" | "width" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "align" | "bgcolor" | "border" | "classes" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "displayPrint" | "textOverflow" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "maxWidth" | "minWidth" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "lineHeight" | "textAlign" | "textTransform" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping">, never>> & string & Omit<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TypographyTypeMap<{}, "span">>, keyof import("react").Component<any, {}, any>>;
7
+ }, "children" | "className" | "p" | "style" | "color" | "height" | "width" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "align" | "bgcolor" | "border" | "classes" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "displayPrint" | "textOverflow" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "maxWidth" | "minWidth" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "lineHeight" | "textAlign" | "textTransform" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping">, never>> & string & Omit<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TypographyTypeMap<{}, "span">>, keyof import("react").Component<any, {}, any>>;
8
8
  export declare const ActionConfig: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
9
9
  disabled?: boolean;
10
10
  $hoverColor?: string;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { PiPContextType } from './PiPContext.types';
3
+ export declare const PiPContext: React.Context<PiPContextType | undefined>;
4
+ interface PiPProviderProps {
5
+ children: React.ReactNode;
6
+ }
7
+ export declare const PiPProvider: React.FC<PiPProviderProps>;
8
+ export {};
@@ -0,0 +1,16 @@
1
+ export interface PiPVideoState {
2
+ url: string;
3
+ currentTime: number;
4
+ isPlaying: boolean;
5
+ volume: number;
6
+ muted: boolean;
7
+ }
8
+ export interface PiPContextType {
9
+ isPiPActive: boolean;
10
+ pipVideoState: PiPVideoState | null;
11
+ enterPiP: (videoElement: HTMLVideoElement, videoState: PiPVideoState) => Promise<boolean>;
12
+ exitPiP: () => Promise<boolean>;
13
+ updateVideoState: (state: Partial<PiPVideoState>) => void;
14
+ registerVideoElement: (element: HTMLVideoElement) => void;
15
+ unregisterVideoElement: () => void;
16
+ }
@@ -0,0 +1,2 @@
1
+ import { PiPContextType } from './PiPContext.types';
2
+ export declare const usePiP: () => PiPContextType;
@@ -19,6 +19,8 @@ export { Badge } from './Badge';
19
19
  export { TooltipHeight } from './Tooltip';
20
20
  export { CustomTooltip } from './Tooltip';
21
21
  export { VideoPlayer } from './VideoPlayer';
22
+ export { PiPProvider } from './VideoPlayer/PiPContext';
23
+ export { usePiP } from './VideoPlayer/usePiP';
22
24
  export { SplashScreen } from './SplashScreen';
23
25
  export { AudioPlayer } from './AudioPlayer';
24
26
  export { ColumnNavigation } from './ColumnNavigation';