@gendive/slide 0.1.15 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/components/AiImageModal.d.ts +1 -1
- package/dist/ai/types/index.d.ts +0 -1
- package/dist/components/Editor.d.ts +13 -2
- package/dist/components/Header.d.ts +10 -1
- package/dist/components/ShapeNode.d.ts +2 -1
- package/dist/devdive-slide.cjs.js +103 -103
- package/dist/devdive-slide.cjs.js.map +1 -1
- package/dist/devdive-slide.es.js +11565 -11391
- package/dist/devdive-slide.es.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/types/index.d.ts +28 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ interface AiImageModalProps {
|
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* @description AI 이미지 생성 모달
|
|
8
|
-
* @Todo vibecode - 프롬프트로 이미지
|
|
8
|
+
* @Todo vibecode - 프롬프트로 이미지 생성, 크기 옵션 제거
|
|
9
9
|
*/
|
|
10
10
|
export declare const AiImageModal: ({ isOpen, onClose, onBack }: AiImageModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
package/dist/ai/types/index.d.ts
CHANGED
|
@@ -138,7 +138,6 @@ export interface AiSlideGenerationResponse {
|
|
|
138
138
|
export interface AiImageRequest {
|
|
139
139
|
prompt: string;
|
|
140
140
|
style: 'realistic' | 'illustration' | 'abstract' | '3d' | 'minimalist';
|
|
141
|
-
size: '512x512' | '1024x1024';
|
|
142
141
|
}
|
|
143
142
|
/**
|
|
144
143
|
* @description 이미지 생성 응답
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AiProviderConfig } from '../ai/types';
|
|
2
|
+
import { EditorHandle, SlideDocument } from '../types';
|
|
2
3
|
/**
|
|
3
4
|
* @description Editor 컴포넌트 Props
|
|
4
5
|
* @Todo vibecode - AI 설정을 외부에서 주입
|
|
@@ -9,9 +10,19 @@ export interface EditorProps {
|
|
|
9
10
|
* @example { provider: 'devdive', apiKey: 'YOUR_API_KEY', model: 'gpt-4o' }
|
|
10
11
|
*/
|
|
11
12
|
aiConfig?: AiProviderConfig;
|
|
13
|
+
/**
|
|
14
|
+
* @description 저장 버튼 클릭 또는 Ctrl+S 시 호출
|
|
15
|
+
* @Todo vibecode - 전달 시 파일 메뉴에 "저장" 버튼 표시 + Ctrl+S 바인딩
|
|
16
|
+
*/
|
|
17
|
+
onSave?: (data: SlideDocument) => void;
|
|
18
|
+
/**
|
|
19
|
+
* @description "라이브러리에서 열기" 클릭 시 호출
|
|
20
|
+
* @Todo vibecode - 전달 시 파일 메뉴에 "라이브러리에서 열기" 버튼 표시
|
|
21
|
+
*/
|
|
22
|
+
onOpenLibrary?: () => void;
|
|
12
23
|
}
|
|
13
24
|
/**
|
|
14
25
|
* @description 메인 에디터 레이아웃 컴포넌트
|
|
15
|
-
* @Todo vibecode -
|
|
26
|
+
* @Todo vibecode - forwardRef로 EditorHandle 노출
|
|
16
27
|
*/
|
|
17
|
-
export declare const Editor: (
|
|
28
|
+
export declare const Editor: import('react').ForwardRefExoticComponent<EditorProps & import('react').RefAttributes<EditorHandle>>;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Header 컴포넌트 Props
|
|
3
|
+
* @Todo vibecode - 저장/라이브러리 콜백
|
|
4
|
+
*/
|
|
5
|
+
interface HeaderProps {
|
|
6
|
+
onSave?: () => void;
|
|
7
|
+
onOpenLibrary?: () => void;
|
|
8
|
+
}
|
|
1
9
|
/**
|
|
2
10
|
* @description 상단 헤더 컴포넌트
|
|
3
11
|
* @Todo vibecode - Tailwind → Mantine 마이그레이션 완료
|
|
4
12
|
*/
|
|
5
|
-
export declare const Header: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Header: ({ onSave, onOpenLibrary }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -17,9 +17,10 @@ interface ShapeNodeProps {
|
|
|
17
17
|
height: number;
|
|
18
18
|
};
|
|
19
19
|
}) => void;
|
|
20
|
+
onAiGenerateImage?: () => void;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* @description 도형 요소 렌더링 컴포넌트 (텍스트 지원)
|
|
23
24
|
*/
|
|
24
|
-
export declare const ShapeNode: ({ element, isSelected, onSelect, onChange, onDragStart, onDragEnd: onDragEndCallback, onReplaceWithImage }: ShapeNodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const ShapeNode: ({ element, isSelected, onSelect, onChange, onDragStart, onDragEnd: onDragEndCallback, onReplaceWithImage, onAiGenerateImage }: ShapeNodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
26
|
export {};
|