react-native-inapp-inspector 2.3.5 → 2.3.6
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/dist/commonjs/analytics.d.ts +0 -4
- package/dist/commonjs/analytics.js +0 -4
- package/dist/commonjs/bundle.d.ts +0 -4
- package/dist/commonjs/bundle.js +0 -4
- package/dist/commonjs/components/AnalyticsDetail.js +18 -27
- package/dist/commonjs/components/AnalyticsEventCard.js +9 -12
- package/dist/commonjs/components/AnalyticsGraph.js +10 -15
- package/dist/commonjs/components/AppHeaderLogo.js +0 -3
- package/dist/commonjs/components/BrandCircleIcon.js +15 -15
- package/dist/commonjs/components/BrandSquareIcon.js +20 -20
- package/dist/commonjs/components/CodeSnippet.js +6 -19
- package/dist/commonjs/components/ConsoleLogCard.js +0 -1
- package/dist/commonjs/components/CopyButton.js +0 -4
- package/dist/commonjs/components/DiffViewer.js +0 -2
- package/dist/commonjs/components/DomainHeader.js +0 -4
- package/dist/commonjs/components/EmptyState.js +0 -3
- package/dist/commonjs/components/ErrorBoundary.js +5 -10
- package/dist/commonjs/components/HeadersSection.js +0 -5
- package/dist/commonjs/components/HighlightText.js +1 -4
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +11 -26
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +34 -40
- package/dist/commonjs/components/Inspector/BundleTab.js +56 -84
- package/dist/commonjs/components/Inspector/ConsoleTab.js +7 -7
- package/dist/commonjs/components/Inspector/CrashDetail.js +18 -20
- package/dist/commonjs/components/Inspector/CrashFilterModal.js +0 -1
- package/dist/commonjs/components/Inspector/CrashTab.js +11 -20
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +12 -24
- package/dist/commonjs/components/Inspector/FabLauncher.js +1 -1
- package/dist/commonjs/components/Inspector/InspectorContext.js +0 -2
- package/dist/commonjs/components/Inspector/InspectorHeader.js +7 -8
- package/dist/commonjs/components/Inspector/LogDetail.js +27 -29
- package/dist/commonjs/components/Inspector/MainScreen.js +9 -10
- package/dist/commonjs/components/Inspector/NetworkDetail.js +10 -11
- package/dist/commonjs/components/Inspector/NetworkTab.js +14 -14
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +6 -9
- package/dist/commonjs/components/Inspector/PerformanceTab.js +30 -43
- package/dist/commonjs/components/Inspector/ReduxDetail.js +18 -34
- package/dist/commonjs/components/Inspector/ReduxTab.js +11 -20
- package/dist/commonjs/components/Inspector/SettingsPanel.js +32 -36
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +6 -6
- package/dist/commonjs/components/Inspector/StorageTab.js +14 -26
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +5 -6
- package/dist/commonjs/components/JsonViewer.js +3 -10
- package/dist/commonjs/components/LogCard.js +7 -7
- package/dist/commonjs/components/MetaAccordion.js +1 -7
- package/dist/commonjs/components/NetworkIcons.js +12 -16
- package/dist/commonjs/components/SectionHeader.js +0 -4
- package/dist/commonjs/components/SkeletonPlaceholder.js +6 -6
- package/dist/commonjs/components/Slider.js +6 -6
- package/dist/commonjs/components/SourcePageCard.js +0 -4
- package/dist/commonjs/components/TreeNode.js +0 -4
- package/dist/commonjs/console.d.ts +0 -4
- package/dist/commonjs/console.js +0 -4
- package/dist/commonjs/constants/index.js +6 -9
- package/dist/commonjs/constants/telemetryConfig.d.ts +7 -0
- package/dist/commonjs/constants/telemetryConfig.js +10 -0
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -3
- package/dist/commonjs/crash.d.ts +0 -4
- package/dist/commonjs/crash.js +0 -4
- package/dist/commonjs/customHooks/analyticsLogger.d.ts +0 -7
- package/dist/commonjs/customHooks/analyticsLogger.js +3 -59
- package/dist/commonjs/customHooks/bundleAnalyzer.d.ts +0 -9
- package/dist/commonjs/customHooks/bundleAnalyzer.js +3 -86
- package/dist/commonjs/customHooks/consoleLogger.js +0 -16
- package/dist/commonjs/customHooks/crashHandler.d.ts +0 -28
- package/dist/commonjs/customHooks/crashHandler.js +0 -55
- package/dist/commonjs/customHooks/logFilters.d.ts +0 -4
- package/dist/commonjs/customHooks/logFilters.js +0 -11
- package/dist/commonjs/customHooks/networkLogger.js +2 -13
- package/dist/commonjs/customHooks/performanceTracker.d.ts +0 -27
- package/dist/commonjs/customHooks/performanceTracker.js +0 -31
- package/dist/commonjs/customHooks/reduxLogger.d.ts +0 -12
- package/dist/commonjs/customHooks/reduxLogger.js +0 -51
- package/dist/commonjs/customHooks/storageInspector.d.ts +0 -40
- package/dist/commonjs/customHooks/storageInspector.js +1 -56
- package/dist/commonjs/decorators/index.d.ts +0 -37
- package/dist/commonjs/decorators/index.js +0 -42
- package/dist/commonjs/helpers/gaAnalyticsRegistry.d.ts +0 -10
- package/dist/commonjs/helpers/gaAnalyticsRegistry.js +0 -26
- package/dist/commonjs/helpers/index.d.ts +0 -7
- package/dist/commonjs/helpers/index.js +1 -42
- package/dist/commonjs/helpers/memoryManager.d.ts +0 -11
- package/dist/commonjs/helpers/memoryManager.js +0 -13
- package/dist/commonjs/helpers/searchQueryParser.d.ts +0 -4
- package/dist/commonjs/helpers/searchQueryParser.js +0 -18
- package/dist/commonjs/helpers/settingsStore.js +0 -8
- package/dist/commonjs/helpers/telemetry.d.ts +2 -0
- package/dist/commonjs/helpers/telemetry.js +302 -0
- package/dist/commonjs/i18n/index.d.ts +0 -9
- package/dist/commonjs/i18n/index.js +0 -15
- package/dist/commonjs/index.js +15 -97
- package/dist/commonjs/native/NativeInspector.d.ts +0 -54
- package/dist/commonjs/native/NativeInspector.js +0 -56
- package/dist/commonjs/network.d.ts +0 -4
- package/dist/commonjs/network.js +0 -4
- package/dist/commonjs/performance.d.ts +0 -4
- package/dist/commonjs/performance.js +0 -4
- package/dist/commonjs/redux.d.ts +0 -4
- package/dist/commonjs/redux.js +0 -4
- package/dist/commonjs/storage.d.ts +0 -4
- package/dist/commonjs/storage.js +0 -4
- package/dist/commonjs/styles/AppColors.d.ts +0 -3
- package/dist/commonjs/styles/AppColors.js +15 -30
- package/dist/commonjs/styles/AppFonts.d.ts +0 -4
- package/dist/commonjs/styles/AppFonts.js +0 -4
- package/dist/commonjs/styles/common.js +0 -11
- package/dist/commonjs/styles/index.js +0 -8
- package/dist/commonjs/types/enums.js +0 -3
- package/dist/commonjs/types/interfaces.d.ts +3 -3
- package/dist/esm/analytics.d.ts +0 -4
- package/dist/esm/analytics.js +0 -4
- package/dist/esm/bundle.d.ts +0 -4
- package/dist/esm/bundle.js +0 -4
- package/dist/esm/components/AnalyticsDetail.js +18 -27
- package/dist/esm/components/AnalyticsEventCard.js +9 -12
- package/dist/esm/components/AnalyticsGraph.js +10 -15
- package/dist/esm/components/AppHeaderLogo.js +0 -3
- package/dist/esm/components/BrandCircleIcon.js +15 -15
- package/dist/esm/components/BrandSquareIcon.js +20 -20
- package/dist/esm/components/CodeSnippet.js +6 -19
- package/dist/esm/components/ConsoleLogCard.js +0 -1
- package/dist/esm/components/CopyButton.js +0 -4
- package/dist/esm/components/DiffViewer.js +0 -2
- package/dist/esm/components/DomainHeader.js +0 -4
- package/dist/esm/components/EmptyState.js +0 -3
- package/dist/esm/components/ErrorBoundary.js +5 -10
- package/dist/esm/components/HeadersSection.js +0 -5
- package/dist/esm/components/HighlightText.js +1 -4
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +11 -26
- package/dist/esm/components/Inspector/AnalyticsTab.js +34 -40
- package/dist/esm/components/Inspector/BundleTab.js +56 -84
- package/dist/esm/components/Inspector/ConsoleTab.js +7 -7
- package/dist/esm/components/Inspector/CrashDetail.js +18 -20
- package/dist/esm/components/Inspector/CrashFilterModal.js +0 -1
- package/dist/esm/components/Inspector/CrashTab.js +11 -20
- package/dist/esm/components/Inspector/DeviceInfoTab.js +12 -24
- package/dist/esm/components/Inspector/FabLauncher.js +1 -1
- package/dist/esm/components/Inspector/InspectorContext.js +0 -2
- package/dist/esm/components/Inspector/InspectorHeader.js +7 -8
- package/dist/esm/components/Inspector/LogDetail.js +27 -29
- package/dist/esm/components/Inspector/MainScreen.js +9 -10
- package/dist/esm/components/Inspector/NetworkDetail.js +10 -11
- package/dist/esm/components/Inspector/NetworkTab.js +14 -14
- package/dist/esm/components/Inspector/NpmUpdateToast.js +6 -9
- package/dist/esm/components/Inspector/PerformanceTab.js +30 -43
- package/dist/esm/components/Inspector/ReduxDetail.js +18 -34
- package/dist/esm/components/Inspector/ReduxTab.js +11 -20
- package/dist/esm/components/Inspector/SettingsPanel.js +32 -36
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +6 -6
- package/dist/esm/components/Inspector/StorageTab.js +14 -26
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +5 -6
- package/dist/esm/components/JsonViewer.js +3 -10
- package/dist/esm/components/LogCard.js +7 -7
- package/dist/esm/components/MetaAccordion.js +1 -7
- package/dist/esm/components/NetworkIcons.js +12 -16
- package/dist/esm/components/SectionHeader.js +0 -4
- package/dist/esm/components/SkeletonPlaceholder.js +6 -6
- package/dist/esm/components/Slider.js +6 -6
- package/dist/esm/components/SourcePageCard.js +0 -4
- package/dist/esm/components/TreeNode.js +0 -4
- package/dist/esm/console.d.ts +0 -4
- package/dist/esm/console.js +0 -4
- package/dist/esm/constants/index.js +6 -9
- package/dist/esm/constants/telemetryConfig.d.ts +7 -0
- package/dist/esm/constants/telemetryConfig.js +7 -0
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -3
- package/dist/esm/crash.d.ts +0 -4
- package/dist/esm/crash.js +0 -4
- package/dist/esm/customHooks/analyticsLogger.d.ts +0 -7
- package/dist/esm/customHooks/analyticsLogger.js +3 -59
- package/dist/esm/customHooks/bundleAnalyzer.d.ts +0 -9
- package/dist/esm/customHooks/bundleAnalyzer.js +3 -86
- package/dist/esm/customHooks/consoleLogger.js +0 -16
- package/dist/esm/customHooks/crashHandler.d.ts +0 -28
- package/dist/esm/customHooks/crashHandler.js +0 -55
- package/dist/esm/customHooks/logFilters.d.ts +0 -4
- package/dist/esm/customHooks/logFilters.js +0 -11
- package/dist/esm/customHooks/networkLogger.js +2 -13
- package/dist/esm/customHooks/performanceTracker.d.ts +0 -27
- package/dist/esm/customHooks/performanceTracker.js +0 -31
- package/dist/esm/customHooks/reduxLogger.d.ts +0 -12
- package/dist/esm/customHooks/reduxLogger.js +0 -51
- package/dist/esm/customHooks/storageInspector.d.ts +0 -40
- package/dist/esm/customHooks/storageInspector.js +1 -56
- package/dist/esm/decorators/index.d.ts +0 -37
- package/dist/esm/decorators/index.js +0 -42
- package/dist/esm/helpers/gaAnalyticsRegistry.d.ts +0 -10
- package/dist/esm/helpers/gaAnalyticsRegistry.js +0 -26
- package/dist/esm/helpers/index.d.ts +0 -7
- package/dist/esm/helpers/index.js +1 -42
- package/dist/esm/helpers/memoryManager.d.ts +0 -11
- package/dist/esm/helpers/memoryManager.js +0 -13
- package/dist/esm/helpers/searchQueryParser.d.ts +0 -4
- package/dist/esm/helpers/searchQueryParser.js +0 -18
- package/dist/esm/helpers/settingsStore.js +0 -8
- package/dist/esm/helpers/telemetry.d.ts +2 -0
- package/dist/esm/helpers/telemetry.js +298 -0
- package/dist/esm/i18n/index.d.ts +0 -9
- package/dist/esm/i18n/index.js +0 -15
- package/dist/esm/index.js +15 -97
- package/dist/esm/native/NativeInspector.d.ts +0 -54
- package/dist/esm/native/NativeInspector.js +0 -56
- package/dist/esm/network.d.ts +0 -4
- package/dist/esm/network.js +0 -4
- package/dist/esm/performance.d.ts +0 -4
- package/dist/esm/performance.js +0 -4
- package/dist/esm/redux.d.ts +0 -4
- package/dist/esm/redux.js +0 -4
- package/dist/esm/storage.d.ts +0 -4
- package/dist/esm/storage.js +0 -4
- package/dist/esm/styles/AppColors.d.ts +0 -3
- package/dist/esm/styles/AppColors.js +15 -30
- package/dist/esm/styles/AppFonts.d.ts +0 -4
- package/dist/esm/styles/AppFonts.js +0 -4
- package/dist/esm/styles/common.js +0 -11
- package/dist/esm/styles/index.js +0 -8
- package/dist/esm/types/enums.js +0 -3
- package/dist/esm/types/interfaces.d.ts +3 -3
- package/package.json +2 -2
- package/src/constants/telemetryConfig.ts +16 -0
- package/src/constants/version.ts +1 -1
- package/src/helpers/telemetry.ts +341 -0
- package/src/index.tsx +15 -1
- package/src/types/interfaces.ts +3 -0
|
@@ -32,75 +32,31 @@ export interface NativeCrashEvent {
|
|
|
32
32
|
timestamp: number;
|
|
33
33
|
}
|
|
34
34
|
export declare const isNativeModuleAvailable: () => boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Retrieves low-level native hardware and system metrics (RAM, Heap, Disk, Battery, CPU).
|
|
37
|
-
*/
|
|
38
35
|
export declare const getNativeDeviceMetrics: () => Promise<NativeDeviceMetrics | null>;
|
|
39
|
-
/**
|
|
40
|
-
* Enables native signal and uncaught exception protection in the iOS / Android runtime.
|
|
41
|
-
* Automatically ensures the native floating icon is shown and available before UI renders.
|
|
42
|
-
*/
|
|
43
36
|
export declare const enableNativeCrashProtection: (options?: {
|
|
44
37
|
showFloatingButton?: boolean;
|
|
45
38
|
}) => Promise<boolean>;
|
|
46
|
-
/**
|
|
47
|
-
* Subscribes to fatal native crash events caught by the iOS / Kotlin exception handlers.
|
|
48
|
-
*/
|
|
49
39
|
export declare const subscribeNativeCrashes: (callback: (event: NativeCrashEvent) => void) => (() => void);
|
|
50
40
|
export interface FloatingButtonOptions {
|
|
51
41
|
size?: number;
|
|
52
42
|
x?: number;
|
|
53
43
|
y?: number;
|
|
54
44
|
}
|
|
55
|
-
/**
|
|
56
|
-
* Displays the 100% native main-thread floating overlay button.
|
|
57
|
-
* Dragging & touches run on the native UI thread, completely isolated from JS thread stalls.
|
|
58
|
-
*/
|
|
59
45
|
export declare const showNativeFloatingButton: (options?: FloatingButtonOptions) => Promise<boolean>;
|
|
60
|
-
/**
|
|
61
|
-
* Hides the native floating overlay button.
|
|
62
|
-
*/
|
|
63
46
|
export declare const hideNativeFloatingButton: () => Promise<boolean>;
|
|
64
|
-
/**
|
|
65
|
-
* Updates the badge/status dot on the native floating overlay button.
|
|
66
|
-
*/
|
|
67
47
|
export declare const setNativeFloatingButtonBadge: (hasBadge: boolean) => Promise<boolean>;
|
|
68
|
-
/**
|
|
69
|
-
* Subscribes to tap events on the native floating button.
|
|
70
|
-
*/
|
|
71
48
|
export declare const subscribeNativeFloatingButtonPress: (callback: () => void) => (() => void);
|
|
72
|
-
/**
|
|
73
|
-
* Starts hardware-accurate native UI thread FPS tracking (CADisplayLink / Choreographer).
|
|
74
|
-
*/
|
|
75
49
|
export declare const startNativeFpsMonitoring: () => Promise<boolean>;
|
|
76
|
-
/**
|
|
77
|
-
* Stops native FPS tracking.
|
|
78
|
-
*/
|
|
79
50
|
export declare const stopNativeFpsMonitoring: () => Promise<boolean>;
|
|
80
51
|
export interface NativeFpsMetrics {
|
|
81
52
|
fps: number;
|
|
82
53
|
targetFps: number;
|
|
83
54
|
}
|
|
84
|
-
/**
|
|
85
|
-
* Reads the latest live hardware FPS from CADisplayLink (iOS) or Choreographer (Android).
|
|
86
|
-
*/
|
|
87
55
|
export declare const getNativeFpsMetrics: () => Promise<NativeFpsMetrics>;
|
|
88
|
-
/**
|
|
89
|
-
* Subscribes to physical hardware shake events (or Cmd+Ctrl+Z on iOS simulator).
|
|
90
|
-
*/
|
|
91
56
|
export declare const subscribeNativeDeviceShake: (callback: () => void) => (() => void);
|
|
92
|
-
/**
|
|
93
|
-
* Reads a persisted value synchronously from native NSUserDefaults / SharedPreferences.
|
|
94
|
-
*/
|
|
95
57
|
export declare const getNativeStorageItem: (key: string) => Promise<string | null>;
|
|
96
|
-
/**
|
|
97
|
-
* Persists a key-value pair to native NSUserDefaults / SharedPreferences with 0ms latency.
|
|
98
|
-
*/
|
|
99
58
|
export declare const setNativeStorageItem: (key: string, value: string | null) => Promise<boolean>;
|
|
100
59
|
export type HapticStyle = 'light' | 'medium' | 'heavy' | 'success' | 'warning' | 'error';
|
|
101
|
-
/**
|
|
102
|
-
* Triggers hardware native haptic feedback (iOS UIFeedbackGenerator / Android VibrationEffect).
|
|
103
|
-
*/
|
|
104
60
|
export declare const triggerNativeHaptic: (style?: HapticStyle) => Promise<boolean>;
|
|
105
61
|
export interface NativeSystemMetrics {
|
|
106
62
|
thermalState: 'nominal' | 'fair' | 'serious' | 'critical';
|
|
@@ -109,13 +65,7 @@ export interface NativeSystemMetrics {
|
|
|
109
65
|
fps: number;
|
|
110
66
|
activeCpuCores: number;
|
|
111
67
|
}
|
|
112
|
-
/**
|
|
113
|
-
* Retrieves live system thermal state and RAM telemetry directly from native layer.
|
|
114
|
-
*/
|
|
115
68
|
export declare const getNativeSystemMetrics: () => Promise<NativeSystemMetrics | null>;
|
|
116
|
-
/**
|
|
117
|
-
* Pushes a log payload to native background worker queues for instant native page caching.
|
|
118
|
-
*/
|
|
119
69
|
export declare const pushNativeLogRecord: (pageKey: "apis" | "logs" | "analytics" | "crash", jsonPayload: string) => Promise<boolean>;
|
|
120
70
|
export interface NativeCachedPageResult<T = any> {
|
|
121
71
|
pageKey: string;
|
|
@@ -123,8 +73,4 @@ export interface NativeCachedPageResult<T = any> {
|
|
|
123
73
|
offset: number;
|
|
124
74
|
items: T[];
|
|
125
75
|
}
|
|
126
|
-
/**
|
|
127
|
-
* Fetches pre-indexed, pre-sliced page data directly from native background memory queues.
|
|
128
|
-
* Delivers instantaneous 0ms page loading without blocking JS render thread.
|
|
129
|
-
*/
|
|
130
76
|
export declare const fetchNativeCachedPage: <T = any>(pageKey: "apis" | "logs" | "analytics" | "crash", offset?: number, limit?: number, query?: string) => Promise<NativeCachedPageResult<T> | null>;
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.fetchNativeCachedPage = exports.pushNativeLogRecord = exports.getNativeSystemMetrics = exports.triggerNativeHaptic = exports.setNativeStorageItem = exports.getNativeStorageItem = exports.subscribeNativeDeviceShake = exports.getNativeFpsMetrics = exports.stopNativeFpsMonitoring = exports.startNativeFpsMonitoring = exports.subscribeNativeFloatingButtonPress = exports.setNativeFloatingButtonBadge = exports.hideNativeFloatingButton = exports.showNativeFloatingButton = exports.subscribeNativeCrashes = exports.enableNativeCrashProtection = exports.getNativeDeviceMetrics = exports.isNativeModuleAvailable = void 0;
|
|
7
7
|
const react_native_1 = require("react-native");
|
|
8
8
|
const NativeNetworkInspector_1 = __importDefault(require("./NativeNetworkInspector"));
|
|
9
|
-
// Seamless TurboModule (New Architecture / JSI) & Legacy NativeModules Bridge resolution
|
|
10
9
|
const NativeModule = NativeNetworkInspector_1.default || react_native_1.NativeModules.NetworkInspectorModule;
|
|
11
10
|
const isNativeModuleAvailable = () => {
|
|
12
11
|
return !!NativeModule;
|
|
@@ -22,9 +21,6 @@ const getNativeEmitter = () => {
|
|
|
22
21
|
return null;
|
|
23
22
|
};
|
|
24
23
|
const nativeEmitter = getNativeEmitter();
|
|
25
|
-
/**
|
|
26
|
-
* Retrieves low-level native hardware and system metrics (RAM, Heap, Disk, Battery, CPU).
|
|
27
|
-
*/
|
|
28
24
|
const getNativeDeviceMetrics = async () => {
|
|
29
25
|
if (!NativeModule || !NativeModule.getDeviceMetrics) {
|
|
30
26
|
return null;
|
|
@@ -38,10 +34,6 @@ const getNativeDeviceMetrics = async () => {
|
|
|
38
34
|
}
|
|
39
35
|
};
|
|
40
36
|
exports.getNativeDeviceMetrics = getNativeDeviceMetrics;
|
|
41
|
-
/**
|
|
42
|
-
* Enables native signal and uncaught exception protection in the iOS / Android runtime.
|
|
43
|
-
* Automatically ensures the native floating icon is shown and available before UI renders.
|
|
44
|
-
*/
|
|
45
37
|
const enableNativeCrashProtection = async (options) => {
|
|
46
38
|
if (!NativeModule || !NativeModule.enableNativeCrashProtection) {
|
|
47
39
|
return false;
|
|
@@ -58,9 +50,6 @@ const enableNativeCrashProtection = async (options) => {
|
|
|
58
50
|
}
|
|
59
51
|
};
|
|
60
52
|
exports.enableNativeCrashProtection = enableNativeCrashProtection;
|
|
61
|
-
/**
|
|
62
|
-
* Subscribes to fatal native crash events caught by the iOS / Kotlin exception handlers.
|
|
63
|
-
*/
|
|
64
53
|
const subscribeNativeCrashes = (callback) => {
|
|
65
54
|
const cleanups = [];
|
|
66
55
|
try {
|
|
@@ -85,10 +74,6 @@ const subscribeNativeCrashes = (callback) => {
|
|
|
85
74
|
};
|
|
86
75
|
};
|
|
87
76
|
exports.subscribeNativeCrashes = subscribeNativeCrashes;
|
|
88
|
-
/**
|
|
89
|
-
* Displays the 100% native main-thread floating overlay button.
|
|
90
|
-
* Dragging & touches run on the native UI thread, completely isolated from JS thread stalls.
|
|
91
|
-
*/
|
|
92
77
|
const showNativeFloatingButton = async (options) => {
|
|
93
78
|
if (!NativeModule || !NativeModule.showFloatingButton) {
|
|
94
79
|
return false;
|
|
@@ -102,9 +87,6 @@ const showNativeFloatingButton = async (options) => {
|
|
|
102
87
|
}
|
|
103
88
|
};
|
|
104
89
|
exports.showNativeFloatingButton = showNativeFloatingButton;
|
|
105
|
-
/**
|
|
106
|
-
* Hides the native floating overlay button.
|
|
107
|
-
*/
|
|
108
90
|
const hideNativeFloatingButton = async () => {
|
|
109
91
|
if (!NativeModule || !NativeModule.hideFloatingButton) {
|
|
110
92
|
return false;
|
|
@@ -118,9 +100,6 @@ const hideNativeFloatingButton = async () => {
|
|
|
118
100
|
}
|
|
119
101
|
};
|
|
120
102
|
exports.hideNativeFloatingButton = hideNativeFloatingButton;
|
|
121
|
-
/**
|
|
122
|
-
* Updates the badge/status dot on the native floating overlay button.
|
|
123
|
-
*/
|
|
124
103
|
const setNativeFloatingButtonBadge = async (hasBadge) => {
|
|
125
104
|
if (!NativeModule || !NativeModule.setFloatingButtonBadge) {
|
|
126
105
|
return false;
|
|
@@ -134,9 +113,6 @@ const setNativeFloatingButtonBadge = async (hasBadge) => {
|
|
|
134
113
|
}
|
|
135
114
|
};
|
|
136
115
|
exports.setNativeFloatingButtonBadge = setNativeFloatingButtonBadge;
|
|
137
|
-
/**
|
|
138
|
-
* Subscribes to tap events on the native floating button.
|
|
139
|
-
*/
|
|
140
116
|
const subscribeNativeFloatingButtonPress = (callback) => {
|
|
141
117
|
const cleanups = [];
|
|
142
118
|
try {
|
|
@@ -151,7 +127,6 @@ const subscribeNativeFloatingButtonPress = (callback) => {
|
|
|
151
127
|
}
|
|
152
128
|
catch (e) { }
|
|
153
129
|
}
|
|
154
|
-
// Active Bridgeless / TurboModule tap detection
|
|
155
130
|
const interval = setInterval(async () => {
|
|
156
131
|
if (NativeModule && NativeModule.checkFloatingButtonPress) {
|
|
157
132
|
try {
|
|
@@ -174,9 +149,6 @@ const subscribeNativeFloatingButtonPress = (callback) => {
|
|
|
174
149
|
};
|
|
175
150
|
};
|
|
176
151
|
exports.subscribeNativeFloatingButtonPress = subscribeNativeFloatingButtonPress;
|
|
177
|
-
/**
|
|
178
|
-
* Starts hardware-accurate native UI thread FPS tracking (CADisplayLink / Choreographer).
|
|
179
|
-
*/
|
|
180
152
|
const startNativeFpsMonitoring = async () => {
|
|
181
153
|
if (!NativeModule || !NativeModule.startFpsMonitoring) {
|
|
182
154
|
return false;
|
|
@@ -190,9 +162,6 @@ const startNativeFpsMonitoring = async () => {
|
|
|
190
162
|
}
|
|
191
163
|
};
|
|
192
164
|
exports.startNativeFpsMonitoring = startNativeFpsMonitoring;
|
|
193
|
-
/**
|
|
194
|
-
* Stops native FPS tracking.
|
|
195
|
-
*/
|
|
196
165
|
const stopNativeFpsMonitoring = async () => {
|
|
197
166
|
if (!NativeModule || !NativeModule.stopFpsMonitoring) {
|
|
198
167
|
return false;
|
|
@@ -206,9 +175,6 @@ const stopNativeFpsMonitoring = async () => {
|
|
|
206
175
|
}
|
|
207
176
|
};
|
|
208
177
|
exports.stopNativeFpsMonitoring = stopNativeFpsMonitoring;
|
|
209
|
-
/**
|
|
210
|
-
* Reads the latest live hardware FPS from CADisplayLink (iOS) or Choreographer (Android).
|
|
211
|
-
*/
|
|
212
178
|
const getNativeFpsMetrics = async () => {
|
|
213
179
|
if (!NativeModule || !NativeModule.getFpsMetrics) {
|
|
214
180
|
return { fps: 60, targetFps: 60 };
|
|
@@ -225,9 +191,6 @@ const getNativeFpsMetrics = async () => {
|
|
|
225
191
|
}
|
|
226
192
|
};
|
|
227
193
|
exports.getNativeFpsMetrics = getNativeFpsMetrics;
|
|
228
|
-
/**
|
|
229
|
-
* Subscribes to physical hardware shake events (or Cmd+Ctrl+Z on iOS simulator).
|
|
230
|
-
*/
|
|
231
194
|
const subscribeNativeDeviceShake = (callback) => {
|
|
232
195
|
if (!nativeEmitter) {
|
|
233
196
|
return () => { };
|
|
@@ -243,9 +206,6 @@ const subscribeNativeDeviceShake = (callback) => {
|
|
|
243
206
|
}
|
|
244
207
|
};
|
|
245
208
|
exports.subscribeNativeDeviceShake = subscribeNativeDeviceShake;
|
|
246
|
-
/**
|
|
247
|
-
* Reads a persisted value synchronously from native NSUserDefaults / SharedPreferences.
|
|
248
|
-
*/
|
|
249
209
|
const getNativeStorageItem = async (key) => {
|
|
250
210
|
if (!NativeModule || !NativeModule.getNativeStorageItem) {
|
|
251
211
|
return null;
|
|
@@ -259,9 +219,6 @@ const getNativeStorageItem = async (key) => {
|
|
|
259
219
|
}
|
|
260
220
|
};
|
|
261
221
|
exports.getNativeStorageItem = getNativeStorageItem;
|
|
262
|
-
/**
|
|
263
|
-
* Persists a key-value pair to native NSUserDefaults / SharedPreferences with 0ms latency.
|
|
264
|
-
*/
|
|
265
222
|
const setNativeStorageItem = async (key, value) => {
|
|
266
223
|
if (!NativeModule || !NativeModule.setNativeStorageItem) {
|
|
267
224
|
return false;
|
|
@@ -275,9 +232,6 @@ const setNativeStorageItem = async (key, value) => {
|
|
|
275
232
|
}
|
|
276
233
|
};
|
|
277
234
|
exports.setNativeStorageItem = setNativeStorageItem;
|
|
278
|
-
/**
|
|
279
|
-
* Triggers hardware native haptic feedback (iOS UIFeedbackGenerator / Android VibrationEffect).
|
|
280
|
-
*/
|
|
281
235
|
const triggerNativeHaptic = async (style = 'light') => {
|
|
282
236
|
if (!NativeModule || !NativeModule.triggerHaptic) {
|
|
283
237
|
return false;
|
|
@@ -291,9 +245,6 @@ const triggerNativeHaptic = async (style = 'light') => {
|
|
|
291
245
|
}
|
|
292
246
|
};
|
|
293
247
|
exports.triggerNativeHaptic = triggerNativeHaptic;
|
|
294
|
-
/**
|
|
295
|
-
* Retrieves live system thermal state and RAM telemetry directly from native layer.
|
|
296
|
-
*/
|
|
297
248
|
const getNativeSystemMetrics = async () => {
|
|
298
249
|
if (!NativeModule || !NativeModule.getNativeSystemMetrics) {
|
|
299
250
|
return null;
|
|
@@ -307,9 +258,6 @@ const getNativeSystemMetrics = async () => {
|
|
|
307
258
|
}
|
|
308
259
|
};
|
|
309
260
|
exports.getNativeSystemMetrics = getNativeSystemMetrics;
|
|
310
|
-
/**
|
|
311
|
-
* Pushes a log payload to native background worker queues for instant native page caching.
|
|
312
|
-
*/
|
|
313
261
|
const pushNativeLogRecord = async (pageKey, jsonPayload) => {
|
|
314
262
|
if (!NativeModule || !NativeModule.pushNativeLogRecord) {
|
|
315
263
|
return false;
|
|
@@ -323,10 +271,6 @@ const pushNativeLogRecord = async (pageKey, jsonPayload) => {
|
|
|
323
271
|
}
|
|
324
272
|
};
|
|
325
273
|
exports.pushNativeLogRecord = pushNativeLogRecord;
|
|
326
|
-
/**
|
|
327
|
-
* Fetches pre-indexed, pre-sliced page data directly from native background memory queues.
|
|
328
|
-
* Delivers instantaneous 0ms page loading without blocking JS render thread.
|
|
329
|
-
*/
|
|
330
274
|
const fetchNativeCachedPage = async (pageKey, offset = 0, limit = 50, query = '') => {
|
|
331
275
|
if (!NativeModule || !NativeModule.getNativeCachedPage) {
|
|
332
276
|
return null;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sub-module entry point: react-native-inapp-inspector/network
|
|
3
|
-
* Clean tree-shaking & isolated network logger without UI or React Context dependencies.
|
|
4
|
-
*/
|
|
5
1
|
export { setupNetworkLogger, clearNetworkLogs, subscribeNetworkLogs, getNetworkLogs, setNetworkModuleEnabled, getNetworkModuleEnabled, setMaxNetworkLogsLimit, getMaxNetworkLogsLimit, pruneNetworkLogs, } from './customHooks/networkLogger';
|
|
6
2
|
export type { NetworkLog, Method, StatusFilter, SortOrder, } from './types';
|
package/dist/commonjs/network.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.pruneNetworkLogs = exports.getMaxNetworkLogsLimit = exports.setMaxNetworkLogsLimit = exports.getNetworkModuleEnabled = exports.setNetworkModuleEnabled = exports.getNetworkLogs = exports.subscribeNetworkLogs = exports.clearNetworkLogs = exports.setupNetworkLogger = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Sub-module entry point: react-native-inapp-inspector/network
|
|
6
|
-
* Clean tree-shaking & isolated network logger without UI or React Context dependencies.
|
|
7
|
-
*/
|
|
8
4
|
var networkLogger_1 = require("./customHooks/networkLogger");
|
|
9
5
|
Object.defineProperty(exports, "setupNetworkLogger", { enumerable: true, get: function () { return networkLogger_1.setupNetworkLogger; } });
|
|
10
6
|
Object.defineProperty(exports, "clearNetworkLogs", { enumerable: true, get: function () { return networkLogger_1.clearNetworkLogs; } });
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sub-module entry point: react-native-inapp-inspector/performance
|
|
3
|
-
* Clean tree-shaking & isolated performance tracker and profiler.
|
|
4
|
-
*/
|
|
5
1
|
export { usePerformanceTracker, useComponentProfiler, useNavigationProfiler, trackComponentRender, trackNavigationTransition, trackHeavyTask, measureAsync, getHermesMemoryStats, registerComponentProfile, subscribeRenderProfiles, getRenderProfiles, logPerformanceEvent, clearPerformanceEvents, subscribePerformanceEvents, getPerformanceEvents, getInitialRenderProfiles, getInitialPerformanceEvents, generateFixSnippet, setPerformanceModuleEnabled, getPerformanceModuleEnabled, setMaxPerformanceEventsLimit, getMaxPerformanceEventsLimit, prunePerformanceEvents, type PerformanceEvent, type LiveMemoryStats, type ComponentRenderProfile, type CoreMobileVitals, type PerformanceFixKey, } from './customHooks/performanceTracker';
|
|
6
2
|
export { PerformanceSubTab, } from './types';
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PerformanceSubTab = exports.prunePerformanceEvents = exports.getMaxPerformanceEventsLimit = exports.setMaxPerformanceEventsLimit = exports.getPerformanceModuleEnabled = exports.setPerformanceModuleEnabled = exports.generateFixSnippet = exports.getInitialPerformanceEvents = exports.getInitialRenderProfiles = exports.getPerformanceEvents = exports.subscribePerformanceEvents = exports.clearPerformanceEvents = exports.logPerformanceEvent = exports.getRenderProfiles = exports.subscribeRenderProfiles = exports.registerComponentProfile = exports.getHermesMemoryStats = exports.measureAsync = exports.trackHeavyTask = exports.trackNavigationTransition = exports.trackComponentRender = exports.useNavigationProfiler = exports.useComponentProfiler = exports.usePerformanceTracker = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Sub-module entry point: react-native-inapp-inspector/performance
|
|
6
|
-
* Clean tree-shaking & isolated performance tracker and profiler.
|
|
7
|
-
*/
|
|
8
4
|
var performanceTracker_1 = require("./customHooks/performanceTracker");
|
|
9
5
|
Object.defineProperty(exports, "usePerformanceTracker", { enumerable: true, get: function () { return performanceTracker_1.usePerformanceTracker; } });
|
|
10
6
|
Object.defineProperty(exports, "useComponentProfiler", { enumerable: true, get: function () { return performanceTracker_1.useComponentProfiler; } });
|
package/dist/commonjs/redux.d.ts
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sub-module entry point: react-native-inapp-inspector/redux
|
|
3
|
-
* Clean tree-shaking & isolated Redux middleware and state inspector.
|
|
4
|
-
*/
|
|
5
1
|
export { connectReduxStore, inspectorReduxMiddleware, getReduxState, subscribeReduxState, getActionHistory, clearActionHistory, getLastActionForReducer, clearLastActionForReducer, setReduxAutoRefresh, getReduxAutoRefresh, isReduxConnected, setReduxModuleEnabled, getReduxModuleEnabled, setMaxReduxHistoryLimit, getMaxReduxHistoryLimit, pruneReduxHistory, type ReduxHistoryEntry, } from './customHooks/reduxLogger';
|
package/dist/commonjs/redux.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.pruneReduxHistory = exports.getMaxReduxHistoryLimit = exports.setMaxReduxHistoryLimit = exports.getReduxModuleEnabled = exports.setReduxModuleEnabled = exports.isReduxConnected = exports.getReduxAutoRefresh = exports.setReduxAutoRefresh = exports.clearLastActionForReducer = exports.getLastActionForReducer = exports.clearActionHistory = exports.getActionHistory = exports.subscribeReduxState = exports.getReduxState = exports.inspectorReduxMiddleware = exports.connectReduxStore = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Sub-module entry point: react-native-inapp-inspector/redux
|
|
6
|
-
* Clean tree-shaking & isolated Redux middleware and state inspector.
|
|
7
|
-
*/
|
|
8
4
|
var reduxLogger_1 = require("./customHooks/reduxLogger");
|
|
9
5
|
Object.defineProperty(exports, "connectReduxStore", { enumerable: true, get: function () { return reduxLogger_1.connectReduxStore; } });
|
|
10
6
|
Object.defineProperty(exports, "inspectorReduxMiddleware", { enumerable: true, get: function () { return reduxLogger_1.inspectorReduxMiddleware; } });
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sub-module entry point: react-native-inapp-inspector/storage
|
|
3
|
-
* Universal AsyncStorage and MMKV live inspector with full CRUD operations.
|
|
4
|
-
*/
|
|
5
1
|
export { connectAsyncStorage, connectMMKV, isAsyncStorageConnected, isMMKVConnected, getRegisteredMMKVInstanceIds, fetchStorageEntries, setStorageEntry, removeStorageEntry, clearStorageDriver, subscribeToStorageChanges, type StorageEntry, type StorageDriver, } from './customHooks/storageInspector';
|
package/dist/commonjs/storage.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.subscribeToStorageChanges = exports.clearStorageDriver = exports.removeStorageEntry = exports.setStorageEntry = exports.fetchStorageEntries = exports.getRegisteredMMKVInstanceIds = exports.isMMKVConnected = exports.isAsyncStorageConnected = exports.connectMMKV = exports.connectAsyncStorage = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Sub-module entry point: react-native-inapp-inspector/storage
|
|
6
|
-
* Universal AsyncStorage and MMKV live inspector with full CRUD operations.
|
|
7
|
-
*/
|
|
8
4
|
var storageInspector_1 = require("./customHooks/storageInspector");
|
|
9
5
|
Object.defineProperty(exports, "connectAsyncStorage", { enumerable: true, get: function () { return storageInspector_1.connectAsyncStorage; } });
|
|
10
6
|
Object.defineProperty(exports, "connectMMKV", { enumerable: true, get: function () { return storageInspector_1.connectMMKV; } });
|
|
@@ -344,8 +344,5 @@ export declare const getThemeColors: (isDark: boolean) => {
|
|
|
344
344
|
};
|
|
345
345
|
export declare const AppColors: typeof LightColors;
|
|
346
346
|
export declare const updateAppColorsTheme: (isDark: boolean) => void;
|
|
347
|
-
/**
|
|
348
|
-
* Configure or override specific color tokens used throughout the inspector.
|
|
349
|
-
*/
|
|
350
347
|
export declare const setAppColors: (customColors: Partial<typeof LightColors>) => void;
|
|
351
348
|
export default AppColors;
|
|
@@ -2,39 +2,36 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setAppColors = exports.updateAppColorsTheme = exports.AppColors = exports.getThemeColors = void 0;
|
|
4
4
|
const LightColors = {
|
|
5
|
-
// ─── Core (Thai Airways Royal Palette) ───
|
|
6
5
|
primaryLight: '#FFFFFF',
|
|
7
|
-
purple: '#5C2D91',
|
|
8
|
-
purpleShade50: '#F8F4FC',
|
|
9
|
-
offerPurple: '#9B2677',
|
|
6
|
+
purple: '#5C2D91',
|
|
7
|
+
purpleShade50: '#F8F4FC',
|
|
8
|
+
offerPurple: '#9B2677',
|
|
10
9
|
grayBorderSecondary: '#E2DFEB',
|
|
11
|
-
grayBackground: '#F8F7FB',
|
|
10
|
+
grayBackground: '#F8F7FB',
|
|
12
11
|
grayText: '#625D73',
|
|
13
12
|
grayTextWeak: '#8F8A9E',
|
|
14
13
|
greenColor: '#10B981',
|
|
15
14
|
graySurface: '#E2DFEB',
|
|
16
15
|
skyBlue: '#2563EB',
|
|
17
|
-
primaryBlack: '#211B30',
|
|
16
|
+
primaryBlack: '#211B30',
|
|
18
17
|
grayTextStrong: '#211B30',
|
|
19
18
|
dividerColor: '#EBE7F2',
|
|
20
|
-
warningIconGold: '#C5A059',
|
|
19
|
+
warningIconGold: '#C5A059',
|
|
21
20
|
shadowColorString: '#211B30',
|
|
22
21
|
errorColor: '#E11D48',
|
|
23
|
-
lightOrange: '#E5C158',
|
|
24
|
-
darkOrange: '#B89758',
|
|
22
|
+
lightOrange: '#E5C158',
|
|
23
|
+
darkOrange: '#B89758',
|
|
25
24
|
successGreen: '#10B981',
|
|
26
|
-
purpleShade700: '#481E78',
|
|
25
|
+
purpleShade700: '#481E78',
|
|
27
26
|
greenStatus: '#D1FAE5',
|
|
28
27
|
greenBaggageText: '#059669',
|
|
29
|
-
paleYellow: '#F7E9C4',
|
|
30
|
-
// ─── Brand / UI ───
|
|
28
|
+
paleYellow: '#F7E9C4',
|
|
31
29
|
white: '#FFFFFF',
|
|
32
30
|
black: '#000000',
|
|
33
|
-
brandPurple: '#4B1B7D',
|
|
31
|
+
brandPurple: '#4B1B7D',
|
|
34
32
|
liveGreen: '#10B981',
|
|
35
33
|
firebaseOrange: '#D97706',
|
|
36
34
|
greenA400: '#00E676',
|
|
37
|
-
// ─── Code / Slate ───
|
|
38
35
|
slate900: '#171226',
|
|
39
36
|
slate700: '#332C4A',
|
|
40
37
|
slate600: '#4D446B',
|
|
@@ -47,7 +44,6 @@ const LightColors = {
|
|
|
47
44
|
gray300: '#D5D0E0',
|
|
48
45
|
highlightYellow: '#FDE047',
|
|
49
46
|
yellowHighlight: '#FFE44D',
|
|
50
|
-
// ─── Status / Syntax ───
|
|
51
47
|
teal600: '#0D9488',
|
|
52
48
|
cyan600: '#0891B2',
|
|
53
49
|
sky600: '#0284C7',
|
|
@@ -81,7 +77,6 @@ const LightColors = {
|
|
|
81
77
|
googleRed: '#E53935',
|
|
82
78
|
googlePurple: '#5C2D91',
|
|
83
79
|
googleTeal: '#00897B',
|
|
84
|
-
// ─── NPM / Package / Tailwind Spectrum Helpers ───
|
|
85
80
|
npmRed: '#CB3837',
|
|
86
81
|
npmRedTint: '#CB383714',
|
|
87
82
|
npmRedBorder: '#CB383733',
|
|
@@ -107,7 +102,6 @@ const LightColors = {
|
|
|
107
102
|
yellow500: '#EAB308',
|
|
108
103
|
slate800: '#1E293B',
|
|
109
104
|
slate850: '#0F172A',
|
|
110
|
-
// ─── Bundle / Extended Spectrum ───
|
|
111
105
|
reanimatedNavy: '#001A72',
|
|
112
106
|
expoViolet: '#5A29E4',
|
|
113
107
|
hermesPurple: '#5B44E0',
|
|
@@ -141,7 +135,6 @@ const LightColors = {
|
|
|
141
135
|
gray200: '#E5E7EB',
|
|
142
136
|
gray500: '#6B7280',
|
|
143
137
|
gray600: '#4B5563',
|
|
144
|
-
// ─── Tint Backgrounds / Borders (Theme-Aware) ───
|
|
145
138
|
errorCardBg: '#FFF1F3',
|
|
146
139
|
warnCardBg: '#FDFBF4',
|
|
147
140
|
blueTintBg: '#EFF6FF',
|
|
@@ -164,7 +157,6 @@ const LightColors = {
|
|
|
164
157
|
greyBorder: '#E3DFEC',
|
|
165
158
|
paperBg: '#FBF9FC',
|
|
166
159
|
contentBg: '#F8F7FB',
|
|
167
|
-
// ─── Toast / Glass / Chip Tokens ───
|
|
168
160
|
toastBg: '#0F172AEE',
|
|
169
161
|
toastBorder: '#33415588',
|
|
170
162
|
mintGreenBg: '#ECFDF5',
|
|
@@ -179,7 +171,6 @@ const LightColors = {
|
|
|
179
171
|
skySoftBg: '#E0F2FE',
|
|
180
172
|
skySoftBorder: '#BAE6FD',
|
|
181
173
|
skySoftText: '#0284C7',
|
|
182
|
-
// ─── Domain Colors (Thai Airways Themed) ───
|
|
183
174
|
domainColors: [
|
|
184
175
|
'#5C2D91',
|
|
185
176
|
'#9B2677',
|
|
@@ -194,12 +185,12 @@ const LightColors = {
|
|
|
194
185
|
],
|
|
195
186
|
};
|
|
196
187
|
const DarkColors = {
|
|
197
|
-
primaryLight: '#1C1628',
|
|
198
|
-
purple: '#B68FE8',
|
|
188
|
+
primaryLight: '#1C1628',
|
|
189
|
+
purple: '#B68FE8',
|
|
199
190
|
purpleShade50: '#2A1C3E',
|
|
200
191
|
offerPurple: '#F472B6',
|
|
201
192
|
grayBorderSecondary: '#362C4E',
|
|
202
|
-
grayBackground: '#130F1F',
|
|
193
|
+
grayBackground: '#130F1F',
|
|
203
194
|
grayText: '#A197B8',
|
|
204
195
|
grayTextWeak: '#756C8C',
|
|
205
196
|
greenColor: '#34D399',
|
|
@@ -208,7 +199,7 @@ const DarkColors = {
|
|
|
208
199
|
primaryBlack: '#F7F5FC',
|
|
209
200
|
grayTextStrong: '#F7F5FC',
|
|
210
201
|
dividerColor: '#2B2240',
|
|
211
|
-
warningIconGold: '#E5C158',
|
|
202
|
+
warningIconGold: '#E5C158',
|
|
212
203
|
shadowColorString: '#000000',
|
|
213
204
|
errorColor: '#F87171',
|
|
214
205
|
lightOrange: '#FDE68A',
|
|
@@ -255,7 +246,6 @@ const DarkColors = {
|
|
|
255
246
|
amber700: '#C5A059',
|
|
256
247
|
amber800: '#B89758',
|
|
257
248
|
green500: '#22C55E',
|
|
258
|
-
// ─── Toast / Glass / Chip Tokens (Dark) ───
|
|
259
249
|
toastBg: '#1E293BEE',
|
|
260
250
|
toastBorder: '#47556988',
|
|
261
251
|
mintGreenBg: '#064E3B66',
|
|
@@ -284,7 +274,6 @@ const DarkColors = {
|
|
|
284
274
|
googleRed: '#F87171',
|
|
285
275
|
googlePurple: '#C084FC',
|
|
286
276
|
googleTeal: '#2DD4BF',
|
|
287
|
-
// ─── NPM / Package / Tailwind Spectrum Helpers ───
|
|
288
277
|
npmRed: '#CB3837',
|
|
289
278
|
npmRedTint: '#CB383714',
|
|
290
279
|
npmRedBorder: '#CB383733',
|
|
@@ -310,7 +299,6 @@ const DarkColors = {
|
|
|
310
299
|
yellow500: '#EAB308',
|
|
311
300
|
slate800: '#1E293B',
|
|
312
301
|
slate850: '#0F172A',
|
|
313
|
-
// ─── Bundle / Extended Spectrum ───
|
|
314
302
|
reanimatedNavy: '#6B8CFF',
|
|
315
303
|
expoViolet: '#A78BFA',
|
|
316
304
|
hermesPurple: '#9B8AFF',
|
|
@@ -389,9 +377,6 @@ const updateAppColorsTheme = (isDark) => {
|
|
|
389
377
|
Object.assign(exports.AppColors, (0, exports.getThemeColors)(isDark));
|
|
390
378
|
};
|
|
391
379
|
exports.updateAppColorsTheme = updateAppColorsTheme;
|
|
392
|
-
/**
|
|
393
|
-
* Configure or override specific color tokens used throughout the inspector.
|
|
394
|
-
*/
|
|
395
380
|
const setAppColors = (customColors) => {
|
|
396
381
|
if (!customColors || typeof customColors !== 'object')
|
|
397
382
|
return;
|
|
@@ -10,9 +10,5 @@ export declare const AppFonts: {
|
|
|
10
10
|
interBold: string;
|
|
11
11
|
Sfprotext: string;
|
|
12
12
|
};
|
|
13
|
-
/**
|
|
14
|
-
* Configure or override font families used across all inspector screens.
|
|
15
|
-
* Useful when integrating into apps with custom font setups or system fonts.
|
|
16
|
-
*/
|
|
17
13
|
export declare const setAppFonts: (customFonts: Partial<typeof AppFonts>) => void;
|
|
18
14
|
export default AppFonts;
|
|
@@ -7,10 +7,6 @@ exports.AppFonts = {
|
|
|
7
7
|
interBold: 'Inter-Bold',
|
|
8
8
|
Sfprotext: 'Inter-Regular',
|
|
9
9
|
};
|
|
10
|
-
/**
|
|
11
|
-
* Configure or override font families used across all inspector screens.
|
|
12
|
-
* Useful when integrating into apps with custom font setups or system fonts.
|
|
13
|
-
*/
|
|
14
10
|
const setAppFonts = (customFonts) => {
|
|
15
11
|
if (!customFonts || typeof customFonts !== 'object')
|
|
16
12
|
return;
|
|
@@ -4,13 +4,9 @@ exports.rebuildCommonStyles = void 0;
|
|
|
4
4
|
const react_native_1 = require("react-native");
|
|
5
5
|
const AppFonts_1 = require("./AppFonts");
|
|
6
6
|
const AppColors_1 = require("./AppColors");
|
|
7
|
-
// Shared styles for the Inspector UI (repeated patterns + page-level layout).
|
|
8
|
-
// Built dynamically so dark-mode colors stay in sync with toggleGlobalTheme()
|
|
9
|
-
// (see rebuildCommonStyles wired into styles/index.ts).
|
|
10
7
|
const commonStyles = {};
|
|
11
8
|
const buildCommonStyles = (colors) => {
|
|
12
9
|
const newStyles = react_native_1.StyleSheet.create({
|
|
13
|
-
// ─── Layout ──────────────────────────────────────────────────────────────
|
|
14
10
|
pageContainer: {
|
|
15
11
|
flex: 1,
|
|
16
12
|
backgroundColor: colors.grayBackground,
|
|
@@ -37,7 +33,6 @@ const buildCommonStyles = (colors) => {
|
|
|
37
33
|
justifyContent: 'space-between',
|
|
38
34
|
gap: 8,
|
|
39
35
|
},
|
|
40
|
-
// ─── Cards / rows ────────────────────────────────────────────────────────
|
|
41
36
|
card: {
|
|
42
37
|
backgroundColor: colors.primaryLight,
|
|
43
38
|
borderRadius: 12,
|
|
@@ -73,7 +68,6 @@ const buildCommonStyles = (colors) => {
|
|
|
73
68
|
gap: 8,
|
|
74
69
|
alignItems: 'flex-start',
|
|
75
70
|
},
|
|
76
|
-
// ─── Search bar ──────────────────────────────────────────────────────────
|
|
77
71
|
searchBar: {
|
|
78
72
|
flexDirection: 'row',
|
|
79
73
|
alignItems: 'center',
|
|
@@ -87,7 +81,6 @@ const buildCommonStyles = (colors) => {
|
|
|
87
81
|
borderColor: colors.dividerColor,
|
|
88
82
|
height: 36,
|
|
89
83
|
},
|
|
90
|
-
// ─── Tabs / pills ────────────────────────────────────────────────────────
|
|
91
84
|
tabBarStrip: {
|
|
92
85
|
backgroundColor: colors.primaryLight,
|
|
93
86
|
borderBottomWidth: 1,
|
|
@@ -137,7 +130,6 @@ const buildCommonStyles = (colors) => {
|
|
|
137
130
|
justifyContent: 'center',
|
|
138
131
|
backgroundColor: colors.grayBackground,
|
|
139
132
|
},
|
|
140
|
-
// ─── Header / address bar ────────────────────────────────────────────────
|
|
141
133
|
addressBar: {
|
|
142
134
|
paddingHorizontal: 12,
|
|
143
135
|
paddingTop: 6,
|
|
@@ -167,7 +159,6 @@ const buildCommonStyles = (colors) => {
|
|
|
167
159
|
borderBottomWidth: 1,
|
|
168
160
|
borderBottomColor: colors.dividerColor,
|
|
169
161
|
},
|
|
170
|
-
// ─── Badges / buttons ────────────────────────────────────────────────────
|
|
171
162
|
badgeActive: {
|
|
172
163
|
flexDirection: 'row',
|
|
173
164
|
alignItems: 'center',
|
|
@@ -188,11 +179,9 @@ const buildCommonStyles = (colors) => {
|
|
|
188
179
|
justifyContent: 'center',
|
|
189
180
|
},
|
|
190
181
|
});
|
|
191
|
-
// Clear old keys and copy new ones (keeps the exported object identity).
|
|
192
182
|
Object.keys(commonStyles).forEach(key => delete commonStyles[key]);
|
|
193
183
|
Object.assign(commonStyles, newStyles);
|
|
194
184
|
};
|
|
195
|
-
// Initial build
|
|
196
185
|
buildCommonStyles(AppColors_1.AppColors);
|
|
197
186
|
const rebuildCommonStyles = (colors) => {
|
|
198
187
|
buildCommonStyles(colors);
|
|
@@ -173,7 +173,6 @@ const getRawStyles = (colors) => ({
|
|
|
173
173
|
letterSpacing: 0.2,
|
|
174
174
|
},
|
|
175
175
|
listContent: { paddingBottom: react_native_1.Platform.OS === 'ios' ? 44 : 32 },
|
|
176
|
-
// #2 — scroll-to-top button, always shown at the bottom right.
|
|
177
176
|
scrollTopBtn: {
|
|
178
177
|
position: 'absolute',
|
|
179
178
|
bottom: 22,
|
|
@@ -223,7 +222,6 @@ const getRawStyles = (colors) => ({
|
|
|
223
222
|
borderRadius: 30,
|
|
224
223
|
backgroundColor: `${colors.purple}25`,
|
|
225
224
|
},
|
|
226
|
-
// #4 — circular clipping mask for the FAB shine sweep.
|
|
227
225
|
fabShineClip: {
|
|
228
226
|
position: 'absolute',
|
|
229
227
|
width: 62,
|
|
@@ -231,7 +229,6 @@ const getRawStyles = (colors) => ({
|
|
|
231
229
|
borderRadius: 31,
|
|
232
230
|
overflow: 'hidden',
|
|
233
231
|
},
|
|
234
|
-
// #4 — diagonal light streak that sweeps across the launcher.
|
|
235
232
|
fabShineStreak: {
|
|
236
233
|
position: 'absolute',
|
|
237
234
|
top: -20,
|
|
@@ -1368,7 +1365,6 @@ const getRawStyles = (colors) => ({
|
|
|
1368
1365
|
borderTopRightRadius: 20,
|
|
1369
1366
|
overflow: 'hidden',
|
|
1370
1367
|
},
|
|
1371
|
-
// Status chip used in MetaAccordion
|
|
1372
1368
|
statusChip: {
|
|
1373
1369
|
paddingHorizontal: 10,
|
|
1374
1370
|
paddingVertical: 4,
|
|
@@ -1379,8 +1375,6 @@ const getRawStyles = (colors) => ({
|
|
|
1379
1375
|
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1380
1376
|
fontSize: 12,
|
|
1381
1377
|
},
|
|
1382
|
-
// ─── Tab Bar ───────────────────────────────────────────────────────────────
|
|
1383
|
-
// ─── Screen Grouping Headers ───────────────────────────────────────────────
|
|
1384
1378
|
modalBackdrop: {
|
|
1385
1379
|
flex: 1,
|
|
1386
1380
|
backgroundColor: `${colors.black}73`,
|
|
@@ -1546,11 +1540,9 @@ const styles = {};
|
|
|
1546
1540
|
const rebuildStyles = (isDark) => {
|
|
1547
1541
|
const colors = isDark ? (0, AppColors_1.getThemeColors)(true) : AppColors_1.default;
|
|
1548
1542
|
const newStyles = (0, exports.getRawStyles)(colors);
|
|
1549
|
-
// Clear old keys and copy new ones
|
|
1550
1543
|
Object.keys(styles).forEach(key => delete styles[key]);
|
|
1551
1544
|
Object.assign(styles, newStyles);
|
|
1552
1545
|
};
|
|
1553
|
-
// Initial build
|
|
1554
1546
|
rebuildStyles(false);
|
|
1555
1547
|
const toggleGlobalTheme = (isDark) => {
|
|
1556
1548
|
(0, AppColors_1.updateAppColorsTheme)(isDark);
|