@gendive/slide 0.1.7 → 0.1.9

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/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
+ import { AiProviderConfig } from './ai/types';
1
2
  export { devdiveTheme, themeVars } from './theme';
2
3
  export { Editor } from './components/Editor';
4
+ export type { EditorProps } from './components/Editor';
3
5
  export { SlideCanvas } from './components/SlideCanvas';
4
6
  export { FloatingToolbar } from './components/FloatingToolbar';
5
7
  export { PropertiesPanel } from './components/PropertiesPanel';
@@ -11,9 +13,19 @@ export { TextNode } from './components/TextNode';
11
13
  export { ShapeNode } from './components/ShapeNode';
12
14
  export { ImageNode } from './components/ImageNode';
13
15
  export { useEditorStore } from './stores/editorStore';
16
+ export { useAiStore } from './ai/stores/aiStore';
14
17
  export { generateId } from './utils/id';
15
18
  export { calculateSnap } from './utils/snap';
16
19
  export { generatePptx } from './lib/pptxGenerator';
17
20
  export { LAYOUT_TEMPLATES, getLayoutTemplate } from './data/templates';
18
21
  export type { Slide, SlideElement, BaseElement, TextElement, ShapeElement, ImageElement, ShapeType, TextStyleType, FontFamily, EditorMode, SnapSettings, LayoutType, ThemeType, ThemeColors, LayoutTemplate, EditorState, EditorActions, HistoryState, } from './types';
19
22
  export { TEXT_STYLE_PRESETS, THEME_PRESETS } from './types';
23
+ export type { AiProviderType, AiProviderConfig, DevDiveConfig, } from './ai/types';
24
+ /**
25
+ * @description AI 설정 초기화 함수
26
+ * @Todo vibecode - Editor prop 외에 직접 설정 가능
27
+ * @example
28
+ * import { initAiConfig } from '@gendive/slide';
29
+ * initAiConfig({ provider: 'devdive', apiKey: 'YOUR_KEY', model: 'gpt-4o' });
30
+ */
31
+ export declare const initAiConfig: (config: AiProviderConfig) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gendive/slide",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "DevDive PPTX Slide Editor - React component library for creating and editing presentations",