Refactor: remove AGPL imgly dependency and migrate background removal to python backend

This commit is contained in:
2026-06-02 14:50:25 -05:00
parent 560a413c1e
commit f998e454fe
25 changed files with 601 additions and 97 deletions
+4 -1
View File
@@ -14,6 +14,7 @@ interface BrandArchitectureProps {
designMD: DesignMD;
handleDesignChange: (key: keyof DesignMD, value: string | number | string[] | boolean) => void;
onContinue: () => void;
onEditAsset?: (type: keyof DesignMD, url: string) => void;
}
const TABS = [
@@ -25,7 +26,7 @@ const TABS = [
type TabId = typeof TABS[number]['id'];
export const BrandArchitecture: React.FC<BrandArchitectureProps> = ({ company, handleCompanyChange, designMD, handleDesignChange, onContinue }) => {
export const BrandArchitecture: React.FC<BrandArchitectureProps> = ({ company, handleCompanyChange, designMD, handleDesignChange, onContinue, onEditAsset }) => {
const [zoom, setZoom] = useState(1);
const [aspectRatio, setAspectRatio] = useState<'16:9'|'1:1'|'9:16'>('9:16');
const [activeTab, setActiveTab] = useState<TabId>('general');
@@ -186,6 +187,7 @@ export const BrandArchitecture: React.FC<BrandArchitectureProps> = ({ company, h
<BrandTabVisual
designMD={designMD}
handleDesignChange={handleDesignChange}
onEditAsset={onEditAsset}
/>
)}
{activeTab === 'typography' && (
@@ -195,6 +197,7 @@ export const BrandArchitecture: React.FC<BrandArchitectureProps> = ({ company, h
<BrandTabMedia
designMD={designMD}
handleDesignChange={handleDesignChange}
onEditAsset={onEditAsset}
/>
)}