@vinena/knobs 0.0.0-stage → 0.5.1

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 (471) hide show
  1. package/CHANGELOG.md +228 -0
  2. package/LICENSE +21 -0
  3. package/README.md +110 -2
  4. package/THIRD_PARTY_NOTICES.md +429 -0
  5. package/dist/bezels/duo-fold/fold-000.webp +0 -0
  6. package/dist/bezels/duo-fold/fold-001.webp +0 -0
  7. package/dist/bezels/duo-fold/fold-002.webp +0 -0
  8. package/dist/bezels/duo-fold/fold-003.webp +0 -0
  9. package/dist/bezels/duo-fold/fold-004.webp +0 -0
  10. package/dist/bezels/duo-fold/fold-005.webp +0 -0
  11. package/dist/bezels/duo-fold/fold-006.webp +0 -0
  12. package/dist/bezels/duo-fold/fold-007.webp +0 -0
  13. package/dist/bezels/duo-fold/fold-008.webp +0 -0
  14. package/dist/bezels/duo-fold/fold-009.webp +0 -0
  15. package/dist/bezels/duo-fold/fold-010.webp +0 -0
  16. package/dist/bezels/duo-fold/fold-011.webp +0 -0
  17. package/dist/bezels/duo-fold/fold-012.webp +0 -0
  18. package/dist/bezels/duo-fold/fold-013.webp +0 -0
  19. package/dist/bezels/duo-fold/fold-014.webp +0 -0
  20. package/dist/bezels/duo-fold/fold-015.webp +0 -0
  21. package/dist/bezels/duo-fold/fold-016.webp +0 -0
  22. package/dist/bezels/duo-fold/fold-017.webp +0 -0
  23. package/dist/bezels/duo-fold/fold-018.webp +0 -0
  24. package/dist/bezels/duo-fold/fold-019.webp +0 -0
  25. package/dist/bezels/duo-fold/fold-020.webp +0 -0
  26. package/dist/bezels/duo-fold/fold-021.webp +0 -0
  27. package/dist/bezels/duo-fold/fold-022.webp +0 -0
  28. package/dist/bezels/duo-fold/fold-023.webp +0 -0
  29. package/dist/bezels/duo-fold/fold-024.webp +0 -0
  30. package/dist/bezels/duo-fold/fold-025.webp +0 -0
  31. package/dist/bezels/duo-fold/fold-026.webp +0 -0
  32. package/dist/bezels/duo-fold/fold-027.webp +0 -0
  33. package/dist/bezels/duo-fold/fold-028.webp +0 -0
  34. package/dist/bezels/duo-fold/fold-029.webp +0 -0
  35. package/dist/bezels/duo-fold/fold-030.webp +0 -0
  36. package/dist/bezels/duo-fold/fold-031.webp +0 -0
  37. package/dist/bezels/duo-fold/fold-032.webp +0 -0
  38. package/dist/bezels/duo-fold/fold-033.webp +0 -0
  39. package/dist/bezels/duo-fold/fold-034.webp +0 -0
  40. package/dist/bezels/duo-fold/fold-035.webp +0 -0
  41. package/dist/bezels/duo-fold/fold-036.webp +0 -0
  42. package/dist/bezels/duo-fold/fold-037.webp +0 -0
  43. package/dist/bezels/duo-fold/fold-038.webp +0 -0
  44. package/dist/bezels/duo-fold/fold-039.webp +0 -0
  45. package/dist/bezels/duo-fold/fold-040.webp +0 -0
  46. package/dist/bezels/duo-fold/fold-041.webp +0 -0
  47. package/dist/bezels/duo-fold/fold-042.webp +0 -0
  48. package/dist/bezels/duo-fold/fold-043.webp +0 -0
  49. package/dist/bezels/duo-fold/fold-044.webp +0 -0
  50. package/dist/bezels/duo-fold/fold-045.webp +0 -0
  51. package/dist/bezels/duo-fold/fold-046.webp +0 -0
  52. package/dist/bezels/duo-fold/fold-047.webp +0 -0
  53. package/dist/bezels/duo-fold/fold-048.webp +0 -0
  54. package/dist/bezels/duo-fold/fold-049.webp +0 -0
  55. package/dist/bezels/duo-fold/fold-050.webp +0 -0
  56. package/dist/bezels/duo-fold/fold-051.webp +0 -0
  57. package/dist/bezels/duo-fold/fold-052.webp +0 -0
  58. package/dist/bezels/duo-fold/fold-053.webp +0 -0
  59. package/dist/bezels/duo-fold/fold-054.webp +0 -0
  60. package/dist/bezels/duo-fold/fold-055.webp +0 -0
  61. package/dist/bezels/duo-fold/fold-056.webp +0 -0
  62. package/dist/bezels/duo-fold/fold-057.webp +0 -0
  63. package/dist/bezels/duo-fold/fold-058.webp +0 -0
  64. package/dist/bezels/duo-fold/fold-059.webp +0 -0
  65. package/dist/bezels/duo-fold/fold-060.webp +0 -0
  66. package/dist/bezels/duo-fold/fold-061.webp +0 -0
  67. package/dist/bezels/duo-fold/fold-062.webp +0 -0
  68. package/dist/bezels/duo-fold/fold-063.webp +0 -0
  69. package/dist/bezels/duo-fold/fold-064.webp +0 -0
  70. package/dist/bezels/duo-fold/fold-065.webp +0 -0
  71. package/dist/bezels/duo-fold/fold-066.webp +0 -0
  72. package/dist/bezels/duo-fold/fold-067.webp +0 -0
  73. package/dist/bezels/duo-fold/fold-068.webp +0 -0
  74. package/dist/bezels/duo-fold/fold-069.webp +0 -0
  75. package/dist/bezels/duo-fold/fold-070.webp +0 -0
  76. package/dist/bezels/duo-fold/fold-071.webp +0 -0
  77. package/dist/bezels/duo-fold/fold-072.webp +0 -0
  78. package/dist/bezels/duo-fold/fold-073.webp +0 -0
  79. package/dist/bezels/duo-fold/fold-074.webp +0 -0
  80. package/dist/bezels/duo-fold/fold-075.webp +0 -0
  81. package/dist/bezels/duo-fold/fold-076.webp +0 -0
  82. package/dist/bezels/duo-fold/fold-077.webp +0 -0
  83. package/dist/bezels/duo-fold/fold-078.webp +0 -0
  84. package/dist/bezels/duo-fold/fold-079.webp +0 -0
  85. package/dist/bezels/duo-fold/fold-080.webp +0 -0
  86. package/dist/bezels/duo-fold/fold-081.webp +0 -0
  87. package/dist/bezels/duo-fold/fold-082.webp +0 -0
  88. package/dist/bezels/duo-fold/fold-083.webp +0 -0
  89. package/dist/bezels/duo-fold/fold-084.webp +0 -0
  90. package/dist/bezels/duo-fold/fold-085.webp +0 -0
  91. package/dist/bezels/duo-fold/fold-086.webp +0 -0
  92. package/dist/bezels/duo-fold/fold-087.webp +0 -0
  93. package/dist/bezels/duo-fold/fold-088.webp +0 -0
  94. package/dist/bezels/duo-fold/fold-089.webp +0 -0
  95. package/dist/bezels/duo-fold/fold-090.webp +0 -0
  96. package/dist/bezels/duo-fold/fold-091.webp +0 -0
  97. package/dist/bezels/duo-fold/fold-092.webp +0 -0
  98. package/dist/bezels/duo-fold/fold-093.webp +0 -0
  99. package/dist/bezels/duo-fold/fold-094.webp +0 -0
  100. package/dist/bezels/duo-fold/fold-095.webp +0 -0
  101. package/dist/bezels/duo-fold/fold-096.webp +0 -0
  102. package/dist/bezels/duo-fold/fold-097.webp +0 -0
  103. package/dist/bezels/duo-fold/fold-098.webp +0 -0
  104. package/dist/bezels/duo-fold/fold-099.webp +0 -0
  105. package/dist/bezels/duo-fold/fold-100.webp +0 -0
  106. package/dist/bezels/duo-fold/fold-101.webp +0 -0
  107. package/dist/bezels/duo-fold/fold-102.webp +0 -0
  108. package/dist/bezels/duo-fold/fold-103.webp +0 -0
  109. package/dist/bezels/duo-fold/fold-104.webp +0 -0
  110. package/dist/bezels/duo-fold/fold-105.webp +0 -0
  111. package/dist/bezels/duo-fold/fold-106.webp +0 -0
  112. package/dist/bezels/duo-fold/fold-107.webp +0 -0
  113. package/dist/bezels/duo-fold/fold-108.webp +0 -0
  114. package/dist/bezels/duo-fold/fold-109.webp +0 -0
  115. package/dist/bezels/duo-fold/fold-110.webp +0 -0
  116. package/dist/bezels/duo-fold/fold-111.webp +0 -0
  117. package/dist/bezels/duo-fold/fold-112.webp +0 -0
  118. package/dist/bezels/duo-fold/fold-113.webp +0 -0
  119. package/dist/bezels/duo-fold/fold-114.webp +0 -0
  120. package/dist/bezels/duo-fold/fold-115.webp +0 -0
  121. package/dist/bezels/duo-fold/fold-116.webp +0 -0
  122. package/dist/bezels/duo-fold/fold-117.webp +0 -0
  123. package/dist/bezels/duo-fold/fold-118.webp +0 -0
  124. package/dist/bezels/duo-fold/fold-119.webp +0 -0
  125. package/dist/bezels/duo-fold/fold-120.webp +0 -0
  126. package/dist/bezels/duo-fold/fold-121.webp +0 -0
  127. package/dist/bezels/duo-fold/fold-122.webp +0 -0
  128. package/dist/bezels/duo-fold/fold-123.webp +0 -0
  129. package/dist/bezels/duo-fold/fold-124.webp +0 -0
  130. package/dist/bezels/duo-fold/fold-125.webp +0 -0
  131. package/dist/bezels/duo-fold/fold-126.webp +0 -0
  132. package/dist/bezels/duo-fold/fold-127.webp +0 -0
  133. package/dist/bezels/duo-fold/fold-128.webp +0 -0
  134. package/dist/bezels/duo-fold/fold-129.webp +0 -0
  135. package/dist/bezels/duo-fold/fold-130.webp +0 -0
  136. package/dist/bezels/duo-fold/fold-131.webp +0 -0
  137. package/dist/bezels/duo-fold/fold-132.webp +0 -0
  138. package/dist/bezels/duo-fold/fold-133.webp +0 -0
  139. package/dist/bezels/duo-fold/fold-134.webp +0 -0
  140. package/dist/bezels/duo-fold/fold-135.webp +0 -0
  141. package/dist/bezels/duo-fold/fold-136.webp +0 -0
  142. package/dist/bezels/duo-fold/fold-137.webp +0 -0
  143. package/dist/bezels/duo-fold/fold-138.webp +0 -0
  144. package/dist/bezels/duo-fold/fold-139.webp +0 -0
  145. package/dist/bezels/duo-fold/fold-140.webp +0 -0
  146. package/dist/bezels/duo-fold/fold-141.webp +0 -0
  147. package/dist/bezels/duo-fold/fold-142.webp +0 -0
  148. package/dist/bezels/duo-fold/fold-143.webp +0 -0
  149. package/dist/bezels/duo-fold/fold-144.webp +0 -0
  150. package/dist/bezels/duo-fold/fold-145.webp +0 -0
  151. package/dist/bezels/duo-fold/fold-146.webp +0 -0
  152. package/dist/bezels/duo-fold/fold-147.webp +0 -0
  153. package/dist/bezels/duo-fold/fold-148.webp +0 -0
  154. package/dist/bezels/duo-fold/fold-149.webp +0 -0
  155. package/dist/bezels/duo-fold/fold-150.webp +0 -0
  156. package/dist/bezels/duo-fold/fold-151.webp +0 -0
  157. package/dist/bezels/duo-fold/fold-152.webp +0 -0
  158. package/dist/bezels/duo-fold/fold-153.webp +0 -0
  159. package/dist/bezels/duo-fold/fold-154.webp +0 -0
  160. package/dist/bezels/duo-fold/fold-155.webp +0 -0
  161. package/dist/bezels/duo-fold/fold-156.webp +0 -0
  162. package/dist/bezels/duo-fold/fold-157.webp +0 -0
  163. package/dist/bezels/duo-fold/fold-158.webp +0 -0
  164. package/dist/bezels/duo-fold/fold-159.webp +0 -0
  165. package/dist/bezels/duo-fold/fold-160.webp +0 -0
  166. package/dist/bezels/duo-fold/fold-161.webp +0 -0
  167. package/dist/bezels/duo-fold/fold-162.webp +0 -0
  168. package/dist/bezels/duo-fold/fold-163.webp +0 -0
  169. package/dist/bezels/duo-fold/fold-164.webp +0 -0
  170. package/dist/bezels/duo-fold/fold-165.webp +0 -0
  171. package/dist/bezels/duo-fold/fold-166.webp +0 -0
  172. package/dist/bezels/duo-fold/fold-167.webp +0 -0
  173. package/dist/bezels/duo-fold/fold-168.webp +0 -0
  174. package/dist/bezels/duo-fold/fold-169.webp +0 -0
  175. package/dist/bezels/duo-fold/fold-170.webp +0 -0
  176. package/dist/bezels/duo-fold/fold-171.webp +0 -0
  177. package/dist/bezels/duo-fold/fold-172.webp +0 -0
  178. package/dist/bezels/duo-fold/fold-173.webp +0 -0
  179. package/dist/bezels/duo-fold/fold-174.webp +0 -0
  180. package/dist/bezels/duo-fold/fold-175.webp +0 -0
  181. package/dist/bezels/duo-fold/fold-176.webp +0 -0
  182. package/dist/bezels/duo-fold/fold-177.webp +0 -0
  183. package/dist/bezels/duo-fold/fold-178.webp +0 -0
  184. package/dist/bezels/duo-fold/fold-179.webp +0 -0
  185. package/dist/bezels/duo-fold/fold-180.webp +0 -0
  186. package/dist/bezels/duo-fold/still-000.webp +0 -0
  187. package/dist/bezels/duo-fold/still-161.webp +0 -0
  188. package/dist/bezels/duo-fold/still-162.webp +0 -0
  189. package/dist/bezels/duo-fold/still-163.webp +0 -0
  190. package/dist/bezels/duo-fold/still-164.webp +0 -0
  191. package/dist/bezels/duo-fold/still-165.webp +0 -0
  192. package/dist/bezels/duo-fold/still-166.webp +0 -0
  193. package/dist/bezels/duo-fold/still-167.webp +0 -0
  194. package/dist/bezels/duo-fold/still-168.webp +0 -0
  195. package/dist/bezels/duo-fold/still-169.webp +0 -0
  196. package/dist/bezels/duo-fold/still-170.webp +0 -0
  197. package/dist/bezels/duo-fold/still-171.webp +0 -0
  198. package/dist/bezels/duo-fold/still-172.webp +0 -0
  199. package/dist/bezels/duo-fold/still-173.webp +0 -0
  200. package/dist/bezels/duo-fold/still-174.webp +0 -0
  201. package/dist/bezels/duo-fold/still-175.webp +0 -0
  202. package/dist/bezels/duo-fold/still-176.webp +0 -0
  203. package/dist/bezels/duo-fold/still-177.webp +0 -0
  204. package/dist/bezels/duo-fold/still-178.webp +0 -0
  205. package/dist/bezels/duo-fold/still-179.webp +0 -0
  206. package/dist/bezels/duo-fold/still-180.webp +0 -0
  207. package/dist/bezels/iphone-16-plus.webp +0 -0
  208. package/dist/bezels/iphone-16-pro-max.webp +0 -0
  209. package/dist/bezels/iphone-16-pro.webp +0 -0
  210. package/dist/bezels/iphone-16.webp +0 -0
  211. package/dist/bezels/iphone-17-pro-max.webp +0 -0
  212. package/dist/bezels/iphone-17-pro.webp +0 -0
  213. package/dist/bezels/iphone-17.webp +0 -0
  214. package/dist/bezels/iphone-18-pro-max.webp +0 -0
  215. package/dist/bezels/iphone-18-pro.webp +0 -0
  216. package/dist/bezels/iphone-air.webp +0 -0
  217. package/dist/bezels/iphone-duo-inner-open-landscape.webp +0 -0
  218. package/dist/bezels/iphone-duo-inner-open-portrait.webp +0 -0
  219. package/dist/bezels/iphone-duo-outer-closed.webp +0 -0
  220. package/dist/bezels/iphone-se.webp +0 -0
  221. package/dist/bezels/pixel-10-pro-xl.webp +0 -0
  222. package/dist/bezels/pixel-10-pro.webp +0 -0
  223. package/dist/bezels/pixel-10.webp +0 -0
  224. package/dist/bezels/pixel-10a.webp +0 -0
  225. package/dist/bezels/pixel-9-pro-xl.webp +0 -0
  226. package/dist/bezels/pixel-9-pro.webp +0 -0
  227. package/dist/bezels/pixel-9.webp +0 -0
  228. package/dist/early.d.ts +1 -0
  229. package/dist/early.global.js +8 -0
  230. package/dist/elementsview-jnkbhzkj.js +2873 -0
  231. package/dist/elementsview-tf4qzmtw.js +2874 -0
  232. package/dist/engine/address.d.ts +31 -0
  233. package/dist/engine/animations.d.ts +13 -0
  234. package/dist/engine/barshot.d.ts +48 -0
  235. package/dist/engine/bezels.d.ts +140 -0
  236. package/dist/engine/bezelurls.d.ts +5 -0
  237. package/dist/engine/browserdraw.d.ts +57 -0
  238. package/dist/engine/browserkit.d.ts +59 -0
  239. package/dist/engine/browserui.d.ts +177 -0
  240. package/dist/engine/check.d.ts +8 -0
  241. package/dist/engine/chromedraw.d.ts +17 -0
  242. package/dist/engine/clock.d.ts +91 -0
  243. package/dist/engine/color.d.ts +37 -0
  244. package/dist/engine/describe.d.ts +49 -0
  245. package/dist/engine/devices.d.ts +96 -0
  246. package/dist/engine/dock.d.ts +53 -0
  247. package/dist/engine/endroom.d.ts +21 -0
  248. package/dist/engine/fit.d.ts +75 -0
  249. package/dist/engine/fold.d.ts +562 -0
  250. package/dist/engine/foldframes.d.ts +98 -0
  251. package/dist/engine/foldgl.d.ts +151 -0
  252. package/dist/engine/foldhand.d.ts +23 -0
  253. package/dist/engine/foldlook.d.ts +49 -0
  254. package/dist/engine/foldpage.d.ts +167 -0
  255. package/dist/engine/foldrun.d.ts +98 -0
  256. package/dist/engine/frame.d.ts +142 -0
  257. package/dist/engine/frameglide.d.ts +71 -0
  258. package/dist/engine/framekit.d.ts +7 -0
  259. package/dist/engine/frames.d.ts +42 -0
  260. package/dist/engine/fresh.d.ts +59 -0
  261. package/dist/engine/geo.d.ts +58 -0
  262. package/dist/engine/header.d.ts +16 -0
  263. package/dist/engine/identity.d.ts +27 -0
  264. package/dist/engine/index.d.ts +58 -0
  265. package/dist/engine/intl.d.ts +23 -0
  266. package/dist/engine/locale.d.ts +86 -0
  267. package/dist/engine/mat.d.ts +64 -0
  268. package/dist/engine/matchmedia.d.ts +25 -0
  269. package/dist/engine/matcolors.d.ts +45 -0
  270. package/dist/engine/matsplash.d.ts +81 -0
  271. package/dist/engine/media.d.ts +55 -0
  272. package/dist/engine/mock.d.ts +65 -0
  273. package/dist/engine/mockdata.d.ts +42 -0
  274. package/dist/engine/mockdraw.d.ts +21 -0
  275. package/dist/engine/morph.d.ts +214 -0
  276. package/dist/engine/morphrun.d.ts +49 -0
  277. package/dist/engine/native.d.ts +129 -0
  278. package/dist/engine/network.d.ts +8 -0
  279. package/dist/engine/notice.d.ts +15 -0
  280. package/dist/engine/objectfit.d.ts +35 -0
  281. package/dist/engine/outlines.d.ts +2 -0
  282. package/dist/engine/overflow.d.ts +11 -0
  283. package/dist/engine/owninline.d.ts +16 -0
  284. package/dist/engine/pagefonts.d.ts +21 -0
  285. package/dist/engine/pageshot.d.ts +127 -0
  286. package/dist/engine/placeholder.d.ts +89 -0
  287. package/dist/engine/pseudo.d.ts +15 -0
  288. package/dist/engine/ready.d.ts +9 -0
  289. package/dist/engine/reload.d.ts +35 -0
  290. package/dist/engine/remount.d.ts +30 -0
  291. package/dist/engine/replay.d.ts +7 -0
  292. package/dist/engine/safaridraw.d.ts +22 -0
  293. package/dist/engine/scrollbars.d.ts +17 -0
  294. package/dist/engine/scrollkeep.d.ts +124 -0
  295. package/dist/engine/spacing.d.ts +2 -0
  296. package/dist/engine/speed.d.ts +11 -0
  297. package/dist/engine/store.d.ts +68 -0
  298. package/dist/engine/stored.d.ts +17 -0
  299. package/dist/engine/style.d.ts +27 -0
  300. package/dist/engine/system.d.ts +15 -0
  301. package/dist/engine/text.d.ts +53 -0
  302. package/dist/engine/time.d.ts +32 -0
  303. package/dist/engine/touch.d.ts +20 -0
  304. package/dist/engine/touchdot.d.ts +71 -0
  305. package/dist/engine/touchmark.d.ts +27 -0
  306. package/dist/engine/touchpointer.d.ts +113 -0
  307. package/dist/engine/tree.d.ts +9 -0
  308. package/dist/engine/turnrun.d.ts +74 -0
  309. package/dist/engine/ua.d.ts +55 -0
  310. package/dist/engine/underneath.d.ts +7 -0
  311. package/dist/engine/viewportcss.d.ts +7 -0
  312. package/dist/engine/vision.d.ts +3 -0
  313. package/dist/engine/width.d.ts +56 -0
  314. package/dist/engine/zoom.d.ts +33 -0
  315. package/dist/framekit-3n7p79ht.js +8839 -0
  316. package/dist/framekit-g96t6nmq.js +8838 -0
  317. package/dist/global.d.ts +1 -0
  318. package/dist/grab/boxmodel.d.ts +109 -0
  319. package/dist/grab/boxtext.d.ts +17 -0
  320. package/dist/grab/card.d.ts +45 -0
  321. package/dist/grab/cardread.d.ts +22 -0
  322. package/dist/grab/cardview.d.ts +18 -0
  323. package/dist/grab/clipboard.d.ts +8 -0
  324. package/dist/grab/colors.d.ts +31 -0
  325. package/dist/grab/colorvalue.d.ts +40 -0
  326. package/dist/grab/context.d.ts +25 -0
  327. package/dist/grab/control.d.ts +37 -0
  328. package/dist/grab/copy.d.ts +7 -0
  329. package/dist/grab/dwell.d.ts +29 -0
  330. package/dist/grab/fiber.d.ts +17 -0
  331. package/dist/grab/fontused.d.ts +23 -0
  332. package/dist/grab/hit.d.ts +19 -0
  333. package/dist/grab/hook.d.ts +7 -0
  334. package/dist/grab/index.d.ts +9 -0
  335. package/dist/grab/inspect.d.ts +31 -0
  336. package/dist/grab/keys.d.ts +84 -0
  337. package/dist/grab/locate.d.ts +63 -0
  338. package/dist/grab/mode.d.ts +56 -0
  339. package/dist/grab/navigate.d.ts +21 -0
  340. package/dist/grab/outline.d.ts +16 -0
  341. package/dist/grab/overlay.d.ts +135 -0
  342. package/dist/grab/paint.d.ts +7 -0
  343. package/dist/grab/paths.d.ts +27 -0
  344. package/dist/grab/picks.d.ts +9 -0
  345. package/dist/grab/place.d.ts +25 -0
  346. package/dist/grab/preview.d.ts +12 -0
  347. package/dist/grab/selector.d.ts +15 -0
  348. package/dist/grab/source.d.ts +68 -0
  349. package/dist/grab/stack.d.ts +49 -0
  350. package/dist/grab/theme.d.ts +85 -0
  351. package/dist/grab/types.d.ts +52 -0
  352. package/dist/host.d.ts +7 -0
  353. package/dist/index-0casarhy.js +324 -0
  354. package/dist/index-2d6wvs8h.js +528 -0
  355. package/dist/index-33x9hxe3.js +4563 -0
  356. package/dist/index-5baxvd3v.js +4424 -0
  357. package/dist/index-78r0f8pw.js +27 -0
  358. package/dist/index-d0cjxjsm.js +21 -0
  359. package/dist/index-dvr4x91q.js +4800 -0
  360. package/dist/index-k015tb6c.js +357 -0
  361. package/dist/index-ke6v7919.js +4801 -0
  362. package/dist/index-peh33xjv.js +346 -0
  363. package/dist/index-ztnjefrh.js +23 -0
  364. package/dist/index-zvze25nf.js +686 -0
  365. package/dist/index.d.ts +116 -0
  366. package/dist/index.global.js +2655 -0
  367. package/dist/index.js +9262 -0
  368. package/dist/instance.d.ts +29 -0
  369. package/dist/react-65tgdbs8.js +22 -0
  370. package/dist/react-71a9ypex.js +529 -0
  371. package/dist/react-adky72h9.js +29 -0
  372. package/dist/react-carf84xv.js +4420 -0
  373. package/dist/react-eygws6cx.js +358 -0
  374. package/dist/react-h9w04skh.js +25 -0
  375. package/dist/react-pdvseef0.js +325 -0
  376. package/dist/react-qv0nykcv.js +4564 -0
  377. package/dist/react-sq9pkw4k.js +687 -0
  378. package/dist/react-xxfpfddf.js +347 -0
  379. package/dist/react.d.ts +6 -0
  380. package/dist/react.js +9255 -0
  381. package/dist/requests/body.d.ts +44 -0
  382. package/dist/requests/eventsource.d.ts +14 -0
  383. package/dist/requests/fetch.d.ts +14 -0
  384. package/dist/requests/index.d.ts +35 -0
  385. package/dist/requests/patch.d.ts +17 -0
  386. package/dist/requests/quiet.d.ts +12 -0
  387. package/dist/requests/record.d.ts +40 -0
  388. package/dist/requests/resource.d.ts +28 -0
  389. package/dist/requests/shared.d.ts +34 -0
  390. package/dist/requests/stack.d.ts +7 -0
  391. package/dist/requests/store.d.ts +37 -0
  392. package/dist/requests/types.d.ts +140 -0
  393. package/dist/requests/xhr.d.ts +16 -0
  394. package/dist/storage/cache.d.ts +32 -0
  395. package/dist/storage/clear.d.ts +35 -0
  396. package/dist/storage/cookies.d.ts +71 -0
  397. package/dist/storage/format.d.ts +53 -0
  398. package/dist/storage/idb.d.ts +62 -0
  399. package/dist/storage/onload.d.ts +47 -0
  400. package/dist/storage/presets.d.ts +79 -0
  401. package/dist/storage/site.d.ts +51 -0
  402. package/dist/storage/web.d.ts +57 -0
  403. package/dist/storageview-sb23henh.js +2729 -0
  404. package/dist/storageview-vf8v8q8j.js +2728 -0
  405. package/dist/styles/cascade.d.ts +59 -0
  406. package/dist/styles/collect.d.ts +73 -0
  407. package/dist/styles/declarations.d.ts +30 -0
  408. package/dist/styles/index.d.ts +20 -0
  409. package/dist/styles/inherited.d.ts +5 -0
  410. package/dist/styles/match.d.ts +41 -0
  411. package/dist/styles/selector.d.ts +36 -0
  412. package/dist/styles/tree.d.ts +14 -0
  413. package/dist/styles/types.d.ts +117 -0
  414. package/dist/styles/varrefs.d.ts +35 -0
  415. package/dist/types.d.ts +221 -0
  416. package/dist/ui/actions.d.ts +26 -0
  417. package/dist/ui/bindings.d.ts +89 -0
  418. package/dist/ui/boxdiagram.d.ts +50 -0
  419. package/dist/ui/catalog.d.ts +195 -0
  420. package/dist/ui/colors.d.ts +51 -0
  421. package/dist/ui/column.d.ts +22 -0
  422. package/dist/ui/copytext.d.ts +6 -0
  423. package/dist/ui/deviceknobs.d.ts +20 -0
  424. package/dist/ui/dockslide.d.ts +100 -0
  425. package/dist/ui/dom.d.ts +68 -0
  426. package/dist/ui/domtree.d.ts +143 -0
  427. package/dist/ui/drag.d.ts +34 -0
  428. package/dist/ui/editors.d.ts +30 -0
  429. package/dist/ui/elementsview.d.ts +32 -0
  430. package/dist/ui/foldslider.d.ts +48 -0
  431. package/dist/ui/footer.d.ts +51 -0
  432. package/dist/ui/hold.d.ts +20 -0
  433. package/dist/ui/icons.d.ts +145 -0
  434. package/dist/ui/inspector.d.ts +59 -0
  435. package/dist/ui/keys.d.ts +180 -0
  436. package/dist/ui/kit.d.ts +336 -0
  437. package/dist/ui/knobs.d.ts +41 -0
  438. package/dist/ui/list.d.ts +68 -0
  439. package/dist/ui/palette.d.ts +59 -0
  440. package/dist/ui/pane.d.ts +151 -0
  441. package/dist/ui/panel.d.ts +56 -0
  442. package/dist/ui/pin.d.ts +28 -0
  443. package/dist/ui/place.d.ts +136 -0
  444. package/dist/ui/prefs.d.ts +53 -0
  445. package/dist/ui/radio.d.ts +37 -0
  446. package/dist/ui/requestdetail.d.ts +56 -0
  447. package/dist/ui/requestformat.d.ts +142 -0
  448. package/dist/ui/requestparts.d.ts +312 -0
  449. package/dist/ui/requests.d.ts +48 -0
  450. package/dist/ui/rows.d.ts +72 -0
  451. package/dist/ui/search.d.ts +29 -0
  452. package/dist/ui/settings.d.ts +69 -0
  453. package/dist/ui/size.d.ts +105 -0
  454. package/dist/ui/slide.d.ts +46 -0
  455. package/dist/ui/stage.d.ts +24 -0
  456. package/dist/ui/storageaction.d.ts +22 -0
  457. package/dist/ui/storagecookies.d.ts +5 -0
  458. package/dist/ui/storagedeep.d.ts +18 -0
  459. package/dist/ui/storageparts.d.ts +131 -0
  460. package/dist/ui/storagepresets.d.ts +19 -0
  461. package/dist/ui/storageview.d.ts +45 -0
  462. package/dist/ui/storageweb.d.ts +11 -0
  463. package/dist/ui/styles.d.ts +1 -0
  464. package/dist/ui/stylesapplied.d.ts +46 -0
  465. package/dist/ui/stylesformat.d.ts +78 -0
  466. package/dist/ui/stylesview.d.ts +118 -0
  467. package/dist/ui/swatches.d.ts +26 -0
  468. package/dist/ui/syntax.d.ts +34 -0
  469. package/dist/ui/tooltip.d.ts +64 -0
  470. package/package.json +60 -4
  471. package/skills/devknobs/SKILL.md +214 -0
