@buoy-gg/floating-tools-core 7.0.36 → 7.0.38

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 (582) hide show
  1. package/README.md +36 -0
  2. package/floating.d.ts +1 -0
  3. package/floating.js +1 -0
  4. package/lib/commonjs/FloatingToolsStore.js +1 -501
  5. package/lib/commonjs/colors.js +1 -54
  6. package/lib/commonjs/constants.js +1 -31
  7. package/lib/commonjs/devToolsState.js +1 -325
  8. package/lib/commonjs/dial.js +1 -633
  9. package/lib/commonjs/dialUsage.js +1 -130
  10. package/lib/commonjs/easing.js +1 -69
  11. package/lib/commonjs/floating.js +1 -0
  12. package/lib/commonjs/fonts.js +1 -31
  13. package/lib/commonjs/fonts.web.js +1 -0
  14. package/lib/commonjs/icons/ICONS.md +7 -0
  15. package/lib/commonjs/icons/ask-buoy-icon.js +1 -27
  16. package/lib/commonjs/icons/ask-buoy-icon.native.js +1 -0
  17. package/lib/commonjs/icons/assets/askBuoy.png +0 -0
  18. package/lib/commonjs/icons/assets/askBuoy@2x.png +0 -0
  19. package/lib/commonjs/icons/assets/askBuoy@3x.png +0 -0
  20. package/lib/commonjs/icons/assets/assets.png +0 -0
  21. package/lib/commonjs/icons/assets/assets@2x.png +0 -0
  22. package/lib/commonjs/icons/assets/assets@3x.png +0 -0
  23. package/lib/commonjs/icons/assets/benchmark.png +0 -0
  24. package/lib/commonjs/icons/assets/benchmark@2x.png +0 -0
  25. package/lib/commonjs/icons/assets/benchmark@3x.png +0 -0
  26. package/lib/commonjs/icons/assets/camera.png +0 -0
  27. package/lib/commonjs/icons/assets/camera@2x.png +0 -0
  28. package/lib/commonjs/icons/assets/camera@3x.png +0 -0
  29. package/lib/commonjs/icons/assets/console.png +0 -0
  30. package/lib/commonjs/icons/assets/console@2x.png +0 -0
  31. package/lib/commonjs/icons/assets/console@3x.png +0 -0
  32. package/lib/commonjs/icons/assets/env.png +0 -0
  33. package/lib/commonjs/icons/assets/env@2x.png +0 -0
  34. package/lib/commonjs/icons/assets/env@3x.png +0 -0
  35. package/lib/commonjs/icons/assets/events.png +0 -0
  36. package/lib/commonjs/icons/assets/events@2x.png +0 -0
  37. package/lib/commonjs/icons/assets/events@3x.png +0 -0
  38. package/lib/commonjs/icons/assets/highlight.png +0 -0
  39. package/lib/commonjs/icons/assets/highlight@2x.png +0 -0
  40. package/lib/commonjs/icons/assets/highlight@3x.png +0 -0
  41. package/lib/commonjs/icons/assets/highlighter.png +0 -0
  42. package/lib/commonjs/icons/assets/highlighter@2x.png +0 -0
  43. package/lib/commonjs/icons/assets/highlighter@3x.png +0 -0
  44. package/lib/commonjs/icons/assets/image-overlay.png +0 -0
  45. package/lib/commonjs/icons/assets/image-overlay@2x.png +0 -0
  46. package/lib/commonjs/icons/assets/image-overlay@3x.png +0 -0
  47. package/lib/commonjs/icons/assets/images.png +0 -0
  48. package/lib/commonjs/icons/assets/images@2x.png +0 -0
  49. package/lib/commonjs/icons/assets/images@3x.png +0 -0
  50. package/lib/commonjs/icons/assets/impersonate.png +0 -0
  51. package/lib/commonjs/icons/assets/impersonate@2x.png +0 -0
  52. package/lib/commonjs/icons/assets/impersonate@3x.png +0 -0
  53. package/lib/commonjs/icons/assets/jotai.png +0 -0
  54. package/lib/commonjs/icons/assets/jotai@2x.png +0 -0
  55. package/lib/commonjs/icons/assets/jotai@3x.png +0 -0
  56. package/lib/commonjs/icons/assets/network.png +0 -0
  57. package/lib/commonjs/icons/assets/network@2x.png +0 -0
  58. package/lib/commonjs/icons/assets/network@3x.png +0 -0
  59. package/lib/commonjs/icons/assets/query.png +0 -0
  60. package/lib/commonjs/icons/assets/query@2x.png +0 -0
  61. package/lib/commonjs/icons/assets/query@3x.png +0 -0
  62. package/lib/commonjs/icons/assets/redux.png +0 -0
  63. package/lib/commonjs/icons/assets/redux@2x.png +0 -0
  64. package/lib/commonjs/icons/assets/redux@3x.png +0 -0
  65. package/lib/commonjs/icons/assets/riverpod.png +0 -0
  66. package/lib/commonjs/icons/assets/riverpod@2x.png +0 -0
  67. package/lib/commonjs/icons/assets/riverpod@3x.png +0 -0
  68. package/lib/commonjs/icons/assets/routes.png +0 -0
  69. package/lib/commonjs/icons/assets/routes@2x.png +0 -0
  70. package/lib/commonjs/icons/assets/routes@3x.png +0 -0
  71. package/lib/commonjs/icons/assets/scenarios.png +0 -0
  72. package/lib/commonjs/icons/assets/scenarios@2x.png +0 -0
  73. package/lib/commonjs/icons/assets/scenarios@3x.png +0 -0
  74. package/lib/commonjs/icons/assets/sentry.png +0 -0
  75. package/lib/commonjs/icons/assets/sentry@2x.png +0 -0
  76. package/lib/commonjs/icons/assets/sentry@3x.png +0 -0
  77. package/lib/commonjs/icons/assets/settings.png +0 -0
  78. package/lib/commonjs/icons/assets/settings@2x.png +0 -0
  79. package/lib/commonjs/icons/assets/settings@3x.png +0 -0
  80. package/lib/commonjs/icons/assets/storage.png +0 -0
  81. package/lib/commonjs/icons/assets/storage@2x.png +0 -0
  82. package/lib/commonjs/icons/assets/storage@3x.png +0 -0
  83. package/lib/commonjs/icons/assets/time-machine.png +0 -0
  84. package/lib/commonjs/icons/assets/time-machine@2x.png +0 -0
  85. package/lib/commonjs/icons/assets/time-machine@3x.png +0 -0
  86. package/lib/commonjs/icons/assets/wifi.png +0 -0
  87. package/lib/commonjs/icons/assets/wifi@2x.png +0 -0
  88. package/lib/commonjs/icons/assets/wifi@3x.png +0 -0
  89. package/lib/commonjs/icons/assets/zustand.png +0 -0
  90. package/lib/commonjs/icons/assets/zustand@2x.png +0 -0
  91. package/lib/commonjs/icons/assets/zustand@3x.png +0 -0
  92. package/lib/commonjs/icons/assets-icon.js +1 -26
  93. package/lib/commonjs/icons/assets-icon.native.js +1 -0
  94. package/lib/commonjs/icons/benchmark-icon.js +1 -24
  95. package/lib/commonjs/icons/benchmark-icon.native.js +1 -0
  96. package/lib/commonjs/icons/bif-raster-icon.js +1 -0
  97. package/lib/commonjs/icons/bif-raster-icon.native.js +1 -0
  98. package/lib/commonjs/icons/camera-icon.js +1 -27
  99. package/lib/commonjs/icons/camera-icon.native.js +1 -0
  100. package/lib/commonjs/icons/console-icon.js +1 -26
  101. package/lib/commonjs/icons/console-icon.native.js +1 -0
  102. package/lib/commonjs/icons/env-icon.js +1 -24
  103. package/lib/commonjs/icons/env-icon.native.js +1 -0
  104. package/lib/commonjs/icons/events-icon.js +1 -24
  105. package/lib/commonjs/icons/events-icon.native.js +1 -0
  106. package/lib/commonjs/icons/generated/assets-raster.g.js +1 -0
  107. package/lib/commonjs/icons/generated/benchmark-raster.g.js +1 -0
  108. package/lib/commonjs/icons/generated/camera-raster.g.js +1 -0
  109. package/lib/commonjs/icons/generated/env-raster.g.js +1 -0
  110. package/lib/commonjs/icons/generated/events-raster.g.js +1 -0
  111. package/lib/commonjs/icons/generated/glyph-icons.g.js +1 -299
  112. package/lib/commonjs/icons/generated/highlight-raster.g.js +1 -0
  113. package/lib/commonjs/icons/generated/highlighter-raster.g.js +1 -0
  114. package/lib/commonjs/icons/generated/icon-data.g.js +1 -7267
  115. package/lib/commonjs/icons/generated/image-overlay-raster.g.js +1 -0
  116. package/lib/commonjs/icons/generated/images-raster.g.js +1 -0
  117. package/lib/commonjs/icons/generated/network-raster.g.js +1 -0
  118. package/lib/commonjs/icons/generated/raster-icons.g.js +1 -0
  119. package/lib/commonjs/icons/generated/riverpod-raster.g.js +1 -0
  120. package/lib/commonjs/icons/generated/routes-raster.g.js +1 -0
  121. package/lib/commonjs/icons/generated/settings-raster.g.js +1 -0
  122. package/lib/commonjs/icons/generated/storage-raster.g.js +1 -0
  123. package/lib/commonjs/icons/generated/wifi-raster.g.js +1 -0
  124. package/lib/commonjs/icons/highlight-icon.js +1 -24
  125. package/lib/commonjs/icons/highlight-icon.native.js +1 -0
  126. package/lib/commonjs/icons/highlighter-icon.js +1 -0
  127. package/lib/commonjs/icons/highlighter-icon.native.js +1 -0
  128. package/lib/commonjs/icons/icon-factories.js +1 -173
  129. package/lib/commonjs/icons/icon-primitives.js +1 -676
  130. package/lib/commonjs/icons/icon-primitives.native.js +1 -904
  131. package/lib/commonjs/icons/icon-renderer.js +1 -307
  132. package/lib/commonjs/icons/iconGlow.js +1 -32
  133. package/lib/commonjs/icons/image-overlay-icon.js +1 -26
  134. package/lib/commonjs/icons/image-overlay-icon.native.js +1 -0
  135. package/lib/commonjs/icons/images-icon.js +1 -26
  136. package/lib/commonjs/icons/images-icon.native.js +1 -0
  137. package/lib/commonjs/icons/impersonate-icon.js +1 -26
  138. package/lib/commonjs/icons/impersonate-icon.native.js +1 -0
  139. package/lib/commonjs/icons/jotai-icon.js +1 -26
  140. package/lib/commonjs/icons/jotai-icon.native.js +1 -0
  141. package/lib/commonjs/icons/network-icon.js +1 -24
  142. package/lib/commonjs/icons/network-icon.native.js +1 -0
  143. package/lib/commonjs/icons/query-icon.js +1 -24
  144. package/lib/commonjs/icons/query-icon.native.js +1 -0
  145. package/lib/commonjs/icons/raster-icon.js +1 -0
  146. package/lib/commonjs/icons/redux-icon.js +1 -24
  147. package/lib/commonjs/icons/redux-icon.native.js +1 -0
  148. package/lib/commonjs/icons/renders-icon.js +1 -33
  149. package/lib/commonjs/icons/renders-icon.native.js +1 -0
  150. package/lib/commonjs/icons/riverpod-icon.js +1 -26
  151. package/lib/commonjs/icons/riverpod-icon.native.js +1 -0
  152. package/lib/commonjs/icons/routes-icon.js +1 -49
  153. package/lib/commonjs/icons/routes-icon.native.js +1 -0
  154. package/lib/commonjs/icons/routes-parts.js +1 -0
  155. package/lib/commonjs/icons/scenarios-icon.js +1 -26
  156. package/lib/commonjs/icons/scenarios-icon.native.js +1 -0
  157. package/lib/commonjs/icons/sentry-icon.js +1 -24
  158. package/lib/commonjs/icons/sentry-icon.native.js +1 -0
  159. package/lib/commonjs/icons/settings-icon.js +1 -23
  160. package/lib/commonjs/icons/settings-icon.native.js +1 -0
  161. package/lib/commonjs/icons/storage-icon.js +1 -24
  162. package/lib/commonjs/icons/storage-icon.native.js +1 -0
  163. package/lib/commonjs/icons/time-machine-icon.js +1 -26
  164. package/lib/commonjs/icons/time-machine-icon.native.js +1 -0
  165. package/lib/commonjs/icons/wifi-icon.js +1 -24
  166. package/lib/commonjs/icons/wifi-icon.native.js +1 -0
  167. package/lib/commonjs/icons/zustand-icon.js +1 -26
  168. package/lib/commonjs/icons/zustand-icon.native.js +1 -0
  169. package/lib/commonjs/index.js +1 -1099
  170. package/lib/commonjs/settings.js +1 -601
  171. package/lib/commonjs/utils.js +1 -72
  172. package/lib/module/FloatingToolsStore.js +1 -496
  173. package/lib/module/colors.js +1 -49
  174. package/lib/module/constants.js +1 -27
  175. package/lib/module/devToolsState.js +1 -318
  176. package/lib/module/dial.js +1 -618
  177. package/lib/module/dialUsage.js +1 -122
  178. package/lib/module/easing.js +1 -62
  179. package/lib/module/floating.js +1 -0
  180. package/lib/module/fonts.js +1 -28
  181. package/lib/module/fonts.web.js +1 -0
  182. package/lib/module/icons/ICONS.md +7 -0
  183. package/lib/module/icons/ask-buoy-icon.js +1 -18
  184. package/lib/module/icons/ask-buoy-icon.native.js +1 -0
  185. package/lib/module/icons/assets/askBuoy.png +0 -0
  186. package/lib/module/icons/assets/askBuoy@2x.png +0 -0
  187. package/lib/module/icons/assets/askBuoy@3x.png +0 -0
  188. package/lib/module/icons/assets/assets.png +0 -0
  189. package/lib/module/icons/assets/assets@2x.png +0 -0
  190. package/lib/module/icons/assets/assets@3x.png +0 -0
  191. package/lib/module/icons/assets/benchmark.png +0 -0
  192. package/lib/module/icons/assets/benchmark@2x.png +0 -0
  193. package/lib/module/icons/assets/benchmark@3x.png +0 -0
  194. package/lib/module/icons/assets/camera.png +0 -0
  195. package/lib/module/icons/assets/camera@2x.png +0 -0
  196. package/lib/module/icons/assets/camera@3x.png +0 -0
  197. package/lib/module/icons/assets/console.png +0 -0
  198. package/lib/module/icons/assets/console@2x.png +0 -0
  199. package/lib/module/icons/assets/console@3x.png +0 -0
  200. package/lib/module/icons/assets/env.png +0 -0
  201. package/lib/module/icons/assets/env@2x.png +0 -0
  202. package/lib/module/icons/assets/env@3x.png +0 -0
  203. package/lib/module/icons/assets/events.png +0 -0
  204. package/lib/module/icons/assets/events@2x.png +0 -0
  205. package/lib/module/icons/assets/events@3x.png +0 -0
  206. package/lib/module/icons/assets/highlight.png +0 -0
  207. package/lib/module/icons/assets/highlight@2x.png +0 -0
  208. package/lib/module/icons/assets/highlight@3x.png +0 -0
  209. package/lib/module/icons/assets/highlighter.png +0 -0
  210. package/lib/module/icons/assets/highlighter@2x.png +0 -0
  211. package/lib/module/icons/assets/highlighter@3x.png +0 -0
  212. package/lib/module/icons/assets/image-overlay.png +0 -0
  213. package/lib/module/icons/assets/image-overlay@2x.png +0 -0
  214. package/lib/module/icons/assets/image-overlay@3x.png +0 -0
  215. package/lib/module/icons/assets/images.png +0 -0
  216. package/lib/module/icons/assets/images@2x.png +0 -0
  217. package/lib/module/icons/assets/images@3x.png +0 -0
  218. package/lib/module/icons/assets/impersonate.png +0 -0
  219. package/lib/module/icons/assets/impersonate@2x.png +0 -0
  220. package/lib/module/icons/assets/impersonate@3x.png +0 -0
  221. package/lib/module/icons/assets/jotai.png +0 -0
  222. package/lib/module/icons/assets/jotai@2x.png +0 -0
  223. package/lib/module/icons/assets/jotai@3x.png +0 -0
  224. package/lib/module/icons/assets/network.png +0 -0
  225. package/lib/module/icons/assets/network@2x.png +0 -0
  226. package/lib/module/icons/assets/network@3x.png +0 -0
  227. package/lib/module/icons/assets/query.png +0 -0
  228. package/lib/module/icons/assets/query@2x.png +0 -0
  229. package/lib/module/icons/assets/query@3x.png +0 -0
  230. package/lib/module/icons/assets/redux.png +0 -0
  231. package/lib/module/icons/assets/redux@2x.png +0 -0
  232. package/lib/module/icons/assets/redux@3x.png +0 -0
  233. package/lib/module/icons/assets/riverpod.png +0 -0
  234. package/lib/module/icons/assets/riverpod@2x.png +0 -0
  235. package/lib/module/icons/assets/riverpod@3x.png +0 -0
  236. package/lib/module/icons/assets/routes.png +0 -0
  237. package/lib/module/icons/assets/routes@2x.png +0 -0
  238. package/lib/module/icons/assets/routes@3x.png +0 -0
  239. package/lib/module/icons/assets/scenarios.png +0 -0
  240. package/lib/module/icons/assets/scenarios@2x.png +0 -0
  241. package/lib/module/icons/assets/scenarios@3x.png +0 -0
  242. package/lib/module/icons/assets/sentry.png +0 -0
  243. package/lib/module/icons/assets/sentry@2x.png +0 -0
  244. package/lib/module/icons/assets/sentry@3x.png +0 -0
  245. package/lib/module/icons/assets/settings.png +0 -0
  246. package/lib/module/icons/assets/settings@2x.png +0 -0
  247. package/lib/module/icons/assets/settings@3x.png +0 -0
  248. package/lib/module/icons/assets/storage.png +0 -0
  249. package/lib/module/icons/assets/storage@2x.png +0 -0
  250. package/lib/module/icons/assets/storage@3x.png +0 -0
  251. package/lib/module/icons/assets/time-machine.png +0 -0
  252. package/lib/module/icons/assets/time-machine@2x.png +0 -0
  253. package/lib/module/icons/assets/time-machine@3x.png +0 -0
  254. package/lib/module/icons/assets/wifi.png +0 -0
  255. package/lib/module/icons/assets/wifi@2x.png +0 -0
  256. package/lib/module/icons/assets/wifi@3x.png +0 -0
  257. package/lib/module/icons/assets/zustand.png +0 -0
  258. package/lib/module/icons/assets/zustand@2x.png +0 -0
  259. package/lib/module/icons/assets/zustand@3x.png +0 -0
  260. package/lib/module/icons/assets-icon.js +1 -17
  261. package/lib/module/icons/assets-icon.native.js +1 -0
  262. package/lib/module/icons/benchmark-icon.js +1 -15
  263. package/lib/module/icons/benchmark-icon.native.js +1 -0
  264. package/lib/module/icons/bif-raster-icon.js +1 -0
  265. package/lib/module/icons/bif-raster-icon.native.js +1 -0
  266. package/lib/module/icons/camera-icon.js +1 -18
  267. package/lib/module/icons/camera-icon.native.js +1 -0
  268. package/lib/module/icons/console-icon.js +1 -17
  269. package/lib/module/icons/console-icon.native.js +1 -0
  270. package/lib/module/icons/env-icon.js +1 -15
  271. package/lib/module/icons/env-icon.native.js +1 -0
  272. package/lib/module/icons/events-icon.js +1 -15
  273. package/lib/module/icons/events-icon.native.js +1 -0
  274. package/lib/module/icons/generated/assets-raster.g.js +1 -0
  275. package/lib/module/icons/generated/benchmark-raster.g.js +1 -0
  276. package/lib/module/icons/generated/camera-raster.g.js +1 -0
  277. package/lib/module/icons/generated/env-raster.g.js +1 -0
  278. package/lib/module/icons/generated/events-raster.g.js +1 -0
  279. package/lib/module/icons/generated/glyph-icons.g.js +1 -296
  280. package/lib/module/icons/generated/highlight-raster.g.js +1 -0
  281. package/lib/module/icons/generated/highlighter-raster.g.js +1 -0
  282. package/lib/module/icons/generated/icon-data.g.js +1 -7262
  283. package/lib/module/icons/generated/image-overlay-raster.g.js +1 -0
  284. package/lib/module/icons/generated/images-raster.g.js +1 -0
  285. package/lib/module/icons/generated/network-raster.g.js +1 -0
  286. package/lib/module/icons/generated/raster-icons.g.js +1 -0
  287. package/lib/module/icons/generated/riverpod-raster.g.js +1 -0
  288. package/lib/module/icons/generated/routes-raster.g.js +1 -0
  289. package/lib/module/icons/generated/settings-raster.g.js +1 -0
  290. package/lib/module/icons/generated/storage-raster.g.js +1 -0
  291. package/lib/module/icons/generated/wifi-raster.g.js +1 -0
  292. package/lib/module/icons/highlight-icon.js +1 -15
  293. package/lib/module/icons/highlight-icon.native.js +1 -0
  294. package/lib/module/icons/highlighter-icon.js +1 -0
  295. package/lib/module/icons/highlighter-icon.native.js +1 -0
  296. package/lib/module/icons/icon-factories.js +1 -163
  297. package/lib/module/icons/icon-primitives.js +1 -673
  298. package/lib/module/icons/icon-primitives.native.js +1 -899
  299. package/lib/module/icons/icon-renderer.js +1 -302
  300. package/lib/module/icons/iconGlow.js +1 -28
  301. package/lib/module/icons/image-overlay-icon.js +1 -17
  302. package/lib/module/icons/image-overlay-icon.native.js +1 -0
  303. package/lib/module/icons/images-icon.js +1 -17
  304. package/lib/module/icons/images-icon.native.js +1 -0
  305. package/lib/module/icons/impersonate-icon.js +1 -17
  306. package/lib/module/icons/impersonate-icon.native.js +1 -0
  307. package/lib/module/icons/jotai-icon.js +1 -17
  308. package/lib/module/icons/jotai-icon.native.js +1 -0
  309. package/lib/module/icons/network-icon.js +1 -15
  310. package/lib/module/icons/network-icon.native.js +1 -0
  311. package/lib/module/icons/query-icon.js +1 -15
  312. package/lib/module/icons/query-icon.native.js +1 -0
  313. package/lib/module/icons/raster-icon.js +1 -0
  314. package/lib/module/icons/redux-icon.js +1 -15
  315. package/lib/module/icons/redux-icon.native.js +1 -0
  316. package/lib/module/icons/renders-icon.js +1 -17
  317. package/lib/module/icons/renders-icon.native.js +1 -0
  318. package/lib/module/icons/riverpod-icon.js +1 -17
  319. package/lib/module/icons/riverpod-icon.native.js +1 -0
  320. package/lib/module/icons/routes-icon.js +1 -41
  321. package/lib/module/icons/routes-icon.native.js +1 -0
  322. package/lib/module/icons/routes-parts.js +1 -0
  323. package/lib/module/icons/scenarios-icon.js +1 -17
  324. package/lib/module/icons/scenarios-icon.native.js +1 -0
  325. package/lib/module/icons/sentry-icon.js +1 -15
  326. package/lib/module/icons/sentry-icon.native.js +1 -0
  327. package/lib/module/icons/settings-icon.js +1 -19
  328. package/lib/module/icons/settings-icon.native.js +1 -0
  329. package/lib/module/icons/storage-icon.js +1 -15
  330. package/lib/module/icons/storage-icon.native.js +1 -0
  331. package/lib/module/icons/time-machine-icon.js +1 -17
  332. package/lib/module/icons/time-machine-icon.native.js +1 -0
  333. package/lib/module/icons/wifi-icon.js +1 -15
  334. package/lib/module/icons/wifi-icon.native.js +1 -0
  335. package/lib/module/icons/zustand-icon.js +1 -17
  336. package/lib/module/icons/zustand-icon.native.js +1 -0
  337. package/lib/module/index.js +1 -128
  338. package/lib/module/settings.js +1 -589
  339. package/lib/module/utils.js +1 -66
  340. package/lib/typescript/commonjs/FloatingToolsStore.d.ts +2 -0
  341. package/lib/typescript/commonjs/dial.d.ts +6 -0
  342. package/lib/typescript/commonjs/floating.d.ts +8 -0
  343. package/lib/typescript/commonjs/fonts.web.d.ts +3 -0
  344. package/lib/typescript/commonjs/icons/ask-buoy-icon.d.ts +1 -13
  345. package/lib/typescript/commonjs/icons/ask-buoy-icon.native.d.ts +4 -0
  346. package/lib/typescript/commonjs/icons/assets-icon.d.ts +1 -12
  347. package/lib/typescript/commonjs/icons/assets-icon.native.d.ts +3 -0
  348. package/lib/typescript/commonjs/icons/benchmark-icon.d.ts +1 -10
  349. package/lib/typescript/commonjs/icons/benchmark-icon.native.d.ts +3 -0
  350. package/lib/typescript/commonjs/icons/bif-raster-icon.d.ts +4 -0
  351. package/lib/typescript/commonjs/icons/bif-raster-icon.native.d.ts +5 -0
  352. package/lib/typescript/commonjs/icons/camera-icon.d.ts +1 -13
  353. package/lib/typescript/commonjs/icons/camera-icon.native.d.ts +3 -0
  354. package/lib/typescript/commonjs/icons/console-icon.d.ts +1 -12
  355. package/lib/typescript/commonjs/icons/console-icon.native.d.ts +4 -0
  356. package/lib/typescript/commonjs/icons/env-icon.d.ts +1 -10
  357. package/lib/typescript/commonjs/icons/env-icon.native.d.ts +3 -0
  358. package/lib/typescript/commonjs/icons/events-icon.d.ts +1 -10
  359. package/lib/typescript/commonjs/icons/events-icon.native.d.ts +3 -0
  360. package/lib/typescript/commonjs/icons/generated/assets-raster.g.d.ts +3 -0
  361. package/lib/typescript/commonjs/icons/generated/benchmark-raster.g.d.ts +3 -0
  362. package/lib/typescript/commonjs/icons/generated/camera-raster.g.d.ts +3 -0
  363. package/lib/typescript/commonjs/icons/generated/env-raster.g.d.ts +3 -0
  364. package/lib/typescript/commonjs/icons/generated/events-raster.g.d.ts +3 -0
  365. package/lib/typescript/commonjs/icons/generated/highlight-raster.g.d.ts +3 -0
  366. package/lib/typescript/commonjs/icons/generated/highlighter-raster.g.d.ts +3 -0
  367. package/lib/typescript/commonjs/icons/generated/icon-data.g.d.ts +26 -1
  368. package/lib/typescript/commonjs/icons/generated/image-overlay-raster.g.d.ts +3 -0
  369. package/lib/typescript/commonjs/icons/generated/images-raster.g.d.ts +3 -0
  370. package/lib/typescript/commonjs/icons/generated/network-raster.g.d.ts +3 -0
  371. package/lib/typescript/commonjs/icons/generated/raster-icons.g.d.ts +13 -0
  372. package/lib/typescript/commonjs/icons/generated/riverpod-raster.g.d.ts +3 -0
  373. package/lib/typescript/commonjs/icons/generated/routes-raster.g.d.ts +3 -0
  374. package/lib/typescript/commonjs/icons/generated/settings-raster.g.d.ts +3 -0
  375. package/lib/typescript/commonjs/icons/generated/storage-raster.g.d.ts +3 -0
  376. package/lib/typescript/commonjs/icons/generated/wifi-raster.g.d.ts +3 -0
  377. package/lib/typescript/commonjs/icons/highlight-icon.d.ts +1 -10
  378. package/lib/typescript/commonjs/icons/highlight-icon.native.d.ts +3 -0
  379. package/lib/typescript/commonjs/icons/highlighter-icon.d.ts +5 -0
  380. package/lib/typescript/commonjs/icons/highlighter-icon.native.d.ts +5 -0
  381. package/lib/typescript/commonjs/icons/image-overlay-icon.d.ts +1 -12
  382. package/lib/typescript/commonjs/icons/image-overlay-icon.native.d.ts +3 -0
  383. package/lib/typescript/commonjs/icons/images-icon.d.ts +1 -12
  384. package/lib/typescript/commonjs/icons/images-icon.native.d.ts +3 -0
  385. package/lib/typescript/commonjs/icons/impersonate-icon.d.ts +1 -12
  386. package/lib/typescript/commonjs/icons/impersonate-icon.native.d.ts +4 -0
  387. package/lib/typescript/commonjs/icons/jotai-icon.d.ts +1 -12
  388. package/lib/typescript/commonjs/icons/jotai-icon.native.d.ts +4 -0
  389. package/lib/typescript/commonjs/icons/network-icon.d.ts +1 -10
  390. package/lib/typescript/commonjs/icons/network-icon.native.d.ts +3 -0
  391. package/lib/typescript/commonjs/icons/query-icon.d.ts +1 -10
  392. package/lib/typescript/commonjs/icons/query-icon.native.d.ts +4 -0
  393. package/lib/typescript/commonjs/icons/raster-icon.d.ts +5 -0
  394. package/lib/typescript/commonjs/icons/redux-icon.d.ts +1 -10
  395. package/lib/typescript/commonjs/icons/redux-icon.native.d.ts +4 -0
  396. package/lib/typescript/commonjs/icons/renders-icon.d.ts +1 -12
  397. package/lib/typescript/commonjs/icons/renders-icon.native.d.ts +2 -0
  398. package/lib/typescript/commonjs/icons/riverpod-icon.d.ts +1 -12
  399. package/lib/typescript/commonjs/icons/riverpod-icon.native.d.ts +3 -0
  400. package/lib/typescript/commonjs/icons/routes-icon.d.ts +2 -30
  401. package/lib/typescript/commonjs/icons/routes-icon.native.d.ts +4 -0
  402. package/lib/typescript/commonjs/icons/routes-parts.d.ts +31 -0
  403. package/lib/typescript/commonjs/icons/scenarios-icon.d.ts +1 -12
  404. package/lib/typescript/commonjs/icons/scenarios-icon.native.d.ts +4 -0
  405. package/lib/typescript/commonjs/icons/sentry-icon.d.ts +1 -10
  406. package/lib/typescript/commonjs/icons/sentry-icon.native.d.ts +4 -0
  407. package/lib/typescript/commonjs/icons/settings-icon.d.ts +0 -13
  408. package/lib/typescript/commonjs/icons/settings-icon.native.d.ts +2 -0
  409. package/lib/typescript/commonjs/icons/storage-icon.d.ts +1 -10
  410. package/lib/typescript/commonjs/icons/storage-icon.native.d.ts +3 -0
  411. package/lib/typescript/commonjs/icons/time-machine-icon.d.ts +1 -12
  412. package/lib/typescript/commonjs/icons/time-machine-icon.native.d.ts +4 -0
  413. package/lib/typescript/commonjs/icons/wifi-icon.d.ts +1 -10
  414. package/lib/typescript/commonjs/icons/wifi-icon.native.d.ts +3 -0
  415. package/lib/typescript/commonjs/icons/zustand-icon.d.ts +1 -12
  416. package/lib/typescript/commonjs/icons/zustand-icon.native.d.ts +4 -0
  417. package/lib/typescript/module/FloatingToolsStore.d.ts +2 -0
  418. package/lib/typescript/module/dial.d.ts +6 -0
  419. package/lib/typescript/module/floating.d.ts +8 -0
  420. package/lib/typescript/module/fonts.web.d.ts +3 -0
  421. package/lib/typescript/module/icons/ask-buoy-icon.d.ts +1 -13
  422. package/lib/typescript/module/icons/ask-buoy-icon.native.d.ts +4 -0
  423. package/lib/typescript/module/icons/assets-icon.d.ts +1 -12
  424. package/lib/typescript/module/icons/assets-icon.native.d.ts +3 -0
  425. package/lib/typescript/module/icons/benchmark-icon.d.ts +1 -10
  426. package/lib/typescript/module/icons/benchmark-icon.native.d.ts +3 -0
  427. package/lib/typescript/module/icons/bif-raster-icon.d.ts +4 -0
  428. package/lib/typescript/module/icons/bif-raster-icon.native.d.ts +5 -0
  429. package/lib/typescript/module/icons/camera-icon.d.ts +1 -13
  430. package/lib/typescript/module/icons/camera-icon.native.d.ts +3 -0
  431. package/lib/typescript/module/icons/console-icon.d.ts +1 -12
  432. package/lib/typescript/module/icons/console-icon.native.d.ts +4 -0
  433. package/lib/typescript/module/icons/env-icon.d.ts +1 -10
  434. package/lib/typescript/module/icons/env-icon.native.d.ts +3 -0
  435. package/lib/typescript/module/icons/events-icon.d.ts +1 -10
  436. package/lib/typescript/module/icons/events-icon.native.d.ts +3 -0
  437. package/lib/typescript/module/icons/generated/assets-raster.g.d.ts +3 -0
  438. package/lib/typescript/module/icons/generated/benchmark-raster.g.d.ts +3 -0
  439. package/lib/typescript/module/icons/generated/camera-raster.g.d.ts +3 -0
  440. package/lib/typescript/module/icons/generated/env-raster.g.d.ts +3 -0
  441. package/lib/typescript/module/icons/generated/events-raster.g.d.ts +3 -0
  442. package/lib/typescript/module/icons/generated/highlight-raster.g.d.ts +3 -0
  443. package/lib/typescript/module/icons/generated/highlighter-raster.g.d.ts +3 -0
  444. package/lib/typescript/module/icons/generated/icon-data.g.d.ts +26 -1
  445. package/lib/typescript/module/icons/generated/image-overlay-raster.g.d.ts +3 -0
  446. package/lib/typescript/module/icons/generated/images-raster.g.d.ts +3 -0
  447. package/lib/typescript/module/icons/generated/network-raster.g.d.ts +3 -0
  448. package/lib/typescript/module/icons/generated/raster-icons.g.d.ts +13 -0
  449. package/lib/typescript/module/icons/generated/riverpod-raster.g.d.ts +3 -0
  450. package/lib/typescript/module/icons/generated/routes-raster.g.d.ts +3 -0
  451. package/lib/typescript/module/icons/generated/settings-raster.g.d.ts +3 -0
  452. package/lib/typescript/module/icons/generated/storage-raster.g.d.ts +3 -0
  453. package/lib/typescript/module/icons/generated/wifi-raster.g.d.ts +3 -0
  454. package/lib/typescript/module/icons/highlight-icon.d.ts +1 -10
  455. package/lib/typescript/module/icons/highlight-icon.native.d.ts +3 -0
  456. package/lib/typescript/module/icons/highlighter-icon.d.ts +5 -0
  457. package/lib/typescript/module/icons/highlighter-icon.native.d.ts +5 -0
  458. package/lib/typescript/module/icons/image-overlay-icon.d.ts +1 -12
  459. package/lib/typescript/module/icons/image-overlay-icon.native.d.ts +3 -0
  460. package/lib/typescript/module/icons/images-icon.d.ts +1 -12
  461. package/lib/typescript/module/icons/images-icon.native.d.ts +3 -0
  462. package/lib/typescript/module/icons/impersonate-icon.d.ts +1 -12
  463. package/lib/typescript/module/icons/impersonate-icon.native.d.ts +4 -0
  464. package/lib/typescript/module/icons/jotai-icon.d.ts +1 -12
  465. package/lib/typescript/module/icons/jotai-icon.native.d.ts +4 -0
  466. package/lib/typescript/module/icons/network-icon.d.ts +1 -10
  467. package/lib/typescript/module/icons/network-icon.native.d.ts +3 -0
  468. package/lib/typescript/module/icons/query-icon.d.ts +1 -10
  469. package/lib/typescript/module/icons/query-icon.native.d.ts +4 -0
  470. package/lib/typescript/module/icons/raster-icon.d.ts +5 -0
  471. package/lib/typescript/module/icons/redux-icon.d.ts +1 -10
  472. package/lib/typescript/module/icons/redux-icon.native.d.ts +4 -0
  473. package/lib/typescript/module/icons/renders-icon.d.ts +1 -12
  474. package/lib/typescript/module/icons/renders-icon.native.d.ts +2 -0
  475. package/lib/typescript/module/icons/riverpod-icon.d.ts +1 -12
  476. package/lib/typescript/module/icons/riverpod-icon.native.d.ts +3 -0
  477. package/lib/typescript/module/icons/routes-icon.d.ts +2 -30
  478. package/lib/typescript/module/icons/routes-icon.native.d.ts +4 -0
  479. package/lib/typescript/module/icons/routes-parts.d.ts +31 -0
  480. package/lib/typescript/module/icons/scenarios-icon.d.ts +1 -12
  481. package/lib/typescript/module/icons/scenarios-icon.native.d.ts +4 -0
  482. package/lib/typescript/module/icons/sentry-icon.d.ts +1 -10
  483. package/lib/typescript/module/icons/sentry-icon.native.d.ts +4 -0
  484. package/lib/typescript/module/icons/settings-icon.d.ts +0 -13
  485. package/lib/typescript/module/icons/settings-icon.native.d.ts +2 -0
  486. package/lib/typescript/module/icons/storage-icon.d.ts +1 -10
  487. package/lib/typescript/module/icons/storage-icon.native.d.ts +3 -0
  488. package/lib/typescript/module/icons/time-machine-icon.d.ts +1 -12
  489. package/lib/typescript/module/icons/time-machine-icon.native.d.ts +4 -0
  490. package/lib/typescript/module/icons/wifi-icon.d.ts +1 -10
  491. package/lib/typescript/module/icons/wifi-icon.native.d.ts +3 -0
  492. package/lib/typescript/module/icons/zustand-icon.d.ts +1 -12
  493. package/lib/typescript/module/icons/zustand-icon.native.d.ts +4 -0
  494. package/package.json +23 -3
  495. package/lib/typescript/commonjs/FloatingToolsStore.d.ts.map +0 -1
  496. package/lib/typescript/commonjs/colors.d.ts.map +0 -1
  497. package/lib/typescript/commonjs/constants.d.ts.map +0 -1
  498. package/lib/typescript/commonjs/devToolsState.d.ts.map +0 -1
  499. package/lib/typescript/commonjs/dial.d.ts.map +0 -1
  500. package/lib/typescript/commonjs/dialUsage.d.ts.map +0 -1
  501. package/lib/typescript/commonjs/easing.d.ts.map +0 -1
  502. package/lib/typescript/commonjs/fonts.d.ts.map +0 -1
  503. package/lib/typescript/commonjs/icons/ask-buoy-icon.d.ts.map +0 -1
  504. package/lib/typescript/commonjs/icons/assets-icon.d.ts.map +0 -1
  505. package/lib/typescript/commonjs/icons/benchmark-icon.d.ts.map +0 -1
  506. package/lib/typescript/commonjs/icons/camera-icon.d.ts.map +0 -1
  507. package/lib/typescript/commonjs/icons/console-icon.d.ts.map +0 -1
  508. package/lib/typescript/commonjs/icons/env-icon.d.ts.map +0 -1
  509. package/lib/typescript/commonjs/icons/events-icon.d.ts.map +0 -1
  510. package/lib/typescript/commonjs/icons/generated/glyph-icons.g.d.ts.map +0 -1
  511. package/lib/typescript/commonjs/icons/generated/icon-data.g.d.ts.map +0 -1
  512. package/lib/typescript/commonjs/icons/highlight-icon.d.ts.map +0 -1
  513. package/lib/typescript/commonjs/icons/icon-factories.d.ts.map +0 -1
  514. package/lib/typescript/commonjs/icons/icon-primitives.d.ts.map +0 -1
  515. package/lib/typescript/commonjs/icons/icon-primitives.native.d.ts.map +0 -1
  516. package/lib/typescript/commonjs/icons/icon-renderer.d.ts.map +0 -1
  517. package/lib/typescript/commonjs/icons/iconGlow.d.ts.map +0 -1
  518. package/lib/typescript/commonjs/icons/image-overlay-icon.d.ts.map +0 -1
  519. package/lib/typescript/commonjs/icons/images-icon.d.ts.map +0 -1
  520. package/lib/typescript/commonjs/icons/impersonate-icon.d.ts.map +0 -1
  521. package/lib/typescript/commonjs/icons/jotai-icon.d.ts.map +0 -1
  522. package/lib/typescript/commonjs/icons/network-icon.d.ts.map +0 -1
  523. package/lib/typescript/commonjs/icons/query-icon.d.ts.map +0 -1
  524. package/lib/typescript/commonjs/icons/redux-icon.d.ts.map +0 -1
  525. package/lib/typescript/commonjs/icons/renders-icon.d.ts.map +0 -1
  526. package/lib/typescript/commonjs/icons/riverpod-icon.d.ts.map +0 -1
  527. package/lib/typescript/commonjs/icons/routes-icon.d.ts.map +0 -1
  528. package/lib/typescript/commonjs/icons/scenarios-icon.d.ts.map +0 -1
  529. package/lib/typescript/commonjs/icons/sentry-icon.d.ts.map +0 -1
  530. package/lib/typescript/commonjs/icons/settings-icon.d.ts.map +0 -1
  531. package/lib/typescript/commonjs/icons/storage-icon.d.ts.map +0 -1
  532. package/lib/typescript/commonjs/icons/time-machine-icon.d.ts.map +0 -1
  533. package/lib/typescript/commonjs/icons/wifi-icon.d.ts.map +0 -1
  534. package/lib/typescript/commonjs/icons/zustand-icon.d.ts.map +0 -1
  535. package/lib/typescript/commonjs/index.d.ts.map +0 -1
  536. package/lib/typescript/commonjs/settings.d.ts.map +0 -1
  537. package/lib/typescript/commonjs/types.d.ts.map +0 -1
  538. package/lib/typescript/commonjs/utils.d.ts.map +0 -1
  539. package/lib/typescript/module/FloatingToolsStore.d.ts.map +0 -1
  540. package/lib/typescript/module/colors.d.ts.map +0 -1
  541. package/lib/typescript/module/constants.d.ts.map +0 -1
  542. package/lib/typescript/module/devToolsState.d.ts.map +0 -1
  543. package/lib/typescript/module/dial.d.ts.map +0 -1
  544. package/lib/typescript/module/dialUsage.d.ts.map +0 -1
  545. package/lib/typescript/module/easing.d.ts.map +0 -1
  546. package/lib/typescript/module/fonts.d.ts.map +0 -1
  547. package/lib/typescript/module/icons/ask-buoy-icon.d.ts.map +0 -1
  548. package/lib/typescript/module/icons/assets-icon.d.ts.map +0 -1
  549. package/lib/typescript/module/icons/benchmark-icon.d.ts.map +0 -1
  550. package/lib/typescript/module/icons/camera-icon.d.ts.map +0 -1
  551. package/lib/typescript/module/icons/console-icon.d.ts.map +0 -1
  552. package/lib/typescript/module/icons/env-icon.d.ts.map +0 -1
  553. package/lib/typescript/module/icons/events-icon.d.ts.map +0 -1
  554. package/lib/typescript/module/icons/generated/glyph-icons.g.d.ts.map +0 -1
  555. package/lib/typescript/module/icons/generated/icon-data.g.d.ts.map +0 -1
  556. package/lib/typescript/module/icons/highlight-icon.d.ts.map +0 -1
  557. package/lib/typescript/module/icons/icon-factories.d.ts.map +0 -1
  558. package/lib/typescript/module/icons/icon-primitives.d.ts.map +0 -1
  559. package/lib/typescript/module/icons/icon-primitives.native.d.ts.map +0 -1
  560. package/lib/typescript/module/icons/icon-renderer.d.ts.map +0 -1
  561. package/lib/typescript/module/icons/iconGlow.d.ts.map +0 -1
  562. package/lib/typescript/module/icons/image-overlay-icon.d.ts.map +0 -1
  563. package/lib/typescript/module/icons/images-icon.d.ts.map +0 -1
  564. package/lib/typescript/module/icons/impersonate-icon.d.ts.map +0 -1
  565. package/lib/typescript/module/icons/jotai-icon.d.ts.map +0 -1
  566. package/lib/typescript/module/icons/network-icon.d.ts.map +0 -1
  567. package/lib/typescript/module/icons/query-icon.d.ts.map +0 -1
  568. package/lib/typescript/module/icons/redux-icon.d.ts.map +0 -1
  569. package/lib/typescript/module/icons/renders-icon.d.ts.map +0 -1
  570. package/lib/typescript/module/icons/riverpod-icon.d.ts.map +0 -1
  571. package/lib/typescript/module/icons/routes-icon.d.ts.map +0 -1
  572. package/lib/typescript/module/icons/scenarios-icon.d.ts.map +0 -1
  573. package/lib/typescript/module/icons/sentry-icon.d.ts.map +0 -1
  574. package/lib/typescript/module/icons/settings-icon.d.ts.map +0 -1
  575. package/lib/typescript/module/icons/storage-icon.d.ts.map +0 -1
  576. package/lib/typescript/module/icons/time-machine-icon.d.ts.map +0 -1
  577. package/lib/typescript/module/icons/wifi-icon.d.ts.map +0 -1
  578. package/lib/typescript/module/icons/zustand-icon.d.ts.map +0 -1
  579. package/lib/typescript/module/index.d.ts.map +0 -1
  580. package/lib/typescript/module/settings.d.ts.map +0 -1
  581. package/lib/typescript/module/types.d.ts.map +0 -1
  582. package/lib/typescript/module/utils.d.ts.map +0 -1
