@remotion/bundler 4.1.0-alpha4 → 4.1.0-alpha7

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.
@@ -50,7 +50,7 @@ const GetVideo = ({ state }) => {
50
50
  }
51
51
  compositions.setCurrentComposition((_a = foundComposition === null || foundComposition === void 0 ? void 0 : foundComposition.id) !== null && _a !== void 0 ? _a : null);
52
52
  compositions.setCurrentCompositionMetadata({
53
- defaultProps: state.compositionDefaultProps,
53
+ props: state.props,
54
54
  durationInFrames: state.compositionDurationInFrames,
55
55
  fps: state.compositionFps,
56
56
  height: state.compositionHeight,
@@ -191,13 +191,20 @@ if (typeof window !== 'undefined') {
191
191
  return compositions;
192
192
  };
193
193
  window.getStaticCompositions = () => {
194
+ var _a;
194
195
  const compositions = getUnevaluatedComps();
196
+ const inputProps = typeof window === 'undefined' ||
197
+ remotion_1.Internals.getRemotionEnvironment() === 'player-development' ||
198
+ remotion_1.Internals.getRemotionEnvironment() === 'player-production'
199
+ ? {}
200
+ : (_a = (0, remotion_1.getInputProps)()) !== null && _a !== void 0 ? _a : {};
195
201
  return Promise.all(compositions.map(async (c) => {
196
202
  const handle = (0, remotion_1.delayRender)(`Running calculateMetadata() for composition ${c.id}. If you didn't want to evaluate this composition, use "selectComposition()" instead of "getCompositions()"`);
197
203
  const comp = remotion_1.Internals.resolveVideoConfig({
198
204
  composition: c,
199
205
  editorProps: {},
200
206
  signal: new AbortController().signal,
207
+ inputProps,
201
208
  });
202
209
  const resolved = await Promise.resolve(comp);
203
210
  (0, remotion_1.continueRender)(handle);
@@ -208,6 +215,7 @@ if (typeof window !== 'undefined') {
208
215
  return getUnevaluatedComps().map((c) => c.id);
209
216
  };
210
217
  window.remotion_calculateComposition = async (compId) => {
218
+ var _a;
211
219
  const compositions = getUnevaluatedComps();
212
220
  const selectedComp = compositions.find((c) => c.id === compId);
213
221
  if (!selectedComp) {
@@ -215,15 +223,21 @@ if (typeof window !== 'undefined') {
215
223
  }
216
224
  const abortController = new AbortController();
217
225
  const handle = (0, remotion_1.delayRender)(`Running the calculateMetadata() function for composition ${compId}`);
226
+ const inputProps = typeof window === 'undefined' ||
227
+ remotion_1.Internals.getRemotionEnvironment() === 'player-development' ||
228
+ remotion_1.Internals.getRemotionEnvironment() === 'player-production'
229
+ ? {}
230
+ : (_a = (0, remotion_1.getInputProps)()) !== null && _a !== void 0 ? _a : {};
218
231
  const prom = await Promise.resolve(remotion_1.Internals.resolveVideoConfig({
219
232
  composition: selectedComp,
220
233
  editorProps: {},
221
234
  signal: abortController.signal,
235
+ inputProps,
222
236
  }));
223
237
  (0, remotion_1.continueRender)(handle);
224
238
  return prom;
225
239
  };
226
- window.siteVersion = '5';
240
+ window.siteVersion = '7';
227
241
  window.remotion_version = remotion_1.VERSION;
228
242
  window.remotion_setBundleMode = exports.setBundleModeAndUpdate;
229
243
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "4.1.0-alpha4",
3
+ "version": "4.1.0-alpha7",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -18,11 +18,11 @@
18
18
  "license": "SEE LICENSE IN LICENSE.md",
19
19
  "dependencies": {
20
20
  "css-loader": "5.2.7",
21
- "esbuild": "0.16.12",
21
+ "esbuild": "0.18.6",
22
22
  "react-refresh": "0.9.0",
23
23
  "style-loader": "2.0.0",
24
24
  "webpack": "5.83.1",
25
- "remotion": "4.1.0-alpha4"
25
+ "remotion": "4.1.0-alpha7"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": ">=16.8.0",
@@ -35,7 +35,7 @@
35
35
  "@types/react-dom": "18.0.10",
36
36
  "eslint": "8.42.0",
37
37
  "eslint-plugin-10x": "1.5.2",
38
- "eslint-plugin-react": "7.29.4",
38
+ "eslint-plugin-react": "7.32.2",
39
39
  "eslint-plugin-react-hooks": "4.4.0",
40
40
  "prettier": "^2.7.1",
41
41
  "prettier-plugin-organize-imports": "^2.3.4",