@zync/zync-screnplay-player 0.1.204 → 0.1.206

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 (33) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/screenplay/RemotionRenderer/RemotionRenderer.js +17 -14
  3. package/dist/screenplay/RemotionRenderer/components/layouts/CreatorCollabColdOpen.js +741 -0
  4. package/dist/screenplay/RemotionRenderer/components/layouts/CreatorCollabConversationSpine.js +607 -0
  5. package/dist/screenplay/RemotionRenderer/components/layouts/CreatorCollabDocumentaryInset.js +606 -0
  6. package/dist/screenplay/RemotionRenderer/components/layouts/CreatorCollabRackFocus.js +603 -0
  7. package/dist/screenplay/RemotionRenderer/components/layouts/CreatorCollabStudioSet.js +589 -0
  8. package/dist/screenplay/RemotionRenderer/components/layouts/DynamicTriangle.js +36 -6
  9. package/dist/screenplay/RemotionRenderer/components/layouts/Handoff.js +17 -6
  10. package/dist/screenplay/RemotionRenderer/components/layouts/IntroVideo.js +45 -8
  11. package/dist/screenplay/RemotionRenderer/components/layouts/Keyword.js +42 -9
  12. package/dist/screenplay/RemotionRenderer/components/layouts/KeywordStudioBackdrop.js +47 -10
  13. package/dist/screenplay/RemotionRenderer/components/layouts/MotionStill.js +42 -9
  14. package/dist/screenplay/RemotionRenderer/components/layouts/MotionStillStudioBackdrop.js +46 -9
  15. package/dist/screenplay/RemotionRenderer/components/layouts/SimpleFrame.js +21 -12
  16. package/dist/screenplay/RemotionRenderer/components/layouts/TextWithVideo.js +41 -8
  17. package/dist/screenplay/RemotionRenderer/development.js +164 -1239
  18. package/dist/screenplay/RemotionRenderer/hooks/useOrientationBased.js +7 -3
  19. package/dist/screenplay/RemotionRenderer/main/lib/layouts/CreatorCollabColdOpenLayout.js +22 -0
  20. package/dist/screenplay/RemotionRenderer/main/lib/layouts/CreatorCollabConversationSpineLayout.js +22 -0
  21. package/dist/screenplay/RemotionRenderer/main/lib/layouts/CreatorCollabDocumentaryInsetLayout.js +22 -0
  22. package/dist/screenplay/RemotionRenderer/main/lib/layouts/CreatorCollabRackFocusLayout.js +22 -0
  23. package/dist/screenplay/RemotionRenderer/main/lib/layouts/CreatorCollabStudioSetLayout.js +22 -0
  24. package/dist/screenplay/RemotionRenderer/main/lib/layouts/DefaultLayout.js +2 -1
  25. package/dist/screenplay/RemotionRenderer/main/lib/layouts/DynamicTriangleLayout.js +3 -2
  26. package/dist/screenplay/RemotionRenderer/main/lib/layouts/HandoffLayout.js +3 -2
  27. package/dist/screenplay/RemotionRenderer/main/lib/layouts/IntroVideoLayout.js +3 -1
  28. package/dist/screenplay/RemotionRenderer/main/lib/layouts/KeywordLayout.js +3 -2
  29. package/dist/screenplay/RemotionRenderer/main/lib/layouts/LayoutFactory.js +25 -0
  30. package/dist/screenplay/RemotionRenderer/main/lib/layouts/MotionStillLayout.js +3 -2
  31. package/dist/screenplay/RemotionRenderer/main/lib/layouts/TextWithVideoLayout.js +3 -2
  32. package/dist/screenplay/RemotionRenderer/registeredComponents.js +10 -0
  33. package/package.json +1 -1
@@ -1,13 +1,14 @@
1
1
  import { useVideoConfig } from "remotion";