@@ -0,0 +1,31 @@
1
+ /**
2
+ * The window's address bar and tab follow the page in the frame, so a reload
3
+ * lands where the frame was, and get the window's own back as the frame goes.
4
+ * What it needs of the frame comes in a `Followed`.
5
+ */
6
+ /** What the address follows. */
7
+ export interface Followed {
8
+ /** The page in the frame, or null once it is on another origin, or an error page. */
9
+ page(): Document | null;
10
+ /** Where the frame is now. */
11
+ locate(): string;
12
+ /** Show the address the window has now on the drawn browser. */
13
+ refresh(): void;
14
+ }
15
+ /** Follow the frame that just came up over the window's own page. */
16
+ export declare function follow(frame: Followed): void;
17
+ /** Put where the frame is in the window's address bar and tab, so a reload lands there. */
18
+ export declare function mirror(): void;
19
+ /**
20
+ * Mirror the frame's same-document navigations too. The navigation api's
21
+ * `currententrychange` comes after every url change, `pushState` included,
22
+ * where `navigate` comes before and skips it. Without it, wrap the frame's
23
+ * history. Both go with the frame's window on its next load.
24
+ */
25
+ export declare function watch(view: Window, doc: Document): void;
26
+ /** Did the window go back to another entry since the frame's address was put there? */
27
+ export declare function moved(): boolean;
28
+ /** Stop following the frame's title. */
29
+ export declare function unwatch(): void;
30
+ /** The window shows its own page again, so its own address, unless it moved, and title too. */
31
+ export declare function giveBack(stayed: boolean): void;
@@ -0,0 +1,13 @@
1
+ /** The element an animation moves, if it moves one. */
2
+ export declare function targetOf(animation: Animation): Element | null;
3
+ /**
4
+ * Runs on the document's clock. Scroll-driven animations (a ScrollTimeline or a
5
+ * ViewTimeline) follow the scroll position instead, and an animation with no
6
+ * timeline does not run at all, so neither is the knobs' to restart or slow.
7
+ */
8
+ export declare function onDocumentTimeline(animation: Animation): boolean;
9
+ /**
10
+ * Every animation the page has: the document's, then each shadow root's, since
11
+ * `document.getAnimations()` leaves shadow trees out. devknobs' own are skipped.
12
+ */
13
+ export declare function collect(roots?: ShadowRoot[]): Animation[];
@@ -0,0 +1,48 @@
1
+ import { type Bars } from "./browserui";
2
+ import type { Rect } from "./mock";
3
+ import type { ViewportValue } from "./width";
4
+ /** A shape of the bars that blurs the page under it, in the screen's css px, and its corners. */
5
+ export interface Glass {
6
+ rect: Rect;
7
+ radius: number;
8
+ }
9
+ /** The knobs that say which bars a screen shows. */
10
+ export type BarsKnobs = Pick<ViewportValue, "device" | "posture" | "orientation" | "browser" | "edgeToEdge">;
11
+ /** The bars a screen shows for `value`, expanded or `minimized`, or null where its browser draws none. */
12
+ export declare function barsFor(value: BarsKnobs, minimized: boolean): Bars | null;
13
+ /**
14
+ * Where Safari's bars are glass, as it draws them: expanded, every shape but
15
+ * the field in Bottom's card, and minimized, the pill as wide as `host` sets
16
+ * in it, the rest faded out. None of Chrome's, which hide the page.
17
+ */
18
+ export declare function glassOf(bars: Bars, host: string): Glass[];
19
+ /** The bars as a screen shows them: their drawing on its way, the screen's css px, and their glass. */
20
+ export interface BarsCopy {
21
+ drawing: Promise<HTMLImageElement | null>;
22
+ size: {
23
+ width: number;
24
+ height: number;
25
+ };
26
+ glass: Glass[];
27
+ }
28
+ /** A picture of a screen as the browser draws it, and are its bars drawn in it? */
29
+ export interface Drawn {
30
+ shot: HTMLCanvasElement;
31
+ bars: boolean;
32
+ }
33
+ /**
34
+ * A copy of the bars `shown` over a screen `size` css px, as they are now,
35
+ * drawn by the browser, which it starts at once, and their glass as the knobs
36
+ * `value` have it.
37
+ */
38
+ export declare function copyBars(shown: HTMLElement, value: BarsKnobs, size: {
39
+ width: number;
40
+ height: number;
41
+ }): BarsCopy;
42
+ /**
43
+ * Draw `bars` over `shot`, a picture of the page on their screen, the
44
+ * picture under their glass blurred first. False where they will not draw.
45
+ */
46
+ export declare function paintBars(shot: HTMLCanvasElement, bars: BarsCopy): Promise<boolean>;
47
+ /** The page once it is painted, `page`, with `bars` drawn over it, where there are any and they draw. */
48
+ export declare function withBars(page: Promise<HTMLCanvasElement | null>, bars: BarsCopy | null): Promise<Drawn | null>;
@@ -0,0 +1,140 @@
1
+ import type { DevknobsState, OrientationValue } from "../types";
2
+ import { type FoldShots } from "./fold";
3
+ import { type Mock, type Radius } from "./mock";
4
+ /**
5
+ * The maker's own bezel image as the body of an iPhone or a Pixel, in place
6
+ * of the drawn mock: Apple's product bezels from Apple Design Resources and
7
+ * its App Store marketing artwork, and Google's Android Studio emulator frames
8
+ * from AOSP. None of them is under this project's license: see
9
+ * THIRD_PARTY_NOTICES.md. They all live in assets/bezels, which the build
10
+ * copies to dist/bezels, and nothing but bezelurls.ts, which the build writes
11
+ * from the folder, names them. Each loads when its device is first shown with
12
+ * the mock on. Delete assets/bezels and build, and every device draws its own
13
+ * mock again, as it does where an image does not load. The Duo's fold has
14
+ * frames of its own in assets/bezels/duo-fold, rendered from Apple's model,
15
+ * and its half that stays, which all load once the Duo is first shown with
16
+ * the mock on. A fold decodes only the frames round the hinge's angle and
17
+ * ahead of it, and the half that stays, letting go of each frame it leaves
18
+ * behind. While the Duo is shown at rest in its bezels, those a fold from
19
+ * that end starts with stay decoded, so it has them as it starts, and all
20
+ * are let go of once the Duo is not shown.
21
+ */
22
+ /** One image, measured in its own px, at its own density: see `densityOf`. */
23
+ export interface Bezel {
24
+ file: string;
25
+ size: readonly [width: number, height: number];
26
+ /** The transparent screen opening, which is the screen's size times the image's density. */
27
+ opening: readonly [left: number, top: number, width: number, height: number];
28
+ /** The body with its buttons. */
29
+ body: readonly [left: number, top: number, right: number, bottom: number];
30
+ /** The island or the camera hole, which the image draws. */
31
+ cutout?: readonly [left: number, top: number, width: number, height: number];
32
+ /**
33
+ * What the page is clipped to, in css px. The opening's corners are not
34
+ * arcs, so this is the biggest round corner that still shows all of the
35
+ * opening, and the body covers the page past it.
36
+ */
37
+ radius: Radius;
38
+ }
39
+ /** A device's images: held upright, and held across where that is not the upright one turned. */
40
+ export declare const BEZELS: Record<string, {
41
+ portrait: Bezel;
42
+ landscape?: Bezel;
43
+ }>;
44
+ /** The global build's images are in the folder beside its script. */
45
+ export declare function bezelsBeside(src: string): void;
46
+ /**
47
+ * Image px per css px of an image on its device's screen. An image is at its
48
+ * own scale, which need not be 3, and its opening is the screen at that scale
49
+ * give or take a px, so the density takes the opening's width and height
50
+ * together and neither side is more off than the other. Null for a device
51
+ * that is not in the list.
52
+ */
53
+ export declare function densityOf(id: string, bezel: Bezel): number | null;
54
+ /**
55
+ * The image as the mock of a device, or a foldable's screen, held one way, its
56
+ * opening on the screen, or null. The image is drawn at its density, never
57
+ * stretched, and the screen sits in the middle of the opening.
58
+ */
59
+ export declare function bezelMock(id: string, orientation: OrientationValue): Mock | null;
60
+ interface Load {
61
+ state: "loading" | "ready" | "failed";
62
+ url: string;
63
+ waiting: Set<() => void>;
64
+ }
65
+ /**
66
+ * Load an image, once. `settled` hears when a load that is still under way
67
+ * ends, either way. Failed where there is no image to load, or nothing to
68
+ * load one with.
69
+ */
70
+ export declare function loadBezel(file: string, settled: () => void): Load["state"];
71
+ /** The address of an image that has loaded, or null. */
72
+ export declare function bezelUrl(file: string): string | null;
73
+ /**
74
+ * Load each of `files`, each from the first of its addresses that loads, in
75
+ * order, without decoding it. Rejects where one of them loads from none.
76
+ */
77
+ export declare function loadAll(files: readonly string[]): Promise<HTMLImageElement[]>;
78
+ /** How long the pictures stay once a fold is over, in ms, so one fold after another needs them only once. */
79
+ export declare const SHOTS_KEPT = 4000;
80
+ /**
81
+ * Load every frame of the Duo's fold and its half that stays, once, so they
82
+ * are in the browser when a fold wants them. Where one fails, a fold turns
83
+ * copies of the bezels for good.
84
+ */
85
+ export declare function loadFoldShots(): void;
86
+ /**
87
+ * Decode, for a fold drawing the hinge `open` of the way open and going
88
+ * `toward` shut, 1, open, -1, or neither, 0, the frames `shotsWindow` keeps
89
+ * round it and the halves that stay they name, nearest first, and let go of
90
+ * every other, each time it draws. The fold holds them till `endFoldShots`: the pictures stay till then,
91
+ * and after, till `releaseFoldShots`. Till the first are in, a fold turns
92
+ * copies of the bezels.
93
+ */
94
+ export declare function decodeFoldShots(open: number, toward: number): void;
95
+ /**
96
+ * The Duo is shown in its bezels, at rest `rest` of the way open, 0 or 1:
97
+ * the frames a fold from that end starts with decode ahead of it, once what
98
+ * draws it now is done, and stay till `releaseFoldShots`. A fold asked for in
99
+ * the same turn takes them as they are, and they decode once it ends.
100
+ */
101
+ export declare function restFoldShots(rest: number): void;
102
+ /**
103
+ * Let go of the frames' pictures `after` ms from now, or at once, and of any
104
+ * under way as they come in: while a fold draws them, once it ends. At once,
105
+ * the Duo is not shown at rest any more. Their files stay loaded for the
106
+ * next fold.
107
+ */
108
+ export declare function releaseFoldShots(after?: number): void;
109
+ /**
110
+ * A fold is done with the frames' pictures: where the Duo is shown at rest,
111
+ * those a fold from the end it rests at starts with are kept, once it is
112
+ * drawn there. Else let go of them `SHOTS_KEPT` ms from now, so the next
113
+ * fold has them, or at once where they were let go of while it drew them,
114
+ * where one did not decode, or `now`.
115
+ */
116
+ export declare function endFoldShots(now?: boolean): void;
117
+ /** The Duo's fold frames, and the pictures of those decoded and of the halves that stay, each by its place, else null. */
118
+ export interface FoldPictures {
119
+ shots: FoldShots;
120
+ frames: readonly (ImageBitmap | null)[];
121
+ stills: readonly (ImageBitmap | null)[];
122
+ }
123
+ /**
124
+ * The Duo's fold frames and the pictures of them and of their halves that
125
+ * stay: once a frame and its half that stays are in, else null. Asked again
126
+ * each time a fold draws, as pictures come and go.
127
+ */
128
+ export declare function foldShots(): FoldPictures | null;
129
+ /** May the Duo's fold frames still come in for a fold: are they loading or loaded, and has none failed? */
130
+ export declare function foldShotsDue(): boolean;
131
+ /** What picks the body drawn around the frame. */
132
+ export type BodyKnobs = Pick<DevknobsState, "mock" | "device" | "orientation" | "posture">;
133
+ /**
134
+ * The body around the frame: the maker's bezel image where the device has
135
+ * one, and the drawn mock where it has none or the image does not load. While
136
+ * the image loads the drawn mock stands in its room, so the frame never moves
137
+ * as it comes in, and `settled` hears once it is in.
138
+ */
139
+ export declare function bodyOf(knobs: BodyKnobs, settled: () => void): Mock | null;
140
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { FoldShots } from "./fold";
2
+ /** Where each image is, beside the built module. */
3
+ export declare const BEZEL_URLS: Record<string, () => string>;
4
+ /** The frames of the Duo's turning half and its halves that stay, in assets/bezels/duo-fold, or null without them. */
5
+ export declare const DUO_FOLD: FoldShots | null;
@@ -0,0 +1,57 @@
1
+ import { type Bars } from "./browserui";
2
+ import { type Look } from "./browserkit";
3
+ import type { Rect } from "./mock";
4
+ export declare const BARS_CSS: string;
5
+ /** What the bars show for the page in the frame, white and empty while it is out of reach. */
6
+ export declare function readLook(frame: HTMLIFrameElement): Look;
7
+ /** What the bars are drawn for. */
8
+ export interface BrowserView {
9
+ bars: Bars | null;
10
+ /** Where the page sits in the screen. */
11
+ page: Rect | null;
12
+ /** The screen, in css px. */
13
+ size: {
14
+ width: number;
15
+ height: number;
16
+ };
17
+ /** The frame's zoom, which the bars are drawn at too. */
18
+ zoom: number;
19
+ /** The bars follow the page's scroll, so the minimized one expands on a tap. */
20
+ follow: boolean;
21
+ /** Puts the frame at the page's size and place. */
22
+ sizeFrame(): void;
23
+ }
24
+ export interface BrowserLayer {
25
+ /**
26
+ * Draw the bars, or take them away. Bars that only minimize or expand move
27
+ * between their two states in place, and the frame takes a new size when
28
+ * that never leaves a gap: at once when it grows, at the end of the morph
29
+ * when it shrinks.
30
+ */
31
+ show(view: BrowserView): void;
32
+ /** Read the page again: its background, scheme, address and history. */
33
+ refresh(): void;
34
+ /** Has the page's scroll minimized the bars? */
35
+ minimized(): boolean;
36
+ /** Where the frame's page sits in the screen now, or null where it fills it. */
37
+ page(): Rect | null;
38
+ /**
39
+ * Blank the screen in the page's color and show the page loading, as
40
+ * Safari shows a reload, until the frame's page can paint. While it loads
41
+ * the bars keep what they showed, or `seed`, over the blank page.
42
+ */
43
+ startLoading(seed: Look | null): void;
44
+ /** Show the page as far as it got, and the bars done loading. */
45
+ stopLoading(): void;
46
+ /** What the bars show for the page now. */
47
+ look(): Look | null;
48
+ remove(): void;
49
+ }
50
+ /**
51
+ * The bars over the frame in `glass`, which fills with the page's background
52
+ * around the frame, as Safari and Chrome tint the screen around their bars.
53
+ * The page's scroll moves `minimized()`, and `onChange` hears when it does.
54
+ * `onReload` hears the reload button before the page reloads, and `ready`
55
+ * says when the frame's page is in and ready to paint, with no reload on its way.
56
+ */
57
+ export declare function createBrowser(glass: HTMLElement, frame: HTMLIFrameElement, onChange: () => void, onReload?: () => void, ready?: () => boolean): BrowserLayer;
@@ -0,0 +1,59 @@
1
+ import type { Glyph, Mark } from "./browserui";
2
+ /** What the bars take from the page in the frame. */
3
+ export interface Look {
4
+ /** The page's background, which fills the screen around the frame. */
5
+ background: string;
6
+ /** Is that background dark, so the glass and the glyphs on it go dark too? */
7
+ dark: boolean;
8
+ /** Does the page get a dark `prefers-color-scheme`? Chrome's own colors follow it. */
9
+ scheme: "light" | "dark";
10
+ host: string;
11
+ canBack: boolean;
12
+ canForward: boolean;
13
+ }
14
+ /** What the working buttons do to the frame. */
15
+ export interface Actions {
16
+ back(): void;
17
+ forward(): void;
18
+ reload(): void;
19
+ /** Bring the minimized bars back, where they follow the scroll. */
20
+ expand?: () => void;
21
+ }
22
+ /** The system font, never a bundled one. */
23
+ export declare const FONT = "-apple-system, system-ui, \"SF Pro Text\", Roboto, sans-serif";
24
+ /** The battery's charge in percent, on Safari's and Chrome's status bars. */
25
+ export declare const CHARGE = 69;
26
+ export declare function el(tag: string, className: string, text?: string): HTMLElement;
27
+ export declare function svgNode<K extends keyof SVGElementTagNameMap>(tag: K, attributes: Record<string, string | number>): SVGElementTagNameMap[K];
28
+ /** Place a node by its box, in css px of the screen. */
29
+ export declare function place(node: HTMLElement | SVGElement, x: number, y: number, w: number, h: number): void;
30
+ /** The paths of one glyph, centered on 0, 0, in css px. */
31
+ export type Shapes = SVGElement[];
32
+ /**
33
+ * A glyph centered on its mark, in a box `box` px across, drawn by `paths`.
34
+ * A pressable one takes the pointer and does its action.
35
+ */
36
+ export declare function glyphAt(mark: Mark, paths: Record<Glyph, () => Shapes>, box: number, className: string, press?: () => void): SVGSVGElement;
37
+ /** Bars drawn once for a layout, then moved between expanded and minimized in place. */
38
+ export interface Painted {
39
+ root: HTMLElement;
40
+ /** Show the bars expanded or minimized, for the page as it looks now. */
41
+ apply(minimized: boolean, look: Look): void;
42
+ /** Show a page loading, or done loading, with no movement when `still`. */
43
+ loading?(on: boolean, still: boolean): void;
44
+ }
45
+ /**
46
+ * The morph between expanded and minimized bars, from the transitions.dev
47
+ * motion tokens: --duration-very-slow to minimize and --duration-slow to
48
+ * expand. Its curve is css's own ease: it answers the scroll at once and
49
+ * settles slowly. --ease-smooth-out, and an iOS spring's cubic-bezier(0.32,
50
+ * 0.72, 0, 1) too, cover three quarters of the way in the first quarter of
51
+ * the time, which reads as a snap, and a standard ease in out lags.
52
+ */
53
+ export declare const MORPH: {
54
+ readonly minimize: 500;
55
+ readonly expand: 400;
56
+ readonly ease: "cubic-bezier(0.25, 0.1, 0.25, 1)";
57
+ };
58
+ /** How wide `text` sets in the system font at `size` px and `weight`. */
59
+ export declare function textWidth(text: string, size: number, weight: number, spacing?: number): number;
@@ -0,0 +1,177 @@
1
+ import type { BrowserValue, OrientationValue } from "../types";
2
+ import type { Rect } from "./mock";
3
+ /**
4
+ * The browser a phone shows the page in, drawn around it inside the screen:
5
+ * Safari on an iPhone, Chrome on an Android phone. The numbers are iOS 26.5
6
+ * Safari measured in the simulator, and Chrome's from the Chromium and AOSP
7
+ * sources, in css px of the screen.
8
+ */
9
+ export type Platform = "safari" | "chrome";
10
+ /** Where the browser keeps its bars, or none at all. */
11
+ export type BrowserLayout = "compact" | "bottom" | "top" | "off";
12
+ /** Safari's bars, measured from the bottom of the screen or the top inset. */
13
+ export declare const SAFARI_BARS: {
14
+ /** Compact's capsules and the bottom gap under them. */
15
+ readonly compact: 98;
16
+ /** Bottom's card, 152 on the SE. */
17
+ readonly bottom: 158;
18
+ readonly bottomSe: 152;
19
+ /** Top's address capsule and the gap under it, then the bottom capsule. */
20
+ readonly topBar: 60;
21
+ readonly topBottom: 92;
22
+ /** What a minimized bar keeps: the domain pill at the bottom, or at the top. */
23
+ readonly pill: 58;
24
+ readonly topPill: 44;
25
+ /** The single top row in landscape. */
26
+ readonly landscape: 64;
27
+ };
28
+ /** Chrome's toolbar, the gesture area's chin under it, and the status bar in landscape. */
29
+ export declare const CHROME_BARS: {
30
+ readonly toolbar: 56;
31
+ readonly chin: 24;
32
+ readonly landscapeTop: 24;
33
+ };
34
+ export declare function platformOf(id: string): Platform | null;
35
+ /** The layouts the device's browser offers, its default first. Empty for one with none. */
36
+ export declare function layoutOptions(id: string): readonly BrowserLayout[];
37
+ /**
38
+ * The layout the knob comes to on a device: its browser's default for auto,
39
+ * or for one the browser does not have. Null for a device without a browser.
40
+ */
41
+ export declare function layoutOf(id: string, browser: BrowserValue): BrowserLayout | null;
42
+ /** The screen a device shows, held one way. */
43
+ export interface Screen {
44
+ id: string;
45
+ width: number;
46
+ height: number;
47
+ }
48
+ /**
49
+ * Where the page's viewport sits in the screen, and its size: what the page
50
+ * reads as `innerWidth` and `innerHeight`. The whole screen without a browser.
51
+ */
52
+ export declare function viewportOf(device: Screen, orientation: OrientationValue, layout: BrowserLayout | null, minimized: boolean, edge?: boolean): Rect;
53
+ /**
54
+ * The room the end of a page drawn edge to edge needs so its last content
55
+ * scrolls clear of the bars: how far the frame runs past the bottom of the
56
+ * viewport Safari gives the page, bars as they are. On the phone the page
57
+ * ends there, and under the bars is its plain background. None where the
58
+ * frame is that viewport, and none for the bars at the top.
59
+ */
60
+ export declare function endRoom(device: Screen, orientation: OrientationValue, layout: BrowserLayout | null, minimized: boolean, edge: boolean): number;
61
+ /** A glyph the bars draw. */
62
+ export type Glyph = "back" | "forward" | "share" | "bookmarks" | "tabs" | "reload" | "page" | "more" | "plus" | "home" | "tune" | "switcher" | "menu";
63
+ /** A glyph centered on `x`, `y`. */
64
+ export interface Mark {
65
+ glyph: Glyph;
66
+ x: number;
67
+ y: number;
68
+ }
69
+ /**
70
+ * A shape of a bar: a glass capsule, Bottom's card, the address field inside
71
+ * it, or the minimized domain pill, whose width follows its text. Glyphs and
72
+ * the domain sit in it, in screen coordinates.
73
+ */
74
+ export interface Shape extends Rect {
75
+ kind: "glass" | "card" | "field" | "pill" | "toolbar";
76
+ radius: number;
77
+ marks: Mark[];
78
+ /** Where the shape shows the domain: its center in Safari, its start in Chrome. */
79
+ text?: {
80
+ x: number;
81
+ y: number;
82
+ size: number;
83
+ };
84
+ }
85
+ /** The status bar and what is in it. */
86
+ export interface StatusBar {
87
+ height: number;
88
+ /** The time's center. */
89
+ time: {
90
+ x: number;
91
+ y: number;
92
+ size: number;
93
+ };
94
+ /** The right edge of the icons and their center line, or their left edge where `start`. */
95
+ icons: {
96
+ x: number;
97
+ y: number;
98
+ align: "end" | "start";
99
+ };
100
+ /** The SE keeps the battery alone on the right, the bars and wifi on the left. */
101
+ battery?: {
102
+ x: number;
103
+ y: number;
104
+ };
105
+ }
106
+ export interface Bars {
107
+ platform: Platform;
108
+ layout: BrowserLayout;
109
+ /** The screen and the way it is held, so the bars' other state can be drawn too. */
110
+ screen: Screen;
111
+ orientation: OrientationValue;
112
+ minimized: boolean;
113
+ status: StatusBar | null;
114
+ shapes: Shape[];
115
+ /** Chrome's chin under the toolbar, in the toolbar's color. */
116
+ chin: Rect | null;
117
+ /** Chrome's hairline between the toolbar and the page. */
118
+ hairline: Rect | null;
119
+ /** Safari's scroll edge under its bottom bars. */
120
+ fade: Fade | null;
121
+ /** Safari draws the page under its bars, to the bottom of the screen. */
122
+ edge: boolean;
123
+ }
124
+ /**
125
+ * A fade from clear into the page's background, `y` to the screen's bottom,
126
+ * with how opaque it is `at` px down it.
127
+ */
128
+ export interface Fade {
129
+ y: number;
130
+ height: number;
131
+ stops: {
132
+ at: number;
133
+ alpha: number;
134
+ }[];
135
+ }
136
+ /** The domain's size in Safari's address field and in the minimized pill. */
137
+ export declare const SAFARI_TEXT: {
138
+ readonly field: 17;
139
+ readonly pill: 13;
140
+ };
141
+ /** Everything the browser draws around the page, or null for a device without a browser. */
142
+ export declare function barsOf(device: Screen, orientation: OrientationValue, layout: BrowserLayout | null, minimized: boolean, edge?: boolean): Bars | null;
143
+ /**
144
+ * How the bars follow the page's scroll, as Safari and Chrome do: a scroll
145
+ * down minimizes them, a deliberate scroll up or the top of the page brings
146
+ * them back, and so do a tap on the minimized bar and a new page.
147
+ */
148
+ export interface BarsMotion {
149
+ minimized: boolean;
150
+ /** The scroll position the travel since the last turn counts from. */
151
+ anchor: number;
152
+ /** The scroll position last seen. */
153
+ y: number;
154
+ /** Until when scrolls are the page settling into a new viewport, not the user's. */
155
+ lockUntil: number;
156
+ }
157
+ export type BarsEvent = {
158
+ type: "scroll";
159
+ y: number;
160
+ time: number;
161
+ } | {
162
+ type: "tap";
163
+ } | {
164
+ type: "navigate";
165
+ }
166
+ /** The frame was resized for the bars, or its page given another end room, at `time`. */
167
+ | {
168
+ type: "resize";
169
+ time: number;
170
+ };
171
+ /** Downward travel that minimizes, and upward travel that brings the bars back, in css px. */
172
+ export declare const BARS_DOWN = 16;
173
+ export declare const BARS_UP = 40;
174
+ /** How long the scrolls after a resize of the frame are its own, in ms. */
175
+ export declare const BARS_LOCK = 450;
176
+ export declare const BARS_START: BarsMotion;
177
+ export declare function barsStep(state: BarsMotion, event: BarsEvent): BarsMotion;
@@ -0,0 +1,8 @@
1
+ import type { DevknobsStatePatch } from "../types";
2
+ /**
3
+ * Throw a TypeError at a patch an agent got wrong: a knob or a field the
4
+ * state does not have, or a value outside what `describe()` says the knob
5
+ * takes, or for a field it leaves out, what the stored state reads.
6
+ * The whole patch is checked before any of it is applied.
7
+ */
8
+ export declare function checkPatch(patch: unknown): asserts patch is DevknobsStatePatch;
@@ -0,0 +1,17 @@
1
+ import type { Look, Painted } from "./browserkit";
2
+ import type { Bars } from "./browserui";
3
+ /**
4
+ * Chrome on Android: the Material 3 toolbar with its url pill, the status bar
5
+ * and the chin over the gesture area. No gesture handle: here no app is
6
+ * switched. Colors are Chromium's
7
+ * baseline, before dynamic color, light or dark with the page's scheme. The
8
+ * glyphs are drawn here, not taken from an icon set.
9
+ */
10
+ export declare const CHROME_CSS: string;
11
+ /**
12
+ * Chrome's bars, drawn once for both states. The toolbar slides away under
13
+ * the status bar, or down off the screen with the chin when it is at the
14
+ * bottom, and back, on the same timing and curve as Safari's morph. The
15
+ * status bar loses the toolbar's color as it goes.
16
+ */
17
+ export declare function buildChrome(full: Bars, mini: Bars, look: Look): Painted;
@@ -0,0 +1,91 @@
1
+ import type { ClockValue } from "../types";
2
+ /** The slowest and the fastest clock, in clock ms per real ms. */
3
+ export declare const CLOCK_SPEED_MIN = 0.001;
4
+ export declare const CLOCK_SPEED_MAX = 1000000;
5
+ /** Jumps the panel offers, each from the real now. */
6
+ export declare const CLOCK_PRESETS: readonly [{
7
+ readonly label: "+1h";
8
+ readonly ms: 3600000;
9
+ }, {
10
+ readonly label: "+1d";
11
+ readonly ms: 86400000;
12
+ }, {
13
+ readonly label: "+2d";
14
+ readonly ms: number;
15
+ }, {
16
+ readonly label: "+1w";
17
+ readonly ms: number;
18
+ }, {
19
+ readonly label: "+30d";
20
+ readonly ms: number;
21
+ }];
22
+ export declare const NativeDate: DateConstructor;
23
+ /** The real time, in epoch ms, whatever the clock says. */
24
+ export declare function realNow(): number;
25
+ /**
26
+ * What the clock reads at a real instant, in whole epoch ms: running from `at`
27
+ * since `since` at its speed, stopped at `at`, or the real time.
28
+ */
29
+ export declare function virtualNow(clock: ClockValue, real: number): number;
30
+ /**
31
+ * Patch a clock, anchoring it again whenever it moves: an `at` runs from the
32
+ * real now, and a new mode or speed carries on from where the clock stands,
33
+ * so nothing jumps. A `since` of its own is taken as given.
34
+ */
35
+ export declare function mergeClock(clock: ClockValue, patch: Partial<ClockValue> | undefined, real?: number): ClockValue;
36
+ /** Set the clock the page reads, or put the real one back with null or `system`. */
37
+ export declare function setClock(value: ClockValue | null): void;
38
+ export declare function clockOn(): boolean;
39
+ /** What `Date.now()` reads: the clock's instant, or the real one with no clock set. */
40
+ export declare function now(): number;
41
+ /** What the time zone knob adds to the `Date` proxy. The early script goes without. */
42
+ export interface ZoneHooks {
43
+ on(): boolean;
44
+ /** Constructor arguments that name the same instant in the emulated zone. */
45
+ args(args: unknown[]): unknown[];
46
+ parse(value: unknown): number;
47
+ }
48
+ /**
49
+ * The page's `Date`, one proxy for the clock and the time zone knob. Built
50
+ * with no arguments it lands on the clock's instant, and `Date()` prints that
51
+ * instant. Any argument names an instant of its own, which the clock leaves
52
+ * alone. The prototype is the same object, so `instanceof Date` holds for
53
+ * dates from before the patch too.
54
+ */
55
+ export declare function wrapDate(original: DateConstructor, zone?: ZoneHooks): DateConstructor;
56
+ interface ZonedDateTime {
57
+ toPlainDateTime(): unknown;
58
+ toPlainDate(): unknown;
59
+ toPlainTime(): unknown;
60
+ }
61
+ interface Instant {
62
+ toZonedDateTimeISO(timeZone: unknown): ZonedDateTime;
63
+ }
64
+ /** What each `Temporal.Now` reader makes of the current instant, in a zone. */
65
+ declare const READERS: {
66
+ instant: (instant: Instant) => Instant;
67
+ zonedDateTimeISO: (instant: Instant, zone: unknown) => ZonedDateTime;
68
+ plainDateTimeISO: (instant: Instant, zone: unknown) => unknown;
69
+ plainDateISO: (instant: Instant, zone: unknown) => unknown;
70
+ plainTimeISO: (instant: Instant, zone: unknown) => unknown;
71
+ };
72
+ export type NowReaderName = keyof typeof READERS;
73
+ export declare const NOW_READERS: NowReaderName[];
74
+ export type NowReader = (this: unknown, timeZone?: unknown) => unknown;
75
+ /** `Temporal.Now`, where the engine has it. */
76
+ export declare function temporalNow(): Record<string, unknown> | undefined;
77
+ /**
78
+ * A `Temporal.Now` reader at the clock's instant. `zoneOf` picks the zone for
79
+ * the zone argument a call gave, undefined included; with no zone the reader
80
+ * takes the one `Temporal.Now.timeZoneId()` reports.
81
+ */
82
+ export declare function readNow(key: NowReaderName, original: NowReader, zoneOf: (timeZone: unknown) => unknown): NowReader;
83
+ /**
84
+ * The early script's part: set the stored clock before any page script reads
85
+ * the time, with the same `Date` proxy and `Temporal.Now` readers the full
86
+ * script puts in, less the zone.
87
+ */
88
+ export declare function early(value: ClockValue): void;
89
+ /** Take the early script's patches off, once, before the full script puts its own on. */
90
+ export declare function takeOver(): void;
91
+ export {};