@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.
Files changed (50) hide show
  1. package/lib/commonjs/highlight-updates/HighlightUpdatesOverlay.js +4 -4
  2. package/lib/commonjs/highlight-updates/components/HighlightFilterView.js +110 -87
  3. package/lib/commonjs/highlight-updates/components/HighlightUpdatesModal.js +12 -8
  4. package/lib/commonjs/highlight-updates/components/IdentifierBadge.js +2 -2
  5. package/lib/commonjs/highlight-updates/components/IsolatedRenderList.js +6 -6
  6. package/lib/commonjs/highlight-updates/components/ModalHeaderContent.js +17 -17
  7. package/lib/commonjs/highlight-updates/components/RenderCauseBadge.js +22 -20
  8. package/lib/commonjs/highlight-updates/components/RenderDetailView.js +53 -49
  9. package/lib/commonjs/highlight-updates/components/RenderHistoryViewer.js +62 -60
  10. package/lib/commonjs/highlight-updates/components/RenderListItem.js +7 -7
  11. package/lib/commonjs/highlight-updates/components/RendersCopySettingsView.js +18 -18
  12. package/lib/commonjs/highlight-updates/components/StatsDisplay.js +4 -4
  13. package/lib/commonjs/highlight-updates/utils/HighlightUpdatesController.js +55 -3
  14. package/lib/commonjs/highlight-updates/utils/RenderTracker.js +6 -1
  15. package/lib/commonjs/highlight-updates/utils/namedComposite.js +41 -0
  16. package/lib/commonjs/highlight-updates/utils/screenElements.js +50 -25
  17. package/lib/commonjs/highlight-updates/utils/tapMatch.js +58 -0
  18. package/lib/module/highlight-updates/HighlightUpdatesOverlay.js +5 -5
  19. package/lib/module/highlight-updates/components/HighlightFilterView.js +111 -88
  20. package/lib/module/highlight-updates/components/HighlightUpdatesModal.js +13 -9
  21. package/lib/module/highlight-updates/components/IdentifierBadge.js +3 -3
  22. package/lib/module/highlight-updates/components/IsolatedRenderList.js +7 -7
  23. package/lib/module/highlight-updates/components/ModalHeaderContent.js +18 -18
  24. package/lib/module/highlight-updates/components/RenderCauseBadge.js +23 -21
  25. package/lib/module/highlight-updates/components/RenderDetailView.js +54 -50
  26. package/lib/module/highlight-updates/components/RenderHistoryViewer.js +63 -61
  27. package/lib/module/highlight-updates/components/RenderListItem.js +8 -8
  28. package/lib/module/highlight-updates/components/RendersCopySettingsView.js +19 -19
  29. package/lib/module/highlight-updates/components/StatsDisplay.js +5 -5
  30. package/lib/module/highlight-updates/utils/HighlightUpdatesController.js +55 -3
  31. package/lib/module/highlight-updates/utils/RenderTracker.js +6 -1
  32. package/lib/module/highlight-updates/utils/namedComposite.js +36 -0
  33. package/lib/module/highlight-updates/utils/screenElements.js +50 -25
  34. package/lib/module/highlight-updates/utils/tapMatch.js +52 -0
  35. package/lib/typescript/highlight-updates/components/HighlightFilterView.d.ts.map +1 -1
  36. package/lib/typescript/highlight-updates/components/HighlightUpdatesModal.d.ts.map +1 -1
  37. package/lib/typescript/highlight-updates/components/IdentifierBadge.d.ts.map +1 -1
  38. package/lib/typescript/highlight-updates/components/RenderCauseBadge.d.ts.map +1 -1
  39. package/lib/typescript/highlight-updates/components/RenderDetailView.d.ts.map +1 -1
  40. package/lib/typescript/highlight-updates/components/RenderHistoryViewer.d.ts.map +1 -1
  41. package/lib/typescript/highlight-updates/components/RendersCopySettingsView.d.ts.map +1 -1
  42. package/lib/typescript/highlight-updates/utils/HighlightUpdatesController.d.ts.map +1 -1
  43. package/lib/typescript/highlight-updates/utils/RenderTracker.d.ts +6 -0
  44. package/lib/typescript/highlight-updates/utils/RenderTracker.d.ts.map +1 -1
  45. package/lib/typescript/highlight-updates/utils/namedComposite.d.ts +17 -0
  46. package/lib/typescript/highlight-updates/utils/namedComposite.d.ts.map +1 -0
  47. package/lib/typescript/highlight-updates/utils/screenElements.d.ts.map +1 -1
  48. package/lib/typescript/highlight-updates/utils/tapMatch.d.ts +42 -0
  49. package/lib/typescript/highlight-updates/utils/tapMatch.d.ts.map +1 -0
  50. package/package.json +7 -7
