🎥 Make videos programmatically with React
Remove defaultSequenceName from Interactive.withSchema
JonnyBurgerf281d1f36773
diff --git a/packages/codemods/src/basic-captions-element-source.ts b/packages/codemods/src/basic-captions-element-source.tsindex 14989598bd..d7ce1170c3 100644--- a/packages/codemods/src/basic-captions-element-source.ts+++ b/packages/codemods/src/basic-captions-element-source.ts@@ -115,7 +115,6 @@ const basicCaptionsSchema = {export const BasicCaptions = Interactive.withSchema({Component: BasicCaptionsContent,componentName: '<BasicCaptions>',- defaultSequenceName: 'Basic captions',schema: basicCaptionsSchema,wrapInSequence: true,});diff --git a/packages/core/src/Interactive.tsx b/packages/core/src/Interactive.tsxindex 7207358689..43bca3ef10 100644--- a/packages/core/src/Interactive.tsx+++ b/packages/core/src/Interactive.tsx@@ -297,7 +297,6 @@ type WithSchema = {AutomaticWrapperReservedKey>;readonly defaultDurationInFrames?: number;- readonly defaultSequenceName?: string;readonly wrapInSequence: true;},): React.FC<@@ -318,7 +317,6 @@ type WithSchema = {CroppingWrapperReservedKey>;readonly defaultDurationInFrames?: number;- readonly defaultSequenceName?: string;readonly wrapInSequence: {readonly cropping: true};},): React.FC<@@ -340,7 +338,6 @@ type WithSchemaImplementationOptions = Omit<> & {readonly Component: React.ComponentType<object>;readonly defaultDurationInFrames?: number;- readonly defaultSequenceName?: string;readonly wrapInSequence?: false | true | {readonly cropping: true};};@@ -361,7 +358,6 @@ const withSchema: WithSchema = (untypedOptions: unknown) => {Component,componentName,defaultDurationInFrames,- defaultSequenceName,schema,wrapInSequence: _,...rest@@ -461,7 +457,7 @@ const withSchema: WithSchema = (untypedOptions: unknown) => {loop={loop}freeze={freeze}hidden={hidden}- name={name ?? defaultSequenceName ?? componentName}+ name={name ?? componentName}showInTimeline={showInTimeline}controls={controls}_remotionInternalPremountDisplay={effectivePremountFor || null}@@ -480,7 +476,7 @@ const withSchema: WithSchema = (untypedOptions: unknown) => {const Wrapped = withInteractivitySchema({...rest,Component: ComponentWrappedInSequence,- componentName: defaultSequenceName ?? componentName,+ componentName,schema: {...schema,...baseSchema,diff --git a/packages/docs/docs/interactive-with-schema.mdx b/packages/docs/docs/interactive-with-schema.mdxindex d0e92000a6..3a5c327db0 100644--- a/packages/docs/docs/interactive-with-schema.mdx+++ b/packages/docs/docs/interactive-with-schema.mdx@@ -86,10 +86,6 @@ The component name used by Studio and in validation messages. Automatic wrappingSets the default Sequence duration when automatic wrapping is enabled and no `durationInFrames` prop is passed.-### `defaultSequenceName?`<AvailableFrom v="4.0.530" />--Overrides the default timeline label when automatic wrapping is enabled. An explicit [`name`](/docs/sequence#name) prop still takes precedence.-### `controls`The control state created by `Interactive.withSchema()`.diff --git a/packages/docs/elements/audio/mirrored-spectrum/mirrored-spectrum.tsx b/packages/docs/elements/audio/mirrored-spectrum/mirrored-spectrum.tsxindex 8178364dbc..399e7bac00 100644--- a/packages/docs/elements/audio/mirrored-spectrum/mirrored-spectrum.tsx+++ b/packages/docs/elements/audio/mirrored-spectrum/mirrored-spectrum.tsx@@ -123,7 +123,6 @@ const MirroredAudioSpectrumInner: React.FC<MirroredAudioSpectrumProps> = ({export const MirroredAudioSpectrum = Interactive.withSchema({Component: MirroredAudioSpectrumInner,componentName: '<MirroredAudioSpectrum>',- defaultSequenceName: 'Mirrored audio spectrum',schema: mirroredAudioSpectrumSchema,wrapInSequence: true,});diff --git a/packages/docs/elements/audio/oscilloscope/audio-oscilloscope.tsx b/packages/docs/elements/audio/oscilloscope/audio-oscilloscope.tsxindex fb6e2bab44..026a20b899 100644--- a/packages/docs/elements/audio/oscilloscope/audio-oscilloscope.tsx+++ b/packages/docs/elements/audio/oscilloscope/audio-oscilloscope.tsx@@ -139,7 +139,6 @@ const AudioOscilloscopeInner: React.FC<AudioOscilloscopeProps> = ({export const AudioOscilloscope = Interactive.withSchema({Component: AudioOscilloscopeInner,componentName: '<AudioOscilloscope>',- defaultSequenceName: 'Audio oscilloscope',schema: audioOscilloscopeSchema,wrapInSequence: true,});diff --git a/packages/docs/elements/audio/waveform-progress/audio-waveform-progress.tsx b/packages/docs/elements/audio/waveform-progress/audio-waveform-progress.tsxindex f8eb602f93..448f3af725 100644--- a/packages/docs/elements/audio/waveform-progress/audio-waveform-progress.tsx+++ b/packages/docs/elements/audio/waveform-progress/audio-waveform-progress.tsx@@ -197,7 +197,6 @@ export const AudioWaveformProgress = Interactive.withSchema({Component: AudioWaveformProgressInner,componentName: '<AudioWaveformProgress>',defaultDurationInFrames: 271,- defaultSequenceName: 'Audio waveform progress',schema: audioWaveformProgressSchema,wrapInSequence: true,});diff --git a/packages/docs/elements/guidelines.mdx b/packages/docs/elements/guidelines.mdxindex 08362f0d9d..467afde365 100644--- a/packages/docs/elements/guidelines.mdx+++ b/packages/docs/elements/guidelines.mdx@@ -50,7 +50,7 @@ Use `installationMode: 'component-owned-sequence'` when Studio interactivity doeWrap the exported component with [`Interactive.withSchema()`](/docs/interactive-with-schema) and set `wrapInSequence: true`. The user gets one timeline layer that they can trim. The component must accept a `style` prop and apply it to its visual root. To make it movable on the canvas, include [`Interactive.transformSchema`](/docs/interactive#interactivetransformschema). The implementation does not appear as separate editable layers.-Use `defaultDurationInFrames` to preserve a component-owned default duration and `defaultSequenceName` when the friendly default timeline label should differ from `componentName`.+Use `defaultDurationInFrames` to preserve a component-owned default duration.Use `wrapInSequence: {cropping: true}` to also expose crop controls. Omit `wrapInSequence` only when the Element needs effects, coordinates multiple visual roots or implements custom timeline behavior.diff --git a/packages/docs/elements/maps/map-flyover/a-to-b-map-flyover.tsx b/packages/docs/elements/maps/map-flyover/a-to-b-map-flyover.tsxindex d718deb21d..6b21ea3f36 100644--- a/packages/docs/elements/maps/map-flyover/a-to-b-map-flyover.tsx+++ b/packages/docs/elements/maps/map-flyover/a-to-b-map-flyover.tsx@@ -593,7 +593,6 @@ const MapFlyoverContent: React.FC<MapFlyoverLayerProps> = ({export const MapFlyover = Interactive.withSchema({Component: MapFlyoverContent,componentName: '<MapFlyover>',- defaultSequenceName: 'A-to-B Map Flyover',schema: mapFlyoverSchema,wrapInSequence: true,});diff --git a/packages/docs/elements/maps/watercolor-map/watercolor-map.tsx b/packages/docs/elements/maps/watercolor-map/watercolor-map.tsxindex 0ffd5f082c..81b7b37df1 100644--- a/packages/docs/elements/maps/watercolor-map/watercolor-map.tsx+++ b/packages/docs/elements/maps/watercolor-map/watercolor-map.tsx@@ -392,7 +392,6 @@ const WatercolorMapContent: React.FC<WatercolorMapProps> = ({export const WatercolorMap = Interactive.withSchema({Component: WatercolorMapContent,componentName: '<WatercolorMap>',- defaultSequenceName: 'Watercolor map',schema: watercolorMapSchema,wrapInSequence: true,});diff --git a/packages/docs/elements/overlays/social-safe-zones/social-safe-zones.tsx b/packages/docs/elements/overlays/social-safe-zones/social-safe-zones.tsxindex fb3e76edfc..15f3610c2d 100644--- a/packages/docs/elements/overlays/social-safe-zones/social-safe-zones.tsx+++ b/packages/docs/elements/overlays/social-safe-zones/social-safe-zones.tsx@@ -82,7 +82,6 @@ const SocialSafeZonesInner: React.FC<SocialSafeZonesProps> = ({export const SocialSafeZones = Interactive.withSchema({Component: SocialSafeZonesInner,componentName: '<SocialSafeZones>',- defaultSequenceName: 'Social Safe Zones',schema: socialSafeZonesSchema,wrapInSequence: true,});diff --git a/packages/example/src/mirrored-spectrum.element.tsx b/packages/example/src/mirrored-spectrum.element.tsxindex 853d870f4e..8bf5208b09 100644--- a/packages/example/src/mirrored-spectrum.element.tsx+++ b/packages/example/src/mirrored-spectrum.element.tsx@@ -123,7 +123,6 @@ const MirroredAudioSpectrumContent: React.FC<MirroredAudioSpectrumProps> = ({export const MirroredAudioSpectrum = Interactive.withSchema({Component: MirroredAudioSpectrumContent,componentName: '<MirroredAudioSpectrum>',- defaultSequenceName: 'Mirrored audio spectrum',schema: mirroredAudioSpectrumSchema,wrapInSequence: true,});diff --git a/packages/example/src/oscilloscope.element.tsx b/packages/example/src/oscilloscope.element.tsxindex eb574c6535..40455060a2 100644--- a/packages/example/src/oscilloscope.element.tsx+++ b/packages/example/src/oscilloscope.element.tsx@@ -139,7 +139,6 @@ const AudioOscilloscopeContent: React.FC<AudioOscilloscopeProps> = ({export const AudioOscilloscope = Interactive.withSchema({Component: AudioOscilloscopeContent,componentName: '<AudioOscilloscope>',- defaultSequenceName: 'Audio oscilloscope',schema: audioOscilloscopeSchema,wrapInSequence: true,});diff --git a/packages/skills/skills/remotion-interactivity/SKILL.md b/packages/skills/skills/remotion-interactivity/SKILL.mdindex 752d1c3a9b..8f57940a9b 100644--- a/packages/skills/skills/remotion-interactivity/SKILL.md+++ b/packages/skills/skills/remotion-interactivity/SKILL.md@@ -307,7 +307,7 @@ Render separate elements if one version should have effects and another should nWhen using `Interactive.withSchema()`, set `wrapInSequence: true`. This adds `Interactive.baseSchema` and `Interactive.premountSchema`, wraps the component in `<Sequence layout="none">` and exposes standard timeline and mounting controls. The component must accept a `style?: React.CSSProperties` prop and apply it to its visual root so the wrapper can apply premounting styles.-Use `defaultDurationInFrames` when the generated Sequence needs a default duration, and `defaultSequenceName` when its friendly default timeline label should differ from `componentName`.+Use `defaultDurationInFrames` when the generated Sequence needs a default duration.To also expose crop controls, set `wrapInSequence: {cropping: true}`. This adds `Interactive.cropSchema` and crop props automatically. The generated Sequence remains `layout="none"`; the wrapper merges the premounting and crop styles into the component's `style`.