@buoy-gg/network 7.0.25 → 7.0.27
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/lib/commonjs/network/components/NetworkDetailStepper.js +2 -1
- package/lib/commonjs/network/components/NetworkEventDetailView.js +74 -72
- package/lib/commonjs/network/components/NetworkEventItemCompact.js +24 -20
- package/lib/commonjs/network/components/NetworkEventItemCompact.web.js +24 -6
- package/lib/commonjs/network/components/NetworkFilterViewV3.js +12 -12
- package/lib/commonjs/network/components/NetworkHeaderLive.js +25 -29
- package/lib/commonjs/network/components/NetworkHeaderLive.web.js +24 -6
- package/lib/commonjs/network/components/NetworkHeaderMenu.js +10 -9
- package/lib/commonjs/network/components/NetworkListScreen.js +2 -1
- package/lib/commonjs/network/components/NetworkListScreen.web.js +24 -6
- package/lib/commonjs/network/components/NetworkModal.js +45 -31
- package/lib/commonjs/network/components/NetworkOverrideHeaderButton.js +10 -7
- package/lib/commonjs/network/components/NetworkOverridesButton.js +7 -7
- package/lib/commonjs/network/sync/networkSyncAdapter.js +36 -16
- package/lib/commonjs/network/utils/networkEventStore.js +26 -0
- package/lib/commonjs/network/utils/networkListener.js +173 -39
- package/lib/module/network/components/NetworkDetailStepper.js +2 -1
- package/lib/module/network/components/NetworkEventDetailView.js +75 -73
- package/lib/module/network/components/NetworkEventItemCompact.js +25 -21
- package/lib/module/network/components/NetworkEventItemCompact.web.js +24 -6
- package/lib/module/network/components/NetworkFilterViewV3.js +13 -13
- package/lib/module/network/components/NetworkHeaderLive.js +26 -30
- package/lib/module/network/components/NetworkHeaderLive.web.js +24 -6
- package/lib/module/network/components/NetworkHeaderMenu.js +11 -10
- package/lib/module/network/components/NetworkListScreen.js +3 -2
- package/lib/module/network/components/NetworkListScreen.web.js +24 -6
- package/lib/module/network/components/NetworkModal.js +46 -32
- package/lib/module/network/components/NetworkOverrideHeaderButton.js +11 -8
- package/lib/module/network/components/NetworkOverridesButton.js +8 -8
- package/lib/module/network/sync/networkSyncAdapter.js +37 -17
- package/lib/module/network/utils/networkEventStore.js +26 -0
- package/lib/module/network/utils/networkListener.js +171 -38
- package/lib/typescript/network/components/NetworkDetailStepper.d.ts.map +1 -1
- package/lib/typescript/network/components/NetworkEventDetailView.d.ts.map +1 -1
- package/lib/typescript/network/components/NetworkEventItemCompact.d.ts.map +1 -1
- package/lib/typescript/network/components/NetworkEventItemCompact.web.d.ts.map +1 -1
- package/lib/typescript/network/components/NetworkFilterViewV3.d.ts.map +1 -1
- package/lib/typescript/network/components/NetworkHeaderLive.d.ts.map +1 -1
- package/lib/typescript/network/components/NetworkHeaderLive.web.d.ts.map +1 -1
- package/lib/typescript/network/components/NetworkListScreen.d.ts.map +1 -1
- package/lib/typescript/network/components/NetworkListScreen.web.d.ts.map +1 -1
- package/lib/typescript/network/components/NetworkModal.d.ts.map +1 -1
- package/lib/typescript/network/sync/networkSyncAdapter.d.ts +1 -0
- package/lib/typescript/network/sync/networkSyncAdapter.d.ts.map +1 -1
- package/lib/typescript/network/utils/networkEventStore.d.ts +17 -0
- package/lib/typescript/network/utils/networkEventStore.d.ts.map +1 -1
- package/lib/typescript/network/utils/networkListener.d.ts +61 -5
- package/lib/typescript/network/utils/networkListener.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -102,6 +102,7 @@ const NetworkDetailStepper = exports.NetworkDetailStepper = /*#__PURE__*/(0, _re
|
|
|
102
102
|
itemLabel: "Request",
|
|
103
103
|
applySafeAreaInset: applySafeAreaInset,
|
|
104
104
|
onPrevious: stepPrevious,
|
|
105
|
-
onNext: stepNext
|
|
105
|
+
onNext: stepNext,
|
|
106
|
+
variant: "night"
|
|
106
107
|
});
|
|
107
108
|
});
|
|
@@ -16,7 +16,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
* Colour for the icons that merely LABEL a section (Sent/Received, the JSON
|
|
17
17
|
* body glyphs). The Lock/Unlock pair keeps its colour because
|
|
18
18
|
* secure-vs-insecure is a genuine signal, as does the status pill.
|
|
19
|
-
*/const NEUTRAL_ICON = _sharedUi.
|
|
19
|
+
*/const NEUTRAL_ICON = _sharedUi.night.color.accent;
|
|
20
20
|
|
|
21
21
|
/** Hoisted so the defaults don't mint a new Set/function per render. */
|
|
22
22
|
const EMPTY_PATTERNS = new Set();
|
|
@@ -125,10 +125,10 @@ const CollapsibleSection = ({
|
|
|
125
125
|
}) : null]
|
|
126
126
|
}), isOpen ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronUp, {
|
|
127
127
|
size: 16,
|
|
128
|
-
color: _sharedUi.
|
|
128
|
+
color: _sharedUi.night.color.textSecondary
|
|
129
129
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronDown, {
|
|
130
130
|
size: 16,
|
|
131
|
-
color: _sharedUi.
|
|
131
|
+
color: _sharedUi.night.color.textSecondary
|
|
132
132
|
})]
|
|
133
133
|
}), isOpen ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
134
134
|
style: styles.collapsibleContent,
|
|
@@ -233,7 +233,7 @@ const UrlBreakdown = ({
|
|
|
233
233
|
activeOpacity: 0.7,
|
|
234
234
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Copy, {
|
|
235
235
|
size: 14,
|
|
236
|
-
color: _sharedUi.
|
|
236
|
+
color: _sharedUi.night.color.textSecondary
|
|
237
237
|
})
|
|
238
238
|
})]
|
|
239
239
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
@@ -260,10 +260,10 @@ const UrlBreakdown = ({
|
|
|
260
260
|
children: Object.keys(urlParts.params).length
|
|
261
261
|
}), showParams ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronUp, {
|
|
262
262
|
size: 14,
|
|
263
|
-
color: _sharedUi.
|
|
263
|
+
color: _sharedUi.night.color.textSecondary
|
|
264
264
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronDown, {
|
|
265
265
|
size: 14,
|
|
266
|
-
color: _sharedUi.
|
|
266
|
+
color: _sharedUi.night.color.textSecondary
|
|
267
267
|
})]
|
|
268
268
|
}), showParams ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_dataViewer.DataViewer, {
|
|
269
269
|
title: "",
|
|
@@ -438,7 +438,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
438
438
|
style: styles.pendingBadge,
|
|
439
439
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Clock, {
|
|
440
440
|
size: 10,
|
|
441
|
-
color: _sharedUi.
|
|
441
|
+
color: _sharedUi.night.color.warning
|
|
442
442
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
443
443
|
style: styles.pendingBadgeText,
|
|
444
444
|
children: "Pending"
|
|
@@ -447,7 +447,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
447
447
|
style: styles.httpDuration,
|
|
448
448
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Clock, {
|
|
449
449
|
size: 10,
|
|
450
|
-
color: _sharedUi.
|
|
450
|
+
color: _sharedUi.night.color.textTertiary
|
|
451
451
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
452
452
|
style: styles.httpDurationText,
|
|
453
453
|
children: (0, _formatting.formatDuration)(event.duration)
|
|
@@ -456,7 +456,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
456
456
|
style: styles.overrideBadge,
|
|
457
457
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.FlaskConical, {
|
|
458
458
|
size: 10,
|
|
459
|
-
color: _sharedUi.
|
|
459
|
+
color: _sharedUi.night.color.warning
|
|
460
460
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
461
461
|
style: styles.overrideBadgeText,
|
|
462
462
|
children: event.override.ruleName || "Overridden"
|
|
@@ -477,7 +477,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
477
477
|
activeOpacity: 0.7,
|
|
478
478
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Copy, {
|
|
479
479
|
size: 14,
|
|
480
|
-
color: _sharedUi.
|
|
480
|
+
color: _sharedUi.night.color.textSecondary
|
|
481
481
|
})
|
|
482
482
|
})]
|
|
483
483
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(UrlBreakdown, {
|
|
@@ -492,7 +492,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
492
492
|
style: styles.errorBox,
|
|
493
493
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.AlertCircle, {
|
|
494
494
|
size: 12,
|
|
495
|
-
color: _sharedUi.
|
|
495
|
+
color: _sharedUi.night.color.danger
|
|
496
496
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
497
497
|
style: styles.errorText,
|
|
498
498
|
children: event.error
|
|
@@ -504,7 +504,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
504
504
|
style: styles.timingRow,
|
|
505
505
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Clock, {
|
|
506
506
|
size: 12,
|
|
507
|
-
color: _sharedUi.
|
|
507
|
+
color: _sharedUi.night.color.textSecondary
|
|
508
508
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
509
509
|
style: styles.timingLabel,
|
|
510
510
|
children: "Started:"
|
|
@@ -520,7 +520,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
520
520
|
style: styles.sizeItem,
|
|
521
521
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Upload, {
|
|
522
522
|
size: 10,
|
|
523
|
-
color: _sharedUi.
|
|
523
|
+
color: _sharedUi.night.color.info
|
|
524
524
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
525
525
|
style: styles.sizeLabel,
|
|
526
526
|
children: "Sent:"
|
|
@@ -554,7 +554,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
554
554
|
title: "Request Headers",
|
|
555
555
|
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Upload, {
|
|
556
556
|
size: 14,
|
|
557
|
-
color: _sharedUi.
|
|
557
|
+
color: _sharedUi.night.color.info
|
|
558
558
|
}),
|
|
559
559
|
defaultOpen: false,
|
|
560
560
|
count: Object.keys(requestHeaders).length,
|
|
@@ -598,7 +598,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
598
598
|
title: "Request Body",
|
|
599
599
|
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.FileJson, {
|
|
600
600
|
size: 14,
|
|
601
|
-
color: _sharedUi.
|
|
601
|
+
color: _sharedUi.night.color.accent
|
|
602
602
|
}),
|
|
603
603
|
defaultOpen: false,
|
|
604
604
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
@@ -616,7 +616,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
616
616
|
title: "Request Body",
|
|
617
617
|
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.FileJson, {
|
|
618
618
|
size: 14,
|
|
619
|
-
color: _sharedUi.
|
|
619
|
+
color: _sharedUi.night.color.accent
|
|
620
620
|
}),
|
|
621
621
|
defaultOpen: true,
|
|
622
622
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
@@ -659,7 +659,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
659
659
|
title: "Filter Options",
|
|
660
660
|
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Filter, {
|
|
661
661
|
size: 14,
|
|
662
|
-
color: _sharedUi.
|
|
662
|
+
color: _sharedUi.night.color.warning
|
|
663
663
|
}),
|
|
664
664
|
defaultOpen: false,
|
|
665
665
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
@@ -684,7 +684,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
684
684
|
style: styles.filterOptionLeft,
|
|
685
685
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Globe, {
|
|
686
686
|
size: 16,
|
|
687
|
-
color: isDomainIgnored ? _sharedUi.
|
|
687
|
+
color: isDomainIgnored ? _sharedUi.night.color.warning : _sharedUi.night.color.textTertiary
|
|
688
688
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
689
689
|
style: styles.filterOptionContent,
|
|
690
690
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
@@ -709,7 +709,7 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
709
709
|
style: styles.filterOptionLeft,
|
|
710
710
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Link, {
|
|
711
711
|
size: 16,
|
|
712
|
-
color: isUrlIgnored ? _sharedUi.
|
|
712
|
+
color: isUrlIgnored ? _sharedUi.night.color.warning : _sharedUi.night.color.textTertiary
|
|
713
713
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
714
714
|
style: styles.filterOptionContent,
|
|
715
715
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
@@ -751,16 +751,17 @@ ${JSON.stringify(requestDetails.responseData, null, 2)}
|
|
|
751
751
|
const styles = _reactNative.StyleSheet.create({
|
|
752
752
|
container: {
|
|
753
753
|
flex: 1,
|
|
754
|
-
|
|
754
|
+
// Transparent so the night sheet's star field shows through.
|
|
755
|
+
backgroundColor: "transparent"
|
|
755
756
|
},
|
|
756
757
|
// Request details section - always visible
|
|
757
758
|
requestDetailsSection: {
|
|
758
759
|
marginHorizontal: 12,
|
|
759
760
|
marginTop: 12,
|
|
760
|
-
backgroundColor: _sharedUi.
|
|
761
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
761
762
|
borderRadius: 8,
|
|
762
763
|
borderWidth: 1,
|
|
763
|
-
borderColor: _sharedUi.
|
|
764
|
+
borderColor: _sharedUi.night.color.border,
|
|
764
765
|
padding: 12
|
|
765
766
|
},
|
|
766
767
|
httpHeader: {
|
|
@@ -771,13 +772,13 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
771
772
|
flexWrap: "nowrap"
|
|
772
773
|
},
|
|
773
774
|
httpMethodBadge: {
|
|
774
|
-
backgroundColor: _sharedUi.
|
|
775
|
+
backgroundColor: _sharedUi.night.color.infoSoft,
|
|
775
776
|
paddingHorizontal: 8,
|
|
776
777
|
paddingVertical: 4,
|
|
777
778
|
borderRadius: 4
|
|
778
779
|
},
|
|
779
780
|
httpMethod: {
|
|
780
|
-
color: _sharedUi.
|
|
781
|
+
color: _sharedUi.night.color.info,
|
|
781
782
|
fontSize: 11,
|
|
782
783
|
fontWeight: "700",
|
|
783
784
|
letterSpacing: 0.5
|
|
@@ -795,13 +796,13 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
795
796
|
flexDirection: "row",
|
|
796
797
|
alignItems: "center",
|
|
797
798
|
gap: 4,
|
|
798
|
-
backgroundColor: _sharedUi.
|
|
799
|
+
backgroundColor: _sharedUi.night.color.warningSoft,
|
|
799
800
|
paddingHorizontal: 8,
|
|
800
801
|
paddingVertical: 4,
|
|
801
802
|
borderRadius: 4
|
|
802
803
|
},
|
|
803
804
|
pendingBadgeText: {
|
|
804
|
-
color: _sharedUi.
|
|
805
|
+
color: _sharedUi.night.color.warning,
|
|
805
806
|
fontSize: 11,
|
|
806
807
|
fontWeight: "600"
|
|
807
808
|
},
|
|
@@ -811,7 +812,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
811
812
|
gap: 4
|
|
812
813
|
},
|
|
813
814
|
httpDurationText: {
|
|
814
|
-
color: _sharedUi.
|
|
815
|
+
color: _sharedUi.night.color.textSecondary,
|
|
815
816
|
fontSize: 11
|
|
816
817
|
},
|
|
817
818
|
overrideBadge: {
|
|
@@ -821,10 +822,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
821
822
|
paddingHorizontal: 6,
|
|
822
823
|
paddingVertical: 3,
|
|
823
824
|
borderRadius: 4,
|
|
824
|
-
backgroundColor: _sharedUi.
|
|
825
|
+
backgroundColor: _sharedUi.night.color.warningSoft
|
|
825
826
|
},
|
|
826
827
|
overrideBadgeText: {
|
|
827
|
-
color: _sharedUi.
|
|
828
|
+
color: _sharedUi.night.color.warning,
|
|
828
829
|
fontSize: 10,
|
|
829
830
|
fontWeight: "700"
|
|
830
831
|
},
|
|
@@ -835,7 +836,8 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
835
836
|
},
|
|
836
837
|
// URL breakdown styles
|
|
837
838
|
urlBreakdown: {
|
|
838
|
-
|
|
839
|
+
// Inset code box — darker than the card, the night track color.
|
|
840
|
+
backgroundColor: _sharedUi.night.color.bg,
|
|
839
841
|
borderRadius: 4,
|
|
840
842
|
padding: 8
|
|
841
843
|
},
|
|
@@ -846,13 +848,13 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
846
848
|
marginBottom: 4
|
|
847
849
|
},
|
|
848
850
|
urlDomain: {
|
|
849
|
-
color: _sharedUi.
|
|
851
|
+
color: _sharedUi.night.color.text,
|
|
850
852
|
fontSize: 12,
|
|
851
853
|
fontWeight: "600",
|
|
852
854
|
flex: 1
|
|
853
855
|
},
|
|
854
856
|
urlProtocol: {
|
|
855
|
-
color: _sharedUi.
|
|
857
|
+
color: _sharedUi.night.color.textTertiary,
|
|
856
858
|
fontSize: 10
|
|
857
859
|
},
|
|
858
860
|
copyButton: {
|
|
@@ -862,12 +864,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
862
864
|
paddingLeft: 18
|
|
863
865
|
},
|
|
864
866
|
urlPath: {
|
|
865
|
-
color: _sharedUi.
|
|
867
|
+
color: _sharedUi.night.color.textSecondary,
|
|
866
868
|
fontSize: 11,
|
|
867
869
|
fontFamily: "monospace"
|
|
868
870
|
},
|
|
869
871
|
urlQueryString: {
|
|
870
|
-
color: _sharedUi.
|
|
872
|
+
color: _sharedUi.night.color.info,
|
|
871
873
|
fontSize: 11,
|
|
872
874
|
fontFamily: "monospace"
|
|
873
875
|
},
|
|
@@ -881,15 +883,15 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
881
883
|
justifyContent: "space-between",
|
|
882
884
|
paddingHorizontal: 12,
|
|
883
885
|
paddingVertical: 10,
|
|
884
|
-
backgroundColor: _sharedUi.
|
|
886
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated,
|
|
885
887
|
borderRadius: 8,
|
|
886
888
|
borderWidth: 1,
|
|
887
|
-
borderColor: _sharedUi.
|
|
889
|
+
borderColor: _sharedUi.night.color.border,
|
|
888
890
|
marginBottom: 8
|
|
889
891
|
},
|
|
890
892
|
queryParamsToggleText: {
|
|
891
893
|
flexGrow: 0,
|
|
892
|
-
color: _sharedUi.
|
|
894
|
+
color: _sharedUi.night.color.text,
|
|
893
895
|
fontSize: 12,
|
|
894
896
|
fontWeight: "600",
|
|
895
897
|
letterSpacing: 0.3
|
|
@@ -898,10 +900,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
898
900
|
timingSection: {
|
|
899
901
|
marginHorizontal: 12,
|
|
900
902
|
marginTop: 8,
|
|
901
|
-
backgroundColor: _sharedUi.
|
|
903
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
902
904
|
borderRadius: 8,
|
|
903
905
|
borderWidth: 1,
|
|
904
|
-
borderColor: _sharedUi.
|
|
906
|
+
borderColor: _sharedUi.night.color.border,
|
|
905
907
|
padding: 12
|
|
906
908
|
},
|
|
907
909
|
timingRow: {
|
|
@@ -913,16 +915,16 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
913
915
|
flexWrap: "wrap"
|
|
914
916
|
},
|
|
915
917
|
timingLabel: {
|
|
916
|
-
color: _sharedUi.
|
|
918
|
+
color: _sharedUi.night.color.textSecondary,
|
|
917
919
|
fontSize: 11
|
|
918
920
|
},
|
|
919
921
|
timingValue: {
|
|
920
|
-
color: _sharedUi.
|
|
922
|
+
color: _sharedUi.night.color.text,
|
|
921
923
|
fontSize: 11,
|
|
922
924
|
fontWeight: "600"
|
|
923
925
|
},
|
|
924
926
|
timingExact: {
|
|
925
|
-
color: _sharedUi.
|
|
927
|
+
color: _sharedUi.night.color.textTertiary,
|
|
926
928
|
fontSize: 10,
|
|
927
929
|
marginLeft: 4
|
|
928
930
|
},
|
|
@@ -940,11 +942,11 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
940
942
|
gap: 4
|
|
941
943
|
},
|
|
942
944
|
sizeLabel: {
|
|
943
|
-
color: _sharedUi.
|
|
945
|
+
color: _sharedUi.night.color.textTertiary,
|
|
944
946
|
fontSize: 10
|
|
945
947
|
},
|
|
946
948
|
sizeValue: {
|
|
947
|
-
color: _sharedUi.
|
|
949
|
+
color: _sharedUi.night.color.info,
|
|
948
950
|
fontSize: 10,
|
|
949
951
|
fontFamily: "monospace",
|
|
950
952
|
fontWeight: "600"
|
|
@@ -952,7 +954,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
952
954
|
/* ---- Timing phases ---- */
|
|
953
955
|
phaseDivider: {
|
|
954
956
|
height: 1,
|
|
955
|
-
backgroundColor: _sharedUi.
|
|
957
|
+
backgroundColor: _sharedUi.night.color.border,
|
|
956
958
|
marginTop: 12,
|
|
957
959
|
marginBottom: 12
|
|
958
960
|
},
|
|
@@ -969,17 +971,17 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
969
971
|
},
|
|
970
972
|
phaseLabel: {
|
|
971
973
|
fontSize: 12,
|
|
972
|
-
color: _sharedUi.
|
|
974
|
+
color: _sharedUi.night.color.textSecondary
|
|
973
975
|
},
|
|
974
976
|
phaseHint: {
|
|
975
977
|
fontSize: 10,
|
|
976
|
-
color: _sharedUi.
|
|
978
|
+
color: _sharedUi.night.color.textTertiary
|
|
977
979
|
},
|
|
978
980
|
phaseTrack: {
|
|
979
981
|
flex: 1,
|
|
980
982
|
height: 7,
|
|
981
983
|
borderRadius: 4,
|
|
982
|
-
backgroundColor: _sharedUi.
|
|
984
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated,
|
|
983
985
|
justifyContent: "center",
|
|
984
986
|
overflow: "hidden"
|
|
985
987
|
},
|
|
@@ -992,16 +994,16 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
992
994
|
textAlign: "right",
|
|
993
995
|
fontSize: 12,
|
|
994
996
|
fontFamily: "monospace",
|
|
995
|
-
color: _sharedUi.
|
|
997
|
+
color: _sharedUi.night.color.text
|
|
996
998
|
},
|
|
997
999
|
// Collapsible section styles
|
|
998
1000
|
collapsibleSection: {
|
|
999
1001
|
marginHorizontal: 12,
|
|
1000
1002
|
marginTop: 8,
|
|
1001
|
-
backgroundColor: _sharedUi.
|
|
1003
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
1002
1004
|
borderRadius: 8,
|
|
1003
1005
|
borderWidth: 1,
|
|
1004
|
-
borderColor: _sharedUi.
|
|
1006
|
+
borderColor: _sharedUi.night.color.border,
|
|
1005
1007
|
overflow: "hidden"
|
|
1006
1008
|
},
|
|
1007
1009
|
collapsibleHeader: {
|
|
@@ -1011,7 +1013,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1011
1013
|
padding: 12,
|
|
1012
1014
|
// `background.hover` is the SELECTION grey — heavy enough here that every
|
|
1013
1015
|
// section header read as a toolbar. The design uses a near-white strip.
|
|
1014
|
-
backgroundColor: _sharedUi.
|
|
1016
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated
|
|
1015
1017
|
},
|
|
1016
1018
|
collapsibleTitle: {
|
|
1017
1019
|
flexDirection: "row",
|
|
@@ -1019,13 +1021,13 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1019
1021
|
gap: 8
|
|
1020
1022
|
},
|
|
1021
1023
|
collapsibleTitleText: {
|
|
1022
|
-
color: _sharedUi.
|
|
1024
|
+
color: _sharedUi.night.color.text,
|
|
1023
1025
|
fontSize: 13,
|
|
1024
1026
|
fontWeight: "600"
|
|
1025
1027
|
},
|
|
1026
1028
|
/** The "how much is in here" number beside a section title. */
|
|
1027
1029
|
collapsibleCount: {
|
|
1028
|
-
color: _sharedUi.
|
|
1030
|
+
color: _sharedUi.night.color.textTertiary,
|
|
1029
1031
|
fontSize: 11.5,
|
|
1030
1032
|
fontFamily: "monospace"
|
|
1031
1033
|
},
|
|
@@ -1047,19 +1049,19 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1047
1049
|
flexDirection: "row",
|
|
1048
1050
|
alignItems: "center",
|
|
1049
1051
|
gap: 6,
|
|
1050
|
-
backgroundColor: _sharedUi.
|
|
1052
|
+
backgroundColor: _sharedUi.night.color.dangerSoft,
|
|
1051
1053
|
padding: 8,
|
|
1052
1054
|
borderRadius: 4,
|
|
1053
1055
|
marginTop: 8
|
|
1054
1056
|
},
|
|
1055
1057
|
errorText: {
|
|
1056
|
-
color: _sharedUi.
|
|
1058
|
+
color: _sharedUi.night.color.danger,
|
|
1057
1059
|
fontSize: 11,
|
|
1058
1060
|
flex: 1
|
|
1059
1061
|
},
|
|
1060
1062
|
// Empty state
|
|
1061
1063
|
emptyText: {
|
|
1062
|
-
color: _sharedUi.
|
|
1064
|
+
color: _sharedUi.night.color.textTertiary,
|
|
1063
1065
|
fontSize: 12,
|
|
1064
1066
|
fontStyle: "italic",
|
|
1065
1067
|
textAlign: "center"
|
|
@@ -1072,15 +1074,15 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1072
1074
|
flexDirection: "row",
|
|
1073
1075
|
alignItems: "center",
|
|
1074
1076
|
justifyContent: "space-between",
|
|
1075
|
-
backgroundColor: _sharedUi.
|
|
1077
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated,
|
|
1076
1078
|
borderRadius: 8,
|
|
1077
1079
|
padding: 12,
|
|
1078
1080
|
borderWidth: 1,
|
|
1079
|
-
borderColor: _sharedUi.
|
|
1081
|
+
borderColor: _sharedUi.night.color.border
|
|
1080
1082
|
},
|
|
1081
1083
|
filterOptionActive: {
|
|
1082
|
-
backgroundColor: _sharedUi.
|
|
1083
|
-
borderColor: _sharedUi.
|
|
1084
|
+
backgroundColor: _sharedUi.night.color.warningSoft,
|
|
1085
|
+
borderColor: _sharedUi.night.color.warning + "33"
|
|
1084
1086
|
},
|
|
1085
1087
|
filterOptionLeft: {
|
|
1086
1088
|
flexDirection: "row",
|
|
@@ -1092,14 +1094,14 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1092
1094
|
flex: 1
|
|
1093
1095
|
},
|
|
1094
1096
|
filterOptionLabel: {
|
|
1095
|
-
color: _sharedUi.
|
|
1097
|
+
color: _sharedUi.night.color.textSecondary,
|
|
1096
1098
|
fontSize: 11,
|
|
1097
1099
|
marginBottom: 2,
|
|
1098
1100
|
textTransform: "uppercase",
|
|
1099
1101
|
letterSpacing: 0.5
|
|
1100
1102
|
},
|
|
1101
1103
|
filterOptionValue: {
|
|
1102
|
-
color: _sharedUi.
|
|
1104
|
+
color: _sharedUi.night.color.text,
|
|
1103
1105
|
fontSize: 13,
|
|
1104
1106
|
fontFamily: "monospace"
|
|
1105
1107
|
},
|
|
@@ -1107,32 +1109,32 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1107
1109
|
paddingHorizontal: 10,
|
|
1108
1110
|
paddingVertical: 6,
|
|
1109
1111
|
borderRadius: 4,
|
|
1110
|
-
backgroundColor: _sharedUi.
|
|
1112
|
+
backgroundColor: _sharedUi.night.color.bg,
|
|
1111
1113
|
borderWidth: 1,
|
|
1112
|
-
borderColor: _sharedUi.
|
|
1114
|
+
borderColor: _sharedUi.night.color.border
|
|
1113
1115
|
},
|
|
1114
1116
|
filterToggleActive: {
|
|
1115
|
-
backgroundColor: _sharedUi.
|
|
1116
|
-
borderColor: _sharedUi.
|
|
1117
|
+
backgroundColor: _sharedUi.night.color.warningSoft,
|
|
1118
|
+
borderColor: _sharedUi.night.color.warning + "4D"
|
|
1117
1119
|
},
|
|
1118
1120
|
filterToggleText: {
|
|
1119
1121
|
fontSize: 10,
|
|
1120
1122
|
fontWeight: "600",
|
|
1121
|
-
color: _sharedUi.
|
|
1123
|
+
color: _sharedUi.night.color.textTertiary,
|
|
1122
1124
|
letterSpacing: 0.5
|
|
1123
1125
|
},
|
|
1124
1126
|
filterToggleTextActive: {
|
|
1125
|
-
color: _sharedUi.
|
|
1127
|
+
color: _sharedUi.night.color.warning
|
|
1126
1128
|
},
|
|
1127
1129
|
filterInfoBox: {
|
|
1128
|
-
backgroundColor: _sharedUi.
|
|
1130
|
+
backgroundColor: _sharedUi.night.color.infoSoft,
|
|
1129
1131
|
borderRadius: 6,
|
|
1130
1132
|
padding: 10,
|
|
1131
1133
|
borderWidth: 1,
|
|
1132
|
-
borderColor: _sharedUi.
|
|
1134
|
+
borderColor: _sharedUi.night.color.info + "33"
|
|
1133
1135
|
},
|
|
1134
1136
|
filterInfoText: {
|
|
1135
|
-
color: _sharedUi.
|
|
1137
|
+
color: _sharedUi.night.color.textSecondary,
|
|
1136
1138
|
fontSize: 11,
|
|
1137
1139
|
lineHeight: 16
|
|
1138
1140
|
}
|
|
@@ -11,7 +11,9 @@ var _formatting = require("../utils/formatting");
|
|
|
11
11
|
var _useTickEveryMinute = require("../hooks/useTickEveryMinute");
|
|
12
12
|
var _formatGraphQLVariables = require("../utils/formatGraphQLVariables");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
// Get color based on status
|
|
14
|
+
// Get color based on status. Deliberately kept on the macOS semantic palette
|
|
15
|
+
// (not the night tones) — the classic status colors read well on the night
|
|
16
|
+
// rows and stay consistent with the status colors used elsewhere.
|
|
15
17
|
function getStatusColor(status, error) {
|
|
16
18
|
if (error) return _sharedUi.macOSColors.semantic.error;
|
|
17
19
|
if (!status) return _sharedUi.macOSColors.semantic.warning;
|
|
@@ -81,7 +83,7 @@ function StatusIndicator({
|
|
|
81
83
|
style: styles.pendingBadge,
|
|
82
84
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Clock, {
|
|
83
85
|
size: 10,
|
|
84
|
-
color: _sharedUi.
|
|
86
|
+
color: _sharedUi.night.color.warning
|
|
85
87
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
86
88
|
style: styles.pendingText,
|
|
87
89
|
children: "..."
|
|
@@ -93,7 +95,7 @@ function StatusIndicator({
|
|
|
93
95
|
style: styles.errorBadge,
|
|
94
96
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.AlertCircle, {
|
|
95
97
|
size: 10,
|
|
96
|
-
color: _sharedUi.
|
|
98
|
+
color: _sharedUi.night.color.danger
|
|
97
99
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
98
100
|
style: styles.errorText,
|
|
99
101
|
children: "ERR"
|
|
@@ -123,7 +125,7 @@ function SizeIndicators({
|
|
|
123
125
|
style: styles.sizeItem,
|
|
124
126
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Upload, {
|
|
125
127
|
size: 8,
|
|
126
|
-
color: _sharedUi.
|
|
128
|
+
color: _sharedUi.night.color.info
|
|
127
129
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
128
130
|
style: styles.sizeText,
|
|
129
131
|
children: (0, _formatting.formatBytes)(requestSize)
|
|
@@ -132,7 +134,7 @@ function SizeIndicators({
|
|
|
132
134
|
style: styles.sizeItem,
|
|
133
135
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Download, {
|
|
134
136
|
size: 8,
|
|
135
|
-
color: _sharedUi.
|
|
137
|
+
color: _sharedUi.night.color.accent
|
|
136
138
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
137
139
|
style: styles.sizeText,
|
|
138
140
|
children: (0, _formatting.formatBytes)(responseSize)
|
|
@@ -208,13 +210,14 @@ function NetworkEventItemCompact({
|
|
|
208
210
|
style: styles.topRightContainer,
|
|
209
211
|
children: [pinned ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Pin, {
|
|
210
212
|
size: 10,
|
|
211
|
-
|
|
213
|
+
active: true,
|
|
214
|
+
color: _sharedUi.night.color.info
|
|
212
215
|
}) : null, saved ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Bookmark, {
|
|
213
216
|
size: 10,
|
|
214
|
-
color: _sharedUi.
|
|
217
|
+
color: _sharedUi.night.color.accent
|
|
215
218
|
}) : null, overridden || event.override ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.FlaskConical, {
|
|
216
219
|
size: 10,
|
|
217
|
-
color: _sharedUi.
|
|
220
|
+
color: _sharedUi.night.color.warning
|
|
218
221
|
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(StatusIndicator, {
|
|
219
222
|
event: event,
|
|
220
223
|
isPending: isPending,
|
|
@@ -253,7 +256,7 @@ function NetworkEventItemCompact({
|
|
|
253
256
|
size: "small"
|
|
254
257
|
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronRight, {
|
|
255
258
|
size: 14,
|
|
256
|
-
color: _sharedUi.
|
|
259
|
+
color: _sharedUi.night.color.textTertiary
|
|
257
260
|
})]
|
|
258
261
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
259
262
|
style: styles.bottomRightContainer,
|
|
@@ -279,9 +282,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
279
282
|
alignItems: "center",
|
|
280
283
|
// Translucent instead of DevToolsCard's opaque fill, so the tool background
|
|
281
284
|
// (see ToolBackground) reads THROUGH the list rather than only around it.
|
|
282
|
-
//
|
|
283
|
-
//
|
|
284
|
-
|
|
285
|
+
// Same luminance contract as the old rgba(10,13,20,0.9) scrim (backing
|
|
286
|
+
// stays ≤ ~45 under the catalogue's brightest scenes), re-based on the
|
|
287
|
+
// night surface `#0C0C0C` so rows match the night cards.
|
|
288
|
+
backgroundColor: "rgba(12, 12, 12, 0.9)",
|
|
285
289
|
borderLeftWidth: 3,
|
|
286
290
|
borderLeftColor: "transparent",
|
|
287
291
|
// One hairline per row — the same value DevToolsCard's border uses.
|
|
@@ -311,7 +315,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
311
315
|
},
|
|
312
316
|
urlText: {
|
|
313
317
|
fontSize: 12,
|
|
314
|
-
color: _sharedUi.
|
|
318
|
+
color: _sharedUi.night.color.text,
|
|
315
319
|
lineHeight: 16,
|
|
316
320
|
fontFamily: "monospace"
|
|
317
321
|
},
|
|
@@ -327,7 +331,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
327
331
|
},
|
|
328
332
|
bottomRightText: {
|
|
329
333
|
fontSize: 9,
|
|
330
|
-
color: _sharedUi.
|
|
334
|
+
color: _sharedUi.night.color.textTertiary,
|
|
331
335
|
fontFamily: "monospace"
|
|
332
336
|
},
|
|
333
337
|
statusBadge: {
|
|
@@ -345,12 +349,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
345
349
|
gap: 2,
|
|
346
350
|
paddingHorizontal: 4,
|
|
347
351
|
paddingVertical: 1,
|
|
348
|
-
backgroundColor: _sharedUi.
|
|
352
|
+
backgroundColor: _sharedUi.night.color.warningSoft,
|
|
349
353
|
borderRadius: 3
|
|
350
354
|
},
|
|
351
355
|
pendingText: {
|
|
352
356
|
fontSize: 10,
|
|
353
|
-
color: _sharedUi.
|
|
357
|
+
color: _sharedUi.night.color.warning,
|
|
354
358
|
fontWeight: "600"
|
|
355
359
|
},
|
|
356
360
|
errorBadge: {
|
|
@@ -359,17 +363,17 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
359
363
|
gap: 2,
|
|
360
364
|
paddingHorizontal: 4,
|
|
361
365
|
paddingVertical: 1,
|
|
362
|
-
backgroundColor: _sharedUi.
|
|
366
|
+
backgroundColor: _sharedUi.night.color.dangerSoft,
|
|
363
367
|
borderRadius: 3
|
|
364
368
|
},
|
|
365
369
|
errorText: {
|
|
366
370
|
fontSize: 10,
|
|
367
|
-
color: _sharedUi.
|
|
371
|
+
color: _sharedUi.night.color.danger,
|
|
368
372
|
fontWeight: "600"
|
|
369
373
|
},
|
|
370
374
|
durationText: {
|
|
371
375
|
fontSize: 9,
|
|
372
|
-
color: _sharedUi.
|
|
376
|
+
color: _sharedUi.night.color.textSecondary
|
|
373
377
|
},
|
|
374
378
|
sizeRow: {
|
|
375
379
|
flexDirection: "row",
|
|
@@ -383,7 +387,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
383
387
|
},
|
|
384
388
|
sizeText: {
|
|
385
389
|
fontSize: 8,
|
|
386
|
-
color: _sharedUi.
|
|
390
|
+
color: _sharedUi.night.color.textSecondary,
|
|
387
391
|
fontFamily: "monospace"
|
|
388
392
|
},
|
|
389
393
|
clientText: {
|