@zync/zync-screnplay-player 0.1.230 → 0.1.231

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.
@@ -29,58 +29,58 @@ export var screenplaySchema = z.object({
29
29
  }), z.object({
30
30
  type: "segmentx"
31
31
  })])),
32
- /* z.object({
33
- type: "segment",
34
- segments: z.array(
35
- z.object({
36
- layout: z.any(),
37
- effects: z.array(effectSchema),
38
- })
39
- ),
32
+ /* z.object({
33
+ type: "segment",
34
+ segments: z.array(
35
+ z.object({
36
+ layout: z.any(),
37
+ effects: z.array(effectSchema),
38
+ })
39
+ ),
40
40
  })*/
41
- /*z.object({
42
- type: "effect",
43
- segments: z.array(effectSchema),
44
- }),
45
- z.object({
46
- type: z.enum(segmentTypes),
47
- segments: z.array([
48
- {
49
- type: "caption",
50
- segments: z.array(
51
- z.object({
52
- type: "caption_simple",
53
- data: {
54
- transcript_text: z.array(
55
- z.object({
56
- text: z.string(),
57
- offset: z.number(),
58
- duration: z.number(),
59
- })
60
- ),
61
- duration: z.number().optional(),
62
- offset: z.number().optional(),
63
- },
64
- })
65
- ),
66
- },
67
- ]),
68
- }),
69
- z.object({
70
- type: "audio",
71
- segments: z.array([
72
- z.object({
73
- type: z.string(),
74
- data: {
75
- sourceAudio: {
76
- url: z.string().url(),
77
- volume: z.number().min(0).max(1),
78
- start: z.number(),
79
- },
80
- offset: z.number(),
81
- },
82
- }),
83
- ]),
41
+ /*z.object({
42
+ type: "effect",
43
+ segments: z.array(effectSchema),
44
+ }),
45
+ z.object({
46
+ type: z.enum(segmentTypes),
47
+ segments: z.array([
48
+ {
49
+ type: "caption",
50
+ segments: z.array(
51
+ z.object({
52
+ type: "caption_simple",
53
+ data: {
54
+ transcript_text: z.array(
55
+ z.object({
56
+ text: z.string(),
57
+ offset: z.number(),
58
+ duration: z.number(),
59
+ })
60
+ ),
61
+ duration: z.number().optional(),
62
+ offset: z.number().optional(),
63
+ },
64
+ })
65
+ ),
66
+ },
67
+ ]),
68
+ }),
69
+ z.object({
70
+ type: "audio",
71
+ segments: z.array([
72
+ z.object({
73
+ type: z.string(),
74
+ data: {
75
+ sourceAudio: {
76
+ url: z.string().url(),
77
+ volume: z.number().min(0).max(1),
78
+ start: z.number(),
79
+ },
80
+ offset: z.number(),
81
+ },
82
+ }),
83
+ ]),
84
84
  }),*/
