react-native-debug-toolkit 3.3.4 → 3.5.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.
- package/README.md +48 -46
- package/README.zh-CN.md +48 -46
- package/android/src/main/java/com/reactnativedebugtoolkit/DebugToolkitDevConnectModule.java +0 -187
- package/bin/debug-toolkit.js +0 -16
- package/ios/DebugToolkitDevConnect.h +0 -12
- package/ios/DebugToolkitDevConnect.mm +0 -321
- package/lib/commonjs/constants/logLevels.js +19 -0
- package/lib/commonjs/constants/logLevels.js.map +1 -0
- package/lib/commonjs/core/initialize.js +36 -18
- package/lib/commonjs/core/initialize.js.map +1 -1
- package/lib/commonjs/features/console/ConsoleLogTab.js +4 -15
- package/lib/commonjs/features/console/ConsoleLogTab.js.map +1 -1
- package/lib/commonjs/features/console/index.js +15 -8
- package/lib/commonjs/features/console/index.js.map +1 -1
- package/lib/commonjs/features/devConnect/DevConnectTab.js +18 -470
- package/lib/commonjs/features/devConnect/DevConnectTab.js.map +1 -1
- package/lib/commonjs/features/devConnect/devConnectPreferences.js +0 -12
- package/lib/commonjs/features/devConnect/devConnectPreferences.js.map +1 -1
- package/lib/commonjs/features/devConnect/devConnectUtils.js +2 -57
- package/lib/commonjs/features/devConnect/devConnectUtils.js.map +1 -1
- package/lib/commonjs/features/devConnect/index.js +1 -23
- package/lib/commonjs/features/devConnect/index.js.map +1 -1
- package/lib/commonjs/features/devConnect/nativeDevConnect.js +1 -103
- package/lib/commonjs/features/devConnect/nativeDevConnect.js.map +1 -1
- package/lib/commonjs/features/network/NetworkLogTab.js +91 -93
- package/lib/commonjs/features/network/NetworkLogTab.js.map +1 -1
- package/lib/commonjs/features/network/index.js +7 -4
- package/lib/commonjs/features/network/index.js.map +1 -1
- package/lib/commonjs/features/sessionHistory/SessionHistoryTab.js +1044 -0
- package/lib/commonjs/features/sessionHistory/SessionHistoryTab.js.map +1 -0
- package/lib/commonjs/features/sessionHistory/index.js +103 -0
- package/lib/commonjs/features/sessionHistory/index.js.map +1 -0
- package/lib/commonjs/features/track/index.js +4 -3
- package/lib/commonjs/features/track/index.js.map +1 -1
- package/lib/commonjs/index.js +27 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/DebugView.js +3 -0
- package/lib/commonjs/ui/DebugView.js.map +1 -1
- package/lib/commonjs/ui/panel/DebugPanel.js +67 -34
- package/lib/commonjs/ui/panel/DebugPanel.js.map +1 -1
- package/lib/commonjs/ui/panel/FeatureIntroCard.js +131 -0
- package/lib/commonjs/ui/panel/FeatureIntroCard.js.map +1 -0
- package/lib/commonjs/ui/panel/FeatureRail.js +163 -0
- package/lib/commonjs/ui/panel/FeatureRail.js.map +1 -0
- package/lib/commonjs/ui/panel/FloatPanelView.js +169 -32
- package/lib/commonjs/ui/panel/FloatPanelView.js.map +1 -1
- package/lib/commonjs/ui/panel/buildFeatureSummary.js +207 -0
- package/lib/commonjs/ui/panel/buildFeatureSummary.js.map +1 -0
- package/lib/commonjs/ui/panel/filterFeatureSnapshot.js +43 -0
- package/lib/commonjs/ui/panel/filterFeatureSnapshot.js.map +1 -0
- package/lib/commonjs/ui/panel/tabPersistence.js +17 -0
- package/lib/commonjs/ui/panel/tabPersistence.js.map +1 -0
- package/lib/commonjs/ui/theme/colors.js +6 -0
- package/lib/commonjs/ui/theme/colors.js.map +1 -1
- package/lib/commonjs/utils/DaemonClient.js +30 -8
- package/lib/commonjs/utils/DaemonClient.js.map +1 -1
- package/lib/commonjs/utils/SessionManager.js +132 -0
- package/lib/commonjs/utils/SessionManager.js.map +1 -0
- package/lib/commonjs/utils/StorageAdapter.js +104 -0
- package/lib/commonjs/utils/StorageAdapter.js.map +1 -0
- package/lib/commonjs/utils/createChannelFeature.js +22 -5
- package/lib/commonjs/utils/createChannelFeature.js.map +1 -1
- package/lib/commonjs/utils/createDebugTab.js +21 -0
- package/lib/commonjs/utils/createDebugTab.js.map +1 -0
- package/lib/commonjs/utils/createPersistedObservableStore.js +14 -8
- package/lib/commonjs/utils/createPersistedObservableStore.js.map +1 -1
- package/lib/commonjs/utils/debugPreferences.js +28 -6
- package/lib/commonjs/utils/debugPreferences.js.map +1 -1
- package/lib/commonjs/utils/deviceReport.js +5 -1
- package/lib/commonjs/utils/deviceReport.js.map +1 -1
- package/lib/commonjs/utils/logRuntime.js +32 -0
- package/lib/commonjs/utils/logRuntime.js.map +1 -0
- package/lib/module/constants/logLevels.js +15 -0
- package/lib/module/constants/logLevels.js.map +1 -0
- package/lib/module/core/initialize.js +36 -18
- package/lib/module/core/initialize.js.map +1 -1
- package/lib/module/features/console/ConsoleLogTab.js +1 -12
- package/lib/module/features/console/ConsoleLogTab.js.map +1 -1
- package/lib/module/features/console/index.js +15 -8
- package/lib/module/features/console/index.js.map +1 -1
- package/lib/module/features/devConnect/DevConnectTab.js +21 -473
- package/lib/module/features/devConnect/DevConnectTab.js.map +1 -1
- package/lib/module/features/devConnect/devConnectPreferences.js +1 -12
- package/lib/module/features/devConnect/devConnectPreferences.js.map +1 -1
- package/lib/module/features/devConnect/devConnectUtils.js +1 -53
- package/lib/module/features/devConnect/devConnectUtils.js.map +1 -1
- package/lib/module/features/devConnect/index.js +5 -9
- package/lib/module/features/devConnect/index.js.map +1 -1
- package/lib/module/features/devConnect/nativeDevConnect.js +1 -100
- package/lib/module/features/devConnect/nativeDevConnect.js.map +1 -1
- package/lib/module/features/network/NetworkLogTab.js +91 -93
- package/lib/module/features/network/NetworkLogTab.js.map +1 -1
- package/lib/module/features/network/index.js +7 -4
- package/lib/module/features/network/index.js.map +1 -1
- package/lib/module/features/sessionHistory/SessionHistoryTab.js +1039 -0
- package/lib/module/features/sessionHistory/SessionHistoryTab.js.map +1 -0
- package/lib/module/features/sessionHistory/index.js +99 -0
- package/lib/module/features/sessionHistory/index.js.map +1 -0
- package/lib/module/features/track/index.js +4 -3
- package/lib/module/features/track/index.js.map +1 -1
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/DebugView.js +3 -0
- package/lib/module/ui/DebugView.js.map +1 -1
- package/lib/module/ui/panel/DebugPanel.js +67 -34
- package/lib/module/ui/panel/DebugPanel.js.map +1 -1
- package/lib/module/ui/panel/FeatureIntroCard.js +126 -0
- package/lib/module/ui/panel/FeatureIntroCard.js.map +1 -0
- package/lib/module/ui/panel/FeatureRail.js +158 -0
- package/lib/module/ui/panel/FeatureRail.js.map +1 -0
- package/lib/module/ui/panel/FloatPanelView.js +170 -33
- package/lib/module/ui/panel/FloatPanelView.js.map +1 -1
- package/lib/module/ui/panel/buildFeatureSummary.js +203 -0
- package/lib/module/ui/panel/buildFeatureSummary.js.map +1 -0
- package/lib/module/ui/panel/filterFeatureSnapshot.js +39 -0
- package/lib/module/ui/panel/filterFeatureSnapshot.js.map +1 -0
- package/lib/module/ui/panel/tabPersistence.js +13 -0
- package/lib/module/ui/panel/tabPersistence.js.map +1 -0
- package/lib/module/ui/theme/colors.js +6 -0
- package/lib/module/ui/theme/colors.js.map +1 -1
- package/lib/module/utils/DaemonClient.js +30 -8
- package/lib/module/utils/DaemonClient.js.map +1 -1
- package/lib/module/utils/SessionManager.js +127 -0
- package/lib/module/utils/SessionManager.js.map +1 -0
- package/lib/module/utils/StorageAdapter.js +96 -0
- package/lib/module/utils/StorageAdapter.js.map +1 -0
- package/lib/module/utils/createChannelFeature.js +22 -5
- package/lib/module/utils/createChannelFeature.js.map +1 -1
- package/lib/module/utils/createDebugTab.js +17 -0
- package/lib/module/utils/createDebugTab.js.map +1 -0
- package/lib/module/utils/createPersistedObservableStore.js +14 -8
- package/lib/module/utils/createPersistedObservableStore.js.map +1 -1
- package/lib/module/utils/debugPreferences.js +27 -6
- package/lib/module/utils/debugPreferences.js.map +1 -1
- package/lib/module/utils/deviceReport.js +4 -1
- package/lib/module/utils/deviceReport.js.map +1 -1
- package/lib/module/utils/logRuntime.js +26 -0
- package/lib/module/utils/logRuntime.js.map +1 -0
- package/lib/typescript/src/constants/logLevels.d.ts +3 -0
- package/lib/typescript/src/constants/logLevels.d.ts.map +1 -0
- package/lib/typescript/src/core/initialize.d.ts +6 -0
- package/lib/typescript/src/core/initialize.d.ts.map +1 -1
- package/lib/typescript/src/features/console/ConsoleLogTab.d.ts.map +1 -1
- package/lib/typescript/src/features/console/index.d.ts +2 -1
- package/lib/typescript/src/features/console/index.d.ts.map +1 -1
- package/lib/typescript/src/features/devConnect/DevConnectTab.d.ts.map +1 -1
- package/lib/typescript/src/features/devConnect/devConnectPreferences.d.ts +0 -2
- package/lib/typescript/src/features/devConnect/devConnectPreferences.d.ts.map +1 -1
- package/lib/typescript/src/features/devConnect/devConnectUtils.d.ts +0 -20
- package/lib/typescript/src/features/devConnect/devConnectUtils.d.ts.map +1 -1
- package/lib/typescript/src/features/devConnect/index.d.ts +2 -2
- package/lib/typescript/src/features/devConnect/index.d.ts.map +1 -1
- package/lib/typescript/src/features/devConnect/nativeDevConnect.d.ts +0 -25
- package/lib/typescript/src/features/devConnect/nativeDevConnect.d.ts.map +1 -1
- package/lib/typescript/src/features/devConnect/types.d.ts +1 -3
- package/lib/typescript/src/features/devConnect/types.d.ts.map +1 -1
- package/lib/typescript/src/features/network/NetworkLogTab.d.ts.map +1 -1
- package/lib/typescript/src/features/network/index.d.ts +2 -1
- package/lib/typescript/src/features/network/index.d.ts.map +1 -1
- package/lib/typescript/src/features/sessionHistory/SessionHistoryTab.d.ts +20 -0
- package/lib/typescript/src/features/sessionHistory/SessionHistoryTab.d.ts.map +1 -0
- package/lib/typescript/src/features/sessionHistory/index.d.ts +4 -0
- package/lib/typescript/src/features/sessionHistory/index.d.ts.map +1 -0
- package/lib/typescript/src/features/track/index.d.ts +2 -1
- package/lib/typescript/src/features/track/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +6 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types/feature.d.ts +1 -1
- package/lib/typescript/src/types/feature.d.ts.map +1 -1
- package/lib/typescript/src/types/index.d.ts +2 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/lib/typescript/src/ui/DebugView.d.ts +4 -2
- package/lib/typescript/src/ui/DebugView.d.ts.map +1 -1
- package/lib/typescript/src/ui/panel/DebugPanel.d.ts +3 -1
- package/lib/typescript/src/ui/panel/DebugPanel.d.ts.map +1 -1
- package/lib/typescript/src/ui/panel/FeatureIntroCard.d.ts +11 -0
- package/lib/typescript/src/ui/panel/FeatureIntroCard.d.ts.map +1 -0
- package/lib/typescript/src/ui/panel/FeatureRail.d.ts +16 -0
- package/lib/typescript/src/ui/panel/FeatureRail.d.ts.map +1 -0
- package/lib/typescript/src/ui/panel/FloatPanelView.d.ts.map +1 -1
- package/lib/typescript/src/ui/panel/buildFeatureSummary.d.ts +13 -0
- package/lib/typescript/src/ui/panel/buildFeatureSummary.d.ts.map +1 -0
- package/lib/typescript/src/ui/panel/filterFeatureSnapshot.d.ts +3 -0
- package/lib/typescript/src/ui/panel/filterFeatureSnapshot.d.ts.map +1 -0
- package/lib/typescript/src/ui/panel/tabPersistence.d.ts +3 -0
- package/lib/typescript/src/ui/panel/tabPersistence.d.ts.map +1 -0
- package/lib/typescript/src/ui/theme/colors.d.ts +5 -0
- package/lib/typescript/src/ui/theme/colors.d.ts.map +1 -1
- package/lib/typescript/src/utils/DaemonClient.d.ts +7 -1
- package/lib/typescript/src/utils/DaemonClient.d.ts.map +1 -1
- package/lib/typescript/src/utils/SessionManager.d.ts +30 -0
- package/lib/typescript/src/utils/SessionManager.d.ts.map +1 -0
- package/lib/typescript/src/utils/StorageAdapter.d.ts +38 -0
- package/lib/typescript/src/utils/StorageAdapter.d.ts.map +1 -0
- package/lib/typescript/src/utils/createChannelFeature.d.ts +2 -0
- package/lib/typescript/src/utils/createChannelFeature.d.ts.map +1 -1
- package/lib/typescript/src/utils/createDebugTab.d.ts +18 -0
- package/lib/typescript/src/utils/createDebugTab.d.ts.map +1 -0
- package/lib/typescript/src/utils/createPersistedObservableStore.d.ts +4 -1
- package/lib/typescript/src/utils/createPersistedObservableStore.d.ts.map +1 -1
- package/lib/typescript/src/utils/debugPreferences.d.ts +1 -4
- package/lib/typescript/src/utils/debugPreferences.d.ts.map +1 -1
- package/lib/typescript/src/utils/deviceReport.d.ts +1 -0
- package/lib/typescript/src/utils/deviceReport.d.ts.map +1 -1
- package/lib/typescript/src/utils/logRuntime.d.ts +13 -0
- package/lib/typescript/src/utils/logRuntime.d.ts.map +1 -0
- package/package.json +10 -6
- package/src/constants/logLevels.ts +13 -0
- package/src/core/initialize.ts +61 -21
- package/src/features/console/ConsoleLogTab.tsx +1 -14
- package/src/features/console/index.ts +18 -8
- package/src/features/devConnect/DevConnectTab.tsx +17 -381
- package/src/features/devConnect/devConnectPreferences.ts +0 -15
- package/src/features/devConnect/devConnectUtils.ts +1 -81
- package/src/features/devConnect/index.ts +2 -9
- package/src/features/devConnect/nativeDevConnect.ts +1 -136
- package/src/features/devConnect/types.ts +1 -3
- package/src/features/network/NetworkLogTab.tsx +61 -71
- package/src/features/network/index.ts +12 -3
- package/src/features/sessionHistory/SessionHistoryTab.tsx +691 -0
- package/src/features/sessionHistory/index.ts +102 -0
- package/src/features/track/index.ts +10 -3
- package/src/index.ts +13 -0
- package/src/types/feature.ts +2 -1
- package/src/types/index.ts +10 -0
- package/src/ui/DebugView.tsx +6 -1
- package/src/ui/panel/DebugPanel.tsx +60 -30
- package/src/ui/panel/FeatureIntroCard.tsx +127 -0
- package/src/ui/panel/FeatureRail.tsx +165 -0
- package/src/ui/panel/FloatPanelView.tsx +176 -25
- package/src/ui/panel/buildFeatureSummary.ts +288 -0
- package/src/ui/panel/filterFeatureSnapshot.ts +51 -0
- package/src/ui/panel/tabPersistence.ts +22 -0
- package/src/ui/theme/colors.ts +7 -0
- package/src/utils/DaemonClient.ts +33 -5
- package/src/utils/SessionManager.ts +174 -0
- package/src/utils/StorageAdapter.ts +135 -0
- package/src/utils/createChannelFeature.ts +28 -6
- package/src/utils/createDebugTab.ts +32 -0
- package/src/utils/createPersistedObservableStore.ts +18 -10
- package/src/utils/debugPreferences.ts +38 -8
- package/src/utils/deviceReport.ts +5 -1
- package/src/utils/logRuntime.ts +39 -0
- package/app.plugin.js +0 -51
- package/dev-client.js +0 -3
- package/lib/commonjs/ui/panel/FeatureTabBar.js +0 -182
- package/lib/commonjs/ui/panel/FeatureTabBar.js.map +0 -1
- package/lib/module/ui/panel/FeatureTabBar.js +0 -177
- package/lib/module/ui/panel/FeatureTabBar.js.map +0 -1
- package/lib/typescript/src/ui/panel/FeatureTabBar.d.ts +0 -13
- package/lib/typescript/src/ui/panel/FeatureTabBar.d.ts.map +0 -1
- package/scripts/bundle/android.js +0 -101
- package/scripts/bundle/cli.js +0 -57
- package/scripts/bundle/doctor.js +0 -38
- package/scripts/bundle/ios.js +0 -179
- package/scripts/bundle/setup.js +0 -39
- package/scripts/debug-bundle.gradle +0 -147
- package/src/ui/panel/FeatureTabBar.tsx +0 -204
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DebugFeature } from '../../types';
|
|
2
2
|
import type { DevConnectState } from './types';
|
|
3
3
|
export type { DevConnectState } from './types';
|
|
4
|
-
export {
|
|
5
|
-
export { loadDevConnectPreferences, restoreDevConnectSettingsToDaemon, saveComputerHost, saveComputerTarget, saveDaemonPort,
|
|
4
|
+
export { normalizeComputerHost, normalizePort, parseComputerTarget, } from './devConnectUtils';
|
|
5
|
+
export { loadDevConnectPreferences, restoreDevConnectSettingsToDaemon, saveComputerHost, saveComputerTarget, saveDaemonPort, } from './devConnectPreferences';
|
|
6
6
|
export { nativeIsDebugBuild } from './nativeDevConnect';
|
|
7
7
|
export declare const createDevConnectFeature: () => DebugFeature<DevConnectState>;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/devConnect/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAwB,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAsD,eAAe,EAAE,MAAM,SAAS,CAAC;AAEnG,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/devConnect/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAwB,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAsD,eAAe,EAAE,MAAM,SAAS,CAAC;AAEnG,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EACL,qBAAqB,EACrB,aAAa,EACb,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,yBAAyB,EACzB,iCAAiC,EACjC,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,eAAO,MAAM,uBAAuB,QAAO,YAAY,CAAC,eAAe,CAqEtE,CAAC"}
|
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
export interface NativeDiagnostics {
|
|
2
|
-
persistedMetroHost: string | null;
|
|
3
|
-
appDelegateClass: string;
|
|
4
|
-
isDebugBuild: boolean;
|
|
5
|
-
hasEmbeddedBundle?: boolean;
|
|
6
|
-
embeddedFirstHookInstalled?: boolean;
|
|
7
|
-
packagerHookInstalled?: boolean;
|
|
8
|
-
bundleRootHookInstalled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
type MetroBundleFailureReason = 'invalid_target' | 'native_unavailable' | 'fetch_unavailable' | 'metro_unreachable' | 'native_error';
|
|
11
|
-
export type MetroBundleResult = {
|
|
12
|
-
ok: true;
|
|
13
|
-
hostPort: string;
|
|
14
|
-
} | {
|
|
15
|
-
ok: false;
|
|
16
|
-
reason: MetroBundleFailureReason;
|
|
17
|
-
error?: string;
|
|
18
|
-
statusUrl?: string;
|
|
19
|
-
};
|
|
20
1
|
export declare function isNativeDevConnectAvailable(): boolean;
|
|
21
|
-
export declare function applyMetroBundle(host: string, port: string): Promise<MetroBundleResult>;
|
|
22
|
-
export declare function resetMetroBundle(): Promise<MetroBundleResult | {
|
|
23
|
-
ok: true;
|
|
24
|
-
}>;
|
|
25
2
|
export declare function getDeviceLocalIp(): Promise<string | null>;
|
|
26
3
|
export declare function nativeIsDebugBuild(): Promise<boolean | null>;
|
|
27
|
-
export declare function getNativeDiagnostics(): Promise<NativeDiagnostics | null>;
|
|
28
|
-
export {};
|
|
29
4
|
//# sourceMappingURL=nativeDevConnect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeDevConnect.d.ts","sourceRoot":"","sources":["../../../../../src/features/devConnect/nativeDevConnect.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nativeDevConnect.d.ts","sourceRoot":"","sources":["../../../../../src/features/devConnect/nativeDevConnect.ts"],"names":[],"mappings":"AAgBA,wBAAgB,2BAA2B,IAAI,OAAO,CAErD;AAED,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAW/D;AAED,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAWlE"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
export interface DevConnectState {
|
|
2
2
|
isSimulator: boolean;
|
|
3
3
|
computerHost: string;
|
|
4
|
-
metroPort: string;
|
|
5
4
|
daemonPort: string;
|
|
6
5
|
subnetPrefix?: string;
|
|
7
|
-
nativeMetroAvailable: boolean;
|
|
8
6
|
streaming: boolean;
|
|
9
7
|
}
|
|
10
|
-
export type DevConnectSettingsPatch = Partial<Pick<DevConnectState, 'computerHost' | '
|
|
8
|
+
export type DevConnectSettingsPatch = Partial<Pick<DevConnectState, 'computerHost' | 'daemonPort'>>;
|
|
11
9
|
export interface DevConnectFeatureControls {
|
|
12
10
|
updateSettings?: (patch: DevConnectSettingsPatch) => void;
|
|
13
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/devConnect/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/devConnect/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAC3C,IAAI,CAAC,eAAe,EAAE,cAAc,GAAG,YAAY,CAAC,CACrD,CAAC;AAEF,MAAM,WAAW,yBAAyB;IACxC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAC3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkLogTab.d.ts","sourceRoot":"","sources":["../../../../../src/features/network/NetworkLogTab.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"NetworkLogTab.d.ts","sourceRoot":"","sources":["../../../../../src/features/network/NetworkLogTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA4B5E,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,eAAe,EAAE,CAAC,CA2H7E,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { NetworkLogEntry } from '../../types';
|
|
2
|
+
import { type LogRuntimeContext } from '../../utils/logRuntime';
|
|
2
3
|
export interface NetworkFeatureConfig {
|
|
3
4
|
/** Maximum number of network logs to keep (default: 200) */
|
|
4
5
|
maxLogs?: number;
|
|
5
6
|
/** URLs to filter out from logging */
|
|
6
7
|
blacklist?: Array<string | RegExp>;
|
|
7
8
|
}
|
|
8
|
-
export declare const createNetworkFeature: (config?: NetworkFeatureConfig) => import("../../types").DebugFeature<NetworkLogEntry[]>;
|
|
9
|
+
export declare const createNetworkFeature: (config?: NetworkFeatureConfig, runtime?: LogRuntimeContext) => import("../../types").DebugFeature<NetworkLogEntry[]>;
|
|
9
10
|
export declare function addToBlacklist(endpoint: string): void;
|
|
10
11
|
export declare function _isNetworkUrlBlacklistedForTesting(url: string): boolean;
|
|
11
12
|
/** Reset module-level state for testing */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/network/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/network/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAkCtF,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,GAC/B,SAAS,oBAAoB,EAC7B,UAAS,iBAA0C,0DAiCpD,CAAC;AAgBF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAMrD;AAED,wBAAgB,kCAAkC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEvE;AAED,2CAA2C;AAC3C,wBAAgB,uBAAuB,IAAI,IAAI,CAI9C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DebugFeature, DebugFeatureRenderProps, LogFeatureKey, LogSession } from '../../types';
|
|
3
|
+
export type LogCounts = Record<LogFeatureKey, number>;
|
|
4
|
+
export interface SessionHistoryState {
|
|
5
|
+
sessions: LogSession[];
|
|
6
|
+
currentSessionId: string;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
selectedSession: SelectedSession | null;
|
|
9
|
+
storageType: string;
|
|
10
|
+
logCounts: Record<string, LogCounts>;
|
|
11
|
+
}
|
|
12
|
+
export interface SessionHistoryFeature extends DebugFeature<SessionHistoryState> {
|
|
13
|
+
loadSession: (sessionId: string | null) => void;
|
|
14
|
+
}
|
|
15
|
+
export interface SelectedSession {
|
|
16
|
+
sessionId: string;
|
|
17
|
+
logs: Record<LogFeatureKey, unknown[]>;
|
|
18
|
+
}
|
|
19
|
+
export declare const SessionHistoryTab: React.FC<DebugFeatureRenderProps<SessionHistoryState>>;
|
|
20
|
+
//# sourceMappingURL=SessionHistoryTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionHistoryTab.d.ts","sourceRoot":"","sources":["../../../../../src/features/sessionHistory/SessionHistoryTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAiB9D,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIpG,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,qBAAsB,SAAQ,YAAY,CAAC,mBAAmB,CAAC;IAC9E,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACjD;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,aAAa,EAAE,OAAO,EAAE,CAAC,CAAC;CACxC;AAqGD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,CAqHpF,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type SessionHistoryFeature } from './SessionHistoryTab';
|
|
2
|
+
import { type LogRuntimeContext } from '../../utils/logRuntime';
|
|
3
|
+
export declare function createSessionHistoryFeature(runtime?: LogRuntimeContext): SessionHistoryFeature;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/sessionHistory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqF,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGpJ,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAItF,wBAAgB,2BAA2B,CACzC,OAAO,GAAE,iBAA0C,GAClD,qBAAqB,CA4FvB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DebugFeature, TrackLogEntry } from '../../types';
|
|
2
|
+
import { type LogRuntimeContext } from '../../utils/logRuntime';
|
|
2
3
|
export interface TrackEventData {
|
|
3
4
|
eventName: string;
|
|
4
5
|
[key: string]: unknown;
|
|
@@ -8,7 +9,7 @@ export interface TrackFeatureConfig {
|
|
|
8
9
|
/** Maximum number of track events to keep (default: 200) */
|
|
9
10
|
maxLogs?: number;
|
|
10
11
|
}
|
|
11
|
-
export declare const createTrackFeature: (config?: TrackFeatureConfig) => DebugFeature<TrackLogEntry[]>;
|
|
12
|
+
export declare const createTrackFeature: (config?: TrackFeatureConfig, runtime?: LogRuntimeContext) => DebugFeature<TrackLogEntry[]>;
|
|
12
13
|
/** Reset module-level state for testing */
|
|
13
14
|
export declare function _resetTrackForTesting(): void;
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/track/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/track/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG/D,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEtF,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,GAC7B,SAAS,kBAAkB,EAC3B,UAAS,iBAA0C,KAClD,YAAY,CAAC,aAAa,EAAE,CAe5B,CAAC;AAEJ,2CAA2C;AAC3C,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C"}
|
|
@@ -19,8 +19,11 @@ export type { EnvironmentFeatureAPI } from './features/environment';
|
|
|
19
19
|
export { createClipboardFeature } from './features/clipboard';
|
|
20
20
|
export { createDevConnectFeature } from './features/devConnect';
|
|
21
21
|
export type { DevConnectState } from './features/devConnect';
|
|
22
|
+
export { createSessionHistoryFeature } from './features/sessionHistory';
|
|
22
23
|
export { useNavigationLogger } from './features/navigation/useNavigationLogger';
|
|
23
24
|
export { safeStringify } from './utils/safeStringify';
|
|
25
|
+
export { createDebugTab } from './utils/createDebugTab';
|
|
26
|
+
export type { CreateDebugTabOptions } from './utils/createDebugTab';
|
|
24
27
|
export { copyToComputer, logToComputer, fmt } from './utils/copyToComputer';
|
|
25
28
|
export type { CopyResult, CopyOptions, CopyMethod } from './utils/copyToComputer';
|
|
26
29
|
export { createDebugDeviceReport } from './utils/deviceReport';
|
|
@@ -28,6 +31,9 @@ export type { DebugDeviceReport, DebugDeviceReportOptions } from './utils/device
|
|
|
28
31
|
export { DaemonClient, daemonClient } from './utils/DaemonClient';
|
|
29
32
|
export type { DaemonSettings, DaemonConnectionMode, DaemonConnectionFailureReason, DaemonConnectionOptions, DaemonConnectionResult, StreamStatus, StreamToDaemonOptions, ReportResult, ReportToDaemonOptions, } from './utils/DaemonClient';
|
|
30
33
|
export { getDefaultDaemonEndpoint } from './utils/DaemonClient';
|
|
34
|
+
export { createDefaultLogStorage, MemoryStorageAdapter, } from './utils/StorageAdapter';
|
|
35
|
+
export type { StorageAdapter } from './utils/StorageAdapter';
|
|
36
|
+
export type { LogFeatureKey, LogSession, SessionManagerOptions, } from './utils/SessionManager';
|
|
31
37
|
export type { AnyDebugFeature, BuiltInFeatureName, DebugFeature, DebugFeatureListener, DebugFeatureRenderProps, FeatureDataProvider, NetworkLogEntry, ConsoleLogEntry, ZustandLogEntry, NavigationLogEntry, TrackLogEntry, EnvironmentConfig, EnvironmentState, } from './types';
|
|
32
38
|
export { initializeDebugToolkit as default } from './core/initialize';
|
|
33
39
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts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CAAC;AAGjB,OAAO,EAAE,sBAAsB,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
2
|
export type DebugFeatureListener = () => void;
|
|
3
|
-
export type BuiltInFeatureName = 'network' | 'console' | 'zustand' | 'navigation' | 'track' | 'environment' | 'clipboard' | 'devConnect';
|
|
3
|
+
export type BuiltInFeatureName = 'network' | 'console' | 'zustand' | 'navigation' | 'track' | 'environment' | 'clipboard' | 'devConnect' | 'sessionHistory';
|
|
4
4
|
export interface DebugFeatureRenderProps<TSnapshot = unknown> {
|
|
5
5
|
snapshot: TSnapshot;
|
|
6
6
|
feature: DebugFeature<TSnapshot>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../../src/types/feature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,oBAAoB,GAAG,MAAM,IAAI,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,SAAS,GACT,SAAS,GACT,YAAY,GACZ,OAAO,GACP,aAAa,GACb,WAAW,GACX,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../../src/types/feature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,oBAAoB,GAAG,MAAM,IAAI,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,SAAS,GACT,SAAS,GACT,YAAY,GACZ,OAAO,GACP,aAAa,GACb,WAAW,GACX,YAAY,GACZ,gBAAgB,CAAC;AAErB,MAAM,WAAW,uBAAuB,CAAC,SAAS,GAAG,OAAO;IAC1D,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;CAClC;AAGD,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;AAEhD,wFAAwF;AACxF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,QAAQ,EAAE,eAAe,EAAE,CAAC;IACrC,SAAS,CAAC,QAAQ,EAAE,oBAAoB,GAAG,MAAM,IAAI,CAAC;CACvD;AAED,MAAM,WAAW,YAAY,CAAC,SAAS,GAAG,OAAO;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,WAAW,EAAE,MAAM,SAAS,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,MAAM,IAAI,CAAC;IAC3D,aAAa,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,CAAC;IAClE,KAAK,CAAC,EAAE,MAAM;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CACvD"}
|
|
@@ -3,4 +3,6 @@ export type { ConsoleLogEntry, NavigationLogEntry, NetworkLogEntry, TrackLogEntr
|
|
|
3
3
|
export type { EnvironmentConfig, EnvironmentState, } from './environment';
|
|
4
4
|
export type { NavigationContainerRef, } from './navigation';
|
|
5
5
|
export type { ThirdPartyLib, ThirdPartyLibAction, } from './thirdPartyLibs';
|
|
6
|
+
export type { StorageAdapter, } from '../utils/StorageAdapter';
|
|
7
|
+
export type { LogFeatureKey, LogSession, SessionManagerOptions, } from '../utils/SessionManager';
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,WAAW,CAAC;AAEnB,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,eAAe,GAChB,MAAM,QAAQ,CAAC;AAEhB,YAAY,EACV,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAEvB,YAAY,EACV,sBAAsB,GACvB,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,aAAa,EACb,mBAAmB,GACpB,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,WAAW,CAAC;AAEnB,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,eAAe,GAChB,MAAM,QAAQ,CAAC;AAEhB,YAAY,EACV,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAEvB,YAAY,EACV,sBAAsB,GACvB,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,aAAa,EACb,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACV,cAAc,GACf,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,aAAa,EACb,UAAU,EACV,qBAAqB,GACtB,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FeatureConfigs } from '../core/initialize';
|
|
3
|
-
import type { EnvironmentConfig, NavigationContainerRef } from '../types';
|
|
3
|
+
import type { AnyDebugFeature, EnvironmentConfig, NavigationContainerRef } from '../types';
|
|
4
4
|
export interface DebugViewProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
/**
|
|
@@ -8,6 +8,8 @@ export interface DebugViewProps {
|
|
|
8
8
|
* Set to `false` to disable a feature.
|
|
9
9
|
*/
|
|
10
10
|
features?: Partial<FeatureConfigs>;
|
|
11
|
+
/** Custom tabs/features appended after built-in features. */
|
|
12
|
+
customFeatures?: AnyDebugFeature[];
|
|
11
13
|
/** Navigation container ref for route tracking. */
|
|
12
14
|
navigationRef?: React.RefObject<NavigationContainerRef | null>;
|
|
13
15
|
/** Environment configs for runtime host switching. */
|
|
@@ -15,5 +17,5 @@ export interface DebugViewProps {
|
|
|
15
17
|
/** Force enable/disable (default: `__DEV__`). */
|
|
16
18
|
enabled?: boolean;
|
|
17
19
|
}
|
|
18
|
-
export declare function DebugView({ children, features, navigationRef, environments, enabled, }: DebugViewProps): React.JSX.Element;
|
|
20
|
+
export declare function DebugView({ children, features, customFeatures, navigationRef, environments, enabled, }: DebugViewProps): React.JSX.Element;
|
|
19
21
|
//# sourceMappingURL=DebugView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugView.d.ts","sourceRoot":"","sources":["../../../../src/ui/DebugView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"DebugView.d.ts","sourceRoot":"","sources":["../../../../src/ui/DebugView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAI3F,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IACnC,6DAA6D;IAC7D,cAAc,CAAC,EAAE,eAAe,EAAE,CAAC;IACnC,mDAAmD;IACnD,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAAC;IAC/D,sDAAsD;IACtD,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACnC,iDAAiD;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAeD,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,aAAa,EACb,YAAY,EACZ,OAAO,GACR,EAAE,cAAc,qBAgDhB"}
|
|
@@ -2,8 +2,10 @@ import React from 'react';
|
|
|
2
2
|
interface DebugPanelProps {
|
|
3
3
|
onClose: () => void;
|
|
4
4
|
onClearAll: () => void;
|
|
5
|
+
syncLabel?: string;
|
|
6
|
+
syncColor?: string;
|
|
5
7
|
children: React.ReactNode;
|
|
6
8
|
}
|
|
7
|
-
export declare function DebugPanel({ onClose, onClearAll, children }: DebugPanelProps): React.JSX.Element;
|
|
9
|
+
export declare function DebugPanel({ onClose, onClearAll, syncLabel, syncColor, children }: DebugPanelProps): React.JSX.Element;
|
|
8
10
|
export {};
|
|
9
11
|
//# sourceMappingURL=DebugPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugPanel.d.ts","sourceRoot":"","sources":["../../../../../src/ui/panel/DebugPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAa9D,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"DebugPanel.d.ts","sourceRoot":"","sources":["../../../../../src/ui/panel/DebugPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAa9D,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,eAAe,qBAuHlG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FeatureSummary } from './buildFeatureSummary';
|
|
3
|
+
interface FeatureIntroCardProps {
|
|
4
|
+
title: string;
|
|
5
|
+
summary: FeatureSummary;
|
|
6
|
+
filterBad: boolean;
|
|
7
|
+
onFilterBad: (bad: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function FeatureIntroCard({ title, summary, filterBad, onFilterBad, }: FeatureIntroCardProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=FeatureIntroCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureIntroCard.d.ts","sourceRoot":"","sources":["../../../../../src/ui/panel/FeatureIntroCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAO5D,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,cAAc,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;CACrC;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,OAAO,EACP,SAAS,EACT,WAAW,GACZ,EAAE,qBAAqB,qBAuCvB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function shortLabelForFeature(label: string, id: string): string;
|
|
3
|
+
export interface RailItem {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
dotColor?: string | null;
|
|
7
|
+
count?: number;
|
|
8
|
+
}
|
|
9
|
+
interface FeatureRailProps {
|
|
10
|
+
items: RailItem[];
|
|
11
|
+
activeIndex: number;
|
|
12
|
+
onSelectTab: (index: number) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function FeatureRail({ items, activeIndex, onSelectTab }: FeatureRailProps): React.JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=FeatureRail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureRail.d.ts","sourceRoot":"","sources":["../../../../../src/ui/panel/FeatureRail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAKtE;AAID,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,gBAAgB;IACxB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,gBAAgB,qBA4ChF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatPanelView.d.ts","sourceRoot":"","sources":["../../../../../src/ui/panel/FloatPanelView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FloatPanelView.d.ts","sourceRoot":"","sources":["../../../../../src/ui/panel/FloatPanelView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8D,MAAM,OAAO,CAAC;AAQnF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA0FnD,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,mBAAmB,qBAqKjH"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AnyDebugFeature } from '../../types';
|
|
2
|
+
export interface FeatureSummary {
|
|
3
|
+
capabilityText: string;
|
|
4
|
+
count?: number;
|
|
5
|
+
badCount?: number;
|
|
6
|
+
latestLabel?: string;
|
|
7
|
+
statusLabel?: string;
|
|
8
|
+
statusColor?: string;
|
|
9
|
+
filterMode?: 'all' | 'bad';
|
|
10
|
+
supportsBadFilter: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function buildFeatureSummary(feature: AnyDebugFeature, snapshot: unknown): FeatureSummary;
|
|
13
|
+
//# sourceMappingURL=buildFeatureSummary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildFeatureSummary.d.ts","sourceRoot":"","sources":["../../../../../src/ui/panel/buildFeatureSummary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,OAAO,GAChB,cAAc,CAgBhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterFeatureSnapshot.d.ts","sourceRoot":"","sources":["../../../../../src/ui/panel/filterFeatureSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,KAAK,GAAG,KAAK,GACxB,OAAO,CAiBT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabPersistence.d.ts","sourceRoot":"","sources":["../../../../../src/ui/panel/tabPersistence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,eAAe,EAAE,EAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,GACvB,MAAM,CAgBR"}
|
|
@@ -11,6 +11,11 @@ export declare const Colors: {
|
|
|
11
11
|
readonly warning: "#FF9500";
|
|
12
12
|
readonly info: "#5AC8FA";
|
|
13
13
|
readonly purple: "#AF52DE";
|
|
14
|
+
readonly railBackground: "#E8EEF6";
|
|
15
|
+
readonly panelDivider: "#CED8E4";
|
|
16
|
+
readonly signalRedBg: "#FFE9E7";
|
|
17
|
+
readonly signalAmberBg: "#FFF1D6";
|
|
18
|
+
readonly signalDefaultBg: "#E7EDF5";
|
|
14
19
|
readonly get: "#007AFF";
|
|
15
20
|
readonly post: "#34C759";
|
|
16
21
|
readonly put: "#FF9500";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../src/ui/theme/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../src/ui/theme/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CA4BT,CAAC;AAEX,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CASrD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FeatureDataProvider } from '../types';
|
|
2
|
-
import { type DebugDeviceReport, type DebugDeviceReportOptions } from './deviceReport';
|
|
2
|
+
import { type DebugDeviceReport, type DebugDeviceReportOptions, type SessionInfo } from './deviceReport';
|
|
3
3
|
export type DaemonConnectionMode = 'simulator' | 'device';
|
|
4
4
|
export interface DaemonSettings {
|
|
5
5
|
mode: DaemonConnectionMode;
|
|
@@ -47,6 +47,7 @@ export interface ReportToDaemonOptions extends DebugDeviceReportOptions {
|
|
|
47
47
|
endpoint?: string;
|
|
48
48
|
timeoutMs?: number;
|
|
49
49
|
token?: string;
|
|
50
|
+
session?: SessionInfo;
|
|
50
51
|
}
|
|
51
52
|
export interface ReportResult {
|
|
52
53
|
ok: boolean;
|
|
@@ -75,6 +76,7 @@ type AbortControllerLike = {
|
|
|
75
76
|
abort: () => void;
|
|
76
77
|
};
|
|
77
78
|
type AbortControllerCtor = new () => AbortControllerLike;
|
|
79
|
+
type SessionProvider = () => SessionInfo;
|
|
78
80
|
export declare function getDefaultDaemonEndpoint(): string;
|
|
79
81
|
export declare function buildDeviceDaemonEndpoint(host: string): string;
|
|
80
82
|
export declare function normalizeDaemonSettings(settings: DaemonSettings): {
|
|
@@ -97,6 +99,7 @@ export declare class DaemonClient {
|
|
|
97
99
|
private _onEndpointDetected;
|
|
98
100
|
private _restorePromise;
|
|
99
101
|
private _sessionId;
|
|
102
|
+
private _sessionProvider;
|
|
100
103
|
private _onConnectionChange;
|
|
101
104
|
constructor(options: DaemonClientOptions);
|
|
102
105
|
getSettings(): DaemonSettings;
|
|
@@ -109,6 +112,8 @@ export declare class DaemonClient {
|
|
|
109
112
|
setStreamingEnabled(enabled: boolean): void;
|
|
110
113
|
setEndpointDetector(callback: (url: string) => void): void;
|
|
111
114
|
setOnConnectionChange(callback: (() => void) | undefined): void;
|
|
115
|
+
setSessionProvider(provider: SessionProvider): void;
|
|
116
|
+
clearSessionProvider(): void;
|
|
112
117
|
restore(): Promise<void>;
|
|
113
118
|
private doRestore;
|
|
114
119
|
reportOnce(options?: ReportToDaemonOptions): Promise<ReportResult>;
|
|
@@ -117,6 +122,7 @@ export declare class DaemonClient {
|
|
|
117
122
|
private resolveFetch;
|
|
118
123
|
private createAbortController;
|
|
119
124
|
private notifyEndpoint;
|
|
125
|
+
private resolveSession;
|
|
120
126
|
private emitStatus;
|
|
121
127
|
private doPost;
|
|
122
128
|
private emitStreamStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DaemonClient.d.ts","sourceRoot":"","sources":["../../../../src/utils/DaemonClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,
|
|
1
|
+
{"version":3,"file":"DaemonClient.d.ts","sourceRoot":"","sources":["../../../../src/utils/DaemonClient.ts"],"names":[],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StorageAdapter } from './StorageAdapter';
|
|
3
|
+
export type LogFeatureKey = 'console_logs' | 'network_logs' | 'track_logs';
|
|
4
|
+
export type LogSession = SessionInfo;
|
|
5
|
+
export interface SessionIndex {
|
|
6
|
+
currentSessionId: string;
|
|
7
|
+
sessions: LogSession[];
|
|
8
|
+
maxSessions: number;
|
|
9
|
+
}
|
|
10
|
+
export interface SessionManagerOptions {
|
|
11
|
+
maxSessions?: number;
|
|
12
|
+
featureKeys?: LogFeatureKey[];
|
|
13
|
+
}
|
|
14
|
+
export declare class SessionManager {
|
|
15
|
+
private readonly storage;
|
|
16
|
+
private readonly currentSession;
|
|
17
|
+
private readonly maxSessions;
|
|
18
|
+
private readonly featureKeys;
|
|
19
|
+
constructor(storage: StorageAdapter, options?: SessionManagerOptions);
|
|
20
|
+
initialize(): Promise<void>;
|
|
21
|
+
getCurrentSession(): LogSession;
|
|
22
|
+
getSessionHistory(): Promise<LogSession[]>;
|
|
23
|
+
getLogStorageKey(featureKey: LogFeatureKey, sessionId?: string): string;
|
|
24
|
+
loadSessionLogs<T>(sessionId: string, featureKey: LogFeatureKey): Promise<T[]>;
|
|
25
|
+
getSessionLogCount(sessionId: string, featureKey: LogFeatureKey): Promise<number>;
|
|
26
|
+
clearCurrentSessionLogs(featureKey: LogFeatureKey): Promise<void>;
|
|
27
|
+
cleanupOldSessions(): Promise<number>;
|
|
28
|
+
private cleanupSessionLogs;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=SessionManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionManager.d.ts","sourceRoot":"","sources":["../../../../src/utils/SessionManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,cAAc,GAAG,YAAY,CAAC;AAE3E,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC;AAErC,MAAM,WAAW,YAAY;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B;AAmDD,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiB;IACzC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAa;IAC5C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;IACrC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkB;gBAElC,OAAO,EAAE,cAAc,EAAE,OAAO,GAAE,qBAA0B;IAOlE,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAsBjC,iBAAiB,IAAI,UAAU;IAIzB,iBAAiB,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAKhD,gBAAgB,CAAC,UAAU,EAAE,aAAa,EAAE,SAAS,SAAyB,GAAG,MAAM;IAIjF,eAAe,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAc9E,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC;IAWjF,uBAAuB,CAAC,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjE,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC;YAsB7B,kBAAkB;CAOjC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface StorageAdapter {
|
|
2
|
+
getItem(key: string): string | null | Promise<string | null>;
|
|
3
|
+
setItem(key: string, value: string): void | Promise<void>;
|
|
4
|
+
removeItem(key: string): void | Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
type AsyncStorageLike = {
|
|
7
|
+
getItem: (key: string) => Promise<string | null>;
|
|
8
|
+
setItem: (key: string, value: string) => Promise<void>;
|
|
9
|
+
removeItem: (key: string) => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
type MMKVLike = {
|
|
12
|
+
getString: (key: string) => string | undefined;
|
|
13
|
+
set: (key: string, value: string) => void;
|
|
14
|
+
delete: (key: string) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare class MemoryStorageAdapter implements StorageAdapter {
|
|
17
|
+
private readonly store;
|
|
18
|
+
getItem(key: string): string | null;
|
|
19
|
+
setItem(key: string, value: string): void;
|
|
20
|
+
removeItem(key: string): void;
|
|
21
|
+
}
|
|
22
|
+
export declare class AsyncStorageAdapter implements StorageAdapter {
|
|
23
|
+
private readonly storage;
|
|
24
|
+
constructor(storage: AsyncStorageLike);
|
|
25
|
+
getItem(key: string): Promise<string | null>;
|
|
26
|
+
setItem(key: string, value: string): Promise<void>;
|
|
27
|
+
removeItem(key: string): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
export declare class MMKVStorageAdapter implements StorageAdapter {
|
|
30
|
+
private readonly storage;
|
|
31
|
+
constructor(storage: MMKVLike);
|
|
32
|
+
getItem(key: string): string | null;
|
|
33
|
+
setItem(key: string, value: string): void;
|
|
34
|
+
removeItem(key: string): void;
|
|
35
|
+
}
|
|
36
|
+
export declare function createDefaultLogStorage(): StorageAdapter;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=StorageAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageAdapter.d.ts","sourceRoot":"","sources":["../../../../src/utils/StorageAdapter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7D,OAAO,C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AAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlD,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGvC;AAED,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAW;gBAEvB,OAAO,EAAE,QAAQ;IAI7B,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAInC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAIzC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAO9B;AAsDD,wBAAgB,uBAAuB,IAAI,cAAc,CAExD"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
2
|
import type { DebugFeature, DebugFeatureRenderProps } from '../types';
|
|
3
3
|
import type { EventChannel } from './createEventChannel';
|
|
4
|
+
import type { StorageAdapter } from './StorageAdapter';
|
|
4
5
|
export interface ChannelFeaturePersistConfig<TEntry> {
|
|
6
|
+
storage: StorageAdapter;
|
|
5
7
|
storageKey: string;
|
|
6
8
|
maxPersist: number;
|
|
7
9
|
debounceMs?: number;
|
|
@@ -1 +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;AAMzD,MAAM,WAAW,2BAA2B,CAAC,MAAM;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,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AAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;CACxC;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,SAAS;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3E,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,EAAE,CAAC,CAAC,CAAC;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,2BAA2B,CAAC,MAAM,CAAC,CAAC;IAC9C,0EAA0E;IAC1E,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,QAAQ,GAAG,IAAI,CAAC;IACpD,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;CACrC,GACA,YAAY,CAAC,MAAM,EAAE,CAAC,CAsExB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { DebugFeature, DebugFeatureListener, DebugFeatureRenderProps } from '../types';
|
|
3
|
+
export interface CreateDebugTabOptions<TSnapshot> {
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
getSnapshot: () => TSnapshot;
|
|
7
|
+
render?: ComponentType<DebugFeatureRenderProps<TSnapshot>>;
|
|
8
|
+
setup?: () => void;
|
|
9
|
+
cleanup?: () => void;
|
|
10
|
+
clear?: () => void;
|
|
11
|
+
subscribe?: (listener: DebugFeatureListener) => () => void;
|
|
12
|
+
badge?: () => {
|
|
13
|
+
label: string;
|
|
14
|
+
color: string;
|
|
15
|
+
} | null;
|
|
16
|
+
}
|
|
17
|
+
export declare function createDebugTab<TSnapshot>(options: CreateDebugTabOptions<TSnapshot>): DebugFeature<TSnapshot>;
|
|
18
|
+
//# sourceMappingURL=createDebugTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDebugTab.d.ts","sourceRoot":"","sources":["../../../../src/utils/createDebugTab.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAE5F,MAAM,WAAW,qBAAqB,CAAC,SAAS;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,SAAS,CAAC;IAC7B,MAAM,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,CAAC;IAC3D,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,MAAM,IAAI,CAAC;IAC3D,KAAK,CAAC,EAAE,MAAM;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CACvD;AAID,wBAAgB,cAAc,CAAC,SAAS,EACtC,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAAC,GACxC,YAAY,CAAC,SAAS,CAAC,CAYzB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type ObservableStore } from './createObservableStore';
|
|
2
|
+
import type { StorageAdapter } from './StorageAdapter';
|
|
2
3
|
export interface PersistedStoreOptions<T> {
|
|
4
|
+
storage: StorageAdapter;
|
|
3
5
|
storageKey: string;
|
|
4
6
|
maxPersist: number;
|
|
5
7
|
debounceMs?: number;
|
|
@@ -8,7 +10,8 @@ export interface PersistedStoreOptions<T> {
|
|
|
8
10
|
export interface PersistedObservableStore<T> extends ObservableStore<T> {
|
|
9
11
|
nextId: () => string;
|
|
10
12
|
ready: Promise<void>;
|
|
11
|
-
|
|
13
|
+
clearPersisted: () => void;
|
|
14
|
+
dispose: () => void;
|
|
12
15
|
}
|
|
13
16
|
export declare function createPersistedObservableStore<T extends {
|
|
14
17
|
id?: string;
|