react-native-debug-toolkit 0.6.4 → 2.1.0

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 (340) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +149 -211
  3. package/README.zh-CN.md +150 -171
  4. package/lib/commonjs/components/ClipboardTab.js +91 -0
  5. package/lib/commonjs/components/ClipboardTab.js.map +1 -0
  6. package/lib/commonjs/components/ConsoleLogTab.js +162 -0
  7. package/lib/commonjs/components/ConsoleLogTab.js.map +1 -0
  8. package/lib/commonjs/components/DebugPanel.js +230 -0
  9. package/lib/commonjs/components/DebugPanel.js.map +1 -0
  10. package/lib/commonjs/components/DebugView.js +66 -0
  11. package/lib/commonjs/components/DebugView.js.map +1 -0
  12. package/lib/commonjs/components/EnvironmentTab.js +287 -0
  13. package/lib/commonjs/components/EnvironmentTab.js.map +1 -0
  14. package/lib/commonjs/components/FeatureTabBar.js +182 -0
  15. package/lib/commonjs/components/FeatureTabBar.js.map +1 -0
  16. package/lib/commonjs/components/FloatIcon.js +187 -0
  17. package/lib/commonjs/components/FloatIcon.js.map +1 -0
  18. package/lib/commonjs/components/FloatPanelView.js +214 -0
  19. package/lib/commonjs/components/FloatPanelView.js.map +1 -0
  20. package/lib/commonjs/components/NavigationLogTab.js +131 -0
  21. package/lib/commonjs/components/NavigationLogTab.js.map +1 -0
  22. package/lib/commonjs/components/NetworkLogTab.js +404 -0
  23. package/lib/commonjs/components/NetworkLogTab.js.map +1 -0
  24. package/lib/commonjs/components/ThirdPartyLibsTab.js +97 -0
  25. package/lib/commonjs/components/ThirdPartyLibsTab.js.map +1 -0
  26. package/lib/commonjs/components/TrackLogTab.js +230 -0
  27. package/lib/commonjs/components/TrackLogTab.js.map +1 -0
  28. package/lib/commonjs/components/ZustandLogTab.js +311 -0
  29. package/lib/commonjs/components/ZustandLogTab.js.map +1 -0
  30. package/lib/commonjs/components/shared/CollapsibleSection.js +84 -0
  31. package/lib/commonjs/components/shared/CollapsibleSection.js.map +1 -0
  32. package/lib/commonjs/components/shared/CopyButton.js +64 -0
  33. package/lib/commonjs/components/shared/CopyButton.js.map +1 -0
  34. package/lib/commonjs/components/shared/JsonView.js +157 -0
  35. package/lib/commonjs/components/shared/JsonView.js.map +1 -0
  36. package/lib/commonjs/components/shared/LogListScreen.js +174 -0
  37. package/lib/commonjs/components/shared/LogListScreen.js.map +1 -0
  38. package/lib/commonjs/core/DebugToolkit.js +122 -0
  39. package/lib/commonjs/core/DebugToolkit.js.map +1 -0
  40. package/lib/commonjs/core/DebugToolkitProvider.js +66 -0
  41. package/lib/commonjs/core/DebugToolkitProvider.js.map +1 -0
  42. package/lib/commonjs/features/ClipboardFeature.js +21 -0
  43. package/lib/commonjs/features/ClipboardFeature.js.map +1 -0
  44. package/lib/commonjs/features/ConsoleLogFeature.js +115 -0
  45. package/lib/commonjs/features/ConsoleLogFeature.js.map +1 -0
  46. package/lib/commonjs/features/EnvironmentFeature.js +160 -0
  47. package/lib/commonjs/features/EnvironmentFeature.js.map +1 -0
  48. package/lib/commonjs/features/NavigationLogFeature.js +39 -0
  49. package/lib/commonjs/features/NavigationLogFeature.js.map +1 -0
  50. package/lib/commonjs/features/NetworkFeature.js +107 -0
  51. package/lib/commonjs/features/NetworkFeature.js.map +1 -0
  52. package/lib/commonjs/features/ThirdPartyLibsFeature.js +51 -0
  53. package/lib/commonjs/features/ThirdPartyLibsFeature.js.map +1 -0
  54. package/lib/commonjs/features/TrackFeature.js +34 -0
  55. package/lib/commonjs/features/TrackFeature.js.map +1 -0
  56. package/lib/commonjs/features/ZustandLogFeature.js +59 -0
  57. package/lib/commonjs/features/ZustandLogFeature.js.map +1 -0
  58. package/lib/commonjs/hooks/useNavigationLogger.js +78 -0
  59. package/lib/commonjs/hooks/useNavigationLogger.js.map +1 -0
  60. package/lib/commonjs/hooks/useSlideDetailAnimation.js +53 -0
  61. package/lib/commonjs/hooks/useSlideDetailAnimation.js.map +1 -0
  62. package/lib/commonjs/index.js +152 -0
  63. package/lib/commonjs/index.js.map +1 -0
  64. package/lib/commonjs/initialize.js +84 -0
  65. package/lib/commonjs/initialize.js.map +1 -0
  66. package/lib/commonjs/interceptors/networkInterceptor.js +466 -0
  67. package/lib/commonjs/interceptors/networkInterceptor.js.map +1 -0
  68. package/lib/commonjs/native/NativeDebugLibs.js +58 -0
  69. package/lib/commonjs/native/NativeDebugLibs.js.map +1 -0
  70. package/lib/commonjs/package.json +1 -0
  71. package/lib/commonjs/types/index.js +6 -0
  72. package/lib/commonjs/types/index.js.map +1 -0
  73. package/lib/commonjs/utils/colors.js +48 -0
  74. package/lib/commonjs/utils/colors.js.map +1 -0
  75. package/lib/commonjs/utils/copyToComputer.js +97 -0
  76. package/lib/commonjs/utils/copyToComputer.js.map +1 -0
  77. package/lib/commonjs/utils/createChannelFeature.js +48 -0
  78. package/lib/commonjs/utils/createChannelFeature.js.map +1 -0
  79. package/lib/commonjs/utils/createEventChannel.js +21 -0
  80. package/lib/commonjs/utils/createEventChannel.js.map +1 -0
  81. package/lib/commonjs/utils/createObservableStore.js +38 -0
  82. package/lib/commonjs/utils/createObservableStore.js.map +1 -0
  83. package/lib/commonjs/utils/layout.js +8 -0
  84. package/lib/commonjs/utils/layout.js.map +1 -0
  85. package/lib/commonjs/utils/safeStringify.js +27 -0
  86. package/lib/commonjs/utils/safeStringify.js.map +1 -0
  87. package/lib/commonjs/utils/urlRewriterRegistry.js +14 -0
  88. package/lib/commonjs/utils/urlRewriterRegistry.js.map +1 -0
  89. package/lib/module/components/ClipboardTab.js +86 -0
  90. package/lib/module/components/ClipboardTab.js.map +1 -0
  91. package/lib/module/components/ConsoleLogTab.js +157 -0
  92. package/lib/module/components/ConsoleLogTab.js.map +1 -0
  93. package/lib/module/components/DebugPanel.js +225 -0
  94. package/lib/module/components/DebugPanel.js.map +1 -0
  95. package/lib/module/components/DebugView.js +61 -0
  96. package/lib/module/components/DebugView.js.map +1 -0
  97. package/lib/module/components/EnvironmentTab.js +282 -0
  98. package/lib/module/components/EnvironmentTab.js.map +1 -0
  99. package/lib/module/components/FeatureTabBar.js +177 -0
  100. package/lib/module/components/FeatureTabBar.js.map +1 -0
  101. package/lib/module/components/FloatIcon.js +182 -0
  102. package/lib/module/components/FloatIcon.js.map +1 -0
  103. package/lib/module/components/FloatPanelView.js +209 -0
  104. package/lib/module/components/FloatPanelView.js.map +1 -0
  105. package/lib/module/components/NavigationLogTab.js +126 -0
  106. package/lib/module/components/NavigationLogTab.js.map +1 -0
  107. package/lib/module/components/NetworkLogTab.js +399 -0
  108. package/lib/module/components/NetworkLogTab.js.map +1 -0
  109. package/lib/module/components/ThirdPartyLibsTab.js +91 -0
  110. package/lib/module/components/ThirdPartyLibsTab.js.map +1 -0
  111. package/lib/module/components/TrackLogTab.js +225 -0
  112. package/lib/module/components/TrackLogTab.js.map +1 -0
  113. package/lib/module/components/ZustandLogTab.js +306 -0
  114. package/lib/module/components/ZustandLogTab.js.map +1 -0
  115. package/lib/module/components/shared/CollapsibleSection.js +78 -0
  116. package/lib/module/components/shared/CollapsibleSection.js.map +1 -0
  117. package/lib/module/components/shared/CopyButton.js +58 -0
  118. package/lib/module/components/shared/CopyButton.js.map +1 -0
  119. package/lib/module/components/shared/JsonView.js +152 -0
  120. package/lib/module/components/shared/JsonView.js.map +1 -0
  121. package/lib/module/components/shared/LogListScreen.js +169 -0
  122. package/lib/module/components/shared/LogListScreen.js.map +1 -0
  123. package/lib/module/core/DebugToolkit.js +118 -0
  124. package/lib/module/core/DebugToolkit.js.map +1 -0
  125. package/lib/module/core/DebugToolkitProvider.js +60 -0
  126. package/lib/module/core/DebugToolkitProvider.js.map +1 -0
  127. package/lib/module/features/ClipboardFeature.js +16 -0
  128. package/lib/module/features/ClipboardFeature.js.map +1 -0
  129. package/lib/module/features/ConsoleLogFeature.js +109 -0
  130. package/lib/module/features/ConsoleLogFeature.js.map +1 -0
  131. package/lib/module/features/EnvironmentFeature.js +156 -0
  132. package/lib/module/features/EnvironmentFeature.js.map +1 -0
  133. package/lib/module/features/NavigationLogFeature.js +32 -0
  134. package/lib/module/features/NavigationLogFeature.js.map +1 -0
  135. package/lib/module/features/NetworkFeature.js +101 -0
  136. package/lib/module/features/NetworkFeature.js.map +1 -0
  137. package/lib/module/features/ThirdPartyLibsFeature.js +46 -0
  138. package/lib/module/features/ThirdPartyLibsFeature.js.map +1 -0
  139. package/lib/module/features/TrackFeature.js +27 -0
  140. package/lib/module/features/TrackFeature.js.map +1 -0
  141. package/lib/module/features/ZustandLogFeature.js +53 -0
  142. package/lib/module/features/ZustandLogFeature.js.map +1 -0
  143. package/lib/module/hooks/useNavigationLogger.js +74 -0
  144. package/lib/module/hooks/useNavigationLogger.js.map +1 -0
  145. package/lib/module/hooks/useSlideDetailAnimation.js +50 -0
  146. package/lib/module/hooks/useSlideDetailAnimation.js.map +1 -0
  147. package/lib/module/index.js +28 -0
  148. package/lib/module/index.js.map +1 -0
  149. package/lib/module/initialize.js +80 -0
  150. package/lib/module/initialize.js.map +1 -0
  151. package/lib/module/interceptors/networkInterceptor.js +460 -0
  152. package/lib/module/interceptors/networkInterceptor.js.map +1 -0
  153. package/lib/module/native/NativeDebugLibs.js +54 -0
  154. package/lib/module/native/NativeDebugLibs.js.map +1 -0
  155. package/lib/module/package.json +1 -0
  156. package/lib/module/types/index.js +4 -0
  157. package/lib/module/types/index.js.map +1 -0
  158. package/lib/module/utils/colors.js +43 -0
  159. package/lib/module/utils/colors.js.map +1 -0
  160. package/lib/module/utils/copyToComputer.js +91 -0
  161. package/lib/module/utils/copyToComputer.js.map +1 -0
  162. package/lib/module/utils/createChannelFeature.js +44 -0
  163. package/lib/module/utils/createChannelFeature.js.map +1 -0
  164. package/lib/module/utils/createEventChannel.js +17 -0
  165. package/lib/module/utils/createEventChannel.js.map +1 -0
  166. package/lib/module/utils/createObservableStore.js +34 -0
  167. package/lib/module/utils/createObservableStore.js.map +1 -0
  168. package/lib/module/utils/layout.js +4 -0
  169. package/lib/module/utils/layout.js.map +1 -0
  170. package/lib/module/utils/safeStringify.js +23 -0
  171. package/lib/module/utils/safeStringify.js.map +1 -0
  172. package/lib/module/utils/urlRewriterRegistry.js +10 -0
  173. package/lib/module/utils/urlRewriterRegistry.js.map +1 -0
  174. package/lib/typescript/src/components/ClipboardTab.d.ts +4 -0
  175. package/lib/typescript/src/components/ClipboardTab.d.ts.map +1 -0
  176. package/lib/typescript/src/components/ConsoleLogTab.d.ts +4 -0
  177. package/lib/typescript/src/components/ConsoleLogTab.d.ts.map +1 -0
  178. package/lib/typescript/src/components/DebugPanel.d.ts +9 -0
  179. package/lib/typescript/src/components/DebugPanel.d.ts.map +1 -0
  180. package/lib/typescript/src/components/DebugView.d.ts +19 -0
  181. package/lib/typescript/src/components/DebugView.d.ts.map +1 -0
  182. package/lib/typescript/src/components/EnvironmentTab.d.ts +4 -0
  183. package/lib/typescript/src/components/EnvironmentTab.d.ts.map +1 -0
  184. package/lib/typescript/src/components/FeatureTabBar.d.ts +13 -0
  185. package/lib/typescript/src/components/FeatureTabBar.d.ts.map +1 -0
  186. package/lib/typescript/src/components/FloatIcon.d.ts +12 -0
  187. package/lib/typescript/src/components/FloatIcon.d.ts.map +1 -0
  188. package/lib/typescript/src/components/FloatPanelView.d.ts +9 -0
  189. package/lib/typescript/src/components/FloatPanelView.d.ts.map +1 -0
  190. package/lib/typescript/src/components/NavigationLogTab.d.ts +4 -0
  191. package/lib/typescript/src/components/NavigationLogTab.d.ts.map +1 -0
  192. package/lib/typescript/src/components/NetworkLogTab.d.ts +4 -0
  193. package/lib/typescript/src/components/NetworkLogTab.d.ts.map +1 -0
  194. package/lib/typescript/src/components/ThirdPartyLibsTab.d.ts +4 -0
  195. package/lib/typescript/src/components/ThirdPartyLibsTab.d.ts.map +1 -0
  196. package/lib/typescript/src/components/TrackLogTab.d.ts +4 -0
  197. package/lib/typescript/src/components/TrackLogTab.d.ts.map +1 -0
  198. package/lib/typescript/src/components/ZustandLogTab.d.ts +4 -0
  199. package/lib/typescript/src/components/ZustandLogTab.d.ts.map +1 -0
  200. package/lib/typescript/src/components/shared/CollapsibleSection.d.ts +9 -0
  201. package/lib/typescript/src/components/shared/CollapsibleSection.d.ts.map +1 -0
  202. package/lib/typescript/src/components/shared/CopyButton.d.ts +12 -0
  203. package/lib/typescript/src/components/shared/CopyButton.d.ts.map +1 -0
  204. package/lib/typescript/src/components/shared/JsonView.d.ts +6 -0
  205. package/lib/typescript/src/components/shared/JsonView.d.ts.map +1 -0
  206. package/lib/typescript/src/components/shared/LogListScreen.d.ts +21 -0
  207. package/lib/typescript/src/components/shared/LogListScreen.d.ts.map +1 -0
  208. package/lib/typescript/src/core/DebugToolkit.d.ts +20 -0
  209. package/lib/typescript/src/core/DebugToolkit.d.ts.map +1 -0
  210. package/lib/typescript/src/core/DebugToolkitProvider.d.ts +15 -0
  211. package/lib/typescript/src/core/DebugToolkitProvider.d.ts.map +1 -0
  212. package/lib/typescript/src/features/ClipboardFeature.d.ts +7 -0
  213. package/lib/typescript/src/features/ClipboardFeature.d.ts.map +1 -0
  214. package/lib/typescript/src/features/ConsoleLogFeature.d.ts +9 -0
  215. package/lib/typescript/src/features/ConsoleLogFeature.d.ts.map +1 -0
  216. package/lib/typescript/src/features/EnvironmentFeature.d.ts +8 -0
  217. package/lib/typescript/src/features/EnvironmentFeature.d.ts.map +1 -0
  218. package/lib/typescript/src/features/NavigationLogFeature.d.ts +10 -0
  219. package/lib/typescript/src/features/NavigationLogFeature.d.ts.map +1 -0
  220. package/lib/typescript/src/features/NetworkFeature.d.ts +15 -0
  221. package/lib/typescript/src/features/NetworkFeature.d.ts.map +1 -0
  222. package/lib/typescript/src/features/ThirdPartyLibsFeature.d.ts +3 -0
  223. package/lib/typescript/src/features/ThirdPartyLibsFeature.d.ts.map +1 -0
  224. package/lib/typescript/src/features/TrackFeature.d.ts +14 -0
  225. package/lib/typescript/src/features/TrackFeature.d.ts.map +1 -0
  226. package/lib/typescript/src/features/ZustandLogFeature.d.ts +31 -0
  227. package/lib/typescript/src/features/ZustandLogFeature.d.ts.map +1 -0
  228. package/lib/typescript/src/hooks/useNavigationLogger.d.ts +13 -0
  229. package/lib/typescript/src/hooks/useNavigationLogger.d.ts.map +1 -0
  230. package/lib/typescript/src/hooks/useSlideDetailAnimation.d.ts +11 -0
  231. package/lib/typescript/src/hooks/useSlideDetailAnimation.d.ts.map +1 -0
  232. package/lib/typescript/src/index.d.ts +26 -0
  233. package/lib/typescript/src/index.d.ts.map +1 -0
  234. package/lib/typescript/src/initialize.d.ts +32 -0
  235. package/lib/typescript/src/initialize.d.ts.map +1 -0
  236. package/lib/typescript/src/interceptors/networkInterceptor.d.ts +18 -0
  237. package/lib/typescript/src/interceptors/networkInterceptor.d.ts.map +1 -0
  238. package/lib/typescript/src/native/NativeDebugLibs.d.ts +11 -0
  239. package/lib/typescript/src/native/NativeDebugLibs.d.ts.map +1 -0
  240. package/lib/typescript/src/types/index.d.ts +109 -0
  241. package/lib/typescript/src/types/index.d.ts.map +1 -0
  242. package/lib/typescript/src/utils/colors.d.ts +21 -0
  243. package/lib/typescript/src/utils/colors.d.ts.map +1 -0
  244. package/lib/typescript/src/utils/copyToComputer.d.ts +30 -0
  245. package/lib/typescript/src/utils/copyToComputer.d.ts.map +1 -0
  246. package/lib/typescript/src/utils/createChannelFeature.d.ts +18 -0
  247. package/lib/typescript/src/utils/createChannelFeature.d.ts.map +1 -0
  248. package/lib/typescript/src/utils/createEventChannel.d.ts +7 -0
  249. package/lib/typescript/src/utils/createEventChannel.d.ts.map +1 -0
  250. package/lib/typescript/src/utils/createObservableStore.d.ts +9 -0
  251. package/lib/typescript/src/utils/createObservableStore.d.ts.map +1 -0
  252. package/lib/typescript/src/utils/layout.d.ts +2 -0
  253. package/lib/typescript/src/utils/layout.d.ts.map +1 -0
  254. package/lib/typescript/src/utils/safeStringify.d.ts +6 -0
  255. package/lib/typescript/src/utils/safeStringify.d.ts.map +1 -0
  256. package/lib/typescript/src/utils/urlRewriterRegistry.d.ts +7 -0
  257. package/lib/typescript/src/utils/urlRewriterRegistry.d.ts.map +1 -0
  258. package/package.json +67 -24
  259. package/src/components/ClipboardTab.tsx +81 -0
  260. package/src/components/ConsoleLogTab.tsx +95 -0
  261. package/src/components/DebugPanel.tsx +215 -0
  262. package/src/components/DebugView.tsx +80 -0
  263. package/src/components/EnvironmentTab.tsx +276 -0
  264. package/src/components/FeatureTabBar.tsx +204 -0
  265. package/src/components/FloatIcon.tsx +171 -0
  266. package/src/components/FloatPanelView.tsx +202 -0
  267. package/src/components/NavigationLogTab.tsx +66 -0
  268. package/src/components/NetworkLogTab.tsx +270 -0
  269. package/src/components/ThirdPartyLibsTab.tsx +63 -0
  270. package/src/components/TrackLogTab.tsx +110 -0
  271. package/src/components/ZustandLogTab.tsx +203 -0
  272. package/src/components/shared/CollapsibleSection.tsx +78 -0
  273. package/src/components/shared/CopyButton.tsx +68 -0
  274. package/src/components/shared/JsonView.tsx +125 -0
  275. package/src/components/shared/LogListScreen.tsx +164 -0
  276. package/src/core/DebugToolkit.tsx +150 -0
  277. package/src/core/DebugToolkitProvider.tsx +83 -0
  278. package/src/features/ClipboardFeature.ts +15 -0
  279. package/src/features/ConsoleLogFeature.ts +116 -0
  280. package/src/features/EnvironmentFeature.ts +186 -0
  281. package/src/features/NavigationLogFeature.ts +44 -0
  282. package/src/features/NetworkFeature.ts +126 -0
  283. package/src/features/ThirdPartyLibsFeature.ts +42 -0
  284. package/src/features/TrackFeature.ts +34 -0
  285. package/src/features/ZustandLogFeature.ts +101 -0
  286. package/src/hooks/useNavigationLogger.ts +102 -0
  287. package/src/hooks/useSlideDetailAnimation.ts +45 -0
  288. package/src/index.ts +48 -0
  289. package/src/initialize.ts +122 -0
  290. package/src/interceptors/networkInterceptor.ts +646 -0
  291. package/src/native/NativeDebugLibs.ts +74 -0
  292. package/src/types/index.ts +127 -0
  293. package/src/utils/colors.ts +38 -0
  294. package/src/utils/copyToComputer.ts +104 -0
  295. package/src/utils/createChannelFeature.ts +55 -0
  296. package/src/utils/createEventChannel.ts +22 -0
  297. package/src/utils/createObservableStore.ts +42 -0
  298. package/src/utils/layout.ts +1 -0
  299. package/src/utils/safeStringify.ts +25 -0
  300. package/src/utils/urlRewriterRegistry.ts +10 -0
  301. package/.cursor/rules/react-native.mdc +0 -41
  302. package/index.js +0 -41
  303. package/ios/BuildTypeModule.h +0 -9
  304. package/ios/BuildTypeModule.m +0 -42
  305. package/ios/RNDebugLibs.h +0 -10
  306. package/ios/RNDebugLibs.m +0 -79
  307. package/lib/DebugToolKit.js +0 -126
  308. package/lib/EnvironmentManager.ts +0 -80
  309. package/lib/NativeDebugLibs.js +0 -67
  310. package/lib/features/ConsoleLogFeature.js +0 -70
  311. package/lib/features/NavigationLogFeature.js +0 -45
  312. package/lib/features/NetworkFeature.js +0 -389
  313. package/lib/features/PerformanceFeature.js +0 -390
  314. package/lib/features/ThirdPartyLibsFeature.js +0 -63
  315. package/lib/features/TrackFeature.js +0 -94
  316. package/lib/features/ZustandLogFeature.js +0 -44
  317. package/lib/hooks/useNavigationLogger.js +0 -92
  318. package/lib/index.js +0 -114
  319. package/lib/navigation/NavigationLogger.js +0 -1
  320. package/lib/types/TrackTypes.ts +0 -92
  321. package/lib/utils/DebugConst.js +0 -67
  322. package/lib/utils/StorageUtils.js +0 -80
  323. package/lib/views/ConsoleLogDetails.js +0 -314
  324. package/lib/views/FloatPanelView.js +0 -697
  325. package/lib/views/HttpLogDetails.js +0 -648
  326. package/lib/views/NavigationLogDetails.js +0 -302
  327. package/lib/views/RestartModal.js +0 -75
  328. package/lib/views/SubViewConsoleLogs.js +0 -209
  329. package/lib/views/SubViewEnvironment.js +0 -73
  330. package/lib/views/SubViewHTTPLogs.js +0 -235
  331. package/lib/views/SubViewNavigationLogs.js +0 -199
  332. package/lib/views/SubViewPerformance.js +0 -515
  333. package/lib/views/SubViewThirdPartyLibs.js +0 -239
  334. package/lib/views/SubViewTrackLogs.js +0 -318
  335. package/lib/views/SubViewZustandLogs.js +0 -279
  336. package/lib/views/TabView.js +0 -66
  337. package/lib/views/TrackLogDetails.js +0 -481
  338. package/lib/views/ZustandLogDetails.js +0 -355
  339. package/react-native-debug-toolkit.podspec +0 -25
  340. package/react-native.config.js +0 -18
