@kayjs/kay 1.105.0 → 1.106.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 (310) hide show
  1. package/dist/eslint.js +435 -120
  2. package/editors/zed/extension.toml +2 -2
  3. package/llms/action-protection.md +1 -1
  4. package/llms/actions-from-islands.md +2 -2
  5. package/llms/actions.md +22 -19
  6. package/llms/analytics.md +1 -1
  7. package/llms/api-from-islands.md +1 -1
  8. package/llms/api-routes.md +6 -6
  9. package/llms/check-and-tools.md +1 -1
  10. package/llms/code-lints.md +2 -2
  11. package/llms/compiler-api.md +1 -1
  12. package/llms/component-libraries.md +1 -0
  13. package/llms/content-cms.md +1 -1
  14. package/llms/content-markdown-to-caching.md +1 -1
  15. package/llms/content-preview.md +2 -2
  16. package/llms/content.md +21 -21
  17. package/llms/deprecated-lints-1-105-libraries.md +2 -0
  18. package/llms/deprecated-lints-1-105.md +3 -3
  19. package/llms/deprecated-lints.md +3 -2
  20. package/llms/dev-tool.md +2 -2
  21. package/llms/environment.md +22 -22
  22. package/llms/files.md +5 -5
  23. package/llms/islands-state-to-ids.md +2 -1
  24. package/llms/local-collections.md +2 -2
  25. package/llms/mcp.md +2 -1
  26. package/llms/navigation-from-code.md +1 -1
  27. package/llms/notifications.md +4 -2
  28. package/llms/project.md +1 -1
  29. package/llms/rate-limits.md +1 -1
  30. package/llms/recipes.md +16 -16
  31. package/llms/rooms.md +4 -4
  32. package/llms/routing-endpoints-and-base.md +1 -1
  33. package/llms/routing.md +5 -5
  34. package/llms/schemas.md +10 -5
  35. package/llms/server.md +7 -7
  36. package/llms/site.md +9 -9
  37. package/llms/sitemap-search-fonts.md +2 -0
  38. package/llms/styles-and-assets.md +2 -1
  39. package/llms/templates-elements-slots-snippets.md +2 -2
  40. package/llms/testing-browser.md +20 -0
  41. package/llms/testing.md +1 -1
  42. package/llms/upgrading-1-105-config.md +2 -2
  43. package/llms/upgrading.md +18 -3
  44. package/llms/whats-new-archive.md +35 -66
  45. package/llms/whats-new.md +34 -28
  46. package/llms.txt +1 -1
  47. package/package.json +15 -11
  48. package/src/add.ts +1 -1
  49. package/src/build/class-table.ts +2 -2
  50. package/src/build/client.ts +7 -6
  51. package/src/build/plugin.ts +14 -11
  52. package/src/build/styles.ts +3 -3
  53. package/src/build/transform.ts +3 -1
  54. package/src/build/ui-layers.ts +30 -0
  55. package/src/build/ui.ts +108 -11
  56. package/src/build/variants.ts +119 -43
  57. package/src/build/worker-bundle.ts +6 -0
  58. package/src/check/boot.ts +22 -1
  59. package/src/check/call-result.ts +242 -0
  60. package/src/check/config-objects.ts +17 -2
  61. package/src/check/diagnose.ts +22 -0
  62. package/src/check/handler-events.ts +149 -0
  63. package/src/check/index.ts +6 -2
  64. package/src/check/link-flag-tests.ts +130 -0
  65. package/src/check/project.ts +4 -3
  66. package/src/check/refusal-calls.ts +2 -2
  67. package/src/check/regroup.ts +5 -3
  68. package/src/check/renamed-packages.ts +58 -14
  69. package/src/check/schema-builders.ts +256 -0
  70. package/src/check/secret-keys.ts +15 -2
  71. package/src/check/shadow-types.ts +2 -0
  72. package/src/check/template-hints.ts +1 -1
  73. package/src/check/tool-labels.ts +11 -9
  74. package/src/check/ui-types.ts +4 -3
  75. package/src/check/ui.ts +14 -11
  76. package/src/commands/env-declare.ts +18 -6
  77. package/src/commands/routes.ts +1 -1
  78. package/src/compiler/a11y.ts +8 -1
  79. package/src/compiler/ast.ts +1 -1
  80. package/src/compiler/bound-props.ts +1 -1
  81. package/src/compiler/codegen.ts +6 -6
  82. package/src/compiler/deprecated-lints-1-106.ts +14 -0
  83. package/src/compiler/deprecated-lints.ts +10 -5
  84. package/src/compiler/deprecated-typed-lints.ts +23 -0
  85. package/src/compiler/dom-here.ts +72 -0
  86. package/src/compiler/dom.ts +23 -23
  87. package/src/compiler/fence-checks.ts +12 -11
  88. package/src/compiler/field-described.ts +2 -2
  89. package/src/compiler/helper-imports.ts +1 -1
  90. package/src/compiler/html-fields.ts +92 -0
  91. package/src/compiler/html-initial.ts +5 -3
  92. package/src/compiler/html.ts +14 -31
  93. package/src/compiler/index.ts +3 -1
  94. package/src/compiler/items.ts +5 -5
  95. package/src/compiler/link-flags.ts +6 -5
  96. package/src/compiler/lints.ts +12 -12
  97. package/src/compiler/rest-omits.ts +15 -0
  98. package/src/config-loader.ts +10 -2
  99. package/src/config-resolve.ts +3 -1
  100. package/src/config-shape.ts +2 -2
  101. package/src/config.ts +20 -4
  102. package/src/content/markdown.ts +2 -3
  103. package/src/generate-resource.ts +9 -9
  104. package/src/generate.ts +1 -1
  105. package/src/mcp/guards.ts +1 -1
  106. package/src/mcp/tools.ts +1 -1
  107. package/src/migrate/content.ts +61 -55
  108. package/src/runtime/action-shared.ts +2 -2
  109. package/src/runtime/action.ts +6 -2
  110. package/src/runtime/form-types.ts +99 -0
  111. package/src/runtime/form.ts +22 -7
  112. package/src/runtime/html.ts +36 -5
  113. package/src/runtime/markdown-autolink.ts +69 -0
  114. package/src/runtime/markdown-render.client.ts +39 -3
  115. package/src/runtime/markdown.client.ts +6 -3
  116. package/src/runtime/markdown.server.ts +6 -3
  117. package/src/runtime/markdown.ts +125 -1
  118. package/src/runtime/navigate-api.ts +10 -5
  119. package/src/runtime/persist.ts +7 -7
  120. package/src/runtime/query-param.ts +1 -1
  121. package/src/runtime/reactive.ts +14 -0
  122. package/src/runtime/sanitize.ts +3 -1
  123. package/src/runtime/schema-record.ts +31 -0
  124. package/src/runtime/schema.client.ts +1 -4
  125. package/src/runtime/schema.ts +321 -26
  126. package/src/runtime/swap-focus.ts +59 -11
  127. package/src/server/action-module.ts +16 -0
  128. package/src/server/actions.ts +6 -14
  129. package/src/server/api-modules.ts +1 -1
  130. package/src/server/api.ts +13 -1
  131. package/src/server/app-stages.ts +23 -18
  132. package/src/server/dev-ui.ts +2 -2
  133. package/src/server/env-state.ts +1 -1
  134. package/src/server/env.ts +11 -3
  135. package/src/server/favicon.ts +47 -1
  136. package/src/server/image-metadata-bmff.ts +1 -1
  137. package/src/server/kept-pages.ts +3 -3
  138. package/src/server/library.ts +2 -0
  139. package/src/server/mcp.ts +13 -12
  140. package/src/server/notifications.ts +4 -2
  141. package/src/server/offline.ts +24 -7
  142. package/src/server/push-settings.ts +16 -2
  143. package/src/server/push.ts +12 -4
  144. package/src/server/query.ts +13 -6
  145. package/src/server/render.ts +1 -1
  146. package/src/server/scope.ts +20 -13
  147. package/src/server/signals.ts +4 -4
  148. package/src/template-ws.ts +1 -1
  149. package/src/test/a11y-dom.ts +70 -0
  150. package/src/test/html-snapshot.ts +103 -0
  151. package/src/test/index.ts +2 -1
  152. package/src/test/mount.ts +8 -1
  153. package/src/test/page-checks.ts +12 -0
  154. package/src/test/screenshot-match.ts +2 -2
  155. package/src/test/shared-modules.ts +27 -5
  156. package/src/test/site-types.ts +5 -1
  157. package/types/build/class-table.d.ts +1 -1
  158. package/types/build/class-table.d.ts.map +1 -1
  159. package/types/build/client.d.ts.map +1 -1
  160. package/types/build/plugin.d.ts.map +1 -1
  161. package/types/build/transform.d.ts +1 -0
  162. package/types/build/transform.d.ts.map +1 -1
  163. package/types/build/ui-layers.d.ts +5 -0
  164. package/types/build/ui-layers.d.ts.map +1 -0
  165. package/types/build/ui.d.ts +7 -0
  166. package/types/build/ui.d.ts.map +1 -1
  167. package/types/build/variants.d.ts +1 -1
  168. package/types/build/variants.d.ts.map +1 -1
  169. package/types/build/worker-bundle.d.ts +1 -0
  170. package/types/build/worker-bundle.d.ts.map +1 -1
  171. package/types/check/boot.d.ts.map +1 -1
  172. package/types/check/call-result.d.ts +7 -0
  173. package/types/check/call-result.d.ts.map +1 -0
  174. package/types/check/config-objects.d.ts.map +1 -1
  175. package/types/check/diagnose.d.ts.map +1 -1
  176. package/types/check/handler-events.d.ts +9 -0
  177. package/types/check/handler-events.d.ts.map +1 -0
  178. package/types/check/index.d.ts +1 -0
  179. package/types/check/index.d.ts.map +1 -1
  180. package/types/check/link-flag-tests.d.ts +4 -0
  181. package/types/check/link-flag-tests.d.ts.map +1 -0
  182. package/types/check/project.d.ts.map +1 -1
  183. package/types/check/regroup.d.ts +1 -1
  184. package/types/check/regroup.d.ts.map +1 -1
  185. package/types/check/renamed-packages.d.ts +1 -0
  186. package/types/check/renamed-packages.d.ts.map +1 -1
  187. package/types/check/schema-builders.d.ts +3 -0
  188. package/types/check/schema-builders.d.ts.map +1 -0
  189. package/types/check/secret-keys.d.ts.map +1 -1
  190. package/types/check/shadow-types.d.ts.map +1 -1
  191. package/types/check/template-hints.d.ts +1 -0
  192. package/types/check/template-hints.d.ts.map +1 -1
  193. package/types/check/tool-labels.d.ts.map +1 -1
  194. package/types/check/ui-types.d.ts.map +1 -1
  195. package/types/check/ui.d.ts.map +1 -1
  196. package/types/commands/env-declare.d.ts.map +1 -1
  197. package/types/compiler/a11y.d.ts.map +1 -1
  198. package/types/compiler/bound-props.d.ts +1 -0
  199. package/types/compiler/bound-props.d.ts.map +1 -1
  200. package/types/compiler/codegen.d.ts +1 -0
  201. package/types/compiler/codegen.d.ts.map +1 -1
  202. package/types/compiler/deprecated-lints-1-106.d.ts +12 -0
  203. package/types/compiler/deprecated-lints-1-106.d.ts.map +1 -0
  204. package/types/compiler/deprecated-lints.d.ts +32 -5
  205. package/types/compiler/deprecated-lints.d.ts.map +1 -1
  206. package/types/compiler/deprecated-typed-lints.d.ts +21 -0
  207. package/types/compiler/deprecated-typed-lints.d.ts.map +1 -0
  208. package/types/compiler/dom-here.d.ts +14 -0
  209. package/types/compiler/dom-here.d.ts.map +1 -0
  210. package/types/compiler/dom.d.ts +1 -0
  211. package/types/compiler/dom.d.ts.map +1 -1
  212. package/types/compiler/fence-checks.d.ts.map +1 -1
  213. package/types/compiler/field-described.d.ts +1 -1
  214. package/types/compiler/field-described.d.ts.map +1 -1
  215. package/types/compiler/html-fields.d.ts +19 -0
  216. package/types/compiler/html-fields.d.ts.map +1 -0
  217. package/types/compiler/html-initial.d.ts +3 -2
  218. package/types/compiler/html-initial.d.ts.map +1 -1
  219. package/types/compiler/html.d.ts.map +1 -1
  220. package/types/compiler/index.d.ts +1 -0
  221. package/types/compiler/index.d.ts.map +1 -1
  222. package/types/compiler/items.d.ts +4 -1
  223. package/types/compiler/items.d.ts.map +1 -1
  224. package/types/compiler/link-flags.d.ts +6 -0
  225. package/types/compiler/link-flags.d.ts.map +1 -1
  226. package/types/compiler/lints.d.ts +44 -17
  227. package/types/compiler/lints.d.ts.map +1 -1
  228. package/types/compiler/rest-omits.d.ts +4 -0
  229. package/types/compiler/rest-omits.d.ts.map +1 -0
  230. package/types/config-loader.d.ts.map +1 -1
  231. package/types/config-resolve.d.ts.map +1 -1
  232. package/types/config.d.ts +15 -2
  233. package/types/config.d.ts.map +1 -1
  234. package/types/content/markdown.d.ts.map +1 -1
  235. package/types/migrate/content.d.ts.map +1 -1
  236. package/types/runtime/action-shared.d.ts +1 -1
  237. package/types/runtime/action-shared.d.ts.map +1 -1
  238. package/types/runtime/action.d.ts +3 -0
  239. package/types/runtime/action.d.ts.map +1 -1
  240. package/types/runtime/form-types.d.ts +6 -0
  241. package/types/runtime/form-types.d.ts.map +1 -0
  242. package/types/runtime/form.d.ts +3 -1
  243. package/types/runtime/form.d.ts.map +1 -1
  244. package/types/runtime/html.d.ts +3 -0
  245. package/types/runtime/html.d.ts.map +1 -1
  246. package/types/runtime/markdown-autolink.d.ts +11 -0
  247. package/types/runtime/markdown-autolink.d.ts.map +1 -0
  248. package/types/runtime/markdown-render.client.d.ts +2 -1
  249. package/types/runtime/markdown-render.client.d.ts.map +1 -1
  250. package/types/runtime/markdown.client.d.ts +3 -1
  251. package/types/runtime/markdown.client.d.ts.map +1 -1
  252. package/types/runtime/markdown.d.ts +11 -0
  253. package/types/runtime/markdown.d.ts.map +1 -1
  254. package/types/runtime/markdown.server.d.ts +3 -1
  255. package/types/runtime/markdown.server.d.ts.map +1 -1
  256. package/types/runtime/navigate-api.d.ts +1 -1
  257. package/types/runtime/navigate-api.d.ts.map +1 -1
  258. package/types/runtime/persist.d.ts +2 -2
  259. package/types/runtime/persist.d.ts.map +1 -1
  260. package/types/runtime/reactive.d.ts +3 -0
  261. package/types/runtime/reactive.d.ts.map +1 -1
  262. package/types/runtime/sanitize.d.ts.map +1 -1
  263. package/types/runtime/schema-record.d.ts +9 -0
  264. package/types/runtime/schema-record.d.ts.map +1 -0
  265. package/types/runtime/schema.client.d.ts.map +1 -1
  266. package/types/runtime/schema.d.ts +94 -10
  267. package/types/runtime/schema.d.ts.map +1 -1
  268. package/types/runtime/swap-focus.d.ts.map +1 -1
  269. package/types/server/action-module.d.ts +2 -0
  270. package/types/server/action-module.d.ts.map +1 -0
  271. package/types/server/actions.d.ts +1 -0
  272. package/types/server/actions.d.ts.map +1 -1
  273. package/types/server/api.d.ts.map +1 -1
  274. package/types/server/app-stages.d.ts +3 -2
  275. package/types/server/app-stages.d.ts.map +1 -1
  276. package/types/server/env-state.d.ts.map +1 -1
  277. package/types/server/env.d.ts +5 -1
  278. package/types/server/env.d.ts.map +1 -1
  279. package/types/server/favicon.d.ts +3 -1
  280. package/types/server/favicon.d.ts.map +1 -1
  281. package/types/server/kept-pages.d.ts +1 -1
  282. package/types/server/kept-pages.d.ts.map +1 -1
  283. package/types/server/library.d.ts +2 -0
  284. package/types/server/library.d.ts.map +1 -1
  285. package/types/server/mcp.d.ts +1 -1
  286. package/types/server/mcp.d.ts.map +1 -1
  287. package/types/server/notifications.d.ts +2 -1
  288. package/types/server/notifications.d.ts.map +1 -1
  289. package/types/server/offline.d.ts.map +1 -1
  290. package/types/server/push-settings.d.ts +1 -1
  291. package/types/server/push-settings.d.ts.map +1 -1
  292. package/types/server/push.d.ts +1 -0
  293. package/types/server/push.d.ts.map +1 -1
  294. package/types/server/query.d.ts.map +1 -1
  295. package/types/server/scope.d.ts +1 -1
  296. package/types/server/scope.d.ts.map +1 -1
  297. package/types/test/a11y-dom.d.ts +20 -0
  298. package/types/test/a11y-dom.d.ts.map +1 -0
  299. package/types/test/html-snapshot.d.ts +4 -0
  300. package/types/test/html-snapshot.d.ts.map +1 -0
  301. package/types/test/index.d.ts.map +1 -1
  302. package/types/test/mount.d.ts +3 -0
  303. package/types/test/mount.d.ts.map +1 -1
  304. package/types/test/page-checks.d.ts +6 -0
  305. package/types/test/page-checks.d.ts.map +1 -0
  306. package/types/test/screenshot-match.d.ts +1 -1
  307. package/types/test/screenshot-match.d.ts.map +1 -1
  308. package/types/test/shared-modules.d.ts.map +1 -1
  309. package/types/test/site-types.d.ts +3 -1
  310. package/types/test/site-types.d.ts.map +1 -1
