feedbacker-react
Version:
A drop-in React feedback system for component-level feedback capture during development and design review
69 lines • 1.9 kB
TypeScript
/**
* ZipExporter - Creates ZIP archives with feedback data and images
*
* Features:
* - Full ZIP export with feedback.md, feedback.json, and images/ folder
* - Image extraction to separate files
* - Proper file structure
* - Base64 image handling
*/
import { Feedback } from '../types';
export declare class ZipExporter {
/**
* Export feedback as ZIP archive
*/
static exportAsZip(feedbacks: Feedback[]): Promise<Blob>;
/**
* Generate and download ZIP file
*/
static downloadZip(feedbacks: Feedback[], filename?: string): Promise<void>;
/**
* Generate markdown with image references instead of base64
*/
private static generateMarkdownWithImageRefs;
/**
* Generate header for ZIP markdown
*/
private static generateHeaderWithImages;
/**
* Generate feedback items with image references
*/
private static generateFeedbackItemsWithImages;
/**
* Generate single feedback item with image references
*/
private static generateFeedbackItemWithImages;
/**
* Generate JSON data with image paths instead of embedded data
*/
private static generateJsonData;
/**
* Add images to ZIP archive
*/
private static addImagesToZip;
/**
* Extract base64 image data from data URL
*/
private static extractImageData;
/**
* Generate image filename for a feedback item
*/
private static generateImageName;
/**
* Format comment for markdown
*/
private static formatComment;
/**
* Generate markdown anchor
*/
private static generateAnchor;
/**
* Generate ZIP filename
*/
static generateZipFilename(feedbacks: Feedback[]): string;
/**
* Sanitize filename for download
*/
static sanitizeFilename(filename: string): string;
}
//# sourceMappingURL=ZipExporter.d.ts.map