@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 @@
1
+ export {};
@@ -0,0 +1,109 @@
1
+ /**
2
+ * The box of an element, as numbers: its margin, border and padding by side
3
+ * as the computed style has them, and the four areas they make on the page.
4
+ * Nothing here touches the page.
5
+ */
6
+ /** The four areas of a box, from the outside in. */
7
+ export declare const RINGS: readonly ["margin", "border", "padding", "content"];
8
+ export type BoxRing = (typeof RINGS)[number];
9
+ export declare const SIDES: readonly ["top", "right", "bottom", "left"];
10
+ export type Side = (typeof SIDES)[number];
11
+ /** A length for each side, in css px. */
12
+ export type Sides = Record<Side, number>;
13
+ export interface Rect {
14
+ x: number;
15
+ y: number;
16
+ width: number;
17
+ height: number;
18
+ }
19
+ export interface Point {
20
+ x: number;
21
+ y: number;
22
+ }
23
+ /** Four corners, in order around the shape. */
24
+ export type Quad = readonly [Point, Point, Point, Point];
25
+ /** What the computed style says of an element's box. */
26
+ export interface BoxModel {
27
+ margin: Sides;
28
+ border: Sides;
29
+ padding: Sides;
30
+ /** The offsets of a positioned element, null for a side left `auto`, or null where it has none. */
31
+ offsets: Record<Side, number | null> | null;
32
+ boxSizing: string;
33
+ display: string;
34
+ position: string;
35
+ }
36
+ /** The properties of a computed style the box is read from. */
37
+ export type BoxStyle = Pick<CSSStyleDeclaration, "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "borderTopWidth" | "borderRightWidth" | "borderBottomWidth" | "borderLeftWidth" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "top" | "right" | "bottom" | "left" | "boxSizing" | "display" | "position">;
38
+ /** A computed length in px, or null for one that is no length, as `auto` is. */
39
+ export declare function pxOf(value: string): number | null;
40
+ /** The box as a computed style has it. A margin left `auto` that comes to no length is 0. */
41
+ export declare function boxModel(style: BoxStyle): BoxModel;
42
+ /**
43
+ * The size of the content box. The computed `width` and `height` are the
44
+ * content's with `content-box` and the border box's with `border-box`. Where
45
+ * one is no length, as on an inline element, it is the laid out border box
46
+ * less the border and the padding.
47
+ */
48
+ export declare function contentSize(model: Pick<BoxModel, "border" | "padding" | "boxSizing">, computed: {
49
+ width: string;
50
+ height: string;
51
+ }, laid: {
52
+ width: number;
53
+ height: number;
54
+ }): {
55
+ width: number;
56
+ height: number;
57
+ };
58
+ /**
59
+ * Whether an element has a box to draw. One with `display: contents` or
60
+ * `none` has none, and neither has one that is 0 wide and 0 tall. An empty
61
+ * block, as wide as its line and 0 tall, still has its margin to show.
62
+ */
63
+ export declare function hasBox(display: string, laid: {
64
+ width: number;
65
+ height: number;
66
+ }): boolean;
67
+ /**
68
+ * The outer edge of each area, from the border box on the page: the margin
69
+ * outside it, the padding inside the border, the content inside the padding.
70
+ * A negative margin pulls the element over its neighbour and makes no area
71
+ * of its own, so it is drawn as none on that side.
72
+ */
73
+ export declare function ringRects(border: Rect, model: Pick<BoxModel, "margin" | "border" | "padding">): Record<BoxRing, Rect>;
74
+ export declare function rectQuad(rect: Rect): Quad;
75
+ /** The outer edge of each area as four corners, for a box that is not turned. */
76
+ export declare function ringQuads(border: Rect, model: Pick<BoxModel, "margin" | "border" | "padding">): Record<BoxRing, Quad>;
77
+ /**
78
+ * What `getBoxQuads` answered, as one quad. Null for anything else, and for
79
+ * an element in several pieces, as an inline one over a few lines is: that
80
+ * one is drawn by its bounding box.
81
+ */
82
+ export declare function oneQuad(value: unknown): Quad | null;
83
+ /**
84
+ * Whether a border box's quad is only a rect of the size the element is laid
85
+ * out at: no transform turns, skews or scales it. Such a box is drawn from
86
+ * its bounds, which glide. `laid` is null where the layout size is not known.
87
+ */
88
+ export declare function isPlain(quad: Quad, laid: {
89
+ width: number;
90
+ height: number;
91
+ } | null): boolean;
92
+ /**
93
+ * The quads of each area moved as one, so the border box's bounds start where
94
+ * `bounds` does. `getBoxQuads` and `getBoundingClientRect` need not count
95
+ * from the same corner of the page.
96
+ */
97
+ export declare function alignQuads(quads: Record<BoxRing, Quad>, bounds: {
98
+ x: number;
99
+ y: number;
100
+ }): Record<BoxRing, Quad>;
101
+ /**
102
+ * The `clip-path` that leaves one area: what is inside `outer` and outside
103
+ * `inner`, or all of `outer` with no inner one. The two loops are one polygon
104
+ * filled by the even-odd rule, and the line that joins them is gone over
105
+ * twice, so it fills nothing.
106
+ */
107
+ export declare function ringPath(outer: Quad, inner: Quad | null): string;
108
+ /** The `clip-path` of each area, from the outer edges of all four. */
109
+ export declare function ringPaths(quads: Record<BoxRing, Quad>): Record<BoxRing, string>;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * What inspect says of a box, as text: a length, a size, the four sides in
3
+ * one line. Nothing here touches the page.
4
+ */
5
+ import { type Sides } from "./boxmodel";
6
+ /** What stands for a length of 0, or for none, as the browsers' own box has it. */
7
+ export declare const NONE = "-";
8
+ /** A number with two decimals at most, and no zeros after them. */
9
+ export declare function short(value: number): string;
10
+ /** A length of the box in css px, with no unit: a dash for 0 and for a side that has none. */
11
+ export declare function boxValue(value: number | null): string;
12
+ /** A size as `width × height`, in css px with no unit. */
13
+ export declare function sizeText(width: number, height: number): string;
14
+ /** A computed length with its number cut to two decimals. Anything else stays as it is. */
15
+ export declare function tidy(value: string): string;
16
+ /** The four sides as the shorthand has them: top, right, bottom, left. Null where all are 0. */
17
+ export declare function shorthand(sides: Sides): string | null;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * What inspect's card says of the element under the pointer, as rows of text:
3
+ * its colors, its font, how well its text reads and its spacing, each only
4
+ * where it applies. Nothing here touches the page.
5
+ */
6
+ import type { Color } from "../engine/color";
7
+ import { type Sides } from "./boxmodel";
8
+ /** The rows of the card, in the order they stand. `type` goes on from `font` and has no label. */
9
+ export declare const CARD_KEYS: readonly ["color", "background", "font", "type", "contrast", "margin", "padding"];
10
+ export type CardKey = (typeof CARD_KEYS)[number];
11
+ /** What each row is labelled. */
12
+ export declare const CARD_LABELS: Record<CardKey, string>;
13
+ export interface CardRow {
14
+ key: CardKey;
15
+ text: string;
16
+ /** A color to show before the text. */
17
+ swatch?: string;
18
+ /** The value is not the element's own: the background of an ancestor. */
19
+ quiet?: boolean;
20
+ /** Whether the contrast meets level AA at the text's size. */
21
+ pass?: boolean;
22
+ }
23
+ /** What was read of an element for its card. */
24
+ export interface CardFacts {
25
+ /** The element has text of its own. */
26
+ text: boolean;
27
+ color: Color | null;
28
+ /** The backgrounds behind it, its own first, as far as the walk went. */
29
+ backgrounds: readonly (Color | null)[];
30
+ /** The family its text is likely set in, or null where none of its list is there. */
31
+ family: string | null;
32
+ fontSize: string;
33
+ lineHeight: string;
34
+ fontWeight: string;
35
+ letterSpacing: string;
36
+ margin: Sides;
37
+ padding: Sides;
38
+ }
39
+ /**
40
+ * The rows for an element. The color, the font and the contrast are for an
41
+ * element with text of its own. The background is the element's where it has
42
+ * one, and for text on none of its own the one that shows through from an
43
+ * ancestor, said quietly. The margin and the padding show where any side has some.
44
+ */
45
+ export declare function cardRows(facts: CardFacts): CardRow[];
@@ -0,0 +1,22 @@
1
+ /**
2
+ * What inspect reads of the page for an element: its box on every look, and
3
+ * once it has been rested on, what its card says of its text.
4
+ */
5
+ import type { Color } from "../engine/color";
6
+ import { type BoxModel, type BoxRing, type Quad } from "./boxmodel";
7
+ import type { CardFacts } from "./card";
8
+ /** Whether an element has text of its own: a text node under it that is not only space. */
9
+ export declare function hasOwnText(element: Element): boolean;
10
+ /**
11
+ * What the card says of an element's text, read through the computed style
12
+ * the box was read from. Only the walk up for a background reads any other.
13
+ */
14
+ export declare function readFacts(element: Element, style: CSSStyleDeclaration, colorOf: (value: string) => Color | null): Omit<CardFacts, "margin" | "padding">;
15
+ /** The box of an element as read: what its style says, and its corners where it is turned. */
16
+ export interface BoxRead {
17
+ model: BoxModel;
18
+ /** The outer edge of each area by its corners, for an element a transform turns or scales. */
19
+ quads: Record<BoxRing, Quad> | null;
20
+ }
21
+ /** Read an element's box. Null for one with no box to draw. */
22
+ export declare function readBox(element: Element, style: CSSStyleDeclaration): BoxRead | null;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The card inspect shows by the element under the pointer, as nodes: under
3
+ * the label's own line, a row for each thing it can say. All of it is built
4
+ * once, and a new element only changes the text in it and which rows show.
5
+ */
6
+ import { type CardRow } from "./card";
7
+ export interface CardView {
8
+ /** The element's size, which ends the label's own line. */
9
+ size: HTMLElement;
10
+ /** The rows, which go under that line. */
11
+ rows: HTMLElement;
12
+ /**
13
+ * Say a size and some rows. Returns the rows that show, as one text: the
14
+ * card is as tall as they make it, whatever they say.
15
+ */
16
+ write(size: string, rows: readonly CardRow[]): string;
17
+ }
18
+ export declare function createCardView(): CardView;
@@ -0,0 +1,8 @@
1
+ import type { GrabPayload } from "./types";
2
+ export declare const DEVKNOBS_TYPE = "application/x-devknobs-grab";
3
+ /** react-grab's own type, which agents that paste from it already read. */
4
+ export declare const REACT_GRAB_TYPE = "application/x-react-grab";
5
+ /** Every format a grab puts on the clipboard, by type. */
6
+ export declare function clipboardData(payload: GrabPayload, now?: number): Record<string, string>;
7
+ /** Copy a grab, in all its formats. Where those cannot go, only its text does. */
8
+ export declare function copyGrab(payload: GrabPayload): Promise<boolean>;
@@ -0,0 +1,31 @@
1
+ import type { GrabColorName, GrabColorValue } from "../types";
2
+ import type { GrabTone } from "./theme";
3
+ /** A color grab draws its boxes and its glow in: one it has a name for, or a hex of the user's own. */
4
+ export type GrabColor = Exclude<GrabColorValue, "auto">;
5
+ /** Each color grab has a name for, as the `--grab` variable takes it, in sRGB and wider in P3. */
6
+ export declare const GRAB_COLORS: Record<GrabColorName, {
7
+ srgb: string;
8
+ p3: string;
9
+ }>;
10
+ /** The names of the colors, in the order the panel shows them. */
11
+ export declare const GRAB_COLOR_NAMES: GrabColorName[];
12
+ /**
13
+ * The color grab draws in: the one that was picked, whatever the page, or
14
+ * with `auto` the tone the page asks for.
15
+ */
16
+ export declare function grabColor(value: GrabColorValue, tone: GrabTone): GrabColor;
17
+ /**
18
+ * The hue of each area of the box inspect draws on the page, the ones the
19
+ * browsers' own tools use: the content blue, the padding green, the border
20
+ * yellow, the margin orange.
21
+ */
22
+ export declare const BOX_HUES: {
23
+ readonly margin: "rgb(246, 178, 107)";
24
+ readonly border: "rgb(255, 221, 128)";
25
+ readonly padding: "rgb(147, 196, 125)";
26
+ readonly content: "rgb(111, 168, 220)";
27
+ };
28
+ /** How solid an area is over the page, in percent: the page still reads through it, light or dark. */
29
+ export declare const BOX_TINT = 50;
30
+ /** An area's hue at a share of solid, over whatever is under it, or mixed into `ground`. */
31
+ export declare function boxTint(ring: keyof typeof BOX_HUES, percent?: number, ground?: string): string;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Colors, for what inspect says of an element's text: a css color as
3
+ * channels, one color over another, the background that is really behind
4
+ * the text, and how well the two are told apart. Nothing here touches the page.
5
+ */
6
+ import { type Color } from "../engine/color";
7
+ /**
8
+ * A css color as channels: a hex, `rgb()` and `rgba()`, `hsl()` and `hsla()`,
9
+ * `color(srgb ...)`, `transparent` and the common names. Null for anything
10
+ * else, as a color in another space is, which only the browser can paint.
11
+ */
12
+ export declare function parseCss(value: string): Color | null;
13
+ /** One color over another, as the page paints them. */
14
+ export declare function composite(top: Color, under: Color): Color;
15
+ /** A color in its short form: a hex where it is solid, `rgb()` with its alpha where it is not. */
16
+ export declare function shortColor(color: Color): string;
17
+ /** The most ancestors the walk for a background goes up. */
18
+ export declare const WALK_CAP = 20;
19
+ /**
20
+ * The backgrounds behind an element, its own first, then each ancestor's,
21
+ * up to the first solid one or `cap` ancestors, whichever comes first.
22
+ */
23
+ export declare function walkBackgrounds<Node>(start: Node, read: (node: Node) => Color | null, parent: (node: Node) => Node | null, cap?: number): (Color | null)[];
24
+ /**
25
+ * The color behind the text: the backgrounds one over another, the nearest on
26
+ * top, over white where none of them is solid, as a page with no background
27
+ * of its own is white.
28
+ */
29
+ export declare function effectiveBackground(backgrounds: readonly (Color | null)[]): Color;
30
+ /** The wcag contrast ratio of two solid colors, from 1 to 21. */
31
+ export declare function contrastRatio(a: Color, b: Color): number;
32
+ /** Text of this size is large to wcag: 18pt, or 14pt where it is bold. In css px. */
33
+ export declare const LARGE = 24;
34
+ export declare const LARGE_BOLD = 18.66;
35
+ /** A weight from here on is bold. */
36
+ export declare const BOLD = 700;
37
+ /** The ratio level AA asks of text of a size and a weight: 3 for large text, 4.5 for the rest. */
38
+ export declare function aaRatio(size: number, weight: number): number;
39
+ /** Whether a contrast ratio meets level AA for text of a size and a weight. */
40
+ export declare function passesAA(ratio: number, size: number, weight: number): boolean;
@@ -0,0 +1,25 @@
1
+ import type { StackFrame } from "bippy/source";
2
+ import { type Trace } from "./stack";
3
+ import type { GrabEntry, GrabOptions, GrabPayload, ResolvedSource } from "./types";
4
+ /**
5
+ * The trace below the element's html. With no app source in the owner stack,
6
+ * the components above it in the fiber tree name it instead.
7
+ */
8
+ export declare function buildTrace(stack: StackFrame[], fiberSource: ResolvedSource | null, ancestors: (max: number, accept: (name: string) => boolean) => string[], options?: {
9
+ maxLines?: number;
10
+ next?: boolean;
11
+ }): Trace;
12
+ /** `[preview trace key selector]` on one line, as react-grab copies it. */
13
+ export declare function formatEntry(preview: string, trace: string, key: string | null, selector: string | null): string;
14
+ export declare function joinEntries(entries: GrabEntry[]): string;
15
+ /** Everything a grab knows about one element. */
16
+ export declare function grabEntry(element: Element, options?: GrabOptions): Promise<GrabEntry>;
17
+ /**
18
+ * The entry made at once, for a copy that cannot wait: the components above
19
+ * the element by name, without the owner stack and its lines and columns.
20
+ */
21
+ export declare function quickEntry(element: Element, options?: GrabOptions): GrabEntry;
22
+ /** The nearest component that rendered the element, by name, for its label. */
23
+ export declare function componentOf(element: Element): string | null;
24
+ /** One entry per element, duplicates dropped, and their lines joined. */
25
+ export declare function grabContext(elements: Element[], options?: GrabOptions): Promise<GrabPayload>;
@@ -0,0 +1,37 @@
1
+ import { type GrabKey } from "./keys";
2
+ import type { Mode, ModeOptions, Purpose } from "./mode";
3
+ export interface GrabControlOptions {
4
+ /**
5
+ * The key that grabs as it is now, read on each key so a new one takes at
6
+ * once, or null while there is none, as while the panel records a key.
7
+ * Defaults to shift and g.
8
+ */
9
+ key?: () => GrabKey | null;
10
+ /**
11
+ * Another use of the picking, as inspect is: what a pick does in place of
12
+ * grab's copy, and the name the page and its frame say it on and off by.
13
+ */
14
+ purpose?: Purpose & {
15
+ channel: "inspect";
16
+ };
17
+ }
18
+ /** Loads grab's mode, the overlay and the context, the first time grab turns on. */
19
+ export type LoadMode = () => Promise<{
20
+ startMode: (options: ModeOptions) => Mode;
21
+ }>;
22
+ export interface GrabControl {
23
+ isOn(): boolean;
24
+ /** Turn grab on or off, in the frame while it is up. */
25
+ set(on: boolean): void;
26
+ /** Hear grab go on and off. Returns the way to stop. */
27
+ subscribe(listener: (on: boolean) => void): () => void;
28
+ destroy(): void;
29
+ }
30
+ /**
31
+ * Grab's switch, in every bundle: the key that turns it on, the panel's
32
+ * view of it, and the way into the width knob's frame. Grab has to run in the
33
+ * page that owns React, so while the frame is up, the page above hands grab
34
+ * to the frame and only shows it as on. The overlay and the context load the
35
+ * first time grab turns on.
36
+ */
37
+ export declare function createGrab(options?: GrabControlOptions, loadMode?: LoadMode): GrabControl;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Put text on the clipboard, with more formats of it where `data` has them,
3
+ * by type. `execCommand("copy")` runs right away, inside the click or key
4
+ * that asked for it, and a `copy` handler fills in the types. Where that
5
+ * fails, only the text goes, through the async api.
6
+ */
7
+ export declare function copyText(text: string, data?: Record<string, string>): Promise<boolean>;
@@ -0,0 +1,29 @@
1
+ /** How long a pointer on the move stays on one element before the box goes to it, in ms. */
2
+ export declare const DWELL = 80;
3
+ /** Slower than this, in px a ms, the pointer is coming to rest. */
4
+ export declare const SLOW = 0.3;
5
+ /** What the hit test found of an element the box is not on yet. */
6
+ export interface Hover {
7
+ /** A box is up: on an element, or still on the last one for a moment. */
8
+ boxed: boolean;
9
+ /** How long the hit test has found this one element, in ms. */
10
+ held: number;
11
+ /** How fast the pointer went since the hit test before, in px a ms. */
12
+ speed: number;
13
+ }
14
+ /**
15
+ * Whether the box goes to the element under the pointer now. A pointer that
16
+ * sweeps the page only passes over most of what it crosses, and a box that
17
+ * set off for each of those would never get to one. So the box waits for the
18
+ * pointer to slow down, or to stay on one element for a while. The first
19
+ * box has nothing to leave, and is up at once.
20
+ */
21
+ export declare function settles(hover: Hover): boolean;
22
+ /** How fast a pointer went from one point to another in `elapsed` ms, in px a ms. */
23
+ export declare function speedOf(from: {
24
+ x: number;
25
+ y: number;
26
+ }, to: {
27
+ x: number;
28
+ y: number;
29
+ }, elapsed: number): number;
@@ -0,0 +1,17 @@
1
+ import type { Fiber } from "bippy";
2
+ /** The fiber React keeps on a dom node it rendered, from any realm. */
3
+ export declare function getFiber(element: Element): Fiber | null;
4
+ /** The nearest element up the tree, shadow hosts included, that React rendered. */
5
+ export declare function nearestFiberElement(element: Element): Element;
6
+ /** A component's name, through `memo` and `forwardRef` wrappers. */
7
+ export declare function displayName(type: unknown): string | null;
8
+ /** A function, class, `memo` or `forwardRef` component, by its type, as tags vary by version. */
9
+ export declare function isComposite(fiber: Fiber): boolean;
10
+ /**
11
+ * The key of the list item the fiber sits in. Items made by one `.map()` share
12
+ * a source line, so the key tells them apart. The walk crosses one component
13
+ * boundary at most, so a route's key far above never shows.
14
+ */
15
+ export declare function listKey(fiber: Fiber | null): string | null;
16
+ /** Names of the components above the fiber, nearest first, that `accept` lets through. */
17
+ export declare function componentNames(fiber: Fiber | null, max: number, accept: (name: string) => boolean): string[];
@@ -0,0 +1,23 @@
1
+ /**
2
+ * The font an element's text is likely set in. The computed `font-family` is
3
+ * the whole list the page asked for, and the browser does not tell a page's
4
+ * script which of them a glyph was drawn with. So this takes the first family
5
+ * of the list that the browser says is there. Nothing here touches the page.
6
+ */
7
+ /** The families of a `font-family`, in order, with no quotes around them. */
8
+ export declare function families(stack: string): string[];
9
+ export declare function isGeneric(family: string): boolean;
10
+ /**
11
+ * The first family of a list that is there: a generic one, or one `available`
12
+ * says the browser has. Null where none is, and the browser's own fallback
13
+ * shows, which has no name to read.
14
+ */
15
+ export declare function usedFamily(stack: string, available: (family: string) => boolean): string | null;
16
+ /**
17
+ * Whether a document has a family, by its `fonts.check`. For a web font that
18
+ * is whether it has loaded. For any other name most browsers answer true
19
+ * whether the system has the font or not, so a system family is taken on trust.
20
+ */
21
+ export declare function fontCheck(fonts: {
22
+ check(font: string): boolean;
23
+ } | null | undefined): (family: string) => boolean;
@@ -0,0 +1,19 @@
1
+ /** What a hit test needs of a document or a shadow root. */
2
+ export interface HitRoot {
3
+ elementFromPoint(x: number, y: number): Element | null;
4
+ elementsFromPoint?(x: number, y: number): Element[];
5
+ }
6
+ /** The parent in the composed tree: the element above, or the host of a shadow root. */
7
+ export declare function composedParent(element: Element): Element | null;
8
+ /** Part of devknobs itself: its panel, its frame's letterbox, its overlays. */
9
+ export declare function isDevknobs(element: Element): boolean;
10
+ /** An element grab can take: on the page, not devknobs, and not the page's root. */
11
+ export declare function isGrabbable(element: Element | null): element is Element;
12
+ /**
13
+ * The deepest element at a point: the topmost one, reaching into open shadow
14
+ * roots, then through clear layers over it and down to the children a hit
15
+ * test passes over.
16
+ */
17
+ export declare function deepElementAt(root: HitRoot, x: number, y: number): Element | null;
18
+ /** What grab takes at a point. Over devknobs, or the bare page, nothing. */
19
+ export declare function grabTargetAt(root: HitRoot, x: number, y: number): Element | null;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Put a React devtools hook in place before React loads, so React reports its
3
+ * renderers to it. A hook already there, such as the devtools extension's, is
4
+ * left alone. The hook only lands after the early script, in a microtask, which
5
+ * is still before any later script runs.
6
+ */
7
+ export declare function installHook(): void;
@@ -0,0 +1,9 @@
1
+ import type { GrabOptions, GrabResult } from "./types";
2
+ export { startMode } from "./mode";
3
+ export { createOutline } from "./outline";
4
+ /**
5
+ * Build the context of an element, an array or a NodeList of them and copy
6
+ * it. Entries that are not elements, such as a `querySelector` that found
7
+ * nothing, are skipped. Null when the elements gave nothing.
8
+ */
9
+ export declare function grab(elements?: Element | Iterable<Element | null | undefined> | null, options?: GrabOptions): Promise<GrabResult | null>;
@@ -0,0 +1,31 @@
1
+ import type { BoxRing } from "./boxmodel";
2
+ import { type GrabControl, type GrabControlOptions, type LoadMode } from "./control";
3
+ import type { Outline } from "./outline";
4
+ /** Loads the mode and the outline, the first time inspect turns on. */
5
+ export type LoadInspect = () => Promise<Awaited<ReturnType<LoadMode>> & {
6
+ createOutline: () => Outline;
7
+ }>;
8
+ export interface InspectControl extends GrabControl {
9
+ /** Hear each element inspect picks, here or in the frame. Returns the way to stop. */
10
+ onPick(listener: (element: Element) => void): () => void;
11
+ /** Put a quiet box on an element, in the frame's page too, or with null take it off. */
12
+ outline(element: Element | null): void;
13
+ /** Tint one area of the outlined element's box alone, or with null all four again. */
14
+ area(ring: BoxRing | null): void;
15
+ }
16
+ /**
17
+ * Grab and inspect are the same picking with another end, so one of the two
18
+ * is on at a time: either going on ends the other. Returns the way to stop.
19
+ */
20
+ export declare function oneAtATime(grab: GrabControl, inspect: GrabControl): () => void;
21
+ /** Told by its node type, as `instanceof` fails for an element of the frame's window. */
22
+ export declare function isElement(value: unknown): value is Element;
23
+ /**
24
+ * Inspect's switch: grab's own, with its key, its hold and its way into the
25
+ * frame, where a pick copies nothing, is handed to whoever listens on the
26
+ * page above, and ends the mode. The label says `styles` before the element, so the two modes
27
+ * are told apart. The element picked is the live one, the frame's too, so the
28
+ * page above reads its rules itself and keeps them to edit later. `frameOf`
29
+ * is the frame's window while it is up, for a test to stand in for.
30
+ */
31
+ export declare function createInspect(options?: Pick<GrabControlOptions, "key">, load?: LoadInspect, frameOf?: () => Window | null): InspectControl;
@@ -0,0 +1,84 @@
1
+ import { type Combo } from "../ui/keys";
2
+ /** The parts of a key event that decide whether it is the grab key. */
3
+ export type GrabKeyLike = Pick<KeyboardEvent, "key" | "code" | "altKey" | "ctrlKey" | "metaKey" | "shiftKey"> & Partial<Pick<KeyboardEvent, "isComposing">>;
4
+ /**
5
+ * The keys that start a grab, with only these modifiers down. `c` takes every
6
+ * key that reads as a c on some layout.
7
+ */
8
+ export type GrabKey = Combo;
9
+ /** How long a grab key that copies is held before grab turns on, in ms. */
10
+ export declare const HOLD = 100;
11
+ /** Longer while a field has the focus, where the key is likely a copy. */
12
+ export declare const HOLD_INPUT = 400;
13
+ /** Longer again while text is selected, which the key most likely copies. */
14
+ export declare const HOLD_SELECTION = 600;
15
+ /** After a copy, a release only turns grab on once the key was held this long, in ms. */
16
+ export declare const HOLD_AFTER_COPY = 200;
17
+ /** The c key, by its place on the keyboard or by what it types on any layout. */
18
+ export declare function isCLike(key: string, code?: string): boolean;
19
+ /** Shift and g. */
20
+ export declare function defaultGrabKey(): GrabKey;
21
+ /**
22
+ * Read a key such as `alt+shift+g`. One that names no key, or more than one,
23
+ * is the default.
24
+ */
25
+ export declare function parseGrabKey(spec: string | undefined): GrabKey;
26
+ /** The key alone, whatever modifiers are down. */
27
+ export declare function keyMatches(event: GrabKeyLike, key: string): boolean;
28
+ /**
29
+ * A key with no modifier but shift, or a function key, copies nothing, so a
30
+ * press turns grab on, and off again. One with meta, ctrl or alt is held.
31
+ */
32
+ export declare function pressTurnsOn(key: GrabKey): boolean;
33
+ /**
34
+ * A key with no modifier but shift types, so it is a field's, the panel's
35
+ * search aside, and never grab's there. A function key types nothing.
36
+ */
37
+ export declare function grabKeyTypes(key: GrabKey): boolean;
38
+ /** The grab key with exactly its own modifiers down, never while an IME composes. */
39
+ export declare function isGrabKey(event: GrabKeyLike, key: GrabKey): boolean;
40
+ /** A keyup that lets go of the grab key or one of its modifiers. */
41
+ export declare function releasesGrabKey(event: GrabKeyLike, key: GrabKey): boolean;
42
+ /** How long the key is held before grab turns on, by what it might be copying. */
43
+ export declare function holdDuration(scene: {
44
+ input: boolean;
45
+ selection: boolean;
46
+ }, base?: number): number;
47
+ /**
48
+ * A hold of the grab key. While it is held nothing is taken from the page, so
49
+ * a quick press still copies. Once the hold has lasted, grab turns on. A copy
50
+ * the press made holds that back until the key repeats or is let go, so a
51
+ * plain copy with the key down a little long stays a copy.
52
+ */
53
+ export interface Hold {
54
+ /** When the key went down, in ms. */
55
+ start: number;
56
+ /** How long it has to be held. */
57
+ duration: number;
58
+ /** The press copied something. */
59
+ copied: boolean;
60
+ /** The time is up, with a copy holding grab back. */
61
+ due: boolean;
62
+ }
63
+ export type HoldEvent = {
64
+ type: "down";
65
+ at: number;
66
+ duration: number;
67
+ } | {
68
+ type: "repeat";
69
+ } | {
70
+ type: "copy";
71
+ } | {
72
+ type: "timer";
73
+ } | {
74
+ type: "release";
75
+ at: number;
76
+ } | {
77
+ type: "cancel";
78
+ };
79
+ /** Where the hold goes next, and whether grab turns on with it. */
80
+ export interface HoldStep {
81
+ hold: Hold | null;
82
+ activate: boolean;
83
+ }
84
+ export declare function holdStep(hold: Hold | null, event: HoldEvent): HoldStep;