react-native-inapp-inspector 2.4.2 → 2.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/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +523 -2
- package/dist/commonjs/capture.d.ts +2 -0
- package/dist/commonjs/capture.js +1 -1
- package/dist/commonjs/components/AnalyticsDetail.js +23 -23
- package/dist/commonjs/components/AnalyticsEventCard.js +1 -1
- package/dist/commonjs/components/AnalyticsGraph.js +44 -44
- package/dist/commonjs/components/AnimatedBrandOwl.js +32 -32
- package/dist/commonjs/components/AppHeaderLogo.js +6 -6
- package/dist/commonjs/components/BrandCircleIcon.js +28 -28
- package/dist/commonjs/components/BrandSquareIcon.js +33 -33
- package/dist/commonjs/components/ConsoleLogCard.js +1 -1
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +2 -2
- package/dist/commonjs/components/Inspector/ConfirmationModal.js +23 -25
- package/dist/commonjs/components/Inspector/ConsoleTab.js +5 -5
- package/dist/commonjs/components/Inspector/CrashTab.js +44 -11
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +1 -1
- package/dist/commonjs/components/Inspector/FabLauncher.js +30 -25
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.d.ts +3 -0
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +54 -0
- package/dist/commonjs/components/Inspector/GlobalCrashScreenModal.d.ts +11 -0
- package/dist/commonjs/components/Inspector/GlobalCrashScreenModal.js +234 -0
- package/dist/commonjs/components/Inspector/InspectorHeader.js +137 -127
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.d.ts +1 -1
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.js +114 -32
- package/dist/commonjs/components/Inspector/MainScreen.js +26 -19
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +38 -35
- package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +36 -0
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +345 -123
- package/dist/commonjs/components/Inspector/NetworkTab.js +14 -14
- package/dist/commonjs/components/Inspector/PushCard.js +1 -1
- package/dist/commonjs/components/Inspector/PushDetail.js +9 -9
- package/dist/commonjs/components/Inspector/PushTab.js +3 -3
- package/dist/commonjs/components/Inspector/ReduxTab.js +9 -7
- package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.d.ts +2 -0
- package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.js +43 -0
- package/dist/commonjs/components/Inspector/SettingsPanel.js +102 -73
- package/dist/commonjs/components/Inspector/SocketCard.js +1 -1
- package/dist/commonjs/components/Inspector/SocketDetail.js +73 -63
- package/dist/commonjs/components/Inspector/SocketTab.js +4 -4
- package/dist/commonjs/components/Inspector/StorageTab.js +10 -10
- package/dist/commonjs/components/Inspector/SupportModal.js +2 -2
- package/dist/commonjs/components/Inspector/SupportPage.js +1 -1
- package/dist/commonjs/components/JsonViewer.js +47 -45
- package/dist/commonjs/components/LogCard.js +22 -20
- package/dist/commonjs/components/ModuleErrorBoundary.js +5 -5
- package/dist/commonjs/components/NetworkIcons.d.ts +27 -0
- package/dist/commonjs/components/NetworkIcons.js +103 -5
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/crash.d.ts +1 -1
- package/dist/commonjs/crash.js +1 -1
- package/dist/commonjs/customHooks/crashHandler.d.ts +2 -1
- package/dist/commonjs/customHooks/crashHandler.js +7 -7
- package/dist/commonjs/editor.d.ts +13 -0
- package/dist/commonjs/editor.js +1 -0
- package/dist/commonjs/helpers/index.d.ts +1 -0
- package/dist/commonjs/helpers/index.js +1 -1
- package/dist/commonjs/helpers/settingsStore.js +1 -1
- package/dist/commonjs/helpers/telemetry.js +1 -1
- package/dist/commonjs/i18n/index.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -1
- package/dist/commonjs/i18n/locales/bn.json +1 -1
- package/dist/commonjs/i18n/locales/de.json +1 -1
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -1
- package/dist/commonjs/i18n/locales/fr.json +1 -1
- package/dist/commonjs/i18n/locales/gu.json +1 -1
- package/dist/commonjs/i18n/locales/hi.json +1 -1
- package/dist/commonjs/i18n/locales/id.json +1 -1
- package/dist/commonjs/i18n/locales/it.json +1 -1
- package/dist/commonjs/i18n/locales/ja.json +1 -1
- package/dist/commonjs/i18n/locales/kn.json +1 -1
- package/dist/commonjs/i18n/locales/ko.json +1 -1
- package/dist/commonjs/i18n/locales/ml.json +1 -1
- package/dist/commonjs/i18n/locales/mr.json +1 -1
- package/dist/commonjs/i18n/locales/nl.json +1 -1
- package/dist/commonjs/i18n/locales/pa.json +1 -1
- package/dist/commonjs/i18n/locales/pl.json +1 -1
- package/dist/commonjs/i18n/locales/pt.json +1 -1
- package/dist/commonjs/i18n/locales/ru.json +1 -1
- package/dist/commonjs/i18n/locales/ta.json +1 -1
- package/dist/commonjs/i18n/locales/te.json +1 -1
- package/dist/commonjs/i18n/locales/tr.json +1 -1
- package/dist/commonjs/i18n/locales/vi.json +1 -1
- package/dist/commonjs/i18n/locales/zh.json +1 -1
- package/dist/commonjs/index.d.ts +4 -1
- package/dist/commonjs/index.js +3 -3
- package/dist/commonjs/native/NativeInspector.d.ts +3 -0
- package/dist/commonjs/native/NativeInspector.js +1 -1
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +4 -0
- package/dist/commonjs/styles/AppColors.d.ts +42 -2
- package/dist/commonjs/styles/AppColors.js +1 -1
- package/dist/commonjs/styles/common.js +1 -1
- package/dist/commonjs/styles/index.d.ts +7 -0
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/editor.d.ts +96 -0
- package/dist/commonjs/types/editor.js +1 -0
- package/dist/commonjs/types/interfaces.d.ts +21 -0
- package/dist/esm/capture.d.ts +2 -0
- package/dist/esm/capture.js +1 -1
- package/dist/esm/components/AnalyticsDetail.js +31 -31
- package/dist/esm/components/AnalyticsEventCard.js +1 -1
- package/dist/esm/components/AnalyticsGraph.js +74 -74
- package/dist/esm/components/AnimatedBrandOwl.js +114 -114
- package/dist/esm/components/AppHeaderLogo.js +7 -7
- package/dist/esm/components/BrandCircleIcon.js +70 -70
- package/dist/esm/components/BrandSquareIcon.js +61 -61
- package/dist/esm/components/ConsoleLogCard.js +1 -1
- package/dist/esm/components/Inspector/AnalyticsTab.js +14 -14
- package/dist/esm/components/Inspector/ConfirmationModal.js +23 -25
- package/dist/esm/components/Inspector/ConsoleTab.js +17 -17
- package/dist/esm/components/Inspector/CrashTab.js +202 -169
- package/dist/esm/components/Inspector/DeviceInfoTab.js +75 -75
- package/dist/esm/components/Inspector/FabLauncher.js +56 -51
- package/dist/esm/components/Inspector/FloatingCaptureWidget.d.ts +3 -0
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +54 -0
- package/dist/esm/components/Inspector/GlobalCrashScreenModal.d.ts +11 -0
- package/dist/esm/components/Inspector/GlobalCrashScreenModal.js +234 -0
- package/dist/esm/components/Inspector/InspectorHeader.js +162 -152
- package/dist/esm/components/Inspector/LanguageSelectorModal.d.ts +1 -1
- package/dist/esm/components/Inspector/LanguageSelectorModal.js +140 -58
- package/dist/esm/components/Inspector/MainScreen.js +61 -54
- package/dist/esm/components/Inspector/MediaGalleryTab.js +55 -52
- package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +36 -0
- package/dist/esm/components/Inspector/MediaPreviewModal.js +345 -123
- package/dist/esm/components/Inspector/NetworkTab.js +74 -74
- package/dist/esm/components/Inspector/PushCard.js +1 -1
- package/dist/esm/components/Inspector/PushDetail.js +18 -18
- package/dist/esm/components/Inspector/PushTab.js +1 -1
- package/dist/esm/components/Inspector/ReduxTab.js +18 -16
- package/dist/esm/components/Inspector/SecondaryTelemetryStrip.d.ts +2 -0
- package/dist/esm/components/Inspector/SecondaryTelemetryStrip.js +43 -0
- package/dist/esm/components/Inspector/SettingsPanel.js +224 -195
- package/dist/esm/components/Inspector/SocketCard.js +8 -8
- package/dist/esm/components/Inspector/SocketDetail.js +106 -96
- package/dist/esm/components/Inspector/SocketTab.js +18 -18
- package/dist/esm/components/Inspector/StorageTab.js +47 -47
- package/dist/esm/components/Inspector/SupportModal.js +64 -64
- package/dist/esm/components/Inspector/SupportPage.js +5 -5
- package/dist/esm/components/JsonViewer.js +51 -49
- package/dist/esm/components/LogCard.js +41 -39
- package/dist/esm/components/ModuleErrorBoundary.js +10 -10
- package/dist/esm/components/NetworkIcons.d.ts +27 -0
- package/dist/esm/components/NetworkIcons.js +101 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/crash.d.ts +1 -1
- package/dist/esm/crash.js +1 -1
- package/dist/esm/customHooks/crashHandler.d.ts +2 -1
- package/dist/esm/customHooks/crashHandler.js +7 -7
- package/dist/esm/editor.d.ts +13 -0
- package/dist/esm/editor.js +1 -0
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.js +4 -4
- package/dist/esm/helpers/settingsStore.js +1 -1
- package/dist/esm/helpers/telemetry.js +1 -1
- package/dist/esm/i18n/index.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -1
- package/dist/esm/i18n/locales/bn.json +1 -1
- package/dist/esm/i18n/locales/de.json +1 -1
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -1
- package/dist/esm/i18n/locales/fr.json +1 -1
- package/dist/esm/i18n/locales/gu.json +1 -1
- package/dist/esm/i18n/locales/hi.json +1 -1
- package/dist/esm/i18n/locales/id.json +1 -1
- package/dist/esm/i18n/locales/it.json +1 -1
- package/dist/esm/i18n/locales/ja.json +1 -1
- package/dist/esm/i18n/locales/kn.json +1 -1
- package/dist/esm/i18n/locales/ko.json +1 -1
- package/dist/esm/i18n/locales/ml.json +1 -1
- package/dist/esm/i18n/locales/mr.json +1 -1
- package/dist/esm/i18n/locales/nl.json +1 -1
- package/dist/esm/i18n/locales/pa.json +1 -1
- package/dist/esm/i18n/locales/pl.json +1 -1
- package/dist/esm/i18n/locales/pt.json +1 -1
- package/dist/esm/i18n/locales/ru.json +1 -1
- package/dist/esm/i18n/locales/ta.json +1 -1
- package/dist/esm/i18n/locales/te.json +1 -1
- package/dist/esm/i18n/locales/tr.json +1 -1
- package/dist/esm/i18n/locales/vi.json +1 -1
- package/dist/esm/i18n/locales/zh.json +1 -1
- package/dist/esm/index.d.ts +4 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/native/NativeInspector.d.ts +3 -0
- package/dist/esm/native/NativeInspector.js +1 -1
- package/dist/esm/native/NativeNetworkInspector.d.ts +4 -0
- package/dist/esm/styles/AppColors.d.ts +42 -2
- package/dist/esm/styles/AppColors.js +1 -1
- package/dist/esm/styles/common.js +1 -1
- package/dist/esm/styles/index.d.ts +7 -0
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/editor.d.ts +96 -0
- package/dist/esm/types/editor.js +1 -0
- package/dist/esm/types/interfaces.d.ts +21 -0
- package/editor.d.ts +1 -0
- package/editor.js +1 -0
- package/ios/NetworkInspectorModule.mm +429 -0
- package/package.json +10 -1
- package/react-native-inapp-inspector.podspec +1 -1
- package/src/native/NativeInspector.ts +57 -4
- package/src/native/NativeNetworkInspector.ts +4 -0
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import"react";import
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<C offset="0"stopColor=
|
|
5
|
-
<C offset="1"stopColor=
|
|
6
|
-
</
|
|
7
|
-
<
|
|
8
|
-
<C offset="0"stopColor=
|
|
9
|
-
<C offset="1"stopColor=
|
|
10
|
-
</
|
|
11
|
-
<
|
|
12
|
-
<C offset="0"stopColor=
|
|
13
|
-
<C offset="0.5"stopColor=
|
|
14
|
-
<C offset="1"stopColor=
|
|
15
|
-
</
|
|
16
|
-
<
|
|
17
|
-
<C offset="0"stopColor=
|
|
18
|
-
<C offset="1"stopColor=
|
|
19
|
-
</
|
|
20
|
-
<
|
|
21
|
-
<C offset="0"stopColor=
|
|
22
|
-
<C offset="1"stopColor=
|
|
23
|
-
</
|
|
24
|
-
<
|
|
25
|
-
<C offset="0"stopColor=
|
|
26
|
-
<C offset="1"stopColor=
|
|
27
|
-
</
|
|
28
|
-
<
|
|
29
|
-
<C offset="0"stopColor=
|
|
30
|
-
<C offset="0.5"stopColor=
|
|
31
|
-
<C offset="1"stopColor=
|
|
32
|
-
</
|
|
33
|
-
<
|
|
34
|
-
<C offset="0"stopColor=
|
|
35
|
-
<C offset="1"stopColor=
|
|
36
|
-
</
|
|
37
|
-
<
|
|
38
|
-
<C offset="0"stopColor=
|
|
39
|
-
<C offset="1"stopColor=
|
|
40
|
-
</
|
|
41
|
-
<
|
|
42
|
-
<C offset="0"stopColor=
|
|
43
|
-
<C offset="1"stopColor=
|
|
44
|
-
</
|
|
45
|
-
<
|
|
46
|
-
<C offset="0"stopColor=
|
|
47
|
-
<C offset="0.7"stopColor=
|
|
48
|
-
<C offset="1"stopColor=
|
|
49
|
-
</
|
|
50
|
-
<
|
|
51
|
-
<C offset="0"stopColor=
|
|
52
|
-
<C offset="1"stopColor=
|
|
53
|
-
</
|
|
54
|
-
</
|
|
1
|
+
import"react";import A,{Circle as M,Path as L,G,Defs as Z,LinearGradient as O,RadialGradient as W,Stop as C,Rect as E,Ellipse as Q,Line as S}from"react-native-svg";import{AppColors as x}from"../styles/AppColors";export const BrandCircleIcon=({size:U=56})=><A width={U}height={U}viewBox="0 0 256 256"fill="none">
|
|
2
|
+
<Z>
|
|
3
|
+
<O id="tile"x1="30"y1="30"x2="210"y2="222"gradientUnits="userSpaceOnUse">
|
|
4
|
+
<C offset="0"stopColor={x.navy900}/>
|
|
5
|
+
<C offset="1"stopColor={x.navy950}/>
|
|
6
|
+
</O>
|
|
7
|
+
<O id="edge"x1="14"y1="22"x2="220"y2="228"gradientUnits="userSpaceOnUse">
|
|
8
|
+
<C offset="0"stopColor={x.steel600}/>
|
|
9
|
+
<C offset="1"stopColor={x.navy800}/>
|
|
10
|
+
</O>
|
|
11
|
+
<O id="beam"x1="70"y1="74"x2="194"y2="187"gradientUnits="userSpaceOnUse">
|
|
12
|
+
<C offset="0"stopColor={x.teal300}/>
|
|
13
|
+
<C offset="0.5"stopColor={x.sky400}/>
|
|
14
|
+
<C offset="1"stopColor={x.purple400}/>
|
|
15
|
+
</O>
|
|
16
|
+
<W id="halo"cx="0.5"cy="0.45"r="0.55">
|
|
17
|
+
<C offset="0"stopColor={x.sky400}stopOpacity={.12}/>
|
|
18
|
+
<C offset="1"stopColor={x.sky400}stopOpacity={0}/>
|
|
19
|
+
</W>
|
|
20
|
+
<O id="owlbody"x1="78"y1="60"x2="178"y2="186"gradientUnits="userSpaceOnUse">
|
|
21
|
+
<C offset="0"stopColor={x.navy700}/>
|
|
22
|
+
<C offset="1"stopColor={x.navy900}/>
|
|
23
|
+
</O>
|
|
24
|
+
<O id="beak"x1="120"y1="151"x2="136"y2="168"gradientUnits="userSpaceOnUse">
|
|
25
|
+
<C offset="0"stopColor={x.amber300}/>
|
|
26
|
+
<C offset="1"stopColor={x.orange400}/>
|
|
27
|
+
</O>
|
|
28
|
+
<W id="iris"cx="0.42"cy="0.38"r="0.72">
|
|
29
|
+
<C offset="0"stopColor={x.amber200}/>
|
|
30
|
+
<C offset="0.5"stopColor={x.amber400}/>
|
|
31
|
+
<C offset="1"stopColor={x.amber500}/>
|
|
32
|
+
</W>
|
|
33
|
+
<W id="blush"cx="0.5"cy="0.5"r="0.5">
|
|
34
|
+
<C offset="0"stopColor={x.rose400}stopOpacity={.5}/>
|
|
35
|
+
<C offset="1"stopColor={x.rose400}stopOpacity={0}/>
|
|
36
|
+
</W>
|
|
37
|
+
<O id="wing"x1="70"y1="120"x2="190"y2="206"gradientUnits="userSpaceOnUse">
|
|
38
|
+
<C offset="0"stopColor={x.navy800}/>
|
|
39
|
+
<C offset="1"stopColor={x.navy950}/>
|
|
40
|
+
</O>
|
|
41
|
+
<O id="faceplate"x1="70"y1="72"x2="186"y2="152"gradientUnits="userSpaceOnUse">
|
|
42
|
+
<C offset="0"stopColor={x.steel500}/>
|
|
43
|
+
<C offset="1"stopColor={x.navy700}/>
|
|
44
|
+
</O>
|
|
45
|
+
<W id="lensglass"cx="0.4"cy="0.32"r="0.75">
|
|
46
|
+
<C offset="0"stopColor={x.sky300}stopOpacity={.22}/>
|
|
47
|
+
<C offset="0.7"stopColor={x.sky300}stopOpacity={.05}/>
|
|
48
|
+
<C offset="1"stopColor={x.sky300}stopOpacity={0}/>
|
|
49
|
+
</W>
|
|
50
|
+
<O id="belly"x1="94"y1="126"x2="162"y2="212"gradientUnits="userSpaceOnUse">
|
|
51
|
+
<C offset="0"stopColor={x.steel600}/>
|
|
52
|
+
<C offset="1"stopColor={x.navy700}/>
|
|
53
|
+
</O>
|
|
54
|
+
</Z>
|
|
55
55
|
<M cx="128"cy="128"r="122"fill="url(#tile)"/>
|
|
56
56
|
<M cx="128"cy="128"r="121.4"fill="none"stroke="url(#edge)"strokeOpacity={.7}strokeWidth={1.4}/>
|
|
57
57
|
<M cx="128"cy="128"r="100"fill="url(#halo)"/>
|
|
58
|
-
<
|
|
58
|
+
<G transform="translate(128 132) scale(1.05) translate(-128 -134)">
|
|
59
59
|
|
|
60
60
|
<L d="M74 124 C58 154 60 190 86 204 C79 176 77 148 88 126 Z"fill="url(#wing)"stroke="url(#beam)"strokeWidth={2.5}strokeOpacity={.45}/>
|
|
61
61
|
|
|
@@ -68,18 +68,18 @@ import"react";import D,{Circle as M,Path as L,G as O,Defs as U,LinearGradient as
|
|
|
68
68
|
<L d="M157 48 L142 62 L152 63 L158 55 Z"fill="#080F22"opacity={.5}/>
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
<
|
|
71
|
+
<G stroke="#22325A"strokeWidth={2.2}fill="none"strokeLinecap="round"opacity={.75}>
|
|
72
72
|
<L d="M80 138 q-5 26 3 50"/>
|
|
73
73
|
<L d="M90 134 q-4 26 3 48"/>
|
|
74
74
|
<L d="M176 138 q5 26 -3 50"/>
|
|
75
75
|
<L d="M166 134 q4 26 -3 48"/>
|
|
76
|
-
</
|
|
76
|
+
</G>
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
<L d="M128 126 C151 126 164 148 162 174 C160 198 146 212 128 212 C110 212 96 198 94 174 C92 148 105 126 128 126 Z"fill="url(#belly)"/>
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
<
|
|
82
|
+
<G stroke="#3E588C"strokeWidth={2.3}fill="none"strokeLinecap="round"opacity={.4}>
|
|
83
83
|
<L d="M110 154 Q118 162 126 154"/>
|
|
84
84
|
<L d="M126 154 Q134 162 142 154"/>
|
|
85
85
|
<L d="M142 154 Q150 162 158 154"/>
|
|
@@ -87,15 +87,15 @@ import"react";import D,{Circle as M,Path as L,G as O,Defs as U,LinearGradient as
|
|
|
87
87
|
<L d="M150 172 Q158 180 166 172"/>
|
|
88
88
|
<L d="M112 190 Q120 198 128 190"/>
|
|
89
89
|
<L d="M128 190 Q136 198 144 190"/>
|
|
90
|
-
</
|
|
90
|
+
</G>
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
<
|
|
94
|
-
<
|
|
93
|
+
<E x={107}y={161}width={42}height={32}rx={9}fill="#0C1426"stroke="url(#beam)"strokeWidth={2}strokeOpacity={.7}/>
|
|
94
|
+
<G stroke="#8FD0EC"strokeWidth={3}strokeLinecap="round"strokeLinejoin="round"fill="none">
|
|
95
95
|
<L d="M122 170 L115 177 L122 184"/>
|
|
96
96
|
<L d="M134 170 L141 177 L134 184"/>
|
|
97
97
|
<L d="M130 168 L126 186"/>
|
|
98
|
-
</
|
|
98
|
+
</G>
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
<L d="M128 92 C148 70 186 78 186 108 C186 134 160 152 128 152 C96 152 70 134 70 108 C70 78 108 70 128 92 Z"fill="url(#faceplate)"stroke="#52709E"strokeWidth={2.6}strokeOpacity={.7}/>
|
|
@@ -103,10 +103,10 @@ import"react";import D,{Circle as M,Path as L,G as O,Defs as U,LinearGradient as
|
|
|
103
103
|
<L d="M128 96 L128 120"stroke="#52709E"strokeWidth={2}strokeLinecap="round"strokeOpacity={.45}/>
|
|
104
104
|
|
|
105
105
|
|
|
106
|
-
<
|
|
106
|
+
<G stroke="url(#beak)"strokeWidth={5}strokeLinecap="round"fill="none">
|
|
107
107
|
<L d="M111 209 L105 224 M111 209 L111 226 M111 209 L117 224"/>
|
|
108
108
|
<L d="M145 209 L139 224 M145 209 L145 226 M145 209 L151 224"/>
|
|
109
|
-
</
|
|
109
|
+
</G>
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
<M cx={153}cy={107}r={17}fill="url(#iris)"stroke="#1A1205"strokeWidth={2.2}/>
|
|
@@ -124,12 +124,12 @@ import"react";import D,{Circle as M,Path as L,G as O,Defs as U,LinearGradient as
|
|
|
124
124
|
<M cx={91}cy={107}r={1.8}fill="#ffffff"opacity={.7}/>
|
|
125
125
|
<M cx={95}cy={103}r={28}fill="url(#lensglass)"/>
|
|
126
126
|
<L d="M77 87 A28 28 0 0 1 106 79"fill="none"stroke="#ffffff"strokeWidth={4}strokeLinecap="round"strokeOpacity={.5}/>
|
|
127
|
-
<
|
|
128
|
-
<
|
|
127
|
+
<S x1={75}y1={123}x2={54}y2={147}stroke="#0A0F1C"strokeWidth={14}strokeLinecap="round"/>
|
|
128
|
+
<S x1={75}y1={123}x2={54}y2={147}stroke="url(#beam)"strokeWidth={8.5}strokeLinecap="round"/>
|
|
129
129
|
<M cx={95}cy={103}r={28}fill="none"stroke="url(#beam)"strokeWidth={7}/>
|
|
130
130
|
|
|
131
131
|
|
|
132
|
-
<
|
|
133
|
-
<
|
|
134
|
-
</
|
|
135
|
-
</
|
|
132
|
+
<Q cx={83}cy={127}rx={9}ry={6}fill="url(#blush)"/>
|
|
133
|
+
<Q cx={167}cy={122}rx={9}ry={6}fill="url(#blush)"/>
|
|
134
|
+
</G>
|
|
135
|
+
</A>;export default BrandCircleIcon;
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import"react";import
|
|
2
|
-
<
|
|
1
|
+
import"react";import A,{Circle as _,Path as L,G as O,Defs as Z,LinearGradient as M,RadialGradient as G,Stop as C,Rect as U,Ellipse as S,Line as Q}from"react-native-svg";import{AppColors as o}from"../styles/AppColors";export const BrandSquareIcon=({size:W=56})=><A width={W}height={W}viewBox="0 0 256 256"fill="none">
|
|
2
|
+
<Z>
|
|
3
3
|
<M id="sq_tile"x1="30"y1="30"x2="210"y2="222"gradientUnits="userSpaceOnUse">
|
|
4
|
-
<C offset="0"stopColor=
|
|
5
|
-
<C offset="1"stopColor=
|
|
4
|
+
<C offset="0"stopColor={o.navy900}/>
|
|
5
|
+
<C offset="1"stopColor={o.navy950}/>
|
|
6
6
|
</M>
|
|
7
7
|
<M id="sq_edge"x1="14"y1="22"x2="220"y2="228"gradientUnits="userSpaceOnUse">
|
|
8
|
-
<C offset="0"stopColor=
|
|
9
|
-
<C offset="1"stopColor=
|
|
8
|
+
<C offset="0"stopColor={o.steel600}/>
|
|
9
|
+
<C offset="1"stopColor={o.navy800}/>
|
|
10
10
|
</M>
|
|
11
11
|
<M id="sq_beam"x1="70"y1="74"x2="194"y2="187"gradientUnits="userSpaceOnUse">
|
|
12
|
-
<C offset="0"stopColor=
|
|
13
|
-
<C offset="0.5"stopColor=
|
|
14
|
-
<C offset="1"stopColor=
|
|
12
|
+
<C offset="0"stopColor={o.teal300}/>
|
|
13
|
+
<C offset="0.5"stopColor={o.sky400}/>
|
|
14
|
+
<C offset="1"stopColor={o.purple400}/>
|
|
15
15
|
</M>
|
|
16
|
-
<
|
|
17
|
-
<C offset="0"stopColor=
|
|
18
|
-
<C offset="1"stopColor=
|
|
19
|
-
</
|
|
16
|
+
<G id="sq_halo"cx="0.5"cy="0.45"r="0.55">
|
|
17
|
+
<C offset="0"stopColor={o.sky400}stopOpacity={.12}/>
|
|
18
|
+
<C offset="1"stopColor={o.sky400}stopOpacity={0}/>
|
|
19
|
+
</G>
|
|
20
20
|
<M id="sq_owlbody"x1="78"y1="60"x2="178"y2="186"gradientUnits="userSpaceOnUse">
|
|
21
|
-
<C offset="0"stopColor=
|
|
22
|
-
<C offset="1"stopColor=
|
|
21
|
+
<C offset="0"stopColor={o.navy700}/>
|
|
22
|
+
<C offset="1"stopColor={o.navy900}/>
|
|
23
23
|
</M>
|
|
24
24
|
<M id="sq_beak"x1="120"y1="151"x2="136"y2="168"gradientUnits="userSpaceOnUse">
|
|
25
|
-
<C offset="0"stopColor=
|
|
26
|
-
<C offset="1"stopColor=
|
|
25
|
+
<C offset="0"stopColor={o.amber300}/>
|
|
26
|
+
<C offset="1"stopColor={o.orange400}/>
|
|
27
27
|
</M>
|
|
28
|
-
<
|
|
29
|
-
<C offset="0"stopColor=
|
|
30
|
-
<C offset="0.5"stopColor=
|
|
31
|
-
<C offset="1"stopColor=
|
|
32
|
-
</
|
|
33
|
-
<
|
|
34
|
-
<C offset="0"stopColor=
|
|
35
|
-
<C offset="1"stopColor=
|
|
36
|
-
</
|
|
28
|
+
<G id="sq_iris"cx="0.42"cy="0.38"r="0.72">
|
|
29
|
+
<C offset="0"stopColor={o.amber200}/>
|
|
30
|
+
<C offset="0.5"stopColor={o.amber400}/>
|
|
31
|
+
<C offset="1"stopColor={o.amber500}/>
|
|
32
|
+
</G>
|
|
33
|
+
<G id="sq_blush"cx="0.5"cy="0.5"r="0.5">
|
|
34
|
+
<C offset="0"stopColor={o.rose400}stopOpacity={.5}/>
|
|
35
|
+
<C offset="1"stopColor={o.rose400}stopOpacity={0}/>
|
|
36
|
+
</G>
|
|
37
37
|
<M id="sq_wing"x1="70"y1="120"x2="190"y2="206"gradientUnits="userSpaceOnUse">
|
|
38
|
-
<C offset="0"stopColor=
|
|
39
|
-
<C offset="1"stopColor=
|
|
38
|
+
<C offset="0"stopColor={o.navy800}/>
|
|
39
|
+
<C offset="1"stopColor={o.navy950}/>
|
|
40
40
|
</M>
|
|
41
41
|
<M id="sq_faceplate"x1="70"y1="72"x2="186"y2="152"gradientUnits="userSpaceOnUse">
|
|
42
|
-
<C offset="0"stopColor=
|
|
43
|
-
<C offset="1"stopColor=
|
|
42
|
+
<C offset="0"stopColor={o.steel500}/>
|
|
43
|
+
<C offset="1"stopColor={o.navy700}/>
|
|
44
44
|
</M>
|
|
45
|
-
<
|
|
46
|
-
<C offset="0"stopColor=
|
|
47
|
-
<C offset="0.7"stopColor=
|
|
48
|
-
<C offset="1"stopColor=
|
|
49
|
-
</
|
|
45
|
+
<G id="sq_lensglass"cx="0.4"cy="0.32"r="0.75">
|
|
46
|
+
<C offset="0"stopColor={o.sky300}stopOpacity={.22}/>
|
|
47
|
+
<C offset="0.7"stopColor={o.sky300}stopOpacity={.05}/>
|
|
48
|
+
<C offset="1"stopColor={o.sky300}stopOpacity={0}/>
|
|
49
|
+
</G>
|
|
50
50
|
<M id="sq_belly"x1="94"y1="126"x2="162"y2="212"gradientUnits="userSpaceOnUse">
|
|
51
|
-
<C offset="0"stopColor=
|
|
52
|
-
<C offset="1"stopColor=
|
|
51
|
+
<C offset="0"stopColor={o.steel600}/>
|
|
52
|
+
<C offset="1"stopColor={o.navy700}/>
|
|
53
53
|
</M>
|
|
54
|
-
</
|
|
54
|
+
</Z>
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
<
|
|
58
|
-
<
|
|
57
|
+
<U x={8}y={8}width={240}height={240}rx={58}fill="url(#sq_tile)"/>
|
|
58
|
+
<U x={8.6}y={8.6}width={238.8}height={238.8}rx={57.4}fill="none"stroke="url(#sq_edge)"strokeOpacity={.6}/>
|
|
59
59
|
<_ cx={128}cy={128}r={104}fill="url(#sq_halo)"/>
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
<
|
|
62
|
+
<O transform="translate(128 128) scale(1.16) translate(-128 -134)">
|
|
63
63
|
|
|
64
64
|
<L d="M74 124 C58 154 60 190 86 204 C79 176 77 148 88 126 Z"fill="url(#sq_wing)"stroke="url(#sq_beam)"strokeWidth={2.5}strokeOpacity={.45}/>
|
|
65
65
|
|
|
@@ -72,18 +72,18 @@ import"react";import U,{Circle as _,Path as L,G as F,Defs as W,LinearGradient as
|
|
|
72
72
|
<L d="M157 48 L142 62 L152 63 L158 55 Z"fill="#080F22"opacity={.5}/>
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
<
|
|
75
|
+
<O stroke="#22325A"strokeWidth={2.2}fill="none"strokeLinecap="round"opacity={.75}>
|
|
76
76
|
<L d="M80 138 q-5 26 3 50"/>
|
|
77
77
|
<L d="M90 134 q-4 26 3 48"/>
|
|
78
78
|
<L d="M176 138 q5 26 -3 50"/>
|
|
79
79
|
<L d="M166 134 q4 26 -3 48"/>
|
|
80
|
-
</
|
|
80
|
+
</O>
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
<L d="M128 126 C151 126 164 148 162 174 C160 198 146 212 128 212 C110 212 96 198 94 174 C92 148 105 126 128 126 Z"fill="url(#sq_belly)"/>
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
<
|
|
86
|
+
<O stroke="#3E588C"strokeWidth={2.3}fill="none"strokeLinecap="round"opacity={.4}>
|
|
87
87
|
<L d="M110 154 Q118 162 126 154"/>
|
|
88
88
|
<L d="M126 154 Q134 162 142 154"/>
|
|
89
89
|
<L d="M142 154 Q150 162 158 154"/>
|
|
@@ -91,15 +91,15 @@ import"react";import U,{Circle as _,Path as L,G as F,Defs as W,LinearGradient as
|
|
|
91
91
|
<L d="M150 172 Q158 180 166 172"/>
|
|
92
92
|
<L d="M112 190 Q120 198 128 190"/>
|
|
93
93
|
<L d="M128 190 Q136 198 144 190"/>
|
|
94
|
-
</
|
|
94
|
+
</O>
|
|
95
95
|
|
|
96
96
|
|
|
97
|
-
<
|
|
98
|
-
<
|
|
97
|
+
<U x={107}y={161}width={42}height={32}rx={9}fill="#0C1426"stroke="url(#sq_beam)"strokeWidth={2}strokeOpacity={.7}/>
|
|
98
|
+
<O stroke="#8FD0EC"strokeWidth={3}strokeLinecap="round"strokeLinejoin="round"fill="none">
|
|
99
99
|
<L d="M122 170 L115 177 L122 184"/>
|
|
100
100
|
<L d="M134 170 L141 177 L134 184"/>
|
|
101
101
|
<L d="M130 168 L126 186"/>
|
|
102
|
-
</
|
|
102
|
+
</O>
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
<L d="M128 92 C148 70 186 78 186 108 C186 134 160 152 128 152 C96 152 70 134 70 108 C70 78 108 70 128 92 Z"fill="url(#sq_faceplate)"stroke="#52709E"strokeWidth={2.6}strokeOpacity={.7}/>
|
|
@@ -107,16 +107,16 @@ import"react";import U,{Circle as _,Path as L,G as F,Defs as W,LinearGradient as
|
|
|
107
107
|
<L d="M128 96 L128 120"stroke="#52709E"strokeWidth={2}strokeLinecap="round"strokeOpacity={.45}/>
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
<
|
|
110
|
+
<O stroke="url(#sq_beak)"strokeWidth={5}strokeLinecap="round"fill="none">
|
|
111
111
|
<L d="M111 209 L105 224 M111 209 L111 226 M111 209 L117 224"/>
|
|
112
112
|
<L d="M145 209 L139 224 M145 209 L145 226 M145 209 L151 224"/>
|
|
113
|
-
</
|
|
113
|
+
</O>
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
<_ cx={153}cy={107}r={17}fill="url(#sq_iris)"stroke="#1A1205"strokeWidth={2.2}/>
|
|
117
117
|
<_ cx={153}cy={108}r={8.2}fill="#0A0E18"/>
|
|
118
|
-
<_ cx={156.2}cy={104}r={3.1}fill=
|
|
119
|
-
<_ cx={149.6}cy={111}r={1.6}fill=
|
|
118
|
+
<_ cx={156.2}cy={104}r={3.1}fill={o.white}opacity={.95}/>
|
|
119
|
+
<_ cx={149.6}cy={111}r={1.6}fill={o.white}opacity={.7}/>
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
<L d="M123.5 123 Q128 121 132.5 123 Q131 132 128 134.5 Q125 132 123.5 123 Z"fill="url(#sq_beak)"/>
|
|
@@ -124,16 +124,16 @@ import"react";import U,{Circle as _,Path as L,G as F,Defs as W,LinearGradient as
|
|
|
124
124
|
|
|
125
125
|
<_ cx={95}cy={103}r={20}fill="url(#sq_iris)"stroke="#1A1205"strokeWidth={2.6}/>
|
|
126
126
|
<_ cx={95}cy={104}r={10}fill="#0A0E18"/>
|
|
127
|
-
<_ cx={98.6}cy={100}r={3.4}fill=
|
|
128
|
-
<_ cx={91}cy={107}r={1.8}fill=
|
|
127
|
+
<_ cx={98.6}cy={100}r={3.4}fill={o.white}opacity={.95}/>
|
|
128
|
+
<_ cx={91}cy={107}r={1.8}fill={o.white}opacity={.7}/>
|
|
129
129
|
<_ cx={95}cy={103}r={28}fill="url(#sq_lensglass)"/>
|
|
130
|
-
<L d="M77 87 A28 28 0 0 1 106 79"fill="none"stroke=
|
|
131
|
-
<
|
|
132
|
-
<
|
|
130
|
+
<L d="M77 87 A28 28 0 0 1 106 79"fill="none"stroke={o.white}strokeWidth={4}strokeLinecap="round"strokeOpacity={.5}/>
|
|
131
|
+
<Q x1={75}y1={123}x2={54}y2={147}stroke="#0A0F1C"strokeWidth={14}strokeLinecap="round"/>
|
|
132
|
+
<Q x1={75}y1={123}x2={54}y2={147}stroke="url(#sq_beam)"strokeWidth={8.5}strokeLinecap="round"/>
|
|
133
133
|
<_ cx={95}cy={103}r={28}fill="none"stroke="url(#sq_beam)"strokeWidth={7}/>
|
|
134
134
|
|
|
135
135
|
|
|
136
|
-
<
|
|
137
|
-
<
|
|
138
|
-
</
|
|
139
|
-
</
|
|
136
|
+
<S cx={83}cy={127}rx={9}ry={6}fill="url(#sq_blush)"/>
|
|
137
|
+
<S cx={167}cy={122}rx={9}ry={6}fill="url(#sq_blush)"/>
|
|
138
|
+
</O>
|
|
139
|
+
</A>;export default BrandSquareIcon;
|
|
@@ -92,4 +92,4 @@ import F from"react";import{useTranslation as v}from"../i18n";import{Pressable a
|
|
|
92
92
|
</I>
|
|
93
93
|
</I>
|
|
94
94
|
</Ie>
|
|
95
|
-
</I>});const o=Y.create({container:{paddingHorizontal:8,paddingVertical:4,height:148,justifyContent:"center"},card:{height:140,alignSelf:"stretch",borderRadius:10,overflow:"hidden",borderWidth:1,borderColor:r.dividerColor,shadowColor:r.shadowColorString},cardBody:{height:"100%",paddingHorizontal:
|
|
95
|
+
</I>});const o=Y.create({container:{paddingHorizontal:8,paddingVertical:4,height:148,justifyContent:"center"},card:{height:140,alignSelf:"stretch",borderRadius:10,overflow:"hidden",borderWidth:1,borderColor:r.dividerColor,shadowColor:r.shadowColorString},cardBody:{height:"100%",paddingHorizontal:8,paddingTop:8,paddingBottom:6,justifyContent:"space-between"},cardHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:22,minHeight:22,maxHeight:22},cardHeaderLeft:{flexDirection:"row",alignItems:"center",flex:1,marginRight:4,gap:4.5,minWidth:0,overflow:"hidden"},cardHeaderRight:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},serialNumber:{fontFamily:S.interBold,color:r.grayTextWeak,fontSize:10},methodBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:5,alignItems:"center",justifyContent:"center"},methodBadgeText:{fontFamily:S.interBold,fontSize:9.5,lineHeight:12,letterSpacing:.5,color:r.white},chip:{paddingHorizontal:5.5,paddingVertical:1.5,borderRadius:4,borderWidth:1},chipText:{fontFamily:S.interBold,fontSize:9,lineHeight:12},dupBadge:{backgroundColor:`${r.purple}14`,borderColor:`${r.purple}2E`,borderWidth:1,paddingHorizontal:4.5,paddingVertical:1,borderRadius:3.5},dupBadgeText:{fontFamily:S.interBold,fontSize:8.5,color:r.purple},statusPill:{flexDirection:"row",alignItems:"center",gap:3.5,paddingHorizontal:6,paddingVertical:2,borderRadius:6,borderWidth:1,flexShrink:0},statusPillText:{fontFamily:S.interBold,fontSize:9.5,lineHeight:12},messageBox:{backgroundColor:r.grayBackground,borderRadius:7,borderWidth:1,borderColor:r.dividerColor,paddingHorizontal:7,paddingVertical:5,height:68,minHeight:68,maxHeight:68,justifyContent:"center",gap:2,overflow:"hidden"},messageText:{fontFamily:S.interMedium,fontSize:12,color:r.primaryBlack,lineHeight:17},highlight:{backgroundColor:r.yellowHighlight,color:r.primaryBlack,borderRadius:2},jsonPreviewRow:{flexDirection:"column",justifyContent:"center",gap:2},jsonPreviewText:{fontFamily:S.interMedium,fontSize:11,color:r.teal700,lineHeight:15},cardFooterRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:18,minHeight:18,maxHeight:18,gap:4},footerLeft:{flexDirection:"row",alignItems:"center",gap:4.5,flex:1,minWidth:0,overflow:"hidden"},footerRight:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},cardDateRow:{flexDirection:"row",alignItems:"center",gap:3.5},cardDateText:{fontFamily:S.interRegular,fontSize:10,lineHeight:13,color:r.slate400},callerChip:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:r.skySoftBg,borderColor:r.skySoftBorder,borderWidth:1,paddingHorizontal:5,paddingVertical:1.5,borderRadius:4,flexShrink:1,minWidth:0},extBadge:{borderRadius:3,paddingHorizontal:3,paddingVertical:.5},extBadgeText:{fontFamily:S.interBold,fontSize:7.5},callerChipText:{color:r.skySoftText,fontSize:9,lineHeight:12,fontFamily:S.interBold},metaStatChip:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:r.violetSoftBg,borderColor:r.violetSoftBorder,borderWidth:1,paddingHorizontal:5.5,paddingVertical:1.5,borderRadius:4},metaStatText:{fontFamily:S.interBold,color:r.violetSoftText,fontSize:9,lineHeight:12},prefixTag:{flexDirection:"row",alignItems:"center",gap:2.5,paddingHorizontal:5,paddingVertical:1.5,borderRadius:3.5,borderWidth:1},prefixTagText:{fontFamily:S.interBold,fontSize:8.5,letterSpacing:.3},bottomAccentBar:{height:2.5,width:"100%",borderRadius:1.5,marginTop:2}});function je(R,t){return R.item===t.item&&R.searchStr===t.searchStr&&R.onPress===t.onPress}export const MemoizedConsoleLogCard=F.memo(ConsoleLogCard,je);export default MemoizedConsoleLogCard;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import X,{useCallback as F,useState as Y,useMemo as Z,useRef as Fe}from"react";import{FlatList as Pe,Pressable as Re,ScrollView as Ve,Text as N,TextInput as Be,TouchableOpacity as Ce,View as C}from"react-native";import{animateNextLayout as Me,useInspector as _e}from"./InspectorContext";import Ne from"../AnalyticsEventCard";import Oe from"./AnalyticsFilterModal";import $e from"../EndOfListFooter";import De from"../EmptyState";import
|
|
1
|
+
import X,{useCallback as F,useState as Y,useMemo as Z,useRef as Fe}from"react";import{FlatList as Pe,Pressable as Re,ScrollView as Ve,Text as N,TextInput as Be,TouchableOpacity as Ce,View as C}from"react-native";import{animateNextLayout as Me,useInspector as _e}from"./InspectorContext";import Ne from"../AnalyticsEventCard";import Oe from"./AnalyticsFilterModal";import $e from"../EndOfListFooter";import De from"../EmptyState";import T from"../../styles";import{AppColors as r}from"../../styles/AppColors";import{AppFonts as O}from"../../styles/AppFonts";import{useTranslation as He}from"../../i18n";import We from"../TouchableScale";import{getEventCategory as Ge}from"../../helpers";import{LayersIcon as je,SearchIcon as Je,ClearIcon as Qe,TrashIcon as Ke,FilterIcon as Ue,CartIcon as Xe,GlobeIcon as Ye,BoltIcon as Ze,SparkleIcon as et}from"../NetworkIcons";const Se=10,tt=X.memo(()=>{const{t:$}=He(),{analyticsEvents:D,filteredAnalyticsEvents:S,analyticsSearch:w,setAnalyticsSearch:P,analyticsFilters:A,setAnalyticsFilters:H,handleDelete:we,selectedEvent:Ie,setSelectedEvent:W,newEventIds:G,logRouteMapRef:j,isAnalyticsLayoutReady:Te,setIsAnalyticsLayoutReady:ve,isAnalyticsFilterApplied:R,maxAnalyticsEventsLimit:V}=_e(),xe=V||100,J=Fe(null),[Le,Q]=Y(!1),[q,K]=Y(xe);X.useEffect(()=>{K(V||100),J.current?.scrollToOffset({offset:0,animated:!1})},[w,A,V]);const B=Z(()=>S.slice(0,q),[S,q]),x=Z(()=>{let e=0,o=0,t=0,I=0;for(const E of D){const k=Ge(E.name),v=E.count||1;k==="ecommerce"?e+=v:k==="page_view"?o+=v:k==="system"?t+=v:I+=v}const L=e+o+t+I;return{ecommerce:e,page_view:o,system:t,custom:I,totalCount:L}},[D]),ke=F(e=>{Me(),H(o=>{if(e==="all")return{...o,categories:new Set(["all"])};const t=new Set(o.categories);if(t.has("all"))t.delete("all"),t.add(e);else if(t.has(e))t.delete(e),t.size===0&&t.add("all");else if(t.add(e),t.has("ecommerce")&&t.has("page_view")&&t.has("system")&&t.has("custom"))return{...o,categories:new Set(["all"])};return{...o,categories:t}})},[H]),Ae=F((e,o)=>e?.id?.toString()??o.toString(),[]),Ee=F(({item:e,index:o})=>{const t=S[o+1],I=S[o-1],L=t?e.timestamp-t.timestamp:void 0,E=Math.floor(e.timestamp/6e4),k=I?Math.floor(I.timestamp/6e4):-1,v=o===0||E!==k;return<Ne event={e}onPress={()=>{W(e)}}isNew={G.has(e.id)}searchStr={w}isFirst={o===0}isLast={o===S.length-1}msSincePrev={L}showTimestamp={v}computedScreenName={(()=>{if(!e)return"";const z=e.screenName||e.screenClass||e.pageTitle||e.pageLocation||e.params?.firebase_screen||e.params?.screen_name||e.params?.firebase_screen_class||e.params?.screen_class;let M=typeof z=="string"?z:z?JSON.stringify(z):"";const _=j.current.get(e.id+1e6);if(!M&&_&&_.path!=="Navigators"){const U=_.path.split(" \u2794 ");M=U[U.length-1]}return M})()}/>},[S,w,G,W,j]),ze=F((e,o)=>({length:86,offset:86*o,index:o}),[]);return<>
|
|
2
2
|
|
|
3
3
|
{Ie==null&&<C style={{backgroundColor:r.white,borderBottomWidth:1,borderBottomColor:r.dividerColor,paddingBottom:6}}>
|
|
4
|
-
<C style={[
|
|
5
|
-
<C style={
|
|
4
|
+
<C style={[T.toolbarRow,{marginTop:12,marginBottom:8}]}>
|
|
5
|
+
<C style={T.searchContainer}>
|
|
6
6
|
<Je color={r.grayTextWeak}size={16}/>
|
|
7
|
-
<Be placeholder={$("analytics.searchPlaceholder","Search events...")}placeholderTextColor={r.grayTextWeak}value={
|
|
8
|
-
{
|
|
7
|
+
<Be placeholder={$("analytics.searchPlaceholder","Search events...")}placeholderTextColor={r.grayTextWeak}value={w}onChangeText={P}style={T.searchInput}autoCorrect={!1}autoCapitalize="none"/>
|
|
8
|
+
{w.length>0&&<C style={{flexDirection:"row",alignItems:"center",gap:4}}>
|
|
9
9
|
<C style={{backgroundColor:`${r.purple}20`,borderRadius:10,paddingHorizontal:6,paddingVertical:1.5}}>
|
|
10
10
|
<N style={{color:r.purple,fontSize:9.5,fontFamily:O.interBold}}>
|
|
11
|
-
{
|
|
11
|
+
{S.length}
|
|
12
12
|
</N>
|
|
13
13
|
</C>
|
|
14
|
-
<Re onPress={()=>P("")}hitSlop={10}style={
|
|
14
|
+
<Re onPress={()=>P("")}hitSlop={10}style={T.clearBtn}>
|
|
15
15
|
<Qe color={r.grayTextWeak}size={13}/>
|
|
16
16
|
</Re>
|
|
17
17
|
</C>}
|
|
18
18
|
</C>
|
|
19
|
-
<C style={
|
|
19
|
+
<C style={T.toolbarRight}>
|
|
20
20
|
|
|
21
|
-
<Ce style={[
|
|
21
|
+
<Ce style={[T.toolbarBtn,R&&{borderColor:`${r.brandPurple}60`,backgroundColor:`${r.brandPurple}15`}]}onPress={()=>Q(!0)}hitSlop={6}>
|
|
22
22
|
<Ue color={R?r.brandPurple:r.grayTextStrong}size={15}/>
|
|
23
23
|
{R&&<C style={{position:"absolute",top:2,right:2,width:7,height:7,borderRadius:3.5,backgroundColor:r.darkOrange,borderWidth:1,borderColor:r.white}}/>}
|
|
24
24
|
</Ce>
|
|
25
25
|
|
|
26
|
-
<Ce style={[
|
|
26
|
+
<Ce style={[T.toolbarBtn,{borderColor:`${r.errorColor}38`,backgroundColor:`${r.errorColor}0F`}]}onPress={we}hitSlop={6}>
|
|
27
27
|
<Ke color={r.errorColor}size={15}/>
|
|
28
28
|
</Ce>
|
|
29
29
|
</C>
|
|
30
30
|
</C>
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
<C style={{flexDirection:"row",alignItems:"center",marginBottom:8,paddingHorizontal:
|
|
33
|
+
<C style={{flexDirection:"row",alignItems:"center",marginBottom:8,paddingHorizontal:8,gap:6}}>
|
|
34
34
|
<Ve horizontal showsHorizontalScrollIndicator={!1}style={{flex:1}}contentContainerStyle={{flexDirection:"row",alignItems:"center",gap:6,paddingRight:6}}>
|
|
35
|
-
{[{id:"all",label:$("common.all","All"),count:
|
|
35
|
+
{[{id:"all",label:$("common.all","All"),count:x.totalCount,color:r.purple,Icon:je},{id:"ecommerce",label:"Ecommerce",count:x.ecommerce,color:r.amber600,Icon:Xe},{id:"page_view",label:"Screens",count:x.page_view,color:r.sky600,Icon:Ye},{id:"system",label:"System",count:x.system,color:r.violet600,Icon:Ze},{id:"custom",label:"Custom",count:x.custom,color:r.teal600,Icon:et}].map(e=>{const o=e.id==="all"?A.categories.has("all"):!A.categories.has("all")&&A.categories.has(e.id),t=e.color||r.purple,I=o?r.white:t,L=e.Icon;return<We key={e.id}onPress={()=>ke(e.id)}>
|
|
36
36
|
<C style={{flexDirection:"row",alignItems:"center",paddingHorizontal:9,paddingVertical:4.5,borderRadius:8,backgroundColor:o?t:`${t}12`,borderWidth:1,borderColor:o?t:`${t}30`,gap:5}}>
|
|
37
|
-
<L size={11}color={
|
|
37
|
+
<L size={11}color={I}/>
|
|
38
38
|
<N style={{fontFamily:O.interBold,fontSize:10.5,color:o?r.white:r.primaryBlack}}>
|
|
39
39
|
{e.label}
|
|
40
40
|
</N>
|
|
@@ -54,7 +54,7 @@ import X,{useCallback as F,useState as Y,useMemo as Z,useRef as Fe}from"react";i
|
|
|
54
54
|
|
|
55
55
|
<C style={{flex:1}}onLayout={()=>ve(!0)}>
|
|
56
56
|
{Te?<>
|
|
57
|
-
<Pe ref={J}data={B}keyExtractor={Ae}renderItem={Ee}getItemLayout={ze}initialNumToRender={10}maxToRenderPerBatch={8}windowSize={5}updateCellsBatchingPeriod={40}removeClippedSubviews={!0}renderToHardwareTextureAndroid={!0}showsVerticalScrollIndicator={!1}ListEmptyComponent={<De isSearch={
|
|
57
|
+
<Pe ref={J}data={B}keyExtractor={Ae}renderItem={Ee}getItemLayout={ze}initialNumToRender={10}maxToRenderPerBatch={8}windowSize={5}updateCellsBatchingPeriod={40}removeClippedSubviews={!0}renderToHardwareTextureAndroid={!0}showsVerticalScrollIndicator={!1}nestedScrollEnabled={!0}ListEmptyComponent={<De isSearch={w.length>0}searchQuery={w}customTitle={w.length>0?"No matching analytics events":"No analytics events yet"}customSub={w.length>0?`No events matched "${w}"`:"Call setupAnalyticsLogger(analytics()) at app start."}onClearSearch={()=>P("")}/>}ListFooterComponent={S.length>0?<$e count={B.length}totalCount={S.length}label="events"loadMoreStep={Se}hasMore={B.length<S.length}onLoadMore={()=>K(e=>e+Se)}/>:null}style={{flex:1}}contentContainerStyle={[T.listContent,{flexGrow:1}]}keyboardShouldPersistTaps="handled"/>
|
|
58
58
|
</>:null}
|
|
59
59
|
</C>
|
|
60
60
|
</>});export default tt;
|
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
import"react";import{
|
|
2
|
-
<
|
|
3
|
-
<N style={t.backdrop}onPress={r}/>
|
|
1
|
+
import"react";import{View as C,Text as B,StyleSheet as R,Pressable as J,Platform as I}from"react-native";import P from"../TouchableScale";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as x}from"../../styles/AppFonts";import{TrashIcon as K,AlertTriangleIcon as Q,ResetIcon as U,InfoCircleIcon as X,CloseWhite as Y}from"../NetworkIcons";import{triggerNativeHaptic as j}from"../../native/NativeInspector";import{useTranslation as Z}from"../../i18n";export const ConfirmationModal=({visible:A,title:H,message:V,confirmText:$,cancelText:L,isDestructive:o=!0,icon:T="trash",onConfirm:D,onCancel:M})=>{const{t:F}=Z();if(!A)return null;const O=$||F("common.confirm","Confirm"),W=L||F("common.cancel","Cancel"),N=()=>{j(o?"heavy":"medium"),D()},S=()=>{j("light"),M()},q=()=>{switch(T){case"trash":return<K size={24}color={e.red500}/>;case"alert":return<Q size={24}color={e.amber500}/>;case"reset":return<U size={24}color={e.purple}/>;default:return<X size={24}color={e.purple}/>}},E=o?e.red100:T==="alert"?e.amber100:e.purple50,G=o?`${e.red500}4D`:T==="alert"?e.amber200:e.purple200;return<C style={[R.absoluteFill,t.overlay,{zIndex:999999,elevation:999}]}>
|
|
2
|
+
<J style={t.backdrop}onPress={S}/>
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
<C style={t.card}>
|
|
5
|
+
|
|
6
|
+
<P onPress={S}hitSlop={8}style={t.cornerCloseBtn}>
|
|
7
|
+
<Y size={11}color={e.grayTextWeak}/>
|
|
8
|
+
</P>
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
|
|
11
|
+
<C style={[t.iconBadge,{backgroundColor:E,borderColor:G}]}>
|
|
12
|
+
{q()}
|
|
13
|
+
</C>
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
|
|
16
|
+
<B style={t.title}>{H}</B>
|
|
17
|
+
<B style={t.message}>{V}</B>
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
|
|
20
|
+
<C style={t.buttonRow}>
|
|
21
|
+
<P accessible={!0}accessibilityRole="button"accessibilityLabel={W}onPress={S}style={t.cancelBtn}>
|
|
22
|
+
<B style={t.cancelBtnText}>{W}</B>
|
|
23
|
+
</P>
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</C>
|
|
25
|
+
<P accessible={!0}accessibilityRole="button"accessibilityLabel={O}onPress={N}style={[t.confirmBtn,o?t.confirmBtnDestructive:t.confirmBtnPrimary]}>
|
|
26
|
+
<B style={t.confirmBtnText}>{O}</B>
|
|
27
|
+
</P>
|
|
30
28
|
</C>
|
|
31
29
|
</C>
|
|
32
|
-
</
|
|
30
|
+
</C>};const t=R.create({overlay:{flex:1,backgroundColor:`${e.slate900}A6`,justifyContent:"center",alignItems:"center",paddingHorizontal:24},backdrop:{...R.absoluteFillObject},card:{width:"100%",maxWidth:340,backgroundColor:e.white,borderRadius:22,paddingTop:24,paddingBottom:18,paddingHorizontal:20,alignItems:"center",borderWidth:1,borderColor:`${e.white}CC`,...I.select({ios:{shadowColor:e.slate900,shadowOffset:{width:0,height:12},shadowOpacity:.28,shadowRadius:24},android:{elevation:12}})},cornerCloseBtn:{position:"absolute",top:14,right:14,width:28,height:28,borderRadius:14,backgroundColor:e.graySurface,alignItems:"center",justifyContent:"center"},iconBadge:{width:54,height:54,borderRadius:27,borderWidth:1.5,alignItems:"center",justifyContent:"center",marginBottom:14},title:{fontFamily:x.interBold,fontSize:17,color:e.slate900,textAlign:"center",marginBottom:8,letterSpacing:-.2},message:{fontFamily:x.interRegular,fontSize:13,color:e.grayTextWeak,textAlign:"center",lineHeight:19,paddingHorizontal:8,marginBottom:22},buttonRow:{flexDirection:"row",alignItems:"center",gap:10,width:"100%"},cancelBtn:{flex:1,height:44,borderRadius:12,backgroundColor:e.graySurface,borderWidth:1,borderColor:e.grayBorderSecondary,alignItems:"center",justifyContent:"center"},cancelBtnText:{fontFamily:x.interSemiBold,fontSize:14,color:e.grayText},confirmBtn:{flex:1.15,height:44,borderRadius:12,alignItems:"center",justifyContent:"center"},confirmBtnDestructive:{backgroundColor:e.red500,...I.select({ios:{shadowColor:e.red500,shadowOffset:{width:0,height:4},shadowOpacity:.35,shadowRadius:8},android:{elevation:4}})},confirmBtnPrimary:{backgroundColor:e.purple,...I.select({ios:{shadowColor:e.purple,shadowOffset:{width:0,height:4},shadowOpacity:.35,shadowRadius:8},android:{elevation:4}})},confirmBtnText:{fontFamily:x.interBold,fontSize:14,color:e.white,letterSpacing:.2}});
|