@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,985 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = Explorer;
7
+ var _react = require("react");
8
+ var _reactQuery = require("@tanstack/react-query");
9
+ var _updateNestedDataByPath = require("../../utils/updateNestedDataByPath");
10
+ var _sharedUi = require("@buoy-gg/shared-ui");
11
+ var _deleteItem = _interopRequireDefault(require("../../utils/actions/deleteItem"));
12
+ var _reactNative = require("react-native");
13
+ var _dataViewer = require("@buoy-gg/shared-ui/dataViewer");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ // Stable constants to prevent re-renders [[memory:4875251]]
17
+ const CHUNK_SIZE = 100;
18
+ const HIT_SLOP_OPTIMIZED = {
19
+ top: 8,
20
+ bottom: 8,
21
+ left: 8,
22
+ right: 8
23
+ };
24
+ const EXPANDER_SIZE = 12;
25
+
26
+ // Optimized chunking function moved to module scope [[memory:4875251]]
27
+ const chunkArray = (array, size = CHUNK_SIZE) => {
28
+ if (size < 1 || array.length === 0) return [];
29
+ const result = [];
30
+ for (let i = 0; i < array.length; i += size) {
31
+ result.push(array.slice(i, i + size));
32
+ }
33
+ return result;
34
+ };
35
+ // Memoized Expander component for performance [[memory:4875251]]
36
+ const Expander = /*#__PURE__*/(0, _react.memo)(({
37
+ expanded,
38
+ isFocused = false,
39
+ isMain = false
40
+ }) => {
41
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
42
+ style: [styles.expanderIcon, isMain && styles.expanderIconMain, expanded ? styles.expanded : styles.collapsed],
43
+ children: expanded ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronDown, {
44
+ size: isMain ? 14 : EXPANDER_SIZE,
45
+ color: isFocused ? _sharedUi.buoyColors.primary : isMain ? _sharedUi.buoyColors.text : _sharedUi.buoyColors.textSecondary,
46
+ strokeWidth: 2.5
47
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronRight, {
48
+ size: isMain ? 14 : EXPANDER_SIZE,
49
+ color: isFocused ? _sharedUi.buoyColors.primary : isMain ? _sharedUi.buoyColors.text : _sharedUi.buoyColors.textSecondary,
50
+ strokeWidth: 2.5
51
+ })
52
+ });
53
+ });
54
+ Expander.displayName = "Expander";
55
+ // Local wrapper for the shared CopyButton to maintain backward compatibility
56
+ const CopyButton = /*#__PURE__*/(0, _react.memo)(({
57
+ value,
58
+ isFocused = false
59
+ }) => {
60
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.CopyButton, {
61
+ value: value,
62
+ isFocused: isFocused,
63
+ buttonStyle: isFocused ? {
64
+ ...styles.buttonStyle,
65
+ ...styles.buttonStyleFocused
66
+ } : styles.buttonStyle
67
+ });
68
+ });
69
+ CopyButton.displayName = "CopyButton";
70
+
71
+ // Memoized DeleteItemButton component [[memory:4875251]]
72
+ const DeleteItemButton = /*#__PURE__*/(0, _react.memo)(({
73
+ dataPath,
74
+ activeQuery,
75
+ isFocused = false
76
+ }) => {
77
+ const queryClient = (0, _reactQuery.useQueryClient)();
78
+ const handleDelete = (0, _react.useCallback)(() => {
79
+ if (!activeQuery) return;
80
+ (0, _deleteItem.default)({
81
+ queryClient,
82
+ activeQuery: activeQuery,
83
+ dataPath: dataPath
84
+ });
85
+ }, [queryClient, activeQuery, dataPath]);
86
+ if (!activeQuery) return null;
87
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
88
+ "sentry-label": "ignore devtools explorer delete button",
89
+ onPress: handleDelete,
90
+ style: [styles.deleteButton, isFocused && styles.deleteButtonFocused],
91
+ accessibilityLabel: "Delete item",
92
+ hitSlop: HIT_SLOP_OPTIMIZED,
93
+ activeOpacity: 0.7,
94
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Trash, {
95
+ size: 14,
96
+ strokeWidth: 2,
97
+ color: isFocused ? _sharedUi.buoyColors.error : _sharedUi.buoyColors.error + "CC"
98
+ })
99
+ });
100
+ });
101
+ DeleteItemButton.displayName = "DeleteItemButton";
102
+ // Memoized ClearArrayButton component [[memory:4875251]]
103
+ const ClearArrayButton = /*#__PURE__*/(0, _react.memo)(({
104
+ dataPath,
105
+ activeQuery,
106
+ isFocused = false
107
+ }) => {
108
+ const queryClient = (0, _reactQuery.useQueryClient)();
109
+ const handleClear = (0, _react.useCallback)(() => {
110
+ if (!activeQuery) return;
111
+ const oldData = activeQuery.state.data;
112
+ const newData = (0, _updateNestedDataByPath.updateNestedDataByPath)(oldData, dataPath, []);
113
+ queryClient.setQueryData(activeQuery.queryKey, newData);
114
+ }, [queryClient, activeQuery, dataPath]);
115
+ if (!activeQuery) return null;
116
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
117
+ "sentry-label": "ignore devtools explorer clear button",
118
+ style: [styles.clearButton, isFocused && styles.clearButtonFocused],
119
+ "aria-label": "Remove all items",
120
+ onPress: handleClear,
121
+ hitSlop: HIT_SLOP_OPTIMIZED,
122
+ activeOpacity: 0.7,
123
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
124
+ style: [styles.clearButtonText, {
125
+ color: isFocused ? _sharedUi.buoyColors.warning : _sharedUi.buoyColors.warning + "CC"
126
+ }],
127
+ children: "[]"
128
+ })
129
+ });
130
+ });
131
+ ClearArrayButton.displayName = "ClearArrayButton";
132
+ // ToggleValueButton - not memoized because parent Explorer passes new dataPath array each render
133
+ // which defeats memo anyway, and we need reliable re-renders when value changes
134
+ function ToggleValueButton({
135
+ dataPath,
136
+ activeQuery,
137
+ value,
138
+ itemsDeletable
139
+ }) {
140
+ const queryClient = (0, _reactQuery.useQueryClient)();
141
+ const handleClick = (0, _react.useCallback)(() => {
142
+ if (!activeQuery) return;
143
+ const oldData = activeQuery.state.data;
144
+ const currentValue = typeof value === "boolean" ? value : false;
145
+ const newData = (0, _updateNestedDataByPath.updateNestedDataByPath)(oldData, dataPath, !currentValue);
146
+ queryClient.setQueryData(activeQuery.queryKey, newData);
147
+ }, [queryClient, activeQuery, dataPath, value]);
148
+ const handleDelete = (0, _react.useCallback)(() => {
149
+ if (!activeQuery) return;
150
+ (0, _deleteItem.default)({
151
+ queryClient,
152
+ activeQuery: activeQuery,
153
+ dataPath: dataPath
154
+ });
155
+ }, [queryClient, activeQuery, dataPath]);
156
+ if (!activeQuery) return null;
157
+
158
+ // Pre-compute styles based on value state
159
+ const badgeStyle = value ? styles.toggleBadgeTrue : styles.toggleBadgeFalse;
160
+ const textStyle = value ? styles.toggleTextTrue : styles.toggleTextFalse;
161
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
162
+ "sentry-label": "ignore devtools explorer toggle button",
163
+ style: styles.modernToggleButton,
164
+ onPress: handleClick,
165
+ hitSlop: HIT_SLOP_OPTIMIZED,
166
+ activeOpacity: 0.8,
167
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
168
+ style: [styles.toggleBadge, badgeStyle],
169
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
170
+ style: [styles.toggleBadgeText, textStyle],
171
+ children: value ? "TRUE" : "FALSE"
172
+ })
173
+ }), itemsDeletable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
174
+ "sentry-label": "ignore devtools explorer delete button in toggle",
175
+ onPress: handleDelete,
176
+ style: styles.deleteButtonInToggle,
177
+ accessibilityLabel: "Delete item",
178
+ hitSlop: HIT_SLOP_OPTIMIZED,
179
+ activeOpacity: 0.7,
180
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Trash, {
181
+ size: 14,
182
+ strokeWidth: 2,
183
+ color: _sharedUi.buoyColors.error + "CC"
184
+ })
185
+ })]
186
+ });
187
+ }
188
+ // Optimized Explorer component following rule2 guidelines [[memory:4875251]]
189
+ /**
190
+ * Recursive data explorer component used for both editable and read-only JSON trees inside the
191
+ * React Query dev tools.
192
+ */
193
+ function Explorer({
194
+ editable,
195
+ label,
196
+ value,
197
+ defaultExpanded,
198
+ activeQuery,
199
+ dataPath,
200
+ itemsDeletable,
201
+ dataVersion = 0
202
+ }) {
203
+ const queryClient = (0, _reactQuery.useQueryClient)();
204
+ const [isRowFocused, setIsRowFocused] = (0, _react.useState)(false);
205
+
206
+ // Local state for input value to handle typing properly
207
+ const [localInputValue, setLocalInputValue] = (0, _react.useState)("");
208
+
209
+ // Sync local state with prop value
210
+ // ⚠️ CRITICAL: Do NOT add localInputValue to the dependency array!
211
+ // Adding localInputValue causes a race condition where user edits get reverted:
212
+ // 1. User types "5101" → setLocalInputValue("5101")
213
+ // 2. Cache updates
214
+ // 3. useEffect fires because localInputValue changed
215
+ // 4. At this moment, value prop is still old (5100)
216
+ // 5. Syncs back to 5100, reverting user's change ❌
217
+ // Only sync when EXTERNAL changes happen (value, label, dataVersion)
218
+ (0, _react.useEffect)(() => {
219
+ if (value !== null && value !== undefined && (typeof value === "string" || typeof value === "number")) {
220
+ const newValue = value.toString();
221
+ setLocalInputValue(newValue);
222
+ }
223
+ }, [value, label, dataVersion]); // ⚠️ DO NOT add localInputValue here!
224
+
225
+ // Determine if this is a main section
226
+ const isMainSection = (0, _react.useMemo)(() => {
227
+ const upperLabel = label.toUpperCase();
228
+ return ["DATA", "QUERY", "QUERYKEY", "TYPES", "STATS", "OPTIONS", "OBSERVERS"].includes(upperLabel);
229
+ }, [label]);
230
+
231
+ // Explorer's section is expanded or collapsed
232
+ const [isExpanded, setIsExpanded] = (0, _react.useState)((defaultExpanded || []).includes(label));
233
+ // Remove unnecessary useCallback - simple state setter [[memory:4875251]]
234
+ const toggleExpanded = () => setIsExpanded(old => !old);
235
+ const [expandedPages, setExpandedPages] = (0, _react.useState)([]);
236
+
237
+ // Optimized subEntries computation with early returns and limited processing [[memory:4875251]]
238
+ const subEntries = (0, _react.useMemo)(() => {
239
+ // Early return for primitive values to avoid unnecessary computation
240
+ if (value === null || value === undefined || typeof value !== "object") {
241
+ return [];
242
+ }
243
+ if (Array.isArray(value)) {
244
+ // Limit array processing for performance [[memory:4875251]]
245
+ const limitedValue = value.length > 1000 ? value.slice(0, 1000) : value;
246
+ return limitedValue.map((d, i) => ({
247
+ label: i.toString(),
248
+ value: d
249
+ }));
250
+ }
251
+ if (value instanceof Map) {
252
+ // Limit Map entries for performance
253
+ const entries = Array.from(value.entries()).slice(0, 1000);
254
+ return entries.map(([key, val]) => ({
255
+ label: key.toString(),
256
+ value: val
257
+ }));
258
+ }
259
+ if (value instanceof Set) {
260
+ // Limit Set entries for performance
261
+ const entries = Array.from(value).slice(0, 1000);
262
+ return entries.map((val, i) => ({
263
+ label: i.toString(),
264
+ value: val
265
+ }));
266
+ }
267
+
268
+ // Handle regular objects with key limiting
269
+ const entries = Object.entries(value).slice(0, 1000);
270
+ return entries.map(([key, val]) => ({
271
+ label: key,
272
+ value: val
273
+ }));
274
+ }, [value]);
275
+
276
+ // Optimized valueType computation with early returns [[memory:4875251]]
277
+ const valueType = (0, _react.useMemo)(() => {
278
+ if (Array.isArray(value)) return "array";
279
+ if (value === null || typeof value !== "object") return typeof value;
280
+ if (value instanceof Map || value instanceof Set) return "Iterable";
281
+ return "object";
282
+ }, [value]);
283
+
284
+ // Optimized chunking with stable chunk size [[memory:4875251]]
285
+ const subEntryPages = (0, _react.useMemo)(() => {
286
+ return chunkArray(subEntries, CHUNK_SIZE);
287
+ }, [subEntries]);
288
+ const currentDataPath = dataPath ?? [];
289
+
290
+ // Optimize handleChange using refs to avoid dependency arrays [[memory:4875251]]
291
+ const activeQueryRef = (0, _react.useRef)(activeQuery);
292
+ const dataPathRef = (0, _react.useRef)(currentDataPath);
293
+ const valueTypeRef = (0, _react.useRef)(valueType);
294
+ activeQueryRef.current = activeQuery;
295
+ dataPathRef.current = currentDataPath;
296
+ valueTypeRef.current = valueType;
297
+ const handleChange = (0, _react.useCallback)((isNumber, newValue) => {
298
+ // Update local state immediately for responsive typing
299
+ setLocalInputValue(newValue);
300
+ if (!activeQueryRef.current) return;
301
+ const oldData = activeQueryRef.current.state.data;
302
+ if (isNumber && isNaN(Number(newValue))) return;
303
+ const updatedValue = valueTypeRef.current === "number" ? Number(newValue) : newValue;
304
+ const newData = (0, _updateNestedDataByPath.updateNestedDataByPath)(oldData, dataPathRef.current, updatedValue);
305
+ queryClient.setQueryData(activeQueryRef.current.queryKey, newData);
306
+ }, [queryClient, setLocalInputValue]);
307
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
308
+ style: styles.minWidthWrapper,
309
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
310
+ style: styles.fullWidthMarginRight,
311
+ children: [subEntryPages.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
312
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
313
+ style: [styles.flexRowItemsCenterGap, isMainSection && styles.flexRowItemsCenterGapMain],
314
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
315
+ "sentry-label": "ignore devtools explorer expander button",
316
+ style: styles.expanderButton,
317
+ onPress: toggleExpanded,
318
+ hitSlop: HIT_SLOP_OPTIMIZED,
319
+ activeOpacity: 0.6,
320
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Expander, {
321
+ expanded: isExpanded,
322
+ isFocused: isRowFocused,
323
+ isMain: isMainSection
324
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
325
+ style: [styles.labelText, isRowFocused && styles.labelTextFocused, isMainSection && styles.labelTextMain],
326
+ children: label
327
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
328
+ style: styles.textGray500,
329
+ children: `${String(valueType).toLowerCase() === "iterable" ? "(Iterable) " : ""}${subEntries.length} ${subEntries.length > 1 ? `items` : `item`}`
330
+ })]
331
+ }), editable && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
332
+ style: styles.flexRowGapItemsCenter,
333
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CopyButton, {
334
+ value: value,
335
+ isFocused: isRowFocused
336
+ }), itemsDeletable && activeQuery !== undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)(DeleteItemButton, {
337
+ activeQuery: activeQuery,
338
+ dataPath: currentDataPath,
339
+ isFocused: isRowFocused
340
+ }), valueType === "array" && activeQuery !== undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)(ClearArrayButton, {
341
+ activeQuery: activeQuery,
342
+ dataPath: currentDataPath,
343
+ isFocused: isRowFocused
344
+ })]
345
+ })]
346
+ }), isExpanded && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
347
+ children: [subEntryPages.length === 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
348
+ style: [styles.singleEntryContainer, isMainSection && styles.singleEntryContainerMain],
349
+ children: subEntries.map((entry, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Explorer, {
350
+ defaultExpanded: defaultExpanded,
351
+ label: entry.label,
352
+ value: entry.value,
353
+ editable: editable,
354
+ dataPath: [...currentDataPath, entry.label],
355
+ activeQuery: activeQuery,
356
+ itemsDeletable: valueType === "array" || valueType === "Iterable" || valueType === "object",
357
+ dataVersion: dataVersion
358
+ }, entry.label + index))
359
+ }), subEntryPages.length > 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
360
+ style: styles.multiEntryContainer,
361
+ children: subEntryPages.map((entries, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
362
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
363
+ style: styles.relativeOutlineNone,
364
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
365
+ "sentry-label": "ignore devtools explorer page toggle",
366
+ onPress: () => setExpandedPages(old => old.includes(index) ? old.filter(d => d !== index) : [...old, index]),
367
+ style: styles.pageExpanderButton,
368
+ hitSlop: HIT_SLOP_OPTIMIZED,
369
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Expander, {
370
+ expanded: expandedPages.includes(index)
371
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
372
+ style: styles.pageRangeText,
373
+ children: ["[", index * CHUNK_SIZE, "...", index * CHUNK_SIZE + CHUNK_SIZE - 1, "]"]
374
+ })]
375
+ }), expandedPages.includes(index) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
376
+ style: styles.entriesContainer,
377
+ children: entries.map(entry => /*#__PURE__*/(0, _jsxRuntime.jsx)(Explorer, {
378
+ defaultExpanded: defaultExpanded,
379
+ label: entry.label,
380
+ value: entry.value,
381
+ editable: editable,
382
+ dataPath: [...currentDataPath, entry.label],
383
+ activeQuery: activeQuery,
384
+ dataVersion: dataVersion
385
+ }, entry.label))
386
+ })]
387
+ })
388
+ }, index))
389
+ })]
390
+ })]
391
+ }), subEntryPages.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
392
+ style: styles.flexRowGapFullWidth,
393
+ children: [editable && activeQuery !== undefined && (valueType === "string" || valueType === "number" || valueType === "boolean") ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
394
+ children: [editable && activeQuery && (valueType === "string" || valueType === "number") && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
395
+ style: styles.nebulaInputWrapper,
396
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_dataViewer.CyberpunkInput, {
397
+ label: label,
398
+ accessibilityLabel: "Data input field for editing values",
399
+ style: [valueType === "number" ? styles.textNumber : styles.textString],
400
+ keyboardType: valueType === "number" ? "numeric" : "default",
401
+ value: localInputValue,
402
+ onChangeText: newValue => handleChange(valueType === "number", newValue),
403
+ onFocus: () => setIsRowFocused(true),
404
+ onBlur: () => setIsRowFocused(false),
405
+ showNumberControls: valueType === "number",
406
+ onIncrement: () => {
407
+ const currentNum = Number(localInputValue) || 0;
408
+ handleChange(true, String(currentNum + 1));
409
+ },
410
+ onDecrement: () => {
411
+ const currentNum = Number(localInputValue) || 0;
412
+ handleChange(true, String(currentNum - 1));
413
+ },
414
+ showDeleteButton: itemsDeletable,
415
+ onDelete: () => {
416
+ (0, _deleteItem.default)({
417
+ queryClient,
418
+ activeQuery,
419
+ dataPath: currentDataPath
420
+ });
421
+ }
422
+ })
423
+ }), valueType === "boolean" && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
424
+ style: styles.booleanRowContainer,
425
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
426
+ style: styles.booleanLabel,
427
+ children: label
428
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
429
+ style: styles.booleanToggleWrapper,
430
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ToggleValueButton, {
431
+ activeQuery: activeQuery,
432
+ dataPath: currentDataPath,
433
+ value: value,
434
+ itemsDeletable: itemsDeletable
435
+ })
436
+ })]
437
+ })]
438
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
439
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
440
+ style: styles.text344054,
441
+ children: label
442
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
443
+ style: styles.displayValueText,
444
+ children: (0, _sharedUi.displayValue)(value)
445
+ })]
446
+ }), editable && itemsDeletable && activeQuery !== undefined && valueType !== "string" && valueType !== "number" && valueType !== "boolean" && /*#__PURE__*/(0, _jsxRuntime.jsx)(DeleteItemButton, {
447
+ activeQuery: activeQuery,
448
+ dataPath: currentDataPath,
449
+ isFocused: isRowFocused
450
+ })]
451
+ })]
452
+ })
453
+ });
454
+ }
455
+ const styles = _reactNative.StyleSheet.create({
456
+ buttonStyle: {
457
+ backgroundColor: _sharedUi.buoyColors.card + "E6",
458
+ borderWidth: 1,
459
+ borderColor: _sharedUi.buoyColors.textSecondary + "33",
460
+ borderRadius: 6,
461
+ flexDirection: "row",
462
+ alignItems: "center",
463
+ justifyContent: "center",
464
+ width: 28,
465
+ height: 28,
466
+ position: "relative",
467
+ shadowColor: "#000",
468
+ shadowOffset: {
469
+ width: 0,
470
+ height: 1
471
+ },
472
+ shadowOpacity: 0.2,
473
+ shadowRadius: 2
474
+ },
475
+ buttonStyleFocused: {
476
+ borderColor: _sharedUi.buoyColors.primary + "CC",
477
+ backgroundColor: _sharedUi.buoyColors.primary + "26",
478
+ shadowColor: _sharedUi.buoyColors.primary,
479
+ shadowOpacity: 0.3,
480
+ shadowRadius: 4
481
+ },
482
+ deleteButton: {
483
+ backgroundColor: _sharedUi.buoyColors.error + "1A",
484
+ borderColor: _sharedUi.buoyColors.error + "4D",
485
+ borderWidth: 1,
486
+ borderRadius: 6,
487
+ padding: 0,
488
+ alignItems: "center",
489
+ justifyContent: "center",
490
+ width: 28,
491
+ height: 28,
492
+ position: "relative",
493
+ shadowColor: _sharedUi.buoyColors.error,
494
+ shadowOffset: {
495
+ width: 0,
496
+ height: 0
497
+ },
498
+ shadowOpacity: 0.15,
499
+ shadowRadius: 3
500
+ },
501
+ deleteButtonFocused: {
502
+ borderColor: _sharedUi.buoyColors.error + "CC",
503
+ backgroundColor: _sharedUi.buoyColors.error + "33",
504
+ shadowOpacity: 0.3,
505
+ shadowRadius: 5
506
+ },
507
+ deleteButtonInToggle: {
508
+ backgroundColor: _sharedUi.buoyColors.error + "1A",
509
+ borderColor: _sharedUi.buoyColors.error + "4D",
510
+ borderWidth: 1,
511
+ borderRadius: 6,
512
+ padding: 0,
513
+ alignItems: "center",
514
+ justifyContent: "center",
515
+ width: 28,
516
+ height: 28,
517
+ shadowColor: _sharedUi.buoyColors.error,
518
+ shadowOffset: {
519
+ width: 0,
520
+ height: 0
521
+ },
522
+ shadowOpacity: 0.15,
523
+ shadowRadius: 3
524
+ },
525
+ clearButton: {
526
+ backgroundColor: _sharedUi.buoyColors.warning + "1A",
527
+ borderWidth: 1,
528
+ borderColor: _sharedUi.buoyColors.warning + "4D",
529
+ borderRadius: 6,
530
+ flexDirection: "row",
531
+ padding: 0,
532
+ alignItems: "center",
533
+ justifyContent: "center",
534
+ width: 28,
535
+ height: 28,
536
+ position: "relative",
537
+ zIndex: 10,
538
+ shadowColor: _sharedUi.buoyColors.warning,
539
+ shadowOffset: {
540
+ width: 0,
541
+ height: 0
542
+ },
543
+ shadowOpacity: 0.15,
544
+ shadowRadius: 3
545
+ },
546
+ clearButtonFocused: {
547
+ borderColor: _sharedUi.buoyColors.warning + "CC",
548
+ backgroundColor: _sharedUi.buoyColors.warning + "33",
549
+ shadowOpacity: 0.3,
550
+ shadowRadius: 5
551
+ },
552
+ clearButtonText: {
553
+ fontSize: 12,
554
+ fontWeight: "700",
555
+ fontFamily: "monospace"
556
+ },
557
+ expanderIcon: {
558
+ width: 18,
559
+ height: 18,
560
+ alignItems: "center",
561
+ justifyContent: "center",
562
+ marginRight: 1,
563
+ backgroundColor: _sharedUi.buoyColors.textSecondary + "14",
564
+ borderRadius: 3
565
+ },
566
+ expanderIconMain: {
567
+ backgroundColor: _sharedUi.buoyColors.textSecondary + "1A",
568
+ width: 20,
569
+ height: 20,
570
+ borderRadius: 4,
571
+ borderWidth: 0.5,
572
+ borderColor: _sharedUi.buoyColors.textSecondary + "33"
573
+ },
574
+ expanded: {
575
+ transform: [{
576
+ rotate: "0deg"
577
+ }]
578
+ },
579
+ collapsed: {
580
+ transform: [{
581
+ rotate: "0deg"
582
+ }]
583
+ },
584
+ minWidthWrapper: {
585
+ minWidth: 180,
586
+ fontSize: 11,
587
+ flexDirection: "row",
588
+ flexWrap: "wrap",
589
+ width: "100%",
590
+ marginVertical: 0.5
591
+ },
592
+ fullWidthMarginRight: {
593
+ position: "relative",
594
+ width: "100%",
595
+ marginRight: 1
596
+ },
597
+ flexRowItemsCenterGap: {
598
+ flexDirection: "row",
599
+ alignItems: "center",
600
+ justifyContent: "space-between",
601
+ paddingVertical: 3,
602
+ paddingHorizontal: 6,
603
+ marginVertical: 1,
604
+ borderRadius: 4,
605
+ backgroundColor: _sharedUi.buoyColors.card + "66",
606
+ borderWidth: 0.5,
607
+ borderColor: _sharedUi.buoyColors.textSecondary + "1A"
608
+ },
609
+ flexRowItemsCenterGapMain: {
610
+ backgroundColor: _sharedUi.buoyColors.card + "E6",
611
+ borderLeftWidth: 2.5,
612
+ borderLeftColor: _sharedUi.buoyColors.textSecondary + "80",
613
+ borderColor: _sharedUi.buoyColors.textSecondary + "26",
614
+ paddingVertical: 5,
615
+ paddingHorizontal: 8,
616
+ marginBottom: 3,
617
+ borderWidth: 1,
618
+ shadowColor: "#000",
619
+ shadowOffset: {
620
+ width: 0,
621
+ height: 0
622
+ },
623
+ shadowOpacity: 0.08,
624
+ shadowRadius: 3
625
+ },
626
+ expanderButton: {
627
+ flexDirection: "row",
628
+ alignItems: "center",
629
+ backgroundColor: "transparent",
630
+ paddingVertical: 1,
631
+ paddingHorizontal: 2,
632
+ gap: 6,
633
+ borderWidth: 0,
634
+ minHeight: 24,
635
+ flex: 1
636
+ },
637
+ labelText: {
638
+ color: _sharedUi.buoyColors.textSecondary,
639
+ fontSize: 10,
640
+ fontWeight: "600",
641
+ marginRight: 4,
642
+ fontFamily: "monospace",
643
+ letterSpacing: 0.4
644
+ },
645
+ labelTextFocused: {
646
+ color: _sharedUi.buoyColors.text
647
+ },
648
+ labelTextMain: {
649
+ color: _sharedUi.buoyColors.text,
650
+ fontSize: 11,
651
+ fontWeight: "700",
652
+ letterSpacing: 0.6
653
+ },
654
+ textGray500: {
655
+ color: _sharedUi.buoyColors.textMuted,
656
+ fontSize: 10,
657
+ fontWeight: "400",
658
+ fontFamily: "monospace",
659
+ opacity: 0.7
660
+ },
661
+ pageRangeText: {
662
+ color: _sharedUi.buoyColors.textSecondary,
663
+ fontSize: 10,
664
+ fontWeight: "600",
665
+ fontFamily: "monospace"
666
+ },
667
+ flexRowGapItemsCenter: {
668
+ flexDirection: "row",
669
+ alignItems: "center",
670
+ gap: 4,
671
+ paddingLeft: 2
672
+ },
673
+ singleEntryContainer: {
674
+ marginLeft: 2,
675
+ marginTop: 2,
676
+ paddingLeft: 8,
677
+ borderLeftWidth: 1.5,
678
+ borderLeftColor: _sharedUi.buoyColors.textSecondary + "40"
679
+ },
680
+ singleEntryContainerMain: {
681
+ borderLeftColor: _sharedUi.buoyColors.textSecondary + "4D",
682
+ marginLeft: 4,
683
+ paddingLeft: 10
684
+ },
685
+ multiEntryContainer: {
686
+ marginLeft: 2,
687
+ marginTop: 2,
688
+ paddingLeft: 8,
689
+ borderLeftWidth: 1.5,
690
+ borderLeftColor: _sharedUi.buoyColors.textSecondary + "40"
691
+ },
692
+ multiEntryContainerMain: {
693
+ borderLeftColor: _sharedUi.buoyColors.textSecondary + "4D",
694
+ marginLeft: 4,
695
+ paddingLeft: 10
696
+ },
697
+ relativeOutlineNone: {
698
+ position: "relative"
699
+ },
700
+ pageExpanderButton: {
701
+ flexDirection: "row",
702
+ alignItems: "center",
703
+ backgroundColor: _sharedUi.buoyColors.card + "66",
704
+ paddingVertical: 3,
705
+ paddingHorizontal: 6,
706
+ gap: 6,
707
+ borderRadius: 4,
708
+ borderWidth: 0.5,
709
+ borderColor: _sharedUi.buoyColors.textSecondary + "1A",
710
+ marginBottom: 2,
711
+ minHeight: 24
712
+ },
713
+ entriesContainer: {
714
+ marginLeft: 2,
715
+ paddingLeft: 8,
716
+ marginTop: 2,
717
+ borderLeftWidth: 1.5,
718
+ borderLeftColor: _sharedUi.buoyColors.textSecondary + "40"
719
+ },
720
+ textNumber: {
721
+ color: _sharedUi.buoyColors.text,
722
+ fontWeight: "600",
723
+ fontFamily: "monospace"
724
+ },
725
+ textString: {
726
+ color: _sharedUi.buoyColors.text,
727
+ fontFamily: "monospace"
728
+ },
729
+ flexRowGapFullWidth: {
730
+ flexDirection: "row",
731
+ width: "100%",
732
+ alignItems: "center",
733
+ marginVertical: 1,
734
+ gap: 6,
735
+ paddingHorizontal: 4,
736
+ paddingVertical: 2,
737
+ borderRadius: 3
738
+ },
739
+ text344054: {
740
+ color: _sharedUi.buoyColors.textSecondary,
741
+ fontWeight: "600",
742
+ fontSize: 9,
743
+ minWidth: 50,
744
+ fontFamily: "monospace",
745
+ letterSpacing: 0.4,
746
+ opacity: 0.8
747
+ },
748
+ numberInputButtons: {
749
+ position: "absolute",
750
+ right: 8,
751
+ top: "50%",
752
+ transform: [{
753
+ translateY: -18
754
+ }],
755
+ flexDirection: "row",
756
+ gap: 4,
757
+ zIndex: 10
758
+ },
759
+ touchableButton: {
760
+ width: 32,
761
+ height: 32,
762
+ borderRadius: 6,
763
+ backgroundColor: _sharedUi.buoyColors.card + "E6",
764
+ borderWidth: 1,
765
+ borderColor: _sharedUi.buoyColors.textSecondary + "33",
766
+ alignItems: "center",
767
+ justifyContent: "center",
768
+ marginLeft: 2,
769
+ shadowColor: "#000",
770
+ shadowOffset: {
771
+ width: 0,
772
+ height: 1
773
+ },
774
+ shadowOpacity: 0.2,
775
+ shadowRadius: 2
776
+ },
777
+ touchableButtonFocused: {
778
+ borderColor: _sharedUi.buoyColors.primary + "CC",
779
+ backgroundColor: _sharedUi.buoyColors.primary + "26",
780
+ shadowColor: _sharedUi.buoyColors.primary,
781
+ shadowOffset: {
782
+ width: 0,
783
+ height: 0
784
+ },
785
+ shadowOpacity: 0.3,
786
+ shadowRadius: 4,
787
+ elevation: 3
788
+ },
789
+ nebulaInputWrapper: {
790
+ flex: 1,
791
+ width: "100%",
792
+ position: "relative"
793
+ },
794
+ displayValueText: {
795
+ flex: 1,
796
+ color: _sharedUi.buoyColors.text,
797
+ fontWeight: "400",
798
+ fontFamily: "monospace",
799
+ fontSize: 12,
800
+ paddingVertical: 6,
801
+ paddingHorizontal: 10,
802
+ borderRadius: 6,
803
+ borderWidth: 1,
804
+ borderColor: _sharedUi.buoyColors.textMuted + "66",
805
+ minHeight: 34
806
+ },
807
+ // New redesigned styles (kept for future use)
808
+ dataRow: {
809
+ flexDirection: "row",
810
+ alignItems: "center",
811
+ paddingVertical: 4,
812
+ paddingHorizontal: 8,
813
+ minHeight: 44,
814
+ gap: 12
815
+ },
816
+ dataLabel: {
817
+ color: _sharedUi.buoyColors.textSecondary,
818
+ fontSize: 13,
819
+ fontWeight: "500",
820
+ minWidth: 80,
821
+ flexShrink: 0
822
+ },
823
+ dataValueContainer: {
824
+ flex: 1,
825
+ flexDirection: "row",
826
+ alignItems: "center"
827
+ },
828
+ inputWithActions: {
829
+ flex: 1,
830
+ position: "relative"
831
+ },
832
+ numberControls: {
833
+ position: "absolute",
834
+ right: 8,
835
+ top: "50%",
836
+ transform: [{
837
+ translateY: -16
838
+ }],
839
+ flexDirection: "column",
840
+ gap: 2
841
+ },
842
+ numberButton: {
843
+ width: 32,
844
+ height: 16,
845
+ borderRadius: 4,
846
+ alignItems: "center",
847
+ justifyContent: "center",
848
+ borderWidth: 1,
849
+ borderColor: _sharedUi.buoyColors.primary + "0F"
850
+ },
851
+ readOnlyValue: {
852
+ color: _sharedUi.buoyColors.text,
853
+ fontSize: 13,
854
+ fontFamily: "monospace",
855
+ paddingVertical: 8,
856
+ paddingHorizontal: 12,
857
+ borderRadius: 6,
858
+ borderWidth: 1,
859
+ borderColor: _sharedUi.buoyColors.textMuted + "33",
860
+ flex: 1
861
+ },
862
+ actionButtons: {
863
+ flexDirection: "row",
864
+ gap: 6,
865
+ paddingLeft: 8
866
+ },
867
+ booleanContainer: {
868
+ flexDirection: "row",
869
+ alignItems: "center",
870
+ padding: 8,
871
+ borderRadius: 6,
872
+ borderWidth: 1,
873
+ borderColor: _sharedUi.buoyColors.textMuted + "4D",
874
+ flex: 1
875
+ },
876
+ booleanText: {
877
+ marginLeft: 8,
878
+ color: _sharedUi.buoyColors.warning,
879
+ fontWeight: "500",
880
+ fontFamily: "monospace"
881
+ },
882
+ modernToggleButton: {
883
+ flexDirection: "row",
884
+ alignItems: "center",
885
+ justifyContent: "space-between",
886
+ borderRadius: 6,
887
+ borderWidth: 1,
888
+ borderColor: _sharedUi.buoyColors.textMuted + "99",
889
+ paddingHorizontal: 8,
890
+ paddingVertical: 6,
891
+ marginVertical: 2,
892
+ minHeight: 34,
893
+ gap: 8
894
+ },
895
+ toggleIconContainer: {
896
+ marginRight: 6
897
+ },
898
+ toggleIcon: {
899
+ padding: 8,
900
+ borderRadius: 8,
901
+ alignItems: "center",
902
+ justifyContent: "center",
903
+ width: 32,
904
+ height: 32
905
+ },
906
+ toggleIconSmall: {
907
+ width: 8,
908
+ height: 8,
909
+ borderRadius: 4
910
+ },
911
+ toggleContent: {
912
+ flex: 1,
913
+ minWidth: 0
914
+ },
915
+ toggleLabel: {
916
+ color: "#E5E7EB",
917
+ fontSize: 11,
918
+ fontWeight: "600",
919
+ fontFamily: "monospace",
920
+ letterSpacing: 0.3
921
+ },
922
+ toggleStatus: {
923
+ color: "#9CA3AF",
924
+ fontSize: 11
925
+ },
926
+ toggleBadge: {
927
+ marginLeft: 6,
928
+ paddingHorizontal: 6,
929
+ paddingVertical: 3,
930
+ borderRadius: 4,
931
+ borderWidth: 1
932
+ },
933
+ toggleBadgeText: {
934
+ fontSize: 9,
935
+ fontWeight: "700",
936
+ textTransform: "uppercase",
937
+ letterSpacing: 0.8,
938
+ fontFamily: "monospace"
939
+ },
940
+ // Pre-computed toggle icon styles to avoid inline objects [[memory:4875251]]
941
+ toggleIconTrue: {
942
+ backgroundColor: _sharedUi.buoyColors.primary
943
+ },
944
+ toggleIconFalse: {
945
+ backgroundColor: _sharedUi.buoyColors.textMuted
946
+ },
947
+ // Pre-computed toggle badge styles [[memory:4875251]]
948
+ toggleBadgeTrue: {
949
+ backgroundColor: _sharedUi.buoyColors.primary + "1A",
950
+ borderColor: _sharedUi.buoyColors.primary + "4D"
951
+ },
952
+ toggleBadgeFalse: {
953
+ backgroundColor: _sharedUi.buoyColors.textMuted + "1A",
954
+ borderColor: _sharedUi.buoyColors.textMuted + "4D"
955
+ },
956
+ // Pre-computed toggle text styles [[memory:4875251]]
957
+ toggleTextTrue: {
958
+ color: _sharedUi.buoyColors.primary,
959
+ fontWeight: "600"
960
+ },
961
+ toggleTextFalse: {
962
+ color: _sharedUi.buoyColors.textSecondary,
963
+ fontWeight: "500"
964
+ },
965
+ // Boolean row container styles
966
+ booleanRowContainer: {
967
+ flexDirection: "row",
968
+ alignItems: "center",
969
+ width: "100%",
970
+ gap: 8,
971
+ paddingVertical: 2
972
+ },
973
+ booleanLabel: {
974
+ color: _sharedUi.buoyColors.textSecondary,
975
+ fontSize: 10,
976
+ fontWeight: "600",
977
+ fontFamily: "monospace",
978
+ letterSpacing: 0.4,
979
+ minWidth: 60,
980
+ flexShrink: 0
981
+ },
982
+ booleanToggleWrapper: {
983
+ flex: 1
984
+ }
985
+ });