@buoy-gg/network 7.0.15 → 7.0.17

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 (107) hide show
  1. package/lib/commonjs/index.web.js +395 -0
  2. package/lib/commonjs/network/components/DataViewer.web.js +879 -0
  3. package/lib/commonjs/network/components/NetworkCopyScreen.web.js +48 -0
  4. package/lib/commonjs/network/components/NetworkCopySettingsView.web.js +1242 -0
  5. package/lib/commonjs/network/components/NetworkDetailScreen.web.js +101 -0
  6. package/lib/commonjs/network/components/NetworkDetailStepper.web.js +296 -0
  7. package/lib/commonjs/network/components/NetworkEventDetailView.web.js +1498 -0
  8. package/lib/commonjs/network/components/NetworkEventItemCompact.web.js +802 -0
  9. package/lib/commonjs/network/components/NetworkFilterScreen.web.js +55 -0
  10. package/lib/commonjs/network/components/NetworkFilterViewV3.web.js +1310 -0
  11. package/lib/commonjs/network/components/NetworkHeaderLive.web.js +604 -0
  12. package/lib/commonjs/network/components/NetworkListScreen.js +2 -1
  13. package/lib/commonjs/network/components/NetworkListScreen.web.js +607 -0
  14. package/lib/commonjs/network/components/NetworkModal.js +12 -3
  15. package/lib/commonjs/network/components/NetworkNumberPrompt.web.js +232 -0
  16. package/lib/commonjs/network/components/NetworkOverrideEditor.web.js +942 -0
  17. package/lib/commonjs/network/components/NetworkOverrideHeaderButton.web.js +133 -0
  18. package/lib/commonjs/network/components/NetworkOverridesButton.web.js +143 -0
  19. package/lib/commonjs/network/components/NetworkOverridesScreen.js +160 -126
  20. package/lib/commonjs/network/components/NetworkOverridesScreen.web.js +830 -0
  21. package/lib/commonjs/network/components/NetworkSavedScreen.web.js +459 -0
  22. package/lib/commonjs/network/components/response-editor/Explorer.web.js +1136 -0
  23. package/lib/commonjs/network/hooks/useNetworkEventList.js +12 -2
  24. package/lib/commonjs/network/overrides/applyToXhr.js +276 -15
  25. package/lib/commonjs/network/utils/generateNetworkCopyText.js +32 -5
  26. package/lib/commonjs/network/utils/networkEventStore.js +12 -4
  27. package/lib/commonjs/network/utils/networkListener.js +1 -16
  28. package/lib/module/index.web.js +81 -0
  29. package/lib/module/network/components/DataViewer.web.js +875 -0
  30. package/lib/module/network/components/NetworkCopyScreen.web.js +44 -0
  31. package/lib/module/network/components/NetworkCopySettingsView.web.js +1237 -0
  32. package/lib/module/network/components/NetworkDetailScreen.web.js +97 -0
  33. package/lib/module/network/components/NetworkDetailStepper.web.js +294 -0
  34. package/lib/module/network/components/NetworkEventDetailView.web.js +1496 -0
  35. package/lib/module/network/components/NetworkEventItemCompact.web.js +800 -0
  36. package/lib/module/network/components/NetworkFilterScreen.web.js +51 -0
  37. package/lib/module/network/components/NetworkFilterViewV3.web.js +1306 -0
  38. package/lib/module/network/components/NetworkHeaderLive.web.js +598 -0
  39. package/lib/module/network/components/NetworkListScreen.js +2 -1
  40. package/lib/module/network/components/NetworkListScreen.web.js +605 -0
  41. package/lib/module/network/components/NetworkModal.js +12 -3
  42. package/lib/module/network/components/NetworkNumberPrompt.web.js +230 -0
  43. package/lib/module/network/components/NetworkOverrideEditor.web.js +939 -0
  44. package/lib/module/network/components/NetworkOverrideHeaderButton.web.js +131 -0
  45. package/lib/module/network/components/NetworkOverridesButton.web.js +141 -0
  46. package/lib/module/network/components/NetworkOverridesScreen.js +161 -127
  47. package/lib/module/network/components/NetworkOverridesScreen.web.js +826 -0
  48. package/lib/module/network/components/NetworkSavedScreen.web.js +457 -0
  49. package/lib/module/network/components/response-editor/Explorer.web.js +1133 -0
  50. package/lib/module/network/hooks/useNetworkEventList.js +12 -2
  51. package/lib/module/network/overrides/applyToXhr.js +275 -15
  52. package/lib/module/network/utils/generateNetworkCopyText.js +28 -1
  53. package/lib/module/network/utils/networkEventStore.js +12 -4
  54. package/lib/module/network/utils/networkListener.js +1 -16
  55. package/lib/typescript/index.web.d.ts +56 -0
  56. package/lib/typescript/index.web.d.ts.map +1 -0
  57. package/lib/typescript/network/components/DataViewer.web.d.ts +78 -0
  58. package/lib/typescript/network/components/DataViewer.web.d.ts.map +1 -0
  59. package/lib/typescript/network/components/NetworkCopyScreen.web.d.ts +27 -0
  60. package/lib/typescript/network/components/NetworkCopyScreen.web.d.ts.map +1 -0
  61. package/lib/typescript/network/components/NetworkCopySettingsView.web.d.ts +68 -0
  62. package/lib/typescript/network/components/NetworkCopySettingsView.web.d.ts.map +1 -0
  63. package/lib/typescript/network/components/NetworkDetailScreen.web.d.ts +45 -0
  64. package/lib/typescript/network/components/NetworkDetailScreen.web.d.ts.map +1 -0
  65. package/lib/typescript/network/components/NetworkDetailStepper.web.d.ts +40 -0
  66. package/lib/typescript/network/components/NetworkDetailStepper.web.d.ts.map +1 -0
  67. package/lib/typescript/network/components/NetworkEventDetailView.web.d.ts +67 -0
  68. package/lib/typescript/network/components/NetworkEventDetailView.web.d.ts.map +1 -0
  69. package/lib/typescript/network/components/NetworkEventItemCompact.web.d.ts +58 -0
  70. package/lib/typescript/network/components/NetworkEventItemCompact.web.d.ts.map +1 -0
  71. package/lib/typescript/network/components/NetworkFilterScreen.web.d.ts +28 -0
  72. package/lib/typescript/network/components/NetworkFilterScreen.web.d.ts.map +1 -0
  73. package/lib/typescript/network/components/NetworkFilterViewV3.web.d.ts +74 -0
  74. package/lib/typescript/network/components/NetworkFilterViewV3.web.d.ts.map +1 -0
  75. package/lib/typescript/network/components/NetworkHeaderLive.web.d.ts +112 -0
  76. package/lib/typescript/network/components/NetworkHeaderLive.web.d.ts.map +1 -0
  77. package/lib/typescript/network/components/NetworkListScreen.d.ts.map +1 -1
  78. package/lib/typescript/network/components/NetworkListScreen.web.d.ts +63 -0
  79. package/lib/typescript/network/components/NetworkListScreen.web.d.ts.map +1 -0
  80. package/lib/typescript/network/components/NetworkModal.d.ts.map +1 -1
  81. package/lib/typescript/network/components/NetworkNumberPrompt.web.d.ts +38 -0
  82. package/lib/typescript/network/components/NetworkNumberPrompt.web.d.ts.map +1 -0
  83. package/lib/typescript/network/components/NetworkOverrideEditor.web.d.ts +43 -0
  84. package/lib/typescript/network/components/NetworkOverrideEditor.web.d.ts.map +1 -0
  85. package/lib/typescript/network/components/NetworkOverrideHeaderButton.web.d.ts +32 -0
  86. package/lib/typescript/network/components/NetworkOverrideHeaderButton.web.d.ts.map +1 -0
  87. package/lib/typescript/network/components/NetworkOverridesButton.web.d.ts +26 -0
  88. package/lib/typescript/network/components/NetworkOverridesButton.web.d.ts.map +1 -0
  89. package/lib/typescript/network/components/NetworkOverridesScreen.d.ts +9 -0
  90. package/lib/typescript/network/components/NetworkOverridesScreen.d.ts.map +1 -1
  91. package/lib/typescript/network/components/NetworkOverridesScreen.web.d.ts +69 -0
  92. package/lib/typescript/network/components/NetworkOverridesScreen.web.d.ts.map +1 -0
  93. package/lib/typescript/network/components/NetworkSavedScreen.web.d.ts +67 -0
  94. package/lib/typescript/network/components/NetworkSavedScreen.web.d.ts.map +1 -0
  95. package/lib/typescript/network/components/response-editor/Explorer.web.d.ts +56 -0
  96. package/lib/typescript/network/components/response-editor/Explorer.web.d.ts.map +1 -0
  97. package/lib/typescript/network/hooks/useNetworkEventList.d.ts +10 -0
  98. package/lib/typescript/network/hooks/useNetworkEventList.d.ts.map +1 -1
  99. package/lib/typescript/network/overrides/__tests__/applyToXhr.test.d.ts.map +1 -1
  100. package/lib/typescript/network/overrides/applyToXhr.d.ts +40 -14
  101. package/lib/typescript/network/overrides/applyToXhr.d.ts.map +1 -1
  102. package/lib/typescript/network/utils/generateNetworkCopyText.d.ts +34 -1
  103. package/lib/typescript/network/utils/generateNetworkCopyText.d.ts.map +1 -1
  104. package/lib/typescript/network/utils/networkEventStore.d.ts.map +1 -1
  105. package/lib/typescript/network/utils/networkListener.d.ts +0 -1
  106. package/lib/typescript/network/utils/networkListener.d.ts.map +1 -1
  107. package/package.json +2 -2
