Comparing version 1.0.0-y.103 to 1.0.0-y.104
declare module '*.webm'; | ||
declare module '*.png'; | ||
declare module '*.mp4'; | ||
declare module '*.mp3'; | ||
declare module '*.wav'; | ||
declare module '*.aac'; | ||
declare module '*.svg'; | ||
declare module '*.jpg'; | ||
declare module '*.jpeg'; | ||
declare module '*.bmp'; | ||
declare module '*.gif'; | ||
declare module '*.woff'; | ||
declare module '*.woff2'; | ||
declare module '*.css'; | ||
//# sourceMappingURL=asset-types.d.ts.map |
@@ -56,3 +56,3 @@ "use strict"; | ||
}); | ||
if (register_root_1.getShouldStaticallyReturnCompositions()) { | ||
if (register_root_1.getIsEvaluation()) { | ||
register_root_1.addStaticComposition({ | ||
@@ -59,0 +59,0 @@ component: lazy, |
@@ -0,1 +1,2 @@ | ||
import './asset-types'; | ||
export * from './AbsoluteFill'; | ||
@@ -2,0 +3,0 @@ export * from './audio'; |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("./asset-types"); | ||
__exportStar(require("./AbsoluteFill"), exports); | ||
@@ -15,0 +16,0 @@ __exportStar(require("./audio"), exports); |
@@ -5,4 +5,2 @@ import React from 'react'; | ||
export declare const getRoot: () => React.FC<{}> | null; | ||
export declare const evaluateRootForCompositions: () => Promise<TComposition[]>; | ||
export declare const getShouldStaticallyReturnCompositions: () => boolean; | ||
export declare const addStaticComposition: <T>(composition: TComposition<T>) => void; | ||
@@ -9,0 +7,0 @@ export declare const removeStaticComposition: (id: string) => void; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getIsEvaluation = exports.getCompositionName = exports.removeStaticComposition = exports.addStaticComposition = exports.getShouldStaticallyReturnCompositions = exports.evaluateRootForCompositions = exports.getRoot = exports.registerRoot = void 0; | ||
const jsx_runtime_1 = require("react/jsx-runtime"); | ||
const RemotionRoot_1 = require("./RemotionRoot"); | ||
exports.getIsEvaluation = exports.getCompositionName = exports.removeStaticComposition = exports.addStaticComposition = exports.getRoot = exports.registerRoot = void 0; | ||
let root = null; | ||
let shouldStaticallyReturnCompositions = true; | ||
// Ok to have components with various prop types | ||
@@ -41,16 +19,2 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
exports.getRoot = getRoot; | ||
const evaluateRootForCompositions = async () => { | ||
shouldStaticallyReturnCompositions = true; | ||
const Root = exports.getRoot(); | ||
if (!Root) { | ||
throw new Error('There is no root'); | ||
} | ||
const { renderToStaticMarkup } = await Promise.resolve().then(() => __importStar(require('react-dom/server'))); | ||
const markup = (jsx_runtime_1.jsx(RemotionRoot_1.RemotionRoot, { children: jsx_runtime_1.jsx(Root, {}, void 0) }, void 0)); | ||
renderToStaticMarkup(markup); | ||
return staticCompositions; | ||
}; | ||
exports.evaluateRootForCompositions = evaluateRootForCompositions; | ||
const getShouldStaticallyReturnCompositions = () => shouldStaticallyReturnCompositions; | ||
exports.getShouldStaticallyReturnCompositions = getShouldStaticallyReturnCompositions; | ||
const addStaticComposition = (composition) => { | ||
@@ -57,0 +21,0 @@ staticCompositions = [...staticCompositions, composition]; |
{ | ||
"name": "remotion", | ||
"version": "1.0.0-y.103", | ||
"version": "1.0.0-y.104", | ||
"description": "Render videos in React", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114166
1494