@remotion/studio 4.0.171 → 4.0.172

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @remotion/studio@4.0.166 build /Users/jonathanburger/remotion/packages/studio
2
+ > @remotion/studio@4.0.171 build /Users/jonathanburger/remotion/packages/studio
3
3
  > bun --env-file=../.env.bundle bundle.ts
4
4
 
@@ -4339,6 +4339,12 @@ var calcNewProps = (compositionId, defaultProps) => {
4339
4339
  };
4340
4340
  };
4341
4341
 
4342
+ // src/api/reevaluate-composition.ts
4343
+ import {Internals as Internals2} from "remotion";
4344
+ var reevaluateComposition = () => {
4345
+ Internals2.resolveCompositionsRef.current?.reloadCurrentlySelectedComposition();
4346
+ };
4347
+
4342
4348
  // src/api/restart-studio.ts
4343
4349
  var restartStudio = () => {
4344
4350
  return callApi("/api/restart-studio", {});
@@ -4493,13 +4499,13 @@ var saveDefaultProps = async ({
4493
4499
  };
4494
4500
 
4495
4501
  // src/api/update-default-props.ts
4496
- import {Internals as Internals2} from "remotion";
4502
+ import {Internals as Internals3} from "remotion";
4497
4503
  var updateDefaultProps = ({
4498
4504
  compositionId,
4499
4505
  defaultProps
4500
4506
  }) => {
4501
4507
  const { generatedDefaultProps, composition } = calcNewProps(compositionId, defaultProps);
4502
- const propsStore = Internals2.editorPropsProviderRef.current;
4508
+ const propsStore = Internals3.editorPropsProviderRef.current;
4503
4509
  if (!propsStore) {
4504
4510
  throw new Error("No props store found. Are you in the Remotion Studio and are the Remotion versions aligned?");
4505
4511
  }
@@ -4509,7 +4515,7 @@ var updateDefaultProps = ({
4509
4515
  [composition.id]: generatedDefaultProps
4510
4516
  };
4511
4517
  });
4512
- window.dispatchEvent(new CustomEvent(Internals2.PROPS_UPDATED_EXTERNALLY));
4518
+ window.dispatchEvent(new CustomEvent(Internals3.PROPS_UPDATED_EXTERNALLY));
4513
4519
  };
4514
4520
 
4515
4521
  // src/api/watch-public-folder.ts
@@ -4589,6 +4595,7 @@ export {
4589
4595
  updateDefaultProps,
4590
4596
  saveDefaultProps,
4591
4597
  restartStudio,
4598
+ reevaluateComposition,
4592
4599
  getStaticFiles,
4593
4600
  focusDefaultPropsPath,
4594
4601
  deleteStaticFile