@gendive/slide 0.1.7 → 0.1.8
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/types/index.d.ts +27 -0
- package/dist/devdive-slide.cjs.js +89 -66
- package/dist/devdive-slide.cjs.js.map +1 -1
- package/dist/devdive-slide.es.js +3776 -3718
- package/dist/devdive-slide.es.js.map +1 -1
- package/package.json +1 -1
package/dist/ai/types/index.d.ts
CHANGED
|
@@ -78,6 +78,32 @@ export interface AiSlideGenerationRequest {
|
|
|
78
78
|
includeImages: boolean;
|
|
79
79
|
language?: 'ko' | 'en';
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* @description AI 편집 액션 - 이미지 추가
|
|
83
|
+
* @Todo vibecode - 이미지 추가 액션 정의
|
|
84
|
+
*/
|
|
85
|
+
export interface AiAddImageAction {
|
|
86
|
+
type: 'addImage';
|
|
87
|
+
position: 'right' | 'left' | 'bottom' | 'center';
|
|
88
|
+
description: string;
|
|
89
|
+
suggestedSize?: {
|
|
90
|
+
width: number;
|
|
91
|
+
height: number;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @description AI 편집 액션 - 레이아웃 제안
|
|
96
|
+
* @Todo vibecode - 레이아웃 변경 제안 액션
|
|
97
|
+
*/
|
|
98
|
+
export interface AiSuggestLayoutAction {
|
|
99
|
+
type: 'suggestLayout';
|
|
100
|
+
layout: LayoutType;
|
|
101
|
+
reason: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @description AI 편집 액션 타입
|
|
105
|
+
*/
|
|
106
|
+
export type AiEditAction = AiAddImageAction | AiSuggestLayoutAction;
|
|
81
107
|
/**
|
|
82
108
|
* @description 생성된 슬라이드 구조
|
|
83
109
|
*/
|
|
@@ -88,6 +114,7 @@ export interface AiGeneratedSlide {
|
|
|
88
114
|
content?: string;
|
|
89
115
|
bulletPoints?: string[];
|
|
90
116
|
imagePrompt?: string;
|
|
117
|
+
actions?: AiEditAction[];
|
|
91
118
|
}
|
|
92
119
|
/**
|
|
93
120
|
* @description 슬라이드 생성 응답
|