@zync/zync-screnplay-player 0.1.239 → 0.1.240

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.
@@ -165,7 +165,10 @@ var PositionedWords = function PositionedWords(_ref4) {
165
165
  })));
166
166
  };
167
167
  export var TextFullCover = function TextFullCover(_ref5) {
168
+ var _ref6, _ref7;
168
169
  var text = _ref5.text,
170
+ sentence = _ref5.sentence,
171
+ sentenceText = _ref5.sentenceText,
169
172
  children = _ref5.children,
170
173
  muted = _ref5.muted,
171
174
  _ref5$startVideoFrom = _ref5.startVideoFrom,
@@ -180,7 +183,8 @@ export var TextFullCover = function TextFullCover(_ref5) {
180
183
  fps = _useVideoConfig.fps,
181
184
  width = _useVideoConfig.width,
182
185
  height = _useVideoConfig.height;
183
- var words = splitWords(text);
186
+ var displayText = (_ref6 = (_ref7 = text !== null && text !== void 0 ? text : sentenceText) !== null && _ref7 !== void 0 ? _ref7 : sentence) !== null && _ref6 !== void 0 ? _ref6 : "";
187
+ var words = splitWords(displayText);
184
188
  var fallbackWords = words.length ? words : [""];
185
189
  var uppercaseWords = fallbackWords.map(function (word) {
186
190
  return word.toLocaleUpperCase();
@@ -7,7 +7,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
7
7
  import { SimpleFrameLayout } from "./SimpleFrameLayout.js";
8
8
  import { Layout } from "./DefaultLayout.js";
9
9
  import { TextWithVideoLayout } from "./TextWithVideoLayout.js";
10
- import { TextFullCoverLayout } from "./TextFullCoverLayout.js";
11
10
  import { HandoffLayout } from "./HandoffLayout.js";
12
11
  import { CreatorCollabSplitLayout } from "./CreatorCollabSplitLayout.js";
13
12
  import { CreatorCollabColdOpenLayout } from "./CreatorCollabColdOpenLayout.js";
@@ -36,11 +35,6 @@ export var LayoutFactory = /*#__PURE__*/function () {
36
35
  layout = new TextWithVideoLayout(props).flatten();
37
36
  break;
38
37
  }
39
- case "text_full_cover":
40
- {
41
- layout = new TextFullCoverLayout(props).flatten();
42
- break;
43
- }
44
38
  case "broll_background":
45
39
  case "simple_frame_broll":
46
40
  case "simple_frame_sentence":
@@ -49,6 +43,7 @@ export var LayoutFactory = /*#__PURE__*/function () {
49
43
  case "broll_studio_backdrop":
50
44
  case "broll_inset":
51
45
  case "key_point_overlay_depth":
46
+ case "text_full_cover":
52
47
  case "simple_frame":
53
48
  {
54
49
  layout = new SimpleFrameLayout(props).flatten();
@@ -49,8 +49,8 @@ import { HookVideo } from "./components/layouts/HookVideo";
49
49
  import { BrollInset } from "./components/layouts/BrollInset";
50
50
  import { MotionStillInset } from "./components/layouts/MotionStillInset";
51
51
 
52
- /** Update this so that Remotion knows which component to render when it is passed via screenplay. Ex. "title" will have rendered "Title" component
53
- * Here we are mapping directly types and component names. Types are snake_case and components PascalCase.
52
+ /** Update this so that Remotion knows which component to render when it is passed via screenplay. Ex. "title" will have rendered "Title" component
53
+ * Here we are mapping directly types and component names. Types are snake_case and components PascalCase.
54
54
  * */
55
55
  export var RegisteredComponents = {
56
56
  // Layouts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zync/zync-screnplay-player",
3
- "version": "0.1.239",
3
+ "version": "0.1.240",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,22 +0,0 @@
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 { TextWithVideoLayout } from "./TextWithVideoLayout.js";
15
- export var TextFullCoverLayout = /*#__PURE__*/function (_TextWithVideoLayout) {
16
- function TextFullCoverLayout() {
17
- _classCallCheck(this, TextFullCoverLayout);
18
- return _callSuper(this, TextFullCoverLayout, arguments);
19
- }
20
- _inherits(TextFullCoverLayout, _TextWithVideoLayout);
21
- return _createClass(TextFullCoverLayout);
22
- }(TextWithVideoLayout);