@velarscript/web 0.31.0 → 0.33.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 (393) hide show
  1. package/README.md +1 -1
  2. package/dist/analysis/calls/intrinsics/config.d.ts +10 -0
  3. package/dist/analysis/calls/intrinsics/config.d.ts.map +1 -0
  4. package/dist/analysis/calls/intrinsics/config.js +19 -0
  5. package/dist/analysis/calls/intrinsics/config.js.map +1 -0
  6. package/dist/analysis/calls/intrinsics/forms.d.ts +10 -0
  7. package/dist/analysis/calls/intrinsics/forms.d.ts.map +1 -0
  8. package/dist/analysis/calls/intrinsics/forms.js +38 -0
  9. package/dist/analysis/calls/intrinsics/forms.js.map +1 -0
  10. package/dist/analysis/calls/intrinsics/http.d.ts +10 -0
  11. package/dist/analysis/calls/intrinsics/http.d.ts.map +1 -0
  12. package/dist/analysis/calls/intrinsics/http.js +37 -0
  13. package/dist/analysis/calls/intrinsics/http.js.map +1 -0
  14. package/dist/analysis/calls/intrinsics/reactive.d.ts +10 -0
  15. package/dist/analysis/calls/intrinsics/reactive.d.ts.map +1 -0
  16. package/dist/analysis/calls/intrinsics/reactive.js +30 -0
  17. package/dist/analysis/calls/intrinsics/reactive.js.map +1 -0
  18. package/dist/analysis/calls/intrinsics/storage.d.ts +16 -0
  19. package/dist/analysis/calls/intrinsics/storage.d.ts.map +1 -0
  20. package/dist/analysis/calls/intrinsics/storage.js +91 -0
  21. package/dist/analysis/calls/intrinsics/storage.js.map +1 -0
  22. package/dist/analysis/calls/intrinsics/web.d.ts +10 -0
  23. package/dist/analysis/calls/intrinsics/web.d.ts.map +1 -0
  24. package/dist/analysis/calls/intrinsics/web.js +100 -0
  25. package/dist/analysis/calls/intrinsics/web.js.map +1 -0
  26. package/dist/analysis/calls/intrinsics.d.ts +13 -0
  27. package/dist/analysis/calls/intrinsics.d.ts.map +1 -0
  28. package/dist/analysis/calls/intrinsics.js +31 -0
  29. package/dist/analysis/calls/intrinsics.js.map +1 -0
  30. package/dist/analysis/components/contracts.d.ts +19 -0
  31. package/dist/analysis/components/contracts.d.ts.map +1 -0
  32. package/dist/analysis/components/contracts.js +83 -0
  33. package/dist/analysis/components/contracts.js.map +1 -0
  34. package/dist/analysis/components/declaration.d.ts +4 -0
  35. package/dist/analysis/components/declaration.d.ts.map +1 -0
  36. package/dist/analysis/components/declaration.js +163 -0
  37. package/dist/analysis/components/declaration.js.map +1 -0
  38. package/dist/analysis/components/host.d.ts +61 -0
  39. package/dist/analysis/components/host.d.ts.map +1 -0
  40. package/dist/analysis/components/host.js +22 -0
  41. package/dist/analysis/components/host.js.map +1 -0
  42. package/dist/analysis/components/lifecycle.d.ts +22 -0
  43. package/dist/analysis/components/lifecycle.d.ts.map +1 -0
  44. package/dist/analysis/components/lifecycle.js +33 -0
  45. package/dist/analysis/components/lifecycle.js.map +1 -0
  46. package/dist/analysis/components/ownership.d.ts +74 -0
  47. package/dist/analysis/components/ownership.d.ts.map +1 -0
  48. package/dist/analysis/components/ownership.js +106 -0
  49. package/dist/analysis/components/ownership.js.map +1 -0
  50. package/dist/analysis/declarations.d.ts +99 -0
  51. package/dist/analysis/declarations.d.ts.map +1 -0
  52. package/dist/analysis/declarations.js +176 -0
  53. package/dist/analysis/declarations.js.map +1 -0
  54. package/dist/analysis/inference.d.ts +75 -0
  55. package/dist/analysis/inference.d.ts.map +1 -0
  56. package/dist/analysis/inference.js +257 -0
  57. package/dist/analysis/inference.js.map +1 -0
  58. package/dist/analysis/jsx/attributes.d.ts +103 -0
  59. package/dist/analysis/jsx/attributes.d.ts.map +1 -0
  60. package/dist/analysis/jsx/attributes.js +601 -0
  61. package/dist/analysis/jsx/attributes.js.map +1 -0
  62. package/dist/analysis/jsx/elements.d.ts +17 -0
  63. package/dist/analysis/jsx/elements.d.ts.map +1 -0
  64. package/dist/analysis/jsx/elements.js +213 -0
  65. package/dist/analysis/jsx/elements.js.map +1 -0
  66. package/dist/analysis/jsx/host.d.ts +61 -0
  67. package/dist/analysis/jsx/host.d.ts.map +1 -0
  68. package/dist/analysis/jsx/host.js +15 -0
  69. package/dist/analysis/jsx/host.js.map +1 -0
  70. package/dist/analysis/jsx/keys.d.ts +15 -0
  71. package/dist/analysis/jsx/keys.d.ts.map +1 -0
  72. package/dist/analysis/jsx/keys.js +67 -0
  73. package/dist/analysis/jsx/keys.js.map +1 -0
  74. package/dist/analysis/jsx/security.d.ts +29 -0
  75. package/dist/analysis/jsx/security.d.ts.map +1 -0
  76. package/dist/analysis/jsx/security.js +61 -0
  77. package/dist/analysis/jsx/security.js.map +1 -0
  78. package/dist/analysis/jsx-detection.d.ts +49 -0
  79. package/dist/analysis/jsx-detection.d.ts.map +1 -0
  80. package/dist/analysis/jsx-detection.js +196 -0
  81. package/dist/analysis/jsx-detection.js.map +1 -0
  82. package/dist/analysis/keyed-rebuild.d.ts +148 -0
  83. package/dist/analysis/keyed-rebuild.d.ts.map +1 -0
  84. package/dist/analysis/keyed-rebuild.js +299 -0
  85. package/dist/analysis/keyed-rebuild.js.map +1 -0
  86. package/dist/analysis/keyframes-analysis.d.ts +6 -0
  87. package/dist/analysis/keyframes-analysis.d.ts.map +1 -0
  88. package/dist/analysis/keyframes-analysis.js +79 -0
  89. package/dist/analysis/keyframes-analysis.js.map +1 -0
  90. package/dist/analysis/look/builders.d.ts +29 -0
  91. package/dist/analysis/look/builders.d.ts.map +1 -0
  92. package/dist/analysis/look/builders.js +174 -0
  93. package/dist/analysis/look/builders.js.map +1 -0
  94. package/dist/analysis/look/conditions.d.ts +13 -0
  95. package/dist/analysis/look/conditions.d.ts.map +1 -0
  96. package/dist/analysis/look/conditions.js +84 -0
  97. package/dist/analysis/look/conditions.js.map +1 -0
  98. package/dist/analysis/look/edits.d.ts +36 -0
  99. package/dist/analysis/look/edits.d.ts.map +1 -0
  100. package/dist/analysis/look/edits.js +80 -0
  101. package/dist/analysis/look/edits.js.map +1 -0
  102. package/dist/analysis/look/entries.d.ts +56 -0
  103. package/dist/analysis/look/entries.d.ts.map +1 -0
  104. package/dist/analysis/look/entries.js +223 -0
  105. package/dist/analysis/look/entries.js.map +1 -0
  106. package/dist/analysis/look/host.d.ts +47 -0
  107. package/dist/analysis/look/host.d.ts.map +1 -0
  108. package/dist/analysis/look/host.js +16 -0
  109. package/dist/analysis/look/host.js.map +1 -0
  110. package/dist/analysis/look/tokens.d.ts +75 -0
  111. package/dist/analysis/look/tokens.d.ts.map +1 -0
  112. package/dist/analysis/look/tokens.js +156 -0
  113. package/dist/analysis/look/tokens.js.map +1 -0
  114. package/dist/analysis/look/values.d.ts +45 -0
  115. package/dist/analysis/look/values.d.ts.map +1 -0
  116. package/dist/analysis/look/values.js +148 -0
  117. package/dist/analysis/look/values.js.map +1 -0
  118. package/dist/analysis/look-conditions.d.ts +47 -0
  119. package/dist/analysis/look-conditions.d.ts.map +1 -0
  120. package/dist/analysis/look-conditions.js +157 -0
  121. package/dist/analysis/look-conditions.js.map +1 -0
  122. package/dist/analysis/look-sites.d.ts +62 -0
  123. package/dist/analysis/look-sites.d.ts.map +1 -0
  124. package/dist/analysis/look-sites.js +121 -0
  125. package/dist/analysis/look-sites.js.map +1 -0
  126. package/dist/analysis/look-values.d.ts +19 -0
  127. package/dist/analysis/look-values.d.ts.map +1 -1
  128. package/dist/analysis/look-values.js +38 -0
  129. package/dist/analysis/look-values.js.map +1 -1
  130. package/dist/analysis/look-vocabulary-guidance.d.ts +76 -0
  131. package/dist/analysis/look-vocabulary-guidance.d.ts.map +1 -0
  132. package/dist/analysis/look-vocabulary-guidance.js +338 -0
  133. package/dist/analysis/look-vocabulary-guidance.js.map +1 -0
  134. package/dist/analysis/media-conditions.d.ts +33 -0
  135. package/dist/analysis/media-conditions.d.ts.map +1 -0
  136. package/dist/analysis/media-conditions.js +92 -0
  137. package/dist/analysis/media-conditions.js.map +1 -0
  138. package/dist/analysis/program-passes.d.ts +106 -0
  139. package/dist/analysis/program-passes.d.ts.map +1 -0
  140. package/dist/analysis/program-passes.js +149 -0
  141. package/dist/analysis/program-passes.js.map +1 -0
  142. package/dist/analysis/reactivity/bindings.d.ts +37 -0
  143. package/dist/analysis/reactivity/bindings.d.ts.map +1 -0
  144. package/dist/analysis/reactivity/bindings.js +88 -0
  145. package/dist/analysis/reactivity/bindings.js.map +1 -0
  146. package/dist/analysis/reactivity/derived.d.ts +39 -0
  147. package/dist/analysis/reactivity/derived.d.ts.map +1 -0
  148. package/dist/analysis/reactivity/derived.js +80 -0
  149. package/dist/analysis/reactivity/derived.js.map +1 -0
  150. package/dist/analysis/reactivity/host.d.ts +38 -0
  151. package/dist/analysis/reactivity/host.d.ts.map +1 -0
  152. package/dist/analysis/reactivity/host.js +14 -0
  153. package/dist/analysis/reactivity/host.js.map +1 -0
  154. package/dist/analysis/reactivity/retired-accessors.d.ts +82 -0
  155. package/dist/analysis/reactivity/retired-accessors.d.ts.map +1 -0
  156. package/dist/analysis/reactivity/retired-accessors.js +118 -0
  157. package/dist/analysis/reactivity/retired-accessors.js.map +1 -0
  158. package/dist/analysis/renderable.d.ts +47 -0
  159. package/dist/analysis/renderable.d.ts.map +1 -0
  160. package/dist/analysis/renderable.js +105 -0
  161. package/dist/analysis/renderable.js.map +1 -0
  162. package/dist/analysis/routes.d.ts +64 -0
  163. package/dist/analysis/routes.d.ts.map +1 -0
  164. package/dist/analysis/routes.js +182 -0
  165. package/dist/analysis/routes.js.map +1 -0
  166. package/dist/analysis/url-attributes.d.ts +12 -0
  167. package/dist/analysis/url-attributes.d.ts.map +1 -0
  168. package/dist/analysis/url-attributes.js +48 -0
  169. package/dist/analysis/url-attributes.js.map +1 -0
  170. package/dist/analysis/watch-cycles.d.ts +102 -0
  171. package/dist/analysis/watch-cycles.d.ts.map +1 -1
  172. package/dist/analysis/watch-cycles.js +240 -1
  173. package/dist/analysis/watch-cycles.js.map +1 -1
  174. package/dist/analysis/watch-subject.d.ts +45 -0
  175. package/dist/analysis/watch-subject.d.ts.map +1 -0
  176. package/dist/analysis/watch-subject.js +272 -0
  177. package/dist/analysis/watch-subject.js.map +1 -0
  178. package/dist/analysis/web-types.d.ts +27 -0
  179. package/dist/analysis/web-types.d.ts.map +1 -0
  180. package/dist/analysis/web-types.js +170 -0
  181. package/dist/analysis/web-types.js.map +1 -0
  182. package/dist/analyzer.d.ts +18 -617
  183. package/dist/analyzer.d.ts.map +1 -1
  184. package/dist/analyzer.js +211 -4853
  185. package/dist/analyzer.js.map +1 -1
  186. package/dist/compiler.d.ts +20 -0
  187. package/dist/compiler.d.ts.map +1 -1
  188. package/dist/compiler.js +31 -864
  189. package/dist/compiler.js.map +1 -1
  190. package/dist/documentation.d.ts +28 -0
  191. package/dist/documentation.d.ts.map +1 -0
  192. package/dist/documentation.js +67 -0
  193. package/dist/documentation.js.map +1 -0
  194. package/dist/editor/completions.d.ts +12 -0
  195. package/dist/editor/completions.d.ts.map +1 -0
  196. package/dist/editor/completions.js +6 -0
  197. package/dist/editor/completions.js.map +1 -0
  198. package/dist/editor/jsx-completion.d.ts +12 -0
  199. package/dist/editor/jsx-completion.d.ts.map +1 -0
  200. package/dist/editor/jsx-completion.js +137 -0
  201. package/dist/editor/jsx-completion.js.map +1 -0
  202. package/dist/editor/look-completion.d.ts +29 -0
  203. package/dist/editor/look-completion.d.ts.map +1 -0
  204. package/dist/editor/look-completion.js +159 -0
  205. package/dist/editor/look-completion.js.map +1 -0
  206. package/dist/editor.d.ts.map +1 -1
  207. package/dist/editor.js +12 -288
  208. package/dist/editor.js.map +1 -1
  209. package/dist/emit/components.d.ts +33 -0
  210. package/dist/emit/components.d.ts.map +1 -0
  211. package/dist/emit/components.js +135 -0
  212. package/dist/emit/components.js.map +1 -0
  213. package/dist/emit/jsx.d.ts +57 -0
  214. package/dist/emit/jsx.d.ts.map +1 -0
  215. package/dist/emit/jsx.js +384 -0
  216. package/dist/emit/jsx.js.map +1 -0
  217. package/dist/emit/look-css.d.ts +44 -0
  218. package/dist/emit/look-css.d.ts.map +1 -0
  219. package/dist/emit/look-css.js +177 -0
  220. package/dist/emit/look-css.js.map +1 -0
  221. package/dist/emit/look.d.ts +39 -0
  222. package/dist/emit/look.d.ts.map +1 -0
  223. package/dist/emit/look.js +218 -0
  224. package/dist/emit/look.js.map +1 -0
  225. package/dist/emit/runtime-imports.d.ts +40 -0
  226. package/dist/emit/runtime-imports.d.ts.map +1 -0
  227. package/dist/emit/runtime-imports.js +188 -0
  228. package/dist/emit/runtime-imports.js.map +1 -0
  229. package/dist/emitter.d.ts +15 -68
  230. package/dist/emitter.d.ts.map +1 -1
  231. package/dist/emitter.js +79 -1008
  232. package/dist/emitter.js.map +1 -1
  233. package/dist/look/animation.d.ts +7 -0
  234. package/dist/look/animation.d.ts.map +1 -0
  235. package/dist/look/animation.js +13 -0
  236. package/dist/look/animation.js.map +1 -0
  237. package/dist/look/builders.d.ts +35 -0
  238. package/dist/look/builders.d.ts.map +1 -0
  239. package/dist/look/builders.js +74 -0
  240. package/dist/look/builders.js.map +1 -0
  241. package/dist/look/css-functions.d.ts +28 -0
  242. package/dist/look/css-functions.d.ts.map +1 -0
  243. package/dist/look/css-functions.js +54 -0
  244. package/dist/look/css-functions.js.map +1 -0
  245. package/dist/look/keyword-sets.d.ts +41 -0
  246. package/dist/look/keyword-sets.d.ts.map +1 -0
  247. package/dist/look/keyword-sets.js +117 -0
  248. package/dist/look/keyword-sets.js.map +1 -0
  249. package/dist/look/keywords.d.ts +55 -0
  250. package/dist/look/keywords.d.ts.map +1 -0
  251. package/dist/look/keywords.js +387 -0
  252. package/dist/look/keywords.js.map +1 -0
  253. package/dist/look/media.d.ts +19 -0
  254. package/dist/look/media.d.ts.map +1 -0
  255. package/dist/look/media.js +27 -0
  256. package/dist/look/media.js.map +1 -0
  257. package/dist/look/naming.d.ts +9 -0
  258. package/dist/look/naming.d.ts.map +1 -0
  259. package/dist/look/naming.js +45 -0
  260. package/dist/look/naming.js.map +1 -0
  261. package/dist/look/properties.d.ts +16 -0
  262. package/dist/look/properties.d.ts.map +1 -0
  263. package/dist/look/properties.js +52 -0
  264. package/dist/look/properties.js.map +1 -0
  265. package/dist/look/shorthands.d.ts +25 -0
  266. package/dist/look/shorthands.d.ts.map +1 -0
  267. package/dist/look/shorthands.js +130 -0
  268. package/dist/look/shorthands.js.map +1 -0
  269. package/dist/look/tokens.d.ts +38 -0
  270. package/dist/look/tokens.d.ts.map +1 -0
  271. package/dist/look/tokens.js +59 -0
  272. package/dist/look/tokens.js.map +1 -0
  273. package/dist/look/units.d.ts +24 -0
  274. package/dist/look/units.d.ts.map +1 -0
  275. package/dist/look/units.js +33 -0
  276. package/dist/look/units.js.map +1 -0
  277. package/dist/look.d.ts +32 -227
  278. package/dist/look.d.ts.map +1 -1
  279. package/dist/look.js +28 -933
  280. package/dist/look.js.map +1 -1
  281. package/dist/module-roster.d.ts +16 -0
  282. package/dist/module-roster.d.ts.map +1 -0
  283. package/dist/module-roster.js +28 -0
  284. package/dist/module-roster.js.map +1 -0
  285. package/dist/modules/app.d.ts +9 -0
  286. package/dist/modules/app.d.ts.map +1 -0
  287. package/dist/modules/app.js +20 -0
  288. package/dist/modules/app.js.map +1 -0
  289. package/dist/modules/browser-test.d.ts +9 -0
  290. package/dist/modules/browser-test.d.ts.map +1 -0
  291. package/dist/modules/browser-test.js +67 -0
  292. package/dist/modules/browser-test.js.map +1 -0
  293. package/dist/modules/browser.d.ts +10 -0
  294. package/dist/modules/browser.d.ts.map +1 -0
  295. package/dist/modules/browser.js +89 -0
  296. package/dist/modules/browser.js.map +1 -0
  297. package/dist/modules/config.d.ts +9 -0
  298. package/dist/modules/config.d.ts.map +1 -0
  299. package/dist/modules/config.js +14 -0
  300. package/dist/modules/config.js.map +1 -0
  301. package/dist/modules/files.d.ts +9 -0
  302. package/dist/modules/files.d.ts.map +1 -0
  303. package/dist/modules/files.js +16 -0
  304. package/dist/modules/files.js.map +1 -0
  305. package/dist/modules/forms.d.ts +9 -0
  306. package/dist/modules/forms.d.ts.map +1 -0
  307. package/dist/modules/forms.js +26 -0
  308. package/dist/modules/forms.js.map +1 -0
  309. package/dist/modules/http.d.ts +9 -0
  310. package/dist/modules/http.d.ts.map +1 -0
  311. package/dist/modules/http.js +127 -0
  312. package/dist/modules/http.js.map +1 -0
  313. package/dist/modules/look.d.ts +9 -0
  314. package/dist/modules/look.d.ts.map +1 -0
  315. package/dist/modules/look.js +58 -0
  316. package/dist/modules/look.js.map +1 -0
  317. package/dist/modules/realtime.d.ts +9 -0
  318. package/dist/modules/realtime.d.ts.map +1 -0
  319. package/dist/modules/realtime.js +163 -0
  320. package/dist/modules/realtime.js.map +1 -0
  321. package/dist/modules/storage.d.ts +9 -0
  322. package/dist/modules/storage.d.ts.map +1 -0
  323. package/dist/modules/storage.js +59 -0
  324. package/dist/modules/storage.js.map +1 -0
  325. package/dist/modules/types.d.ts +78 -0
  326. package/dist/modules/types.d.ts.map +1 -0
  327. package/dist/modules/types.js +154 -0
  328. package/dist/modules/types.js.map +1 -0
  329. package/dist/modules/web.d.ts +9 -0
  330. package/dist/modules/web.d.ts.map +1 -0
  331. package/dist/modules/web.js +63 -0
  332. package/dist/modules/web.js.map +1 -0
  333. package/dist/modules/websocket.d.ts +11 -0
  334. package/dist/modules/websocket.d.ts.map +1 -0
  335. package/dist/modules/websocket.js +75 -0
  336. package/dist/modules/websocket.js.map +1 -0
  337. package/dist/parser/expressions/jsx.d.ts +17 -0
  338. package/dist/parser/expressions/jsx.d.ts.map +1 -0
  339. package/dist/parser/expressions/jsx.js +43 -0
  340. package/dist/parser/expressions/jsx.js.map +1 -0
  341. package/dist/parser/expressions/keyframes.d.ts +15 -0
  342. package/dist/parser/expressions/keyframes.d.ts.map +1 -0
  343. package/dist/parser/expressions/keyframes.js +33 -0
  344. package/dist/parser/expressions/keyframes.js.map +1 -0
  345. package/dist/parser/expressions/look.d.ts +16 -0
  346. package/dist/parser/expressions/look.d.ts.map +1 -0
  347. package/dist/parser/expressions/look.js +37 -0
  348. package/dist/parser/expressions/look.js.map +1 -0
  349. package/dist/parser/expressions/visual-block.d.ts +17 -0
  350. package/dist/parser/expressions/visual-block.d.ts.map +1 -0
  351. package/dist/parser/expressions/visual-block.js +21 -0
  352. package/dist/parser/expressions/visual-block.js.map +1 -0
  353. package/dist/parser/keyframes-source.d.ts +24 -0
  354. package/dist/parser/keyframes-source.d.ts.map +1 -0
  355. package/dist/parser/keyframes-source.js +133 -0
  356. package/dist/parser/keyframes-source.js.map +1 -0
  357. package/dist/parser/look-source.d.ts +25 -0
  358. package/dist/parser/look-source.d.ts.map +1 -0
  359. package/dist/parser/look-source.js +189 -0
  360. package/dist/parser/look-source.js.map +1 -0
  361. package/dist/parser/spans.d.ts +24 -0
  362. package/dist/parser/spans.d.ts.map +1 -0
  363. package/dist/parser/spans.js +113 -0
  364. package/dist/parser/spans.js.map +1 -0
  365. package/dist/parser/statements/components.d.ts +37 -0
  366. package/dist/parser/statements/components.d.ts.map +1 -0
  367. package/dist/parser/statements/components.js +185 -0
  368. package/dist/parser/statements/components.js.map +1 -0
  369. package/dist/parser/statements/heads.d.ts +38 -0
  370. package/dist/parser/statements/heads.d.ts.map +1 -0
  371. package/dist/parser/statements/heads.js +55 -0
  372. package/dist/parser/statements/heads.js.map +1 -0
  373. package/dist/parser/statements/imports.d.ts +9 -0
  374. package/dist/parser/statements/imports.d.ts.map +1 -0
  375. package/dist/parser/statements/imports.js +31 -0
  376. package/dist/parser/statements/imports.js.map +1 -0
  377. package/dist/parser/statements/reactive.d.ts +31 -0
  378. package/dist/parser/statements/reactive.d.ts.map +1 -0
  379. package/dist/parser/statements/reactive.js +68 -0
  380. package/dist/parser/statements/reactive.js.map +1 -0
  381. package/dist/parser/statements/unsafe-css.d.ts +21 -0
  382. package/dist/parser/statements/unsafe-css.d.ts.map +1 -0
  383. package/dist/parser/statements/unsafe-css.js +42 -0
  384. package/dist/parser/statements/unsafe-css.js.map +1 -0
  385. package/dist/parser.d.ts +37 -50
  386. package/dist/parser.d.ts.map +1 -1
  387. package/dist/parser.js +98 -882
  388. package/dist/parser.js.map +1 -1
  389. package/dist/runtime-sources.generated.d.ts +1 -1
  390. package/dist/runtime-sources.generated.d.ts.map +1 -1
  391. package/dist/runtime-sources.generated.js +4 -4
  392. package/dist/runtime-sources.generated.js.map +1 -1
  393. package/package.json +2 -2