@@ -1,11 +1,11 @@
1
1
  import type { Outcome } from '../runtime/action'
2
2
  import type { QueryRules } from '../runtime/query-param'
3
- import type { ServerScope } from '../runtime/reactive'
3
+ import type { LoadScope, ServerScope } from '../runtime/reactive'
4
4
  import { AsyncLocalStorage } from 'node:async_hooks'
5
5
  import { setRequestOutcome } from '../runtime/action'
6
6
  import { setEndedEntryNote } from '../runtime/ended-entry'
7
7
  import { readParam } from '../runtime/query-param'
8
- import { setServerScope } from '../runtime/reactive'
8
+ import { setRequestCookieScope, setServerScope } from '../runtime/reactive'
9
9
  import { setCurrentUrl } from '../runtime/with-query'
10
10
  import { requestCookies } from './cookies'
11
11
  import { requestUrl } from './request-url'
@@ -17,30 +17,37 @@ const store = new AsyncLocalStorage<ServerScope>()
17
17
 
18
18
  setServerScope(() => store.getStore())
19
19
 
20
- // The page a load answers, which runs before the render's scope is made.
21
- const loadUrls = new AsyncLocalStorage<URL>()
20
+ // The page a load answers and the cookies it reads, which runs before the render's scope is made.
21
+ const loads = new AsyncLocalStorage<{ url: URL, scope: LoadScope }>()
22
22
 
