@remotion/cli 4.0.48 → 4.0.49

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/LICENSE.md CHANGED
@@ -7,7 +7,7 @@ Depending on the type of your legal entity, you are granted permission to use Re
7
7
 
8
8
  ## Free license
9
9
 
10
- Copyright © 2023 [Remotion](https://www.remotion.dev/)
10
+ Copyright © 2023 [Remotion](https://www.remotion.dev)
11
11
 
12
12
  ### Eligibility
13
13
 
@@ -36,6 +36,10 @@ Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
36
36
 
37
37
  ## Company license
38
38
 
39
- You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support (read the [Support Policy](/docs/support)).
39
+ You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support (read the [Support Policy](https://www.remotion.dev/docs/support)).
40
40
 
41
- Visit [remotion.pro](https://www.remotion.pro) for pricing and to buy a license.
41
+ Visit [remotion.pro](https://www.remotion.pro/license) for pricing and to buy a license.
42
+
43
+ ### FAQs
44
+
45
+ Are you not sure whether you need a company license because of an edge case? Here are some [frequently asked questions](https://www.remotion.pro/faq).
@@ -1 +1 @@
1
- export declare const getLogLevel: () => "verbose" | "info" | "warn" | "error", setLogLevel: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1
+ export declare const getLogLevel: () => "error" | "verbose" | "info" | "warn", setLogLevel: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
@@ -12,6 +12,6 @@ export declare const getInputBorderColor: ({ status, isFocused, isHovered, }: {
12
12
  status: 'error' | 'warning' | 'ok';
13
13
  isFocused: boolean;
14
14
  isHovered: boolean;
15
- }) => "hsla(0, 0%, 100%, 0.15)" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)" | "#ff3232" | "#f1c40f";
16
- export declare const RemotionInput: React.ForwardRefExoticComponent<Pick<Props, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "status" | "rightAlign"> & React.RefAttributes<HTMLInputElement>>;
15
+ }) => "#ff3232" | "hsla(0, 0%, 100%, 0.15)" | "#f1c40f" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)";
16
+ export declare const RemotionInput: React.ForwardRefExoticComponent<Pick<Props, "key" | "status" | "rightAlign" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
17
17
  export {};
@@ -4,5 +4,5 @@ type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>
4
4
  status: RemInputStatus;
5
5
  name: string;
6
6
  };
7
- export declare const RemInputTypeColor: React.ForwardRefExoticComponent<Pick<Props, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "status"> & React.RefAttributes<HTMLInputElement>>;
7
+ export declare const RemInputTypeColor: React.ForwardRefExoticComponent<Pick<Props, "key" | "status" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
8
8
  export {};
@@ -18,6 +18,7 @@ const ZodObjectEditor_1 = require("./ZodObjectEditor");
18
18
  const ZodOptionalEditor_1 = require("./ZodOptionalEditor");
19
19
  const ZodStaticFileEditor_1 = require("./ZodStaticFileEditor");
20
20
  const ZodStringEditor_1 = require("./ZodStringEditor");
21
+ const ZodTextareaEditor_1 = require("./ZodTextareaEditor");
21
22
  const ZodUnionEditor_1 = require("./ZodUnionEditor");
22
23
  const ZodSwitch = ({ schema, jsonPath, value, setValue, defaultValue, onSave, showSaveButton, onRemove, saving, saveDisabledByParent, mayPad, }) => {
23
24
  const def = schema._def;
@@ -35,6 +36,11 @@ const ZodSwitch = ({ schema, jsonPath, value, setValue, defaultValue, onSave, sh
35
36
  if (value.startsWith(window.remotion_staticBase)) {
36
37
  return ((0, jsx_runtime_1.jsx)(ZodStaticFileEditor_1.ZodStaticFileEditor, { setValue: setValue, value: value, jsonPath: jsonPath, schema: schema, defaultValue: defaultValue, onSave: onSave, showSaveButton: showSaveButton, onRemove: onRemove, saving: saving, saveDisabledByParent: saveDisabledByParent, mayPad: mayPad }));
37
38
  }
39
+ if (zodTypes &&
40
+ schema._def.description ===
41
+ zodTypes.ZodZypesInternals.REMOTION_TEXTAREA_BRAND) {
42
+ return ((0, jsx_runtime_1.jsx)(ZodTextareaEditor_1.ZodTextareaEditor, { value: value, setValue: setValue, jsonPath: jsonPath, schema: schema, onSave: onSave, defaultValue: defaultValue, showSaveButton: showSaveButton, onRemove: onRemove, saving: saving, saveDisabledByParent: saveDisabledByParent, mayPad: mayPad }));
43
+ }
38
44
  return ((0, jsx_runtime_1.jsx)(ZodStringEditor_1.ZodStringEditor, { value: value, setValue: setValue, jsonPath: jsonPath, schema: schema, onSave: onSave, defaultValue: defaultValue, showSaveButton: showSaveButton, onRemove: onRemove, saving: saving, saveDisabledByParent: saveDisabledByParent, mayPad: mayPad }));
39
45
  }
40
46
  if (typeName === z.ZodFirstPartyTypeKind.ZodDate) {
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { z } from 'zod';
3
+ import type { JSONPath } from './zod-types';
4
+ import type { UpdaterFunction } from './ZodSwitch';
5
+ export declare const ZodTextareaEditor: React.FC<{
6
+ schema: z.ZodTypeAny;
7
+ jsonPath: JSONPath;
8
+ value: string;
9
+ defaultValue: string;
10
+ setValue: UpdaterFunction<string>;
11
+ onSave: UpdaterFunction<string>;
12
+ onRemove: null | (() => void);
13
+ showSaveButton: boolean;
14
+ saving: boolean;
15
+ saveDisabledByParent: boolean;
16
+ mayPad: boolean;
17
+ }>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZodTextareaEditor = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const get_zod_if_possible_1 = require("../../get-zod-if-possible");
7
+ const RemTextarea_1 = require("../../NewComposition/RemTextarea");
8
+ const Fieldset_1 = require("./Fieldset");
9
+ const local_state_1 = require("./local-state");
10
+ const SchemaLabel_1 = require("./SchemaLabel");
11
+ const ZodFieldValidation_1 = require("./ZodFieldValidation");
12
+ const fullWidth = {
13
+ width: '100%',
14
+ };
15
+ const textareaStyle = {
16
+ resize: 'vertical',
17
+ minHeight: 100,
18
+ };
19
+ const ZodTextareaEditor = ({ jsonPath, value, setValue, showSaveButton, defaultValue, schema, onSave, onRemove, saving, saveDisabledByParent, mayPad, }) => {
20
+ const z = (0, get_zod_if_possible_1.useZodIfPossible)();
21
+ if (!z) {
22
+ throw new Error('expected zod');
23
+ }
24
+ const zodTypes = (0, get_zod_if_possible_1.useZodTypesIfPossible)();
25
+ if (!zodTypes) {
26
+ throw new Error('expected zod textarea');
27
+ }
28
+ const { localValue, onChange: setLocalValue, reset, } = (0, local_state_1.useLocalState)({
29
+ schema,
30
+ setValue,
31
+ value,
32
+ defaultValue,
33
+ });
34
+ const onChange = (0, react_1.useCallback)((e) => {
35
+ setLocalValue(() => e.target.value, false, false);
36
+ }, [setLocalValue]);
37
+ const save = (0, react_1.useCallback)(() => {
38
+ onSave(() => value, false, false);
39
+ }, [onSave, value]);
40
+ return ((0, jsx_runtime_1.jsxs)(Fieldset_1.Fieldset, { shouldPad: mayPad, success: localValue.zodValidation.success, children: [(0, jsx_runtime_1.jsx)(SchemaLabel_1.SchemaLabel, { isDefaultValue: localValue.value === defaultValue, jsonPath: jsonPath, onReset: reset, onSave: save, showSaveButton: showSaveButton, onRemove: onRemove, saving: saving, valid: localValue.zodValidation.success, saveDisabledByParent: saveDisabledByParent, suffix: null }), (0, jsx_runtime_1.jsxs)("div", { style: fullWidth, children: [(0, jsx_runtime_1.jsx)(RemTextarea_1.RemTextarea, { onChange: onChange, value: localValue.value, status: localValue.zodValidation ? 'ok' : 'error', placeholder: jsonPath.join('.'), name: jsonPath.join('.'), style: textareaStyle }), (0, jsx_runtime_1.jsx)(ZodFieldValidation_1.ZodFieldValidation, { path: jsonPath, localValue: localValue })] })] }));
41
+ };
42
+ exports.ZodTextareaEditor = ZodTextareaEditor;
@@ -67,6 +67,11 @@ const createZodValues = (schema, zodRuntime, zodTypes) => {
67
67
  zodTypes.ZodZypesInternals.REMOTION_COLOR_BRAND) {
68
68
  return '#ffffff';
69
69
  }
70
+ if (zodTypes &&
71
+ schema._def.description ===
72
+ zodTypes.ZodZypesInternals.REMOTION_TEXTAREA_BRAND) {
73
+ return '';
74
+ }
70
75
  return (0, exports.createZodValues)(def.schema, zodRuntime, zodTypes);
71
76
  }
72
77
  case zodRuntime.ZodFirstPartyTypeKind.ZodIntersection: {
@@ -16,4 +16,4 @@ export declare const BLUE_DISABLED = "#284f73";
16
16
  export declare const getBackgroundFromHoverState: ({ selected, hovered, }: {
17
17
  selected: boolean;
18
18
  hovered: boolean;
19
- }) => "transparent" | "hsla(0, 0%, 100%, 0.15)" | "hsla(0, 0%, 100%, 0.25)" | "rgba(255, 255, 255, 0.06)";
19
+ }) => "transparent" | "hsla(0, 0%, 100%, 0.25)" | "hsla(0, 0%, 100%, 0.15)" | "rgba(255, 255, 255, 0.06)";
@@ -21,7 +21,7 @@ export declare const getCliOptions: (options: {
21
21
  numberOfGifLoops: import("./config/number-of-gif-loops").Loop;
22
22
  stillFrame: number;
23
23
  browserExecutable: BrowserExecutable;
24
- logLevel: "verbose" | "info" | "warn" | "error";
24
+ logLevel: "error" | "verbose" | "info" | "warn";
25
25
  scale: number;
26
26
  chromiumOptions: ChromiumOptions;
27
27
  overwrite: boolean;
package/dist/index.d.ts CHANGED
@@ -63,24 +63,24 @@ export declare const CliInternals: {
63
63
  verbose: (message?: any, ...optionalParams: any[]) => void;
64
64
  verboseAdvanced: (options: {
65
65
  indent: boolean;
66
- logLevel: "verbose" | "info" | "warn" | "error";
66
+ logLevel: "error" | "verbose" | "info" | "warn";
67
67
  } & {
68
68
  tag?: string | undefined;
69
69
  }, message?: any, ...optionalParams: any[]) => void;
70
70
  info: (message?: any, ...optionalParams: any[]) => void;
71
71
  infoAdvanced: (options: {
72
72
  indent: boolean;
73
- logLevel: "verbose" | "info" | "warn" | "error";
73
+ logLevel: "error" | "verbose" | "info" | "warn";
74
74
  }, message?: any, ...optionalParams: any[]) => void;
75
75
  warn: (message?: any, ...optionalParams: any[]) => void;
76
76
  warnAdvanced: (options: {
77
77
  indent: boolean;
78
- logLevel: "verbose" | "info" | "warn" | "error";
78
+ logLevel: "error" | "verbose" | "info" | "warn";
79
79
  }, message?: any, ...optionalParams: any[]) => void;
80
80
  error: (message?: any, ...optionalParams: any[]) => void;
81
81
  errorAdvanced: (options: {
82
82
  indent: boolean;
83
- logLevel: "verbose" | "info" | "warn" | "error";
83
+ logLevel: "error" | "verbose" | "info" | "warn";
84
84
  } & {
85
85
  tag?: string | undefined;
86
86
  }, message?: any, ...optionalParams: any[]) => void;
@@ -106,7 +106,7 @@ export declare const CliInternals: {
106
106
  numberOfGifLoops: import("./config/number-of-gif-loops").Loop;
107
107
  stillFrame: number;
108
108
  browserExecutable: import("@remotion/renderer").BrowserExecutable;
109
- logLevel: "verbose" | "info" | "warn" | "error";
109
+ logLevel: "error" | "verbose" | "info" | "warn";
110
110
  scale: number;
111
111
  chromiumOptions: import("@remotion/renderer").ChromiumOptions;
112
112
  overwrite: boolean;
@@ -190,7 +190,7 @@ export declare const CliInternals: {
190
190
  } & {
191
191
  _: string[];
192
192
  };
193
- printError: (err: Error, logLevel: "verbose" | "info" | "warn" | "error") => Promise<void>;
193
+ printError: (err: Error, logLevel: "error" | "verbose" | "info" | "warn") => Promise<void>;
194
194
  formatBytes: (number: number, options?: Intl.NumberFormatOptions & {
195
195
  locale: string;
196
196
  bits?: boolean | undefined;
@@ -232,7 +232,7 @@ export declare const CliInternals: {
232
232
  };
233
233
  listOfRemotionPackages: string[];
234
234
  shouldUseNonOverlayingLogger: ({ logLevel, }: {
235
- logLevel: "verbose" | "info" | "warn" | "error";
235
+ logLevel: "error" | "verbose" | "info" | "warn";
236
236
  }) => boolean;
237
237
  getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, }: {
238
238
  height: number | null;
@@ -247,7 +247,7 @@ export declare const CliInternals: {
247
247
  browserExecutable: import("@remotion/renderer").BrowserExecutable;
248
248
  serveUrlOrWebpackUrl: string;
249
249
  indent: boolean;
250
- logLevel: "verbose" | "info" | "warn" | "error";
250
+ logLevel: "error" | "verbose" | "info" | "warn";
251
251
  serializedInputPropsWithCustomSchema: string;
252
252
  server: import("@remotion/renderer").RemotionServer;
253
253
  offthreadVideoCacheSizeInBytes: number | null;
package/dist/log.d.ts CHANGED
@@ -2,24 +2,24 @@ export declare const Log: {
2
2
  verbose: (message?: any, ...optionalParams: any[]) => void;
3
3
  verboseAdvanced: (options: {
4
4
  indent: boolean;
5
- logLevel: "verbose" | "info" | "warn" | "error";
5
+ logLevel: "error" | "verbose" | "info" | "warn";
6
6
  } & {
7
7
  tag?: string | undefined;
8
8
  }, message?: any, ...optionalParams: any[]) => void;
9
9
  info: (message?: any, ...optionalParams: any[]) => void;
10
10
  infoAdvanced: (options: {
11
11
  indent: boolean;
12
- logLevel: "verbose" | "info" | "warn" | "error";
12
+ logLevel: "error" | "verbose" | "info" | "warn";
13
13
  }, message?: any, ...optionalParams: any[]) => void;
14
14
  warn: (message?: any, ...optionalParams: any[]) => void;
15
15
  warnAdvanced: (options: {
16
16
  indent: boolean;
17
- logLevel: "verbose" | "info" | "warn" | "error";
17
+ logLevel: "error" | "verbose" | "info" | "warn";
18
18
  }, message?: any, ...optionalParams: any[]) => void;
19
19
  error: (message?: any, ...optionalParams: any[]) => void;
20
20
  errorAdvanced: (options: {
21
21
  indent: boolean;
22
- logLevel: "verbose" | "info" | "warn" | "error";
22
+ logLevel: "error" | "verbose" | "info" | "warn";
23
23
  } & {
24
24
  tag?: string | undefined;
25
25
  }, message?: any, ...optionalParams: any[]) => void;
@@ -80,7 +80,7 @@ const startServer = async (options) => {
80
80
  const desiredPort = (_d = (_c = options === null || options === void 0 ? void 0 : options.port) !== null && _c !== void 0 ? _c : (process.env.PORT ? Number(process.env.PORT) : undefined)) !== null && _d !== void 0 ? _d : undefined;
81
81
  const maxTries = 5;
82
82
  // Default Node.js host, but explicity
83
- const host = '0.0.0.0';
83
+ const host = '::';
84
84
  for (let i = 0; i < maxTries; i++) {
85
85
  try {
86
86
  const selectedPort = await new Promise((resolve, reject) => {
@@ -88,7 +88,7 @@ const startServer = async (options) => {
88
88
  desiredPort,
89
89
  from: 3000,
90
90
  to: 3100,
91
- hostsToTry: ['127.0.0.1', '0.0.0.0'],
91
+ hostsToTry: ['::1', '::'],
92
92
  })
93
93
  .then(({ port, didUsePort }) => {
94
94
  server.listen({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "4.0.48",
3
+ "version": "4.0.49",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -35,11 +35,11 @@
35
35
  "prompts": "2.4.1",
36
36
  "semver": "7.5.3",
37
37
  "source-map": "0.6.1",
38
- "@remotion/bundler": "4.0.48",
39
- "@remotion/renderer": "4.0.48",
40
- "remotion": "4.0.48",
41
- "@remotion/player": "4.0.48",
42
- "@remotion/media-utils": "4.0.48"
38
+ "@remotion/bundler": "4.0.49",
39
+ "@remotion/media-utils": "4.0.49",
40
+ "@remotion/player": "4.0.49",
41
+ "remotion": "4.0.49",
42
+ "@remotion/renderer": "4.0.49"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8.0",
@@ -65,8 +65,8 @@
65
65
  "react-dom": "^18.0.0",
66
66
  "vitest": "0.31.1",
67
67
  "zod": "^3.22.3",
68
- "@remotion/zod-types": "4.0.48",
69
- "@remotion/tailwind": "4.0.48"
68
+ "@remotion/zod-types": "4.0.49",
69
+ "@remotion/tailwind": "4.0.49"
70
70
  },
71
71
  "keywords": [
72
72
  "remotion",