@lolyjs/core 0.3.0-alpha.5 → 0.4.0-alpha.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 (40) hide show
  1. package/README.md +162 -0
  2. package/dist/{bootstrap-BfGTMUkj.d.mts → bootstrap-B6W6XoI5.d.mts} +6 -0
  3. package/dist/{bootstrap-BfGTMUkj.d.ts → bootstrap-B6W6XoI5.d.ts} +6 -0
  4. package/dist/cli.cjs +3362 -867
  5. package/dist/cli.cjs.map +1 -1
  6. package/dist/cli.mjs +3442 -952
  7. package/dist/cli.mjs.map +1 -1
  8. package/dist/index.cjs +3622 -897
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.d.mts +27 -1
  11. package/dist/index.d.ts +27 -1
  12. package/dist/index.mjs +3598 -879
  13. package/dist/index.mjs.map +1 -1
  14. package/dist/react/cache.cjs.map +1 -1
  15. package/dist/react/cache.mjs.map +1 -1
  16. package/dist/react/components.cjs +138 -5
  17. package/dist/react/components.cjs.map +1 -1
  18. package/dist/react/components.d.mts +58 -6
  19. package/dist/react/components.d.ts +58 -6
  20. package/dist/react/components.mjs +138 -6
  21. package/dist/react/components.mjs.map +1 -1
  22. package/dist/react/hooks.cjs +24 -0
  23. package/dist/react/hooks.cjs.map +1 -1
  24. package/dist/react/hooks.d.mts +49 -1
  25. package/dist/react/hooks.d.ts +49 -1
  26. package/dist/react/hooks.mjs +22 -0
  27. package/dist/react/hooks.mjs.map +1 -1
  28. package/dist/react/themes.cjs +0 -169
  29. package/dist/react/themes.cjs.map +1 -1
  30. package/dist/react/themes.d.mts +18 -11
  31. package/dist/react/themes.d.ts +18 -11
  32. package/dist/react/themes.mjs +0 -159
  33. package/dist/react/themes.mjs.map +1 -1
  34. package/dist/runtime.cjs +268 -24
  35. package/dist/runtime.cjs.map +1 -1
  36. package/dist/runtime.d.mts +2 -2
  37. package/dist/runtime.d.ts +2 -2
  38. package/dist/runtime.mjs +255 -15
  39. package/dist/runtime.mjs.map +1 -1
  40. package/package.json +4 -2
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import http from 'http';
2
2
  export { a as ApiContext, A as ApiMiddleware, b as GenerateStaticParams, G as GlobalMiddleware, L as LoaderResult, M as MetadataLoader, N as NotFoundResponse, d as RedirectResponse, R as RouteMiddleware, S as ServerContext, c as ServerLoader, W as WssActions } from './index.types-Duhjyfit.mjs';
3
3
  import { Socket } from 'socket.io';
4
4
  import { Request, Response } from 'express';
5
- export { c as bootstrapClient } from './bootstrap-BfGTMUkj.mjs';
5
+ export { c as bootstrapClient } from './bootstrap-B6W6XoI5.mjs';
6
6
  import { ZodSchema, z } from 'zod';
7
7
  import * as express_rate_limit from 'express-rate-limit';
8
8
  import pino, { Logger as Logger$1 } from 'pino';
@@ -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
@@ -2,7 +2,7 @@ import http from 'http';
2
2
  export { a as ApiContext, A as ApiMiddleware, b as GenerateStaticParams, G as GlobalMiddleware, L as LoaderResult, M as MetadataLoader, N as NotFoundResponse, d as RedirectResponse, R as RouteMiddleware, S as ServerContext, c as ServerLoader, W as WssActions } from './index.types-Duhjyfit.js';
3
3
  import { Socket } from 'socket.io';
4
4
  import { Request, Response } from 'express';
5
- export { c as bootstrapClient } from './bootstrap-BfGTMUkj.js';
5
+ export { c as bootstrapClient } from './bootstrap-B6W6XoI5.js';
6
6
  import { ZodSchema, z } from 'zod';
7
7
  import * as express_rate_limit from 'express-rate-limit';
8
8
  import pino, { Logger as Logger$1 } from 'pino';
@@ -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.