@umituz/web-canvas 1.0.0

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.
Files changed (55) hide show
  1. package/dist/CanvasConfig-pzoE0RHD.d.mts +310 -0
  2. package/dist/CanvasConfig-pzoE0RHD.d.ts +310 -0
  3. package/dist/application/index.d.mts +78 -0
  4. package/dist/application/index.d.ts +78 -0
  5. package/dist/application/index.js +1083 -0
  6. package/dist/application/index.mjs +11 -0
  7. package/dist/chunk-BN7JTXL7.mjs +346 -0
  8. package/dist/chunk-MC6PNV2F.mjs +34 -0
  9. package/dist/chunk-SF6WND7M.mjs +547 -0
  10. package/dist/chunk-TZGTTYTZ.mjs +0 -0
  11. package/dist/chunk-WMKPCJFI.mjs +661 -0
  12. package/dist/chunk-Z6IB4BQV.mjs +31 -0
  13. package/dist/domain/config/index.d.mts +87 -0
  14. package/dist/domain/config/index.d.ts +87 -0
  15. package/dist/domain/config/index.js +92 -0
  16. package/dist/domain/config/index.mjs +15 -0
  17. package/dist/domain/index.d.mts +79 -0
  18. package/dist/domain/index.d.ts +79 -0
  19. package/dist/domain/index.js +137 -0
  20. package/dist/domain/index.mjs +55 -0
  21. package/dist/index.d.mts +6 -0
  22. package/dist/index.d.ts +6 -0
  23. package/dist/index.js +1633 -0
  24. package/dist/index.mjs +38 -0
  25. package/dist/infrastructure/index.d.mts +174 -0
  26. package/dist/infrastructure/index.d.ts +174 -0
  27. package/dist/infrastructure/index.js +714 -0
  28. package/dist/infrastructure/index.mjs +13 -0
  29. package/dist/presentation/index.d.mts +108 -0
  30. package/dist/presentation/index.d.ts +108 -0
  31. package/dist/presentation/index.js +1617 -0
  32. package/dist/presentation/index.mjs +14 -0
  33. package/package.json +86 -0
  34. package/src/application/index.ts +7 -0
  35. package/src/application/services/ReportService.ts +200 -0
  36. package/src/application/services/ScreenshotStudioService.ts +243 -0
  37. package/src/domain/config/CanvasConfig.ts +36 -0
  38. package/src/domain/config/DeviceConfig.ts +47 -0
  39. package/src/domain/config/ScreenshotStudioConfig.ts +82 -0
  40. package/src/domain/config/index.ts +8 -0
  41. package/src/domain/index.ts +7 -0
  42. package/src/domain/types/canvas.types.ts +85 -0
  43. package/src/domain/types/index.ts +8 -0
  44. package/src/domain/types/report.types.ts +83 -0
  45. package/src/domain/types/screenshot.types.ts +238 -0
  46. package/src/index.ts +102 -0
  47. package/src/infrastructure/index.ts +9 -0
  48. package/src/infrastructure/renderers/CanvasRenderer.ts +287 -0
  49. package/src/infrastructure/renderers/PatternRenderer.ts +160 -0
  50. package/src/infrastructure/renderers/ScreenshotRenderer.ts +331 -0
  51. package/src/infrastructure/services/DeviceConfigService.ts +144 -0
  52. package/src/presentation/hooks/useCanvasExport.ts +162 -0
  53. package/src/presentation/hooks/useReportExport.ts +161 -0
  54. package/src/presentation/hooks/useScreenshotStudio.ts +480 -0
  55. package/src/presentation/index.ts +8 -0
