@evertondgn/solid-tooling 0.5.0 → 0.7.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 (41) hide show
  1. package/README.md +543 -598
  2. package/app-env.d.ts +7 -0
  3. package/dist/architecture-plugin.mjs +1 -1
  4. package/dist/backend-plugin.mjs +139 -4
  5. package/dist/cli.d.mts +1 -0
  6. package/dist/cli.mjs +42 -0
  7. package/dist/{constants-Jqvtbvxu.mjs → constants-BZJm7ouk.mjs} +1 -1
  8. package/dist/css-filename-CEHQd2gz.mjs +40 -0
  9. package/dist/css-filename.mjs +1 -40
  10. package/dist/fmt-9dlUYOMk.mjs +34 -0
  11. package/dist/fmt.mjs +1 -34
  12. package/dist/i18n-generate.d.mts +1 -0
  13. package/dist/i18n-generate.mjs +23 -0
  14. package/dist/i18nPlugin-CS7Gob6R.mjs +109 -0
  15. package/dist/knip.d.mts +2 -1
  16. package/dist/knip.mjs +7 -2
  17. package/dist/{lint-UTfyg7AR.mjs → lint-ehdtTKfw.mjs} +33 -86
  18. package/dist/lint.mjs +1 -1
  19. package/dist/playwright-teardown.mjs +1 -1
  20. package/dist/playwright.d.mts +2 -1
  21. package/dist/playwright.mjs +4 -3
  22. package/dist/prepareMessages-BXmY6Ko2.mjs +222 -0
  23. package/dist/project-plugin.mjs +2 -2
  24. package/dist/protocol-DSNNUYja.mjs +18 -0
  25. package/dist/publication/read-llms-index.d.mts +12 -0
  26. package/dist/publication/read-llms-index.mjs +1 -0
  27. package/dist/publication-CRUTOB0B.mjs +885 -0
  28. package/dist/readLlmsIndex-Gj4iTxAk.mjs +27 -0
  29. package/dist/stylelint.mjs +2 -2
  30. package/dist/test-locale--tuH0Np5.mjs +3 -0
  31. package/dist/types-DHu2Z_ot.d.mts +49 -0
  32. package/dist/vite.d.mts +33 -7
  33. package/dist/vite.mjs +449 -88
  34. package/dist/vitest-BjLr7iLf.mjs +362 -0
  35. package/dist/vitest.d.mts +3 -7
  36. package/dist/vitest.mjs +1 -129
  37. package/lefthook.yml +3 -1
  38. package/node-env.d.ts +1 -0
  39. package/package.json +32 -39
  40. package/tsconfig.app.json +4 -9
  41. package/virtual-modules.d.ts +90 -0
@@ -0,0 +1,90 @@
1
+ declare module 'virtual:solid-app/fonts' {
2
+ type FontPreload = { href: string; type: string }
3
+ export const stylesheet: string
4
+ export const preloads: readonly FontPreload[]
5
+ }
6
+
7
+ declare module 'virtual:solid-app/seo-origin' {
8
+ export const origin: string
9
+ }
10
+
11
+ declare module 'virtual:solid-app/seo-markdown' {
12
+ type MarkdownConfig = {
13
+ static: boolean
14
+ maxInputBytes: number
15
+ maxOutputBytes: number
16
+ timeoutMs: number
17
+ hasLlms: boolean
18
+ }
19
+ export const markdown: MarkdownConfig
20
+ }
21
+
22
+ declare module 'virtual:solid-app/seo-llms' {
23
+ type LlmsConfig = {
24
+ maxBytes: number
25
+ hasMarkdown: boolean
26
+ hasLlmsFull: boolean
27
+ }
28
+ export const llms: LlmsConfig
29
+ }
30
+
31
+ declare module 'virtual:solid-app/locale-context' {
32
+ type ContextOptions = { url: string; run: () => Response | Promise<Response> }
33
+ export function withLocaleContext(options: ContextOptions): Promise<Response>
34
+ export function requestLocale(request: Request): string
35
+ }
36
+
37
+ declare module 'virtual:solid-app/seo-robots' {
38
+ type RobotsGroup = {
39
+ userAgents: readonly string[]
40
+ allow?: readonly string[]
41
+ disallow?: readonly string[]
42
+ }
43
+ type RobotsConfig = {
44
+ groups: readonly RobotsGroup[]
45
+ sitemaps: readonly string[]
46
+ cacheControl?: string
47
+ }
48
+ export const robots: RobotsConfig
49
+ }
50
+
51
+ declare module 'virtual:solid-app/locale' {
52
+ type UrlInput = string | { readonly href: string }
53
+ type LocalizeOptions = { locale?: string }
54
+ type SetLocaleOptions = { reload?: boolean }
55
+ export const locales: readonly string[]
56
+ export const baseLocale: string
57
+ export function getLocale(): string
58
+ export function setLocale(
59
+ locale: string,
60
+ options?: SetLocaleOptions
61
+ ): void | Promise<void>
62
+ export function extractLocaleFromUrl(url: URL | string): string | undefined
63
+ export function localizeHref(href: string, options?: LocalizeOptions): string
64
+ export function deLocalizeUrl(url: UrlInput): URL
65
+ }
66
+
67
+ declare module 'virtual:solid-app/request-middleware' {
68
+ type Security = { applySecurityHeaders: (response: Response) => Response }
69
+ type RequestOptions = { request: Request; next: () => Promise<Response> }
70
+ export function createRequestLocale(
71
+ options: Security
72
+ ): (options: RequestOptions) => Promise<Response>
73
+ }
74
+
75
+ declare module 'virtual:solid-app/locale-request' {
76
+ type Decision = { shouldRedirect: boolean; redirectUrl?: URL; locale: string }
77
+ type Options = { request: Request }
78
+ type Context = { locale: string; request: Request }
79
+ export function shouldRedirect(options: Options): Promise<Decision>
80
+ export function extractLocaleFromRequest(request: Request): string
81
+ export function paraglideMiddleware(
82
+ request: Request,
83
+ next: (context: Context) => Promise<Response>
84
+ ): Promise<Response>
85
+ export const cookieName: string
86
+ export const cookieMaxAge: number
87
+ export const cookieDomain: string
88
+ export const cookieSameSite: 'lax' | 'strict' | 'none'
89
+ export const cookieSecure: boolean | 'auto'
90
+ }