@remotion/studio 4.0.340 → 4.0.344

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.
@@ -474,7 +474,7 @@ var updateDefaultProps = ({
474
474
  }));
475
475
  };
476
476
  // src/api/visual-control.ts
477
- import { getRemotionEnvironment as getRemotionEnvironment6 } from "remotion";
477
+ import { getRemotionEnvironment as getRemotionEnvironment5 } from "remotion";
478
478
 
479
479
  // src/visual-controls/VisualControls.tsx
480
480
  import {
@@ -487,7 +487,7 @@ import {
487
487
  useRef,
488
488
  useState
489
489
  } from "react";
490
- import { getRemotionEnvironment as getRemotionEnvironment5 } from "remotion";
490
+ import { useRemotionEnvironment } from "remotion";
491
491
  import { jsx as jsx2 } from "react/jsx-runtime";
492
492
  var VisualControlsTabActivatedContext = createContext(false);
493
493
  var VisualControlsContext = createContext({
@@ -508,7 +508,7 @@ var SetVisualControlsContext = createContext({
508
508
 
509
509
  // src/api/visual-control.ts
510
510
  var visualControl = (key, value, schema) => {
511
- if (getRemotionEnvironment6().isRendering) {
511
+ if (getRemotionEnvironment5().isRendering) {
512
512
  return value;
513
513
  }
514
514
  if (!visualControlRef.current) {
@@ -517,10 +517,10 @@ var visualControl = (key, value, schema) => {
517
517
  return visualControlRef.current.globalVisualControl(key, value, schema);
518
518
  };
519
519
  // src/api/watch-public-folder.ts
520
- import { getRemotionEnvironment as getRemotionEnvironment7 } from "remotion";
520
+ import { getRemotionEnvironment as getRemotionEnvironment6 } from "remotion";
521
521
  var WATCH_REMOTION_STATIC_FILES = "remotion_staticFilesChanged";
522
522
  var watchPublicFolder = (callback) => {
523
- if (!getRemotionEnvironment7().isStudio) {
523
+ if (!getRemotionEnvironment6().isStudio) {
524
524
  console.warn("The watchPublicFolder() API is only available while using the Remotion Studio.");
525
525
  return { cancel: () => {
526
526
  return;
@@ -539,9 +539,9 @@ var watchPublicFolder = (callback) => {
539
539
  return { cancel };
540
540
  };
541
541
  // src/api/watch-static-file.ts
542
- import { getRemotionEnvironment as getRemotionEnvironment8 } from "remotion";
542
+ import { getRemotionEnvironment as getRemotionEnvironment7 } from "remotion";
543
543
  var watchStaticFile = (fileName, callback) => {
544
- if (!getRemotionEnvironment8().isStudio) {
544
+ if (!getRemotionEnvironment7().isStudio) {
545
545
  console.warn("watchStaticFile() is only available while using the Remotion Studio.");
546
546
  return { cancel: () => {
547
547
  return;