@buoy-gg/route-events 7.0.41 → 7.0.43

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 (102) hide show
  1. package/README.md +11 -64
  2. package/lib/commonjs/RouteObserver.js +1 -54
  3. package/lib/commonjs/RouteParser.js +1 -314
  4. package/lib/commonjs/RouteTracker.js +1 -112
  5. package/lib/commonjs/RouteTracker.web.js +1 -12
  6. package/lib/commonjs/browserRouteRegistry.js +1 -30
  7. package/lib/commonjs/browserRoutes.js +1 -96
  8. package/lib/commonjs/components/NavigationStack.js +2 -572
  9. package/lib/commonjs/components/ReactNavigationRoutes.js +1 -836
  10. package/lib/commonjs/components/ReactNavigationRoutes.web.js +1 -12
  11. package/lib/commonjs/components/RouteEventDetail.js +1 -97
  12. package/lib/commonjs/components/RouteEventExpandedContent.js +1 -204
  13. package/lib/commonjs/components/RouteEventItemCompact.js +1 -191
  14. package/lib/commonjs/components/RouteEventsModalWithTabs.js +1 -734
  15. package/lib/commonjs/components/RouteEventsTimeline.js +1 -107
  16. package/lib/commonjs/components/RouteFilterViewV2.js +1 -42
  17. package/lib/commonjs/components/RoutesSitemap.js +2 -1035
  18. package/lib/commonjs/expoRouterStore.js +1 -121
  19. package/lib/commonjs/expoRouterStore.web.js +1 -44
  20. package/lib/commonjs/hooks/useRouteEvents.js +1 -57
  21. package/lib/commonjs/index.js +1 -168
  22. package/lib/commonjs/preset.js +1 -69
  23. package/lib/commonjs/stores/navigationStackStore.js +1 -45
  24. package/lib/commonjs/stores/routeEventStore.js +1 -136
  25. package/lib/commonjs/sync/routeEventsSyncAdapter.js +1 -275
  26. package/lib/commonjs/useNavigationStack.js +1 -408
  27. package/lib/commonjs/useNavigationStack.web.js +1 -32
  28. package/lib/commonjs/useRouteObserver.js +1 -73
  29. package/lib/commonjs/useRouteObserverReactNavigation.js +1 -109
  30. package/lib/commonjs/useRouteSitemap.js +1 -255
  31. package/lib/commonjs/utils/routeTemplate.js +1 -79
  32. package/lib/commonjs/utils/safeReactNavigation.js +1 -194
  33. package/lib/commonjs/utils/safeReactNavigation.web.js +1 -36
  34. package/lib/commonjs/utils/testIDs.js +1 -63
  35. package/lib/module/RouteObserver.js +1 -49
  36. package/lib/module/RouteParser.js +1 -309
  37. package/lib/module/RouteTracker.js +1 -109
  38. package/lib/module/RouteTracker.web.js +1 -8
  39. package/lib/module/browserRouteRegistry.js +1 -24
  40. package/lib/module/browserRoutes.js +1 -92
  41. package/lib/module/components/NavigationStack.js +2 -568
  42. package/lib/module/components/ReactNavigationRoutes.js +1 -832
  43. package/lib/module/components/ReactNavigationRoutes.web.js +1 -3
  44. package/lib/module/components/RouteEventDetail.js +1 -93
  45. package/lib/module/components/RouteEventExpandedContent.js +1 -200
  46. package/lib/module/components/RouteEventItemCompact.js +1 -187
  47. package/lib/module/components/RouteEventsModalWithTabs.js +1 -731
  48. package/lib/module/components/RouteEventsTimeline.js +1 -103
  49. package/lib/module/components/RouteFilterViewV2.js +1 -38
  50. package/lib/module/components/RoutesSitemap.js +2 -1033
  51. package/lib/module/expoRouterStore.js +1 -114
  52. package/lib/module/expoRouterStore.web.js +1 -37
  53. package/lib/module/hooks/useRouteEvents.js +1 -54
  54. package/lib/module/index.js +1 -70
  55. package/lib/module/preset.js +1 -66
  56. package/lib/module/stores/navigationStackStore.js +1 -41
  57. package/lib/module/stores/routeEventStore.js +1 -128
  58. package/lib/module/sync/routeEventsSyncAdapter.js +1 -273
  59. package/lib/module/useNavigationStack.js +1 -404
  60. package/lib/module/useNavigationStack.web.js +1 -28
  61. package/lib/module/useRouteObserver.js +1 -70
  62. package/lib/module/useRouteObserverReactNavigation.js +1 -106
  63. package/lib/module/useRouteSitemap.js +1 -250
  64. package/lib/module/utils/routeTemplate.js +1 -73
  65. package/lib/module/utils/safeReactNavigation.js +1 -185
  66. package/lib/module/utils/safeReactNavigation.web.js +1 -27
  67. package/lib/module/utils/testIDs.js +1 -55
  68. package/lib/web/index.mjs +4 -5
  69. package/package.json +6 -11
  70. package/lib/typescript/RouteObserver.d.ts.map +0 -1
  71. package/lib/typescript/RouteParser.d.ts.map +0 -1
  72. package/lib/typescript/RouteTracker.d.ts.map +0 -1
  73. package/lib/typescript/RouteTracker.web.d.ts.map +0 -1
  74. package/lib/typescript/browserRouteRegistry.d.ts.map +0 -1
  75. package/lib/typescript/browserRoutes.d.ts.map +0 -1
  76. package/lib/typescript/components/NavigationStack.d.ts.map +0 -1
  77. package/lib/typescript/components/ReactNavigationRoutes.d.ts.map +0 -1
  78. package/lib/typescript/components/ReactNavigationRoutes.web.d.ts.map +0 -1
  79. package/lib/typescript/components/RouteEventDetail.d.ts.map +0 -1
  80. package/lib/typescript/components/RouteEventExpandedContent.d.ts.map +0 -1
  81. package/lib/typescript/components/RouteEventItemCompact.d.ts.map +0 -1
  82. package/lib/typescript/components/RouteEventsModalWithTabs.d.ts.map +0 -1
  83. package/lib/typescript/components/RouteEventsTimeline.d.ts.map +0 -1
  84. package/lib/typescript/components/RouteFilterViewV2.d.ts.map +0 -1
  85. package/lib/typescript/components/RoutesSitemap.d.ts.map +0 -1
  86. package/lib/typescript/expoRouterStore.d.ts.map +0 -1
  87. package/lib/typescript/expoRouterStore.web.d.ts.map +0 -1
  88. package/lib/typescript/hooks/useRouteEvents.d.ts.map +0 -1
  89. package/lib/typescript/index.d.ts.map +0 -1
  90. package/lib/typescript/preset.d.ts.map +0 -1
  91. package/lib/typescript/stores/navigationStackStore.d.ts.map +0 -1
  92. package/lib/typescript/stores/routeEventStore.d.ts.map +0 -1
  93. package/lib/typescript/sync/routeEventsSyncAdapter.d.ts.map +0 -1
  94. package/lib/typescript/useNavigationStack.d.ts.map +0 -1
  95. package/lib/typescript/useNavigationStack.web.d.ts.map +0 -1
  96. package/lib/typescript/useRouteObserver.d.ts.map +0 -1
  97. package/lib/typescript/useRouteObserverReactNavigation.d.ts.map +0 -1
  98. package/lib/typescript/useRouteSitemap.d.ts.map +0 -1
  99. package/lib/typescript/utils/routeTemplate.d.ts.map +0 -1
  100. package/lib/typescript/utils/safeReactNavigation.d.ts.map +0 -1
  101. package/lib/typescript/utils/safeReactNavigation.web.d.ts.map +0 -1
  102. package/lib/typescript/utils/testIDs.d.ts.map +0 -1
