refactor(repo): resolve changed-code audit

This commit is contained in:
James
2026-07-20 11:59:57 -07:00
parent cbcf45facf
commit ab8b50afd7
21 changed files with 54 additions and 51 deletions
@@ -5,7 +5,7 @@ import { CaptionPropertyPanel } from "../captions/components/CaptionPropertyPane
import { BlockParamsPanel } from "./editor/BlockParamsPanel";
import { RenderQueue } from "./renders/RenderQueue";
import { SlideshowPanel } from "./panels/SlideshowPanel";
import { VariablesPanel } from "./panels/VariablesPanel";
import { VariablesPanel, type StudioEditPersistenceProps } from "./panels/VariablesPanel";
import { PanelTabButton } from "./PanelTabButton";
import { usePreviewVariablesStore } from "../hooks/previewVariablesStore";
import type { RenderJob } from "./renders/useRenderQueue";
@@ -35,7 +35,7 @@ import type { BackgroundRemovalProgress } from "./editor/propertyPanelTypes";
import { timelineKeysForSelections, type ToggleHiddenHandler } from "../utils/studioHelpers";
import { useInspectorSplitResize } from "../hooks/useInspectorSplitResize";
export interface StudioRightPanelProps {
export interface StudioRightPanelProps extends StudioEditPersistenceProps {
designPanelActive: boolean;
activeBlockParams?: {
blockName: string;
@@ -31,7 +31,7 @@ function shellSingleQuote(value: string): string {
return `'${value.replace(/'/g, `'\\''`)}'`;
}
interface VariablesPanelProps {
export interface StudioEditPersistenceProps {
sdkSession: Composition | null;
publishSdkSession: PublishSdkSession;
reloadPreview: () => void;
@@ -43,6 +43,8 @@ interface VariablesPanelProps {
}) => Promise<void>;
}
type VariablesPanelProps = StudioEditPersistenceProps;
function formatIssue(issue: VariableValidationIssue): string {
switch (issue.kind) {
case "undeclared":