@zync/zync-screnplay-player 0.1.189 → 0.1.190

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.
@@ -5,10 +5,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
5
5
  export var getHandoffNametagConfig = function getHandoffNametagConfig(width) {
6
6
  return {
7
7
  portrait: {
8
- targetImageHeights: [130, 230, 200, 170, 200, 170, 170, 170, 170, 170],
8
+ targetImageHeights: [130, 230, 200, 170, 200, 170, 170, 170],
9
9
  targetImageTranslateY: _defineProperty(_defineProperty({}, "first-left", [770, 160, 160, 160, 110, 0, 0, 0, 0, 0]), "second-right", [770, 160, 160, 160, 110, 0, 0, 0, 0, 0]),
10
10
  opacity: [0.1, 0.5, 0.7, 1, 1, 1, 1, 1, 1, 0],
11
- targetImageWidths: [60, 60, 170, 170, 170, 170, 170, 170, 170, 170],
11
+ targetImageWidths: [60, 60, 170, 170, 170, 170, 170, 170],
12
12
  rotation: [180, 180, 180, 360, 360, 360, 360, 360, 360, 360],
13
13
  targetTextOpacity: [1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
14
14
  textContainerWidth: width - 15 - 170 - 20,
@@ -16,42 +16,45 @@ export var getHandoffNametagConfig = function getHandoffNametagConfig(width) {
16
16
  lineJustifyContent: _defineProperty(_defineProperty({}, "first-left", "flex-start"), "second-right", "flex-end"),
17
17
  fullNameMaxFontSize: 42,
18
18
  titleMaxFontSize: 30,
19
- targetContainerTops: _defineProperty(_defineProperty({}, "first-left", [700, 700, 700, 700, 700, 700, 700, 700, 700, 700]), "second-right", [1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050]),
20
- containerLeft: _defineProperty(_defineProperty({}, "first-left", 70), "second-right", -120),
19
+ targetContainerBottoms: _defineProperty(_defineProperty({}, "first-left", [200, 200, 200, 200, 200, 200, 200, 200]), "second-right", [200, 200, 200, 200, 200, 200, 200, 200]),
20
+ containerLeft: _defineProperty(_defineProperty({}, "first-left", 70), "second-right", undefined),
21
+ containerRight: _defineProperty(_defineProperty({}, "first-left", undefined), "second-right", 70),
21
22
  containerFlexDirection: _defineProperty(_defineProperty({}, "first-left", "row"), "second-right", "row-reverse"),
22
23
  containerAlignItems: _defineProperty(_defineProperty({}, "first-left", "center"), "second-right", "center")
23
24
  },
24
25
  landscape: {
25
- targetImageHeights: [130, 230, 200, 170, 200, 170, 170, 170],
26
- targetImageTranslateY: _defineProperty(_defineProperty({}, "first-left", [-770, -160, -160, -160, -110, 0, 0, 0]), "second-right", [-770, -160, -160, -160, -110, 0, 0, 0]),
26
+ targetImageHeights: [110, 110, 110, 110, 110, 110, 110, 110],
27
+ targetImageTranslateY: _defineProperty(_defineProperty({}, "first-left", [-300, -160, -160, -160, -110, 0, 0, 0]), "second-right", [-300, -160, -160, -160, -110, 0, 0, 0]),
27
28
  opacity: [0.1, 0.5, 0.7, 1, 1, 1, 1, 0],
28
- targetImageWidths: [60, 60, 170, 170, 170, 170, 170, 170],
29
- rotation: [180, 180, 180, 360, 360, 360, 360, 360],
29
+ targetImageWidths: [110, 110, 110, 110, 110, 110, 110, 110],
30
+ rotation: [360, 360, 360, 360, 360, 360, 360, 360],
30
31
  targetTextOpacity: [1, 1, 1, 1, 1, 1, 1, 0],
31
- textContainerWidth: width / 2 - 15 - 170 - 20,
32
+ textContainerWidth: width * 0.375,
32
33
  textContainerHeight: 170,
33
34
  lineJustifyContent: _defineProperty(_defineProperty({}, "first-left", "flex-start"), "second-right", "flex-end"),
34
- fullNameMaxFontSize: 42,
35
- titleMaxFontSize: 30,
36
- targetContainerTops: _defineProperty(_defineProperty({}, "first-left", [600, 600, 600, 600, 600, 600, 600, 600]), "second-right", [600, 600, 600, 600, 600, 600, 600, 600]),
37
- containerLeft: _defineProperty(_defineProperty({}, "first-left", 75), "second-right", -75),
35
+ fullNameMaxFontSize: 46,
36
+ titleMaxFontSize: 35,
37
+ targetContainerBottoms: _defineProperty(_defineProperty({}, "first-left", [200, 200, 200, 200, 200, 200, 200, 200]), "second-right", [200, 200, 200, 200, 200, 200, 200, 200]),
38
+ containerLeft: _defineProperty(_defineProperty({}, "first-left", 75), "second-right", undefined),
39
+ containerRight: _defineProperty(_defineProperty({}, "first-left", undefined), "second-right", 75),
38
40
  containerFlexDirection: _defineProperty(_defineProperty({}, "first-left", "row"), "second-right", "row-reverse"),
39
41
  containerAlignItems: _defineProperty(_defineProperty({}, "first-left", "center"), "second-right", "center")
40
42
  },
41
43
  square: {
42
- targetImageHeights: [130, 180, 150, 120, 150, 120, 120, 120],
43
- targetImageTranslateY: _defineProperty(_defineProperty({}, "first-left", [-770, -160, -160, -160, -110, 0, 0, 0]), "second-right", [-770, -160, -160, -160, -110, 0, 0, 0]),
44
+ targetImageHeights: [90, 90, 90, 90, 90, 90, 90, 90],
45
+ targetImageTranslateY: _defineProperty(_defineProperty({}, "first-left", [-300, -160, -160, -160, -110, 0, 0, 0]), "second-right", [-300, -160, -160, -160, -110, 0, 0, 0]),
44
46
  opacity: [0.1, 0.5, 0.7, 1, 1, 1, 1, 0],
45
- targetImageWidths: [60, 60, 120, 120, 120, 120, 120, 120],
47
+ targetImageWidths: [90, 90, 90, 90, 90, 90, 90, 90],
46
48
  rotation: [180, 180, 180, 360, 360, 360, 360, 360],
47
49
  targetTextOpacity: [1, 1, 1, 1, 1, 1, 1, 0],
48
- textContainerWidth: width / 2 - 15 - 170 - 20 - 20,
50
+ textContainerWidth: width * 0.375,
49
51
  textContainerHeight: 170,
50
52
  lineJustifyContent: _defineProperty(_defineProperty({}, "first-left", "flex-start"), "second-right", "flex-end"),
51
- fullNameMaxFontSize: 36,
52
- titleMaxFontSize: 24,
53
- targetContainerTops: _defineProperty(_defineProperty({}, "first-left", [750, 750, 750, 750, 750, 750, 750, 750]), "second-right", [750, 750, 750, 750, 750, 750, 750, 750]),
54
- containerLeft: _defineProperty(_defineProperty({}, "first-left", 50), "second-right", 580),
53
+ fullNameMaxFontSize: 24,
54
+ titleMaxFontSize: 18,
55
+ targetContainerBottoms: _defineProperty(_defineProperty({}, "first-left", [200, 200, 200, 200, 200, 200, 200, 200]), "second-right", [200, 200, 200, 200, 200, 200, 200, 200]),
56
+ containerLeft: _defineProperty(_defineProperty({}, "first-left", 50), "second-right", undefined),
57
+ containerRight: _defineProperty(_defineProperty({}, "first-left", undefined), "second-right", 50),
55
58
  containerFlexDirection: _defineProperty(_defineProperty({}, "first-left", "row"), "second-right", "row-reverse"),
56
59
  containerAlignItems: _defineProperty(_defineProperty({}, "first-left", "center"), "second-right", "center")
57
60
  }
@@ -1,3 +1,9 @@
1
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
2
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread 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 _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
5
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
6
+ 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; }
1
7
  import { AbsoluteFill, Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";
2
8
  import { useOrientationBased } from "../../../hooks/useOrientationBased.js";
3
9
  import { loadFont } from "@remotion/google-fonts/Roboto";
@@ -9,6 +15,26 @@ import React from "react";
9
15
  import PausableImg from "../../../components/utils/PausableImg";
10
16
  var _loadFont = loadFont(),
11
17
  fontFamily = _loadFont.fontFamily;
18
+ var withAlpha = function withAlpha(color, alpha) {
19
+ if (!color || typeof color !== "string" || !color.startsWith("#")) {
20
+ return color;
21
+ }
22
+ var hex = color.replace("#", "");
23
+ if (![3, 6].includes(hex.length)) {
24
+ return color;
25
+ }
26
+ var normalizedHex = hex.length === 3 ? hex.split("").map(function (_char) {
27
+ return _char + _char;
28
+ }).join("") : hex;
29
+ var intValue = Number.parseInt(normalizedHex, 16);
30
+ if (Number.isNaN(intValue)) {
31
+ return color;
32
+ }
33
+ var r = intValue >> 16 & 255;
34
+ var g = intValue >> 8 & 255;
35
+ var b = intValue & 255;
36
+ return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(alpha, ")");
37
+ };
12
38
  export var HandoffNametag = function HandoffNametag(_ref) {
13
39
  var pictureUrl = _ref.pictureUrl,
14
40
  fullName = _ref.fullName,
@@ -17,10 +43,13 @@ export var HandoffNametag = function HandoffNametag(_ref) {
17
43
  duration = _ref.duration;
18
44
  var _useVideoConfig = useVideoConfig(),
19
45
  fps = _useVideoConfig.fps,
20
- width = _useVideoConfig.width;
46
+ width = _useVideoConfig.width,
47
+ height = _useVideoConfig.height;
21
48
  var _useTheme = useTheme(),
22
49
  primaryColor = _useTheme.primaryColor,
23
- primaryContrast = _useTheme.primaryContrast;
50
+ primaryContrast = _useTheme.primaryContrast,
51
+ accentColor = _useTheme.accentColor,
52
+ accentContrast = _useTheme.accentContrast;
24
53
  var frame = useCurrentFrame();
25
54
  var _useOrientationBased = useOrientationBased(getHandoffNametagConfig(width)),
26
55
  targetImageHeights = _useOrientationBased.targetImageHeights,
@@ -33,13 +62,14 @@ export var HandoffNametag = function HandoffNametag(_ref) {
33
62
  titleMaxFontSize = _useOrientationBased.titleMaxFontSize,
34
63
  targetImageTranslateY = _useOrientationBased.targetImageTranslateY,
35
64
  containerLeft = _useOrientationBased.containerLeft,
36
- targetContainerTops = _useOrientationBased.targetContainerTops,
65
+ containerRight = _useOrientationBased.containerRight,
66
+ targetContainerBottoms = _useOrientationBased.targetContainerBottoms,
37
67
  containerFlexDirection = _useOrientationBased.containerFlexDirection,
38
68
  orientation = _useOrientationBased.orientation,
39
69
  containerAlignItems = _useOrientationBased.containerAlignItems,
40
70
  lineJustifyContent = _useOrientationBased.lineJustifyContent;
71
+ console.log(targetContainerBottoms);
41
72
  var isPortrait = orientation === "portrait";
42
- var isSquare = orientation === "square";
43
73
  var phaseDurationsInSeconds = isPortrait ? [0.1, 0.05, 0.05, 0.05, 0.05, 3.75, 0.4, duration - 3.75, 0.25] : [0.1, 0.05, 0.05, 0.05, 0.05, duration, 0.25];
44
74
  var inputRangeInSeconds = calculateInputRangeInPhases(phaseDurationsInSeconds, 0);
45
75
  var imageHeight = useTimeInterpolate(inputRangeInSeconds, targetImageHeights, DEFAULT_TIME_INTERPOLATE_OPTIONS);
@@ -47,46 +77,113 @@ export var HandoffNametag = function HandoffNametag(_ref) {
47
77
  var imageOpacity = useTimeInterpolate(inputRangeInSeconds, opacity, DEFAULT_TIME_INTERPOLATE_OPTIONS);
48
78
  var imageWidths = useTimeInterpolate(inputRangeInSeconds, targetImageWidths, DEFAULT_TIME_INTERPOLATE_OPTIONS);
49
79
  var imageRotation = useTimeInterpolate(inputRangeInSeconds, rotation, DEFAULT_TIME_INTERPOLATE_OPTIONS);
50
- var containerTop = useTimeInterpolate(inputRangeInSeconds, targetContainerTops[alignment], DEFAULT_TIME_INTERPOLATE_OPTIONS);
80
+ var containerBottom = useTimeInterpolate(inputRangeInSeconds, targetContainerBottoms[alignment], DEFAULT_TIME_INTERPOLATE_OPTIONS);
81
+ console.log(containerBottom);
51
82
  var maxTimeInFrames = 0.2 * fps;
52
- var splitFullName = fullName.split(" ");
53
- var fullNameDelayBetweenWords = maxTimeInFrames / splitFullName.length;
54
- var _distributeTextToFit = distributeTextToFit(fullName, textContainerWidth, textContainerHeight / 2, fullNameMaxFontSize),
83
+ var sanitizedFullName = (fullName === null || fullName === void 0 ? void 0 : fullName.trim()) || "";
84
+ var sanitizedTitle = (title === null || title === void 0 ? void 0 : title.trim()) || "";
85
+ var hasName = Boolean(sanitizedFullName.length);
86
+ var hasTitle = Boolean(sanitizedTitle.length);
87
+ var hasPicture = Boolean(pictureUrl);
88
+ var shouldShowInitial = hasName && hasTitle && !hasPicture;
89
+ var shouldRenderMedia = hasPicture || shouldShowInitial;
90
+ var fullNameInitial = sanitizedFullName.charAt(0).toUpperCase();
91
+ var pillBackground = withAlpha(primaryColor || "#1c1036", 0.65) || "#1c1036";
92
+ var pillBorderColor = withAlpha(accentColor || "#ffffff", 0.8) || "#ffffff";
93
+ var subtitleColor = withAlpha(primaryContrast || "#ffffff", 0.75) || "#ffffff";
94
+ var initialColor = accentContrast || primaryContrast || "#ffffff";
95
+ var splitFullName = sanitizedFullName ? sanitizedFullName.split(/\s+/) : [];
96
+ var fullNameDelayBetweenWords = splitFullName.length ? maxTimeInFrames / splitFullName.length : maxTimeInFrames;
97
+ var _distributeTextToFit = distributeTextToFit(sanitizedFullName, textContainerWidth, textContainerHeight / 2, fullNameMaxFontSize),
55
98
  fullNameLines = _distributeTextToFit.lines,
56
99
  fullNameFontSize = _distributeTextToFit.fontSize;
57
- var splitTitle = title !== null && title !== void 0 && title.length ? title.split(" ") : null;
100
+ var splitTitle = hasTitle ? sanitizedTitle.split(/\s+/) : null;
58
101
  var titleDelayBetweenWords = splitTitle ? maxTimeInFrames / splitTitle.length : 0;
59
- var _distributeTextToFit2 = distributeTextToFit(title || "", textContainerWidth, textContainerHeight / 2, titleMaxFontSize),
102
+ var _distributeTextToFit2 = distributeTextToFit(sanitizedTitle, textContainerWidth - 72, textContainerHeight / 2 - 40, titleMaxFontSize),
60
103
  titleLines = _distributeTextToFit2.lines,
61
104
  titleFontSize = _distributeTextToFit2.fontSize;
105
+ var mediaEntranceFrame = Math.max(frame - 5, 0);
106
+ var mediaEntranceOpacity = interpolate(mediaEntranceFrame, [0, 12], [0, 1], {
107
+ easing: Easing.out(Easing.ease),
108
+ extrapolateLeft: "clamp",
109
+ extrapolateRight: "clamp"
110
+ });
111
+ var mediaEntranceTranslateY = interpolate(mediaEntranceFrame, [0, 12], [25, 0], {
112
+ easing: Easing.out(Easing.ease),
113
+ extrapolateLeft: "clamp",
114
+ extrapolateRight: "clamp"
115
+ });
116
+ var titleAnimationFrame = Math.max(frame - maxTimeInFrames * 0.5, 0);
117
+ var titleOpacity = interpolate(titleAnimationFrame, [0, 12], [0, 1], {
118
+ easing: Easing.out(Easing.ease),
119
+ extrapolateLeft: "clamp",
120
+ extrapolateRight: "clamp"
121
+ });
122
+ var titleTranslateY = interpolate(titleAnimationFrame, [0, 12], [20, 0], {
123
+ easing: Easing.out(Easing.ease),
124
+ extrapolateLeft: "clamp",
125
+ extrapolateRight: "clamp"
126
+ });
127
+ var numericImageHeight = Number(imageHeight);
128
+ var numericImageWidth = Number(imageWidths);
129
+ var candidateSizes = [numericImageHeight, numericImageWidth].filter(function (size) {
130
+ return Number.isFinite(size) && size > 0;
131
+ });
132
+ var mediaBaseSize = candidateSizes.length ? Math.min.apply(Math, _toConsumableArray(candidateSizes)) : 60;
133
+ var initialsFontSize = Math.max(Math.round(mediaBaseSize * 0.45), 22);
62
134
  return /*#__PURE__*/React.createElement(AbsoluteFill, {
63
135
  style: {
64
- flexDirection: containerFlexDirection[alignment],
65
- left: containerLeft[alignment],
66
- top: containerTop,
67
- height: "min-content",
68
- alignItems: containerAlignItems[alignment],
69
- gap: isSquare ? "5px" : "20px",
136
+ height: height,
70
137
  opacity: imageOpacity,
71
- width: isSquare ? "min-content" : "100%"
138
+ width: "100%",
139
+ display: "flex",
140
+ alignItems: containerAlignItems[alignment]
72
141
  }
73
- }, pictureUrl && /*#__PURE__*/React.createElement("div", {
142
+ }, /*#__PURE__*/React.createElement("div", {
143
+ style: {
144
+ position: "absolute",
145
+ left: containerLeft[alignment],
146
+ right: containerRight[alignment],
147
+ bottom: containerBottom,
148
+ borderRadius: "10px",
149
+ padding: shouldRenderMedia || hasTitle ? "12px 18px" : "10px 22px",
150
+ display: "flex",
151
+ flexDirection: "column",
152
+ alignItems: "center"
153
+ }
154
+ }, /*#__PURE__*/React.createElement("div", {
155
+ style: {
156
+ backgroundColor: pillBackground,
157
+ borderRadius: "20px",
158
+ border: "1px solid ".concat(pillBorderColor),
159
+ padding: shouldRenderMedia || hasTitle ? "18px 32px" : "16px 36px",
160
+ display: "flex",
161
+ flexDirection: shouldRenderMedia ? containerFlexDirection[alignment] : "column",
162
+ alignItems: shouldRenderMedia ? containerAlignItems[alignment] : "center",
163
+ gap: shouldRenderMedia ? "20px" : "6px",
164
+ boxShadow: "0 20px 45px rgba(0, 0, 0, 0.35)",
165
+ maxWidth: textContainerWidth
166
+ }
167
+ }, shouldRenderMedia && /*#__PURE__*/React.createElement("div", {
74
168
  style: {
75
169
  height: imageHeight,
76
170
  width: imageWidths,
77
- backgroundColor: primaryColor,
171
+ backgroundColor: withAlpha(primaryContrast || "#ffffff", 0.15) || primaryContrast || "rgba(255,255,255,0.15)",
78
172
  borderRadius: "9999px",
79
- opacity: imageOpacity,
80
173
  display: "flex",
81
174
  justifyContent: "center",
82
175
  alignItems: "center",
83
176
  maxHeight: imageHeight,
84
177
  maxWidth: imageWidths,
178
+ minHeight: "".concat(mediaBaseSize, "px"),
179
+ minWidth: "".concat(mediaBaseSize, "px"),
85
180
  overflow: "hidden",
86
- border: "10px solid ".concat(primaryColor),
87
- transform: "translateY(".concat(imageTranslateY, "px)")
181
+ border: "4px solid ".concat(pillBorderColor),
182
+ transform: "translateY(".concat(Number(imageTranslateY) + mediaEntranceTranslateY, "px)"),
183
+ boxShadow: "0 12px 28px rgba(0, 0, 0, 0.45)",
184
+ opacity: imageOpacity * mediaEntranceOpacity
88
185
  }
89
- }, frame >= 4 && /*#__PURE__*/React.createElement(PausableImg, {
186
+ }, hasPicture && frame >= 4 ? /*#__PURE__*/React.createElement(PausableImg, {
90
187
  delayRenderTimeoutInMilliseconds: 62000,
91
188
  src: pictureUrl,
92
189
  style: {
@@ -95,11 +192,20 @@ export var HandoffNametag = function HandoffNametag(_ref) {
95
192
  height: "100%",
96
193
  transform: "rotate(".concat(imageRotation, "deg)")
97
194
  }
98
- })), /*#__PURE__*/React.createElement("div", {
195
+ }) : /*#__PURE__*/React.createElement("span", {
196
+ style: {
197
+ fontFamily: fontFamily,
198
+ color: initialColor,
199
+ fontSize: "".concat(initialsFontSize, "px"),
200
+ fontWeight: 700
201
+ }
202
+ }, fullNameInitial)), /*#__PURE__*/React.createElement("div", {
99
203
  style: {
100
204
  fontFamily: fontFamily,
101
205
  display: "flex",
102
- flexDirection: "column"
206
+ flexDirection: "column",
207
+ maxWidth: textContainerWidth,
208
+ gap: 10
103
209
  }
104
210
  }, /*#__PURE__*/React.createElement("div", {
105
211
  style: {
@@ -107,7 +213,6 @@ export var HandoffNametag = function HandoffNametag(_ref) {
107
213
  fontWeight: 900,
108
214
  color: primaryContrast,
109
215
  display: "flex",
110
- textTransform: "uppercase",
111
216
  flexDirection: "column"
112
217
  }
113
218
  }, fullNameLines.map(function (line, lineIndex) {
@@ -116,6 +221,7 @@ export var HandoffNametag = function HandoffNametag(_ref) {
116
221
  style: {
117
222
  display: "flex",
118
223
  gap: "10px",
224
+ flexWrap: "wrap",
119
225
  justifyContent: lineJustifyContent[alignment]
120
226
  },
121
227
  key: "fullname-line-".concat(lineIndex)
@@ -141,37 +247,13 @@ export var HandoffNametag = function HandoffNametag(_ref) {
141
247
  })), splitTitle && /*#__PURE__*/React.createElement("div", {
142
248
  style: {
143
249
  fontSize: "".concat(titleFontSize, "px"),
144
- fontWeight: 900,
145
- color: primaryColor,
250
+ fontWeight: 700,
251
+ color: subtitleColor,
146
252
  display: "flex",
147
- flexDirection: "column"
253
+ flexDirection: "column",
254
+ width: "100%",
255
+ opacity: titleOpacity,
256
+ transform: "translateY(".concat(titleTranslateY, "px)")
148
257
  }
149
- }, titleLines.map(function (line, lineIndex) {
150
- var index = 0;
151
- return /*#__PURE__*/React.createElement("div", {
152
- style: {
153
- display: "flex",
154
- gap: "10px",
155
- justifyContent: lineJustifyContent[alignment]
156
- },
157
- key: "title-line-".concat(lineIndex)
158
- }, line.split(" ").map(function (word, wordIndex) {
159
- var delay = Math.min(index * titleDelayBetweenWords, maxTimeInFrames);
160
- var opacity = interpolate(frame - delay, [0, 15], [0, 1], {
161
- easing: Easing["in"](Easing.ease),
162
- extrapolateRight: "clamp"
163
- });
164
- var translateY = interpolate(frame - delay, [0, 15], [50, 0], {
165
- easing: Easing["in"](Easing.ease),
166
- extrapolateRight: "clamp"
167
- });
168
- return /*#__PURE__*/React.createElement("span", {
169
- style: {
170
- opacity: opacity,
171
- transform: "translateY(".concat(translateY, "px)")
172
- },
173
- key: "title-word-".concat(lineIndex, "-").concat(wordIndex)
174
- }, word);
175
- }));
176
- }))));
258
+ }, sanitizedTitle)))));
177
259
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zync/zync-screnplay-player",
3
- "version": "0.1.189",
3
+ "version": "0.1.190",
4
4
  "files": [
5
5
  "dist"
6
6
  ],