@buoy-gg/highlight-updates 2.1.12 → 2.1.14
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 +1 -285
- package/lib/commonjs/highlight-updates/components/HighlightFilterView.js +1 -1371
- package/lib/commonjs/highlight-updates/components/HighlightUpdatesModal.js +1 -591
- package/lib/commonjs/highlight-updates/components/IdentifierBadge.js +1 -267
- package/lib/commonjs/highlight-updates/components/IsolatedRenderList.js +1 -178
- package/lib/commonjs/highlight-updates/components/ModalHeaderContent.js +1 -303
- package/lib/commonjs/highlight-updates/components/RenderCauseBadge.js +1 -500
- package/lib/commonjs/highlight-updates/components/RenderDetailView.js +1 -830
- package/lib/commonjs/highlight-updates/components/RenderHistoryViewer.js +1 -894
- package/lib/commonjs/highlight-updates/components/RenderListItem.js +1 -220
- package/lib/commonjs/highlight-updates/components/StatsDisplay.js +1 -70
- package/lib/commonjs/highlight-updates/components/index.js +1 -97
- package/lib/commonjs/highlight-updates/utils/HighlightUpdatesController.js +1 -1435
- package/lib/commonjs/highlight-updates/utils/PerformanceLogger.js +1 -359
- package/lib/commonjs/highlight-updates/utils/ProfilerInterceptor.js +1 -371
- package/lib/commonjs/highlight-updates/utils/RenderCauseDetector.js +1 -1828
- package/lib/commonjs/highlight-updates/utils/RenderTracker.js +1 -903
- package/lib/commonjs/highlight-updates/utils/ViewTypeMapper.js +1 -264
- package/lib/commonjs/highlight-updates/utils/renderExportFormatter.js +1 -58
- package/lib/commonjs/index.js +1 -311
- package/lib/commonjs/preset.js +1 -278
- package/lib/module/highlight-updates/HighlightUpdatesOverlay.js +1 -278
- package/lib/module/highlight-updates/components/HighlightFilterView.js +1 -1365
- package/lib/module/highlight-updates/components/HighlightUpdatesModal.js +1 -585
- package/lib/module/highlight-updates/components/IdentifierBadge.js +1 -259
- package/lib/module/highlight-updates/components/IsolatedRenderList.js +1 -174
- package/lib/module/highlight-updates/components/ModalHeaderContent.js +1 -298
- package/lib/module/highlight-updates/components/RenderCauseBadge.js +1 -491
- package/lib/module/highlight-updates/components/RenderDetailView.js +1 -826
- package/lib/module/highlight-updates/components/RenderHistoryViewer.js +1 -888
- package/lib/module/highlight-updates/components/RenderListItem.js +1 -215
- package/lib/module/highlight-updates/components/StatsDisplay.js +1 -67
- package/lib/module/highlight-updates/components/index.js +1 -16
- package/lib/module/highlight-updates/utils/HighlightUpdatesController.js +1 -1431
- package/lib/module/highlight-updates/utils/PerformanceLogger.js +1 -353
- package/lib/module/highlight-updates/utils/ProfilerInterceptor.js +1 -358
- package/lib/module/highlight-updates/utils/RenderCauseDetector.js +1 -1818
- package/lib/module/highlight-updates/utils/RenderTracker.js +1 -900
- package/lib/module/highlight-updates/utils/ViewTypeMapper.js +1 -255
- package/lib/module/highlight-updates/utils/renderExportFormatter.js +1 -54
- package/lib/module/index.js +1 -71
- package/lib/module/preset.js +1 -272
- package/package.json +7 -7
- package/lib/typescript/highlight-updates/HighlightUpdatesOverlay.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/components/HighlightFilterView.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/components/HighlightUpdatesModal.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/components/IdentifierBadge.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/components/IsolatedRenderList.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/components/ModalHeaderContent.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/components/RenderCauseBadge.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/components/RenderDetailView.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/components/RenderHistoryViewer.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/components/RenderListItem.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/components/StatsDisplay.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/components/index.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/utils/HighlightUpdatesController.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/utils/PerformanceLogger.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/utils/ProfilerInterceptor.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/utils/RenderCauseDetector.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/utils/RenderTracker.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/utils/ViewTypeMapper.d.ts.map +0 -1
- package/lib/typescript/highlight-updates/utils/renderExportFormatter.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/preset.d.ts.map +0 -1
|
@@ -1,215 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* RenderListItem
|
|
5
|
-
*
|
|
6
|
-
* Compact list item showing a tracked component render.
|
|
7
|
-
* Displays viewType, identifier (testID/nativeID/component), render count, and timing.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import React, { useMemo } from "react";
|
|
11
|
-
import { View, Text, TouchableOpacity, StyleSheet } from "react-native";
|
|
12
|
-
import { ChevronRight, buoyColors, useRelativeTime } from "@buoy-gg/shared-ui";
|
|
13
|
-
import { IdentifierBadge } from "./IdentifierBadge";
|
|
14
|
-
import { RenderCauseBadge } from "./RenderCauseBadge";
|
|
15
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
function RenderListItemInner({
|
|
17
|
-
render,
|
|
18
|
-
onPress
|
|
19
|
-
}) {
|
|
20
|
-
// Get best identifier to show (primary)
|
|
21
|
-
const identifier = useMemo(() => {
|
|
22
|
-
if (render.testID) return {
|
|
23
|
-
type: "testID",
|
|
24
|
-
value: render.testID
|
|
25
|
-
};
|
|
26
|
-
if (render.nativeID) return {
|
|
27
|
-
type: "nativeID",
|
|
28
|
-
value: render.nativeID
|
|
29
|
-
};
|
|
30
|
-
if (render.componentName) return {
|
|
31
|
-
type: "component",
|
|
32
|
-
value: render.componentName
|
|
33
|
-
};
|
|
34
|
-
if (render.accessibilityLabel) return {
|
|
35
|
-
type: "accessibilityLabel",
|
|
36
|
-
value: render.accessibilityLabel
|
|
37
|
-
};
|
|
38
|
-
return {
|
|
39
|
-
type: "nativeTag",
|
|
40
|
-
value: String(render.nativeTag)
|
|
41
|
-
};
|
|
42
|
-
}, [render.testID, render.nativeID, render.componentName, render.accessibilityLabel, render.nativeTag]);
|
|
43
|
-
|
|
44
|
-
// Get secondary identifier (accessibilityLabel if not already primary)
|
|
45
|
-
const secondaryIdentifier = useMemo(() => {
|
|
46
|
-
if (render.accessibilityLabel && identifier.type !== "accessibilityLabel") {
|
|
47
|
-
return {
|
|
48
|
-
type: "accessibilityLabel",
|
|
49
|
-
value: render.accessibilityLabel
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
return null;
|
|
53
|
-
}, [render.accessibilityLabel, identifier.type]);
|
|
54
|
-
|
|
55
|
-
// Format time since last render (live-updating)
|
|
56
|
-
const timeSinceRender = useRelativeTime(render.lastRenderTime);
|
|
57
|
-
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
58
|
-
style: styles.container,
|
|
59
|
-
onPress: () => onPress(render),
|
|
60
|
-
activeOpacity: 0.7,
|
|
61
|
-
children: [/*#__PURE__*/_jsx(View, {
|
|
62
|
-
style: [styles.colorIndicator, {
|
|
63
|
-
backgroundColor: render.color
|
|
64
|
-
}]
|
|
65
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
66
|
-
style: styles.content,
|
|
67
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
68
|
-
style: styles.topRow,
|
|
69
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
70
|
-
style: styles.viewTypeContainer,
|
|
71
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
72
|
-
style: styles.viewType,
|
|
73
|
-
numberOfLines: 1,
|
|
74
|
-
children: render.displayName
|
|
75
|
-
}), secondaryIdentifier ? /*#__PURE__*/_jsx(IdentifierBadge, {
|
|
76
|
-
type: secondaryIdentifier.type,
|
|
77
|
-
value: secondaryIdentifier.value,
|
|
78
|
-
compact: true,
|
|
79
|
-
shortLabel: true
|
|
80
|
-
}) : render.displayName !== render.viewType ? /*#__PURE__*/_jsx(Text, {
|
|
81
|
-
style: styles.nativeType,
|
|
82
|
-
numberOfLines: 1,
|
|
83
|
-
children: render.viewType
|
|
84
|
-
}) : null]
|
|
85
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
86
|
-
style: [styles.renderCountBadge, {
|
|
87
|
-
backgroundColor: render.color + "30"
|
|
88
|
-
}],
|
|
89
|
-
children: /*#__PURE__*/_jsxs(Text, {
|
|
90
|
-
style: [styles.renderCount, {
|
|
91
|
-
color: render.color
|
|
92
|
-
}],
|
|
93
|
-
children: [render.renderCount, "x"]
|
|
94
|
-
})
|
|
95
|
-
})]
|
|
96
|
-
}), render.lastRenderCause && /*#__PURE__*/_jsx(View, {
|
|
97
|
-
style: styles.causeRow,
|
|
98
|
-
children: /*#__PURE__*/_jsx(RenderCauseBadge, {
|
|
99
|
-
cause: render.lastRenderCause,
|
|
100
|
-
compact: true,
|
|
101
|
-
showKeys: true,
|
|
102
|
-
showTwoLevel: true
|
|
103
|
-
})
|
|
104
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
105
|
-
style: styles.bottomRow,
|
|
106
|
-
children: [/*#__PURE__*/_jsx(View, {
|
|
107
|
-
style: styles.identifierContainer,
|
|
108
|
-
children: /*#__PURE__*/_jsx(IdentifierBadge, {
|
|
109
|
-
type: identifier.type,
|
|
110
|
-
value: identifier.value,
|
|
111
|
-
compact: true,
|
|
112
|
-
shortLabel: true
|
|
113
|
-
})
|
|
114
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
115
|
-
style: styles.timing,
|
|
116
|
-
children: timeSinceRender
|
|
117
|
-
})]
|
|
118
|
-
})]
|
|
119
|
-
}), /*#__PURE__*/_jsx(ChevronRight, {
|
|
120
|
-
size: 16,
|
|
121
|
-
color: buoyColors.textMuted
|
|
122
|
-
})]
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// Memoize with custom comparison - only re-render when relevant props change
|
|
127
|
-
// This is critical for performance when the modal is open during rapid renders
|
|
128
|
-
export const RenderListItem = /*#__PURE__*/React.memo(RenderListItemInner, (prevProps, nextProps) => {
|
|
129
|
-
// Return true if props are EQUAL (skip re-render)
|
|
130
|
-
// Return false if props are DIFFERENT (trigger re-render)
|
|
131
|
-
const prevRender = prevProps.render;
|
|
132
|
-
const nextRender = nextProps.render;
|
|
133
|
-
return prevRender.id === nextRender.id && prevRender.renderCount === nextRender.renderCount && prevRender.color === nextRender.color && prevRender.lastRenderTime === nextRender.lastRenderTime && prevRender.lastRenderCause?.type === nextRender.lastRenderCause?.type && prevRender.lastRenderCause?.componentCause === nextRender.lastRenderCause?.componentCause && prevProps.onPress === nextProps.onPress;
|
|
134
|
-
});
|
|
135
|
-
const styles = StyleSheet.create({
|
|
136
|
-
container: {
|
|
137
|
-
flexDirection: "row",
|
|
138
|
-
alignItems: "center",
|
|
139
|
-
paddingVertical: 10,
|
|
140
|
-
paddingHorizontal: 12,
|
|
141
|
-
marginHorizontal: 12,
|
|
142
|
-
marginBottom: 6,
|
|
143
|
-
backgroundColor: buoyColors.card,
|
|
144
|
-
borderRadius: 8,
|
|
145
|
-
borderWidth: 1,
|
|
146
|
-
borderColor: buoyColors.border
|
|
147
|
-
},
|
|
148
|
-
colorIndicator: {
|
|
149
|
-
width: 4,
|
|
150
|
-
height: 36,
|
|
151
|
-
borderRadius: 2,
|
|
152
|
-
marginRight: 10
|
|
153
|
-
},
|
|
154
|
-
content: {
|
|
155
|
-
flex: 1,
|
|
156
|
-
marginRight: 8
|
|
157
|
-
},
|
|
158
|
-
topRow: {
|
|
159
|
-
flexDirection: "row",
|
|
160
|
-
alignItems: "center",
|
|
161
|
-
marginBottom: 4
|
|
162
|
-
},
|
|
163
|
-
causeRow: {
|
|
164
|
-
marginBottom: 4
|
|
165
|
-
},
|
|
166
|
-
viewTypeContainer: {
|
|
167
|
-
flex: 1,
|
|
168
|
-
marginRight: 8
|
|
169
|
-
},
|
|
170
|
-
viewType: {
|
|
171
|
-
fontSize: 13,
|
|
172
|
-
fontWeight: "600",
|
|
173
|
-
color: buoyColors.text
|
|
174
|
-
},
|
|
175
|
-
nativeType: {
|
|
176
|
-
fontSize: 10,
|
|
177
|
-
color: buoyColors.textMuted,
|
|
178
|
-
fontFamily: "monospace",
|
|
179
|
-
marginTop: 1
|
|
180
|
-
},
|
|
181
|
-
accessibilityLabel: {
|
|
182
|
-
fontSize: 10,
|
|
183
|
-
color: buoyColors.primary,
|
|
184
|
-
fontStyle: "italic",
|
|
185
|
-
marginTop: 1
|
|
186
|
-
},
|
|
187
|
-
renderCountBadge: {
|
|
188
|
-
paddingHorizontal: 8,
|
|
189
|
-
paddingVertical: 2,
|
|
190
|
-
borderRadius: 10
|
|
191
|
-
},
|
|
192
|
-
renderCount: {
|
|
193
|
-
fontSize: 11,
|
|
194
|
-
fontWeight: "700",
|
|
195
|
-
fontFamily: "monospace"
|
|
196
|
-
},
|
|
197
|
-
bottomRow: {
|
|
198
|
-
flexDirection: "row",
|
|
199
|
-
alignItems: "center",
|
|
200
|
-
justifyContent: "space-between",
|
|
201
|
-
gap: 8
|
|
202
|
-
},
|
|
203
|
-
identifierContainer: {
|
|
204
|
-
flex: 1,
|
|
205
|
-
flexShrink: 1,
|
|
206
|
-
overflow: "hidden"
|
|
207
|
-
},
|
|
208
|
-
timing: {
|
|
209
|
-
fontSize: 10,
|
|
210
|
-
color: buoyColors.textMuted,
|
|
211
|
-
fontWeight: "500",
|
|
212
|
-
flexShrink: 0
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
export default RenderListItem;
|
|
1
|
+
"use strict";import React,{useMemo}from"react";import{View,Text,TouchableOpacity,StyleSheet}from"react-native";import{ChevronRight,buoyColors,useRelativeTime}from"@buoy-gg/shared-ui";import{IdentifierBadge}from"./IdentifierBadge";import{RenderCauseBadge}from"./RenderCauseBadge";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";function RenderListItemInner({render:e,onPress:t}){const o=useMemo(()=>e.testID?{type:"testID",value:e.testID}:e.nativeID?{type:"nativeID",value:e.nativeID}:e.componentName?{type:"component",value:e.componentName}:e.accessibilityLabel?{type:"accessibilityLabel",value:e.accessibilityLabel}:{type:"nativeTag",value:String(e.nativeTag)},[e.testID,e.nativeID,e.componentName,e.accessibilityLabel,e.nativeTag]),i=useMemo(()=>e.accessibilityLabel&&"accessibilityLabel"!==o.type?{type:"accessibilityLabel",value:e.accessibilityLabel}:null,[e.accessibilityLabel,o.type]),s=useRelativeTime(e.lastRenderTime);return _jsxs(TouchableOpacity,{style:styles.container,onPress:()=>t(e),activeOpacity:.7,children:[_jsx(View,{style:[styles.colorIndicator,{backgroundColor:e.color}]}),_jsxs(View,{style:styles.content,children:[_jsxs(View,{style:styles.topRow,children:[_jsxs(View,{style:styles.viewTypeContainer,children:[_jsx(Text,{style:styles.viewType,numberOfLines:1,children:e.displayName}),i?_jsx(IdentifierBadge,{type:i.type,value:i.value,compact:!0,shortLabel:!0}):e.displayName!==e.viewType?_jsx(Text,{style:styles.nativeType,numberOfLines:1,children:e.viewType}):null]}),_jsx(View,{style:[styles.renderCountBadge,{backgroundColor:e.color+"30"}],children:_jsxs(Text,{style:[styles.renderCount,{color:e.color}],children:[e.renderCount,"x"]})})]}),e.lastRenderCause&&_jsx(View,{style:styles.causeRow,children:_jsx(RenderCauseBadge,{cause:e.lastRenderCause,compact:!0,showKeys:!0,showTwoLevel:!0})}),_jsxs(View,{style:styles.bottomRow,children:[_jsx(View,{style:styles.identifierContainer,children:_jsx(IdentifierBadge,{type:o.type,value:o.value,compact:!0,shortLabel:!0})}),_jsx(Text,{style:styles.timing,children:s})]})]}),_jsx(ChevronRight,{size:16,color:buoyColors.textMuted})]})}export const RenderListItem=React.memo(RenderListItemInner,(e,t)=>{const o=e.render,i=t.render;return o.id===i.id&&o.renderCount===i.renderCount&&o.color===i.color&&o.lastRenderTime===i.lastRenderTime&&o.lastRenderCause?.type===i.lastRenderCause?.type&&o.lastRenderCause?.componentCause===i.lastRenderCause?.componentCause&&e.onPress===t.onPress});const styles=StyleSheet.create({container:{flexDirection:"row",alignItems:"center",paddingVertical:10,paddingHorizontal:12,marginHorizontal:12,marginBottom:6,backgroundColor:buoyColors.card,borderRadius:8,borderWidth:1,borderColor:buoyColors.border},colorIndicator:{width:4,height:36,borderRadius:2,marginRight:10},content:{flex:1,marginRight:8},topRow:{flexDirection:"row",alignItems:"center",marginBottom:4},causeRow:{marginBottom:4},viewTypeContainer:{flex:1,marginRight:8},viewType:{fontSize:13,fontWeight:"600",color:buoyColors.text},nativeType:{fontSize:10,color:buoyColors.textMuted,fontFamily:"monospace",marginTop:1},accessibilityLabel:{fontSize:10,color:buoyColors.primary,fontStyle:"italic",marginTop:1},renderCountBadge:{paddingHorizontal:8,paddingVertical:2,borderRadius:10},renderCount:{fontSize:11,fontWeight:"700",fontFamily:"monospace"},bottomRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8},identifierContainer:{flex:1,flexShrink:1,overflow:"hidden"},timing:{fontSize:10,color:buoyColors.textMuted,fontWeight:"500",flexShrink:0}});export default RenderListItem;
|
|
@@ -1,67 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* StatsDisplay
|
|
5
|
-
*
|
|
6
|
-
* Isolated component for displaying render statistics in the header.
|
|
7
|
-
* Subscribes to RenderTracker updates independently so parent header
|
|
8
|
-
* doesn't re-render when stats change.
|
|
9
|
-
*
|
|
10
|
-
* Following the optimization guide: move subscriptions to child components.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import React, { useState, useEffect, memo } from "react";
|
|
14
|
-
import { View, Text, StyleSheet } from "react-native";
|
|
15
|
-
import { Activity, buoyColors } from "@buoy-gg/shared-ui";
|
|
16
|
-
import { RenderTracker } from "../utils/RenderTracker";
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Isolated stats display that owns its own subscription.
|
|
20
|
-
* Only this component re-renders when stats change.
|
|
21
|
-
*/
|
|
22
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
-
function StatsDisplayInner() {
|
|
24
|
-
const [stats, setStats] = useState({
|
|
25
|
-
totalComponents: 0,
|
|
26
|
-
totalRenders: 0
|
|
27
|
-
});
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
const unsubscribe = RenderTracker.subscribe(() => {
|
|
30
|
-
setStats(RenderTracker.getStats());
|
|
31
|
-
});
|
|
32
|
-
return unsubscribe;
|
|
33
|
-
}, []);
|
|
34
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
35
|
-
nativeID: "__rn_buoy__stats-row",
|
|
36
|
-
style: styles.headerChip,
|
|
37
|
-
children: [/*#__PURE__*/_jsx(Activity, {
|
|
38
|
-
size: 12,
|
|
39
|
-
color: buoyColors.primary
|
|
40
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
41
|
-
style: [styles.headerChipValue, {
|
|
42
|
-
color: buoyColors.primary
|
|
43
|
-
}],
|
|
44
|
-
children: stats.totalComponents
|
|
45
|
-
})]
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
export const StatsDisplay = /*#__PURE__*/memo(StatsDisplayInner);
|
|
49
|
-
const styles = StyleSheet.create({
|
|
50
|
-
headerChip: {
|
|
51
|
-
flexDirection: "row",
|
|
52
|
-
alignItems: "center",
|
|
53
|
-
gap: 4,
|
|
54
|
-
backgroundColor: buoyColors.hover,
|
|
55
|
-
paddingHorizontal: 8,
|
|
56
|
-
paddingVertical: 5,
|
|
57
|
-
borderRadius: 12,
|
|
58
|
-
borderWidth: 1,
|
|
59
|
-
borderColor: buoyColors.border
|
|
60
|
-
},
|
|
61
|
-
headerChipValue: {
|
|
62
|
-
fontSize: 12,
|
|
63
|
-
fontWeight: "600",
|
|
64
|
-
fontFamily: "monospace"
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
export default StatsDisplay;
|
|
1
|
+
"use strict";import React,{useState,useEffect,memo}from"react";import{View,Text,StyleSheet}from"react-native";import{Activity,buoyColors}from"@buoy-gg/shared-ui";import{RenderTracker}from"../utils/RenderTracker";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";function StatsDisplayInner(){const[e,t]=useState({totalComponents:0,totalRenders:0});return useEffect(()=>RenderTracker.subscribe(()=>{t(RenderTracker.getStats())}),[]),_jsxs(View,{nativeID:"__rn_buoy__stats-row",style:styles.headerChip,children:[_jsx(Activity,{size:12,color:buoyColors.primary}),_jsx(Text,{style:[styles.headerChipValue,{color:buoyColors.primary}],children:e.totalComponents})]})}export const StatsDisplay=memo(StatsDisplayInner);const styles=StyleSheet.create({headerChip:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:buoyColors.hover,paddingHorizontal:8,paddingVertical:5,borderRadius:12,borderWidth:1,borderColor:buoyColors.border},headerChipValue:{fontSize:12,fontWeight:"600",fontFamily:"monospace"}});export default StatsDisplay;
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Highlight Updates Modal Components
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export { HighlightUpdatesModal } from "./HighlightUpdatesModal";
|
|
8
|
-
export { RenderListItem } from "./RenderListItem";
|
|
9
|
-
export { RenderDetailView } from "./RenderDetailView";
|
|
10
|
-
export { HighlightFilterView } from "./HighlightFilterView";
|
|
11
|
-
export { IdentifierBadge, CategoryBadge, IDENTIFIER_CONFIG } from "./IdentifierBadge";
|
|
12
|
-
|
|
13
|
-
// Performance-optimized isolated components
|
|
14
|
-
export { IsolatedRenderList } from "./IsolatedRenderList";
|
|
15
|
-
export { StatsDisplay } from "./StatsDisplay";
|
|
16
|
-
export { MainListHeader, FilterViewHeader, DetailViewHeader, HeaderActions, SearchSection } from "./ModalHeaderContent";
|
|
1
|
+
"use strict";export{HighlightUpdatesModal}from"./HighlightUpdatesModal";export{RenderListItem}from"./RenderListItem";export{RenderDetailView}from"./RenderDetailView";export{HighlightFilterView}from"./HighlightFilterView";export{IdentifierBadge,CategoryBadge,IDENTIFIER_CONFIG}from"./IdentifierBadge";export{IsolatedRenderList}from"./IsolatedRenderList";export{StatsDisplay}from"./StatsDisplay";export{MainListHeader,FilterViewHeader,DetailViewHeader,HeaderActions,SearchSection}from"./ModalHeaderContent";
|