@@ -1,130 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.USAGE_MIN_SCORE = exports.USAGE_HALF_LIFE_MS = void 0;
7
- exports.decayScore = decayScore;
8
- exports.pruneUsage = pruneUsage;
9
- exports.rankToolIds = rankToolIds;
10
- exports.recordUsage = recordUsage;
11
- /**
12
- * Dial Usage - Recency-weighted usage tracking for the dial menu.
13
- *
14
- * Pure scoring/ranking logic. No React or platform-specific code.
15
- *
16
- * The dial menu ranks tools by how recently and frequently they are used.
17
- * Each press adds 1 point to a tool's score; that score decays exponentially
18
- * over time (half-life ~3 days) so the ordering reflects "what I'm using most
19
- * lately" rather than all-time totals.
20
- */
21
-
22
- // =============================
23
- // Constants
24
- // =============================
25
-
26
- /**
27
- * Half-life of a usage score, in milliseconds (~3 days).
28
- * After this much time, an untouched tool's score halves.
29
- */
30
- const USAGE_HALF_LIFE_MS = exports.USAGE_HALF_LIFE_MS = 3 * 24 * 60 * 60 * 1000;
31
-
32
- /**
33
- * Scores at or below this value are treated as zero. Entries that decay
34
- * below it can be safely pruned from storage.
35
- */
36
- const USAGE_MIN_SCORE = exports.USAGE_MIN_SCORE = 0.01;
37
-
38
- // =============================
39
- // Types
40
- // =============================
41
-
42
- /**
43
- * A single tool's usage record.
44
- */
45
-
46
- /** Map of tool id to its usage record. */
47
-
48
- // =============================
49
- // Scoring
50
- // =============================
51
-
52
- /**
53
- * Decay a stored score forward to `now`.
54
- *
55
- * @param entry - The usage entry to evaluate
56
- * @param now - Current epoch ms
57
- * @returns The score decayed to `now` (never negative)
58
- */
59
- function decayScore(entry, now) {
60
- if (!entry || entry.score <= 0) return 0;
61
- const elapsed = now - entry.lastUsed;
62
- // Guard against clock skew producing a score boost.
63
- if (elapsed <= 0) return entry.score;
64
- return entry.score * Math.pow(0.5, elapsed / USAGE_HALF_LIFE_MS);
65
- }
66
-
67
- /**
68
- * Record a single press of a tool, returning a new usage map.
69
- *
70
- * The existing score is decayed forward to `now` before adding 1, so a
71
- * burst of presses accumulates while stale scores naturally fade.
72
- *
73
- * @param map - Current usage map
74
- * @param id - Tool id that was pressed
75
- * @param now - Current epoch ms
76
- * @returns A new usage map (input is not mutated)
77
- */
78
- function recordUsage(map, id, now) {
79
- const decayed = decayScore(map[id], now);
80
- return {
81
- ...map,
82
- [id]: {
83
- score: decayed + 1,
84
- lastUsed: now
85
- }
86
- };
87
- }
88
-
89
- /**
90
- * Rank tool ids by decayed usage score, highest first.
91
- *
92
- * The sort is stable: tools with equal scores (including never-used tools,
93
- * which score 0) keep their original order in `orderedIds`. This preserves
94
- * registration order as the tie-breaker.
95
- *
96
- * @param orderedIds - Tool ids in their default/registration order
97
- * @param map - Current usage map
98
- * @param now - Current epoch ms
99
- * @returns A new array of ids sorted by usage
100
- */
101
- function rankToolIds(orderedIds, map, now) {
102
- const scored = orderedIds.map((id, index) => ({
103
- id,
104
- index,
105
- score: decayScore(map[id], now)
106
- }));
107
- scored.sort((a, b) => {
108
- if (b.score !== a.score) return b.score - a.score;
109
- return a.index - b.index;
110
- });
111
- return scored.map(entry => entry.id);
112
- }
113
-
114
- /**
115
- * Drop entries whose decayed score has fallen below `USAGE_MIN_SCORE`,
116
- * keeping the persisted map from growing unbounded.
117
- *
118
- * @param map - Current usage map
119
- * @param now - Current epoch ms
120
- * @returns A new, pruned usage map
121
- */
122
- function pruneUsage(map, now) {
123
- const pruned = {};
124
- for (const [id, entry] of Object.entries(map)) {
125
- if (decayScore(entry, now) > USAGE_MIN_SCORE) {
126
- pruned[id] = entry;
127
- }
128
- }
129
- return pruned;
130
- }
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.USAGE_MIN_SCORE=exports.USAGE_HALF_LIFE_MS=void 0,exports.decayScore=decayScore,exports.pruneUsage=pruneUsage,exports.rankToolIds=rankToolIds,exports.recordUsage=recordUsage;const USAGE_HALF_LIFE_MS=exports.USAGE_HALF_LIFE_MS=2592e5,USAGE_MIN_SCORE=exports.USAGE_MIN_SCORE=.01;function decayScore(e,r){if(!e||e.score<=0)return 0;const o=r-e.lastUsed;return o<=0?e.score:e.score*Math.pow(.5,o/USAGE_HALF_LIFE_MS)}function recordUsage(e,r,o){const s=decayScore(e[r],o);return{...e,[r]:{score:s+1,lastUsed:o}}}function rankToolIds(e,r,o){const s=e.map((e,s)=>({id:e,index:s,score:decayScore(r[e],o)}));return s.sort((e,r)=>r.score!==e.score?r.score-e.score:e.index-r.index),s.map(e=>e.id)}function pruneUsage(e,r){const o={};for(const[s,c]of Object.entries(e))decayScore(c,r)>USAGE_MIN_SCORE&&(o[s]=c);return o}
@@ -1,69 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.easing = void 0;
7
- exports.getEasing = getEasing;
8
- exports.interpolate = interpolate;
9
- exports.interpolatePosition = interpolatePosition;
10
- /**
11
- * Animation easing functions.
12
- * Platform-agnostic - used by both web (RAF) and mobile (Animated).
13
- */
14
-
15
- /**
16
- * Easing functions for animations.
17
- * All functions take progress (0-1) and return eased value (0-1).
18
- */
19
- const easing = exports.easing = {
20
- /**
21
- * Linear - no easing.
22
- */
23
- linear: t => t,
24
- /**
25
- * Ease out cubic - decelerates towards end.
26
- * Used for hide/show animations.
27
- */
28
- easeOutCubic: t => 1 - Math.pow(1 - t, 3),
29
- /**
30
- * Ease in cubic - accelerates from start.
31
- */
32
- easeInCubic: t => t * t * t,
33
- /**
34
- * Ease in-out cubic - smooth acceleration and deceleration.
35
- */
36
- easeInOutCubic: t => t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2,
37
- /**
38
- * Ease out quad - lighter deceleration than cubic.
39
- */
40
- easeOutQuad: t => 1 - (1 - t) * (1 - t),
41
- /**
42
- * Ease out expo - strong deceleration (snappy feel).
43
- */
44
- easeOutExpo: t => t === 1 ? 1 : 1 - Math.pow(2, -10 * t)
45
- };
46
- /**
47
- * Get an easing function by name.
48
- */
49
- function getEasing(name) {
50
- return easing[name];
51
- }
52
-
53
- /**
54
- * Interpolate between two values using an easing function.
55
- */
56
- function interpolate(from, to, progress, easingFn = easing.easeOutCubic) {
57
- const eased = easingFn(Math.max(0, Math.min(1, progress)));
58
- return from + (to - from) * eased;
59
- }
60
-
61
- /**
62
- * Interpolate a position (x, y) using an easing function.
63
- */
64
- function interpolatePosition(from, to, progress, easingFn = easing.easeOutCubic) {
65
- return {
66
- x: interpolate(from.x, to.x, progress, easingFn),
67
- y: interpolate(from.y, to.y, progress, easingFn)
68
- };
69
- }
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.easing=void 0,exports.getEasing=getEasing,exports.interpolate=interpolate,exports.interpolatePosition=interpolatePosition;const easing=exports.easing={linear:e=>e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInCubic:e=>e*e*e,easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeOutQuad:e=>1-(1-e)*(1-e),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e)};function getEasing(e){return easing[e]}function interpolate(e,t,i,n=easing.easeOutCubic){return e+(t-e)*n(Math.max(0,Math.min(1,i)))}function interpolatePosition(e,t,i,n=easing.easeOutCubic){return{x:interpolate(e.x,t.x,i,n),y:interpolate(e.y,t.y,i,n)}}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={FloatingToolsStore:!0};Object.defineProperty(exports,"FloatingToolsStore",{enumerable:!0,get:function(){return _FloatingToolsStore.FloatingToolsStore}});var _FloatingToolsStore=require("./FloatingToolsStore.js"),_constants=require("./constants.js");Object.keys(_constants).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_constants[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _constants[e]}}))});var _types=require("./types.js");Object.keys(_types).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_types[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _types[e]}}))});var _utils=require("./utils.js");Object.keys(_utils).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_utils[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _utils[e]}}))});var _easing=require("./easing.js");Object.keys(_easing).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_easing[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _easing[e]}}))});var _colors=require("./colors.js");Object.keys(_colors).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_colors[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _colors[e]}}))});
@@ -1,31 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.monoFont = void 0;
7
- var _reactNative = require("react-native");
8
- /**
9
- * The monospace family, per platform — THE seam for every `fontFamily` in Buoy.
10
- *
11
- * `"monospace"` is an ANDROID family name. iOS has no family called that, so
12
- * React Native silently falls back to the system font: every code path, header
13
- * name, JSON value and status chip Buoy renders "in monospace" was actually
14
- * proportional on iOS. The cross-framework parity sheet is what surfaced it —
15
- * Flutter resolves `monospace` to a real monospaced face, so its chips came out
16
- * wider and taller than their RN twins and looked like a port bug.
17
- *
18
- * Menlo ships with every iOS version and is the family the ports can name too
19
- * (Flutter `buoyMonoFont`, SwiftUI `Font.custom("Menlo", …)`), which is what
20
- * makes the three frameworks draw the same glyphs.
21
- *
22
- * On web (the desktop dashboard, react-native-web) the generic `monospace`
23
- * resolves to a thin, poorly-hinted browser default, so a curated stack is used
24
- * there instead — the choice `packages/console` had already made locally.
25
- */
26
- const monoFont = exports.monoFont = _reactNative.Platform.select({
27
- ios: "Menlo",
28
- android: "monospace",
29
- web: 'ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace',
30
- default: "monospace"
31
- }) ?? "monospace";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.monoFont=void 0;var _reactNative=require("react-native");const monoFont=exports.monoFont=_reactNative.Platform.select({ios:"Menlo",android:"monospace",web:'ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace',default:"monospace"})??"monospace";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.monoFont=void 0;const monoFont=exports.monoFont='ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace';
@@ -1,3 +1,10 @@
1
+ > **Raster defaults:** 15 shared tool designs plus 10 supplied or separately exported raster families use PNGs across supported platforms.
2
+ > Sources remain in `shared/icons`; the raster manifest is `shared/raster-icon-manifest.json`.
3
+ > Run `pnpm icons` after editing a source. Per-icon modules preserve aliases and fall back to
4
+ > the existing renderer for custom colors/backgrounds or previews above 48 points.
5
+ > Transparent image bleed does not enlarge the layout box. See `ICON_RASTER_CONVERSION_PLAN.md`
6
+ > for platform coverage and remaining validation.
7
+
1
8
  # Icon System API Documentation
