import React from 'react'; import { AbsoluteFill, Interactive, Sequence, staticFile, type InteractivitySchema, type SequenceControls, } from 'remotion'; const inspectorControlLayoutSchema = { src: { type: 'asset', default: undefined, description: 'Source', }, first: { type: 'array', item: {type: 'number', step: 0.0001}, default: [-0.1276, 51.5072], minLength: 2, maxLength: 2, newItemDefault: 0, description: 'Origin [longitude, latitude]', }, second: { type: 'array', item: {type: 'number', step: 0.0001}, default: [139.6917, 35.6895], minLength: 2, maxLength: 2, newItemDefault: 0, description: 'Destination [longitude, latitude]', }, label: { type: 'text-content', default: 'London', description: 'Origin label', }, color: { type: 'color', default: '#ff5c4d', description: 'Route color', }, width: { type: 'number', default: 24, min: 2, max: 24, step: 1, hiddenFromList: false, description: 'Route width', }, } as const satisfies InteractivitySchema; // Passing identifiers instead of inline literals keeps these values computed // so the fixture exercises runtime-only values in the Inspector. const COMPUTED_FONT_FAMILY = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif"; const COMPUTED_TEXT = 'This is an intentionally long computed text value for verifying that runtime-only text is truncated to one line in narrow Inspector panels without overlapping the controls below it.'; type InspectorControlLayoutProps = { readonly name: string; readonly src: string; readonly first: readonly number[]; readonly second: readonly number[]; readonly label: string; readonly color: string; readonly width: number; }; const InspectorControlLayoutInner: React.FC< InspectorControlLayoutProps & { readonly controls: SequenceControls | undefined; } > = ({controls, name}) => { return ( ); }; const InteractiveInspectorControlLayout = Interactive.withSchema({ Component: InspectorControlLayoutInner, componentName: '', schema: inspectorControlLayoutSchema, supportsEffects: false, }) as React.FC; export const InspectorControlLayoutE2e: React.FC = () => { return ( <> {COMPUTED_TEXT} ); };