@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,588 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Persistent Storage for React Buoy DevTools
5
+ *
6
+ * This module provides a storage abstraction that persists independently of AsyncStorage.
7
+ * When expo-file-system is available, it uses file-based storage that survives
8
+ * AsyncStorage.clear() calls (e.g., during logout flows).
9
+ *
10
+ * Fallback hierarchy:
11
+ * 1. FileSystem (expo-file-system) - persistent, survives AsyncStorage.clear()
12
+ * 2. AsyncStorage - standard React Native storage
13
+ * 3. Memory - in-memory fallback when nothing else works
14
+ */
15
+
16
+ import { devToolsStorageKeys } from "../storage/devToolsStorageKeys.js";
17
+
18
+ // Web globals type declarations (for cross-platform compatibility)
19
+ // These allow TypeScript to compile in React Native where window/localStorage don't exist
20
+
21
+ // Types
22
+
23
+ // Storage backend state
24
+
25
+ let storageBackend = null;
26
+ let initPromise = null;
27
+ let initWarningShown = false;
28
+
29
+ // Cached modules
30
+ let FileSystem = null;
31
+ let AsyncStorage = null;
32
+
33
+ // Memory fallback
34
+ const memoryStore = new Map();
35
+
36
+ // Check if we're in a web environment with localStorage
37
+ function isWebEnvironment() {
38
+ return typeof window !== "undefined" && window?.localStorage !== undefined;
39
+ }
40
+
41
+ // Constants
42
+ const STORAGE_DIR_NAME = "react-buoy";
43
+ const HEALTH_CHECK_FILE_NAME = ".health-check";
44
+ function getStorageDir() {
45
+ if (!FileSystem?.documentDirectory) return null;
46
+ return `${FileSystem.documentDirectory}${STORAGE_DIR_NAME}/`;
47
+ }
48
+ function getFilePath(key) {
49
+ const dir = getStorageDir();
50
+ if (!dir) return null;
51
+ return `${dir}${encodeURIComponent(key)}.json`;
52
+ }
53
+
54
+ /**
55
+ * Try to load expo-file-system
56
+ *
57
+ * Note: We try the legacy import first (expo-file-system/legacy) for v19+ compatibility,
58
+ * then fall back to the main import for older versions.
59
+ */
60
+ function loadFileSystem() {
61
+ if (FileSystem) return FileSystem;
62
+
63
+ // Try legacy import first (v19+ moved legacy functions here)
64
+ try {
65
+ const mod = require("expo-file-system/legacy");
66
+ FileSystem = mod?.default || mod;
67
+ if (FileSystem && FileSystem.documentDirectory) {
68
+ return FileSystem;
69
+ }
70
+ FileSystem = null;
71
+ } catch {
72
+ // Not available, try main import
73
+ }
74
+
75
+ // Fall back to main import (older versions or if legacy path doesn't exist)
76
+ try {
77
+ const mod = require("expo-file-system");
78
+ FileSystem = mod?.default || mod;
79
+ if (FileSystem && FileSystem.documentDirectory) {
80
+ return FileSystem;
81
+ }
82
+ FileSystem = null;
83
+ } catch {
84
+ // Not installed or not available
85
+ }
86
+ return null;
87
+ }
88
+
89
+ /**
90
+ * Try to load AsyncStorage
91
+ */
92
+ function loadAsyncStorage() {
93
+ if (AsyncStorage) return AsyncStorage;
94
+ try {
95
+ const mod = require("@react-native-async-storage/async-storage");
96
+ AsyncStorage = mod?.default || mod;
97
+ if (AsyncStorage && typeof AsyncStorage.getItem === "function") {
98
+ return AsyncStorage;
99
+ }
100
+ AsyncStorage = null;
101
+ } catch {
102
+ // Not installed or not available
103
+ }
104
+ return null;
105
+ }
106
+
107
+ /**
108
+ * Test if FileSystem works with CRUD operations
109
+ */
110
+ async function testFileSystem() {
111
+ const fs = loadFileSystem();
112
+ if (!fs || !fs.documentDirectory) {
113
+ return false;
114
+ }
115
+ const storageDir = getStorageDir();
116
+ if (!storageDir) return false;
117
+ const healthCheckFile = `${storageDir}${HEALTH_CHECK_FILE_NAME}`;
118
+ try {
119
+ // Ensure directory exists
120
+ const dirInfo = await fs.getInfoAsync(storageDir);
121
+ if (!dirInfo.exists) {
122
+ await fs.makeDirectoryAsync(storageDir, {
123
+ intermediates: true
124
+ });
125
+ }
126
+
127
+ // Test write
128
+ const testData = `health-check-${Date.now()}`;
129
+ await fs.writeAsStringAsync(healthCheckFile, testData);
130
+
131
+ // Test read
132
+ const readBack = await fs.readAsStringAsync(healthCheckFile);
133
+ if (readBack !== testData) {
134
+ return false;
135
+ }
136
+
137
+ // Test delete
138
+ await fs.deleteAsync(healthCheckFile, {
139
+ idempotent: true
140
+ });
141
+ return true;
142
+ } catch (error) {
143
+ console.warn("[React Buoy] FileSystem health check failed:", error);
144
+ return false;
145
+ }
146
+ }
147
+
148
+ /**
149
+ * Migrate existing AsyncStorage keys to FileSystem
150
+ */
151
+ async function migrateFromAsyncStorage() {
152
+ const asyncStorage = loadAsyncStorage();
153
+ if (!asyncStorage) return;
154
+ try {
155
+ const allKeys = await asyncStorage.getAllKeys();
156
+ const buoyKeys = allKeys.filter(k => k.startsWith(devToolsStorageKeys.base));
157
+ if (buoyKeys.length === 0) {
158
+ return; // Nothing to migrate
159
+ }
160
+ const pairs = await asyncStorage.multiGet(buoyKeys);
161
+ let migratedCount = 0;
162
+ for (const [fullKey, value] of pairs) {
163
+ if (value !== null) {
164
+ // Store in file system (key already has the prefix)
165
+ await fileSystemStorage.setItem(fullKey, value);
166
+ migratedCount++;
167
+ }
168
+ }
169
+
170
+ // Migration complete - count is ${migratedCount} items
171
+ void migratedCount;
172
+
173
+ // Optionally: clean up old AsyncStorage keys after successful migration
174
+ // await asyncStorage.multiRemove(buoyKeys);
175
+ } catch (error) {
176
+ console.warn("[React Buoy] Migration failed:", error);
177
+ // Continue anyway - not critical
178
+ }
179
+ }
180
+
181
+ // File system storage implementation
182
+ const fileSystemStorage = {
183
+ async getItem(key) {
184
+ const fs = loadFileSystem();
185
+ if (!fs) return null;
186
+ const filePath = getFilePath(key);
187
+ if (!filePath) return null;
188
+ try {
189
+ // Check if file exists before reading (best practice from Expo docs)
190
+ const fileInfo = await fs.getInfoAsync(filePath);
191
+ if (!fileInfo.exists) {
192
+ return null;
193
+ }
194
+ const content = await fs.readAsStringAsync(filePath);
195
+ return content;
196
+ } catch {
197
+ return null; // File doesn't exist or read failed
198
+ }
199
+ },
200
+ async setItem(key, value) {
201
+ const fs = loadFileSystem();
202
+ if (!fs) return;
203
+ const storageDir = getStorageDir();
204
+ const filePath = getFilePath(key);
205
+ if (!storageDir || !filePath) return;
206
+ try {
207
+ // Ensure directory exists
208
+ const dirInfo = await fs.getInfoAsync(storageDir);
209
+ if (!dirInfo.exists) {
210
+ await fs.makeDirectoryAsync(storageDir, {
211
+ intermediates: true
212
+ });
213
+ }
214
+ await fs.writeAsStringAsync(filePath, value);
215
+ } catch (error) {
216
+ console.warn("[React Buoy] FileSystem write failed:", error);
217
+ }
218
+ },
219
+ async removeItem(key) {
220
+ const fs = loadFileSystem();
221
+ if (!fs) return;
222
+ const filePath = getFilePath(key);
223
+ if (!filePath) return;
224
+ try {
225
+ await fs.deleteAsync(filePath, {
226
+ idempotent: true
227
+ });
228
+ } catch {
229
+ // Ignore if doesn't exist
230
+ }
231
+ },
232
+ async getAllKeys() {
233
+ const fs = loadFileSystem();
234
+ if (!fs) return [];
235
+ const storageDir = getStorageDir();
236
+ if (!storageDir) return [];
237
+ try {
238
+ const dirInfo = await fs.getInfoAsync(storageDir);
239
+ if (!dirInfo.exists) return [];
240
+ const files = await fs.readDirectoryAsync(storageDir);
241
+ return files.filter(f => f.endsWith(".json")).map(f => decodeURIComponent(f.replace(".json", "")));
242
+ } catch {
243
+ return [];
244
+ }
245
+ },
246
+ async multiGet(keys) {
247
+ const results = [];
248
+ for (const key of keys) {
249
+ const value = await this.getItem(key);
250
+ results.push([key, value]);
251
+ }
252
+ return results;
253
+ },
254
+ async multiRemove(keys) {
255
+ for (const key of keys) {
256
+ await this.removeItem(key);
257
+ }
258
+ },
259
+ async clear() {
260
+ const fs = loadFileSystem();
261
+ if (!fs) return;
262
+ const storageDir = getStorageDir();
263
+ if (!storageDir) return;
264
+ try {
265
+ await fs.deleteAsync(storageDir, {
266
+ idempotent: true
267
+ });
268
+ } catch {
269
+ // Ignore
270
+ }
271
+ }
272
+ };
273
+
274
+ // AsyncStorage adapter
275
+ const asyncStorageAdapter = {
276
+ async getItem(key) {
277
+ const storage = loadAsyncStorage();
278
+ if (!storage) return memoryStore.get(key) ?? null;
279
+ try {
280
+ return await storage.getItem(key);
281
+ } catch {
282
+ return memoryStore.get(key) ?? null;
283
+ }
284
+ },
285
+ async setItem(key, value) {
286
+ const storage = loadAsyncStorage();
287
+ if (!storage) {
288
+ memoryStore.set(key, value);
289
+ return;
290
+ }
291
+ try {
292
+ await storage.setItem(key, value);
293
+ } catch {
294
+ memoryStore.set(key, value);
295
+ }
296
+ },
297
+ async removeItem(key) {
298
+ const storage = loadAsyncStorage();
299
+ memoryStore.delete(key);
300
+ if (!storage) return;
301
+ try {
302
+ await storage.removeItem(key);
303
+ } catch {
304
+ // Ignore
305
+ }
306
+ },
307
+ async getAllKeys() {
308
+ const storage = loadAsyncStorage();
309
+ if (!storage) return Array.from(memoryStore.keys());
310
+ try {
311
+ const keys = await storage.getAllKeys();
312
+ return keys.filter(k => k.startsWith(devToolsStorageKeys.base));
313
+ } catch {
314
+ return Array.from(memoryStore.keys());
315
+ }
316
+ },
317
+ async multiGet(keys) {
318
+ const storage = loadAsyncStorage();
319
+ if (!storage) {
320
+ return keys.map(k => [k, memoryStore.get(k) ?? null]);
321
+ }
322
+ try {
323
+ const results = await storage.multiGet(keys);
324
+ return results;
325
+ } catch {
326
+ return keys.map(k => [k, memoryStore.get(k) ?? null]);
327
+ }
328
+ },
329
+ async multiRemove(keys) {
330
+ keys.forEach(k => memoryStore.delete(k));
331
+ const storage = loadAsyncStorage();
332
+ if (!storage) return;
333
+ try {
334
+ await storage.multiRemove(keys);
335
+ } catch {
336
+ // Ignore
337
+ }
338
+ },
339
+ async clear() {
340
+ memoryStore.clear();
341
+ const storage = loadAsyncStorage();
342
+ if (!storage) return;
343
+ try {
344
+ const allKeys = await storage.getAllKeys();
345
+ const buoyKeys = allKeys.filter(k => k.startsWith(devToolsStorageKeys.base));
346
+ if (buoyKeys.length > 0) {
347
+ await storage.multiRemove(buoyKeys);
348
+ }
349
+ } catch {
350
+ // Ignore
351
+ }
352
+ }
353
+ };
354
+
355
+ // localStorage adapter (for web environments)
356
+ const localStorageAdapter = {
357
+ async getItem(key) {
358
+ if (!isWebEnvironment()) return memoryStore.get(key) ?? null;
359
+ try {
360
+ return window.localStorage.getItem(key);
361
+ } catch {
362
+ return memoryStore.get(key) ?? null;
363
+ }
364
+ },
365
+ async setItem(key, value) {
366
+ if (!isWebEnvironment()) {
367
+ memoryStore.set(key, value);
368
+ return;
369
+ }
370
+ try {
371
+ window.localStorage.setItem(key, value);
372
+ } catch {
373
+ memoryStore.set(key, value);
374
+ }
375
+ },
376
+ async removeItem(key) {
377
+ memoryStore.delete(key);
378
+ if (!isWebEnvironment()) return;
379
+ try {
380
+ window.localStorage.removeItem(key);
381
+ } catch {
382
+ // Ignore
383
+ }
384
+ },
385
+ async getAllKeys() {
386
+ if (!isWebEnvironment()) return Array.from(memoryStore.keys());
387
+ try {
388
+ const keys = [];
389
+ const storage = window.localStorage;
390
+ for (let i = 0; i < storage.length; i++) {
391
+ const key = storage.key(i);
392
+ if (key && key.startsWith(devToolsStorageKeys.base)) {
393
+ keys.push(key);
394
+ }
395
+ }
396
+ return keys;
397
+ } catch {
398
+ return Array.from(memoryStore.keys());
399
+ }
400
+ },
401
+ async multiGet(keys) {
402
+ const results = [];
403
+ for (const key of keys) {
404
+ const value = await this.getItem(key);
405
+ results.push([key, value]);
406
+ }
407
+ return results;
408
+ },
409
+ async multiRemove(keys) {
410
+ for (const key of keys) {
411
+ await this.removeItem(key);
412
+ }
413
+ },
414
+ async clear() {
415
+ memoryStore.clear();
416
+ if (!isWebEnvironment()) return;
417
+ try {
418
+ const keys = await this.getAllKeys();
419
+ const storage = window.localStorage;
420
+ for (const key of keys) {
421
+ storage.removeItem(key);
422
+ }
423
+ } catch {
424
+ // Ignore
425
+ }
426
+ }
427
+ };
428
+
429
+ // Memory-only storage
430
+ const memoryStorage = {
431
+ async getItem(key) {
432
+ return memoryStore.get(key) ?? null;
433
+ },
434
+ async setItem(key, value) {
435
+ memoryStore.set(key, value);
436
+ },
437
+ async removeItem(key) {
438
+ memoryStore.delete(key);
439
+ },
440
+ async getAllKeys() {
441
+ return Array.from(memoryStore.keys());
442
+ },
443
+ async multiGet(keys) {
444
+ return keys.map(k => [k, memoryStore.get(k) ?? null]);
445
+ },
446
+ async multiRemove(keys) {
447
+ keys.forEach(k => memoryStore.delete(k));
448
+ },
449
+ async clear() {
450
+ memoryStore.clear();
451
+ }
452
+ };
453
+
454
+ /**
455
+ * Initialize storage - determines which backend to use
456
+ *
457
+ * Fallback hierarchy:
458
+ * 1. FileSystem (expo-file-system) - persistent, survives AsyncStorage.clear()
459
+ * 2. AsyncStorage - standard React Native storage
460
+ * 3. localStorage - web browser storage
461
+ * 4. Memory - in-memory fallback when nothing else works
462
+ */
463
+ async function initStorage() {
464
+ // Only run once
465
+ if (storageBackend !== null) return;
466
+
467
+ // Test FileSystem first (React Native with expo-file-system)
468
+ const fileSystemWorks = await testFileSystem();
469
+ if (fileSystemWorks) {
470
+ // Check if we need to migrate from AsyncStorage
471
+ const existingFiles = await fileSystemStorage.getAllKeys();
472
+ if (existingFiles.length === 0) {
473
+ // Empty file storage - check for AsyncStorage data to migrate
474
+ await migrateFromAsyncStorage();
475
+ }
476
+ storageBackend = "filesystem";
477
+ } else {
478
+ // Try AsyncStorage (React Native)
479
+ const asyncStorage = loadAsyncStorage();
480
+ if (asyncStorage) {
481
+ storageBackend = "asyncstorage";
482
+ if (!initWarningShown) {
483
+ initWarningShown = true;
484
+ console.warn("[React Buoy] Using AsyncStorage fallback. " + "Settings may be lost if AsyncStorage is cleared. " + "Install expo-file-system for persistent storage.");
485
+ }
486
+ } else if (isWebEnvironment()) {
487
+ // Try localStorage (Web)
488
+ storageBackend = "localstorage";
489
+ } else {
490
+ storageBackend = "memory";
491
+ if (!initWarningShown) {
492
+ initWarningShown = true;
493
+ console.warn("[React Buoy] Using in-memory storage. " + "Settings will be lost on app restart.");
494
+ }
495
+ }
496
+ }
497
+ }
498
+
499
+ /**
500
+ * Ensure init runs before any storage operation
501
+ */
502
+ function ensureInit() {
503
+ if (!initPromise) {
504
+ initPromise = initStorage();
505
+ }
506
+ return initPromise;
507
+ }
508
+
509
+ /**
510
+ * Get the current storage implementation based on detected backend
511
+ */
512
+ function getStorage() {
513
+ switch (storageBackend) {
514
+ case "filesystem":
515
+ return fileSystemStorage;
516
+ case "asyncstorage":
517
+ return asyncStorageAdapter;
518
+ case "localstorage":
519
+ return localStorageAdapter;
520
+ case "memory":
521
+ default:
522
+ return memoryStorage;
523
+ }
524
+ }
525
+
526
+ /**
527
+ * Persistent storage for React Buoy DevTools
528
+ *
529
+ * Uses FileSystem when available (survives AsyncStorage.clear()),
530
+ * falls back to AsyncStorage, then localStorage (web), then memory.
531
+ *
532
+ * Same API as AsyncStorage for easy migration.
533
+ */
534
+ export const persistentStorage = {
535
+ async getItem(key) {
536
+ await ensureInit();
537
+ return getStorage().getItem(key);
538
+ },
539
+ async setItem(key, value) {
540
+ await ensureInit();
541
+ return getStorage().setItem(key, value);
542
+ },
543
+ async removeItem(key) {
544
+ await ensureInit();
545
+ return getStorage().removeItem(key);
546
+ },
547
+ async getAllKeys() {
548
+ await ensureInit();
549
+ return getStorage().getAllKeys();
550
+ },
551
+ async multiGet(keys) {
552
+ await ensureInit();
553
+ return getStorage().multiGet(keys);
554
+ },
555
+ async multiRemove(keys) {
556
+ await ensureInit();
557
+ return getStorage().multiRemove(keys);
558
+ },
559
+ async clear() {
560
+ await ensureInit();
561
+ return getStorage().clear();
562
+ }
563
+ };
564
+
565
+ /**
566
+ * Check if persistent storage (FileSystem) is being used
567
+ */
568
+ export async function isUsingPersistentStorage() {
569
+ await ensureInit();
570
+ return storageBackend === "filesystem";
571
+ }
572
+
573
+ /**
574
+ * Get the current storage backend type
575
+ */
576
+ export async function getStorageBackendType() {
577
+ await ensureInit();
578
+ return storageBackend ?? "memory";
579
+ }
580
+
581
+ /**
582
+ * Force re-initialization of storage (useful for testing)
583
+ */
584
+ export function resetStorageInit() {
585
+ storageBackend = null;
586
+ initPromise = null;
587
+ initWarningShown = false;
588
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ // Safe storage wrapper that uses persistent file storage when available,
4
+ // falling back to AsyncStorage, then in-memory store.
5
+ //
6
+ // This module re-exports the persistentStorage API with the legacy function names
7
+ // (safeGetItem, safeSetItem, safeRemoveItem) for backwards compatibility.
8
+
9
+ import { useEffect, useMemo, useState } from "react";
10
+ import { persistentStorage, isUsingPersistentStorage } from "./persistentStorage.js";
11
+
12
+ /**
13
+ * Read a value from persistent storage (FileSystem > AsyncStorage > Memory)
14
+ *
15
+ * @deprecated Use `persistentStorage.getItem()` directly for new code
16
+ */
17
+ export async function safeGetItem(key) {
18
+ return persistentStorage.getItem(key);
19
+ }
20
+
21
+ /**
22
+ * Persist a value to storage (FileSystem > AsyncStorage > Memory)
23
+ *
24
+ * @deprecated Use `persistentStorage.setItem()` directly for new code
25
+ */
26
+ export async function safeSetItem(key, value) {
27
+ return persistentStorage.setItem(key, value);
28
+ }
29
+
30
+ /**
31
+ * Remove an item from storage
32
+ *
33
+ * @deprecated Use `persistentStorage.removeItem()` directly for new code
34
+ */
35
+ export async function safeRemoveItem(key) {
36
+ return persistentStorage.removeItem(key);
37
+ }
38
+
39
+ /**
40
+ * Check if persistent storage (FileSystem) is being used
41
+ * Returns true if FileSystem storage is available and working
42
+ */
43
+ export async function isPersistentStorageAvailable() {
44
+ return isUsingPersistentStorage();
45
+ }
46
+
47
+ /**
48
+ * React hook exposing storage APIs backed by persistent storage
49
+ *
50
+ * @deprecated Use `persistentStorage` directly for new code
51
+ */
52
+ export function useSafeAsyncStorage() {
53
+ const [isPersistent, setIsPersistent] = useState(false);
54
+ useEffect(() => {
55
+ // Check if persistent storage is available
56
+ isUsingPersistentStorage().then(setIsPersistent);
57
+ }, []);
58
+ return useMemo(() => ({
59
+ getItem: safeGetItem,
60
+ setItem: safeSetItem,
61
+ removeItem: safeRemoveItem,
62
+ isPersistent
63
+ }), [isPersistent]);
64
+ }