23
- setCurrentUrl(() => loadUrls.getStore() ?? (store.getStore()?.request === undefined ? undefined : requestUrl(store.getStore()!.request!)))
23
+ setCurrentUrl(() => loads.getStore()?.url ?? (store.getStore()?.request === undefined ? undefined : requestUrl(store.getStore()!.request!)))
24
+ setRequestCookieScope(() => loads.getStore()?.scope)
24
25
 
25
- // Runs a page's or a layout's load, which reads the page it answers through `withQuery`.
26
- export function inLoad<T>(url: URL, run: () => T): T {
27
- return loadUrls.run(url, run)
26
+ // `cookieRead` runs once the load read a cookie, the page then depending on it.
27
+ // Runs a page's or a layout's load, which reads the page it answers through `withQuery`, and a persisted cookie signal through the request's cookies, as the render reads them.
28
+ export function inLoad<T>(url: URL, request: Request, cookieRead: () => void, run: () => T): T {
29
+ return loads.run({ url, scope: { cookie: cookieReader(request, cookieRead) } }, run)
28
30
  }
29
31
 
30
- // Renders for `request`: a module's signals keep what this render writes to itself, persisted signals read its cookies and query, `queryParam` its query by the page's `rules`, and a `try` block reports what it caught.
31
- // `cookieRead` runs once a persisted signal read a cookie, the page then depending on it.
32
- export function inServerScope<T>(request: Request, report: (error: unknown) => void, run: () => T, cookieRead?: () => void, rules?: QueryRules): T {
32
+ // Reads the request's cookies on the first call, which makes the page depend on them, then `first` runs.
33
+ function cookieReader(request: Request, first?: () => void): (name: string) => string | undefined {
33
34
  let cookies: ReturnType<typeof requestCookies> | undefined
34
35
 
35
- const cookie = (name: string) => {
36
+ return (name) => {
36
37
  if (!cookies) {
37
38
  cookies = requestCookies(request)
38
39
  personal.add(request)
39
- cookieRead?.()
40
+ first?.()
40
41
  }
41
42
 
42
43
  return cookies.get(name) ?? undefined
43
44
  }
45
+ }
46
+
47
+ // Renders for `request`: a module's signals keep what this render writes to itself, persisted signals read its cookies and query, `queryParam` its query by the page's `rules`, and a `try` block reports what it caught.
48
+ // `cookieRead` runs once a persisted signal read a cookie, the page then depending on it.
49
+ export function inServerScope<T>(request: Request, report: (error: unknown) => void, run: () => T, cookieRead?: () => void, rules?: QueryRules): T {
50
+ const cookie = cookieReader(request, () => cookieRead?.())
44
51
 
45
52
  const url = requestUrl(request)
46
53
 
@@ -88,16 +88,16 @@ export function stoppers(request: Request): Pick<RequestContext, 'redirect' | 'n
88
88
  }
89
89
  }
90
90
 
91
- // `ctx.deny(status, { errors, data })` in an action fails the post as `ctx.fail` does, a form re-rendered with the fields and `data`, a call throwing an `ActionError`. A refusal of a message alone, or of the old text form, stops as a guard's does, so a guard run with an action's context refuses the same way.
91
+ // `ctx.deny(status, { message, errors, data })` in an action fails the post as `ctx.fail` does, a form re-rendered with the message, the fields and `data`, a call throwing an `ActionError`. A deny with no options, or the old text form, stops as a guard's does.
92
92
  export function actionStoppers(request: Request): Pick<RequestContext, 'redirect' | 'notFound' | 'deny'> {
93
93
  const { deny: stop, ...rest } = stoppers(request)
94
94
 
95
95
  const deny = (status = 403, second?: string | DenyOptions<ErrorData>, data?: ErrorData): never => {
96
- if (typeof second === 'string' || status < 400 || status > 599)
96
+ if (typeof second === 'string' || !Number.isInteger(status) || status < 400 || status > 599)
97
97
  return stop(status, second as string, data)
98
98
 
99
- if (second === undefined || (second.data === undefined && Object.keys(second.errors ?? {}).length === 0))
100
- return stop(status, second)
99
+ if (second === undefined || ((second.message === undefined || second.message === '') && second.data === undefined && Object.keys(second.errors ?? {}).length === 0))
100
+ return stop(status)
101
101
 
102
102
  // A text `data` with no `message` is the form's message, as `ctx.fail` made it; one with only data or fields has no form message, as `ctx.fail` had none.
103
103
  throw new RefusedError({ status, message: second.message ?? (typeof second.data === 'string' ? second.data : ''), errors: (second.errors ?? {}) as Record<string, string>, data: second.data })
@@ -10,7 +10,7 @@ let online = 0
10
10
 
11
11
  // Served at /api/online: every open connection hears how many there are.${has('auth') ? ' Open to everyone: the root guard would otherwise close it.' : ''}
12
12
  export default api(${has('auth') ? '{ guards: false }' : ''}).ws('/', {
13
- response: s.Object({ online: s.Number() }),
13
+ response: s.object({ online: s.number() }),
14
14
  open(ws) {
15
15
  online++
16
16
  ws.subscribe('online')
@@ -0,0 +1,70 @@
1
+ import type { AxeResults } from '../runtime/dev-a11y'
2
+ import type { A11yViolation } from './page-types'
3
+ import { MissingPeerError, resolvePeer } from '../peers'
4
+ import { withUnreadable } from '../runtime/dev-a11y'
5
+
6
+ type AxeViolation = Omit<A11yViolation, 'nodes'> & { nodes: { target: (string | string[])[], html: string }[] }
7
+
8
+ interface AxeWindow {
9
+ eval: (code: string) => unknown
10
+ axe?: { run: (context: unknown, options: unknown) => Promise<AxeResults<AxeViolation>> }
11
+ }
12
+
13
+ // What axe-core cannot judge without a browser's layout and painting: contrast, and the size and overlap of targets. A test of those runs `page.a11y()` of a browser page.
14
+ const NEEDS_LAYOUT = ['color-contrast', 'target-size', 'scrollable-region-focusable']
15
+
16
+ const axes = new WeakSet<object>()
17
+ let axe: string | undefined
18
+
19
+ // Runs axe-core in a happy-dom document, the whole of `window.document` or the elements `selector` matches, with the rules that need no layout.
20
+ export async function auditDocument(window: AxeWindow & { document: Document }, selector: string | undefined, within?: Element): Promise<A11yViolation[]> {
21
+ if (!axes.has(window)) {
22
+ axe ??= await Bun.file(resolvePeer('axe-core', 'axe-core/axe.min.js')).text()
23
+ window.eval(axe)
24
+ axes.add(window)
25
+ }
26
+
27
+ const root = within ?? window.document
28
+ const target = selector === undefined ? root : root.querySelector(selector)
29
+
30
+ if (target === null)
31
+ throw new Error(`kay: nothing matches ${selector} to check`)
32
+
33
+ const rules = Object.fromEntries(NEEDS_LAYOUT.map(id => [id, { enabled: false }]))
34
+ const results = await window.axe!.run(target, { rules, resultTypes: ['violations'] })
35
+
36
+ return withUnreadable(results).map(({ id, impact, help, helpUrl, tags, nodes }) => ({ id, impact, help, helpUrl, tags, nodes: nodes.map(node => ({ target: node.target.map(part => Array.isArray(part) ? part.join(' >>> ') : part).join(' '), html: node.html })) }))
37
+ }
38
+
39
+ // Checks the markup of a visited page in a document of its own: its scripts never run, as a crawler reads it, and what only a browser lays out is left to `page.a11y()`.
40
+ export async function auditHtml(html: string, selector: string | undefined): Promise<A11yViolation[]> {
41
+ const { Window } = await loadHappyDom()
42
+ const window = new Window({ settings: { disableJavaScriptEvaluation: true, disableJavaScriptFileLoading: true, disableCSSFileLoading: true, handleDisabledFileLoadingAsSuccess: true } })
43
+
44
+ try {
45
+ window.document.write(html)
46
+
47
+ // axe-core is evaluated in the window once the page's own scripts are gone.
48
+ for (const script of window.document.querySelectorAll('script'))
49
+ script.remove()
50
+
51
+ window.happyDOM.settings.disableJavaScriptEvaluation = false
52
+
53
+ return await auditDocument(window as unknown as AxeWindow & { document: Document }, selector)
54
+ }
55
+ finally {
56
+ await window.happyDOM.close()
57
+ }
58
+ }
59
+
60
+ async function loadHappyDom(): Promise<typeof import('happy-dom')> {
61
+ try {
62
+ return await import('happy-dom')
63
+ }
64
+ catch (error) {
65
+ if ((error as { code?: string }).code !== 'ERR_MODULE_NOT_FOUND' && !String(error).includes('Cannot find'))
66
+ throw error
67
+
68
+ throw new MissingPeerError(`happy-dom is not installed, and \`page.a11y()\` of a visited page needs it: run \`bun add -d happy-dom\``)
69
+ }
70
+ }
@@ -0,0 +1,103 @@
1
+ import { existsSync, mkdirSync, rmSync } from 'node:fs'
2
+ import { basename, dirname, join } from 'node:path'
3
+ import process from 'node:process'
4
+ import { callingTestFile } from './screenshot-match'
5
+
6
+ const NAME = /^[\w.-]+(?:\/[\w.-]+)*$/
7
+ const TOKEN = /<!--[\s\S]*?-->|<(script|style|pre|textarea)\b[\s\S]*?<\/\1\s*>|<(?:[^>"']|"[^"]*"|'[^']*')+>|[^<]+/gi
8
+ const COMMENT = /^<!--/
9
+ const OPEN_TAG = /^<([a-z][\w:-]*)/i
10
+ const CLOSE_TAG = /^<\/\s*[a-z]/i
11
+ const RAW = /^<(?:script|style|pre|textarea)\b/i
12
+ const WHITESPACE = /\s+/g
13
+ // Bun names a built file `<name>-<hash>.<ext>`, the hash eight letters and digits; only under `/_kay/`, so an app's own eight-letter slug stays.
14
+ const HASHED_FILE = /(\/_kay\/[\w./-]*?)-[\da-z]{8}(?=\.[a-z\d]+(?:[?"'\s)#]|$))/gi
15
+ // A `?v=` cache-busting version, such as a favicon's.
16
+ const VERSION = /([?&]v=)[\da-f]{6,}/gi
17
+ const NONCE = /(\bnonce=)(?:"[^"]*"|'[^']*'|[^\s>"']+)/gi
18
+ const STAMP_INPUT = /<input\s[^>]*\bname=["']?kay_since\b[^>]*>/gi
19
+ const STAMP_VALUE = /(\bvalue=)(?:"[^"]*"|'[^']*'|[^\s>]+)/i
20
+ const VOID = new Set(['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'source', 'track', 'wbr'])
21
+
22
+ // A page's markup as a snapshot holds it, the same from one build to the next: comments (the hydration markers among them) left out, the hash of each built file's name and of a `?v=` version, each nonce and the stamp of a `minTime` form replaced by a fixed word, and one tag or run of text a line, indented by depth.
23
+ export function normalizeHtml(html: string): string {
24
+ const lines: string[] = []
25
+ let depth = 0
26
+
27
+ for (const token of html.replace(HASHED_FILE, '$1-HASH').replace(VERSION, '$1HASH').replace(NONCE, '$1"NONCE"').replace(STAMP_INPUT, input => input.replace(STAMP_VALUE, '$1"STAMP"')).match(TOKEN) ?? []) {
28
+ if (COMMENT.test(token))
29
+ continue
30
+
31
+ const indent = ' '.repeat(depth)
32
+
33
+ if (RAW.test(token)) {
34
+ lines.push(`${indent}${token.trim()}`)
35
+
36
+ continue
37
+ }
38
+
39
+ if (!token.startsWith('<')) {
40
+ const text = token.replace(WHITESPACE, ' ').trim()
41
+
42
+ if (text !== '')
43
+ lines.push(`${indent}${text}`)
44
+
45
+ continue
46
+ }
47
+
48
+ if (CLOSE_TAG.test(token))
49
+ depth = Math.max(0, depth - 1)
50
+
51
+ lines.push(`${' '.repeat(depth)}${token.replace(WHITESPACE, ' ')}`)
52
+
53
+ const tag = OPEN_TAG.exec(token)?.[1]?.toLowerCase()
54
+
55
+ if (tag !== undefined && !VOID.has(tag) && !token.endsWith('/>'))
56
+ depth++
57
+ }
58
+
59
+ return `${lines.join('\n')}\n`
60
+ }
61
+
62
+ // What a page's `matchHtml` runs: the test file is read off `stack`, taken where the call began.
63
+ export async function matchHtml(stack: string | undefined, html: string, name: string): Promise<void> {
64
+ await matchHtmlFile(normalizeHtml(html), name, callingTestFile(stack, 'matchHtml'))
65
+ }
66
+
67
+ // Compares normalised markup with the baseline `<test dir>/__html__/<test file>/<name>.html`.
68
+ // The baseline is written when there is none, or when `KAY_UPDATE_SNAPSHOTS` is set, and a missing one fails under `CI`; a difference writes `<name>.actual.html` beside it and fails, and a match removes it.
69
+ export async function matchHtmlFile(normalised: string, name: string, testFile: string): Promise<void> {
70
+ if (!NAME.test(name) || name.split('/').includes('..'))
71
+ throw new Error(`kay: matchHtml takes a name of letters, digits, dots, dashes and slashes, not ${JSON.stringify(name)}`)
72
+
73
+ const base = join(dirname(testFile), '__html__', basename(testFile), name)
74
+ const baseline = `${base}.html`
75
+ const actual = `${base}.actual.html`
76
+ const update = (process.env.KAY_UPDATE_SNAPSHOTS ?? '') !== '' && process.env.KAY_UPDATE_SNAPSHOTS !== '0'
77
+
78
+ rmSync(actual, { force: true })
79
+
80
+ if (update || !existsSync(baseline)) {
81
+ if (!update && (process.env.CI ?? '') !== '')
82
+ throw new Error(`kay: matchHtml has no baseline ${baseline} and a CI run writes none: run the test locally and commit it`)
83
+
84
+ mkdirSync(dirname(baseline), { recursive: true })
85
+ await Bun.write(baseline, normalised)
86
+
87
+ return
88
+ }
89
+
90
+ const expected = await Bun.file(baseline).text()
91
+
92
+ if (expected === normalised)
93
+ return
94
+
95
+ await Bun.write(actual, normalised)
96
+
97
+ const before = expected.split('\n')
98
+ const after = normalised.split('\n')
99
+ const line = after.findIndex((text, at) => text !== before[at])
100
+ const at = line === -1 ? after.length : line
101
+
102
+ throw new Error(`kay: the HTML ${name} differs from ${baseline} from line ${at + 1}: expected ${JSON.stringify(before[at] ?? '(end)')}, got ${JSON.stringify(after[at] ?? '(end)')}; see ${actual}, and rewrite the baseline with KAY_UPDATE_SNAPSHOTS=1 if the change is meant`)
103
+ }
package/src/test/index.ts CHANGED
@@ -51,6 +51,7 @@ import { checkOnly, lazyNativePlugins } from './lazy-plugins'
51
51
  import { NativeRequest, NativeURL, withNatives } from './natives'
52
52
  import { pruneTestOutputs, touchOutput, touchOutputIfOld } from './outputs'
53
53
  import { readPage, settledHtml, sitemapUrls } from './page'
54
+ import { pageChecks } from './page-checks'
54
55
  import { testRoot } from './root'
55
56
  import { actionsOf, formUrl, renderedStamp } from './site-actions'
56
57
  import { apiOf } from './site-api'
@@ -366,7 +367,7 @@ async function siteOf(options: TestOptions): Promise<TestSite> {
366
367
  const html = await withNatives(async () => current.text())
367
368
 
368
369
  let settled: Visit['settled'] | undefined
369
- const reading = readPage(html)
370
+ const reading = { ...readPage(html), ...pageChecks(html) }
370
371
 
371
372
  return {
372
373
  url: path,
package/src/test/mount.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { WebStorage } from '../runtime/persist'
2
2
  import type { Interactions } from './interact'
3
+ import type { A11yViolation } from './page-types'
3
4
  import { mkdir, mkdtemp, rm, stat } from 'node:fs/promises'
4
5
  import { dirname, join, resolve } from 'node:path'
5
6
  import process from 'node:process'
@@ -14,6 +15,8 @@ import { COOKIE_NAME } from '../runtime/persist'
14
15
  import { sendValue } from '../runtime/send'
15
16
  import { decodeValue } from '../runtime/wire'
16
17
  import { apiStubs, apiTrees } from '../server/api-modules'
18
+ import { auditDocument } from './a11y-dom'
19
+ import { matchHtml } from './html-snapshot'
17
20
  import { interactions } from './interact'
18
21
  import { lazyNativePlugins } from './lazy-plugins'
19
22
  import { testRoot } from './root'
@@ -26,6 +29,10 @@ export interface Mounted<Props = Record<string, unknown>> extends Interactions {
26
29
  setProps: (props: Partial<Props>) => Promise<void>
27
30
  // Disposes of the component, running its cleanups once, and removes the element.
28
31
  unmount: () => void
32
+ // Checks what the component rendered, or only the elements `selector` matches inside it, with axe-core: what it breaks, none when it passes. Rules about a whole page, such as a heading or a landmark, do not apply to a part, and what needs a browser's layout, such as colour contrast, is left out; needs `axe-core`.
33
+ a11y: (selector?: string) => Promise<A11yViolation[]>
34
+ // Compares the component's markup, normalised as `visit.matchHtml` does, with the baseline `__html__/<test file>/<name>.html`.
35
+ matchHtml: (name: string) => Promise<void>
29
36
  }
30
37
 
31
38
  interface MountModule {
@@ -129,7 +136,7 @@ export async function mountComponent(source: (props: never) => unknown, ...given
129
136
 
130
137
  await settle()
131
138
 
132
- return { root: element, ...interactions(element, settle), setProps: async (next) => {
139
+ return { root: element, ...interactions(element, settle), a11y: async selector => auditDocument(window, selector, element), matchHtml: async name => matchHtml(new Error('the call').stack, element.innerHTML, name), setProps: async (next) => {
133
140
  if (!mounted)
134
141
  return
135
142
 
@@ -0,0 +1,12 @@
1
+ import type { A11yViolation } from './page-types'
2
+ import { auditHtml } from './a11y-dom'
3
+ import { matchHtml } from './html-snapshot'
4
+
5
+ // What a visited page checks itself with: its accessibility, and its HTML against a baseline.
6
+ export function pageChecks(html: string): { a11y: (selector?: string) => Promise<A11yViolation[]>, matchHtml: (name: string) => Promise<void> } {
7
+ return {
8
+ a11y: async selector => auditHtml(html, selector),
9
+ // The call's stack is read here, where it began, to find the test file.
10
+ matchHtml: async name => matchHtml(new Error('the call').stack, html, name),
11
+ }
12
+ }
@@ -12,11 +12,11 @@ const NAME = /^[\w.-]+(?:\/[\w.-]+)*$/
12
12
  const TEST_FILE = /^\s*at (?:.*\()?(?:file:\/\/)?(\/.+?\.test\.[cm]?[jt]sx?):\d+:\d+\)?$/m
13
13
 
14
14
  // The test file calling `matchScreenshot`, read off the stack where the call began, as Bun gives no hook the file of the running test.
15
- export function callingTestFile(stack: string | undefined): string {
15
+ export function callingTestFile(stack: string | undefined, caller = 'matchScreenshot'): string {
16
16
  const found = TEST_FILE.exec(stack ?? '')?.[1]
17
17
 
18
18
  if (found === undefined)
19
- throw new Error('kay: matchScreenshot found no `*.test.ts` file among its callers to keep the baseline beside')
19
+ throw new Error(`kay: ${caller} found no \`*.test.ts\` file among its callers to keep the baseline beside`)
20
20
 
21
21
  return found
22
22
  }
@@ -131,13 +131,17 @@ function versionOf(path: string): string {
131
131
  return stat === undefined ? 'missing' : `${stat.mtimeMs}:${stat.size}`
132
132
  }
133
133
 
134
- function importsOf(path: string, loader: 'ts' | 'tsx' | 'js' | 'jsx'): { path: string }[] {
134
+ function transpilerFor(loader: 'ts' | 'tsx' | 'js' | 'jsx'): Bun.Transpiler {
135
135
  let transpiler = transpilers.get(loader)
136
136
 
137
137
  if (!transpiler)
138
138
  transpilers.set(loader, transpiler = new Bun.Transpiler({ loader }))
139
139
 
140
- return transpiler.scanImports(readFileSync(path, 'utf8'))
140
+ return transpiler
141
+ }
142
+
143
+ function importsOf(path: string, loader: 'ts' | 'tsx' | 'js' | 'jsx'): { path: string }[] {
144
+ return transpilerFor(loader).scanImports(readFileSync(path, 'utf8'))
141
145
  }
142
146
 
143
147
  // What one file asks of the bundle, from its own source alone.
@@ -310,15 +314,33 @@ export function sharedModules(apiDirs: string[]): Bun.BunPlugin {
310
314
  const stars = [...text.matchAll(EXPORT_STAR)]
311
315
  let contents = text
312
316
 
317
+ if (stars.length === 0)
318
+ return undefined
319
+
320
+ const loader = SCANNED.get(extname(path))!
321
+ // ESM leaves out of a star the names the file exports itself and those two stars export; named re-exports would be a duplicate export instead.
322
+ const taken = new Set<string>(transpilerFor(loader).scan(text).exports)
323
+ const starred: { statement: string, quote: string, specifier: string, names: string[] | undefined }[] = []
324
+ const counts = new Map<string, number>()
325
+
313
326
  for (const [statement, quote, specifier] of stars) {
314
327
  const shared = sharedFile(specifier!, path)
328
+ const names = shared === undefined ? undefined : Object.keys(await import(shared) as object).filter(name => name !== 'default')
329
+
330
+ starred.push({ statement, quote: quote!, specifier: specifier!, names })
331
+
332
+ for (const name of new Set(names))
333
+ counts.set(name, (counts.get(name) ?? 0) + 1)
334
+ }
315
335
 
316
- if (shared === undefined)
336
+ for (const { statement, quote, specifier, names } of starred) {
337
+ if (names === undefined)
317
338
  continue
318
339
 
319
- const names = Object.keys(await import(shared) as object).filter(name => name !== 'default')
340
+ const kept = names.filter(name => !taken.has(name) && counts.get(name) === 1)
320
341
 
321
- contents = contents.replace(statement, names.length === 0 ? `import ${quote}${specifier}${quote}` : `export { ${names.join(', ')} } from ${quote}${specifier}${quote}`)
342
+ // A function replacer, as a name with `$` is no replacement pattern.
343
+ contents = contents.replace(statement, () => kept.length === 0 ? `import ${quote}${specifier}${quote}` : `export { ${kept.join(', ')} } from ${quote}${specifier}${quote}`)
322
344
  }
323
345
 
324
346
  return contents === text ? undefined : { contents, loader: SCANNED.get(extname(path))! }
@@ -9,7 +9,7 @@ import type { PluginInput } from '../server/plugin'
9
9
  import type { TestContent } from './content'
10
10
  import type { FetchStub, FetchStubRoutes } from './outgoing'
11
11
  import type { PageReading } from './page'
12
- import type { BrowserOptions, TestPage } from './page-types'
12
+ import type { A11yViolation, BrowserOptions, TestPage } from './page-types'
13
13
 
14
14
  export interface SignInHook {
15
15
  // The library, such as `auth`: a second hook of the same name replaces the first, so `test(site)` called in each test joins once.
@@ -52,6 +52,10 @@ export interface Visit extends PageReading {
52
52
  css: () => Promise<string>
53
53
  // The stamp the form posting to `action` rendered with, which `submit` takes as its `stamp`; `undefined` for a page with no such form or a form with no stamp.
54
54
  stamp: (action: Pick<Action, 'url'>) => string | undefined
55
+ // Checks the markup with axe-core in a document of its own, or only the elements `selector` matches, as `page.a11y()` of a browser page does: what it breaks, none when it passes. The page's scripts never run and what needs a browser's layout, such as colour contrast and target size, is left out; needs `axe-core` and `@happy-dom/global-registrator` installed.
56
+ a11y: (selector?: string) => Promise<A11yViolation[]>
57
+ // Compares the page's HTML, normalised, with the baseline `__html__/<test file>/<name>.html` beside the test file: comments (hydration markers) left out, the hash of each built file's name, nonces and the stamp of a `minTime` form replaced by a fixed word, one tag or run of text a line. The baseline is written when there is none, and rewritten when `KAY_UPDATE_SNAPSHOTS=1` is set; a CI run fails for a missing one.
58
+ matchHtml: (name: string) => Promise<void>
55
59
  }
56
60
 
57
61
  export interface VisitInit {
@@ -4,5 +4,5 @@ export declare function declaredProperties(css: string): string[];
4
4
  export declare function contextOf(name: string): string;
5
5
  export declare function buildClassTable(root: string, words: Iterable<string>, references: string[]): Promise<ClassTable | undefined>;
6
6
  export declare function isUtility(design: Design, word: string): boolean;
7
- export declare function mergesAtRuntime(file: string): boolean;
7
+ export declare function mergesAtRuntime(file: string, uiFiles?: readonly string[]): boolean;
8
8
  //# sourceMappingURL=class-table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"class-table.d.ts","sourceRoot":"","sources":["../../src/build/class-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAiExD,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CA8DxD;AAGD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAmB9C;AA6ED,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CA2FlI;AAGD,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE/D;AAKD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD"}
1
+ {"version":3,"file":"class-table.d.ts","sourceRoot":"","sources":["../../src/build/class-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAiExD,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CA8DxD;AAGD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAmB9C;AA6ED,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CA2FlI;AAGD,wBAAgB,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AAG,SAAS,CAAA;IAE7B,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;IAEnC,GAAG,CAAC,EAAE,UAAU,EAAE,GAAG,SAAS,CAAA;IAC9B,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IAE/B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAEjC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAE5B,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAE/B,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,SAAS,CAAA;IAEhD,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAEpC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,SAAS,CAAA;IAEhE,QAAQ,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;CACpC;AA4ED,wBAAgB,GAAG,CAAC,OAAO,GAAE,gBAAqB,GAAG,SAAS,CAE7D;AAGD,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAqNjF"}
@@ -16,6 +16,7 @@ export interface TransformOptions {
16
16
  inspect?: boolean | undefined;
17
17
  classTable?: ClassTable | undefined;
18
18
  variant?: string | undefined;
19
+ writtenProps?: ReadonlySet<string> | undefined;
19
20
  classMerge?: boolean | undefined;
20
21
  }
21
22
  export interface Analysis {
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/build/transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,aAAa,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B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AC,CAgC9L;AAGD,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAO7D;AASD,wBAAsB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEzE;AAGD,wBAAsB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEvE;AAeD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAKtG;AAqBD,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,CAevH"}
@@ -0,0 +1,5 @@
1
+ export declare function layerFilesOf(root: string): string[];
2
+ export declare function setUiLayers(root: string, extensions: readonly {
3
+ ui?: string | undefined;
4
+ }[] | undefined): void;
5
+ //# sourceMappingURL=ui-layers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-layers.d.ts","sourceRoot":"","sources":["../../src/build/ui-layers.ts"],"names":[],"mappings":"AAiBA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAEnD;AAGD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS;IAAE,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,EAAE,GAAG,SAAS,GAAG,IAAI,CAO9G"}
@@ -28,6 +28,7 @@ export interface UiSource {
28
28
  components: UiComponent[];
29
29
  problems: UiProblem[];
30
30
  index?: NameIndex | undefined;
31
+ base?: string | undefined;
31
32
  }
32
33
  export declare const KAY_EXTENSION: RegExp;
33
34
  export declare function keyOf(property: ObjectProperty): string | undefined;
@@ -35,10 +36,16 @@ export declare function classesOf(node: Node, lookup?: (name: string) => string
35
36
  export declare function exported(program: Program): Node | undefined;
36
37
  export declare function isComponentName(key: string): boolean;
37
38
  export declare function forgetNames(ui: UiSource): void;
39
+ export declare function baseOf(ui: UiSource): string;
38
40
  export declare function componentsNamed(ui: UiSource, name: string): string[];
39
41
  export declare function componentMatches(ui: UiSource, component: UiComponent): string[];
40
42
  export declare function componentFile(ui: UiSource, component: UiComponent): string | undefined;
41
43
  export declare function uiOf(root: string): UiSource | undefined;
44
+ export declare function uiLayersOf(root: string): UiSource[];
45
+ export declare function uiLayerClasses(root: string): string[];
46
+ export declare function uiPathsOf(root: string): string[];
47
+ export declare function uiLayerPathsOf(root: string): string[];
48
+ export declare function uiFilesOf(root: string): string[];
42
49
  export declare function uiEntryOf(root: string, file: string): UiEntry | undefined;
43
50
  export declare function uiKeyOf(root: string, file: string): string;
44
51
  export interface UiConfigEntry {
@@ -1 +1 @@
1
- {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/build/ui.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA4B,cAAc,EAAE,MAAM,YAAY,CAAA;AAC1E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAS5C,eAAO,MAAM,OAAO,cAAc,CAAA;AAElC,MAAM,WAAW,SAAU,SAAQ,IAAI;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B;AAED,MAAM,WAAW,WAAW;IAE1B,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,IAAI,CAAA;IAEV,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,KAAK,EAAE,OAAO,CAAA;IAEd,KAAK,EAAE;QAAE,IAAI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GAAG,SAAS,CAiBtF;AAyCD,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAqBvD;AAKD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,EAAE,CAyBnD;AAGD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAMrD;AAGD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAEhD;AAGD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAErD;AAGD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAEhD;AA4BD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAwBzE;AAGD,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,MAAM,WAAW,aAAa;IAE5B,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,IAAI,CAAA;IAEb,KAAK,EAAE,IAAI,CAAA;CACZ;AAGD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,GAAG,SAAS,CAsBzE"}
@@ -3,7 +3,7 @@ export declare function variantFile(input: string): string;
3
3
  export declare function usesNames(source: string, file?: string): string[];
4
4
  export declare function specializedSource(source: string, present: ReadonlySet<string>, file?: string): string;
5
5
  export declare const ANY: unique symbol;
6
- export declare function propsWritten(source: string, locals: readonly string[]): Map<string, Set<string> | typeof ANY>;
6
+ export declare function propsWritten(source: string, locals: readonly string[], defaults?: ReadonlyMap<string, ReadonlySet<string>>): Map<string, Set<string> | typeof ANY>;
7
7
  export declare class VariantIndex {
8
8
  private readonly files;
9
9
  private readonly union;
@@ -1 +1 @@
1
- {"version":3,"file":"variants.d.ts","sourceRoot":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ions;
8
8
  workers: string[];
9
+ uiLayers: string[];
9
10
  }
10
11
  export interface WorkerResult {
11
12
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"worker-bundle.d.ts","sourceRoot":"","sources":["../../src/build/worker-bundle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAShD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC9C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,OAAO,EAAE,gBAAgB,CAAA;IAEzB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,EAAE,MAAM,EAAE,CAAA;IAEhB,KAAK,EAAE,OAAO,CAAA;CACf"}
1
+ {"version":3,"file":"worker-bundle.d.ts","sourceRoot":"","sources":["../../src/build/worker-bundle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAUhD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC9C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,OAAO,EAAE,gBAAgB,CAAA;IAEzB,OAAO,EAAE,MAAM,EAAE,CAAA;IAEjB,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,EAAE,MAAM,EAAE,CAAA;IAEhB,KAAK,EAAE,OAAO,CAAA;CACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"boot.d.ts","sourceRoot":"","sources":["../../src/check/boot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AA+BnD,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,GAAE,cAAc,EAAO,EAAE,OAAO,CAAC,EAAE,aAAa,EAAE,gBAAgB,GAAE,eAAe,EAAO,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAwJnM;AAID,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAmB7F"}
1
+ {"version":3,"file":"boot.d.ts","sourceRoot":"","sources":["../../src/check/boot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AA+BnD,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,GAAE,cAAc,EAAO,EAAE,OAAO,CAAC,EAAE,aAAa,EAAE,gBAAgB,GAAE,eAAe,EAAO,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CA0JnM;AAID,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAmB7F"}
@@ -0,0 +1,7 @@
1
+ import type { CheckDiagnostic } from '.';
2
+ import type { Span } from '../compiler/ast';
3
+ import type { LintLevels } from '../compiler/lints';
4
+ import type { OldFormLint } from './handler-events';
5
+ export declare function callResultLint(message: string, source: string, span: Span | undefined, kay: boolean): OldFormLint | undefined;
6
+ export declare function moduleCallResult(diagnostic: CheckDiagnostic, levels: LintLevels | undefined): Promise<Pick<CheckDiagnostic, 'code' | 'severity' | 'message' | 'help' | 'fixes'> | undefined>;
7
+ //# sourceMappingURL=call-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"call-result.d.ts","sourceRoot":"","sources":["../../src/check/call-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AACxC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAiKnD,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,SAAS,EAAE,GAAG,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAmD7H;AAGD,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,GAAG,SAAS,CAAC,CAsBlM"}
@@ -1 +1 @@
1
- {"version":3,"file":"config-objects.d.ts","sourceRoot":"","sources":["../../src/check/config-objects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,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