@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,105 @@
1
+ import type { SideValue } from "../types";
2
+ import type { LivePrefs } from "./prefs";
3
+ /**
4
+ * How wide the panel is, and the strip on its page side that changes it, as
5
+ * the edge of a docked devtools does. The rows and the settings share one
6
+ * width and a feature's view has its own, wider one. Both are kept with the
7
+ * preferences, and a window too narrow for one shows the panel narrower
8
+ * without changing what is kept. Pinned, the panel is a column the page gives
9
+ * its room to, and the strip leaves the page the least it is laid out at.
10
+ */
11
+ /** What the panel shows, as far as its width goes: the rows or the settings, or a feature's view. */
12
+ export type Showing = "list" | "view";
13
+ /** How wide the panel is until the user says otherwise, in px. */
14
+ export declare const LIST_WIDTH = 240;
15
+ export declare const VIEW_WIDTH = 340;
16
+ /** The narrowest the strip makes each, in px. */
17
+ export declare const LIST_MIN = 240;
18
+ export declare const VIEW_MIN = 280;
19
+ /** The widest the strip makes the panel, and what it leaves the page of the window's width, in px. */
20
+ export declare const WIDTH_MAX = 720;
21
+ export declare const PAGE_ROOM = 96;
22
+ /**
23
+ * What the strip leaves the page of the window's width, in px. A pinned
24
+ * panel takes its room from the page, which keeps its least.
25
+ */
26
+ export declare function pageRoom(docked: boolean): number;
27
+ /** How far an arrow key moves the strip, in px. */
28
+ export declare const WIDTH_STEP = 16;
29
+ /** How far the handle stands out of the panel, in px: its width less the pixel it sits over the panel. */
30
+ export declare const HANDLE_REACH = 21;
31
+ /** The widths the strip can set. */
32
+ export interface Limits {
33
+ min: number;
34
+ max: number;
35
+ }
36
+ /**
37
+ * The widths the strip can set in a window `view` wide, which leave the page
38
+ * `page` of it. With no room to spare, only the least.
39
+ */
40
+ export declare function widthLimits(showing: Showing, view: number, page?: number): Limits;
41
+ /**
42
+ * The width the panel takes for the one that is wanted, in a window `view`
43
+ * wide that keeps `page` of it: held between the strip's limits, and in a
44
+ * window too narrow even for the least, what the handle and the gap leave,
45
+ * down to the rows' least, which a panel always had.
46
+ */
47
+ export declare function widthIn(showing: Showing, wanted: number, view: number, page?: number): number;
48
+ /**
49
+ * The width a drag of the strip asks for, from the width it started at and
50
+ * how far the pointer went across: away from the edge the panel is on is wider.
51
+ */
52
+ export declare function dragWidth(from: number, travel: number, side: SideValue): number;
53
+ /**
54
+ * The width a key on the strip asks for, or null for a key that is not the
55
+ * strip's. An arrow moves the strip the way it points, so the one that points
56
+ * away from the panel's edge of the window widens it. Home is the least and
57
+ * End the most.
58
+ */
59
+ export declare function keyWidth(key: string, width: number, limits: Limits, side: SideValue): number | null;
60
+ /**
61
+ * Does the panel glide to a new width? Not to its first one, not under the
62
+ * strip, which it follows one to one, and not as the window resizes.
63
+ */
64
+ export declare function widthGlides(cue: {
65
+ first: boolean;
66
+ dragging: boolean;
67
+ resizing: boolean;
68
+ }): boolean;
69
+ /** What the strip needs from the panel. */
70
+ export interface SizerContext {
71
+ /** The host, which is as wide as the panel and its handle. */
72
+ host: HTMLElement;
73
+ /** The wrapper, which carries the width as `--panel-width`. */
74
+ wrap: HTMLElement;
75
+ panel: HTMLElement;
76
+ prefs: LivePrefs;
77
+ /** What the panel shows now. */
78
+ showing(): Showing;
79
+ /** Whether the panel is open, the side of the window it is on, and whether it is pinned there. */
80
+ place(): {
81
+ open: boolean;
82
+ side: SideValue;
83
+ docked: boolean;
84
+ };
85
+ /** The panel is `px` wide from now, or on its way there: its first width too. */
86
+ wide(px: number): void;
87
+ /** The panel has a new width, which it glides to or not. */
88
+ sized(glide: boolean): void;
89
+ }
90
+ export interface Sizer {
91
+ /** The strip, which goes in the panel. */
92
+ strip: HTMLElement;
93
+ /**
94
+ * Give the panel the width of what it shows. `draw` draws that, at the
95
+ * width the panel ends at, so what is measured there holds once it has
96
+ * glided. A closed panel keeps its width until it opens, as its handle
97
+ * would jump with it.
98
+ */
99
+ size(draw?: () => void): void;
100
+ /** The window resized: the panel takes the width that leaves, at once. */
101
+ fit(): void;
102
+ /** End a drag the window took away, back at the width that is kept. */
103
+ cancel(): void;
104
+ }
105
+ export declare function createSizer(context: SizerContext): Sizer;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * The panel's views, the rows, a feature's view and the settings, and the
3
+ * slide between them. They stack in that order: one further up pushes in
4
+ * from the right and pushes the one under it out to the left, and going back
5
+ * pops it off the same way, as a navigation does on iOS. The view that
6
+ * leaves is out of sight by the time it lands. It goes left to right on
7
+ * either side of the window: the order is that of the views, not of the dock.
8
+ *
9
+ * The stylesheet holds the motion. Each view rests where the view shown puts
10
+ * it, and a view that comes in starts from where it rests while it is away.
11
+ * A slide that is turned round on its way goes back from where it is, as
12
+ * the transitions take their new ends from there. What is left here is the
13
+ * height: the view that leaves is taken out of the flow at the height it
14
+ * had, the one that comes in is held at its own, and the body eases from the
15
+ * one to the other, while the panel lays itself out again each frame. It
16
+ * all lands once the view coming in is in place, or a while after it should
17
+ * have been, where the page held the frames up.
18
+ */
19
+ /** The rows view, the search and its results with it, a feature's view, or the settings. */
20
+ export type View = "home" | "view" | "keys";
21
+ /** How long a slide takes, in ms, as the stylesheet sets it. */
22
+ export declare const SLIDE = 500;
23
+ /**
24
+ * How a change of view shows: none for the same view, at once where the
25
+ * panel is closed or nothing animates, else a push to a view further up the
26
+ * stack or a pop back to one under it.
27
+ */
28
+ export declare function slideOf(from: View, to: View, open: boolean, motion: boolean): "push" | "pop" | "swap" | null;
29
+ /**
30
+ * What has the focus once the panel goes to a view from the settings toggle,
31
+ * the back button or escape: the back button in the settings, the toggle on
32
+ * the way back.
33
+ */
34
+ export declare function focusOn(to: View): "back" | "toggle";
35
+ export interface Slide {
36
+ /**
37
+ * Show a view, with `apply` making the change of view in the page. It
38
+ * slides there while `open`, else lands at once, a slide on its way
39
+ * included.
40
+ */
41
+ show(view: View, open: boolean, apply: () => void): void;
42
+ /** Land at once and stop listening. */
43
+ destroy(): void;
44
+ }
45
+ /** Slide the panes of a body between the views. `landed` hears each slide land. */
46
+ export declare function createSlide(body: HTMLElement, panes: Record<View, HTMLElement>, landed?: () => void): Slide;
@@ -0,0 +1,24 @@
1
+ import type { GrabControl } from "../grab/control";
2
+ import type { Requests } from "./requests";
3
+ import type { StorageControl } from "./storageaction";
4
+ import type { Inspector } from "./inspector";
5
+ /**
6
+ * What the actions act on, on this page. The catalog says what an action does,
7
+ * as data, and the panel hands in the live things it does it to as it mounts,
8
+ * and takes them back as it goes. A feature adds here what its action needs.
9
+ */
10
+ export interface Stage {
11
+ /** Grab, where there is one. */
12
+ grab: GrabControl | null;
13
+ /** Inspect's switch, where there is one. */
14
+ inspect: GrabControl | null;
15
+ /** Inspect's view in the panel and the element it holds, while there is a panel. */
16
+ inspector: Pick<Inspector, "open" | "picked" | "forget" | "subscribe"> | null;
17
+ /** The requests view, where a panel shows one. */
18
+ requests: Requests | null;
19
+ /** The storage view, where there is a panel to show it in. */
20
+ storage: StorageControl | null;
21
+ /** Takes the panel to the other side of the window, while there is a panel. */
22
+ flip: (() => void) | null;
23
+ }
24
+ export declare const stage: Stage;
@@ -0,0 +1,22 @@
1
+ import { type PaneView } from "./pane";
2
+ /**
3
+ * The storage view as the panel's action drives it: shown and left, and
4
+ * heard as it comes and goes. The view and the readers under it load on
5
+ * first use, so a page that never opens it never pays for them.
6
+ */
7
+ /** The id the storage view has among the panel's views. */
8
+ export declare const STORAGE_VIEW = "storage";
9
+ export interface StorageControl {
10
+ /** Show the view, or leave it where it shows. */
11
+ toggle(): void;
12
+ /** Whether the view is the one that is open. */
13
+ isOn(): boolean;
14
+ /** Leave the view where it shows. */
15
+ close(): void;
16
+ /** Hear the view come and go. Returns the way to stop. */
17
+ subscribe(listener: () => void): () => void;
18
+ destroy(): void;
19
+ }
20
+ /** Brings the view: what the panel shows, built for this page. */
21
+ export type LoadStorageView = () => Promise<PaneView>;
22
+ export declare function createStorageControl(loadView?: LoadStorageView): StorageControl;
@@ -0,0 +1,5 @@
1
+ import { type Cookie } from "../storage/cookies";
2
+ import { type Section, type Shell } from "./storageparts";
3
+ /** What a cookie's fold lists of it: only what the browser told. */
4
+ export declare function cookieFields(cookie: Cookie, now: number): [string, string][];
5
+ export declare function cookieSection(shell: Shell): Section;
@@ -0,0 +1,18 @@
1
+ import type { Section, Shell } from "./storageparts";
2
+ /**
3
+ * One object store of IndexedDB, and one cache of Cache Storage, in the
4
+ * storage view: a table each, its lines numbered from 0, read a page at a
5
+ * time. Both are read when their node folds out and when refresh is pressed,
6
+ * never on a tick, and what is read is read only. No database is held open,
7
+ * see idb.ts.
8
+ */
9
+ /** What says a database the page holds open will go later. */
10
+ export declare function blockedLine(name: string): string;
11
+ /** What an object store's page says on top. */
12
+ export declare const RECORDS_NOTE = "read only: records cannot be changed";
13
+ /** What a cache's page says on top. */
14
+ export declare const CACHE_NOTE = "read only";
15
+ /** The records of one object store, a line each: its number, its key and its value. */
16
+ export declare function recordSection(shell: Shell, database: string, storeName: string): Section;
17
+ /** The requests of one cache, a line each: its number, its path and what its response's status is. */
18
+ export declare function cacheSection(shell: Shell, name: string): Section;
@@ -0,0 +1,131 @@
1
+ import type { Site } from "../storage/site";
2
+ import { type ControlOption } from "./kit";
3
+ /**
4
+ * What the storage view's sections share: what they need from the view, the
5
+ * shape each of them has, and the few pieces they all build with. The chrome
6
+ * is the kit's. What is here only puts it together.
7
+ */
8
+ /** What the view needs from the page, each a thing a test can hand in. */
9
+ export interface StorageDeps {
10
+ site: Site;
11
+ /** Copy a text, the one way a value leaves the view. Says whether it went. */
12
+ copy(text: string): Promise<boolean>;
13
+ /** Run something every `ms`. Returns the way to stop. */
14
+ every(ms: number, run: () => void): () => void;
15
+ /** Hear another tab change the origin's storage. Returns the way to stop. */
16
+ onStorage(listener: () => void): () => void;
17
+ /** Whether the view is in sight. A view out of sight reads nothing on its tick. */
18
+ visible(): boolean;
19
+ now(): number;
20
+ /** What the view keeps while the page is: a test hands in its own. */
21
+ memory: StorageMemory;
22
+ }
23
+ /** What the storage view keeps from one showing to the next, until the page reloads. */
24
+ export interface StorageMemory {
25
+ /** The nodes of the tree that are folded out, each by its key. */
26
+ expanded: Set<string>;
27
+ /** Whether the view chose what to fold out as it first showed. */
28
+ seeded: boolean;
29
+ }
30
+ /** What a section needs from the view around it. */
31
+ export interface Shell {
32
+ site: Site;
33
+ now(): number;
34
+ /** Copy a text, and say on the view's line that `what` was copied. */
35
+ copy(text: string, what: string): void;
36
+ /** Whether devknobs' own items show, and so go with a clear. */
37
+ own(): boolean;
38
+ /** Say something on the node's quiet line, with a control after it where one is handed in. */
39
+ say(lines: string | readonly string[], control?: ControlOption): void;
40
+ /** Ask a question in place, in the node it is about. */
41
+ ask(text: string, confirm: string, run: () => void): void;
42
+ /**
43
+ * Put something in the place a question is asked in, instead of what is
44
+ * there, built with the way to close it, and give `focus` the focus once
45
+ * it is on the page. Escape closes it too.
46
+ */
47
+ put(build: (close: () => void) => {
48
+ node: HTMLElement;
49
+ focus?: HTMLElement;
50
+ }): void;
51
+ /** Something escape takes back is open. Returns the way to say it closed. */
52
+ hold(cancel: () => void): () => void;
53
+ /** What the filter says, for this node: nothing where the node's own name is what it matches. */
54
+ query(): string;
55
+ /** The section drew again: what it shows, and how many of devknobs' own it leaves out, may have changed. */
56
+ counted(): void;
57
+ /** The view wrote to the page's storage: what is cheap to read is read again. */
58
+ touched(): void;
59
+ }
60
+ /** One kind of storage, as the view shows it. */
61
+ export interface Section {
62
+ node: HTMLElement;
63
+ /** Whether the view reads it again on its tick. */
64
+ live: boolean;
65
+ /** Read again, and draw what changed. */
66
+ refresh(): void | Promise<void>;
67
+ /** Draw for what the filter says now. */
68
+ filter(): void;
69
+ /** The controls it adds to the view's line of them. */
70
+ controls?(): ControlOption[];
71
+ /** How many of devknobs' own items it has, which it leaves out until asked. A kind with none to tell has none. */
72
+ hidden?(): number;
73
+ /** Ask to clear the kind. A kind that is read only has none. */
74
+ clear?(): void;
75
+ destroy?(): void;
76
+ }
77
+ /** How many rows of a long list are built at a time. */
78
+ export declare const ROW_CHUNK = 200;
79
+ /** `3 items`, `1 item`. */
80
+ export declare function counted(count: number, noun: readonly [string, string]): string;
81
+ /**
82
+ * Stand `nodes` in a box in their order, moving only what is out of place.
83
+ * A row that did not change is never taken off the page, so it keeps its
84
+ * focus and its place under the pointer while the list reads again.
85
+ */
86
+ export declare function sync(box: HTMLElement, nodes: readonly HTMLElement[]): void;
87
+ /** A row of a list, as the keys drive it. */
88
+ export interface KeyRow {
89
+ main: HTMLElement;
90
+ /** Ask to delete it, in place. A row that cannot be deleted has none. */
91
+ remove?(): void;
92
+ }
93
+ /**
94
+ * The keys over a list's rows: up and down move the focus from row to row,
95
+ * and delete or backspace on a row asks to delete it. Enter opens a row by
96
+ * itself, as its line is a button.
97
+ */
98
+ export declare function rowKeys(box: HTMLElement, rows: () => readonly KeyRow[]): void;
99
+ /**
100
+ * A value, laid out where it is json that loses nothing by it, and cut where
101
+ * it is long. A click copies all of it, cut or not.
102
+ */
103
+ export declare function valueBlock(shell: Shell, text: string, what: string): HTMLElement;
104
+ /** What follows a long list: how much of it shows, and the control that shows more. */
105
+ export declare function pager(showing: number, total: number, step: number, more: () => void): HTMLElement[];
106
+ /** What a box to edit text in place is built from. */
107
+ export interface EditOptions {
108
+ label: string;
109
+ value?: string;
110
+ placeholder?: string;
111
+ /** What the control that keeps the text says. Defaults to `save`. */
112
+ action?: string;
113
+ /** Keep the text. Returns the line that says why not, or null once kept. */
114
+ save(text: string): string | null;
115
+ /** The box closed, kept or not. */
116
+ close(saved: boolean): void;
117
+ }
118
+ export interface EditBox {
119
+ node: HTMLElement;
120
+ area: HTMLTextAreaElement;
121
+ /** Close the box and keep nothing, as its cancel does. */
122
+ cancel(): void;
123
+ }
124
+ /**
125
+ * A text box with save and cancel under it. Enter with meta or ctrl saves,
126
+ * and escape cancels and leaves the view open. What cannot be saved is said
127
+ * under the box, which stays as it is.
128
+ */
129
+ export declare function editBox(shell: Shell, options: EditOptions): EditBox;
130
+ /** A question asked in a row's own fold, which escape takes back. */
131
+ export declare function askIn(shell: Shell, box: HTMLElement, text: string, confirm: string, run: () => void, back: () => void): void;
@@ -0,0 +1,19 @@
1
+ import { type Preset } from "../storage/presets";
2
+ import { type Section, type Shell } from "./storageparts";
3
+ /**
4
+ * Presets in the storage view: named sets of values to put into the page's
5
+ * storage, kept by devknobs for this origin. One marked "apply on load" is
6
+ * set on every load of the page, and the tree says which are under the
7
+ * presets' node, folded out or not, so what changes the page's data is never
8
+ * out of sight.
9
+ */
10
+ /** What the section says where presets cannot be kept. */
11
+ export declare const FRESH_PRESETS = "fresh mode: presets are not read or kept";
12
+ /** Which presets apply on load, as the line under the presets' node says it. */
13
+ export declare function onLoadLine(presets: readonly Preset[]): string;
14
+ /**
15
+ * Ask for a name and keep what the page holds now as a preset: the items
16
+ * and cookies the filter `query` leaves, less devknobs' own.
17
+ */
18
+ export declare function savePreset(shell: Shell, query: string): Promise<void>;
19
+ export declare function presetSection(shell: Shell): Section;
@@ -0,0 +1,45 @@
1
+ import { type IconName } from "./icons";
2
+ import type { PaneView } from "./pane";
3
+ import { type StorageDeps } from "./storageparts";
4
+ /**
5
+ * The storage view: what page script can read of the page's storage, as one
6
+ * tree, laid out as the browsers' own tools lay it out. A node is a store
7
+ * with what it holds, and it folds out in place to its table: its own
8
+ * controls on the first line, then a line an item under a head that names
9
+ * the columns. Under IndexedDB a node is a database and under that an object
10
+ * store, and under cache storage a cache, each folding out to its table the
11
+ * same way. Nothing here opens another page. One filter over the tree is
12
+ * for every table at once. A node folded away builds none of its lines and
13
+ * reads nothing but what its summary says. The view reads through the
14
+ * page's own apis and patches none of them. The two web storages and the
15
+ * cookies are kept live by a slow tick that runs only while the view is in
16
+ * sight, as a page's own writes in this tab say nothing. Nothing leaves the
17
+ * view but by a copy control.
18
+ */
19
+ export type StorageKind = "local" | "session" | "cookies" | "indexeddb" | "cache" | "presets";
20
+ /** The stores, in the order their nodes stand, each with its full name and its icon. */
21
+ export declare const STORAGE_KINDS: readonly {
22
+ value: StorageKind;
23
+ label: string;
24
+ icon: IconName;
25
+ }[];
26
+ /** The icons of the nodes under a store: a database, an object store and a cache. */
27
+ export declare const NODE_ICONS: {
28
+ readonly database: "database";
29
+ readonly store: "table-2";
30
+ readonly cache: "file";
31
+ };
32
+ /** How often what is live reads again, in ms. */
33
+ export declare const POLL_MS = 1000;
34
+ /** How long a node folded away keeps what it showed, in ms: until its fold has eased away. */
35
+ export declare const FOLD_MS = 200;
36
+ /** What a node says where its store cannot be read. Why is in its tooltip. */
37
+ export declare const NOT_READ = "cannot read";
38
+ /** What the presets' node stands under in the tree: they are devknobs' own, and not the page's. */
39
+ export declare const OWN_GROUP = "devknobs";
40
+ /** The keys nodes under a store are remembered by. */
41
+ export declare function databaseKey(name: string): string;
42
+ export declare function storeKey(database: string, store: string): string;
43
+ export declare function cacheKey(name: string): string;
44
+ /** The storage view, as the panel shows it. `options` stand in for the page in a test. */
45
+ export declare function storageView(options?: Partial<StorageDeps>): PaneView;
@@ -0,0 +1,11 @@
1
+ import type { WebKind } from "../storage/site";
2
+ import { type Section, type Shell } from "./storageparts";
3
+ /**
4
+ * `localStorage` or `sessionStorage` in the storage view: a row a key, its
5
+ * key and its value each on a column under the table's head, which folds out
6
+ * to the whole value and its controls. The list reads again on the
7
+ * view's tick and draws only the rows that changed.
8
+ */
9
+ /** What says a value went in as text though it was meant as json. */
10
+ export declare const NOT_JSON = "saved as text, not valid JSON";
11
+ export declare function webSection(shell: Shell, kind: WebKind): Section;
@@ -0,0 +1 @@
1
+ export declare const CSS: string;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * The simple mode of the styles view, as data: the declarations that apply to
3
+ * an element, with no rule, selector or cascade around them, and the groups
4
+ * they are listed in. Nothing here touches the page.
5
+ */
6
+ import type { HiddenSheet, Inspection, OwnBlock, StyleDeclaration, VariableValue } from "../styles/types";
7
+ /** What the simple mode says where the element's own blocks set nothing. */
8
+ export declare const NO_STYLES = "no styles set on this element";
9
+ /** The groups of the simple mode, in the order they are listed. */
10
+ export declare const GROUPS: readonly ["layout", "size and spacing", "text", "look", "motion", "other"];
11
+ export type StyleGroup = (typeof GROUPS)[number];
12
+ /** The group a property is listed in, by what it does. One it does not know is in `other`. */
13
+ export declare function groupOf(name: string): StyleGroup;
14
+ /** A declaration that applies, and the block it is written in. */
15
+ export interface Applied {
16
+ declaration: StyleDeclaration;
17
+ block: OwnBlock;
18
+ }
19
+ /**
20
+ * What applies to the element from its own blocks, its `style` attribute and
21
+ * the rules that reach it: every declaration the cascade left in force, the
22
+ * strongest block first, then as written. A shorthand that lost only some of
23
+ * its longhands is still in force, and so is the declaration that took them.
24
+ */
25
+ export declare function appliedOwn(found: Inspection): Applied[];
26
+ /** What the ancestors hand down and nothing nearer sets, the nearest first, each property once. */
27
+ export declare function appliedInherited(found: Inspection): Applied[];
28
+ /**
29
+ * Lines by their group, in the groups' order, the ones with no line left out.
30
+ * Each group keeps the order its lines came in, and the custom properties end `other`.
31
+ */
32
+ export declare function grouped<T extends {
33
+ declaration: Pick<StyleDeclaration, "name">;
34
+ }>(lines: readonly T[]): {
35
+ group: StyleGroup;
36
+ lines: T[];
37
+ }[];
38
+ /**
39
+ * What a value that reads custom properties comes to for the element, each
40
+ * `var()` put as what the element sees for it, which has the ones it reads in
41
+ * turn settled already. Null for a value that reads none, or reads one that
42
+ * is not set and has no fallback.
43
+ */
44
+ export declare function resolvedValue(value: string, variables: Record<string, VariableValue>): string | null;
45
+ /** What the simple mode says where a stylesheet could not be read, as its list may miss some. */
46
+ export declare function hiddenNote(hidden: readonly HiddenSheet[]): string | null;
@@ -0,0 +1,78 @@
1
+ /**
2
+ * What the styles view says, as text: the names, the lines and the marks it
3
+ * shows for an inspection. Nothing here touches the page.
4
+ */
5
+ import type { HiddenSheet, Inspection, RuleOrigin, StyleDeclaration, VariableValue } from "../styles/types";
6
+ /** The most characters the view's head, a crumb and a file name show. */
7
+ export declare const TITLE_MAX = 44;
8
+ export declare const CRUMB_MAX = 24;
9
+ export declare const FILE_MAX = 32;
10
+ /** A text cut in its middle, so both its start and its end stay to be read. */
11
+ export declare function middle(text: string, max: number): string;
12
+ /** An element in a line of crumbs: its tag with its id, or with its first class. */
13
+ export declare function crumbText(label: string): string;
14
+ /** The last segment of a stylesheet's address. One with no address keeps its name. */
15
+ export declare function fileName(sheet: string): string;
16
+ /** Where a rule comes from: the file's name to show, and the whole of it for the tooltip. */
17
+ export declare function sourceOf(origin: RuleOrigin): {
18
+ text: string;
19
+ tip: string;
20
+ };
21
+ /** Whether a filter keeps a declaration: by its name or its value, in any case. Empty keeps all. */
22
+ export declare function matchesFilter(declaration: StyleDeclaration, filter: string): boolean;
23
+ /** What the view says of a stylesheet whose rules it may not read. */
24
+ export declare function hiddenLine(hidden: HiddenSheet): string;
25
+ /** A piece of a value: plain text, or the name of a custom property it reads. */
26
+ export interface ValuePart {
27
+ kind: "text" | "var";
28
+ text: string;
29
+ /** For a name: what its `var()` falls back to, as written, or null for none. */
30
+ fallback?: string | null;
31
+ }
32
+ /** A value in pieces, each name read through `var()` a piece of its own. */
33
+ export declare function valueParts(value: string): ValuePart[];
34
+ /** The function call that starts at `start`, to its closing bracket, or null where it has none. */
35
+ export declare function callAt(value: string, start: number): string | null;
36
+ /**
37
+ * The first color a value names, to paint a swatch with: a hex, a color
38
+ * function, or a named color where the property takes one. `supports` is the
39
+ * browser's word on each candidate, so nothing is painted that is no color.
40
+ * One that reads a custom property cannot be painted from here, and is none.
41
+ */
42
+ export declare function colorIn(name: string, value: string, supports: (color: string) => boolean): string | null;
43
+ /**
44
+ * The color a declaration's swatch shows, or null for none: the one its value
45
+ * names, or the one the custom property resolves to where the value is one
46
+ * `var()` and nothing else.
47
+ */
48
+ export declare function swatchOf(declaration: Pick<StyleDeclaration, "name" | "value">, variables: Record<string, VariableValue>, supports: (color: string) => boolean): string | null;
49
+ /** The most characters a custom property's tooltip shows of a value or a selector. */
50
+ export declare const VAR_MAX = 64;
51
+ /** What a custom property's tooltip says when the element sees none. */
52
+ export declare const NOT_SET = "not set";
53
+ /** What a custom property's tooltip says, line by line. */
54
+ export interface VariableTip {
55
+ /** What the element sees for the property, whole. Empty when it is not set. */
56
+ value: string;
57
+ /** The value to paint a swatch with before the first line, where it is a color. */
58
+ color: string | null;
59
+ /** The value cut in its middle where it is long, or that it is not set, then what its fallback comes to. */
60
+ lines: string[];
61
+ /** Where it is set, to say quietly under the value, or null where that is not known. */
62
+ source: string | null;
63
+ }
64
+ /**
65
+ * What the tooltip of a custom property says. `read` is what the element
66
+ * sees for a name now, empty for one that is not set. A property that is not
67
+ * set says so, and what the fallback of its `var()` comes to where it has one.
68
+ */
69
+ export declare function variableTip(reference: {
70
+ name: string;
71
+ fallback?: string | null;
72
+ }, read: (name: string) => string, source: string | null, supports: (color: string) => boolean): VariableTip;
73
+ /**
74
+ * Where a custom property the element sees is set: the selector of the rule
75
+ * whose declaration is in force, the element's own first, then the nearest
76
+ * ancestor that hands it down. Null where no block shown sets it.
77
+ */
78
+ export declare function declaredIn(found: Inspection, name: string): string | null;