@pyreon/zero 0.19.0 → 0.21.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.
- package/README.md +1 -1
- package/lib/{api-routes-CQiOi3q5.js → api-routes-CMsLztoj.js} +1 -1
- package/lib/favicon.js +120 -6
- package/lib/{fs-router-BVY4lTH_.js → fs-router-Bacdhsq-.js} +2 -2
- package/lib/image-plugin.js +14 -7
- package/lib/image-types.js +0 -0
- package/lib/server.js +2741 -144
- package/lib/types/favicon.d.ts +34 -4
- package/lib/types/i18n-routing.d.ts +2 -4
- package/lib/types/image-types.d.ts +55 -0
- package/lib/types/index.d.ts +3 -5
- package/lib/types/link.d.ts +2 -4
- package/lib/types/server.d.ts +19 -7
- package/lib/types/theme.d.ts +1 -2
- package/package.json +15 -10
- package/src/favicon.ts +189 -12
- package/src/image-plugin.ts +59 -14
- package/src/image-types.ts +60 -0
- package/lib/vite-plugin-8TXXFqdP.js +0 -2491
- package/src/image-types.d.ts +0 -51
package/src/image-types.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type declarations for image imports processed by @pyreon/zero's imagePlugin.
|
|
3
|
-
*
|
|
4
|
-
* Add to your tsconfig.json:
|
|
5
|
-
* "types": ["@pyreon/zero/image-types"]
|
|
6
|
-
*
|
|
7
|
-
* Or reference directly:
|
|
8
|
-
* /// <reference types="@pyreon/zero/image-types" />
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
declare module '*.jpg?optimize' {
|
|
12
|
-
const image: import('./image-plugin').ProcessedImage
|
|
13
|
-
export default image
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
declare module '*.jpeg?optimize' {
|
|
17
|
-
const image: import('./image-plugin').ProcessedImage
|
|
18
|
-
export default image
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare module '*.png?optimize' {
|
|
22
|
-
const image: import('./image-plugin').ProcessedImage
|
|
23
|
-
export default image
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare module '*.webp?optimize' {
|
|
27
|
-
const image: import('./image-plugin').ProcessedImage
|
|
28
|
-
export default image
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare module '*.avif?optimize' {
|
|
32
|
-
const image: import('./image-plugin').ProcessedImage
|
|
33
|
-
export default image
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
declare module '*.svg?component' {
|
|
37
|
-
import type { ComponentFn } from '@pyreon/core'
|
|
38
|
-
const component: ComponentFn<{
|
|
39
|
-
width?: number
|
|
40
|
-
height?: number
|
|
41
|
-
class?: string
|
|
42
|
-
style?: string
|
|
43
|
-
[key: string]: unknown
|
|
44
|
-
}>
|
|
45
|
-
export default component
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
declare module '*.svg?raw' {
|
|
49
|
-
const svg: string
|
|
50
|
-
export default svg
|
|
51
|
-
}
|