85
85
  output: z.object({
86
86
  orientation: z["enum"](orientations),
@@ -46,8 +46,8 @@ import { KeywordStudioBackdrop } from "./components/layouts/KeywordStudioBackdro
46
46
  import { MotionStillGreenScreenV2 } from "./components/layouts/MotionStillGreenScreenV2";
47
47
  import { HookVideo } from "./components/layouts/HookVideo";
48
48
 
49
- /** Update this so that Remotion knows which component to render when it is passed via screenplay. Ex. "title" will have rendered "Title" component
50
- * Here we are mapping directly types and component names. Types are snake_case and components PascalCase.
49
+ /** Update this so that Remotion knows which component to render when it is passed via screenplay. Ex. "title" will have rendered "Title" component
50
+ * Here we are mapping directly types and component names. Types are snake_case and components PascalCase.
51
51
  * */
52
52
  export var RegisteredComponents = {
53
53
  // Layouts
@@ -62,26 +62,26 @@ var transitionThemes = {
62
62
  }
63
63
  };
64
64
 
65
- /*
66
- const UseMotionBlur = ({ children, componentName }) => {
67
- const {
68
- props: {
69
- output: { theme = "default" } = {
70
- theme: window.screenplayProps.output.theme,
71
- },
72
- },
73
- } = useVideoConfig();
74
-
75
- if (motionBlurComponents[componentName] && motionBlurThemes[theme]) {
76
- return (
77
- <CameraMotionBlur shutterAngle={180} samples={5}>
78
- {children}
79
- </CameraMotionBlur>
80
- );
81
- }
82
-
83
- return children;
84
- };
65
+ /*
66
+ const UseMotionBlur = ({ children, componentName }) => {
67
+ const {
68
+ props: {
69
+ output: { theme = "default" } = {
70
+ theme: window.screenplayProps.output.theme,
71
+ },
72
+ },
73
+ } = useVideoConfig();
74
+
75
+ if (motionBlurComponents[componentName] && motionBlurThemes[theme]) {
76
+ return (
77
+ <CameraMotionBlur shutterAngle={180} samples={5}>
78
+ {children}
79
+ </CameraMotionBlur>
80
+ );
81
+ }
82
+
83
+ return children;
84
+ };
85
85
  */
86
86
 
87
87
  var isTruthy = function isTruthy(value) {
package/package.json CHANGED
@@ -1,47 +1,47 @@
1
- {
2
- "name": "@zync/zync-screnplay-player",
3
- "version": "0.1.230",
4
- "files": [
5
- "dist"
6
- ],
7
- "main": "dist/bundle.js",
8
- "module": "dist/index.js",
9
- "exports": {
10
- "import": "./dist/index.js",
11
- "require": "./dist/bundle.js"
12
- },
13
- "scripts": {
14
- "clean": "rimraf dist",
15
- "build": "npm run clean && babel src --out-dir dist --extensions \".ts,.tsx,.js,.jsx\" --copy-files && webpack",
16
- "publish-lib": "npm run build && npm publish --access public"
17
- },
18
- "dependencies": {
19
- "@remotion/google-fonts": "4.0.441",
20
- "@remotion/lottie": "4.0.441",
21
- "@remotion/motion-blur": "4.0.441",
22
- "@remotion/player": "4.0.441",
23
- "@remotion/transitions": "4.0.441",
24
- "remotion": "4.0.441"
25
- },
26
- "peerDependencies": {
27
- "react": "16.14.0",
28
- "react-dom": "16.14.0"
29
- },
30
- "devDependencies": {
31
- "@babel/cli": "7.21.5",
32
- "@babel/core": "7.21.5",
33
- "@babel/preset-env": "7.21.5",
34
- "@babel/preset-react": "7.18.6",
35
- "@babel/preset-typescript": "^7.26.0",
36
- "babel-loader": "^9.2.1",
37
- "terser-webpack-plugin": "^5.3.11",
38
- "ts-loader": "^9.5.2",
39
- "typescript": "^5.7.3",
40
- "webpack": "^5.97.1",
41
- "webpack-cli": "^6.0.1",
42
- "rimraf": "^5.0.7"
43
- },
44
- "browser": {
45
- "fs": false
46
- }
47
- }
1
+ {
2
+ "name": "@zync/zync-screnplay-player",
3
+ "version": "0.1.231",
4
+ "files": [
5
+ "dist"
6
+ ],
7
+ "main": "dist/bundle.js",
8
+ "module": "dist/index.js",
9
+ "exports": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/bundle.js"
12
+ },
13
+ "scripts": {
14
+ "clean": "rimraf dist",
15
+ "build": "npm run clean && babel src --out-dir dist --extensions \".ts,.tsx,.js,.jsx\" --copy-files && webpack",
16
+ "publish-lib": "npm run build && npm publish --access public"
17
+ },
18
+ "dependencies": {
19
+ "@remotion/google-fonts": "4.0.441",
20
+ "@remotion/lottie": "4.0.441",
21
+ "@remotion/motion-blur": "4.0.441",
22
+ "@remotion/player": "4.0.441",
23
+ "@remotion/transitions": "4.0.441",
24
+ "remotion": "4.0.441"
25
+ },
26
+ "peerDependencies": {
27
+ "react": "16.14.0",
28
+ "react-dom": "16.14.0"
29
+ },
30
+ "devDependencies": {
31
+ "@babel/cli": "7.21.5",
32
+ "@babel/core": "7.21.5",
33
+ "@babel/preset-env": "7.21.5",
34
+ "@babel/preset-react": "7.18.6",
35
+ "@babel/preset-typescript": "^7.26.0",
36
+ "babel-loader": "^9.2.1",
37
+ "terser-webpack-plugin": "^5.3.11",
38
+ "ts-loader": "^9.5.2",
39
+ "typescript": "^5.7.3",
40
+ "webpack": "^5.97.1",
41
+ "webpack-cli": "^6.0.1",
42
+ "rimraf": "^5.0.7"
43
+ },
44
+ "browser": {
45
+ "fs": false
46
+ }
47
+ }