@buoy-gg/highlight-updates 7.0.26 → 7.0.28
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/highlight-updates/HighlightUpdatesOverlay.js +4 -4
- package/lib/commonjs/highlight-updates/components/HighlightFilterView.js +110 -87
- package/lib/commonjs/highlight-updates/components/HighlightUpdatesModal.js +12 -8
- package/lib/commonjs/highlight-updates/components/IdentifierBadge.js +2 -2
- package/lib/commonjs/highlight-updates/components/IsolatedRenderList.js +6 -6
- package/lib/commonjs/highlight-updates/components/ModalHeaderContent.js +17 -17
- package/lib/commonjs/highlight-updates/components/RenderCauseBadge.js +22 -20
- package/lib/commonjs/highlight-updates/components/RenderDetailView.js +53 -49
- package/lib/commonjs/highlight-updates/components/RenderHistoryViewer.js +62 -60
- package/lib/commonjs/highlight-updates/components/RenderListItem.js +7 -7
- package/lib/commonjs/highlight-updates/components/RendersCopySettingsView.js +18 -18
- package/lib/commonjs/highlight-updates/components/StatsDisplay.js +4 -4
- package/lib/commonjs/highlight-updates/utils/HighlightUpdatesController.js +55 -3
- package/lib/commonjs/highlight-updates/utils/RenderTracker.js +6 -1
- package/lib/commonjs/highlight-updates/utils/namedComposite.js +41 -0
- package/lib/commonjs/highlight-updates/utils/screenElements.js +50 -25
- package/lib/commonjs/highlight-updates/utils/tapMatch.js +58 -0
- package/lib/module/highlight-updates/HighlightUpdatesOverlay.js +5 -5
- package/lib/module/highlight-updates/components/HighlightFilterView.js +111 -88
- package/lib/module/highlight-updates/components/HighlightUpdatesModal.js +13 -9
- package/lib/module/highlight-updates/components/IdentifierBadge.js +3 -3
- package/lib/module/highlight-updates/components/IsolatedRenderList.js +7 -7
- package/lib/module/highlight-updates/components/ModalHeaderContent.js +18 -18
- package/lib/module/highlight-updates/components/RenderCauseBadge.js +23 -21
- package/lib/module/highlight-updates/components/RenderDetailView.js +54 -50
- package/lib/module/highlight-updates/components/RenderHistoryViewer.js +63 -61
- package/lib/module/highlight-updates/components/RenderListItem.js +8 -8
- package/lib/module/highlight-updates/components/RendersCopySettingsView.js +19 -19
- package/lib/module/highlight-updates/components/StatsDisplay.js +5 -5
- package/lib/module/highlight-updates/utils/HighlightUpdatesController.js +55 -3
- package/lib/module/highlight-updates/utils/RenderTracker.js +6 -1
- package/lib/module/highlight-updates/utils/namedComposite.js +36 -0
- package/lib/module/highlight-updates/utils/screenElements.js +50 -25
- package/lib/module/highlight-updates/utils/tapMatch.js +52 -0
- package/lib/typescript/highlight-updates/components/HighlightFilterView.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/components/HighlightUpdatesModal.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/components/IdentifierBadge.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/components/RenderCauseBadge.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/components/RenderDetailView.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/components/RenderHistoryViewer.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/components/RendersCopySettingsView.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/utils/HighlightUpdatesController.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/utils/RenderTracker.d.ts +6 -0
- package/lib/typescript/highlight-updates/utils/RenderTracker.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/utils/namedComposite.d.ts +17 -0
- package/lib/typescript/highlight-updates/utils/namedComposite.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/screenElements.d.ts.map +1 -1
- package/lib/typescript/highlight-updates/utils/tapMatch.d.ts +42 -0
- package/lib/typescript/highlight-updates/utils/tapMatch.d.ts.map +1 -0
- package/package.json +7 -7
|
@@ -93,7 +93,7 @@ function RenderHistoryViewer({
|
|
|
93
93
|
style: styles.emptyContainer,
|
|
94
94
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Clock, {
|
|
95
95
|
size: 32,
|
|
96
|
-
color: _sharedUi.
|
|
96
|
+
color: _sharedUi.night.color.textTertiary
|
|
97
97
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
98
98
|
style: styles.emptyTitle,
|
|
99
99
|
children: "No Render History"
|
|
@@ -112,7 +112,7 @@ function RenderHistoryViewer({
|
|
|
112
112
|
style: styles.lockedBanner,
|
|
113
113
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Lock, {
|
|
114
114
|
size: 14,
|
|
115
|
-
color: _sharedUi.
|
|
115
|
+
color: _sharedUi.night.color.warning
|
|
116
116
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
117
117
|
style: styles.lockedBannerText,
|
|
118
118
|
children: [lockedEventCount, " older ", lockedEventCount === 1 ? 'render' : 'renders', " locked"]
|
|
@@ -130,14 +130,14 @@ function RenderHistoryViewer({
|
|
|
130
130
|
style: styles.viewToggleContent,
|
|
131
131
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Database, {
|
|
132
132
|
size: 16,
|
|
133
|
-
color: activeView === "current" ? _sharedUi.
|
|
133
|
+
color: activeView === "current" ? _sharedUi.night.color.accent : _sharedUi.night.color.textSecondary
|
|
134
134
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
135
135
|
style: [styles.viewToggleLabel, activeView === "current" && styles.viewToggleLabelActive],
|
|
136
136
|
children: "CURRENT STATE"
|
|
137
137
|
})]
|
|
138
138
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
139
139
|
style: [styles.viewToggleDescription, activeView === "current" && {
|
|
140
|
-
color: _sharedUi.
|
|
140
|
+
color: _sharedUi.night.color.text
|
|
141
141
|
}],
|
|
142
142
|
children: ["View render #", currentEvent?.renderNumber ?? 0, " details"]
|
|
143
143
|
})]
|
|
@@ -147,7 +147,7 @@ function RenderHistoryViewer({
|
|
|
147
147
|
style: styles.viewToggleContent,
|
|
148
148
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.GitBranch, {
|
|
149
149
|
size: 16,
|
|
150
|
-
color: _sharedUi.
|
|
150
|
+
color: _sharedUi.night.color.textTertiary
|
|
151
151
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
152
152
|
style: [styles.viewToggleLabel, styles.viewToggleLabelDisabled],
|
|
153
153
|
children: "DIFF VIEW"
|
|
@@ -160,7 +160,7 @@ function RenderHistoryViewer({
|
|
|
160
160
|
})]
|
|
161
161
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
162
162
|
style: [styles.viewToggleDescription, {
|
|
163
|
-
color: _sharedUi.
|
|
163
|
+
color: _sharedUi.night.color.textTertiary
|
|
164
164
|
}],
|
|
165
165
|
children: "Compare renders side by side (coming soon)"
|
|
166
166
|
})]
|
|
@@ -256,7 +256,7 @@ function CurrentStateView({
|
|
|
256
256
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_sharedUi.SectionHeader, {
|
|
257
257
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.SectionHeader.Icon, {
|
|
258
258
|
icon: _sharedUi.Database,
|
|
259
|
-
color: _sharedUi.
|
|
259
|
+
color: _sharedUi.night.color.accent,
|
|
260
260
|
size: 12
|
|
261
261
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.SectionHeader.Title, {
|
|
262
262
|
children: "CAPTURED PROPS"
|
|
@@ -497,7 +497,8 @@ function RenderHistoryFooter({
|
|
|
497
497
|
const styles = _reactNative.StyleSheet.create({
|
|
498
498
|
container: {
|
|
499
499
|
flex: 1,
|
|
500
|
-
|
|
500
|
+
// Transparent so JsModal's ToolBackground shows through (the modal paints opaque base beneath it).
|
|
501
|
+
backgroundColor: "transparent"
|
|
501
502
|
},
|
|
502
503
|
emptyContainer: {
|
|
503
504
|
flex: 1,
|
|
@@ -509,11 +510,11 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
509
510
|
emptyTitle: {
|
|
510
511
|
fontSize: 16,
|
|
511
512
|
fontWeight: "600",
|
|
512
|
-
color: _sharedUi.
|
|
513
|
+
color: _sharedUi.night.color.text
|
|
513
514
|
},
|
|
514
515
|
emptyText: {
|
|
515
516
|
fontSize: 13,
|
|
516
|
-
color: _sharedUi.
|
|
517
|
+
color: _sharedUi.night.color.textSecondary,
|
|
517
518
|
textAlign: "center",
|
|
518
519
|
lineHeight: 18
|
|
519
520
|
},
|
|
@@ -524,22 +525,22 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
524
525
|
},
|
|
525
526
|
viewToggleCard: {
|
|
526
527
|
flex: 1,
|
|
527
|
-
backgroundColor: _sharedUi.
|
|
528
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
528
529
|
borderRadius: 8,
|
|
529
530
|
borderWidth: 1,
|
|
530
|
-
borderColor: _sharedUi.
|
|
531
|
+
borderColor: _sharedUi.night.color.border,
|
|
531
532
|
padding: 10,
|
|
532
533
|
gap: 4
|
|
533
534
|
},
|
|
534
535
|
viewToggleCardActive: {
|
|
535
|
-
borderColor: _sharedUi.
|
|
536
|
-
backgroundColor: _sharedUi.
|
|
536
|
+
borderColor: _sharedUi.night.color.accentBorderStrong,
|
|
537
|
+
backgroundColor: _sharedUi.night.color.accentSoft
|
|
537
538
|
},
|
|
538
539
|
viewToggleCardDisabled: {
|
|
539
540
|
opacity: 0.5
|
|
540
541
|
},
|
|
541
542
|
todoBadge: {
|
|
542
|
-
backgroundColor: _sharedUi.
|
|
543
|
+
backgroundColor: _sharedUi.night.color.fillSecondary,
|
|
543
544
|
paddingHorizontal: 6,
|
|
544
545
|
paddingVertical: 2,
|
|
545
546
|
borderRadius: 4,
|
|
@@ -548,7 +549,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
548
549
|
todoBadgeText: {
|
|
549
550
|
fontSize: 9,
|
|
550
551
|
fontWeight: "700",
|
|
551
|
-
color: _sharedUi.
|
|
552
|
+
color: _sharedUi.night.color.textTertiary,
|
|
552
553
|
letterSpacing: 0.3
|
|
553
554
|
},
|
|
554
555
|
viewToggleContent: {
|
|
@@ -559,18 +560,18 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
559
560
|
viewToggleLabel: {
|
|
560
561
|
fontSize: 10,
|
|
561
562
|
fontWeight: "700",
|
|
562
|
-
color: _sharedUi.
|
|
563
|
+
color: _sharedUi.night.color.textSecondary,
|
|
563
564
|
letterSpacing: 0.5
|
|
564
565
|
},
|
|
565
566
|
viewToggleLabelActive: {
|
|
566
|
-
color: _sharedUi.
|
|
567
|
+
color: _sharedUi.night.color.accent
|
|
567
568
|
},
|
|
568
569
|
viewToggleLabelDisabled: {
|
|
569
|
-
color: _sharedUi.
|
|
570
|
+
color: _sharedUi.night.color.textTertiary
|
|
570
571
|
},
|
|
571
572
|
viewToggleDescription: {
|
|
572
573
|
fontSize: 11,
|
|
573
|
-
color: _sharedUi.
|
|
574
|
+
color: _sharedUi.night.color.textTertiary,
|
|
574
575
|
marginTop: 2
|
|
575
576
|
},
|
|
576
577
|
contentScroll: {
|
|
@@ -586,7 +587,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
586
587
|
},
|
|
587
588
|
noEventText: {
|
|
588
589
|
fontSize: 13,
|
|
589
|
-
color: _sharedUi.
|
|
590
|
+
color: _sharedUi.night.color.textTertiary
|
|
590
591
|
},
|
|
591
592
|
currentStateContainer: {
|
|
592
593
|
gap: 12
|
|
@@ -595,10 +596,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
595
596
|
flexDirection: "row",
|
|
596
597
|
alignItems: "center",
|
|
597
598
|
justifyContent: "space-between",
|
|
598
|
-
backgroundColor: _sharedUi.
|
|
599
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
599
600
|
borderRadius: 8,
|
|
600
601
|
borderWidth: 1,
|
|
601
|
-
borderColor: _sharedUi.
|
|
602
|
+
borderColor: _sharedUi.night.color.border,
|
|
602
603
|
padding: 12
|
|
603
604
|
},
|
|
604
605
|
eventHeaderLeft: {
|
|
@@ -607,11 +608,11 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
607
608
|
eventTitle: {
|
|
608
609
|
fontSize: 15,
|
|
609
610
|
fontWeight: "700",
|
|
610
|
-
color: _sharedUi.
|
|
611
|
+
color: _sharedUi.night.color.text
|
|
611
612
|
},
|
|
612
613
|
eventTime: {
|
|
613
614
|
fontSize: 11,
|
|
614
|
-
color: _sharedUi.
|
|
615
|
+
color: _sharedUi.night.color.textTertiary,
|
|
615
616
|
fontFamily: "monospace"
|
|
616
617
|
},
|
|
617
618
|
eventBadge: {
|
|
@@ -633,10 +634,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
633
634
|
fontFamily: "monospace"
|
|
634
635
|
},
|
|
635
636
|
section: {
|
|
636
|
-
backgroundColor: _sharedUi.
|
|
637
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
637
638
|
borderRadius: 8,
|
|
638
639
|
borderWidth: 1,
|
|
639
|
-
borderColor: _sharedUi.
|
|
640
|
+
borderColor: _sharedUi.night.color.border,
|
|
640
641
|
overflow: "hidden"
|
|
641
642
|
},
|
|
642
643
|
sectionContent: {
|
|
@@ -653,12 +654,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
653
654
|
changedListTitle: {
|
|
654
655
|
fontSize: 11,
|
|
655
656
|
fontWeight: "600",
|
|
656
|
-
color: _sharedUi.
|
|
657
|
+
color: _sharedUi.night.color.textSecondary,
|
|
657
658
|
marginBottom: 6
|
|
658
659
|
},
|
|
659
660
|
changedItem: {
|
|
660
661
|
fontSize: 12,
|
|
661
|
-
color: _sharedUi.
|
|
662
|
+
color: _sharedUi.night.color.text,
|
|
662
663
|
fontFamily: "monospace",
|
|
663
664
|
marginBottom: 3,
|
|
664
665
|
paddingLeft: 8
|
|
@@ -669,8 +670,9 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
669
670
|
propsJson: {
|
|
670
671
|
fontSize: 11,
|
|
671
672
|
fontFamily: "monospace",
|
|
672
|
-
color: _sharedUi.
|
|
673
|
-
|
|
673
|
+
color: _sharedUi.night.color.text,
|
|
674
|
+
// Inset code box — the night track color.
|
|
675
|
+
backgroundColor: _sharedUi.night.color.bg,
|
|
674
676
|
padding: 10,
|
|
675
677
|
borderRadius: 6
|
|
676
678
|
},
|
|
@@ -679,10 +681,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
679
681
|
},
|
|
680
682
|
compareBar: {
|
|
681
683
|
flexDirection: "row",
|
|
682
|
-
backgroundColor: _sharedUi.
|
|
684
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
683
685
|
borderRadius: 8,
|
|
684
686
|
borderWidth: 1,
|
|
685
|
-
borderColor: _sharedUi.
|
|
687
|
+
borderColor: _sharedUi.night.color.border,
|
|
686
688
|
padding: 10
|
|
687
689
|
},
|
|
688
690
|
compareSide: {
|
|
@@ -716,11 +718,11 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
716
718
|
compareIndex: {
|
|
717
719
|
fontSize: 12,
|
|
718
720
|
fontWeight: "600",
|
|
719
|
-
color: _sharedUi.
|
|
721
|
+
color: _sharedUi.night.color.text
|
|
720
722
|
},
|
|
721
723
|
compareTime: {
|
|
722
724
|
fontSize: 10,
|
|
723
|
-
color: _sharedUi.
|
|
725
|
+
color: _sharedUi.night.color.textTertiary,
|
|
724
726
|
fontFamily: "monospace"
|
|
725
727
|
},
|
|
726
728
|
compareDivider: {
|
|
@@ -730,19 +732,19 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
730
732
|
},
|
|
731
733
|
compareArrow: {
|
|
732
734
|
fontSize: 16,
|
|
733
|
-
color: _sharedUi.
|
|
735
|
+
color: _sharedUi.night.color.textTertiary
|
|
734
736
|
},
|
|
735
737
|
diffSummary: {
|
|
736
|
-
backgroundColor: _sharedUi.
|
|
738
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
737
739
|
borderRadius: 8,
|
|
738
740
|
borderWidth: 1,
|
|
739
|
-
borderColor: _sharedUi.
|
|
741
|
+
borderColor: _sharedUi.night.color.border,
|
|
740
742
|
padding: 12
|
|
741
743
|
},
|
|
742
744
|
diffSummaryTitle: {
|
|
743
745
|
fontSize: 11,
|
|
744
746
|
fontWeight: "600",
|
|
745
|
-
color: _sharedUi.
|
|
747
|
+
color: _sharedUi.night.color.textSecondary,
|
|
746
748
|
marginBottom: 8
|
|
747
749
|
},
|
|
748
750
|
diffChanges: {
|
|
@@ -756,22 +758,22 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
756
758
|
diffChangeIcon: {
|
|
757
759
|
fontSize: 12,
|
|
758
760
|
fontWeight: "700",
|
|
759
|
-
color: _sharedUi.
|
|
761
|
+
color: _sharedUi.night.color.warning,
|
|
760
762
|
fontFamily: "monospace"
|
|
761
763
|
},
|
|
762
764
|
diffChangeKey: {
|
|
763
765
|
fontSize: 12,
|
|
764
|
-
color: _sharedUi.
|
|
766
|
+
color: _sharedUi.night.color.text,
|
|
765
767
|
fontFamily: "monospace"
|
|
766
768
|
},
|
|
767
769
|
diffNoChanges: {
|
|
768
770
|
fontSize: 12,
|
|
769
|
-
color: _sharedUi.
|
|
771
|
+
color: _sharedUi.night.color.textTertiary,
|
|
770
772
|
fontStyle: "italic"
|
|
771
773
|
},
|
|
772
774
|
diffPlaceholder: {
|
|
773
775
|
fontSize: 12,
|
|
774
|
-
color: _sharedUi.
|
|
776
|
+
color: _sharedUi.night.color.textTertiary,
|
|
775
777
|
fontStyle: "italic",
|
|
776
778
|
textAlign: "center",
|
|
777
779
|
padding: 16
|
|
@@ -779,10 +781,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
779
781
|
// Diff mode tabs
|
|
780
782
|
diffModeTabs: {
|
|
781
783
|
flexDirection: "row",
|
|
782
|
-
backgroundColor: _sharedUi.
|
|
784
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
783
785
|
borderRadius: 8,
|
|
784
786
|
borderWidth: 1,
|
|
785
|
-
borderColor: _sharedUi.
|
|
787
|
+
borderColor: _sharedUi.night.color.border,
|
|
786
788
|
padding: 4,
|
|
787
789
|
gap: 4
|
|
788
790
|
},
|
|
@@ -794,7 +796,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
794
796
|
alignItems: "center"
|
|
795
797
|
},
|
|
796
798
|
diffModeTabActive: {
|
|
797
|
-
backgroundColor: _sharedUi.
|
|
799
|
+
backgroundColor: _sharedUi.night.color.accentSoft
|
|
798
800
|
},
|
|
799
801
|
diffModeTabDisabled: {
|
|
800
802
|
opacity: 0.4
|
|
@@ -802,14 +804,14 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
802
804
|
diffModeTabText: {
|
|
803
805
|
fontSize: 10,
|
|
804
806
|
fontWeight: "600",
|
|
805
|
-
color: _sharedUi.
|
|
807
|
+
color: _sharedUi.night.color.textSecondary,
|
|
806
808
|
letterSpacing: 0.5
|
|
807
809
|
},
|
|
808
810
|
diffModeTabTextActive: {
|
|
809
|
-
color: _sharedUi.
|
|
811
|
+
color: _sharedUi.night.color.accent
|
|
810
812
|
},
|
|
811
813
|
diffModeTabTextDisabled: {
|
|
812
|
-
color: _sharedUi.
|
|
814
|
+
color: _sharedUi.night.color.textTertiary
|
|
813
815
|
},
|
|
814
816
|
// Cause diff styles
|
|
815
817
|
causeDiffContainer: {
|
|
@@ -824,27 +826,27 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
824
826
|
causeDiffLabel: {
|
|
825
827
|
fontSize: 11,
|
|
826
828
|
fontWeight: "600",
|
|
827
|
-
color: _sharedUi.
|
|
829
|
+
color: _sharedUi.night.color.textSecondary,
|
|
828
830
|
minWidth: 80
|
|
829
831
|
},
|
|
830
832
|
causeDiffValue: {
|
|
831
833
|
fontSize: 12,
|
|
832
|
-
color: _sharedUi.
|
|
834
|
+
color: _sharedUi.night.color.text,
|
|
833
835
|
fontFamily: "monospace",
|
|
834
836
|
fontWeight: "500"
|
|
835
837
|
},
|
|
836
838
|
diffChangesTitle: {
|
|
837
839
|
fontSize: 11,
|
|
838
840
|
fontWeight: "600",
|
|
839
|
-
color: _sharedUi.
|
|
841
|
+
color: _sharedUi.night.color.textSecondary,
|
|
840
842
|
marginBottom: 6
|
|
841
843
|
},
|
|
842
844
|
// Tree diff container
|
|
843
845
|
treeDiffContainer: {
|
|
844
|
-
backgroundColor: _sharedUi.
|
|
846
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
845
847
|
borderRadius: 8,
|
|
846
848
|
borderWidth: 1,
|
|
847
|
-
borderColor: _sharedUi.
|
|
849
|
+
borderColor: _sharedUi.night.color.border,
|
|
848
850
|
overflow: "hidden",
|
|
849
851
|
minHeight: 150
|
|
850
852
|
},
|
|
@@ -856,11 +858,11 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
856
858
|
noDiffDataTitle: {
|
|
857
859
|
fontSize: 13,
|
|
858
860
|
fontWeight: "600",
|
|
859
|
-
color: _sharedUi.
|
|
861
|
+
color: _sharedUi.night.color.text
|
|
860
862
|
},
|
|
861
863
|
noDiffDataText: {
|
|
862
864
|
fontSize: 12,
|
|
863
|
-
color: _sharedUi.
|
|
865
|
+
color: _sharedUi.night.color.textTertiary,
|
|
864
866
|
textAlign: "center",
|
|
865
867
|
lineHeight: 18
|
|
866
868
|
},
|
|
@@ -872,19 +874,19 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
872
874
|
paddingHorizontal: 16,
|
|
873
875
|
marginHorizontal: 12,
|
|
874
876
|
marginTop: 8,
|
|
875
|
-
backgroundColor: _sharedUi.
|
|
877
|
+
backgroundColor: _sharedUi.night.color.warningSoft,
|
|
876
878
|
borderRadius: 8,
|
|
877
879
|
borderWidth: 1,
|
|
878
|
-
borderColor: _sharedUi.
|
|
880
|
+
borderColor: _sharedUi.night.color.warning + "30",
|
|
879
881
|
gap: 8
|
|
880
882
|
},
|
|
881
883
|
lockedBannerText: {
|
|
882
|
-
color: _sharedUi.
|
|
884
|
+
color: _sharedUi.night.color.warning,
|
|
883
885
|
fontSize: 13,
|
|
884
886
|
fontWeight: "500"
|
|
885
887
|
},
|
|
886
888
|
lockedBannerSubtext: {
|
|
887
|
-
color: _sharedUi.
|
|
889
|
+
color: _sharedUi.night.color.textTertiary,
|
|
888
890
|
fontSize: 12
|
|
889
891
|
}
|
|
890
892
|
});
|
|
@@ -123,7 +123,7 @@ function RenderListItemInner({
|
|
|
123
123
|
})]
|
|
124
124
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronRight, {
|
|
125
125
|
size: 16,
|
|
126
|
-
color: _sharedUi.
|
|
126
|
+
color: _sharedUi.night.color.textTertiary
|
|
127
127
|
})]
|
|
128
128
|
});
|
|
129
129
|
}
|
|
@@ -145,10 +145,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
145
145
|
paddingHorizontal: 12,
|
|
146
146
|
marginHorizontal: 12,
|
|
147
147
|
marginBottom: 6,
|
|
148
|
-
backgroundColor: _sharedUi.
|
|
148
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
149
149
|
borderRadius: 8,
|
|
150
150
|
borderWidth: 1,
|
|
151
|
-
borderColor: _sharedUi.
|
|
151
|
+
borderColor: _sharedUi.night.color.border
|
|
152
152
|
},
|
|
153
153
|
colorIndicator: {
|
|
154
154
|
width: 4,
|
|
@@ -175,17 +175,17 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
175
175
|
viewType: {
|
|
176
176
|
fontSize: 13,
|
|
177
177
|
fontWeight: "600",
|
|
178
|
-
color: _sharedUi.
|
|
178
|
+
color: _sharedUi.night.color.text
|
|
179
179
|
},
|
|
180
180
|
nativeType: {
|
|
181
181
|
fontSize: 10,
|
|
182
|
-
color: _sharedUi.
|
|
182
|
+
color: _sharedUi.night.color.textTertiary,
|
|
183
183
|
fontFamily: "monospace",
|
|
184
184
|
marginTop: 1
|
|
185
185
|
},
|
|
186
186
|
accessibilityLabel: {
|
|
187
187
|
fontSize: 10,
|
|
188
|
-
color: _sharedUi.
|
|
188
|
+
color: _sharedUi.night.color.accent,
|
|
189
189
|
fontStyle: "italic",
|
|
190
190
|
marginTop: 1
|
|
191
191
|
},
|
|
@@ -212,7 +212,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
212
212
|
},
|
|
213
213
|
timing: {
|
|
214
214
|
fontSize: 10,
|
|
215
|
-
color: _sharedUi.
|
|
215
|
+
color: _sharedUi.night.color.textTertiary,
|
|
216
216
|
fontWeight: "500",
|
|
217
217
|
flexShrink: 0
|
|
218
218
|
}
|
|
@@ -196,7 +196,7 @@ function RendersCopySettingsView({
|
|
|
196
196
|
totalRenders
|
|
197
197
|
} = (0, _rendersExportFormatter.getExportSummary)(previewRenders);
|
|
198
198
|
if (!isPreviewExpanded) {
|
|
199
|
-
const warningColor = sizeWarningLevel === "danger" ? _sharedUi.
|
|
199
|
+
const warningColor = sizeWarningLevel === "danger" ? _sharedUi.night.color.danger : sizeWarningLevel === "warning" ? _sharedUi.night.color.warning : _sharedUi.night.color.textSecondary;
|
|
200
200
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
201
201
|
style: styles.collapsedPreview,
|
|
202
202
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
@@ -206,7 +206,7 @@ function RendersCopySettingsView({
|
|
|
206
206
|
style: styles.expandButtonContent,
|
|
207
207
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Eye, {
|
|
208
208
|
size: 16,
|
|
209
|
-
color: _sharedUi.
|
|
209
|
+
color: _sharedUi.night.color.info
|
|
210
210
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
211
211
|
style: styles.expandButtonTextContainer,
|
|
212
212
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
@@ -218,7 +218,7 @@ function RendersCopySettingsView({
|
|
|
218
218
|
})]
|
|
219
219
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronDown, {
|
|
220
220
|
size: 16,
|
|
221
|
-
color: _sharedUi.
|
|
221
|
+
color: _sharedUi.night.color.textTertiary
|
|
222
222
|
})]
|
|
223
223
|
})
|
|
224
224
|
}), sizeWarningLevel !== "none" && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
@@ -245,7 +245,7 @@ function RendersCopySettingsView({
|
|
|
245
245
|
children: "Hide Preview"
|
|
246
246
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronUp, {
|
|
247
247
|
size: 14,
|
|
248
|
-
color: _sharedUi.
|
|
248
|
+
color: _sharedUi.night.color.textSecondary
|
|
249
249
|
})]
|
|
250
250
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
251
251
|
style: styles.previewScroll,
|
|
@@ -313,7 +313,7 @@ function RendersCopySettingsView({
|
|
|
313
313
|
id: "preset::custom",
|
|
314
314
|
label: "Custom",
|
|
315
315
|
icon: _sharedUi.Settings,
|
|
316
|
-
color: _sharedUi.
|
|
316
|
+
color: _sharedUi.night.color.textSecondary,
|
|
317
317
|
value: "custom",
|
|
318
318
|
isActive: activePreset === null,
|
|
319
319
|
description: "User-configured"
|
|
@@ -483,10 +483,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
483
483
|
gap: 8
|
|
484
484
|
},
|
|
485
485
|
expandButton: {
|
|
486
|
-
backgroundColor: _sharedUi.
|
|
486
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated,
|
|
487
487
|
borderRadius: 8,
|
|
488
488
|
borderWidth: 1,
|
|
489
|
-
borderColor: _sharedUi.
|
|
489
|
+
borderColor: _sharedUi.night.color.border,
|
|
490
490
|
padding: 12
|
|
491
491
|
},
|
|
492
492
|
expandButtonContent: {
|
|
@@ -500,11 +500,11 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
500
500
|
expandButtonTitle: {
|
|
501
501
|
fontSize: 13,
|
|
502
502
|
fontWeight: "600",
|
|
503
|
-
color: _sharedUi.
|
|
503
|
+
color: _sharedUi.night.color.text
|
|
504
504
|
},
|
|
505
505
|
expandButtonSubtitle: {
|
|
506
506
|
fontSize: 11,
|
|
507
|
-
color: _sharedUi.
|
|
507
|
+
color: _sharedUi.night.color.textSecondary,
|
|
508
508
|
marginTop: 2
|
|
509
509
|
},
|
|
510
510
|
collapseButton: {
|
|
@@ -514,15 +514,15 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
514
514
|
gap: 6,
|
|
515
515
|
paddingVertical: 8,
|
|
516
516
|
marginBottom: 8,
|
|
517
|
-
backgroundColor: _sharedUi.
|
|
517
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated,
|
|
518
518
|
borderRadius: 6,
|
|
519
519
|
borderWidth: 1,
|
|
520
|
-
borderColor: _sharedUi.
|
|
520
|
+
borderColor: _sharedUi.night.color.border
|
|
521
521
|
},
|
|
522
522
|
collapseButtonText: {
|
|
523
523
|
fontSize: 12,
|
|
524
524
|
fontWeight: "500",
|
|
525
|
-
color: _sharedUi.
|
|
525
|
+
color: _sharedUi.night.color.textSecondary
|
|
526
526
|
},
|
|
527
527
|
sizeWarning: {
|
|
528
528
|
flexDirection: "row",
|
|
@@ -530,14 +530,14 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
530
530
|
gap: 6,
|
|
531
531
|
paddingHorizontal: 10,
|
|
532
532
|
paddingVertical: 6,
|
|
533
|
-
backgroundColor: _sharedUi.
|
|
533
|
+
backgroundColor: _sharedUi.night.color.warningSoft,
|
|
534
534
|
borderRadius: 6,
|
|
535
535
|
borderWidth: 1,
|
|
536
|
-
borderColor: _sharedUi.
|
|
536
|
+
borderColor: _sharedUi.night.color.warning + "30"
|
|
537
537
|
},
|
|
538
538
|
sizeWarningDanger: {
|
|
539
|
-
backgroundColor: _sharedUi.
|
|
540
|
-
borderColor: _sharedUi.
|
|
539
|
+
backgroundColor: _sharedUi.night.color.dangerSoft,
|
|
540
|
+
borderColor: _sharedUi.night.color.danger + "30"
|
|
541
541
|
},
|
|
542
542
|
sizeWarningText: {
|
|
543
543
|
fontSize: 11,
|
|
@@ -550,13 +550,13 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
550
550
|
previewText: {
|
|
551
551
|
fontFamily: "monospace",
|
|
552
552
|
fontSize: 11,
|
|
553
|
-
color: _sharedUi.
|
|
553
|
+
color: _sharedUi.night.color.text,
|
|
554
554
|
lineHeight: 18
|
|
555
555
|
},
|
|
556
556
|
statusLabel: {
|
|
557
557
|
fontSize: 11,
|
|
558
558
|
fontWeight: "600",
|
|
559
|
-
color: _sharedUi.
|
|
559
|
+
color: _sharedUi.night.color.textTertiary,
|
|
560
560
|
marginRight: 8
|
|
561
561
|
}
|
|
562
562
|
});
|
|
@@ -39,10 +39,10 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
39
39
|
style: styles.headerChip,
|
|
40
40
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Activity, {
|
|
41
41
|
size: 12,
|
|
42
|
-
color: _sharedUi.
|
|
42
|
+
color: _sharedUi.night.color.accent
|
|
43
43
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
44
44
|
style: [styles.headerChipValue, {
|
|
45
|
-
color: _sharedUi.
|
|
45
|
+
color: _sharedUi.night.color.accent
|
|
46
46
|
}],
|
|
47
47
|
children: stats.totalComponents
|
|
48
48
|
})]
|
|
@@ -54,12 +54,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
54
54
|
flexDirection: "row",
|
|
55
55
|
alignItems: "center",
|
|
56
56
|
gap: 4,
|
|
57
|
-
backgroundColor: _sharedUi.
|
|
57
|
+
backgroundColor: _sharedUi.night.color.buttonSurface,
|
|
58
58
|
paddingHorizontal: 8,
|
|
59
59
|
paddingVertical: 5,
|
|
60
60
|
borderRadius: 12,
|
|
61
61
|
borderWidth: 1,
|
|
62
|
-
borderColor: _sharedUi.
|
|
62
|
+
borderColor: _sharedUi.night.color.border
|
|
63
63
|
},
|
|
64
64
|
headerChipValue: {
|
|
65
65
|
fontSize: 12,
|
|
@@ -34,6 +34,8 @@ exports.default = void 0;
|
|
|
34
34
|
var _ProfilerInterceptor = require("./ProfilerInterceptor");
|
|
35
35
|
var _reactNative = require("react-native");
|
|
36
36
|
var _RenderTracker = require("./RenderTracker");
|
|
37
|
+
var _screenElements = require("./screenElements");
|
|
38
|
+
var _tapMatch = require("./tapMatch");
|
|
37
39
|
var _PerformanceLogger = require("./PerformanceLogger");
|
|
38
40
|
var _RenderCauseDetector = require("./RenderCauseDetector");
|
|
39
41
|
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
@@ -1169,10 +1171,60 @@ async function locateComponent(params) {
|
|
|
1169
1171
|
const margin = typeof params.margin === "number" ? params.margin : 12;
|
|
1170
1172
|
const renders = _RenderTracker.RenderTracker.getRenders();
|
|
1171
1173
|
if (renders.length === 0) {
|
|
1174
|
+
const described = await (0, _screenElements.describeScreen)();
|
|
1175
|
+
const q = (params.query ?? "").trim().toLowerCase();
|
|
1176
|
+
let best;
|
|
1177
|
+
for (const el of described.elements) {
|
|
1178
|
+
if (params.nativeTag != null && el.nativeTag === params.nativeTag) {
|
|
1179
|
+
best = {
|
|
1180
|
+
el,
|
|
1181
|
+
score: 1000
|
|
1182
|
+
};
|
|
1183
|
+
break;
|
|
1184
|
+
}
|
|
1185
|
+
const score = (0, _tapMatch.scoreTapMatch)({
|
|
1186
|
+
nativeTag: el.nativeTag,
|
|
1187
|
+
testID: el.testID,
|
|
1188
|
+
label: el.label,
|
|
1189
|
+
text: el.text,
|
|
1190
|
+
name: el.name,
|
|
1191
|
+
tap: el.tap
|
|
1192
|
+
}, {
|
|
1193
|
+
query: q || undefined,
|
|
1194
|
+
nativeTag: params.nativeTag
|
|
1195
|
+
});
|
|
1196
|
+
if (score <= 0) continue;
|
|
1197
|
+
if (!best || score > best.score) best = {
|
|
1198
|
+
el,
|
|
1199
|
+
score
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
if (!best?.el.frame) {
|
|
1203
|
+
return {
|
|
1204
|
+
matched: false,
|
|
1205
|
+
reason: "no-match",
|
|
1206
|
+
candidates: []
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
const win = described.screen;
|
|
1210
|
+
const f = best.el.frame;
|
|
1172
1211
|
return {
|
|
1173
|
-
matched:
|
|
1174
|
-
|
|
1175
|
-
|
|
1212
|
+
matched: true,
|
|
1213
|
+
live: true,
|
|
1214
|
+
rect: {
|
|
1215
|
+
x: f.x * win.width,
|
|
1216
|
+
y: f.y * win.height,
|
|
1217
|
+
width: f.width * win.width,
|
|
1218
|
+
height: f.height * win.height
|
|
1219
|
+
},
|
|
1220
|
+
scale: _reactNative.PixelRatio.get(),
|
|
1221
|
+
screen: {
|
|
1222
|
+
width: win.width,
|
|
1223
|
+
height: win.height
|
|
1224
|
+
},
|
|
1225
|
+
nativeTag: best.el.nativeTag ?? undefined,
|
|
1226
|
+
componentName: best.el.name,
|
|
1227
|
+
testID: best.el.testID
|
|
1176
1228
|
};
|
|
1177
1229
|
}
|
|
1178
1230
|
|