react-native-inapp-inspector 2.2.3 → 2.2.5
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/components/AnalyticsDetail.js +5 -1
- package/dist/commonjs/components/AnalyticsEventCard.js +2 -1
- package/dist/commonjs/components/BrandSquareIcon.js +51 -117
- package/dist/commonjs/components/DiffViewer.js +1 -1
- package/dist/commonjs/components/Inspector/BundleTab.js +22 -0
- package/dist/commonjs/components/Inspector/DeviceInfoTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +835 -0
- package/dist/commonjs/components/Inspector/InspectorHeader.js +12 -14
- package/dist/commonjs/components/Inspector/LogDetail.js +6 -3
- package/dist/commonjs/components/Inspector/MainScreen.js +7 -3
- package/dist/commonjs/components/Inspector/NetworkTab.js +92 -15
- package/dist/commonjs/components/Inspector/PerformanceTab.js +38 -12
- package/dist/commonjs/components/Inspector/SettingsPanel.js +440 -229
- package/dist/commonjs/components/Inspector/StorageTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/StorageTab.js +892 -0
- package/dist/commonjs/components/Inspector/TabBar.js +14 -0
- package/dist/commonjs/components/Inspector/TelemetryConsentModal.js +12 -18
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +4 -1
- package/dist/commonjs/components/NetworkIcons.d.ts +6 -0
- package/dist/commonjs/components/NetworkIcons.js +30 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/bundleAnalyzer.js +44 -22
- package/dist/commonjs/customHooks/storageInspector.d.ts +67 -0
- package/dist/commonjs/customHooks/storageInspector.js +486 -0
- package/dist/commonjs/i18n/locales/en.json +8 -2
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.js +16 -1
- package/dist/commonjs/native/NativeInspector.js +50 -26
- package/dist/commonjs/storage.d.ts +5 -0
- package/dist/commonjs/storage.js +18 -0
- package/dist/commonjs/types/enums.d.ts +5 -0
- package/dist/commonjs/types/enums.js +5 -0
- package/dist/esm/components/AnalyticsDetail.js +6 -2
- package/dist/esm/components/AnalyticsEventCard.js +2 -1
- package/dist/esm/components/BrandSquareIcon.js +52 -118
- package/dist/esm/components/DiffViewer.js +1 -1
- package/dist/esm/components/Inspector/BundleTab.js +22 -0
- package/dist/esm/components/Inspector/DeviceInfoTab.d.ts +3 -0
- package/dist/esm/components/Inspector/DeviceInfoTab.js +796 -0
- package/dist/esm/components/Inspector/InspectorHeader.js +13 -15
- package/dist/esm/components/Inspector/LogDetail.js +7 -4
- package/dist/esm/components/Inspector/MainScreen.js +7 -3
- package/dist/esm/components/Inspector/NetworkTab.js +93 -16
- package/dist/esm/components/Inspector/PerformanceTab.js +39 -13
- package/dist/esm/components/Inspector/SettingsPanel.js +441 -230
- package/dist/esm/components/Inspector/StorageTab.d.ts +3 -0
- package/dist/esm/components/Inspector/StorageTab.js +853 -0
- package/dist/esm/components/Inspector/TabBar.js +15 -1
- package/dist/esm/components/Inspector/TelemetryConsentModal.js +12 -18
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +4 -1
- package/dist/esm/components/NetworkIcons.d.ts +6 -0
- package/dist/esm/components/NetworkIcons.js +23 -0
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/bundleAnalyzer.js +44 -22
- package/dist/esm/customHooks/storageInspector.d.ts +67 -0
- package/dist/esm/customHooks/storageInspector.js +469 -0
- package/dist/esm/i18n/locales/en.json +8 -2
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/native/NativeInspector.js +51 -27
- package/dist/esm/storage.d.ts +5 -0
- package/dist/esm/storage.js +5 -0
- package/dist/esm/types/enums.d.ts +5 -0
- package/dist/esm/types/enums.js +5 -0
- package/ios/NetworkInspectorModule.mm +34 -19
- package/package.json +8 -1
- package/src/components/AnalyticsDetail.tsx +6 -1
- package/src/components/AnalyticsEventCard.tsx +2 -1
- package/src/components/BrandSquareIcon.tsx +109 -118
- package/src/components/DiffViewer.tsx +1 -1
- package/src/components/Inspector/BundleTab.tsx +29 -0
- package/src/components/Inspector/DeviceInfoTab.tsx +1204 -0
- package/src/components/Inspector/InspectorHeader.tsx +13 -14
- package/src/components/Inspector/LogDetail.tsx +15 -11
- package/src/components/Inspector/MainScreen.tsx +7 -3
- package/src/components/Inspector/NetworkTab.tsx +104 -16
- package/src/components/Inspector/PerformanceTab.tsx +46 -12
- package/src/components/Inspector/SettingsPanel.tsx +570 -304
- package/src/components/Inspector/StorageTab.tsx +1048 -0
- package/src/components/Inspector/TabBar.tsx +20 -0
- package/src/components/Inspector/TelemetryConsentModal.tsx +17 -52
- package/src/components/Inspector/UpdateAvailableModal.tsx +13 -1
- package/src/components/NetworkIcons.tsx +103 -0
- package/src/constants/version.ts +1 -1
- package/src/customHooks/bundleAnalyzer.ts +47 -22
- package/src/customHooks/storageInspector.ts +509 -0
- package/src/i18n/locales/en.json +8 -2
- package/src/index.tsx +21 -1
- package/src/native/NativeInspector.ts +56 -24
- package/src/storage.ts +18 -0
- package/src/types/enums.ts +5 -0
package/src/storage.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sub-module entry point: react-native-inapp-inspector/storage
|
|
3
|
+
* Universal AsyncStorage and MMKV live inspector with full CRUD operations.
|
|
4
|
+
*/
|
|
5
|
+
export {
|
|
6
|
+
connectAsyncStorage,
|
|
7
|
+
connectMMKV,
|
|
8
|
+
isAsyncStorageConnected,
|
|
9
|
+
isMMKVConnected,
|
|
10
|
+
getRegisteredMMKVInstanceIds,
|
|
11
|
+
fetchStorageEntries,
|
|
12
|
+
setStorageEntry,
|
|
13
|
+
removeStorageEntry,
|
|
14
|
+
clearStorageDriver,
|
|
15
|
+
subscribeToStorageChanges,
|
|
16
|
+
type StorageEntry,
|
|
17
|
+
type StorageDriver,
|
|
18
|
+
} from './customHooks/storageInspector';
|
package/src/types/enums.ts
CHANGED
|
@@ -10,6 +10,8 @@ export const ActiveTab = {
|
|
|
10
10
|
Bundle: 'bundle',
|
|
11
11
|
Performance: 'performance',
|
|
12
12
|
Crash: 'crash',
|
|
13
|
+
Device: 'device',
|
|
14
|
+
Storage: 'storage',
|
|
13
15
|
} as const;
|
|
14
16
|
export type ActiveTab = (typeof ActiveTab)[keyof typeof ActiveTab];
|
|
15
17
|
|
|
@@ -63,6 +65,8 @@ export const SettingsPage = {
|
|
|
63
65
|
Bundle: 'bundle',
|
|
64
66
|
Performance: 'performance',
|
|
65
67
|
Crash: 'crash',
|
|
68
|
+
Device: 'device',
|
|
69
|
+
Storage: 'storage',
|
|
66
70
|
} as const;
|
|
67
71
|
export type SettingsPage =
|
|
68
72
|
| (typeof SettingsPage)[keyof typeof SettingsPage]
|
|
@@ -71,6 +75,7 @@ export type SettingsPage =
|
|
|
71
75
|
export const SettingsSubTab = {
|
|
72
76
|
Module: 'module',
|
|
73
77
|
Ui: 'ui',
|
|
78
|
+
Limits: 'limits',
|
|
74
79
|
} as const;
|
|
75
80
|
export type SettingsSubTab =
|
|
76
81
|
(typeof SettingsSubTab)[keyof typeof SettingsSubTab];
|