@remotion/cli 4.0.0-alpha13 → 4.0.0-alpha14

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.
Files changed (224) hide show
  1. package/dist/ansi/ansi-diff.d.ts +1 -1
  2. package/dist/ansi/ansi-regex.d.ts +2 -0
  3. package/dist/ansi/ansi-regex.js +18 -0
  4. package/dist/benchmark.js +29 -14
  5. package/dist/cleanup-before-quit.js +3 -0
  6. package/dist/composition-prompts.d.ts +2 -2
  7. package/dist/compositions.js +8 -7
  8. package/dist/config/concurrency.d.ts +1 -1
  9. package/dist/config/ffmpeg-executable.d.ts +5 -0
  10. package/dist/config/ffmpeg-executable.js +21 -0
  11. package/dist/config/index.d.ts +2 -2
  12. package/dist/config/jpeg-quality.d.ts +1 -1
  13. package/dist/config/jpeg-quality.js +1 -1
  14. package/dist/config/number-of-gif-loops.d.ts +1 -1
  15. package/dist/config/override-webpack.d.ts +1 -1
  16. package/dist/config/quality.d.ts +2 -0
  17. package/dist/config/quality.js +17 -0
  18. package/dist/config/scale.d.ts +1 -1
  19. package/dist/config/user-agent.d.ts +1 -1
  20. package/dist/editor/components/CanvasOrLoading.js +3 -0
  21. package/dist/editor/components/Checkbox.d.ts +1 -0
  22. package/dist/editor/components/Checkbox.js +2 -2
  23. package/dist/editor/components/ClipboardIcon.d.ts +2 -0
  24. package/dist/editor/components/ClipboardIcon.js +12 -0
  25. package/dist/editor/components/CollapsedCompositionSelector.d.ts +4 -0
  26. package/dist/editor/components/CollapsedCompositionSelector.js +39 -0
  27. package/dist/editor/components/CompositionSelectorItem.d.ts +1 -1
  28. package/dist/editor/components/InlineAction.d.ts +1 -1
  29. package/dist/editor/components/Menu/MenuItem.d.ts +2 -2
  30. package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -1
  31. package/dist/editor/components/NewComposition/ComboBox.d.ts +4 -4
  32. package/dist/editor/components/NewComposition/CopyHint.js +1 -1
  33. package/dist/editor/components/NewComposition/InputDragger.d.ts +1 -1
  34. package/dist/editor/components/NewComposition/RemInput.d.ts +2 -2
  35. package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +2 -1
  36. package/dist/editor/components/NewComposition/RemInputTypeColor.js +1 -1
  37. package/dist/editor/components/NewComposition/RemTextarea.d.ts +1 -1
  38. package/dist/editor/components/Notifications/NotificationCenter.d.ts +2 -2
  39. package/dist/editor/components/QuickSwitcher/NoResults.d.ts +1 -1
  40. package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.d.ts +2 -2
  41. package/dist/editor/components/RenderModal/DataEditor.d.ts +2 -3
  42. package/dist/editor/components/RenderModal/DataEditor.js +14 -5
  43. package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +1 -1
  44. package/dist/editor/components/RenderModal/MutedSetting.js +1 -1
  45. package/dist/editor/components/RenderModal/RenderModal.d.ts +1 -1
  46. package/dist/editor/components/RenderModal/RenderModal.js +2 -2
  47. package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +1 -1
  48. package/dist/editor/components/RenderModal/RenderModalAdvanced.js +1 -1
  49. package/dist/editor/components/RenderModal/RenderModalAudio.js +1 -1
  50. package/dist/editor/components/RenderModal/RenderModalData.d.ts +3 -2
  51. package/dist/editor/components/RenderModal/RenderModalData.js +23 -34
  52. package/dist/editor/components/RenderModal/RenderModalGif.js +1 -1
  53. package/dist/editor/components/RenderModal/RenderModalInput.d.ts +1 -1
  54. package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.d.ts +1 -1
  55. package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +1 -1
  56. package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.d.ts +7 -0
  57. package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.js +26 -0
  58. package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +0 -1
  59. package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +2 -3
  60. package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +1 -3
  61. package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +1 -7
  62. package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +14 -22
  63. package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.d.ts +2 -0
  64. package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.js +11 -0
  65. package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.d.ts +5 -0
  66. package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.js +13 -0
  67. package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +1 -1
  68. package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +51 -42
  69. package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +1 -1
  70. package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +5 -5
  71. package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +3 -1
  72. package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +14 -13
  73. package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +1 -1
  74. package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +12 -14
  75. package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +1 -1
  76. package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +9 -15
  77. package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.d.ts +1 -1
  78. package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.js +2 -2
  79. package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +1 -1
  80. package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +5 -30
  81. package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +0 -1
  82. package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +8 -11
  83. package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.d.ts +7 -0
  84. package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.js +27 -0
  85. package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +1 -1
  86. package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +3 -3
  87. package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +1 -1
  88. package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +2 -2
  89. package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +1 -1
  90. package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +10 -13
  91. package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +1 -1
  92. package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +39 -45
  93. package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +1 -1
  94. package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +2 -2
  95. package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +2 -1
  96. package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +13 -48
  97. package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.d.ts +1 -1
  98. package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.js +7 -10
  99. package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +1 -1
  100. package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +8 -11
  101. package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +2 -2
  102. package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +21 -21
  103. package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +1 -1
  104. package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +6 -6
  105. package/dist/editor/components/RenderModal/SchemaEditor/deep-equal.js +3 -0
  106. package/dist/editor/components/RenderModal/SchemaEditor/extract-enum-json-paths.d.ts +1 -1
  107. package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +3 -3
  108. package/dist/editor/components/RenderModal/SchemaEditor/input-props-serialization.d.ts +1 -1
  109. package/dist/editor/components/RenderModal/SchemaEditor/local-state.d.ts +10 -5
  110. package/dist/editor/components/RenderModal/SchemaEditor/local-state.js +56 -15
  111. package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +1 -1
  112. package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +1 -1
  113. package/dist/editor/components/RenderModal/layout.d.ts +0 -1
  114. package/dist/editor/components/RenderModal/layout.js +1 -7
  115. package/dist/editor/components/RenderQueue/actions.d.ts +2 -1
  116. package/dist/editor/components/RenderQueue/actions.js +7 -2
  117. package/dist/editor/components/RenderQueue/context.d.ts +1 -1
  118. package/dist/editor/components/RichTimelineToggle.d.ts +2 -0
  119. package/dist/editor/components/RichTimelineToggle.js +29 -0
  120. package/dist/editor/components/RightPanel.d.ts +1 -1
  121. package/dist/editor/components/RightPanel.js +1 -1
  122. package/dist/editor/components/SegmentedControl.d.ts +1 -1
  123. package/dist/editor/components/SegmentedControl.js +2 -0
  124. package/dist/editor/components/Splitter/SplitterContext.d.ts +3 -3
  125. package/dist/editor/components/Thumbnail.d.ts +8 -0
  126. package/dist/editor/components/Thumbnail.js +76 -0
  127. package/dist/editor/components/Timeline/LoopedIndicator.js +6 -6
  128. package/dist/editor/components/Timeline/TimelineWidthProvider.d.ts +1 -1
  129. package/dist/editor/components/Timeline/TimelineZoomControls.js +1 -1
  130. package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +2 -2
  131. package/dist/editor/components/UpdateCheck.d.ts +1 -1
  132. package/dist/editor/components/UpdateCheck.js +2 -4
  133. package/dist/editor/components/get-zod-if-possible.d.ts +2 -2
  134. package/dist/editor/helpers/client-id.d.ts +1 -1
  135. package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +3 -3
  136. package/dist/editor/helpers/persist-open-folders.d.ts +1 -1
  137. package/dist/editor/helpers/render-modal-sections.d.ts +1 -2
  138. package/dist/editor/helpers/use-compact-ui.d.ts +1 -0
  139. package/dist/editor/helpers/use-compact-ui.js +18 -0
  140. package/dist/editor/helpers/use-menu-structure.d.ts +1 -1
  141. package/dist/editor/icons/film.d.ts +3 -0
  142. package/dist/editor/icons/film.js +8 -0
  143. package/dist/editor/icons/plus.d.ts +3 -1
  144. package/dist/editor/icons/plus.js +2 -2
  145. package/dist/editor/icons/timeline.d.ts +3 -0
  146. package/dist/editor/icons/timeline.js +9 -0
  147. package/dist/editor/state/checkerboard.d.ts +1 -1
  148. package/dist/editor/state/editor-zoom-gestures.d.ts +1 -1
  149. package/dist/editor/state/folders.d.ts +1 -1
  150. package/dist/editor/state/highest-z-index.d.ts +1 -1
  151. package/dist/editor/state/in-out.d.ts +2 -2
  152. package/dist/editor/state/keybindings.d.ts +4 -4
  153. package/dist/editor/state/modals.d.ts +4 -4
  154. package/dist/editor/state/preview-size.d.ts +1 -1
  155. package/dist/editor/state/rich-timeline.d.ts +9 -0
  156. package/dist/editor/state/rich-timeline.js +17 -0
  157. package/dist/editor/state/sidebar.d.ts +3 -3
  158. package/dist/editor/state/timeline-ref.d.ts +1 -1
  159. package/dist/event-source-events.d.ts +1 -1
  160. package/dist/file-watcher.d.ts +1 -1
  161. package/dist/get-cli-options.d.ts +1 -1
  162. package/dist/get-composition-id.d.ts +10 -11
  163. package/dist/get-composition-id.js +9 -6
  164. package/dist/get-composition-with-dimension-override.d.ts +4 -4
  165. package/dist/get-composition-with-dimension-override.js +2 -2
  166. package/dist/get-render-media-options.d.ts +8 -0
  167. package/dist/get-render-media-options.js +55 -0
  168. package/dist/index.d.ts +5 -4
  169. package/dist/install.d.ts +2 -0
  170. package/dist/install.js +36 -0
  171. package/dist/is-javascript.d.ts +2 -0
  172. package/dist/is-javascript.js +9 -0
  173. package/dist/log.d.ts +1 -0
  174. package/dist/parse-command-line.d.ts +1 -1
  175. package/dist/preview-server/api-routes.js +2 -0
  176. package/dist/preview-server/api-types.d.ts +5 -4
  177. package/dist/preview-server/dev-middleware/get-paths.d.ts +1 -1
  178. package/dist/preview-server/dev-middleware/is-color-supported.d.ts +1 -0
  179. package/dist/preview-server/dev-middleware/is-color-supported.js +37 -0
  180. package/dist/preview-server/dev-middleware/middleware.d.ts +1 -1
  181. package/dist/preview-server/dev-middleware/range-parser.d.ts +2 -2
  182. package/dist/preview-server/dev-middleware/types.d.ts +1 -1
  183. package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +1 -1
  184. package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +3 -3
  185. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +1 -1
  186. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +1 -1
  187. package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +1 -1
  188. package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +1 -0
  189. package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +2 -2
  190. package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +4 -4
  191. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +1 -1
  192. package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +2 -2
  193. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +1 -1
  194. package/dist/preview-server/get-package-manager.d.ts +2 -2
  195. package/dist/preview-server/hot-middleware/client.d.ts +1 -1
  196. package/dist/preview-server/hot-middleware/strip-ansi.d.ts +1 -0
  197. package/dist/preview-server/hot-middleware/strip-ansi.js +21 -0
  198. package/dist/preview-server/hot-middleware/types.d.ts +4 -4
  199. package/dist/preview-server/live-events.d.ts +1 -1
  200. package/dist/preview-server/live-events.js +10 -1
  201. package/dist/preview-server/project-info.d.ts +1 -1
  202. package/dist/preview-server/render-queue/job.d.ts +30 -21
  203. package/dist/preview-server/render-queue/process-still.js +1 -2
  204. package/dist/preview-server/routes/update-available.d.ts +3 -0
  205. package/dist/preview-server/routes/update-available.js +9 -0
  206. package/dist/preview-server/routes.d.ts +0 -1
  207. package/dist/preview-server/routes.js +1 -11
  208. package/dist/preview-server/update-available.d.ts +2 -10
  209. package/dist/preview.js +2 -0
  210. package/dist/progress-bar.d.ts +4 -4
  211. package/dist/progress-bar.js +3 -2
  212. package/dist/progress-types.d.ts +4 -4
  213. package/dist/render-flows/render.js +35 -28
  214. package/dist/render-flows/still.d.ts +1 -1
  215. package/dist/render-flows/still.js +23 -10
  216. package/dist/required-chromium-options.d.ts +2 -2
  217. package/dist/server-ready-comment.d.ts +1 -1
  218. package/dist/server-ready-comment.js +2 -2
  219. package/dist/setup-cache.js +10 -0
  220. package/dist/show-compositions-picker.d.ts +1 -1
  221. package/dist/step.d.ts +1 -1
  222. package/dist/studio.js +3 -3
  223. package/dist/truthy.d.ts +1 -1
  224. package/package.json +10 -12
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type TimelineWidthContextType = number | null;
2
+ type TimelineWidthContextType = number | null;
3
3
  export declare const TimelineWidthContext: import("react").Context<TimelineWidthContextType>;
