@remotion/bundler 3.3.82 → 3.3.83

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 CHANGED
@@ -68,7 +68,7 @@ const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, optio
68
68
  webpackOverride: (_a = options === null || options === void 0 ? void 0 : options.webpackOverride) !== null && _a !== void 0 ? _a : ((f) => f),
69
69
  onProgress,
70
70
  enableCaching: (_b = options === null || options === void 0 ? void 0 : options.enableCaching) !== null && _b !== void 0 ? _b : true,
71
- maxTimelineTracks: 15,
71
+ maxTimelineTracks: 90,
72
72
  // For production, the variables are set dynamically
73
73
  envVariables: {},
74
74
  entryPoints: [],
@@ -187,6 +187,7 @@ async function bundle(...args) {
187
187
  dest: to,
188
188
  onSymlinkDetected: showSymlinkWarning,
189
189
  onProgress: (prog) => { var _a; return (_a = options.onPublicDirCopyProgress) === null || _a === void 0 ? void 0 : _a.call(options, prog); },
190
+ copied: 0,
190
191
  });
191
192
  }
192
193
  const html = (0, index_html_1.indexHtml)({
@@ -196,6 +197,7 @@ async function bundle(...args) {
196
197
  inputProps: null,
197
198
  remotionRoot: resolvedRemotionRoot,
198
199
  previewServerCommand: null,
200
+ renderQueue: null,
199
201
  numberOfAudioTags: 0,
200
202
  publicFiles: (0, read_recursively_1.readRecursively)({
201
203
  folder: '.',
@@ -205,6 +207,7 @@ async function bundle(...args) {
205
207
  }),
206
208
  includeFavicon: false,
207
209
  title: 'Remotion Bundle',
210
+ renderDefaults: undefined,
208
211
  });
209
212
  fs_1.default.writeFileSync(path_1.default.join(outDir, 'index.html'), html);
210
213
  return outDir;
package/dist/copy-dir.js CHANGED
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.copyDir = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const path_1 = __importDefault(require("path"));
9
- async function copyDir({ src, dest, onSymlinkDetected, onProgress, }) {
9
+ async function copyDir({ src, dest, onSymlinkDetected, onProgress, copied = 0, }) {
10
10
  await fs_1.default.promises.mkdir(dest, { recursive: true });
11
11
  const entries = await fs_1.default.promises.readdir(src, { withFileTypes: true });
12
- let copied = 0;
13
12
  for (const entry of entries) {
14
13
  const srcPath = path_1.default.join(src, entry.name);
15
14
  const destPath = path_1.default.join(dest, entry.name);
@@ -19,6 +18,7 @@ async function copyDir({ src, dest, onSymlinkDetected, onProgress, }) {
19
18
  dest: destPath,
20
19
  onSymlinkDetected,
21
20
  onProgress,
21
+ copied,
22
22
  });
23
23
  }
24
24
  else if (entry.isSymbolicLink()) {
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.indexHtml = void 0;
7
7
  const path_1 = __importDefault(require("path"));
8
- const indexHtml = ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, numberOfAudioTags, publicFiles, includeFavicon, title, }) => `
8
+ const indexHtml = ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, renderQueue, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, }) => `
9
9
  <!DOCTYPE html>
10
10
  <html lang="en">
11
11
  <head>
@@ -26,11 +26,16 @@ ${includeFavicon
26
26
  ? `<script>window.remotion_editorName = "${editorName}";</script>`
27
27
  : '<script>window.remotion_editorName = null;</script>'}
28
28
  <script>window.remotion_projectName = ${JSON.stringify(path_1.default.basename(remotionRoot))};</script>
29
+ <script>window.remotion_renderDefaults = ${JSON.stringify(renderDefaults)};</script>
29
30
  <script>window.remotion_cwd = ${JSON.stringify(remotionRoot)};</script>
30
31
  <script>window.remotion_previewServerCommand = ${previewServerCommand ? JSON.stringify(previewServerCommand) : 'null'};</script>
31
32
  ${inputProps
32
33
  ? `<script>window.remotion_inputProps = ${JSON.stringify(JSON.stringify(inputProps))};</script>
33
34
  `
35
+ : ''}
36
+ ${renderQueue
37
+ ? `<script>window.remotion_initialRenderQueue = ${JSON.stringify(renderQueue)};</script>
38
+ `
34
39
  : ''}
35
40
  ${envVariables
36
41
  ? `<script> window.process = {
@@ -16,4 +16,54 @@ remotion_1.Internals.CSSUtils.injectCSS(`
16
16
  font-size: 15px;
17
17
  line-height: 1.25;
18
18
  }
19
+
20
+ .__remotion-info-button-container code {
21
+ font-family: monospace;
22
+ font-size: 14px;
23
+ color: #0584f2
24
+ }
25
+
26
+ .__remotion-vertical-scrollbar::-webkit-scrollbar {
27
+ width: 6px;
28
+ }
29
+ .__remotion-vertical-scrollbar::-webkit-scrollbar-thumb {
30
+ background-color: rgba(0, 0, 0, 0.0);
31
+ }
32
+ .__remotion-vertical-scrollbar:hover::-webkit-scrollbar-thumb {
33
+ background-color: rgba(0, 0, 0, 0.6);
34
+ }
35
+ .__remotion-vertical-scrollbar:hover::-webkit-scrollbar-thumb:hover {
36
+ background-color: rgba(0, 0, 0, 1);
37
+ }
38
+
39
+ .__remotion-horizontal-scrollbar::-webkit-scrollbar {
40
+ height: 6px;
41
+ }
42
+ .__remotion-horizontal-scrollbar::-webkit-scrollbar-thumb {
43
+ background-color: rgba(0, 0, 0, 0.0);
44
+ }
45
+ .__remotion-horizontal-scrollbar:hover::-webkit-scrollbar-thumb {
46
+ background-color: rgba(0, 0, 0, 0.6);
47
+ }
48
+ .__remotion-horizontal-scrollbar:hover::-webkit-scrollbar-thumb:hover {
49
+ background-color: rgba(0, 0, 0, 1);
50
+ }
51
+
52
+ .__remotion-timeline-slider {
53
+ appearance: none;
54
+ width: 100px;
55
+ border-radius: 3px;
56
+ height: 6px;
57
+ background-color: rgba(255, 255, 255, 0.1);
58
+ accent-color: #ffffff;
59
+ }
60
+
61
+ .__remotion-timeline-slider::-moz-range-thumb {
62
+ width: 14px;
63
+ height: 14px;
64
+ border-radius: 50%;
65
+ background-color: #ffffff;
66
+ appearance: none;
67
+ }
68
+
19
69
  `);
@@ -40,8 +40,7 @@ const remotionCacheLocation = (remotionRoot, environment, hash) => {
40
40
  return path_1.default.join(getWebpackCacheDir(remotionRoot), (0, exports.getWebpackCacheName)(environment, hash));
41
41
  };
42
42
  const clearCache = (remotionRoot) => {
43
- var _a;
44
- return ((_a = fs_1.default.promises.rm) !== null && _a !== void 0 ? _a : fs_1.default.promises.rmdir)(getWebpackCacheDir(remotionRoot), {
43
+ return fs_1.default.promises.rm(getWebpackCacheDir(remotionRoot), {
45
44
  recursive: true,
46
45
  });
47
46
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "3.3.82",
3
+ "version": "3.3.83",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -20,7 +20,7 @@
20
20
  "css-loader": "5.2.7",
21
21
  "esbuild": "0.16.12",
22
22
  "react-refresh": "0.9.0",
23
- "remotion": "3.3.82",
23
+ "remotion": "3.3.83",
24
24
  "style-loader": "2.0.0",
25
25
  "webpack": "5.76.1"
26
26
  },