@gendive/slide 0.1.13 → 0.1.15
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/README.md +100 -18
- package/dist/devdive-slide.cjs.js +95 -94
- package/dist/devdive-slide.cjs.js.map +1 -1
- package/dist/devdive-slide.es.js +8897 -8618
- package/dist/devdive-slide.es.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/lib/pptxParser.d.ts +10 -0
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { useAiStore } from './ai/stores/aiStore';
|
|
|
17
17
|
export { generateId } from './utils/id';
|
|
18
18
|
export { calculateSnap } from './utils/snap';
|
|
19
19
|
export { generatePptx } from './lib/pptxGenerator';
|
|
20
|
+
export { parsePptx } from './lib/pptxParser';
|
|
20
21
|
export { LAYOUT_TEMPLATES, getLayoutTemplate } from './data/templates';
|
|
21
22
|
export type { Slide, SlideElement, BaseElement, TextElement, ShapeElement, ImageElement, ShapeType, TextStyleType, FontFamily, EditorMode, SnapSettings, LayoutType, ThemeType, ThemeColors, LayoutTemplate, EditorState, EditorActions, HistoryState, } from './types';
|
|
22
23
|
export { TEXT_STYLE_PRESETS, THEME_PRESETS } from './types';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Slide } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* @description PPTX 파일을 파싱하여 Slide 배열 반환
|
|
4
|
+
* @Todo vibecode - JSZip + DOMParser 기반 PPTX 파서
|
|
5
|
+
* @example
|
|
6
|
+
* const file = event.target.files[0];
|
|
7
|
+
* const slides = await parsePptx(file);
|
|
8
|
+
* loadSlides(slides);
|
|
9
|
+
*/
|
|
10
|
+
export declare const parsePptx: (file: File) => Promise<Slide[]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gendive/slide",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "DevDive PPTX Slide Editor - React component library for creating and editing presentations",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"dexie": "^4.2.1",
|
|
50
|
+
"jszip": "^3.10.1",
|
|
50
51
|
"konva": "^10.2.0",
|
|
51
52
|
"pptxgenjs": "^4.0.1",
|
|
52
53
|
"react-colorful": "^5.6.1",
|