@remotion/studio 4.0.285 → 4.0.287
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-make.log +2 -2
- package/dist/api/go-to-composition.d.ts +6 -0
- package/dist/api/go-to-composition.js +14 -0
- package/dist/api/pause.d.ts +1 -0
- package/dist/api/pause.js +13 -0
- package/dist/api/play.d.ts +2 -0
- package/dist/api/play.js +13 -0
- package/dist/api/save-default-props.js +17 -7
- package/dist/api/seek.js +3 -3
- package/dist/api/toggle.d.ts +2 -0
- package/dist/api/toggle.js +13 -0
- package/dist/components/AssetSelector.js +17 -7
- package/dist/components/AssetSelectorItem.js +17 -7
- package/dist/components/CompSelectorRef.d.ts +4 -0
- package/dist/components/CompSelectorRef.js +82 -0
- package/dist/components/CompositionSelector.d.ts +0 -3
- package/dist/components/CompositionSelector.js +6 -53
- package/dist/components/Editor.js +17 -7
- package/dist/components/ExplorerPanel.js +2 -1
- package/dist/components/GlobalPropsEditorUpdateButton.js +17 -7
- package/dist/components/InstallPackage.js +17 -7
- package/dist/components/NewComposition/CodemodFooter.d.ts +1 -1
- package/dist/components/NewComposition/CodemodFooter.js +3 -3
- package/dist/components/NewComposition/DeleteComposition.js +1 -1
- package/dist/components/NewComposition/DuplicateComposition.js +1 -1
- package/dist/components/NewComposition/InputDragger.js +17 -7
- package/dist/components/NewComposition/RenameComposition.js +1 -1
- package/dist/components/QuickSwitcher/QuickSwitcherContent.js +1 -2
- package/dist/components/RenderModal/DataEditor.js +17 -7
- package/dist/components/RenderModal/EnvInput.js +17 -7
- package/dist/components/RenderModal/RenderModalJSONPropsEditor.js +17 -7
- package/dist/components/RenderModal/ResolveCompositionBeforeModal.js +17 -7
- package/dist/components/RenderModal/SchemaEditor/ZodArrayEditor.js +17 -7
- package/dist/components/RenderModal/SchemaEditor/ZodObjectEditor.js +17 -7
- package/dist/components/RenderModal/SchemaEditor/ZodTupleEditor.js +17 -7
- package/dist/components/RenderQueue/RenderQueueItemStatus.js +17 -7
- package/dist/components/RenderQueue/context.js +17 -7
- package/dist/components/RenderQueue/index.js +17 -7
- package/dist/components/TimeValue.js +5 -2
- package/dist/components/Timeline/TimelineLayerEye.js +1 -0
- package/dist/components/get-zod-if-possible.js +17 -7
- package/dist/esm/index.mjs +33 -9
- package/dist/esm/internals.mjs +2658 -2615
- package/dist/esm/previewEntry.mjs +2683 -2643
- package/dist/esm/renderEntry.mjs +2748 -2743
- package/dist/helpers/client-id.js +17 -7
- package/dist/helpers/persist-open-folders.d.ts +6 -0
- package/dist/helpers/persist-open-folders.js +7 -1
- package/dist/helpers/presets-labels.d.ts +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +9 -1
- package/dist/internals.d.ts +1 -1
- package/dist/renderEntry.js +17 -7
- package/package.json +9 -9
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/api/get-zod-schema-from-primitive.d.ts +0 -2
- package/dist/api/get-zod-schema-from-primitive.js +0 -13
- package/dist/api/use-visual-control.d.ts +0 -7
- package/dist/api/use-visual-control.js +0 -58
- package/dist/components/RenderModal/SchemaEditor/ZodMatrixEditor.d.ts +0 -17
- package/dist/components/RenderModal/SchemaEditor/ZodMatrixEditor.js +0 -91
- package/dist/components/VisualControls/ClickableFileName.d.ts +0 -3
- package/dist/components/VisualControls/ClickableFileName.js +0 -39
- package/dist/components/VisualControls/VisualControlHandle.d.ts +0 -8
- package/dist/components/VisualControls/VisualControlHandle.js +0 -34
- package/dist/components/VisualControls/VisualControlsContent.d.ts +0 -1
- package/dist/components/VisualControls/VisualControlsContent.js +0 -29
- package/dist/components/VisualControls/VisualControlsTabs.d.ts +0 -1
- package/dist/components/VisualControls/VisualControlsTabs.js +0 -11
- package/dist/components/VisualControls/get-original-stack-trace.d.ts +0 -2
- package/dist/components/VisualControls/get-original-stack-trace.js +0 -23
- package/dist/visual-controls/VisualControls.d.ts +0 -36
- package/dist/visual-controls/VisualControls.js +0 -118
- package/dist/visual-controls/get-current-edited-value.d.ts +0 -6
- package/dist/visual-controls/get-current-edited-value.js +0 -9
|
@@ -9,7 +9,6 @@ const is_composition_still_1 = require("../../helpers/is-composition-still");
|
|
|
9
9
|
const use_keybinding_1 = require("../../helpers/use-keybinding");
|
|
10
10
|
const use_menu_structure_1 = require("../../helpers/use-menu-structure");
|
|
11
11
|
const modals_1 = require("../../state/modals");
|
|
12
|
-
const CompositionSelector_1 = require("../CompositionSelector");
|
|
13
12
|
const InitialCompositionLoader_1 = require("../InitialCompositionLoader");
|
|
14
13
|
const KeyboardShortcutsExplainer_1 = require("../KeyboardShortcutsExplainer");
|
|
15
14
|
const is_menu_item_1 = require("../Menu/is-menu-item");
|
|
@@ -136,7 +135,7 @@ const QuickSwitcherContent = ({ initialMode, invocationTimestamp, readOnlyStudio
|
|
|
136
135
|
selectComposition(c, true);
|
|
137
136
|
setSelectedModal(null);
|
|
138
137
|
const selector = `.__remotion-composition[data-compname="${c.id}"]`;
|
|
139
|
-
(_a =
|
|
138
|
+
(_a = remotion_1.Internals.compositionSelectorRef.current) === null || _a === void 0 ? void 0 : _a.expandComposition(c.id);
|
|
140
139
|
waitForElm(selector).then(() => {
|
|
141
140
|
var _a;
|
|
142
141
|
(_a = document
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.DataEditor = void 0;
|
|
27
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.EnvInput = void 0;
|
|
27
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.RenderModalJSONPropsEditor = void 0;
|
|
27
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.ResolveCompositionBeforeModal = exports.ResolvedCompositionContext = void 0;
|
|
27
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.ZodArrayEditor = void 0;
|
|
27
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.ZodObjectEditor = void 0;
|
|
27
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.ZodTupleEditor = void 0;
|
|
27
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.RenderQueueItemStatus = void 0;
|
|
27
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.RenderQueueContextProvider = exports.renderJobsRef = exports.RenderQueueContext = void 0;
|
|
27
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.RenderQueue = void 0;
|
|
27
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
@@ -40,7 +40,7 @@ const TimeValue = () => {
|
|
|
40
40
|
const frame = (0, remotion_1.useCurrentFrame)();
|
|
41
41
|
const config = remotion_1.Internals.useUnsafeVideoConfig();
|
|
42
42
|
const isStill = (0, is_current_selected_still_1.useIsStill)();
|
|
43
|
-
const { seek } = player_1.PlayerInternals.usePlayer();
|
|
43
|
+
const { seek, play, pause, toggle } = player_1.PlayerInternals.usePlayer();
|
|
44
44
|
const keybindings = (0, use_keybinding_1.useKeybinding)();
|
|
45
45
|
const ref = (0, react_1.useRef)(null);
|
|
46
46
|
const onTextChange = (0, react_1.useCallback)((newVal) => {
|
|
@@ -55,7 +55,10 @@ const TimeValue = () => {
|
|
|
55
55
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.click();
|
|
56
56
|
},
|
|
57
57
|
seek,
|
|
58
|
-
|
|
58
|
+
play,
|
|
59
|
+
pause,
|
|
60
|
+
toggle,
|
|
61
|
+
}), [seek, play, pause, toggle]);
|
|
59
62
|
(0, react_1.useEffect)(() => {
|
|
60
63
|
const gKey = keybindings.registerKeybinding({
|
|
61
64
|
event: 'keypress',
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.ZodProvider = exports.useZodTypesIfPossible = exports.useZodIfPossible = exports.getZTypesIfPossible = exports.getZodIfPossible = void 0;
|
|
27
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
package/dist/esm/index.mjs
CHANGED
|
@@ -134,13 +134,18 @@ var getStaticFiles = () => {
|
|
|
134
134
|
}
|
|
135
135
|
return window.remotion_staticFiles;
|
|
136
136
|
};
|
|
137
|
+
// src/api/go-to-composition.ts
|
|
138
|
+
import { Internals } from "remotion";
|
|
139
|
+
var goToComposition = (compositionId) => {
|
|
140
|
+
Internals.compositionSelectorRef.current?.selectComposition(compositionId);
|
|
141
|
+
};
|
|
137
142
|
// src/api/helpers/calc-new-props.ts
|
|
138
|
-
import { Internals, getRemotionEnvironment as getRemotionEnvironment2 } from "remotion";
|
|
143
|
+
import { Internals as Internals2, getRemotionEnvironment as getRemotionEnvironment2 } from "remotion";
|
|
139
144
|
var calcNewProps = (compositionId, defaultProps) => {
|
|
140
145
|
if (!getRemotionEnvironment2().isStudio) {
|
|
141
146
|
throw new Error("saveDefaultProps can only be called in the Remotion Studio.");
|
|
142
147
|
}
|
|
143
|
-
const { compositionsRef, editorPropsProviderRef } =
|
|
148
|
+
const { compositionsRef, editorPropsProviderRef } = Internals2;
|
|
144
149
|
const compositionsStore = compositionsRef.current;
|
|
145
150
|
if (!compositionsStore) {
|
|
146
151
|
throw new Error("No compositions ref found. Are you in the Remotion Studio and are the Remotion versions aligned?");
|
|
@@ -167,10 +172,20 @@ var calcNewProps = (compositionId, defaultProps) => {
|
|
|
167
172
|
};
|
|
168
173
|
};
|
|
169
174
|
|
|
175
|
+
// src/api/pause.ts
|
|
176
|
+
import { Internals as Internals3 } from "remotion";
|
|
177
|
+
var pause = () => {
|
|
178
|
+
Internals3.timeValueRef.current?.pause();
|
|
179
|
+
};
|
|
180
|
+
// src/api/play.ts
|
|
181
|
+
import { Internals as Internals4 } from "remotion";
|
|
182
|
+
var play = (e) => {
|
|
183
|
+
Internals4.timeValueRef.current?.play(e);
|
|
184
|
+
};
|
|
170
185
|
// src/api/reevaluate-composition.ts
|
|
171
|
-
import { Internals as
|
|
186
|
+
import { Internals as Internals5 } from "remotion";
|
|
172
187
|
var reevaluateComposition = () => {
|
|
173
|
-
|
|
188
|
+
Internals5.resolveCompositionsRef.current?.reloadCurrentlySelectedComposition();
|
|
174
189
|
};
|
|
175
190
|
// src/api/restart-studio.ts
|
|
176
191
|
import { getRemotionEnvironment as getRemotionEnvironment3 } from "remotion";
|
|
@@ -340,18 +355,23 @@ var saveDefaultProps = async ({
|
|
|
340
355
|
return Promise.reject(err);
|
|
341
356
|
};
|
|
342
357
|
// src/api/seek.ts
|
|
343
|
-
import { Internals as
|
|
358
|
+
import { Internals as Internals6 } from "remotion";
|
|
344
359
|
var seek = (frame) => {
|
|
345
|
-
|
|
360
|
+
Internals6.timeValueRef.current?.seek(Math.max(0, frame));
|
|
361
|
+
};
|
|
362
|
+
// src/api/toggle.ts
|
|
363
|
+
import { Internals as Internals7 } from "remotion";
|
|
364
|
+
var toggle = (e) => {
|
|
365
|
+
Internals7.timeValueRef.current?.toggle(e);
|
|
346
366
|
};
|
|
347
367
|
// src/api/update-default-props.ts
|
|
348
|
-
import { Internals as
|
|
368
|
+
import { Internals as Internals8 } from "remotion";
|
|
349
369
|
var updateDefaultProps = ({
|
|
350
370
|
compositionId,
|
|
351
371
|
defaultProps
|
|
352
372
|
}) => {
|
|
353
373
|
const { generatedDefaultProps, composition } = calcNewProps(compositionId, defaultProps);
|
|
354
|
-
const propsStore =
|
|
374
|
+
const propsStore = Internals8.editorPropsProviderRef.current;
|
|
355
375
|
if (!propsStore) {
|
|
356
376
|
throw new Error("No props store found. Are you in the Remotion Studio and are the Remotion versions aligned?");
|
|
357
377
|
}
|
|
@@ -361,7 +381,7 @@ var updateDefaultProps = ({
|
|
|
361
381
|
[composition.id]: generatedDefaultProps
|
|
362
382
|
};
|
|
363
383
|
});
|
|
364
|
-
window.dispatchEvent(new CustomEvent(
|
|
384
|
+
window.dispatchEvent(new CustomEvent(Internals8.PROPS_UPDATED_EXTERNALLY, {
|
|
365
385
|
detail: {
|
|
366
386
|
resetUnsaved: false
|
|
367
387
|
}
|
|
@@ -458,10 +478,14 @@ export {
|
|
|
458
478
|
watchStaticFile,
|
|
459
479
|
watchPublicFolder,
|
|
460
480
|
updateDefaultProps,
|
|
481
|
+
toggle,
|
|
461
482
|
seek,
|
|
462
483
|
saveDefaultProps,
|
|
463
484
|
restartStudio,
|
|
464
485
|
reevaluateComposition,
|
|
486
|
+
play,
|
|
487
|
+
pause,
|
|
488
|
+
goToComposition,
|
|
465
489
|
getStaticFiles,
|
|
466
490
|
focusDefaultPropsPath,
|
|
467
491
|
deleteStaticFile,
|