gloomberb 0.20.3 → 0.20.5

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 (348) hide show
  1. package/README.md +2 -0
  2. package/bin/gloom +9 -0
  3. package/bin/without-bun.cjs +98 -0
  4. package/package.json +3 -1
  5. package/src/account/auth-dialog.tsx +17 -0
  6. package/src/api-client/data.ts +144 -35
  7. package/src/api-client/fx-interventions.ts +64 -0
  8. package/src/api-client/index.ts +1 -0
  9. package/src/api-client/release-summaries.ts +21 -0
  10. package/src/api-client/types/econ.ts +12 -0
  11. package/src/api-client/yield-curves.ts +1 -1
  12. package/src/app/global-shortcuts.ts +4 -1
  13. package/src/app/keybindings/actions.ts +8 -2
  14. package/src/app/keybindings/config.ts +2 -1
  15. package/src/app/keybindings/index.ts +1 -0
  16. package/src/app/keybindings/labels.ts +6 -1
  17. package/src/app/keybindings/resolve.ts +23 -4
  18. package/src/app/keybindings/terminal-keys.ts +35 -0
  19. package/src/app/pane-runtime/index.tsx +2 -2
  20. package/src/app/pane-runtime/ticker-open-runtime.ts +274 -67
  21. package/src/architecture/ui-literals-allowlist.json +1 -1
  22. package/src/capabilities/chart-series.ts +27 -1
  23. package/src/cli/commands/keybindings.ts +5 -5
  24. package/src/cli/commands/market.ts +154 -21
  25. package/src/cli/commands/news-search.ts +60 -10
  26. package/src/cli/commands/overview.ts +16 -1
  27. package/src/cli/commands/plugins.ts +27 -5
  28. package/src/cli/commands/remote.ts +16 -17
  29. package/src/cli/commands/system.ts +20 -4
  30. package/src/cli/commands/ticker.ts +60 -19
  31. package/src/cli/fx-forward.ts +25 -7
  32. package/src/cli/glossary.ts +19 -5
  33. package/src/cli/history-rows.ts +5 -3
  34. package/src/cli/index.ts +8 -8
  35. package/src/cli/known-gaps.ts +27 -1
  36. package/src/cli/listing-arg.ts +11 -1
  37. package/src/cli/name-entries.ts +5 -1
  38. package/src/cli/not-a-ticker.ts +4 -0
  39. package/src/cli/pane-functions/function-help.ts +5 -5
  40. package/src/cli/report-tables.ts +18 -6
  41. package/src/cli/result.ts +15 -7
  42. package/src/cli/types.ts +2 -0
  43. package/src/components/chart/composite/axis-overlays.tsx +22 -0
  44. package/src/components/chart/composite/composite-chart.tsx +54 -13
  45. package/src/components/chart/composite/event-captions.ts +109 -0
  46. package/src/components/chart/composite/event-guides.ts +74 -0
  47. package/src/components/chart/composite/rasterizer.ts +2 -0
  48. package/src/components/chart/composite/text-renderer.ts +2 -0
  49. package/src/components/chart/composite/types.ts +31 -0
  50. package/src/components/command-bar/layout-items/focused-pane.ts +5 -5
  51. package/src/components/command-bar/pane-settings.ts +2 -2
  52. package/src/components/command-bar/routes/root/provider-search.ts +5 -4
  53. package/src/components/command-bar/routes/root/results.ts +6 -2
  54. package/src/components/command-bar/routes/ticker-search/results.ts +51 -0
  55. package/src/components/command-bar/routes/ticker-search/route.ts +3 -2
  56. package/src/components/input-search-bar.tsx +9 -2
  57. package/src/components/layout/detached-pane-shell.tsx +1 -1
  58. package/src/components/layout/floating-pane.tsx +5 -1
  59. package/src/components/layout/pane/footer/index.tsx +21 -14
  60. package/src/components/layout/pane/footer/model.ts +6 -0
  61. package/src/components/layout/pane/header.tsx +2 -0
  62. package/src/components/layout/shell/action-menu-overlay.tsx +10 -5
  63. package/src/components/layout/shell/active-drag.ts +149 -105
  64. package/src/components/layout/shell/drag/drop-zones.ts +162 -0
  65. package/src/components/layout/shell/drag/index.ts +47 -218
  66. package/src/components/layout/shell/drag/live.ts +10 -3
  67. package/src/components/layout/shell/drag/overlays.tsx +182 -5
  68. package/src/components/layout/shell/drag/runtime.ts +29 -6
  69. package/src/components/layout/shell/drag/shared-edges.ts +156 -0
  70. package/src/components/layout/shell/index.tsx +11 -6
  71. package/src/components/layout/shell/menu.ts +11 -2
  72. package/src/components/layout/shell/native/pointer-runtime.ts +25 -0
  73. package/src/components/layout/shell/native/window-state.ts +2 -2
  74. package/src/components/layout/shell/pane/capture.ts +4 -1
  75. package/src/components/layout/shell/pane/layers.tsx +71 -7
  76. package/src/components/layout/shell/terminal-pointer-runtime.ts +18 -9
  77. package/src/components/layout/shell/window-mode/index.ts +8 -10
  78. package/src/components/layout/status-bar.tsx +6 -1
  79. package/src/components/layout/window-edit/mode.ts +39 -7
  80. package/src/components/layout/window-edit/presentation.ts +1 -1
  81. package/src/components/onboarding/first-run-workspace.ts +44 -2
  82. package/src/components/onboarding/onboarding-frame.tsx +11 -2
  83. package/src/components/onboarding/onboarding-keyboard.ts +20 -0
  84. package/src/components/onboarding/onboarding-wizard.tsx +16 -11
  85. package/src/components/onboarding/portfolio-step/positions-panel.tsx +62 -1
  86. package/src/components/onboarding/use-onboarding-progress.ts +12 -4
  87. package/src/components/pane-settings-dialog/desktop.tsx +2 -2
  88. package/src/components/pane-settings-dialog/tui.tsx +2 -2
  89. package/src/components/pane-settings-dialog/value.ts +6 -0
  90. package/src/components/pane-settings-dialog.tsx +3 -3
  91. package/src/components/reader/detail-reader.tsx +4 -0
  92. package/src/components/ui/button.tsx +2 -0
  93. package/src/components/ui/choice-dialog.tsx +1 -0
  94. package/src/components/ui/data-table/index.tsx +4 -3
  95. package/src/components/ui/index.ts +1 -1
  96. package/src/components/ui/list-view.tsx +7 -12
  97. package/src/components/ui/loading.tsx +10 -3
  98. package/src/components/ui/menu.tsx +6 -2
  99. package/src/components/ui/page-stack-view.tsx +3 -0
  100. package/src/components/ui/pane-link-chip.tsx +269 -54
  101. package/src/components/ui/query-bar.tsx +2 -1
  102. package/src/components/ui/quote.ts +14 -1
  103. package/src/components/ui/tabs.tsx +97 -19
  104. package/src/core/state/app/layout-reducer.ts +7 -0
  105. package/src/core/state/app/layout.ts +44 -7
  106. package/src/core/state/app/state.ts +1 -1
  107. package/src/core/state/app/types.ts +22 -2
  108. package/src/data/config/layout.ts +5 -2
  109. package/src/docs/snapshot.json +54 -13
  110. package/src/i18n/es.ts +9 -8
  111. package/src/i18n/ja.ts +9 -8
  112. package/src/i18n/ko.ts +9 -8
  113. package/src/i18n/zh-cn.ts +9 -8
  114. package/src/i18n/zh-tw.ts +9 -8
  115. package/src/layout/pane-manager/floating-actions.ts +17 -0
  116. package/src/layout/pane-manager/floating-stack.ts +187 -0
  117. package/src/layout/pane-manager/floating.ts +4 -2
  118. package/src/layout/pane-manager/gridlock.ts +5 -1
  119. package/src/layout/pane-manager/index.ts +11 -0
  120. package/src/layout/pane-manager/layout-state.ts +10 -3
  121. package/src/market-data/depositary-pair.ts +5 -3
  122. package/src/market-data/futures-board.ts +46 -1
  123. package/src/market-data/futures-contract.ts +12 -3
  124. package/src/market-data/fx-interventions.ts +270 -0
  125. package/src/market-data/market/dated-previous-close.ts +94 -15
  126. package/src/market-data/market/status.ts +17 -1
  127. package/src/news/news-model.ts +44 -2
  128. package/src/plugins/builtin/alerts/cli.ts +4 -4
  129. package/src/plugins/builtin/alerts/format.ts +1 -2
  130. package/src/plugins/builtin/alerts/headless.ts +1 -2
  131. package/src/plugins/builtin/alerts/move-checks.ts +12 -6
  132. package/src/plugins/builtin/alerts/move.ts +30 -9
  133. package/src/plugins/builtin/alerts/pane.tsx +0 -2
  134. package/src/plugins/builtin/alerts/storage.ts +4 -2
  135. package/src/plugins/builtin/alerts/types.ts +12 -0
  136. package/src/plugins/builtin/analytics/risk-client.ts +10 -4
  137. package/src/plugins/builtin/analytics/risk-episodes.ts +5 -4
  138. package/src/plugins/builtin/analytics/risk-headless.ts +4 -2
  139. package/src/plugins/builtin/analytics/risk-sectors.ts +91 -0
  140. package/src/plugins/builtin/awards/index.tsx +1 -1
  141. package/src/plugins/builtin/buildout/index.tsx +1 -0
  142. package/src/plugins/builtin/catalysts/index.tsx +2 -2
  143. package/src/plugins/builtin/cds/headless.ts +4 -0
  144. package/src/plugins/builtin/changelog/index.tsx +292 -101
  145. package/src/plugins/builtin/changelog/versions.ts +293 -0
  146. package/src/plugins/builtin/chart-composer/headless.ts +2 -1
  147. package/src/plugins/builtin/chart-composer/index.tsx +1 -0
  148. package/src/plugins/builtin/chart-composer/intervention-events.ts +105 -0
  149. package/src/plugins/builtin/chart-composer/pane.tsx +21 -7
  150. package/src/plugins/builtin/chat/content/composer.tsx +5 -4
  151. package/src/plugins/builtin/chat/content/index.tsx +12 -2
  152. package/src/plugins/builtin/chat/content/layout-metrics.ts +3 -3
  153. package/src/plugins/builtin/chat/content/open-targets.ts +3 -3
  154. package/src/plugins/builtin/chat/layout.ts +5 -2
  155. package/src/plugins/builtin/chat/message/pane-chip.tsx +61 -40
  156. package/src/plugins/builtin/chat/message/render-state.ts +2 -5
  157. package/src/plugins/builtin/chat/message/terminal.tsx +13 -15
  158. package/src/plugins/builtin/chat/pane-links/previews.ts +51 -5
  159. package/src/plugins/builtin/chat/pane-links/share-card.ts +36 -0
  160. package/src/plugins/builtin/cloud/askg/attached-pane.tsx +10 -5
  161. package/src/plugins/builtin/cloud/askg/controller.ts +141 -5
  162. package/src/plugins/builtin/cloud/askg/executor.ts +113 -4
  163. package/src/plugins/builtin/cloud/askg/manifest.ts +28 -13
  164. package/src/plugins/builtin/cloud/askg/model.ts +14 -4
  165. package/src/plugins/builtin/cloud/askg/pane.tsx +70 -46
  166. package/src/plugins/builtin/cloud/askg/tool-display.ts +1 -0
  167. package/src/plugins/builtin/cloud/askg/turn-parts.tsx +70 -0
  168. package/src/plugins/builtin/cloud/terminal-relay/engine.ts +50 -130
  169. package/src/plugins/builtin/cloud/terminal-relay/policy.ts +327 -7
  170. package/src/plugins/builtin/cloud/terminal-relay/prompts.tsx +2 -1
  171. package/src/plugins/builtin/cloud/terminal-relay/redact.ts +52 -9
  172. package/src/plugins/builtin/commodities-energy/index.tsx +1 -3
  173. package/src/plugins/builtin/commodities-energy/view-state.ts +3 -0
  174. package/src/plugins/builtin/commodity-balances/index.tsx +1 -0
  175. package/src/plugins/builtin/company-attention/index.tsx +1 -1
  176. package/src/plugins/builtin/company-kpis/headless.ts +3 -1
  177. package/src/plugins/builtin/company-kpis/index.tsx +2 -2
  178. package/src/plugins/builtin/cot/headless.ts +14 -2
  179. package/src/plugins/builtin/cot/index.tsx +1 -1
  180. package/src/plugins/builtin/cpi/index.tsx +1 -1
  181. package/src/plugins/builtin/crypto-board/index.tsx +1 -0
  182. package/src/plugins/builtin/dividend-yield/index.tsx +1 -0
  183. package/src/plugins/builtin/doe/index.tsx +1 -1
  184. package/src/plugins/builtin/earnings/index.tsx +2 -2
  185. package/src/plugins/builtin/earnings-calls/headless.ts +5 -1
  186. package/src/plugins/builtin/earnings-calls/index.tsx +1 -0
  187. package/src/plugins/builtin/econ/calendar-model.ts +74 -1
  188. package/src/plugins/builtin/econ/fred-catalog.ts +3 -1
  189. package/src/plugins/builtin/econ/index.tsx +1 -0
  190. package/src/plugins/builtin/econ-statistics/index.tsx +1 -0
  191. package/src/plugins/builtin/econ-statistics/pane.tsx +6 -0
  192. package/src/plugins/builtin/estimate-revisions/index.tsx +1 -0
  193. package/src/plugins/builtin/executives/index.tsx +1 -0
  194. package/src/plugins/builtin/filing-events/index.tsx +1 -0
  195. package/src/plugins/builtin/fixed-income/index.tsx +1 -0
  196. package/src/plugins/builtin/futures/index.tsx +25 -4
  197. package/src/plugins/builtin/futures/model.ts +28 -32
  198. package/src/plugins/builtin/futures/series.ts +4 -3
  199. package/src/plugins/builtin/futures/table.tsx +16 -9
  200. package/src/plugins/builtin/futures/use-board-terms.ts +3 -3
  201. package/src/plugins/builtin/futures-curve/headless.ts +3 -3
  202. package/src/plugins/builtin/futures-curve/index.tsx +1 -1
  203. package/src/plugins/builtin/futures-curve/model.ts +18 -0
  204. package/src/plugins/builtin/gpu/index.tsx +1 -1
  205. package/src/plugins/builtin/help/functions-table.tsx +1 -1
  206. package/src/plugins/builtin/help/index.tsx +14 -4
  207. package/src/plugins/builtin/help/keybindings-editor.tsx +19 -5
  208. package/src/plugins/builtin/holders/index.tsx +1 -0
  209. package/src/plugins/builtin/holders/report-header.ts +2 -2
  210. package/src/plugins/builtin/insider/index.tsx +1 -0
  211. package/src/plugins/builtin/iv-history/index.tsx +1 -1
  212. package/src/plugins/builtin/jobs/index.tsx +1 -0
  213. package/src/plugins/builtin/layout-manager/index.tsx +8 -8
  214. package/src/plugins/builtin/macro-day/headless.ts +27 -8
  215. package/src/plugins/builtin/macro-day/index.tsx +1 -1
  216. package/src/plugins/builtin/macro-day/model.ts +19 -3
  217. package/src/plugins/builtin/macro-day/pane.tsx +14 -9
  218. package/src/plugins/builtin/macro-day/releases.ts +25 -7
  219. package/src/plugins/builtin/market-valuation/index.tsx +1 -0
  220. package/src/plugins/builtin/market-valuation/pane.tsx +8 -0
  221. package/src/plugins/builtin/members/index.tsx +1 -1
  222. package/src/plugins/builtin/mna/index.tsx +1 -0
  223. package/src/plugins/builtin/news/headless.ts +2 -2
  224. package/src/plugins/builtin/news/index.tsx +4 -3
  225. package/src/plugins/builtin/news/wire/index.tsx +5 -1
  226. package/src/plugins/builtin/news/wire/news/detail-view.tsx +4 -0
  227. package/src/plugins/builtin/news/wire/news/list-search.ts +5 -2
  228. package/src/plugins/builtin/options/index.tsx +1 -0
  229. package/src/plugins/builtin/options-positioning/index.tsx +1 -0
  230. package/src/plugins/builtin/pe-band/index.tsx +1 -1
  231. package/src/plugins/builtin/perps/markets-section.tsx +5 -2
  232. package/src/plugins/builtin/plugin-marketplace/pane.tsx +11 -11
  233. package/src/plugins/builtin/portfolio-list/cli/portfolio-command.ts +25 -0
  234. package/src/plugins/builtin/portfolio-list/headless.ts +15 -6
  235. package/src/plugins/builtin/portfolio-list/summary/index.tsx +3 -1
  236. package/src/plugins/builtin/power/index.tsx +1 -1
  237. package/src/plugins/builtin/realized-vol/index.tsx +1 -1
  238. package/src/plugins/builtin/research/event-model.ts +9 -1
  239. package/src/plugins/builtin/research/event-sources.ts +22 -0
  240. package/src/plugins/builtin/research/headless.ts +11 -5
  241. package/src/plugins/builtin/research/index.tsx +4 -0
  242. package/src/plugins/builtin/research-search/index.tsx +1 -0
  243. package/src/plugins/builtin/research-search/pane.tsx +8 -0
  244. package/src/plugins/builtin/revenue-breakdown/index.tsx +1 -0
  245. package/src/plugins/builtin/reverse-dcf/index.tsx +1 -1
  246. package/src/plugins/builtin/risk-factors/index.tsx +1 -0
  247. package/src/plugins/builtin/scanner/headless.ts +52 -13
  248. package/src/plugins/builtin/seasonality/index.tsx +1 -1
  249. package/src/plugins/builtin/sec/index.tsx +1 -0
  250. package/src/plugins/builtin/series-inventory.ts +1 -1
  251. package/src/plugins/builtin/shared/cloud-upgrade.ts +27 -3
  252. package/src/plugins/builtin/shared/scanner-capture.ts +11 -3
  253. package/src/plugins/builtin/shared/series-list-detail.tsx +5 -0
  254. package/src/plugins/builtin/short-interest/index.tsx +1 -0
  255. package/src/plugins/builtin/social-mentions/index.tsx +1 -1
  256. package/src/plugins/builtin/supply-chain/index.tsx +1 -0
  257. package/src/plugins/builtin/thirteenf/data.ts +43 -10
  258. package/src/plugins/builtin/thirteenf/headless.ts +55 -11
  259. package/src/plugins/builtin/thirteenf/model.ts +25 -9
  260. package/src/plugins/builtin/thirteenf/report-notes.ts +27 -6
  261. package/src/plugins/builtin/thirteenf/types.ts +2 -0
  262. package/src/plugins/builtin/ticker-detail/adr-pair/model.ts +1 -1
  263. package/src/plugins/builtin/ticker-detail/financials/model.ts +12 -0
  264. package/src/plugins/builtin/ticker-detail/financials/ratio-table.tsx +3 -3
  265. package/src/plugins/builtin/ticker-detail/financials/tab.tsx +5 -5
  266. package/src/plugins/builtin/ticker-detail/headless.ts +18 -13
  267. package/src/plugins/builtin/ticker-detail/index.tsx +4 -0
  268. package/src/plugins/builtin/ticker-detail/overview/components.tsx +54 -5
  269. package/src/plugins/builtin/ticker-detail/overview/model.ts +6 -4
  270. package/src/plugins/builtin/ticker-detail/overview-tab.tsx +34 -17
  271. package/src/plugins/builtin/ticker-detail/pane.tsx +7 -2
  272. package/src/plugins/builtin/time-sales/client.ts +9 -11
  273. package/src/plugins/builtin/time-sales/index.tsx +1 -1
  274. package/src/plugins/builtin/treasury-auctions/after.ts +267 -0
  275. package/src/plugins/builtin/treasury-auctions/cache.ts +18 -3
  276. package/src/plugins/builtin/treasury-auctions/client.ts +33 -2
  277. package/src/plugins/builtin/treasury-auctions/headless.ts +109 -19
  278. package/src/plugins/builtin/treasury-auctions/index.tsx +14 -4
  279. package/src/plugins/builtin/treasury-auctions/model.ts +256 -28
  280. package/src/plugins/builtin/treasury-auctions/pane.tsx +139 -28
  281. package/src/plugins/builtin/treasury-auctions/treasury-direct.ts +5 -2
  282. package/src/plugins/builtin/treasury-auctions/types.ts +7 -1
  283. package/src/plugins/builtin/vol-surface/index.tsx +1 -1
  284. package/src/plugins/builtin/world-venue-map/index.ts +1 -0
  285. package/src/plugins/builtin/yield-curve/curves.ts +10 -4
  286. package/src/plugins/builtin/yield-curve/headless.ts +6 -2
  287. package/src/plugins/builtin/yield-curve/index.tsx +3 -3
  288. package/src/plugins/builtin/yield-curve/series.ts +10 -0
  289. package/src/plugins/builtin/yield-curve/world.ts +3 -1
  290. package/src/plugins/installer.ts +45 -0
  291. package/src/portfolio/column-values.ts +2 -1
  292. package/src/public/__snapshots__/public-api.test.ts.snap +4 -0
  293. package/src/public/remote.ts +7 -1
  294. package/src/remote/client.ts +191 -11
  295. package/src/remote/controller-utils.ts +13 -1
  296. package/src/remote/controller.ts +88 -26
  297. package/src/remote/endpoint.ts +24 -0
  298. package/src/remote/form.ts +59 -4
  299. package/src/remote/resources.ts +56 -19
  300. package/src/remote/schema.ts +22 -9
  301. package/src/remote/secrets.ts +12 -0
  302. package/src/remote/semantic-helpers.ts +29 -1
  303. package/src/remote/semantic-tree.tsx +44 -15
  304. package/src/remote/server.ts +2 -1
  305. package/src/remote/surface.tsx +192 -0
  306. package/src/remote/types.ts +5 -0
  307. package/src/renderers/cloudflare/worker.ts +16 -1
  308. package/src/renderers/dom/styles.css +40 -6
  309. package/src/renderers/opentui/host.tsx +6 -0
  310. package/src/renderers/share/layout-view.tsx +1 -1
  311. package/src/series/standalone.ts +2 -2
  312. package/src/shares/api.ts +21 -4
  313. package/src/shares/item.ts +73 -0
  314. package/src/shares/pane-item.ts +205 -0
  315. package/src/shares/pane.ts +4 -0
  316. package/src/shares/payload.ts +9 -5
  317. package/src/sources/gloomberb-cloud/news.ts +37 -12
  318. package/src/state/opening-ticker-panes.ts +47 -0
  319. package/src/test-support/cli-context.ts +2 -0
  320. package/src/test-support/preload.ts +4 -1
  321. package/src/tickers/instrument-kind.ts +23 -3
  322. package/src/tickers/renamed-listings.ts +105 -0
  323. package/src/tickers/search/index.ts +103 -16
  324. package/src/time-series/resolve.ts +2 -2
  325. package/src/types/config.ts +5 -0
  326. package/src/types/context-menu.ts +2 -0
  327. package/src/types/financials.ts +1 -0
  328. package/src/types/plugin-commands.ts +140 -0
  329. package/src/types/plugin-context.ts +125 -0
  330. package/src/types/plugin-contributions.ts +55 -0
  331. package/src/types/plugin-definition.ts +234 -0
  332. package/src/types/plugin-notifications.ts +38 -0
  333. package/src/types/plugin-pane-settings.ts +116 -0
  334. package/src/types/plugin-pane-templates.ts +160 -0
  335. package/src/types/plugin-panes.ts +243 -0
  336. package/src/types/plugin-reports.ts +35 -0
  337. package/src/types/plugin-shared.ts +14 -0
  338. package/src/types/plugin-state.ts +71 -0
  339. package/src/types/plugin.ts +14 -1169
  340. package/src/ui/index.tsx +14 -3
  341. package/src/updater/github-releases.ts +23 -0
  342. package/src/utils/central-banks.ts +86 -1
  343. package/src/utils/cli-output.ts +22 -9
  344. package/src/utils/datetime-format.ts +12 -3
  345. package/src/utils/depositary-receipt.ts +28 -3
  346. package/src/utils/fundamentals.ts +14 -0
  347. package/src/utils/max-drawdown.ts +97 -16
  348. package/src/utils/untrusted-text.ts +29 -0
