@pyreon/zero 0.12.1 → 0.12.3

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 (140) hide show
  1. package/lib/actions.js +97 -0
  2. package/lib/actions.js.map +1 -0
  3. package/lib/ai.js +503 -0
  4. package/lib/ai.js.map +1 -0
  5. package/lib/api-routes.js +137 -0
  6. package/lib/api-routes.js.map +1 -0
  7. package/lib/compression.js +80 -0
  8. package/lib/compression.js.map +1 -0
  9. package/lib/cors.js +57 -0
  10. package/lib/cors.js.map +1 -0
  11. package/lib/csp.js +119 -0
  12. package/lib/csp.js.map +1 -0
  13. package/lib/env.js +217 -0
  14. package/lib/env.js.map +1 -0
  15. package/lib/favicon.js +424 -0
  16. package/lib/favicon.js.map +1 -0
  17. package/lib/i18n-routing.js +167 -0
  18. package/lib/i18n-routing.js.map +1 -0
  19. package/lib/index.js +1631 -179
  20. package/lib/index.js.map +1 -1
  21. package/lib/link.js +5 -0
  22. package/lib/link.js.map +1 -1
  23. package/lib/logger.js +78 -0
  24. package/lib/logger.js.map +1 -0
  25. package/lib/meta.js +336 -0
  26. package/lib/meta.js.map +1 -0
  27. package/lib/middleware.js +53 -0
  28. package/lib/middleware.js.map +1 -0
  29. package/lib/og-image.js +233 -0
  30. package/lib/og-image.js.map +1 -0
  31. package/lib/rate-limit.js +76 -0
  32. package/lib/rate-limit.js.map +1 -0
  33. package/lib/testing.js +179 -0
  34. package/lib/testing.js.map +1 -0
  35. package/lib/theme.js +11 -2
  36. package/lib/theme.js.map +1 -1
  37. package/lib/types/actions.d.ts +27 -24
  38. package/lib/types/actions.d.ts.map +1 -1
  39. package/lib/types/ai.d.ts +163 -0
  40. package/lib/types/ai.d.ts.map +1 -0
  41. package/lib/types/api-routes.d.ts +37 -33
  42. package/lib/types/api-routes.d.ts.map +1 -1
  43. package/lib/types/cache.d.ts +26 -22
  44. package/lib/types/cache.d.ts.map +1 -1
  45. package/lib/types/client.d.ts +13 -9
  46. package/lib/types/client.d.ts.map +1 -1
  47. package/lib/types/compression.d.ts +14 -10
  48. package/lib/types/compression.d.ts.map +1 -1
  49. package/lib/types/config.d.ts +39 -4
  50. package/lib/types/config.d.ts.map +1 -1
  51. package/lib/types/cors.d.ts +20 -16
  52. package/lib/types/cors.d.ts.map +1 -1
  53. package/lib/types/csp.d.ts +88 -0
  54. package/lib/types/csp.d.ts.map +1 -0
  55. package/lib/types/env.d.ts +118 -0
  56. package/lib/types/env.d.ts.map +1 -0
  57. package/lib/types/favicon.d.ts +70 -24
  58. package/lib/types/favicon.d.ts.map +1 -1
  59. package/lib/types/font.d.ts +68 -65
  60. package/lib/types/font.d.ts.map +1 -1
  61. package/lib/types/i18n-routing.d.ts +43 -37
  62. package/lib/types/i18n-routing.d.ts.map +1 -1
  63. package/lib/types/image-plugin.d.ts +49 -45
  64. package/lib/types/image-plugin.d.ts.map +1 -1
  65. package/lib/types/image.d.ts +47 -36
  66. package/lib/types/image.d.ts.map +1 -1
  67. package/lib/types/index.d.ts +1961 -46
  68. package/lib/types/index.d.ts.map +1 -1
  69. package/lib/types/link.d.ts +61 -56
  70. package/lib/types/link.d.ts.map +1 -1
  71. package/lib/types/logger.d.ts +57 -0
  72. package/lib/types/logger.d.ts.map +1 -0
  73. package/lib/types/meta.d.ts +180 -69
  74. package/lib/types/meta.d.ts.map +1 -1
  75. package/lib/types/middleware.d.ts +8 -4
  76. package/lib/types/middleware.d.ts.map +1 -1
  77. package/lib/types/og-image.d.ts +111 -0
  78. package/lib/types/og-image.d.ts.map +1 -0
  79. package/lib/types/rate-limit.d.ts +20 -16
  80. package/lib/types/rate-limit.d.ts.map +1 -1
  81. package/lib/types/script.d.ts +23 -19
  82. package/lib/types/script.d.ts.map +1 -1
  83. package/lib/types/seo.d.ts +47 -43
  84. package/lib/types/seo.d.ts.map +1 -1
  85. package/lib/types/testing.d.ts +64 -27
  86. package/lib/types/testing.d.ts.map +1 -1
  87. package/lib/types/theme.d.ts +22 -12
  88. package/lib/types/theme.d.ts.map +1 -1
  89. package/package.json +37 -12
  90. package/src/actions.ts +1 -3
  91. package/src/adapters/bun.ts +2 -0
  92. package/src/adapters/cloudflare.ts +84 -0
  93. package/src/adapters/index.ts +13 -1
  94. package/src/adapters/netlify.ts +86 -0
  95. package/src/adapters/node.ts +2 -0
  96. package/src/adapters/validate.ts +16 -0
  97. package/src/adapters/vercel.ts +86 -0
  98. package/src/ai.ts +623 -0
  99. package/src/compression.ts +19 -3
  100. package/src/csp.ts +207 -0
  101. package/src/entry-server.ts +28 -5
  102. package/src/env.ts +344 -0
  103. package/src/favicon.ts +221 -80
  104. package/src/index.ts +42 -2
  105. package/src/link.tsx +6 -0
  106. package/src/logger.ts +144 -0
  107. package/src/meta.tsx +124 -14
  108. package/src/og-image.ts +378 -0
  109. package/src/rate-limit.ts +11 -9
  110. package/src/theme.tsx +12 -1
  111. package/src/types.ts +1 -1
  112. package/src/vite-plugin.ts +5 -1
  113. package/lib/types/adapters/bun.d.ts +0 -6
  114. package/lib/types/adapters/bun.d.ts.map +0 -1
  115. package/lib/types/adapters/index.d.ts +0 -10
  116. package/lib/types/adapters/index.d.ts.map +0 -1
  117. package/lib/types/adapters/node.d.ts +0 -6
  118. package/lib/types/adapters/node.d.ts.map +0 -1
  119. package/lib/types/adapters/static.d.ts +0 -7
  120. package/lib/types/adapters/static.d.ts.map +0 -1
  121. package/lib/types/app.d.ts +0 -24
  122. package/lib/types/app.d.ts.map +0 -1
  123. package/lib/types/entry-server.d.ts +0 -37
  124. package/lib/types/entry-server.d.ts.map +0 -1
  125. package/lib/types/error-overlay.d.ts +0 -6
  126. package/lib/types/error-overlay.d.ts.map +0 -1
  127. package/lib/types/fs-router.d.ts +0 -47
  128. package/lib/types/fs-router.d.ts.map +0 -1
  129. package/lib/types/isr.d.ts +0 -9
  130. package/lib/types/isr.d.ts.map +0 -1
  131. package/lib/types/not-found.d.ts +0 -7
  132. package/lib/types/not-found.d.ts.map +0 -1
  133. package/lib/types/types.d.ts +0 -111
  134. package/lib/types/types.d.ts.map +0 -1
  135. package/lib/types/utils/use-intersection-observer.d.ts +0 -10
  136. package/lib/types/utils/use-intersection-observer.d.ts.map +0 -1
  137. package/lib/types/utils/with-headers.d.ts +0 -6
  138. package/lib/types/utils/with-headers.d.ts.map +0 -1
  139. package/lib/types/vite-plugin.d.ts +0 -17
  140. package/lib/types/vite-plugin.d.ts.map +0 -1
