Files
wehub-resource-sync c48612c494
CI / E2E Tests (push) Has been cancelled
CI / Lint, Typecheck & Unit Tests (push) Has been cancelled
Docs Build / Build docs site (push) Has been cancelled
Publish @openmaic packages / Build, validate & publish (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:03:23 +08:00

18 lines
713 B
TypeScript

import type { SceneType } from '@/lib/types/stage';
/**
* The narration timeline (ActionsBar) is decoupled from the canvas editor
* surface. It applies wherever a spoken script makes sense: scene types with a
* registered editor surface (slide/quiz), PLUS view-only-canvas scenes that
* still carry narration (interactive/pbl). Mirrors how the AI edit panel
* (agentEnabled) is decoupled from the canvas surface in EditChromeRoot.
*/
const NARRATION_ONLY_TYPES: ReadonlySet<SceneType> = new Set(['interactive', 'pbl']);
export function supportsNarrationTimeline(
sceneType: SceneType,
hasRegisteredSurface: boolean,
): boolean {
return hasRegisteredSurface || NARRATION_ONLY_TYPES.has(sceneType);
}