@@ -0,0 +1,45 @@
1
+ /** How a Look name is spelled in CSS, and which published name a misspelling meant. */
2
+ export function cssPropertyName(name) {
3
+ return name.replace(/[A-Z]/gu, (character) => `-${character.toLowerCase()}`);
4
+ }
5
+ function nameDistance(left, right) {
6
+ if (left.length === right.length) {
7
+ const mismatches = [];
8
+ for (let index = 0; index < left.length; index += 1)
9
+ if (left[index] !== right[index])
10
+ mismatches.push(index);
11
+ if (mismatches.length === 2 && mismatches[1] === mismatches[0] + 1
12
+ && left[mismatches[0]] === right[mismatches[1]] && left[mismatches[1]] === right[mismatches[0]])
13
+ return 1;
14
+ }
15
+ const previous = Array.from({ length: right.length + 1 }, (_, index) => index);
16
+ for (let row = 1; row <= left.length; row += 1) {
17
+ let diagonal = previous[0];
18
+ previous[0] = row;
19
+ for (let column = 1; column <= right.length; column += 1) {
20
+ const candidate = Math.min(previous[column] + 1, previous[column - 1] + 1, diagonal + (left[row - 1] === right[column - 1] ? 0 : 1));
21
+ diagonal = previous[column];
22
+ previous[column] = candidate;
23
+ }
24
+ }
25
+ return previous[right.length];
26
+ }
27
+ /**
28
+ * The closest vocabulary entry to a misspelling, or null when nothing is close
29
+ * enough to name. Case differences and one or two edits count as near misses;
30
+ * anything further apart is a different word and gets the full vocabulary.
31
+ */
32
+ export function nearestLookName(name, vocabulary) {
33
+ let best = null;
34
+ let bestDistance = Number.POSITIVE_INFINITY;
35
+ const limit = 2;
36
+ for (const candidate of vocabulary) {
37
+ const distance = nameDistance(name.toLowerCase(), candidate.toLowerCase());
38
+ if (distance < bestDistance || (distance === bestDistance && best !== null && candidate < best)) {
39
+ best = candidate;
40
+ bestDistance = distance;
41
+ }
42
+ }
43
+ return best !== null && bestDistance <= limit ? best : null;
44
+ }
45
+ //# sourceMappingURL=naming.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,SAAS,CAAC;YACjB,YAAY,GAAG,QAAQ,CAAC;QAC1B,CAAC;IACH,CAAC;IACD,OAAO,IAAI,KAAK,IAAI,IAAI,YAAY,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The published Look property roster, grouped by the job each property performs,
3
+ * and the value kind each one is checked as.
4
+ */
5
+ export interface LookPropertyGroup {
6
+ readonly family: string;
7
+ readonly properties: readonly string[];
8
+ }
9
+ /** Published Look vocabulary, grouped by the job each property performs. */
10
+ export declare const LOOK_PROPERTY_GROUPS: readonly LookPropertyGroup[];
11
+ export declare const LOOK_PROPERTIES: Set<string>;
12
+ /** Stable editor-documentation key for one checked Look property. */
13
+ export declare function lookPropertyDocumentationKey(property: string): string;
14
+ export type LookPropertyValueKind = "animation" | "angle" | "background" | "border" | "color" | "duration" | "filter" | "image" | "keyword" | "line-height" | "metric" | "number" | "number-keyword" | "shadow" | "text" | "track" | "transform" | "transition";
15
+ export declare const LOOK_PROPERTY_VALUE_KINDS: ReadonlyMap<string, LookPropertyValueKind>;
16
+ //# sourceMappingURL=properties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../src/look/properties.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AAED,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB,EAAE,SAAS,iBAAiB,EAmB3D,CAAC;AAEH,eAAO,MAAM,eAAe,aAAqE,CAAC;AAElG,qEAAqE;AACrE,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAErE;AAED,MAAM,MAAM,qBAAqB,GAC7B,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GACvG,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,gBAAgB,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,GAAG,YAAY,CAAC;AAuBtH,eAAO,MAAM,yBAAyB,EAAE,WAAW,CAAC,MAAM,EAAE,qBAAqB,CAEhF,CAAC"}
@@ -0,0 +1,52 @@
1
+ /** Published Look vocabulary, grouped by the job each property performs. */
2
+ export const LOOK_PROPERTY_GROUPS = Object.freeze([
3
+ { family: "layout and containment", properties: ["display", "position", "boxSizing", "isolation", "contain", "visibility", "zIndex", "overflow", "overflowX", "overflowY", "resize", "clip", "clipPath", "objectFit", "objectPosition", "aspectRatio"] },
4
+ { family: "grid", properties: ["gridTemplateColumns", "gridTemplateRows", "gridTemplateAreas", "gridAutoColumns", "gridAutoRows", "gridAutoFlow", "gridColumn", "gridColumnStart", "gridColumnEnd", "gridRow", "gridRowStart", "gridRowEnd", "gridArea"] },
5
+ { family: "flex and alignment", properties: ["flex", "flexDirection", "flexGrow", "flexShrink", "flexBasis", "flexWrap", "order", "gap", "rowGap", "columnGap", "alignItems", "justifyItems", "justifyContent", "alignContent", "alignSelf", "justifySelf", "placeItems", "placeContent", "placeSelf"] },
6
+ { family: "size and inset", properties: ["width", "height", "minWidth", "maxWidth", "minHeight", "maxHeight", "inlineSize", "blockSize", "minInlineSize", "maxInlineSize", "minBlockSize", "maxBlockSize", "inset", "top", "right", "bottom", "left", "insetInline", "insetBlock", "insetInlineStart", "insetInlineEnd", "insetBlockStart", "insetBlockEnd"] },
7
+ { family: "spacing", properties: ["padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingInline", "paddingBlock", "paddingInlineStart", "paddingInlineEnd", "paddingBlockStart", "paddingBlockEnd", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginInline", "marginBlock", "marginInlineStart", "marginInlineEnd", "marginBlockStart", "marginBlockEnd"] },
8
+ { family: "background", properties: ["background", "backgroundColor", "backgroundImage", "backgroundPosition", "backgroundSize", "backgroundRepeat", "backgroundAttachment", "backgroundClip", "backgroundOrigin", "backgroundBlendMode"] },
9
+ { family: "border and outline", properties: ["border", "borderWidth", "borderStyle", "borderColor", "borderTop", "borderRight", "borderBottom", "borderLeft", "borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth", "borderTopStyle", "borderRightStyle", "borderBottomStyle", "borderLeftStyle", "borderTopColor", "borderRightColor", "borderBottomColor", "borderLeftColor", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius", "outline", "outlineWidth", "outlineStyle", "outlineColor", "outlineOffset"] },
10
+ { family: "effects", properties: ["boxShadow", "textShadow", "opacity", "filter", "backdropFilter", "content"] },
11
+ // D104: `font` is not here. It is the one shorthand whose whole value space
12
+ // this family already publishes as checked longhands, and see
13
+ // LOOK_EXCLUDED_PROPERTIES for why publishing it beside them was worse than
14
+ // publishing nothing.
15
+ { family: "typography and international text", properties: ["color", "fontFamily", "fontSize", "fontWeight", "fontStyle", "fontStretch", "fontVariant", "fontKerning", "fontOpticalSizing", "fontFeatureSettings", "fontVariationSettings", "lineHeight", "verticalAlign", "letterSpacing", "wordSpacing", "textAlign", "textIndent", "textDecoration", "textDecorationColor", "textDecorationLine", "textDecorationStyle", "textDecorationThickness", "textUnderlineOffset", "textUnderlinePosition", "textTransform", "textRendering", "whiteSpace", "textOverflow", "textWrap", "overflowWrap", "wordBreak", "hyphens", "tabSize", "writingMode", "textOrientation", "direction", "unicodeBidi"] },
16
+ { family: "lists", properties: ["listStyle", "listStyleType", "listStylePosition", "listStyleImage"] },
17
+ { family: "SVG paint", properties: ["fill", "stroke", "strokeWidth", "strokeLinecap", "strokeLinejoin", "strokeDasharray", "strokeDashoffset"] },
18
+ { family: "transform and transition", properties: ["translate", "scale", "rotate", "transform", "transformOrigin", "transition", "transitionProperty", "transitionDuration", "transitionDelay", "transitionTimingFunction", "animation"] },
19
+ { family: "interaction and form theme", properties: ["cursor", "pointerEvents", "userSelect", "touchAction", "appearance", "accentColor", "caretColor", "colorScheme"] },
20
+ { family: "scroll", properties: ["scrollBehavior", "scrollMargin", "scrollMarginTop", "scrollMarginRight", "scrollMarginBottom", "scrollMarginLeft", "scrollPadding", "scrollPaddingTop", "scrollPaddingRight", "scrollPaddingBottom", "scrollPaddingLeft", "scrollSnapAlign", "scrollSnapStop", "scrollSnapType", "overscrollBehavior", "overscrollBehaviorX", "overscrollBehaviorY", "scrollbarColor", "scrollbarWidth"] },
21
+ ]);
22
+ export const LOOK_PROPERTIES = new Set(LOOK_PROPERTY_GROUPS.flatMap((group) => group.properties));
23
+ /** Stable editor-documentation key for one checked Look property. */
24
+ export function lookPropertyDocumentationKey(property) {
25
+ return `look:property:${property}`;
26
+ }
27
+ const propertyKinds = [
28
+ ["animation", ["animation"]],
29
+ ["angle", ["rotate"]],
30
+ ["background", ["background"]],
31
+ ["border", ["border", "borderTop", "borderRight", "borderBottom", "borderLeft", "outline"]],
32
+ ["color", ["color", "backgroundColor", "borderColor", "borderTopColor", "borderRightColor", "borderBottomColor", "borderLeftColor", "outlineColor", "textDecorationColor", "accentColor", "caretColor", "fill", "stroke"]],
33
+ ["duration", ["transitionDuration", "transitionDelay"]],
34
+ ["filter", ["filter", "backdropFilter"]],
35
+ ["image", ["backgroundImage", "listStyleImage"]],
36
+ ["line-height", ["lineHeight"]],
37
+ ["metric", ["gap", "rowGap", "columnGap", "width", "height", "minWidth", "maxWidth", "minHeight", "maxHeight", "inlineSize", "blockSize", "minInlineSize", "maxInlineSize", "minBlockSize", "maxBlockSize", "inset", "top", "right", "bottom", "left", "insetInline", "insetBlock", "insetInlineStart", "insetInlineEnd", "insetBlockStart", "insetBlockEnd", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingInline", "paddingBlock", "paddingInlineStart", "paddingInlineEnd", "paddingBlockStart", "paddingBlockEnd", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginInline", "marginBlock", "marginInlineStart", "marginInlineEnd", "marginBlockStart", "marginBlockEnd", "flexBasis", "borderWidth", "borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius", "outlineWidth", "outlineOffset", "fontSize", "verticalAlign", "letterSpacing", "wordSpacing", "textIndent", "textDecorationThickness", "textUnderlineOffset", "strokeWidth", "strokeDashoffset", "scrollMargin", "scrollMarginTop", "scrollMarginRight", "scrollMarginBottom", "scrollMarginLeft", "scrollPadding", "scrollPaddingTop", "scrollPaddingRight", "scrollPaddingBottom", "scrollPaddingLeft", "translate", "transformOrigin", "backgroundPosition", "objectPosition", "backgroundSize"]],
38
+ ["number", ["opacity", "zIndex", "flexGrow", "flexShrink", "order", "tabSize"]],
39
+ ["number-keyword", ["fontWeight", "aspectRatio", "scale", "flex"]],
40
+ ["shadow", ["boxShadow", "textShadow"]],
41
+ ["text", ["content", "fontFamily", "fontFeatureSettings", "fontVariationSettings", "gridTemplateAreas", "gridColumn", "gridColumnStart", "gridColumnEnd", "gridRow", "gridRowStart", "gridRowEnd", "gridArea", "clip", "clipPath", "strokeDasharray", "scrollbarColor"]],
42
+ ["track", ["gridTemplateColumns", "gridTemplateRows", "gridAutoColumns", "gridAutoRows"]],
43
+ ["transform", ["transform"]],
44
+ ["transition", ["transition"]],
45
+ ["keyword", ["display", "position", "boxSizing", "isolation", "contain", "visibility", "overflow", "overflowX", "overflowY", "resize", "objectFit", "gridAutoFlow", "flexDirection", "flexWrap", "alignItems", "justifyItems", "justifyContent", "alignContent", "alignSelf", "justifySelf", "placeItems", "placeContent", "placeSelf", "backgroundRepeat", "backgroundAttachment", "backgroundClip", "backgroundOrigin", "backgroundBlendMode", "borderStyle", "borderTopStyle", "borderRightStyle", "borderBottomStyle", "borderLeftStyle", "outlineStyle", "fontStyle", "fontStretch", "fontVariant", "fontKerning", "fontOpticalSizing", "textAlign", "textDecoration", "textDecorationLine", "textDecorationStyle", "textUnderlinePosition", "textTransform", "textRendering", "whiteSpace", "textOverflow", "textWrap", "overflowWrap", "wordBreak", "hyphens", "writingMode", "textOrientation", "direction", "unicodeBidi", "listStyle", "listStyleType", "listStylePosition", "strokeLinecap", "strokeLinejoin", "transitionProperty", "transitionTimingFunction", "cursor", "pointerEvents", "userSelect", "touchAction", "appearance", "colorScheme", "scrollBehavior", "scrollSnapAlign", "scrollSnapStop", "scrollSnapType", "overscrollBehavior", "overscrollBehaviorX", "overscrollBehaviorY", "scrollbarWidth"]],
46
+ ];
47
+ export const LOOK_PROPERTY_VALUE_KINDS = new Map(propertyKinds.flatMap(([kind, properties]) => properties.map((property) => [property, kind])));
48
+ for (const property of LOOK_PROPERTIES) {
49
+ if (!LOOK_PROPERTY_VALUE_KINDS.has(property))
50
+ throw new Error(`Look property '${property}' has no declared value kind`);
51
+ }
52
+ //# sourceMappingURL=properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../src/look/properties.ts"],"names":[],"mappings":"AASA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,oBAAoB,GAAiC,MAAM,CAAC,MAAM,CAAC;IAC9E,EAAE,MAAM,EAAE,wBAAwB,EAAE,UAAU,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE;IACxP,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,qBAAqB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,iBAAiB,EAAE,eAAe,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OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAU,CAAC,CAAC,CACvG,CAAC;AAEF,KAAK,MAAM,QAAQ,IAAI,eAAe,EAAE,CAAC;IACvC,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,QAAQ,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,QAAQ,8BAA8B,CAAC,CAAC;AAC1H,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Every Look property a shorthand writes, transitively. `border` reaches all
3
+ * twelve side parts through the three per-side shorthands, so a block that
4
+ * writes `border` and `borderTopColor` is caught by the same lookup as one that
5
+ * writes `border` and `borderWidth`.
6
+ */
7
+ export declare const LOOK_SHORTHAND_LONGHANDS: ReadonlyMap<string, ReadonlySet<string>>;
8
+ /**
9
+ * The two properties' overlap, when one writes what the other does — the
10
+ * shorthand first. Null when the two are independent declarations, which is
11
+ * every pair the browser resolves on its own.
12
+ */
13
+ export declare function lookShorthandOverlap(left: string, right: string): {
14
+ readonly shorthand: string;
15
+ readonly longhand: string;
16
+ } | null;
17
+ /**
18
+ * What a refusal offers instead of the pair: the shorthand's own longhands, so
19
+ * the author can write the one they meant to override beside its siblings. The
20
+ * list is the direct level rather than the closure — `border` answers with
21
+ * borderWidth, borderStyle and borderColor rather than with all twelve side
22
+ * parts, because that is the level a reader replaces it at.
23
+ */
24
+ export declare function lookShorthandParts(shorthand: string): readonly string[];
25
+ //# sourceMappingURL=shorthands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shorthands.d.ts","sourceRoot":"","sources":["../../src/look/shorthands.ts"],"names":[],"mappings":"AAyFA;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAA0B,CAAC;AASzG;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG;IAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAIlI;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAEvE"}
@@ -0,0 +1,130 @@
1
+ /**
2
+ * Which Look properties write the same CSS declaration (D104 rule 2): the direct
3
+ * containments, the closure over them, and what a refusal offers instead.
4
+ */
5
+ import { LOOK_PROPERTIES } from "./properties.js";
6
+ // ── D104 rule 2: which Look properties write the same CSS declaration ─────────
7
+ // A Look block reads like a rule, and it is not one. Every entry lowers to its
8
+ // own single-declaration rule at equal specificity — `[data-velar-look~="base:
9
+ // padding"]{padding:var(--…)}` — and those rules are sorted by condition rank
10
+ // first and by *first appearance anywhere in the module* second. So between two
11
+ // entries of equal rank the stylesheet's winner is decided by unrelated code:
12
+ // a look earlier in the file that happened to mention `paddingTop` puts
13
+ // `padding-top` ahead of `padding` for every look in the module, and a block
14
+ // that writes `padding` and then `paddingTop` gets the opposite of what it
15
+ // reads like. The order LOK-U8 pinned for conditions was never available
16
+ // between a shorthand and a longhand it writes.
17
+ //
18
+ // CSS resolves this with source order. Look cannot, because the rule for a
19
+ // property is shared by every look that uses it, so there is no per-block order
20
+ // to honour. That leaves one honest answer: two entries in one scope that write
21
+ // the same CSS longhand have no winner the author chose, which is exactly the
22
+ // defect VEL5039 already refuses when the two entries have the same name. This
23
+ // table is what makes the wider case decidable.
24
+ //
25
+ // Only *direct* containment is written; the closure below derives the rest, so
26
+ // `border` reaching `borderTopWidth` through `borderWidth` is not a third place
27
+ // to keep in step (D57 rule 134). Logical and physical boxes stay separate
28
+ // families: CSS cascades `inset-inline-start` and `left` independently, and
29
+ // pretending otherwise would refuse a pair the browser resolves by writing
30
+ // mode.
31
+ const lookDirectShorthands = [
32
+ ["overflow", ["overflowX", "overflowY"]],
33
+ ["overscrollBehavior", ["overscrollBehaviorX", "overscrollBehaviorY"]],
34
+ ["flex", ["flexGrow", "flexShrink", "flexBasis"]],
35
+ ["gap", ["rowGap", "columnGap"]],
36
+ ["placeItems", ["alignItems", "justifyItems"]],
37
+ ["placeContent", ["alignContent", "justifyContent"]],
38
+ ["placeSelf", ["alignSelf", "justifySelf"]],
39
+ ["inset", ["top", "right", "bottom", "left"]],
40
+ ["insetInline", ["insetInlineStart", "insetInlineEnd"]],
41
+ ["insetBlock", ["insetBlockStart", "insetBlockEnd"]],
42
+ ["padding", ["paddingTop", "paddingRight", "paddingBottom", "paddingLeft"]],
43
+ ["paddingInline", ["paddingInlineStart", "paddingInlineEnd"]],
44
+ ["paddingBlock", ["paddingBlockStart", "paddingBlockEnd"]],
45
+ ["margin", ["marginTop", "marginRight", "marginBottom", "marginLeft"]],
46
+ ["marginInline", ["marginInlineStart", "marginInlineEnd"]],
47
+ ["marginBlock", ["marginBlockStart", "marginBlockEnd"]],
48
+ ["scrollMargin", ["scrollMarginTop", "scrollMarginRight", "scrollMarginBottom", "scrollMarginLeft"]],
49
+ ["scrollPadding", ["scrollPaddingTop", "scrollPaddingRight", "scrollPaddingBottom", "scrollPaddingLeft"]],
50
+ ["background", ["backgroundColor", "backgroundImage", "backgroundPosition", "backgroundSize", "backgroundRepeat", "backgroundAttachment", "backgroundOrigin", "backgroundClip"]],
51
+ ["border", ["borderWidth", "borderStyle", "borderColor", "borderTop", "borderRight", "borderBottom", "borderLeft"]],
52
+ ["borderWidth", ["borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth"]],
53
+ ["borderStyle", ["borderTopStyle", "borderRightStyle", "borderBottomStyle", "borderLeftStyle"]],
54
+ ["borderColor", ["borderTopColor", "borderRightColor", "borderBottomColor", "borderLeftColor"]],
55
+ ["borderTop", ["borderTopWidth", "borderTopStyle", "borderTopColor"]],
56
+ ["borderRight", ["borderRightWidth", "borderRightStyle", "borderRightColor"]],
57
+ ["borderBottom", ["borderBottomWidth", "borderBottomStyle", "borderBottomColor"]],
58
+ ["borderLeft", ["borderLeftWidth", "borderLeftStyle", "borderLeftColor"]],
59
+ // `outline` writes the three parts and leaves outlineOffset alone.
60
+ ["outline", ["outlineWidth", "outlineStyle", "outlineColor"]],
61
+ ["borderRadius", ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"]],
62
+ ["textDecoration", ["textDecorationLine", "textDecorationStyle", "textDecorationColor", "textDecorationThickness"]],
63
+ ["listStyle", ["listStyleType", "listStylePosition", "listStyleImage"]],
64
+ ["transition", ["transitionProperty", "transitionDuration", "transitionTimingFunction", "transitionDelay"]],
65
+ ["gridColumn", ["gridColumnStart", "gridColumnEnd"]],
66
+ ["gridRow", ["gridRowStart", "gridRowEnd"]],
67
+ ["gridArea", ["gridRow", "gridColumn"]],
68
+ ];
69
+ function lookShorthandClosure() {
70
+ const direct = new Map(lookDirectShorthands.map(([shorthand, longhands]) => [shorthand, longhands]));
71
+ const closed = new Map();
72
+ const expand = (shorthand, seen) => {
73
+ const cached = closed.get(shorthand);
74
+ if (cached)
75
+ return cached;
76
+ if (seen.has(shorthand))
77
+ throw new Error(`Look shorthand '${shorthand}' contains itself`);
78
+ const inner = new Set([...seen, shorthand]);
79
+ const reached = new Set();
80
+ for (const longhand of direct.get(shorthand) ?? []) {
81
+ reached.add(longhand);
82
+ if (direct.has(longhand))
83
+ for (const nested of expand(longhand, inner))
84
+ reached.add(nested);
85
+ }
86
+ closed.set(shorthand, reached);
87
+ return reached;
88
+ };
89
+ for (const [shorthand] of direct)
90
+ expand(shorthand, new Set());
91
+ return closed;
92
+ }
93
+ /**
94
+ * Every Look property a shorthand writes, transitively. `border` reaches all
95
+ * twelve side parts through the three per-side shorthands, so a block that
96
+ * writes `border` and `borderTopColor` is caught by the same lookup as one that
97
+ * writes `border` and `borderWidth`.
98
+ */
99
+ export const LOOK_SHORTHAND_LONGHANDS = lookShorthandClosure();
100
+ for (const [shorthand, longhands] of LOOK_SHORTHAND_LONGHANDS) {
101
+ if (!LOOK_PROPERTIES.has(shorthand))
102
+ throw new Error(`Look shorthand '${shorthand}' is not a published Look property`);
103
+ for (const longhand of longhands) {
104
+ if (!LOOK_PROPERTIES.has(longhand))
105
+ throw new Error(`Look shorthand '${shorthand}' names '${longhand}', which is not a published Look property`);
106
+ }
107
+ }
108
+ /**
109
+ * The two properties' overlap, when one writes what the other does — the
110
+ * shorthand first. Null when the two are independent declarations, which is
111
+ * every pair the browser resolves on its own.
112
+ */
113
+ export function lookShorthandOverlap(left, right) {
114
+ if (LOOK_SHORTHAND_LONGHANDS.get(left)?.has(right) === true)
115
+ return { shorthand: left, longhand: right };
116
+ if (LOOK_SHORTHAND_LONGHANDS.get(right)?.has(left) === true)
117
+ return { shorthand: right, longhand: left };
118
+ return null;
119
+ }
120
+ /**
121
+ * What a refusal offers instead of the pair: the shorthand's own longhands, so
122
+ * the author can write the one they meant to override beside its siblings. The
123
+ * list is the direct level rather than the closure — `border` answers with
124
+ * borderWidth, borderStyle and borderColor rather than with all twelve side
125
+ * parts, because that is the level a reader replaces it at.
126
+ */
127
+ export function lookShorthandParts(shorthand) {
128
+ return lookDirectShorthands.find(([name]) => name === shorthand)?.[1] ?? [];
129
+ }
130
+ //# sourceMappingURL=shorthands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shorthands.js","sourceRoot":"","sources":["../../src/look/shorthands.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,iFAAiF;AACjF,+EAA+E;AAC/E,+EAA+E;AAC/E,8EAA8E;AAC9E,gFAAgF;AAChF,8EAA8E;AAC9E,wEAAwE;AACxE,6EAA6E;AAC7E,2EAA2E;AAC3E,yEAAyE;AACzE,gDAAgD;AAChD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF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K,EAAE,CAAC;IACzG,IAAI,wBAAwB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI;QAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzG,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,SAAiB;IAClD,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAC9E,CAAC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Checked design-token references (D103): what a token name is, what it lowers
3
+ * to, and how a written `var(--name)` is read back.
4
+ */
5
+ /**
6
+ * A CSS custom property identifier, as a Look token name. `--` and at least one
7
+ * more character, from the ASCII ident set a design system's tokens are written
8
+ * with. CSS itself also admits non-ASCII ident code points and backslash
9
+ * escapes; both are outside this set on purpose, because the text goes straight
10
+ * into a compiler-owned stylesheet where an escape is a way out of the
11
+ * declaration (the same reasoning LOK-U9 applies to `keyframes:` values).
12
+ */
13
+ export declare const LOOK_TOKEN_NAME_PATTERN: RegExp;
14
+ /** The whole rule, in the terms a diagnostic teaches it. */
15
+ export declare const LOOK_TOKEN_NAME_RULE = "a design token name is a literal string holding a CSS custom property identifier: '--' followed by one or more letters, digits, hyphens, or underscores";
16
+ /**
17
+ * D103 rule 5 — why there is no second parameter. A design token is the design
18
+ * system's closed contract; a token that is missing is a defect in that system,
19
+ * to be fixed once where it is defined, rather than a decision each of hundreds
20
+ * of use sites re-makes for itself. A per-site fallback would also be the one
21
+ * part of the reference the compiler could neither see nor check.
22
+ */
23
+ export declare const LOOK_TOKEN_NO_FALLBACK_GUIDANCE = "token(name) takes the token name and nothing else: a design token is the design system's closed contract, so a token that is missing is a defect to fix where the token is defined rather than a fallback decided again at every use site";
24
+ export declare function isLookTokenName(name: string): boolean;
25
+ /** The CSS text a checked token reference lowers to. */
26
+ export declare function lookTokenReference(name: string): string;
27
+ /**
28
+ * The token name a whole `var(--name)` string names, or null. Only the complete
29
+ * value is read: `var()` inside a larger value — the tail of a font stack, one
30
+ * layer of a filter — is a legitimate free-text spelling with no single token
31
+ * to rewrite it to, so it is not this function's business. A `var(--x, red)`
32
+ * fallback form answers null here and is diagnosed by its own message, because
33
+ * the closed contract above has no fallback to migrate it to.
34
+ */
35
+ export declare function lookVarReferenceName(text: string): string | null;
36
+ /** Whether a whole string is a `var(...)` reference of any shape, fallback included. */
37
+ export declare function isLookVarReference(text: string): boolean;
38
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/look/tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAcH;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,QAAwB,CAAC;AAE7D,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB,4JAA4J,CAAC;AAE9L;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,8OAA8O,CAAC;AAE3R,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wDAAwD;AACxD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGhE;AAED,wFAAwF;AACxF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Checked design-token references (D103): what a token name is, what it lowers
3
+ * to, and how a written `var(--name)` is read back.
4
+ */
5
+ // ── D103: checked design-token references ─────────────────────────────────────
6
+ // A design system's contract is a set of CSS custom properties, and the checked
7
+ // Look value vocabulary had no spelling that could read one: the colour kinds
8
+ // passed an arbitrary string through, the free-text kinds passed anything
9
+ // through, and every metric, shadow and transition property refused. `token()`
10
+ // is the one spelling, legal wherever a Look value is written.
11
+ //
12
+ // What is checked is the *reference* — its spelling and its position. The value
13
+ // behind the name belongs to the design system, which the compiler cannot see:
14
+ // no `@velaros-ai/ui` stylesheet is an input to this compile. That boundary is
15
+ // declared rather than papered over, and it is exactly why the name must be a
16
+ // literal: a computed name would leave nothing checkable at all.
17
+ /**
18
+ * A CSS custom property identifier, as a Look token name. `--` and at least one
19
+ * more character, from the ASCII ident set a design system's tokens are written
20
+ * with. CSS itself also admits non-ASCII ident code points and backslash
21
+ * escapes; both are outside this set on purpose, because the text goes straight
22
+ * into a compiler-owned stylesheet where an escape is a way out of the
23
+ * declaration (the same reasoning LOK-U9 applies to `keyframes:` values).
24
+ */
25
+ export const LOOK_TOKEN_NAME_PATTERN = /^--[A-Za-z0-9_-]+$/u;
26
+ /** The whole rule, in the terms a diagnostic teaches it. */
27
+ export const LOOK_TOKEN_NAME_RULE = "a design token name is a literal string holding a CSS custom property identifier: '--' followed by one or more letters, digits, hyphens, or underscores";
28
+ /**
29
+ * D103 rule 5 — why there is no second parameter. A design token is the design
30
+ * system's closed contract; a token that is missing is a defect in that system,
31
+ * to be fixed once where it is defined, rather than a decision each of hundreds
32
+ * of use sites re-makes for itself. A per-site fallback would also be the one
33
+ * part of the reference the compiler could neither see nor check.
34
+ */
35
+ export const LOOK_TOKEN_NO_FALLBACK_GUIDANCE = "token(name) takes the token name and nothing else: a design token is the design system's closed contract, so a token that is missing is a defect to fix where the token is defined rather than a fallback decided again at every use site";
36
+ export function isLookTokenName(name) {
37
+ return LOOK_TOKEN_NAME_PATTERN.test(name);
38
+ }
39
+ /** The CSS text a checked token reference lowers to. */
40
+ export function lookTokenReference(name) {
41
+ return `var(${name})`;
42
+ }
43
+ /**
44
+ * The token name a whole `var(--name)` string names, or null. Only the complete
45
+ * value is read: `var()` inside a larger value — the tail of a font stack, one
46
+ * layer of a filter — is a legitimate free-text spelling with no single token
47
+ * to rewrite it to, so it is not this function's business. A `var(--x, red)`
48
+ * fallback form answers null here and is diagnosed by its own message, because
49
+ * the closed contract above has no fallback to migrate it to.
50
+ */
51
+ export function lookVarReferenceName(text) {
52
+ const match = /^\s*var\(\s*(--[A-Za-z0-9_-]+)\s*\)\s*$/u.exec(text);
53
+ return match ? match[1] : null;
54
+ }
55
+ /** Whether a whole string is a `var(...)` reference of any shape, fallback included. */
56
+ export function isLookVarReference(text) {
57
+ return /^\s*var\(\s*--/u.test(text) && /\)\s*$/u.test(text);
58
+ }
59
+ //# sourceMappingURL=tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/look/tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,iFAAiF;AACjF,gFAAgF;AAChF,8EAA8E;AAC9E,0EAA0E;AAC1E,+EAA+E;AAC/E,+DAA+D;AAC/D,EAAE;AACF,gFAAgF;AAChF,+EAA+E;AAC/E,+EAA+E;AAC/E,8EAA8E;AAC9E,iEAAiE;AAEjE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AAE7D,4DAA4D;AAC5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,yJAAyJ,CAAC;AAE9L;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,2OAA2O,CAAC;AAE3R,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC;AAED,wDAAwD;AACxD,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,OAAO,IAAI,GAAG,CAAC;AACxB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAY;IAC/C,MAAM,KAAK,GAAG,0CAA0C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpE,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAClC,CAAC;AAED,wFAAwF;AACxF,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The unit suffixes the Web visual language owns, and the type names they carry.
3
+ *
4
+ * D115 P4 R3e: `look.ts` was one 1,041-line table; the vocabulary is split by
5
+ * the question each part answers and the facade re-exports every name.
6
+ */
7
+ export type LookUnitTypeName = "Length" | "Percentage" | "TrackFraction" | "Duration" | "Angle";
8
+ /**
9
+ * One source of truth for every suffix owned by the Web visual language.
10
+ * The lexer, analyzer, public-interface inference, and editor all consume this
11
+ * table so a unit cannot silently mean different things at different stages.
12
+ */
13
+ export declare const LOOK_UNIT_TYPES: ReadonlyMap<string, LookUnitTypeName>;
14
+ /**
15
+ * Properties whose CSS grammar takes a bare number. Every other numeric Look
16
+ * property is a length, so a unitless number would reach CSS as a dead
17
+ * declaration; the property tables reject it and the diagnostic teaches the
18
+ * unit (LOK-D3).
19
+ */
20
+ export declare const LOOK_UNITLESS_PROPERTIES: Set<string>;
21
+ export declare const LOOK_ARITHMETIC_HINT = "@velarscript/web:look-arithmetic";
22
+ export declare const LOOK_NUMERIC_TYPE_NAMES: Set<string>;
23
+ export declare const LOOK_PUBLIC_TYPE_NAMES: readonly ["Look", "Length", "Percentage", "LengthPercentage", "TrackFraction", "Color", "Duration", "Angle", "Border", "Shadow", "Filter", "Image", "Track", "TrackList", "Transition", "Spacing", "Keyframes", "Animation"];
24
+ //# sourceMappingURL=units.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../src/look/units.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,YAAY,GAAG,eAAe,GAAG,UAAU,GAAG,OAAO,CAAC;AAEhG;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAMhE,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,aAEnC,CAAC;AAEH,eAAO,MAAM,oBAAoB,qCAAqC,CAAC;AAEvE,eAAO,MAAM,uBAAuB,aAElC,CAAC;AAKH,eAAO,MAAM,sBAAsB,8NAGxB,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * One source of truth for every suffix owned by the Web visual language.
3
+ * The lexer, analyzer, public-interface inference, and editor all consume this
4
+ * table so a unit cannot silently mean different things at different stages.
5
+ */
6
+ export const LOOK_UNIT_TYPES = new Map([
7
+ ...["px", "rem", "em", "vw", "vh", "vmin", "vmax"].map((unit) => [unit, "Length"]),
8
+ ["%", "Percentage"],
9
+ ["fr", "TrackFraction"],
10
+ ...["ms", "s"].map((unit) => [unit, "Duration"]),
11
+ ...["deg", "turn"].map((unit) => [unit, "Angle"]),
12
+ ]);
13
+ /**
14
+ * Properties whose CSS grammar takes a bare number. Every other numeric Look
15
+ * property is a length, so a unitless number would reach CSS as a dead
16
+ * declaration; the property tables reject it and the diagnostic teaches the
17
+ * unit (LOK-D3).
18
+ */
19
+ export const LOOK_UNITLESS_PROPERTIES = new Set([
20
+ "lineHeight", "opacity", "zIndex", "fontWeight", "flex", "flexGrow", "flexShrink", "order", "scale", "aspectRatio",
21
+ ]);
22
+ export const LOOK_ARITHMETIC_HINT = "@velarscript/web:look-arithmetic";
23
+ export const LOOK_NUMERIC_TYPE_NAMES = new Set([
24
+ "Length", "Percentage", "LengthPercentage", "TrackFraction", "Duration", "Angle",
25
+ ]);
26
+ // D50 rule 92: 'Opacity' never appeared here. No builder produces it and the
27
+ // 'opacity' property's declared type is number, so the name was unreachable —
28
+ // publishing an unreachable name is worse than publishing nothing.
29
+ export const LOOK_PUBLIC_TYPE_NAMES = Object.freeze([
30
+ "Look", "Length", "Percentage", "LengthPercentage", "TrackFraction", "Color", "Duration", "Angle",
31
+ "Border", "Shadow", "Filter", "Image", "Track", "TrackList", "Transition", "Spacing", "Keyframes", "Animation",
32
+ ]);
33
+ //# sourceMappingURL=units.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"units.js","sourceRoot":"","sources":["../../src/look/units.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAA0C,IAAI,GAAG,CAAC;IAC5E,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAU,CAAC;IAC3F,CAAC,GAAG,EAAE,YAAY,CAAC;IACnB,CAAC,IAAI,EAAE,eAAe,CAAC;IACvB,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,UAAU,CAAU,CAAC;IACzD,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,CAAU,CAAC;CAC3D,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAC;IAC9C,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa;CACnH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,kCAAkC,CAAC;AAEvE,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC;IAC7C,QAAQ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