@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,142 @@
1
+ import { type BodyRecord, type RequestEntry, type RequestSizes } from "../requests/types";
2
+ import type { GlyphName } from "./icons";
3
+ /**
4
+ * How a request reads: in a row of the requests view, in its detail, and as
5
+ * the text that is copied for an AI. All of it from the row alone, so none of
6
+ * it needs a page.
7
+ */
8
+ /** Why a light row says less, in the words its tooltip and its detail use. */
9
+ export declare const LIGHT_WHY = "the browser gives a page only timing and size for this";
10
+ /** What a hidden value is copied as, a header's or an address parameter's. */
11
+ export declare const HIDDEN = "<hidden>";
12
+ /** How much of a query a row shows, in characters, the `?` included. */
13
+ export declare const QUERY_MAX = 16;
14
+ /** How near its start a list counts as scrolled to it, in px. */
15
+ export declare const STICK_SLACK = 4;
16
+ /** `text` cut to `max` characters, the cut in its middle, where both ends tell more. */
17
+ export declare function middle(text: string, max: number): string;
18
+ /**
19
+ * What a row calls an address: its last path segment, or its host where
20
+ * there is no path, and its query apart, as that is shown quieter.
21
+ */
22
+ export declare function urlName(url: string): {
23
+ name: string;
24
+ query: string;
25
+ };
26
+ /**
27
+ * The kind of thing a request is for, in a short word: `fetch`, `xhr` and `eventsource` for
28
+ * a script's, `doc` for the page itself, and for what the page loads on its
29
+ * own what its type, its address or its loader says it is.
30
+ */
31
+ export declare function kindLabel(entry: RequestEntry): string;
32
+ /** What a row starts with: the method, kept short, or the kind where the browser gives no method. */
33
+ export declare function methodLabel(entry: RequestEntry): string;
34
+ /** What stands for a kind in a row: a mark or an icon, and the tone it is drawn in. */
35
+ export interface KindMark {
36
+ icon: GlyphName;
37
+ /** A class that colors it, or none for a mark that has its own color. */
38
+ tone: string;
39
+ }
40
+ /** The mark a kind shows by, as `kindLabel` names it: a plain file for one that has none. */
41
+ export declare function kindMark(kind: string): KindMark;
42
+ /** The class that colors a method's text: its own for the five that are common, one for the rest. */
43
+ export declare function methodTone(method: string): string;
44
+ /** A row's first column: its text, which is its name where an icon shows in its place, and its tone. */
45
+ export interface Lead {
46
+ text: string;
47
+ icon: GlyphName | null;
48
+ tone: string;
49
+ }
50
+ /** What a row starts with: the method as tinted text, or the kind as a mark where there is no method. */
51
+ export declare function lead(entry: RequestEntry): Lead;
52
+ /**
53
+ * A row's status: the number, or a word where there is none. Empty where the
54
+ * request went well and the browser does not say with what.
55
+ */
56
+ export declare function statusLabel(entry: RequestEntry): string;
57
+ /** A request that got no answer, or one of 400 or above. */
58
+ export declare function statusHot(entry: RequestEntry): boolean;
59
+ /** The classes a status is colored by, one at a time. */
60
+ export declare const STATUS_TONES: readonly ["ok", "moved", "hot", "idle"];
61
+ export type StatusTone = (typeof STATUS_TONES)[number];
62
+ /**
63
+ * How a status reads at a glance: quiet while it runs or was given up, hot
64
+ * for a failure and 400 or above, ok in the 200s, moved in the 300s, and
65
+ * nothing for the rest, which keeps the row's own color.
66
+ */
67
+ export declare function statusTone(entry: RequestEntry): StatusTone | null;
68
+ /** A time span: whole ms under a second, seconds to one decimal from there. Empty for none. */
69
+ export declare function durationLabel(ms: number | null): string;
70
+ /** A size in bytes, as `512 bytes`, `1.5 KB` or `2 MB`. */
71
+ export declare function bytesLabel(bytes: number): string;
72
+ /**
73
+ * What came over the wire and how big the body is, or why that is not known.
74
+ * It reads on from the word size: `size: hidden by the server`.
75
+ */
76
+ export declare function sizeLabel(sizes: RequestSizes): string;
77
+ /** The time of day a date reads, to the ms, as `14:03:07.120`. */
78
+ export declare function clockTime(date: Pick<Date, "getHours" | "getMinutes" | "getSeconds" | "getMilliseconds">): string;
79
+ /** The rows a chip keeps: all of them, a script's own, or what the page loads by itself. */
80
+ export type Chip = "all" | "script" | "other";
81
+ export declare const CHIPS: readonly {
82
+ id: Chip;
83
+ label: string;
84
+ }[];
85
+ /**
86
+ * Does a row show under a chip and a filter? Every word of the filter has to
87
+ * be in its address, its method or its status, in any case.
88
+ */
89
+ export declare function matches(entry: RequestEntry, filter: string, chip: Chip): boolean;
90
+ /** Is a box scrolled to its start, so that it stays there as rows go in above? */
91
+ export declare function atTop(scrollTop: number): boolean;
92
+ /** Which row of a list is the first in view, its rows `pitch` px apart, top to top. */
93
+ export declare function firstInView(scrollTop: number, pitch: number): number;
94
+ /**
95
+ * Where to scroll a list so that what shows stays still, once `added` rows
96
+ * of `pitch` px went in above it: on by their height, no more. Rows that
97
+ * left from above, a negative `added`, bring it back as far.
98
+ */
99
+ export declare function keptScroll(scrollTop: number, added: number, pitch: number): number;
100
+ export declare function isJson(type: string): boolean;
101
+ /**
102
+ * What a body is besides its text: how big, that it was cut, or what it is
103
+ * where it has no text to show. Empty where there is nothing to add.
104
+ */
105
+ export declare function bodyNote(record: BodyRecord): string;
106
+ /** Whether a body has text to show at all. */
107
+ export declare function hasText(record: BodyRecord): boolean;
108
+ /**
109
+ * A body's text as the detail shows it: json laid out a key a line, where it
110
+ * is all there and reads as json, else as it was kept. `type` stands in where
111
+ * the body does not know its own.
112
+ *
113
+ * Json is laid out only where that changes none of it. A number too long for
114
+ * the engine, a key that comes twice or an escape written another way would
115
+ * come back changed, and the screen would say other than the copied text.
116
+ */
117
+ export declare function bodyText(record: BodyRecord, type?: string): string;
118
+ /**
119
+ * A body's json, where it is all there, reads as json and comes back the same
120
+ * from what it reads as, for the same reasons `bodyText` has. Null for any
121
+ * other body.
122
+ */
123
+ export declare function bodyJson(record: BodyRecord, type?: string): {
124
+ value: unknown;
125
+ } | null;
126
+ /** A status in full: the number and its text, or what happened in place of one. */
127
+ export declare function statusLine(entry: RequestEntry): string;
128
+ /** A header or an address parameter whose value is a credential, by its name: never copied. */
129
+ export declare function hides(name: string): boolean;
130
+ /**
131
+ * An address with the values of its parameters that look like secrets
132
+ * hidden, the names kept: in its query, and after its hash, where a sign-in
133
+ * leaves a token. The rest of the address is as it was.
134
+ */
135
+ export declare function hideParameters(url: string): string;
136
+ /**
137
+ * A request as plain text to paste into an AI chat: what was asked and how it
138
+ * went, the headers, the bodies as they were kept, and the call that made it.
139
+ * The values of headers and of address parameters that look like secrets are
140
+ * hidden. The bodies are copied as they are.
141
+ */
142
+ export declare function copyText(entry: RequestEntry): string;
@@ -0,0 +1,312 @@
1
+ import { type BodyRecord, type HeaderList, type RequestEntry } from "../requests/types";
2
+ import { type Lead, type StatusTone } from "./requestformat";
3
+ import { type Lang } from "./syntax";
4
+ /**
5
+ * What one request's detail reads, part by part: its summary, which of its
6
+ * tabs there are, and what each of them lists. All of it from the row
7
+ * alone, so none of it needs a page.
8
+ */
9
+ /** How many characters of a path show where nothing tells how wide its lines are. */
10
+ export declare const PATH_CHARS = 72;
11
+ /** How many characters of a path fit its two lines, the lines `width` px wide. */
12
+ export declare function pathRoom(width: number): number;
13
+ /** An address in two: the host that answers, and the path asked of it, its query and hash included. */
14
+ export declare function urlParts(url: string): {
15
+ host: string;
16
+ path: string;
17
+ };
18
+ /** The top of a request's detail: what was asked, and how it went. */
19
+ export interface Summary {
20
+ /** The method in full, or the kind where the browser gives no method. */
21
+ verb: Lead;
22
+ /** The path and its query, as written. */
23
+ path: string;
24
+ /** The status and its text, or empty where the browser does not say. */
25
+ status: string;
26
+ tone: StatusTone | null;
27
+ /** How long it took, or empty while it runs. */
28
+ time: string;
29
+ host: string;
30
+ }
31
+ export declare function summary(entry: RequestEntry): Summary;
32
+ /** How a body shows: as text, as a list of fields, or as a line that says why there is none to show. */
33
+ export type BodyShape = {
34
+ kind: "code";
35
+ text: string;
36
+ } | {
37
+ kind: "fields";
38
+ lines: [name: string, value: string][];
39
+ } | {
40
+ kind: "line";
41
+ text: string;
42
+ };
43
+ /**
44
+ * How a body shows. Json is laid out where that changes none of it, a form
45
+ * is its fields, other text is as it was kept, and what has no text says in
46
+ * a line what it is. `type` stands in where the body does not know its own.
47
+ */
48
+ export declare function bodyShape(record: BodyRecord, type?: string): BodyShape;
49
+ /** What is missing of a body that was cut, at the cap or by time. Empty for one that is whole. */
50
+ export declare function cutNote(record: BodyRecord): string;
51
+ /**
52
+ * What the browsers' tools write in the Type column: the api for a script's
53
+ * request, `document` for the page, and for an image the kind of image.
54
+ */
55
+ export declare function typeWord(entry: RequestEntry): string;
56
+ /**
57
+ * The tabs of a request's detail, in the words and the order of the browsers'
58
+ * own network panel, so nothing about them is new to learn.
59
+ */
60
+ export declare const TABS: readonly ["Headers", "Payload", "Preview", "Response", "Initiator", "Timing", "Cookies", "EventStream"];
61
+ export type Tab = (typeof TABS)[number];
62
+ export declare function isTab(value: string): value is Tab;
63
+ /** A response that comes a piece at a time for as long as the page listens. */
64
+ export declare function isEventStream(entry: RequestEntry): boolean;
65
+ /**
66
+ * The tabs a request has. Headers and Timing always; Payload where it sent a
67
+ * query or a body; Preview and Response where the browser lets the page see
68
+ * the answer, and Preview for an image the page loaded too, as it can be
69
+ * shown from its address; Initiator where something is known of what made
70
+ * it; Cookies and EventStream only where there are some.
71
+ */
72
+ export declare function tabsOf(entry: RequestEntry): Tab[];
73
+ /** The tab a request opens on: the one picked last where it has it, else Headers. */
74
+ export declare function startTab(entry: RequestEntry, picked: Tab | null): Tab;
75
+ /** An address's query, as written, without its `?`. */
76
+ export declare function queryString(url: string): string;
77
+ /**
78
+ * The parameters of an address's query, a name and a value each: as they
79
+ * read once decoded, or as written with `decoded` false.
80
+ */
81
+ export declare function queryLines(url: string, decoded?: boolean): [name: string, value: string][];
82
+ /** The fields of a urlencoded text as written, a name and a value each, none of it decoded. */
83
+ export declare function encodedLines(text: string): [name: string, value: string][];
84
+ /** A urlencoded text decoded, its `+` a space, and left as it is where it does not decode. */
85
+ export declare function decodeForm(text: string): string;
86
+ /**
87
+ * The Status Code line of General, as the browsers' tools write it: the code
88
+ * and its text, the answer's own or the standard one, or in brackets what
89
+ * happened in place of one. Empty where the browser does not say.
90
+ */
91
+ export declare function statusCode(entry: RequestEntry): string;
92
+ /** A line of General: its label, its value, and the tone of the dot before a status. */
93
+ export interface GeneralLine {
94
+ label: string;
95
+ value: string;
96
+ tone?: StatusTone | null;
97
+ }
98
+ /**
99
+ * The General section of Headers, in the browsers' words. Remote Address is
100
+ * left out, as a page cannot know it, and Referrer Policy shows only where it
101
+ * is known: the request's own, else the page's, `documentPolicy`. A request
102
+ * that was redirected shows where it ended, and the address it was asked for
103
+ * after it.
104
+ */
105
+ export declare function generalLines(entry: RequestEntry, documentPolicy?: string): GeneralLine[];
106
+ /** The note under Request Headers: the page knows the headers it set, and not the ones the browser adds. */
107
+ export declare const PROVISIONAL = "Provisional headers are shown";
108
+ /** Headers as the Raw view shows them, a `name: value` a line. */
109
+ export declare function rawHeaders(headers: HeaderList): string;
110
+ /** What the Response tab says where there is no body: the browsers' words, or that one may still come. */
111
+ export declare const NO_RESPONSE_DATA = "This request has no response data available.";
112
+ export declare const FAILED_RESPONSE = "Failed to load response data";
113
+ export declare const WAITING_RESPONSE = "waiting for the response";
114
+ /** What stands in an answer's body's place while there is none. */
115
+ export declare function noResponse(entry: RequestEntry): string;
116
+ /** What a body of a form shows a file as, as the browsers' tools do. */
117
+ export declare const BINARY = "(binary)";
118
+ /** The boundary a multipart content type names, or empty. */
119
+ export declare function boundaryOf(type: string): string;
120
+ /**
121
+ * The fields of a multipart body, a name and a value each, a file as
122
+ * `(binary)`. A part that is cut short is kept as far as it came.
123
+ */
124
+ export declare function multipartFields(text: string, boundary: string): [name: string, value: string][];
125
+ /**
126
+ * What a request sent, as the Payload tab shows it: the fields of a form, json
127
+ * as a tree, other text as it was kept, or a line that says why there is
128
+ * none to show. A form's `source` is its text as it was kept, and `encoded`
129
+ * says it is urlencoded, which can show as written or decoded.
130
+ */
131
+ export type Payload = {
132
+ kind: "form";
133
+ lines: [name: string, value: string][];
134
+ source: string;
135
+ encoded: boolean;
136
+ } | {
137
+ kind: "json";
138
+ value: unknown;
139
+ source: string;
140
+ } | {
141
+ kind: "text";
142
+ text: string;
143
+ } | {
144
+ kind: "line";
145
+ text: string;
146
+ };
147
+ export declare function payloadOf(record: BodyRecord): Payload;
148
+ /** A size in the browsers' words: as many bytes as they are, `B`, `kB` and `MB` counted in thousands. */
149
+ export declare function devtoolsBytes(bytes: number): string;
150
+ /**
151
+ * What the Timing tab shows under the timing: what the browsers' tools have
152
+ * as columns of the list, Type, Size and Protocol, as the list here has none
153
+ * of them, in the words of their tooltips. And whether it came from the
154
+ * device frame.
155
+ */
156
+ export declare function requestLines(entry: RequestEntry): [label: string, value: string][];
157
+ /** A time span as the Timing tab writes it: in µs under a ms, to two places in ms under a second, else in s. */
158
+ export declare function preciseDuration(ms: number): string;
159
+ /** A phase of a request, from and to, in ms since its page began to load, and the tone of its bar. */
160
+ export interface Phase {
161
+ label: string;
162
+ start: number;
163
+ end: number;
164
+ tone: "queue" | "stall" | "dns" | "connect" | "ssl" | "wait" | "download";
165
+ }
166
+ /** The Timing tab in the browsers' words: when it was queued and started, its phases in their sections, and the whole. */
167
+ export interface TimingTable {
168
+ /** When the page asked for it, in ms since its page began to load. */
169
+ queuedAt: number;
170
+ /** When the browser started it, where that is known. */
171
+ startedAt: number | null;
172
+ sections: {
173
+ name: string;
174
+ phases: Phase[];
175
+ }[];
176
+ /** Where the bars start and end, in ms since its page began to load. */
177
+ from: number;
178
+ to: number;
179
+ /** From the ask to the last byte, in ms, or null while it runs. */
180
+ total: number | null;
181
+ /** The request has not ended: the browsers' `CAUTION: request is not finished yet!`. */
182
+ pending: boolean;
183
+ /** Why some phases are not shown, or empty. */
184
+ note: string;
185
+ }
186
+ /** The browsers' warning over the timing of a request that has not ended. */
187
+ export declare const NOT_FINISHED = "CAUTION: request is not finished yet!";
188
+ /** Why the timing has no connection phases: a server on another origin keeps them. */
189
+ export declare const TIMING_HIDDEN = "The server on another origin sends no Timing-Allow-Origin, so the browser shows a page only the start and the end";
190
+ /** Why a script's request that ended has no phases: Resource Timing has none for it. */
191
+ export declare const TIMING_MISSING = "The browser gave no Resource Timing for this request, so only what the page saw is shown";
192
+ /**
193
+ * A request's timing as the browsers' Timing tab lays it out, from Resource
194
+ * Timing where it has the request and from what the page saw where it has
195
+ * not. Resource Scheduling has Queueing, from the call to the browser's
196
+ * start, which only a script's request knows. Connection Start has Stalled,
197
+ * DNS Lookup, Initial connection and SSL, each where it took time: a
198
+ * connection used again has none. Request/Response has Waiting for server
199
+ * response and Content Download. Request sent is not there: Resource Timing
200
+ * does not say when the request was all sent.
201
+ */
202
+ export declare function timingTable(entry: RequestEntry): TimingTable;
203
+ /** A phase's bar on the track of the whole: where it starts and how wide it is, each a share of 1. */
204
+ export declare function barOf(table: Pick<TimingTable, "from" | "to">, each: Pick<Phase, "start" | "end">): {
205
+ left: number;
206
+ width: number;
207
+ };
208
+ /** A cookie as the browsers' Cookies tab lists it. What is not known of it is empty, or false. */
209
+ export interface Cookie {
210
+ name: string;
211
+ value: string;
212
+ domain: string;
213
+ path: string;
214
+ /** An instant in ISO, `Session`, or empty where it is not known, as for a cookie sent. */
215
+ expires: string;
216
+ /** How long it is: `name=value` sent, or the whole of the line that set it. */
217
+ size: number;
218
+ httpOnly: boolean;
219
+ secure: boolean;
220
+ sameSite: string;
221
+ partitioned: boolean;
222
+ }
223
+ /** The cookies of a `Cookie` header: a `name=value` each, split at `;`. */
224
+ export declare function parseCookieHeader(header: string): Cookie[];
225
+ /**
226
+ * The cookie a `Set-Cookie` line sets, with its attributes. Max-Age wins over
227
+ * Expires, and is counted from `at`, when the answer came, in epoch ms.
228
+ */
229
+ export declare function parseSetCookie(line: string, at: number): Cookie;
230
+ /** The cookies a request carried, as far as a script sees them: the ones it set itself in a `Cookie` header. */
231
+ export declare function requestCookies(entry: RequestEntry): Cookie[];
232
+ /** The cookies its answer set, as far as a script sees them, which is most often none: browsers hide `Set-Cookie`. */
233
+ export declare function responseCookies(entry: RequestEntry): Cookie[];
234
+ /** A cookie's fields as the browsers' table names its columns, the ones known of it. */
235
+ export declare function cookieFields(each: Cookie): [label: string, value: string][];
236
+ /** Whether a request is for an image, which Preview can show from its address. */
237
+ export declare function isImage(entry: RequestEntry): boolean;
238
+ /** What Preview says where it has nothing to show, in the browsers' words. */
239
+ export declare const NO_PREVIEW = "This request has no preview available";
240
+ /**
241
+ * What the Preview tab shows, as the browsers' tools have it: json as a
242
+ * tree, an image as itself, html drawn, a form as its fields, other text
243
+ * as it is, and a line where there is nothing to show.
244
+ */
245
+ export type PreviewShape = {
246
+ kind: "json";
247
+ value: unknown;
248
+ } | {
249
+ kind: "image";
250
+ url: string;
251
+ } | {
252
+ kind: "html";
253
+ html: string;
254
+ } | {
255
+ kind: "fields";
256
+ lines: [name: string, value: string][];
257
+ } | {
258
+ kind: "code";
259
+ text: string;
260
+ lang: Lang;
261
+ } | {
262
+ kind: "line";
263
+ text: string;
264
+ };
265
+ export declare function previewOf(entry: RequestEntry): PreviewShape;
266
+ /** What the html preview lets its document load: its inline styles and data images, and nothing from the network. */
267
+ export declare const PREVIEW_POLICY = "<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; img-src data:; style-src 'unsafe-inline'\">";
268
+ /** Recorded html made ready to draw: the policy first, after a doctype where it has one. */
269
+ export declare function previewDocument(text: string): string;
270
+ /** Where a request came from, a link a line, as the browsers' Request initiator chain has it. */
271
+ export interface ChainLink {
272
+ url: string;
273
+ /** How far in it stands, the page at 0. */
274
+ depth: number;
275
+ /** The request the detail shows. */
276
+ self: boolean;
277
+ }
278
+ /**
279
+ * The Request initiator chain: the page, the script that made the request
280
+ * where its stack names one other than the page and devknobs, and the
281
+ * request.
282
+ */
283
+ export declare function initiatorChain(entry: RequestEntry, page: string, own?: string): ChainLink[];
284
+ /** The initiator Resource Timing names, in words, as the browsers' Initiator column has `Other`. */
285
+ export declare function initiatorWords(type: string): string;
286
+ /** Why a stream read through `fetch` lists no messages. */
287
+ export declare const FETCH_STREAM = "Messages of a stream read through fetch are not recorded: reading a copy would keep the stream open after the page lets it go";
288
+ /** What EventStream says before the first message. */
289
+ export declare const NO_MESSAGES = "No messages yet";
290
+ /** One frame of a stack: the function, where it is in full, and that place in short. */
291
+ export interface Frame {
292
+ name: string;
293
+ where: string;
294
+ /** The file's name with its line and column, without the way to it. */
295
+ short: string;
296
+ }
297
+ /** A line of the initiator: a frame, or a run of frames that are not the page's own. */
298
+ export type StackLine = {
299
+ kind: "frame";
300
+ frame: Frame;
301
+ } | {
302
+ kind: "more";
303
+ frames: Frame[];
304
+ };
305
+ /** The file a stack starts in: of devknobs' own stack, the file devknobs runs from. */
306
+ export declare function stackFile(stack: unknown): string;
307
+ /**
308
+ * The call that made a request, a frame a line. Frames from `node_modules`,
309
+ * and from `own`, the file devknobs runs from, are not the page's own: a run
310
+ * of them is one line that says how many.
311
+ */
312
+ export declare function stackLines(stack: string, own?: string): StackLine[];
@@ -0,0 +1,48 @@
1
+ import { type RequestStore } from "../requests";
2
+ import { type PaneView } from "./pane";
3
+ /**
4
+ * The requests view: the page's log as a view in the panel, a row a request,
5
+ * the newest first, and one request in full in its place when a row is
6
+ * picked. The two are one way in: back from a request is the list, and back
7
+ * from the list is the panel's rows. Its bar, its rows and its empty line are
8
+ * the kit's, so they line up with the panel's own.
9
+ *
10
+ * A row is built once and then changed in place: the log hands over the rows
11
+ * that are new or changed, and swaps a changed row for a new object, so one
12
+ * that is the same object needs nothing. The view only shows the log. It
13
+ * records nothing itself, and listens only while it is on the page.
14
+ */
15
+ /** The view that lists the requests, and the one that shows one of them. */
16
+ export declare const REQUESTS_VIEW = "requests";
17
+ export declare const REQUEST_VIEW = "request";
18
+ /** What the head says over one request, and how long the word a copy leaves takes its place, in ms. */
19
+ export declare const REQUEST_TITLE = "request";
20
+ export declare const COPIED_SHOWS = 1800;
21
+ /** What the list says while it has no rows, and while its filter leaves none. */
22
+ export declare const NO_REQUESTS = "no requests yet";
23
+ export declare const NO_MATCH = "no request matches";
24
+ /** The panel's place for a view, as far as the requests drive it. */
25
+ export interface PaneHost {
26
+ open(view: PaneView): void;
27
+ close(): void;
28
+ view(): string | null;
29
+ retitle(id: string, title: string): void;
30
+ }
31
+ /** What the view is made of. The panel gives the live region, the tests the rest. */
32
+ export interface RequestsContext {
33
+ /** The live region that hears how a copy went. */
34
+ said?: HTMLElement;
35
+ /** The page's log, or null while nothing records. */
36
+ log?(): RequestStore | null;
37
+ pane?: PaneHost;
38
+ copy?(text: string): Promise<boolean>;
39
+ }
40
+ export interface Requests {
41
+ /** Show the requests in the panel, or go back to its rows where they show. */
42
+ toggle(): void;
43
+ /** Whether the requests show: the list, or one request in full. */
44
+ shows(): boolean;
45
+ /** Go back to the panel's rows, where the requests show. */
46
+ close(): void;
47
+ }
48
+ export declare function createRequests(context?: RequestsContext): Requests;
@@ -0,0 +1,72 @@
1
+ import type { DevknobsState } from "../types";
2
+ import { type Knob, type Live, type Row, type RowId } from "./catalog";
3
+ import { type Update } from "./editors";
4
+ import type { Keys } from "./keys";
5
+ import type { Tips } from "./tooltip";
6
+ /**
7
+ * The rows: one per row of the catalog, each a line that opens into its
8
+ * editor, folded in place under it. An action's row is the same line, and
9
+ * runs the action where a knob row opens. Listed rows stand in the order the
10
+ * state keeps, and their grips reorder them, by drag or by the arrow keys.
11
+ */
12
+ /** A row's line: what every row has, a knob row's and an action's alike. */
13
+ export interface RowLine {
14
+ box: HTMLElement;
15
+ grip: HTMLButtonElement;
16
+ main: HTMLButtonElement;
17
+ value: HTMLElement;
18
+ /** The key that runs the row's action, where it has one. */
19
+ key: HTMLElement | null;
20
+ clear: HTMLButtonElement;
21
+ }
22
+ /**
23
+ * Build a row's line from its catalog entry: the grip in its column,
24
+ * its icon and name, what it says, then its x. An action's ends with its key
25
+ * as the footer shows a key. A click on the x puts the row back, and a hold
26
+ * takes it off the list too.
27
+ */
28
+ export declare function rowLine(row: Row): RowLine;
29
+ export interface RowView extends RowLine {
30
+ row: Row;
31
+ /** Folds the editor away under the row's line, and out to its height. */
32
+ fold: HTMLElement;
33
+ editor: HTMLElement;
34
+ updates: Update[];
35
+ }
36
+ /** What the rows need from the panel. */
37
+ export interface RowsContext {
38
+ /** The panel's shadow root, which knows the focus. */
39
+ root: Pick<ShadowRoot, "activeElement">;
40
+ /** The box the rows stand in. */
41
+ rows: HTMLElement;
42
+ /** The live region that says where a row moved to, and why a value was not taken. */
43
+ said: HTMLElement;
44
+ tips: Tips;
45
+ /** Draw the whole panel again. */
46
+ render(): void;
47
+ /** Whether the handle is being dragged, which leaves the grips alone. */
48
+ dragging(): boolean;
49
+ /** Whether the keys show as a Mac's. */
50
+ mac: boolean;
51
+ }
52
+ export interface Rows {
53
+ viewOf(id: RowId): RowView | undefined;
54
+ /** The row whose editor is open, if any. */
55
+ openRow(): RowId | null;
56
+ /** Forget the open row, without drawing anything. */
57
+ clearOpen(): void;
58
+ openEditor(id: RowId | null): void;
59
+ focusCustom(knob: Knob): void;
60
+ showRow(id: RowId, knob: Knob): void;
61
+ /** Draw the rows for a state, and say whether any shows. */
62
+ renderRows(state: DevknobsState, live: Live): boolean;
63
+ /** Draw the readouts that run with the clock. */
64
+ tick(state: DevknobsState, live: Live): void;
65
+ /** Show the keys in force on the actions' rows. */
66
+ drawKeys(now: Keys): void;
67
+ /** Whether a row is being dragged by its grip. */
68
+ reordering(): boolean;
69
+ endReorder(keep: boolean): void;
70
+ destroy(): void;
71
+ }
72
+ export declare function createRows(context: RowsContext): Rows;
@@ -0,0 +1,29 @@
1
+ import { type Action, type Knob, type Option } from "./catalog";
2
+ export interface Result {
3
+ knob: Knob;
4
+ /** The value to set, or null to open the knob's editor. */
5
+ option: Option | null;
6
+ score: number;
7
+ }
8
+ /** Lower case words, a leading plus dropped, so `+2d` and `2d` meet. */
9
+ export declare function words(text: string): string[];
10
+ /**
11
+ * The knobs and values a query finds, best first. Every word of the query has
12
+ * to land on a knob's name, one of its values or their aliases, a whole word
13
+ * scoring over the start of one. A value typed out in full (`500`, `+3d`,
14
+ * `pt-BR`, `Europe/Paris`) is offered as well, under the values the catalog has.
15
+ */
16
+ export declare function search(query: string, knobs?: readonly Knob[]): Result[];
17
+ /** The actions a query finds, by name or alias, every word of it landing. */
18
+ export declare function searchActions(query: string, actions?: readonly Action[]): Action[];
19
+ /**
20
+ * The values a list editor shows for its filter: the knob's own values that
21
+ * match, then those search reaches, then one typed out in full. An empty
22
+ * filter shows the knob's own values.
23
+ */
24
+ export declare function filterOptions(knob: Knob, filter: string): Option[];
25
+ /** What a result reads as: the knob's name, then the value. */
26
+ export declare function resultText(result: Result): {
27
+ knob: string;
28
+ value: string;
29
+ };
@@ -0,0 +1,69 @@
1
+ import type { GrabControl } from "../grab/control";
2
+ import { type LiveKeys } from "./bindings";
3
+ import { type Binding, type Keys } from "./keys";
4
+ import type { LivePrefs } from "./prefs";
5
+ import { type Tips } from "./tooltip";
6
+ /**
7
+ * The settings view, which slides in over the rows: whether the handle shows
8
+ * while the panel is closed, the host's switch for its native driver where it
9
+ * gives one, and each binding's key, recorded from the next
10
+ * keys pressed. A key a binding cannot take is refused, and the chip says why.
11
+ */
12
+ /** What a binding's chip says while it has no key: its default went to another binding. */
13
+ export declare const NO_KEY = "not set";
14
+ /**
15
+ * What the panel says as the user hides the handle, so the way back to a
16
+ * closed panel is never lost: the panel's key, as `comboLabel` shows it.
17
+ */
18
+ export declare function handleHint(keys: Keys, mac: boolean): string;
19
+ /** What the settings need from the panel. */
20
+ export interface SettingsContext {
21
+ keys: LiveKeys;
22
+ prefs: LivePrefs;
23
+ grab: GrabControl | null;
24
+ inspect: GrabControl | null;
25
+ mac: boolean;
26
+ /** The bindings the shortcuts list. */
27
+ bindingsHere: readonly Binding[];
28
+ /** The footer's control that opens and leaves the settings. */
29
+ keysToggle: HTMLButtonElement;
30
+ /** The live region that says why a key was not taken. */
31
+ said: HTMLElement;
32
+ tips: Tips;
33
+ /** Draw the whole panel again. */
34
+ render(): void;
35
+ /** Show the keys in force, everywhere the panel shows them. */
36
+ renderKeys(): void;
37
+ /** Whether the handle shows on a closed panel: the user, the mount and the knobs all let it. */
38
+ handleShown(): boolean;
39
+ /** Let the knobs show the handle, which an agent may have hidden. */
40
+ showHandle(): void;
41
+ /** The words of the host's switch for its native driver, null with none. */
42
+ native: {
43
+ label: string;
44
+ hint: string;
45
+ } | null;
46
+ /** The user turned the native driver off or on. */
47
+ setNative(on: boolean): void;
48
+ /** Whether the search is open. */
49
+ searching(): boolean;
50
+ leaveSearch(): void;
51
+ }
52
+ export interface Settings {
53
+ /** The settings pane. */
54
+ view: HTMLElement;
55
+ /** Whether the settings show in place of the rows. */
56
+ editing(): boolean;
57
+ setEditing(on: boolean): void;
58
+ drawKeys(now: Keys): void;
59
+ /** Show whether the handle shows while the panel is closed. */
60
+ drawHandle(shown: boolean): void;
61
+ /** Show whether the native driver is on, and why it last went off or on in place of its hint. */
62
+ drawNative(on: boolean, note: string | null): void;
63
+ /** Take a key for the binding that records, if one does, and say whether it did. */
64
+ recordingKey(event: KeyboardEvent): boolean;
65
+ stopRecording(): void;
66
+ leaveKeys(): void;
67
+ destroy(): void;
68
+ }
69
+ export declare function createSettings(context: SettingsContext): Settings;