@@ -9,7 +9,7 @@
9
9
 
10
10
  import React from "react";
11
11
  import { View, Text, StyleSheet } from "react-native";
12
- import { Box, Hash, Layers, Eye, Search, FileCode, buoyColors } from "@buoy-gg/shared-ui";
12
+ import { Box, Hash, Layers, Eye, Search, FileCode, buoyColors, night } from "@buoy-gg/shared-ui";
13
13
 
14
14
  // All possible identifier types
15
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -18,7 +18,7 @@ export const IDENTIFIER_CONFIG = {
18
18
  viewType: {
19
19
  label: "ViewType",
20
20
  shortLabel: "View",
21
- color: buoyColors.primary,
21
+ color: night.color.accent,
22
22
  icon: Box
23
23
  },
24
24
  testID: {
@@ -191,7 +191,7 @@ const styles = StyleSheet.create({
191
191
  },
192
192
  value: {
193
193
  fontSize: 12,
194
- color: buoyColors.text,
194
+ color: night.color.text,
195
195
  fontFamily: "monospace",
196
196
  flex: 1
197
197
  },
@@ -15,7 +15,7 @@ import React, { useState, useEffect, useRef, useCallback, memo, useMemo } from "
15
15
  import { View, Text, FlatList, StyleSheet } from "react-native";
16
16
  import { RenderTracker } from "../utils/RenderTracker";
17
17
  import { RenderListItem } from "./RenderListItem";
18
- import { Activity, Lock, buoyColors, useLimit } from "@buoy-gg/shared-ui";
18
+ import { Activity, Lock, night, useLimit } from "@buoy-gg/shared-ui";
19
19
 
20
20
  // Free tier limit for tracked components
21
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -90,7 +90,7 @@ function IsolatedRenderListInner({
90
90
  style: styles.lockedBanner,
91
91
  children: [/*#__PURE__*/_jsx(Lock, {
92
92
  size: 14,
93
- color: buoyColors.warning
93
+ color: night.color.warning
94
94
  }), /*#__PURE__*/_jsxs(Text, {
95
95
  style: styles.lockedBannerText,
96
96
  children: [lockedComponentCount, " more ", lockedComponentCount === 1 ? 'component' : 'components', " locked"]
@@ -107,7 +107,7 @@ function IsolatedRenderListInner({
107
107
  style: styles.emptyState,
108
108
  children: [/*#__PURE__*/_jsx(Activity, {
109
109
  size: 32,
110
- color: buoyColors.textMuted
110
+ color: night.color.textTertiary
111
111
  }), /*#__PURE__*/_jsx(Text, {
112
112
  style: styles.emptyTitle,
113
113
  children: "No renders tracked"
@@ -143,14 +143,14 @@ const styles = StyleSheet.create({
143
143
  paddingVertical: 40
144
144
  },
145
145
  emptyTitle: {
146
- color: buoyColors.text,
146
+ color: night.color.text,
147
147
  fontSize: 14,
148
148
  fontWeight: "600",
149
149
  marginTop: 12,
150
150
  marginBottom: 6
151
151
  },
152
152
  emptyText: {
153
- color: buoyColors.textMuted,
153
+ color: night.color.textTertiary,
154
154
  fontSize: 12,
155
155
  textAlign: "center"
156
156
  },
@@ -164,12 +164,12 @@ const styles = StyleSheet.create({
164
164
  gap: 8
165
165
  },
166
166
  lockedBannerText: {
167
- color: buoyColors.warning,
167
+ color: night.color.warning,
168
168
  fontSize: 13,
169
169
  fontWeight: "500"
170
170
  },
171
171
  lockedBannerSubtext: {
172
- color: buoyColors.textMuted,
172
+ color: night.color.textTertiary,
173
173
  fontSize: 12
174
174
  }
175
175
  });
@@ -11,7 +11,7 @@
11
11
 
12
12
  import React, { memo } from "react";
13
13
  import { View, TouchableOpacity, TextInput, StyleSheet } from "react-native";
14
- import { Trash2, Search, Filter, X, Pause, Copy, ModalHeader, TabSelector, buoyColors, PowerToggleButton } from "@buoy-gg/shared-ui";
14
+ import { Trash2, Search, Filter, X, Pause, Copy, ModalHeader, TabSelector, night, PowerToggleButton } from "@buoy-gg/shared-ui";
15
15
  import { StatsDisplay } from "./StatsDisplay";
16
16
 
17
17
  // ============================================================================
@@ -30,11 +30,11 @@ const SearchSectionInner = /*#__PURE__*/memo(function SearchSection({
30
30
  style: styles.headerSearchContainer,
31
31
  children: [/*#__PURE__*/_jsx(Search, {
32
32
  size: 14,
33
- color: buoyColors.textSecondary
33
+ color: night.color.textSecondary
34
34
  }), /*#__PURE__*/_jsx(TextInput, {
35
35
  style: styles.headerSearchInput,
36
36
  placeholder: "Search testID, nativeID, component...",
37
- placeholderTextColor: buoyColors.textMuted,
37
+ placeholderTextColor: night.color.placeholder,
38
38
  value: searchText,
39
39
  onChangeText: onSearchChange,
40
40
  onSubmitEditing: onSearchClose,
@@ -52,7 +52,7 @@ const SearchSectionInner = /*#__PURE__*/memo(function SearchSection({
52
52
  style: styles.headerSearchClear,
53
53
  children: /*#__PURE__*/_jsx(X, {
54
54
  size: 14,
55
- color: buoyColors.textSecondary
55
+ color: night.color.textSecondary
56
56
  })
57
57
  }) : null]
58
58
  });
@@ -81,14 +81,14 @@ const HeaderActionsInner = /*#__PURE__*/memo(function HeaderActions({
81
81
  style: styles.headerActionButton,
82
82
  children: /*#__PURE__*/_jsx(Search, {
83
83
  size: 14,
84
- color: buoyColors.textSecondary
84
+ color: night.color.textSecondary
85
85
  })
86
86
  }), /*#__PURE__*/_jsx(TouchableOpacity, {
87
87
  onPress: onFilterToggle,
88
88
  style: [styles.headerActionButton, activeFilterCount > 0 && styles.activeFilterButton],
89
89
  children: /*#__PURE__*/_jsx(Filter, {
90
90
  size: 14,
91
- color: activeFilterCount > 0 ? buoyColors.primary : buoyColors.textMuted
91
+ color: activeFilterCount > 0 ? night.color.accent : night.color.textTertiary
92
92
  })
93
93
  }), /*#__PURE__*/_jsx(TouchableOpacity, {
94
94
  onPress: onOpenCopySettings,
@@ -97,7 +97,7 @@ const HeaderActionsInner = /*#__PURE__*/memo(function HeaderActions({
97
97
  accessibilityLabel: "Open copy settings",
98
98
  children: /*#__PURE__*/_jsx(Copy, {
99
99
  size: 14,
100
- color: hasRenders ? buoyColors.textSecondary : buoyColors.textMuted
100
+ color: hasRenders ? night.color.textSecondary : night.color.textTertiary
101
101
  })
102
102
  }), /*#__PURE__*/_jsx(TouchableOpacity, {
103
103
  onPress: onToggleFreeze,
@@ -105,7 +105,7 @@ const HeaderActionsInner = /*#__PURE__*/memo(function HeaderActions({
105
105
  disabled: !isTracking,
106
106
  children: /*#__PURE__*/_jsx(Pause, {
107
107
  size: 14,
108
- color: !isTracking ? buoyColors.textMuted : isFrozen ? buoyColors.primary : buoyColors.textMuted
108
+ color: !isTracking ? night.color.textTertiary : isFrozen ? night.color.accent : night.color.textTertiary
109
109
  })
110
110
  }), /*#__PURE__*/_jsx(PowerToggleButton, {
111
111
  isEnabled: isTracking,
@@ -117,7 +117,7 @@ const HeaderActionsInner = /*#__PURE__*/memo(function HeaderActions({
117
117
  disabled: !hasRenders,
118
118
  children: /*#__PURE__*/_jsx(Trash2, {
119
119
  size: 14,
120
- color: hasRenders ? buoyColors.textMuted : buoyColors.textMuted
120
+ color: hasRenders ? night.color.textTertiary : night.color.textTertiary
121
121
  })
122
122
  })]
123
123
  });
@@ -262,16 +262,16 @@ const styles = StyleSheet.create({
262
262
  headerSearchContainer: {
263
263
  flexDirection: "row",
264
264
  alignItems: "center",
265
- backgroundColor: buoyColors.input,
265
+ backgroundColor: night.color.surfaceElevated,
266
266
  borderRadius: 10,
267
267
  borderWidth: 1,
268
- borderColor: buoyColors.border,
268
+ borderColor: night.color.border,
269
269
  paddingHorizontal: 12,
270
270
  paddingVertical: 5
271
271
  },
272
272
  headerSearchInput: {
273
273
  flex: 1,
274
- color: buoyColors.text,
274
+ color: night.color.text,
275
275
  fontSize: 13,
276
276
  marginLeft: 6,
277
277
  paddingVertical: 2
@@ -284,9 +284,9 @@ const styles = StyleSheet.create({
284
284
  width: 32,
285
285
  height: 32,
286
286
  borderRadius: 8,
287
- backgroundColor: buoyColors.hover,
287
+ backgroundColor: night.color.buttonSurface,
288
288
  borderWidth: 1,
289
- borderColor: buoyColors.border,
289
+ borderColor: night.color.border,
290
290
  alignItems: "center",
291
291
  justifyContent: "center"
292
292
  },
@@ -294,11 +294,11 @@ const styles = StyleSheet.create({
294
294
  opacity: 0.55
295
295
  },
296
296
  activeFilterButton: {
297
- backgroundColor: buoyColors.primary + "15",
298
- borderColor: buoyColors.primary + "40"
297
+ backgroundColor: night.color.accentSoft,
298
+ borderColor: night.color.accentBorderStrong
299
299
  },
300
300
  freezeButton: {
301
- backgroundColor: buoyColors.primary + "15",
302
- borderColor: buoyColors.primary + "40"
301
+ backgroundColor: night.color.accentSoft,
302
+ borderColor: night.color.accentBorderStrong
303
303
  }
304
304
  });
@@ -13,7 +13,7 @@
13
13
 
14
14
  import React from "react";
15
15
  import { View, Text, StyleSheet } from "react-native";
16
- import { buoyColors } from "@buoy-gg/shared-ui";
16
+ import { buoyColors, night } from "@buoy-gg/shared-ui";
17
17
 
18
18
  // Badge configuration for each cause type
19
19
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
@@ -291,19 +291,19 @@ export function EnhancedCauseDisplay({
291
291
  style: styles.enhancedSection,
292
292
  children: [/*#__PURE__*/_jsx(Text, {
293
293
  style: [styles.enhancedSectionTitle, {
294
- color: buoyColors.textMuted
294
+ color: night.color.textTertiary
295
295
  }],
296
296
  children: "Reference Changes (optimization opportunity):"
297
297
  }), refOnlyChanges.map((key, index) => /*#__PURE__*/_jsxs(View, {
298
298
  style: styles.enhancedChangeRow,
299
299
  children: [/*#__PURE__*/_jsx(Text, {
300
300
  style: [styles.enhancedChangeIcon, {
301
- color: buoyColors.textMuted
301
+ color: night.color.textTertiary
302
302
  }],
303
303
  children: "\u25CB"
304
304
  }), /*#__PURE__*/_jsx(Text, {
305
305
  style: [styles.enhancedChangeText, {
306
- color: buoyColors.textMuted
306
+ color: night.color.textTertiary
307
307
  }],
308
308
  children: key
309
309
  })]
@@ -338,7 +338,7 @@ const styles = StyleSheet.create({
338
338
  componentBadge: {
339
339
  borderStyle: "dashed",
340
340
  borderWidth: 1,
341
- borderColor: buoyColors.border
341
+ borderColor: night.color.border
342
342
  },
343
343
  badgeText: {
344
344
  fontSize: 10,
@@ -353,14 +353,14 @@ const styles = StyleSheet.create({
353
353
  },
354
354
  arrowText: {
355
355
  fontSize: 10,
356
- color: buoyColors.textMuted
356
+ color: night.color.textTertiary
357
357
  },
358
358
  arrowTextCompact: {
359
359
  fontSize: 9
360
360
  },
361
361
  keysText: {
362
362
  fontSize: 11,
363
- color: buoyColors.textSecondary,
363
+ color: night.color.textSecondary,
364
364
  fontFamily: "monospace",
365
365
  flex: 1
366
366
  },
@@ -380,22 +380,22 @@ const styles = StyleSheet.create({
380
380
  twoLevelLabel: {
381
381
  fontSize: 11,
382
382
  fontWeight: "600",
383
- color: buoyColors.textSecondary,
383
+ color: night.color.textSecondary,
384
384
  minWidth: 70
385
385
  },
386
386
  twoLevelName: {
387
387
  fontSize: 11,
388
388
  fontWeight: "600",
389
- color: buoyColors.text,
389
+ color: night.color.text,
390
390
  fontFamily: "monospace"
391
391
  },
392
392
  twoLevelText: {
393
393
  fontSize: 11,
394
- color: buoyColors.textSecondary
394
+ color: night.color.textSecondary
395
395
  },
396
396
  twoLevelKeys: {
397
397
  fontSize: 10,
398
- color: buoyColors.textSecondary,
398
+ color: night.color.textSecondary,
399
399
  fontFamily: "monospace"
400
400
  },
401
401
  // Enhanced cause display styles (Phase 5)
@@ -411,11 +411,12 @@ const styles = StyleSheet.create({
411
411
  enhancedComponentName: {
412
412
  fontSize: 14,
413
413
  fontWeight: "700",
414
- color: buoyColors.text,
414
+ color: night.color.text,
415
415
  fontFamily: "monospace"
416
416
  },
417
417
  enhancedNativeTag: {
418
- backgroundColor: buoyColors.input,
418
+ // Inset display chip — the night track color.
419
+ backgroundColor: night.color.bg,
419
420
  paddingVertical: 2,
420
421
  paddingHorizontal: 6,
421
422
  borderRadius: 4
@@ -423,7 +424,7 @@ const styles = StyleSheet.create({
423
424
  enhancedNativeTagText: {
424
425
  fontSize: 10,
425
426
  fontWeight: "600",
426
- color: buoyColors.textMuted,
427
+ color: night.color.textTertiary,
427
428
  fontFamily: "monospace"
428
429
  },
429
430
  enhancedFlowContainer: {
@@ -432,13 +433,14 @@ const styles = StyleSheet.create({
432
433
  gap: 8,
433
434
  paddingVertical: 8,
434
435
  paddingHorizontal: 12,
435
- backgroundColor: buoyColors.input,
436
+ // Inset display box — the night track color.
437
+ backgroundColor: night.color.bg,
436
438
  borderRadius: 6
437
439
  },
438
440
  enhancedFlowLabel: {
439
441
  fontSize: 11,
440
442
  fontWeight: "600",
441
- color: buoyColors.textSecondary
443
+ color: night.color.textSecondary
442
444
  },
443
445
  enhancedFlowBadge: {
444
446
  paddingVertical: 3,
@@ -451,7 +453,7 @@ const styles = StyleSheet.create({
451
453
  },
452
454
  enhancedFlowArrow: {
453
455
  fontSize: 14,
454
- color: buoyColors.textMuted,
456
+ color: night.color.textTertiary,
455
457
  fontWeight: "300"
456
458
  },
457
459
  enhancedSection: {
@@ -460,7 +462,7 @@ const styles = StyleSheet.create({
460
462
  enhancedSectionTitle: {
461
463
  fontSize: 11,
462
464
  fontWeight: "600",
463
- color: buoyColors.textSecondary,
465
+ color: night.color.textSecondary,
464
466
  letterSpacing: 0.3
465
467
  },
466
468
  enhancedChangeRow: {
@@ -471,19 +473,19 @@ const styles = StyleSheet.create({
471
473
  },
472
474
  enhancedChangeIcon: {
473
475
  fontSize: 12,
474
- color: buoyColors.warning,
476
+ color: night.color.warning,
475
477
  fontFamily: "monospace",
476
478
  width: 16
477
479
  },
478
480
  enhancedChangeText: {
479
481
  fontSize: 12,
480
- color: buoyColors.text,
482
+ color: night.color.text,
481
483
  fontFamily: "monospace",
482
484
  flex: 1
483
485
  },
484
486
  enhancedNoChanges: {
485
487
  fontSize: 12,
486
- color: buoyColors.textMuted,
488
+ color: night.color.textTertiary,
487
489
  fontStyle: "italic",
488
490
  paddingLeft: 4
489
491
  }