2
- export var useOrientationBased = function useOrientationBased(perOrientationStyles) {
2
+ export var useOrientationBased = function useOrientationBased(perOrientationStyles, orientationOverride) {
3
3
  var _useVideoConfig = useVideoConfig(),
4
4
  _useVideoConfig$props = _useVideoConfig.props.output,
5
5
  _useVideoConfig$props2 = _useVideoConfig$props === void 0 ? {
6
6
  orientation: window.screenplayProps.output.orientation
7
7
  } : _useVideoConfig$props,
8
8
  orientation = _useVideoConfig$props2.orientation;
9
+ var resolvedOrientation = orientationOverride || orientation;
9
10
  var result;
10
- switch (orientation) {
11
+ switch (resolvedOrientation) {
11
12
  case "portrait":
12
13
  {
13
14
  result = perOrientationStyles.portrait;
@@ -24,6 +25,9 @@ export var useOrientationBased = function useOrientationBased(perOrientationStyl
24
25
  break;
25
26
  }
26
27
  }
27
- result.orientation = orientation;
28
+ if (!result) {
29
+ result = perOrientationStyles.landscape || perOrientationStyles.portrait || perOrientationStyles.square || {};
30
+ }
31
+ result.orientation = resolvedOrientation;
28
32
  return result;
29
33
  };
@@ -0,0 +1,22 @@
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 _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); } }
3
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
9
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
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); }
13
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
+ import { CreatorCollabSplitLayout } from './CreatorCollabSplitLayout.js';
15
+ export var CreatorCollabColdOpenLayout = /*#__PURE__*/function (_CreatorCollabSplitLa) {
16
+ function CreatorCollabColdOpenLayout() {
17
+ _classCallCheck(this, CreatorCollabColdOpenLayout);
18
+ return _callSuper(this, CreatorCollabColdOpenLayout, arguments);
19
+ }
20
+ _inherits(CreatorCollabColdOpenLayout, _CreatorCollabSplitLa);
21
+ return _createClass(CreatorCollabColdOpenLayout);
22
+ }(CreatorCollabSplitLayout);
@@ -0,0 +1,22 @@
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 _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); } }
3
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
9
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
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); }
13
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
+ import { CreatorCollabSplitLayout } from './CreatorCollabSplitLayout.js';
15
+ export var CreatorCollabConversationSpineLayout = /*#__PURE__*/function (_CreatorCollabSplitLa) {
16
+ function CreatorCollabConversationSpineLayout() {
17
+ _classCallCheck(this, CreatorCollabConversationSpineLayout);
18
+ return _callSuper(this, CreatorCollabConversationSpineLayout, arguments);
19
+ }
20
+ _inherits(CreatorCollabConversationSpineLayout, _CreatorCollabSplitLa);
21
+ return _createClass(CreatorCollabConversationSpineLayout);
22
+ }(CreatorCollabSplitLayout);
@@ -0,0 +1,22 @@
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 _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); } }
3
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
9
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
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); }
13
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
+ import { CreatorCollabSplitLayout } from './CreatorCollabSplitLayout.js';
15
+ export var CreatorCollabDocumentaryInsetLayout = /*#__PURE__*/function (_CreatorCollabSplitLa) {
16
+ function CreatorCollabDocumentaryInsetLayout() {
17
+ _classCallCheck(this, CreatorCollabDocumentaryInsetLayout);
18
+ return _callSuper(this, CreatorCollabDocumentaryInsetLayout, arguments);
19
+ }
20
+ _inherits(CreatorCollabDocumentaryInsetLayout, _CreatorCollabSplitLa);
21
+ return _createClass(CreatorCollabDocumentaryInsetLayout);
22
+ }(CreatorCollabSplitLayout);
@@ -0,0 +1,22 @@
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 _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); } }
3
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
9
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
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); }
13
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
+ import { CreatorCollabSplitLayout } from './CreatorCollabSplitLayout.js';
15
+ export var CreatorCollabRackFocusLayout = /*#__PURE__*/function (_CreatorCollabSplitLa) {
16
+ function CreatorCollabRackFocusLayout() {
17
+ _classCallCheck(this, CreatorCollabRackFocusLayout);
18
+ return _callSuper(this, CreatorCollabRackFocusLayout, arguments);
19
+ }
20
+ _inherits(CreatorCollabRackFocusLayout, _CreatorCollabSplitLa);
21
+ return _createClass(CreatorCollabRackFocusLayout);
22
+ }(CreatorCollabSplitLayout);
@@ -0,0 +1,22 @@
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 _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); } }
3
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
9
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
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); }
13
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
+ import { CreatorCollabSplitLayout } from './CreatorCollabSplitLayout.js';
15
+ export var CreatorCollabStudioSetLayout = /*#__PURE__*/function (_CreatorCollabSplitLa) {
16
+ function CreatorCollabStudioSetLayout() {
17
+ _classCallCheck(this, CreatorCollabStudioSetLayout);
18
+ return _callSuper(this, CreatorCollabStudioSetLayout, arguments);
19
+ }
20
+ _inherits(CreatorCollabStudioSetLayout, _CreatorCollabSplitLa);
21
+ return _createClass(CreatorCollabStudioSetLayout);
22
+ }(CreatorCollabSplitLayout);
@@ -32,7 +32,7 @@ export var Layout = /*#__PURE__*/function (_Sequence) {
32
32
  return _createClass(Layout, [{
33
33
  key: "getLayoutProps",
34
34
  value: function getLayoutProps(props) {
35
- var _props$data, _props$data2, _props$data$sourceVid, _props$data3, _props$data$noBackgro, _props$data$noBackgro2;
35
+ var _props$data, _props$data2, _props$data$sourceVid, _props$data3, _props$data4, _props$data$noBackgro, _props$data$noBackgro2;
36
36
  var sourceVideoOrientation = getVideoOrientation(props.data.sourceVideo.aspectRatio);
37
37
  var trimLeft = ((_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.trimLeft) || 0;
38
38
  var trimRight = ((_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.trimRight) || 0;
@@ -60,6 +60,7 @@ export var Layout = /*#__PURE__*/function (_Sequence) {
60
60
  sourceVideoOrientation: sourceVideoOrientation,
61
61
  startVideoFrom: toFrames(this.fps * (((_props$data$sourceVid = props.data.sourceVideo) === null || _props$data$sourceVid === void 0 ? void 0 : _props$data$sourceVid.start) + trimLeft), true) || 0,
62
62
  disableTransitionSounds: (_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.disableTransitionSounds,
63
+ useSquareInLandscape: ((_props$data4 = props.data) === null || _props$data4 === void 0 ? void 0 : _props$data4.useSquareInLandscape) || false,
63
64
  trimLeft: trimLeft,
64
65
  trimRight: trimRight,
65
66
  words: props.data.words,
@@ -24,7 +24,7 @@ export var DynamicTriangleLayout = /*#__PURE__*/function (_Layout) {
24
24
  return _createClass(DynamicTriangleLayout, [{
25
25
  key: "getVideoProps",
26
26
  value: function getVideoProps(props) {
27
- var _props$data$sourceVid, _props$data$sourceVid2, _props$data, _props$data2, _props$data3, _props$data4, _props$data5, _props$data6, _props$data7, _props$data8, _props$data9, _props$data10, _props$data11, _props$data12, _props$data13;
27
+ var _props$data$sourceVid, _props$data$sourceVid2, _props$data, _props$data2, _props$data3, _props$data4, _props$data5, _props$data6, _props$data7, _props$data8, _props$data9, _props$data10, _props$data11, _props$data12, _props$data13, _props$data14;
28
28
  this.props = {
29
29
  videoUrl: (_props$data$sourceVid = props.data.sourceVideo) === null || _props$data$sourceVid === void 0 ? void 0 : _props$data$sourceVid.videoUrl,
30
30
  videoZoom: ((_props$data$sourceVid2 = props.data.sourceVideo) === null || _props$data$sourceVid2 === void 0 ? void 0 : _props$data$sourceVid2.zoom) || 1,
@@ -47,7 +47,8 @@ export var DynamicTriangleLayout = /*#__PURE__*/function (_Layout) {
47
47
  maskAnimationDuration: ((_props$data11 = props.data) === null || _props$data11 === void 0 ? void 0 : _props$data11.maskAnimationDuration) || 2,
48
48
  // Duration in seconds for mask animation
49
49
  sentenceText: (_props$data12 = props.data) === null || _props$data12 === void 0 ? void 0 : _props$data12.sentenceText,
50
- text: (_props$data13 = props.data) === null || _props$data13 === void 0 ? void 0 : _props$data13.text
50
+ text: (_props$data13 = props.data) === null || _props$data13 === void 0 ? void 0 : _props$data13.text,
51
+ useSquareInLandscape: ((_props$data14 = props.data) === null || _props$data14 === void 0 ? void 0 : _props$data14.useSquareInLandscape) || false
51
52
  };
52
53
  }
53
54
  }]);
@@ -27,7 +27,7 @@ export var HandoffLayout = /*#__PURE__*/function (_Layout) {
27
27
  return _createClass(HandoffLayout, [{
28
28
  key: "getVideoProps",
29
29
  value: function getVideoProps(props) {
30
- var _props$data$sourceVid, _props$data, _props$data2, _props$data3, _props$data4, _props$data5, _props$data6, _props$data6$firstNoB, _props$data7, _props$data7$firstNoB, _props$data8, _props$data9, _props$data10, _props$data11, _props$data11$secondN, _props$data12, _props$data12$secondN, _props$data$sourceVid2, _props$data$sourceVid3, _props$data13, _props$data14;
30
+ var _props$data$sourceVid, _props$data, _props$data2, _props$data3, _props$data4, _props$data5, _props$data6, _props$data6$firstNoB, _props$data7, _props$data7$firstNoB, _props$data8, _props$data9, _props$data10, _props$data11, _props$data11$secondN, _props$data12, _props$data12$secondN, _props$data$sourceVid2, _props$data$sourceVid3, _props$data13, _props$data14, _props$data15;
31
31
  var sourceVideoOrientation = getVideoOrientation((_props$data$sourceVid = props.data.sourceVideo) === null || _props$data$sourceVid === void 0 ? void 0 : _props$data$sourceVid.aspectRatio);
32
32
  this.props = {
33
33
  startFirstVideoFrom: toFrames(this.fps * (((_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.startFirstVideoFrom) + (((_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.trimLeft) || 0)), true) || 0,
@@ -44,8 +44,9 @@ export var HandoffLayout = /*#__PURE__*/function (_Layout) {
44
44
  sourceVideoOrientation: sourceVideoOrientation,
45
45
  videoZoom: ((_props$data$sourceVid3 = props.data.sourceVideo) === null || _props$data$sourceVid3 === void 0 ? void 0 : _props$data$sourceVid3.zoom) || 1,
46
46
  useSquareInLandscapeFirstVideo: ((_props$data13 = props.data) === null || _props$data13 === void 0 ? void 0 : _props$data13.useSquareInLandscapeFirstVideo) || false,
47
+ useSquareInLandscapeSecondVideo: ((_props$data14 = props.data) === null || _props$data14 === void 0 ? void 0 : _props$data14.useSquareInLandscapeSecondVideo) || false,
47
48
  text: props.data.text,
48
- handoffOverlapSeconds: ((_props$data14 = props.data) === null || _props$data14 === void 0 ? void 0 : _props$data14.handoffOverlapSeconds) || 0
49
+ handoffOverlapSeconds: ((_props$data15 = props.data) === null || _props$data15 === void 0 ? void 0 : _props$data15.handoffOverlapSeconds) || 0
49
50
  };
50
51
  }
51
52
  }]);
@@ -24,9 +24,11 @@ export var IntroVideoLayout = /*#__PURE__*/function (_Layout) {
24
24
  return _createClass(IntroVideoLayout, [{
25
25
  key: "getVideoProps",
26
26
  value: function getVideoProps(props) {
27
+ var _props$data;
27
28
  this.props = {
28
29
  sentenceText: props.data.sentenceText,
29
- sentenceTextTwo: props.data.sentenceTextTwo
30
+ sentenceTextTwo: props.data.sentenceTextTwo,
31
+ useSquareInLandscape: ((_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.useSquareInLandscape) || false
30
32
  };
31
33
  }
32
34
  }]);
@@ -24,12 +24,13 @@ export var KeywordLayout = /*#__PURE__*/function (_Layout) {
24
24
  return _createClass(KeywordLayout, [{
25
25
  key: "getVideoProps",
26
26
  value: function getVideoProps(props) {
27
- var _props$data$sourceVid, _props$data$sourceVid2, _props$data;
27
+ var _props$data$sourceVid, _props$data$sourceVid2, _props$data, _props$data2;
28
28
  this.props = {
29
29
  videoUrl: (_props$data$sourceVid = props.data.sourceVideo) === null || _props$data$sourceVid === void 0 ? void 0 : _props$data$sourceVid.videoUrl,
30
30
  videoZoom: ((_props$data$sourceVid2 = props.data.sourceVideo) === null || _props$data$sourceVid2 === void 0 ? void 0 : _props$data$sourceVid2.zoom) || 1,
31
31
  disableTransitionSounds: (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.disableTransitionSounds,
32
- words: props.data.words
32
+ words: props.data.words,
33
+ useSquareInLandscape: ((_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.useSquareInLandscape) || false
33
34
  };
34
35
  }
35
36
  }]);
@@ -9,6 +9,11 @@ import { Layout } from "./DefaultLayout.js";
9
9
  import { TextWithVideoLayout } from "./TextWithVideoLayout.js";
10
10
  import { HandoffLayout } from "./HandoffLayout.js";
11
11
  import { CreatorCollabSplitLayout } from "./CreatorCollabSplitLayout.js";
12
+ import { CreatorCollabColdOpenLayout } from "./CreatorCollabColdOpenLayout.js";
13
+ import { CreatorCollabDocumentaryInsetLayout } from "./CreatorCollabDocumentaryInsetLayout.js";
14
+ import { CreatorCollabRackFocusLayout } from "./CreatorCollabRackFocusLayout.js";
15
+ import { CreatorCollabStudioSetLayout } from "./CreatorCollabStudioSetLayout.js";
16
+ import { CreatorCollabConversationSpineLayout } from "./CreatorCollabConversationSpineLayout.js";
12
17
  import { MotionStillLayout } from "./MotionStillLayout.js";
13
18
  import { KeywordLayout } from "./KeywordLayout.js";
14
19
  import { IntroVideoLayout } from "./IntroVideoLayout";
@@ -44,6 +49,26 @@ export var LayoutFactory = /*#__PURE__*/function () {
44
49
  {
45
50
  return new CreatorCollabSplitLayout(props).flatten();
46
51
  }
52
+ case "creator_collab_cold_open":
53
+ {
54
+ return new CreatorCollabColdOpenLayout(props).flatten();
55
+ }
56
+ case "creator_collab_documentary_inset":
57
+ {
58
+ return new CreatorCollabDocumentaryInsetLayout(props).flatten();
59
+ }
60
+ case "creator_collab_rack_focus":
61
+ {
62
+ return new CreatorCollabRackFocusLayout(props).flatten();
63
+ }
64
+ case "creator_collab_studio_set":
65
+ {
66
+ return new CreatorCollabStudioSetLayout(props).flatten();
67
+ }
68
+ case "creator_collab_conversation_spine":
69
+ {
70
+ return new CreatorCollabConversationSpineLayout(props).flatten();
71
+ }
47
72
  case "motion_still":
48
73
  case "motion_still_green_screen":
49
74
  case "motion_still_full_screen":
@@ -24,12 +24,13 @@ export var MotionStillLayout = /*#__PURE__*/function (_Layout) {
24
24
  return _createClass(MotionStillLayout, [{
25
25
  key: "getVideoProps",
26
26
  value: function getVideoProps(props) {
27
- var _props$data$sourceVid, _props$data$sourceVid2, _props$data;
27
+ var _props$data$sourceVid, _props$data$sourceVid2, _props$data, _props$data2;
28
28
  this.props = {
29
29
  videoUrl: (_props$data$sourceVid = props.data.sourceVideo) === null || _props$data$sourceVid === void 0 ? void 0 : _props$data$sourceVid.videoUrl,
30
30
  imageUrl: props.data.imageUrl,
31
31
  videoZoom: ((_props$data$sourceVid2 = props.data.sourceVideo) === null || _props$data$sourceVid2 === void 0 ? void 0 : _props$data$sourceVid2.zoom) || 1,
32
- disableTransitionSounds: (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.disableTransitionSounds
32
+ disableTransitionSounds: (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.disableTransitionSounds,
33
+ useSquareInLandscape: ((_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.useSquareInLandscape) || false
33
34
  };
34
35
  }
35
36
  }]);
@@ -38,14 +38,15 @@ export var TextWithVideoLayout = /*#__PURE__*/function (_Layout) {
38
38
  }, {
39
39
  key: "getVideoProps",
40
40
  value: function getVideoProps(props) {
41
- var _props$data$sourceVid, _props$data$sourceVid2, _props$data$sourceVid3, _props$data;
41
+ var _props$data$sourceVid, _props$data$sourceVid2, _props$data$sourceVid3, _props$data, _props$data2;
42
42
  var sourceVideoOrientation = getVideoOrientation((_props$data$sourceVid = props.data.sourceVideo) === null || _props$data$sourceVid === void 0 ? void 0 : _props$data$sourceVid.aspectRatio);
43
43
  this.props = {
44
44
  videoUrl: (_props$data$sourceVid2 = props.data.sourceVideo) === null || _props$data$sourceVid2 === void 0 ? void 0 : _props$data$sourceVid2.videoUrl,
45
45
  sourceVideoOrientation: sourceVideoOrientation,
46
46
  videoZoom: ((_props$data$sourceVid3 = props.data.sourceVideo) === null || _props$data$sourceVid3 === void 0 ? void 0 : _props$data$sourceVid3.zoom) || 1,
47
47
  text: props.data.text,
48
- disableTransitionSounds: (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.disableTransitionSounds
48
+ disableTransitionSounds: (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.disableTransitionSounds,
49
+ useSquareInLandscape: ((_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.useSquareInLandscape) || false
49
50
  };
50
51
  }
51
52
  }]);
@@ -10,6 +10,11 @@ import { Title } from "./components/effects/Title";
10
10
  import { Watermark } from "./tracks/Watermark";
11
11
  import { Handoff } from "./components/layouts/Handoff";
12
12
  import { CreatorCollabSplit } from "./components/layouts/CreatorCollabSplit";
13
+ import { CreatorCollabColdOpen } from "./components/layouts/CreatorCollabColdOpen";
14
+ import { CreatorCollabDocumentaryInset } from "./components/layouts/CreatorCollabDocumentaryInset";
15
+ import { CreatorCollabRackFocus } from "./components/layouts/CreatorCollabRackFocus";
16
+ import { CreatorCollabStudioSet } from "./components/layouts/CreatorCollabStudioSet";
17
+ import { CreatorCollabConversationSpine } from "./components/layouts/CreatorCollabConversationSpine";
13
18
  import { HandoffNametag } from "./components/effects/HandoffNametag";
14
19
  import { MotionStill } from "./components/layouts/MotionStill";
15
20
  import { Keyword } from "./components/layouts/Keyword";
@@ -51,6 +56,11 @@ export var RegisteredComponents = {
51
56
  TextWithVideo: TextWithVideo,
52
57
  Handoff: Handoff,
53
58
  CreatorCollabSplit: CreatorCollabSplit,
59
+ CreatorCollabColdOpen: CreatorCollabColdOpen,
60
+ CreatorCollabDocumentaryInset: CreatorCollabDocumentaryInset,
61
+ CreatorCollabRackFocus: CreatorCollabRackFocus,
62
+ CreatorCollabStudioSet: CreatorCollabStudioSet,
63
+ CreatorCollabConversationSpine: CreatorCollabConversationSpine,
54
64
  MotionStill: MotionStill,
55
65
  MotionStillFullScreen: MotionStillFullScreen,
56
66
  MotionStillGreenScreen: MotionStillGreenScreenV2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zync/zync-screnplay-player",
3
- "version": "0.1.204",
3
+ "version": "0.1.206",
4
4
  "files": [
5
5
  "dist"
6
6
  ],