비디오 태그 및 폼 블록 정리
CI / test (push) Failing after 7m30s
CI / pr_and_merge (push) Has been skipped

This commit is contained in:
2025-11-27 19:37:32 +09:00
parent 1405280ed3
commit c5c9d17e8b
50 changed files with 365 additions and 173 deletions
@@ -103,6 +103,10 @@ export function PublicPageRenderer({ blocks }: PublicPageRendererProps) {
const [formMessage, setFormMessage] = useState<string>("");
const renderBlock = (block: Block) => {
if ((block as any).type === "form") {
return null;
}
if (block.type === "text") {
const props = block.props as TextBlockProps;
const tokens = computeTextPublicTokens(props);
@@ -398,6 +402,10 @@ export function PublicPageRenderer({ blocks }: PublicPageRendererProps) {
const props = block.props as VideoBlockProps;
const rawUrl = normalizeVideoSourceUrl(props.sourceUrl ?? "");
if (!rawUrl) {
return null;
}
const platform = resolveVideoPlatform(rawUrl, props.platform ?? "auto");
const embedUrl = buildVideoEmbedUrl(rawUrl, platform, { enableVimeoEmbed: true });