@@ -1,1036 +1,3 @@
1
- "use strict";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.RoutesSitemap=RoutesSitemap;var _react=require("react");var _sharedUi=require("@buoy-gg/shared-ui");var _reactNative=require("react-native");var _license=require("@buoy-gg/license");var _useRouteSitemap=require("../useRouteSitemap");var _testIDs=require("../utils/testIDs");var _jsxRuntime=require("react/jsx-runtime");const IS_DESKTOP=_reactNative.Platform.OS==="web";const ACTION_ICON_SIZE=IS_DESKTOP?22:16;const HOME_ROUTE={path:"/",name:"index",type:"index",params:[],nodeType:"route",contextKey:"/",isInternal:false,children:[],depth:0};function RoutesSitemap({style:e,injectedRoutes:s,injectedSource:l,injectedLastUpdatedAt:h,onNavigateRoute:d}){const[r,p]=(0,_react.useState)("");const[x,a]=(0,_react.useState)(false);const[m,C]=(0,_react.useState)(new Set(["Static Routes","Dynamic Routes"]));const[u,b]=(0,_react.useState)(false);const[S,T]=(0,_react.useState)(false);const f=(0,_license.useIsPro)();(0,_react.useEffect)(()=>{if(S&&f){T(false)}},[S,f]);const y=(0,_sharedUi.useSafeRouter)();const{groups:j,stats:n,isLoaded:W,isSupported:$,filteredRoutes:w,routes:L,refresh:F,lastUpdatedAt:D,source:I}=(0,_useRouteSitemap.useRouteSitemap)({searchQuery:r,sortBy:"path",injectedRoutes:s,injectedSource:l,injectedLastUpdatedAt:h});const H=(0,_react.useMemo)(()=>{return{summary:{total:n.total,static:n.static,dynamic:n.dynamic,layouts:n.layouts,groups:n.groups,timestamp:new Date().toISOString()},groups:j.map(t=>({title:t.title,description:t.description,count:t.routes.length,routes:t.routes.map(o=>({path:o.path,name:o.name,type:o.type,params:o.params,depth:o.depth,hasChildren:o.children.length>0,childrenCount:o.children.length}))})),allRoutes:L.map(t=>t.path)}},[j,n,L]);const E=(0,_react.useCallback)(t=>{C(o=>{const i=new Set(o);if(i.has(t)){i.delete(t)}else{i.add(t)}return i})},[]);const B=(0,_react.useCallback)((t,o=0,i={})=>{const v=t.params;if(o>=v.length){let c=t.path;Object.entries(i).forEach(([g,k])=>{if(t.type==="catch-all"){c=c.replace(`[...${g}]`,k)}else{c=c.replace(`[${g}]`,k)}});try{y.push(c)}catch(g){_reactNative.Alert.alert("Navigation Error",String(g))}return}const V=v[o];const N=t.type==="catch-all"?`[...${V}]`:`[${V}]`;_reactNative.Alert.prompt("Enter Parameter Value",`Enter value for ${N}:
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.RoutesSitemap = RoutesSitemap;
7
- var _react = require("react");
8
- var _sharedUi = require("@buoy-gg/shared-ui");
9
- var _reactNative = require("react-native");
10
- var _license = require("@buoy-gg/license");
11
- var _useRouteSitemap = require("../useRouteSitemap");
12
- var _testIDs = require("../utils/testIDs");
13
- var _jsxRuntime = require("react/jsx-runtime");
14
- /**
15
- * RoutesSitemap - Visual sitemap of all app routes
16
- *
17
- * Displays parsed route information from Expo Router with:
18
- * - Search/filter
19
- * - Organized groups
20
- * - Route details
21
- * - Copy to clipboard
22
- * - Navigation
23
- */
24
-
25
- // ============================================================================
26
- // Types
27
- // ============================================================================
28
-
29
- // On desktop (web) the toolbar has far more room, so scale the action buttons
30
- // up for easier clicking and a less cramped header.
31
- const IS_DESKTOP = _reactNative.Platform.OS === "web";
32
- const ACTION_ICON_SIZE = IS_DESKTOP ? 22 : 16;
33
-
34
- // Synthetic route representing the app's home/index ("/"). Used by the
35
- // "Home" toolbar shortcut so navigation works the same as tapping any route.
36
- const HOME_ROUTE = {
37
- path: "/",
38
- name: "index",
39
- type: "index",
40
- params: [],
41
- nodeType: "route",
42
- contextKey: "/",
43
- isInternal: false,
44
- children: [],
45
- depth: 0
46
- };
47
-
48
- // ============================================================================
49
- // Main Component
50
- // ============================================================================
51
-
52
- function RoutesSitemap({
53
- style,
54
- injectedRoutes,
55
- injectedSource,
56
- injectedLastUpdatedAt,
57
- onNavigateRoute
58
- }) {
59
- const [searchQuery, setSearchQuery] = (0, _react.useState)("");
60
- const [isSearching, setIsSearching] = (0, _react.useState)(false);
61
- const [expandedGroups, setExpandedGroups] = (0, _react.useState)(new Set(["Static Routes", "Dynamic Routes"]));
62
- const [isRefreshing, setIsRefreshing] = (0, _react.useState)(false);
63
- const [showUpgradeModal, setShowUpgradeModal] = (0, _react.useState)(false);
64
-
65
- // Check Pro status internally
66
- const isPro = (0, _license.useIsPro)();
67
-
68
- // Auto-close upgrade modal when user becomes Pro
69
- (0, _react.useEffect)(() => {
70
- if (showUpgradeModal && isPro) {
71
- setShowUpgradeModal(false);
72
- }
73
- }, [showUpgradeModal, isPro]);
74
- const router = (0, _sharedUi.useSafeRouter)();
75
- const {
76
- groups,
77
- stats,
78
- isLoaded,
79
- isSupported,
80
- filteredRoutes,
81
- routes,
82
- refresh,
83
- lastUpdatedAt,
84
- source
85
- } = (0, _useRouteSitemap.useRouteSitemap)({
86
- searchQuery,
87
- sortBy: "path",
88
- injectedRoutes,
89
- injectedSource,
90
- injectedLastUpdatedAt
91
- });
92
-
93
- // Prepare copy data - memoized so it only rebuilds when dependencies change
94
- const copyAllData = (0, _react.useMemo)(() => {
95
- return {
96
- summary: {
97
- total: stats.total,
98
- static: stats.static,
99
- dynamic: stats.dynamic,
100
- layouts: stats.layouts,
101
- groups: stats.groups,
102
- timestamp: new Date().toISOString()
103
- },
104
- groups: groups.map(group => ({
105
- title: group.title,
106
- description: group.description,
107
- count: group.routes.length,
108
- routes: group.routes.map(route => ({
109
- path: route.path,
110
- name: route.name,
111
- type: route.type,
112
- params: route.params,
113
- depth: route.depth,
114
- hasChildren: route.children.length > 0,
115
- childrenCount: route.children.length
116
- }))
117
- })),
118
- allRoutes: routes.map(route => route.path)
119
- };
120
- }, [groups, stats, routes]);
121
- const handleToggleGroup = (0, _react.useCallback)(groupTitle => {
122
- setExpandedGroups(prev => {
123
- const next = new Set(prev);
124
- if (next.has(groupTitle)) {
125
- next.delete(groupTitle);
126
- } else {
127
- next.add(groupTitle);
128
- }
129
- return next;
130
- });
131
- }, []);
132
- const promptForParams = (0, _react.useCallback)((route, paramIndex = 0, collectedParams = {}) => {
133
- const params = route.params;
134
- if (paramIndex >= params.length) {
135
- // All parameters collected, build path and navigate
136
- let finalPath = route.path;
137
-
138
- // Replace each parameter in the path
139
- Object.entries(collectedParams).forEach(([param, value]) => {
140
- if (route.type === "catch-all") {
141
- // For catch-all routes, replace [...param] with the value
142
- finalPath = finalPath.replace(`[...${param}]`, value);
143
- } else {
144
- // For regular dynamic routes, replace [param] with the value
145
- finalPath = finalPath.replace(`[${param}]`, value);
146
- }
147
- });
148
-
149
- // Navigate
150
- try {
151
- router.push(finalPath);
152
- } catch (error) {
153
- _reactNative.Alert.alert("Navigation Error", String(error));
154
- }
155
- return;
156
- }
157
- const currentParam = params[paramIndex];
158
- const paramDisplay = route.type === "catch-all" ? `[...${currentParam}]` : `[${currentParam}]`;
159
- _reactNative.Alert.prompt("Enter Parameter Value", `Enter value for ${paramDisplay}:\n\nRoute: ${route.path}`, [{
160
- text: "Cancel",
161
- style: "cancel"
162
- }, {
163
- text: paramIndex < params.length - 1 ? "Next" : "Navigate",
164
- onPress: value => {
165
- if (value && value.trim()) {
166
- const newParams = {
167
- ...collectedParams,
168
- [currentParam]: value.trim()
169
- };
170
- promptForParams(route, paramIndex + 1, newParams);
171
- } else {
172
- _reactNative.Alert.alert("Invalid Value", "Please enter a value for the parameter");
173
- }
174
- }
175
- }], "plain-text");
176
- }, [router]);
177
- const handleNavigate = (0, _react.useCallback)((route, options) => {
178
- // When a navigation delegate is supplied (dashboard → device), hand off
179
- // entirely: the delegate owns Pro gating and param resolution.
180
- if (onNavigateRoute) {
181
- onNavigateRoute(route);
182
- return;
183
- }
184
-
185
- // Gate behind Pro (the Home shortcut bypasses this — it's always free)
186
- if (!isPro && !options?.bypassPro) {
187
- setShowUpgradeModal(true);
188
- return;
189
- }
190
-
191
- // Don't navigate to layouts or groups
192
- if (route.type === "layout" || route.type === "group") {
193
- _reactNative.Alert.alert("Cannot Navigate", `${route.type === "layout" ? "Layouts" : "Route groups"} are not navigable routes`);
194
- return;
195
- }
196
-
197
- // For dynamic routes, prompt for parameters
198
- if (route.type === "dynamic" || route.type === "catch-all") {
199
- if (route.params.length === 0) {
200
- // No parameters despite being dynamic? Just navigate
201
- try {
202
- router.push(route.path);
203
- } catch (error) {
204
- _reactNative.Alert.alert("Navigation Error", String(error));
205
- }
206
- return;
207
- }
208
-
209
- // Start the parameter prompting flow
210
- promptForParams(route);
211
- return;
212
- }
213
-
214
- // Navigate to static route
215
- try {
216
- router.push(route.path);
217
- } catch (error) {
218
- _reactNative.Alert.alert("Navigation Error", String(error));
219
- }
220
- }, [router, promptForParams, isPro, onNavigateRoute]);
221
- const handleGoHome = (0, _react.useCallback)(() => {
222
- handleNavigate(HOME_ROUTE, {
223
- bypassPro: true
224
- });
225
- }, [handleNavigate]);
226
- const handleManualRefresh = (0, _react.useCallback)(() => {
227
- if (isRefreshing) return;
228
- setIsRefreshing(true);
229
- refresh();
230
- setTimeout(() => setIsRefreshing(false), 400);
231
- }, [isRefreshing, refresh]);
232
- const lastRefreshLabel = (0, _react.useMemo)(() => {
233
- if (!lastUpdatedAt) return "Awaiting route data";
234
- return `Updated ${(0, _sharedUi.formatRelativeTime)(lastUpdatedAt)}`;
235
- }, [lastUpdatedAt]);
236
- const sourceLabel = (0, _react.useMemo)(() => {
237
- if (!source) return "Source: unknown";
238
- return `Source: ${source}`;
239
- }, [source]);
240
-
241
- // When searching, show filtered routes, otherwise show groups
242
- const displayGroups = (0, _react.useMemo)(() => {
243
- if (searchQuery && filteredRoutes.length > 0) {
244
- // Create a single "Search Results" group
245
- return [{
246
- title: "Search Results",
247
- icon: "",
248
- routes: filteredRoutes
249
- }];
250
- }
251
- return groups;
252
- }, [searchQuery, filteredRoutes, groups]);
253
- if (!isLoaded) {
254
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
255
- style: [styles.container, style],
256
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
257
- style: styles.loadingContainer,
258
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
259
- style: styles.loadingText,
260
- testID: "buoy-routes-sitemap-loading",
261
- children: isSupported ? "Loading routes..." : "Route sitemap isn't available on the dashboard — the route tree lives on the device. Use the Events tab to see navigation here."
262
- })
263
- })
264
- });
265
- }
266
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
267
- style: [styles.container, style],
268
- children: [isSearching &&
269
- /*#__PURE__*/
270
- // The wrapper carries the handle as well as the field: a TextInput's
271
- // own testID never reaches the XCUITest element tree on this RN
272
- // version, so the a11y lane has nothing else to aim at.
273
- (0, _jsxRuntime.jsxs)(_reactNative.View, {
274
- style: styles.searchContainer,
275
- testID: "buoy-routes-sitemap-search-field",
276
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Search, {
277
- size: 16,
278
- color: _sharedUi.night.color.textTertiary
279
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
280
- style: styles.searchInput,
281
- placeholder: "Search routes...",
282
- placeholderTextColor: _sharedUi.night.color.placeholder,
283
- value: searchQuery,
284
- onChangeText: setSearchQuery,
285
- autoCapitalize: "none",
286
- autoCorrect: false,
287
- autoFocus: true,
288
- testID: "buoy-routes-sitemap-search",
289
- accessibilityLabel: "Search routes"
290
- }), searchQuery.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
291
- onPress: () => setSearchQuery(""),
292
- style: styles.clearButton,
293
- testID: "buoy-routes-sitemap-search-clear",
294
- accessibilityRole: "button",
295
- accessibilityLabel: "Clear route search",
296
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
297
- style: styles.clearButtonText,
298
- children: "\u2715"
299
- })
300
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
301
- style: styles.closeSearchButton,
302
- onPress: () => {
303
- setIsSearching(false);
304
- setSearchQuery("");
305
- },
306
- testID: "buoy-routes-sitemap-search-done",
307
- accessibilityRole: "button",
308
- accessibilityLabel: "Done searching routes",
309
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
310
- style: styles.closeSearchText,
311
- children: "Done"
312
- })
313
- })]
314
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
315
- testID: "buoy-routes-sitemap-scroll",
316
- style: styles.scrollView,
317
- contentContainerStyle: styles.scrollContent,
318
- children: [!isSearching && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
319
- style: styles.header,
320
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
321
- style: styles.actionsRow,
322
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
323
- style: [styles.actionWrapper, IS_DESKTOP && styles.actionWrapperDesktop],
324
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
325
- style: [styles.iconButton, IS_DESKTOP && styles.iconButtonDesktop],
326
- onPress: handleGoHome,
327
- accessibilityLabel: "Go to home route",
328
- accessibilityRole: "button",
329
- testID: "buoy-routes-sitemap-home",
330
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Home, {
331
- size: ACTION_ICON_SIZE,
332
- color: _sharedUi.night.color.textSecondary
333
- })
334
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
335
- style: [styles.actionLabel, IS_DESKTOP && styles.actionLabelDesktop],
336
- children: "Home"
337
- })]
338
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
339
- style: [styles.actionWrapper, IS_DESKTOP && styles.actionWrapperDesktop],
340
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.CopyButton, {
341
- value: copyAllData,
342
- testID: "buoy-routes-sitemap-copy",
343
- size: IS_DESKTOP ? ACTION_ICON_SIZE : 14,
344
- buttonStyle: IS_DESKTOP ? styles.actionButtonHeaderDesktop : styles.actionButtonHeader
345
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
346
- style: [styles.actionLabel, IS_DESKTOP && styles.actionLabelDesktop],
347
- children: "Copy"
348
- })]
349
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
350
- style: [styles.actionWrapper, IS_DESKTOP && styles.actionWrapperDesktop],
351
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
352
- style: [styles.iconButton, IS_DESKTOP && styles.iconButtonDesktop, isRefreshing && styles.refreshButtonDisabled],
353
- onPress: handleManualRefresh,
354
- disabled: isRefreshing,
355
- testID: "buoy-routes-sitemap-refresh",
356
- accessibilityRole: "button",
357
- accessibilityLabel: "Refresh route tree",
358
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.RefreshCw, {
359
- size: ACTION_ICON_SIZE,
360
- color: isRefreshing ? _sharedUi.night.color.textTertiary : _sharedUi.night.color.textSecondary
361
- })
362
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
363
- style: [styles.actionLabel, IS_DESKTOP && styles.actionLabelDesktop],
364
- children: "Refresh"
365
- })]
366
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
367
- style: [styles.actionWrapper, IS_DESKTOP && styles.actionWrapperDesktop],
368
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
369
- style: [styles.iconButton, IS_DESKTOP && styles.iconButtonDesktop],
370
- onPress: () => setIsSearching(true),
371
- testID: "buoy-routes-sitemap-search-open",
372
- accessibilityRole: "button",
373
- accessibilityLabel: "Search routes",
374
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Search, {
375
- size: ACTION_ICON_SIZE,
376
- color: _sharedUi.night.color.textSecondary
377
- })
378
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
379
- style: [styles.actionLabel, IS_DESKTOP && styles.actionLabelDesktop],
380
- children: "Search"
381
- })]
382
- })]
383
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
384
- style: styles.statsGrid,
385
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(StatItem, {
386
- value: stats.total,
387
- label: "Total",
388
- id: "total"
389
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(StatItem, {
390
- value: stats.static,
391
- label: "Static",
392
- id: "static"
393
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(StatItem, {
394
- value: stats.dynamic,
395
- label: "Dynamic",
396
- id: "dynamic"
397
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(StatItem, {
398
- value: stats.catchAll,
399
- label: "Catch-All",
400
- id: "catch-all"
401
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(StatItem, {
402
- value: stats.layouts,
403
- label: "Layouts",
404
- id: "layouts"
405
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(StatItem, {
406
- value: stats.groups,
407
- label: "Groups",
408
- id: "groups"
409
- })]
410
- })]
411
- }), displayGroups.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ToolEmptyState, {
412
- testID: "buoy-routes-sitemap-empty"
413
- // map = "route inspector; where am I in the navigator" — the one
414
- // OTTO_USES sentence written for this screen.
415
- ,
416
- otto: "map",
417
- title: "No routes found",
418
- message: "Nothing in the router matches. Clear the search to see the whole tree."
419
- }) : displayGroups.map(group => /*#__PURE__*/(0, _jsxRuntime.jsx)(RouteGroupView, {
420
- group: group,
421
- isExpanded: searchQuery.length > 0 || expandedGroups.has(group.title),
422
- onToggleExpand: () => handleToggleGroup(group.title),
423
- onNavigate: handleNavigate
424
- }, group.title)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
425
- style: styles.metaFooter,
426
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
427
- style: styles.metaText,
428
- testID: "buoy-routes-sitemap-updated",
429
- children: lastRefreshLabel
430
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
431
- style: styles.sourceBadge,
432
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
433
- style: styles.sourceText,
434
- testID: "buoy-routes-sitemap-source",
435
- children: sourceLabel
436
- })
437
- })]
438
- })]
439
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ProUpgradeModal, {
440
- visible: showUpgradeModal,
441
- onClose: () => setShowUpgradeModal(false),
442
- featureName: "Route Navigation"
443
- })]
444
- });
445
- }
446
-
447
- // ============================================================================
448
- // Sub-components
449
- // ============================================================================
450
-
451
- function StatItem({
452
- value,
453
- label,
454
- id
455
- }) {
456
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
457
- style: styles.statItem,
458
- testID: `buoy-routes-stat-${id}`
459
- // Fabric merges the number and its caption into this container, so a
460
- // stat that isn't spelled out announces as a bare digit.
461
- ,
462
- accessibilityLabel: `${label}, ${value}`,
463
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
464
- style: styles.statValue,
465
- testID: `buoy-routes-stat-${id}-value`,
466
- children: value
467
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
468
- style: styles.statLabel,
469
- children: label
470
- })]
471
- });
472
- }
473
- function RouteGroupView({
474
- group,
475
- isExpanded,
476
- onToggleExpand,
477
- onNavigate
478
- }) {
479
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
480
- style: styles.groupContainer,
481
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
482
- style: styles.groupHeader,
483
- onPress: onToggleExpand,
484
- activeOpacity: 0.7,
485
- testID: (0, _testIDs.sitemapGroupTestID)(group.title),
486
- accessibilityRole: "button",
487
- accessibilityLabel: `${group.title}, ${group.routes.length} routes`,
488
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
489
- style: styles.groupHeaderLeft,
490
- children: [isExpanded ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronDown, {
491
- size: 14,
492
- color: _sharedUi.night.color.textSecondary
493
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronRight, {
494
- size: 14,
495
- color: _sharedUi.night.color.textSecondary
496
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
497
- style: styles.groupTitle,
498
- children: group.title
499
- })]
500
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
501
- style: styles.groupBadge,
502
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
503
- style: styles.groupCount,
504
- testID: `${(0, _testIDs.sitemapGroupTestID)(group.title)}-count`,
505
- children: group.routes.length
506
- })
507
- })]
508
- }), group.description && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
509
- style: styles.groupDescription,
510
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
511
- style: styles.groupDescriptionText,
512
- children: group.description
513
- })
514
- }), isExpanded && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
515
- style: styles.routesList,
516
- children: group.routes.map((route, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(RouteItemView, {
517
- route: route,
518
- onNavigate: onNavigate
519
- }, `${route.path}-${index}`))
520
- })]
521
- });
522
- }
523
- function RouteItemView({
524
- route,
525
- depth = 0,
526
- onNavigate
527
- }) {
528
- const [isExpanded, setIsExpanded] = (0, _react.useState)(false);
529
- const hasChildren = route.children.length > 0;
530
- const typeColor = getRouteTypeColor(route.type);
531
- const canNavigate = route.type !== "layout" && route.type !== "group";
532
- const testID = (0, _testIDs.sitemapRouteTestID)(route.path);
533
-
534
- // Leaf routes (no children) have nothing to drill into — expanding would only
535
- // reveal the Copy/Go actions, so show those inline instead of behind a toggle.
536
- const isExpandable = hasChildren;
537
- const showDetails = isExpandable ? isExpanded : true;
538
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
539
- style: [styles.routeItem, {
540
- marginLeft: depth * 12
541
- }],
542
- testID: testID,
543
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
544
- style: styles.routeCard,
545
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
546
- style: styles.routeHeader,
547
- children: [isExpandable ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
548
- style: styles.routeHeaderLeft,
549
- onPress: () => setIsExpanded(!isExpanded),
550
- activeOpacity: 0.7,
551
- testID: `${testID}-toggle`,
552
- accessibilityRole: "button",
553
- accessibilityLabel: `${route.path}, ${route.type}, ${route.children.length} nested`,
554
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
555
- style: styles.expandIndicator,
556
- children: isExpanded ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronDown, {
557
- size: 14,
558
- color: _sharedUi.night.color.textSecondary
559
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ChevronRight, {
560
- size: 14,
561
- color: _sharedUi.night.color.textSecondary
562
- })
563
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
564
- style: styles.routePath,
565
- numberOfLines: 3,
566
- testID: `${testID}-path`,
567
- children: route.path
568
- })]
569
- }) :
570
- /*#__PURE__*/
571
- // Non-toggling header for leaf routes (keeps the chevron column as a
572
- // spacer so paths stay aligned with expandable siblings).
573
- (0, _jsxRuntime.jsxs)(_reactNative.View, {
574
- style: styles.routeHeaderLeft
575
- // `accessible` as well as the label: a plain View is not an
576
- // element, so without it the label is never announced and the
577
- // path is read as a bare text node with no type beside it.
578
- ,
579
- accessible: true,
580
- accessibilityLabel: `${route.path}, ${route.type}`,
581
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
582
- style: styles.expandIndicator
583
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
584
- style: styles.routePath,
585
- numberOfLines: 3,
586
- testID: `${testID}-path`,
587
- children: route.path
588
- })]
589
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
590
- style: styles.routeHeaderActions,
591
- children: [hasChildren && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
592
- style: styles.childCountBadge,
593
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
594
- style: styles.childCountText,
595
- testID: `${testID}-children-count`,
596
- children: route.children.length
597
- })
598
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
599
- style: [styles.typeTag, {
600
- backgroundColor: `${typeColor}15`,
601
- borderColor: `${typeColor}40`
602
- }],
603
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
604
- style: [styles.typeText, {
605
- color: typeColor
606
- }],
607
- testID: `${testID}-type`,
608
- children: route.type.toUpperCase()
609
- })
610
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.InlineCopyButton, {
611
- value: route.path,
612
- buttonStyle: styles.iconAction,
613
- testID: `${testID}-copy`
614
- }), canNavigate && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
615
- style: styles.goButton,
616
- onPress: () => onNavigate(route),
617
- activeOpacity: 0.7,
618
- testID: `${testID}-go`,
619
- accessibilityRole: "button",
620
- accessibilityLabel: `Go to ${route.path}`,
621
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
622
- style: styles.goButtonText,
623
- children: "Go"
624
- })
625
- })]
626
- })]
627
- }), showDetails && hasChildren && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
628
- style: styles.childrenContainer,
629
- children: route.children.map((child, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(RouteItemView, {
630
- route: child,
631
- depth: depth + 1,
632
- onNavigate: onNavigate
633
- }, `${child.path}-${index}`))
634
- })]
635
- })
636
- });
637
- }
638
-
639
- // ============================================================================
640
- // Helpers
641
- // ============================================================================
642
-
643
- function getRouteTypeColor(type) {
644
- switch (type) {
645
- case "static":
646
- return "#3B82F6";
647
- // Blue
648
- case "dynamic":
649
- return "#F59E0B";
650
- // Orange
651
- case "catch-all":
652
- return "#EC4899";
653
- // Pink
654
- case "index":
655
- return "#10B981";
656
- // Green
657
- case "layout":
658
- return "#8B5CF6";
659
- // Purple
660
- case "group":
661
- return "#6366F1";
662
- // Indigo
663
- case "not-found":
664
- return "#EF4444";
665
- // Red
666
- default:
667
- return "#6B7280";
668
- // Gray
669
- }
670
- }
671
-
672
- // ============================================================================
673
- // Styles
674
- // ============================================================================
675
-
676
- const styles = _reactNative.StyleSheet.create({
677
- container: {
678
- flex: 1,
679
- // Transparent so JsModal's ToolBackground shows through (the modal paints opaque base beneath it).
680
- backgroundColor: "transparent"
681
- },
682
- loadingContainer: {
683
- flex: 1,
684
- justifyContent: "center",
685
- alignItems: "center"
686
- },
687
- loadingText: {
688
- color: _sharedUi.night.color.textSecondary,
689
- fontSize: 14,
690
- fontFamily: _sharedUi.monoFont,
691
- textAlign: "center",
692
- lineHeight: 20,
693
- paddingHorizontal: 32,
694
- maxWidth: 420
695
- },
696
- header: {
697
- flexDirection: "column",
698
- padding: 8,
699
- borderBottomWidth: 1,
700
- borderBottomColor: _sharedUi.night.color.border,
701
- gap: 12,
702
- marginBottom: 8
703
- },
704
- actionsRow: {
705
- flexDirection: "row",
706
- alignItems: "center",
707
- justifyContent: "space-between",
708
- gap: 12,
709
- paddingBottom: 4
710
- },
711
- statsGrid: {
712
- flexDirection: "row",
713
- flexWrap: "wrap",
714
- gap: 8
715
- },
716
- statItem: {
717
- flexGrow: 1,
718
- flexShrink: 1,
719
- flexBasis: "30%",
720
- minWidth: 90,
721
- backgroundColor: _sharedUi.night.color.surface,
722
- borderRadius: 8,
723
- paddingVertical: 10,
724
- paddingHorizontal: 12,
725
- alignItems: "center"
726
- },
727
- statValue: {
728
- fontSize: 18,
729
- fontWeight: "800",
730
- color: _sharedUi.night.color.text,
731
- fontFamily: _sharedUi.monoFont
732
- },
733
- statLabel: {
734
- fontSize: 10,
735
- color: _sharedUi.night.color.textTertiary,
736
- marginTop: 4,
737
- fontFamily: _sharedUi.monoFont,
738
- textTransform: "uppercase",
739
- letterSpacing: 0.5
740
- },
741
- actionWrapper: {
742
- flex: 1,
743
- alignItems: "center",
744
- justifyContent: "center",
745
- gap: 4,
746
- minWidth: 48
747
- },
748
- actionWrapperDesktop: {
749
- gap: 8,
750
- minWidth: 72
751
- },
752
- actionButtonHeader: {
753
- padding: 6,
754
- borderRadius: 4,
755
- backgroundColor: _sharedUi.night.color.surfaceElevated
756
- },
757
- actionButtonHeaderDesktop: {
758
- padding: 12,
759
- borderRadius: 8,
760
- backgroundColor: _sharedUi.night.color.surfaceElevated
761
- },
762
- iconButton: {
763
- padding: 6,
764
- borderRadius: 4,
765
- alignItems: "center",
766
- justifyContent: "center"
767
- },
768
- iconButtonDesktop: {
769
- padding: 12,
770
- borderRadius: 8,
771
- backgroundColor: _sharedUi.night.color.surfaceElevated
772
- },
773
- actionLabel: {
774
- fontSize: 8,
775
- color: _sharedUi.night.color.textTertiary,
776
- fontFamily: _sharedUi.monoFont,
777
- textTransform: "uppercase",
778
- letterSpacing: 0.5
779
- },
780
- actionLabelDesktop: {
781
- fontSize: 12
782
- },
783
- refreshButtonDisabled: {
784
- opacity: 0.5
785
- },
786
- metaFooter: {
787
- flexDirection: "row",
788
- alignItems: "center",
789
- justifyContent: "space-between",
790
- gap: 8,
791
- paddingHorizontal: 16,
792
- paddingVertical: 16,
793
- marginTop: 16,
794
- borderTopWidth: 1,
795
- borderTopColor: _sharedUi.night.color.border
796
- },
797
- metaText: {
798
- fontSize: 12,
799
- color: _sharedUi.night.color.textSecondary,
800
- fontFamily: _sharedUi.monoFont
801
- },
802
- sourceBadge: {
803
- paddingHorizontal: 8,
804
- paddingVertical: 2,
805
- borderRadius: 999,
806
- borderWidth: 1,
807
- borderColor: _sharedUi.night.color.border,
808
- backgroundColor: _sharedUi.night.color.surface
809
- },
810
- sourceText: {
811
- fontSize: 11,
812
- color: _sharedUi.night.color.textSecondary,
813
- textTransform: "capitalize",
814
- fontFamily: _sharedUi.monoFont
815
- },
816
- searchContainer: {
817
- flexDirection: "row",
818
- alignItems: "center",
819
- padding: 8,
820
- gap: 8,
821
- borderBottomWidth: 1,
822
- borderBottomColor: _sharedUi.night.color.border
823
- },
824
- searchInput: {
825
- flex: 1,
826
- color: _sharedUi.night.color.text,
827
- fontSize: 14,
828
- fontFamily: _sharedUi.monoFont
829
- },
830
- clearButton: {
831
- padding: 4
832
- },
833
- clearButtonText: {
834
- color: _sharedUi.night.color.textTertiary,
835
- fontSize: 18
836
- },
837
- closeSearchButton: {
838
- paddingHorizontal: 8,
839
- paddingVertical: 4
840
- },
841
- closeSearchText: {
842
- color: _sharedUi.night.color.accent,
843
- fontSize: 14,
844
- fontWeight: "600",
845
- fontFamily: _sharedUi.monoFont
846
- },
847
- scrollView: {
848
- flex: 1
849
- },
850
- scrollContent: {
851
- paddingBottom: 8
852
- },
853
- emptyState: {
854
- padding: 32,
855
- alignItems: "center"
856
- },
857
- emptyText: {
858
- color: _sharedUi.night.color.textSecondary,
859
- fontSize: 14,
860
- fontFamily: _sharedUi.monoFont
861
- },
862
- groupContainer: {
863
- marginVertical: 4
864
- },
865
- groupHeader: {
866
- flexDirection: "row",
867
- alignItems: "center",
868
- justifyContent: "space-between",
869
- padding: 12,
870
- paddingHorizontal: 16,
871
- backgroundColor: _sharedUi.night.color.surface,
872
- borderLeftWidth: 3,
873
- borderLeftColor: _sharedUi.night.color.fillTertiary
874
- },
875
- groupHeaderLeft: {
876
- flexDirection: "row",
877
- alignItems: "center",
878
- gap: 8,
879
- flex: 1
880
- },
881
- groupTitle: {
882
- fontSize: 12,
883
- fontWeight: "700",
884
- color: _sharedUi.night.color.text,
885
- fontFamily: _sharedUi.monoFont,
886
- textTransform: "uppercase",
887
- letterSpacing: 0.8
888
- },
889
- groupBadge: {
890
- backgroundColor: "#3B82F615",
891
- borderColor: "#3B82F640",
892
- borderWidth: 1,
893
- borderRadius: 12,
894
- paddingHorizontal: 8,
895
- paddingVertical: 3,
896
- minWidth: 24,
897
- alignItems: "center",
898
- justifyContent: "center"
899
- },
900
- groupCount: {
901
- fontSize: 11,
902
- fontWeight: "600",
903
- color: "#3B82F6",
904
- fontFamily: _sharedUi.monoFont
905
- },
906
- routesList: {
907
- // Transparent so the night sheet's star field shows through.
908
- backgroundColor: "transparent"
909
- },
910
- groupDescription: {
911
- paddingHorizontal: 16,
912
- paddingVertical: 8,
913
- marginBottom: 8,
914
- backgroundColor: _sharedUi.night.color.surfaceElevated,
915
- borderLeftWidth: 3,
916
- borderLeftColor: _sharedUi.night.color.fillTertiary
917
- },
918
- groupDescriptionText: {
919
- fontSize: 11,
920
- color: _sharedUi.night.color.textSecondary,
921
- fontFamily: _sharedUi.monoFont,
922
- lineHeight: 16
923
- },
924
- routeItem: {
925
- marginBottom: 6
926
- },
927
- routeCard: {
928
- backgroundColor: _sharedUi.night.color.surface,
929
- borderRadius: 6,
930
- borderWidth: 1,
931
- borderColor: _sharedUi.night.color.border,
932
- overflow: "hidden",
933
- shadowColor: "#000",
934
- shadowOffset: {
935
- width: 0,
936
- height: 1
937
- },
938
- shadowOpacity: 0.05,
939
- shadowRadius: 2,
940
- elevation: 1
941
- },
942
- routeHeader: {
943
- flexDirection: "row",
944
- alignItems: "center",
945
- justifyContent: "space-between",
946
- paddingVertical: 7,
947
- paddingHorizontal: 10,
948
- gap: 8
949
- },
950
- expandIndicator: {
951
- width: 18,
952
- alignItems: "center"
953
- },
954
- routeHeaderLeft: {
955
- flexDirection: "row",
956
- alignItems: "center",
957
- gap: 8,
958
- flex: 1
959
- },
960
- routePath: {
961
- fontSize: 13,
962
- fontWeight: "600",
963
- color: _sharedUi.night.color.text,
964
- fontFamily: _sharedUi.monoFont,
965
- flex: 1
966
- },
967
- routeHeaderActions: {
968
- flexDirection: "row",
969
- alignItems: "center",
970
- gap: 6
971
- },
972
- childCountBadge: {
973
- backgroundColor: "#6B728015",
974
- borderColor: "#6B728040",
975
- borderWidth: 1,
976
- borderRadius: 12,
977
- paddingHorizontal: 7,
978
- paddingVertical: 2,
979
- minWidth: 22,
980
- alignItems: "center",
981
- justifyContent: "center"
982
- },
983
- childCountText: {
984
- fontSize: 11,
985
- fontWeight: "600",
986
- color: _sharedUi.night.color.textSecondary,
987
- fontFamily: _sharedUi.monoFont
988
- },
989
- typeTag: {
990
- borderRadius: 4,
991
- paddingHorizontal: 6,
992
- paddingVertical: 2,
993
- borderWidth: 1
994
- },
995
- typeText: {
996
- fontSize: 10,
997
- fontWeight: "600",
998
- fontFamily: _sharedUi.monoFont
999
- },
1000
- // Compact icon-sized Copy button in the header action cluster.
1001
- iconAction: {
1002
- width: 28,
1003
- height: 24,
1004
- borderRadius: 4,
1005
- backgroundColor: _sharedUi.night.color.surfaceElevated,
1006
- borderWidth: 1,
1007
- borderColor: _sharedUi.night.color.border,
1008
- alignItems: "center",
1009
- justifyContent: "center"
1010
- },
1011
- // Small "Go" pill in the header action cluster.
1012
- goButton: {
1013
- height: 24,
1014
- paddingHorizontal: 10,
1015
- borderRadius: 4,
1016
- alignItems: "center",
1017
- justifyContent: "center",
1018
- backgroundColor: _sharedUi.night.color.accentSoft,
1019
- borderWidth: 1,
1020
- borderColor: _sharedUi.night.color.accentBorder
1021
- },
1022
- goButtonText: {
1023
- fontSize: 12,
1024
- color: _sharedUi.night.color.accent,
1025
- fontFamily: _sharedUi.monoFont,
1026
- fontWeight: "600"
1027
- },
1028
- childrenContainer: {
1029
- borderLeftWidth: 2,
1030
- borderLeftColor: _sharedUi.night.color.border,
1031
- marginLeft: 16,
1032
- marginRight: 8,
1033
- marginTop: 2,
1034
- marginBottom: 8
1035
- }
1036
- });
3
+ Route: ${t.path}`,[{text:"Cancel",style:"cancel"},{text:o<v.length-1?"Next":"Navigate",onPress:c=>{if(c&&c.trim()){const g={...i,[V]:c.trim()};B(t,o+1,g)}else{_reactNative.Alert.alert("Invalid Value","Please enter a value for the parameter")}}}],"plain-text")},[y]);const R=(0,_react.useCallback)((t,o)=>{if(d){d(t);return}if(!f&&!o?.bypassPro){T(true);return}if(t.type==="layout"||t.type==="group"){_reactNative.Alert.alert("Cannot Navigate",`${t.type==="layout"?"Layouts":"Route groups"} are not navigable routes`);return}if(t.type==="dynamic"||t.type==="catch-all"){if(t.params.length===0){try{y.push(t.path)}catch(i){_reactNative.Alert.alert("Navigation Error",String(i))}return}B(t);return}try{y.push(t.path)}catch(i){_reactNative.Alert.alert("Navigation Error",String(i))}},[y,B,f,d]);const P=(0,_react.useCallback)(()=>{R(HOME_ROUTE,{bypassPro:true})},[R]);const O=(0,_react.useCallback)(()=>{if(u)return;b(true);F();setTimeout(()=>b(false),400)},[u,F]);const A=(0,_react.useMemo)(()=>{if(!D)return"Awaiting route data";return`Updated ${(0,_sharedUi.formatRelativeTime)(D)}`},[D]);const G=(0,_react.useMemo)(()=>{if(!I)return"Source: unknown";return`Source: ${I}`},[I]);const z=(0,_react.useMemo)(()=>{if(r&&w.length>0){return[{title:"Search Results",icon:"",routes:w}]}return j},[r,w,j]);if(!W){return(0,_jsxRuntime.jsx)(_reactNative.View,{style:[styles.container,e],children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.loadingContainer,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.loadingText,testID:"buoy-routes-sitemap-loading",children:$?"Loading routes...":"Route sitemap isn't available on the dashboard \u2014 the route tree lives on the device. Use the Events tab to see navigation here."})})})}return(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[styles.container,e],children:[x&&(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.searchContainer,testID:"buoy-routes-sitemap-search-field",children:[(0,_jsxRuntime.jsx)(_sharedUi.Search,{size:16,color:_sharedUi.night.color.textTertiary}),(0,_jsxRuntime.jsx)(_reactNative.TextInput,{style:styles.searchInput,placeholder:"Search routes...",placeholderTextColor:_sharedUi.night.color.placeholder,value:r,onChangeText:p,autoCapitalize:"none",autoCorrect:false,autoFocus:true,testID:"buoy-routes-sitemap-search",accessibilityLabel:"Search routes"}),r.length>0&&(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{onPress:()=>p(""),style:styles.clearButton,testID:"buoy-routes-sitemap-search-clear",accessibilityRole:"button",accessibilityLabel:"Clear route search",children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.clearButtonText,children:"\u2715"})}),(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{style:styles.closeSearchButton,onPress:()=>{a(false);p("")},testID:"buoy-routes-sitemap-search-done",accessibilityRole:"button",accessibilityLabel:"Done searching routes",children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.closeSearchText,children:"Done"})})]}),(0,_jsxRuntime.jsxs)(_reactNative.ScrollView,{testID:"buoy-routes-sitemap-scroll",style:styles.scrollView,contentContainerStyle:styles.scrollContent,children:[!x&&(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.header,children:[(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.actionsRow,children:[(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[styles.actionWrapper,IS_DESKTOP&&styles.actionWrapperDesktop],children:[(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{style:[styles.iconButton,IS_DESKTOP&&styles.iconButtonDesktop],onPress:P,accessibilityLabel:"Go to home route",accessibilityRole:"button",testID:"buoy-routes-sitemap-home",children:(0,_jsxRuntime.jsx)(_sharedUi.Home,{size:ACTION_ICON_SIZE,color:_sharedUi.night.color.textSecondary})}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:[styles.actionLabel,IS_DESKTOP&&styles.actionLabelDesktop],children:"Home"})]}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[styles.actionWrapper,IS_DESKTOP&&styles.actionWrapperDesktop],children:[(0,_jsxRuntime.jsx)(_sharedUi.CopyButton,{value:H,testID:"buoy-routes-sitemap-copy",size:IS_DESKTOP?ACTION_ICON_SIZE:14,buttonStyle:IS_DESKTOP?styles.actionButtonHeaderDesktop:styles.actionButtonHeader}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:[styles.actionLabel,IS_DESKTOP&&styles.actionLabelDesktop],children:"Copy"})]}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[styles.actionWrapper,IS_DESKTOP&&styles.actionWrapperDesktop],children:[(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{style:[styles.iconButton,IS_DESKTOP&&styles.iconButtonDesktop,u&&styles.refreshButtonDisabled],onPress:O,disabled:u,testID:"buoy-routes-sitemap-refresh",accessibilityRole:"button",accessibilityLabel:"Refresh route tree",children:(0,_jsxRuntime.jsx)(_sharedUi.RefreshCw,{size:ACTION_ICON_SIZE,color:u?_sharedUi.night.color.textTertiary:_sharedUi.night.color.textSecondary})}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:[styles.actionLabel,IS_DESKTOP&&styles.actionLabelDesktop],children:"Refresh"})]}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[styles.actionWrapper,IS_DESKTOP&&styles.actionWrapperDesktop],children:[(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{style:[styles.iconButton,IS_DESKTOP&&styles.iconButtonDesktop],onPress:()=>a(true),testID:"buoy-routes-sitemap-search-open",accessibilityRole:"button",accessibilityLabel:"Search routes",children:(0,_jsxRuntime.jsx)(_sharedUi.Search,{size:ACTION_ICON_SIZE,color:_sharedUi.night.color.textSecondary})}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:[styles.actionLabel,IS_DESKTOP&&styles.actionLabelDesktop],children:"Search"})]})]}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.statsGrid,children:[(0,_jsxRuntime.jsx)(StatItem,{value:n.total,label:"Total",id:"total"}),(0,_jsxRuntime.jsx)(StatItem,{value:n.static,label:"Static",id:"static"}),(0,_jsxRuntime.jsx)(StatItem,{value:n.dynamic,label:"Dynamic",id:"dynamic"}),(0,_jsxRuntime.jsx)(StatItem,{value:n.catchAll,label:"Catch-All",id:"catch-all"}),(0,_jsxRuntime.jsx)(StatItem,{value:n.layouts,label:"Layouts",id:"layouts"}),(0,_jsxRuntime.jsx)(StatItem,{value:n.groups,label:"Groups",id:"groups"})]})]}),z.length===0?(0,_jsxRuntime.jsx)(_sharedUi.ToolEmptyState,{testID:"buoy-routes-sitemap-empty",otto:"map",title:"No routes found",message:"Nothing in the router matches. Clear the search to see the whole tree."}):z.map(t=>(0,_jsxRuntime.jsx)(RouteGroupView,{group:t,isExpanded:r.length>0||m.has(t.title),onToggleExpand:()=>E(t.title),onNavigate:R},t.title)),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.metaFooter,children:[(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.metaText,testID:"buoy-routes-sitemap-updated",children:A}),(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.sourceBadge,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.sourceText,testID:"buoy-routes-sitemap-source",children:G})})]})]}),(0,_jsxRuntime.jsx)(_sharedUi.ProUpgradeModal,{visible:S,onClose:()=>T(false),featureName:"Route Navigation"})]})}function StatItem({value:e,label:s,id:l}){return(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.statItem,testID:`buoy-routes-stat-${l}`,accessibilityLabel:`${s}, ${e}`,children:[(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.statValue,testID:`buoy-routes-stat-${l}-value`,children:e}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.statLabel,children:s})]})}function RouteGroupView({group:e,isExpanded:s,onToggleExpand:l,onNavigate:h}){return(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.groupContainer,children:[(0,_jsxRuntime.jsxs)(_reactNative.TouchableOpacity,{style:styles.groupHeader,onPress:l,activeOpacity:.7,testID:(0,_testIDs.sitemapGroupTestID)(e.title),accessibilityRole:"button",accessibilityLabel:`${e.title}, ${e.routes.length} routes`,children:[(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.groupHeaderLeft,children:[s?(0,_jsxRuntime.jsx)(_sharedUi.ChevronDown,{size:14,color:_sharedUi.night.color.textSecondary}):(0,_jsxRuntime.jsx)(_sharedUi.ChevronRight,{size:14,color:_sharedUi.night.color.textSecondary}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.groupTitle,children:e.title})]}),(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.groupBadge,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.groupCount,testID:`${(0,_testIDs.sitemapGroupTestID)(e.title)}-count`,children:e.routes.length})})]}),e.description&&(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.groupDescription,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.groupDescriptionText,children:e.description})}),s&&(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.routesList,children:e.routes.map((d,r)=>(0,_jsxRuntime.jsx)(RouteItemView,{route:d,onNavigate:h},`${d.path}-${r}`))})]})}function RouteItemView({route:e,depth:s=0,onNavigate:l}){const[h,d]=(0,_react.useState)(false);const r=e.children.length>0;const p=getRouteTypeColor(e.type);const x=e.type!=="layout"&&e.type!=="group";const a=(0,_testIDs.sitemapRouteTestID)(e.path);const m=r;const C=m?h:true;return(0,_jsxRuntime.jsx)(_reactNative.View,{style:[styles.routeItem,{marginLeft:s*12}],testID:a,children:(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.routeCard,children:[(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.routeHeader,children:[m?(0,_jsxRuntime.jsxs)(_reactNative.TouchableOpacity,{style:styles.routeHeaderLeft,onPress:()=>d(!h),activeOpacity:.7,testID:`${a}-toggle`,accessibilityRole:"button",accessibilityLabel:`${e.path}, ${e.type}, ${e.children.length} nested`,children:[(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.expandIndicator,children:h?(0,_jsxRuntime.jsx)(_sharedUi.ChevronDown,{size:14,color:_sharedUi.night.color.textSecondary}):(0,_jsxRuntime.jsx)(_sharedUi.ChevronRight,{size:14,color:_sharedUi.night.color.textSecondary})}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.routePath,numberOfLines:3,testID:`${a}-path`,children:e.path})]}):(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.routeHeaderLeft,accessible:true,accessibilityLabel:`${e.path}, ${e.type}`,children:[(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.expandIndicator}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.routePath,numberOfLines:3,testID:`${a}-path`,children:e.path})]}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.routeHeaderActions,children:[r&&(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.childCountBadge,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.childCountText,testID:`${a}-children-count`,children:e.children.length})}),(0,_jsxRuntime.jsx)(_reactNative.View,{style:[styles.typeTag,{backgroundColor:`${p}15`,borderColor:`${p}40`}],children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:[styles.typeText,{color:p}],testID:`${a}-type`,children:e.type.toUpperCase()})}),(0,_jsxRuntime.jsx)(_sharedUi.InlineCopyButton,{value:e.path,buttonStyle:styles.iconAction,testID:`${a}-copy`}),x&&(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{style:styles.goButton,onPress:()=>l(e),activeOpacity:.7,testID:`${a}-go`,accessibilityRole:"button",accessibilityLabel:`Go to ${e.path}`,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.goButtonText,children:"Go"})})]})]}),C&&r&&(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.childrenContainer,children:e.children.map((u,b)=>(0,_jsxRuntime.jsx)(RouteItemView,{route:u,depth:s+1,onNavigate:l},`${u.path}-${b}`))})]})})}function getRouteTypeColor(e){switch(e){case"static":return"#3B82F6";case"dynamic":return"#F59E0B";case"catch-all":return"#EC4899";case"index":return"#10B981";case"layout":return"#8B5CF6";case"group":return"#6366F1";case"not-found":return"#EF4444";default:return"#6B7280"}}const styles=_reactNative.StyleSheet.create({container:{flex:1,backgroundColor:"transparent"},loadingContainer:{flex:1,justifyContent:"center",alignItems:"center"},loadingText:{color:_sharedUi.night.color.textSecondary,fontSize:14,fontFamily:_sharedUi.monoFont,textAlign:"center",lineHeight:20,paddingHorizontal:32,maxWidth:420},header:{flexDirection:"column",padding:8,borderBottomWidth:1,borderBottomColor:_sharedUi.night.color.border,gap:12,marginBottom:8},actionsRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingBottom:4},statsGrid:{flexDirection:"row",flexWrap:"wrap",gap:8},statItem:{flexGrow:1,flexShrink:1,flexBasis:"30%",minWidth:90,backgroundColor:_sharedUi.night.color.surface,borderRadius:8,paddingVertical:10,paddingHorizontal:12,alignItems:"center"},statValue:{fontSize:18,fontWeight:"800",color:_sharedUi.night.color.text,fontFamily:_sharedUi.monoFont},statLabel:{fontSize:10,color:_sharedUi.night.color.textTertiary,marginTop:4,fontFamily:_sharedUi.monoFont,textTransform:"uppercase",letterSpacing:.5},actionWrapper:{flex:1,alignItems:"center",justifyContent:"center",gap:4,minWidth:48},actionWrapperDesktop:{gap:8,minWidth:72},actionButtonHeader:{padding:6,borderRadius:4,backgroundColor:_sharedUi.night.color.surfaceElevated},actionButtonHeaderDesktop:{padding:12,borderRadius:8,backgroundColor:_sharedUi.night.color.surfaceElevated},iconButton:{padding:6,borderRadius:4,alignItems:"center",justifyContent:"center"},iconButtonDesktop:{padding:12,borderRadius:8,backgroundColor:_sharedUi.night.color.surfaceElevated},actionLabel:{fontSize:8,color:_sharedUi.night.color.textTertiary,fontFamily:_sharedUi.monoFont,textTransform:"uppercase",letterSpacing:.5},actionLabelDesktop:{fontSize:12},refreshButtonDisabled:{opacity:.5},metaFooter:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,paddingHorizontal:16,paddingVertical:16,marginTop:16,borderTopWidth:1,borderTopColor:_sharedUi.night.color.border},metaText:{fontSize:12,color:_sharedUi.night.color.textSecondary,fontFamily:_sharedUi.monoFont},sourceBadge:{paddingHorizontal:8,paddingVertical:2,borderRadius:999,borderWidth:1,borderColor:_sharedUi.night.color.border,backgroundColor:_sharedUi.night.color.surface},sourceText:{fontSize:11,color:_sharedUi.night.color.textSecondary,textTransform:"capitalize",fontFamily:_sharedUi.monoFont},searchContainer:{flexDirection:"row",alignItems:"center",padding:8,gap:8,borderBottomWidth:1,borderBottomColor:_sharedUi.night.color.border},searchInput:{flex:1,color:_sharedUi.night.color.text,fontSize:14,fontFamily:_sharedUi.monoFont},clearButton:{padding:4},clearButtonText:{color:_sharedUi.night.color.textTertiary,fontSize:18},closeSearchButton:{paddingHorizontal:8,paddingVertical:4},closeSearchText:{color:_sharedUi.night.color.accent,fontSize:14,fontWeight:"600",fontFamily:_sharedUi.monoFont},scrollView:{flex:1},scrollContent:{paddingBottom:8},emptyState:{padding:32,alignItems:"center"},emptyText:{color:_sharedUi.night.color.textSecondary,fontSize:14,fontFamily:_sharedUi.monoFont},groupContainer:{marginVertical:4},groupHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,paddingHorizontal:16,backgroundColor:_sharedUi.night.color.surface,borderLeftWidth:3,borderLeftColor:_sharedUi.night.color.fillTertiary},groupHeaderLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1},groupTitle:{fontSize:12,fontWeight:"700",color:_sharedUi.night.color.text,fontFamily:_sharedUi.monoFont,textTransform:"uppercase",letterSpacing:.8},groupBadge:{backgroundColor:"#3B82F615",borderColor:"#3B82F640",borderWidth:1,borderRadius:12,paddingHorizontal:8,paddingVertical:3,minWidth:24,alignItems:"center",justifyContent:"center"},groupCount:{fontSize:11,fontWeight:"600",color:"#3B82F6",fontFamily:_sharedUi.monoFont},routesList:{backgroundColor:"transparent"},groupDescription:{paddingHorizontal:16,paddingVertical:8,marginBottom:8,backgroundColor:_sharedUi.night.color.surfaceElevated,borderLeftWidth:3,borderLeftColor:_sharedUi.night.color.fillTertiary},groupDescriptionText:{fontSize:11,color:_sharedUi.night.color.textSecondary,fontFamily:_sharedUi.monoFont,lineHeight:16},routeItem:{marginBottom:6},routeCard:{backgroundColor:_sharedUi.night.color.surface,borderRadius:6,borderWidth:1,borderColor:_sharedUi.night.color.border,overflow:"hidden",shadowColor:"#000",shadowOffset:{width:0,height:1},shadowOpacity:.05,shadowRadius:2,elevation:1},routeHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:7,paddingHorizontal:10,gap:8},expandIndicator:{width:18,alignItems:"center"},routeHeaderLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1},routePath:{fontSize:13,fontWeight:"600",color:_sharedUi.night.color.text,fontFamily:_sharedUi.monoFont,flex:1},routeHeaderActions:{flexDirection:"row",alignItems:"center",gap:6},childCountBadge:{backgroundColor:"#6B728015",borderColor:"#6B728040",borderWidth:1,borderRadius:12,paddingHorizontal:7,paddingVertical:2,minWidth:22,alignItems:"center",justifyContent:"center"},childCountText:{fontSize:11,fontWeight:"600",color:_sharedUi.night.color.textSecondary,fontFamily:_sharedUi.monoFont},typeTag:{borderRadius:4,paddingHorizontal:6,paddingVertical:2,borderWidth:1},typeText:{fontSize:10,fontWeight:"600",fontFamily:_sharedUi.monoFont},iconAction:{width:28,height:24,borderRadius:4,backgroundColor:_sharedUi.night.color.surfaceElevated,borderWidth:1,borderColor:_sharedUi.night.color.border,alignItems:"center",justifyContent:"center"},goButton:{height:24,paddingHorizontal:10,borderRadius:4,alignItems:"center",justifyContent:"center",backgroundColor:_sharedUi.night.color.accentSoft,borderWidth:1,borderColor:_sharedUi.night.color.accentBorder},goButtonText:{fontSize:12,color:_sharedUi.night.color.accent,fontFamily:_sharedUi.monoFont,fontWeight:"600"},childrenContainer:{borderLeftWidth:2,borderLeftColor:_sharedUi.night.color.border,marginLeft:16,marginRight:8,marginTop:2,marginBottom:8}});