Codex/ecommerce history sync #29

Merged
stringadmin merged 14 commits from codex/ecommerce-history-sync into main 2026-06-18 02:20:06 +00:00
Showing only changes of commit 86e0f83f73 - Show all commits
@@ -4,7 +4,7 @@ import {
ThunderboltOutlined,
VideoCameraOutlined,
} from "@ant-design/icons";
import { useMemo, useState, type ChangeEvent, type DragEvent, type KeyboardEvent, type RefObject } from "react";
import { useMemo, useRef, useState, type ChangeEvent, type DragEvent, type KeyboardEvent, type RefObject } from "react";
import EcommerceVideoWorkspace from "../EcommerceVideoWorkspace";
interface CloneImageItem {
@@ -97,6 +97,7 @@ export default function EcommerceOneClickVideoPanel({
}: EcommerceOneClickVideoPanelProps) {
const [openSelect, setOpenSelect] = useState<"platform" | "ratio" | null>(null);
const [planTrigger, setPlanTrigger] = useState(0);
const selectAnchorRef = useRef<HTMLDivElement>(null);
const productImageDataUrls = useMemo(() => productImages.map((img) => img.src), [productImages]);
const productImageFiles = useMemo(() => productImages.map((img) => img.file), [productImages]);