2
9
 
3
10
  A declarative, data-driven icon system for creating scalable vector-like icons using pure React components. Works on both **web** and **React Native** without SVG dependencies.
@@ -1,27 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "ASK_BUOY_ICON_COLOR", {
7
- enumerable: true,
8
- get: function () {
9
- return _iconDataG.ASK_BUOY_ICON_COLOR;
10
- }
11
- });
12
- exports.AskBuoyIcon = void 0;
13
- var _iconRenderer = require("./icon-renderer.js");
14
- var _iconDataG = require("./generated/icon-data.g.js");
15
- /**
16
- * AskBuoyIcon - Data-driven icon
17
- *
18
- * A speech bubble with three dots and a small orb above it — a conversation,
19
- * with something thinking behind it.
20
- *
21
- * Defined as pure data in shared/icons/ask-buoy.json (Buoy Icon Format),
22
- * so this is the same artwork the Flutter build renders.
23
- *
24
- * To change: edit that JSON, then run `node scripts/gen-icons.mjs`.
25
- */
26
-
27
- const AskBuoyIcon = exports.AskBuoyIcon = (0, _iconRenderer.createIcon)(_iconDataG.askBuoyIconData);
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ASK_BUOY_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.ASK_BUOY_ICON_COLOR}}),exports.AskBuoyIcon=void 0;var _rasterIcon=require("./raster-icon.js"),_iconDataG=require("./generated/icon-data.g.js");const AskBuoyIcon=exports.AskBuoyIcon=(0,_rasterIcon.createRasterIcon)("askBuoy");
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ASK_BUOY_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.ASK_BUOY_ICON_COLOR}}),exports.AskBuoyIcon=AskBuoyIcon;var _reactNative=require("react-native"),_jsxRuntime=require("react/jsx-runtime"),_iconDataG=require("./generated/icon-data.g.js");const source=require("./assets/askBuoy.png");function AskBuoyIcon({size:e=24,style:t}){return(0,_jsxRuntime.jsx)(_reactNative.Image,{source:source,resizeMode:"contain",fadeDuration:0,accessible:!1,style:[{width:e,height:e},t]})}
@@ -1,26 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "ASSETS_ICON_COLOR", {
7
- enumerable: true,
8
- get: function () {
9
- return _iconDataG.ASSETS_ICON_COLOR;
10
- }
11
- });
12
- exports.AssetsIcon = void 0;
13
- var _iconRenderer = require("./icon-renderer.js");
14
- var _iconDataG = require("./generated/icon-data.g.js");
15
- /**
16
- * AssetsIcon - Data-driven icon
17
- *
18
- * Stacked asset layers inside the tool frame.
19
- *
20
- * Defined as pure data in shared/icons/assets.json (Buoy Icon Format), so this
21
- * is the same artwork the Flutter build renders.
22
- *
23
- * To change: edit that JSON, then run `node scripts/gen-icons.mjs`.
24
- */
25
-
26
- const AssetsIcon = exports.AssetsIcon = (0, _iconRenderer.createIcon)(_iconDataG.assetsIconData);
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ASSETS_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.ASSETS_ICON_COLOR}}),exports.AssetsIcon=void 0;var _bifRasterIcon=require("./bif-raster-icon"),_iconDataG=require("./generated/icon-data.g.js"),_assetsRasterG=_interopRequireDefault(require("./generated/assets-raster.g.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const AssetsIcon=exports.AssetsIcon=(0,_bifRasterIcon.createBifRasterIcon)(_iconDataG.assetsIconData,_assetsRasterG.default,9);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ASSETS_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.ASSETS_ICON_COLOR}}),exports.AssetsIcon=void 0;var _bifRasterIcon=require("./bif-raster-icon"),_iconDataG=require("./generated/icon-data.g.js");const AssetsIcon=exports.AssetsIcon=(0,_bifRasterIcon.createBifRasterIcon)(_iconDataG.assetsIconData,require("./assets/assets.png"),9);
@@ -1,24 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "BENCHMARK_ICON_COLOR", {
7
- enumerable: true,
8
- get: function () {
9
- return _iconDataG.BENCHMARK_ICON_COLOR;
10
- }
11
- });
12
- exports.BenchmarkIcon = void 0;
13
- var _iconRenderer = require("./icon-renderer.js");
14
- var _iconDataG = require("./generated/icon-data.g.js");
15
- /**
16
- * BenchmarkIcon - Data-driven icon
17
- *
18
- * Defined as pure data in shared/icons/benchmark.json (Buoy Icon Format).
19
- * The renderer transforms it to components.
20
- *
21
- * To change: edit that JSON, then run `node scripts/gen-icons.mjs`.
22
- */
23
-
24
- const BenchmarkIcon = exports.BenchmarkIcon = (0, _iconRenderer.createIcon)(_iconDataG.benchmarkIconData);
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BENCHMARK_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.BENCHMARK_ICON_COLOR}}),exports.BenchmarkIcon=void 0;var _bifRasterIcon=require("./bif-raster-icon"),_iconDataG=require("./generated/icon-data.g.js"),_benchmarkRasterG=_interopRequireDefault(require("./generated/benchmark-raster.g.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const BenchmarkIcon=exports.BenchmarkIcon=(0,_bifRasterIcon.createBifRasterIcon)(_iconDataG.benchmarkIconData,_benchmarkRasterG.default,3);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BENCHMARK_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.BENCHMARK_ICON_COLOR}}),exports.BenchmarkIcon=void 0;var _bifRasterIcon=require("./bif-raster-icon"),_iconDataG=require("./generated/icon-data.g.js");const BenchmarkIcon=exports.BenchmarkIcon=(0,_bifRasterIcon.createBifRasterIcon)(_iconDataG.benchmarkIconData,require("./assets/benchmark.png"),3);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createBifRasterIcon=createBifRasterIcon;var _react=require("react"),_iconRenderer=require("./icon-renderer.js");function createBifRasterIcon(e,t,r){const o=(0,_iconRenderer.createIcon)(e);return function(n){const{size:i=24,color:a,bgColor:c,style:s}=n;if(void 0!==a&&a.toLowerCase()!==e.color.toLowerCase()||void 0!==c&&c.toLowerCase()!==e.bgColor.toLowerCase()||i>48)return(0,_react.createElement)(o,n);const l=i*r/24;return(0,_react.createElement)("span",{"aria-hidden":!0,style:{display:"inline-block",position:"relative",width:i,height:i,flexShrink:0,verticalAlign:"middle",...s}},(0,_react.createElement)("img",{src:t,alt:"",draggable:!1,style:{position:"absolute",left:-l,top:-l,width:i+2*l,height:i+2*l,maxWidth:"none",pointerEvents:"none"}}))}}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createBifRasterIcon=createBifRasterIcon;var _reactNative=require("react-native"),_iconRenderer=require("./icon-renderer.js"),_jsxRuntime=require("react/jsx-runtime");function createBifRasterIcon(e,t,r){const o=(0,_iconRenderer.createIcon)(e);return function(i){const{size:s=24,color:c,bgColor:n,style:a}=i;if(void 0!==c&&c.toLowerCase()!==e.color.toLowerCase()||void 0!==n&&n.toLowerCase()!==e.bgColor.toLowerCase()||s>48)return(0,_jsxRuntime.jsx)(o,{...i});const u=s*r/24;return(0,_jsxRuntime.jsx)(_reactNative.View,{accessible:!1,style:[{width:s,height:s},a],children:(0,_jsxRuntime.jsx)(_reactNative.Image,{source:t,resizeMode:"contain",fadeDuration:0,accessible:!1,style:{position:"absolute",left:-u,top:-u,width:s+2*u,height:s+2*u}})})}}
@@ -1,27 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "CAMERA_ICON_COLOR", {
7
- enumerable: true,
8
- get: function () {
9
- return _iconDataG.CAMERA_ICON_COLOR;
10
- }
11
- });
12
- exports.CameraIcon = void 0;
13
- var _iconRenderer = require("./icon-renderer.js");
14
- var _iconDataG = require("./generated/icon-data.g.js");
15
- /**
16
- * CameraIcon - Data-driven icon
17
- *
18
- * A camera body with a viewfinder hump, a lens ring with lit glass, and a
19
- * flash dot.
20
- *
21
- * Defined as pure data in shared/icons/camera.json (Buoy Icon Format), so this
22
- * is the same artwork the Flutter build renders.
23
- *
24
- * To change: edit that JSON, then run `node scripts/gen-icons.mjs`.
25
- */
26
-
27
- const CameraIcon = exports.CameraIcon = (0, _iconRenderer.createIcon)(_iconDataG.cameraIconData);
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"CAMERA_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.CAMERA_ICON_COLOR}}),exports.CameraIcon=void 0;var _bifRasterIcon=require("./bif-raster-icon"),_iconDataG=require("./generated/icon-data.g.js"),_cameraRasterG=_interopRequireDefault(require("./generated/camera-raster.g.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const CameraIcon=exports.CameraIcon=(0,_bifRasterIcon.createBifRasterIcon)(_iconDataG.cameraIconData,_cameraRasterG.default,9);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"CAMERA_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.CAMERA_ICON_COLOR}}),exports.CameraIcon=void 0;var _bifRasterIcon=require("./bif-raster-icon"),_iconDataG=require("./generated/icon-data.g.js");const CameraIcon=exports.CameraIcon=(0,_bifRasterIcon.createBifRasterIcon)(_iconDataG.cameraIconData,require("./assets/camera.png"),9);
@@ -1,26 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "CONSOLE_ICON_COLOR", {
7
- enumerable: true,
8
- get: function () {
9
- return _iconDataG.CONSOLE_ICON_COLOR;
10
- }
11
- });
12
- exports.ConsoleIcon = void 0;
13
- var _iconRenderer = require("./icon-renderer.js");
14
- var _iconDataG = require("./generated/icon-data.g.js");
15
- /**
16
- * ConsoleIcon - Data-driven icon
17
- *
18
- * Terminal frame with a `>_` prompt.
19
- *
20
- * Defined as pure data in shared/icons/console.json (Buoy Icon Format), so this
21
- * is the same artwork the Flutter build renders.
22
- *
23
- * To change: edit that JSON, then run `node scripts/gen-icons.mjs`.
24
- */
25
-
26
- const ConsoleIcon = exports.ConsoleIcon = (0, _iconRenderer.createIcon)(_iconDataG.consoleIconData);
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"CONSOLE_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.CONSOLE_ICON_COLOR}}),exports.ConsoleIcon=void 0;var _rasterIcon=require("./raster-icon.js"),_iconDataG=require("./generated/icon-data.g.js");const ConsoleIcon=exports.ConsoleIcon=(0,_rasterIcon.createRasterIcon)("console");
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"CONSOLE_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.CONSOLE_ICON_COLOR}}),exports.ConsoleIcon=ConsoleIcon;var _reactNative=require("react-native"),_jsxRuntime=require("react/jsx-runtime"),_iconDataG=require("./generated/icon-data.g.js");const source=require("./assets/console.png");function ConsoleIcon({size:e=24,style:t}){return(0,_jsxRuntime.jsx)(_reactNative.Image,{source:source,resizeMode:"contain",fadeDuration:0,accessible:!1,style:[{width:e,height:e},t]})}