@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.
- package/dist/bundle.js +1 -1
- package/dist/screenplay/RemotionRenderer/RemotionRenderer.js +17 -14
- package/dist/screenplay/RemotionRenderer/components/layouts/CreatorCollabColdOpen.js +741 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/CreatorCollabConversationSpine.js +607 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/CreatorCollabDocumentaryInset.js +606 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/CreatorCollabRackFocus.js +603 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/CreatorCollabStudioSet.js +589 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/DynamicTriangle.js +36 -6
- package/dist/screenplay/RemotionRenderer/components/layouts/Handoff.js +17 -6
- package/dist/screenplay/RemotionRenderer/components/layouts/IntroVideo.js +45 -8
- package/dist/screenplay/RemotionRenderer/components/layouts/Keyword.js +42 -9
- package/dist/screenplay/RemotionRenderer/components/layouts/KeywordStudioBackdrop.js +47 -10
- package/dist/screenplay/RemotionRenderer/components/layouts/MotionStill.js +42 -9
- package/dist/screenplay/RemotionRenderer/components/layouts/MotionStillStudioBackdrop.js +46 -9
- package/dist/screenplay/RemotionRenderer/components/layouts/SimpleFrame.js +21 -12
- package/dist/screenplay/RemotionRenderer/components/layouts/TextWithVideo.js +41 -8
- package/dist/screenplay/RemotionRenderer/development.js +164 -1239
- package/dist/screenplay/RemotionRenderer/hooks/useOrientationBased.js +7 -3
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/CreatorCollabColdOpenLayout.js +22 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/CreatorCollabConversationSpineLayout.js +22 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/CreatorCollabDocumentaryInsetLayout.js +22 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/CreatorCollabRackFocusLayout.js +22 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/CreatorCollabStudioSetLayout.js +22 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/DefaultLayout.js +2 -1
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/DynamicTriangleLayout.js +3 -2
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/HandoffLayout.js +3 -2
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/IntroVideoLayout.js +3 -1
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/KeywordLayout.js +3 -2
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/LayoutFactory.js +25 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/MotionStillLayout.js +3 -2
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/TextWithVideoLayout.js +3 -2
- package/dist/screenplay/RemotionRenderer/registeredComponents.js +10 -0
- package/package.json +1 -1
|
@@ -17,6 +17,8 @@ var Square = function Square(_ref) {
|
|
|
17
17
|
logoUrl = _ref.logoUrl,
|
|
18
18
|
logoLeft = _ref.logoLeft,
|
|
19
19
|
logoTop = _ref.logoTop,
|
|
20
|
+
_ref$logoPosition = _ref.logoPosition,
|
|
21
|
+
logoPosition = _ref$logoPosition === void 0 ? "fixed" : _ref$logoPosition,
|
|
20
22
|
frameColor = _ref.frameColor,
|
|
21
23
|
startVideoFrom = _ref.startVideoFrom,
|
|
22
24
|
noBackgroundVideoUrl = _ref.noBackgroundVideoUrl,
|
|
@@ -151,7 +153,7 @@ var Square = function Square(_ref) {
|
|
|
151
153
|
}
|
|
152
154
|
}, children), logoUrl ? /*#__PURE__*/React.createElement("div", {
|
|
153
155
|
style: {
|
|
154
|
-
position:
|
|
156
|
+
position: logoPosition,
|
|
155
157
|
left: logoLeft,
|
|
156
158
|
top: logoTop,
|
|
157
159
|
padding: 20,
|
|
@@ -176,6 +178,8 @@ var Portrait = function Portrait(_ref2) {
|
|
|
176
178
|
logoUrl = _ref2.logoUrl,
|
|
177
179
|
logoLeft = _ref2.logoLeft,
|
|
178
180
|
logoTop = _ref2.logoTop,
|
|
181
|
+
_ref2$logoPosition = _ref2.logoPosition,
|
|
182
|
+
logoPosition = _ref2$logoPosition === void 0 ? "fixed" : _ref2$logoPosition,
|
|
179
183
|
frameColor = _ref2.frameColor,
|
|
180
184
|
startVideoFrom = _ref2.startVideoFrom,
|
|
181
185
|
noBackgroundVideoUrl = _ref2.noBackgroundVideoUrl,
|
|
@@ -309,7 +313,7 @@ var Portrait = function Portrait(_ref2) {
|
|
|
309
313
|
}
|
|
310
314
|
}, children), logoUrl ? /*#__PURE__*/React.createElement("div", {
|
|
311
315
|
style: {
|
|
312
|
-
position:
|
|
316
|
+
position: logoPosition,
|
|
313
317
|
left: logoLeft,
|
|
314
318
|
top: logoTop,
|
|
315
319
|
padding: 20,
|
|
@@ -334,6 +338,8 @@ var Landscape = function Landscape(_ref3) {
|
|
|
334
338
|
logoUrl = _ref3.logoUrl,
|
|
335
339
|
logoLeft = _ref3.logoLeft,
|
|
336
340
|
logoTop = _ref3.logoTop,
|
|
341
|
+
_ref3$logoPosition = _ref3.logoPosition,
|
|
342
|
+
logoPosition = _ref3$logoPosition === void 0 ? "fixed" : _ref3$logoPosition,
|
|
337
343
|
frameColor = _ref3.frameColor,
|
|
338
344
|
startVideoFrom = _ref3.startVideoFrom,
|
|
339
345
|
noBackgroundVideoUrl = _ref3.noBackgroundVideoUrl,
|
|
@@ -468,7 +474,7 @@ var Landscape = function Landscape(_ref3) {
|
|
|
468
474
|
}
|
|
469
475
|
}, children), logoUrl ? /*#__PURE__*/React.createElement("div", {
|
|
470
476
|
style: {
|
|
471
|
-
position:
|
|
477
|
+
position: logoPosition,
|
|
472
478
|
left: logoLeft,
|
|
473
479
|
top: logoTop,
|
|
474
480
|
padding: 20,
|
|
@@ -485,6 +491,7 @@ var Landscape = function Landscape(_ref3) {
|
|
|
485
491
|
})) : null);
|
|
486
492
|
};
|
|
487
493
|
var MotionStillStudioBackdrop = function MotionStillStudioBackdrop(_ref4) {
|
|
494
|
+
var _compositionProps$out, _window, _window$screenplayPro, _window$screenplayPro2;
|
|
488
495
|
var videoUrl = _ref4.videoUrl,
|
|
489
496
|
startVideoFrom = _ref4.startVideoFrom,
|
|
490
497
|
imageUrl = _ref4.imageUrl,
|
|
@@ -498,11 +505,22 @@ var MotionStillStudioBackdrop = function MotionStillStudioBackdrop(_ref4) {
|
|
|
498
505
|
durationInFrames = _ref4.durationInFrames,
|
|
499
506
|
faceMetadata = _ref4.faceMetadata,
|
|
500
507
|
muted = _ref4.muted,
|
|
501
|
-
noBackgroundVideoEffects = _ref4.noBackgroundVideoEffects
|
|
508
|
+
noBackgroundVideoEffects = _ref4.noBackgroundVideoEffects,
|
|
509
|
+
_ref4$useSquareInLand = _ref4.useSquareInLandscape,
|
|
510
|
+
useSquareInLandscape = _ref4$useSquareInLand === void 0 ? false : _ref4$useSquareInLand;
|
|
502
511
|
var _useVideoConfig = useVideoConfig(),
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
fps = _useVideoConfig.fps
|
|
512
|
+
outputWidth = _useVideoConfig.width,
|
|
513
|
+
outputHeight = _useVideoConfig.height,
|
|
514
|
+
fps = _useVideoConfig.fps,
|
|
515
|
+
_useVideoConfig$props = _useVideoConfig.props,
|
|
516
|
+
compositionProps = _useVideoConfig$props === void 0 ? {} : _useVideoConfig$props;
|
|
517
|
+
var outputOrientation = (compositionProps === null || compositionProps === void 0 ? void 0 : (_compositionProps$out = compositionProps.output) === null || _compositionProps$out === void 0 ? void 0 : _compositionProps$out.orientation) || (typeof window !== "undefined" ? (_window = window) === null || _window === void 0 ? void 0 : (_window$screenplayPro = _window.screenplayProps) === null || _window$screenplayPro === void 0 ? void 0 : (_window$screenplayPro2 = _window$screenplayPro.output) === null || _window$screenplayPro2 === void 0 ? void 0 : _window$screenplayPro2.orientation : undefined);
|
|
518
|
+
var shouldUseSquareInLandscape = Boolean(useSquareInLandscape) && outputOrientation === "landscape";
|
|
519
|
+
var squareSize = 1080;
|
|
520
|
+
var width = shouldUseSquareInLandscape ? squareSize : outputWidth;
|
|
521
|
+
var height = shouldUseSquareInLandscape ? squareSize : outputHeight;
|
|
522
|
+
var renderOffsetX = shouldUseSquareInLandscape ? (outputWidth - squareSize) / 2 : 0;
|
|
523
|
+
var orientationOverride = shouldUseSquareInLandscape ? "square" : undefined;
|
|
506
524
|
var frame = useCurrentFrame();
|
|
507
525
|
var _useVirtualBackground = useVirtualBackground(),
|
|
508
526
|
isVirtual = _useVirtualBackground.isVirtual,
|
|
@@ -524,7 +542,7 @@ var MotionStillStudioBackdrop = function MotionStillStudioBackdrop(_ref4) {
|
|
|
524
542
|
logoLeft: CHROME_PADDING * 2,
|
|
525
543
|
BrollStudioBackdropComponent: Square
|
|
526
544
|
}
|
|
527
|
-
}),
|
|
545
|
+
}, orientationOverride),
|
|
528
546
|
BrollStudioBackdropComponent = _useOrientationBased.BrollStudioBackdropComponent,
|
|
529
547
|
logoTop = _useOrientationBased.logoTop,
|
|
530
548
|
logoLeft = _useOrientationBased.logoLeft;
|
|
@@ -562,7 +580,7 @@ var MotionStillStudioBackdrop = function MotionStillStudioBackdrop(_ref4) {
|
|
|
562
580
|
// Middle section - fully visible
|
|
563
581
|
brollSpringProgress = 1;
|
|
564
582
|
}
|
|
565
|
-
|
|
583
|
+
var content = /*#__PURE__*/React.createElement(React.Fragment, null, !disableTransitionSounds && /*#__PURE__*/React.createElement(Audio, {
|
|
566
584
|
src: "https://cdn.zync.ai/assets/static/swoosh.mp3",
|
|
567
585
|
volume: 0.25
|
|
568
586
|
}), /*#__PURE__*/React.createElement(BrollStudioBackdropComponent, {
|
|
@@ -577,6 +595,7 @@ var MotionStillStudioBackdrop = function MotionStillStudioBackdrop(_ref4) {
|
|
|
577
595
|
sourceVideoOrientation: sourceVideoOrientation,
|
|
578
596
|
logoLeft: logoLeft,
|
|
579
597
|
logoTop: logoTop,
|
|
598
|
+
logoPosition: shouldUseSquareInLandscape ? "absolute" : "fixed",
|
|
580
599
|
videoUrl: videoUrl,
|
|
581
600
|
faceMetadata: faceMetadata,
|
|
582
601
|
muted: muted,
|
|
@@ -584,5 +603,23 @@ var MotionStillStudioBackdrop = function MotionStillStudioBackdrop(_ref4) {
|
|
|
584
603
|
showVirtual: showVirtual,
|
|
585
604
|
virtualBgUrl: virtualBgUrl
|
|
586
605
|
}, children));
|
|
606
|
+
if (!shouldUseSquareInLandscape) {
|
|
607
|
+
return content;
|
|
608
|
+
}
|
|
609
|
+
return /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
610
|
+
style: {
|
|
611
|
+
width: outputWidth,
|
|
612
|
+
height: outputHeight,
|
|
613
|
+
backgroundColor: "black"
|
|
614
|
+
}
|
|
615
|
+
}, /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
616
|
+
style: {
|
|
617
|
+
width: width,
|
|
618
|
+
height: height,
|
|
619
|
+
left: renderOffsetX,
|
|
620
|
+
top: 0,
|
|
621
|
+
overflow: "hidden"
|
|
622
|
+
}
|
|
623
|
+
}, content));
|
|
587
624
|
};
|
|
588
625
|
export { MotionStillStudioBackdrop };
|
|
@@ -45,23 +45,14 @@ export var SimpleFrame = function SimpleFrame(_ref) {
|
|
|
45
45
|
extrapolateLeft: "clamp",
|
|
46
46
|
easing: Easing["in"](Easing.quad)
|
|
47
47
|
});
|
|
48
|
-
|
|
49
|
-
src: "https://cdn.zync.ai/assets/static/swoosh.mp3",
|
|
50
|
-
volume: 0.25
|
|
51
|
-
}), /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
52
|
-
style: {
|
|
53
|
-
backgroundColor: shouldUseSquareInLandscape ? "black" : "transparent",
|
|
54
|
-
width: width,
|
|
55
|
-
height: height
|
|
56
|
-
}
|
|
57
|
-
}, /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
48
|
+
var content = /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
58
49
|
style: {
|
|
59
50
|
backgroundColor: frameColor || "transparent",
|
|
60
51
|
padding: frameColor ? CHROME_PADDING : 0,
|
|
61
52
|
isolation: "isolate",
|
|
62
53
|
width: renderWidth,
|
|
63
54
|
height: renderHeight,
|
|
64
|
-
left:
|
|
55
|
+
left: 0,
|
|
65
56
|
top: 0
|
|
66
57
|
}
|
|
67
58
|
}, faceMetadata ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -199,5 +190,23 @@ export var SimpleFrame = function SimpleFrame(_ref) {
|
|
|
199
190
|
objectFit: "contain"
|
|
200
191
|
},
|
|
201
192
|
src: logoUrl
|
|
202
|
-
})) : null)
|
|
193
|
+
})) : null);
|
|
194
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !disableTransitionSounds && /*#__PURE__*/React.createElement(Audio, {
|
|
195
|
+
src: "https://cdn.zync.ai/assets/static/swoosh.mp3",
|
|
196
|
+
volume: 0.25
|
|
197
|
+
}), shouldUseSquareInLandscape ? /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
198
|
+
style: {
|
|
199
|
+
backgroundColor: "black",
|
|
200
|
+
width: width,
|
|
201
|
+
height: height
|
|
202
|
+
}
|
|
203
|
+
}, /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
204
|
+
style: {
|
|
205
|
+
width: renderWidth,
|
|
206
|
+
height: renderHeight,
|
|
207
|
+
left: offsetX,
|
|
208
|
+
top: 0,
|
|
209
|
+
overflow: "hidden"
|
|
210
|
+
}
|
|
211
|
+
}, content)) : content);
|
|
203
212
|
};
|
|
@@ -31,10 +31,12 @@ var Logo = function Logo(_ref) {
|
|
|
31
31
|
var logoUrl = _ref.logoUrl,
|
|
32
32
|
top = _ref.top,
|
|
33
33
|
left = _ref.left,
|
|
34
|
-
right = _ref.right
|
|
34
|
+
right = _ref.right,
|
|
35
|
+
_ref$position = _ref.position,
|
|
36
|
+
position = _ref$position === void 0 ? "fixed" : _ref$position;
|
|
35
37
|
return logoUrl ? /*#__PURE__*/React.createElement("div", {
|
|
36
38
|
style: {
|
|
37
|
-
position:
|
|
39
|
+
position: position,
|
|
38
40
|
zIndex: 1,
|
|
39
41
|
top: top,
|
|
40
42
|
left: left,
|
|
@@ -97,6 +99,7 @@ var RevealingLine = function RevealingLine(_ref2) {
|
|
|
97
99
|
}));
|
|
98
100
|
};
|
|
99
101
|
var TextWithVideoLandscape = function TextWithVideoLandscape(_ref3) {
|
|
102
|
+
var _compositionProps$out, _window, _window$screenplayPro, _window$screenplayPro2;
|
|
100
103
|
var startVideoFrom = _ref3.startVideoFrom,
|
|
101
104
|
videoUrl = _ref3.videoUrl,
|
|
102
105
|
logoUrl = _ref3.logoUrl,
|
|
@@ -110,10 +113,21 @@ var TextWithVideoLandscape = function TextWithVideoLandscape(_ref3) {
|
|
|
110
113
|
faceMetadata = _ref3.faceMetadata,
|
|
111
114
|
muted = _ref3.muted,
|
|
112
115
|
noBackgroundVideoEffects = _ref3.noBackgroundVideoEffects,
|
|
113
|
-
noBackgroundVideoUrl = _ref3.noBackgroundVideoUrl
|
|
116
|
+
noBackgroundVideoUrl = _ref3.noBackgroundVideoUrl,
|
|
117
|
+
_ref3$useSquareInLand = _ref3.useSquareInLandscape,
|
|
118
|
+
useSquareInLandscape = _ref3$useSquareInLand === void 0 ? false : _ref3$useSquareInLand;
|
|
114
119
|
var _useVideoConfig = useVideoConfig(),
|
|
115
|
-
|
|
116
|
-
|
|
120
|
+
outputWidth = _useVideoConfig.width,
|
|
121
|
+
outputHeight = _useVideoConfig.height,
|
|
122
|
+
_useVideoConfig$props = _useVideoConfig.props,
|
|
123
|
+
compositionProps = _useVideoConfig$props === void 0 ? {} : _useVideoConfig$props;
|
|
124
|
+
var outputOrientation = (compositionProps === null || compositionProps === void 0 ? void 0 : (_compositionProps$out = compositionProps.output) === null || _compositionProps$out === void 0 ? void 0 : _compositionProps$out.orientation) || (typeof window !== "undefined" ? (_window = window) === null || _window === void 0 ? void 0 : (_window$screenplayPro = _window.screenplayProps) === null || _window$screenplayPro === void 0 ? void 0 : (_window$screenplayPro2 = _window$screenplayPro.output) === null || _window$screenplayPro2 === void 0 ? void 0 : _window$screenplayPro2.orientation : undefined);
|
|
125
|
+
var shouldUseSquareInLandscape = Boolean(useSquareInLandscape) && outputOrientation === "landscape";
|
|
126
|
+
var squareSize = 1080;
|
|
127
|
+
var width = shouldUseSquareInLandscape ? squareSize : outputWidth;
|
|
128
|
+
var height = shouldUseSquareInLandscape ? squareSize : outputHeight;
|
|
129
|
+
var renderOffsetX = shouldUseSquareInLandscape ? (outputWidth - squareSize) / 2 : 0;
|
|
130
|
+
var orientationOverride = shouldUseSquareInLandscape ? "square" : undefined;
|
|
117
131
|
var _useVirtualBackground = useVirtualBackground(),
|
|
118
132
|
isVirtual = _useVirtualBackground.isVirtual,
|
|
119
133
|
virtualBgUrl = _useVirtualBackground.url;
|
|
@@ -161,7 +175,7 @@ var TextWithVideoLandscape = function TextWithVideoLandscape(_ref3) {
|
|
|
161
175
|
maxFontSize: 50,
|
|
162
176
|
flowDirection: stylesByVariant[variant].flowDirection
|
|
163
177
|
}
|
|
164
|
-
}),
|
|
178
|
+
}, orientationOverride),
|
|
165
179
|
targetTextWidth = _useOrientationBased.targetTextWidth,
|
|
166
180
|
targetTextHeight = _useOrientationBased.targetTextHeight,
|
|
167
181
|
targetVideoWidth = _useOrientationBased.targetVideoWidth,
|
|
@@ -191,7 +205,7 @@ var TextWithVideoLandscape = function TextWithVideoLandscape(_ref3) {
|
|
|
191
205
|
var _distributeTextToFit = distributeTextToFit(text, targetTextWidth - 100, targetTextHeight - 100, maxFontSize),
|
|
192
206
|
lines = _distributeTextToFit.lines,
|
|
193
207
|
fontSize = _distributeTextToFit.fontSize;
|
|
194
|
-
|
|
208
|
+
var content = /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
195
209
|
style: {
|
|
196
210
|
isolation: "isolate",
|
|
197
211
|
width: width,
|
|
@@ -203,7 +217,8 @@ var TextWithVideoLandscape = function TextWithVideoLandscape(_ref3) {
|
|
|
203
217
|
logoUrl: logoUrl,
|
|
204
218
|
top: logoTop,
|
|
205
219
|
left: logoLeft,
|
|
206
|
-
right: logoRight
|
|
220
|
+
right: logoRight,
|
|
221
|
+
position: shouldUseSquareInLandscape ? "absolute" : "fixed"
|
|
207
222
|
}), /*#__PURE__*/React.createElement("div", {
|
|
208
223
|
style: {
|
|
209
224
|
display: "flex",
|
|
@@ -352,6 +367,24 @@ var TextWithVideoLandscape = function TextWithVideoLandscape(_ref3) {
|
|
|
352
367
|
zIndex: 10
|
|
353
368
|
}
|
|
354
369
|
}, children));
|
|
370
|
+
if (!shouldUseSquareInLandscape) {
|
|
371
|
+
return content;
|
|
372
|
+
}
|
|
373
|
+
return /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
374
|
+
style: {
|
|
375
|
+
width: outputWidth,
|
|
376
|
+
height: outputHeight,
|
|
377
|
+
backgroundColor: "black"
|
|
378
|
+
}
|
|
379
|
+
}, /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
380
|
+
style: {
|
|
381
|
+
width: width,
|
|
382
|
+
height: height,
|
|
383
|
+
left: renderOffsetX,
|
|
384
|
+
top: 0,
|
|
385
|
+
overflow: "hidden"
|
|
386
|
+
}
|
|
387
|
+
}, content));
|
|
355
388
|
};
|
|
356
389
|
export var TextWithVideo = function TextWithVideo(props) {
|
|
357
390
|
var _useTheme = useTheme(),
|