@json-render/remotion 0.4.0
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/LICENSE +201 -0
- package/README.md +310 -0
- package/dist/chunk-5C3GTKV7.mjs +356 -0
- package/dist/chunk-5C3GTKV7.mjs.map +1 -0
- package/dist/index.d.mts +166 -0
- package/dist/index.d.ts +166 -0
- package/dist/index.js +913 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +532 -0
- package/dist/index.mjs.map +1 -0
- package/dist/server.d.mts +426 -0
- package/dist/server.d.ts +426 -0
- package/dist/server.js +385 -0
- package/dist/server.js.map +1 -0
- package/dist/server.mjs +13 -0
- package/dist/server.mjs.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/schema.ts","../src/components/hooks.ts","../src/components/ClipWrapper.tsx","../src/components/standard.tsx","../src/components/Renderer.tsx","../src/catalog/definitions.ts"],"sourcesContent":["// Schema (Remotion's timeline-based spec format)\nexport { schema, type RemotionSchema, type RemotionSpec } from \"./schema\";\n\n// Catalog-aware types for Remotion\nexport type {\n FrameContext,\n VideoComponentContext,\n VideoComponentFn,\n VideoComponents,\n TransitionFn,\n BuiltInTransition,\n EffectFn,\n Effects,\n} from \"./catalog-types\";\n\n// Core types (re-exported for convenience)\nexport type { Spec } from \"@json-render/core\";\n\n// =============================================================================\n// Components - Pre-built Remotion components for rendering timelines\n// =============================================================================\n\n// Component types\nexport type {\n Clip,\n TimelineSpec,\n AudioTrack,\n TransitionStyles,\n ClipComponent,\n ComponentRegistry,\n} from \"./components\";\n\n// Hooks and utilities\nexport { useTransition, ClipWrapper } from \"./components\";\n\n// Standard components\nexport {\n TitleCard,\n ImageSlide,\n SplitScreen,\n QuoteCard,\n StatCard,\n LowerThird,\n TextOverlay,\n TypingText,\n LogoBug,\n VideoClip,\n} from \"./components\";\n\n// Renderer and component registry\nexport { Renderer, standardComponents } from \"./components\";\n\n// =============================================================================\n// Catalog Definitions - Pre-built definitions for use in catalogs\n// =============================================================================\n\nexport {\n standardComponentDefinitions,\n standardTransitionDefinitions,\n standardEffectDefinitions,\n type ComponentDefinition,\n type TransitionDefinition,\n type EffectDefinition,\n} from \"./catalog\";\n","import { defineSchema, type PromptContext } from \"@json-render/core\";\n\n/**\n * Prompt template for Remotion timeline generation\n *\n * Uses JSONL patch format (same as React) but builds up a timeline spec structure.\n */\nfunction remotionPromptTemplate(context: PromptContext): string {\n const { catalog, options } = context;\n const { system = \"You are a video timeline generator.\", customRules = [] } =\n options;\n\n const lines: string[] = [];\n lines.push(system);\n lines.push(\"\");\n\n // Output format - JSONL patches\n lines.push(\"OUTPUT FORMAT:\");\n lines.push(\n \"Output JSONL (one JSON object per line) with patches to build a timeline spec.\",\n );\n lines.push(\n \"Each line is a JSON patch operation. Build the timeline incrementally.\",\n );\n lines.push(\"\");\n lines.push(\"Example output (each line is a separate JSON object):\");\n lines.push(\"\");\n lines.push(`{\"op\":\"set\",\"path\":\"/composition\",\"value\":{\"id\":\"intro\",\"fps\":30,\"width\":1920,\"height\":1080,\"durationInFrames\":300}}\n{\"op\":\"set\",\"path\":\"/tracks\",\"value\":[{\"id\":\"main\",\"name\":\"Main\",\"type\":\"video\",\"enabled\":true},{\"id\":\"overlay\",\"name\":\"Overlay\",\"type\":\"overlay\",\"enabled\":true}]}\n{\"op\":\"set\",\"path\":\"/clips/0\",\"value\":{\"id\":\"clip-1\",\"trackId\":\"main\",\"component\":\"TitleCard\",\"props\":{\"title\":\"Welcome\",\"subtitle\":\"Getting Started\"},\"from\":0,\"durationInFrames\":90,\"transitionIn\":{\"type\":\"fade\",\"durationInFrames\":15},\"transitionOut\":{\"type\":\"fade\",\"durationInFrames\":15}}}\n{\"op\":\"set\",\"path\":\"/clips/1\",\"value\":{\"id\":\"clip-2\",\"trackId\":\"main\",\"component\":\"TitleCard\",\"props\":{\"title\":\"Features\"},\"from\":90,\"durationInFrames\":90}}\n{\"op\":\"set\",\"path\":\"/audio\",\"value\":{\"tracks\":[]}}`);\n lines.push(\"\");\n\n // Components\n const catalogData = catalog as {\n components?: Record<\n string,\n { description?: string; defaultDuration?: number }\n >;\n transitions?: Record<string, { description?: string }>;\n effects?: Record<string, { description?: string }>;\n };\n\n if (catalogData.components) {\n lines.push(\n `AVAILABLE COMPONENTS (${Object.keys(catalogData.components).length}):`,\n );\n lines.push(\"\");\n for (const [name, def] of Object.entries(catalogData.components)) {\n const duration = def.defaultDuration\n ? ` [default: ${def.defaultDuration} frames]`\n : \"\";\n lines.push(\n `- ${name}: ${def.description || \"No description\"}${duration}`,\n );\n }\n lines.push(\"\");\n }\n\n // Transitions\n if (\n catalogData.transitions &&\n Object.keys(catalogData.transitions).length > 0\n ) {\n lines.push(\"AVAILABLE TRANSITIONS:\");\n lines.push(\"\");\n for (const [name, def] of Object.entries(catalogData.transitions)) {\n lines.push(`- ${name}: ${def.description || \"No description\"}`);\n }\n lines.push(\"\");\n }\n\n // Rules\n lines.push(\"RULES:\");\n const baseRules = [\n \"Output ONLY JSONL patches - one JSON object per line, no markdown, no code fences\",\n \"First set /composition with {id, fps:30, width:1920, height:1080, durationInFrames}\",\n \"Then set /tracks array with video/overlay tracks\",\n \"Then set each clip: /clips/0, /clips/1, etc.\",\n \"Finally set /audio with {tracks:[]}\",\n \"ONLY use components listed above\",\n \"fps is always 30 (1 second = 30 frames, 10 seconds = 300 frames)\",\n 'Clips on \"main\" track flow sequentially (from = previous clip\\'s from + durationInFrames)',\n 'Overlay clips (LowerThird, TextOverlay) go on \"overlay\" track',\n ];\n const allRules = [...baseRules, ...customRules];\n allRules.forEach((rule, i) => {\n lines.push(`${i + 1}. ${rule}`);\n });\n\n return lines.join(\"\\n\");\n}\n\n/**\n * The schema for @json-render/remotion\n *\n * This schema is fundamentally different from the React element tree schema.\n * It's timeline-based, designed for video composition:\n *\n * - Spec: A composition with tracks containing timed clips\n * - Catalog: Video components (scenes, overlays, etc.) and effects\n *\n * This demonstrates that json-render is truly agnostic - different renderers\n * can have completely different spec formats.\n */\nexport const schema = defineSchema(\n (s) => ({\n // What the AI-generated SPEC looks like (timeline-based)\n spec: s.object({\n /** Composition settings */\n composition: s.object({\n /** Unique composition ID */\n id: s.string(),\n /** Frames per second */\n fps: s.number(),\n /** Width in pixels */\n width: s.number(),\n /** Height in pixels */\n height: s.number(),\n /** Total duration in frames */\n durationInFrames: s.number(),\n }),\n\n /** Timeline tracks (like layers in video editing) */\n tracks: s.array(\n s.object({\n /** Unique track ID */\n id: s.string(),\n /** Track name for organization */\n name: s.string(),\n /** Track type: \"video\" | \"audio\" | \"overlay\" | \"text\" */\n type: s.string(),\n /** Whether track is muted/hidden */\n enabled: s.boolean(),\n }),\n ),\n\n /** Clips placed on the timeline */\n clips: s.array(\n s.object({\n /** Unique clip ID */\n id: s.string(),\n /** Which track this clip belongs to */\n trackId: s.string(),\n /** Component type from catalog */\n component: s.ref(\"catalog.components\"),\n /** Component props */\n props: s.propsOf(\"catalog.components\"),\n /** Start frame (when clip begins) */\n from: s.number(),\n /** Duration in frames */\n durationInFrames: s.number(),\n /** Transition in effect */\n transitionIn: s.object({\n type: s.ref(\"catalog.transitions\"),\n durationInFrames: s.number(),\n }),\n /** Transition out effect */\n transitionOut: s.object({\n type: s.ref(\"catalog.transitions\"),\n durationInFrames: s.number(),\n }),\n }),\n ),\n\n /** Audio configuration */\n audio: s.object({\n /** Background music/audio clips */\n tracks: s.array(\n s.object({\n id: s.string(),\n src: s.string(),\n from: s.number(),\n durationInFrames: s.number(),\n volume: s.number(),\n }),\n ),\n }),\n }),\n\n // What the CATALOG must provide\n catalog: s.object({\n /** Video component definitions (scenes, overlays, etc.) */\n components: s.map({\n /** Zod schema for component props */\n props: s.zod(),\n /** Component type: \"scene\" | \"overlay\" | \"text\" | \"image\" | \"video\" */\n type: s.string(),\n /** Default duration in frames (can be overridden per clip) */\n defaultDuration: s.number(),\n /** Description for AI generation hints */\n description: s.string(),\n }),\n /** Transition effect definitions */\n transitions: s.map({\n /** Default duration in frames */\n defaultDuration: s.number(),\n /** Description for AI generation hints */\n description: s.string(),\n }),\n /** Effect definitions (filters, animations, etc.) */\n effects: s.map({\n /** Zod schema for effect params */\n params: s.zod(),\n /** Description for AI generation hints */\n description: s.string(),\n }),\n }),\n }),\n {\n promptTemplate: remotionPromptTemplate,\n },\n);\n\n/**\n * Type for the Remotion schema\n */\nexport type RemotionSchema = typeof schema;\n\n/**\n * Infer the spec type from a catalog\n */\nexport type RemotionSpec<TCatalog> = typeof schema extends {\n createCatalog: (catalog: TCatalog) => { _specType: infer S };\n}\n ? S\n : never;\n","\"use client\";\n\nimport { useVideoConfig, spring, interpolate } from \"remotion\";\nimport type { Clip, TransitionStyles } from \"./types\";\n\n/**\n * Calculate transition styles based on clip configuration\n *\n * Handles both transitionIn and transitionOut with support for:\n * - fade\n * - slideLeft / slideRight\n * - slideUp / slideDown\n * - zoom\n * - wipe\n */\nexport function useTransition(clip: Clip, frame: number): TransitionStyles {\n const { fps } = useVideoConfig();\n const relativeFrame = frame - clip.from;\n const clipEnd = clip.durationInFrames;\n\n let opacity = 1;\n let translateX = 0;\n let translateY = 0;\n let scale = 1;\n\n // Transition in\n if (clip.transitionIn && relativeFrame < clip.transitionIn.durationInFrames) {\n const progress = relativeFrame / clip.transitionIn.durationInFrames;\n const easedProgress = spring({\n frame: relativeFrame,\n fps,\n config: { damping: 200 },\n durationInFrames: clip.transitionIn.durationInFrames,\n });\n\n switch (clip.transitionIn.type) {\n case \"fade\":\n opacity = easedProgress;\n break;\n case \"slideLeft\":\n translateX = interpolate(easedProgress, [0, 1], [100, 0]);\n opacity = easedProgress;\n break;\n case \"slideRight\":\n translateX = interpolate(easedProgress, [0, 1], [-100, 0]);\n opacity = easedProgress;\n break;\n case \"slideUp\":\n translateY = interpolate(easedProgress, [0, 1], [100, 0]);\n opacity = easedProgress;\n break;\n case \"slideDown\":\n translateY = interpolate(easedProgress, [0, 1], [-100, 0]);\n opacity = easedProgress;\n break;\n case \"zoom\":\n scale = interpolate(easedProgress, [0, 1], [0.8, 1]);\n opacity = easedProgress;\n break;\n case \"wipe\":\n opacity = progress;\n break;\n }\n }\n\n // Transition out\n if (\n clip.transitionOut &&\n relativeFrame > clipEnd - clip.transitionOut.durationInFrames\n ) {\n const outStart = clipEnd - clip.transitionOut.durationInFrames;\n const outProgress =\n (relativeFrame - outStart) / clip.transitionOut.durationInFrames;\n const easedOutProgress = 1 - outProgress;\n\n switch (clip.transitionOut.type) {\n case \"fade\":\n opacity = Math.min(opacity, easedOutProgress);\n break;\n case \"slideLeft\":\n translateX = interpolate(outProgress, [0, 1], [0, -100]);\n opacity = Math.min(opacity, easedOutProgress);\n break;\n case \"slideRight\":\n translateX = interpolate(outProgress, [0, 1], [0, 100]);\n opacity = Math.min(opacity, easedOutProgress);\n break;\n case \"slideUp\":\n translateY = interpolate(outProgress, [0, 1], [0, -100]);\n opacity = Math.min(opacity, easedOutProgress);\n break;\n case \"slideDown\":\n translateY = interpolate(outProgress, [0, 1], [0, 100]);\n opacity = Math.min(opacity, easedOutProgress);\n break;\n case \"zoom\":\n scale = interpolate(outProgress, [0, 1], [1, 1.2]);\n opacity = Math.min(opacity, easedOutProgress);\n break;\n }\n }\n\n return { opacity, translateX, translateY, scale };\n}\n","\"use client\";\n\nimport { AbsoluteFill, useCurrentFrame } from \"remotion\";\nimport { useTransition } from \"./hooks\";\nimport type { Clip } from \"./types\";\n\ninterface ClipWrapperProps {\n clip: Clip;\n children: React.ReactNode;\n}\n\n/**\n * Wrapper component that applies transition animations to clips\n *\n * Automatically handles transitionIn and transitionOut based on clip config.\n */\nexport function ClipWrapper({ clip, children }: ClipWrapperProps) {\n const frame = useCurrentFrame();\n const { opacity, translateX, translateY, scale } = useTransition(\n clip,\n frame + clip.from,\n );\n\n return (\n <AbsoluteFill\n style={{\n opacity,\n transform: `translateX(${translateX}%) translateY(${translateY}%) scale(${scale})`,\n }}\n >\n {children}\n </AbsoluteFill>\n );\n}\n","\"use client\";\n\nimport {\n AbsoluteFill,\n useCurrentFrame,\n useVideoConfig,\n spring,\n} from \"remotion\";\nimport { ClipWrapper } from \"./ClipWrapper\";\nimport type { Clip } from \"./types\";\n\n// =============================================================================\n// TitleCard - Full-screen title with optional subtitle\n// =============================================================================\n\nexport function TitleCard({ clip }: { clip: Clip }) {\n const { title, subtitle, backgroundColor, textColor } = clip.props as {\n title: string;\n subtitle?: string;\n backgroundColor?: string;\n textColor?: string;\n };\n\n return (\n <ClipWrapper clip={clip}>\n <AbsoluteFill\n style={{\n backgroundColor: backgroundColor || \"#1a1a2e\",\n color: textColor || \"#ffffff\",\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n padding: 40,\n }}\n >\n <div\n style={{\n fontSize: 72,\n fontWeight: \"bold\",\n textAlign: \"center\",\n marginBottom: 16,\n }}\n >\n {title}\n </div>\n {subtitle && (\n <div\n style={{\n fontSize: 36,\n opacity: 0.7,\n textAlign: \"center\",\n }}\n >\n {subtitle}\n </div>\n )}\n </AbsoluteFill>\n </ClipWrapper>\n );\n}\n\n// =============================================================================\n// ImageSlide - Full-screen image display\n// =============================================================================\n\nexport function ImageSlide({ clip }: { clip: Clip }) {\n const { src, alt, fit, backgroundColor } = clip.props as {\n src: string;\n alt: string;\n fit?: \"cover\" | \"contain\";\n backgroundColor?: string;\n };\n\n return (\n <ClipWrapper clip={clip}>\n <AbsoluteFill\n style={{\n backgroundColor: backgroundColor || \"#0a0a0a\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {src ? (\n <img\n src={src}\n alt={alt}\n style={{\n width: \"100%\",\n height: \"100%\",\n objectFit: fit || \"cover\",\n }}\n />\n ) : (\n <div style={{ color: \"rgba(255,255,255,0.5)\", fontSize: 24 }}>\n [{alt}]\n </div>\n )}\n </AbsoluteFill>\n </ClipWrapper>\n );\n}\n\n// =============================================================================\n// SplitScreen - Two-panel comparison view\n// =============================================================================\n\nexport function SplitScreen({ clip }: { clip: Clip }) {\n const { leftTitle, rightTitle, leftColor, rightColor } = clip.props as {\n leftTitle: string;\n rightTitle: string;\n leftColor?: string;\n rightColor?: string;\n };\n\n return (\n <ClipWrapper clip={clip}>\n <AbsoluteFill style={{ display: \"flex\", flexDirection: \"row\" }}>\n <div\n style={{\n flex: 1,\n backgroundColor: leftColor || \"#1a1a2e\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"#ffffff\",\n }}\n >\n <div style={{ fontSize: 48, fontWeight: \"bold\" }}>{leftTitle}</div>\n </div>\n <div\n style={{\n flex: 1,\n backgroundColor: rightColor || \"#2e1a1a\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"#ffffff\",\n }}\n >\n <div style={{ fontSize: 48, fontWeight: \"bold\" }}>{rightTitle}</div>\n </div>\n </AbsoluteFill>\n </ClipWrapper>\n );\n}\n\n// =============================================================================\n// QuoteCard - Quote with attribution\n// =============================================================================\n\nexport function QuoteCard({ clip }: { clip: Clip }) {\n const { quote, author, backgroundColor } = clip.props as {\n quote: string;\n author?: string;\n backgroundColor?: string;\n };\n\n return (\n <ClipWrapper clip={clip}>\n <AbsoluteFill\n style={{\n backgroundColor: backgroundColor || \"#1a1a2e\",\n color: \"#ffffff\",\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n padding: 80,\n }}\n >\n <div\n style={{\n fontSize: 48,\n fontStyle: \"italic\",\n textAlign: \"center\",\n marginBottom: 24,\n }}\n >\n “{quote}”\n </div>\n {author && <div style={{ fontSize: 28, opacity: 0.7 }}>- {author}</div>}\n </AbsoluteFill>\n </ClipWrapper>\n );\n}\n\n// =============================================================================\n// StatCard - Large statistic display with animation\n// =============================================================================\n\nexport function StatCard({ clip }: { clip: Clip }) {\n const { value, label, prefix, suffix, backgroundColor } = clip.props as {\n value: string | number;\n label: string;\n prefix?: string;\n suffix?: string;\n backgroundColor?: string;\n };\n\n const frame = useCurrentFrame();\n const { fps } = useVideoConfig();\n\n // Animate the number counting up\n const animationProgress = spring({\n frame,\n fps,\n config: { damping: 100 },\n durationInFrames: 30,\n });\n\n const numValue = typeof value === \"number\" ? value : parseFloat(value) || 0;\n const displayValue = Math.round(numValue * animationProgress);\n\n return (\n <ClipWrapper clip={clip}>\n <AbsoluteFill\n style={{\n backgroundColor: backgroundColor || \"#1a1a2e\",\n color: \"#ffffff\",\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <div style={{ fontSize: 96, fontWeight: \"bold\", marginBottom: 16 }}>\n {prefix || \"\"}\n {typeof value === \"number\" ? displayValue : value}\n {suffix || \"\"}\n </div>\n <div style={{ fontSize: 32, opacity: 0.7 }}>{label}</div>\n </AbsoluteFill>\n </ClipWrapper>\n );\n}\n\n// =============================================================================\n// LowerThird - Name/title overlay\n// =============================================================================\n\nexport function LowerThird({ clip }: { clip: Clip }) {\n const { name, title } = clip.props as {\n name: string;\n title?: string;\n };\n\n return (\n <ClipWrapper clip={clip}>\n <AbsoluteFill>\n <div\n style={{\n position: \"absolute\",\n bottom: 100,\n left: 40,\n backgroundColor: \"rgba(0,0,0,0.8)\",\n color: \"#ffffff\",\n padding: \"16px 24px\",\n borderRadius: 8,\n }}\n >\n <div style={{ fontSize: 28, fontWeight: \"bold\" }}>{name}</div>\n {title && <div style={{ fontSize: 20, opacity: 0.7 }}>{title}</div>}\n </div>\n </AbsoluteFill>\n </ClipWrapper>\n );\n}\n\n// =============================================================================\n// TextOverlay - Simple text overlay\n// =============================================================================\n\nexport function TextOverlay({ clip }: { clip: Clip }) {\n const { text, position, fontSize } = clip.props as {\n text: string;\n position?: \"top\" | \"center\" | \"bottom\";\n fontSize?: \"small\" | \"medium\" | \"large\";\n };\n\n const positionStyles: Record<string, React.CSSProperties> = {\n top: { top: 100, left: 0, right: 0 },\n center: { top: \"50%\", left: 0, right: 0, transform: \"translateY(-50%)\" },\n bottom: { bottom: 100, left: 0, right: 0 },\n };\n\n const fontSizes: Record<string, number> = {\n small: 24,\n medium: 36,\n large: 56,\n };\n\n return (\n <ClipWrapper clip={clip}>\n <AbsoluteFill>\n <div\n style={{\n position: \"absolute\",\n ...positionStyles[position || \"center\"],\n textAlign: \"center\",\n color: \"#ffffff\",\n fontSize: fontSizes[fontSize || \"medium\"],\n padding: 20,\n textShadow: \"2px 2px 4px rgba(0,0,0,0.5)\",\n }}\n >\n {text}\n </div>\n </AbsoluteFill>\n </ClipWrapper>\n );\n}\n\n// =============================================================================\n// TypingText - Terminal-style typing animation\n// =============================================================================\n\nexport function TypingText({ clip }: { clip: Clip }) {\n const {\n text,\n backgroundColor,\n textColor,\n fontSize,\n fontFamily,\n showCursor = true,\n cursorChar = \"|\",\n charsPerSecond = 15,\n } = clip.props as {\n text: string;\n backgroundColor?: string;\n textColor?: string;\n fontSize?: number;\n fontFamily?: \"monospace\" | \"sans-serif\" | \"serif\";\n showCursor?: boolean;\n cursorChar?: string;\n charsPerSecond?: number;\n };\n\n const frame = useCurrentFrame();\n const { fps } = useVideoConfig();\n\n // Calculate how many characters to show based on current frame\n const framesPerChar = fps / charsPerSecond;\n const charsToShow = Math.min(Math.floor(frame / framesPerChar), text.length);\n const displayedText = text.slice(0, charsToShow);\n const isTypingComplete = charsToShow >= text.length;\n\n // Blinking cursor (blinks every 0.5 seconds)\n const cursorVisible =\n showCursor &&\n (Math.floor(frame / (fps / 2)) % 2 === 0 || !isTypingComplete);\n\n const fontFamilyMap: Record<string, string> = {\n monospace: \"'Courier New', Consolas, monospace\",\n \"sans-serif\": \"system-ui, -apple-system, sans-serif\",\n serif: \"Georgia, 'Times New Roman', serif\",\n };\n\n return (\n <ClipWrapper clip={clip}>\n <AbsoluteFill\n style={{\n backgroundColor: backgroundColor || \"#1e1e1e\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n padding: 60,\n }}\n >\n <div\n style={{\n color: textColor || \"#00ff00\",\n fontSize: fontSize || 48,\n fontFamily: fontFamilyMap[fontFamily || \"monospace\"],\n whiteSpace: \"pre-wrap\",\n wordBreak: \"break-word\",\n maxWidth: \"90%\",\n textAlign: \"left\",\n }}\n >\n {displayedText}\n {cursorVisible && (\n <span\n style={{\n opacity: isTypingComplete\n ? Math.floor(frame / (fps / 2)) % 2 === 0\n ? 1\n : 0\n : 1,\n }}\n >\n {cursorChar}\n </span>\n )}\n </div>\n </AbsoluteFill>\n </ClipWrapper>\n );\n}\n\n// =============================================================================\n// LogoBug - Corner watermark/logo\n// =============================================================================\n\nexport function LogoBug({ clip }: { clip: Clip }) {\n const { position, opacity: propOpacity } = clip.props as {\n position?: \"top-left\" | \"top-right\" | \"bottom-left\" | \"bottom-right\";\n opacity?: number;\n };\n\n const positionStyles: Record<string, React.CSSProperties> = {\n \"top-left\": { top: 20, left: 20 },\n \"top-right\": { top: 20, right: 20 },\n \"bottom-left\": { bottom: 20, left: 20 },\n \"bottom-right\": { bottom: 20, right: 20 },\n };\n\n return (\n <ClipWrapper clip={clip}>\n <AbsoluteFill>\n <div\n style={{\n position: \"absolute\",\n ...positionStyles[position || \"bottom-right\"],\n opacity: propOpacity ?? 0.5,\n color: \"#ffffff\",\n fontSize: 14,\n fontWeight: \"bold\",\n textShadow: \"1px 1px 2px rgba(0,0,0,0.5)\",\n }}\n >\n LOGO\n </div>\n </AbsoluteFill>\n </ClipWrapper>\n );\n}\n\n// =============================================================================\n// VideoClip - Video file playback (placeholder)\n// =============================================================================\n\nexport function VideoClip({ clip }: { clip: Clip }) {\n const { src } = clip.props as {\n src: string;\n startFrom?: number;\n volume?: number;\n };\n\n return (\n <ClipWrapper clip={clip}>\n <AbsoluteFill\n style={{\n backgroundColor: \"#000000\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"rgba(255,255,255,0.5)\",\n }}\n >\n <div>[Video: {src}]</div>\n </AbsoluteFill>\n </ClipWrapper>\n );\n}\n","\"use client\";\n\nimport { AbsoluteFill, Sequence } from \"remotion\";\nimport type { TimelineSpec, ComponentRegistry, Clip } from \"./types\";\n\n// Import standard components\nimport {\n TitleCard,\n ImageSlide,\n SplitScreen,\n QuoteCard,\n StatCard,\n LowerThird,\n TextOverlay,\n TypingText,\n LogoBug,\n VideoClip,\n} from \"./standard\";\n\n/**\n * Standard components provided by @json-render/remotion\n */\nexport const standardComponents: ComponentRegistry = {\n TitleCard,\n ImageSlide,\n SplitScreen,\n QuoteCard,\n StatCard,\n LowerThird,\n TextOverlay,\n TypingText,\n LogoBug,\n VideoClip,\n};\n\ninterface RendererProps {\n /** The timeline spec to render */\n spec: TimelineSpec;\n /**\n * Custom component registry to merge with standard components.\n * Custom components override standard ones with the same name.\n */\n components?: ComponentRegistry;\n}\n\n/**\n * Renders a timeline spec into Remotion components\n *\n * @example\n * // Use with standard components only\n * <Renderer spec={mySpec} />\n *\n * @example\n * // Add custom components\n * <Renderer\n * spec={mySpec}\n * components={{\n * CustomScene: MyCustomSceneComponent,\n * }}\n * />\n */\nexport function Renderer({\n spec,\n components: customComponents,\n}: RendererProps) {\n // Merge standard + custom components (custom overrides standard)\n const components: ComponentRegistry = {\n ...standardComponents,\n ...customComponents,\n };\n\n if (!spec.clips || spec.clips.length === 0) {\n return (\n <AbsoluteFill\n style={{\n backgroundColor: \"#1a1a2e\",\n color: \"#ffffff\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <div style={{ fontSize: 24, opacity: 0.5 }}>No clips</div>\n </AbsoluteFill>\n );\n }\n\n // Separate main track clips from overlay clips\n const mainClips = spec.clips.filter((c) => c.trackId === \"main\");\n const overlayClips = spec.clips.filter((c) => c.trackId === \"overlay\");\n\n const renderClip = (clip: Clip) => {\n const Component = components[clip.component];\n if (!Component) {\n console.warn(`Unknown component: ${clip.component}`);\n return null;\n }\n\n return (\n <Sequence\n key={clip.id}\n from={clip.from}\n durationInFrames={clip.durationInFrames}\n >\n <Component clip={clip} />\n </Sequence>\n );\n };\n\n return (\n <AbsoluteFill style={{ backgroundColor: \"#000000\" }}>\n {/* Main track clips */}\n {mainClips.map(renderClip)}\n\n {/* Overlay clips */}\n {overlayClips.map(renderClip)}\n </AbsoluteFill>\n );\n}\n","import { z } from \"zod\";\n\n/**\n * Standard component definitions for Remotion catalogs\n *\n * These can be used directly or extended with custom components.\n */\nexport const standardComponentDefinitions = {\n // ==========================================================================\n // Scene Components (full-screen)\n // ==========================================================================\n\n TitleCard: {\n props: z.object({\n title: z.string(),\n subtitle: z.string().nullable(),\n backgroundColor: z.string().nullable(),\n textColor: z.string().nullable(),\n }),\n type: \"scene\",\n defaultDuration: 90,\n description:\n \"Full-screen title card with centered text. Use for intros, outros, and section breaks.\",\n },\n\n ImageSlide: {\n props: z.object({\n src: z.string(),\n alt: z.string(),\n fit: z.enum([\"cover\", \"contain\"]).nullable(),\n backgroundColor: z.string().nullable(),\n }),\n type: \"image\",\n defaultDuration: 150,\n description:\n \"Full-screen image display. Use for product shots, photos, and visual content.\",\n },\n\n SplitScreen: {\n props: z.object({\n leftTitle: z.string(),\n rightTitle: z.string(),\n leftColor: z.string().nullable(),\n rightColor: z.string().nullable(),\n }),\n type: \"scene\",\n defaultDuration: 120,\n description:\n \"Split screen with two sides. Use for comparisons or before/after.\",\n },\n\n QuoteCard: {\n props: z.object({\n quote: z.string(),\n author: z.string().nullable(),\n backgroundColor: z.string().nullable(),\n }),\n type: \"scene\",\n defaultDuration: 150,\n description: \"Quote display with attribution. Use for testimonials.\",\n },\n\n StatCard: {\n props: z.object({\n value: z.string(),\n label: z.string(),\n prefix: z.string().nullable(),\n suffix: z.string().nullable(),\n backgroundColor: z.string().nullable(),\n }),\n type: \"scene\",\n defaultDuration: 90,\n description: \"Large statistic display. Use for key metrics and numbers.\",\n },\n\n TypingText: {\n props: z.object({\n text: z.string(),\n backgroundColor: z.string().nullable(),\n textColor: z.string().nullable(),\n fontSize: z.number().nullable(),\n fontFamily: z.enum([\"monospace\", \"sans-serif\", \"serif\"]).nullable(),\n showCursor: z.boolean().nullable(),\n cursorChar: z.string().nullable(),\n charsPerSecond: z.number().nullable(),\n }),\n type: \"scene\",\n defaultDuration: 180,\n description:\n \"Terminal-style typing animation that reveals text character by character. Perfect for code demos, CLI commands, and dramatic text reveals.\",\n },\n\n // ==========================================================================\n // Overlay Components\n // ==========================================================================\n\n LowerThird: {\n props: z.object({\n name: z.string(),\n title: z.string().nullable(),\n backgroundColor: z.string().nullable(),\n }),\n type: \"overlay\",\n defaultDuration: 120,\n description:\n \"Name/title overlay in lower third of screen. Use to identify speakers.\",\n },\n\n TextOverlay: {\n props: z.object({\n text: z.string(),\n position: z.enum([\"top\", \"center\", \"bottom\"]).nullable(),\n fontSize: z.enum([\"small\", \"medium\", \"large\"]).nullable(),\n }),\n type: \"overlay\",\n defaultDuration: 90,\n description: \"Simple text overlay. Use for captions and annotations.\",\n },\n\n LogoBug: {\n props: z.object({\n position: z\n .enum([\"top-left\", \"top-right\", \"bottom-left\", \"bottom-right\"])\n .nullable(),\n opacity: z.number().nullable(),\n }),\n type: \"overlay\",\n defaultDuration: 300,\n description: \"Corner logo watermark. Use for branding throughout video.\",\n },\n\n // ==========================================================================\n // Video Components\n // ==========================================================================\n\n VideoClip: {\n props: z.object({\n src: z.string(),\n startFrom: z.number().nullable(),\n volume: z.number().nullable(),\n }),\n type: \"video\",\n defaultDuration: 150,\n description: \"Video file playback. Use for B-roll and footage.\",\n },\n};\n\n/**\n * Standard transition definitions for Remotion catalogs\n */\nexport const standardTransitionDefinitions = {\n fade: {\n defaultDuration: 15,\n description: \"Smooth fade in/out. Use for gentle transitions.\",\n },\n slideLeft: {\n defaultDuration: 20,\n description: \"Slide from right to left. Use for forward progression.\",\n },\n slideRight: {\n defaultDuration: 20,\n description: \"Slide from left to right. Use for backward progression.\",\n },\n slideUp: {\n defaultDuration: 15,\n description: \"Slide from bottom to top. Use for overlays appearing.\",\n },\n slideDown: {\n defaultDuration: 15,\n description: \"Slide from top to bottom. Use for overlays disappearing.\",\n },\n zoom: {\n defaultDuration: 20,\n description: \"Zoom in/out effect. Use for emphasis.\",\n },\n wipe: {\n defaultDuration: 15,\n description: \"Horizontal wipe. Use for scene changes.\",\n },\n none: {\n defaultDuration: 0,\n description: \"No transition (hard cut).\",\n },\n};\n\n/**\n * Standard effect definitions for Remotion catalogs\n */\nexport const standardEffectDefinitions = {\n kenBurns: {\n params: z.object({\n startScale: z.number(),\n endScale: z.number(),\n panX: z.number().nullable(),\n panY: z.number().nullable(),\n }),\n description: \"Ken Burns pan and zoom effect for images.\",\n },\n pulse: {\n params: z.object({\n intensity: z.number(),\n }),\n description: \"Subtle pulsing scale effect for emphasis.\",\n },\n shake: {\n params: z.object({\n intensity: z.number(),\n }),\n description: \"Camera shake effect for energy.\",\n },\n};\n\n/**\n * Type for component definition\n */\nexport type ComponentDefinition = {\n props: z.ZodType;\n type: string;\n defaultDuration: number;\n description: string;\n};\n\n/**\n * Type for transition definition\n */\nexport type TransitionDefinition = {\n defaultDuration: number;\n description: string;\n};\n\n/**\n * Type for effect definition\n */\nexport type EffectDefinition = {\n params: z.ZodType;\n description: string;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAAiD;AAOjD,SAAS,uBAAuB,SAAgC;AAC9D,QAAM,EAAE,SAAS,QAAQ,IAAI;AAC7B,QAAM,EAAE,SAAS,uCAAuC,cAAc,CAAC,EAAE,IACvE;AAEF,QAAM,QAAkB,CAAC;AACzB,QAAM,KAAK,MAAM;AACjB,QAAM,KAAK,EAAE;AAGb,QAAM,KAAK,gBAAgB;AAC3B,QAAM;AAAA,IACJ;AAAA,EACF;AACA,QAAM;AAAA,IACJ;AAAA,EACF;AACA,QAAM,KAAK,EAAE;AACb,QAAM,KAAK,uDAAuD;AAClE,QAAM,KAAK,EAAE;AACb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iB;AAAA,IACjB,aAAa;AAAA,EACf;AACF;AAKO,IAAM,4BAA4B;AAAA,EACvC,UAAU;AAAA,IACR,QAAQ,aAAE,OAAO;AAAA,MACf,YAAY,aAAE,OAAO;AAAA,MACrB,UAAU,aAAE,OAAO;AAAA,MACnB,MAAM,aAAE,OAAO,EAAE,SAAS;AAAA,MAC1B,MAAM,aAAE,OAAO,EAAE,SAAS;AAAA,IAC5B,CAAC;AAAA,IACD,aAAa;AAAA,EACf;AAAA,EACA,OAAO;AAAA,IACL,QAAQ,aAAE,OAAO;AAAA,MACf,WAAW,aAAE,OAAO;AAAA,IACtB,CAAC;AAAA,IACD,aAAa;AAAA,EACf;AAAA,EACA,OAAO;AAAA,IACL,QAAQ,aAAE,OAAO;AAAA,MACf,WAAW,aAAE,OAAO;AAAA,IACtB,CAAC;AAAA,IACD,aAAa;AAAA,EACf;AACF;","names":["import_remotion","import_remotion","import_jsx_runtime","import_remotion","import_jsx_runtime"]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
import {
|
|
2
|
+
schema,
|
|
3
|
+
standardComponentDefinitions,
|
|
4
|
+
standardEffectDefinitions,
|
|
5
|
+
standardTransitionDefinitions
|
|
6
|
+
} from "./chunk-5C3GTKV7.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/hooks.ts
|
|
9
|
+
import { useVideoConfig, spring, interpolate } from "remotion";
|
|
10
|
+
function useTransition(clip, frame) {
|
|
11
|
+
const { fps } = useVideoConfig();
|
|
12
|
+
const relativeFrame = frame - clip.from;
|
|
13
|
+
const clipEnd = clip.durationInFrames;
|
|
14
|
+
let opacity = 1;
|
|
15
|
+
let translateX = 0;
|
|
16
|
+
let translateY = 0;
|
|
17
|
+
let scale = 1;
|
|
18
|
+
if (clip.transitionIn && relativeFrame < clip.transitionIn.durationInFrames) {
|
|
19
|
+
const progress = relativeFrame / clip.transitionIn.durationInFrames;
|
|
20
|
+
const easedProgress = spring({
|
|
21
|
+
frame: relativeFrame,
|
|
22
|
+
fps,
|
|
23
|
+
config: { damping: 200 },
|
|
24
|
+
durationInFrames: clip.transitionIn.durationInFrames
|
|
25
|
+
});
|
|
26
|
+
switch (clip.transitionIn.type) {
|
|
27
|
+
case "fade":
|
|
28
|
+
opacity = easedProgress;
|
|
29
|
+
break;
|
|
30
|
+
case "slideLeft":
|
|
31
|
+
translateX = interpolate(easedProgress, [0, 1], [100, 0]);
|
|
32
|
+
opacity = easedProgress;
|
|
33
|
+
break;
|
|
34
|
+
case "slideRight":
|
|
35
|
+
translateX = interpolate(easedProgress, [0, 1], [-100, 0]);
|
|
36
|
+
opacity = easedProgress;
|
|
37
|
+
break;
|
|
38
|
+
case "slideUp":
|
|
39
|
+
translateY = interpolate(easedProgress, [0, 1], [100, 0]);
|
|
40
|
+
opacity = easedProgress;
|
|
41
|
+
break;
|
|
42
|
+
case "slideDown":
|
|
43
|
+
translateY = interpolate(easedProgress, [0, 1], [-100, 0]);
|
|
44
|
+
opacity = easedProgress;
|
|
45
|
+
break;
|
|
46
|
+
case "zoom":
|
|
47
|
+
scale = interpolate(easedProgress, [0, 1], [0.8, 1]);
|
|
48
|
+
opacity = easedProgress;
|
|
49
|
+
break;
|
|
50
|
+
case "wipe":
|
|
51
|
+
opacity = progress;
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (clip.transitionOut && relativeFrame > clipEnd - clip.transitionOut.durationInFrames) {
|
|
56
|
+
const outStart = clipEnd - clip.transitionOut.durationInFrames;
|
|
57
|
+
const outProgress = (relativeFrame - outStart) / clip.transitionOut.durationInFrames;
|
|
58
|
+
const easedOutProgress = 1 - outProgress;
|
|
59
|
+
switch (clip.transitionOut.type) {
|
|
60
|
+
case "fade":
|
|
61
|
+
opacity = Math.min(opacity, easedOutProgress);
|
|
62
|
+
break;
|
|
63
|
+
case "slideLeft":
|
|
64
|
+
translateX = interpolate(outProgress, [0, 1], [0, -100]);
|
|
65
|
+
opacity = Math.min(opacity, easedOutProgress);
|
|
66
|
+
break;
|
|
67
|
+
case "slideRight":
|
|
68
|
+
translateX = interpolate(outProgress, [0, 1], [0, 100]);
|
|
69
|
+
opacity = Math.min(opacity, easedOutProgress);
|
|
70
|
+
break;
|
|
71
|
+
case "slideUp":
|
|
72
|
+
translateY = interpolate(outProgress, [0, 1], [0, -100]);
|
|
73
|
+
opacity = Math.min(opacity, easedOutProgress);
|
|
74
|
+
break;
|
|
75
|
+
case "slideDown":
|
|
76
|
+
translateY = interpolate(outProgress, [0, 1], [0, 100]);
|
|
77
|
+
opacity = Math.min(opacity, easedOutProgress);
|
|
78
|
+
break;
|
|
79
|
+
case "zoom":
|
|
80
|
+
scale = interpolate(outProgress, [0, 1], [1, 1.2]);
|
|
81
|
+
opacity = Math.min(opacity, easedOutProgress);
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return { opacity, translateX, translateY, scale };
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// src/components/ClipWrapper.tsx
|
|
89
|
+
import { AbsoluteFill, useCurrentFrame } from "remotion";
|
|
90
|
+
import { jsx } from "react/jsx-runtime";
|
|
91
|
+
function ClipWrapper({ clip, children }) {
|
|
92
|
+
const frame = useCurrentFrame();
|
|
93
|
+
const { opacity, translateX, translateY, scale } = useTransition(
|
|
94
|
+
clip,
|
|
95
|
+
frame + clip.from
|
|
96
|
+
);
|
|
97
|
+
return /* @__PURE__ */ jsx(
|
|
98
|
+
AbsoluteFill,
|
|
99
|
+
{
|
|
100
|
+
style: {
|
|
101
|
+
opacity,
|
|
102
|
+
transform: `translateX(${translateX}%) translateY(${translateY}%) scale(${scale})`
|
|
103
|
+
},
|
|
104
|
+
children
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// src/components/standard.tsx
|
|
110
|
+
import {
|
|
111
|
+
AbsoluteFill as AbsoluteFill2,
|
|
112
|
+
useCurrentFrame as useCurrentFrame2,
|
|
113
|
+
useVideoConfig as useVideoConfig2,
|
|
114
|
+
spring as spring2
|
|
115
|
+
} from "remotion";
|
|
116
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
117
|
+
function TitleCard({ clip }) {
|
|
118
|
+
const { title, subtitle, backgroundColor, textColor } = clip.props;
|
|
119
|
+
return /* @__PURE__ */ jsx2(ClipWrapper, { clip, children: /* @__PURE__ */ jsxs(
|
|
120
|
+
AbsoluteFill2,
|
|
121
|
+
{
|
|
122
|
+
style: {
|
|
123
|
+
backgroundColor: backgroundColor || "#1a1a2e",
|
|
124
|
+
color: textColor || "#ffffff",
|
|
125
|
+
display: "flex",
|
|
126
|
+
flexDirection: "column",
|
|
127
|
+
alignItems: "center",
|
|
128
|
+
justifyContent: "center",
|
|
129
|
+
padding: 40
|
|
130
|
+
},
|
|
131
|
+
children: [
|
|
132
|
+
/* @__PURE__ */ jsx2(
|
|
133
|
+
"div",
|
|
134
|
+
{
|
|
135
|
+
style: {
|
|
136
|
+
fontSize: 72,
|
|
137
|
+
fontWeight: "bold",
|
|
138
|
+
textAlign: "center",
|
|
139
|
+
marginBottom: 16
|
|
140
|
+
},
|
|
141
|
+
children: title
|
|
142
|
+
}
|
|
143
|
+
),
|
|
144
|
+
subtitle && /* @__PURE__ */ jsx2(
|
|
145
|
+
"div",
|
|
146
|
+
{
|
|
147
|
+
style: {
|
|
148
|
+
fontSize: 36,
|
|
149
|
+
opacity: 0.7,
|
|
150
|
+
textAlign: "center"
|
|
151
|
+
},
|
|
152
|
+
children: subtitle
|
|
153
|
+
}
|
|
154
|
+
)
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
) });
|
|
158
|
+
}
|
|
159
|
+
function ImageSlide({ clip }) {
|
|
160
|
+
const { src, alt, fit, backgroundColor } = clip.props;
|
|
161
|
+
return /* @__PURE__ */ jsx2(ClipWrapper, { clip, children: /* @__PURE__ */ jsx2(
|
|
162
|
+
AbsoluteFill2,
|
|
163
|
+
{
|
|
164
|
+
style: {
|
|
165
|
+
backgroundColor: backgroundColor || "#0a0a0a",
|
|
166
|
+
display: "flex",
|
|
167
|
+
alignItems: "center",
|
|
168
|
+
justifyContent: "center"
|
|
169
|
+
},
|
|
170
|
+
children: src ? /* @__PURE__ */ jsx2(
|
|
171
|
+
"img",
|
|
172
|
+
{
|
|
173
|
+
src,
|
|
174
|
+
alt,
|
|
175
|
+
style: {
|
|
176
|
+
width: "100%",
|
|
177
|
+
height: "100%",
|
|
178
|
+
objectFit: fit || "cover"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
) : /* @__PURE__ */ jsxs("div", { style: { color: "rgba(255,255,255,0.5)", fontSize: 24 }, children: [
|
|
182
|
+
"[",
|
|
183
|
+
alt,
|
|
184
|
+
"]"
|
|
185
|
+
] })
|
|
186
|
+
}
|
|
187
|
+
) });
|
|
188
|
+
}
|
|
189
|
+
function SplitScreen({ clip }) {
|
|
190
|
+
const { leftTitle, rightTitle, leftColor, rightColor } = clip.props;
|
|
191
|
+
return /* @__PURE__ */ jsx2(ClipWrapper, { clip, children: /* @__PURE__ */ jsxs(AbsoluteFill2, { style: { display: "flex", flexDirection: "row" }, children: [
|
|
192
|
+
/* @__PURE__ */ jsx2(
|
|
193
|
+
"div",
|
|
194
|
+
{
|
|
195
|
+
style: {
|
|
196
|
+
flex: 1,
|
|
197
|
+
backgroundColor: leftColor || "#1a1a2e",
|
|
198
|
+
display: "flex",
|
|
199
|
+
alignItems: "center",
|
|
200
|
+
justifyContent: "center",
|
|
201
|
+
color: "#ffffff"
|
|
202
|
+
},
|
|
203
|
+
children: /* @__PURE__ */ jsx2("div", { style: { fontSize: 48, fontWeight: "bold" }, children: leftTitle })
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
/* @__PURE__ */ jsx2(
|
|
207
|
+
"div",
|
|
208
|
+
{
|
|
209
|
+
style: {
|
|
210
|
+
flex: 1,
|
|
211
|
+
backgroundColor: rightColor || "#2e1a1a",
|
|
212
|
+
display: "flex",
|
|
213
|
+
alignItems: "center",
|
|
214
|
+
justifyContent: "center",
|
|
215
|
+
color: "#ffffff"
|
|
216
|
+
},
|
|
217
|
+
children: /* @__PURE__ */ jsx2("div", { style: { fontSize: 48, fontWeight: "bold" }, children: rightTitle })
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
] }) });
|
|
221
|
+
}
|
|
222
|
+
function QuoteCard({ clip }) {
|
|
223
|
+
const { quote, author, backgroundColor } = clip.props;
|
|
224
|
+
return /* @__PURE__ */ jsx2(ClipWrapper, { clip, children: /* @__PURE__ */ jsxs(
|
|
225
|
+
AbsoluteFill2,
|
|
226
|
+
{
|
|
227
|
+
style: {
|
|
228
|
+
backgroundColor: backgroundColor || "#1a1a2e",
|
|
229
|
+
color: "#ffffff",
|
|
230
|
+
display: "flex",
|
|
231
|
+
flexDirection: "column",
|
|
232
|
+
alignItems: "center",
|
|
233
|
+
justifyContent: "center",
|
|
234
|
+
padding: 80
|
|
235
|
+
},
|
|
236
|
+
children: [
|
|
237
|
+
/* @__PURE__ */ jsxs(
|
|
238
|
+
"div",
|
|
239
|
+
{
|
|
240
|
+
style: {
|
|
241
|
+
fontSize: 48,
|
|
242
|
+
fontStyle: "italic",
|
|
243
|
+
textAlign: "center",
|
|
244
|
+
marginBottom: 24
|
|
245
|
+
},
|
|
246
|
+
children: [
|
|
247
|
+
"\u201C",
|
|
248
|
+
quote,
|
|
249
|
+
"\u201D"
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
),
|
|
253
|
+
author && /* @__PURE__ */ jsxs("div", { style: { fontSize: 28, opacity: 0.7 }, children: [
|
|
254
|
+
"- ",
|
|
255
|
+
author
|
|
256
|
+
] })
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
) });
|
|
260
|
+
}
|
|
261
|
+
function StatCard({ clip }) {
|
|
262
|
+
const { value, label, prefix, suffix, backgroundColor } = clip.props;
|
|
263
|
+
const frame = useCurrentFrame2();
|
|
264
|
+
const { fps } = useVideoConfig2();
|
|
265
|
+
const animationProgress = spring2({
|
|
266
|
+
frame,
|
|
267
|
+
fps,
|
|
268
|
+
config: { damping: 100 },
|
|
269
|
+
durationInFrames: 30
|
|
270
|
+
});
|
|
271
|
+
const numValue = typeof value === "number" ? value : parseFloat(value) || 0;
|
|
272
|
+
const displayValue = Math.round(numValue * animationProgress);
|
|
273
|
+
return /* @__PURE__ */ jsx2(ClipWrapper, { clip, children: /* @__PURE__ */ jsxs(
|
|
274
|
+
AbsoluteFill2,
|
|
275
|
+
{
|
|
276
|
+
style: {
|
|
277
|
+
backgroundColor: backgroundColor || "#1a1a2e",
|
|
278
|
+
color: "#ffffff",
|
|
279
|
+
display: "flex",
|
|
280
|
+
flexDirection: "column",
|
|
281
|
+
alignItems: "center",
|
|
282
|
+
justifyContent: "center"
|
|
283
|
+
},
|
|
284
|
+
children: [
|
|
285
|
+
/* @__PURE__ */ jsxs("div", { style: { fontSize: 96, fontWeight: "bold", marginBottom: 16 }, children: [
|
|
286
|
+
prefix || "",
|
|
287
|
+
typeof value === "number" ? displayValue : value,
|
|
288
|
+
suffix || ""
|
|
289
|
+
] }),
|
|
290
|
+
/* @__PURE__ */ jsx2("div", { style: { fontSize: 32, opacity: 0.7 }, children: label })
|
|
291
|
+
]
|
|
292
|
+
}
|
|
293
|
+
) });
|
|
294
|
+
}
|
|
295
|
+
function LowerThird({ clip }) {
|
|
296
|
+
const { name, title } = clip.props;
|
|
297
|
+
return /* @__PURE__ */ jsx2(ClipWrapper, { clip, children: /* @__PURE__ */ jsx2(AbsoluteFill2, { children: /* @__PURE__ */ jsxs(
|
|
298
|
+
"div",
|
|
299
|
+
{
|
|
300
|
+
style: {
|
|
301
|
+
position: "absolute",
|
|
302
|
+
bottom: 100,
|
|
303
|
+
left: 40,
|
|
304
|
+
backgroundColor: "rgba(0,0,0,0.8)",
|
|
305
|
+
color: "#ffffff",
|
|
306
|
+
padding: "16px 24px",
|
|
307
|
+
borderRadius: 8
|
|
308
|
+
},
|
|
309
|
+
children: [
|
|
310
|
+
/* @__PURE__ */ jsx2("div", { style: { fontSize: 28, fontWeight: "bold" }, children: name }),
|
|
311
|
+
title && /* @__PURE__ */ jsx2("div", { style: { fontSize: 20, opacity: 0.7 }, children: title })
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
) }) });
|
|
315
|
+
}
|
|
316
|
+
function TextOverlay({ clip }) {
|
|
317
|
+
const { text, position, fontSize } = clip.props;
|
|
318
|
+
const positionStyles = {
|
|
319
|
+
top: { top: 100, left: 0, right: 0 },
|
|
320
|
+
center: { top: "50%", left: 0, right: 0, transform: "translateY(-50%)" },
|
|
321
|
+
bottom: { bottom: 100, left: 0, right: 0 }
|
|
322
|
+
};
|
|
323
|
+
const fontSizes = {
|
|
324
|
+
small: 24,
|
|
325
|
+
medium: 36,
|
|
326
|
+
large: 56
|
|
327
|
+
};
|
|
328
|
+
return /* @__PURE__ */ jsx2(ClipWrapper, { clip, children: /* @__PURE__ */ jsx2(AbsoluteFill2, { children: /* @__PURE__ */ jsx2(
|
|
329
|
+
"div",
|
|
330
|
+
{
|
|
331
|
+
style: {
|
|
332
|
+
position: "absolute",
|
|
333
|
+
...positionStyles[position || "center"],
|
|
334
|
+
textAlign: "center",
|
|
335
|
+
color: "#ffffff",
|
|
336
|
+
fontSize: fontSizes[fontSize || "medium"],
|
|
337
|
+
padding: 20,
|
|
338
|
+
textShadow: "2px 2px 4px rgba(0,0,0,0.5)"
|
|
339
|
+
},
|
|
340
|
+
children: text
|
|
341
|
+
}
|
|
342
|
+
) }) });
|
|
343
|
+
}
|
|
344
|
+
function TypingText({ clip }) {
|
|
345
|
+
const {
|
|
346
|
+
text,
|
|
347
|
+
backgroundColor,
|
|
348
|
+
textColor,
|
|
349
|
+
fontSize,
|
|
350
|
+
fontFamily,
|
|
351
|
+
showCursor = true,
|
|
352
|
+
cursorChar = "|",
|
|
353
|
+
charsPerSecond = 15
|
|
354
|
+
} = clip.props;
|
|
355
|
+
const frame = useCurrentFrame2();
|
|
356
|
+
const { fps } = useVideoConfig2();
|
|
357
|
+
const framesPerChar = fps / charsPerSecond;
|
|
358
|
+
const charsToShow = Math.min(Math.floor(frame / framesPerChar), text.length);
|
|
359
|
+
const displayedText = text.slice(0, charsToShow);
|
|
360
|
+
const isTypingComplete = charsToShow >= text.length;
|
|
361
|
+
const cursorVisible = showCursor && (Math.floor(frame / (fps / 2)) % 2 === 0 || !isTypingComplete);
|
|
362
|
+
const fontFamilyMap = {
|
|
363
|
+
monospace: "'Courier New', Consolas, monospace",
|
|
364
|
+
"sans-serif": "system-ui, -apple-system, sans-serif",
|
|
365
|
+
serif: "Georgia, 'Times New Roman', serif"
|
|
366
|
+
};
|
|
367
|
+
return /* @__PURE__ */ jsx2(ClipWrapper, { clip, children: /* @__PURE__ */ jsx2(
|
|
368
|
+
AbsoluteFill2,
|
|
369
|
+
{
|
|
370
|
+
style: {
|
|
371
|
+
backgroundColor: backgroundColor || "#1e1e1e",
|
|
372
|
+
display: "flex",
|
|
373
|
+
alignItems: "center",
|
|
374
|
+
justifyContent: "center",
|
|
375
|
+
padding: 60
|
|
376
|
+
},
|
|
377
|
+
children: /* @__PURE__ */ jsxs(
|
|
378
|
+
"div",
|
|
379
|
+
{
|
|
380
|
+
style: {
|
|
381
|
+
color: textColor || "#00ff00",
|
|
382
|
+
fontSize: fontSize || 48,
|
|
383
|
+
fontFamily: fontFamilyMap[fontFamily || "monospace"],
|
|
384
|
+
whiteSpace: "pre-wrap",
|
|
385
|
+
wordBreak: "break-word",
|
|
386
|
+
maxWidth: "90%",
|
|
387
|
+
textAlign: "left"
|
|
388
|
+
},
|
|
389
|
+
children: [
|
|
390
|
+
displayedText,
|
|
391
|
+
cursorVisible && /* @__PURE__ */ jsx2(
|
|
392
|
+
"span",
|
|
393
|
+
{
|
|
394
|
+
style: {
|
|
395
|
+
opacity: isTypingComplete ? Math.floor(frame / (fps / 2)) % 2 === 0 ? 1 : 0 : 1
|
|
396
|
+
},
|
|
397
|
+
children: cursorChar
|
|
398
|
+
}
|
|
399
|
+
)
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
)
|
|
403
|
+
}
|
|
404
|
+
) });
|
|
405
|
+
}
|
|
406
|
+
function LogoBug({ clip }) {
|
|
407
|
+
const { position, opacity: propOpacity } = clip.props;
|
|
408
|
+
const positionStyles = {
|
|
409
|
+
"top-left": { top: 20, left: 20 },
|
|
410
|
+
"top-right": { top: 20, right: 20 },
|
|
411
|
+
"bottom-left": { bottom: 20, left: 20 },
|
|
412
|
+
"bottom-right": { bottom: 20, right: 20 }
|
|
413
|
+
};
|
|
414
|
+
return /* @__PURE__ */ jsx2(ClipWrapper, { clip, children: /* @__PURE__ */ jsx2(AbsoluteFill2, { children: /* @__PURE__ */ jsx2(
|
|
415
|
+
"div",
|
|
416
|
+
{
|
|
417
|
+
style: {
|
|
418
|
+
position: "absolute",
|
|
419
|
+
...positionStyles[position || "bottom-right"],
|
|
420
|
+
opacity: propOpacity ?? 0.5,
|
|
421
|
+
color: "#ffffff",
|
|
422
|
+
fontSize: 14,
|
|
423
|
+
fontWeight: "bold",
|
|
424
|
+
textShadow: "1px 1px 2px rgba(0,0,0,0.5)"
|
|
425
|
+
},
|
|
426
|
+
children: "LOGO"
|
|
427
|
+
}
|
|
428
|
+
) }) });
|
|
429
|
+
}
|
|
430
|
+
function VideoClip({ clip }) {
|
|
431
|
+
const { src } = clip.props;
|
|
432
|
+
return /* @__PURE__ */ jsx2(ClipWrapper, { clip, children: /* @__PURE__ */ jsx2(
|
|
433
|
+
AbsoluteFill2,
|
|
434
|
+
{
|
|
435
|
+
style: {
|
|
436
|
+
backgroundColor: "#000000",
|
|
437
|
+
display: "flex",
|
|
438
|
+
alignItems: "center",
|
|
439
|
+
justifyContent: "center",
|
|
440
|
+
color: "rgba(255,255,255,0.5)"
|
|
441
|
+
},
|
|
442
|
+
children: /* @__PURE__ */ jsxs("div", { children: [
|
|
443
|
+
"[Video: ",
|
|
444
|
+
src,
|
|
445
|
+
"]"
|
|
446
|
+
] })
|
|
447
|
+
}
|
|
448
|
+
) });
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
// src/components/Renderer.tsx
|
|
452
|
+
import { AbsoluteFill as AbsoluteFill3, Sequence } from "remotion";
|
|
453
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
454
|
+
var standardComponents = {
|
|
455
|
+
TitleCard,
|
|
456
|
+
ImageSlide,
|
|
457
|
+
SplitScreen,
|
|
458
|
+
QuoteCard,
|
|
459
|
+
StatCard,
|
|
460
|
+
LowerThird,
|
|
461
|
+
TextOverlay,
|
|
462
|
+
TypingText,
|
|
463
|
+
LogoBug,
|
|
464
|
+
VideoClip
|
|
465
|
+
};
|
|
466
|
+
function Renderer({
|
|
467
|
+
spec,
|
|
468
|
+
components: customComponents
|
|
469
|
+
}) {
|
|
470
|
+
const components = {
|
|
471
|
+
...standardComponents,
|
|
472
|
+
...customComponents
|
|
473
|
+
};
|
|
474
|
+
if (!spec.clips || spec.clips.length === 0) {
|
|
475
|
+
return /* @__PURE__ */ jsx3(
|
|
476
|
+
AbsoluteFill3,
|
|
477
|
+
{
|
|
478
|
+
style: {
|
|
479
|
+
backgroundColor: "#1a1a2e",
|
|
480
|
+
color: "#ffffff",
|
|
481
|
+
display: "flex",
|
|
482
|
+
alignItems: "center",
|
|
483
|
+
justifyContent: "center"
|
|
484
|
+
},
|
|
485
|
+
children: /* @__PURE__ */ jsx3("div", { style: { fontSize: 24, opacity: 0.5 }, children: "No clips" })
|
|
486
|
+
}
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
const mainClips = spec.clips.filter((c) => c.trackId === "main");
|
|
490
|
+
const overlayClips = spec.clips.filter((c) => c.trackId === "overlay");
|
|
491
|
+
const renderClip = (clip) => {
|
|
492
|
+
const Component = components[clip.component];
|
|
493
|
+
if (!Component) {
|
|
494
|
+
console.warn(`Unknown component: ${clip.component}`);
|
|
495
|
+
return null;
|
|
496
|
+
}
|
|
497
|
+
return /* @__PURE__ */ jsx3(
|
|
498
|
+
Sequence,
|
|
499
|
+
{
|
|
500
|
+
from: clip.from,
|
|
501
|
+
durationInFrames: clip.durationInFrames,
|
|
502
|
+
children: /* @__PURE__ */ jsx3(Component, { clip })
|
|
503
|
+
},
|
|
504
|
+
clip.id
|
|
505
|
+
);
|
|
506
|
+
};
|
|
507
|
+
return /* @__PURE__ */ jsxs2(AbsoluteFill3, { style: { backgroundColor: "#000000" }, children: [
|
|
508
|
+
mainClips.map(renderClip),
|
|
509
|
+
overlayClips.map(renderClip)
|
|
510
|
+
] });
|
|
511
|
+
}
|
|
512
|
+
export {
|
|
513
|
+
ClipWrapper,
|
|
514
|
+
ImageSlide,
|
|
515
|
+
LogoBug,
|
|
516
|
+
LowerThird,
|
|
517
|
+
QuoteCard,
|
|
518
|
+
Renderer,
|
|
519
|
+
SplitScreen,
|
|
520
|
+
StatCard,
|
|
521
|
+
TextOverlay,
|
|
522
|
+
TitleCard,
|
|
523
|
+
TypingText,
|
|
524
|
+
VideoClip,
|
|
525
|
+
schema,
|
|
526
|
+
standardComponentDefinitions,
|
|
527
|
+
standardComponents,
|
|
528
|
+
standardEffectDefinitions,
|
|
529
|
+
standardTransitionDefinitions,
|
|
530
|
+
useTransition
|
|
531
|
+
};
|
|
532
|
+
//# sourceMappingURL=index.mjs.map
|