@@ -1,81 +1,83 @@
1
- import type { Plugin } from 'vite';
2
- export interface FontConfig {
3
- /**
4
- * Google Fonts families.
5
- *
6
- * Accepts both string shorthand and structured objects:
7
- * - String: "Inter:wght@400;500;700" or "Inter:wght@100..900"
8
- * - Object: { family: "Inter", weights: [400, 500, 700] }
9
- * - Variable: { family: "Inter", variable: true, weightRange: [100, 900] }
10
- */
11
- google?: GoogleFontInput[];
12
- /** Local font files. */
13
- local?: LocalFont[];
14
- /** Default font-display strategy. Default: "swap" */
15
- display?: FontDisplay;
16
- /** Preload critical fonts. Default: true */
17
- preload?: boolean;
18
- /** Self-host Google Fonts at build time. Default: true */
19
- selfHost?: boolean;
20
- /** Fallback font metrics for reducing CLS. */
21
- fallbacks?: Record<string, FallbackMetrics>;
1
+ import { Plugin } from "vite";
2
+
3
+ //#region src/font.d.ts
4
+ interface FontConfig {
5
+ /**
6
+ * Google Fonts families.
7
+ *
8
+ * Accepts both string shorthand and structured objects:
9
+ * - String: "Inter:wght@400;500;700" or "Inter:wght@100..900"
10
+ * - Object: { family: "Inter", weights: [400, 500, 700] }
11
+ * - Variable: { family: "Inter", variable: true, weightRange: [100, 900] }
12
+ */
13
+ google?: GoogleFontInput[];
14
+ /** Local font files. */
15
+ local?: LocalFont[];
16
+ /** Default font-display strategy. Default: "swap" */
17
+ display?: FontDisplay;
18
+ /** Preload critical fonts. Default: true */
19
+ preload?: boolean;
20
+ /** Self-host Google Fonts at build time. Default: true */
21
+ selfHost?: boolean;
22
+ /** Fallback font metrics for reducing CLS. */
23
+ fallbacks?: Record<string, FallbackMetrics>;
22
24
  }
23
25
  /** Static Google Font config. */
24
- export interface GoogleFontStatic {
25
- family: string;
26
- weights: number[];
27
- italic?: boolean;
28
- variable?: false;
26
+ interface GoogleFontStatic {
27
+ family: string;
28
+ weights: number[];
29
+ italic?: boolean;
30
+ variable?: false;
29
31
  }
30
32
  /** Variable Google Font config. */
31
- export interface GoogleFontVariable {
32
- family: string;
33
- /** Weight range as [min, max] tuple. e.g. [100, 900] */
34
- weightRange: [number, number];
35
- italic?: boolean;
36
- variable: true;
33
+ interface GoogleFontVariable {
34
+ family: string;
35
+ /** Weight range as [min, max] tuple. e.g. [100, 900] */
36
+ weightRange: [number, number];
37
+ italic?: boolean;
38
+ variable: true;
37
39
  }
38
40
  /** Google font input: structured object or string shorthand. */
39
- export type GoogleFontInput = GoogleFontStatic | GoogleFontVariable | string;
40
- export interface LocalFont {
41
- family: string;
42
- src: string;
43
- /** Single weight (400) or variable range ("100 900"). */
44
- weight?: number | `${number} ${number}`;
45
- style?: 'normal' | 'italic';
46
- display?: FontDisplay;
41
+ type GoogleFontInput = GoogleFontStatic | GoogleFontVariable | string;
42
+ interface LocalFont {
43
+ family: string;
44
+ src: string;
45
+ /** Single weight (400) or variable range ("100 900"). */
46
+ weight?: number | `${number} ${number}`;
47
+ style?: 'normal' | 'italic';
48
+ display?: FontDisplay;
47
49
  }
48
- export type FontDisplay = 'auto' | 'block' | 'swap' | 'fallback' | 'optional';
50
+ type FontDisplay = 'auto' | 'block' | 'swap' | 'fallback' | 'optional';
49
51
  /** Metrics for generating size-adjusted fallback fonts to reduce CLS. */
50
- export interface FallbackMetrics {
51
- /** The fallback font to adjust. e.g. "Arial", "Georgia" */
52
- fallback: string;
53
- /** Size adjustment factor. e.g. 1.05 */
54
- sizeAdjust?: number;
55
- /** Ascent override percentage. e.g. 90 */
56
- ascentOverride?: number;
57
- /** Descent override percentage. e.g. 22 */
58
- descentOverride?: number;
59
- /** Line gap override percentage. e.g. 0 */
60
- lineGapOverride?: number;
52
+ interface FallbackMetrics {
53
+ /** The fallback font to adjust. e.g. "Arial", "Georgia" */
54
+ fallback: string;
55
+ /** Size adjustment factor. e.g. 1.05 */
56
+ sizeAdjust?: number;
57
+ /** Ascent override percentage. e.g. 90 */
58
+ ascentOverride?: number;
59
+ /** Descent override percentage. e.g. 22 */
60
+ descentOverride?: number;
61
+ /** Line gap override percentage. e.g. 0 */
62
+ lineGapOverride?: number;
61
63
  }
62
64
  interface ResolvedFontBase {
63
- family: string;
64
- italic: boolean;
65
+ family: string;
66
+ italic: boolean;
65
67
  }
66
68
  interface StaticFont extends ResolvedFontBase {
67
- variable: false;
68
- weights: number[];
69
+ variable: false;
70
+ weights: number[];
69
71
  }
70
72
  interface VariableFont extends ResolvedFontBase {
71
- variable: true;
72
- weightRange: [number, number];
73
+ variable: true;
74
+ weightRange: [number, number];
73
75
  }
74
76
  type ResolvedFont = StaticFont | VariableFont;
75
77
  /**
76
78
  * Normalize a GoogleFontInput (string or object) into a ResolvedFont.
77
79
  */
78
- export declare function resolveGoogleFont(input: GoogleFontInput): ResolvedFont;
80
+ declare function resolveGoogleFont(input: GoogleFontInput): ResolvedFont;
79
81
  /**
80
82
  * Parse Google Fonts family string shorthand.
81
83
  *
@@ -83,11 +85,11 @@ export declare function resolveGoogleFont(input: GoogleFontInput): ResolvedFont;
83
85
  * Variable range: "Inter:wght@100..900"
84
86
  * Variable with italic: "Inter:ital,wght@100..900"
85
87
  */
86
- export declare function parseGoogleFamily(input: string): ResolvedFont;
88
+ declare function parseGoogleFamily(input: string): ResolvedFont;
87
89
  /**
88
90
  * Generate a Google Fonts CSS URL.
89
91
  */
90
- export declare function googleFontsUrl(families: ResolvedFont[], display?: FontDisplay): string;
92
+ declare function googleFontsUrl(families: ResolvedFont[], display?: FontDisplay): string;
91
93
  /**
92
94
  * Zero font optimization Vite plugin.
93
95
  *
@@ -110,10 +112,11 @@ export declare function googleFontsUrl(families: ResolvedFont[], display?: FontD
110
112
  * ],
111
113
  * }
112
114
  */
113
- export declare function fontPlugin(config?: FontConfig): Plugin;
115
+ declare function fontPlugin(config?: FontConfig): Plugin;
114
116
  /**
115
117
  * Generate CSS variables for font families.
116
118
  */
117
- export declare function fontVariables(families: Record<string, string>): string;
118
- export {};
119
- //# sourceMappingURL=font.d.ts.map
119
+ declare function fontVariables(families: Record<string, string>): string;
120
+ //#endregion
121
+ export { FallbackMetrics, FontConfig, FontDisplay, GoogleFontInput, GoogleFontStatic, GoogleFontVariable, LocalFont, fontPlugin, fontVariables, googleFontsUrl, parseGoogleFamily, resolveGoogleFont };
122
+ //# sourceMappingURL=font2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../src/font.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAYlC,MAAM,WAAW,UAAU;IACzB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,eAAe,EAAE,CAAA;IAC1B,wBAAwB;IACxB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAA;IACnB,qDAAqD;IACrD,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;CAC5C;AAED,iCAAiC;AACjC,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB;AAED,mCAAmC;AACnC,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,wDAAwD;IACxD,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7B,MAAM,CAA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QAAA;EACA,WAAA;AAAA;AAAA,KAGG,YAAA,GAAe,UAAA,GAAa,YAAA;;;;iBAKjB,iBAAA,CAAkB,KAAA,EAAO,eAAA,GAAkB,YAAA;;AAtB1D;;;;;AAIO;iBA+CQ,iBAAA,CAAkB,KAAA,WAAgB,YAAA;;;;iBA8DlC,cAAA,CAAe,QAAA,EAAU,YAAA,IAAgB,OAAA,GAAS,WAAA;;;;AAxGzD;;;;;;;;;AAKI;;;;;AAQb;;;;;iBAoSgB,UAAA,CAAW,MAAA,GAAQ,UAAA,GAAkB,MAAA;;;;iBAgHrC,aAAA,CAAc,QAAA,EAAU,MAAA"}
@@ -1,51 +1,55 @@
1
- import type { Plugin } from 'vite';
2
- export interface I18nRoutingConfig {
3
- /** Supported locales. e.g. ["en", "de", "cs"] */
4
- locales: string[];
5
- /** Default locale — served without prefix (/ instead of /en/). */
6
- defaultLocale: string;
7
- /** Redirect root to detected locale. Default: true */
8
- detectLocale?: boolean;
9
- /** Cookie name to persist locale preference. Default: "locale" */
10
- cookieName?: string;
11
- /** URL strategy. Default: "prefix-except-default" */
12
- strategy?: 'prefix' | 'prefix-except-default';
1
+ import * as _pyreon_core0 from "@pyreon/core";
2
+ import * as _pyreon_reactivity0 from "@pyreon/reactivity";
3
+ import { Plugin } from "vite";
4
+
5
+ //#region src/i18n-routing.d.ts
6
+ interface I18nRoutingConfig {
7
+ /** Supported locales. e.g. ["en", "de", "cs"] */
8
+ locales: string[];
9
+ /** Default locale served without prefix (/ instead of /en/). */
10
+ defaultLocale: string;
11
+ /** Redirect root to detected locale. Default: true */
12
+ detectLocale?: boolean;
13
+ /** Cookie name to persist locale preference. Default: "locale" */
14
+ cookieName?: string;
15
+ /** URL strategy. Default: "prefix-except-default" */
16
+ strategy?: 'prefix' | 'prefix-except-default';
13
17
  }
14
- export interface LocaleContext {
15
- /** Current locale code. e.g. "en", "de" */
18
+ interface LocaleContext {
19
+ /** Current locale code. e.g. "en", "de" */
20
+ locale: string;
21
+ /** All supported locales. */
22
+ locales: string[];
23
+ /** Default locale. */
24
+ defaultLocale: string;
25
+ /** Build a localized path. e.g. localePath("/about", "de") → "/de/about" */
26
+ localePath: (path: string, locale?: string) => string;
27
+ /** Get hreflang alternates for the current path. */
28
+ alternates: () => Array<{
16
29
  locale: string;
17
- /** All supported locales. */
18
- locales: string[];
19
- /** Default locale. */
20
- defaultLocale: string;
21
- /** Build a localized path. e.g. localePath("/about", "de") → "/de/about" */
22
- localePath: (path: string, locale?: string) => string;
23
- /** Get hreflang alternates for the current path. */
24
- alternates: () => Array<{
25
- locale: string;
26
- url: string;
27
- }>;
30
+ url: string;
31
+ }>;
28
32
  }
29
33
  /**
30
34
  * Detect preferred locale from Accept-Language header.
31
35
  */
32
- export declare function detectLocaleFromHeader(acceptLanguage: string | null | undefined, locales: string[], defaultLocale: string): string;
36
+ declare function detectLocaleFromHeader(acceptLanguage: string | null | undefined, locales: string[], defaultLocale: string): string;
33
37
  /**
34
38
  * Extract locale from a URL path.
35
39
  * Returns { locale, pathWithoutLocale }.
36
40
  */
37
- export declare function extractLocaleFromPath(path: string, locales: string[], defaultLocale: string): {
38
- locale: string;
39
- pathWithoutLocale: string;
41
+ declare function extractLocaleFromPath(path: string, locales: string[], defaultLocale: string): {
42
+ locale: string;
43
+ pathWithoutLocale: string;
40
44
  };
41
45
  /**
42
46
  * Build a localized path.
43
47
  */
44
- export declare function buildLocalePath(path: string, locale: string, defaultLocale: string, strategy: 'prefix' | 'prefix-except-default'): string;
48
+ declare function buildLocalePath(path: string, locale: string, defaultLocale: string, strategy: 'prefix' | 'prefix-except-default'): string;
45
49
  /**
46
50
  * Create a LocaleContext for use in components and loaders.
47
51
  */
48
- export declare function createLocaleContext(locale: string, path: string, config: I18nRoutingConfig): LocaleContext;
52
+ declare function createLocaleContext(locale: string, path: string, config: I18nRoutingConfig): LocaleContext;
49
53
  /**
50
54
  * I18n routing middleware for Zero's server.
51
55
  *
@@ -68,11 +72,11 @@ export declare function createLocaleContext(locale: string, path: string, config
68
72
  * })
69
73
  * ```
70
74
  */
71
- export declare function i18nRouting(config: I18nRoutingConfig): Plugin;
75
+ declare function i18nRouting(config: I18nRoutingConfig): Plugin;
72
76
  /** @internal Context for the current locale. */
73
- export declare const LocaleCtx: import("@pyreon/core").Context<string>;
77
+ declare const LocaleCtx: _pyreon_core0.Context<string>;
74
78
  /** Current locale signal — set by the server middleware or client-side detection. */
75
- export declare const localeSignal: import("@pyreon/reactivity").Signal<string>;
79
+ declare const localeSignal: _pyreon_reactivity0.Signal<string>;
76
80
  /**
77
81
  * Read the current locale reactively.
78
82
  *
@@ -85,7 +89,7 @@ export declare const localeSignal: import("@pyreon/reactivity").Signal<string>;
85
89
  * const locale = useLocale() // "en", "de", etc.
86
90
  * ```
87
91
  */
88
- export declare function useLocale(): string;
92
+ declare function useLocale(): string;
89
93
  /**
90
94
  * Set the locale client-side and update the URL.
91
95
  *
@@ -94,5 +98,7 @@ export declare function useLocale(): string;
94
98
  * <button onClick={() => setLocale('de')}>Deutsch</button>
95
99
  * ```
96
100
  */
97
- export declare function setLocale(locale: string, config: I18nRoutingConfig): void;
98
- //# sourceMappingURL=i18n-routing.d.ts.map
101
+ declare function setLocale(locale: string, config: I18nRoutingConfig): void;
102
+ //#endregion
103
+ export { I18nRoutingConfig, LocaleContext, LocaleCtx, buildLocalePath, createLocaleContext, detectLocaleFromHeader, extractLocaleFromPath, i18nRouting, localeSignal, setLocale, useLocale };
104
+ //# sourceMappingURL=i18n-routing2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i18n-routing.d.ts","sourceRoot":"","sources":["../../src/i18n-routing.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAelC,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,kEAAkE;IAClE,aAAa,EAAE,MAAM,CAAA;IACrB,sDAAsD;IACtD,YAAY,CAAC,EAAE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;iBAYgB,SAAA,CACd,MAAA,UACA,MAAA,EAAQ,iBAAA"}
@@ -1,45 +1,47 @@
1
- import type { Plugin } from 'vite';
2
- export interface ImagePluginConfig {
3
- /** Output directory for processed images. Default: "assets/img" */
4
- outDir?: string;
5
- /** Default widths for responsive images. Default: [640, 1024, 1920] */
6
- widths?: number[];
7
- /** Output formats. Default: ["webp"] */
8
- formats?: ImageFormat[];
9
- /** Quality for lossy formats (1-100). Default: 80 */
10
- quality?: number;
11
- /** Blur placeholder size in px. Default: 16 */
12
- placeholderSize?: number;
13
- /** File patterns to process. Default: /\.(jpe?g|png|webp|avif)$/i */
14
- include?: RegExp;
1
+ import { Plugin } from "vite";
2
+
3
+ //#region src/image-plugin.d.ts
4
+ interface ImagePluginConfig {
5
+ /** Output directory for processed images. Default: "assets/img" */
6
+ outDir?: string;
7
+ /** Default widths for responsive images. Default: [640, 1024, 1920] */
8
+ widths?: number[];
9
+ /** Output formats. Default: ["webp"] */
10
+ formats?: ImageFormat[];
11
+ /** Quality for lossy formats (1-100). Default: 80 */
12
+ quality?: number;
13
+ /** Blur placeholder size in px. Default: 16 */
14
+ placeholderSize?: number;
15
+ /** File patterns to process. Default: /\.(jpe?g|png|webp|avif)$/i */
16
+ include?: RegExp;
15
17
  }
16
- export type ImageFormat = 'webp' | 'avif' | 'jpeg' | 'png';
18
+ type ImageFormat = 'webp' | 'avif' | 'jpeg' | 'png';
17
19
  /** Per-format source set for <picture> <source> elements. */
18
- export interface FormatSource {
19
- /** MIME type. e.g. "image/webp", "image/avif" */
20
- type: string;
21
- /** srcset string for this format. e.g. "/img-640.webp 640w, /img-1920.webp 1920w" */
22
- srcset: string;
20
+ interface FormatSource {
21
+ /** MIME type. e.g. "image/webp", "image/avif" */
22
+ type: string;
23
+ /** srcset string for this format. e.g. "/img-640.webp 640w, /img-1920.webp 1920w" */
24
+ srcset: string;
23
25
  }
24
- export interface ProcessedImage {
25
- /** Fallback source path (last format, largest width). */
26
+ interface ProcessedImage {
27
+ /** Fallback source path (last format, largest width). */
28
+ src: string;
29
+ /** Fallback srcset string (last format). */
30
+ srcset: string;
31
+ /** Intrinsic width. */
32
+ width: number;
33
+ /** Intrinsic height. */
34
+ height: number;
35
+ /** Base64 blur placeholder data URI. */
36
+ placeholder: string;
37
+ /** Per-format source sets for <picture> element. Ordered by priority (best format first). */
38
+ formats: FormatSource[];
39
+ /** Flat list of all sources. */
40
+ sources: Array<{
26
41
  src: string;
27
- /** Fallback srcset string (last format). */
28
- srcset: string;
29
- /** Intrinsic width. */
30
42
  width: number;
31
- /** Intrinsic height. */
32
- height: number;
33
- /** Base64 blur placeholder data URI. */
34
- placeholder: string;
35
- /** Per-format source sets for <picture> element. Ordered by priority (best format first). */
36
- formats: FormatSource[];
37
- /** Flat list of all sources. */
38
- sources: Array<{
39
- src: string;
40
- width: number;
41
- format: string;
42
- }>;
43
+ format: string;
44
+ }>;
43
45
  }
44
46
  /**
45
47
  * Zero image processing Vite plugin.
@@ -65,15 +67,17 @@ export interface ProcessedImage {
65
67
  *
66
68
  * <Image {...hero} alt="Hero" priority />
67
69
  */
68
- export declare function imagePlugin(config?: ImagePluginConfig): Plugin;
70
+ declare function imagePlugin(config?: ImagePluginConfig): Plugin;
69
71
  /** @internal Exported for testing */
70
- export declare function parseJpegDimensions(buffer: Buffer): {
71
- width: number;
72
- height: number;
72
+ declare function parseJpegDimensions(buffer: Buffer): {
73
+ width: number;
74
+ height: number;
73
75
  };
74
76
  /** @internal Exported for testing */
75
- export declare function parseWebPDimensions(buffer: Buffer): {
76
- width: number;
77
- height: number;
77
+ declare function parseWebPDimensions(buffer: Buffer): {
78
+ width: number;
79
+ height: number;
78
80
  };
79
- //# sourceMappingURL=image-plugin.d.ts.map
81
+ //#endregion
82
+ export { FormatSource, ImageFormat, ImagePluginConfig, ProcessedImage, imagePlugin, parseJpegDimensions, parseWebPDimensions };
83
+ //# sourceMappingURL=image-plugin2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image-plugin.d.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,qCAAqC;AACrC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG;IACnD,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,CAeA;AAED,qCAAqC;AACrC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG;IACnD,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,CAuBA"}
1
+ {"version":3,"file":"image-plugin2.d.ts","names":[],"sources":["../../../src/image-plugin.ts"],"mappings":";;;UA+BiB,iBAAA;;EAEf,MAAA;EAFgC;EAIhC,MAAA;EAQgB;EANhB,OAAA,GAAU,WAAA;EAFV;EAIA,OAAA;EAFU;EAIV,eAAA;EAAA;EAEA,OAAA,GAAU,MAAA;AAAA;AAAA,KAGA,WAAA;;UAGK,YAAA;EAHM;EAKrB,IAAA;EALqB;EAOrB,MAAA;AAAA;AAAA,UAGe,cAAA;;EAEf,GAAA;EALM;EAON,MAAA;EAJ6B;EAM7B,KAAA;EAQc;EANd,MAAA;EAJA;EAMA,WAAA;EAFA;EAIA,OAAA,EAAS,YAAA;EAAT;EAEA,OAAA,EAAS,KAAA;IAAQ,GAAA;IAAa,KAAA;IAAe,MAAA;EAAA;AAAA;;;AA6B/C;;;;;;;;;AA4NA;;;;;;;;;;AAqBA;;;iBAjPgB,WAAA,CAAY,MAAA,GAAQ,iBAAA,GAAyB,MAAA;;iBA4N7C,mBAAA,CAAoB,MAAA,EAAQ,MAAA;EAC1C,KAAA;EACA,MAAA;AAAA;;iBAmBc,mBAAA,CAAoB,MAAA,EAAQ,MAAA;EAC1C,KAAA;EACA,MAAA;AAAA"}
@@ -1,38 +1,47 @@
1
- import type { VNodeChild } from '@pyreon/core';
2
- import type { FormatSource } from './image-plugin';
3
- export interface ImageProps {
4
- /** Image source URL. */
5
- src: string;
6
- /** Alt text (required for accessibility). */
7
- alt: string;
8
- /** Intrinsic width of the image. */
9
- width: number;
10
- /** Intrinsic height of the image. */
11
- height: number;
12
- /** Responsive sizes attribute. Default: "100vw" */
13
- sizes?: string;
14
- /** Responsive srcset string or source array. */
15
- srcset?: string | ImageSource[];
16
- /** Per-format source sets for <picture>. Provided automatically by imagePlugin. */
17
- formats?: FormatSource[];
18
- /** Loading strategy. "lazy" uses IntersectionObserver, "eager" loads immediately. Default: "lazy" */
19
- loading?: 'lazy' | 'eager';
20
- /** Mark as priority (LCP image). Disables lazy loading, adds fetchPriority="high". */
21
- priority?: boolean;
22
- /** Low-quality placeholder image URL or base64 data URI for blur-up effect. */
23
- placeholder?: string;
24
- /** CSS class name. */
25
- class?: string;
26
- /** Inline styles. */
27
- style?: string;
28
- /** CSS object-fit. Default: "cover" */
29
- fit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
30
- /** Decode async. Default: true */
31
- decoding?: 'sync' | 'async' | 'auto';
1
+ import { VNodeChild } from "@pyreon/core";
2
+ //#region src/image-plugin.d.ts
3
+ /** Per-format source set for <picture> <source> elements. */
4
+ interface FormatSource {
5
+ /** MIME type. e.g. "image/webp", "image/avif" */
6
+ type: string;
7
+ /** srcset string for this format. e.g. "/img-640.webp 640w, /img-1920.webp 1920w" */
8
+ srcset: string;
32
9
  }
33
- export interface ImageSource {
34
- src: string;
35
- width: number;
10
+ //#endregion
11
+ //#region src/image.d.ts
12
+ interface ImageProps {
13
+ /** Image source URL. */
14
+ src: string;
15
+ /** Alt text (required for accessibility). */
16
+ alt: string;
17
+ /** Intrinsic width of the image. */
18
+ width: number;
19
+ /** Intrinsic height of the image. */
20
+ height: number;
21
+ /** Responsive sizes attribute. Default: "100vw" */
22
+ sizes?: string;
23
+ /** Responsive srcset string or source array. */
24
+ srcset?: string | ImageSource[];
25
+ /** Per-format source sets for <picture>. Provided automatically by imagePlugin. */
26
+ formats?: FormatSource[];
27
+ /** Loading strategy. "lazy" uses IntersectionObserver, "eager" loads immediately. Default: "lazy" */
28
+ loading?: 'lazy' | 'eager';
29
+ /** Mark as priority (LCP image). Disables lazy loading, adds fetchPriority="high". */
30
+ priority?: boolean;
31
+ /** Low-quality placeholder image URL or base64 data URI for blur-up effect. */
32
+ placeholder?: string;
33
+ /** CSS class name. */
34
+ class?: string;
35
+ /** Inline styles. */
36
+ style?: string;
37
+ /** CSS object-fit. Default: "cover" */
38
+ fit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
39
+ /** Decode async. Default: true */
40
+ decoding?: 'sync' | 'async' | 'auto';
41
+ }
42
+ interface ImageSource {
43
+ src: string;
44
+ width: number;
36
45
  }
37
46
  /**
38
47
  * Optimized image component with lazy loading, responsive images,
@@ -47,5 +56,7 @@ export interface ImageSource {
47
56
  * // Manual usage
48
57
  * <Image src="/hero.jpg" alt="Hero" width={1200} height={630} />
49
58
  */
50
- export declare function Image(props: ImageProps): VNodeChild;
51
- //# sourceMappingURL=image.d.ts.map
59
+ declare function Image(props: ImageProps): VNodeChild;
60
+ //#endregion
61
+ export { Image, ImageProps, ImageSource };
62
+ //# sourceMappingURL=image2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAG9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAalD,MAAM,WAAW,UAAU;IACzB,wBAAwB;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,6CAA6C;IAC7C,GAAG,EAAE,MAAM,CAAA;IACX,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,qCAAqC;IACrC,MAAM,EAAE,MAAM,CAAA;IACd,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,EAAE,CAAA;IAC/B,mFAAmF;IACnF,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,qGAAqG;IACrG,OAAO,CAAC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