@@ -147,6 +147,8 @@ export interface CompositePanelScene {
147
147
  lastPrice?: CompositeLastPriceMarker;
148
148
  /** Present on a panel holding a volume-profile study. */
149
149
  volumeProfile?: CompositeVolumeProfile;
150
+ /** Guides at dated events, shared by every panel and drawn under the marks. */
151
+ eventGuides?: readonly CompositeEventGuide[];
150
152
  /** Plot spans (x ratios) of intraday bars outside the regular session, shared by every panel. */
151
153
  extendedHours?: readonly CompositeExtendedHoursSpan[];
152
154
  /** The previous session's close on a one-day chart, drawn as a dotted reference line. */
@@ -227,6 +229,31 @@ export interface CompositeChartXMarker {
227
229
  lineChar?: string;
228
230
  }
229
231
 
232
+ /**
233
+ * Something that happened at a time (an intervention): a guide through every
234
+ * panel at that time, drawn under the marks, and its caption in the row below
235
+ * the axis. The row is kept while the chart has events, so the plot does not
236
+ * move as one pans in or out of view; one outside the view is not drawn.
237
+ */
238
+ export interface CompositeChartEvent {
239
+ id: string;
240
+ /** The instant, in ms: the time of the bar it belongs on, so the guide is on that bar. */
241
+ time: number;
242
+ /** A period's last bar: the event is shaded from `time` to it, with a guide at each end. */
243
+ endTime?: number;
244
+ /** Its caption, longest first: the row shows the longest that fits beside the guide. */
245
+ captions?: readonly string[];
246
+ /** Its day is not known yet (a total for a period): the guides are dotted. */
247
+ dotted?: boolean;
248
+ }
249
+
250
+ /** Where a `CompositeChartEvent` falls in the plot; a period partly in view has an edge outside 0-1. */
251
+ export interface CompositeEventGuide {
252
+ xRatio: number;
253
+ endXRatio?: number;
254
+ dotted: boolean;
255
+ }
256
+
230
257
  /** Replaces the date axis for charts whose x is not time: a fraction, a tenor, a return. */
231
258
  export interface CompositeChartXAxis {
232
259
  /** Evenly spread labels drawn instead of date ticks. */
@@ -305,6 +332,10 @@ export interface CompositeChartProps {
305
332
  */
306
333
  formatAxisValue?: (value: number, domain: CompositeAxisDomain) => string;
307
334
  xAxis?: CompositeChartXAxis;
335
+ /** Dated events on a time axis; a chart with `xAxis` has no time to put them at. */
336
+ events?: readonly CompositeChartEvent[];
337
+ /** One caption, longest first, for events too close to caption apart; without it the older caption is left out. */
338
+ mergeEventCaptions?: (events: readonly CompositeChartEvent[]) => readonly string[];
308
339
  /** Tagged onto the plot's semantic node so remote clients can find this chart. */
309
340
  remoteKind?: string;
310
341
  /** Permit panning into an older unloaded window so the owner can backfill it. */
@@ -71,8 +71,8 @@ export function buildFocusedPaneLayoutItems({
71
71
  return [
72
72
  {
73
73
  id: "layout-toggle-mode",
74
- label: focusedFloating ? "Dock Pane" : "Float Pane",
75
- detail: focusedFloating ? "Return the focused window to the layout" : "Detach the focused pane into a floating window",
74
+ label: focusedFloating ? "Return to Layout" : "Float Pane",
75
+ detail: focusedFloating ? "Return the focused window to the layout" : "Take the focused pane out of the layout into a floating window",
76
76
  category: "Focused Pane",
77
77
  kind: "action",
78
78
  action: () => {
@@ -115,7 +115,7 @@ export function buildFocusedPaneLayoutItems({
115
115
  label: tf("Move Back to {layout}", { layout: moveBack.name }),
116
116
  detail: moveBack.original
117
117
  ? "Return the focused pane to the layout it came from"
118
- : "The layout it came from is gone, so it docks in this one instead",
118
+ : "The layout it came from is gone, so it goes into this one instead",
119
119
  category: "Focused Pane",
120
120
  kind: "action" as const,
121
121
  action: () => {
@@ -157,8 +157,8 @@ export function buildFocusedPaneLayoutItems({
157
157
  return {
158
158
  id: paneId,
159
159
  label: instance.title || pluginRegistry.panes.get(instance.paneId)?.name || instance.paneId,
160
- detail: isFloating ? "Floating window" : "Docked pane",
161
- description: isFloating ? "Floating window" : "Docked pane",
160
+ detail: isFloating ? "Floating window" : "In the layout",
161
+ description: isFloating ? "Floating window" : "In the layout",
162
162
  };
163
163
  });
164
164
  if (pickerOptions.length === 0) return;
@@ -1,7 +1,7 @@
1
1
  import type { PluginRegistry } from "../../plugins/registry";
2
2
  import { fuzzyFilter } from "../../utils/fuzzy-search";
3
3
  import type { ResultItem } from "./list/model";
4
- import { summarizePaneSettingValue } from "../pane-settings-dialog/value";
4
+ import { paneSettingValue, summarizePaneSettingValue } from "../pane-settings-dialog/value";
5
5
 
6
6
  /**
7
7
  * The focused pane's settings as root search results. The bar only finds a
@@ -21,7 +21,7 @@ export function buildPaneSettingResultItems(options: {
21
21
  const category = descriptor.settingsDef.title || "Pane Settings";
22
22
  const paneLabel = descriptor.pane.title || descriptor.paneDef.name || descriptor.pane.paneId;
23
23
  const items = descriptor.settingsDef.fields.map((field): ResultItem => {
24
- const currentValue = descriptor.context.settings[field.key];
24
+ const currentValue = paneSettingValue(field, descriptor.context.settings);
25
25
  const actionSearchText = field.type === "action"
26
26
  ? `${field.actionId} ${field.actionLabel ?? ""}`
27
27
  : "";
@@ -14,6 +14,7 @@ import {
14
14
  QUICK_LOOK_TICKER_SEARCH_OPTIONS,
15
15
  tickerSearchFailureItems,
16
16
  venueDropdownResults,
17
+ withMajorCoinCandidate,
17
18
  type RootTickerReading,
18
19
  } from "../ticker-search/results";
19
20
  import { ProviderBusyError, SEARCH_BUSY_MESSAGE } from "../../../../sources/provider-errors";
@@ -78,19 +79,19 @@ function buildInstantAnswer(options: {
78
79
  const { query, fromIndex, cached, tickers, savedSymbolKeys, buildTickerSearchResultItems, localTickerSearchResultItems } = options;
79
80
  const localItems = () => localTickerSearchResultItems(query, { limit: 6 });
80
81
  if (cached) {
81
- return { query, items: mergeTickerSearchResultItems(query, buildTickerSearchResultItems(cached, query), localItems()), fromIndex: false };
82
+ return { query, items: mergeTickerSearchResultItems(query, buildTickerSearchResultItems(withMajorCoinCandidate(query, cached, tickers), query), localItems()), fromIndex: false };
82
83
  }
83
84
  if (!fromIndex) return null;
84
85
  const symbol = symbolSearchQuery(query);
85
86
  const known = knownListings(symbol);
86
87
  if (known.length === 0 && !savedSymbolKeys.has(listingIndexKey(symbol))) return null;
87
- const candidates = buildTickerSearchCandidates({
88
+ const candidates = withMajorCoinCandidate(symbol, buildTickerSearchCandidates({
88
89
  query: symbol,
89
90
  tickers,
90
91
  providerResults: known,
91
92
  totalLimit: LISTING_SEARCH_LIMIT,
92
93
  ...QUICK_LOOK_TICKER_SEARCH_OPTIONS,
93
- });
94
+ }), tickers);
94
95
  if (candidates.length === 0) return null;
95
96
  // Only the exact lines: looser matches are search's to rank.
96
97
  const items = mergeTickerSearchResultItems(query, buildTickerSearchResultItems(candidates, query), localItems())
@@ -264,7 +265,7 @@ export function useRootProviderSearch(options: {
264
265
  published = true;
265
266
  setRootProviderResults(mergeTickerSearchResultItems(
266
267
  searchQuery,
267
- buildTickerSearchResultItems(candidates, searchQuery),
268
+ buildTickerSearchResultItems(withMajorCoinCandidate(searchQuery, candidates, tickers), searchQuery),
268
269
  localTickerSearchResultItems(searchQuery, { limit: 6 }),
269
270
  ));
270
271
  setRootProviderResultsQuery(searchQuery);
@@ -409,14 +409,18 @@ export function buildRootResultModel(options: RootResultModelOptions): RootResul
409
409
  .filter((command) => command.id !== "quit")
410
410
  .map((command) => commandToItem(command))
411
411
  .filter((item): item is ResultItem => item !== null);
412
+ const pluginItems = pluginCommandItems();
413
+ // A layout action that is also a command (Add a Desk, DESK) is listed once, as the command.
414
+ const commandRows = new Set([...commandItems, ...pluginItems].map((item) => `${item.label}\u0000${item.right ?? ""}`));
412
415
  const allItems = [
413
416
  ...commandItems,
414
- ...buildLayoutItems("", { confirmDangerousActions: true }),
417
+ ...buildLayoutItems("", { confirmDangerousActions: true })
418
+ .filter((item) => !commandRows.has(`${item.label}\u0000${item.right ?? ""}`)),
415
419
  ...buildPaneSettingItems(state.focusedPaneId, rootQuery),
416
420
  ...paneShortcutItems({ includePromptableTickerTemplates: true }),
417
421
  ...nonShortcutPaneTemplateItems(),
418
422
  ...tickerActionItems(),
419
- ...pluginCommandItems(),
423
+ ...pluginItems,
420
424
  ];
421
425
  if (pastedList) items.push(pastedListItem(pastedList, executeCollectionCommand));
422
426
  items.push(...rankMatchBlock(allItems, providerMatchItems, rootQuery));
@@ -1,9 +1,11 @@
1
1
  import type { TickerRecord } from "../../../../types/ticker";
2
2
  import {
3
+ buildTickerSearchCandidates,
3
4
  createLocalTickerSearchCandidates,
4
5
  findExactTickerSearchMatch,
5
6
  type TickerSearchCandidate,
6
7
  } from "../../../../tickers/search";
8
+ import { MAJOR_COIN_NAMES } from "../../../../utils/crypto-pair";
7
9
  import {
8
10
  assetClassMarketSymbol,
9
11
  instrumentClassCode,
@@ -83,9 +85,58 @@ export function isExactTickerResultMatch(item: ResultItem, rawQuery: string): bo
83
85
  || answersToIndexCode(item, query)
84
86
  // "brent" and "oil" are how a benchmark future is typed; its own symbol is BZ=F or CL=F.
85
87
  || answersToFutureName(item, query)
88
+ // BTC is how bitcoin is typed; its own symbol is BTC-USD.
89
+ || majorCoinPairSymbol(query) === parsePublicTickerKey(item.label.trim().toUpperCase()).symbol
86
90
  ));
87
91
  }
88
92
 
93
+ /** BTC-USD for BTC: the dollar pair of a coin whose bare ticker is how it is typed (`MAJOR_COIN_NAMES`). */
94
+ function majorCoinPairSymbol(query: string): string | null {
95
+ const base = query.trim().toUpperCase();
96
+ return MAJOR_COIN_NAMES.has(base) ? `${base}-USD` : null;
97
+ }
98
+
99
+ /**
100
+ * A major coin's bare ticker (BTC, ETH, SOL) is how the coin is asked for, but
101
+ * search lists only the funds and companies of those letters (BTC is
102
+ * Grayscale's Bitcoin Mini Trust), with no coin among them. The bar adds the
103
+ * coin's dollar pair, the row search sends for "bitcoin", as the CLI's quote
104
+ * points to it ("For bitcoin use BTC-USD"); a pair search sends far down its
105
+ * list (ETH-USD after every ETH listing) moves up the same way. It leads when
106
+ * the listing it would follow cannot be what was meant: one named for the coin,
107
+ * or one that stopped trading. A live company of those letters (LINK is
108
+ * Interlink Electronics) keeps the lead, with the coin right after it.
109
+ */
110
+ export function withMajorCoinCandidate(
111
+ query: string,
112
+ candidates: TickerSearchCandidate[],
113
+ tickers: ReadonlyMap<string, TickerRecord>,
114
+ ): TickerSearchCandidate[] {
115
+ const symbol = majorCoinPairSymbol(query);
116
+ const coin = MAJOR_COIN_NAMES.get(query.trim().toUpperCase());
117
+ if (!symbol || !coin) return candidates;
118
+ const isPair = (candidate: TickerSearchCandidate) => parsePublicTickerKey(candidate.symbol).symbol === symbol;
119
+ const sent = candidates.find(isPair);
120
+ const name = coin.replace(/\b[a-z]/g, (letter) => letter.toUpperCase());
121
+ const [pair] = sent ? [sent] : buildTickerSearchCandidates({
122
+ query: symbol,
123
+ tickers,
124
+ providerResults: [{ providerId: "gloomberb-cloud", symbol, name, exchange: "CCC", type: "CRYPTOCURRENCY", currency: "USD" }],
125
+ totalLimit: 1,
126
+ localLimit: 0,
127
+ });
128
+ if (!pair) return candidates;
129
+ const rest = candidates.filter((candidate) => !isPair(candidate));
130
+ const base = query.trim().toUpperCase();
131
+ const at = rest.findIndex((candidate) => parsePublicTickerKey(candidate.symbol).symbol === base);
132
+ if (at < 0) return [pair, ...rest];
133
+ const listing = rest[at]!;
134
+ const listingName = listing.result?.name ?? listing.ticker?.metadata.name ?? "";
135
+ const cannotBeIt = !!listing.result?.delisting || new RegExp(`\\b${coin}\\b`, "i").test(listingName);
136
+ const index = cannotBeIt ? at : at + 1;
137
+ return [...rest.slice(0, index), pair, ...rest.slice(index)];
138
+ }
139
+
89
140
  export function mergeTickerSearchResultItems(
90
141
  query: string,
91
142
  rankedItems: ResultItem[],
@@ -7,6 +7,7 @@ import {
7
7
  mergeTickerSearchResultItems,
8
8
  QUICK_LOOK_TICKER_SEARCH_OPTIONS,
9
9
  tickerSearchFailureItems,
10
+ withMajorCoinCandidate,
10
11
  } from "./results";
11
12
  import type { ResultItem } from "../../list/model";
12
13
 
@@ -81,7 +82,7 @@ export function useTickerSearchRouteResults(options: {
81
82
  brokerInstanceId,
82
83
  );
83
84
  setTickerSearchResults(cachedCandidates
84
- ? mergeTickerSearchResultItems(searchQuery, buildTickerSearchResultItems(cachedCandidates, searchQuery), localItems)
85
+ ? mergeTickerSearchResultItems(searchQuery, buildTickerSearchResultItems(withMajorCoinCandidate(searchQuery, cachedCandidates, getTickers()), searchQuery), localItems)
85
86
  : localItems);
86
87
  const requestId = ++searchRequestIdRef.current;
87
88
  const searchDelay = skipTickerSearchDebounceRef.current ? 0 : 200;
@@ -114,7 +115,7 @@ export function useTickerSearchRouteResults(options: {
114
115
  );
115
116
  setTickerSearchResults(mergeTickerSearchResultItems(
116
117
  searchQuery,
117
- buildTickerSearchResultItems(combined, searchQuery),
118
+ buildTickerSearchResultItems(withMajorCoinCandidate(searchQuery, combined, getTickers()), searchQuery),
118
119
  localTickerSearchResultItems(searchQuery, { limit: 6 }),
119
120
  ));
120
121
  } catch (error) {
@@ -31,7 +31,8 @@ export function InputSearchBar({
31
31
  width: number | "100%";
32
32
  focusToken: number;
33
33
  inputRef: RefObject<InputRenderable | null>;
34
- placeholder: string;
34
+ /** Longest first: a field too narrow for one shows the next that fits. */
35
+ placeholder: string | readonly string[];
35
36
  debounceMs: number;
36
37
  /** Leading marker; override when a pane shows more than one field. */
37
38
  glyph?: string;
@@ -137,7 +138,7 @@ export function InputSearchBar({
137
138
  ref={inputRef}
138
139
  value={draft}
139
140
  focused={focused && active}
140
- placeholder={placeholder}
141
+ placeholder={fittedPlaceholder(placeholder, typeof width === "number" ? width - (appearance === "strip" ? 2 : 0) : null)}
141
142
  placeholderColor={placeholderText()}
142
143
  textColor={colors.text}
143
144
  focusedTextColor={colors.text}
@@ -156,6 +157,12 @@ export function InputSearchBar({
156
157
  );
157
158
  }
158
159
 
160
+ /** The first placeholder that fits `room` cells (all of them when the field has no fixed width), else the last. */
161
+ function fittedPlaceholder(placeholder: string | readonly string[], room: number | null): string {
162
+ if (typeof placeholder === "string") return placeholder;
163
+ return placeholder.find((text) => room === null || text.length <= room) ?? placeholder.at(-1) ?? "";
164
+ }
165
+
159
166
  const SEARCH_ICON_STYLE = { marginRight: "var(--gloom-space-xs)" } as const;
160
167
 
161
168
  const SEARCH_STRIP_STYLE = {
@@ -232,7 +232,7 @@ export function DetachedPaneShell({ pluginRegistry, desktopWindowBridge }: Detac
232
232
  }
233
233
  items.push(pluginContextMenuSlot("pane"));
234
234
  if (dockPane) {
235
- items.push({ id: "dock", label: "Dock in Main Window", accelerator: accelerators.toggleFloating, onSelect: dockPane });
235
+ items.push({ id: "dock", label: "Return to Main Window", accelerator: accelerators.toggleFloating, onSelect: dockPane });
236
236
  }
237
237
  items.push({
238
238
  id: "toggle-pane-lock",
@@ -3,7 +3,7 @@ import type { ReactNode, RefObject } from "react";
3
3
  import { colors, floatingPaneBg } from "../../theme/colors";
4
4
  import { useThemeColors } from "../../theme/theme-context";
5
5
  import { PaneBodyFrame, getPaneWindowAttributes } from "./pane/frame";
6
- import { PaneHeader, type PaneHeaderQuickSetting } from "./pane/header";
6
+ import { PaneHeader, type PaneHeaderQuickSetting, type PaneHeaderStack } from "./pane/header";
7
7
  import { PaneHeaderTabsProvider, usePaneHeaderTabsHost } from "./pane/header-tabs";
8
8
  import { hasPaneFooterContent, PaneFooterBar, type CombinedPaneFooter } from "./pane/footer";
9
9
  import { resolvePaneBodyFrame, shouldReservePaneFooter } from "./pane/sizing";
@@ -49,6 +49,8 @@ interface FloatingPaneWrapperProps {
49
49
  footer?: CombinedPaneFooter | null;
50
50
  /** The pane's frame, which a desktop resize sizes outside React; its header, body and footer stretch with it. */
51
51
  frameRef?: RefObject<BoxRenderable | null>;
52
+ /** Windows stacked as tabs here: their tabs replace the title. */
53
+ stack?: PaneHeaderStack | null;
52
54
  children: ReactNode;
53
55
  }
54
56
 
@@ -105,6 +107,7 @@ export function FloatingPaneWrapper({
105
107
  onResizeMouseDragEnd,
106
108
  footer,
107
109
  frameRef,
110
+ stack = null,
108
111
  children,
109
112
  }: FloatingPaneWrapperProps) {
110
113
  const { nativePaneChrome } = useUiCapabilities();
@@ -153,6 +156,7 @@ export function FloatingPaneWrapper({
153
156
  showActions={showActions}
154
157
  quickSettings={quickSettings}
155
158
  tabs={headerTabs}
159
+ stack={stack}
156
160
  bodyBackground={bg}
157
161
  topRule
158
162
  onHeaderMouseMove={onHeaderMouseMove}
@@ -7,7 +7,7 @@ import { keyHintWords } from "../../../ui/key-hint-words";
7
7
  import { Button } from "../../../ui/button";
8
8
  import { ChoiceDialog } from "../../../ui/choice-dialog";
9
9
  import { Icon, IconButton } from "../../../ui/icon";
10
- import { useRemoteUiNode } from "../../../../remote/semantic-tree";
10
+ import { RemoteUiScope, useRemoteUiNode } from "../../../../remote/semantic-tree";
11
11
  import { useOptionalDialog, type PromptContext } from "../../../../ui/dialog";
12
12
  import { nativePaneFooterRows } from "../sizing";
13
13
  import {
@@ -192,6 +192,7 @@ function usePaneHintRemoteNode(hint: PaneHint) {
192
192
  id: hint.id,
193
193
  key: hint.key,
194
194
  label: hint.label,
195
+ ...(hint.remoteScope ? { scope: hint.remoteScope } : {}),
195
196
  },
196
197
  });
197
198
  }
@@ -225,21 +226,27 @@ function FooterOverflowMenu({ hints, width, label, nativePaneChrome }: { hints:
225
226
  const keyLabel = useShortcutLabel();
226
227
  const open = () => {
227
228
  if (!dialog || hints.length === 0) return;
229
+ // A list that holds a prompt's answers (Ask Gloom's Approve) is that
230
+ // prompt's as a whole, so no assistant's UI call picks from it.
231
+ const scope = hints.find((hint) => hint.remoteScope)?.remoteScope;
228
232
  void dialog.prompt<string>({
229
233
  closeOnClickOutside: true,
230
- content: (context: PromptContext<string>) => (
231
- <ChoiceDialog
232
- {...context}
233
- title={t("Pane actions")}
234
- // The desktop names each action as its menu does, with the key after it, never inside the word.
235
- choices={hints.map((hint, index) => ({
236
- id: String(index),
237
- label: nativePaneChrome ? paneHintTitle(hint) : `[${keyLabel(hint.key)}]${hint.label}`,
238
- ...(nativePaneChrome ? { detail: keyLabel(hint.key) } : {}),
239
- disabled: !hint.onPress,
240
- }))}
241
- />
242
- ),
234
+ content: (context: PromptContext<string>) => {
235
+ const choices = (
236
+ <ChoiceDialog
237
+ {...context}
238
+ title={t("Pane actions")}
239
+ // The desktop names each action as its menu does, with the key after it, never inside the word.
240
+ choices={hints.map((hint, index) => ({
241
+ id: String(index),
242
+ label: nativePaneChrome ? paneHintTitle(hint) : `[${keyLabel(hint.key)}]${hint.label}`,
243
+ ...(nativePaneChrome ? { detail: keyLabel(hint.key) } : {}),
244
+ disabled: !hint.onPress,
245
+ }))}
246
+ />
247
+ );
248
+ return scope ? <RemoteUiScope scope={scope}>{choices}</RemoteUiScope> : choices;
249
+ },
243
250
  }).then((selected) => {
244
251
  if (selected) hints[Number(selected)]?.onPress?.();
245
252
  }, logFailure("layout.pane-footer", "Open pane actions menu failed"));
@@ -262,6 +262,12 @@ export interface PaneHint {
262
262
  * the component's `keys` stay bound.
263
263
  */
264
264
  besideOthers?: boolean;
265
+ /**
266
+ * The surface the hint answers for, as `metadata.scope` on its semantic UI
267
+ * node, like a kit button inside RemoteUiScope: the footer is drawn outside
268
+ * the pane's own tree, so it cannot inherit one.
269
+ */
270
+ remoteScope?: string;
265
271
  }
266
272
 
267
273
  export interface CombinedPaneFooter {
@@ -409,6 +409,7 @@ export function PaneHeader({
409
409
  activeValue={stack.active}
410
410
  onSelect={stack.onSelect}
411
411
  variant="header"
412
+ background={backgroundColor}
412
413
  focused={visuallyFocused}
413
414
  keyboardNavigation={false}
414
415
  paneMenu={false}
@@ -468,6 +469,7 @@ export function PaneHeader({
468
469
  activeValue={tabs.activeValue}
469
470
  onSelect={tabs.onSelect}
470
471
  variant="header"
472
+ background={backgroundColor}
471
473
  focused={tabs.focused}
472
474
  keyboardNavigation={tabs.keyboardNavigation}
473
475
  onAdd={tabs.onAdd}
@@ -1,8 +1,9 @@
1
- import { useRef } from "react";
1
+ import { useRef, type ReactNode } from "react";
2
2
  import { Box, Text, useUiCapabilities } from "../../../ui";
3
3
  import { MenuPopover } from "../../ui/menu";
4
4
  import { colors } from "../../../theme/colors";
5
5
  import { MENU_Z_INDEX, type PaneMenuEntry } from "./menu";
6
+ import { RemoteUiScope } from "../../../remote/semantic-tree";
6
7
  import { t } from "../../../i18n";
7
8
  import { displayWidth, padTo, truncateToDisplayWidth } from "../../../utils/format";
8
9
 
@@ -46,9 +47,13 @@ export function ShellActionMenuOverlay({
46
47
  startRef.current = 0;
47
48
  return null;
48
49
  }
50
+ // A menu that holds a prompt's answers (Ask Gloom's Approve) is that
51
+ // prompt's as a whole, so no assistant's UI call chooses from it.
52
+ const scope = menuState.items.find((item) => item.remoteScope)?.remoteScope;
53
+ const scoped = (menu: ReactNode) => (scope ? <RemoteUiScope scope={scope}>{menu}</RemoteUiScope> : menu);
49
54
 
50
55
  if (nativePaneChrome) {
51
- return (
56
+ return scoped(
52
57
  <MenuPopover
53
58
  open
54
59
  onOpenChange={(open) => { if (!open) onClose(); }}
@@ -63,7 +68,7 @@ export function ShellActionMenuOverlay({
63
68
  onClose();
64
69
  item?.action();
65
70
  }}
66
- />
71
+ />,
67
72
  );
68
73
  }
69
74
 
@@ -82,7 +87,7 @@ export function ShellActionMenuOverlay({
82
87
  event.preventDefault?.();
83
88
  };
84
89
 
85
- return (
90
+ return scoped(
86
91
  <Box
87
92
  position="absolute"
88
93
  left={menuState.x}
@@ -144,6 +149,6 @@ export function ShellActionMenuOverlay({
144
149
  </Box>
145
150
  );
146
151
  })}
147
- </Box>
152
+ </Box>,
148
153
  );
149
154
  }