@@ -0,0 +1,20 @@
1
+ import type { AnyDebugFeature } from '../types';
2
+ type Listener = () => void;
3
+ export declare const DebugToolkit: {
4
+ subscribe(listener: Listener): () => void;
5
+ readonly features: AnyDebugFeature[];
6
+ readonly enabled: boolean;
7
+ readonly panelVisible: boolean;
8
+ setEnabled(enabled: boolean): void;
9
+ replaceFeatures(features: AnyDebugFeature[]): void;
10
+ addFeature(feature: AnyDebugFeature): void;
11
+ removeFeature(name: string): void;
12
+ reset(): void;
13
+ hasFeatures(): boolean;
14
+ showPanel(): void;
15
+ hidePanel(): void;
16
+ clearAll(): void;
17
+ destroy(): void;
18
+ };
19
+ export {};
20
+ //# sourceMappingURL=DebugToolkit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugToolkit.d.ts","sourceRoot":"","sources":["../../../../src/core/DebugToolkit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,KAAK,QAAQ,GAAG,MAAM,IAAI,CAAC;AAmB3B,eAAO,MAAM,YAAY;wBACH,QAAQ,GAAG,MAAM,IAAI;uBAOzB,eAAe,EAAE;sBAIlB,OAAO;2BAIF,OAAO;wBAIP,OAAO,GAAG,IAAI;8BAWR,eAAe,EAAE,GAAG,IAAI;wBAoB9B,eAAe,GAAG,IAAI;wBA4BtB,MAAM,GAAG,IAAI;aAkBxB,IAAI;mBAOE,OAAO;iBAIT,IAAI;iBAMJ,IAAI;gBAKL,IAAI;eAKL,IAAI;CAIhB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React, { type ReactNode } from 'react';
2
+ import type { AnyDebugFeature } from '../types';
3
+ interface ToolkitContextValue {
4
+ features: AnyDebugFeature[];
5
+ showPanel: () => void;
6
+ hidePanel: () => void;
7
+ clearAll: () => void;
8
+ }
9
+ interface DebugToolkitProviderProps {
10
+ children: ReactNode;
11
+ }
12
+ export declare function DebugToolkitProvider({ children }: DebugToolkitProviderProps): React.JSX.Element;
13
+ export declare function useDebugToolkit(): ToolkitContextValue;
14
+ export {};
15
+ //# sourceMappingURL=DebugToolkitProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugToolkitProvider.d.ts","sourceRoot":"","sources":["../../../../src/core/DebugToolkitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAwE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGpH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AASD,UAAU,yBAAyB;IACjC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE,yBAAyB,qBAgD3E;AAED,wBAAgB,eAAe,IAAI,mBAAmB,CASrD"}
@@ -0,0 +1,7 @@
1
+ import type { DebugFeature } from '../types';
2
+ /**
3
+ * Clipboard feature — all logic lives in ClipboardTab.
4
+ * Data flow is user-driven (TextInput), not event-based.
5
+ */
6
+ export declare const createClipboardFeature: () => DebugFeature<void>;
7
+ //# sourceMappingURL=ClipboardFeature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClipboardFeature.d.ts","sourceRoot":"","sources":["../../../../src/features/ClipboardFeature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAAO,YAAY,CAAC,IAAI,CAOzD,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ConsoleLogEntry, DebugFeature } from '../types';
2
+ export interface ConsoleFeatureConfig {
3
+ /** Maximum number of console logs to keep (default: 200) */
4
+ maxLogs?: number;
5
+ }
6
+ export declare const createConsoleLogFeature: (config?: ConsoleFeatureConfig) => DebugFeature<ConsoleLogEntry>;
7
+ /** Reset module-level state for testing */
8
+ export declare function _resetConsoleForTesting(): void;
9
+ //# sourceMappingURL=ConsoleLogFeature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConsoleLogFeature.d.ts","sourceRoot":"","sources":["../../../../src/features/ConsoleLogFeature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAyE9D,MAAM,WAAW,oBAAoB;IACnC,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,uBAAuB,GAAI,SAAS,oBAAoB,KAAG,YAAY,CAAC,eAAe,CA+BnG,CAAC;AAEF,2CAA2C;AAC3C,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C"}
@@ -0,0 +1,8 @@
1
+ import type { DebugFeature, EnvironmentConfig, EnvironmentState } from '../types';
2
+ export interface EnvironmentFeatureAPI extends DebugFeature<EnvironmentState> {
3
+ registerEnvironments: (environments: EnvironmentConfig[]) => void;
4
+ switchEnvironment: (environmentId: string | null) => void;
5
+ getCurrentEnvironmentId: () => string | null;
6
+ }
7
+ export declare const createEnvironmentFeature: (initialEnvironments?: EnvironmentConfig[]) => EnvironmentFeatureAPI;
8
+ //# sourceMappingURL=EnvironmentFeature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentFeature.d.ts","sourceRoot":"","sources":["../../../../src/features/EnvironmentFeature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAoElF,MAAM,WAAW,qBAAsB,SAAQ,YAAY,CAAC,gBAAgB,CAAC;IAC3E,oBAAoB,EAAE,CAAC,YAAY,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IAClE,iBAAiB,EAAE,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1D,uBAAuB,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;CAC9C;AAED,eAAO,MAAM,wBAAwB,GACnC,sBAAsB,iBAAiB,EAAE,KACxC,qBA4GF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { DebugFeature, NavigationLogEntry } from '../types';
2
+ export declare const addNavigationLog: (action: string, from: string, to: string, startTime?: number, duration?: number, debugLog?: string) => void;
3
+ export interface NavigationFeatureConfig {
4
+ /** Maximum number of navigation logs to keep (default: 200) */
5
+ maxLogs?: number;
6
+ }
7
+ export declare const createNavigationLogFeature: (config?: NavigationFeatureConfig) => DebugFeature<NavigationLogEntry>;
8
+ /** Reset module-level state for testing */
9
+ export declare function _resetNavigationForTesting(): void;
10
+ //# sourceMappingURL=NavigationLogFeature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationLogFeature.d.ts","sourceRoot":"","sources":["../../../../src/features/NavigationLogFeature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAQjE,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,MAAM,EACd,MAAM,MAAM,EACZ,IAAI,MAAM,EACV,YAAY,MAAM,EAClB,WAAW,MAAM,EACjB,WAAW,MAAM,KAChB,IAUF,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,0BAA0B,GAAI,SAAS,uBAAuB,KAAG,YAAY,CAAC,kBAAkB,CAK1G,CAAC;AAEJ,2CAA2C;AAC3C,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD"}
@@ -0,0 +1,15 @@
1
+ import type { DebugFeature, NetworkLogEntry } from '../types';
2
+ import type { AxiosInstanceLike } from '../interceptors/networkInterceptor';
3
+ export type { AxiosInstanceLike };
4
+ export interface NetworkFeatureConfig {
5
+ /** Maximum number of network logs to keep (default: 200) */
6
+ maxLogs?: number;
7
+ /** URLs to filter out from logging */
8
+ blacklist?: Array<string | RegExp>;
9
+ }
10
+ export declare const createNetworkFeature: (config?: NetworkFeatureConfig) => DebugFeature<NetworkLogEntry> & {
11
+ setupAxiosInterceptors: (axiosInstance: AxiosInstanceLike) => () => void;
12
+ };
13
+ /** Reset module-level state for testing */
14
+ export declare function _resetNetworkForTesting(): void;
15
+ //# sourceMappingURL=NetworkFeature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NetworkFeature.d.ts","sourceRoot":"","sources":["../../../../src/features/NetworkFeature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAU9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AA8B5E,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC,MAAM,WAAW,oBAAoB;IACnC,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,oBAAoB,GAAI,SAAS,oBAAoB,KAAG,YAAY,CAAC,eAAe,CAAC,GAAG;IACnG,sBAAsB,EAAE,CAAC,aAAa,EAAE,iBAAiB,KAAK,MAAM,IAAI,CAAC;CAoE1E,CAAC;AAEF,2CAA2C;AAC3C,wBAAgB,uBAAuB,IAAI,IAAI,CAG9C"}
@@ -0,0 +1,3 @@
1
+ import type { DebugFeature, ThirdPartyLib } from '../types';
2
+ export declare const createThirdPartyLibsFeature: () => DebugFeature<ThirdPartyLib>;
3
+ //# sourceMappingURL=ThirdPartyLibsFeature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThirdPartyLibsFeature.d.ts","sourceRoot":"","sources":["../../../../src/features/ThirdPartyLibsFeature.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA+B5D,eAAO,MAAM,2BAA2B,QAAO,YAAY,CAAC,aAAa,CAOvE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { DebugFeature, TrackLogEntry } from '../types';
2
+ export interface TrackEventData {
3
+ eventName: string;
4
+ [key: string]: unknown;
5
+ }
6
+ export declare const addTrackLog: (eventData: TrackEventData) => void;
7
+ export interface TrackFeatureConfig {
8
+ /** Maximum number of track events to keep (default: 200) */
9
+ maxLogs?: number;
10
+ }
11
+ export declare const createTrackFeature: (config?: TrackFeatureConfig) => DebugFeature<TrackLogEntry>;
12
+ /** Reset module-level state for testing */
13
+ export declare function _resetTrackForTesting(): void;
14
+ //# sourceMappingURL=TrackFeature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrackFeature.d.ts","sourceRoot":"","sources":["../../../../src/features/TrackFeature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI5D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAMD,eAAO,MAAM,WAAW,GAAI,WAAW,cAAc,KAAG,IAEvD,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,kBAAkB,GAAI,SAAS,kBAAkB,KAAG,YAAY,CAAC,aAAa,CAKxF,CAAC;AAEJ,2CAA2C;AAC3C,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C"}
@@ -0,0 +1,31 @@
1
+ import type { DebugFeature, ZustandLogEntry } from '../types';
2
+ export declare const addZustandLog: (action: string, prevState: unknown, nextState: unknown, actionCompleteTime?: number, storeName?: string) => void;
3
+ type ZustandSetState<T> = (partial: T | Partial<T> | ((state: T) => Partial<T> | T), replace?: boolean | undefined, action?: string | {
4
+ type: unknown;
5
+ } | undefined) => void;
6
+ type ZustandGetState<T> = () => T;
7
+ interface ZustandStoreApi<T> {
8
+ getState: () => T;
9
+ setState: ZustandSetState<T>;
10
+ subscribe: (listener: (state: T, prevState: T) => void) => () => void;
11
+ name?: string;
12
+ }
13
+ type ZustandConfig<T> = (set: ZustandSetState<T>, get: ZustandGetState<T>, api: ZustandStoreApi<T>) => T;
14
+ /**
15
+ * Zustand middleware that logs all state changes to the debug toolkit.
16
+ *
17
+ * Usage:
18
+ * ```ts
19
+ * const useStore = create(zustandLogMiddleware((set) => ({ ... })))
20
+ * ```
21
+ */
22
+ export declare const zustandLogMiddleware: <T>(config: ZustandConfig<T>) => (set: ZustandSetState<T>, get: ZustandGetState<T>, api: ZustandStoreApi<T>) => T;
23
+ export interface ZustandFeatureConfig {
24
+ /** Maximum number of zustand state changes to keep (default: 200) */
25
+ maxLogs?: number;
26
+ }
27
+ export declare const createZustandLogFeature: (config?: ZustandFeatureConfig) => DebugFeature<ZustandLogEntry>;
28
+ /** Reset module-level state for testing */
29
+ export declare function _resetZustandForTesting(): void;
30
+ export {};
31
+ //# sourceMappingURL=ZustandLogFeature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZustandLogFeature.d.ts","sourceRoot":"","sources":["../../../../src/features/ZustandLogFeature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQ9D,eAAO,MAAM,aAAa,GACxB,QAAQ,MAAM,EACd,WAAW,OAAO,EAClB,WAAW,OAAO,EAClB,qBAAqB,MAAM,EAC3B,YAAY,MAAM,KACjB,IASF,CAAC;AAIF,KAAK,eAAe,CAAC,CAAC,IAAI,CACxB,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EACxD,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,EAC7B,MAAM,CAAC,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,KAC5C,IAAI,CAAC;AAEV,KAAK,eAAe,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC;AAElC,UAAU,eAAe,CAAC,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClB,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAC7B,SAAS,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,IAAI,KAAK,MAAM,IAAI,CAAC;IACtE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,KAAK,aAAa,CAAC,CAAC,IAAI,CACtB,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC,EACvB,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC,EACvB,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC,KACpB,CAAC,CAAC;AAEP;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,EAAE,QAAQ,aAAa,CAAC,CAAC,CAAC,MAC9D,KAAK,eAAe,CAAC,CAAC,CAAC,EACvB,KAAK,eAAe,CAAC,CAAC,CAAC,EACvB,KAAK,eAAe,CAAC,CAAC,CAAC,MAqBtB,CAAC;AAIJ,MAAM,WAAW,oBAAoB;IACnC,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,uBAAuB,GAAI,SAAS,oBAAoB,KAAG,YAAY,CAAC,eAAe,CAKjG,CAAC;AAEJ,2CAA2C;AAC3C,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C"}
@@ -0,0 +1,13 @@
1
+ import type { NavigationContainerRef } from '../types';
2
+ /**
3
+ * Hook to automatically log React Navigation events.
4
+ *
5
+ * Usage:
6
+ * ```tsx
7
+ * const navigationRef = useRef<NavigationContainerRef>(null);
8
+ * useNavigationLogger(navigationRef);
9
+ * return <NavigationContainer ref={navigationRef}>...</NavigationContainer>;
10
+ * ```
11
+ */
12
+ export declare function useNavigationLogger(navigationRef: React.RefObject<NavigationContainerRef | null>): void;
13
+ //# sourceMappingURL=useNavigationLogger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNavigationLogger.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNavigationLogger.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAyBvD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,GAAG,IAAI,CAAC,QA+DhG"}
@@ -0,0 +1,11 @@
1
+ import { Animated } from 'react-native';
2
+ /**
3
+ * Shared slide-in/out animation for tab detail views.
4
+ * Returns animated styles for the detail overlay and the list behind it.
5
+ */
6
+ export declare function useSlideDetailAnimation<T>(selected: T | null): {
7
+ detailTranslateX: Animated.AnimatedInterpolation<number>;
8
+ listTranslateX: Animated.AnimatedInterpolation<number>;
9
+ listOpacity: Animated.AnimatedInterpolation<number>;
10
+ };
11
+ //# sourceMappingURL=useSlideDetailAnimation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSlideDetailAnimation.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSlideDetailAnimation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,QAAQ,EAAE,CAAC,GAAG,IAAI,GACjB;IACD,gBAAgB,EAAE,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACzD,cAAc,EAAE,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACvD,WAAW,EAAE,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;CACrD,CA+BA"}
@@ -0,0 +1,26 @@
1
+ export { DebugToolkit } from './core/DebugToolkit';
2
+ export { DebugToolkitProvider, useDebugToolkit } from './core/DebugToolkitProvider';
3
+ export { DebugView } from './components/DebugView';
4
+ export type { DebugViewProps } from './components/DebugView';
5
+ export { initializeDebugToolkit } from './initialize';
6
+ export type { InitializeOptions, FeatureConfigs } from './initialize';
7
+ export { createNetworkFeature } from './features/NetworkFeature';
8
+ export type { NetworkFeatureConfig, AxiosInstanceLike } from './features/NetworkFeature';
9
+ export { createConsoleLogFeature } from './features/ConsoleLogFeature';
10
+ export type { ConsoleFeatureConfig } from './features/ConsoleLogFeature';
11
+ export { createZustandLogFeature, zustandLogMiddleware, addZustandLog } from './features/ZustandLogFeature';
12
+ export type { ZustandFeatureConfig } from './features/ZustandLogFeature';
13
+ export { createNavigationLogFeature, addNavigationLog } from './features/NavigationLogFeature';
14
+ export type { NavigationFeatureConfig } from './features/NavigationLogFeature';
15
+ export { createTrackFeature, addTrackLog } from './features/TrackFeature';
16
+ export type { TrackFeatureConfig, TrackEventData } from './features/TrackFeature';
17
+ export { createEnvironmentFeature } from './features/EnvironmentFeature';
18
+ export type { EnvironmentFeatureAPI } from './features/EnvironmentFeature';
19
+ export { createClipboardFeature } from './features/ClipboardFeature';
20
+ export { useNavigationLogger } from './hooks/useNavigationLogger';
21
+ export { safeStringify } from './utils/safeStringify';
22
+ export { copyToComputer, logToComputer, fmt } from './utils/copyToComputer';
23
+ export type { CopyResult, CopyOptions, CopyMethod } from './utils/copyToComputer';
24
+ export type { AnyDebugFeature, BuiltInFeatureName, DebugFeature, DebugFeatureRenderProps, NetworkLogEntry, ConsoleLogEntry, ZustandLogEntry, NavigationLogEntry, TrackLogEntry, EnvironmentConfig, EnvironmentState, } from './types';
25
+ export { initializeDebugToolkit as default } from './initialize';
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,YAAY,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC5G,YAAY,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAC/F,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC1E,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,YAAY,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGlE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAC5E,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGlF,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,sBAAsB,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { DebugToolkit } from './core/DebugToolkit';
2
+ import type { NetworkFeatureConfig } from './features/NetworkFeature';
3
+ import type { ConsoleFeatureConfig } from './features/ConsoleLogFeature';
4
+ import type { ZustandFeatureConfig } from './features/ZustandLogFeature';
5
+ import type { NavigationFeatureConfig } from './features/NavigationLogFeature';
6
+ import type { TrackFeatureConfig } from './features/TrackFeature';
7
+ import { createEnvironmentFeature } from './features/EnvironmentFeature';
8
+ /** Feature-specific configuration map */
9
+ export interface FeatureConfigs {
10
+ network?: boolean | NetworkFeatureConfig;
11
+ console?: boolean | ConsoleFeatureConfig;
12
+ zustand?: boolean | ZustandFeatureConfig;
13
+ navigation?: boolean | NavigationFeatureConfig;
14
+ track?: boolean | TrackFeatureConfig;
15
+ environment?: Parameters<typeof createEnvironmentFeature>[0];
16
+ clipboard?: boolean;
17
+ }
18
+ export interface InitializeOptions {
19
+ features?: FeatureConfigs;
20
+ enabled?: boolean;
21
+ }
22
+ /**
23
+ * Initialize the debug toolkit.
24
+ *
25
+ * @example
26
+ * initializeDebugToolkit({
27
+ * features: { network: true, console: true },
28
+ * enabled: true,
29
+ * });
30
+ */
31
+ export declare function initializeDebugToolkit(options?: InitializeOptions): typeof DebugToolkit;
32
+ //# sourceMappingURL=initialize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../src/initialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAMzE,yCAAyC;AACzC,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,OAAO,GAAG,oBAAoB,CAAC;IACzC,OAAO,CAAC,EAAE,OAAO,GAAG,oBAAoB,CAAC;IACzC,OAAO,CAAC,EAAE,OAAO,GAAG,oBAAoB,CAAC;IACzC,UAAU,CAAC,EAAE,OAAO,GAAG,uBAAuB,CAAC;IAC/C,KAAK,CAAC,EAAE,OAAO,GAAG,kBAAkB,CAAC;IACrC,WAAW,CAAC,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAmDD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,YAAY,CA4BrB"}
@@ -0,0 +1,18 @@
1
+ import type { NetworkLogEntry } from '../types';
2
+ type NetworkLogPayload = Omit<NetworkLogEntry, 'id'>;
3
+ interface AxiosInterceptorManager {
4
+ use: (onFulfilled: unknown, onRejected?: unknown) => number | void;
5
+ eject?: (id: number) => void;
6
+ }
7
+ export interface AxiosInstanceLike {
8
+ interceptors: {
9
+ request: AxiosInterceptorManager;
10
+ response: AxiosInterceptorManager;
11
+ };
12
+ }
13
+ export declare function startFetch(emit: (entry: NetworkLogPayload) => void): () => void;
14
+ export declare function startXMLHttpRequest(emit: (entry: NetworkLogPayload) => void): () => void;
15
+ export declare function setupAxios(axiosInstance: AxiosInstanceLike, emit: (entry: NetworkLogPayload) => void): () => void;
16
+ export declare function resetInterceptors(): void;
17
+ export {};
18
+ //# sourceMappingURL=networkInterceptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkInterceptor.d.ts","sourceRoot":"","sources":["../../../../src/interceptors/networkInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,KAAK,iBAAiB,GAAG,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;AAIrD,UAAU,uBAAuB;IAC/B,GAAG,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,CAAC;IACnE,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9B;AAwBD,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE;QACZ,OAAO,EAAE,uBAAuB,CAAC;QACjC,QAAQ,EAAE,uBAAuB,CAAC;KACnC,CAAC;CACH;AAoOD,wBAAgB,UAAU,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,GAAG,MAAM,IAAI,CA+D/E;AAqGD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,GACvC,MAAM,IAAI,CA6FZ;AAoBD,wBAAgB,UAAU,CACxB,aAAa,EAAE,iBAAiB,EAChC,IAAI,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,GACvC,MAAM,IAAI,CAsFZ;AAED,wBAAgB,iBAAiB,IAAI,IAAI,CAQxC"}
@@ -0,0 +1,11 @@
1
+ export declare const NativeDebugLibs: {
2
+ getBuildType(): Promise<string | null>;
3
+ getBuildTypeSync(): string | null;
4
+ isDebugBuild(): boolean;
5
+ showExplorer(): void;
6
+ hideExplorer(): void;
7
+ installDoraemonKit(productId: string): void;
8
+ showDoraemonKit(): void;
9
+ hideDoraemonKit(): void;
10
+ };
11
+ //# sourceMappingURL=NativeDebugLibs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeDebugLibs.d.ts","sourceRoot":"","sources":["../../../../src/native/NativeDebugLibs.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,eAAe;oBACV,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;wBAOlB,MAAM,GAAG,IAAI;oBAOjB,OAAO;oBASP,IAAI;oBAMJ,IAAI;kCAOU,MAAM,GAAG,IAAI;uBAMxB,IAAI;uBAMJ,IAAI;CAKxB,CAAC"}
@@ -0,0 +1,109 @@
1
+ import type { ComponentType } from 'react';
2
+ export type DebugFeatureListener = () => void;
3
+ export type BuiltInFeatureName = 'network' | 'console' | 'zustand' | 'navigation' | 'track' | 'environment' | 'clipboard';
4
+ /** Props passed to a feature's renderContent component */
5
+ export interface DebugFeatureRenderProps<TData = unknown> {
6
+ data: TData[];
7
+ feature: DebugFeature<TData>;
8
+ }
9
+ /**
10
+ * Type-erased feature for heterogeneous collections.
11
+ * Individual features should use `DebugFeature<TData>` with their specific data type.
12
+ * This alias is only for places that hold features of multiple types.
13
+ */
14
+ export type AnyDebugFeature = DebugFeature<any>;
15
+ /** Base interface all debug features must implement */
16
+ export interface DebugFeature<TData = unknown> {
17
+ name: string;
18
+ label: string;
19
+ setup: () => void;
20
+ getData: () => TData[];
21
+ clear?: () => void;
22
+ cleanup: () => void;
23
+ subscribe?: (listener: DebugFeatureListener) => () => void;
24
+ renderContent?: ComponentType<DebugFeatureRenderProps<TData>>;
25
+ badge?: () => {
26
+ label: string;
27
+ color: string;
28
+ } | null;
29
+ }
30
+ export interface NetworkLogEntry {
31
+ id: string;
32
+ timestamp: number;
33
+ duration?: number;
34
+ request: {
35
+ url: string;
36
+ method: string;
37
+ headers?: Record<string, string>;
38
+ body?: unknown;
39
+ };
40
+ response?: {
41
+ status: number;
42
+ statusText?: string;
43
+ headers?: Record<string, string>;
44
+ data?: unknown;
45
+ success?: boolean;
46
+ };
47
+ error?: string;
48
+ }
49
+ export interface ConsoleLogEntry {
50
+ id: string;
51
+ timestamp: number;
52
+ level: 'log' | 'info' | 'warn' | 'error';
53
+ data: unknown[];
54
+ }
55
+ export interface ZustandLogEntry {
56
+ id: string;
57
+ timestamp: number;
58
+ action: string;
59
+ prevState: unknown;
60
+ nextState: unknown;
61
+ actionCompleteTime?: number;
62
+ storeName?: string;
63
+ }
64
+ export interface NavigationLogEntry {
65
+ id: string;
66
+ timestamp: number;
67
+ action: string;
68
+ from: string;
69
+ to: string;
70
+ startTime?: number;
71
+ duration?: number;
72
+ debugLog?: string;
73
+ }
74
+ export interface TrackLogEntry {
75
+ id: string;
76
+ timestamp: number;
77
+ eventName: string;
78
+ [key: string]: unknown;
79
+ }
80
+ export interface EnvironmentConfig {
81
+ id: string;
82
+ label: string;
83
+ host: string;
84
+ color?: string;
85
+ }
86
+ export interface EnvironmentState {
87
+ environments: EnvironmentConfig[];
88
+ currentEnvironmentId: string | null;
89
+ }
90
+ export interface NavigationContainerRef {
91
+ getCurrentRoute?: () => {
92
+ name?: string;
93
+ } | undefined;
94
+ getRootState?: () => unknown;
95
+ addListener: (event: string, callback: () => void) => () => void;
96
+ }
97
+ export interface ThirdPartyLibAction {
98
+ id: string;
99
+ label: string;
100
+ onPress: () => void;
101
+ }
102
+ export interface ThirdPartyLib {
103
+ id: string;
104
+ name: string;
105
+ description: string;
106
+ platform: 'ios' | 'android' | 'both';
107
+ actions: ThirdPartyLibAction[];
108
+ }
109
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,21 @@
1
+ export declare const Colors: {
2
+ readonly primary: "#007AFF";
3
+ readonly text: "#1C1C1E";
4
+ readonly textSecondary: "#8E8E93";
5
+ readonly textLight: "#C7C7CC";
6
+ readonly border: "#E5E5EA";
7
+ readonly background: "#F2F2F7";
8
+ readonly surface: "#FFFFFF";
9
+ readonly success: "#34C759";
10
+ readonly error: "#FF3B30";
11
+ readonly warning: "#FF9500";
12
+ readonly info: "#5AC8FA";
13
+ readonly purple: "#AF52DE";
14
+ readonly get: "#007AFF";
15
+ readonly post: "#34C759";
16
+ readonly put: "#FF9500";
17
+ readonly delete: "#FF3B30";
18
+ readonly patch: "#5AC8FA";
19
+ };
20
+ export declare function getMethodColor(method: string): string;
21
+ //# sourceMappingURL=colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/utils/colors.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;CAyBT,CAAC;AAEX,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CASrD"}
@@ -0,0 +1,30 @@
1
+ export type CopyMethod = 'clipboard' | 'console' | 'none';
2
+ export interface CopyResult {
3
+ success: boolean;
4
+ method: CopyMethod;
5
+ }
6
+ export interface CopyOptions {
7
+ /** Descriptive label for console.log identification */
8
+ label?: string;
9
+ /** If true, only copy to clipboard without console.log */
10
+ silent?: boolean;
11
+ }
12
+ /**
13
+ * Format data for copying (pretty JSON or raw string).
14
+ */
15
+ export declare function fmt(data: unknown): string;
16
+ /**
17
+ * Log content to console (Metro terminal / DevTools) with a structured prefix.
18
+ * ConsoleLogFeature intercepts console.log but still calls the original first,
19
+ * so output reliably appears in Metro terminal.
20
+ */
21
+ export declare function logToComputer(content: string, label?: string): void;
22
+ /**
23
+ * Copy content to computer via the best available method.
24
+ *
25
+ * 1. Attempts device clipboard (if @react-native-clipboard/clipboard is installed)
26
+ * 2. Always console.logs with structured prefix (appears in Metro terminal)
27
+ * 3. Returns result indicating what succeeded
28
+ */
29
+ export declare function copyToComputer(content: string, options?: CopyOptions): CopyResult;
30
+ //# sourceMappingURL=copyToComputer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copyToComputer.d.ts","sourceRoot":"","sources":["../../../../src/utils/copyToComputer.ts"],"names":[],"mappings":"AAsBA,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1D,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAID;;GAEG;AACH,wBAAgB,GAAG,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAOzC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAgBnE;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,UAAU,CAuBjF"}
@@ -0,0 +1,18 @@
1
+ import type { ComponentType } from 'react';
2
+ import type { DebugFeature, DebugFeatureRenderProps } from '../types';
3
+ import type { EventChannel } from './createEventChannel';
4
+ /**
5
+ * Generic factory for features that subscribe to an event channel.
6
+ * Eliminates boilerplate across channel-based features (Track, Navigation, Zustand).
7
+ *
8
+ * @param getChannel - Function returning the current channel (supports test resets)
9
+ * @param toEntry - Maps a payload + auto-generated id to a typed log entry
10
+ * @param options - Feature name, label, render component, and optional maxLogs
11
+ */
12
+ export declare function createChannelFeature<TPayload, TEntry>(getChannel: () => EventChannel<TPayload>, toEntry: (payload: TPayload, id: string) => TEntry, options: {
13
+ name: string;
14
+ label: string;
15
+ renderContent?: ComponentType<DebugFeatureRenderProps<TEntry>>;
16
+ maxLogs?: number;
17
+ }): DebugFeature<TEntry>;
18
+ //# sourceMappingURL=createChannelFeature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createChannelFeature.d.ts","sourceRoot":"","sources":["../../../../src/utils/createChannelFeature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAwB,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAC5F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKzD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EACnD,UAAU,EAAE,MAAM,YAAY,CAAC,QAAQ,CAAC,EACxC,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,KAAK,MAAM,EAClD,OAAO,EAAE;IACP,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GACA,YAAY,CAAC,MAAM,CAAC,CA8BtB"}
@@ -0,0 +1,7 @@
1
+ export type EventListener<TEvent> = (event: TEvent) => void;
2
+ export interface EventChannel<TEvent> {
3
+ emit: (event: TEvent) => void;
4
+ subscribe: (listener: EventListener<TEvent>) => () => void;
5
+ }
6
+ export declare function createEventChannel<TEvent>(): EventChannel<TEvent>;
7
+ //# sourceMappingURL=createEventChannel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createEventChannel.d.ts","sourceRoot":"","sources":["../../../../src/utils/createEventChannel.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AAE5D,MAAM,WAAW,YAAY,CAAC,MAAM;IAClC,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,SAAS,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,MAAM,IAAI,CAAC;CAC5D;AAED,wBAAgB,kBAAkB,CAAC,MAAM,KAAK,YAAY,CAAC,MAAM,CAAC,CAcjE"}
@@ -0,0 +1,9 @@
1
+ export type StoreListener = () => void;
2
+ export interface ObservableStore<T> {
3
+ getData: () => T[];
4
+ push: (item: T, maxEntries?: number) => void;
5
+ clear: () => void;
6
+ subscribe: (listener: StoreListener) => () => void;
7
+ }
8
+ export declare function createObservableStore<T>(): ObservableStore<T>;
9
+ //# sourceMappingURL=createObservableStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createObservableStore.d.ts","sourceRoot":"","sources":["../../../../src/utils/createObservableStore.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC;AAEvC,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,SAAS,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,MAAM,IAAI,CAAC;CACpD;AAED,wBAAgB,qBAAqB,CAAC,CAAC,KAAK,eAAe,CAAC,CAAC,CAAC,CAgC7D"}
@@ -0,0 +1,2 @@
1
+ export declare const ICON_SIZE = 52;
2
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/utils/layout.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAK,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Safely stringify a value to JSON, handling circular references
3
+ * and values that can't be serialized.
4
+ */
5
+ export declare function safeStringify(value: unknown, space?: number): string;
6
+ //# sourceMappingURL=safeStringify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"safeStringify.d.ts","sourceRoot":"","sources":["../../../../src/utils/safeStringify.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAoBpE"}
@@ -0,0 +1,7 @@
1
+ type UrlRewriter = (url: string) => string;
2
+ export declare const urlRewriter: {
3
+ get: () => UrlRewriter | null;
4
+ set: (rewriter: UrlRewriter | null) => void;
5
+ };
6
+ export {};
7
+ //# sourceMappingURL=urlRewriterRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urlRewriterRegistry.d.ts","sourceRoot":"","sources":["../../../../src/utils/urlRewriterRegistry.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;AAI3C,eAAO,MAAM,WAAW;eACb,WAAW,GAAG,IAAI;oBACX,WAAW,GAAG,IAAI,KAAG,IAAI;CAG1C,CAAC"}