@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.
- package/.turbo/turbo-build.log +1 -1
- package/dist/esm/index.mjs +10 -3
- package/dist/esm/internals.mjs +132 -127
- package/package.json +7 -7
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
package/dist/esm/index.mjs
CHANGED
|
@@ -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
|
|
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 =
|
|
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(
|
|
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
|