@zync/zync-screnplay-player 0.1.243 → 0.1.245

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.
@@ -41,7 +41,7 @@ var getInsetMetrics = function getInsetMetrics(_ref2) {
41
41
  borderRadius: Math.max(18, finalWidth * 0.06),
42
42
  height: finalHeight,
43
43
  left: padding,
44
- top: height - padding - finalHeight,
44
+ top: outputOrientation === "portrait" ? Math.min((height - finalHeight) / 2 + height * 0.08, height - padding - finalHeight) : height - padding - finalHeight,
45
45
  width: finalWidth
46
46
  };
47
47
  };
@@ -41,7 +41,7 @@ var getInsetMetrics = function getInsetMetrics(_ref2) {
41
41
  borderRadius: Math.max(18, finalWidth * 0.06),
42
42
  height: finalHeight,
43
43
  left: padding,
44
- top: height - padding - finalHeight,
44
+ top: outputOrientation === "portrait" ? Math.min((height - finalHeight) / 2 + height * 0.08, height - padding - finalHeight) : height - padding - finalHeight,
45
45
  width: finalWidth
46
46
  };
47
47
  };
@@ -329,7 +329,7 @@ var renderer = new RemotionRenderer({
329
329
  }, {
330
330
  recordingIndex: "3",
331
331
  layout: {
332
- type: "broll_studio_backdrop",
332
+ type: "broll_inset",
333
333
  data: {
334
334
  noBackgroundVideoEffects: {
335
335
  facePop: false,
@@ -756,7 +756,8 @@ var renderer = new RemotionRenderer({
756
756
  }, {
757
757
  recordingIndex: "4",
758
758
  layout: {
759
- type: "text_with_video",
759
+ type: "simple_frame_sentence",
760
+ theme: "fullcover",
760
761
  data: {
761
762
  noBackgroundVideoEffects: {
762
763
  facePop: false,
@@ -1,6 +1,5 @@
1
1
  import { SimpleFrame } from "./components/layouts/SimpleFrame";
2
2
  import { TextWithVideo } from "./components/layouts/TextWithVideo";
3
- import { TextFullCover } from "./components/layouts/TextFullCover";
4
3
  import { BrollFullscreen } from "./components/effects/BrollFullscreen";
5
4
  import { PhraseRainbowEffect } from "./components/effects/PhraseRainbowEffect";
6
5
  import { Sentence } from "./components/effects/Sentence";
@@ -59,7 +58,6 @@ export var RegisteredComponents = {
59
58
  SimpleFrameSentence: SimpleFrameSentence,
60
59
  SimpleFrameZoomCut: SimpleFrameZoomCut,
61
60
  TextWithVideo: TextWithVideo,
62
- TextFullCover: TextFullCover,
63
61
  Handoff: Handoff,
64
62
  MultiHandoff: MultiHandoff,
65
63
  CreatorCollabSplit: CreatorCollabSplit,
@@ -31,6 +31,7 @@ import { BoxwipeNametag } from "../themes/boxwipe/Nametag";
31
31
  import { StackfillNametag } from "../themes/stackfill/Nametag";
32
32
  import { RightslideNametag } from "../themes/rightslide/Nametag";
33
33
  import { KeyPointOverlayDepth } from "../../components/layouts/KeyPointOverlayDepth";
34
+ import { TextFullCover } from "../themes/fullcover/TextFullCover";
34
35
 
35
36
  /** Always update this when adding a new theme and/or components. */
36
37
  var themedComponents = {
@@ -93,6 +94,9 @@ var themedComponents = {
93
94
  },
94
95
  depth: {
95
96
  Sentence: KeyPointOverlayDepth
97
+ },
98
+ fullcover: {
99
+ Sentence: TextFullCover
96
100
  }
97
101
  };
98
102
  export var useThemedComponents = function useThemedComponents(componentName, overrideTheme) {
@@ -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, Sequence, interpolate, random, spring, useCurrentFrame, useVideoConfig } from "remotion";
2
8
  import React from "react";
3
9
  import { loadFont as loadRegularFont } from "@remotion/google-fonts/Montserrat";
@@ -13,6 +19,7 @@ var toNumber = function toNumber(value, fallback) {
13
19
  var parsed = Number(value);
14
20
  return Number.isFinite(parsed) ? parsed : fallback;
15
21
  };
22
+ var blackOutlineShadow = ["-2px -2px 0 #000", "0 -2px 0 #000", "2px -2px 0 #000", "2px 0 0 #000", "2px 2px 0 #000", "0 2px 0 #000", "-2px 2px 0 #000", "-2px 0 0 #000"];
16
23
  export var CaptionElegant = function CaptionElegant(_ref) {
17
24
  var transcripts = _ref.transcripts,
18
25
  color = _ref.color;
@@ -122,7 +129,7 @@ export var CaptionElegant = function CaptionElegant(_ref) {
122
129
  opacity: opacity,
123
130
  transform: "translateY(".concat(translateY, "px)"),
124
131
  color: baseColor,
125
- textShadow: isCursiveWord ? "0 0 1px rgba(255,255,255,.85), 0 0 4px rgba(255,255,255,.55), 0 0 10px rgba(255,255,255,.25)" : "0 3px 0 rgba(0,0,0,.18)",
132
+ textShadow: [].concat(blackOutlineShadow, _toConsumableArray(isCursiveWord ? ["0 0 1px rgba(255,255,255,.85)", "0 0 4px rgba(255,255,255,.55)", "0 0 10px rgba(255,255,255,.25)"] : ["0 3px 0 rgba(0,0,0,.18)"])).join(", "),
126
133
  WebkitFontSmoothing: "antialiased",
127
134
  MozOsxFontSmoothing: "grayscale",
128
135
  transition: "font-family 0.2s ease, font-weight 0.2s ease",
@@ -220,7 +220,8 @@ export var TextFullCover = function TextFullCover(_ref5) {
220
220
  backgroundColor: shouldWipe ? previousBackgroundColor : currentBackgroundColor,
221
221
  display: "flex",
222
222
  justifyContent: "center",
223
- overflow: "hidden"
223
+ overflow: "hidden",
224
+ zIndex: -1
224
225
  }
225
226
  }, videoUrl ? /*#__PURE__*/React.createElement(AbsoluteFill, {
226
227
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zync/zync-screnplay-player",
3
- "version": "0.1.243",
3
+ "version": "0.1.245",
4
4
  "files": [
5
5
  "dist"
6
6
  ],