@@ -0,0 +1,457 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * NetworkSavedScreen.web — DOM twin of NetworkSavedScreen.tsx.
5
+ *
6
+ * The SAVED screen — the network tool's favorites list. Everything here is
7
+ * read from the persisted saved store, never from the live event store: these
8
+ * requests survive a Clear, the 500-event cap, and an app restart. Identical
9
+ * prop contract, hook usage and derivation order as the native file — the
10
+ * data layer is REUSED, not forked (`useNetworkSaved`, `selectSavedEvents`,
11
+ * `generateNetworkCopyText` are all platform-free).
12
+ *
13
+ * Rows are the same row component the live list uses
14
+ * (`NetworkEventItemCompact.web`), so a saved request looks exactly like the
15
+ * request it was. Long-press here UNSAVES rather than pins — in this list
16
+ * "get rid of it" is the action the row affords (pinning stays on the detail
17
+ * header). Row tap opens the detail view via `onEventPress` — hosts wire it
18
+ * to `networkSelectionStore.select` and pass `fromSaved` to the detail
19
+ * screen, so the prev/next footer steps through THIS list (native behavior;
20
+ * `NetworkDetailStepper.web` already derives it from `selectSavedEvents`).
21
+ *
22
+ * Stable-tree contract (rule4): hooks run unconditionally, then the
23
+ * component returns null when not visible.
24
+ *
25
+ * shared-ui RN chrome is replicated as DOM with provenance (web consumers
26
+ * resolve `@buoy-gg/shared-ui` to a minimal shim):
27
+ * - `macOSColors` / `buoyColors` — inlined verbatim subsets from
28
+ * shared/src/ui/gameUI/constants/.
29
+ * - Icons — inline lucide SVGs (shared-ui's icons are lucide re-exports).
30
+ * - `CopyButton` — the DOM twin exported by DataViewer.web (same lazy
31
+ * function-value contract, colors and 1500ms feedback as native).
32
+ * - `NetworkUpgradeBanner` — inlined DOM twin, values from
33
+ * NetworkUpgradeBanner.tsx + license/FeatureGate.tsx `proBadge` styles
34
+ * (static gold-less "PRO" — the Weekend Pass variant reads
35
+ * `useProAccess` from @buoy-gg/license, not part of the web port).
36
+ *
37
+ * Intentional deviations (all logged):
38
+ * - FlatList virtualization → a plain scrolled div (same deal as
39
+ * NetworkListScreen.web: MAX_SAVED caps the list at 50 rows, and the
40
+ * window/batch tuning + `extraData` are FlatList-only concerns).
41
+ * - `CopySettings` is imported from the platform-free
42
+ * `generateNetworkCopyText` module (the native screen imports it from
43
+ * NetworkCopySettingsView.tsx, which would drag react-native in).
44
+ *
45
+ * @platform React DOM Web
46
+ */
47
+
48
+ import { useState } from "react";
49
+ import { NetworkEventItemCompact } from "./NetworkEventItemCompact.web";
50
+ import { CopyButton } from "./DataViewer.web";
51
+ import { generateNetworkCopyText } from "../utils/generateNetworkCopyText";
52
+ import { selectSavedEvents } from "../utils/selectSavedEvents";
53
+ import { useNetworkSaved } from "../hooks/useNetworkSaved";
54
+ import { FREE_TIER_SAVED_LIMIT } from "../utils/networkSavedStore";
55
+
56
+ // =============================
57
+ // Native palettes (provenance)
58
+ // =============================
59
+
60
+ /** macOSColors subset — shared/src/ui/gameUI/constants/macOSDesignSystemColors.ts, verbatim. */
61
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
62
+ const macOSColors = {
63
+ background: {
64
+ input: "#26262A"
65
+ },
66
+ border: {
67
+ default: "#2D2D2F"
68
+ },
69
+ text: {
70
+ primary: "#F5F5F7",
71
+ secondary: "#A1A1A6",
72
+ muted: "#8E8E93",
73
+ disabled: "#9E9EA0"
74
+ },
75
+ semantic: {
76
+ success: "#34C759",
77
+ error: "#FF453A",
78
+ debug: "#BF5AF2"
79
+ }
80
+ };
81
+
82
+ /** buoyColors subset — shared/src/ui/gameUI/constants/gameUIColors.ts (macOS theme), verbatim. */
83
+ const buoy = {
84
+ card: "#1A1A1A",
85
+ text: "#E0E0E0",
86
+ textMuted: "#888888",
87
+ primary: "#20C997"
88
+ };
89
+
90
+ // =============================
91
+ // Inline lucide icons (shared-ui icons are lucide re-exports)
92
+ // =============================
93
+
94
+ function Svg({
95
+ size = 14,
96
+ color = "currentColor",
97
+ children
98
+ }) {
99
+ return /*#__PURE__*/_jsx("svg", {
100
+ width: size,
101
+ height: size,
102
+ viewBox: "0 0 24 24",
103
+ fill: "none",
104
+ stroke: color,
105
+ strokeWidth: 2,
106
+ strokeLinecap: "round",
107
+ strokeLinejoin: "round",
108
+ style: {
109
+ flexShrink: 0,
110
+ display: "block"
111
+ },
112
+ children: children
113
+ });
114
+ }
115
+ const Bookmark = p => /*#__PURE__*/_jsx(Svg, {
116
+ ...p,
117
+ children: /*#__PURE__*/_jsx("path", {
118
+ d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"
119
+ })
120
+ });
121
+ const Search = p => /*#__PURE__*/_jsxs(Svg, {
122
+ ...p,
123
+ children: [/*#__PURE__*/_jsx("circle", {
124
+ cx: "11",
125
+ cy: "11",
126
+ r: "8"
127
+ }), /*#__PURE__*/_jsx("path", {
128
+ d: "m21 21-4.3-4.3"
129
+ })]
130
+ });
131
+ const Zap = p => /*#__PURE__*/_jsx(Svg, {
132
+ ...p,
133
+ children: /*#__PURE__*/_jsx("polygon", {
134
+ points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2"
135
+ })
136
+ });
137
+
138
+ // =============================
139
+ // NetworkUpgradeBanner DOM twin (provenance: NetworkUpgradeBanner.tsx +
140
+ // license/FeatureGate.tsx proBadge styles — see the deviations log)
141
+ // =============================
142
+
143
+ function NetworkUpgradeBannerWeb({
144
+ title,
145
+ subtitle,
146
+ onPress
147
+ }) {
148
+ return /*#__PURE__*/_jsxs("button", {
149
+ type: "button",
150
+ style: styles.upgradeBanner,
151
+ onClick: onPress,
152
+ children: [/*#__PURE__*/_jsxs("span", {
153
+ style: styles.upgradeContent,
154
+ children: [/*#__PURE__*/_jsxs("span", {
155
+ style: styles.upgradeLeft,
156
+ children: [/*#__PURE__*/_jsx(Zap, {
157
+ size: 16,
158
+ color: buoy.primary
159
+ }), /*#__PURE__*/_jsx("span", {
160
+ style: styles.upgradeTitle,
161
+ children: title
162
+ })]
163
+ }), /*#__PURE__*/_jsx("span", {
164
+ style: styles.proBadge,
165
+ children: "PRO"
166
+ })]
167
+ }), /*#__PURE__*/_jsx("span", {
168
+ style: styles.upgradeSubtitle,
169
+ children: subtitle
170
+ })]
171
+ });
172
+ }
173
+
174
+ // =============================
175
+ // Screen (structure mirrors the native file 1:1)
176
+ // =============================
177
+
178
+ function EmptyState() {
179
+ return /*#__PURE__*/_jsxs("div", {
180
+ style: styles.emptyState,
181
+ children: [/*#__PURE__*/_jsx(Bookmark, {
182
+ size: 32,
183
+ color: macOSColors.text.muted
184
+ }), /*#__PURE__*/_jsx("div", {
185
+ style: styles.emptyTitle,
186
+ children: "No saved requests"
187
+ }), /*#__PURE__*/_jsx("div", {
188
+ style: styles.emptyText,
189
+ children: "Open a request and tap the bookmark to keep it here \u2014 saved requests survive Clear and app restarts."
190
+ })]
191
+ });
192
+ }
193
+ export function NetworkSavedScreen({
194
+ visible,
195
+ isPro,
196
+ copySettings,
197
+ search: searchProp,
198
+ onSearchChange,
199
+ onEventPress,
200
+ onUpgradePress
201
+ }) {
202
+ const {
203
+ savedRecords,
204
+ pinnedLiveIds,
205
+ toggleSave,
206
+ clearSaved
207
+ } = useNetworkSaved();
208
+ const [searchState, setSearchState] = useState("");
209
+ const controlled = searchProp != null && onSearchChange != null;
210
+ const search = controlled ? searchProp : searchState;
211
+ const setSearch = controlled ? onSearchChange : setSearchState;
212
+ if (!visible) return null;
213
+
214
+ // Shared with the detail footer, so "Next" can't disagree with the row below.
215
+ const {
216
+ events: filtered,
217
+ lockedCount
218
+ } = selectSavedEvents(savedRecords, isPro, search);
219
+ const handleLongPress = event => {
220
+ toggleSave(event);
221
+ };
222
+ const renderListFooter = () => {
223
+ if (lockedCount === 0) return null;
224
+ return /*#__PURE__*/_jsx(NetworkUpgradeBannerWeb, {
225
+ title: `${lockedCount} saved ${lockedCount === 1 ? "request" : "requests"} locked`,
226
+ subtitle: `Free keeps ${FREE_TIER_SAVED_LIMIT}. Upgrade to Pro to unlock the rest.`,
227
+ onPress: onUpgradePress
228
+ });
229
+ };
230
+ return /*#__PURE__*/_jsxs("div", {
231
+ style: styles.root,
232
+ children: [/*#__PURE__*/_jsxs("div", {
233
+ style: styles.toolbar,
234
+ children: [/*#__PURE__*/_jsx(Bookmark, {
235
+ size: 11,
236
+ color: macOSColors.semantic.debug
237
+ }), /*#__PURE__*/_jsxs("span", {
238
+ style: styles.toolbarTitle,
239
+ children: ["SAVED \xB7 ", savedRecords.length, isPro ? "" : `/${FREE_TIER_SAVED_LIMIT}`]
240
+ }), isPro ? /*#__PURE__*/_jsx(CopyButton
241
+ // Lazy value, resolved at press time — no string is built per
242
+ // render, and it always reflects the current list.
243
+ , {
244
+ value: () => generateNetworkCopyText(filtered, copySettings),
245
+ size: 13,
246
+ buttonStyle: {
247
+ ...styles.toolbarButton,
248
+ ...(filtered.length === 0 ? styles.toolbarButtonDisabled : null)
249
+ },
250
+ colors: {
251
+ idle: macOSColors.text.secondary,
252
+ success: macOSColors.semantic.success,
253
+ error: macOSColors.semantic.error
254
+ },
255
+ "aria-label": "Copy saved requests"
256
+ }) : null, /*#__PURE__*/_jsx("button", {
257
+ type: "button",
258
+ onClick: clearSaved,
259
+ style: styles.toolbarClear,
260
+ disabled: savedRecords.length === 0,
261
+ children: /*#__PURE__*/_jsx("span", {
262
+ style: {
263
+ ...styles.toolbarClearText,
264
+ ...(savedRecords.length === 0 ? styles.toolbarClearTextDisabled : null)
265
+ },
266
+ children: "Clear all"
267
+ })
268
+ })]
269
+ }), savedRecords.length > 0 ? /*#__PURE__*/_jsxs("div", {
270
+ style: styles.searchRow,
271
+ children: [/*#__PURE__*/_jsx(Search, {
272
+ size: 13,
273
+ color: macOSColors.text.secondary
274
+ }), /*#__PURE__*/_jsx("input", {
275
+ style: styles.searchInput,
276
+ placeholder: "Search saved requests\u2026",
277
+ value: search,
278
+ onChange: e => setSearch(e.target.value),
279
+ "aria-label": "Search saved requests",
280
+ autoCapitalize: "none",
281
+ autoCorrect: "off",
282
+ autoComplete: "off",
283
+ spellCheck: false
284
+ })]
285
+ }) : null, savedRecords.length === 0 ? /*#__PURE__*/_jsx(EmptyState, {}) :
286
+ /*#__PURE__*/
287
+ // DEVIATION: FlatList → plain scrolled div (see file header). The
288
+ // list still OWNS scrolling — hosts render this screen without a
289
+ // scroll wrapper, same as native.
290
+ _jsx("div", {
291
+ style: styles.list,
292
+ "aria-label": "Saved requests list",
293
+ children: /*#__PURE__*/_jsxs("div", {
294
+ style: styles.listContent,
295
+ children: [filtered.map(item => /*#__PURE__*/_jsx(NetworkEventItemCompact, {
296
+ event: item,
297
+ onPress: onEventPress,
298
+ onLongPress: handleLongPress,
299
+ saved: true,
300
+ pinned: pinnedLiveIds.has(item.id)
301
+ }, item.id)), renderListFooter()]
302
+ })
303
+ })]
304
+ });
305
+ }
306
+
307
+ // Values mirror the native StyleSheet block 1:1.
308
+ const styles = {
309
+ root: {
310
+ display: "flex",
311
+ flexDirection: "column",
312
+ flex: 1,
313
+ minHeight: 0
314
+ },
315
+ toolbar: {
316
+ display: "flex",
317
+ flexDirection: "row",
318
+ alignItems: "center",
319
+ gap: 6,
320
+ padding: "10px 20px 6px"
321
+ },
322
+ toolbarTitle: {
323
+ flex: 1,
324
+ color: macOSColors.semantic.debug,
325
+ fontSize: 10,
326
+ fontWeight: 700,
327
+ letterSpacing: 0.6,
328
+ fontFamily: "ui-monospace, Menlo, monospace",
329
+ textAlign: "left"
330
+ },
331
+ toolbarButton: {
332
+ width: 26,
333
+ height: 26,
334
+ boxSizing: "border-box",
335
+ borderRadius: 6,
336
+ alignItems: "center",
337
+ justifyContent: "center"
338
+ },
339
+ /** Native passes `disabled` to CopyButton; the DOM twin has no disabled
340
+ * prop, so the toolbar dims + inerts it the same way native renders it. */
341
+ toolbarButtonDisabled: {
342
+ opacity: 0.55,
343
+ pointerEvents: "none"
344
+ },
345
+ toolbarClear: {
346
+ padding: "2px 6px",
347
+ background: "none",
348
+ border: "none",
349
+ cursor: "pointer",
350
+ margin: 0
351
+ },
352
+ toolbarClearText: {
353
+ color: macOSColors.text.muted,
354
+ fontSize: 10
355
+ },
356
+ toolbarClearTextDisabled: {
357
+ color: macOSColors.text.disabled
358
+ },
359
+ searchRow: {
360
+ display: "flex",
361
+ flexDirection: "row",
362
+ alignItems: "center",
363
+ gap: 6,
364
+ margin: "0 12px 8px",
365
+ padding: "5px 10px",
366
+ backgroundColor: macOSColors.background.input,
367
+ borderRadius: 10,
368
+ border: `1px solid ${macOSColors.border.default}`
369
+ },
370
+ searchInput: {
371
+ flex: 1,
372
+ minWidth: 0,
373
+ color: macOSColors.text.primary,
374
+ fontSize: 13,
375
+ padding: "2px 0",
376
+ border: "none",
377
+ outline: "none",
378
+ background: "transparent",
379
+ fontFamily: "inherit"
380
+ },
381
+ list: {
382
+ flex: 1,
383
+ minHeight: 0,
384
+ overflowY: "auto"
385
+ },
386
+ listContent: {
387
+ paddingTop: 4
388
+ },
389
+ emptyState: {
390
+ display: "flex",
391
+ flexDirection: "column",
392
+ alignItems: "center",
393
+ padding: "40px 24px"
394
+ },
395
+ emptyTitle: {
396
+ color: macOSColors.text.primary,
397
+ fontSize: 14,
398
+ fontWeight: 600,
399
+ marginTop: 12,
400
+ marginBottom: 6
401
+ },
402
+ emptyText: {
403
+ color: macOSColors.text.muted,
404
+ fontSize: 12,
405
+ textAlign: "center",
406
+ lineHeight: "17px"
407
+ },
408
+ // NetworkUpgradeBanner.tsx values (buoyColors), verbatim.
409
+ upgradeBanner: {
410
+ display: "block",
411
+ width: "calc(100% - 24px)",
412
+ boxSizing: "border-box",
413
+ backgroundColor: buoy.card,
414
+ borderRadius: 10,
415
+ border: `1px solid ${buoy.primary}40`,
416
+ padding: 12,
417
+ margin: "12px 12px 34px",
418
+ textAlign: "left",
419
+ cursor: "pointer",
420
+ fontFamily: "inherit"
421
+ },
422
+ upgradeContent: {
423
+ display: "flex",
424
+ flexDirection: "row",
425
+ alignItems: "center",
426
+ justifyContent: "space-between",
427
+ marginBottom: 4
428
+ },
429
+ upgradeLeft: {
430
+ display: "inline-flex",
431
+ flexDirection: "row",
432
+ alignItems: "center",
433
+ gap: 8
434
+ },
435
+ upgradeTitle: {
436
+ color: buoy.text,
437
+ fontSize: 13,
438
+ fontWeight: 600
439
+ },
440
+ upgradeSubtitle: {
441
+ display: "block",
442
+ color: buoy.textMuted,
443
+ fontSize: 11
444
+ },
445
+ // license/FeatureGate.tsx `proBadge`/`proBadgeText`, verbatim.
446
+ proBadge: {
447
+ display: "inline-flex",
448
+ backgroundColor: `${buoy.primary}15`,
449
+ borderRadius: 4,
450
+ border: `1px solid ${buoy.primary}40`,
451
+ padding: "2px 6px",
452
+ fontSize: 10,
453
+ fontWeight: 700,
454
+ color: buoy.primary,
455
+ letterSpacing: 0.5
456
+ }
457
+ };