@zync/zync-screnplay-player 0.1.209 → 0.1.211
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/bundle.js +1 -1
- package/dist/screenplay/RemotionRenderer/RemotionRenderer.js +18 -16
- package/dist/screenplay/RemotionRenderer/components/effects/Nametag.js +11 -2
- package/dist/screenplay/RemotionRenderer/components/effects/Title.js +11 -2
- package/dist/screenplay/RemotionRenderer/components/layouts/CreatorCollabColdOpen.js +14 -761
- package/dist/screenplay/RemotionRenderer/components/layouts/CreatorCollabColdOpenVisual.js +786 -0
- package/dist/screenplay/RemotionRenderer/development.js +24 -1
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/CreatorCollabSplitLayout.js +2 -39
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/creatorCollabProps.js +84 -0
- package/dist/screenplay/RemotionRenderer/main/screenplaySchema.js +1 -1
- package/dist/screenplay/RemotionRenderer/theme/hooks/useThemedComponents.js +6 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/collabintro/Nametag.js +14 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/collabintro/Title.js +19 -0
- package/package.json +1 -1
|
@@ -337,7 +337,30 @@ var renderer = new RemotionRenderer({
|
|
|
337
337
|
}]
|
|
338
338
|
}, {
|
|
339
339
|
type: "effect",
|
|
340
|
-
segments: [
|
|
340
|
+
segments: [{
|
|
341
|
+
type: "title",
|
|
342
|
+
theme: "collabintro",
|
|
343
|
+
data: {
|
|
344
|
+
offset: 0,
|
|
345
|
+
duration: 5,
|
|
346
|
+
text: "Rafal Bagrowski: Video Test",
|
|
347
|
+
secondVideoFile: "https://stream.mux.com/FNnPyiymEzcjTW1BhsKLJZaPF7mh4BEOlxCOuqxRn500/highest.mp4",
|
|
348
|
+
startSecondVideoFrom: 0,
|
|
349
|
+
collaboratorName: "rafal test",
|
|
350
|
+
activeSpeaker: "creator"
|
|
351
|
+
}
|
|
352
|
+
}, {
|
|
353
|
+
type: "nametag",
|
|
354
|
+
theme: "collabintro",
|
|
355
|
+
data: {
|
|
356
|
+
offset: 1.1,
|
|
357
|
+
duration: 6.0,
|
|
358
|
+
fullName: "Rafal Bagrowski",
|
|
359
|
+
title: "test",
|
|
360
|
+
activeSpeaker: "creator",
|
|
361
|
+
showChrome: false
|
|
362
|
+
}
|
|
363
|
+
}]
|
|
341
364
|
}, {
|
|
342
365
|
type: "caption",
|
|
343
366
|
segments: []
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
5
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
7
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
8
2
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
9
3
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
10
4
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -18,8 +12,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
18
12
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
19
13
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
20
14
|
import { Layout } from "./DefaultLayout.js";
|
|
21
|
-
import {
|
|
22
|
-
import { cleanFacemetadata } from "../../../helpers/cleanFacemetadata";
|
|
15
|
+
import { getCreatorCollabLayoutProps } from "./creatorCollabProps.js";
|
|
23
16
|
export var CreatorCollabSplitLayout = /*#__PURE__*/function (_Layout) {
|
|
24
17
|
function CreatorCollabSplitLayout(props) {
|
|
25
18
|
var _this;
|
|
@@ -32,37 +25,7 @@ export var CreatorCollabSplitLayout = /*#__PURE__*/function (_Layout) {
|
|
|
32
25
|
return _createClass(CreatorCollabSplitLayout, [{
|
|
33
26
|
key: "getVideoProps",
|
|
34
27
|
value: function getVideoProps(props) {
|
|
35
|
-
|
|
36
|
-
var sourceVideoOrientation = getVideoOrientation((_props$data$sourceVid = props.data.sourceVideo) === null || _props$data$sourceVid === void 0 ? void 0 : _props$data$sourceVid.aspectRatio);
|
|
37
|
-
var coerceBool = function coerceBool(value) {
|
|
38
|
-
return value === true || value === "true" || value === 1 || value === "1";
|
|
39
|
-
};
|
|
40
|
-
var coerceEffects = function coerceEffects(effects) {
|
|
41
|
-
if (!effects) return effects;
|
|
42
|
-
return Object.entries(effects).reduce(function (acc, _ref) {
|
|
43
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
44
|
-
key = _ref2[0],
|
|
45
|
-
value = _ref2[1];
|
|
46
|
-
acc[key] = coerceBool(value);
|
|
47
|
-
return acc;
|
|
48
|
-
}, {});
|
|
49
|
-
};
|
|
50
|
-
this.props = {
|
|
51
|
-
firstVideoFile: (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.firstVideoFile,
|
|
52
|
-
firstNoBackgroundVideoUrl: (_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : (_props$data2$firstNoB = _props$data2.firstNoBackgroundVideo) === null || _props$data2$firstNoB === void 0 ? void 0 : _props$data2$firstNoB.videoUrl,
|
|
53
|
-
firstNoBackgroundFaceMetadata: cleanFacemetadata((_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : (_props$data3$firstNoB = _props$data3.firstNoBackgroundVideo) === null || _props$data3$firstNoB === void 0 ? void 0 : _props$data3$firstNoB.faceMetadata),
|
|
54
|
-
startSecondVideoFrom: 0,
|
|
55
|
-
secondVideoFile: (_props$data4 = props.data) === null || _props$data4 === void 0 ? void 0 : _props$data4.secondVideoFile,
|
|
56
|
-
text: (_props$data5 = props.data) === null || _props$data5 === void 0 ? void 0 : _props$data5.text,
|
|
57
|
-
fullName: (_props$data6 = props.data) === null || _props$data6 === void 0 ? void 0 : _props$data6.fullName,
|
|
58
|
-
title: (_props$data7 = props.data) === null || _props$data7 === void 0 ? void 0 : _props$data7.title,
|
|
59
|
-
collaboratorName: (_props$data8 = props.data) === null || _props$data8 === void 0 ? void 0 : _props$data8.collaboratorName,
|
|
60
|
-
collaboratorTitle: (_props$data9 = props.data) === null || _props$data9 === void 0 ? void 0 : _props$data9.collaboratorTitle,
|
|
61
|
-
topicLabel: (_props$data10 = props.data) === null || _props$data10 === void 0 ? void 0 : _props$data10.topicLabel,
|
|
62
|
-
activeSpeaker: (_props$data11 = props.data) === null || _props$data11 === void 0 ? void 0 : _props$data11.activeSpeaker,
|
|
63
|
-
noBackgroundVideoEffects: coerceEffects((_props$data12 = props.data) === null || _props$data12 === void 0 ? void 0 : _props$data12.noBackgroundVideoEffects),
|
|
64
|
-
sourceVideoOrientation: sourceVideoOrientation
|
|
65
|
-
};
|
|
28
|
+
this.props = getCreatorCollabLayoutProps(props.data, this.fps);
|
|
66
29
|
}
|
|
67
30
|
}]);
|
|
68
31
|
}(Layout);
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
+
import { toFrames } from '../Sequence.js';
|
|
8
|
+
import { getVideoOrientation } from '../../../helpers/getVideoOrientation.js';
|
|
9
|
+
import { cleanFacemetadata } from '../../../helpers/cleanFacemetadata';
|
|
10
|
+
var coerceBool = function coerceBool(value) {
|
|
11
|
+
return value === true || value === 'true' || value === 1 || value === '1';
|
|
12
|
+
};
|
|
13
|
+
var coerceEffects = function coerceEffects(effects) {
|
|
14
|
+
if (!effects) return effects;
|
|
15
|
+
return Object.entries(effects).reduce(function (acc, _ref) {
|
|
16
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
17
|
+
key = _ref2[0],
|
|
18
|
+
value = _ref2[1];
|
|
19
|
+
acc[key] = coerceBool(value);
|
|
20
|
+
return acc;
|
|
21
|
+
}, {});
|
|
22
|
+
};
|
|
23
|
+
export var getCreatorCollabLayoutProps = function getCreatorCollabLayoutProps(data, fps) {
|
|
24
|
+
var _data$sourceVideo, _data$firstNoBackgrou, _data$firstNoBackgrou2, _data$sourceVideo2, _data$sourceVideo3, _data$sourceVideo4;
|
|
25
|
+
if (!data) {
|
|
26
|
+
return {};
|
|
27
|
+
}
|
|
28
|
+
var trimLeft = (data === null || data === void 0 ? void 0 : data.trimLeft) || 0;
|
|
29
|
+
var sourceVideoOrientation = data !== null && data !== void 0 && (_data$sourceVideo = data.sourceVideo) !== null && _data$sourceVideo !== void 0 && _data$sourceVideo.aspectRatio ? getVideoOrientation(data.sourceVideo.aspectRatio) : undefined;
|
|
30
|
+
return {
|
|
31
|
+
firstVideoFile: data === null || data === void 0 ? void 0 : data.firstVideoFile,
|
|
32
|
+
firstNoBackgroundVideoUrl: data === null || data === void 0 ? void 0 : (_data$firstNoBackgrou = data.firstNoBackgroundVideo) === null || _data$firstNoBackgrou === void 0 ? void 0 : _data$firstNoBackgrou.videoUrl,
|
|
33
|
+
firstNoBackgroundFaceMetadata: cleanFacemetadata(data === null || data === void 0 ? void 0 : (_data$firstNoBackgrou2 = data.firstNoBackgroundVideo) === null || _data$firstNoBackgrou2 === void 0 ? void 0 : _data$firstNoBackgrou2.faceMetadata),
|
|
34
|
+
startSecondVideoFrom: toFrames(fps * ((data === null || data === void 0 ? void 0 : data.startSecondVideoFrom) || 0), true) || 0,
|
|
35
|
+
secondVideoFile: data === null || data === void 0 ? void 0 : data.secondVideoFile,
|
|
36
|
+
text: data === null || data === void 0 ? void 0 : data.text,
|
|
37
|
+
fullName: data === null || data === void 0 ? void 0 : data.fullName,
|
|
38
|
+
name: data === null || data === void 0 ? void 0 : data.fullName,
|
|
39
|
+
title: data === null || data === void 0 ? void 0 : data.title,
|
|
40
|
+
collaboratorName: data === null || data === void 0 ? void 0 : data.collaboratorName,
|
|
41
|
+
collaboratorTitle: data === null || data === void 0 ? void 0 : data.collaboratorTitle,
|
|
42
|
+
topicLabel: data === null || data === void 0 ? void 0 : data.topicLabel,
|
|
43
|
+
activeSpeaker: data === null || data === void 0 ? void 0 : data.activeSpeaker,
|
|
44
|
+
noBackgroundVideoEffects: coerceEffects(data === null || data === void 0 ? void 0 : data.noBackgroundVideoEffects),
|
|
45
|
+
sourceVideoOrientation: sourceVideoOrientation,
|
|
46
|
+
startVideoFrom: toFrames(fps * (((data === null || data === void 0 ? void 0 : (_data$sourceVideo2 = data.sourceVideo) === null || _data$sourceVideo2 === void 0 ? void 0 : _data$sourceVideo2.start) || 0) + trimLeft), true) || 0,
|
|
47
|
+
videoUrl: data === null || data === void 0 ? void 0 : (_data$sourceVideo3 = data.sourceVideo) === null || _data$sourceVideo3 === void 0 ? void 0 : _data$sourceVideo3.videoUrl,
|
|
48
|
+
videoZoom: data === null || data === void 0 ? void 0 : (_data$sourceVideo4 = data.sourceVideo) === null || _data$sourceVideo4 === void 0 ? void 0 : _data$sourceVideo4.zoom
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export var getCreatorCollabEffectProps = function getCreatorCollabEffectProps() {
|
|
52
|
+
var _ref3, _effectData$firstVide, _effectData$sourceVid, _effectData$firstNoBa, _effectData$firstNoBa2, _effectData$firstNoBa3, _effectData$firstNoBa4, _effectData$startVide, _effectData$sourceVid2, _effectData$videoUrl, _effectData$sourceVid3, _effectData$videoZoom, _effectData$sourceVid4, _effectData$text, _ref4, _ref5, _effectData$fullName, _ref6, _ref7, _effectData$name, _effectData$title, _effectData$collabora, _effectData$collabora2, _effectData$topicLabe, _effectData$activeSpe, _effectData$secondVid, _effectData$startSeco, _effectData$sourceVid5;
|
|
53
|
+
var effectData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
54
|
+
var layoutData = arguments.length > 1 ? arguments[1] : undefined;
|
|
55
|
+
var fps = arguments.length > 2 ? arguments[2] : undefined;
|
|
56
|
+
var layoutProps = getCreatorCollabLayoutProps(layoutData, fps);
|
|
57
|
+
var effectFirstVideoFile = (_ref3 = (_effectData$firstVide = effectData.firstVideoFile) !== null && _effectData$firstVide !== void 0 ? _effectData$firstVide : effectData.videoUrl) !== null && _ref3 !== void 0 ? _ref3 : (_effectData$sourceVid = effectData.sourceVideo) === null || _effectData$sourceVid === void 0 ? void 0 : _effectData$sourceVid.videoUrl;
|
|
58
|
+
var effectFirstNoBackgroundVideoUrl = (_effectData$firstNoBa = effectData.firstNoBackgroundVideoUrl) !== null && _effectData$firstNoBa !== void 0 ? _effectData$firstNoBa : (_effectData$firstNoBa2 = effectData.firstNoBackgroundVideo) === null || _effectData$firstNoBa2 === void 0 ? void 0 : _effectData$firstNoBa2.videoUrl;
|
|
59
|
+
var effectFirstNoBackgroundFaceMetadata = (_effectData$firstNoBa3 = effectData.firstNoBackgroundFaceMetadata) !== null && _effectData$firstNoBa3 !== void 0 ? _effectData$firstNoBa3 : cleanFacemetadata((_effectData$firstNoBa4 = effectData.firstNoBackgroundVideo) === null || _effectData$firstNoBa4 === void 0 ? void 0 : _effectData$firstNoBa4.faceMetadata);
|
|
60
|
+
var effectNoBackgroundVideoEffects = effectData.noBackgroundVideoEffects ? coerceEffects(effectData.noBackgroundVideoEffects) : undefined;
|
|
61
|
+
var effectStartVideoFrom = (_effectData$startVide = effectData.startVideoFrom) !== null && _effectData$startVide !== void 0 ? _effectData$startVide : typeof ((_effectData$sourceVid2 = effectData.sourceVideo) === null || _effectData$sourceVid2 === void 0 ? void 0 : _effectData$sourceVid2.start) === 'number' ? toFrames(fps * effectData.sourceVideo.start, false, true) : undefined;
|
|
62
|
+
var effectVideoUrl = (_effectData$videoUrl = effectData.videoUrl) !== null && _effectData$videoUrl !== void 0 ? _effectData$videoUrl : (_effectData$sourceVid3 = effectData.sourceVideo) === null || _effectData$sourceVid3 === void 0 ? void 0 : _effectData$sourceVid3.videoUrl;
|
|
63
|
+
var effectVideoZoom = (_effectData$videoZoom = effectData.videoZoom) !== null && _effectData$videoZoom !== void 0 ? _effectData$videoZoom : (_effectData$sourceVid4 = effectData.sourceVideo) === null || _effectData$sourceVid4 === void 0 ? void 0 : _effectData$sourceVid4.zoom;
|
|
64
|
+
return {
|
|
65
|
+
text: (_effectData$text = effectData.text) !== null && _effectData$text !== void 0 ? _effectData$text : layoutProps.text,
|
|
66
|
+
fullName: (_ref4 = (_ref5 = (_effectData$fullName = effectData.fullName) !== null && _effectData$fullName !== void 0 ? _effectData$fullName : effectData.name) !== null && _ref5 !== void 0 ? _ref5 : layoutProps.fullName) !== null && _ref4 !== void 0 ? _ref4 : layoutProps.name,
|
|
67
|
+
name: (_ref6 = (_ref7 = (_effectData$name = effectData.name) !== null && _effectData$name !== void 0 ? _effectData$name : effectData.fullName) !== null && _ref7 !== void 0 ? _ref7 : layoutProps.name) !== null && _ref6 !== void 0 ? _ref6 : layoutProps.fullName,
|
|
68
|
+
title: (_effectData$title = effectData.title) !== null && _effectData$title !== void 0 ? _effectData$title : layoutProps.title,
|
|
69
|
+
collaboratorName: (_effectData$collabora = effectData.collaboratorName) !== null && _effectData$collabora !== void 0 ? _effectData$collabora : layoutProps.collaboratorName,
|
|
70
|
+
collaboratorTitle: (_effectData$collabora2 = effectData.collaboratorTitle) !== null && _effectData$collabora2 !== void 0 ? _effectData$collabora2 : layoutProps.collaboratorTitle,
|
|
71
|
+
topicLabel: (_effectData$topicLabe = effectData.topicLabel) !== null && _effectData$topicLabe !== void 0 ? _effectData$topicLabe : layoutProps.topicLabel,
|
|
72
|
+
activeSpeaker: (_effectData$activeSpe = effectData.activeSpeaker) !== null && _effectData$activeSpe !== void 0 ? _effectData$activeSpe : layoutProps.activeSpeaker,
|
|
73
|
+
firstVideoFile: effectFirstVideoFile !== null && effectFirstVideoFile !== void 0 ? effectFirstVideoFile : layoutProps.firstVideoFile,
|
|
74
|
+
firstNoBackgroundVideoUrl: effectFirstNoBackgroundVideoUrl !== null && effectFirstNoBackgroundVideoUrl !== void 0 ? effectFirstNoBackgroundVideoUrl : layoutProps.firstNoBackgroundVideoUrl,
|
|
75
|
+
firstNoBackgroundFaceMetadata: effectFirstNoBackgroundFaceMetadata !== null && effectFirstNoBackgroundFaceMetadata !== void 0 ? effectFirstNoBackgroundFaceMetadata : layoutProps.firstNoBackgroundFaceMetadata,
|
|
76
|
+
secondVideoFile: (_effectData$secondVid = effectData.secondVideoFile) !== null && _effectData$secondVid !== void 0 ? _effectData$secondVid : layoutProps.secondVideoFile,
|
|
77
|
+
startSecondVideoFrom: (_effectData$startSeco = effectData.startSecondVideoFrom) !== null && _effectData$startSeco !== void 0 ? _effectData$startSeco : layoutProps.startSecondVideoFrom,
|
|
78
|
+
noBackgroundVideoEffects: effectNoBackgroundVideoEffects !== null && effectNoBackgroundVideoEffects !== void 0 ? effectNoBackgroundVideoEffects : layoutProps.noBackgroundVideoEffects,
|
|
79
|
+
sourceVideoOrientation: (_effectData$sourceVid5 = effectData.sourceVideoOrientation) !== null && _effectData$sourceVid5 !== void 0 ? _effectData$sourceVid5 : layoutProps.sourceVideoOrientation,
|
|
80
|
+
startVideoFrom: effectStartVideoFrom !== null && effectStartVideoFrom !== void 0 ? effectStartVideoFrom : layoutProps.startVideoFrom,
|
|
81
|
+
videoUrl: effectVideoUrl !== null && effectVideoUrl !== void 0 ? effectVideoUrl : layoutProps.videoUrl,
|
|
82
|
+
videoZoom: effectVideoZoom !== null && effectVideoZoom !== void 0 ? effectVideoZoom : layoutProps.videoZoom
|
|
83
|
+
};
|
|
84
|
+
};
|
|
@@ -2,7 +2,7 @@ import z from "zod";
|
|
|
2
2
|
var hexColorRegex = /^#(?:[0-9a-fA-F]{3}){1,2}$/;
|
|
3
3
|
|
|
4
4
|
// Supported values
|
|
5
|
-
var themes = ["default"];
|
|
5
|
+
var themes = ["default", "glitch", "glassmorphism", "sports", "sportsbounce", "bigbold", "pushpull", "none", "depth", "collabintro"];
|
|
6
6
|
var orientations = ["landscape", "portrait", "square"];
|
|
7
7
|
var segmentTypes = ["segment", "effect", "caption", "audio"];
|
|
8
8
|
var fps = [30, 60];
|
|
@@ -24,6 +24,8 @@ import { GlitchNametag } from "../themes/glitch/GlitchNametag";
|
|
|
24
24
|
import { GlitchSentence } from "../themes/glitch/GlitchSentence";
|
|
25
25
|
import { NoneNametag } from "../themes/none/Nametag";
|
|
26
26
|
import { NoneTitle } from "../themes/none/Title";
|
|
27
|
+
import { Title as CollabIntroTitle } from "../themes/collabintro/Title";
|
|
28
|
+
import { Nametag as CollabIntroNametag } from "../themes/collabintro/Nametag";
|
|
27
29
|
import { KeyPointOverlayDepth } from "../../components/layouts/KeyPointOverlayDepth";
|
|
28
30
|
|
|
29
31
|
/** Always update this when adding a new theme and/or components. */
|
|
@@ -69,6 +71,10 @@ var themedComponents = {
|
|
|
69
71
|
Nametag: NoneNametag,
|
|
70
72
|
Title: NoneTitle
|
|
71
73
|
},
|
|
74
|
+
collabintro: {
|
|
75
|
+
Title: CollabIntroTitle,
|
|
76
|
+
Nametag: CollabIntroNametag
|
|
77
|
+
},
|
|
72
78
|
depth: {
|
|
73
79
|
Sentence: KeyPointOverlayDepth
|
|
74
80
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { CreatorCollabColdOpenVisual } from "../../../components/layouts/CreatorCollabColdOpenVisual";
|
|
4
|
+
export var Nametag = function Nametag(props) {
|
|
5
|
+
var _props$showChrome;
|
|
6
|
+
return /*#__PURE__*/React.createElement(CreatorCollabColdOpenVisual, _extends({}, props, {
|
|
7
|
+
renderChildren: false,
|
|
8
|
+
showBackground: false,
|
|
9
|
+
showTitleElements: false,
|
|
10
|
+
showPreview: false,
|
|
11
|
+
showLowerThird: true,
|
|
12
|
+
showChrome: (_props$showChrome = props.showChrome) !== null && _props$showChrome !== void 0 ? _props$showChrome : false
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { CreatorCollabColdOpenVisual } from "../../../components/layouts/CreatorCollabColdOpenVisual";
|
|
4
|
+
export var Title = function Title(props) {
|
|
5
|
+
var _props$showChrome;
|
|
6
|
+
return /*#__PURE__*/React.createElement(CreatorCollabColdOpenVisual, _extends({}, props, {
|
|
7
|
+
renderChildren: false,
|
|
8
|
+
showBackground: false,
|
|
9
|
+
showCreatorVideo: false,
|
|
10
|
+
showBackdropOverlays: true,
|
|
11
|
+
showTitleElements: true,
|
|
12
|
+
showPreview: true,
|
|
13
|
+
showLowerThird: false,
|
|
14
|
+
showChrome: (_props$showChrome = props.showChrome) !== null && _props$showChrome !== void 0 ? _props$showChrome : true,
|
|
15
|
+
previewEnterStartSeconds: 1.1,
|
|
16
|
+
previewEnterEndSeconds: 2.2,
|
|
17
|
+
compactTitleEnterStartSeconds: 0.8
|
|
18
|
+
}));
|
|
19
|
+
};
|