@buoy-gg/react-query 1.7.2

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 (311) hide show
  1. package/README.md +389 -0
  2. package/lib/commonjs/index.js +107 -0
  3. package/lib/commonjs/package.json +1 -0
  4. package/lib/commonjs/preset.js +220 -0
  5. package/lib/commonjs/react-query/ReactQueryDevTools.js +335 -0
  6. package/lib/commonjs/react-query/components/DataEditorMode.js +316 -0
  7. package/lib/commonjs/react-query/components/FilterStatusBadge.js +51 -0
  8. package/lib/commonjs/react-query/components/MutationBrowserMode.js +51 -0
  9. package/lib/commonjs/react-query/components/MutationEditorMode.js +257 -0
  10. package/lib/commonjs/react-query/components/QueryBrowserMode.js +82 -0
  11. package/lib/commonjs/react-query/components/QueryDebugInfo.js +107 -0
  12. package/lib/commonjs/react-query/components/QueryFilterViewV3.js +221 -0
  13. package/lib/commonjs/react-query/components/QuerySelector.js +208 -0
  14. package/lib/commonjs/react-query/components/ReactQueryDevToolsModal.js +76 -0
  15. package/lib/commonjs/react-query/components/ReactQuerySection.js +47 -0
  16. package/lib/commonjs/react-query/components/WifiToggle.js +49 -0
  17. package/lib/commonjs/react-query/components/index.js +253 -0
  18. package/lib/commonjs/react-query/components/modals/DataEditorModal.js +70 -0
  19. package/lib/commonjs/react-query/components/modals/MutationBrowserFooter.js +69 -0
  20. package/lib/commonjs/react-query/components/modals/MutationBrowserModal.js +146 -0
  21. package/lib/commonjs/react-query/components/modals/MutationEditorModal.js +58 -0
  22. package/lib/commonjs/react-query/components/modals/QueryBrowserFooter.js +63 -0
  23. package/lib/commonjs/react-query/components/modals/QueryBrowserModal.js +237 -0
  24. package/lib/commonjs/react-query/components/modals/ReactQueryModal.js +83 -0
  25. package/lib/commonjs/react-query/components/modals/ReactQueryModalHeader.js +171 -0
  26. package/lib/commonjs/react-query/components/modals/SwipeIndicator.js +204 -0
  27. package/lib/commonjs/react-query/components/query-browser/ActionButton.js +127 -0
  28. package/lib/commonjs/react-query/components/query-browser/ClearCacheButton.js +53 -0
  29. package/lib/commonjs/react-query/components/query-browser/Explorer.js +985 -0
  30. package/lib/commonjs/react-query/components/query-browser/MutationButton.js +184 -0
  31. package/lib/commonjs/react-query/components/query-browser/MutationDetails.js +122 -0
  32. package/lib/commonjs/react-query/components/query-browser/MutationDetailsChips.js +66 -0
  33. package/lib/commonjs/react-query/components/query-browser/MutationInformation.js +117 -0
  34. package/lib/commonjs/react-query/components/query-browser/MutationStatusCount.js +111 -0
  35. package/lib/commonjs/react-query/components/query-browser/MutationsList.js +212 -0
  36. package/lib/commonjs/react-query/components/query-browser/NetworkToggleButton.js +54 -0
  37. package/lib/commonjs/react-query/components/query-browser/QueryActions.js +138 -0
  38. package/lib/commonjs/react-query/components/query-browser/QueryBrowser.js +146 -0
  39. package/lib/commonjs/react-query/components/query-browser/QueryDetails.js +137 -0
  40. package/lib/commonjs/react-query/components/query-browser/QueryDetailsChip.js +76 -0
  41. package/lib/commonjs/react-query/components/query-browser/QueryInformation.js +94 -0
  42. package/lib/commonjs/react-query/components/query-browser/QueryRow.js +93 -0
  43. package/lib/commonjs/react-query/components/query-browser/QueryStatus.js +125 -0
  44. package/lib/commonjs/react-query/components/query-browser/QueryStatusCount.js +130 -0
  45. package/lib/commonjs/react-query/components/query-browser/StorageStatusCount.js +106 -0
  46. package/lib/commonjs/react-query/components/query-browser/index.js +170 -0
  47. package/lib/commonjs/react-query/components/query-browser/svgs.js +74 -0
  48. package/lib/commonjs/react-query/hooks/index.js +96 -0
  49. package/lib/commonjs/react-query/hooks/useActionButtons.js +59 -0
  50. package/lib/commonjs/react-query/hooks/useAllMutations.js +35 -0
  51. package/lib/commonjs/react-query/hooks/useAllQueries.js +117 -0
  52. package/lib/commonjs/react-query/hooks/useModalManager.js +178 -0
  53. package/lib/commonjs/react-query/hooks/useModalPersistence.js +71 -0
  54. package/lib/commonjs/react-query/hooks/useMutationActionButtons.js +22 -0
  55. package/lib/commonjs/react-query/hooks/useQueryStatusCounts.js +110 -0
  56. package/lib/commonjs/react-query/hooks/useReactQueryState.js +24 -0
  57. package/lib/commonjs/react-query/hooks/useSelectedMutation.js +30 -0
  58. package/lib/commonjs/react-query/hooks/useSelectedQuery.js +96 -0
  59. package/lib/commonjs/react-query/hooks/useStorageQueryCounts.js +28 -0
  60. package/lib/commonjs/react-query/hooks/useWifiState.js +67 -0
  61. package/lib/commonjs/react-query/index.js +16 -0
  62. package/lib/commonjs/react-query/types/index.js +16 -0
  63. package/lib/commonjs/react-query/types/types.js +14 -0
  64. package/lib/commonjs/react-query/utils/actions/deleteItem.js +23 -0
  65. package/lib/commonjs/react-query/utils/actions/invalidate.js +13 -0
  66. package/lib/commonjs/react-query/utils/actions/refetch.js +15 -0
  67. package/lib/commonjs/react-query/utils/actions/remove.js +12 -0
  68. package/lib/commonjs/react-query/utils/actions/reset.js +15 -0
  69. package/lib/commonjs/react-query/utils/actions/triggerError.js +30 -0
  70. package/lib/commonjs/react-query/utils/actions/triggerLoading.js +51 -0
  71. package/lib/commonjs/react-query/utils/deleteNestedDataByPath.js +56 -0
  72. package/lib/commonjs/react-query/utils/formatRelativeTime.js +29 -0
  73. package/lib/commonjs/react-query/utils/getQueryStatusColor.js +16 -0
  74. package/lib/commonjs/react-query/utils/getQueryStatusLabel.js +17 -0
  75. package/lib/commonjs/react-query/utils/getStorageQueryCounts.js +35 -0
  76. package/lib/commonjs/react-query/utils/index.js +170 -0
  77. package/lib/commonjs/react-query/utils/modalStorageOperations.js +127 -0
  78. package/lib/commonjs/react-query/utils/storageQueryUtils.js +149 -0
  79. package/lib/commonjs/react-query/utils/updateNestedDataByPath.js +61 -0
  80. package/lib/module/index.js +19 -0
  81. package/lib/module/preset.js +216 -0
  82. package/lib/module/react-query/ReactQueryDevTools.js +68 -0
  83. package/lib/module/react-query/components/DataEditorMode.js +310 -0
  84. package/lib/module/react-query/components/FilterStatusBadge.js +47 -0
  85. package/lib/module/react-query/components/MutationBrowserMode.js +46 -0
  86. package/lib/module/react-query/components/MutationEditorMode.js +252 -0
  87. package/lib/module/react-query/components/QueryBrowserMode.js +77 -0
  88. package/lib/module/react-query/components/QueryDebugInfo.js +104 -0
  89. package/lib/module/react-query/components/QueryFilterViewV3.js +218 -0
  90. package/lib/module/react-query/components/QuerySelector.js +204 -0
  91. package/lib/module/react-query/components/ReactQueryDevToolsModal.js +72 -0
  92. package/lib/module/react-query/components/ReactQuerySection.js +43 -0
  93. package/lib/module/react-query/components/WifiToggle.js +46 -0
  94. package/lib/module/react-query/components/index.js +29 -0
  95. package/lib/module/react-query/components/modals/DataEditorModal.js +66 -0
  96. package/lib/module/react-query/components/modals/MutationBrowserFooter.js +64 -0
  97. package/lib/module/react-query/components/modals/MutationBrowserModal.js +143 -0
  98. package/lib/module/react-query/components/modals/MutationEditorModal.js +54 -0
  99. package/lib/module/react-query/components/modals/QueryBrowserFooter.js +58 -0
  100. package/lib/module/react-query/components/modals/QueryBrowserModal.js +233 -0
  101. package/lib/module/react-query/components/modals/ReactQueryModal.js +79 -0
  102. package/lib/module/react-query/components/modals/ReactQueryModalHeader.js +167 -0
  103. package/lib/module/react-query/components/modals/SwipeIndicator.js +200 -0
  104. package/lib/module/react-query/components/query-browser/ActionButton.js +124 -0
  105. package/lib/module/react-query/components/query-browser/ClearCacheButton.js +49 -0
  106. package/lib/module/react-query/components/query-browser/Explorer.js +983 -0
  107. package/lib/module/react-query/components/query-browser/MutationButton.js +180 -0
  108. package/lib/module/react-query/components/query-browser/MutationDetails.js +117 -0
  109. package/lib/module/react-query/components/query-browser/MutationDetailsChips.js +62 -0
  110. package/lib/module/react-query/components/query-browser/MutationInformation.js +112 -0
  111. package/lib/module/react-query/components/query-browser/MutationStatusCount.js +106 -0
  112. package/lib/module/react-query/components/query-browser/MutationsList.js +207 -0
  113. package/lib/module/react-query/components/query-browser/NetworkToggleButton.js +50 -0
  114. package/lib/module/react-query/components/query-browser/QueryActions.js +133 -0
  115. package/lib/module/react-query/components/query-browser/QueryBrowser.js +141 -0
  116. package/lib/module/react-query/components/query-browser/QueryDetails.js +132 -0
  117. package/lib/module/react-query/components/query-browser/QueryDetailsChip.js +72 -0
  118. package/lib/module/react-query/components/query-browser/QueryInformation.js +89 -0
  119. package/lib/module/react-query/components/query-browser/QueryRow.js +89 -0
  120. package/lib/module/react-query/components/query-browser/QueryStatus.js +121 -0
  121. package/lib/module/react-query/components/query-browser/QueryStatusCount.js +125 -0
  122. package/lib/module/react-query/components/query-browser/StorageStatusCount.js +101 -0
  123. package/lib/module/react-query/components/query-browser/index.js +22 -0
  124. package/lib/module/react-query/components/query-browser/svgs.js +66 -0
  125. package/lib/module/react-query/hooks/index.js +23 -0
  126. package/lib/module/react-query/hooks/useActionButtons.js +54 -0
  127. package/lib/module/react-query/hooks/useAllMutations.js +32 -0
  128. package/lib/module/react-query/hooks/useAllQueries.js +114 -0
  129. package/lib/module/react-query/hooks/useModalManager.js +175 -0
  130. package/lib/module/react-query/hooks/useModalPersistence.js +67 -0
  131. package/lib/module/react-query/hooks/useMutationActionButtons.js +18 -0
  132. package/lib/module/react-query/hooks/useQueryStatusCounts.js +108 -0
  133. package/lib/module/react-query/hooks/useReactQueryState.js +20 -0
  134. package/lib/module/react-query/hooks/useSelectedMutation.js +27 -0
  135. package/lib/module/react-query/hooks/useSelectedQuery.js +92 -0
  136. package/lib/module/react-query/hooks/useStorageQueryCounts.js +25 -0
  137. package/lib/module/react-query/hooks/useWifiState.js +64 -0
  138. package/lib/module/react-query/index.js +3 -0
  139. package/lib/module/react-query/types/index.js +3 -0
  140. package/lib/module/react-query/types/types.js +10 -0
  141. package/lib/module/react-query/utils/actions/deleteItem.js +19 -0
  142. package/lib/module/react-query/utils/actions/invalidate.js +9 -0
  143. package/lib/module/react-query/utils/actions/refetch.js +11 -0
  144. package/lib/module/react-query/utils/actions/remove.js +8 -0
  145. package/lib/module/react-query/utils/actions/reset.js +11 -0
  146. package/lib/module/react-query/utils/actions/triggerError.js +26 -0
  147. package/lib/module/react-query/utils/actions/triggerLoading.js +47 -0
  148. package/lib/module/react-query/utils/deleteNestedDataByPath.js +51 -0
  149. package/lib/module/react-query/utils/formatRelativeTime.js +25 -0
  150. package/lib/module/react-query/utils/getQueryStatusColor.js +12 -0
  151. package/lib/module/react-query/utils/getQueryStatusLabel.js +13 -0
  152. package/lib/module/react-query/utils/getStorageQueryCounts.js +31 -0
  153. package/lib/module/react-query/utils/index.js +27 -0
  154. package/lib/module/react-query/utils/modalStorageOperations.js +117 -0
  155. package/lib/module/react-query/utils/storageQueryUtils.js +140 -0
  156. package/lib/module/react-query/utils/updateNestedDataByPath.js +56 -0
  157. package/lib/typescript/index.d.ts +7 -0
  158. package/lib/typescript/index.d.ts.map +1 -0
  159. package/lib/typescript/preset.d.ts +160 -0
  160. package/lib/typescript/preset.d.ts.map +1 -0
  161. package/lib/typescript/react-query/ReactQueryDevTools.d.ts +45 -0
  162. package/lib/typescript/react-query/ReactQueryDevTools.d.ts.map +1 -0
  163. package/lib/typescript/react-query/components/DataEditorMode.d.ts +25 -0
  164. package/lib/typescript/react-query/components/DataEditorMode.d.ts.map +1 -0
  165. package/lib/typescript/react-query/components/FilterStatusBadge.d.ts +12 -0
  166. package/lib/typescript/react-query/components/FilterStatusBadge.d.ts.map +1 -0
  167. package/lib/typescript/react-query/components/MutationBrowserMode.d.ts +14 -0
  168. package/lib/typescript/react-query/components/MutationBrowserMode.d.ts.map +1 -0
  169. package/lib/typescript/react-query/components/MutationEditorMode.d.ts +12 -0
  170. package/lib/typescript/react-query/components/MutationEditorMode.d.ts.map +1 -0
  171. package/lib/typescript/react-query/components/QueryBrowserMode.d.ts +14 -0
  172. package/lib/typescript/react-query/components/QueryBrowserMode.d.ts.map +1 -0
  173. package/lib/typescript/react-query/components/QueryDebugInfo.d.ts +6 -0
  174. package/lib/typescript/react-query/components/QueryDebugInfo.d.ts.map +1 -0
  175. package/lib/typescript/react-query/components/QueryFilterViewV3.d.ts +17 -0
  176. package/lib/typescript/react-query/components/QueryFilterViewV3.d.ts.map +1 -0
  177. package/lib/typescript/react-query/components/QuerySelector.d.ts +15 -0
  178. package/lib/typescript/react-query/components/QuerySelector.d.ts.map +1 -0
  179. package/lib/typescript/react-query/components/ReactQueryDevToolsModal.d.ts +19 -0
  180. package/lib/typescript/react-query/components/ReactQueryDevToolsModal.d.ts.map +1 -0
  181. package/lib/typescript/react-query/components/ReactQuerySection.d.ts +11 -0
  182. package/lib/typescript/react-query/components/ReactQuerySection.d.ts.map +1 -0
  183. package/lib/typescript/react-query/components/WifiToggle.d.ts +8 -0
  184. package/lib/typescript/react-query/components/WifiToggle.d.ts.map +1 -0
  185. package/lib/typescript/react-query/components/index.d.ts +21 -0
  186. package/lib/typescript/react-query/components/index.d.ts.map +1 -0
  187. package/lib/typescript/react-query/components/modals/DataEditorModal.d.ts +17 -0
  188. package/lib/typescript/react-query/components/modals/DataEditorModal.d.ts.map +1 -0
  189. package/lib/typescript/react-query/components/modals/MutationBrowserFooter.d.ts +17 -0
  190. package/lib/typescript/react-query/components/modals/MutationBrowserFooter.d.ts.map +1 -0
  191. package/lib/typescript/react-query/components/modals/MutationBrowserModal.d.ts +21 -0
  192. package/lib/typescript/react-query/components/modals/MutationBrowserModal.d.ts.map +1 -0
  193. package/lib/typescript/react-query/components/modals/MutationEditorModal.d.ts +17 -0
  194. package/lib/typescript/react-query/components/modals/MutationEditorModal.d.ts.map +1 -0
  195. package/lib/typescript/react-query/components/modals/QueryBrowserFooter.d.ts +16 -0
  196. package/lib/typescript/react-query/components/modals/QueryBrowserFooter.d.ts.map +1 -0
  197. package/lib/typescript/react-query/components/modals/QueryBrowserModal.d.ts +21 -0
  198. package/lib/typescript/react-query/components/modals/QueryBrowserModal.d.ts.map +1 -0
  199. package/lib/typescript/react-query/components/modals/ReactQueryModal.d.ts +29 -0
  200. package/lib/typescript/react-query/components/modals/ReactQueryModal.d.ts.map +1 -0
  201. package/lib/typescript/react-query/components/modals/ReactQueryModalHeader.d.ts +19 -0
  202. package/lib/typescript/react-query/components/modals/ReactQueryModalHeader.d.ts.map +1 -0
  203. package/lib/typescript/react-query/components/modals/SwipeIndicator.d.ts +14 -0
  204. package/lib/typescript/react-query/components/modals/SwipeIndicator.d.ts.map +1 -0
  205. package/lib/typescript/react-query/components/query-browser/ActionButton.d.ts +49 -0
  206. package/lib/typescript/react-query/components/query-browser/ActionButton.d.ts.map +1 -0
  207. package/lib/typescript/react-query/components/query-browser/ClearCacheButton.d.ts +12 -0
  208. package/lib/typescript/react-query/components/query-browser/ClearCacheButton.d.ts.map +1 -0
  209. package/lib/typescript/react-query/components/query-browser/Explorer.d.ts +19 -0
  210. package/lib/typescript/react-query/components/query-browser/Explorer.d.ts.map +1 -0
  211. package/lib/typescript/react-query/components/query-browser/MutationButton.d.ts +12 -0
  212. package/lib/typescript/react-query/components/query-browser/MutationButton.d.ts.map +1 -0
  213. package/lib/typescript/react-query/components/query-browser/MutationDetails.d.ts +10 -0
  214. package/lib/typescript/react-query/components/query-browser/MutationDetails.d.ts.map +1 -0
  215. package/lib/typescript/react-query/components/query-browser/MutationDetailsChips.d.ts +10 -0
  216. package/lib/typescript/react-query/components/query-browser/MutationDetailsChips.d.ts.map +1 -0
  217. package/lib/typescript/react-query/components/query-browser/MutationInformation.d.ts +8 -0
  218. package/lib/typescript/react-query/components/query-browser/MutationInformation.d.ts.map +1 -0
  219. package/lib/typescript/react-query/components/query-browser/MutationStatusCount.d.ts +12 -0
  220. package/lib/typescript/react-query/components/query-browser/MutationStatusCount.d.ts.map +1 -0
  221. package/lib/typescript/react-query/components/query-browser/MutationsList.d.ts +17 -0
  222. package/lib/typescript/react-query/components/query-browser/MutationsList.d.ts.map +1 -0
  223. package/lib/typescript/react-query/components/query-browser/NetworkToggleButton.d.ts +11 -0
  224. package/lib/typescript/react-query/components/query-browser/NetworkToggleButton.d.ts.map +1 -0
  225. package/lib/typescript/react-query/components/query-browser/QueryActions.d.ts +12 -0
  226. package/lib/typescript/react-query/components/query-browser/QueryActions.d.ts.map +1 -0
  227. package/lib/typescript/react-query/components/query-browser/QueryBrowser.d.ts +19 -0
  228. package/lib/typescript/react-query/components/query-browser/QueryBrowser.d.ts.map +1 -0
  229. package/lib/typescript/react-query/components/query-browser/QueryDetails.d.ts +10 -0
  230. package/lib/typescript/react-query/components/query-browser/QueryDetails.d.ts.map +1 -0
  231. package/lib/typescript/react-query/components/query-browser/QueryDetailsChip.d.ts +10 -0
  232. package/lib/typescript/react-query/components/query-browser/QueryDetailsChip.d.ts.map +1 -0
  233. package/lib/typescript/react-query/components/query-browser/QueryInformation.d.ts +12 -0
  234. package/lib/typescript/react-query/components/query-browser/QueryInformation.d.ts.map +1 -0
  235. package/lib/typescript/react-query/components/query-browser/QueryRow.d.ts +12 -0
  236. package/lib/typescript/react-query/components/query-browser/QueryRow.d.ts.map +1 -0
  237. package/lib/typescript/react-query/components/query-browser/QueryStatus.d.ts +17 -0
  238. package/lib/typescript/react-query/components/query-browser/QueryStatus.d.ts.map +1 -0
  239. package/lib/typescript/react-query/components/query-browser/QueryStatusCount.d.ts +11 -0
  240. package/lib/typescript/react-query/components/query-browser/QueryStatusCount.d.ts.map +1 -0
  241. package/lib/typescript/react-query/components/query-browser/StorageStatusCount.d.ts +18 -0
  242. package/lib/typescript/react-query/components/query-browser/StorageStatusCount.d.ts.map +1 -0
  243. package/lib/typescript/react-query/components/query-browser/index.d.ts +21 -0
  244. package/lib/typescript/react-query/components/query-browser/index.d.ts.map +1 -0
  245. package/lib/typescript/react-query/components/query-browser/svgs.d.ts +17 -0
  246. package/lib/typescript/react-query/components/query-browser/svgs.d.ts.map +1 -0
  247. package/lib/typescript/react-query/hooks/index.d.ts +13 -0
  248. package/lib/typescript/react-query/hooks/index.d.ts.map +1 -0
  249. package/lib/typescript/react-query/hooks/useActionButtons.d.ts +21 -0
  250. package/lib/typescript/react-query/hooks/useActionButtons.d.ts.map +1 -0
  251. package/lib/typescript/react-query/hooks/useAllMutations.d.ts +10 -0
  252. package/lib/typescript/react-query/hooks/useAllMutations.d.ts.map +1 -0
  253. package/lib/typescript/react-query/hooks/useAllQueries.d.ts +12 -0
  254. package/lib/typescript/react-query/hooks/useAllQueries.d.ts.map +1 -0
  255. package/lib/typescript/react-query/hooks/useModalManager.d.ts +39 -0
  256. package/lib/typescript/react-query/hooks/useModalManager.d.ts.map +1 -0
  257. package/lib/typescript/react-query/hooks/useModalPersistence.d.ts +29 -0
  258. package/lib/typescript/react-query/hooks/useModalPersistence.d.ts.map +1 -0
  259. package/lib/typescript/react-query/hooks/useMutationActionButtons.d.ts +15 -0
  260. package/lib/typescript/react-query/hooks/useMutationActionButtons.d.ts.map +1 -0
  261. package/lib/typescript/react-query/hooks/useQueryStatusCounts.d.ts +25 -0
  262. package/lib/typescript/react-query/hooks/useQueryStatusCounts.d.ts.map +1 -0
  263. package/lib/typescript/react-query/hooks/useReactQueryState.d.ts +9 -0
  264. package/lib/typescript/react-query/hooks/useReactQueryState.d.ts.map +1 -0
  265. package/lib/typescript/react-query/hooks/useSelectedMutation.d.ts +7 -0
  266. package/lib/typescript/react-query/hooks/useSelectedMutation.d.ts.map +1 -0
  267. package/lib/typescript/react-query/hooks/useSelectedQuery.d.ts +25 -0
  268. package/lib/typescript/react-query/hooks/useSelectedQuery.d.ts.map +1 -0
  269. package/lib/typescript/react-query/hooks/useStorageQueryCounts.d.ts +10 -0
  270. package/lib/typescript/react-query/hooks/useStorageQueryCounts.d.ts.map +1 -0
  271. package/lib/typescript/react-query/hooks/useWifiState.d.ts +9 -0
  272. package/lib/typescript/react-query/hooks/useWifiState.d.ts.map +1 -0
  273. package/lib/typescript/react-query/index.d.ts +2 -0
  274. package/lib/typescript/react-query/index.d.ts.map +1 -0
  275. package/lib/typescript/react-query/types/index.d.ts +2 -0
  276. package/lib/typescript/react-query/types/index.d.ts.map +1 -0
  277. package/lib/typescript/react-query/types/types.d.ts +10 -0
  278. package/lib/typescript/react-query/types/types.d.ts.map +1 -0
  279. package/lib/typescript/react-query/utils/actions/deleteItem.d.ts +9 -0
  280. package/lib/typescript/react-query/utils/actions/deleteItem.d.ts.map +1 -0
  281. package/lib/typescript/react-query/utils/actions/invalidate.d.ts +8 -0
  282. package/lib/typescript/react-query/utils/actions/invalidate.d.ts.map +1 -0
  283. package/lib/typescript/react-query/utils/actions/refetch.d.ts +7 -0
  284. package/lib/typescript/react-query/utils/actions/refetch.d.ts.map +1 -0
  285. package/lib/typescript/react-query/utils/actions/remove.d.ts +8 -0
  286. package/lib/typescript/react-query/utils/actions/remove.d.ts.map +1 -0
  287. package/lib/typescript/react-query/utils/actions/reset.d.ts +8 -0
  288. package/lib/typescript/react-query/utils/actions/reset.d.ts.map +1 -0
  289. package/lib/typescript/react-query/utils/actions/triggerError.d.ts +8 -0
  290. package/lib/typescript/react-query/utils/actions/triggerError.d.ts.map +1 -0
  291. package/lib/typescript/react-query/utils/actions/triggerLoading.d.ts +7 -0
  292. package/lib/typescript/react-query/utils/actions/triggerLoading.d.ts.map +1 -0
  293. package/lib/typescript/react-query/utils/deleteNestedDataByPath.d.ts +9 -0
  294. package/lib/typescript/react-query/utils/deleteNestedDataByPath.d.ts.map +1 -0
  295. package/lib/typescript/react-query/utils/formatRelativeTime.d.ts +7 -0
  296. package/lib/typescript/react-query/utils/formatRelativeTime.d.ts.map +1 -0
  297. package/lib/typescript/react-query/utils/getQueryStatusColor.d.ts +10 -0
  298. package/lib/typescript/react-query/utils/getQueryStatusColor.d.ts.map +1 -0
  299. package/lib/typescript/react-query/utils/getQueryStatusLabel.d.ts +9 -0
  300. package/lib/typescript/react-query/utils/getQueryStatusLabel.d.ts.map +1 -0
  301. package/lib/typescript/react-query/utils/getStorageQueryCounts.d.ts +13 -0
  302. package/lib/typescript/react-query/utils/getStorageQueryCounts.d.ts.map +1 -0
  303. package/lib/typescript/react-query/utils/index.d.ts +17 -0
  304. package/lib/typescript/react-query/utils/index.d.ts.map +1 -0
  305. package/lib/typescript/react-query/utils/modalStorageOperations.d.ts +55 -0
  306. package/lib/typescript/react-query/utils/modalStorageOperations.d.ts.map +1 -0
  307. package/lib/typescript/react-query/utils/storageQueryUtils.d.ts +69 -0
  308. package/lib/typescript/react-query/utils/storageQueryUtils.d.ts.map +1 -0
  309. package/lib/typescript/react-query/utils/updateNestedDataByPath.d.ts +10 -0
  310. package/lib/typescript/react-query/utils/updateNestedDataByPath.d.ts.map +1 -0
  311. package/package.json +68 -0
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+
3
+ import { getQueryStatusLabel } from "../../utils/getQueryStatusLabel";
4
+ import { Text, View, StyleSheet } from "react-native";
5
+ import { buoyColors } from "@buoy-gg/shared-ui";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const backgroundColors = {
8
+ fresh: buoyColors.success + "15",
9
+ stale: buoyColors.warning + "15",
10
+ fetching: buoyColors.primary + "15",
11
+ paused: buoyColors.textMuted + "1A",
12
+ noObserver: buoyColors.textMuted + "1A",
13
+ error: buoyColors.error + "15",
14
+ inactive: buoyColors.textMuted + "1A"
15
+ };
16
+ const borderColors = {
17
+ fresh: buoyColors.success + "33",
18
+ stale: buoyColors.warning + "33",
19
+ fetching: buoyColors.primary + "33",
20
+ paused: buoyColors.textMuted + "33",
21
+ noObserver: buoyColors.textMuted + "33",
22
+ error: buoyColors.error + "33",
23
+ inactive: buoyColors.textMuted + "33"
24
+ };
25
+ const textColors = {
26
+ fresh: buoyColors.success,
27
+ stale: buoyColors.warning,
28
+ fetching: buoyColors.primary,
29
+ paused: buoyColors.textMuted,
30
+ noObserver: buoyColors.textMuted,
31
+ error: buoyColors.error,
32
+ inactive: buoyColors.textMuted
33
+ };
34
+ /**
35
+ * Chip component used to display small query metadata values (status, observers, etc.).
36
+ */
37
+ export default function QueryDetailsChip({
38
+ query
39
+ }) {
40
+ const status = getQueryStatusLabel(query);
41
+ const backgroundColor = backgroundColors[status];
42
+ const borderColor = borderColors[status];
43
+ const textColor = textColors[status];
44
+ return /*#__PURE__*/_jsx(View, {
45
+ style: [styles.container, {
46
+ backgroundColor,
47
+ borderColor
48
+ }],
49
+ children: /*#__PURE__*/_jsx(Text, {
50
+ style: [styles.text, {
51
+ color: textColor
52
+ }],
53
+ children: status
54
+ })
55
+ });
56
+ }
57
+ const styles = StyleSheet.create({
58
+ container: {
59
+ paddingHorizontal: 8,
60
+ paddingVertical: 4,
61
+ borderWidth: 1,
62
+ borderRadius: 6,
63
+ alignSelf: "flex-start"
64
+ },
65
+ text: {
66
+ fontSize: 11,
67
+ fontWeight: "600",
68
+ textTransform: "uppercase",
69
+ letterSpacing: 0.5,
70
+ fontFamily: "monospace"
71
+ }
72
+ });
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+
3
+ import QueryDetails from "./QueryDetails";
4
+ import QueryActions from "./QueryActions";
5
+ import DataExplorer from "./Explorer";
6
+ import { View, Text, ScrollView, StyleSheet } from "react-native";
7
+ import { buoyColors } from "@buoy-gg/shared-ui";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ /**
10
+ * Stacked detail view combining metadata, actions, and explorers for the selected query.
11
+ */
12
+ export default function QueryInformation({
13
+ selectedQuery,
14
+ setSelectedQuery
15
+ }) {
16
+ return /*#__PURE__*/_jsxs(ScrollView, {
17
+ "sentry-label": "ignore devtools query info scroll",
18
+ style: styles.flexOne,
19
+ contentContainerStyle: styles.scrollContent,
20
+ children: [/*#__PURE__*/_jsx(View, {
21
+ style: styles.section,
22
+ children: /*#__PURE__*/_jsx(QueryDetails, {
23
+ query: selectedQuery
24
+ })
25
+ }), /*#__PURE__*/_jsx(View, {
26
+ style: styles.section,
27
+ children: /*#__PURE__*/_jsx(QueryActions, {
28
+ query: selectedQuery,
29
+ setSelectedQuery: setSelectedQuery
30
+ })
31
+ }), /*#__PURE__*/_jsxs(View, {
32
+ style: styles.section,
33
+ children: [/*#__PURE__*/_jsx(Text, {
34
+ style: styles.headerText,
35
+ children: "Data Explorer"
36
+ }), /*#__PURE__*/_jsx(View, {
37
+ style: styles.contentView,
38
+ children: /*#__PURE__*/_jsx(DataExplorer, {
39
+ editable: true,
40
+ label: "Data",
41
+ value: selectedQuery?.state.data,
42
+ defaultExpanded: ["Data"],
43
+ activeQuery: selectedQuery
44
+ })
45
+ })]
46
+ }), /*#__PURE__*/_jsxs(View, {
47
+ style: styles.section,
48
+ children: [/*#__PURE__*/_jsx(Text, {
49
+ style: styles.headerText,
50
+ children: "Query Explorer"
51
+ }), /*#__PURE__*/_jsx(View, {
52
+ style: styles.contentView,
53
+ children: /*#__PURE__*/_jsx(DataExplorer, {
54
+ label: "Query",
55
+ value: selectedQuery,
56
+ defaultExpanded: ["Query", "queryKey"],
57
+ activeQuery: selectedQuery
58
+ })
59
+ })]
60
+ })]
61
+ });
62
+ }
63
+ const styles = StyleSheet.create({
64
+ flexOne: {
65
+ flex: 1,
66
+ backgroundColor: buoyColors.base
67
+ },
68
+ scrollContent: {
69
+ paddingBottom: 16,
70
+ paddingHorizontal: 8
71
+ },
72
+ section: {
73
+ marginBottom: 16
74
+ },
75
+ headerText: {
76
+ fontSize: 16,
77
+ fontWeight: "600",
78
+ color: buoyColors.text,
79
+ marginBottom: 8,
80
+ textAlign: "left"
81
+ },
82
+ contentView: {
83
+ backgroundColor: buoyColors.card,
84
+ borderRadius: 12,
85
+ borderWidth: 1,
86
+ borderColor: buoyColors.border,
87
+ padding: 16
88
+ }
89
+ });
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+
3
+ import { getQueryStatusLabel } from "../../utils/getQueryStatusLabel";
4
+ import { formatRelativeTime } from "../../utils/formatRelativeTime";
5
+ import { CompactRow, buoyColors } from "@buoy-gg/shared-ui";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const getQueryText = query => {
8
+ if (!query?.queryKey) return "Unknown Query";
9
+ const keys = Array.isArray(query.queryKey) ? query.queryKey : [query.queryKey];
10
+ return keys.filter(k => k != null).map(k => String(k)).join(" › ") || "Unknown Query";
11
+ };
12
+ /**
13
+ * Single row representation of a query for the list view, showing status and observer count.
14
+ */
15
+ const QueryRow = ({
16
+ query,
17
+ isSelected,
18
+ onSelect
19
+ }) => {
20
+ // Buoy theme status color mapping
21
+ const getStatusHexColor = status => {
22
+ switch (status) {
23
+ case "disabled":
24
+ return buoyColors.textMuted + "80";
25
+ // More muted for disabled
26
+ case "fresh":
27
+ return buoyColors.success;
28
+ case "stale":
29
+ return buoyColors.warning;
30
+ case "inactive":
31
+ return buoyColors.textMuted;
32
+ case "fetching":
33
+ return buoyColors.primary;
34
+ // teal instead of blue
35
+ case "paused":
36
+ return buoyColors.textMuted;
37
+ // muted instead of purple
38
+ default:
39
+ return buoyColors.textSecondary;
40
+ }
41
+ };
42
+ const status = getQueryStatusLabel(query);
43
+ const observerCount = query.getObserversCount();
44
+ const isDisabled = query.isDisabled();
45
+ const queryHash = getQueryText(query);
46
+
47
+ // Get last updated time - try multiple timestamp fields
48
+ const getTimestamp = () => {
49
+ // Special handling for disabled queries
50
+ if (isDisabled) {
51
+ return "Disabled";
52
+ }
53
+
54
+ // Primary: dataUpdatedAt (when data was last fetched/updated)
55
+ if (query.state.dataUpdatedAt && query.state.dataUpdatedAt > 0) {
56
+ return formatRelativeTime(query.state.dataUpdatedAt);
57
+ }
58
+
59
+ // Fallback: Check other potential timestamp fields
60
+ // @ts-ignore - exploring state fields for debugging
61
+ const stateAny = query.state;
62
+
63
+ // Try fetchedAt or other common timestamp fields
64
+ if (stateAny.fetchedAt && stateAny.fetchedAt > 0) {
65
+ return formatRelativeTime(stateAny.fetchedAt);
66
+ }
67
+
68
+ // For queries that haven't fetched yet (but aren't disabled)
69
+ if (query.state.dataUpdatedAt === 0) {
70
+ return "Not fetched";
71
+ }
72
+
73
+ // Debug fallback - show what we have
74
+ return `N/A (${query.state.dataUpdatedAt || 0})`;
75
+ };
76
+ const lastUpdated = getTimestamp();
77
+ return /*#__PURE__*/_jsx(CompactRow, {
78
+ statusDotColor: getStatusHexColor(status),
79
+ statusLabel: status.charAt(0).toUpperCase() + status.slice(1),
80
+ statusSublabel: `${observerCount} observer${observerCount !== 1 ? "s" : ""}`,
81
+ primaryText: queryHash,
82
+ bottomRightText: lastUpdated,
83
+ badgeText: observerCount,
84
+ badgeColor: getStatusHexColor(status),
85
+ isSelected: isSelected,
86
+ onPress: () => onSelect(query)
87
+ });
88
+ };
89
+ export default QueryRow;
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+
3
+ import { View, Text, TouchableOpacity, StyleSheet } from "react-native";
4
+ import { buoyColors } from "@buoy-gg/shared-ui";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ /**
7
+ * Pill-like status badge used within status filter rows. Displays label, dot, and count.
8
+ */
9
+ const QueryStatus = ({
10
+ label,
11
+ color,
12
+ count,
13
+ showLabel = true,
14
+ isActive = false,
15
+ onPress,
16
+ onTouchStart
17
+ }) => {
18
+ // Buoy theme color mapping for status indicators
19
+ const getStatusColors = colorName => {
20
+ const colorMap = {
21
+ green: {
22
+ bg: buoyColors.success + "15",
23
+ border: buoyColors.success + "40",
24
+ dot: buoyColors.success,
25
+ text: buoyColors.success
26
+ },
27
+ yellow: {
28
+ bg: buoyColors.warning + "15",
29
+ border: buoyColors.warning + "40",
30
+ dot: buoyColors.warning,
31
+ text: buoyColors.warning
32
+ },
33
+ blue: {
34
+ bg: buoyColors.primary + "15",
35
+ border: buoyColors.primary + "40",
36
+ dot: buoyColors.primary,
37
+ text: buoyColors.primary
38
+ },
39
+ purple: {
40
+ bg: buoyColors.textMuted + "26",
41
+ border: buoyColors.textMuted + "59",
42
+ dot: buoyColors.textMuted,
43
+ text: buoyColors.textMuted
44
+ },
45
+ red: {
46
+ bg: buoyColors.error + "15",
47
+ border: buoyColors.error + "40",
48
+ dot: buoyColors.error,
49
+ text: buoyColors.error
50
+ },
51
+ gray: {
52
+ bg: buoyColors.textMuted + "26",
53
+ border: buoyColors.textMuted + "59",
54
+ dot: buoyColors.textMuted,
55
+ text: buoyColors.textMuted
56
+ }
57
+ };
58
+ return colorMap[colorName] || colorMap.gray;
59
+ };
60
+ const statusColors = getStatusColors(color);
61
+ return /*#__PURE__*/_jsxs(TouchableOpacity, {
62
+ "sentry-label": "ignore devtools query status",
63
+ style: [styles.queryStatusTag, isActive && {
64
+ backgroundColor: statusColors.dot + "15",
65
+ borderColor: statusColors.dot + "40"
66
+ }],
67
+ disabled: !onPress,
68
+ onPress: onPress,
69
+ onPressIn: onTouchStart,
70
+ activeOpacity: 0.7,
71
+ children: [/*#__PURE__*/_jsx(View, {
72
+ style: [styles.dot, {
73
+ backgroundColor: statusColors.dot
74
+ }]
75
+ }), showLabel && /*#__PURE__*/_jsx(Text, {
76
+ style: [styles.label],
77
+ numberOfLines: 1,
78
+ ellipsizeMode: "tail",
79
+ children: label
80
+ }), count > 0 && /*#__PURE__*/_jsx(Text, {
81
+ style: [styles.count, {
82
+ color: statusColors.dot
83
+ }],
84
+ numberOfLines: 1,
85
+ children: count
86
+ })]
87
+ });
88
+ };
89
+ const styles = StyleSheet.create({
90
+ queryStatusTag: {
91
+ flexDirection: "row",
92
+ alignItems: "center",
93
+ backgroundColor: "transparent",
94
+ borderRadius: 12,
95
+ paddingHorizontal: 10,
96
+ paddingVertical: 5,
97
+ height: 26,
98
+ gap: 6,
99
+ borderWidth: 1,
100
+ borderColor: buoyColors.textMuted + "20"
101
+ },
102
+ dot: {
103
+ width: 6,
104
+ height: 6,
105
+ borderRadius: 3
106
+ },
107
+ label: {
108
+ fontSize: 11,
109
+ fontWeight: "500",
110
+ color: buoyColors.textSecondary,
111
+ fontFamily: "system"
112
+ },
113
+ count: {
114
+ fontSize: 11,
115
+ fontVariant: ["tabular-nums"],
116
+ fontWeight: "600",
117
+ marginLeft: "auto",
118
+ fontFamily: "system"
119
+ }
120
+ });
121
+ export default QueryStatus;
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+
3
+ import { useRef, useState } from "react";
4
+ import { View, StyleSheet, ScrollView } from "react-native";
5
+ import QueryStatus from "./QueryStatus";
6
+ import useQueryStatusCounts from "../../hooks/useQueryStatusCounts";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
+ /**
9
+ * Horizontal status filter bar for queries with scroll-aware tap handling to prevent misfires.
10
+ */
11
+ const QueryStatusCount = ({
12
+ activeFilter,
13
+ onFilterChange
14
+ }) => {
15
+ const {
16
+ fresh,
17
+ stale,
18
+ fetching,
19
+ paused,
20
+ inactive
21
+ } = useQueryStatusCounts();
22
+
23
+ // Scroll state management like ChipTabs
24
+ const [isScrolling, setIsScrolling] = useState(false);
25
+ const touchStartX = useRef(0);
26
+ const touchStartY = useRef(0);
27
+ const handleFilterClick = (filter, event) => {
28
+ if (event) {
29
+ // Calculate distance moved during touch (like ChipTabs)
30
+ const dx = Math.abs(event.nativeEvent.pageX - touchStartX.current);
31
+ const dy = Math.abs(event.nativeEvent.pageY - touchStartY.current);
32
+
33
+ // If touch moved more than 5px in any direction, it's a swipe, not a tap
34
+ if (dx > 5 || dy > 5 || isScrolling) {
35
+ return; // Don't trigger filter change
36
+ }
37
+ }
38
+ if (onFilterChange) {
39
+ // Toggle filter: if already active, clear it; otherwise set it
40
+ onFilterChange(activeFilter === filter ? null : filter);
41
+ }
42
+ };
43
+ const handleTouchStart = event => {
44
+ touchStartX.current = event.nativeEvent.pageX;
45
+ touchStartY.current = event.nativeEvent.pageY;
46
+ };
47
+ return /*#__PURE__*/_jsx(View, {
48
+ style: styles.queryStatusContainer,
49
+ children: /*#__PURE__*/_jsxs(ScrollView, {
50
+ "sentry-label": "ignore devtools query status count scroll",
51
+ horizontal: true,
52
+ showsHorizontalScrollIndicator: false,
53
+ style: styles.scrollView,
54
+ contentContainerStyle: styles.scrollContent,
55
+ onScrollBeginDrag: () => setIsScrolling(true),
56
+ onScrollEndDrag: () => setTimeout(() => setIsScrolling(false), 300),
57
+ onMomentumScrollBegin: () => setIsScrolling(true),
58
+ onMomentumScrollEnd: () => setTimeout(() => setIsScrolling(false), 300),
59
+ children: [/*#__PURE__*/_jsx(QueryStatus, {
60
+ label: "Fresh",
61
+ color: "green",
62
+ count: fresh,
63
+ isActive: activeFilter === "fresh",
64
+ onPress: event => handleFilterClick("fresh", event),
65
+ onTouchStart: handleTouchStart,
66
+ showLabel: true // Always show labels now
67
+ }), /*#__PURE__*/_jsx(QueryStatus, {
68
+ label: "Loading",
69
+ color: "blue",
70
+ count: fetching,
71
+ isActive: activeFilter === "fetching",
72
+ onPress: event => handleFilterClick("fetching", event),
73
+ onTouchStart: handleTouchStart,
74
+ showLabel: true // Always show labels now
75
+ }), /*#__PURE__*/_jsx(QueryStatus, {
76
+ label: "Paused",
77
+ color: "purple",
78
+ count: paused,
79
+ isActive: activeFilter === "paused",
80
+ onPress: event => handleFilterClick("paused", event),
81
+ onTouchStart: handleTouchStart,
82
+ showLabel: true // Always show labels now
83
+ }), /*#__PURE__*/_jsx(QueryStatus, {
84
+ label: "Stale",
85
+ color: "yellow",
86
+ count: stale,
87
+ isActive: activeFilter === "stale",
88
+ onPress: event => handleFilterClick("stale", event),
89
+ onTouchStart: handleTouchStart,
90
+ showLabel: true // Always show labels now
91
+ }), /*#__PURE__*/_jsx(QueryStatus, {
92
+ label: "Idle",
93
+ color: "gray",
94
+ count: inactive,
95
+ isActive: activeFilter === "inactive",
96
+ onPress: event => handleFilterClick("inactive", event),
97
+ onTouchStart: handleTouchStart,
98
+ showLabel: true // Always show labels now
99
+ })]
100
+ })
101
+ });
102
+ };
103
+ const styles = StyleSheet.create({
104
+ queryStatusContainer: {
105
+ // Container for ScrollView - take full width
106
+ flex: 1,
107
+ minWidth: 0
108
+ },
109
+ scrollView: {
110
+ // ScrollView itself styles
111
+ flex: 1
112
+ },
113
+ scrollContent: {
114
+ // ScrollView content styles
115
+ flexDirection: "row",
116
+ alignItems: "center",
117
+ gap: 8,
118
+ // Spacing between chips
119
+ paddingHorizontal: 4,
120
+ // Small padding on ends
121
+ paddingVertical: 4,
122
+ flexGrow: 1 // Allow content to grow to fill available space
123
+ }
124
+ });
125
+ export default QueryStatusCount;
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+
3
+ import { useRef, useState } from "react";
4
+ import { View, StyleSheet, ScrollView } from "react-native";
5
+ import QueryStatus from "./QueryStatus";
6
+ import { getStorageTypeLabel, getStorageTypeColor } from "../../utils/storageQueryUtils";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const allStorageTypes = ["mmkv", "async", "secure"];
9
+
10
+ /**
11
+ * Storage type filter component following composition principles
12
+ *
13
+ * Applied principles:
14
+ * - Decompose by Responsibility: Dedicated component for storage type filtering
15
+ * - No unnecessary memoization - simple toggle state management [[memory:4875074]]
16
+ */
17
+ const StorageStatusCount = ({
18
+ activeStorageTypes = new Set(allStorageTypes),
19
+ onStorageTypesChange,
20
+ counts
21
+ }) => {
22
+ // Scroll state management like QueryStatusCount
23
+ const [isScrolling, setIsScrolling] = useState(false);
24
+ const touchStartX = useRef(0);
25
+ const touchStartY = useRef(0);
26
+ const handleStorageTypeToggle = (storageType, event) => {
27
+ if (event) {
28
+ // Calculate distance moved during touch (like QueryStatusCount)
29
+ const dx = Math.abs(event.nativeEvent.pageX - touchStartX.current);
30
+ const dy = Math.abs(event.nativeEvent.pageY - touchStartY.current);
31
+
32
+ // If touch moved more than 5px in any direction, it's a swipe, not a tap
33
+ if (dx > 5 || dy > 5 || isScrolling) {
34
+ return; // Don't trigger filter change
35
+ }
36
+ }
37
+ if (onStorageTypesChange) {
38
+ const newStorageTypes = new Set(activeStorageTypes);
39
+ if (newStorageTypes.has(storageType)) {
40
+ newStorageTypes.delete(storageType);
41
+ } else {
42
+ newStorageTypes.add(storageType);
43
+ }
44
+ onStorageTypesChange(newStorageTypes);
45
+ }
46
+ };
47
+ const handleTouchStart = event => {
48
+ touchStartX.current = event.nativeEvent.pageX;
49
+ touchStartY.current = event.nativeEvent.pageY;
50
+ };
51
+ return /*#__PURE__*/_jsx(View, {
52
+ style: styles.storageStatusContainer,
53
+ children: /*#__PURE__*/_jsx(ScrollView, {
54
+ "sentry-label": "ignore devtools storage status count scroll",
55
+ horizontal: true,
56
+ showsHorizontalScrollIndicator: false,
57
+ style: styles.scrollView,
58
+ contentContainerStyle: styles.scrollContent,
59
+ onScrollBeginDrag: () => setIsScrolling(true),
60
+ onScrollEndDrag: () => setTimeout(() => setIsScrolling(false), 300),
61
+ onMomentumScrollBegin: () => setIsScrolling(true),
62
+ onMomentumScrollEnd: () => setTimeout(() => setIsScrolling(false), 300),
63
+ children: allStorageTypes.map(storageType => {
64
+ const count = counts?.[storageType] ?? 0;
65
+ return /*#__PURE__*/_jsx(QueryStatus, {
66
+ label: getStorageTypeLabel(storageType),
67
+ color: getStorageTypeColor(storageType),
68
+ count: count // Show actual storage query counts
69
+ ,
70
+ isActive: activeStorageTypes.has(storageType),
71
+ onPress: event => handleStorageTypeToggle(storageType, event),
72
+ onTouchStart: handleTouchStart,
73
+ showLabel: true
74
+ }, storageType);
75
+ })
76
+ })
77
+ });
78
+ };
79
+ const styles = StyleSheet.create({
80
+ storageStatusContainer: {
81
+ // Container for ScrollView - take full width
82
+ flex: 1,
83
+ minWidth: 0
84
+ },
85
+ scrollView: {
86
+ // ScrollView itself styles
87
+ flex: 1
88
+ },
89
+ scrollContent: {
90
+ // ScrollView content styles
91
+ flexDirection: "row",
92
+ alignItems: "center",
93
+ gap: 8,
94
+ // Spacing between chips
95
+ paddingHorizontal: 4,
96
+ // Small padding on ends
97
+ paddingVertical: 4,
98
+ flexGrow: 1 // Allow content to grow to fill available space
99
+ }
100
+ });
101
+ export default StorageStatusCount;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ export { default as Explorer } from "./Explorer";
4
+ export { default as QueryBrowser } from "./QueryBrowser";
5
+ export { default as QueryDetails } from "./QueryDetails";
6
+ export { default as QueryInformation } from "./QueryInformation";
7
+ export { default as QueryActions } from "./QueryActions";
8
+ export { default as QueryRow } from "./QueryRow";
9
+ export { default as QueryStatus } from "./QueryStatus";
10
+ export { default as QueryStatusCount } from "./QueryStatusCount";
11
+ export { default as QueryDetailsChip } from "./QueryDetailsChip";
12
+ export { default as MutationsList } from "./MutationsList";
13
+ export { default as MutationDetails } from "./MutationDetails";
14
+ export { default as MutationInformation } from "./MutationInformation";
15
+ export { default as MutationButton } from "./MutationButton";
16
+ export { default as MutationStatusCount } from "./MutationStatusCount";
17
+ export { default as MutationDetailsChips } from "./MutationDetailsChips";
18
+ export { default as ActionButton } from "./ActionButton";
19
+ export { default as ClearCacheButton } from "./ClearCacheButton";
20
+ export { default as NetworkToggleButton } from "./NetworkToggleButton";
21
+ export { default as StorageStatusCount } from "./StorageStatusCount";
22
+ export { TanstackLogo, CheckCircle, LoadingCircle, PauseCircle, XCircle } from "./svgs";
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+
3
+ import { ReactQueryIcon, CheckCircle as SharedCheckCircle, Activity as SharedActivity, Pause as SharedPause, XCircle as SharedXCircle, buoyColors } from "@buoy-gg/shared-ui";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ /** React Query brand mark used across the dev tools UI. */
6
+ export function TanstackLogo({
7
+ size = 24
8
+ }) {
9
+ return /*#__PURE__*/_jsx(ReactQueryIcon, {
10
+ size: size,
11
+ colorPreset: "red",
12
+ variant: "circuit"
13
+ });
14
+ }
15
+
16
+ /** Status icon representing successful requests. */
17
+ export function CheckCircle({
18
+ size = 14,
19
+ color = buoyColors.success,
20
+ strokeWidth = 2
21
+ }) {
22
+ return /*#__PURE__*/_jsx(SharedCheckCircle, {
23
+ size: size,
24
+ color: color,
25
+ strokeWidth: strokeWidth
26
+ });
27
+ }
28
+
29
+ /** Status icon representing in-flight queries or mutations. */
30
+ export function LoadingCircle({
31
+ size = 14,
32
+ color = buoyColors.warning,
33
+ strokeWidth = 2
34
+ }) {
35
+ return /*#__PURE__*/_jsx(SharedActivity, {
36
+ size: size,
37
+ color: color,
38
+ strokeWidth: strokeWidth
39
+ });
40
+ }
41
+
42
+ /** Status icon representing paused queries. */
43
+ export function PauseCircle({
44
+ size = 14,
45
+ color = buoyColors.textMuted,
46
+ strokeWidth = 2
47
+ }) {
48
+ return /*#__PURE__*/_jsx(SharedPause, {
49
+ size: size,
50
+ color: color,
51
+ strokeWidth: strokeWidth
52
+ });
53
+ }
54
+
55
+ /** Status icon representing errored requests. */
56
+ export function XCircle({
57
+ size = 14,
58
+ color = buoyColors.error,
59
+ strokeWidth = 2
60
+ }) {
61
+ return /*#__PURE__*/_jsx(SharedXCircle, {
62
+ size: size,
63
+ color: color,
64
+ strokeWidth: strokeWidth
65
+ });
66
+ }