@remotion/bundler 3.2.0 → 3.2.3

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
@@ -98,6 +98,7 @@ const bundle = async (entryPoint, onProgressUpdate, options) => {
98
98
  editorName: null,
99
99
  inputProps: null,
100
100
  remotionRoot: resolvedRemotionRoot,
101
+ previewServerCommand: null,
101
102
  });
102
103
  fs_1.default.writeFileSync(path_1.default.join(outDir, 'index.html'), html);
103
104
  return outDir;
@@ -1,7 +1,8 @@
1
- export declare const indexHtml: ({ baseDir, editorName, inputProps, staticHash, remotionRoot, }: {
1
+ export declare const indexHtml: ({ baseDir, editorName, inputProps, staticHash, remotionRoot, previewServerCommand, }: {
2
2
  staticHash: string;
3
3
  baseDir: string;
4
4
  editorName: string | null;
5
5
  inputProps: object | null;
6
6
  remotionRoot: string;
7
+ previewServerCommand: string | null;
7
8
  }) => string;
@@ -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, staticHash, remotionRoot, }) => `
8
+ const indexHtml = ({ baseDir, editorName, inputProps, staticHash, remotionRoot, previewServerCommand, }) => `
9
9
  <!DOCTYPE html>
10
10
  <html lang="en">
11
11
  <head>
@@ -24,8 +24,9 @@ const indexHtml = ({ baseDir, editorName, inputProps, staticHash, remotionRoot,
24
24
  : '<script>window.remotion_editorName = null;</script>'}
25
25
  <script>window.remotion_projectName = ${JSON.stringify(path_1.default.basename(remotionRoot))};</script>
26
26
  <script>window.remotion_cwd = ${JSON.stringify(remotionRoot)};</script>
27
+ <script>window.remotion_previewServerCommand = ${previewServerCommand ? JSON.stringify(previewServerCommand) : 'null'};</script>
27
28
  ${inputProps
28
- ? ` <script>window.remotion_inputProps = ${JSON.stringify(JSON.stringify(inputProps))};</script>
29
+ ? `<script>window.remotion_inputProps = ${JSON.stringify(JSON.stringify(inputProps))};</script>
29
30
  `
30
31
  : ''}
31
32
 
@@ -37,6 +38,7 @@ const indexHtml = ({ baseDir, editorName, inputProps, staticHash, remotionRoot,
37
38
  <div id="menuportal-4"></div>
38
39
  <div id="menuportal-5"></div>
39
40
  <div id="remotion-error-overlay"></div>
41
+ <div id="server-disconnected-overlay"></div>
40
42
  <script src="${baseDir}bundle.js"></script>
41
43
  </body>
42
44
  </html>
package/dist/index.d.ts CHANGED
@@ -15,12 +15,13 @@ export declare const BundlerInternals: {
15
15
  entryPoints: string[];
16
16
  remotionRoot: string;
17
17
  }) => [string, webpack.Configuration];
18
- indexHtml: ({ baseDir, editorName, inputProps, staticHash, remotionRoot, }: {
18
+ indexHtml: ({ baseDir, editorName, inputProps, staticHash, remotionRoot, previewServerCommand, }: {
19
19
  staticHash: string;
20
20
  baseDir: string;
21
21
  editorName: string | null;
22
22
  inputProps: object | null;
23
23
  remotionRoot: string;
24
+ previewServerCommand: string | null;
24
25
  }) => string;
25
26
  cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "exists" | "other-exists" | "does-not-exist";
26
27
  clearCache: (remotionRoot: string) => Promise<void>;
@@ -167,6 +167,6 @@ if (typeof window !== 'undefined') {
167
167
  };
168
168
  });
169
169
  };
170
- window.siteVersion = '3';
170
+ window.siteVersion = '4';
171
171
  window.setBundleMode = exports.setBundleModeAndUpdate;
172
172
  }
@@ -5,7 +5,7 @@ remotion_1.Internals.setupEnvVariables();
5
5
  remotion_1.Internals.CSSUtils.injectCSS(`
6
6
  .css-reset, .css-reset * {
7
7
  font-size: 16px;
8
- line-height: 1;
8
+ line-height: 1.5;
9
9
  color: white;
10
10
  font-family: Arial, Helvetica, sans-serif;
11
11
  background: transparent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "3.2.0",
3
+ "version": "3.2.3",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -26,7 +26,7 @@
26
26
  "css-loader": "5.2.7",
27
27
  "esbuild": "0.14.19",
28
28
  "react-refresh": "0.9.0",
29
- "remotion": "3.2.0",
29
+ "remotion": "3.2.3",
30
30
  "style-loader": "2.0.0",
31
31
  "webpack": "5.72.0"
32
32
  },
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "47b188161a9e922a247eaa998e72d37af9137707"
66
+ "gitHead": "15773a2e48ee8a9dbcfd898520cb914396c21eb1"
67
67
  }