init commit

This commit is contained in:
Carlos
2026-02-21 10:33:18 +01:00
parent c863a943ed
commit 9d955bf338
9512 changed files with 2015317 additions and 1305 deletions

View File

@@ -0,0 +1,26 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useIsVideoComposition = exports.useIsStill = void 0;
const react_1 = require("react");
const remotion_1 = require("remotion");
const is_composition_still_1 = require("./is-composition-still");
const useIsStill = () => {
const resolved = remotion_1.Internals.useResolvedVideoConfig(null);
if (!resolved || resolved.type !== 'success') {
return false;
}
return (0, is_composition_still_1.isCompositionStill)(resolved.result);
};
exports.useIsStill = useIsStill;
const useIsVideoComposition = () => {
const isStill = (0, exports.useIsStill)();
const { canvasContent } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
if (canvasContent === null) {
return false;
}
if (isStill) {
return false;
}
return canvasContent.type === 'composition';
};
exports.useIsVideoComposition = useIsVideoComposition;