@zync/zync-screnplay-player 0.1.239 → 0.1.241

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();