Skip to content

🎥 Make videos programmatically with React

fix(studio): resolve Interactive wrappers for composition insertion

JonnyBurger438c63398ab4
diff --git a/packages/codemods/src/get-interactive-component.ts b/packages/codemods/src/get-interactive-component.ts
new file mode 100644
index 0000000000..acc70005db
--- /dev/null
+++ b/packages/codemods/src/get-interactive-component.ts
@@ -0,0 +1,79 @@
+import type {File, Node} from '@babel/types';
+
+export const getInteractiveComponent = ({
+ ast,
+ declaration,
+}: {
+ ast: File;
+ declaration: Node;
+}): Node | null => {
+ let expression =
+ declaration.type === 'VariableDeclarator' ? declaration.init : declaration;
+ while (
+ expression &&
+ (expression.type === 'TSAsExpression' ||
+ expression.type === 'TSSatisfiesExpression' ||
+ expression.type === 'TypeCastExpression' ||
+ expression.type === 'ParenthesizedExpression')
+ ) {
+ expression = expression.expression;
+ }
+
+ if (
+ expression?.type !== 'CallExpression' ||
+ expression.callee.type !== 'MemberExpression' ||
+ expression.callee.computed ||
+ expression.callee.property.type !== 'Identifier' ||
+ !['create', 'withSchema'].includes(expression.callee.property.name)
+ ) {
+ return null;
+ }
+
+ const {object} = expression.callee;
+ const isInteractive = ast.program.body.some((statement) => {
+ if (
+ statement.type !== 'ImportDeclaration' ||
+ statement.source.value !== 'remotion' ||
+ statement.importKind === 'type'
+ ) {
+ return false;
+ }
+
+ return statement.specifiers.some((specifier) => {
+ if (object.type === 'Identifier') {
+ return (
+ specifier.type === 'ImportSpecifier' &&
+ specifier.imported.type === 'Identifier' &&
+ specifier.imported.name === 'Interactive' &&
+ specifier.local.name === object.name
+ );
+ }
+
+ return (
+ object.type === 'MemberExpression' &&
+ !object.computed &&
+ object.object.type === 'Identifier' &&
+ object.property.type === 'Identifier' &&
+ object.property.name === 'Interactive' &&
+ specifier.type === 'ImportNamespaceSpecifier' &&
+ specifier.local.name === object.object.name
+ );
+ });
+ });
+ const options = expression.arguments[0];
+ if (!isInteractive || options?.type !== 'ObjectExpression') {
+ return null;
+ }
+
+ const component = options.properties.find(
+ (property) =>
+ property.type === 'ObjectProperty' &&
+ !property.computed &&
+ ((property.key.type === 'Identifier' &&
+ property.key.name === 'Component') ||
+ (property.key.type === 'StringLiteral' &&
+ property.key.value === 'Component')),
+ );
+
+ return component?.type === 'ObjectProperty' ? component.value : null;
+};
diff --git a/packages/codemods/src/insert-jsx-element.ts b/packages/codemods/src/insert-jsx-element.ts
index cf97ff159e..ebcd6f66dd 100644
--- a/packages/codemods/src/insert-jsx-element.ts
+++ b/packages/codemods/src/insert-jsx-element.ts
@@ -22,6 +22,7 @@ import type {namedTypes} from 'ast-types';
import * as recast from 'recast';
import type {SequenceNodePath} from 'remotion';
import {NoReactInternals} from 'remotion/no-react';
+import {getInteractiveComponent} from './get-interactive-component';
import {
captureJsxNodePaths,
getNodePathRemappings,
@@ -1464,11 +1465,38 @@ export const getDeclarationByExportName = ({
ast: File;
exportName: string | 'default';
}): LocalComponentDeclaration | DefaultExportDeclaration | null => {
- if (exportName === 'default') {
- return getDefaultExportDeclaration(ast);
+ let declaration =
+ exportName === 'default'
+ ? getDefaultExportDeclaration(ast)
+ : findLocalComponentDeclaration({ast, name: exportName});
+ const visited = new Set<typeof declaration>();
+ while (declaration) {
+ if (visited.has(declaration)) {
+ throw new Error('Circular Interactive component reference');
+ }
+
+ visited.add(declaration);
+ const component = getInteractiveComponent({
+ ast,
+ declaration: declaration as never,
+ });
+ if (!component) {
+ break;
+ }
+
+ if (component.type === 'Identifier') {
+ const inner = findLocalComponentDeclaration({ast, name: component.name});
+ if (!inner) {
+ break;
+ }
+
+ declaration = inner;
+ } else {
+ declaration = component as DefaultExportDeclaration;
+ }
}
- return findLocalComponentDeclaration({ast, name: exportName});
+ return declaration;
};
export const addElementToComponentRoot = ({
@@ -1784,10 +1812,12 @@ const getComponentLocationInFile = async ({
}): Promise<ResolvedCompositionComponentWithFile> => {
const ast =
providedAst ?? parseAst(await readSourceFile({environment, fileName}));
+ const declaration = getDeclarationByExportName({ast, exportName});
const location =
- exportName === 'default'
+ (declaration ? locationFromNode(declaration) : null) ??
+ (exportName === 'default'
? findDefaultExportLocation(ast)
- : findLocalSymbolLocation({ast, name: exportName});
+ : findLocalSymbolLocation({ast, name: exportName}));
const canAddSequence = canAddSequenceToComponent({
ast,
exportName,
@@ -1830,6 +1860,27 @@ const getComponentLocationRecursively = async ({
exportName,
});
if (localDeclaration) {
+ const component = getInteractiveComponent({
+ ast,
+ declaration: localDeclaration as never,
+ });
+ const imported =
+ component?.type === 'Identifier'
+ ? findImportTarget({ast, componentName: component.name})
+ : null;
+ if (imported) {
+ return await getComponentLocationRecursively({
+ environment,
+ fileName: resolveImportPath({
+ environment,
+ importPath: imported.importPath,
+ fromFile: fileName,
+ }),
+ exportName: imported.exportName,
+ visited,
+ });
+ }
+
return await getComponentLocationInFile({
environment,
fileName,
@@ -1925,10 +1976,11 @@ export async function resolveCompositionComponentWithFile({
const importTarget = findImportTarget({ast, componentName});
if (!importTarget) {
- return getComponentLocationInFile({
+ return getComponentLocationRecursively({
environment,
fileName: compositionFileName,
exportName: componentName,
+ visited: new Set(),
});
}
diff --git a/packages/codemods/src/resolve-composition-component-location.ts b/packages/codemods/src/resolve-composition-component-location.ts
index 4fc36da26f..774725df6d 100644
--- a/packages/codemods/src/resolve-composition-component-location.ts
+++ b/packages/codemods/src/resolve-composition-component-location.ts
@@ -8,6 +8,7 @@ import type {
Statement,
StringLiteral,
} from '@babel/types';
+import {getInteractiveComponent} from './get-interactive-component';
// Keep this entry browser-safe. The main codemod entry imports Recast, which
// depends on Node built-ins and cannot be loaded by a static Studio bundle.
@@ -376,6 +377,7 @@ const resolveDeclaration = ({
}
const file = parseSource(source);
+ let localName = exportName;
if (exportName === 'default') {
const defaultExport = file.program.body.find(
(statement) => statement.type === 'ExportDefaultDeclaration',
@@ -384,25 +386,46 @@ const resolveDeclaration = ({
defaultExport?.type === 'ExportDefaultDeclaration' &&
defaultExport.declaration.type === 'Identifier'
) {
- for (const statement of file.program.body) {
- const declaration = getDeclaration(
- statement,
- defaultExport.declaration.name,
- );
- if (declaration) {
- return {declaration, exportName, filePath, source};
- }
- }
+ localName = defaultExport.declaration.name;
}
}
for (const statement of file.program.body) {
- const declaration = getDeclaration(statement, exportName);
+ let declaration = getDeclaration(statement, localName);
if (declaration) {
+ let component = getInteractiveComponent({ast: file, declaration});
+ while (component) {
+ if (component.type === 'Identifier') {
+ return resolveDeclaration({
+ filePath,
+ exportName: component.name,
+ project,
+ visited,
+ });
+ }
+
+ declaration = component;
+ component = getInteractiveComponent({ast: file, declaration});
+ }
+
return {declaration, exportName, filePath, source};
}
}
+ const importedComponent = findImportedComponent(file, localName);
+ if (importedComponent) {
+ return resolveDeclaration({
+ filePath: resolveImport({
+ fromFile: filePath,
+ importPath: importedComponent.path,
+ project,
+ }),
+ exportName: importedComponent.exportName,
+ project,
+ visited,
+ });
+ }
+
if (exportName !== 'default') {
for (const statement of file.program.body) {
if (statement.type !== 'ExportNamedDeclaration') {
diff --git a/packages/jonnys-videos/src/Composition4People.tsx b/packages/jonnys-videos/src/Composition4People.tsx
index ff94e89918..13ba08f9bb 100644
--- a/packages/jonnys-videos/src/Composition4People.tsx
+++ b/packages/jonnys-videos/src/Composition4People.tsx
@@ -90,10 +90,7 @@ const Composition4PeopleInner: React.FC = () => {
);
};
-export const Composition4People = Interactive.withSchema({
+export const Composition4People = Interactive.create({
Component: Composition4PeopleInner,
- componentName: 'Composition4People',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/components/AnimatedCaptions.tsx b/packages/jonnys-videos/src/components/AnimatedCaptions.tsx
index a1728ed22a..0f188dc32f 100644
--- a/packages/jonnys-videos/src/components/AnimatedCaptions.tsx
+++ b/packages/jonnys-videos/src/components/AnimatedCaptions.tsx
@@ -182,11 +182,8 @@ const CaptionPageInner: React.FC<CaptionPageProps> = ({
);
};
-const CaptionPage = Interactive.withSchema({
+const CaptionPage = Interactive.create({
Component: CaptionPageInner,
- componentName: 'CaptionPage',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
@@ -464,10 +461,8 @@ const AnimatedCaptionsInner: React.FC<AnimatedCaptionsProps> = ({
);
};
-export const AnimatedCaptions = Interactive.withSchema({
+export const AnimatedCaptions = Interactive.create({
Component: AnimatedCaptionsInner,
- componentName: 'AnimatedCaptions',
schema: animatedCaptionsSchema,
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/AnimatedCaptions.tsx b/packages/jonnys-videos/src/disco-light-show/AnimatedCaptions.tsx
index 9f302e9e74..b5245fa159 100644
--- a/packages/jonnys-videos/src/disco-light-show/AnimatedCaptions.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/AnimatedCaptions.tsx
@@ -1175,10 +1175,7 @@ const AnimatedCaptionsInner: React.FC = () => {
);
};
-export const AnimatedCaptions = Interactive.withSchema({
+export const AnimatedCaptions = Interactive.create({
Component: AnimatedCaptionsInner,
- componentName: 'AnimatedCaptions',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/AnimatedCaptionsBigWords.tsx b/packages/jonnys-videos/src/disco-light-show/AnimatedCaptionsBigWords.tsx
index f67b433ceb..4936a0e62a 100644
--- a/packages/jonnys-videos/src/disco-light-show/AnimatedCaptionsBigWords.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/AnimatedCaptionsBigWords.tsx
@@ -114,11 +114,8 @@ const BigWordPageInner: React.FC<{page: TikTokPage}> = ({page}) => {
);
};
-const BigWordPage = Interactive.withSchema({
+const BigWordPage = Interactive.create({
Component: BigWordPageInner,
- componentName: 'BigWordPage',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
@@ -200,10 +197,7 @@ const AnimatedCaptionsBigWordsInner: React.FC = () => {
);
};
-export const AnimatedCaptionsBigWords = Interactive.withSchema({
+export const AnimatedCaptionsBigWords = Interactive.create({
Component: AnimatedCaptionsBigWordsInner,
- componentName: 'AnimatedCaptionsBigWords',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/ArrowLogo.tsx b/packages/jonnys-videos/src/disco-light-show/ArrowLogo.tsx
index be63f9115a..e2caa725e1 100644
--- a/packages/jonnys-videos/src/disco-light-show/ArrowLogo.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/ArrowLogo.tsx
@@ -67,10 +67,7 @@ const ArrowLogoInner: React.FC = () => {
);
};
-export const ArrowLogo = Interactive.withSchema({
+export const ArrowLogo = Interactive.create({
Component: ArrowLogoInner,
- componentName: 'ArrowLogo',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/ArrowLogoRemotion.tsx b/packages/jonnys-videos/src/disco-light-show/ArrowLogoRemotion.tsx
index 3ae4671b34..bf8430f5f5 100644
--- a/packages/jonnys-videos/src/disco-light-show/ArrowLogoRemotion.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/ArrowLogoRemotion.tsx
@@ -66,10 +66,7 @@ const ArrowLogoRemotionInner: React.FC = () => {
);
};
-export const ArrowLogoRemotion = Interactive.withSchema({
+export const ArrowLogoRemotion = Interactive.create({
Component: ArrowLogoRemotionInner,
- componentName: 'ArrowLogoRemotion',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/BirthdayPartyCompilation.tsx b/packages/jonnys-videos/src/disco-light-show/BirthdayPartyCompilation.tsx
index 10d95226ac..abeaa7b077 100644
--- a/packages/jonnys-videos/src/disco-light-show/BirthdayPartyCompilation.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/BirthdayPartyCompilation.tsx
@@ -93,10 +93,7 @@ const BirthdayPartyCompilationInner: React.FC = () => {
);
};
-export const BirthdayPartyCompilation = Interactive.withSchema({
+export const BirthdayPartyCompilation = Interactive.create({
Component: BirthdayPartyCompilationInner,
- componentName: 'BirthdayPartyCompilation',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/ClientSideChad.tsx b/packages/jonnys-videos/src/disco-light-show/ClientSideChad.tsx
index d31b2dadb0..60ba628acd 100644
--- a/packages/jonnys-videos/src/disco-light-show/ClientSideChad.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/ClientSideChad.tsx
@@ -275,10 +275,7 @@ const ClientSideChadInner: React.FC = () => {
);
};
-export const ClientSideChad = Interactive.withSchema({
+export const ClientSideChad = Interactive.create({
Component: ClientSideChadInner,
- componentName: 'ClientSideChad',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/Clip1.tsx b/packages/jonnys-videos/src/disco-light-show/Clip1.tsx
index 855af0330a..7cb7d8df56 100644
--- a/packages/jonnys-videos/src/disco-light-show/Clip1.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/Clip1.tsx
@@ -25,10 +25,7 @@ const Clip1Inner: React.FC = () => {
);
};
-export const Clip1 = Interactive.withSchema({
+export const Clip1 = Interactive.create({
Component: Clip1Inner,
- componentName: 'Clip1',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/Clip2.tsx b/packages/jonnys-videos/src/disco-light-show/Clip2.tsx
index a069e5fa02..a8ed1aaa5f 100644
--- a/packages/jonnys-videos/src/disco-light-show/Clip2.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/Clip2.tsx
@@ -21,10 +21,7 @@ const Clip2Inner: React.FC = () => {
);
};
-export const Clip2 = Interactive.withSchema({
+export const Clip2 = Interactive.create({
Component: Clip2Inner,
- componentName: 'Clip2',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/Clip3.tsx b/packages/jonnys-videos/src/disco-light-show/Clip3.tsx
index 075d20c6ac..4692b8e28b 100644
--- a/packages/jonnys-videos/src/disco-light-show/Clip3.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/Clip3.tsx
@@ -42,10 +42,7 @@ const Clip3Inner: React.FC = () => {
);
};
-export const Clip3 = Interactive.withSchema({
+export const Clip3 = Interactive.create({
Component: Clip3Inner,
- componentName: 'Clip3',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/Clip4.tsx b/packages/jonnys-videos/src/disco-light-show/Clip4.tsx
index df3ad9c13f..e3dfef34de 100644
--- a/packages/jonnys-videos/src/disco-light-show/Clip4.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/Clip4.tsx
@@ -24,10 +24,7 @@ const Clip4Inner: React.FC = () => {
);
};
-export const Clip4 = Interactive.withSchema({
+export const Clip4 = Interactive.create({
Component: Clip4Inner,
- componentName: 'Clip4',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/Clip5.tsx b/packages/jonnys-videos/src/disco-light-show/Clip5.tsx
index c04fbbb09f..2e27dab3d6 100644
--- a/packages/jonnys-videos/src/disco-light-show/Clip5.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/Clip5.tsx
@@ -26,10 +26,7 @@ const Clip5Inner: React.FC = () => {
);
};
-export const Clip5 = Interactive.withSchema({
+export const Clip5 = Interactive.create({
Component: Clip5Inner,
- componentName: 'Clip5',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/Compilation.tsx b/packages/jonnys-videos/src/disco-light-show/Compilation.tsx
index 0bae00ff35..904a775ffc 100644
--- a/packages/jonnys-videos/src/disco-light-show/Compilation.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/Compilation.tsx
@@ -22,10 +22,7 @@ const CompilationInner: React.FC = () => {
);
};
-export const Compilation = Interactive.withSchema({
+export const Compilation = Interactive.create({
Component: CompilationInner,
- componentName: 'Compilation',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/Composition.tsx b/packages/jonnys-videos/src/disco-light-show/Composition.tsx
index 2ee17bfbc5..af1383b7ab 100644
--- a/packages/jonnys-videos/src/disco-light-show/Composition.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/Composition.tsx
@@ -795,10 +795,7 @@ const MyComponentInner: React.FC = () => {
);
};
-export const MyComponent = Interactive.withSchema({
+export const MyComponent = Interactive.create({
Component: MyComponentInner,
- componentName: 'MyComponent',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/Countdown.tsx b/packages/jonnys-videos/src/disco-light-show/Countdown.tsx
index dbb3d6faba..8b067b1672 100644
--- a/packages/jonnys-videos/src/disco-light-show/Countdown.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/Countdown.tsx
@@ -72,11 +72,9 @@ const countdownPageSchema = {
number: {type: 'string', default: '3', description: 'Number'},
} as const satisfies InteractivitySchema;
-const CountdownPage = Interactive.withSchema({
+const CountdownPage = Interactive.create({
Component: CountdownPageInner,
- componentName: 'CountdownPage',
schema: countdownPageSchema,
- wrapInSequence: true,
layout: 'absolute-fill',
});
@@ -108,10 +106,7 @@ const CountdownInner: React.FC = () => {
);
};
-export const Countdown = Interactive.withSchema({
+export const Countdown = Interactive.create({
Component: CountdownInner,
- componentName: 'Countdown',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/DiscoBallBg.tsx b/packages/jonnys-videos/src/disco-light-show/DiscoBallBg.tsx
index f002667264..40080a29fa 100644
--- a/packages/jonnys-videos/src/disco-light-show/DiscoBallBg.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/DiscoBallBg.tsx
@@ -120,10 +120,7 @@ const DiscoBallBgInner: React.FC = () => {
);
};
-export const DiscoBallBg = Interactive.withSchema({
+export const DiscoBallBg = Interactive.create({
Component: DiscoBallBgInner,
- componentName: 'DiscoBallBg',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/DragIn.tsx b/packages/jonnys-videos/src/disco-light-show/DragIn.tsx
index d4fa393e2d..b715004a13 100644
--- a/packages/jonnys-videos/src/disco-light-show/DragIn.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/DragIn.tsx
@@ -31,10 +31,7 @@ const DragInInner: React.FC = () => {
);
};
-export const DragIn = Interactive.withSchema({
+export const DragIn = Interactive.create({
Component: DragInInner,
- componentName: 'DragIn',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/DragInDemo.tsx b/packages/jonnys-videos/src/disco-light-show/DragInDemo.tsx
index 99b7b41421..e72bfa9d65 100644
--- a/packages/jonnys-videos/src/disco-light-show/DragInDemo.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/DragInDemo.tsx
@@ -27,10 +27,7 @@ const DragInDemoInner: React.FC = () => {
);
};
-export const DragInDemo = Interactive.withSchema({
+export const DragInDemo = Interactive.create({
Component: DragInDemoInner,
- componentName: 'DragInDemo',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/EffectShow.tsx b/packages/jonnys-videos/src/disco-light-show/EffectShow.tsx
index 121809e66e..833c8cd797 100644
--- a/packages/jonnys-videos/src/disco-light-show/EffectShow.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/EffectShow.tsx
@@ -26,10 +26,7 @@ const EffectShowInner: React.FC = () => {
);
};
-export const EffectShow = Interactive.withSchema({
+export const EffectShow = Interactive.create({
Component: EffectShowInner,
- componentName: 'EffectShow',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/Fork.tsx b/packages/jonnys-videos/src/disco-light-show/Fork.tsx
index a231208f97..8152c1890e 100644
--- a/packages/jonnys-videos/src/disco-light-show/Fork.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/Fork.tsx
@@ -69,10 +69,7 @@ const ForkInner: React.FC = () => {
);
};
-export const Fork = Interactive.withSchema({
+export const Fork = Interactive.create({
Component: ForkInner,
- componentName: 'Fork',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/ForkDrop.tsx b/packages/jonnys-videos/src/disco-light-show/ForkDrop.tsx
index eb6f51b0c2..171bba38ba 100644
--- a/packages/jonnys-videos/src/disco-light-show/ForkDrop.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/ForkDrop.tsx
@@ -146,10 +146,7 @@ const ForkDropInner: React.FC = () => {
);
};
-export const ForkDrop = Interactive.withSchema({
+export const ForkDrop = Interactive.create({
Component: ForkDropInner,
- componentName: 'ForkDrop',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/HuggingFace.tsx b/packages/jonnys-videos/src/disco-light-show/HuggingFace.tsx
index e687578236..0f4e41af33 100644
--- a/packages/jonnys-videos/src/disco-light-show/HuggingFace.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/HuggingFace.tsx
@@ -27,10 +27,7 @@ const HuggingFaceInner: React.FC = () => {
);
};
-export const HuggingFace = Interactive.withSchema({
+export const HuggingFace = Interactive.create({
Component: HuggingFaceInner,
- componentName: 'HuggingFace',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/MasterWithEffect.tsx b/packages/jonnys-videos/src/disco-light-show/MasterWithEffect.tsx
index ff79b1354d..51ad3db0f5 100644
--- a/packages/jonnys-videos/src/disco-light-show/MasterWithEffect.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/MasterWithEffect.tsx
@@ -173,10 +173,7 @@ const MasterWithEffectInner: React.FC = () => {
);
};
-export const MasterWithEffect = Interactive.withSchema({
+export const MasterWithEffect = Interactive.create({
Component: MasterWithEffectInner,
- componentName: 'MasterWithEffect',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/Mediabunny.tsx b/packages/jonnys-videos/src/disco-light-show/Mediabunny.tsx
index 5c3a0bed65..0031e6b0be 100644
--- a/packages/jonnys-videos/src/disco-light-show/Mediabunny.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/Mediabunny.tsx
@@ -36,10 +36,7 @@ const MediabunnyInner: React.FC = () => {
);
};
-export const Mediabunny = Interactive.withSchema({
+export const Mediabunny = Interactive.create({
Component: MediabunnyInner,
- componentName: 'Mediabunny',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/OneShot.tsx b/packages/jonnys-videos/src/disco-light-show/OneShot.tsx
index 18a6d4c001..0f6dcaebba 100644
--- a/packages/jonnys-videos/src/disco-light-show/OneShot.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/OneShot.tsx
@@ -60,10 +60,7 @@ const OneShotInner: React.FC = () => {
);
};
-export const OneShot = Interactive.withSchema({
+export const OneShot = Interactive.create({
Component: OneShotInner,
- componentName: 'OneShot',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/ScreenRecordingComposition.tsx b/packages/jonnys-videos/src/disco-light-show/ScreenRecordingComposition.tsx
index 5c0529cf0e..23e6600511 100644
--- a/packages/jonnys-videos/src/disco-light-show/ScreenRecordingComposition.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/ScreenRecordingComposition.tsx
@@ -68,10 +68,7 @@ const ScreenRecordingCompositionInner: React.FC = () => {
);
};
-export const ScreenRecordingComposition = Interactive.withSchema({
+export const ScreenRecordingComposition = Interactive.create({
Component: ScreenRecordingCompositionInner,
- componentName: 'ScreenRecordingComposition',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/Separate.tsx b/packages/jonnys-videos/src/disco-light-show/Separate.tsx
index 91f36da3df..ecbdfbe4b1 100644
--- a/packages/jonnys-videos/src/disco-light-show/Separate.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/Separate.tsx
@@ -24,10 +24,7 @@ const SeparateInner: React.FC = () => {
);
};
-export const Separate = Interactive.withSchema({
+export const Separate = Interactive.create({
Component: SeparateInner,
- componentName: 'Separate',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/Setup.tsx b/packages/jonnys-videos/src/disco-light-show/Setup.tsx
index b622afe2aa..3ef44af216 100644
--- a/packages/jonnys-videos/src/disco-light-show/Setup.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/Setup.tsx
@@ -24,10 +24,7 @@ const SetupInner: React.FC = () => {
);
};
-export const Setup = Interactive.withSchema({
+export const Setup = Interactive.create({
Component: SetupInner,
- componentName: 'Setup',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/TextBackgroundComposition.tsx b/packages/jonnys-videos/src/disco-light-show/TextBackgroundComposition.tsx
index 80e3266281..47a0e22eb7 100644
--- a/packages/jonnys-videos/src/disco-light-show/TextBackgroundComposition.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/TextBackgroundComposition.tsx
@@ -123,10 +123,7 @@ const TextBackgroundCompositionInner: React.FC = () => {
);
};
-export const TextBackgroundComposition = Interactive.withSchema({
+export const TextBackgroundComposition = Interactive.create({
Component: TextBackgroundCompositionInner,
- componentName: 'TextBackgroundComposition',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/TextBehindVideoSeriesFirst20s.tsx b/packages/jonnys-videos/src/disco-light-show/TextBehindVideoSeriesFirst20s.tsx
index 7e511eb1bb..4e76d40951 100644
--- a/packages/jonnys-videos/src/disco-light-show/TextBehindVideoSeriesFirst20s.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/TextBehindVideoSeriesFirst20s.tsx
@@ -135,10 +135,7 @@ export const TextBehindVideoSeriesFirst20s: React.FC = () => {
);
};
-export const TextBehindVideoSeriesFirst20sComposition = Interactive.withSchema({
+export const TextBehindVideoSeriesFirst20sComposition = Interactive.create({
Component: TextBehindVideoSeriesFirst20sCompositionInner,
- componentName: 'TextBehindVideoSeriesFirst20sComposition',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/TextBehindVideoStack.tsx b/packages/jonnys-videos/src/disco-light-show/TextBehindVideoStack.tsx
index 2f8d11aeb7..76defddd5b 100644
--- a/packages/jonnys-videos/src/disco-light-show/TextBehindVideoStack.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/TextBehindVideoStack.tsx
@@ -178,10 +178,7 @@ export const TextBehindVideoStack: React.FC = () => {
);
};
-export const TextBehindVideoStackComposition = Interactive.withSchema({
+export const TextBehindVideoStackComposition = Interactive.create({
Component: TextBehindVideoStackCompositionInner,
- componentName: 'TextBehindVideoStackComposition',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/disco-light-show/VibeCoded.tsx b/packages/jonnys-videos/src/disco-light-show/VibeCoded.tsx
index 9c46650298..f85789431e 100644
--- a/packages/jonnys-videos/src/disco-light-show/VibeCoded.tsx
+++ b/packages/jonnys-videos/src/disco-light-show/VibeCoded.tsx
@@ -37,10 +37,7 @@ const VibeCodedInner: React.FC = () => {
);
};
-export const VibeCoded = Interactive.withSchema({
+export const VibeCoded = Interactive.create({
Component: VibeCodedInner,
- componentName: 'VibeCoded',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/how-can-remotion-be-free/FirstCustomerChart.tsx b/packages/jonnys-videos/src/how-can-remotion-be-free/FirstCustomerChart.tsx
index 892eae78bf..2108a584ea 100644
--- a/packages/jonnys-videos/src/how-can-remotion-be-free/FirstCustomerChart.tsx
+++ b/packages/jonnys-videos/src/how-can-remotion-be-free/FirstCustomerChart.tsx
@@ -346,10 +346,7 @@ const FirstCustomerChartInner: React.FC = () => {
);
};
-export const FirstCustomerChart = Interactive.withSchema({
+export const FirstCustomerChart = Interactive.create({
Component: FirstCustomerChartInner,
- componentName: 'FirstCustomerChart',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/how-can-remotion-be-free/HowCanRemotionBeFree.tsx b/packages/jonnys-videos/src/how-can-remotion-be-free/HowCanRemotionBeFree.tsx
index e5cce71f60..ae7af37f91 100644
--- a/packages/jonnys-videos/src/how-can-remotion-be-free/HowCanRemotionBeFree.tsx
+++ b/packages/jonnys-videos/src/how-can-remotion-be-free/HowCanRemotionBeFree.tsx
@@ -1475,10 +1475,7 @@ const HowCanRemotionBeFreeInner: React.FC = () => {
);
};
-export const HowCanRemotionBeFree = Interactive.withSchema({
+export const HowCanRemotionBeFree = Interactive.create({
Component: HowCanRemotionBeFreeInner,
- componentName: 'HowCanRemotionBeFree',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/how-can-remotion-be-free/PremiumVersion.tsx b/packages/jonnys-videos/src/how-can-remotion-be-free/PremiumVersion.tsx
index 2218a3d2d5..cc88415f8e 100644
--- a/packages/jonnys-videos/src/how-can-remotion-be-free/PremiumVersion.tsx
+++ b/packages/jonnys-videos/src/how-can-remotion-be-free/PremiumVersion.tsx
@@ -155,10 +155,7 @@ const PremiumVersionInner: React.FC = () => {
);
};
-export const PremiumVersion = Interactive.withSchema({
+export const PremiumVersion = Interactive.create({
Component: PremiumVersionInner,
- componentName: 'PremiumVersion',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/how-can-remotion-be-free/UnrulyOutcome.tsx b/packages/jonnys-videos/src/how-can-remotion-be-free/UnrulyOutcome.tsx
index 643c3cb27e..af27dd2e88 100644
--- a/packages/jonnys-videos/src/how-can-remotion-be-free/UnrulyOutcome.tsx
+++ b/packages/jonnys-videos/src/how-can-remotion-be-free/UnrulyOutcome.tsx
@@ -110,10 +110,7 @@ const UnrulyOutcomeInner: React.FC = () => {
);
};
-export const UnrulyOutcome = Interactive.withSchema({
+export const UnrulyOutcome = Interactive.create({
Component: UnrulyOutcomeInner,
- componentName: 'UnrulyOutcome',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/how-can-remotion-be-free/ZurichPhoto.tsx b/packages/jonnys-videos/src/how-can-remotion-be-free/ZurichPhoto.tsx
index 3fbb592cbc..3fc24af003 100644
--- a/packages/jonnys-videos/src/how-can-remotion-be-free/ZurichPhoto.tsx
+++ b/packages/jonnys-videos/src/how-can-remotion-be-free/ZurichPhoto.tsx
@@ -90,10 +90,7 @@ const ZurichPhotoInner: React.FC = () => {
);
};
-export const ZurichPhoto = Interactive.withSchema({
+export const ZurichPhoto = Interactive.create({
Component: ZurichPhotoInner,
- componentName: 'ZurichPhoto',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/plane-sight/AgentAirportSign.tsx b/packages/jonnys-videos/src/plane-sight/AgentAirportSign.tsx
index 19923f0791..a637ed7558 100644
--- a/packages/jonnys-videos/src/plane-sight/AgentAirportSign.tsx
+++ b/packages/jonnys-videos/src/plane-sight/AgentAirportSign.tsx
@@ -31,9 +31,7 @@ const AgentAirportSignContent = ({style}: InteractiveTransformProps) => {
);
};
-export const AgentAirportSign = Interactive.withSchema({
+export const AgentAirportSign = Interactive.create({
Component: AgentAirportSignContent,
componentName: 'AgentAirportSign',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/AirportAircraft.tsx b/packages/jonnys-videos/src/plane-sight/AirportAircraft.tsx
index 97545903ce..bb7d83247b 100644
--- a/packages/jonnys-videos/src/plane-sight/AirportAircraft.tsx
+++ b/packages/jonnys-videos/src/plane-sight/AirportAircraft.tsx
@@ -162,7 +162,7 @@ const AirportAircraftContent = ({
);
};
-export const AirportAircraft = Interactive.withSchema({
+export const AirportAircraft = Interactive.create({
Component: AirportAircraftContent,
componentName: 'AirportAircraft',
schema: {
@@ -209,5 +209,4 @@ export const AirportAircraft = Interactive.withSchema({
hiddenFromList: false,
},
},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/AirportControlPanel.tsx b/packages/jonnys-videos/src/plane-sight/AirportControlPanel.tsx
index 21afc9d0fc..565c24bc9f 100644
--- a/packages/jonnys-videos/src/plane-sight/AirportControlPanel.tsx
+++ b/packages/jonnys-videos/src/plane-sight/AirportControlPanel.tsx
@@ -8,9 +8,7 @@ const AirportControlPanelContent = ({style}: InteractiveTransformProps) => {
return <AbsoluteFill style={style} />;
};
-export const AirportControlPanel = Interactive.withSchema({
+export const AirportControlPanel = Interactive.create({
Component: AirportControlPanelContent,
componentName: 'AirportControlPanel',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/AirportLayout.tsx b/packages/jonnys-videos/src/plane-sight/AirportLayout.tsx
index 9cc564f722..5178e36040 100644
--- a/packages/jonnys-videos/src/plane-sight/AirportLayout.tsx
+++ b/packages/jonnys-videos/src/plane-sight/AirportLayout.tsx
@@ -168,9 +168,7 @@ const AirportLayoutContent = ({style}: InteractiveTransformProps) => {
);
};
-export const AirportLayout = Interactive.withSchema({
+export const AirportLayout = Interactive.create({
Component: AirportLayoutContent,
componentName: 'AirportLayout',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/AirportSignZoom.tsx b/packages/jonnys-videos/src/plane-sight/AirportSignZoom.tsx
index e78c773f71..cb7f47f1aa 100644
--- a/packages/jonnys-videos/src/plane-sight/AirportSignZoom.tsx
+++ b/packages/jonnys-videos/src/plane-sight/AirportSignZoom.tsx
@@ -44,9 +44,7 @@ const AirportSignZoomContent = ({style}: InteractiveTransformProps) => {
);
};
-export const AirportSignZoom = Interactive.withSchema({
+export const AirportSignZoom = Interactive.create({
Component: AirportSignZoomContent,
componentName: 'AirportSignZoom',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/EightAgentsIntro.tsx b/packages/jonnys-videos/src/plane-sight/EightAgentsIntro.tsx
index 762d1c48d6..966a5bc494 100644
--- a/packages/jonnys-videos/src/plane-sight/EightAgentsIntro.tsx
+++ b/packages/jonnys-videos/src/plane-sight/EightAgentsIntro.tsx
@@ -84,9 +84,7 @@ const EightAgentsIntroContent = ({style}: InteractiveTransformProps) => {
);
};
-export const EightAgentsIntro = Interactive.withSchema({
+export const EightAgentsIntro = Interactive.create({
Component: EightAgentsIntroContent,
componentName: 'EightAgentsIntro',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/EntireCommitsBroll.tsx b/packages/jonnys-videos/src/plane-sight/EntireCommitsBroll.tsx
index 42c717b461..172a5c5a50 100644
--- a/packages/jonnys-videos/src/plane-sight/EntireCommitsBroll.tsx
+++ b/packages/jonnys-videos/src/plane-sight/EntireCommitsBroll.tsx
@@ -40,9 +40,7 @@ const EntireCommitsBrollContent = ({style}: InteractiveTransformProps) => {
);
};
-export const EntireCommitsBroll = Interactive.withSchema({
+export const EntireCommitsBroll = Interactive.create({
Component: EntireCommitsBrollContent,
componentName: 'EntireCommitsBroll',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/EntireTrailsOverlay.tsx b/packages/jonnys-videos/src/plane-sight/EntireTrailsOverlay.tsx
index 2fee5382d8..3ece42864b 100644
--- a/packages/jonnys-videos/src/plane-sight/EntireTrailsOverlay.tsx
+++ b/packages/jonnys-videos/src/plane-sight/EntireTrailsOverlay.tsx
@@ -30,9 +30,7 @@ const EntireTrailsOverlayContent = ({style}: InteractiveTransformProps) => {
);
};
-export const EntireTrailsOverlay = Interactive.withSchema({
+export const EntireTrailsOverlay = Interactive.create({
Component: EntireTrailsOverlayContent,
componentName: 'EntireTrailsOverlay',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/FiveAgentDemo.tsx b/packages/jonnys-videos/src/plane-sight/FiveAgentDemo.tsx
index a1a8ae152b..a9d462a9e5 100644
--- a/packages/jonnys-videos/src/plane-sight/FiveAgentDemo.tsx
+++ b/packages/jonnys-videos/src/plane-sight/FiveAgentDemo.tsx
@@ -102,11 +102,9 @@ const FiveAgentsIntroContent = ({style}: InteractiveTransformProps) => {
);
};
-export const FiveAgentsIntro = Interactive.withSchema({
+export const FiveAgentsIntro = Interactive.create({
Component: FiveAgentsIntroContent,
componentName: 'FiveAgentsIntro',
- schema: {},
- wrapInSequence: true,
});
const AirportOverviewContent = ({style}: InteractiveTransformProps) => {
@@ -131,11 +129,9 @@ const AirportOverviewContent = ({style}: InteractiveTransformProps) => {
);
};
-export const AirportOverview = Interactive.withSchema({
+export const AirportOverview = Interactive.create({
Component: AirportOverviewContent,
componentName: 'AirportOverview',
- schema: {},
- wrapInSequence: true,
});
const AirportDemoContent = ({style}: InteractiveTransformProps) => {
@@ -261,9 +257,7 @@ const AirportDemoContent = ({style}: InteractiveTransformProps) => {
);
};
-export const AirportDemo = Interactive.withSchema({
+export const AirportDemo = Interactive.create({
Component: AirportDemoContent,
componentName: 'AirportDemo',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/FlightCrewScene.tsx b/packages/jonnys-videos/src/plane-sight/FlightCrewScene.tsx
index 12cb31b1d5..171fc20f3a 100644
--- a/packages/jonnys-videos/src/plane-sight/FlightCrewScene.tsx
+++ b/packages/jonnys-videos/src/plane-sight/FlightCrewScene.tsx
@@ -215,9 +215,7 @@ const FlightCrewSceneContent = ({style}: InteractiveTransformProps) => {
);
};
-export const FlightCrewScene = Interactive.withSchema({
+export const FlightCrewScene = Interactive.create({
Component: FlightCrewSceneContent,
componentName: 'FlightCrewScene',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/FrontOfLineZoom.tsx b/packages/jonnys-videos/src/plane-sight/FrontOfLineZoom.tsx
index 6202380e24..2e3d9adf41 100644
--- a/packages/jonnys-videos/src/plane-sight/FrontOfLineZoom.tsx
+++ b/packages/jonnys-videos/src/plane-sight/FrontOfLineZoom.tsx
@@ -54,9 +54,7 @@ const FrontOfLineZoomContent = ({style}: InteractiveTransformProps) => {
);
};
-export const FrontOfLineZoom = Interactive.withSchema({
+export const FrontOfLineZoom = Interactive.create({
Component: FrontOfLineZoomContent,
componentName: 'FrontOfLineZoom',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/GeminiTowerScene.tsx b/packages/jonnys-videos/src/plane-sight/GeminiTowerScene.tsx
index 139f2a9e9a..d8d68aecf5 100644
--- a/packages/jonnys-videos/src/plane-sight/GeminiTowerScene.tsx
+++ b/packages/jonnys-videos/src/plane-sight/GeminiTowerScene.tsx
@@ -83,9 +83,7 @@ const GeminiTowerSceneContent = ({style}: InteractiveTransformProps) => {
);
};
-export const GeminiTowerScene = Interactive.withSchema({
+export const GeminiTowerScene = Interactive.create({
Component: GeminiTowerSceneContent,
componentName: 'GeminiTowerScene',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/HerdrGroundControl.tsx b/packages/jonnys-videos/src/plane-sight/HerdrGroundControl.tsx
index 7b971c1534..78c58b43b0 100644
--- a/packages/jonnys-videos/src/plane-sight/HerdrGroundControl.tsx
+++ b/packages/jonnys-videos/src/plane-sight/HerdrGroundControl.tsx
@@ -28,9 +28,7 @@ const HerdrGroundControlContent = ({style}: InteractiveTransformProps) => {
);
};
-export const HerdrGroundControl = Interactive.withSchema({
+export const HerdrGroundControl = Interactive.create({
Component: HerdrGroundControlContent,
componentName: 'HerdrGroundControl',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/PixelAirlines.tsx b/packages/jonnys-videos/src/plane-sight/PixelAirlines.tsx
index 4f1fc3ce51..5827b536e3 100644
--- a/packages/jonnys-videos/src/plane-sight/PixelAirlines.tsx
+++ b/packages/jonnys-videos/src/plane-sight/PixelAirlines.tsx
@@ -46,7 +46,7 @@ const CloudCodePlaneContent = ({
);
};
-export const CloudCodePlane = Interactive.withSchema({
+export const CloudCodePlane = Interactive.create({
Component: CloudCodePlaneContent,
componentName: 'CloudCodePlane',
schema: {
@@ -57,7 +57,6 @@ export const CloudCodePlane = Interactive.withSchema({
variants: {narrowbody: {}, widebody: {}},
},
},
- wrapInSequence: true,
});
const OpenAirPlaneContent = ({airframe, width, height, style}: PlaneProps) => {
@@ -87,7 +86,7 @@ const OpenAirPlaneContent = ({airframe, width, height, style}: PlaneProps) => {
);
};
-export const OpenAirPlane = Interactive.withSchema({
+export const OpenAirPlane = Interactive.create({
Component: OpenAirPlaneContent,
componentName: 'OpenAirPlane',
schema: {
@@ -98,7 +97,6 @@ export const OpenAirPlane = Interactive.withSchema({
variants: {narrowbody: {}, widebody: {}},
},
},
- wrapInSequence: true,
});
export const PixelAirlines = () => {
diff --git a/packages/jonnys-videos/src/plane-sight/PixelAirport.tsx b/packages/jonnys-videos/src/plane-sight/PixelAirport.tsx
index c95e5a93de..c0956a6b01 100644
--- a/packages/jonnys-videos/src/plane-sight/PixelAirport.tsx
+++ b/packages/jonnys-videos/src/plane-sight/PixelAirport.tsx
@@ -743,9 +743,7 @@ const PixelAirportContent = ({style}: InteractiveTransformProps) => {
);
};
-export const PixelAirport = Interactive.withSchema({
+export const PixelAirport = Interactive.create({
Component: PixelAirportContent,
componentName: 'PixelAirport',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/PlaneSightLogo.tsx b/packages/jonnys-videos/src/plane-sight/PlaneSightLogo.tsx
index e9cf36e9b6..a26c54bb20 100644
--- a/packages/jonnys-videos/src/plane-sight/PlaneSightLogo.tsx
+++ b/packages/jonnys-videos/src/plane-sight/PlaneSightLogo.tsx
@@ -40,9 +40,7 @@ const PlaneSightLogoContent = ({style}: InteractiveTransformProps) => {
);
};
-export const PlaneSightLogo = Interactive.withSchema({
+export const PlaneSightLogo = Interactive.create({
Component: PlaneSightLogoContent,
componentName: 'PlaneSightLogo',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/PresenterNarration.tsx b/packages/jonnys-videos/src/plane-sight/PresenterNarration.tsx
index e8f0d02a82..cdb62a1d97 100644
--- a/packages/jonnys-videos/src/plane-sight/PresenterNarration.tsx
+++ b/packages/jonnys-videos/src/plane-sight/PresenterNarration.tsx
@@ -1675,9 +1675,7 @@ const PresenterNarrationContent = ({style}: InteractiveTransformProps) => {
);
};
-export const PresenterNarration = Interactive.withSchema({
+export const PresenterNarration = Interactive.create({
Component: PresenterNarrationContent,
componentName: 'PresenterNarration',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/TaxiwayDependencies.tsx b/packages/jonnys-videos/src/plane-sight/TaxiwayDependencies.tsx
index b05a9de899..29750d2d7a 100644
--- a/packages/jonnys-videos/src/plane-sight/TaxiwayDependencies.tsx
+++ b/packages/jonnys-videos/src/plane-sight/TaxiwayDependencies.tsx
@@ -38,9 +38,7 @@ const TaxiwayDependenciesContent = ({style}: InteractiveTransformProps) => {
);
};
-export const TaxiwayDependencies = Interactive.withSchema({
+export const TaxiwayDependencies = Interactive.create({
Component: TaxiwayDependenciesContent,
componentName: 'TaxiwayDependencies',
- schema: {},
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/TowerZoom.tsx b/packages/jonnys-videos/src/plane-sight/TowerZoom.tsx
index 20ff80f5c6..67c9be0a4d 100644
--- a/packages/jonnys-videos/src/plane-sight/TowerZoom.tsx
+++ b/packages/jonnys-videos/src/plane-sight/TowerZoom.tsx
@@ -61,7 +61,7 @@ const TowerZoomContent = ({style, afterHerdr}: TowerZoomProps) => {
);
};
-export const TowerZoom = Interactive.withSchema({
+export const TowerZoom = Interactive.create({
Component: TowerZoomContent,
componentName: 'TowerZoom',
schema: {
@@ -71,5 +71,4 @@ export const TowerZoom = Interactive.withSchema({
description: 'Use the airport after the Herdr handoff',
},
} satisfies InteractivitySchema,
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/plane-sight/basic-captions.tsx b/packages/jonnys-videos/src/plane-sight/basic-captions.tsx
index 3c80630719..3323c85d4b 100644
--- a/packages/jonnys-videos/src/plane-sight/basic-captions.tsx
+++ b/packages/jonnys-videos/src/plane-sight/basic-captions.tsx
@@ -96,9 +96,8 @@ const BasicCaptionsContent: React.FC<BasicCaptionsProps> = ({
);
};
-export const BasicCaptions = Interactive.withSchema({
+export const BasicCaptions = Interactive.create({
Component: BasicCaptionsContent,
componentName: '<BasicCaptions>',
schema: basicCaptionsSchema,
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/RollerSkiCommute.tsx b/packages/jonnys-videos/src/roller-skis-new/RollerSkiCommute.tsx
index 7a81a724e3..d6d04cbf39 100644
--- a/packages/jonnys-videos/src/roller-skis-new/RollerSkiCommute.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/RollerSkiCommute.tsx
@@ -172,10 +172,7 @@ const RollerSkiCommuteInner: React.FC = () => {
);
};
-export const RollerSkiCommute = Interactive.withSchema({
+export const RollerSkiCommute = Interactive.create({
Component: RollerSkiCommuteInner,
- componentName: 'RollerSkiCommute',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/elements/AwardBadge.tsx b/packages/jonnys-videos/src/roller-skis-new/elements/AwardBadge.tsx
index a033df771a..1f57034c61 100644
--- a/packages/jonnys-videos/src/roller-skis-new/elements/AwardBadge.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/elements/AwardBadge.tsx
@@ -115,9 +115,8 @@ const awardBadgeSchema = {
winner: {type: 'string', default: 'Winner', description: 'Winner'},
} as const satisfies InteractivitySchema;
-export const AwardBadge = Interactive.withSchema({
+export const AwardBadge = Interactive.create({
Component: AwardBadgeInner,
componentName: '<AwardBadge>',
schema: awardBadgeSchema,
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/elements/Callout.tsx b/packages/jonnys-videos/src/roller-skis-new/elements/Callout.tsx
index 28dd2ba0e2..22d070f903 100644
--- a/packages/jonnys-videos/src/roller-skis-new/elements/Callout.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/elements/Callout.tsx
@@ -136,9 +136,8 @@ const calloutSchema = {
},
} as const satisfies InteractivitySchema;
-export const Callout = Interactive.withSchema({
+export const Callout = Interactive.create({
Component: CalloutInner,
componentName: '<Callout>',
schema: calloutSchema,
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/elements/LightLeakOverlay.tsx b/packages/jonnys-videos/src/roller-skis-new/elements/LightLeakOverlay.tsx
index 1224feb574..accd28209f 100644
--- a/packages/jonnys-videos/src/roller-skis-new/elements/LightLeakOverlay.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/elements/LightLeakOverlay.tsx
@@ -32,10 +32,7 @@ const LightLeakOverlayInner: React.FC = () => {
);
};
-export const LightLeakOverlay = Interactive.withSchema({
+export const LightLeakOverlay = Interactive.create({
Component: LightLeakOverlayInner,
- componentName: 'LightLeakOverlay',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/elements/LocationLowerThird.tsx b/packages/jonnys-videos/src/roller-skis-new/elements/LocationLowerThird.tsx
index e00b657464..c24568210f 100644
--- a/packages/jonnys-videos/src/roller-skis-new/elements/LocationLowerThird.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/elements/LocationLowerThird.tsx
@@ -170,9 +170,8 @@ const locationLowerThirdSchema = {
},
} as const satisfies InteractivitySchema;
-export const LocationLowerThird = Interactive.withSchema({
+export const LocationLowerThird = Interactive.create({
Component: LocationLowerThirdInner,
componentName: '<LocationLowerThird>',
schema: locationLowerThirdSchema,
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/elements/NameLowerThird.tsx b/packages/jonnys-videos/src/roller-skis-new/elements/NameLowerThird.tsx
index c59748b4bc..e05b894cff 100644
--- a/packages/jonnys-videos/src/roller-skis-new/elements/NameLowerThird.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/elements/NameLowerThird.tsx
@@ -111,9 +111,8 @@ const nameLowerThirdSchema = {
},
} as const satisfies InteractivitySchema;
-export const NameLowerThird = Interactive.withSchema({
+export const NameLowerThird = Interactive.create({
Component: NameLowerThirdInner,
componentName: '<NameLowerThird>',
schema: nameLowerThirdSchema,
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/elements/SpeedBadge.tsx b/packages/jonnys-videos/src/roller-skis-new/elements/SpeedBadge.tsx
index 91451cc416..dbf6395f20 100644
--- a/packages/jonnys-videos/src/roller-skis-new/elements/SpeedBadge.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/elements/SpeedBadge.tsx
@@ -60,9 +60,8 @@ const speedBadgeSchema = {
speed: {type: 'string', default: '2×', description: 'Speed'},
} as const satisfies InteractivitySchema;
-export const SpeedBadge = Interactive.withSchema({
+export const SpeedBadge = Interactive.create({
Component: SpeedBadgeInner,
componentName: '<SpeedBadge>',
schema: speedBadgeSchema,
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/elements/TitleCard.tsx b/packages/jonnys-videos/src/roller-skis-new/elements/TitleCard.tsx
index f763cff14a..006939ed01 100644
--- a/packages/jonnys-videos/src/roller-skis-new/elements/TitleCard.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/elements/TitleCard.tsx
@@ -155,10 +155,8 @@ const titleCardSchema = {
},
} as const satisfies InteractivitySchema;
-export const TitleCard = Interactive.withSchema({
+export const TitleCard = Interactive.create({
Component: TitleCardInner,
- componentName: 'TitleCard',
schema: titleCardSchema,
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/elements/popping-word-captions.tsx b/packages/jonnys-videos/src/roller-skis-new/elements/popping-word-captions.tsx
index 6ca3d8372f..d51d8bfd64 100644
--- a/packages/jonnys-videos/src/roller-skis-new/elements/popping-word-captions.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/elements/popping-word-captions.tsx
@@ -270,9 +270,8 @@ const PoppingWordCaptionsContent: React.FC<PoppingWordCaptionsProps> = ({
);
};
-export const PoppingWordCaptions = Interactive.withSchema({
+export const PoppingWordCaptions = Interactive.create({
Component: PoppingWordCaptionsContent,
componentName: '<PoppingWordCaptions>',
schema: poppingWordCaptionsSchema,
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/scenes/Arrival.tsx b/packages/jonnys-videos/src/roller-skis-new/scenes/Arrival.tsx
index 174afce274..0bf6bf6b1c 100644
--- a/packages/jonnys-videos/src/roller-skis-new/scenes/Arrival.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/scenes/Arrival.tsx
@@ -249,10 +249,7 @@ const ArrivalInner: React.FC = () => {
);
};
-export const Arrival = Interactive.withSchema({
+export const Arrival = Interactive.create({
Component: ArrivalInner,
- componentName: 'Arrival',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/scenes/BestCommute.tsx b/packages/jonnys-videos/src/roller-skis-new/scenes/BestCommute.tsx
index 7e8cea90dc..127f974390 100644
--- a/packages/jonnys-videos/src/roller-skis-new/scenes/BestCommute.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/scenes/BestCommute.tsx
@@ -510,10 +510,7 @@ const BestCommuteInner: React.FC = () => {
);
};
-export const BestCommute = Interactive.withSchema({
+export const BestCommute = Interactive.create({
Component: BestCommuteInner,
- componentName: 'BestCommute',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/scenes/EndCard.tsx b/packages/jonnys-videos/src/roller-skis-new/scenes/EndCard.tsx
index 688a29cb89..e1be902bcd 100644
--- a/packages/jonnys-videos/src/roller-skis-new/scenes/EndCard.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/scenes/EndCard.tsx
@@ -130,10 +130,7 @@ const EndCardInner: React.FC = () => {
);
};
-export const EndCard = Interactive.withSchema({
+export const EndCard = Interactive.create({
Component: EndCardInner,
- componentName: 'EndCard',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/scenes/GearUp.tsx b/packages/jonnys-videos/src/roller-skis-new/scenes/GearUp.tsx
index 0e316b38c4..1fa9aeaaf8 100644
--- a/packages/jonnys-videos/src/roller-skis-new/scenes/GearUp.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/scenes/GearUp.tsx
@@ -197,10 +197,7 @@ const GearUpInner: React.FC = () => {
);
};
-export const GearUp = Interactive.withSchema({
+export const GearUp = Interactive.create({
Component: GearUpInner,
- componentName: 'GearUp',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/scenes/Intro.tsx b/packages/jonnys-videos/src/roller-skis-new/scenes/Intro.tsx
index 2042488c68..fbc9d6be64 100644
--- a/packages/jonnys-videos/src/roller-skis-new/scenes/Intro.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/scenes/Intro.tsx
@@ -353,10 +353,7 @@ const IntroInner: React.FC = () => {
);
};
-export const Intro = Interactive.withSchema({
+export const Intro = Interactive.create({
Component: IntroInner,
- componentName: 'Intro',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/scenes/OffWeGo.tsx b/packages/jonnys-videos/src/roller-skis-new/scenes/OffWeGo.tsx
index 9d99f79e47..6b2ca6da5c 100644
--- a/packages/jonnys-videos/src/roller-skis-new/scenes/OffWeGo.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/scenes/OffWeGo.tsx
@@ -30,10 +30,7 @@ const OffWeGoInner: React.FC = () => {
);
};
-export const OffWeGo = Interactive.withSchema({
+export const OffWeGo = Interactive.create({
Component: OffWeGoInner,
- componentName: 'OffWeGo',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/scenes/Office.tsx b/packages/jonnys-videos/src/roller-skis-new/scenes/Office.tsx
index 95922f627b..6f370d7492 100644
--- a/packages/jonnys-videos/src/roller-skis-new/scenes/Office.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/scenes/Office.tsx
@@ -910,10 +910,7 @@ const OfficeInner: React.FC = () => {
);
};
-export const Office = Interactive.withSchema({
+export const Office = Interactive.create({
Component: OfficeInner,
- componentName: 'Office',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/scenes/RideMontage.tsx b/packages/jonnys-videos/src/roller-skis-new/scenes/RideMontage.tsx
index a5ab0df20c..6777931350 100644
--- a/packages/jonnys-videos/src/roller-skis-new/scenes/RideMontage.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/scenes/RideMontage.tsx
@@ -55,10 +55,7 @@ const RideMontageInner: React.FC = () => {
);
};
-export const RideMontage = Interactive.withSchema({
+export const RideMontage = Interactive.create({
Component: RideMontageInner,
- componentName: 'RideMontage',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/scenes/TheDecline.tsx b/packages/jonnys-videos/src/roller-skis-new/scenes/TheDecline.tsx
index c0d00833f7..253ed20ac2 100644
--- a/packages/jonnys-videos/src/roller-skis-new/scenes/TheDecline.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/scenes/TheDecline.tsx
@@ -1042,10 +1042,7 @@ const TheDeclineInner: React.FC = () => {
);
};
-export const TheDecline = Interactive.withSchema({
+export const TheDecline = Interactive.create({
Component: TheDeclineInner,
- componentName: 'TheDecline',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis-new/scenes/Uphill.tsx b/packages/jonnys-videos/src/roller-skis-new/scenes/Uphill.tsx
index 7cfefa0057..d7aa0f8f95 100644
--- a/packages/jonnys-videos/src/roller-skis-new/scenes/Uphill.tsx
+++ b/packages/jonnys-videos/src/roller-skis-new/scenes/Uphill.tsx
@@ -1385,10 +1385,7 @@ const UphillInner: React.FC = () => {
);
};
-export const Uphill = Interactive.withSchema({
+export const Uphill = Interactive.create({
Component: UphillInner,
- componentName: 'Uphill',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis/CommuteMotionGraphic.tsx b/packages/jonnys-videos/src/roller-skis/CommuteMotionGraphic.tsx
index 1b420f2dd3..2786243b62 100644
--- a/packages/jonnys-videos/src/roller-skis/CommuteMotionGraphic.tsx
+++ b/packages/jonnys-videos/src/roller-skis/CommuteMotionGraphic.tsx
@@ -155,10 +155,7 @@ const CommuteMotionGraphicInner: React.FC = () => {
);
};
-export const CommuteMotionGraphic = Interactive.withSchema({
+export const CommuteMotionGraphic = Interactive.create({
Component: CommuteMotionGraphicInner,
- componentName: 'CommuteMotionGraphic',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis/Composition.tsx b/packages/jonnys-videos/src/roller-skis/Composition.tsx
index 3b1544a19b..a0601cef29 100644
--- a/packages/jonnys-videos/src/roller-skis/Composition.tsx
+++ b/packages/jonnys-videos/src/roller-skis/Composition.tsx
@@ -4044,50 +4044,32 @@ const RollerSkiRoughCutInner: React.FC = () => {
);
};
-const OpeningTitleCard = Interactive.withSchema({
+const OpeningTitleCard = Interactive.create({
Component: OpeningTitleCardInner,
- componentName: 'OpeningTitleCard',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
-const PresenterZoom = Interactive.withSchema({
+const PresenterZoom = Interactive.create({
Component: PresenterZoomInner,
- componentName: 'PresenterZoom',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
-const TvColorBars = Interactive.withSchema({
+const TvColorBars = Interactive.create({
Component: TvColorBarsInner,
- componentName: 'TvColorBars',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
-const StravaRidesBroll = Interactive.withSchema({
+const StravaRidesBroll = Interactive.create({
Component: StravaRidesBrollInner,
- componentName: 'StravaRidesBroll',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
-export const PresenterIntroduction = Interactive.withSchema({
+export const PresenterIntroduction = Interactive.create({
Component: PresenterIntroductionInner,
- componentName: 'PresenterIntroduction',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
-const RollerSkiRoughCut = Interactive.withSchema({
+const RollerSkiRoughCut = Interactive.create({
Component: RollerSkiRoughCutInner,
- componentName: 'RollerSkiRoughCut',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis/IntroLowerThird.tsx b/packages/jonnys-videos/src/roller-skis/IntroLowerThird.tsx
index 2404660e9b..b4d63f962f 100644
--- a/packages/jonnys-videos/src/roller-skis/IntroLowerThird.tsx
+++ b/packages/jonnys-videos/src/roller-skis/IntroLowerThird.tsx
@@ -106,9 +106,8 @@ const lowerThirdSchema = {
},
} as const satisfies InteractivitySchema;
-export const IntroLowerThird = Interactive.withSchema({
+export const IntroLowerThird = Interactive.create({
Component: IntroLowerThirdContent,
componentName: '<IntroLowerThird>',
schema: lowerThirdSchema,
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/roller-skis/Thumbnail.tsx b/packages/jonnys-videos/src/roller-skis/Thumbnail.tsx
index 14c8681761..1515580638 100644
--- a/packages/jonnys-videos/src/roller-skis/Thumbnail.tsx
+++ b/packages/jonnys-videos/src/roller-skis/Thumbnail.tsx
@@ -61,10 +61,7 @@ const ThumbnailInner: React.FC = () => {
);
};
-export const Thumbnail = Interactive.withSchema({
+export const Thumbnail = Interactive.create({
Component: ThumbnailInner,
- componentName: 'Thumbnail',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis/YouTubeEndCard.tsx b/packages/jonnys-videos/src/roller-skis/YouTubeEndCard.tsx
index d7defdd064..c51bee2b6e 100644
--- a/packages/jonnys-videos/src/roller-skis/YouTubeEndCard.tsx
+++ b/packages/jonnys-videos/src/roller-skis/YouTubeEndCard.tsx
@@ -339,10 +339,7 @@ const YouTubeEndCardInner = () => {
);
};
-export const YouTubeEndCard = Interactive.withSchema({
+export const YouTubeEndCard = Interactive.create({
Component: YouTubeEndCardInner,
- componentName: 'YouTubeEndCard',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis/basic-captions.tsx b/packages/jonnys-videos/src/roller-skis/basic-captions.tsx
index 06844d9597..540014914a 100644
--- a/packages/jonnys-videos/src/roller-skis/basic-captions.tsx
+++ b/packages/jonnys-videos/src/roller-skis/basic-captions.tsx
@@ -102,9 +102,8 @@ const BasicCaptionsContent: React.FC<BasicCaptionsProps> = ({
);
};
-export const BasicCaptions = Interactive.withSchema({
+export const BasicCaptions = Interactive.create({
Component: BasicCaptionsContent,
componentName: '<BasicCaptions>',
schema: basicCaptionsSchema,
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/roller-skis/blueprint/BlueprintStage.tsx b/packages/jonnys-videos/src/roller-skis/blueprint/BlueprintStage.tsx
index 039667896e..ba5b68b9af 100644
--- a/packages/jonnys-videos/src/roller-skis/blueprint/BlueprintStage.tsx
+++ b/packages/jonnys-videos/src/roller-skis/blueprint/BlueprintStage.tsx
@@ -81,10 +81,8 @@ const blueprintStageSchema = {
},
} as const satisfies InteractivitySchema;
-export const BlueprintStage = Interactive.withSchema({
+export const BlueprintStage = Interactive.create({
Component: BlueprintStageInner,
- componentName: 'BlueprintStage',
schema: blueprintStageSchema,
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis/blueprint/CodeCard.tsx b/packages/jonnys-videos/src/roller-skis/blueprint/CodeCard.tsx
index 7ceee8abdb..98abb91980 100644
--- a/packages/jonnys-videos/src/roller-skis/blueprint/CodeCard.tsx
+++ b/packages/jonnys-videos/src/roller-skis/blueprint/CodeCard.tsx
@@ -151,9 +151,8 @@ const codeCardSchema = {
},
} as const satisfies InteractivitySchema;
-export const CodeCard = Interactive.withSchema({
+export const CodeCard = Interactive.create({
Component: CodeCardInner,
componentName: '<CodeCard>',
schema: codeCardSchema,
- wrapInSequence: true,
});
diff --git a/packages/jonnys-videos/src/roller-skis/blueprint/RollerSkiBlueprint.tsx b/packages/jonnys-videos/src/roller-skis/blueprint/RollerSkiBlueprint.tsx
index ba6d2cf41e..57ca41e9ce 100644
--- a/packages/jonnys-videos/src/roller-skis/blueprint/RollerSkiBlueprint.tsx
+++ b/packages/jonnys-videos/src/roller-skis/blueprint/RollerSkiBlueprint.tsx
@@ -123,10 +123,7 @@ export const RollerSkiBlueprintCompositions: React.FC = () => {
);
};
-export const RollerSkiBlueprint = Interactive.withSchema({
+export const RollerSkiBlueprint = Interactive.create({
Component: RollerSkiBlueprintInner,
- componentName: 'RollerSkiBlueprint',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});
diff --git a/packages/jonnys-videos/src/roller-skis/nordic/NordicRoutes.tsx b/packages/jonnys-videos/src/roller-skis/nordic/NordicRoutes.tsx
index a03ed68c06..eae04b9cc7 100644
--- a/packages/jonnys-videos/src/roller-skis/nordic/NordicRoutes.tsx
+++ b/packages/jonnys-videos/src/roller-skis/nordic/NordicRoutes.tsx
@@ -210,11 +210,9 @@ const routePanelSchema = {
},
} as const satisfies InteractivitySchema;
-const RoutePanel = Interactive.withSchema({
+const RoutePanel = Interactive.create({
Component: RoutePanelInner,
- componentName: 'RoutePanel',
schema: routePanelSchema,
- wrapInSequence: true,
});
const NordicRoutesInner: React.FC<{whiteOverlay?: boolean}> = ({
@@ -292,10 +290,7 @@ const NordicRoutesInner: React.FC<{whiteOverlay?: boolean}> = ({
);
};
-export const NordicRoutes = Interactive.withSchema({
+export const NordicRoutes = Interactive.create({
Component: NordicRoutesInner,
- componentName: 'NordicRoutes',
- schema: {},
- wrapInSequence: true,
layout: 'absolute-fill',
});