@@ -0,0 +1,87 @@
1
+ import { m as DeviceType, a as CanvasConfig, p as ScreenshotFormat, L as Language } from '../../CanvasConfig-pzoE0RHD.mjs';
2
+ export { D as DEFAULT_CANVAS_CONFIG } from '../../CanvasConfig-pzoE0RHD.mjs';
3
+
4
+ /**
5
+ * Device Configuration
6
+ * Device frame configuration
7
+ */
8
+
9
+ /**
10
+ * Device configuration
11
+ */
12
+ interface DeviceConfigOption {
13
+ /** Available device types */
14
+ devices: DeviceType[];
15
+ /** Default device type */
16
+ defaultDevice?: DeviceType;
17
+ /** Show device frame */
18
+ showFrame?: boolean;
19
+ /** Frame color */
20
+ frameColor?: string;
21
+ /** Frame thickness in pixels */
22
+ frameThickness?: number;
23
+ }
24
+ /**
25
+ * Device dimensions presets
26
+ */
27
+ declare const DEVICE_DIMENSIONS: Record<DeviceType, {
28
+ width: number;
29
+ height: number;
30
+ }>;
31
+ /**
32
+ * Default device configuration
33
+ */
34
+ declare const DEFAULT_DEVICE_CONFIG: DeviceConfigOption;
35
+
36
+ /**
37
+ * Screenshot Studio Configuration
38
+ * Complete screenshot studio configuration
39
+ */
40
+
41
+ /**
42
+ * Export configuration
43
+ */
44
+ interface ExportConfig {
45
+ /** Include ASO metadata in export */
46
+ includeMetadata?: boolean;
47
+ /** ZIP filename template */
48
+ zipFilename?: string;
49
+ /** Folder structure */
50
+ folderStructure?: 'flat' | 'by-language' | 'by-device';
51
+ /** Default export format */
52
+ defaultFormat?: ScreenshotFormat;
53
+ }
54
+ /**
55
+ * AI configuration
56
+ */
57
+ interface AIConfig {
58
+ /** Enable AI features */
59
+ enabled?: boolean;
60
+ /** AI provider */
61
+ provider?: 'gemini' | 'openai' | 'anthropic';
62
+ /** API key (if needed) */
63
+ apiKey?: string;
64
+ }
65
+ /**
66
+ * Screenshot studio configuration
67
+ */
68
+ interface ScreenshotStudioConfig {
69
+ /** Canvas configuration */
70
+ canvas?: CanvasConfig;
71
+ /** Device configuration */
72
+ device?: DeviceConfigOption;
73
+ /** Export configuration */
74
+ export?: ExportConfig;
75
+ /** AI configuration */
76
+ ai?: AIConfig;
77
+ /** Supported languages */
78
+ languages?: Language[];
79
+ /** Default language */
80
+ defaultLanguage?: Language;
81
+ }
82
+ /**
83
+ * Default screenshot studio configuration
84
+ */
85
+ declare const DEFAULT_SCREENSHOT_STUDIO_CONFIG: ScreenshotStudioConfig;
86
+
87
+ export { type AIConfig, CanvasConfig, DEFAULT_DEVICE_CONFIG, DEFAULT_SCREENSHOT_STUDIO_CONFIG, DEVICE_DIMENSIONS, type DeviceConfigOption, type ExportConfig, type ScreenshotStudioConfig };
@@ -0,0 +1,87 @@
1
+ import { m as DeviceType, a as CanvasConfig, p as ScreenshotFormat, L as Language } from '../../CanvasConfig-pzoE0RHD.js';
2
+ export { D as DEFAULT_CANVAS_CONFIG } from '../../CanvasConfig-pzoE0RHD.js';
3
+
4
+ /**
5
+ * Device Configuration
6
+ * Device frame configuration
7
+ */
8
+
9
+ /**
10
+ * Device configuration
11
+ */
12
+ interface DeviceConfigOption {
13
+ /** Available device types */
14
+ devices: DeviceType[];
15
+ /** Default device type */
16
+ defaultDevice?: DeviceType;
17
+ /** Show device frame */
18
+ showFrame?: boolean;
19
+ /** Frame color */
20
+ frameColor?: string;
21
+ /** Frame thickness in pixels */
22
+ frameThickness?: number;
23
+ }
24
+ /**
25
+ * Device dimensions presets
26
+ */
27
+ declare const DEVICE_DIMENSIONS: Record<DeviceType, {
28
+ width: number;
29
+ height: number;
30
+ }>;
31
+ /**
32
+ * Default device configuration
33
+ */
34
+ declare const DEFAULT_DEVICE_CONFIG: DeviceConfigOption;
35
+
36
+ /**
37
+ * Screenshot Studio Configuration
38
+ * Complete screenshot studio configuration
39
+ */
40
+
41
+ /**
42
+ * Export configuration
43
+ */
44
+ interface ExportConfig {
45
+ /** Include ASO metadata in export */
46
+ includeMetadata?: boolean;
47
+ /** ZIP filename template */
48
+ zipFilename?: string;
49
+ /** Folder structure */
50
+ folderStructure?: 'flat' | 'by-language' | 'by-device';
51
+ /** Default export format */
52
+ defaultFormat?: ScreenshotFormat;
53
+ }
54
+ /**
55
+ * AI configuration
56
+ */
57
+ interface AIConfig {
58
+ /** Enable AI features */
59
+ enabled?: boolean;
60
+ /** AI provider */
61
+ provider?: 'gemini' | 'openai' | 'anthropic';
62
+ /** API key (if needed) */
63
+ apiKey?: string;
64
+ }
65
+ /**
66
+ * Screenshot studio configuration
67
+ */
68
+ interface ScreenshotStudioConfig {
69
+ /** Canvas configuration */
70
+ canvas?: CanvasConfig;
71
+ /** Device configuration */
72
+ device?: DeviceConfigOption;
73
+ /** Export configuration */
74
+ export?: ExportConfig;
75
+ /** AI configuration */
76
+ ai?: AIConfig;
77
+ /** Supported languages */
78
+ languages?: Language[];
79
+ /** Default language */
80
+ defaultLanguage?: Language;
81
+ }
82
+ /**
83
+ * Default screenshot studio configuration
84
+ */
85
+ declare const DEFAULT_SCREENSHOT_STUDIO_CONFIG: ScreenshotStudioConfig;
86
+
87
+ export { type AIConfig, CanvasConfig, DEFAULT_DEVICE_CONFIG, DEFAULT_SCREENSHOT_STUDIO_CONFIG, DEVICE_DIMENSIONS, type DeviceConfigOption, type ExportConfig, type ScreenshotStudioConfig };
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/domain/config/index.ts
21
+ var config_exports = {};
22
+ __export(config_exports, {
23
+ DEFAULT_CANVAS_CONFIG: () => DEFAULT_CANVAS_CONFIG,
24
+ DEFAULT_DEVICE_CONFIG: () => DEFAULT_DEVICE_CONFIG,
25
+ DEFAULT_SCREENSHOT_STUDIO_CONFIG: () => DEFAULT_SCREENSHOT_STUDIO_CONFIG,
26
+ DEVICE_DIMENSIONS: () => DEVICE_DIMENSIONS
27
+ });
28
+ module.exports = __toCommonJS(config_exports);
29
+
30
+ // src/domain/config/CanvasConfig.ts
31
+ var DEFAULT_CANVAS_CONFIG = {
32
+ defaultFormat: "png",
33
+ defaultQuality: 0.9,
34
+ maxDimension: 4096,
35
+ scale: 2,
36
+ backgroundColor: "#ffffff",
37
+ useCORS: true
38
+ };
39
+
40
+ // src/domain/config/DeviceConfig.ts
41
+ var DEVICE_DIMENSIONS = {
42
+ "iphone-15-pro": { width: 1290, height: 2796 },
43
+ "iphone-15": { width: 1179, height: 2556 },
44
+ "iphone-se": { width: 1080, height: 2340 },
45
+ "ipad-pro": { width: 2048, height: 2732 },
46
+ "ipad": { width: 1620, height: 2160 },
47
+ "android-phone": { width: 1440, height: 3120 },
48
+ "android-tablet": { width: 2e3, height: 2200 },
49
+ "desktop": { width: 1920, height: 1080 }
50
+ };
51
+ var DEFAULT_DEVICE_CONFIG = {
52
+ devices: Object.keys(DEVICE_DIMENSIONS),
53
+ defaultDevice: "iphone-15-pro",
54
+ showFrame: true,
55
+ frameColor: "#1f2937",
56
+ frameThickness: 8
57
+ };
58
+
59
+ // src/domain/config/ScreenshotStudioConfig.ts
60
+ var DEFAULT_SCREENSHOT_STUDIO_CONFIG = {
61
+ canvas: {
62
+ defaultFormat: "png",
63
+ defaultQuality: 0.9,
64
+ scale: 2,
65
+ useCORS: true
66
+ },
67
+ device: {
68
+ devices: ["iphone-15-pro"],
69
+ defaultDevice: "iphone-15-pro",
70
+ showFrame: true,
71
+ frameColor: "#1f2937",
72
+ frameThickness: 8
73
+ },
74
+ export: {
75
+ includeMetadata: true,
76
+ folderStructure: "by-language",
77
+ defaultFormat: "png"
78
+ },
79
+ ai: {
80
+ enabled: true,
81
+ provider: "gemini"
82
+ },
83
+ languages: ["en-US", "tr-TR", "de-DE", "fr-FR", "es-ES", "ja-JP"],
84
+ defaultLanguage: "en-US"
85
+ };
86
+ // Annotate the CommonJS export names for ESM import in node:
87
+ 0 && (module.exports = {
88
+ DEFAULT_CANVAS_CONFIG,
89
+ DEFAULT_DEVICE_CONFIG,
90
+ DEFAULT_SCREENSHOT_STUDIO_CONFIG,
91
+ DEVICE_DIMENSIONS
92
+ });
@@ -0,0 +1,15 @@
1
+ import "../../chunk-TZGTTYTZ.mjs";
2
+ import {
3
+ DEFAULT_SCREENSHOT_STUDIO_CONFIG
4
+ } from "../../chunk-Z6IB4BQV.mjs";
5
+ import {
6
+ DEFAULT_CANVAS_CONFIG,
7
+ DEFAULT_DEVICE_CONFIG,
8
+ DEVICE_DIMENSIONS
9
+ } from "../../chunk-MC6PNV2F.mjs";
10
+ export {
11
+ DEFAULT_CANVAS_CONFIG,
12
+ DEFAULT_DEVICE_CONFIG,
13
+ DEFAULT_SCREENSHOT_STUDIO_CONFIG,
14
+ DEVICE_DIMENSIONS
15
+ };
@@ -0,0 +1,79 @@
1
+ export { A as AppStoreMetadata, B as BackgroundPattern, u as BackgroundPatternEnum, C as CanvasColor, a as CanvasConfig, b as CanvasContextConfig, c as CanvasDimensions, d as CanvasExportOptions, e as CanvasFormat, f as CanvasOperation, g as CanvasPosition, h as CanvasQuality, i as CanvasRect, j as CanvasResult, D as DEFAULT_CANVAS_CONFIG, k as DeviceConfig, l as DeviceDimensions, m as DeviceType, v as DeviceTypeEnum, F as FrameStyle, w as FrameStyleEnum, L as Language, n as LayoutStyle, x as LayoutStyleEnum, S as ScreenshotContent, o as ScreenshotDesign, p as ScreenshotFormat, y as ScreenshotFormatEnum, q as ScreenshotGenerationOptions, r as ScreenshotMetadata, s as ScreenshotProject, t as ScreenshotTemplate } from '../CanvasConfig-pzoE0RHD.mjs';
2
+ export { AIConfig, DEFAULT_DEVICE_CONFIG, DEFAULT_SCREENSHOT_STUDIO_CONFIG, DEVICE_DIMENSIONS, DeviceConfigOption, ExportConfig, ScreenshotStudioConfig } from './config/index.mjs';
3
+
4
+ /**
5
+ * Report Types
6
+ * PDF export and report generation types
7
+ */
8
+ /**
9
+ * Report item type
10
+ */
11
+ type ReportItemType = 'app' | 'campaign' | 'post';
12
+ /**
13
+ * Report item
14
+ */
15
+ interface ReportItem {
16
+ name: string;
17
+ type: ReportItemType;
18
+ metrics: Record<string, number | string>;
19
+ details: Record<string, string | number | boolean | null | undefined>;
20
+ }
21
+ /**
22
+ * Report summary
23
+ */
24
+ interface ReportSummary {
25
+ totalReach: number;
26
+ totalEngagement: number;
27
+ averageScore: number;
28
+ }
29
+ /**
30
+ * Report data
31
+ */
32
+ interface ReportData {
33
+ title: string;
34
+ dateRange: string;
35
+ items: ReportItem[];
36
+ summary: ReportSummary;
37
+ }
38
+ /**
39
+ * Export format
40
+ */
41
+ type ExportFormat = 'pdf' | 'excel' | 'csv';
42
+ /**
43
+ * PDF export options
44
+ */
45
+ interface PDFExportOptions {
46
+ filename?: string;
47
+ scale?: number;
48
+ useCORS?: boolean;
49
+ backgroundColor?: string;
50
+ format?: 'a4' | 'letter' | 'legal';
51
+ }
52
+ /**
53
+ * Excel export options
54
+ */
55
+ interface ExcelExportOptions {
56
+ filename?: string;
57
+ sheetName?: string;
58
+ includeSummary?: boolean;
59
+ }
60
+ /**
61
+ * CSV export options
62
+ */
63
+ interface CSVExportOptions {
64
+ filename?: string;
65
+ delimiter?: ',' | ';';
66
+ includeHeaders?: boolean;
67
+ }
68
+ /**
69
+ * Report export result
70
+ */
71
+ interface ReportExportResult {
72
+ format: ExportFormat;
73
+ filename: string;
74
+ size: number;
75
+ url: string;
76
+ timestamp: Date;
77
+ }
78
+
79
+ export type { CSVExportOptions, ExcelExportOptions, ExportFormat, PDFExportOptions, ReportData, ReportExportResult, ReportItem, ReportItemType, ReportSummary };
@@ -0,0 +1,79 @@
1
+ export { A as AppStoreMetadata, B as BackgroundPattern, u as BackgroundPatternEnum, C as CanvasColor, a as CanvasConfig, b as CanvasContextConfig, c as CanvasDimensions, d as CanvasExportOptions, e as CanvasFormat, f as CanvasOperation, g as CanvasPosition, h as CanvasQuality, i as CanvasRect, j as CanvasResult, D as DEFAULT_CANVAS_CONFIG, k as DeviceConfig, l as DeviceDimensions, m as DeviceType, v as DeviceTypeEnum, F as FrameStyle, w as FrameStyleEnum, L as Language, n as LayoutStyle, x as LayoutStyleEnum, S as ScreenshotContent, o as ScreenshotDesign, p as ScreenshotFormat, y as ScreenshotFormatEnum, q as ScreenshotGenerationOptions, r as ScreenshotMetadata, s as ScreenshotProject, t as ScreenshotTemplate } from '../CanvasConfig-pzoE0RHD.js';
2
+ export { AIConfig, DEFAULT_DEVICE_CONFIG, DEFAULT_SCREENSHOT_STUDIO_CONFIG, DEVICE_DIMENSIONS, DeviceConfigOption, ExportConfig, ScreenshotStudioConfig } from './config/index.js';
3
+
4
+ /**
5
+ * Report Types
6
+ * PDF export and report generation types
7
+ */
8
+ /**
9
+ * Report item type
10
+ */
11
+ type ReportItemType = 'app' | 'campaign' | 'post';
12
+ /**
13
+ * Report item
14
+ */
15
+ interface ReportItem {
16
+ name: string;
17
+ type: ReportItemType;
18
+ metrics: Record<string, number | string>;
19
+ details: Record<string, string | number | boolean | null | undefined>;
20
+ }
21
+ /**
22
+ * Report summary
23
+ */
24
+ interface ReportSummary {
25
+ totalReach: number;
26
+ totalEngagement: number;
27
+ averageScore: number;
28
+ }
29
+ /**
30
+ * Report data
31
+ */
32
+ interface ReportData {
33
+ title: string;
34
+ dateRange: string;
35
+ items: ReportItem[];
36
+ summary: ReportSummary;
37
+ }
38
+ /**
39
+ * Export format
40
+ */
41
+ type ExportFormat = 'pdf' | 'excel' | 'csv';
42
+ /**
43
+ * PDF export options
44
+ */
45
+ interface PDFExportOptions {
46
+ filename?: string;
47
+ scale?: number;
48
+ useCORS?: boolean;
49
+ backgroundColor?: string;
50
+ format?: 'a4' | 'letter' | 'legal';
51
+ }
52
+ /**
53
+ * Excel export options
54
+ */
55
+ interface ExcelExportOptions {
56
+ filename?: string;
57
+ sheetName?: string;
58
+ includeSummary?: boolean;
59
+ }
60
+ /**
61
+ * CSV export options
62
+ */
63
+ interface CSVExportOptions {
64
+ filename?: string;
65
+ delimiter?: ',' | ';';
66
+ includeHeaders?: boolean;
67
+ }
68
+ /**
69
+ * Report export result
70
+ */
71
+ interface ReportExportResult {
72
+ format: ExportFormat;
73
+ filename: string;
74
+ size: number;
75
+ url: string;
76
+ timestamp: Date;
77
+ }
78
+
79
+ export type { CSVExportOptions, ExcelExportOptions, ExportFormat, PDFExportOptions, ReportData, ReportExportResult, ReportItem, ReportItemType, ReportSummary };
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/domain/index.ts
21
+ var domain_exports = {};
22
+ __export(domain_exports, {
23
+ BackgroundPatternEnum: () => BackgroundPatternEnum,
24
+ DEFAULT_CANVAS_CONFIG: () => DEFAULT_CANVAS_CONFIG,
25
+ DEFAULT_DEVICE_CONFIG: () => DEFAULT_DEVICE_CONFIG,
26
+ DEFAULT_SCREENSHOT_STUDIO_CONFIG: () => DEFAULT_SCREENSHOT_STUDIO_CONFIG,
27
+ DEVICE_DIMENSIONS: () => DEVICE_DIMENSIONS,
28
+ DeviceTypeEnum: () => DeviceTypeEnum,
29
+ FrameStyleEnum: () => FrameStyleEnum,
30
+ LayoutStyleEnum: () => LayoutStyleEnum,
31
+ ScreenshotFormatEnum: () => ScreenshotFormatEnum
32
+ });
33
+ module.exports = __toCommonJS(domain_exports);
34
+
35
+ // src/domain/types/screenshot.types.ts
36
+ var DeviceTypeEnum = {
37
+ IPHONE_15_PRO: "iphone-15-pro",
38
+ IPHONE_15: "iphone-15",
39
+ IPHONE_SE: "iphone-se",
40
+ IPAD_PRO: "ipad-pro",
41
+ IPAD: "ipad",
42
+ ANDROID_PHONE: "android-phone",
43
+ ANDROID_TABLET: "android-tablet",
44
+ DESKTOP: "desktop"
45
+ };
46
+ var FrameStyleEnum = {
47
+ REALISTIC: "realistic",
48
+ MINIMAL: "minimal",
49
+ NONE: "none"
50
+ };
51
+ var LayoutStyleEnum = {
52
+ TEXT_TOP: "text-top",
53
+ TEXT_BOTTOM: "text-bottom",
54
+ TEXT_OVERLAY: "text-overlay"
55
+ };
56
+ var BackgroundPatternEnum = {
57
+ NONE: "none",
58
+ DOTS: "dots",
59
+ GRID: "grid",
60
+ LINES: "lines",
61
+ WAVES: "waves",
62
+ CHECKERS: "checkers"
63
+ };
64
+ var ScreenshotFormatEnum = {
65
+ PNG: "png",
66
+ JPEG: "jpeg",
67
+ WEBP: "webp"
68
+ };
69
+
70
+ // src/domain/config/CanvasConfig.ts
71
+ var DEFAULT_CANVAS_CONFIG = {
72
+ defaultFormat: "png",
73
+ defaultQuality: 0.9,
74
+ maxDimension: 4096,
75
+ scale: 2,
76
+ backgroundColor: "#ffffff",
77
+ useCORS: true
78
+ };
79
+
80
+ // src/domain/config/DeviceConfig.ts
81
+ var DEVICE_DIMENSIONS = {
82
+ "iphone-15-pro": { width: 1290, height: 2796 },
83
+ "iphone-15": { width: 1179, height: 2556 },
84
+ "iphone-se": { width: 1080, height: 2340 },
85
+ "ipad-pro": { width: 2048, height: 2732 },
86
+ "ipad": { width: 1620, height: 2160 },
87
+ "android-phone": { width: 1440, height: 3120 },
88
+ "android-tablet": { width: 2e3, height: 2200 },
89
+ "desktop": { width: 1920, height: 1080 }
90
+ };
91
+ var DEFAULT_DEVICE_CONFIG = {
92
+ devices: Object.keys(DEVICE_DIMENSIONS),
93
+ defaultDevice: "iphone-15-pro",
94
+ showFrame: true,
95
+ frameColor: "#1f2937",
96
+ frameThickness: 8
97
+ };
98
+
99
+ // src/domain/config/ScreenshotStudioConfig.ts
100
+ var DEFAULT_SCREENSHOT_STUDIO_CONFIG = {
101
+ canvas: {
102
+ defaultFormat: "png",
103
+ defaultQuality: 0.9,
104
+ scale: 2,
105
+ useCORS: true
106
+ },
107
+ device: {
108
+ devices: ["iphone-15-pro"],
109
+ defaultDevice: "iphone-15-pro",
110
+ showFrame: true,
111
+ frameColor: "#1f2937",
112
+ frameThickness: 8
113
+ },
114
+ export: {
115
+ includeMetadata: true,
116
+ folderStructure: "by-language",
117
+ defaultFormat: "png"
118
+ },
119
+ ai: {
120
+ enabled: true,
121
+ provider: "gemini"
122
+ },
123
+ languages: ["en-US", "tr-TR", "de-DE", "fr-FR", "es-ES", "ja-JP"],
124
+ defaultLanguage: "en-US"
125
+ };
126
+ // Annotate the CommonJS export names for ESM import in node:
127
+ 0 && (module.exports = {
128
+ BackgroundPatternEnum,
129
+ DEFAULT_CANVAS_CONFIG,
130
+ DEFAULT_DEVICE_CONFIG,
131
+ DEFAULT_SCREENSHOT_STUDIO_CONFIG,
132
+ DEVICE_DIMENSIONS,
133
+ DeviceTypeEnum,
134
+ FrameStyleEnum,
135
+ LayoutStyleEnum,
136
+ ScreenshotFormatEnum
137
+ });
@@ -0,0 +1,55 @@
1
+ import "../chunk-TZGTTYTZ.mjs";
2
+ import {
3
+ DEFAULT_SCREENSHOT_STUDIO_CONFIG
4
+ } from "../chunk-Z6IB4BQV.mjs";
5
+ import {
6
+ DEFAULT_CANVAS_CONFIG,
7
+ DEFAULT_DEVICE_CONFIG,
8
+ DEVICE_DIMENSIONS
9
+ } from "../chunk-MC6PNV2F.mjs";
10
+
11
+ // src/domain/types/screenshot.types.ts
12
+ var DeviceTypeEnum = {
13
+ IPHONE_15_PRO: "iphone-15-pro",
14
+ IPHONE_15: "iphone-15",
15
+ IPHONE_SE: "iphone-se",
16
+ IPAD_PRO: "ipad-pro",
17
+ IPAD: "ipad",
18
+ ANDROID_PHONE: "android-phone",
19
+ ANDROID_TABLET: "android-tablet",
20
+ DESKTOP: "desktop"
21
+ };
22
+ var FrameStyleEnum = {
23
+ REALISTIC: "realistic",
24
+ MINIMAL: "minimal",
25
+ NONE: "none"
26
+ };
27
+ var LayoutStyleEnum = {
28
+ TEXT_TOP: "text-top",
29
+ TEXT_BOTTOM: "text-bottom",
30
+ TEXT_OVERLAY: "text-overlay"
31
+ };
32
+ var BackgroundPatternEnum = {
33
+ NONE: "none",
34
+ DOTS: "dots",
35
+ GRID: "grid",
36
+ LINES: "lines",
37
+ WAVES: "waves",
38
+ CHECKERS: "checkers"
39
+ };
40
+ var ScreenshotFormatEnum = {
41
+ PNG: "png",
42
+ JPEG: "jpeg",
43
+ WEBP: "webp"
44
+ };
45
+ export {
46
+ BackgroundPatternEnum,
47
+ DEFAULT_CANVAS_CONFIG,
48
+ DEFAULT_DEVICE_CONFIG,
49
+ DEFAULT_SCREENSHOT_STUDIO_CONFIG,
50
+ DEVICE_DIMENSIONS,
51
+ DeviceTypeEnum,
52
+ FrameStyleEnum,
53
+ LayoutStyleEnum,
54
+ ScreenshotFormatEnum
55
+ };
@@ -0,0 +1,6 @@
1
+ export { A as AppStoreMetadata, B as BackgroundPattern, C as CanvasColor, a as CanvasConfig, b as CanvasContextConfig, c as CanvasDimensions, d as CanvasExportOptions, e as CanvasFormat, f as CanvasOperation, g as CanvasPosition, h as CanvasQuality, i as CanvasRect, j as CanvasResult, D as DEFAULT_CANVAS_CONFIG, k as DeviceConfig, l as DeviceDimensions, m as DeviceType, F as FrameStyle, L as Language, n as LayoutStyle, S as ScreenshotContent, o as ScreenshotDesign, p as ScreenshotFormat, q as ScreenshotGenerationOptions, r as ScreenshotMetadata, s as ScreenshotProject, t as ScreenshotTemplate } from './CanvasConfig-pzoE0RHD.mjs';
2
+ export { CSVExportOptions, ExcelExportOptions, ExportFormat, PDFExportOptions, ReportData, ReportExportResult, ReportItem, ReportItemType, ReportSummary } from './domain/index.mjs';
3
+ export { AIConfig, DEFAULT_DEVICE_CONFIG, DEFAULT_SCREENSHOT_STUDIO_CONFIG, DEVICE_DIMENSIONS, DeviceConfigOption, ExportConfig, ScreenshotStudioConfig } from './domain/config/index.mjs';
4
+ export { CanvasRenderer, DeviceConfigService, PatternRenderer, ScreenshotRenderer } from './infrastructure/index.mjs';
5
+ export { ReportService, ScreenshotStudioService } from './application/index.mjs';
6
+ export { UseCanvasExportOptions, UseCanvasExportReturn, UseReportExportReturn, UseScreenshotStudioOptions, UseScreenshotStudioReturn, useCanvasExport, useReportExport, useScreenshotStudio } from './presentation/index.mjs';
@@ -0,0 +1,6 @@
1
+ export { A as AppStoreMetadata, B as BackgroundPattern, C as CanvasColor, a as CanvasConfig, b as CanvasContextConfig, c as CanvasDimensions, d as CanvasExportOptions, e as CanvasFormat, f as CanvasOperation, g as CanvasPosition, h as CanvasQuality, i as CanvasRect, j as CanvasResult, D as DEFAULT_CANVAS_CONFIG, k as DeviceConfig, l as DeviceDimensions, m as DeviceType, F as FrameStyle, L as Language, n as LayoutStyle, S as ScreenshotContent, o as ScreenshotDesign, p as ScreenshotFormat, q as ScreenshotGenerationOptions, r as ScreenshotMetadata, s as ScreenshotProject, t as ScreenshotTemplate } from './CanvasConfig-pzoE0RHD.js';
2
+ export { CSVExportOptions, ExcelExportOptions, ExportFormat, PDFExportOptions, ReportData, ReportExportResult, ReportItem, ReportItemType, ReportSummary } from './domain/index.js';
3
+ export { AIConfig, DEFAULT_DEVICE_CONFIG, DEFAULT_SCREENSHOT_STUDIO_CONFIG, DEVICE_DIMENSIONS, DeviceConfigOption, ExportConfig, ScreenshotStudioConfig } from './domain/config/index.js';
4
+ export { CanvasRenderer, DeviceConfigService, PatternRenderer, ScreenshotRenderer } from './infrastructure/index.js';
5
+ export { ReportService, ScreenshotStudioService } from './application/index.js';
6
+ export { UseCanvasExportOptions, UseCanvasExportReturn, UseReportExportReturn, UseScreenshotStudioOptions, UseScreenshotStudioReturn, useCanvasExport, useReportExport, useScreenshotStudio } from './presentation/index.js';