4
4
  export declare const TimelineWidthProvider: React.FC<{
5
5
  children: React.ReactNode;
@@ -39,6 +39,6 @@ const TimelineZoomControls = () => {
39
39
  if (isStill) {
40
40
  return null;
41
41
  }
42
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onMinusClicked, style: buttonStyle, title: "Zoom out timeline", role: 'ControlButton', type: "button", disabled: timeline_zoom_1.TIMELINE_MIN_ZOOM === zoom, children: (0, jsx_runtime_1.jsx)(minus_1.Minus, { style: iconStyle }) }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)("input", { title: `Timeline zoom (${zoom}x)`, alt: `Timeline zoom (${zoom}x)`, type: 'range', min: timeline_zoom_1.TIMELINE_MIN_ZOOM, step: 0.1, value: zoom, max: timeline_zoom_1.TIMELINE_MAX_ZOOM, onChange: onChange, className: "__remotion-timeline-slider", tabIndex: tabIndex }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onPlusClicked, style: buttonStyle, title: "Zoom in timeline", role: 'button', type: "button", disabled: timeline_zoom_1.TIMELINE_MAX_ZOOM === zoom, children: (0, jsx_runtime_1.jsx)(plus_1.Plus, { style: iconStyle }) })] }));
42
+ return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onMinusClicked, style: buttonStyle, title: "Zoom out timeline", role: 'ControlButton', type: "button", disabled: timeline_zoom_1.TIMELINE_MIN_ZOOM === zoom, children: (0, jsx_runtime_1.jsx)(minus_1.Minus, { style: iconStyle }) }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)("input", { title: `Timeline zoom (${zoom}x)`, alt: `Timeline zoom (${zoom}x)`, type: 'range', min: timeline_zoom_1.TIMELINE_MIN_ZOOM, step: 0.1, value: zoom, max: timeline_zoom_1.TIMELINE_MAX_ZOOM, onChange: onChange, className: "__remotion-timeline-slider", tabIndex: tabIndex }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onPlusClicked, style: buttonStyle, title: "Zoom in timeline", role: 'button', type: "button", disabled: timeline_zoom_1.TIMELINE_MAX_ZOOM === zoom, children: (0, jsx_runtime_1.jsx)(plus_1.Plus, { color: "currentcolor", style: iconStyle }) })] }));
43
43
  };
