@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,335 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ ReactQueryModal: true,
8
+ ReactQueryModalHeader: true,
9
+ QueryBrowserModal: true,
10
+ MutationBrowserModal: true,
11
+ MutationEditorModal: true,
12
+ DataEditorModal: true,
13
+ QueryBrowserFooter: true,
14
+ MutationBrowserFooter: true,
15
+ SwipeIndicator: true,
16
+ Explorer: true,
17
+ QueryBrowser: true,
18
+ QueryDetails: true,
19
+ QueryInformation: true,
20
+ QueryActions: true,
21
+ QueryRow: true,
22
+ QueryStatus: true,
23
+ QueryStatusCount: true,
24
+ QueryDetailsChip: true,
25
+ MutationsList: true,
26
+ MutationDetails: true,
27
+ MutationInformation: true,
28
+ MutationButton: true,
29
+ MutationStatusCount: true,
30
+ MutationDetailsChips: true,
31
+ ActionButton: true,
32
+ ClearCacheButton: true,
33
+ NetworkToggleButton: true,
34
+ StorageStatusCount: true,
35
+ VirtualizedDataExplorer: true,
36
+ DataViewer: true,
37
+ TypeLegend: true,
38
+ QueryBrowserMode: true,
39
+ MutationBrowserMode: true,
40
+ MutationEditorMode: true,
41
+ DataEditorMode: true,
42
+ QuerySelector: true,
43
+ QueryDebugInfo: true,
44
+ WifiToggle: true,
45
+ ReactQuerySection: true
46
+ };
47
+ Object.defineProperty(exports, "ActionButton", {
48
+ enumerable: true,
49
+ get: function () {
50
+ return _queryBrowser.ActionButton;
51
+ }
52
+ });
53
+ Object.defineProperty(exports, "ClearCacheButton", {
54
+ enumerable: true,
55
+ get: function () {
56
+ return _queryBrowser.ClearCacheButton;
57
+ }
58
+ });
59
+ Object.defineProperty(exports, "DataEditorModal", {
60
+ enumerable: true,
61
+ get: function () {
62
+ return _DataEditorModal.DataEditorModal;
63
+ }
64
+ });
65
+ Object.defineProperty(exports, "DataEditorMode", {
66
+ enumerable: true,
67
+ get: function () {
68
+ return _DataEditorMode.DataEditorMode;
69
+ }
70
+ });
71
+ Object.defineProperty(exports, "DataViewer", {
72
+ enumerable: true,
73
+ get: function () {
74
+ return _dataViewer.DataViewer;
75
+ }
76
+ });
77
+ Object.defineProperty(exports, "Explorer", {
78
+ enumerable: true,
79
+ get: function () {
80
+ return _queryBrowser.Explorer;
81
+ }
82
+ });
83
+ Object.defineProperty(exports, "MutationBrowserFooter", {
84
+ enumerable: true,
85
+ get: function () {
86
+ return _MutationBrowserFooter.MutationBrowserFooter;
87
+ }
88
+ });
89
+ Object.defineProperty(exports, "MutationBrowserModal", {
90
+ enumerable: true,
91
+ get: function () {
92
+ return _MutationBrowserModal.MutationBrowserModal;
93
+ }
94
+ });
95
+ Object.defineProperty(exports, "MutationBrowserMode", {
96
+ enumerable: true,
97
+ get: function () {
98
+ return _MutationBrowserMode.MutationBrowserMode;
99
+ }
100
+ });
101
+ Object.defineProperty(exports, "MutationButton", {
102
+ enumerable: true,
103
+ get: function () {
104
+ return _queryBrowser.MutationButton;
105
+ }
106
+ });
107
+ Object.defineProperty(exports, "MutationDetails", {
108
+ enumerable: true,
109
+ get: function () {
110
+ return _queryBrowser.MutationDetails;
111
+ }
112
+ });
113
+ Object.defineProperty(exports, "MutationDetailsChips", {
114
+ enumerable: true,
115
+ get: function () {
116
+ return _queryBrowser.MutationDetailsChips;
117
+ }
118
+ });
119
+ Object.defineProperty(exports, "MutationEditorModal", {
120
+ enumerable: true,
121
+ get: function () {
122
+ return _MutationEditorModal.MutationEditorModal;
123
+ }
124
+ });
125
+ Object.defineProperty(exports, "MutationEditorMode", {
126
+ enumerable: true,
127
+ get: function () {
128
+ return _MutationEditorMode.MutationEditorMode;
129
+ }
130
+ });
131
+ Object.defineProperty(exports, "MutationInformation", {
132
+ enumerable: true,
133
+ get: function () {
134
+ return _queryBrowser.MutationInformation;
135
+ }
136
+ });
137
+ Object.defineProperty(exports, "MutationStatusCount", {
138
+ enumerable: true,
139
+ get: function () {
140
+ return _queryBrowser.MutationStatusCount;
141
+ }
142
+ });
143
+ Object.defineProperty(exports, "MutationsList", {
144
+ enumerable: true,
145
+ get: function () {
146
+ return _queryBrowser.MutationsList;
147
+ }
148
+ });
149
+ Object.defineProperty(exports, "NetworkToggleButton", {
150
+ enumerable: true,
151
+ get: function () {
152
+ return _queryBrowser.NetworkToggleButton;
153
+ }
154
+ });
155
+ Object.defineProperty(exports, "QueryActions", {
156
+ enumerable: true,
157
+ get: function () {
158
+ return _queryBrowser.QueryActions;
159
+ }
160
+ });
161
+ Object.defineProperty(exports, "QueryBrowser", {
162
+ enumerable: true,
163
+ get: function () {
164
+ return _queryBrowser.QueryBrowser;
165
+ }
166
+ });
167
+ Object.defineProperty(exports, "QueryBrowserFooter", {
168
+ enumerable: true,
169
+ get: function () {
170
+ return _QueryBrowserFooter.QueryBrowserFooter;
171
+ }
172
+ });
173
+ Object.defineProperty(exports, "QueryBrowserModal", {
174
+ enumerable: true,
175
+ get: function () {
176
+ return _QueryBrowserModal.QueryBrowserModal;
177
+ }
178
+ });
179
+ Object.defineProperty(exports, "QueryBrowserMode", {
180
+ enumerable: true,
181
+ get: function () {
182
+ return _QueryBrowserMode.QueryBrowserMode;
183
+ }
184
+ });
185
+ Object.defineProperty(exports, "QueryDebugInfo", {
186
+ enumerable: true,
187
+ get: function () {
188
+ return _QueryDebugInfo.QueryDebugInfo;
189
+ }
190
+ });
191
+ Object.defineProperty(exports, "QueryDetails", {
192
+ enumerable: true,
193
+ get: function () {
194
+ return _queryBrowser.QueryDetails;
195
+ }
196
+ });
197
+ Object.defineProperty(exports, "QueryDetailsChip", {
198
+ enumerable: true,
199
+ get: function () {
200
+ return _queryBrowser.QueryDetailsChip;
201
+ }
202
+ });
203
+ Object.defineProperty(exports, "QueryInformation", {
204
+ enumerable: true,
205
+ get: function () {
206
+ return _queryBrowser.QueryInformation;
207
+ }
208
+ });
209
+ Object.defineProperty(exports, "QueryRow", {
210
+ enumerable: true,
211
+ get: function () {
212
+ return _queryBrowser.QueryRow;
213
+ }
214
+ });
215
+ Object.defineProperty(exports, "QuerySelector", {
216
+ enumerable: true,
217
+ get: function () {
218
+ return _QuerySelector.QuerySelector;
219
+ }
220
+ });
221
+ Object.defineProperty(exports, "QueryStatus", {
222
+ enumerable: true,
223
+ get: function () {
224
+ return _queryBrowser.QueryStatus;
225
+ }
226
+ });
227
+ Object.defineProperty(exports, "QueryStatusCount", {
228
+ enumerable: true,
229
+ get: function () {
230
+ return _queryBrowser.QueryStatusCount;
231
+ }
232
+ });
233
+ Object.defineProperty(exports, "ReactQueryModal", {
234
+ enumerable: true,
235
+ get: function () {
236
+ return _ReactQueryModal.ReactQueryModal;
237
+ }
238
+ });
239
+ Object.defineProperty(exports, "ReactQueryModalHeader", {
240
+ enumerable: true,
241
+ get: function () {
242
+ return _ReactQueryModalHeader.ReactQueryModalHeader;
243
+ }
244
+ });
245
+ Object.defineProperty(exports, "ReactQuerySection", {
246
+ enumerable: true,
247
+ get: function () {
248
+ return _ReactQuerySection.ReactQuerySection;
249
+ }
250
+ });
251
+ Object.defineProperty(exports, "StorageStatusCount", {
252
+ enumerable: true,
253
+ get: function () {
254
+ return _queryBrowser.StorageStatusCount;
255
+ }
256
+ });
257
+ Object.defineProperty(exports, "SwipeIndicator", {
258
+ enumerable: true,
259
+ get: function () {
260
+ return _SwipeIndicator.SwipeIndicator;
261
+ }
262
+ });
263
+ Object.defineProperty(exports, "TypeLegend", {
264
+ enumerable: true,
265
+ get: function () {
266
+ return _dataViewer.TypeLegend;
267
+ }
268
+ });
269
+ Object.defineProperty(exports, "VirtualizedDataExplorer", {
270
+ enumerable: true,
271
+ get: function () {
272
+ return _dataViewer.VirtualizedDataExplorer;
273
+ }
274
+ });
275
+ Object.defineProperty(exports, "WifiToggle", {
276
+ enumerable: true,
277
+ get: function () {
278
+ return _WifiToggle.WifiToggle;
279
+ }
280
+ });
281
+ var _ReactQueryModal = require("./components/modals/ReactQueryModal");
282
+ var _ReactQueryModalHeader = require("./components/modals/ReactQueryModalHeader");
283
+ var _QueryBrowserModal = require("./components/modals/QueryBrowserModal");
284
+ var _MutationBrowserModal = require("./components/modals/MutationBrowserModal");
285
+ var _MutationEditorModal = require("./components/modals/MutationEditorModal");
286
+ var _DataEditorModal = require("./components/modals/DataEditorModal");
287
+ var _QueryBrowserFooter = require("./components/modals/QueryBrowserFooter");
288
+ var _MutationBrowserFooter = require("./components/modals/MutationBrowserFooter");
289
+ var _SwipeIndicator = require("./components/modals/SwipeIndicator");
290
+ var _queryBrowser = require("./components/query-browser");
291
+ var _dataViewer = require("@buoy-gg/shared-ui/dataViewer");
292
+ var _QueryBrowserMode = require("./components/QueryBrowserMode");
293
+ var _MutationBrowserMode = require("./components/MutationBrowserMode");
294
+ var _MutationEditorMode = require("./components/MutationEditorMode");
295
+ var _DataEditorMode = require("./components/DataEditorMode");
296
+ var _QuerySelector = require("./components/QuerySelector");
297
+ var _QueryDebugInfo = require("./components/QueryDebugInfo");
298
+ var _WifiToggle = require("./components/WifiToggle");
299
+ var _ReactQuerySection = require("./components/ReactQuerySection");
300
+ var _hooks = require("./hooks");
301
+ Object.keys(_hooks).forEach(function (key) {
302
+ if (key === "default" || key === "__esModule") return;
303
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
304
+ if (key in exports && exports[key] === _hooks[key]) return;
305
+ Object.defineProperty(exports, key, {
306
+ enumerable: true,
307
+ get: function () {
308
+ return _hooks[key];
309
+ }
310
+ });
311
+ });
312
+ var _utils = require("./utils");
313
+ Object.keys(_utils).forEach(function (key) {
314
+ if (key === "default" || key === "__esModule") return;
315
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
316
+ if (key in exports && exports[key] === _utils[key]) return;
317
+ Object.defineProperty(exports, key, {
318
+ enumerable: true,
319
+ get: function () {
320
+ return _utils[key];
321
+ }
322
+ });
323
+ });
324
+ var _types = require("./types");
325
+ Object.keys(_types).forEach(function (key) {
326
+ if (key === "default" || key === "__esModule") return;
327
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
328
+ if (key in exports && exports[key] === _types[key]) return;
329
+ Object.defineProperty(exports, key, {
330
+ enumerable: true,
331
+ get: function () {
332
+ return _types[key];
333
+ }
334
+ });
335
+ });
@@ -0,0 +1,316 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DataEditorActionsFooter = DataEditorActionsFooter;
7
+ exports.DataEditorMode = DataEditorMode;
8
+ var _reactNative = require("react-native");
9
+ var _reactQuery = require("@tanstack/react-query");
10
+ var _sharedUi = require("@buoy-gg/shared-ui");
11
+ var _Explorer = _interopRequireDefault(require("./query-browser/Explorer"));
12
+ var _QueryDetails = _interopRequireDefault(require("./query-browser/QueryDetails"));
13
+ var _ActionButton = _interopRequireDefault(require("./query-browser/ActionButton"));
14
+ var _getQueryStatusLabel = require("../utils/getQueryStatusLabel");
15
+ var _useActionButtons = require("../hooks/useActionButtons");
16
+ var _dataViewer = require("@buoy-gg/shared-ui/dataViewer");
17
+ var _jsxRuntime = require("react/jsx-runtime");
18
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
+ /**
20
+ * Primary data editing surface displayed inside the React Query modal. Couples the editable
21
+ * explorer, read-only insight panels, and action footer for the selected query.
22
+ */
23
+ function DataEditorMode({
24
+ selectedQuery,
25
+ isFloatingMode,
26
+ disableInternalFooter = false,
27
+ queryVersion
28
+ }) {
29
+ const insets = (0, _sharedUi.useSafeAreaInsets)({
30
+ minBottom: 16
31
+ });
32
+ const queryClient = (0, _reactQuery.useQueryClient)();
33
+ const actionButtons = (0, _useActionButtons.useActionButtons)(selectedQuery, queryClient, queryVersion);
34
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
35
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
36
+ accessibilityLabel: "Data editor mode",
37
+ accessibilityHint: "View data editor mode",
38
+ "sentry-label": "ignore data editor mode",
39
+ style: styles.explorerScrollContainer,
40
+ contentContainerStyle: [styles.explorerScrollContent, !disableInternalFooter && {
41
+ paddingBottom: 72
42
+ }],
43
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
44
+ style: styles.section,
45
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(DataExplorer, {
46
+ visible: !!selectedQuery.state.data,
47
+ selectedQuery: selectedQuery,
48
+ queryVersion: queryVersion
49
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(DataEmptyState, {
50
+ visible: !selectedQuery.state.data,
51
+ selectedQuery: selectedQuery
52
+ })]
53
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
54
+ style: styles.section,
55
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_QueryDetails.default, {
56
+ query: selectedQuery
57
+ })
58
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
59
+ style: styles.section,
60
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
61
+ style: styles.queryExplorerContainer,
62
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
63
+ style: styles.queryExplorerHeader,
64
+ children: "Query Explorer"
65
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
66
+ style: styles.queryExplorerContent,
67
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_dataViewer.DataViewer, {
68
+ title: "",
69
+ data: selectedQuery,
70
+ maxDepth: 10,
71
+ rawMode: true,
72
+ showTypeFilter: true,
73
+ initialExpanded: false
74
+ })
75
+ })]
76
+ })
77
+ })]
78
+ }), !disableInternalFooter && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
79
+ style: [styles.actionFooter, {
80
+ paddingBottom: isFloatingMode ? 0 : insets.bottom + 8
81
+ }],
82
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
83
+ style: styles.actionsGrid,
84
+ children: actionButtons.map((action, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_ActionButton.default, {
85
+ "sentry-label": `ignore action button ${action.label}`,
86
+ onClick: action.onPress,
87
+ text: action.label,
88
+ bgColorClass: action.bgColorClass,
89
+ _textColorClass: action.textColorClass,
90
+ disabled: action.disabled
91
+ }, index))
92
+ })
93
+ })]
94
+ });
95
+ }
96
+
97
+ // External footer component for sticky modal footer usage
98
+ /**
99
+ * Standalone footer variant that can be composed into sticky modal layouts while reusing the
100
+ * standard action button arrangement.
101
+ */
102
+ function DataEditorActionsFooter({
103
+ selectedQuery,
104
+ isFloatingMode,
105
+ queryVersion
106
+ }) {
107
+ const insets = (0, _sharedUi.useSafeAreaInsets)({
108
+ minBottom: 16
109
+ });
110
+ const queryClient = (0, _reactQuery.useQueryClient)();
111
+ const actionButtons = (0, _useActionButtons.useActionButtons)(selectedQuery, queryClient, queryVersion);
112
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
113
+ style: [styles.actionFooter, {
114
+ paddingBottom: isFloatingMode ? 0 : insets.bottom + 8
115
+ }],
116
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
117
+ style: styles.actionsGrid,
118
+ children: actionButtons.map((action, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_ActionButton.default, {
119
+ "sentry-label": `ignore action button ${action.label}`,
120
+ onClick: action.onPress,
121
+ text: action.label,
122
+ bgColorClass: action.bgColorClass,
123
+ _textColorClass: action.textColorClass,
124
+ disabled: action.disabled
125
+ }, index))
126
+ })
127
+ });
128
+ }
129
+ function DataExplorer({
130
+ visible,
131
+ selectedQuery,
132
+ queryVersion = 0
133
+ }) {
134
+ if (!visible) return null;
135
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
136
+ style: styles.dataContainer,
137
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
138
+ style: styles.dataHeader,
139
+ children: "Data Editor"
140
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
141
+ style: styles.dataContent,
142
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Explorer.default, {
143
+ editable: true,
144
+ label: "Data",
145
+ value: selectedQuery.state.data,
146
+ defaultExpanded: ["Data"],
147
+ activeQuery: selectedQuery,
148
+ dataVersion: queryVersion
149
+ })
150
+ })]
151
+ });
152
+ }
153
+ function DataEmptyState({
154
+ visible,
155
+ selectedQuery
156
+ }) {
157
+ if (!visible) return null;
158
+ const getEmptyStateContent = () => {
159
+ // Check if query is disabled first
160
+ if (selectedQuery.isDisabled()) {
161
+ return {
162
+ title: "Query Disabled",
163
+ description: "This query is disabled and won't automatically fetch. Enable the query or manually trigger a fetch to load data."
164
+ };
165
+ }
166
+ if (selectedQuery.state.status === "pending" || (0, _getQueryStatusLabel.getQueryStatusLabel)(selectedQuery) === "fetching") {
167
+ return {
168
+ title: selectedQuery.state.status === "pending" ? "Loading..." : "Refetching...",
169
+ description: "Please wait while the query is being executed."
170
+ };
171
+ }
172
+ if (selectedQuery.state.status === "error") {
173
+ return {
174
+ title: "Query Error",
175
+ description: selectedQuery.state.error?.message || "An error occurred while fetching data."
176
+ };
177
+ }
178
+ return {
179
+ title: "No Data Available",
180
+ description: "This query has no data to edit. Try refetching the query first."
181
+ };
182
+ };
183
+ const {
184
+ title,
185
+ description
186
+ } = getEmptyStateContent();
187
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
188
+ style: styles.emptyState,
189
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
190
+ style: styles.emptyTitle,
191
+ children: title
192
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
193
+ style: styles.emptyDescription,
194
+ children: description
195
+ })]
196
+ });
197
+ }
198
+ const styles = _reactNative.StyleSheet.create({
199
+ // Explorer section
200
+ explorerScrollContainer: {
201
+ flex: 1
202
+ },
203
+ explorerScrollContent: {
204
+ paddingBottom: 16,
205
+ paddingHorizontal: 8,
206
+ flexGrow: 1
207
+ },
208
+ // Section layout matching QueryInformation
209
+ section: {
210
+ marginBottom: 16
211
+ },
212
+ // Empty states matching main dev tools
213
+ emptyState: {
214
+ flex: 1,
215
+ justifyContent: "center",
216
+ alignItems: "center",
217
+ padding: 32
218
+ },
219
+ emptyTitle: {
220
+ color: _sharedUi.buoyColors.text,
221
+ fontSize: 18,
222
+ fontWeight: "600",
223
+ marginBottom: 8,
224
+ textAlign: "center"
225
+ },
226
+ emptyDescription: {
227
+ color: _sharedUi.buoyColors.textSecondary,
228
+ fontSize: 14,
229
+ textAlign: "center",
230
+ lineHeight: 20,
231
+ maxWidth: 280
232
+ },
233
+ // Action footer matching main dev tools exactly
234
+ actionFooter: {
235
+ borderTopWidth: 1,
236
+ borderTopColor: _sharedUi.buoyColors.border,
237
+ paddingTop: 4,
238
+ paddingHorizontal: 12,
239
+ backgroundColor: _sharedUi.buoyColors.base,
240
+ borderBottomLeftRadius: 14,
241
+ borderBottomRightRadius: 14
242
+ },
243
+ actionsGrid: {
244
+ flexDirection: "row",
245
+ flexWrap: "wrap",
246
+ gap: 6,
247
+ // Reduced from 8
248
+ justifyContent: "space-between",
249
+ paddingBottom: 2
250
+ },
251
+ // Query Explorer styled container matching QueryDetails
252
+ queryExplorerContainer: {
253
+ minWidth: 200,
254
+ backgroundColor: _sharedUi.buoyColors.card,
255
+ borderRadius: 6,
256
+ borderWidth: 1,
257
+ borderColor: _sharedUi.buoyColors.primary + "4D",
258
+ overflow: "hidden",
259
+ shadowColor: _sharedUi.buoyColors.primary,
260
+ shadowOffset: {
261
+ width: 0,
262
+ height: 0
263
+ },
264
+ shadowOpacity: 0.1,
265
+ shadowRadius: 6
266
+ },
267
+ queryExplorerHeader: {
268
+ backgroundColor: _sharedUi.buoyColors.primary + "1A",
269
+ paddingHorizontal: 12,
270
+ paddingVertical: 10,
271
+ fontWeight: "600",
272
+ fontSize: 12,
273
+ color: _sharedUi.buoyColors.primary,
274
+ borderBottomWidth: 1,
275
+ borderBottomColor: _sharedUi.buoyColors.primary + "33",
276
+ letterSpacing: 0.5,
277
+ textTransform: "uppercase",
278
+ fontFamily: "monospace"
279
+ },
280
+ queryExplorerContent: {
281
+ padding: 8
282
+ },
283
+ // Data section with teal accent - editable/success theme
284
+ dataContainer: {
285
+ minWidth: 200,
286
+ backgroundColor: _sharedUi.buoyColors.card,
287
+ borderRadius: 6,
288
+ borderWidth: 1,
289
+ borderColor: _sharedUi.buoyColors.primary + "4D",
290
+ overflow: "hidden",
291
+ shadowColor: _sharedUi.buoyColors.primary,
292
+ shadowOffset: {
293
+ width: 0,
294
+ height: 0
295
+ },
296
+ shadowOpacity: 0.1,
297
+ shadowRadius: 6,
298
+ marginTop: 8
299
+ },
300
+ dataHeader: {
301
+ backgroundColor: _sharedUi.buoyColors.primary + "1A",
302
+ paddingHorizontal: 12,
303
+ paddingVertical: 10,
304
+ fontWeight: "600",
305
+ fontSize: 12,
306
+ color: _sharedUi.buoyColors.primary,
307
+ borderBottomWidth: 1,
308
+ borderBottomColor: _sharedUi.buoyColors.primary + "33",
309
+ letterSpacing: 0.5,
310
+ textTransform: "uppercase",
311
+ fontFamily: "monospace"
312
+ },
313
+ dataContent: {
314
+ padding: 8
315
+ }
316
+ });
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FilterStatusBadge = FilterStatusBadge;
7
+ var _reactNative = require("react-native");
8
+ var _sharedUi = require("@buoy-gg/shared-ui");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ /**
11
+ * Compact badge showing filter status (e.g., "Showing 5 of 12")
12
+ * Displayed below the header when filters are active
13
+ */
14
+ function FilterStatusBadge({
15
+ totalCount,
16
+ filteredCount,
17
+ onPress
18
+ }) {
19
+ // Don't show if no filtering is happening
20
+ if (filteredCount === totalCount) {
21
+ return null;
22
+ }
23
+ const content = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
24
+ style: styles.container,
25
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
26
+ style: styles.text,
27
+ children: ["Showing ", filteredCount, " of ", totalCount]
28
+ })
29
+ });
30
+ if (onPress) {
31
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
32
+ onPress: onPress,
33
+ activeOpacity: 0.7,
34
+ children: content
35
+ });
36
+ }
37
+ return content;
38
+ }
39
+ const styles = _reactNative.StyleSheet.create({
40
+ container: {
41
+ flexDirection: "row",
42
+ alignItems: "center",
43
+ justifyContent: "center",
44
+ paddingVertical: 2
45
+ },
46
+ text: {
47
+ fontSize: 9,
48
+ color: _sharedUi.buoyColors.textMuted,
49
+ fontFamily: "monospace"
50
+ }
51
+ });