diff --git a/video-gen-admin/src/pages/adminReplication/components/VideoPromptSchemaViewer.tsx b/video-gen-admin/src/pages/adminReplication/components/VideoPromptSchemaViewer.tsx index 0636560a..37a21115 100644 --- a/video-gen-admin/src/pages/adminReplication/components/VideoPromptSchemaViewer.tsx +++ b/video-gen-admin/src/pages/adminReplication/components/VideoPromptSchemaViewer.tsx @@ -2,9 +2,11 @@ import React from 'react'; import { Card, Collapse, Descriptions, Empty, Space, Table, Tag, Typography } from 'antd'; import type { ColumnsType } from 'antd/es/table'; import { JsonBlock } from './JsonCollapse'; -import { +import type { VideoPromptSchemaFieldConfig, VideoPromptSchemaSectionConfig, +} from '../../../utils/videoPromptSchema'; +import { hasSchemaConfigSnapshot, inferSchemaSections, normalizeSchemaSections, diff --git a/video-gen-app/src/components/VideoPromptSchemaEditor.tsx b/video-gen-app/src/components/VideoPromptSchemaEditor.tsx index dd3ed026..923b7b42 100644 --- a/video-gen-app/src/components/VideoPromptSchemaEditor.tsx +++ b/video-gen-app/src/components/VideoPromptSchemaEditor.tsx @@ -1,9 +1,11 @@ import React from 'react'; import { Alert, Input, Space, Tag, Typography } from 'antd'; -import { +import type { JsonValue, VideoPromptSchemaFieldConfig, VideoPromptSchemaSectionConfig, +} from '../utils/videoPromptSchema'; +import { clonePlain, hasSchemaConfigSnapshot, normalizeSchemaSections,