@remotion/bundler 3.3.1 → 3.3.2

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
@@ -135,6 +135,7 @@ async function bundle(...args) {
135
135
  inputProps: null,
136
136
  remotionRoot: resolvedRemotionRoot,
137
137
  previewServerCommand: null,
138
+ numberOfAudioTags: 0,
138
139
  });
139
140
  fs_1.default.writeFileSync(path_1.default.join(outDir, 'index.html'), html);
140
141
  return outDir;
@@ -1,4 +1,4 @@
1
- export declare const indexHtml: ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, }: {
1
+ export declare const indexHtml: ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, numberOfAudioTags, }: {
2
2
  staticHash: string;
3
3
  baseDir: string;
4
4
  editorName: string | null;
@@ -6,4 +6,5 @@ export declare const indexHtml: ({ baseDir, editorName, inputProps, envVariables
6
6
  envVariables?: Record<string, string> | undefined;
7
7
  remotionRoot: string;
8
8
  previewServerCommand: string | null;
9
+ numberOfAudioTags: number;
9
10
  }) => 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, envVariables, staticHash, remotionRoot, previewServerCommand, }) => `
8
+ const indexHtml = ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, numberOfAudioTags, }) => `
9
9
  <!DOCTYPE html>
10
10
  <html lang="en">
11
11
  <head>
@@ -16,6 +16,7 @@ const indexHtml = ({ baseDir, editorName, inputProps, envVariables, staticHash,
16
16
  <title>Remotion Preview</title>
17
17
  </head>
18
18
  <body>
19
+ <script>window.remotion_numberOfAudioTags = ${numberOfAudioTags};</script>
19
20
  <script>window.remotion_staticBase = "${staticHash}";</script>
20
21
  <div id="video-container"></div>
21
22
  <div id="explainer-container"></div>
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ export declare const BundlerInternals: {
16
16
  entryPoints: string[];
17
17
  remotionRoot: string;
18
18
  }) => [string, webpack.Configuration];
19
- indexHtml: ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, }: {
19
+ indexHtml: ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, numberOfAudioTags, }: {
20
20
  staticHash: string;
21
21
  baseDir: string;
22
22
  editorName: string | null;
@@ -24,6 +24,7 @@ export declare const BundlerInternals: {
24
24
  envVariables?: Record<string, string> | undefined;
25
25
  remotionRoot: string;
26
26
  previewServerCommand: string | null;
27
+ numberOfAudioTags: number;
27
28
  }) => string;
28
29
  cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "exists" | "other-exists" | "does-not-exist";
29
30
  clearCache: (remotionRoot: string) => Promise<void>;
@@ -116,7 +116,7 @@ const WaitForRoot = () => {
116
116
  const renderContent = () => {
117
117
  const bundleMode = (0, bundle_mode_1.getBundleMode)();
118
118
  if (bundleMode.type === 'composition' || bundleMode.type === 'evaluation') {
119
- const markup = ((0, jsx_runtime_1.jsxs)(remotion_1.Internals.RemotionRoot, { children: [(0, jsx_runtime_1.jsx)(WaitForRoot, {}), (0, jsx_runtime_1.jsx)(GetVideo, { state: bundleMode })] }));
119
+ const markup = ((0, jsx_runtime_1.jsxs)(remotion_1.Internals.RemotionRoot, { numberOfAudioTags: 0, children: [(0, jsx_runtime_1.jsx)(WaitForRoot, {}), (0, jsx_runtime_1.jsx)(GetVideo, { state: bundleMode })] }));
120
120
  if (client_1.default.createRoot) {
121
121
  const root = client_1.default.createRoot(videoContainer);
122
122
  root.render(markup);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
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.15.13",
28
28
  "react-refresh": "0.9.0",
29
- "remotion": "3.3.1",
29
+ "remotion": "3.3.2",
30
30
  "style-loader": "2.0.0",
31
31
  "webpack": "5.74.0"
32
32
  },
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "f56a29f8ab19e279e1a9950d3a3ccbb3c8ae42e0"
67
+ "gitHead": "d7422b5d86e4766a4cdb0bc4e291e462a6bf8bb6"
68
68
  }