@buoy-gg/shared-ui 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 (820) hide show
  1. package/README.md +34 -0
  2. package/lib/commonjs/JsModal.js +1473 -0
  3. package/lib/commonjs/clipboard/autoDetectClipboard.js +67 -0
  4. package/lib/commonjs/clipboard/clipboard-impl.js +26 -0
  5. package/lib/commonjs/clipboard/copyToClipboard.js +66 -0
  6. package/lib/commonjs/clipboard/index.js +25 -0
  7. package/lib/commonjs/context/HintsContext.js +49 -0
  8. package/lib/commonjs/context/index.js +24 -0
  9. package/lib/commonjs/dataViewer/CyberpunkInput.js +382 -0
  10. package/lib/commonjs/dataViewer/DataViewer.js +142 -0
  11. package/lib/commonjs/dataViewer/DiffSummary.js +133 -0
  12. package/lib/commonjs/dataViewer/IndentGuides.js +128 -0
  13. package/lib/commonjs/dataViewer/IndentGuidesOverlay.js +104 -0
  14. package/lib/commonjs/dataViewer/SplitDiffViewer.js +420 -0
  15. package/lib/commonjs/dataViewer/TypeLegend.js +111 -0
  16. package/lib/commonjs/dataViewer/VirtualizedDataExplorer.js +1057 -0
  17. package/lib/commonjs/dataViewer/diffThemes.js +108 -0
  18. package/lib/commonjs/dataViewer/index.js +101 -0
  19. package/lib/commonjs/dataViewer/lineDiff.js +366 -0
  20. package/lib/commonjs/dataViewer/tree/TreeDiffViewer.js +887 -0
  21. package/lib/commonjs/env/EnvironmentIndicator.js +121 -0
  22. package/lib/commonjs/env/EnvironmentSelector.js +204 -0
  23. package/lib/commonjs/env/EnvironmentSelectorInline.js +298 -0
  24. package/lib/commonjs/hooks/index.js +44 -0
  25. package/lib/commonjs/hooks/safe-area-impl.js +28 -0
  26. package/lib/commonjs/hooks/useDeviceInfo.js +524 -0
  27. package/lib/commonjs/hooks/useFilterManager.js +136 -0
  28. package/lib/commonjs/hooks/useSafeAreaInsets.js +256 -0
  29. package/lib/commonjs/icons/BenchmarkIcon.js +109 -0
  30. package/lib/commonjs/icons/EnvLaptopIcon.js +204 -0
  31. package/lib/commonjs/icons/IconBackground.js +279 -0
  32. package/lib/commonjs/icons/ReactQueryIcon.js +169 -0
  33. package/lib/commonjs/icons/RenderCountIcon.js +147 -0
  34. package/lib/commonjs/icons/RouteMapIcon.js +250 -0
  35. package/lib/commonjs/icons/SentryBugIcon.js +181 -0
  36. package/lib/commonjs/icons/StackPulseIcon.js +158 -0
  37. package/lib/commonjs/icons/StorageStackIcon.js +156 -0
  38. package/lib/commonjs/icons/WifiCircuitIcon.js +169 -0
  39. package/lib/commonjs/icons/index.js +175 -0
  40. package/lib/commonjs/icons/lucide-icons-original-full.js +3244 -0
  41. package/lib/commonjs/icons/lucide-icons.js +2252 -0
  42. package/lib/commonjs/icons/primitives/GlobeIcon.js +66 -0
  43. package/lib/commonjs/icons/primitives/icon-primitives.js +169 -0
  44. package/lib/commonjs/icons/primitives/index.js +49 -0
  45. package/lib/commonjs/index.js +485 -0
  46. package/lib/commonjs/license/FeatureGate.js +764 -0
  47. package/lib/commonjs/license/LicenseEntryModal.js +950 -0
  48. package/lib/commonjs/license/ManageDevicesModal.js +545 -0
  49. package/lib/commonjs/license/index.js +62 -0
  50. package/lib/commonjs/logger/index-sentry.js +245 -0
  51. package/lib/commonjs/logger/index.js +62 -0
  52. package/lib/commonjs/logger/logDump.js +19 -0
  53. package/lib/commonjs/logger/types.js +38 -0
  54. package/lib/commonjs/package.json +1 -0
  55. package/lib/commonjs/settings/components/BubbleSettingsSection.js +382 -0
  56. package/lib/commonjs/settings/index.js +24 -0
  57. package/lib/commonjs/storage/devToolsStorageKeys.js +235 -0
  58. package/lib/commonjs/storage/index.js +18 -0
  59. package/lib/commonjs/types/index.js +16 -0
  60. package/lib/commonjs/types/types.d.js +1 -0
  61. package/lib/commonjs/types/types.js +12 -0
  62. package/lib/commonjs/ui/components/BackButton.js +47 -0
  63. package/lib/commonjs/ui/components/Badge.js +221 -0
  64. package/lib/commonjs/ui/components/ClipboardHintBanner.js +149 -0
  65. package/lib/commonjs/ui/components/CollapsibleSection.js +170 -0
  66. package/lib/commonjs/ui/components/CompactFilterChips.js +114 -0
  67. package/lib/commonjs/ui/components/CompactRow.js +230 -0
  68. package/lib/commonjs/ui/components/CopyButton.js +256 -0
  69. package/lib/commonjs/ui/components/DataInspector.js +322 -0
  70. package/lib/commonjs/ui/components/DetailView.js +357 -0
  71. package/lib/commonjs/ui/components/Divider.js +18 -0
  72. package/lib/commonjs/ui/components/DraggableHeader.js +144 -0
  73. package/lib/commonjs/ui/components/DynamicFilterView.js +725 -0
  74. package/lib/commonjs/ui/components/EmptyState.js +136 -0
  75. package/lib/commonjs/ui/components/ErrorBoundary.js +112 -0
  76. package/lib/commonjs/ui/components/EventHistoryViewer/CompareBar.js +210 -0
  77. package/lib/commonjs/ui/components/EventHistoryViewer/DiffModeTabs.js +90 -0
  78. package/lib/commonjs/ui/components/EventHistoryViewer/EventHistoryViewer.js +130 -0
  79. package/lib/commonjs/ui/components/EventHistoryViewer/EventPickerModal.js +206 -0
  80. package/lib/commonjs/ui/components/EventHistoryViewer/ViewToggleCards.js +137 -0
  81. package/lib/commonjs/ui/components/EventHistoryViewer/index.js +40 -0
  82. package/lib/commonjs/ui/components/EventHistoryViewer/types.js +5 -0
  83. package/lib/commonjs/ui/components/EventListItem.js +247 -0
  84. package/lib/commonjs/ui/components/EventStepperFooter.js +148 -0
  85. package/lib/commonjs/ui/components/ExpandablePopover.js +341 -0
  86. package/lib/commonjs/ui/components/ExpandableSection.js +71 -0
  87. package/lib/commonjs/ui/components/ExpandableSectionHeader.js +86 -0
  88. package/lib/commonjs/ui/components/ExpandableSectionWithModal.js +182 -0
  89. package/lib/commonjs/ui/components/FilterComponents.js +267 -0
  90. package/lib/commonjs/ui/components/FilterViewPattern.js +174 -0
  91. package/lib/commonjs/ui/components/HeaderSearchButton.js +32 -0
  92. package/lib/commonjs/ui/components/ListItem.js +171 -0
  93. package/lib/commonjs/ui/components/ModalHeader.js +173 -0
  94. package/lib/commonjs/ui/components/ModalHintBanner.js +147 -0
  95. package/lib/commonjs/ui/components/SearchBar.js +264 -0
  96. package/lib/commonjs/ui/components/SectionHeader.js +125 -0
  97. package/lib/commonjs/ui/components/StatsCard.js +198 -0
  98. package/lib/commonjs/ui/components/StatusIndicator.js +231 -0
  99. package/lib/commonjs/ui/components/StorageTypeBadge.js +96 -0
  100. package/lib/commonjs/ui/components/TabSelector.js +70 -0
  101. package/lib/commonjs/ui/components/TimeDisplay.js +142 -0
  102. package/lib/commonjs/ui/components/TypeBadge.js +100 -0
  103. package/lib/commonjs/ui/components/ValueTypeBadge.js +146 -0
  104. package/lib/commonjs/ui/components/WindowControls.js +118 -0
  105. package/lib/commonjs/ui/components/index.js +323 -0
  106. package/lib/commonjs/ui/components/types.js +5 -0
  107. package/lib/commonjs/ui/console/BubbleSettingsModal.js +50 -0
  108. package/lib/commonjs/ui/console/ConsoleSection.js +50 -0
  109. package/lib/commonjs/ui/console/CyberpunkButtonOutline.js +261 -0
  110. package/lib/commonjs/ui/console/CyberpunkConsoleSection.js +649 -0
  111. package/lib/commonjs/ui/console/CyberpunkIconContainer.js +186 -0
  112. package/lib/commonjs/ui/console/CyberpunkSectionButton.js +122 -0
  113. package/lib/commonjs/ui/console/GalaxyButton.js +99 -0
  114. package/lib/commonjs/ui/console/index.js +12 -0
  115. package/lib/commonjs/ui/gameUI/components/GameUICollapsibleSection.js +120 -0
  116. package/lib/commonjs/ui/gameUI/components/GameUICompactStats.js +335 -0
  117. package/lib/commonjs/ui/gameUI/components/GameUIIssuesList.js +283 -0
  118. package/lib/commonjs/ui/gameUI/components/GameUIStatusHeader.js +143 -0
  119. package/lib/commonjs/ui/gameUI/constants/gameUIColors.js +186 -0
  120. package/lib/commonjs/ui/gameUI/constants/macOSDesignSystemColors.js +206 -0
  121. package/lib/commonjs/ui/gameUI/hooks/useGameUIAlertState.js +110 -0
  122. package/lib/commonjs/ui/gameUI/index.js +72 -0
  123. package/lib/commonjs/ui/index.js +39 -0
  124. package/lib/commonjs/utils/displayValue.js +41 -0
  125. package/lib/commonjs/utils/formatting/dataFormatting.js +73 -0
  126. package/lib/commonjs/utils/formatting/httpFormatting.js +153 -0
  127. package/lib/commonjs/utils/formatting/index.js +27 -0
  128. package/lib/commonjs/utils/getSafeAreaInsets.js +40 -0
  129. package/lib/commonjs/utils/index.js +175 -0
  130. package/lib/commonjs/utils/loadOptionalModule.js +94 -0
  131. package/lib/commonjs/utils/minimalSuperJSON.js +337 -0
  132. package/lib/commonjs/utils/persistentStorage.js +594 -0
  133. package/lib/commonjs/utils/safeAsyncStorage.js +71 -0
  134. package/lib/commonjs/utils/safeStringify.js +229 -0
  135. package/lib/commonjs/utils/time/formatRelativeTime.js +34 -0
  136. package/lib/commonjs/utils/time/index.js +12 -0
  137. package/lib/commonjs/utils/typeHelpers.js +142 -0
  138. package/lib/commonjs/utils/valueFormatting.js +140 -0
  139. package/lib/module/JsModal.js +1469 -0
  140. package/lib/module/clipboard/autoDetectClipboard.js +45 -0
  141. package/lib/module/clipboard/clipboard-impl.js +20 -0
  142. package/lib/module/clipboard/copyToClipboard.js +62 -0
  143. package/lib/module/clipboard/index.js +5 -0
  144. package/lib/module/context/HintsContext.js +43 -0
  145. package/lib/module/context/index.js +3 -0
  146. package/lib/module/dataViewer/CyberpunkInput.js +378 -0
  147. package/lib/module/dataViewer/DataViewer.js +137 -0
  148. package/lib/module/dataViewer/DiffSummary.js +128 -0
  149. package/lib/module/dataViewer/IndentGuides.js +124 -0
  150. package/lib/module/dataViewer/IndentGuidesOverlay.js +99 -0
  151. package/lib/module/dataViewer/SplitDiffViewer.js +415 -0
  152. package/lib/module/dataViewer/TypeLegend.js +105 -0
  153. package/lib/module/dataViewer/VirtualizedDataExplorer.js +1053 -0
  154. package/lib/module/dataViewer/diffThemes.js +104 -0
  155. package/lib/module/dataViewer/index.js +17 -0
  156. package/lib/module/dataViewer/lineDiff.js +362 -0
  157. package/lib/module/dataViewer/tree/TreeDiffViewer.js +882 -0
  158. package/lib/module/env/EnvironmentIndicator.js +117 -0
  159. package/lib/module/env/EnvironmentSelector.js +199 -0
  160. package/lib/module/env/EnvironmentSelectorInline.js +293 -0
  161. package/lib/module/hooks/index.js +6 -0
  162. package/lib/module/hooks/safe-area-impl.js +23 -0
  163. package/lib/module/hooks/useDeviceInfo.js +519 -0
  164. package/lib/module/hooks/useFilterManager.js +132 -0
  165. package/lib/module/hooks/useSafeAreaInsets.js +250 -0
  166. package/lib/module/icons/BenchmarkIcon.js +104 -0
  167. package/lib/module/icons/EnvLaptopIcon.js +199 -0
  168. package/lib/module/icons/IconBackground.js +274 -0
  169. package/lib/module/icons/ReactQueryIcon.js +164 -0
  170. package/lib/module/icons/RenderCountIcon.js +142 -0
  171. package/lib/module/icons/RouteMapIcon.js +245 -0
  172. package/lib/module/icons/SentryBugIcon.js +176 -0
  173. package/lib/module/icons/StackPulseIcon.js +153 -0
  174. package/lib/module/icons/StorageStackIcon.js +151 -0
  175. package/lib/module/icons/WifiCircuitIcon.js +164 -0
  176. package/lib/module/icons/index.js +23 -0
  177. package/lib/module/icons/lucide-icons-original-full.js +3174 -0
  178. package/lib/module/icons/lucide-icons.js +2199 -0
  179. package/lib/module/icons/primitives/GlobeIcon.js +61 -0
  180. package/lib/module/icons/primitives/icon-primitives.js +161 -0
  181. package/lib/module/icons/primitives/index.js +15 -0
  182. package/lib/module/index.js +58 -0
  183. package/lib/module/license/FeatureGate.js +754 -0
  184. package/lib/module/license/LicenseEntryModal.js +944 -0
  185. package/lib/module/license/ManageDevicesModal.js +539 -0
  186. package/lib/module/license/index.js +5 -0
  187. package/lib/module/logger/index-sentry.js +230 -0
  188. package/lib/module/logger/index.js +13 -0
  189. package/lib/module/logger/logDump.js +13 -0
  190. package/lib/module/logger/types.js +37 -0
  191. package/lib/module/package.json +1 -0
  192. package/lib/module/settings/components/BubbleSettingsSection.js +376 -0
  193. package/lib/module/settings/index.js +3 -0
  194. package/lib/module/storage/devToolsStorageKeys.js +228 -0
  195. package/lib/module/storage/index.js +3 -0
  196. package/lib/module/types/index.js +3 -0
  197. package/lib/module/types/types.d.js +1 -0
  198. package/lib/module/types/types.js +8 -0
  199. package/lib/module/ui/components/BackButton.js +43 -0
  200. package/lib/module/ui/components/Badge.js +213 -0
  201. package/lib/module/ui/components/ClipboardHintBanner.js +145 -0
  202. package/lib/module/ui/components/CollapsibleSection.js +166 -0
  203. package/lib/module/ui/components/CompactFilterChips.js +110 -0
  204. package/lib/module/ui/components/CompactRow.js +226 -0
  205. package/lib/module/ui/components/CopyButton.js +253 -0
  206. package/lib/module/ui/components/DataInspector.js +318 -0
  207. package/lib/module/ui/components/DetailView.js +353 -0
  208. package/lib/module/ui/components/Divider.js +14 -0
  209. package/lib/module/ui/components/DraggableHeader.js +140 -0
  210. package/lib/module/ui/components/DynamicFilterView.js +721 -0
  211. package/lib/module/ui/components/EmptyState.js +129 -0
  212. package/lib/module/ui/components/ErrorBoundary.js +107 -0
  213. package/lib/module/ui/components/EventHistoryViewer/CompareBar.js +205 -0
  214. package/lib/module/ui/components/EventHistoryViewer/DiffModeTabs.js +85 -0
  215. package/lib/module/ui/components/EventHistoryViewer/EventHistoryViewer.js +125 -0
  216. package/lib/module/ui/components/EventHistoryViewer/EventPickerModal.js +201 -0
  217. package/lib/module/ui/components/EventHistoryViewer/ViewToggleCards.js +132 -0
  218. package/lib/module/ui/components/EventHistoryViewer/index.js +19 -0
  219. package/lib/module/ui/components/EventHistoryViewer/types.js +3 -0
  220. package/lib/module/ui/components/EventListItem.js +243 -0
  221. package/lib/module/ui/components/EventStepperFooter.js +143 -0
  222. package/lib/module/ui/components/ExpandablePopover.js +338 -0
  223. package/lib/module/ui/components/ExpandableSection.js +67 -0
  224. package/lib/module/ui/components/ExpandableSectionHeader.js +82 -0
  225. package/lib/module/ui/components/ExpandableSectionWithModal.js +178 -0
  226. package/lib/module/ui/components/FilterComponents.js +259 -0
  227. package/lib/module/ui/components/FilterViewPattern.js +170 -0
  228. package/lib/module/ui/components/HeaderSearchButton.js +28 -0
  229. package/lib/module/ui/components/ListItem.js +167 -0
  230. package/lib/module/ui/components/ModalHeader.js +166 -0
  231. package/lib/module/ui/components/ModalHintBanner.js +143 -0
  232. package/lib/module/ui/components/SearchBar.js +260 -0
  233. package/lib/module/ui/components/SectionHeader.js +121 -0
  234. package/lib/module/ui/components/StatsCard.js +194 -0
  235. package/lib/module/ui/components/StatusIndicator.js +227 -0
  236. package/lib/module/ui/components/StorageTypeBadge.js +92 -0
  237. package/lib/module/ui/components/TabSelector.js +66 -0
  238. package/lib/module/ui/components/TimeDisplay.js +138 -0
  239. package/lib/module/ui/components/TypeBadge.js +96 -0
  240. package/lib/module/ui/components/ValueTypeBadge.js +142 -0
  241. package/lib/module/ui/components/WindowControls.js +114 -0
  242. package/lib/module/ui/components/index.js +33 -0
  243. package/lib/module/ui/components/types.js +3 -0
  244. package/lib/module/ui/console/BubbleSettingsModal.js +46 -0
  245. package/lib/module/ui/console/ConsoleSection.js +46 -0
  246. package/lib/module/ui/console/CyberpunkButtonOutline.js +257 -0
  247. package/lib/module/ui/console/CyberpunkConsoleSection.js +646 -0
  248. package/lib/module/ui/console/CyberpunkIconContainer.js +182 -0
  249. package/lib/module/ui/console/CyberpunkSectionButton.js +118 -0
  250. package/lib/module/ui/console/GalaxyButton.js +95 -0
  251. package/lib/module/ui/console/index.js +5 -0
  252. package/lib/module/ui/gameUI/components/GameUICollapsibleSection.js +116 -0
  253. package/lib/module/ui/gameUI/components/GameUICompactStats.js +331 -0
  254. package/lib/module/ui/gameUI/components/GameUIIssuesList.js +279 -0
  255. package/lib/module/ui/gameUI/components/GameUIStatusHeader.js +139 -0
  256. package/lib/module/ui/gameUI/constants/gameUIColors.js +183 -0
  257. package/lib/module/ui/gameUI/constants/macOSDesignSystemColors.js +202 -0
  258. package/lib/module/ui/gameUI/hooks/useGameUIAlertState.js +105 -0
  259. package/lib/module/ui/gameUI/index.js +19 -0
  260. package/lib/module/ui/index.js +12 -0
  261. package/lib/module/utils/displayValue.js +36 -0
  262. package/lib/module/utils/formatting/dataFormatting.js +66 -0
  263. package/lib/module/utils/formatting/httpFormatting.js +148 -0
  264. package/lib/module/utils/formatting/index.js +8 -0
  265. package/lib/module/utils/getSafeAreaInsets.js +36 -0
  266. package/lib/module/utils/index.js +10 -0
  267. package/lib/module/utils/loadOptionalModule.js +89 -0
  268. package/lib/module/utils/minimalSuperJSON.js +332 -0
  269. package/lib/module/utils/persistentStorage.js +588 -0
  270. package/lib/module/utils/safeAsyncStorage.js +64 -0
  271. package/lib/module/utils/safeStringify.js +225 -0
  272. package/lib/module/utils/time/formatRelativeTime.js +30 -0
  273. package/lib/module/utils/time/index.js +3 -0
  274. package/lib/module/utils/typeHelpers.js +130 -0
  275. package/lib/module/utils/valueFormatting.js +131 -0
  276. package/lib/typescript/commonjs/JsModal.d.ts +78 -0
  277. package/lib/typescript/commonjs/JsModal.d.ts.map +1 -0
  278. package/lib/typescript/commonjs/clipboard/autoDetectClipboard.d.ts +31 -0
  279. package/lib/typescript/commonjs/clipboard/autoDetectClipboard.d.ts.map +1 -0
  280. package/lib/typescript/commonjs/clipboard/clipboard-impl.d.ts +16 -0
  281. package/lib/typescript/commonjs/clipboard/clipboard-impl.d.ts.map +1 -0
  282. package/lib/typescript/commonjs/clipboard/copyToClipboard.d.ts +11 -0
  283. package/lib/typescript/commonjs/clipboard/copyToClipboard.d.ts.map +1 -0
  284. package/lib/typescript/commonjs/clipboard/index.d.ts +4 -0
  285. package/lib/typescript/commonjs/clipboard/index.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/context/HintsContext.d.ts +30 -0
  287. package/lib/typescript/commonjs/context/HintsContext.d.ts.map +1 -0
  288. package/lib/typescript/commonjs/context/index.d.ts +2 -0
  289. package/lib/typescript/commonjs/context/index.d.ts.map +1 -0
  290. package/lib/typescript/commonjs/dataViewer/CyberpunkInput.d.ts +13 -0
  291. package/lib/typescript/commonjs/dataViewer/CyberpunkInput.d.ts.map +1 -0
  292. package/lib/typescript/commonjs/dataViewer/DataViewer.d.ts +24 -0
  293. package/lib/typescript/commonjs/dataViewer/DataViewer.d.ts.map +1 -0
  294. package/lib/typescript/commonjs/dataViewer/DiffSummary.d.ts +26 -0
  295. package/lib/typescript/commonjs/dataViewer/DiffSummary.d.ts.map +1 -0
  296. package/lib/typescript/commonjs/dataViewer/IndentGuides.d.ts +16 -0
  297. package/lib/typescript/commonjs/dataViewer/IndentGuides.d.ts.map +1 -0
  298. package/lib/typescript/commonjs/dataViewer/IndentGuidesOverlay.d.ts +19 -0
  299. package/lib/typescript/commonjs/dataViewer/IndentGuidesOverlay.d.ts.map +1 -0
  300. package/lib/typescript/commonjs/dataViewer/SplitDiffViewer.d.ts +40 -0
  301. package/lib/typescript/commonjs/dataViewer/SplitDiffViewer.d.ts.map +1 -0
  302. package/lib/typescript/commonjs/dataViewer/TypeLegend.d.ts +18 -0
  303. package/lib/typescript/commonjs/dataViewer/TypeLegend.d.ts.map +1 -0
  304. package/lib/typescript/commonjs/dataViewer/VirtualizedDataExplorer.d.ts +14 -0
  305. package/lib/typescript/commonjs/dataViewer/VirtualizedDataExplorer.d.ts.map +1 -0
  306. package/lib/typescript/commonjs/dataViewer/diffThemes.d.ts +62 -0
  307. package/lib/typescript/commonjs/dataViewer/diffThemes.d.ts.map +1 -0
  308. package/lib/typescript/commonjs/dataViewer/index.d.ts +14 -0
  309. package/lib/typescript/commonjs/dataViewer/index.d.ts.map +1 -0
  310. package/lib/typescript/commonjs/dataViewer/lineDiff.d.ts +36 -0
  311. package/lib/typescript/commonjs/dataViewer/lineDiff.d.ts.map +1 -0
  312. package/lib/typescript/commonjs/dataViewer/tree/TreeDiffViewer.d.ts +24 -0
  313. package/lib/typescript/commonjs/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -0
  314. package/lib/typescript/commonjs/env/EnvironmentIndicator.d.ts +12 -0
  315. package/lib/typescript/commonjs/env/EnvironmentIndicator.d.ts.map +1 -0
  316. package/lib/typescript/commonjs/env/EnvironmentSelector.d.ts +18 -0
  317. package/lib/typescript/commonjs/env/EnvironmentSelector.d.ts.map +1 -0
  318. package/lib/typescript/commonjs/env/EnvironmentSelectorInline.d.ts +12 -0
  319. package/lib/typescript/commonjs/env/EnvironmentSelectorInline.d.ts.map +1 -0
  320. package/lib/typescript/commonjs/hooks/index.d.ts +5 -0
  321. package/lib/typescript/commonjs/hooks/index.d.ts.map +1 -0
  322. package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +24 -0
  323. package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts.map +1 -0
  324. package/lib/typescript/commonjs/hooks/useDeviceInfo.d.ts +125 -0
  325. package/lib/typescript/commonjs/hooks/useDeviceInfo.d.ts.map +1 -0
  326. package/lib/typescript/commonjs/hooks/useFilterManager.d.ts +59 -0
  327. package/lib/typescript/commonjs/hooks/useFilterManager.d.ts.map +1 -0
  328. package/lib/typescript/commonjs/hooks/useSafeAreaInsets.d.ts +113 -0
  329. package/lib/typescript/commonjs/hooks/useSafeAreaInsets.d.ts.map +1 -0
  330. package/lib/typescript/commonjs/icons/BenchmarkIcon.d.ts +14 -0
  331. package/lib/typescript/commonjs/icons/BenchmarkIcon.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/icons/EnvLaptopIcon.d.ts +14 -0
  333. package/lib/typescript/commonjs/icons/EnvLaptopIcon.d.ts.map +1 -0
  334. package/lib/typescript/commonjs/icons/IconBackground.d.ts +10 -0
  335. package/lib/typescript/commonjs/icons/IconBackground.d.ts.map +1 -0
  336. package/lib/typescript/commonjs/icons/ReactQueryIcon.d.ts +12 -0
  337. package/lib/typescript/commonjs/icons/ReactQueryIcon.d.ts.map +1 -0
  338. package/lib/typescript/commonjs/icons/RenderCountIcon.d.ts +14 -0
  339. package/lib/typescript/commonjs/icons/RenderCountIcon.d.ts.map +1 -0
  340. package/lib/typescript/commonjs/icons/RouteMapIcon.d.ts +14 -0
  341. package/lib/typescript/commonjs/icons/RouteMapIcon.d.ts.map +1 -0
  342. package/lib/typescript/commonjs/icons/SentryBugIcon.d.ts +12 -0
  343. package/lib/typescript/commonjs/icons/SentryBugIcon.d.ts.map +1 -0
  344. package/lib/typescript/commonjs/icons/StackPulseIcon.d.ts +11 -0
  345. package/lib/typescript/commonjs/icons/StackPulseIcon.d.ts.map +1 -0
  346. package/lib/typescript/commonjs/icons/StorageStackIcon.d.ts +12 -0
  347. package/lib/typescript/commonjs/icons/StorageStackIcon.d.ts.map +1 -0
  348. package/lib/typescript/commonjs/icons/WifiCircuitIcon.d.ts +15 -0
  349. package/lib/typescript/commonjs/icons/WifiCircuitIcon.d.ts.map +1 -0
  350. package/lib/typescript/commonjs/icons/index.d.ts +15 -0
  351. package/lib/typescript/commonjs/icons/index.d.ts.map +1 -0
  352. package/lib/typescript/commonjs/icons/lucide-icons-original-full.d.ts +148 -0
  353. package/lib/typescript/commonjs/icons/lucide-icons-original-full.d.ts.map +1 -0
  354. package/lib/typescript/commonjs/icons/lucide-icons.d.ts +170 -0
  355. package/lib/typescript/commonjs/icons/lucide-icons.d.ts.map +1 -0
  356. package/lib/typescript/commonjs/icons/primitives/GlobeIcon.d.ts +15 -0
  357. package/lib/typescript/commonjs/icons/primitives/GlobeIcon.d.ts.map +1 -0
  358. package/lib/typescript/commonjs/icons/primitives/icon-primitives.d.ts +92 -0
  359. package/lib/typescript/commonjs/icons/primitives/icon-primitives.d.ts.map +1 -0
  360. package/lib/typescript/commonjs/icons/primitives/index.d.ts +9 -0
  361. package/lib/typescript/commonjs/icons/primitives/index.d.ts.map +1 -0
  362. package/lib/typescript/commonjs/index.d.ts +28 -0
  363. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  364. package/lib/typescript/commonjs/license/FeatureGate.d.ts +123 -0
  365. package/lib/typescript/commonjs/license/FeatureGate.d.ts.map +1 -0
  366. package/lib/typescript/commonjs/license/LicenseEntryModal.d.ts +69 -0
  367. package/lib/typescript/commonjs/license/LicenseEntryModal.d.ts.map +1 -0
  368. package/lib/typescript/commonjs/license/ManageDevicesModal.d.ts +23 -0
  369. package/lib/typescript/commonjs/license/ManageDevicesModal.d.ts.map +1 -0
  370. package/lib/typescript/commonjs/license/index.d.ts +7 -0
  371. package/lib/typescript/commonjs/license/index.d.ts.map +1 -0
  372. package/lib/typescript/commonjs/logger/index-sentry.d.ts +68 -0
  373. package/lib/typescript/commonjs/logger/index-sentry.d.ts.map +1 -0
  374. package/lib/typescript/commonjs/logger/index.d.ts +5 -0
  375. package/lib/typescript/commonjs/logger/index.d.ts.map +1 -0
  376. package/lib/typescript/commonjs/logger/logDump.d.ts +5 -0
  377. package/lib/typescript/commonjs/logger/logDump.d.ts.map +1 -0
  378. package/lib/typescript/commonjs/logger/types.d.ts +100 -0
  379. package/lib/typescript/commonjs/logger/types.d.ts.map +1 -0
  380. package/lib/typescript/commonjs/package.json +1 -0
  381. package/lib/typescript/commonjs/settings/components/BubbleSettingsSection.d.ts +19 -0
  382. package/lib/typescript/commonjs/settings/components/BubbleSettingsSection.d.ts.map +1 -0
  383. package/lib/typescript/commonjs/settings/index.d.ts +2 -0
  384. package/lib/typescript/commonjs/settings/index.d.ts.map +1 -0
  385. package/lib/typescript/commonjs/storage/devToolsStorageKeys.d.ts +173 -0
  386. package/lib/typescript/commonjs/storage/devToolsStorageKeys.d.ts.map +1 -0
  387. package/lib/typescript/commonjs/storage/index.d.ts +2 -0
  388. package/lib/typescript/commonjs/storage/index.d.ts.map +1 -0
  389. package/lib/typescript/commonjs/types/index.d.ts +2 -0
  390. package/lib/typescript/commonjs/types/index.d.ts.map +1 -0
  391. package/lib/typescript/commonjs/types/types.d.ts +8 -0
  392. package/lib/typescript/commonjs/types/types.d.ts.map +1 -0
  393. package/lib/typescript/commonjs/ui/components/BackButton.d.ts +10 -0
  394. package/lib/typescript/commonjs/ui/components/BackButton.d.ts.map +1 -0
  395. package/lib/typescript/commonjs/ui/components/Badge.d.ts +41 -0
  396. package/lib/typescript/commonjs/ui/components/Badge.d.ts.map +1 -0
  397. package/lib/typescript/commonjs/ui/components/ClipboardHintBanner.d.ts +17 -0
  398. package/lib/typescript/commonjs/ui/components/ClipboardHintBanner.d.ts.map +1 -0
  399. package/lib/typescript/commonjs/ui/components/CollapsibleSection.d.ts +35 -0
  400. package/lib/typescript/commonjs/ui/components/CollapsibleSection.d.ts.map +1 -0
  401. package/lib/typescript/commonjs/ui/components/CompactFilterChips.d.ts +23 -0
  402. package/lib/typescript/commonjs/ui/components/CompactFilterChips.d.ts.map +1 -0
  403. package/lib/typescript/commonjs/ui/components/CompactRow.d.ts +21 -0
  404. package/lib/typescript/commonjs/ui/components/CompactRow.d.ts.map +1 -0
  405. package/lib/typescript/commonjs/ui/components/CopyButton.d.ts +41 -0
  406. package/lib/typescript/commonjs/ui/components/CopyButton.d.ts.map +1 -0
  407. package/lib/typescript/commonjs/ui/components/DataInspector.d.ts +35 -0
  408. package/lib/typescript/commonjs/ui/components/DataInspector.d.ts.map +1 -0
  409. package/lib/typescript/commonjs/ui/components/DetailView.d.ts +68 -0
  410. package/lib/typescript/commonjs/ui/components/DetailView.d.ts.map +1 -0
  411. package/lib/typescript/commonjs/ui/components/Divider.d.ts +2 -0
  412. package/lib/typescript/commonjs/ui/components/Divider.d.ts.map +1 -0
  413. package/lib/typescript/commonjs/ui/components/DraggableHeader.d.ts +35 -0
  414. package/lib/typescript/commonjs/ui/components/DraggableHeader.d.ts.map +1 -0
  415. package/lib/typescript/commonjs/ui/components/DynamicFilterView.d.ts +91 -0
  416. package/lib/typescript/commonjs/ui/components/DynamicFilterView.d.ts.map +1 -0
  417. package/lib/typescript/commonjs/ui/components/EmptyState.d.ts +43 -0
  418. package/lib/typescript/commonjs/ui/components/EmptyState.d.ts.map +1 -0
  419. package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts +18 -0
  420. package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts.map +1 -0
  421. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/CompareBar.d.ts +15 -0
  422. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/CompareBar.d.ts.map +1 -0
  423. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/DiffModeTabs.d.ts +15 -0
  424. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/DiffModeTabs.d.ts.map +1 -0
  425. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/EventHistoryViewer.d.ts +15 -0
  426. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/EventHistoryViewer.d.ts.map +1 -0
  427. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/EventPickerModal.d.ts +15 -0
  428. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/EventPickerModal.d.ts.map +1 -0
  429. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/ViewToggleCards.d.ts +14 -0
  430. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/ViewToggleCards.d.ts.map +1 -0
  431. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/index.d.ts +13 -0
  432. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/index.d.ts.map +1 -0
  433. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/types.d.ts +216 -0
  434. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/types.d.ts.map +1 -0
  435. package/lib/typescript/commonjs/ui/components/EventListItem.d.ts +65 -0
  436. package/lib/typescript/commonjs/ui/components/EventListItem.d.ts.map +1 -0
  437. package/lib/typescript/commonjs/ui/components/EventStepperFooter.d.ts +32 -0
  438. package/lib/typescript/commonjs/ui/components/EventStepperFooter.d.ts.map +1 -0
  439. package/lib/typescript/commonjs/ui/components/ExpandablePopover.d.ts +34 -0
  440. package/lib/typescript/commonjs/ui/components/ExpandablePopover.d.ts.map +1 -0
  441. package/lib/typescript/commonjs/ui/components/ExpandableSection.d.ts +15 -0
  442. package/lib/typescript/commonjs/ui/components/ExpandableSection.d.ts.map +1 -0
  443. package/lib/typescript/commonjs/ui/components/ExpandableSectionHeader.d.ts +13 -0
  444. package/lib/typescript/commonjs/ui/components/ExpandableSectionHeader.d.ts.map +1 -0
  445. package/lib/typescript/commonjs/ui/components/ExpandableSectionWithModal.d.ts +18 -0
  446. package/lib/typescript/commonjs/ui/components/ExpandableSectionWithModal.d.ts.map +1 -0
  447. package/lib/typescript/commonjs/ui/components/FilterComponents.d.ts +38 -0
  448. package/lib/typescript/commonjs/ui/components/FilterComponents.d.ts.map +1 -0
  449. package/lib/typescript/commonjs/ui/components/FilterViewPattern.d.ts +15 -0
  450. package/lib/typescript/commonjs/ui/components/FilterViewPattern.d.ts.map +1 -0
  451. package/lib/typescript/commonjs/ui/components/HeaderSearchButton.d.ts +9 -0
  452. package/lib/typescript/commonjs/ui/components/HeaderSearchButton.d.ts.map +1 -0
  453. package/lib/typescript/commonjs/ui/components/ListItem.d.ts +49 -0
  454. package/lib/typescript/commonjs/ui/components/ListItem.d.ts.map +1 -0
  455. package/lib/typescript/commonjs/ui/components/ModalHeader.d.ts +34 -0
  456. package/lib/typescript/commonjs/ui/components/ModalHeader.d.ts.map +1 -0
  457. package/lib/typescript/commonjs/ui/components/ModalHintBanner.d.ts +15 -0
  458. package/lib/typescript/commonjs/ui/components/ModalHintBanner.d.ts.map +1 -0
  459. package/lib/typescript/commonjs/ui/components/SearchBar.d.ts +32 -0
  460. package/lib/typescript/commonjs/ui/components/SearchBar.d.ts.map +1 -0
  461. package/lib/typescript/commonjs/ui/components/SectionHeader.d.ts +33 -0
  462. package/lib/typescript/commonjs/ui/components/SectionHeader.d.ts.map +1 -0
  463. package/lib/typescript/commonjs/ui/components/StatsCard.d.ts +45 -0
  464. package/lib/typescript/commonjs/ui/components/StatsCard.d.ts.map +1 -0
  465. package/lib/typescript/commonjs/ui/components/StatusIndicator.d.ts +40 -0
  466. package/lib/typescript/commonjs/ui/components/StatusIndicator.d.ts.map +1 -0
  467. package/lib/typescript/commonjs/ui/components/StorageTypeBadge.d.ts +9 -0
  468. package/lib/typescript/commonjs/ui/components/StorageTypeBadge.d.ts.map +1 -0
  469. package/lib/typescript/commonjs/ui/components/TabSelector.d.ts +12 -0
  470. package/lib/typescript/commonjs/ui/components/TabSelector.d.ts.map +1 -0
  471. package/lib/typescript/commonjs/ui/components/TimeDisplay.d.ts +30 -0
  472. package/lib/typescript/commonjs/ui/components/TimeDisplay.d.ts.map +1 -0
  473. package/lib/typescript/commonjs/ui/components/TypeBadge.d.ts +6 -0
  474. package/lib/typescript/commonjs/ui/components/TypeBadge.d.ts.map +1 -0
  475. package/lib/typescript/commonjs/ui/components/ValueTypeBadge.d.ts +10 -0
  476. package/lib/typescript/commonjs/ui/components/ValueTypeBadge.d.ts.map +1 -0
  477. package/lib/typescript/commonjs/ui/components/WindowControls.d.ts +19 -0
  478. package/lib/typescript/commonjs/ui/components/WindowControls.d.ts.map +1 -0
  479. package/lib/typescript/commonjs/ui/components/index.d.ts +36 -0
  480. package/lib/typescript/commonjs/ui/components/index.d.ts.map +1 -0
  481. package/lib/typescript/commonjs/ui/components/types.d.ts +3 -0
  482. package/lib/typescript/commonjs/ui/components/types.d.ts.map +1 -0
  483. package/lib/typescript/commonjs/ui/console/BubbleSettingsModal.d.ts +11 -0
  484. package/lib/typescript/commonjs/ui/console/BubbleSettingsModal.d.ts.map +1 -0
  485. package/lib/typescript/commonjs/ui/console/ConsoleSection.d.ts +19 -0
  486. package/lib/typescript/commonjs/ui/console/ConsoleSection.d.ts.map +1 -0
  487. package/lib/typescript/commonjs/ui/console/CyberpunkButtonOutline.d.ts +12 -0
  488. package/lib/typescript/commonjs/ui/console/CyberpunkButtonOutline.d.ts.map +1 -0
  489. package/lib/typescript/commonjs/ui/console/CyberpunkConsoleSection.d.ts +17 -0
  490. package/lib/typescript/commonjs/ui/console/CyberpunkConsoleSection.d.ts.map +1 -0
  491. package/lib/typescript/commonjs/ui/console/CyberpunkIconContainer.d.ts +9 -0
  492. package/lib/typescript/commonjs/ui/console/CyberpunkIconContainer.d.ts.map +1 -0
  493. package/lib/typescript/commonjs/ui/console/CyberpunkSectionButton.d.ts +14 -0
  494. package/lib/typescript/commonjs/ui/console/CyberpunkSectionButton.d.ts.map +1 -0
  495. package/lib/typescript/commonjs/ui/console/GalaxyButton.d.ts +10 -0
  496. package/lib/typescript/commonjs/ui/console/GalaxyButton.d.ts.map +1 -0
  497. package/lib/typescript/commonjs/ui/console/index.d.ts +2 -0
  498. package/lib/typescript/commonjs/ui/console/index.d.ts.map +1 -0
  499. package/lib/typescript/commonjs/ui/gameUI/components/GameUICollapsibleSection.d.ts +24 -0
  500. package/lib/typescript/commonjs/ui/gameUI/components/GameUICollapsibleSection.d.ts.map +1 -0
  501. package/lib/typescript/commonjs/ui/gameUI/components/GameUICompactStats.d.ts +40 -0
  502. package/lib/typescript/commonjs/ui/gameUI/components/GameUICompactStats.d.ts.map +1 -0
  503. package/lib/typescript/commonjs/ui/gameUI/components/GameUIIssuesList.d.ts +29 -0
  504. package/lib/typescript/commonjs/ui/gameUI/components/GameUIIssuesList.d.ts.map +1 -0
  505. package/lib/typescript/commonjs/ui/gameUI/components/GameUIStatusHeader.d.ts +16 -0
  506. package/lib/typescript/commonjs/ui/gameUI/components/GameUIStatusHeader.d.ts.map +1 -0
  507. package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts +103 -0
  508. package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts.map +1 -0
  509. package/lib/typescript/commonjs/ui/gameUI/constants/macOSDesignSystemColors.d.ts +157 -0
  510. package/lib/typescript/commonjs/ui/gameUI/constants/macOSDesignSystemColors.d.ts.map +1 -0
  511. package/lib/typescript/commonjs/ui/gameUI/hooks/useGameUIAlertState.d.ts +37 -0
  512. package/lib/typescript/commonjs/ui/gameUI/hooks/useGameUIAlertState.d.ts.map +1 -0
  513. package/lib/typescript/commonjs/ui/gameUI/index.d.ts +18 -0
  514. package/lib/typescript/commonjs/ui/gameUI/index.d.ts.map +1 -0
  515. package/lib/typescript/commonjs/ui/index.d.ts +4 -0
  516. package/lib/typescript/commonjs/ui/index.d.ts.map +1 -0
  517. package/lib/typescript/commonjs/utils/displayValue.d.ts +16 -0
  518. package/lib/typescript/commonjs/utils/displayValue.d.ts.map +1 -0
  519. package/lib/typescript/commonjs/utils/formatting/dataFormatting.d.ts +31 -0
  520. package/lib/typescript/commonjs/utils/formatting/dataFormatting.d.ts.map +1 -0
  521. package/lib/typescript/commonjs/utils/formatting/httpFormatting.d.ts +34 -0
  522. package/lib/typescript/commonjs/utils/formatting/httpFormatting.d.ts.map +1 -0
  523. package/lib/typescript/commonjs/utils/formatting/index.d.ts +6 -0
  524. package/lib/typescript/commonjs/utils/formatting/index.d.ts.map +1 -0
  525. package/lib/typescript/commonjs/utils/getSafeAreaInsets.d.ts +14 -0
  526. package/lib/typescript/commonjs/utils/getSafeAreaInsets.d.ts.map +1 -0
  527. package/lib/typescript/commonjs/utils/index.d.ts +9 -0
  528. package/lib/typescript/commonjs/utils/index.d.ts.map +1 -0
  529. package/lib/typescript/commonjs/utils/loadOptionalModule.d.ts +27 -0
  530. package/lib/typescript/commonjs/utils/loadOptionalModule.d.ts.map +1 -0
  531. package/lib/typescript/commonjs/utils/minimalSuperJSON.d.ts +18 -0
  532. package/lib/typescript/commonjs/utils/minimalSuperJSON.d.ts.map +1 -0
  533. package/lib/typescript/commonjs/utils/persistentStorage.d.ts +45 -0
  534. package/lib/typescript/commonjs/utils/persistentStorage.d.ts.map +1 -0
  535. package/lib/typescript/commonjs/utils/safeAsyncStorage.d.ts +35 -0
  536. package/lib/typescript/commonjs/utils/safeAsyncStorage.d.ts.map +1 -0
  537. package/lib/typescript/commonjs/utils/safeStringify.d.ts +49 -0
  538. package/lib/typescript/commonjs/utils/safeStringify.d.ts.map +1 -0
  539. package/lib/typescript/commonjs/utils/time/formatRelativeTime.d.ts +8 -0
  540. package/lib/typescript/commonjs/utils/time/formatRelativeTime.d.ts.map +1 -0
  541. package/lib/typescript/commonjs/utils/time/index.d.ts +2 -0
  542. package/lib/typescript/commonjs/utils/time/index.d.ts.map +1 -0
  543. package/lib/typescript/commonjs/utils/typeHelpers.d.ts +52 -0
  544. package/lib/typescript/commonjs/utils/typeHelpers.d.ts.map +1 -0
  545. package/lib/typescript/commonjs/utils/valueFormatting.d.ts +39 -0
  546. package/lib/typescript/commonjs/utils/valueFormatting.d.ts.map +1 -0
  547. package/lib/typescript/module/JsModal.d.ts +78 -0
  548. package/lib/typescript/module/JsModal.d.ts.map +1 -0
  549. package/lib/typescript/module/clipboard/autoDetectClipboard.d.ts +31 -0
  550. package/lib/typescript/module/clipboard/autoDetectClipboard.d.ts.map +1 -0
  551. package/lib/typescript/module/clipboard/clipboard-impl.d.ts +16 -0
  552. package/lib/typescript/module/clipboard/clipboard-impl.d.ts.map +1 -0
  553. package/lib/typescript/module/clipboard/copyToClipboard.d.ts +11 -0
  554. package/lib/typescript/module/clipboard/copyToClipboard.d.ts.map +1 -0
  555. package/lib/typescript/module/clipboard/index.d.ts +4 -0
  556. package/lib/typescript/module/clipboard/index.d.ts.map +1 -0
  557. package/lib/typescript/module/context/HintsContext.d.ts +30 -0
  558. package/lib/typescript/module/context/HintsContext.d.ts.map +1 -0
  559. package/lib/typescript/module/context/index.d.ts +2 -0
  560. package/lib/typescript/module/context/index.d.ts.map +1 -0
  561. package/lib/typescript/module/dataViewer/CyberpunkInput.d.ts +13 -0
  562. package/lib/typescript/module/dataViewer/CyberpunkInput.d.ts.map +1 -0
  563. package/lib/typescript/module/dataViewer/DataViewer.d.ts +24 -0
  564. package/lib/typescript/module/dataViewer/DataViewer.d.ts.map +1 -0
  565. package/lib/typescript/module/dataViewer/DiffSummary.d.ts +26 -0
  566. package/lib/typescript/module/dataViewer/DiffSummary.d.ts.map +1 -0
  567. package/lib/typescript/module/dataViewer/IndentGuides.d.ts +16 -0
  568. package/lib/typescript/module/dataViewer/IndentGuides.d.ts.map +1 -0
  569. package/lib/typescript/module/dataViewer/IndentGuidesOverlay.d.ts +19 -0
  570. package/lib/typescript/module/dataViewer/IndentGuidesOverlay.d.ts.map +1 -0
  571. package/lib/typescript/module/dataViewer/SplitDiffViewer.d.ts +40 -0
  572. package/lib/typescript/module/dataViewer/SplitDiffViewer.d.ts.map +1 -0
  573. package/lib/typescript/module/dataViewer/TypeLegend.d.ts +18 -0
  574. package/lib/typescript/module/dataViewer/TypeLegend.d.ts.map +1 -0
  575. package/lib/typescript/module/dataViewer/VirtualizedDataExplorer.d.ts +14 -0
  576. package/lib/typescript/module/dataViewer/VirtualizedDataExplorer.d.ts.map +1 -0
  577. package/lib/typescript/module/dataViewer/diffThemes.d.ts +62 -0
  578. package/lib/typescript/module/dataViewer/diffThemes.d.ts.map +1 -0
  579. package/lib/typescript/module/dataViewer/index.d.ts +14 -0
  580. package/lib/typescript/module/dataViewer/index.d.ts.map +1 -0
  581. package/lib/typescript/module/dataViewer/lineDiff.d.ts +36 -0
  582. package/lib/typescript/module/dataViewer/lineDiff.d.ts.map +1 -0
  583. package/lib/typescript/module/dataViewer/tree/TreeDiffViewer.d.ts +24 -0
  584. package/lib/typescript/module/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -0
  585. package/lib/typescript/module/env/EnvironmentIndicator.d.ts +12 -0
  586. package/lib/typescript/module/env/EnvironmentIndicator.d.ts.map +1 -0
  587. package/lib/typescript/module/env/EnvironmentSelector.d.ts +18 -0
  588. package/lib/typescript/module/env/EnvironmentSelector.d.ts.map +1 -0
  589. package/lib/typescript/module/env/EnvironmentSelectorInline.d.ts +12 -0
  590. package/lib/typescript/module/env/EnvironmentSelectorInline.d.ts.map +1 -0
  591. package/lib/typescript/module/hooks/index.d.ts +5 -0
  592. package/lib/typescript/module/hooks/index.d.ts.map +1 -0
  593. package/lib/typescript/module/hooks/safe-area-impl.d.ts +24 -0
  594. package/lib/typescript/module/hooks/safe-area-impl.d.ts.map +1 -0
  595. package/lib/typescript/module/hooks/useDeviceInfo.d.ts +125 -0
  596. package/lib/typescript/module/hooks/useDeviceInfo.d.ts.map +1 -0
  597. package/lib/typescript/module/hooks/useFilterManager.d.ts +59 -0
  598. package/lib/typescript/module/hooks/useFilterManager.d.ts.map +1 -0
  599. package/lib/typescript/module/hooks/useSafeAreaInsets.d.ts +113 -0
  600. package/lib/typescript/module/hooks/useSafeAreaInsets.d.ts.map +1 -0
  601. package/lib/typescript/module/icons/BenchmarkIcon.d.ts +14 -0
  602. package/lib/typescript/module/icons/BenchmarkIcon.d.ts.map +1 -0
  603. package/lib/typescript/module/icons/EnvLaptopIcon.d.ts +14 -0
  604. package/lib/typescript/module/icons/EnvLaptopIcon.d.ts.map +1 -0
  605. package/lib/typescript/module/icons/IconBackground.d.ts +10 -0
  606. package/lib/typescript/module/icons/IconBackground.d.ts.map +1 -0
  607. package/lib/typescript/module/icons/ReactQueryIcon.d.ts +12 -0
  608. package/lib/typescript/module/icons/ReactQueryIcon.d.ts.map +1 -0
  609. package/lib/typescript/module/icons/RenderCountIcon.d.ts +14 -0
  610. package/lib/typescript/module/icons/RenderCountIcon.d.ts.map +1 -0
  611. package/lib/typescript/module/icons/RouteMapIcon.d.ts +14 -0
  612. package/lib/typescript/module/icons/RouteMapIcon.d.ts.map +1 -0
  613. package/lib/typescript/module/icons/SentryBugIcon.d.ts +12 -0
  614. package/lib/typescript/module/icons/SentryBugIcon.d.ts.map +1 -0
  615. package/lib/typescript/module/icons/StackPulseIcon.d.ts +11 -0
  616. package/lib/typescript/module/icons/StackPulseIcon.d.ts.map +1 -0
  617. package/lib/typescript/module/icons/StorageStackIcon.d.ts +12 -0
  618. package/lib/typescript/module/icons/StorageStackIcon.d.ts.map +1 -0
  619. package/lib/typescript/module/icons/WifiCircuitIcon.d.ts +15 -0
  620. package/lib/typescript/module/icons/WifiCircuitIcon.d.ts.map +1 -0
  621. package/lib/typescript/module/icons/index.d.ts +15 -0
  622. package/lib/typescript/module/icons/index.d.ts.map +1 -0
  623. package/lib/typescript/module/icons/lucide-icons-original-full.d.ts +148 -0
  624. package/lib/typescript/module/icons/lucide-icons-original-full.d.ts.map +1 -0
  625. package/lib/typescript/module/icons/lucide-icons.d.ts +170 -0
  626. package/lib/typescript/module/icons/lucide-icons.d.ts.map +1 -0
  627. package/lib/typescript/module/icons/primitives/GlobeIcon.d.ts +15 -0
  628. package/lib/typescript/module/icons/primitives/GlobeIcon.d.ts.map +1 -0
  629. package/lib/typescript/module/icons/primitives/icon-primitives.d.ts +92 -0
  630. package/lib/typescript/module/icons/primitives/icon-primitives.d.ts.map +1 -0
  631. package/lib/typescript/module/icons/primitives/index.d.ts +9 -0
  632. package/lib/typescript/module/icons/primitives/index.d.ts.map +1 -0
  633. package/lib/typescript/module/index.d.ts +28 -0
  634. package/lib/typescript/module/index.d.ts.map +1 -0
  635. package/lib/typescript/module/license/FeatureGate.d.ts +123 -0
  636. package/lib/typescript/module/license/FeatureGate.d.ts.map +1 -0
  637. package/lib/typescript/module/license/LicenseEntryModal.d.ts +69 -0
  638. package/lib/typescript/module/license/LicenseEntryModal.d.ts.map +1 -0
  639. package/lib/typescript/module/license/ManageDevicesModal.d.ts +23 -0
  640. package/lib/typescript/module/license/ManageDevicesModal.d.ts.map +1 -0
  641. package/lib/typescript/module/license/index.d.ts +7 -0
  642. package/lib/typescript/module/license/index.d.ts.map +1 -0
  643. package/lib/typescript/module/logger/index-sentry.d.ts +68 -0
  644. package/lib/typescript/module/logger/index-sentry.d.ts.map +1 -0
  645. package/lib/typescript/module/logger/index.d.ts +5 -0
  646. package/lib/typescript/module/logger/index.d.ts.map +1 -0
  647. package/lib/typescript/module/logger/logDump.d.ts +5 -0
  648. package/lib/typescript/module/logger/logDump.d.ts.map +1 -0
  649. package/lib/typescript/module/logger/types.d.ts +100 -0
  650. package/lib/typescript/module/logger/types.d.ts.map +1 -0
  651. package/lib/typescript/module/package.json +1 -0
  652. package/lib/typescript/module/settings/components/BubbleSettingsSection.d.ts +19 -0
  653. package/lib/typescript/module/settings/components/BubbleSettingsSection.d.ts.map +1 -0
  654. package/lib/typescript/module/settings/index.d.ts +2 -0
  655. package/lib/typescript/module/settings/index.d.ts.map +1 -0
  656. package/lib/typescript/module/storage/devToolsStorageKeys.d.ts +173 -0
  657. package/lib/typescript/module/storage/devToolsStorageKeys.d.ts.map +1 -0
  658. package/lib/typescript/module/storage/index.d.ts +2 -0
  659. package/lib/typescript/module/storage/index.d.ts.map +1 -0
  660. package/lib/typescript/module/types/index.d.ts +2 -0
  661. package/lib/typescript/module/types/index.d.ts.map +1 -0
  662. package/lib/typescript/module/types/types.d.ts +8 -0
  663. package/lib/typescript/module/types/types.d.ts.map +1 -0
  664. package/lib/typescript/module/ui/components/BackButton.d.ts +10 -0
  665. package/lib/typescript/module/ui/components/BackButton.d.ts.map +1 -0
  666. package/lib/typescript/module/ui/components/Badge.d.ts +41 -0
  667. package/lib/typescript/module/ui/components/Badge.d.ts.map +1 -0
  668. package/lib/typescript/module/ui/components/ClipboardHintBanner.d.ts +17 -0
  669. package/lib/typescript/module/ui/components/ClipboardHintBanner.d.ts.map +1 -0
  670. package/lib/typescript/module/ui/components/CollapsibleSection.d.ts +35 -0
  671. package/lib/typescript/module/ui/components/CollapsibleSection.d.ts.map +1 -0
  672. package/lib/typescript/module/ui/components/CompactFilterChips.d.ts +23 -0
  673. package/lib/typescript/module/ui/components/CompactFilterChips.d.ts.map +1 -0
  674. package/lib/typescript/module/ui/components/CompactRow.d.ts +21 -0
  675. package/lib/typescript/module/ui/components/CompactRow.d.ts.map +1 -0
  676. package/lib/typescript/module/ui/components/CopyButton.d.ts +41 -0
  677. package/lib/typescript/module/ui/components/CopyButton.d.ts.map +1 -0
  678. package/lib/typescript/module/ui/components/DataInspector.d.ts +35 -0
  679. package/lib/typescript/module/ui/components/DataInspector.d.ts.map +1 -0
  680. package/lib/typescript/module/ui/components/DetailView.d.ts +68 -0
  681. package/lib/typescript/module/ui/components/DetailView.d.ts.map +1 -0
  682. package/lib/typescript/module/ui/components/Divider.d.ts +2 -0
  683. package/lib/typescript/module/ui/components/Divider.d.ts.map +1 -0
  684. package/lib/typescript/module/ui/components/DraggableHeader.d.ts +35 -0
  685. package/lib/typescript/module/ui/components/DraggableHeader.d.ts.map +1 -0
  686. package/lib/typescript/module/ui/components/DynamicFilterView.d.ts +91 -0
  687. package/lib/typescript/module/ui/components/DynamicFilterView.d.ts.map +1 -0
  688. package/lib/typescript/module/ui/components/EmptyState.d.ts +43 -0
  689. package/lib/typescript/module/ui/components/EmptyState.d.ts.map +1 -0
  690. package/lib/typescript/module/ui/components/ErrorBoundary.d.ts +18 -0
  691. package/lib/typescript/module/ui/components/ErrorBoundary.d.ts.map +1 -0
  692. package/lib/typescript/module/ui/components/EventHistoryViewer/CompareBar.d.ts +15 -0
  693. package/lib/typescript/module/ui/components/EventHistoryViewer/CompareBar.d.ts.map +1 -0
  694. package/lib/typescript/module/ui/components/EventHistoryViewer/DiffModeTabs.d.ts +15 -0
  695. package/lib/typescript/module/ui/components/EventHistoryViewer/DiffModeTabs.d.ts.map +1 -0
  696. package/lib/typescript/module/ui/components/EventHistoryViewer/EventHistoryViewer.d.ts +15 -0
  697. package/lib/typescript/module/ui/components/EventHistoryViewer/EventHistoryViewer.d.ts.map +1 -0
  698. package/lib/typescript/module/ui/components/EventHistoryViewer/EventPickerModal.d.ts +15 -0
  699. package/lib/typescript/module/ui/components/EventHistoryViewer/EventPickerModal.d.ts.map +1 -0
  700. package/lib/typescript/module/ui/components/EventHistoryViewer/ViewToggleCards.d.ts +14 -0
  701. package/lib/typescript/module/ui/components/EventHistoryViewer/ViewToggleCards.d.ts.map +1 -0
  702. package/lib/typescript/module/ui/components/EventHistoryViewer/index.d.ts +13 -0
  703. package/lib/typescript/module/ui/components/EventHistoryViewer/index.d.ts.map +1 -0
  704. package/lib/typescript/module/ui/components/EventHistoryViewer/types.d.ts +216 -0
  705. package/lib/typescript/module/ui/components/EventHistoryViewer/types.d.ts.map +1 -0
  706. package/lib/typescript/module/ui/components/EventListItem.d.ts +65 -0
  707. package/lib/typescript/module/ui/components/EventListItem.d.ts.map +1 -0
  708. package/lib/typescript/module/ui/components/EventStepperFooter.d.ts +32 -0
  709. package/lib/typescript/module/ui/components/EventStepperFooter.d.ts.map +1 -0
  710. package/lib/typescript/module/ui/components/ExpandablePopover.d.ts +34 -0
  711. package/lib/typescript/module/ui/components/ExpandablePopover.d.ts.map +1 -0
  712. package/lib/typescript/module/ui/components/ExpandableSection.d.ts +15 -0
  713. package/lib/typescript/module/ui/components/ExpandableSection.d.ts.map +1 -0
  714. package/lib/typescript/module/ui/components/ExpandableSectionHeader.d.ts +13 -0
  715. package/lib/typescript/module/ui/components/ExpandableSectionHeader.d.ts.map +1 -0
  716. package/lib/typescript/module/ui/components/ExpandableSectionWithModal.d.ts +18 -0
  717. package/lib/typescript/module/ui/components/ExpandableSectionWithModal.d.ts.map +1 -0
  718. package/lib/typescript/module/ui/components/FilterComponents.d.ts +38 -0
  719. package/lib/typescript/module/ui/components/FilterComponents.d.ts.map +1 -0
  720. package/lib/typescript/module/ui/components/FilterViewPattern.d.ts +15 -0
  721. package/lib/typescript/module/ui/components/FilterViewPattern.d.ts.map +1 -0
  722. package/lib/typescript/module/ui/components/HeaderSearchButton.d.ts +9 -0
  723. package/lib/typescript/module/ui/components/HeaderSearchButton.d.ts.map +1 -0
  724. package/lib/typescript/module/ui/components/ListItem.d.ts +49 -0
  725. package/lib/typescript/module/ui/components/ListItem.d.ts.map +1 -0
  726. package/lib/typescript/module/ui/components/ModalHeader.d.ts +34 -0
  727. package/lib/typescript/module/ui/components/ModalHeader.d.ts.map +1 -0
  728. package/lib/typescript/module/ui/components/ModalHintBanner.d.ts +15 -0
  729. package/lib/typescript/module/ui/components/ModalHintBanner.d.ts.map +1 -0
  730. package/lib/typescript/module/ui/components/SearchBar.d.ts +32 -0
  731. package/lib/typescript/module/ui/components/SearchBar.d.ts.map +1 -0
  732. package/lib/typescript/module/ui/components/SectionHeader.d.ts +33 -0
  733. package/lib/typescript/module/ui/components/SectionHeader.d.ts.map +1 -0
  734. package/lib/typescript/module/ui/components/StatsCard.d.ts +45 -0
  735. package/lib/typescript/module/ui/components/StatsCard.d.ts.map +1 -0
  736. package/lib/typescript/module/ui/components/StatusIndicator.d.ts +40 -0
  737. package/lib/typescript/module/ui/components/StatusIndicator.d.ts.map +1 -0
  738. package/lib/typescript/module/ui/components/StorageTypeBadge.d.ts +9 -0
  739. package/lib/typescript/module/ui/components/StorageTypeBadge.d.ts.map +1 -0
  740. package/lib/typescript/module/ui/components/TabSelector.d.ts +12 -0
  741. package/lib/typescript/module/ui/components/TabSelector.d.ts.map +1 -0
  742. package/lib/typescript/module/ui/components/TimeDisplay.d.ts +30 -0
  743. package/lib/typescript/module/ui/components/TimeDisplay.d.ts.map +1 -0
  744. package/lib/typescript/module/ui/components/TypeBadge.d.ts +6 -0
  745. package/lib/typescript/module/ui/components/TypeBadge.d.ts.map +1 -0
  746. package/lib/typescript/module/ui/components/ValueTypeBadge.d.ts +10 -0
  747. package/lib/typescript/module/ui/components/ValueTypeBadge.d.ts.map +1 -0
  748. package/lib/typescript/module/ui/components/WindowControls.d.ts +19 -0
  749. package/lib/typescript/module/ui/components/WindowControls.d.ts.map +1 -0
  750. package/lib/typescript/module/ui/components/index.d.ts +36 -0
  751. package/lib/typescript/module/ui/components/index.d.ts.map +1 -0
  752. package/lib/typescript/module/ui/components/types.d.ts +3 -0
  753. package/lib/typescript/module/ui/components/types.d.ts.map +1 -0
  754. package/lib/typescript/module/ui/console/BubbleSettingsModal.d.ts +11 -0
  755. package/lib/typescript/module/ui/console/BubbleSettingsModal.d.ts.map +1 -0
  756. package/lib/typescript/module/ui/console/ConsoleSection.d.ts +19 -0
  757. package/lib/typescript/module/ui/console/ConsoleSection.d.ts.map +1 -0
  758. package/lib/typescript/module/ui/console/CyberpunkButtonOutline.d.ts +12 -0
  759. package/lib/typescript/module/ui/console/CyberpunkButtonOutline.d.ts.map +1 -0
  760. package/lib/typescript/module/ui/console/CyberpunkConsoleSection.d.ts +17 -0
  761. package/lib/typescript/module/ui/console/CyberpunkConsoleSection.d.ts.map +1 -0
  762. package/lib/typescript/module/ui/console/CyberpunkIconContainer.d.ts +9 -0
  763. package/lib/typescript/module/ui/console/CyberpunkIconContainer.d.ts.map +1 -0
  764. package/lib/typescript/module/ui/console/CyberpunkSectionButton.d.ts +14 -0
  765. package/lib/typescript/module/ui/console/CyberpunkSectionButton.d.ts.map +1 -0
  766. package/lib/typescript/module/ui/console/GalaxyButton.d.ts +10 -0
  767. package/lib/typescript/module/ui/console/GalaxyButton.d.ts.map +1 -0
  768. package/lib/typescript/module/ui/console/index.d.ts +2 -0
  769. package/lib/typescript/module/ui/console/index.d.ts.map +1 -0
  770. package/lib/typescript/module/ui/gameUI/components/GameUICollapsibleSection.d.ts +24 -0
  771. package/lib/typescript/module/ui/gameUI/components/GameUICollapsibleSection.d.ts.map +1 -0
  772. package/lib/typescript/module/ui/gameUI/components/GameUICompactStats.d.ts +40 -0
  773. package/lib/typescript/module/ui/gameUI/components/GameUICompactStats.d.ts.map +1 -0
  774. package/lib/typescript/module/ui/gameUI/components/GameUIIssuesList.d.ts +29 -0
  775. package/lib/typescript/module/ui/gameUI/components/GameUIIssuesList.d.ts.map +1 -0
  776. package/lib/typescript/module/ui/gameUI/components/GameUIStatusHeader.d.ts +16 -0
  777. package/lib/typescript/module/ui/gameUI/components/GameUIStatusHeader.d.ts.map +1 -0
  778. package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts +103 -0
  779. package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts.map +1 -0
  780. package/lib/typescript/module/ui/gameUI/constants/macOSDesignSystemColors.d.ts +157 -0
  781. package/lib/typescript/module/ui/gameUI/constants/macOSDesignSystemColors.d.ts.map +1 -0
  782. package/lib/typescript/module/ui/gameUI/hooks/useGameUIAlertState.d.ts +37 -0
  783. package/lib/typescript/module/ui/gameUI/hooks/useGameUIAlertState.d.ts.map +1 -0
  784. package/lib/typescript/module/ui/gameUI/index.d.ts +18 -0
  785. package/lib/typescript/module/ui/gameUI/index.d.ts.map +1 -0
  786. package/lib/typescript/module/ui/index.d.ts +4 -0
  787. package/lib/typescript/module/ui/index.d.ts.map +1 -0
  788. package/lib/typescript/module/utils/displayValue.d.ts +16 -0
  789. package/lib/typescript/module/utils/displayValue.d.ts.map +1 -0
  790. package/lib/typescript/module/utils/formatting/dataFormatting.d.ts +31 -0
  791. package/lib/typescript/module/utils/formatting/dataFormatting.d.ts.map +1 -0
  792. package/lib/typescript/module/utils/formatting/httpFormatting.d.ts +34 -0
  793. package/lib/typescript/module/utils/formatting/httpFormatting.d.ts.map +1 -0
  794. package/lib/typescript/module/utils/formatting/index.d.ts +6 -0
  795. package/lib/typescript/module/utils/formatting/index.d.ts.map +1 -0
  796. package/lib/typescript/module/utils/getSafeAreaInsets.d.ts +14 -0
  797. package/lib/typescript/module/utils/getSafeAreaInsets.d.ts.map +1 -0
  798. package/lib/typescript/module/utils/index.d.ts +9 -0
  799. package/lib/typescript/module/utils/index.d.ts.map +1 -0
  800. package/lib/typescript/module/utils/loadOptionalModule.d.ts +27 -0
  801. package/lib/typescript/module/utils/loadOptionalModule.d.ts.map +1 -0
  802. package/lib/typescript/module/utils/minimalSuperJSON.d.ts +18 -0
  803. package/lib/typescript/module/utils/minimalSuperJSON.d.ts.map +1 -0
  804. package/lib/typescript/module/utils/persistentStorage.d.ts +45 -0
  805. package/lib/typescript/module/utils/persistentStorage.d.ts.map +1 -0
  806. package/lib/typescript/module/utils/safeAsyncStorage.d.ts +35 -0
  807. package/lib/typescript/module/utils/safeAsyncStorage.d.ts.map +1 -0
  808. package/lib/typescript/module/utils/safeStringify.d.ts +49 -0
  809. package/lib/typescript/module/utils/safeStringify.d.ts.map +1 -0
  810. package/lib/typescript/module/utils/time/formatRelativeTime.d.ts +8 -0
  811. package/lib/typescript/module/utils/time/formatRelativeTime.d.ts.map +1 -0
  812. package/lib/typescript/module/utils/time/index.d.ts +2 -0
  813. package/lib/typescript/module/utils/time/index.d.ts.map +1 -0
  814. package/lib/typescript/module/utils/typeHelpers.d.ts +52 -0
  815. package/lib/typescript/module/utils/typeHelpers.d.ts.map +1 -0
  816. package/lib/typescript/module/utils/valueFormatting.d.ts +39 -0
  817. package/lib/typescript/module/utils/valueFormatting.d.ts.map +1 -0
  818. package/package.json +172 -0
  819. package/scripts/detect-clipboard.js +137 -0
  820. package/scripts/detect-safe-area.js +130 -0
