@lolyjs/core 0.3.0-alpha.4 → 0.3.0-alpha.6

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.mts CHANGED
@@ -46,6 +46,32 @@ interface FrameworkConfig {
46
46
  ssg: boolean;
47
47
  };
48
48
  plugins?: any[];
49
+ images?: ImageConfig;
50
+ }
51
+ /**
52
+ * Remote pattern for image domain whitelisting.
53
+ */
54
+ interface RemotePattern {
55
+ protocol?: 'http' | 'https';
56
+ hostname: string;
57
+ port?: string;
58
+ pathname?: string;
59
+ }
60
+ /**
61
+ * Image optimization configuration.
62
+ */
63
+ interface ImageConfig {
64
+ remotePatterns?: RemotePattern[];
65
+ domains?: string[];
66
+ deviceSizes?: number[];
67
+ imageSizes?: number[];
68
+ formats?: ('image/webp' | 'image/avif')[];
69
+ quality?: number;
70
+ minimumCacheTTL?: number;
71
+ dangerouslyAllowSVG?: boolean;
72
+ contentSecurityPolicy?: string;
73
+ maxWidth?: number;
74
+ maxHeight?: number;
49
75
  }
50
76
  /**
51
77
  * Default framework configuration.
package/dist/index.d.ts CHANGED
@@ -46,6 +46,32 @@ interface FrameworkConfig {
46
46
  ssg: boolean;
47
47
  };
48
48
  plugins?: any[];
49
+ images?: ImageConfig;
50
+ }
51
+ /**
52
+ * Remote pattern for image domain whitelisting.
53
+ */
54
+ interface RemotePattern {
55
+ protocol?: 'http' | 'https';
56
+ hostname: string;
57
+ port?: string;
58
+ pathname?: string;
59
+ }
60
+ /**
61
+ * Image optimization configuration.
62
+ */
63
+ interface ImageConfig {
64
+ remotePatterns?: RemotePattern[];
65
+ domains?: string[];
66
+ deviceSizes?: number[];
67
+ imageSizes?: number[];
68
+ formats?: ('image/webp' | 'image/avif')[];
69
+ quality?: number;
70
+ minimumCacheTTL?: number;
71
+ dangerouslyAllowSVG?: boolean;
72
+ contentSecurityPolicy?: string;
73
+ maxWidth?: number;
74
+ maxHeight?: number;
49
75
  }
50
76
  /**
51
77
  * Default framework configuration.