suada-components 1.9.0 → 1.9.1
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/{components/DailyMotion-B7yDPBbg.js → DailyMotion-B-Q4fBEb.js} +1 -1
- package/dist/{components/DailyMotion-BmnymjR1.esm.js → DailyMotion-BAvo3Toe.esm.js} +1 -1
- package/dist/{components/Facebook-D9Ak6ZJU.esm.js → Facebook-C8GOujDt.esm.js} +1 -1
- package/dist/{components/Facebook-42iqQU2G.js → Facebook-CASik-P5.js} +1 -1
- package/dist/{components/FilePlayer-wg9lyafD.esm.js → FilePlayer-BOZIvaDy.esm.js} +1 -1
- package/dist/{components/FilePlayer-CAnHK0Cd.js → FilePlayer-CQ80KWY2.js} +1 -1
- package/dist/{components/Kaltura-DPaEN-dq.esm.js → Kaltura-B12Xdl6X.esm.js} +1 -1
- package/dist/{components/Kaltura-Ct6kwbgP.js → Kaltura-nYc5k7UB.js} +1 -1
- package/dist/{components/Mixcloud-sBbcL5rG.js → Mixcloud-DGQnlDAK.js} +1 -1
- package/dist/{components/Mixcloud-BobSN3YI.esm.js → Mixcloud-JfeQIOki.esm.js} +1 -1
- package/dist/{components/Mux-B9YP-rFr.esm.js → Mux-BHWzpAR-.esm.js} +1 -1
- package/dist/{components/Mux-Cosy8sFO.js → Mux-CiKZc8gj.js} +1 -1
- package/dist/{components/Preview-XcTlhHT1.esm.js → Preview-DSovY9gr.esm.js} +1 -1
- package/dist/{components/Preview-DiVfo6aa.js → Preview-DvZKrgm5.js} +1 -1
- package/dist/{components/SoundCloud-CIWqB-QW.js → SoundCloud-Di7z3nmP.js} +1 -1
- package/dist/{components/SoundCloud-BTHoyFWT.esm.js → SoundCloud-j_R0lK8D.esm.js} +1 -1
- package/dist/{components/Streamable-DsfQCy3p.esm.js → Streamable-CRhXZIKP.esm.js} +1 -1
- package/dist/{components/Streamable-9anYiQtU.js → Streamable-CV1mgzRv.js} +1 -1
- package/dist/{components/Twitch-D1BOr8hj.esm.js → Twitch-6icfp-ZE.esm.js} +1 -1
- package/dist/{components/Twitch-Dud6e1Rv.js → Twitch-Dj66vkCD.js} +1 -1
- package/dist/{components/Vidyard-C1csjpQH.esm.js → Vidyard--KX47pZ0.esm.js} +1 -1
- package/dist/{components/Vidyard-BuOu85uS.js → Vidyard-B-qmApe9.js} +1 -1
- package/dist/{components/Vimeo-CHlHIswX.esm.js → Vimeo-Ba9C6utC.esm.js} +1 -1
- package/dist/{components/Vimeo-DrDJ5O9H.js → Vimeo-DePzl7Sn.js} +1 -1
- package/dist/{components/Wistia-fh9U2CA2.js → Wistia-CXYB3Yus.js} +1 -1
- package/dist/{components/Wistia-D-eYyONb.esm.js → Wistia-DWJcdcY2.esm.js} +1 -1
- package/dist/{components/YouTube-CmnnzZvk.esm.js → YouTube-DdBVPxzz.esm.js} +1 -1
- package/dist/{components/YouTube-DC2uZ14c.js → YouTube-vwMoW93C.js} +1 -1
- package/dist/components/CourseCard/CourseCard.styles.d.ts +1 -1
- package/dist/components/DailyMotion-Cr_8IZRR.js +180 -0
- package/dist/components/DailyMotion-D2n1NDDi.esm.js +178 -0
- package/dist/components/Facebook-CDrTA2_L.esm.js +179 -0
- package/dist/components/Facebook-YxZce26V.js +181 -0
- package/dist/components/FilePlayer-BzkVMbQ8.esm.js +408 -0
- package/dist/components/FilePlayer-DqqTufgX.js +410 -0
- package/dist/components/Kaltura-B0UZLr6g.esm.js +176 -0
- package/dist/components/Kaltura-krSxvIBr.js +178 -0
- package/dist/components/Mixcloud-BCT5e47d.js +166 -0
- package/dist/components/Mixcloud-D9qk3D6i.esm.js +164 -0
- package/dist/components/Mux-BZleoaJh.esm.js +264 -0
- package/dist/components/Mux-D_si09u2.js +266 -0
- package/dist/components/Preview-CmduMeEZ.js +175 -0
- package/dist/components/Preview-DQLbQ8_C.esm.js +173 -0
- package/dist/components/SoundCloud-BHgTfaW7.js +183 -0
- package/dist/components/SoundCloud-BgnX8kOF.esm.js +181 -0
- package/dist/components/Streamable-DTAzjVwd.js +176 -0
- package/dist/components/Streamable-DbRbUflP.esm.js +174 -0
- package/dist/components/Twitch-CXOhay4a.esm.js +168 -0
- package/dist/components/Twitch-CnEk-l9R.js +170 -0
- package/dist/components/VideoPlayer/PiPContext.d.ts +8 -0
- package/dist/components/VideoPlayer/PiPContext.js +149 -0
- package/dist/components/VideoPlayer/PiPContext.js.map +1 -0
- package/dist/components/VideoPlayer/PiPContext.types.d.ts +16 -0
- package/dist/components/VideoPlayer/PiPContext.types.js +2 -0
- package/dist/components/VideoPlayer/PiPContext.types.js.map +1 -0
- package/dist/components/VideoPlayer/usePiP.d.ts +2 -0
- package/dist/components/VideoPlayer/usePiP.js +10 -0
- package/dist/components/VideoPlayer/usePiP.js.map +1 -0
- package/dist/components/VideoPlayer/usePlayerControls.js +12 -40
- package/dist/components/VideoPlayer/usePlayerControls.js.map +1 -1
- package/dist/components/Vidyard-Cn_LcGwi.js +174 -0
- package/dist/components/Vidyard-YcZH6kkW.esm.js +172 -0
- package/dist/components/Vimeo-BUVxWt7t.js +215 -0
- package/dist/components/Vimeo-Cv0qx3aR.esm.js +213 -0
- package/dist/components/Wistia-COWrV8QC.js +190 -0
- package/dist/components/Wistia-PneZ48dn.esm.js +188 -0
- package/dist/components/YouTube-BUyvzJQw.esm.js +258 -0
- package/dist/components/YouTube-DeQdfkWm.js +260 -0
- package/dist/components/components/CourseCard/CourseCard.styles.d.ts +1 -1
- package/dist/components/components/VideoPlayer/PiPContext.d.ts +8 -0
- package/dist/components/components/VideoPlayer/PiPContext.types.d.ts +16 -0
- package/dist/components/components/VideoPlayer/usePiP.d.ts +2 -0
- package/dist/components/components/index.d.ts +2 -0
- package/dist/components/{index-DetZ05pw.js → index-Bs-XxxV4.js} +153 -304
- package/dist/components/{index-DKAGRUEW.esm.js → index-C4Mk2H3N.esm.js} +152 -305
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.esm.js +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/icons/components/CourseCard/CourseCard.styles.d.ts +1 -1
- package/dist/icons/components/VideoPlayer/PiPContext.d.ts +8 -0
- package/dist/icons/components/VideoPlayer/PiPContext.types.d.ts +16 -0
- package/dist/icons/components/VideoPlayer/usePiP.d.ts +2 -0
- package/dist/icons/components/index.d.ts +2 -0
- package/dist/index-Bp-idbg5.esm.js +94907 -0
- package/dist/index-CSj9NYxJ.js +95129 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +3 -3
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/VideoPlayer/pipManager.d.ts +0 -60
- package/dist/components/VideoPlayer/pipManager.js +0 -272
- package/dist/components/VideoPlayer/pipManager.js.map +0 -1
- package/dist/components/components/VideoPlayer/pipManager.d.ts +0 -60
- package/dist/icons/components/VideoPlayer/pipManager.d.ts +0 -60
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-Bs-XxxV4.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
|
|
6
|
+
function _mergeNamespaces(n, m) {
|
|
7
|
+
m.forEach(function (e) {
|
|
8
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
9
|
+
if (k !== 'default' && !(k in n)) {
|
|
10
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return e[k]; }
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
return Object.freeze(n);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
var YouTube_1;
|
|
22
|
+
var hasRequiredYouTube;
|
|
23
|
+
|
|
24
|
+
function requireYouTube () {
|
|
25
|
+
if (hasRequiredYouTube) return YouTube_1;
|
|
26
|
+
hasRequiredYouTube = 1;
|
|
27
|
+
var __create = Object.create;
|
|
28
|
+
var __defProp = Object.defineProperty;
|
|
29
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
30
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
31
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
32
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
33
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34
|
+
var __export = (target, all) => {
|
|
35
|
+
for (var name in all)
|
|
36
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
37
|
+
};
|
|
38
|
+
var __copyProps = (to, from, except, desc) => {
|
|
39
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
40
|
+
for (let key of __getOwnPropNames(from))
|
|
41
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
42
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
43
|
+
}
|
|
44
|
+
return to;
|
|
45
|
+
};
|
|
46
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
47
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
48
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
49
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
50
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
51
|
+
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
52
|
+
mod
|
|
53
|
+
));
|
|
54
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
55
|
+
var __publicField = (obj, key, value) => {
|
|
56
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
57
|
+
return value;
|
|
58
|
+
};
|
|
59
|
+
var YouTube_exports = {};
|
|
60
|
+
__export(YouTube_exports, {
|
|
61
|
+
default: () => YouTube
|
|
62
|
+
});
|
|
63
|
+
YouTube_1 = __toCommonJS(YouTube_exports);
|
|
64
|
+
var import_react = __toESM(React);
|
|
65
|
+
var import_utils = /*@__PURE__*/ index.requireUtils();
|
|
66
|
+
var import_patterns = /*@__PURE__*/ index.requirePatterns();
|
|
67
|
+
const SDK_URL = "https://www.youtube.com/iframe_api";
|
|
68
|
+
const SDK_GLOBAL = "YT";
|
|
69
|
+
const SDK_GLOBAL_READY = "onYouTubeIframeAPIReady";
|
|
70
|
+
const MATCH_PLAYLIST = /[?&](?:list|channel)=([a-zA-Z0-9_-]+)/;
|
|
71
|
+
const MATCH_USER_UPLOADS = /user\/([a-zA-Z0-9_-]+)\/?/;
|
|
72
|
+
const MATCH_NOCOOKIE = /youtube-nocookie\.com/;
|
|
73
|
+
const NOCOOKIE_HOST = "https://www.youtube-nocookie.com";
|
|
74
|
+
class YouTube extends import_react.Component {
|
|
75
|
+
constructor() {
|
|
76
|
+
super(...arguments);
|
|
77
|
+
__publicField(this, "callPlayer", import_utils.callPlayer);
|
|
78
|
+
__publicField(this, "parsePlaylist", (url) => {
|
|
79
|
+
if (url instanceof Array) {
|
|
80
|
+
return {
|
|
81
|
+
listType: "playlist",
|
|
82
|
+
playlist: url.map(this.getID).join(",")
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
if (MATCH_PLAYLIST.test(url)) {
|
|
86
|
+
const [, playlistId] = url.match(MATCH_PLAYLIST);
|
|
87
|
+
return {
|
|
88
|
+
listType: "playlist",
|
|
89
|
+
list: playlistId.replace(/^UC/, "UU")
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
if (MATCH_USER_UPLOADS.test(url)) {
|
|
93
|
+
const [, username] = url.match(MATCH_USER_UPLOADS);
|
|
94
|
+
return {
|
|
95
|
+
listType: "user_uploads",
|
|
96
|
+
list: username
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
return {};
|
|
100
|
+
});
|
|
101
|
+
__publicField(this, "onStateChange", (event) => {
|
|
102
|
+
const { data } = event;
|
|
103
|
+
const { onPlay, onPause, onBuffer, onBufferEnd, onEnded, onReady, loop, config: { playerVars, onUnstarted } } = this.props;
|
|
104
|
+
const { UNSTARTED, PLAYING, PAUSED, BUFFERING, ENDED, CUED } = window[SDK_GLOBAL].PlayerState;
|
|
105
|
+
if (data === UNSTARTED)
|
|
106
|
+
onUnstarted();
|
|
107
|
+
if (data === PLAYING) {
|
|
108
|
+
onPlay();
|
|
109
|
+
onBufferEnd();
|
|
110
|
+
}
|
|
111
|
+
if (data === PAUSED)
|
|
112
|
+
onPause();
|
|
113
|
+
if (data === BUFFERING)
|
|
114
|
+
onBuffer();
|
|
115
|
+
if (data === ENDED) {
|
|
116
|
+
const isPlaylist = !!this.callPlayer("getPlaylist");
|
|
117
|
+
if (loop && !isPlaylist) {
|
|
118
|
+
if (playerVars.start) {
|
|
119
|
+
this.seekTo(playerVars.start);
|
|
120
|
+
} else {
|
|
121
|
+
this.play();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
onEnded();
|
|
125
|
+
}
|
|
126
|
+
if (data === CUED)
|
|
127
|
+
onReady();
|
|
128
|
+
});
|
|
129
|
+
__publicField(this, "mute", () => {
|
|
130
|
+
this.callPlayer("mute");
|
|
131
|
+
});
|
|
132
|
+
__publicField(this, "unmute", () => {
|
|
133
|
+
this.callPlayer("unMute");
|
|
134
|
+
});
|
|
135
|
+
__publicField(this, "ref", (container) => {
|
|
136
|
+
this.container = container;
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
componentDidMount() {
|
|
140
|
+
this.props.onMount && this.props.onMount(this);
|
|
141
|
+
}
|
|
142
|
+
getID(url) {
|
|
143
|
+
if (!url || url instanceof Array || MATCH_PLAYLIST.test(url)) {
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
return url.match(import_patterns.MATCH_URL_YOUTUBE)[1];
|
|
147
|
+
}
|
|
148
|
+
load(url, isReady) {
|
|
149
|
+
const { playing, muted, playsinline, controls, loop, config, onError } = this.props;
|
|
150
|
+
const { playerVars, embedOptions } = config;
|
|
151
|
+
const id = this.getID(url);
|
|
152
|
+
if (isReady) {
|
|
153
|
+
if (MATCH_PLAYLIST.test(url) || MATCH_USER_UPLOADS.test(url) || url instanceof Array) {
|
|
154
|
+
this.player.loadPlaylist(this.parsePlaylist(url));
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
this.player.cueVideoById({
|
|
158
|
+
videoId: id,
|
|
159
|
+
startSeconds: (0, import_utils.parseStartTime)(url) || playerVars.start,
|
|
160
|
+
endSeconds: (0, import_utils.parseEndTime)(url) || playerVars.end
|
|
161
|
+
});
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY, (YT) => YT.loaded).then((YT) => {
|
|
165
|
+
if (!this.container)
|
|
166
|
+
return;
|
|
167
|
+
this.player = new YT.Player(this.container, {
|
|
168
|
+
width: "100%",
|
|
169
|
+
height: "100%",
|
|
170
|
+
videoId: id,
|
|
171
|
+
playerVars: {
|
|
172
|
+
autoplay: playing ? 1 : 0,
|
|
173
|
+
mute: muted ? 1 : 0,
|
|
174
|
+
controls: controls ? 1 : 0,
|
|
175
|
+
start: (0, import_utils.parseStartTime)(url),
|
|
176
|
+
end: (0, import_utils.parseEndTime)(url),
|
|
177
|
+
origin: window.location.origin,
|
|
178
|
+
playsinline: playsinline ? 1 : 0,
|
|
179
|
+
...this.parsePlaylist(url),
|
|
180
|
+
...playerVars
|
|
181
|
+
},
|
|
182
|
+
events: {
|
|
183
|
+
onReady: () => {
|
|
184
|
+
if (loop) {
|
|
185
|
+
this.player.setLoop(true);
|
|
186
|
+
}
|
|
187
|
+
this.props.onReady();
|
|
188
|
+
},
|
|
189
|
+
onPlaybackRateChange: (event) => this.props.onPlaybackRateChange(event.data),
|
|
190
|
+
onPlaybackQualityChange: (event) => this.props.onPlaybackQualityChange(event),
|
|
191
|
+
onStateChange: this.onStateChange,
|
|
192
|
+
onError: (event) => onError(event.data)
|
|
193
|
+
},
|
|
194
|
+
host: MATCH_NOCOOKIE.test(url) ? NOCOOKIE_HOST : void 0,
|
|
195
|
+
...embedOptions
|
|
196
|
+
});
|
|
197
|
+
}, onError);
|
|
198
|
+
if (embedOptions.events) {
|
|
199
|
+
console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause");
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
play() {
|
|
203
|
+
this.callPlayer("playVideo");
|
|
204
|
+
}
|
|
205
|
+
pause() {
|
|
206
|
+
this.callPlayer("pauseVideo");
|
|
207
|
+
}
|
|
208
|
+
stop() {
|
|
209
|
+
if (!document.body.contains(this.callPlayer("getIframe")))
|
|
210
|
+
return;
|
|
211
|
+
this.callPlayer("stopVideo");
|
|
212
|
+
}
|
|
213
|
+
seekTo(amount, keepPlaying = false) {
|
|
214
|
+
this.callPlayer("seekTo", amount);
|
|
215
|
+
if (!keepPlaying && !this.props.playing) {
|
|
216
|
+
this.pause();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
setVolume(fraction) {
|
|
220
|
+
this.callPlayer("setVolume", fraction * 100);
|
|
221
|
+
}
|
|
222
|
+
setPlaybackRate(rate) {
|
|
223
|
+
this.callPlayer("setPlaybackRate", rate);
|
|
224
|
+
}
|
|
225
|
+
setLoop(loop) {
|
|
226
|
+
this.callPlayer("setLoop", loop);
|
|
227
|
+
}
|
|
228
|
+
getDuration() {
|
|
229
|
+
return this.callPlayer("getDuration");
|
|
230
|
+
}
|
|
231
|
+
getCurrentTime() {
|
|
232
|
+
return this.callPlayer("getCurrentTime");
|
|
233
|
+
}
|
|
234
|
+
getSecondsLoaded() {
|
|
235
|
+
return this.callPlayer("getVideoLoadedFraction") * this.getDuration();
|
|
236
|
+
}
|
|
237
|
+
render() {
|
|
238
|
+
const { display } = this.props;
|
|
239
|
+
const style = {
|
|
240
|
+
width: "100%",
|
|
241
|
+
height: "100%",
|
|
242
|
+
display
|
|
243
|
+
};
|
|
244
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style }, /* @__PURE__ */ import_react.default.createElement("div", { ref: this.ref }));
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
__publicField(YouTube, "displayName", "YouTube");
|
|
248
|
+
__publicField(YouTube, "canPlay", import_patterns.canPlay.youtube);
|
|
249
|
+
return YouTube_1;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
var YouTubeExports = /*@__PURE__*/ requireYouTube();
|
|
253
|
+
var YouTube = /*@__PURE__*/index.getDefaultExportFromCjs(YouTubeExports);
|
|
254
|
+
|
|
255
|
+
var YouTube$1 = /*#__PURE__*/_mergeNamespaces({
|
|
256
|
+
__proto__: null,
|
|
257
|
+
default: YouTube
|
|
258
|
+
}, [YouTubeExports]);
|
|
259
|
+
|
|
260
|
+
exports.YouTube = YouTube$1;
|
|
@@ -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" | "
|
|
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
|
+
}
|
|
@@ -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';
|