@@ -0,0 +1,1053 @@
1
+ "use strict";
2
+
3
+ import { useState, useMemo, useCallback, useRef, useEffect, memo } from "react";
4
+ import { Text, TouchableOpacity, View, StyleSheet, FlatList } from "react-native";
5
+ import { displayValue } from "../utils/displayValue.js";
6
+ import { gameUIColors } from "../ui/gameUI/index.js";
7
+ import { CopyButton } from "../ui/components/CopyButton.js";
8
+ import { ChevronRight } from "../icons/index.js";
9
+ import { IndentGuidesOverlay } from "./IndentGuidesOverlay.js";
10
+
11
+ // Stable constants to prevent re-renders [[memory:4875251]]
12
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
+ const HIT_SLOP_10 = {
14
+ top: 10,
15
+ bottom: 10,
16
+ left: 10,
17
+ right: 10
18
+ };
19
+ const ITEM_HEIGHT = 24; // Fixed height per row for crisp guides
20
+ const LONG_ITEM_HEIGHT = 24; // Keep uniform height to match VS Code tree
21
+ const CHUNK_SIZE = 50; // Process data in chunks to avoid blocking UI
22
+ const MAX_DEPTH_LIMIT = 15; // Prevent excessive nesting
23
+ const MAX_ITEMS_PER_LEVEL = 500; // Limit items to prevent memory issues
24
+ const LONG_KEY_THRESHOLD = 30; // Keys longer than this use vertical layout
25
+
26
+ // Pre-computed indent styles (VS Code-style width)
27
+ const INDENT_WIDTH = 16;
28
+ const INDENT_STYLES = Array.from({
29
+ length: MAX_DEPTH_LIMIT + 1
30
+ }, (_, depth) => StyleSheet.create({
31
+ container: {
32
+ marginLeft: depth * INDENT_WIDTH
33
+ }
34
+ }).container);
35
+
36
+ // Enhanced type color cache using centralized theme colors [[memory:4875251]]
37
+ const TYPE_COLOR_CACHE = new Map([["string", gameUIColors.dataTypes.string], ["number", gameUIColors.dataTypes.number], ["bigint", gameUIColors.optional],
38
+ // Purple for bigint (distinct from number)
39
+ ["boolean", gameUIColors.dataTypes.boolean], ["null", gameUIColors.dataTypes.null], ["undefined", gameUIColors.dataTypes.undefined], ["function", gameUIColors.dataTypes.function], ["symbol", gameUIColors.critical],
40
+ // Pink for symbols (distinct from function)
41
+ ["date", gameUIColors.critical],
42
+ // Pink for dates
43
+ ["error", gameUIColors.error],
44
+ // Red for errors
45
+ ["array", gameUIColors.dataTypes.array], ["object", gameUIColors.dataTypes.object], ["map", gameUIColors.info],
46
+ // Cyan for maps (distinct from object/array)
47
+ ["set", gameUIColors.success],
48
+ // Green for sets (distinct from map/array/object)
49
+ ["circular", gameUIColors.warning] // Yellow for circular references
50
+ ]);
51
+
52
+ // Pre-computed stable styles with React Query-inspired design
53
+ const STABLE_STYLES = StyleSheet.create({
54
+ container: {
55
+ backgroundColor: gameUIColors.primary + "08",
56
+ // bg-white/[0.03]
57
+ borderRadius: 8,
58
+ borderWidth: 1,
59
+ borderColor: gameUIColors.primary + "14" // border-white/[0.08]
60
+ // Remove flex: 1 and minHeight to allow natural sizing
61
+ },
62
+ header: {
63
+ flexDirection: "column",
64
+ paddingHorizontal: 16,
65
+ // Increased padding like dev tools
66
+ paddingVertical: 12
67
+ },
68
+ headerRow: {
69
+ flexDirection: "row",
70
+ justifyContent: "space-between",
71
+ alignItems: "center",
72
+ marginBottom: 6
73
+ },
74
+ title: {
75
+ color: gameUIColors.primary,
76
+ // text-white
77
+ fontSize: 14,
78
+ fontWeight: "500" // font-medium
79
+ },
80
+ description: {
81
+ color: gameUIColors.secondary,
82
+ // text-gray-400
83
+ fontSize: 12,
84
+ marginTop: 2
85
+ },
86
+ typeLegend: {
87
+ flexDirection: "row",
88
+ flexWrap: "wrap",
89
+ gap: 6,
90
+ marginTop: 8,
91
+ paddingTop: 8,
92
+ borderTopWidth: 1,
93
+ borderTopColor: gameUIColors.primary + "14" // border-white/[0.08]
94
+ },
95
+ typeBadge: {
96
+ flexDirection: "row",
97
+ alignItems: "center",
98
+ paddingHorizontal: 6,
99
+ paddingVertical: 2,
100
+ borderRadius: 4,
101
+ borderWidth: 1
102
+ },
103
+ typeColor: {
104
+ width: 8,
105
+ height: 8,
106
+ borderRadius: 4,
107
+ marginRight: 4
108
+ },
109
+ typeName: {
110
+ fontSize: 10,
111
+ fontWeight: "500",
112
+ color: gameUIColors.secondary // text-gray-400
113
+ },
114
+ itemContainer: {
115
+ minHeight: ITEM_HEIGHT,
116
+ backgroundColor: "transparent",
117
+ position: "relative",
118
+ flexDirection: "row",
119
+ alignItems: "flex-start" // Align items to top for better alignment with expand arrows
120
+ },
121
+ itemTouchable: {
122
+ flex: 1,
123
+ flexDirection: "row",
124
+ alignItems: "flex-start",
125
+ // Changed from center to align expand arrow with first line of text
126
+ paddingLeft: 0,
127
+ // Remove padding to align with tree lines
128
+ paddingRight: 16,
129
+ paddingVertical: 2,
130
+ // Further reduced for even tighter spacing
131
+ minHeight: 24 // Match ITEM_HEIGHT for consistency
132
+ },
133
+ itemTouchablePressed: {
134
+ backgroundColor: gameUIColors.primary + "0A" // slightly more visible on press
135
+ },
136
+ itemSelected: {
137
+ backgroundColor: gameUIColors.primary + "14" // selected row highlight (subtle)
138
+ },
139
+ expanderContainer: {
140
+ width: 16,
141
+ // Reduced to minimize space
142
+ alignItems: "center",
143
+ justifyContent: "center",
144
+ marginTop: 4 // Align with text baseline
145
+ },
146
+ expanderIcon: {
147
+ width: 12,
148
+ height: 12
149
+ },
150
+ labelContainer: {
151
+ flex: 1,
152
+ flexDirection: "row",
153
+ alignItems: "flex-start",
154
+ paddingLeft: 2
155
+ },
156
+ labelContainerVertical: {
157
+ flex: 1,
158
+ flexDirection: "column",
159
+ paddingLeft: 2,
160
+ // Reduced padding for tighter alignment
161
+ paddingVertical: 2
162
+ },
163
+ labelContainerVerticalRow: {
164
+ flexDirection: "row",
165
+ alignItems: "center",
166
+ marginBottom: 2
167
+ },
168
+ labelText: {
169
+ color: gameUIColors.primary,
170
+ // text-white
171
+ fontSize: 12,
172
+ fontWeight: "500",
173
+ // font-medium
174
+ fontFamily: "monospace",
175
+ marginRight: 8,
176
+ flexShrink: 1
177
+ },
178
+ labelTextTruncated: {
179
+ color: gameUIColors.primary,
180
+ // text-white
181
+ fontSize: 12,
182
+ fontWeight: "500",
183
+ // font-medium
184
+ fontFamily: "monospace",
185
+ flexShrink: 1
186
+ },
187
+ valueText: {
188
+ fontSize: 12,
189
+ fontFamily: "monospace",
190
+ flex: 1,
191
+ color: gameUIColors.primaryLight // text-gray-300
192
+ },
193
+ loadingContainer: {
194
+ padding: 16,
195
+ alignItems: "center"
196
+ },
197
+ loadingText: {
198
+ color: gameUIColors.secondary,
199
+ // text-gray-400
200
+ fontSize: 12
201
+ },
202
+ noDataContainer: {
203
+ padding: 16,
204
+ alignItems: "center"
205
+ },
206
+ noDataText: {
207
+ color: gameUIColors.secondary,
208
+ // text-gray-400
209
+ fontSize: 12
210
+ },
211
+ listContent: {
212
+ paddingBottom: 8
213
+ },
214
+ headerTouchable: {
215
+ flex: 1,
216
+ flexDirection: "row",
217
+ alignItems: "center"
218
+ },
219
+ expanderMargin: {
220
+ marginLeft: 8
221
+ }
222
+ });
223
+
224
+ // Type definitions for flattened data structure
225
+
226
+ // Enhanced type detection optimized for performance
227
+ const getValueType = value => {
228
+ if (value === null) return "null";
229
+ if (value === undefined) return "undefined";
230
+ if (Array.isArray(value)) return "array";
231
+ if (value instanceof Date) return "date";
232
+ if (value instanceof Error) return "error";
233
+ if (value instanceof Map) return "map";
234
+ if (value instanceof Set) return "set";
235
+ if (value instanceof RegExp) return "regexp";
236
+ if (typeof value === "function") return "function";
237
+ if (typeof value === "symbol") return "symbol";
238
+ if (typeof value === "bigint") return "bigint";
239
+ if (typeof value === "object") return "object";
240
+ return typeof value;
241
+ };
242
+
243
+ // Get value count for collections
244
+ const getValueCount = (value, valueType) => {
245
+ if (value === null) return 0;
246
+ switch (valueType) {
247
+ case "array":
248
+ return Array.isArray(value) ? value.length : 0;
249
+ case "object":
250
+ return typeof value === "object" && !(value instanceof Date) && !(value instanceof Error) && !(value instanceof RegExp) && !(value instanceof Map) && !(value instanceof Set) ? Object.keys(value).length : 0;
251
+ case "map":
252
+ return value instanceof Map ? value.size : 0;
253
+ case "set":
254
+ return value instanceof Set ? value.size : 0;
255
+ default:
256
+ return 0;
257
+ }
258
+ };
259
+
260
+ // Format value for display
261
+ const formatValue = (value, valueType) => {
262
+ if (value === null) return "null";
263
+ if (value === undefined) return "undefined";
264
+ switch (valueType) {
265
+ case "string":
266
+ return `"${String(value)}"`;
267
+ case "boolean":
268
+ return value === true ? "true" : "false";
269
+ case "function":
270
+ return typeof value === "function" ? value.toString().slice(0, 50) + "..." : "undefined";
271
+ case "symbol":
272
+ return typeof value === "symbol" ? String(value) : "undefined";
273
+ case "date":
274
+ return value instanceof Date ? value.toISOString() : "undefined";
275
+ case "regexp":
276
+ return value instanceof RegExp ? value.toString() : "undefined";
277
+ case "bigint":
278
+ return typeof value === "bigint" ? value.toString() + "n" : "undefined";
279
+ case "error":
280
+ return value instanceof Error ? `${value.name}: ${value.message}` : "undefined";
281
+ default:
282
+ return displayValue(value);
283
+ }
284
+ };
285
+
286
+ // Optimized type color lookup using cache [[memory:4875251]]
287
+ const getTypeColor = valueType => {
288
+ return TYPE_COLOR_CACHE.get(valueType) || gameUIColors.dataTypes.array;
289
+ };
290
+
291
+ // Memoized components for performance
292
+ const ExpanderComponent = ({
293
+ expanded,
294
+ onPress
295
+ }) => {
296
+ return /*#__PURE__*/_jsx(TouchableOpacity, {
297
+ "sentry-label": "ignore devtools data explorer expander",
298
+ style: STABLE_STYLES.expanderContainer,
299
+ onPress: onPress,
300
+ hitSlop: HIT_SLOP_10,
301
+ children: /*#__PURE__*/_jsx(View, {
302
+ style: STABLE_STYLES.expanderIcon,
303
+ children: /*#__PURE__*/_jsx(ChevronRight, {
304
+ size: 12,
305
+ color: gameUIColors.secondary,
306
+ strokeWidth: 2,
307
+ style: {
308
+ transform: [{
309
+ rotate: expanded ? "90deg" : "0deg"
310
+ }]
311
+ }
312
+ })
313
+ })
314
+ });
315
+ };
316
+ ExpanderComponent.displayName = "Expander";
317
+ const Expander = /*#__PURE__*/memo(ExpanderComponent);
318
+
319
+ // Type legend component to replace inline type indicators
320
+ const TypeLegendComponent = ({
321
+ visibleTypes
322
+ }) => {
323
+ const uniqueTypes = Array.from(new Set(visibleTypes)).slice(0, 8); // Limit to 8 most common types
324
+
325
+ return /*#__PURE__*/_jsx(View, {
326
+ style: STABLE_STYLES.typeLegend,
327
+ children: uniqueTypes.map(type => {
328
+ const color = getTypeColor(type);
329
+ return /*#__PURE__*/_jsxs(View, {
330
+ style: [STABLE_STYLES.typeBadge, {
331
+ backgroundColor: `${color}10`,
332
+ borderColor: `${color}30`
333
+ }],
334
+ children: [/*#__PURE__*/_jsx(View, {
335
+ style: [STABLE_STYLES.typeColor, {
336
+ backgroundColor: color
337
+ }]
338
+ }), /*#__PURE__*/_jsx(Text, {
339
+ style: STABLE_STYLES.typeName,
340
+ children: type
341
+ })]
342
+ }, type);
343
+ })
344
+ });
345
+ };
346
+ TypeLegendComponent.displayName = "TypeLegend";
347
+ const TypeLegend = /*#__PURE__*/memo(TypeLegendComponent);
348
+
349
+ // Optimized data flattening with chunked processing to prevent UI blocking [[memory:4875251]]
350
+ const useDataFlattening = (data, maxDepth = 10, autoExpandFirstLevel = false) => {
351
+ const [flatData, setFlatData] = useState([]);
352
+ const flatDataMapRef = useRef(new Map());
353
+
354
+ // Initialize with root expanded and optionally first level
355
+ const getInitialExpanded = useCallback(() => {
356
+ const initial = new Set(["root"]);
357
+ if (autoExpandFirstLevel && data && typeof data === "object") {
358
+ if (Array.isArray(data)) {
359
+ data.forEach((_, index) => {
360
+ initial.add(`root.${index}`);
361
+ });
362
+ } else {
363
+ Object.keys(data).forEach(key => {
364
+ initial.add(`root.${key}`);
365
+ });
366
+ }
367
+ }
368
+ return initial;
369
+ }, [autoExpandFirstLevel, data]);
370
+ const [expandedItems, setExpandedItems] = useState(() => getInitialExpanded());
371
+ const [isProcessing, setIsProcessing] = useState(false);
372
+
373
+ // Debug logging - commented out for less noise
374
+ // Store circular cache outside of re-renders to prevent reset
375
+ const circularCacheRef = useRef(new WeakSet());
376
+ const processingRef = useRef(false);
377
+ const dataVersionRef = useRef(0);
378
+ const lastActionRef = useRef(undefined);
379
+
380
+ // Stable flattenData function that doesn't depend on expandedItems
381
+ const flattenDataStable = useCallback((value, expandedSet, circularCache, key = "root", depth = 0, parentId, path = [], siblingIndex = 0, totalSiblings = 1, parentHasMoreSiblings = []) => {
382
+ // Early termination for performance [[memory:4875251]]
383
+ if (depth > Math.min(maxDepth, MAX_DEPTH_LIMIT)) return [];
384
+ const currentPath = [...path, key];
385
+ const id = currentPath.join(".");
386
+ const valueType = getValueType(value);
387
+ const isExpandable = ["object", "array", "map", "set"].includes(valueType) && value !== null;
388
+ const rawChildCount = isExpandable ? getValueCount(value, valueType) : 0;
389
+ // Limit child count to prevent performance issues [[memory:4875251]]
390
+ const childCount = Math.min(rawChildCount, MAX_ITEMS_PER_LEVEL);
391
+
392
+ // Check for circular references
393
+ if (value && typeof value === "object") {
394
+ if (circularCache.has(value)) {
395
+ return [{
396
+ id,
397
+ key,
398
+ value: "[Circular Reference]",
399
+ valueType: "circular",
400
+ depth,
401
+ isExpandable: false,
402
+ isExpanded: false,
403
+ parentId,
404
+ hasChildren: false,
405
+ childCount: 0,
406
+ path: currentPath,
407
+ type: "circular",
408
+ isLastChild: siblingIndex === totalSiblings - 1,
409
+ parentHasMoreSiblings: [...parentHasMoreSiblings],
410
+ siblingIndex,
411
+ totalSiblings
412
+ }];
413
+ }
414
+ circularCache.add(value);
415
+ }
416
+ const currentItem = {
417
+ id,
418
+ key,
419
+ value,
420
+ valueType,
421
+ depth,
422
+ isExpandable,
423
+ isExpanded: expandedSet.has(id),
424
+ parentId,
425
+ hasChildren: childCount > 0,
426
+ childCount,
427
+ path: currentPath,
428
+ type: isExpandable ? "expandable" : valueType,
429
+ isLastChild: siblingIndex === totalSiblings - 1,
430
+ parentHasMoreSiblings: [...parentHasMoreSiblings],
431
+ siblingIndex,
432
+ totalSiblings
433
+ };
434
+ const result = [currentItem];
435
+
436
+ // Only add children if expanded and not too deep [[memory:4875251]]
437
+ if (isExpandable && expandedSet.has(id) && depth < Math.min(maxDepth, MAX_DEPTH_LIMIT)) {
438
+ try {
439
+ let entries = [];
440
+ switch (valueType) {
441
+ case "array":
442
+ entries = Array.isArray(value) ? value.map((item, index) => [index.toString(), item]) : [];
443
+ break;
444
+ case "object":
445
+ entries = typeof value === "object" && value !== null && !(value instanceof Date) && !(value instanceof Error) && !(value instanceof RegExp) && !(value instanceof Map) && !(value instanceof Set) ? Object.entries(value) : [];
446
+ break;
447
+ case "map":
448
+ entries = value instanceof Map ? Array.from(value.entries()).map(([k, v]) => [String(k), v]) : [];
449
+ break;
450
+ case "set":
451
+ entries = value instanceof Set ? Array.from(value.values()).map((v, index) => [index.toString(), v]) : [];
452
+ break;
453
+ }
454
+
455
+ // Aggressively limit children for performance [[memory:4875251]]
456
+ const limitedEntries = entries.slice(0, childCount);
457
+ const totalChildCount = limitedEntries.length;
458
+
459
+ // Update parent's sibling tracking for children
460
+ const newParentHasMoreSiblings = [...parentHasMoreSiblings];
461
+ if (depth > 0) {
462
+ // Current item has more siblings if it's not the last child
463
+ newParentHasMoreSiblings[depth - 1] = !currentItem.isLastChild;
464
+ }
465
+
466
+ // Process children in smaller batches to avoid blocking
467
+ for (let i = 0; i < limitedEntries.length; i += CHUNK_SIZE) {
468
+ const chunk = limitedEntries.slice(i, i + CHUNK_SIZE);
469
+ let chunkIndex = i;
470
+ for (const [childKey, childValue] of chunk) {
471
+ result.push(...flattenDataStable(childValue, expandedSet, circularCache, childKey, depth + 1, id, currentPath, chunkIndex, totalChildCount, newParentHasMoreSiblings));
472
+ chunkIndex++;
473
+ }
474
+
475
+ // Yield to main thread periodically for large datasets
476
+ if (i > 0 && i % (CHUNK_SIZE * 2) === 0) {
477
+ break; // Let InteractionManager handle the rest
478
+ }
479
+ }
480
+ } catch (error) {
481
+ console.error(error);
482
+ // Skip malformed data
483
+ }
484
+ }
485
+ return result;
486
+ }, [maxDepth] // Only depend on maxDepth, not expandedItems
487
+ );
488
+
489
+ // Only process full data when data changes (not on expand/collapse)
490
+ useEffect(() => {
491
+ // Skip if this was just an expand/collapse action
492
+ if (lastActionRef.current && (lastActionRef.current.type === "expand" || lastActionRef.current.type === "collapse")) {
493
+ // Make sure processing flag is cleared for incremental updates
494
+ if (isProcessing) {
495
+ setIsProcessing(false);
496
+ processingRef.current = false;
497
+ }
498
+ lastActionRef.current = undefined;
499
+ return;
500
+ }
501
+
502
+ // Prevent concurrent processing
503
+ if (processingRef.current) {
504
+ return;
505
+ }
506
+ let isCancelled = false;
507
+ let timeoutId;
508
+ processingRef.current = true;
509
+ setIsProcessing(true);
510
+ const processData = async () => {
511
+ // Failsafe timeout to prevent stuck processing
512
+ timeoutId = setTimeout(() => {
513
+ if (processingRef.current && !isCancelled) {
514
+ setIsProcessing(false);
515
+ processingRef.current = false;
516
+ }
517
+ }, 5000);
518
+ // Small delay to debounce rapid changes
519
+ // Small delay to batch rapid changes
520
+ await new Promise(resolve => setTimeout(() => resolve(), 10));
521
+ if (isCancelled) {
522
+ processingRef.current = false;
523
+ return;
524
+ }
525
+ try {
526
+ // Initialize circular cache for new data
527
+ circularCacheRef.current = new WeakSet();
528
+ dataVersionRef.current = Date.now();
529
+ const newFlatData = flattenDataStable(data, expandedItems, circularCacheRef.current, "root", 0, undefined, [], 0, 1, []);
530
+
531
+ // Build the map for incremental updates
532
+ const newMap = new Map();
533
+ newFlatData.forEach((item, index) => {
534
+ newMap.set(item.id, {
535
+ item,
536
+ index
537
+ });
538
+ });
539
+ flatDataMapRef.current = newMap;
540
+ if (!isCancelled) {
541
+ setFlatData(newFlatData);
542
+ setIsProcessing(false);
543
+ processingRef.current = false;
544
+ if (timeoutId) clearTimeout(timeoutId);
545
+ } else {
546
+ if (timeoutId) clearTimeout(timeoutId);
547
+ }
548
+ } catch (error) {
549
+ console.error(error);
550
+ // Reset to empty data on error
551
+ if (!isCancelled) {
552
+ setFlatData([]);
553
+ flatDataMapRef.current = new Map();
554
+ setIsProcessing(false);
555
+ processingRef.current = false;
556
+ if (timeoutId) clearTimeout(timeoutId);
557
+ } else {
558
+ if (timeoutId) clearTimeout(timeoutId);
559
+ }
560
+ }
561
+ };
562
+ processData();
563
+ return () => {
564
+ isCancelled = true;
565
+ processingRef.current = false;
566
+ if (timeoutId) clearTimeout(timeoutId);
567
+ };
568
+ }, [data, expandedItems, flattenDataStable, maxDepth]);
569
+
570
+ // Incremental update function for expand/collapse
571
+ const updateFlatDataIncremental = useCallback((itemId, isExpanding) => {
572
+ // Clear processing flag since we're doing incremental update
573
+ setIsProcessing(false);
574
+ processingRef.current = false;
575
+ setFlatData(prevFlatData => {
576
+ const itemEntry = flatDataMapRef.current.get(itemId);
577
+ if (!itemEntry) {
578
+ return prevFlatData;
579
+ }
580
+ const {
581
+ item,
582
+ index
583
+ } = itemEntry;
584
+ if (isExpanding && item.isExpandable && item.hasChildren) {
585
+ // Expand: insert children after the item
586
+ const newItems = [...prevFlatData];
587
+
588
+ // Create a new circular cache for this subtree
589
+ const subCircularCache = new WeakSet();
590
+ if (item.value && typeof item.value === "object") {
591
+ subCircularCache.add(item.value);
592
+ }
593
+
594
+ // We need to get the actual children, not re-process the parent
595
+ // So we process each child entry individually
596
+ const childrenItems = [];
597
+ try {
598
+ let entries = [];
599
+ const valueType = item.valueType;
600
+ switch (valueType) {
601
+ case "array":
602
+ entries = Array.isArray(item.value) ? item.value.map((childValue, index) => [index.toString(), childValue]) : [];
603
+ break;
604
+ case "object":
605
+ entries = typeof item.value === "object" && item.value !== null && !(item.value instanceof Date) && !(item.value instanceof Error) && !(item.value instanceof RegExp) && !(item.value instanceof Map) && !(item.value instanceof Set) ? Object.entries(item.value) : [];
606
+ break;
607
+ case "map":
608
+ entries = item.value instanceof Map ? Array.from(item.value.entries()).map(([k, v]) => [String(k), v]) : [];
609
+ break;
610
+ case "set":
611
+ entries = item.value instanceof Set ? Array.from(item.value.values()).map((v, index) => [index.toString(), v]) : [];
612
+ break;
613
+ }
614
+
615
+ // Process each child with sibling tracking
616
+ const totalEntries = entries.length;
617
+ const parentHasMoreSiblings = item.parentHasMoreSiblings || [];
618
+ const newParentHasMoreSiblings = [...parentHasMoreSiblings];
619
+ if (item.depth > 0) {
620
+ newParentHasMoreSiblings[item.depth - 1] = !item.isLastChild;
621
+ }
622
+ entries.forEach(([childKey, childValue], index) => {
623
+ const childItems = flattenDataStable(childValue, new Set(),
624
+ // Children start collapsed
625
+ subCircularCache, childKey, item.depth + 1, itemId, item.path, index, totalEntries, newParentHasMoreSiblings);
626
+ childrenItems.push(...childItems);
627
+ });
628
+ } catch (error) {
629
+ console.error(error);
630
+ }
631
+ const childrenToInsert = childrenItems;
632
+ if (childrenToInsert.length > 0) {
633
+ // Children are ready to insert
634
+ }
635
+
636
+ // Update the parent item to show it's expanded
637
+ newItems[index] = {
638
+ ...item,
639
+ isExpanded: true
640
+ };
641
+
642
+ // Insert children after the parent
643
+ newItems.splice(index + 1, 0, ...childrenToInsert);
644
+
645
+ // Rebuild the map
646
+ const newMap = new Map();
647
+ newItems.forEach((item, index) => {
648
+ newMap.set(item.id, {
649
+ item,
650
+ index
651
+ });
652
+ });
653
+ flatDataMapRef.current = newMap;
654
+ return newItems;
655
+ } else if (!isExpanding) {
656
+ // Collapse: remove all descendants
657
+ const itemsToRemove = new Set();
658
+ const findDescendants = (parentId, depth) => {
659
+ prevFlatData.forEach(child => {
660
+ if (child.parentId === parentId || child.id.startsWith(parentId + ".") && child.depth > depth) {
661
+ itemsToRemove.add(child.id);
662
+ if (child.hasChildren) {
663
+ findDescendants(child.id, child.depth);
664
+ }
665
+ }
666
+ });
667
+ };
668
+ findDescendants(itemId, item.depth);
669
+
670
+ // Filter out descendants and update the parent
671
+ const newItems = prevFlatData.map(it => {
672
+ if (it.id === itemId) {
673
+ return {
674
+ ...it,
675
+ isExpanded: false
676
+ };
677
+ }
678
+ return it;
679
+ }).filter(it => !itemsToRemove.has(it.id));
680
+
681
+ // Rebuild the map
682
+ const newMap = new Map();
683
+ newItems.forEach((item, index) => {
684
+ newMap.set(item.id, {
685
+ item,
686
+ index
687
+ });
688
+ });
689
+ flatDataMapRef.current = newMap;
690
+ return newItems;
691
+ }
692
+ return prevFlatData;
693
+ });
694
+ }, [flattenDataStable]);
695
+ const toggleExpanded = useCallback(itemId => {
696
+ setExpandedItems(prev => {
697
+ const newSet = new Set(prev);
698
+ const isExpanding = !newSet.has(itemId);
699
+ if (isExpanding) {
700
+ newSet.add(itemId);
701
+ } else {
702
+ newSet.delete(itemId);
703
+ }
704
+
705
+ // Store the action for the effect to use
706
+ lastActionRef.current = {
707
+ type: isExpanding ? "expand" : "collapse",
708
+ itemId
709
+ };
710
+
711
+ // Perform incremental update
712
+ updateFlatDataIncremental(itemId, isExpanding);
713
+ return newSet;
714
+ });
715
+ }, [updateFlatDataIncremental]);
716
+ return {
717
+ flatData,
718
+ isProcessing,
719
+ toggleExpanded
720
+ };
721
+ };
722
+
723
+ // Optimized virtualized item renderer with full-row clickability [[memory:4875251]]
724
+ const VirtualizedItemComponent = ({
725
+ item,
726
+ onToggleExpanded,
727
+ data,
728
+ index,
729
+ onSelect,
730
+ isSelected,
731
+ disableCopy = false
732
+ }) => {
733
+ const [isPressed, setIsPressed] = useState(false);
734
+ const [showFullKey, setShowFullKey] = useState(false);
735
+
736
+ // Use pre-computed styles to avoid inline calculations [[memory:4875251]]
737
+ const indentStyle = INDENT_STYLES[Math.min(item.depth, MAX_DEPTH_LIMIT)] || INDENT_STYLES[0];
738
+ const color = getTypeColor(item.valueType);
739
+
740
+ // Uniform row layout: single-line like VS Code tree
741
+ const isLongKey = false;
742
+
743
+ // Use inline handler since component is already memoized [[memory:4875251]]
744
+ const handlePress = () => {
745
+ if (item.isExpandable) {
746
+ onToggleExpanded(item.id);
747
+ }
748
+ onSelect(index);
749
+ };
750
+ const handleKeyPress = () => {};
751
+
752
+ // Always show full key for better identification
753
+ const displayKey = item.key;
754
+ return /*#__PURE__*/_jsx(View, {
755
+ style: [STABLE_STYLES.itemContainer, indentStyle],
756
+ children: /*#__PURE__*/_jsxs(TouchableOpacity, {
757
+ "sentry-label": "ignore devtools data explorer item",
758
+ style: [STABLE_STYLES.itemTouchable, isPressed && STABLE_STYLES.itemTouchablePressed, isSelected && STABLE_STYLES.itemSelected, isLongKey && {
759
+ minHeight: LONG_ITEM_HEIGHT,
760
+ paddingVertical: 2
761
+ }],
762
+ onPress: handlePress,
763
+ onPressIn: () => setIsPressed(true),
764
+ onPressOut: () => setIsPressed(false),
765
+ activeOpacity: item.isExpandable ? 0.7 : 1,
766
+ disabled: !item.isExpandable,
767
+ children: [item.isExpandable ? /*#__PURE__*/_jsx(Expander, {
768
+ expanded: item.isExpanded,
769
+ onPress: handlePress
770
+ }) : /*#__PURE__*/_jsx(View, {
771
+ style: STABLE_STYLES.expanderContainer
772
+ }), /*#__PURE__*/_jsxs(View, {
773
+ style: STABLE_STYLES.labelContainer,
774
+ children: [/*#__PURE__*/_jsxs(Text, {
775
+ style: STABLE_STYLES.labelText,
776
+ numberOfLines: 1,
777
+ children: [item.key, ":"]
778
+ }), item.isExpandable ? /*#__PURE__*/_jsxs(_Fragment, {
779
+ children: [/*#__PURE__*/_jsxs(Text, {
780
+ style: [STABLE_STYLES.valueText, {
781
+ color: gameUIColors.secondary
782
+ }],
783
+ numberOfLines: 1,
784
+ children: [item.valueType, " (", item.childCount, " ", item.childCount === 1 ? "item" : "items", ")"]
785
+ }), item.id === "root" && data && /*#__PURE__*/_jsx(CopyButton, {
786
+ value: data,
787
+ size: 16,
788
+ buttonStyle: {
789
+ marginLeft: 8
790
+ },
791
+ disabled: disableCopy
792
+ })]
793
+ }) : /*#__PURE__*/_jsx(Text, {
794
+ style: [STABLE_STYLES.valueText, {
795
+ color
796
+ }],
797
+ numberOfLines: 1,
798
+ children: formatValue(item.value, item.valueType)
799
+ })]
800
+ })]
801
+ })
802
+ });
803
+ };
804
+ VirtualizedItemComponent.displayName = "VirtualizedItem";
805
+ const VirtualizedItem = /*#__PURE__*/memo(VirtualizedItemComponent);
806
+
807
+ // Main virtualized data explorer component
808
+
809
+ export const VirtualizedDataExplorer = ({
810
+ title,
811
+ description,
812
+ data,
813
+ maxDepth = 10,
814
+ rawMode = false,
815
+ initialExpanded = false,
816
+ disableCopy = false
817
+ }) => {
818
+ const [isExpanded, setIsExpanded] = useState(rawMode); // Auto-expand in raw mode
819
+ const {
820
+ flatData,
821
+ isProcessing,
822
+ toggleExpanded
823
+ } = useDataFlattening(data, maxDepth, initialExpanded);
824
+
825
+ // Track visible range for overlay rendering
826
+ const listRef = useRef(null);
827
+ const [visibleRange, setVisibleRange] = useState({
828
+ start: 0,
829
+ end: Math.min(flatData.length - 1, Math.max(0, Math.ceil(400 / ITEM_HEIGHT) - 1))
830
+ });
831
+ const viewabilityConfigRef = useRef({
832
+ itemVisiblePercentThreshold: 1
833
+ });
834
+ const onViewableItemsChanged = useRef(({
835
+ viewableItems
836
+ }) => {
837
+ const idx = viewableItems.map(v => v.index).filter(n => typeof n === "number");
838
+ if (idx.length) {
839
+ setVisibleRange({
840
+ start: Math.min(...idx),
841
+ end: Math.max(...idx)
842
+ });
843
+ }
844
+ }).current;
845
+ useEffect(() => {
846
+ // When data changes, reset the presumed visible window
847
+ setVisibleRange({
848
+ start: 0,
849
+ end: Math.min(flatData.length - 1, Math.max(0, Math.ceil(400 / ITEM_HEIGHT) - 1))
850
+ });
851
+ }, [flatData.length]);
852
+
853
+ // Calculate visible types for the legend with single pass deduplication
854
+ // Performance: Avoiding array.map() + Array.from(new Set()), using single loop for unique types
855
+ const visibleTypes = useMemo(() => {
856
+ const typeSet = new Set();
857
+ for (const item of flatData) {
858
+ typeSet.add(item.valueType);
859
+ // Early exit if we have enough types for the legend (max 8 as per TypeLegend component)
860
+ if (typeSet.size >= 8) break;
861
+ }
862
+ return Array.from(typeSet);
863
+ }, [flatData]);
864
+
865
+ // Remove unnecessary useCallback - not passed to memoized components [[memory:4875251]]
866
+ const toggleMainExpanded = () => {
867
+ setIsExpanded(!isExpanded);
868
+ };
869
+
870
+ // Stable renderItem using module-scope function [[memory:4875251]]
871
+ const [selectedIndex, setSelectedIndex] = useState(null);
872
+ const activeDepth = selectedIndex != null ? flatData[selectedIndex]?.depth : undefined;
873
+ const renderItem = ({
874
+ item,
875
+ index
876
+ }) => /*#__PURE__*/_jsx(VirtualizedItem, {
877
+ item: item,
878
+ index: index,
879
+ onToggleExpanded: toggleExpanded,
880
+ data: data,
881
+ onSelect: setSelectedIndex,
882
+ isSelected: selectedIndex === index,
883
+ disableCopy: disableCopy
884
+ });
885
+
886
+ // Uniform row height for crisp guide geometry
887
+ const averageItemSize = ITEM_HEIGHT;
888
+
889
+ // Simple keyExtractor without useCallback [[memory:4875251]]
890
+ const keyExtractor = item => item.id;
891
+ const hasData = data && (typeof data === "object" || Array.isArray(data)) && (Array.isArray(data) ? data.length > 0 : Object.keys(data).length > 0);
892
+
893
+ // Raw mode: render data directly without header/container
894
+ if (rawMode) {
895
+ if (!hasData) {
896
+ return /*#__PURE__*/_jsx(View, {
897
+ style: {
898
+ flex: 1,
899
+ justifyContent: "center",
900
+ alignItems: "center",
901
+ padding: 20
902
+ },
903
+ children: /*#__PURE__*/_jsx(Text, {
904
+ style: STABLE_STYLES.noDataText,
905
+ children: "No data available"
906
+ })
907
+ });
908
+ }
909
+ return /*#__PURE__*/_jsx(View, {
910
+ style: {
911
+ flex: 1
912
+ },
913
+ children: isProcessing ? /*#__PURE__*/_jsx(View, {
914
+ style: {
915
+ flex: 1,
916
+ justifyContent: "center",
917
+ alignItems: "center"
918
+ },
919
+ children: /*#__PURE__*/_jsxs(Text, {
920
+ style: STABLE_STYLES.loadingText,
921
+ children: ["Processing data... (raw mode, isProcessing=", String(isProcessing), ")"]
922
+ })
923
+ }) : /*#__PURE__*/_jsxs(View, {
924
+ style: {
925
+ position: "relative",
926
+ height: flatData.length * ITEM_HEIGHT
927
+ },
928
+ children: [/*#__PURE__*/_jsx(IndentGuidesOverlay, {
929
+ items: flatData,
930
+ visibleRange: {
931
+ start: 0,
932
+ end: Math.max(0, flatData.length - 1)
933
+ },
934
+ itemHeight: ITEM_HEIGHT,
935
+ indentWidth: INDENT_WIDTH,
936
+ activeDepth: activeDepth
937
+ }), /*#__PURE__*/_jsx(FlatList, {
938
+ ref: listRef,
939
+ "sentry-label": "ignore devtools data explorer list",
940
+ data: flatData,
941
+ renderItem: renderItem,
942
+ keyExtractor: keyExtractor,
943
+ showsVerticalScrollIndicator: true,
944
+ contentContainerStyle: STABLE_STYLES.listContent,
945
+ initialNumToRender: 15,
946
+ maxToRenderPerBatch: 10,
947
+ windowSize: 10,
948
+ scrollEnabled: false
949
+ })]
950
+ })
951
+ });
952
+ }
953
+
954
+ // Standard mode: render with header and container
955
+ if (!hasData) {
956
+ return /*#__PURE__*/_jsxs(View, {
957
+ style: STABLE_STYLES.container,
958
+ children: [/*#__PURE__*/_jsx(View, {
959
+ style: STABLE_STYLES.header,
960
+ children: /*#__PURE__*/_jsx(View, {
961
+ style: STABLE_STYLES.headerRow,
962
+ children: /*#__PURE__*/_jsxs(View, {
963
+ style: {
964
+ flex: 1
965
+ },
966
+ children: [/*#__PURE__*/_jsx(Text, {
967
+ style: STABLE_STYLES.title,
968
+ children: title
969
+ }), description && /*#__PURE__*/_jsx(Text, {
970
+ style: STABLE_STYLES.description,
971
+ children: description
972
+ })]
973
+ })
974
+ })
975
+ }), /*#__PURE__*/_jsx(View, {
976
+ style: STABLE_STYLES.noDataContainer,
977
+ children: /*#__PURE__*/_jsx(Text, {
978
+ style: STABLE_STYLES.noDataText,
979
+ children: "No data available"
980
+ })
981
+ })]
982
+ });
983
+ }
984
+ return /*#__PURE__*/_jsxs(View, {
985
+ style: STABLE_STYLES.container,
986
+ children: [/*#__PURE__*/_jsxs(View, {
987
+ style: STABLE_STYLES.header,
988
+ children: [/*#__PURE__*/_jsx(View, {
989
+ style: STABLE_STYLES.headerRow,
990
+ children: /*#__PURE__*/_jsxs(TouchableOpacity, {
991
+ "sentry-label": "ignore devtools data explorer header toggle",
992
+ onPress: toggleMainExpanded,
993
+ hitSlop: HIT_SLOP_10,
994
+ style: STABLE_STYLES.headerTouchable,
995
+ children: [/*#__PURE__*/_jsxs(View, {
996
+ style: {
997
+ flex: 1
998
+ },
999
+ children: [/*#__PURE__*/_jsx(Text, {
1000
+ style: STABLE_STYLES.title,
1001
+ children: title
1002
+ }), description && /*#__PURE__*/_jsx(Text, {
1003
+ style: STABLE_STYLES.description,
1004
+ children: description
1005
+ })]
1006
+ }), /*#__PURE__*/_jsx(View, {
1007
+ style: STABLE_STYLES.expanderMargin,
1008
+ children: /*#__PURE__*/_jsx(Expander, {
1009
+ expanded: isExpanded,
1010
+ onPress: toggleMainExpanded
1011
+ })
1012
+ })]
1013
+ })
1014
+ }), isExpanded && visibleTypes.length > 0 && !rawMode && /*#__PURE__*/_jsx(TypeLegend, {
1015
+ visibleTypes: visibleTypes
1016
+ })]
1017
+ }), isExpanded && /*#__PURE__*/_jsx(_Fragment, {
1018
+ children: isProcessing ? /*#__PURE__*/_jsx(View, {
1019
+ style: STABLE_STYLES.loadingContainer,
1020
+ children: /*#__PURE__*/_jsxs(Text, {
1021
+ style: STABLE_STYLES.loadingText,
1022
+ children: ["Processing data... (isProcessing=", String(isProcessing), ")"]
1023
+ })
1024
+ }) : /*#__PURE__*/_jsxs(View, {
1025
+ style: {
1026
+ height: Math.min(flatData.length * ITEM_HEIGHT, 400),
1027
+ position: "relative"
1028
+ },
1029
+ children: [/*#__PURE__*/_jsx(IndentGuidesOverlay, {
1030
+ items: flatData,
1031
+ visibleRange: visibleRange,
1032
+ itemHeight: ITEM_HEIGHT,
1033
+ indentWidth: INDENT_WIDTH,
1034
+ activeDepth: activeDepth
1035
+ }), /*#__PURE__*/_jsx(FlatList, {
1036
+ ref: listRef,
1037
+ "sentry-label": "ignore devtools data explorer collapsed list",
1038
+ data: flatData,
1039
+ renderItem: renderItem,
1040
+ keyExtractor: keyExtractor,
1041
+ showsVerticalScrollIndicator: true,
1042
+ contentContainerStyle: STABLE_STYLES.listContent,
1043
+ initialNumToRender: 15,
1044
+ maxToRenderPerBatch: 10,
1045
+ windowSize: 10,
1046
+ scrollEnabled: false,
1047
+ onViewableItemsChanged: onViewableItemsChanged,
1048
+ viewabilityConfig: viewabilityConfigRef.current
1049
+ })]
1050
+ })
1051
+ })]
1052
+ });
1053
+ };