44
44
  exports.TimelineZoomControls = TimelineZoomControls;
@@ -1,9 +1,9 @@
1
- export declare type TimelineViewState = {
1
+ export type TimelineViewState = {
2
2
  collapsed: {
3
3
  [key: string]: boolean;
4
4
  };
5
5
  };
6
- export declare type TimelineActionState = {
6
+ export type TimelineActionState = {
7
7
  type: 'collapse';
8
8
  hash: string;
9
9
  } | {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { PackageManager } from '../../preview-server/get-package-manager';
3
- export declare type UpdateInfo = {
3
+ export type UpdateInfo = {
4
4
  currentVersion: string;
5
5
  latestVersion: string;
6
6
  updateAvailable: boolean;
@@ -6,6 +6,7 @@ const react_1 = require("react");
6
6
  const colors_1 = require("../helpers/colors");
7
7
  const modals_1 = require("../state/modals");
8
8
  const z_index_1 = require("../state/z-index");
9
+ const actions_1 = require("./RenderQueue/actions");
9
10
  const buttonStyle = {
10
11
  appearance: 'none',
11
12
  color: colors_1.BLUE,
@@ -21,10 +22,7 @@ const UpdateCheck = () => {
21
22
  const { tabIndex } = (0, z_index_1.useZIndex)();
22
23
  const checkForUpdates = (0, react_1.useCallback)(() => {
23
24
  const controller = new AbortController();
24
- fetch('/api/update', {
25
- signal: controller.signal,
26
- })
27
- .then((res) => res.json())
25
+ (0, actions_1.updateAvailable)(controller.signal)
28
26
  .then((d) => {
29
27
  setInfo(d);
30
28
  })
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- export declare type ZodType = Awaited<typeof import('zod')>['z'];
3
- export declare type ZodTypesType = Awaited<typeof import('@remotion/zod-types')>;
2
+ export type ZodType = Awaited<typeof import('zod')>['z'];
3
+ export type ZodTypesType = Awaited<typeof import('@remotion/zod-types')>;
4
4
  export declare const getZodIfPossible: () => Promise<ZodType | null>;
5
5
  export declare const getZTypesIfPossible: () => Promise<ZodTypesType | null>;
6
6
  export declare const useZodIfPossible: () => typeof import("zod/lib/external") | null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type PreviewServerState = {
2
+ type PreviewServerState = {
3
3
  type: 'init';
4
4
  } | {
5
5
  type: 'connected';
@@ -1,13 +1,13 @@
1
1
  import type { TSequence } from 'remotion';
2
- declare type Track = {
2
+ type Track = {
3
3
  sequence: TSequence;
4
4
  depth: number;
5
5
  };
6
- export declare type TrackWithHash = Track & {
6
+ export type TrackWithHash = Track & {
7
7
  hash: string;
8
8
  canCollapse: boolean;
9
9
  };
10
- export declare type TrackWithHashAndOriginalTimings = TrackWithHash & {
10
+ export type TrackWithHashAndOriginalTimings = TrackWithHash & {
11
11
  hash: string;
12
12
  cascadedStart: number;
13
13
  cascadedDuration: number;
@@ -1,4 +1,4 @@
1
1
  export declare const openFolderKey: (folderName: string, parentName: string | null) => string;
2
- export declare type ExpandedFoldersState = Record<string, boolean>;
2
+ export type ExpandedFoldersState = Record<string, boolean>;
3
3
  export declare const persistExpandedFolders: (state: ExpandedFoldersState) => void;
4
4
  export declare const loadExpandedFolders: () => ExpandedFoldersState;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import type { Codec } from '@remotion/renderer';
3
2
  import type { RenderType } from '../components/RenderModal/RenderModalAdvanced';
4
- declare type Section = 'general' | 'picture' | 'advanced' | 'data' | 'gif' | 'audio';
3
+ type Section = 'general' | 'picture' | 'advanced' | 'data' | 'gif' | 'audio';
5
4
  export declare const useRenderModalSections: (renderMode: RenderType, codec: Codec) => {
6
5
  tab: Section;
7
6
  setTab: import("react").Dispatch<import("react").SetStateAction<Section>>;
@@ -0,0 +1 @@
1
+ export declare function useCompactUI(): boolean;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useCompactUI = void 0;
4
+ const react_1 = require("react");
5
+ const breakpoint = 1200;
6
+ function useCompactUI() {
7
+ const [compactUI, setCompactUI] = (0, react_1.useState)(window.innerWidth < breakpoint);
8
+ (0, react_1.useEffect)(() => {
9
+ function handleResize() {
10
+ setCompactUI(window.innerWidth < breakpoint);
11
+ }
12
+ window.addEventListener('resize', handleResize);
13
+ handleResize();
14
+ return () => window.removeEventListener('resize', handleResize);
15
+ }, []);
16
+ return compactUI;
17
+ }
18
+ exports.useCompactUI = useCompactUI;
@@ -1,7 +1,7 @@
1
1
  import type { Menu } from '../components/Menu/MenuItem';
2
2
  import type { TQuickSwitcherResult } from '../components/QuickSwitcher/QuickSwitcherResult';
3
3
  import type { ModalState } from '../state/modals';
4
- declare type Structure = Menu[];
4
+ type Structure = Menu[];
5
5
  export declare const useMenuStructure: (closeMenu: () => void) => Structure;
6
6
  export declare const makeSearchResults: (actions: Structure, setSelectedModal: (value: React.SetStateAction<ModalState | null>) => void) => TQuickSwitcherResult[];
7
7
  export {};
@@ -0,0 +1,3 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ export declare const FilmIcon: React.FC<SVGProps<SVGSVGElement>>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FilmIcon = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const FilmIcon = (props) => {
6
+ return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 512 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm280 208c0 6.6-5.4 12-12 12H148c-6.6 0-12-5.4-12-12V124c0-6.6 5.4-12 12-12h216c6.6 0 12 5.4 12 12v264zm104-16c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z" }) }));
7
+ };
8
+ exports.FilmIcon = FilmIcon;
@@ -1,3 +1,5 @@
1
1
  import type { SVGProps } from 'react';
2
2
  import React from 'react';
3
- export declare const Plus: React.FC<SVGProps<SVGSVGElement>>;
3
+ export declare const Plus: React.FC<SVGProps<SVGSVGElement> & {
4
+ color: string;
5
+ }>;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Plus = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const Plus = (props) => {
6
- return ((0, jsx_runtime_1.jsx)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z" }) }));
5
+ const Plus = ({ color, ...props }) => {
6
+ return ((0, jsx_runtime_1.jsx)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: (0, jsx_runtime_1.jsx)("path", { fill: color, d: "M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z" }) }));
7
7
  };
8
8
  exports.Plus = Plus;
@@ -0,0 +1,3 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ export declare const TimelineIcon: React.FC<SVGProps<SVGSVGElement>>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TimelineIcon = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const TimelineIcon = (props) => {
6
+ var _a;
7
+ return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "stream", className: "svg-inline--fa fa-stream fa-w-16", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: (_a = props.style) === null || _a === void 0 ? void 0 : _a.color, d: "M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z" }) }));
8
+ };
9
+ exports.TimelineIcon = TimelineIcon;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type State = {
2
+ type State = {
3
3
  checkerboard: boolean;
4
4
  setCheckerboard: (cb: (prevState: boolean) => boolean) => void;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type State = {
2
+ type State = {
3
3
  editorZoomGestures: boolean;
4
4
  setEditorZoomGestures: (cb: (prevState: boolean) => boolean) => void;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { ExpandedFoldersState } from '../helpers/persist-open-folders';
3
- declare type TFolderContext = {
3
+ type TFolderContext = {
4
4
  foldersExpanded: ExpandedFoldersState;
5
5
  setFoldersExpanded: React.Dispatch<React.SetStateAction<ExpandedFoldersState>>;
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type HighestZIndexContainer = {
2
+ type HighestZIndexContainer = {
3
3
  highestIndex: number;
4
4
  registerZIndex: (index: number) => void;
5
5
  unregisterZIndex: (index: number) => void;
@@ -1,9 +1,9 @@
1
1
  import type React from 'react';
2
- export declare type TimelineInOutContextValue = {
2
+ export type TimelineInOutContextValue = {
3
3
  inFrame: number | null;
4
4
  outFrame: number | null;
5
5
  };
6
- export declare type SetTimelineInOutContextValue = {
6
+ export type SetTimelineInOutContextValue = {
7
7
  setInAndOutFrames: (u: React.SetStateAction<TimelineInOutContextValue>) => void;
8
8
  };
9
9
  export declare const TimelineInOutContext: React.Context<TimelineInOutContextValue>;
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
- export declare type KeyEventType = 'keydown' | 'keyup' | 'keypress';
3
- declare type KeyListenerCallback = (e: KeyboardEvent) => void;
4
- export declare type RegisteredKeybinding = {
2
+ export type KeyEventType = 'keydown' | 'keyup' | 'keypress';
3
+ type KeyListenerCallback = (e: KeyboardEvent) => void;
4
+ export type RegisteredKeybinding = {
5
5
  registeredFromPane: string;
6
6
  id: string;
7
7
  key: string;
8
8
  event: KeyEventType;
9
9
  callback: KeyListenerCallback;
10
10
  };
11
- export declare type KeybindingContextType = {
11
+ export type KeybindingContextType = {
12
12
  registerKeybinding: (binding: RegisteredKeybinding) => void;
13
13
  unregisterKeybinding: (binding: RegisteredKeybinding) => void;
14
14
  unregisterPane: (paneId: string) => void;
@@ -3,8 +3,8 @@ import type React from 'react';
3
3
  import type { QuickSwitcherMode } from '../components/QuickSwitcher/NoResults';
4
4
  import type { RenderType } from '../components/RenderModal/RenderModalAdvanced';
5
5
  import type { UpdateInfo } from '../components/UpdateCheck';
6
- export declare type CompType = 'composition' | 'still';
7
- export declare type RenderModalState = {
6
+ export type CompType = 'composition' | 'still';
7
+ export type RenderModalState = {
8
8
  type: 'render';
9
9
  compositionId: string;
10
10
  initialFrame: number;
@@ -39,7 +39,7 @@ export declare type RenderModalState = {
39
39
  inFrameMark: number | null;
40
40
  outFrameMark: number | null;
41
41
  };
42
- export declare type ModalState = {
42
+ export type ModalState = {
43
43
  type: 'new-comp';
44
44
  compType: CompType;
45
45
  } | RenderModalState | {
@@ -53,7 +53,7 @@ export declare type ModalState = {
53
53
  mode: QuickSwitcherMode;
54
54
  invocationTimestamp: number;
55
55
  };
56
- export declare type ModalContextType = {
56
+ export type ModalContextType = {
57
57
  selectedModal: ModalState | null;
58
58
  setSelectedModal: React.Dispatch<React.SetStateAction<ModalState | null>>;
59
59
  };
@@ -1,6 +1,6 @@
1
1
  import type { PreviewSize } from '@remotion/player';
2
2
  import React from 'react';
3
- declare type PreviewSizeCtx = {
3
+ type PreviewSizeCtx = {
4
4
  size: PreviewSize;
5
5
  setSize: (cb: (oldSize: PreviewSize) => PreviewSize) => void;
6
6
  };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ declare type State = {
3
+ richTimeline: boolean;
4
+ setRichTimeline: (cb: (prevState: boolean) => boolean) => void;
5
+ };
6
+ export declare const persistRichTimelineOption: (option: boolean) => void;
7
+ export declare const loadRichTimelineOption: () => boolean;
8
+ export declare const RichTimelineContext: import("react").Context<State>;
9
+ export {};
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RichTimelineContext = exports.loadRichTimelineOption = exports.persistRichTimelineOption = void 0;
4
+ const react_1 = require("react");
5
+ const persistRichTimelineOption = (option) => {
6
+ localStorage.setItem('richTimeline', String(option));
7
+ };
8
+ exports.persistRichTimelineOption = persistRichTimelineOption;
9
+ const loadRichTimelineOption = () => {
10
+ const item = localStorage.getItem('richTimeline');
11
+ return item === 'true';
12
+ };
13
+ exports.loadRichTimelineOption = loadRichTimelineOption;
14
+ exports.RichTimelineContext = (0, react_1.createContext)({
15
+ richTimeline: (0, exports.loadRichTimelineOption)(),
16
+ setRichTimeline: () => undefined,
17
+ });
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- export declare type SidebarCollapsedState = 'collapsed' | 'expanded' | 'responsive';
3
- declare type RightSidebarCollapsedState = Exclude<SidebarCollapsedState, 'responsive'>;
4
- declare type Context = {
2
+ export type SidebarCollapsedState = 'collapsed' | 'expanded' | 'responsive';
3
+ type RightSidebarCollapsedState = Exclude<SidebarCollapsedState, 'responsive'>;
4
+ type Context = {
5
5
  sidebarCollapsedStateLeft: SidebarCollapsedState;
6
6
  setSidebarCollapsedState: (options: {
7
7
  left: null | React.SetStateAction<SidebarCollapsedState>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type TimelineRef = {
2
+ type TimelineRef = {
3
3
  collapseAll: () => void;
4
4
  expandAll: () => void;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import type { StaticFile } from 'remotion';
2
2
  import type { RenderJob } from './preview-server/render-queue/job';
3
- export declare type EventSourceEvent = {
3
+ export type EventSourceEvent = {
4
4
  type: 'new-input-props';
5
5
  newProps: object;
6
6
  } | {
@@ -1,4 +1,4 @@
1
- declare type FileChangeType = 'created' | 'deleted' | 'changed';
1
+ type FileChangeType = 'created' | 'deleted' | 'changed';
2
2
  export declare const installFileWatcher: ({ file, onChange, }: {
3
3
  file: string;
4
4
  onChange: (type: FileChangeType) => void;
@@ -11,7 +11,7 @@ export declare const getCliOptions: (options: {
11
11
  shouldOutputImageSequence: boolean;
12
12
  inputProps: Record<string, unknown>;
13
13
  envVariables: Record<string, string>;
14
- jpegQuality: number | undefined;
14
+ jpegQuality: number;
15
15
  browser: import("@remotion/renderer").Browser;
16
16
  crf: import("@remotion/renderer").Crf | null;
17
17
  pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
@@ -1,20 +1,19 @@
1
- import type { BrowserExecutable, BrowserLog, ChromiumOptions, DownloadMap, HeadlessBrowser } from '@remotion/renderer';
1
+ import type { BrowserExecutable, ChromiumOptions, HeadlessBrowser, RemotionServer } from '@remotion/renderer';
2
2
  import type { AnyCompMetadata } from 'remotion';
3
- export declare const getCompositionId: ({ args, compositionIdFromUi, inputProps, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, downloadMap, serveUrlOrWebpackUrl, verbose, onBrowserLog, indent, }: {
3
+ export declare const getCompositionId: ({ args, compositionIdFromUi, inputProps, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, verbose, indent, server, }: {
4
4
  args: string[];
5
5
  compositionIdFromUi: string | null;
6
- inputProps?: Record<string, unknown> | null | undefined;
7
- puppeteerInstance?: HeadlessBrowser | undefined;
8
- envVariables?: Record<string, string> | undefined;
9
- timeoutInMilliseconds?: number | undefined;
10
- chromiumOptions?: ChromiumOptions | undefined;
11
- port?: number | null | undefined;
12
- browserExecutable?: BrowserExecutable | undefined;
13
- downloadMap?: DownloadMap | undefined;
6
+ inputProps: Record<string, unknown>;
7
+ puppeteerInstance: HeadlessBrowser | undefined;
8
+ envVariables: Record<string, string>;
9
+ timeoutInMilliseconds: number;
10
+ chromiumOptions: ChromiumOptions;
11
+ port: number | null;
12
+ browserExecutable: BrowserExecutable;
14
13
  serveUrlOrWebpackUrl: string;
15
14
  verbose: boolean;
16
- onBrowserLog?: ((log: BrowserLog) => void) | undefined;
17
15
  indent: boolean;
16
+ server: RemotionServer;
18
17
  }) => Promise<{
19
18
  compositionId: string;
20
19
  reason: string;
@@ -15,13 +15,13 @@ const getCompName = ({ cliArgs, compositionIdFromUi, }) => {
15
15
  const [compName, ...remainingArgs] = cliArgs;
16
16
  return { compName, remainingArgs, reason: 'Passed as argument' };
17
17
  };
18
- const getCompositionId = async ({ args, compositionIdFromUi, inputProps, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, downloadMap, serveUrlOrWebpackUrl, verbose, onBrowserLog, indent, }) => {
18
+ const getCompositionId = async ({ args, compositionIdFromUi, inputProps, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, verbose, indent, server, }) => {
19
19
  const { compName, remainingArgs, reason: compReason, } = getCompName({
20
20
  cliArgs: args,
21
21
  compositionIdFromUi,
22
22
  });
23
23
  if (compName) {
24
- const config = await (0, renderer_1.selectComposition)({
24
+ const config = await renderer_1.RenderInternals.internalSelectComposition({
25
25
  id: compName,
26
26
  inputProps,
27
27
  puppeteerInstance,
@@ -30,9 +30,11 @@ const getCompositionId = async ({ args, compositionIdFromUi, inputProps, puppete
30
30
  serveUrl: serveUrlOrWebpackUrl,
31
31
  browserExecutable,
32
32
  chromiumOptions,
33
- onBrowserLog,
34
33
  port,
35
34
  verbose,
35
+ server,
36
+ indent,
37
+ onBrowserLog: null,
36
38
  });
37
39
  if (!config) {
38
40
  throw new Error(`Cannot find composition with ID "${compName}"`);
@@ -45,7 +47,7 @@ const getCompositionId = async ({ args, compositionIdFromUi, inputProps, puppete
45
47
  };
46
48
  }
47
49
  if (!process.env.CI) {
48
- const comps = await (0, renderer_1.getCompositions)(serveUrlOrWebpackUrl, {
50
+ const comps = await renderer_1.RenderInternals.internalGetCompositions({
49
51
  inputProps,
50
52
  puppeteerInstance,
51
53
  envVariables,
@@ -53,10 +55,11 @@ const getCompositionId = async ({ args, compositionIdFromUi, inputProps, puppete
53
55
  chromiumOptions,
54
56
  port,
55
57
  browserExecutable,
56
- downloadMap,
57
- onBrowserLog,
58
58
  verbose,
59
59
  indent,
60
+ server,
61
+ serveUrlOrWebpackUrl,
62
+ onBrowserLog: null,
60
63
  });
61
64
  const { compositionId, reason } = await (0, show_compositions_picker_1.showSingleCompositionsPicker)(comps);
62
65
  if (compositionId && typeof compositionId === 'string') {
@@ -1,6 +1,6 @@
1
- import type { BrowserExecutable, ChromiumOptions, DownloadMap, HeadlessBrowser } from '@remotion/renderer';
1
+ import type { BrowserExecutable, ChromiumOptions, HeadlessBrowser, RemotionServer } from '@remotion/renderer';
2
2
  import type { AnyCompMetadata } from 'remotion';
3
- export declare const getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, downloadMap, serveUrlOrWebpackUrl, indent, inputProps, verbose, }: {
3
+ export declare const getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, inputProps, verbose, server, }: {
4
4
  height: number | null;
5
5
  width: number | null;
6
6
  args: string[];
@@ -11,11 +11,11 @@ export declare const getCompositionWithDimensionOverride: ({ height, width, args
11
11
  chromiumOptions: ChromiumOptions;
12
12
  port: number | null;
13
13
  browserExecutable: BrowserExecutable | null;
14
- downloadMap: DownloadMap | undefined;
15
14
  serveUrlOrWebpackUrl: string;
16
15
  indent: boolean;
17
16
  verbose: boolean;
18
- inputProps: Record<string, unknown> | null;
17
+ inputProps: Record<string, unknown>;
18
+ server: RemotionServer;
19
19
  }) => Promise<{
20
20
  compositionId: string;
21
21
  reason: string;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getCompositionWithDimensionOverride = void 0;
4
4
  const get_composition_id_1 = require("./get-composition-id");
5
- const getCompositionWithDimensionOverride = async ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, downloadMap, serveUrlOrWebpackUrl, indent, inputProps, verbose, }) => {
5
+ const getCompositionWithDimensionOverride = async ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, inputProps, verbose, server, }) => {
6
6
  const returnValue = await (0, get_composition_id_1.getCompositionId)({
7
7
  args,
8
8
  compositionIdFromUi,
@@ -11,12 +11,12 @@ const getCompositionWithDimensionOverride = async ({ height, width, args, compos
11
11
  verbose,
12
12
  browserExecutable,
13
13
  chromiumOptions,
14
- downloadMap,
15
14
  envVariables,
16
15
  inputProps,
17
16
  port,
18
17
  puppeteerInstance,
19
18
  timeoutInMilliseconds,
19
+ server,
20
20
  });
21
21
  return {
22
22
  ...returnValue,
@@ -0,0 +1,8 @@
1
+ import type { Codec, RenderMediaOptions } from '@remotion/renderer';
2
+ export declare const getRenderMediaOptions: ({ outputLocation, config, serveUrl, codec, remotionRoot, }: {
3
+ outputLocation: RenderMediaOptions['outputLocation'];
4
+ config: RenderMediaOptions['composition'];
5
+ serveUrl: string;
6
+ codec: Codec;
7
+ remotionRoot: string;
8
+ }) => Promise<RenderMediaOptions>;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRenderMediaOptions = void 0;
4
+ const renderer_1 = require("@remotion/renderer");
5
+ const config_1 = require("./config");
6
+ const get_audio_codec_1 = require("./get-audio-codec");
7
+ const get_cli_options_1 = require("./get-cli-options");
8
+ const image_formats_1 = require("./image-formats");
9
+ const getRenderMediaOptions = async ({ outputLocation, config, serveUrl, codec, remotionRoot, }) => {
10
+ const { proResProfile, concurrency, frameRange, overwrite, inputProps, envVariables, quality, crf, pixelFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, numberOfGifLoops, everyNthFrame, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, height, width, } = await (0, get_cli_options_1.getCliOptions)({
11
+ isLambda: false,
12
+ type: 'series',
13
+ remotionRoot,
14
+ });
15
+ const imageFormat = (0, image_formats_1.getImageFormat)(codec);
16
+ const audioCodec = (0, get_audio_codec_1.getResolvedAudioCodec)();
17
+ return {
18
+ outputLocation,
19
+ composition: {
20
+ ...config,
21
+ width: width !== null && width !== void 0 ? width : config.width,
22
+ height: height !== null && height !== void 0 ? height : config.height,
23
+ },
24
+ crf,
25
+ envVariables,
26
+ ffmpegExecutable,
27
+ ffprobeExecutable,
28
+ frameRange,
29
+ imageFormat,
30
+ inputProps,
31
+ overwrite,
32
+ pixelFormat,
33
+ proResProfile,
34
+ quality,
35
+ dumpBrowserLogs: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
36
+ chromiumOptions,
37
+ timeoutInMilliseconds: config_1.ConfigInternals.getCurrentPuppeteerTimeout(),
38
+ scale,
39
+ port,
40
+ numberOfGifLoops,
41
+ everyNthFrame,
42
+ verbose: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
43
+ muted,
44
+ enforceAudioTrack,
45
+ browserExecutable,
46
+ ffmpegOverride,
47
+ concurrency,
48
+ serveUrl,
49
+ codec,
50
+ audioBitrate,
51
+ videoBitrate,
52
+ audioCodec,
53
+ };
54
+ };
55
+ exports.getRenderMediaOptions = getRenderMediaOptions;
package/dist/index.d.ts CHANGED
@@ -65,6 +65,7 @@ export declare const CliInternals: {
65
65
  logLevel: "verbose" | "info" | "warn" | "error";
66
66
  } & {
67
67
  tag?: string | undefined;
68
+ secondTag?: string | undefined;
68
69
  }, message?: any, ...optionalParams: any[]) => void;
69
70
  info: (message?: any, ...optionalParams: any[]) => void;
70
71
  infoAdvanced: (options: {
@@ -89,7 +90,7 @@ export declare const CliInternals: {
89
90
  shouldOutputImageSequence: boolean;
90
91
  inputProps: Record<string, unknown>;
91
92
  envVariables: Record<string, string>;
92
- jpegQuality: number | undefined;
93
+ jpegQuality: number;
93
94
  browser: import("@remotion/renderer").Browser;
94
95
  crf: import("@remotion/renderer").Crf | null;
95
96
  pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
@@ -216,7 +217,7 @@ export declare const CliInternals: {
216
217
  shouldUseNonOverlayingLogger: ({ logLevel, }: {
217
218
  logLevel: "verbose" | "info" | "warn" | "error";
218
219
  }) => boolean;
219
- getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, downloadMap, serveUrlOrWebpackUrl, indent, inputProps, verbose, }: {
220
+ getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, inputProps, verbose, server, }: {
220
221
  height: number | null;
221
222
  width: number | null;
222
223
  args: string[];
@@ -227,11 +228,11 @@ export declare const CliInternals: {
227
228
  chromiumOptions: import("@remotion/renderer").ChromiumOptions;
228
229
  port: number | null;
229
230
  browserExecutable: import("@remotion/renderer").BrowserExecutable;
230
- downloadMap: import("@remotion/renderer").DownloadMap | undefined;
231
231
  serveUrlOrWebpackUrl: string;
232
232
  indent: boolean;
233
233
  verbose: boolean;
234
- inputProps: Record<string, unknown> | null;
234
+ inputProps: Record<string, unknown>;
235
+ server: import("@remotion/renderer").RemotionServer;
235
236
  }) => Promise<{
236
237
  compositionId: string;
237
238
  reason: string;
@@ -0,0 +1,2 @@
1
+ export declare const INSTALL_COMMAND: "install";
2
+ export declare const installCommand: (remotionRoot: string, args: string[]) => Promise<void>;